ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/ircd-hybrid/trunk/configure
Revision: 1094
Committed: Sun Jun 13 10:09:34 2010 UTC (15 years, 2 months ago) by michael
Original Path: ircd-hybrid-7.3/configure
File size: 466974 byte(s)
Log Message:
- Updated ltdl to latest 2.2.10 release

File Contents

# Content
1 #! /bin/sh
2 # From configure.ac Id: configure.ac 1092 2010-03-25 11:10:59Z michael .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.65 for ircd-hybrid 7.3-rc1.
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 Free Software Foundation,
11 # 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 case $0 in #((
96 *[\\/]* ) as_myself=$0 ;;
97 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98 for as_dir in $PATH
99 do
100 IFS=$as_save_IFS
101 test -z "$as_dir" && as_dir=.
102 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103 done
104 IFS=$as_save_IFS
105
106 ;;
107 esac
108 # We did not find ourselves, most probably we were run as `sh COMMAND'
109 # in which case we are not to be found in the path.
110 if test "x$as_myself" = x; then
111 as_myself=$0
112 fi
113 if test ! -f "$as_myself"; then
114 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115 exit 1
116 fi
117
118 # Unset variables that we do not need and which cause bugs (e.g. in
119 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
120 # suppresses any "Segmentation fault" message there. '((' could
121 # trigger a bug in pdksh 5.2.14.
122 for as_var in BASH_ENV ENV MAIL MAILPATH
123 do eval test x\${$as_var+set} = xset \
124 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
125 done
126 PS1='$ '
127 PS2='> '
128 PS4='+ '
129
130 # NLS nuisances.
131 LC_ALL=C
132 export LC_ALL
133 LANGUAGE=C
134 export LANGUAGE
135
136 # CDPATH.
137 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138
139 if test "x$CONFIG_SHELL" = x; then
140 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
141 emulate sh
142 NULLCMD=:
143 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144 # is contrary to our usage. Disable this feature.
145 alias -g '\${1+\"\$@\"}'='\"\$@\"'
146 setopt NO_GLOB_SUBST
147 else
148 case \`(set -o) 2>/dev/null\` in #(
149 *posix*) :
150 set -o posix ;; #(
151 *) :
152 ;;
153 esac
154 fi
155 "
156 as_required="as_fn_return () { (exit \$1); }
157 as_fn_success () { as_fn_return 0; }
158 as_fn_failure () { as_fn_return 1; }
159 as_fn_ret_success () { return 0; }
160 as_fn_ret_failure () { return 1; }
161
162 exitcode=0
163 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168
169 else
170 exitcode=1; echo positional parameters were not saved.
171 fi
172 test x\$exitcode = x0 || exit 1"
173 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
177
178 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
179 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
180 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
181 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
182 PATH=/empty FPATH=/empty; export PATH FPATH
183 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
184 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
185 test \$(( 1 + 1 )) = 2 || exit 1"
186 if (eval "$as_required") 2>/dev/null; then :
187 as_have_required=yes
188 else
189 as_have_required=no
190 fi
191 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
192
193 else
194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
195 as_found=false
196 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
197 do
198 IFS=$as_save_IFS
199 test -z "$as_dir" && as_dir=.
200 as_found=:
201 case $as_dir in #(
202 /*)
203 for as_base in sh bash ksh sh5; do
204 # Try only shells that exist, to save several forks.
205 as_shell=$as_dir/$as_base
206 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
207 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
208 CONFIG_SHELL=$as_shell as_have_required=yes
209 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
210 break 2
211 fi
212 fi
213 done;;
214 esac
215 as_found=false
216 done
217 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
218 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
219 CONFIG_SHELL=$SHELL as_have_required=yes
220 fi; }
221 IFS=$as_save_IFS
222
223
224 if test "x$CONFIG_SHELL" != x; then :
225 # We cannot yet assume a decent shell, so we have to provide a
226 # neutralization value for shells without unset; and this also
227 # works around shells that cannot unset nonexistent variables.
228 BASH_ENV=/dev/null
229 ENV=/dev/null
230 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
231 export CONFIG_SHELL
232 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
233 fi
234
235 if test x$as_have_required = xno; then :
236 $as_echo "$0: This script requires a shell more modern than all"
237 $as_echo "$0: the shells that I found on your system."
238 if test x${ZSH_VERSION+set} = xset ; then
239 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
240 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
241 else
242 $as_echo "$0: Please tell bug-autoconf@gnu.org and
243 $0: bugs@ircd-hybrid.org about your system, including any
244 $0: error possibly output before this message. Then install
245 $0: a modern shell, or manually run the script under such a
246 $0: shell if you do have one."
247 fi
248 exit 1
249 fi
250 fi
251 fi
252 SHELL=${CONFIG_SHELL-/bin/sh}
253 export SHELL
254 # Unset more variables known to interfere with behavior of common tools.
255 CLICOLOR_FORCE= GREP_OPTIONS=
256 unset CLICOLOR_FORCE GREP_OPTIONS
257
258 ## --------------------- ##
259 ## M4sh Shell Functions. ##
260 ## --------------------- ##
261 # as_fn_unset VAR
262 # ---------------
263 # Portably unset VAR.
264 as_fn_unset ()
265 {
266 { eval $1=; unset $1;}
267 }
268 as_unset=as_fn_unset
269
270 # as_fn_set_status STATUS
271 # -----------------------
272 # Set $? to STATUS, without forking.
273 as_fn_set_status ()
274 {
275 return $1
276 } # as_fn_set_status
277
278 # as_fn_exit STATUS
279 # -----------------
280 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
281 as_fn_exit ()
282 {
283 set +e
284 as_fn_set_status $1
285 exit $1
286 } # as_fn_exit
287
288 # as_fn_mkdir_p
289 # -------------
290 # Create "$as_dir" as a directory, including parents if necessary.
291 as_fn_mkdir_p ()
292 {
293
294 case $as_dir in #(
295 -*) as_dir=./$as_dir;;
296 esac
297 test -d "$as_dir" || eval $as_mkdir_p || {
298 as_dirs=
299 while :; do
300 case $as_dir in #(
301 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
302 *) as_qdir=$as_dir;;
303 esac
304 as_dirs="'$as_qdir' $as_dirs"
305 as_dir=`$as_dirname -- "$as_dir" ||
306 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
307 X"$as_dir" : 'X\(//\)[^/]' \| \
308 X"$as_dir" : 'X\(//\)$' \| \
309 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
310 $as_echo X"$as_dir" |
311 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
312 s//\1/
313 q
314 }
315 /^X\(\/\/\)[^/].*/{
316 s//\1/
317 q
318 }
319 /^X\(\/\/\)$/{
320 s//\1/
321 q
322 }
323 /^X\(\/\).*/{
324 s//\1/
325 q
326 }
327 s/.*/./; q'`
328 test -d "$as_dir" && break
329 done
330 test -z "$as_dirs" || eval "mkdir $as_dirs"
331 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
332
333
334 } # as_fn_mkdir_p
335 # as_fn_append VAR VALUE
336 # ----------------------
337 # Append the text in VALUE to the end of the definition contained in VAR. Take
338 # advantage of any shell optimizations that allow amortized linear growth over
339 # repeated appends, instead of the typical quadratic growth present in naive
340 # implementations.
341 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
342 eval 'as_fn_append ()
343 {
344 eval $1+=\$2
345 }'
346 else
347 as_fn_append ()
348 {
349 eval $1=\$$1\$2
350 }
351 fi # as_fn_append
352
353 # as_fn_arith ARG...
354 # ------------------
355 # Perform arithmetic evaluation on the ARGs, and store the result in the
356 # global $as_val. Take advantage of shells that can avoid forks. The arguments
357 # must be portable across $(()) and expr.
358 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
359 eval 'as_fn_arith ()
360 {
361 as_val=$(( $* ))
362 }'
363 else
364 as_fn_arith ()
365 {
366 as_val=`expr "$@" || test $? -eq 1`
367 }
368 fi # as_fn_arith
369
370
371 # as_fn_error ERROR [LINENO LOG_FD]
372 # ---------------------------------
373 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
374 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
375 # script with status $?, using 1 if that was 0.
376 as_fn_error ()
377 {
378 as_status=$?; test $as_status -eq 0 && as_status=1
379 if test "$3"; then
380 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
381 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
382 fi
383 $as_echo "$as_me: error: $1" >&2
384 as_fn_exit $as_status
385 } # as_fn_error
386
387 if expr a : '\(a\)' >/dev/null 2>&1 &&
388 test "X`expr 00001 : '.*\(...\)'`" = X001; then
389 as_expr=expr
390 else
391 as_expr=false
392 fi
393
394 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
395 as_basename=basename
396 else
397 as_basename=false
398 fi
399
400 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
401 as_dirname=dirname
402 else
403 as_dirname=false
404 fi
405
406 as_me=`$as_basename -- "$0" ||
407 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
408 X"$0" : 'X\(//\)$' \| \
409 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
410 $as_echo X/"$0" |
411 sed '/^.*\/\([^/][^/]*\)\/*$/{
412 s//\1/
413 q
414 }
415 /^X\/\(\/\/\)$/{
416 s//\1/
417 q
418 }
419 /^X\/\(\/\).*/{
420 s//\1/
421 q
422 }
423 s/.*/./; q'`
424
425 # Avoid depending upon Character Ranges.
426 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
427 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
428 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
429 as_cr_digits='0123456789'
430 as_cr_alnum=$as_cr_Letters$as_cr_digits
431
432
433 as_lineno_1=$LINENO as_lineno_1a=$LINENO
434 as_lineno_2=$LINENO as_lineno_2a=$LINENO
435 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
436 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
437 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
438 sed -n '
439 p
440 /[$]LINENO/=
441 ' <$as_myself |
442 sed '
443 s/[$]LINENO.*/&-/
444 t lineno
445 b
446 :lineno
447 N
448 :loop
449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
450 t loop
451 s/-\n.*//
452 ' >$as_me.lineno &&
453 chmod +x "$as_me.lineno" ||
454 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
455
456 # Don't try to exec as it changes $[0], causing all sort of problems
457 # (the dirname of $[0] is not the place where we might find the
458 # original and so on. Autoconf is especially sensitive to this).
459 . "./$as_me.lineno"
460 # Exit status is that of the last command.
461 exit
462 }
463
464 ECHO_C= ECHO_N= ECHO_T=
465 case `echo -n x` in #(((((
466 -n*)
467 case `echo 'xy\c'` in
468 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
469 xy) ECHO_C='\c';;
470 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
471 ECHO_T=' ';;
472 esac;;
473 *)
474 ECHO_N='-n';;
475 esac
476
477 rm -f conf$$ conf$$.exe conf$$.file
478 if test -d conf$$.dir; then
479 rm -f conf$$.dir/conf$$.file
480 else
481 rm -f conf$$.dir
482 mkdir conf$$.dir 2>/dev/null
483 fi
484 if (echo >conf$$.file) 2>/dev/null; then
485 if ln -s conf$$.file conf$$ 2>/dev/null; then
486 as_ln_s='ln -s'
487 # ... but there are two gotchas:
488 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
489 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
490 # In both cases, we have to default to `cp -p'.
491 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
492 as_ln_s='cp -p'
493 elif ln conf$$.file conf$$ 2>/dev/null; then
494 as_ln_s=ln
495 else
496 as_ln_s='cp -p'
497 fi
498 else
499 as_ln_s='cp -p'
500 fi
501 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
502 rmdir conf$$.dir 2>/dev/null
503
504 if mkdir -p . 2>/dev/null; then
505 as_mkdir_p='mkdir -p "$as_dir"'
506 else
507 test -d ./-p && rmdir ./-p
508 as_mkdir_p=false
509 fi
510
511 if test -x / >/dev/null 2>&1; then
512 as_test_x='test -x'
513 else
514 if ls -dL / >/dev/null 2>&1; then
515 as_ls_L_option=L
516 else
517 as_ls_L_option=
518 fi
519 as_test_x='
520 eval sh -c '\''
521 if test -d "$1"; then
522 test -d "$1/.";
523 else
524 case $1 in #(
525 -*)set "./$1";;
526 esac;
527 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
528 ???[sx]*):;;*)false;;esac;fi
529 '\'' sh
530 '
531 fi
532 as_executable_p=$as_test_x
533
534 # Sed expression to map a string onto a valid CPP name.
535 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
536
537 # Sed expression to map a string onto a valid variable name.
538 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
539
540 lt_ltdl_dir='libltdl'
541
542 SHELL=${CONFIG_SHELL-/bin/sh}
543
544
545 test -n "$DJDIR" || exec 7<&0 </dev/null
546 exec 6>&1
547
548 # Name of the host.
549 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
550 # so uname gets run too.
551 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
552
553 #
554 # Initializations.
555 #
556 ac_default_prefix=/usr/local
557 ac_clean_files=
558 ac_config_libobj_dir=.
559 LIBOBJS=
560 cross_compiling=no
561 subdirs=
562 MFLAGS=
563 MAKEFLAGS=
564
565 # Identity of this package.
566 PACKAGE_NAME='ircd-hybrid'
567 PACKAGE_TARNAME='ircd-hybrid'
568 PACKAGE_VERSION='7.3-rc1'
569 PACKAGE_STRING='ircd-hybrid 7.3-rc1'
570 PACKAGE_BUGREPORT='bugs@ircd-hybrid.org'
571 PACKAGE_URL=''
572
573 ac_unique_file="src/ircd.c"
574 # Factoring default headers for most tests.
575 ac_includes_default="\
576 #include <stdio.h>
577 #ifdef HAVE_SYS_TYPES_H
578 # include <sys/types.h>
579 #endif
580 #ifdef HAVE_SYS_STAT_H
581 # include <sys/stat.h>
582 #endif
583 #ifdef STDC_HEADERS
584 # include <stdlib.h>
585 # include <stddef.h>
586 #else
587 # ifdef HAVE_STDLIB_H
588 # include <stdlib.h>
589 # endif
590 #endif
591 #ifdef HAVE_STRING_H
592 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
593 # include <memory.h>
594 # endif
595 # include <string.h>
596 #endif
597 #ifdef HAVE_STRINGS_H
598 # include <strings.h>
599 #endif
600 #ifdef HAVE_INTTYPES_H
601 # include <inttypes.h>
602 #endif
603 #ifdef HAVE_STDINT_H
604 # include <stdint.h>
605 #endif
606 #ifdef HAVE_UNISTD_H
607 # include <unistd.h>
608 #endif"
609
610 ac_func_list=
611 ac_header_list=
612 ac_subst_vars='ltdl_LTLIBOBJS
613 ltdl_LIBOBJS
614 am__EXEEXT_FALSE
615 am__EXEEXT_TRUE
616 LTLIBOBJS
617 LIBOBJS
618 LOCALSTATEDIR
619 DATADIR
620 LIBDIR
621 SYSCONFDIR
622 PREFIX
623 EFNET_FALSE
624 EFNET_TRUE
625 ENABLE_SSL_FALSE
626 ENABLE_SSL_TRUE
627 ENABLE_PCRE_FALSE
628 ENABLE_PCRE_TRUE
629 LTDLOPEN
630 LT_CONFIG_H
631 CONVENIENCE_LTDL_FALSE
632 CONVENIENCE_LTDL_TRUE
633 INSTALL_LTDL_FALSE
634 INSTALL_LTDL_TRUE
635 ARGZ_H
636 sys_symbol_underscore
637 LIBADD_DL
638 LT_DLPREOPEN
639 LIBADD_DLD_LINK
640 LIBADD_SHL_LOAD
641 LIBADD_DLOPEN
642 LT_DLLOADERS
643 INCLTDL
644 LTDLINCL
645 LTDLDEPS
646 LIBLTDL
647 CPP
648 OTOOL64
649 OTOOL
650 LIPO
651 NMEDIT
652 DSYMUTIL
653 RANLIB
654 AR
655 OBJDUMP
656 LN_S
657 NM
658 ac_ct_DUMPBIN
659 DUMPBIN
660 LD
661 FGREP
662 EGREP
663 GREP
664 SED
665 host_os
666 host_vendor
667 host_cpu
668 host
669 build_os
670 build_vendor
671 build_cpu
672 build
673 LIBTOOL
674 LEXLIB
675 LEX_OUTPUT_ROOT
676 LEX
677 YFLAGS
678 YACC
679 am__fastdepCC_FALSE
680 am__fastdepCC_TRUE
681 CCDEPMODE
682 AMDEPBACKSLASH
683 AMDEP_FALSE
684 AMDEP_TRUE
685 am__quote
686 am__include
687 DEPDIR
688 OBJEXT
689 EXEEXT
690 ac_ct_CC
691 CPPFLAGS
692 LDFLAGS
693 CFLAGS
694 CC
695 MAINT
696 MAINTAINER_MODE_FALSE
697 MAINTAINER_MODE_TRUE
698 am__untar
699 am__tar
700 AMTAR
701 am__leading_dot
702 SET_MAKE
703 AWK
704 mkdir_p
705 MKDIR_P
706 INSTALL_STRIP_PROGRAM
707 STRIP
708 install_sh
709 MAKEINFO
710 AUTOHEADER
711 AUTOMAKE
712 AUTOCONF
713 ACLOCAL
714 VERSION
715 PACKAGE
716 CYGPATH_W
717 am__isrc
718 INSTALL_DATA
719 INSTALL_SCRIPT
720 INSTALL_PROGRAM
721 target_alias
722 host_alias
723 build_alias
724 LIBS
725 ECHO_T
726 ECHO_N
727 ECHO_C
728 DEFS
729 mandir
730 localedir
731 libdir
732 psdir
733 pdfdir
734 dvidir
735 htmldir
736 infodir
737 docdir
738 oldincludedir
739 includedir
740 localstatedir
741 sharedstatedir
742 sysconfdir
743 datadir
744 datarootdir
745 libexecdir
746 sbindir
747 bindir
748 program_transform_name
749 prefix
750 exec_prefix
751 PACKAGE_URL
752 PACKAGE_BUGREPORT
753 PACKAGE_STRING
754 PACKAGE_VERSION
755 PACKAGE_TARNAME
756 PACKAGE_NAME
757 PATH_SEPARATOR
758 SHELL'
759 ac_subst_files=''
760 ac_user_opts='
761 enable_option_checking
762 enable_maintainer_mode
763 enable_dependency_tracking
764 enable_static
765 enable_shared
766 with_pic
767 enable_fast_install
768 with_gnu_ld
769 enable_libtool_lock
770 with_included_ltdl
771 with_ltdl_include
772 with_ltdl_lib
773 enable_ltdl_install
774 with_zlib_path
775 enable_zlib
776 with_libpcre_path
777 enable_libpcre
778 enable_openssl
779 enable_assert
780 enable_small_net
781 enable_kqueue
782 enable_epoll
783 enable_devpoll
784 enable_rtsigio
785 enable_poll
786 enable_select
787 with_nicklen
788 with_topiclen
789 with_syslog_facility
790 enable_efnet
791 enable_halfops
792 enable_debugging
793 enable_warnings
794 enable_syslog
795 '
796 ac_precious_vars='build_alias
797 host_alias
798 target_alias
799 CC
800 CFLAGS
801 LDFLAGS
802 LIBS
803 CPPFLAGS
804 YACC
805 YFLAGS
806 CPP'
807
808
809 # Initialize some variables set by options.
810 ac_init_help=
811 ac_init_version=false
812 ac_unrecognized_opts=
813 ac_unrecognized_sep=
814 # The variables have the same names as the options, with
815 # dashes changed to underlines.
816 cache_file=/dev/null
817 exec_prefix=NONE
818 no_create=
819 no_recursion=
820 prefix=NONE
821 program_prefix=NONE
822 program_suffix=NONE
823 program_transform_name=s,x,x,
824 silent=
825 site=
826 srcdir=
827 verbose=
828 x_includes=NONE
829 x_libraries=NONE
830
831 # Installation directory options.
832 # These are left unexpanded so users can "make install exec_prefix=/foo"
833 # and all the variables that are supposed to be based on exec_prefix
834 # by default will actually change.
835 # Use braces instead of parens because sh, perl, etc. also accept them.
836 # (The list follows the same order as the GNU Coding Standards.)
837 bindir='${exec_prefix}/bin'
838 sbindir='${exec_prefix}/sbin'
839 libexecdir='${exec_prefix}/libexec'
840 datarootdir='${prefix}/share'
841 datadir='${datarootdir}'
842 sysconfdir='${prefix}/etc'
843 sharedstatedir='${prefix}/com'
844 localstatedir='${prefix}/var'
845 includedir='${prefix}/include'
846 oldincludedir='/usr/include'
847 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
848 infodir='${datarootdir}/info'
849 htmldir='${docdir}'
850 dvidir='${docdir}'
851 pdfdir='${docdir}'
852 psdir='${docdir}'
853 libdir='${exec_prefix}/lib'
854 localedir='${datarootdir}/locale'
855 mandir='${datarootdir}/man'
856
857 ac_prev=
858 ac_dashdash=
859 for ac_option
860 do
861 # If the previous option needs an argument, assign it.
862 if test -n "$ac_prev"; then
863 eval $ac_prev=\$ac_option
864 ac_prev=
865 continue
866 fi
867
868 case $ac_option in
869 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
870 *) ac_optarg=yes ;;
871 esac
872
873 # Accept the important Cygnus configure options, so we can diagnose typos.
874
875 case $ac_dashdash$ac_option in
876 --)
877 ac_dashdash=yes ;;
878
879 -bindir | --bindir | --bindi | --bind | --bin | --bi)
880 ac_prev=bindir ;;
881 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
882 bindir=$ac_optarg ;;
883
884 -build | --build | --buil | --bui | --bu)
885 ac_prev=build_alias ;;
886 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
887 build_alias=$ac_optarg ;;
888
889 -cache-file | --cache-file | --cache-fil | --cache-fi \
890 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
891 ac_prev=cache_file ;;
892 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
893 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
894 cache_file=$ac_optarg ;;
895
896 --config-cache | -C)
897 cache_file=config.cache ;;
898
899 -datadir | --datadir | --datadi | --datad)
900 ac_prev=datadir ;;
901 -datadir=* | --datadir=* | --datadi=* | --datad=*)
902 datadir=$ac_optarg ;;
903
904 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
905 | --dataroo | --dataro | --datar)
906 ac_prev=datarootdir ;;
907 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
908 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
909 datarootdir=$ac_optarg ;;
910
911 -disable-* | --disable-*)
912 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
913 # Reject names that are not valid shell variable names.
914 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
915 as_fn_error "invalid feature name: $ac_useropt"
916 ac_useropt_orig=$ac_useropt
917 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
918 case $ac_user_opts in
919 *"
920 "enable_$ac_useropt"
921 "*) ;;
922 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
923 ac_unrecognized_sep=', ';;
924 esac
925 eval enable_$ac_useropt=no ;;
926
927 -docdir | --docdir | --docdi | --doc | --do)
928 ac_prev=docdir ;;
929 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
930 docdir=$ac_optarg ;;
931
932 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
933 ac_prev=dvidir ;;
934 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
935 dvidir=$ac_optarg ;;
936
937 -enable-* | --enable-*)
938 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
939 # Reject names that are not valid shell variable names.
940 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
941 as_fn_error "invalid feature name: $ac_useropt"
942 ac_useropt_orig=$ac_useropt
943 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
944 case $ac_user_opts in
945 *"
946 "enable_$ac_useropt"
947 "*) ;;
948 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
949 ac_unrecognized_sep=', ';;
950 esac
951 eval enable_$ac_useropt=\$ac_optarg ;;
952
953 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
954 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
955 | --exec | --exe | --ex)
956 ac_prev=exec_prefix ;;
957 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
958 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
959 | --exec=* | --exe=* | --ex=*)
960 exec_prefix=$ac_optarg ;;
961
962 -gas | --gas | --ga | --g)
963 # Obsolete; use --with-gas.
964 with_gas=yes ;;
965
966 -help | --help | --hel | --he | -h)
967 ac_init_help=long ;;
968 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
969 ac_init_help=recursive ;;
970 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
971 ac_init_help=short ;;
972
973 -host | --host | --hos | --ho)
974 ac_prev=host_alias ;;
975 -host=* | --host=* | --hos=* | --ho=*)
976 host_alias=$ac_optarg ;;
977
978 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
979 ac_prev=htmldir ;;
980 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
981 | --ht=*)
982 htmldir=$ac_optarg ;;
983
984 -includedir | --includedir | --includedi | --included | --include \
985 | --includ | --inclu | --incl | --inc)
986 ac_prev=includedir ;;
987 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
988 | --includ=* | --inclu=* | --incl=* | --inc=*)
989 includedir=$ac_optarg ;;
990
991 -infodir | --infodir | --infodi | --infod | --info | --inf)
992 ac_prev=infodir ;;
993 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
994 infodir=$ac_optarg ;;
995
996 -libdir | --libdir | --libdi | --libd)
997 ac_prev=libdir ;;
998 -libdir=* | --libdir=* | --libdi=* | --libd=*)
999 libdir=$ac_optarg ;;
1000
1001 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1002 | --libexe | --libex | --libe)
1003 ac_prev=libexecdir ;;
1004 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1005 | --libexe=* | --libex=* | --libe=*)
1006 libexecdir=$ac_optarg ;;
1007
1008 -localedir | --localedir | --localedi | --localed | --locale)
1009 ac_prev=localedir ;;
1010 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1011 localedir=$ac_optarg ;;
1012
1013 -localstatedir | --localstatedir | --localstatedi | --localstated \
1014 | --localstate | --localstat | --localsta | --localst | --locals)
1015 ac_prev=localstatedir ;;
1016 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1017 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1018 localstatedir=$ac_optarg ;;
1019
1020 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1021 ac_prev=mandir ;;
1022 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1023 mandir=$ac_optarg ;;
1024
1025 -nfp | --nfp | --nf)
1026 # Obsolete; use --without-fp.
1027 with_fp=no ;;
1028
1029 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1030 | --no-cr | --no-c | -n)
1031 no_create=yes ;;
1032
1033 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1034 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1035 no_recursion=yes ;;
1036
1037 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1038 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1039 | --oldin | --oldi | --old | --ol | --o)
1040 ac_prev=oldincludedir ;;
1041 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1042 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1043 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1044 oldincludedir=$ac_optarg ;;
1045
1046 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1047 ac_prev=prefix ;;
1048 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1049 prefix=$ac_optarg ;;
1050
1051 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1052 | --program-pre | --program-pr | --program-p)
1053 ac_prev=program_prefix ;;
1054 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1055 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1056 program_prefix=$ac_optarg ;;
1057
1058 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1059 | --program-suf | --program-su | --program-s)
1060 ac_prev=program_suffix ;;
1061 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1062 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1063 program_suffix=$ac_optarg ;;
1064
1065 -program-transform-name | --program-transform-name \
1066 | --program-transform-nam | --program-transform-na \
1067 | --program-transform-n | --program-transform- \
1068 | --program-transform | --program-transfor \
1069 | --program-transfo | --program-transf \
1070 | --program-trans | --program-tran \
1071 | --progr-tra | --program-tr | --program-t)
1072 ac_prev=program_transform_name ;;
1073 -program-transform-name=* | --program-transform-name=* \
1074 | --program-transform-nam=* | --program-transform-na=* \
1075 | --program-transform-n=* | --program-transform-=* \
1076 | --program-transform=* | --program-transfor=* \
1077 | --program-transfo=* | --program-transf=* \
1078 | --program-trans=* | --program-tran=* \
1079 | --progr-tra=* | --program-tr=* | --program-t=*)
1080 program_transform_name=$ac_optarg ;;
1081
1082 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1083 ac_prev=pdfdir ;;
1084 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1085 pdfdir=$ac_optarg ;;
1086
1087 -psdir | --psdir | --psdi | --psd | --ps)
1088 ac_prev=psdir ;;
1089 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1090 psdir=$ac_optarg ;;
1091
1092 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1093 | -silent | --silent | --silen | --sile | --sil)
1094 silent=yes ;;
1095
1096 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1097 ac_prev=sbindir ;;
1098 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1099 | --sbi=* | --sb=*)
1100 sbindir=$ac_optarg ;;
1101
1102 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1103 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1104 | --sharedst | --shareds | --shared | --share | --shar \
1105 | --sha | --sh)
1106 ac_prev=sharedstatedir ;;
1107 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1108 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1109 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1110 | --sha=* | --sh=*)
1111 sharedstatedir=$ac_optarg ;;
1112
1113 -site | --site | --sit)
1114 ac_prev=site ;;
1115 -site=* | --site=* | --sit=*)
1116 site=$ac_optarg ;;
1117
1118 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1119 ac_prev=srcdir ;;
1120 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1121 srcdir=$ac_optarg ;;
1122
1123 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1124 | --syscon | --sysco | --sysc | --sys | --sy)
1125 ac_prev=sysconfdir ;;
1126 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1127 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1128 sysconfdir=$ac_optarg ;;
1129
1130 -target | --target | --targe | --targ | --tar | --ta | --t)
1131 ac_prev=target_alias ;;
1132 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1133 target_alias=$ac_optarg ;;
1134
1135 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1136 verbose=yes ;;
1137
1138 -version | --version | --versio | --versi | --vers | -V)
1139 ac_init_version=: ;;
1140
1141 -with-* | --with-*)
1142 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1143 # Reject names that are not valid shell variable names.
1144 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1145 as_fn_error "invalid package name: $ac_useropt"
1146 ac_useropt_orig=$ac_useropt
1147 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1148 case $ac_user_opts in
1149 *"
1150 "with_$ac_useropt"
1151 "*) ;;
1152 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1153 ac_unrecognized_sep=', ';;
1154 esac
1155 eval with_$ac_useropt=\$ac_optarg ;;
1156
1157 -without-* | --without-*)
1158 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1159 # Reject names that are not valid shell variable names.
1160 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1161 as_fn_error "invalid package name: $ac_useropt"
1162 ac_useropt_orig=$ac_useropt
1163 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1164 case $ac_user_opts in
1165 *"
1166 "with_$ac_useropt"
1167 "*) ;;
1168 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1169 ac_unrecognized_sep=', ';;
1170 esac
1171 eval with_$ac_useropt=no ;;
1172
1173 --x)
1174 # Obsolete; use --with-x.
1175 with_x=yes ;;
1176
1177 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1178 | --x-incl | --x-inc | --x-in | --x-i)
1179 ac_prev=x_includes ;;
1180 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1181 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1182 x_includes=$ac_optarg ;;
1183
1184 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1185 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1186 ac_prev=x_libraries ;;
1187 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1188 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1189 x_libraries=$ac_optarg ;;
1190
1191 -*) as_fn_error "unrecognized option: \`$ac_option'
1192 Try \`$0 --help' for more information."
1193 ;;
1194
1195 *=*)
1196 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1197 # Reject names that are not valid shell variable names.
1198 case $ac_envvar in #(
1199 '' | [0-9]* | *[!_$as_cr_alnum]* )
1200 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1201 esac
1202 eval $ac_envvar=\$ac_optarg
1203 export $ac_envvar ;;
1204
1205 *)
1206 # FIXME: should be removed in autoconf 3.0.
1207 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1208 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1209 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1210 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1211 ;;
1212
1213 esac
1214 done
1215
1216 if test -n "$ac_prev"; then
1217 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1218 as_fn_error "missing argument to $ac_option"
1219 fi
1220
1221 if test -n "$ac_unrecognized_opts"; then
1222 case $enable_option_checking in
1223 no) ;;
1224 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1225 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1226 esac
1227 fi
1228
1229 # Check all directory arguments for consistency.
1230 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1231 datadir sysconfdir sharedstatedir localstatedir includedir \
1232 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1233 libdir localedir mandir
1234 do
1235 eval ac_val=\$$ac_var
1236 # Remove trailing slashes.
1237 case $ac_val in
1238 */ )
1239 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1240 eval $ac_var=\$ac_val;;
1241 esac
1242 # Be sure to have absolute directory names.
1243 case $ac_val in
1244 [\\/$]* | ?:[\\/]* ) continue;;
1245 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1246 esac
1247 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1248 done
1249
1250 # There might be people who depend on the old broken behavior: `$host'
1251 # used to hold the argument of --host etc.
1252 # FIXME: To remove some day.
1253 build=$build_alias
1254 host=$host_alias
1255 target=$target_alias
1256
1257 # FIXME: To remove some day.
1258 if test "x$host_alias" != x; then
1259 if test "x$build_alias" = x; then
1260 cross_compiling=maybe
1261 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1262 If a cross compiler is detected then cross compile mode will be used." >&2
1263 elif test "x$build_alias" != "x$host_alias"; then
1264 cross_compiling=yes
1265 fi
1266 fi
1267
1268 ac_tool_prefix=
1269 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1270
1271 test "$silent" = yes && exec 6>/dev/null
1272
1273
1274 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1275 ac_ls_di=`ls -di .` &&
1276 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1277 as_fn_error "working directory cannot be determined"
1278 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1279 as_fn_error "pwd does not report name of working directory"
1280
1281
1282 # Find the source files, if location was not specified.
1283 if test -z "$srcdir"; then
1284 ac_srcdir_defaulted=yes
1285 # Try the directory containing this script, then the parent directory.
1286 ac_confdir=`$as_dirname -- "$as_myself" ||
1287 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1288 X"$as_myself" : 'X\(//\)[^/]' \| \
1289 X"$as_myself" : 'X\(//\)$' \| \
1290 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1291 $as_echo X"$as_myself" |
1292 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1293 s//\1/
1294 q
1295 }
1296 /^X\(\/\/\)[^/].*/{
1297 s//\1/
1298 q
1299 }
1300 /^X\(\/\/\)$/{
1301 s//\1/
1302 q
1303 }
1304 /^X\(\/\).*/{
1305 s//\1/
1306 q
1307 }
1308 s/.*/./; q'`
1309 srcdir=$ac_confdir
1310 if test ! -r "$srcdir/$ac_unique_file"; then
1311 srcdir=..
1312 fi
1313 else
1314 ac_srcdir_defaulted=no
1315 fi
1316 if test ! -r "$srcdir/$ac_unique_file"; then
1317 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1318 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1319 fi
1320 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1321 ac_abs_confdir=`(
1322 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1323 pwd)`
1324 # When building in place, set srcdir=.
1325 if test "$ac_abs_confdir" = "$ac_pwd"; then
1326 srcdir=.
1327 fi
1328 # Remove unnecessary trailing slashes from srcdir.
1329 # Double slashes in file names in object file debugging info
1330 # mess up M-x gdb in Emacs.
1331 case $srcdir in
1332 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1333 esac
1334 for ac_var in $ac_precious_vars; do
1335 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1336 eval ac_env_${ac_var}_value=\$${ac_var}
1337 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1338 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1339 done
1340
1341 #
1342 # Report the --help message.
1343 #
1344 if test "$ac_init_help" = "long"; then
1345 # Omit some internal or obsolete options to make the list less imposing.
1346 # This message is too long to be a string in the A/UX 3.1 sh.
1347 cat <<_ACEOF
1348 \`configure' configures ircd-hybrid 7.3-rc1 to adapt to many kinds of systems.
1349
1350 Usage: $0 [OPTION]... [VAR=VALUE]...
1351
1352 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1353 VAR=VALUE. See below for descriptions of some of the useful variables.
1354
1355 Defaults for the options are specified in brackets.
1356
1357 Configuration:
1358 -h, --help display this help and exit
1359 --help=short display options specific to this package
1360 --help=recursive display the short help of all the included packages
1361 -V, --version display version information and exit
1362 -q, --quiet, --silent do not print \`checking...' messages
1363 --cache-file=FILE cache test results in FILE [disabled]
1364 -C, --config-cache alias for \`--cache-file=config.cache'
1365 -n, --no-create do not create output files
1366 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1367
1368 Installation directories:
1369 --prefix=PREFIX install architecture-independent files in PREFIX
1370 [$ac_default_prefix]
1371 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1372 [PREFIX]
1373
1374 By default, \`make install' will install all the files in
1375 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1376 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1377 for instance \`--prefix=\$HOME'.
1378
1379 For better control, use the options below.
1380
1381 Fine tuning of the installation directories:
1382 --bindir=DIR user executables [EPREFIX/bin]
1383 --sbindir=DIR system admin executables [EPREFIX/sbin]
1384 --libexecdir=DIR program executables [EPREFIX/libexec]
1385 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1386 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1387 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1388 --libdir=DIR object code libraries [EPREFIX/lib]
1389 --includedir=DIR C header files [PREFIX/include]
1390 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1391 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1392 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1393 --infodir=DIR info documentation [DATAROOTDIR/info]
1394 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1395 --mandir=DIR man documentation [DATAROOTDIR/man]
1396 --docdir=DIR documentation root [DATAROOTDIR/doc/ircd-hybrid]
1397 --htmldir=DIR html documentation [DOCDIR]
1398 --dvidir=DIR dvi documentation [DOCDIR]
1399 --pdfdir=DIR pdf documentation [DOCDIR]
1400 --psdir=DIR ps documentation [DOCDIR]
1401 _ACEOF
1402
1403 cat <<\_ACEOF
1404
1405 Program names:
1406 --program-prefix=PREFIX prepend PREFIX to installed program names
1407 --program-suffix=SUFFIX append SUFFIX to installed program names
1408 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1409
1410 System types:
1411 --build=BUILD configure for building on BUILD [guessed]
1412 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1413 _ACEOF
1414 fi
1415
1416 if test -n "$ac_init_help"; then
1417 case $ac_init_help in
1418 short | recursive ) echo "Configuration of ircd-hybrid 7.3-rc1:";;
1419 esac
1420 cat <<\_ACEOF
1421
1422 Optional Features:
1423 --disable-option-checking ignore unrecognized --enable/--with options
1424 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1425 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1426 --enable-maintainer-mode enable make rules and dependencies not useful
1427 (and sometimes confusing) to the casual installer
1428 --disable-dependency-tracking speeds up one-time build
1429 --enable-dependency-tracking do not reject slow dependency extractors
1430 --enable-static[=PKGS] build static libraries [default=no]
1431 --enable-shared[=PKGS] build shared libraries [default=yes]
1432 --enable-fast-install[=PKGS]
1433 optimize for fast installation [default=yes]
1434 --disable-libtool-lock avoid locking (might break parallel builds)
1435 --enable-ltdl-install install libltdl
1436 --disable-zlib Disable ziplinks support
1437 --disable-libpcre Disable PCRE support
1438 --enable-openssl=DIR Enable OpenSSL support (DIR optional).
1439 --disable-openssl Disable OpenSSL support.
1440 --enable-assert Enable assert() statements
1441 --enable-small-net Enable small network support.
1442 --enable-kqueue Force kqueue usage.
1443 --enable-epoll Force epoll usage.
1444 --enable-devpoll Force devpoll usage.
1445 --enable-rtsigio Force rtsigio usage.
1446 --enable-poll Force poll usage.
1447 --enable-select Force select usage.
1448 --enable-efnet For IRCDs running on EFnet.
1449 --enable-halfops Enable halfops support.
1450 --enable-debugging Enable debugging.
1451 --enable-warnings Enable compiler warnings.
1452 --enable-syslog="EVENTS"
1453 Enable syslog for events: users oper (space
1454 separated in quotes; default: disabled).
1455
1456 Optional Packages:
1457 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1458 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1459 --with-pic try to use only PIC/non-PIC objects [default=use
1460 both]
1461 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1462 --with-included-ltdl use the GNU ltdl sources included here
1463 --with-ltdl-include=DIR use the ltdl headers installed in DIR
1464 --with-ltdl-lib=DIR use the libltdl.la installed in DIR
1465 --with-zlib-path=DIR Path to libz.so for ziplinks support.
1466 --with-libpcre-path=DIR Path to libpcre.so for PCRE support.
1467 --with-nicklen=<value> Set nickname length (default 9).
1468 --with-topiclen=<value> Set topic length (default 160).
1469 --with-syslog-facility=LOG
1470 Define the syslog facility to use (default:
1471 LOG_LOCAL4)
1472
1473 Some influential environment variables:
1474 CC C compiler command
1475 CFLAGS C compiler flags
1476 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1477 nonstandard directory <lib dir>
1478 LIBS libraries to pass to the linker, e.g. -l<library>
1479 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1480 you have headers in a nonstandard directory <include dir>
1481 YACC The `Yet Another C Compiler' implementation to use. Defaults to
1482 the first program found out of: `bison -y', `byacc', `yacc'.
1483 YFLAGS The list of arguments that will be passed by default to $YACC.
1484 This script will default YFLAGS to the empty string to avoid a
1485 default value of `-d' given by some make applications.
1486 CPP C preprocessor
1487
1488 Use these variables to override the choices made by `configure' or to help
1489 it to find libraries and programs with nonstandard names/locations.
1490
1491 Report bugs to <bugs@ircd-hybrid.org>.
1492 _ACEOF
1493 ac_status=$?
1494 fi
1495
1496 if test "$ac_init_help" = "recursive"; then
1497 # If there are subdirs, report their specific --help.
1498 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1499 test -d "$ac_dir" ||
1500 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1501 continue
1502 ac_builddir=.
1503
1504 case "$ac_dir" in
1505 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1506 *)
1507 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1508 # A ".." for each directory in $ac_dir_suffix.
1509 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1510 case $ac_top_builddir_sub in
1511 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1512 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1513 esac ;;
1514 esac
1515 ac_abs_top_builddir=$ac_pwd
1516 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1517 # for backward compatibility:
1518 ac_top_builddir=$ac_top_build_prefix
1519
1520 case $srcdir in
1521 .) # We are building in place.
1522 ac_srcdir=.
1523 ac_top_srcdir=$ac_top_builddir_sub
1524 ac_abs_top_srcdir=$ac_pwd ;;
1525 [\\/]* | ?:[\\/]* ) # Absolute name.
1526 ac_srcdir=$srcdir$ac_dir_suffix;
1527 ac_top_srcdir=$srcdir
1528 ac_abs_top_srcdir=$srcdir ;;
1529 *) # Relative name.
1530 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1531 ac_top_srcdir=$ac_top_build_prefix$srcdir
1532 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1533 esac
1534 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1535
1536 cd "$ac_dir" || { ac_status=$?; continue; }
1537 # Check for guested configure.
1538 if test -f "$ac_srcdir/configure.gnu"; then
1539 echo &&
1540 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1541 elif test -f "$ac_srcdir/configure"; then
1542 echo &&
1543 $SHELL "$ac_srcdir/configure" --help=recursive
1544 else
1545 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1546 fi || ac_status=$?
1547 cd "$ac_pwd" || { ac_status=$?; break; }
1548 done
1549 fi
1550
1551 test -n "$ac_init_help" && exit $ac_status
1552 if $ac_init_version; then
1553 cat <<\_ACEOF
1554 ircd-hybrid configure 7.3-rc1
1555 generated by GNU Autoconf 2.65
1556
1557 Copyright (C) 2009 Free Software Foundation, Inc.
1558 This configure script is free software; the Free Software Foundation
1559 gives unlimited permission to copy, distribute and modify it.
1560 _ACEOF
1561 exit
1562 fi
1563
1564 ## ------------------------ ##
1565 ## Autoconf initialization. ##
1566 ## ------------------------ ##
1567
1568 # ac_fn_c_try_compile LINENO
1569 # --------------------------
1570 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1571 ac_fn_c_try_compile ()
1572 {
1573 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1574 rm -f conftest.$ac_objext
1575 if { { ac_try="$ac_compile"
1576 case "(($ac_try" in
1577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1578 *) ac_try_echo=$ac_try;;
1579 esac
1580 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1581 $as_echo "$ac_try_echo"; } >&5
1582 (eval "$ac_compile") 2>conftest.err
1583 ac_status=$?
1584 if test -s conftest.err; then
1585 grep -v '^ *+' conftest.err >conftest.er1
1586 cat conftest.er1 >&5
1587 mv -f conftest.er1 conftest.err
1588 fi
1589 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1590 test $ac_status = 0; } && {
1591 test -z "$ac_c_werror_flag" ||
1592 test ! -s conftest.err
1593 } && test -s conftest.$ac_objext; then :
1594 ac_retval=0
1595 else
1596 $as_echo "$as_me: failed program was:" >&5
1597 sed 's/^/| /' conftest.$ac_ext >&5
1598
1599 ac_retval=1
1600 fi
1601 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1602 as_fn_set_status $ac_retval
1603
1604 } # ac_fn_c_try_compile
1605
1606 # ac_fn_c_try_link LINENO
1607 # -----------------------
1608 # Try to link conftest.$ac_ext, and return whether this succeeded.
1609 ac_fn_c_try_link ()
1610 {
1611 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1612 rm -f conftest.$ac_objext conftest$ac_exeext
1613 if { { ac_try="$ac_link"
1614 case "(($ac_try" in
1615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1616 *) ac_try_echo=$ac_try;;
1617 esac
1618 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1619 $as_echo "$ac_try_echo"; } >&5
1620 (eval "$ac_link") 2>conftest.err
1621 ac_status=$?
1622 if test -s conftest.err; then
1623 grep -v '^ *+' conftest.err >conftest.er1
1624 cat conftest.er1 >&5
1625 mv -f conftest.er1 conftest.err
1626 fi
1627 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1628 test $ac_status = 0; } && {
1629 test -z "$ac_c_werror_flag" ||
1630 test ! -s conftest.err
1631 } && test -s conftest$ac_exeext && {
1632 test "$cross_compiling" = yes ||
1633 $as_test_x conftest$ac_exeext
1634 }; then :
1635 ac_retval=0
1636 else
1637 $as_echo "$as_me: failed program was:" >&5
1638 sed 's/^/| /' conftest.$ac_ext >&5
1639
1640 ac_retval=1
1641 fi
1642 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1643 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1644 # interfere with the next link command; also delete a directory that is
1645 # left behind by Apple's compiler. We do this before executing the actions.
1646 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1647 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1648 as_fn_set_status $ac_retval
1649
1650 } # ac_fn_c_try_link
1651
1652 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1653 # -------------------------------------------------------
1654 # Tests whether HEADER exists and can be compiled using the include files in
1655 # INCLUDES, setting the cache variable VAR accordingly.
1656 ac_fn_c_check_header_compile ()
1657 {
1658 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1660 $as_echo_n "checking for $2... " >&6; }
1661 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1662 $as_echo_n "(cached) " >&6
1663 else
1664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1665 /* end confdefs.h. */
1666 $4
1667 #include <$2>
1668 _ACEOF
1669 if ac_fn_c_try_compile "$LINENO"; then :
1670 eval "$3=yes"
1671 else
1672 eval "$3=no"
1673 fi
1674 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1675 fi
1676 eval ac_res=\$$3
1677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1678 $as_echo "$ac_res" >&6; }
1679 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1680
1681 } # ac_fn_c_check_header_compile
1682
1683 # ac_fn_c_try_cpp LINENO
1684 # ----------------------
1685 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1686 ac_fn_c_try_cpp ()
1687 {
1688 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1689 if { { ac_try="$ac_cpp conftest.$ac_ext"
1690 case "(($ac_try" in
1691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1692 *) ac_try_echo=$ac_try;;
1693 esac
1694 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1695 $as_echo "$ac_try_echo"; } >&5
1696 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1697 ac_status=$?
1698 if test -s conftest.err; then
1699 grep -v '^ *+' conftest.err >conftest.er1
1700 cat conftest.er1 >&5
1701 mv -f conftest.er1 conftest.err
1702 fi
1703 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1704 test $ac_status = 0; } >/dev/null && {
1705 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1706 test ! -s conftest.err
1707 }; then :
1708 ac_retval=0
1709 else
1710 $as_echo "$as_me: failed program was:" >&5
1711 sed 's/^/| /' conftest.$ac_ext >&5
1712
1713 ac_retval=1
1714 fi
1715 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1716 as_fn_set_status $ac_retval
1717
1718 } # ac_fn_c_try_cpp
1719
1720 # ac_fn_c_try_run LINENO
1721 # ----------------------
1722 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1723 # that executables *can* be run.
1724 ac_fn_c_try_run ()
1725 {
1726 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1727 if { { ac_try="$ac_link"
1728 case "(($ac_try" in
1729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1730 *) ac_try_echo=$ac_try;;
1731 esac
1732 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1733 $as_echo "$ac_try_echo"; } >&5
1734 (eval "$ac_link") 2>&5
1735 ac_status=$?
1736 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1737 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1738 { { case "(($ac_try" in
1739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1740 *) ac_try_echo=$ac_try;;
1741 esac
1742 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1743 $as_echo "$ac_try_echo"; } >&5
1744 (eval "$ac_try") 2>&5
1745 ac_status=$?
1746 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1747 test $ac_status = 0; }; }; then :
1748 ac_retval=0
1749 else
1750 $as_echo "$as_me: program exited with status $ac_status" >&5
1751 $as_echo "$as_me: failed program was:" >&5
1752 sed 's/^/| /' conftest.$ac_ext >&5
1753
1754 ac_retval=$ac_status
1755 fi
1756 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1757 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1758 as_fn_set_status $ac_retval
1759
1760 } # ac_fn_c_try_run
1761
1762 # ac_fn_c_check_func LINENO FUNC VAR
1763 # ----------------------------------
1764 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1765 ac_fn_c_check_func ()
1766 {
1767 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1769 $as_echo_n "checking for $2... " >&6; }
1770 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1771 $as_echo_n "(cached) " >&6
1772 else
1773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1774 /* end confdefs.h. */
1775 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1776 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1777 #define $2 innocuous_$2
1778
1779 /* System header to define __stub macros and hopefully few prototypes,
1780 which can conflict with char $2 (); below.
1781 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1782 <limits.h> exists even on freestanding compilers. */
1783
1784 #ifdef __STDC__
1785 # include <limits.h>
1786 #else
1787 # include <assert.h>
1788 #endif
1789
1790 #undef $2
1791
1792 /* Override any GCC internal prototype to avoid an error.
1793 Use char because int might match the return type of a GCC
1794 builtin and then its argument prototype would still apply. */
1795 #ifdef __cplusplus
1796 extern "C"
1797 #endif
1798 char $2 ();
1799 /* The GNU C library defines this for functions which it implements
1800 to always fail with ENOSYS. Some functions are actually named
1801 something starting with __ and the normal name is an alias. */
1802 #if defined __stub_$2 || defined __stub___$2
1803 choke me
1804 #endif
1805
1806 int
1807 main ()
1808 {
1809 return $2 ();
1810 ;
1811 return 0;
1812 }
1813 _ACEOF
1814 if ac_fn_c_try_link "$LINENO"; then :
1815 eval "$3=yes"
1816 else
1817 eval "$3=no"
1818 fi
1819 rm -f core conftest.err conftest.$ac_objext \
1820 conftest$ac_exeext conftest.$ac_ext
1821 fi
1822 eval ac_res=\$$3
1823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1824 $as_echo "$ac_res" >&6; }
1825 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1826
1827 } # ac_fn_c_check_func
1828
1829 # ac_fn_c_check_decl LINENO SYMBOL VAR
1830 # ------------------------------------
1831 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
1832 ac_fn_c_check_decl ()
1833 {
1834 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
1836 $as_echo_n "checking whether $2 is declared... " >&6; }
1837 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1838 $as_echo_n "(cached) " >&6
1839 else
1840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1841 /* end confdefs.h. */
1842 $4
1843 int
1844 main ()
1845 {
1846 #ifndef $2
1847 (void) $2;
1848 #endif
1849
1850 ;
1851 return 0;
1852 }
1853 _ACEOF
1854 if ac_fn_c_try_compile "$LINENO"; then :
1855 eval "$3=yes"
1856 else
1857 eval "$3=no"
1858 fi
1859 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1860 fi
1861 eval ac_res=\$$3
1862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1863 $as_echo "$ac_res" >&6; }
1864 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1865
1866 } # ac_fn_c_check_decl
1867
1868 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1869 # -------------------------------------------
1870 # Tests whether TYPE exists after having included INCLUDES, setting cache
1871 # variable VAR accordingly.
1872 ac_fn_c_check_type ()
1873 {
1874 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1876 $as_echo_n "checking for $2... " >&6; }
1877 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1878 $as_echo_n "(cached) " >&6
1879 else
1880 eval "$3=no"
1881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1882 /* end confdefs.h. */
1883 $4
1884 int
1885 main ()
1886 {
1887 if (sizeof ($2))
1888 return 0;
1889 ;
1890 return 0;
1891 }
1892 _ACEOF
1893 if ac_fn_c_try_compile "$LINENO"; then :
1894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1895 /* end confdefs.h. */
1896 $4
1897 int
1898 main ()
1899 {
1900 if (sizeof (($2)))
1901 return 0;
1902 ;
1903 return 0;
1904 }
1905 _ACEOF
1906 if ac_fn_c_try_compile "$LINENO"; then :
1907
1908 else
1909 eval "$3=yes"
1910 fi
1911 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1912 fi
1913 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1914 fi
1915 eval ac_res=\$$3
1916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1917 $as_echo "$ac_res" >&6; }
1918 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1919
1920 } # ac_fn_c_check_type
1921
1922 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1923 # ----------------------------------------------------
1924 # Tries to find if the field MEMBER exists in type AGGR, after including
1925 # INCLUDES, setting cache variable VAR accordingly.
1926 ac_fn_c_check_member ()
1927 {
1928 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1930 $as_echo_n "checking for $2.$3... " >&6; }
1931 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
1932 $as_echo_n "(cached) " >&6
1933 else
1934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1935 /* end confdefs.h. */
1936 $5
1937 int
1938 main ()
1939 {
1940 static $2 ac_aggr;
1941 if (ac_aggr.$3)
1942 return 0;
1943 ;
1944 return 0;
1945 }
1946 _ACEOF
1947 if ac_fn_c_try_compile "$LINENO"; then :
1948 eval "$4=yes"
1949 else
1950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1951 /* end confdefs.h. */
1952 $5
1953 int
1954 main ()
1955 {
1956 static $2 ac_aggr;
1957 if (sizeof ac_aggr.$3)
1958 return 0;
1959 ;
1960 return 0;
1961 }
1962 _ACEOF
1963 if ac_fn_c_try_compile "$LINENO"; then :
1964 eval "$4=yes"
1965 else
1966 eval "$4=no"
1967 fi
1968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1969 fi
1970 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1971 fi
1972 eval ac_res=\$$4
1973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1974 $as_echo "$ac_res" >&6; }
1975 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1976
1977 } # ac_fn_c_check_member
1978
1979 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1980 # -------------------------------------------------------
1981 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1982 # the include files in INCLUDES and setting the cache variable VAR
1983 # accordingly.
1984 ac_fn_c_check_header_mongrel ()
1985 {
1986 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1987 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1989 $as_echo_n "checking for $2... " >&6; }
1990 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1991 $as_echo_n "(cached) " >&6
1992 fi
1993 eval ac_res=\$$3
1994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1995 $as_echo "$ac_res" >&6; }
1996 else
1997 # Is the header compilable?
1998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1999 $as_echo_n "checking $2 usability... " >&6; }
2000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2001 /* end confdefs.h. */
2002 $4
2003 #include <$2>
2004 _ACEOF
2005 if ac_fn_c_try_compile "$LINENO"; then :
2006 ac_header_compiler=yes
2007 else
2008 ac_header_compiler=no
2009 fi
2010 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2012 $as_echo "$ac_header_compiler" >&6; }
2013
2014 # Is the header present?
2015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2016 $as_echo_n "checking $2 presence... " >&6; }
2017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2018 /* end confdefs.h. */
2019 #include <$2>
2020 _ACEOF
2021 if ac_fn_c_try_cpp "$LINENO"; then :
2022 ac_header_preproc=yes
2023 else
2024 ac_header_preproc=no
2025 fi
2026 rm -f conftest.err conftest.$ac_ext
2027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2028 $as_echo "$ac_header_preproc" >&6; }
2029
2030 # So? What about this header?
2031 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2032 yes:no: )
2033 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2034 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2035 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2036 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2037 ;;
2038 no:yes:* )
2039 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2040 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2041 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2042 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2043 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2044 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2045 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2046 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2047 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2048 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2049 ( cat <<\_ASBOX
2050 ## ----------------------------------- ##
2051 ## Report this to bugs@ircd-hybrid.org ##
2052 ## ----------------------------------- ##
2053 _ASBOX
2054 ) | sed "s/^/$as_me: WARNING: /" >&2
2055 ;;
2056 esac
2057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2058 $as_echo_n "checking for $2... " >&6; }
2059 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2060 $as_echo_n "(cached) " >&6
2061 else
2062 eval "$3=\$ac_header_compiler"
2063 fi
2064 eval ac_res=\$$3
2065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2066 $as_echo "$ac_res" >&6; }
2067 fi
2068 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2069
2070 } # ac_fn_c_check_header_mongrel
2071 cat >config.log <<_ACEOF
2072 This file contains any messages produced by compilers while
2073 running configure, to aid debugging if configure makes a mistake.
2074
2075 It was created by ircd-hybrid $as_me 7.3-rc1, which was
2076 generated by GNU Autoconf 2.65. Invocation command line was
2077
2078 $ $0 $@
2079
2080 _ACEOF
2081 exec 5>>config.log
2082 {
2083 cat <<_ASUNAME
2084 ## --------- ##
2085 ## Platform. ##
2086 ## --------- ##
2087
2088 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2089 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2090 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2091 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2092 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2093
2094 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2095 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2096
2097 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2098 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2099 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2100 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2101 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2102 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2103 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2104
2105 _ASUNAME
2106
2107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2108 for as_dir in $PATH
2109 do
2110 IFS=$as_save_IFS
2111 test -z "$as_dir" && as_dir=.
2112 $as_echo "PATH: $as_dir"
2113 done
2114 IFS=$as_save_IFS
2115
2116 } >&5
2117
2118 cat >&5 <<_ACEOF
2119
2120
2121 ## ----------- ##
2122 ## Core tests. ##
2123 ## ----------- ##
2124
2125 _ACEOF
2126
2127
2128 # Keep a trace of the command line.
2129 # Strip out --no-create and --no-recursion so they do not pile up.
2130 # Strip out --silent because we don't want to record it for future runs.
2131 # Also quote any args containing shell meta-characters.
2132 # Make two passes to allow for proper duplicate-argument suppression.
2133 ac_configure_args=
2134 ac_configure_args0=
2135 ac_configure_args1=
2136 ac_must_keep_next=false
2137 for ac_pass in 1 2
2138 do
2139 for ac_arg
2140 do
2141 case $ac_arg in
2142 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2143 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2144 | -silent | --silent | --silen | --sile | --sil)
2145 continue ;;
2146 *\'*)
2147 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2148 esac
2149 case $ac_pass in
2150 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2151 2)
2152 as_fn_append ac_configure_args1 " '$ac_arg'"
2153 if test $ac_must_keep_next = true; then
2154 ac_must_keep_next=false # Got value, back to normal.
2155 else
2156 case $ac_arg in
2157 *=* | --config-cache | -C | -disable-* | --disable-* \
2158 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2159 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2160 | -with-* | --with-* | -without-* | --without-* | --x)
2161 case "$ac_configure_args0 " in
2162 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2163 esac
2164 ;;
2165 -* ) ac_must_keep_next=true ;;
2166 esac
2167 fi
2168 as_fn_append ac_configure_args " '$ac_arg'"
2169 ;;
2170 esac
2171 done
2172 done
2173 { ac_configure_args0=; unset ac_configure_args0;}
2174 { ac_configure_args1=; unset ac_configure_args1;}
2175
2176 # When interrupted or exit'd, cleanup temporary files, and complete
2177 # config.log. We remove comments because anyway the quotes in there
2178 # would cause problems or look ugly.
2179 # WARNING: Use '\'' to represent an apostrophe within the trap.
2180 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2181 trap 'exit_status=$?
2182 # Save into config.log some information that might help in debugging.
2183 {
2184 echo
2185
2186 cat <<\_ASBOX
2187 ## ---------------- ##
2188 ## Cache variables. ##
2189 ## ---------------- ##
2190 _ASBOX
2191 echo
2192 # The following way of writing the cache mishandles newlines in values,
2193 (
2194 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2195 eval ac_val=\$$ac_var
2196 case $ac_val in #(
2197 *${as_nl}*)
2198 case $ac_var in #(
2199 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2200 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2201 esac
2202 case $ac_var in #(
2203 _ | IFS | as_nl) ;; #(
2204 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2205 *) { eval $ac_var=; unset $ac_var;} ;;
2206 esac ;;
2207 esac
2208 done
2209 (set) 2>&1 |
2210 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2211 *${as_nl}ac_space=\ *)
2212 sed -n \
2213 "s/'\''/'\''\\\\'\'''\''/g;
2214 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2215 ;; #(
2216 *)
2217 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2218 ;;
2219 esac |
2220 sort
2221 )
2222 echo
2223
2224 cat <<\_ASBOX
2225 ## ----------------- ##
2226 ## Output variables. ##
2227 ## ----------------- ##
2228 _ASBOX
2229 echo
2230 for ac_var in $ac_subst_vars
2231 do
2232 eval ac_val=\$$ac_var
2233 case $ac_val in
2234 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2235 esac
2236 $as_echo "$ac_var='\''$ac_val'\''"
2237 done | sort
2238 echo
2239
2240 if test -n "$ac_subst_files"; then
2241 cat <<\_ASBOX
2242 ## ------------------- ##
2243 ## File substitutions. ##
2244 ## ------------------- ##
2245 _ASBOX
2246 echo
2247 for ac_var in $ac_subst_files
2248 do
2249 eval ac_val=\$$ac_var
2250 case $ac_val in
2251 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2252 esac
2253 $as_echo "$ac_var='\''$ac_val'\''"
2254 done | sort
2255 echo
2256 fi
2257
2258 if test -s confdefs.h; then
2259 cat <<\_ASBOX
2260 ## ----------- ##
2261 ## confdefs.h. ##
2262 ## ----------- ##
2263 _ASBOX
2264 echo
2265 cat confdefs.h
2266 echo
2267 fi
2268 test "$ac_signal" != 0 &&
2269 $as_echo "$as_me: caught signal $ac_signal"
2270 $as_echo "$as_me: exit $exit_status"
2271 } >&5
2272 rm -f core *.core core.conftest.* &&
2273 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2274 exit $exit_status
2275 ' 0
2276 for ac_signal in 1 2 13 15; do
2277 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2278 done
2279 ac_signal=0
2280
2281 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2282 rm -f -r conftest* confdefs.h
2283
2284 $as_echo "/* confdefs.h */" > confdefs.h
2285
2286 # Predefined preprocessor variables.
2287
2288 cat >>confdefs.h <<_ACEOF
2289 #define PACKAGE_NAME "$PACKAGE_NAME"
2290 _ACEOF
2291
2292 cat >>confdefs.h <<_ACEOF
2293 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2294 _ACEOF
2295
2296 cat >>confdefs.h <<_ACEOF
2297 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2298 _ACEOF
2299
2300 cat >>confdefs.h <<_ACEOF
2301 #define PACKAGE_STRING "$PACKAGE_STRING"
2302 _ACEOF
2303
2304 cat >>confdefs.h <<_ACEOF
2305 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2306 _ACEOF
2307
2308 cat >>confdefs.h <<_ACEOF
2309 #define PACKAGE_URL "$PACKAGE_URL"
2310 _ACEOF
2311
2312
2313 # Let the site file select an alternate cache file if it wants to.
2314 # Prefer an explicitly selected file to automatically selected ones.
2315 ac_site_file1=NONE
2316 ac_site_file2=NONE
2317 if test -n "$CONFIG_SITE"; then
2318 ac_site_file1=$CONFIG_SITE
2319 elif test "x$prefix" != xNONE; then
2320 ac_site_file1=$prefix/share/config.site
2321 ac_site_file2=$prefix/etc/config.site
2322 else
2323 ac_site_file1=$ac_default_prefix/share/config.site
2324 ac_site_file2=$ac_default_prefix/etc/config.site
2325 fi
2326 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2327 do
2328 test "x$ac_site_file" = xNONE && continue
2329 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2330 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2331 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2332 sed 's/^/| /' "$ac_site_file" >&5
2333 . "$ac_site_file"
2334 fi
2335 done
2336
2337 if test -r "$cache_file"; then
2338 # Some versions of bash will fail to source /dev/null (special files
2339 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2340 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2341 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2342 $as_echo "$as_me: loading cache $cache_file" >&6;}
2343 case $cache_file in
2344 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2345 *) . "./$cache_file";;
2346 esac
2347 fi
2348 else
2349 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2350 $as_echo "$as_me: creating cache $cache_file" >&6;}
2351 >$cache_file
2352 fi
2353
2354 as_fn_append ac_func_list " mmap"
2355 as_fn_append ac_func_list " strtok_r"
2356 as_fn_append ac_func_list " usleep"
2357 as_fn_append ac_func_list " strlcat"
2358 as_fn_append ac_func_list " strlcpy"
2359 as_fn_append ac_header_list " crypt.h"
2360 as_fn_append ac_header_list " inttypes.h"
2361 as_fn_append ac_header_list " stdint.h"
2362 as_fn_append ac_header_list " sys/resource.h"
2363 as_fn_append ac_header_list " sys/param.h"
2364 as_fn_append ac_header_list " errno.h"
2365 as_fn_append ac_header_list " sys/syslog.h"
2366 as_fn_append ac_header_list " types.h"
2367 as_fn_append ac_header_list " socket.h"
2368 as_fn_append ac_header_list " sys/wait.h"
2369 as_fn_append ac_header_list " wait.h"
2370 as_fn_append ac_header_list " link.h"
2371 # Check that the precious variables saved in the cache have kept the same
2372 # value.
2373 ac_cache_corrupted=false
2374 for ac_var in $ac_precious_vars; do
2375 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2376 eval ac_new_set=\$ac_env_${ac_var}_set
2377 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2378 eval ac_new_val=\$ac_env_${ac_var}_value
2379 case $ac_old_set,$ac_new_set in
2380 set,)
2381 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2382 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2383 ac_cache_corrupted=: ;;
2384 ,set)
2385 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2386 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2387 ac_cache_corrupted=: ;;
2388 ,);;
2389 *)
2390 if test "x$ac_old_val" != "x$ac_new_val"; then
2391 # differences in whitespace do not lead to failure.
2392 ac_old_val_w=`echo x $ac_old_val`
2393 ac_new_val_w=`echo x $ac_new_val`
2394 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2395 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2396 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2397 ac_cache_corrupted=:
2398 else
2399 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2400 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2401 eval $ac_var=\$ac_old_val
2402 fi
2403 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2404 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2405 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2406 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2407 fi;;
2408 esac
2409 # Pass precious variables to config.status.
2410 if test "$ac_new_set" = set; then
2411 case $ac_new_val in
2412 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2413 *) ac_arg=$ac_var=$ac_new_val ;;
2414 esac
2415 case " $ac_configure_args " in
2416 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2417 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2418 esac
2419 fi
2420 done
2421 if $ac_cache_corrupted; then
2422 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2423 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2424 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2425 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2426 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2427 fi
2428 ## -------------------- ##
2429 ## Main body of script. ##
2430 ## -------------------- ##
2431
2432 ac_ext=c
2433 ac_cpp='$CPP $CPPFLAGS'
2434 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2435 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2436 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2437
2438
2439 am__api_version='1.11'
2440
2441 ac_aux_dir=
2442 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2443 for ac_t in install-sh install.sh shtool; do
2444 if test -f "$ac_dir/$ac_t"; then
2445 ac_aux_dir=$ac_dir
2446 ac_install_sh="$ac_aux_dir/$ac_t -c"
2447 break 2
2448 fi
2449 done
2450 done
2451 if test -z "$ac_aux_dir"; then
2452 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2453 fi
2454
2455 # These three variables are undocumented and unsupported,
2456 # and are intended to be withdrawn in a future Autoconf release.
2457 # They can cause serious problems if a builder's source tree is in a directory
2458 # whose full name contains unusual characters.
2459 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2460 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2461 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2462
2463
2464 # Find a good install program. We prefer a C program (faster),
2465 # so one script is as good as another. But avoid the broken or
2466 # incompatible versions:
2467 # SysV /etc/install, /usr/sbin/install
2468 # SunOS /usr/etc/install
2469 # IRIX /sbin/install
2470 # AIX /bin/install
2471 # AmigaOS /C/install, which installs bootblocks on floppy discs
2472 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2473 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2474 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2475 # OS/2's system install, which has a completely different semantic
2476 # ./install, which can be erroneously created by make from ./install.sh.
2477 # Reject install programs that cannot install multiple files.
2478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2479 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2480 if test -z "$INSTALL"; then
2481 if test "${ac_cv_path_install+set}" = set; then :
2482 $as_echo_n "(cached) " >&6
2483 else
2484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2485 for as_dir in $PATH
2486 do
2487 IFS=$as_save_IFS
2488 test -z "$as_dir" && as_dir=.
2489 # Account for people who put trailing slashes in PATH elements.
2490 case $as_dir/ in #((
2491 ./ | .// | /[cC]/* | \
2492 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2493 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2494 /usr/ucb/* ) ;;
2495 *)
2496 # OSF1 and SCO ODT 3.0 have their own names for install.
2497 # Don't use installbsd from OSF since it installs stuff as root
2498 # by default.
2499 for ac_prog in ginstall scoinst install; do
2500 for ac_exec_ext in '' $ac_executable_extensions; do
2501 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2502 if test $ac_prog = install &&
2503 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2504 # AIX install. It has an incompatible calling convention.
2505 :
2506 elif test $ac_prog = install &&
2507 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2508 # program-specific install script used by HP pwplus--don't use.
2509 :
2510 else
2511 rm -rf conftest.one conftest.two conftest.dir
2512 echo one > conftest.one
2513 echo two > conftest.two
2514 mkdir conftest.dir
2515 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2516 test -s conftest.one && test -s conftest.two &&
2517 test -s conftest.dir/conftest.one &&
2518 test -s conftest.dir/conftest.two
2519 then
2520 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2521 break 3
2522 fi
2523 fi
2524 fi
2525 done
2526 done
2527 ;;
2528 esac
2529
2530 done
2531 IFS=$as_save_IFS
2532
2533 rm -rf conftest.one conftest.two conftest.dir
2534
2535 fi
2536 if test "${ac_cv_path_install+set}" = set; then
2537 INSTALL=$ac_cv_path_install
2538 else
2539 # As a last resort, use the slow shell script. Don't cache a
2540 # value for INSTALL within a source directory, because that will
2541 # break other packages using the cache if that directory is
2542 # removed, or if the value is a relative name.
2543 INSTALL=$ac_install_sh
2544 fi
2545 fi
2546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2547 $as_echo "$INSTALL" >&6; }
2548
2549 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2550 # It thinks the first close brace ends the variable substitution.
2551 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2552
2553 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2554
2555 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2556
2557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2558 $as_echo_n "checking whether build environment is sane... " >&6; }
2559 # Just in case
2560 sleep 1
2561 echo timestamp > conftest.file
2562 # Reject unsafe characters in $srcdir or the absolute working directory
2563 # name. Accept space and tab only in the latter.
2564 am_lf='
2565 '
2566 case `pwd` in
2567 *[\\\"\#\$\&\'\`$am_lf]*)
2568 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2569 esac
2570 case $srcdir in
2571 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2572 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2573 esac
2574
2575 # Do `set' in a subshell so we don't clobber the current shell's
2576 # arguments. Must try -L first in case configure is actually a
2577 # symlink; some systems play weird games with the mod time of symlinks
2578 # (eg FreeBSD returns the mod time of the symlink's containing
2579 # directory).
2580 if (
2581 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2582 if test "$*" = "X"; then
2583 # -L didn't work.
2584 set X `ls -t "$srcdir/configure" conftest.file`
2585 fi
2586 rm -f conftest.file
2587 if test "$*" != "X $srcdir/configure conftest.file" \
2588 && test "$*" != "X conftest.file $srcdir/configure"; then
2589
2590 # If neither matched, then we have a broken ls. This can happen
2591 # if, for instance, CONFIG_SHELL is bash and it inherits a
2592 # broken ls alias from the environment. This has actually
2593 # happened. Such a system could not be considered "sane".
2594 as_fn_error "ls -t appears to fail. Make sure there is not a broken
2595 alias in your environment" "$LINENO" 5
2596 fi
2597
2598 test "$2" = conftest.file
2599 )
2600 then
2601 # Ok.
2602 :
2603 else
2604 as_fn_error "newly created file is older than distributed files!
2605 Check your system clock" "$LINENO" 5
2606 fi
2607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2608 $as_echo "yes" >&6; }
2609 test "$program_prefix" != NONE &&
2610 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2611 # Use a double $ so make ignores it.
2612 test "$program_suffix" != NONE &&
2613 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2614 # Double any \ or $.
2615 # By default was `s,x,x', remove it if useless.
2616 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2617 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2618
2619 # expand $ac_aux_dir to an absolute path
2620 am_aux_dir=`cd $ac_aux_dir && pwd`
2621
2622 if test x"${MISSING+set}" != xset; then
2623 case $am_aux_dir in
2624 *\ * | *\ *)
2625 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2626 *)
2627 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2628 esac
2629 fi
2630 # Use eval to expand $SHELL
2631 if eval "$MISSING --run true"; then
2632 am_missing_run="$MISSING --run "
2633 else
2634 am_missing_run=
2635 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2636 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2637 fi
2638
2639 if test x"${install_sh}" != xset; then
2640 case $am_aux_dir in
2641 *\ * | *\ *)
2642 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2643 *)
2644 install_sh="\${SHELL} $am_aux_dir/install-sh"
2645 esac
2646 fi
2647
2648 # Installed binaries are usually stripped using `strip' when the user
2649 # run `make install-strip'. However `strip' might not be the right
2650 # tool to use in cross-compilation environments, therefore Automake
2651 # will honor the `STRIP' environment variable to overrule this program.
2652 if test "$cross_compiling" != no; then
2653 if test -n "$ac_tool_prefix"; then
2654 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2655 set dummy ${ac_tool_prefix}strip; ac_word=$2
2656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2657 $as_echo_n "checking for $ac_word... " >&6; }
2658 if test "${ac_cv_prog_STRIP+set}" = set; then :
2659 $as_echo_n "(cached) " >&6
2660 else
2661 if test -n "$STRIP"; then
2662 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2663 else
2664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2665 for as_dir in $PATH
2666 do
2667 IFS=$as_save_IFS
2668 test -z "$as_dir" && as_dir=.
2669 for ac_exec_ext in '' $ac_executable_extensions; do
2670 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2671 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2672 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2673 break 2
2674 fi
2675 done
2676 done
2677 IFS=$as_save_IFS
2678
2679 fi
2680 fi
2681 STRIP=$ac_cv_prog_STRIP
2682 if test -n "$STRIP"; then
2683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2684 $as_echo "$STRIP" >&6; }
2685 else
2686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2687 $as_echo "no" >&6; }
2688 fi
2689
2690
2691 fi
2692 if test -z "$ac_cv_prog_STRIP"; then
2693 ac_ct_STRIP=$STRIP
2694 # Extract the first word of "strip", so it can be a program name with args.
2695 set dummy strip; ac_word=$2
2696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2697 $as_echo_n "checking for $ac_word... " >&6; }
2698 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2699 $as_echo_n "(cached) " >&6
2700 else
2701 if test -n "$ac_ct_STRIP"; then
2702 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2703 else
2704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2705 for as_dir in $PATH
2706 do
2707 IFS=$as_save_IFS
2708 test -z "$as_dir" && as_dir=.
2709 for ac_exec_ext in '' $ac_executable_extensions; do
2710 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2711 ac_cv_prog_ac_ct_STRIP="strip"
2712 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2713 break 2
2714 fi
2715 done
2716 done
2717 IFS=$as_save_IFS
2718
2719 fi
2720 fi
2721 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2722 if test -n "$ac_ct_STRIP"; then
2723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2724 $as_echo "$ac_ct_STRIP" >&6; }
2725 else
2726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2727 $as_echo "no" >&6; }
2728 fi
2729
2730 if test "x$ac_ct_STRIP" = x; then
2731 STRIP=":"
2732 else
2733 case $cross_compiling:$ac_tool_warned in
2734 yes:)
2735 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2736 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2737 ac_tool_warned=yes ;;
2738 esac
2739 STRIP=$ac_ct_STRIP
2740 fi
2741 else
2742 STRIP="$ac_cv_prog_STRIP"
2743 fi
2744
2745 fi
2746 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2747
2748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2749 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2750 if test -z "$MKDIR_P"; then
2751 if test "${ac_cv_path_mkdir+set}" = set; then :
2752 $as_echo_n "(cached) " >&6
2753 else
2754 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2755 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2756 do
2757 IFS=$as_save_IFS
2758 test -z "$as_dir" && as_dir=.
2759 for ac_prog in mkdir gmkdir; do
2760 for ac_exec_ext in '' $ac_executable_extensions; do
2761 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2762 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2763 'mkdir (GNU coreutils) '* | \
2764 'mkdir (coreutils) '* | \
2765 'mkdir (fileutils) '4.1*)
2766 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2767 break 3;;
2768 esac
2769 done
2770 done
2771 done
2772 IFS=$as_save_IFS
2773
2774 fi
2775
2776 test -d ./--version && rmdir ./--version
2777 if test "${ac_cv_path_mkdir+set}" = set; then
2778 MKDIR_P="$ac_cv_path_mkdir -p"
2779 else
2780 # As a last resort, use the slow shell script. Don't cache a
2781 # value for MKDIR_P within a source directory, because that will
2782 # break other packages using the cache if that directory is
2783 # removed, or if the value is a relative name.
2784 MKDIR_P="$ac_install_sh -d"
2785 fi
2786 fi
2787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2788 $as_echo "$MKDIR_P" >&6; }
2789
2790 mkdir_p="$MKDIR_P"
2791 case $mkdir_p in
2792 [\\/$]* | ?:[\\/]*) ;;
2793 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2794 esac
2795
2796 for ac_prog in gawk mawk nawk awk
2797 do
2798 # Extract the first word of "$ac_prog", so it can be a program name with args.
2799 set dummy $ac_prog; ac_word=$2
2800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2801 $as_echo_n "checking for $ac_word... " >&6; }
2802 if test "${ac_cv_prog_AWK+set}" = set; then :
2803 $as_echo_n "(cached) " >&6
2804 else
2805 if test -n "$AWK"; then
2806 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2807 else
2808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2809 for as_dir in $PATH
2810 do
2811 IFS=$as_save_IFS
2812 test -z "$as_dir" && as_dir=.
2813 for ac_exec_ext in '' $ac_executable_extensions; do
2814 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2815 ac_cv_prog_AWK="$ac_prog"
2816 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2817 break 2
2818 fi
2819 done
2820 done
2821 IFS=$as_save_IFS
2822
2823 fi
2824 fi
2825 AWK=$ac_cv_prog_AWK
2826 if test -n "$AWK"; then
2827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2828 $as_echo "$AWK" >&6; }
2829 else
2830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2831 $as_echo "no" >&6; }
2832 fi
2833
2834
2835 test -n "$AWK" && break
2836 done
2837
2838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2839 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2840 set x ${MAKE-make}
2841 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2842 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
2843 $as_echo_n "(cached) " >&6
2844 else
2845 cat >conftest.make <<\_ACEOF
2846 SHELL = /bin/sh
2847 all:
2848 @echo '@@@%%%=$(MAKE)=@@@%%%'
2849 _ACEOF
2850 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2851 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2852 *@@@%%%=?*=@@@%%%*)
2853 eval ac_cv_prog_make_${ac_make}_set=yes;;
2854 *)
2855 eval ac_cv_prog_make_${ac_make}_set=no;;
2856 esac
2857 rm -f conftest.make
2858 fi
2859 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2861 $as_echo "yes" >&6; }
2862 SET_MAKE=
2863 else
2864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2865 $as_echo "no" >&6; }
2866 SET_MAKE="MAKE=${MAKE-make}"
2867 fi
2868
2869 rm -rf .tst 2>/dev/null
2870 mkdir .tst 2>/dev/null
2871 if test -d .tst; then
2872 am__leading_dot=.
2873 else
2874 am__leading_dot=_
2875 fi
2876 rmdir .tst 2>/dev/null
2877
2878 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2879 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2880 # is not polluted with repeated "-I."
2881 am__isrc=' -I$(srcdir)'
2882 # test to see if srcdir already configured
2883 if test -f $srcdir/config.status; then
2884 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2885 fi
2886 fi
2887
2888 # test whether we have cygpath
2889 if test -z "$CYGPATH_W"; then
2890 if (cygpath --version) >/dev/null 2>/dev/null; then
2891 CYGPATH_W='cygpath -w'
2892 else
2893 CYGPATH_W=echo
2894 fi
2895 fi
2896
2897
2898 # Define the identity of the package.
2899 PACKAGE='ircd-hybrid'
2900 VERSION='7.3-rc1'
2901
2902
2903 cat >>confdefs.h <<_ACEOF
2904 #define PACKAGE "$PACKAGE"
2905 _ACEOF
2906
2907
2908 cat >>confdefs.h <<_ACEOF
2909 #define VERSION "$VERSION"
2910 _ACEOF
2911
2912 # Some tools Automake needs.
2913
2914 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2915
2916
2917 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2918
2919
2920 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2921
2922
2923 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2924
2925
2926 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2927
2928 # We need awk for the "check" target. The system "awk" is bad on
2929 # some platforms.
2930 # Always define AMTAR for backward compatibility.
2931
2932 AMTAR=${AMTAR-"${am_missing_run}tar"}
2933
2934 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2935
2936
2937
2938
2939
2940
2941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2942 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2943 # Check whether --enable-maintainer-mode was given.
2944 if test "${enable_maintainer_mode+set}" = set; then :
2945 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2946 else
2947 USE_MAINTAINER_MODE=no
2948 fi
2949
2950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2951 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2952 if test $USE_MAINTAINER_MODE = yes; then
2953 MAINTAINER_MODE_TRUE=
2954 MAINTAINER_MODE_FALSE='#'
2955 else
2956 MAINTAINER_MODE_TRUE='#'
2957 MAINTAINER_MODE_FALSE=
2958 fi
2959
2960 MAINT=$MAINTAINER_MODE_TRUE
2961
2962
2963 ac_config_headers="$ac_config_headers config.h"
2964
2965
2966
2967 # Checks for programs.
2968 DEPDIR="${am__leading_dot}deps"
2969
2970 ac_config_commands="$ac_config_commands depfiles"
2971
2972
2973 am_make=${MAKE-make}
2974 cat > confinc << 'END'
2975 am__doit:
2976 @echo this is the am__doit target
2977 .PHONY: am__doit
2978 END
2979 # If we don't find an include directive, just comment out the code.
2980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2981 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2982 am__include="#"
2983 am__quote=
2984 _am_result=none
2985 # First try GNU make style include.
2986 echo "include confinc" > confmf
2987 # Ignore all kinds of additional output from `make'.
2988 case `$am_make -s -f confmf 2> /dev/null` in #(
2989 *the\ am__doit\ target*)
2990 am__include=include
2991 am__quote=
2992 _am_result=GNU
2993 ;;
2994 esac
2995 # Now try BSD make style include.
2996 if test "$am__include" = "#"; then
2997 echo '.include "confinc"' > confmf
2998 case `$am_make -s -f confmf 2> /dev/null` in #(
2999 *the\ am__doit\ target*)
3000 am__include=.include
3001 am__quote="\""
3002 _am_result=BSD
3003 ;;
3004 esac
3005 fi
3006
3007
3008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3009 $as_echo "$_am_result" >&6; }
3010 rm -f confinc confmf
3011
3012 # Check whether --enable-dependency-tracking was given.
3013 if test "${enable_dependency_tracking+set}" = set; then :
3014 enableval=$enable_dependency_tracking;
3015 fi
3016
3017 if test "x$enable_dependency_tracking" != xno; then
3018 am_depcomp="$ac_aux_dir/depcomp"
3019 AMDEPBACKSLASH='\'
3020 fi
3021 if test "x$enable_dependency_tracking" != xno; then
3022 AMDEP_TRUE=
3023 AMDEP_FALSE='#'
3024 else
3025 AMDEP_TRUE='#'
3026 AMDEP_FALSE=
3027 fi
3028
3029
3030 ac_ext=c
3031 ac_cpp='$CPP $CPPFLAGS'
3032 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3033 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3034 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3035 if test -n "$ac_tool_prefix"; then
3036 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3037 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3039 $as_echo_n "checking for $ac_word... " >&6; }
3040 if test "${ac_cv_prog_CC+set}" = set; then :
3041 $as_echo_n "(cached) " >&6
3042 else
3043 if test -n "$CC"; then
3044 ac_cv_prog_CC="$CC" # Let the user override the test.
3045 else
3046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3047 for as_dir in $PATH
3048 do
3049 IFS=$as_save_IFS
3050 test -z "$as_dir" && as_dir=.
3051 for ac_exec_ext in '' $ac_executable_extensions; do
3052 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3053 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3054 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3055 break 2
3056 fi
3057 done
3058 done
3059 IFS=$as_save_IFS
3060
3061 fi
3062 fi
3063 CC=$ac_cv_prog_CC
3064 if test -n "$CC"; then
3065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3066 $as_echo "$CC" >&6; }
3067 else
3068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3069 $as_echo "no" >&6; }
3070 fi
3071
3072
3073 fi
3074 if test -z "$ac_cv_prog_CC"; then
3075 ac_ct_CC=$CC
3076 # Extract the first word of "gcc", so it can be a program name with args.
3077 set dummy gcc; ac_word=$2
3078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3079 $as_echo_n "checking for $ac_word... " >&6; }
3080 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3081 $as_echo_n "(cached) " >&6
3082 else
3083 if test -n "$ac_ct_CC"; then
3084 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3085 else
3086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3087 for as_dir in $PATH
3088 do
3089 IFS=$as_save_IFS
3090 test -z "$as_dir" && as_dir=.
3091 for ac_exec_ext in '' $ac_executable_extensions; do
3092 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3093 ac_cv_prog_ac_ct_CC="gcc"
3094 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3095 break 2
3096 fi
3097 done
3098 done
3099 IFS=$as_save_IFS
3100
3101 fi
3102 fi
3103 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3104 if test -n "$ac_ct_CC"; then
3105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3106 $as_echo "$ac_ct_CC" >&6; }
3107 else
3108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3109 $as_echo "no" >&6; }
3110 fi
3111
3112 if test "x$ac_ct_CC" = x; then
3113 CC=""
3114 else
3115 case $cross_compiling:$ac_tool_warned in
3116 yes:)
3117 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3118 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3119 ac_tool_warned=yes ;;
3120 esac
3121 CC=$ac_ct_CC
3122 fi
3123 else
3124 CC="$ac_cv_prog_CC"
3125 fi
3126
3127 if test -z "$CC"; then
3128 if test -n "$ac_tool_prefix"; then
3129 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3130 set dummy ${ac_tool_prefix}cc; ac_word=$2
3131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3132 $as_echo_n "checking for $ac_word... " >&6; }
3133 if test "${ac_cv_prog_CC+set}" = set; then :
3134 $as_echo_n "(cached) " >&6
3135 else
3136 if test -n "$CC"; then
3137 ac_cv_prog_CC="$CC" # Let the user override the test.
3138 else
3139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3140 for as_dir in $PATH
3141 do
3142 IFS=$as_save_IFS
3143 test -z "$as_dir" && as_dir=.
3144 for ac_exec_ext in '' $ac_executable_extensions; do
3145 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3146 ac_cv_prog_CC="${ac_tool_prefix}cc"
3147 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3148 break 2
3149 fi
3150 done
3151 done
3152 IFS=$as_save_IFS
3153
3154 fi
3155 fi
3156 CC=$ac_cv_prog_CC
3157 if test -n "$CC"; then
3158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3159 $as_echo "$CC" >&6; }
3160 else
3161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3162 $as_echo "no" >&6; }
3163 fi
3164
3165
3166 fi
3167 fi
3168 if test -z "$CC"; then
3169 # Extract the first word of "cc", so it can be a program name with args.
3170 set dummy cc; ac_word=$2
3171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3172 $as_echo_n "checking for $ac_word... " >&6; }
3173 if test "${ac_cv_prog_CC+set}" = set; then :
3174 $as_echo_n "(cached) " >&6
3175 else
3176 if test -n "$CC"; then
3177 ac_cv_prog_CC="$CC" # Let the user override the test.
3178 else
3179 ac_prog_rejected=no
3180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3181 for as_dir in $PATH
3182 do
3183 IFS=$as_save_IFS
3184 test -z "$as_dir" && as_dir=.
3185 for ac_exec_ext in '' $ac_executable_extensions; do
3186 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3187 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3188 ac_prog_rejected=yes
3189 continue
3190 fi
3191 ac_cv_prog_CC="cc"
3192 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3193 break 2
3194 fi
3195 done
3196 done
3197 IFS=$as_save_IFS
3198
3199 if test $ac_prog_rejected = yes; then
3200 # We found a bogon in the path, so make sure we never use it.
3201 set dummy $ac_cv_prog_CC
3202 shift
3203 if test $# != 0; then
3204 # We chose a different compiler from the bogus one.
3205 # However, it has the same basename, so the bogon will be chosen
3206 # first if we set CC to just the basename; use the full file name.
3207 shift
3208 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3209 fi
3210 fi
3211 fi
3212 fi
3213 CC=$ac_cv_prog_CC
3214 if test -n "$CC"; then
3215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3216 $as_echo "$CC" >&6; }
3217 else
3218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3219 $as_echo "no" >&6; }
3220 fi
3221
3222
3223 fi
3224 if test -z "$CC"; then
3225 if test -n "$ac_tool_prefix"; then
3226 for ac_prog in cl.exe
3227 do
3228 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3229 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3231 $as_echo_n "checking for $ac_word... " >&6; }
3232 if test "${ac_cv_prog_CC+set}" = set; then :
3233 $as_echo_n "(cached) " >&6
3234 else
3235 if test -n "$CC"; then
3236 ac_cv_prog_CC="$CC" # Let the user override the test.
3237 else
3238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3239 for as_dir in $PATH
3240 do
3241 IFS=$as_save_IFS
3242 test -z "$as_dir" && as_dir=.
3243 for ac_exec_ext in '' $ac_executable_extensions; do
3244 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3245 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3246 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3247 break 2
3248 fi
3249 done
3250 done
3251 IFS=$as_save_IFS
3252
3253 fi
3254 fi
3255 CC=$ac_cv_prog_CC
3256 if test -n "$CC"; then
3257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3258 $as_echo "$CC" >&6; }
3259 else
3260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3261 $as_echo "no" >&6; }
3262 fi
3263
3264
3265 test -n "$CC" && break
3266 done
3267 fi
3268 if test -z "$CC"; then
3269 ac_ct_CC=$CC
3270 for ac_prog in cl.exe
3271 do
3272 # Extract the first word of "$ac_prog", so it can be a program name with args.
3273 set dummy $ac_prog; ac_word=$2
3274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3275 $as_echo_n "checking for $ac_word... " >&6; }
3276 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3277 $as_echo_n "(cached) " >&6
3278 else
3279 if test -n "$ac_ct_CC"; then
3280 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3281 else
3282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3283 for as_dir in $PATH
3284 do
3285 IFS=$as_save_IFS
3286 test -z "$as_dir" && as_dir=.
3287 for ac_exec_ext in '' $ac_executable_extensions; do
3288 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3289 ac_cv_prog_ac_ct_CC="$ac_prog"
3290 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3291 break 2
3292 fi
3293 done
3294 done
3295 IFS=$as_save_IFS
3296
3297 fi
3298 fi
3299 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3300 if test -n "$ac_ct_CC"; then
3301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3302 $as_echo "$ac_ct_CC" >&6; }
3303 else
3304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3305 $as_echo "no" >&6; }
3306 fi
3307
3308
3309 test -n "$ac_ct_CC" && break
3310 done
3311
3312 if test "x$ac_ct_CC" = x; then
3313 CC=""
3314 else
3315 case $cross_compiling:$ac_tool_warned in
3316 yes:)
3317 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3318 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3319 ac_tool_warned=yes ;;
3320 esac
3321 CC=$ac_ct_CC
3322 fi
3323 fi
3324
3325 fi
3326
3327
3328 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3329 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3330 as_fn_error "no acceptable C compiler found in \$PATH
3331 See \`config.log' for more details." "$LINENO" 5; }
3332
3333 # Provide some information about the compiler.
3334 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3335 set X $ac_compile
3336 ac_compiler=$2
3337 for ac_option in --version -v -V -qversion; do
3338 { { ac_try="$ac_compiler $ac_option >&5"
3339 case "(($ac_try" in
3340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3341 *) ac_try_echo=$ac_try;;
3342 esac
3343 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3344 $as_echo "$ac_try_echo"; } >&5
3345 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3346 ac_status=$?
3347 if test -s conftest.err; then
3348 sed '10a\
3349 ... rest of stderr output deleted ...
3350 10q' conftest.err >conftest.er1
3351 cat conftest.er1 >&5
3352 fi
3353 rm -f conftest.er1 conftest.err
3354 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3355 test $ac_status = 0; }
3356 done
3357
3358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3359 /* end confdefs.h. */
3360
3361 int
3362 main ()
3363 {
3364
3365 ;
3366 return 0;
3367 }
3368 _ACEOF
3369 ac_clean_files_save=$ac_clean_files
3370 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3371 # Try to create an executable without -o first, disregard a.out.
3372 # It will help us diagnose broken compilers, and finding out an intuition
3373 # of exeext.
3374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3375 $as_echo_n "checking whether the C compiler works... " >&6; }
3376 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3377
3378 # The possible output files:
3379 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3380
3381 ac_rmfiles=
3382 for ac_file in $ac_files
3383 do
3384 case $ac_file in
3385 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3386 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3387 esac
3388 done
3389 rm -f $ac_rmfiles
3390
3391 if { { ac_try="$ac_link_default"
3392 case "(($ac_try" in
3393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3394 *) ac_try_echo=$ac_try;;
3395 esac
3396 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3397 $as_echo "$ac_try_echo"; } >&5
3398 (eval "$ac_link_default") 2>&5
3399 ac_status=$?
3400 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3401 test $ac_status = 0; }; then :
3402 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3403 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3404 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3405 # so that the user can short-circuit this test for compilers unknown to
3406 # Autoconf.
3407 for ac_file in $ac_files ''
3408 do
3409 test -f "$ac_file" || continue
3410 case $ac_file in
3411 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3412 ;;
3413 [ab].out )
3414 # We found the default executable, but exeext='' is most
3415 # certainly right.
3416 break;;
3417 *.* )
3418 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3419 then :; else
3420 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3421 fi
3422 # We set ac_cv_exeext here because the later test for it is not
3423 # safe: cross compilers may not add the suffix if given an `-o'
3424 # argument, so we may need to know it at that point already.
3425 # Even if this section looks crufty: it has the advantage of
3426 # actually working.
3427 break;;
3428 * )
3429 break;;
3430 esac
3431 done
3432 test "$ac_cv_exeext" = no && ac_cv_exeext=
3433
3434 else
3435 ac_file=''
3436 fi
3437 if test -z "$ac_file"; then :
3438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3439 $as_echo "no" >&6; }
3440 $as_echo "$as_me: failed program was:" >&5
3441 sed 's/^/| /' conftest.$ac_ext >&5
3442
3443 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3444 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3445 { as_fn_set_status 77
3446 as_fn_error "C compiler cannot create executables
3447 See \`config.log' for more details." "$LINENO" 5; }; }
3448 else
3449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3450 $as_echo "yes" >&6; }
3451 fi
3452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3453 $as_echo_n "checking for C compiler default output file name... " >&6; }
3454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3455 $as_echo "$ac_file" >&6; }
3456 ac_exeext=$ac_cv_exeext
3457
3458 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3459 ac_clean_files=$ac_clean_files_save
3460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3461 $as_echo_n "checking for suffix of executables... " >&6; }
3462 if { { ac_try="$ac_link"
3463 case "(($ac_try" in
3464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3465 *) ac_try_echo=$ac_try;;
3466 esac
3467 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3468 $as_echo "$ac_try_echo"; } >&5
3469 (eval "$ac_link") 2>&5
3470 ac_status=$?
3471 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3472 test $ac_status = 0; }; then :
3473 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3474 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3475 # work properly (i.e., refer to `conftest.exe'), while it won't with
3476 # `rm'.
3477 for ac_file in conftest.exe conftest conftest.*; do
3478 test -f "$ac_file" || continue
3479 case $ac_file in
3480 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3481 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3482 break;;
3483 * ) break;;
3484 esac
3485 done
3486 else
3487 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3488 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3489 as_fn_error "cannot compute suffix of executables: cannot compile and link
3490 See \`config.log' for more details." "$LINENO" 5; }
3491 fi
3492 rm -f conftest conftest$ac_cv_exeext
3493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3494 $as_echo "$ac_cv_exeext" >&6; }
3495
3496 rm -f conftest.$ac_ext
3497 EXEEXT=$ac_cv_exeext
3498 ac_exeext=$EXEEXT
3499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3500 /* end confdefs.h. */
3501 #include <stdio.h>
3502 int
3503 main ()
3504 {
3505 FILE *f = fopen ("conftest.out", "w");
3506 return ferror (f) || fclose (f) != 0;
3507
3508 ;
3509 return 0;
3510 }
3511 _ACEOF
3512 ac_clean_files="$ac_clean_files conftest.out"
3513 # Check that the compiler produces executables we can run. If not, either
3514 # the compiler is broken, or we cross compile.
3515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3516 $as_echo_n "checking whether we are cross compiling... " >&6; }
3517 if test "$cross_compiling" != yes; then
3518 { { ac_try="$ac_link"
3519 case "(($ac_try" in
3520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3521 *) ac_try_echo=$ac_try;;
3522 esac
3523 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3524 $as_echo "$ac_try_echo"; } >&5
3525 (eval "$ac_link") 2>&5
3526 ac_status=$?
3527 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3528 test $ac_status = 0; }
3529 if { ac_try='./conftest$ac_cv_exeext'
3530 { { case "(($ac_try" in
3531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3532 *) ac_try_echo=$ac_try;;
3533 esac
3534 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3535 $as_echo "$ac_try_echo"; } >&5
3536 (eval "$ac_try") 2>&5
3537 ac_status=$?
3538 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3539 test $ac_status = 0; }; }; then
3540 cross_compiling=no
3541 else
3542 if test "$cross_compiling" = maybe; then
3543 cross_compiling=yes
3544 else
3545 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3546 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3547 as_fn_error "cannot run C compiled programs.
3548 If you meant to cross compile, use \`--host'.
3549 See \`config.log' for more details." "$LINENO" 5; }
3550 fi
3551 fi
3552 fi
3553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3554 $as_echo "$cross_compiling" >&6; }
3555
3556 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3557 ac_clean_files=$ac_clean_files_save
3558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3559 $as_echo_n "checking for suffix of object files... " >&6; }
3560 if test "${ac_cv_objext+set}" = set; then :
3561 $as_echo_n "(cached) " >&6
3562 else
3563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3564 /* end confdefs.h. */
3565
3566 int
3567 main ()
3568 {
3569
3570 ;
3571 return 0;
3572 }
3573 _ACEOF
3574 rm -f conftest.o conftest.obj
3575 if { { ac_try="$ac_compile"
3576 case "(($ac_try" in
3577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3578 *) ac_try_echo=$ac_try;;
3579 esac
3580 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3581 $as_echo "$ac_try_echo"; } >&5
3582 (eval "$ac_compile") 2>&5
3583 ac_status=$?
3584 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3585 test $ac_status = 0; }; then :
3586 for ac_file in conftest.o conftest.obj conftest.*; do
3587 test -f "$ac_file" || continue;
3588 case $ac_file in
3589 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3590 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3591 break;;
3592 esac
3593 done
3594 else
3595 $as_echo "$as_me: failed program was:" >&5
3596 sed 's/^/| /' conftest.$ac_ext >&5
3597
3598 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3599 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3600 as_fn_error "cannot compute suffix of object files: cannot compile
3601 See \`config.log' for more details." "$LINENO" 5; }
3602 fi
3603 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3604 fi
3605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3606 $as_echo "$ac_cv_objext" >&6; }
3607 OBJEXT=$ac_cv_objext
3608 ac_objext=$OBJEXT
3609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3610 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3611 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3612 $as_echo_n "(cached) " >&6
3613 else
3614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3615 /* end confdefs.h. */
3616
3617 int
3618 main ()
3619 {
3620 #ifndef __GNUC__
3621 choke me
3622 #endif
3623
3624 ;
3625 return 0;
3626 }
3627 _ACEOF
3628 if ac_fn_c_try_compile "$LINENO"; then :
3629 ac_compiler_gnu=yes
3630 else
3631 ac_compiler_gnu=no
3632 fi
3633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3634 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3635
3636 fi
3637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3638 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3639 if test $ac_compiler_gnu = yes; then
3640 GCC=yes
3641 else
3642 GCC=
3643 fi
3644 ac_test_CFLAGS=${CFLAGS+set}
3645 ac_save_CFLAGS=$CFLAGS
3646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3647 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3648 if test "${ac_cv_prog_cc_g+set}" = set; then :
3649 $as_echo_n "(cached) " >&6
3650 else
3651 ac_save_c_werror_flag=$ac_c_werror_flag
3652 ac_c_werror_flag=yes
3653 ac_cv_prog_cc_g=no
3654 CFLAGS="-g"
3655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3656 /* end confdefs.h. */
3657
3658 int
3659 main ()
3660 {
3661
3662 ;
3663 return 0;
3664 }
3665 _ACEOF
3666 if ac_fn_c_try_compile "$LINENO"; then :
3667 ac_cv_prog_cc_g=yes
3668 else
3669 CFLAGS=""
3670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3671 /* end confdefs.h. */
3672
3673 int
3674 main ()
3675 {
3676
3677 ;
3678 return 0;
3679 }
3680 _ACEOF
3681 if ac_fn_c_try_compile "$LINENO"; then :
3682
3683 else
3684 ac_c_werror_flag=$ac_save_c_werror_flag
3685 CFLAGS="-g"
3686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3687 /* end confdefs.h. */
3688
3689 int
3690 main ()
3691 {
3692
3693 ;
3694 return 0;
3695 }
3696 _ACEOF
3697 if ac_fn_c_try_compile "$LINENO"; then :
3698 ac_cv_prog_cc_g=yes
3699 fi
3700 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3701 fi
3702 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3703 fi
3704 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3705 ac_c_werror_flag=$ac_save_c_werror_flag
3706 fi
3707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3708 $as_echo "$ac_cv_prog_cc_g" >&6; }
3709 if test "$ac_test_CFLAGS" = set; then
3710 CFLAGS=$ac_save_CFLAGS
3711 elif test $ac_cv_prog_cc_g = yes; then
3712 if test "$GCC" = yes; then
3713 CFLAGS="-g -O2"
3714 else
3715 CFLAGS="-g"
3716 fi
3717 else
3718 if test "$GCC" = yes; then
3719 CFLAGS="-O2"
3720 else
3721 CFLAGS=
3722 fi
3723 fi
3724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3725 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3726 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3727 $as_echo_n "(cached) " >&6
3728 else
3729 ac_cv_prog_cc_c89=no
3730 ac_save_CC=$CC
3731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3732 /* end confdefs.h. */
3733 #include <stdarg.h>
3734 #include <stdio.h>
3735 #include <sys/types.h>
3736 #include <sys/stat.h>
3737 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3738 struct buf { int x; };
3739 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3740 static char *e (p, i)
3741 char **p;
3742 int i;
3743 {
3744 return p[i];
3745 }
3746 static char *f (char * (*g) (char **, int), char **p, ...)
3747 {
3748 char *s;
3749 va_list v;
3750 va_start (v,p);
3751 s = g (p, va_arg (v,int));
3752 va_end (v);
3753 return s;
3754 }
3755
3756 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3757 function prototypes and stuff, but not '\xHH' hex character constants.
3758 These don't provoke an error unfortunately, instead are silently treated
3759 as 'x'. The following induces an error, until -std is added to get
3760 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3761 array size at least. It's necessary to write '\x00'==0 to get something
3762 that's true only with -std. */
3763 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3764
3765 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3766 inside strings and character constants. */
3767 #define FOO(x) 'x'
3768 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3769
3770 int test (int i, double x);
3771 struct s1 {int (*f) (int a);};
3772 struct s2 {int (*f) (double a);};
3773 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3774 int argc;
3775 char **argv;
3776 int
3777 main ()
3778 {
3779 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3780 ;
3781 return 0;
3782 }
3783 _ACEOF
3784 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3785 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3786 do
3787 CC="$ac_save_CC $ac_arg"
3788 if ac_fn_c_try_compile "$LINENO"; then :
3789 ac_cv_prog_cc_c89=$ac_arg
3790 fi
3791 rm -f core conftest.err conftest.$ac_objext
3792 test "x$ac_cv_prog_cc_c89" != "xno" && break
3793 done
3794 rm -f conftest.$ac_ext
3795 CC=$ac_save_CC
3796
3797 fi
3798 # AC_CACHE_VAL
3799 case "x$ac_cv_prog_cc_c89" in
3800 x)
3801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3802 $as_echo "none needed" >&6; } ;;
3803 xno)
3804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3805 $as_echo "unsupported" >&6; } ;;
3806 *)
3807 CC="$CC $ac_cv_prog_cc_c89"
3808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3809 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3810 esac
3811 if test "x$ac_cv_prog_cc_c89" != xno; then :
3812
3813 fi
3814
3815 ac_ext=c
3816 ac_cpp='$CPP $CPPFLAGS'
3817 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3818 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3819 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3820
3821 depcc="$CC" am_compiler_list=
3822
3823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3824 $as_echo_n "checking dependency style of $depcc... " >&6; }
3825 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3826 $as_echo_n "(cached) " >&6
3827 else
3828 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3829 # We make a subdir and do the tests there. Otherwise we can end up
3830 # making bogus files that we don't know about and never remove. For
3831 # instance it was reported that on HP-UX the gcc test will end up
3832 # making a dummy file named `D' -- because `-MD' means `put the output
3833 # in D'.
3834 mkdir conftest.dir
3835 # Copy depcomp to subdir because otherwise we won't find it if we're
3836 # using a relative directory.
3837 cp "$am_depcomp" conftest.dir
3838 cd conftest.dir
3839 # We will build objects and dependencies in a subdirectory because
3840 # it helps to detect inapplicable dependency modes. For instance
3841 # both Tru64's cc and ICC support -MD to output dependencies as a
3842 # side effect of compilation, but ICC will put the dependencies in
3843 # the current directory while Tru64 will put them in the object
3844 # directory.
3845 mkdir sub
3846
3847 am_cv_CC_dependencies_compiler_type=none
3848 if test "$am_compiler_list" = ""; then
3849 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3850 fi
3851 am__universal=false
3852 case " $depcc " in #(
3853 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3854 esac
3855
3856 for depmode in $am_compiler_list; do
3857 # Setup a source with many dependencies, because some compilers
3858 # like to wrap large dependency lists on column 80 (with \), and
3859 # we should not choose a depcomp mode which is confused by this.
3860 #
3861 # We need to recreate these files for each test, as the compiler may
3862 # overwrite some of them when testing with obscure command lines.
3863 # This happens at least with the AIX C compiler.
3864 : > sub/conftest.c
3865 for i in 1 2 3 4 5 6; do
3866 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3867 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3868 # Solaris 8's {/usr,}/bin/sh.
3869 touch sub/conftst$i.h
3870 done
3871 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3872
3873 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3874 # mode. It turns out that the SunPro C++ compiler does not properly
3875 # handle `-M -o', and we need to detect this. Also, some Intel
3876 # versions had trouble with output in subdirs
3877 am__obj=sub/conftest.${OBJEXT-o}
3878 am__minus_obj="-o $am__obj"
3879 case $depmode in
3880 gcc)
3881 # This depmode causes a compiler race in universal mode.
3882 test "$am__universal" = false || continue
3883 ;;
3884 nosideeffect)
3885 # after this tag, mechanisms are not by side-effect, so they'll
3886 # only be used when explicitly requested
3887 if test "x$enable_dependency_tracking" = xyes; then
3888 continue
3889 else
3890 break
3891 fi
3892 ;;
3893 msvisualcpp | msvcmsys)
3894 # This compiler won't grok `-c -o', but also, the minuso test has
3895 # not run yet. These depmodes are late enough in the game, and
3896 # so weak that their functioning should not be impacted.
3897 am__obj=conftest.${OBJEXT-o}
3898 am__minus_obj=
3899 ;;
3900 none) break ;;
3901 esac
3902 if depmode=$depmode \
3903 source=sub/conftest.c object=$am__obj \
3904 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3905 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3906 >/dev/null 2>conftest.err &&
3907 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3908 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3909 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3910 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3911 # icc doesn't choke on unknown options, it will just issue warnings
3912 # or remarks (even with -Werror). So we grep stderr for any message
3913 # that says an option was ignored or not supported.
3914 # When given -MP, icc 7.0 and 7.1 complain thusly:
3915 # icc: Command line warning: ignoring option '-M'; no argument required
3916 # The diagnosis changed in icc 8.0:
3917 # icc: Command line remark: option '-MP' not supported
3918 if (grep 'ignoring option' conftest.err ||
3919 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3920 am_cv_CC_dependencies_compiler_type=$depmode
3921 break
3922 fi
3923 fi
3924 done
3925
3926 cd ..
3927 rm -rf conftest.dir
3928 else
3929 am_cv_CC_dependencies_compiler_type=none
3930 fi
3931
3932 fi
3933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3934 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3935 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3936
3937 if
3938 test "x$enable_dependency_tracking" != xno \
3939 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3940 am__fastdepCC_TRUE=
3941 am__fastdepCC_FALSE='#'
3942 else
3943 am__fastdepCC_TRUE='#'
3944 am__fastdepCC_FALSE=
3945 fi
3946
3947
3948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3949 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3950 if test "${ac_cv_prog_cc_c99+set}" = set; then :
3951 $as_echo_n "(cached) " >&6
3952 else
3953 ac_cv_prog_cc_c99=no
3954 ac_save_CC=$CC
3955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3956 /* end confdefs.h. */
3957 #include <stdarg.h>
3958 #include <stdbool.h>
3959 #include <stdlib.h>
3960 #include <wchar.h>
3961 #include <stdio.h>
3962
3963 // Check varargs macros. These examples are taken from C99 6.10.3.5.
3964 #define debug(...) fprintf (stderr, __VA_ARGS__)
3965 #define showlist(...) puts (#__VA_ARGS__)
3966 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3967 static void
3968 test_varargs_macros (void)
3969 {
3970 int x = 1234;
3971 int y = 5678;
3972 debug ("Flag");
3973 debug ("X = %d\n", x);
3974 showlist (The first, second, and third items.);
3975 report (x>y, "x is %d but y is %d", x, y);
3976 }
3977
3978 // Check long long types.
3979 #define BIG64 18446744073709551615ull
3980 #define BIG32 4294967295ul
3981 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3982 #if !BIG_OK
3983 your preprocessor is broken;
3984 #endif
3985 #if BIG_OK
3986 #else
3987 your preprocessor is broken;
3988 #endif
3989 static long long int bignum = -9223372036854775807LL;
3990 static unsigned long long int ubignum = BIG64;
3991
3992 struct incomplete_array
3993 {
3994 int datasize;
3995 double data[];
3996 };
3997
3998 struct named_init {
3999 int number;
4000 const wchar_t *name;
4001 double average;
4002 };
4003
4004 typedef const char *ccp;
4005
4006 static inline int
4007 test_restrict (ccp restrict text)
4008 {
4009 // See if C++-style comments work.
4010 // Iterate through items via the restricted pointer.
4011 // Also check for declarations in for loops.
4012 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4013 continue;
4014 return 0;
4015 }
4016
4017 // Check varargs and va_copy.
4018 static void
4019 test_varargs (const char *format, ...)
4020 {
4021 va_list args;
4022 va_start (args, format);
4023 va_list args_copy;
4024 va_copy (args_copy, args);
4025
4026 const char *str;
4027 int number;
4028 float fnumber;
4029
4030 while (*format)
4031 {
4032 switch (*format++)
4033 {
4034 case 's': // string
4035 str = va_arg (args_copy, const char *);
4036 break;
4037 case 'd': // int
4038 number = va_arg (args_copy, int);
4039 break;
4040 case 'f': // float
4041 fnumber = va_arg (args_copy, double);
4042 break;
4043 default:
4044 break;
4045 }
4046 }
4047 va_end (args_copy);
4048 va_end (args);
4049 }
4050
4051 int
4052 main ()
4053 {
4054
4055 // Check bool.
4056 _Bool success = false;
4057
4058 // Check restrict.
4059 if (test_restrict ("String literal") == 0)
4060 success = true;
4061 char *restrict newvar = "Another string";
4062
4063 // Check varargs.
4064 test_varargs ("s, d' f .", "string", 65, 34.234);
4065 test_varargs_macros ();
4066
4067 // Check flexible array members.
4068 struct incomplete_array *ia =
4069 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4070 ia->datasize = 10;
4071 for (int i = 0; i < ia->datasize; ++i)
4072 ia->data[i] = i * 1.234;
4073
4074 // Check named initializers.
4075 struct named_init ni = {
4076 .number = 34,
4077 .name = L"Test wide string",
4078 .average = 543.34343,
4079 };
4080
4081 ni.number = 58;
4082
4083 int dynamic_array[ni.number];
4084 dynamic_array[ni.number - 1] = 543;
4085
4086 // work around unused variable warnings
4087 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4088 || dynamic_array[ni.number - 1] != 543);
4089
4090 ;
4091 return 0;
4092 }
4093 _ACEOF
4094 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
4095 do
4096 CC="$ac_save_CC $ac_arg"
4097 if ac_fn_c_try_compile "$LINENO"; then :
4098 ac_cv_prog_cc_c99=$ac_arg
4099 fi
4100 rm -f core conftest.err conftest.$ac_objext
4101 test "x$ac_cv_prog_cc_c99" != "xno" && break
4102 done
4103 rm -f conftest.$ac_ext
4104 CC=$ac_save_CC
4105
4106 fi
4107 # AC_CACHE_VAL
4108 case "x$ac_cv_prog_cc_c99" in
4109 x)
4110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4111 $as_echo "none needed" >&6; } ;;
4112 xno)
4113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4114 $as_echo "unsupported" >&6; } ;;
4115 *)
4116 CC="$CC $ac_cv_prog_cc_c99"
4117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4118 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4119 esac
4120 if test "x$ac_cv_prog_cc_c99" != xno; then :
4121
4122 fi
4123
4124
4125 if test "$ac_cv_prog_cc_c99" = "no"; then :
4126 as_fn_error "no C99 compiler found. Aborting." "$LINENO" 5
4127 fi
4128 for ac_prog in 'bison -y' byacc
4129 do
4130 # Extract the first word of "$ac_prog", so it can be a program name with args.
4131 set dummy $ac_prog; ac_word=$2
4132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4133 $as_echo_n "checking for $ac_word... " >&6; }
4134 if test "${ac_cv_prog_YACC+set}" = set; then :
4135 $as_echo_n "(cached) " >&6
4136 else
4137 if test -n "$YACC"; then
4138 ac_cv_prog_YACC="$YACC" # Let the user override the test.
4139 else
4140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4141 for as_dir in $PATH
4142 do
4143 IFS=$as_save_IFS
4144 test -z "$as_dir" && as_dir=.
4145 for ac_exec_ext in '' $ac_executable_extensions; do
4146 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4147 ac_cv_prog_YACC="$ac_prog"
4148 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4149 break 2
4150 fi
4151 done
4152 done
4153 IFS=$as_save_IFS
4154
4155 fi
4156 fi
4157 YACC=$ac_cv_prog_YACC
4158 if test -n "$YACC"; then
4159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
4160 $as_echo "$YACC" >&6; }
4161 else
4162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4163 $as_echo "no" >&6; }
4164 fi
4165
4166
4167 test -n "$YACC" && break
4168 done
4169 test -n "$YACC" || YACC="yacc"
4170
4171
4172 for ac_prog in flex lex
4173 do
4174 # Extract the first word of "$ac_prog", so it can be a program name with args.
4175 set dummy $ac_prog; ac_word=$2
4176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4177 $as_echo_n "checking for $ac_word... " >&6; }
4178 if test "${ac_cv_prog_LEX+set}" = set; then :
4179 $as_echo_n "(cached) " >&6
4180 else
4181 if test -n "$LEX"; then
4182 ac_cv_prog_LEX="$LEX" # Let the user override the test.
4183 else
4184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4185 for as_dir in $PATH
4186 do
4187 IFS=$as_save_IFS
4188 test -z "$as_dir" && as_dir=.
4189 for ac_exec_ext in '' $ac_executable_extensions; do
4190 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4191 ac_cv_prog_LEX="$ac_prog"
4192 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4193 break 2
4194 fi
4195 done
4196 done
4197 IFS=$as_save_IFS
4198
4199 fi
4200 fi
4201 LEX=$ac_cv_prog_LEX
4202 if test -n "$LEX"; then
4203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
4204 $as_echo "$LEX" >&6; }
4205 else
4206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4207 $as_echo "no" >&6; }
4208 fi
4209
4210
4211 test -n "$LEX" && break
4212 done
4213 test -n "$LEX" || LEX=":"
4214
4215 if test "x$LEX" != "x:"; then
4216 cat >conftest.l <<_ACEOF
4217 %%
4218 a { ECHO; }
4219 b { REJECT; }
4220 c { yymore (); }
4221 d { yyless (1); }
4222 e { yyless (input () != 0); }
4223 f { unput (yytext[0]); }
4224 . { BEGIN INITIAL; }
4225 %%
4226 #ifdef YYTEXT_POINTER
4227 extern char *yytext;
4228 #endif
4229 int
4230 main (void)
4231 {
4232 return ! yylex () + ! yywrap ();
4233 }
4234 _ACEOF
4235 { { ac_try="$LEX conftest.l"
4236 case "(($ac_try" in
4237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4238 *) ac_try_echo=$ac_try;;
4239 esac
4240 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4241 $as_echo "$ac_try_echo"; } >&5
4242 (eval "$LEX conftest.l") 2>&5
4243 ac_status=$?
4244 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4245 test $ac_status = 0; }
4246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
4247 $as_echo_n "checking lex output file root... " >&6; }
4248 if test "${ac_cv_prog_lex_root+set}" = set; then :
4249 $as_echo_n "(cached) " >&6
4250 else
4251
4252 if test -f lex.yy.c; then
4253 ac_cv_prog_lex_root=lex.yy
4254 elif test -f lexyy.c; then
4255 ac_cv_prog_lex_root=lexyy
4256 else
4257 as_fn_error "cannot find output from $LEX; giving up" "$LINENO" 5
4258 fi
4259 fi
4260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
4261 $as_echo "$ac_cv_prog_lex_root" >&6; }
4262 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
4263
4264 if test -z "${LEXLIB+set}"; then
4265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
4266 $as_echo_n "checking lex library... " >&6; }
4267 if test "${ac_cv_lib_lex+set}" = set; then :
4268 $as_echo_n "(cached) " >&6
4269 else
4270
4271 ac_save_LIBS=$LIBS
4272 ac_cv_lib_lex='none needed'
4273 for ac_lib in '' -lfl -ll; do
4274 LIBS="$ac_lib $ac_save_LIBS"
4275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4276 /* end confdefs.h. */
4277 `cat $LEX_OUTPUT_ROOT.c`
4278 _ACEOF
4279 if ac_fn_c_try_link "$LINENO"; then :
4280 ac_cv_lib_lex=$ac_lib
4281 fi
4282 rm -f core conftest.err conftest.$ac_objext \
4283 conftest$ac_exeext conftest.$ac_ext
4284 test "$ac_cv_lib_lex" != 'none needed' && break
4285 done
4286 LIBS=$ac_save_LIBS
4287
4288 fi
4289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
4290 $as_echo "$ac_cv_lib_lex" >&6; }
4291 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
4292 fi
4293
4294
4295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
4296 $as_echo_n "checking whether yytext is a pointer... " >&6; }
4297 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then :
4298 $as_echo_n "(cached) " >&6
4299 else
4300 # POSIX says lex can declare yytext either as a pointer or an array; the
4301 # default is implementation-dependent. Figure out which it is, since
4302 # not all implementations provide the %pointer and %array declarations.
4303 ac_cv_prog_lex_yytext_pointer=no
4304 ac_save_LIBS=$LIBS
4305 LIBS="$LEXLIB $ac_save_LIBS"
4306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4307 /* end confdefs.h. */
4308 #define YYTEXT_POINTER 1
4309 `cat $LEX_OUTPUT_ROOT.c`
4310 _ACEOF
4311 if ac_fn_c_try_link "$LINENO"; then :
4312 ac_cv_prog_lex_yytext_pointer=yes
4313 fi
4314 rm -f core conftest.err conftest.$ac_objext \
4315 conftest$ac_exeext conftest.$ac_ext
4316 LIBS=$ac_save_LIBS
4317
4318 fi
4319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
4320 $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
4321 if test $ac_cv_prog_lex_yytext_pointer = yes; then
4322
4323 $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
4324
4325 fi
4326 rm -f conftest.l $LEX_OUTPUT_ROOT.c
4327
4328 fi
4329 if test "$LEX" = :; then
4330 LEX=${am_missing_run}flex
4331 fi
4332
4333
4334 # Initializing libtool.
4335
4336
4337
4338
4339
4340
4341
4342 case `pwd` in
4343 *\ * | *\ *)
4344 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4345 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4346 esac
4347
4348
4349
4350 macro_version='2.2.10'
4351 macro_revision='1.3175'
4352
4353
4354
4355
4356
4357
4358
4359
4360
4361
4362
4363
4364
4365 ltmain="$ac_aux_dir/ltmain.sh"
4366
4367 # Make sure we can run config.sub.
4368 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4369 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4370
4371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4372 $as_echo_n "checking build system type... " >&6; }
4373 if test "${ac_cv_build+set}" = set; then :
4374 $as_echo_n "(cached) " >&6
4375 else
4376 ac_build_alias=$build_alias
4377 test "x$ac_build_alias" = x &&
4378 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4379 test "x$ac_build_alias" = x &&
4380 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
4381 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4382 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4383
4384 fi
4385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4386 $as_echo "$ac_cv_build" >&6; }
4387 case $ac_cv_build in
4388 *-*-*) ;;
4389 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
4390 esac
4391 build=$ac_cv_build
4392 ac_save_IFS=$IFS; IFS='-'
4393 set x $ac_cv_build
4394 shift
4395 build_cpu=$1
4396 build_vendor=$2
4397 shift; shift
4398 # Remember, the first character of IFS is used to create $*,
4399 # except with old shells:
4400 build_os=$*
4401 IFS=$ac_save_IFS
4402 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4403
4404
4405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4406 $as_echo_n "checking host system type... " >&6; }
4407 if test "${ac_cv_host+set}" = set; then :
4408 $as_echo_n "(cached) " >&6
4409 else
4410 if test "x$host_alias" = x; then
4411 ac_cv_host=$ac_cv_build
4412 else
4413 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4414 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4415 fi
4416
4417 fi
4418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4419 $as_echo "$ac_cv_host" >&6; }
4420 case $ac_cv_host in
4421 *-*-*) ;;
4422 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
4423 esac
4424 host=$ac_cv_host
4425 ac_save_IFS=$IFS; IFS='-'
4426 set x $ac_cv_host
4427 shift
4428 host_cpu=$1
4429 host_vendor=$2
4430 shift; shift
4431 # Remember, the first character of IFS is used to create $*,
4432 # except with old shells:
4433 host_os=$*
4434 IFS=$ac_save_IFS
4435 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4436
4437
4438 # Backslashify metacharacters that are still active within
4439 # double-quoted strings.
4440 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4441
4442 # Same as above, but do not quote variable references.
4443 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4444
4445 # Sed substitution to delay expansion of an escaped shell variable in a
4446 # double_quote_subst'ed string.
4447 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4448
4449 # Sed substitution to delay expansion of an escaped single quote.
4450 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4451
4452 # Sed substitution to avoid accidental globbing in evaled expressions
4453 no_glob_subst='s/\*/\\\*/g'
4454
4455 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4456 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4457 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4458
4459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4460 $as_echo_n "checking how to print strings... " >&6; }
4461 # Test print first, because it will be a builtin if present.
4462 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
4463 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4464 ECHO='print -r --'
4465 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4466 ECHO='printf %s\n'
4467 else
4468 # Use this function as a fallback that always works.
4469 func_fallback_echo ()
4470 {
4471 eval 'cat <<_LTECHO_EOF
4472 $1
4473 _LTECHO_EOF'
4474 }
4475 ECHO='func_fallback_echo'
4476 fi
4477
4478 # func_echo_all arg...
4479 # Invoke $ECHO with all args, space-separated.
4480 func_echo_all ()
4481 {
4482 $ECHO ""
4483 }
4484
4485 case "$ECHO" in
4486 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4487 $as_echo "printf" >&6; } ;;
4488 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4489 $as_echo "print -r" >&6; } ;;
4490 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4491 $as_echo "cat" >&6; } ;;
4492 esac
4493
4494
4495
4496
4497
4498
4499
4500
4501
4502
4503
4504
4505
4506
4507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4508 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4509 if test "${ac_cv_path_SED+set}" = set; then :
4510 $as_echo_n "(cached) " >&6
4511 else
4512 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4513 for ac_i in 1 2 3 4 5 6 7; do
4514 ac_script="$ac_script$as_nl$ac_script"
4515 done
4516 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4517 { ac_script=; unset ac_script;}
4518 if test -z "$SED"; then
4519 ac_path_SED_found=false
4520 # Loop through the user's path and test for each of PROGNAME-LIST
4521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4522 for as_dir in $PATH
4523 do
4524 IFS=$as_save_IFS
4525 test -z "$as_dir" && as_dir=.
4526 for ac_prog in sed gsed; do
4527 for ac_exec_ext in '' $ac_executable_extensions; do
4528 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4529 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4530 # Check for GNU ac_path_SED and select it if it is found.
4531 # Check for GNU $ac_path_SED
4532 case `"$ac_path_SED" --version 2>&1` in
4533 *GNU*)
4534 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4535 *)
4536 ac_count=0
4537 $as_echo_n 0123456789 >"conftest.in"
4538 while :
4539 do
4540 cat "conftest.in" "conftest.in" >"conftest.tmp"
4541 mv "conftest.tmp" "conftest.in"
4542 cp "conftest.in" "conftest.nl"
4543 $as_echo '' >> "conftest.nl"
4544 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4545 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4546 as_fn_arith $ac_count + 1 && ac_count=$as_val
4547 if test $ac_count -gt ${ac_path_SED_max-0}; then
4548 # Best one so far, save it but keep looking for a better one
4549 ac_cv_path_SED="$ac_path_SED"
4550 ac_path_SED_max=$ac_count
4551 fi
4552 # 10*(2^10) chars as input seems more than enough
4553 test $ac_count -gt 10 && break
4554 done
4555 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4556 esac
4557
4558 $ac_path_SED_found && break 3
4559 done
4560 done
4561 done
4562 IFS=$as_save_IFS
4563 if test -z "$ac_cv_path_SED"; then
4564 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
4565 fi
4566 else
4567 ac_cv_path_SED=$SED
4568 fi
4569
4570 fi
4571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4572 $as_echo "$ac_cv_path_SED" >&6; }
4573 SED="$ac_cv_path_SED"
4574 rm -f conftest.sed
4575
4576 test -z "$SED" && SED=sed
4577 Xsed="$SED -e 1s/^X//"
4578
4579
4580
4581
4582
4583
4584
4585
4586
4587
4588
4589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4590 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4591 if test "${ac_cv_path_GREP+set}" = set; then :
4592 $as_echo_n "(cached) " >&6
4593 else
4594 if test -z "$GREP"; then
4595 ac_path_GREP_found=false
4596 # Loop through the user's path and test for each of PROGNAME-LIST
4597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4598 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4599 do
4600 IFS=$as_save_IFS
4601 test -z "$as_dir" && as_dir=.
4602 for ac_prog in grep ggrep; do
4603 for ac_exec_ext in '' $ac_executable_extensions; do
4604 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4605 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4606 # Check for GNU ac_path_GREP and select it if it is found.
4607 # Check for GNU $ac_path_GREP
4608 case `"$ac_path_GREP" --version 2>&1` in
4609 *GNU*)
4610 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4611 *)
4612 ac_count=0
4613 $as_echo_n 0123456789 >"conftest.in"
4614 while :
4615 do
4616 cat "conftest.in" "conftest.in" >"conftest.tmp"
4617 mv "conftest.tmp" "conftest.in"
4618 cp "conftest.in" "conftest.nl"
4619 $as_echo 'GREP' >> "conftest.nl"
4620 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4621 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4622 as_fn_arith $ac_count + 1 && ac_count=$as_val
4623 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4624 # Best one so far, save it but keep looking for a better one
4625 ac_cv_path_GREP="$ac_path_GREP"
4626 ac_path_GREP_max=$ac_count
4627 fi
4628 # 10*(2^10) chars as input seems more than enough
4629 test $ac_count -gt 10 && break
4630 done
4631 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4632 esac
4633
4634 $ac_path_GREP_found && break 3
4635 done
4636 done
4637 done
4638 IFS=$as_save_IFS
4639 if test -z "$ac_cv_path_GREP"; then
4640 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4641 fi
4642 else
4643 ac_cv_path_GREP=$GREP
4644 fi
4645
4646 fi
4647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4648 $as_echo "$ac_cv_path_GREP" >&6; }
4649 GREP="$ac_cv_path_GREP"
4650
4651
4652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4653 $as_echo_n "checking for egrep... " >&6; }
4654 if test "${ac_cv_path_EGREP+set}" = set; then :
4655 $as_echo_n "(cached) " >&6
4656 else
4657 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4658 then ac_cv_path_EGREP="$GREP -E"
4659 else
4660 if test -z "$EGREP"; then
4661 ac_path_EGREP_found=false
4662 # Loop through the user's path and test for each of PROGNAME-LIST
4663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4664 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4665 do
4666 IFS=$as_save_IFS
4667 test -z "$as_dir" && as_dir=.
4668 for ac_prog in egrep; do
4669 for ac_exec_ext in '' $ac_executable_extensions; do
4670 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4671 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4672 # Check for GNU ac_path_EGREP and select it if it is found.
4673 # Check for GNU $ac_path_EGREP
4674 case `"$ac_path_EGREP" --version 2>&1` in
4675 *GNU*)
4676 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4677 *)
4678 ac_count=0
4679 $as_echo_n 0123456789 >"conftest.in"
4680 while :
4681 do
4682 cat "conftest.in" "conftest.in" >"conftest.tmp"
4683 mv "conftest.tmp" "conftest.in"
4684 cp "conftest.in" "conftest.nl"
4685 $as_echo 'EGREP' >> "conftest.nl"
4686 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4687 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4688 as_fn_arith $ac_count + 1 && ac_count=$as_val
4689 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4690 # Best one so far, save it but keep looking for a better one
4691 ac_cv_path_EGREP="$ac_path_EGREP"
4692 ac_path_EGREP_max=$ac_count
4693 fi
4694 # 10*(2^10) chars as input seems more than enough
4695 test $ac_count -gt 10 && break
4696 done
4697 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4698 esac
4699
4700 $ac_path_EGREP_found && break 3
4701 done
4702 done
4703 done
4704 IFS=$as_save_IFS
4705 if test -z "$ac_cv_path_EGREP"; then
4706 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4707 fi
4708 else
4709 ac_cv_path_EGREP=$EGREP
4710 fi
4711
4712 fi
4713 fi
4714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4715 $as_echo "$ac_cv_path_EGREP" >&6; }
4716 EGREP="$ac_cv_path_EGREP"
4717
4718
4719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4720 $as_echo_n "checking for fgrep... " >&6; }
4721 if test "${ac_cv_path_FGREP+set}" = set; then :
4722 $as_echo_n "(cached) " >&6
4723 else
4724 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4725 then ac_cv_path_FGREP="$GREP -F"
4726 else
4727 if test -z "$FGREP"; then
4728 ac_path_FGREP_found=false
4729 # Loop through the user's path and test for each of PROGNAME-LIST
4730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4731 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4732 do
4733 IFS=$as_save_IFS
4734 test -z "$as_dir" && as_dir=.
4735 for ac_prog in fgrep; do
4736 for ac_exec_ext in '' $ac_executable_extensions; do
4737 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4738 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4739 # Check for GNU ac_path_FGREP and select it if it is found.
4740 # Check for GNU $ac_path_FGREP
4741 case `"$ac_path_FGREP" --version 2>&1` in
4742 *GNU*)
4743 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4744 *)
4745 ac_count=0
4746 $as_echo_n 0123456789 >"conftest.in"
4747 while :
4748 do
4749 cat "conftest.in" "conftest.in" >"conftest.tmp"
4750 mv "conftest.tmp" "conftest.in"
4751 cp "conftest.in" "conftest.nl"
4752 $as_echo 'FGREP' >> "conftest.nl"
4753 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4754 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4755 as_fn_arith $ac_count + 1 && ac_count=$as_val
4756 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4757 # Best one so far, save it but keep looking for a better one
4758 ac_cv_path_FGREP="$ac_path_FGREP"
4759 ac_path_FGREP_max=$ac_count
4760 fi
4761 # 10*(2^10) chars as input seems more than enough
4762 test $ac_count -gt 10 && break
4763 done
4764 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4765 esac
4766
4767 $ac_path_FGREP_found && break 3
4768 done
4769 done
4770 done
4771 IFS=$as_save_IFS
4772 if test -z "$ac_cv_path_FGREP"; then
4773 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4774 fi
4775 else
4776 ac_cv_path_FGREP=$FGREP
4777 fi
4778
4779 fi
4780 fi
4781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4782 $as_echo "$ac_cv_path_FGREP" >&6; }
4783 FGREP="$ac_cv_path_FGREP"
4784
4785
4786 test -z "$GREP" && GREP=grep
4787
4788
4789
4790
4791
4792
4793
4794
4795
4796
4797
4798
4799
4800
4801
4802
4803
4804
4805
4806 # Check whether --with-gnu-ld was given.
4807 if test "${with_gnu_ld+set}" = set; then :
4808 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4809 else
4810 with_gnu_ld=no
4811 fi
4812
4813 ac_prog=ld
4814 if test "$GCC" = yes; then
4815 # Check if gcc -print-prog-name=ld gives a path.
4816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4817 $as_echo_n "checking for ld used by $CC... " >&6; }
4818 case $host in
4819 *-*-mingw*)
4820 # gcc leaves a trailing carriage return which upsets mingw
4821 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4822 *)
4823 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4824 esac
4825 case $ac_prog in
4826 # Accept absolute paths.
4827 [\\/]* | ?:[\\/]*)
4828 re_direlt='/[^/][^/]*/\.\./'
4829 # Canonicalize the pathname of ld
4830 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4831 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4832 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4833 done
4834 test -z "$LD" && LD="$ac_prog"
4835 ;;
4836 "")
4837 # If it fails, then pretend we aren't using GCC.
4838 ac_prog=ld
4839 ;;
4840 *)
4841 # If it is relative, then search for the first ld in PATH.
4842 with_gnu_ld=unknown
4843 ;;
4844 esac
4845 elif test "$with_gnu_ld" = yes; then
4846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4847 $as_echo_n "checking for GNU ld... " >&6; }
4848 else
4849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4850 $as_echo_n "checking for non-GNU ld... " >&6; }
4851 fi
4852 if test "${lt_cv_path_LD+set}" = set; then :
4853 $as_echo_n "(cached) " >&6
4854 else
4855 if test -z "$LD"; then
4856 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4857 for ac_dir in $PATH; do
4858 IFS="$lt_save_ifs"
4859 test -z "$ac_dir" && ac_dir=.
4860 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4861 lt_cv_path_LD="$ac_dir/$ac_prog"
4862 # Check to see if the program is GNU ld. I'd rather use --version,
4863 # but apparently some variants of GNU ld only accept -v.
4864 # Break only if it was the GNU/non-GNU ld that we prefer.
4865 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4866 *GNU* | *'with BFD'*)
4867 test "$with_gnu_ld" != no && break
4868 ;;
4869 *)
4870 test "$with_gnu_ld" != yes && break
4871 ;;
4872 esac
4873 fi
4874 done
4875 IFS="$lt_save_ifs"
4876 else
4877 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4878 fi
4879 fi
4880
4881 LD="$lt_cv_path_LD"
4882 if test -n "$LD"; then
4883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4884 $as_echo "$LD" >&6; }
4885 else
4886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4887 $as_echo "no" >&6; }
4888 fi
4889 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
4890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4891 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4892 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
4893 $as_echo_n "(cached) " >&6
4894 else
4895 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4896 case `$LD -v 2>&1 </dev/null` in
4897 *GNU* | *'with BFD'*)
4898 lt_cv_prog_gnu_ld=yes
4899 ;;
4900 *)
4901 lt_cv_prog_gnu_ld=no
4902 ;;
4903 esac
4904 fi
4905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4906 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4907 with_gnu_ld=$lt_cv_prog_gnu_ld
4908
4909
4910
4911
4912
4913
4914
4915
4916
4917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4918 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4919 if test "${lt_cv_path_NM+set}" = set; then :
4920 $as_echo_n "(cached) " >&6
4921 else
4922 if test -n "$NM"; then
4923 # Let the user override the test.
4924 lt_cv_path_NM="$NM"
4925 else
4926 lt_nm_to_check="${ac_tool_prefix}nm"
4927 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4928 lt_nm_to_check="$lt_nm_to_check nm"
4929 fi
4930 for lt_tmp_nm in $lt_nm_to_check; do
4931 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4932 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4933 IFS="$lt_save_ifs"
4934 test -z "$ac_dir" && ac_dir=.
4935 tmp_nm="$ac_dir/$lt_tmp_nm"
4936 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4937 # Check to see if the nm accepts a BSD-compat flag.
4938 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4939 # nm: unknown option "B" ignored
4940 # Tru64's nm complains that /dev/null is an invalid object file
4941 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4942 */dev/null* | *'Invalid file or object type'*)
4943 lt_cv_path_NM="$tmp_nm -B"
4944 break
4945 ;;
4946 *)
4947 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4948 */dev/null*)
4949 lt_cv_path_NM="$tmp_nm -p"
4950 break
4951 ;;
4952 *)
4953 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4954 continue # so that we can try to find one that supports BSD flags
4955 ;;
4956 esac
4957 ;;
4958 esac
4959 fi
4960 done
4961 IFS="$lt_save_ifs"
4962 done
4963 : ${lt_cv_path_NM=no}
4964 fi
4965 fi
4966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4967 $as_echo "$lt_cv_path_NM" >&6; }
4968 if test "$lt_cv_path_NM" != "no"; then
4969 NM="$lt_cv_path_NM"
4970 else
4971 # Didn't find any BSD compatible name lister, look for dumpbin.
4972 if test -n "$DUMPBIN"; then :
4973 # Let the user override the test.
4974 else
4975 if test -n "$ac_tool_prefix"; then
4976 for ac_prog in dumpbin "link -dump"
4977 do
4978 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4979 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4981 $as_echo_n "checking for $ac_word... " >&6; }
4982 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
4983 $as_echo_n "(cached) " >&6
4984 else
4985 if test -n "$DUMPBIN"; then
4986 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4987 else
4988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4989 for as_dir in $PATH
4990 do
4991 IFS=$as_save_IFS
4992 test -z "$as_dir" && as_dir=.
4993 for ac_exec_ext in '' $ac_executable_extensions; do
4994 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4995 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4996 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4997 break 2
4998 fi
4999 done
5000 done
5001 IFS=$as_save_IFS
5002
5003 fi
5004 fi
5005 DUMPBIN=$ac_cv_prog_DUMPBIN
5006 if test -n "$DUMPBIN"; then
5007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5008 $as_echo "$DUMPBIN" >&6; }
5009 else
5010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5011 $as_echo "no" >&6; }
5012 fi
5013
5014
5015 test -n "$DUMPBIN" && break
5016 done
5017 fi
5018 if test -z "$DUMPBIN"; then
5019 ac_ct_DUMPBIN=$DUMPBIN
5020 for ac_prog in dumpbin "link -dump"
5021 do
5022 # Extract the first word of "$ac_prog", so it can be a program name with args.
5023 set dummy $ac_prog; ac_word=$2
5024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5025 $as_echo_n "checking for $ac_word... " >&6; }
5026 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5027 $as_echo_n "(cached) " >&6
5028 else
5029 if test -n "$ac_ct_DUMPBIN"; then
5030 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5031 else
5032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5033 for as_dir in $PATH
5034 do
5035 IFS=$as_save_IFS
5036 test -z "$as_dir" && as_dir=.
5037 for ac_exec_ext in '' $ac_executable_extensions; do
5038 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5039 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5040 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5041 break 2
5042 fi
5043 done
5044 done
5045 IFS=$as_save_IFS
5046
5047 fi
5048 fi
5049 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5050 if test -n "$ac_ct_DUMPBIN"; then
5051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5052 $as_echo "$ac_ct_DUMPBIN" >&6; }
5053 else
5054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5055 $as_echo "no" >&6; }
5056 fi
5057
5058
5059 test -n "$ac_ct_DUMPBIN" && break
5060 done
5061
5062 if test "x$ac_ct_DUMPBIN" = x; then
5063 DUMPBIN=":"
5064 else
5065 case $cross_compiling:$ac_tool_warned in
5066 yes:)
5067 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5068 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5069 ac_tool_warned=yes ;;
5070 esac
5071 DUMPBIN=$ac_ct_DUMPBIN
5072 fi
5073 fi
5074
5075 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5076 *COFF*)
5077 DUMPBIN="$DUMPBIN -symbols"
5078 ;;
5079 *)
5080 DUMPBIN=:
5081 ;;
5082 esac
5083 fi
5084
5085 if test "$DUMPBIN" != ":"; then
5086 NM="$DUMPBIN"
5087 fi
5088 fi
5089 test -z "$NM" && NM=nm
5090
5091
5092
5093
5094
5095
5096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5097 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5098 if test "${lt_cv_nm_interface+set}" = set; then :
5099 $as_echo_n "(cached) " >&6
5100 else
5101 lt_cv_nm_interface="BSD nm"
5102 echo "int some_variable = 0;" > conftest.$ac_ext
5103 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5104 (eval "$ac_compile" 2>conftest.err)
5105 cat conftest.err >&5
5106 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5107 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5108 cat conftest.err >&5
5109 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5110 cat conftest.out >&5
5111 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5112 lt_cv_nm_interface="MS dumpbin"
5113 fi
5114 rm -f conftest*
5115 fi
5116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5117 $as_echo "$lt_cv_nm_interface" >&6; }
5118
5119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5120 $as_echo_n "checking whether ln -s works... " >&6; }
5121 LN_S=$as_ln_s
5122 if test "$LN_S" = "ln -s"; then
5123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5124 $as_echo "yes" >&6; }
5125 else
5126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5127 $as_echo "no, using $LN_S" >&6; }
5128 fi
5129
5130 # find the maximum length of command line arguments
5131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5132 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5133 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5134 $as_echo_n "(cached) " >&6
5135 else
5136 i=0
5137 teststring="ABCD"
5138
5139 case $build_os in
5140 msdosdjgpp*)
5141 # On DJGPP, this test can blow up pretty badly due to problems in libc
5142 # (any single argument exceeding 2000 bytes causes a buffer overrun
5143 # during glob expansion). Even if it were fixed, the result of this
5144 # check would be larger than it should be.
5145 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5146 ;;
5147
5148 gnu*)
5149 # Under GNU Hurd, this test is not required because there is
5150 # no limit to the length of command line arguments.
5151 # Libtool will interpret -1 as no limit whatsoever
5152 lt_cv_sys_max_cmd_len=-1;
5153 ;;
5154
5155 cygwin* | mingw* | cegcc*)
5156 # On Win9x/ME, this test blows up -- it succeeds, but takes
5157 # about 5 minutes as the teststring grows exponentially.
5158 # Worse, since 9x/ME are not pre-emptively multitasking,
5159 # you end up with a "frozen" computer, even though with patience
5160 # the test eventually succeeds (with a max line length of 256k).
5161 # Instead, let's just punt: use the minimum linelength reported by
5162 # all of the supported platforms: 8192 (on NT/2K/XP).
5163 lt_cv_sys_max_cmd_len=8192;
5164 ;;
5165
5166 mint*)
5167 # On MiNT this can take a long time and run out of memory.
5168 lt_cv_sys_max_cmd_len=8192;
5169 ;;
5170
5171 amigaos*)
5172 # On AmigaOS with pdksh, this test takes hours, literally.
5173 # So we just punt and use a minimum line length of 8192.
5174 lt_cv_sys_max_cmd_len=8192;
5175 ;;
5176
5177 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5178 # This has been around since 386BSD, at least. Likely further.
5179 if test -x /sbin/sysctl; then
5180 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5181 elif test -x /usr/sbin/sysctl; then
5182 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5183 else
5184 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5185 fi
5186 # And add a safety zone
5187 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5188 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5189 ;;
5190
5191 interix*)
5192 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5193 lt_cv_sys_max_cmd_len=196608
5194 ;;
5195
5196 osf*)
5197 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5198 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5199 # nice to cause kernel panics so lets avoid the loop below.
5200 # First set a reasonable default.
5201 lt_cv_sys_max_cmd_len=16384
5202 #
5203 if test -x /sbin/sysconfig; then
5204 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5205 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5206 esac
5207 fi
5208 ;;
5209 sco3.2v5*)
5210 lt_cv_sys_max_cmd_len=102400
5211 ;;
5212 sysv5* | sco5v6* | sysv4.2uw2*)
5213 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5214 if test -n "$kargmax"; then
5215 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5216 else
5217 lt_cv_sys_max_cmd_len=32768
5218 fi
5219 ;;
5220 *)
5221 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5222 if test -n "$lt_cv_sys_max_cmd_len"; then
5223 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5224 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5225 else
5226 # Make teststring a little bigger before we do anything with it.
5227 # a 1K string should be a reasonable start.
5228 for i in 1 2 3 4 5 6 7 8 ; do
5229 teststring=$teststring$teststring
5230 done
5231 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5232 # If test is not a shell built-in, we'll probably end up computing a
5233 # maximum length that is only half of the actual maximum length, but
5234 # we can't tell.
5235 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5236 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5237 test $i != 17 # 1/2 MB should be enough
5238 do
5239 i=`expr $i + 1`
5240 teststring=$teststring$teststring
5241 done
5242 # Only check the string length outside the loop.
5243 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5244 teststring=
5245 # Add a significant safety factor because C++ compilers can tack on
5246 # massive amounts of additional arguments before passing them to the
5247 # linker. It appears as though 1/2 is a usable value.
5248 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5249 fi
5250 ;;
5251 esac
5252
5253 fi
5254
5255 if test -n $lt_cv_sys_max_cmd_len ; then
5256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5257 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5258 else
5259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5260 $as_echo "none" >&6; }
5261 fi
5262 max_cmd_len=$lt_cv_sys_max_cmd_len
5263
5264
5265
5266
5267
5268
5269 : ${CP="cp -f"}
5270 : ${MV="mv -f"}
5271 : ${RM="rm -f"}
5272
5273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5274 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5275 # Try some XSI features
5276 xsi_shell=no
5277 ( _lt_dummy="a/b/c"
5278 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5279 = c,a/b,, \
5280 && eval 'test $(( 1 + 1 )) -eq 2 \
5281 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5282 && xsi_shell=yes
5283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5284 $as_echo "$xsi_shell" >&6; }
5285
5286
5287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5288 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5289 lt_shell_append=no
5290 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5291 >/dev/null 2>&1 \
5292 && lt_shell_append=yes
5293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5294 $as_echo "$lt_shell_append" >&6; }
5295
5296
5297 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5298 lt_unset=unset
5299 else
5300 lt_unset=false
5301 fi
5302
5303
5304
5305
5306
5307 # test EBCDIC or ASCII
5308 case `echo X|tr X '\101'` in
5309 A) # ASCII based system
5310 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5311 lt_SP2NL='tr \040 \012'
5312 lt_NL2SP='tr \015\012 \040\040'
5313 ;;
5314 *) # EBCDIC based system
5315 lt_SP2NL='tr \100 \n'
5316 lt_NL2SP='tr \r\n \100\100'
5317 ;;
5318 esac
5319
5320
5321
5322
5323
5324
5325
5326
5327
5328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5329 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5330 if test "${lt_cv_ld_reload_flag+set}" = set; then :
5331 $as_echo_n "(cached) " >&6
5332 else
5333 lt_cv_ld_reload_flag='-r'
5334 fi
5335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5336 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5337 reload_flag=$lt_cv_ld_reload_flag
5338 case $reload_flag in
5339 "" | " "*) ;;
5340 *) reload_flag=" $reload_flag" ;;
5341 esac
5342 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5343 case $host_os in
5344 darwin*)
5345 if test "$GCC" = yes; then
5346 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5347 else
5348 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5349 fi
5350 ;;
5351 esac
5352
5353
5354
5355
5356
5357
5358
5359
5360
5361 if test -n "$ac_tool_prefix"; then
5362 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5363 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5365 $as_echo_n "checking for $ac_word... " >&6; }
5366 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5367 $as_echo_n "(cached) " >&6
5368 else
5369 if test -n "$OBJDUMP"; then
5370 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5371 else
5372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5373 for as_dir in $PATH
5374 do
5375 IFS=$as_save_IFS
5376 test -z "$as_dir" && as_dir=.
5377 for ac_exec_ext in '' $ac_executable_extensions; do
5378 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5379 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5380 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5381 break 2
5382 fi
5383 done
5384 done
5385 IFS=$as_save_IFS
5386
5387 fi
5388 fi
5389 OBJDUMP=$ac_cv_prog_OBJDUMP
5390 if test -n "$OBJDUMP"; then
5391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5392 $as_echo "$OBJDUMP" >&6; }
5393 else
5394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5395 $as_echo "no" >&6; }
5396 fi
5397
5398
5399 fi
5400 if test -z "$ac_cv_prog_OBJDUMP"; then
5401 ac_ct_OBJDUMP=$OBJDUMP
5402 # Extract the first word of "objdump", so it can be a program name with args.
5403 set dummy objdump; ac_word=$2
5404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5405 $as_echo_n "checking for $ac_word... " >&6; }
5406 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5407 $as_echo_n "(cached) " >&6
5408 else
5409 if test -n "$ac_ct_OBJDUMP"; then
5410 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5411 else
5412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5413 for as_dir in $PATH
5414 do
5415 IFS=$as_save_IFS
5416 test -z "$as_dir" && as_dir=.
5417 for ac_exec_ext in '' $ac_executable_extensions; do
5418 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5419 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5420 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5421 break 2
5422 fi
5423 done
5424 done
5425 IFS=$as_save_IFS
5426
5427 fi
5428 fi
5429 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5430 if test -n "$ac_ct_OBJDUMP"; then
5431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5432 $as_echo "$ac_ct_OBJDUMP" >&6; }
5433 else
5434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5435 $as_echo "no" >&6; }
5436 fi
5437
5438 if test "x$ac_ct_OBJDUMP" = x; then
5439 OBJDUMP="false"
5440 else
5441 case $cross_compiling:$ac_tool_warned in
5442 yes:)
5443 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5444 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5445 ac_tool_warned=yes ;;
5446 esac
5447 OBJDUMP=$ac_ct_OBJDUMP
5448 fi
5449 else
5450 OBJDUMP="$ac_cv_prog_OBJDUMP"
5451 fi
5452
5453 test -z "$OBJDUMP" && OBJDUMP=objdump
5454
5455
5456
5457
5458
5459
5460
5461
5462
5463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5464 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5465 if test "${lt_cv_deplibs_check_method+set}" = set; then :
5466 $as_echo_n "(cached) " >&6
5467 else
5468 lt_cv_file_magic_cmd='$MAGIC_CMD'
5469 lt_cv_file_magic_test_file=
5470 lt_cv_deplibs_check_method='unknown'
5471 # Need to set the preceding variable on all platforms that support
5472 # interlibrary dependencies.
5473 # 'none' -- dependencies not supported.
5474 # `unknown' -- same as none, but documents that we really don't know.
5475 # 'pass_all' -- all dependencies passed with no checks.
5476 # 'test_compile' -- check by making test program.
5477 # 'file_magic [[regex]]' -- check by looking for files in library path
5478 # which responds to the $file_magic_cmd with a given extended regex.
5479 # If you have `file' or equivalent on your system and you're not sure
5480 # whether `pass_all' will *always* work, you probably want this one.
5481
5482 case $host_os in
5483 aix[4-9]*)
5484 lt_cv_deplibs_check_method=pass_all
5485 ;;
5486
5487 beos*)
5488 lt_cv_deplibs_check_method=pass_all
5489 ;;
5490
5491 bsdi[45]*)
5492 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5493 lt_cv_file_magic_cmd='/usr/bin/file -L'
5494 lt_cv_file_magic_test_file=/shlib/libc.so
5495 ;;
5496
5497 cygwin*)
5498 # func_win32_libid is a shell function defined in ltmain.sh
5499 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5500 lt_cv_file_magic_cmd='func_win32_libid'
5501 ;;
5502
5503 mingw* | pw32*)
5504 # Base MSYS/MinGW do not provide the 'file' command needed by
5505 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5506 # unless we find 'file', for example because we are cross-compiling.
5507 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5508 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5509 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5510 lt_cv_file_magic_cmd='func_win32_libid'
5511 else
5512 # Keep this pattern in sync with the one in func_win32_libid.
5513 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5514 lt_cv_file_magic_cmd='$OBJDUMP -f'
5515 fi
5516 ;;
5517
5518 cegcc*)
5519 # use the weaker test based on 'objdump'. See mingw*.
5520 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5521 lt_cv_file_magic_cmd='$OBJDUMP -f'
5522 ;;
5523
5524 darwin* | rhapsody*)
5525 lt_cv_deplibs_check_method=pass_all
5526 ;;
5527
5528 freebsd* | dragonfly*)
5529 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5530 case $host_cpu in
5531 i*86 )
5532 # Not sure whether the presence of OpenBSD here was a mistake.
5533 # Let's accept both of them until this is cleared up.
5534 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5535 lt_cv_file_magic_cmd=/usr/bin/file
5536 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5537 ;;
5538 esac
5539 else
5540 lt_cv_deplibs_check_method=pass_all
5541 fi
5542 ;;
5543
5544 gnu*)
5545 lt_cv_deplibs_check_method=pass_all
5546 ;;
5547
5548 haiku*)
5549 lt_cv_deplibs_check_method=pass_all
5550 ;;
5551
5552 hpux10.20* | hpux11*)
5553 lt_cv_file_magic_cmd=/usr/bin/file
5554 case $host_cpu in
5555 ia64*)
5556 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5557 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5558 ;;
5559 hppa*64*)
5560 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]'
5561 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5562 ;;
5563 *)
5564 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5565 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5566 ;;
5567 esac
5568 ;;
5569
5570 interix[3-9]*)
5571 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5572 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5573 ;;
5574
5575 irix5* | irix6* | nonstopux*)
5576 case $LD in
5577 *-32|*"-32 ") libmagic=32-bit;;
5578 *-n32|*"-n32 ") libmagic=N32;;
5579 *-64|*"-64 ") libmagic=64-bit;;
5580 *) libmagic=never-match;;
5581 esac
5582 lt_cv_deplibs_check_method=pass_all
5583 ;;
5584
5585 # This must be Linux ELF.
5586 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5587 lt_cv_deplibs_check_method=pass_all
5588 ;;
5589
5590 netbsd*)
5591 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5592 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5593 else
5594 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5595 fi
5596 ;;
5597
5598 newos6*)
5599 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5600 lt_cv_file_magic_cmd=/usr/bin/file
5601 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5602 ;;
5603
5604 *nto* | *qnx*)
5605 lt_cv_deplibs_check_method=pass_all
5606 ;;
5607
5608 openbsd*)
5609 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5610 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5611 else
5612 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5613 fi
5614 ;;
5615
5616 osf3* | osf4* | osf5*)
5617 lt_cv_deplibs_check_method=pass_all
5618 ;;
5619
5620 rdos*)
5621 lt_cv_deplibs_check_method=pass_all
5622 ;;
5623
5624 solaris*)
5625 lt_cv_deplibs_check_method=pass_all
5626 ;;
5627
5628 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5629 lt_cv_deplibs_check_method=pass_all
5630 ;;
5631
5632 sysv4 | sysv4.3*)
5633 case $host_vendor in
5634 motorola)
5635 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]'
5636 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5637 ;;
5638 ncr)
5639 lt_cv_deplibs_check_method=pass_all
5640 ;;
5641 sequent)
5642 lt_cv_file_magic_cmd='/bin/file'
5643 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5644 ;;
5645 sni)
5646 lt_cv_file_magic_cmd='/bin/file'
5647 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5648 lt_cv_file_magic_test_file=/lib/libc.so
5649 ;;
5650 siemens)
5651 lt_cv_deplibs_check_method=pass_all
5652 ;;
5653 pc)
5654 lt_cv_deplibs_check_method=pass_all
5655 ;;
5656 esac
5657 ;;
5658
5659 tpf*)
5660 lt_cv_deplibs_check_method=pass_all
5661 ;;
5662 esac
5663
5664 fi
5665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5666 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5667 file_magic_cmd=$lt_cv_file_magic_cmd
5668 deplibs_check_method=$lt_cv_deplibs_check_method
5669 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5670
5671
5672
5673
5674
5675
5676
5677
5678
5679
5680
5681
5682 if test -n "$ac_tool_prefix"; then
5683 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5684 set dummy ${ac_tool_prefix}ar; ac_word=$2
5685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5686 $as_echo_n "checking for $ac_word... " >&6; }
5687 if test "${ac_cv_prog_AR+set}" = set; then :
5688 $as_echo_n "(cached) " >&6
5689 else
5690 if test -n "$AR"; then
5691 ac_cv_prog_AR="$AR" # Let the user override the test.
5692 else
5693 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5694 for as_dir in $PATH
5695 do
5696 IFS=$as_save_IFS
5697 test -z "$as_dir" && as_dir=.
5698 for ac_exec_ext in '' $ac_executable_extensions; do
5699 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5700 ac_cv_prog_AR="${ac_tool_prefix}ar"
5701 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5702 break 2
5703 fi
5704 done
5705 done
5706 IFS=$as_save_IFS
5707
5708 fi
5709 fi
5710 AR=$ac_cv_prog_AR
5711 if test -n "$AR"; then
5712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5713 $as_echo "$AR" >&6; }
5714 else
5715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5716 $as_echo "no" >&6; }
5717 fi
5718
5719
5720 fi
5721 if test -z "$ac_cv_prog_AR"; then
5722 ac_ct_AR=$AR
5723 # Extract the first word of "ar", so it can be a program name with args.
5724 set dummy ar; ac_word=$2
5725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5726 $as_echo_n "checking for $ac_word... " >&6; }
5727 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5728 $as_echo_n "(cached) " >&6
5729 else
5730 if test -n "$ac_ct_AR"; then
5731 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5732 else
5733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5734 for as_dir in $PATH
5735 do
5736 IFS=$as_save_IFS
5737 test -z "$as_dir" && as_dir=.
5738 for ac_exec_ext in '' $ac_executable_extensions; do
5739 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5740 ac_cv_prog_ac_ct_AR="ar"
5741 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5742 break 2
5743 fi
5744 done
5745 done
5746 IFS=$as_save_IFS
5747
5748 fi
5749 fi
5750 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5751 if test -n "$ac_ct_AR"; then
5752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5753 $as_echo "$ac_ct_AR" >&6; }
5754 else
5755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5756 $as_echo "no" >&6; }
5757 fi
5758
5759 if test "x$ac_ct_AR" = x; then
5760 AR="false"
5761 else
5762 case $cross_compiling:$ac_tool_warned in
5763 yes:)
5764 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5765 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5766 ac_tool_warned=yes ;;
5767 esac
5768 AR=$ac_ct_AR
5769 fi
5770 else
5771 AR="$ac_cv_prog_AR"
5772 fi
5773
5774 test -z "$AR" && AR=ar
5775 test -z "$AR_FLAGS" && AR_FLAGS=cru
5776
5777
5778
5779
5780
5781
5782
5783
5784
5785
5786
5787 if test -n "$ac_tool_prefix"; then
5788 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5789 set dummy ${ac_tool_prefix}strip; ac_word=$2
5790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5791 $as_echo_n "checking for $ac_word... " >&6; }
5792 if test "${ac_cv_prog_STRIP+set}" = set; then :
5793 $as_echo_n "(cached) " >&6
5794 else
5795 if test -n "$STRIP"; then
5796 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5797 else
5798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5799 for as_dir in $PATH
5800 do
5801 IFS=$as_save_IFS
5802 test -z "$as_dir" && as_dir=.
5803 for ac_exec_ext in '' $ac_executable_extensions; do
5804 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5805 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5806 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5807 break 2
5808 fi
5809 done
5810 done
5811 IFS=$as_save_IFS
5812
5813 fi
5814 fi
5815 STRIP=$ac_cv_prog_STRIP
5816 if test -n "$STRIP"; then
5817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5818 $as_echo "$STRIP" >&6; }
5819 else
5820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5821 $as_echo "no" >&6; }
5822 fi
5823
5824
5825 fi
5826 if test -z "$ac_cv_prog_STRIP"; then
5827 ac_ct_STRIP=$STRIP
5828 # Extract the first word of "strip", so it can be a program name with args.
5829 set dummy strip; ac_word=$2
5830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5831 $as_echo_n "checking for $ac_word... " >&6; }
5832 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
5833 $as_echo_n "(cached) " >&6
5834 else
5835 if test -n "$ac_ct_STRIP"; then
5836 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5837 else
5838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5839 for as_dir in $PATH
5840 do
5841 IFS=$as_save_IFS
5842 test -z "$as_dir" && as_dir=.
5843 for ac_exec_ext in '' $ac_executable_extensions; do
5844 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5845 ac_cv_prog_ac_ct_STRIP="strip"
5846 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5847 break 2
5848 fi
5849 done
5850 done
5851 IFS=$as_save_IFS
5852
5853 fi
5854 fi
5855 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5856 if test -n "$ac_ct_STRIP"; then
5857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5858 $as_echo "$ac_ct_STRIP" >&6; }
5859 else
5860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5861 $as_echo "no" >&6; }
5862 fi
5863
5864 if test "x$ac_ct_STRIP" = x; then
5865 STRIP=":"
5866 else
5867 case $cross_compiling:$ac_tool_warned in
5868 yes:)
5869 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5870 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5871 ac_tool_warned=yes ;;
5872 esac
5873 STRIP=$ac_ct_STRIP
5874 fi
5875 else
5876 STRIP="$ac_cv_prog_STRIP"
5877 fi
5878
5879 test -z "$STRIP" && STRIP=:
5880
5881
5882
5883
5884
5885
5886 if test -n "$ac_tool_prefix"; then
5887 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5888 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5890 $as_echo_n "checking for $ac_word... " >&6; }
5891 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5892 $as_echo_n "(cached) " >&6
5893 else
5894 if test -n "$RANLIB"; then
5895 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5896 else
5897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5898 for as_dir in $PATH
5899 do
5900 IFS=$as_save_IFS
5901 test -z "$as_dir" && as_dir=.
5902 for ac_exec_ext in '' $ac_executable_extensions; do
5903 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5904 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5905 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5906 break 2
5907 fi
5908 done
5909 done
5910 IFS=$as_save_IFS
5911
5912 fi
5913 fi
5914 RANLIB=$ac_cv_prog_RANLIB
5915 if test -n "$RANLIB"; then
5916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5917 $as_echo "$RANLIB" >&6; }
5918 else
5919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5920 $as_echo "no" >&6; }
5921 fi
5922
5923
5924 fi
5925 if test -z "$ac_cv_prog_RANLIB"; then
5926 ac_ct_RANLIB=$RANLIB
5927 # Extract the first word of "ranlib", so it can be a program name with args.
5928 set dummy ranlib; ac_word=$2
5929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5930 $as_echo_n "checking for $ac_word... " >&6; }
5931 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5932 $as_echo_n "(cached) " >&6
5933 else
5934 if test -n "$ac_ct_RANLIB"; then
5935 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5936 else
5937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5938 for as_dir in $PATH
5939 do
5940 IFS=$as_save_IFS
5941 test -z "$as_dir" && as_dir=.
5942 for ac_exec_ext in '' $ac_executable_extensions; do
5943 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5944 ac_cv_prog_ac_ct_RANLIB="ranlib"
5945 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5946 break 2
5947 fi
5948 done
5949 done
5950 IFS=$as_save_IFS
5951
5952 fi
5953 fi
5954 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5955 if test -n "$ac_ct_RANLIB"; then
5956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5957 $as_echo "$ac_ct_RANLIB" >&6; }
5958 else
5959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5960 $as_echo "no" >&6; }
5961 fi
5962
5963 if test "x$ac_ct_RANLIB" = x; then
5964 RANLIB=":"
5965 else
5966 case $cross_compiling:$ac_tool_warned in
5967 yes:)
5968 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5969 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5970 ac_tool_warned=yes ;;
5971 esac
5972 RANLIB=$ac_ct_RANLIB
5973 fi
5974 else
5975 RANLIB="$ac_cv_prog_RANLIB"
5976 fi
5977
5978 test -z "$RANLIB" && RANLIB=:
5979
5980
5981
5982
5983
5984
5985 # Determine commands to create old-style static archives.
5986 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5987 old_postinstall_cmds='chmod 644 $oldlib'
5988 old_postuninstall_cmds=
5989
5990 if test -n "$RANLIB"; then
5991 case $host_os in
5992 openbsd*)
5993 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5994 ;;
5995 *)
5996 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5997 ;;
5998 esac
5999 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6000 fi
6001
6002 case $host_os in
6003 darwin*)
6004 lock_old_archive_extraction=yes ;;
6005 *)
6006 lock_old_archive_extraction=no ;;
6007 esac
6008
6009
6010
6011
6012
6013
6014
6015
6016
6017
6018
6019
6020
6021
6022
6023
6024
6025
6026
6027
6028
6029
6030
6031
6032
6033
6034
6035
6036
6037
6038
6039
6040
6041
6042
6043
6044
6045
6046
6047 # If no C compiler was specified, use CC.
6048 LTCC=${LTCC-"$CC"}
6049
6050 # If no C compiler flags were specified, use CFLAGS.
6051 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6052
6053 # Allow CC to be a program name with arguments.
6054 compiler=$CC
6055
6056
6057 # Check for command to grab the raw symbol name followed by C symbol from nm.
6058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6059 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6060 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6061 $as_echo_n "(cached) " >&6
6062 else
6063
6064 # These are sane defaults that work on at least a few old systems.
6065 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6066
6067 # Character class describing NM global symbol codes.
6068 symcode='[BCDEGRST]'
6069
6070 # Regexp to match symbols that can be accessed directly from C.
6071 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6072
6073 # Define system-specific variables.
6074 case $host_os in
6075 aix*)
6076 symcode='[BCDT]'
6077 ;;
6078 cygwin* | mingw* | pw32* | cegcc*)
6079 symcode='[ABCDGISTW]'
6080 ;;
6081 hpux*)
6082 if test "$host_cpu" = ia64; then
6083 symcode='[ABCDEGRST]'
6084 fi
6085 ;;
6086 irix* | nonstopux*)
6087 symcode='[BCDEGRST]'
6088 ;;
6089 osf*)
6090 symcode='[BCDEGQRST]'
6091 ;;
6092 solaris*)
6093 symcode='[BDRT]'
6094 ;;
6095 sco3.2v5*)
6096 symcode='[DT]'
6097 ;;
6098 sysv4.2uw2*)
6099 symcode='[DT]'
6100 ;;
6101 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6102 symcode='[ABDT]'
6103 ;;
6104 sysv4)
6105 symcode='[DFNSTU]'
6106 ;;
6107 esac
6108
6109 # If we're using GNU nm, then use its standard symbol codes.
6110 case `$NM -V 2>&1` in
6111 *GNU* | *'with BFD'*)
6112 symcode='[ABCDGIRSTW]' ;;
6113 esac
6114
6115 # Transform an extracted symbol line into a proper C declaration.
6116 # Some systems (esp. on ia64) link data and code symbols differently,
6117 # so use this general approach.
6118 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6119
6120 # Transform an extracted symbol line into symbol name and symbol address
6121 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6122 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'"
6123
6124 # Handle CRLF in mingw tool chain
6125 opt_cr=
6126 case $build_os in
6127 mingw*)
6128 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6129 ;;
6130 esac
6131
6132 # Try without a prefix underscore, then with it.
6133 for ac_symprfx in "" "_"; do
6134
6135 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6136 symxfrm="\\1 $ac_symprfx\\2 \\2"
6137
6138 # Write the raw and C identifiers.
6139 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6140 # Fake it for dumpbin and say T for any non-static function
6141 # and D for any global variable.
6142 # Also find C++ and __fastcall symbols from MSVC++,
6143 # which start with @ or ?.
6144 lt_cv_sys_global_symbol_pipe="$AWK '"\
6145 " {last_section=section; section=\$ 3};"\
6146 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6147 " \$ 0!~/External *\|/{next};"\
6148 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6149 " {if(hide[section]) next};"\
6150 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6151 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6152 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6153 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6154 " ' prfx=^$ac_symprfx"
6155 else
6156 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6157 fi
6158
6159 # Check to see that the pipe works correctly.
6160 pipe_works=no
6161
6162 rm -f conftest*
6163 cat > conftest.$ac_ext <<_LT_EOF
6164 #ifdef __cplusplus
6165 extern "C" {
6166 #endif
6167 char nm_test_var;
6168 void nm_test_func(void);
6169 void nm_test_func(void){}
6170 #ifdef __cplusplus
6171 }
6172 #endif
6173 int main(){nm_test_var='a';nm_test_func();return(0);}
6174 _LT_EOF
6175
6176 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6177 (eval $ac_compile) 2>&5
6178 ac_status=$?
6179 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6180 test $ac_status = 0; }; then
6181 # Now try to grab the symbols.
6182 nlist=conftest.nm
6183 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6184 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6185 ac_status=$?
6186 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6187 test $ac_status = 0; } && test -s "$nlist"; then
6188 # Try sorting and uniquifying the output.
6189 if sort "$nlist" | uniq > "$nlist"T; then
6190 mv -f "$nlist"T "$nlist"
6191 else
6192 rm -f "$nlist"T
6193 fi
6194
6195 # Make sure that we snagged all the symbols we need.
6196 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6197 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6198 cat <<_LT_EOF > conftest.$ac_ext
6199 #ifdef __cplusplus
6200 extern "C" {
6201 #endif
6202
6203 _LT_EOF
6204 # Now generate the symbol file.
6205 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6206
6207 cat <<_LT_EOF >> conftest.$ac_ext
6208
6209 /* The mapping between symbol names and symbols. */
6210 const struct {
6211 const char *name;
6212 void *address;
6213 }
6214 lt__PROGRAM__LTX_preloaded_symbols[] =
6215 {
6216 { "@PROGRAM@", (void *) 0 },
6217 _LT_EOF
6218 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6219 cat <<\_LT_EOF >> conftest.$ac_ext
6220 {0, (void *) 0}
6221 };
6222
6223 /* This works around a problem in FreeBSD linker */
6224 #ifdef FREEBSD_WORKAROUND
6225 static const void *lt_preloaded_setup() {
6226 return lt__PROGRAM__LTX_preloaded_symbols;
6227 }
6228 #endif
6229
6230 #ifdef __cplusplus
6231 }
6232 #endif
6233 _LT_EOF
6234 # Now try linking the two files.
6235 mv conftest.$ac_objext conftstm.$ac_objext
6236 lt_save_LIBS="$LIBS"
6237 lt_save_CFLAGS="$CFLAGS"
6238 LIBS="conftstm.$ac_objext"
6239 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6240 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6241 (eval $ac_link) 2>&5
6242 ac_status=$?
6243 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6244 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6245 pipe_works=yes
6246 fi
6247 LIBS="$lt_save_LIBS"
6248 CFLAGS="$lt_save_CFLAGS"
6249 else
6250 echo "cannot find nm_test_func in $nlist" >&5
6251 fi
6252 else
6253 echo "cannot find nm_test_var in $nlist" >&5
6254 fi
6255 else
6256 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6257 fi
6258 else
6259 echo "$progname: failed program was:" >&5
6260 cat conftest.$ac_ext >&5
6261 fi
6262 rm -rf conftest* conftst*
6263
6264 # Do not use the global_symbol_pipe unless it works.
6265 if test "$pipe_works" = yes; then
6266 break
6267 else
6268 lt_cv_sys_global_symbol_pipe=
6269 fi
6270 done
6271
6272 fi
6273
6274 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6275 lt_cv_sys_global_symbol_to_cdecl=
6276 fi
6277 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6279 $as_echo "failed" >&6; }
6280 else
6281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6282 $as_echo "ok" >&6; }
6283 fi
6284
6285
6286
6287
6288
6289
6290
6291
6292
6293
6294
6295
6296
6297
6298
6299
6300
6301
6302
6303
6304
6305
6306 # Check whether --enable-libtool-lock was given.
6307 if test "${enable_libtool_lock+set}" = set; then :
6308 enableval=$enable_libtool_lock;
6309 fi
6310
6311 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6312
6313 # Some flags need to be propagated to the compiler or linker for good
6314 # libtool support.
6315 case $host in
6316 ia64-*-hpux*)
6317 # Find out which ABI we are using.
6318 echo 'int i;' > conftest.$ac_ext
6319 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6320 (eval $ac_compile) 2>&5
6321 ac_status=$?
6322 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6323 test $ac_status = 0; }; then
6324 case `/usr/bin/file conftest.$ac_objext` in
6325 *ELF-32*)
6326 HPUX_IA64_MODE="32"
6327 ;;
6328 *ELF-64*)
6329 HPUX_IA64_MODE="64"
6330 ;;
6331 esac
6332 fi
6333 rm -rf conftest*
6334 ;;
6335 *-*-irix6*)
6336 # Find out which ABI we are using.
6337 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6338 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6339 (eval $ac_compile) 2>&5
6340 ac_status=$?
6341 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6342 test $ac_status = 0; }; then
6343 if test "$lt_cv_prog_gnu_ld" = yes; then
6344 case `/usr/bin/file conftest.$ac_objext` in
6345 *32-bit*)
6346 LD="${LD-ld} -melf32bsmip"
6347 ;;
6348 *N32*)
6349 LD="${LD-ld} -melf32bmipn32"
6350 ;;
6351 *64-bit*)
6352 LD="${LD-ld} -melf64bmip"
6353 ;;
6354 esac
6355 else
6356 case `/usr/bin/file conftest.$ac_objext` in
6357 *32-bit*)
6358 LD="${LD-ld} -32"
6359 ;;
6360 *N32*)
6361 LD="${LD-ld} -n32"
6362 ;;
6363 *64-bit*)
6364 LD="${LD-ld} -64"
6365 ;;
6366 esac
6367 fi
6368 fi
6369 rm -rf conftest*
6370 ;;
6371
6372 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6373 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6374 # Find out which ABI we are using.
6375 echo 'int i;' > conftest.$ac_ext
6376 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6377 (eval $ac_compile) 2>&5
6378 ac_status=$?
6379 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6380 test $ac_status = 0; }; then
6381 case `/usr/bin/file conftest.o` in
6382 *32-bit*)
6383 case $host in
6384 x86_64-*kfreebsd*-gnu)
6385 LD="${LD-ld} -m elf_i386_fbsd"
6386 ;;
6387 x86_64-*linux*)
6388 LD="${LD-ld} -m elf_i386"
6389 ;;
6390 ppc64-*linux*|powerpc64-*linux*)
6391 LD="${LD-ld} -m elf32ppclinux"
6392 ;;
6393 s390x-*linux*)
6394 LD="${LD-ld} -m elf_s390"
6395 ;;
6396 sparc64-*linux*)
6397 LD="${LD-ld} -m elf32_sparc"
6398 ;;
6399 esac
6400 ;;
6401 *64-bit*)
6402 case $host in
6403 x86_64-*kfreebsd*-gnu)
6404 LD="${LD-ld} -m elf_x86_64_fbsd"
6405 ;;
6406 x86_64-*linux*)
6407 LD="${LD-ld} -m elf_x86_64"
6408 ;;
6409 ppc*-*linux*|powerpc*-*linux*)
6410 LD="${LD-ld} -m elf64ppc"
6411 ;;
6412 s390*-*linux*|s390*-*tpf*)
6413 LD="${LD-ld} -m elf64_s390"
6414 ;;
6415 sparc*-*linux*)
6416 LD="${LD-ld} -m elf64_sparc"
6417 ;;
6418 esac
6419 ;;
6420 esac
6421 fi
6422 rm -rf conftest*
6423 ;;
6424
6425 *-*-sco3.2v5*)
6426 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6427 SAVE_CFLAGS="$CFLAGS"
6428 CFLAGS="$CFLAGS -belf"
6429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6430 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6431 if test "${lt_cv_cc_needs_belf+set}" = set; then :
6432 $as_echo_n "(cached) " >&6
6433 else
6434 ac_ext=c
6435 ac_cpp='$CPP $CPPFLAGS'
6436 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6437 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6438 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6439
6440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6441 /* end confdefs.h. */
6442
6443 int
6444 main ()
6445 {
6446
6447 ;
6448 return 0;
6449 }
6450 _ACEOF
6451 if ac_fn_c_try_link "$LINENO"; then :
6452 lt_cv_cc_needs_belf=yes
6453 else
6454 lt_cv_cc_needs_belf=no
6455 fi
6456 rm -f core conftest.err conftest.$ac_objext \
6457 conftest$ac_exeext conftest.$ac_ext
6458 ac_ext=c
6459 ac_cpp='$CPP $CPPFLAGS'
6460 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6461 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6462 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6463
6464 fi
6465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6466 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6467 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6468 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6469 CFLAGS="$SAVE_CFLAGS"
6470 fi
6471 ;;
6472 sparc*-*solaris*)
6473 # Find out which ABI we are using.
6474 echo 'int i;' > conftest.$ac_ext
6475 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6476 (eval $ac_compile) 2>&5
6477 ac_status=$?
6478 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6479 test $ac_status = 0; }; then
6480 case `/usr/bin/file conftest.o` in
6481 *64-bit*)
6482 case $lt_cv_prog_gnu_ld in
6483 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6484 *)
6485 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6486 LD="${LD-ld} -64"
6487 fi
6488 ;;
6489 esac
6490 ;;
6491 esac
6492 fi
6493 rm -rf conftest*
6494 ;;
6495 esac
6496
6497 need_locks="$enable_libtool_lock"
6498
6499
6500 case $host_os in
6501 rhapsody* | darwin*)
6502 if test -n "$ac_tool_prefix"; then
6503 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6504 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6506 $as_echo_n "checking for $ac_word... " >&6; }
6507 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6508 $as_echo_n "(cached) " >&6
6509 else
6510 if test -n "$DSYMUTIL"; then
6511 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6512 else
6513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6514 for as_dir in $PATH
6515 do
6516 IFS=$as_save_IFS
6517 test -z "$as_dir" && as_dir=.
6518 for ac_exec_ext in '' $ac_executable_extensions; do
6519 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6520 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6521 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6522 break 2
6523 fi
6524 done
6525 done
6526 IFS=$as_save_IFS
6527
6528 fi
6529 fi
6530 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6531 if test -n "$DSYMUTIL"; then
6532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6533 $as_echo "$DSYMUTIL" >&6; }
6534 else
6535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6536 $as_echo "no" >&6; }
6537 fi
6538
6539
6540 fi
6541 if test -z "$ac_cv_prog_DSYMUTIL"; then
6542 ac_ct_DSYMUTIL=$DSYMUTIL
6543 # Extract the first word of "dsymutil", so it can be a program name with args.
6544 set dummy dsymutil; ac_word=$2
6545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6546 $as_echo_n "checking for $ac_word... " >&6; }
6547 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6548 $as_echo_n "(cached) " >&6
6549 else
6550 if test -n "$ac_ct_DSYMUTIL"; then
6551 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6552 else
6553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6554 for as_dir in $PATH
6555 do
6556 IFS=$as_save_IFS
6557 test -z "$as_dir" && as_dir=.
6558 for ac_exec_ext in '' $ac_executable_extensions; do
6559 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6560 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6561 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6562 break 2
6563 fi
6564 done
6565 done
6566 IFS=$as_save_IFS
6567
6568 fi
6569 fi
6570 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6571 if test -n "$ac_ct_DSYMUTIL"; then
6572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6573 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6574 else
6575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6576 $as_echo "no" >&6; }
6577 fi
6578
6579 if test "x$ac_ct_DSYMUTIL" = x; then
6580 DSYMUTIL=":"
6581 else
6582 case $cross_compiling:$ac_tool_warned in
6583 yes:)
6584 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6585 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6586 ac_tool_warned=yes ;;
6587 esac
6588 DSYMUTIL=$ac_ct_DSYMUTIL
6589 fi
6590 else
6591 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6592 fi
6593
6594 if test -n "$ac_tool_prefix"; then
6595 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6596 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6598 $as_echo_n "checking for $ac_word... " >&6; }
6599 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6600 $as_echo_n "(cached) " >&6
6601 else
6602 if test -n "$NMEDIT"; then
6603 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6604 else
6605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6606 for as_dir in $PATH
6607 do
6608 IFS=$as_save_IFS
6609 test -z "$as_dir" && as_dir=.
6610 for ac_exec_ext in '' $ac_executable_extensions; do
6611 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6612 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6613 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6614 break 2
6615 fi
6616 done
6617 done
6618 IFS=$as_save_IFS
6619
6620 fi
6621 fi
6622 NMEDIT=$ac_cv_prog_NMEDIT
6623 if test -n "$NMEDIT"; then
6624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6625 $as_echo "$NMEDIT" >&6; }
6626 else
6627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6628 $as_echo "no" >&6; }
6629 fi
6630
6631
6632 fi
6633 if test -z "$ac_cv_prog_NMEDIT"; then
6634 ac_ct_NMEDIT=$NMEDIT
6635 # Extract the first word of "nmedit", so it can be a program name with args.
6636 set dummy nmedit; ac_word=$2
6637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6638 $as_echo_n "checking for $ac_word... " >&6; }
6639 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6640 $as_echo_n "(cached) " >&6
6641 else
6642 if test -n "$ac_ct_NMEDIT"; then
6643 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6644 else
6645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6646 for as_dir in $PATH
6647 do
6648 IFS=$as_save_IFS
6649 test -z "$as_dir" && as_dir=.
6650 for ac_exec_ext in '' $ac_executable_extensions; do
6651 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6652 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6653 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6654 break 2
6655 fi
6656 done
6657 done
6658 IFS=$as_save_IFS
6659
6660 fi
6661 fi
6662 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6663 if test -n "$ac_ct_NMEDIT"; then
6664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6665 $as_echo "$ac_ct_NMEDIT" >&6; }
6666 else
6667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6668 $as_echo "no" >&6; }
6669 fi
6670
6671 if test "x$ac_ct_NMEDIT" = x; then
6672 NMEDIT=":"
6673 else
6674 case $cross_compiling:$ac_tool_warned in
6675 yes:)
6676 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6677 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6678 ac_tool_warned=yes ;;
6679 esac
6680 NMEDIT=$ac_ct_NMEDIT
6681 fi
6682 else
6683 NMEDIT="$ac_cv_prog_NMEDIT"
6684 fi
6685
6686 if test -n "$ac_tool_prefix"; then
6687 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6688 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6690 $as_echo_n "checking for $ac_word... " >&6; }
6691 if test "${ac_cv_prog_LIPO+set}" = set; then :
6692 $as_echo_n "(cached) " >&6
6693 else
6694 if test -n "$LIPO"; then
6695 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6696 else
6697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6698 for as_dir in $PATH
6699 do
6700 IFS=$as_save_IFS
6701 test -z "$as_dir" && as_dir=.
6702 for ac_exec_ext in '' $ac_executable_extensions; do
6703 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6704 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6705 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6706 break 2
6707 fi
6708 done
6709 done
6710 IFS=$as_save_IFS
6711
6712 fi
6713 fi
6714 LIPO=$ac_cv_prog_LIPO
6715 if test -n "$LIPO"; then
6716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6717 $as_echo "$LIPO" >&6; }
6718 else
6719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6720 $as_echo "no" >&6; }
6721 fi
6722
6723
6724 fi
6725 if test -z "$ac_cv_prog_LIPO"; then
6726 ac_ct_LIPO=$LIPO
6727 # Extract the first word of "lipo", so it can be a program name with args.
6728 set dummy lipo; ac_word=$2
6729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6730 $as_echo_n "checking for $ac_word... " >&6; }
6731 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
6732 $as_echo_n "(cached) " >&6
6733 else
6734 if test -n "$ac_ct_LIPO"; then
6735 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6736 else
6737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6738 for as_dir in $PATH
6739 do
6740 IFS=$as_save_IFS
6741 test -z "$as_dir" && as_dir=.
6742 for ac_exec_ext in '' $ac_executable_extensions; do
6743 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6744 ac_cv_prog_ac_ct_LIPO="lipo"
6745 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6746 break 2
6747 fi
6748 done
6749 done
6750 IFS=$as_save_IFS
6751
6752 fi
6753 fi
6754 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6755 if test -n "$ac_ct_LIPO"; then
6756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6757 $as_echo "$ac_ct_LIPO" >&6; }
6758 else
6759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6760 $as_echo "no" >&6; }
6761 fi
6762
6763 if test "x$ac_ct_LIPO" = x; then
6764 LIPO=":"
6765 else
6766 case $cross_compiling:$ac_tool_warned in
6767 yes:)
6768 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6769 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6770 ac_tool_warned=yes ;;
6771 esac
6772 LIPO=$ac_ct_LIPO
6773 fi
6774 else
6775 LIPO="$ac_cv_prog_LIPO"
6776 fi
6777
6778 if test -n "$ac_tool_prefix"; then
6779 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6780 set dummy ${ac_tool_prefix}otool; ac_word=$2
6781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6782 $as_echo_n "checking for $ac_word... " >&6; }
6783 if test "${ac_cv_prog_OTOOL+set}" = set; then :
6784 $as_echo_n "(cached) " >&6
6785 else
6786 if test -n "$OTOOL"; then
6787 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6788 else
6789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6790 for as_dir in $PATH
6791 do
6792 IFS=$as_save_IFS
6793 test -z "$as_dir" && as_dir=.
6794 for ac_exec_ext in '' $ac_executable_extensions; do
6795 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6796 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6797 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6798 break 2
6799 fi
6800 done
6801 done
6802 IFS=$as_save_IFS
6803
6804 fi
6805 fi
6806 OTOOL=$ac_cv_prog_OTOOL
6807 if test -n "$OTOOL"; then
6808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6809 $as_echo "$OTOOL" >&6; }
6810 else
6811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6812 $as_echo "no" >&6; }
6813 fi
6814
6815
6816 fi
6817 if test -z "$ac_cv_prog_OTOOL"; then
6818 ac_ct_OTOOL=$OTOOL
6819 # Extract the first word of "otool", so it can be a program name with args.
6820 set dummy otool; ac_word=$2
6821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6822 $as_echo_n "checking for $ac_word... " >&6; }
6823 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
6824 $as_echo_n "(cached) " >&6
6825 else
6826 if test -n "$ac_ct_OTOOL"; then
6827 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6828 else
6829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6830 for as_dir in $PATH
6831 do
6832 IFS=$as_save_IFS
6833 test -z "$as_dir" && as_dir=.
6834 for ac_exec_ext in '' $ac_executable_extensions; do
6835 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6836 ac_cv_prog_ac_ct_OTOOL="otool"
6837 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6838 break 2
6839 fi
6840 done
6841 done
6842 IFS=$as_save_IFS
6843
6844 fi
6845 fi
6846 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6847 if test -n "$ac_ct_OTOOL"; then
6848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6849 $as_echo "$ac_ct_OTOOL" >&6; }
6850 else
6851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6852 $as_echo "no" >&6; }
6853 fi
6854
6855 if test "x$ac_ct_OTOOL" = x; then
6856 OTOOL=":"
6857 else
6858 case $cross_compiling:$ac_tool_warned in
6859 yes:)
6860 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6861 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6862 ac_tool_warned=yes ;;
6863 esac
6864 OTOOL=$ac_ct_OTOOL
6865 fi
6866 else
6867 OTOOL="$ac_cv_prog_OTOOL"
6868 fi
6869
6870 if test -n "$ac_tool_prefix"; then
6871 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6872 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6874 $as_echo_n "checking for $ac_word... " >&6; }
6875 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
6876 $as_echo_n "(cached) " >&6
6877 else
6878 if test -n "$OTOOL64"; then
6879 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6880 else
6881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6882 for as_dir in $PATH
6883 do
6884 IFS=$as_save_IFS
6885 test -z "$as_dir" && as_dir=.
6886 for ac_exec_ext in '' $ac_executable_extensions; do
6887 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6888 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6889 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6890 break 2
6891 fi
6892 done
6893 done
6894 IFS=$as_save_IFS
6895
6896 fi
6897 fi
6898 OTOOL64=$ac_cv_prog_OTOOL64
6899 if test -n "$OTOOL64"; then
6900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6901 $as_echo "$OTOOL64" >&6; }
6902 else
6903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6904 $as_echo "no" >&6; }
6905 fi
6906
6907
6908 fi
6909 if test -z "$ac_cv_prog_OTOOL64"; then
6910 ac_ct_OTOOL64=$OTOOL64
6911 # Extract the first word of "otool64", so it can be a program name with args.
6912 set dummy otool64; ac_word=$2
6913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6914 $as_echo_n "checking for $ac_word... " >&6; }
6915 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
6916 $as_echo_n "(cached) " >&6
6917 else
6918 if test -n "$ac_ct_OTOOL64"; then
6919 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6920 else
6921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6922 for as_dir in $PATH
6923 do
6924 IFS=$as_save_IFS
6925 test -z "$as_dir" && as_dir=.
6926 for ac_exec_ext in '' $ac_executable_extensions; do
6927 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6928 ac_cv_prog_ac_ct_OTOOL64="otool64"
6929 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6930 break 2
6931 fi
6932 done
6933 done
6934 IFS=$as_save_IFS
6935
6936 fi
6937 fi
6938 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6939 if test -n "$ac_ct_OTOOL64"; then
6940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6941 $as_echo "$ac_ct_OTOOL64" >&6; }
6942 else
6943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6944 $as_echo "no" >&6; }
6945 fi
6946
6947 if test "x$ac_ct_OTOOL64" = x; then
6948 OTOOL64=":"
6949 else
6950 case $cross_compiling:$ac_tool_warned in
6951 yes:)
6952 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6953 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6954 ac_tool_warned=yes ;;
6955 esac
6956 OTOOL64=$ac_ct_OTOOL64
6957 fi
6958 else
6959 OTOOL64="$ac_cv_prog_OTOOL64"
6960 fi
6961
6962
6963
6964
6965
6966
6967
6968
6969
6970
6971
6972
6973
6974
6975
6976
6977
6978
6979
6980
6981
6982
6983
6984
6985
6986
6987
6988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6989 $as_echo_n "checking for -single_module linker flag... " >&6; }
6990 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
6991 $as_echo_n "(cached) " >&6
6992 else
6993 lt_cv_apple_cc_single_mod=no
6994 if test -z "${LT_MULTI_MODULE}"; then
6995 # By default we will add the -single_module flag. You can override
6996 # by either setting the environment variable LT_MULTI_MODULE
6997 # non-empty at configure time, or by adding -multi_module to the
6998 # link flags.
6999 rm -rf libconftest.dylib*
7000 echo "int foo(void){return 1;}" > conftest.c
7001 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7002 -dynamiclib -Wl,-single_module conftest.c" >&5
7003 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7004 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7005 _lt_result=$?
7006 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7007 lt_cv_apple_cc_single_mod=yes
7008 else
7009 cat conftest.err >&5
7010 fi
7011 rm -rf libconftest.dylib*
7012 rm -f conftest.*
7013 fi
7014 fi
7015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7016 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7018 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7019 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7020 $as_echo_n "(cached) " >&6
7021 else
7022 lt_cv_ld_exported_symbols_list=no
7023 save_LDFLAGS=$LDFLAGS
7024 echo "_main" > conftest.sym
7025 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7027 /* end confdefs.h. */
7028
7029 int
7030 main ()
7031 {
7032
7033 ;
7034 return 0;
7035 }
7036 _ACEOF
7037 if ac_fn_c_try_link "$LINENO"; then :
7038 lt_cv_ld_exported_symbols_list=yes
7039 else
7040 lt_cv_ld_exported_symbols_list=no
7041 fi
7042 rm -f core conftest.err conftest.$ac_objext \
7043 conftest$ac_exeext conftest.$ac_ext
7044 LDFLAGS="$save_LDFLAGS"
7045
7046 fi
7047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7048 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7050 $as_echo_n "checking for -force_load linker flag... " >&6; }
7051 if test "${lt_cv_ld_force_load+set}" = set; then :
7052 $as_echo_n "(cached) " >&6
7053 else
7054 lt_cv_ld_force_load=no
7055 cat > conftest.c << _LT_EOF
7056 int forced_loaded() { return 2;}
7057 _LT_EOF
7058 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7059 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7060 echo "$AR cru libconftest.a conftest.o" >&5
7061 $AR cru libconftest.a conftest.o 2>&5
7062 echo "$RANLIB libconftest.a" >&5
7063 $RANLIB libconftest.a 2>&5
7064 cat > conftest.c << _LT_EOF
7065 int main() { return 0;}
7066 _LT_EOF
7067 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7068 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7069 _lt_result=$?
7070 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7071 lt_cv_ld_force_load=yes
7072 else
7073 cat conftest.err >&5
7074 fi
7075 rm -f conftest.err libconftest.a conftest conftest.c
7076 rm -rf conftest.dSYM
7077
7078 fi
7079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7080 $as_echo "$lt_cv_ld_force_load" >&6; }
7081 case $host_os in
7082 rhapsody* | darwin1.[012])
7083 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7084 darwin1.*)
7085 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7086 darwin*) # darwin 5.x on
7087 # if running on 10.5 or later, the deployment target defaults
7088 # to the OS version, if on x86, and 10.4, the deployment
7089 # target defaults to 10.4. Don't you love it?
7090 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7091 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7092 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7093 10.[012]*)
7094 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7095 10.*)
7096 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7097 esac
7098 ;;
7099 esac
7100 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7101 _lt_dar_single_mod='$single_module'
7102 fi
7103 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7104 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7105 else
7106 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7107 fi
7108 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7109 _lt_dsymutil='~$DSYMUTIL $lib || :'
7110 else
7111 _lt_dsymutil=
7112 fi
7113 ;;
7114 esac
7115
7116 ac_ext=c
7117 ac_cpp='$CPP $CPPFLAGS'
7118 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7119 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7120 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7122 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7123 # On Suns, sometimes $CPP names a directory.
7124 if test -n "$CPP" && test -d "$CPP"; then
7125 CPP=
7126 fi
7127 if test -z "$CPP"; then
7128 if test "${ac_cv_prog_CPP+set}" = set; then :
7129 $as_echo_n "(cached) " >&6
7130 else
7131 # Double quotes because CPP needs to be expanded
7132 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7133 do
7134 ac_preproc_ok=false
7135 for ac_c_preproc_warn_flag in '' yes
7136 do
7137 # Use a header file that comes with gcc, so configuring glibc
7138 # with a fresh cross-compiler works.
7139 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7140 # <limits.h> exists even on freestanding compilers.
7141 # On the NeXT, cc -E runs the code through the compiler's parser,
7142 # not just through cpp. "Syntax error" is here to catch this case.
7143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7144 /* end confdefs.h. */
7145 #ifdef __STDC__
7146 # include <limits.h>
7147 #else
7148 # include <assert.h>
7149 #endif
7150 Syntax error
7151 _ACEOF
7152 if ac_fn_c_try_cpp "$LINENO"; then :
7153
7154 else
7155 # Broken: fails on valid input.
7156 continue
7157 fi
7158 rm -f conftest.err conftest.$ac_ext
7159
7160 # OK, works on sane cases. Now check whether nonexistent headers
7161 # can be detected and how.
7162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7163 /* end confdefs.h. */
7164 #include <ac_nonexistent.h>
7165 _ACEOF
7166 if ac_fn_c_try_cpp "$LINENO"; then :
7167 # Broken: success on invalid input.
7168 continue
7169 else
7170 # Passes both tests.
7171 ac_preproc_ok=:
7172 break
7173 fi
7174 rm -f conftest.err conftest.$ac_ext
7175
7176 done
7177 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7178 rm -f conftest.err conftest.$ac_ext
7179 if $ac_preproc_ok; then :
7180 break
7181 fi
7182
7183 done
7184 ac_cv_prog_CPP=$CPP
7185
7186 fi
7187 CPP=$ac_cv_prog_CPP
7188 else
7189 ac_cv_prog_CPP=$CPP
7190 fi
7191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7192 $as_echo "$CPP" >&6; }
7193 ac_preproc_ok=false
7194 for ac_c_preproc_warn_flag in '' yes
7195 do
7196 # Use a header file that comes with gcc, so configuring glibc
7197 # with a fresh cross-compiler works.
7198 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7199 # <limits.h> exists even on freestanding compilers.
7200 # On the NeXT, cc -E runs the code through the compiler's parser,
7201 # not just through cpp. "Syntax error" is here to catch this case.
7202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7203 /* end confdefs.h. */
7204 #ifdef __STDC__
7205 # include <limits.h>
7206 #else
7207 # include <assert.h>
7208 #endif
7209 Syntax error
7210 _ACEOF
7211 if ac_fn_c_try_cpp "$LINENO"; then :
7212
7213 else
7214 # Broken: fails on valid input.
7215 continue
7216 fi
7217 rm -f conftest.err conftest.$ac_ext
7218
7219 # OK, works on sane cases. Now check whether nonexistent headers
7220 # can be detected and how.
7221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7222 /* end confdefs.h. */
7223 #include <ac_nonexistent.h>
7224 _ACEOF
7225 if ac_fn_c_try_cpp "$LINENO"; then :
7226 # Broken: success on invalid input.
7227 continue
7228 else
7229 # Passes both tests.
7230 ac_preproc_ok=:
7231 break
7232 fi
7233 rm -f conftest.err conftest.$ac_ext
7234
7235 done
7236 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7237 rm -f conftest.err conftest.$ac_ext
7238 if $ac_preproc_ok; then :
7239
7240 else
7241 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7242 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7243 as_fn_error "C preprocessor \"$CPP\" fails sanity check
7244 See \`config.log' for more details." "$LINENO" 5; }
7245 fi
7246
7247 ac_ext=c
7248 ac_cpp='$CPP $CPPFLAGS'
7249 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7250 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7251 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7252
7253
7254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7255 $as_echo_n "checking for ANSI C header files... " >&6; }
7256 if test "${ac_cv_header_stdc+set}" = set; then :
7257 $as_echo_n "(cached) " >&6
7258 else
7259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7260 /* end confdefs.h. */
7261 #include <stdlib.h>
7262 #include <stdarg.h>
7263 #include <string.h>
7264 #include <float.h>
7265
7266 int
7267 main ()
7268 {
7269
7270 ;
7271 return 0;
7272 }
7273 _ACEOF
7274 if ac_fn_c_try_compile "$LINENO"; then :
7275 ac_cv_header_stdc=yes
7276 else
7277 ac_cv_header_stdc=no
7278 fi
7279 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7280
7281 if test $ac_cv_header_stdc = yes; then
7282 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7284 /* end confdefs.h. */
7285 #include <string.h>
7286
7287 _ACEOF
7288 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7289 $EGREP "memchr" >/dev/null 2>&1; then :
7290
7291 else
7292 ac_cv_header_stdc=no
7293 fi
7294 rm -f conftest*
7295
7296 fi
7297
7298 if test $ac_cv_header_stdc = yes; then
7299 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7301 /* end confdefs.h. */
7302 #include <stdlib.h>
7303
7304 _ACEOF
7305 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7306 $EGREP "free" >/dev/null 2>&1; then :
7307
7308 else
7309 ac_cv_header_stdc=no
7310 fi
7311 rm -f conftest*
7312
7313 fi
7314
7315 if test $ac_cv_header_stdc = yes; then
7316 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7317 if test "$cross_compiling" = yes; then :
7318 :
7319 else
7320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7321 /* end confdefs.h. */
7322 #include <ctype.h>
7323 #include <stdlib.h>
7324 #if ((' ' & 0x0FF) == 0x020)
7325 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7326 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7327 #else
7328 # define ISLOWER(c) \
7329 (('a' <= (c) && (c) <= 'i') \
7330 || ('j' <= (c) && (c) <= 'r') \
7331 || ('s' <= (c) && (c) <= 'z'))
7332 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7333 #endif
7334
7335 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7336 int
7337 main ()
7338 {
7339 int i;
7340 for (i = 0; i < 256; i++)
7341 if (XOR (islower (i), ISLOWER (i))
7342 || toupper (i) != TOUPPER (i))
7343 return 2;
7344 return 0;
7345 }
7346 _ACEOF
7347 if ac_fn_c_try_run "$LINENO"; then :
7348
7349 else
7350 ac_cv_header_stdc=no
7351 fi
7352 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7353 conftest.$ac_objext conftest.beam conftest.$ac_ext
7354 fi
7355
7356 fi
7357 fi
7358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7359 $as_echo "$ac_cv_header_stdc" >&6; }
7360 if test $ac_cv_header_stdc = yes; then
7361
7362 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7363
7364 fi
7365
7366 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7367 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7368 inttypes.h stdint.h unistd.h
7369 do :
7370 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7371 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7372 "
7373 eval as_val=\$$as_ac_Header
7374 if test "x$as_val" = x""yes; then :
7375 cat >>confdefs.h <<_ACEOF
7376 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7377 _ACEOF
7378
7379 fi
7380
7381 done
7382
7383
7384 for ac_header in dlfcn.h
7385 do :
7386 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7387 "
7388 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7389 cat >>confdefs.h <<_ACEOF
7390 #define HAVE_DLFCN_H 1
7391 _ACEOF
7392
7393 fi
7394
7395 done
7396
7397
7398
7399
7400
7401 # Set options
7402 enable_dlopen=yes
7403 # Check whether --enable-static was given.
7404 if test "${enable_static+set}" = set; then :
7405 enableval=$enable_static; p=${PACKAGE-default}
7406 case $enableval in
7407 yes) enable_static=yes ;;
7408 no) enable_static=no ;;
7409 *)
7410 enable_static=no
7411 # Look at the argument we got. We use all the common list separators.
7412 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7413 for pkg in $enableval; do
7414 IFS="$lt_save_ifs"
7415 if test "X$pkg" = "X$p"; then
7416 enable_static=yes
7417 fi
7418 done
7419 IFS="$lt_save_ifs"
7420 ;;
7421 esac
7422 else
7423 enable_static=no
7424 fi
7425
7426
7427
7428
7429
7430
7431
7432
7433
7434
7435
7436 enable_win32_dll=no
7437
7438
7439 # Check whether --enable-shared was given.
7440 if test "${enable_shared+set}" = set; then :
7441 enableval=$enable_shared; p=${PACKAGE-default}
7442 case $enableval in
7443 yes) enable_shared=yes ;;
7444 no) enable_shared=no ;;
7445 *)
7446 enable_shared=no
7447 # Look at the argument we got. We use all the common list separators.
7448 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7449 for pkg in $enableval; do
7450 IFS="$lt_save_ifs"
7451 if test "X$pkg" = "X$p"; then
7452 enable_shared=yes
7453 fi
7454 done
7455 IFS="$lt_save_ifs"
7456 ;;
7457 esac
7458 else
7459 enable_shared=yes
7460 fi
7461
7462
7463
7464
7465
7466
7467
7468
7469
7470
7471
7472 # Check whether --with-pic was given.
7473 if test "${with_pic+set}" = set; then :
7474 withval=$with_pic; pic_mode="$withval"
7475 else
7476 pic_mode=default
7477 fi
7478
7479
7480 test -z "$pic_mode" && pic_mode=default
7481
7482
7483
7484
7485
7486
7487
7488 # Check whether --enable-fast-install was given.
7489 if test "${enable_fast_install+set}" = set; then :
7490 enableval=$enable_fast_install; p=${PACKAGE-default}
7491 case $enableval in
7492 yes) enable_fast_install=yes ;;
7493 no) enable_fast_install=no ;;
7494 *)
7495 enable_fast_install=no
7496 # Look at the argument we got. We use all the common list separators.
7497 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7498 for pkg in $enableval; do
7499 IFS="$lt_save_ifs"
7500 if test "X$pkg" = "X$p"; then
7501 enable_fast_install=yes
7502 fi
7503 done
7504 IFS="$lt_save_ifs"
7505 ;;
7506 esac
7507 else
7508 enable_fast_install=yes
7509 fi
7510
7511
7512
7513
7514
7515
7516
7517
7518
7519
7520
7521 # This can be used to rebuild libtool when needed
7522 LIBTOOL_DEPS="$ltmain"
7523
7524 # Always use our own libtool.
7525 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7526
7527
7528
7529
7530
7531
7532
7533
7534
7535
7536
7537
7538
7539
7540
7541
7542
7543
7544
7545
7546
7547
7548
7549
7550
7551
7552 test -z "$LN_S" && LN_S="ln -s"
7553
7554
7555
7556
7557
7558
7559
7560
7561
7562
7563
7564
7565
7566
7567 if test -n "${ZSH_VERSION+set}" ; then
7568 setopt NO_GLOB_SUBST
7569 fi
7570
7571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7572 $as_echo_n "checking for objdir... " >&6; }
7573 if test "${lt_cv_objdir+set}" = set; then :
7574 $as_echo_n "(cached) " >&6
7575 else
7576 rm -f .libs 2>/dev/null
7577 mkdir .libs 2>/dev/null
7578 if test -d .libs; then
7579 lt_cv_objdir=.libs
7580 else
7581 # MS-DOS does not allow filenames that begin with a dot.
7582 lt_cv_objdir=_libs
7583 fi
7584 rmdir .libs 2>/dev/null
7585 fi
7586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7587 $as_echo "$lt_cv_objdir" >&6; }
7588 objdir=$lt_cv_objdir
7589
7590
7591
7592
7593
7594 cat >>confdefs.h <<_ACEOF
7595 #define LT_OBJDIR "$lt_cv_objdir/"
7596 _ACEOF
7597
7598
7599
7600
7601 case $host_os in
7602 aix3*)
7603 # AIX sometimes has problems with the GCC collect2 program. For some
7604 # reason, if we set the COLLECT_NAMES environment variable, the problems
7605 # vanish in a puff of smoke.
7606 if test "X${COLLECT_NAMES+set}" != Xset; then
7607 COLLECT_NAMES=
7608 export COLLECT_NAMES
7609 fi
7610 ;;
7611 esac
7612
7613 # Global variables:
7614 ofile=libtool
7615 can_build_shared=yes
7616
7617 # All known linkers require a `.a' archive for static linking (except MSVC,
7618 # which needs '.lib').
7619 libext=a
7620
7621 with_gnu_ld="$lt_cv_prog_gnu_ld"
7622
7623 old_CC="$CC"
7624 old_CFLAGS="$CFLAGS"
7625
7626 # Set sane defaults for various variables
7627 test -z "$CC" && CC=cc
7628 test -z "$LTCC" && LTCC=$CC
7629 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7630 test -z "$LD" && LD=ld
7631 test -z "$ac_objext" && ac_objext=o
7632
7633 for cc_temp in $compiler""; do
7634 case $cc_temp in
7635 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7636 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7637 \-*) ;;
7638 *) break;;
7639 esac
7640 done
7641 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7642
7643
7644 # Only perform the check for file, if the check method requires it
7645 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7646 case $deplibs_check_method in
7647 file_magic*)
7648 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7650 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7651 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7652 $as_echo_n "(cached) " >&6
7653 else
7654 case $MAGIC_CMD in
7655 [\\/*] | ?:[\\/]*)
7656 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7657 ;;
7658 *)
7659 lt_save_MAGIC_CMD="$MAGIC_CMD"
7660 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7661 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7662 for ac_dir in $ac_dummy; do
7663 IFS="$lt_save_ifs"
7664 test -z "$ac_dir" && ac_dir=.
7665 if test -f $ac_dir/${ac_tool_prefix}file; then
7666 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7667 if test -n "$file_magic_test_file"; then
7668 case $deplibs_check_method in
7669 "file_magic "*)
7670 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7671 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7672 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7673 $EGREP "$file_magic_regex" > /dev/null; then
7674 :
7675 else
7676 cat <<_LT_EOF 1>&2
7677
7678 *** Warning: the command libtool uses to detect shared libraries,
7679 *** $file_magic_cmd, produces output that libtool cannot recognize.
7680 *** The result is that libtool may fail to recognize shared libraries
7681 *** as such. This will affect the creation of libtool libraries that
7682 *** depend on shared libraries, but programs linked with such libtool
7683 *** libraries will work regardless of this problem. Nevertheless, you
7684 *** may want to report the problem to your system manager and/or to
7685 *** bug-libtool@gnu.org
7686
7687 _LT_EOF
7688 fi ;;
7689 esac
7690 fi
7691 break
7692 fi
7693 done
7694 IFS="$lt_save_ifs"
7695 MAGIC_CMD="$lt_save_MAGIC_CMD"
7696 ;;
7697 esac
7698 fi
7699
7700 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7701 if test -n "$MAGIC_CMD"; then
7702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7703 $as_echo "$MAGIC_CMD" >&6; }
7704 else
7705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7706 $as_echo "no" >&6; }
7707 fi
7708
7709
7710
7711
7712
7713 if test -z "$lt_cv_path_MAGIC_CMD"; then
7714 if test -n "$ac_tool_prefix"; then
7715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7716 $as_echo_n "checking for file... " >&6; }
7717 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7718 $as_echo_n "(cached) " >&6
7719 else
7720 case $MAGIC_CMD in
7721 [\\/*] | ?:[\\/]*)
7722 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7723 ;;
7724 *)
7725 lt_save_MAGIC_CMD="$MAGIC_CMD"
7726 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7727 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7728 for ac_dir in $ac_dummy; do
7729 IFS="$lt_save_ifs"
7730 test -z "$ac_dir" && ac_dir=.
7731 if test -f $ac_dir/file; then
7732 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7733 if test -n "$file_magic_test_file"; then
7734 case $deplibs_check_method in
7735 "file_magic "*)
7736 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7737 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7738 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7739 $EGREP "$file_magic_regex" > /dev/null; then
7740 :
7741 else
7742 cat <<_LT_EOF 1>&2
7743
7744 *** Warning: the command libtool uses to detect shared libraries,
7745 *** $file_magic_cmd, produces output that libtool cannot recognize.
7746 *** The result is that libtool may fail to recognize shared libraries
7747 *** as such. This will affect the creation of libtool libraries that
7748 *** depend on shared libraries, but programs linked with such libtool
7749 *** libraries will work regardless of this problem. Nevertheless, you
7750 *** may want to report the problem to your system manager and/or to
7751 *** bug-libtool@gnu.org
7752
7753 _LT_EOF
7754 fi ;;
7755 esac
7756 fi
7757 break
7758 fi
7759 done
7760 IFS="$lt_save_ifs"
7761 MAGIC_CMD="$lt_save_MAGIC_CMD"
7762 ;;
7763 esac
7764 fi
7765
7766 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7767 if test -n "$MAGIC_CMD"; then
7768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7769 $as_echo "$MAGIC_CMD" >&6; }
7770 else
7771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7772 $as_echo "no" >&6; }
7773 fi
7774
7775
7776 else
7777 MAGIC_CMD=:
7778 fi
7779 fi
7780
7781 fi
7782 ;;
7783 esac
7784
7785 # Use C for the default configuration in the libtool script
7786
7787 lt_save_CC="$CC"
7788 ac_ext=c
7789 ac_cpp='$CPP $CPPFLAGS'
7790 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7791 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7792 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7793
7794
7795 # Source file extension for C test sources.
7796 ac_ext=c
7797
7798 # Object file extension for compiled C test sources.
7799 objext=o
7800 objext=$objext
7801
7802 # Code to be used in simple compile tests
7803 lt_simple_compile_test_code="int some_variable = 0;"
7804
7805 # Code to be used in simple link tests
7806 lt_simple_link_test_code='int main(){return(0);}'
7807
7808
7809
7810
7811
7812
7813
7814 # If no C compiler was specified, use CC.
7815 LTCC=${LTCC-"$CC"}
7816
7817 # If no C compiler flags were specified, use CFLAGS.
7818 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7819
7820 # Allow CC to be a program name with arguments.
7821 compiler=$CC
7822
7823 # Save the default compiler, since it gets overwritten when the other
7824 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7825 compiler_DEFAULT=$CC
7826
7827 # save warnings/boilerplate of simple test code
7828 ac_outfile=conftest.$ac_objext
7829 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7830 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7831 _lt_compiler_boilerplate=`cat conftest.err`
7832 $RM conftest*
7833
7834 ac_outfile=conftest.$ac_objext
7835 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7836 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7837 _lt_linker_boilerplate=`cat conftest.err`
7838 $RM -r conftest*
7839
7840
7841 if test -n "$compiler"; then
7842
7843 lt_prog_compiler_no_builtin_flag=
7844
7845 if test "$GCC" = yes; then
7846 case $cc_basename in
7847 nvcc*)
7848 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7849 *)
7850 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7851 esac
7852
7853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7854 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7855 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
7856 $as_echo_n "(cached) " >&6
7857 else
7858 lt_cv_prog_compiler_rtti_exceptions=no
7859 ac_outfile=conftest.$ac_objext
7860 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7861 lt_compiler_flag="-fno-rtti -fno-exceptions"
7862 # Insert the option either (1) after the last *FLAGS variable, or
7863 # (2) before a word containing "conftest.", or (3) at the end.
7864 # Note that $ac_compile itself does not contain backslashes and begins
7865 # with a dollar sign (not a hyphen), so the echo should work correctly.
7866 # The option is referenced via a variable to avoid confusing sed.
7867 lt_compile=`echo "$ac_compile" | $SED \
7868 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7869 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7870 -e 's:$: $lt_compiler_flag:'`
7871 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7872 (eval "$lt_compile" 2>conftest.err)
7873 ac_status=$?
7874 cat conftest.err >&5
7875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7876 if (exit $ac_status) && test -s "$ac_outfile"; then
7877 # The compiler can only warn and ignore the option if not recognized
7878 # So say no if there are warnings other than the usual output.
7879 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7880 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7881 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7882 lt_cv_prog_compiler_rtti_exceptions=yes
7883 fi
7884 fi
7885 $RM conftest*
7886
7887 fi
7888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7889 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7890
7891 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7892 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7893 else
7894 :
7895 fi
7896
7897 fi
7898
7899
7900
7901
7902
7903
7904 lt_prog_compiler_wl=
7905 lt_prog_compiler_pic=
7906 lt_prog_compiler_static=
7907
7908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7909 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7910
7911 if test "$GCC" = yes; then
7912 lt_prog_compiler_wl='-Wl,'
7913 lt_prog_compiler_static='-static'
7914
7915 case $host_os in
7916 aix*)
7917 # All AIX code is PIC.
7918 if test "$host_cpu" = ia64; then
7919 # AIX 5 now supports IA64 processor
7920 lt_prog_compiler_static='-Bstatic'
7921 fi
7922 ;;
7923
7924 amigaos*)
7925 case $host_cpu in
7926 powerpc)
7927 # see comment about AmigaOS4 .so support
7928 lt_prog_compiler_pic='-fPIC'
7929 ;;
7930 m68k)
7931 # FIXME: we need at least 68020 code to build shared libraries, but
7932 # adding the `-m68020' flag to GCC prevents building anything better,
7933 # like `-m68040'.
7934 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7935 ;;
7936 esac
7937 ;;
7938
7939 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7940 # PIC is the default for these OSes.
7941 ;;
7942
7943 mingw* | cygwin* | pw32* | os2* | cegcc*)
7944 # This hack is so that the source file can tell whether it is being
7945 # built for inclusion in a dll (and should export symbols for example).
7946 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7947 # (--disable-auto-import) libraries
7948 lt_prog_compiler_pic='-DDLL_EXPORT'
7949 ;;
7950
7951 darwin* | rhapsody*)
7952 # PIC is the default on this platform
7953 # Common symbols not allowed in MH_DYLIB files
7954 lt_prog_compiler_pic='-fno-common'
7955 ;;
7956
7957 haiku*)
7958 # PIC is the default for Haiku.
7959 # The "-static" flag exists, but is broken.
7960 lt_prog_compiler_static=
7961 ;;
7962
7963 hpux*)
7964 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7965 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7966 # sets the default TLS model and affects inlining.
7967 case $host_cpu in
7968 hppa*64*)
7969 # +Z the default
7970 ;;
7971 *)
7972 lt_prog_compiler_pic='-fPIC'
7973 ;;
7974 esac
7975 ;;
7976
7977 interix[3-9]*)
7978 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7979 # Instead, we relocate shared libraries at runtime.
7980 ;;
7981
7982 msdosdjgpp*)
7983 # Just because we use GCC doesn't mean we suddenly get shared libraries
7984 # on systems that don't support them.
7985 lt_prog_compiler_can_build_shared=no
7986 enable_shared=no
7987 ;;
7988
7989 *nto* | *qnx*)
7990 # QNX uses GNU C++, but need to define -shared option too, otherwise
7991 # it will coredump.
7992 lt_prog_compiler_pic='-fPIC -shared'
7993 ;;
7994
7995 sysv4*MP*)
7996 if test -d /usr/nec; then
7997 lt_prog_compiler_pic=-Kconform_pic
7998 fi
7999 ;;
8000
8001 *)
8002 lt_prog_compiler_pic='-fPIC'
8003 ;;
8004 esac
8005
8006 case $cc_basename in
8007 nvcc*) # Cuda Compiler Driver 2.2
8008 lt_prog_compiler_wl='-Xlinker '
8009 lt_prog_compiler_pic='-Xcompiler -fPIC'
8010 ;;
8011 esac
8012 else
8013 # PORTME Check for flag to pass linker flags through the system compiler.
8014 case $host_os in
8015 aix*)
8016 lt_prog_compiler_wl='-Wl,'
8017 if test "$host_cpu" = ia64; then
8018 # AIX 5 now supports IA64 processor
8019 lt_prog_compiler_static='-Bstatic'
8020 else
8021 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8022 fi
8023 ;;
8024
8025 mingw* | cygwin* | pw32* | os2* | cegcc*)
8026 # This hack is so that the source file can tell whether it is being
8027 # built for inclusion in a dll (and should export symbols for example).
8028 lt_prog_compiler_pic='-DDLL_EXPORT'
8029 ;;
8030
8031 hpux9* | hpux10* | hpux11*)
8032 lt_prog_compiler_wl='-Wl,'
8033 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8034 # not for PA HP-UX.
8035 case $host_cpu in
8036 hppa*64*|ia64*)
8037 # +Z the default
8038 ;;
8039 *)
8040 lt_prog_compiler_pic='+Z'
8041 ;;
8042 esac
8043 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8044 lt_prog_compiler_static='${wl}-a ${wl}archive'
8045 ;;
8046
8047 irix5* | irix6* | nonstopux*)
8048 lt_prog_compiler_wl='-Wl,'
8049 # PIC (with -KPIC) is the default.
8050 lt_prog_compiler_static='-non_shared'
8051 ;;
8052
8053 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8054 case $cc_basename in
8055 # old Intel for x86_64 which still supported -KPIC.
8056 ecc*)
8057 lt_prog_compiler_wl='-Wl,'
8058 lt_prog_compiler_pic='-KPIC'
8059 lt_prog_compiler_static='-static'
8060 ;;
8061 # icc used to be incompatible with GCC.
8062 # ICC 10 doesn't accept -KPIC any more.
8063 icc* | ifort*)
8064 lt_prog_compiler_wl='-Wl,'
8065 lt_prog_compiler_pic='-fPIC'
8066 lt_prog_compiler_static='-static'
8067 ;;
8068 # Lahey Fortran 8.1.
8069 lf95*)
8070 lt_prog_compiler_wl='-Wl,'
8071 lt_prog_compiler_pic='--shared'
8072 lt_prog_compiler_static='--static'
8073 ;;
8074 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8075 # Portland Group compilers (*not* the Pentium gcc compiler,
8076 # which looks to be a dead project)
8077 lt_prog_compiler_wl='-Wl,'
8078 lt_prog_compiler_pic='-fpic'
8079 lt_prog_compiler_static='-Bstatic'
8080 ;;
8081 ccc*)
8082 lt_prog_compiler_wl='-Wl,'
8083 # All Alpha code is PIC.
8084 lt_prog_compiler_static='-non_shared'
8085 ;;
8086 xl* | bgxl* | bgf* | mpixl*)
8087 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8088 lt_prog_compiler_wl='-Wl,'
8089 lt_prog_compiler_pic='-qpic'
8090 lt_prog_compiler_static='-qstaticlink'
8091 ;;
8092 *)
8093 case `$CC -V 2>&1 | sed 5q` in
8094 *Sun\ F* | *Sun*Fortran*)
8095 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8096 lt_prog_compiler_pic='-KPIC'
8097 lt_prog_compiler_static='-Bstatic'
8098 lt_prog_compiler_wl=''
8099 ;;
8100 *Sun\ C*)
8101 # Sun C 5.9
8102 lt_prog_compiler_pic='-KPIC'
8103 lt_prog_compiler_static='-Bstatic'
8104 lt_prog_compiler_wl='-Wl,'
8105 ;;
8106 esac
8107 ;;
8108 esac
8109 ;;
8110
8111 newsos6)
8112 lt_prog_compiler_pic='-KPIC'
8113 lt_prog_compiler_static='-Bstatic'
8114 ;;
8115
8116 *nto* | *qnx*)
8117 # QNX uses GNU C++, but need to define -shared option too, otherwise
8118 # it will coredump.
8119 lt_prog_compiler_pic='-fPIC -shared'
8120 ;;
8121
8122 osf3* | osf4* | osf5*)
8123 lt_prog_compiler_wl='-Wl,'
8124 # All OSF/1 code is PIC.
8125 lt_prog_compiler_static='-non_shared'
8126 ;;
8127
8128 rdos*)
8129 lt_prog_compiler_static='-non_shared'
8130 ;;
8131
8132 solaris*)
8133 lt_prog_compiler_pic='-KPIC'
8134 lt_prog_compiler_static='-Bstatic'
8135 case $cc_basename in
8136 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8137 lt_prog_compiler_wl='-Qoption ld ';;
8138 *)
8139 lt_prog_compiler_wl='-Wl,';;
8140 esac
8141 ;;
8142
8143 sunos4*)
8144 lt_prog_compiler_wl='-Qoption ld '
8145 lt_prog_compiler_pic='-PIC'
8146 lt_prog_compiler_static='-Bstatic'
8147 ;;
8148
8149 sysv4 | sysv4.2uw2* | sysv4.3*)
8150 lt_prog_compiler_wl='-Wl,'
8151 lt_prog_compiler_pic='-KPIC'
8152 lt_prog_compiler_static='-Bstatic'
8153 ;;
8154
8155 sysv4*MP*)
8156 if test -d /usr/nec ;then
8157 lt_prog_compiler_pic='-Kconform_pic'
8158 lt_prog_compiler_static='-Bstatic'
8159 fi
8160 ;;
8161
8162 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8163 lt_prog_compiler_wl='-Wl,'
8164 lt_prog_compiler_pic='-KPIC'
8165 lt_prog_compiler_static='-Bstatic'
8166 ;;
8167
8168 unicos*)
8169 lt_prog_compiler_wl='-Wl,'
8170 lt_prog_compiler_can_build_shared=no
8171 ;;
8172
8173 uts4*)
8174 lt_prog_compiler_pic='-pic'
8175 lt_prog_compiler_static='-Bstatic'
8176 ;;
8177
8178 *)
8179 lt_prog_compiler_can_build_shared=no
8180 ;;
8181 esac
8182 fi
8183
8184 case $host_os in
8185 # For platforms which do not support PIC, -DPIC is meaningless:
8186 *djgpp*)
8187 lt_prog_compiler_pic=
8188 ;;
8189 *)
8190 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8191 ;;
8192 esac
8193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8194 $as_echo "$lt_prog_compiler_pic" >&6; }
8195
8196
8197
8198
8199
8200
8201 #
8202 # Check to make sure the PIC flag actually works.
8203 #
8204 if test -n "$lt_prog_compiler_pic"; then
8205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8206 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8207 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8208 $as_echo_n "(cached) " >&6
8209 else
8210 lt_cv_prog_compiler_pic_works=no
8211 ac_outfile=conftest.$ac_objext
8212 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8213 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8214 # Insert the option either (1) after the last *FLAGS variable, or
8215 # (2) before a word containing "conftest.", or (3) at the end.
8216 # Note that $ac_compile itself does not contain backslashes and begins
8217 # with a dollar sign (not a hyphen), so the echo should work correctly.
8218 # The option is referenced via a variable to avoid confusing sed.
8219 lt_compile=`echo "$ac_compile" | $SED \
8220 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8221 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8222 -e 's:$: $lt_compiler_flag:'`
8223 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8224 (eval "$lt_compile" 2>conftest.err)
8225 ac_status=$?
8226 cat conftest.err >&5
8227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8228 if (exit $ac_status) && test -s "$ac_outfile"; then
8229 # The compiler can only warn and ignore the option if not recognized
8230 # So say no if there are warnings other than the usual output.
8231 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8232 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8233 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8234 lt_cv_prog_compiler_pic_works=yes
8235 fi
8236 fi
8237 $RM conftest*
8238
8239 fi
8240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8241 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8242
8243 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8244 case $lt_prog_compiler_pic in
8245 "" | " "*) ;;
8246 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8247 esac
8248 else
8249 lt_prog_compiler_pic=
8250 lt_prog_compiler_can_build_shared=no
8251 fi
8252
8253 fi
8254
8255
8256
8257
8258
8259
8260 #
8261 # Check to make sure the static flag actually works.
8262 #
8263 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8265 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8266 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8267 $as_echo_n "(cached) " >&6
8268 else
8269 lt_cv_prog_compiler_static_works=no
8270 save_LDFLAGS="$LDFLAGS"
8271 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8272 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8273 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8274 # The linker can only warn and ignore the option if not recognized
8275 # So say no if there are warnings
8276 if test -s conftest.err; then
8277 # Append any errors to the config.log.
8278 cat conftest.err 1>&5
8279 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8280 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8281 if diff conftest.exp conftest.er2 >/dev/null; then
8282 lt_cv_prog_compiler_static_works=yes
8283 fi
8284 else
8285 lt_cv_prog_compiler_static_works=yes
8286 fi
8287 fi
8288 $RM -r conftest*
8289 LDFLAGS="$save_LDFLAGS"
8290
8291 fi
8292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8293 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8294
8295 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8296 :
8297 else
8298 lt_prog_compiler_static=
8299 fi
8300
8301
8302
8303
8304
8305
8306
8307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8308 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8309 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8310 $as_echo_n "(cached) " >&6
8311 else
8312 lt_cv_prog_compiler_c_o=no
8313 $RM -r conftest 2>/dev/null
8314 mkdir conftest
8315 cd conftest
8316 mkdir out
8317 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8318
8319 lt_compiler_flag="-o out/conftest2.$ac_objext"
8320 # Insert the option either (1) after the last *FLAGS variable, or
8321 # (2) before a word containing "conftest.", or (3) at the end.
8322 # Note that $ac_compile itself does not contain backslashes and begins
8323 # with a dollar sign (not a hyphen), so the echo should work correctly.
8324 lt_compile=`echo "$ac_compile" | $SED \
8325 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8326 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8327 -e 's:$: $lt_compiler_flag:'`
8328 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8329 (eval "$lt_compile" 2>out/conftest.err)
8330 ac_status=$?
8331 cat out/conftest.err >&5
8332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8333 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8334 then
8335 # The compiler can only warn and ignore the option if not recognized
8336 # So say no if there are warnings
8337 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8338 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8339 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8340 lt_cv_prog_compiler_c_o=yes
8341 fi
8342 fi
8343 chmod u+w . 2>&5
8344 $RM conftest*
8345 # SGI C++ compiler will create directory out/ii_files/ for
8346 # template instantiation
8347 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8348 $RM out/* && rmdir out
8349 cd ..
8350 $RM -r conftest
8351 $RM conftest*
8352
8353 fi
8354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8355 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8356
8357
8358
8359
8360
8361
8362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8363 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8364 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8365 $as_echo_n "(cached) " >&6
8366 else
8367 lt_cv_prog_compiler_c_o=no
8368 $RM -r conftest 2>/dev/null
8369 mkdir conftest
8370 cd conftest
8371 mkdir out
8372 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8373
8374 lt_compiler_flag="-o out/conftest2.$ac_objext"
8375 # Insert the option either (1) after the last *FLAGS variable, or
8376 # (2) before a word containing "conftest.", or (3) at the end.
8377 # Note that $ac_compile itself does not contain backslashes and begins
8378 # with a dollar sign (not a hyphen), so the echo should work correctly.
8379 lt_compile=`echo "$ac_compile" | $SED \
8380 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8381 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8382 -e 's:$: $lt_compiler_flag:'`
8383 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8384 (eval "$lt_compile" 2>out/conftest.err)
8385 ac_status=$?
8386 cat out/conftest.err >&5
8387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8388 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8389 then
8390 # The compiler can only warn and ignore the option if not recognized
8391 # So say no if there are warnings
8392 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8393 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8394 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8395 lt_cv_prog_compiler_c_o=yes
8396 fi
8397 fi
8398 chmod u+w . 2>&5
8399 $RM conftest*
8400 # SGI C++ compiler will create directory out/ii_files/ for
8401 # template instantiation
8402 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8403 $RM out/* && rmdir out
8404 cd ..
8405 $RM -r conftest
8406 $RM conftest*
8407
8408 fi
8409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8410 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8411
8412
8413
8414
8415 hard_links="nottested"
8416 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8417 # do not overwrite the value of need_locks provided by the user
8418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8419 $as_echo_n "checking if we can lock with hard links... " >&6; }
8420 hard_links=yes
8421 $RM conftest*
8422 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8423 touch conftest.a
8424 ln conftest.a conftest.b 2>&5 || hard_links=no
8425 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8427 $as_echo "$hard_links" >&6; }
8428 if test "$hard_links" = no; then
8429 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8430 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8431 need_locks=warn
8432 fi
8433 else
8434 need_locks=no
8435 fi
8436
8437
8438
8439
8440
8441
8442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8443 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8444
8445 runpath_var=
8446 allow_undefined_flag=
8447 always_export_symbols=no
8448 archive_cmds=
8449 archive_expsym_cmds=
8450 compiler_needs_object=no
8451 enable_shared_with_static_runtimes=no
8452 export_dynamic_flag_spec=
8453 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8454 hardcode_automatic=no
8455 hardcode_direct=no
8456 hardcode_direct_absolute=no
8457 hardcode_libdir_flag_spec=
8458 hardcode_libdir_flag_spec_ld=
8459 hardcode_libdir_separator=
8460 hardcode_minus_L=no
8461 hardcode_shlibpath_var=unsupported
8462 inherit_rpath=no
8463 link_all_deplibs=unknown
8464 module_cmds=
8465 module_expsym_cmds=
8466 old_archive_from_new_cmds=
8467 old_archive_from_expsyms_cmds=
8468 thread_safe_flag_spec=
8469 whole_archive_flag_spec=
8470 # include_expsyms should be a list of space-separated symbols to be *always*
8471 # included in the symbol list
8472 include_expsyms=
8473 # exclude_expsyms can be an extended regexp of symbols to exclude
8474 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8475 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8476 # as well as any symbol that contains `d'.
8477 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8478 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8479 # platforms (ab)use it in PIC code, but their linkers get confused if
8480 # the symbol is explicitly referenced. Since portable code cannot
8481 # rely on this symbol name, it's probably fine to never include it in
8482 # preloaded symbol tables.
8483 # Exclude shared library initialization/finalization symbols.
8484 extract_expsyms_cmds=
8485
8486 case $host_os in
8487 cygwin* | mingw* | pw32* | cegcc*)
8488 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8489 # When not using gcc, we currently assume that we are using
8490 # Microsoft Visual C++.
8491 if test "$GCC" != yes; then
8492 with_gnu_ld=no
8493 fi
8494 ;;
8495 interix*)
8496 # we just hope/assume this is gcc and not c89 (= MSVC++)
8497 with_gnu_ld=yes
8498 ;;
8499 openbsd*)
8500 with_gnu_ld=no
8501 ;;
8502 esac
8503
8504 ld_shlibs=yes
8505
8506 # On some targets, GNU ld is compatible enough with the native linker
8507 # that we're better off using the native interface for both.
8508 lt_use_gnu_ld_interface=no
8509 if test "$with_gnu_ld" = yes; then
8510 case $host_os in
8511 aix*)
8512 # The AIX port of GNU ld has always aspired to compatibility
8513 # with the native linker. However, as the warning in the GNU ld
8514 # block says, versions before 2.19.5* couldn't really create working
8515 # shared libraries, regardless of the interface used.
8516 case `$LD -v 2>&1` in
8517 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8518 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8519 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8520 *)
8521 lt_use_gnu_ld_interface=yes
8522 ;;
8523 esac
8524 ;;
8525 *)
8526 lt_use_gnu_ld_interface=yes
8527 ;;
8528 esac
8529 fi
8530
8531 if test "$lt_use_gnu_ld_interface" = yes; then
8532 # If archive_cmds runs LD, not CC, wlarc should be empty
8533 wlarc='${wl}'
8534
8535 # Set some defaults for GNU ld with shared library support. These
8536 # are reset later if shared libraries are not supported. Putting them
8537 # here allows them to be overridden if necessary.
8538 runpath_var=LD_RUN_PATH
8539 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8540 export_dynamic_flag_spec='${wl}--export-dynamic'
8541 # ancient GNU ld didn't support --whole-archive et. al.
8542 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8543 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8544 else
8545 whole_archive_flag_spec=
8546 fi
8547 supports_anon_versioning=no
8548 case `$LD -v 2>&1` in
8549 *GNU\ gold*) supports_anon_versioning=yes ;;
8550 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8551 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8552 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8553 *\ 2.11.*) ;; # other 2.11 versions
8554 *) supports_anon_versioning=yes ;;
8555 esac
8556
8557 # See if GNU ld supports shared libraries.
8558 case $host_os in
8559 aix[3-9]*)
8560 # On AIX/PPC, the GNU linker is very broken
8561 if test "$host_cpu" != ia64; then
8562 ld_shlibs=no
8563 cat <<_LT_EOF 1>&2
8564
8565 *** Warning: the GNU linker, at least up to release 2.19, is reported
8566 *** to be unable to reliably create shared libraries on AIX.
8567 *** Therefore, libtool is disabling shared libraries support. If you
8568 *** really care for shared libraries, you may want to install binutils
8569 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8570 *** You will then need to restart the configuration process.
8571
8572 _LT_EOF
8573 fi
8574 ;;
8575
8576 amigaos*)
8577 case $host_cpu in
8578 powerpc)
8579 # see comment about AmigaOS4 .so support
8580 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8581 archive_expsym_cmds=''
8582 ;;
8583 m68k)
8584 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)'
8585 hardcode_libdir_flag_spec='-L$libdir'
8586 hardcode_minus_L=yes
8587 ;;
8588 esac
8589 ;;
8590
8591 beos*)
8592 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8593 allow_undefined_flag=unsupported
8594 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8595 # support --undefined. This deserves some investigation. FIXME
8596 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8597 else
8598 ld_shlibs=no
8599 fi
8600 ;;
8601
8602 cygwin* | mingw* | pw32* | cegcc*)
8603 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8604 # as there is no search path for DLLs.
8605 hardcode_libdir_flag_spec='-L$libdir'
8606 export_dynamic_flag_spec='${wl}--export-all-symbols'
8607 allow_undefined_flag=unsupported
8608 always_export_symbols=no
8609 enable_shared_with_static_runtimes=yes
8610 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8611
8612 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8613 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8614 # If the export-symbols file already is a .def file (1st line
8615 # is EXPORTS), use it as is; otherwise, prepend...
8616 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8617 cp $export_symbols $output_objdir/$soname.def;
8618 else
8619 echo EXPORTS > $output_objdir/$soname.def;
8620 cat $export_symbols >> $output_objdir/$soname.def;
8621 fi~
8622 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8623 else
8624 ld_shlibs=no
8625 fi
8626 ;;
8627
8628 haiku*)
8629 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8630 link_all_deplibs=yes
8631 ;;
8632
8633 interix[3-9]*)
8634 hardcode_direct=no
8635 hardcode_shlibpath_var=no
8636 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8637 export_dynamic_flag_spec='${wl}-E'
8638 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8639 # Instead, shared libraries are loaded at an image base (0x10000000 by
8640 # default) and relocated if they conflict, which is a slow very memory
8641 # consuming and fragmenting process. To avoid this, we pick a random,
8642 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8643 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8644 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8645 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'
8646 ;;
8647
8648 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8649 tmp_diet=no
8650 if test "$host_os" = linux-dietlibc; then
8651 case $cc_basename in
8652 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8653 esac
8654 fi
8655 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8656 && test "$tmp_diet" = no
8657 then
8658 tmp_addflag=
8659 tmp_sharedflag='-shared'
8660 case $cc_basename,$host_cpu in
8661 pgcc*) # Portland Group C compiler
8662 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'
8663 tmp_addflag=' $pic_flag'
8664 ;;
8665 pgf77* | pgf90* | pgf95* | pgfortran*)
8666 # Portland Group f77 and f90 compilers
8667 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'
8668 tmp_addflag=' $pic_flag -Mnomain' ;;
8669 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8670 tmp_addflag=' -i_dynamic' ;;
8671 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8672 tmp_addflag=' -i_dynamic -nofor_main' ;;
8673 ifc* | ifort*) # Intel Fortran compiler
8674 tmp_addflag=' -nofor_main' ;;
8675 lf95*) # Lahey Fortran 8.1
8676 whole_archive_flag_spec=
8677 tmp_sharedflag='--shared' ;;
8678 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8679 tmp_sharedflag='-qmkshrobj'
8680 tmp_addflag= ;;
8681 nvcc*) # Cuda Compiler Driver 2.2
8682 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'
8683 compiler_needs_object=yes
8684 ;;
8685 esac
8686 case `$CC -V 2>&1 | sed 5q` in
8687 *Sun\ C*) # Sun C 5.9
8688 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'
8689 compiler_needs_object=yes
8690 tmp_sharedflag='-G' ;;
8691 *Sun\ F*) # Sun Fortran 8.3
8692 tmp_sharedflag='-G' ;;
8693 esac
8694 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8695
8696 if test "x$supports_anon_versioning" = xyes; then
8697 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8698 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8699 echo "local: *; };" >> $output_objdir/$libname.ver~
8700 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8701 fi
8702
8703 case $cc_basename in
8704 xlf* | bgf* | bgxlf* | mpixlf*)
8705 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8706 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8707 hardcode_libdir_flag_spec=
8708 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8709 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
8710 if test "x$supports_anon_versioning" = xyes; then
8711 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8712 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8713 echo "local: *; };" >> $output_objdir/$libname.ver~
8714 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8715 fi
8716 ;;
8717 esac
8718 else
8719 ld_shlibs=no
8720 fi
8721 ;;
8722
8723 netbsd*)
8724 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8725 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8726 wlarc=
8727 else
8728 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8729 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8730 fi
8731 ;;
8732
8733 solaris*)
8734 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8735 ld_shlibs=no
8736 cat <<_LT_EOF 1>&2
8737
8738 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8739 *** create shared libraries on Solaris systems. Therefore, libtool
8740 *** is disabling shared libraries support. We urge you to upgrade GNU
8741 *** binutils to release 2.9.1 or newer. Another option is to modify
8742 *** your PATH or compiler configuration so that the native linker is
8743 *** used, and then restart.
8744
8745 _LT_EOF
8746 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8747 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8748 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8749 else
8750 ld_shlibs=no
8751 fi
8752 ;;
8753
8754 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8755 case `$LD -v 2>&1` in
8756 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8757 ld_shlibs=no
8758 cat <<_LT_EOF 1>&2
8759
8760 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8761 *** reliably create shared libraries on SCO systems. Therefore, libtool
8762 *** is disabling shared libraries support. We urge you to upgrade GNU
8763 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8764 *** your PATH or compiler configuration so that the native linker is
8765 *** used, and then restart.
8766
8767 _LT_EOF
8768 ;;
8769 *)
8770 # For security reasons, it is highly recommended that you always
8771 # use absolute paths for naming shared libraries, and exclude the
8772 # DT_RUNPATH tag from executables and libraries. But doing so
8773 # requires that you compile everything twice, which is a pain.
8774 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8775 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8776 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8777 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8778 else
8779 ld_shlibs=no
8780 fi
8781 ;;
8782 esac
8783 ;;
8784
8785 sunos4*)
8786 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8787 wlarc=
8788 hardcode_direct=yes
8789 hardcode_shlibpath_var=no
8790 ;;
8791
8792 *)
8793 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8794 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8795 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8796 else
8797 ld_shlibs=no
8798 fi
8799 ;;
8800 esac
8801
8802 if test "$ld_shlibs" = no; then
8803 runpath_var=
8804 hardcode_libdir_flag_spec=
8805 export_dynamic_flag_spec=
8806 whole_archive_flag_spec=
8807 fi
8808 else
8809 # PORTME fill in a description of your system's linker (not GNU ld)
8810 case $host_os in
8811 aix3*)
8812 allow_undefined_flag=unsupported
8813 always_export_symbols=yes
8814 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'
8815 # Note: this linker hardcodes the directories in LIBPATH if there
8816 # are no directories specified by -L.
8817 hardcode_minus_L=yes
8818 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8819 # Neither direct hardcoding nor static linking is supported with a
8820 # broken collect2.
8821 hardcode_direct=unsupported
8822 fi
8823 ;;
8824
8825 aix[4-9]*)
8826 if test "$host_cpu" = ia64; then
8827 # On IA64, the linker does run time linking by default, so we don't
8828 # have to do anything special.
8829 aix_use_runtimelinking=no
8830 exp_sym_flag='-Bexport'
8831 no_entry_flag=""
8832 else
8833 # If we're using GNU nm, then we don't want the "-C" option.
8834 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8835 # Also, AIX nm treats weak defined symbols like other global
8836 # defined symbols, whereas GNU nm marks them as "W".
8837 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8838 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'
8839 else
8840 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'
8841 fi
8842 aix_use_runtimelinking=no
8843
8844 # Test if we are trying to use run time linking or normal
8845 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8846 # need to do runtime linking.
8847 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8848 for ld_flag in $LDFLAGS; do
8849 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8850 aix_use_runtimelinking=yes
8851 break
8852 fi
8853 done
8854 ;;
8855 esac
8856
8857 exp_sym_flag='-bexport'
8858 no_entry_flag='-bnoentry'
8859 fi
8860
8861 # When large executables or shared objects are built, AIX ld can
8862 # have problems creating the table of contents. If linking a library
8863 # or program results in "error TOC overflow" add -mminimal-toc to
8864 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8865 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8866
8867 archive_cmds=''
8868 hardcode_direct=yes
8869 hardcode_direct_absolute=yes
8870 hardcode_libdir_separator=':'
8871 link_all_deplibs=yes
8872 file_list_spec='${wl}-f,'
8873
8874 if test "$GCC" = yes; then
8875 case $host_os in aix4.[012]|aix4.[012].*)
8876 # We only want to do this on AIX 4.2 and lower, the check
8877 # below for broken collect2 doesn't work under 4.3+
8878 collect2name=`${CC} -print-prog-name=collect2`
8879 if test -f "$collect2name" &&
8880 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8881 then
8882 # We have reworked collect2
8883 :
8884 else
8885 # We have old collect2
8886 hardcode_direct=unsupported
8887 # It fails to find uninstalled libraries when the uninstalled
8888 # path is not listed in the libpath. Setting hardcode_minus_L
8889 # to unsupported forces relinking
8890 hardcode_minus_L=yes
8891 hardcode_libdir_flag_spec='-L$libdir'
8892 hardcode_libdir_separator=
8893 fi
8894 ;;
8895 esac
8896 shared_flag='-shared'
8897 if test "$aix_use_runtimelinking" = yes; then
8898 shared_flag="$shared_flag "'${wl}-G'
8899 fi
8900 else
8901 # not using gcc
8902 if test "$host_cpu" = ia64; then
8903 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8904 # chokes on -Wl,-G. The following line is correct:
8905 shared_flag='-G'
8906 else
8907 if test "$aix_use_runtimelinking" = yes; then
8908 shared_flag='${wl}-G'
8909 else
8910 shared_flag='${wl}-bM:SRE'
8911 fi
8912 fi
8913 fi
8914
8915 export_dynamic_flag_spec='${wl}-bexpall'
8916 # It seems that -bexpall does not export symbols beginning with
8917 # underscore (_), so it is better to generate a list of symbols to export.
8918 always_export_symbols=yes
8919 if test "$aix_use_runtimelinking" = yes; then
8920 # Warning - without using the other runtime loading flags (-brtl),
8921 # -berok will link without error, but may produce a broken library.
8922 allow_undefined_flag='-berok'
8923 # Determine the default libpath from the value encoded in an
8924 # empty executable.
8925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8926 /* end confdefs.h. */
8927
8928 int
8929 main ()
8930 {
8931
8932 ;
8933 return 0;
8934 }
8935 _ACEOF
8936 if ac_fn_c_try_link "$LINENO"; then :
8937
8938 lt_aix_libpath_sed='
8939 /Import File Strings/,/^$/ {
8940 /^0/ {
8941 s/^0 *\(.*\)$/\1/
8942 p
8943 }
8944 }'
8945 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8946 # Check for a 64-bit object if we didn't find anything.
8947 if test -z "$aix_libpath"; then
8948 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8949 fi
8950 fi
8951 rm -f core conftest.err conftest.$ac_objext \
8952 conftest$ac_exeext conftest.$ac_ext
8953 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8954
8955 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8956 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"
8957 else
8958 if test "$host_cpu" = ia64; then
8959 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8960 allow_undefined_flag="-z nodefs"
8961 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"
8962 else
8963 # Determine the default libpath from the value encoded in an
8964 # empty executable.
8965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8966 /* end confdefs.h. */
8967
8968 int
8969 main ()
8970 {
8971
8972 ;
8973 return 0;
8974 }
8975 _ACEOF
8976 if ac_fn_c_try_link "$LINENO"; then :
8977
8978 lt_aix_libpath_sed='
8979 /Import File Strings/,/^$/ {
8980 /^0/ {
8981 s/^0 *\(.*\)$/\1/
8982 p
8983 }
8984 }'
8985 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8986 # Check for a 64-bit object if we didn't find anything.
8987 if test -z "$aix_libpath"; then
8988 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8989 fi
8990 fi
8991 rm -f core conftest.err conftest.$ac_objext \
8992 conftest$ac_exeext conftest.$ac_ext
8993 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8994
8995 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8996 # Warning - without using the other run time loading flags,
8997 # -berok will link without error, but may produce a broken library.
8998 no_undefined_flag=' ${wl}-bernotok'
8999 allow_undefined_flag=' ${wl}-berok'
9000 if test "$with_gnu_ld" = yes; then
9001 # We only use this code for GNU lds that support --whole-archive.
9002 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9003 else
9004 # Exported symbols can be pulled into shared objects from archives
9005 whole_archive_flag_spec='$convenience'
9006 fi
9007 archive_cmds_need_lc=yes
9008 # This is similar to how AIX traditionally builds its shared libraries.
9009 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'
9010 fi
9011 fi
9012 ;;
9013
9014 amigaos*)
9015 case $host_cpu in
9016 powerpc)
9017 # see comment about AmigaOS4 .so support
9018 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9019 archive_expsym_cmds=''
9020 ;;
9021 m68k)
9022 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)'
9023 hardcode_libdir_flag_spec='-L$libdir'
9024 hardcode_minus_L=yes
9025 ;;
9026 esac
9027 ;;
9028
9029 bsdi[45]*)
9030 export_dynamic_flag_spec=-rdynamic
9031 ;;
9032
9033 cygwin* | mingw* | pw32* | cegcc*)
9034 # When not using gcc, we currently assume that we are using
9035 # Microsoft Visual C++.
9036 # hardcode_libdir_flag_spec is actually meaningless, as there is
9037 # no search path for DLLs.
9038 hardcode_libdir_flag_spec=' '
9039 allow_undefined_flag=unsupported
9040 # Tell ltmain to make .lib files, not .a files.
9041 libext=lib
9042 # Tell ltmain to make .dll files, not .so files.
9043 shrext_cmds=".dll"
9044 # FIXME: Setting linknames here is a bad hack.
9045 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9046 # The linker will automatically build a .lib file if we build a DLL.
9047 old_archive_from_new_cmds='true'
9048 # FIXME: Should let the user specify the lib program.
9049 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9050 fix_srcfile_path='`cygpath -w "$srcfile"`'
9051 enable_shared_with_static_runtimes=yes
9052 ;;
9053
9054 darwin* | rhapsody*)
9055
9056
9057 archive_cmds_need_lc=no
9058 hardcode_direct=no
9059 hardcode_automatic=yes
9060 hardcode_shlibpath_var=unsupported
9061 if test "$lt_cv_ld_force_load" = "yes"; then
9062 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\"`'
9063 else
9064 whole_archive_flag_spec=''
9065 fi
9066 link_all_deplibs=yes
9067 allow_undefined_flag="$_lt_dar_allow_undefined"
9068 case $cc_basename in
9069 ifort*) _lt_dar_can_shared=yes ;;
9070 *) _lt_dar_can_shared=$GCC ;;
9071 esac
9072 if test "$_lt_dar_can_shared" = "yes"; then
9073 output_verbose_link_cmd=func_echo_all
9074 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9075 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9076 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}"
9077 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}"
9078
9079 else
9080 ld_shlibs=no
9081 fi
9082
9083 ;;
9084
9085 dgux*)
9086 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9087 hardcode_libdir_flag_spec='-L$libdir'
9088 hardcode_shlibpath_var=no
9089 ;;
9090
9091 freebsd1*)
9092 ld_shlibs=no
9093 ;;
9094
9095 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9096 # support. Future versions do this automatically, but an explicit c++rt0.o
9097 # does not break anything, and helps significantly (at the cost of a little
9098 # extra space).
9099 freebsd2.2*)
9100 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9101 hardcode_libdir_flag_spec='-R$libdir'
9102 hardcode_direct=yes
9103 hardcode_shlibpath_var=no
9104 ;;
9105
9106 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9107 freebsd2*)
9108 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9109 hardcode_direct=yes
9110 hardcode_minus_L=yes
9111 hardcode_shlibpath_var=no
9112 ;;
9113
9114 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9115 freebsd* | dragonfly*)
9116 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9117 hardcode_libdir_flag_spec='-R$libdir'
9118 hardcode_direct=yes
9119 hardcode_shlibpath_var=no
9120 ;;
9121
9122 hpux9*)
9123 if test "$GCC" = yes; then
9124 archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9125 else
9126 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'
9127 fi
9128 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9129 hardcode_libdir_separator=:
9130 hardcode_direct=yes
9131
9132 # hardcode_minus_L: Not really in the search PATH,
9133 # but as the default location of the library.
9134 hardcode_minus_L=yes
9135 export_dynamic_flag_spec='${wl}-E'
9136 ;;
9137
9138 hpux10*)
9139 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9140 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9141 else
9142 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9143 fi
9144 if test "$with_gnu_ld" = no; then
9145 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9146 hardcode_libdir_flag_spec_ld='+b $libdir'
9147 hardcode_libdir_separator=:
9148 hardcode_direct=yes
9149 hardcode_direct_absolute=yes
9150 export_dynamic_flag_spec='${wl}-E'
9151 # hardcode_minus_L: Not really in the search PATH,
9152 # but as the default location of the library.
9153 hardcode_minus_L=yes
9154 fi
9155 ;;
9156
9157 hpux11*)
9158 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9159 case $host_cpu in
9160 hppa*64*)
9161 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9162 ;;
9163 ia64*)
9164 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9165 ;;
9166 *)
9167 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9168 ;;
9169 esac
9170 else
9171 case $host_cpu in
9172 hppa*64*)
9173 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9174 ;;
9175 ia64*)
9176 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9177 ;;
9178 *)
9179
9180 # Older versions of the 11.00 compiler do not understand -b yet
9181 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9183 $as_echo_n "checking if $CC understands -b... " >&6; }
9184 if test "${lt_cv_prog_compiler__b+set}" = set; then :
9185 $as_echo_n "(cached) " >&6
9186 else
9187 lt_cv_prog_compiler__b=no
9188 save_LDFLAGS="$LDFLAGS"
9189 LDFLAGS="$LDFLAGS -b"
9190 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9191 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9192 # The linker can only warn and ignore the option if not recognized
9193 # So say no if there are warnings
9194 if test -s conftest.err; then
9195 # Append any errors to the config.log.
9196 cat conftest.err 1>&5
9197 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9198 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9199 if diff conftest.exp conftest.er2 >/dev/null; then
9200 lt_cv_prog_compiler__b=yes
9201 fi
9202 else
9203 lt_cv_prog_compiler__b=yes
9204 fi
9205 fi
9206 $RM -r conftest*
9207 LDFLAGS="$save_LDFLAGS"
9208
9209 fi
9210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9211 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9212
9213 if test x"$lt_cv_prog_compiler__b" = xyes; then
9214 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9215 else
9216 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9217 fi
9218
9219 ;;
9220 esac
9221 fi
9222 if test "$with_gnu_ld" = no; then
9223 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9224 hardcode_libdir_separator=:
9225
9226 case $host_cpu in
9227 hppa*64*|ia64*)
9228 hardcode_direct=no
9229 hardcode_shlibpath_var=no
9230 ;;
9231 *)
9232 hardcode_direct=yes
9233 hardcode_direct_absolute=yes
9234 export_dynamic_flag_spec='${wl}-E'
9235
9236 # hardcode_minus_L: Not really in the search PATH,
9237 # but as the default location of the library.
9238 hardcode_minus_L=yes
9239 ;;
9240 esac
9241 fi
9242 ;;
9243
9244 irix5* | irix6* | nonstopux*)
9245 if test "$GCC" = yes; then
9246 archive_cmds='$CC -shared $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'
9247 # Try to use the -exported_symbol ld option, if it does not
9248 # work, assume that -exports_file does not work either and
9249 # implicitly export all symbols.
9250 save_LDFLAGS="$LDFLAGS"
9251 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9253 /* end confdefs.h. */
9254 int foo(void) {}
9255 _ACEOF
9256 if ac_fn_c_try_link "$LINENO"; then :
9257 archive_expsym_cmds='$CC -shared $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'
9258
9259 fi
9260 rm -f core conftest.err conftest.$ac_objext \
9261 conftest$ac_exeext conftest.$ac_ext
9262 LDFLAGS="$save_LDFLAGS"
9263 else
9264 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'
9265 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'
9266 fi
9267 archive_cmds_need_lc='no'
9268 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9269 hardcode_libdir_separator=:
9270 inherit_rpath=yes
9271 link_all_deplibs=yes
9272 ;;
9273
9274 netbsd*)
9275 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9276 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9277 else
9278 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9279 fi
9280 hardcode_libdir_flag_spec='-R$libdir'
9281 hardcode_direct=yes
9282 hardcode_shlibpath_var=no
9283 ;;
9284
9285 newsos6)
9286 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9287 hardcode_direct=yes
9288 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9289 hardcode_libdir_separator=:
9290 hardcode_shlibpath_var=no
9291 ;;
9292
9293 *nto* | *qnx*)
9294 ;;
9295
9296 openbsd*)
9297 if test -f /usr/libexec/ld.so; then
9298 hardcode_direct=yes
9299 hardcode_shlibpath_var=no
9300 hardcode_direct_absolute=yes
9301 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9302 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9303 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9304 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9305 export_dynamic_flag_spec='${wl}-E'
9306 else
9307 case $host_os in
9308 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9309 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9310 hardcode_libdir_flag_spec='-R$libdir'
9311 ;;
9312 *)
9313 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9314 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9315 ;;
9316 esac
9317 fi
9318 else
9319 ld_shlibs=no
9320 fi
9321 ;;
9322
9323 os2*)
9324 hardcode_libdir_flag_spec='-L$libdir'
9325 hardcode_minus_L=yes
9326 allow_undefined_flag=unsupported
9327 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'
9328 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9329 ;;
9330
9331 osf3*)
9332 if test "$GCC" = yes; then
9333 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9334 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'
9335 else
9336 allow_undefined_flag=' -expect_unresolved \*'
9337 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'
9338 fi
9339 archive_cmds_need_lc='no'
9340 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9341 hardcode_libdir_separator=:
9342 ;;
9343
9344 osf4* | osf5*) # as osf3* with the addition of -msym flag
9345 if test "$GCC" = yes; then
9346 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9347 archive_cmds='$CC -shared${allow_undefined_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'
9348 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9349 else
9350 allow_undefined_flag=' -expect_unresolved \*'
9351 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'
9352 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~
9353 $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'
9354
9355 # Both c and cxx compiler support -rpath directly
9356 hardcode_libdir_flag_spec='-rpath $libdir'
9357 fi
9358 archive_cmds_need_lc='no'
9359 hardcode_libdir_separator=:
9360 ;;
9361
9362 solaris*)
9363 no_undefined_flag=' -z defs'
9364 if test "$GCC" = yes; then
9365 wlarc='${wl}'
9366 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9367 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9368 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9369 else
9370 case `$CC -V 2>&1` in
9371 *"Compilers 5.0"*)
9372 wlarc=''
9373 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9374 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9375 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9376 ;;
9377 *)
9378 wlarc='${wl}'
9379 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9380 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9381 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9382 ;;
9383 esac
9384 fi
9385 hardcode_libdir_flag_spec='-R$libdir'
9386 hardcode_shlibpath_var=no
9387 case $host_os in
9388 solaris2.[0-5] | solaris2.[0-5].*) ;;
9389 *)
9390 # The compiler driver will combine and reorder linker options,
9391 # but understands `-z linker_flag'. GCC discards it without `$wl',
9392 # but is careful enough not to reorder.
9393 # Supported since Solaris 2.6 (maybe 2.5.1?)
9394 if test "$GCC" = yes; then
9395 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9396 else
9397 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9398 fi
9399 ;;
9400 esac
9401 link_all_deplibs=yes
9402 ;;
9403
9404 sunos4*)
9405 if test "x$host_vendor" = xsequent; then
9406 # Use $CC to link under sequent, because it throws in some extra .o
9407 # files that make .init and .fini sections work.
9408 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9409 else
9410 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9411 fi
9412 hardcode_libdir_flag_spec='-L$libdir'
9413 hardcode_direct=yes
9414 hardcode_minus_L=yes
9415 hardcode_shlibpath_var=no
9416 ;;
9417
9418 sysv4)
9419 case $host_vendor in
9420 sni)
9421 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9422 hardcode_direct=yes # is this really true???
9423 ;;
9424 siemens)
9425 ## LD is ld it makes a PLAMLIB
9426 ## CC just makes a GrossModule.
9427 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9428 reload_cmds='$CC -r -o $output$reload_objs'
9429 hardcode_direct=no
9430 ;;
9431 motorola)
9432 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9433 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9434 ;;
9435 esac
9436 runpath_var='LD_RUN_PATH'
9437 hardcode_shlibpath_var=no
9438 ;;
9439
9440 sysv4.3*)
9441 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9442 hardcode_shlibpath_var=no
9443 export_dynamic_flag_spec='-Bexport'
9444 ;;
9445
9446 sysv4*MP*)
9447 if test -d /usr/nec; then
9448 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9449 hardcode_shlibpath_var=no
9450 runpath_var=LD_RUN_PATH
9451 hardcode_runpath_var=yes
9452 ld_shlibs=yes
9453 fi
9454 ;;
9455
9456 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9457 no_undefined_flag='${wl}-z,text'
9458 archive_cmds_need_lc=no
9459 hardcode_shlibpath_var=no
9460 runpath_var='LD_RUN_PATH'
9461
9462 if test "$GCC" = yes; then
9463 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9464 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9465 else
9466 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9467 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9468 fi
9469 ;;
9470
9471 sysv5* | sco3.2v5* | sco5v6*)
9472 # Note: We can NOT use -z defs as we might desire, because we do not
9473 # link with -lc, and that would cause any symbols used from libc to
9474 # always be unresolved, which means just about no library would
9475 # ever link correctly. If we're not using GNU ld we use -z text
9476 # though, which does catch some bad symbols but isn't as heavy-handed
9477 # as -z defs.
9478 no_undefined_flag='${wl}-z,text'
9479 allow_undefined_flag='${wl}-z,nodefs'
9480 archive_cmds_need_lc=no
9481 hardcode_shlibpath_var=no
9482 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9483 hardcode_libdir_separator=':'
9484 link_all_deplibs=yes
9485 export_dynamic_flag_spec='${wl}-Bexport'
9486 runpath_var='LD_RUN_PATH'
9487
9488 if test "$GCC" = yes; then
9489 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9490 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9491 else
9492 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9493 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9494 fi
9495 ;;
9496
9497 uts4*)
9498 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9499 hardcode_libdir_flag_spec='-L$libdir'
9500 hardcode_shlibpath_var=no
9501 ;;
9502
9503 *)
9504 ld_shlibs=no
9505 ;;
9506 esac
9507
9508 if test x$host_vendor = xsni; then
9509 case $host in
9510 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9511 export_dynamic_flag_spec='${wl}-Blargedynsym'
9512 ;;
9513 esac
9514 fi
9515 fi
9516
9517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9518 $as_echo "$ld_shlibs" >&6; }
9519 test "$ld_shlibs" = no && can_build_shared=no
9520
9521 with_gnu_ld=$with_gnu_ld
9522
9523
9524
9525
9526
9527
9528
9529
9530
9531
9532
9533
9534
9535
9536
9537 #
9538 # Do we need to explicitly link libc?
9539 #
9540 case "x$archive_cmds_need_lc" in
9541 x|xyes)
9542 # Assume -lc should be added
9543 archive_cmds_need_lc=yes
9544
9545 if test "$enable_shared" = yes && test "$GCC" = yes; then
9546 case $archive_cmds in
9547 *'~'*)
9548 # FIXME: we may have to deal with multi-command sequences.
9549 ;;
9550 '$CC '*)
9551 # Test whether the compiler implicitly links with -lc since on some
9552 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9553 # to ld, don't add -lc before -lgcc.
9554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9555 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9556 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
9557 $as_echo_n "(cached) " >&6
9558 else
9559 $RM conftest*
9560 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9561
9562 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9563 (eval $ac_compile) 2>&5
9564 ac_status=$?
9565 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9566 test $ac_status = 0; } 2>conftest.err; then
9567 soname=conftest
9568 lib=conftest
9569 libobjs=conftest.$ac_objext
9570 deplibs=
9571 wl=$lt_prog_compiler_wl
9572 pic_flag=$lt_prog_compiler_pic
9573 compiler_flags=-v
9574 linker_flags=-v
9575 verstring=
9576 output_objdir=.
9577 libname=conftest
9578 lt_save_allow_undefined_flag=$allow_undefined_flag
9579 allow_undefined_flag=
9580 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9581 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9582 ac_status=$?
9583 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9584 test $ac_status = 0; }
9585 then
9586 lt_cv_archive_cmds_need_lc=no
9587 else
9588 lt_cv_archive_cmds_need_lc=yes
9589 fi
9590 allow_undefined_flag=$lt_save_allow_undefined_flag
9591 else
9592 cat conftest.err 1>&5
9593 fi
9594 $RM conftest*
9595
9596 fi
9597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9598 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9599 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9600 ;;
9601 esac
9602 fi
9603 ;;
9604 esac
9605
9606
9607
9608
9609
9610
9611
9612
9613
9614
9615
9616
9617
9618
9619
9620
9621
9622
9623
9624
9625
9626
9627
9628
9629
9630
9631
9632
9633
9634
9635
9636
9637
9638
9639
9640
9641
9642
9643
9644
9645
9646
9647
9648
9649
9650
9651
9652
9653
9654
9655
9656
9657
9658
9659
9660
9661
9662
9663
9664
9665
9666
9667
9668
9669
9670
9671
9672
9673
9674
9675
9676
9677
9678
9679
9680
9681
9682
9683
9684
9685
9686
9687
9688
9689
9690
9691
9692
9693
9694
9695
9696
9697
9698
9699
9700
9701
9702
9703
9704
9705
9706
9707
9708
9709
9710
9711
9712
9713
9714
9715
9716
9717
9718
9719
9720
9721
9722
9723
9724
9725
9726
9727
9728
9729
9730
9731
9732
9733
9734
9735
9736
9737
9738
9739
9740
9741
9742
9743
9744
9745
9746
9747
9748
9749
9750
9751
9752
9753
9754
9755
9756
9757
9758
9759
9760
9761
9762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9763 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9764
9765 if test "$GCC" = yes; then
9766 case $host_os in
9767 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9768 *) lt_awk_arg="/^libraries:/" ;;
9769 esac
9770 case $host_os in
9771 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9772 *) lt_sed_strip_eq="s,=/,/,g" ;;
9773 esac
9774 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9775 case $lt_search_path_spec in
9776 *\;*)
9777 # if the path contains ";" then we assume it to be the separator
9778 # otherwise default to the standard path separator (i.e. ":") - it is
9779 # assumed that no part of a normal pathname contains ";" but that should
9780 # okay in the real world where ";" in dirpaths is itself problematic.
9781 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9782 ;;
9783 *)
9784 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9785 ;;
9786 esac
9787 # Ok, now we have the path, separated by spaces, we can step through it
9788 # and add multilib dir if necessary.
9789 lt_tmp_lt_search_path_spec=
9790 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9791 for lt_sys_path in $lt_search_path_spec; do
9792 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9793 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9794 else
9795 test -d "$lt_sys_path" && \
9796 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9797 fi
9798 done
9799 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9800 BEGIN {RS=" "; FS="/|\n";} {
9801 lt_foo="";
9802 lt_count=0;
9803 for (lt_i = NF; lt_i > 0; lt_i--) {
9804 if ($lt_i != "" && $lt_i != ".") {
9805 if ($lt_i == "..") {
9806 lt_count++;
9807 } else {
9808 if (lt_count == 0) {
9809 lt_foo="/" $lt_i lt_foo;
9810 } else {
9811 lt_count--;
9812 }
9813 }
9814 }
9815 }
9816 if (lt_foo != "") { lt_freq[lt_foo]++; }
9817 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9818 }'`
9819 # AWK program above erroneously prepends '/' to C:/dos/paths
9820 # for these hosts.
9821 case $host_os in
9822 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9823 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9824 esac
9825 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9826 else
9827 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9828 fi
9829 library_names_spec=
9830 libname_spec='lib$name'
9831 soname_spec=
9832 shrext_cmds=".so"
9833 postinstall_cmds=
9834 postuninstall_cmds=
9835 finish_cmds=
9836 finish_eval=
9837 shlibpath_var=
9838 shlibpath_overrides_runpath=unknown
9839 version_type=none
9840 dynamic_linker="$host_os ld.so"
9841 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9842 need_lib_prefix=unknown
9843 hardcode_into_libs=no
9844
9845 # when you set need_version to no, make sure it does not cause -set_version
9846 # flags to be left without arguments
9847 need_version=unknown
9848
9849 case $host_os in
9850 aix3*)
9851 version_type=linux
9852 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9853 shlibpath_var=LIBPATH
9854
9855 # AIX 3 has no versioning support, so we append a major version to the name.
9856 soname_spec='${libname}${release}${shared_ext}$major'
9857 ;;
9858
9859 aix[4-9]*)
9860 version_type=linux
9861 need_lib_prefix=no
9862 need_version=no
9863 hardcode_into_libs=yes
9864 if test "$host_cpu" = ia64; then
9865 # AIX 5 supports IA64
9866 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9867 shlibpath_var=LD_LIBRARY_PATH
9868 else
9869 # With GCC up to 2.95.x, collect2 would create an import file
9870 # for dependence libraries. The import file would start with
9871 # the line `#! .'. This would cause the generated library to
9872 # depend on `.', always an invalid library. This was fixed in
9873 # development snapshots of GCC prior to 3.0.
9874 case $host_os in
9875 aix4 | aix4.[01] | aix4.[01].*)
9876 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9877 echo ' yes '
9878 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9879 :
9880 else
9881 can_build_shared=no
9882 fi
9883 ;;
9884 esac
9885 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9886 # soname into executable. Probably we can add versioning support to
9887 # collect2, so additional links can be useful in future.
9888 if test "$aix_use_runtimelinking" = yes; then
9889 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9890 # instead of lib<name>.a to let people know that these are not
9891 # typical AIX shared libraries.
9892 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9893 else
9894 # We preserve .a as extension for shared libraries through AIX4.2
9895 # and later when we are not doing run time linking.
9896 library_names_spec='${libname}${release}.a $libname.a'
9897 soname_spec='${libname}${release}${shared_ext}$major'
9898 fi
9899 shlibpath_var=LIBPATH
9900 fi
9901 ;;
9902
9903 amigaos*)
9904 case $host_cpu in
9905 powerpc)
9906 # Since July 2007 AmigaOS4 officially supports .so libraries.
9907 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9908 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9909 ;;
9910 m68k)
9911 library_names_spec='$libname.ixlibrary $libname.a'
9912 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9913 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'
9914 ;;
9915 esac
9916 ;;
9917
9918 beos*)
9919 library_names_spec='${libname}${shared_ext}'
9920 dynamic_linker="$host_os ld.so"
9921 shlibpath_var=LIBRARY_PATH
9922 ;;
9923
9924 bsdi[45]*)
9925 version_type=linux
9926 need_version=no
9927 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9928 soname_spec='${libname}${release}${shared_ext}$major'
9929 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9930 shlibpath_var=LD_LIBRARY_PATH
9931 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9932 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9933 # the default ld.so.conf also contains /usr/contrib/lib and
9934 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9935 # libtool to hard-code these into programs
9936 ;;
9937
9938 cygwin* | mingw* | pw32* | cegcc*)
9939 version_type=windows
9940 shrext_cmds=".dll"
9941 need_version=no
9942 need_lib_prefix=no
9943
9944 case $GCC,$host_os in
9945 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9946 library_names_spec='$libname.dll.a'
9947 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9948 postinstall_cmds='base_file=`basename \${file}`~
9949 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9950 dldir=$destdir/`dirname \$dlpath`~
9951 test -d \$dldir || mkdir -p \$dldir~
9952 $install_prog $dir/$dlname \$dldir/$dlname~
9953 chmod a+x \$dldir/$dlname~
9954 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9955 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9956 fi'
9957 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9958 dlpath=$dir/\$dldll~
9959 $RM \$dlpath'
9960 shlibpath_overrides_runpath=yes
9961
9962 case $host_os in
9963 cygwin*)
9964 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9965 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9966
9967 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
9968 ;;
9969 mingw* | cegcc*)
9970 # MinGW DLLs use traditional 'lib' prefix
9971 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9972 ;;
9973 pw32*)
9974 # pw32 DLLs use 'pw' prefix rather than 'lib'
9975 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9976 ;;
9977 esac
9978 ;;
9979
9980 *)
9981 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9982 ;;
9983 esac
9984 dynamic_linker='Win32 ld.exe'
9985 # FIXME: first we should search . and the directory the executable is in
9986 shlibpath_var=PATH
9987 ;;
9988
9989 darwin* | rhapsody*)
9990 dynamic_linker="$host_os dyld"
9991 version_type=darwin
9992 need_lib_prefix=no
9993 need_version=no
9994 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9995 soname_spec='${libname}${release}${major}$shared_ext'
9996 shlibpath_overrides_runpath=yes
9997 shlibpath_var=DYLD_LIBRARY_PATH
9998 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9999
10000 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10001 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10002 ;;
10003
10004 dgux*)
10005 version_type=linux
10006 need_lib_prefix=no
10007 need_version=no
10008 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10009 soname_spec='${libname}${release}${shared_ext}$major'
10010 shlibpath_var=LD_LIBRARY_PATH
10011 ;;
10012
10013 freebsd1*)
10014 dynamic_linker=no
10015 ;;
10016
10017 freebsd* | dragonfly*)
10018 # DragonFly does not have aout. When/if they implement a new
10019 # versioning mechanism, adjust this.
10020 if test -x /usr/bin/objformat; then
10021 objformat=`/usr/bin/objformat`
10022 else
10023 case $host_os in
10024 freebsd[123]*) objformat=aout ;;
10025 *) objformat=elf ;;
10026 esac
10027 fi
10028 version_type=freebsd-$objformat
10029 case $version_type in
10030 freebsd-elf*)
10031 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10032 need_version=no
10033 need_lib_prefix=no
10034 ;;
10035 freebsd-*)
10036 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10037 need_version=yes
10038 ;;
10039 esac
10040 shlibpath_var=LD_LIBRARY_PATH
10041 case $host_os in
10042 freebsd2*)
10043 shlibpath_overrides_runpath=yes
10044 ;;
10045 freebsd3.[01]* | freebsdelf3.[01]*)
10046 shlibpath_overrides_runpath=yes
10047 hardcode_into_libs=yes
10048 ;;
10049 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10050 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10051 shlibpath_overrides_runpath=no
10052 hardcode_into_libs=yes
10053 ;;
10054 *) # from 4.6 on, and DragonFly
10055 shlibpath_overrides_runpath=yes
10056 hardcode_into_libs=yes
10057 ;;
10058 esac
10059 ;;
10060
10061 gnu*)
10062 version_type=linux
10063 need_lib_prefix=no
10064 need_version=no
10065 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10066 soname_spec='${libname}${release}${shared_ext}$major'
10067 shlibpath_var=LD_LIBRARY_PATH
10068 hardcode_into_libs=yes
10069 ;;
10070
10071 haiku*)
10072 version_type=linux
10073 need_lib_prefix=no
10074 need_version=no
10075 dynamic_linker="$host_os runtime_loader"
10076 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10077 soname_spec='${libname}${release}${shared_ext}$major'
10078 shlibpath_var=LIBRARY_PATH
10079 shlibpath_overrides_runpath=yes
10080 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10081 hardcode_into_libs=yes
10082 ;;
10083
10084 hpux9* | hpux10* | hpux11*)
10085 # Give a soname corresponding to the major version so that dld.sl refuses to
10086 # link against other versions.
10087 version_type=sunos
10088 need_lib_prefix=no
10089 need_version=no
10090 case $host_cpu in
10091 ia64*)
10092 shrext_cmds='.so'
10093 hardcode_into_libs=yes
10094 dynamic_linker="$host_os dld.so"
10095 shlibpath_var=LD_LIBRARY_PATH
10096 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10097 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10098 soname_spec='${libname}${release}${shared_ext}$major'
10099 if test "X$HPUX_IA64_MODE" = X32; then
10100 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10101 else
10102 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10103 fi
10104 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10105 ;;
10106 hppa*64*)
10107 shrext_cmds='.sl'
10108 hardcode_into_libs=yes
10109 dynamic_linker="$host_os dld.sl"
10110 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10111 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10112 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10113 soname_spec='${libname}${release}${shared_ext}$major'
10114 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10115 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10116 ;;
10117 *)
10118 shrext_cmds='.sl'
10119 dynamic_linker="$host_os dld.sl"
10120 shlibpath_var=SHLIB_PATH
10121 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10122 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10123 soname_spec='${libname}${release}${shared_ext}$major'
10124 ;;
10125 esac
10126 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10127 postinstall_cmds='chmod 555 $lib'
10128 # or fails outright, so override atomically:
10129 install_override_mode=555
10130 ;;
10131
10132 interix[3-9]*)
10133 version_type=linux
10134 need_lib_prefix=no
10135 need_version=no
10136 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10137 soname_spec='${libname}${release}${shared_ext}$major'
10138 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10139 shlibpath_var=LD_LIBRARY_PATH
10140 shlibpath_overrides_runpath=no
10141 hardcode_into_libs=yes
10142 ;;
10143
10144 irix5* | irix6* | nonstopux*)
10145 case $host_os in
10146 nonstopux*) version_type=nonstopux ;;
10147 *)
10148 if test "$lt_cv_prog_gnu_ld" = yes; then
10149 version_type=linux
10150 else
10151 version_type=irix
10152 fi ;;
10153 esac
10154 need_lib_prefix=no
10155 need_version=no
10156 soname_spec='${libname}${release}${shared_ext}$major'
10157 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10158 case $host_os in
10159 irix5* | nonstopux*)
10160 libsuff= shlibsuff=
10161 ;;
10162 *)
10163 case $LD in # libtool.m4 will add one of these switches to LD
10164 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10165 libsuff= shlibsuff= libmagic=32-bit;;
10166 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10167 libsuff=32 shlibsuff=N32 libmagic=N32;;
10168 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10169 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10170 *) libsuff= shlibsuff= libmagic=never-match;;
10171 esac
10172 ;;
10173 esac
10174 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10175 shlibpath_overrides_runpath=no
10176 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10177 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10178 hardcode_into_libs=yes
10179 ;;
10180
10181 # No shared lib support for Linux oldld, aout, or coff.
10182 linux*oldld* | linux*aout* | linux*coff*)
10183 dynamic_linker=no
10184 ;;
10185
10186 # This must be Linux ELF.
10187 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10188 version_type=linux
10189 need_lib_prefix=no
10190 need_version=no
10191 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10192 soname_spec='${libname}${release}${shared_ext}$major'
10193 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10194 shlibpath_var=LD_LIBRARY_PATH
10195 shlibpath_overrides_runpath=no
10196
10197 # Some binutils ld are patched to set DT_RUNPATH
10198 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
10199 $as_echo_n "(cached) " >&6
10200 else
10201 lt_cv_shlibpath_overrides_runpath=no
10202 save_LDFLAGS=$LDFLAGS
10203 save_libdir=$libdir
10204 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10205 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10207 /* end confdefs.h. */
10208
10209 int
10210 main ()
10211 {
10212
10213 ;
10214 return 0;
10215 }
10216 _ACEOF
10217 if ac_fn_c_try_link "$LINENO"; then :
10218 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10219 lt_cv_shlibpath_overrides_runpath=yes
10220 fi
10221 fi
10222 rm -f core conftest.err conftest.$ac_objext \
10223 conftest$ac_exeext conftest.$ac_ext
10224 LDFLAGS=$save_LDFLAGS
10225 libdir=$save_libdir
10226
10227 fi
10228
10229 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10230
10231 # This implies no fast_install, which is unacceptable.
10232 # Some rework will be needed to allow for fast_install
10233 # before this can be enabled.
10234 hardcode_into_libs=yes
10235
10236 # Append ld.so.conf contents to the search path
10237 if test -f /etc/ld.so.conf; then
10238 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' ' '`
10239 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10240 fi
10241
10242 # We used to test for /lib/ld.so.1 and disable shared libraries on
10243 # powerpc, because MkLinux only supported shared libraries with the
10244 # GNU dynamic linker. Since this was broken with cross compilers,
10245 # most powerpc-linux boxes support dynamic linking these days and
10246 # people can always --disable-shared, the test was removed, and we
10247 # assume the GNU/Linux dynamic linker is in use.
10248 dynamic_linker='GNU/Linux ld.so'
10249 ;;
10250
10251 netbsd*)
10252 version_type=sunos
10253 need_lib_prefix=no
10254 need_version=no
10255 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10256 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10257 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10258 dynamic_linker='NetBSD (a.out) ld.so'
10259 else
10260 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10261 soname_spec='${libname}${release}${shared_ext}$major'
10262 dynamic_linker='NetBSD ld.elf_so'
10263 fi
10264 shlibpath_var=LD_LIBRARY_PATH
10265 shlibpath_overrides_runpath=yes
10266 hardcode_into_libs=yes
10267 ;;
10268
10269 newsos6)
10270 version_type=linux
10271 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10272 shlibpath_var=LD_LIBRARY_PATH
10273 shlibpath_overrides_runpath=yes
10274 ;;
10275
10276 *nto* | *qnx*)
10277 version_type=qnx
10278 need_lib_prefix=no
10279 need_version=no
10280 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10281 soname_spec='${libname}${release}${shared_ext}$major'
10282 shlibpath_var=LD_LIBRARY_PATH
10283 shlibpath_overrides_runpath=no
10284 hardcode_into_libs=yes
10285 dynamic_linker='ldqnx.so'
10286 ;;
10287
10288 openbsd*)
10289 version_type=sunos
10290 sys_lib_dlsearch_path_spec="/usr/lib"
10291 need_lib_prefix=no
10292 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10293 case $host_os in
10294 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10295 *) need_version=no ;;
10296 esac
10297 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10298 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10299 shlibpath_var=LD_LIBRARY_PATH
10300 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10301 case $host_os in
10302 openbsd2.[89] | openbsd2.[89].*)
10303 shlibpath_overrides_runpath=no
10304 ;;
10305 *)
10306 shlibpath_overrides_runpath=yes
10307 ;;
10308 esac
10309 else
10310 shlibpath_overrides_runpath=yes
10311 fi
10312 ;;
10313
10314 os2*)
10315 libname_spec='$name'
10316 shrext_cmds=".dll"
10317 need_lib_prefix=no
10318 library_names_spec='$libname${shared_ext} $libname.a'
10319 dynamic_linker='OS/2 ld.exe'
10320 shlibpath_var=LIBPATH
10321 ;;
10322
10323 osf3* | osf4* | osf5*)
10324 version_type=osf
10325 need_lib_prefix=no
10326 need_version=no
10327 soname_spec='${libname}${release}${shared_ext}$major'
10328 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10329 shlibpath_var=LD_LIBRARY_PATH
10330 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10331 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10332 ;;
10333
10334 rdos*)
10335 dynamic_linker=no
10336 ;;
10337
10338 solaris*)
10339 version_type=linux
10340 need_lib_prefix=no
10341 need_version=no
10342 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10343 soname_spec='${libname}${release}${shared_ext}$major'
10344 shlibpath_var=LD_LIBRARY_PATH
10345 shlibpath_overrides_runpath=yes
10346 hardcode_into_libs=yes
10347 # ldd complains unless libraries are executable
10348 postinstall_cmds='chmod +x $lib'
10349 ;;
10350
10351 sunos4*)
10352 version_type=sunos
10353 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10354 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10355 shlibpath_var=LD_LIBRARY_PATH
10356 shlibpath_overrides_runpath=yes
10357 if test "$with_gnu_ld" = yes; then
10358 need_lib_prefix=no
10359 fi
10360 need_version=yes
10361 ;;
10362
10363 sysv4 | sysv4.3*)
10364 version_type=linux
10365 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10366 soname_spec='${libname}${release}${shared_ext}$major'
10367 shlibpath_var=LD_LIBRARY_PATH
10368 case $host_vendor in
10369 sni)
10370 shlibpath_overrides_runpath=no
10371 need_lib_prefix=no
10372 runpath_var=LD_RUN_PATH
10373 ;;
10374 siemens)
10375 need_lib_prefix=no
10376 ;;
10377 motorola)
10378 need_lib_prefix=no
10379 need_version=no
10380 shlibpath_overrides_runpath=no
10381 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10382 ;;
10383 esac
10384 ;;
10385
10386 sysv4*MP*)
10387 if test -d /usr/nec ;then
10388 version_type=linux
10389 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10390 soname_spec='$libname${shared_ext}.$major'
10391 shlibpath_var=LD_LIBRARY_PATH
10392 fi
10393 ;;
10394
10395 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10396 version_type=freebsd-elf
10397 need_lib_prefix=no
10398 need_version=no
10399 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10400 soname_spec='${libname}${release}${shared_ext}$major'
10401 shlibpath_var=LD_LIBRARY_PATH
10402 shlibpath_overrides_runpath=yes
10403 hardcode_into_libs=yes
10404 if test "$with_gnu_ld" = yes; then
10405 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10406 else
10407 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10408 case $host_os in
10409 sco3.2v5*)
10410 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10411 ;;
10412 esac
10413 fi
10414 sys_lib_dlsearch_path_spec='/usr/lib'
10415 ;;
10416
10417 tpf*)
10418 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10419 version_type=linux
10420 need_lib_prefix=no
10421 need_version=no
10422 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10423 shlibpath_var=LD_LIBRARY_PATH
10424 shlibpath_overrides_runpath=no
10425 hardcode_into_libs=yes
10426 ;;
10427
10428 uts4*)
10429 version_type=linux
10430 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10431 soname_spec='${libname}${release}${shared_ext}$major'
10432 shlibpath_var=LD_LIBRARY_PATH
10433 ;;
10434
10435 *)
10436 dynamic_linker=no
10437 ;;
10438 esac
10439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10440 $as_echo "$dynamic_linker" >&6; }
10441 test "$dynamic_linker" = no && can_build_shared=no
10442
10443 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10444 if test "$GCC" = yes; then
10445 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10446 fi
10447
10448 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10449 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10450 fi
10451 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10452 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10453 fi
10454
10455
10456
10457
10458
10459
10460
10461
10462
10463
10464
10465
10466
10467
10468
10469
10470
10471
10472
10473
10474
10475
10476
10477
10478
10479
10480
10481
10482
10483
10484
10485
10486
10487
10488
10489
10490
10491
10492
10493
10494
10495
10496
10497
10498
10499
10500
10501
10502
10503
10504
10505
10506
10507
10508
10509
10510
10511
10512
10513
10514
10515
10516
10517
10518
10519
10520
10521
10522
10523
10524
10525
10526
10527
10528
10529
10530
10531
10532
10533
10534
10535
10536
10537
10538
10539
10540
10541
10542
10543
10544
10545
10546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10547 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10548 hardcode_action=
10549 if test -n "$hardcode_libdir_flag_spec" ||
10550 test -n "$runpath_var" ||
10551 test "X$hardcode_automatic" = "Xyes" ; then
10552
10553 # We can hardcode non-existent directories.
10554 if test "$hardcode_direct" != no &&
10555 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10556 # have to relink, otherwise we might link with an installed library
10557 # when we should be linking with a yet-to-be-installed one
10558 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10559 test "$hardcode_minus_L" != no; then
10560 # Linking always hardcodes the temporary library directory.
10561 hardcode_action=relink
10562 else
10563 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10564 hardcode_action=immediate
10565 fi
10566 else
10567 # We cannot hardcode anything, or else we can only hardcode existing
10568 # directories.
10569 hardcode_action=unsupported
10570 fi
10571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10572 $as_echo "$hardcode_action" >&6; }
10573
10574 if test "$hardcode_action" = relink ||
10575 test "$inherit_rpath" = yes; then
10576 # Fast installation is not supported
10577 enable_fast_install=no
10578 elif test "$shlibpath_overrides_runpath" = yes ||
10579 test "$enable_shared" = no; then
10580 # Fast installation is not necessary
10581 enable_fast_install=needless
10582 fi
10583
10584
10585
10586
10587
10588
10589 if test "x$enable_dlopen" != xyes; then
10590 enable_dlopen=unknown
10591 enable_dlopen_self=unknown
10592 enable_dlopen_self_static=unknown
10593 else
10594 lt_cv_dlopen=no
10595 lt_cv_dlopen_libs=
10596
10597 case $host_os in
10598 beos*)
10599 lt_cv_dlopen="load_add_on"
10600 lt_cv_dlopen_libs=
10601 lt_cv_dlopen_self=yes
10602 ;;
10603
10604 mingw* | pw32* | cegcc*)
10605 lt_cv_dlopen="LoadLibrary"
10606 lt_cv_dlopen_libs=
10607 ;;
10608
10609 cygwin*)
10610 lt_cv_dlopen="dlopen"
10611 lt_cv_dlopen_libs=
10612 ;;
10613
10614 darwin*)
10615 # if libdl is installed we need to link against it
10616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10617 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10618 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10619 $as_echo_n "(cached) " >&6
10620 else
10621 ac_check_lib_save_LIBS=$LIBS
10622 LIBS="-ldl $LIBS"
10623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10624 /* end confdefs.h. */
10625
10626 /* Override any GCC internal prototype to avoid an error.
10627 Use char because int might match the return type of a GCC
10628 builtin and then its argument prototype would still apply. */
10629 #ifdef __cplusplus
10630 extern "C"
10631 #endif
10632 char dlopen ();
10633 int
10634 main ()
10635 {
10636 return dlopen ();
10637 ;
10638 return 0;
10639 }
10640 _ACEOF
10641 if ac_fn_c_try_link "$LINENO"; then :
10642 ac_cv_lib_dl_dlopen=yes
10643 else
10644 ac_cv_lib_dl_dlopen=no
10645 fi
10646 rm -f core conftest.err conftest.$ac_objext \
10647 conftest$ac_exeext conftest.$ac_ext
10648 LIBS=$ac_check_lib_save_LIBS
10649 fi
10650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10651 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10652 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10653 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10654 else
10655
10656 lt_cv_dlopen="dyld"
10657 lt_cv_dlopen_libs=
10658 lt_cv_dlopen_self=yes
10659
10660 fi
10661
10662 ;;
10663
10664 *)
10665 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10666 if test "x$ac_cv_func_shl_load" = x""yes; then :
10667 lt_cv_dlopen="shl_load"
10668 else
10669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10670 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10671 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10672 $as_echo_n "(cached) " >&6
10673 else
10674 ac_check_lib_save_LIBS=$LIBS
10675 LIBS="-ldld $LIBS"
10676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10677 /* end confdefs.h. */
10678
10679 /* Override any GCC internal prototype to avoid an error.
10680 Use char because int might match the return type of a GCC
10681 builtin and then its argument prototype would still apply. */
10682 #ifdef __cplusplus
10683 extern "C"
10684 #endif
10685 char shl_load ();
10686 int
10687 main ()
10688 {
10689 return shl_load ();
10690 ;
10691 return 0;
10692 }
10693 _ACEOF
10694 if ac_fn_c_try_link "$LINENO"; then :
10695 ac_cv_lib_dld_shl_load=yes
10696 else
10697 ac_cv_lib_dld_shl_load=no
10698 fi
10699 rm -f core conftest.err conftest.$ac_objext \
10700 conftest$ac_exeext conftest.$ac_ext
10701 LIBS=$ac_check_lib_save_LIBS
10702 fi
10703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10704 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10705 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10706 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10707 else
10708 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10709 if test "x$ac_cv_func_dlopen" = x""yes; then :
10710 lt_cv_dlopen="dlopen"
10711 else
10712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10713 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10714 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10715 $as_echo_n "(cached) " >&6
10716 else
10717 ac_check_lib_save_LIBS=$LIBS
10718 LIBS="-ldl $LIBS"
10719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10720 /* end confdefs.h. */
10721
10722 /* Override any GCC internal prototype to avoid an error.
10723 Use char because int might match the return type of a GCC
10724 builtin and then its argument prototype would still apply. */
10725 #ifdef __cplusplus
10726 extern "C"
10727 #endif
10728 char dlopen ();
10729 int
10730 main ()
10731 {
10732 return dlopen ();
10733 ;
10734 return 0;
10735 }
10736 _ACEOF
10737 if ac_fn_c_try_link "$LINENO"; then :
10738 ac_cv_lib_dl_dlopen=yes
10739 else
10740 ac_cv_lib_dl_dlopen=no
10741 fi
10742 rm -f core conftest.err conftest.$ac_objext \
10743 conftest$ac_exeext conftest.$ac_ext
10744 LIBS=$ac_check_lib_save_LIBS
10745 fi
10746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10747 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10748 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10749 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10750 else
10751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10752 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10753 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10754 $as_echo_n "(cached) " >&6
10755 else
10756 ac_check_lib_save_LIBS=$LIBS
10757 LIBS="-lsvld $LIBS"
10758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10759 /* end confdefs.h. */
10760
10761 /* Override any GCC internal prototype to avoid an error.
10762 Use char because int might match the return type of a GCC
10763 builtin and then its argument prototype would still apply. */
10764 #ifdef __cplusplus
10765 extern "C"
10766 #endif
10767 char dlopen ();
10768 int
10769 main ()
10770 {
10771 return dlopen ();
10772 ;
10773 return 0;
10774 }
10775 _ACEOF
10776 if ac_fn_c_try_link "$LINENO"; then :
10777 ac_cv_lib_svld_dlopen=yes
10778 else
10779 ac_cv_lib_svld_dlopen=no
10780 fi
10781 rm -f core conftest.err conftest.$ac_objext \
10782 conftest$ac_exeext conftest.$ac_ext
10783 LIBS=$ac_check_lib_save_LIBS
10784 fi
10785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10786 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10787 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
10788 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10789 else
10790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10791 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10792 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
10793 $as_echo_n "(cached) " >&6
10794 else
10795 ac_check_lib_save_LIBS=$LIBS
10796 LIBS="-ldld $LIBS"
10797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10798 /* end confdefs.h. */
10799
10800 /* Override any GCC internal prototype to avoid an error.
10801 Use char because int might match the return type of a GCC
10802 builtin and then its argument prototype would still apply. */
10803 #ifdef __cplusplus
10804 extern "C"
10805 #endif
10806 char dld_link ();
10807 int
10808 main ()
10809 {
10810 return dld_link ();
10811 ;
10812 return 0;
10813 }
10814 _ACEOF
10815 if ac_fn_c_try_link "$LINENO"; then :
10816 ac_cv_lib_dld_dld_link=yes
10817 else
10818 ac_cv_lib_dld_dld_link=no
10819 fi
10820 rm -f core conftest.err conftest.$ac_objext \
10821 conftest$ac_exeext conftest.$ac_ext
10822 LIBS=$ac_check_lib_save_LIBS
10823 fi
10824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10825 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10826 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
10827 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10828 fi
10829
10830
10831 fi
10832
10833
10834 fi
10835
10836
10837 fi
10838
10839
10840 fi
10841
10842
10843 fi
10844
10845 ;;
10846 esac
10847
10848 if test "x$lt_cv_dlopen" != xno; then
10849 enable_dlopen=yes
10850 else
10851 enable_dlopen=no
10852 fi
10853
10854 case $lt_cv_dlopen in
10855 dlopen)
10856 save_CPPFLAGS="$CPPFLAGS"
10857 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10858
10859 save_LDFLAGS="$LDFLAGS"
10860 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10861
10862 save_LIBS="$LIBS"
10863 LIBS="$lt_cv_dlopen_libs $LIBS"
10864
10865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10866 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10867 if test "${lt_cv_dlopen_self+set}" = set; then :
10868 $as_echo_n "(cached) " >&6
10869 else
10870 if test "$cross_compiling" = yes; then :
10871 lt_cv_dlopen_self=cross
10872 else
10873 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10874 lt_status=$lt_dlunknown
10875 cat > conftest.$ac_ext <<_LT_EOF
10876 #line $LINENO "configure"
10877 #include "confdefs.h"
10878
10879 #if HAVE_DLFCN_H
10880 #include <dlfcn.h>
10881 #endif
10882
10883 #include <stdio.h>
10884
10885 #ifdef RTLD_GLOBAL
10886 # define LT_DLGLOBAL RTLD_GLOBAL
10887 #else
10888 # ifdef DL_GLOBAL
10889 # define LT_DLGLOBAL DL_GLOBAL
10890 # else
10891 # define LT_DLGLOBAL 0
10892 # endif
10893 #endif
10894
10895 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10896 find out it does not work in some platform. */
10897 #ifndef LT_DLLAZY_OR_NOW
10898 # ifdef RTLD_LAZY
10899 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10900 # else
10901 # ifdef DL_LAZY
10902 # define LT_DLLAZY_OR_NOW DL_LAZY
10903 # else
10904 # ifdef RTLD_NOW
10905 # define LT_DLLAZY_OR_NOW RTLD_NOW
10906 # else
10907 # ifdef DL_NOW
10908 # define LT_DLLAZY_OR_NOW DL_NOW
10909 # else
10910 # define LT_DLLAZY_OR_NOW 0
10911 # endif
10912 # endif
10913 # endif
10914 # endif
10915 #endif
10916
10917 /* When -fvisbility=hidden is used, assume the code has been annotated
10918 correspondingly for the symbols needed. */
10919 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10920 void fnord () __attribute__((visibility("default")));
10921 #endif
10922
10923 void fnord () { int i=42; }
10924 int main ()
10925 {
10926 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10927 int status = $lt_dlunknown;
10928
10929 if (self)
10930 {
10931 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10932 else
10933 {
10934 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10935 else puts (dlerror ());
10936 }
10937 /* dlclose (self); */
10938 }
10939 else
10940 puts (dlerror ());
10941
10942 return status;
10943 }
10944 _LT_EOF
10945 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10946 (eval $ac_link) 2>&5
10947 ac_status=$?
10948 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10949 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10950 (./conftest; exit; ) >&5 2>/dev/null
10951 lt_status=$?
10952 case x$lt_status in
10953 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10954 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10955 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10956 esac
10957 else :
10958 # compilation failed
10959 lt_cv_dlopen_self=no
10960 fi
10961 fi
10962 rm -fr conftest*
10963
10964
10965 fi
10966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10967 $as_echo "$lt_cv_dlopen_self" >&6; }
10968
10969 if test "x$lt_cv_dlopen_self" = xyes; then
10970 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10972 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10973 if test "${lt_cv_dlopen_self_static+set}" = set; then :
10974 $as_echo_n "(cached) " >&6
10975 else
10976 if test "$cross_compiling" = yes; then :
10977 lt_cv_dlopen_self_static=cross
10978 else
10979 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10980 lt_status=$lt_dlunknown
10981 cat > conftest.$ac_ext <<_LT_EOF
10982 #line $LINENO "configure"
10983 #include "confdefs.h"
10984
10985 #if HAVE_DLFCN_H
10986 #include <dlfcn.h>
10987 #endif
10988
10989 #include <stdio.h>
10990
10991 #ifdef RTLD_GLOBAL
10992 # define LT_DLGLOBAL RTLD_GLOBAL
10993 #else
10994 # ifdef DL_GLOBAL
10995 # define LT_DLGLOBAL DL_GLOBAL
10996 # else
10997 # define LT_DLGLOBAL 0
10998 # endif
10999 #endif
11000
11001 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11002 find out it does not work in some platform. */
11003 #ifndef LT_DLLAZY_OR_NOW
11004 # ifdef RTLD_LAZY
11005 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11006 # else
11007 # ifdef DL_LAZY
11008 # define LT_DLLAZY_OR_NOW DL_LAZY
11009 # else
11010 # ifdef RTLD_NOW
11011 # define LT_DLLAZY_OR_NOW RTLD_NOW
11012 # else
11013 # ifdef DL_NOW
11014 # define LT_DLLAZY_OR_NOW DL_NOW
11015 # else
11016 # define LT_DLLAZY_OR_NOW 0
11017 # endif
11018 # endif
11019 # endif
11020 # endif
11021 #endif
11022
11023 /* When -fvisbility=hidden is used, assume the code has been annotated
11024 correspondingly for the symbols needed. */
11025 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11026 void fnord () __attribute__((visibility("default")));
11027 #endif
11028
11029 void fnord () { int i=42; }
11030 int main ()
11031 {
11032 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11033 int status = $lt_dlunknown;
11034
11035 if (self)
11036 {
11037 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11038 else
11039 {
11040 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11041 else puts (dlerror ());
11042 }
11043 /* dlclose (self); */
11044 }
11045 else
11046 puts (dlerror ());
11047
11048 return status;
11049 }
11050 _LT_EOF
11051 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11052 (eval $ac_link) 2>&5
11053 ac_status=$?
11054 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11055 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11056 (./conftest; exit; ) >&5 2>/dev/null
11057 lt_status=$?
11058 case x$lt_status in
11059 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11060 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11061 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11062 esac
11063 else :
11064 # compilation failed
11065 lt_cv_dlopen_self_static=no
11066 fi
11067 fi
11068 rm -fr conftest*
11069
11070
11071 fi
11072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11073 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11074 fi
11075
11076 CPPFLAGS="$save_CPPFLAGS"
11077 LDFLAGS="$save_LDFLAGS"
11078 LIBS="$save_LIBS"
11079 ;;
11080 esac
11081
11082 case $lt_cv_dlopen_self in
11083 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11084 *) enable_dlopen_self=unknown ;;
11085 esac
11086
11087 case $lt_cv_dlopen_self_static in
11088 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11089 *) enable_dlopen_self_static=unknown ;;
11090 esac
11091 fi
11092
11093
11094
11095
11096
11097
11098
11099
11100
11101
11102
11103
11104
11105
11106
11107
11108
11109 striplib=
11110 old_striplib=
11111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11112 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11113 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11114 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11115 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11117 $as_echo "yes" >&6; }
11118 else
11119 # FIXME - insert some real tests, host_os isn't really good enough
11120 case $host_os in
11121 darwin*)
11122 if test -n "$STRIP" ; then
11123 striplib="$STRIP -x"
11124 old_striplib="$STRIP -S"
11125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11126 $as_echo "yes" >&6; }
11127 else
11128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11129 $as_echo "no" >&6; }
11130 fi
11131 ;;
11132 *)
11133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11134 $as_echo "no" >&6; }
11135 ;;
11136 esac
11137 fi
11138
11139
11140
11141
11142
11143
11144
11145
11146
11147
11148
11149
11150 # Report which library types will actually be built
11151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11152 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11154 $as_echo "$can_build_shared" >&6; }
11155
11156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11157 $as_echo_n "checking whether to build shared libraries... " >&6; }
11158 test "$can_build_shared" = "no" && enable_shared=no
11159
11160 # On AIX, shared libraries and static libraries use the same namespace, and
11161 # are all built from PIC.
11162 case $host_os in
11163 aix3*)
11164 test "$enable_shared" = yes && enable_static=no
11165 if test -n "$RANLIB"; then
11166 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11167 postinstall_cmds='$RANLIB $lib'
11168 fi
11169 ;;
11170
11171 aix[4-9]*)
11172 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11173 test "$enable_shared" = yes && enable_static=no
11174 fi
11175 ;;
11176 esac
11177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11178 $as_echo "$enable_shared" >&6; }
11179
11180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11181 $as_echo_n "checking whether to build static libraries... " >&6; }
11182 # Make sure either enable_shared or enable_static is yes.
11183 test "$enable_shared" = yes || enable_static=yes
11184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11185 $as_echo "$enable_static" >&6; }
11186
11187
11188
11189
11190 fi
11191 ac_ext=c
11192 ac_cpp='$CPP $CPPFLAGS'
11193 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11194 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11195 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11196
11197 CC="$lt_save_CC"
11198
11199
11200
11201
11202
11203
11204
11205
11206
11207
11208
11209
11210
11211 ac_config_commands="$ac_config_commands libtool"
11212
11213
11214
11215
11216 # Only expand once:
11217
11218
11219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which extension is used for runtime loadable modules" >&5
11220 $as_echo_n "checking which extension is used for runtime loadable modules... " >&6; }
11221 if test "${libltdl_cv_shlibext+set}" = set; then :
11222 $as_echo_n "(cached) " >&6
11223 else
11224
11225 module=yes
11226 eval libltdl_cv_shlibext=$shrext_cmds
11227
11228 fi
11229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_shlibext" >&5
11230 $as_echo "$libltdl_cv_shlibext" >&6; }
11231 if test -n "$libltdl_cv_shlibext"; then
11232
11233 cat >>confdefs.h <<_ACEOF
11234 #define LT_MODULE_EXT "$libltdl_cv_shlibext"
11235 _ACEOF
11236
11237 fi
11238
11239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variable specifies run-time module search path" >&5
11240 $as_echo_n "checking which variable specifies run-time module search path... " >&6; }
11241 if test "${lt_cv_module_path_var+set}" = set; then :
11242 $as_echo_n "(cached) " >&6
11243 else
11244 lt_cv_module_path_var="$shlibpath_var"
11245 fi
11246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_module_path_var" >&5
11247 $as_echo "$lt_cv_module_path_var" >&6; }
11248 if test -n "$lt_cv_module_path_var"; then
11249
11250 cat >>confdefs.h <<_ACEOF
11251 #define LT_MODULE_PATH_VAR "$lt_cv_module_path_var"
11252 _ACEOF
11253
11254 fi
11255
11256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the default library search path" >&5
11257 $as_echo_n "checking for the default library search path... " >&6; }
11258 if test "${lt_cv_sys_dlsearch_path+set}" = set; then :
11259 $as_echo_n "(cached) " >&6
11260 else
11261 lt_cv_sys_dlsearch_path="$sys_lib_dlsearch_path_spec"
11262 fi
11263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlsearch_path" >&5
11264 $as_echo "$lt_cv_sys_dlsearch_path" >&6; }
11265 if test -n "$lt_cv_sys_dlsearch_path"; then
11266 sys_dlsearch_path=
11267 for dir in $lt_cv_sys_dlsearch_path; do
11268 if test -z "$sys_dlsearch_path"; then
11269 sys_dlsearch_path="$dir"
11270 else
11271 sys_dlsearch_path="$sys_dlsearch_path$PATH_SEPARATOR$dir"
11272 fi
11273 done
11274
11275 cat >>confdefs.h <<_ACEOF
11276 #define LT_DLSEARCH_PATH "$sys_dlsearch_path"
11277 _ACEOF
11278
11279 fi
11280
11281
11282 LT_DLLOADERS=
11283
11284
11285 ac_ext=c
11286 ac_cpp='$CPP $CPPFLAGS'
11287 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11288 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11289 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11290
11291
11292 LIBADD_DLOPEN=
11293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
11294 $as_echo_n "checking for library containing dlopen... " >&6; }
11295 if test "${ac_cv_search_dlopen+set}" = set; then :
11296 $as_echo_n "(cached) " >&6
11297 else
11298 ac_func_search_save_LIBS=$LIBS
11299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11300 /* end confdefs.h. */
11301
11302 /* Override any GCC internal prototype to avoid an error.
11303 Use char because int might match the return type of a GCC
11304 builtin and then its argument prototype would still apply. */
11305 #ifdef __cplusplus
11306 extern "C"
11307 #endif
11308 char dlopen ();
11309 int
11310 main ()
11311 {
11312 return dlopen ();
11313 ;
11314 return 0;
11315 }
11316 _ACEOF
11317 for ac_lib in '' dl; do
11318 if test -z "$ac_lib"; then
11319 ac_res="none required"
11320 else
11321 ac_res=-l$ac_lib
11322 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11323 fi
11324 if ac_fn_c_try_link "$LINENO"; then :
11325 ac_cv_search_dlopen=$ac_res
11326 fi
11327 rm -f core conftest.err conftest.$ac_objext \
11328 conftest$ac_exeext
11329 if test "${ac_cv_search_dlopen+set}" = set; then :
11330 break
11331 fi
11332 done
11333 if test "${ac_cv_search_dlopen+set}" = set; then :
11334
11335 else
11336 ac_cv_search_dlopen=no
11337 fi
11338 rm conftest.$ac_ext
11339 LIBS=$ac_func_search_save_LIBS
11340 fi
11341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
11342 $as_echo "$ac_cv_search_dlopen" >&6; }
11343 ac_res=$ac_cv_search_dlopen
11344 if test "$ac_res" != no; then :
11345 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11346
11347 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
11348
11349 if test "$ac_cv_search_dlopen" != "none required" ; then
11350 LIBADD_DLOPEN="-ldl"
11351 fi
11352 libltdl_cv_lib_dl_dlopen="yes"
11353 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
11354 else
11355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11356 /* end confdefs.h. */
11357 #if HAVE_DLFCN_H
11358 # include <dlfcn.h>
11359 #endif
11360
11361 int
11362 main ()
11363 {
11364 dlopen(0, 0);
11365 ;
11366 return 0;
11367 }
11368 _ACEOF
11369 if ac_fn_c_try_link "$LINENO"; then :
11370
11371 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
11372
11373 libltdl_cv_func_dlopen="yes"
11374 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
11375 else
11376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11377 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11378 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
11379 $as_echo_n "(cached) " >&6
11380 else
11381 ac_check_lib_save_LIBS=$LIBS
11382 LIBS="-lsvld $LIBS"
11383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11384 /* end confdefs.h. */
11385
11386 /* Override any GCC internal prototype to avoid an error.
11387 Use char because int might match the return type of a GCC
11388 builtin and then its argument prototype would still apply. */
11389 #ifdef __cplusplus
11390 extern "C"
11391 #endif
11392 char dlopen ();
11393 int
11394 main ()
11395 {
11396 return dlopen ();
11397 ;
11398 return 0;
11399 }
11400 _ACEOF
11401 if ac_fn_c_try_link "$LINENO"; then :
11402 ac_cv_lib_svld_dlopen=yes
11403 else
11404 ac_cv_lib_svld_dlopen=no
11405 fi
11406 rm -f core conftest.err conftest.$ac_objext \
11407 conftest$ac_exeext conftest.$ac_ext
11408 LIBS=$ac_check_lib_save_LIBS
11409 fi
11410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11411 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11412 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
11413
11414 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
11415
11416 LIBADD_DLOPEN="-lsvld" libltdl_cv_func_dlopen="yes"
11417 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
11418 fi
11419
11420 fi
11421 rm -f core conftest.err conftest.$ac_objext \
11422 conftest$ac_exeext conftest.$ac_ext
11423 fi
11424
11425 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
11426 then
11427 lt_save_LIBS="$LIBS"
11428 LIBS="$LIBS $LIBADD_DLOPEN"
11429 for ac_func in dlerror
11430 do :
11431 ac_fn_c_check_func "$LINENO" "dlerror" "ac_cv_func_dlerror"
11432 if test "x$ac_cv_func_dlerror" = x""yes; then :
11433 cat >>confdefs.h <<_ACEOF
11434 #define HAVE_DLERROR 1
11435 _ACEOF
11436
11437 fi
11438 done
11439
11440 LIBS="$lt_save_LIBS"
11441 fi
11442
11443
11444 LIBADD_SHL_LOAD=
11445 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11446 if test "x$ac_cv_func_shl_load" = x""yes; then :
11447
11448 $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
11449
11450 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
11451 else
11452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11453 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11454 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
11455 $as_echo_n "(cached) " >&6
11456 else
11457 ac_check_lib_save_LIBS=$LIBS
11458 LIBS="-ldld $LIBS"
11459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11460 /* end confdefs.h. */
11461
11462 /* Override any GCC internal prototype to avoid an error.
11463 Use char because int might match the return type of a GCC
11464 builtin and then its argument prototype would still apply. */
11465 #ifdef __cplusplus
11466 extern "C"
11467 #endif
11468 char shl_load ();
11469 int
11470 main ()
11471 {
11472 return shl_load ();
11473 ;
11474 return 0;
11475 }
11476 _ACEOF
11477 if ac_fn_c_try_link "$LINENO"; then :
11478 ac_cv_lib_dld_shl_load=yes
11479 else
11480 ac_cv_lib_dld_shl_load=no
11481 fi
11482 rm -f core conftest.err conftest.$ac_objext \
11483 conftest$ac_exeext conftest.$ac_ext
11484 LIBS=$ac_check_lib_save_LIBS
11485 fi
11486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11487 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11488 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
11489
11490 $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
11491
11492 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
11493 LIBADD_SHL_LOAD="-ldld"
11494 fi
11495
11496 fi
11497
11498
11499
11500 case $host_os in
11501 darwin[1567].*)
11502 # We only want this for pre-Mac OS X 10.4.
11503 ac_fn_c_check_func "$LINENO" "_dyld_func_lookup" "ac_cv_func__dyld_func_lookup"
11504 if test "x$ac_cv_func__dyld_func_lookup" = x""yes; then :
11505
11506 $as_echo "#define HAVE_DYLD 1" >>confdefs.h
11507
11508 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la"
11509 fi
11510
11511 ;;
11512 beos*)
11513 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la"
11514 ;;
11515 cygwin* | mingw* | os2* | pw32*)
11516 ac_fn_c_check_decl "$LINENO" "cygwin_conv_path" "ac_cv_have_decl_cygwin_conv_path" "#include <sys/cygwin.h>
11517 "
11518 if test "x$ac_cv_have_decl_cygwin_conv_path" = x""yes; then :
11519 ac_have_decl=1
11520 else
11521 ac_have_decl=0
11522 fi
11523
11524 cat >>confdefs.h <<_ACEOF
11525 #define HAVE_DECL_CYGWIN_CONV_PATH $ac_have_decl
11526 _ACEOF
11527
11528 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la"
11529 ;;
11530 esac
11531
11532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11533 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11534 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
11535 $as_echo_n "(cached) " >&6
11536 else
11537 ac_check_lib_save_LIBS=$LIBS
11538 LIBS="-ldld $LIBS"
11539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11540 /* end confdefs.h. */
11541
11542 /* Override any GCC internal prototype to avoid an error.
11543 Use char because int might match the return type of a GCC
11544 builtin and then its argument prototype would still apply. */
11545 #ifdef __cplusplus
11546 extern "C"
11547 #endif
11548 char dld_link ();
11549 int
11550 main ()
11551 {
11552 return dld_link ();
11553 ;
11554 return 0;
11555 }
11556 _ACEOF
11557 if ac_fn_c_try_link "$LINENO"; then :
11558 ac_cv_lib_dld_dld_link=yes
11559 else
11560 ac_cv_lib_dld_dld_link=no
11561 fi
11562 rm -f core conftest.err conftest.$ac_objext \
11563 conftest$ac_exeext conftest.$ac_ext
11564 LIBS=$ac_check_lib_save_LIBS
11565 fi
11566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11567 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11568 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
11569
11570 $as_echo "#define HAVE_DLD 1" >>confdefs.h
11571
11572 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la"
11573 fi
11574
11575
11576
11577
11578 LT_DLPREOPEN=
11579 if test -n "$LT_DLLOADERS"
11580 then
11581 for lt_loader in $LT_DLLOADERS; do
11582 LT_DLPREOPEN="$LT_DLPREOPEN-dlpreopen $lt_loader "
11583 done
11584
11585 $as_echo "#define HAVE_LIBDLLOADER 1" >>confdefs.h
11586
11587 fi
11588
11589
11590 LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD"
11591
11592
11593 ac_ext=c
11594 ac_cpp='$CPP $CPPFLAGS'
11595 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11596 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11597 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11598
11599
11600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _ prefix in compiled symbols" >&5
11601 $as_echo_n "checking for _ prefix in compiled symbols... " >&6; }
11602 if test "${lt_cv_sys_symbol_underscore+set}" = set; then :
11603 $as_echo_n "(cached) " >&6
11604 else
11605 lt_cv_sys_symbol_underscore=no
11606 cat > conftest.$ac_ext <<_LT_EOF
11607 void nm_test_func(){}
11608 int main(){nm_test_func;return 0;}
11609 _LT_EOF
11610 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11611 (eval $ac_compile) 2>&5
11612 ac_status=$?
11613 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11614 test $ac_status = 0; }; then
11615 # Now try to grab the symbols.
11616 ac_nlist=conftest.nm
11617 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\""; } >&5
11618 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
11619 ac_status=$?
11620 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11621 test $ac_status = 0; } && test -s "$ac_nlist"; then
11622 # See whether the symbols have a leading underscore.
11623 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
11624 lt_cv_sys_symbol_underscore=yes
11625 else
11626 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
11627 :
11628 else
11629 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
11630 fi
11631 fi
11632 else
11633 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
11634 fi
11635 else
11636 echo "configure: failed program was:" >&5
11637 cat conftest.c >&5
11638 fi
11639 rm -rf conftest*
11640
11641 fi
11642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_symbol_underscore" >&5
11643 $as_echo "$lt_cv_sys_symbol_underscore" >&6; }
11644 sys_symbol_underscore=$lt_cv_sys_symbol_underscore
11645
11646
11647 if test x"$lt_cv_sys_symbol_underscore" = xyes; then
11648 if test x"$libltdl_cv_func_dlopen" = xyes ||
11649 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
11650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have to add an underscore for dlsym" >&5
11651 $as_echo_n "checking whether we have to add an underscore for dlsym... " >&6; }
11652 if test "${libltdl_cv_need_uscore+set}" = set; then :
11653 $as_echo_n "(cached) " >&6
11654 else
11655 libltdl_cv_need_uscore=unknown
11656 save_LIBS="$LIBS"
11657 LIBS="$LIBS $LIBADD_DLOPEN"
11658 if test "$cross_compiling" = yes; then :
11659 libltdl_cv_need_uscore=cross
11660 else
11661 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11662 lt_status=$lt_dlunknown
11663 cat > conftest.$ac_ext <<_LT_EOF
11664 #line $LINENO "configure"
11665 #include "confdefs.h"
11666
11667 #if HAVE_DLFCN_H
11668 #include <dlfcn.h>
11669 #endif
11670
11671 #include <stdio.h>
11672
11673 #ifdef RTLD_GLOBAL
11674 # define LT_DLGLOBAL RTLD_GLOBAL
11675 #else
11676 # ifdef DL_GLOBAL
11677 # define LT_DLGLOBAL DL_GLOBAL
11678 # else
11679 # define LT_DLGLOBAL 0
11680 # endif
11681 #endif
11682
11683 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11684 find out it does not work in some platform. */
11685 #ifndef LT_DLLAZY_OR_NOW
11686 # ifdef RTLD_LAZY
11687 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11688 # else
11689 # ifdef DL_LAZY
11690 # define LT_DLLAZY_OR_NOW DL_LAZY
11691 # else
11692 # ifdef RTLD_NOW
11693 # define LT_DLLAZY_OR_NOW RTLD_NOW
11694 # else
11695 # ifdef DL_NOW
11696 # define LT_DLLAZY_OR_NOW DL_NOW
11697 # else
11698 # define LT_DLLAZY_OR_NOW 0
11699 # endif
11700 # endif
11701 # endif
11702 # endif
11703 #endif
11704
11705 /* When -fvisbility=hidden is used, assume the code has been annotated
11706 correspondingly for the symbols needed. */
11707 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11708 void fnord () __attribute__((visibility("default")));
11709 #endif
11710
11711 void fnord () { int i=42; }
11712 int main ()
11713 {
11714 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11715 int status = $lt_dlunknown;
11716
11717 if (self)
11718 {
11719 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11720 else
11721 {
11722 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11723 else puts (dlerror ());
11724 }
11725 /* dlclose (self); */
11726 }
11727 else
11728 puts (dlerror ());
11729
11730 return status;
11731 }
11732 _LT_EOF
11733 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11734 (eval $ac_link) 2>&5
11735 ac_status=$?
11736 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11737 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11738 (./conftest; exit; ) >&5 2>/dev/null
11739 lt_status=$?
11740 case x$lt_status in
11741 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
11742 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
11743 x$lt_dlunknown|x*) ;;
11744 esac
11745 else :
11746 # compilation failed
11747
11748 fi
11749 fi
11750 rm -fr conftest*
11751
11752 LIBS="$save_LIBS"
11753
11754 fi
11755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_need_uscore" >&5
11756 $as_echo "$libltdl_cv_need_uscore" >&6; }
11757 fi
11758 fi
11759
11760 if test x"$libltdl_cv_need_uscore" = xyes; then
11761
11762 $as_echo "#define NEED_USCORE 1" >>confdefs.h
11763
11764 fi
11765
11766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether deplibs are loaded by dlopen" >&5
11767 $as_echo_n "checking whether deplibs are loaded by dlopen... " >&6; }
11768 if test "${lt_cv_sys_dlopen_deplibs+set}" = set; then :
11769 $as_echo_n "(cached) " >&6
11770 else
11771 # PORTME does your system automatically load deplibs for dlopen?
11772 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
11773 # For now, we just catch OSes we know something about -- in the
11774 # future, we'll try test this programmatically.
11775 lt_cv_sys_dlopen_deplibs=unknown
11776 case $host_os in
11777 aix3*|aix4.1.*|aix4.2.*)
11778 # Unknown whether this is true for these versions of AIX, but
11779 # we want this `case' here to explicitly catch those versions.
11780 lt_cv_sys_dlopen_deplibs=unknown
11781 ;;
11782 aix[4-9]*)
11783 lt_cv_sys_dlopen_deplibs=yes
11784 ;;
11785 amigaos*)
11786 case $host_cpu in
11787 powerpc)
11788 lt_cv_sys_dlopen_deplibs=no
11789 ;;
11790 esac
11791 ;;
11792 darwin*)
11793 # Assuming the user has installed a libdl from somewhere, this is true
11794 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
11795 lt_cv_sys_dlopen_deplibs=yes
11796 ;;
11797 freebsd* | dragonfly*)
11798 lt_cv_sys_dlopen_deplibs=yes
11799 ;;
11800 gnu* | linux* | k*bsd*-gnu | kopensolaris*-gnu)
11801 # GNU and its variants, using gnu ld.so (Glibc)
11802 lt_cv_sys_dlopen_deplibs=yes
11803 ;;
11804 hpux10*|hpux11*)
11805 lt_cv_sys_dlopen_deplibs=yes
11806 ;;
11807 interix*)
11808 lt_cv_sys_dlopen_deplibs=yes
11809 ;;
11810 irix[12345]*|irix6.[01]*)
11811 # Catch all versions of IRIX before 6.2, and indicate that we don't
11812 # know how it worked for any of those versions.
11813 lt_cv_sys_dlopen_deplibs=unknown
11814 ;;
11815 irix*)
11816 # The case above catches anything before 6.2, and it's known that
11817 # at 6.2 and later dlopen does load deplibs.
11818 lt_cv_sys_dlopen_deplibs=yes
11819 ;;
11820 netbsd*)
11821 lt_cv_sys_dlopen_deplibs=yes
11822 ;;
11823 openbsd*)
11824 lt_cv_sys_dlopen_deplibs=yes
11825 ;;
11826 osf[1234]*)
11827 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
11828 # it did *not* use an RPATH in a shared library to find objects the
11829 # library depends on, so we explicitly say `no'.
11830 lt_cv_sys_dlopen_deplibs=no
11831 ;;
11832 osf5.0|osf5.0a|osf5.1)
11833 # dlopen *does* load deplibs and with the right loader patch applied
11834 # it even uses RPATH in a shared library to search for shared objects
11835 # that the library depends on, but there's no easy way to know if that
11836 # patch is installed. Since this is the case, all we can really
11837 # say is unknown -- it depends on the patch being installed. If
11838 # it is, this changes to `yes'. Without it, it would be `no'.
11839 lt_cv_sys_dlopen_deplibs=unknown
11840 ;;
11841 osf*)
11842 # the two cases above should catch all versions of osf <= 5.1. Read
11843 # the comments above for what we know about them.
11844 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
11845 # is used to find them so we can finally say `yes'.
11846 lt_cv_sys_dlopen_deplibs=yes
11847 ;;
11848 qnx*)
11849 lt_cv_sys_dlopen_deplibs=yes
11850 ;;
11851 solaris*)
11852 lt_cv_sys_dlopen_deplibs=yes
11853 ;;
11854 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11855 libltdl_cv_sys_dlopen_deplibs=yes
11856 ;;
11857 esac
11858
11859 fi
11860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlopen_deplibs" >&5
11861 $as_echo "$lt_cv_sys_dlopen_deplibs" >&6; }
11862 if test "$lt_cv_sys_dlopen_deplibs" != yes; then
11863
11864 $as_echo "#define LTDL_DLOPEN_DEPLIBS 1" >>confdefs.h
11865
11866 fi
11867
11868 :
11869
11870 for ac_header in argz.h
11871 do :
11872 ac_fn_c_check_header_compile "$LINENO" "argz.h" "ac_cv_header_argz_h" "$ac_includes_default
11873 "
11874 if test "x$ac_cv_header_argz_h" = x""yes; then :
11875 cat >>confdefs.h <<_ACEOF
11876 #define HAVE_ARGZ_H 1
11877 _ACEOF
11878
11879 fi
11880
11881 done
11882
11883
11884 ac_fn_c_check_type "$LINENO" "error_t" "ac_cv_type_error_t" "#if defined(HAVE_ARGZ_H)
11885 # include <argz.h>
11886 #endif
11887 "
11888 if test "x$ac_cv_type_error_t" = x""yes; then :
11889
11890 cat >>confdefs.h <<_ACEOF
11891 #define HAVE_ERROR_T 1
11892 _ACEOF
11893
11894
11895 else
11896
11897 $as_echo "#define error_t int" >>confdefs.h
11898
11899
11900 $as_echo "#define __error_t_defined 1" >>confdefs.h
11901
11902 fi
11903
11904
11905 ARGZ_H=
11906 for ac_func in argz_add argz_append argz_count argz_create_sep argz_insert \
11907 argz_next argz_stringify
11908 do :
11909 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11910 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11911 eval as_val=\$$as_ac_var
11912 if test "x$as_val" = x""yes; then :
11913 cat >>confdefs.h <<_ACEOF
11914 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11915 _ACEOF
11916
11917 else
11918 ARGZ_H=argz.h;
11919
11920 _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
11921
11922 fi
11923 done
11924
11925
11926 if test -z "$ARGZ_H"; then :
11927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if argz actually works" >&5
11928 $as_echo_n "checking if argz actually works... " >&6; }
11929 if test "${lt_cv_sys_argz_works+set}" = set; then :
11930 $as_echo_n "(cached) " >&6
11931 else
11932 case $host_os in #(
11933 *cygwin*)
11934 lt_cv_sys_argz_works=no
11935 if test "$cross_compiling" != no; then
11936 lt_cv_sys_argz_works="guessing no"
11937 else
11938 lt_sed_extract_leading_digits='s/^\([0-9\.]*\).*/\1/'
11939 save_IFS=$IFS
11940 IFS=-.
11941 set x `uname -r | sed -e "$lt_sed_extract_leading_digits"`
11942 IFS=$save_IFS
11943 lt_os_major=${2-0}
11944 lt_os_minor=${3-0}
11945 lt_os_micro=${4-0}
11946 if test "$lt_os_major" -gt 1 \
11947 || { test "$lt_os_major" -eq 1 \
11948 && { test "$lt_os_minor" -gt 5 \
11949 || { test "$lt_os_minor" -eq 5 \
11950 && test "$lt_os_micro" -gt 24; }; }; }; then
11951 lt_cv_sys_argz_works=yes
11952 fi
11953 fi
11954 ;; #(
11955 *) lt_cv_sys_argz_works=yes ;;
11956 esac
11957 fi
11958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_argz_works" >&5
11959 $as_echo "$lt_cv_sys_argz_works" >&6; }
11960 if test $lt_cv_sys_argz_works = yes; then :
11961
11962 $as_echo "#define HAVE_WORKING_ARGZ 1" >>confdefs.h
11963
11964 else
11965 ARGZ_H=argz.h
11966
11967
11968 _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
11969
11970 fi
11971 fi
11972
11973
11974
11975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libtool supports -dlopen/-dlpreopen" >&5
11976 $as_echo_n "checking whether libtool supports -dlopen/-dlpreopen... " >&6; }
11977 if test "${libltdl_cv_preloaded_symbols+set}" = set; then :
11978 $as_echo_n "(cached) " >&6
11979 else
11980 if test -n "$lt_cv_sys_global_symbol_pipe"; then
11981 libltdl_cv_preloaded_symbols=yes
11982 else
11983 libltdl_cv_preloaded_symbols=no
11984 fi
11985
11986 fi
11987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_preloaded_symbols" >&5
11988 $as_echo "$libltdl_cv_preloaded_symbols" >&6; }
11989 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
11990
11991 $as_echo "#define HAVE_PRELOADED_SYMBOLS 1" >>confdefs.h
11992
11993 fi
11994
11995 # Set options
11996
11997
11998
11999
12000
12001
12002
12003
12004
12005
12006
12007 # Check whether --with-included_ltdl was given.
12008 if test "${with_included_ltdl+set}" = set; then :
12009 withval=$with_included_ltdl;
12010 fi
12011
12012
12013 if test "x$with_included_ltdl" != xyes; then
12014 # We are not being forced to use the included libltdl sources, so
12015 # decide whether there is a useful installed version we can use.
12016 ac_fn_c_check_header_compile "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default
12017
12018 "
12019 if test "x$ac_cv_header_ltdl_h" = x""yes; then :
12020 ac_fn_c_check_decl "$LINENO" "lt_dlinterface_register" "ac_cv_have_decl_lt_dlinterface_register" "$ac_includes_default
12021 #include <ltdl.h>
12022 "
12023 if test "x$ac_cv_have_decl_lt_dlinterface_register" = x""yes; then :
12024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dladvise_preload in -lltdl" >&5
12025 $as_echo_n "checking for lt_dladvise_preload in -lltdl... " >&6; }
12026 if test "${ac_cv_lib_ltdl_lt_dladvise_preload+set}" = set; then :
12027 $as_echo_n "(cached) " >&6
12028 else
12029 ac_check_lib_save_LIBS=$LIBS
12030 LIBS="-lltdl $LIBS"
12031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12032 /* end confdefs.h. */
12033
12034 /* Override any GCC internal prototype to avoid an error.
12035 Use char because int might match the return type of a GCC
12036 builtin and then its argument prototype would still apply. */
12037 #ifdef __cplusplus
12038 extern "C"
12039 #endif
12040 char lt_dladvise_preload ();
12041 int
12042 main ()
12043 {
12044 return lt_dladvise_preload ();
12045 ;
12046 return 0;
12047 }
12048 _ACEOF
12049 if ac_fn_c_try_link "$LINENO"; then :
12050 ac_cv_lib_ltdl_lt_dladvise_preload=yes
12051 else
12052 ac_cv_lib_ltdl_lt_dladvise_preload=no
12053 fi
12054 rm -f core conftest.err conftest.$ac_objext \
12055 conftest$ac_exeext conftest.$ac_ext
12056 LIBS=$ac_check_lib_save_LIBS
12057 fi
12058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dladvise_preload" >&5
12059 $as_echo "$ac_cv_lib_ltdl_lt_dladvise_preload" >&6; }
12060 if test "x$ac_cv_lib_ltdl_lt_dladvise_preload" = x""yes; then :
12061 with_included_ltdl=no
12062 else
12063 with_included_ltdl=yes
12064 fi
12065
12066 else
12067 with_included_ltdl=yes
12068 fi
12069
12070 else
12071 with_included_ltdl=yes
12072 fi
12073
12074
12075 fi
12076
12077
12078
12079
12080 # Check whether --with-ltdl_include was given.
12081 if test "${with_ltdl_include+set}" = set; then :
12082 withval=$with_ltdl_include;
12083 fi
12084
12085
12086 if test -n "$with_ltdl_include"; then
12087 if test -f "$with_ltdl_include/ltdl.h"; then :
12088 else
12089 as_fn_error "invalid ltdl include directory: \`$with_ltdl_include'" "$LINENO" 5
12090 fi
12091 else
12092 with_ltdl_include=no
12093 fi
12094
12095
12096 # Check whether --with-ltdl_lib was given.
12097 if test "${with_ltdl_lib+set}" = set; then :
12098 withval=$with_ltdl_lib;
12099 fi
12100
12101
12102 if test -n "$with_ltdl_lib"; then
12103 if test -f "$with_ltdl_lib/libltdl.la"; then :
12104 else
12105 as_fn_error "invalid ltdl library directory: \`$with_ltdl_lib'" "$LINENO" 5
12106 fi
12107 else
12108 with_ltdl_lib=no
12109 fi
12110
12111 case ,$with_included_ltdl,$with_ltdl_include,$with_ltdl_lib, in
12112 ,yes,no,no,)
12113 case $enable_ltdl_convenience in
12114 no) as_fn_error "this package needs a convenience libltdl" "$LINENO" 5 ;;
12115 "") enable_ltdl_convenience=yes
12116 ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
12117 esac
12118 LIBLTDL='${top_build_prefix}'"${lt_ltdl_dir+$lt_ltdl_dir/}libltdlc.la"
12119 LTDLDEPS=$LIBLTDL
12120 LTDLINCL='-I${top_srcdir}'"${lt_ltdl_dir+/$lt_ltdl_dir}"
12121
12122
12123
12124
12125
12126 # For backwards non-gettext consistent compatibility...
12127 INCLTDL="$LTDLINCL"
12128
12129
12130 ;;
12131 ,no,no,no,)
12132 # If the included ltdl is not to be used, then use the
12133 # preinstalled libltdl we found.
12134
12135 $as_echo "#define HAVE_LTDL 1" >>confdefs.h
12136
12137 LIBLTDL=-lltdl
12138 LTDLDEPS=
12139 LTDLINCL=
12140 ;;
12141 ,no*,no,*)
12142 as_fn_error "\`--with-ltdl-include' and \`--with-ltdl-lib' options must be used together" "$LINENO" 5
12143 ;;
12144 *) with_included_ltdl=no
12145 LIBLTDL="-L$with_ltdl_lib -lltdl"
12146 LTDLDEPS=
12147 LTDLINCL="-I$with_ltdl_include"
12148 ;;
12149 esac
12150 INCLTDL="$LTDLINCL"
12151
12152 # Report our decision...
12153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl headers" >&5
12154 $as_echo_n "checking where to find libltdl headers... " >&6; }
12155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LTDLINCL" >&5
12156 $as_echo "$LTDLINCL" >&6; }
12157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl library" >&5
12158 $as_echo_n "checking where to find libltdl library... " >&6; }
12159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBLTDL" >&5
12160 $as_echo "$LIBLTDL" >&6; }
12161
12162
12163
12164 # Check whether --enable-ltdl-install was given.
12165 if test "${enable_ltdl_install+set}" = set; then :
12166 enableval=$enable_ltdl_install;
12167 fi
12168
12169
12170 case ,${enable_ltdl_install},${enable_ltdl_convenience} in
12171 *yes*) ;;
12172 *) enable_ltdl_convenience=yes ;;
12173 esac
12174
12175 if test x"${enable_ltdl_install-no}" != xno; then
12176 INSTALL_LTDL_TRUE=
12177 INSTALL_LTDL_FALSE='#'
12178 else
12179 INSTALL_LTDL_TRUE='#'
12180 INSTALL_LTDL_FALSE=
12181 fi
12182
12183 if test x"${enable_ltdl_convenience-no}" != xno; then
12184 CONVENIENCE_LTDL_TRUE=
12185 CONVENIENCE_LTDL_FALSE='#'
12186 else
12187 CONVENIENCE_LTDL_TRUE='#'
12188 CONVENIENCE_LTDL_FALSE=
12189 fi
12190
12191
12192
12193
12194
12195
12196 # In order that ltdl.c can compile, find out the first AC_CONFIG_HEADERS
12197 # the user used. This is so that ltdl.h can pick up the parent projects
12198 # config.h file, The first file in AC_CONFIG_HEADERS must contain the
12199 # definitions required by ltdl.c.
12200 # FIXME: Remove use of undocumented AC_LIST_HEADERS (2.59 compatibility).
12201
12202
12203
12204 for ac_header in unistd.h dl.h sys/dl.h dld.h mach-o/dyld.h dirent.h
12205 do :
12206 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12207 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
12208 "
12209 eval as_val=\$$as_ac_Header
12210 if test "x$as_val" = x""yes; then :
12211 cat >>confdefs.h <<_ACEOF
12212 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12213 _ACEOF
12214
12215 fi
12216
12217 done
12218
12219
12220 for ac_func in closedir opendir readdir
12221 do :
12222 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12223 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12224 eval as_val=\$$as_ac_var
12225 if test "x$as_val" = x""yes; then :
12226 cat >>confdefs.h <<_ACEOF
12227 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12228 _ACEOF
12229
12230 else
12231
12232
12233 _LT_LIBOBJS="$_LT_LIBOBJS lt__dirent.$ac_objext"
12234
12235 fi
12236 done
12237
12238 for ac_func in strlcat strlcpy
12239 do :
12240 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12241 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12242 eval as_val=\$$as_ac_var
12243 if test "x$as_val" = x""yes; then :
12244 cat >>confdefs.h <<_ACEOF
12245 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12246 _ACEOF
12247
12248 else
12249
12250
12251 _LT_LIBOBJS="$_LT_LIBOBJS lt__strl.$ac_objext"
12252
12253 fi
12254 done
12255
12256
12257
12258 cat >>confdefs.h <<_ACEOF
12259 #define LT_LIBEXT "$libext"
12260 _ACEOF
12261
12262
12263 name=ltdl
12264 LTDLOPEN=`eval "\\$ECHO \"$libname_spec\""`
12265
12266
12267
12268
12269
12270
12271
12272
12273 # Only expand once:
12274
12275
12276 LIBTOOL="$LIBTOOL --silent"
12277
12278 # Checks for libraries.
12279
12280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
12281 $as_echo_n "checking for library containing socket... " >&6; }
12282 if test "${ac_cv_search_socket+set}" = set; then :
12283 $as_echo_n "(cached) " >&6
12284 else
12285 ac_func_search_save_LIBS=$LIBS
12286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12287 /* end confdefs.h. */
12288
12289 /* Override any GCC internal prototype to avoid an error.
12290 Use char because int might match the return type of a GCC
12291 builtin and then its argument prototype would still apply. */
12292 #ifdef __cplusplus
12293 extern "C"
12294 #endif
12295 char socket ();
12296 int
12297 main ()
12298 {
12299 return socket ();
12300 ;
12301 return 0;
12302 }
12303 _ACEOF
12304 for ac_lib in '' socket; do
12305 if test -z "$ac_lib"; then
12306 ac_res="none required"
12307 else
12308 ac_res=-l$ac_lib
12309 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12310 fi
12311 if ac_fn_c_try_link "$LINENO"; then :
12312 ac_cv_search_socket=$ac_res
12313 fi
12314 rm -f core conftest.err conftest.$ac_objext \
12315 conftest$ac_exeext
12316 if test "${ac_cv_search_socket+set}" = set; then :
12317 break
12318 fi
12319 done
12320 if test "${ac_cv_search_socket+set}" = set; then :
12321
12322 else
12323 ac_cv_search_socket=no
12324 fi
12325 rm conftest.$ac_ext
12326 LIBS=$ac_func_search_save_LIBS
12327 fi
12328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
12329 $as_echo "$ac_cv_search_socket" >&6; }
12330 ac_res=$ac_cv_search_socket
12331 if test "$ac_res" != no; then :
12332 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12333
12334 else
12335 as_fn_error "socket library not found" "$LINENO" 5
12336 fi
12337
12338 for ac_func in inet_aton inet_ntop inet_pton
12339 do :
12340 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12341 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12342 eval as_val=\$$as_ac_var
12343 if test "x$as_val" = x""yes; then :
12344 cat >>confdefs.h <<_ACEOF
12345 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12346 _ACEOF
12347
12348 fi
12349 done
12350
12351 ac_fn_c_check_type "$LINENO" "struct sockaddr_in" "ac_cv_type_struct_sockaddr_in" "#include <sys/types.h>
12352 #include <sys/socket.h>
12353 #include <netdb.h>
12354
12355 "
12356 if test "x$ac_cv_type_struct_sockaddr_in" = x""yes; then :
12357
12358 cat >>confdefs.h <<_ACEOF
12359 #define HAVE_STRUCT_SOCKADDR_IN 1
12360 _ACEOF
12361
12362
12363 fi
12364 ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "#include <sys/types.h>
12365 #include <sys/socket.h>
12366 #include <netdb.h>
12367
12368 "
12369 if test "x$ac_cv_type_struct_sockaddr_storage" = x""yes; then :
12370
12371 cat >>confdefs.h <<_ACEOF
12372 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
12373 _ACEOF
12374
12375
12376 fi
12377 ac_fn_c_check_type "$LINENO" "struct addrinfo" "ac_cv_type_struct_addrinfo" "#include <sys/types.h>
12378 #include <sys/socket.h>
12379 #include <netdb.h>
12380
12381 "
12382 if test "x$ac_cv_type_struct_addrinfo" = x""yes; then :
12383
12384 cat >>confdefs.h <<_ACEOF
12385 #define HAVE_STRUCT_ADDRINFO 1
12386 _ACEOF
12387
12388
12389 fi
12390
12391 ac_fn_c_check_member "$LINENO" "struct sockaddr_in" "sin_len" "ac_cv_member_struct_sockaddr_in_sin_len" "#include <sys/types.h>
12392 <sys/socket.h>
12393 "
12394 if test "x$ac_cv_member_struct_sockaddr_in_sin_len" = x""yes; then :
12395
12396 cat >>confdefs.h <<_ACEOF
12397 #define HAVE_STRUCT_SOCKADDR_IN_SIN_LEN 1
12398 _ACEOF
12399
12400
12401 fi
12402
12403
12404
12405 ac_fn_c_check_type "$LINENO" "struct sockaddr_in6" "ac_cv_type_struct_sockaddr_in6" "$ac_includes_default"
12406 if test "x$ac_cv_type_struct_sockaddr_in6" = x""yes; then :
12407
12408 cat >>confdefs.h <<_ACEOF
12409 #define HAVE_STRUCT_SOCKADDR_IN6 1
12410 _ACEOF
12411
12412
12413 else
12414
12415 $as_echo "#define IPV6 1" >>confdefs.h
12416
12417 fi
12418
12419
12420
12421 # Checks for typedefs, structures, and compiler characteristics.
12422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
12423 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
12424 if test "${ac_cv_c_bigendian+set}" = set; then :
12425 $as_echo_n "(cached) " >&6
12426 else
12427 ac_cv_c_bigendian=unknown
12428 # See if we're dealing with a universal compiler.
12429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12430 /* end confdefs.h. */
12431 #ifndef __APPLE_CC__
12432 not a universal capable compiler
12433 #endif
12434 typedef int dummy;
12435
12436 _ACEOF
12437 if ac_fn_c_try_compile "$LINENO"; then :
12438
12439 # Check for potential -arch flags. It is not universal unless
12440 # there are at least two -arch flags with different values.
12441 ac_arch=
12442 ac_prev=
12443 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
12444 if test -n "$ac_prev"; then
12445 case $ac_word in
12446 i?86 | x86_64 | ppc | ppc64)
12447 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
12448 ac_arch=$ac_word
12449 else
12450 ac_cv_c_bigendian=universal
12451 break
12452 fi
12453 ;;
12454 esac
12455 ac_prev=
12456 elif test "x$ac_word" = "x-arch"; then
12457 ac_prev=arch
12458 fi
12459 done
12460 fi
12461 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12462 if test $ac_cv_c_bigendian = unknown; then
12463 # See if sys/param.h defines the BYTE_ORDER macro.
12464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12465 /* end confdefs.h. */
12466 #include <sys/types.h>
12467 #include <sys/param.h>
12468
12469 int
12470 main ()
12471 {
12472 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
12473 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
12474 && LITTLE_ENDIAN)
12475 bogus endian macros
12476 #endif
12477
12478 ;
12479 return 0;
12480 }
12481 _ACEOF
12482 if ac_fn_c_try_compile "$LINENO"; then :
12483 # It does; now see whether it defined to BIG_ENDIAN or not.
12484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12485 /* end confdefs.h. */
12486 #include <sys/types.h>
12487 #include <sys/param.h>
12488
12489 int
12490 main ()
12491 {
12492 #if BYTE_ORDER != BIG_ENDIAN
12493 not big endian
12494 #endif
12495
12496 ;
12497 return 0;
12498 }
12499 _ACEOF
12500 if ac_fn_c_try_compile "$LINENO"; then :
12501 ac_cv_c_bigendian=yes
12502 else
12503 ac_cv_c_bigendian=no
12504 fi
12505 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12506 fi
12507 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12508 fi
12509 if test $ac_cv_c_bigendian = unknown; then
12510 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
12511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12512 /* end confdefs.h. */
12513 #include <limits.h>
12514
12515 int
12516 main ()
12517 {
12518 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
12519 bogus endian macros
12520 #endif
12521
12522 ;
12523 return 0;
12524 }
12525 _ACEOF
12526 if ac_fn_c_try_compile "$LINENO"; then :
12527 # It does; now see whether it defined to _BIG_ENDIAN or not.
12528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12529 /* end confdefs.h. */
12530 #include <limits.h>
12531
12532 int
12533 main ()
12534 {
12535 #ifndef _BIG_ENDIAN
12536 not big endian
12537 #endif
12538
12539 ;
12540 return 0;
12541 }
12542 _ACEOF
12543 if ac_fn_c_try_compile "$LINENO"; then :
12544 ac_cv_c_bigendian=yes
12545 else
12546 ac_cv_c_bigendian=no
12547 fi
12548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12549 fi
12550 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12551 fi
12552 if test $ac_cv_c_bigendian = unknown; then
12553 # Compile a test program.
12554 if test "$cross_compiling" = yes; then :
12555 # Try to guess by grepping values from an object file.
12556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12557 /* end confdefs.h. */
12558 short int ascii_mm[] =
12559 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
12560 short int ascii_ii[] =
12561 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
12562 int use_ascii (int i) {
12563 return ascii_mm[i] + ascii_ii[i];
12564 }
12565 short int ebcdic_ii[] =
12566 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
12567 short int ebcdic_mm[] =
12568 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
12569 int use_ebcdic (int i) {
12570 return ebcdic_mm[i] + ebcdic_ii[i];
12571 }
12572 extern int foo;
12573
12574 int
12575 main ()
12576 {
12577 return use_ascii (foo) == use_ebcdic (foo);
12578 ;
12579 return 0;
12580 }
12581 _ACEOF
12582 if ac_fn_c_try_compile "$LINENO"; then :
12583 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
12584 ac_cv_c_bigendian=yes
12585 fi
12586 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
12587 if test "$ac_cv_c_bigendian" = unknown; then
12588 ac_cv_c_bigendian=no
12589 else
12590 # finding both strings is unlikely to happen, but who knows?
12591 ac_cv_c_bigendian=unknown
12592 fi
12593 fi
12594 fi
12595 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12596 else
12597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12598 /* end confdefs.h. */
12599 $ac_includes_default
12600 int
12601 main ()
12602 {
12603
12604 /* Are we little or big endian? From Harbison&Steele. */
12605 union
12606 {
12607 long int l;
12608 char c[sizeof (long int)];
12609 } u;
12610 u.l = 1;
12611 return u.c[sizeof (long int) - 1] == 1;
12612
12613 ;
12614 return 0;
12615 }
12616 _ACEOF
12617 if ac_fn_c_try_run "$LINENO"; then :
12618 ac_cv_c_bigendian=no
12619 else
12620 ac_cv_c_bigendian=yes
12621 fi
12622 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12623 conftest.$ac_objext conftest.beam conftest.$ac_ext
12624 fi
12625
12626 fi
12627 fi
12628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
12629 $as_echo "$ac_cv_c_bigendian" >&6; }
12630 case $ac_cv_c_bigendian in #(
12631 yes)
12632 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
12633 ;; #(
12634 no)
12635 ;; #(
12636 universal)
12637
12638 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
12639
12640 ;; #(
12641 *)
12642 as_fn_error "unknown endianness
12643 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
12644 esac
12645
12646
12647 # Checks for library functions.
12648
12649
12650
12651 for ac_func in $ac_func_list
12652 do :
12653 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12654 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12655 eval as_val=\$$as_ac_var
12656 if test "x$as_val" = x""yes; then :
12657 cat >>confdefs.h <<_ACEOF
12658 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12659 _ACEOF
12660
12661 fi
12662 done
12663
12664
12665
12666
12667
12668
12669
12670
12671
12672
12673
12674
12675
12676 # Checks for header files.
12677
12678
12679
12680 for ac_header in $ac_header_list
12681 do :
12682 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12683 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
12684 "
12685 eval as_val=\$$as_ac_Header
12686 if test "x$as_val" = x""yes; then :
12687 cat >>confdefs.h <<_ACEOF
12688 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12689 _ACEOF
12690
12691 fi
12692
12693 done
12694
12695
12696
12697
12698
12699
12700
12701
12702
12703
12704
12705
12706
12707
12708
12709
12710
12711
12712
12713
12714
12715
12716
12717
12718
12719
12720
12721 # check for /dev/null so we can use it to hold evil fd's
12722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/null" >&5
12723 $as_echo_n "checking for /dev/null... " >&6; }
12724 if test -c /dev/null; then :
12725
12726
12727 $as_echo "#define PATH_DEVNULL \"/dev/null\"" >>confdefs.h
12728
12729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12730 $as_echo "yes" >&6; }
12731 else
12732
12733
12734 $as_echo "#define PATH_DEVNULL \"devnull.log\"" >>confdefs.h
12735
12736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - using devnull.log" >&5
12737 $as_echo "no - using devnull.log" >&6; }
12738 fi
12739
12740
12741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crypt" >&5
12742 $as_echo_n "checking for library containing crypt... " >&6; }
12743 if test "${ac_cv_search_crypt+set}" = set; then :
12744 $as_echo_n "(cached) " >&6
12745 else
12746 ac_func_search_save_LIBS=$LIBS
12747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12748 /* end confdefs.h. */
12749
12750 /* Override any GCC internal prototype to avoid an error.
12751 Use char because int might match the return type of a GCC
12752 builtin and then its argument prototype would still apply. */
12753 #ifdef __cplusplus
12754 extern "C"
12755 #endif
12756 char crypt ();
12757 int
12758 main ()
12759 {
12760 return crypt ();
12761 ;
12762 return 0;
12763 }
12764 _ACEOF
12765 for ac_lib in '' crypt; do
12766 if test -z "$ac_lib"; then
12767 ac_res="none required"
12768 else
12769 ac_res=-l$ac_lib
12770 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12771 fi
12772 if ac_fn_c_try_link "$LINENO"; then :
12773 ac_cv_search_crypt=$ac_res
12774 fi
12775 rm -f core conftest.err conftest.$ac_objext \
12776 conftest$ac_exeext
12777 if test "${ac_cv_search_crypt+set}" = set; then :
12778 break
12779 fi
12780 done
12781 if test "${ac_cv_search_crypt+set}" = set; then :
12782
12783 else
12784 ac_cv_search_crypt=no
12785 fi
12786 rm conftest.$ac_ext
12787 LIBS=$ac_func_search_save_LIBS
12788 fi
12789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypt" >&5
12790 $as_echo "$ac_cv_search_crypt" >&6; }
12791 ac_res=$ac_cv_search_crypt
12792 if test "$ac_res" != no; then :
12793 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12794
12795 fi
12796
12797
12798
12799
12800 # Check whether --with-zlib-path was given.
12801 if test "${with_zlib_path+set}" = set; then :
12802 withval=$with_zlib_path; LDFLAGS="-L$withval $LDFLAGS"
12803 fi
12804
12805
12806 # Check whether --enable-zlib was given.
12807 if test "${enable_zlib+set}" = set; then :
12808 enableval=$enable_zlib; zlib=$enableval
12809 else
12810 zlib=yes
12811 fi
12812
12813
12814 if test "$zlib" = "yes"; then :
12815
12816 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
12817 if test "x$ac_cv_header_zlib_h" = x""yes; then :
12818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zlibVersion in -lz" >&5
12819 $as_echo_n "checking for zlibVersion in -lz... " >&6; }
12820 if test "${ac_cv_lib_z_zlibVersion+set}" = set; then :
12821 $as_echo_n "(cached) " >&6
12822 else
12823 ac_check_lib_save_LIBS=$LIBS
12824 LIBS="-lz $LIBS"
12825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12826 /* end confdefs.h. */
12827
12828 /* Override any GCC internal prototype to avoid an error.
12829 Use char because int might match the return type of a GCC
12830 builtin and then its argument prototype would still apply. */
12831 #ifdef __cplusplus
12832 extern "C"
12833 #endif
12834 char zlibVersion ();
12835 int
12836 main ()
12837 {
12838 return zlibVersion ();
12839 ;
12840 return 0;
12841 }
12842 _ACEOF
12843 if ac_fn_c_try_link "$LINENO"; then :
12844 ac_cv_lib_z_zlibVersion=yes
12845 else
12846 ac_cv_lib_z_zlibVersion=no
12847 fi
12848 rm -f core conftest.err conftest.$ac_objext \
12849 conftest$ac_exeext conftest.$ac_ext
12850 LIBS=$ac_check_lib_save_LIBS
12851 fi
12852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_zlibVersion" >&5
12853 $as_echo "$ac_cv_lib_z_zlibVersion" >&6; }
12854 if test "x$ac_cv_lib_z_zlibVersion" = x""yes; then :
12855
12856 LIBS="-lz $LIBS"
12857
12858 $as_echo "#define HAVE_LIBZ 1" >>confdefs.h
12859
12860
12861 else
12862 zlib=no
12863 fi
12864
12865
12866 else
12867 zlib=no
12868 fi
12869
12870
12871
12872 fi
12873
12874
12875 # Check whether --with-libpcre-path was given.
12876 if test "${with_libpcre_path+set}" = set; then :
12877 withval=$with_libpcre_path; LDFLAGS="-L$withval $LDFLAGS"
12878 fi
12879
12880
12881 # Check whether --enable-libpcre was given.
12882 if test "${enable_libpcre+set}" = set; then :
12883 enableval=$enable_libpcre; libpcre=$enableval
12884 else
12885 libpcre=yes
12886 fi
12887
12888
12889 if test "$libpcre" = "yes"; then :
12890
12891 ac_fn_c_check_header_mongrel "$LINENO" "pcre.h" "ac_cv_header_pcre_h" "$ac_includes_default"
12892 if test "x$ac_cv_header_pcre_h" = x""yes; then :
12893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcre_study in -lpcre" >&5
12894 $as_echo_n "checking for pcre_study in -lpcre... " >&6; }
12895 if test "${ac_cv_lib_pcre_pcre_study+set}" = set; then :
12896 $as_echo_n "(cached) " >&6
12897 else
12898 ac_check_lib_save_LIBS=$LIBS
12899 LIBS="-lpcre $LIBS"
12900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12901 /* end confdefs.h. */
12902
12903 /* Override any GCC internal prototype to avoid an error.
12904 Use char because int might match the return type of a GCC
12905 builtin and then its argument prototype would still apply. */
12906 #ifdef __cplusplus
12907 extern "C"
12908 #endif
12909 char pcre_study ();
12910 int
12911 main ()
12912 {
12913 return pcre_study ();
12914 ;
12915 return 0;
12916 }
12917 _ACEOF
12918 if ac_fn_c_try_link "$LINENO"; then :
12919 ac_cv_lib_pcre_pcre_study=yes
12920 else
12921 ac_cv_lib_pcre_pcre_study=no
12922 fi
12923 rm -f core conftest.err conftest.$ac_objext \
12924 conftest$ac_exeext conftest.$ac_ext
12925 LIBS=$ac_check_lib_save_LIBS
12926 fi
12927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pcre_pcre_study" >&5
12928 $as_echo "$ac_cv_lib_pcre_pcre_study" >&6; }
12929 if test "x$ac_cv_lib_pcre_pcre_study" = x""yes; then :
12930
12931 LIBS="-lpcre $LIBS"
12932
12933 $as_echo "#define HAVE_LIBPCRE 1" >>confdefs.h
12934
12935
12936 else
12937 libpcre=no
12938 fi
12939
12940
12941 else
12942 libpcre=no
12943 fi
12944
12945
12946
12947 fi
12948 if test "$libpcre" = yes; then
12949 ENABLE_PCRE_TRUE=
12950 ENABLE_PCRE_FALSE='#'
12951 else
12952 ENABLE_PCRE_TRUE='#'
12953 ENABLE_PCRE_FALSE=
12954 fi
12955
12956
12957
12958 # Check whether --enable-openssl was given.
12959 if test "${enable_openssl+set}" = set; then :
12960 enableval=$enable_openssl; cf_enable_openssl=$enableval
12961 else
12962 cf_enable_openssl="auto"
12963 fi
12964
12965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL" >&5
12966 $as_echo_n "checking for OpenSSL... " >&6; }
12967 if test "$cf_enable_openssl" != "no"; then
12968 cf_openssl_basedir=""
12969 if test "$cf_enable_openssl" != "auto" &&
12970 test "$cf_enable_openssl" != "yes"; then
12971 cf_openssl_basedir="${cf_enable_openssl}"
12972 else
12973 for dirs in /usr/local/ssl /usr/pkg /usr/local /usr/lib /usr/lib/ssl\
12974 /opt /opt/openssl /usr/local/openssl; do
12975 if test -f "${dirs}/include/openssl/opensslv.h"; then
12976 cf_openssl_basedir="${dirs}"
12977 break
12978 fi
12979 done
12980 unset dirs
12981 fi
12982
12983 if test ! -z "$cf_openssl_basedir"; then
12984 if test -f "${cf_openssl_basedir}/include/openssl/opensslv.h"; then
12985 CPPFLAGS="-I${cf_openssl_basedir}/include $CPPFLAGS"
12986 LDFLAGS="-L${cf_openssl_basedir}/lib $LDFLAGS"
12987 else
12988 cf_openssl_basedir=""
12989 fi
12990 else
12991 if test -f "/usr/include/openssl/opensslv.h"; then
12992 cf_openssl_basedir="/usr"
12993 fi
12994 fi
12995
12996 if test ! -z "$cf_openssl_basedir"; then
12997 LIBS="-lcrypto -lssl $LIBS"
12998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cf_openssl_basedir" >&5
12999 $as_echo "$cf_openssl_basedir" >&6; }
13000 cf_enable_openssl="yes"
13001
13002 $as_echo "#define HAVE_LIBCRYPTO 1" >>confdefs.h
13003
13004 else
13005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found. Please check your path." >&5
13006 $as_echo "not found. Please check your path." >&6; }
13007 cf_enable_openssl="no"
13008 fi
13009 unset cf_openssl_basedir
13010 else
13011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
13012 $as_echo "disabled" >&6; }
13013 fi
13014
13015 if test "$cf_enable_openssl" != "no"; then :
13016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL 0.9.7 or above" >&5
13017 $as_echo_n "checking for OpenSSL 0.9.7 or above... " >&6; }
13018 if test "$cross_compiling" = yes; then :
13019 cf_openssl_version_ok=no
13020 else
13021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13022 /* end confdefs.h. */
13023
13024 #include <openssl/opensslv.h>
13025 #include <stdlib.h>
13026 int
13027 main ()
13028 {
13029 exit(!(OPENSSL_VERSION_NUMBER >= 0x00907000));
13030 ;
13031 return 0;
13032 }
13033 _ACEOF
13034 if ac_fn_c_try_run "$LINENO"; then :
13035 cf_openssl_version_ok=yes
13036 else
13037 cf_openssl_version_ok=no
13038 fi
13039 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13040 conftest.$ac_objext conftest.beam conftest.$ac_ext
13041 fi
13042
13043
13044 if test "$cf_openssl_version_ok" = "yes"; then :
13045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
13046 $as_echo "found" >&6; }
13047
13048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSA_free in -lcrypto" >&5
13049 $as_echo_n "checking for RSA_free in -lcrypto... " >&6; }
13050 if test "${ac_cv_lib_crypto_RSA_free+set}" = set; then :
13051 $as_echo_n "(cached) " >&6
13052 else
13053 ac_check_lib_save_LIBS=$LIBS
13054 LIBS="-lcrypto $LIBS"
13055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13056 /* end confdefs.h. */
13057
13058 /* Override any GCC internal prototype to avoid an error.
13059 Use char because int might match the return type of a GCC
13060 builtin and then its argument prototype would still apply. */
13061 #ifdef __cplusplus
13062 extern "C"
13063 #endif
13064 char RSA_free ();
13065 int
13066 main ()
13067 {
13068 return RSA_free ();
13069 ;
13070 return 0;
13071 }
13072 _ACEOF
13073 if ac_fn_c_try_link "$LINENO"; then :
13074 ac_cv_lib_crypto_RSA_free=yes
13075 else
13076 ac_cv_lib_crypto_RSA_free=no
13077 fi
13078 rm -f core conftest.err conftest.$ac_objext \
13079 conftest$ac_exeext conftest.$ac_ext
13080 LIBS=$ac_check_lib_save_LIBS
13081 fi
13082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_RSA_free" >&5
13083 $as_echo "$ac_cv_lib_crypto_RSA_free" >&6; }
13084 if test "x$ac_cv_lib_crypto_RSA_free" = x""yes; then :
13085 cat >>confdefs.h <<_ACEOF
13086 #define HAVE_LIBCRYPTO 1
13087 _ACEOF
13088
13089 LIBS="-lcrypto $LIBS"
13090
13091 fi
13092
13093 if test "$ac_cv_lib_crypto_RSA_free" = "yes"; then :
13094 for ac_func in EVP_bf_cfb \
13095 EVP_cast5_cfb \
13096 EVP_idea_cfb \
13097 EVP_rc5_32_12_16_cfb \
13098 EVP_des_ede3_cfb \
13099 EVP_des_cfb
13100 do :
13101 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13102 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13103 eval as_val=\$$as_ac_var
13104 if test "x$as_val" = x""yes; then :
13105 cat >>confdefs.h <<_ACEOF
13106 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13107 _ACEOF
13108
13109 fi
13110 done
13111
13112 fi
13113
13114 else
13115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - OpenSSL support disabled" >&5
13116 $as_echo "no - OpenSSL support disabled" >&6; }
13117 cf_enable_openssl="no"
13118 fi
13119 fi
13120
13121 if test "$cf_enable_openssl" = yes; then
13122 ENABLE_SSL_TRUE=
13123 ENABLE_SSL_FALSE='#'
13124 else
13125 ENABLE_SSL_TRUE='#'
13126 ENABLE_SSL_FALSE=
13127 fi
13128
13129
13130
13131 # Check whether --enable-assert was given.
13132 if test "${enable_assert+set}" = set; then :
13133 enableval=$enable_assert; assert=$enableval
13134 else
13135 assert=no
13136 fi
13137
13138
13139 if test "$assert" = "no"; then :
13140
13141 $as_echo "#define NDEBUG 1" >>confdefs.h
13142
13143 fi
13144
13145
13146 # Check whether --enable-small-net was given.
13147 if test "${enable_small_net+set}" = set; then :
13148 enableval=$enable_small_net; small_net=$enableval
13149 else
13150 small_net=no
13151 fi
13152
13153
13154 if test "$small_net" = "yes"; then :
13155
13156
13157 $as_echo "#define NICKNAMEHISTORYLENGTH 1500" >>confdefs.h
13158
13159
13160 $as_echo "#define CHANNEL_HEAP_SIZE 256" >>confdefs.h
13161
13162
13163 $as_echo "#define BAN_HEAP_SIZE 128" >>confdefs.h
13164
13165
13166 $as_echo "#define CLIENT_HEAP_SIZE 256" >>confdefs.h
13167
13168
13169 $as_echo "#define LCLIENT_HEAP_SIZE 128" >>confdefs.h
13170
13171
13172 $as_echo "#define DNODE_HEAP_SIZE 256" >>confdefs.h
13173
13174
13175 $as_echo "#define TOPIC_HEAP_SIZE 256" >>confdefs.h
13176
13177
13178 $as_echo "#define DBUF_HEAP_SIZE 64" >>confdefs.h
13179
13180
13181 $as_echo "#define AUTH_HEAP_SIZE 128" >>confdefs.h
13182
13183
13184 $as_echo "#define DNS_HEAP_SIZE 128" >>confdefs.h
13185
13186 else
13187
13188
13189
13190 $as_echo "#define NICKNAMEHISTORYLENGTH 15000" >>confdefs.h
13191
13192
13193 $as_echo "#define CHANNEL_HEAP_SIZE 1024" >>confdefs.h
13194
13195
13196 $as_echo "#define BAN_HEAP_SIZE 1024" >>confdefs.h
13197
13198
13199 $as_echo "#define CLIENT_HEAP_SIZE 1024" >>confdefs.h
13200
13201
13202 $as_echo "#define LCLIENT_HEAP_SIZE 512" >>confdefs.h
13203
13204
13205 $as_echo "#define DNODE_HEAP_SIZE 1024" >>confdefs.h
13206
13207
13208 $as_echo "#define TOPIC_HEAP_SIZE 1024" >>confdefs.h
13209
13210
13211 $as_echo "#define DBUF_HEAP_SIZE 512" >>confdefs.h
13212
13213
13214 $as_echo "#define AUTH_HEAP_SIZE 512" >>confdefs.h
13215
13216
13217 $as_echo "#define DNS_HEAP_SIZE 512" >>confdefs.h
13218
13219 fi
13220
13221
13222 # Argument processing.
13223
13224 desired_iopoll_mechanism="none"
13225 # Check whether --enable-kqueue was given.
13226 if test "${enable_kqueue+set}" = set; then :
13227 enableval=$enable_kqueue; desired_iopoll_mechanism="kqueue"
13228 fi
13229
13230 # Check whether --enable-epoll was given.
13231 if test "${enable_epoll+set}" = set; then :
13232 enableval=$enable_epoll; desired_iopoll_mechanism="epoll"
13233 fi
13234
13235 # Check whether --enable-devpoll was given.
13236 if test "${enable_devpoll+set}" = set; then :
13237 enableval=$enable_devpoll; desired_iopoll_mechanism="devpoll"
13238 fi
13239
13240 # Check whether --enable-rtsigio was given.
13241 if test "${enable_rtsigio+set}" = set; then :
13242 enableval=$enable_rtsigio; desired_iopoll_mechanism="rtsigio"
13243 fi
13244
13245 # Check whether --enable-poll was given.
13246 if test "${enable_poll+set}" = set; then :
13247 enableval=$enable_poll; desired_iopoll_mechanism="poll"
13248 fi
13249
13250 # Check whether --enable-select was given.
13251 if test "${enable_select+set}" = set; then :
13252 enableval=$enable_select; desired_iopoll_mechanism="select"
13253 fi
13254
13255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for optimal/desired iopoll mechanism" >&5
13256 $as_echo_n "checking for optimal/desired iopoll mechanism... " >&6; }
13257 iopoll_mechanism_none=0
13258
13259 cat >>confdefs.h <<_ACEOF
13260 #define __IOPOLL_MECHANISM_NONE $iopoll_mechanism_none
13261 _ACEOF
13262
13263 iopoll_mechanism_kqueue=1
13264
13265 cat >>confdefs.h <<_ACEOF
13266 #define __IOPOLL_MECHANISM_KQUEUE $iopoll_mechanism_kqueue
13267 _ACEOF
13268
13269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13270 /* end confdefs.h. */
13271 /* Define kevent to an innocuous variant, in case <limits.h> declares kevent.
13272 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13273 #define kevent innocuous_kevent
13274
13275 /* System header to define __stub macros and hopefully few prototypes,
13276 which can conflict with char kevent (); below.
13277 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13278 <limits.h> exists even on freestanding compilers. */
13279
13280 #ifdef __STDC__
13281 # include <limits.h>
13282 #else
13283 # include <assert.h>
13284 #endif
13285
13286 #undef kevent
13287
13288 /* Override any GCC internal prototype to avoid an error.
13289 Use char because int might match the return type of a GCC
13290 builtin and then its argument prototype would still apply. */
13291 #ifdef __cplusplus
13292 extern "C"
13293 #endif
13294 char kevent ();
13295 /* The GNU C library defines this for functions which it implements
13296 to always fail with ENOSYS. Some functions are actually named
13297 something starting with __ and the normal name is an alias. */
13298 #if defined __stub_kevent || defined __stub___kevent
13299 choke me
13300 #endif
13301
13302 int
13303 main ()
13304 {
13305 return kevent ();
13306 ;
13307 return 0;
13308 }
13309 _ACEOF
13310 if ac_fn_c_try_link "$LINENO"; then :
13311 is_kqueue_mechanism_available="yes"
13312 else
13313 is_kqueue_mechanism_available="no"
13314 fi
13315 rm -f core conftest.err conftest.$ac_objext \
13316 conftest$ac_exeext conftest.$ac_ext
13317 iopoll_mechanism_epoll=2
13318
13319 cat >>confdefs.h <<_ACEOF
13320 #define __IOPOLL_MECHANISM_EPOLL $iopoll_mechanism_epoll
13321 _ACEOF
13322
13323 if test "$cross_compiling" = yes; then :
13324 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13325 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13326 as_fn_error "cannot run test program while cross compiling
13327 See \`config.log' for more details." "$LINENO" 5; }
13328 else
13329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13330 /* end confdefs.h. */
13331
13332 #include <sys/epoll.h>
13333 #include <sys/syscall.h>
13334 #if defined(__stub_epoll_create) || defined(__stub___epoll_create) || defined(EPOLL_NEED_BODY)
13335 #if !defined(__NR_epoll_create)
13336 #if defined(__ia64__)
13337 #define __NR_epoll_create 1243
13338 #elif defined(__x86_64__)
13339 #define __NR_epoll_create 214
13340 #elif defined(__sparc64__) || defined(__sparc__)
13341 #define __NR_epoll_create 193
13342 #elif defined(__s390__) || defined(__m68k__)
13343 #define __NR_epoll_create 249
13344 #elif defined(__ppc64__) || defined(__ppc__)
13345 #define __NR_epoll_create 236
13346 #elif defined(__parisc__) || defined(__arm26__) || defined(__arm__)
13347 #define __NR_epoll_create 224
13348 #elif defined(__alpha__)
13349 #define __NR_epoll_create 407
13350 #elif defined(__sh64__)
13351 #define __NR_epoll_create 282
13352 #elif defined(__i386__) || defined(__sh__) || defined(__m32r__) || defined(__h8300__) || defined(__frv__)
13353 #define __NR_epoll_create 254
13354 #else
13355 #error No system call numbers defined for epoll family.
13356 #endif
13357 #endif
13358 _syscall1(int, epoll_create, int, size)
13359 #endif
13360 main() { return epoll_create(256) == -1 ? 1 : 0; }
13361
13362 _ACEOF
13363 if ac_fn_c_try_run "$LINENO"; then :
13364 is_epoll_mechanism_available="yes"
13365 else
13366 is_epoll_mechanism_available="no"
13367 fi
13368 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13369 conftest.$ac_objext conftest.beam conftest.$ac_ext
13370 fi
13371
13372 iopoll_mechanism_devpoll=3
13373
13374 cat >>confdefs.h <<_ACEOF
13375 #define __IOPOLL_MECHANISM_DEVPOLL $iopoll_mechanism_devpoll
13376 _ACEOF
13377
13378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13379 /* end confdefs.h. */
13380 #include <devpoll.h>
13381 int
13382 main ()
13383 {
13384
13385 ;
13386 return 0;
13387 }
13388 _ACEOF
13389 if ac_fn_c_try_compile "$LINENO"; then :
13390 is_devpoll_mechanism_available="yes"
13391 else
13392 is_devpoll_mechanism_available="no"
13393 fi
13394 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13395 if test "$is_devpoll_mechanism_available" = "yes" ; then
13396
13397 $as_echo "#define HAVE_DEVPOLL_H 1" >>confdefs.h
13398
13399 fi
13400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13401 /* end confdefs.h. */
13402 #include <sys/devpoll.h>
13403 int
13404 main ()
13405 {
13406
13407 ;
13408 return 0;
13409 }
13410 _ACEOF
13411 if ac_fn_c_try_compile "$LINENO"; then :
13412 is_devpoll_mechanism_available="yes"
13413 else
13414 is_devpoll_mechanism_available="no"
13415 fi
13416 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13417 if test "$is_devpoll_mechanism_available" = "yes" ; then
13418
13419 $as_echo "#define HAVE_SYS_DEVPOLL_H 1" >>confdefs.h
13420
13421 fi
13422 iopoll_mechanism_rtsigio=4
13423
13424 cat >>confdefs.h <<_ACEOF
13425 #define __IOPOLL_MECHANISM_RTSIGIO $iopoll_mechanism_rtsigio
13426 _ACEOF
13427
13428 if test "$cross_compiling" = yes; then :
13429 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13430 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13431 as_fn_error "cannot run test program while cross compiling
13432 See \`config.log' for more details." "$LINENO" 5; }
13433 else
13434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13435 /* end confdefs.h. */
13436
13437 #include <fcntl.h>
13438 #ifdef F_SETSIG
13439 main () { return 0; } /* F_SETSIG defined */
13440 #else
13441 main () { return 1; } /* F_SETSIG not defined */
13442 #endif
13443
13444 int
13445 main ()
13446 {
13447
13448 ;
13449 return 0;
13450 }
13451 _ACEOF
13452 if ac_fn_c_try_run "$LINENO"; then :
13453 is_rtsigio_mechanism_available="yes"
13454 else
13455 is_rtsigio_mechanism_available="no"
13456 fi
13457 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13458 conftest.$ac_objext conftest.beam conftest.$ac_ext
13459 fi
13460
13461 iopoll_mechanism_poll=5
13462
13463 cat >>confdefs.h <<_ACEOF
13464 #define __IOPOLL_MECHANISM_POLL $iopoll_mechanism_poll
13465 _ACEOF
13466
13467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13468 /* end confdefs.h. */
13469 /* Define poll to an innocuous variant, in case <limits.h> declares poll.
13470 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13471 #define poll innocuous_poll
13472
13473 /* System header to define __stub macros and hopefully few prototypes,
13474 which can conflict with char poll (); below.
13475 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13476 <limits.h> exists even on freestanding compilers. */
13477
13478 #ifdef __STDC__
13479 # include <limits.h>
13480 #else
13481 # include <assert.h>
13482 #endif
13483
13484 #undef poll
13485
13486 /* Override any GCC internal prototype to avoid an error.
13487 Use char because int might match the return type of a GCC
13488 builtin and then its argument prototype would still apply. */
13489 #ifdef __cplusplus
13490 extern "C"
13491 #endif
13492 char poll ();
13493 /* The GNU C library defines this for functions which it implements
13494 to always fail with ENOSYS. Some functions are actually named
13495 something starting with __ and the normal name is an alias. */
13496 #if defined __stub_poll || defined __stub___poll
13497 choke me
13498 #endif
13499
13500 int
13501 main ()
13502 {
13503 return poll ();
13504 ;
13505 return 0;
13506 }
13507 _ACEOF
13508 if ac_fn_c_try_link "$LINENO"; then :
13509 is_poll_mechanism_available="yes"
13510 else
13511 is_poll_mechanism_available="no"
13512 fi
13513 rm -f core conftest.err conftest.$ac_objext \
13514 conftest$ac_exeext conftest.$ac_ext
13515 iopoll_mechanism_select=6
13516
13517 cat >>confdefs.h <<_ACEOF
13518 #define __IOPOLL_MECHANISM_SELECT $iopoll_mechanism_select
13519 _ACEOF
13520
13521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13522 /* end confdefs.h. */
13523 /* Define select to an innocuous variant, in case <limits.h> declares select.
13524 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13525 #define select innocuous_select
13526
13527 /* System header to define __stub macros and hopefully few prototypes,
13528 which can conflict with char select (); below.
13529 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13530 <limits.h> exists even on freestanding compilers. */
13531
13532 #ifdef __STDC__
13533 # include <limits.h>
13534 #else
13535 # include <assert.h>
13536 #endif
13537
13538 #undef select
13539
13540 /* Override any GCC internal prototype to avoid an error.
13541 Use char because int might match the return type of a GCC
13542 builtin and then its argument prototype would still apply. */
13543 #ifdef __cplusplus
13544 extern "C"
13545 #endif
13546 char select ();
13547 /* The GNU C library defines this for functions which it implements
13548 to always fail with ENOSYS. Some functions are actually named
13549 something starting with __ and the normal name is an alias. */
13550 #if defined __stub_select || defined __stub___select
13551 choke me
13552 #endif
13553
13554 int
13555 main ()
13556 {
13557 return select ();
13558 ;
13559 return 0;
13560 }
13561 _ACEOF
13562 if ac_fn_c_try_link "$LINENO"; then :
13563 is_select_mechanism_available="yes"
13564 else
13565 is_select_mechanism_available="no"
13566 fi
13567 rm -f core conftest.err conftest.$ac_objext \
13568 conftest$ac_exeext conftest.$ac_ext
13569 optimal_iopoll_mechanism="none"
13570 for mechanism in "kqueue" "epoll" "devpoll" "rtsigio" "poll" "select" ; do # order is important
13571 eval "is_optimal_iopoll_mechanism_available=\$is_${mechanism}_mechanism_available"
13572 if test "$is_optimal_iopoll_mechanism_available" = "yes" ; then
13573 optimal_iopoll_mechanism="$mechanism"
13574 break
13575 fi
13576 done
13577 if test "$desired_iopoll_mechanism" = "none" ; then
13578 if test "$optimal_iopoll_mechanism" = "none" ; then
13579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
13580 $as_echo "none" >&6; }
13581 as_fn_error "no iopoll mechanism found!" "$LINENO" 5
13582 else
13583 selected_iopoll_mechanism=$optimal_iopoll_mechanism
13584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $selected_iopoll_mechanism" >&5
13585 $as_echo "$selected_iopoll_mechanism" >&6; }
13586 fi
13587 else
13588 eval "is_desired_iopoll_mechanism_available=\$is_${desired_iopoll_mechanism}_mechanism_available"
13589 if test "$is_desired_iopoll_mechanism_available" = "yes" ; then
13590 selected_iopoll_mechanism=$desired_iopoll_mechanism
13591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $selected_iopoll_mechanism" >&5
13592 $as_echo "$selected_iopoll_mechanism" >&6; }
13593 else
13594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
13595 $as_echo "none" >&6; }
13596 as_fn_error "desired iopoll mechanism, $desired_iopoll_mechanism, is not available" "$LINENO" 5
13597 fi
13598 fi
13599 eval "use_iopoll_mechanism=\$iopoll_mechanism_${selected_iopoll_mechanism}"
13600
13601 cat >>confdefs.h <<_ACEOF
13602 #define USE_IOPOLL_MECHANISM $use_iopoll_mechanism
13603 _ACEOF
13604
13605
13606
13607
13608 # Check whether --with-nicklen was given.
13609 if test "${with_nicklen+set}" = set; then :
13610 withval=$with_nicklen; nicklen="$withval"
13611 else
13612 nicklen="9"
13613 fi
13614
13615
13616 cat >>confdefs.h <<_ACEOF
13617 #define NICKLEN ($nicklen+1)
13618 _ACEOF
13619
13620
13621
13622
13623 # Check whether --with-topiclen was given.
13624 if test "${with_topiclen+set}" = set; then :
13625 withval=$with_topiclen; topiclen="$withval"
13626 else
13627 topiclen="160"
13628 fi
13629
13630
13631 cat >>confdefs.h <<_ACEOF
13632 #define TOPICLEN ($topiclen)
13633 _ACEOF
13634
13635
13636
13637
13638 # Check whether --with-syslog-facility was given.
13639 if test "${with_syslog_facility+set}" = set; then :
13640 withval=$with_syslog_facility; syslog_facility="$withval"
13641 else
13642 syslog_facility="LOG_LOCAL4"
13643 fi
13644
13645
13646 cat >>confdefs.h <<_ACEOF
13647 #define LOG_FACILITY $syslog_facility
13648 _ACEOF
13649
13650
13651
13652 # Check whether --enable-efnet was given.
13653 if test "${enable_efnet+set}" = set; then :
13654 enableval=$enable_efnet; efnet="$enableval"
13655 else
13656 efnet="no"
13657 fi
13658
13659 if test "$efnet" = "yes" ; then
13660 use_efnet="yes"
13661
13662 $as_echo "#define EFNET 1" >>confdefs.h
13663
13664
13665 $as_echo "#define TS5_ONLY 1" >>confdefs.h
13666
13667 else
13668 use_efnet="no"
13669 fi
13670 if test "$use_efnet" = "yes"; then
13671 EFNET_TRUE=
13672 EFNET_FALSE='#'
13673 else
13674 EFNET_TRUE='#'
13675 EFNET_FALSE=
13676 fi
13677
13678
13679
13680 # Check whether --enable-halfops was given.
13681 if test "${enable_halfops+set}" = set; then :
13682 enableval=$enable_halfops; halfops="$enableval"
13683 else
13684 halfops="no"
13685 fi
13686
13687 if test "$halfops" = "yes" ; then
13688
13689 $as_echo "#define HALFOPS 1" >>confdefs.h
13690
13691 fi
13692
13693
13694 # Check whether --enable-debugging was given.
13695 if test "${enable_debugging+set}" = set; then :
13696 enableval=$enable_debugging; debugging="$enableval"
13697 else
13698 debugging="no"
13699 fi
13700
13701 if test "$debugging" = "yes" ; then
13702
13703 $as_echo "#define DEBUG 1" >>confdefs.h
13704
13705 CFLAGS="-Wall -g -O0"
13706 else
13707
13708 $as_echo "#define NDEBUG 1" >>confdefs.h
13709
13710 fi
13711
13712
13713 # Check whether --enable-warnings was given.
13714 if test "${enable_warnings+set}" = set; then :
13715 enableval=$enable_warnings; warnings="$enableval"
13716 else
13717 warnings="no"
13718 fi
13719
13720 if test "$warnings" = "yes" ; then
13721 CFLAGS="-Wall -Wextra -Wno-unused -Wcast-qual -Wcast-align -Wbad-function-cast -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wredundant-decls -Wshadow -Wwrite-strings -Wundef"
13722 fi
13723
13724
13725 for ac_header in syslog.h sys/syslog.h
13726 do :
13727 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13728 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13729 eval as_val=\$$as_ac_Header
13730 if test "x$as_val" = x""yes; then :
13731 cat >>confdefs.h <<_ACEOF
13732 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13733 _ACEOF
13734
13735 fi
13736
13737 done
13738
13739 # Check whether --enable-syslog was given.
13740 if test "${enable_syslog+set}" = set; then :
13741 enableval=$enable_syslog; syslog="$enableval"
13742 else
13743 syslog="no"
13744 fi
13745
13746 if test "$enableval" != "no" ; then
13747 for option in $enableval ; do
13748 case "$option" in
13749 users)
13750 $as_echo "#define SYSLOG_USERS 1" >>confdefs.h
13751 ;;
13752 oper)
13753 $as_echo "#define SYSLOG_OPER 1" >>confdefs.h
13754 ;;
13755 yes) : ;;
13756 *) as_fn_error "invalid value for --enable-syslog: $option" "$LINENO" 5 ;;
13757 esac
13758 done
13759
13760 $as_echo "#define USE_SYSLOG 1" >>confdefs.h
13761
13762 fi
13763
13764
13765
13766 prefix_NONE=
13767 exec_prefix_NONE=
13768 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
13769 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
13770 eval ac_define_dir="\"$prefix\""
13771 eval ac_define_dir="\"$ac_define_dir\""
13772 PREFIX="$ac_define_dir"
13773
13774
13775 cat >>confdefs.h <<_ACEOF
13776 #define PREFIX "$ac_define_dir"
13777 _ACEOF
13778
13779 test "$prefix_NONE" && prefix=NONE
13780 test "$exec_prefix_NONE" && exec_prefix=NONE
13781
13782
13783 prefix_NONE=
13784 exec_prefix_NONE=
13785 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
13786 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
13787 eval ac_define_dir="\"$sysconfdir\""
13788 eval ac_define_dir="\"$ac_define_dir\""
13789 SYSCONFDIR="$ac_define_dir"
13790
13791
13792 cat >>confdefs.h <<_ACEOF
13793 #define SYSCONFDIR "$ac_define_dir"
13794 _ACEOF
13795
13796 test "$prefix_NONE" && prefix=NONE
13797 test "$exec_prefix_NONE" && exec_prefix=NONE
13798
13799
13800 prefix_NONE=
13801 exec_prefix_NONE=
13802 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
13803 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
13804 eval ac_define_dir="\"$libdir\""
13805 eval ac_define_dir="\"$ac_define_dir\""
13806 LIBDIR="$ac_define_dir"
13807
13808
13809 cat >>confdefs.h <<_ACEOF
13810 #define LIBDIR "$ac_define_dir"
13811 _ACEOF
13812
13813 test "$prefix_NONE" && prefix=NONE
13814 test "$exec_prefix_NONE" && exec_prefix=NONE
13815
13816
13817 prefix_NONE=
13818 exec_prefix_NONE=
13819 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
13820 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
13821 eval ac_define_dir="\"$datadir\""
13822 eval ac_define_dir="\"$ac_define_dir\""
13823 DATADIR="$ac_define_dir"
13824
13825
13826 cat >>confdefs.h <<_ACEOF
13827 #define DATADIR "$ac_define_dir"
13828 _ACEOF
13829
13830 test "$prefix_NONE" && prefix=NONE
13831 test "$exec_prefix_NONE" && exec_prefix=NONE
13832
13833
13834 prefix_NONE=
13835 exec_prefix_NONE=
13836 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
13837 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
13838 eval ac_define_dir="\"$localstatedir\""
13839 eval ac_define_dir="\"$ac_define_dir\""
13840 LOCALSTATEDIR="$ac_define_dir"
13841
13842
13843 cat >>confdefs.h <<_ACEOF
13844 #define LOCALSTATEDIR "$ac_define_dir"
13845 _ACEOF
13846
13847 test "$prefix_NONE" && prefix=NONE
13848 test "$exec_prefix_NONE" && exec_prefix=NONE
13849
13850
13851 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"
13852
13853
13854 cat >confcache <<\_ACEOF
13855 # This file is a shell script that caches the results of configure
13856 # tests run on this system so they can be shared between configure
13857 # scripts and configure runs, see configure's option --config-cache.
13858 # It is not useful on other systems. If it contains results you don't
13859 # want to keep, you may remove or edit it.
13860 #
13861 # config.status only pays attention to the cache file if you give it
13862 # the --recheck option to rerun configure.
13863 #
13864 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13865 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13866 # following values.
13867
13868 _ACEOF
13869
13870 # The following way of writing the cache mishandles newlines in values,
13871 # but we know of no workaround that is simple, portable, and efficient.
13872 # So, we kill variables containing newlines.
13873 # Ultrix sh set writes to stderr and can't be redirected directly,
13874 # and sets the high bit in the cache file unless we assign to the vars.
13875 (
13876 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13877 eval ac_val=\$$ac_var
13878 case $ac_val in #(
13879 *${as_nl}*)
13880 case $ac_var in #(
13881 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13882 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13883 esac
13884 case $ac_var in #(
13885 _ | IFS | as_nl) ;; #(
13886 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13887 *) { eval $ac_var=; unset $ac_var;} ;;
13888 esac ;;
13889 esac
13890 done
13891
13892 (set) 2>&1 |
13893 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13894 *${as_nl}ac_space=\ *)
13895 # `set' does not quote correctly, so add quotes: double-quote
13896 # substitution turns \\\\ into \\, and sed turns \\ into \.
13897 sed -n \
13898 "s/'/'\\\\''/g;
13899 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13900 ;; #(
13901 *)
13902 # `set' quotes correctly as required by POSIX, so do not add quotes.
13903 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13904 ;;
13905 esac |
13906 sort
13907 ) |
13908 sed '
13909 /^ac_cv_env_/b end
13910 t clear
13911 :clear
13912 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13913 t end
13914 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13915 :end' >>confcache
13916 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13917 if test -w "$cache_file"; then
13918 test "x$cache_file" != "x/dev/null" &&
13919 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13920 $as_echo "$as_me: updating cache $cache_file" >&6;}
13921 cat confcache >$cache_file
13922 else
13923 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13924 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13925 fi
13926 fi
13927 rm -f confcache
13928
13929 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13930 # Let make expand exec_prefix.
13931 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13932
13933 DEFS=-DHAVE_CONFIG_H
13934
13935 ac_libobjs=
13936 ac_ltlibobjs=
13937 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13938 # 1. Remove the extension, and $U if already installed.
13939 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13940 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13941 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13942 # will be set to the directory where LIBOBJS objects are built.
13943 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13944 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13945 done
13946 LIBOBJS=$ac_libobjs
13947
13948 LTLIBOBJS=$ac_ltlibobjs
13949
13950
13951 if test -n "$EXEEXT"; then
13952 am__EXEEXT_TRUE=
13953 am__EXEEXT_FALSE='#'
13954 else
13955 am__EXEEXT_TRUE='#'
13956 am__EXEEXT_FALSE=
13957 fi
13958
13959 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
13960 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
13961 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13962 fi
13963 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13964 as_fn_error "conditional \"AMDEP\" was never defined.
13965 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13966 fi
13967 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13968 as_fn_error "conditional \"am__fastdepCC\" was never defined.
13969 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13970 fi
13971 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
13972 as_fn_error "conditional \"INSTALL_LTDL\" was never defined.
13973 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13974 fi
13975 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
13976 as_fn_error "conditional \"CONVENIENCE_LTDL\" was never defined.
13977 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13978 fi
13979 LT_CONFIG_H=config.h
13980
13981 _ltdl_libobjs=
13982 _ltdl_ltlibobjs=
13983 if test -n "$_LT_LIBOBJS"; then
13984 # Remove the extension.
13985 _lt_sed_drop_objext='s/\.o$//;s/\.obj$//'
13986 for i in `for i in $_LT_LIBOBJS; do echo "$i"; done | sed "$_lt_sed_drop_objext" | sort -u`; do
13987 _ltdl_libobjs="$_ltdl_libobjs $lt_libobj_prefix$i.$ac_objext"
13988 _ltdl_ltlibobjs="$_ltdl_ltlibobjs $lt_libobj_prefix$i.lo"
13989 done
13990 fi
13991 ltdl_LIBOBJS=$_ltdl_libobjs
13992
13993 ltdl_LTLIBOBJS=$_ltdl_ltlibobjs
13994
13995
13996
13997 if test -z "${ENABLE_PCRE_TRUE}" && test -z "${ENABLE_PCRE_FALSE}"; then
13998 as_fn_error "conditional \"ENABLE_PCRE\" was never defined.
13999 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14000 fi
14001 if test -z "${ENABLE_SSL_TRUE}" && test -z "${ENABLE_SSL_FALSE}"; then
14002 as_fn_error "conditional \"ENABLE_SSL\" was never defined.
14003 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14004 fi
14005 if test -z "${EFNET_TRUE}" && test -z "${EFNET_FALSE}"; then
14006 as_fn_error "conditional \"EFNET\" was never defined.
14007 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14008 fi
14009
14010 : ${CONFIG_STATUS=./config.status}
14011 ac_write_fail=0
14012 ac_clean_files_save=$ac_clean_files
14013 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14014 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14015 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14016 as_write_fail=0
14017 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14018 #! $SHELL
14019 # Generated by $as_me.
14020 # Run this file to recreate the current configuration.
14021 # Compiler output produced by configure, useful for debugging
14022 # configure, is in config.log if it exists.
14023
14024 debug=false
14025 ac_cs_recheck=false
14026 ac_cs_silent=false
14027
14028 SHELL=\${CONFIG_SHELL-$SHELL}
14029 export SHELL
14030 _ASEOF
14031 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14032 ## -------------------- ##
14033 ## M4sh Initialization. ##
14034 ## -------------------- ##
14035
14036 # Be more Bourne compatible
14037 DUALCASE=1; export DUALCASE # for MKS sh
14038 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14039 emulate sh
14040 NULLCMD=:
14041 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14042 # is contrary to our usage. Disable this feature.
14043 alias -g '${1+"$@"}'='"$@"'
14044 setopt NO_GLOB_SUBST
14045 else
14046 case `(set -o) 2>/dev/null` in #(
14047 *posix*) :
14048 set -o posix ;; #(
14049 *) :
14050 ;;
14051 esac
14052 fi
14053
14054
14055 as_nl='
14056 '
14057 export as_nl
14058 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14059 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14060 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14061 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14062 # Prefer a ksh shell builtin over an external printf program on Solaris,
14063 # but without wasting forks for bash or zsh.
14064 if test -z "$BASH_VERSION$ZSH_VERSION" \
14065 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14066 as_echo='print -r --'
14067 as_echo_n='print -rn --'
14068 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14069 as_echo='printf %s\n'
14070 as_echo_n='printf %s'
14071 else
14072 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14073 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14074 as_echo_n='/usr/ucb/echo -n'
14075 else
14076 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14077 as_echo_n_body='eval
14078 arg=$1;
14079 case $arg in #(
14080 *"$as_nl"*)
14081 expr "X$arg" : "X\\(.*\\)$as_nl";
14082 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14083 esac;
14084 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14085 '
14086 export as_echo_n_body
14087 as_echo_n='sh -c $as_echo_n_body as_echo'
14088 fi
14089 export as_echo_body
14090 as_echo='sh -c $as_echo_body as_echo'
14091 fi
14092
14093 # The user is always right.
14094 if test "${PATH_SEPARATOR+set}" != set; then
14095 PATH_SEPARATOR=:
14096 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14097 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14098 PATH_SEPARATOR=';'
14099 }
14100 fi
14101
14102
14103 # IFS
14104 # We need space, tab and new line, in precisely that order. Quoting is
14105 # there to prevent editors from complaining about space-tab.
14106 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14107 # splitting by setting IFS to empty value.)
14108 IFS=" "" $as_nl"
14109
14110 # Find who we are. Look in the path if we contain no directory separator.
14111 case $0 in #((
14112 *[\\/]* ) as_myself=$0 ;;
14113 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14114 for as_dir in $PATH
14115 do
14116 IFS=$as_save_IFS
14117 test -z "$as_dir" && as_dir=.
14118 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14119 done
14120 IFS=$as_save_IFS
14121
14122 ;;
14123 esac
14124 # We did not find ourselves, most probably we were run as `sh COMMAND'
14125 # in which case we are not to be found in the path.
14126 if test "x$as_myself" = x; then
14127 as_myself=$0
14128 fi
14129 if test ! -f "$as_myself"; then
14130 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14131 exit 1
14132 fi
14133
14134 # Unset variables that we do not need and which cause bugs (e.g. in
14135 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14136 # suppresses any "Segmentation fault" message there. '((' could
14137 # trigger a bug in pdksh 5.2.14.
14138 for as_var in BASH_ENV ENV MAIL MAILPATH
14139 do eval test x\${$as_var+set} = xset \
14140 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14141 done
14142 PS1='$ '
14143 PS2='> '
14144 PS4='+ '
14145
14146 # NLS nuisances.
14147 LC_ALL=C
14148 export LC_ALL
14149 LANGUAGE=C
14150 export LANGUAGE
14151
14152 # CDPATH.
14153 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14154
14155
14156 # as_fn_error ERROR [LINENO LOG_FD]
14157 # ---------------------------------
14158 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14159 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14160 # script with status $?, using 1 if that was 0.
14161 as_fn_error ()
14162 {
14163 as_status=$?; test $as_status -eq 0 && as_status=1
14164 if test "$3"; then
14165 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14166 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
14167 fi
14168 $as_echo "$as_me: error: $1" >&2
14169 as_fn_exit $as_status
14170 } # as_fn_error
14171
14172
14173 # as_fn_set_status STATUS
14174 # -----------------------
14175 # Set $? to STATUS, without forking.
14176 as_fn_set_status ()
14177 {
14178 return $1
14179 } # as_fn_set_status
14180
14181 # as_fn_exit STATUS
14182 # -----------------
14183 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14184 as_fn_exit ()
14185 {
14186 set +e
14187 as_fn_set_status $1
14188 exit $1
14189 } # as_fn_exit
14190
14191 # as_fn_unset VAR
14192 # ---------------
14193 # Portably unset VAR.
14194 as_fn_unset ()
14195 {
14196 { eval $1=; unset $1;}
14197 }
14198 as_unset=as_fn_unset
14199 # as_fn_append VAR VALUE
14200 # ----------------------
14201 # Append the text in VALUE to the end of the definition contained in VAR. Take
14202 # advantage of any shell optimizations that allow amortized linear growth over
14203 # repeated appends, instead of the typical quadratic growth present in naive
14204 # implementations.
14205 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14206 eval 'as_fn_append ()
14207 {
14208 eval $1+=\$2
14209 }'
14210 else
14211 as_fn_append ()
14212 {
14213 eval $1=\$$1\$2
14214 }
14215 fi # as_fn_append
14216
14217 # as_fn_arith ARG...
14218 # ------------------
14219 # Perform arithmetic evaluation on the ARGs, and store the result in the
14220 # global $as_val. Take advantage of shells that can avoid forks. The arguments
14221 # must be portable across $(()) and expr.
14222 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14223 eval 'as_fn_arith ()
14224 {
14225 as_val=$(( $* ))
14226 }'
14227 else
14228 as_fn_arith ()
14229 {
14230 as_val=`expr "$@" || test $? -eq 1`
14231 }
14232 fi # as_fn_arith
14233
14234
14235 if expr a : '\(a\)' >/dev/null 2>&1 &&
14236 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14237 as_expr=expr
14238 else
14239 as_expr=false
14240 fi
14241
14242 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14243 as_basename=basename
14244 else
14245 as_basename=false
14246 fi
14247
14248 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14249 as_dirname=dirname
14250 else
14251 as_dirname=false
14252 fi
14253
14254 as_me=`$as_basename -- "$0" ||
14255 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14256 X"$0" : 'X\(//\)$' \| \
14257 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14258 $as_echo X/"$0" |
14259 sed '/^.*\/\([^/][^/]*\)\/*$/{
14260 s//\1/
14261 q
14262 }
14263 /^X\/\(\/\/\)$/{
14264 s//\1/
14265 q
14266 }
14267 /^X\/\(\/\).*/{
14268 s//\1/
14269 q
14270 }
14271 s/.*/./; q'`
14272
14273 # Avoid depending upon Character Ranges.
14274 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14275 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14276 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14277 as_cr_digits='0123456789'
14278 as_cr_alnum=$as_cr_Letters$as_cr_digits
14279
14280 ECHO_C= ECHO_N= ECHO_T=
14281 case `echo -n x` in #(((((
14282 -n*)
14283 case `echo 'xy\c'` in
14284 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14285 xy) ECHO_C='\c';;
14286 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14287 ECHO_T=' ';;
14288 esac;;
14289 *)
14290 ECHO_N='-n';;
14291 esac
14292
14293 rm -f conf$$ conf$$.exe conf$$.file
14294 if test -d conf$$.dir; then
14295 rm -f conf$$.dir/conf$$.file
14296 else
14297 rm -f conf$$.dir
14298 mkdir conf$$.dir 2>/dev/null
14299 fi
14300 if (echo >conf$$.file) 2>/dev/null; then
14301 if ln -s conf$$.file conf$$ 2>/dev/null; then
14302 as_ln_s='ln -s'
14303 # ... but there are two gotchas:
14304 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14305 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14306 # In both cases, we have to default to `cp -p'.
14307 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14308 as_ln_s='cp -p'
14309 elif ln conf$$.file conf$$ 2>/dev/null; then
14310 as_ln_s=ln
14311 else
14312 as_ln_s='cp -p'
14313 fi
14314 else
14315 as_ln_s='cp -p'
14316 fi
14317 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14318 rmdir conf$$.dir 2>/dev/null
14319
14320
14321 # as_fn_mkdir_p
14322 # -------------
14323 # Create "$as_dir" as a directory, including parents if necessary.
14324 as_fn_mkdir_p ()
14325 {
14326
14327 case $as_dir in #(
14328 -*) as_dir=./$as_dir;;
14329 esac
14330 test -d "$as_dir" || eval $as_mkdir_p || {
14331 as_dirs=
14332 while :; do
14333 case $as_dir in #(
14334 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14335 *) as_qdir=$as_dir;;
14336 esac
14337 as_dirs="'$as_qdir' $as_dirs"
14338 as_dir=`$as_dirname -- "$as_dir" ||
14339 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14340 X"$as_dir" : 'X\(//\)[^/]' \| \
14341 X"$as_dir" : 'X\(//\)$' \| \
14342 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14343 $as_echo X"$as_dir" |
14344 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14345 s//\1/
14346 q
14347 }
14348 /^X\(\/\/\)[^/].*/{
14349 s//\1/
14350 q
14351 }
14352 /^X\(\/\/\)$/{
14353 s//\1/
14354 q
14355 }
14356 /^X\(\/\).*/{
14357 s//\1/
14358 q
14359 }
14360 s/.*/./; q'`
14361 test -d "$as_dir" && break
14362 done
14363 test -z "$as_dirs" || eval "mkdir $as_dirs"
14364 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
14365
14366
14367 } # as_fn_mkdir_p
14368 if mkdir -p . 2>/dev/null; then
14369 as_mkdir_p='mkdir -p "$as_dir"'
14370 else
14371 test -d ./-p && rmdir ./-p
14372 as_mkdir_p=false
14373 fi
14374
14375 if test -x / >/dev/null 2>&1; then
14376 as_test_x='test -x'
14377 else
14378 if ls -dL / >/dev/null 2>&1; then
14379 as_ls_L_option=L
14380 else
14381 as_ls_L_option=
14382 fi
14383 as_test_x='
14384 eval sh -c '\''
14385 if test -d "$1"; then
14386 test -d "$1/.";
14387 else
14388 case $1 in #(
14389 -*)set "./$1";;
14390 esac;
14391 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
14392 ???[sx]*):;;*)false;;esac;fi
14393 '\'' sh
14394 '
14395 fi
14396 as_executable_p=$as_test_x
14397
14398 # Sed expression to map a string onto a valid CPP name.
14399 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14400
14401 # Sed expression to map a string onto a valid variable name.
14402 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14403
14404
14405 exec 6>&1
14406 ## ----------------------------------- ##
14407 ## Main body of $CONFIG_STATUS script. ##
14408 ## ----------------------------------- ##
14409 _ASEOF
14410 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14411
14412 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14413 # Save the log message, to keep $0 and so on meaningful, and to
14414 # report actual input values of CONFIG_FILES etc. instead of their
14415 # values after options handling.
14416 ac_log="
14417 This file was extended by ircd-hybrid $as_me 7.3-rc1, which was
14418 generated by GNU Autoconf 2.65. Invocation command line was
14419
14420 CONFIG_FILES = $CONFIG_FILES
14421 CONFIG_HEADERS = $CONFIG_HEADERS
14422 CONFIG_LINKS = $CONFIG_LINKS
14423 CONFIG_COMMANDS = $CONFIG_COMMANDS
14424 $ $0 $@
14425
14426 on `(hostname || uname -n) 2>/dev/null | sed 1q`
14427 "
14428
14429 _ACEOF
14430
14431 case $ac_config_files in *"
14432 "*) set x $ac_config_files; shift; ac_config_files=$*;;
14433 esac
14434
14435 case $ac_config_headers in *"
14436 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
14437 esac
14438
14439
14440 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14441 # Files that config.status was made for.
14442 config_files="$ac_config_files"
14443 config_headers="$ac_config_headers"
14444 config_commands="$ac_config_commands"
14445
14446 _ACEOF
14447
14448 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14449 ac_cs_usage="\
14450 \`$as_me' instantiates files and other configuration actions
14451 from templates according to the current configuration. Unless the files
14452 and actions are specified as TAGs, all are instantiated by default.
14453
14454 Usage: $0 [OPTION]... [TAG]...
14455
14456 -h, --help print this help, then exit
14457 -V, --version print version number and configuration settings, then exit
14458 --config print configuration, then exit
14459 -q, --quiet, --silent
14460 do not print progress messages
14461 -d, --debug don't remove temporary files
14462 --recheck update $as_me by reconfiguring in the same conditions
14463 --file=FILE[:TEMPLATE]
14464 instantiate the configuration file FILE
14465 --header=FILE[:TEMPLATE]
14466 instantiate the configuration header FILE
14467
14468 Configuration files:
14469 $config_files
14470
14471 Configuration headers:
14472 $config_headers
14473
14474 Configuration commands:
14475 $config_commands
14476
14477 Report bugs to <bugs@ircd-hybrid.org>."
14478
14479 _ACEOF
14480 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14481 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
14482 ac_cs_version="\\
14483 ircd-hybrid config.status 7.3-rc1
14484 configured by $0, generated by GNU Autoconf 2.65,
14485 with options \\"\$ac_cs_config\\"
14486
14487 Copyright (C) 2009 Free Software Foundation, Inc.
14488 This config.status script is free software; the Free Software Foundation
14489 gives unlimited permission to copy, distribute and modify it."
14490
14491 ac_pwd='$ac_pwd'
14492 srcdir='$srcdir'
14493 INSTALL='$INSTALL'
14494 MKDIR_P='$MKDIR_P'
14495 AWK='$AWK'
14496 test -n "\$AWK" || AWK=awk
14497 _ACEOF
14498
14499 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14500 # The default lists apply if the user does not specify any file.
14501 ac_need_defaults=:
14502 while test $# != 0
14503 do
14504 case $1 in
14505 --*=*)
14506 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14507 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14508 ac_shift=:
14509 ;;
14510 *)
14511 ac_option=$1
14512 ac_optarg=$2
14513 ac_shift=shift
14514 ;;
14515 esac
14516
14517 case $ac_option in
14518 # Handling of the options.
14519 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14520 ac_cs_recheck=: ;;
14521 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14522 $as_echo "$ac_cs_version"; exit ;;
14523 --config | --confi | --conf | --con | --co | --c )
14524 $as_echo "$ac_cs_config"; exit ;;
14525 --debug | --debu | --deb | --de | --d | -d )
14526 debug=: ;;
14527 --file | --fil | --fi | --f )
14528 $ac_shift
14529 case $ac_optarg in
14530 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14531 esac
14532 as_fn_append CONFIG_FILES " '$ac_optarg'"
14533 ac_need_defaults=false;;
14534 --header | --heade | --head | --hea )
14535 $ac_shift
14536 case $ac_optarg in
14537 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14538 esac
14539 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
14540 ac_need_defaults=false;;
14541 --he | --h)
14542 # Conflict between --help and --header
14543 as_fn_error "ambiguous option: \`$1'
14544 Try \`$0 --help' for more information.";;
14545 --help | --hel | -h )
14546 $as_echo "$ac_cs_usage"; exit ;;
14547 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14548 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14549 ac_cs_silent=: ;;
14550
14551 # This is an error.
14552 -*) as_fn_error "unrecognized option: \`$1'
14553 Try \`$0 --help' for more information." ;;
14554
14555 *) as_fn_append ac_config_targets " $1"
14556 ac_need_defaults=false ;;
14557
14558 esac
14559 shift
14560 done
14561
14562 ac_configure_extra_args=
14563
14564 if $ac_cs_silent; then
14565 exec 6>/dev/null
14566 ac_configure_extra_args="$ac_configure_extra_args --silent"
14567 fi
14568
14569 _ACEOF
14570 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14571 if \$ac_cs_recheck; then
14572 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14573 shift
14574 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14575 CONFIG_SHELL='$SHELL'
14576 export CONFIG_SHELL
14577 exec "\$@"
14578 fi
14579
14580 _ACEOF
14581 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14582 exec 5>>config.log
14583 {
14584 echo
14585 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14586 ## Running $as_me. ##
14587 _ASBOX
14588 $as_echo "$ac_log"
14589 } >&5
14590
14591 _ACEOF
14592 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14593 #
14594 # INIT-COMMANDS
14595 #
14596 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
14597
14598
14599 # The HP-UX ksh and POSIX shell print the target directory to stdout
14600 # if CDPATH is set.
14601 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14602
14603 sed_quote_subst='$sed_quote_subst'
14604 double_quote_subst='$double_quote_subst'
14605 delay_variable_subst='$delay_variable_subst'
14606 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
14607 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
14608 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
14609 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
14610 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
14611 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
14612 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
14613 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
14614 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
14615 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
14616 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
14617 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
14618 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
14619 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
14620 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
14621 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
14622 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
14623 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
14624 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
14625 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
14626 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
14627 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
14628 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
14629 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
14630 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
14631 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
14632 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
14633 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
14634 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
14635 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
14636 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
14637 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
14638 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
14639 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
14640 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
14641 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
14642 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
14643 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14644 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14645 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
14646 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
14647 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
14648 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
14649 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
14650 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
14651 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
14652 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
14653 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
14654 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"`'
14655 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
14656 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
14657 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
14658 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
14659 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
14660 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
14661 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
14662 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
14663 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
14664 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
14665 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
14666 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
14667 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
14668 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
14669 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
14670 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14671 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
14672 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
14673 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
14674 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
14675 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
14676 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
14677 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14678 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
14679 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14680 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
14681 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14682 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
14683 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
14684 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
14685 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
14686 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
14687 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
14688 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
14689 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
14690 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
14691 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
14692 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
14693 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
14694 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
14695 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
14696 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
14697 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
14698 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
14699 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
14700 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
14701 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
14702 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
14703 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
14704 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
14705 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
14706 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
14707 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
14708 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
14709 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
14710 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
14711 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
14712 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
14713 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14714 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14715 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
14716 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
14717 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
14718 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
14719 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
14720 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
14721 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
14722 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
14723 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
14724 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
14725 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
14726
14727 LTCC='$LTCC'
14728 LTCFLAGS='$LTCFLAGS'
14729 compiler='$compiler_DEFAULT'
14730
14731 # A function that is used when there is no print builtin or printf.
14732 func_fallback_echo ()
14733 {
14734 eval 'cat <<_LTECHO_EOF
14735 \$1
14736 _LTECHO_EOF'
14737 }
14738
14739 # Quote evaled strings.
14740 for var in SHELL \
14741 ECHO \
14742 SED \
14743 GREP \
14744 EGREP \
14745 FGREP \
14746 LD \
14747 NM \
14748 LN_S \
14749 lt_SP2NL \
14750 lt_NL2SP \
14751 reload_flag \
14752 OBJDUMP \
14753 deplibs_check_method \
14754 file_magic_cmd \
14755 AR \
14756 AR_FLAGS \
14757 STRIP \
14758 RANLIB \
14759 CC \
14760 CFLAGS \
14761 compiler \
14762 lt_cv_sys_global_symbol_pipe \
14763 lt_cv_sys_global_symbol_to_cdecl \
14764 lt_cv_sys_global_symbol_to_c_name_address \
14765 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
14766 lt_prog_compiler_no_builtin_flag \
14767 lt_prog_compiler_wl \
14768 lt_prog_compiler_pic \
14769 lt_prog_compiler_static \
14770 lt_cv_prog_compiler_c_o \
14771 need_locks \
14772 DSYMUTIL \
14773 NMEDIT \
14774 LIPO \
14775 OTOOL \
14776 OTOOL64 \
14777 shrext_cmds \
14778 export_dynamic_flag_spec \
14779 whole_archive_flag_spec \
14780 compiler_needs_object \
14781 with_gnu_ld \
14782 allow_undefined_flag \
14783 no_undefined_flag \
14784 hardcode_libdir_flag_spec \
14785 hardcode_libdir_flag_spec_ld \
14786 hardcode_libdir_separator \
14787 fix_srcfile_path \
14788 exclude_expsyms \
14789 include_expsyms \
14790 file_list_spec \
14791 variables_saved_for_relink \
14792 libname_spec \
14793 library_names_spec \
14794 soname_spec \
14795 install_override_mode \
14796 finish_eval \
14797 old_striplib \
14798 striplib; do
14799 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14800 *[\\\\\\\`\\"\\\$]*)
14801 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
14802 ;;
14803 *)
14804 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14805 ;;
14806 esac
14807 done
14808
14809 # Double-quote double-evaled strings.
14810 for var in reload_cmds \
14811 old_postinstall_cmds \
14812 old_postuninstall_cmds \
14813 old_archive_cmds \
14814 extract_expsyms_cmds \
14815 old_archive_from_new_cmds \
14816 old_archive_from_expsyms_cmds \
14817 archive_cmds \
14818 archive_expsym_cmds \
14819 module_cmds \
14820 module_expsym_cmds \
14821 export_symbols_cmds \
14822 prelink_cmds \
14823 postinstall_cmds \
14824 postuninstall_cmds \
14825 finish_cmds \
14826 sys_lib_search_path_spec \
14827 sys_lib_dlsearch_path_spec; do
14828 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14829 *[\\\\\\\`\\"\\\$]*)
14830 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
14831 ;;
14832 *)
14833 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14834 ;;
14835 esac
14836 done
14837
14838 ac_aux_dir='$ac_aux_dir'
14839 xsi_shell='$xsi_shell'
14840 lt_shell_append='$lt_shell_append'
14841
14842 # See if we are running on zsh, and set the options which allow our
14843 # commands through without removal of \ escapes INIT.
14844 if test -n "\${ZSH_VERSION+set}" ; then
14845 setopt NO_GLOB_SUBST
14846 fi
14847
14848
14849 PACKAGE='$PACKAGE'
14850 VERSION='$VERSION'
14851 TIMESTAMP='$TIMESTAMP'
14852 RM='$RM'
14853 ofile='$ofile'
14854
14855
14856
14857
14858 _ACEOF
14859
14860 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14861
14862 # Handling of arguments.
14863 for ac_config_target in $ac_config_targets
14864 do
14865 case $ac_config_target in
14866 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
14867 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
14868 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
14869 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14870 "etc/Makefile") CONFIG_FILES="$CONFIG_FILES etc/Makefile" ;;
14871 "servlink/Makefile") CONFIG_FILES="$CONFIG_FILES servlink/Makefile" ;;
14872 "contrib/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/Makefile" ;;
14873 "contrib/help/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/help/Makefile" ;;
14874 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
14875 "libltdl/Makefile") CONFIG_FILES="$CONFIG_FILES libltdl/Makefile" ;;
14876 "messages/Makefile") CONFIG_FILES="$CONFIG_FILES messages/Makefile" ;;
14877 "modules/Makefile") CONFIG_FILES="$CONFIG_FILES modules/Makefile" ;;
14878 "modules/core/Makefile") CONFIG_FILES="$CONFIG_FILES modules/core/Makefile" ;;
14879 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
14880 "help/Makefile") CONFIG_FILES="$CONFIG_FILES help/Makefile" ;;
14881 "help/opers/Makefile") CONFIG_FILES="$CONFIG_FILES help/opers/Makefile" ;;
14882 "help/users/Makefile") CONFIG_FILES="$CONFIG_FILES help/users/Makefile" ;;
14883 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
14884
14885 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14886 esac
14887 done
14888
14889
14890 # If the user did not use the arguments to specify the items to instantiate,
14891 # then the envvar interface is used. Set only those that are not.
14892 # We use the long form for the default assignment because of an extremely
14893 # bizarre bug on SunOS 4.1.3.
14894 if $ac_need_defaults; then
14895 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14896 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14897 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14898 fi
14899
14900 # Have a temporary directory for convenience. Make it in the build tree
14901 # simply because there is no reason against having it here, and in addition,
14902 # creating and moving files from /tmp can sometimes cause problems.
14903 # Hook for its removal unless debugging.
14904 # Note that there is a small window in which the directory will not be cleaned:
14905 # after its creation but before its name has been assigned to `$tmp'.
14906 $debug ||
14907 {
14908 tmp=
14909 trap 'exit_status=$?
14910 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
14911 ' 0
14912 trap 'as_fn_exit 1' 1 2 13 15
14913 }
14914 # Create a (secure) tmp directory for tmp files.
14915
14916 {
14917 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14918 test -n "$tmp" && test -d "$tmp"
14919 } ||
14920 {
14921 tmp=./conf$$-$RANDOM
14922 (umask 077 && mkdir "$tmp")
14923 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
14924
14925 # Set up the scripts for CONFIG_FILES section.
14926 # No need to generate them if there are no CONFIG_FILES.
14927 # This happens for instance with `./config.status config.h'.
14928 if test -n "$CONFIG_FILES"; then
14929
14930
14931 ac_cr=`echo X | tr X '\015'`
14932 # On cygwin, bash can eat \r inside `` if the user requested igncr.
14933 # But we know of no other shell where ac_cr would be empty at this
14934 # point, so we can use a bashism as a fallback.
14935 if test "x$ac_cr" = x; then
14936 eval ac_cr=\$\'\\r\'
14937 fi
14938 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14939 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14940 ac_cs_awk_cr='\r'
14941 else
14942 ac_cs_awk_cr=$ac_cr
14943 fi
14944
14945 echo 'BEGIN {' >"$tmp/subs1.awk" &&
14946 _ACEOF
14947
14948
14949 {
14950 echo "cat >conf$$subs.awk <<_ACEOF" &&
14951 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14952 echo "_ACEOF"
14953 } >conf$$subs.sh ||
14954 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14955 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
14956 ac_delim='%!_!# '
14957 for ac_last_try in false false false false false :; do
14958 . ./conf$$subs.sh ||
14959 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14960
14961 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14962 if test $ac_delim_n = $ac_delim_num; then
14963 break
14964 elif $ac_last_try; then
14965 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14966 else
14967 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14968 fi
14969 done
14970 rm -f conf$$subs.sh
14971
14972 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14973 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
14974 _ACEOF
14975 sed -n '
14976 h
14977 s/^/S["/; s/!.*/"]=/
14978 p
14979 g
14980 s/^[^!]*!//
14981 :repl
14982 t repl
14983 s/'"$ac_delim"'$//
14984 t delim
14985 :nl
14986 h
14987 s/\(.\{148\}\)..*/\1/
14988 t more1
14989 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14990 p
14991 n
14992 b repl
14993 :more1
14994 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14995 p
14996 g
14997 s/.\{148\}//
14998 t nl
14999 :delim
15000 h
15001 s/\(.\{148\}\)..*/\1/
15002 t more2
15003 s/["\\]/\\&/g; s/^/"/; s/$/"/
15004 p
15005 b
15006 :more2
15007 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15008 p
15009 g
15010 s/.\{148\}//
15011 t delim
15012 ' <conf$$subs.awk | sed '
15013 /^[^""]/{
15014 N
15015 s/\n//
15016 }
15017 ' >>$CONFIG_STATUS || ac_write_fail=1
15018 rm -f conf$$subs.awk
15019 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15020 _ACAWK
15021 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
15022 for (key in S) S_is_set[key] = 1
15023 FS = ""
15024
15025 }
15026 {
15027 line = $ 0
15028 nfields = split(line, field, "@")
15029 substed = 0
15030 len = length(field[1])
15031 for (i = 2; i < nfields; i++) {
15032 key = field[i]
15033 keylen = length(key)
15034 if (S_is_set[key]) {
15035 value = S[key]
15036 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15037 len += length(value) + length(field[++i])
15038 substed = 1
15039 } else
15040 len += 1 + keylen
15041 }
15042
15043 print line
15044 }
15045
15046 _ACAWK
15047 _ACEOF
15048 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15049 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15050 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15051 else
15052 cat
15053 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
15054 || as_fn_error "could not setup config files machinery" "$LINENO" 5
15055 _ACEOF
15056
15057 # VPATH may cause trouble with some makes, so we remove $(srcdir),
15058 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15059 # trailing colons and then remove the whole line if VPATH becomes empty
15060 # (actually we leave an empty line to preserve line numbers).
15061 if test "x$srcdir" = x.; then
15062 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15063 s/:*\$(srcdir):*/:/
15064 s/:*\${srcdir}:*/:/
15065 s/:*@srcdir@:*/:/
15066 s/^\([^=]*=[ ]*\):*/\1/
15067 s/:*$//
15068 s/^[^=]*=[ ]*$//
15069 }'
15070 fi
15071
15072 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15073 fi # test -n "$CONFIG_FILES"
15074
15075 # Set up the scripts for CONFIG_HEADERS section.
15076 # No need to generate them if there are no CONFIG_HEADERS.
15077 # This happens for instance with `./config.status Makefile'.
15078 if test -n "$CONFIG_HEADERS"; then
15079 cat >"$tmp/defines.awk" <<\_ACAWK ||
15080 BEGIN {
15081 _ACEOF
15082
15083 # Transform confdefs.h into an awk script `defines.awk', embedded as
15084 # here-document in config.status, that substitutes the proper values into
15085 # config.h.in to produce config.h.
15086
15087 # Create a delimiter string that does not exist in confdefs.h, to ease
15088 # handling of long lines.
15089 ac_delim='%!_!# '
15090 for ac_last_try in false false :; do
15091 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
15092 if test -z "$ac_t"; then
15093 break
15094 elif $ac_last_try; then
15095 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
15096 else
15097 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15098 fi
15099 done
15100
15101 # For the awk script, D is an array of macro values keyed by name,
15102 # likewise P contains macro parameters if any. Preserve backslash
15103 # newline sequences.
15104
15105 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15106 sed -n '
15107 s/.\{148\}/&'"$ac_delim"'/g
15108 t rset
15109 :rset
15110 s/^[ ]*#[ ]*define[ ][ ]*/ /
15111 t def
15112 d
15113 :def
15114 s/\\$//
15115 t bsnl
15116 s/["\\]/\\&/g
15117 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15118 D["\1"]=" \3"/p
15119 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
15120 d
15121 :bsnl
15122 s/["\\]/\\&/g
15123 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15124 D["\1"]=" \3\\\\\\n"\\/p
15125 t cont
15126 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15127 t cont
15128 d
15129 :cont
15130 n
15131 s/.\{148\}/&'"$ac_delim"'/g
15132 t clear
15133 :clear
15134 s/\\$//
15135 t bsnlc
15136 s/["\\]/\\&/g; s/^/"/; s/$/"/p
15137 d
15138 :bsnlc
15139 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15140 b cont
15141 ' <confdefs.h | sed '
15142 s/'"$ac_delim"'/"\\\
15143 "/g' >>$CONFIG_STATUS || ac_write_fail=1
15144
15145 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15146 for (key in D) D_is_set[key] = 1
15147 FS = ""
15148 }
15149 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15150 line = \$ 0
15151 split(line, arg, " ")
15152 if (arg[1] == "#") {
15153 defundef = arg[2]
15154 mac1 = arg[3]
15155 } else {
15156 defundef = substr(arg[1], 2)
15157 mac1 = arg[2]
15158 }
15159 split(mac1, mac2, "(") #)
15160 macro = mac2[1]
15161 prefix = substr(line, 1, index(line, defundef) - 1)
15162 if (D_is_set[macro]) {
15163 # Preserve the white space surrounding the "#".
15164 print prefix "define", macro P[macro] D[macro]
15165 next
15166 } else {
15167 # Replace #undef with comments. This is necessary, for example,
15168 # in the case of _POSIX_SOURCE, which is predefined and required
15169 # on some systems where configure will not decide to define it.
15170 if (defundef == "undef") {
15171 print "/*", prefix defundef, macro, "*/"
15172 next
15173 }
15174 }
15175 }
15176 { print }
15177 _ACAWK
15178 _ACEOF
15179 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15180 as_fn_error "could not setup config headers machinery" "$LINENO" 5
15181 fi # test -n "$CONFIG_HEADERS"
15182
15183
15184 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
15185 shift
15186 for ac_tag
15187 do
15188 case $ac_tag in
15189 :[FHLC]) ac_mode=$ac_tag; continue;;
15190 esac
15191 case $ac_mode$ac_tag in
15192 :[FHL]*:*);;
15193 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
15194 :[FH]-) ac_tag=-:-;;
15195 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15196 esac
15197 ac_save_IFS=$IFS
15198 IFS=:
15199 set x $ac_tag
15200 IFS=$ac_save_IFS
15201 shift
15202 ac_file=$1
15203 shift
15204
15205 case $ac_mode in
15206 :L) ac_source=$1;;
15207 :[FH])
15208 ac_file_inputs=
15209 for ac_f
15210 do
15211 case $ac_f in
15212 -) ac_f="$tmp/stdin";;
15213 *) # Look for the file first in the build tree, then in the source tree
15214 # (if the path is not absolute). The absolute path cannot be DOS-style,
15215 # because $ac_f cannot contain `:'.
15216 test -f "$ac_f" ||
15217 case $ac_f in
15218 [\\/$]*) false;;
15219 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15220 esac ||
15221 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15222 esac
15223 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15224 as_fn_append ac_file_inputs " '$ac_f'"
15225 done
15226
15227 # Let's still pretend it is `configure' which instantiates (i.e., don't
15228 # use $as_me), people would be surprised to read:
15229 # /* config.h. Generated by config.status. */
15230 configure_input='Generated from '`
15231 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15232 `' by configure.'
15233 if test x"$ac_file" != x-; then
15234 configure_input="$ac_file. $configure_input"
15235 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15236 $as_echo "$as_me: creating $ac_file" >&6;}
15237 fi
15238 # Neutralize special characters interpreted by sed in replacement strings.
15239 case $configure_input in #(
15240 *\&* | *\|* | *\\* )
15241 ac_sed_conf_input=`$as_echo "$configure_input" |
15242 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15243 *) ac_sed_conf_input=$configure_input;;
15244 esac
15245
15246 case $ac_tag in
15247 *:-:* | *:-) cat >"$tmp/stdin" \
15248 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
15249 esac
15250 ;;
15251 esac
15252
15253 ac_dir=`$as_dirname -- "$ac_file" ||
15254 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15255 X"$ac_file" : 'X\(//\)[^/]' \| \
15256 X"$ac_file" : 'X\(//\)$' \| \
15257 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15258 $as_echo X"$ac_file" |
15259 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15260 s//\1/
15261 q
15262 }
15263 /^X\(\/\/\)[^/].*/{
15264 s//\1/
15265 q
15266 }
15267 /^X\(\/\/\)$/{
15268 s//\1/
15269 q
15270 }
15271 /^X\(\/\).*/{
15272 s//\1/
15273 q
15274 }
15275 s/.*/./; q'`
15276 as_dir="$ac_dir"; as_fn_mkdir_p
15277 ac_builddir=.
15278
15279 case "$ac_dir" in
15280 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15281 *)
15282 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15283 # A ".." for each directory in $ac_dir_suffix.
15284 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15285 case $ac_top_builddir_sub in
15286 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15287 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15288 esac ;;
15289 esac
15290 ac_abs_top_builddir=$ac_pwd
15291 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15292 # for backward compatibility:
15293 ac_top_builddir=$ac_top_build_prefix
15294
15295 case $srcdir in
15296 .) # We are building in place.
15297 ac_srcdir=.
15298 ac_top_srcdir=$ac_top_builddir_sub
15299 ac_abs_top_srcdir=$ac_pwd ;;
15300 [\\/]* | ?:[\\/]* ) # Absolute name.
15301 ac_srcdir=$srcdir$ac_dir_suffix;
15302 ac_top_srcdir=$srcdir
15303 ac_abs_top_srcdir=$srcdir ;;
15304 *) # Relative name.
15305 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15306 ac_top_srcdir=$ac_top_build_prefix$srcdir
15307 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15308 esac
15309 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15310
15311
15312 case $ac_mode in
15313 :F)
15314 #
15315 # CONFIG_FILE
15316 #
15317
15318 case $INSTALL in
15319 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15320 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15321 esac
15322 ac_MKDIR_P=$MKDIR_P
15323 case $MKDIR_P in
15324 [\\/$]* | ?:[\\/]* ) ;;
15325 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
15326 esac
15327 _ACEOF
15328
15329 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15330 # If the template does not know about datarootdir, expand it.
15331 # FIXME: This hack should be removed a few years after 2.60.
15332 ac_datarootdir_hack=; ac_datarootdir_seen=
15333 ac_sed_dataroot='
15334 /datarootdir/ {
15335 p
15336 q
15337 }
15338 /@datadir@/p
15339 /@docdir@/p
15340 /@infodir@/p
15341 /@localedir@/p
15342 /@mandir@/p'
15343 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15344 *datarootdir*) ac_datarootdir_seen=yes;;
15345 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15346 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15347 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15348 _ACEOF
15349 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15350 ac_datarootdir_hack='
15351 s&@datadir@&$datadir&g
15352 s&@docdir@&$docdir&g
15353 s&@infodir@&$infodir&g
15354 s&@localedir@&$localedir&g
15355 s&@mandir@&$mandir&g
15356 s&\\\${datarootdir}&$datarootdir&g' ;;
15357 esac
15358 _ACEOF
15359
15360 # Neutralize VPATH when `$srcdir' = `.'.
15361 # Shell code in configure.ac might set extrasub.
15362 # FIXME: do we really want to maintain this feature?
15363 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15364 ac_sed_extra="$ac_vpsub
15365 $extrasub
15366 _ACEOF
15367 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15368 :t
15369 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15370 s|@configure_input@|$ac_sed_conf_input|;t t
15371 s&@top_builddir@&$ac_top_builddir_sub&;t t
15372 s&@top_build_prefix@&$ac_top_build_prefix&;t t
15373 s&@srcdir@&$ac_srcdir&;t t
15374 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15375 s&@top_srcdir@&$ac_top_srcdir&;t t
15376 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15377 s&@builddir@&$ac_builddir&;t t
15378 s&@abs_builddir@&$ac_abs_builddir&;t t
15379 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15380 s&@INSTALL@&$ac_INSTALL&;t t
15381 s&@MKDIR_P@&$ac_MKDIR_P&;t t
15382 $ac_datarootdir_hack
15383 "
15384 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
15385 || as_fn_error "could not create $ac_file" "$LINENO" 5
15386
15387 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15388 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
15389 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
15390 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15391 which seems to be undefined. Please make sure it is defined." >&5
15392 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15393 which seems to be undefined. Please make sure it is defined." >&2;}
15394
15395 rm -f "$tmp/stdin"
15396 case $ac_file in
15397 -) cat "$tmp/out" && rm -f "$tmp/out";;
15398 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
15399 esac \
15400 || as_fn_error "could not create $ac_file" "$LINENO" 5
15401 ;;
15402 :H)
15403 #
15404 # CONFIG_HEADER
15405 #
15406 if test x"$ac_file" != x-; then
15407 {
15408 $as_echo "/* $configure_input */" \
15409 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
15410 } >"$tmp/config.h" \
15411 || as_fn_error "could not create $ac_file" "$LINENO" 5
15412 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
15413 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15414 $as_echo "$as_me: $ac_file is unchanged" >&6;}
15415 else
15416 rm -f "$ac_file"
15417 mv "$tmp/config.h" "$ac_file" \
15418 || as_fn_error "could not create $ac_file" "$LINENO" 5
15419 fi
15420 else
15421 $as_echo "/* $configure_input */" \
15422 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
15423 || as_fn_error "could not create -" "$LINENO" 5
15424 fi
15425 # Compute "$ac_file"'s index in $config_headers.
15426 _am_arg="$ac_file"
15427 _am_stamp_count=1
15428 for _am_header in $config_headers :; do
15429 case $_am_header in
15430 $_am_arg | $_am_arg:* )
15431 break ;;
15432 * )
15433 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
15434 esac
15435 done
15436 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
15437 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15438 X"$_am_arg" : 'X\(//\)[^/]' \| \
15439 X"$_am_arg" : 'X\(//\)$' \| \
15440 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
15441 $as_echo X"$_am_arg" |
15442 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15443 s//\1/
15444 q
15445 }
15446 /^X\(\/\/\)[^/].*/{
15447 s//\1/
15448 q
15449 }
15450 /^X\(\/\/\)$/{
15451 s//\1/
15452 q
15453 }
15454 /^X\(\/\).*/{
15455 s//\1/
15456 q
15457 }
15458 s/.*/./; q'`/stamp-h$_am_stamp_count
15459 ;;
15460
15461 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
15462 $as_echo "$as_me: executing $ac_file commands" >&6;}
15463 ;;
15464 esac
15465
15466
15467 case $ac_file$ac_mode in
15468 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
15469 # Autoconf 2.62 quotes --file arguments for eval, but not when files
15470 # are listed without --file. Let's play safe and only enable the eval
15471 # if we detect the quoting.
15472 case $CONFIG_FILES in
15473 *\'*) eval set x "$CONFIG_FILES" ;;
15474 *) set x $CONFIG_FILES ;;
15475 esac
15476 shift
15477 for mf
15478 do
15479 # Strip MF so we end up with the name of the file.
15480 mf=`echo "$mf" | sed -e 's/:.*$//'`
15481 # Check whether this is an Automake generated Makefile or not.
15482 # We used to match only the files named `Makefile.in', but
15483 # some people rename them; so instead we look at the file content.
15484 # Grep'ing the first line is not enough: some people post-process
15485 # each Makefile.in and add a new line on top of each file to say so.
15486 # Grep'ing the whole file is not good either: AIX grep has a line
15487 # limit of 2048, but all sed's we know have understand at least 4000.
15488 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
15489 dirpart=`$as_dirname -- "$mf" ||
15490 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15491 X"$mf" : 'X\(//\)[^/]' \| \
15492 X"$mf" : 'X\(//\)$' \| \
15493 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
15494 $as_echo X"$mf" |
15495 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15496 s//\1/
15497 q
15498 }
15499 /^X\(\/\/\)[^/].*/{
15500 s//\1/
15501 q
15502 }
15503 /^X\(\/\/\)$/{
15504 s//\1/
15505 q
15506 }
15507 /^X\(\/\).*/{
15508 s//\1/
15509 q
15510 }
15511 s/.*/./; q'`
15512 else
15513 continue
15514 fi
15515 # Extract the definition of DEPDIR, am__include, and am__quote
15516 # from the Makefile without running `make'.
15517 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
15518 test -z "$DEPDIR" && continue
15519 am__include=`sed -n 's/^am__include = //p' < "$mf"`
15520 test -z "am__include" && continue
15521 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
15522 # When using ansi2knr, U may be empty or an underscore; expand it
15523 U=`sed -n 's/^U = //p' < "$mf"`
15524 # Find all dependency output files, they are included files with
15525 # $(DEPDIR) in their names. We invoke sed twice because it is the
15526 # simplest approach to changing $(DEPDIR) to its actual value in the
15527 # expansion.
15528 for file in `sed -n "
15529 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
15530 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
15531 # Make sure the directory exists.
15532 test -f "$dirpart/$file" && continue
15533 fdir=`$as_dirname -- "$file" ||
15534 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15535 X"$file" : 'X\(//\)[^/]' \| \
15536 X"$file" : 'X\(//\)$' \| \
15537 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
15538 $as_echo X"$file" |
15539 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15540 s//\1/
15541 q
15542 }
15543 /^X\(\/\/\)[^/].*/{
15544 s//\1/
15545 q
15546 }
15547 /^X\(\/\/\)$/{
15548 s//\1/
15549 q
15550 }
15551 /^X\(\/\).*/{
15552 s//\1/
15553 q
15554 }
15555 s/.*/./; q'`
15556 as_dir=$dirpart/$fdir; as_fn_mkdir_p
15557 # echo "creating $dirpart/$file"
15558 echo '# dummy' > "$dirpart/$file"
15559 done
15560 done
15561 }
15562 ;;
15563 "libtool":C)
15564
15565 # See if we are running on zsh, and set the options which allow our
15566 # commands through without removal of \ escapes.
15567 if test -n "${ZSH_VERSION+set}" ; then
15568 setopt NO_GLOB_SUBST
15569 fi
15570
15571 cfgfile="${ofile}T"
15572 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
15573 $RM "$cfgfile"
15574
15575 cat <<_LT_EOF >> "$cfgfile"
15576 #! $SHELL
15577
15578 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
15579 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
15580 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15581 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
15582 #
15583 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
15584 # 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
15585 # Inc.
15586 # Written by Gordon Matzigkeit, 1996
15587 #
15588 # This file is part of GNU Libtool.
15589 #
15590 # GNU Libtool is free software; you can redistribute it and/or
15591 # modify it under the terms of the GNU General Public License as
15592 # published by the Free Software Foundation; either version 2 of
15593 # the License, or (at your option) any later version.
15594 #
15595 # As a special exception to the GNU General Public License,
15596 # if you distribute this file as part of a program or library that
15597 # is built using GNU Libtool, you may include this file under the
15598 # same distribution terms that you use for the rest of that program.
15599 #
15600 # GNU Libtool is distributed in the hope that it will be useful,
15601 # but WITHOUT ANY WARRANTY; without even the implied warranty of
15602 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15603 # GNU General Public License for more details.
15604 #
15605 # You should have received a copy of the GNU General Public License
15606 # along with GNU Libtool; see the file COPYING. If not, a copy
15607 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
15608 # obtained by writing to the Free Software Foundation, Inc.,
15609 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15610
15611
15612 # The names of the tagged configurations supported by this script.
15613 available_tags=""
15614
15615 # ### BEGIN LIBTOOL CONFIG
15616
15617 # Which release of libtool.m4 was used?
15618 macro_version=$macro_version
15619 macro_revision=$macro_revision
15620
15621 # Whether or not to build static libraries.
15622 build_old_libs=$enable_static
15623
15624 # Whether or not to build shared libraries.
15625 build_libtool_libs=$enable_shared
15626
15627 # What type of objects to build.
15628 pic_mode=$pic_mode
15629
15630 # Whether or not to optimize for fast installation.
15631 fast_install=$enable_fast_install
15632
15633 # Shell to use when invoking shell scripts.
15634 SHELL=$lt_SHELL
15635
15636 # An echo program that protects backslashes.
15637 ECHO=$lt_ECHO
15638
15639 # The host system.
15640 host_alias=$host_alias
15641 host=$host
15642 host_os=$host_os
15643
15644 # The build system.
15645 build_alias=$build_alias
15646 build=$build
15647 build_os=$build_os
15648
15649 # A sed program that does not truncate output.
15650 SED=$lt_SED
15651
15652 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
15653 Xsed="\$SED -e 1s/^X//"
15654
15655 # A grep program that handles long lines.
15656 GREP=$lt_GREP
15657
15658 # An ERE matcher.
15659 EGREP=$lt_EGREP
15660
15661 # A literal string matcher.
15662 FGREP=$lt_FGREP
15663
15664 # A BSD- or MS-compatible name lister.
15665 NM=$lt_NM
15666
15667 # Whether we need soft or hard links.
15668 LN_S=$lt_LN_S
15669
15670 # What is the maximum length of a command?
15671 max_cmd_len=$max_cmd_len
15672
15673 # Object file suffix (normally "o").
15674 objext=$ac_objext
15675
15676 # Executable file suffix (normally "").
15677 exeext=$exeext
15678
15679 # whether the shell understands "unset".
15680 lt_unset=$lt_unset
15681
15682 # turn spaces into newlines.
15683 SP2NL=$lt_lt_SP2NL
15684
15685 # turn newlines into spaces.
15686 NL2SP=$lt_lt_NL2SP
15687
15688 # An object symbol dumper.
15689 OBJDUMP=$lt_OBJDUMP
15690
15691 # Method to check whether dependent libraries are shared objects.
15692 deplibs_check_method=$lt_deplibs_check_method
15693
15694 # Command to use when deplibs_check_method == "file_magic".
15695 file_magic_cmd=$lt_file_magic_cmd
15696
15697 # The archiver.
15698 AR=$lt_AR
15699 AR_FLAGS=$lt_AR_FLAGS
15700
15701 # A symbol stripping program.
15702 STRIP=$lt_STRIP
15703
15704 # Commands used to install an old-style archive.
15705 RANLIB=$lt_RANLIB
15706 old_postinstall_cmds=$lt_old_postinstall_cmds
15707 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15708
15709 # Whether to use a lock for old archive extraction.
15710 lock_old_archive_extraction=$lock_old_archive_extraction
15711
15712 # A C compiler.
15713 LTCC=$lt_CC
15714
15715 # LTCC compiler flags.
15716 LTCFLAGS=$lt_CFLAGS
15717
15718 # Take the output of nm and produce a listing of raw symbols and C names.
15719 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15720
15721 # Transform the output of nm in a proper C declaration.
15722 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15723
15724 # Transform the output of nm in a C name address pair.
15725 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15726
15727 # Transform the output of nm in a C name address pair when lib prefix is needed.
15728 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
15729
15730 # The name of the directory that contains temporary libtool files.
15731 objdir=$objdir
15732
15733 # Used to examine libraries when file_magic_cmd begins with "file".
15734 MAGIC_CMD=$MAGIC_CMD
15735
15736 # Must we lock files when doing compilation?
15737 need_locks=$lt_need_locks
15738
15739 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
15740 DSYMUTIL=$lt_DSYMUTIL
15741
15742 # Tool to change global to local symbols on Mac OS X.
15743 NMEDIT=$lt_NMEDIT
15744
15745 # Tool to manipulate fat objects and archives on Mac OS X.
15746 LIPO=$lt_LIPO
15747
15748 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
15749 OTOOL=$lt_OTOOL
15750
15751 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
15752 OTOOL64=$lt_OTOOL64
15753
15754 # Old archive suffix (normally "a").
15755 libext=$libext
15756
15757 # Shared library suffix (normally ".so").
15758 shrext_cmds=$lt_shrext_cmds
15759
15760 # The commands to extract the exported symbol list from a shared archive.
15761 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15762
15763 # Variables whose values should be saved in libtool wrapper scripts and
15764 # restored at link time.
15765 variables_saved_for_relink=$lt_variables_saved_for_relink
15766
15767 # Do we need the "lib" prefix for modules?
15768 need_lib_prefix=$need_lib_prefix
15769
15770 # Do we need a version for libraries?
15771 need_version=$need_version
15772
15773 # Library versioning type.
15774 version_type=$version_type
15775
15776 # Shared library runtime path variable.
15777 runpath_var=$runpath_var
15778
15779 # Shared library path variable.
15780 shlibpath_var=$shlibpath_var
15781
15782 # Is shlibpath searched before the hard-coded library search path?
15783 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15784
15785 # Format of library name prefix.
15786 libname_spec=$lt_libname_spec
15787
15788 # List of archive names. First name is the real one, the rest are links.
15789 # The last name is the one that the linker finds with -lNAME
15790 library_names_spec=$lt_library_names_spec
15791
15792 # The coded name of the library, if different from the real name.
15793 soname_spec=$lt_soname_spec
15794
15795 # Permission mode override for installation of shared libraries.
15796 install_override_mode=$lt_install_override_mode
15797
15798 # Command to use after installation of a shared archive.
15799 postinstall_cmds=$lt_postinstall_cmds
15800
15801 # Command to use after uninstallation of a shared archive.
15802 postuninstall_cmds=$lt_postuninstall_cmds
15803
15804 # Commands used to finish a libtool library installation in a directory.
15805 finish_cmds=$lt_finish_cmds
15806
15807 # As "finish_cmds", except a single script fragment to be evaled but
15808 # not shown.
15809 finish_eval=$lt_finish_eval
15810
15811 # Whether we should hardcode library paths into libraries.
15812 hardcode_into_libs=$hardcode_into_libs
15813
15814 # Compile-time system search path for libraries.
15815 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15816
15817 # Run-time system search path for libraries.
15818 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15819
15820 # Whether dlopen is supported.
15821 dlopen_support=$enable_dlopen
15822
15823 # Whether dlopen of programs is supported.
15824 dlopen_self=$enable_dlopen_self
15825
15826 # Whether dlopen of statically linked programs is supported.
15827 dlopen_self_static=$enable_dlopen_self_static
15828
15829 # Commands to strip libraries.
15830 old_striplib=$lt_old_striplib
15831 striplib=$lt_striplib
15832
15833
15834 # The linker used to build libraries.
15835 LD=$lt_LD
15836
15837 # How to create reloadable object files.
15838 reload_flag=$lt_reload_flag
15839 reload_cmds=$lt_reload_cmds
15840
15841 # Commands used to build an old-style archive.
15842 old_archive_cmds=$lt_old_archive_cmds
15843
15844 # A language specific compiler.
15845 CC=$lt_compiler
15846
15847 # Is the compiler the GNU compiler?
15848 with_gcc=$GCC
15849
15850 # Compiler flag to turn off builtin functions.
15851 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15852
15853 # How to pass a linker flag through the compiler.
15854 wl=$lt_lt_prog_compiler_wl
15855
15856 # Additional compiler flags for building library objects.
15857 pic_flag=$lt_lt_prog_compiler_pic
15858
15859 # Compiler flag to prevent dynamic linking.
15860 link_static_flag=$lt_lt_prog_compiler_static
15861
15862 # Does compiler simultaneously support -c and -o options?
15863 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15864
15865 # Whether or not to add -lc for building shared libraries.
15866 build_libtool_need_lc=$archive_cmds_need_lc
15867
15868 # Whether or not to disallow shared libs when runtime libs are static.
15869 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15870
15871 # Compiler flag to allow reflexive dlopens.
15872 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15873
15874 # Compiler flag to generate shared objects directly from archives.
15875 whole_archive_flag_spec=$lt_whole_archive_flag_spec
15876
15877 # Whether the compiler copes with passing no objects directly.
15878 compiler_needs_object=$lt_compiler_needs_object
15879
15880 # Create an old-style archive from a shared archive.
15881 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15882
15883 # Create a temporary old-style archive to link instead of a shared archive.
15884 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15885
15886 # Commands used to build a shared archive.
15887 archive_cmds=$lt_archive_cmds
15888 archive_expsym_cmds=$lt_archive_expsym_cmds
15889
15890 # Commands used to build a loadable module if different from building
15891 # a shared archive.
15892 module_cmds=$lt_module_cmds
15893 module_expsym_cmds=$lt_module_expsym_cmds
15894
15895 # Whether we are building with GNU ld or not.
15896 with_gnu_ld=$lt_with_gnu_ld
15897
15898 # Flag that allows shared libraries with undefined symbols to be built.
15899 allow_undefined_flag=$lt_allow_undefined_flag
15900
15901 # Flag that enforces no undefined symbols.
15902 no_undefined_flag=$lt_no_undefined_flag
15903
15904 # Flag to hardcode \$libdir into a binary during linking.
15905 # This must work even if \$libdir does not exist
15906 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15907
15908 # If ld is used when linking, flag to hardcode \$libdir into a binary
15909 # during linking. This must work even if \$libdir does not exist.
15910 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
15911
15912 # Whether we need a single "-rpath" flag with a separated argument.
15913 hardcode_libdir_separator=$lt_hardcode_libdir_separator
15914
15915 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15916 # DIR into the resulting binary.
15917 hardcode_direct=$hardcode_direct
15918
15919 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15920 # DIR into the resulting binary and the resulting library dependency is
15921 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
15922 # library is relocated.
15923 hardcode_direct_absolute=$hardcode_direct_absolute
15924
15925 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15926 # into the resulting binary.
15927 hardcode_minus_L=$hardcode_minus_L
15928
15929 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15930 # into the resulting binary.
15931 hardcode_shlibpath_var=$hardcode_shlibpath_var
15932
15933 # Set to "yes" if building a shared library automatically hardcodes DIR
15934 # into the library and all subsequent libraries and executables linked
15935 # against it.
15936 hardcode_automatic=$hardcode_automatic
15937
15938 # Set to yes if linker adds runtime paths of dependent libraries
15939 # to runtime path list.
15940 inherit_rpath=$inherit_rpath
15941
15942 # Whether libtool must link a program against all its dependency libraries.
15943 link_all_deplibs=$link_all_deplibs
15944
15945 # Fix the shell variable \$srcfile for the compiler.
15946 fix_srcfile_path=$lt_fix_srcfile_path
15947
15948 # Set to "yes" if exported symbols are required.
15949 always_export_symbols=$always_export_symbols
15950
15951 # The commands to list exported symbols.
15952 export_symbols_cmds=$lt_export_symbols_cmds
15953
15954 # Symbols that should not be listed in the preloaded symbols.
15955 exclude_expsyms=$lt_exclude_expsyms
15956
15957 # Symbols that must always be exported.
15958 include_expsyms=$lt_include_expsyms
15959
15960 # Commands necessary for linking programs (against libraries) with templates.
15961 prelink_cmds=$lt_prelink_cmds
15962
15963 # Specify filename containing input files.
15964 file_list_spec=$lt_file_list_spec
15965
15966 # How to hardcode a shared library path into an executable.
15967 hardcode_action=$hardcode_action
15968
15969 # ### END LIBTOOL CONFIG
15970
15971 _LT_EOF
15972
15973 case $host_os in
15974 aix3*)
15975 cat <<\_LT_EOF >> "$cfgfile"
15976 # AIX sometimes has problems with the GCC collect2 program. For some
15977 # reason, if we set the COLLECT_NAMES environment variable, the problems
15978 # vanish in a puff of smoke.
15979 if test "X${COLLECT_NAMES+set}" != Xset; then
15980 COLLECT_NAMES=
15981 export COLLECT_NAMES
15982 fi
15983 _LT_EOF
15984 ;;
15985 esac
15986
15987
15988 ltmain="$ac_aux_dir/ltmain.sh"
15989
15990
15991 # We use sed instead of cat because bash on DJGPP gets confused if
15992 # if finds mixed CR/LF and LF-only lines. Since sed operates in
15993 # text mode, it properly converts lines to CR/LF. This bash problem
15994 # is reportedly fixed, but why not run on old versions too?
15995 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
15996 || (rm -f "$cfgfile"; exit 1)
15997
15998 case $xsi_shell in
15999 yes)
16000 cat << \_LT_EOF >> "$cfgfile"
16001
16002 # func_dirname file append nondir_replacement
16003 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
16004 # otherwise set result to NONDIR_REPLACEMENT.
16005 func_dirname ()
16006 {
16007 case ${1} in
16008 */*) func_dirname_result="${1%/*}${2}" ;;
16009 * ) func_dirname_result="${3}" ;;
16010 esac
16011 }
16012
16013 # func_basename file
16014 func_basename ()
16015 {
16016 func_basename_result="${1##*/}"
16017 }
16018
16019 # func_dirname_and_basename file append nondir_replacement
16020 # perform func_basename and func_dirname in a single function
16021 # call:
16022 # dirname: Compute the dirname of FILE. If nonempty,
16023 # add APPEND to the result, otherwise set result
16024 # to NONDIR_REPLACEMENT.
16025 # value returned in "$func_dirname_result"
16026 # basename: Compute filename of FILE.
16027 # value retuned in "$func_basename_result"
16028 # Implementation must be kept synchronized with func_dirname
16029 # and func_basename. For efficiency, we do not delegate to
16030 # those functions but instead duplicate the functionality here.
16031 func_dirname_and_basename ()
16032 {
16033 case ${1} in
16034 */*) func_dirname_result="${1%/*}${2}" ;;
16035 * ) func_dirname_result="${3}" ;;
16036 esac
16037 func_basename_result="${1##*/}"
16038 }
16039
16040 # func_stripname prefix suffix name
16041 # strip PREFIX and SUFFIX off of NAME.
16042 # PREFIX and SUFFIX must not contain globbing or regex special
16043 # characters, hashes, percent signs, but SUFFIX may contain a leading
16044 # dot (in which case that matches only a dot).
16045 func_stripname ()
16046 {
16047 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
16048 # positional parameters, so assign one to ordinary parameter first.
16049 func_stripname_result=${3}
16050 func_stripname_result=${func_stripname_result#"${1}"}
16051 func_stripname_result=${func_stripname_result%"${2}"}
16052 }
16053
16054 # func_opt_split
16055 func_opt_split ()
16056 {
16057 func_opt_split_opt=${1%%=*}
16058 func_opt_split_arg=${1#*=}
16059 }
16060
16061 # func_lo2o object
16062 func_lo2o ()
16063 {
16064 case ${1} in
16065 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
16066 *) func_lo2o_result=${1} ;;
16067 esac
16068 }
16069
16070 # func_xform libobj-or-source
16071 func_xform ()
16072 {
16073 func_xform_result=${1%.*}.lo
16074 }
16075
16076 # func_arith arithmetic-term...
16077 func_arith ()
16078 {
16079 func_arith_result=$(( $* ))
16080 }
16081
16082 # func_len string
16083 # STRING may not start with a hyphen.
16084 func_len ()
16085 {
16086 func_len_result=${#1}
16087 }
16088
16089 _LT_EOF
16090 ;;
16091 *) # Bourne compatible functions.
16092 cat << \_LT_EOF >> "$cfgfile"
16093
16094 # func_dirname file append nondir_replacement
16095 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
16096 # otherwise set result to NONDIR_REPLACEMENT.
16097 func_dirname ()
16098 {
16099 # Extract subdirectory from the argument.
16100 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
16101 if test "X$func_dirname_result" = "X${1}"; then
16102 func_dirname_result="${3}"
16103 else
16104 func_dirname_result="$func_dirname_result${2}"
16105 fi
16106 }
16107
16108 # func_basename file
16109 func_basename ()
16110 {
16111 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
16112 }
16113
16114
16115 # func_stripname prefix suffix name
16116 # strip PREFIX and SUFFIX off of NAME.
16117 # PREFIX and SUFFIX must not contain globbing or regex special
16118 # characters, hashes, percent signs, but SUFFIX may contain a leading
16119 # dot (in which case that matches only a dot).
16120 # func_strip_suffix prefix name
16121 func_stripname ()
16122 {
16123 case ${2} in
16124 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
16125 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
16126 esac
16127 }
16128
16129 # sed scripts:
16130 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
16131 my_sed_long_arg='1s/^-[^=]*=//'
16132
16133 # func_opt_split
16134 func_opt_split ()
16135 {
16136 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
16137 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
16138 }
16139
16140 # func_lo2o object
16141 func_lo2o ()
16142 {
16143 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
16144 }
16145
16146 # func_xform libobj-or-source
16147 func_xform ()
16148 {
16149 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
16150 }
16151
16152 # func_arith arithmetic-term...
16153 func_arith ()
16154 {
16155 func_arith_result=`expr "$@"`
16156 }
16157
16158 # func_len string
16159 # STRING may not start with a hyphen.
16160 func_len ()
16161 {
16162 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
16163 }
16164
16165 _LT_EOF
16166 esac
16167
16168 case $lt_shell_append in
16169 yes)
16170 cat << \_LT_EOF >> "$cfgfile"
16171
16172 # func_append var value
16173 # Append VALUE to the end of shell variable VAR.
16174 func_append ()
16175 {
16176 eval "$1+=\$2"
16177 }
16178 _LT_EOF
16179 ;;
16180 *)
16181 cat << \_LT_EOF >> "$cfgfile"
16182
16183 # func_append var value
16184 # Append VALUE to the end of shell variable VAR.
16185 func_append ()
16186 {
16187 eval "$1=\$$1\$2"
16188 }
16189
16190 _LT_EOF
16191 ;;
16192 esac
16193
16194
16195 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
16196 || (rm -f "$cfgfile"; exit 1)
16197
16198 mv -f "$cfgfile" "$ofile" ||
16199 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16200 chmod +x "$ofile"
16201
16202 ;;
16203
16204 esac
16205 done # for ac_tag
16206
16207
16208 as_fn_exit 0
16209 _ACEOF
16210 ac_clean_files=$ac_clean_files_save
16211
16212 test $ac_write_fail = 0 ||
16213 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
16214
16215
16216 # configure is writing to config.log, and then calls config.status.
16217 # config.status does its own redirection, appending to config.log.
16218 # Unfortunately, on DOS this fails, as config.log is still kept open
16219 # by configure, so config.status won't be able to write to it; its
16220 # output is simply discarded. So we exec the FD to /dev/null,
16221 # effectively closing config.log, so it can be properly (re)opened and
16222 # appended to by config.status. When coming back to configure, we
16223 # need to make the FD available again.
16224 if test "$no_create" != yes; then
16225 ac_cs_success=:
16226 ac_config_status_args=
16227 test "$silent" = yes &&
16228 ac_config_status_args="$ac_config_status_args --quiet"
16229 exec 5>/dev/null
16230 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16231 exec 5>>config.log
16232 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16233 # would make configure fail if this is the last instruction.
16234 $ac_cs_success || as_fn_exit $?
16235 fi
16236 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16237 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16238 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16239 fi
16240

Properties

Name Value
svn:executable *