ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/ircd-hybrid/releases/7.3.1/configure
Revision: 1600
Committed: Sat Oct 27 21:19:26 2012 UTC (11 years, 5 months ago) by michael
File size: 492654 byte(s)
Log Message:
- Moving releases to ircd-hybrid/releases/. Not nice, but oh well

File Contents

# Content
1 #! /bin/sh
2 # From configure.ac Id: configure.ac 1131 2011-04-08 16:56:32Z michael .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.68 for ircd-hybrid 7.3.1.
5 #
6 # Report bugs to <bugs@ircd-hybrid.org>.
7 #
8 #
9 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
10 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
11 # Foundation, Inc.
12 #
13 #
14 # This configure script is free software; the Free Software Foundation
15 # gives unlimited permission to copy, distribute and modify it.
16 ## -------------------- ##
17 ## M4sh Initialization. ##
18 ## -------------------- ##
19
20 # Be more Bourne compatible
21 DUALCASE=1; export DUALCASE # for MKS sh
22 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
23 emulate sh
24 NULLCMD=:
25 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26 # is contrary to our usage. Disable this feature.
27 alias -g '${1+"$@"}'='"$@"'
28 setopt NO_GLOB_SUBST
29 else
30 case `(set -o) 2>/dev/null` in #(
31 *posix*) :
32 set -o posix ;; #(
33 *) :
34 ;;
35 esac
36 fi
37
38
39 as_nl='
40 '
41 export as_nl
42 # Printing a long string crashes Solaris 7 /usr/bin/printf.
43 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
45 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
46 # Prefer a ksh shell builtin over an external printf program on Solaris,
47 # but without wasting forks for bash or zsh.
48 if test -z "$BASH_VERSION$ZSH_VERSION" \
49 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='print -r --'
51 as_echo_n='print -rn --'
52 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
53 as_echo='printf %s\n'
54 as_echo_n='printf %s'
55 else
56 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
57 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
58 as_echo_n='/usr/ucb/echo -n'
59 else
60 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
61 as_echo_n_body='eval
62 arg=$1;
63 case $arg in #(
64 *"$as_nl"*)
65 expr "X$arg" : "X\\(.*\\)$as_nl";
66 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
67 esac;
68 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
69 '
70 export as_echo_n_body
71 as_echo_n='sh -c $as_echo_n_body as_echo'
72 fi
73 export as_echo_body
74 as_echo='sh -c $as_echo_body as_echo'
75 fi
76
77 # The user is always right.
78 if test "${PATH_SEPARATOR+set}" != set; then
79 PATH_SEPARATOR=:
80 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
81 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
82 PATH_SEPARATOR=';'
83 }
84 fi
85
86
87 # IFS
88 # We need space, tab and new line, in precisely that order. Quoting is
89 # there to prevent editors from complaining about space-tab.
90 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
91 # splitting by setting IFS to empty value.)
92 IFS=" "" $as_nl"
93
94 # Find who we are. Look in the path if we contain no directory separator.
95 as_myself=
96 case $0 in #((
97 *[\\/]* ) as_myself=$0 ;;
98 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
99 for as_dir in $PATH
100 do
101 IFS=$as_save_IFS
102 test -z "$as_dir" && as_dir=.
103 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
104 done
105 IFS=$as_save_IFS
106
107 ;;
108 esac
109 # We did not find ourselves, most probably we were run as `sh COMMAND'
110 # in which case we are not to be found in the path.
111 if test "x$as_myself" = x; then
112 as_myself=$0
113 fi
114 if test ! -f "$as_myself"; then
115 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
116 exit 1
117 fi
118
119 # Unset variables that we do not need and which cause bugs (e.g. in
120 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
121 # suppresses any "Segmentation fault" message there. '((' could
122 # trigger a bug in pdksh 5.2.14.
123 for as_var in BASH_ENV ENV MAIL MAILPATH
124 do eval test x\${$as_var+set} = xset \
125 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
126 done
127 PS1='$ '
128 PS2='> '
129 PS4='+ '
130
131 # NLS nuisances.
132 LC_ALL=C
133 export LC_ALL
134 LANGUAGE=C
135 export LANGUAGE
136
137 # CDPATH.
138 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
139
140 if test "x$CONFIG_SHELL" = x; then
141 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
142 emulate sh
143 NULLCMD=:
144 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
145 # is contrary to our usage. Disable this feature.
146 alias -g '\${1+\"\$@\"}'='\"\$@\"'
147 setopt NO_GLOB_SUBST
148 else
149 case \`(set -o) 2>/dev/null\` in #(
150 *posix*) :
151 set -o posix ;; #(
152 *) :
153 ;;
154 esac
155 fi
156 "
157 as_required="as_fn_return () { (exit \$1); }
158 as_fn_success () { as_fn_return 0; }
159 as_fn_failure () { as_fn_return 1; }
160 as_fn_ret_success () { return 0; }
161 as_fn_ret_failure () { return 1; }
162
163 exitcode=0
164 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
165 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
166 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
167 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
168 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
169
170 else
171 exitcode=1; echo positional parameters were not saved.
172 fi
173 test x\$exitcode = x0 || exit 1"
174 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
175 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
176 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
177 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
178
179 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
180 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
181 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
182 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
183 PATH=/empty FPATH=/empty; export PATH FPATH
184 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
185 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
186 test \$(( 1 + 1 )) = 2 || exit 1"
187 if (eval "$as_required") 2>/dev/null; then :
188 as_have_required=yes
189 else
190 as_have_required=no
191 fi
192 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
193
194 else
195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
196 as_found=false
197 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
198 do
199 IFS=$as_save_IFS
200 test -z "$as_dir" && as_dir=.
201 as_found=:
202 case $as_dir in #(
203 /*)
204 for as_base in sh bash ksh sh5; do
205 # Try only shells that exist, to save several forks.
206 as_shell=$as_dir/$as_base
207 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
208 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
209 CONFIG_SHELL=$as_shell as_have_required=yes
210 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
211 break 2
212 fi
213 fi
214 done;;
215 esac
216 as_found=false
217 done
218 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
219 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
220 CONFIG_SHELL=$SHELL as_have_required=yes
221 fi; }
222 IFS=$as_save_IFS
223
224
225 if test "x$CONFIG_SHELL" != x; then :
226 # We cannot yet assume a decent shell, so we have to provide a
227 # neutralization value for shells without unset; and this also
228 # works around shells that cannot unset nonexistent variables.
229 # Preserve -v and -x to the replacement shell.
230 BASH_ENV=/dev/null
231 ENV=/dev/null
232 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
233 export CONFIG_SHELL
234 case $- in # ((((
235 *v*x* | *x*v* ) as_opts=-vx ;;
236 *v* ) as_opts=-v ;;
237 *x* ) as_opts=-x ;;
238 * ) as_opts= ;;
239 esac
240 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
241 fi
242
243 if test x$as_have_required = xno; then :
244 $as_echo "$0: This script requires a shell more modern than all"
245 $as_echo "$0: the shells that I found on your system."
246 if test x${ZSH_VERSION+set} = xset ; then
247 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
248 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
249 else
250 $as_echo "$0: Please tell bug-autoconf@gnu.org and
251 $0: bugs@ircd-hybrid.org about your system, including any
252 $0: error possibly output before this message. Then install
253 $0: a modern shell, or manually run the script under such a
254 $0: shell if you do have one."
255 fi
256 exit 1
257 fi
258 fi
259 fi
260 SHELL=${CONFIG_SHELL-/bin/sh}
261 export SHELL
262 # Unset more variables known to interfere with behavior of common tools.
263 CLICOLOR_FORCE= GREP_OPTIONS=
264 unset CLICOLOR_FORCE GREP_OPTIONS
265
266 ## --------------------- ##
267 ## M4sh Shell Functions. ##
268 ## --------------------- ##
269 # as_fn_unset VAR
270 # ---------------
271 # Portably unset VAR.
272 as_fn_unset ()
273 {
274 { eval $1=; unset $1;}
275 }
276 as_unset=as_fn_unset
277
278 # as_fn_set_status STATUS
279 # -----------------------
280 # Set $? to STATUS, without forking.
281 as_fn_set_status ()
282 {
283 return $1
284 } # as_fn_set_status
285
286 # as_fn_exit STATUS
287 # -----------------
288 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
289 as_fn_exit ()
290 {
291 set +e
292 as_fn_set_status $1
293 exit $1
294 } # as_fn_exit
295
296 # as_fn_mkdir_p
297 # -------------
298 # Create "$as_dir" as a directory, including parents if necessary.
299 as_fn_mkdir_p ()
300 {
301
302 case $as_dir in #(
303 -*) as_dir=./$as_dir;;
304 esac
305 test -d "$as_dir" || eval $as_mkdir_p || {
306 as_dirs=
307 while :; do
308 case $as_dir in #(
309 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
310 *) as_qdir=$as_dir;;
311 esac
312 as_dirs="'$as_qdir' $as_dirs"
313 as_dir=`$as_dirname -- "$as_dir" ||
314 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
315 X"$as_dir" : 'X\(//\)[^/]' \| \
316 X"$as_dir" : 'X\(//\)$' \| \
317 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
318 $as_echo X"$as_dir" |
319 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
320 s//\1/
321 q
322 }
323 /^X\(\/\/\)[^/].*/{
324 s//\1/
325 q
326 }
327 /^X\(\/\/\)$/{
328 s//\1/
329 q
330 }
331 /^X\(\/\).*/{
332 s//\1/
333 q
334 }
335 s/.*/./; q'`
336 test -d "$as_dir" && break
337 done
338 test -z "$as_dirs" || eval "mkdir $as_dirs"
339 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
340
341
342 } # as_fn_mkdir_p
343 # as_fn_append VAR VALUE
344 # ----------------------
345 # Append the text in VALUE to the end of the definition contained in VAR. Take
346 # advantage of any shell optimizations that allow amortized linear growth over
347 # repeated appends, instead of the typical quadratic growth present in naive
348 # implementations.
349 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
350 eval 'as_fn_append ()
351 {
352 eval $1+=\$2
353 }'
354 else
355 as_fn_append ()
356 {
357 eval $1=\$$1\$2
358 }
359 fi # as_fn_append
360
361 # as_fn_arith ARG...
362 # ------------------
363 # Perform arithmetic evaluation on the ARGs, and store the result in the
364 # global $as_val. Take advantage of shells that can avoid forks. The arguments
365 # must be portable across $(()) and expr.
366 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
367 eval 'as_fn_arith ()
368 {
369 as_val=$(( $* ))
370 }'
371 else
372 as_fn_arith ()
373 {
374 as_val=`expr "$@" || test $? -eq 1`
375 }
376 fi # as_fn_arith
377
378
379 # as_fn_error STATUS ERROR [LINENO LOG_FD]
380 # ----------------------------------------
381 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
382 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
383 # script with STATUS, using 1 if that was 0.
384 as_fn_error ()
385 {
386 as_status=$1; test $as_status -eq 0 && as_status=1
387 if test "$4"; then
388 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
389 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
390 fi
391 $as_echo "$as_me: error: $2" >&2
392 as_fn_exit $as_status
393 } # as_fn_error
394
395 if expr a : '\(a\)' >/dev/null 2>&1 &&
396 test "X`expr 00001 : '.*\(...\)'`" = X001; then
397 as_expr=expr
398 else
399 as_expr=false
400 fi
401
402 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
403 as_basename=basename
404 else
405 as_basename=false
406 fi
407
408 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
409 as_dirname=dirname
410 else
411 as_dirname=false
412 fi
413
414 as_me=`$as_basename -- "$0" ||
415 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
416 X"$0" : 'X\(//\)$' \| \
417 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
418 $as_echo X/"$0" |
419 sed '/^.*\/\([^/][^/]*\)\/*$/{
420 s//\1/
421 q
422 }
423 /^X\/\(\/\/\)$/{
424 s//\1/
425 q
426 }
427 /^X\/\(\/\).*/{
428 s//\1/
429 q
430 }
431 s/.*/./; q'`
432
433 # Avoid depending upon Character Ranges.
434 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
435 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
436 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
437 as_cr_digits='0123456789'
438 as_cr_alnum=$as_cr_Letters$as_cr_digits
439
440
441 as_lineno_1=$LINENO as_lineno_1a=$LINENO
442 as_lineno_2=$LINENO as_lineno_2a=$LINENO
443 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
444 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
445 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
446 sed -n '
447 p
448 /[$]LINENO/=
449 ' <$as_myself |
450 sed '
451 s/[$]LINENO.*/&-/
452 t lineno
453 b
454 :lineno
455 N
456 :loop
457 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
458 t loop
459 s/-\n.*//
460 ' >$as_me.lineno &&
461 chmod +x "$as_me.lineno" ||
462 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
463
464 # Don't try to exec as it changes $[0], causing all sort of problems
465 # (the dirname of $[0] is not the place where we might find the
466 # original and so on. Autoconf is especially sensitive to this).
467 . "./$as_me.lineno"
468 # Exit status is that of the last command.
469 exit
470 }
471
472 ECHO_C= ECHO_N= ECHO_T=
473 case `echo -n x` in #(((((
474 -n*)
475 case `echo 'xy\c'` in
476 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
477 xy) ECHO_C='\c';;
478 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
479 ECHO_T=' ';;
480 esac;;
481 *)
482 ECHO_N='-n';;
483 esac
484
485 rm -f conf$$ conf$$.exe conf$$.file
486 if test -d conf$$.dir; then
487 rm -f conf$$.dir/conf$$.file
488 else
489 rm -f conf$$.dir
490 mkdir conf$$.dir 2>/dev/null
491 fi
492 if (echo >conf$$.file) 2>/dev/null; then
493 if ln -s conf$$.file conf$$ 2>/dev/null; then
494 as_ln_s='ln -s'
495 # ... but there are two gotchas:
496 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
497 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
498 # In both cases, we have to default to `cp -p'.
499 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
500 as_ln_s='cp -p'
501 elif ln conf$$.file conf$$ 2>/dev/null; then
502 as_ln_s=ln
503 else
504 as_ln_s='cp -p'
505 fi
506 else
507 as_ln_s='cp -p'
508 fi
509 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
510 rmdir conf$$.dir 2>/dev/null
511
512 if mkdir -p . 2>/dev/null; then
513 as_mkdir_p='mkdir -p "$as_dir"'
514 else
515 test -d ./-p && rmdir ./-p
516 as_mkdir_p=false
517 fi
518
519 if test -x / >/dev/null 2>&1; then
520 as_test_x='test -x'
521 else
522 if ls -dL / >/dev/null 2>&1; then
523 as_ls_L_option=L
524 else
525 as_ls_L_option=
526 fi
527 as_test_x='
528 eval sh -c '\''
529 if test -d "$1"; then
530 test -d "$1/.";
531 else
532 case $1 in #(
533 -*)set "./$1";;
534 esac;
535 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
536 ???[sx]*):;;*)false;;esac;fi
537 '\'' sh
538 '
539 fi
540 as_executable_p=$as_test_x
541
542 # Sed expression to map a string onto a valid CPP name.
543 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
544
545 # Sed expression to map a string onto a valid variable name.
546 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
547
548 lt_ltdl_dir='libltdl'
549
550 SHELL=${CONFIG_SHELL-/bin/sh}
551
552
553 test -n "$DJDIR" || exec 7<&0 </dev/null
554 exec 6>&1
555
556 # Name of the host.
557 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
558 # so uname gets run too.
559 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
560
561 #
562 # Initializations.
563 #
564 ac_default_prefix=/usr/local
565 ac_clean_files=
566 ac_config_libobj_dir=.
567 LIBOBJS=
568 cross_compiling=no
569 subdirs=
570 MFLAGS=
571 MAKEFLAGS=
572
573 # Identity of this package.
574 PACKAGE_NAME='ircd-hybrid'
575 PACKAGE_TARNAME='ircd-hybrid'
576 PACKAGE_VERSION='7.3.1'
577 PACKAGE_STRING='ircd-hybrid 7.3.1'
578 PACKAGE_BUGREPORT='bugs@ircd-hybrid.org'
579 PACKAGE_URL=''
580
581 ac_unique_file="src/ircd.c"
582 # Factoring default headers for most tests.
583 ac_includes_default="\
584 #include <stdio.h>
585 #ifdef HAVE_SYS_TYPES_H
586 # include <sys/types.h>
587 #endif
588 #ifdef HAVE_SYS_STAT_H
589 # include <sys/stat.h>
590 #endif
591 #ifdef STDC_HEADERS
592 # include <stdlib.h>
593 # include <stddef.h>
594 #else
595 # ifdef HAVE_STDLIB_H
596 # include <stdlib.h>
597 # endif
598 #endif
599 #ifdef HAVE_STRING_H
600 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
601 # include <memory.h>
602 # endif
603 # include <string.h>
604 #endif
605 #ifdef HAVE_STRINGS_H
606 # include <strings.h>
607 #endif
608 #ifdef HAVE_INTTYPES_H
609 # include <inttypes.h>
610 #endif
611 #ifdef HAVE_STDINT_H
612 # include <stdint.h>
613 #endif
614 #ifdef HAVE_UNISTD_H
615 # include <unistd.h>
616 #endif"
617
618 ac_func_list=
619 ac_header_list=
620 ac_subst_vars='ltdl_LTLIBOBJS
621 ltdl_LIBOBJS
622 am__EXEEXT_FALSE
623 am__EXEEXT_TRUE
624 LTLIBOBJS
625 LIBOBJS
626 LOCALSTATEDIR
627 DATADIR
628 LIBDIR
629 SYSCONFDIR
630 PREFIX
631 EFNET_FALSE
632 EFNET_TRUE
633 ENABLE_SSL_FALSE
634 ENABLE_SSL_TRUE
635 ENABLE_PCRE_FALSE
636 ENABLE_PCRE_TRUE
637 LTDLOPEN
638 LT_CONFIG_H
639 CONVENIENCE_LTDL_FALSE
640 CONVENIENCE_LTDL_TRUE
641 INSTALL_LTDL_FALSE
642 INSTALL_LTDL_TRUE
643 ARGZ_H
644 sys_symbol_underscore
645 LIBADD_DL
646 LT_DLPREOPEN
647 LIBADD_DLD_LINK
648 LIBADD_SHL_LOAD
649 LIBADD_DLOPEN
650 LT_DLLOADERS
651 INCLTDL
652 LTDLINCL
653 LTDLDEPS
654 LIBLTDL
655 CPP
656 OTOOL64
657 OTOOL
658 LIPO
659 NMEDIT
660 DSYMUTIL
661 MANIFEST_TOOL
662 RANLIB
663 ac_ct_AR
664 AR
665 DLLTOOL
666 OBJDUMP
667 LN_S
668 NM
669 ac_ct_DUMPBIN
670 DUMPBIN
671 LD
672 FGREP
673 EGREP
674 GREP
675 SED
676 host_os
677 host_vendor
678 host_cpu
679 host
680 build_os
681 build_vendor
682 build_cpu
683 build
684 LIBTOOL
685 LEXLIB
686 LEX_OUTPUT_ROOT
687 LEX
688 YFLAGS
689 YACC
690 am__fastdepCC_FALSE
691 am__fastdepCC_TRUE
692 CCDEPMODE
693 AMDEPBACKSLASH
694 AMDEP_FALSE
695 AMDEP_TRUE
696 am__quote
697 am__include
698 DEPDIR
699 OBJEXT
700 EXEEXT
701 ac_ct_CC
702 CPPFLAGS
703 LDFLAGS
704 CFLAGS
705 CC
706 MAINT
707 MAINTAINER_MODE_FALSE
708 MAINTAINER_MODE_TRUE
709 am__untar
710 am__tar
711 AMTAR
712 am__leading_dot
713 SET_MAKE
714 AWK
715 mkdir_p
716 MKDIR_P
717 INSTALL_STRIP_PROGRAM
718 STRIP
719 install_sh
720 MAKEINFO
721 AUTOHEADER
722 AUTOMAKE
723 AUTOCONF
724 ACLOCAL
725 VERSION
726 PACKAGE
727 CYGPATH_W
728 am__isrc
729 INSTALL_DATA
730 INSTALL_SCRIPT
731 INSTALL_PROGRAM
732 target_alias
733 host_alias
734 build_alias
735 LIBS
736 ECHO_T
737 ECHO_N
738 ECHO_C
739 DEFS
740 mandir
741 localedir
742 libdir
743 psdir
744 pdfdir
745 dvidir
746 htmldir
747 infodir
748 docdir
749 oldincludedir
750 includedir
751 localstatedir
752 sharedstatedir
753 sysconfdir
754 datadir
755 datarootdir
756 libexecdir
757 sbindir
758 bindir
759 program_transform_name
760 prefix
761 exec_prefix
762 PACKAGE_URL
763 PACKAGE_BUGREPORT
764 PACKAGE_STRING
765 PACKAGE_VERSION
766 PACKAGE_TARNAME
767 PACKAGE_NAME
768 PATH_SEPARATOR
769 SHELL'
770 ac_subst_files=''
771 ac_user_opts='
772 enable_option_checking
773 enable_maintainer_mode
774 enable_dependency_tracking
775 enable_static
776 enable_shared
777 with_pic
778 enable_fast_install
779 with_gnu_ld
780 with_sysroot
781 enable_libtool_lock
782 with_included_ltdl
783 with_ltdl_include
784 with_ltdl_lib
785 enable_ltdl_install
786 with_zlib_path
787 enable_zlib
788 with_libpcre_path
789 enable_libpcre
790 enable_openssl
791 enable_assert
792 enable_small_net
793 enable_kqueue
794 enable_epoll
795 enable_devpoll
796 enable_rtsigio
797 enable_poll
798 enable_select
799 with_nicklen
800 with_topiclen
801 with_syslog_facility
802 enable_efnet
803 enable_halfops
804 enable_debugging
805 enable_warnings
806 enable_syslog
807 '
808 ac_precious_vars='build_alias
809 host_alias
810 target_alias
811 CC
812 CFLAGS
813 LDFLAGS
814 LIBS
815 CPPFLAGS
816 YACC
817 YFLAGS
818 CPP'
819
820
821 # Initialize some variables set by options.
822 ac_init_help=
823 ac_init_version=false
824 ac_unrecognized_opts=
825 ac_unrecognized_sep=
826 # The variables have the same names as the options, with
827 # dashes changed to underlines.
828 cache_file=/dev/null
829 exec_prefix=NONE
830 no_create=
831 no_recursion=
832 prefix=NONE
833 program_prefix=NONE
834 program_suffix=NONE
835 program_transform_name=s,x,x,
836 silent=
837 site=
838 srcdir=
839 verbose=
840 x_includes=NONE
841 x_libraries=NONE
842
843 # Installation directory options.
844 # These are left unexpanded so users can "make install exec_prefix=/foo"
845 # and all the variables that are supposed to be based on exec_prefix
846 # by default will actually change.
847 # Use braces instead of parens because sh, perl, etc. also accept them.
848 # (The list follows the same order as the GNU Coding Standards.)
849 bindir='${exec_prefix}/bin'
850 sbindir='${exec_prefix}/sbin'
851 libexecdir='${exec_prefix}/libexec'
852 datarootdir='${prefix}/share'
853 datadir='${datarootdir}'
854 sysconfdir='${prefix}/etc'
855 sharedstatedir='${prefix}/com'
856 localstatedir='${prefix}/var'
857 includedir='${prefix}/include'
858 oldincludedir='/usr/include'
859 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
860 infodir='${datarootdir}/info'
861 htmldir='${docdir}'
862 dvidir='${docdir}'
863 pdfdir='${docdir}'
864 psdir='${docdir}'
865 libdir='${exec_prefix}/lib'
866 localedir='${datarootdir}/locale'
867 mandir='${datarootdir}/man'
868
869 ac_prev=
870 ac_dashdash=
871 for ac_option
872 do
873 # If the previous option needs an argument, assign it.
874 if test -n "$ac_prev"; then
875 eval $ac_prev=\$ac_option
876 ac_prev=
877 continue
878 fi
879
880 case $ac_option in
881 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
882 *=) ac_optarg= ;;
883 *) ac_optarg=yes ;;
884 esac
885
886 # Accept the important Cygnus configure options, so we can diagnose typos.
887
888 case $ac_dashdash$ac_option in
889 --)
890 ac_dashdash=yes ;;
891
892 -bindir | --bindir | --bindi | --bind | --bin | --bi)
893 ac_prev=bindir ;;
894 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
895 bindir=$ac_optarg ;;
896
897 -build | --build | --buil | --bui | --bu)
898 ac_prev=build_alias ;;
899 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
900 build_alias=$ac_optarg ;;
901
902 -cache-file | --cache-file | --cache-fil | --cache-fi \
903 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
904 ac_prev=cache_file ;;
905 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
906 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
907 cache_file=$ac_optarg ;;
908
909 --config-cache | -C)
910 cache_file=config.cache ;;
911
912 -datadir | --datadir | --datadi | --datad)
913 ac_prev=datadir ;;
914 -datadir=* | --datadir=* | --datadi=* | --datad=*)
915 datadir=$ac_optarg ;;
916
917 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
918 | --dataroo | --dataro | --datar)
919 ac_prev=datarootdir ;;
920 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
921 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
922 datarootdir=$ac_optarg ;;
923
924 -disable-* | --disable-*)
925 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
926 # Reject names that are not valid shell variable names.
927 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
928 as_fn_error $? "invalid feature name: $ac_useropt"
929 ac_useropt_orig=$ac_useropt
930 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
931 case $ac_user_opts in
932 *"
933 "enable_$ac_useropt"
934 "*) ;;
935 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
936 ac_unrecognized_sep=', ';;
937 esac
938 eval enable_$ac_useropt=no ;;
939
940 -docdir | --docdir | --docdi | --doc | --do)
941 ac_prev=docdir ;;
942 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
943 docdir=$ac_optarg ;;
944
945 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
946 ac_prev=dvidir ;;
947 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
948 dvidir=$ac_optarg ;;
949
950 -enable-* | --enable-*)
951 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
952 # Reject names that are not valid shell variable names.
953 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
954 as_fn_error $? "invalid feature name: $ac_useropt"
955 ac_useropt_orig=$ac_useropt
956 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
957 case $ac_user_opts in
958 *"
959 "enable_$ac_useropt"
960 "*) ;;
961 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
962 ac_unrecognized_sep=', ';;
963 esac
964 eval enable_$ac_useropt=\$ac_optarg ;;
965
966 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
967 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
968 | --exec | --exe | --ex)
969 ac_prev=exec_prefix ;;
970 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
971 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
972 | --exec=* | --exe=* | --ex=*)
973 exec_prefix=$ac_optarg ;;
974
975 -gas | --gas | --ga | --g)
976 # Obsolete; use --with-gas.
977 with_gas=yes ;;
978
979 -help | --help | --hel | --he | -h)
980 ac_init_help=long ;;
981 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
982 ac_init_help=recursive ;;
983 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
984 ac_init_help=short ;;
985
986 -host | --host | --hos | --ho)
987 ac_prev=host_alias ;;
988 -host=* | --host=* | --hos=* | --ho=*)
989 host_alias=$ac_optarg ;;
990
991 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
992 ac_prev=htmldir ;;
993 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
994 | --ht=*)
995 htmldir=$ac_optarg ;;
996
997 -includedir | --includedir | --includedi | --included | --include \
998 | --includ | --inclu | --incl | --inc)
999 ac_prev=includedir ;;
1000 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1001 | --includ=* | --inclu=* | --incl=* | --inc=*)
1002 includedir=$ac_optarg ;;
1003
1004 -infodir | --infodir | --infodi | --infod | --info | --inf)
1005 ac_prev=infodir ;;
1006 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1007 infodir=$ac_optarg ;;
1008
1009 -libdir | --libdir | --libdi | --libd)
1010 ac_prev=libdir ;;
1011 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1012 libdir=$ac_optarg ;;
1013
1014 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1015 | --libexe | --libex | --libe)
1016 ac_prev=libexecdir ;;
1017 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1018 | --libexe=* | --libex=* | --libe=*)
1019 libexecdir=$ac_optarg ;;
1020
1021 -localedir | --localedir | --localedi | --localed | --locale)
1022 ac_prev=localedir ;;
1023 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1024 localedir=$ac_optarg ;;
1025
1026 -localstatedir | --localstatedir | --localstatedi | --localstated \
1027 | --localstate | --localstat | --localsta | --localst | --locals)
1028 ac_prev=localstatedir ;;
1029 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1030 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1031 localstatedir=$ac_optarg ;;
1032
1033 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1034 ac_prev=mandir ;;
1035 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1036 mandir=$ac_optarg ;;
1037
1038 -nfp | --nfp | --nf)
1039 # Obsolete; use --without-fp.
1040 with_fp=no ;;
1041
1042 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1043 | --no-cr | --no-c | -n)
1044 no_create=yes ;;
1045
1046 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1047 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1048 no_recursion=yes ;;
1049
1050 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1051 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1052 | --oldin | --oldi | --old | --ol | --o)
1053 ac_prev=oldincludedir ;;
1054 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1055 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1056 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1057 oldincludedir=$ac_optarg ;;
1058
1059 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1060 ac_prev=prefix ;;
1061 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1062 prefix=$ac_optarg ;;
1063
1064 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1065 | --program-pre | --program-pr | --program-p)
1066 ac_prev=program_prefix ;;
1067 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1068 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1069 program_prefix=$ac_optarg ;;
1070
1071 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1072 | --program-suf | --program-su | --program-s)
1073 ac_prev=program_suffix ;;
1074 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1075 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1076 program_suffix=$ac_optarg ;;
1077
1078 -program-transform-name | --program-transform-name \
1079 | --program-transform-nam | --program-transform-na \
1080 | --program-transform-n | --program-transform- \
1081 | --program-transform | --program-transfor \
1082 | --program-transfo | --program-transf \
1083 | --program-trans | --program-tran \
1084 | --progr-tra | --program-tr | --program-t)
1085 ac_prev=program_transform_name ;;
1086 -program-transform-name=* | --program-transform-name=* \
1087 | --program-transform-nam=* | --program-transform-na=* \
1088 | --program-transform-n=* | --program-transform-=* \
1089 | --program-transform=* | --program-transfor=* \
1090 | --program-transfo=* | --program-transf=* \
1091 | --program-trans=* | --program-tran=* \
1092 | --progr-tra=* | --program-tr=* | --program-t=*)
1093 program_transform_name=$ac_optarg ;;
1094
1095 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1096 ac_prev=pdfdir ;;
1097 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1098 pdfdir=$ac_optarg ;;
1099
1100 -psdir | --psdir | --psdi | --psd | --ps)
1101 ac_prev=psdir ;;
1102 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1103 psdir=$ac_optarg ;;
1104
1105 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1106 | -silent | --silent | --silen | --sile | --sil)
1107 silent=yes ;;
1108
1109 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1110 ac_prev=sbindir ;;
1111 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1112 | --sbi=* | --sb=*)
1113 sbindir=$ac_optarg ;;
1114
1115 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1116 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1117 | --sharedst | --shareds | --shared | --share | --shar \
1118 | --sha | --sh)
1119 ac_prev=sharedstatedir ;;
1120 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1121 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1122 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1123 | --sha=* | --sh=*)
1124 sharedstatedir=$ac_optarg ;;
1125
1126 -site | --site | --sit)
1127 ac_prev=site ;;
1128 -site=* | --site=* | --sit=*)
1129 site=$ac_optarg ;;
1130
1131 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1132 ac_prev=srcdir ;;
1133 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1134 srcdir=$ac_optarg ;;
1135
1136 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1137 | --syscon | --sysco | --sysc | --sys | --sy)
1138 ac_prev=sysconfdir ;;
1139 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1140 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1141 sysconfdir=$ac_optarg ;;
1142
1143 -target | --target | --targe | --targ | --tar | --ta | --t)
1144 ac_prev=target_alias ;;
1145 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1146 target_alias=$ac_optarg ;;
1147
1148 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1149 verbose=yes ;;
1150
1151 -version | --version | --versio | --versi | --vers | -V)
1152 ac_init_version=: ;;
1153
1154 -with-* | --with-*)
1155 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1156 # Reject names that are not valid shell variable names.
1157 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1158 as_fn_error $? "invalid package name: $ac_useropt"
1159 ac_useropt_orig=$ac_useropt
1160 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1161 case $ac_user_opts in
1162 *"
1163 "with_$ac_useropt"
1164 "*) ;;
1165 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1166 ac_unrecognized_sep=', ';;
1167 esac
1168 eval with_$ac_useropt=\$ac_optarg ;;
1169
1170 -without-* | --without-*)
1171 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1172 # Reject names that are not valid shell variable names.
1173 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1174 as_fn_error $? "invalid package name: $ac_useropt"
1175 ac_useropt_orig=$ac_useropt
1176 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1177 case $ac_user_opts in
1178 *"
1179 "with_$ac_useropt"
1180 "*) ;;
1181 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1182 ac_unrecognized_sep=', ';;
1183 esac
1184 eval with_$ac_useropt=no ;;
1185
1186 --x)
1187 # Obsolete; use --with-x.
1188 with_x=yes ;;
1189
1190 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1191 | --x-incl | --x-inc | --x-in | --x-i)
1192 ac_prev=x_includes ;;
1193 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1194 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1195 x_includes=$ac_optarg ;;
1196
1197 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1198 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1199 ac_prev=x_libraries ;;
1200 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1201 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1202 x_libraries=$ac_optarg ;;
1203
1204 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1205 Try \`$0 --help' for more information"
1206 ;;
1207
1208 *=*)
1209 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1210 # Reject names that are not valid shell variable names.
1211 case $ac_envvar in #(
1212 '' | [0-9]* | *[!_$as_cr_alnum]* )
1213 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1214 esac
1215 eval $ac_envvar=\$ac_optarg
1216 export $ac_envvar ;;
1217
1218 *)
1219 # FIXME: should be removed in autoconf 3.0.
1220 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1221 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1222 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1223 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1224 ;;
1225
1226 esac
1227 done
1228
1229 if test -n "$ac_prev"; then
1230 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1231 as_fn_error $? "missing argument to $ac_option"
1232 fi
1233
1234 if test -n "$ac_unrecognized_opts"; then
1235 case $enable_option_checking in
1236 no) ;;
1237 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1238 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1239 esac
1240 fi
1241
1242 # Check all directory arguments for consistency.
1243 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1244 datadir sysconfdir sharedstatedir localstatedir includedir \
1245 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1246 libdir localedir mandir
1247 do
1248 eval ac_val=\$$ac_var
1249 # Remove trailing slashes.
1250 case $ac_val in
1251 */ )
1252 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1253 eval $ac_var=\$ac_val;;
1254 esac
1255 # Be sure to have absolute directory names.
1256 case $ac_val in
1257 [\\/$]* | ?:[\\/]* ) continue;;
1258 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1259 esac
1260 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1261 done
1262
1263 # There might be people who depend on the old broken behavior: `$host'
1264 # used to hold the argument of --host etc.
1265 # FIXME: To remove some day.
1266 build=$build_alias
1267 host=$host_alias
1268 target=$target_alias
1269
1270 # FIXME: To remove some day.
1271 if test "x$host_alias" != x; then
1272 if test "x$build_alias" = x; then
1273 cross_compiling=maybe
1274 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1275 If a cross compiler is detected then cross compile mode will be used" >&2
1276 elif test "x$build_alias" != "x$host_alias"; then
1277 cross_compiling=yes
1278 fi
1279 fi
1280
1281 ac_tool_prefix=
1282 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1283
1284 test "$silent" = yes && exec 6>/dev/null
1285
1286
1287 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1288 ac_ls_di=`ls -di .` &&
1289 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1290 as_fn_error $? "working directory cannot be determined"
1291 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1292 as_fn_error $? "pwd does not report name of working directory"
1293
1294
1295 # Find the source files, if location was not specified.
1296 if test -z "$srcdir"; then
1297 ac_srcdir_defaulted=yes
1298 # Try the directory containing this script, then the parent directory.
1299 ac_confdir=`$as_dirname -- "$as_myself" ||
1300 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1301 X"$as_myself" : 'X\(//\)[^/]' \| \
1302 X"$as_myself" : 'X\(//\)$' \| \
1303 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1304 $as_echo X"$as_myself" |
1305 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1306 s//\1/
1307 q
1308 }
1309 /^X\(\/\/\)[^/].*/{
1310 s//\1/
1311 q
1312 }
1313 /^X\(\/\/\)$/{
1314 s//\1/
1315 q
1316 }
1317 /^X\(\/\).*/{
1318 s//\1/
1319 q
1320 }
1321 s/.*/./; q'`
1322 srcdir=$ac_confdir
1323 if test ! -r "$srcdir/$ac_unique_file"; then
1324 srcdir=..
1325 fi
1326 else
1327 ac_srcdir_defaulted=no
1328 fi
1329 if test ! -r "$srcdir/$ac_unique_file"; then
1330 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1331 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1332 fi
1333 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1334 ac_abs_confdir=`(
1335 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1336 pwd)`
1337 # When building in place, set srcdir=.
1338 if test "$ac_abs_confdir" = "$ac_pwd"; then
1339 srcdir=.
1340 fi
1341 # Remove unnecessary trailing slashes from srcdir.
1342 # Double slashes in file names in object file debugging info
1343 # mess up M-x gdb in Emacs.
1344 case $srcdir in
1345 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1346 esac
1347 for ac_var in $ac_precious_vars; do
1348 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1349 eval ac_env_${ac_var}_value=\$${ac_var}
1350 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1351 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1352 done
1353
1354 #
1355 # Report the --help message.
1356 #
1357 if test "$ac_init_help" = "long"; then
1358 # Omit some internal or obsolete options to make the list less imposing.
1359 # This message is too long to be a string in the A/UX 3.1 sh.
1360 cat <<_ACEOF
1361 \`configure' configures ircd-hybrid 7.3.1 to adapt to many kinds of systems.
1362
1363 Usage: $0 [OPTION]... [VAR=VALUE]...
1364
1365 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1366 VAR=VALUE. See below for descriptions of some of the useful variables.
1367
1368 Defaults for the options are specified in brackets.
1369
1370 Configuration:
1371 -h, --help display this help and exit
1372 --help=short display options specific to this package
1373 --help=recursive display the short help of all the included packages
1374 -V, --version display version information and exit
1375 -q, --quiet, --silent do not print \`checking ...' messages
1376 --cache-file=FILE cache test results in FILE [disabled]
1377 -C, --config-cache alias for \`--cache-file=config.cache'
1378 -n, --no-create do not create output files
1379 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1380
1381 Installation directories:
1382 --prefix=PREFIX install architecture-independent files in PREFIX
1383 [$ac_default_prefix]
1384 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1385 [PREFIX]
1386
1387 By default, \`make install' will install all the files in
1388 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1389 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1390 for instance \`--prefix=\$HOME'.
1391
1392 For better control, use the options below.
1393
1394 Fine tuning of the installation directories:
1395 --bindir=DIR user executables [EPREFIX/bin]
1396 --sbindir=DIR system admin executables [EPREFIX/sbin]
1397 --libexecdir=DIR program executables [EPREFIX/libexec]
1398 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1399 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1400 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1401 --libdir=DIR object code libraries [EPREFIX/lib]
1402 --includedir=DIR C header files [PREFIX/include]
1403 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1404 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1405 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1406 --infodir=DIR info documentation [DATAROOTDIR/info]
1407 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1408 --mandir=DIR man documentation [DATAROOTDIR/man]
1409 --docdir=DIR documentation root [DATAROOTDIR/doc/ircd-hybrid]
1410 --htmldir=DIR html documentation [DOCDIR]
1411 --dvidir=DIR dvi documentation [DOCDIR]
1412 --pdfdir=DIR pdf documentation [DOCDIR]
1413 --psdir=DIR ps documentation [DOCDIR]
1414 _ACEOF
1415
1416 cat <<\_ACEOF
1417
1418 Program names:
1419 --program-prefix=PREFIX prepend PREFIX to installed program names
1420 --program-suffix=SUFFIX append SUFFIX to installed program names
1421 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1422
1423 System types:
1424 --build=BUILD configure for building on BUILD [guessed]
1425 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1426 _ACEOF
1427 fi
1428
1429 if test -n "$ac_init_help"; then
1430 case $ac_init_help in
1431 short | recursive ) echo "Configuration of ircd-hybrid 7.3.1:";;
1432 esac
1433 cat <<\_ACEOF
1434
1435 Optional Features:
1436 --disable-option-checking ignore unrecognized --enable/--with options
1437 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1438 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1439 --enable-maintainer-mode enable make rules and dependencies not useful
1440 (and sometimes confusing) to the casual installer
1441 --disable-dependency-tracking speeds up one-time build
1442 --enable-dependency-tracking do not reject slow dependency extractors
1443 --enable-static[=PKGS] build static libraries [default=no]
1444 --enable-shared[=PKGS] build shared libraries [default=yes]
1445 --enable-fast-install[=PKGS]
1446 optimize for fast installation [default=yes]
1447 --disable-libtool-lock avoid locking (might break parallel builds)
1448 --enable-ltdl-install install libltdl
1449 --disable-zlib Disable ziplinks support
1450 --disable-libpcre Disable PCRE support
1451 --enable-openssl=DIR Enable OpenSSL support (DIR optional).
1452 --disable-openssl Disable OpenSSL support.
1453 --enable-assert Enable assert() statements
1454 --enable-small-net Enable small network support.
1455 --enable-kqueue Force kqueue usage.
1456 --enable-epoll Force epoll usage.
1457 --enable-devpoll Force devpoll usage.
1458 --enable-rtsigio Force rtsigio usage.
1459 --enable-poll Force poll usage.
1460 --enable-select Force select usage.
1461 --enable-efnet For IRCDs running on EFnet.
1462 --enable-halfops Enable halfops support.
1463 --enable-debugging Enable debugging.
1464 --enable-warnings Enable compiler warnings.
1465 --enable-syslog="EVENTS"
1466 Enable syslog for events: users oper (space
1467 separated in quotes; default: disabled).
1468
1469 Optional Packages:
1470 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1471 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1472 --with-pic try to use only PIC/non-PIC objects [default=use
1473 both]
1474 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1475 --with-sysroot=DIR Search for dependent libraries within DIR
1476 (or the compiler's sysroot if not specified).
1477 --with-included-ltdl use the GNU ltdl sources included here
1478 --with-ltdl-include=DIR use the ltdl headers installed in DIR
1479 --with-ltdl-lib=DIR use the libltdl.la installed in DIR
1480 --with-zlib-path=DIR Path to libz.so for ziplinks support.
1481 --with-libpcre-path=DIR Path to libpcre.so for PCRE support.
1482 --with-nicklen=<value> Set nickname length (default 9).
1483 --with-topiclen=<value> Set topic length (default 160).
1484 --with-syslog-facility=LOG
1485 Define the syslog facility to use (default:
1486 LOG_LOCAL4)
1487
1488 Some influential environment variables:
1489 CC C compiler command
1490 CFLAGS C compiler flags
1491 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1492 nonstandard directory <lib dir>
1493 LIBS libraries to pass to the linker, e.g. -l<library>
1494 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1495 you have headers in a nonstandard directory <include dir>
1496 YACC The `Yet Another Compiler Compiler' implementation to use.
1497 Defaults to the first program found out of: `bison -y', `byacc',
1498 `yacc'.
1499 YFLAGS The list of arguments that will be passed by default to $YACC.
1500 This script will default YFLAGS to the empty string to avoid a
1501 default value of `-d' given by some make applications.
1502 CPP C preprocessor
1503
1504 Use these variables to override the choices made by `configure' or to help
1505 it to find libraries and programs with nonstandard names/locations.
1506
1507 Report bugs to <bugs@ircd-hybrid.org>.
1508 _ACEOF
1509 ac_status=$?
1510 fi
1511
1512 if test "$ac_init_help" = "recursive"; then
1513 # If there are subdirs, report their specific --help.
1514 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1515 test -d "$ac_dir" ||
1516 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1517 continue
1518 ac_builddir=.
1519
1520 case "$ac_dir" in
1521 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1522 *)
1523 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1524 # A ".." for each directory in $ac_dir_suffix.
1525 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1526 case $ac_top_builddir_sub in
1527 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1528 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1529 esac ;;
1530 esac
1531 ac_abs_top_builddir=$ac_pwd
1532 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1533 # for backward compatibility:
1534 ac_top_builddir=$ac_top_build_prefix
1535
1536 case $srcdir in
1537 .) # We are building in place.
1538 ac_srcdir=.
1539 ac_top_srcdir=$ac_top_builddir_sub
1540 ac_abs_top_srcdir=$ac_pwd ;;
1541 [\\/]* | ?:[\\/]* ) # Absolute name.
1542 ac_srcdir=$srcdir$ac_dir_suffix;
1543 ac_top_srcdir=$srcdir
1544 ac_abs_top_srcdir=$srcdir ;;
1545 *) # Relative name.
1546 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1547 ac_top_srcdir=$ac_top_build_prefix$srcdir
1548 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1549 esac
1550 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1551
1552 cd "$ac_dir" || { ac_status=$?; continue; }
1553 # Check for guested configure.
1554 if test -f "$ac_srcdir/configure.gnu"; then
1555 echo &&
1556 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1557 elif test -f "$ac_srcdir/configure"; then
1558 echo &&
1559 $SHELL "$ac_srcdir/configure" --help=recursive
1560 else
1561 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1562 fi || ac_status=$?
1563 cd "$ac_pwd" || { ac_status=$?; break; }
1564 done
1565 fi
1566
1567 test -n "$ac_init_help" && exit $ac_status
1568 if $ac_init_version; then
1569 cat <<\_ACEOF
1570 ircd-hybrid configure 7.3.1
1571 generated by GNU Autoconf 2.68
1572
1573 Copyright (C) 2010 Free Software Foundation, Inc.
1574 This configure script is free software; the Free Software Foundation
1575 gives unlimited permission to copy, distribute and modify it.
1576 _ACEOF
1577 exit
1578 fi
1579
1580 ## ------------------------ ##
1581 ## Autoconf initialization. ##
1582 ## ------------------------ ##
1583
1584 # ac_fn_c_try_compile LINENO
1585 # --------------------------
1586 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1587 ac_fn_c_try_compile ()
1588 {
1589 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1590 rm -f conftest.$ac_objext
1591 if { { ac_try="$ac_compile"
1592 case "(($ac_try" in
1593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1594 *) ac_try_echo=$ac_try;;
1595 esac
1596 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1597 $as_echo "$ac_try_echo"; } >&5
1598 (eval "$ac_compile") 2>conftest.err
1599 ac_status=$?
1600 if test -s conftest.err; then
1601 grep -v '^ *+' conftest.err >conftest.er1
1602 cat conftest.er1 >&5
1603 mv -f conftest.er1 conftest.err
1604 fi
1605 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1606 test $ac_status = 0; } && {
1607 test -z "$ac_c_werror_flag" ||
1608 test ! -s conftest.err
1609 } && test -s conftest.$ac_objext; then :
1610 ac_retval=0
1611 else
1612 $as_echo "$as_me: failed program was:" >&5
1613 sed 's/^/| /' conftest.$ac_ext >&5
1614
1615 ac_retval=1
1616 fi
1617 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1618 as_fn_set_status $ac_retval
1619
1620 } # ac_fn_c_try_compile
1621
1622 # ac_fn_c_try_link LINENO
1623 # -----------------------
1624 # Try to link conftest.$ac_ext, and return whether this succeeded.
1625 ac_fn_c_try_link ()
1626 {
1627 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1628 rm -f conftest.$ac_objext conftest$ac_exeext
1629 if { { ac_try="$ac_link"
1630 case "(($ac_try" in
1631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1632 *) ac_try_echo=$ac_try;;
1633 esac
1634 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1635 $as_echo "$ac_try_echo"; } >&5
1636 (eval "$ac_link") 2>conftest.err
1637 ac_status=$?
1638 if test -s conftest.err; then
1639 grep -v '^ *+' conftest.err >conftest.er1
1640 cat conftest.er1 >&5
1641 mv -f conftest.er1 conftest.err
1642 fi
1643 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1644 test $ac_status = 0; } && {
1645 test -z "$ac_c_werror_flag" ||
1646 test ! -s conftest.err
1647 } && test -s conftest$ac_exeext && {
1648 test "$cross_compiling" = yes ||
1649 $as_test_x conftest$ac_exeext
1650 }; then :
1651 ac_retval=0
1652 else
1653 $as_echo "$as_me: failed program was:" >&5
1654 sed 's/^/| /' conftest.$ac_ext >&5
1655
1656 ac_retval=1
1657 fi
1658 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1659 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1660 # interfere with the next link command; also delete a directory that is
1661 # left behind by Apple's compiler. We do this before executing the actions.
1662 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1663 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1664 as_fn_set_status $ac_retval
1665
1666 } # ac_fn_c_try_link
1667
1668 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1669 # -------------------------------------------------------
1670 # Tests whether HEADER exists and can be compiled using the include files in
1671 # INCLUDES, setting the cache variable VAR accordingly.
1672 ac_fn_c_check_header_compile ()
1673 {
1674 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1676 $as_echo_n "checking for $2... " >&6; }
1677 if eval \${$3+:} false; then :
1678 $as_echo_n "(cached) " >&6
1679 else
1680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1681 /* end confdefs.h. */
1682 $4
1683 #include <$2>
1684 _ACEOF
1685 if ac_fn_c_try_compile "$LINENO"; then :
1686 eval "$3=yes"
1687 else
1688 eval "$3=no"
1689 fi
1690 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1691 fi
1692 eval ac_res=\$$3
1693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1694 $as_echo "$ac_res" >&6; }
1695 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1696
1697 } # ac_fn_c_check_header_compile
1698
1699 # ac_fn_c_try_cpp LINENO
1700 # ----------------------
1701 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1702 ac_fn_c_try_cpp ()
1703 {
1704 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1705 if { { ac_try="$ac_cpp conftest.$ac_ext"
1706 case "(($ac_try" in
1707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1708 *) ac_try_echo=$ac_try;;
1709 esac
1710 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1711 $as_echo "$ac_try_echo"; } >&5
1712 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1713 ac_status=$?
1714 if test -s conftest.err; then
1715 grep -v '^ *+' conftest.err >conftest.er1
1716 cat conftest.er1 >&5
1717 mv -f conftest.er1 conftest.err
1718 fi
1719 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1720 test $ac_status = 0; } > conftest.i && {
1721 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1722 test ! -s conftest.err
1723 }; then :
1724 ac_retval=0
1725 else
1726 $as_echo "$as_me: failed program was:" >&5
1727 sed 's/^/| /' conftest.$ac_ext >&5
1728
1729 ac_retval=1
1730 fi
1731 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1732 as_fn_set_status $ac_retval
1733
1734 } # ac_fn_c_try_cpp
1735
1736 # ac_fn_c_try_run LINENO
1737 # ----------------------
1738 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1739 # that executables *can* be run.
1740 ac_fn_c_try_run ()
1741 {
1742 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1743 if { { ac_try="$ac_link"
1744 case "(($ac_try" in
1745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1746 *) ac_try_echo=$ac_try;;
1747 esac
1748 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1749 $as_echo "$ac_try_echo"; } >&5
1750 (eval "$ac_link") 2>&5
1751 ac_status=$?
1752 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1753 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1754 { { case "(($ac_try" in
1755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1756 *) ac_try_echo=$ac_try;;
1757 esac
1758 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1759 $as_echo "$ac_try_echo"; } >&5
1760 (eval "$ac_try") 2>&5
1761 ac_status=$?
1762 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1763 test $ac_status = 0; }; }; then :
1764 ac_retval=0
1765 else
1766 $as_echo "$as_me: program exited with status $ac_status" >&5
1767 $as_echo "$as_me: failed program was:" >&5
1768 sed 's/^/| /' conftest.$ac_ext >&5
1769
1770 ac_retval=$ac_status
1771 fi
1772 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1773 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1774 as_fn_set_status $ac_retval
1775
1776 } # ac_fn_c_try_run
1777
1778 # ac_fn_c_check_func LINENO FUNC VAR
1779 # ----------------------------------
1780 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1781 ac_fn_c_check_func ()
1782 {
1783 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1785 $as_echo_n "checking for $2... " >&6; }
1786 if eval \${$3+:} false; then :
1787 $as_echo_n "(cached) " >&6
1788 else
1789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1790 /* end confdefs.h. */
1791 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1792 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1793 #define $2 innocuous_$2
1794
1795 /* System header to define __stub macros and hopefully few prototypes,
1796 which can conflict with char $2 (); below.
1797 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1798 <limits.h> exists even on freestanding compilers. */
1799
1800 #ifdef __STDC__
1801 # include <limits.h>
1802 #else
1803 # include <assert.h>
1804 #endif
1805
1806 #undef $2
1807
1808 /* Override any GCC internal prototype to avoid an error.
1809 Use char because int might match the return type of a GCC
1810 builtin and then its argument prototype would still apply. */
1811 #ifdef __cplusplus
1812 extern "C"
1813 #endif
1814 char $2 ();
1815 /* The GNU C library defines this for functions which it implements
1816 to always fail with ENOSYS. Some functions are actually named
1817 something starting with __ and the normal name is an alias. */
1818 #if defined __stub_$2 || defined __stub___$2
1819 choke me
1820 #endif
1821
1822 int
1823 main ()
1824 {
1825 return $2 ();
1826 ;
1827 return 0;
1828 }
1829 _ACEOF
1830 if ac_fn_c_try_link "$LINENO"; then :
1831 eval "$3=yes"
1832 else
1833 eval "$3=no"
1834 fi
1835 rm -f core conftest.err conftest.$ac_objext \
1836 conftest$ac_exeext conftest.$ac_ext
1837 fi
1838 eval ac_res=\$$3
1839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1840 $as_echo "$ac_res" >&6; }
1841 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1842
1843 } # ac_fn_c_check_func
1844
1845 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1846 # ---------------------------------------------
1847 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1848 # accordingly.
1849 ac_fn_c_check_decl ()
1850 {
1851 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1852 as_decl_name=`echo $2|sed 's/ *(.*//'`
1853 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1855 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1856 if eval \${$3+:} false; then :
1857 $as_echo_n "(cached) " >&6
1858 else
1859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1860 /* end confdefs.h. */
1861 $4
1862 int
1863 main ()
1864 {
1865 #ifndef $as_decl_name
1866 #ifdef __cplusplus
1867 (void) $as_decl_use;
1868 #else
1869 (void) $as_decl_name;
1870 #endif
1871 #endif
1872
1873 ;
1874 return 0;
1875 }
1876 _ACEOF
1877 if ac_fn_c_try_compile "$LINENO"; then :
1878 eval "$3=yes"
1879 else
1880 eval "$3=no"
1881 fi
1882 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1883 fi
1884 eval ac_res=\$$3
1885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1886 $as_echo "$ac_res" >&6; }
1887 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1888
1889 } # ac_fn_c_check_decl
1890
1891 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1892 # -------------------------------------------
1893 # Tests whether TYPE exists after having included INCLUDES, setting cache
1894 # variable VAR accordingly.
1895 ac_fn_c_check_type ()
1896 {
1897 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1899 $as_echo_n "checking for $2... " >&6; }
1900 if eval \${$3+:} false; then :
1901 $as_echo_n "(cached) " >&6
1902 else
1903 eval "$3=no"
1904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1905 /* end confdefs.h. */
1906 $4
1907 int
1908 main ()
1909 {
1910 if (sizeof ($2))
1911 return 0;
1912 ;
1913 return 0;
1914 }
1915 _ACEOF
1916 if ac_fn_c_try_compile "$LINENO"; then :
1917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1918 /* end confdefs.h. */
1919 $4
1920 int
1921 main ()
1922 {
1923 if (sizeof (($2)))
1924 return 0;
1925 ;
1926 return 0;
1927 }
1928 _ACEOF
1929 if ac_fn_c_try_compile "$LINENO"; then :
1930
1931 else
1932 eval "$3=yes"
1933 fi
1934 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1935 fi
1936 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1937 fi
1938 eval ac_res=\$$3
1939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1940 $as_echo "$ac_res" >&6; }
1941 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1942
1943 } # ac_fn_c_check_type
1944
1945 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1946 # ----------------------------------------------------
1947 # Tries to find if the field MEMBER exists in type AGGR, after including
1948 # INCLUDES, setting cache variable VAR accordingly.
1949 ac_fn_c_check_member ()
1950 {
1951 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1953 $as_echo_n "checking for $2.$3... " >&6; }
1954 if eval \${$4+:} false; then :
1955 $as_echo_n "(cached) " >&6
1956 else
1957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1958 /* end confdefs.h. */
1959 $5
1960 int
1961 main ()
1962 {
1963 static $2 ac_aggr;
1964 if (ac_aggr.$3)
1965 return 0;
1966 ;
1967 return 0;
1968 }
1969 _ACEOF
1970 if ac_fn_c_try_compile "$LINENO"; then :
1971 eval "$4=yes"
1972 else
1973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1974 /* end confdefs.h. */
1975 $5
1976 int
1977 main ()
1978 {
1979 static $2 ac_aggr;
1980 if (sizeof ac_aggr.$3)
1981 return 0;
1982 ;
1983 return 0;
1984 }
1985 _ACEOF
1986 if ac_fn_c_try_compile "$LINENO"; then :
1987 eval "$4=yes"
1988 else
1989 eval "$4=no"
1990 fi
1991 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1992 fi
1993 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1994 fi
1995 eval ac_res=\$$4
1996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1997 $as_echo "$ac_res" >&6; }
1998 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1999
2000 } # ac_fn_c_check_member
2001
2002 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2003 # -------------------------------------------------------
2004 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2005 # the include files in INCLUDES and setting the cache variable VAR
2006 # accordingly.
2007 ac_fn_c_check_header_mongrel ()
2008 {
2009 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2010 if eval \${$3+:} false; then :
2011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2012 $as_echo_n "checking for $2... " >&6; }
2013 if eval \${$3+:} false; then :
2014 $as_echo_n "(cached) " >&6
2015 fi
2016 eval ac_res=\$$3
2017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2018 $as_echo "$ac_res" >&6; }
2019 else
2020 # Is the header compilable?
2021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2022 $as_echo_n "checking $2 usability... " >&6; }
2023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2024 /* end confdefs.h. */
2025 $4
2026 #include <$2>
2027 _ACEOF
2028 if ac_fn_c_try_compile "$LINENO"; then :
2029 ac_header_compiler=yes
2030 else
2031 ac_header_compiler=no
2032 fi
2033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2035 $as_echo "$ac_header_compiler" >&6; }
2036
2037 # Is the header present?
2038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2039 $as_echo_n "checking $2 presence... " >&6; }
2040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2041 /* end confdefs.h. */
2042 #include <$2>
2043 _ACEOF
2044 if ac_fn_c_try_cpp "$LINENO"; then :
2045 ac_header_preproc=yes
2046 else
2047 ac_header_preproc=no
2048 fi
2049 rm -f conftest.err conftest.i conftest.$ac_ext
2050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2051 $as_echo "$ac_header_preproc" >&6; }
2052
2053 # So? What about this header?
2054 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2055 yes:no: )
2056 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2057 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2058 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2059 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2060 ;;
2061 no:yes:* )
2062 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2063 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2064 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2065 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2066 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2067 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2068 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2069 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2070 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2071 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2072 ( $as_echo "## ----------------------------------- ##
2073 ## Report this to bugs@ircd-hybrid.org ##
2074 ## ----------------------------------- ##"
2075 ) | sed "s/^/$as_me: WARNING: /" >&2
2076 ;;
2077 esac
2078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2079 $as_echo_n "checking for $2... " >&6; }
2080 if eval \${$3+:} false; then :
2081 $as_echo_n "(cached) " >&6
2082 else
2083 eval "$3=\$ac_header_compiler"
2084 fi
2085 eval ac_res=\$$3
2086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2087 $as_echo "$ac_res" >&6; }
2088 fi
2089 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2090
2091 } # ac_fn_c_check_header_mongrel
2092 cat >config.log <<_ACEOF
2093 This file contains any messages produced by compilers while
2094 running configure, to aid debugging if configure makes a mistake.
2095
2096 It was created by ircd-hybrid $as_me 7.3.1, which was
2097 generated by GNU Autoconf 2.68. Invocation command line was
2098
2099 $ $0 $@
2100
2101 _ACEOF
2102 exec 5>>config.log
2103 {
2104 cat <<_ASUNAME
2105 ## --------- ##
2106 ## Platform. ##
2107 ## --------- ##
2108
2109 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2110 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2111 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2112 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2113 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2114
2115 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2116 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2117
2118 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2119 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2120 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2121 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2122 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2123 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2124 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2125
2126 _ASUNAME
2127
2128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2129 for as_dir in $PATH
2130 do
2131 IFS=$as_save_IFS
2132 test -z "$as_dir" && as_dir=.
2133 $as_echo "PATH: $as_dir"
2134 done
2135 IFS=$as_save_IFS
2136
2137 } >&5
2138
2139 cat >&5 <<_ACEOF
2140
2141
2142 ## ----------- ##
2143 ## Core tests. ##
2144 ## ----------- ##
2145
2146 _ACEOF
2147
2148
2149 # Keep a trace of the command line.
2150 # Strip out --no-create and --no-recursion so they do not pile up.
2151 # Strip out --silent because we don't want to record it for future runs.
2152 # Also quote any args containing shell meta-characters.
2153 # Make two passes to allow for proper duplicate-argument suppression.
2154 ac_configure_args=
2155 ac_configure_args0=
2156 ac_configure_args1=
2157 ac_must_keep_next=false
2158 for ac_pass in 1 2
2159 do
2160 for ac_arg
2161 do
2162 case $ac_arg in
2163 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2164 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2165 | -silent | --silent | --silen | --sile | --sil)
2166 continue ;;
2167 *\'*)
2168 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2169 esac
2170 case $ac_pass in
2171 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2172 2)
2173 as_fn_append ac_configure_args1 " '$ac_arg'"
2174 if test $ac_must_keep_next = true; then
2175 ac_must_keep_next=false # Got value, back to normal.
2176 else
2177 case $ac_arg in
2178 *=* | --config-cache | -C | -disable-* | --disable-* \
2179 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2180 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2181 | -with-* | --with-* | -without-* | --without-* | --x)
2182 case "$ac_configure_args0 " in
2183 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2184 esac
2185 ;;
2186 -* ) ac_must_keep_next=true ;;
2187 esac
2188 fi
2189 as_fn_append ac_configure_args " '$ac_arg'"
2190 ;;
2191 esac
2192 done
2193 done
2194 { ac_configure_args0=; unset ac_configure_args0;}
2195 { ac_configure_args1=; unset ac_configure_args1;}
2196
2197 # When interrupted or exit'd, cleanup temporary files, and complete
2198 # config.log. We remove comments because anyway the quotes in there
2199 # would cause problems or look ugly.
2200 # WARNING: Use '\'' to represent an apostrophe within the trap.
2201 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2202 trap 'exit_status=$?
2203 # Save into config.log some information that might help in debugging.
2204 {
2205 echo
2206
2207 $as_echo "## ---------------- ##
2208 ## Cache variables. ##
2209 ## ---------------- ##"
2210 echo
2211 # The following way of writing the cache mishandles newlines in values,
2212 (
2213 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2214 eval ac_val=\$$ac_var
2215 case $ac_val in #(
2216 *${as_nl}*)
2217 case $ac_var in #(
2218 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2219 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2220 esac
2221 case $ac_var in #(
2222 _ | IFS | as_nl) ;; #(
2223 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2224 *) { eval $ac_var=; unset $ac_var;} ;;
2225 esac ;;
2226 esac
2227 done
2228 (set) 2>&1 |
2229 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2230 *${as_nl}ac_space=\ *)
2231 sed -n \
2232 "s/'\''/'\''\\\\'\'''\''/g;
2233 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2234 ;; #(
2235 *)
2236 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2237 ;;
2238 esac |
2239 sort
2240 )
2241 echo
2242
2243 $as_echo "## ----------------- ##
2244 ## Output variables. ##
2245 ## ----------------- ##"
2246 echo
2247 for ac_var in $ac_subst_vars
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
2257 if test -n "$ac_subst_files"; then
2258 $as_echo "## ------------------- ##
2259 ## File substitutions. ##
2260 ## ------------------- ##"
2261 echo
2262 for ac_var in $ac_subst_files
2263 do
2264 eval ac_val=\$$ac_var
2265 case $ac_val in
2266 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2267 esac
2268 $as_echo "$ac_var='\''$ac_val'\''"
2269 done | sort
2270 echo
2271 fi
2272
2273 if test -s confdefs.h; then
2274 $as_echo "## ----------- ##
2275 ## confdefs.h. ##
2276 ## ----------- ##"
2277 echo
2278 cat confdefs.h
2279 echo
2280 fi
2281 test "$ac_signal" != 0 &&
2282 $as_echo "$as_me: caught signal $ac_signal"
2283 $as_echo "$as_me: exit $exit_status"
2284 } >&5
2285 rm -f core *.core core.conftest.* &&
2286 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2287 exit $exit_status
2288 ' 0
2289 for ac_signal in 1 2 13 15; do
2290 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2291 done
2292 ac_signal=0
2293
2294 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2295 rm -f -r conftest* confdefs.h
2296
2297 $as_echo "/* confdefs.h */" > confdefs.h
2298
2299 # Predefined preprocessor variables.
2300
2301 cat >>confdefs.h <<_ACEOF
2302 #define PACKAGE_NAME "$PACKAGE_NAME"
2303 _ACEOF
2304
2305 cat >>confdefs.h <<_ACEOF
2306 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2307 _ACEOF
2308
2309 cat >>confdefs.h <<_ACEOF
2310 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2311 _ACEOF
2312
2313 cat >>confdefs.h <<_ACEOF
2314 #define PACKAGE_STRING "$PACKAGE_STRING"
2315 _ACEOF
2316
2317 cat >>confdefs.h <<_ACEOF
2318 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2319 _ACEOF
2320
2321 cat >>confdefs.h <<_ACEOF
2322 #define PACKAGE_URL "$PACKAGE_URL"
2323 _ACEOF
2324
2325
2326 # Let the site file select an alternate cache file if it wants to.
2327 # Prefer an explicitly selected file to automatically selected ones.
2328 ac_site_file1=NONE
2329 ac_site_file2=NONE
2330 if test -n "$CONFIG_SITE"; then
2331 # We do not want a PATH search for config.site.
2332 case $CONFIG_SITE in #((
2333 -*) ac_site_file1=./$CONFIG_SITE;;
2334 */*) ac_site_file1=$CONFIG_SITE;;
2335 *) ac_site_file1=./$CONFIG_SITE;;
2336 esac
2337 elif test "x$prefix" != xNONE; then
2338 ac_site_file1=$prefix/share/config.site
2339 ac_site_file2=$prefix/etc/config.site
2340 else
2341 ac_site_file1=$ac_default_prefix/share/config.site
2342 ac_site_file2=$ac_default_prefix/etc/config.site
2343 fi
2344 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2345 do
2346 test "x$ac_site_file" = xNONE && continue
2347 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2348 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2349 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2350 sed 's/^/| /' "$ac_site_file" >&5
2351 . "$ac_site_file" \
2352 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2353 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2354 as_fn_error $? "failed to load site script $ac_site_file
2355 See \`config.log' for more details" "$LINENO" 5; }
2356 fi
2357 done
2358
2359 if test -r "$cache_file"; then
2360 # Some versions of bash will fail to source /dev/null (special files
2361 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2362 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2363 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2364 $as_echo "$as_me: loading cache $cache_file" >&6;}
2365 case $cache_file in
2366 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2367 *) . "./$cache_file";;
2368 esac
2369 fi
2370 else
2371 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2372 $as_echo "$as_me: creating cache $cache_file" >&6;}
2373 >$cache_file
2374 fi
2375
2376 as_fn_append ac_func_list " mmap"
2377 as_fn_append ac_func_list " strtok_r"
2378 as_fn_append ac_func_list " usleep"
2379 as_fn_append ac_func_list " strlcat"
2380 as_fn_append ac_func_list " strlcpy"
2381 as_fn_append ac_func_list " socketpair"
2382 as_fn_append ac_header_list " crypt.h"
2383 as_fn_append ac_header_list " inttypes.h"
2384 as_fn_append ac_header_list " stdint.h"
2385 as_fn_append ac_header_list " sys/resource.h"
2386 as_fn_append ac_header_list " sys/param.h"
2387 as_fn_append ac_header_list " errno.h"
2388 as_fn_append ac_header_list " sys/syslog.h"
2389 as_fn_append ac_header_list " types.h"
2390 as_fn_append ac_header_list " socket.h"
2391 as_fn_append ac_header_list " sys/wait.h"
2392 as_fn_append ac_header_list " wait.h"
2393 as_fn_append ac_header_list " link.h"
2394 # Check that the precious variables saved in the cache have kept the same
2395 # value.
2396 ac_cache_corrupted=false
2397 for ac_var in $ac_precious_vars; do
2398 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2399 eval ac_new_set=\$ac_env_${ac_var}_set
2400 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2401 eval ac_new_val=\$ac_env_${ac_var}_value
2402 case $ac_old_set,$ac_new_set in
2403 set,)
2404 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2405 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2406 ac_cache_corrupted=: ;;
2407 ,set)
2408 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2409 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2410 ac_cache_corrupted=: ;;
2411 ,);;
2412 *)
2413 if test "x$ac_old_val" != "x$ac_new_val"; then
2414 # differences in whitespace do not lead to failure.
2415 ac_old_val_w=`echo x $ac_old_val`
2416 ac_new_val_w=`echo x $ac_new_val`
2417 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2418 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2419 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2420 ac_cache_corrupted=:
2421 else
2422 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2423 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2424 eval $ac_var=\$ac_old_val
2425 fi
2426 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2427 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2428 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2429 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2430 fi;;
2431 esac
2432 # Pass precious variables to config.status.
2433 if test "$ac_new_set" = set; then
2434 case $ac_new_val in
2435 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2436 *) ac_arg=$ac_var=$ac_new_val ;;
2437 esac
2438 case " $ac_configure_args " in
2439 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2440 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2441 esac
2442 fi
2443 done
2444 if $ac_cache_corrupted; then
2445 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2446 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2447 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2448 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2449 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2450 fi
2451 ## -------------------- ##
2452 ## Main body of script. ##
2453 ## -------------------- ##
2454
2455 ac_ext=c
2456 ac_cpp='$CPP $CPPFLAGS'
2457 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2458 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2459 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2460
2461
2462 am__api_version='1.11'
2463
2464 ac_aux_dir=
2465 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2466 if test -f "$ac_dir/install-sh"; then
2467 ac_aux_dir=$ac_dir
2468 ac_install_sh="$ac_aux_dir/install-sh -c"
2469 break
2470 elif test -f "$ac_dir/install.sh"; then
2471 ac_aux_dir=$ac_dir
2472 ac_install_sh="$ac_aux_dir/install.sh -c"
2473 break
2474 elif test -f "$ac_dir/shtool"; then
2475 ac_aux_dir=$ac_dir
2476 ac_install_sh="$ac_aux_dir/shtool install -c"
2477 break
2478 fi
2479 done
2480 if test -z "$ac_aux_dir"; then
2481 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2482 fi
2483
2484 # These three variables are undocumented and unsupported,
2485 # and are intended to be withdrawn in a future Autoconf release.
2486 # They can cause serious problems if a builder's source tree is in a directory
2487 # whose full name contains unusual characters.
2488 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2489 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2490 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2491
2492
2493 # Find a good install program. We prefer a C program (faster),
2494 # so one script is as good as another. But avoid the broken or
2495 # incompatible versions:
2496 # SysV /etc/install, /usr/sbin/install
2497 # SunOS /usr/etc/install
2498 # IRIX /sbin/install
2499 # AIX /bin/install
2500 # AmigaOS /C/install, which installs bootblocks on floppy discs
2501 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2502 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2503 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2504 # OS/2's system install, which has a completely different semantic
2505 # ./install, which can be erroneously created by make from ./install.sh.
2506 # Reject install programs that cannot install multiple files.
2507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2508 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2509 if test -z "$INSTALL"; then
2510 if ${ac_cv_path_install+:} false; then :
2511 $as_echo_n "(cached) " >&6
2512 else
2513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2514 for as_dir in $PATH
2515 do
2516 IFS=$as_save_IFS
2517 test -z "$as_dir" && as_dir=.
2518 # Account for people who put trailing slashes in PATH elements.
2519 case $as_dir/ in #((
2520 ./ | .// | /[cC]/* | \
2521 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2522 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2523 /usr/ucb/* ) ;;
2524 *)
2525 # OSF1 and SCO ODT 3.0 have their own names for install.
2526 # Don't use installbsd from OSF since it installs stuff as root
2527 # by default.
2528 for ac_prog in ginstall scoinst install; do
2529 for ac_exec_ext in '' $ac_executable_extensions; do
2530 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2531 if test $ac_prog = install &&
2532 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2533 # AIX install. It has an incompatible calling convention.
2534 :
2535 elif test $ac_prog = install &&
2536 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2537 # program-specific install script used by HP pwplus--don't use.
2538 :
2539 else
2540 rm -rf conftest.one conftest.two conftest.dir
2541 echo one > conftest.one
2542 echo two > conftest.two
2543 mkdir conftest.dir
2544 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2545 test -s conftest.one && test -s conftest.two &&
2546 test -s conftest.dir/conftest.one &&
2547 test -s conftest.dir/conftest.two
2548 then
2549 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2550 break 3
2551 fi
2552 fi
2553 fi
2554 done
2555 done
2556 ;;
2557 esac
2558
2559 done
2560 IFS=$as_save_IFS
2561
2562 rm -rf conftest.one conftest.two conftest.dir
2563
2564 fi
2565 if test "${ac_cv_path_install+set}" = set; then
2566 INSTALL=$ac_cv_path_install
2567 else
2568 # As a last resort, use the slow shell script. Don't cache a
2569 # value for INSTALL within a source directory, because that will
2570 # break other packages using the cache if that directory is
2571 # removed, or if the value is a relative name.
2572 INSTALL=$ac_install_sh
2573 fi
2574 fi
2575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2576 $as_echo "$INSTALL" >&6; }
2577
2578 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2579 # It thinks the first close brace ends the variable substitution.
2580 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2581
2582 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2583
2584 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2585
2586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2587 $as_echo_n "checking whether build environment is sane... " >&6; }
2588 # Just in case
2589 sleep 1
2590 echo timestamp > conftest.file
2591 # Reject unsafe characters in $srcdir or the absolute working directory
2592 # name. Accept space and tab only in the latter.
2593 am_lf='
2594 '
2595 case `pwd` in
2596 *[\\\"\#\$\&\'\`$am_lf]*)
2597 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2598 esac
2599 case $srcdir in
2600 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2601 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2602 esac
2603
2604 # Do `set' in a subshell so we don't clobber the current shell's
2605 # arguments. Must try -L first in case configure is actually a
2606 # symlink; some systems play weird games with the mod time of symlinks
2607 # (eg FreeBSD returns the mod time of the symlink's containing
2608 # directory).
2609 if (
2610 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2611 if test "$*" = "X"; then
2612 # -L didn't work.
2613 set X `ls -t "$srcdir/configure" conftest.file`
2614 fi
2615 rm -f conftest.file
2616 if test "$*" != "X $srcdir/configure conftest.file" \
2617 && test "$*" != "X conftest.file $srcdir/configure"; then
2618
2619 # If neither matched, then we have a broken ls. This can happen
2620 # if, for instance, CONFIG_SHELL is bash and it inherits a
2621 # broken ls alias from the environment. This has actually
2622 # happened. Such a system could not be considered "sane".
2623 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2624 alias in your environment" "$LINENO" 5
2625 fi
2626
2627 test "$2" = conftest.file
2628 )
2629 then
2630 # Ok.
2631 :
2632 else
2633 as_fn_error $? "newly created file is older than distributed files!
2634 Check your system clock" "$LINENO" 5
2635 fi
2636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2637 $as_echo "yes" >&6; }
2638 test "$program_prefix" != NONE &&
2639 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2640 # Use a double $ so make ignores it.
2641 test "$program_suffix" != NONE &&
2642 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2643 # Double any \ or $.
2644 # By default was `s,x,x', remove it if useless.
2645 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2646 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2647
2648 # expand $ac_aux_dir to an absolute path
2649 am_aux_dir=`cd $ac_aux_dir && pwd`
2650
2651 if test x"${MISSING+set}" != xset; then
2652 case $am_aux_dir in
2653 *\ * | *\ *)
2654 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2655 *)
2656 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2657 esac
2658 fi
2659 # Use eval to expand $SHELL
2660 if eval "$MISSING --run true"; then
2661 am_missing_run="$MISSING --run "
2662 else
2663 am_missing_run=
2664 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2665 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2666 fi
2667
2668 if test x"${install_sh}" != xset; then
2669 case $am_aux_dir in
2670 *\ * | *\ *)
2671 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2672 *)
2673 install_sh="\${SHELL} $am_aux_dir/install-sh"
2674 esac
2675 fi
2676
2677 # Installed binaries are usually stripped using `strip' when the user
2678 # run `make install-strip'. However `strip' might not be the right
2679 # tool to use in cross-compilation environments, therefore Automake
2680 # will honor the `STRIP' environment variable to overrule this program.
2681 if test "$cross_compiling" != no; then
2682 if test -n "$ac_tool_prefix"; then
2683 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2684 set dummy ${ac_tool_prefix}strip; ac_word=$2
2685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2686 $as_echo_n "checking for $ac_word... " >&6; }
2687 if ${ac_cv_prog_STRIP+:} false; then :
2688 $as_echo_n "(cached) " >&6
2689 else
2690 if test -n "$STRIP"; then
2691 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2692 else
2693 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2694 for as_dir in $PATH
2695 do
2696 IFS=$as_save_IFS
2697 test -z "$as_dir" && as_dir=.
2698 for ac_exec_ext in '' $ac_executable_extensions; do
2699 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2700 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2701 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2702 break 2
2703 fi
2704 done
2705 done
2706 IFS=$as_save_IFS
2707
2708 fi
2709 fi
2710 STRIP=$ac_cv_prog_STRIP
2711 if test -n "$STRIP"; then
2712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2713 $as_echo "$STRIP" >&6; }
2714 else
2715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2716 $as_echo "no" >&6; }
2717 fi
2718
2719
2720 fi
2721 if test -z "$ac_cv_prog_STRIP"; then
2722 ac_ct_STRIP=$STRIP
2723 # Extract the first word of "strip", so it can be a program name with args.
2724 set dummy strip; ac_word=$2
2725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2726 $as_echo_n "checking for $ac_word... " >&6; }
2727 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2728 $as_echo_n "(cached) " >&6
2729 else
2730 if test -n "$ac_ct_STRIP"; then
2731 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2732 else
2733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2734 for as_dir in $PATH
2735 do
2736 IFS=$as_save_IFS
2737 test -z "$as_dir" && as_dir=.
2738 for ac_exec_ext in '' $ac_executable_extensions; do
2739 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2740 ac_cv_prog_ac_ct_STRIP="strip"
2741 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2742 break 2
2743 fi
2744 done
2745 done
2746 IFS=$as_save_IFS
2747
2748 fi
2749 fi
2750 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2751 if test -n "$ac_ct_STRIP"; then
2752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2753 $as_echo "$ac_ct_STRIP" >&6; }
2754 else
2755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2756 $as_echo "no" >&6; }
2757 fi
2758
2759 if test "x$ac_ct_STRIP" = x; then
2760 STRIP=":"
2761 else
2762 case $cross_compiling:$ac_tool_warned in
2763 yes:)
2764 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2765 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2766 ac_tool_warned=yes ;;
2767 esac
2768 STRIP=$ac_ct_STRIP
2769 fi
2770 else
2771 STRIP="$ac_cv_prog_STRIP"
2772 fi
2773
2774 fi
2775 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2776
2777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2778 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2779 if test -z "$MKDIR_P"; then
2780 if ${ac_cv_path_mkdir+:} false; then :
2781 $as_echo_n "(cached) " >&6
2782 else
2783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2784 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2785 do
2786 IFS=$as_save_IFS
2787 test -z "$as_dir" && as_dir=.
2788 for ac_prog in mkdir gmkdir; do
2789 for ac_exec_ext in '' $ac_executable_extensions; do
2790 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2791 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2792 'mkdir (GNU coreutils) '* | \
2793 'mkdir (coreutils) '* | \
2794 'mkdir (fileutils) '4.1*)
2795 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2796 break 3;;
2797 esac
2798 done
2799 done
2800 done
2801 IFS=$as_save_IFS
2802
2803 fi
2804
2805 test -d ./--version && rmdir ./--version
2806 if test "${ac_cv_path_mkdir+set}" = set; then
2807 MKDIR_P="$ac_cv_path_mkdir -p"
2808 else
2809 # As a last resort, use the slow shell script. Don't cache a
2810 # value for MKDIR_P within a source directory, because that will
2811 # break other packages using the cache if that directory is
2812 # removed, or if the value is a relative name.
2813 MKDIR_P="$ac_install_sh -d"
2814 fi
2815 fi
2816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2817 $as_echo "$MKDIR_P" >&6; }
2818
2819 mkdir_p="$MKDIR_P"
2820 case $mkdir_p in
2821 [\\/$]* | ?:[\\/]*) ;;
2822 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2823 esac
2824
2825 for ac_prog in gawk mawk nawk awk
2826 do
2827 # Extract the first word of "$ac_prog", so it can be a program name with args.
2828 set dummy $ac_prog; ac_word=$2
2829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2830 $as_echo_n "checking for $ac_word... " >&6; }
2831 if ${ac_cv_prog_AWK+:} false; then :
2832 $as_echo_n "(cached) " >&6
2833 else
2834 if test -n "$AWK"; then
2835 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2836 else
2837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2838 for as_dir in $PATH
2839 do
2840 IFS=$as_save_IFS
2841 test -z "$as_dir" && as_dir=.
2842 for ac_exec_ext in '' $ac_executable_extensions; do
2843 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2844 ac_cv_prog_AWK="$ac_prog"
2845 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2846 break 2
2847 fi
2848 done
2849 done
2850 IFS=$as_save_IFS
2851
2852 fi
2853 fi
2854 AWK=$ac_cv_prog_AWK
2855 if test -n "$AWK"; then
2856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2857 $as_echo "$AWK" >&6; }
2858 else
2859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2860 $as_echo "no" >&6; }
2861 fi
2862
2863
2864 test -n "$AWK" && break
2865 done
2866
2867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2868 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2869 set x ${MAKE-make}
2870 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2871 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2872 $as_echo_n "(cached) " >&6
2873 else
2874 cat >conftest.make <<\_ACEOF
2875 SHELL = /bin/sh
2876 all:
2877 @echo '@@@%%%=$(MAKE)=@@@%%%'
2878 _ACEOF
2879 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2880 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2881 *@@@%%%=?*=@@@%%%*)
2882 eval ac_cv_prog_make_${ac_make}_set=yes;;
2883 *)
2884 eval ac_cv_prog_make_${ac_make}_set=no;;
2885 esac
2886 rm -f conftest.make
2887 fi
2888 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2890 $as_echo "yes" >&6; }
2891 SET_MAKE=
2892 else
2893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2894 $as_echo "no" >&6; }
2895 SET_MAKE="MAKE=${MAKE-make}"
2896 fi
2897
2898 rm -rf .tst 2>/dev/null
2899 mkdir .tst 2>/dev/null
2900 if test -d .tst; then
2901 am__leading_dot=.
2902 else
2903 am__leading_dot=_
2904 fi
2905 rmdir .tst 2>/dev/null
2906
2907 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2908 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2909 # is not polluted with repeated "-I."
2910 am__isrc=' -I$(srcdir)'
2911 # test to see if srcdir already configured
2912 if test -f $srcdir/config.status; then
2913 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2914 fi
2915 fi
2916
2917 # test whether we have cygpath
2918 if test -z "$CYGPATH_W"; then
2919 if (cygpath --version) >/dev/null 2>/dev/null; then
2920 CYGPATH_W='cygpath -w'
2921 else
2922 CYGPATH_W=echo
2923 fi
2924 fi
2925
2926
2927 # Define the identity of the package.
2928 PACKAGE='ircd-hybrid'
2929 VERSION='7.3.1'
2930
2931
2932 cat >>confdefs.h <<_ACEOF
2933 #define PACKAGE "$PACKAGE"
2934 _ACEOF
2935
2936
2937 cat >>confdefs.h <<_ACEOF
2938 #define VERSION "$VERSION"
2939 _ACEOF
2940
2941 # Some tools Automake needs.
2942
2943 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2944
2945
2946 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2947
2948
2949 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2950
2951
2952 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2953
2954
2955 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2956
2957 # We need awk for the "check" target. The system "awk" is bad on
2958 # some platforms.
2959 # Always define AMTAR for backward compatibility.
2960
2961 AMTAR=${AMTAR-"${am_missing_run}tar"}
2962
2963 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2964
2965
2966
2967
2968
2969
2970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2971 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2972 # Check whether --enable-maintainer-mode was given.
2973 if test "${enable_maintainer_mode+set}" = set; then :
2974 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2975 else
2976 USE_MAINTAINER_MODE=no
2977 fi
2978
2979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2980 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2981 if test $USE_MAINTAINER_MODE = yes; then
2982 MAINTAINER_MODE_TRUE=
2983 MAINTAINER_MODE_FALSE='#'
2984 else
2985 MAINTAINER_MODE_TRUE='#'
2986 MAINTAINER_MODE_FALSE=
2987 fi
2988
2989 MAINT=$MAINTAINER_MODE_TRUE
2990
2991
2992 ac_config_headers="$ac_config_headers config.h"
2993
2994
2995
2996 # Checks for programs.
2997 DEPDIR="${am__leading_dot}deps"
2998
2999 ac_config_commands="$ac_config_commands depfiles"
3000
3001
3002 am_make=${MAKE-make}
3003 cat > confinc << 'END'
3004 am__doit:
3005 @echo this is the am__doit target
3006 .PHONY: am__doit
3007 END
3008 # If we don't find an include directive, just comment out the code.
3009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3010 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3011 am__include="#"
3012 am__quote=
3013 _am_result=none
3014 # First try GNU make style include.
3015 echo "include confinc" > confmf
3016 # Ignore all kinds of additional output from `make'.
3017 case `$am_make -s -f confmf 2> /dev/null` in #(
3018 *the\ am__doit\ target*)
3019 am__include=include
3020 am__quote=
3021 _am_result=GNU
3022 ;;
3023 esac
3024 # Now try BSD make style include.
3025 if test "$am__include" = "#"; then
3026 echo '.include "confinc"' > confmf
3027 case `$am_make -s -f confmf 2> /dev/null` in #(
3028 *the\ am__doit\ target*)
3029 am__include=.include
3030 am__quote="\""
3031 _am_result=BSD
3032 ;;
3033 esac
3034 fi
3035
3036
3037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3038 $as_echo "$_am_result" >&6; }
3039 rm -f confinc confmf
3040
3041 # Check whether --enable-dependency-tracking was given.
3042 if test "${enable_dependency_tracking+set}" = set; then :
3043 enableval=$enable_dependency_tracking;
3044 fi
3045
3046 if test "x$enable_dependency_tracking" != xno; then
3047 am_depcomp="$ac_aux_dir/depcomp"
3048 AMDEPBACKSLASH='\'
3049 fi
3050 if test "x$enable_dependency_tracking" != xno; then
3051 AMDEP_TRUE=
3052 AMDEP_FALSE='#'
3053 else
3054 AMDEP_TRUE='#'
3055 AMDEP_FALSE=
3056 fi
3057
3058
3059 ac_ext=c
3060 ac_cpp='$CPP $CPPFLAGS'
3061 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3062 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3063 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3064 if test -n "$ac_tool_prefix"; then
3065 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3066 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3068 $as_echo_n "checking for $ac_word... " >&6; }
3069 if ${ac_cv_prog_CC+:} false; then :
3070 $as_echo_n "(cached) " >&6
3071 else
3072 if test -n "$CC"; then
3073 ac_cv_prog_CC="$CC" # Let the user override the test.
3074 else
3075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3076 for as_dir in $PATH
3077 do
3078 IFS=$as_save_IFS
3079 test -z "$as_dir" && as_dir=.
3080 for ac_exec_ext in '' $ac_executable_extensions; do
3081 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3082 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3083 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3084 break 2
3085 fi
3086 done
3087 done
3088 IFS=$as_save_IFS
3089
3090 fi
3091 fi
3092 CC=$ac_cv_prog_CC
3093 if test -n "$CC"; then
3094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3095 $as_echo "$CC" >&6; }
3096 else
3097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3098 $as_echo "no" >&6; }
3099 fi
3100
3101
3102 fi
3103 if test -z "$ac_cv_prog_CC"; then
3104 ac_ct_CC=$CC
3105 # Extract the first word of "gcc", so it can be a program name with args.
3106 set dummy gcc; ac_word=$2
3107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3108 $as_echo_n "checking for $ac_word... " >&6; }
3109 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3110 $as_echo_n "(cached) " >&6
3111 else
3112 if test -n "$ac_ct_CC"; then
3113 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3114 else
3115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3116 for as_dir in $PATH
3117 do
3118 IFS=$as_save_IFS
3119 test -z "$as_dir" && as_dir=.
3120 for ac_exec_ext in '' $ac_executable_extensions; do
3121 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3122 ac_cv_prog_ac_ct_CC="gcc"
3123 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3124 break 2
3125 fi
3126 done
3127 done
3128 IFS=$as_save_IFS
3129
3130 fi
3131 fi
3132 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3133 if test -n "$ac_ct_CC"; then
3134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3135 $as_echo "$ac_ct_CC" >&6; }
3136 else
3137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3138 $as_echo "no" >&6; }
3139 fi
3140
3141 if test "x$ac_ct_CC" = x; then
3142 CC=""
3143 else
3144 case $cross_compiling:$ac_tool_warned in
3145 yes:)
3146 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3147 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3148 ac_tool_warned=yes ;;
3149 esac
3150 CC=$ac_ct_CC
3151 fi
3152 else
3153 CC="$ac_cv_prog_CC"
3154 fi
3155
3156 if test -z "$CC"; then
3157 if test -n "$ac_tool_prefix"; then
3158 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3159 set dummy ${ac_tool_prefix}cc; ac_word=$2
3160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3161 $as_echo_n "checking for $ac_word... " >&6; }
3162 if ${ac_cv_prog_CC+:} false; then :
3163 $as_echo_n "(cached) " >&6
3164 else
3165 if test -n "$CC"; then
3166 ac_cv_prog_CC="$CC" # Let the user override the test.
3167 else
3168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3169 for as_dir in $PATH
3170 do
3171 IFS=$as_save_IFS
3172 test -z "$as_dir" && as_dir=.
3173 for ac_exec_ext in '' $ac_executable_extensions; do
3174 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3175 ac_cv_prog_CC="${ac_tool_prefix}cc"
3176 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3177 break 2
3178 fi
3179 done
3180 done
3181 IFS=$as_save_IFS
3182
3183 fi
3184 fi
3185 CC=$ac_cv_prog_CC
3186 if test -n "$CC"; then
3187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3188 $as_echo "$CC" >&6; }
3189 else
3190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3191 $as_echo "no" >&6; }
3192 fi
3193
3194
3195 fi
3196 fi
3197 if test -z "$CC"; then
3198 # Extract the first word of "cc", so it can be a program name with args.
3199 set dummy cc; ac_word=$2
3200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3201 $as_echo_n "checking for $ac_word... " >&6; }
3202 if ${ac_cv_prog_CC+:} false; then :
3203 $as_echo_n "(cached) " >&6
3204 else
3205 if test -n "$CC"; then
3206 ac_cv_prog_CC="$CC" # Let the user override the test.
3207 else
3208 ac_prog_rejected=no
3209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3210 for as_dir in $PATH
3211 do
3212 IFS=$as_save_IFS
3213 test -z "$as_dir" && as_dir=.
3214 for ac_exec_ext in '' $ac_executable_extensions; do
3215 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3216 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3217 ac_prog_rejected=yes
3218 continue
3219 fi
3220 ac_cv_prog_CC="cc"
3221 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3222 break 2
3223 fi
3224 done
3225 done
3226 IFS=$as_save_IFS
3227
3228 if test $ac_prog_rejected = yes; then
3229 # We found a bogon in the path, so make sure we never use it.
3230 set dummy $ac_cv_prog_CC
3231 shift
3232 if test $# != 0; then
3233 # We chose a different compiler from the bogus one.
3234 # However, it has the same basename, so the bogon will be chosen
3235 # first if we set CC to just the basename; use the full file name.
3236 shift
3237 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3238 fi
3239 fi
3240 fi
3241 fi
3242 CC=$ac_cv_prog_CC
3243 if test -n "$CC"; then
3244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3245 $as_echo "$CC" >&6; }
3246 else
3247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3248 $as_echo "no" >&6; }
3249 fi
3250
3251
3252 fi
3253 if test -z "$CC"; then
3254 if test -n "$ac_tool_prefix"; then
3255 for ac_prog in cl.exe
3256 do
3257 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3258 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3260 $as_echo_n "checking for $ac_word... " >&6; }
3261 if ${ac_cv_prog_CC+:} false; then :
3262 $as_echo_n "(cached) " >&6
3263 else
3264 if test -n "$CC"; then
3265 ac_cv_prog_CC="$CC" # Let the user override the test.
3266 else
3267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3268 for as_dir in $PATH
3269 do
3270 IFS=$as_save_IFS
3271 test -z "$as_dir" && as_dir=.
3272 for ac_exec_ext in '' $ac_executable_extensions; do
3273 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3274 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3275 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3276 break 2
3277 fi
3278 done
3279 done
3280 IFS=$as_save_IFS
3281
3282 fi
3283 fi
3284 CC=$ac_cv_prog_CC
3285 if test -n "$CC"; then
3286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3287 $as_echo "$CC" >&6; }
3288 else
3289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3290 $as_echo "no" >&6; }
3291 fi
3292
3293
3294 test -n "$CC" && break
3295 done
3296 fi
3297 if test -z "$CC"; then
3298 ac_ct_CC=$CC
3299 for ac_prog in cl.exe
3300 do
3301 # Extract the first word of "$ac_prog", so it can be a program name with args.
3302 set dummy $ac_prog; ac_word=$2
3303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3304 $as_echo_n "checking for $ac_word... " >&6; }
3305 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3306 $as_echo_n "(cached) " >&6
3307 else
3308 if test -n "$ac_ct_CC"; then
3309 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3310 else
3311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3312 for as_dir in $PATH
3313 do
3314 IFS=$as_save_IFS
3315 test -z "$as_dir" && as_dir=.
3316 for ac_exec_ext in '' $ac_executable_extensions; do
3317 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3318 ac_cv_prog_ac_ct_CC="$ac_prog"
3319 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3320 break 2
3321 fi
3322 done
3323 done
3324 IFS=$as_save_IFS
3325
3326 fi
3327 fi
3328 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3329 if test -n "$ac_ct_CC"; then
3330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3331 $as_echo "$ac_ct_CC" >&6; }
3332 else
3333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3334 $as_echo "no" >&6; }
3335 fi
3336
3337
3338 test -n "$ac_ct_CC" && break
3339 done
3340
3341 if test "x$ac_ct_CC" = x; then
3342 CC=""
3343 else
3344 case $cross_compiling:$ac_tool_warned in
3345 yes:)
3346 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3347 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3348 ac_tool_warned=yes ;;
3349 esac
3350 CC=$ac_ct_CC
3351 fi
3352 fi
3353
3354 fi
3355
3356
3357 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3358 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3359 as_fn_error $? "no acceptable C compiler found in \$PATH
3360 See \`config.log' for more details" "$LINENO" 5; }
3361
3362 # Provide some information about the compiler.
3363 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3364 set X $ac_compile
3365 ac_compiler=$2
3366 for ac_option in --version -v -V -qversion; do
3367 { { ac_try="$ac_compiler $ac_option >&5"
3368 case "(($ac_try" in
3369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3370 *) ac_try_echo=$ac_try;;
3371 esac
3372 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3373 $as_echo "$ac_try_echo"; } >&5
3374 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3375 ac_status=$?
3376 if test -s conftest.err; then
3377 sed '10a\
3378 ... rest of stderr output deleted ...
3379 10q' conftest.err >conftest.er1
3380 cat conftest.er1 >&5
3381 fi
3382 rm -f conftest.er1 conftest.err
3383 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3384 test $ac_status = 0; }
3385 done
3386
3387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3388 /* end confdefs.h. */
3389
3390 int
3391 main ()
3392 {
3393
3394 ;
3395 return 0;
3396 }
3397 _ACEOF
3398 ac_clean_files_save=$ac_clean_files
3399 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3400 # Try to create an executable without -o first, disregard a.out.
3401 # It will help us diagnose broken compilers, and finding out an intuition
3402 # of exeext.
3403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3404 $as_echo_n "checking whether the C compiler works... " >&6; }
3405 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3406
3407 # The possible output files:
3408 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3409
3410 ac_rmfiles=
3411 for ac_file in $ac_files
3412 do
3413 case $ac_file in
3414 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3415 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3416 esac
3417 done
3418 rm -f $ac_rmfiles
3419
3420 if { { ac_try="$ac_link_default"
3421 case "(($ac_try" in
3422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3423 *) ac_try_echo=$ac_try;;
3424 esac
3425 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3426 $as_echo "$ac_try_echo"; } >&5
3427 (eval "$ac_link_default") 2>&5
3428 ac_status=$?
3429 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3430 test $ac_status = 0; }; then :
3431 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3432 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3433 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3434 # so that the user can short-circuit this test for compilers unknown to
3435 # Autoconf.
3436 for ac_file in $ac_files ''
3437 do
3438 test -f "$ac_file" || continue
3439 case $ac_file in
3440 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3441 ;;
3442 [ab].out )
3443 # We found the default executable, but exeext='' is most
3444 # certainly right.
3445 break;;
3446 *.* )
3447 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3448 then :; else
3449 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3450 fi
3451 # We set ac_cv_exeext here because the later test for it is not
3452 # safe: cross compilers may not add the suffix if given an `-o'
3453 # argument, so we may need to know it at that point already.
3454 # Even if this section looks crufty: it has the advantage of
3455 # actually working.
3456 break;;
3457 * )
3458 break;;
3459 esac
3460 done
3461 test "$ac_cv_exeext" = no && ac_cv_exeext=
3462
3463 else
3464 ac_file=''
3465 fi
3466 if test -z "$ac_file"; then :
3467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3468 $as_echo "no" >&6; }
3469 $as_echo "$as_me: failed program was:" >&5
3470 sed 's/^/| /' conftest.$ac_ext >&5
3471
3472 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3473 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3474 as_fn_error 77 "C compiler cannot create executables
3475 See \`config.log' for more details" "$LINENO" 5; }
3476 else
3477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3478 $as_echo "yes" >&6; }
3479 fi
3480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3481 $as_echo_n "checking for C compiler default output file name... " >&6; }
3482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3483 $as_echo "$ac_file" >&6; }
3484 ac_exeext=$ac_cv_exeext
3485
3486 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3487 ac_clean_files=$ac_clean_files_save
3488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3489 $as_echo_n "checking for suffix of executables... " >&6; }
3490 if { { ac_try="$ac_link"
3491 case "(($ac_try" in
3492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3493 *) ac_try_echo=$ac_try;;
3494 esac
3495 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3496 $as_echo "$ac_try_echo"; } >&5
3497 (eval "$ac_link") 2>&5
3498 ac_status=$?
3499 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3500 test $ac_status = 0; }; then :
3501 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3502 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3503 # work properly (i.e., refer to `conftest.exe'), while it won't with
3504 # `rm'.
3505 for ac_file in conftest.exe conftest conftest.*; do
3506 test -f "$ac_file" || continue
3507 case $ac_file in
3508 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3509 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3510 break;;
3511 * ) break;;
3512 esac
3513 done
3514 else
3515 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3516 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3517 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3518 See \`config.log' for more details" "$LINENO" 5; }
3519 fi
3520 rm -f conftest conftest$ac_cv_exeext
3521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3522 $as_echo "$ac_cv_exeext" >&6; }
3523
3524 rm -f conftest.$ac_ext
3525 EXEEXT=$ac_cv_exeext
3526 ac_exeext=$EXEEXT
3527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3528 /* end confdefs.h. */
3529 #include <stdio.h>
3530 int
3531 main ()
3532 {
3533 FILE *f = fopen ("conftest.out", "w");
3534 return ferror (f) || fclose (f) != 0;
3535
3536 ;
3537 return 0;
3538 }
3539 _ACEOF
3540 ac_clean_files="$ac_clean_files conftest.out"
3541 # Check that the compiler produces executables we can run. If not, either
3542 # the compiler is broken, or we cross compile.
3543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3544 $as_echo_n "checking whether we are cross compiling... " >&6; }
3545 if test "$cross_compiling" != yes; then
3546 { { ac_try="$ac_link"
3547 case "(($ac_try" in
3548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3549 *) ac_try_echo=$ac_try;;
3550 esac
3551 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3552 $as_echo "$ac_try_echo"; } >&5
3553 (eval "$ac_link") 2>&5
3554 ac_status=$?
3555 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3556 test $ac_status = 0; }
3557 if { ac_try='./conftest$ac_cv_exeext'
3558 { { case "(($ac_try" in
3559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3560 *) ac_try_echo=$ac_try;;
3561 esac
3562 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3563 $as_echo "$ac_try_echo"; } >&5
3564 (eval "$ac_try") 2>&5
3565 ac_status=$?
3566 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3567 test $ac_status = 0; }; }; then
3568 cross_compiling=no
3569 else
3570 if test "$cross_compiling" = maybe; then
3571 cross_compiling=yes
3572 else
3573 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3574 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3575 as_fn_error $? "cannot run C compiled programs.
3576 If you meant to cross compile, use \`--host'.
3577 See \`config.log' for more details" "$LINENO" 5; }
3578 fi
3579 fi
3580 fi
3581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3582 $as_echo "$cross_compiling" >&6; }
3583
3584 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3585 ac_clean_files=$ac_clean_files_save
3586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3587 $as_echo_n "checking for suffix of object files... " >&6; }
3588 if ${ac_cv_objext+:} false; then :
3589 $as_echo_n "(cached) " >&6
3590 else
3591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3592 /* end confdefs.h. */
3593
3594 int
3595 main ()
3596 {
3597
3598 ;
3599 return 0;
3600 }
3601 _ACEOF
3602 rm -f conftest.o conftest.obj
3603 if { { ac_try="$ac_compile"
3604 case "(($ac_try" in
3605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3606 *) ac_try_echo=$ac_try;;
3607 esac
3608 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3609 $as_echo "$ac_try_echo"; } >&5
3610 (eval "$ac_compile") 2>&5
3611 ac_status=$?
3612 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3613 test $ac_status = 0; }; then :
3614 for ac_file in conftest.o conftest.obj conftest.*; do
3615 test -f "$ac_file" || continue;
3616 case $ac_file in
3617 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3618 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3619 break;;
3620 esac
3621 done
3622 else
3623 $as_echo "$as_me: failed program was:" >&5
3624 sed 's/^/| /' conftest.$ac_ext >&5
3625
3626 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3627 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3628 as_fn_error $? "cannot compute suffix of object files: cannot compile
3629 See \`config.log' for more details" "$LINENO" 5; }
3630 fi
3631 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3632 fi
3633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3634 $as_echo "$ac_cv_objext" >&6; }
3635 OBJEXT=$ac_cv_objext
3636 ac_objext=$OBJEXT
3637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3638 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3639 if ${ac_cv_c_compiler_gnu+:} false; then :
3640 $as_echo_n "(cached) " >&6
3641 else
3642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3643 /* end confdefs.h. */
3644
3645 int
3646 main ()
3647 {
3648 #ifndef __GNUC__
3649 choke me
3650 #endif
3651
3652 ;
3653 return 0;
3654 }
3655 _ACEOF
3656 if ac_fn_c_try_compile "$LINENO"; then :
3657 ac_compiler_gnu=yes
3658 else
3659 ac_compiler_gnu=no
3660 fi
3661 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3662 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3663
3664 fi
3665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3666 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3667 if test $ac_compiler_gnu = yes; then
3668 GCC=yes
3669 else
3670 GCC=
3671 fi
3672 ac_test_CFLAGS=${CFLAGS+set}
3673 ac_save_CFLAGS=$CFLAGS
3674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3675 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3676 if ${ac_cv_prog_cc_g+:} false; then :
3677 $as_echo_n "(cached) " >&6
3678 else
3679 ac_save_c_werror_flag=$ac_c_werror_flag
3680 ac_c_werror_flag=yes
3681 ac_cv_prog_cc_g=no
3682 CFLAGS="-g"
3683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3684 /* end confdefs.h. */
3685
3686 int
3687 main ()
3688 {
3689
3690 ;
3691 return 0;
3692 }
3693 _ACEOF
3694 if ac_fn_c_try_compile "$LINENO"; then :
3695 ac_cv_prog_cc_g=yes
3696 else
3697 CFLAGS=""
3698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3699 /* end confdefs.h. */
3700
3701 int
3702 main ()
3703 {
3704
3705 ;
3706 return 0;
3707 }
3708 _ACEOF
3709 if ac_fn_c_try_compile "$LINENO"; then :
3710
3711 else
3712 ac_c_werror_flag=$ac_save_c_werror_flag
3713 CFLAGS="-g"
3714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3715 /* end confdefs.h. */
3716
3717 int
3718 main ()
3719 {
3720
3721 ;
3722 return 0;
3723 }
3724 _ACEOF
3725 if ac_fn_c_try_compile "$LINENO"; then :
3726 ac_cv_prog_cc_g=yes
3727 fi
3728 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3729 fi
3730 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3731 fi
3732 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3733 ac_c_werror_flag=$ac_save_c_werror_flag
3734 fi
3735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3736 $as_echo "$ac_cv_prog_cc_g" >&6; }
3737 if test "$ac_test_CFLAGS" = set; then
3738 CFLAGS=$ac_save_CFLAGS
3739 elif test $ac_cv_prog_cc_g = yes; then
3740 if test "$GCC" = yes; then
3741 CFLAGS="-g -O2"
3742 else
3743 CFLAGS="-g"
3744 fi
3745 else
3746 if test "$GCC" = yes; then
3747 CFLAGS="-O2"
3748 else
3749 CFLAGS=
3750 fi
3751 fi
3752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3753 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3754 if ${ac_cv_prog_cc_c89+:} false; then :
3755 $as_echo_n "(cached) " >&6
3756 else
3757 ac_cv_prog_cc_c89=no
3758 ac_save_CC=$CC
3759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3760 /* end confdefs.h. */
3761 #include <stdarg.h>
3762 #include <stdio.h>
3763 #include <sys/types.h>
3764 #include <sys/stat.h>
3765 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3766 struct buf { int x; };
3767 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3768 static char *e (p, i)
3769 char **p;
3770 int i;
3771 {
3772 return p[i];
3773 }
3774 static char *f (char * (*g) (char **, int), char **p, ...)
3775 {
3776 char *s;
3777 va_list v;
3778 va_start (v,p);
3779 s = g (p, va_arg (v,int));
3780 va_end (v);
3781 return s;
3782 }
3783
3784 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3785 function prototypes and stuff, but not '\xHH' hex character constants.
3786 These don't provoke an error unfortunately, instead are silently treated
3787 as 'x'. The following induces an error, until -std is added to get
3788 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3789 array size at least. It's necessary to write '\x00'==0 to get something
3790 that's true only with -std. */
3791 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3792
3793 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3794 inside strings and character constants. */
3795 #define FOO(x) 'x'
3796 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3797
3798 int test (int i, double x);
3799 struct s1 {int (*f) (int a);};
3800 struct s2 {int (*f) (double a);};
3801 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3802 int argc;
3803 char **argv;
3804 int
3805 main ()
3806 {
3807 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3808 ;
3809 return 0;
3810 }
3811 _ACEOF
3812 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3813 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3814 do
3815 CC="$ac_save_CC $ac_arg"
3816 if ac_fn_c_try_compile "$LINENO"; then :
3817 ac_cv_prog_cc_c89=$ac_arg
3818 fi
3819 rm -f core conftest.err conftest.$ac_objext
3820 test "x$ac_cv_prog_cc_c89" != "xno" && break
3821 done
3822 rm -f conftest.$ac_ext
3823 CC=$ac_save_CC
3824
3825 fi
3826 # AC_CACHE_VAL
3827 case "x$ac_cv_prog_cc_c89" in
3828 x)
3829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3830 $as_echo "none needed" >&6; } ;;
3831 xno)
3832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3833 $as_echo "unsupported" >&6; } ;;
3834 *)
3835 CC="$CC $ac_cv_prog_cc_c89"
3836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3837 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3838 esac
3839 if test "x$ac_cv_prog_cc_c89" != xno; then :
3840
3841 fi
3842
3843 ac_ext=c
3844 ac_cpp='$CPP $CPPFLAGS'
3845 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3846 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3847 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3848
3849 depcc="$CC" am_compiler_list=
3850
3851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3852 $as_echo_n "checking dependency style of $depcc... " >&6; }
3853 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3854 $as_echo_n "(cached) " >&6
3855 else
3856 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3857 # We make a subdir and do the tests there. Otherwise we can end up
3858 # making bogus files that we don't know about and never remove. For
3859 # instance it was reported that on HP-UX the gcc test will end up
3860 # making a dummy file named `D' -- because `-MD' means `put the output
3861 # in D'.
3862 mkdir conftest.dir
3863 # Copy depcomp to subdir because otherwise we won't find it if we're
3864 # using a relative directory.
3865 cp "$am_depcomp" conftest.dir
3866 cd conftest.dir
3867 # We will build objects and dependencies in a subdirectory because
3868 # it helps to detect inapplicable dependency modes. For instance
3869 # both Tru64's cc and ICC support -MD to output dependencies as a
3870 # side effect of compilation, but ICC will put the dependencies in
3871 # the current directory while Tru64 will put them in the object
3872 # directory.
3873 mkdir sub
3874
3875 am_cv_CC_dependencies_compiler_type=none
3876 if test "$am_compiler_list" = ""; then
3877 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3878 fi
3879 am__universal=false
3880 case " $depcc " in #(
3881 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3882 esac
3883
3884 for depmode in $am_compiler_list; do
3885 # Setup a source with many dependencies, because some compilers
3886 # like to wrap large dependency lists on column 80 (with \), and
3887 # we should not choose a depcomp mode which is confused by this.
3888 #
3889 # We need to recreate these files for each test, as the compiler may
3890 # overwrite some of them when testing with obscure command lines.
3891 # This happens at least with the AIX C compiler.
3892 : > sub/conftest.c
3893 for i in 1 2 3 4 5 6; do
3894 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3895 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3896 # Solaris 8's {/usr,}/bin/sh.
3897 touch sub/conftst$i.h
3898 done
3899 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3900
3901 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3902 # mode. It turns out that the SunPro C++ compiler does not properly
3903 # handle `-M -o', and we need to detect this. Also, some Intel
3904 # versions had trouble with output in subdirs
3905 am__obj=sub/conftest.${OBJEXT-o}
3906 am__minus_obj="-o $am__obj"
3907 case $depmode in
3908 gcc)
3909 # This depmode causes a compiler race in universal mode.
3910 test "$am__universal" = false || continue
3911 ;;
3912 nosideeffect)
3913 # after this tag, mechanisms are not by side-effect, so they'll
3914 # only be used when explicitly requested
3915 if test "x$enable_dependency_tracking" = xyes; then
3916 continue
3917 else
3918 break
3919 fi
3920 ;;
3921 msvisualcpp | msvcmsys)
3922 # This compiler won't grok `-c -o', but also, the minuso test has
3923 # not run yet. These depmodes are late enough in the game, and
3924 # so weak that their functioning should not be impacted.
3925 am__obj=conftest.${OBJEXT-o}
3926 am__minus_obj=
3927 ;;
3928 none) break ;;
3929 esac
3930 if depmode=$depmode \
3931 source=sub/conftest.c object=$am__obj \
3932 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3933 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3934 >/dev/null 2>conftest.err &&
3935 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3936 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3937 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3938 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3939 # icc doesn't choke on unknown options, it will just issue warnings
3940 # or remarks (even with -Werror). So we grep stderr for any message
3941 # that says an option was ignored or not supported.
3942 # When given -MP, icc 7.0 and 7.1 complain thusly:
3943 # icc: Command line warning: ignoring option '-M'; no argument required
3944 # The diagnosis changed in icc 8.0:
3945 # icc: Command line remark: option '-MP' not supported
3946 if (grep 'ignoring option' conftest.err ||
3947 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3948 am_cv_CC_dependencies_compiler_type=$depmode
3949 break
3950 fi
3951 fi
3952 done
3953
3954 cd ..
3955 rm -rf conftest.dir
3956 else
3957 am_cv_CC_dependencies_compiler_type=none
3958 fi
3959
3960 fi
3961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3962 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3963 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3964
3965 if
3966 test "x$enable_dependency_tracking" != xno \
3967 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3968 am__fastdepCC_TRUE=
3969 am__fastdepCC_FALSE='#'
3970 else
3971 am__fastdepCC_TRUE='#'
3972 am__fastdepCC_FALSE=
3973 fi
3974
3975
3976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3977 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3978 if ${ac_cv_prog_cc_c99+:} false; then :
3979 $as_echo_n "(cached) " >&6
3980 else
3981 ac_cv_prog_cc_c99=no
3982 ac_save_CC=$CC
3983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3984 /* end confdefs.h. */
3985 #include <stdarg.h>
3986 #include <stdbool.h>
3987 #include <stdlib.h>
3988 #include <wchar.h>
3989 #include <stdio.h>
3990
3991 // Check varargs macros. These examples are taken from C99 6.10.3.5.
3992 #define debug(...) fprintf (stderr, __VA_ARGS__)
3993 #define showlist(...) puts (#__VA_ARGS__)
3994 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3995 static void
3996 test_varargs_macros (void)
3997 {
3998 int x = 1234;
3999 int y = 5678;
4000 debug ("Flag");
4001 debug ("X = %d\n", x);
4002 showlist (The first, second, and third items.);
4003 report (x>y, "x is %d but y is %d", x, y);
4004 }
4005
4006 // Check long long types.
4007 #define BIG64 18446744073709551615ull
4008 #define BIG32 4294967295ul
4009 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4010 #if !BIG_OK
4011 your preprocessor is broken;
4012 #endif
4013 #if BIG_OK
4014 #else
4015 your preprocessor is broken;
4016 #endif
4017 static long long int bignum = -9223372036854775807LL;
4018 static unsigned long long int ubignum = BIG64;
4019
4020 struct incomplete_array
4021 {
4022 int datasize;
4023 double data[];
4024 };
4025
4026 struct named_init {
4027 int number;
4028 const wchar_t *name;
4029 double average;
4030 };
4031
4032 typedef const char *ccp;
4033
4034 static inline int
4035 test_restrict (ccp restrict text)
4036 {
4037 // See if C++-style comments work.
4038 // Iterate through items via the restricted pointer.
4039 // Also check for declarations in for loops.
4040 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4041 continue;
4042 return 0;
4043 }
4044
4045 // Check varargs and va_copy.
4046 static void
4047 test_varargs (const char *format, ...)
4048 {
4049 va_list args;
4050 va_start (args, format);
4051 va_list args_copy;
4052 va_copy (args_copy, args);
4053
4054 const char *str;
4055 int number;
4056 float fnumber;
4057
4058 while (*format)
4059 {
4060 switch (*format++)
4061 {
4062 case 's': // string
4063 str = va_arg (args_copy, const char *);
4064 break;
4065 case 'd': // int
4066 number = va_arg (args_copy, int);
4067 break;
4068 case 'f': // float
4069 fnumber = va_arg (args_copy, double);
4070 break;
4071 default:
4072 break;
4073 }
4074 }
4075 va_end (args_copy);
4076 va_end (args);
4077 }
4078
4079 int
4080 main ()
4081 {
4082
4083 // Check bool.
4084 _Bool success = false;
4085
4086 // Check restrict.
4087 if (test_restrict ("String literal") == 0)
4088 success = true;
4089 char *restrict newvar = "Another string";
4090
4091 // Check varargs.
4092 test_varargs ("s, d' f .", "string", 65, 34.234);
4093 test_varargs_macros ();
4094
4095 // Check flexible array members.
4096 struct incomplete_array *ia =
4097 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4098 ia->datasize = 10;
4099 for (int i = 0; i < ia->datasize; ++i)
4100 ia->data[i] = i * 1.234;
4101
4102 // Check named initializers.
4103 struct named_init ni = {
4104 .number = 34,
4105 .name = L"Test wide string",
4106 .average = 543.34343,
4107 };
4108
4109 ni.number = 58;
4110
4111 int dynamic_array[ni.number];
4112 dynamic_array[ni.number - 1] = 543;
4113
4114 // work around unused variable warnings
4115 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4116 || dynamic_array[ni.number - 1] != 543);
4117
4118 ;
4119 return 0;
4120 }
4121 _ACEOF
4122 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
4123 do
4124 CC="$ac_save_CC $ac_arg"
4125 if ac_fn_c_try_compile "$LINENO"; then :
4126 ac_cv_prog_cc_c99=$ac_arg
4127 fi
4128 rm -f core conftest.err conftest.$ac_objext
4129 test "x$ac_cv_prog_cc_c99" != "xno" && break
4130 done
4131 rm -f conftest.$ac_ext
4132 CC=$ac_save_CC
4133
4134 fi
4135 # AC_CACHE_VAL
4136 case "x$ac_cv_prog_cc_c99" in
4137 x)
4138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4139 $as_echo "none needed" >&6; } ;;
4140 xno)
4141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4142 $as_echo "unsupported" >&6; } ;;
4143 *)
4144 CC="$CC $ac_cv_prog_cc_c99"
4145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4146 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4147 esac
4148 if test "x$ac_cv_prog_cc_c99" != xno; then :
4149
4150 fi
4151
4152
4153 if test "$ac_cv_prog_cc_c99" = "no"; then :
4154 as_fn_error $? "no C99 compiler found. Aborting." "$LINENO" 5
4155 fi
4156 for ac_prog in 'bison -y' byacc
4157 do
4158 # Extract the first word of "$ac_prog", so it can be a program name with args.
4159 set dummy $ac_prog; ac_word=$2
4160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4161 $as_echo_n "checking for $ac_word... " >&6; }
4162 if ${ac_cv_prog_YACC+:} false; then :
4163 $as_echo_n "(cached) " >&6
4164 else
4165 if test -n "$YACC"; then
4166 ac_cv_prog_YACC="$YACC" # Let the user override the test.
4167 else
4168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4169 for as_dir in $PATH
4170 do
4171 IFS=$as_save_IFS
4172 test -z "$as_dir" && as_dir=.
4173 for ac_exec_ext in '' $ac_executable_extensions; do
4174 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4175 ac_cv_prog_YACC="$ac_prog"
4176 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4177 break 2
4178 fi
4179 done
4180 done
4181 IFS=$as_save_IFS
4182
4183 fi
4184 fi
4185 YACC=$ac_cv_prog_YACC
4186 if test -n "$YACC"; then
4187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
4188 $as_echo "$YACC" >&6; }
4189 else
4190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4191 $as_echo "no" >&6; }
4192 fi
4193
4194
4195 test -n "$YACC" && break
4196 done
4197 test -n "$YACC" || YACC="yacc"
4198
4199
4200 for ac_prog in flex lex
4201 do
4202 # Extract the first word of "$ac_prog", so it can be a program name with args.
4203 set dummy $ac_prog; ac_word=$2
4204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4205 $as_echo_n "checking for $ac_word... " >&6; }
4206 if ${ac_cv_prog_LEX+:} false; then :
4207 $as_echo_n "(cached) " >&6
4208 else
4209 if test -n "$LEX"; then
4210 ac_cv_prog_LEX="$LEX" # Let the user override the test.
4211 else
4212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4213 for as_dir in $PATH
4214 do
4215 IFS=$as_save_IFS
4216 test -z "$as_dir" && as_dir=.
4217 for ac_exec_ext in '' $ac_executable_extensions; do
4218 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4219 ac_cv_prog_LEX="$ac_prog"
4220 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4221 break 2
4222 fi
4223 done
4224 done
4225 IFS=$as_save_IFS
4226
4227 fi
4228 fi
4229 LEX=$ac_cv_prog_LEX
4230 if test -n "$LEX"; then
4231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
4232 $as_echo "$LEX" >&6; }
4233 else
4234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4235 $as_echo "no" >&6; }
4236 fi
4237
4238
4239 test -n "$LEX" && break
4240 done
4241 test -n "$LEX" || LEX=":"
4242
4243 if test "x$LEX" != "x:"; then
4244 cat >conftest.l <<_ACEOF
4245 %%
4246 a { ECHO; }
4247 b { REJECT; }
4248 c { yymore (); }
4249 d { yyless (1); }
4250 e { yyless (input () != 0); }
4251 f { unput (yytext[0]); }
4252 . { BEGIN INITIAL; }
4253 %%
4254 #ifdef YYTEXT_POINTER
4255 extern char *yytext;
4256 #endif
4257 int
4258 main (void)
4259 {
4260 return ! yylex () + ! yywrap ();
4261 }
4262 _ACEOF
4263 { { ac_try="$LEX conftest.l"
4264 case "(($ac_try" in
4265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4266 *) ac_try_echo=$ac_try;;
4267 esac
4268 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4269 $as_echo "$ac_try_echo"; } >&5
4270 (eval "$LEX conftest.l") 2>&5
4271 ac_status=$?
4272 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4273 test $ac_status = 0; }
4274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
4275 $as_echo_n "checking lex output file root... " >&6; }
4276 if ${ac_cv_prog_lex_root+:} false; then :
4277 $as_echo_n "(cached) " >&6
4278 else
4279
4280 if test -f lex.yy.c; then
4281 ac_cv_prog_lex_root=lex.yy
4282 elif test -f lexyy.c; then
4283 ac_cv_prog_lex_root=lexyy
4284 else
4285 as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5
4286 fi
4287 fi
4288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
4289 $as_echo "$ac_cv_prog_lex_root" >&6; }
4290 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
4291
4292 if test -z "${LEXLIB+set}"; then
4293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
4294 $as_echo_n "checking lex library... " >&6; }
4295 if ${ac_cv_lib_lex+:} false; then :
4296 $as_echo_n "(cached) " >&6
4297 else
4298
4299 ac_save_LIBS=$LIBS
4300 ac_cv_lib_lex='none needed'
4301 for ac_lib in '' -lfl -ll; do
4302 LIBS="$ac_lib $ac_save_LIBS"
4303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4304 /* end confdefs.h. */
4305 `cat $LEX_OUTPUT_ROOT.c`
4306 _ACEOF
4307 if ac_fn_c_try_link "$LINENO"; then :
4308 ac_cv_lib_lex=$ac_lib
4309 fi
4310 rm -f core conftest.err conftest.$ac_objext \
4311 conftest$ac_exeext conftest.$ac_ext
4312 test "$ac_cv_lib_lex" != 'none needed' && break
4313 done
4314 LIBS=$ac_save_LIBS
4315
4316 fi
4317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
4318 $as_echo "$ac_cv_lib_lex" >&6; }
4319 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
4320 fi
4321
4322
4323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
4324 $as_echo_n "checking whether yytext is a pointer... " >&6; }
4325 if ${ac_cv_prog_lex_yytext_pointer+:} false; then :
4326 $as_echo_n "(cached) " >&6
4327 else
4328 # POSIX says lex can declare yytext either as a pointer or an array; the
4329 # default is implementation-dependent. Figure out which it is, since
4330 # not all implementations provide the %pointer and %array declarations.
4331 ac_cv_prog_lex_yytext_pointer=no
4332 ac_save_LIBS=$LIBS
4333 LIBS="$LEXLIB $ac_save_LIBS"
4334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4335 /* end confdefs.h. */
4336
4337 #define YYTEXT_POINTER 1
4338 `cat $LEX_OUTPUT_ROOT.c`
4339 _ACEOF
4340 if ac_fn_c_try_link "$LINENO"; then :
4341 ac_cv_prog_lex_yytext_pointer=yes
4342 fi
4343 rm -f core conftest.err conftest.$ac_objext \
4344 conftest$ac_exeext conftest.$ac_ext
4345 LIBS=$ac_save_LIBS
4346
4347 fi
4348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
4349 $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
4350 if test $ac_cv_prog_lex_yytext_pointer = yes; then
4351
4352 $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
4353
4354 fi
4355 rm -f conftest.l $LEX_OUTPUT_ROOT.c
4356
4357 fi
4358 if test "$LEX" = :; then
4359 LEX=${am_missing_run}flex
4360 fi
4361
4362
4363 # Initializing libtool.
4364
4365
4366
4367
4368
4369
4370
4371 case `pwd` in
4372 *\ * | *\ *)
4373 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4374 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4375 esac
4376
4377
4378
4379 macro_version='2.4'
4380 macro_revision='1.3293'
4381
4382
4383
4384
4385
4386
4387
4388
4389
4390
4391
4392
4393
4394 ltmain="$ac_aux_dir/ltmain.sh"
4395
4396 # Make sure we can run config.sub.
4397 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4398 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4399
4400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4401 $as_echo_n "checking build system type... " >&6; }
4402 if ${ac_cv_build+:} false; then :
4403 $as_echo_n "(cached) " >&6
4404 else
4405 ac_build_alias=$build_alias
4406 test "x$ac_build_alias" = x &&
4407 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4408 test "x$ac_build_alias" = x &&
4409 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4410 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4411 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4412
4413 fi
4414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4415 $as_echo "$ac_cv_build" >&6; }
4416 case $ac_cv_build in
4417 *-*-*) ;;
4418 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4419 esac
4420 build=$ac_cv_build
4421 ac_save_IFS=$IFS; IFS='-'
4422 set x $ac_cv_build
4423 shift
4424 build_cpu=$1
4425 build_vendor=$2
4426 shift; shift
4427 # Remember, the first character of IFS is used to create $*,
4428 # except with old shells:
4429 build_os=$*
4430 IFS=$ac_save_IFS
4431 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4432
4433
4434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4435 $as_echo_n "checking host system type... " >&6; }
4436 if ${ac_cv_host+:} false; then :
4437 $as_echo_n "(cached) " >&6
4438 else
4439 if test "x$host_alias" = x; then
4440 ac_cv_host=$ac_cv_build
4441 else
4442 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4443 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4444 fi
4445
4446 fi
4447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4448 $as_echo "$ac_cv_host" >&6; }
4449 case $ac_cv_host in
4450 *-*-*) ;;
4451 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4452 esac
4453 host=$ac_cv_host
4454 ac_save_IFS=$IFS; IFS='-'
4455 set x $ac_cv_host
4456 shift
4457 host_cpu=$1
4458 host_vendor=$2
4459 shift; shift
4460 # Remember, the first character of IFS is used to create $*,
4461 # except with old shells:
4462 host_os=$*
4463 IFS=$ac_save_IFS
4464 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4465
4466
4467 # Backslashify metacharacters that are still active within
4468 # double-quoted strings.
4469 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4470
4471 # Same as above, but do not quote variable references.
4472 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4473
4474 # Sed substitution to delay expansion of an escaped shell variable in a
4475 # double_quote_subst'ed string.
4476 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4477
4478 # Sed substitution to delay expansion of an escaped single quote.
4479 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4480
4481 # Sed substitution to avoid accidental globbing in evaled expressions
4482 no_glob_subst='s/\*/\\\*/g'
4483
4484 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4485 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4486 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4487
4488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4489 $as_echo_n "checking how to print strings... " >&6; }
4490 # Test print first, because it will be a builtin if present.
4491 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4492 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4493 ECHO='print -r --'
4494 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4495 ECHO='printf %s\n'
4496 else
4497 # Use this function as a fallback that always works.
4498 func_fallback_echo ()
4499 {
4500 eval 'cat <<_LTECHO_EOF
4501 $1
4502 _LTECHO_EOF'
4503 }
4504 ECHO='func_fallback_echo'
4505 fi
4506
4507 # func_echo_all arg...
4508 # Invoke $ECHO with all args, space-separated.
4509 func_echo_all ()
4510 {
4511 $ECHO ""
4512 }
4513
4514 case "$ECHO" in
4515 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4516 $as_echo "printf" >&6; } ;;
4517 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4518 $as_echo "print -r" >&6; } ;;
4519 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4520 $as_echo "cat" >&6; } ;;
4521 esac
4522
4523
4524
4525
4526
4527
4528
4529
4530
4531
4532
4533
4534
4535
4536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4537 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4538 if ${ac_cv_path_SED+:} false; then :
4539 $as_echo_n "(cached) " >&6
4540 else
4541 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4542 for ac_i in 1 2 3 4 5 6 7; do
4543 ac_script="$ac_script$as_nl$ac_script"
4544 done
4545 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4546 { ac_script=; unset ac_script;}
4547 if test -z "$SED"; then
4548 ac_path_SED_found=false
4549 # Loop through the user's path and test for each of PROGNAME-LIST
4550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4551 for as_dir in $PATH
4552 do
4553 IFS=$as_save_IFS
4554 test -z "$as_dir" && as_dir=.
4555 for ac_prog in sed gsed; do
4556 for ac_exec_ext in '' $ac_executable_extensions; do
4557 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4558 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4559 # Check for GNU ac_path_SED and select it if it is found.
4560 # Check for GNU $ac_path_SED
4561 case `"$ac_path_SED" --version 2>&1` in
4562 *GNU*)
4563 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4564 *)
4565 ac_count=0
4566 $as_echo_n 0123456789 >"conftest.in"
4567 while :
4568 do
4569 cat "conftest.in" "conftest.in" >"conftest.tmp"
4570 mv "conftest.tmp" "conftest.in"
4571 cp "conftest.in" "conftest.nl"
4572 $as_echo '' >> "conftest.nl"
4573 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4574 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4575 as_fn_arith $ac_count + 1 && ac_count=$as_val
4576 if test $ac_count -gt ${ac_path_SED_max-0}; then
4577 # Best one so far, save it but keep looking for a better one
4578 ac_cv_path_SED="$ac_path_SED"
4579 ac_path_SED_max=$ac_count
4580 fi
4581 # 10*(2^10) chars as input seems more than enough
4582 test $ac_count -gt 10 && break
4583 done
4584 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4585 esac
4586
4587 $ac_path_SED_found && break 3
4588 done
4589 done
4590 done
4591 IFS=$as_save_IFS
4592 if test -z "$ac_cv_path_SED"; then
4593 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4594 fi
4595 else
4596 ac_cv_path_SED=$SED
4597 fi
4598
4599 fi
4600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4601 $as_echo "$ac_cv_path_SED" >&6; }
4602 SED="$ac_cv_path_SED"
4603 rm -f conftest.sed
4604
4605 test -z "$SED" && SED=sed
4606 Xsed="$SED -e 1s/^X//"
4607
4608
4609
4610
4611
4612
4613
4614
4615
4616
4617
4618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4619 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4620 if ${ac_cv_path_GREP+:} false; then :
4621 $as_echo_n "(cached) " >&6
4622 else
4623 if test -z "$GREP"; then
4624 ac_path_GREP_found=false
4625 # Loop through the user's path and test for each of PROGNAME-LIST
4626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4627 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4628 do
4629 IFS=$as_save_IFS
4630 test -z "$as_dir" && as_dir=.
4631 for ac_prog in grep ggrep; do
4632 for ac_exec_ext in '' $ac_executable_extensions; do
4633 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4634 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4635 # Check for GNU ac_path_GREP and select it if it is found.
4636 # Check for GNU $ac_path_GREP
4637 case `"$ac_path_GREP" --version 2>&1` in
4638 *GNU*)
4639 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4640 *)
4641 ac_count=0
4642 $as_echo_n 0123456789 >"conftest.in"
4643 while :
4644 do
4645 cat "conftest.in" "conftest.in" >"conftest.tmp"
4646 mv "conftest.tmp" "conftest.in"
4647 cp "conftest.in" "conftest.nl"
4648 $as_echo 'GREP' >> "conftest.nl"
4649 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4650 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4651 as_fn_arith $ac_count + 1 && ac_count=$as_val
4652 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4653 # Best one so far, save it but keep looking for a better one
4654 ac_cv_path_GREP="$ac_path_GREP"
4655 ac_path_GREP_max=$ac_count
4656 fi
4657 # 10*(2^10) chars as input seems more than enough
4658 test $ac_count -gt 10 && break
4659 done
4660 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4661 esac
4662
4663 $ac_path_GREP_found && break 3
4664 done
4665 done
4666 done
4667 IFS=$as_save_IFS
4668 if test -z "$ac_cv_path_GREP"; then
4669 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4670 fi
4671 else
4672 ac_cv_path_GREP=$GREP
4673 fi
4674
4675 fi
4676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4677 $as_echo "$ac_cv_path_GREP" >&6; }
4678 GREP="$ac_cv_path_GREP"
4679
4680
4681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4682 $as_echo_n "checking for egrep... " >&6; }
4683 if ${ac_cv_path_EGREP+:} false; then :
4684 $as_echo_n "(cached) " >&6
4685 else
4686 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4687 then ac_cv_path_EGREP="$GREP -E"
4688 else
4689 if test -z "$EGREP"; then
4690 ac_path_EGREP_found=false
4691 # Loop through the user's path and test for each of PROGNAME-LIST
4692 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4693 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4694 do
4695 IFS=$as_save_IFS
4696 test -z "$as_dir" && as_dir=.
4697 for ac_prog in egrep; do
4698 for ac_exec_ext in '' $ac_executable_extensions; do
4699 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4700 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4701 # Check for GNU ac_path_EGREP and select it if it is found.
4702 # Check for GNU $ac_path_EGREP
4703 case `"$ac_path_EGREP" --version 2>&1` in
4704 *GNU*)
4705 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4706 *)
4707 ac_count=0
4708 $as_echo_n 0123456789 >"conftest.in"
4709 while :
4710 do
4711 cat "conftest.in" "conftest.in" >"conftest.tmp"
4712 mv "conftest.tmp" "conftest.in"
4713 cp "conftest.in" "conftest.nl"
4714 $as_echo 'EGREP' >> "conftest.nl"
4715 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4716 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4717 as_fn_arith $ac_count + 1 && ac_count=$as_val
4718 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4719 # Best one so far, save it but keep looking for a better one
4720 ac_cv_path_EGREP="$ac_path_EGREP"
4721 ac_path_EGREP_max=$ac_count
4722 fi
4723 # 10*(2^10) chars as input seems more than enough
4724 test $ac_count -gt 10 && break
4725 done
4726 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4727 esac
4728
4729 $ac_path_EGREP_found && break 3
4730 done
4731 done
4732 done
4733 IFS=$as_save_IFS
4734 if test -z "$ac_cv_path_EGREP"; then
4735 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4736 fi
4737 else
4738 ac_cv_path_EGREP=$EGREP
4739 fi
4740
4741 fi
4742 fi
4743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4744 $as_echo "$ac_cv_path_EGREP" >&6; }
4745 EGREP="$ac_cv_path_EGREP"
4746
4747
4748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4749 $as_echo_n "checking for fgrep... " >&6; }
4750 if ${ac_cv_path_FGREP+:} false; then :
4751 $as_echo_n "(cached) " >&6
4752 else
4753 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4754 then ac_cv_path_FGREP="$GREP -F"
4755 else
4756 if test -z "$FGREP"; then
4757 ac_path_FGREP_found=false
4758 # Loop through the user's path and test for each of PROGNAME-LIST
4759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4760 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4761 do
4762 IFS=$as_save_IFS
4763 test -z "$as_dir" && as_dir=.
4764 for ac_prog in fgrep; do
4765 for ac_exec_ext in '' $ac_executable_extensions; do
4766 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4767 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4768 # Check for GNU ac_path_FGREP and select it if it is found.
4769 # Check for GNU $ac_path_FGREP
4770 case `"$ac_path_FGREP" --version 2>&1` in
4771 *GNU*)
4772 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4773 *)
4774 ac_count=0
4775 $as_echo_n 0123456789 >"conftest.in"
4776 while :
4777 do
4778 cat "conftest.in" "conftest.in" >"conftest.tmp"
4779 mv "conftest.tmp" "conftest.in"
4780 cp "conftest.in" "conftest.nl"
4781 $as_echo 'FGREP' >> "conftest.nl"
4782 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4783 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4784 as_fn_arith $ac_count + 1 && ac_count=$as_val
4785 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4786 # Best one so far, save it but keep looking for a better one
4787 ac_cv_path_FGREP="$ac_path_FGREP"
4788 ac_path_FGREP_max=$ac_count
4789 fi
4790 # 10*(2^10) chars as input seems more than enough
4791 test $ac_count -gt 10 && break
4792 done
4793 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4794 esac
4795
4796 $ac_path_FGREP_found && break 3
4797 done
4798 done
4799 done
4800 IFS=$as_save_IFS
4801 if test -z "$ac_cv_path_FGREP"; then
4802 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4803 fi
4804 else
4805 ac_cv_path_FGREP=$FGREP
4806 fi
4807
4808 fi
4809 fi
4810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4811 $as_echo "$ac_cv_path_FGREP" >&6; }
4812 FGREP="$ac_cv_path_FGREP"
4813
4814
4815 test -z "$GREP" && GREP=grep
4816
4817
4818
4819
4820
4821
4822
4823
4824
4825
4826
4827
4828
4829
4830
4831
4832
4833
4834
4835 # Check whether --with-gnu-ld was given.
4836 if test "${with_gnu_ld+set}" = set; then :
4837 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4838 else
4839 with_gnu_ld=no
4840 fi
4841
4842 ac_prog=ld
4843 if test "$GCC" = yes; then
4844 # Check if gcc -print-prog-name=ld gives a path.
4845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4846 $as_echo_n "checking for ld used by $CC... " >&6; }
4847 case $host in
4848 *-*-mingw*)
4849 # gcc leaves a trailing carriage return which upsets mingw
4850 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4851 *)
4852 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4853 esac
4854 case $ac_prog in
4855 # Accept absolute paths.
4856 [\\/]* | ?:[\\/]*)
4857 re_direlt='/[^/][^/]*/\.\./'
4858 # Canonicalize the pathname of ld
4859 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4860 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4861 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4862 done
4863 test -z "$LD" && LD="$ac_prog"
4864 ;;
4865 "")
4866 # If it fails, then pretend we aren't using GCC.
4867 ac_prog=ld
4868 ;;
4869 *)
4870 # If it is relative, then search for the first ld in PATH.
4871 with_gnu_ld=unknown
4872 ;;
4873 esac
4874 elif test "$with_gnu_ld" = yes; then
4875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4876 $as_echo_n "checking for GNU ld... " >&6; }
4877 else
4878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4879 $as_echo_n "checking for non-GNU ld... " >&6; }
4880 fi
4881 if ${lt_cv_path_LD+:} false; then :
4882 $as_echo_n "(cached) " >&6
4883 else
4884 if test -z "$LD"; then
4885 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4886 for ac_dir in $PATH; do
4887 IFS="$lt_save_ifs"
4888 test -z "$ac_dir" && ac_dir=.
4889 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4890 lt_cv_path_LD="$ac_dir/$ac_prog"
4891 # Check to see if the program is GNU ld. I'd rather use --version,
4892 # but apparently some variants of GNU ld only accept -v.
4893 # Break only if it was the GNU/non-GNU ld that we prefer.
4894 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4895 *GNU* | *'with BFD'*)
4896 test "$with_gnu_ld" != no && break
4897 ;;
4898 *)
4899 test "$with_gnu_ld" != yes && break
4900 ;;
4901 esac
4902 fi
4903 done
4904 IFS="$lt_save_ifs"
4905 else
4906 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4907 fi
4908 fi
4909
4910 LD="$lt_cv_path_LD"
4911 if test -n "$LD"; then
4912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4913 $as_echo "$LD" >&6; }
4914 else
4915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4916 $as_echo "no" >&6; }
4917 fi
4918 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4920 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4921 if ${lt_cv_prog_gnu_ld+:} false; then :
4922 $as_echo_n "(cached) " >&6
4923 else
4924 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4925 case `$LD -v 2>&1 </dev/null` in
4926 *GNU* | *'with BFD'*)
4927 lt_cv_prog_gnu_ld=yes
4928 ;;
4929 *)
4930 lt_cv_prog_gnu_ld=no
4931 ;;
4932 esac
4933 fi
4934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4935 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4936 with_gnu_ld=$lt_cv_prog_gnu_ld
4937
4938
4939
4940
4941
4942
4943
4944
4945
4946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4947 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4948 if ${lt_cv_path_NM+:} false; then :
4949 $as_echo_n "(cached) " >&6
4950 else
4951 if test -n "$NM"; then
4952 # Let the user override the test.
4953 lt_cv_path_NM="$NM"
4954 else
4955 lt_nm_to_check="${ac_tool_prefix}nm"
4956 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4957 lt_nm_to_check="$lt_nm_to_check nm"
4958 fi
4959 for lt_tmp_nm in $lt_nm_to_check; do
4960 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4961 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4962 IFS="$lt_save_ifs"
4963 test -z "$ac_dir" && ac_dir=.
4964 tmp_nm="$ac_dir/$lt_tmp_nm"
4965 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4966 # Check to see if the nm accepts a BSD-compat flag.
4967 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4968 # nm: unknown option "B" ignored
4969 # Tru64's nm complains that /dev/null is an invalid object file
4970 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4971 */dev/null* | *'Invalid file or object type'*)
4972 lt_cv_path_NM="$tmp_nm -B"
4973 break
4974 ;;
4975 *)
4976 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4977 */dev/null*)
4978 lt_cv_path_NM="$tmp_nm -p"
4979 break
4980 ;;
4981 *)
4982 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4983 continue # so that we can try to find one that supports BSD flags
4984 ;;
4985 esac
4986 ;;
4987 esac
4988 fi
4989 done
4990 IFS="$lt_save_ifs"
4991 done
4992 : ${lt_cv_path_NM=no}
4993 fi
4994 fi
4995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4996 $as_echo "$lt_cv_path_NM" >&6; }
4997 if test "$lt_cv_path_NM" != "no"; then
4998 NM="$lt_cv_path_NM"
4999 else
5000 # Didn't find any BSD compatible name lister, look for dumpbin.
5001 if test -n "$DUMPBIN"; then :
5002 # Let the user override the test.
5003 else
5004 if test -n "$ac_tool_prefix"; then
5005 for ac_prog in dumpbin "link -dump"
5006 do
5007 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5008 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5010 $as_echo_n "checking for $ac_word... " >&6; }
5011 if ${ac_cv_prog_DUMPBIN+:} false; then :
5012 $as_echo_n "(cached) " >&6
5013 else
5014 if test -n "$DUMPBIN"; then
5015 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5016 else
5017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5018 for as_dir in $PATH
5019 do
5020 IFS=$as_save_IFS
5021 test -z "$as_dir" && as_dir=.
5022 for ac_exec_ext in '' $ac_executable_extensions; do
5023 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5024 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5025 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5026 break 2
5027 fi
5028 done
5029 done
5030 IFS=$as_save_IFS
5031
5032 fi
5033 fi
5034 DUMPBIN=$ac_cv_prog_DUMPBIN
5035 if test -n "$DUMPBIN"; then
5036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5037 $as_echo "$DUMPBIN" >&6; }
5038 else
5039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5040 $as_echo "no" >&6; }
5041 fi
5042
5043
5044 test -n "$DUMPBIN" && break
5045 done
5046 fi
5047 if test -z "$DUMPBIN"; then
5048 ac_ct_DUMPBIN=$DUMPBIN
5049 for ac_prog in dumpbin "link -dump"
5050 do
5051 # Extract the first word of "$ac_prog", so it can be a program name with args.
5052 set dummy $ac_prog; ac_word=$2
5053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5054 $as_echo_n "checking for $ac_word... " >&6; }
5055 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5056 $as_echo_n "(cached) " >&6
5057 else
5058 if test -n "$ac_ct_DUMPBIN"; then
5059 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5060 else
5061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5062 for as_dir in $PATH
5063 do
5064 IFS=$as_save_IFS
5065 test -z "$as_dir" && as_dir=.
5066 for ac_exec_ext in '' $ac_executable_extensions; do
5067 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5068 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5069 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5070 break 2
5071 fi
5072 done
5073 done
5074 IFS=$as_save_IFS
5075
5076 fi
5077 fi
5078 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5079 if test -n "$ac_ct_DUMPBIN"; then
5080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5081 $as_echo "$ac_ct_DUMPBIN" >&6; }
5082 else
5083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5084 $as_echo "no" >&6; }
5085 fi
5086
5087
5088 test -n "$ac_ct_DUMPBIN" && break
5089 done
5090
5091 if test "x$ac_ct_DUMPBIN" = x; then
5092 DUMPBIN=":"
5093 else
5094 case $cross_compiling:$ac_tool_warned in
5095 yes:)
5096 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5097 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5098 ac_tool_warned=yes ;;
5099 esac
5100 DUMPBIN=$ac_ct_DUMPBIN
5101 fi
5102 fi
5103
5104 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5105 *COFF*)
5106 DUMPBIN="$DUMPBIN -symbols"
5107 ;;
5108 *)
5109 DUMPBIN=:
5110 ;;
5111 esac
5112 fi
5113
5114 if test "$DUMPBIN" != ":"; then
5115 NM="$DUMPBIN"
5116 fi
5117 fi
5118 test -z "$NM" && NM=nm
5119
5120
5121
5122
5123
5124
5125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5126 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5127 if ${lt_cv_nm_interface+:} false; then :
5128 $as_echo_n "(cached) " >&6
5129 else
5130 lt_cv_nm_interface="BSD nm"
5131 echo "int some_variable = 0;" > conftest.$ac_ext
5132 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5133 (eval "$ac_compile" 2>conftest.err)
5134 cat conftest.err >&5
5135 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5136 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5137 cat conftest.err >&5
5138 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5139 cat conftest.out >&5
5140 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5141 lt_cv_nm_interface="MS dumpbin"
5142 fi
5143 rm -f conftest*
5144 fi
5145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5146 $as_echo "$lt_cv_nm_interface" >&6; }
5147
5148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5149 $as_echo_n "checking whether ln -s works... " >&6; }
5150 LN_S=$as_ln_s
5151 if test "$LN_S" = "ln -s"; then
5152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5153 $as_echo "yes" >&6; }
5154 else
5155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5156 $as_echo "no, using $LN_S" >&6; }
5157 fi
5158
5159 # find the maximum length of command line arguments
5160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5161 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5162 if ${lt_cv_sys_max_cmd_len+:} false; then :
5163 $as_echo_n "(cached) " >&6
5164 else
5165 i=0
5166 teststring="ABCD"
5167
5168 case $build_os in
5169 msdosdjgpp*)
5170 # On DJGPP, this test can blow up pretty badly due to problems in libc
5171 # (any single argument exceeding 2000 bytes causes a buffer overrun
5172 # during glob expansion). Even if it were fixed, the result of this
5173 # check would be larger than it should be.
5174 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5175 ;;
5176
5177 gnu*)
5178 # Under GNU Hurd, this test is not required because there is
5179 # no limit to the length of command line arguments.
5180 # Libtool will interpret -1 as no limit whatsoever
5181 lt_cv_sys_max_cmd_len=-1;
5182 ;;
5183
5184 cygwin* | mingw* | cegcc*)
5185 # On Win9x/ME, this test blows up -- it succeeds, but takes
5186 # about 5 minutes as the teststring grows exponentially.
5187 # Worse, since 9x/ME are not pre-emptively multitasking,
5188 # you end up with a "frozen" computer, even though with patience
5189 # the test eventually succeeds (with a max line length of 256k).
5190 # Instead, let's just punt: use the minimum linelength reported by
5191 # all of the supported platforms: 8192 (on NT/2K/XP).
5192 lt_cv_sys_max_cmd_len=8192;
5193 ;;
5194
5195 mint*)
5196 # On MiNT this can take a long time and run out of memory.
5197 lt_cv_sys_max_cmd_len=8192;
5198 ;;
5199
5200 amigaos*)
5201 # On AmigaOS with pdksh, this test takes hours, literally.
5202 # So we just punt and use a minimum line length of 8192.
5203 lt_cv_sys_max_cmd_len=8192;
5204 ;;
5205
5206 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5207 # This has been around since 386BSD, at least. Likely further.
5208 if test -x /sbin/sysctl; then
5209 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5210 elif test -x /usr/sbin/sysctl; then
5211 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5212 else
5213 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5214 fi
5215 # And add a safety zone
5216 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5217 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5218 ;;
5219
5220 interix*)
5221 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5222 lt_cv_sys_max_cmd_len=196608
5223 ;;
5224
5225 osf*)
5226 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5227 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5228 # nice to cause kernel panics so lets avoid the loop below.
5229 # First set a reasonable default.
5230 lt_cv_sys_max_cmd_len=16384
5231 #
5232 if test -x /sbin/sysconfig; then
5233 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5234 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5235 esac
5236 fi
5237 ;;
5238 sco3.2v5*)
5239 lt_cv_sys_max_cmd_len=102400
5240 ;;
5241 sysv5* | sco5v6* | sysv4.2uw2*)
5242 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5243 if test -n "$kargmax"; then
5244 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5245 else
5246 lt_cv_sys_max_cmd_len=32768
5247 fi
5248 ;;
5249 *)
5250 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5251 if test -n "$lt_cv_sys_max_cmd_len"; then
5252 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5253 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5254 else
5255 # Make teststring a little bigger before we do anything with it.
5256 # a 1K string should be a reasonable start.
5257 for i in 1 2 3 4 5 6 7 8 ; do
5258 teststring=$teststring$teststring
5259 done
5260 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5261 # If test is not a shell built-in, we'll probably end up computing a
5262 # maximum length that is only half of the actual maximum length, but
5263 # we can't tell.
5264 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5265 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5266 test $i != 17 # 1/2 MB should be enough
5267 do
5268 i=`expr $i + 1`
5269 teststring=$teststring$teststring
5270 done
5271 # Only check the string length outside the loop.
5272 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5273 teststring=
5274 # Add a significant safety factor because C++ compilers can tack on
5275 # massive amounts of additional arguments before passing them to the
5276 # linker. It appears as though 1/2 is a usable value.
5277 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5278 fi
5279 ;;
5280 esac
5281
5282 fi
5283
5284 if test -n $lt_cv_sys_max_cmd_len ; then
5285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5286 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5287 else
5288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5289 $as_echo "none" >&6; }
5290 fi
5291 max_cmd_len=$lt_cv_sys_max_cmd_len
5292
5293
5294
5295
5296
5297
5298 : ${CP="cp -f"}
5299 : ${MV="mv -f"}
5300 : ${RM="rm -f"}
5301
5302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5303 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5304 # Try some XSI features
5305 xsi_shell=no
5306 ( _lt_dummy="a/b/c"
5307 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5308 = c,a/b,b/c, \
5309 && eval 'test $(( 1 + 1 )) -eq 2 \
5310 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5311 && xsi_shell=yes
5312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5313 $as_echo "$xsi_shell" >&6; }
5314
5315
5316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5317 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5318 lt_shell_append=no
5319 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5320 >/dev/null 2>&1 \
5321 && lt_shell_append=yes
5322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5323 $as_echo "$lt_shell_append" >&6; }
5324
5325
5326 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5327 lt_unset=unset
5328 else
5329 lt_unset=false
5330 fi
5331
5332
5333
5334
5335
5336 # test EBCDIC or ASCII
5337 case `echo X|tr X '\101'` in
5338 A) # ASCII based system
5339 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5340 lt_SP2NL='tr \040 \012'
5341 lt_NL2SP='tr \015\012 \040\040'
5342 ;;
5343 *) # EBCDIC based system
5344 lt_SP2NL='tr \100 \n'
5345 lt_NL2SP='tr \r\n \100\100'
5346 ;;
5347 esac
5348
5349
5350
5351
5352
5353
5354
5355
5356
5357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5358 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5359 if ${lt_cv_to_host_file_cmd+:} false; then :
5360 $as_echo_n "(cached) " >&6
5361 else
5362 case $host in
5363 *-*-mingw* )
5364 case $build in
5365 *-*-mingw* ) # actually msys
5366 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5367 ;;
5368 *-*-cygwin* )
5369 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5370 ;;
5371 * ) # otherwise, assume *nix
5372 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5373 ;;
5374 esac
5375 ;;
5376 *-*-cygwin* )
5377 case $build in
5378 *-*-mingw* ) # actually msys
5379 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5380 ;;
5381 *-*-cygwin* )
5382 lt_cv_to_host_file_cmd=func_convert_file_noop
5383 ;;
5384 * ) # otherwise, assume *nix
5385 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5386 ;;
5387 esac
5388 ;;
5389 * ) # unhandled hosts (and "normal" native builds)
5390 lt_cv_to_host_file_cmd=func_convert_file_noop
5391 ;;
5392 esac
5393
5394 fi
5395
5396 to_host_file_cmd=$lt_cv_to_host_file_cmd
5397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5398 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5399
5400
5401
5402
5403
5404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5405 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5406 if ${lt_cv_to_tool_file_cmd+:} false; then :
5407 $as_echo_n "(cached) " >&6
5408 else
5409 #assume ordinary cross tools, or native build.
5410 lt_cv_to_tool_file_cmd=func_convert_file_noop
5411 case $host in
5412 *-*-mingw* )
5413 case $build in
5414 *-*-mingw* ) # actually msys
5415 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5416 ;;
5417 esac
5418 ;;
5419 esac
5420
5421 fi
5422
5423 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5425 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5426
5427
5428
5429
5430
5431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5432 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5433 if ${lt_cv_ld_reload_flag+:} false; then :
5434 $as_echo_n "(cached) " >&6
5435 else
5436 lt_cv_ld_reload_flag='-r'
5437 fi
5438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5439 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5440 reload_flag=$lt_cv_ld_reload_flag
5441 case $reload_flag in
5442 "" | " "*) ;;
5443 *) reload_flag=" $reload_flag" ;;
5444 esac
5445 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5446 case $host_os in
5447 cygwin* | mingw* | pw32* | cegcc*)
5448 if test "$GCC" != yes; then
5449 reload_cmds=false
5450 fi
5451 ;;
5452 darwin*)
5453 if test "$GCC" = yes; then
5454 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5455 else
5456 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5457 fi
5458 ;;
5459 esac
5460
5461
5462
5463
5464
5465
5466
5467
5468
5469 if test -n "$ac_tool_prefix"; then
5470 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5471 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5473 $as_echo_n "checking for $ac_word... " >&6; }
5474 if ${ac_cv_prog_OBJDUMP+:} false; then :
5475 $as_echo_n "(cached) " >&6
5476 else
5477 if test -n "$OBJDUMP"; then
5478 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5479 else
5480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5481 for as_dir in $PATH
5482 do
5483 IFS=$as_save_IFS
5484 test -z "$as_dir" && as_dir=.
5485 for ac_exec_ext in '' $ac_executable_extensions; do
5486 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5487 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5488 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5489 break 2
5490 fi
5491 done
5492 done
5493 IFS=$as_save_IFS
5494
5495 fi
5496 fi
5497 OBJDUMP=$ac_cv_prog_OBJDUMP
5498 if test -n "$OBJDUMP"; then
5499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5500 $as_echo "$OBJDUMP" >&6; }
5501 else
5502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5503 $as_echo "no" >&6; }
5504 fi
5505
5506
5507 fi
5508 if test -z "$ac_cv_prog_OBJDUMP"; then
5509 ac_ct_OBJDUMP=$OBJDUMP
5510 # Extract the first word of "objdump", so it can be a program name with args.
5511 set dummy objdump; ac_word=$2
5512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5513 $as_echo_n "checking for $ac_word... " >&6; }
5514 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5515 $as_echo_n "(cached) " >&6
5516 else
5517 if test -n "$ac_ct_OBJDUMP"; then
5518 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5519 else
5520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5521 for as_dir in $PATH
5522 do
5523 IFS=$as_save_IFS
5524 test -z "$as_dir" && as_dir=.
5525 for ac_exec_ext in '' $ac_executable_extensions; do
5526 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5527 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5528 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5529 break 2
5530 fi
5531 done
5532 done
5533 IFS=$as_save_IFS
5534
5535 fi
5536 fi
5537 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5538 if test -n "$ac_ct_OBJDUMP"; then
5539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5540 $as_echo "$ac_ct_OBJDUMP" >&6; }
5541 else
5542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5543 $as_echo "no" >&6; }
5544 fi
5545
5546 if test "x$ac_ct_OBJDUMP" = x; then
5547 OBJDUMP="false"
5548 else
5549 case $cross_compiling:$ac_tool_warned in
5550 yes:)
5551 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5552 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5553 ac_tool_warned=yes ;;
5554 esac
5555 OBJDUMP=$ac_ct_OBJDUMP
5556 fi
5557 else
5558 OBJDUMP="$ac_cv_prog_OBJDUMP"
5559 fi
5560
5561 test -z "$OBJDUMP" && OBJDUMP=objdump
5562
5563
5564
5565
5566
5567
5568
5569
5570
5571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5572 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5573 if ${lt_cv_deplibs_check_method+:} false; then :
5574 $as_echo_n "(cached) " >&6
5575 else
5576 lt_cv_file_magic_cmd='$MAGIC_CMD'
5577 lt_cv_file_magic_test_file=
5578 lt_cv_deplibs_check_method='unknown'
5579 # Need to set the preceding variable on all platforms that support
5580 # interlibrary dependencies.
5581 # 'none' -- dependencies not supported.
5582 # `unknown' -- same as none, but documents that we really don't know.
5583 # 'pass_all' -- all dependencies passed with no checks.
5584 # 'test_compile' -- check by making test program.
5585 # 'file_magic [[regex]]' -- check by looking for files in library path
5586 # which responds to the $file_magic_cmd with a given extended regex.
5587 # If you have `file' or equivalent on your system and you're not sure
5588 # whether `pass_all' will *always* work, you probably want this one.
5589
5590 case $host_os in
5591 aix[4-9]*)
5592 lt_cv_deplibs_check_method=pass_all
5593 ;;
5594
5595 beos*)
5596 lt_cv_deplibs_check_method=pass_all
5597 ;;
5598
5599 bsdi[45]*)
5600 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5601 lt_cv_file_magic_cmd='/usr/bin/file -L'
5602 lt_cv_file_magic_test_file=/shlib/libc.so
5603 ;;
5604
5605 cygwin*)
5606 # func_win32_libid is a shell function defined in ltmain.sh
5607 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5608 lt_cv_file_magic_cmd='func_win32_libid'
5609 ;;
5610
5611 mingw* | pw32*)
5612 # Base MSYS/MinGW do not provide the 'file' command needed by
5613 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5614 # unless we find 'file', for example because we are cross-compiling.
5615 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5616 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5617 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5618 lt_cv_file_magic_cmd='func_win32_libid'
5619 else
5620 # Keep this pattern in sync with the one in func_win32_libid.
5621 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5622 lt_cv_file_magic_cmd='$OBJDUMP -f'
5623 fi
5624 ;;
5625
5626 cegcc*)
5627 # use the weaker test based on 'objdump'. See mingw*.
5628 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5629 lt_cv_file_magic_cmd='$OBJDUMP -f'
5630 ;;
5631
5632 darwin* | rhapsody*)
5633 lt_cv_deplibs_check_method=pass_all
5634 ;;
5635
5636 freebsd* | dragonfly*)
5637 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5638 case $host_cpu in
5639 i*86 )
5640 # Not sure whether the presence of OpenBSD here was a mistake.
5641 # Let's accept both of them until this is cleared up.
5642 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5643 lt_cv_file_magic_cmd=/usr/bin/file
5644 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5645 ;;
5646 esac
5647 else
5648 lt_cv_deplibs_check_method=pass_all
5649 fi
5650 ;;
5651
5652 gnu*)
5653 lt_cv_deplibs_check_method=pass_all
5654 ;;
5655
5656 haiku*)
5657 lt_cv_deplibs_check_method=pass_all
5658 ;;
5659
5660 hpux10.20* | hpux11*)
5661 lt_cv_file_magic_cmd=/usr/bin/file
5662 case $host_cpu in
5663 ia64*)
5664 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5665 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5666 ;;
5667 hppa*64*)
5668 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]'
5669 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5670 ;;
5671 *)
5672 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5673 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5674 ;;
5675 esac
5676 ;;
5677
5678 interix[3-9]*)
5679 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5680 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5681 ;;
5682
5683 irix5* | irix6* | nonstopux*)
5684 case $LD in
5685 *-32|*"-32 ") libmagic=32-bit;;
5686 *-n32|*"-n32 ") libmagic=N32;;
5687 *-64|*"-64 ") libmagic=64-bit;;
5688 *) libmagic=never-match;;
5689 esac
5690 lt_cv_deplibs_check_method=pass_all
5691 ;;
5692
5693 # This must be Linux ELF.
5694 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5695 lt_cv_deplibs_check_method=pass_all
5696 ;;
5697
5698 netbsd*)
5699 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5700 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5701 else
5702 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5703 fi
5704 ;;
5705
5706 newos6*)
5707 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5708 lt_cv_file_magic_cmd=/usr/bin/file
5709 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5710 ;;
5711
5712 *nto* | *qnx*)
5713 lt_cv_deplibs_check_method=pass_all
5714 ;;
5715
5716 openbsd*)
5717 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5718 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5719 else
5720 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5721 fi
5722 ;;
5723
5724 osf3* | osf4* | osf5*)
5725 lt_cv_deplibs_check_method=pass_all
5726 ;;
5727
5728 rdos*)
5729 lt_cv_deplibs_check_method=pass_all
5730 ;;
5731
5732 solaris*)
5733 lt_cv_deplibs_check_method=pass_all
5734 ;;
5735
5736 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5737 lt_cv_deplibs_check_method=pass_all
5738 ;;
5739
5740 sysv4 | sysv4.3*)
5741 case $host_vendor in
5742 motorola)
5743 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]'
5744 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5745 ;;
5746 ncr)
5747 lt_cv_deplibs_check_method=pass_all
5748 ;;
5749 sequent)
5750 lt_cv_file_magic_cmd='/bin/file'
5751 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5752 ;;
5753 sni)
5754 lt_cv_file_magic_cmd='/bin/file'
5755 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5756 lt_cv_file_magic_test_file=/lib/libc.so
5757 ;;
5758 siemens)
5759 lt_cv_deplibs_check_method=pass_all
5760 ;;
5761 pc)
5762 lt_cv_deplibs_check_method=pass_all
5763 ;;
5764 esac
5765 ;;
5766
5767 tpf*)
5768 lt_cv_deplibs_check_method=pass_all
5769 ;;
5770 esac
5771
5772 fi
5773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5774 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5775
5776 file_magic_glob=
5777 want_nocaseglob=no
5778 if test "$build" = "$host"; then
5779 case $host_os in
5780 mingw* | pw32*)
5781 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5782 want_nocaseglob=yes
5783 else
5784 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5785 fi
5786 ;;
5787 esac
5788 fi
5789
5790 file_magic_cmd=$lt_cv_file_magic_cmd
5791 deplibs_check_method=$lt_cv_deplibs_check_method
5792 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5793
5794
5795
5796
5797
5798
5799
5800
5801
5802
5803
5804
5805
5806
5807
5808
5809
5810
5811
5812
5813
5814
5815 if test -n "$ac_tool_prefix"; then
5816 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5817 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5819 $as_echo_n "checking for $ac_word... " >&6; }
5820 if ${ac_cv_prog_DLLTOOL+:} false; then :
5821 $as_echo_n "(cached) " >&6
5822 else
5823 if test -n "$DLLTOOL"; then
5824 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5825 else
5826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5827 for as_dir in $PATH
5828 do
5829 IFS=$as_save_IFS
5830 test -z "$as_dir" && as_dir=.
5831 for ac_exec_ext in '' $ac_executable_extensions; do
5832 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5833 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5834 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5835 break 2
5836 fi
5837 done
5838 done
5839 IFS=$as_save_IFS
5840
5841 fi
5842 fi
5843 DLLTOOL=$ac_cv_prog_DLLTOOL
5844 if test -n "$DLLTOOL"; then
5845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5846 $as_echo "$DLLTOOL" >&6; }
5847 else
5848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5849 $as_echo "no" >&6; }
5850 fi
5851
5852
5853 fi
5854 if test -z "$ac_cv_prog_DLLTOOL"; then
5855 ac_ct_DLLTOOL=$DLLTOOL
5856 # Extract the first word of "dlltool", so it can be a program name with args.
5857 set dummy dlltool; ac_word=$2
5858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5859 $as_echo_n "checking for $ac_word... " >&6; }
5860 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5861 $as_echo_n "(cached) " >&6
5862 else
5863 if test -n "$ac_ct_DLLTOOL"; then
5864 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5865 else
5866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5867 for as_dir in $PATH
5868 do
5869 IFS=$as_save_IFS
5870 test -z "$as_dir" && as_dir=.
5871 for ac_exec_ext in '' $ac_executable_extensions; do
5872 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5873 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5874 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5875 break 2
5876 fi
5877 done
5878 done
5879 IFS=$as_save_IFS
5880
5881 fi
5882 fi
5883 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5884 if test -n "$ac_ct_DLLTOOL"; then
5885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5886 $as_echo "$ac_ct_DLLTOOL" >&6; }
5887 else
5888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5889 $as_echo "no" >&6; }
5890 fi
5891
5892 if test "x$ac_ct_DLLTOOL" = x; then
5893 DLLTOOL="false"
5894 else
5895 case $cross_compiling:$ac_tool_warned in
5896 yes:)
5897 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5898 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5899 ac_tool_warned=yes ;;
5900 esac
5901 DLLTOOL=$ac_ct_DLLTOOL
5902 fi
5903 else
5904 DLLTOOL="$ac_cv_prog_DLLTOOL"
5905 fi
5906
5907 test -z "$DLLTOOL" && DLLTOOL=dlltool
5908
5909
5910
5911
5912
5913
5914
5915
5916
5917
5918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5919 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5920 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5921 $as_echo_n "(cached) " >&6
5922 else
5923 lt_cv_sharedlib_from_linklib_cmd='unknown'
5924
5925 case $host_os in
5926 cygwin* | mingw* | pw32* | cegcc*)
5927 # two different shell functions defined in ltmain.sh
5928 # decide which to use based on capabilities of $DLLTOOL
5929 case `$DLLTOOL --help 2>&1` in
5930 *--identify-strict*)
5931 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5932 ;;
5933 *)
5934 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5935 ;;
5936 esac
5937 ;;
5938 *)
5939 # fallback: assume linklib IS sharedlib
5940 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5941 ;;
5942 esac
5943
5944 fi
5945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5946 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5947 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5948 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5949
5950
5951
5952
5953
5954
5955
5956 if test -n "$ac_tool_prefix"; then
5957 for ac_prog in ar
5958 do
5959 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5960 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5962 $as_echo_n "checking for $ac_word... " >&6; }
5963 if ${ac_cv_prog_AR+:} false; then :
5964 $as_echo_n "(cached) " >&6
5965 else
5966 if test -n "$AR"; then
5967 ac_cv_prog_AR="$AR" # Let the user override the test.
5968 else
5969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5970 for as_dir in $PATH
5971 do
5972 IFS=$as_save_IFS
5973 test -z "$as_dir" && as_dir=.
5974 for ac_exec_ext in '' $ac_executable_extensions; do
5975 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5976 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5977 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5978 break 2
5979 fi
5980 done
5981 done
5982 IFS=$as_save_IFS
5983
5984 fi
5985 fi
5986 AR=$ac_cv_prog_AR
5987 if test -n "$AR"; then
5988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5989 $as_echo "$AR" >&6; }
5990 else
5991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5992 $as_echo "no" >&6; }
5993 fi
5994
5995
5996 test -n "$AR" && break
5997 done
5998 fi
5999 if test -z "$AR"; then
6000 ac_ct_AR=$AR
6001 for ac_prog in ar
6002 do
6003 # Extract the first word of "$ac_prog", so it can be a program name with args.
6004 set dummy $ac_prog; ac_word=$2
6005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6006 $as_echo_n "checking for $ac_word... " >&6; }
6007 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6008 $as_echo_n "(cached) " >&6
6009 else
6010 if test -n "$ac_ct_AR"; then
6011 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6012 else
6013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6014 for as_dir in $PATH
6015 do
6016 IFS=$as_save_IFS
6017 test -z "$as_dir" && as_dir=.
6018 for ac_exec_ext in '' $ac_executable_extensions; do
6019 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6020 ac_cv_prog_ac_ct_AR="$ac_prog"
6021 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6022 break 2
6023 fi
6024 done
6025 done
6026 IFS=$as_save_IFS
6027
6028 fi
6029 fi
6030 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6031 if test -n "$ac_ct_AR"; then
6032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6033 $as_echo "$ac_ct_AR" >&6; }
6034 else
6035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6036 $as_echo "no" >&6; }
6037 fi
6038
6039
6040 test -n "$ac_ct_AR" && break
6041 done
6042
6043 if test "x$ac_ct_AR" = x; then
6044 AR="false"
6045 else
6046 case $cross_compiling:$ac_tool_warned in
6047 yes:)
6048 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6049 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6050 ac_tool_warned=yes ;;
6051 esac
6052 AR=$ac_ct_AR
6053 fi
6054 fi
6055
6056 : ${AR=ar}
6057 : ${AR_FLAGS=cru}
6058
6059
6060
6061
6062
6063
6064
6065
6066
6067
6068
6069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6070 $as_echo_n "checking for archiver @FILE support... " >&6; }
6071 if ${lt_cv_ar_at_file+:} false; then :
6072 $as_echo_n "(cached) " >&6
6073 else
6074 lt_cv_ar_at_file=no
6075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6076 /* end confdefs.h. */
6077
6078 int
6079 main ()
6080 {
6081
6082 ;
6083 return 0;
6084 }
6085 _ACEOF
6086 if ac_fn_c_try_compile "$LINENO"; then :
6087 echo conftest.$ac_objext > conftest.lst
6088 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6089 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6090 (eval $lt_ar_try) 2>&5
6091 ac_status=$?
6092 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6093 test $ac_status = 0; }
6094 if test "$ac_status" -eq 0; then
6095 # Ensure the archiver fails upon bogus file names.
6096 rm -f conftest.$ac_objext libconftest.a
6097 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6098 (eval $lt_ar_try) 2>&5
6099 ac_status=$?
6100 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6101 test $ac_status = 0; }
6102 if test "$ac_status" -ne 0; then
6103 lt_cv_ar_at_file=@
6104 fi
6105 fi
6106 rm -f conftest.* libconftest.a
6107
6108 fi
6109 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6110
6111 fi
6112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6113 $as_echo "$lt_cv_ar_at_file" >&6; }
6114
6115 if test "x$lt_cv_ar_at_file" = xno; then
6116 archiver_list_spec=
6117 else
6118 archiver_list_spec=$lt_cv_ar_at_file
6119 fi
6120
6121
6122
6123
6124
6125
6126
6127 if test -n "$ac_tool_prefix"; then
6128 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6129 set dummy ${ac_tool_prefix}strip; ac_word=$2
6130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6131 $as_echo_n "checking for $ac_word... " >&6; }
6132 if ${ac_cv_prog_STRIP+:} false; then :
6133 $as_echo_n "(cached) " >&6
6134 else
6135 if test -n "$STRIP"; then
6136 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6137 else
6138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6139 for as_dir in $PATH
6140 do
6141 IFS=$as_save_IFS
6142 test -z "$as_dir" && as_dir=.
6143 for ac_exec_ext in '' $ac_executable_extensions; do
6144 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6145 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6146 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6147 break 2
6148 fi
6149 done
6150 done
6151 IFS=$as_save_IFS
6152
6153 fi
6154 fi
6155 STRIP=$ac_cv_prog_STRIP
6156 if test -n "$STRIP"; then
6157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6158 $as_echo "$STRIP" >&6; }
6159 else
6160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6161 $as_echo "no" >&6; }
6162 fi
6163
6164
6165 fi
6166 if test -z "$ac_cv_prog_STRIP"; then
6167 ac_ct_STRIP=$STRIP
6168 # Extract the first word of "strip", so it can be a program name with args.
6169 set dummy strip; ac_word=$2
6170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6171 $as_echo_n "checking for $ac_word... " >&6; }
6172 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6173 $as_echo_n "(cached) " >&6
6174 else
6175 if test -n "$ac_ct_STRIP"; then
6176 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6177 else
6178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6179 for as_dir in $PATH
6180 do
6181 IFS=$as_save_IFS
6182 test -z "$as_dir" && as_dir=.
6183 for ac_exec_ext in '' $ac_executable_extensions; do
6184 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6185 ac_cv_prog_ac_ct_STRIP="strip"
6186 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6187 break 2
6188 fi
6189 done
6190 done
6191 IFS=$as_save_IFS
6192
6193 fi
6194 fi
6195 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6196 if test -n "$ac_ct_STRIP"; then
6197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6198 $as_echo "$ac_ct_STRIP" >&6; }
6199 else
6200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6201 $as_echo "no" >&6; }
6202 fi
6203
6204 if test "x$ac_ct_STRIP" = x; then
6205 STRIP=":"
6206 else
6207 case $cross_compiling:$ac_tool_warned in
6208 yes:)
6209 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6210 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6211 ac_tool_warned=yes ;;
6212 esac
6213 STRIP=$ac_ct_STRIP
6214 fi
6215 else
6216 STRIP="$ac_cv_prog_STRIP"
6217 fi
6218
6219 test -z "$STRIP" && STRIP=:
6220
6221
6222
6223
6224
6225
6226 if test -n "$ac_tool_prefix"; then
6227 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6228 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6230 $as_echo_n "checking for $ac_word... " >&6; }
6231 if ${ac_cv_prog_RANLIB+:} false; then :
6232 $as_echo_n "(cached) " >&6
6233 else
6234 if test -n "$RANLIB"; then
6235 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6236 else
6237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6238 for as_dir in $PATH
6239 do
6240 IFS=$as_save_IFS
6241 test -z "$as_dir" && as_dir=.
6242 for ac_exec_ext in '' $ac_executable_extensions; do
6243 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6244 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6245 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6246 break 2
6247 fi
6248 done
6249 done
6250 IFS=$as_save_IFS
6251
6252 fi
6253 fi
6254 RANLIB=$ac_cv_prog_RANLIB
6255 if test -n "$RANLIB"; then
6256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6257 $as_echo "$RANLIB" >&6; }
6258 else
6259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6260 $as_echo "no" >&6; }
6261 fi
6262
6263
6264 fi
6265 if test -z "$ac_cv_prog_RANLIB"; then
6266 ac_ct_RANLIB=$RANLIB
6267 # Extract the first word of "ranlib", so it can be a program name with args.
6268 set dummy ranlib; ac_word=$2
6269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6270 $as_echo_n "checking for $ac_word... " >&6; }
6271 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6272 $as_echo_n "(cached) " >&6
6273 else
6274 if test -n "$ac_ct_RANLIB"; then
6275 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6276 else
6277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6278 for as_dir in $PATH
6279 do
6280 IFS=$as_save_IFS
6281 test -z "$as_dir" && as_dir=.
6282 for ac_exec_ext in '' $ac_executable_extensions; do
6283 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6284 ac_cv_prog_ac_ct_RANLIB="ranlib"
6285 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6286 break 2
6287 fi
6288 done
6289 done
6290 IFS=$as_save_IFS
6291
6292 fi
6293 fi
6294 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6295 if test -n "$ac_ct_RANLIB"; then
6296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6297 $as_echo "$ac_ct_RANLIB" >&6; }
6298 else
6299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6300 $as_echo "no" >&6; }
6301 fi
6302
6303 if test "x$ac_ct_RANLIB" = x; then
6304 RANLIB=":"
6305 else
6306 case $cross_compiling:$ac_tool_warned in
6307 yes:)
6308 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6309 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6310 ac_tool_warned=yes ;;
6311 esac
6312 RANLIB=$ac_ct_RANLIB
6313 fi
6314 else
6315 RANLIB="$ac_cv_prog_RANLIB"
6316 fi
6317
6318 test -z "$RANLIB" && RANLIB=:
6319
6320
6321
6322
6323
6324
6325 # Determine commands to create old-style static archives.
6326 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6327 old_postinstall_cmds='chmod 644 $oldlib'
6328 old_postuninstall_cmds=
6329
6330 if test -n "$RANLIB"; then
6331 case $host_os in
6332 openbsd*)
6333 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6334 ;;
6335 *)
6336 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6337 ;;
6338 esac
6339 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6340 fi
6341
6342 case $host_os in
6343 darwin*)
6344 lock_old_archive_extraction=yes ;;
6345 *)
6346 lock_old_archive_extraction=no ;;
6347 esac
6348
6349
6350
6351
6352
6353
6354
6355
6356
6357
6358
6359
6360
6361
6362
6363
6364
6365
6366
6367
6368
6369
6370
6371
6372
6373
6374
6375
6376
6377
6378
6379
6380
6381
6382
6383
6384
6385
6386
6387 # If no C compiler was specified, use CC.
6388 LTCC=${LTCC-"$CC"}
6389
6390 # If no C compiler flags were specified, use CFLAGS.
6391 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6392
6393 # Allow CC to be a program name with arguments.
6394 compiler=$CC
6395
6396
6397 # Check for command to grab the raw symbol name followed by C symbol from nm.
6398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6399 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6400 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6401 $as_echo_n "(cached) " >&6
6402 else
6403
6404 # These are sane defaults that work on at least a few old systems.
6405 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6406
6407 # Character class describing NM global symbol codes.
6408 symcode='[BCDEGRST]'
6409
6410 # Regexp to match symbols that can be accessed directly from C.
6411 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6412
6413 # Define system-specific variables.
6414 case $host_os in
6415 aix*)
6416 symcode='[BCDT]'
6417 ;;
6418 cygwin* | mingw* | pw32* | cegcc*)
6419 symcode='[ABCDGISTW]'
6420 ;;
6421 hpux*)
6422 if test "$host_cpu" = ia64; then
6423 symcode='[ABCDEGRST]'
6424 fi
6425 ;;
6426 irix* | nonstopux*)
6427 symcode='[BCDEGRST]'
6428 ;;
6429 osf*)
6430 symcode='[BCDEGQRST]'
6431 ;;
6432 solaris*)
6433 symcode='[BDRT]'
6434 ;;
6435 sco3.2v5*)
6436 symcode='[DT]'
6437 ;;
6438 sysv4.2uw2*)
6439 symcode='[DT]'
6440 ;;
6441 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6442 symcode='[ABDT]'
6443 ;;
6444 sysv4)
6445 symcode='[DFNSTU]'
6446 ;;
6447 esac
6448
6449 # If we're using GNU nm, then use its standard symbol codes.
6450 case `$NM -V 2>&1` in
6451 *GNU* | *'with BFD'*)
6452 symcode='[ABCDGIRSTW]' ;;
6453 esac
6454
6455 # Transform an extracted symbol line into a proper C declaration.
6456 # Some systems (esp. on ia64) link data and code symbols differently,
6457 # so use this general approach.
6458 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6459
6460 # Transform an extracted symbol line into symbol name and symbol address
6461 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6462 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'"
6463
6464 # Handle CRLF in mingw tool chain
6465 opt_cr=
6466 case $build_os in
6467 mingw*)
6468 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6469 ;;
6470 esac
6471
6472 # Try without a prefix underscore, then with it.
6473 for ac_symprfx in "" "_"; do
6474
6475 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6476 symxfrm="\\1 $ac_symprfx\\2 \\2"
6477
6478 # Write the raw and C identifiers.
6479 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6480 # Fake it for dumpbin and say T for any non-static function
6481 # and D for any global variable.
6482 # Also find C++ and __fastcall symbols from MSVC++,
6483 # which start with @ or ?.
6484 lt_cv_sys_global_symbol_pipe="$AWK '"\
6485 " {last_section=section; section=\$ 3};"\
6486 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6487 " \$ 0!~/External *\|/{next};"\
6488 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6489 " {if(hide[section]) next};"\
6490 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6491 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6492 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6493 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6494 " ' prfx=^$ac_symprfx"
6495 else
6496 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6497 fi
6498 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6499
6500 # Check to see that the pipe works correctly.
6501 pipe_works=no
6502
6503 rm -f conftest*
6504 cat > conftest.$ac_ext <<_LT_EOF
6505 #ifdef __cplusplus
6506 extern "C" {
6507 #endif
6508 char nm_test_var;
6509 void nm_test_func(void);
6510 void nm_test_func(void){}
6511 #ifdef __cplusplus
6512 }
6513 #endif
6514 int main(){nm_test_var='a';nm_test_func();return(0);}
6515 _LT_EOF
6516
6517 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6518 (eval $ac_compile) 2>&5
6519 ac_status=$?
6520 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6521 test $ac_status = 0; }; then
6522 # Now try to grab the symbols.
6523 nlist=conftest.nm
6524 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6525 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6526 ac_status=$?
6527 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6528 test $ac_status = 0; } && test -s "$nlist"; then
6529 # Try sorting and uniquifying the output.
6530 if sort "$nlist" | uniq > "$nlist"T; then
6531 mv -f "$nlist"T "$nlist"
6532 else
6533 rm -f "$nlist"T
6534 fi
6535
6536 # Make sure that we snagged all the symbols we need.
6537 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6538 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6539 cat <<_LT_EOF > conftest.$ac_ext
6540 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6541 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6542 /* DATA imports from DLLs on WIN32 con't be const, because runtime
6543 relocations are performed -- see ld's documentation on pseudo-relocs. */
6544 # define LT_DLSYM_CONST
6545 #elif defined(__osf__)
6546 /* This system does not cope well with relocations in const data. */
6547 # define LT_DLSYM_CONST
6548 #else
6549 # define LT_DLSYM_CONST const
6550 #endif
6551
6552 #ifdef __cplusplus
6553 extern "C" {
6554 #endif
6555
6556 _LT_EOF
6557 # Now generate the symbol file.
6558 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6559
6560 cat <<_LT_EOF >> conftest.$ac_ext
6561
6562 /* The mapping between symbol names and symbols. */
6563 LT_DLSYM_CONST struct {
6564 const char *name;
6565 void *address;
6566 }
6567 lt__PROGRAM__LTX_preloaded_symbols[] =
6568 {
6569 { "@PROGRAM@", (void *) 0 },
6570 _LT_EOF
6571 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6572 cat <<\_LT_EOF >> conftest.$ac_ext
6573 {0, (void *) 0}
6574 };
6575
6576 /* This works around a problem in FreeBSD linker */
6577 #ifdef FREEBSD_WORKAROUND
6578 static const void *lt_preloaded_setup() {
6579 return lt__PROGRAM__LTX_preloaded_symbols;
6580 }
6581 #endif
6582
6583 #ifdef __cplusplus
6584 }
6585 #endif
6586 _LT_EOF
6587 # Now try linking the two files.
6588 mv conftest.$ac_objext conftstm.$ac_objext
6589 lt_globsym_save_LIBS=$LIBS
6590 lt_globsym_save_CFLAGS=$CFLAGS
6591 LIBS="conftstm.$ac_objext"
6592 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6593 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6594 (eval $ac_link) 2>&5
6595 ac_status=$?
6596 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6597 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6598 pipe_works=yes
6599 fi
6600 LIBS=$lt_globsym_save_LIBS
6601 CFLAGS=$lt_globsym_save_CFLAGS
6602 else
6603 echo "cannot find nm_test_func in $nlist" >&5
6604 fi
6605 else
6606 echo "cannot find nm_test_var in $nlist" >&5
6607 fi
6608 else
6609 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6610 fi
6611 else
6612 echo "$progname: failed program was:" >&5
6613 cat conftest.$ac_ext >&5
6614 fi
6615 rm -rf conftest* conftst*
6616
6617 # Do not use the global_symbol_pipe unless it works.
6618 if test "$pipe_works" = yes; then
6619 break
6620 else
6621 lt_cv_sys_global_symbol_pipe=
6622 fi
6623 done
6624
6625 fi
6626
6627 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6628 lt_cv_sys_global_symbol_to_cdecl=
6629 fi
6630 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6632 $as_echo "failed" >&6; }
6633 else
6634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6635 $as_echo "ok" >&6; }
6636 fi
6637
6638 # Response file support.
6639 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6640 nm_file_list_spec='@'
6641 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6642 nm_file_list_spec='@'
6643 fi
6644
6645
6646
6647
6648
6649
6650
6651
6652
6653
6654
6655
6656
6657
6658
6659
6660
6661
6662
6663
6664
6665
6666
6667
6668
6669
6670
6671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6672 $as_echo_n "checking for sysroot... " >&6; }
6673
6674 # Check whether --with-sysroot was given.
6675 if test "${with_sysroot+set}" = set; then :
6676 withval=$with_sysroot;
6677 else
6678 with_sysroot=no
6679 fi
6680
6681
6682 lt_sysroot=
6683 case ${with_sysroot} in #(
6684 yes)
6685 if test "$GCC" = yes; then
6686 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6687 fi
6688 ;; #(
6689 /*)
6690 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6691 ;; #(
6692 no|'')
6693 ;; #(
6694 *)
6695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6696 $as_echo "${with_sysroot}" >&6; }
6697 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6698 ;;
6699 esac
6700
6701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6702 $as_echo "${lt_sysroot:-no}" >&6; }
6703
6704
6705
6706
6707
6708 # Check whether --enable-libtool-lock was given.
6709 if test "${enable_libtool_lock+set}" = set; then :
6710 enableval=$enable_libtool_lock;
6711 fi
6712
6713 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6714
6715 # Some flags need to be propagated to the compiler or linker for good
6716 # libtool support.
6717 case $host in
6718 ia64-*-hpux*)
6719 # Find out which ABI we are using.
6720 echo 'int i;' > conftest.$ac_ext
6721 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6722 (eval $ac_compile) 2>&5
6723 ac_status=$?
6724 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6725 test $ac_status = 0; }; then
6726 case `/usr/bin/file conftest.$ac_objext` in
6727 *ELF-32*)
6728 HPUX_IA64_MODE="32"
6729 ;;
6730 *ELF-64*)
6731 HPUX_IA64_MODE="64"
6732 ;;
6733 esac
6734 fi
6735 rm -rf conftest*
6736 ;;
6737 *-*-irix6*)
6738 # Find out which ABI we are using.
6739 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6740 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6741 (eval $ac_compile) 2>&5
6742 ac_status=$?
6743 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6744 test $ac_status = 0; }; then
6745 if test "$lt_cv_prog_gnu_ld" = yes; then
6746 case `/usr/bin/file conftest.$ac_objext` in
6747 *32-bit*)
6748 LD="${LD-ld} -melf32bsmip"
6749 ;;
6750 *N32*)
6751 LD="${LD-ld} -melf32bmipn32"
6752 ;;
6753 *64-bit*)
6754 LD="${LD-ld} -melf64bmip"
6755 ;;
6756 esac
6757 else
6758 case `/usr/bin/file conftest.$ac_objext` in
6759 *32-bit*)
6760 LD="${LD-ld} -32"
6761 ;;
6762 *N32*)
6763 LD="${LD-ld} -n32"
6764 ;;
6765 *64-bit*)
6766 LD="${LD-ld} -64"
6767 ;;
6768 esac
6769 fi
6770 fi
6771 rm -rf conftest*
6772 ;;
6773
6774 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6775 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6776 # Find out which ABI we are using.
6777 echo 'int i;' > conftest.$ac_ext
6778 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6779 (eval $ac_compile) 2>&5
6780 ac_status=$?
6781 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6782 test $ac_status = 0; }; then
6783 case `/usr/bin/file conftest.o` in
6784 *32-bit*)
6785 case $host in
6786 x86_64-*kfreebsd*-gnu)
6787 LD="${LD-ld} -m elf_i386_fbsd"
6788 ;;
6789 x86_64-*linux*)
6790 LD="${LD-ld} -m elf_i386"
6791 ;;
6792 ppc64-*linux*|powerpc64-*linux*)
6793 LD="${LD-ld} -m elf32ppclinux"
6794 ;;
6795 s390x-*linux*)
6796 LD="${LD-ld} -m elf_s390"
6797 ;;
6798 sparc64-*linux*)
6799 LD="${LD-ld} -m elf32_sparc"
6800 ;;
6801 esac
6802 ;;
6803 *64-bit*)
6804 case $host in
6805 x86_64-*kfreebsd*-gnu)
6806 LD="${LD-ld} -m elf_x86_64_fbsd"
6807 ;;
6808 x86_64-*linux*)
6809 LD="${LD-ld} -m elf_x86_64"
6810 ;;
6811 ppc*-*linux*|powerpc*-*linux*)
6812 LD="${LD-ld} -m elf64ppc"
6813 ;;
6814 s390*-*linux*|s390*-*tpf*)
6815 LD="${LD-ld} -m elf64_s390"
6816 ;;
6817 sparc*-*linux*)
6818 LD="${LD-ld} -m elf64_sparc"
6819 ;;
6820 esac
6821 ;;
6822 esac
6823 fi
6824 rm -rf conftest*
6825 ;;
6826
6827 *-*-sco3.2v5*)
6828 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6829 SAVE_CFLAGS="$CFLAGS"
6830 CFLAGS="$CFLAGS -belf"
6831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6832 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6833 if ${lt_cv_cc_needs_belf+:} false; then :
6834 $as_echo_n "(cached) " >&6
6835 else
6836 ac_ext=c
6837 ac_cpp='$CPP $CPPFLAGS'
6838 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6839 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6840 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6841
6842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6843 /* end confdefs.h. */
6844
6845 int
6846 main ()
6847 {
6848
6849 ;
6850 return 0;
6851 }
6852 _ACEOF
6853 if ac_fn_c_try_link "$LINENO"; then :
6854 lt_cv_cc_needs_belf=yes
6855 else
6856 lt_cv_cc_needs_belf=no
6857 fi
6858 rm -f core conftest.err conftest.$ac_objext \
6859 conftest$ac_exeext conftest.$ac_ext
6860 ac_ext=c
6861 ac_cpp='$CPP $CPPFLAGS'
6862 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6863 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6864 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6865
6866 fi
6867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6868 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6869 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6870 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6871 CFLAGS="$SAVE_CFLAGS"
6872 fi
6873 ;;
6874 sparc*-*solaris*)
6875 # Find out which ABI we are using.
6876 echo 'int i;' > conftest.$ac_ext
6877 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6878 (eval $ac_compile) 2>&5
6879 ac_status=$?
6880 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6881 test $ac_status = 0; }; then
6882 case `/usr/bin/file conftest.o` in
6883 *64-bit*)
6884 case $lt_cv_prog_gnu_ld in
6885 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6886 *)
6887 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6888 LD="${LD-ld} -64"
6889 fi
6890 ;;
6891 esac
6892 ;;
6893 esac
6894 fi
6895 rm -rf conftest*
6896 ;;
6897 esac
6898
6899 need_locks="$enable_libtool_lock"
6900
6901 if test -n "$ac_tool_prefix"; then
6902 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6903 set dummy ${ac_tool_prefix}mt; ac_word=$2
6904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6905 $as_echo_n "checking for $ac_word... " >&6; }
6906 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6907 $as_echo_n "(cached) " >&6
6908 else
6909 if test -n "$MANIFEST_TOOL"; then
6910 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6911 else
6912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6913 for as_dir in $PATH
6914 do
6915 IFS=$as_save_IFS
6916 test -z "$as_dir" && as_dir=.
6917 for ac_exec_ext in '' $ac_executable_extensions; do
6918 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6919 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6920 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6921 break 2
6922 fi
6923 done
6924 done
6925 IFS=$as_save_IFS
6926
6927 fi
6928 fi
6929 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6930 if test -n "$MANIFEST_TOOL"; then
6931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6932 $as_echo "$MANIFEST_TOOL" >&6; }
6933 else
6934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6935 $as_echo "no" >&6; }
6936 fi
6937
6938
6939 fi
6940 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6941 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6942 # Extract the first word of "mt", so it can be a program name with args.
6943 set dummy mt; ac_word=$2
6944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6945 $as_echo_n "checking for $ac_word... " >&6; }
6946 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6947 $as_echo_n "(cached) " >&6
6948 else
6949 if test -n "$ac_ct_MANIFEST_TOOL"; then
6950 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6951 else
6952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6953 for as_dir in $PATH
6954 do
6955 IFS=$as_save_IFS
6956 test -z "$as_dir" && as_dir=.
6957 for ac_exec_ext in '' $ac_executable_extensions; do
6958 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6959 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6960 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6961 break 2
6962 fi
6963 done
6964 done
6965 IFS=$as_save_IFS
6966
6967 fi
6968 fi
6969 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6970 if test -n "$ac_ct_MANIFEST_TOOL"; then
6971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6972 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6973 else
6974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6975 $as_echo "no" >&6; }
6976 fi
6977
6978 if test "x$ac_ct_MANIFEST_TOOL" = x; then
6979 MANIFEST_TOOL=":"
6980 else
6981 case $cross_compiling:$ac_tool_warned in
6982 yes:)
6983 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6984 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6985 ac_tool_warned=yes ;;
6986 esac
6987 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6988 fi
6989 else
6990 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6991 fi
6992
6993 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6995 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6996 if ${lt_cv_path_mainfest_tool+:} false; then :
6997 $as_echo_n "(cached) " >&6
6998 else
6999 lt_cv_path_mainfest_tool=no
7000 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7001 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7002 cat conftest.err >&5
7003 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7004 lt_cv_path_mainfest_tool=yes
7005 fi
7006 rm -f conftest*
7007 fi
7008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7009 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7010 if test "x$lt_cv_path_mainfest_tool" != xyes; then
7011 MANIFEST_TOOL=:
7012 fi
7013
7014
7015
7016
7017
7018
7019 case $host_os in
7020 rhapsody* | darwin*)
7021 if test -n "$ac_tool_prefix"; then
7022 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7023 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7025 $as_echo_n "checking for $ac_word... " >&6; }
7026 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7027 $as_echo_n "(cached) " >&6
7028 else
7029 if test -n "$DSYMUTIL"; then
7030 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7031 else
7032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7033 for as_dir in $PATH
7034 do
7035 IFS=$as_save_IFS
7036 test -z "$as_dir" && as_dir=.
7037 for ac_exec_ext in '' $ac_executable_extensions; do
7038 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7039 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7040 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7041 break 2
7042 fi
7043 done
7044 done
7045 IFS=$as_save_IFS
7046
7047 fi
7048 fi
7049 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7050 if test -n "$DSYMUTIL"; then
7051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7052 $as_echo "$DSYMUTIL" >&6; }
7053 else
7054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7055 $as_echo "no" >&6; }
7056 fi
7057
7058
7059 fi
7060 if test -z "$ac_cv_prog_DSYMUTIL"; then
7061 ac_ct_DSYMUTIL=$DSYMUTIL
7062 # Extract the first word of "dsymutil", so it can be a program name with args.
7063 set dummy dsymutil; ac_word=$2
7064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7065 $as_echo_n "checking for $ac_word... " >&6; }
7066 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7067 $as_echo_n "(cached) " >&6
7068 else
7069 if test -n "$ac_ct_DSYMUTIL"; then
7070 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7071 else
7072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7073 for as_dir in $PATH
7074 do
7075 IFS=$as_save_IFS
7076 test -z "$as_dir" && as_dir=.
7077 for ac_exec_ext in '' $ac_executable_extensions; do
7078 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7079 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7080 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7081 break 2
7082 fi
7083 done
7084 done
7085 IFS=$as_save_IFS
7086
7087 fi
7088 fi
7089 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7090 if test -n "$ac_ct_DSYMUTIL"; then
7091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7092 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7093 else
7094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7095 $as_echo "no" >&6; }
7096 fi
7097
7098 if test "x$ac_ct_DSYMUTIL" = x; then
7099 DSYMUTIL=":"
7100 else
7101 case $cross_compiling:$ac_tool_warned in
7102 yes:)
7103 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7104 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7105 ac_tool_warned=yes ;;
7106 esac
7107 DSYMUTIL=$ac_ct_DSYMUTIL
7108 fi
7109 else
7110 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7111 fi
7112
7113 if test -n "$ac_tool_prefix"; then
7114 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7115 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7117 $as_echo_n "checking for $ac_word... " >&6; }
7118 if ${ac_cv_prog_NMEDIT+:} false; then :
7119 $as_echo_n "(cached) " >&6
7120 else
7121 if test -n "$NMEDIT"; then
7122 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7123 else
7124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7125 for as_dir in $PATH
7126 do
7127 IFS=$as_save_IFS
7128 test -z "$as_dir" && as_dir=.
7129 for ac_exec_ext in '' $ac_executable_extensions; do
7130 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7131 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7132 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7133 break 2
7134 fi
7135 done
7136 done
7137 IFS=$as_save_IFS
7138
7139 fi
7140 fi
7141 NMEDIT=$ac_cv_prog_NMEDIT
7142 if test -n "$NMEDIT"; then
7143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7144 $as_echo "$NMEDIT" >&6; }
7145 else
7146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7147 $as_echo "no" >&6; }
7148 fi
7149
7150
7151 fi
7152 if test -z "$ac_cv_prog_NMEDIT"; then
7153 ac_ct_NMEDIT=$NMEDIT
7154 # Extract the first word of "nmedit", so it can be a program name with args.
7155 set dummy nmedit; ac_word=$2
7156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7157 $as_echo_n "checking for $ac_word... " >&6; }
7158 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7159 $as_echo_n "(cached) " >&6
7160 else
7161 if test -n "$ac_ct_NMEDIT"; then
7162 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7163 else
7164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7165 for as_dir in $PATH
7166 do
7167 IFS=$as_save_IFS
7168 test -z "$as_dir" && as_dir=.
7169 for ac_exec_ext in '' $ac_executable_extensions; do
7170 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7171 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7172 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7173 break 2
7174 fi
7175 done
7176 done
7177 IFS=$as_save_IFS
7178
7179 fi
7180 fi
7181 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7182 if test -n "$ac_ct_NMEDIT"; then
7183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7184 $as_echo "$ac_ct_NMEDIT" >&6; }
7185 else
7186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7187 $as_echo "no" >&6; }
7188 fi
7189
7190 if test "x$ac_ct_NMEDIT" = x; then
7191 NMEDIT=":"
7192 else
7193 case $cross_compiling:$ac_tool_warned in
7194 yes:)
7195 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7196 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7197 ac_tool_warned=yes ;;
7198 esac
7199 NMEDIT=$ac_ct_NMEDIT
7200 fi
7201 else
7202 NMEDIT="$ac_cv_prog_NMEDIT"
7203 fi
7204
7205 if test -n "$ac_tool_prefix"; then
7206 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7207 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7209 $as_echo_n "checking for $ac_word... " >&6; }
7210 if ${ac_cv_prog_LIPO+:} false; then :
7211 $as_echo_n "(cached) " >&6
7212 else
7213 if test -n "$LIPO"; then
7214 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7215 else
7216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7217 for as_dir in $PATH
7218 do
7219 IFS=$as_save_IFS
7220 test -z "$as_dir" && as_dir=.
7221 for ac_exec_ext in '' $ac_executable_extensions; do
7222 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7223 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7224 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7225 break 2
7226 fi
7227 done
7228 done
7229 IFS=$as_save_IFS
7230
7231 fi
7232 fi
7233 LIPO=$ac_cv_prog_LIPO
7234 if test -n "$LIPO"; then
7235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7236 $as_echo "$LIPO" >&6; }
7237 else
7238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7239 $as_echo "no" >&6; }
7240 fi
7241
7242
7243 fi
7244 if test -z "$ac_cv_prog_LIPO"; then
7245 ac_ct_LIPO=$LIPO
7246 # Extract the first word of "lipo", so it can be a program name with args.
7247 set dummy lipo; ac_word=$2
7248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7249 $as_echo_n "checking for $ac_word... " >&6; }
7250 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7251 $as_echo_n "(cached) " >&6
7252 else
7253 if test -n "$ac_ct_LIPO"; then
7254 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7255 else
7256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7257 for as_dir in $PATH
7258 do
7259 IFS=$as_save_IFS
7260 test -z "$as_dir" && as_dir=.
7261 for ac_exec_ext in '' $ac_executable_extensions; do
7262 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7263 ac_cv_prog_ac_ct_LIPO="lipo"
7264 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7265 break 2
7266 fi
7267 done
7268 done
7269 IFS=$as_save_IFS
7270
7271 fi
7272 fi
7273 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7274 if test -n "$ac_ct_LIPO"; then
7275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7276 $as_echo "$ac_ct_LIPO" >&6; }
7277 else
7278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7279 $as_echo "no" >&6; }
7280 fi
7281
7282 if test "x$ac_ct_LIPO" = x; then
7283 LIPO=":"
7284 else
7285 case $cross_compiling:$ac_tool_warned in
7286 yes:)
7287 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7288 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7289 ac_tool_warned=yes ;;
7290 esac
7291 LIPO=$ac_ct_LIPO
7292 fi
7293 else
7294 LIPO="$ac_cv_prog_LIPO"
7295 fi
7296
7297 if test -n "$ac_tool_prefix"; then
7298 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7299 set dummy ${ac_tool_prefix}otool; ac_word=$2
7300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7301 $as_echo_n "checking for $ac_word... " >&6; }
7302 if ${ac_cv_prog_OTOOL+:} false; then :
7303 $as_echo_n "(cached) " >&6
7304 else
7305 if test -n "$OTOOL"; then
7306 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7307 else
7308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7309 for as_dir in $PATH
7310 do
7311 IFS=$as_save_IFS
7312 test -z "$as_dir" && as_dir=.
7313 for ac_exec_ext in '' $ac_executable_extensions; do
7314 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7315 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7316 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7317 break 2
7318 fi
7319 done
7320 done
7321 IFS=$as_save_IFS
7322
7323 fi
7324 fi
7325 OTOOL=$ac_cv_prog_OTOOL
7326 if test -n "$OTOOL"; then
7327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7328 $as_echo "$OTOOL" >&6; }
7329 else
7330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7331 $as_echo "no" >&6; }
7332 fi
7333
7334
7335 fi
7336 if test -z "$ac_cv_prog_OTOOL"; then
7337 ac_ct_OTOOL=$OTOOL
7338 # Extract the first word of "otool", so it can be a program name with args.
7339 set dummy otool; ac_word=$2
7340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7341 $as_echo_n "checking for $ac_word... " >&6; }
7342 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7343 $as_echo_n "(cached) " >&6
7344 else
7345 if test -n "$ac_ct_OTOOL"; then
7346 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7347 else
7348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7349 for as_dir in $PATH
7350 do
7351 IFS=$as_save_IFS
7352 test -z "$as_dir" && as_dir=.
7353 for ac_exec_ext in '' $ac_executable_extensions; do
7354 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7355 ac_cv_prog_ac_ct_OTOOL="otool"
7356 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7357 break 2
7358 fi
7359 done
7360 done
7361 IFS=$as_save_IFS
7362
7363 fi
7364 fi
7365 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7366 if test -n "$ac_ct_OTOOL"; then
7367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7368 $as_echo "$ac_ct_OTOOL" >&6; }
7369 else
7370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7371 $as_echo "no" >&6; }
7372 fi
7373
7374 if test "x$ac_ct_OTOOL" = x; then
7375 OTOOL=":"
7376 else
7377 case $cross_compiling:$ac_tool_warned in
7378 yes:)
7379 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7380 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7381 ac_tool_warned=yes ;;
7382 esac
7383 OTOOL=$ac_ct_OTOOL
7384 fi
7385 else
7386 OTOOL="$ac_cv_prog_OTOOL"
7387 fi
7388
7389 if test -n "$ac_tool_prefix"; then
7390 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7391 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7393 $as_echo_n "checking for $ac_word... " >&6; }
7394 if ${ac_cv_prog_OTOOL64+:} false; then :
7395 $as_echo_n "(cached) " >&6
7396 else
7397 if test -n "$OTOOL64"; then
7398 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7399 else
7400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7401 for as_dir in $PATH
7402 do
7403 IFS=$as_save_IFS
7404 test -z "$as_dir" && as_dir=.
7405 for ac_exec_ext in '' $ac_executable_extensions; do
7406 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7407 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7408 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7409 break 2
7410 fi
7411 done
7412 done
7413 IFS=$as_save_IFS
7414
7415 fi
7416 fi
7417 OTOOL64=$ac_cv_prog_OTOOL64
7418 if test -n "$OTOOL64"; then
7419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7420 $as_echo "$OTOOL64" >&6; }
7421 else
7422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7423 $as_echo "no" >&6; }
7424 fi
7425
7426
7427 fi
7428 if test -z "$ac_cv_prog_OTOOL64"; then
7429 ac_ct_OTOOL64=$OTOOL64
7430 # Extract the first word of "otool64", so it can be a program name with args.
7431 set dummy otool64; ac_word=$2
7432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7433 $as_echo_n "checking for $ac_word... " >&6; }
7434 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7435 $as_echo_n "(cached) " >&6
7436 else
7437 if test -n "$ac_ct_OTOOL64"; then
7438 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7439 else
7440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7441 for as_dir in $PATH
7442 do
7443 IFS=$as_save_IFS
7444 test -z "$as_dir" && as_dir=.
7445 for ac_exec_ext in '' $ac_executable_extensions; do
7446 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7447 ac_cv_prog_ac_ct_OTOOL64="otool64"
7448 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7449 break 2
7450 fi
7451 done
7452 done
7453 IFS=$as_save_IFS
7454
7455 fi
7456 fi
7457 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7458 if test -n "$ac_ct_OTOOL64"; then
7459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7460 $as_echo "$ac_ct_OTOOL64" >&6; }
7461 else
7462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7463 $as_echo "no" >&6; }
7464 fi
7465
7466 if test "x$ac_ct_OTOOL64" = x; then
7467 OTOOL64=":"
7468 else
7469 case $cross_compiling:$ac_tool_warned in
7470 yes:)
7471 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7472 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7473 ac_tool_warned=yes ;;
7474 esac
7475 OTOOL64=$ac_ct_OTOOL64
7476 fi
7477 else
7478 OTOOL64="$ac_cv_prog_OTOOL64"
7479 fi
7480
7481
7482
7483
7484
7485
7486
7487
7488
7489
7490
7491
7492
7493
7494
7495
7496
7497
7498
7499
7500
7501
7502
7503
7504
7505
7506
7507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7508 $as_echo_n "checking for -single_module linker flag... " >&6; }
7509 if ${lt_cv_apple_cc_single_mod+:} false; then :
7510 $as_echo_n "(cached) " >&6
7511 else
7512 lt_cv_apple_cc_single_mod=no
7513 if test -z "${LT_MULTI_MODULE}"; then
7514 # By default we will add the -single_module flag. You can override
7515 # by either setting the environment variable LT_MULTI_MODULE
7516 # non-empty at configure time, or by adding -multi_module to the
7517 # link flags.
7518 rm -rf libconftest.dylib*
7519 echo "int foo(void){return 1;}" > conftest.c
7520 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7521 -dynamiclib -Wl,-single_module conftest.c" >&5
7522 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7523 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7524 _lt_result=$?
7525 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7526 lt_cv_apple_cc_single_mod=yes
7527 else
7528 cat conftest.err >&5
7529 fi
7530 rm -rf libconftest.dylib*
7531 rm -f conftest.*
7532 fi
7533 fi
7534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7535 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7537 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7538 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7539 $as_echo_n "(cached) " >&6
7540 else
7541 lt_cv_ld_exported_symbols_list=no
7542 save_LDFLAGS=$LDFLAGS
7543 echo "_main" > conftest.sym
7544 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7546 /* end confdefs.h. */
7547
7548 int
7549 main ()
7550 {
7551
7552 ;
7553 return 0;
7554 }
7555 _ACEOF
7556 if ac_fn_c_try_link "$LINENO"; then :
7557 lt_cv_ld_exported_symbols_list=yes
7558 else
7559 lt_cv_ld_exported_symbols_list=no
7560 fi
7561 rm -f core conftest.err conftest.$ac_objext \
7562 conftest$ac_exeext conftest.$ac_ext
7563 LDFLAGS="$save_LDFLAGS"
7564
7565 fi
7566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7567 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7569 $as_echo_n "checking for -force_load linker flag... " >&6; }
7570 if ${lt_cv_ld_force_load+:} false; then :
7571 $as_echo_n "(cached) " >&6
7572 else
7573 lt_cv_ld_force_load=no
7574 cat > conftest.c << _LT_EOF
7575 int forced_loaded() { return 2;}
7576 _LT_EOF
7577 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7578 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7579 echo "$AR cru libconftest.a conftest.o" >&5
7580 $AR cru libconftest.a conftest.o 2>&5
7581 echo "$RANLIB libconftest.a" >&5
7582 $RANLIB libconftest.a 2>&5
7583 cat > conftest.c << _LT_EOF
7584 int main() { return 0;}
7585 _LT_EOF
7586 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7587 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7588 _lt_result=$?
7589 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7590 lt_cv_ld_force_load=yes
7591 else
7592 cat conftest.err >&5
7593 fi
7594 rm -f conftest.err libconftest.a conftest conftest.c
7595 rm -rf conftest.dSYM
7596
7597 fi
7598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7599 $as_echo "$lt_cv_ld_force_load" >&6; }
7600 case $host_os in
7601 rhapsody* | darwin1.[012])
7602 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7603 darwin1.*)
7604 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7605 darwin*) # darwin 5.x on
7606 # if running on 10.5 or later, the deployment target defaults
7607 # to the OS version, if on x86, and 10.4, the deployment
7608 # target defaults to 10.4. Don't you love it?
7609 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7610 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7611 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7612 10.[012]*)
7613 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7614 10.*)
7615 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7616 esac
7617 ;;
7618 esac
7619 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7620 _lt_dar_single_mod='$single_module'
7621 fi
7622 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7623 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7624 else
7625 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7626 fi
7627 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7628 _lt_dsymutil='~$DSYMUTIL $lib || :'
7629 else
7630 _lt_dsymutil=
7631 fi
7632 ;;
7633 esac
7634
7635 ac_ext=c
7636 ac_cpp='$CPP $CPPFLAGS'
7637 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7638 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7639 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7641 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7642 # On Suns, sometimes $CPP names a directory.
7643 if test -n "$CPP" && test -d "$CPP"; then
7644 CPP=
7645 fi
7646 if test -z "$CPP"; then
7647 if ${ac_cv_prog_CPP+:} false; then :
7648 $as_echo_n "(cached) " >&6
7649 else
7650 # Double quotes because CPP needs to be expanded
7651 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7652 do
7653 ac_preproc_ok=false
7654 for ac_c_preproc_warn_flag in '' yes
7655 do
7656 # Use a header file that comes with gcc, so configuring glibc
7657 # with a fresh cross-compiler works.
7658 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7659 # <limits.h> exists even on freestanding compilers.
7660 # On the NeXT, cc -E runs the code through the compiler's parser,
7661 # not just through cpp. "Syntax error" is here to catch this case.
7662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7663 /* end confdefs.h. */
7664 #ifdef __STDC__
7665 # include <limits.h>
7666 #else
7667 # include <assert.h>
7668 #endif
7669 Syntax error
7670 _ACEOF
7671 if ac_fn_c_try_cpp "$LINENO"; then :
7672
7673 else
7674 # Broken: fails on valid input.
7675 continue
7676 fi
7677 rm -f conftest.err conftest.i conftest.$ac_ext
7678
7679 # OK, works on sane cases. Now check whether nonexistent headers
7680 # can be detected and how.
7681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7682 /* end confdefs.h. */
7683 #include <ac_nonexistent.h>
7684 _ACEOF
7685 if ac_fn_c_try_cpp "$LINENO"; then :
7686 # Broken: success on invalid input.
7687 continue
7688 else
7689 # Passes both tests.
7690 ac_preproc_ok=:
7691 break
7692 fi
7693 rm -f conftest.err conftest.i conftest.$ac_ext
7694
7695 done
7696 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7697 rm -f conftest.i conftest.err conftest.$ac_ext
7698 if $ac_preproc_ok; then :
7699 break
7700 fi
7701
7702 done
7703 ac_cv_prog_CPP=$CPP
7704
7705 fi
7706 CPP=$ac_cv_prog_CPP
7707 else
7708 ac_cv_prog_CPP=$CPP
7709 fi
7710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7711 $as_echo "$CPP" >&6; }
7712 ac_preproc_ok=false
7713 for ac_c_preproc_warn_flag in '' yes
7714 do
7715 # Use a header file that comes with gcc, so configuring glibc
7716 # with a fresh cross-compiler works.
7717 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7718 # <limits.h> exists even on freestanding compilers.
7719 # On the NeXT, cc -E runs the code through the compiler's parser,
7720 # not just through cpp. "Syntax error" is here to catch this case.
7721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7722 /* end confdefs.h. */
7723 #ifdef __STDC__
7724 # include <limits.h>
7725 #else
7726 # include <assert.h>
7727 #endif
7728 Syntax error
7729 _ACEOF
7730 if ac_fn_c_try_cpp "$LINENO"; then :
7731
7732 else
7733 # Broken: fails on valid input.
7734 continue
7735 fi
7736 rm -f conftest.err conftest.i conftest.$ac_ext
7737
7738 # OK, works on sane cases. Now check whether nonexistent headers
7739 # can be detected and how.
7740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7741 /* end confdefs.h. */
7742 #include <ac_nonexistent.h>
7743 _ACEOF
7744 if ac_fn_c_try_cpp "$LINENO"; then :
7745 # Broken: success on invalid input.
7746 continue
7747 else
7748 # Passes both tests.
7749 ac_preproc_ok=:
7750 break
7751 fi
7752 rm -f conftest.err conftest.i conftest.$ac_ext
7753
7754 done
7755 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7756 rm -f conftest.i conftest.err conftest.$ac_ext
7757 if $ac_preproc_ok; then :
7758
7759 else
7760 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7761 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7762 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7763 See \`config.log' for more details" "$LINENO" 5; }
7764 fi
7765
7766 ac_ext=c
7767 ac_cpp='$CPP $CPPFLAGS'
7768 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7769 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7770 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7771
7772
7773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7774 $as_echo_n "checking for ANSI C header files... " >&6; }
7775 if ${ac_cv_header_stdc+:} false; then :
7776 $as_echo_n "(cached) " >&6
7777 else
7778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7779 /* end confdefs.h. */
7780 #include <stdlib.h>
7781 #include <stdarg.h>
7782 #include <string.h>
7783 #include <float.h>
7784
7785 int
7786 main ()
7787 {
7788
7789 ;
7790 return 0;
7791 }
7792 _ACEOF
7793 if ac_fn_c_try_compile "$LINENO"; then :
7794 ac_cv_header_stdc=yes
7795 else
7796 ac_cv_header_stdc=no
7797 fi
7798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7799
7800 if test $ac_cv_header_stdc = yes; then
7801 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7803 /* end confdefs.h. */
7804 #include <string.h>
7805
7806 _ACEOF
7807 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7808 $EGREP "memchr" >/dev/null 2>&1; then :
7809
7810 else
7811 ac_cv_header_stdc=no
7812 fi
7813 rm -f conftest*
7814
7815 fi
7816
7817 if test $ac_cv_header_stdc = yes; then
7818 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7820 /* end confdefs.h. */
7821 #include <stdlib.h>
7822
7823 _ACEOF
7824 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7825 $EGREP "free" >/dev/null 2>&1; then :
7826
7827 else
7828 ac_cv_header_stdc=no
7829 fi
7830 rm -f conftest*
7831
7832 fi
7833
7834 if test $ac_cv_header_stdc = yes; then
7835 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7836 if test "$cross_compiling" = yes; then :
7837 :
7838 else
7839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7840 /* end confdefs.h. */
7841 #include <ctype.h>
7842 #include <stdlib.h>
7843 #if ((' ' & 0x0FF) == 0x020)
7844 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7845 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7846 #else
7847 # define ISLOWER(c) \
7848 (('a' <= (c) && (c) <= 'i') \
7849 || ('j' <= (c) && (c) <= 'r') \
7850 || ('s' <= (c) && (c) <= 'z'))
7851 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7852 #endif
7853
7854 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7855 int
7856 main ()
7857 {
7858 int i;
7859 for (i = 0; i < 256; i++)
7860 if (XOR (islower (i), ISLOWER (i))
7861 || toupper (i) != TOUPPER (i))
7862 return 2;
7863 return 0;
7864 }
7865 _ACEOF
7866 if ac_fn_c_try_run "$LINENO"; then :
7867
7868 else
7869 ac_cv_header_stdc=no
7870 fi
7871 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7872 conftest.$ac_objext conftest.beam conftest.$ac_ext
7873 fi
7874
7875 fi
7876 fi
7877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7878 $as_echo "$ac_cv_header_stdc" >&6; }
7879 if test $ac_cv_header_stdc = yes; then
7880
7881 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7882
7883 fi
7884
7885 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7886 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7887 inttypes.h stdint.h unistd.h
7888 do :
7889 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7890 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7891 "
7892 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7893 cat >>confdefs.h <<_ACEOF
7894 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7895 _ACEOF
7896
7897 fi
7898
7899 done
7900
7901
7902 for ac_header in dlfcn.h
7903 do :
7904 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7905 "
7906 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7907 cat >>confdefs.h <<_ACEOF
7908 #define HAVE_DLFCN_H 1
7909 _ACEOF
7910
7911 fi
7912
7913 done
7914
7915
7916
7917
7918
7919 # Set options
7920 enable_dlopen=yes
7921 # Check whether --enable-static was given.
7922 if test "${enable_static+set}" = set; then :
7923 enableval=$enable_static; p=${PACKAGE-default}
7924 case $enableval in
7925 yes) enable_static=yes ;;
7926 no) enable_static=no ;;
7927 *)
7928 enable_static=no
7929 # Look at the argument we got. We use all the common list separators.
7930 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7931 for pkg in $enableval; do
7932 IFS="$lt_save_ifs"
7933 if test "X$pkg" = "X$p"; then
7934 enable_static=yes
7935 fi
7936 done
7937 IFS="$lt_save_ifs"
7938 ;;
7939 esac
7940 else
7941 enable_static=no
7942 fi
7943
7944
7945
7946
7947
7948
7949
7950
7951
7952
7953
7954 enable_win32_dll=no
7955
7956
7957 # Check whether --enable-shared was given.
7958 if test "${enable_shared+set}" = set; then :
7959 enableval=$enable_shared; p=${PACKAGE-default}
7960 case $enableval in
7961 yes) enable_shared=yes ;;
7962 no) enable_shared=no ;;
7963 *)
7964 enable_shared=no
7965 # Look at the argument we got. We use all the common list separators.
7966 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7967 for pkg in $enableval; do
7968 IFS="$lt_save_ifs"
7969 if test "X$pkg" = "X$p"; then
7970 enable_shared=yes
7971 fi
7972 done
7973 IFS="$lt_save_ifs"
7974 ;;
7975 esac
7976 else
7977 enable_shared=yes
7978 fi
7979
7980
7981
7982
7983
7984
7985
7986
7987
7988
7989
7990 # Check whether --with-pic was given.
7991 if test "${with_pic+set}" = set; then :
7992 withval=$with_pic; pic_mode="$withval"
7993 else
7994 pic_mode=default
7995 fi
7996
7997
7998 test -z "$pic_mode" && pic_mode=default
7999
8000
8001
8002
8003
8004
8005
8006 # Check whether --enable-fast-install was given.
8007 if test "${enable_fast_install+set}" = set; then :
8008 enableval=$enable_fast_install; p=${PACKAGE-default}
8009 case $enableval in
8010 yes) enable_fast_install=yes ;;
8011 no) enable_fast_install=no ;;
8012 *)
8013 enable_fast_install=no
8014 # Look at the argument we got. We use all the common list separators.
8015 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8016 for pkg in $enableval; do
8017 IFS="$lt_save_ifs"
8018 if test "X$pkg" = "X$p"; then
8019 enable_fast_install=yes
8020 fi
8021 done
8022 IFS="$lt_save_ifs"
8023 ;;
8024 esac
8025 else
8026 enable_fast_install=yes
8027 fi
8028
8029
8030
8031
8032
8033
8034
8035
8036
8037
8038
8039 # This can be used to rebuild libtool when needed
8040 LIBTOOL_DEPS="$ltmain"
8041
8042 # Always use our own libtool.
8043 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8044
8045
8046
8047
8048
8049
8050
8051
8052
8053
8054
8055
8056
8057
8058
8059
8060
8061
8062
8063
8064
8065
8066
8067
8068
8069
8070 test -z "$LN_S" && LN_S="ln -s"
8071
8072
8073
8074
8075
8076
8077
8078
8079
8080
8081
8082
8083
8084
8085 if test -n "${ZSH_VERSION+set}" ; then
8086 setopt NO_GLOB_SUBST
8087 fi
8088
8089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8090 $as_echo_n "checking for objdir... " >&6; }
8091 if ${lt_cv_objdir+:} false; then :
8092 $as_echo_n "(cached) " >&6
8093 else
8094 rm -f .libs 2>/dev/null
8095 mkdir .libs 2>/dev/null
8096 if test -d .libs; then
8097 lt_cv_objdir=.libs
8098 else
8099 # MS-DOS does not allow filenames that begin with a dot.
8100 lt_cv_objdir=_libs
8101 fi
8102 rmdir .libs 2>/dev/null
8103 fi
8104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8105 $as_echo "$lt_cv_objdir" >&6; }
8106 objdir=$lt_cv_objdir
8107
8108
8109
8110
8111
8112 cat >>confdefs.h <<_ACEOF
8113 #define LT_OBJDIR "$lt_cv_objdir/"
8114 _ACEOF
8115
8116
8117
8118
8119 case $host_os in
8120 aix3*)
8121 # AIX sometimes has problems with the GCC collect2 program. For some
8122 # reason, if we set the COLLECT_NAMES environment variable, the problems
8123 # vanish in a puff of smoke.
8124 if test "X${COLLECT_NAMES+set}" != Xset; then
8125 COLLECT_NAMES=
8126 export COLLECT_NAMES
8127 fi
8128 ;;
8129 esac
8130
8131 # Global variables:
8132 ofile=libtool
8133 can_build_shared=yes
8134
8135 # All known linkers require a `.a' archive for static linking (except MSVC,
8136 # which needs '.lib').
8137 libext=a
8138
8139 with_gnu_ld="$lt_cv_prog_gnu_ld"
8140
8141 old_CC="$CC"
8142 old_CFLAGS="$CFLAGS"
8143
8144 # Set sane defaults for various variables
8145 test -z "$CC" && CC=cc
8146 test -z "$LTCC" && LTCC=$CC
8147 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8148 test -z "$LD" && LD=ld
8149 test -z "$ac_objext" && ac_objext=o
8150
8151 for cc_temp in $compiler""; do
8152 case $cc_temp in
8153 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8154 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8155 \-*) ;;
8156 *) break;;
8157 esac
8158 done
8159 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8160
8161
8162 # Only perform the check for file, if the check method requires it
8163 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8164 case $deplibs_check_method in
8165 file_magic*)
8166 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8168 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8169 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8170 $as_echo_n "(cached) " >&6
8171 else
8172 case $MAGIC_CMD in
8173 [\\/*] | ?:[\\/]*)
8174 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8175 ;;
8176 *)
8177 lt_save_MAGIC_CMD="$MAGIC_CMD"
8178 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8179 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8180 for ac_dir in $ac_dummy; do
8181 IFS="$lt_save_ifs"
8182 test -z "$ac_dir" && ac_dir=.
8183 if test -f $ac_dir/${ac_tool_prefix}file; then
8184 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8185 if test -n "$file_magic_test_file"; then
8186 case $deplibs_check_method in
8187 "file_magic "*)
8188 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8189 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8190 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8191 $EGREP "$file_magic_regex" > /dev/null; then
8192 :
8193 else
8194 cat <<_LT_EOF 1>&2
8195
8196 *** Warning: the command libtool uses to detect shared libraries,
8197 *** $file_magic_cmd, produces output that libtool cannot recognize.
8198 *** The result is that libtool may fail to recognize shared libraries
8199 *** as such. This will affect the creation of libtool libraries that
8200 *** depend on shared libraries, but programs linked with such libtool
8201 *** libraries will work regardless of this problem. Nevertheless, you
8202 *** may want to report the problem to your system manager and/or to
8203 *** bug-libtool@gnu.org
8204
8205 _LT_EOF
8206 fi ;;
8207 esac
8208 fi
8209 break
8210 fi
8211 done
8212 IFS="$lt_save_ifs"
8213 MAGIC_CMD="$lt_save_MAGIC_CMD"
8214 ;;
8215 esac
8216 fi
8217
8218 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8219 if test -n "$MAGIC_CMD"; then
8220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8221 $as_echo "$MAGIC_CMD" >&6; }
8222 else
8223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8224 $as_echo "no" >&6; }
8225 fi
8226
8227
8228
8229
8230
8231 if test -z "$lt_cv_path_MAGIC_CMD"; then
8232 if test -n "$ac_tool_prefix"; then
8233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8234 $as_echo_n "checking for file... " >&6; }
8235 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8236 $as_echo_n "(cached) " >&6
8237 else
8238 case $MAGIC_CMD in
8239 [\\/*] | ?:[\\/]*)
8240 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8241 ;;
8242 *)
8243 lt_save_MAGIC_CMD="$MAGIC_CMD"
8244 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8245 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8246 for ac_dir in $ac_dummy; do
8247 IFS="$lt_save_ifs"
8248 test -z "$ac_dir" && ac_dir=.
8249 if test -f $ac_dir/file; then
8250 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8251 if test -n "$file_magic_test_file"; then
8252 case $deplibs_check_method in
8253 "file_magic "*)
8254 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8255 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8256 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8257 $EGREP "$file_magic_regex" > /dev/null; then
8258 :
8259 else
8260 cat <<_LT_EOF 1>&2
8261
8262 *** Warning: the command libtool uses to detect shared libraries,
8263 *** $file_magic_cmd, produces output that libtool cannot recognize.
8264 *** The result is that libtool may fail to recognize shared libraries
8265 *** as such. This will affect the creation of libtool libraries that
8266 *** depend on shared libraries, but programs linked with such libtool
8267 *** libraries will work regardless of this problem. Nevertheless, you
8268 *** may want to report the problem to your system manager and/or to
8269 *** bug-libtool@gnu.org
8270
8271 _LT_EOF
8272 fi ;;
8273 esac
8274 fi
8275 break
8276 fi
8277 done
8278 IFS="$lt_save_ifs"
8279 MAGIC_CMD="$lt_save_MAGIC_CMD"
8280 ;;
8281 esac
8282 fi
8283
8284 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8285 if test -n "$MAGIC_CMD"; then
8286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8287 $as_echo "$MAGIC_CMD" >&6; }
8288 else
8289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8290 $as_echo "no" >&6; }
8291 fi
8292
8293
8294 else
8295 MAGIC_CMD=:
8296 fi
8297 fi
8298
8299 fi
8300 ;;
8301 esac
8302
8303 # Use C for the default configuration in the libtool script
8304
8305 lt_save_CC="$CC"
8306 ac_ext=c
8307 ac_cpp='$CPP $CPPFLAGS'
8308 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8309 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8310 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8311
8312
8313 # Source file extension for C test sources.
8314 ac_ext=c
8315
8316 # Object file extension for compiled C test sources.
8317 objext=o
8318 objext=$objext
8319
8320 # Code to be used in simple compile tests
8321 lt_simple_compile_test_code="int some_variable = 0;"
8322
8323 # Code to be used in simple link tests
8324 lt_simple_link_test_code='int main(){return(0);}'
8325
8326
8327
8328
8329
8330
8331
8332 # If no C compiler was specified, use CC.
8333 LTCC=${LTCC-"$CC"}
8334
8335 # If no C compiler flags were specified, use CFLAGS.
8336 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8337
8338 # Allow CC to be a program name with arguments.
8339 compiler=$CC
8340
8341 # Save the default compiler, since it gets overwritten when the other
8342 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8343 compiler_DEFAULT=$CC
8344
8345 # save warnings/boilerplate of simple test code
8346 ac_outfile=conftest.$ac_objext
8347 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8348 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8349 _lt_compiler_boilerplate=`cat conftest.err`
8350 $RM conftest*
8351
8352 ac_outfile=conftest.$ac_objext
8353 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8354 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8355 _lt_linker_boilerplate=`cat conftest.err`
8356 $RM -r conftest*
8357
8358
8359 if test -n "$compiler"; then
8360
8361 lt_prog_compiler_no_builtin_flag=
8362
8363 if test "$GCC" = yes; then
8364 case $cc_basename in
8365 nvcc*)
8366 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8367 *)
8368 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8369 esac
8370
8371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8372 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8373 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8374 $as_echo_n "(cached) " >&6
8375 else
8376 lt_cv_prog_compiler_rtti_exceptions=no
8377 ac_outfile=conftest.$ac_objext
8378 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8379 lt_compiler_flag="-fno-rtti -fno-exceptions"
8380 # Insert the option either (1) after the last *FLAGS variable, or
8381 # (2) before a word containing "conftest.", or (3) at the end.
8382 # Note that $ac_compile itself does not contain backslashes and begins
8383 # with a dollar sign (not a hyphen), so the echo should work correctly.
8384 # The option is referenced via a variable to avoid confusing sed.
8385 lt_compile=`echo "$ac_compile" | $SED \
8386 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8387 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8388 -e 's:$: $lt_compiler_flag:'`
8389 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8390 (eval "$lt_compile" 2>conftest.err)
8391 ac_status=$?
8392 cat conftest.err >&5
8393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8394 if (exit $ac_status) && test -s "$ac_outfile"; then
8395 # The compiler can only warn and ignore the option if not recognized
8396 # So say no if there are warnings other than the usual output.
8397 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8398 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8399 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8400 lt_cv_prog_compiler_rtti_exceptions=yes
8401 fi
8402 fi
8403 $RM conftest*
8404
8405 fi
8406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8407 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8408
8409 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8410 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8411 else
8412 :
8413 fi
8414
8415 fi
8416
8417
8418
8419
8420
8421
8422 lt_prog_compiler_wl=
8423 lt_prog_compiler_pic=
8424 lt_prog_compiler_static=
8425
8426
8427 if test "$GCC" = yes; then
8428 lt_prog_compiler_wl='-Wl,'
8429 lt_prog_compiler_static='-static'
8430
8431 case $host_os in
8432 aix*)
8433 # All AIX code is PIC.
8434 if test "$host_cpu" = ia64; then
8435 # AIX 5 now supports IA64 processor
8436 lt_prog_compiler_static='-Bstatic'
8437 fi
8438 ;;
8439
8440 amigaos*)
8441 case $host_cpu in
8442 powerpc)
8443 # see comment about AmigaOS4 .so support
8444 lt_prog_compiler_pic='-fPIC'
8445 ;;
8446 m68k)
8447 # FIXME: we need at least 68020 code to build shared libraries, but
8448 # adding the `-m68020' flag to GCC prevents building anything better,
8449 # like `-m68040'.
8450 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8451 ;;
8452 esac
8453 ;;
8454
8455 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8456 # PIC is the default for these OSes.
8457 ;;
8458
8459 mingw* | cygwin* | pw32* | os2* | cegcc*)
8460 # This hack is so that the source file can tell whether it is being
8461 # built for inclusion in a dll (and should export symbols for example).
8462 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8463 # (--disable-auto-import) libraries
8464 lt_prog_compiler_pic='-DDLL_EXPORT'
8465 ;;
8466
8467 darwin* | rhapsody*)
8468 # PIC is the default on this platform
8469 # Common symbols not allowed in MH_DYLIB files
8470 lt_prog_compiler_pic='-fno-common'
8471 ;;
8472
8473 haiku*)
8474 # PIC is the default for Haiku.
8475 # The "-static" flag exists, but is broken.
8476 lt_prog_compiler_static=
8477 ;;
8478
8479 hpux*)
8480 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8481 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8482 # sets the default TLS model and affects inlining.
8483 case $host_cpu in
8484 hppa*64*)
8485 # +Z the default
8486 ;;
8487 *)
8488 lt_prog_compiler_pic='-fPIC'
8489 ;;
8490 esac
8491 ;;
8492
8493 interix[3-9]*)
8494 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8495 # Instead, we relocate shared libraries at runtime.
8496 ;;
8497
8498 msdosdjgpp*)
8499 # Just because we use GCC doesn't mean we suddenly get shared libraries
8500 # on systems that don't support them.
8501 lt_prog_compiler_can_build_shared=no
8502 enable_shared=no
8503 ;;
8504
8505 *nto* | *qnx*)
8506 # QNX uses GNU C++, but need to define -shared option too, otherwise
8507 # it will coredump.
8508 lt_prog_compiler_pic='-fPIC -shared'
8509 ;;
8510
8511 sysv4*MP*)
8512 if test -d /usr/nec; then
8513 lt_prog_compiler_pic=-Kconform_pic
8514 fi
8515 ;;
8516
8517 *)
8518 lt_prog_compiler_pic='-fPIC'
8519 ;;
8520 esac
8521
8522 case $cc_basename in
8523 nvcc*) # Cuda Compiler Driver 2.2
8524 lt_prog_compiler_wl='-Xlinker '
8525 lt_prog_compiler_pic='-Xcompiler -fPIC'
8526 ;;
8527 esac
8528 else
8529 # PORTME Check for flag to pass linker flags through the system compiler.
8530 case $host_os in
8531 aix*)
8532 lt_prog_compiler_wl='-Wl,'
8533 if test "$host_cpu" = ia64; then
8534 # AIX 5 now supports IA64 processor
8535 lt_prog_compiler_static='-Bstatic'
8536 else
8537 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8538 fi
8539 ;;
8540
8541 mingw* | cygwin* | pw32* | os2* | cegcc*)
8542 # This hack is so that the source file can tell whether it is being
8543 # built for inclusion in a dll (and should export symbols for example).
8544 lt_prog_compiler_pic='-DDLL_EXPORT'
8545 ;;
8546
8547 hpux9* | hpux10* | hpux11*)
8548 lt_prog_compiler_wl='-Wl,'
8549 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8550 # not for PA HP-UX.
8551 case $host_cpu in
8552 hppa*64*|ia64*)
8553 # +Z the default
8554 ;;
8555 *)
8556 lt_prog_compiler_pic='+Z'
8557 ;;
8558 esac
8559 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8560 lt_prog_compiler_static='${wl}-a ${wl}archive'
8561 ;;
8562
8563 irix5* | irix6* | nonstopux*)
8564 lt_prog_compiler_wl='-Wl,'
8565 # PIC (with -KPIC) is the default.
8566 lt_prog_compiler_static='-non_shared'
8567 ;;
8568
8569 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8570 case $cc_basename in
8571 # old Intel for x86_64 which still supported -KPIC.
8572 ecc*)
8573 lt_prog_compiler_wl='-Wl,'
8574 lt_prog_compiler_pic='-KPIC'
8575 lt_prog_compiler_static='-static'
8576 ;;
8577 # icc used to be incompatible with GCC.
8578 # ICC 10 doesn't accept -KPIC any more.
8579 icc* | ifort*)
8580 lt_prog_compiler_wl='-Wl,'
8581 lt_prog_compiler_pic='-fPIC'
8582 lt_prog_compiler_static='-static'
8583 ;;
8584 # Lahey Fortran 8.1.
8585 lf95*)
8586 lt_prog_compiler_wl='-Wl,'
8587 lt_prog_compiler_pic='--shared'
8588 lt_prog_compiler_static='--static'
8589 ;;
8590 nagfor*)
8591 # NAG Fortran compiler
8592 lt_prog_compiler_wl='-Wl,-Wl,,'
8593 lt_prog_compiler_pic='-PIC'
8594 lt_prog_compiler_static='-Bstatic'
8595 ;;
8596 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8597 # Portland Group compilers (*not* the Pentium gcc compiler,
8598 # which looks to be a dead project)
8599 lt_prog_compiler_wl='-Wl,'
8600 lt_prog_compiler_pic='-fpic'
8601 lt_prog_compiler_static='-Bstatic'
8602 ;;
8603 ccc*)
8604 lt_prog_compiler_wl='-Wl,'
8605 # All Alpha code is PIC.
8606 lt_prog_compiler_static='-non_shared'
8607 ;;
8608 xl* | bgxl* | bgf* | mpixl*)
8609 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8610 lt_prog_compiler_wl='-Wl,'
8611 lt_prog_compiler_pic='-qpic'
8612 lt_prog_compiler_static='-qstaticlink'
8613 ;;
8614 *)
8615 case `$CC -V 2>&1 | sed 5q` in
8616 *Sun\ F* | *Sun*Fortran*)
8617 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8618 lt_prog_compiler_pic='-KPIC'
8619 lt_prog_compiler_static='-Bstatic'
8620 lt_prog_compiler_wl=''
8621 ;;
8622 *Sun\ C*)
8623 # Sun C 5.9
8624 lt_prog_compiler_pic='-KPIC'
8625 lt_prog_compiler_static='-Bstatic'
8626 lt_prog_compiler_wl='-Wl,'
8627 ;;
8628 esac
8629 ;;
8630 esac
8631 ;;
8632
8633 newsos6)
8634 lt_prog_compiler_pic='-KPIC'
8635 lt_prog_compiler_static='-Bstatic'
8636 ;;
8637
8638 *nto* | *qnx*)
8639 # QNX uses GNU C++, but need to define -shared option too, otherwise
8640 # it will coredump.
8641 lt_prog_compiler_pic='-fPIC -shared'
8642 ;;
8643
8644 osf3* | osf4* | osf5*)
8645 lt_prog_compiler_wl='-Wl,'
8646 # All OSF/1 code is PIC.
8647 lt_prog_compiler_static='-non_shared'
8648 ;;
8649
8650 rdos*)
8651 lt_prog_compiler_static='-non_shared'
8652 ;;
8653
8654 solaris*)
8655 lt_prog_compiler_pic='-KPIC'
8656 lt_prog_compiler_static='-Bstatic'
8657 case $cc_basename in
8658 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8659 lt_prog_compiler_wl='-Qoption ld ';;
8660 *)
8661 lt_prog_compiler_wl='-Wl,';;
8662 esac
8663 ;;
8664
8665 sunos4*)
8666 lt_prog_compiler_wl='-Qoption ld '
8667 lt_prog_compiler_pic='-PIC'
8668 lt_prog_compiler_static='-Bstatic'
8669 ;;
8670
8671 sysv4 | sysv4.2uw2* | sysv4.3*)
8672 lt_prog_compiler_wl='-Wl,'
8673 lt_prog_compiler_pic='-KPIC'
8674 lt_prog_compiler_static='-Bstatic'
8675 ;;
8676
8677 sysv4*MP*)
8678 if test -d /usr/nec ;then
8679 lt_prog_compiler_pic='-Kconform_pic'
8680 lt_prog_compiler_static='-Bstatic'
8681 fi
8682 ;;
8683
8684 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8685 lt_prog_compiler_wl='-Wl,'
8686 lt_prog_compiler_pic='-KPIC'
8687 lt_prog_compiler_static='-Bstatic'
8688 ;;
8689
8690 unicos*)
8691 lt_prog_compiler_wl='-Wl,'
8692 lt_prog_compiler_can_build_shared=no
8693 ;;
8694
8695 uts4*)
8696 lt_prog_compiler_pic='-pic'
8697 lt_prog_compiler_static='-Bstatic'
8698 ;;
8699
8700 *)
8701 lt_prog_compiler_can_build_shared=no
8702 ;;
8703 esac
8704 fi
8705
8706 case $host_os in
8707 # For platforms which do not support PIC, -DPIC is meaningless:
8708 *djgpp*)
8709 lt_prog_compiler_pic=
8710 ;;
8711 *)
8712 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8713 ;;
8714 esac
8715
8716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8717 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8718 if ${lt_cv_prog_compiler_pic+:} false; then :
8719 $as_echo_n "(cached) " >&6
8720 else
8721 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8722 fi
8723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8724 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8725 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8726
8727 #
8728 # Check to make sure the PIC flag actually works.
8729 #
8730 if test -n "$lt_prog_compiler_pic"; then
8731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8732 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8733 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8734 $as_echo_n "(cached) " >&6
8735 else
8736 lt_cv_prog_compiler_pic_works=no
8737 ac_outfile=conftest.$ac_objext
8738 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8739 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8740 # Insert the option either (1) after the last *FLAGS variable, or
8741 # (2) before a word containing "conftest.", or (3) at the end.
8742 # Note that $ac_compile itself does not contain backslashes and begins
8743 # with a dollar sign (not a hyphen), so the echo should work correctly.
8744 # The option is referenced via a variable to avoid confusing sed.
8745 lt_compile=`echo "$ac_compile" | $SED \
8746 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8747 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8748 -e 's:$: $lt_compiler_flag:'`
8749 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8750 (eval "$lt_compile" 2>conftest.err)
8751 ac_status=$?
8752 cat conftest.err >&5
8753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8754 if (exit $ac_status) && test -s "$ac_outfile"; then
8755 # The compiler can only warn and ignore the option if not recognized
8756 # So say no if there are warnings other than the usual output.
8757 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8758 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8759 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8760 lt_cv_prog_compiler_pic_works=yes
8761 fi
8762 fi
8763 $RM conftest*
8764
8765 fi
8766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8767 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8768
8769 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8770 case $lt_prog_compiler_pic in
8771 "" | " "*) ;;
8772 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8773 esac
8774 else
8775 lt_prog_compiler_pic=
8776 lt_prog_compiler_can_build_shared=no
8777 fi
8778
8779 fi
8780
8781
8782
8783
8784
8785
8786
8787
8788
8789
8790
8791 #
8792 # Check to make sure the static flag actually works.
8793 #
8794 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8796 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8797 if ${lt_cv_prog_compiler_static_works+:} false; then :
8798 $as_echo_n "(cached) " >&6
8799 else
8800 lt_cv_prog_compiler_static_works=no
8801 save_LDFLAGS="$LDFLAGS"
8802 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8803 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8804 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8805 # The linker can only warn and ignore the option if not recognized
8806 # So say no if there are warnings
8807 if test -s conftest.err; then
8808 # Append any errors to the config.log.
8809 cat conftest.err 1>&5
8810 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8811 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8812 if diff conftest.exp conftest.er2 >/dev/null; then
8813 lt_cv_prog_compiler_static_works=yes
8814 fi
8815 else
8816 lt_cv_prog_compiler_static_works=yes
8817 fi
8818 fi
8819 $RM -r conftest*
8820 LDFLAGS="$save_LDFLAGS"
8821
8822 fi
8823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8824 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8825
8826 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8827 :
8828 else
8829 lt_prog_compiler_static=
8830 fi
8831
8832
8833
8834
8835
8836
8837
8838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8839 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8840 if ${lt_cv_prog_compiler_c_o+:} false; then :
8841 $as_echo_n "(cached) " >&6
8842 else
8843 lt_cv_prog_compiler_c_o=no
8844 $RM -r conftest 2>/dev/null
8845 mkdir conftest
8846 cd conftest
8847 mkdir out
8848 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8849
8850 lt_compiler_flag="-o out/conftest2.$ac_objext"
8851 # Insert the option either (1) after the last *FLAGS variable, or
8852 # (2) before a word containing "conftest.", or (3) at the end.
8853 # Note that $ac_compile itself does not contain backslashes and begins
8854 # with a dollar sign (not a hyphen), so the echo should work correctly.
8855 lt_compile=`echo "$ac_compile" | $SED \
8856 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8857 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8858 -e 's:$: $lt_compiler_flag:'`
8859 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8860 (eval "$lt_compile" 2>out/conftest.err)
8861 ac_status=$?
8862 cat out/conftest.err >&5
8863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8864 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8865 then
8866 # The compiler can only warn and ignore the option if not recognized
8867 # So say no if there are warnings
8868 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8869 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8870 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8871 lt_cv_prog_compiler_c_o=yes
8872 fi
8873 fi
8874 chmod u+w . 2>&5
8875 $RM conftest*
8876 # SGI C++ compiler will create directory out/ii_files/ for
8877 # template instantiation
8878 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8879 $RM out/* && rmdir out
8880 cd ..
8881 $RM -r conftest
8882 $RM conftest*
8883
8884 fi
8885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8886 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8887
8888
8889
8890
8891
8892
8893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8894 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8895 if ${lt_cv_prog_compiler_c_o+:} false; then :
8896 $as_echo_n "(cached) " >&6
8897 else
8898 lt_cv_prog_compiler_c_o=no
8899 $RM -r conftest 2>/dev/null
8900 mkdir conftest
8901 cd conftest
8902 mkdir out
8903 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8904
8905 lt_compiler_flag="-o out/conftest2.$ac_objext"
8906 # Insert the option either (1) after the last *FLAGS variable, or
8907 # (2) before a word containing "conftest.", or (3) at the end.
8908 # Note that $ac_compile itself does not contain backslashes and begins
8909 # with a dollar sign (not a hyphen), so the echo should work correctly.
8910 lt_compile=`echo "$ac_compile" | $SED \
8911 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8912 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8913 -e 's:$: $lt_compiler_flag:'`
8914 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8915 (eval "$lt_compile" 2>out/conftest.err)
8916 ac_status=$?
8917 cat out/conftest.err >&5
8918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8919 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8920 then
8921 # The compiler can only warn and ignore the option if not recognized
8922 # So say no if there are warnings
8923 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8924 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8925 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8926 lt_cv_prog_compiler_c_o=yes
8927 fi
8928 fi
8929 chmod u+w . 2>&5
8930 $RM conftest*
8931 # SGI C++ compiler will create directory out/ii_files/ for
8932 # template instantiation
8933 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8934 $RM out/* && rmdir out
8935 cd ..
8936 $RM -r conftest
8937 $RM conftest*
8938
8939 fi
8940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8941 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8942
8943
8944
8945
8946 hard_links="nottested"
8947 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8948 # do not overwrite the value of need_locks provided by the user
8949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8950 $as_echo_n "checking if we can lock with hard links... " >&6; }
8951 hard_links=yes
8952 $RM conftest*
8953 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8954 touch conftest.a
8955 ln conftest.a conftest.b 2>&5 || hard_links=no
8956 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8958 $as_echo "$hard_links" >&6; }
8959 if test "$hard_links" = no; then
8960 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8961 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8962 need_locks=warn
8963 fi
8964 else
8965 need_locks=no
8966 fi
8967
8968
8969
8970
8971
8972
8973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8974 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8975
8976 runpath_var=
8977 allow_undefined_flag=
8978 always_export_symbols=no
8979 archive_cmds=
8980 archive_expsym_cmds=
8981 compiler_needs_object=no
8982 enable_shared_with_static_runtimes=no
8983 export_dynamic_flag_spec=
8984 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8985 hardcode_automatic=no
8986 hardcode_direct=no
8987 hardcode_direct_absolute=no
8988 hardcode_libdir_flag_spec=
8989 hardcode_libdir_flag_spec_ld=
8990 hardcode_libdir_separator=
8991 hardcode_minus_L=no
8992 hardcode_shlibpath_var=unsupported
8993 inherit_rpath=no
8994 link_all_deplibs=unknown
8995 module_cmds=
8996 module_expsym_cmds=
8997 old_archive_from_new_cmds=
8998 old_archive_from_expsyms_cmds=
8999 thread_safe_flag_spec=
9000 whole_archive_flag_spec=
9001 # include_expsyms should be a list of space-separated symbols to be *always*
9002 # included in the symbol list
9003 include_expsyms=
9004 # exclude_expsyms can be an extended regexp of symbols to exclude
9005 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9006 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9007 # as well as any symbol that contains `d'.
9008 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9009 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9010 # platforms (ab)use it in PIC code, but their linkers get confused if
9011 # the symbol is explicitly referenced. Since portable code cannot
9012 # rely on this symbol name, it's probably fine to never include it in
9013 # preloaded symbol tables.
9014 # Exclude shared library initialization/finalization symbols.
9015 extract_expsyms_cmds=
9016
9017 case $host_os in
9018 cygwin* | mingw* | pw32* | cegcc*)
9019 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9020 # When not using gcc, we currently assume that we are using
9021 # Microsoft Visual C++.
9022 if test "$GCC" != yes; then
9023 with_gnu_ld=no
9024 fi
9025 ;;
9026 interix*)
9027 # we just hope/assume this is gcc and not c89 (= MSVC++)
9028 with_gnu_ld=yes
9029 ;;
9030 openbsd*)
9031 with_gnu_ld=no
9032 ;;
9033 esac
9034
9035 ld_shlibs=yes
9036
9037 # On some targets, GNU ld is compatible enough with the native linker
9038 # that we're better off using the native interface for both.
9039 lt_use_gnu_ld_interface=no
9040 if test "$with_gnu_ld" = yes; then
9041 case $host_os in
9042 aix*)
9043 # The AIX port of GNU ld has always aspired to compatibility
9044 # with the native linker. However, as the warning in the GNU ld
9045 # block says, versions before 2.19.5* couldn't really create working
9046 # shared libraries, regardless of the interface used.
9047 case `$LD -v 2>&1` in
9048 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9049 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9050 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9051 *)
9052 lt_use_gnu_ld_interface=yes
9053 ;;
9054 esac
9055 ;;
9056 *)
9057 lt_use_gnu_ld_interface=yes
9058 ;;
9059 esac
9060 fi
9061
9062 if test "$lt_use_gnu_ld_interface" = yes; then
9063 # If archive_cmds runs LD, not CC, wlarc should be empty
9064 wlarc='${wl}'
9065
9066 # Set some defaults for GNU ld with shared library support. These
9067 # are reset later if shared libraries are not supported. Putting them
9068 # here allows them to be overridden if necessary.
9069 runpath_var=LD_RUN_PATH
9070 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9071 export_dynamic_flag_spec='${wl}--export-dynamic'
9072 # ancient GNU ld didn't support --whole-archive et. al.
9073 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9074 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9075 else
9076 whole_archive_flag_spec=
9077 fi
9078 supports_anon_versioning=no
9079 case `$LD -v 2>&1` in
9080 *GNU\ gold*) supports_anon_versioning=yes ;;
9081 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9082 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9083 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9084 *\ 2.11.*) ;; # other 2.11 versions
9085 *) supports_anon_versioning=yes ;;
9086 esac
9087
9088 # See if GNU ld supports shared libraries.
9089 case $host_os in
9090 aix[3-9]*)
9091 # On AIX/PPC, the GNU linker is very broken
9092 if test "$host_cpu" != ia64; then
9093 ld_shlibs=no
9094 cat <<_LT_EOF 1>&2
9095
9096 *** Warning: the GNU linker, at least up to release 2.19, is reported
9097 *** to be unable to reliably create shared libraries on AIX.
9098 *** Therefore, libtool is disabling shared libraries support. If you
9099 *** really care for shared libraries, you may want to install binutils
9100 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9101 *** You will then need to restart the configuration process.
9102
9103 _LT_EOF
9104 fi
9105 ;;
9106
9107 amigaos*)
9108 case $host_cpu in
9109 powerpc)
9110 # see comment about AmigaOS4 .so support
9111 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9112 archive_expsym_cmds=''
9113 ;;
9114 m68k)
9115 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)'
9116 hardcode_libdir_flag_spec='-L$libdir'
9117 hardcode_minus_L=yes
9118 ;;
9119 esac
9120 ;;
9121
9122 beos*)
9123 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9124 allow_undefined_flag=unsupported
9125 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9126 # support --undefined. This deserves some investigation. FIXME
9127 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9128 else
9129 ld_shlibs=no
9130 fi
9131 ;;
9132
9133 cygwin* | mingw* | pw32* | cegcc*)
9134 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9135 # as there is no search path for DLLs.
9136 hardcode_libdir_flag_spec='-L$libdir'
9137 export_dynamic_flag_spec='${wl}--export-all-symbols'
9138 allow_undefined_flag=unsupported
9139 always_export_symbols=no
9140 enable_shared_with_static_runtimes=yes
9141 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
9142 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9143
9144 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9145 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9146 # If the export-symbols file already is a .def file (1st line
9147 # is EXPORTS), use it as is; otherwise, prepend...
9148 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9149 cp $export_symbols $output_objdir/$soname.def;
9150 else
9151 echo EXPORTS > $output_objdir/$soname.def;
9152 cat $export_symbols >> $output_objdir/$soname.def;
9153 fi~
9154 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9155 else
9156 ld_shlibs=no
9157 fi
9158 ;;
9159
9160 haiku*)
9161 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9162 link_all_deplibs=yes
9163 ;;
9164
9165 interix[3-9]*)
9166 hardcode_direct=no
9167 hardcode_shlibpath_var=no
9168 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9169 export_dynamic_flag_spec='${wl}-E'
9170 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9171 # Instead, shared libraries are loaded at an image base (0x10000000 by
9172 # default) and relocated if they conflict, which is a slow very memory
9173 # consuming and fragmenting process. To avoid this, we pick a random,
9174 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9175 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9176 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9177 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'
9178 ;;
9179
9180 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9181 tmp_diet=no
9182 if test "$host_os" = linux-dietlibc; then
9183 case $cc_basename in
9184 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9185 esac
9186 fi
9187 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9188 && test "$tmp_diet" = no
9189 then
9190 tmp_addflag=' $pic_flag'
9191 tmp_sharedflag='-shared'
9192 case $cc_basename,$host_cpu in
9193 pgcc*) # Portland Group C compiler
9194 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'
9195 tmp_addflag=' $pic_flag'
9196 ;;
9197 pgf77* | pgf90* | pgf95* | pgfortran*)
9198 # Portland Group f77 and f90 compilers
9199 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'
9200 tmp_addflag=' $pic_flag -Mnomain' ;;
9201 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9202 tmp_addflag=' -i_dynamic' ;;
9203 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9204 tmp_addflag=' -i_dynamic -nofor_main' ;;
9205 ifc* | ifort*) # Intel Fortran compiler
9206 tmp_addflag=' -nofor_main' ;;
9207 lf95*) # Lahey Fortran 8.1
9208 whole_archive_flag_spec=
9209 tmp_sharedflag='--shared' ;;
9210 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9211 tmp_sharedflag='-qmkshrobj'
9212 tmp_addflag= ;;
9213 nvcc*) # Cuda Compiler Driver 2.2
9214 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'
9215 compiler_needs_object=yes
9216 ;;
9217 esac
9218 case `$CC -V 2>&1 | sed 5q` in
9219 *Sun\ C*) # Sun C 5.9
9220 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'
9221 compiler_needs_object=yes
9222 tmp_sharedflag='-G' ;;
9223 *Sun\ F*) # Sun Fortran 8.3
9224 tmp_sharedflag='-G' ;;
9225 esac
9226 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9227
9228 if test "x$supports_anon_versioning" = xyes; then
9229 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9230 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9231 echo "local: *; };" >> $output_objdir/$libname.ver~
9232 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9233 fi
9234
9235 case $cc_basename in
9236 xlf* | bgf* | bgxlf* | mpixlf*)
9237 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9238 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9239 hardcode_libdir_flag_spec=
9240 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9241 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9242 if test "x$supports_anon_versioning" = xyes; then
9243 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9244 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9245 echo "local: *; };" >> $output_objdir/$libname.ver~
9246 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9247 fi
9248 ;;
9249 esac
9250 else
9251 ld_shlibs=no
9252 fi
9253 ;;
9254
9255 netbsd*)
9256 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9257 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9258 wlarc=
9259 else
9260 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9261 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9262 fi
9263 ;;
9264
9265 solaris*)
9266 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9267 ld_shlibs=no
9268 cat <<_LT_EOF 1>&2
9269
9270 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9271 *** create shared libraries on Solaris systems. Therefore, libtool
9272 *** is disabling shared libraries support. We urge you to upgrade GNU
9273 *** binutils to release 2.9.1 or newer. Another option is to modify
9274 *** your PATH or compiler configuration so that the native linker is
9275 *** used, and then restart.
9276
9277 _LT_EOF
9278 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9279 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9280 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9281 else
9282 ld_shlibs=no
9283 fi
9284 ;;
9285
9286 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9287 case `$LD -v 2>&1` in
9288 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9289 ld_shlibs=no
9290 cat <<_LT_EOF 1>&2
9291
9292 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9293 *** reliably create shared libraries on SCO systems. Therefore, libtool
9294 *** is disabling shared libraries support. We urge you to upgrade GNU
9295 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9296 *** your PATH or compiler configuration so that the native linker is
9297 *** used, and then restart.
9298
9299 _LT_EOF
9300 ;;
9301 *)
9302 # For security reasons, it is highly recommended that you always
9303 # use absolute paths for naming shared libraries, and exclude the
9304 # DT_RUNPATH tag from executables and libraries. But doing so
9305 # requires that you compile everything twice, which is a pain.
9306 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9307 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9308 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9309 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9310 else
9311 ld_shlibs=no
9312 fi
9313 ;;
9314 esac
9315 ;;
9316
9317 sunos4*)
9318 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9319 wlarc=
9320 hardcode_direct=yes
9321 hardcode_shlibpath_var=no
9322 ;;
9323
9324 *)
9325 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9326 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9327 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9328 else
9329 ld_shlibs=no
9330 fi
9331 ;;
9332 esac
9333
9334 if test "$ld_shlibs" = no; then
9335 runpath_var=
9336 hardcode_libdir_flag_spec=
9337 export_dynamic_flag_spec=
9338 whole_archive_flag_spec=
9339 fi
9340 else
9341 # PORTME fill in a description of your system's linker (not GNU ld)
9342 case $host_os in
9343 aix3*)
9344 allow_undefined_flag=unsupported
9345 always_export_symbols=yes
9346 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'
9347 # Note: this linker hardcodes the directories in LIBPATH if there
9348 # are no directories specified by -L.
9349 hardcode_minus_L=yes
9350 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9351 # Neither direct hardcoding nor static linking is supported with a
9352 # broken collect2.
9353 hardcode_direct=unsupported
9354 fi
9355 ;;
9356
9357 aix[4-9]*)
9358 if test "$host_cpu" = ia64; then
9359 # On IA64, the linker does run time linking by default, so we don't
9360 # have to do anything special.
9361 aix_use_runtimelinking=no
9362 exp_sym_flag='-Bexport'
9363 no_entry_flag=""
9364 else
9365 # If we're using GNU nm, then we don't want the "-C" option.
9366 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9367 # Also, AIX nm treats weak defined symbols like other global
9368 # defined symbols, whereas GNU nm marks them as "W".
9369 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9370 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'
9371 else
9372 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'
9373 fi
9374 aix_use_runtimelinking=no
9375
9376 # Test if we are trying to use run time linking or normal
9377 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9378 # need to do runtime linking.
9379 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9380 for ld_flag in $LDFLAGS; do
9381 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9382 aix_use_runtimelinking=yes
9383 break
9384 fi
9385 done
9386 ;;
9387 esac
9388
9389 exp_sym_flag='-bexport'
9390 no_entry_flag='-bnoentry'
9391 fi
9392
9393 # When large executables or shared objects are built, AIX ld can
9394 # have problems creating the table of contents. If linking a library
9395 # or program results in "error TOC overflow" add -mminimal-toc to
9396 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9397 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9398
9399 archive_cmds=''
9400 hardcode_direct=yes
9401 hardcode_direct_absolute=yes
9402 hardcode_libdir_separator=':'
9403 link_all_deplibs=yes
9404 file_list_spec='${wl}-f,'
9405
9406 if test "$GCC" = yes; then
9407 case $host_os in aix4.[012]|aix4.[012].*)
9408 # We only want to do this on AIX 4.2 and lower, the check
9409 # below for broken collect2 doesn't work under 4.3+
9410 collect2name=`${CC} -print-prog-name=collect2`
9411 if test -f "$collect2name" &&
9412 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9413 then
9414 # We have reworked collect2
9415 :
9416 else
9417 # We have old collect2
9418 hardcode_direct=unsupported
9419 # It fails to find uninstalled libraries when the uninstalled
9420 # path is not listed in the libpath. Setting hardcode_minus_L
9421 # to unsupported forces relinking
9422 hardcode_minus_L=yes
9423 hardcode_libdir_flag_spec='-L$libdir'
9424 hardcode_libdir_separator=
9425 fi
9426 ;;
9427 esac
9428 shared_flag='-shared'
9429 if test "$aix_use_runtimelinking" = yes; then
9430 shared_flag="$shared_flag "'${wl}-G'
9431 fi
9432 else
9433 # not using gcc
9434 if test "$host_cpu" = ia64; then
9435 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9436 # chokes on -Wl,-G. The following line is correct:
9437 shared_flag='-G'
9438 else
9439 if test "$aix_use_runtimelinking" = yes; then
9440 shared_flag='${wl}-G'
9441 else
9442 shared_flag='${wl}-bM:SRE'
9443 fi
9444 fi
9445 fi
9446
9447 export_dynamic_flag_spec='${wl}-bexpall'
9448 # It seems that -bexpall does not export symbols beginning with
9449 # underscore (_), so it is better to generate a list of symbols to export.
9450 always_export_symbols=yes
9451 if test "$aix_use_runtimelinking" = yes; then
9452 # Warning - without using the other runtime loading flags (-brtl),
9453 # -berok will link without error, but may produce a broken library.
9454 allow_undefined_flag='-berok'
9455 # Determine the default libpath from the value encoded in an
9456 # empty executable.
9457 if test "${lt_cv_aix_libpath+set}" = set; then
9458 aix_libpath=$lt_cv_aix_libpath
9459 else
9460 if ${lt_cv_aix_libpath_+:} false; then :
9461 $as_echo_n "(cached) " >&6
9462 else
9463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9464 /* end confdefs.h. */
9465
9466 int
9467 main ()
9468 {
9469
9470 ;
9471 return 0;
9472 }
9473 _ACEOF
9474 if ac_fn_c_try_link "$LINENO"; then :
9475
9476 lt_aix_libpath_sed='
9477 /Import File Strings/,/^$/ {
9478 /^0/ {
9479 s/^0 *\([^ ]*\) *$/\1/
9480 p
9481 }
9482 }'
9483 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9484 # Check for a 64-bit object if we didn't find anything.
9485 if test -z "$lt_cv_aix_libpath_"; then
9486 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9487 fi
9488 fi
9489 rm -f core conftest.err conftest.$ac_objext \
9490 conftest$ac_exeext conftest.$ac_ext
9491 if test -z "$lt_cv_aix_libpath_"; then
9492 lt_cv_aix_libpath_="/usr/lib:/lib"
9493 fi
9494
9495 fi
9496
9497 aix_libpath=$lt_cv_aix_libpath_
9498 fi
9499
9500 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9501 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"
9502 else
9503 if test "$host_cpu" = ia64; then
9504 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9505 allow_undefined_flag="-z nodefs"
9506 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"
9507 else
9508 # Determine the default libpath from the value encoded in an
9509 # empty executable.
9510 if test "${lt_cv_aix_libpath+set}" = set; then
9511 aix_libpath=$lt_cv_aix_libpath
9512 else
9513 if ${lt_cv_aix_libpath_+:} false; then :
9514 $as_echo_n "(cached) " >&6
9515 else
9516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9517 /* end confdefs.h. */
9518
9519 int
9520 main ()
9521 {
9522
9523 ;
9524 return 0;
9525 }
9526 _ACEOF
9527 if ac_fn_c_try_link "$LINENO"; then :
9528
9529 lt_aix_libpath_sed='
9530 /Import File Strings/,/^$/ {
9531 /^0/ {
9532 s/^0 *\([^ ]*\) *$/\1/
9533 p
9534 }
9535 }'
9536 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9537 # Check for a 64-bit object if we didn't find anything.
9538 if test -z "$lt_cv_aix_libpath_"; then
9539 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9540 fi
9541 fi
9542 rm -f core conftest.err conftest.$ac_objext \
9543 conftest$ac_exeext conftest.$ac_ext
9544 if test -z "$lt_cv_aix_libpath_"; then
9545 lt_cv_aix_libpath_="/usr/lib:/lib"
9546 fi
9547
9548 fi
9549
9550 aix_libpath=$lt_cv_aix_libpath_
9551 fi
9552
9553 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9554 # Warning - without using the other run time loading flags,
9555 # -berok will link without error, but may produce a broken library.
9556 no_undefined_flag=' ${wl}-bernotok'
9557 allow_undefined_flag=' ${wl}-berok'
9558 if test "$with_gnu_ld" = yes; then
9559 # We only use this code for GNU lds that support --whole-archive.
9560 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9561 else
9562 # Exported symbols can be pulled into shared objects from archives
9563 whole_archive_flag_spec='$convenience'
9564 fi
9565 archive_cmds_need_lc=yes
9566 # This is similar to how AIX traditionally builds its shared libraries.
9567 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'
9568 fi
9569 fi
9570 ;;
9571
9572 amigaos*)
9573 case $host_cpu in
9574 powerpc)
9575 # see comment about AmigaOS4 .so support
9576 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9577 archive_expsym_cmds=''
9578 ;;
9579 m68k)
9580 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)'
9581 hardcode_libdir_flag_spec='-L$libdir'
9582 hardcode_minus_L=yes
9583 ;;
9584 esac
9585 ;;
9586
9587 bsdi[45]*)
9588 export_dynamic_flag_spec=-rdynamic
9589 ;;
9590
9591 cygwin* | mingw* | pw32* | cegcc*)
9592 # When not using gcc, we currently assume that we are using
9593 # Microsoft Visual C++.
9594 # hardcode_libdir_flag_spec is actually meaningless, as there is
9595 # no search path for DLLs.
9596 case $cc_basename in
9597 cl*)
9598 # Native MSVC
9599 hardcode_libdir_flag_spec=' '
9600 allow_undefined_flag=unsupported
9601 always_export_symbols=yes
9602 file_list_spec='@'
9603 # Tell ltmain to make .lib files, not .a files.
9604 libext=lib
9605 # Tell ltmain to make .dll files, not .so files.
9606 shrext_cmds=".dll"
9607 # FIXME: Setting linknames here is a bad hack.
9608 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9609 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9610 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9611 else
9612 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9613 fi~
9614 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9615 linknames='
9616 # The linker will not automatically build a static lib if we build a DLL.
9617 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9618 enable_shared_with_static_runtimes=yes
9619 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9620 # Don't use ranlib
9621 old_postinstall_cmds='chmod 644 $oldlib'
9622 postlink_cmds='lt_outputfile="@OUTPUT@"~
9623 lt_tool_outputfile="@TOOL_OUTPUT@"~
9624 case $lt_outputfile in
9625 *.exe|*.EXE) ;;
9626 *)
9627 lt_outputfile="$lt_outputfile.exe"
9628 lt_tool_outputfile="$lt_tool_outputfile.exe"
9629 ;;
9630 esac~
9631 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9632 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9633 $RM "$lt_outputfile.manifest";
9634 fi'
9635 ;;
9636 *)
9637 # Assume MSVC wrapper
9638 hardcode_libdir_flag_spec=' '
9639 allow_undefined_flag=unsupported
9640 # Tell ltmain to make .lib files, not .a files.
9641 libext=lib
9642 # Tell ltmain to make .dll files, not .so files.
9643 shrext_cmds=".dll"
9644 # FIXME: Setting linknames here is a bad hack.
9645 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9646 # The linker will automatically build a .lib file if we build a DLL.
9647 old_archive_from_new_cmds='true'
9648 # FIXME: Should let the user specify the lib program.
9649 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9650 enable_shared_with_static_runtimes=yes
9651 ;;
9652 esac
9653 ;;
9654
9655 darwin* | rhapsody*)
9656
9657
9658 archive_cmds_need_lc=no
9659 hardcode_direct=no
9660 hardcode_automatic=yes
9661 hardcode_shlibpath_var=unsupported
9662 if test "$lt_cv_ld_force_load" = "yes"; then
9663 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\"`'
9664 else
9665 whole_archive_flag_spec=''
9666 fi
9667 link_all_deplibs=yes
9668 allow_undefined_flag="$_lt_dar_allow_undefined"
9669 case $cc_basename in
9670 ifort*) _lt_dar_can_shared=yes ;;
9671 *) _lt_dar_can_shared=$GCC ;;
9672 esac
9673 if test "$_lt_dar_can_shared" = "yes"; then
9674 output_verbose_link_cmd=func_echo_all
9675 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9676 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9677 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}"
9678 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}"
9679
9680 else
9681 ld_shlibs=no
9682 fi
9683
9684 ;;
9685
9686 dgux*)
9687 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9688 hardcode_libdir_flag_spec='-L$libdir'
9689 hardcode_shlibpath_var=no
9690 ;;
9691
9692 freebsd1*)
9693 ld_shlibs=no
9694 ;;
9695
9696 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9697 # support. Future versions do this automatically, but an explicit c++rt0.o
9698 # does not break anything, and helps significantly (at the cost of a little
9699 # extra space).
9700 freebsd2.2*)
9701 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9702 hardcode_libdir_flag_spec='-R$libdir'
9703 hardcode_direct=yes
9704 hardcode_shlibpath_var=no
9705 ;;
9706
9707 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9708 freebsd2*)
9709 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9710 hardcode_direct=yes
9711 hardcode_minus_L=yes
9712 hardcode_shlibpath_var=no
9713 ;;
9714
9715 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9716 freebsd* | dragonfly*)
9717 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9718 hardcode_libdir_flag_spec='-R$libdir'
9719 hardcode_direct=yes
9720 hardcode_shlibpath_var=no
9721 ;;
9722
9723 hpux9*)
9724 if test "$GCC" = yes; then
9725 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9726 else
9727 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'
9728 fi
9729 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9730 hardcode_libdir_separator=:
9731 hardcode_direct=yes
9732
9733 # hardcode_minus_L: Not really in the search PATH,
9734 # but as the default location of the library.
9735 hardcode_minus_L=yes
9736 export_dynamic_flag_spec='${wl}-E'
9737 ;;
9738
9739 hpux10*)
9740 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9741 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9742 else
9743 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9744 fi
9745 if test "$with_gnu_ld" = no; then
9746 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9747 hardcode_libdir_flag_spec_ld='+b $libdir'
9748 hardcode_libdir_separator=:
9749 hardcode_direct=yes
9750 hardcode_direct_absolute=yes
9751 export_dynamic_flag_spec='${wl}-E'
9752 # hardcode_minus_L: Not really in the search PATH,
9753 # but as the default location of the library.
9754 hardcode_minus_L=yes
9755 fi
9756 ;;
9757
9758 hpux11*)
9759 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9760 case $host_cpu in
9761 hppa*64*)
9762 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9763 ;;
9764 ia64*)
9765 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9766 ;;
9767 *)
9768 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9769 ;;
9770 esac
9771 else
9772 case $host_cpu in
9773 hppa*64*)
9774 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9775 ;;
9776 ia64*)
9777 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9778 ;;
9779 *)
9780
9781 # Older versions of the 11.00 compiler do not understand -b yet
9782 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9784 $as_echo_n "checking if $CC understands -b... " >&6; }
9785 if ${lt_cv_prog_compiler__b+:} false; then :
9786 $as_echo_n "(cached) " >&6
9787 else
9788 lt_cv_prog_compiler__b=no
9789 save_LDFLAGS="$LDFLAGS"
9790 LDFLAGS="$LDFLAGS -b"
9791 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9792 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9793 # The linker can only warn and ignore the option if not recognized
9794 # So say no if there are warnings
9795 if test -s conftest.err; then
9796 # Append any errors to the config.log.
9797 cat conftest.err 1>&5
9798 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9799 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9800 if diff conftest.exp conftest.er2 >/dev/null; then
9801 lt_cv_prog_compiler__b=yes
9802 fi
9803 else
9804 lt_cv_prog_compiler__b=yes
9805 fi
9806 fi
9807 $RM -r conftest*
9808 LDFLAGS="$save_LDFLAGS"
9809
9810 fi
9811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9812 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9813
9814 if test x"$lt_cv_prog_compiler__b" = xyes; then
9815 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9816 else
9817 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9818 fi
9819
9820 ;;
9821 esac
9822 fi
9823 if test "$with_gnu_ld" = no; then
9824 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9825 hardcode_libdir_separator=:
9826
9827 case $host_cpu in
9828 hppa*64*|ia64*)
9829 hardcode_direct=no
9830 hardcode_shlibpath_var=no
9831 ;;
9832 *)
9833 hardcode_direct=yes
9834 hardcode_direct_absolute=yes
9835 export_dynamic_flag_spec='${wl}-E'
9836
9837 # hardcode_minus_L: Not really in the search PATH,
9838 # but as the default location of the library.
9839 hardcode_minus_L=yes
9840 ;;
9841 esac
9842 fi
9843 ;;
9844
9845 irix5* | irix6* | nonstopux*)
9846 if test "$GCC" = yes; then
9847 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9848 # Try to use the -exported_symbol ld option, if it does not
9849 # work, assume that -exports_file does not work either and
9850 # implicitly export all symbols.
9851 # This should be the same for all languages, so no per-tag cache variable.
9852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9853 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9854 if ${lt_cv_irix_exported_symbol+:} false; then :
9855 $as_echo_n "(cached) " >&6
9856 else
9857 save_LDFLAGS="$LDFLAGS"
9858 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9860 /* end confdefs.h. */
9861 int foo (void) { return 0; }
9862 _ACEOF
9863 if ac_fn_c_try_link "$LINENO"; then :
9864 lt_cv_irix_exported_symbol=yes
9865 else
9866 lt_cv_irix_exported_symbol=no
9867 fi
9868 rm -f core conftest.err conftest.$ac_objext \
9869 conftest$ac_exeext conftest.$ac_ext
9870 LDFLAGS="$save_LDFLAGS"
9871 fi
9872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9873 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9874 if test "$lt_cv_irix_exported_symbol" = yes; then
9875 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
9876 fi
9877 else
9878 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'
9879 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'
9880 fi
9881 archive_cmds_need_lc='no'
9882 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9883 hardcode_libdir_separator=:
9884 inherit_rpath=yes
9885 link_all_deplibs=yes
9886 ;;
9887
9888 netbsd*)
9889 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9890 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9891 else
9892 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9893 fi
9894 hardcode_libdir_flag_spec='-R$libdir'
9895 hardcode_direct=yes
9896 hardcode_shlibpath_var=no
9897 ;;
9898
9899 newsos6)
9900 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9901 hardcode_direct=yes
9902 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9903 hardcode_libdir_separator=:
9904 hardcode_shlibpath_var=no
9905 ;;
9906
9907 *nto* | *qnx*)
9908 ;;
9909
9910 openbsd*)
9911 if test -f /usr/libexec/ld.so; then
9912 hardcode_direct=yes
9913 hardcode_shlibpath_var=no
9914 hardcode_direct_absolute=yes
9915 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9916 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9917 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9918 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9919 export_dynamic_flag_spec='${wl}-E'
9920 else
9921 case $host_os in
9922 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9923 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9924 hardcode_libdir_flag_spec='-R$libdir'
9925 ;;
9926 *)
9927 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9928 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9929 ;;
9930 esac
9931 fi
9932 else
9933 ld_shlibs=no
9934 fi
9935 ;;
9936
9937 os2*)
9938 hardcode_libdir_flag_spec='-L$libdir'
9939 hardcode_minus_L=yes
9940 allow_undefined_flag=unsupported
9941 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'
9942 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9943 ;;
9944
9945 osf3*)
9946 if test "$GCC" = yes; then
9947 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9948 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'
9949 else
9950 allow_undefined_flag=' -expect_unresolved \*'
9951 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'
9952 fi
9953 archive_cmds_need_lc='no'
9954 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9955 hardcode_libdir_separator=:
9956 ;;
9957
9958 osf4* | osf5*) # as osf3* with the addition of -msym flag
9959 if test "$GCC" = yes; then
9960 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9961 archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9962 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9963 else
9964 allow_undefined_flag=' -expect_unresolved \*'
9965 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'
9966 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~
9967 $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'
9968
9969 # Both c and cxx compiler support -rpath directly
9970 hardcode_libdir_flag_spec='-rpath $libdir'
9971 fi
9972 archive_cmds_need_lc='no'
9973 hardcode_libdir_separator=:
9974 ;;
9975
9976 solaris*)
9977 no_undefined_flag=' -z defs'
9978 if test "$GCC" = yes; then
9979 wlarc='${wl}'
9980 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9981 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9982 $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9983 else
9984 case `$CC -V 2>&1` in
9985 *"Compilers 5.0"*)
9986 wlarc=''
9987 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9988 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9989 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9990 ;;
9991 *)
9992 wlarc='${wl}'
9993 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9994 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9995 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9996 ;;
9997 esac
9998 fi
9999 hardcode_libdir_flag_spec='-R$libdir'
10000 hardcode_shlibpath_var=no
10001 case $host_os in
10002 solaris2.[0-5] | solaris2.[0-5].*) ;;
10003 *)
10004 # The compiler driver will combine and reorder linker options,
10005 # but understands `-z linker_flag'. GCC discards it without `$wl',
10006 # but is careful enough not to reorder.
10007 # Supported since Solaris 2.6 (maybe 2.5.1?)
10008 if test "$GCC" = yes; then
10009 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10010 else
10011 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10012 fi
10013 ;;
10014 esac
10015 link_all_deplibs=yes
10016 ;;
10017
10018 sunos4*)
10019 if test "x$host_vendor" = xsequent; then
10020 # Use $CC to link under sequent, because it throws in some extra .o
10021 # files that make .init and .fini sections work.
10022 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10023 else
10024 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10025 fi
10026 hardcode_libdir_flag_spec='-L$libdir'
10027 hardcode_direct=yes
10028 hardcode_minus_L=yes
10029 hardcode_shlibpath_var=no
10030 ;;
10031
10032 sysv4)
10033 case $host_vendor in
10034 sni)
10035 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10036 hardcode_direct=yes # is this really true???
10037 ;;
10038 siemens)
10039 ## LD is ld it makes a PLAMLIB
10040 ## CC just makes a GrossModule.
10041 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10042 reload_cmds='$CC -r -o $output$reload_objs'
10043 hardcode_direct=no
10044 ;;
10045 motorola)
10046 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10047 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10048 ;;
10049 esac
10050 runpath_var='LD_RUN_PATH'
10051 hardcode_shlibpath_var=no
10052 ;;
10053
10054 sysv4.3*)
10055 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10056 hardcode_shlibpath_var=no
10057 export_dynamic_flag_spec='-Bexport'
10058 ;;
10059
10060 sysv4*MP*)
10061 if test -d /usr/nec; then
10062 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10063 hardcode_shlibpath_var=no
10064 runpath_var=LD_RUN_PATH
10065 hardcode_runpath_var=yes
10066 ld_shlibs=yes
10067 fi
10068 ;;
10069
10070 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10071 no_undefined_flag='${wl}-z,text'
10072 archive_cmds_need_lc=no
10073 hardcode_shlibpath_var=no
10074 runpath_var='LD_RUN_PATH'
10075
10076 if test "$GCC" = yes; then
10077 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10078 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10079 else
10080 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10081 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10082 fi
10083 ;;
10084
10085 sysv5* | sco3.2v5* | sco5v6*)
10086 # Note: We can NOT use -z defs as we might desire, because we do not
10087 # link with -lc, and that would cause any symbols used from libc to
10088 # always be unresolved, which means just about no library would
10089 # ever link correctly. If we're not using GNU ld we use -z text
10090 # though, which does catch some bad symbols but isn't as heavy-handed
10091 # as -z defs.
10092 no_undefined_flag='${wl}-z,text'
10093 allow_undefined_flag='${wl}-z,nodefs'
10094 archive_cmds_need_lc=no
10095 hardcode_shlibpath_var=no
10096 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10097 hardcode_libdir_separator=':'
10098 link_all_deplibs=yes
10099 export_dynamic_flag_spec='${wl}-Bexport'
10100 runpath_var='LD_RUN_PATH'
10101
10102 if test "$GCC" = yes; then
10103 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10104 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10105 else
10106 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10107 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10108 fi
10109 ;;
10110
10111 uts4*)
10112 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10113 hardcode_libdir_flag_spec='-L$libdir'
10114 hardcode_shlibpath_var=no
10115 ;;
10116
10117 *)
10118 ld_shlibs=no
10119 ;;
10120 esac
10121
10122 if test x$host_vendor = xsni; then
10123 case $host in
10124 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10125 export_dynamic_flag_spec='${wl}-Blargedynsym'
10126 ;;
10127 esac
10128 fi
10129 fi
10130
10131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10132 $as_echo "$ld_shlibs" >&6; }
10133 test "$ld_shlibs" = no && can_build_shared=no
10134
10135 with_gnu_ld=$with_gnu_ld
10136
10137
10138
10139
10140
10141
10142
10143
10144
10145
10146
10147
10148
10149
10150
10151 #
10152 # Do we need to explicitly link libc?
10153 #
10154 case "x$archive_cmds_need_lc" in
10155 x|xyes)
10156 # Assume -lc should be added
10157 archive_cmds_need_lc=yes
10158
10159 if test "$enable_shared" = yes && test "$GCC" = yes; then
10160 case $archive_cmds in
10161 *'~'*)
10162 # FIXME: we may have to deal with multi-command sequences.
10163 ;;
10164 '$CC '*)
10165 # Test whether the compiler implicitly links with -lc since on some
10166 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10167 # to ld, don't add -lc before -lgcc.
10168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10169 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10170 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10171 $as_echo_n "(cached) " >&6
10172 else
10173 $RM conftest*
10174 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10175
10176 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10177 (eval $ac_compile) 2>&5
10178 ac_status=$?
10179 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10180 test $ac_status = 0; } 2>conftest.err; then
10181 soname=conftest
10182 lib=conftest
10183 libobjs=conftest.$ac_objext
10184 deplibs=
10185 wl=$lt_prog_compiler_wl
10186 pic_flag=$lt_prog_compiler_pic
10187 compiler_flags=-v
10188 linker_flags=-v
10189 verstring=
10190 output_objdir=.
10191 libname=conftest
10192 lt_save_allow_undefined_flag=$allow_undefined_flag
10193 allow_undefined_flag=
10194 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10195 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10196 ac_status=$?
10197 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10198 test $ac_status = 0; }
10199 then
10200 lt_cv_archive_cmds_need_lc=no
10201 else
10202 lt_cv_archive_cmds_need_lc=yes
10203 fi
10204 allow_undefined_flag=$lt_save_allow_undefined_flag
10205 else
10206 cat conftest.err 1>&5
10207 fi
10208 $RM conftest*
10209
10210 fi
10211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10212 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10213 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10214 ;;
10215 esac
10216 fi
10217 ;;
10218 esac
10219
10220
10221
10222
10223
10224
10225
10226
10227
10228
10229
10230
10231
10232
10233
10234
10235
10236
10237
10238
10239
10240
10241
10242
10243
10244
10245
10246
10247
10248
10249
10250
10251
10252
10253
10254
10255
10256
10257
10258
10259
10260
10261
10262
10263
10264
10265
10266
10267
10268
10269
10270
10271
10272
10273
10274
10275
10276
10277
10278
10279
10280
10281
10282
10283
10284
10285
10286
10287
10288
10289
10290
10291
10292
10293
10294
10295
10296
10297
10298
10299
10300
10301
10302
10303
10304
10305
10306
10307
10308
10309
10310
10311
10312
10313
10314
10315
10316
10317
10318
10319
10320
10321
10322
10323
10324
10325
10326
10327
10328
10329
10330
10331
10332
10333
10334
10335
10336
10337
10338
10339
10340
10341
10342
10343
10344
10345
10346
10347
10348
10349
10350
10351
10352
10353
10354
10355
10356
10357
10358
10359
10360
10361
10362
10363
10364
10365
10366
10367
10368
10369
10370
10371
10372
10373
10374
10375
10376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10377 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10378
10379 if test "$GCC" = yes; then
10380 case $host_os in
10381 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10382 *) lt_awk_arg="/^libraries:/" ;;
10383 esac
10384 case $host_os in
10385 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10386 *) lt_sed_strip_eq="s,=/,/,g" ;;
10387 esac
10388 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10389 case $lt_search_path_spec in
10390 *\;*)
10391 # if the path contains ";" then we assume it to be the separator
10392 # otherwise default to the standard path separator (i.e. ":") - it is
10393 # assumed that no part of a normal pathname contains ";" but that should
10394 # okay in the real world where ";" in dirpaths is itself problematic.
10395 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10396 ;;
10397 *)
10398 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10399 ;;
10400 esac
10401 # Ok, now we have the path, separated by spaces, we can step through it
10402 # and add multilib dir if necessary.
10403 lt_tmp_lt_search_path_spec=
10404 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10405 for lt_sys_path in $lt_search_path_spec; do
10406 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10407 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10408 else
10409 test -d "$lt_sys_path" && \
10410 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10411 fi
10412 done
10413 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10414 BEGIN {RS=" "; FS="/|\n";} {
10415 lt_foo="";
10416 lt_count=0;
10417 for (lt_i = NF; lt_i > 0; lt_i--) {
10418 if ($lt_i != "" && $lt_i != ".") {
10419 if ($lt_i == "..") {
10420 lt_count++;
10421 } else {
10422 if (lt_count == 0) {
10423 lt_foo="/" $lt_i lt_foo;
10424 } else {
10425 lt_count--;
10426 }
10427 }
10428 }
10429 }
10430 if (lt_foo != "") { lt_freq[lt_foo]++; }
10431 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10432 }'`
10433 # AWK program above erroneously prepends '/' to C:/dos/paths
10434 # for these hosts.
10435 case $host_os in
10436 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10437 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10438 esac
10439 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10440 else
10441 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10442 fi
10443 library_names_spec=
10444 libname_spec='lib$name'
10445 soname_spec=
10446 shrext_cmds=".so"
10447 postinstall_cmds=
10448 postuninstall_cmds=
10449 finish_cmds=
10450 finish_eval=
10451 shlibpath_var=
10452 shlibpath_overrides_runpath=unknown
10453 version_type=none
10454 dynamic_linker="$host_os ld.so"
10455 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10456 need_lib_prefix=unknown
10457 hardcode_into_libs=no
10458
10459 # when you set need_version to no, make sure it does not cause -set_version
10460 # flags to be left without arguments
10461 need_version=unknown
10462
10463 case $host_os in
10464 aix3*)
10465 version_type=linux
10466 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10467 shlibpath_var=LIBPATH
10468
10469 # AIX 3 has no versioning support, so we append a major version to the name.
10470 soname_spec='${libname}${release}${shared_ext}$major'
10471 ;;
10472
10473 aix[4-9]*)
10474 version_type=linux
10475 need_lib_prefix=no
10476 need_version=no
10477 hardcode_into_libs=yes
10478 if test "$host_cpu" = ia64; then
10479 # AIX 5 supports IA64
10480 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10481 shlibpath_var=LD_LIBRARY_PATH
10482 else
10483 # With GCC up to 2.95.x, collect2 would create an import file
10484 # for dependence libraries. The import file would start with
10485 # the line `#! .'. This would cause the generated library to
10486 # depend on `.', always an invalid library. This was fixed in
10487 # development snapshots of GCC prior to 3.0.
10488 case $host_os in
10489 aix4 | aix4.[01] | aix4.[01].*)
10490 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10491 echo ' yes '
10492 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10493 :
10494 else
10495 can_build_shared=no
10496 fi
10497 ;;
10498 esac
10499 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10500 # soname into executable. Probably we can add versioning support to
10501 # collect2, so additional links can be useful in future.
10502 if test "$aix_use_runtimelinking" = yes; then
10503 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10504 # instead of lib<name>.a to let people know that these are not
10505 # typical AIX shared libraries.
10506 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10507 else
10508 # We preserve .a as extension for shared libraries through AIX4.2
10509 # and later when we are not doing run time linking.
10510 library_names_spec='${libname}${release}.a $libname.a'
10511 soname_spec='${libname}${release}${shared_ext}$major'
10512 fi
10513 shlibpath_var=LIBPATH
10514 fi
10515 ;;
10516
10517 amigaos*)
10518 case $host_cpu in
10519 powerpc)
10520 # Since July 2007 AmigaOS4 officially supports .so libraries.
10521 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10522 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10523 ;;
10524 m68k)
10525 library_names_spec='$libname.ixlibrary $libname.a'
10526 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10527 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'
10528 ;;
10529 esac
10530 ;;
10531
10532 beos*)
10533 library_names_spec='${libname}${shared_ext}'
10534 dynamic_linker="$host_os ld.so"
10535 shlibpath_var=LIBRARY_PATH
10536 ;;
10537
10538 bsdi[45]*)
10539 version_type=linux
10540 need_version=no
10541 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10542 soname_spec='${libname}${release}${shared_ext}$major'
10543 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10544 shlibpath_var=LD_LIBRARY_PATH
10545 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10546 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10547 # the default ld.so.conf also contains /usr/contrib/lib and
10548 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10549 # libtool to hard-code these into programs
10550 ;;
10551
10552 cygwin* | mingw* | pw32* | cegcc*)
10553 version_type=windows
10554 shrext_cmds=".dll"
10555 need_version=no
10556 need_lib_prefix=no
10557
10558 case $GCC,$cc_basename in
10559 yes,*)
10560 # gcc
10561 library_names_spec='$libname.dll.a'
10562 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10563 postinstall_cmds='base_file=`basename \${file}`~
10564 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10565 dldir=$destdir/`dirname \$dlpath`~
10566 test -d \$dldir || mkdir -p \$dldir~
10567 $install_prog $dir/$dlname \$dldir/$dlname~
10568 chmod a+x \$dldir/$dlname~
10569 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10570 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10571 fi'
10572 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10573 dlpath=$dir/\$dldll~
10574 $RM \$dlpath'
10575 shlibpath_overrides_runpath=yes
10576
10577 case $host_os in
10578 cygwin*)
10579 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10580 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10581
10582 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10583 ;;
10584 mingw* | cegcc*)
10585 # MinGW DLLs use traditional 'lib' prefix
10586 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10587 ;;
10588 pw32*)
10589 # pw32 DLLs use 'pw' prefix rather than 'lib'
10590 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10591 ;;
10592 esac
10593 dynamic_linker='Win32 ld.exe'
10594 ;;
10595
10596 *,cl*)
10597 # Native MSVC
10598 libname_spec='$name'
10599 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10600 library_names_spec='${libname}.dll.lib'
10601
10602 case $build_os in
10603 mingw*)
10604 sys_lib_search_path_spec=
10605 lt_save_ifs=$IFS
10606 IFS=';'
10607 for lt_path in $LIB
10608 do
10609 IFS=$lt_save_ifs
10610 # Let DOS variable expansion print the short 8.3 style file name.
10611 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10612 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10613 done
10614 IFS=$lt_save_ifs
10615 # Convert to MSYS style.
10616 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10617 ;;
10618 cygwin*)
10619 # Convert to unix form, then to dos form, then back to unix form
10620 # but this time dos style (no spaces!) so that the unix form looks
10621 # like /cygdrive/c/PROGRA~1:/cygdr...
10622 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10623 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10624 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10625 ;;
10626 *)
10627 sys_lib_search_path_spec="$LIB"
10628 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10629 # It is most probably a Windows format PATH.
10630 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10631 else
10632 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10633 fi
10634 # FIXME: find the short name or the path components, as spaces are
10635 # common. (e.g. "Program Files" -> "PROGRA~1")
10636 ;;
10637 esac
10638
10639 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10640 postinstall_cmds='base_file=`basename \${file}`~
10641 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10642 dldir=$destdir/`dirname \$dlpath`~
10643 test -d \$dldir || mkdir -p \$dldir~
10644 $install_prog $dir/$dlname \$dldir/$dlname'
10645 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10646 dlpath=$dir/\$dldll~
10647 $RM \$dlpath'
10648 shlibpath_overrides_runpath=yes
10649 dynamic_linker='Win32 link.exe'
10650 ;;
10651
10652 *)
10653 # Assume MSVC wrapper
10654 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10655 dynamic_linker='Win32 ld.exe'
10656 ;;
10657 esac
10658 # FIXME: first we should search . and the directory the executable is in
10659 shlibpath_var=PATH
10660 ;;
10661
10662 darwin* | rhapsody*)
10663 dynamic_linker="$host_os dyld"
10664 version_type=darwin
10665 need_lib_prefix=no
10666 need_version=no
10667 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10668 soname_spec='${libname}${release}${major}$shared_ext'
10669 shlibpath_overrides_runpath=yes
10670 shlibpath_var=DYLD_LIBRARY_PATH
10671 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10672
10673 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10674 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10675 ;;
10676
10677 dgux*)
10678 version_type=linux
10679 need_lib_prefix=no
10680 need_version=no
10681 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10682 soname_spec='${libname}${release}${shared_ext}$major'
10683 shlibpath_var=LD_LIBRARY_PATH
10684 ;;
10685
10686 freebsd1*)
10687 dynamic_linker=no
10688 ;;
10689
10690 freebsd* | dragonfly*)
10691 # DragonFly does not have aout. When/if they implement a new
10692 # versioning mechanism, adjust this.
10693 if test -x /usr/bin/objformat; then
10694 objformat=`/usr/bin/objformat`
10695 else
10696 case $host_os in
10697 freebsd[123]*) objformat=aout ;;
10698 *) objformat=elf ;;
10699 esac
10700 fi
10701 version_type=freebsd-$objformat
10702 case $version_type in
10703 freebsd-elf*)
10704 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10705 need_version=no
10706 need_lib_prefix=no
10707 ;;
10708 freebsd-*)
10709 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10710 need_version=yes
10711 ;;
10712 esac
10713 shlibpath_var=LD_LIBRARY_PATH
10714 case $host_os in
10715 freebsd2*)
10716 shlibpath_overrides_runpath=yes
10717 ;;
10718 freebsd3.[01]* | freebsdelf3.[01]*)
10719 shlibpath_overrides_runpath=yes
10720 hardcode_into_libs=yes
10721 ;;
10722 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10723 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10724 shlibpath_overrides_runpath=no
10725 hardcode_into_libs=yes
10726 ;;
10727 *) # from 4.6 on, and DragonFly
10728 shlibpath_overrides_runpath=yes
10729 hardcode_into_libs=yes
10730 ;;
10731 esac
10732 ;;
10733
10734 gnu*)
10735 version_type=linux
10736 need_lib_prefix=no
10737 need_version=no
10738 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10739 soname_spec='${libname}${release}${shared_ext}$major'
10740 shlibpath_var=LD_LIBRARY_PATH
10741 hardcode_into_libs=yes
10742 ;;
10743
10744 haiku*)
10745 version_type=linux
10746 need_lib_prefix=no
10747 need_version=no
10748 dynamic_linker="$host_os runtime_loader"
10749 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10750 soname_spec='${libname}${release}${shared_ext}$major'
10751 shlibpath_var=LIBRARY_PATH
10752 shlibpath_overrides_runpath=yes
10753 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10754 hardcode_into_libs=yes
10755 ;;
10756
10757 hpux9* | hpux10* | hpux11*)
10758 # Give a soname corresponding to the major version so that dld.sl refuses to
10759 # link against other versions.
10760 version_type=sunos
10761 need_lib_prefix=no
10762 need_version=no
10763 case $host_cpu in
10764 ia64*)
10765 shrext_cmds='.so'
10766 hardcode_into_libs=yes
10767 dynamic_linker="$host_os dld.so"
10768 shlibpath_var=LD_LIBRARY_PATH
10769 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10770 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10771 soname_spec='${libname}${release}${shared_ext}$major'
10772 if test "X$HPUX_IA64_MODE" = X32; then
10773 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10774 else
10775 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10776 fi
10777 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10778 ;;
10779 hppa*64*)
10780 shrext_cmds='.sl'
10781 hardcode_into_libs=yes
10782 dynamic_linker="$host_os dld.sl"
10783 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10784 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10785 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10786 soname_spec='${libname}${release}${shared_ext}$major'
10787 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10788 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10789 ;;
10790 *)
10791 shrext_cmds='.sl'
10792 dynamic_linker="$host_os dld.sl"
10793 shlibpath_var=SHLIB_PATH
10794 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10795 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10796 soname_spec='${libname}${release}${shared_ext}$major'
10797 ;;
10798 esac
10799 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10800 postinstall_cmds='chmod 555 $lib'
10801 # or fails outright, so override atomically:
10802 install_override_mode=555
10803 ;;
10804
10805 interix[3-9]*)
10806 version_type=linux
10807 need_lib_prefix=no
10808 need_version=no
10809 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10810 soname_spec='${libname}${release}${shared_ext}$major'
10811 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10812 shlibpath_var=LD_LIBRARY_PATH
10813 shlibpath_overrides_runpath=no
10814 hardcode_into_libs=yes
10815 ;;
10816
10817 irix5* | irix6* | nonstopux*)
10818 case $host_os in
10819 nonstopux*) version_type=nonstopux ;;
10820 *)
10821 if test "$lt_cv_prog_gnu_ld" = yes; then
10822 version_type=linux
10823 else
10824 version_type=irix
10825 fi ;;
10826 esac
10827 need_lib_prefix=no
10828 need_version=no
10829 soname_spec='${libname}${release}${shared_ext}$major'
10830 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10831 case $host_os in
10832 irix5* | nonstopux*)
10833 libsuff= shlibsuff=
10834 ;;
10835 *)
10836 case $LD in # libtool.m4 will add one of these switches to LD
10837 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10838 libsuff= shlibsuff= libmagic=32-bit;;
10839 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10840 libsuff=32 shlibsuff=N32 libmagic=N32;;
10841 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10842 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10843 *) libsuff= shlibsuff= libmagic=never-match;;
10844 esac
10845 ;;
10846 esac
10847 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10848 shlibpath_overrides_runpath=no
10849 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10850 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10851 hardcode_into_libs=yes
10852 ;;
10853
10854 # No shared lib support for Linux oldld, aout, or coff.
10855 linux*oldld* | linux*aout* | linux*coff*)
10856 dynamic_linker=no
10857 ;;
10858
10859 # This must be Linux ELF.
10860 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10861 version_type=linux
10862 need_lib_prefix=no
10863 need_version=no
10864 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10865 soname_spec='${libname}${release}${shared_ext}$major'
10866 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10867 shlibpath_var=LD_LIBRARY_PATH
10868 shlibpath_overrides_runpath=no
10869
10870 # Some binutils ld are patched to set DT_RUNPATH
10871 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10872 $as_echo_n "(cached) " >&6
10873 else
10874 lt_cv_shlibpath_overrides_runpath=no
10875 save_LDFLAGS=$LDFLAGS
10876 save_libdir=$libdir
10877 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10878 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10880 /* end confdefs.h. */
10881
10882 int
10883 main ()
10884 {
10885
10886 ;
10887 return 0;
10888 }
10889 _ACEOF
10890 if ac_fn_c_try_link "$LINENO"; then :
10891 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10892 lt_cv_shlibpath_overrides_runpath=yes
10893 fi
10894 fi
10895 rm -f core conftest.err conftest.$ac_objext \
10896 conftest$ac_exeext conftest.$ac_ext
10897 LDFLAGS=$save_LDFLAGS
10898 libdir=$save_libdir
10899
10900 fi
10901
10902 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10903
10904 # This implies no fast_install, which is unacceptable.
10905 # Some rework will be needed to allow for fast_install
10906 # before this can be enabled.
10907 hardcode_into_libs=yes
10908
10909 # Append ld.so.conf contents to the search path
10910 if test -f /etc/ld.so.conf; then
10911 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' ' '`
10912 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10913 fi
10914
10915 # We used to test for /lib/ld.so.1 and disable shared libraries on
10916 # powerpc, because MkLinux only supported shared libraries with the
10917 # GNU dynamic linker. Since this was broken with cross compilers,
10918 # most powerpc-linux boxes support dynamic linking these days and
10919 # people can always --disable-shared, the test was removed, and we
10920 # assume the GNU/Linux dynamic linker is in use.
10921 dynamic_linker='GNU/Linux ld.so'
10922 ;;
10923
10924 netbsd*)
10925 version_type=sunos
10926 need_lib_prefix=no
10927 need_version=no
10928 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10929 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10930 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10931 dynamic_linker='NetBSD (a.out) ld.so'
10932 else
10933 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10934 soname_spec='${libname}${release}${shared_ext}$major'
10935 dynamic_linker='NetBSD ld.elf_so'
10936 fi
10937 shlibpath_var=LD_LIBRARY_PATH
10938 shlibpath_overrides_runpath=yes
10939 hardcode_into_libs=yes
10940 ;;
10941
10942 newsos6)
10943 version_type=linux
10944 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10945 shlibpath_var=LD_LIBRARY_PATH
10946 shlibpath_overrides_runpath=yes
10947 ;;
10948
10949 *nto* | *qnx*)
10950 version_type=qnx
10951 need_lib_prefix=no
10952 need_version=no
10953 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10954 soname_spec='${libname}${release}${shared_ext}$major'
10955 shlibpath_var=LD_LIBRARY_PATH
10956 shlibpath_overrides_runpath=no
10957 hardcode_into_libs=yes
10958 dynamic_linker='ldqnx.so'
10959 ;;
10960
10961 openbsd*)
10962 version_type=sunos
10963 sys_lib_dlsearch_path_spec="/usr/lib"
10964 need_lib_prefix=no
10965 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10966 case $host_os in
10967 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10968 *) need_version=no ;;
10969 esac
10970 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10971 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10972 shlibpath_var=LD_LIBRARY_PATH
10973 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10974 case $host_os in
10975 openbsd2.[89] | openbsd2.[89].*)
10976 shlibpath_overrides_runpath=no
10977 ;;
10978 *)
10979 shlibpath_overrides_runpath=yes
10980 ;;
10981 esac
10982 else
10983 shlibpath_overrides_runpath=yes
10984 fi
10985 ;;
10986
10987 os2*)
10988 libname_spec='$name'
10989 shrext_cmds=".dll"
10990 need_lib_prefix=no
10991 library_names_spec='$libname${shared_ext} $libname.a'
10992 dynamic_linker='OS/2 ld.exe'
10993 shlibpath_var=LIBPATH
10994 ;;
10995
10996 osf3* | osf4* | osf5*)
10997 version_type=osf
10998 need_lib_prefix=no
10999 need_version=no
11000 soname_spec='${libname}${release}${shared_ext}$major'
11001 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11002 shlibpath_var=LD_LIBRARY_PATH
11003 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11004 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11005 ;;
11006
11007 rdos*)
11008 dynamic_linker=no
11009 ;;
11010
11011 solaris*)
11012 version_type=linux
11013 need_lib_prefix=no
11014 need_version=no
11015 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11016 soname_spec='${libname}${release}${shared_ext}$major'
11017 shlibpath_var=LD_LIBRARY_PATH
11018 shlibpath_overrides_runpath=yes
11019 hardcode_into_libs=yes
11020 # ldd complains unless libraries are executable
11021 postinstall_cmds='chmod +x $lib'
11022 ;;
11023
11024 sunos4*)
11025 version_type=sunos
11026 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11027 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11028 shlibpath_var=LD_LIBRARY_PATH
11029 shlibpath_overrides_runpath=yes
11030 if test "$with_gnu_ld" = yes; then
11031 need_lib_prefix=no
11032 fi
11033 need_version=yes
11034 ;;
11035
11036 sysv4 | sysv4.3*)
11037 version_type=linux
11038 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11039 soname_spec='${libname}${release}${shared_ext}$major'
11040 shlibpath_var=LD_LIBRARY_PATH
11041 case $host_vendor in
11042 sni)
11043 shlibpath_overrides_runpath=no
11044 need_lib_prefix=no
11045 runpath_var=LD_RUN_PATH
11046 ;;
11047 siemens)
11048 need_lib_prefix=no
11049 ;;
11050 motorola)
11051 need_lib_prefix=no
11052 need_version=no
11053 shlibpath_overrides_runpath=no
11054 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11055 ;;
11056 esac
11057 ;;
11058
11059 sysv4*MP*)
11060 if test -d /usr/nec ;then
11061 version_type=linux
11062 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11063 soname_spec='$libname${shared_ext}.$major'
11064 shlibpath_var=LD_LIBRARY_PATH
11065 fi
11066 ;;
11067
11068 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11069 version_type=freebsd-elf
11070 need_lib_prefix=no
11071 need_version=no
11072 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11073 soname_spec='${libname}${release}${shared_ext}$major'
11074 shlibpath_var=LD_LIBRARY_PATH
11075 shlibpath_overrides_runpath=yes
11076 hardcode_into_libs=yes
11077 if test "$with_gnu_ld" = yes; then
11078 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11079 else
11080 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11081 case $host_os in
11082 sco3.2v5*)
11083 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11084 ;;
11085 esac
11086 fi
11087 sys_lib_dlsearch_path_spec='/usr/lib'
11088 ;;
11089
11090 tpf*)
11091 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11092 version_type=linux
11093 need_lib_prefix=no
11094 need_version=no
11095 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11096 shlibpath_var=LD_LIBRARY_PATH
11097 shlibpath_overrides_runpath=no
11098 hardcode_into_libs=yes
11099 ;;
11100
11101 uts4*)
11102 version_type=linux
11103 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11104 soname_spec='${libname}${release}${shared_ext}$major'
11105 shlibpath_var=LD_LIBRARY_PATH
11106 ;;
11107
11108 *)
11109 dynamic_linker=no
11110 ;;
11111 esac
11112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11113 $as_echo "$dynamic_linker" >&6; }
11114 test "$dynamic_linker" = no && can_build_shared=no
11115
11116 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11117 if test "$GCC" = yes; then
11118 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11119 fi
11120
11121 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11122 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11123 fi
11124 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11125 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11126 fi
11127
11128
11129
11130
11131
11132
11133
11134
11135
11136
11137
11138
11139
11140
11141
11142
11143
11144
11145
11146
11147
11148
11149
11150
11151
11152
11153
11154
11155
11156
11157
11158
11159
11160
11161
11162
11163
11164
11165
11166
11167
11168
11169
11170
11171
11172
11173
11174
11175
11176
11177
11178
11179
11180
11181
11182
11183
11184
11185
11186
11187
11188
11189
11190
11191
11192
11193
11194
11195
11196
11197
11198
11199
11200
11201
11202
11203
11204
11205
11206
11207
11208
11209
11210
11211
11212
11213
11214
11215
11216
11217
11218
11219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11220 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11221 hardcode_action=
11222 if test -n "$hardcode_libdir_flag_spec" ||
11223 test -n "$runpath_var" ||
11224 test "X$hardcode_automatic" = "Xyes" ; then
11225
11226 # We can hardcode non-existent directories.
11227 if test "$hardcode_direct" != no &&
11228 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11229 # have to relink, otherwise we might link with an installed library
11230 # when we should be linking with a yet-to-be-installed one
11231 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11232 test "$hardcode_minus_L" != no; then
11233 # Linking always hardcodes the temporary library directory.
11234 hardcode_action=relink
11235 else
11236 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11237 hardcode_action=immediate
11238 fi
11239 else
11240 # We cannot hardcode anything, or else we can only hardcode existing
11241 # directories.
11242 hardcode_action=unsupported
11243 fi
11244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11245 $as_echo "$hardcode_action" >&6; }
11246
11247 if test "$hardcode_action" = relink ||
11248 test "$inherit_rpath" = yes; then
11249 # Fast installation is not supported
11250 enable_fast_install=no
11251 elif test "$shlibpath_overrides_runpath" = yes ||
11252 test "$enable_shared" = no; then
11253 # Fast installation is not necessary
11254 enable_fast_install=needless
11255 fi
11256
11257
11258
11259
11260
11261
11262 if test "x$enable_dlopen" != xyes; then
11263 enable_dlopen=unknown
11264 enable_dlopen_self=unknown
11265 enable_dlopen_self_static=unknown
11266 else
11267 lt_cv_dlopen=no
11268 lt_cv_dlopen_libs=
11269
11270 case $host_os in
11271 beos*)
11272 lt_cv_dlopen="load_add_on"
11273 lt_cv_dlopen_libs=
11274 lt_cv_dlopen_self=yes
11275 ;;
11276
11277 mingw* | pw32* | cegcc*)
11278 lt_cv_dlopen="LoadLibrary"
11279 lt_cv_dlopen_libs=
11280 ;;
11281
11282 cygwin*)
11283 lt_cv_dlopen="dlopen"
11284 lt_cv_dlopen_libs=
11285 ;;
11286
11287 darwin*)
11288 # if libdl is installed we need to link against it
11289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11290 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11291 if ${ac_cv_lib_dl_dlopen+:} false; then :
11292 $as_echo_n "(cached) " >&6
11293 else
11294 ac_check_lib_save_LIBS=$LIBS
11295 LIBS="-ldl $LIBS"
11296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11297 /* end confdefs.h. */
11298
11299 /* Override any GCC internal prototype to avoid an error.
11300 Use char because int might match the return type of a GCC
11301 builtin and then its argument prototype would still apply. */
11302 #ifdef __cplusplus
11303 extern "C"
11304 #endif
11305 char dlopen ();
11306 int
11307 main ()
11308 {
11309 return dlopen ();
11310 ;
11311 return 0;
11312 }
11313 _ACEOF
11314 if ac_fn_c_try_link "$LINENO"; then :
11315 ac_cv_lib_dl_dlopen=yes
11316 else
11317 ac_cv_lib_dl_dlopen=no
11318 fi
11319 rm -f core conftest.err conftest.$ac_objext \
11320 conftest$ac_exeext conftest.$ac_ext
11321 LIBS=$ac_check_lib_save_LIBS
11322 fi
11323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11324 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11325 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11326 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11327 else
11328
11329 lt_cv_dlopen="dyld"
11330 lt_cv_dlopen_libs=
11331 lt_cv_dlopen_self=yes
11332
11333 fi
11334
11335 ;;
11336
11337 *)
11338 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11339 if test "x$ac_cv_func_shl_load" = xyes; then :
11340 lt_cv_dlopen="shl_load"
11341 else
11342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11343 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11344 if ${ac_cv_lib_dld_shl_load+:} false; then :
11345 $as_echo_n "(cached) " >&6
11346 else
11347 ac_check_lib_save_LIBS=$LIBS
11348 LIBS="-ldld $LIBS"
11349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11350 /* end confdefs.h. */
11351
11352 /* Override any GCC internal prototype to avoid an error.
11353 Use char because int might match the return type of a GCC
11354 builtin and then its argument prototype would still apply. */
11355 #ifdef __cplusplus
11356 extern "C"
11357 #endif
11358 char shl_load ();
11359 int
11360 main ()
11361 {
11362 return shl_load ();
11363 ;
11364 return 0;
11365 }
11366 _ACEOF
11367 if ac_fn_c_try_link "$LINENO"; then :
11368 ac_cv_lib_dld_shl_load=yes
11369 else
11370 ac_cv_lib_dld_shl_load=no
11371 fi
11372 rm -f core conftest.err conftest.$ac_objext \
11373 conftest$ac_exeext conftest.$ac_ext
11374 LIBS=$ac_check_lib_save_LIBS
11375 fi
11376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11377 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11378 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11379 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11380 else
11381 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11382 if test "x$ac_cv_func_dlopen" = xyes; then :
11383 lt_cv_dlopen="dlopen"
11384 else
11385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11386 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11387 if ${ac_cv_lib_dl_dlopen+:} false; then :
11388 $as_echo_n "(cached) " >&6
11389 else
11390 ac_check_lib_save_LIBS=$LIBS
11391 LIBS="-ldl $LIBS"
11392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11393 /* end confdefs.h. */
11394
11395 /* Override any GCC internal prototype to avoid an error.
11396 Use char because int might match the return type of a GCC
11397 builtin and then its argument prototype would still apply. */
11398 #ifdef __cplusplus
11399 extern "C"
11400 #endif
11401 char dlopen ();
11402 int
11403 main ()
11404 {
11405 return dlopen ();
11406 ;
11407 return 0;
11408 }
11409 _ACEOF
11410 if ac_fn_c_try_link "$LINENO"; then :
11411 ac_cv_lib_dl_dlopen=yes
11412 else
11413 ac_cv_lib_dl_dlopen=no
11414 fi
11415 rm -f core conftest.err conftest.$ac_objext \
11416 conftest$ac_exeext conftest.$ac_ext
11417 LIBS=$ac_check_lib_save_LIBS
11418 fi
11419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11420 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11421 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11422 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11423 else
11424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11425 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11426 if ${ac_cv_lib_svld_dlopen+:} false; then :
11427 $as_echo_n "(cached) " >&6
11428 else
11429 ac_check_lib_save_LIBS=$LIBS
11430 LIBS="-lsvld $LIBS"
11431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11432 /* end confdefs.h. */
11433
11434 /* Override any GCC internal prototype to avoid an error.
11435 Use char because int might match the return type of a GCC
11436 builtin and then its argument prototype would still apply. */
11437 #ifdef __cplusplus
11438 extern "C"
11439 #endif
11440 char dlopen ();
11441 int
11442 main ()
11443 {
11444 return dlopen ();
11445 ;
11446 return 0;
11447 }
11448 _ACEOF
11449 if ac_fn_c_try_link "$LINENO"; then :
11450 ac_cv_lib_svld_dlopen=yes
11451 else
11452 ac_cv_lib_svld_dlopen=no
11453 fi
11454 rm -f core conftest.err conftest.$ac_objext \
11455 conftest$ac_exeext conftest.$ac_ext
11456 LIBS=$ac_check_lib_save_LIBS
11457 fi
11458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11459 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11460 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11461 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11462 else
11463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11464 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11465 if ${ac_cv_lib_dld_dld_link+:} false; then :
11466 $as_echo_n "(cached) " >&6
11467 else
11468 ac_check_lib_save_LIBS=$LIBS
11469 LIBS="-ldld $LIBS"
11470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11471 /* end confdefs.h. */
11472
11473 /* Override any GCC internal prototype to avoid an error.
11474 Use char because int might match the return type of a GCC
11475 builtin and then its argument prototype would still apply. */
11476 #ifdef __cplusplus
11477 extern "C"
11478 #endif
11479 char dld_link ();
11480 int
11481 main ()
11482 {
11483 return dld_link ();
11484 ;
11485 return 0;
11486 }
11487 _ACEOF
11488 if ac_fn_c_try_link "$LINENO"; then :
11489 ac_cv_lib_dld_dld_link=yes
11490 else
11491 ac_cv_lib_dld_dld_link=no
11492 fi
11493 rm -f core conftest.err conftest.$ac_objext \
11494 conftest$ac_exeext conftest.$ac_ext
11495 LIBS=$ac_check_lib_save_LIBS
11496 fi
11497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11498 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11499 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11500 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11501 fi
11502
11503
11504 fi
11505
11506
11507 fi
11508
11509
11510 fi
11511
11512
11513 fi
11514
11515
11516 fi
11517
11518 ;;
11519 esac
11520
11521 if test "x$lt_cv_dlopen" != xno; then
11522 enable_dlopen=yes
11523 else
11524 enable_dlopen=no
11525 fi
11526
11527 case $lt_cv_dlopen in
11528 dlopen)
11529 save_CPPFLAGS="$CPPFLAGS"
11530 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11531
11532 save_LDFLAGS="$LDFLAGS"
11533 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11534
11535 save_LIBS="$LIBS"
11536 LIBS="$lt_cv_dlopen_libs $LIBS"
11537
11538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11539 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11540 if ${lt_cv_dlopen_self+:} false; then :
11541 $as_echo_n "(cached) " >&6
11542 else
11543 if test "$cross_compiling" = yes; then :
11544 lt_cv_dlopen_self=cross
11545 else
11546 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11547 lt_status=$lt_dlunknown
11548 cat > conftest.$ac_ext <<_LT_EOF
11549 #line $LINENO "configure"
11550 #include "confdefs.h"
11551
11552 #if HAVE_DLFCN_H
11553 #include <dlfcn.h>
11554 #endif
11555
11556 #include <stdio.h>
11557
11558 #ifdef RTLD_GLOBAL
11559 # define LT_DLGLOBAL RTLD_GLOBAL
11560 #else
11561 # ifdef DL_GLOBAL
11562 # define LT_DLGLOBAL DL_GLOBAL
11563 # else
11564 # define LT_DLGLOBAL 0
11565 # endif
11566 #endif
11567
11568 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11569 find out it does not work in some platform. */
11570 #ifndef LT_DLLAZY_OR_NOW
11571 # ifdef RTLD_LAZY
11572 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11573 # else
11574 # ifdef DL_LAZY
11575 # define LT_DLLAZY_OR_NOW DL_LAZY
11576 # else
11577 # ifdef RTLD_NOW
11578 # define LT_DLLAZY_OR_NOW RTLD_NOW
11579 # else
11580 # ifdef DL_NOW
11581 # define LT_DLLAZY_OR_NOW DL_NOW
11582 # else
11583 # define LT_DLLAZY_OR_NOW 0
11584 # endif
11585 # endif
11586 # endif
11587 # endif
11588 #endif
11589
11590 /* When -fvisbility=hidden is used, assume the code has been annotated
11591 correspondingly for the symbols needed. */
11592 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11593 int fnord () __attribute__((visibility("default")));
11594 #endif
11595
11596 int fnord () { return 42; }
11597 int main ()
11598 {
11599 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11600 int status = $lt_dlunknown;
11601
11602 if (self)
11603 {
11604 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11605 else
11606 {
11607 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11608 else puts (dlerror ());
11609 }
11610 /* dlclose (self); */
11611 }
11612 else
11613 puts (dlerror ());
11614
11615 return status;
11616 }
11617 _LT_EOF
11618 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11619 (eval $ac_link) 2>&5
11620 ac_status=$?
11621 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11622 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11623 (./conftest; exit; ) >&5 2>/dev/null
11624 lt_status=$?
11625 case x$lt_status in
11626 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11627 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11628 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11629 esac
11630 else :
11631 # compilation failed
11632 lt_cv_dlopen_self=no
11633 fi
11634 fi
11635 rm -fr conftest*
11636
11637
11638 fi
11639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11640 $as_echo "$lt_cv_dlopen_self" >&6; }
11641
11642 if test "x$lt_cv_dlopen_self" = xyes; then
11643 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11645 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11646 if ${lt_cv_dlopen_self_static+:} false; then :
11647 $as_echo_n "(cached) " >&6
11648 else
11649 if test "$cross_compiling" = yes; then :
11650 lt_cv_dlopen_self_static=cross
11651 else
11652 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11653 lt_status=$lt_dlunknown
11654 cat > conftest.$ac_ext <<_LT_EOF
11655 #line $LINENO "configure"
11656 #include "confdefs.h"
11657
11658 #if HAVE_DLFCN_H
11659 #include <dlfcn.h>
11660 #endif
11661
11662 #include <stdio.h>
11663
11664 #ifdef RTLD_GLOBAL
11665 # define LT_DLGLOBAL RTLD_GLOBAL
11666 #else
11667 # ifdef DL_GLOBAL
11668 # define LT_DLGLOBAL DL_GLOBAL
11669 # else
11670 # define LT_DLGLOBAL 0
11671 # endif
11672 #endif
11673
11674 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11675 find out it does not work in some platform. */
11676 #ifndef LT_DLLAZY_OR_NOW
11677 # ifdef RTLD_LAZY
11678 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11679 # else
11680 # ifdef DL_LAZY
11681 # define LT_DLLAZY_OR_NOW DL_LAZY
11682 # else
11683 # ifdef RTLD_NOW
11684 # define LT_DLLAZY_OR_NOW RTLD_NOW
11685 # else
11686 # ifdef DL_NOW
11687 # define LT_DLLAZY_OR_NOW DL_NOW
11688 # else
11689 # define LT_DLLAZY_OR_NOW 0
11690 # endif
11691 # endif
11692 # endif
11693 # endif
11694 #endif
11695
11696 /* When -fvisbility=hidden is used, assume the code has been annotated
11697 correspondingly for the symbols needed. */
11698 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11699 int fnord () __attribute__((visibility("default")));
11700 #endif
11701
11702 int fnord () { return 42; }
11703 int main ()
11704 {
11705 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11706 int status = $lt_dlunknown;
11707
11708 if (self)
11709 {
11710 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11711 else
11712 {
11713 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11714 else puts (dlerror ());
11715 }
11716 /* dlclose (self); */
11717 }
11718 else
11719 puts (dlerror ());
11720
11721 return status;
11722 }
11723 _LT_EOF
11724 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11725 (eval $ac_link) 2>&5
11726 ac_status=$?
11727 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11728 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11729 (./conftest; exit; ) >&5 2>/dev/null
11730 lt_status=$?
11731 case x$lt_status in
11732 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11733 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11734 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11735 esac
11736 else :
11737 # compilation failed
11738 lt_cv_dlopen_self_static=no
11739 fi
11740 fi
11741 rm -fr conftest*
11742
11743
11744 fi
11745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11746 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11747 fi
11748
11749 CPPFLAGS="$save_CPPFLAGS"
11750 LDFLAGS="$save_LDFLAGS"
11751 LIBS="$save_LIBS"
11752 ;;
11753 esac
11754
11755 case $lt_cv_dlopen_self in
11756 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11757 *) enable_dlopen_self=unknown ;;
11758 esac
11759
11760 case $lt_cv_dlopen_self_static in
11761 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11762 *) enable_dlopen_self_static=unknown ;;
11763 esac
11764 fi
11765
11766
11767
11768
11769
11770
11771
11772
11773
11774
11775
11776
11777
11778
11779
11780
11781
11782 striplib=
11783 old_striplib=
11784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11785 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11786 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11787 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11788 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11790 $as_echo "yes" >&6; }
11791 else
11792 # FIXME - insert some real tests, host_os isn't really good enough
11793 case $host_os in
11794 darwin*)
11795 if test -n "$STRIP" ; then
11796 striplib="$STRIP -x"
11797 old_striplib="$STRIP -S"
11798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11799 $as_echo "yes" >&6; }
11800 else
11801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11802 $as_echo "no" >&6; }
11803 fi
11804 ;;
11805 *)
11806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11807 $as_echo "no" >&6; }
11808 ;;
11809 esac
11810 fi
11811
11812
11813
11814
11815
11816
11817
11818
11819
11820
11821
11822
11823 # Report which library types will actually be built
11824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11825 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11827 $as_echo "$can_build_shared" >&6; }
11828
11829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11830 $as_echo_n "checking whether to build shared libraries... " >&6; }
11831 test "$can_build_shared" = "no" && enable_shared=no
11832
11833 # On AIX, shared libraries and static libraries use the same namespace, and
11834 # are all built from PIC.
11835 case $host_os in
11836 aix3*)
11837 test "$enable_shared" = yes && enable_static=no
11838 if test -n "$RANLIB"; then
11839 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11840 postinstall_cmds='$RANLIB $lib'
11841 fi
11842 ;;
11843
11844 aix[4-9]*)
11845 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11846 test "$enable_shared" = yes && enable_static=no
11847 fi
11848 ;;
11849 esac
11850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11851 $as_echo "$enable_shared" >&6; }
11852
11853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11854 $as_echo_n "checking whether to build static libraries... " >&6; }
11855 # Make sure either enable_shared or enable_static is yes.
11856 test "$enable_shared" = yes || enable_static=yes
11857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11858 $as_echo "$enable_static" >&6; }
11859
11860
11861
11862
11863 fi
11864 ac_ext=c
11865 ac_cpp='$CPP $CPPFLAGS'
11866 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11867 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11868 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11869
11870 CC="$lt_save_CC"
11871
11872
11873
11874
11875
11876
11877
11878
11879
11880
11881
11882
11883
11884 ac_config_commands="$ac_config_commands libtool"
11885
11886
11887
11888
11889 # Only expand once:
11890
11891
11892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which extension is used for runtime loadable modules" >&5
11893 $as_echo_n "checking which extension is used for runtime loadable modules... " >&6; }
11894 if ${libltdl_cv_shlibext+:} false; then :
11895 $as_echo_n "(cached) " >&6
11896 else
11897
11898 module=yes
11899 eval libltdl_cv_shlibext=$shrext_cmds
11900
11901 fi
11902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_shlibext" >&5
11903 $as_echo "$libltdl_cv_shlibext" >&6; }
11904 if test -n "$libltdl_cv_shlibext"; then
11905
11906 cat >>confdefs.h <<_ACEOF
11907 #define LT_MODULE_EXT "$libltdl_cv_shlibext"
11908 _ACEOF
11909
11910 fi
11911
11912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variable specifies run-time module search path" >&5
11913 $as_echo_n "checking which variable specifies run-time module search path... " >&6; }
11914 if ${lt_cv_module_path_var+:} false; then :
11915 $as_echo_n "(cached) " >&6
11916 else
11917 lt_cv_module_path_var="$shlibpath_var"
11918 fi
11919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_module_path_var" >&5
11920 $as_echo "$lt_cv_module_path_var" >&6; }
11921 if test -n "$lt_cv_module_path_var"; then
11922
11923 cat >>confdefs.h <<_ACEOF
11924 #define LT_MODULE_PATH_VAR "$lt_cv_module_path_var"
11925 _ACEOF
11926
11927 fi
11928
11929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the default library search path" >&5
11930 $as_echo_n "checking for the default library search path... " >&6; }
11931 if ${lt_cv_sys_dlsearch_path+:} false; then :
11932 $as_echo_n "(cached) " >&6
11933 else
11934 lt_cv_sys_dlsearch_path="$sys_lib_dlsearch_path_spec"
11935 fi
11936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlsearch_path" >&5
11937 $as_echo "$lt_cv_sys_dlsearch_path" >&6; }
11938 if test -n "$lt_cv_sys_dlsearch_path"; then
11939 sys_dlsearch_path=
11940 for dir in $lt_cv_sys_dlsearch_path; do
11941 if test -z "$sys_dlsearch_path"; then
11942 sys_dlsearch_path="$dir"
11943 else
11944 sys_dlsearch_path="$sys_dlsearch_path$PATH_SEPARATOR$dir"
11945 fi
11946 done
11947
11948 cat >>confdefs.h <<_ACEOF
11949 #define LT_DLSEARCH_PATH "$sys_dlsearch_path"
11950 _ACEOF
11951
11952 fi
11953
11954
11955 LT_DLLOADERS=
11956
11957
11958 ac_ext=c
11959 ac_cpp='$CPP $CPPFLAGS'
11960 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11961 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11962 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11963
11964
11965 LIBADD_DLOPEN=
11966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
11967 $as_echo_n "checking for library containing dlopen... " >&6; }
11968 if ${ac_cv_search_dlopen+:} false; then :
11969 $as_echo_n "(cached) " >&6
11970 else
11971 ac_func_search_save_LIBS=$LIBS
11972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11973 /* end confdefs.h. */
11974
11975 /* Override any GCC internal prototype to avoid an error.
11976 Use char because int might match the return type of a GCC
11977 builtin and then its argument prototype would still apply. */
11978 #ifdef __cplusplus
11979 extern "C"
11980 #endif
11981 char dlopen ();
11982 int
11983 main ()
11984 {
11985 return dlopen ();
11986 ;
11987 return 0;
11988 }
11989 _ACEOF
11990 for ac_lib in '' dl; do
11991 if test -z "$ac_lib"; then
11992 ac_res="none required"
11993 else
11994 ac_res=-l$ac_lib
11995 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11996 fi
11997 if ac_fn_c_try_link "$LINENO"; then :
11998 ac_cv_search_dlopen=$ac_res
11999 fi
12000 rm -f core conftest.err conftest.$ac_objext \
12001 conftest$ac_exeext
12002 if ${ac_cv_search_dlopen+:} false; then :
12003 break
12004 fi
12005 done
12006 if ${ac_cv_search_dlopen+:} false; then :
12007
12008 else
12009 ac_cv_search_dlopen=no
12010 fi
12011 rm conftest.$ac_ext
12012 LIBS=$ac_func_search_save_LIBS
12013 fi
12014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
12015 $as_echo "$ac_cv_search_dlopen" >&6; }
12016 ac_res=$ac_cv_search_dlopen
12017 if test "$ac_res" != no; then :
12018 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12019
12020 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
12021
12022 if test "$ac_cv_search_dlopen" != "none required" ; then
12023 LIBADD_DLOPEN="-ldl"
12024 fi
12025 libltdl_cv_lib_dl_dlopen="yes"
12026 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
12027 else
12028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12029 /* end confdefs.h. */
12030 #if HAVE_DLFCN_H
12031 # include <dlfcn.h>
12032 #endif
12033
12034 int
12035 main ()
12036 {
12037 dlopen(0, 0);
12038 ;
12039 return 0;
12040 }
12041 _ACEOF
12042 if ac_fn_c_try_link "$LINENO"; then :
12043
12044 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
12045
12046 libltdl_cv_func_dlopen="yes"
12047 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
12048 else
12049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12050 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12051 if ${ac_cv_lib_svld_dlopen+:} false; then :
12052 $as_echo_n "(cached) " >&6
12053 else
12054 ac_check_lib_save_LIBS=$LIBS
12055 LIBS="-lsvld $LIBS"
12056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12057 /* end confdefs.h. */
12058
12059 /* Override any GCC internal prototype to avoid an error.
12060 Use char because int might match the return type of a GCC
12061 builtin and then its argument prototype would still apply. */
12062 #ifdef __cplusplus
12063 extern "C"
12064 #endif
12065 char dlopen ();
12066 int
12067 main ()
12068 {
12069 return dlopen ();
12070 ;
12071 return 0;
12072 }
12073 _ACEOF
12074 if ac_fn_c_try_link "$LINENO"; then :
12075 ac_cv_lib_svld_dlopen=yes
12076 else
12077 ac_cv_lib_svld_dlopen=no
12078 fi
12079 rm -f core conftest.err conftest.$ac_objext \
12080 conftest$ac_exeext conftest.$ac_ext
12081 LIBS=$ac_check_lib_save_LIBS
12082 fi
12083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12084 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12085 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12086
12087 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
12088
12089 LIBADD_DLOPEN="-lsvld" libltdl_cv_func_dlopen="yes"
12090 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
12091 fi
12092
12093 fi
12094 rm -f core conftest.err conftest.$ac_objext \
12095 conftest$ac_exeext conftest.$ac_ext
12096 fi
12097
12098 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
12099 then
12100 lt_save_LIBS="$LIBS"
12101 LIBS="$LIBS $LIBADD_DLOPEN"
12102 for ac_func in dlerror
12103 do :
12104 ac_fn_c_check_func "$LINENO" "dlerror" "ac_cv_func_dlerror"
12105 if test "x$ac_cv_func_dlerror" = xyes; then :
12106 cat >>confdefs.h <<_ACEOF
12107 #define HAVE_DLERROR 1
12108 _ACEOF
12109
12110 fi
12111 done
12112
12113 LIBS="$lt_save_LIBS"
12114 fi
12115
12116
12117 LIBADD_SHL_LOAD=
12118 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12119 if test "x$ac_cv_func_shl_load" = xyes; then :
12120
12121 $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
12122
12123 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
12124 else
12125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12126 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12127 if ${ac_cv_lib_dld_shl_load+:} false; then :
12128 $as_echo_n "(cached) " >&6
12129 else
12130 ac_check_lib_save_LIBS=$LIBS
12131 LIBS="-ldld $LIBS"
12132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12133 /* end confdefs.h. */
12134
12135 /* Override any GCC internal prototype to avoid an error.
12136 Use char because int might match the return type of a GCC
12137 builtin and then its argument prototype would still apply. */
12138 #ifdef __cplusplus
12139 extern "C"
12140 #endif
12141 char shl_load ();
12142 int
12143 main ()
12144 {
12145 return shl_load ();
12146 ;
12147 return 0;
12148 }
12149 _ACEOF
12150 if ac_fn_c_try_link "$LINENO"; then :
12151 ac_cv_lib_dld_shl_load=yes
12152 else
12153 ac_cv_lib_dld_shl_load=no
12154 fi
12155 rm -f core conftest.err conftest.$ac_objext \
12156 conftest$ac_exeext conftest.$ac_ext
12157 LIBS=$ac_check_lib_save_LIBS
12158 fi
12159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12160 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12161 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12162
12163 $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
12164
12165 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
12166 LIBADD_SHL_LOAD="-ldld"
12167 fi
12168
12169 fi
12170
12171
12172
12173 case $host_os in
12174 darwin[1567].*)
12175 # We only want this for pre-Mac OS X 10.4.
12176 ac_fn_c_check_func "$LINENO" "_dyld_func_lookup" "ac_cv_func__dyld_func_lookup"
12177 if test "x$ac_cv_func__dyld_func_lookup" = xyes; then :
12178
12179 $as_echo "#define HAVE_DYLD 1" >>confdefs.h
12180
12181 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la"
12182 fi
12183
12184 ;;
12185 beos*)
12186 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la"
12187 ;;
12188 cygwin* | mingw* | os2* | pw32*)
12189 ac_fn_c_check_decl "$LINENO" "cygwin_conv_path" "ac_cv_have_decl_cygwin_conv_path" "#include <sys/cygwin.h>
12190 "
12191 if test "x$ac_cv_have_decl_cygwin_conv_path" = xyes; then :
12192 ac_have_decl=1
12193 else
12194 ac_have_decl=0
12195 fi
12196
12197 cat >>confdefs.h <<_ACEOF
12198 #define HAVE_DECL_CYGWIN_CONV_PATH $ac_have_decl
12199 _ACEOF
12200
12201 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la"
12202 ;;
12203 esac
12204
12205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12206 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12207 if ${ac_cv_lib_dld_dld_link+:} false; then :
12208 $as_echo_n "(cached) " >&6
12209 else
12210 ac_check_lib_save_LIBS=$LIBS
12211 LIBS="-ldld $LIBS"
12212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12213 /* end confdefs.h. */
12214
12215 /* Override any GCC internal prototype to avoid an error.
12216 Use char because int might match the return type of a GCC
12217 builtin and then its argument prototype would still apply. */
12218 #ifdef __cplusplus
12219 extern "C"
12220 #endif
12221 char dld_link ();
12222 int
12223 main ()
12224 {
12225 return dld_link ();
12226 ;
12227 return 0;
12228 }
12229 _ACEOF
12230 if ac_fn_c_try_link "$LINENO"; then :
12231 ac_cv_lib_dld_dld_link=yes
12232 else
12233 ac_cv_lib_dld_dld_link=no
12234 fi
12235 rm -f core conftest.err conftest.$ac_objext \
12236 conftest$ac_exeext conftest.$ac_ext
12237 LIBS=$ac_check_lib_save_LIBS
12238 fi
12239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12240 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12241 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12242
12243 $as_echo "#define HAVE_DLD 1" >>confdefs.h
12244
12245 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la"
12246 fi
12247
12248
12249
12250
12251 LT_DLPREOPEN=
12252 if test -n "$LT_DLLOADERS"
12253 then
12254 for lt_loader in $LT_DLLOADERS; do
12255 LT_DLPREOPEN="$LT_DLPREOPEN-dlpreopen $lt_loader "
12256 done
12257
12258 $as_echo "#define HAVE_LIBDLLOADER 1" >>confdefs.h
12259
12260 fi
12261
12262
12263 LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD"
12264
12265
12266 ac_ext=c
12267 ac_cpp='$CPP $CPPFLAGS'
12268 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12269 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12270 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12271
12272
12273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _ prefix in compiled symbols" >&5
12274 $as_echo_n "checking for _ prefix in compiled symbols... " >&6; }
12275 if ${lt_cv_sys_symbol_underscore+:} false; then :
12276 $as_echo_n "(cached) " >&6
12277 else
12278 lt_cv_sys_symbol_underscore=no
12279 cat > conftest.$ac_ext <<_LT_EOF
12280 void nm_test_func(){}
12281 int main(){nm_test_func;return 0;}
12282 _LT_EOF
12283 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12284 (eval $ac_compile) 2>&5
12285 ac_status=$?
12286 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12287 test $ac_status = 0; }; then
12288 # Now try to grab the symbols.
12289 ac_nlist=conftest.nm
12290 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\""; } >&5
12291 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
12292 ac_status=$?
12293 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12294 test $ac_status = 0; } && test -s "$ac_nlist"; then
12295 # See whether the symbols have a leading underscore.
12296 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
12297 lt_cv_sys_symbol_underscore=yes
12298 else
12299 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
12300 :
12301 else
12302 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
12303 fi
12304 fi
12305 else
12306 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
12307 fi
12308 else
12309 echo "configure: failed program was:" >&5
12310 cat conftest.c >&5
12311 fi
12312 rm -rf conftest*
12313
12314 fi
12315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_symbol_underscore" >&5
12316 $as_echo "$lt_cv_sys_symbol_underscore" >&6; }
12317 sys_symbol_underscore=$lt_cv_sys_symbol_underscore
12318
12319
12320 if test x"$lt_cv_sys_symbol_underscore" = xyes; then
12321 if test x"$libltdl_cv_func_dlopen" = xyes ||
12322 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
12323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have to add an underscore for dlsym" >&5
12324 $as_echo_n "checking whether we have to add an underscore for dlsym... " >&6; }
12325 if ${libltdl_cv_need_uscore+:} false; then :
12326 $as_echo_n "(cached) " >&6
12327 else
12328 libltdl_cv_need_uscore=unknown
12329 save_LIBS="$LIBS"
12330 LIBS="$LIBS $LIBADD_DLOPEN"
12331 if test "$cross_compiling" = yes; then :
12332 libltdl_cv_need_uscore=cross
12333 else
12334 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12335 lt_status=$lt_dlunknown
12336 cat > conftest.$ac_ext <<_LT_EOF
12337 #line $LINENO "configure"
12338 #include "confdefs.h"
12339
12340 #if HAVE_DLFCN_H
12341 #include <dlfcn.h>
12342 #endif
12343
12344 #include <stdio.h>
12345
12346 #ifdef RTLD_GLOBAL
12347 # define LT_DLGLOBAL RTLD_GLOBAL
12348 #else
12349 # ifdef DL_GLOBAL
12350 # define LT_DLGLOBAL DL_GLOBAL
12351 # else
12352 # define LT_DLGLOBAL 0
12353 # endif
12354 #endif
12355
12356 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12357 find out it does not work in some platform. */
12358 #ifndef LT_DLLAZY_OR_NOW
12359 # ifdef RTLD_LAZY
12360 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12361 # else
12362 # ifdef DL_LAZY
12363 # define LT_DLLAZY_OR_NOW DL_LAZY
12364 # else
12365 # ifdef RTLD_NOW
12366 # define LT_DLLAZY_OR_NOW RTLD_NOW
12367 # else
12368 # ifdef DL_NOW
12369 # define LT_DLLAZY_OR_NOW DL_NOW
12370 # else
12371 # define LT_DLLAZY_OR_NOW 0
12372 # endif
12373 # endif
12374 # endif
12375 # endif
12376 #endif
12377
12378 /* When -fvisbility=hidden is used, assume the code has been annotated
12379 correspondingly for the symbols needed. */
12380 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12381 int fnord () __attribute__((visibility("default")));
12382 #endif
12383
12384 int fnord () { return 42; }
12385 int main ()
12386 {
12387 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12388 int status = $lt_dlunknown;
12389
12390 if (self)
12391 {
12392 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12393 else
12394 {
12395 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12396 else puts (dlerror ());
12397 }
12398 /* dlclose (self); */
12399 }
12400 else
12401 puts (dlerror ());
12402
12403 return status;
12404 }
12405 _LT_EOF
12406 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12407 (eval $ac_link) 2>&5
12408 ac_status=$?
12409 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12410 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12411 (./conftest; exit; ) >&5 2>/dev/null
12412 lt_status=$?
12413 case x$lt_status in
12414 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
12415 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
12416 x$lt_dlunknown|x*) ;;
12417 esac
12418 else :
12419 # compilation failed
12420
12421 fi
12422 fi
12423 rm -fr conftest*
12424
12425 LIBS="$save_LIBS"
12426
12427 fi
12428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_need_uscore" >&5
12429 $as_echo "$libltdl_cv_need_uscore" >&6; }
12430 fi
12431 fi
12432
12433 if test x"$libltdl_cv_need_uscore" = xyes; then
12434
12435 $as_echo "#define NEED_USCORE 1" >>confdefs.h
12436
12437 fi
12438
12439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether deplibs are loaded by dlopen" >&5
12440 $as_echo_n "checking whether deplibs are loaded by dlopen... " >&6; }
12441 if ${lt_cv_sys_dlopen_deplibs+:} false; then :
12442 $as_echo_n "(cached) " >&6
12443 else
12444 # PORTME does your system automatically load deplibs for dlopen?
12445 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
12446 # For now, we just catch OSes we know something about -- in the
12447 # future, we'll try test this programmatically.
12448 lt_cv_sys_dlopen_deplibs=unknown
12449 case $host_os in
12450 aix3*|aix4.1.*|aix4.2.*)
12451 # Unknown whether this is true for these versions of AIX, but
12452 # we want this `case' here to explicitly catch those versions.
12453 lt_cv_sys_dlopen_deplibs=unknown
12454 ;;
12455 aix[4-9]*)
12456 lt_cv_sys_dlopen_deplibs=yes
12457 ;;
12458 amigaos*)
12459 case $host_cpu in
12460 powerpc)
12461 lt_cv_sys_dlopen_deplibs=no
12462 ;;
12463 esac
12464 ;;
12465 darwin*)
12466 # Assuming the user has installed a libdl from somewhere, this is true
12467 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
12468 lt_cv_sys_dlopen_deplibs=yes
12469 ;;
12470 freebsd* | dragonfly*)
12471 lt_cv_sys_dlopen_deplibs=yes
12472 ;;
12473 gnu* | linux* | k*bsd*-gnu | kopensolaris*-gnu)
12474 # GNU and its variants, using gnu ld.so (Glibc)
12475 lt_cv_sys_dlopen_deplibs=yes
12476 ;;
12477 hpux10*|hpux11*)
12478 lt_cv_sys_dlopen_deplibs=yes
12479 ;;
12480 interix*)
12481 lt_cv_sys_dlopen_deplibs=yes
12482 ;;
12483 irix[12345]*|irix6.[01]*)
12484 # Catch all versions of IRIX before 6.2, and indicate that we don't
12485 # know how it worked for any of those versions.
12486 lt_cv_sys_dlopen_deplibs=unknown
12487 ;;
12488 irix*)
12489 # The case above catches anything before 6.2, and it's known that
12490 # at 6.2 and later dlopen does load deplibs.
12491 lt_cv_sys_dlopen_deplibs=yes
12492 ;;
12493 netbsd*)
12494 lt_cv_sys_dlopen_deplibs=yes
12495 ;;
12496 openbsd*)
12497 lt_cv_sys_dlopen_deplibs=yes
12498 ;;
12499 osf[1234]*)
12500 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
12501 # it did *not* use an RPATH in a shared library to find objects the
12502 # library depends on, so we explicitly say `no'.
12503 lt_cv_sys_dlopen_deplibs=no
12504 ;;
12505 osf5.0|osf5.0a|osf5.1)
12506 # dlopen *does* load deplibs and with the right loader patch applied
12507 # it even uses RPATH in a shared library to search for shared objects
12508 # that the library depends on, but there's no easy way to know if that
12509 # patch is installed. Since this is the case, all we can really
12510 # say is unknown -- it depends on the patch being installed. If
12511 # it is, this changes to `yes'. Without it, it would be `no'.
12512 lt_cv_sys_dlopen_deplibs=unknown
12513 ;;
12514 osf*)
12515 # the two cases above should catch all versions of osf <= 5.1. Read
12516 # the comments above for what we know about them.
12517 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
12518 # is used to find them so we can finally say `yes'.
12519 lt_cv_sys_dlopen_deplibs=yes
12520 ;;
12521 qnx*)
12522 lt_cv_sys_dlopen_deplibs=yes
12523 ;;
12524 solaris*)
12525 lt_cv_sys_dlopen_deplibs=yes
12526 ;;
12527 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12528 libltdl_cv_sys_dlopen_deplibs=yes
12529 ;;
12530 esac
12531
12532 fi
12533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlopen_deplibs" >&5
12534 $as_echo "$lt_cv_sys_dlopen_deplibs" >&6; }
12535 if test "$lt_cv_sys_dlopen_deplibs" != yes; then
12536
12537 $as_echo "#define LTDL_DLOPEN_DEPLIBS 1" >>confdefs.h
12538
12539 fi
12540
12541 :
12542
12543 for ac_header in argz.h
12544 do :
12545 ac_fn_c_check_header_compile "$LINENO" "argz.h" "ac_cv_header_argz_h" "$ac_includes_default
12546 "
12547 if test "x$ac_cv_header_argz_h" = xyes; then :
12548 cat >>confdefs.h <<_ACEOF
12549 #define HAVE_ARGZ_H 1
12550 _ACEOF
12551
12552 fi
12553
12554 done
12555
12556
12557 ac_fn_c_check_type "$LINENO" "error_t" "ac_cv_type_error_t" "#if defined(HAVE_ARGZ_H)
12558 # include <argz.h>
12559 #endif
12560 "
12561 if test "x$ac_cv_type_error_t" = xyes; then :
12562
12563 cat >>confdefs.h <<_ACEOF
12564 #define HAVE_ERROR_T 1
12565 _ACEOF
12566
12567
12568 else
12569
12570 $as_echo "#define error_t int" >>confdefs.h
12571
12572
12573 $as_echo "#define __error_t_defined 1" >>confdefs.h
12574
12575 fi
12576
12577
12578 ARGZ_H=
12579 for ac_func in argz_add argz_append argz_count argz_create_sep argz_insert \
12580 argz_next argz_stringify
12581 do :
12582 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12583 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12584 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12585 cat >>confdefs.h <<_ACEOF
12586 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12587 _ACEOF
12588
12589 else
12590 ARGZ_H=argz.h;
12591
12592 _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
12593
12594 fi
12595 done
12596
12597
12598 if test -z "$ARGZ_H"; then :
12599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if argz actually works" >&5
12600 $as_echo_n "checking if argz actually works... " >&6; }
12601 if ${lt_cv_sys_argz_works+:} false; then :
12602 $as_echo_n "(cached) " >&6
12603 else
12604 case $host_os in #(
12605 *cygwin*)
12606 lt_cv_sys_argz_works=no
12607 if test "$cross_compiling" != no; then
12608 lt_cv_sys_argz_works="guessing no"
12609 else
12610 lt_sed_extract_leading_digits='s/^\([0-9\.]*\).*/\1/'
12611 save_IFS=$IFS
12612 IFS=-.
12613 set x `uname -r | sed -e "$lt_sed_extract_leading_digits"`
12614 IFS=$save_IFS
12615 lt_os_major=${2-0}
12616 lt_os_minor=${3-0}
12617 lt_os_micro=${4-0}
12618 if test "$lt_os_major" -gt 1 \
12619 || { test "$lt_os_major" -eq 1 \
12620 && { test "$lt_os_minor" -gt 5 \
12621 || { test "$lt_os_minor" -eq 5 \
12622 && test "$lt_os_micro" -gt 24; }; }; }; then
12623 lt_cv_sys_argz_works=yes
12624 fi
12625 fi
12626 ;; #(
12627 *) lt_cv_sys_argz_works=yes ;;
12628 esac
12629 fi
12630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_argz_works" >&5
12631 $as_echo "$lt_cv_sys_argz_works" >&6; }
12632 if test "$lt_cv_sys_argz_works" = yes; then :
12633
12634 $as_echo "#define HAVE_WORKING_ARGZ 1" >>confdefs.h
12635
12636 else
12637 ARGZ_H=argz.h
12638
12639
12640 _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
12641
12642 fi
12643 fi
12644
12645
12646
12647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libtool supports -dlopen/-dlpreopen" >&5
12648 $as_echo_n "checking whether libtool supports -dlopen/-dlpreopen... " >&6; }
12649 if ${libltdl_cv_preloaded_symbols+:} false; then :
12650 $as_echo_n "(cached) " >&6
12651 else
12652 if test -n "$lt_cv_sys_global_symbol_pipe"; then
12653 libltdl_cv_preloaded_symbols=yes
12654 else
12655 libltdl_cv_preloaded_symbols=no
12656 fi
12657
12658 fi
12659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_preloaded_symbols" >&5
12660 $as_echo "$libltdl_cv_preloaded_symbols" >&6; }
12661 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
12662
12663 $as_echo "#define HAVE_PRELOADED_SYMBOLS 1" >>confdefs.h
12664
12665 fi
12666
12667 # Set options
12668
12669
12670
12671
12672
12673
12674
12675
12676
12677
12678
12679 # Check whether --with-included_ltdl was given.
12680 if test "${with_included_ltdl+set}" = set; then :
12681 withval=$with_included_ltdl;
12682 fi
12683
12684
12685 if test "x$with_included_ltdl" != xyes; then
12686 # We are not being forced to use the included libltdl sources, so
12687 # decide whether there is a useful installed version we can use.
12688 ac_fn_c_check_header_compile "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default
12689
12690 "
12691 if test "x$ac_cv_header_ltdl_h" = xyes; then :
12692 ac_fn_c_check_decl "$LINENO" "lt_dlinterface_register" "ac_cv_have_decl_lt_dlinterface_register" "$ac_includes_default
12693 #include <ltdl.h>
12694 "
12695 if test "x$ac_cv_have_decl_lt_dlinterface_register" = xyes; then :
12696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dladvise_preload in -lltdl" >&5
12697 $as_echo_n "checking for lt_dladvise_preload in -lltdl... " >&6; }
12698 if ${ac_cv_lib_ltdl_lt_dladvise_preload+:} false; then :
12699 $as_echo_n "(cached) " >&6
12700 else
12701 ac_check_lib_save_LIBS=$LIBS
12702 LIBS="-lltdl $LIBS"
12703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12704 /* end confdefs.h. */
12705
12706 /* Override any GCC internal prototype to avoid an error.
12707 Use char because int might match the return type of a GCC
12708 builtin and then its argument prototype would still apply. */
12709 #ifdef __cplusplus
12710 extern "C"
12711 #endif
12712 char lt_dladvise_preload ();
12713 int
12714 main ()
12715 {
12716 return lt_dladvise_preload ();
12717 ;
12718 return 0;
12719 }
12720 _ACEOF
12721 if ac_fn_c_try_link "$LINENO"; then :
12722 ac_cv_lib_ltdl_lt_dladvise_preload=yes
12723 else
12724 ac_cv_lib_ltdl_lt_dladvise_preload=no
12725 fi
12726 rm -f core conftest.err conftest.$ac_objext \
12727 conftest$ac_exeext conftest.$ac_ext
12728 LIBS=$ac_check_lib_save_LIBS
12729 fi
12730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dladvise_preload" >&5
12731 $as_echo "$ac_cv_lib_ltdl_lt_dladvise_preload" >&6; }
12732 if test "x$ac_cv_lib_ltdl_lt_dladvise_preload" = xyes; then :
12733 with_included_ltdl=no
12734 else
12735 with_included_ltdl=yes
12736 fi
12737
12738 else
12739 with_included_ltdl=yes
12740 fi
12741
12742 else
12743 with_included_ltdl=yes
12744 fi
12745
12746
12747 fi
12748
12749
12750
12751
12752 # Check whether --with-ltdl_include was given.
12753 if test "${with_ltdl_include+set}" = set; then :
12754 withval=$with_ltdl_include;
12755 fi
12756
12757
12758 if test -n "$with_ltdl_include"; then
12759 if test -f "$with_ltdl_include/ltdl.h"; then :
12760 else
12761 as_fn_error $? "invalid ltdl include directory: \`$with_ltdl_include'" "$LINENO" 5
12762 fi
12763 else
12764 with_ltdl_include=no
12765 fi
12766
12767
12768 # Check whether --with-ltdl_lib was given.
12769 if test "${with_ltdl_lib+set}" = set; then :
12770 withval=$with_ltdl_lib;
12771 fi
12772
12773
12774 if test -n "$with_ltdl_lib"; then
12775 if test -f "$with_ltdl_lib/libltdl.la"; then :
12776 else
12777 as_fn_error $? "invalid ltdl library directory: \`$with_ltdl_lib'" "$LINENO" 5
12778 fi
12779 else
12780 with_ltdl_lib=no
12781 fi
12782
12783 case ,$with_included_ltdl,$with_ltdl_include,$with_ltdl_lib, in
12784 ,yes,no,no,)
12785 case $enable_ltdl_convenience in
12786 no) as_fn_error $? "this package needs a convenience libltdl" "$LINENO" 5 ;;
12787 "") enable_ltdl_convenience=yes
12788 ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
12789 esac
12790 LIBLTDL='${top_build_prefix}'"${lt_ltdl_dir+$lt_ltdl_dir/}libltdlc.la"
12791 LTDLDEPS=$LIBLTDL
12792 LTDLINCL='-I${top_srcdir}'"${lt_ltdl_dir+/$lt_ltdl_dir}"
12793
12794
12795
12796
12797
12798 # For backwards non-gettext consistent compatibility...
12799 INCLTDL="$LTDLINCL"
12800
12801
12802 ;;
12803 ,no,no,no,)
12804 # If the included ltdl is not to be used, then use the
12805 # preinstalled libltdl we found.
12806
12807 $as_echo "#define HAVE_LTDL 1" >>confdefs.h
12808
12809 LIBLTDL=-lltdl
12810 LTDLDEPS=
12811 LTDLINCL=
12812 ;;
12813 ,no*,no,*)
12814 as_fn_error $? "\`--with-ltdl-include' and \`--with-ltdl-lib' options must be used together" "$LINENO" 5
12815 ;;
12816 *) with_included_ltdl=no
12817 LIBLTDL="-L$with_ltdl_lib -lltdl"
12818 LTDLDEPS=
12819 LTDLINCL="-I$with_ltdl_include"
12820 ;;
12821 esac
12822 INCLTDL="$LTDLINCL"
12823
12824 # Report our decision...
12825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl headers" >&5
12826 $as_echo_n "checking where to find libltdl headers... " >&6; }
12827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LTDLINCL" >&5
12828 $as_echo "$LTDLINCL" >&6; }
12829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl library" >&5
12830 $as_echo_n "checking where to find libltdl library... " >&6; }
12831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBLTDL" >&5
12832 $as_echo "$LIBLTDL" >&6; }
12833
12834
12835
12836 # Check whether --enable-ltdl-install was given.
12837 if test "${enable_ltdl_install+set}" = set; then :
12838 enableval=$enable_ltdl_install;
12839 fi
12840
12841
12842 case ,${enable_ltdl_install},${enable_ltdl_convenience} in
12843 *yes*) ;;
12844 *) enable_ltdl_convenience=yes ;;
12845 esac
12846
12847 if test x"${enable_ltdl_install-no}" != xno; then
12848 INSTALL_LTDL_TRUE=
12849 INSTALL_LTDL_FALSE='#'
12850 else
12851 INSTALL_LTDL_TRUE='#'
12852 INSTALL_LTDL_FALSE=
12853 fi
12854
12855 if test x"${enable_ltdl_convenience-no}" != xno; then
12856 CONVENIENCE_LTDL_TRUE=
12857 CONVENIENCE_LTDL_FALSE='#'
12858 else
12859 CONVENIENCE_LTDL_TRUE='#'
12860 CONVENIENCE_LTDL_FALSE=
12861 fi
12862
12863
12864
12865
12866
12867
12868 # In order that ltdl.c can compile, find out the first AC_CONFIG_HEADERS
12869 # the user used. This is so that ltdl.h can pick up the parent projects
12870 # config.h file, The first file in AC_CONFIG_HEADERS must contain the
12871 # definitions required by ltdl.c.
12872 # FIXME: Remove use of undocumented AC_LIST_HEADERS (2.59 compatibility).
12873
12874
12875
12876 for ac_header in unistd.h dl.h sys/dl.h dld.h mach-o/dyld.h dirent.h
12877 do :
12878 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12879 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
12880 "
12881 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12882 cat >>confdefs.h <<_ACEOF
12883 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12884 _ACEOF
12885
12886 fi
12887
12888 done
12889
12890
12891 for ac_func in closedir opendir readdir
12892 do :
12893 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12894 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12895 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12896 cat >>confdefs.h <<_ACEOF
12897 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12898 _ACEOF
12899
12900 else
12901
12902
12903 _LT_LIBOBJS="$_LT_LIBOBJS lt__dirent.$ac_objext"
12904
12905 fi
12906 done
12907
12908 for ac_func in strlcat strlcpy
12909 do :
12910 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12911 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12912 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12913 cat >>confdefs.h <<_ACEOF
12914 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12915 _ACEOF
12916
12917 else
12918
12919
12920 _LT_LIBOBJS="$_LT_LIBOBJS lt__strl.$ac_objext"
12921
12922 fi
12923 done
12924
12925
12926
12927 cat >>confdefs.h <<_ACEOF
12928 #define LT_LIBEXT "$libext"
12929 _ACEOF
12930
12931
12932 name=
12933 eval "lt_libprefix=\"$libname_spec\""
12934
12935 cat >>confdefs.h <<_ACEOF
12936 #define LT_LIBPREFIX "$lt_libprefix"
12937 _ACEOF
12938
12939
12940 name=ltdl
12941 eval "LTDLOPEN=\"$libname_spec\""
12942
12943
12944
12945
12946
12947
12948
12949
12950 # Only expand once:
12951
12952
12953 LIBTOOL="$LIBTOOL --silent"
12954
12955 # Checks for libraries.
12956
12957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
12958 $as_echo_n "checking for library containing socket... " >&6; }
12959 if ${ac_cv_search_socket+:} false; then :
12960 $as_echo_n "(cached) " >&6
12961 else
12962 ac_func_search_save_LIBS=$LIBS
12963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12964 /* end confdefs.h. */
12965
12966 /* Override any GCC internal prototype to avoid an error.
12967 Use char because int might match the return type of a GCC
12968 builtin and then its argument prototype would still apply. */
12969 #ifdef __cplusplus
12970 extern "C"
12971 #endif
12972 char socket ();
12973 int
12974 main ()
12975 {
12976 return socket ();
12977 ;
12978 return 0;
12979 }
12980 _ACEOF
12981 for ac_lib in '' socket; do
12982 if test -z "$ac_lib"; then
12983 ac_res="none required"
12984 else
12985 ac_res=-l$ac_lib
12986 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12987 fi
12988 if ac_fn_c_try_link "$LINENO"; then :
12989 ac_cv_search_socket=$ac_res
12990 fi
12991 rm -f core conftest.err conftest.$ac_objext \
12992 conftest$ac_exeext
12993 if ${ac_cv_search_socket+:} false; then :
12994 break
12995 fi
12996 done
12997 if ${ac_cv_search_socket+:} false; then :
12998
12999 else
13000 ac_cv_search_socket=no
13001 fi
13002 rm conftest.$ac_ext
13003 LIBS=$ac_func_search_save_LIBS
13004 fi
13005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
13006 $as_echo "$ac_cv_search_socket" >&6; }
13007 ac_res=$ac_cv_search_socket
13008 if test "$ac_res" != no; then :
13009 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13010
13011 else
13012 as_fn_error $? "socket library not found" "$LINENO" 5
13013 fi
13014
13015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_ntoa" >&5
13016 $as_echo_n "checking for library containing inet_ntoa... " >&6; }
13017 if ${ac_cv_search_inet_ntoa+:} false; then :
13018 $as_echo_n "(cached) " >&6
13019 else
13020 ac_func_search_save_LIBS=$LIBS
13021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13022 /* end confdefs.h. */
13023
13024 /* Override any GCC internal prototype to avoid an error.
13025 Use char because int might match the return type of a GCC
13026 builtin and then its argument prototype would still apply. */
13027 #ifdef __cplusplus
13028 extern "C"
13029 #endif
13030 char inet_ntoa ();
13031 int
13032 main ()
13033 {
13034 return inet_ntoa ();
13035 ;
13036 return 0;
13037 }
13038 _ACEOF
13039 for ac_lib in '' nsl; do
13040 if test -z "$ac_lib"; then
13041 ac_res="none required"
13042 else
13043 ac_res=-l$ac_lib
13044 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13045 fi
13046 if ac_fn_c_try_link "$LINENO"; then :
13047 ac_cv_search_inet_ntoa=$ac_res
13048 fi
13049 rm -f core conftest.err conftest.$ac_objext \
13050 conftest$ac_exeext
13051 if ${ac_cv_search_inet_ntoa+:} false; then :
13052 break
13053 fi
13054 done
13055 if ${ac_cv_search_inet_ntoa+:} false; then :
13056
13057 else
13058 ac_cv_search_inet_ntoa=no
13059 fi
13060 rm conftest.$ac_ext
13061 LIBS=$ac_func_search_save_LIBS
13062 fi
13063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_ntoa" >&5
13064 $as_echo "$ac_cv_search_inet_ntoa" >&6; }
13065 ac_res=$ac_cv_search_inet_ntoa
13066 if test "$ac_res" != no; then :
13067 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13068
13069 fi
13070
13071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_aton" >&5
13072 $as_echo_n "checking for library containing inet_aton... " >&6; }
13073 if ${ac_cv_search_inet_aton+:} false; then :
13074 $as_echo_n "(cached) " >&6
13075 else
13076 ac_func_search_save_LIBS=$LIBS
13077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13078 /* end confdefs.h. */
13079
13080 /* Override any GCC internal prototype to avoid an error.
13081 Use char because int might match the return type of a GCC
13082 builtin and then its argument prototype would still apply. */
13083 #ifdef __cplusplus
13084 extern "C"
13085 #endif
13086 char inet_aton ();
13087 int
13088 main ()
13089 {
13090 return inet_aton ();
13091 ;
13092 return 0;
13093 }
13094 _ACEOF
13095 for ac_lib in '' resolv; do
13096 if test -z "$ac_lib"; then
13097 ac_res="none required"
13098 else
13099 ac_res=-l$ac_lib
13100 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13101 fi
13102 if ac_fn_c_try_link "$LINENO"; then :
13103 ac_cv_search_inet_aton=$ac_res
13104 fi
13105 rm -f core conftest.err conftest.$ac_objext \
13106 conftest$ac_exeext
13107 if ${ac_cv_search_inet_aton+:} false; then :
13108 break
13109 fi
13110 done
13111 if ${ac_cv_search_inet_aton+:} false; then :
13112
13113 else
13114 ac_cv_search_inet_aton=no
13115 fi
13116 rm conftest.$ac_ext
13117 LIBS=$ac_func_search_save_LIBS
13118 fi
13119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_aton" >&5
13120 $as_echo "$ac_cv_search_inet_aton" >&6; }
13121 ac_res=$ac_cv_search_inet_aton
13122 if test "$ac_res" != no; then :
13123 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13124
13125 fi
13126
13127 for ac_func in inet_aton inet_ntop inet_pton
13128 do :
13129 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13130 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13131 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13132 cat >>confdefs.h <<_ACEOF
13133 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13134 _ACEOF
13135
13136 fi
13137 done
13138
13139 ac_fn_c_check_type "$LINENO" "struct sockaddr_in" "ac_cv_type_struct_sockaddr_in" "#include <sys/types.h>
13140 #include <sys/socket.h>
13141 #include <netdb.h>
13142
13143 "
13144 if test "x$ac_cv_type_struct_sockaddr_in" = xyes; then :
13145
13146 cat >>confdefs.h <<_ACEOF
13147 #define HAVE_STRUCT_SOCKADDR_IN 1
13148 _ACEOF
13149
13150
13151 fi
13152 ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "#include <sys/types.h>
13153 #include <sys/socket.h>
13154 #include <netdb.h>
13155
13156 "
13157 if test "x$ac_cv_type_struct_sockaddr_storage" = xyes; then :
13158
13159 cat >>confdefs.h <<_ACEOF
13160 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
13161 _ACEOF
13162
13163
13164 fi
13165 ac_fn_c_check_type "$LINENO" "struct addrinfo" "ac_cv_type_struct_addrinfo" "#include <sys/types.h>
13166 #include <sys/socket.h>
13167 #include <netdb.h>
13168
13169 "
13170 if test "x$ac_cv_type_struct_addrinfo" = xyes; then :
13171
13172 cat >>confdefs.h <<_ACEOF
13173 #define HAVE_STRUCT_ADDRINFO 1
13174 _ACEOF
13175
13176
13177 fi
13178
13179 ac_fn_c_check_member "$LINENO" "struct sockaddr_in" "sin_len" "ac_cv_member_struct_sockaddr_in_sin_len" "#include <sys/types.h>
13180 <sys/socket.h>
13181 "
13182 if test "x$ac_cv_member_struct_sockaddr_in_sin_len" = xyes; then :
13183
13184 cat >>confdefs.h <<_ACEOF
13185 #define HAVE_STRUCT_SOCKADDR_IN_SIN_LEN 1
13186 _ACEOF
13187
13188
13189 fi
13190
13191
13192
13193 ac_fn_c_check_type "$LINENO" "struct sockaddr_in6" "ac_cv_type_struct_sockaddr_in6" "#include <netinet/in.h>
13194 "
13195 if test "x$ac_cv_type_struct_sockaddr_in6" = xyes; then :
13196
13197 $as_echo "#define IPV6 1" >>confdefs.h
13198
13199 fi
13200
13201
13202
13203 # Checks for typedefs, structures, and compiler characteristics.
13204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
13205 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
13206 if ${ac_cv_c_bigendian+:} false; then :
13207 $as_echo_n "(cached) " >&6
13208 else
13209 ac_cv_c_bigendian=unknown
13210 # See if we're dealing with a universal compiler.
13211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13212 /* end confdefs.h. */
13213 #ifndef __APPLE_CC__
13214 not a universal capable compiler
13215 #endif
13216 typedef int dummy;
13217
13218 _ACEOF
13219 if ac_fn_c_try_compile "$LINENO"; then :
13220
13221 # Check for potential -arch flags. It is not universal unless
13222 # there are at least two -arch flags with different values.
13223 ac_arch=
13224 ac_prev=
13225 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
13226 if test -n "$ac_prev"; then
13227 case $ac_word in
13228 i?86 | x86_64 | ppc | ppc64)
13229 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
13230 ac_arch=$ac_word
13231 else
13232 ac_cv_c_bigendian=universal
13233 break
13234 fi
13235 ;;
13236 esac
13237 ac_prev=
13238 elif test "x$ac_word" = "x-arch"; then
13239 ac_prev=arch
13240 fi
13241 done
13242 fi
13243 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13244 if test $ac_cv_c_bigendian = unknown; then
13245 # See if sys/param.h defines the BYTE_ORDER macro.
13246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13247 /* end confdefs.h. */
13248 #include <sys/types.h>
13249 #include <sys/param.h>
13250
13251 int
13252 main ()
13253 {
13254 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
13255 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
13256 && LITTLE_ENDIAN)
13257 bogus endian macros
13258 #endif
13259
13260 ;
13261 return 0;
13262 }
13263 _ACEOF
13264 if ac_fn_c_try_compile "$LINENO"; then :
13265 # It does; now see whether it defined to BIG_ENDIAN or not.
13266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13267 /* end confdefs.h. */
13268 #include <sys/types.h>
13269 #include <sys/param.h>
13270
13271 int
13272 main ()
13273 {
13274 #if BYTE_ORDER != BIG_ENDIAN
13275 not big endian
13276 #endif
13277
13278 ;
13279 return 0;
13280 }
13281 _ACEOF
13282 if ac_fn_c_try_compile "$LINENO"; then :
13283 ac_cv_c_bigendian=yes
13284 else
13285 ac_cv_c_bigendian=no
13286 fi
13287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13288 fi
13289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13290 fi
13291 if test $ac_cv_c_bigendian = unknown; then
13292 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
13293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13294 /* end confdefs.h. */
13295 #include <limits.h>
13296
13297 int
13298 main ()
13299 {
13300 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
13301 bogus endian macros
13302 #endif
13303
13304 ;
13305 return 0;
13306 }
13307 _ACEOF
13308 if ac_fn_c_try_compile "$LINENO"; then :
13309 # It does; now see whether it defined to _BIG_ENDIAN or not.
13310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13311 /* end confdefs.h. */
13312 #include <limits.h>
13313
13314 int
13315 main ()
13316 {
13317 #ifndef _BIG_ENDIAN
13318 not big endian
13319 #endif
13320
13321 ;
13322 return 0;
13323 }
13324 _ACEOF
13325 if ac_fn_c_try_compile "$LINENO"; then :
13326 ac_cv_c_bigendian=yes
13327 else
13328 ac_cv_c_bigendian=no
13329 fi
13330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13331 fi
13332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13333 fi
13334 if test $ac_cv_c_bigendian = unknown; then
13335 # Compile a test program.
13336 if test "$cross_compiling" = yes; then :
13337 # Try to guess by grepping values from an object file.
13338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13339 /* end confdefs.h. */
13340 short int ascii_mm[] =
13341 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
13342 short int ascii_ii[] =
13343 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
13344 int use_ascii (int i) {
13345 return ascii_mm[i] + ascii_ii[i];
13346 }
13347 short int ebcdic_ii[] =
13348 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
13349 short int ebcdic_mm[] =
13350 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
13351 int use_ebcdic (int i) {
13352 return ebcdic_mm[i] + ebcdic_ii[i];
13353 }
13354 extern int foo;
13355
13356 int
13357 main ()
13358 {
13359 return use_ascii (foo) == use_ebcdic (foo);
13360 ;
13361 return 0;
13362 }
13363 _ACEOF
13364 if ac_fn_c_try_compile "$LINENO"; then :
13365 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
13366 ac_cv_c_bigendian=yes
13367 fi
13368 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
13369 if test "$ac_cv_c_bigendian" = unknown; then
13370 ac_cv_c_bigendian=no
13371 else
13372 # finding both strings is unlikely to happen, but who knows?
13373 ac_cv_c_bigendian=unknown
13374 fi
13375 fi
13376 fi
13377 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13378 else
13379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13380 /* end confdefs.h. */
13381 $ac_includes_default
13382 int
13383 main ()
13384 {
13385
13386 /* Are we little or big endian? From Harbison&Steele. */
13387 union
13388 {
13389 long int l;
13390 char c[sizeof (long int)];
13391 } u;
13392 u.l = 1;
13393 return u.c[sizeof (long int) - 1] == 1;
13394
13395 ;
13396 return 0;
13397 }
13398 _ACEOF
13399 if ac_fn_c_try_run "$LINENO"; then :
13400 ac_cv_c_bigendian=no
13401 else
13402 ac_cv_c_bigendian=yes
13403 fi
13404 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13405 conftest.$ac_objext conftest.beam conftest.$ac_ext
13406 fi
13407
13408 fi
13409 fi
13410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
13411 $as_echo "$ac_cv_c_bigendian" >&6; }
13412 case $ac_cv_c_bigendian in #(
13413 yes)
13414 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
13415 ;; #(
13416 no)
13417 ;; #(
13418 universal)
13419
13420 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
13421
13422 ;; #(
13423 *)
13424 as_fn_error $? "unknown endianness
13425 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
13426 esac
13427
13428
13429 # Checks for library functions.
13430
13431
13432
13433 for ac_func in $ac_func_list
13434 do :
13435 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13436 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13437 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13438 cat >>confdefs.h <<_ACEOF
13439 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13440 _ACEOF
13441
13442 fi
13443 done
13444
13445
13446
13447
13448
13449
13450
13451
13452
13453
13454
13455
13456
13457
13458
13459 # Checks for header files.
13460
13461
13462
13463 for ac_header in $ac_header_list
13464 do :
13465 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13466 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
13467 "
13468 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13469 cat >>confdefs.h <<_ACEOF
13470 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13471 _ACEOF
13472
13473 fi
13474
13475 done
13476
13477
13478
13479
13480
13481
13482
13483
13484
13485
13486
13487
13488
13489
13490
13491
13492
13493
13494
13495
13496
13497
13498
13499
13500
13501
13502
13503 # check for /dev/null so we can use it to hold evil fd's
13504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/null" >&5
13505 $as_echo_n "checking for /dev/null... " >&6; }
13506 if test -c /dev/null; then :
13507
13508
13509 $as_echo "#define PATH_DEVNULL \"/dev/null\"" >>confdefs.h
13510
13511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13512 $as_echo "yes" >&6; }
13513 else
13514
13515
13516 $as_echo "#define PATH_DEVNULL \"devnull.log\"" >>confdefs.h
13517
13518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - using devnull.log" >&5
13519 $as_echo "no - using devnull.log" >&6; }
13520 fi
13521
13522
13523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crypt" >&5
13524 $as_echo_n "checking for library containing crypt... " >&6; }
13525 if ${ac_cv_search_crypt+:} false; then :
13526 $as_echo_n "(cached) " >&6
13527 else
13528 ac_func_search_save_LIBS=$LIBS
13529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13530 /* end confdefs.h. */
13531
13532 /* Override any GCC internal prototype to avoid an error.
13533 Use char because int might match the return type of a GCC
13534 builtin and then its argument prototype would still apply. */
13535 #ifdef __cplusplus
13536 extern "C"
13537 #endif
13538 char crypt ();
13539 int
13540 main ()
13541 {
13542 return crypt ();
13543 ;
13544 return 0;
13545 }
13546 _ACEOF
13547 for ac_lib in '' crypt; do
13548 if test -z "$ac_lib"; then
13549 ac_res="none required"
13550 else
13551 ac_res=-l$ac_lib
13552 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13553 fi
13554 if ac_fn_c_try_link "$LINENO"; then :
13555 ac_cv_search_crypt=$ac_res
13556 fi
13557 rm -f core conftest.err conftest.$ac_objext \
13558 conftest$ac_exeext
13559 if ${ac_cv_search_crypt+:} false; then :
13560 break
13561 fi
13562 done
13563 if ${ac_cv_search_crypt+:} false; then :
13564
13565 else
13566 ac_cv_search_crypt=no
13567 fi
13568 rm conftest.$ac_ext
13569 LIBS=$ac_func_search_save_LIBS
13570 fi
13571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypt" >&5
13572 $as_echo "$ac_cv_search_crypt" >&6; }
13573 ac_res=$ac_cv_search_crypt
13574 if test "$ac_res" != no; then :
13575 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13576
13577 fi
13578
13579
13580
13581
13582 # Check whether --with-zlib-path was given.
13583 if test "${with_zlib_path+set}" = set; then :
13584 withval=$with_zlib_path; LDFLAGS="-L$withval $LDFLAGS"
13585 fi
13586
13587
13588 # Check whether --enable-zlib was given.
13589 if test "${enable_zlib+set}" = set; then :
13590 enableval=$enable_zlib; zlib=$enableval
13591 else
13592 zlib=yes
13593 fi
13594
13595
13596 if test "$zlib" = "yes"; then :
13597
13598 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
13599 if test "x$ac_cv_header_zlib_h" = xyes; then :
13600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zlibVersion in -lz" >&5
13601 $as_echo_n "checking for zlibVersion in -lz... " >&6; }
13602 if ${ac_cv_lib_z_zlibVersion+:} false; then :
13603 $as_echo_n "(cached) " >&6
13604 else
13605 ac_check_lib_save_LIBS=$LIBS
13606 LIBS="-lz $LIBS"
13607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13608 /* end confdefs.h. */
13609
13610 /* Override any GCC internal prototype to avoid an error.
13611 Use char because int might match the return type of a GCC
13612 builtin and then its argument prototype would still apply. */
13613 #ifdef __cplusplus
13614 extern "C"
13615 #endif
13616 char zlibVersion ();
13617 int
13618 main ()
13619 {
13620 return zlibVersion ();
13621 ;
13622 return 0;
13623 }
13624 _ACEOF
13625 if ac_fn_c_try_link "$LINENO"; then :
13626 ac_cv_lib_z_zlibVersion=yes
13627 else
13628 ac_cv_lib_z_zlibVersion=no
13629 fi
13630 rm -f core conftest.err conftest.$ac_objext \
13631 conftest$ac_exeext conftest.$ac_ext
13632 LIBS=$ac_check_lib_save_LIBS
13633 fi
13634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_zlibVersion" >&5
13635 $as_echo "$ac_cv_lib_z_zlibVersion" >&6; }
13636 if test "x$ac_cv_lib_z_zlibVersion" = xyes; then :
13637
13638 LIBS="-lz $LIBS"
13639
13640 $as_echo "#define HAVE_LIBZ 1" >>confdefs.h
13641
13642
13643 else
13644 zlib=no
13645 fi
13646
13647
13648 else
13649 zlib=no
13650 fi
13651
13652
13653
13654 fi
13655
13656
13657 # Check whether --with-libpcre-path was given.
13658 if test "${with_libpcre_path+set}" = set; then :
13659 withval=$with_libpcre_path; LDFLAGS="-L$withval $LDFLAGS"
13660 fi
13661
13662
13663 # Check whether --enable-libpcre was given.
13664 if test "${enable_libpcre+set}" = set; then :
13665 enableval=$enable_libpcre; libpcre=$enableval
13666 else
13667 libpcre=yes
13668 fi
13669
13670
13671 if test "$libpcre" = "yes"; then :
13672
13673 ac_fn_c_check_header_mongrel "$LINENO" "pcre.h" "ac_cv_header_pcre_h" "$ac_includes_default"
13674 if test "x$ac_cv_header_pcre_h" = xyes; then :
13675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcre_study in -lpcre" >&5
13676 $as_echo_n "checking for pcre_study in -lpcre... " >&6; }
13677 if ${ac_cv_lib_pcre_pcre_study+:} false; then :
13678 $as_echo_n "(cached) " >&6
13679 else
13680 ac_check_lib_save_LIBS=$LIBS
13681 LIBS="-lpcre $LIBS"
13682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13683 /* end confdefs.h. */
13684
13685 /* Override any GCC internal prototype to avoid an error.
13686 Use char because int might match the return type of a GCC
13687 builtin and then its argument prototype would still apply. */
13688 #ifdef __cplusplus
13689 extern "C"
13690 #endif
13691 char pcre_study ();
13692 int
13693 main ()
13694 {
13695 return pcre_study ();
13696 ;
13697 return 0;
13698 }
13699 _ACEOF
13700 if ac_fn_c_try_link "$LINENO"; then :
13701 ac_cv_lib_pcre_pcre_study=yes
13702 else
13703 ac_cv_lib_pcre_pcre_study=no
13704 fi
13705 rm -f core conftest.err conftest.$ac_objext \
13706 conftest$ac_exeext conftest.$ac_ext
13707 LIBS=$ac_check_lib_save_LIBS
13708 fi
13709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pcre_pcre_study" >&5
13710 $as_echo "$ac_cv_lib_pcre_pcre_study" >&6; }
13711 if test "x$ac_cv_lib_pcre_pcre_study" = xyes; then :
13712
13713 LIBS="-lpcre $LIBS"
13714
13715 $as_echo "#define HAVE_LIBPCRE 1" >>confdefs.h
13716
13717
13718 else
13719 libpcre=no
13720 fi
13721
13722
13723 else
13724 libpcre=no
13725 fi
13726
13727
13728
13729 fi
13730 if test "$libpcre" = yes; then
13731 ENABLE_PCRE_TRUE=
13732 ENABLE_PCRE_FALSE='#'
13733 else
13734 ENABLE_PCRE_TRUE='#'
13735 ENABLE_PCRE_FALSE=
13736 fi
13737
13738
13739
13740 # Check whether --enable-openssl was given.
13741 if test "${enable_openssl+set}" = set; then :
13742 enableval=$enable_openssl; cf_enable_openssl=$enableval
13743 else
13744 cf_enable_openssl="auto"
13745 fi
13746
13747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL" >&5
13748 $as_echo_n "checking for OpenSSL... " >&6; }
13749 if test "$cf_enable_openssl" != "no"; then
13750 cf_openssl_basedir=""
13751 if test "$cf_enable_openssl" != "auto" &&
13752 test "$cf_enable_openssl" != "yes"; then
13753 cf_openssl_basedir="${cf_enable_openssl}"
13754 else
13755 for dirs in /usr/local/ssl /usr/pkg /usr/local /usr/lib /usr/lib/ssl\
13756 /opt /opt/openssl /usr/local/openssl; do
13757 if test -f "${dirs}/include/openssl/opensslv.h"; then
13758 cf_openssl_basedir="${dirs}"
13759 break
13760 fi
13761 done
13762 unset dirs
13763 fi
13764
13765 if test ! -z "$cf_openssl_basedir"; then
13766 if test -f "${cf_openssl_basedir}/include/openssl/opensslv.h"; then
13767 CPPFLAGS="-I${cf_openssl_basedir}/include $CPPFLAGS"
13768 LDFLAGS="-L${cf_openssl_basedir}/lib $LDFLAGS"
13769 else
13770 cf_openssl_basedir=""
13771 fi
13772 else
13773 if test -f "/usr/include/openssl/opensslv.h"; then
13774 cf_openssl_basedir="/usr"
13775 fi
13776 fi
13777
13778 if test ! -z "$cf_openssl_basedir"; then
13779 LIBS="-lcrypto -lssl $LIBS"
13780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cf_openssl_basedir" >&5
13781 $as_echo "$cf_openssl_basedir" >&6; }
13782 cf_enable_openssl="yes"
13783
13784 $as_echo "#define HAVE_LIBCRYPTO 1" >>confdefs.h
13785
13786 else
13787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found. Please check your path." >&5
13788 $as_echo "not found. Please check your path." >&6; }
13789 cf_enable_openssl="no"
13790 fi
13791 unset cf_openssl_basedir
13792 else
13793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
13794 $as_echo "disabled" >&6; }
13795 fi
13796
13797 if test "$cf_enable_openssl" != "no"; then :
13798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL 0.9.7 or above" >&5
13799 $as_echo_n "checking for OpenSSL 0.9.7 or above... " >&6; }
13800 if test "$cross_compiling" = yes; then :
13801 cf_openssl_version_ok=no
13802 else
13803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13804 /* end confdefs.h. */
13805
13806
13807 #include <openssl/opensslv.h>
13808 #include <stdlib.h>
13809 int
13810 main ()
13811 {
13812 exit(!(OPENSSL_VERSION_NUMBER >= 0x00907000));
13813 ;
13814 return 0;
13815 }
13816 _ACEOF
13817 if ac_fn_c_try_run "$LINENO"; then :
13818 cf_openssl_version_ok=yes
13819 else
13820 cf_openssl_version_ok=no
13821 fi
13822 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13823 conftest.$ac_objext conftest.beam conftest.$ac_ext
13824 fi
13825
13826
13827 if test "$cf_openssl_version_ok" = "yes"; then :
13828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
13829 $as_echo "found" >&6; }
13830
13831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSA_free in -lcrypto" >&5
13832 $as_echo_n "checking for RSA_free in -lcrypto... " >&6; }
13833 if ${ac_cv_lib_crypto_RSA_free+:} false; then :
13834 $as_echo_n "(cached) " >&6
13835 else
13836 ac_check_lib_save_LIBS=$LIBS
13837 LIBS="-lcrypto $LIBS"
13838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13839 /* end confdefs.h. */
13840
13841 /* Override any GCC internal prototype to avoid an error.
13842 Use char because int might match the return type of a GCC
13843 builtin and then its argument prototype would still apply. */
13844 #ifdef __cplusplus
13845 extern "C"
13846 #endif
13847 char RSA_free ();
13848 int
13849 main ()
13850 {
13851 return RSA_free ();
13852 ;
13853 return 0;
13854 }
13855 _ACEOF
13856 if ac_fn_c_try_link "$LINENO"; then :
13857 ac_cv_lib_crypto_RSA_free=yes
13858 else
13859 ac_cv_lib_crypto_RSA_free=no
13860 fi
13861 rm -f core conftest.err conftest.$ac_objext \
13862 conftest$ac_exeext conftest.$ac_ext
13863 LIBS=$ac_check_lib_save_LIBS
13864 fi
13865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_RSA_free" >&5
13866 $as_echo "$ac_cv_lib_crypto_RSA_free" >&6; }
13867 if test "x$ac_cv_lib_crypto_RSA_free" = xyes; then :
13868 cat >>confdefs.h <<_ACEOF
13869 #define HAVE_LIBCRYPTO 1
13870 _ACEOF
13871
13872 LIBS="-lcrypto $LIBS"
13873
13874 fi
13875
13876 if test "$ac_cv_lib_crypto_RSA_free" = "yes"; then :
13877 for ac_func in EVP_bf_cfb \
13878 EVP_cast5_cfb \
13879 EVP_idea_cfb \
13880 EVP_rc5_32_12_16_cfb \
13881 EVP_des_ede3_cfb \
13882 EVP_des_cfb
13883 do :
13884 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13885 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13886 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13887 cat >>confdefs.h <<_ACEOF
13888 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13889 _ACEOF
13890
13891 fi
13892 done
13893
13894 fi
13895
13896 else
13897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - OpenSSL support disabled" >&5
13898 $as_echo "no - OpenSSL support disabled" >&6; }
13899 cf_enable_openssl="no"
13900 fi
13901 fi
13902
13903 if test "$cf_enable_openssl" = yes; then
13904 ENABLE_SSL_TRUE=
13905 ENABLE_SSL_FALSE='#'
13906 else
13907 ENABLE_SSL_TRUE='#'
13908 ENABLE_SSL_FALSE=
13909 fi
13910
13911
13912
13913 # Check whether --enable-assert was given.
13914 if test "${enable_assert+set}" = set; then :
13915 enableval=$enable_assert; assert=$enableval
13916 else
13917 assert=no
13918 fi
13919
13920
13921 if test "$assert" = "no"; then :
13922
13923 $as_echo "#define NDEBUG 1" >>confdefs.h
13924
13925 fi
13926
13927
13928 # Check whether --enable-small-net was given.
13929 if test "${enable_small_net+set}" = set; then :
13930 enableval=$enable_small_net; small_net=$enableval
13931 else
13932 small_net=no
13933 fi
13934
13935
13936 if test "$small_net" = "yes"; then :
13937
13938
13939 $as_echo "#define NICKNAMEHISTORYLENGTH 1500" >>confdefs.h
13940
13941
13942 $as_echo "#define CHANNEL_HEAP_SIZE 256" >>confdefs.h
13943
13944
13945 $as_echo "#define BAN_HEAP_SIZE 128" >>confdefs.h
13946
13947
13948 $as_echo "#define CLIENT_HEAP_SIZE 256" >>confdefs.h
13949
13950
13951 $as_echo "#define LCLIENT_HEAP_SIZE 128" >>confdefs.h
13952
13953
13954 $as_echo "#define DNODE_HEAP_SIZE 256" >>confdefs.h
13955
13956
13957 $as_echo "#define TOPIC_HEAP_SIZE 256" >>confdefs.h
13958
13959
13960 $as_echo "#define DBUF_HEAP_SIZE 64" >>confdefs.h
13961
13962
13963 $as_echo "#define AUTH_HEAP_SIZE 128" >>confdefs.h
13964
13965
13966 $as_echo "#define DNS_HEAP_SIZE 128" >>confdefs.h
13967
13968 else
13969
13970
13971
13972 $as_echo "#define NICKNAMEHISTORYLENGTH 15000" >>confdefs.h
13973
13974
13975 $as_echo "#define CHANNEL_HEAP_SIZE 1024" >>confdefs.h
13976
13977
13978 $as_echo "#define BAN_HEAP_SIZE 1024" >>confdefs.h
13979
13980
13981 $as_echo "#define CLIENT_HEAP_SIZE 1024" >>confdefs.h
13982
13983
13984 $as_echo "#define LCLIENT_HEAP_SIZE 512" >>confdefs.h
13985
13986
13987 $as_echo "#define DNODE_HEAP_SIZE 1024" >>confdefs.h
13988
13989
13990 $as_echo "#define TOPIC_HEAP_SIZE 1024" >>confdefs.h
13991
13992
13993 $as_echo "#define DBUF_HEAP_SIZE 512" >>confdefs.h
13994
13995
13996 $as_echo "#define AUTH_HEAP_SIZE 512" >>confdefs.h
13997
13998
13999 $as_echo "#define DNS_HEAP_SIZE 512" >>confdefs.h
14000
14001 fi
14002
14003
14004 # Argument processing.
14005
14006 desired_iopoll_mechanism="none"
14007 # Check whether --enable-kqueue was given.
14008 if test "${enable_kqueue+set}" = set; then :
14009 enableval=$enable_kqueue; desired_iopoll_mechanism="kqueue"
14010 fi
14011
14012 # Check whether --enable-epoll was given.
14013 if test "${enable_epoll+set}" = set; then :
14014 enableval=$enable_epoll; desired_iopoll_mechanism="epoll"
14015 fi
14016
14017 # Check whether --enable-devpoll was given.
14018 if test "${enable_devpoll+set}" = set; then :
14019 enableval=$enable_devpoll; desired_iopoll_mechanism="devpoll"
14020 fi
14021
14022 # Check whether --enable-rtsigio was given.
14023 if test "${enable_rtsigio+set}" = set; then :
14024 enableval=$enable_rtsigio; desired_iopoll_mechanism="rtsigio"
14025 fi
14026
14027 # Check whether --enable-poll was given.
14028 if test "${enable_poll+set}" = set; then :
14029 enableval=$enable_poll; desired_iopoll_mechanism="poll"
14030 fi
14031
14032 # Check whether --enable-select was given.
14033 if test "${enable_select+set}" = set; then :
14034 enableval=$enable_select; desired_iopoll_mechanism="select"
14035 fi
14036
14037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for optimal/desired iopoll mechanism" >&5
14038 $as_echo_n "checking for optimal/desired iopoll mechanism... " >&6; }
14039 iopoll_mechanism_none=0
14040
14041 cat >>confdefs.h <<_ACEOF
14042 #define __IOPOLL_MECHANISM_NONE $iopoll_mechanism_none
14043 _ACEOF
14044
14045 iopoll_mechanism_kqueue=1
14046
14047 cat >>confdefs.h <<_ACEOF
14048 #define __IOPOLL_MECHANISM_KQUEUE $iopoll_mechanism_kqueue
14049 _ACEOF
14050
14051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14052 /* end confdefs.h. */
14053 /* Define kevent to an innocuous variant, in case <limits.h> declares kevent.
14054 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14055 #define kevent innocuous_kevent
14056
14057 /* System header to define __stub macros and hopefully few prototypes,
14058 which can conflict with char kevent (); below.
14059 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14060 <limits.h> exists even on freestanding compilers. */
14061
14062 #ifdef __STDC__
14063 # include <limits.h>
14064 #else
14065 # include <assert.h>
14066 #endif
14067
14068 #undef kevent
14069
14070 /* Override any GCC internal prototype to avoid an error.
14071 Use char because int might match the return type of a GCC
14072 builtin and then its argument prototype would still apply. */
14073 #ifdef __cplusplus
14074 extern "C"
14075 #endif
14076 char kevent ();
14077 /* The GNU C library defines this for functions which it implements
14078 to always fail with ENOSYS. Some functions are actually named
14079 something starting with __ and the normal name is an alias. */
14080 #if defined __stub_kevent || defined __stub___kevent
14081 choke me
14082 #endif
14083
14084 int
14085 main ()
14086 {
14087 return kevent ();
14088 ;
14089 return 0;
14090 }
14091 _ACEOF
14092 if ac_fn_c_try_link "$LINENO"; then :
14093 is_kqueue_mechanism_available="yes"
14094 else
14095 is_kqueue_mechanism_available="no"
14096 fi
14097 rm -f core conftest.err conftest.$ac_objext \
14098 conftest$ac_exeext conftest.$ac_ext
14099 iopoll_mechanism_epoll=2
14100
14101 cat >>confdefs.h <<_ACEOF
14102 #define __IOPOLL_MECHANISM_EPOLL $iopoll_mechanism_epoll
14103 _ACEOF
14104
14105 if test "$cross_compiling" = yes; then :
14106 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14107 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14108 as_fn_error $? "cannot run test program while cross compiling
14109 See \`config.log' for more details" "$LINENO" 5; }
14110 else
14111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14112 /* end confdefs.h. */
14113
14114 #include <sys/epoll.h>
14115 #include <sys/syscall.h>
14116 #if defined(__stub_epoll_create) || defined(__stub___epoll_create) || defined(EPOLL_NEED_BODY)
14117 #if !defined(__NR_epoll_create)
14118 #if defined(__ia64__)
14119 #define __NR_epoll_create 1243
14120 #elif defined(__x86_64__)
14121 #define __NR_epoll_create 214
14122 #elif defined(__sparc64__) || defined(__sparc__)
14123 #define __NR_epoll_create 193
14124 #elif defined(__s390__) || defined(__m68k__)
14125 #define __NR_epoll_create 249
14126 #elif defined(__ppc64__) || defined(__ppc__)
14127 #define __NR_epoll_create 236
14128 #elif defined(__parisc__) || defined(__arm26__) || defined(__arm__)
14129 #define __NR_epoll_create 224
14130 #elif defined(__alpha__)
14131 #define __NR_epoll_create 407
14132 #elif defined(__sh64__)
14133 #define __NR_epoll_create 282
14134 #elif defined(__i386__) || defined(__sh__) || defined(__m32r__) || defined(__h8300__) || defined(__frv__)
14135 #define __NR_epoll_create 254
14136 #else
14137 #error No system call numbers defined for epoll family.
14138 #endif
14139 #endif
14140 _syscall1(int, epoll_create, int, size)
14141 #endif
14142
14143 int
14144 main ()
14145 {
14146 return epoll_create(256) == -1 ? 1 : 0
14147 ;
14148 return 0;
14149 }
14150 _ACEOF
14151 if ac_fn_c_try_run "$LINENO"; then :
14152 is_epoll_mechanism_available="yes"
14153 else
14154 is_epoll_mechanism_available="no"
14155 fi
14156 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14157 conftest.$ac_objext conftest.beam conftest.$ac_ext
14158 fi
14159
14160 iopoll_mechanism_devpoll=3
14161
14162 cat >>confdefs.h <<_ACEOF
14163 #define __IOPOLL_MECHANISM_DEVPOLL $iopoll_mechanism_devpoll
14164 _ACEOF
14165
14166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14167 /* end confdefs.h. */
14168 #include <devpoll.h>
14169 int
14170 main ()
14171 {
14172
14173 ;
14174 return 0;
14175 }
14176 _ACEOF
14177 if ac_fn_c_try_compile "$LINENO"; then :
14178 is_devpoll_mechanism_available="yes"
14179 else
14180 is_devpoll_mechanism_available="no"
14181 fi
14182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14183 if test "$is_devpoll_mechanism_available" = "yes" ; then
14184
14185 $as_echo "#define HAVE_DEVPOLL_H 1" >>confdefs.h
14186
14187 fi
14188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14189 /* end confdefs.h. */
14190 #include <sys/devpoll.h>
14191 int
14192 main ()
14193 {
14194
14195 ;
14196 return 0;
14197 }
14198 _ACEOF
14199 if ac_fn_c_try_compile "$LINENO"; then :
14200 is_devpoll_mechanism_available="yes"
14201 else
14202 is_devpoll_mechanism_available="no"
14203 fi
14204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14205 if test "$is_devpoll_mechanism_available" = "yes" ; then
14206
14207 $as_echo "#define HAVE_SYS_DEVPOLL_H 1" >>confdefs.h
14208
14209 fi
14210 iopoll_mechanism_rtsigio=4
14211
14212 cat >>confdefs.h <<_ACEOF
14213 #define __IOPOLL_MECHANISM_RTSIGIO $iopoll_mechanism_rtsigio
14214 _ACEOF
14215
14216 if test "$cross_compiling" = yes; then :
14217 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14218 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14219 as_fn_error $? "cannot run test program while cross compiling
14220 See \`config.log' for more details" "$LINENO" 5; }
14221 else
14222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14223 /* end confdefs.h. */
14224
14225 #define _GNU_SOURCE
14226 #include <fcntl.h>
14227 static unsigned int have_f_setsig = 0;
14228
14229 int
14230 main ()
14231 {
14232
14233 #ifdef F_SETSIG
14234 have_f_setsig = 1;
14235 #endif
14236 return have_f_setsig == 0;
14237
14238 ;
14239 return 0;
14240 }
14241 _ACEOF
14242 if ac_fn_c_try_run "$LINENO"; then :
14243 is_rtsigio_mechanism_available="yes"
14244 else
14245 is_rtsigio_mechanism_available="no"
14246 fi
14247 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14248 conftest.$ac_objext conftest.beam conftest.$ac_ext
14249 fi
14250
14251 iopoll_mechanism_poll=5
14252
14253 cat >>confdefs.h <<_ACEOF
14254 #define __IOPOLL_MECHANISM_POLL $iopoll_mechanism_poll
14255 _ACEOF
14256
14257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14258 /* end confdefs.h. */
14259 /* Define poll to an innocuous variant, in case <limits.h> declares poll.
14260 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14261 #define poll innocuous_poll
14262
14263 /* System header to define __stub macros and hopefully few prototypes,
14264 which can conflict with char poll (); below.
14265 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14266 <limits.h> exists even on freestanding compilers. */
14267
14268 #ifdef __STDC__
14269 # include <limits.h>
14270 #else
14271 # include <assert.h>
14272 #endif
14273
14274 #undef poll
14275
14276 /* Override any GCC internal prototype to avoid an error.
14277 Use char because int might match the return type of a GCC
14278 builtin and then its argument prototype would still apply. */
14279 #ifdef __cplusplus
14280 extern "C"
14281 #endif
14282 char poll ();
14283 /* The GNU C library defines this for functions which it implements
14284 to always fail with ENOSYS. Some functions are actually named
14285 something starting with __ and the normal name is an alias. */
14286 #if defined __stub_poll || defined __stub___poll
14287 choke me
14288 #endif
14289
14290 int
14291 main ()
14292 {
14293 return poll ();
14294 ;
14295 return 0;
14296 }
14297 _ACEOF
14298 if ac_fn_c_try_link "$LINENO"; then :
14299 is_poll_mechanism_available="yes"
14300 else
14301 is_poll_mechanism_available="no"
14302 fi
14303 rm -f core conftest.err conftest.$ac_objext \
14304 conftest$ac_exeext conftest.$ac_ext
14305 iopoll_mechanism_select=6
14306
14307 cat >>confdefs.h <<_ACEOF
14308 #define __IOPOLL_MECHANISM_SELECT $iopoll_mechanism_select
14309 _ACEOF
14310
14311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14312 /* end confdefs.h. */
14313 /* Define select to an innocuous variant, in case <limits.h> declares select.
14314 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14315 #define select innocuous_select
14316
14317 /* System header to define __stub macros and hopefully few prototypes,
14318 which can conflict with char select (); below.
14319 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14320 <limits.h> exists even on freestanding compilers. */
14321
14322 #ifdef __STDC__
14323 # include <limits.h>
14324 #else
14325 # include <assert.h>
14326 #endif
14327
14328 #undef select
14329
14330 /* Override any GCC internal prototype to avoid an error.
14331 Use char because int might match the return type of a GCC
14332 builtin and then its argument prototype would still apply. */
14333 #ifdef __cplusplus
14334 extern "C"
14335 #endif
14336 char select ();
14337 /* The GNU C library defines this for functions which it implements
14338 to always fail with ENOSYS. Some functions are actually named
14339 something starting with __ and the normal name is an alias. */
14340 #if defined __stub_select || defined __stub___select
14341 choke me
14342 #endif
14343
14344 int
14345 main ()
14346 {
14347 return select ();
14348 ;
14349 return 0;
14350 }
14351 _ACEOF
14352 if ac_fn_c_try_link "$LINENO"; then :
14353 is_select_mechanism_available="yes"
14354 else
14355 is_select_mechanism_available="no"
14356 fi
14357 rm -f core conftest.err conftest.$ac_objext \
14358 conftest$ac_exeext conftest.$ac_ext
14359 optimal_iopoll_mechanism="none"
14360 for mechanism in "kqueue" "epoll" "devpoll" "rtsigio" "poll" "select" ; do # order is important
14361 eval "is_optimal_iopoll_mechanism_available=\$is_${mechanism}_mechanism_available"
14362 if test "$is_optimal_iopoll_mechanism_available" = "yes" ; then
14363 optimal_iopoll_mechanism="$mechanism"
14364 break
14365 fi
14366 done
14367 if test "$desired_iopoll_mechanism" = "none" ; then
14368 if test "$optimal_iopoll_mechanism" = "none" ; then
14369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
14370 $as_echo "none" >&6; }
14371 as_fn_error $? "no iopoll mechanism found!" "$LINENO" 5
14372 else
14373 selected_iopoll_mechanism=$optimal_iopoll_mechanism
14374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $selected_iopoll_mechanism" >&5
14375 $as_echo "$selected_iopoll_mechanism" >&6; }
14376 fi
14377 else
14378 eval "is_desired_iopoll_mechanism_available=\$is_${desired_iopoll_mechanism}_mechanism_available"
14379 if test "$is_desired_iopoll_mechanism_available" = "yes" ; then
14380 selected_iopoll_mechanism=$desired_iopoll_mechanism
14381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $selected_iopoll_mechanism" >&5
14382 $as_echo "$selected_iopoll_mechanism" >&6; }
14383 else
14384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
14385 $as_echo "none" >&6; }
14386 as_fn_error $? "desired iopoll mechanism, $desired_iopoll_mechanism, is not available" "$LINENO" 5
14387 fi
14388 fi
14389 eval "use_iopoll_mechanism=\$iopoll_mechanism_${selected_iopoll_mechanism}"
14390
14391 cat >>confdefs.h <<_ACEOF
14392 #define USE_IOPOLL_MECHANISM $use_iopoll_mechanism
14393 _ACEOF
14394
14395
14396
14397
14398 # Check whether --with-nicklen was given.
14399 if test "${with_nicklen+set}" = set; then :
14400 withval=$with_nicklen; nicklen="$withval"
14401 else
14402 nicklen="9"
14403 fi
14404
14405
14406 cat >>confdefs.h <<_ACEOF
14407 #define NICKLEN ($nicklen+1)
14408 _ACEOF
14409
14410
14411
14412
14413 # Check whether --with-topiclen was given.
14414 if test "${with_topiclen+set}" = set; then :
14415 withval=$with_topiclen; topiclen="$withval"
14416 else
14417 topiclen="160"
14418 fi
14419
14420
14421 cat >>confdefs.h <<_ACEOF
14422 #define TOPICLEN ($topiclen)
14423 _ACEOF
14424
14425
14426
14427
14428 # Check whether --with-syslog-facility was given.
14429 if test "${with_syslog_facility+set}" = set; then :
14430 withval=$with_syslog_facility; syslog_facility="$withval"
14431 else
14432 syslog_facility="LOG_LOCAL4"
14433 fi
14434
14435
14436 cat >>confdefs.h <<_ACEOF
14437 #define LOG_FACILITY $syslog_facility
14438 _ACEOF
14439
14440
14441
14442 # Check whether --enable-efnet was given.
14443 if test "${enable_efnet+set}" = set; then :
14444 enableval=$enable_efnet; efnet="$enableval"
14445 else
14446 efnet="no"
14447 fi
14448
14449 if test "$efnet" = "yes" ; then
14450 use_efnet="yes"
14451
14452 $as_echo "#define EFNET 1" >>confdefs.h
14453
14454 else
14455 use_efnet="no"
14456 fi
14457 if test "$use_efnet" = "yes"; then
14458 EFNET_TRUE=
14459 EFNET_FALSE='#'
14460 else
14461 EFNET_TRUE='#'
14462 EFNET_FALSE=
14463 fi
14464
14465
14466
14467 # Check whether --enable-halfops was given.
14468 if test "${enable_halfops+set}" = set; then :
14469 enableval=$enable_halfops; halfops="$enableval"
14470 else
14471 halfops="no"
14472 fi
14473
14474 if test "$halfops" = "yes" ; then
14475
14476 $as_echo "#define HALFOPS 1" >>confdefs.h
14477
14478 fi
14479
14480
14481 # Check whether --enable-debugging was given.
14482 if test "${enable_debugging+set}" = set; then :
14483 enableval=$enable_debugging; debugging="$enableval"
14484 else
14485 debugging="no"
14486 fi
14487
14488 if test "$debugging" = "yes" ; then
14489
14490 $as_echo "#define DEBUG 1" >>confdefs.h
14491
14492 CFLAGS="-Wall -g -O0"
14493 else
14494
14495 $as_echo "#define NDEBUG 1" >>confdefs.h
14496
14497 fi
14498
14499
14500 # Check whether --enable-warnings was given.
14501 if test "${enable_warnings+set}" = set; then :
14502 enableval=$enable_warnings; warnings="$enableval"
14503 else
14504 warnings="no"
14505 fi
14506
14507 if test "$warnings" = "yes" ; then
14508 CFLAGS="-Wall -Wextra -Wno-unused -Wcast-qual -Wcast-align -Wbad-function-cast -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wredundant-decls -Wshadow -Wwrite-strings -Wundef"
14509 fi
14510
14511
14512 for ac_header in syslog.h sys/syslog.h
14513 do :
14514 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14515 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14516 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
14517 cat >>confdefs.h <<_ACEOF
14518 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14519 _ACEOF
14520
14521 fi
14522
14523 done
14524
14525 # Check whether --enable-syslog was given.
14526 if test "${enable_syslog+set}" = set; then :
14527 enableval=$enable_syslog; syslog="$enableval"
14528 else
14529 syslog="no"
14530 fi
14531
14532 if test "$enableval" != "no" ; then
14533 for option in $enableval ; do
14534 case "$option" in
14535 users)
14536 $as_echo "#define SYSLOG_USERS 1" >>confdefs.h
14537 ;;
14538 oper)
14539 $as_echo "#define SYSLOG_OPER 1" >>confdefs.h
14540 ;;
14541 yes) : ;;
14542 *) as_fn_error $? "invalid value for --enable-syslog: $option" "$LINENO" 5 ;;
14543 esac
14544 done
14545
14546 $as_echo "#define USE_SYSLOG 1" >>confdefs.h
14547
14548 fi
14549
14550
14551
14552 prefix_NONE=
14553 exec_prefix_NONE=
14554 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
14555 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
14556 eval ac_define_dir="\"$prefix\""
14557 eval ac_define_dir="\"$ac_define_dir\""
14558 PREFIX="$ac_define_dir"
14559
14560
14561 cat >>confdefs.h <<_ACEOF
14562 #define PREFIX "$ac_define_dir"
14563 _ACEOF
14564
14565 test "$prefix_NONE" && prefix=NONE
14566 test "$exec_prefix_NONE" && exec_prefix=NONE
14567
14568
14569 prefix_NONE=
14570 exec_prefix_NONE=
14571 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
14572 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
14573 eval ac_define_dir="\"$sysconfdir\""
14574 eval ac_define_dir="\"$ac_define_dir\""
14575 SYSCONFDIR="$ac_define_dir"
14576
14577
14578 cat >>confdefs.h <<_ACEOF
14579 #define SYSCONFDIR "$ac_define_dir"
14580 _ACEOF
14581
14582 test "$prefix_NONE" && prefix=NONE
14583 test "$exec_prefix_NONE" && exec_prefix=NONE
14584
14585
14586 prefix_NONE=
14587 exec_prefix_NONE=
14588 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
14589 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
14590 eval ac_define_dir="\"$libdir\""
14591 eval ac_define_dir="\"$ac_define_dir\""
14592 LIBDIR="$ac_define_dir"
14593
14594
14595 cat >>confdefs.h <<_ACEOF
14596 #define LIBDIR "$ac_define_dir"
14597 _ACEOF
14598
14599 test "$prefix_NONE" && prefix=NONE
14600 test "$exec_prefix_NONE" && exec_prefix=NONE
14601
14602
14603 prefix_NONE=
14604 exec_prefix_NONE=
14605 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
14606 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
14607 eval ac_define_dir="\"$datadir\""
14608 eval ac_define_dir="\"$ac_define_dir\""
14609 DATADIR="$ac_define_dir"
14610
14611
14612 cat >>confdefs.h <<_ACEOF
14613 #define DATADIR "$ac_define_dir"
14614 _ACEOF
14615
14616 test "$prefix_NONE" && prefix=NONE
14617 test "$exec_prefix_NONE" && exec_prefix=NONE
14618
14619
14620 prefix_NONE=
14621 exec_prefix_NONE=
14622 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
14623 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
14624 eval ac_define_dir="\"$localstatedir\""
14625 eval ac_define_dir="\"$ac_define_dir\""
14626 LOCALSTATEDIR="$ac_define_dir"
14627
14628
14629 cat >>confdefs.h <<_ACEOF
14630 #define LOCALSTATEDIR "$ac_define_dir"
14631 _ACEOF
14632
14633 test "$prefix_NONE" && prefix=NONE
14634 test "$exec_prefix_NONE" && exec_prefix=NONE
14635
14636
14637 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"
14638
14639
14640 cat >confcache <<\_ACEOF
14641 # This file is a shell script that caches the results of configure
14642 # tests run on this system so they can be shared between configure
14643 # scripts and configure runs, see configure's option --config-cache.
14644 # It is not useful on other systems. If it contains results you don't
14645 # want to keep, you may remove or edit it.
14646 #
14647 # config.status only pays attention to the cache file if you give it
14648 # the --recheck option to rerun configure.
14649 #
14650 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14651 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14652 # following values.
14653
14654 _ACEOF
14655
14656 # The following way of writing the cache mishandles newlines in values,
14657 # but we know of no workaround that is simple, portable, and efficient.
14658 # So, we kill variables containing newlines.
14659 # Ultrix sh set writes to stderr and can't be redirected directly,
14660 # and sets the high bit in the cache file unless we assign to the vars.
14661 (
14662 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14663 eval ac_val=\$$ac_var
14664 case $ac_val in #(
14665 *${as_nl}*)
14666 case $ac_var in #(
14667 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14668 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14669 esac
14670 case $ac_var in #(
14671 _ | IFS | as_nl) ;; #(
14672 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14673 *) { eval $ac_var=; unset $ac_var;} ;;
14674 esac ;;
14675 esac
14676 done
14677
14678 (set) 2>&1 |
14679 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14680 *${as_nl}ac_space=\ *)
14681 # `set' does not quote correctly, so add quotes: double-quote
14682 # substitution turns \\\\ into \\, and sed turns \\ into \.
14683 sed -n \
14684 "s/'/'\\\\''/g;
14685 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14686 ;; #(
14687 *)
14688 # `set' quotes correctly as required by POSIX, so do not add quotes.
14689 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14690 ;;
14691 esac |
14692 sort
14693 ) |
14694 sed '
14695 /^ac_cv_env_/b end
14696 t clear
14697 :clear
14698 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14699 t end
14700 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14701 :end' >>confcache
14702 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14703 if test -w "$cache_file"; then
14704 if test "x$cache_file" != "x/dev/null"; then
14705 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14706 $as_echo "$as_me: updating cache $cache_file" >&6;}
14707 if test ! -f "$cache_file" || test -h "$cache_file"; then
14708 cat confcache >"$cache_file"
14709 else
14710 case $cache_file in #(
14711 */* | ?:*)
14712 mv -f confcache "$cache_file"$$ &&
14713 mv -f "$cache_file"$$ "$cache_file" ;; #(
14714 *)
14715 mv -f confcache "$cache_file" ;;
14716 esac
14717 fi
14718 fi
14719 else
14720 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14721 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14722 fi
14723 fi
14724 rm -f confcache
14725
14726 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14727 # Let make expand exec_prefix.
14728 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14729
14730 DEFS=-DHAVE_CONFIG_H
14731
14732 ac_libobjs=
14733 ac_ltlibobjs=
14734 U=
14735 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14736 # 1. Remove the extension, and $U if already installed.
14737 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14738 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14739 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14740 # will be set to the directory where LIBOBJS objects are built.
14741 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14742 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14743 done
14744 LIBOBJS=$ac_libobjs
14745
14746 LTLIBOBJS=$ac_ltlibobjs
14747
14748
14749 if test -n "$EXEEXT"; then
14750 am__EXEEXT_TRUE=
14751 am__EXEEXT_FALSE='#'
14752 else
14753 am__EXEEXT_TRUE='#'
14754 am__EXEEXT_FALSE=
14755 fi
14756
14757 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
14758 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
14759 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14760 fi
14761 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14762 as_fn_error $? "conditional \"AMDEP\" was never defined.
14763 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14764 fi
14765 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14766 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
14767 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14768 fi
14769 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
14770 as_fn_error $? "conditional \"INSTALL_LTDL\" was never defined.
14771 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14772 fi
14773 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
14774 as_fn_error $? "conditional \"CONVENIENCE_LTDL\" was never defined.
14775 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14776 fi
14777 LT_CONFIG_H=config.h
14778
14779 _ltdl_libobjs=
14780 _ltdl_ltlibobjs=
14781 if test -n "$_LT_LIBOBJS"; then
14782 # Remove the extension.
14783 _lt_sed_drop_objext='s/\.o$//;s/\.obj$//'
14784 for i in `for i in $_LT_LIBOBJS; do echo "$i"; done | sed "$_lt_sed_drop_objext" | sort -u`; do
14785 _ltdl_libobjs="$_ltdl_libobjs $lt_libobj_prefix$i.$ac_objext"
14786 _ltdl_ltlibobjs="$_ltdl_ltlibobjs $lt_libobj_prefix$i.lo"
14787 done
14788 fi
14789 ltdl_LIBOBJS=$_ltdl_libobjs
14790
14791 ltdl_LTLIBOBJS=$_ltdl_ltlibobjs
14792
14793
14794
14795 if test -z "${ENABLE_PCRE_TRUE}" && test -z "${ENABLE_PCRE_FALSE}"; then
14796 as_fn_error $? "conditional \"ENABLE_PCRE\" was never defined.
14797 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14798 fi
14799 if test -z "${ENABLE_SSL_TRUE}" && test -z "${ENABLE_SSL_FALSE}"; then
14800 as_fn_error $? "conditional \"ENABLE_SSL\" was never defined.
14801 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14802 fi
14803 if test -z "${EFNET_TRUE}" && test -z "${EFNET_FALSE}"; then
14804 as_fn_error $? "conditional \"EFNET\" was never defined.
14805 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14806 fi
14807
14808 : "${CONFIG_STATUS=./config.status}"
14809 ac_write_fail=0
14810 ac_clean_files_save=$ac_clean_files
14811 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14812 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14813 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14814 as_write_fail=0
14815 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14816 #! $SHELL
14817 # Generated by $as_me.
14818 # Run this file to recreate the current configuration.
14819 # Compiler output produced by configure, useful for debugging
14820 # configure, is in config.log if it exists.
14821
14822 debug=false
14823 ac_cs_recheck=false
14824 ac_cs_silent=false
14825
14826 SHELL=\${CONFIG_SHELL-$SHELL}
14827 export SHELL
14828 _ASEOF
14829 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14830 ## -------------------- ##
14831 ## M4sh Initialization. ##
14832 ## -------------------- ##
14833
14834 # Be more Bourne compatible
14835 DUALCASE=1; export DUALCASE # for MKS sh
14836 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14837 emulate sh
14838 NULLCMD=:
14839 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14840 # is contrary to our usage. Disable this feature.
14841 alias -g '${1+"$@"}'='"$@"'
14842 setopt NO_GLOB_SUBST
14843 else
14844 case `(set -o) 2>/dev/null` in #(
14845 *posix*) :
14846 set -o posix ;; #(
14847 *) :
14848 ;;
14849 esac
14850 fi
14851
14852
14853 as_nl='
14854 '
14855 export as_nl
14856 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14857 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14858 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14859 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14860 # Prefer a ksh shell builtin over an external printf program on Solaris,
14861 # but without wasting forks for bash or zsh.
14862 if test -z "$BASH_VERSION$ZSH_VERSION" \
14863 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14864 as_echo='print -r --'
14865 as_echo_n='print -rn --'
14866 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14867 as_echo='printf %s\n'
14868 as_echo_n='printf %s'
14869 else
14870 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14871 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14872 as_echo_n='/usr/ucb/echo -n'
14873 else
14874 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14875 as_echo_n_body='eval
14876 arg=$1;
14877 case $arg in #(
14878 *"$as_nl"*)
14879 expr "X$arg" : "X\\(.*\\)$as_nl";
14880 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14881 esac;
14882 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14883 '
14884 export as_echo_n_body
14885 as_echo_n='sh -c $as_echo_n_body as_echo'
14886 fi
14887 export as_echo_body
14888 as_echo='sh -c $as_echo_body as_echo'
14889 fi
14890
14891 # The user is always right.
14892 if test "${PATH_SEPARATOR+set}" != set; then
14893 PATH_SEPARATOR=:
14894 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14895 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14896 PATH_SEPARATOR=';'
14897 }
14898 fi
14899
14900
14901 # IFS
14902 # We need space, tab and new line, in precisely that order. Quoting is
14903 # there to prevent editors from complaining about space-tab.
14904 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14905 # splitting by setting IFS to empty value.)
14906 IFS=" "" $as_nl"
14907
14908 # Find who we are. Look in the path if we contain no directory separator.
14909 as_myself=
14910 case $0 in #((
14911 *[\\/]* ) as_myself=$0 ;;
14912 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14913 for as_dir in $PATH
14914 do
14915 IFS=$as_save_IFS
14916 test -z "$as_dir" && as_dir=.
14917 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14918 done
14919 IFS=$as_save_IFS
14920
14921 ;;
14922 esac
14923 # We did not find ourselves, most probably we were run as `sh COMMAND'
14924 # in which case we are not to be found in the path.
14925 if test "x$as_myself" = x; then
14926 as_myself=$0
14927 fi
14928 if test ! -f "$as_myself"; then
14929 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14930 exit 1
14931 fi
14932
14933 # Unset variables that we do not need and which cause bugs (e.g. in
14934 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14935 # suppresses any "Segmentation fault" message there. '((' could
14936 # trigger a bug in pdksh 5.2.14.
14937 for as_var in BASH_ENV ENV MAIL MAILPATH
14938 do eval test x\${$as_var+set} = xset \
14939 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14940 done
14941 PS1='$ '
14942 PS2='> '
14943 PS4='+ '
14944
14945 # NLS nuisances.
14946 LC_ALL=C
14947 export LC_ALL
14948 LANGUAGE=C
14949 export LANGUAGE
14950
14951 # CDPATH.
14952 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14953
14954
14955 # as_fn_error STATUS ERROR [LINENO LOG_FD]
14956 # ----------------------------------------
14957 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14958 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14959 # script with STATUS, using 1 if that was 0.
14960 as_fn_error ()
14961 {
14962 as_status=$1; test $as_status -eq 0 && as_status=1
14963 if test "$4"; then
14964 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14965 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
14966 fi
14967 $as_echo "$as_me: error: $2" >&2
14968 as_fn_exit $as_status
14969 } # as_fn_error
14970
14971
14972 # as_fn_set_status STATUS
14973 # -----------------------
14974 # Set $? to STATUS, without forking.
14975 as_fn_set_status ()
14976 {
14977 return $1
14978 } # as_fn_set_status
14979
14980 # as_fn_exit STATUS
14981 # -----------------
14982 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14983 as_fn_exit ()
14984 {
14985 set +e
14986 as_fn_set_status $1
14987 exit $1
14988 } # as_fn_exit
14989
14990 # as_fn_unset VAR
14991 # ---------------
14992 # Portably unset VAR.
14993 as_fn_unset ()
14994 {
14995 { eval $1=; unset $1;}
14996 }
14997 as_unset=as_fn_unset
14998 # as_fn_append VAR VALUE
14999 # ----------------------
15000 # Append the text in VALUE to the end of the definition contained in VAR. Take
15001 # advantage of any shell optimizations that allow amortized linear growth over
15002 # repeated appends, instead of the typical quadratic growth present in naive
15003 # implementations.
15004 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15005 eval 'as_fn_append ()
15006 {
15007 eval $1+=\$2
15008 }'
15009 else
15010 as_fn_append ()
15011 {
15012 eval $1=\$$1\$2
15013 }
15014 fi # as_fn_append
15015
15016 # as_fn_arith ARG...
15017 # ------------------
15018 # Perform arithmetic evaluation on the ARGs, and store the result in the
15019 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15020 # must be portable across $(()) and expr.
15021 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15022 eval 'as_fn_arith ()
15023 {
15024 as_val=$(( $* ))
15025 }'
15026 else
15027 as_fn_arith ()
15028 {
15029 as_val=`expr "$@" || test $? -eq 1`
15030 }
15031 fi # as_fn_arith
15032
15033
15034 if expr a : '\(a\)' >/dev/null 2>&1 &&
15035 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15036 as_expr=expr
15037 else
15038 as_expr=false
15039 fi
15040
15041 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15042 as_basename=basename
15043 else
15044 as_basename=false
15045 fi
15046
15047 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15048 as_dirname=dirname
15049 else
15050 as_dirname=false
15051 fi
15052
15053 as_me=`$as_basename -- "$0" ||
15054 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15055 X"$0" : 'X\(//\)$' \| \
15056 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15057 $as_echo X/"$0" |
15058 sed '/^.*\/\([^/][^/]*\)\/*$/{
15059 s//\1/
15060 q
15061 }
15062 /^X\/\(\/\/\)$/{
15063 s//\1/
15064 q
15065 }
15066 /^X\/\(\/\).*/{
15067 s//\1/
15068 q
15069 }
15070 s/.*/./; q'`
15071
15072 # Avoid depending upon Character Ranges.
15073 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15074 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15075 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15076 as_cr_digits='0123456789'
15077 as_cr_alnum=$as_cr_Letters$as_cr_digits
15078
15079 ECHO_C= ECHO_N= ECHO_T=
15080 case `echo -n x` in #(((((
15081 -n*)
15082 case `echo 'xy\c'` in
15083 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15084 xy) ECHO_C='\c';;
15085 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15086 ECHO_T=' ';;
15087 esac;;
15088 *)
15089 ECHO_N='-n';;
15090 esac
15091
15092 rm -f conf$$ conf$$.exe conf$$.file
15093 if test -d conf$$.dir; then
15094 rm -f conf$$.dir/conf$$.file
15095 else
15096 rm -f conf$$.dir
15097 mkdir conf$$.dir 2>/dev/null
15098 fi
15099 if (echo >conf$$.file) 2>/dev/null; then
15100 if ln -s conf$$.file conf$$ 2>/dev/null; then
15101 as_ln_s='ln -s'
15102 # ... but there are two gotchas:
15103 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15104 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15105 # In both cases, we have to default to `cp -p'.
15106 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15107 as_ln_s='cp -p'
15108 elif ln conf$$.file conf$$ 2>/dev/null; then
15109 as_ln_s=ln
15110 else
15111 as_ln_s='cp -p'
15112 fi
15113 else
15114 as_ln_s='cp -p'
15115 fi
15116 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15117 rmdir conf$$.dir 2>/dev/null
15118
15119
15120 # as_fn_mkdir_p
15121 # -------------
15122 # Create "$as_dir" as a directory, including parents if necessary.
15123 as_fn_mkdir_p ()
15124 {
15125
15126 case $as_dir in #(
15127 -*) as_dir=./$as_dir;;
15128 esac
15129 test -d "$as_dir" || eval $as_mkdir_p || {
15130 as_dirs=
15131 while :; do
15132 case $as_dir in #(
15133 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15134 *) as_qdir=$as_dir;;
15135 esac
15136 as_dirs="'$as_qdir' $as_dirs"
15137 as_dir=`$as_dirname -- "$as_dir" ||
15138 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15139 X"$as_dir" : 'X\(//\)[^/]' \| \
15140 X"$as_dir" : 'X\(//\)$' \| \
15141 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15142 $as_echo X"$as_dir" |
15143 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15144 s//\1/
15145 q
15146 }
15147 /^X\(\/\/\)[^/].*/{
15148 s//\1/
15149 q
15150 }
15151 /^X\(\/\/\)$/{
15152 s//\1/
15153 q
15154 }
15155 /^X\(\/\).*/{
15156 s//\1/
15157 q
15158 }
15159 s/.*/./; q'`
15160 test -d "$as_dir" && break
15161 done
15162 test -z "$as_dirs" || eval "mkdir $as_dirs"
15163 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15164
15165
15166 } # as_fn_mkdir_p
15167 if mkdir -p . 2>/dev/null; then
15168 as_mkdir_p='mkdir -p "$as_dir"'
15169 else
15170 test -d ./-p && rmdir ./-p
15171 as_mkdir_p=false
15172 fi
15173
15174 if test -x / >/dev/null 2>&1; then
15175 as_test_x='test -x'
15176 else
15177 if ls -dL / >/dev/null 2>&1; then
15178 as_ls_L_option=L
15179 else
15180 as_ls_L_option=
15181 fi
15182 as_test_x='
15183 eval sh -c '\''
15184 if test -d "$1"; then
15185 test -d "$1/.";
15186 else
15187 case $1 in #(
15188 -*)set "./$1";;
15189 esac;
15190 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
15191 ???[sx]*):;;*)false;;esac;fi
15192 '\'' sh
15193 '
15194 fi
15195 as_executable_p=$as_test_x
15196
15197 # Sed expression to map a string onto a valid CPP name.
15198 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15199
15200 # Sed expression to map a string onto a valid variable name.
15201 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15202
15203
15204 exec 6>&1
15205 ## ----------------------------------- ##
15206 ## Main body of $CONFIG_STATUS script. ##
15207 ## ----------------------------------- ##
15208 _ASEOF
15209 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15210
15211 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15212 # Save the log message, to keep $0 and so on meaningful, and to
15213 # report actual input values of CONFIG_FILES etc. instead of their
15214 # values after options handling.
15215 ac_log="
15216 This file was extended by ircd-hybrid $as_me 7.3.1, which was
15217 generated by GNU Autoconf 2.68. Invocation command line was
15218
15219 CONFIG_FILES = $CONFIG_FILES
15220 CONFIG_HEADERS = $CONFIG_HEADERS
15221 CONFIG_LINKS = $CONFIG_LINKS
15222 CONFIG_COMMANDS = $CONFIG_COMMANDS
15223 $ $0 $@
15224
15225 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15226 "
15227
15228 _ACEOF
15229
15230 case $ac_config_files in *"
15231 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15232 esac
15233
15234 case $ac_config_headers in *"
15235 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15236 esac
15237
15238
15239 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15240 # Files that config.status was made for.
15241 config_files="$ac_config_files"
15242 config_headers="$ac_config_headers"
15243 config_commands="$ac_config_commands"
15244
15245 _ACEOF
15246
15247 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15248 ac_cs_usage="\
15249 \`$as_me' instantiates files and other configuration actions
15250 from templates according to the current configuration. Unless the files
15251 and actions are specified as TAGs, all are instantiated by default.
15252
15253 Usage: $0 [OPTION]... [TAG]...
15254
15255 -h, --help print this help, then exit
15256 -V, --version print version number and configuration settings, then exit
15257 --config print configuration, then exit
15258 -q, --quiet, --silent
15259 do not print progress messages
15260 -d, --debug don't remove temporary files
15261 --recheck update $as_me by reconfiguring in the same conditions
15262 --file=FILE[:TEMPLATE]
15263 instantiate the configuration file FILE
15264 --header=FILE[:TEMPLATE]
15265 instantiate the configuration header FILE
15266
15267 Configuration files:
15268 $config_files
15269
15270 Configuration headers:
15271 $config_headers
15272
15273 Configuration commands:
15274 $config_commands
15275
15276 Report bugs to <bugs@ircd-hybrid.org>."
15277
15278 _ACEOF
15279 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15280 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15281 ac_cs_version="\\
15282 ircd-hybrid config.status 7.3.1
15283 configured by $0, generated by GNU Autoconf 2.68,
15284 with options \\"\$ac_cs_config\\"
15285
15286 Copyright (C) 2010 Free Software Foundation, Inc.
15287 This config.status script is free software; the Free Software Foundation
15288 gives unlimited permission to copy, distribute and modify it."
15289
15290 ac_pwd='$ac_pwd'
15291 srcdir='$srcdir'
15292 INSTALL='$INSTALL'
15293 MKDIR_P='$MKDIR_P'
15294 AWK='$AWK'
15295 test -n "\$AWK" || AWK=awk
15296 _ACEOF
15297
15298 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15299 # The default lists apply if the user does not specify any file.
15300 ac_need_defaults=:
15301 while test $# != 0
15302 do
15303 case $1 in
15304 --*=?*)
15305 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15306 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15307 ac_shift=:
15308 ;;
15309 --*=)
15310 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15311 ac_optarg=
15312 ac_shift=:
15313 ;;
15314 *)
15315 ac_option=$1
15316 ac_optarg=$2
15317 ac_shift=shift
15318 ;;
15319 esac
15320
15321 case $ac_option in
15322 # Handling of the options.
15323 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15324 ac_cs_recheck=: ;;
15325 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15326 $as_echo "$ac_cs_version"; exit ;;
15327 --config | --confi | --conf | --con | --co | --c )
15328 $as_echo "$ac_cs_config"; exit ;;
15329 --debug | --debu | --deb | --de | --d | -d )
15330 debug=: ;;
15331 --file | --fil | --fi | --f )
15332 $ac_shift
15333 case $ac_optarg in
15334 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15335 '') as_fn_error $? "missing file argument" ;;
15336 esac
15337 as_fn_append CONFIG_FILES " '$ac_optarg'"
15338 ac_need_defaults=false;;
15339 --header | --heade | --head | --hea )
15340 $ac_shift
15341 case $ac_optarg in
15342 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15343 esac
15344 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15345 ac_need_defaults=false;;
15346 --he | --h)
15347 # Conflict between --help and --header
15348 as_fn_error $? "ambiguous option: \`$1'
15349 Try \`$0 --help' for more information.";;
15350 --help | --hel | -h )
15351 $as_echo "$ac_cs_usage"; exit ;;
15352 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15353 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15354 ac_cs_silent=: ;;
15355
15356 # This is an error.
15357 -*) as_fn_error $? "unrecognized option: \`$1'
15358 Try \`$0 --help' for more information." ;;
15359
15360 *) as_fn_append ac_config_targets " $1"
15361 ac_need_defaults=false ;;
15362
15363 esac
15364 shift
15365 done
15366
15367 ac_configure_extra_args=
15368
15369 if $ac_cs_silent; then
15370 exec 6>/dev/null
15371 ac_configure_extra_args="$ac_configure_extra_args --silent"
15372 fi
15373
15374 _ACEOF
15375 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15376 if \$ac_cs_recheck; then
15377 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15378 shift
15379 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15380 CONFIG_SHELL='$SHELL'
15381 export CONFIG_SHELL
15382 exec "\$@"
15383 fi
15384
15385 _ACEOF
15386 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15387 exec 5>>config.log
15388 {
15389 echo
15390 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15391 ## Running $as_me. ##
15392 _ASBOX
15393 $as_echo "$ac_log"
15394 } >&5
15395
15396 _ACEOF
15397 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15398 #
15399 # INIT-COMMANDS
15400 #
15401 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15402
15403
15404 # The HP-UX ksh and POSIX shell print the target directory to stdout
15405 # if CDPATH is set.
15406 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15407
15408 sed_quote_subst='$sed_quote_subst'
15409 double_quote_subst='$double_quote_subst'
15410 delay_variable_subst='$delay_variable_subst'
15411 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
15412 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
15413 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
15414 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
15415 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
15416 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
15417 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
15418 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
15419 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
15420 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
15421 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
15422 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
15423 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
15424 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
15425 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
15426 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
15427 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
15428 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
15429 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
15430 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
15431 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
15432 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
15433 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
15434 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
15435 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
15436 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
15437 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
15438 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
15439 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
15440 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
15441 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
15442 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
15443 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
15444 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
15445 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
15446 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
15447 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
15448 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
15449 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
15450 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
15451 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
15452 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
15453 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
15454 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
15455 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15456 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15457 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
15458 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
15459 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
15460 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
15461 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
15462 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
15463 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
15464 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
15465 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
15466 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"`'
15467 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
15468 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
15469 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
15470 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
15471 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
15472 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
15473 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
15474 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
15475 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
15476 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
15477 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
15478 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
15479 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
15480 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
15481 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
15482 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
15483 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
15484 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
15485 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15486 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
15487 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
15488 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
15489 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
15490 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
15491 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
15492 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15493 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
15494 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15495 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
15496 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15497 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
15498 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
15499 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
15500 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
15501 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
15502 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
15503 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
15504 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
15505 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
15506 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
15507 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
15508 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
15509 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
15510 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
15511 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
15512 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
15513 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
15514 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
15515 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
15516 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
15517 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
15518 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
15519 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
15520 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
15521 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
15522 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
15523 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
15524 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
15525 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
15526 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
15527 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
15528 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15529 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15530 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
15531 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
15532 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
15533 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
15534 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
15535 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
15536 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
15537 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
15538 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
15539 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
15540 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
15541
15542 LTCC='$LTCC'
15543 LTCFLAGS='$LTCFLAGS'
15544 compiler='$compiler_DEFAULT'
15545
15546 # A function that is used when there is no print builtin or printf.
15547 func_fallback_echo ()
15548 {
15549 eval 'cat <<_LTECHO_EOF
15550 \$1
15551 _LTECHO_EOF'
15552 }
15553
15554 # Quote evaled strings.
15555 for var in SHELL \
15556 ECHO \
15557 SED \
15558 GREP \
15559 EGREP \
15560 FGREP \
15561 LD \
15562 NM \
15563 LN_S \
15564 lt_SP2NL \
15565 lt_NL2SP \
15566 reload_flag \
15567 OBJDUMP \
15568 deplibs_check_method \
15569 file_magic_cmd \
15570 file_magic_glob \
15571 want_nocaseglob \
15572 DLLTOOL \
15573 sharedlib_from_linklib_cmd \
15574 AR \
15575 AR_FLAGS \
15576 archiver_list_spec \
15577 STRIP \
15578 RANLIB \
15579 CC \
15580 CFLAGS \
15581 compiler \
15582 lt_cv_sys_global_symbol_pipe \
15583 lt_cv_sys_global_symbol_to_cdecl \
15584 lt_cv_sys_global_symbol_to_c_name_address \
15585 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15586 nm_file_list_spec \
15587 lt_prog_compiler_no_builtin_flag \
15588 lt_prog_compiler_pic \
15589 lt_prog_compiler_wl \
15590 lt_prog_compiler_static \
15591 lt_cv_prog_compiler_c_o \
15592 need_locks \
15593 MANIFEST_TOOL \
15594 DSYMUTIL \
15595 NMEDIT \
15596 LIPO \
15597 OTOOL \
15598 OTOOL64 \
15599 shrext_cmds \
15600 export_dynamic_flag_spec \
15601 whole_archive_flag_spec \
15602 compiler_needs_object \
15603 with_gnu_ld \
15604 allow_undefined_flag \
15605 no_undefined_flag \
15606 hardcode_libdir_flag_spec \
15607 hardcode_libdir_flag_spec_ld \
15608 hardcode_libdir_separator \
15609 exclude_expsyms \
15610 include_expsyms \
15611 file_list_spec \
15612 variables_saved_for_relink \
15613 libname_spec \
15614 library_names_spec \
15615 soname_spec \
15616 install_override_mode \
15617 finish_eval \
15618 old_striplib \
15619 striplib; do
15620 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15621 *[\\\\\\\`\\"\\\$]*)
15622 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
15623 ;;
15624 *)
15625 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15626 ;;
15627 esac
15628 done
15629
15630 # Double-quote double-evaled strings.
15631 for var in reload_cmds \
15632 old_postinstall_cmds \
15633 old_postuninstall_cmds \
15634 old_archive_cmds \
15635 extract_expsyms_cmds \
15636 old_archive_from_new_cmds \
15637 old_archive_from_expsyms_cmds \
15638 archive_cmds \
15639 archive_expsym_cmds \
15640 module_cmds \
15641 module_expsym_cmds \
15642 export_symbols_cmds \
15643 prelink_cmds \
15644 postlink_cmds \
15645 postinstall_cmds \
15646 postuninstall_cmds \
15647 finish_cmds \
15648 sys_lib_search_path_spec \
15649 sys_lib_dlsearch_path_spec; do
15650 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15651 *[\\\\\\\`\\"\\\$]*)
15652 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
15653 ;;
15654 *)
15655 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15656 ;;
15657 esac
15658 done
15659
15660 ac_aux_dir='$ac_aux_dir'
15661 xsi_shell='$xsi_shell'
15662 lt_shell_append='$lt_shell_append'
15663
15664 # See if we are running on zsh, and set the options which allow our
15665 # commands through without removal of \ escapes INIT.
15666 if test -n "\${ZSH_VERSION+set}" ; then
15667 setopt NO_GLOB_SUBST
15668 fi
15669
15670
15671 PACKAGE='$PACKAGE'
15672 VERSION='$VERSION'
15673 TIMESTAMP='$TIMESTAMP'
15674 RM='$RM'
15675 ofile='$ofile'
15676
15677
15678
15679
15680 _ACEOF
15681
15682 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15683
15684 # Handling of arguments.
15685 for ac_config_target in $ac_config_targets
15686 do
15687 case $ac_config_target in
15688 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
15689 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
15690 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
15691 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15692 "etc/Makefile") CONFIG_FILES="$CONFIG_FILES etc/Makefile" ;;
15693 "servlink/Makefile") CONFIG_FILES="$CONFIG_FILES servlink/Makefile" ;;
15694 "contrib/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/Makefile" ;;
15695 "contrib/help/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/help/Makefile" ;;
15696 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
15697 "libltdl/Makefile") CONFIG_FILES="$CONFIG_FILES libltdl/Makefile" ;;
15698 "messages/Makefile") CONFIG_FILES="$CONFIG_FILES messages/Makefile" ;;
15699 "modules/Makefile") CONFIG_FILES="$CONFIG_FILES modules/Makefile" ;;
15700 "modules/core/Makefile") CONFIG_FILES="$CONFIG_FILES modules/core/Makefile" ;;
15701 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
15702 "help/Makefile") CONFIG_FILES="$CONFIG_FILES help/Makefile" ;;
15703 "help/opers/Makefile") CONFIG_FILES="$CONFIG_FILES help/opers/Makefile" ;;
15704 "help/users/Makefile") CONFIG_FILES="$CONFIG_FILES help/users/Makefile" ;;
15705 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
15706
15707 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15708 esac
15709 done
15710
15711
15712 # If the user did not use the arguments to specify the items to instantiate,
15713 # then the envvar interface is used. Set only those that are not.
15714 # We use the long form for the default assignment because of an extremely
15715 # bizarre bug on SunOS 4.1.3.
15716 if $ac_need_defaults; then
15717 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15718 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15719 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15720 fi
15721
15722 # Have a temporary directory for convenience. Make it in the build tree
15723 # simply because there is no reason against having it here, and in addition,
15724 # creating and moving files from /tmp can sometimes cause problems.
15725 # Hook for its removal unless debugging.
15726 # Note that there is a small window in which the directory will not be cleaned:
15727 # after its creation but before its name has been assigned to `$tmp'.
15728 $debug ||
15729 {
15730 tmp= ac_tmp=
15731 trap 'exit_status=$?
15732 : "${ac_tmp:=$tmp}"
15733 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
15734 ' 0
15735 trap 'as_fn_exit 1' 1 2 13 15
15736 }
15737 # Create a (secure) tmp directory for tmp files.
15738
15739 {
15740 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15741 test -d "$tmp"
15742 } ||
15743 {
15744 tmp=./conf$$-$RANDOM
15745 (umask 077 && mkdir "$tmp")
15746 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
15747 ac_tmp=$tmp
15748
15749 # Set up the scripts for CONFIG_FILES section.
15750 # No need to generate them if there are no CONFIG_FILES.
15751 # This happens for instance with `./config.status config.h'.
15752 if test -n "$CONFIG_FILES"; then
15753
15754
15755 ac_cr=`echo X | tr X '\015'`
15756 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15757 # But we know of no other shell where ac_cr would be empty at this
15758 # point, so we can use a bashism as a fallback.
15759 if test "x$ac_cr" = x; then
15760 eval ac_cr=\$\'\\r\'
15761 fi
15762 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15763 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15764 ac_cs_awk_cr='\\r'
15765 else
15766 ac_cs_awk_cr=$ac_cr
15767 fi
15768
15769 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
15770 _ACEOF
15771
15772
15773 {
15774 echo "cat >conf$$subs.awk <<_ACEOF" &&
15775 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15776 echo "_ACEOF"
15777 } >conf$$subs.sh ||
15778 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15779 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
15780 ac_delim='%!_!# '
15781 for ac_last_try in false false false false false :; do
15782 . ./conf$$subs.sh ||
15783 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15784
15785 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15786 if test $ac_delim_n = $ac_delim_num; then
15787 break
15788 elif $ac_last_try; then
15789 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15790 else
15791 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15792 fi
15793 done
15794 rm -f conf$$subs.sh
15795
15796 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15797 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
15798 _ACEOF
15799 sed -n '
15800 h
15801 s/^/S["/; s/!.*/"]=/
15802 p
15803 g
15804 s/^[^!]*!//
15805 :repl
15806 t repl
15807 s/'"$ac_delim"'$//
15808 t delim
15809 :nl
15810 h
15811 s/\(.\{148\}\)..*/\1/
15812 t more1
15813 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15814 p
15815 n
15816 b repl
15817 :more1
15818 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15819 p
15820 g
15821 s/.\{148\}//
15822 t nl
15823 :delim
15824 h
15825 s/\(.\{148\}\)..*/\1/
15826 t more2
15827 s/["\\]/\\&/g; s/^/"/; s/$/"/
15828 p
15829 b
15830 :more2
15831 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15832 p
15833 g
15834 s/.\{148\}//
15835 t delim
15836 ' <conf$$subs.awk | sed '
15837 /^[^""]/{
15838 N
15839 s/\n//
15840 }
15841 ' >>$CONFIG_STATUS || ac_write_fail=1
15842 rm -f conf$$subs.awk
15843 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15844 _ACAWK
15845 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
15846 for (key in S) S_is_set[key] = 1
15847 FS = ""
15848
15849 }
15850 {
15851 line = $ 0
15852 nfields = split(line, field, "@")
15853 substed = 0
15854 len = length(field[1])
15855 for (i = 2; i < nfields; i++) {
15856 key = field[i]
15857 keylen = length(key)
15858 if (S_is_set[key]) {
15859 value = S[key]
15860 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15861 len += length(value) + length(field[++i])
15862 substed = 1
15863 } else
15864 len += 1 + keylen
15865 }
15866
15867 print line
15868 }
15869
15870 _ACAWK
15871 _ACEOF
15872 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15873 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15874 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15875 else
15876 cat
15877 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
15878 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
15879 _ACEOF
15880
15881 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
15882 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
15883 # trailing colons and then remove the whole line if VPATH becomes empty
15884 # (actually we leave an empty line to preserve line numbers).
15885 if test "x$srcdir" = x.; then
15886 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
15887 h
15888 s///
15889 s/^/:/
15890 s/[ ]*$/:/
15891 s/:\$(srcdir):/:/g
15892 s/:\${srcdir}:/:/g
15893 s/:@srcdir@:/:/g
15894 s/^:*//
15895 s/:*$//
15896 x
15897 s/\(=[ ]*\).*/\1/
15898 G
15899 s/\n//
15900 s/^[^=]*=[ ]*$//
15901 }'
15902 fi
15903
15904 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15905 fi # test -n "$CONFIG_FILES"
15906
15907 # Set up the scripts for CONFIG_HEADERS section.
15908 # No need to generate them if there are no CONFIG_HEADERS.
15909 # This happens for instance with `./config.status Makefile'.
15910 if test -n "$CONFIG_HEADERS"; then
15911 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
15912 BEGIN {
15913 _ACEOF
15914
15915 # Transform confdefs.h into an awk script `defines.awk', embedded as
15916 # here-document in config.status, that substitutes the proper values into
15917 # config.h.in to produce config.h.
15918
15919 # Create a delimiter string that does not exist in confdefs.h, to ease
15920 # handling of long lines.
15921 ac_delim='%!_!# '
15922 for ac_last_try in false false :; do
15923 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
15924 if test -z "$ac_tt"; then
15925 break
15926 elif $ac_last_try; then
15927 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
15928 else
15929 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15930 fi
15931 done
15932
15933 # For the awk script, D is an array of macro values keyed by name,
15934 # likewise P contains macro parameters if any. Preserve backslash
15935 # newline sequences.
15936
15937 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15938 sed -n '
15939 s/.\{148\}/&'"$ac_delim"'/g
15940 t rset
15941 :rset
15942 s/^[ ]*#[ ]*define[ ][ ]*/ /
15943 t def
15944 d
15945 :def
15946 s/\\$//
15947 t bsnl
15948 s/["\\]/\\&/g
15949 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15950 D["\1"]=" \3"/p
15951 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
15952 d
15953 :bsnl
15954 s/["\\]/\\&/g
15955 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15956 D["\1"]=" \3\\\\\\n"\\/p
15957 t cont
15958 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15959 t cont
15960 d
15961 :cont
15962 n
15963 s/.\{148\}/&'"$ac_delim"'/g
15964 t clear
15965 :clear
15966 s/\\$//
15967 t bsnlc
15968 s/["\\]/\\&/g; s/^/"/; s/$/"/p
15969 d
15970 :bsnlc
15971 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15972 b cont
15973 ' <confdefs.h | sed '
15974 s/'"$ac_delim"'/"\\\
15975 "/g' >>$CONFIG_STATUS || ac_write_fail=1
15976
15977 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15978 for (key in D) D_is_set[key] = 1
15979 FS = ""
15980 }
15981 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15982 line = \$ 0
15983 split(line, arg, " ")
15984 if (arg[1] == "#") {
15985 defundef = arg[2]
15986 mac1 = arg[3]
15987 } else {
15988 defundef = substr(arg[1], 2)
15989 mac1 = arg[2]
15990 }
15991 split(mac1, mac2, "(") #)
15992 macro = mac2[1]
15993 prefix = substr(line, 1, index(line, defundef) - 1)
15994 if (D_is_set[macro]) {
15995 # Preserve the white space surrounding the "#".
15996 print prefix "define", macro P[macro] D[macro]
15997 next
15998 } else {
15999 # Replace #undef with comments. This is necessary, for example,
16000 # in the case of _POSIX_SOURCE, which is predefined and required
16001 # on some systems where configure will not decide to define it.
16002 if (defundef == "undef") {
16003 print "/*", prefix defundef, macro, "*/"
16004 next
16005 }
16006 }
16007 }
16008 { print }
16009 _ACAWK
16010 _ACEOF
16011 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16012 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
16013 fi # test -n "$CONFIG_HEADERS"
16014
16015
16016 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
16017 shift
16018 for ac_tag
16019 do
16020 case $ac_tag in
16021 :[FHLC]) ac_mode=$ac_tag; continue;;
16022 esac
16023 case $ac_mode$ac_tag in
16024 :[FHL]*:*);;
16025 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
16026 :[FH]-) ac_tag=-:-;;
16027 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16028 esac
16029 ac_save_IFS=$IFS
16030 IFS=:
16031 set x $ac_tag
16032 IFS=$ac_save_IFS
16033 shift
16034 ac_file=$1
16035 shift
16036
16037 case $ac_mode in
16038 :L) ac_source=$1;;
16039 :[FH])
16040 ac_file_inputs=
16041 for ac_f
16042 do
16043 case $ac_f in
16044 -) ac_f="$ac_tmp/stdin";;
16045 *) # Look for the file first in the build tree, then in the source tree
16046 # (if the path is not absolute). The absolute path cannot be DOS-style,
16047 # because $ac_f cannot contain `:'.
16048 test -f "$ac_f" ||
16049 case $ac_f in
16050 [\\/$]*) false;;
16051 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16052 esac ||
16053 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16054 esac
16055 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16056 as_fn_append ac_file_inputs " '$ac_f'"
16057 done
16058
16059 # Let's still pretend it is `configure' which instantiates (i.e., don't
16060 # use $as_me), people would be surprised to read:
16061 # /* config.h. Generated by config.status. */
16062 configure_input='Generated from '`
16063 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16064 `' by configure.'
16065 if test x"$ac_file" != x-; then
16066 configure_input="$ac_file. $configure_input"
16067 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16068 $as_echo "$as_me: creating $ac_file" >&6;}
16069 fi
16070 # Neutralize special characters interpreted by sed in replacement strings.
16071 case $configure_input in #(
16072 *\&* | *\|* | *\\* )
16073 ac_sed_conf_input=`$as_echo "$configure_input" |
16074 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16075 *) ac_sed_conf_input=$configure_input;;
16076 esac
16077
16078 case $ac_tag in
16079 *:-:* | *:-) cat >"$ac_tmp/stdin" \
16080 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
16081 esac
16082 ;;
16083 esac
16084
16085 ac_dir=`$as_dirname -- "$ac_file" ||
16086 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16087 X"$ac_file" : 'X\(//\)[^/]' \| \
16088 X"$ac_file" : 'X\(//\)$' \| \
16089 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16090 $as_echo X"$ac_file" |
16091 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16092 s//\1/
16093 q
16094 }
16095 /^X\(\/\/\)[^/].*/{
16096 s//\1/
16097 q
16098 }
16099 /^X\(\/\/\)$/{
16100 s//\1/
16101 q
16102 }
16103 /^X\(\/\).*/{
16104 s//\1/
16105 q
16106 }
16107 s/.*/./; q'`
16108 as_dir="$ac_dir"; as_fn_mkdir_p
16109 ac_builddir=.
16110
16111 case "$ac_dir" in
16112 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16113 *)
16114 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16115 # A ".." for each directory in $ac_dir_suffix.
16116 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16117 case $ac_top_builddir_sub in
16118 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16119 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16120 esac ;;
16121 esac
16122 ac_abs_top_builddir=$ac_pwd
16123 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16124 # for backward compatibility:
16125 ac_top_builddir=$ac_top_build_prefix
16126
16127 case $srcdir in
16128 .) # We are building in place.
16129 ac_srcdir=.
16130 ac_top_srcdir=$ac_top_builddir_sub
16131 ac_abs_top_srcdir=$ac_pwd ;;
16132 [\\/]* | ?:[\\/]* ) # Absolute name.
16133 ac_srcdir=$srcdir$ac_dir_suffix;
16134 ac_top_srcdir=$srcdir
16135 ac_abs_top_srcdir=$srcdir ;;
16136 *) # Relative name.
16137 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16138 ac_top_srcdir=$ac_top_build_prefix$srcdir
16139 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16140 esac
16141 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16142
16143
16144 case $ac_mode in
16145 :F)
16146 #
16147 # CONFIG_FILE
16148 #
16149
16150 case $INSTALL in
16151 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16152 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16153 esac
16154 ac_MKDIR_P=$MKDIR_P
16155 case $MKDIR_P in
16156 [\\/$]* | ?:[\\/]* ) ;;
16157 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16158 esac
16159 _ACEOF
16160
16161 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16162 # If the template does not know about datarootdir, expand it.
16163 # FIXME: This hack should be removed a few years after 2.60.
16164 ac_datarootdir_hack=; ac_datarootdir_seen=
16165 ac_sed_dataroot='
16166 /datarootdir/ {
16167 p
16168 q
16169 }
16170 /@datadir@/p
16171 /@docdir@/p
16172 /@infodir@/p
16173 /@localedir@/p
16174 /@mandir@/p'
16175 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16176 *datarootdir*) ac_datarootdir_seen=yes;;
16177 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16178 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16179 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16180 _ACEOF
16181 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16182 ac_datarootdir_hack='
16183 s&@datadir@&$datadir&g
16184 s&@docdir@&$docdir&g
16185 s&@infodir@&$infodir&g
16186 s&@localedir@&$localedir&g
16187 s&@mandir@&$mandir&g
16188 s&\\\${datarootdir}&$datarootdir&g' ;;
16189 esac
16190 _ACEOF
16191
16192 # Neutralize VPATH when `$srcdir' = `.'.
16193 # Shell code in configure.ac might set extrasub.
16194 # FIXME: do we really want to maintain this feature?
16195 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16196 ac_sed_extra="$ac_vpsub
16197 $extrasub
16198 _ACEOF
16199 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16200 :t
16201 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16202 s|@configure_input@|$ac_sed_conf_input|;t t
16203 s&@top_builddir@&$ac_top_builddir_sub&;t t
16204 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16205 s&@srcdir@&$ac_srcdir&;t t
16206 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16207 s&@top_srcdir@&$ac_top_srcdir&;t t
16208 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16209 s&@builddir@&$ac_builddir&;t t
16210 s&@abs_builddir@&$ac_abs_builddir&;t t
16211 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16212 s&@INSTALL@&$ac_INSTALL&;t t
16213 s&@MKDIR_P@&$ac_MKDIR_P&;t t
16214 $ac_datarootdir_hack
16215 "
16216 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
16217 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16218
16219 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16220 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16221 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
16222 "$ac_tmp/out"`; test -z "$ac_out"; } &&
16223 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16224 which seems to be undefined. Please make sure it is defined" >&5
16225 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16226 which seems to be undefined. Please make sure it is defined" >&2;}
16227
16228 rm -f "$ac_tmp/stdin"
16229 case $ac_file in
16230 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16231 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16232 esac \
16233 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16234 ;;
16235 :H)
16236 #
16237 # CONFIG_HEADER
16238 #
16239 if test x"$ac_file" != x-; then
16240 {
16241 $as_echo "/* $configure_input */" \
16242 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16243 } >"$ac_tmp/config.h" \
16244 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16245 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
16246 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16247 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16248 else
16249 rm -f "$ac_file"
16250 mv "$ac_tmp/config.h" "$ac_file" \
16251 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16252 fi
16253 else
16254 $as_echo "/* $configure_input */" \
16255 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
16256 || as_fn_error $? "could not create -" "$LINENO" 5
16257 fi
16258 # Compute "$ac_file"'s index in $config_headers.
16259 _am_arg="$ac_file"
16260 _am_stamp_count=1
16261 for _am_header in $config_headers :; do
16262 case $_am_header in
16263 $_am_arg | $_am_arg:* )
16264 break ;;
16265 * )
16266 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16267 esac
16268 done
16269 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16270 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16271 X"$_am_arg" : 'X\(//\)[^/]' \| \
16272 X"$_am_arg" : 'X\(//\)$' \| \
16273 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16274 $as_echo X"$_am_arg" |
16275 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16276 s//\1/
16277 q
16278 }
16279 /^X\(\/\/\)[^/].*/{
16280 s//\1/
16281 q
16282 }
16283 /^X\(\/\/\)$/{
16284 s//\1/
16285 q
16286 }
16287 /^X\(\/\).*/{
16288 s//\1/
16289 q
16290 }
16291 s/.*/./; q'`/stamp-h$_am_stamp_count
16292 ;;
16293
16294 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16295 $as_echo "$as_me: executing $ac_file commands" >&6;}
16296 ;;
16297 esac
16298
16299
16300 case $ac_file$ac_mode in
16301 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16302 # Autoconf 2.62 quotes --file arguments for eval, but not when files
16303 # are listed without --file. Let's play safe and only enable the eval
16304 # if we detect the quoting.
16305 case $CONFIG_FILES in
16306 *\'*) eval set x "$CONFIG_FILES" ;;
16307 *) set x $CONFIG_FILES ;;
16308 esac
16309 shift
16310 for mf
16311 do
16312 # Strip MF so we end up with the name of the file.
16313 mf=`echo "$mf" | sed -e 's/:.*$//'`
16314 # Check whether this is an Automake generated Makefile or not.
16315 # We used to match only the files named `Makefile.in', but
16316 # some people rename them; so instead we look at the file content.
16317 # Grep'ing the first line is not enough: some people post-process
16318 # each Makefile.in and add a new line on top of each file to say so.
16319 # Grep'ing the whole file is not good either: AIX grep has a line
16320 # limit of 2048, but all sed's we know have understand at least 4000.
16321 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
16322 dirpart=`$as_dirname -- "$mf" ||
16323 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16324 X"$mf" : 'X\(//\)[^/]' \| \
16325 X"$mf" : 'X\(//\)$' \| \
16326 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16327 $as_echo X"$mf" |
16328 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16329 s//\1/
16330 q
16331 }
16332 /^X\(\/\/\)[^/].*/{
16333 s//\1/
16334 q
16335 }
16336 /^X\(\/\/\)$/{
16337 s//\1/
16338 q
16339 }
16340 /^X\(\/\).*/{
16341 s//\1/
16342 q
16343 }
16344 s/.*/./; q'`
16345 else
16346 continue
16347 fi
16348 # Extract the definition of DEPDIR, am__include, and am__quote
16349 # from the Makefile without running `make'.
16350 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16351 test -z "$DEPDIR" && continue
16352 am__include=`sed -n 's/^am__include = //p' < "$mf"`
16353 test -z "am__include" && continue
16354 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16355 # When using ansi2knr, U may be empty or an underscore; expand it
16356 U=`sed -n 's/^U = //p' < "$mf"`
16357 # Find all dependency output files, they are included files with
16358 # $(DEPDIR) in their names. We invoke sed twice because it is the
16359 # simplest approach to changing $(DEPDIR) to its actual value in the
16360 # expansion.
16361 for file in `sed -n "
16362 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16363 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
16364 # Make sure the directory exists.
16365 test -f "$dirpart/$file" && continue
16366 fdir=`$as_dirname -- "$file" ||
16367 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16368 X"$file" : 'X\(//\)[^/]' \| \
16369 X"$file" : 'X\(//\)$' \| \
16370 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
16371 $as_echo X"$file" |
16372 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16373 s//\1/
16374 q
16375 }
16376 /^X\(\/\/\)[^/].*/{
16377 s//\1/
16378 q
16379 }
16380 /^X\(\/\/\)$/{
16381 s//\1/
16382 q
16383 }
16384 /^X\(\/\).*/{
16385 s//\1/
16386 q
16387 }
16388 s/.*/./; q'`
16389 as_dir=$dirpart/$fdir; as_fn_mkdir_p
16390 # echo "creating $dirpart/$file"
16391 echo '# dummy' > "$dirpart/$file"
16392 done
16393 done
16394 }
16395 ;;
16396 "libtool":C)
16397
16398 # See if we are running on zsh, and set the options which allow our
16399 # commands through without removal of \ escapes.
16400 if test -n "${ZSH_VERSION+set}" ; then
16401 setopt NO_GLOB_SUBST
16402 fi
16403
16404 cfgfile="${ofile}T"
16405 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16406 $RM "$cfgfile"
16407
16408 cat <<_LT_EOF >> "$cfgfile"
16409 #! $SHELL
16410
16411 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16412 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
16413 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16414 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
16415 #
16416 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
16417 # 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
16418 # Inc.
16419 # Written by Gordon Matzigkeit, 1996
16420 #
16421 # This file is part of GNU Libtool.
16422 #
16423 # GNU Libtool is free software; you can redistribute it and/or
16424 # modify it under the terms of the GNU General Public License as
16425 # published by the Free Software Foundation; either version 2 of
16426 # the License, or (at your option) any later version.
16427 #
16428 # As a special exception to the GNU General Public License,
16429 # if you distribute this file as part of a program or library that
16430 # is built using GNU Libtool, you may include this file under the
16431 # same distribution terms that you use for the rest of that program.
16432 #
16433 # GNU Libtool is distributed in the hope that it will be useful,
16434 # but WITHOUT ANY WARRANTY; without even the implied warranty of
16435 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16436 # GNU General Public License for more details.
16437 #
16438 # You should have received a copy of the GNU General Public License
16439 # along with GNU Libtool; see the file COPYING. If not, a copy
16440 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
16441 # obtained by writing to the Free Software Foundation, Inc.,
16442 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16443
16444
16445 # The names of the tagged configurations supported by this script.
16446 available_tags=""
16447
16448 # ### BEGIN LIBTOOL CONFIG
16449
16450 # Which release of libtool.m4 was used?
16451 macro_version=$macro_version
16452 macro_revision=$macro_revision
16453
16454 # Whether or not to build static libraries.
16455 build_old_libs=$enable_static
16456
16457 # Whether or not to build shared libraries.
16458 build_libtool_libs=$enable_shared
16459
16460 # What type of objects to build.
16461 pic_mode=$pic_mode
16462
16463 # Whether or not to optimize for fast installation.
16464 fast_install=$enable_fast_install
16465
16466 # Shell to use when invoking shell scripts.
16467 SHELL=$lt_SHELL
16468
16469 # An echo program that protects backslashes.
16470 ECHO=$lt_ECHO
16471
16472 # The host system.
16473 host_alias=$host_alias
16474 host=$host
16475 host_os=$host_os
16476
16477 # The build system.
16478 build_alias=$build_alias
16479 build=$build
16480 build_os=$build_os
16481
16482 # A sed program that does not truncate output.
16483 SED=$lt_SED
16484
16485 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
16486 Xsed="\$SED -e 1s/^X//"
16487
16488 # A grep program that handles long lines.
16489 GREP=$lt_GREP
16490
16491 # An ERE matcher.
16492 EGREP=$lt_EGREP
16493
16494 # A literal string matcher.
16495 FGREP=$lt_FGREP
16496
16497 # A BSD- or MS-compatible name lister.
16498 NM=$lt_NM
16499
16500 # Whether we need soft or hard links.
16501 LN_S=$lt_LN_S
16502
16503 # What is the maximum length of a command?
16504 max_cmd_len=$max_cmd_len
16505
16506 # Object file suffix (normally "o").
16507 objext=$ac_objext
16508
16509 # Executable file suffix (normally "").
16510 exeext=$exeext
16511
16512 # whether the shell understands "unset".
16513 lt_unset=$lt_unset
16514
16515 # turn spaces into newlines.
16516 SP2NL=$lt_lt_SP2NL
16517
16518 # turn newlines into spaces.
16519 NL2SP=$lt_lt_NL2SP
16520
16521 # convert \$build file names to \$host format.
16522 to_host_file_cmd=$lt_cv_to_host_file_cmd
16523
16524 # convert \$build files to toolchain format.
16525 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
16526
16527 # An object symbol dumper.
16528 OBJDUMP=$lt_OBJDUMP
16529
16530 # Method to check whether dependent libraries are shared objects.
16531 deplibs_check_method=$lt_deplibs_check_method
16532
16533 # Command to use when deplibs_check_method = "file_magic".
16534 file_magic_cmd=$lt_file_magic_cmd
16535
16536 # How to find potential files when deplibs_check_method = "file_magic".
16537 file_magic_glob=$lt_file_magic_glob
16538
16539 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
16540 want_nocaseglob=$lt_want_nocaseglob
16541
16542 # DLL creation program.
16543 DLLTOOL=$lt_DLLTOOL
16544
16545 # Command to associate shared and link libraries.
16546 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
16547
16548 # The archiver.
16549 AR=$lt_AR
16550
16551 # Flags to create an archive.
16552 AR_FLAGS=$lt_AR_FLAGS
16553
16554 # How to feed a file listing to the archiver.
16555 archiver_list_spec=$lt_archiver_list_spec
16556
16557 # A symbol stripping program.
16558 STRIP=$lt_STRIP
16559
16560 # Commands used to install an old-style archive.
16561 RANLIB=$lt_RANLIB
16562 old_postinstall_cmds=$lt_old_postinstall_cmds
16563 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16564
16565 # Whether to use a lock for old archive extraction.
16566 lock_old_archive_extraction=$lock_old_archive_extraction
16567
16568 # A C compiler.
16569 LTCC=$lt_CC
16570
16571 # LTCC compiler flags.
16572 LTCFLAGS=$lt_CFLAGS
16573
16574 # Take the output of nm and produce a listing of raw symbols and C names.
16575 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16576
16577 # Transform the output of nm in a proper C declaration.
16578 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16579
16580 # Transform the output of nm in a C name address pair.
16581 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16582
16583 # Transform the output of nm in a C name address pair when lib prefix is needed.
16584 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16585
16586 # Specify filename containing input files for \$NM.
16587 nm_file_list_spec=$lt_nm_file_list_spec
16588
16589 # The root where to search for dependent libraries,and in which our libraries should be installed.
16590 lt_sysroot=$lt_sysroot
16591
16592 # The name of the directory that contains temporary libtool files.
16593 objdir=$objdir
16594
16595 # Used to examine libraries when file_magic_cmd begins with "file".
16596 MAGIC_CMD=$MAGIC_CMD
16597
16598 # Must we lock files when doing compilation?
16599 need_locks=$lt_need_locks
16600
16601 # Manifest tool.
16602 MANIFEST_TOOL=$lt_MANIFEST_TOOL
16603
16604 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16605 DSYMUTIL=$lt_DSYMUTIL
16606
16607 # Tool to change global to local symbols on Mac OS X.
16608 NMEDIT=$lt_NMEDIT
16609
16610 # Tool to manipulate fat objects and archives on Mac OS X.
16611 LIPO=$lt_LIPO
16612
16613 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
16614 OTOOL=$lt_OTOOL
16615
16616 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16617 OTOOL64=$lt_OTOOL64
16618
16619 # Old archive suffix (normally "a").
16620 libext=$libext
16621
16622 # Shared library suffix (normally ".so").
16623 shrext_cmds=$lt_shrext_cmds
16624
16625 # The commands to extract the exported symbol list from a shared archive.
16626 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16627
16628 # Variables whose values should be saved in libtool wrapper scripts and
16629 # restored at link time.
16630 variables_saved_for_relink=$lt_variables_saved_for_relink
16631
16632 # Do we need the "lib" prefix for modules?
16633 need_lib_prefix=$need_lib_prefix
16634
16635 # Do we need a version for libraries?
16636 need_version=$need_version
16637
16638 # Library versioning type.
16639 version_type=$version_type
16640
16641 # Shared library runtime path variable.
16642 runpath_var=$runpath_var
16643
16644 # Shared library path variable.
16645 shlibpath_var=$shlibpath_var
16646
16647 # Is shlibpath searched before the hard-coded library search path?
16648 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16649
16650 # Format of library name prefix.
16651 libname_spec=$lt_libname_spec
16652
16653 # List of archive names. First name is the real one, the rest are links.
16654 # The last name is the one that the linker finds with -lNAME
16655 library_names_spec=$lt_library_names_spec
16656
16657 # The coded name of the library, if different from the real name.
16658 soname_spec=$lt_soname_spec
16659
16660 # Permission mode override for installation of shared libraries.
16661 install_override_mode=$lt_install_override_mode
16662
16663 # Command to use after installation of a shared archive.
16664 postinstall_cmds=$lt_postinstall_cmds
16665
16666 # Command to use after uninstallation of a shared archive.
16667 postuninstall_cmds=$lt_postuninstall_cmds
16668
16669 # Commands used to finish a libtool library installation in a directory.
16670 finish_cmds=$lt_finish_cmds
16671
16672 # As "finish_cmds", except a single script fragment to be evaled but
16673 # not shown.
16674 finish_eval=$lt_finish_eval
16675
16676 # Whether we should hardcode library paths into libraries.
16677 hardcode_into_libs=$hardcode_into_libs
16678
16679 # Compile-time system search path for libraries.
16680 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16681
16682 # Run-time system search path for libraries.
16683 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16684
16685 # Whether dlopen is supported.
16686 dlopen_support=$enable_dlopen
16687
16688 # Whether dlopen of programs is supported.
16689 dlopen_self=$enable_dlopen_self
16690
16691 # Whether dlopen of statically linked programs is supported.
16692 dlopen_self_static=$enable_dlopen_self_static
16693
16694 # Commands to strip libraries.
16695 old_striplib=$lt_old_striplib
16696 striplib=$lt_striplib
16697
16698
16699 # The linker used to build libraries.
16700 LD=$lt_LD
16701
16702 # How to create reloadable object files.
16703 reload_flag=$lt_reload_flag
16704 reload_cmds=$lt_reload_cmds
16705
16706 # Commands used to build an old-style archive.
16707 old_archive_cmds=$lt_old_archive_cmds
16708
16709 # A language specific compiler.
16710 CC=$lt_compiler
16711
16712 # Is the compiler the GNU compiler?
16713 with_gcc=$GCC
16714
16715 # Compiler flag to turn off builtin functions.
16716 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16717
16718 # Additional compiler flags for building library objects.
16719 pic_flag=$lt_lt_prog_compiler_pic
16720
16721 # How to pass a linker flag through the compiler.
16722 wl=$lt_lt_prog_compiler_wl
16723
16724 # Compiler flag to prevent dynamic linking.
16725 link_static_flag=$lt_lt_prog_compiler_static
16726
16727 # Does compiler simultaneously support -c and -o options?
16728 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16729
16730 # Whether or not to add -lc for building shared libraries.
16731 build_libtool_need_lc=$archive_cmds_need_lc
16732
16733 # Whether or not to disallow shared libs when runtime libs are static.
16734 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16735
16736 # Compiler flag to allow reflexive dlopens.
16737 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16738
16739 # Compiler flag to generate shared objects directly from archives.
16740 whole_archive_flag_spec=$lt_whole_archive_flag_spec
16741
16742 # Whether the compiler copes with passing no objects directly.
16743 compiler_needs_object=$lt_compiler_needs_object
16744
16745 # Create an old-style archive from a shared archive.
16746 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16747
16748 # Create a temporary old-style archive to link instead of a shared archive.
16749 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16750
16751 # Commands used to build a shared archive.
16752 archive_cmds=$lt_archive_cmds
16753 archive_expsym_cmds=$lt_archive_expsym_cmds
16754
16755 # Commands used to build a loadable module if different from building
16756 # a shared archive.
16757 module_cmds=$lt_module_cmds
16758 module_expsym_cmds=$lt_module_expsym_cmds
16759
16760 # Whether we are building with GNU ld or not.
16761 with_gnu_ld=$lt_with_gnu_ld
16762
16763 # Flag that allows shared libraries with undefined symbols to be built.
16764 allow_undefined_flag=$lt_allow_undefined_flag
16765
16766 # Flag that enforces no undefined symbols.
16767 no_undefined_flag=$lt_no_undefined_flag
16768
16769 # Flag to hardcode \$libdir into a binary during linking.
16770 # This must work even if \$libdir does not exist
16771 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16772
16773 # If ld is used when linking, flag to hardcode \$libdir into a binary
16774 # during linking. This must work even if \$libdir does not exist.
16775 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
16776
16777 # Whether we need a single "-rpath" flag with a separated argument.
16778 hardcode_libdir_separator=$lt_hardcode_libdir_separator
16779
16780 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16781 # DIR into the resulting binary.
16782 hardcode_direct=$hardcode_direct
16783
16784 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16785 # DIR into the resulting binary and the resulting library dependency is
16786 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
16787 # library is relocated.
16788 hardcode_direct_absolute=$hardcode_direct_absolute
16789
16790 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16791 # into the resulting binary.
16792 hardcode_minus_L=$hardcode_minus_L
16793
16794 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16795 # into the resulting binary.
16796 hardcode_shlibpath_var=$hardcode_shlibpath_var
16797
16798 # Set to "yes" if building a shared library automatically hardcodes DIR
16799 # into the library and all subsequent libraries and executables linked
16800 # against it.
16801 hardcode_automatic=$hardcode_automatic
16802
16803 # Set to yes if linker adds runtime paths of dependent libraries
16804 # to runtime path list.
16805 inherit_rpath=$inherit_rpath
16806
16807 # Whether libtool must link a program against all its dependency libraries.
16808 link_all_deplibs=$link_all_deplibs
16809
16810 # Set to "yes" if exported symbols are required.
16811 always_export_symbols=$always_export_symbols
16812
16813 # The commands to list exported symbols.
16814 export_symbols_cmds=$lt_export_symbols_cmds
16815
16816 # Symbols that should not be listed in the preloaded symbols.
16817 exclude_expsyms=$lt_exclude_expsyms
16818
16819 # Symbols that must always be exported.
16820 include_expsyms=$lt_include_expsyms
16821
16822 # Commands necessary for linking programs (against libraries) with templates.
16823 prelink_cmds=$lt_prelink_cmds
16824
16825 # Commands necessary for finishing linking programs.
16826 postlink_cmds=$lt_postlink_cmds
16827
16828 # Specify filename containing input files.
16829 file_list_spec=$lt_file_list_spec
16830
16831 # How to hardcode a shared library path into an executable.
16832 hardcode_action=$hardcode_action
16833
16834 # ### END LIBTOOL CONFIG
16835
16836 _LT_EOF
16837
16838 case $host_os in
16839 aix3*)
16840 cat <<\_LT_EOF >> "$cfgfile"
16841 # AIX sometimes has problems with the GCC collect2 program. For some
16842 # reason, if we set the COLLECT_NAMES environment variable, the problems
16843 # vanish in a puff of smoke.
16844 if test "X${COLLECT_NAMES+set}" != Xset; then
16845 COLLECT_NAMES=
16846 export COLLECT_NAMES
16847 fi
16848 _LT_EOF
16849 ;;
16850 esac
16851
16852
16853 ltmain="$ac_aux_dir/ltmain.sh"
16854
16855
16856 # We use sed instead of cat because bash on DJGPP gets confused if
16857 # if finds mixed CR/LF and LF-only lines. Since sed operates in
16858 # text mode, it properly converts lines to CR/LF. This bash problem
16859 # is reportedly fixed, but why not run on old versions too?
16860 sed '$q' "$ltmain" >> "$cfgfile" \
16861 || (rm -f "$cfgfile"; exit 1)
16862
16863 if test x"$xsi_shell" = xyes; then
16864 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
16865 func_dirname ()\
16866 {\
16867 \ case ${1} in\
16868 \ */*) func_dirname_result="${1%/*}${2}" ;;\
16869 \ * ) func_dirname_result="${3}" ;;\
16870 \ esac\
16871 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
16872 && mv -f "$cfgfile.tmp" "$cfgfile" \
16873 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16874 test 0 -eq $? || _lt_function_replace_fail=:
16875
16876
16877 sed -e '/^func_basename ()$/,/^} # func_basename /c\
16878 func_basename ()\
16879 {\
16880 \ func_basename_result="${1##*/}"\
16881 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
16882 && mv -f "$cfgfile.tmp" "$cfgfile" \
16883 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16884 test 0 -eq $? || _lt_function_replace_fail=:
16885
16886
16887 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
16888 func_dirname_and_basename ()\
16889 {\
16890 \ case ${1} in\
16891 \ */*) func_dirname_result="${1%/*}${2}" ;;\
16892 \ * ) func_dirname_result="${3}" ;;\
16893 \ esac\
16894 \ func_basename_result="${1##*/}"\
16895 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
16896 && mv -f "$cfgfile.tmp" "$cfgfile" \
16897 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16898 test 0 -eq $? || _lt_function_replace_fail=:
16899
16900
16901 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
16902 func_stripname ()\
16903 {\
16904 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
16905 \ # positional parameters, so assign one to ordinary parameter first.\
16906 \ func_stripname_result=${3}\
16907 \ func_stripname_result=${func_stripname_result#"${1}"}\
16908 \ func_stripname_result=${func_stripname_result%"${2}"}\
16909 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
16910 && mv -f "$cfgfile.tmp" "$cfgfile" \
16911 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16912 test 0 -eq $? || _lt_function_replace_fail=:
16913
16914
16915 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
16916 func_split_long_opt ()\
16917 {\
16918 \ func_split_long_opt_name=${1%%=*}\
16919 \ func_split_long_opt_arg=${1#*=}\
16920 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
16921 && mv -f "$cfgfile.tmp" "$cfgfile" \
16922 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16923 test 0 -eq $? || _lt_function_replace_fail=:
16924
16925
16926 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
16927 func_split_short_opt ()\
16928 {\
16929 \ func_split_short_opt_arg=${1#??}\
16930 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
16931 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
16932 && mv -f "$cfgfile.tmp" "$cfgfile" \
16933 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16934 test 0 -eq $? || _lt_function_replace_fail=:
16935
16936
16937 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
16938 func_lo2o ()\
16939 {\
16940 \ case ${1} in\
16941 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
16942 \ *) func_lo2o_result=${1} ;;\
16943 \ esac\
16944 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
16945 && mv -f "$cfgfile.tmp" "$cfgfile" \
16946 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16947 test 0 -eq $? || _lt_function_replace_fail=:
16948
16949
16950 sed -e '/^func_xform ()$/,/^} # func_xform /c\
16951 func_xform ()\
16952 {\
16953 func_xform_result=${1%.*}.lo\
16954 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
16955 && mv -f "$cfgfile.tmp" "$cfgfile" \
16956 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16957 test 0 -eq $? || _lt_function_replace_fail=:
16958
16959
16960 sed -e '/^func_arith ()$/,/^} # func_arith /c\
16961 func_arith ()\
16962 {\
16963 func_arith_result=$(( $* ))\
16964 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
16965 && mv -f "$cfgfile.tmp" "$cfgfile" \
16966 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16967 test 0 -eq $? || _lt_function_replace_fail=:
16968
16969
16970 sed -e '/^func_len ()$/,/^} # func_len /c\
16971 func_len ()\
16972 {\
16973 func_len_result=${#1}\
16974 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
16975 && mv -f "$cfgfile.tmp" "$cfgfile" \
16976 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16977 test 0 -eq $? || _lt_function_replace_fail=:
16978
16979 fi
16980
16981 if test x"$lt_shell_append" = xyes; then
16982 sed -e '/^func_append ()$/,/^} # func_append /c\
16983 func_append ()\
16984 {\
16985 eval "${1}+=\\${2}"\
16986 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
16987 && mv -f "$cfgfile.tmp" "$cfgfile" \
16988 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16989 test 0 -eq $? || _lt_function_replace_fail=:
16990
16991
16992 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
16993 func_append_quoted ()\
16994 {\
16995 \ func_quote_for_eval "${2}"\
16996 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
16997 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
16998 && mv -f "$cfgfile.tmp" "$cfgfile" \
16999 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17000 test 0 -eq $? || _lt_function_replace_fail=:
17001
17002
17003 # Save a `func_append' function call where possible by direct use of '+='
17004 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
17005 && mv -f "$cfgfile.tmp" "$cfgfile" \
17006 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17007 test 0 -eq $? || _lt_function_replace_fail=:
17008 else
17009 # Save a `func_append' function call even when '+=' is not available
17010 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
17011 && mv -f "$cfgfile.tmp" "$cfgfile" \
17012 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17013 test 0 -eq $? || _lt_function_replace_fail=:
17014 fi
17015
17016 if test x"$_lt_function_replace_fail" = x":"; then
17017 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
17018 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
17019 fi
17020
17021
17022 mv -f "$cfgfile" "$ofile" ||
17023 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17024 chmod +x "$ofile"
17025
17026 ;;
17027
17028 esac
17029 done # for ac_tag
17030
17031
17032 as_fn_exit 0
17033 _ACEOF
17034 ac_clean_files=$ac_clean_files_save
17035
17036 test $ac_write_fail = 0 ||
17037 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
17038
17039
17040 # configure is writing to config.log, and then calls config.status.
17041 # config.status does its own redirection, appending to config.log.
17042 # Unfortunately, on DOS this fails, as config.log is still kept open
17043 # by configure, so config.status won't be able to write to it; its
17044 # output is simply discarded. So we exec the FD to /dev/null,
17045 # effectively closing config.log, so it can be properly (re)opened and
17046 # appended to by config.status. When coming back to configure, we
17047 # need to make the FD available again.
17048 if test "$no_create" != yes; then
17049 ac_cs_success=:
17050 ac_config_status_args=
17051 test "$silent" = yes &&
17052 ac_config_status_args="$ac_config_status_args --quiet"
17053 exec 5>/dev/null
17054 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17055 exec 5>>config.log
17056 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17057 # would make configure fail if this is the last instruction.
17058 $ac_cs_success || as_fn_exit 1
17059 fi
17060 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17061 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17062 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17063 fi
17064

Properties

Name Value
svn:executable *