ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/ircd-hybrid-8/configure
Revision: 1374
Committed: Fri Apr 27 07:53:40 2012 UTC (11 years, 11 months ago) by michael
File size: 491283 byte(s)
Log Message:
- acinclude.m4: replace all occurrences of AC_HELP_STRING with AS_HELP_STRING

File Contents

# Content
1 #! /bin/sh
2 # From configure.ac Id: configure.ac 1373 2012-04-27 07:32:34Z michael .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.69 for ircd-hybrid 8beta1.
5 #
6 # Report bugs to <bugs@ircd-hybrid.org>.
7 #
8 #
9 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
10 #
11 #
12 # This configure script is free software; the Free Software Foundation
13 # gives unlimited permission to copy, distribute and modify it.
14 ## -------------------- ##
15 ## M4sh Initialization. ##
16 ## -------------------- ##
17
18 # Be more Bourne compatible
19 DUALCASE=1; export DUALCASE # for MKS sh
20 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
21 emulate sh
22 NULLCMD=:
23 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
24 # is contrary to our usage. Disable this feature.
25 alias -g '${1+"$@"}'='"$@"'
26 setopt NO_GLOB_SUBST
27 else
28 case `(set -o) 2>/dev/null` in #(
29 *posix*) :
30 set -o posix ;; #(
31 *) :
32 ;;
33 esac
34 fi
35
36
37 as_nl='
38 '
39 export as_nl
40 # Printing a long string crashes Solaris 7 /usr/bin/printf.
41 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
44 # Prefer a ksh shell builtin over an external printf program on Solaris,
45 # but without wasting forks for bash or zsh.
46 if test -z "$BASH_VERSION$ZSH_VERSION" \
47 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='print -r --'
49 as_echo_n='print -rn --'
50 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
51 as_echo='printf %s\n'
52 as_echo_n='printf %s'
53 else
54 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
55 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
56 as_echo_n='/usr/ucb/echo -n'
57 else
58 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
59 as_echo_n_body='eval
60 arg=$1;
61 case $arg in #(
62 *"$as_nl"*)
63 expr "X$arg" : "X\\(.*\\)$as_nl";
64 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65 esac;
66 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
67 '
68 export as_echo_n_body
69 as_echo_n='sh -c $as_echo_n_body as_echo'
70 fi
71 export as_echo_body
72 as_echo='sh -c $as_echo_body as_echo'
73 fi
74
75 # The user is always right.
76 if test "${PATH_SEPARATOR+set}" != set; then
77 PATH_SEPARATOR=:
78 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
79 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
80 PATH_SEPARATOR=';'
81 }
82 fi
83
84
85 # IFS
86 # We need space, tab and new line, in precisely that order. Quoting is
87 # there to prevent editors from complaining about space-tab.
88 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
89 # splitting by setting IFS to empty value.)
90 IFS=" "" $as_nl"
91
92 # Find who we are. Look in the path if we contain no directory separator.
93 as_myself=
94 case $0 in #((
95 *[\\/]* ) as_myself=$0 ;;
96 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97 for as_dir in $PATH
98 do
99 IFS=$as_save_IFS
100 test -z "$as_dir" && as_dir=.
101 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
102 done
103 IFS=$as_save_IFS
104
105 ;;
106 esac
107 # We did not find ourselves, most probably we were run as `sh COMMAND'
108 # in which case we are not to be found in the path.
109 if test "x$as_myself" = x; then
110 as_myself=$0
111 fi
112 if test ! -f "$as_myself"; then
113 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114 exit 1
115 fi
116
117 # Unset variables that we do not need and which cause bugs (e.g. in
118 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
119 # suppresses any "Segmentation fault" message there. '((' could
120 # trigger a bug in pdksh 5.2.14.
121 for as_var in BASH_ENV ENV MAIL MAILPATH
122 do eval test x\${$as_var+set} = xset \
123 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
124 done
125 PS1='$ '
126 PS2='> '
127 PS4='+ '
128
129 # NLS nuisances.
130 LC_ALL=C
131 export LC_ALL
132 LANGUAGE=C
133 export LANGUAGE
134
135 # CDPATH.
136 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137
138 # Use a proper internal environment variable to ensure we don't fall
139 # into an infinite loop, continuously re-executing ourselves.
140 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
141 _as_can_reexec=no; export _as_can_reexec;
142 # We cannot yet assume a decent shell, so we have to provide a
143 # neutralization value for shells without unset; and this also
144 # works around shells that cannot unset nonexistent variables.
145 # Preserve -v and -x to the replacement shell.
146 BASH_ENV=/dev/null
147 ENV=/dev/null
148 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
149 case $- in # ((((
150 *v*x* | *x*v* ) as_opts=-vx ;;
151 *v* ) as_opts=-v ;;
152 *x* ) as_opts=-x ;;
153 * ) as_opts= ;;
154 esac
155 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
156 # Admittedly, this is quite paranoid, since all the known shells bail
157 # out after a failed `exec'.
158 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
159 as_fn_exit 255
160 fi
161 # We don't want this to propagate to other subprocesses.
162 { _as_can_reexec=; unset _as_can_reexec;}
163 if test "x$CONFIG_SHELL" = x; then
164 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
165 emulate sh
166 NULLCMD=:
167 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
168 # is contrary to our usage. Disable this feature.
169 alias -g '\${1+\"\$@\"}'='\"\$@\"'
170 setopt NO_GLOB_SUBST
171 else
172 case \`(set -o) 2>/dev/null\` in #(
173 *posix*) :
174 set -o posix ;; #(
175 *) :
176 ;;
177 esac
178 fi
179 "
180 as_required="as_fn_return () { (exit \$1); }
181 as_fn_success () { as_fn_return 0; }
182 as_fn_failure () { as_fn_return 1; }
183 as_fn_ret_success () { return 0; }
184 as_fn_ret_failure () { return 1; }
185
186 exitcode=0
187 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
188 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
189 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
190 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
191 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
192
193 else
194 exitcode=1; echo positional parameters were not saved.
195 fi
196 test x\$exitcode = x0 || exit 1
197 test -x / || exit 1"
198 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
199 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
200 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
201 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
202
203 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
204 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207 PATH=/empty FPATH=/empty; export PATH FPATH
208 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
209 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
210 test \$(( 1 + 1 )) = 2 || exit 1"
211 if (eval "$as_required") 2>/dev/null; then :
212 as_have_required=yes
213 else
214 as_have_required=no
215 fi
216 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
217
218 else
219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
220 as_found=false
221 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
222 do
223 IFS=$as_save_IFS
224 test -z "$as_dir" && as_dir=.
225 as_found=:
226 case $as_dir in #(
227 /*)
228 for as_base in sh bash ksh sh5; do
229 # Try only shells that exist, to save several forks.
230 as_shell=$as_dir/$as_base
231 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
232 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
233 CONFIG_SHELL=$as_shell as_have_required=yes
234 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
235 break 2
236 fi
237 fi
238 done;;
239 esac
240 as_found=false
241 done
242 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
243 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
244 CONFIG_SHELL=$SHELL as_have_required=yes
245 fi; }
246 IFS=$as_save_IFS
247
248
249 if test "x$CONFIG_SHELL" != x; then :
250 export CONFIG_SHELL
251 # We cannot yet assume a decent shell, so we have to provide a
252 # neutralization value for shells without unset; and this also
253 # works around shells that cannot unset nonexistent variables.
254 # Preserve -v and -x to the replacement shell.
255 BASH_ENV=/dev/null
256 ENV=/dev/null
257 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
258 case $- in # ((((
259 *v*x* | *x*v* ) as_opts=-vx ;;
260 *v* ) as_opts=-v ;;
261 *x* ) as_opts=-x ;;
262 * ) as_opts= ;;
263 esac
264 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
265 # Admittedly, this is quite paranoid, since all the known shells bail
266 # out after a failed `exec'.
267 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
268 exit 255
269 fi
270
271 if test x$as_have_required = xno; then :
272 $as_echo "$0: This script requires a shell more modern than all"
273 $as_echo "$0: the shells that I found on your system."
274 if test x${ZSH_VERSION+set} = xset ; then
275 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
276 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
277 else
278 $as_echo "$0: Please tell bug-autoconf@gnu.org and
279 $0: bugs@ircd-hybrid.org about your system, including any
280 $0: error possibly output before this message. Then install
281 $0: a modern shell, or manually run the script under such a
282 $0: shell if you do have one."
283 fi
284 exit 1
285 fi
286 fi
287 fi
288 SHELL=${CONFIG_SHELL-/bin/sh}
289 export SHELL
290 # Unset more variables known to interfere with behavior of common tools.
291 CLICOLOR_FORCE= GREP_OPTIONS=
292 unset CLICOLOR_FORCE GREP_OPTIONS
293
294 ## --------------------- ##
295 ## M4sh Shell Functions. ##
296 ## --------------------- ##
297 # as_fn_unset VAR
298 # ---------------
299 # Portably unset VAR.
300 as_fn_unset ()
301 {
302 { eval $1=; unset $1;}
303 }
304 as_unset=as_fn_unset
305
306 # as_fn_set_status STATUS
307 # -----------------------
308 # Set $? to STATUS, without forking.
309 as_fn_set_status ()
310 {
311 return $1
312 } # as_fn_set_status
313
314 # as_fn_exit STATUS
315 # -----------------
316 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
317 as_fn_exit ()
318 {
319 set +e
320 as_fn_set_status $1
321 exit $1
322 } # as_fn_exit
323
324 # as_fn_mkdir_p
325 # -------------
326 # Create "$as_dir" as a directory, including parents if necessary.
327 as_fn_mkdir_p ()
328 {
329
330 case $as_dir in #(
331 -*) as_dir=./$as_dir;;
332 esac
333 test -d "$as_dir" || eval $as_mkdir_p || {
334 as_dirs=
335 while :; do
336 case $as_dir in #(
337 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
338 *) as_qdir=$as_dir;;
339 esac
340 as_dirs="'$as_qdir' $as_dirs"
341 as_dir=`$as_dirname -- "$as_dir" ||
342 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
343 X"$as_dir" : 'X\(//\)[^/]' \| \
344 X"$as_dir" : 'X\(//\)$' \| \
345 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
346 $as_echo X"$as_dir" |
347 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
348 s//\1/
349 q
350 }
351 /^X\(\/\/\)[^/].*/{
352 s//\1/
353 q
354 }
355 /^X\(\/\/\)$/{
356 s//\1/
357 q
358 }
359 /^X\(\/\).*/{
360 s//\1/
361 q
362 }
363 s/.*/./; q'`
364 test -d "$as_dir" && break
365 done
366 test -z "$as_dirs" || eval "mkdir $as_dirs"
367 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
368
369
370 } # as_fn_mkdir_p
371
372 # as_fn_executable_p FILE
373 # -----------------------
374 # Test if FILE is an executable regular file.
375 as_fn_executable_p ()
376 {
377 test -f "$1" && test -x "$1"
378 } # as_fn_executable_p
379 # as_fn_append VAR VALUE
380 # ----------------------
381 # Append the text in VALUE to the end of the definition contained in VAR. Take
382 # advantage of any shell optimizations that allow amortized linear growth over
383 # repeated appends, instead of the typical quadratic growth present in naive
384 # implementations.
385 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
386 eval 'as_fn_append ()
387 {
388 eval $1+=\$2
389 }'
390 else
391 as_fn_append ()
392 {
393 eval $1=\$$1\$2
394 }
395 fi # as_fn_append
396
397 # as_fn_arith ARG...
398 # ------------------
399 # Perform arithmetic evaluation on the ARGs, and store the result in the
400 # global $as_val. Take advantage of shells that can avoid forks. The arguments
401 # must be portable across $(()) and expr.
402 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
403 eval 'as_fn_arith ()
404 {
405 as_val=$(( $* ))
406 }'
407 else
408 as_fn_arith ()
409 {
410 as_val=`expr "$@" || test $? -eq 1`
411 }
412 fi # as_fn_arith
413
414
415 # as_fn_error STATUS ERROR [LINENO LOG_FD]
416 # ----------------------------------------
417 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
418 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
419 # script with STATUS, using 1 if that was 0.
420 as_fn_error ()
421 {
422 as_status=$1; test $as_status -eq 0 && as_status=1
423 if test "$4"; then
424 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
425 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
426 fi
427 $as_echo "$as_me: error: $2" >&2
428 as_fn_exit $as_status
429 } # as_fn_error
430
431 if expr a : '\(a\)' >/dev/null 2>&1 &&
432 test "X`expr 00001 : '.*\(...\)'`" = X001; then
433 as_expr=expr
434 else
435 as_expr=false
436 fi
437
438 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
439 as_basename=basename
440 else
441 as_basename=false
442 fi
443
444 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
445 as_dirname=dirname
446 else
447 as_dirname=false
448 fi
449
450 as_me=`$as_basename -- "$0" ||
451 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
452 X"$0" : 'X\(//\)$' \| \
453 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
454 $as_echo X/"$0" |
455 sed '/^.*\/\([^/][^/]*\)\/*$/{
456 s//\1/
457 q
458 }
459 /^X\/\(\/\/\)$/{
460 s//\1/
461 q
462 }
463 /^X\/\(\/\).*/{
464 s//\1/
465 q
466 }
467 s/.*/./; q'`
468
469 # Avoid depending upon Character Ranges.
470 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
471 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
472 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
473 as_cr_digits='0123456789'
474 as_cr_alnum=$as_cr_Letters$as_cr_digits
475
476
477 as_lineno_1=$LINENO as_lineno_1a=$LINENO
478 as_lineno_2=$LINENO as_lineno_2a=$LINENO
479 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
480 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
481 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
482 sed -n '
483 p
484 /[$]LINENO/=
485 ' <$as_myself |
486 sed '
487 s/[$]LINENO.*/&-/
488 t lineno
489 b
490 :lineno
491 N
492 :loop
493 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
494 t loop
495 s/-\n.*//
496 ' >$as_me.lineno &&
497 chmod +x "$as_me.lineno" ||
498 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
499
500 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
501 # already done that, so ensure we don't try to do so again and fall
502 # in an infinite loop. This has already happened in practice.
503 _as_can_reexec=no; export _as_can_reexec
504 # Don't try to exec as it changes $[0], causing all sort of problems
505 # (the dirname of $[0] is not the place where we might find the
506 # original and so on. Autoconf is especially sensitive to this).
507 . "./$as_me.lineno"
508 # Exit status is that of the last command.
509 exit
510 }
511
512 ECHO_C= ECHO_N= ECHO_T=
513 case `echo -n x` in #(((((
514 -n*)
515 case `echo 'xy\c'` in
516 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
517 xy) ECHO_C='\c';;
518 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
519 ECHO_T=' ';;
520 esac;;
521 *)
522 ECHO_N='-n';;
523 esac
524
525 rm -f conf$$ conf$$.exe conf$$.file
526 if test -d conf$$.dir; then
527 rm -f conf$$.dir/conf$$.file
528 else
529 rm -f conf$$.dir
530 mkdir conf$$.dir 2>/dev/null
531 fi
532 if (echo >conf$$.file) 2>/dev/null; then
533 if ln -s conf$$.file conf$$ 2>/dev/null; then
534 as_ln_s='ln -s'
535 # ... but there are two gotchas:
536 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
537 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
538 # In both cases, we have to default to `cp -pR'.
539 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
540 as_ln_s='cp -pR'
541 elif ln conf$$.file conf$$ 2>/dev/null; then
542 as_ln_s=ln
543 else
544 as_ln_s='cp -pR'
545 fi
546 else
547 as_ln_s='cp -pR'
548 fi
549 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
550 rmdir conf$$.dir 2>/dev/null
551
552 if mkdir -p . 2>/dev/null; then
553 as_mkdir_p='mkdir -p "$as_dir"'
554 else
555 test -d ./-p && rmdir ./-p
556 as_mkdir_p=false
557 fi
558
559 as_test_x='test -x'
560 as_executable_p=as_fn_executable_p
561
562 # Sed expression to map a string onto a valid CPP name.
563 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
564
565 # Sed expression to map a string onto a valid variable name.
566 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
567
568 lt_ltdl_dir='libltdl'
569
570 SHELL=${CONFIG_SHELL-/bin/sh}
571
572
573 test -n "$DJDIR" || exec 7<&0 </dev/null
574 exec 6>&1
575
576 # Name of the host.
577 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
578 # so uname gets run too.
579 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
580
581 #
582 # Initializations.
583 #
584 ac_default_prefix=/usr/local
585 ac_clean_files=
586 ac_config_libobj_dir=.
587 LIBOBJS=
588 cross_compiling=no
589 subdirs=
590 MFLAGS=
591 MAKEFLAGS=
592
593 # Identity of this package.
594 PACKAGE_NAME='ircd-hybrid'
595 PACKAGE_TARNAME='ircd-hybrid'
596 PACKAGE_VERSION='8beta1'
597 PACKAGE_STRING='ircd-hybrid 8beta1'
598 PACKAGE_BUGREPORT='bugs@ircd-hybrid.org'
599 PACKAGE_URL=''
600
601 ac_unique_file="src/ircd.c"
602 # Factoring default headers for most tests.
603 ac_includes_default="\
604 #include <stdio.h>
605 #ifdef HAVE_SYS_TYPES_H
606 # include <sys/types.h>
607 #endif
608 #ifdef HAVE_SYS_STAT_H
609 # include <sys/stat.h>
610 #endif
611 #ifdef STDC_HEADERS
612 # include <stdlib.h>
613 # include <stddef.h>
614 #else
615 # ifdef HAVE_STDLIB_H
616 # include <stdlib.h>
617 # endif
618 #endif
619 #ifdef HAVE_STRING_H
620 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
621 # include <memory.h>
622 # endif
623 # include <string.h>
624 #endif
625 #ifdef HAVE_STRINGS_H
626 # include <strings.h>
627 #endif
628 #ifdef HAVE_INTTYPES_H
629 # include <inttypes.h>
630 #endif
631 #ifdef HAVE_STDINT_H
632 # include <stdint.h>
633 #endif
634 #ifdef HAVE_UNISTD_H
635 # include <unistd.h>
636 #endif"
637
638 ac_func_list=
639 ac_header_list=
640 ac_subst_vars='ltdl_LTLIBOBJS
641 ltdl_LIBOBJS
642 am__EXEEXT_FALSE
643 am__EXEEXT_TRUE
644 LTLIBOBJS
645 LIBOBJS
646 LOCALSTATEDIR
647 DATADIR
648 LIBDIR
649 SYSCONFDIR
650 PREFIX
651 EFNET_FALSE
652 EFNET_TRUE
653 ENABLE_SSL_FALSE
654 ENABLE_SSL_TRUE
655 LTDLOPEN
656 LT_CONFIG_H
657 CONVENIENCE_LTDL_FALSE
658 CONVENIENCE_LTDL_TRUE
659 INSTALL_LTDL_FALSE
660 INSTALL_LTDL_TRUE
661 ARGZ_H
662 sys_symbol_underscore
663 LIBADD_DL
664 LT_DLPREOPEN
665 LIBADD_DLD_LINK
666 LIBADD_SHL_LOAD
667 LIBADD_DLOPEN
668 LT_DLLOADERS
669 INCLTDL
670 LTDLINCL
671 LTDLDEPS
672 LIBLTDL
673 CPP
674 OTOOL64
675 OTOOL
676 LIPO
677 NMEDIT
678 DSYMUTIL
679 MANIFEST_TOOL
680 RANLIB
681 ac_ct_AR
682 AR
683 DLLTOOL
684 OBJDUMP
685 LN_S
686 NM
687 ac_ct_DUMPBIN
688 DUMPBIN
689 LD
690 FGREP
691 EGREP
692 GREP
693 SED
694 host_os
695 host_vendor
696 host_cpu
697 host
698 build_os
699 build_vendor
700 build_cpu
701 build
702 LIBTOOL
703 LEXLIB
704 LEX_OUTPUT_ROOT
705 LEX
706 YFLAGS
707 YACC
708 am__fastdepCC_FALSE
709 am__fastdepCC_TRUE
710 CCDEPMODE
711 am__nodep
712 AMDEPBACKSLASH
713 AMDEP_FALSE
714 AMDEP_TRUE
715 am__quote
716 am__include
717 DEPDIR
718 OBJEXT
719 EXEEXT
720 ac_ct_CC
721 CPPFLAGS
722 LDFLAGS
723 CFLAGS
724 CC
725 MAINT
726 MAINTAINER_MODE_FALSE
727 MAINTAINER_MODE_TRUE
728 am__untar
729 am__tar
730 AMTAR
731 am__leading_dot
732 SET_MAKE
733 AWK
734 mkdir_p
735 MKDIR_P
736 INSTALL_STRIP_PROGRAM
737 STRIP
738 install_sh
739 MAKEINFO
740 AUTOHEADER
741 AUTOMAKE
742 AUTOCONF
743 ACLOCAL
744 VERSION
745 PACKAGE
746 CYGPATH_W
747 am__isrc
748 INSTALL_DATA
749 INSTALL_SCRIPT
750 INSTALL_PROGRAM
751 target_alias
752 host_alias
753 build_alias
754 LIBS
755 ECHO_T
756 ECHO_N
757 ECHO_C
758 DEFS
759 mandir
760 localedir
761 libdir
762 psdir
763 pdfdir
764 dvidir
765 htmldir
766 infodir
767 docdir
768 oldincludedir
769 includedir
770 localstatedir
771 sharedstatedir
772 sysconfdir
773 datadir
774 datarootdir
775 libexecdir
776 sbindir
777 bindir
778 program_transform_name
779 prefix
780 exec_prefix
781 PACKAGE_URL
782 PACKAGE_BUGREPORT
783 PACKAGE_STRING
784 PACKAGE_VERSION
785 PACKAGE_TARNAME
786 PACKAGE_NAME
787 PATH_SEPARATOR
788 SHELL'
789 ac_subst_files=''
790 ac_user_opts='
791 enable_option_checking
792 enable_maintainer_mode
793 enable_dependency_tracking
794 enable_static
795 enable_shared
796 with_pic
797 enable_fast_install
798 with_gnu_ld
799 with_sysroot
800 enable_libtool_lock
801 with_included_ltdl
802 with_ltdl_include
803 with_ltdl_lib
804 enable_ltdl_install
805 enable_libpcre
806 enable_openssl
807 enable_assert
808 enable_small_net
809 enable_kqueue
810 enable_epoll
811 enable_devpoll
812 enable_rtsigio
813 enable_poll
814 enable_select
815 with_nicklen
816 with_topiclen
817 enable_efnet
818 enable_halfops
819 enable_debugging
820 enable_warnings
821 '
822 ac_precious_vars='build_alias
823 host_alias
824 target_alias
825 CC
826 CFLAGS
827 LDFLAGS
828 LIBS
829 CPPFLAGS
830 YACC
831 YFLAGS
832 CPP'
833
834
835 # Initialize some variables set by options.
836 ac_init_help=
837 ac_init_version=false
838 ac_unrecognized_opts=
839 ac_unrecognized_sep=
840 # The variables have the same names as the options, with
841 # dashes changed to underlines.
842 cache_file=/dev/null
843 exec_prefix=NONE
844 no_create=
845 no_recursion=
846 prefix=NONE
847 program_prefix=NONE
848 program_suffix=NONE
849 program_transform_name=s,x,x,
850 silent=
851 site=
852 srcdir=
853 verbose=
854 x_includes=NONE
855 x_libraries=NONE
856
857 # Installation directory options.
858 # These are left unexpanded so users can "make install exec_prefix=/foo"
859 # and all the variables that are supposed to be based on exec_prefix
860 # by default will actually change.
861 # Use braces instead of parens because sh, perl, etc. also accept them.
862 # (The list follows the same order as the GNU Coding Standards.)
863 bindir='${exec_prefix}/bin'
864 sbindir='${exec_prefix}/sbin'
865 libexecdir='${exec_prefix}/libexec'
866 datarootdir='${prefix}/share'
867 datadir='${datarootdir}'
868 sysconfdir='${prefix}/etc'
869 sharedstatedir='${prefix}/com'
870 localstatedir='${prefix}/var'
871 includedir='${prefix}/include'
872 oldincludedir='/usr/include'
873 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
874 infodir='${datarootdir}/info'
875 htmldir='${docdir}'
876 dvidir='${docdir}'
877 pdfdir='${docdir}'
878 psdir='${docdir}'
879 libdir='${exec_prefix}/lib'
880 localedir='${datarootdir}/locale'
881 mandir='${datarootdir}/man'
882
883 ac_prev=
884 ac_dashdash=
885 for ac_option
886 do
887 # If the previous option needs an argument, assign it.
888 if test -n "$ac_prev"; then
889 eval $ac_prev=\$ac_option
890 ac_prev=
891 continue
892 fi
893
894 case $ac_option in
895 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
896 *=) ac_optarg= ;;
897 *) ac_optarg=yes ;;
898 esac
899
900 # Accept the important Cygnus configure options, so we can diagnose typos.
901
902 case $ac_dashdash$ac_option in
903 --)
904 ac_dashdash=yes ;;
905
906 -bindir | --bindir | --bindi | --bind | --bin | --bi)
907 ac_prev=bindir ;;
908 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
909 bindir=$ac_optarg ;;
910
911 -build | --build | --buil | --bui | --bu)
912 ac_prev=build_alias ;;
913 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
914 build_alias=$ac_optarg ;;
915
916 -cache-file | --cache-file | --cache-fil | --cache-fi \
917 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
918 ac_prev=cache_file ;;
919 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
920 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
921 cache_file=$ac_optarg ;;
922
923 --config-cache | -C)
924 cache_file=config.cache ;;
925
926 -datadir | --datadir | --datadi | --datad)
927 ac_prev=datadir ;;
928 -datadir=* | --datadir=* | --datadi=* | --datad=*)
929 datadir=$ac_optarg ;;
930
931 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
932 | --dataroo | --dataro | --datar)
933 ac_prev=datarootdir ;;
934 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
935 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
936 datarootdir=$ac_optarg ;;
937
938 -disable-* | --disable-*)
939 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
940 # Reject names that are not valid shell variable names.
941 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
942 as_fn_error $? "invalid feature name: $ac_useropt"
943 ac_useropt_orig=$ac_useropt
944 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
945 case $ac_user_opts in
946 *"
947 "enable_$ac_useropt"
948 "*) ;;
949 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
950 ac_unrecognized_sep=', ';;
951 esac
952 eval enable_$ac_useropt=no ;;
953
954 -docdir | --docdir | --docdi | --doc | --do)
955 ac_prev=docdir ;;
956 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
957 docdir=$ac_optarg ;;
958
959 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
960 ac_prev=dvidir ;;
961 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
962 dvidir=$ac_optarg ;;
963
964 -enable-* | --enable-*)
965 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
966 # Reject names that are not valid shell variable names.
967 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
968 as_fn_error $? "invalid feature name: $ac_useropt"
969 ac_useropt_orig=$ac_useropt
970 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
971 case $ac_user_opts in
972 *"
973 "enable_$ac_useropt"
974 "*) ;;
975 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
976 ac_unrecognized_sep=', ';;
977 esac
978 eval enable_$ac_useropt=\$ac_optarg ;;
979
980 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
981 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
982 | --exec | --exe | --ex)
983 ac_prev=exec_prefix ;;
984 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
985 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
986 | --exec=* | --exe=* | --ex=*)
987 exec_prefix=$ac_optarg ;;
988
989 -gas | --gas | --ga | --g)
990 # Obsolete; use --with-gas.
991 with_gas=yes ;;
992
993 -help | --help | --hel | --he | -h)
994 ac_init_help=long ;;
995 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
996 ac_init_help=recursive ;;
997 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
998 ac_init_help=short ;;
999
1000 -host | --host | --hos | --ho)
1001 ac_prev=host_alias ;;
1002 -host=* | --host=* | --hos=* | --ho=*)
1003 host_alias=$ac_optarg ;;
1004
1005 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1006 ac_prev=htmldir ;;
1007 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1008 | --ht=*)
1009 htmldir=$ac_optarg ;;
1010
1011 -includedir | --includedir | --includedi | --included | --include \
1012 | --includ | --inclu | --incl | --inc)
1013 ac_prev=includedir ;;
1014 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1015 | --includ=* | --inclu=* | --incl=* | --inc=*)
1016 includedir=$ac_optarg ;;
1017
1018 -infodir | --infodir | --infodi | --infod | --info | --inf)
1019 ac_prev=infodir ;;
1020 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1021 infodir=$ac_optarg ;;
1022
1023 -libdir | --libdir | --libdi | --libd)
1024 ac_prev=libdir ;;
1025 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1026 libdir=$ac_optarg ;;
1027
1028 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1029 | --libexe | --libex | --libe)
1030 ac_prev=libexecdir ;;
1031 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1032 | --libexe=* | --libex=* | --libe=*)
1033 libexecdir=$ac_optarg ;;
1034
1035 -localedir | --localedir | --localedi | --localed | --locale)
1036 ac_prev=localedir ;;
1037 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1038 localedir=$ac_optarg ;;
1039
1040 -localstatedir | --localstatedir | --localstatedi | --localstated \
1041 | --localstate | --localstat | --localsta | --localst | --locals)
1042 ac_prev=localstatedir ;;
1043 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1044 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1045 localstatedir=$ac_optarg ;;
1046
1047 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1048 ac_prev=mandir ;;
1049 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1050 mandir=$ac_optarg ;;
1051
1052 -nfp | --nfp | --nf)
1053 # Obsolete; use --without-fp.
1054 with_fp=no ;;
1055
1056 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1057 | --no-cr | --no-c | -n)
1058 no_create=yes ;;
1059
1060 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1061 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1062 no_recursion=yes ;;
1063
1064 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1065 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1066 | --oldin | --oldi | --old | --ol | --o)
1067 ac_prev=oldincludedir ;;
1068 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1069 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1070 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1071 oldincludedir=$ac_optarg ;;
1072
1073 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1074 ac_prev=prefix ;;
1075 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1076 prefix=$ac_optarg ;;
1077
1078 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1079 | --program-pre | --program-pr | --program-p)
1080 ac_prev=program_prefix ;;
1081 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1082 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1083 program_prefix=$ac_optarg ;;
1084
1085 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1086 | --program-suf | --program-su | --program-s)
1087 ac_prev=program_suffix ;;
1088 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1089 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1090 program_suffix=$ac_optarg ;;
1091
1092 -program-transform-name | --program-transform-name \
1093 | --program-transform-nam | --program-transform-na \
1094 | --program-transform-n | --program-transform- \
1095 | --program-transform | --program-transfor \
1096 | --program-transfo | --program-transf \
1097 | --program-trans | --program-tran \
1098 | --progr-tra | --program-tr | --program-t)
1099 ac_prev=program_transform_name ;;
1100 -program-transform-name=* | --program-transform-name=* \
1101 | --program-transform-nam=* | --program-transform-na=* \
1102 | --program-transform-n=* | --program-transform-=* \
1103 | --program-transform=* | --program-transfor=* \
1104 | --program-transfo=* | --program-transf=* \
1105 | --program-trans=* | --program-tran=* \
1106 | --progr-tra=* | --program-tr=* | --program-t=*)
1107 program_transform_name=$ac_optarg ;;
1108
1109 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1110 ac_prev=pdfdir ;;
1111 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1112 pdfdir=$ac_optarg ;;
1113
1114 -psdir | --psdir | --psdi | --psd | --ps)
1115 ac_prev=psdir ;;
1116 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1117 psdir=$ac_optarg ;;
1118
1119 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1120 | -silent | --silent | --silen | --sile | --sil)
1121 silent=yes ;;
1122
1123 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1124 ac_prev=sbindir ;;
1125 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1126 | --sbi=* | --sb=*)
1127 sbindir=$ac_optarg ;;
1128
1129 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1130 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1131 | --sharedst | --shareds | --shared | --share | --shar \
1132 | --sha | --sh)
1133 ac_prev=sharedstatedir ;;
1134 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1135 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1136 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1137 | --sha=* | --sh=*)
1138 sharedstatedir=$ac_optarg ;;
1139
1140 -site | --site | --sit)
1141 ac_prev=site ;;
1142 -site=* | --site=* | --sit=*)
1143 site=$ac_optarg ;;
1144
1145 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1146 ac_prev=srcdir ;;
1147 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1148 srcdir=$ac_optarg ;;
1149
1150 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1151 | --syscon | --sysco | --sysc | --sys | --sy)
1152 ac_prev=sysconfdir ;;
1153 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1154 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1155 sysconfdir=$ac_optarg ;;
1156
1157 -target | --target | --targe | --targ | --tar | --ta | --t)
1158 ac_prev=target_alias ;;
1159 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1160 target_alias=$ac_optarg ;;
1161
1162 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1163 verbose=yes ;;
1164
1165 -version | --version | --versio | --versi | --vers | -V)
1166 ac_init_version=: ;;
1167
1168 -with-* | --with-*)
1169 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1170 # Reject names that are not valid shell variable names.
1171 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1172 as_fn_error $? "invalid package name: $ac_useropt"
1173 ac_useropt_orig=$ac_useropt
1174 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1175 case $ac_user_opts in
1176 *"
1177 "with_$ac_useropt"
1178 "*) ;;
1179 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1180 ac_unrecognized_sep=', ';;
1181 esac
1182 eval with_$ac_useropt=\$ac_optarg ;;
1183
1184 -without-* | --without-*)
1185 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1186 # Reject names that are not valid shell variable names.
1187 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1188 as_fn_error $? "invalid package name: $ac_useropt"
1189 ac_useropt_orig=$ac_useropt
1190 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1191 case $ac_user_opts in
1192 *"
1193 "with_$ac_useropt"
1194 "*) ;;
1195 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1196 ac_unrecognized_sep=', ';;
1197 esac
1198 eval with_$ac_useropt=no ;;
1199
1200 --x)
1201 # Obsolete; use --with-x.
1202 with_x=yes ;;
1203
1204 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1205 | --x-incl | --x-inc | --x-in | --x-i)
1206 ac_prev=x_includes ;;
1207 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1208 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1209 x_includes=$ac_optarg ;;
1210
1211 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1212 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1213 ac_prev=x_libraries ;;
1214 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1215 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1216 x_libraries=$ac_optarg ;;
1217
1218 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1219 Try \`$0 --help' for more information"
1220 ;;
1221
1222 *=*)
1223 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1224 # Reject names that are not valid shell variable names.
1225 case $ac_envvar in #(
1226 '' | [0-9]* | *[!_$as_cr_alnum]* )
1227 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1228 esac
1229 eval $ac_envvar=\$ac_optarg
1230 export $ac_envvar ;;
1231
1232 *)
1233 # FIXME: should be removed in autoconf 3.0.
1234 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1235 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1236 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1237 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1238 ;;
1239
1240 esac
1241 done
1242
1243 if test -n "$ac_prev"; then
1244 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1245 as_fn_error $? "missing argument to $ac_option"
1246 fi
1247
1248 if test -n "$ac_unrecognized_opts"; then
1249 case $enable_option_checking in
1250 no) ;;
1251 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1252 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1253 esac
1254 fi
1255
1256 # Check all directory arguments for consistency.
1257 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1258 datadir sysconfdir sharedstatedir localstatedir includedir \
1259 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1260 libdir localedir mandir
1261 do
1262 eval ac_val=\$$ac_var
1263 # Remove trailing slashes.
1264 case $ac_val in
1265 */ )
1266 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1267 eval $ac_var=\$ac_val;;
1268 esac
1269 # Be sure to have absolute directory names.
1270 case $ac_val in
1271 [\\/$]* | ?:[\\/]* ) continue;;
1272 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1273 esac
1274 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1275 done
1276
1277 # There might be people who depend on the old broken behavior: `$host'
1278 # used to hold the argument of --host etc.
1279 # FIXME: To remove some day.
1280 build=$build_alias
1281 host=$host_alias
1282 target=$target_alias
1283
1284 # FIXME: To remove some day.
1285 if test "x$host_alias" != x; then
1286 if test "x$build_alias" = x; then
1287 cross_compiling=maybe
1288 elif test "x$build_alias" != "x$host_alias"; then
1289 cross_compiling=yes
1290 fi
1291 fi
1292
1293 ac_tool_prefix=
1294 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1295
1296 test "$silent" = yes && exec 6>/dev/null
1297
1298
1299 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1300 ac_ls_di=`ls -di .` &&
1301 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1302 as_fn_error $? "working directory cannot be determined"
1303 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1304 as_fn_error $? "pwd does not report name of working directory"
1305
1306
1307 # Find the source files, if location was not specified.
1308 if test -z "$srcdir"; then
1309 ac_srcdir_defaulted=yes
1310 # Try the directory containing this script, then the parent directory.
1311 ac_confdir=`$as_dirname -- "$as_myself" ||
1312 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1313 X"$as_myself" : 'X\(//\)[^/]' \| \
1314 X"$as_myself" : 'X\(//\)$' \| \
1315 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1316 $as_echo X"$as_myself" |
1317 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1318 s//\1/
1319 q
1320 }
1321 /^X\(\/\/\)[^/].*/{
1322 s//\1/
1323 q
1324 }
1325 /^X\(\/\/\)$/{
1326 s//\1/
1327 q
1328 }
1329 /^X\(\/\).*/{
1330 s//\1/
1331 q
1332 }
1333 s/.*/./; q'`
1334 srcdir=$ac_confdir
1335 if test ! -r "$srcdir/$ac_unique_file"; then
1336 srcdir=..
1337 fi
1338 else
1339 ac_srcdir_defaulted=no
1340 fi
1341 if test ! -r "$srcdir/$ac_unique_file"; then
1342 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1343 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1344 fi
1345 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1346 ac_abs_confdir=`(
1347 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1348 pwd)`
1349 # When building in place, set srcdir=.
1350 if test "$ac_abs_confdir" = "$ac_pwd"; then
1351 srcdir=.
1352 fi
1353 # Remove unnecessary trailing slashes from srcdir.
1354 # Double slashes in file names in object file debugging info
1355 # mess up M-x gdb in Emacs.
1356 case $srcdir in
1357 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1358 esac
1359 for ac_var in $ac_precious_vars; do
1360 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1361 eval ac_env_${ac_var}_value=\$${ac_var}
1362 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1363 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1364 done
1365
1366 #
1367 # Report the --help message.
1368 #
1369 if test "$ac_init_help" = "long"; then
1370 # Omit some internal or obsolete options to make the list less imposing.
1371 # This message is too long to be a string in the A/UX 3.1 sh.
1372 cat <<_ACEOF
1373 \`configure' configures ircd-hybrid 8beta1 to adapt to many kinds of systems.
1374
1375 Usage: $0 [OPTION]... [VAR=VALUE]...
1376
1377 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1378 VAR=VALUE. See below for descriptions of some of the useful variables.
1379
1380 Defaults for the options are specified in brackets.
1381
1382 Configuration:
1383 -h, --help display this help and exit
1384 --help=short display options specific to this package
1385 --help=recursive display the short help of all the included packages
1386 -V, --version display version information and exit
1387 -q, --quiet, --silent do not print \`checking ...' messages
1388 --cache-file=FILE cache test results in FILE [disabled]
1389 -C, --config-cache alias for \`--cache-file=config.cache'
1390 -n, --no-create do not create output files
1391 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1392
1393 Installation directories:
1394 --prefix=PREFIX install architecture-independent files in PREFIX
1395 [$ac_default_prefix]
1396 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1397 [PREFIX]
1398
1399 By default, \`make install' will install all the files in
1400 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1401 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1402 for instance \`--prefix=\$HOME'.
1403
1404 For better control, use the options below.
1405
1406 Fine tuning of the installation directories:
1407 --bindir=DIR user executables [EPREFIX/bin]
1408 --sbindir=DIR system admin executables [EPREFIX/sbin]
1409 --libexecdir=DIR program executables [EPREFIX/libexec]
1410 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1411 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1412 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1413 --libdir=DIR object code libraries [EPREFIX/lib]
1414 --includedir=DIR C header files [PREFIX/include]
1415 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1416 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1417 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1418 --infodir=DIR info documentation [DATAROOTDIR/info]
1419 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1420 --mandir=DIR man documentation [DATAROOTDIR/man]
1421 --docdir=DIR documentation root [DATAROOTDIR/doc/ircd-hybrid]
1422 --htmldir=DIR html documentation [DOCDIR]
1423 --dvidir=DIR dvi documentation [DOCDIR]
1424 --pdfdir=DIR pdf documentation [DOCDIR]
1425 --psdir=DIR ps documentation [DOCDIR]
1426 _ACEOF
1427
1428 cat <<\_ACEOF
1429
1430 Program names:
1431 --program-prefix=PREFIX prepend PREFIX to installed program names
1432 --program-suffix=SUFFIX append SUFFIX to installed program names
1433 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1434
1435 System types:
1436 --build=BUILD configure for building on BUILD [guessed]
1437 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1438 _ACEOF
1439 fi
1440
1441 if test -n "$ac_init_help"; then
1442 case $ac_init_help in
1443 short | recursive ) echo "Configuration of ircd-hybrid 8beta1:";;
1444 esac
1445 cat <<\_ACEOF
1446
1447 Optional Features:
1448 --disable-option-checking ignore unrecognized --enable/--with options
1449 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1450 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1451 --enable-maintainer-mode
1452 enable make rules and dependencies not useful (and
1453 sometimes confusing) to the casual installer
1454 --enable-dependency-tracking
1455 do not reject slow dependency extractors
1456 --disable-dependency-tracking
1457 speeds up one-time build
1458 --enable-static[=PKGS] build static libraries [default=no]
1459 --enable-shared[=PKGS] build shared libraries [default=yes]
1460 --enable-fast-install[=PKGS]
1461 optimize for fast installation [default=yes]
1462 --disable-libtool-lock avoid locking (might break parallel builds)
1463 --enable-ltdl-install install libltdl
1464 --disable-libpcre Disable PCRE support
1465 --enable-openssl=DIR Enable OpenSSL support (DIR optional).
1466 --disable-openssl Disable OpenSSL support.
1467 --enable-assert Enable assert() statements
1468 --enable-small-net Enable small network support.
1469 --enable-kqueue Force kqueue usage.
1470 --enable-epoll Force epoll usage.
1471 --enable-devpoll Force devpoll usage.
1472 --enable-rtsigio Force rtsigio usage.
1473 --enable-poll Force poll usage.
1474 --enable-select Force select usage.
1475 --enable-efnet For IRCDs running on EFnet.
1476 --enable-halfops Enable halfops support.
1477 --enable-debugging Enable debugging.
1478 --enable-warnings Enable compiler warnings.
1479
1480 Optional Packages:
1481 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1482 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1483 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1484 both]
1485 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1486 --with-sysroot=DIR Search for dependent libraries within DIR
1487 (or the compiler's sysroot if not specified).
1488 --with-included-ltdl use the GNU ltdl sources included here
1489 --with-ltdl-include=DIR use the ltdl headers installed in DIR
1490 --with-ltdl-lib=DIR use the libltdl.la installed in DIR
1491 --with-nicklen=<value> Set nickname length (default 9).
1492 --with-topiclen=<value> Set topic length (default 160).
1493
1494 Some influential environment variables:
1495 CC C compiler command
1496 CFLAGS C compiler flags
1497 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1498 nonstandard directory <lib dir>
1499 LIBS libraries to pass to the linker, e.g. -l<library>
1500 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1501 you have headers in a nonstandard directory <include dir>
1502 YACC The `Yet Another Compiler Compiler' implementation to use.
1503 Defaults to the first program found out of: `bison -y', `byacc',
1504 `yacc'.
1505 YFLAGS The list of arguments that will be passed by default to $YACC.
1506 This script will default YFLAGS to the empty string to avoid a
1507 default value of `-d' given by some make applications.
1508 CPP C preprocessor
1509
1510 Use these variables to override the choices made by `configure' or to help
1511 it to find libraries and programs with nonstandard names/locations.
1512
1513 Report bugs to <bugs@ircd-hybrid.org>.
1514 _ACEOF
1515 ac_status=$?
1516 fi
1517
1518 if test "$ac_init_help" = "recursive"; then
1519 # If there are subdirs, report their specific --help.
1520 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1521 test -d "$ac_dir" ||
1522 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1523 continue
1524 ac_builddir=.
1525
1526 case "$ac_dir" in
1527 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1528 *)
1529 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1530 # A ".." for each directory in $ac_dir_suffix.
1531 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1532 case $ac_top_builddir_sub in
1533 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1534 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1535 esac ;;
1536 esac
1537 ac_abs_top_builddir=$ac_pwd
1538 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1539 # for backward compatibility:
1540 ac_top_builddir=$ac_top_build_prefix
1541
1542 case $srcdir in
1543 .) # We are building in place.
1544 ac_srcdir=.
1545 ac_top_srcdir=$ac_top_builddir_sub
1546 ac_abs_top_srcdir=$ac_pwd ;;
1547 [\\/]* | ?:[\\/]* ) # Absolute name.
1548 ac_srcdir=$srcdir$ac_dir_suffix;
1549 ac_top_srcdir=$srcdir
1550 ac_abs_top_srcdir=$srcdir ;;
1551 *) # Relative name.
1552 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1553 ac_top_srcdir=$ac_top_build_prefix$srcdir
1554 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1555 esac
1556 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1557
1558 cd "$ac_dir" || { ac_status=$?; continue; }
1559 # Check for guested configure.
1560 if test -f "$ac_srcdir/configure.gnu"; then
1561 echo &&
1562 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1563 elif test -f "$ac_srcdir/configure"; then
1564 echo &&
1565 $SHELL "$ac_srcdir/configure" --help=recursive
1566 else
1567 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1568 fi || ac_status=$?
1569 cd "$ac_pwd" || { ac_status=$?; break; }
1570 done
1571 fi
1572
1573 test -n "$ac_init_help" && exit $ac_status
1574 if $ac_init_version; then
1575 cat <<\_ACEOF
1576 ircd-hybrid configure 8beta1
1577 generated by GNU Autoconf 2.69
1578
1579 Copyright (C) 2012 Free Software Foundation, Inc.
1580 This configure script is free software; the Free Software Foundation
1581 gives unlimited permission to copy, distribute and modify it.
1582 _ACEOF
1583 exit
1584 fi
1585
1586 ## ------------------------ ##
1587 ## Autoconf initialization. ##
1588 ## ------------------------ ##
1589
1590 # ac_fn_c_try_compile LINENO
1591 # --------------------------
1592 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1593 ac_fn_c_try_compile ()
1594 {
1595 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1596 rm -f conftest.$ac_objext
1597 if { { ac_try="$ac_compile"
1598 case "(($ac_try" in
1599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1600 *) ac_try_echo=$ac_try;;
1601 esac
1602 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1603 $as_echo "$ac_try_echo"; } >&5
1604 (eval "$ac_compile") 2>conftest.err
1605 ac_status=$?
1606 if test -s conftest.err; then
1607 grep -v '^ *+' conftest.err >conftest.er1
1608 cat conftest.er1 >&5
1609 mv -f conftest.er1 conftest.err
1610 fi
1611 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1612 test $ac_status = 0; } && {
1613 test -z "$ac_c_werror_flag" ||
1614 test ! -s conftest.err
1615 } && test -s conftest.$ac_objext; then :
1616 ac_retval=0
1617 else
1618 $as_echo "$as_me: failed program was:" >&5
1619 sed 's/^/| /' conftest.$ac_ext >&5
1620
1621 ac_retval=1
1622 fi
1623 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1624 as_fn_set_status $ac_retval
1625
1626 } # ac_fn_c_try_compile
1627
1628 # ac_fn_c_try_link LINENO
1629 # -----------------------
1630 # Try to link conftest.$ac_ext, and return whether this succeeded.
1631 ac_fn_c_try_link ()
1632 {
1633 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1634 rm -f conftest.$ac_objext conftest$ac_exeext
1635 if { { ac_try="$ac_link"
1636 case "(($ac_try" in
1637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1638 *) ac_try_echo=$ac_try;;
1639 esac
1640 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1641 $as_echo "$ac_try_echo"; } >&5
1642 (eval "$ac_link") 2>conftest.err
1643 ac_status=$?
1644 if test -s conftest.err; then
1645 grep -v '^ *+' conftest.err >conftest.er1
1646 cat conftest.er1 >&5
1647 mv -f conftest.er1 conftest.err
1648 fi
1649 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1650 test $ac_status = 0; } && {
1651 test -z "$ac_c_werror_flag" ||
1652 test ! -s conftest.err
1653 } && test -s conftest$ac_exeext && {
1654 test "$cross_compiling" = yes ||
1655 test -x conftest$ac_exeext
1656 }; then :
1657 ac_retval=0
1658 else
1659 $as_echo "$as_me: failed program was:" >&5
1660 sed 's/^/| /' conftest.$ac_ext >&5
1661
1662 ac_retval=1
1663 fi
1664 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1665 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1666 # interfere with the next link command; also delete a directory that is
1667 # left behind by Apple's compiler. We do this before executing the actions.
1668 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1669 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1670 as_fn_set_status $ac_retval
1671
1672 } # ac_fn_c_try_link
1673
1674 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1675 # -------------------------------------------------------
1676 # Tests whether HEADER exists and can be compiled using the include files in
1677 # INCLUDES, setting the cache variable VAR accordingly.
1678 ac_fn_c_check_header_compile ()
1679 {
1680 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1682 $as_echo_n "checking for $2... " >&6; }
1683 if eval \${$3+:} false; then :
1684 $as_echo_n "(cached) " >&6
1685 else
1686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1687 /* end confdefs.h. */
1688 $4
1689 #include <$2>
1690 _ACEOF
1691 if ac_fn_c_try_compile "$LINENO"; then :
1692 eval "$3=yes"
1693 else
1694 eval "$3=no"
1695 fi
1696 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1697 fi
1698 eval ac_res=\$$3
1699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1700 $as_echo "$ac_res" >&6; }
1701 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1702
1703 } # ac_fn_c_check_header_compile
1704
1705 # ac_fn_c_try_cpp LINENO
1706 # ----------------------
1707 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1708 ac_fn_c_try_cpp ()
1709 {
1710 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1711 if { { ac_try="$ac_cpp conftest.$ac_ext"
1712 case "(($ac_try" in
1713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1714 *) ac_try_echo=$ac_try;;
1715 esac
1716 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1717 $as_echo "$ac_try_echo"; } >&5
1718 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1719 ac_status=$?
1720 if test -s conftest.err; then
1721 grep -v '^ *+' conftest.err >conftest.er1
1722 cat conftest.er1 >&5
1723 mv -f conftest.er1 conftest.err
1724 fi
1725 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1726 test $ac_status = 0; } > conftest.i && {
1727 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1728 test ! -s conftest.err
1729 }; then :
1730 ac_retval=0
1731 else
1732 $as_echo "$as_me: failed program was:" >&5
1733 sed 's/^/| /' conftest.$ac_ext >&5
1734
1735 ac_retval=1
1736 fi
1737 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1738 as_fn_set_status $ac_retval
1739
1740 } # ac_fn_c_try_cpp
1741
1742 # ac_fn_c_try_run LINENO
1743 # ----------------------
1744 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1745 # that executables *can* be run.
1746 ac_fn_c_try_run ()
1747 {
1748 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1749 if { { ac_try="$ac_link"
1750 case "(($ac_try" in
1751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1752 *) ac_try_echo=$ac_try;;
1753 esac
1754 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1755 $as_echo "$ac_try_echo"; } >&5
1756 (eval "$ac_link") 2>&5
1757 ac_status=$?
1758 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1759 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1760 { { case "(($ac_try" in
1761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1762 *) ac_try_echo=$ac_try;;
1763 esac
1764 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1765 $as_echo "$ac_try_echo"; } >&5
1766 (eval "$ac_try") 2>&5
1767 ac_status=$?
1768 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1769 test $ac_status = 0; }; }; then :
1770 ac_retval=0
1771 else
1772 $as_echo "$as_me: program exited with status $ac_status" >&5
1773 $as_echo "$as_me: failed program was:" >&5
1774 sed 's/^/| /' conftest.$ac_ext >&5
1775
1776 ac_retval=$ac_status
1777 fi
1778 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1779 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1780 as_fn_set_status $ac_retval
1781
1782 } # ac_fn_c_try_run
1783
1784 # ac_fn_c_check_func LINENO FUNC VAR
1785 # ----------------------------------
1786 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1787 ac_fn_c_check_func ()
1788 {
1789 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1791 $as_echo_n "checking for $2... " >&6; }
1792 if eval \${$3+:} false; then :
1793 $as_echo_n "(cached) " >&6
1794 else
1795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1796 /* end confdefs.h. */
1797 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1798 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1799 #define $2 innocuous_$2
1800
1801 /* System header to define __stub macros and hopefully few prototypes,
1802 which can conflict with char $2 (); below.
1803 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1804 <limits.h> exists even on freestanding compilers. */
1805
1806 #ifdef __STDC__
1807 # include <limits.h>
1808 #else
1809 # include <assert.h>
1810 #endif
1811
1812 #undef $2
1813
1814 /* Override any GCC internal prototype to avoid an error.
1815 Use char because int might match the return type of a GCC
1816 builtin and then its argument prototype would still apply. */
1817 #ifdef __cplusplus
1818 extern "C"
1819 #endif
1820 char $2 ();
1821 /* The GNU C library defines this for functions which it implements
1822 to always fail with ENOSYS. Some functions are actually named
1823 something starting with __ and the normal name is an alias. */
1824 #if defined __stub_$2 || defined __stub___$2
1825 choke me
1826 #endif
1827
1828 int
1829 main ()
1830 {
1831 return $2 ();
1832 ;
1833 return 0;
1834 }
1835 _ACEOF
1836 if ac_fn_c_try_link "$LINENO"; then :
1837 eval "$3=yes"
1838 else
1839 eval "$3=no"
1840 fi
1841 rm -f core conftest.err conftest.$ac_objext \
1842 conftest$ac_exeext conftest.$ac_ext
1843 fi
1844 eval ac_res=\$$3
1845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1846 $as_echo "$ac_res" >&6; }
1847 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1848
1849 } # ac_fn_c_check_func
1850
1851 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1852 # ---------------------------------------------
1853 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1854 # accordingly.
1855 ac_fn_c_check_decl ()
1856 {
1857 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1858 as_decl_name=`echo $2|sed 's/ *(.*//'`
1859 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1861 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1862 if eval \${$3+:} false; then :
1863 $as_echo_n "(cached) " >&6
1864 else
1865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1866 /* end confdefs.h. */
1867 $4
1868 int
1869 main ()
1870 {
1871 #ifndef $as_decl_name
1872 #ifdef __cplusplus
1873 (void) $as_decl_use;
1874 #else
1875 (void) $as_decl_name;
1876 #endif
1877 #endif
1878
1879 ;
1880 return 0;
1881 }
1882 _ACEOF
1883 if ac_fn_c_try_compile "$LINENO"; then :
1884 eval "$3=yes"
1885 else
1886 eval "$3=no"
1887 fi
1888 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1889 fi
1890 eval ac_res=\$$3
1891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1892 $as_echo "$ac_res" >&6; }
1893 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1894
1895 } # ac_fn_c_check_decl
1896
1897 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1898 # -------------------------------------------
1899 # Tests whether TYPE exists after having included INCLUDES, setting cache
1900 # variable VAR accordingly.
1901 ac_fn_c_check_type ()
1902 {
1903 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1905 $as_echo_n "checking for $2... " >&6; }
1906 if eval \${$3+:} false; then :
1907 $as_echo_n "(cached) " >&6
1908 else
1909 eval "$3=no"
1910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1911 /* end confdefs.h. */
1912 $4
1913 int
1914 main ()
1915 {
1916 if (sizeof ($2))
1917 return 0;
1918 ;
1919 return 0;
1920 }
1921 _ACEOF
1922 if ac_fn_c_try_compile "$LINENO"; then :
1923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1924 /* end confdefs.h. */
1925 $4
1926 int
1927 main ()
1928 {
1929 if (sizeof (($2)))
1930 return 0;
1931 ;
1932 return 0;
1933 }
1934 _ACEOF
1935 if ac_fn_c_try_compile "$LINENO"; then :
1936
1937 else
1938 eval "$3=yes"
1939 fi
1940 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1941 fi
1942 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1943 fi
1944 eval ac_res=\$$3
1945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1946 $as_echo "$ac_res" >&6; }
1947 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1948
1949 } # ac_fn_c_check_type
1950
1951 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1952 # ----------------------------------------------------
1953 # Tries to find if the field MEMBER exists in type AGGR, after including
1954 # INCLUDES, setting cache variable VAR accordingly.
1955 ac_fn_c_check_member ()
1956 {
1957 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1959 $as_echo_n "checking for $2.$3... " >&6; }
1960 if eval \${$4+:} false; then :
1961 $as_echo_n "(cached) " >&6
1962 else
1963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1964 /* end confdefs.h. */
1965 $5
1966 int
1967 main ()
1968 {
1969 static $2 ac_aggr;
1970 if (ac_aggr.$3)
1971 return 0;
1972 ;
1973 return 0;
1974 }
1975 _ACEOF
1976 if ac_fn_c_try_compile "$LINENO"; then :
1977 eval "$4=yes"
1978 else
1979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1980 /* end confdefs.h. */
1981 $5
1982 int
1983 main ()
1984 {
1985 static $2 ac_aggr;
1986 if (sizeof ac_aggr.$3)
1987 return 0;
1988 ;
1989 return 0;
1990 }
1991 _ACEOF
1992 if ac_fn_c_try_compile "$LINENO"; then :
1993 eval "$4=yes"
1994 else
1995 eval "$4=no"
1996 fi
1997 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1998 fi
1999 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2000 fi
2001 eval ac_res=\$$4
2002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2003 $as_echo "$ac_res" >&6; }
2004 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2005
2006 } # ac_fn_c_check_member
2007
2008 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2009 # -------------------------------------------------------
2010 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2011 # the include files in INCLUDES and setting the cache variable VAR
2012 # accordingly.
2013 ac_fn_c_check_header_mongrel ()
2014 {
2015 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2016 if eval \${$3+:} false; then :
2017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2018 $as_echo_n "checking for $2... " >&6; }
2019 if eval \${$3+:} false; then :
2020 $as_echo_n "(cached) " >&6
2021 fi
2022 eval ac_res=\$$3
2023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2024 $as_echo "$ac_res" >&6; }
2025 else
2026 # Is the header compilable?
2027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2028 $as_echo_n "checking $2 usability... " >&6; }
2029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2030 /* end confdefs.h. */
2031 $4
2032 #include <$2>
2033 _ACEOF
2034 if ac_fn_c_try_compile "$LINENO"; then :
2035 ac_header_compiler=yes
2036 else
2037 ac_header_compiler=no
2038 fi
2039 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2041 $as_echo "$ac_header_compiler" >&6; }
2042
2043 # Is the header present?
2044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2045 $as_echo_n "checking $2 presence... " >&6; }
2046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2047 /* end confdefs.h. */
2048 #include <$2>
2049 _ACEOF
2050 if ac_fn_c_try_cpp "$LINENO"; then :
2051 ac_header_preproc=yes
2052 else
2053 ac_header_preproc=no
2054 fi
2055 rm -f conftest.err conftest.i conftest.$ac_ext
2056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2057 $as_echo "$ac_header_preproc" >&6; }
2058
2059 # So? What about this header?
2060 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2061 yes:no: )
2062 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2063 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2064 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2065 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2066 ;;
2067 no:yes:* )
2068 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2069 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2070 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2071 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2072 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2073 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2074 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2075 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2076 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2077 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2078 ( $as_echo "## ----------------------------------- ##
2079 ## Report this to bugs@ircd-hybrid.org ##
2080 ## ----------------------------------- ##"
2081 ) | sed "s/^/$as_me: WARNING: /" >&2
2082 ;;
2083 esac
2084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2085 $as_echo_n "checking for $2... " >&6; }
2086 if eval \${$3+:} false; then :
2087 $as_echo_n "(cached) " >&6
2088 else
2089 eval "$3=\$ac_header_compiler"
2090 fi
2091 eval ac_res=\$$3
2092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2093 $as_echo "$ac_res" >&6; }
2094 fi
2095 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2096
2097 } # ac_fn_c_check_header_mongrel
2098 cat >config.log <<_ACEOF
2099 This file contains any messages produced by compilers while
2100 running configure, to aid debugging if configure makes a mistake.
2101
2102 It was created by ircd-hybrid $as_me 8beta1, which was
2103 generated by GNU Autoconf 2.69. Invocation command line was
2104
2105 $ $0 $@
2106
2107 _ACEOF
2108 exec 5>>config.log
2109 {
2110 cat <<_ASUNAME
2111 ## --------- ##
2112 ## Platform. ##
2113 ## --------- ##
2114
2115 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2116 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2117 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2118 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2119 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2120
2121 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2122 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2123
2124 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2125 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2126 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2127 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2128 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2129 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2130 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2131
2132 _ASUNAME
2133
2134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2135 for as_dir in $PATH
2136 do
2137 IFS=$as_save_IFS
2138 test -z "$as_dir" && as_dir=.
2139 $as_echo "PATH: $as_dir"
2140 done
2141 IFS=$as_save_IFS
2142
2143 } >&5
2144
2145 cat >&5 <<_ACEOF
2146
2147
2148 ## ----------- ##
2149 ## Core tests. ##
2150 ## ----------- ##
2151
2152 _ACEOF
2153
2154
2155 # Keep a trace of the command line.
2156 # Strip out --no-create and --no-recursion so they do not pile up.
2157 # Strip out --silent because we don't want to record it for future runs.
2158 # Also quote any args containing shell meta-characters.
2159 # Make two passes to allow for proper duplicate-argument suppression.
2160 ac_configure_args=
2161 ac_configure_args0=
2162 ac_configure_args1=
2163 ac_must_keep_next=false
2164 for ac_pass in 1 2
2165 do
2166 for ac_arg
2167 do
2168 case $ac_arg in
2169 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2170 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2171 | -silent | --silent | --silen | --sile | --sil)
2172 continue ;;
2173 *\'*)
2174 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2175 esac
2176 case $ac_pass in
2177 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2178 2)
2179 as_fn_append ac_configure_args1 " '$ac_arg'"
2180 if test $ac_must_keep_next = true; then
2181 ac_must_keep_next=false # Got value, back to normal.
2182 else
2183 case $ac_arg in
2184 *=* | --config-cache | -C | -disable-* | --disable-* \
2185 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2186 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2187 | -with-* | --with-* | -without-* | --without-* | --x)
2188 case "$ac_configure_args0 " in
2189 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2190 esac
2191 ;;
2192 -* ) ac_must_keep_next=true ;;
2193 esac
2194 fi
2195 as_fn_append ac_configure_args " '$ac_arg'"
2196 ;;
2197 esac
2198 done
2199 done
2200 { ac_configure_args0=; unset ac_configure_args0;}
2201 { ac_configure_args1=; unset ac_configure_args1;}
2202
2203 # When interrupted or exit'd, cleanup temporary files, and complete
2204 # config.log. We remove comments because anyway the quotes in there
2205 # would cause problems or look ugly.
2206 # WARNING: Use '\'' to represent an apostrophe within the trap.
2207 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2208 trap 'exit_status=$?
2209 # Save into config.log some information that might help in debugging.
2210 {
2211 echo
2212
2213 $as_echo "## ---------------- ##
2214 ## Cache variables. ##
2215 ## ---------------- ##"
2216 echo
2217 # The following way of writing the cache mishandles newlines in values,
2218 (
2219 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2220 eval ac_val=\$$ac_var
2221 case $ac_val in #(
2222 *${as_nl}*)
2223 case $ac_var in #(
2224 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2225 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2226 esac
2227 case $ac_var in #(
2228 _ | IFS | as_nl) ;; #(
2229 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2230 *) { eval $ac_var=; unset $ac_var;} ;;
2231 esac ;;
2232 esac
2233 done
2234 (set) 2>&1 |
2235 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2236 *${as_nl}ac_space=\ *)
2237 sed -n \
2238 "s/'\''/'\''\\\\'\'''\''/g;
2239 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2240 ;; #(
2241 *)
2242 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2243 ;;
2244 esac |
2245 sort
2246 )
2247 echo
2248
2249 $as_echo "## ----------------- ##
2250 ## Output variables. ##
2251 ## ----------------- ##"
2252 echo
2253 for ac_var in $ac_subst_vars
2254 do
2255 eval ac_val=\$$ac_var
2256 case $ac_val in
2257 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2258 esac
2259 $as_echo "$ac_var='\''$ac_val'\''"
2260 done | sort
2261 echo
2262
2263 if test -n "$ac_subst_files"; then
2264 $as_echo "## ------------------- ##
2265 ## File substitutions. ##
2266 ## ------------------- ##"
2267 echo
2268 for ac_var in $ac_subst_files
2269 do
2270 eval ac_val=\$$ac_var
2271 case $ac_val in
2272 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2273 esac
2274 $as_echo "$ac_var='\''$ac_val'\''"
2275 done | sort
2276 echo
2277 fi
2278
2279 if test -s confdefs.h; then
2280 $as_echo "## ----------- ##
2281 ## confdefs.h. ##
2282 ## ----------- ##"
2283 echo
2284 cat confdefs.h
2285 echo
2286 fi
2287 test "$ac_signal" != 0 &&
2288 $as_echo "$as_me: caught signal $ac_signal"
2289 $as_echo "$as_me: exit $exit_status"
2290 } >&5
2291 rm -f core *.core core.conftest.* &&
2292 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2293 exit $exit_status
2294 ' 0
2295 for ac_signal in 1 2 13 15; do
2296 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2297 done
2298 ac_signal=0
2299
2300 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2301 rm -f -r conftest* confdefs.h
2302
2303 $as_echo "/* confdefs.h */" > confdefs.h
2304
2305 # Predefined preprocessor variables.
2306
2307 cat >>confdefs.h <<_ACEOF
2308 #define PACKAGE_NAME "$PACKAGE_NAME"
2309 _ACEOF
2310
2311 cat >>confdefs.h <<_ACEOF
2312 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2313 _ACEOF
2314
2315 cat >>confdefs.h <<_ACEOF
2316 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2317 _ACEOF
2318
2319 cat >>confdefs.h <<_ACEOF
2320 #define PACKAGE_STRING "$PACKAGE_STRING"
2321 _ACEOF
2322
2323 cat >>confdefs.h <<_ACEOF
2324 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2325 _ACEOF
2326
2327 cat >>confdefs.h <<_ACEOF
2328 #define PACKAGE_URL "$PACKAGE_URL"
2329 _ACEOF
2330
2331
2332 # Let the site file select an alternate cache file if it wants to.
2333 # Prefer an explicitly selected file to automatically selected ones.
2334 ac_site_file1=NONE
2335 ac_site_file2=NONE
2336 if test -n "$CONFIG_SITE"; then
2337 # We do not want a PATH search for config.site.
2338 case $CONFIG_SITE in #((
2339 -*) ac_site_file1=./$CONFIG_SITE;;
2340 */*) ac_site_file1=$CONFIG_SITE;;
2341 *) ac_site_file1=./$CONFIG_SITE;;
2342 esac
2343 elif test "x$prefix" != xNONE; then
2344 ac_site_file1=$prefix/share/config.site
2345 ac_site_file2=$prefix/etc/config.site
2346 else
2347 ac_site_file1=$ac_default_prefix/share/config.site
2348 ac_site_file2=$ac_default_prefix/etc/config.site
2349 fi
2350 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2351 do
2352 test "x$ac_site_file" = xNONE && continue
2353 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2354 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2355 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2356 sed 's/^/| /' "$ac_site_file" >&5
2357 . "$ac_site_file" \
2358 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2359 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2360 as_fn_error $? "failed to load site script $ac_site_file
2361 See \`config.log' for more details" "$LINENO" 5; }
2362 fi
2363 done
2364
2365 if test -r "$cache_file"; then
2366 # Some versions of bash will fail to source /dev/null (special files
2367 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2368 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2369 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2370 $as_echo "$as_me: loading cache $cache_file" >&6;}
2371 case $cache_file in
2372 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2373 *) . "./$cache_file";;
2374 esac
2375 fi
2376 else
2377 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2378 $as_echo "$as_me: creating cache $cache_file" >&6;}
2379 >$cache_file
2380 fi
2381
2382 as_fn_append ac_func_list " mmap"
2383 as_fn_append ac_func_list " strtok_r"
2384 as_fn_append ac_func_list " usleep"
2385 as_fn_append ac_func_list " strlcat"
2386 as_fn_append ac_func_list " strlcpy"
2387 as_fn_append ac_header_list " crypt.h"
2388 as_fn_append ac_header_list " sys/resource.h"
2389 as_fn_append ac_header_list " sys/param.h"
2390 as_fn_append ac_header_list " types.h"
2391 as_fn_append ac_header_list " socket.h"
2392 as_fn_append ac_header_list " sys/wait.h"
2393 as_fn_append ac_header_list " wait.h"
2394 # 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.12'
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 as_fn_executable_p "$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 # Reject unsafe characters in $srcdir or the absolute working directory
2589 # name. Accept space and tab only in the latter.
2590 am_lf='
2591 '
2592 case `pwd` in
2593 *[\\\"\#\$\&\'\`$am_lf]*)
2594 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2595 esac
2596 case $srcdir in
2597 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2598 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2599 esac
2600
2601 # Do 'set' in a subshell so we don't clobber the current shell's
2602 # arguments. Must try -L first in case configure is actually a
2603 # symlink; some systems play weird games with the mod time of symlinks
2604 # (eg FreeBSD returns the mod time of the symlink's containing
2605 # directory).
2606 if (
2607 am_has_slept=no
2608 for am_try in 1 2; do
2609 echo "timestamp, slept: $am_has_slept" > conftest.file
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 if test "$*" != "X $srcdir/configure conftest.file" \
2616 && test "$*" != "X conftest.file $srcdir/configure"; then
2617
2618 # If neither matched, then we have a broken ls. This can happen
2619 # if, for instance, CONFIG_SHELL is bash and it inherits a
2620 # broken ls alias from the environment. This has actually
2621 # happened. Such a system could not be considered "sane".
2622 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2623 alias in your environment" "$LINENO" 5
2624 fi
2625 if test "$2" = conftest.file || test $am_try -eq 2; then
2626 break
2627 fi
2628 # Just in case.
2629 sleep 1
2630 am_has_slept=yes
2631 done
2632 test "$2" = conftest.file
2633 )
2634 then
2635 # Ok.
2636 :
2637 else
2638 as_fn_error $? "newly created file is older than distributed files!
2639 Check your system clock" "$LINENO" 5
2640 fi
2641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2642 $as_echo "yes" >&6; }
2643 # If we didn't sleep, we still need to ensure time stamps of config.status and
2644 # generated files are strictly newer.
2645 am_sleep_pid=
2646 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2647 ( sleep 1 ) &
2648 am_sleep_pid=$!
2649 fi
2650
2651 rm -f conftest.file
2652
2653 test "$program_prefix" != NONE &&
2654 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2655 # Use a double $ so make ignores it.
2656 test "$program_suffix" != NONE &&
2657 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2658 # Double any \ or $.
2659 # By default was `s,x,x', remove it if useless.
2660 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2661 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2662
2663 # expand $ac_aux_dir to an absolute path
2664 am_aux_dir=`cd $ac_aux_dir && pwd`
2665
2666 if test x"${MISSING+set}" != xset; then
2667 case $am_aux_dir in
2668 *\ * | *\ *)
2669 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2670 *)
2671 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2672 esac
2673 fi
2674 # Use eval to expand $SHELL
2675 if eval "$MISSING --run true"; then
2676 am_missing_run="$MISSING --run "
2677 else
2678 am_missing_run=
2679 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2680 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2681 fi
2682
2683 if test x"${install_sh}" != xset; then
2684 case $am_aux_dir in
2685 *\ * | *\ *)
2686 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2687 *)
2688 install_sh="\${SHELL} $am_aux_dir/install-sh"
2689 esac
2690 fi
2691
2692 # Installed binaries are usually stripped using 'strip' when the user
2693 # run "make install-strip". However 'strip' might not be the right
2694 # tool to use in cross-compilation environments, therefore Automake
2695 # will honor the 'STRIP' environment variable to overrule this program.
2696 if test "$cross_compiling" != no; then
2697 if test -n "$ac_tool_prefix"; then
2698 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2699 set dummy ${ac_tool_prefix}strip; ac_word=$2
2700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2701 $as_echo_n "checking for $ac_word... " >&6; }
2702 if ${ac_cv_prog_STRIP+:} false; then :
2703 $as_echo_n "(cached) " >&6
2704 else
2705 if test -n "$STRIP"; then
2706 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2707 else
2708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2709 for as_dir in $PATH
2710 do
2711 IFS=$as_save_IFS
2712 test -z "$as_dir" && as_dir=.
2713 for ac_exec_ext in '' $ac_executable_extensions; do
2714 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2715 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2716 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2717 break 2
2718 fi
2719 done
2720 done
2721 IFS=$as_save_IFS
2722
2723 fi
2724 fi
2725 STRIP=$ac_cv_prog_STRIP
2726 if test -n "$STRIP"; then
2727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2728 $as_echo "$STRIP" >&6; }
2729 else
2730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2731 $as_echo "no" >&6; }
2732 fi
2733
2734
2735 fi
2736 if test -z "$ac_cv_prog_STRIP"; then
2737 ac_ct_STRIP=$STRIP
2738 # Extract the first word of "strip", so it can be a program name with args.
2739 set dummy strip; ac_word=$2
2740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2741 $as_echo_n "checking for $ac_word... " >&6; }
2742 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2743 $as_echo_n "(cached) " >&6
2744 else
2745 if test -n "$ac_ct_STRIP"; then
2746 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2747 else
2748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2749 for as_dir in $PATH
2750 do
2751 IFS=$as_save_IFS
2752 test -z "$as_dir" && as_dir=.
2753 for ac_exec_ext in '' $ac_executable_extensions; do
2754 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2755 ac_cv_prog_ac_ct_STRIP="strip"
2756 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2757 break 2
2758 fi
2759 done
2760 done
2761 IFS=$as_save_IFS
2762
2763 fi
2764 fi
2765 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2766 if test -n "$ac_ct_STRIP"; then
2767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2768 $as_echo "$ac_ct_STRIP" >&6; }
2769 else
2770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2771 $as_echo "no" >&6; }
2772 fi
2773
2774 if test "x$ac_ct_STRIP" = x; then
2775 STRIP=":"
2776 else
2777 case $cross_compiling:$ac_tool_warned in
2778 yes:)
2779 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2780 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2781 ac_tool_warned=yes ;;
2782 esac
2783 STRIP=$ac_ct_STRIP
2784 fi
2785 else
2786 STRIP="$ac_cv_prog_STRIP"
2787 fi
2788
2789 fi
2790 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2791
2792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2793 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2794 if test -z "$MKDIR_P"; then
2795 if ${ac_cv_path_mkdir+:} false; then :
2796 $as_echo_n "(cached) " >&6
2797 else
2798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2799 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2800 do
2801 IFS=$as_save_IFS
2802 test -z "$as_dir" && as_dir=.
2803 for ac_prog in mkdir gmkdir; do
2804 for ac_exec_ext in '' $ac_executable_extensions; do
2805 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2806 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2807 'mkdir (GNU coreutils) '* | \
2808 'mkdir (coreutils) '* | \
2809 'mkdir (fileutils) '4.1*)
2810 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2811 break 3;;
2812 esac
2813 done
2814 done
2815 done
2816 IFS=$as_save_IFS
2817
2818 fi
2819
2820 test -d ./--version && rmdir ./--version
2821 if test "${ac_cv_path_mkdir+set}" = set; then
2822 MKDIR_P="$ac_cv_path_mkdir -p"
2823 else
2824 # As a last resort, use the slow shell script. Don't cache a
2825 # value for MKDIR_P within a source directory, because that will
2826 # break other packages using the cache if that directory is
2827 # removed, or if the value is a relative name.
2828 MKDIR_P="$ac_install_sh -d"
2829 fi
2830 fi
2831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2832 $as_echo "$MKDIR_P" >&6; }
2833
2834 mkdir_p="$MKDIR_P"
2835 case $mkdir_p in
2836 [\\/$]* | ?:[\\/]*) ;;
2837 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2838 esac
2839
2840 for ac_prog in gawk mawk nawk awk
2841 do
2842 # Extract the first word of "$ac_prog", so it can be a program name with args.
2843 set dummy $ac_prog; ac_word=$2
2844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2845 $as_echo_n "checking for $ac_word... " >&6; }
2846 if ${ac_cv_prog_AWK+:} false; then :
2847 $as_echo_n "(cached) " >&6
2848 else
2849 if test -n "$AWK"; then
2850 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2851 else
2852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2853 for as_dir in $PATH
2854 do
2855 IFS=$as_save_IFS
2856 test -z "$as_dir" && as_dir=.
2857 for ac_exec_ext in '' $ac_executable_extensions; do
2858 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2859 ac_cv_prog_AWK="$ac_prog"
2860 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2861 break 2
2862 fi
2863 done
2864 done
2865 IFS=$as_save_IFS
2866
2867 fi
2868 fi
2869 AWK=$ac_cv_prog_AWK
2870 if test -n "$AWK"; then
2871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2872 $as_echo "$AWK" >&6; }
2873 else
2874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2875 $as_echo "no" >&6; }
2876 fi
2877
2878
2879 test -n "$AWK" && break
2880 done
2881
2882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2883 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2884 set x ${MAKE-make}
2885 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2886 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2887 $as_echo_n "(cached) " >&6
2888 else
2889 cat >conftest.make <<\_ACEOF
2890 SHELL = /bin/sh
2891 all:
2892 @echo '@@@%%%=$(MAKE)=@@@%%%'
2893 _ACEOF
2894 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2895 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2896 *@@@%%%=?*=@@@%%%*)
2897 eval ac_cv_prog_make_${ac_make}_set=yes;;
2898 *)
2899 eval ac_cv_prog_make_${ac_make}_set=no;;
2900 esac
2901 rm -f conftest.make
2902 fi
2903 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2905 $as_echo "yes" >&6; }
2906 SET_MAKE=
2907 else
2908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2909 $as_echo "no" >&6; }
2910 SET_MAKE="MAKE=${MAKE-make}"
2911 fi
2912
2913 rm -rf .tst 2>/dev/null
2914 mkdir .tst 2>/dev/null
2915 if test -d .tst; then
2916 am__leading_dot=.
2917 else
2918 am__leading_dot=_
2919 fi
2920 rmdir .tst 2>/dev/null
2921
2922 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2923 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2924 # is not polluted with repeated "-I."
2925 am__isrc=' -I$(srcdir)'
2926 # test to see if srcdir already configured
2927 if test -f $srcdir/config.status; then
2928 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2929 fi
2930 fi
2931
2932 # test whether we have cygpath
2933 if test -z "$CYGPATH_W"; then
2934 if (cygpath --version) >/dev/null 2>/dev/null; then
2935 CYGPATH_W='cygpath -w'
2936 else
2937 CYGPATH_W=echo
2938 fi
2939 fi
2940
2941
2942 # Define the identity of the package.
2943 PACKAGE='ircd-hybrid'
2944 VERSION='8beta1'
2945
2946
2947 cat >>confdefs.h <<_ACEOF
2948 #define PACKAGE "$PACKAGE"
2949 _ACEOF
2950
2951
2952 cat >>confdefs.h <<_ACEOF
2953 #define VERSION "$VERSION"
2954 _ACEOF
2955
2956 # Some tools Automake needs.
2957
2958 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2959
2960
2961 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2962
2963
2964 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2965
2966
2967 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2968
2969
2970 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2971
2972 # We need awk for the "check" target. The system "awk" is bad on
2973 # some platforms.
2974 # Always define AMTAR for backward compatibility. Yes, it's still used
2975 # in the wild :-( We should find a proper way to deprecate it ...
2976 AMTAR='$${TAR-tar}'
2977
2978 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2979
2980
2981
2982
2983
2984
2985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2986 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2987 # Check whether --enable-maintainer-mode was given.
2988 if test "${enable_maintainer_mode+set}" = set; then :
2989 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2990 else
2991 USE_MAINTAINER_MODE=no
2992 fi
2993
2994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2995 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2996 if test $USE_MAINTAINER_MODE = yes; then
2997 MAINTAINER_MODE_TRUE=
2998 MAINTAINER_MODE_FALSE='#'
2999 else
3000 MAINTAINER_MODE_TRUE='#'
3001 MAINTAINER_MODE_FALSE=
3002 fi
3003
3004 MAINT=$MAINTAINER_MODE_TRUE
3005
3006
3007 ac_config_headers="$ac_config_headers config.h"
3008
3009
3010
3011 # Checks for programs.
3012 DEPDIR="${am__leading_dot}deps"
3013
3014 ac_config_commands="$ac_config_commands depfiles"
3015
3016
3017 am_make=${MAKE-make}
3018 cat > confinc << 'END'
3019 am__doit:
3020 @echo this is the am__doit target
3021 .PHONY: am__doit
3022 END
3023 # If we don't find an include directive, just comment out the code.
3024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3025 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3026 am__include="#"
3027 am__quote=
3028 _am_result=none
3029 # First try GNU make style include.
3030 echo "include confinc" > confmf
3031 # Ignore all kinds of additional output from 'make'.
3032 case `$am_make -s -f confmf 2> /dev/null` in #(
3033 *the\ am__doit\ target*)
3034 am__include=include
3035 am__quote=
3036 _am_result=GNU
3037 ;;
3038 esac
3039 # Now try BSD make style include.
3040 if test "$am__include" = "#"; then
3041 echo '.include "confinc"' > confmf
3042 case `$am_make -s -f confmf 2> /dev/null` in #(
3043 *the\ am__doit\ target*)
3044 am__include=.include
3045 am__quote="\""
3046 _am_result=BSD
3047 ;;
3048 esac
3049 fi
3050
3051
3052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3053 $as_echo "$_am_result" >&6; }
3054 rm -f confinc confmf
3055
3056 # Check whether --enable-dependency-tracking was given.
3057 if test "${enable_dependency_tracking+set}" = set; then :
3058 enableval=$enable_dependency_tracking;
3059 fi
3060
3061 if test "x$enable_dependency_tracking" != xno; then
3062 am_depcomp="$ac_aux_dir/depcomp"
3063 AMDEPBACKSLASH='\'
3064 am__nodep='_no'
3065 fi
3066 if test "x$enable_dependency_tracking" != xno; then
3067 AMDEP_TRUE=
3068 AMDEP_FALSE='#'
3069 else
3070 AMDEP_TRUE='#'
3071 AMDEP_FALSE=
3072 fi
3073
3074
3075 ac_ext=c
3076 ac_cpp='$CPP $CPPFLAGS'
3077 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3078 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3079 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3080 if test -n "$ac_tool_prefix"; then
3081 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3082 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3084 $as_echo_n "checking for $ac_word... " >&6; }
3085 if ${ac_cv_prog_CC+:} false; then :
3086 $as_echo_n "(cached) " >&6
3087 else
3088 if test -n "$CC"; then
3089 ac_cv_prog_CC="$CC" # Let the user override the test.
3090 else
3091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3092 for as_dir in $PATH
3093 do
3094 IFS=$as_save_IFS
3095 test -z "$as_dir" && as_dir=.
3096 for ac_exec_ext in '' $ac_executable_extensions; do
3097 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3098 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3099 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3100 break 2
3101 fi
3102 done
3103 done
3104 IFS=$as_save_IFS
3105
3106 fi
3107 fi
3108 CC=$ac_cv_prog_CC
3109 if test -n "$CC"; then
3110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3111 $as_echo "$CC" >&6; }
3112 else
3113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3114 $as_echo "no" >&6; }
3115 fi
3116
3117
3118 fi
3119 if test -z "$ac_cv_prog_CC"; then
3120 ac_ct_CC=$CC
3121 # Extract the first word of "gcc", so it can be a program name with args.
3122 set dummy gcc; ac_word=$2
3123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3124 $as_echo_n "checking for $ac_word... " >&6; }
3125 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3126 $as_echo_n "(cached) " >&6
3127 else
3128 if test -n "$ac_ct_CC"; then
3129 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3130 else
3131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3132 for as_dir in $PATH
3133 do
3134 IFS=$as_save_IFS
3135 test -z "$as_dir" && as_dir=.
3136 for ac_exec_ext in '' $ac_executable_extensions; do
3137 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3138 ac_cv_prog_ac_ct_CC="gcc"
3139 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3140 break 2
3141 fi
3142 done
3143 done
3144 IFS=$as_save_IFS
3145
3146 fi
3147 fi
3148 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3149 if test -n "$ac_ct_CC"; then
3150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3151 $as_echo "$ac_ct_CC" >&6; }
3152 else
3153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3154 $as_echo "no" >&6; }
3155 fi
3156
3157 if test "x$ac_ct_CC" = x; then
3158 CC=""
3159 else
3160 case $cross_compiling:$ac_tool_warned in
3161 yes:)
3162 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3163 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3164 ac_tool_warned=yes ;;
3165 esac
3166 CC=$ac_ct_CC
3167 fi
3168 else
3169 CC="$ac_cv_prog_CC"
3170 fi
3171
3172 if test -z "$CC"; then
3173 if test -n "$ac_tool_prefix"; then
3174 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3175 set dummy ${ac_tool_prefix}cc; ac_word=$2
3176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3177 $as_echo_n "checking for $ac_word... " >&6; }
3178 if ${ac_cv_prog_CC+:} false; then :
3179 $as_echo_n "(cached) " >&6
3180 else
3181 if test -n "$CC"; then
3182 ac_cv_prog_CC="$CC" # Let the user override the test.
3183 else
3184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3185 for as_dir in $PATH
3186 do
3187 IFS=$as_save_IFS
3188 test -z "$as_dir" && as_dir=.
3189 for ac_exec_ext in '' $ac_executable_extensions; do
3190 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3191 ac_cv_prog_CC="${ac_tool_prefix}cc"
3192 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3193 break 2
3194 fi
3195 done
3196 done
3197 IFS=$as_save_IFS
3198
3199 fi
3200 fi
3201 CC=$ac_cv_prog_CC
3202 if test -n "$CC"; then
3203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3204 $as_echo "$CC" >&6; }
3205 else
3206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3207 $as_echo "no" >&6; }
3208 fi
3209
3210
3211 fi
3212 fi
3213 if test -z "$CC"; then
3214 # Extract the first word of "cc", so it can be a program name with args.
3215 set dummy cc; ac_word=$2
3216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3217 $as_echo_n "checking for $ac_word... " >&6; }
3218 if ${ac_cv_prog_CC+:} false; then :
3219 $as_echo_n "(cached) " >&6
3220 else
3221 if test -n "$CC"; then
3222 ac_cv_prog_CC="$CC" # Let the user override the test.
3223 else
3224 ac_prog_rejected=no
3225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3226 for as_dir in $PATH
3227 do
3228 IFS=$as_save_IFS
3229 test -z "$as_dir" && as_dir=.
3230 for ac_exec_ext in '' $ac_executable_extensions; do
3231 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3232 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3233 ac_prog_rejected=yes
3234 continue
3235 fi
3236 ac_cv_prog_CC="cc"
3237 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3238 break 2
3239 fi
3240 done
3241 done
3242 IFS=$as_save_IFS
3243
3244 if test $ac_prog_rejected = yes; then
3245 # We found a bogon in the path, so make sure we never use it.
3246 set dummy $ac_cv_prog_CC
3247 shift
3248 if test $# != 0; then
3249 # We chose a different compiler from the bogus one.
3250 # However, it has the same basename, so the bogon will be chosen
3251 # first if we set CC to just the basename; use the full file name.
3252 shift
3253 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3254 fi
3255 fi
3256 fi
3257 fi
3258 CC=$ac_cv_prog_CC
3259 if test -n "$CC"; then
3260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3261 $as_echo "$CC" >&6; }
3262 else
3263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3264 $as_echo "no" >&6; }
3265 fi
3266
3267
3268 fi
3269 if test -z "$CC"; then
3270 if test -n "$ac_tool_prefix"; then
3271 for ac_prog in cl.exe
3272 do
3273 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3274 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3276 $as_echo_n "checking for $ac_word... " >&6; }
3277 if ${ac_cv_prog_CC+:} false; then :
3278 $as_echo_n "(cached) " >&6
3279 else
3280 if test -n "$CC"; then
3281 ac_cv_prog_CC="$CC" # Let the user override the test.
3282 else
3283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3284 for as_dir in $PATH
3285 do
3286 IFS=$as_save_IFS
3287 test -z "$as_dir" && as_dir=.
3288 for ac_exec_ext in '' $ac_executable_extensions; do
3289 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3290 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3291 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3292 break 2
3293 fi
3294 done
3295 done
3296 IFS=$as_save_IFS
3297
3298 fi
3299 fi
3300 CC=$ac_cv_prog_CC
3301 if test -n "$CC"; then
3302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3303 $as_echo "$CC" >&6; }
3304 else
3305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3306 $as_echo "no" >&6; }
3307 fi
3308
3309
3310 test -n "$CC" && break
3311 done
3312 fi
3313 if test -z "$CC"; then
3314 ac_ct_CC=$CC
3315 for ac_prog in cl.exe
3316 do
3317 # Extract the first word of "$ac_prog", so it can be a program name with args.
3318 set dummy $ac_prog; ac_word=$2
3319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3320 $as_echo_n "checking for $ac_word... " >&6; }
3321 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3322 $as_echo_n "(cached) " >&6
3323 else
3324 if test -n "$ac_ct_CC"; then
3325 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3326 else
3327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3328 for as_dir in $PATH
3329 do
3330 IFS=$as_save_IFS
3331 test -z "$as_dir" && as_dir=.
3332 for ac_exec_ext in '' $ac_executable_extensions; do
3333 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3334 ac_cv_prog_ac_ct_CC="$ac_prog"
3335 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3336 break 2
3337 fi
3338 done
3339 done
3340 IFS=$as_save_IFS
3341
3342 fi
3343 fi
3344 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3345 if test -n "$ac_ct_CC"; then
3346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3347 $as_echo "$ac_ct_CC" >&6; }
3348 else
3349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3350 $as_echo "no" >&6; }
3351 fi
3352
3353
3354 test -n "$ac_ct_CC" && break
3355 done
3356
3357 if test "x$ac_ct_CC" = x; then
3358 CC=""
3359 else
3360 case $cross_compiling:$ac_tool_warned in
3361 yes:)
3362 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3363 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3364 ac_tool_warned=yes ;;
3365 esac
3366 CC=$ac_ct_CC
3367 fi
3368 fi
3369
3370 fi
3371
3372
3373 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3374 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3375 as_fn_error $? "no acceptable C compiler found in \$PATH
3376 See \`config.log' for more details" "$LINENO" 5; }
3377
3378 # Provide some information about the compiler.
3379 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3380 set X $ac_compile
3381 ac_compiler=$2
3382 for ac_option in --version -v -V -qversion; do
3383 { { ac_try="$ac_compiler $ac_option >&5"
3384 case "(($ac_try" in
3385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3386 *) ac_try_echo=$ac_try;;
3387 esac
3388 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3389 $as_echo "$ac_try_echo"; } >&5
3390 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3391 ac_status=$?
3392 if test -s conftest.err; then
3393 sed '10a\
3394 ... rest of stderr output deleted ...
3395 10q' conftest.err >conftest.er1
3396 cat conftest.er1 >&5
3397 fi
3398 rm -f conftest.er1 conftest.err
3399 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3400 test $ac_status = 0; }
3401 done
3402
3403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3404 /* end confdefs.h. */
3405
3406 int
3407 main ()
3408 {
3409
3410 ;
3411 return 0;
3412 }
3413 _ACEOF
3414 ac_clean_files_save=$ac_clean_files
3415 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3416 # Try to create an executable without -o first, disregard a.out.
3417 # It will help us diagnose broken compilers, and finding out an intuition
3418 # of exeext.
3419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3420 $as_echo_n "checking whether the C compiler works... " >&6; }
3421 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3422
3423 # The possible output files:
3424 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3425
3426 ac_rmfiles=
3427 for ac_file in $ac_files
3428 do
3429 case $ac_file in
3430 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3431 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3432 esac
3433 done
3434 rm -f $ac_rmfiles
3435
3436 if { { ac_try="$ac_link_default"
3437 case "(($ac_try" in
3438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3439 *) ac_try_echo=$ac_try;;
3440 esac
3441 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3442 $as_echo "$ac_try_echo"; } >&5
3443 (eval "$ac_link_default") 2>&5
3444 ac_status=$?
3445 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3446 test $ac_status = 0; }; then :
3447 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3448 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3449 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3450 # so that the user can short-circuit this test for compilers unknown to
3451 # Autoconf.
3452 for ac_file in $ac_files ''
3453 do
3454 test -f "$ac_file" || continue
3455 case $ac_file in
3456 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3457 ;;
3458 [ab].out )
3459 # We found the default executable, but exeext='' is most
3460 # certainly right.
3461 break;;
3462 *.* )
3463 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3464 then :; else
3465 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3466 fi
3467 # We set ac_cv_exeext here because the later test for it is not
3468 # safe: cross compilers may not add the suffix if given an `-o'
3469 # argument, so we may need to know it at that point already.
3470 # Even if this section looks crufty: it has the advantage of
3471 # actually working.
3472 break;;
3473 * )
3474 break;;
3475 esac
3476 done
3477 test "$ac_cv_exeext" = no && ac_cv_exeext=
3478
3479 else
3480 ac_file=''
3481 fi
3482 if test -z "$ac_file"; then :
3483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3484 $as_echo "no" >&6; }
3485 $as_echo "$as_me: failed program was:" >&5
3486 sed 's/^/| /' conftest.$ac_ext >&5
3487
3488 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3489 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3490 as_fn_error 77 "C compiler cannot create executables
3491 See \`config.log' for more details" "$LINENO" 5; }
3492 else
3493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3494 $as_echo "yes" >&6; }
3495 fi
3496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3497 $as_echo_n "checking for C compiler default output file name... " >&6; }
3498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3499 $as_echo "$ac_file" >&6; }
3500 ac_exeext=$ac_cv_exeext
3501
3502 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3503 ac_clean_files=$ac_clean_files_save
3504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3505 $as_echo_n "checking for suffix of executables... " >&6; }
3506 if { { ac_try="$ac_link"
3507 case "(($ac_try" in
3508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3509 *) ac_try_echo=$ac_try;;
3510 esac
3511 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3512 $as_echo "$ac_try_echo"; } >&5
3513 (eval "$ac_link") 2>&5
3514 ac_status=$?
3515 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3516 test $ac_status = 0; }; then :
3517 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3518 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3519 # work properly (i.e., refer to `conftest.exe'), while it won't with
3520 # `rm'.
3521 for ac_file in conftest.exe conftest conftest.*; do
3522 test -f "$ac_file" || continue
3523 case $ac_file in
3524 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3525 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3526 break;;
3527 * ) break;;
3528 esac
3529 done
3530 else
3531 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3532 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3533 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3534 See \`config.log' for more details" "$LINENO" 5; }
3535 fi
3536 rm -f conftest conftest$ac_cv_exeext
3537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3538 $as_echo "$ac_cv_exeext" >&6; }
3539
3540 rm -f conftest.$ac_ext
3541 EXEEXT=$ac_cv_exeext
3542 ac_exeext=$EXEEXT
3543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3544 /* end confdefs.h. */
3545 #include <stdio.h>
3546 int
3547 main ()
3548 {
3549 FILE *f = fopen ("conftest.out", "w");
3550 return ferror (f) || fclose (f) != 0;
3551
3552 ;
3553 return 0;
3554 }
3555 _ACEOF
3556 ac_clean_files="$ac_clean_files conftest.out"
3557 # Check that the compiler produces executables we can run. If not, either
3558 # the compiler is broken, or we cross compile.
3559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3560 $as_echo_n "checking whether we are cross compiling... " >&6; }
3561 if test "$cross_compiling" != yes; then
3562 { { ac_try="$ac_link"
3563 case "(($ac_try" in
3564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3565 *) ac_try_echo=$ac_try;;
3566 esac
3567 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3568 $as_echo "$ac_try_echo"; } >&5
3569 (eval "$ac_link") 2>&5
3570 ac_status=$?
3571 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3572 test $ac_status = 0; }
3573 if { ac_try='./conftest$ac_cv_exeext'
3574 { { case "(($ac_try" in
3575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3576 *) ac_try_echo=$ac_try;;
3577 esac
3578 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3579 $as_echo "$ac_try_echo"; } >&5
3580 (eval "$ac_try") 2>&5
3581 ac_status=$?
3582 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3583 test $ac_status = 0; }; }; then
3584 cross_compiling=no
3585 else
3586 if test "$cross_compiling" = maybe; then
3587 cross_compiling=yes
3588 else
3589 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3590 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3591 as_fn_error $? "cannot run C compiled programs.
3592 If you meant to cross compile, use \`--host'.
3593 See \`config.log' for more details" "$LINENO" 5; }
3594 fi
3595 fi
3596 fi
3597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3598 $as_echo "$cross_compiling" >&6; }
3599
3600 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3601 ac_clean_files=$ac_clean_files_save
3602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3603 $as_echo_n "checking for suffix of object files... " >&6; }
3604 if ${ac_cv_objext+:} false; then :
3605 $as_echo_n "(cached) " >&6
3606 else
3607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3608 /* end confdefs.h. */
3609
3610 int
3611 main ()
3612 {
3613
3614 ;
3615 return 0;
3616 }
3617 _ACEOF
3618 rm -f conftest.o conftest.obj
3619 if { { ac_try="$ac_compile"
3620 case "(($ac_try" in
3621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3622 *) ac_try_echo=$ac_try;;
3623 esac
3624 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3625 $as_echo "$ac_try_echo"; } >&5
3626 (eval "$ac_compile") 2>&5
3627 ac_status=$?
3628 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3629 test $ac_status = 0; }; then :
3630 for ac_file in conftest.o conftest.obj conftest.*; do
3631 test -f "$ac_file" || continue;
3632 case $ac_file in
3633 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3634 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3635 break;;
3636 esac
3637 done
3638 else
3639 $as_echo "$as_me: failed program was:" >&5
3640 sed 's/^/| /' conftest.$ac_ext >&5
3641
3642 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3643 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3644 as_fn_error $? "cannot compute suffix of object files: cannot compile
3645 See \`config.log' for more details" "$LINENO" 5; }
3646 fi
3647 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3648 fi
3649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3650 $as_echo "$ac_cv_objext" >&6; }
3651 OBJEXT=$ac_cv_objext
3652 ac_objext=$OBJEXT
3653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3654 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3655 if ${ac_cv_c_compiler_gnu+:} false; then :
3656 $as_echo_n "(cached) " >&6
3657 else
3658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3659 /* end confdefs.h. */
3660
3661 int
3662 main ()
3663 {
3664 #ifndef __GNUC__
3665 choke me
3666 #endif
3667
3668 ;
3669 return 0;
3670 }
3671 _ACEOF
3672 if ac_fn_c_try_compile "$LINENO"; then :
3673 ac_compiler_gnu=yes
3674 else
3675 ac_compiler_gnu=no
3676 fi
3677 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3678 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3679
3680 fi
3681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3682 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3683 if test $ac_compiler_gnu = yes; then
3684 GCC=yes
3685 else
3686 GCC=
3687 fi
3688 ac_test_CFLAGS=${CFLAGS+set}
3689 ac_save_CFLAGS=$CFLAGS
3690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3691 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3692 if ${ac_cv_prog_cc_g+:} false; then :
3693 $as_echo_n "(cached) " >&6
3694 else
3695 ac_save_c_werror_flag=$ac_c_werror_flag
3696 ac_c_werror_flag=yes
3697 ac_cv_prog_cc_g=no
3698 CFLAGS="-g"
3699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3700 /* end confdefs.h. */
3701
3702 int
3703 main ()
3704 {
3705
3706 ;
3707 return 0;
3708 }
3709 _ACEOF
3710 if ac_fn_c_try_compile "$LINENO"; then :
3711 ac_cv_prog_cc_g=yes
3712 else
3713 CFLAGS=""
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
3727 else
3728 ac_c_werror_flag=$ac_save_c_werror_flag
3729 CFLAGS="-g"
3730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3731 /* end confdefs.h. */
3732
3733 int
3734 main ()
3735 {
3736
3737 ;
3738 return 0;
3739 }
3740 _ACEOF
3741 if ac_fn_c_try_compile "$LINENO"; then :
3742 ac_cv_prog_cc_g=yes
3743 fi
3744 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3745 fi
3746 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3747 fi
3748 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3749 ac_c_werror_flag=$ac_save_c_werror_flag
3750 fi
3751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3752 $as_echo "$ac_cv_prog_cc_g" >&6; }
3753 if test "$ac_test_CFLAGS" = set; then
3754 CFLAGS=$ac_save_CFLAGS
3755 elif test $ac_cv_prog_cc_g = yes; then
3756 if test "$GCC" = yes; then
3757 CFLAGS="-g -O2"
3758 else
3759 CFLAGS="-g"
3760 fi
3761 else
3762 if test "$GCC" = yes; then
3763 CFLAGS="-O2"
3764 else
3765 CFLAGS=
3766 fi
3767 fi
3768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3769 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3770 if ${ac_cv_prog_cc_c89+:} false; then :
3771 $as_echo_n "(cached) " >&6
3772 else
3773 ac_cv_prog_cc_c89=no
3774 ac_save_CC=$CC
3775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3776 /* end confdefs.h. */
3777 #include <stdarg.h>
3778 #include <stdio.h>
3779 struct stat;
3780 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3781 struct buf { int x; };
3782 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3783 static char *e (p, i)
3784 char **p;
3785 int i;
3786 {
3787 return p[i];
3788 }
3789 static char *f (char * (*g) (char **, int), char **p, ...)
3790 {
3791 char *s;
3792 va_list v;
3793 va_start (v,p);
3794 s = g (p, va_arg (v,int));
3795 va_end (v);
3796 return s;
3797 }
3798
3799 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3800 function prototypes and stuff, but not '\xHH' hex character constants.
3801 These don't provoke an error unfortunately, instead are silently treated
3802 as 'x'. The following induces an error, until -std is added to get
3803 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3804 array size at least. It's necessary to write '\x00'==0 to get something
3805 that's true only with -std. */
3806 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3807
3808 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3809 inside strings and character constants. */
3810 #define FOO(x) 'x'
3811 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3812
3813 int test (int i, double x);
3814 struct s1 {int (*f) (int a);};
3815 struct s2 {int (*f) (double a);};
3816 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3817 int argc;
3818 char **argv;
3819 int
3820 main ()
3821 {
3822 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3823 ;
3824 return 0;
3825 }
3826 _ACEOF
3827 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3828 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3829 do
3830 CC="$ac_save_CC $ac_arg"
3831 if ac_fn_c_try_compile "$LINENO"; then :
3832 ac_cv_prog_cc_c89=$ac_arg
3833 fi
3834 rm -f core conftest.err conftest.$ac_objext
3835 test "x$ac_cv_prog_cc_c89" != "xno" && break
3836 done
3837 rm -f conftest.$ac_ext
3838 CC=$ac_save_CC
3839
3840 fi
3841 # AC_CACHE_VAL
3842 case "x$ac_cv_prog_cc_c89" in
3843 x)
3844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3845 $as_echo "none needed" >&6; } ;;
3846 xno)
3847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3848 $as_echo "unsupported" >&6; } ;;
3849 *)
3850 CC="$CC $ac_cv_prog_cc_c89"
3851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3852 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3853 esac
3854 if test "x$ac_cv_prog_cc_c89" != xno; then :
3855
3856 fi
3857
3858 ac_ext=c
3859 ac_cpp='$CPP $CPPFLAGS'
3860 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3861 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3862 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3863
3864 depcc="$CC" am_compiler_list=
3865
3866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3867 $as_echo_n "checking dependency style of $depcc... " >&6; }
3868 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3869 $as_echo_n "(cached) " >&6
3870 else
3871 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3872 # We make a subdir and do the tests there. Otherwise we can end up
3873 # making bogus files that we don't know about and never remove. For
3874 # instance it was reported that on HP-UX the gcc test will end up
3875 # making a dummy file named 'D' -- because '-MD' means "put the output
3876 # in D".
3877 rm -rf conftest.dir
3878 mkdir conftest.dir
3879 # Copy depcomp to subdir because otherwise we won't find it if we're
3880 # using a relative directory.
3881 cp "$am_depcomp" conftest.dir
3882 cd conftest.dir
3883 # We will build objects and dependencies in a subdirectory because
3884 # it helps to detect inapplicable dependency modes. For instance
3885 # both Tru64's cc and ICC support -MD to output dependencies as a
3886 # side effect of compilation, but ICC will put the dependencies in
3887 # the current directory while Tru64 will put them in the object
3888 # directory.
3889 mkdir sub
3890
3891 am_cv_CC_dependencies_compiler_type=none
3892 if test "$am_compiler_list" = ""; then
3893 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3894 fi
3895 am__universal=false
3896 case " $depcc " in #(
3897 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3898 esac
3899
3900 for depmode in $am_compiler_list; do
3901 # Setup a source with many dependencies, because some compilers
3902 # like to wrap large dependency lists on column 80 (with \), and
3903 # we should not choose a depcomp mode which is confused by this.
3904 #
3905 # We need to recreate these files for each test, as the compiler may
3906 # overwrite some of them when testing with obscure command lines.
3907 # This happens at least with the AIX C compiler.
3908 : > sub/conftest.c
3909 for i in 1 2 3 4 5 6; do
3910 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3911 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3912 # Solaris 10 /bin/sh.
3913 echo '/* dummy */' > sub/conftst$i.h
3914 done
3915 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3916
3917 # We check with '-c' and '-o' for the sake of the "dashmstdout"
3918 # mode. It turns out that the SunPro C++ compiler does not properly
3919 # handle '-M -o', and we need to detect this. Also, some Intel
3920 # versions had trouble with output in subdirs.
3921 am__obj=sub/conftest.${OBJEXT-o}
3922 am__minus_obj="-o $am__obj"
3923 case $depmode in
3924 gcc)
3925 # This depmode causes a compiler race in universal mode.
3926 test "$am__universal" = false || continue
3927 ;;
3928 nosideeffect)
3929 # After this tag, mechanisms are not by side-effect, so they'll
3930 # only be used when explicitly requested.
3931 if test "x$enable_dependency_tracking" = xyes; then
3932 continue
3933 else
3934 break
3935 fi
3936 ;;
3937 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3938 # This compiler won't grok '-c -o', but also, the minuso test has
3939 # not run yet. These depmodes are late enough in the game, and
3940 # so weak that their functioning should not be impacted.
3941 am__obj=conftest.${OBJEXT-o}
3942 am__minus_obj=
3943 ;;
3944 none) break ;;
3945 esac
3946 if depmode=$depmode \
3947 source=sub/conftest.c object=$am__obj \
3948 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3949 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3950 >/dev/null 2>conftest.err &&
3951 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3952 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3953 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3954 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3955 # icc doesn't choke on unknown options, it will just issue warnings
3956 # or remarks (even with -Werror). So we grep stderr for any message
3957 # that says an option was ignored or not supported.
3958 # When given -MP, icc 7.0 and 7.1 complain thusly:
3959 # icc: Command line warning: ignoring option '-M'; no argument required
3960 # The diagnosis changed in icc 8.0:
3961 # icc: Command line remark: option '-MP' not supported
3962 if (grep 'ignoring option' conftest.err ||
3963 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3964 am_cv_CC_dependencies_compiler_type=$depmode
3965 break
3966 fi
3967 fi
3968 done
3969
3970 cd ..
3971 rm -rf conftest.dir
3972 else
3973 am_cv_CC_dependencies_compiler_type=none
3974 fi
3975
3976 fi
3977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3978 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3979 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3980
3981 if
3982 test "x$enable_dependency_tracking" != xno \
3983 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3984 am__fastdepCC_TRUE=
3985 am__fastdepCC_FALSE='#'
3986 else
3987 am__fastdepCC_TRUE='#'
3988 am__fastdepCC_FALSE=
3989 fi
3990
3991
3992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3993 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3994 if ${ac_cv_prog_cc_c99+:} false; then :
3995 $as_echo_n "(cached) " >&6
3996 else
3997 ac_cv_prog_cc_c99=no
3998 ac_save_CC=$CC
3999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4000 /* end confdefs.h. */
4001 #include <stdarg.h>
4002 #include <stdbool.h>
4003 #include <stdlib.h>
4004 #include <wchar.h>
4005 #include <stdio.h>
4006
4007 // Check varargs macros. These examples are taken from C99 6.10.3.5.
4008 #define debug(...) fprintf (stderr, __VA_ARGS__)
4009 #define showlist(...) puts (#__VA_ARGS__)
4010 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4011 static void
4012 test_varargs_macros (void)
4013 {
4014 int x = 1234;
4015 int y = 5678;
4016 debug ("Flag");
4017 debug ("X = %d\n", x);
4018 showlist (The first, second, and third items.);
4019 report (x>y, "x is %d but y is %d", x, y);
4020 }
4021
4022 // Check long long types.
4023 #define BIG64 18446744073709551615ull
4024 #define BIG32 4294967295ul
4025 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4026 #if !BIG_OK
4027 your preprocessor is broken;
4028 #endif
4029 #if BIG_OK
4030 #else
4031 your preprocessor is broken;
4032 #endif
4033 static long long int bignum = -9223372036854775807LL;
4034 static unsigned long long int ubignum = BIG64;
4035
4036 struct incomplete_array
4037 {
4038 int datasize;
4039 double data[];
4040 };
4041
4042 struct named_init {
4043 int number;
4044 const wchar_t *name;
4045 double average;
4046 };
4047
4048 typedef const char *ccp;
4049
4050 static inline int
4051 test_restrict (ccp restrict text)
4052 {
4053 // See if C++-style comments work.
4054 // Iterate through items via the restricted pointer.
4055 // Also check for declarations in for loops.
4056 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4057 continue;
4058 return 0;
4059 }
4060
4061 // Check varargs and va_copy.
4062 static void
4063 test_varargs (const char *format, ...)
4064 {
4065 va_list args;
4066 va_start (args, format);
4067 va_list args_copy;
4068 va_copy (args_copy, args);
4069
4070 const char *str;
4071 int number;
4072 float fnumber;
4073
4074 while (*format)
4075 {
4076 switch (*format++)
4077 {
4078 case 's': // string
4079 str = va_arg (args_copy, const char *);
4080 break;
4081 case 'd': // int
4082 number = va_arg (args_copy, int);
4083 break;
4084 case 'f': // float
4085 fnumber = va_arg (args_copy, double);
4086 break;
4087 default:
4088 break;
4089 }
4090 }
4091 va_end (args_copy);
4092 va_end (args);
4093 }
4094
4095 int
4096 main ()
4097 {
4098
4099 // Check bool.
4100 _Bool success = false;
4101
4102 // Check restrict.
4103 if (test_restrict ("String literal") == 0)
4104 success = true;
4105 char *restrict newvar = "Another string";
4106
4107 // Check varargs.
4108 test_varargs ("s, d' f .", "string", 65, 34.234);
4109 test_varargs_macros ();
4110
4111 // Check flexible array members.
4112 struct incomplete_array *ia =
4113 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4114 ia->datasize = 10;
4115 for (int i = 0; i < ia->datasize; ++i)
4116 ia->data[i] = i * 1.234;
4117
4118 // Check named initializers.
4119 struct named_init ni = {
4120 .number = 34,
4121 .name = L"Test wide string",
4122 .average = 543.34343,
4123 };
4124
4125 ni.number = 58;
4126
4127 int dynamic_array[ni.number];
4128 dynamic_array[ni.number - 1] = 543;
4129
4130 // work around unused variable warnings
4131 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4132 || dynamic_array[ni.number - 1] != 543);
4133
4134 ;
4135 return 0;
4136 }
4137 _ACEOF
4138 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
4139 do
4140 CC="$ac_save_CC $ac_arg"
4141 if ac_fn_c_try_compile "$LINENO"; then :
4142 ac_cv_prog_cc_c99=$ac_arg
4143 fi
4144 rm -f core conftest.err conftest.$ac_objext
4145 test "x$ac_cv_prog_cc_c99" != "xno" && break
4146 done
4147 rm -f conftest.$ac_ext
4148 CC=$ac_save_CC
4149
4150 fi
4151 # AC_CACHE_VAL
4152 case "x$ac_cv_prog_cc_c99" in
4153 x)
4154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4155 $as_echo "none needed" >&6; } ;;
4156 xno)
4157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4158 $as_echo "unsupported" >&6; } ;;
4159 *)
4160 CC="$CC $ac_cv_prog_cc_c99"
4161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4162 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4163 esac
4164 if test "x$ac_cv_prog_cc_c99" != xno; then :
4165
4166 fi
4167
4168
4169 if test "$ac_cv_prog_cc_c99" = "no"; then :
4170 as_fn_error $? "no suitable C99 compiler found. Aborting." "$LINENO" 5
4171 fi
4172 for ac_prog in 'bison -y' byacc
4173 do
4174 # Extract the first word of "$ac_prog", so it can be a program name with args.
4175 set dummy $ac_prog; ac_word=$2
4176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4177 $as_echo_n "checking for $ac_word... " >&6; }
4178 if ${ac_cv_prog_YACC+:} false; then :
4179 $as_echo_n "(cached) " >&6
4180 else
4181 if test -n "$YACC"; then
4182 ac_cv_prog_YACC="$YACC" # Let the user override the test.
4183 else
4184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4185 for as_dir in $PATH
4186 do
4187 IFS=$as_save_IFS
4188 test -z "$as_dir" && as_dir=.
4189 for ac_exec_ext in '' $ac_executable_extensions; do
4190 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4191 ac_cv_prog_YACC="$ac_prog"
4192 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4193 break 2
4194 fi
4195 done
4196 done
4197 IFS=$as_save_IFS
4198
4199 fi
4200 fi
4201 YACC=$ac_cv_prog_YACC
4202 if test -n "$YACC"; then
4203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
4204 $as_echo "$YACC" >&6; }
4205 else
4206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4207 $as_echo "no" >&6; }
4208 fi
4209
4210
4211 test -n "$YACC" && break
4212 done
4213 test -n "$YACC" || YACC="yacc"
4214
4215
4216 for ac_prog in flex lex
4217 do
4218 # Extract the first word of "$ac_prog", so it can be a program name with args.
4219 set dummy $ac_prog; ac_word=$2
4220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4221 $as_echo_n "checking for $ac_word... " >&6; }
4222 if ${ac_cv_prog_LEX+:} false; then :
4223 $as_echo_n "(cached) " >&6
4224 else
4225 if test -n "$LEX"; then
4226 ac_cv_prog_LEX="$LEX" # Let the user override the test.
4227 else
4228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4229 for as_dir in $PATH
4230 do
4231 IFS=$as_save_IFS
4232 test -z "$as_dir" && as_dir=.
4233 for ac_exec_ext in '' $ac_executable_extensions; do
4234 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4235 ac_cv_prog_LEX="$ac_prog"
4236 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4237 break 2
4238 fi
4239 done
4240 done
4241 IFS=$as_save_IFS
4242
4243 fi
4244 fi
4245 LEX=$ac_cv_prog_LEX
4246 if test -n "$LEX"; then
4247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
4248 $as_echo "$LEX" >&6; }
4249 else
4250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4251 $as_echo "no" >&6; }
4252 fi
4253
4254
4255 test -n "$LEX" && break
4256 done
4257 test -n "$LEX" || LEX=":"
4258
4259 if test "x$LEX" != "x:"; then
4260 cat >conftest.l <<_ACEOF
4261 %%
4262 a { ECHO; }
4263 b { REJECT; }
4264 c { yymore (); }
4265 d { yyless (1); }
4266 e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument. */
4267 yyless ((input () != 0)); }
4268 f { unput (yytext[0]); }
4269 . { BEGIN INITIAL; }
4270 %%
4271 #ifdef YYTEXT_POINTER
4272 extern char *yytext;
4273 #endif
4274 int
4275 main (void)
4276 {
4277 return ! yylex () + ! yywrap ();
4278 }
4279 _ACEOF
4280 { { ac_try="$LEX conftest.l"
4281 case "(($ac_try" in
4282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4283 *) ac_try_echo=$ac_try;;
4284 esac
4285 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4286 $as_echo "$ac_try_echo"; } >&5
4287 (eval "$LEX conftest.l") 2>&5
4288 ac_status=$?
4289 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4290 test $ac_status = 0; }
4291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
4292 $as_echo_n "checking lex output file root... " >&6; }
4293 if ${ac_cv_prog_lex_root+:} false; then :
4294 $as_echo_n "(cached) " >&6
4295 else
4296
4297 if test -f lex.yy.c; then
4298 ac_cv_prog_lex_root=lex.yy
4299 elif test -f lexyy.c; then
4300 ac_cv_prog_lex_root=lexyy
4301 else
4302 as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5
4303 fi
4304 fi
4305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
4306 $as_echo "$ac_cv_prog_lex_root" >&6; }
4307 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
4308
4309 if test -z "${LEXLIB+set}"; then
4310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
4311 $as_echo_n "checking lex library... " >&6; }
4312 if ${ac_cv_lib_lex+:} false; then :
4313 $as_echo_n "(cached) " >&6
4314 else
4315
4316 ac_save_LIBS=$LIBS
4317 ac_cv_lib_lex='none needed'
4318 for ac_lib in '' -lfl -ll; do
4319 LIBS="$ac_lib $ac_save_LIBS"
4320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4321 /* end confdefs.h. */
4322 `cat $LEX_OUTPUT_ROOT.c`
4323 _ACEOF
4324 if ac_fn_c_try_link "$LINENO"; then :
4325 ac_cv_lib_lex=$ac_lib
4326 fi
4327 rm -f core conftest.err conftest.$ac_objext \
4328 conftest$ac_exeext conftest.$ac_ext
4329 test "$ac_cv_lib_lex" != 'none needed' && break
4330 done
4331 LIBS=$ac_save_LIBS
4332
4333 fi
4334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
4335 $as_echo "$ac_cv_lib_lex" >&6; }
4336 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
4337 fi
4338
4339
4340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
4341 $as_echo_n "checking whether yytext is a pointer... " >&6; }
4342 if ${ac_cv_prog_lex_yytext_pointer+:} false; then :
4343 $as_echo_n "(cached) " >&6
4344 else
4345 # POSIX says lex can declare yytext either as a pointer or an array; the
4346 # default is implementation-dependent. Figure out which it is, since
4347 # not all implementations provide the %pointer and %array declarations.
4348 ac_cv_prog_lex_yytext_pointer=no
4349 ac_save_LIBS=$LIBS
4350 LIBS="$LEXLIB $ac_save_LIBS"
4351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4352 /* end confdefs.h. */
4353
4354 #define YYTEXT_POINTER 1
4355 `cat $LEX_OUTPUT_ROOT.c`
4356 _ACEOF
4357 if ac_fn_c_try_link "$LINENO"; then :
4358 ac_cv_prog_lex_yytext_pointer=yes
4359 fi
4360 rm -f core conftest.err conftest.$ac_objext \
4361 conftest$ac_exeext conftest.$ac_ext
4362 LIBS=$ac_save_LIBS
4363
4364 fi
4365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
4366 $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
4367 if test $ac_cv_prog_lex_yytext_pointer = yes; then
4368
4369 $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
4370
4371 fi
4372 rm -f conftest.l $LEX_OUTPUT_ROOT.c
4373
4374 fi
4375 if test "$LEX" = :; then
4376 LEX=${am_missing_run}flex
4377 fi
4378
4379
4380 # Initializing libtool.
4381
4382
4383
4384
4385
4386
4387
4388 case `pwd` in
4389 *\ * | *\ *)
4390 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4391 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4392 esac
4393
4394
4395
4396 macro_version='2.4.2'
4397 macro_revision='1.3337'
4398
4399
4400
4401
4402
4403
4404
4405
4406
4407
4408
4409
4410
4411 ltmain="$ac_aux_dir/ltmain.sh"
4412
4413 # Make sure we can run config.sub.
4414 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4415 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4416
4417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4418 $as_echo_n "checking build system type... " >&6; }
4419 if ${ac_cv_build+:} false; then :
4420 $as_echo_n "(cached) " >&6
4421 else
4422 ac_build_alias=$build_alias
4423 test "x$ac_build_alias" = x &&
4424 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4425 test "x$ac_build_alias" = x &&
4426 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4427 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4428 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4429
4430 fi
4431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4432 $as_echo "$ac_cv_build" >&6; }
4433 case $ac_cv_build in
4434 *-*-*) ;;
4435 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4436 esac
4437 build=$ac_cv_build
4438 ac_save_IFS=$IFS; IFS='-'
4439 set x $ac_cv_build
4440 shift
4441 build_cpu=$1
4442 build_vendor=$2
4443 shift; shift
4444 # Remember, the first character of IFS is used to create $*,
4445 # except with old shells:
4446 build_os=$*
4447 IFS=$ac_save_IFS
4448 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4449
4450
4451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4452 $as_echo_n "checking host system type... " >&6; }
4453 if ${ac_cv_host+:} false; then :
4454 $as_echo_n "(cached) " >&6
4455 else
4456 if test "x$host_alias" = x; then
4457 ac_cv_host=$ac_cv_build
4458 else
4459 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4460 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4461 fi
4462
4463 fi
4464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4465 $as_echo "$ac_cv_host" >&6; }
4466 case $ac_cv_host in
4467 *-*-*) ;;
4468 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4469 esac
4470 host=$ac_cv_host
4471 ac_save_IFS=$IFS; IFS='-'
4472 set x $ac_cv_host
4473 shift
4474 host_cpu=$1
4475 host_vendor=$2
4476 shift; shift
4477 # Remember, the first character of IFS is used to create $*,
4478 # except with old shells:
4479 host_os=$*
4480 IFS=$ac_save_IFS
4481 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4482
4483
4484 # Backslashify metacharacters that are still active within
4485 # double-quoted strings.
4486 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4487
4488 # Same as above, but do not quote variable references.
4489 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4490
4491 # Sed substitution to delay expansion of an escaped shell variable in a
4492 # double_quote_subst'ed string.
4493 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4494
4495 # Sed substitution to delay expansion of an escaped single quote.
4496 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4497
4498 # Sed substitution to avoid accidental globbing in evaled expressions
4499 no_glob_subst='s/\*/\\\*/g'
4500
4501 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4502 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4503 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4504
4505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4506 $as_echo_n "checking how to print strings... " >&6; }
4507 # Test print first, because it will be a builtin if present.
4508 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4509 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4510 ECHO='print -r --'
4511 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4512 ECHO='printf %s\n'
4513 else
4514 # Use this function as a fallback that always works.
4515 func_fallback_echo ()
4516 {
4517 eval 'cat <<_LTECHO_EOF
4518 $1
4519 _LTECHO_EOF'
4520 }
4521 ECHO='func_fallback_echo'
4522 fi
4523
4524 # func_echo_all arg...
4525 # Invoke $ECHO with all args, space-separated.
4526 func_echo_all ()
4527 {
4528 $ECHO ""
4529 }
4530
4531 case "$ECHO" in
4532 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4533 $as_echo "printf" >&6; } ;;
4534 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4535 $as_echo "print -r" >&6; } ;;
4536 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4537 $as_echo "cat" >&6; } ;;
4538 esac
4539
4540
4541
4542
4543
4544
4545
4546
4547
4548
4549
4550
4551
4552
4553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4554 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4555 if ${ac_cv_path_SED+:} false; then :
4556 $as_echo_n "(cached) " >&6
4557 else
4558 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4559 for ac_i in 1 2 3 4 5 6 7; do
4560 ac_script="$ac_script$as_nl$ac_script"
4561 done
4562 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4563 { ac_script=; unset ac_script;}
4564 if test -z "$SED"; then
4565 ac_path_SED_found=false
4566 # Loop through the user's path and test for each of PROGNAME-LIST
4567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4568 for as_dir in $PATH
4569 do
4570 IFS=$as_save_IFS
4571 test -z "$as_dir" && as_dir=.
4572 for ac_prog in sed gsed; do
4573 for ac_exec_ext in '' $ac_executable_extensions; do
4574 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4575 as_fn_executable_p "$ac_path_SED" || continue
4576 # Check for GNU ac_path_SED and select it if it is found.
4577 # Check for GNU $ac_path_SED
4578 case `"$ac_path_SED" --version 2>&1` in
4579 *GNU*)
4580 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4581 *)
4582 ac_count=0
4583 $as_echo_n 0123456789 >"conftest.in"
4584 while :
4585 do
4586 cat "conftest.in" "conftest.in" >"conftest.tmp"
4587 mv "conftest.tmp" "conftest.in"
4588 cp "conftest.in" "conftest.nl"
4589 $as_echo '' >> "conftest.nl"
4590 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4591 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4592 as_fn_arith $ac_count + 1 && ac_count=$as_val
4593 if test $ac_count -gt ${ac_path_SED_max-0}; then
4594 # Best one so far, save it but keep looking for a better one
4595 ac_cv_path_SED="$ac_path_SED"
4596 ac_path_SED_max=$ac_count
4597 fi
4598 # 10*(2^10) chars as input seems more than enough
4599 test $ac_count -gt 10 && break
4600 done
4601 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4602 esac
4603
4604 $ac_path_SED_found && break 3
4605 done
4606 done
4607 done
4608 IFS=$as_save_IFS
4609 if test -z "$ac_cv_path_SED"; then
4610 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4611 fi
4612 else
4613 ac_cv_path_SED=$SED
4614 fi
4615
4616 fi
4617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4618 $as_echo "$ac_cv_path_SED" >&6; }
4619 SED="$ac_cv_path_SED"
4620 rm -f conftest.sed
4621
4622 test -z "$SED" && SED=sed
4623 Xsed="$SED -e 1s/^X//"
4624
4625
4626
4627
4628
4629
4630
4631
4632
4633
4634
4635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4636 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4637 if ${ac_cv_path_GREP+:} false; then :
4638 $as_echo_n "(cached) " >&6
4639 else
4640 if test -z "$GREP"; then
4641 ac_path_GREP_found=false
4642 # Loop through the user's path and test for each of PROGNAME-LIST
4643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4644 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4645 do
4646 IFS=$as_save_IFS
4647 test -z "$as_dir" && as_dir=.
4648 for ac_prog in grep ggrep; do
4649 for ac_exec_ext in '' $ac_executable_extensions; do
4650 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4651 as_fn_executable_p "$ac_path_GREP" || continue
4652 # Check for GNU ac_path_GREP and select it if it is found.
4653 # Check for GNU $ac_path_GREP
4654 case `"$ac_path_GREP" --version 2>&1` in
4655 *GNU*)
4656 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4657 *)
4658 ac_count=0
4659 $as_echo_n 0123456789 >"conftest.in"
4660 while :
4661 do
4662 cat "conftest.in" "conftest.in" >"conftest.tmp"
4663 mv "conftest.tmp" "conftest.in"
4664 cp "conftest.in" "conftest.nl"
4665 $as_echo 'GREP' >> "conftest.nl"
4666 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4667 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4668 as_fn_arith $ac_count + 1 && ac_count=$as_val
4669 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4670 # Best one so far, save it but keep looking for a better one
4671 ac_cv_path_GREP="$ac_path_GREP"
4672 ac_path_GREP_max=$ac_count
4673 fi
4674 # 10*(2^10) chars as input seems more than enough
4675 test $ac_count -gt 10 && break
4676 done
4677 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4678 esac
4679
4680 $ac_path_GREP_found && break 3
4681 done
4682 done
4683 done
4684 IFS=$as_save_IFS
4685 if test -z "$ac_cv_path_GREP"; then
4686 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4687 fi
4688 else
4689 ac_cv_path_GREP=$GREP
4690 fi
4691
4692 fi
4693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4694 $as_echo "$ac_cv_path_GREP" >&6; }
4695 GREP="$ac_cv_path_GREP"
4696
4697
4698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4699 $as_echo_n "checking for egrep... " >&6; }
4700 if ${ac_cv_path_EGREP+:} false; then :
4701 $as_echo_n "(cached) " >&6
4702 else
4703 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4704 then ac_cv_path_EGREP="$GREP -E"
4705 else
4706 if test -z "$EGREP"; then
4707 ac_path_EGREP_found=false
4708 # Loop through the user's path and test for each of PROGNAME-LIST
4709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4710 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4711 do
4712 IFS=$as_save_IFS
4713 test -z "$as_dir" && as_dir=.
4714 for ac_prog in egrep; do
4715 for ac_exec_ext in '' $ac_executable_extensions; do
4716 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4717 as_fn_executable_p "$ac_path_EGREP" || continue
4718 # Check for GNU ac_path_EGREP and select it if it is found.
4719 # Check for GNU $ac_path_EGREP
4720 case `"$ac_path_EGREP" --version 2>&1` in
4721 *GNU*)
4722 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4723 *)
4724 ac_count=0
4725 $as_echo_n 0123456789 >"conftest.in"
4726 while :
4727 do
4728 cat "conftest.in" "conftest.in" >"conftest.tmp"
4729 mv "conftest.tmp" "conftest.in"
4730 cp "conftest.in" "conftest.nl"
4731 $as_echo 'EGREP' >> "conftest.nl"
4732 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4733 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4734 as_fn_arith $ac_count + 1 && ac_count=$as_val
4735 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4736 # Best one so far, save it but keep looking for a better one
4737 ac_cv_path_EGREP="$ac_path_EGREP"
4738 ac_path_EGREP_max=$ac_count
4739 fi
4740 # 10*(2^10) chars as input seems more than enough
4741 test $ac_count -gt 10 && break
4742 done
4743 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4744 esac
4745
4746 $ac_path_EGREP_found && break 3
4747 done
4748 done
4749 done
4750 IFS=$as_save_IFS
4751 if test -z "$ac_cv_path_EGREP"; then
4752 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4753 fi
4754 else
4755 ac_cv_path_EGREP=$EGREP
4756 fi
4757
4758 fi
4759 fi
4760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4761 $as_echo "$ac_cv_path_EGREP" >&6; }
4762 EGREP="$ac_cv_path_EGREP"
4763
4764
4765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4766 $as_echo_n "checking for fgrep... " >&6; }
4767 if ${ac_cv_path_FGREP+:} false; then :
4768 $as_echo_n "(cached) " >&6
4769 else
4770 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4771 then ac_cv_path_FGREP="$GREP -F"
4772 else
4773 if test -z "$FGREP"; then
4774 ac_path_FGREP_found=false
4775 # Loop through the user's path and test for each of PROGNAME-LIST
4776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4777 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4778 do
4779 IFS=$as_save_IFS
4780 test -z "$as_dir" && as_dir=.
4781 for ac_prog in fgrep; do
4782 for ac_exec_ext in '' $ac_executable_extensions; do
4783 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4784 as_fn_executable_p "$ac_path_FGREP" || continue
4785 # Check for GNU ac_path_FGREP and select it if it is found.
4786 # Check for GNU $ac_path_FGREP
4787 case `"$ac_path_FGREP" --version 2>&1` in
4788 *GNU*)
4789 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4790 *)
4791 ac_count=0
4792 $as_echo_n 0123456789 >"conftest.in"
4793 while :
4794 do
4795 cat "conftest.in" "conftest.in" >"conftest.tmp"
4796 mv "conftest.tmp" "conftest.in"
4797 cp "conftest.in" "conftest.nl"
4798 $as_echo 'FGREP' >> "conftest.nl"
4799 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4800 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4801 as_fn_arith $ac_count + 1 && ac_count=$as_val
4802 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4803 # Best one so far, save it but keep looking for a better one
4804 ac_cv_path_FGREP="$ac_path_FGREP"
4805 ac_path_FGREP_max=$ac_count
4806 fi
4807 # 10*(2^10) chars as input seems more than enough
4808 test $ac_count -gt 10 && break
4809 done
4810 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4811 esac
4812
4813 $ac_path_FGREP_found && break 3
4814 done
4815 done
4816 done
4817 IFS=$as_save_IFS
4818 if test -z "$ac_cv_path_FGREP"; then
4819 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4820 fi
4821 else
4822 ac_cv_path_FGREP=$FGREP
4823 fi
4824
4825 fi
4826 fi
4827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4828 $as_echo "$ac_cv_path_FGREP" >&6; }
4829 FGREP="$ac_cv_path_FGREP"
4830
4831
4832 test -z "$GREP" && GREP=grep
4833
4834
4835
4836
4837
4838
4839
4840
4841
4842
4843
4844
4845
4846
4847
4848
4849
4850
4851
4852 # Check whether --with-gnu-ld was given.
4853 if test "${with_gnu_ld+set}" = set; then :
4854 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4855 else
4856 with_gnu_ld=no
4857 fi
4858
4859 ac_prog=ld
4860 if test "$GCC" = yes; then
4861 # Check if gcc -print-prog-name=ld gives a path.
4862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4863 $as_echo_n "checking for ld used by $CC... " >&6; }
4864 case $host in
4865 *-*-mingw*)
4866 # gcc leaves a trailing carriage return which upsets mingw
4867 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4868 *)
4869 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4870 esac
4871 case $ac_prog in
4872 # Accept absolute paths.
4873 [\\/]* | ?:[\\/]*)
4874 re_direlt='/[^/][^/]*/\.\./'
4875 # Canonicalize the pathname of ld
4876 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4877 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4878 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4879 done
4880 test -z "$LD" && LD="$ac_prog"
4881 ;;
4882 "")
4883 # If it fails, then pretend we aren't using GCC.
4884 ac_prog=ld
4885 ;;
4886 *)
4887 # If it is relative, then search for the first ld in PATH.
4888 with_gnu_ld=unknown
4889 ;;
4890 esac
4891 elif test "$with_gnu_ld" = yes; then
4892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4893 $as_echo_n "checking for GNU ld... " >&6; }
4894 else
4895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4896 $as_echo_n "checking for non-GNU ld... " >&6; }
4897 fi
4898 if ${lt_cv_path_LD+:} false; then :
4899 $as_echo_n "(cached) " >&6
4900 else
4901 if test -z "$LD"; then
4902 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4903 for ac_dir in $PATH; do
4904 IFS="$lt_save_ifs"
4905 test -z "$ac_dir" && ac_dir=.
4906 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4907 lt_cv_path_LD="$ac_dir/$ac_prog"
4908 # Check to see if the program is GNU ld. I'd rather use --version,
4909 # but apparently some variants of GNU ld only accept -v.
4910 # Break only if it was the GNU/non-GNU ld that we prefer.
4911 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4912 *GNU* | *'with BFD'*)
4913 test "$with_gnu_ld" != no && break
4914 ;;
4915 *)
4916 test "$with_gnu_ld" != yes && break
4917 ;;
4918 esac
4919 fi
4920 done
4921 IFS="$lt_save_ifs"
4922 else
4923 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4924 fi
4925 fi
4926
4927 LD="$lt_cv_path_LD"
4928 if test -n "$LD"; then
4929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4930 $as_echo "$LD" >&6; }
4931 else
4932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4933 $as_echo "no" >&6; }
4934 fi
4935 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4937 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4938 if ${lt_cv_prog_gnu_ld+:} false; then :
4939 $as_echo_n "(cached) " >&6
4940 else
4941 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4942 case `$LD -v 2>&1 </dev/null` in
4943 *GNU* | *'with BFD'*)
4944 lt_cv_prog_gnu_ld=yes
4945 ;;
4946 *)
4947 lt_cv_prog_gnu_ld=no
4948 ;;
4949 esac
4950 fi
4951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4952 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4953 with_gnu_ld=$lt_cv_prog_gnu_ld
4954
4955
4956
4957
4958
4959
4960
4961
4962
4963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4964 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4965 if ${lt_cv_path_NM+:} false; then :
4966 $as_echo_n "(cached) " >&6
4967 else
4968 if test -n "$NM"; then
4969 # Let the user override the test.
4970 lt_cv_path_NM="$NM"
4971 else
4972 lt_nm_to_check="${ac_tool_prefix}nm"
4973 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4974 lt_nm_to_check="$lt_nm_to_check nm"
4975 fi
4976 for lt_tmp_nm in $lt_nm_to_check; do
4977 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4978 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4979 IFS="$lt_save_ifs"
4980 test -z "$ac_dir" && ac_dir=.
4981 tmp_nm="$ac_dir/$lt_tmp_nm"
4982 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4983 # Check to see if the nm accepts a BSD-compat flag.
4984 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4985 # nm: unknown option "B" ignored
4986 # Tru64's nm complains that /dev/null is an invalid object file
4987 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4988 */dev/null* | *'Invalid file or object type'*)
4989 lt_cv_path_NM="$tmp_nm -B"
4990 break
4991 ;;
4992 *)
4993 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4994 */dev/null*)
4995 lt_cv_path_NM="$tmp_nm -p"
4996 break
4997 ;;
4998 *)
4999 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5000 continue # so that we can try to find one that supports BSD flags
5001 ;;
5002 esac
5003 ;;
5004 esac
5005 fi
5006 done
5007 IFS="$lt_save_ifs"
5008 done
5009 : ${lt_cv_path_NM=no}
5010 fi
5011 fi
5012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5013 $as_echo "$lt_cv_path_NM" >&6; }
5014 if test "$lt_cv_path_NM" != "no"; then
5015 NM="$lt_cv_path_NM"
5016 else
5017 # Didn't find any BSD compatible name lister, look for dumpbin.
5018 if test -n "$DUMPBIN"; then :
5019 # Let the user override the test.
5020 else
5021 if test -n "$ac_tool_prefix"; then
5022 for ac_prog in dumpbin "link -dump"
5023 do
5024 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5025 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5027 $as_echo_n "checking for $ac_word... " >&6; }
5028 if ${ac_cv_prog_DUMPBIN+:} false; then :
5029 $as_echo_n "(cached) " >&6
5030 else
5031 if test -n "$DUMPBIN"; then
5032 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5033 else
5034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5035 for as_dir in $PATH
5036 do
5037 IFS=$as_save_IFS
5038 test -z "$as_dir" && as_dir=.
5039 for ac_exec_ext in '' $ac_executable_extensions; do
5040 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5041 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5042 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5043 break 2
5044 fi
5045 done
5046 done
5047 IFS=$as_save_IFS
5048
5049 fi
5050 fi
5051 DUMPBIN=$ac_cv_prog_DUMPBIN
5052 if test -n "$DUMPBIN"; then
5053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5054 $as_echo "$DUMPBIN" >&6; }
5055 else
5056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5057 $as_echo "no" >&6; }
5058 fi
5059
5060
5061 test -n "$DUMPBIN" && break
5062 done
5063 fi
5064 if test -z "$DUMPBIN"; then
5065 ac_ct_DUMPBIN=$DUMPBIN
5066 for ac_prog in dumpbin "link -dump"
5067 do
5068 # Extract the first word of "$ac_prog", so it can be a program name with args.
5069 set dummy $ac_prog; ac_word=$2
5070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5071 $as_echo_n "checking for $ac_word... " >&6; }
5072 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5073 $as_echo_n "(cached) " >&6
5074 else
5075 if test -n "$ac_ct_DUMPBIN"; then
5076 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5077 else
5078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5079 for as_dir in $PATH
5080 do
5081 IFS=$as_save_IFS
5082 test -z "$as_dir" && as_dir=.
5083 for ac_exec_ext in '' $ac_executable_extensions; do
5084 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5085 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5086 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5087 break 2
5088 fi
5089 done
5090 done
5091 IFS=$as_save_IFS
5092
5093 fi
5094 fi
5095 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5096 if test -n "$ac_ct_DUMPBIN"; then
5097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5098 $as_echo "$ac_ct_DUMPBIN" >&6; }
5099 else
5100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5101 $as_echo "no" >&6; }
5102 fi
5103
5104
5105 test -n "$ac_ct_DUMPBIN" && break
5106 done
5107
5108 if test "x$ac_ct_DUMPBIN" = x; then
5109 DUMPBIN=":"
5110 else
5111 case $cross_compiling:$ac_tool_warned in
5112 yes:)
5113 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5114 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5115 ac_tool_warned=yes ;;
5116 esac
5117 DUMPBIN=$ac_ct_DUMPBIN
5118 fi
5119 fi
5120
5121 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5122 *COFF*)
5123 DUMPBIN="$DUMPBIN -symbols"
5124 ;;
5125 *)
5126 DUMPBIN=:
5127 ;;
5128 esac
5129 fi
5130
5131 if test "$DUMPBIN" != ":"; then
5132 NM="$DUMPBIN"
5133 fi
5134 fi
5135 test -z "$NM" && NM=nm
5136
5137
5138
5139
5140
5141
5142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5143 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5144 if ${lt_cv_nm_interface+:} false; then :
5145 $as_echo_n "(cached) " >&6
5146 else
5147 lt_cv_nm_interface="BSD nm"
5148 echo "int some_variable = 0;" > conftest.$ac_ext
5149 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5150 (eval "$ac_compile" 2>conftest.err)
5151 cat conftest.err >&5
5152 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5153 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5154 cat conftest.err >&5
5155 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5156 cat conftest.out >&5
5157 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5158 lt_cv_nm_interface="MS dumpbin"
5159 fi
5160 rm -f conftest*
5161 fi
5162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5163 $as_echo "$lt_cv_nm_interface" >&6; }
5164
5165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5166 $as_echo_n "checking whether ln -s works... " >&6; }
5167 LN_S=$as_ln_s
5168 if test "$LN_S" = "ln -s"; then
5169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5170 $as_echo "yes" >&6; }
5171 else
5172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5173 $as_echo "no, using $LN_S" >&6; }
5174 fi
5175
5176 # find the maximum length of command line arguments
5177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5178 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5179 if ${lt_cv_sys_max_cmd_len+:} false; then :
5180 $as_echo_n "(cached) " >&6
5181 else
5182 i=0
5183 teststring="ABCD"
5184
5185 case $build_os in
5186 msdosdjgpp*)
5187 # On DJGPP, this test can blow up pretty badly due to problems in libc
5188 # (any single argument exceeding 2000 bytes causes a buffer overrun
5189 # during glob expansion). Even if it were fixed, the result of this
5190 # check would be larger than it should be.
5191 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5192 ;;
5193
5194 gnu*)
5195 # Under GNU Hurd, this test is not required because there is
5196 # no limit to the length of command line arguments.
5197 # Libtool will interpret -1 as no limit whatsoever
5198 lt_cv_sys_max_cmd_len=-1;
5199 ;;
5200
5201 cygwin* | mingw* | cegcc*)
5202 # On Win9x/ME, this test blows up -- it succeeds, but takes
5203 # about 5 minutes as the teststring grows exponentially.
5204 # Worse, since 9x/ME are not pre-emptively multitasking,
5205 # you end up with a "frozen" computer, even though with patience
5206 # the test eventually succeeds (with a max line length of 256k).
5207 # Instead, let's just punt: use the minimum linelength reported by
5208 # all of the supported platforms: 8192 (on NT/2K/XP).
5209 lt_cv_sys_max_cmd_len=8192;
5210 ;;
5211
5212 mint*)
5213 # On MiNT this can take a long time and run out of memory.
5214 lt_cv_sys_max_cmd_len=8192;
5215 ;;
5216
5217 amigaos*)
5218 # On AmigaOS with pdksh, this test takes hours, literally.
5219 # So we just punt and use a minimum line length of 8192.
5220 lt_cv_sys_max_cmd_len=8192;
5221 ;;
5222
5223 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5224 # This has been around since 386BSD, at least. Likely further.
5225 if test -x /sbin/sysctl; then
5226 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5227 elif test -x /usr/sbin/sysctl; then
5228 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5229 else
5230 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5231 fi
5232 # And add a safety zone
5233 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5234 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5235 ;;
5236
5237 interix*)
5238 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5239 lt_cv_sys_max_cmd_len=196608
5240 ;;
5241
5242 os2*)
5243 # The test takes a long time on OS/2.
5244 lt_cv_sys_max_cmd_len=8192
5245 ;;
5246
5247 osf*)
5248 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5249 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5250 # nice to cause kernel panics so lets avoid the loop below.
5251 # First set a reasonable default.
5252 lt_cv_sys_max_cmd_len=16384
5253 #
5254 if test -x /sbin/sysconfig; then
5255 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5256 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5257 esac
5258 fi
5259 ;;
5260 sco3.2v5*)
5261 lt_cv_sys_max_cmd_len=102400
5262 ;;
5263 sysv5* | sco5v6* | sysv4.2uw2*)
5264 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5265 if test -n "$kargmax"; then
5266 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5267 else
5268 lt_cv_sys_max_cmd_len=32768
5269 fi
5270 ;;
5271 *)
5272 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5273 if test -n "$lt_cv_sys_max_cmd_len"; then
5274 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5275 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5276 else
5277 # Make teststring a little bigger before we do anything with it.
5278 # a 1K string should be a reasonable start.
5279 for i in 1 2 3 4 5 6 7 8 ; do
5280 teststring=$teststring$teststring
5281 done
5282 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5283 # If test is not a shell built-in, we'll probably end up computing a
5284 # maximum length that is only half of the actual maximum length, but
5285 # we can't tell.
5286 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5287 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5288 test $i != 17 # 1/2 MB should be enough
5289 do
5290 i=`expr $i + 1`
5291 teststring=$teststring$teststring
5292 done
5293 # Only check the string length outside the loop.
5294 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5295 teststring=
5296 # Add a significant safety factor because C++ compilers can tack on
5297 # massive amounts of additional arguments before passing them to the
5298 # linker. It appears as though 1/2 is a usable value.
5299 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5300 fi
5301 ;;
5302 esac
5303
5304 fi
5305
5306 if test -n $lt_cv_sys_max_cmd_len ; then
5307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5308 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5309 else
5310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5311 $as_echo "none" >&6; }
5312 fi
5313 max_cmd_len=$lt_cv_sys_max_cmd_len
5314
5315
5316
5317
5318
5319
5320 : ${CP="cp -f"}
5321 : ${MV="mv -f"}
5322 : ${RM="rm -f"}
5323
5324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5325 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5326 # Try some XSI features
5327 xsi_shell=no
5328 ( _lt_dummy="a/b/c"
5329 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5330 = c,a/b,b/c, \
5331 && eval 'test $(( 1 + 1 )) -eq 2 \
5332 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5333 && xsi_shell=yes
5334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5335 $as_echo "$xsi_shell" >&6; }
5336
5337
5338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5339 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5340 lt_shell_append=no
5341 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5342 >/dev/null 2>&1 \
5343 && lt_shell_append=yes
5344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5345 $as_echo "$lt_shell_append" >&6; }
5346
5347
5348 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5349 lt_unset=unset
5350 else
5351 lt_unset=false
5352 fi
5353
5354
5355
5356
5357
5358 # test EBCDIC or ASCII
5359 case `echo X|tr X '\101'` in
5360 A) # ASCII based system
5361 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5362 lt_SP2NL='tr \040 \012'
5363 lt_NL2SP='tr \015\012 \040\040'
5364 ;;
5365 *) # EBCDIC based system
5366 lt_SP2NL='tr \100 \n'
5367 lt_NL2SP='tr \r\n \100\100'
5368 ;;
5369 esac
5370
5371
5372
5373
5374
5375
5376
5377
5378
5379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5380 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5381 if ${lt_cv_to_host_file_cmd+:} false; then :
5382 $as_echo_n "(cached) " >&6
5383 else
5384 case $host in
5385 *-*-mingw* )
5386 case $build in
5387 *-*-mingw* ) # actually msys
5388 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5389 ;;
5390 *-*-cygwin* )
5391 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5392 ;;
5393 * ) # otherwise, assume *nix
5394 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5395 ;;
5396 esac
5397 ;;
5398 *-*-cygwin* )
5399 case $build in
5400 *-*-mingw* ) # actually msys
5401 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5402 ;;
5403 *-*-cygwin* )
5404 lt_cv_to_host_file_cmd=func_convert_file_noop
5405 ;;
5406 * ) # otherwise, assume *nix
5407 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5408 ;;
5409 esac
5410 ;;
5411 * ) # unhandled hosts (and "normal" native builds)
5412 lt_cv_to_host_file_cmd=func_convert_file_noop
5413 ;;
5414 esac
5415
5416 fi
5417
5418 to_host_file_cmd=$lt_cv_to_host_file_cmd
5419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5420 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5421
5422
5423
5424
5425
5426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5427 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5428 if ${lt_cv_to_tool_file_cmd+:} false; then :
5429 $as_echo_n "(cached) " >&6
5430 else
5431 #assume ordinary cross tools, or native build.
5432 lt_cv_to_tool_file_cmd=func_convert_file_noop
5433 case $host in
5434 *-*-mingw* )
5435 case $build in
5436 *-*-mingw* ) # actually msys
5437 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5438 ;;
5439 esac
5440 ;;
5441 esac
5442
5443 fi
5444
5445 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5447 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5448
5449
5450
5451
5452
5453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5454 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5455 if ${lt_cv_ld_reload_flag+:} false; then :
5456 $as_echo_n "(cached) " >&6
5457 else
5458 lt_cv_ld_reload_flag='-r'
5459 fi
5460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5461 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5462 reload_flag=$lt_cv_ld_reload_flag
5463 case $reload_flag in
5464 "" | " "*) ;;
5465 *) reload_flag=" $reload_flag" ;;
5466 esac
5467 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5468 case $host_os in
5469 cygwin* | mingw* | pw32* | cegcc*)
5470 if test "$GCC" != yes; then
5471 reload_cmds=false
5472 fi
5473 ;;
5474 darwin*)
5475 if test "$GCC" = yes; then
5476 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5477 else
5478 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5479 fi
5480 ;;
5481 esac
5482
5483
5484
5485
5486
5487
5488
5489
5490
5491 if test -n "$ac_tool_prefix"; then
5492 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5493 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5495 $as_echo_n "checking for $ac_word... " >&6; }
5496 if ${ac_cv_prog_OBJDUMP+:} false; then :
5497 $as_echo_n "(cached) " >&6
5498 else
5499 if test -n "$OBJDUMP"; then
5500 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5501 else
5502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5503 for as_dir in $PATH
5504 do
5505 IFS=$as_save_IFS
5506 test -z "$as_dir" && as_dir=.
5507 for ac_exec_ext in '' $ac_executable_extensions; do
5508 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5509 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5510 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5511 break 2
5512 fi
5513 done
5514 done
5515 IFS=$as_save_IFS
5516
5517 fi
5518 fi
5519 OBJDUMP=$ac_cv_prog_OBJDUMP
5520 if test -n "$OBJDUMP"; then
5521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5522 $as_echo "$OBJDUMP" >&6; }
5523 else
5524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5525 $as_echo "no" >&6; }
5526 fi
5527
5528
5529 fi
5530 if test -z "$ac_cv_prog_OBJDUMP"; then
5531 ac_ct_OBJDUMP=$OBJDUMP
5532 # Extract the first word of "objdump", so it can be a program name with args.
5533 set dummy objdump; ac_word=$2
5534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5535 $as_echo_n "checking for $ac_word... " >&6; }
5536 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5537 $as_echo_n "(cached) " >&6
5538 else
5539 if test -n "$ac_ct_OBJDUMP"; then
5540 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5541 else
5542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5543 for as_dir in $PATH
5544 do
5545 IFS=$as_save_IFS
5546 test -z "$as_dir" && as_dir=.
5547 for ac_exec_ext in '' $ac_executable_extensions; do
5548 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5549 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5550 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5551 break 2
5552 fi
5553 done
5554 done
5555 IFS=$as_save_IFS
5556
5557 fi
5558 fi
5559 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5560 if test -n "$ac_ct_OBJDUMP"; then
5561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5562 $as_echo "$ac_ct_OBJDUMP" >&6; }
5563 else
5564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5565 $as_echo "no" >&6; }
5566 fi
5567
5568 if test "x$ac_ct_OBJDUMP" = x; then
5569 OBJDUMP="false"
5570 else
5571 case $cross_compiling:$ac_tool_warned in
5572 yes:)
5573 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5574 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5575 ac_tool_warned=yes ;;
5576 esac
5577 OBJDUMP=$ac_ct_OBJDUMP
5578 fi
5579 else
5580 OBJDUMP="$ac_cv_prog_OBJDUMP"
5581 fi
5582
5583 test -z "$OBJDUMP" && OBJDUMP=objdump
5584
5585
5586
5587
5588
5589
5590
5591
5592
5593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5594 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5595 if ${lt_cv_deplibs_check_method+:} false; then :
5596 $as_echo_n "(cached) " >&6
5597 else
5598 lt_cv_file_magic_cmd='$MAGIC_CMD'
5599 lt_cv_file_magic_test_file=
5600 lt_cv_deplibs_check_method='unknown'
5601 # Need to set the preceding variable on all platforms that support
5602 # interlibrary dependencies.
5603 # 'none' -- dependencies not supported.
5604 # `unknown' -- same as none, but documents that we really don't know.
5605 # 'pass_all' -- all dependencies passed with no checks.
5606 # 'test_compile' -- check by making test program.
5607 # 'file_magic [[regex]]' -- check by looking for files in library path
5608 # which responds to the $file_magic_cmd with a given extended regex.
5609 # If you have `file' or equivalent on your system and you're not sure
5610 # whether `pass_all' will *always* work, you probably want this one.
5611
5612 case $host_os in
5613 aix[4-9]*)
5614 lt_cv_deplibs_check_method=pass_all
5615 ;;
5616
5617 beos*)
5618 lt_cv_deplibs_check_method=pass_all
5619 ;;
5620
5621 bsdi[45]*)
5622 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5623 lt_cv_file_magic_cmd='/usr/bin/file -L'
5624 lt_cv_file_magic_test_file=/shlib/libc.so
5625 ;;
5626
5627 cygwin*)
5628 # func_win32_libid is a shell function defined in ltmain.sh
5629 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5630 lt_cv_file_magic_cmd='func_win32_libid'
5631 ;;
5632
5633 mingw* | pw32*)
5634 # Base MSYS/MinGW do not provide the 'file' command needed by
5635 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5636 # unless we find 'file', for example because we are cross-compiling.
5637 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5638 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5639 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5640 lt_cv_file_magic_cmd='func_win32_libid'
5641 else
5642 # Keep this pattern in sync with the one in func_win32_libid.
5643 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5644 lt_cv_file_magic_cmd='$OBJDUMP -f'
5645 fi
5646 ;;
5647
5648 cegcc*)
5649 # use the weaker test based on 'objdump'. See mingw*.
5650 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5651 lt_cv_file_magic_cmd='$OBJDUMP -f'
5652 ;;
5653
5654 darwin* | rhapsody*)
5655 lt_cv_deplibs_check_method=pass_all
5656 ;;
5657
5658 freebsd* | dragonfly*)
5659 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5660 case $host_cpu in
5661 i*86 )
5662 # Not sure whether the presence of OpenBSD here was a mistake.
5663 # Let's accept both of them until this is cleared up.
5664 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5665 lt_cv_file_magic_cmd=/usr/bin/file
5666 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5667 ;;
5668 esac
5669 else
5670 lt_cv_deplibs_check_method=pass_all
5671 fi
5672 ;;
5673
5674 gnu*)
5675 lt_cv_deplibs_check_method=pass_all
5676 ;;
5677
5678 haiku*)
5679 lt_cv_deplibs_check_method=pass_all
5680 ;;
5681
5682 hpux10.20* | hpux11*)
5683 lt_cv_file_magic_cmd=/usr/bin/file
5684 case $host_cpu in
5685 ia64*)
5686 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5687 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5688 ;;
5689 hppa*64*)
5690 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]'
5691 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5692 ;;
5693 *)
5694 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5695 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5696 ;;
5697 esac
5698 ;;
5699
5700 interix[3-9]*)
5701 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5702 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5703 ;;
5704
5705 irix5* | irix6* | nonstopux*)
5706 case $LD in
5707 *-32|*"-32 ") libmagic=32-bit;;
5708 *-n32|*"-n32 ") libmagic=N32;;
5709 *-64|*"-64 ") libmagic=64-bit;;
5710 *) libmagic=never-match;;
5711 esac
5712 lt_cv_deplibs_check_method=pass_all
5713 ;;
5714
5715 # This must be glibc/ELF.
5716 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5717 lt_cv_deplibs_check_method=pass_all
5718 ;;
5719
5720 netbsd*)
5721 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5722 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5723 else
5724 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5725 fi
5726 ;;
5727
5728 newos6*)
5729 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5730 lt_cv_file_magic_cmd=/usr/bin/file
5731 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5732 ;;
5733
5734 *nto* | *qnx*)
5735 lt_cv_deplibs_check_method=pass_all
5736 ;;
5737
5738 openbsd*)
5739 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5740 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5741 else
5742 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5743 fi
5744 ;;
5745
5746 osf3* | osf4* | osf5*)
5747 lt_cv_deplibs_check_method=pass_all
5748 ;;
5749
5750 rdos*)
5751 lt_cv_deplibs_check_method=pass_all
5752 ;;
5753
5754 solaris*)
5755 lt_cv_deplibs_check_method=pass_all
5756 ;;
5757
5758 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5759 lt_cv_deplibs_check_method=pass_all
5760 ;;
5761
5762 sysv4 | sysv4.3*)
5763 case $host_vendor in
5764 motorola)
5765 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]'
5766 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5767 ;;
5768 ncr)
5769 lt_cv_deplibs_check_method=pass_all
5770 ;;
5771 sequent)
5772 lt_cv_file_magic_cmd='/bin/file'
5773 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5774 ;;
5775 sni)
5776 lt_cv_file_magic_cmd='/bin/file'
5777 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5778 lt_cv_file_magic_test_file=/lib/libc.so
5779 ;;
5780 siemens)
5781 lt_cv_deplibs_check_method=pass_all
5782 ;;
5783 pc)
5784 lt_cv_deplibs_check_method=pass_all
5785 ;;
5786 esac
5787 ;;
5788
5789 tpf*)
5790 lt_cv_deplibs_check_method=pass_all
5791 ;;
5792 esac
5793
5794 fi
5795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5796 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5797
5798 file_magic_glob=
5799 want_nocaseglob=no
5800 if test "$build" = "$host"; then
5801 case $host_os in
5802 mingw* | pw32*)
5803 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5804 want_nocaseglob=yes
5805 else
5806 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5807 fi
5808 ;;
5809 esac
5810 fi
5811
5812 file_magic_cmd=$lt_cv_file_magic_cmd
5813 deplibs_check_method=$lt_cv_deplibs_check_method
5814 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5815
5816
5817
5818
5819
5820
5821
5822
5823
5824
5825
5826
5827
5828
5829
5830
5831
5832
5833
5834
5835
5836
5837 if test -n "$ac_tool_prefix"; then
5838 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5839 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5841 $as_echo_n "checking for $ac_word... " >&6; }
5842 if ${ac_cv_prog_DLLTOOL+:} false; then :
5843 $as_echo_n "(cached) " >&6
5844 else
5845 if test -n "$DLLTOOL"; then
5846 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5847 else
5848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5849 for as_dir in $PATH
5850 do
5851 IFS=$as_save_IFS
5852 test -z "$as_dir" && as_dir=.
5853 for ac_exec_ext in '' $ac_executable_extensions; do
5854 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5855 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5856 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5857 break 2
5858 fi
5859 done
5860 done
5861 IFS=$as_save_IFS
5862
5863 fi
5864 fi
5865 DLLTOOL=$ac_cv_prog_DLLTOOL
5866 if test -n "$DLLTOOL"; then
5867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5868 $as_echo "$DLLTOOL" >&6; }
5869 else
5870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5871 $as_echo "no" >&6; }
5872 fi
5873
5874
5875 fi
5876 if test -z "$ac_cv_prog_DLLTOOL"; then
5877 ac_ct_DLLTOOL=$DLLTOOL
5878 # Extract the first word of "dlltool", so it can be a program name with args.
5879 set dummy dlltool; ac_word=$2
5880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5881 $as_echo_n "checking for $ac_word... " >&6; }
5882 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5883 $as_echo_n "(cached) " >&6
5884 else
5885 if test -n "$ac_ct_DLLTOOL"; then
5886 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5887 else
5888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5889 for as_dir in $PATH
5890 do
5891 IFS=$as_save_IFS
5892 test -z "$as_dir" && as_dir=.
5893 for ac_exec_ext in '' $ac_executable_extensions; do
5894 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5895 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5896 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5897 break 2
5898 fi
5899 done
5900 done
5901 IFS=$as_save_IFS
5902
5903 fi
5904 fi
5905 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5906 if test -n "$ac_ct_DLLTOOL"; then
5907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5908 $as_echo "$ac_ct_DLLTOOL" >&6; }
5909 else
5910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5911 $as_echo "no" >&6; }
5912 fi
5913
5914 if test "x$ac_ct_DLLTOOL" = x; then
5915 DLLTOOL="false"
5916 else
5917 case $cross_compiling:$ac_tool_warned in
5918 yes:)
5919 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5920 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5921 ac_tool_warned=yes ;;
5922 esac
5923 DLLTOOL=$ac_ct_DLLTOOL
5924 fi
5925 else
5926 DLLTOOL="$ac_cv_prog_DLLTOOL"
5927 fi
5928
5929 test -z "$DLLTOOL" && DLLTOOL=dlltool
5930
5931
5932
5933
5934
5935
5936
5937
5938
5939
5940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5941 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5942 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5943 $as_echo_n "(cached) " >&6
5944 else
5945 lt_cv_sharedlib_from_linklib_cmd='unknown'
5946
5947 case $host_os in
5948 cygwin* | mingw* | pw32* | cegcc*)
5949 # two different shell functions defined in ltmain.sh
5950 # decide which to use based on capabilities of $DLLTOOL
5951 case `$DLLTOOL --help 2>&1` in
5952 *--identify-strict*)
5953 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5954 ;;
5955 *)
5956 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5957 ;;
5958 esac
5959 ;;
5960 *)
5961 # fallback: assume linklib IS sharedlib
5962 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5963 ;;
5964 esac
5965
5966 fi
5967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5968 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5969 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5970 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5971
5972
5973
5974
5975
5976
5977
5978 if test -n "$ac_tool_prefix"; then
5979 for ac_prog in ar
5980 do
5981 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5982 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5984 $as_echo_n "checking for $ac_word... " >&6; }
5985 if ${ac_cv_prog_AR+:} false; then :
5986 $as_echo_n "(cached) " >&6
5987 else
5988 if test -n "$AR"; then
5989 ac_cv_prog_AR="$AR" # Let the user override the test.
5990 else
5991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5992 for as_dir in $PATH
5993 do
5994 IFS=$as_save_IFS
5995 test -z "$as_dir" && as_dir=.
5996 for ac_exec_ext in '' $ac_executable_extensions; do
5997 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5998 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5999 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6000 break 2
6001 fi
6002 done
6003 done
6004 IFS=$as_save_IFS
6005
6006 fi
6007 fi
6008 AR=$ac_cv_prog_AR
6009 if test -n "$AR"; then
6010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6011 $as_echo "$AR" >&6; }
6012 else
6013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6014 $as_echo "no" >&6; }
6015 fi
6016
6017
6018 test -n "$AR" && break
6019 done
6020 fi
6021 if test -z "$AR"; then
6022 ac_ct_AR=$AR
6023 for ac_prog in ar
6024 do
6025 # Extract the first word of "$ac_prog", so it can be a program name with args.
6026 set dummy $ac_prog; ac_word=$2
6027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6028 $as_echo_n "checking for $ac_word... " >&6; }
6029 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6030 $as_echo_n "(cached) " >&6
6031 else
6032 if test -n "$ac_ct_AR"; then
6033 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6034 else
6035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6036 for as_dir in $PATH
6037 do
6038 IFS=$as_save_IFS
6039 test -z "$as_dir" && as_dir=.
6040 for ac_exec_ext in '' $ac_executable_extensions; do
6041 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6042 ac_cv_prog_ac_ct_AR="$ac_prog"
6043 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6044 break 2
6045 fi
6046 done
6047 done
6048 IFS=$as_save_IFS
6049
6050 fi
6051 fi
6052 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6053 if test -n "$ac_ct_AR"; then
6054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6055 $as_echo "$ac_ct_AR" >&6; }
6056 else
6057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6058 $as_echo "no" >&6; }
6059 fi
6060
6061
6062 test -n "$ac_ct_AR" && break
6063 done
6064
6065 if test "x$ac_ct_AR" = x; then
6066 AR="false"
6067 else
6068 case $cross_compiling:$ac_tool_warned in
6069 yes:)
6070 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6071 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6072 ac_tool_warned=yes ;;
6073 esac
6074 AR=$ac_ct_AR
6075 fi
6076 fi
6077
6078 : ${AR=ar}
6079 : ${AR_FLAGS=cru}
6080
6081
6082
6083
6084
6085
6086
6087
6088
6089
6090
6091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6092 $as_echo_n "checking for archiver @FILE support... " >&6; }
6093 if ${lt_cv_ar_at_file+:} false; then :
6094 $as_echo_n "(cached) " >&6
6095 else
6096 lt_cv_ar_at_file=no
6097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6098 /* end confdefs.h. */
6099
6100 int
6101 main ()
6102 {
6103
6104 ;
6105 return 0;
6106 }
6107 _ACEOF
6108 if ac_fn_c_try_compile "$LINENO"; then :
6109 echo conftest.$ac_objext > conftest.lst
6110 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6111 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6112 (eval $lt_ar_try) 2>&5
6113 ac_status=$?
6114 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6115 test $ac_status = 0; }
6116 if test "$ac_status" -eq 0; then
6117 # Ensure the archiver fails upon bogus file names.
6118 rm -f conftest.$ac_objext libconftest.a
6119 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6120 (eval $lt_ar_try) 2>&5
6121 ac_status=$?
6122 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6123 test $ac_status = 0; }
6124 if test "$ac_status" -ne 0; then
6125 lt_cv_ar_at_file=@
6126 fi
6127 fi
6128 rm -f conftest.* libconftest.a
6129
6130 fi
6131 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6132
6133 fi
6134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6135 $as_echo "$lt_cv_ar_at_file" >&6; }
6136
6137 if test "x$lt_cv_ar_at_file" = xno; then
6138 archiver_list_spec=
6139 else
6140 archiver_list_spec=$lt_cv_ar_at_file
6141 fi
6142
6143
6144
6145
6146
6147
6148
6149 if test -n "$ac_tool_prefix"; then
6150 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6151 set dummy ${ac_tool_prefix}strip; ac_word=$2
6152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6153 $as_echo_n "checking for $ac_word... " >&6; }
6154 if ${ac_cv_prog_STRIP+:} false; then :
6155 $as_echo_n "(cached) " >&6
6156 else
6157 if test -n "$STRIP"; then
6158 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6159 else
6160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6161 for as_dir in $PATH
6162 do
6163 IFS=$as_save_IFS
6164 test -z "$as_dir" && as_dir=.
6165 for ac_exec_ext in '' $ac_executable_extensions; do
6166 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6167 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6168 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6169 break 2
6170 fi
6171 done
6172 done
6173 IFS=$as_save_IFS
6174
6175 fi
6176 fi
6177 STRIP=$ac_cv_prog_STRIP
6178 if test -n "$STRIP"; then
6179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6180 $as_echo "$STRIP" >&6; }
6181 else
6182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6183 $as_echo "no" >&6; }
6184 fi
6185
6186
6187 fi
6188 if test -z "$ac_cv_prog_STRIP"; then
6189 ac_ct_STRIP=$STRIP
6190 # Extract the first word of "strip", so it can be a program name with args.
6191 set dummy strip; ac_word=$2
6192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6193 $as_echo_n "checking for $ac_word... " >&6; }
6194 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6195 $as_echo_n "(cached) " >&6
6196 else
6197 if test -n "$ac_ct_STRIP"; then
6198 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6199 else
6200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6201 for as_dir in $PATH
6202 do
6203 IFS=$as_save_IFS
6204 test -z "$as_dir" && as_dir=.
6205 for ac_exec_ext in '' $ac_executable_extensions; do
6206 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6207 ac_cv_prog_ac_ct_STRIP="strip"
6208 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6209 break 2
6210 fi
6211 done
6212 done
6213 IFS=$as_save_IFS
6214
6215 fi
6216 fi
6217 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6218 if test -n "$ac_ct_STRIP"; then
6219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6220 $as_echo "$ac_ct_STRIP" >&6; }
6221 else
6222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6223 $as_echo "no" >&6; }
6224 fi
6225
6226 if test "x$ac_ct_STRIP" = x; then
6227 STRIP=":"
6228 else
6229 case $cross_compiling:$ac_tool_warned in
6230 yes:)
6231 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6232 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6233 ac_tool_warned=yes ;;
6234 esac
6235 STRIP=$ac_ct_STRIP
6236 fi
6237 else
6238 STRIP="$ac_cv_prog_STRIP"
6239 fi
6240
6241 test -z "$STRIP" && STRIP=:
6242
6243
6244
6245
6246
6247
6248 if test -n "$ac_tool_prefix"; then
6249 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6250 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6252 $as_echo_n "checking for $ac_word... " >&6; }
6253 if ${ac_cv_prog_RANLIB+:} false; then :
6254 $as_echo_n "(cached) " >&6
6255 else
6256 if test -n "$RANLIB"; then
6257 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6258 else
6259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6260 for as_dir in $PATH
6261 do
6262 IFS=$as_save_IFS
6263 test -z "$as_dir" && as_dir=.
6264 for ac_exec_ext in '' $ac_executable_extensions; do
6265 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6266 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6267 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6268 break 2
6269 fi
6270 done
6271 done
6272 IFS=$as_save_IFS
6273
6274 fi
6275 fi
6276 RANLIB=$ac_cv_prog_RANLIB
6277 if test -n "$RANLIB"; then
6278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6279 $as_echo "$RANLIB" >&6; }
6280 else
6281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6282 $as_echo "no" >&6; }
6283 fi
6284
6285
6286 fi
6287 if test -z "$ac_cv_prog_RANLIB"; then
6288 ac_ct_RANLIB=$RANLIB
6289 # Extract the first word of "ranlib", so it can be a program name with args.
6290 set dummy ranlib; ac_word=$2
6291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6292 $as_echo_n "checking for $ac_word... " >&6; }
6293 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6294 $as_echo_n "(cached) " >&6
6295 else
6296 if test -n "$ac_ct_RANLIB"; then
6297 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6298 else
6299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6300 for as_dir in $PATH
6301 do
6302 IFS=$as_save_IFS
6303 test -z "$as_dir" && as_dir=.
6304 for ac_exec_ext in '' $ac_executable_extensions; do
6305 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6306 ac_cv_prog_ac_ct_RANLIB="ranlib"
6307 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6308 break 2
6309 fi
6310 done
6311 done
6312 IFS=$as_save_IFS
6313
6314 fi
6315 fi
6316 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6317 if test -n "$ac_ct_RANLIB"; then
6318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6319 $as_echo "$ac_ct_RANLIB" >&6; }
6320 else
6321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6322 $as_echo "no" >&6; }
6323 fi
6324
6325 if test "x$ac_ct_RANLIB" = x; then
6326 RANLIB=":"
6327 else
6328 case $cross_compiling:$ac_tool_warned in
6329 yes:)
6330 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6331 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6332 ac_tool_warned=yes ;;
6333 esac
6334 RANLIB=$ac_ct_RANLIB
6335 fi
6336 else
6337 RANLIB="$ac_cv_prog_RANLIB"
6338 fi
6339
6340 test -z "$RANLIB" && RANLIB=:
6341
6342
6343
6344
6345
6346
6347 # Determine commands to create old-style static archives.
6348 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6349 old_postinstall_cmds='chmod 644 $oldlib'
6350 old_postuninstall_cmds=
6351
6352 if test -n "$RANLIB"; then
6353 case $host_os in
6354 openbsd*)
6355 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6356 ;;
6357 *)
6358 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6359 ;;
6360 esac
6361 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6362 fi
6363
6364 case $host_os in
6365 darwin*)
6366 lock_old_archive_extraction=yes ;;
6367 *)
6368 lock_old_archive_extraction=no ;;
6369 esac
6370
6371
6372
6373
6374
6375
6376
6377
6378
6379
6380
6381
6382
6383
6384
6385
6386
6387
6388
6389
6390
6391
6392
6393
6394
6395
6396
6397
6398
6399
6400
6401
6402
6403
6404
6405
6406
6407
6408
6409 # If no C compiler was specified, use CC.
6410 LTCC=${LTCC-"$CC"}
6411
6412 # If no C compiler flags were specified, use CFLAGS.
6413 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6414
6415 # Allow CC to be a program name with arguments.
6416 compiler=$CC
6417
6418
6419 # Check for command to grab the raw symbol name followed by C symbol from nm.
6420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6421 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6422 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6423 $as_echo_n "(cached) " >&6
6424 else
6425
6426 # These are sane defaults that work on at least a few old systems.
6427 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6428
6429 # Character class describing NM global symbol codes.
6430 symcode='[BCDEGRST]'
6431
6432 # Regexp to match symbols that can be accessed directly from C.
6433 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6434
6435 # Define system-specific variables.
6436 case $host_os in
6437 aix*)
6438 symcode='[BCDT]'
6439 ;;
6440 cygwin* | mingw* | pw32* | cegcc*)
6441 symcode='[ABCDGISTW]'
6442 ;;
6443 hpux*)
6444 if test "$host_cpu" = ia64; then
6445 symcode='[ABCDEGRST]'
6446 fi
6447 ;;
6448 irix* | nonstopux*)
6449 symcode='[BCDEGRST]'
6450 ;;
6451 osf*)
6452 symcode='[BCDEGQRST]'
6453 ;;
6454 solaris*)
6455 symcode='[BDRT]'
6456 ;;
6457 sco3.2v5*)
6458 symcode='[DT]'
6459 ;;
6460 sysv4.2uw2*)
6461 symcode='[DT]'
6462 ;;
6463 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6464 symcode='[ABDT]'
6465 ;;
6466 sysv4)
6467 symcode='[DFNSTU]'
6468 ;;
6469 esac
6470
6471 # If we're using GNU nm, then use its standard symbol codes.
6472 case `$NM -V 2>&1` in
6473 *GNU* | *'with BFD'*)
6474 symcode='[ABCDGIRSTW]' ;;
6475 esac
6476
6477 # Transform an extracted symbol line into a proper C declaration.
6478 # Some systems (esp. on ia64) link data and code symbols differently,
6479 # so use this general approach.
6480 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6481
6482 # Transform an extracted symbol line into symbol name and symbol address
6483 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6484 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'"
6485
6486 # Handle CRLF in mingw tool chain
6487 opt_cr=
6488 case $build_os in
6489 mingw*)
6490 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6491 ;;
6492 esac
6493
6494 # Try without a prefix underscore, then with it.
6495 for ac_symprfx in "" "_"; do
6496
6497 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6498 symxfrm="\\1 $ac_symprfx\\2 \\2"
6499
6500 # Write the raw and C identifiers.
6501 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6502 # Fake it for dumpbin and say T for any non-static function
6503 # and D for any global variable.
6504 # Also find C++ and __fastcall symbols from MSVC++,
6505 # which start with @ or ?.
6506 lt_cv_sys_global_symbol_pipe="$AWK '"\
6507 " {last_section=section; section=\$ 3};"\
6508 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6509 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6510 " \$ 0!~/External *\|/{next};"\
6511 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6512 " {if(hide[section]) next};"\
6513 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6514 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6515 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6516 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6517 " ' prfx=^$ac_symprfx"
6518 else
6519 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6520 fi
6521 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6522
6523 # Check to see that the pipe works correctly.
6524 pipe_works=no
6525
6526 rm -f conftest*
6527 cat > conftest.$ac_ext <<_LT_EOF
6528 #ifdef __cplusplus
6529 extern "C" {
6530 #endif
6531 char nm_test_var;
6532 void nm_test_func(void);
6533 void nm_test_func(void){}
6534 #ifdef __cplusplus
6535 }
6536 #endif
6537 int main(){nm_test_var='a';nm_test_func();return(0);}
6538 _LT_EOF
6539
6540 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6541 (eval $ac_compile) 2>&5
6542 ac_status=$?
6543 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6544 test $ac_status = 0; }; then
6545 # Now try to grab the symbols.
6546 nlist=conftest.nm
6547 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6548 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6549 ac_status=$?
6550 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6551 test $ac_status = 0; } && test -s "$nlist"; then
6552 # Try sorting and uniquifying the output.
6553 if sort "$nlist" | uniq > "$nlist"T; then
6554 mv -f "$nlist"T "$nlist"
6555 else
6556 rm -f "$nlist"T
6557 fi
6558
6559 # Make sure that we snagged all the symbols we need.
6560 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6561 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6562 cat <<_LT_EOF > conftest.$ac_ext
6563 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6564 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6565 /* DATA imports from DLLs on WIN32 con't be const, because runtime
6566 relocations are performed -- see ld's documentation on pseudo-relocs. */
6567 # define LT_DLSYM_CONST
6568 #elif defined(__osf__)
6569 /* This system does not cope well with relocations in const data. */
6570 # define LT_DLSYM_CONST
6571 #else
6572 # define LT_DLSYM_CONST const
6573 #endif
6574
6575 #ifdef __cplusplus
6576 extern "C" {
6577 #endif
6578
6579 _LT_EOF
6580 # Now generate the symbol file.
6581 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6582
6583 cat <<_LT_EOF >> conftest.$ac_ext
6584
6585 /* The mapping between symbol names and symbols. */
6586 LT_DLSYM_CONST struct {
6587 const char *name;
6588 void *address;
6589 }
6590 lt__PROGRAM__LTX_preloaded_symbols[] =
6591 {
6592 { "@PROGRAM@", (void *) 0 },
6593 _LT_EOF
6594 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6595 cat <<\_LT_EOF >> conftest.$ac_ext
6596 {0, (void *) 0}
6597 };
6598
6599 /* This works around a problem in FreeBSD linker */
6600 #ifdef FREEBSD_WORKAROUND
6601 static const void *lt_preloaded_setup() {
6602 return lt__PROGRAM__LTX_preloaded_symbols;
6603 }
6604 #endif
6605
6606 #ifdef __cplusplus
6607 }
6608 #endif
6609 _LT_EOF
6610 # Now try linking the two files.
6611 mv conftest.$ac_objext conftstm.$ac_objext
6612 lt_globsym_save_LIBS=$LIBS
6613 lt_globsym_save_CFLAGS=$CFLAGS
6614 LIBS="conftstm.$ac_objext"
6615 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6616 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6617 (eval $ac_link) 2>&5
6618 ac_status=$?
6619 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6620 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6621 pipe_works=yes
6622 fi
6623 LIBS=$lt_globsym_save_LIBS
6624 CFLAGS=$lt_globsym_save_CFLAGS
6625 else
6626 echo "cannot find nm_test_func in $nlist" >&5
6627 fi
6628 else
6629 echo "cannot find nm_test_var in $nlist" >&5
6630 fi
6631 else
6632 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6633 fi
6634 else
6635 echo "$progname: failed program was:" >&5
6636 cat conftest.$ac_ext >&5
6637 fi
6638 rm -rf conftest* conftst*
6639
6640 # Do not use the global_symbol_pipe unless it works.
6641 if test "$pipe_works" = yes; then
6642 break
6643 else
6644 lt_cv_sys_global_symbol_pipe=
6645 fi
6646 done
6647
6648 fi
6649
6650 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6651 lt_cv_sys_global_symbol_to_cdecl=
6652 fi
6653 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6655 $as_echo "failed" >&6; }
6656 else
6657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6658 $as_echo "ok" >&6; }
6659 fi
6660
6661 # Response file support.
6662 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6663 nm_file_list_spec='@'
6664 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6665 nm_file_list_spec='@'
6666 fi
6667
6668
6669
6670
6671
6672
6673
6674
6675
6676
6677
6678
6679
6680
6681
6682
6683
6684
6685
6686
6687
6688
6689
6690
6691
6692
6693
6694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6695 $as_echo_n "checking for sysroot... " >&6; }
6696
6697 # Check whether --with-sysroot was given.
6698 if test "${with_sysroot+set}" = set; then :
6699 withval=$with_sysroot;
6700 else
6701 with_sysroot=no
6702 fi
6703
6704
6705 lt_sysroot=
6706 case ${with_sysroot} in #(
6707 yes)
6708 if test "$GCC" = yes; then
6709 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6710 fi
6711 ;; #(
6712 /*)
6713 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6714 ;; #(
6715 no|'')
6716 ;; #(
6717 *)
6718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6719 $as_echo "${with_sysroot}" >&6; }
6720 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6721 ;;
6722 esac
6723
6724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6725 $as_echo "${lt_sysroot:-no}" >&6; }
6726
6727
6728
6729
6730
6731 # Check whether --enable-libtool-lock was given.
6732 if test "${enable_libtool_lock+set}" = set; then :
6733 enableval=$enable_libtool_lock;
6734 fi
6735
6736 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6737
6738 # Some flags need to be propagated to the compiler or linker for good
6739 # libtool support.
6740 case $host in
6741 ia64-*-hpux*)
6742 # Find out which ABI we are using.
6743 echo 'int i;' > conftest.$ac_ext
6744 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6745 (eval $ac_compile) 2>&5
6746 ac_status=$?
6747 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6748 test $ac_status = 0; }; then
6749 case `/usr/bin/file conftest.$ac_objext` in
6750 *ELF-32*)
6751 HPUX_IA64_MODE="32"
6752 ;;
6753 *ELF-64*)
6754 HPUX_IA64_MODE="64"
6755 ;;
6756 esac
6757 fi
6758 rm -rf conftest*
6759 ;;
6760 *-*-irix6*)
6761 # Find out which ABI we are using.
6762 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6763 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6764 (eval $ac_compile) 2>&5
6765 ac_status=$?
6766 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6767 test $ac_status = 0; }; then
6768 if test "$lt_cv_prog_gnu_ld" = yes; then
6769 case `/usr/bin/file conftest.$ac_objext` in
6770 *32-bit*)
6771 LD="${LD-ld} -melf32bsmip"
6772 ;;
6773 *N32*)
6774 LD="${LD-ld} -melf32bmipn32"
6775 ;;
6776 *64-bit*)
6777 LD="${LD-ld} -melf64bmip"
6778 ;;
6779 esac
6780 else
6781 case `/usr/bin/file conftest.$ac_objext` in
6782 *32-bit*)
6783 LD="${LD-ld} -32"
6784 ;;
6785 *N32*)
6786 LD="${LD-ld} -n32"
6787 ;;
6788 *64-bit*)
6789 LD="${LD-ld} -64"
6790 ;;
6791 esac
6792 fi
6793 fi
6794 rm -rf conftest*
6795 ;;
6796
6797 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6798 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6799 # Find out which ABI we are using.
6800 echo 'int i;' > conftest.$ac_ext
6801 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6802 (eval $ac_compile) 2>&5
6803 ac_status=$?
6804 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6805 test $ac_status = 0; }; then
6806 case `/usr/bin/file conftest.o` in
6807 *32-bit*)
6808 case $host in
6809 x86_64-*kfreebsd*-gnu)
6810 LD="${LD-ld} -m elf_i386_fbsd"
6811 ;;
6812 x86_64-*linux*)
6813 LD="${LD-ld} -m elf_i386"
6814 ;;
6815 ppc64-*linux*|powerpc64-*linux*)
6816 LD="${LD-ld} -m elf32ppclinux"
6817 ;;
6818 s390x-*linux*)
6819 LD="${LD-ld} -m elf_s390"
6820 ;;
6821 sparc64-*linux*)
6822 LD="${LD-ld} -m elf32_sparc"
6823 ;;
6824 esac
6825 ;;
6826 *64-bit*)
6827 case $host in
6828 x86_64-*kfreebsd*-gnu)
6829 LD="${LD-ld} -m elf_x86_64_fbsd"
6830 ;;
6831 x86_64-*linux*)
6832 LD="${LD-ld} -m elf_x86_64"
6833 ;;
6834 ppc*-*linux*|powerpc*-*linux*)
6835 LD="${LD-ld} -m elf64ppc"
6836 ;;
6837 s390*-*linux*|s390*-*tpf*)
6838 LD="${LD-ld} -m elf64_s390"
6839 ;;
6840 sparc*-*linux*)
6841 LD="${LD-ld} -m elf64_sparc"
6842 ;;
6843 esac
6844 ;;
6845 esac
6846 fi
6847 rm -rf conftest*
6848 ;;
6849
6850 *-*-sco3.2v5*)
6851 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6852 SAVE_CFLAGS="$CFLAGS"
6853 CFLAGS="$CFLAGS -belf"
6854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6855 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6856 if ${lt_cv_cc_needs_belf+:} false; then :
6857 $as_echo_n "(cached) " >&6
6858 else
6859 ac_ext=c
6860 ac_cpp='$CPP $CPPFLAGS'
6861 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6862 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6863 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6864
6865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6866 /* end confdefs.h. */
6867
6868 int
6869 main ()
6870 {
6871
6872 ;
6873 return 0;
6874 }
6875 _ACEOF
6876 if ac_fn_c_try_link "$LINENO"; then :
6877 lt_cv_cc_needs_belf=yes
6878 else
6879 lt_cv_cc_needs_belf=no
6880 fi
6881 rm -f core conftest.err conftest.$ac_objext \
6882 conftest$ac_exeext conftest.$ac_ext
6883 ac_ext=c
6884 ac_cpp='$CPP $CPPFLAGS'
6885 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6886 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6887 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6888
6889 fi
6890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6891 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6892 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6893 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6894 CFLAGS="$SAVE_CFLAGS"
6895 fi
6896 ;;
6897 *-*solaris*)
6898 # Find out which ABI we are using.
6899 echo 'int i;' > conftest.$ac_ext
6900 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6901 (eval $ac_compile) 2>&5
6902 ac_status=$?
6903 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6904 test $ac_status = 0; }; then
6905 case `/usr/bin/file conftest.o` in
6906 *64-bit*)
6907 case $lt_cv_prog_gnu_ld in
6908 yes*)
6909 case $host in
6910 i?86-*-solaris*)
6911 LD="${LD-ld} -m elf_x86_64"
6912 ;;
6913 sparc*-*-solaris*)
6914 LD="${LD-ld} -m elf64_sparc"
6915 ;;
6916 esac
6917 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6918 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6919 LD="${LD-ld}_sol2"
6920 fi
6921 ;;
6922 *)
6923 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6924 LD="${LD-ld} -64"
6925 fi
6926 ;;
6927 esac
6928 ;;
6929 esac
6930 fi
6931 rm -rf conftest*
6932 ;;
6933 esac
6934
6935 need_locks="$enable_libtool_lock"
6936
6937 if test -n "$ac_tool_prefix"; then
6938 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6939 set dummy ${ac_tool_prefix}mt; ac_word=$2
6940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6941 $as_echo_n "checking for $ac_word... " >&6; }
6942 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6943 $as_echo_n "(cached) " >&6
6944 else
6945 if test -n "$MANIFEST_TOOL"; then
6946 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6947 else
6948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6949 for as_dir in $PATH
6950 do
6951 IFS=$as_save_IFS
6952 test -z "$as_dir" && as_dir=.
6953 for ac_exec_ext in '' $ac_executable_extensions; do
6954 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6955 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6956 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6957 break 2
6958 fi
6959 done
6960 done
6961 IFS=$as_save_IFS
6962
6963 fi
6964 fi
6965 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6966 if test -n "$MANIFEST_TOOL"; then
6967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6968 $as_echo "$MANIFEST_TOOL" >&6; }
6969 else
6970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6971 $as_echo "no" >&6; }
6972 fi
6973
6974
6975 fi
6976 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6977 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6978 # Extract the first word of "mt", so it can be a program name with args.
6979 set dummy mt; ac_word=$2
6980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6981 $as_echo_n "checking for $ac_word... " >&6; }
6982 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6983 $as_echo_n "(cached) " >&6
6984 else
6985 if test -n "$ac_ct_MANIFEST_TOOL"; then
6986 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6987 else
6988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6989 for as_dir in $PATH
6990 do
6991 IFS=$as_save_IFS
6992 test -z "$as_dir" && as_dir=.
6993 for ac_exec_ext in '' $ac_executable_extensions; do
6994 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6995 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6996 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6997 break 2
6998 fi
6999 done
7000 done
7001 IFS=$as_save_IFS
7002
7003 fi
7004 fi
7005 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7006 if test -n "$ac_ct_MANIFEST_TOOL"; then
7007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7008 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7009 else
7010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7011 $as_echo "no" >&6; }
7012 fi
7013
7014 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7015 MANIFEST_TOOL=":"
7016 else
7017 case $cross_compiling:$ac_tool_warned in
7018 yes:)
7019 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7020 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7021 ac_tool_warned=yes ;;
7022 esac
7023 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7024 fi
7025 else
7026 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7027 fi
7028
7029 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7031 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7032 if ${lt_cv_path_mainfest_tool+:} false; then :
7033 $as_echo_n "(cached) " >&6
7034 else
7035 lt_cv_path_mainfest_tool=no
7036 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7037 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7038 cat conftest.err >&5
7039 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7040 lt_cv_path_mainfest_tool=yes
7041 fi
7042 rm -f conftest*
7043 fi
7044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7045 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7046 if test "x$lt_cv_path_mainfest_tool" != xyes; then
7047 MANIFEST_TOOL=:
7048 fi
7049
7050
7051
7052
7053
7054
7055 case $host_os in
7056 rhapsody* | darwin*)
7057 if test -n "$ac_tool_prefix"; then
7058 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7059 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7061 $as_echo_n "checking for $ac_word... " >&6; }
7062 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7063 $as_echo_n "(cached) " >&6
7064 else
7065 if test -n "$DSYMUTIL"; then
7066 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7067 else
7068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7069 for as_dir in $PATH
7070 do
7071 IFS=$as_save_IFS
7072 test -z "$as_dir" && as_dir=.
7073 for ac_exec_ext in '' $ac_executable_extensions; do
7074 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7075 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7076 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7077 break 2
7078 fi
7079 done
7080 done
7081 IFS=$as_save_IFS
7082
7083 fi
7084 fi
7085 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7086 if test -n "$DSYMUTIL"; then
7087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7088 $as_echo "$DSYMUTIL" >&6; }
7089 else
7090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7091 $as_echo "no" >&6; }
7092 fi
7093
7094
7095 fi
7096 if test -z "$ac_cv_prog_DSYMUTIL"; then
7097 ac_ct_DSYMUTIL=$DSYMUTIL
7098 # Extract the first word of "dsymutil", so it can be a program name with args.
7099 set dummy dsymutil; ac_word=$2
7100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7101 $as_echo_n "checking for $ac_word... " >&6; }
7102 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7103 $as_echo_n "(cached) " >&6
7104 else
7105 if test -n "$ac_ct_DSYMUTIL"; then
7106 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7107 else
7108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7109 for as_dir in $PATH
7110 do
7111 IFS=$as_save_IFS
7112 test -z "$as_dir" && as_dir=.
7113 for ac_exec_ext in '' $ac_executable_extensions; do
7114 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7115 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7116 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7117 break 2
7118 fi
7119 done
7120 done
7121 IFS=$as_save_IFS
7122
7123 fi
7124 fi
7125 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7126 if test -n "$ac_ct_DSYMUTIL"; then
7127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7128 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7129 else
7130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7131 $as_echo "no" >&6; }
7132 fi
7133
7134 if test "x$ac_ct_DSYMUTIL" = x; then
7135 DSYMUTIL=":"
7136 else
7137 case $cross_compiling:$ac_tool_warned in
7138 yes:)
7139 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7140 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7141 ac_tool_warned=yes ;;
7142 esac
7143 DSYMUTIL=$ac_ct_DSYMUTIL
7144 fi
7145 else
7146 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7147 fi
7148
7149 if test -n "$ac_tool_prefix"; then
7150 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7151 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7153 $as_echo_n "checking for $ac_word... " >&6; }
7154 if ${ac_cv_prog_NMEDIT+:} false; then :
7155 $as_echo_n "(cached) " >&6
7156 else
7157 if test -n "$NMEDIT"; then
7158 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7159 else
7160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7161 for as_dir in $PATH
7162 do
7163 IFS=$as_save_IFS
7164 test -z "$as_dir" && as_dir=.
7165 for ac_exec_ext in '' $ac_executable_extensions; do
7166 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7167 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7168 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7169 break 2
7170 fi
7171 done
7172 done
7173 IFS=$as_save_IFS
7174
7175 fi
7176 fi
7177 NMEDIT=$ac_cv_prog_NMEDIT
7178 if test -n "$NMEDIT"; then
7179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7180 $as_echo "$NMEDIT" >&6; }
7181 else
7182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7183 $as_echo "no" >&6; }
7184 fi
7185
7186
7187 fi
7188 if test -z "$ac_cv_prog_NMEDIT"; then
7189 ac_ct_NMEDIT=$NMEDIT
7190 # Extract the first word of "nmedit", so it can be a program name with args.
7191 set dummy nmedit; ac_word=$2
7192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7193 $as_echo_n "checking for $ac_word... " >&6; }
7194 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7195 $as_echo_n "(cached) " >&6
7196 else
7197 if test -n "$ac_ct_NMEDIT"; then
7198 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7199 else
7200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7201 for as_dir in $PATH
7202 do
7203 IFS=$as_save_IFS
7204 test -z "$as_dir" && as_dir=.
7205 for ac_exec_ext in '' $ac_executable_extensions; do
7206 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7207 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7208 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7209 break 2
7210 fi
7211 done
7212 done
7213 IFS=$as_save_IFS
7214
7215 fi
7216 fi
7217 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7218 if test -n "$ac_ct_NMEDIT"; then
7219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7220 $as_echo "$ac_ct_NMEDIT" >&6; }
7221 else
7222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7223 $as_echo "no" >&6; }
7224 fi
7225
7226 if test "x$ac_ct_NMEDIT" = x; then
7227 NMEDIT=":"
7228 else
7229 case $cross_compiling:$ac_tool_warned in
7230 yes:)
7231 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7232 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7233 ac_tool_warned=yes ;;
7234 esac
7235 NMEDIT=$ac_ct_NMEDIT
7236 fi
7237 else
7238 NMEDIT="$ac_cv_prog_NMEDIT"
7239 fi
7240
7241 if test -n "$ac_tool_prefix"; then
7242 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7243 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7245 $as_echo_n "checking for $ac_word... " >&6; }
7246 if ${ac_cv_prog_LIPO+:} false; then :
7247 $as_echo_n "(cached) " >&6
7248 else
7249 if test -n "$LIPO"; then
7250 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7251 else
7252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7253 for as_dir in $PATH
7254 do
7255 IFS=$as_save_IFS
7256 test -z "$as_dir" && as_dir=.
7257 for ac_exec_ext in '' $ac_executable_extensions; do
7258 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7259 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7260 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7261 break 2
7262 fi
7263 done
7264 done
7265 IFS=$as_save_IFS
7266
7267 fi
7268 fi
7269 LIPO=$ac_cv_prog_LIPO
7270 if test -n "$LIPO"; then
7271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7272 $as_echo "$LIPO" >&6; }
7273 else
7274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7275 $as_echo "no" >&6; }
7276 fi
7277
7278
7279 fi
7280 if test -z "$ac_cv_prog_LIPO"; then
7281 ac_ct_LIPO=$LIPO
7282 # Extract the first word of "lipo", so it can be a program name with args.
7283 set dummy lipo; ac_word=$2
7284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7285 $as_echo_n "checking for $ac_word... " >&6; }
7286 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7287 $as_echo_n "(cached) " >&6
7288 else
7289 if test -n "$ac_ct_LIPO"; then
7290 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7291 else
7292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7293 for as_dir in $PATH
7294 do
7295 IFS=$as_save_IFS
7296 test -z "$as_dir" && as_dir=.
7297 for ac_exec_ext in '' $ac_executable_extensions; do
7298 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7299 ac_cv_prog_ac_ct_LIPO="lipo"
7300 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7301 break 2
7302 fi
7303 done
7304 done
7305 IFS=$as_save_IFS
7306
7307 fi
7308 fi
7309 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7310 if test -n "$ac_ct_LIPO"; then
7311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7312 $as_echo "$ac_ct_LIPO" >&6; }
7313 else
7314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7315 $as_echo "no" >&6; }
7316 fi
7317
7318 if test "x$ac_ct_LIPO" = x; then
7319 LIPO=":"
7320 else
7321 case $cross_compiling:$ac_tool_warned in
7322 yes:)
7323 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7324 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7325 ac_tool_warned=yes ;;
7326 esac
7327 LIPO=$ac_ct_LIPO
7328 fi
7329 else
7330 LIPO="$ac_cv_prog_LIPO"
7331 fi
7332
7333 if test -n "$ac_tool_prefix"; then
7334 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7335 set dummy ${ac_tool_prefix}otool; ac_word=$2
7336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7337 $as_echo_n "checking for $ac_word... " >&6; }
7338 if ${ac_cv_prog_OTOOL+:} false; then :
7339 $as_echo_n "(cached) " >&6
7340 else
7341 if test -n "$OTOOL"; then
7342 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7343 else
7344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7345 for as_dir in $PATH
7346 do
7347 IFS=$as_save_IFS
7348 test -z "$as_dir" && as_dir=.
7349 for ac_exec_ext in '' $ac_executable_extensions; do
7350 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7351 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7352 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7353 break 2
7354 fi
7355 done
7356 done
7357 IFS=$as_save_IFS
7358
7359 fi
7360 fi
7361 OTOOL=$ac_cv_prog_OTOOL
7362 if test -n "$OTOOL"; then
7363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7364 $as_echo "$OTOOL" >&6; }
7365 else
7366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7367 $as_echo "no" >&6; }
7368 fi
7369
7370
7371 fi
7372 if test -z "$ac_cv_prog_OTOOL"; then
7373 ac_ct_OTOOL=$OTOOL
7374 # Extract the first word of "otool", so it can be a program name with args.
7375 set dummy otool; ac_word=$2
7376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7377 $as_echo_n "checking for $ac_word... " >&6; }
7378 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7379 $as_echo_n "(cached) " >&6
7380 else
7381 if test -n "$ac_ct_OTOOL"; then
7382 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7383 else
7384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7385 for as_dir in $PATH
7386 do
7387 IFS=$as_save_IFS
7388 test -z "$as_dir" && as_dir=.
7389 for ac_exec_ext in '' $ac_executable_extensions; do
7390 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7391 ac_cv_prog_ac_ct_OTOOL="otool"
7392 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7393 break 2
7394 fi
7395 done
7396 done
7397 IFS=$as_save_IFS
7398
7399 fi
7400 fi
7401 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7402 if test -n "$ac_ct_OTOOL"; then
7403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7404 $as_echo "$ac_ct_OTOOL" >&6; }
7405 else
7406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7407 $as_echo "no" >&6; }
7408 fi
7409
7410 if test "x$ac_ct_OTOOL" = x; then
7411 OTOOL=":"
7412 else
7413 case $cross_compiling:$ac_tool_warned in
7414 yes:)
7415 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7416 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7417 ac_tool_warned=yes ;;
7418 esac
7419 OTOOL=$ac_ct_OTOOL
7420 fi
7421 else
7422 OTOOL="$ac_cv_prog_OTOOL"
7423 fi
7424
7425 if test -n "$ac_tool_prefix"; then
7426 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7427 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7429 $as_echo_n "checking for $ac_word... " >&6; }
7430 if ${ac_cv_prog_OTOOL64+:} false; then :
7431 $as_echo_n "(cached) " >&6
7432 else
7433 if test -n "$OTOOL64"; then
7434 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7435 else
7436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7437 for as_dir in $PATH
7438 do
7439 IFS=$as_save_IFS
7440 test -z "$as_dir" && as_dir=.
7441 for ac_exec_ext in '' $ac_executable_extensions; do
7442 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7443 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7444 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7445 break 2
7446 fi
7447 done
7448 done
7449 IFS=$as_save_IFS
7450
7451 fi
7452 fi
7453 OTOOL64=$ac_cv_prog_OTOOL64
7454 if test -n "$OTOOL64"; then
7455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7456 $as_echo "$OTOOL64" >&6; }
7457 else
7458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7459 $as_echo "no" >&6; }
7460 fi
7461
7462
7463 fi
7464 if test -z "$ac_cv_prog_OTOOL64"; then
7465 ac_ct_OTOOL64=$OTOOL64
7466 # Extract the first word of "otool64", so it can be a program name with args.
7467 set dummy otool64; ac_word=$2
7468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7469 $as_echo_n "checking for $ac_word... " >&6; }
7470 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7471 $as_echo_n "(cached) " >&6
7472 else
7473 if test -n "$ac_ct_OTOOL64"; then
7474 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7475 else
7476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7477 for as_dir in $PATH
7478 do
7479 IFS=$as_save_IFS
7480 test -z "$as_dir" && as_dir=.
7481 for ac_exec_ext in '' $ac_executable_extensions; do
7482 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7483 ac_cv_prog_ac_ct_OTOOL64="otool64"
7484 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7485 break 2
7486 fi
7487 done
7488 done
7489 IFS=$as_save_IFS
7490
7491 fi
7492 fi
7493 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7494 if test -n "$ac_ct_OTOOL64"; then
7495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7496 $as_echo "$ac_ct_OTOOL64" >&6; }
7497 else
7498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7499 $as_echo "no" >&6; }
7500 fi
7501
7502 if test "x$ac_ct_OTOOL64" = x; then
7503 OTOOL64=":"
7504 else
7505 case $cross_compiling:$ac_tool_warned in
7506 yes:)
7507 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7508 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7509 ac_tool_warned=yes ;;
7510 esac
7511 OTOOL64=$ac_ct_OTOOL64
7512 fi
7513 else
7514 OTOOL64="$ac_cv_prog_OTOOL64"
7515 fi
7516
7517
7518
7519
7520
7521
7522
7523
7524
7525
7526
7527
7528
7529
7530
7531
7532
7533
7534
7535
7536
7537
7538
7539
7540
7541
7542
7543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7544 $as_echo_n "checking for -single_module linker flag... " >&6; }
7545 if ${lt_cv_apple_cc_single_mod+:} false; then :
7546 $as_echo_n "(cached) " >&6
7547 else
7548 lt_cv_apple_cc_single_mod=no
7549 if test -z "${LT_MULTI_MODULE}"; then
7550 # By default we will add the -single_module flag. You can override
7551 # by either setting the environment variable LT_MULTI_MODULE
7552 # non-empty at configure time, or by adding -multi_module to the
7553 # link flags.
7554 rm -rf libconftest.dylib*
7555 echo "int foo(void){return 1;}" > conftest.c
7556 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7557 -dynamiclib -Wl,-single_module conftest.c" >&5
7558 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7559 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7560 _lt_result=$?
7561 # If there is a non-empty error log, and "single_module"
7562 # appears in it, assume the flag caused a linker warning
7563 if test -s conftest.err && $GREP single_module conftest.err; then
7564 cat conftest.err >&5
7565 # Otherwise, if the output was created with a 0 exit code from
7566 # the compiler, it worked.
7567 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7568 lt_cv_apple_cc_single_mod=yes
7569 else
7570 cat conftest.err >&5
7571 fi
7572 rm -rf libconftest.dylib*
7573 rm -f conftest.*
7574 fi
7575 fi
7576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7577 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7578
7579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7580 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7581 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7582 $as_echo_n "(cached) " >&6
7583 else
7584 lt_cv_ld_exported_symbols_list=no
7585 save_LDFLAGS=$LDFLAGS
7586 echo "_main" > conftest.sym
7587 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7589 /* end confdefs.h. */
7590
7591 int
7592 main ()
7593 {
7594
7595 ;
7596 return 0;
7597 }
7598 _ACEOF
7599 if ac_fn_c_try_link "$LINENO"; then :
7600 lt_cv_ld_exported_symbols_list=yes
7601 else
7602 lt_cv_ld_exported_symbols_list=no
7603 fi
7604 rm -f core conftest.err conftest.$ac_objext \
7605 conftest$ac_exeext conftest.$ac_ext
7606 LDFLAGS="$save_LDFLAGS"
7607
7608 fi
7609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7610 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7611
7612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7613 $as_echo_n "checking for -force_load linker flag... " >&6; }
7614 if ${lt_cv_ld_force_load+:} false; then :
7615 $as_echo_n "(cached) " >&6
7616 else
7617 lt_cv_ld_force_load=no
7618 cat > conftest.c << _LT_EOF
7619 int forced_loaded() { return 2;}
7620 _LT_EOF
7621 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7622 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7623 echo "$AR cru libconftest.a conftest.o" >&5
7624 $AR cru libconftest.a conftest.o 2>&5
7625 echo "$RANLIB libconftest.a" >&5
7626 $RANLIB libconftest.a 2>&5
7627 cat > conftest.c << _LT_EOF
7628 int main() { return 0;}
7629 _LT_EOF
7630 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7631 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7632 _lt_result=$?
7633 if test -s conftest.err && $GREP force_load conftest.err; then
7634 cat conftest.err >&5
7635 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7636 lt_cv_ld_force_load=yes
7637 else
7638 cat conftest.err >&5
7639 fi
7640 rm -f conftest.err libconftest.a conftest conftest.c
7641 rm -rf conftest.dSYM
7642
7643 fi
7644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7645 $as_echo "$lt_cv_ld_force_load" >&6; }
7646 case $host_os in
7647 rhapsody* | darwin1.[012])
7648 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7649 darwin1.*)
7650 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7651 darwin*) # darwin 5.x on
7652 # if running on 10.5 or later, the deployment target defaults
7653 # to the OS version, if on x86, and 10.4, the deployment
7654 # target defaults to 10.4. Don't you love it?
7655 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7656 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7657 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7658 10.[012]*)
7659 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7660 10.*)
7661 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7662 esac
7663 ;;
7664 esac
7665 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7666 _lt_dar_single_mod='$single_module'
7667 fi
7668 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7669 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7670 else
7671 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7672 fi
7673 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7674 _lt_dsymutil='~$DSYMUTIL $lib || :'
7675 else
7676 _lt_dsymutil=
7677 fi
7678 ;;
7679 esac
7680
7681 ac_ext=c
7682 ac_cpp='$CPP $CPPFLAGS'
7683 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7684 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7685 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7687 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7688 # On Suns, sometimes $CPP names a directory.
7689 if test -n "$CPP" && test -d "$CPP"; then
7690 CPP=
7691 fi
7692 if test -z "$CPP"; then
7693 if ${ac_cv_prog_CPP+:} false; then :
7694 $as_echo_n "(cached) " >&6
7695 else
7696 # Double quotes because CPP needs to be expanded
7697 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7698 do
7699 ac_preproc_ok=false
7700 for ac_c_preproc_warn_flag in '' yes
7701 do
7702 # Use a header file that comes with gcc, so configuring glibc
7703 # with a fresh cross-compiler works.
7704 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7705 # <limits.h> exists even on freestanding compilers.
7706 # On the NeXT, cc -E runs the code through the compiler's parser,
7707 # not just through cpp. "Syntax error" is here to catch this case.
7708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7709 /* end confdefs.h. */
7710 #ifdef __STDC__
7711 # include <limits.h>
7712 #else
7713 # include <assert.h>
7714 #endif
7715 Syntax error
7716 _ACEOF
7717 if ac_fn_c_try_cpp "$LINENO"; then :
7718
7719 else
7720 # Broken: fails on valid input.
7721 continue
7722 fi
7723 rm -f conftest.err conftest.i conftest.$ac_ext
7724
7725 # OK, works on sane cases. Now check whether nonexistent headers
7726 # can be detected and how.
7727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7728 /* end confdefs.h. */
7729 #include <ac_nonexistent.h>
7730 _ACEOF
7731 if ac_fn_c_try_cpp "$LINENO"; then :
7732 # Broken: success on invalid input.
7733 continue
7734 else
7735 # Passes both tests.
7736 ac_preproc_ok=:
7737 break
7738 fi
7739 rm -f conftest.err conftest.i conftest.$ac_ext
7740
7741 done
7742 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7743 rm -f conftest.i conftest.err conftest.$ac_ext
7744 if $ac_preproc_ok; then :
7745 break
7746 fi
7747
7748 done
7749 ac_cv_prog_CPP=$CPP
7750
7751 fi
7752 CPP=$ac_cv_prog_CPP
7753 else
7754 ac_cv_prog_CPP=$CPP
7755 fi
7756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7757 $as_echo "$CPP" >&6; }
7758 ac_preproc_ok=false
7759 for ac_c_preproc_warn_flag in '' yes
7760 do
7761 # Use a header file that comes with gcc, so configuring glibc
7762 # with a fresh cross-compiler works.
7763 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7764 # <limits.h> exists even on freestanding compilers.
7765 # On the NeXT, cc -E runs the code through the compiler's parser,
7766 # not just through cpp. "Syntax error" is here to catch this case.
7767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7768 /* end confdefs.h. */
7769 #ifdef __STDC__
7770 # include <limits.h>
7771 #else
7772 # include <assert.h>
7773 #endif
7774 Syntax error
7775 _ACEOF
7776 if ac_fn_c_try_cpp "$LINENO"; then :
7777
7778 else
7779 # Broken: fails on valid input.
7780 continue
7781 fi
7782 rm -f conftest.err conftest.i conftest.$ac_ext
7783
7784 # OK, works on sane cases. Now check whether nonexistent headers
7785 # can be detected and how.
7786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7787 /* end confdefs.h. */
7788 #include <ac_nonexistent.h>
7789 _ACEOF
7790 if ac_fn_c_try_cpp "$LINENO"; then :
7791 # Broken: success on invalid input.
7792 continue
7793 else
7794 # Passes both tests.
7795 ac_preproc_ok=:
7796 break
7797 fi
7798 rm -f conftest.err conftest.i conftest.$ac_ext
7799
7800 done
7801 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7802 rm -f conftest.i conftest.err conftest.$ac_ext
7803 if $ac_preproc_ok; then :
7804
7805 else
7806 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7807 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7808 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7809 See \`config.log' for more details" "$LINENO" 5; }
7810 fi
7811
7812 ac_ext=c
7813 ac_cpp='$CPP $CPPFLAGS'
7814 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7815 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7816 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7817
7818
7819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7820 $as_echo_n "checking for ANSI C header files... " >&6; }
7821 if ${ac_cv_header_stdc+:} false; then :
7822 $as_echo_n "(cached) " >&6
7823 else
7824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7825 /* end confdefs.h. */
7826 #include <stdlib.h>
7827 #include <stdarg.h>
7828 #include <string.h>
7829 #include <float.h>
7830
7831 int
7832 main ()
7833 {
7834
7835 ;
7836 return 0;
7837 }
7838 _ACEOF
7839 if ac_fn_c_try_compile "$LINENO"; then :
7840 ac_cv_header_stdc=yes
7841 else
7842 ac_cv_header_stdc=no
7843 fi
7844 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7845
7846 if test $ac_cv_header_stdc = yes; then
7847 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7849 /* end confdefs.h. */
7850 #include <string.h>
7851
7852 _ACEOF
7853 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7854 $EGREP "memchr" >/dev/null 2>&1; then :
7855
7856 else
7857 ac_cv_header_stdc=no
7858 fi
7859 rm -f conftest*
7860
7861 fi
7862
7863 if test $ac_cv_header_stdc = yes; then
7864 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7866 /* end confdefs.h. */
7867 #include <stdlib.h>
7868
7869 _ACEOF
7870 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7871 $EGREP "free" >/dev/null 2>&1; then :
7872
7873 else
7874 ac_cv_header_stdc=no
7875 fi
7876 rm -f conftest*
7877
7878 fi
7879
7880 if test $ac_cv_header_stdc = yes; then
7881 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7882 if test "$cross_compiling" = yes; then :
7883 :
7884 else
7885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7886 /* end confdefs.h. */
7887 #include <ctype.h>
7888 #include <stdlib.h>
7889 #if ((' ' & 0x0FF) == 0x020)
7890 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7891 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7892 #else
7893 # define ISLOWER(c) \
7894 (('a' <= (c) && (c) <= 'i') \
7895 || ('j' <= (c) && (c) <= 'r') \
7896 || ('s' <= (c) && (c) <= 'z'))
7897 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7898 #endif
7899
7900 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7901 int
7902 main ()
7903 {
7904 int i;
7905 for (i = 0; i < 256; i++)
7906 if (XOR (islower (i), ISLOWER (i))
7907 || toupper (i) != TOUPPER (i))
7908 return 2;
7909 return 0;
7910 }
7911 _ACEOF
7912 if ac_fn_c_try_run "$LINENO"; then :
7913
7914 else
7915 ac_cv_header_stdc=no
7916 fi
7917 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7918 conftest.$ac_objext conftest.beam conftest.$ac_ext
7919 fi
7920
7921 fi
7922 fi
7923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7924 $as_echo "$ac_cv_header_stdc" >&6; }
7925 if test $ac_cv_header_stdc = yes; then
7926
7927 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7928
7929 fi
7930
7931 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7932 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7933 inttypes.h stdint.h unistd.h
7934 do :
7935 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7936 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7937 "
7938 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7939 cat >>confdefs.h <<_ACEOF
7940 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7941 _ACEOF
7942
7943 fi
7944
7945 done
7946
7947
7948 for ac_header in dlfcn.h
7949 do :
7950 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7951 "
7952 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7953 cat >>confdefs.h <<_ACEOF
7954 #define HAVE_DLFCN_H 1
7955 _ACEOF
7956
7957 fi
7958
7959 done
7960
7961
7962
7963
7964
7965 # Set options
7966 enable_dlopen=yes
7967 # Check whether --enable-static was given.
7968 if test "${enable_static+set}" = set; then :
7969 enableval=$enable_static; p=${PACKAGE-default}
7970 case $enableval in
7971 yes) enable_static=yes ;;
7972 no) enable_static=no ;;
7973 *)
7974 enable_static=no
7975 # Look at the argument we got. We use all the common list separators.
7976 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7977 for pkg in $enableval; do
7978 IFS="$lt_save_ifs"
7979 if test "X$pkg" = "X$p"; then
7980 enable_static=yes
7981 fi
7982 done
7983 IFS="$lt_save_ifs"
7984 ;;
7985 esac
7986 else
7987 enable_static=no
7988 fi
7989
7990
7991
7992
7993
7994
7995
7996
7997
7998
7999
8000 enable_win32_dll=no
8001
8002
8003 # Check whether --enable-shared was given.
8004 if test "${enable_shared+set}" = set; then :
8005 enableval=$enable_shared; p=${PACKAGE-default}
8006 case $enableval in
8007 yes) enable_shared=yes ;;
8008 no) enable_shared=no ;;
8009 *)
8010 enable_shared=no
8011 # Look at the argument we got. We use all the common list separators.
8012 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8013 for pkg in $enableval; do
8014 IFS="$lt_save_ifs"
8015 if test "X$pkg" = "X$p"; then
8016 enable_shared=yes
8017 fi
8018 done
8019 IFS="$lt_save_ifs"
8020 ;;
8021 esac
8022 else
8023 enable_shared=yes
8024 fi
8025
8026
8027
8028
8029
8030
8031
8032
8033
8034
8035
8036 # Check whether --with-pic was given.
8037 if test "${with_pic+set}" = set; then :
8038 withval=$with_pic; lt_p=${PACKAGE-default}
8039 case $withval in
8040 yes|no) pic_mode=$withval ;;
8041 *)
8042 pic_mode=default
8043 # Look at the argument we got. We use all the common list separators.
8044 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8045 for lt_pkg in $withval; do
8046 IFS="$lt_save_ifs"
8047 if test "X$lt_pkg" = "X$lt_p"; then
8048 pic_mode=yes
8049 fi
8050 done
8051 IFS="$lt_save_ifs"
8052 ;;
8053 esac
8054 else
8055 pic_mode=default
8056 fi
8057
8058
8059 test -z "$pic_mode" && pic_mode=default
8060
8061
8062
8063
8064
8065
8066
8067 # Check whether --enable-fast-install was given.
8068 if test "${enable_fast_install+set}" = set; then :
8069 enableval=$enable_fast_install; p=${PACKAGE-default}
8070 case $enableval in
8071 yes) enable_fast_install=yes ;;
8072 no) enable_fast_install=no ;;
8073 *)
8074 enable_fast_install=no
8075 # Look at the argument we got. We use all the common list separators.
8076 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8077 for pkg in $enableval; do
8078 IFS="$lt_save_ifs"
8079 if test "X$pkg" = "X$p"; then
8080 enable_fast_install=yes
8081 fi
8082 done
8083 IFS="$lt_save_ifs"
8084 ;;
8085 esac
8086 else
8087 enable_fast_install=yes
8088 fi
8089
8090
8091
8092
8093
8094
8095
8096
8097
8098
8099
8100 # This can be used to rebuild libtool when needed
8101 LIBTOOL_DEPS="$ltmain"
8102
8103 # Always use our own libtool.
8104 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8105
8106
8107
8108
8109
8110
8111
8112
8113
8114
8115
8116
8117
8118
8119
8120
8121
8122
8123
8124
8125
8126
8127
8128
8129
8130
8131
8132
8133
8134
8135 test -z "$LN_S" && LN_S="ln -s"
8136
8137
8138
8139
8140
8141
8142
8143
8144
8145
8146
8147
8148
8149
8150 if test -n "${ZSH_VERSION+set}" ; then
8151 setopt NO_GLOB_SUBST
8152 fi
8153
8154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8155 $as_echo_n "checking for objdir... " >&6; }
8156 if ${lt_cv_objdir+:} false; then :
8157 $as_echo_n "(cached) " >&6
8158 else
8159 rm -f .libs 2>/dev/null
8160 mkdir .libs 2>/dev/null
8161 if test -d .libs; then
8162 lt_cv_objdir=.libs
8163 else
8164 # MS-DOS does not allow filenames that begin with a dot.
8165 lt_cv_objdir=_libs
8166 fi
8167 rmdir .libs 2>/dev/null
8168 fi
8169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8170 $as_echo "$lt_cv_objdir" >&6; }
8171 objdir=$lt_cv_objdir
8172
8173
8174
8175
8176
8177 cat >>confdefs.h <<_ACEOF
8178 #define LT_OBJDIR "$lt_cv_objdir/"
8179 _ACEOF
8180
8181
8182
8183
8184 case $host_os in
8185 aix3*)
8186 # AIX sometimes has problems with the GCC collect2 program. For some
8187 # reason, if we set the COLLECT_NAMES environment variable, the problems
8188 # vanish in a puff of smoke.
8189 if test "X${COLLECT_NAMES+set}" != Xset; then
8190 COLLECT_NAMES=
8191 export COLLECT_NAMES
8192 fi
8193 ;;
8194 esac
8195
8196 # Global variables:
8197 ofile=libtool
8198 can_build_shared=yes
8199
8200 # All known linkers require a `.a' archive for static linking (except MSVC,
8201 # which needs '.lib').
8202 libext=a
8203
8204 with_gnu_ld="$lt_cv_prog_gnu_ld"
8205
8206 old_CC="$CC"
8207 old_CFLAGS="$CFLAGS"
8208
8209 # Set sane defaults for various variables
8210 test -z "$CC" && CC=cc
8211 test -z "$LTCC" && LTCC=$CC
8212 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8213 test -z "$LD" && LD=ld
8214 test -z "$ac_objext" && ac_objext=o
8215
8216 for cc_temp in $compiler""; do
8217 case $cc_temp in
8218 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8219 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8220 \-*) ;;
8221 *) break;;
8222 esac
8223 done
8224 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8225
8226
8227 # Only perform the check for file, if the check method requires it
8228 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8229 case $deplibs_check_method in
8230 file_magic*)
8231 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8233 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8234 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8235 $as_echo_n "(cached) " >&6
8236 else
8237 case $MAGIC_CMD in
8238 [\\/*] | ?:[\\/]*)
8239 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8240 ;;
8241 *)
8242 lt_save_MAGIC_CMD="$MAGIC_CMD"
8243 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8244 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8245 for ac_dir in $ac_dummy; do
8246 IFS="$lt_save_ifs"
8247 test -z "$ac_dir" && ac_dir=.
8248 if test -f $ac_dir/${ac_tool_prefix}file; then
8249 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8250 if test -n "$file_magic_test_file"; then
8251 case $deplibs_check_method in
8252 "file_magic "*)
8253 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8254 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8255 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8256 $EGREP "$file_magic_regex" > /dev/null; then
8257 :
8258 else
8259 cat <<_LT_EOF 1>&2
8260
8261 *** Warning: the command libtool uses to detect shared libraries,
8262 *** $file_magic_cmd, produces output that libtool cannot recognize.
8263 *** The result is that libtool may fail to recognize shared libraries
8264 *** as such. This will affect the creation of libtool libraries that
8265 *** depend on shared libraries, but programs linked with such libtool
8266 *** libraries will work regardless of this problem. Nevertheless, you
8267 *** may want to report the problem to your system manager and/or to
8268 *** bug-libtool@gnu.org
8269
8270 _LT_EOF
8271 fi ;;
8272 esac
8273 fi
8274 break
8275 fi
8276 done
8277 IFS="$lt_save_ifs"
8278 MAGIC_CMD="$lt_save_MAGIC_CMD"
8279 ;;
8280 esac
8281 fi
8282
8283 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8284 if test -n "$MAGIC_CMD"; then
8285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8286 $as_echo "$MAGIC_CMD" >&6; }
8287 else
8288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8289 $as_echo "no" >&6; }
8290 fi
8291
8292
8293
8294
8295
8296 if test -z "$lt_cv_path_MAGIC_CMD"; then
8297 if test -n "$ac_tool_prefix"; then
8298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8299 $as_echo_n "checking for file... " >&6; }
8300 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8301 $as_echo_n "(cached) " >&6
8302 else
8303 case $MAGIC_CMD in
8304 [\\/*] | ?:[\\/]*)
8305 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8306 ;;
8307 *)
8308 lt_save_MAGIC_CMD="$MAGIC_CMD"
8309 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8310 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8311 for ac_dir in $ac_dummy; do
8312 IFS="$lt_save_ifs"
8313 test -z "$ac_dir" && ac_dir=.
8314 if test -f $ac_dir/file; then
8315 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8316 if test -n "$file_magic_test_file"; then
8317 case $deplibs_check_method in
8318 "file_magic "*)
8319 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8320 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8321 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8322 $EGREP "$file_magic_regex" > /dev/null; then
8323 :
8324 else
8325 cat <<_LT_EOF 1>&2
8326
8327 *** Warning: the command libtool uses to detect shared libraries,
8328 *** $file_magic_cmd, produces output that libtool cannot recognize.
8329 *** The result is that libtool may fail to recognize shared libraries
8330 *** as such. This will affect the creation of libtool libraries that
8331 *** depend on shared libraries, but programs linked with such libtool
8332 *** libraries will work regardless of this problem. Nevertheless, you
8333 *** may want to report the problem to your system manager and/or to
8334 *** bug-libtool@gnu.org
8335
8336 _LT_EOF
8337 fi ;;
8338 esac
8339 fi
8340 break
8341 fi
8342 done
8343 IFS="$lt_save_ifs"
8344 MAGIC_CMD="$lt_save_MAGIC_CMD"
8345 ;;
8346 esac
8347 fi
8348
8349 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8350 if test -n "$MAGIC_CMD"; then
8351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8352 $as_echo "$MAGIC_CMD" >&6; }
8353 else
8354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8355 $as_echo "no" >&6; }
8356 fi
8357
8358
8359 else
8360 MAGIC_CMD=:
8361 fi
8362 fi
8363
8364 fi
8365 ;;
8366 esac
8367
8368 # Use C for the default configuration in the libtool script
8369
8370 lt_save_CC="$CC"
8371 ac_ext=c
8372 ac_cpp='$CPP $CPPFLAGS'
8373 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8374 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8375 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8376
8377
8378 # Source file extension for C test sources.
8379 ac_ext=c
8380
8381 # Object file extension for compiled C test sources.
8382 objext=o
8383 objext=$objext
8384
8385 # Code to be used in simple compile tests
8386 lt_simple_compile_test_code="int some_variable = 0;"
8387
8388 # Code to be used in simple link tests
8389 lt_simple_link_test_code='int main(){return(0);}'
8390
8391
8392
8393
8394
8395
8396
8397 # If no C compiler was specified, use CC.
8398 LTCC=${LTCC-"$CC"}
8399
8400 # If no C compiler flags were specified, use CFLAGS.
8401 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8402
8403 # Allow CC to be a program name with arguments.
8404 compiler=$CC
8405
8406 # Save the default compiler, since it gets overwritten when the other
8407 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8408 compiler_DEFAULT=$CC
8409
8410 # save warnings/boilerplate of simple test code
8411 ac_outfile=conftest.$ac_objext
8412 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8413 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8414 _lt_compiler_boilerplate=`cat conftest.err`
8415 $RM conftest*
8416
8417 ac_outfile=conftest.$ac_objext
8418 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8419 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8420 _lt_linker_boilerplate=`cat conftest.err`
8421 $RM -r conftest*
8422
8423
8424 if test -n "$compiler"; then
8425
8426 lt_prog_compiler_no_builtin_flag=
8427
8428 if test "$GCC" = yes; then
8429 case $cc_basename in
8430 nvcc*)
8431 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8432 *)
8433 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8434 esac
8435
8436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8437 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8438 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8439 $as_echo_n "(cached) " >&6
8440 else
8441 lt_cv_prog_compiler_rtti_exceptions=no
8442 ac_outfile=conftest.$ac_objext
8443 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8444 lt_compiler_flag="-fno-rtti -fno-exceptions"
8445 # Insert the option either (1) after the last *FLAGS variable, or
8446 # (2) before a word containing "conftest.", or (3) at the end.
8447 # Note that $ac_compile itself does not contain backslashes and begins
8448 # with a dollar sign (not a hyphen), so the echo should work correctly.
8449 # The option is referenced via a variable to avoid confusing sed.
8450 lt_compile=`echo "$ac_compile" | $SED \
8451 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8452 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8453 -e 's:$: $lt_compiler_flag:'`
8454 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8455 (eval "$lt_compile" 2>conftest.err)
8456 ac_status=$?
8457 cat conftest.err >&5
8458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8459 if (exit $ac_status) && test -s "$ac_outfile"; then
8460 # The compiler can only warn and ignore the option if not recognized
8461 # So say no if there are warnings other than the usual output.
8462 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8463 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8464 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8465 lt_cv_prog_compiler_rtti_exceptions=yes
8466 fi
8467 fi
8468 $RM conftest*
8469
8470 fi
8471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8472 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8473
8474 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8475 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8476 else
8477 :
8478 fi
8479
8480 fi
8481
8482
8483
8484
8485
8486
8487 lt_prog_compiler_wl=
8488 lt_prog_compiler_pic=
8489 lt_prog_compiler_static=
8490
8491
8492 if test "$GCC" = yes; then
8493 lt_prog_compiler_wl='-Wl,'
8494 lt_prog_compiler_static='-static'
8495
8496 case $host_os in
8497 aix*)
8498 # All AIX code is PIC.
8499 if test "$host_cpu" = ia64; then
8500 # AIX 5 now supports IA64 processor
8501 lt_prog_compiler_static='-Bstatic'
8502 fi
8503 ;;
8504
8505 amigaos*)
8506 case $host_cpu in
8507 powerpc)
8508 # see comment about AmigaOS4 .so support
8509 lt_prog_compiler_pic='-fPIC'
8510 ;;
8511 m68k)
8512 # FIXME: we need at least 68020 code to build shared libraries, but
8513 # adding the `-m68020' flag to GCC prevents building anything better,
8514 # like `-m68040'.
8515 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8516 ;;
8517 esac
8518 ;;
8519
8520 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8521 # PIC is the default for these OSes.
8522 ;;
8523
8524 mingw* | cygwin* | pw32* | os2* | cegcc*)
8525 # This hack is so that the source file can tell whether it is being
8526 # built for inclusion in a dll (and should export symbols for example).
8527 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8528 # (--disable-auto-import) libraries
8529 lt_prog_compiler_pic='-DDLL_EXPORT'
8530 ;;
8531
8532 darwin* | rhapsody*)
8533 # PIC is the default on this platform
8534 # Common symbols not allowed in MH_DYLIB files
8535 lt_prog_compiler_pic='-fno-common'
8536 ;;
8537
8538 haiku*)
8539 # PIC is the default for Haiku.
8540 # The "-static" flag exists, but is broken.
8541 lt_prog_compiler_static=
8542 ;;
8543
8544 hpux*)
8545 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8546 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8547 # sets the default TLS model and affects inlining.
8548 case $host_cpu in
8549 hppa*64*)
8550 # +Z the default
8551 ;;
8552 *)
8553 lt_prog_compiler_pic='-fPIC'
8554 ;;
8555 esac
8556 ;;
8557
8558 interix[3-9]*)
8559 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8560 # Instead, we relocate shared libraries at runtime.
8561 ;;
8562
8563 msdosdjgpp*)
8564 # Just because we use GCC doesn't mean we suddenly get shared libraries
8565 # on systems that don't support them.
8566 lt_prog_compiler_can_build_shared=no
8567 enable_shared=no
8568 ;;
8569
8570 *nto* | *qnx*)
8571 # QNX uses GNU C++, but need to define -shared option too, otherwise
8572 # it will coredump.
8573 lt_prog_compiler_pic='-fPIC -shared'
8574 ;;
8575
8576 sysv4*MP*)
8577 if test -d /usr/nec; then
8578 lt_prog_compiler_pic=-Kconform_pic
8579 fi
8580 ;;
8581
8582 *)
8583 lt_prog_compiler_pic='-fPIC'
8584 ;;
8585 esac
8586
8587 case $cc_basename in
8588 nvcc*) # Cuda Compiler Driver 2.2
8589 lt_prog_compiler_wl='-Xlinker '
8590 if test -n "$lt_prog_compiler_pic"; then
8591 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8592 fi
8593 ;;
8594 esac
8595 else
8596 # PORTME Check for flag to pass linker flags through the system compiler.
8597 case $host_os in
8598 aix*)
8599 lt_prog_compiler_wl='-Wl,'
8600 if test "$host_cpu" = ia64; then
8601 # AIX 5 now supports IA64 processor
8602 lt_prog_compiler_static='-Bstatic'
8603 else
8604 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8605 fi
8606 ;;
8607
8608 mingw* | cygwin* | pw32* | os2* | cegcc*)
8609 # This hack is so that the source file can tell whether it is being
8610 # built for inclusion in a dll (and should export symbols for example).
8611 lt_prog_compiler_pic='-DDLL_EXPORT'
8612 ;;
8613
8614 hpux9* | hpux10* | hpux11*)
8615 lt_prog_compiler_wl='-Wl,'
8616 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8617 # not for PA HP-UX.
8618 case $host_cpu in
8619 hppa*64*|ia64*)
8620 # +Z the default
8621 ;;
8622 *)
8623 lt_prog_compiler_pic='+Z'
8624 ;;
8625 esac
8626 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8627 lt_prog_compiler_static='${wl}-a ${wl}archive'
8628 ;;
8629
8630 irix5* | irix6* | nonstopux*)
8631 lt_prog_compiler_wl='-Wl,'
8632 # PIC (with -KPIC) is the default.
8633 lt_prog_compiler_static='-non_shared'
8634 ;;
8635
8636 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8637 case $cc_basename in
8638 # old Intel for x86_64 which still supported -KPIC.
8639 ecc*)
8640 lt_prog_compiler_wl='-Wl,'
8641 lt_prog_compiler_pic='-KPIC'
8642 lt_prog_compiler_static='-static'
8643 ;;
8644 # icc used to be incompatible with GCC.
8645 # ICC 10 doesn't accept -KPIC any more.
8646 icc* | ifort*)
8647 lt_prog_compiler_wl='-Wl,'
8648 lt_prog_compiler_pic='-fPIC'
8649 lt_prog_compiler_static='-static'
8650 ;;
8651 # Lahey Fortran 8.1.
8652 lf95*)
8653 lt_prog_compiler_wl='-Wl,'
8654 lt_prog_compiler_pic='--shared'
8655 lt_prog_compiler_static='--static'
8656 ;;
8657 nagfor*)
8658 # NAG Fortran compiler
8659 lt_prog_compiler_wl='-Wl,-Wl,,'
8660 lt_prog_compiler_pic='-PIC'
8661 lt_prog_compiler_static='-Bstatic'
8662 ;;
8663 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8664 # Portland Group compilers (*not* the Pentium gcc compiler,
8665 # which looks to be a dead project)
8666 lt_prog_compiler_wl='-Wl,'
8667 lt_prog_compiler_pic='-fpic'
8668 lt_prog_compiler_static='-Bstatic'
8669 ;;
8670 ccc*)
8671 lt_prog_compiler_wl='-Wl,'
8672 # All Alpha code is PIC.
8673 lt_prog_compiler_static='-non_shared'
8674 ;;
8675 xl* | bgxl* | bgf* | mpixl*)
8676 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8677 lt_prog_compiler_wl='-Wl,'
8678 lt_prog_compiler_pic='-qpic'
8679 lt_prog_compiler_static='-qstaticlink'
8680 ;;
8681 *)
8682 case `$CC -V 2>&1 | sed 5q` in
8683 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8684 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8685 lt_prog_compiler_pic='-KPIC'
8686 lt_prog_compiler_static='-Bstatic'
8687 lt_prog_compiler_wl=''
8688 ;;
8689 *Sun\ F* | *Sun*Fortran*)
8690 lt_prog_compiler_pic='-KPIC'
8691 lt_prog_compiler_static='-Bstatic'
8692 lt_prog_compiler_wl='-Qoption ld '
8693 ;;
8694 *Sun\ C*)
8695 # Sun C 5.9
8696 lt_prog_compiler_pic='-KPIC'
8697 lt_prog_compiler_static='-Bstatic'
8698 lt_prog_compiler_wl='-Wl,'
8699 ;;
8700 *Intel*\ [CF]*Compiler*)
8701 lt_prog_compiler_wl='-Wl,'
8702 lt_prog_compiler_pic='-fPIC'
8703 lt_prog_compiler_static='-static'
8704 ;;
8705 *Portland\ Group*)
8706 lt_prog_compiler_wl='-Wl,'
8707 lt_prog_compiler_pic='-fpic'
8708 lt_prog_compiler_static='-Bstatic'
8709 ;;
8710 esac
8711 ;;
8712 esac
8713 ;;
8714
8715 newsos6)
8716 lt_prog_compiler_pic='-KPIC'
8717 lt_prog_compiler_static='-Bstatic'
8718 ;;
8719
8720 *nto* | *qnx*)
8721 # QNX uses GNU C++, but need to define -shared option too, otherwise
8722 # it will coredump.
8723 lt_prog_compiler_pic='-fPIC -shared'
8724 ;;
8725
8726 osf3* | osf4* | osf5*)
8727 lt_prog_compiler_wl='-Wl,'
8728 # All OSF/1 code is PIC.
8729 lt_prog_compiler_static='-non_shared'
8730 ;;
8731
8732 rdos*)
8733 lt_prog_compiler_static='-non_shared'
8734 ;;
8735
8736 solaris*)
8737 lt_prog_compiler_pic='-KPIC'
8738 lt_prog_compiler_static='-Bstatic'
8739 case $cc_basename in
8740 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8741 lt_prog_compiler_wl='-Qoption ld ';;
8742 *)
8743 lt_prog_compiler_wl='-Wl,';;
8744 esac
8745 ;;
8746
8747 sunos4*)
8748 lt_prog_compiler_wl='-Qoption ld '
8749 lt_prog_compiler_pic='-PIC'
8750 lt_prog_compiler_static='-Bstatic'
8751 ;;
8752
8753 sysv4 | sysv4.2uw2* | sysv4.3*)
8754 lt_prog_compiler_wl='-Wl,'
8755 lt_prog_compiler_pic='-KPIC'
8756 lt_prog_compiler_static='-Bstatic'
8757 ;;
8758
8759 sysv4*MP*)
8760 if test -d /usr/nec ;then
8761 lt_prog_compiler_pic='-Kconform_pic'
8762 lt_prog_compiler_static='-Bstatic'
8763 fi
8764 ;;
8765
8766 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8767 lt_prog_compiler_wl='-Wl,'
8768 lt_prog_compiler_pic='-KPIC'
8769 lt_prog_compiler_static='-Bstatic'
8770 ;;
8771
8772 unicos*)
8773 lt_prog_compiler_wl='-Wl,'
8774 lt_prog_compiler_can_build_shared=no
8775 ;;
8776
8777 uts4*)
8778 lt_prog_compiler_pic='-pic'
8779 lt_prog_compiler_static='-Bstatic'
8780 ;;
8781
8782 *)
8783 lt_prog_compiler_can_build_shared=no
8784 ;;
8785 esac
8786 fi
8787
8788 case $host_os in
8789 # For platforms which do not support PIC, -DPIC is meaningless:
8790 *djgpp*)
8791 lt_prog_compiler_pic=
8792 ;;
8793 *)
8794 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8795 ;;
8796 esac
8797
8798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8799 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8800 if ${lt_cv_prog_compiler_pic+:} false; then :
8801 $as_echo_n "(cached) " >&6
8802 else
8803 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8804 fi
8805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8806 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8807 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8808
8809 #
8810 # Check to make sure the PIC flag actually works.
8811 #
8812 if test -n "$lt_prog_compiler_pic"; then
8813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8814 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8815 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8816 $as_echo_n "(cached) " >&6
8817 else
8818 lt_cv_prog_compiler_pic_works=no
8819 ac_outfile=conftest.$ac_objext
8820 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8821 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8822 # Insert the option either (1) after the last *FLAGS variable, or
8823 # (2) before a word containing "conftest.", or (3) at the end.
8824 # Note that $ac_compile itself does not contain backslashes and begins
8825 # with a dollar sign (not a hyphen), so the echo should work correctly.
8826 # The option is referenced via a variable to avoid confusing sed.
8827 lt_compile=`echo "$ac_compile" | $SED \
8828 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8829 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8830 -e 's:$: $lt_compiler_flag:'`
8831 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8832 (eval "$lt_compile" 2>conftest.err)
8833 ac_status=$?
8834 cat conftest.err >&5
8835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8836 if (exit $ac_status) && test -s "$ac_outfile"; then
8837 # The compiler can only warn and ignore the option if not recognized
8838 # So say no if there are warnings other than the usual output.
8839 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8840 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8841 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8842 lt_cv_prog_compiler_pic_works=yes
8843 fi
8844 fi
8845 $RM conftest*
8846
8847 fi
8848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8849 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8850
8851 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8852 case $lt_prog_compiler_pic in
8853 "" | " "*) ;;
8854 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8855 esac
8856 else
8857 lt_prog_compiler_pic=
8858 lt_prog_compiler_can_build_shared=no
8859 fi
8860
8861 fi
8862
8863
8864
8865
8866
8867
8868
8869
8870
8871
8872
8873 #
8874 # Check to make sure the static flag actually works.
8875 #
8876 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8878 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8879 if ${lt_cv_prog_compiler_static_works+:} false; then :
8880 $as_echo_n "(cached) " >&6
8881 else
8882 lt_cv_prog_compiler_static_works=no
8883 save_LDFLAGS="$LDFLAGS"
8884 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8885 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8886 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8887 # The linker can only warn and ignore the option if not recognized
8888 # So say no if there are warnings
8889 if test -s conftest.err; then
8890 # Append any errors to the config.log.
8891 cat conftest.err 1>&5
8892 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8893 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8894 if diff conftest.exp conftest.er2 >/dev/null; then
8895 lt_cv_prog_compiler_static_works=yes
8896 fi
8897 else
8898 lt_cv_prog_compiler_static_works=yes
8899 fi
8900 fi
8901 $RM -r conftest*
8902 LDFLAGS="$save_LDFLAGS"
8903
8904 fi
8905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8906 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8907
8908 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8909 :
8910 else
8911 lt_prog_compiler_static=
8912 fi
8913
8914
8915
8916
8917
8918
8919
8920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8921 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8922 if ${lt_cv_prog_compiler_c_o+:} false; then :
8923 $as_echo_n "(cached) " >&6
8924 else
8925 lt_cv_prog_compiler_c_o=no
8926 $RM -r conftest 2>/dev/null
8927 mkdir conftest
8928 cd conftest
8929 mkdir out
8930 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8931
8932 lt_compiler_flag="-o out/conftest2.$ac_objext"
8933 # Insert the option either (1) after the last *FLAGS variable, or
8934 # (2) before a word containing "conftest.", or (3) at the end.
8935 # Note that $ac_compile itself does not contain backslashes and begins
8936 # with a dollar sign (not a hyphen), so the echo should work correctly.
8937 lt_compile=`echo "$ac_compile" | $SED \
8938 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8939 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8940 -e 's:$: $lt_compiler_flag:'`
8941 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8942 (eval "$lt_compile" 2>out/conftest.err)
8943 ac_status=$?
8944 cat out/conftest.err >&5
8945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8946 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8947 then
8948 # The compiler can only warn and ignore the option if not recognized
8949 # So say no if there are warnings
8950 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8951 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8952 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8953 lt_cv_prog_compiler_c_o=yes
8954 fi
8955 fi
8956 chmod u+w . 2>&5
8957 $RM conftest*
8958 # SGI C++ compiler will create directory out/ii_files/ for
8959 # template instantiation
8960 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8961 $RM out/* && rmdir out
8962 cd ..
8963 $RM -r conftest
8964 $RM conftest*
8965
8966 fi
8967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8968 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8969
8970
8971
8972
8973
8974
8975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8976 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8977 if ${lt_cv_prog_compiler_c_o+:} false; then :
8978 $as_echo_n "(cached) " >&6
8979 else
8980 lt_cv_prog_compiler_c_o=no
8981 $RM -r conftest 2>/dev/null
8982 mkdir conftest
8983 cd conftest
8984 mkdir out
8985 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8986
8987 lt_compiler_flag="-o out/conftest2.$ac_objext"
8988 # Insert the option either (1) after the last *FLAGS variable, or
8989 # (2) before a word containing "conftest.", or (3) at the end.
8990 # Note that $ac_compile itself does not contain backslashes and begins
8991 # with a dollar sign (not a hyphen), so the echo should work correctly.
8992 lt_compile=`echo "$ac_compile" | $SED \
8993 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8994 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8995 -e 's:$: $lt_compiler_flag:'`
8996 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8997 (eval "$lt_compile" 2>out/conftest.err)
8998 ac_status=$?
8999 cat out/conftest.err >&5
9000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9001 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9002 then
9003 # The compiler can only warn and ignore the option if not recognized
9004 # So say no if there are warnings
9005 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9006 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9007 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9008 lt_cv_prog_compiler_c_o=yes
9009 fi
9010 fi
9011 chmod u+w . 2>&5
9012 $RM conftest*
9013 # SGI C++ compiler will create directory out/ii_files/ for
9014 # template instantiation
9015 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9016 $RM out/* && rmdir out
9017 cd ..
9018 $RM -r conftest
9019 $RM conftest*
9020
9021 fi
9022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9023 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9024
9025
9026
9027
9028 hard_links="nottested"
9029 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9030 # do not overwrite the value of need_locks provided by the user
9031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9032 $as_echo_n "checking if we can lock with hard links... " >&6; }
9033 hard_links=yes
9034 $RM conftest*
9035 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9036 touch conftest.a
9037 ln conftest.a conftest.b 2>&5 || hard_links=no
9038 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9040 $as_echo "$hard_links" >&6; }
9041 if test "$hard_links" = no; then
9042 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9043 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9044 need_locks=warn
9045 fi
9046 else
9047 need_locks=no
9048 fi
9049
9050
9051
9052
9053
9054
9055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9056 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9057
9058 runpath_var=
9059 allow_undefined_flag=
9060 always_export_symbols=no
9061 archive_cmds=
9062 archive_expsym_cmds=
9063 compiler_needs_object=no
9064 enable_shared_with_static_runtimes=no
9065 export_dynamic_flag_spec=
9066 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9067 hardcode_automatic=no
9068 hardcode_direct=no
9069 hardcode_direct_absolute=no
9070 hardcode_libdir_flag_spec=
9071 hardcode_libdir_separator=
9072 hardcode_minus_L=no
9073 hardcode_shlibpath_var=unsupported
9074 inherit_rpath=no
9075 link_all_deplibs=unknown
9076 module_cmds=
9077 module_expsym_cmds=
9078 old_archive_from_new_cmds=
9079 old_archive_from_expsyms_cmds=
9080 thread_safe_flag_spec=
9081 whole_archive_flag_spec=
9082 # include_expsyms should be a list of space-separated symbols to be *always*
9083 # included in the symbol list
9084 include_expsyms=
9085 # exclude_expsyms can be an extended regexp of symbols to exclude
9086 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9087 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9088 # as well as any symbol that contains `d'.
9089 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9090 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9091 # platforms (ab)use it in PIC code, but their linkers get confused if
9092 # the symbol is explicitly referenced. Since portable code cannot
9093 # rely on this symbol name, it's probably fine to never include it in
9094 # preloaded symbol tables.
9095 # Exclude shared library initialization/finalization symbols.
9096 extract_expsyms_cmds=
9097
9098 case $host_os in
9099 cygwin* | mingw* | pw32* | cegcc*)
9100 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9101 # When not using gcc, we currently assume that we are using
9102 # Microsoft Visual C++.
9103 if test "$GCC" != yes; then
9104 with_gnu_ld=no
9105 fi
9106 ;;
9107 interix*)
9108 # we just hope/assume this is gcc and not c89 (= MSVC++)
9109 with_gnu_ld=yes
9110 ;;
9111 openbsd*)
9112 with_gnu_ld=no
9113 ;;
9114 esac
9115
9116 ld_shlibs=yes
9117
9118 # On some targets, GNU ld is compatible enough with the native linker
9119 # that we're better off using the native interface for both.
9120 lt_use_gnu_ld_interface=no
9121 if test "$with_gnu_ld" = yes; then
9122 case $host_os in
9123 aix*)
9124 # The AIX port of GNU ld has always aspired to compatibility
9125 # with the native linker. However, as the warning in the GNU ld
9126 # block says, versions before 2.19.5* couldn't really create working
9127 # shared libraries, regardless of the interface used.
9128 case `$LD -v 2>&1` in
9129 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9130 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9131 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9132 *)
9133 lt_use_gnu_ld_interface=yes
9134 ;;
9135 esac
9136 ;;
9137 *)
9138 lt_use_gnu_ld_interface=yes
9139 ;;
9140 esac
9141 fi
9142
9143 if test "$lt_use_gnu_ld_interface" = yes; then
9144 # If archive_cmds runs LD, not CC, wlarc should be empty
9145 wlarc='${wl}'
9146
9147 # Set some defaults for GNU ld with shared library support. These
9148 # are reset later if shared libraries are not supported. Putting them
9149 # here allows them to be overridden if necessary.
9150 runpath_var=LD_RUN_PATH
9151 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9152 export_dynamic_flag_spec='${wl}--export-dynamic'
9153 # ancient GNU ld didn't support --whole-archive et. al.
9154 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9155 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9156 else
9157 whole_archive_flag_spec=
9158 fi
9159 supports_anon_versioning=no
9160 case `$LD -v 2>&1` in
9161 *GNU\ gold*) supports_anon_versioning=yes ;;
9162 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9163 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9164 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9165 *\ 2.11.*) ;; # other 2.11 versions
9166 *) supports_anon_versioning=yes ;;
9167 esac
9168
9169 # See if GNU ld supports shared libraries.
9170 case $host_os in
9171 aix[3-9]*)
9172 # On AIX/PPC, the GNU linker is very broken
9173 if test "$host_cpu" != ia64; then
9174 ld_shlibs=no
9175 cat <<_LT_EOF 1>&2
9176
9177 *** Warning: the GNU linker, at least up to release 2.19, is reported
9178 *** to be unable to reliably create shared libraries on AIX.
9179 *** Therefore, libtool is disabling shared libraries support. If you
9180 *** really care for shared libraries, you may want to install binutils
9181 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9182 *** You will then need to restart the configuration process.
9183
9184 _LT_EOF
9185 fi
9186 ;;
9187
9188 amigaos*)
9189 case $host_cpu in
9190 powerpc)
9191 # see comment about AmigaOS4 .so support
9192 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9193 archive_expsym_cmds=''
9194 ;;
9195 m68k)
9196 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)'
9197 hardcode_libdir_flag_spec='-L$libdir'
9198 hardcode_minus_L=yes
9199 ;;
9200 esac
9201 ;;
9202
9203 beos*)
9204 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9205 allow_undefined_flag=unsupported
9206 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9207 # support --undefined. This deserves some investigation. FIXME
9208 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9209 else
9210 ld_shlibs=no
9211 fi
9212 ;;
9213
9214 cygwin* | mingw* | pw32* | cegcc*)
9215 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9216 # as there is no search path for DLLs.
9217 hardcode_libdir_flag_spec='-L$libdir'
9218 export_dynamic_flag_spec='${wl}--export-all-symbols'
9219 allow_undefined_flag=unsupported
9220 always_export_symbols=no
9221 enable_shared_with_static_runtimes=yes
9222 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'
9223 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9224
9225 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9226 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9227 # If the export-symbols file already is a .def file (1st line
9228 # is EXPORTS), use it as is; otherwise, prepend...
9229 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9230 cp $export_symbols $output_objdir/$soname.def;
9231 else
9232 echo EXPORTS > $output_objdir/$soname.def;
9233 cat $export_symbols >> $output_objdir/$soname.def;
9234 fi~
9235 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9236 else
9237 ld_shlibs=no
9238 fi
9239 ;;
9240
9241 haiku*)
9242 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9243 link_all_deplibs=yes
9244 ;;
9245
9246 interix[3-9]*)
9247 hardcode_direct=no
9248 hardcode_shlibpath_var=no
9249 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9250 export_dynamic_flag_spec='${wl}-E'
9251 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9252 # Instead, shared libraries are loaded at an image base (0x10000000 by
9253 # default) and relocated if they conflict, which is a slow very memory
9254 # consuming and fragmenting process. To avoid this, we pick a random,
9255 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9256 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9257 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9258 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'
9259 ;;
9260
9261 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9262 tmp_diet=no
9263 if test "$host_os" = linux-dietlibc; then
9264 case $cc_basename in
9265 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9266 esac
9267 fi
9268 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9269 && test "$tmp_diet" = no
9270 then
9271 tmp_addflag=' $pic_flag'
9272 tmp_sharedflag='-shared'
9273 case $cc_basename,$host_cpu in
9274 pgcc*) # Portland Group C compiler
9275 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'
9276 tmp_addflag=' $pic_flag'
9277 ;;
9278 pgf77* | pgf90* | pgf95* | pgfortran*)
9279 # Portland Group f77 and f90 compilers
9280 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'
9281 tmp_addflag=' $pic_flag -Mnomain' ;;
9282 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9283 tmp_addflag=' -i_dynamic' ;;
9284 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9285 tmp_addflag=' -i_dynamic -nofor_main' ;;
9286 ifc* | ifort*) # Intel Fortran compiler
9287 tmp_addflag=' -nofor_main' ;;
9288 lf95*) # Lahey Fortran 8.1
9289 whole_archive_flag_spec=
9290 tmp_sharedflag='--shared' ;;
9291 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9292 tmp_sharedflag='-qmkshrobj'
9293 tmp_addflag= ;;
9294 nvcc*) # Cuda Compiler Driver 2.2
9295 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'
9296 compiler_needs_object=yes
9297 ;;
9298 esac
9299 case `$CC -V 2>&1 | sed 5q` in
9300 *Sun\ C*) # Sun C 5.9
9301 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'
9302 compiler_needs_object=yes
9303 tmp_sharedflag='-G' ;;
9304 *Sun\ F*) # Sun Fortran 8.3
9305 tmp_sharedflag='-G' ;;
9306 esac
9307 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9308
9309 if test "x$supports_anon_versioning" = xyes; then
9310 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9311 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9312 echo "local: *; };" >> $output_objdir/$libname.ver~
9313 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9314 fi
9315
9316 case $cc_basename in
9317 xlf* | bgf* | bgxlf* | mpixlf*)
9318 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9319 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9320 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9321 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9322 if test "x$supports_anon_versioning" = xyes; then
9323 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9324 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9325 echo "local: *; };" >> $output_objdir/$libname.ver~
9326 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9327 fi
9328 ;;
9329 esac
9330 else
9331 ld_shlibs=no
9332 fi
9333 ;;
9334
9335 netbsd*)
9336 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9337 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9338 wlarc=
9339 else
9340 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9341 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9342 fi
9343 ;;
9344
9345 solaris*)
9346 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9347 ld_shlibs=no
9348 cat <<_LT_EOF 1>&2
9349
9350 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9351 *** create shared libraries on Solaris systems. Therefore, libtool
9352 *** is disabling shared libraries support. We urge you to upgrade GNU
9353 *** binutils to release 2.9.1 or newer. Another option is to modify
9354 *** your PATH or compiler configuration so that the native linker is
9355 *** used, and then restart.
9356
9357 _LT_EOF
9358 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9359 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9360 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9361 else
9362 ld_shlibs=no
9363 fi
9364 ;;
9365
9366 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9367 case `$LD -v 2>&1` in
9368 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9369 ld_shlibs=no
9370 cat <<_LT_EOF 1>&2
9371
9372 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9373 *** reliably create shared libraries on SCO systems. Therefore, libtool
9374 *** is disabling shared libraries support. We urge you to upgrade GNU
9375 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9376 *** your PATH or compiler configuration so that the native linker is
9377 *** used, and then restart.
9378
9379 _LT_EOF
9380 ;;
9381 *)
9382 # For security reasons, it is highly recommended that you always
9383 # use absolute paths for naming shared libraries, and exclude the
9384 # DT_RUNPATH tag from executables and libraries. But doing so
9385 # requires that you compile everything twice, which is a pain.
9386 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9387 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9388 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9389 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9390 else
9391 ld_shlibs=no
9392 fi
9393 ;;
9394 esac
9395 ;;
9396
9397 sunos4*)
9398 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9399 wlarc=
9400 hardcode_direct=yes
9401 hardcode_shlibpath_var=no
9402 ;;
9403
9404 *)
9405 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9406 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9407 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9408 else
9409 ld_shlibs=no
9410 fi
9411 ;;
9412 esac
9413
9414 if test "$ld_shlibs" = no; then
9415 runpath_var=
9416 hardcode_libdir_flag_spec=
9417 export_dynamic_flag_spec=
9418 whole_archive_flag_spec=
9419 fi
9420 else
9421 # PORTME fill in a description of your system's linker (not GNU ld)
9422 case $host_os in
9423 aix3*)
9424 allow_undefined_flag=unsupported
9425 always_export_symbols=yes
9426 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'
9427 # Note: this linker hardcodes the directories in LIBPATH if there
9428 # are no directories specified by -L.
9429 hardcode_minus_L=yes
9430 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9431 # Neither direct hardcoding nor static linking is supported with a
9432 # broken collect2.
9433 hardcode_direct=unsupported
9434 fi
9435 ;;
9436
9437 aix[4-9]*)
9438 if test "$host_cpu" = ia64; then
9439 # On IA64, the linker does run time linking by default, so we don't
9440 # have to do anything special.
9441 aix_use_runtimelinking=no
9442 exp_sym_flag='-Bexport'
9443 no_entry_flag=""
9444 else
9445 # If we're using GNU nm, then we don't want the "-C" option.
9446 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9447 # Also, AIX nm treats weak defined symbols like other global
9448 # defined symbols, whereas GNU nm marks them as "W".
9449 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9450 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'
9451 else
9452 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'
9453 fi
9454 aix_use_runtimelinking=no
9455
9456 # Test if we are trying to use run time linking or normal
9457 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9458 # need to do runtime linking.
9459 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9460 for ld_flag in $LDFLAGS; do
9461 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9462 aix_use_runtimelinking=yes
9463 break
9464 fi
9465 done
9466 ;;
9467 esac
9468
9469 exp_sym_flag='-bexport'
9470 no_entry_flag='-bnoentry'
9471 fi
9472
9473 # When large executables or shared objects are built, AIX ld can
9474 # have problems creating the table of contents. If linking a library
9475 # or program results in "error TOC overflow" add -mminimal-toc to
9476 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9477 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9478
9479 archive_cmds=''
9480 hardcode_direct=yes
9481 hardcode_direct_absolute=yes
9482 hardcode_libdir_separator=':'
9483 link_all_deplibs=yes
9484 file_list_spec='${wl}-f,'
9485
9486 if test "$GCC" = yes; then
9487 case $host_os in aix4.[012]|aix4.[012].*)
9488 # We only want to do this on AIX 4.2 and lower, the check
9489 # below for broken collect2 doesn't work under 4.3+
9490 collect2name=`${CC} -print-prog-name=collect2`
9491 if test -f "$collect2name" &&
9492 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9493 then
9494 # We have reworked collect2
9495 :
9496 else
9497 # We have old collect2
9498 hardcode_direct=unsupported
9499 # It fails to find uninstalled libraries when the uninstalled
9500 # path is not listed in the libpath. Setting hardcode_minus_L
9501 # to unsupported forces relinking
9502 hardcode_minus_L=yes
9503 hardcode_libdir_flag_spec='-L$libdir'
9504 hardcode_libdir_separator=
9505 fi
9506 ;;
9507 esac
9508 shared_flag='-shared'
9509 if test "$aix_use_runtimelinking" = yes; then
9510 shared_flag="$shared_flag "'${wl}-G'
9511 fi
9512 else
9513 # not using gcc
9514 if test "$host_cpu" = ia64; then
9515 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9516 # chokes on -Wl,-G. The following line is correct:
9517 shared_flag='-G'
9518 else
9519 if test "$aix_use_runtimelinking" = yes; then
9520 shared_flag='${wl}-G'
9521 else
9522 shared_flag='${wl}-bM:SRE'
9523 fi
9524 fi
9525 fi
9526
9527 export_dynamic_flag_spec='${wl}-bexpall'
9528 # It seems that -bexpall does not export symbols beginning with
9529 # underscore (_), so it is better to generate a list of symbols to export.
9530 always_export_symbols=yes
9531 if test "$aix_use_runtimelinking" = yes; then
9532 # Warning - without using the other runtime loading flags (-brtl),
9533 # -berok will link without error, but may produce a broken library.
9534 allow_undefined_flag='-berok'
9535 # Determine the default libpath from the value encoded in an
9536 # empty executable.
9537 if test "${lt_cv_aix_libpath+set}" = set; then
9538 aix_libpath=$lt_cv_aix_libpath
9539 else
9540 if ${lt_cv_aix_libpath_+:} false; then :
9541 $as_echo_n "(cached) " >&6
9542 else
9543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9544 /* end confdefs.h. */
9545
9546 int
9547 main ()
9548 {
9549
9550 ;
9551 return 0;
9552 }
9553 _ACEOF
9554 if ac_fn_c_try_link "$LINENO"; then :
9555
9556 lt_aix_libpath_sed='
9557 /Import File Strings/,/^$/ {
9558 /^0/ {
9559 s/^0 *\([^ ]*\) *$/\1/
9560 p
9561 }
9562 }'
9563 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9564 # Check for a 64-bit object if we didn't find anything.
9565 if test -z "$lt_cv_aix_libpath_"; then
9566 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9567 fi
9568 fi
9569 rm -f core conftest.err conftest.$ac_objext \
9570 conftest$ac_exeext conftest.$ac_ext
9571 if test -z "$lt_cv_aix_libpath_"; then
9572 lt_cv_aix_libpath_="/usr/lib:/lib"
9573 fi
9574
9575 fi
9576
9577 aix_libpath=$lt_cv_aix_libpath_
9578 fi
9579
9580 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9581 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"
9582 else
9583 if test "$host_cpu" = ia64; then
9584 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9585 allow_undefined_flag="-z nodefs"
9586 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"
9587 else
9588 # Determine the default libpath from the value encoded in an
9589 # empty executable.
9590 if test "${lt_cv_aix_libpath+set}" = set; then
9591 aix_libpath=$lt_cv_aix_libpath
9592 else
9593 if ${lt_cv_aix_libpath_+:} false; then :
9594 $as_echo_n "(cached) " >&6
9595 else
9596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9597 /* end confdefs.h. */
9598
9599 int
9600 main ()
9601 {
9602
9603 ;
9604 return 0;
9605 }
9606 _ACEOF
9607 if ac_fn_c_try_link "$LINENO"; then :
9608
9609 lt_aix_libpath_sed='
9610 /Import File Strings/,/^$/ {
9611 /^0/ {
9612 s/^0 *\([^ ]*\) *$/\1/
9613 p
9614 }
9615 }'
9616 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9617 # Check for a 64-bit object if we didn't find anything.
9618 if test -z "$lt_cv_aix_libpath_"; then
9619 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9620 fi
9621 fi
9622 rm -f core conftest.err conftest.$ac_objext \
9623 conftest$ac_exeext conftest.$ac_ext
9624 if test -z "$lt_cv_aix_libpath_"; then
9625 lt_cv_aix_libpath_="/usr/lib:/lib"
9626 fi
9627
9628 fi
9629
9630 aix_libpath=$lt_cv_aix_libpath_
9631 fi
9632
9633 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9634 # Warning - without using the other run time loading flags,
9635 # -berok will link without error, but may produce a broken library.
9636 no_undefined_flag=' ${wl}-bernotok'
9637 allow_undefined_flag=' ${wl}-berok'
9638 if test "$with_gnu_ld" = yes; then
9639 # We only use this code for GNU lds that support --whole-archive.
9640 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9641 else
9642 # Exported symbols can be pulled into shared objects from archives
9643 whole_archive_flag_spec='$convenience'
9644 fi
9645 archive_cmds_need_lc=yes
9646 # This is similar to how AIX traditionally builds its shared libraries.
9647 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'
9648 fi
9649 fi
9650 ;;
9651
9652 amigaos*)
9653 case $host_cpu in
9654 powerpc)
9655 # see comment about AmigaOS4 .so support
9656 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9657 archive_expsym_cmds=''
9658 ;;
9659 m68k)
9660 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)'
9661 hardcode_libdir_flag_spec='-L$libdir'
9662 hardcode_minus_L=yes
9663 ;;
9664 esac
9665 ;;
9666
9667 bsdi[45]*)
9668 export_dynamic_flag_spec=-rdynamic
9669 ;;
9670
9671 cygwin* | mingw* | pw32* | cegcc*)
9672 # When not using gcc, we currently assume that we are using
9673 # Microsoft Visual C++.
9674 # hardcode_libdir_flag_spec is actually meaningless, as there is
9675 # no search path for DLLs.
9676 case $cc_basename in
9677 cl*)
9678 # Native MSVC
9679 hardcode_libdir_flag_spec=' '
9680 allow_undefined_flag=unsupported
9681 always_export_symbols=yes
9682 file_list_spec='@'
9683 # Tell ltmain to make .lib files, not .a files.
9684 libext=lib
9685 # Tell ltmain to make .dll files, not .so files.
9686 shrext_cmds=".dll"
9687 # FIXME: Setting linknames here is a bad hack.
9688 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9689 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9690 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9691 else
9692 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9693 fi~
9694 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9695 linknames='
9696 # The linker will not automatically build a static lib if we build a DLL.
9697 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9698 enable_shared_with_static_runtimes=yes
9699 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9700 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9701 # Don't use ranlib
9702 old_postinstall_cmds='chmod 644 $oldlib'
9703 postlink_cmds='lt_outputfile="@OUTPUT@"~
9704 lt_tool_outputfile="@TOOL_OUTPUT@"~
9705 case $lt_outputfile in
9706 *.exe|*.EXE) ;;
9707 *)
9708 lt_outputfile="$lt_outputfile.exe"
9709 lt_tool_outputfile="$lt_tool_outputfile.exe"
9710 ;;
9711 esac~
9712 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9713 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9714 $RM "$lt_outputfile.manifest";
9715 fi'
9716 ;;
9717 *)
9718 # Assume MSVC wrapper
9719 hardcode_libdir_flag_spec=' '
9720 allow_undefined_flag=unsupported
9721 # Tell ltmain to make .lib files, not .a files.
9722 libext=lib
9723 # Tell ltmain to make .dll files, not .so files.
9724 shrext_cmds=".dll"
9725 # FIXME: Setting linknames here is a bad hack.
9726 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9727 # The linker will automatically build a .lib file if we build a DLL.
9728 old_archive_from_new_cmds='true'
9729 # FIXME: Should let the user specify the lib program.
9730 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9731 enable_shared_with_static_runtimes=yes
9732 ;;
9733 esac
9734 ;;
9735
9736 darwin* | rhapsody*)
9737
9738
9739 archive_cmds_need_lc=no
9740 hardcode_direct=no
9741 hardcode_automatic=yes
9742 hardcode_shlibpath_var=unsupported
9743 if test "$lt_cv_ld_force_load" = "yes"; then
9744 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\"`'
9745
9746 else
9747 whole_archive_flag_spec=''
9748 fi
9749 link_all_deplibs=yes
9750 allow_undefined_flag="$_lt_dar_allow_undefined"
9751 case $cc_basename in
9752 ifort*) _lt_dar_can_shared=yes ;;
9753 *) _lt_dar_can_shared=$GCC ;;
9754 esac
9755 if test "$_lt_dar_can_shared" = "yes"; then
9756 output_verbose_link_cmd=func_echo_all
9757 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9758 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9759 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}"
9760 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}"
9761
9762 else
9763 ld_shlibs=no
9764 fi
9765
9766 ;;
9767
9768 dgux*)
9769 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9770 hardcode_libdir_flag_spec='-L$libdir'
9771 hardcode_shlibpath_var=no
9772 ;;
9773
9774 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9775 # support. Future versions do this automatically, but an explicit c++rt0.o
9776 # does not break anything, and helps significantly (at the cost of a little
9777 # extra space).
9778 freebsd2.2*)
9779 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9780 hardcode_libdir_flag_spec='-R$libdir'
9781 hardcode_direct=yes
9782 hardcode_shlibpath_var=no
9783 ;;
9784
9785 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9786 freebsd2.*)
9787 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9788 hardcode_direct=yes
9789 hardcode_minus_L=yes
9790 hardcode_shlibpath_var=no
9791 ;;
9792
9793 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9794 freebsd* | dragonfly*)
9795 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9796 hardcode_libdir_flag_spec='-R$libdir'
9797 hardcode_direct=yes
9798 hardcode_shlibpath_var=no
9799 ;;
9800
9801 hpux9*)
9802 if test "$GCC" = yes; then
9803 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'
9804 else
9805 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'
9806 fi
9807 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9808 hardcode_libdir_separator=:
9809 hardcode_direct=yes
9810
9811 # hardcode_minus_L: Not really in the search PATH,
9812 # but as the default location of the library.
9813 hardcode_minus_L=yes
9814 export_dynamic_flag_spec='${wl}-E'
9815 ;;
9816
9817 hpux10*)
9818 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9819 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9820 else
9821 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9822 fi
9823 if test "$with_gnu_ld" = no; then
9824 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9825 hardcode_libdir_separator=:
9826 hardcode_direct=yes
9827 hardcode_direct_absolute=yes
9828 export_dynamic_flag_spec='${wl}-E'
9829 # hardcode_minus_L: Not really in the search PATH,
9830 # but as the default location of the library.
9831 hardcode_minus_L=yes
9832 fi
9833 ;;
9834
9835 hpux11*)
9836 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9837 case $host_cpu in
9838 hppa*64*)
9839 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9840 ;;
9841 ia64*)
9842 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9843 ;;
9844 *)
9845 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9846 ;;
9847 esac
9848 else
9849 case $host_cpu in
9850 hppa*64*)
9851 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9852 ;;
9853 ia64*)
9854 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9855 ;;
9856 *)
9857
9858 # Older versions of the 11.00 compiler do not understand -b yet
9859 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9861 $as_echo_n "checking if $CC understands -b... " >&6; }
9862 if ${lt_cv_prog_compiler__b+:} false; then :
9863 $as_echo_n "(cached) " >&6
9864 else
9865 lt_cv_prog_compiler__b=no
9866 save_LDFLAGS="$LDFLAGS"
9867 LDFLAGS="$LDFLAGS -b"
9868 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9869 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9870 # The linker can only warn and ignore the option if not recognized
9871 # So say no if there are warnings
9872 if test -s conftest.err; then
9873 # Append any errors to the config.log.
9874 cat conftest.err 1>&5
9875 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9876 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9877 if diff conftest.exp conftest.er2 >/dev/null; then
9878 lt_cv_prog_compiler__b=yes
9879 fi
9880 else
9881 lt_cv_prog_compiler__b=yes
9882 fi
9883 fi
9884 $RM -r conftest*
9885 LDFLAGS="$save_LDFLAGS"
9886
9887 fi
9888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9889 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9890
9891 if test x"$lt_cv_prog_compiler__b" = xyes; then
9892 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9893 else
9894 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9895 fi
9896
9897 ;;
9898 esac
9899 fi
9900 if test "$with_gnu_ld" = no; then
9901 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9902 hardcode_libdir_separator=:
9903
9904 case $host_cpu in
9905 hppa*64*|ia64*)
9906 hardcode_direct=no
9907 hardcode_shlibpath_var=no
9908 ;;
9909 *)
9910 hardcode_direct=yes
9911 hardcode_direct_absolute=yes
9912 export_dynamic_flag_spec='${wl}-E'
9913
9914 # hardcode_minus_L: Not really in the search PATH,
9915 # but as the default location of the library.
9916 hardcode_minus_L=yes
9917 ;;
9918 esac
9919 fi
9920 ;;
9921
9922 irix5* | irix6* | nonstopux*)
9923 if test "$GCC" = yes; then
9924 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'
9925 # Try to use the -exported_symbol ld option, if it does not
9926 # work, assume that -exports_file does not work either and
9927 # implicitly export all symbols.
9928 # This should be the same for all languages, so no per-tag cache variable.
9929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9930 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9931 if ${lt_cv_irix_exported_symbol+:} false; then :
9932 $as_echo_n "(cached) " >&6
9933 else
9934 save_LDFLAGS="$LDFLAGS"
9935 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9937 /* end confdefs.h. */
9938 int foo (void) { return 0; }
9939 _ACEOF
9940 if ac_fn_c_try_link "$LINENO"; then :
9941 lt_cv_irix_exported_symbol=yes
9942 else
9943 lt_cv_irix_exported_symbol=no
9944 fi
9945 rm -f core conftest.err conftest.$ac_objext \
9946 conftest$ac_exeext conftest.$ac_ext
9947 LDFLAGS="$save_LDFLAGS"
9948 fi
9949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9950 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9951 if test "$lt_cv_irix_exported_symbol" = yes; then
9952 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'
9953 fi
9954 else
9955 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'
9956 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'
9957 fi
9958 archive_cmds_need_lc='no'
9959 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9960 hardcode_libdir_separator=:
9961 inherit_rpath=yes
9962 link_all_deplibs=yes
9963 ;;
9964
9965 netbsd*)
9966 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9967 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9968 else
9969 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9970 fi
9971 hardcode_libdir_flag_spec='-R$libdir'
9972 hardcode_direct=yes
9973 hardcode_shlibpath_var=no
9974 ;;
9975
9976 newsos6)
9977 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9978 hardcode_direct=yes
9979 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9980 hardcode_libdir_separator=:
9981 hardcode_shlibpath_var=no
9982 ;;
9983
9984 *nto* | *qnx*)
9985 ;;
9986
9987 openbsd*)
9988 if test -f /usr/libexec/ld.so; then
9989 hardcode_direct=yes
9990 hardcode_shlibpath_var=no
9991 hardcode_direct_absolute=yes
9992 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9993 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9994 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9995 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9996 export_dynamic_flag_spec='${wl}-E'
9997 else
9998 case $host_os in
9999 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10000 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10001 hardcode_libdir_flag_spec='-R$libdir'
10002 ;;
10003 *)
10004 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10005 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10006 ;;
10007 esac
10008 fi
10009 else
10010 ld_shlibs=no
10011 fi
10012 ;;
10013
10014 os2*)
10015 hardcode_libdir_flag_spec='-L$libdir'
10016 hardcode_minus_L=yes
10017 allow_undefined_flag=unsupported
10018 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'
10019 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10020 ;;
10021
10022 osf3*)
10023 if test "$GCC" = yes; then
10024 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10025 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'
10026 else
10027 allow_undefined_flag=' -expect_unresolved \*'
10028 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'
10029 fi
10030 archive_cmds_need_lc='no'
10031 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10032 hardcode_libdir_separator=:
10033 ;;
10034
10035 osf4* | osf5*) # as osf3* with the addition of -msym flag
10036 if test "$GCC" = yes; then
10037 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10038 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'
10039 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10040 else
10041 allow_undefined_flag=' -expect_unresolved \*'
10042 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'
10043 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~
10044 $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'
10045
10046 # Both c and cxx compiler support -rpath directly
10047 hardcode_libdir_flag_spec='-rpath $libdir'
10048 fi
10049 archive_cmds_need_lc='no'
10050 hardcode_libdir_separator=:
10051 ;;
10052
10053 solaris*)
10054 no_undefined_flag=' -z defs'
10055 if test "$GCC" = yes; then
10056 wlarc='${wl}'
10057 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10058 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10059 $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'
10060 else
10061 case `$CC -V 2>&1` in
10062 *"Compilers 5.0"*)
10063 wlarc=''
10064 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10065 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10066 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10067 ;;
10068 *)
10069 wlarc='${wl}'
10070 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10071 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10072 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10073 ;;
10074 esac
10075 fi
10076 hardcode_libdir_flag_spec='-R$libdir'
10077 hardcode_shlibpath_var=no
10078 case $host_os in
10079 solaris2.[0-5] | solaris2.[0-5].*) ;;
10080 *)
10081 # The compiler driver will combine and reorder linker options,
10082 # but understands `-z linker_flag'. GCC discards it without `$wl',
10083 # but is careful enough not to reorder.
10084 # Supported since Solaris 2.6 (maybe 2.5.1?)
10085 if test "$GCC" = yes; then
10086 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10087 else
10088 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10089 fi
10090 ;;
10091 esac
10092 link_all_deplibs=yes
10093 ;;
10094
10095 sunos4*)
10096 if test "x$host_vendor" = xsequent; then
10097 # Use $CC to link under sequent, because it throws in some extra .o
10098 # files that make .init and .fini sections work.
10099 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10100 else
10101 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10102 fi
10103 hardcode_libdir_flag_spec='-L$libdir'
10104 hardcode_direct=yes
10105 hardcode_minus_L=yes
10106 hardcode_shlibpath_var=no
10107 ;;
10108
10109 sysv4)
10110 case $host_vendor in
10111 sni)
10112 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10113 hardcode_direct=yes # is this really true???
10114 ;;
10115 siemens)
10116 ## LD is ld it makes a PLAMLIB
10117 ## CC just makes a GrossModule.
10118 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10119 reload_cmds='$CC -r -o $output$reload_objs'
10120 hardcode_direct=no
10121 ;;
10122 motorola)
10123 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10124 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10125 ;;
10126 esac
10127 runpath_var='LD_RUN_PATH'
10128 hardcode_shlibpath_var=no
10129 ;;
10130
10131 sysv4.3*)
10132 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10133 hardcode_shlibpath_var=no
10134 export_dynamic_flag_spec='-Bexport'
10135 ;;
10136
10137 sysv4*MP*)
10138 if test -d /usr/nec; then
10139 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10140 hardcode_shlibpath_var=no
10141 runpath_var=LD_RUN_PATH
10142 hardcode_runpath_var=yes
10143 ld_shlibs=yes
10144 fi
10145 ;;
10146
10147 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10148 no_undefined_flag='${wl}-z,text'
10149 archive_cmds_need_lc=no
10150 hardcode_shlibpath_var=no
10151 runpath_var='LD_RUN_PATH'
10152
10153 if test "$GCC" = yes; then
10154 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10155 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10156 else
10157 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10158 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10159 fi
10160 ;;
10161
10162 sysv5* | sco3.2v5* | sco5v6*)
10163 # Note: We can NOT use -z defs as we might desire, because we do not
10164 # link with -lc, and that would cause any symbols used from libc to
10165 # always be unresolved, which means just about no library would
10166 # ever link correctly. If we're not using GNU ld we use -z text
10167 # though, which does catch some bad symbols but isn't as heavy-handed
10168 # as -z defs.
10169 no_undefined_flag='${wl}-z,text'
10170 allow_undefined_flag='${wl}-z,nodefs'
10171 archive_cmds_need_lc=no
10172 hardcode_shlibpath_var=no
10173 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10174 hardcode_libdir_separator=':'
10175 link_all_deplibs=yes
10176 export_dynamic_flag_spec='${wl}-Bexport'
10177 runpath_var='LD_RUN_PATH'
10178
10179 if test "$GCC" = yes; then
10180 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10181 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10182 else
10183 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10184 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10185 fi
10186 ;;
10187
10188 uts4*)
10189 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10190 hardcode_libdir_flag_spec='-L$libdir'
10191 hardcode_shlibpath_var=no
10192 ;;
10193
10194 *)
10195 ld_shlibs=no
10196 ;;
10197 esac
10198
10199 if test x$host_vendor = xsni; then
10200 case $host in
10201 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10202 export_dynamic_flag_spec='${wl}-Blargedynsym'
10203 ;;
10204 esac
10205 fi
10206 fi
10207
10208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10209 $as_echo "$ld_shlibs" >&6; }
10210 test "$ld_shlibs" = no && can_build_shared=no
10211
10212 with_gnu_ld=$with_gnu_ld
10213
10214
10215
10216
10217
10218
10219
10220
10221
10222
10223
10224
10225
10226
10227
10228 #
10229 # Do we need to explicitly link libc?
10230 #
10231 case "x$archive_cmds_need_lc" in
10232 x|xyes)
10233 # Assume -lc should be added
10234 archive_cmds_need_lc=yes
10235
10236 if test "$enable_shared" = yes && test "$GCC" = yes; then
10237 case $archive_cmds in
10238 *'~'*)
10239 # FIXME: we may have to deal with multi-command sequences.
10240 ;;
10241 '$CC '*)
10242 # Test whether the compiler implicitly links with -lc since on some
10243 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10244 # to ld, don't add -lc before -lgcc.
10245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10246 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10247 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10248 $as_echo_n "(cached) " >&6
10249 else
10250 $RM conftest*
10251 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10252
10253 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10254 (eval $ac_compile) 2>&5
10255 ac_status=$?
10256 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10257 test $ac_status = 0; } 2>conftest.err; then
10258 soname=conftest
10259 lib=conftest
10260 libobjs=conftest.$ac_objext
10261 deplibs=
10262 wl=$lt_prog_compiler_wl
10263 pic_flag=$lt_prog_compiler_pic
10264 compiler_flags=-v
10265 linker_flags=-v
10266 verstring=
10267 output_objdir=.
10268 libname=conftest
10269 lt_save_allow_undefined_flag=$allow_undefined_flag
10270 allow_undefined_flag=
10271 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10272 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10273 ac_status=$?
10274 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10275 test $ac_status = 0; }
10276 then
10277 lt_cv_archive_cmds_need_lc=no
10278 else
10279 lt_cv_archive_cmds_need_lc=yes
10280 fi
10281 allow_undefined_flag=$lt_save_allow_undefined_flag
10282 else
10283 cat conftest.err 1>&5
10284 fi
10285 $RM conftest*
10286
10287 fi
10288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10289 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10290 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10291 ;;
10292 esac
10293 fi
10294 ;;
10295 esac
10296
10297
10298
10299
10300
10301
10302
10303
10304
10305
10306
10307
10308
10309
10310
10311
10312
10313
10314
10315
10316
10317
10318
10319
10320
10321
10322
10323
10324
10325
10326
10327
10328
10329
10330
10331
10332
10333
10334
10335
10336
10337
10338
10339
10340
10341
10342
10343
10344
10345
10346
10347
10348
10349
10350
10351
10352
10353
10354
10355
10356
10357
10358
10359
10360
10361
10362
10363
10364
10365
10366
10367
10368
10369
10370
10371
10372
10373
10374
10375
10376
10377
10378
10379
10380
10381
10382
10383
10384
10385
10386
10387
10388
10389
10390
10391
10392
10393
10394
10395
10396
10397
10398
10399
10400
10401
10402
10403
10404
10405
10406
10407
10408
10409
10410
10411
10412
10413
10414
10415
10416
10417
10418
10419
10420
10421
10422
10423
10424
10425
10426
10427
10428
10429
10430
10431
10432
10433
10434
10435
10436
10437
10438
10439
10440
10441
10442
10443
10444
10445
10446
10447
10448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10449 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10450
10451 if test "$GCC" = yes; then
10452 case $host_os in
10453 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10454 *) lt_awk_arg="/^libraries:/" ;;
10455 esac
10456 case $host_os in
10457 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10458 *) lt_sed_strip_eq="s,=/,/,g" ;;
10459 esac
10460 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10461 case $lt_search_path_spec in
10462 *\;*)
10463 # if the path contains ";" then we assume it to be the separator
10464 # otherwise default to the standard path separator (i.e. ":") - it is
10465 # assumed that no part of a normal pathname contains ";" but that should
10466 # okay in the real world where ";" in dirpaths is itself problematic.
10467 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10468 ;;
10469 *)
10470 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10471 ;;
10472 esac
10473 # Ok, now we have the path, separated by spaces, we can step through it
10474 # and add multilib dir if necessary.
10475 lt_tmp_lt_search_path_spec=
10476 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10477 for lt_sys_path in $lt_search_path_spec; do
10478 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10479 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10480 else
10481 test -d "$lt_sys_path" && \
10482 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10483 fi
10484 done
10485 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10486 BEGIN {RS=" "; FS="/|\n";} {
10487 lt_foo="";
10488 lt_count=0;
10489 for (lt_i = NF; lt_i > 0; lt_i--) {
10490 if ($lt_i != "" && $lt_i != ".") {
10491 if ($lt_i == "..") {
10492 lt_count++;
10493 } else {
10494 if (lt_count == 0) {
10495 lt_foo="/" $lt_i lt_foo;
10496 } else {
10497 lt_count--;
10498 }
10499 }
10500 }
10501 }
10502 if (lt_foo != "") { lt_freq[lt_foo]++; }
10503 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10504 }'`
10505 # AWK program above erroneously prepends '/' to C:/dos/paths
10506 # for these hosts.
10507 case $host_os in
10508 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10509 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10510 esac
10511 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10512 else
10513 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10514 fi
10515 library_names_spec=
10516 libname_spec='lib$name'
10517 soname_spec=
10518 shrext_cmds=".so"
10519 postinstall_cmds=
10520 postuninstall_cmds=
10521 finish_cmds=
10522 finish_eval=
10523 shlibpath_var=
10524 shlibpath_overrides_runpath=unknown
10525 version_type=none
10526 dynamic_linker="$host_os ld.so"
10527 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10528 need_lib_prefix=unknown
10529 hardcode_into_libs=no
10530
10531 # when you set need_version to no, make sure it does not cause -set_version
10532 # flags to be left without arguments
10533 need_version=unknown
10534
10535 case $host_os in
10536 aix3*)
10537 version_type=linux # correct to gnu/linux during the next big refactor
10538 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10539 shlibpath_var=LIBPATH
10540
10541 # AIX 3 has no versioning support, so we append a major version to the name.
10542 soname_spec='${libname}${release}${shared_ext}$major'
10543 ;;
10544
10545 aix[4-9]*)
10546 version_type=linux # correct to gnu/linux during the next big refactor
10547 need_lib_prefix=no
10548 need_version=no
10549 hardcode_into_libs=yes
10550 if test "$host_cpu" = ia64; then
10551 # AIX 5 supports IA64
10552 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10553 shlibpath_var=LD_LIBRARY_PATH
10554 else
10555 # With GCC up to 2.95.x, collect2 would create an import file
10556 # for dependence libraries. The import file would start with
10557 # the line `#! .'. This would cause the generated library to
10558 # depend on `.', always an invalid library. This was fixed in
10559 # development snapshots of GCC prior to 3.0.
10560 case $host_os in
10561 aix4 | aix4.[01] | aix4.[01].*)
10562 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10563 echo ' yes '
10564 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10565 :
10566 else
10567 can_build_shared=no
10568 fi
10569 ;;
10570 esac
10571 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10572 # soname into executable. Probably we can add versioning support to
10573 # collect2, so additional links can be useful in future.
10574 if test "$aix_use_runtimelinking" = yes; then
10575 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10576 # instead of lib<name>.a to let people know that these are not
10577 # typical AIX shared libraries.
10578 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10579 else
10580 # We preserve .a as extension for shared libraries through AIX4.2
10581 # and later when we are not doing run time linking.
10582 library_names_spec='${libname}${release}.a $libname.a'
10583 soname_spec='${libname}${release}${shared_ext}$major'
10584 fi
10585 shlibpath_var=LIBPATH
10586 fi
10587 ;;
10588
10589 amigaos*)
10590 case $host_cpu in
10591 powerpc)
10592 # Since July 2007 AmigaOS4 officially supports .so libraries.
10593 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10594 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10595 ;;
10596 m68k)
10597 library_names_spec='$libname.ixlibrary $libname.a'
10598 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10599 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'
10600 ;;
10601 esac
10602 ;;
10603
10604 beos*)
10605 library_names_spec='${libname}${shared_ext}'
10606 dynamic_linker="$host_os ld.so"
10607 shlibpath_var=LIBRARY_PATH
10608 ;;
10609
10610 bsdi[45]*)
10611 version_type=linux # correct to gnu/linux during the next big refactor
10612 need_version=no
10613 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10614 soname_spec='${libname}${release}${shared_ext}$major'
10615 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10616 shlibpath_var=LD_LIBRARY_PATH
10617 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10618 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10619 # the default ld.so.conf also contains /usr/contrib/lib and
10620 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10621 # libtool to hard-code these into programs
10622 ;;
10623
10624 cygwin* | mingw* | pw32* | cegcc*)
10625 version_type=windows
10626 shrext_cmds=".dll"
10627 need_version=no
10628 need_lib_prefix=no
10629
10630 case $GCC,$cc_basename in
10631 yes,*)
10632 # gcc
10633 library_names_spec='$libname.dll.a'
10634 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10635 postinstall_cmds='base_file=`basename \${file}`~
10636 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10637 dldir=$destdir/`dirname \$dlpath`~
10638 test -d \$dldir || mkdir -p \$dldir~
10639 $install_prog $dir/$dlname \$dldir/$dlname~
10640 chmod a+x \$dldir/$dlname~
10641 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10642 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10643 fi'
10644 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10645 dlpath=$dir/\$dldll~
10646 $RM \$dlpath'
10647 shlibpath_overrides_runpath=yes
10648
10649 case $host_os in
10650 cygwin*)
10651 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10652 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10653
10654 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10655 ;;
10656 mingw* | cegcc*)
10657 # MinGW DLLs use traditional 'lib' prefix
10658 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10659 ;;
10660 pw32*)
10661 # pw32 DLLs use 'pw' prefix rather than 'lib'
10662 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10663 ;;
10664 esac
10665 dynamic_linker='Win32 ld.exe'
10666 ;;
10667
10668 *,cl*)
10669 # Native MSVC
10670 libname_spec='$name'
10671 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10672 library_names_spec='${libname}.dll.lib'
10673
10674 case $build_os in
10675 mingw*)
10676 sys_lib_search_path_spec=
10677 lt_save_ifs=$IFS
10678 IFS=';'
10679 for lt_path in $LIB
10680 do
10681 IFS=$lt_save_ifs
10682 # Let DOS variable expansion print the short 8.3 style file name.
10683 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10684 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10685 done
10686 IFS=$lt_save_ifs
10687 # Convert to MSYS style.
10688 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10689 ;;
10690 cygwin*)
10691 # Convert to unix form, then to dos form, then back to unix form
10692 # but this time dos style (no spaces!) so that the unix form looks
10693 # like /cygdrive/c/PROGRA~1:/cygdr...
10694 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10695 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10696 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10697 ;;
10698 *)
10699 sys_lib_search_path_spec="$LIB"
10700 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10701 # It is most probably a Windows format PATH.
10702 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10703 else
10704 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10705 fi
10706 # FIXME: find the short name or the path components, as spaces are
10707 # common. (e.g. "Program Files" -> "PROGRA~1")
10708 ;;
10709 esac
10710
10711 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10712 postinstall_cmds='base_file=`basename \${file}`~
10713 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10714 dldir=$destdir/`dirname \$dlpath`~
10715 test -d \$dldir || mkdir -p \$dldir~
10716 $install_prog $dir/$dlname \$dldir/$dlname'
10717 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10718 dlpath=$dir/\$dldll~
10719 $RM \$dlpath'
10720 shlibpath_overrides_runpath=yes
10721 dynamic_linker='Win32 link.exe'
10722 ;;
10723
10724 *)
10725 # Assume MSVC wrapper
10726 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10727 dynamic_linker='Win32 ld.exe'
10728 ;;
10729 esac
10730 # FIXME: first we should search . and the directory the executable is in
10731 shlibpath_var=PATH
10732 ;;
10733
10734 darwin* | rhapsody*)
10735 dynamic_linker="$host_os dyld"
10736 version_type=darwin
10737 need_lib_prefix=no
10738 need_version=no
10739 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10740 soname_spec='${libname}${release}${major}$shared_ext'
10741 shlibpath_overrides_runpath=yes
10742 shlibpath_var=DYLD_LIBRARY_PATH
10743 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10744
10745 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10746 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10747 ;;
10748
10749 dgux*)
10750 version_type=linux # correct to gnu/linux during the next big refactor
10751 need_lib_prefix=no
10752 need_version=no
10753 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10754 soname_spec='${libname}${release}${shared_ext}$major'
10755 shlibpath_var=LD_LIBRARY_PATH
10756 ;;
10757
10758 freebsd* | dragonfly*)
10759 # DragonFly does not have aout. When/if they implement a new
10760 # versioning mechanism, adjust this.
10761 if test -x /usr/bin/objformat; then
10762 objformat=`/usr/bin/objformat`
10763 else
10764 case $host_os in
10765 freebsd[23].*) objformat=aout ;;
10766 *) objformat=elf ;;
10767 esac
10768 fi
10769 version_type=freebsd-$objformat
10770 case $version_type in
10771 freebsd-elf*)
10772 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10773 need_version=no
10774 need_lib_prefix=no
10775 ;;
10776 freebsd-*)
10777 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10778 need_version=yes
10779 ;;
10780 esac
10781 shlibpath_var=LD_LIBRARY_PATH
10782 case $host_os in
10783 freebsd2.*)
10784 shlibpath_overrides_runpath=yes
10785 ;;
10786 freebsd3.[01]* | freebsdelf3.[01]*)
10787 shlibpath_overrides_runpath=yes
10788 hardcode_into_libs=yes
10789 ;;
10790 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10791 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10792 shlibpath_overrides_runpath=no
10793 hardcode_into_libs=yes
10794 ;;
10795 *) # from 4.6 on, and DragonFly
10796 shlibpath_overrides_runpath=yes
10797 hardcode_into_libs=yes
10798 ;;
10799 esac
10800 ;;
10801
10802 gnu*)
10803 version_type=linux # correct to gnu/linux during the next big refactor
10804 need_lib_prefix=no
10805 need_version=no
10806 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10807 soname_spec='${libname}${release}${shared_ext}$major'
10808 shlibpath_var=LD_LIBRARY_PATH
10809 shlibpath_overrides_runpath=no
10810 hardcode_into_libs=yes
10811 ;;
10812
10813 haiku*)
10814 version_type=linux # correct to gnu/linux during the next big refactor
10815 need_lib_prefix=no
10816 need_version=no
10817 dynamic_linker="$host_os runtime_loader"
10818 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10819 soname_spec='${libname}${release}${shared_ext}$major'
10820 shlibpath_var=LIBRARY_PATH
10821 shlibpath_overrides_runpath=yes
10822 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10823 hardcode_into_libs=yes
10824 ;;
10825
10826 hpux9* | hpux10* | hpux11*)
10827 # Give a soname corresponding to the major version so that dld.sl refuses to
10828 # link against other versions.
10829 version_type=sunos
10830 need_lib_prefix=no
10831 need_version=no
10832 case $host_cpu in
10833 ia64*)
10834 shrext_cmds='.so'
10835 hardcode_into_libs=yes
10836 dynamic_linker="$host_os dld.so"
10837 shlibpath_var=LD_LIBRARY_PATH
10838 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10839 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10840 soname_spec='${libname}${release}${shared_ext}$major'
10841 if test "X$HPUX_IA64_MODE" = X32; then
10842 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10843 else
10844 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10845 fi
10846 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10847 ;;
10848 hppa*64*)
10849 shrext_cmds='.sl'
10850 hardcode_into_libs=yes
10851 dynamic_linker="$host_os dld.sl"
10852 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10853 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10854 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10855 soname_spec='${libname}${release}${shared_ext}$major'
10856 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10857 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10858 ;;
10859 *)
10860 shrext_cmds='.sl'
10861 dynamic_linker="$host_os dld.sl"
10862 shlibpath_var=SHLIB_PATH
10863 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
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 ;;
10867 esac
10868 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10869 postinstall_cmds='chmod 555 $lib'
10870 # or fails outright, so override atomically:
10871 install_override_mode=555
10872 ;;
10873
10874 interix[3-9]*)
10875 version_type=linux # correct to gnu/linux during the next big refactor
10876 need_lib_prefix=no
10877 need_version=no
10878 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10879 soname_spec='${libname}${release}${shared_ext}$major'
10880 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10881 shlibpath_var=LD_LIBRARY_PATH
10882 shlibpath_overrides_runpath=no
10883 hardcode_into_libs=yes
10884 ;;
10885
10886 irix5* | irix6* | nonstopux*)
10887 case $host_os in
10888 nonstopux*) version_type=nonstopux ;;
10889 *)
10890 if test "$lt_cv_prog_gnu_ld" = yes; then
10891 version_type=linux # correct to gnu/linux during the next big refactor
10892 else
10893 version_type=irix
10894 fi ;;
10895 esac
10896 need_lib_prefix=no
10897 need_version=no
10898 soname_spec='${libname}${release}${shared_ext}$major'
10899 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10900 case $host_os in
10901 irix5* | nonstopux*)
10902 libsuff= shlibsuff=
10903 ;;
10904 *)
10905 case $LD in # libtool.m4 will add one of these switches to LD
10906 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10907 libsuff= shlibsuff= libmagic=32-bit;;
10908 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10909 libsuff=32 shlibsuff=N32 libmagic=N32;;
10910 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10911 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10912 *) libsuff= shlibsuff= libmagic=never-match;;
10913 esac
10914 ;;
10915 esac
10916 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10917 shlibpath_overrides_runpath=no
10918 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10919 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10920 hardcode_into_libs=yes
10921 ;;
10922
10923 # No shared lib support for Linux oldld, aout, or coff.
10924 linux*oldld* | linux*aout* | linux*coff*)
10925 dynamic_linker=no
10926 ;;
10927
10928 # This must be glibc/ELF.
10929 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10930 version_type=linux # correct to gnu/linux during the next big refactor
10931 need_lib_prefix=no
10932 need_version=no
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 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10936 shlibpath_var=LD_LIBRARY_PATH
10937 shlibpath_overrides_runpath=no
10938
10939 # Some binutils ld are patched to set DT_RUNPATH
10940 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10941 $as_echo_n "(cached) " >&6
10942 else
10943 lt_cv_shlibpath_overrides_runpath=no
10944 save_LDFLAGS=$LDFLAGS
10945 save_libdir=$libdir
10946 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10947 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10949 /* end confdefs.h. */
10950
10951 int
10952 main ()
10953 {
10954
10955 ;
10956 return 0;
10957 }
10958 _ACEOF
10959 if ac_fn_c_try_link "$LINENO"; then :
10960 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10961 lt_cv_shlibpath_overrides_runpath=yes
10962 fi
10963 fi
10964 rm -f core conftest.err conftest.$ac_objext \
10965 conftest$ac_exeext conftest.$ac_ext
10966 LDFLAGS=$save_LDFLAGS
10967 libdir=$save_libdir
10968
10969 fi
10970
10971 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10972
10973 # This implies no fast_install, which is unacceptable.
10974 # Some rework will be needed to allow for fast_install
10975 # before this can be enabled.
10976 hardcode_into_libs=yes
10977
10978 # Append ld.so.conf contents to the search path
10979 if test -f /etc/ld.so.conf; then
10980 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' ' '`
10981 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10982 fi
10983
10984 # We used to test for /lib/ld.so.1 and disable shared libraries on
10985 # powerpc, because MkLinux only supported shared libraries with the
10986 # GNU dynamic linker. Since this was broken with cross compilers,
10987 # most powerpc-linux boxes support dynamic linking these days and
10988 # people can always --disable-shared, the test was removed, and we
10989 # assume the GNU/Linux dynamic linker is in use.
10990 dynamic_linker='GNU/Linux ld.so'
10991 ;;
10992
10993 netbsd*)
10994 version_type=sunos
10995 need_lib_prefix=no
10996 need_version=no
10997 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10998 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10999 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11000 dynamic_linker='NetBSD (a.out) ld.so'
11001 else
11002 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11003 soname_spec='${libname}${release}${shared_ext}$major'
11004 dynamic_linker='NetBSD ld.elf_so'
11005 fi
11006 shlibpath_var=LD_LIBRARY_PATH
11007 shlibpath_overrides_runpath=yes
11008 hardcode_into_libs=yes
11009 ;;
11010
11011 newsos6)
11012 version_type=linux # correct to gnu/linux during the next big refactor
11013 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11014 shlibpath_var=LD_LIBRARY_PATH
11015 shlibpath_overrides_runpath=yes
11016 ;;
11017
11018 *nto* | *qnx*)
11019 version_type=qnx
11020 need_lib_prefix=no
11021 need_version=no
11022 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11023 soname_spec='${libname}${release}${shared_ext}$major'
11024 shlibpath_var=LD_LIBRARY_PATH
11025 shlibpath_overrides_runpath=no
11026 hardcode_into_libs=yes
11027 dynamic_linker='ldqnx.so'
11028 ;;
11029
11030 openbsd*)
11031 version_type=sunos
11032 sys_lib_dlsearch_path_spec="/usr/lib"
11033 need_lib_prefix=no
11034 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11035 case $host_os in
11036 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11037 *) need_version=no ;;
11038 esac
11039 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11040 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11041 shlibpath_var=LD_LIBRARY_PATH
11042 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11043 case $host_os in
11044 openbsd2.[89] | openbsd2.[89].*)
11045 shlibpath_overrides_runpath=no
11046 ;;
11047 *)
11048 shlibpath_overrides_runpath=yes
11049 ;;
11050 esac
11051 else
11052 shlibpath_overrides_runpath=yes
11053 fi
11054 ;;
11055
11056 os2*)
11057 libname_spec='$name'
11058 shrext_cmds=".dll"
11059 need_lib_prefix=no
11060 library_names_spec='$libname${shared_ext} $libname.a'
11061 dynamic_linker='OS/2 ld.exe'
11062 shlibpath_var=LIBPATH
11063 ;;
11064
11065 osf3* | osf4* | osf5*)
11066 version_type=osf
11067 need_lib_prefix=no
11068 need_version=no
11069 soname_spec='${libname}${release}${shared_ext}$major'
11070 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11071 shlibpath_var=LD_LIBRARY_PATH
11072 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11073 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11074 ;;
11075
11076 rdos*)
11077 dynamic_linker=no
11078 ;;
11079
11080 solaris*)
11081 version_type=linux # correct to gnu/linux during the next big refactor
11082 need_lib_prefix=no
11083 need_version=no
11084 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11085 soname_spec='${libname}${release}${shared_ext}$major'
11086 shlibpath_var=LD_LIBRARY_PATH
11087 shlibpath_overrides_runpath=yes
11088 hardcode_into_libs=yes
11089 # ldd complains unless libraries are executable
11090 postinstall_cmds='chmod +x $lib'
11091 ;;
11092
11093 sunos4*)
11094 version_type=sunos
11095 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11096 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11097 shlibpath_var=LD_LIBRARY_PATH
11098 shlibpath_overrides_runpath=yes
11099 if test "$with_gnu_ld" = yes; then
11100 need_lib_prefix=no
11101 fi
11102 need_version=yes
11103 ;;
11104
11105 sysv4 | sysv4.3*)
11106 version_type=linux # correct to gnu/linux during the next big refactor
11107 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11108 soname_spec='${libname}${release}${shared_ext}$major'
11109 shlibpath_var=LD_LIBRARY_PATH
11110 case $host_vendor in
11111 sni)
11112 shlibpath_overrides_runpath=no
11113 need_lib_prefix=no
11114 runpath_var=LD_RUN_PATH
11115 ;;
11116 siemens)
11117 need_lib_prefix=no
11118 ;;
11119 motorola)
11120 need_lib_prefix=no
11121 need_version=no
11122 shlibpath_overrides_runpath=no
11123 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11124 ;;
11125 esac
11126 ;;
11127
11128 sysv4*MP*)
11129 if test -d /usr/nec ;then
11130 version_type=linux # correct to gnu/linux during the next big refactor
11131 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11132 soname_spec='$libname${shared_ext}.$major'
11133 shlibpath_var=LD_LIBRARY_PATH
11134 fi
11135 ;;
11136
11137 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11138 version_type=freebsd-elf
11139 need_lib_prefix=no
11140 need_version=no
11141 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11142 soname_spec='${libname}${release}${shared_ext}$major'
11143 shlibpath_var=LD_LIBRARY_PATH
11144 shlibpath_overrides_runpath=yes
11145 hardcode_into_libs=yes
11146 if test "$with_gnu_ld" = yes; then
11147 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11148 else
11149 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11150 case $host_os in
11151 sco3.2v5*)
11152 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11153 ;;
11154 esac
11155 fi
11156 sys_lib_dlsearch_path_spec='/usr/lib'
11157 ;;
11158
11159 tpf*)
11160 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11161 version_type=linux # correct to gnu/linux during the next big refactor
11162 need_lib_prefix=no
11163 need_version=no
11164 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11165 shlibpath_var=LD_LIBRARY_PATH
11166 shlibpath_overrides_runpath=no
11167 hardcode_into_libs=yes
11168 ;;
11169
11170 uts4*)
11171 version_type=linux # correct to gnu/linux during the next big refactor
11172 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11173 soname_spec='${libname}${release}${shared_ext}$major'
11174 shlibpath_var=LD_LIBRARY_PATH
11175 ;;
11176
11177 *)
11178 dynamic_linker=no
11179 ;;
11180 esac
11181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11182 $as_echo "$dynamic_linker" >&6; }
11183 test "$dynamic_linker" = no && can_build_shared=no
11184
11185 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11186 if test "$GCC" = yes; then
11187 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11188 fi
11189
11190 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11191 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11192 fi
11193 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11194 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11195 fi
11196
11197
11198
11199
11200
11201
11202
11203
11204
11205
11206
11207
11208
11209
11210
11211
11212
11213
11214
11215
11216
11217
11218
11219
11220
11221
11222
11223
11224
11225
11226
11227
11228
11229
11230
11231
11232
11233
11234
11235
11236
11237
11238
11239
11240
11241
11242
11243
11244
11245
11246
11247
11248
11249
11250
11251
11252
11253
11254
11255
11256
11257
11258
11259
11260
11261
11262
11263
11264
11265
11266
11267
11268
11269
11270
11271
11272
11273
11274
11275
11276
11277
11278
11279
11280
11281
11282
11283
11284
11285
11286
11287
11288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11289 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11290 hardcode_action=
11291 if test -n "$hardcode_libdir_flag_spec" ||
11292 test -n "$runpath_var" ||
11293 test "X$hardcode_automatic" = "Xyes" ; then
11294
11295 # We can hardcode non-existent directories.
11296 if test "$hardcode_direct" != no &&
11297 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11298 # have to relink, otherwise we might link with an installed library
11299 # when we should be linking with a yet-to-be-installed one
11300 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11301 test "$hardcode_minus_L" != no; then
11302 # Linking always hardcodes the temporary library directory.
11303 hardcode_action=relink
11304 else
11305 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11306 hardcode_action=immediate
11307 fi
11308 else
11309 # We cannot hardcode anything, or else we can only hardcode existing
11310 # directories.
11311 hardcode_action=unsupported
11312 fi
11313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11314 $as_echo "$hardcode_action" >&6; }
11315
11316 if test "$hardcode_action" = relink ||
11317 test "$inherit_rpath" = yes; then
11318 # Fast installation is not supported
11319 enable_fast_install=no
11320 elif test "$shlibpath_overrides_runpath" = yes ||
11321 test "$enable_shared" = no; then
11322 # Fast installation is not necessary
11323 enable_fast_install=needless
11324 fi
11325
11326
11327
11328
11329
11330
11331 if test "x$enable_dlopen" != xyes; then
11332 enable_dlopen=unknown
11333 enable_dlopen_self=unknown
11334 enable_dlopen_self_static=unknown
11335 else
11336 lt_cv_dlopen=no
11337 lt_cv_dlopen_libs=
11338
11339 case $host_os in
11340 beos*)
11341 lt_cv_dlopen="load_add_on"
11342 lt_cv_dlopen_libs=
11343 lt_cv_dlopen_self=yes
11344 ;;
11345
11346 mingw* | pw32* | cegcc*)
11347 lt_cv_dlopen="LoadLibrary"
11348 lt_cv_dlopen_libs=
11349 ;;
11350
11351 cygwin*)
11352 lt_cv_dlopen="dlopen"
11353 lt_cv_dlopen_libs=
11354 ;;
11355
11356 darwin*)
11357 # if libdl is installed we need to link against it
11358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11359 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11360 if ${ac_cv_lib_dl_dlopen+:} false; then :
11361 $as_echo_n "(cached) " >&6
11362 else
11363 ac_check_lib_save_LIBS=$LIBS
11364 LIBS="-ldl $LIBS"
11365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11366 /* end confdefs.h. */
11367
11368 /* Override any GCC internal prototype to avoid an error.
11369 Use char because int might match the return type of a GCC
11370 builtin and then its argument prototype would still apply. */
11371 #ifdef __cplusplus
11372 extern "C"
11373 #endif
11374 char dlopen ();
11375 int
11376 main ()
11377 {
11378 return dlopen ();
11379 ;
11380 return 0;
11381 }
11382 _ACEOF
11383 if ac_fn_c_try_link "$LINENO"; then :
11384 ac_cv_lib_dl_dlopen=yes
11385 else
11386 ac_cv_lib_dl_dlopen=no
11387 fi
11388 rm -f core conftest.err conftest.$ac_objext \
11389 conftest$ac_exeext conftest.$ac_ext
11390 LIBS=$ac_check_lib_save_LIBS
11391 fi
11392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11393 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11394 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11395 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11396 else
11397
11398 lt_cv_dlopen="dyld"
11399 lt_cv_dlopen_libs=
11400 lt_cv_dlopen_self=yes
11401
11402 fi
11403
11404 ;;
11405
11406 *)
11407 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11408 if test "x$ac_cv_func_shl_load" = xyes; then :
11409 lt_cv_dlopen="shl_load"
11410 else
11411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11412 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11413 if ${ac_cv_lib_dld_shl_load+:} false; then :
11414 $as_echo_n "(cached) " >&6
11415 else
11416 ac_check_lib_save_LIBS=$LIBS
11417 LIBS="-ldld $LIBS"
11418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11419 /* end confdefs.h. */
11420
11421 /* Override any GCC internal prototype to avoid an error.
11422 Use char because int might match the return type of a GCC
11423 builtin and then its argument prototype would still apply. */
11424 #ifdef __cplusplus
11425 extern "C"
11426 #endif
11427 char shl_load ();
11428 int
11429 main ()
11430 {
11431 return shl_load ();
11432 ;
11433 return 0;
11434 }
11435 _ACEOF
11436 if ac_fn_c_try_link "$LINENO"; then :
11437 ac_cv_lib_dld_shl_load=yes
11438 else
11439 ac_cv_lib_dld_shl_load=no
11440 fi
11441 rm -f core conftest.err conftest.$ac_objext \
11442 conftest$ac_exeext conftest.$ac_ext
11443 LIBS=$ac_check_lib_save_LIBS
11444 fi
11445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11446 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11447 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11448 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11449 else
11450 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11451 if test "x$ac_cv_func_dlopen" = xyes; then :
11452 lt_cv_dlopen="dlopen"
11453 else
11454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11455 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11456 if ${ac_cv_lib_dl_dlopen+:} false; then :
11457 $as_echo_n "(cached) " >&6
11458 else
11459 ac_check_lib_save_LIBS=$LIBS
11460 LIBS="-ldl $LIBS"
11461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11462 /* end confdefs.h. */
11463
11464 /* Override any GCC internal prototype to avoid an error.
11465 Use char because int might match the return type of a GCC
11466 builtin and then its argument prototype would still apply. */
11467 #ifdef __cplusplus
11468 extern "C"
11469 #endif
11470 char dlopen ();
11471 int
11472 main ()
11473 {
11474 return dlopen ();
11475 ;
11476 return 0;
11477 }
11478 _ACEOF
11479 if ac_fn_c_try_link "$LINENO"; then :
11480 ac_cv_lib_dl_dlopen=yes
11481 else
11482 ac_cv_lib_dl_dlopen=no
11483 fi
11484 rm -f core conftest.err conftest.$ac_objext \
11485 conftest$ac_exeext conftest.$ac_ext
11486 LIBS=$ac_check_lib_save_LIBS
11487 fi
11488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11489 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11490 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11491 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11492 else
11493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11494 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11495 if ${ac_cv_lib_svld_dlopen+:} false; then :
11496 $as_echo_n "(cached) " >&6
11497 else
11498 ac_check_lib_save_LIBS=$LIBS
11499 LIBS="-lsvld $LIBS"
11500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11501 /* end confdefs.h. */
11502
11503 /* Override any GCC internal prototype to avoid an error.
11504 Use char because int might match the return type of a GCC
11505 builtin and then its argument prototype would still apply. */
11506 #ifdef __cplusplus
11507 extern "C"
11508 #endif
11509 char dlopen ();
11510 int
11511 main ()
11512 {
11513 return dlopen ();
11514 ;
11515 return 0;
11516 }
11517 _ACEOF
11518 if ac_fn_c_try_link "$LINENO"; then :
11519 ac_cv_lib_svld_dlopen=yes
11520 else
11521 ac_cv_lib_svld_dlopen=no
11522 fi
11523 rm -f core conftest.err conftest.$ac_objext \
11524 conftest$ac_exeext conftest.$ac_ext
11525 LIBS=$ac_check_lib_save_LIBS
11526 fi
11527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11528 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11529 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11530 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11531 else
11532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11533 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11534 if ${ac_cv_lib_dld_dld_link+:} false; then :
11535 $as_echo_n "(cached) " >&6
11536 else
11537 ac_check_lib_save_LIBS=$LIBS
11538 LIBS="-ldld $LIBS"
11539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11540 /* end confdefs.h. */
11541
11542 /* Override any GCC internal prototype to avoid an error.
11543 Use char because int might match the return type of a GCC
11544 builtin and then its argument prototype would still apply. */
11545 #ifdef __cplusplus
11546 extern "C"
11547 #endif
11548 char dld_link ();
11549 int
11550 main ()
11551 {
11552 return dld_link ();
11553 ;
11554 return 0;
11555 }
11556 _ACEOF
11557 if ac_fn_c_try_link "$LINENO"; then :
11558 ac_cv_lib_dld_dld_link=yes
11559 else
11560 ac_cv_lib_dld_dld_link=no
11561 fi
11562 rm -f core conftest.err conftest.$ac_objext \
11563 conftest$ac_exeext conftest.$ac_ext
11564 LIBS=$ac_check_lib_save_LIBS
11565 fi
11566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11567 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11568 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11569 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11570 fi
11571
11572
11573 fi
11574
11575
11576 fi
11577
11578
11579 fi
11580
11581
11582 fi
11583
11584
11585 fi
11586
11587 ;;
11588 esac
11589
11590 if test "x$lt_cv_dlopen" != xno; then
11591 enable_dlopen=yes
11592 else
11593 enable_dlopen=no
11594 fi
11595
11596 case $lt_cv_dlopen in
11597 dlopen)
11598 save_CPPFLAGS="$CPPFLAGS"
11599 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11600
11601 save_LDFLAGS="$LDFLAGS"
11602 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11603
11604 save_LIBS="$LIBS"
11605 LIBS="$lt_cv_dlopen_libs $LIBS"
11606
11607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11608 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11609 if ${lt_cv_dlopen_self+:} false; then :
11610 $as_echo_n "(cached) " >&6
11611 else
11612 if test "$cross_compiling" = yes; then :
11613 lt_cv_dlopen_self=cross
11614 else
11615 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11616 lt_status=$lt_dlunknown
11617 cat > conftest.$ac_ext <<_LT_EOF
11618 #line $LINENO "configure"
11619 #include "confdefs.h"
11620
11621 #if HAVE_DLFCN_H
11622 #include <dlfcn.h>
11623 #endif
11624
11625 #include <stdio.h>
11626
11627 #ifdef RTLD_GLOBAL
11628 # define LT_DLGLOBAL RTLD_GLOBAL
11629 #else
11630 # ifdef DL_GLOBAL
11631 # define LT_DLGLOBAL DL_GLOBAL
11632 # else
11633 # define LT_DLGLOBAL 0
11634 # endif
11635 #endif
11636
11637 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11638 find out it does not work in some platform. */
11639 #ifndef LT_DLLAZY_OR_NOW
11640 # ifdef RTLD_LAZY
11641 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11642 # else
11643 # ifdef DL_LAZY
11644 # define LT_DLLAZY_OR_NOW DL_LAZY
11645 # else
11646 # ifdef RTLD_NOW
11647 # define LT_DLLAZY_OR_NOW RTLD_NOW
11648 # else
11649 # ifdef DL_NOW
11650 # define LT_DLLAZY_OR_NOW DL_NOW
11651 # else
11652 # define LT_DLLAZY_OR_NOW 0
11653 # endif
11654 # endif
11655 # endif
11656 # endif
11657 #endif
11658
11659 /* When -fvisbility=hidden is used, assume the code has been annotated
11660 correspondingly for the symbols needed. */
11661 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11662 int fnord () __attribute__((visibility("default")));
11663 #endif
11664
11665 int fnord () { return 42; }
11666 int main ()
11667 {
11668 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11669 int status = $lt_dlunknown;
11670
11671 if (self)
11672 {
11673 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11674 else
11675 {
11676 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11677 else puts (dlerror ());
11678 }
11679 /* dlclose (self); */
11680 }
11681 else
11682 puts (dlerror ());
11683
11684 return status;
11685 }
11686 _LT_EOF
11687 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11688 (eval $ac_link) 2>&5
11689 ac_status=$?
11690 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11691 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11692 (./conftest; exit; ) >&5 2>/dev/null
11693 lt_status=$?
11694 case x$lt_status in
11695 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11696 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11697 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11698 esac
11699 else :
11700 # compilation failed
11701 lt_cv_dlopen_self=no
11702 fi
11703 fi
11704 rm -fr conftest*
11705
11706
11707 fi
11708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11709 $as_echo "$lt_cv_dlopen_self" >&6; }
11710
11711 if test "x$lt_cv_dlopen_self" = xyes; then
11712 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11714 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11715 if ${lt_cv_dlopen_self_static+:} false; then :
11716 $as_echo_n "(cached) " >&6
11717 else
11718 if test "$cross_compiling" = yes; then :
11719 lt_cv_dlopen_self_static=cross
11720 else
11721 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11722 lt_status=$lt_dlunknown
11723 cat > conftest.$ac_ext <<_LT_EOF
11724 #line $LINENO "configure"
11725 #include "confdefs.h"
11726
11727 #if HAVE_DLFCN_H
11728 #include <dlfcn.h>
11729 #endif
11730
11731 #include <stdio.h>
11732
11733 #ifdef RTLD_GLOBAL
11734 # define LT_DLGLOBAL RTLD_GLOBAL
11735 #else
11736 # ifdef DL_GLOBAL
11737 # define LT_DLGLOBAL DL_GLOBAL
11738 # else
11739 # define LT_DLGLOBAL 0
11740 # endif
11741 #endif
11742
11743 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11744 find out it does not work in some platform. */
11745 #ifndef LT_DLLAZY_OR_NOW
11746 # ifdef RTLD_LAZY
11747 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11748 # else
11749 # ifdef DL_LAZY
11750 # define LT_DLLAZY_OR_NOW DL_LAZY
11751 # else
11752 # ifdef RTLD_NOW
11753 # define LT_DLLAZY_OR_NOW RTLD_NOW
11754 # else
11755 # ifdef DL_NOW
11756 # define LT_DLLAZY_OR_NOW DL_NOW
11757 # else
11758 # define LT_DLLAZY_OR_NOW 0
11759 # endif
11760 # endif
11761 # endif
11762 # endif
11763 #endif
11764
11765 /* When -fvisbility=hidden is used, assume the code has been annotated
11766 correspondingly for the symbols needed. */
11767 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11768 int fnord () __attribute__((visibility("default")));
11769 #endif
11770
11771 int fnord () { return 42; }
11772 int main ()
11773 {
11774 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11775 int status = $lt_dlunknown;
11776
11777 if (self)
11778 {
11779 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11780 else
11781 {
11782 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11783 else puts (dlerror ());
11784 }
11785 /* dlclose (self); */
11786 }
11787 else
11788 puts (dlerror ());
11789
11790 return status;
11791 }
11792 _LT_EOF
11793 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11794 (eval $ac_link) 2>&5
11795 ac_status=$?
11796 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11797 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11798 (./conftest; exit; ) >&5 2>/dev/null
11799 lt_status=$?
11800 case x$lt_status in
11801 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11802 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11803 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11804 esac
11805 else :
11806 # compilation failed
11807 lt_cv_dlopen_self_static=no
11808 fi
11809 fi
11810 rm -fr conftest*
11811
11812
11813 fi
11814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11815 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11816 fi
11817
11818 CPPFLAGS="$save_CPPFLAGS"
11819 LDFLAGS="$save_LDFLAGS"
11820 LIBS="$save_LIBS"
11821 ;;
11822 esac
11823
11824 case $lt_cv_dlopen_self in
11825 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11826 *) enable_dlopen_self=unknown ;;
11827 esac
11828
11829 case $lt_cv_dlopen_self_static in
11830 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11831 *) enable_dlopen_self_static=unknown ;;
11832 esac
11833 fi
11834
11835
11836
11837
11838
11839
11840
11841
11842
11843
11844
11845
11846
11847
11848
11849
11850
11851 striplib=
11852 old_striplib=
11853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11854 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11855 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11856 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11857 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11859 $as_echo "yes" >&6; }
11860 else
11861 # FIXME - insert some real tests, host_os isn't really good enough
11862 case $host_os in
11863 darwin*)
11864 if test -n "$STRIP" ; then
11865 striplib="$STRIP -x"
11866 old_striplib="$STRIP -S"
11867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11868 $as_echo "yes" >&6; }
11869 else
11870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11871 $as_echo "no" >&6; }
11872 fi
11873 ;;
11874 *)
11875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11876 $as_echo "no" >&6; }
11877 ;;
11878 esac
11879 fi
11880
11881
11882
11883
11884
11885
11886
11887
11888
11889
11890
11891
11892 # Report which library types will actually be built
11893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11894 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11896 $as_echo "$can_build_shared" >&6; }
11897
11898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11899 $as_echo_n "checking whether to build shared libraries... " >&6; }
11900 test "$can_build_shared" = "no" && enable_shared=no
11901
11902 # On AIX, shared libraries and static libraries use the same namespace, and
11903 # are all built from PIC.
11904 case $host_os in
11905 aix3*)
11906 test "$enable_shared" = yes && enable_static=no
11907 if test -n "$RANLIB"; then
11908 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11909 postinstall_cmds='$RANLIB $lib'
11910 fi
11911 ;;
11912
11913 aix[4-9]*)
11914 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11915 test "$enable_shared" = yes && enable_static=no
11916 fi
11917 ;;
11918 esac
11919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11920 $as_echo "$enable_shared" >&6; }
11921
11922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11923 $as_echo_n "checking whether to build static libraries... " >&6; }
11924 # Make sure either enable_shared or enable_static is yes.
11925 test "$enable_shared" = yes || enable_static=yes
11926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11927 $as_echo "$enable_static" >&6; }
11928
11929
11930
11931
11932 fi
11933 ac_ext=c
11934 ac_cpp='$CPP $CPPFLAGS'
11935 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11936 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11937 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11938
11939 CC="$lt_save_CC"
11940
11941
11942
11943
11944
11945
11946
11947
11948
11949
11950
11951
11952
11953
11954
11955 ac_config_commands="$ac_config_commands libtool"
11956
11957
11958
11959
11960 # Only expand once:
11961
11962
11963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which extension is used for runtime loadable modules" >&5
11964 $as_echo_n "checking which extension is used for runtime loadable modules... " >&6; }
11965 if ${libltdl_cv_shlibext+:} false; then :
11966 $as_echo_n "(cached) " >&6
11967 else
11968
11969 module=yes
11970 eval libltdl_cv_shlibext=$shrext_cmds
11971 module=no
11972 eval libltdl_cv_shrext=$shrext_cmds
11973
11974 fi
11975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_shlibext" >&5
11976 $as_echo "$libltdl_cv_shlibext" >&6; }
11977 if test -n "$libltdl_cv_shlibext"; then
11978
11979 cat >>confdefs.h <<_ACEOF
11980 #define LT_MODULE_EXT "$libltdl_cv_shlibext"
11981 _ACEOF
11982
11983 fi
11984 if test "$libltdl_cv_shrext" != "$libltdl_cv_shlibext"; then
11985
11986 cat >>confdefs.h <<_ACEOF
11987 #define LT_SHARED_EXT "$libltdl_cv_shrext"
11988 _ACEOF
11989
11990 fi
11991
11992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variable specifies run-time module search path" >&5
11993 $as_echo_n "checking which variable specifies run-time module search path... " >&6; }
11994 if ${lt_cv_module_path_var+:} false; then :
11995 $as_echo_n "(cached) " >&6
11996 else
11997 lt_cv_module_path_var="$shlibpath_var"
11998 fi
11999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_module_path_var" >&5
12000 $as_echo "$lt_cv_module_path_var" >&6; }
12001 if test -n "$lt_cv_module_path_var"; then
12002
12003 cat >>confdefs.h <<_ACEOF
12004 #define LT_MODULE_PATH_VAR "$lt_cv_module_path_var"
12005 _ACEOF
12006
12007 fi
12008
12009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the default library search path" >&5
12010 $as_echo_n "checking for the default library search path... " >&6; }
12011 if ${lt_cv_sys_dlsearch_path+:} false; then :
12012 $as_echo_n "(cached) " >&6
12013 else
12014 lt_cv_sys_dlsearch_path="$sys_lib_dlsearch_path_spec"
12015 fi
12016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlsearch_path" >&5
12017 $as_echo "$lt_cv_sys_dlsearch_path" >&6; }
12018 if test -n "$lt_cv_sys_dlsearch_path"; then
12019 sys_dlsearch_path=
12020 for dir in $lt_cv_sys_dlsearch_path; do
12021 if test -z "$sys_dlsearch_path"; then
12022 sys_dlsearch_path="$dir"
12023 else
12024 sys_dlsearch_path="$sys_dlsearch_path$PATH_SEPARATOR$dir"
12025 fi
12026 done
12027
12028 cat >>confdefs.h <<_ACEOF
12029 #define LT_DLSEARCH_PATH "$sys_dlsearch_path"
12030 _ACEOF
12031
12032 fi
12033
12034
12035 LT_DLLOADERS=
12036
12037
12038 ac_ext=c
12039 ac_cpp='$CPP $CPPFLAGS'
12040 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12041 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12042 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12043
12044
12045 LIBADD_DLOPEN=
12046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
12047 $as_echo_n "checking for library containing dlopen... " >&6; }
12048 if ${ac_cv_search_dlopen+:} false; then :
12049 $as_echo_n "(cached) " >&6
12050 else
12051 ac_func_search_save_LIBS=$LIBS
12052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12053 /* end confdefs.h. */
12054
12055 /* Override any GCC internal prototype to avoid an error.
12056 Use char because int might match the return type of a GCC
12057 builtin and then its argument prototype would still apply. */
12058 #ifdef __cplusplus
12059 extern "C"
12060 #endif
12061 char dlopen ();
12062 int
12063 main ()
12064 {
12065 return dlopen ();
12066 ;
12067 return 0;
12068 }
12069 _ACEOF
12070 for ac_lib in '' dl; do
12071 if test -z "$ac_lib"; then
12072 ac_res="none required"
12073 else
12074 ac_res=-l$ac_lib
12075 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12076 fi
12077 if ac_fn_c_try_link "$LINENO"; then :
12078 ac_cv_search_dlopen=$ac_res
12079 fi
12080 rm -f core conftest.err conftest.$ac_objext \
12081 conftest$ac_exeext
12082 if ${ac_cv_search_dlopen+:} false; then :
12083 break
12084 fi
12085 done
12086 if ${ac_cv_search_dlopen+:} false; then :
12087
12088 else
12089 ac_cv_search_dlopen=no
12090 fi
12091 rm conftest.$ac_ext
12092 LIBS=$ac_func_search_save_LIBS
12093 fi
12094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
12095 $as_echo "$ac_cv_search_dlopen" >&6; }
12096 ac_res=$ac_cv_search_dlopen
12097 if test "$ac_res" != no; then :
12098 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12099
12100 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
12101
12102 if test "$ac_cv_search_dlopen" != "none required" ; then
12103 LIBADD_DLOPEN="-ldl"
12104 fi
12105 libltdl_cv_lib_dl_dlopen="yes"
12106 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
12107 else
12108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12109 /* end confdefs.h. */
12110 #if HAVE_DLFCN_H
12111 # include <dlfcn.h>
12112 #endif
12113
12114 int
12115 main ()
12116 {
12117 dlopen(0, 0);
12118 ;
12119 return 0;
12120 }
12121 _ACEOF
12122 if ac_fn_c_try_link "$LINENO"; then :
12123
12124 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
12125
12126 libltdl_cv_func_dlopen="yes"
12127 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
12128 else
12129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12130 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12131 if ${ac_cv_lib_svld_dlopen+:} false; then :
12132 $as_echo_n "(cached) " >&6
12133 else
12134 ac_check_lib_save_LIBS=$LIBS
12135 LIBS="-lsvld $LIBS"
12136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12137 /* end confdefs.h. */
12138
12139 /* Override any GCC internal prototype to avoid an error.
12140 Use char because int might match the return type of a GCC
12141 builtin and then its argument prototype would still apply. */
12142 #ifdef __cplusplus
12143 extern "C"
12144 #endif
12145 char dlopen ();
12146 int
12147 main ()
12148 {
12149 return dlopen ();
12150 ;
12151 return 0;
12152 }
12153 _ACEOF
12154 if ac_fn_c_try_link "$LINENO"; then :
12155 ac_cv_lib_svld_dlopen=yes
12156 else
12157 ac_cv_lib_svld_dlopen=no
12158 fi
12159 rm -f core conftest.err conftest.$ac_objext \
12160 conftest$ac_exeext conftest.$ac_ext
12161 LIBS=$ac_check_lib_save_LIBS
12162 fi
12163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12164 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12165 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12166
12167 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
12168
12169 LIBADD_DLOPEN="-lsvld" libltdl_cv_func_dlopen="yes"
12170 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
12171 fi
12172
12173 fi
12174 rm -f core conftest.err conftest.$ac_objext \
12175 conftest$ac_exeext conftest.$ac_ext
12176 fi
12177
12178 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
12179 then
12180 lt_save_LIBS="$LIBS"
12181 LIBS="$LIBS $LIBADD_DLOPEN"
12182 for ac_func in dlerror
12183 do :
12184 ac_fn_c_check_func "$LINENO" "dlerror" "ac_cv_func_dlerror"
12185 if test "x$ac_cv_func_dlerror" = xyes; then :
12186 cat >>confdefs.h <<_ACEOF
12187 #define HAVE_DLERROR 1
12188 _ACEOF
12189
12190 fi
12191 done
12192
12193 LIBS="$lt_save_LIBS"
12194 fi
12195
12196
12197 LIBADD_SHL_LOAD=
12198 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12199 if test "x$ac_cv_func_shl_load" = xyes; then :
12200
12201 $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
12202
12203 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
12204 else
12205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12206 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12207 if ${ac_cv_lib_dld_shl_load+:} 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 shl_load ();
12222 int
12223 main ()
12224 {
12225 return shl_load ();
12226 ;
12227 return 0;
12228 }
12229 _ACEOF
12230 if ac_fn_c_try_link "$LINENO"; then :
12231 ac_cv_lib_dld_shl_load=yes
12232 else
12233 ac_cv_lib_dld_shl_load=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_shl_load" >&5
12240 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12241 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12242
12243 $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
12244
12245 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
12246 LIBADD_SHL_LOAD="-ldld"
12247 fi
12248
12249 fi
12250
12251
12252
12253 case $host_os in
12254 darwin[1567].*)
12255 # We only want this for pre-Mac OS X 10.4.
12256 ac_fn_c_check_func "$LINENO" "_dyld_func_lookup" "ac_cv_func__dyld_func_lookup"
12257 if test "x$ac_cv_func__dyld_func_lookup" = xyes; then :
12258
12259 $as_echo "#define HAVE_DYLD 1" >>confdefs.h
12260
12261 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la"
12262 fi
12263
12264 ;;
12265 beos*)
12266 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la"
12267 ;;
12268 cygwin* | mingw* | os2* | pw32*)
12269 ac_fn_c_check_decl "$LINENO" "cygwin_conv_path" "ac_cv_have_decl_cygwin_conv_path" "#include <sys/cygwin.h>
12270 "
12271 if test "x$ac_cv_have_decl_cygwin_conv_path" = xyes; then :
12272 ac_have_decl=1
12273 else
12274 ac_have_decl=0
12275 fi
12276
12277 cat >>confdefs.h <<_ACEOF
12278 #define HAVE_DECL_CYGWIN_CONV_PATH $ac_have_decl
12279 _ACEOF
12280
12281 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la"
12282 ;;
12283 esac
12284
12285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12286 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12287 if ${ac_cv_lib_dld_dld_link+:} false; then :
12288 $as_echo_n "(cached) " >&6
12289 else
12290 ac_check_lib_save_LIBS=$LIBS
12291 LIBS="-ldld $LIBS"
12292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12293 /* end confdefs.h. */
12294
12295 /* Override any GCC internal prototype to avoid an error.
12296 Use char because int might match the return type of a GCC
12297 builtin and then its argument prototype would still apply. */
12298 #ifdef __cplusplus
12299 extern "C"
12300 #endif
12301 char dld_link ();
12302 int
12303 main ()
12304 {
12305 return dld_link ();
12306 ;
12307 return 0;
12308 }
12309 _ACEOF
12310 if ac_fn_c_try_link "$LINENO"; then :
12311 ac_cv_lib_dld_dld_link=yes
12312 else
12313 ac_cv_lib_dld_dld_link=no
12314 fi
12315 rm -f core conftest.err conftest.$ac_objext \
12316 conftest$ac_exeext conftest.$ac_ext
12317 LIBS=$ac_check_lib_save_LIBS
12318 fi
12319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12320 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12321 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12322
12323 $as_echo "#define HAVE_DLD 1" >>confdefs.h
12324
12325 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la"
12326 fi
12327
12328
12329
12330
12331 LT_DLPREOPEN=
12332 if test -n "$LT_DLLOADERS"
12333 then
12334 for lt_loader in $LT_DLLOADERS; do
12335 LT_DLPREOPEN="$LT_DLPREOPEN-dlpreopen $lt_loader "
12336 done
12337
12338 $as_echo "#define HAVE_LIBDLLOADER 1" >>confdefs.h
12339
12340 fi
12341
12342
12343 LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD"
12344
12345
12346 ac_ext=c
12347 ac_cpp='$CPP $CPPFLAGS'
12348 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12349 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12350 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12351
12352
12353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _ prefix in compiled symbols" >&5
12354 $as_echo_n "checking for _ prefix in compiled symbols... " >&6; }
12355 if ${lt_cv_sys_symbol_underscore+:} false; then :
12356 $as_echo_n "(cached) " >&6
12357 else
12358 lt_cv_sys_symbol_underscore=no
12359 cat > conftest.$ac_ext <<_LT_EOF
12360 void nm_test_func(){}
12361 int main(){nm_test_func;return 0;}
12362 _LT_EOF
12363 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12364 (eval $ac_compile) 2>&5
12365 ac_status=$?
12366 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12367 test $ac_status = 0; }; then
12368 # Now try to grab the symbols.
12369 ac_nlist=conftest.nm
12370 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\""; } >&5
12371 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
12372 ac_status=$?
12373 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12374 test $ac_status = 0; } && test -s "$ac_nlist"; then
12375 # See whether the symbols have a leading underscore.
12376 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
12377 lt_cv_sys_symbol_underscore=yes
12378 else
12379 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
12380 :
12381 else
12382 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
12383 fi
12384 fi
12385 else
12386 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
12387 fi
12388 else
12389 echo "configure: failed program was:" >&5
12390 cat conftest.c >&5
12391 fi
12392 rm -rf conftest*
12393
12394 fi
12395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_symbol_underscore" >&5
12396 $as_echo "$lt_cv_sys_symbol_underscore" >&6; }
12397 sys_symbol_underscore=$lt_cv_sys_symbol_underscore
12398
12399
12400 if test x"$lt_cv_sys_symbol_underscore" = xyes; then
12401 if test x"$libltdl_cv_func_dlopen" = xyes ||
12402 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
12403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have to add an underscore for dlsym" >&5
12404 $as_echo_n "checking whether we have to add an underscore for dlsym... " >&6; }
12405 if ${libltdl_cv_need_uscore+:} false; then :
12406 $as_echo_n "(cached) " >&6
12407 else
12408 libltdl_cv_need_uscore=unknown
12409 save_LIBS="$LIBS"
12410 LIBS="$LIBS $LIBADD_DLOPEN"
12411 if test "$cross_compiling" = yes; then :
12412 libltdl_cv_need_uscore=cross
12413 else
12414 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12415 lt_status=$lt_dlunknown
12416 cat > conftest.$ac_ext <<_LT_EOF
12417 #line $LINENO "configure"
12418 #include "confdefs.h"
12419
12420 #if HAVE_DLFCN_H
12421 #include <dlfcn.h>
12422 #endif
12423
12424 #include <stdio.h>
12425
12426 #ifdef RTLD_GLOBAL
12427 # define LT_DLGLOBAL RTLD_GLOBAL
12428 #else
12429 # ifdef DL_GLOBAL
12430 # define LT_DLGLOBAL DL_GLOBAL
12431 # else
12432 # define LT_DLGLOBAL 0
12433 # endif
12434 #endif
12435
12436 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12437 find out it does not work in some platform. */
12438 #ifndef LT_DLLAZY_OR_NOW
12439 # ifdef RTLD_LAZY
12440 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12441 # else
12442 # ifdef DL_LAZY
12443 # define LT_DLLAZY_OR_NOW DL_LAZY
12444 # else
12445 # ifdef RTLD_NOW
12446 # define LT_DLLAZY_OR_NOW RTLD_NOW
12447 # else
12448 # ifdef DL_NOW
12449 # define LT_DLLAZY_OR_NOW DL_NOW
12450 # else
12451 # define LT_DLLAZY_OR_NOW 0
12452 # endif
12453 # endif
12454 # endif
12455 # endif
12456 #endif
12457
12458 /* When -fvisbility=hidden is used, assume the code has been annotated
12459 correspondingly for the symbols needed. */
12460 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12461 int fnord () __attribute__((visibility("default")));
12462 #endif
12463
12464 int fnord () { return 42; }
12465 int main ()
12466 {
12467 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12468 int status = $lt_dlunknown;
12469
12470 if (self)
12471 {
12472 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12473 else
12474 {
12475 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12476 else puts (dlerror ());
12477 }
12478 /* dlclose (self); */
12479 }
12480 else
12481 puts (dlerror ());
12482
12483 return status;
12484 }
12485 _LT_EOF
12486 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12487 (eval $ac_link) 2>&5
12488 ac_status=$?
12489 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12490 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12491 (./conftest; exit; ) >&5 2>/dev/null
12492 lt_status=$?
12493 case x$lt_status in
12494 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
12495 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
12496 x$lt_dlunknown|x*) ;;
12497 esac
12498 else :
12499 # compilation failed
12500
12501 fi
12502 fi
12503 rm -fr conftest*
12504
12505 LIBS="$save_LIBS"
12506
12507 fi
12508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_need_uscore" >&5
12509 $as_echo "$libltdl_cv_need_uscore" >&6; }
12510 fi
12511 fi
12512
12513 if test x"$libltdl_cv_need_uscore" = xyes; then
12514
12515 $as_echo "#define NEED_USCORE 1" >>confdefs.h
12516
12517 fi
12518
12519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether deplibs are loaded by dlopen" >&5
12520 $as_echo_n "checking whether deplibs are loaded by dlopen... " >&6; }
12521 if ${lt_cv_sys_dlopen_deplibs+:} false; then :
12522 $as_echo_n "(cached) " >&6
12523 else
12524 # PORTME does your system automatically load deplibs for dlopen?
12525 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
12526 # For now, we just catch OSes we know something about -- in the
12527 # future, we'll try test this programmatically.
12528 lt_cv_sys_dlopen_deplibs=unknown
12529 case $host_os in
12530 aix3*|aix4.1.*|aix4.2.*)
12531 # Unknown whether this is true for these versions of AIX, but
12532 # we want this `case' here to explicitly catch those versions.
12533 lt_cv_sys_dlopen_deplibs=unknown
12534 ;;
12535 aix[4-9]*)
12536 lt_cv_sys_dlopen_deplibs=yes
12537 ;;
12538 amigaos*)
12539 case $host_cpu in
12540 powerpc)
12541 lt_cv_sys_dlopen_deplibs=no
12542 ;;
12543 esac
12544 ;;
12545 darwin*)
12546 # Assuming the user has installed a libdl from somewhere, this is true
12547 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
12548 lt_cv_sys_dlopen_deplibs=yes
12549 ;;
12550 freebsd* | dragonfly*)
12551 lt_cv_sys_dlopen_deplibs=yes
12552 ;;
12553 gnu* | linux* | k*bsd*-gnu | kopensolaris*-gnu)
12554 # GNU and its variants, using gnu ld.so (Glibc)
12555 lt_cv_sys_dlopen_deplibs=yes
12556 ;;
12557 hpux10*|hpux11*)
12558 lt_cv_sys_dlopen_deplibs=yes
12559 ;;
12560 interix*)
12561 lt_cv_sys_dlopen_deplibs=yes
12562 ;;
12563 irix[12345]*|irix6.[01]*)
12564 # Catch all versions of IRIX before 6.2, and indicate that we don't
12565 # know how it worked for any of those versions.
12566 lt_cv_sys_dlopen_deplibs=unknown
12567 ;;
12568 irix*)
12569 # The case above catches anything before 6.2, and it's known that
12570 # at 6.2 and later dlopen does load deplibs.
12571 lt_cv_sys_dlopen_deplibs=yes
12572 ;;
12573 netbsd*)
12574 lt_cv_sys_dlopen_deplibs=yes
12575 ;;
12576 openbsd*)
12577 lt_cv_sys_dlopen_deplibs=yes
12578 ;;
12579 osf[1234]*)
12580 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
12581 # it did *not* use an RPATH in a shared library to find objects the
12582 # library depends on, so we explicitly say `no'.
12583 lt_cv_sys_dlopen_deplibs=no
12584 ;;
12585 osf5.0|osf5.0a|osf5.1)
12586 # dlopen *does* load deplibs and with the right loader patch applied
12587 # it even uses RPATH in a shared library to search for shared objects
12588 # that the library depends on, but there's no easy way to know if that
12589 # patch is installed. Since this is the case, all we can really
12590 # say is unknown -- it depends on the patch being installed. If
12591 # it is, this changes to `yes'. Without it, it would be `no'.
12592 lt_cv_sys_dlopen_deplibs=unknown
12593 ;;
12594 osf*)
12595 # the two cases above should catch all versions of osf <= 5.1. Read
12596 # the comments above for what we know about them.
12597 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
12598 # is used to find them so we can finally say `yes'.
12599 lt_cv_sys_dlopen_deplibs=yes
12600 ;;
12601 qnx*)
12602 lt_cv_sys_dlopen_deplibs=yes
12603 ;;
12604 solaris*)
12605 lt_cv_sys_dlopen_deplibs=yes
12606 ;;
12607 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12608 libltdl_cv_sys_dlopen_deplibs=yes
12609 ;;
12610 esac
12611
12612 fi
12613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlopen_deplibs" >&5
12614 $as_echo "$lt_cv_sys_dlopen_deplibs" >&6; }
12615 if test "$lt_cv_sys_dlopen_deplibs" != yes; then
12616
12617 $as_echo "#define LTDL_DLOPEN_DEPLIBS 1" >>confdefs.h
12618
12619 fi
12620
12621 :
12622
12623 for ac_header in argz.h
12624 do :
12625 ac_fn_c_check_header_compile "$LINENO" "argz.h" "ac_cv_header_argz_h" "$ac_includes_default
12626 "
12627 if test "x$ac_cv_header_argz_h" = xyes; then :
12628 cat >>confdefs.h <<_ACEOF
12629 #define HAVE_ARGZ_H 1
12630 _ACEOF
12631
12632 fi
12633
12634 done
12635
12636
12637 ac_fn_c_check_type "$LINENO" "error_t" "ac_cv_type_error_t" "#if defined(HAVE_ARGZ_H)
12638 # include <argz.h>
12639 #endif
12640 "
12641 if test "x$ac_cv_type_error_t" = xyes; then :
12642
12643 cat >>confdefs.h <<_ACEOF
12644 #define HAVE_ERROR_T 1
12645 _ACEOF
12646
12647
12648 else
12649
12650 $as_echo "#define error_t int" >>confdefs.h
12651
12652
12653 $as_echo "#define __error_t_defined 1" >>confdefs.h
12654
12655 fi
12656
12657
12658 ARGZ_H=
12659 for ac_func in argz_add argz_append argz_count argz_create_sep argz_insert \
12660 argz_next argz_stringify
12661 do :
12662 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12663 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12664 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12665 cat >>confdefs.h <<_ACEOF
12666 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12667 _ACEOF
12668
12669 else
12670 ARGZ_H=argz.h;
12671
12672 _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
12673
12674 fi
12675 done
12676
12677
12678 if test -z "$ARGZ_H"; then :
12679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if argz actually works" >&5
12680 $as_echo_n "checking if argz actually works... " >&6; }
12681 if ${lt_cv_sys_argz_works+:} false; then :
12682 $as_echo_n "(cached) " >&6
12683 else
12684 case $host_os in #(
12685 *cygwin*)
12686 lt_cv_sys_argz_works=no
12687 if test "$cross_compiling" != no; then
12688 lt_cv_sys_argz_works="guessing no"
12689 else
12690 lt_sed_extract_leading_digits='s/^\([0-9\.]*\).*/\1/'
12691 save_IFS=$IFS
12692 IFS=-.
12693 set x `uname -r | sed -e "$lt_sed_extract_leading_digits"`
12694 IFS=$save_IFS
12695 lt_os_major=${2-0}
12696 lt_os_minor=${3-0}
12697 lt_os_micro=${4-0}
12698 if test "$lt_os_major" -gt 1 \
12699 || { test "$lt_os_major" -eq 1 \
12700 && { test "$lt_os_minor" -gt 5 \
12701 || { test "$lt_os_minor" -eq 5 \
12702 && test "$lt_os_micro" -gt 24; }; }; }; then
12703 lt_cv_sys_argz_works=yes
12704 fi
12705 fi
12706 ;; #(
12707 *) lt_cv_sys_argz_works=yes ;;
12708 esac
12709 fi
12710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_argz_works" >&5
12711 $as_echo "$lt_cv_sys_argz_works" >&6; }
12712 if test "$lt_cv_sys_argz_works" = yes; then :
12713
12714 $as_echo "#define HAVE_WORKING_ARGZ 1" >>confdefs.h
12715
12716 else
12717 ARGZ_H=argz.h
12718
12719
12720 _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
12721
12722 fi
12723 fi
12724
12725
12726
12727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libtool supports -dlopen/-dlpreopen" >&5
12728 $as_echo_n "checking whether libtool supports -dlopen/-dlpreopen... " >&6; }
12729 if ${libltdl_cv_preloaded_symbols+:} false; then :
12730 $as_echo_n "(cached) " >&6
12731 else
12732 if test -n "$lt_cv_sys_global_symbol_pipe"; then
12733 libltdl_cv_preloaded_symbols=yes
12734 else
12735 libltdl_cv_preloaded_symbols=no
12736 fi
12737
12738 fi
12739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_preloaded_symbols" >&5
12740 $as_echo "$libltdl_cv_preloaded_symbols" >&6; }
12741 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
12742
12743 $as_echo "#define HAVE_PRELOADED_SYMBOLS 1" >>confdefs.h
12744
12745 fi
12746
12747 # Set options
12748
12749
12750
12751
12752
12753
12754
12755
12756
12757
12758
12759 # Check whether --with-included_ltdl was given.
12760 if test "${with_included_ltdl+set}" = set; then :
12761 withval=$with_included_ltdl;
12762 fi
12763
12764
12765 if test "x$with_included_ltdl" != xyes; then
12766 # We are not being forced to use the included libltdl sources, so
12767 # decide whether there is a useful installed version we can use.
12768 ac_fn_c_check_header_compile "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default
12769
12770 "
12771 if test "x$ac_cv_header_ltdl_h" = xyes; then :
12772 ac_fn_c_check_decl "$LINENO" "lt_dlinterface_register" "ac_cv_have_decl_lt_dlinterface_register" "$ac_includes_default
12773 #include <ltdl.h>
12774 "
12775 if test "x$ac_cv_have_decl_lt_dlinterface_register" = xyes; then :
12776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dladvise_preload in -lltdl" >&5
12777 $as_echo_n "checking for lt_dladvise_preload in -lltdl... " >&6; }
12778 if ${ac_cv_lib_ltdl_lt_dladvise_preload+:} false; then :
12779 $as_echo_n "(cached) " >&6
12780 else
12781 ac_check_lib_save_LIBS=$LIBS
12782 LIBS="-lltdl $LIBS"
12783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12784 /* end confdefs.h. */
12785
12786 /* Override any GCC internal prototype to avoid an error.
12787 Use char because int might match the return type of a GCC
12788 builtin and then its argument prototype would still apply. */
12789 #ifdef __cplusplus
12790 extern "C"
12791 #endif
12792 char lt_dladvise_preload ();
12793 int
12794 main ()
12795 {
12796 return lt_dladvise_preload ();
12797 ;
12798 return 0;
12799 }
12800 _ACEOF
12801 if ac_fn_c_try_link "$LINENO"; then :
12802 ac_cv_lib_ltdl_lt_dladvise_preload=yes
12803 else
12804 ac_cv_lib_ltdl_lt_dladvise_preload=no
12805 fi
12806 rm -f core conftest.err conftest.$ac_objext \
12807 conftest$ac_exeext conftest.$ac_ext
12808 LIBS=$ac_check_lib_save_LIBS
12809 fi
12810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dladvise_preload" >&5
12811 $as_echo "$ac_cv_lib_ltdl_lt_dladvise_preload" >&6; }
12812 if test "x$ac_cv_lib_ltdl_lt_dladvise_preload" = xyes; then :
12813 with_included_ltdl=no
12814 else
12815 with_included_ltdl=yes
12816 fi
12817
12818 else
12819 with_included_ltdl=yes
12820 fi
12821
12822 else
12823 with_included_ltdl=yes
12824 fi
12825
12826
12827 fi
12828
12829
12830
12831
12832 # Check whether --with-ltdl_include was given.
12833 if test "${with_ltdl_include+set}" = set; then :
12834 withval=$with_ltdl_include;
12835 fi
12836
12837
12838 if test -n "$with_ltdl_include"; then
12839 if test -f "$with_ltdl_include/ltdl.h"; then :
12840 else
12841 as_fn_error $? "invalid ltdl include directory: \`$with_ltdl_include'" "$LINENO" 5
12842 fi
12843 else
12844 with_ltdl_include=no
12845 fi
12846
12847
12848 # Check whether --with-ltdl_lib was given.
12849 if test "${with_ltdl_lib+set}" = set; then :
12850 withval=$with_ltdl_lib;
12851 fi
12852
12853
12854 if test -n "$with_ltdl_lib"; then
12855 if test -f "$with_ltdl_lib/libltdl.la"; then :
12856 else
12857 as_fn_error $? "invalid ltdl library directory: \`$with_ltdl_lib'" "$LINENO" 5
12858 fi
12859 else
12860 with_ltdl_lib=no
12861 fi
12862
12863 case ,$with_included_ltdl,$with_ltdl_include,$with_ltdl_lib, in
12864 ,yes,no,no,)
12865 case $enable_ltdl_convenience in
12866 no) as_fn_error $? "this package needs a convenience libltdl" "$LINENO" 5 ;;
12867 "") enable_ltdl_convenience=yes
12868 ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
12869 esac
12870 LIBLTDL='${top_build_prefix}'"${lt_ltdl_dir+$lt_ltdl_dir/}libltdlc.la"
12871 LTDLDEPS=$LIBLTDL
12872 LTDLINCL='-I${top_srcdir}'"${lt_ltdl_dir+/$lt_ltdl_dir}"
12873
12874
12875
12876
12877
12878 # For backwards non-gettext consistent compatibility...
12879 INCLTDL="$LTDLINCL"
12880
12881
12882 ;;
12883 ,no,no,no,)
12884 # If the included ltdl is not to be used, then use the
12885 # preinstalled libltdl we found.
12886
12887 $as_echo "#define HAVE_LTDL 1" >>confdefs.h
12888
12889 LIBLTDL=-lltdl
12890 LTDLDEPS=
12891 LTDLINCL=
12892 ;;
12893 ,no*,no,*)
12894 as_fn_error $? "\`--with-ltdl-include' and \`--with-ltdl-lib' options must be used together" "$LINENO" 5
12895 ;;
12896 *) with_included_ltdl=no
12897 LIBLTDL="-L$with_ltdl_lib -lltdl"
12898 LTDLDEPS=
12899 LTDLINCL="-I$with_ltdl_include"
12900 ;;
12901 esac
12902 INCLTDL="$LTDLINCL"
12903
12904 # Report our decision...
12905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl headers" >&5
12906 $as_echo_n "checking where to find libltdl headers... " >&6; }
12907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LTDLINCL" >&5
12908 $as_echo "$LTDLINCL" >&6; }
12909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl library" >&5
12910 $as_echo_n "checking where to find libltdl library... " >&6; }
12911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBLTDL" >&5
12912 $as_echo "$LIBLTDL" >&6; }
12913
12914
12915
12916 # Check whether --enable-ltdl-install was given.
12917 if test "${enable_ltdl_install+set}" = set; then :
12918 enableval=$enable_ltdl_install;
12919 fi
12920
12921
12922 case ,${enable_ltdl_install},${enable_ltdl_convenience} in
12923 *yes*) ;;
12924 *) enable_ltdl_convenience=yes ;;
12925 esac
12926
12927 if test x"${enable_ltdl_install-no}" != xno; then
12928 INSTALL_LTDL_TRUE=
12929 INSTALL_LTDL_FALSE='#'
12930 else
12931 INSTALL_LTDL_TRUE='#'
12932 INSTALL_LTDL_FALSE=
12933 fi
12934
12935 if test x"${enable_ltdl_convenience-no}" != xno; then
12936 CONVENIENCE_LTDL_TRUE=
12937 CONVENIENCE_LTDL_FALSE='#'
12938 else
12939 CONVENIENCE_LTDL_TRUE='#'
12940 CONVENIENCE_LTDL_FALSE=
12941 fi
12942
12943
12944
12945
12946
12947
12948 # In order that ltdl.c can compile, find out the first AC_CONFIG_HEADERS
12949 # the user used. This is so that ltdl.h can pick up the parent projects
12950 # config.h file, The first file in AC_CONFIG_HEADERS must contain the
12951 # definitions required by ltdl.c.
12952 # FIXME: Remove use of undocumented AC_LIST_HEADERS (2.59 compatibility).
12953
12954
12955
12956 for ac_header in unistd.h dl.h sys/dl.h dld.h mach-o/dyld.h dirent.h
12957 do :
12958 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12959 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
12960 "
12961 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12962 cat >>confdefs.h <<_ACEOF
12963 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12964 _ACEOF
12965
12966 fi
12967
12968 done
12969
12970
12971 for ac_func in closedir opendir readdir
12972 do :
12973 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12974 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12975 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12976 cat >>confdefs.h <<_ACEOF
12977 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12978 _ACEOF
12979
12980 else
12981
12982
12983 _LT_LIBOBJS="$_LT_LIBOBJS lt__dirent.$ac_objext"
12984
12985 fi
12986 done
12987
12988 for ac_func in strlcat strlcpy
12989 do :
12990 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12991 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12992 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12993 cat >>confdefs.h <<_ACEOF
12994 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12995 _ACEOF
12996
12997 else
12998
12999
13000 _LT_LIBOBJS="$_LT_LIBOBJS lt__strl.$ac_objext"
13001
13002 fi
13003 done
13004
13005
13006
13007 cat >>confdefs.h <<_ACEOF
13008 #define LT_LIBEXT "$libext"
13009 _ACEOF
13010
13011
13012 name=
13013 eval "lt_libprefix=\"$libname_spec\""
13014
13015 cat >>confdefs.h <<_ACEOF
13016 #define LT_LIBPREFIX "$lt_libprefix"
13017 _ACEOF
13018
13019
13020 name=ltdl
13021 eval "LTDLOPEN=\"$libname_spec\""
13022
13023
13024
13025
13026
13027
13028
13029
13030 # Only expand once:
13031
13032
13033 LIBTOOL="$LIBTOOL --silent"
13034
13035 # Checks for libraries.
13036
13037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
13038 $as_echo_n "checking for library containing socket... " >&6; }
13039 if ${ac_cv_search_socket+:} false; then :
13040 $as_echo_n "(cached) " >&6
13041 else
13042 ac_func_search_save_LIBS=$LIBS
13043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13044 /* end confdefs.h. */
13045
13046 /* Override any GCC internal prototype to avoid an error.
13047 Use char because int might match the return type of a GCC
13048 builtin and then its argument prototype would still apply. */
13049 #ifdef __cplusplus
13050 extern "C"
13051 #endif
13052 char socket ();
13053 int
13054 main ()
13055 {
13056 return socket ();
13057 ;
13058 return 0;
13059 }
13060 _ACEOF
13061 for ac_lib in '' socket; do
13062 if test -z "$ac_lib"; then
13063 ac_res="none required"
13064 else
13065 ac_res=-l$ac_lib
13066 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13067 fi
13068 if ac_fn_c_try_link "$LINENO"; then :
13069 ac_cv_search_socket=$ac_res
13070 fi
13071 rm -f core conftest.err conftest.$ac_objext \
13072 conftest$ac_exeext
13073 if ${ac_cv_search_socket+:} false; then :
13074 break
13075 fi
13076 done
13077 if ${ac_cv_search_socket+:} false; then :
13078
13079 else
13080 ac_cv_search_socket=no
13081 fi
13082 rm conftest.$ac_ext
13083 LIBS=$ac_func_search_save_LIBS
13084 fi
13085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
13086 $as_echo "$ac_cv_search_socket" >&6; }
13087 ac_res=$ac_cv_search_socket
13088 if test "$ac_res" != no; then :
13089 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13090
13091 else
13092 as_fn_error $? "socket library not found" "$LINENO" 5
13093 fi
13094
13095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_ntoa" >&5
13096 $as_echo_n "checking for library containing inet_ntoa... " >&6; }
13097 if ${ac_cv_search_inet_ntoa+:} false; then :
13098 $as_echo_n "(cached) " >&6
13099 else
13100 ac_func_search_save_LIBS=$LIBS
13101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13102 /* end confdefs.h. */
13103
13104 /* Override any GCC internal prototype to avoid an error.
13105 Use char because int might match the return type of a GCC
13106 builtin and then its argument prototype would still apply. */
13107 #ifdef __cplusplus
13108 extern "C"
13109 #endif
13110 char inet_ntoa ();
13111 int
13112 main ()
13113 {
13114 return inet_ntoa ();
13115 ;
13116 return 0;
13117 }
13118 _ACEOF
13119 for ac_lib in '' nsl; do
13120 if test -z "$ac_lib"; then
13121 ac_res="none required"
13122 else
13123 ac_res=-l$ac_lib
13124 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13125 fi
13126 if ac_fn_c_try_link "$LINENO"; then :
13127 ac_cv_search_inet_ntoa=$ac_res
13128 fi
13129 rm -f core conftest.err conftest.$ac_objext \
13130 conftest$ac_exeext
13131 if ${ac_cv_search_inet_ntoa+:} false; then :
13132 break
13133 fi
13134 done
13135 if ${ac_cv_search_inet_ntoa+:} false; then :
13136
13137 else
13138 ac_cv_search_inet_ntoa=no
13139 fi
13140 rm conftest.$ac_ext
13141 LIBS=$ac_func_search_save_LIBS
13142 fi
13143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_ntoa" >&5
13144 $as_echo "$ac_cv_search_inet_ntoa" >&6; }
13145 ac_res=$ac_cv_search_inet_ntoa
13146 if test "$ac_res" != no; then :
13147 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13148
13149 fi
13150
13151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_aton" >&5
13152 $as_echo_n "checking for library containing inet_aton... " >&6; }
13153 if ${ac_cv_search_inet_aton+:} false; then :
13154 $as_echo_n "(cached) " >&6
13155 else
13156 ac_func_search_save_LIBS=$LIBS
13157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13158 /* end confdefs.h. */
13159
13160 /* Override any GCC internal prototype to avoid an error.
13161 Use char because int might match the return type of a GCC
13162 builtin and then its argument prototype would still apply. */
13163 #ifdef __cplusplus
13164 extern "C"
13165 #endif
13166 char inet_aton ();
13167 int
13168 main ()
13169 {
13170 return inet_aton ();
13171 ;
13172 return 0;
13173 }
13174 _ACEOF
13175 for ac_lib in '' resolv; do
13176 if test -z "$ac_lib"; then
13177 ac_res="none required"
13178 else
13179 ac_res=-l$ac_lib
13180 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13181 fi
13182 if ac_fn_c_try_link "$LINENO"; then :
13183 ac_cv_search_inet_aton=$ac_res
13184 fi
13185 rm -f core conftest.err conftest.$ac_objext \
13186 conftest$ac_exeext
13187 if ${ac_cv_search_inet_aton+:} false; then :
13188 break
13189 fi
13190 done
13191 if ${ac_cv_search_inet_aton+:} false; then :
13192
13193 else
13194 ac_cv_search_inet_aton=no
13195 fi
13196 rm conftest.$ac_ext
13197 LIBS=$ac_func_search_save_LIBS
13198 fi
13199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_aton" >&5
13200 $as_echo "$ac_cv_search_inet_aton" >&6; }
13201 ac_res=$ac_cv_search_inet_aton
13202 if test "$ac_res" != no; then :
13203 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13204
13205 fi
13206
13207 for ac_func in inet_aton inet_ntop inet_pton
13208 do :
13209 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13210 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13211 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13212 cat >>confdefs.h <<_ACEOF
13213 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13214 _ACEOF
13215
13216 fi
13217 done
13218
13219 ac_fn_c_check_type "$LINENO" "struct sockaddr_in" "ac_cv_type_struct_sockaddr_in" "#include <sys/types.h>
13220 #include <sys/socket.h>
13221 #include <netdb.h>
13222
13223 "
13224 if test "x$ac_cv_type_struct_sockaddr_in" = xyes; then :
13225
13226 cat >>confdefs.h <<_ACEOF
13227 #define HAVE_STRUCT_SOCKADDR_IN 1
13228 _ACEOF
13229
13230
13231 fi
13232 ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "#include <sys/types.h>
13233 #include <sys/socket.h>
13234 #include <netdb.h>
13235
13236 "
13237 if test "x$ac_cv_type_struct_sockaddr_storage" = xyes; then :
13238
13239 cat >>confdefs.h <<_ACEOF
13240 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
13241 _ACEOF
13242
13243
13244 fi
13245 ac_fn_c_check_type "$LINENO" "struct addrinfo" "ac_cv_type_struct_addrinfo" "#include <sys/types.h>
13246 #include <sys/socket.h>
13247 #include <netdb.h>
13248
13249 "
13250 if test "x$ac_cv_type_struct_addrinfo" = xyes; then :
13251
13252 cat >>confdefs.h <<_ACEOF
13253 #define HAVE_STRUCT_ADDRINFO 1
13254 _ACEOF
13255
13256
13257 fi
13258
13259 ac_fn_c_check_member "$LINENO" "struct sockaddr_in" "sin_len" "ac_cv_member_struct_sockaddr_in_sin_len" "#include <sys/types.h>
13260 <sys/socket.h>
13261 "
13262 if test "x$ac_cv_member_struct_sockaddr_in_sin_len" = xyes; then :
13263
13264 cat >>confdefs.h <<_ACEOF
13265 #define HAVE_STRUCT_SOCKADDR_IN_SIN_LEN 1
13266 _ACEOF
13267
13268
13269 fi
13270
13271
13272
13273 ac_fn_c_check_type "$LINENO" "struct sockaddr_in6" "ac_cv_type_struct_sockaddr_in6" "#include <netinet/in.h>
13274 "
13275 if test "x$ac_cv_type_struct_sockaddr_in6" = xyes; then :
13276
13277 $as_echo "#define IPV6 1" >>confdefs.h
13278
13279 fi
13280
13281
13282
13283 # Checks for typedefs, structures, and compiler characteristics.
13284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
13285 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
13286 if ${ac_cv_c_bigendian+:} false; then :
13287 $as_echo_n "(cached) " >&6
13288 else
13289 ac_cv_c_bigendian=unknown
13290 # See if we're dealing with a universal compiler.
13291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13292 /* end confdefs.h. */
13293 #ifndef __APPLE_CC__
13294 not a universal capable compiler
13295 #endif
13296 typedef int dummy;
13297
13298 _ACEOF
13299 if ac_fn_c_try_compile "$LINENO"; then :
13300
13301 # Check for potential -arch flags. It is not universal unless
13302 # there are at least two -arch flags with different values.
13303 ac_arch=
13304 ac_prev=
13305 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
13306 if test -n "$ac_prev"; then
13307 case $ac_word in
13308 i?86 | x86_64 | ppc | ppc64)
13309 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
13310 ac_arch=$ac_word
13311 else
13312 ac_cv_c_bigendian=universal
13313 break
13314 fi
13315 ;;
13316 esac
13317 ac_prev=
13318 elif test "x$ac_word" = "x-arch"; then
13319 ac_prev=arch
13320 fi
13321 done
13322 fi
13323 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13324 if test $ac_cv_c_bigendian = unknown; then
13325 # See if sys/param.h defines the BYTE_ORDER macro.
13326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13327 /* end confdefs.h. */
13328 #include <sys/types.h>
13329 #include <sys/param.h>
13330
13331 int
13332 main ()
13333 {
13334 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
13335 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
13336 && LITTLE_ENDIAN)
13337 bogus endian macros
13338 #endif
13339
13340 ;
13341 return 0;
13342 }
13343 _ACEOF
13344 if ac_fn_c_try_compile "$LINENO"; then :
13345 # It does; now see whether it defined to BIG_ENDIAN or not.
13346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13347 /* end confdefs.h. */
13348 #include <sys/types.h>
13349 #include <sys/param.h>
13350
13351 int
13352 main ()
13353 {
13354 #if BYTE_ORDER != BIG_ENDIAN
13355 not big endian
13356 #endif
13357
13358 ;
13359 return 0;
13360 }
13361 _ACEOF
13362 if ac_fn_c_try_compile "$LINENO"; then :
13363 ac_cv_c_bigendian=yes
13364 else
13365 ac_cv_c_bigendian=no
13366 fi
13367 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13368 fi
13369 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13370 fi
13371 if test $ac_cv_c_bigendian = unknown; then
13372 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
13373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13374 /* end confdefs.h. */
13375 #include <limits.h>
13376
13377 int
13378 main ()
13379 {
13380 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
13381 bogus endian macros
13382 #endif
13383
13384 ;
13385 return 0;
13386 }
13387 _ACEOF
13388 if ac_fn_c_try_compile "$LINENO"; then :
13389 # It does; now see whether it defined to _BIG_ENDIAN or not.
13390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13391 /* end confdefs.h. */
13392 #include <limits.h>
13393
13394 int
13395 main ()
13396 {
13397 #ifndef _BIG_ENDIAN
13398 not big endian
13399 #endif
13400
13401 ;
13402 return 0;
13403 }
13404 _ACEOF
13405 if ac_fn_c_try_compile "$LINENO"; then :
13406 ac_cv_c_bigendian=yes
13407 else
13408 ac_cv_c_bigendian=no
13409 fi
13410 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13411 fi
13412 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13413 fi
13414 if test $ac_cv_c_bigendian = unknown; then
13415 # Compile a test program.
13416 if test "$cross_compiling" = yes; then :
13417 # Try to guess by grepping values from an object file.
13418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13419 /* end confdefs.h. */
13420 short int ascii_mm[] =
13421 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
13422 short int ascii_ii[] =
13423 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
13424 int use_ascii (int i) {
13425 return ascii_mm[i] + ascii_ii[i];
13426 }
13427 short int ebcdic_ii[] =
13428 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
13429 short int ebcdic_mm[] =
13430 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
13431 int use_ebcdic (int i) {
13432 return ebcdic_mm[i] + ebcdic_ii[i];
13433 }
13434 extern int foo;
13435
13436 int
13437 main ()
13438 {
13439 return use_ascii (foo) == use_ebcdic (foo);
13440 ;
13441 return 0;
13442 }
13443 _ACEOF
13444 if ac_fn_c_try_compile "$LINENO"; then :
13445 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
13446 ac_cv_c_bigendian=yes
13447 fi
13448 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
13449 if test "$ac_cv_c_bigendian" = unknown; then
13450 ac_cv_c_bigendian=no
13451 else
13452 # finding both strings is unlikely to happen, but who knows?
13453 ac_cv_c_bigendian=unknown
13454 fi
13455 fi
13456 fi
13457 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13458 else
13459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13460 /* end confdefs.h. */
13461 $ac_includes_default
13462 int
13463 main ()
13464 {
13465
13466 /* Are we little or big endian? From Harbison&Steele. */
13467 union
13468 {
13469 long int l;
13470 char c[sizeof (long int)];
13471 } u;
13472 u.l = 1;
13473 return u.c[sizeof (long int) - 1] == 1;
13474
13475 ;
13476 return 0;
13477 }
13478 _ACEOF
13479 if ac_fn_c_try_run "$LINENO"; then :
13480 ac_cv_c_bigendian=no
13481 else
13482 ac_cv_c_bigendian=yes
13483 fi
13484 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13485 conftest.$ac_objext conftest.beam conftest.$ac_ext
13486 fi
13487
13488 fi
13489 fi
13490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
13491 $as_echo "$ac_cv_c_bigendian" >&6; }
13492 case $ac_cv_c_bigendian in #(
13493 yes)
13494 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
13495 ;; #(
13496 no)
13497 ;; #(
13498 universal)
13499
13500 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
13501
13502 ;; #(
13503 *)
13504 as_fn_error $? "unknown endianness
13505 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
13506 esac
13507
13508
13509 # Checks for library functions.
13510
13511
13512
13513 for ac_func in $ac_func_list
13514 do :
13515 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13516 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13517 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13518 cat >>confdefs.h <<_ACEOF
13519 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13520 _ACEOF
13521
13522 fi
13523 done
13524
13525
13526
13527
13528
13529
13530
13531
13532
13533
13534
13535
13536
13537 # Checks for header files.
13538
13539
13540
13541 for ac_header in $ac_header_list
13542 do :
13543 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13544 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
13545 "
13546 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13547 cat >>confdefs.h <<_ACEOF
13548 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13549 _ACEOF
13550
13551 fi
13552
13553 done
13554
13555
13556
13557
13558
13559
13560
13561
13562
13563
13564
13565
13566
13567
13568
13569
13570
13571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crypt" >&5
13572 $as_echo_n "checking for library containing crypt... " >&6; }
13573 if ${ac_cv_search_crypt+:} false; then :
13574 $as_echo_n "(cached) " >&6
13575 else
13576 ac_func_search_save_LIBS=$LIBS
13577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13578 /* end confdefs.h. */
13579
13580 /* Override any GCC internal prototype to avoid an error.
13581 Use char because int might match the return type of a GCC
13582 builtin and then its argument prototype would still apply. */
13583 #ifdef __cplusplus
13584 extern "C"
13585 #endif
13586 char crypt ();
13587 int
13588 main ()
13589 {
13590 return crypt ();
13591 ;
13592 return 0;
13593 }
13594 _ACEOF
13595 for ac_lib in '' crypt; do
13596 if test -z "$ac_lib"; then
13597 ac_res="none required"
13598 else
13599 ac_res=-l$ac_lib
13600 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13601 fi
13602 if ac_fn_c_try_link "$LINENO"; then :
13603 ac_cv_search_crypt=$ac_res
13604 fi
13605 rm -f core conftest.err conftest.$ac_objext \
13606 conftest$ac_exeext
13607 if ${ac_cv_search_crypt+:} false; then :
13608 break
13609 fi
13610 done
13611 if ${ac_cv_search_crypt+:} false; then :
13612
13613 else
13614 ac_cv_search_crypt=no
13615 fi
13616 rm conftest.$ac_ext
13617 LIBS=$ac_func_search_save_LIBS
13618 fi
13619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypt" >&5
13620 $as_echo "$ac_cv_search_crypt" >&6; }
13621 ac_res=$ac_cv_search_crypt
13622 if test "$ac_res" != no; then :
13623 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13624
13625 fi
13626
13627
13628 # Check whether --enable-libpcre was given.
13629 if test "${enable_libpcre+set}" = set; then :
13630 enableval=$enable_libpcre;
13631 else
13632 ac_fn_c_check_header_mongrel "$LINENO" "pcre.h" "ac_cv_header_pcre_h" "$ac_includes_default"
13633 if test "x$ac_cv_header_pcre_h" = xyes; then :
13634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pcre_study" >&5
13635 $as_echo_n "checking for library containing pcre_study... " >&6; }
13636 if ${ac_cv_search_pcre_study+:} false; then :
13637 $as_echo_n "(cached) " >&6
13638 else
13639 ac_func_search_save_LIBS=$LIBS
13640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13641 /* end confdefs.h. */
13642
13643 /* Override any GCC internal prototype to avoid an error.
13644 Use char because int might match the return type of a GCC
13645 builtin and then its argument prototype would still apply. */
13646 #ifdef __cplusplus
13647 extern "C"
13648 #endif
13649 char pcre_study ();
13650 int
13651 main ()
13652 {
13653 return pcre_study ();
13654 ;
13655 return 0;
13656 }
13657 _ACEOF
13658 for ac_lib in '' pcre; do
13659 if test -z "$ac_lib"; then
13660 ac_res="none required"
13661 else
13662 ac_res=-l$ac_lib
13663 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13664 fi
13665 if ac_fn_c_try_link "$LINENO"; then :
13666 ac_cv_search_pcre_study=$ac_res
13667 fi
13668 rm -f core conftest.err conftest.$ac_objext \
13669 conftest$ac_exeext
13670 if ${ac_cv_search_pcre_study+:} false; then :
13671 break
13672 fi
13673 done
13674 if ${ac_cv_search_pcre_study+:} false; then :
13675
13676 else
13677 ac_cv_search_pcre_study=no
13678 fi
13679 rm conftest.$ac_ext
13680 LIBS=$ac_func_search_save_LIBS
13681 fi
13682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pcre_study" >&5
13683 $as_echo "$ac_cv_search_pcre_study" >&6; }
13684 ac_res=$ac_cv_search_pcre_study
13685 if test "$ac_res" != no; then :
13686 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13687
13688 $as_echo "#define HAVE_LIBPCRE 1" >>confdefs.h
13689
13690 fi
13691
13692 fi
13693
13694
13695 fi
13696
13697
13698 # Check whether --enable-openssl was given.
13699 if test "${enable_openssl+set}" = set; then :
13700 enableval=$enable_openssl; cf_enable_openssl=$enableval
13701 else
13702 cf_enable_openssl="auto"
13703 fi
13704
13705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL" >&5
13706 $as_echo_n "checking for OpenSSL... " >&6; }
13707 if test "$cf_enable_openssl" != "no"; then
13708 cf_openssl_basedir=""
13709 if test "$cf_enable_openssl" != "auto" &&
13710 test "$cf_enable_openssl" != "yes"; then
13711 cf_openssl_basedir="${cf_enable_openssl}"
13712 else
13713 for dirs in /usr/local/ssl /usr/pkg /usr/local /usr/lib /usr/lib/ssl\
13714 /opt /opt/openssl /usr/local/openssl; do
13715 if test -f "${dirs}/include/openssl/opensslv.h"; then
13716 cf_openssl_basedir="${dirs}"
13717 break
13718 fi
13719 done
13720 unset dirs
13721 fi
13722
13723 if test ! -z "$cf_openssl_basedir"; then
13724 if test -f "${cf_openssl_basedir}/include/openssl/opensslv.h"; then
13725 CPPFLAGS="-I${cf_openssl_basedir}/include $CPPFLAGS"
13726 LDFLAGS="-L${cf_openssl_basedir}/lib $LDFLAGS"
13727 else
13728 cf_openssl_basedir=""
13729 fi
13730 else
13731 if test -f "/usr/include/openssl/opensslv.h"; then
13732 cf_openssl_basedir="/usr"
13733 fi
13734 fi
13735
13736 if test ! -z "$cf_openssl_basedir"; then
13737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cf_openssl_basedir" >&5
13738 $as_echo "$cf_openssl_basedir" >&6; }
13739 cf_enable_openssl="yes"
13740 else
13741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found. Please check your path." >&5
13742 $as_echo "not found. Please check your path." >&6; }
13743 cf_enable_openssl="no"
13744 fi
13745 unset cf_openssl_basedir
13746 else
13747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
13748 $as_echo "disabled" >&6; }
13749 fi
13750
13751 if test "$cf_enable_openssl" != "no"; then :
13752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL 0.9.8 or above" >&5
13753 $as_echo_n "checking for OpenSSL 0.9.8 or above... " >&6; }
13754 if test "$cross_compiling" = yes; then :
13755 cf_openssl_version_ok=no
13756 else
13757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13758 /* end confdefs.h. */
13759
13760
13761 #include <openssl/opensslv.h>
13762 #include <stdlib.h>
13763 int
13764 main ()
13765 {
13766 exit(!(OPENSSL_VERSION_NUMBER >= 0x00908000));
13767 ;
13768 return 0;
13769 }
13770 _ACEOF
13771 if ac_fn_c_try_run "$LINENO"; then :
13772 cf_openssl_version_ok=yes
13773 else
13774 cf_openssl_version_ok=no
13775 fi
13776 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13777 conftest.$ac_objext conftest.beam conftest.$ac_ext
13778 fi
13779
13780
13781 if test "$cf_openssl_version_ok" = "yes"; then :
13782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
13783 $as_echo "found" >&6; }
13784
13785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_connect in -lssl" >&5
13786 $as_echo_n "checking for SSL_connect in -lssl... " >&6; }
13787 if ${ac_cv_lib_ssl_SSL_connect+:} false; then :
13788 $as_echo_n "(cached) " >&6
13789 else
13790 ac_check_lib_save_LIBS=$LIBS
13791 LIBS="-lssl $LIBS"
13792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13793 /* end confdefs.h. */
13794
13795 /* Override any GCC internal prototype to avoid an error.
13796 Use char because int might match the return type of a GCC
13797 builtin and then its argument prototype would still apply. */
13798 #ifdef __cplusplus
13799 extern "C"
13800 #endif
13801 char SSL_connect ();
13802 int
13803 main ()
13804 {
13805 return SSL_connect ();
13806 ;
13807 return 0;
13808 }
13809 _ACEOF
13810 if ac_fn_c_try_link "$LINENO"; then :
13811 ac_cv_lib_ssl_SSL_connect=yes
13812 else
13813 ac_cv_lib_ssl_SSL_connect=no
13814 fi
13815 rm -f core conftest.err conftest.$ac_objext \
13816 conftest$ac_exeext conftest.$ac_ext
13817 LIBS=$ac_check_lib_save_LIBS
13818 fi
13819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_connect" >&5
13820 $as_echo "$ac_cv_lib_ssl_SSL_connect" >&6; }
13821 if test "x$ac_cv_lib_ssl_SSL_connect" = xyes; then :
13822 cat >>confdefs.h <<_ACEOF
13823 #define HAVE_LIBSSL 1
13824 _ACEOF
13825
13826 LIBS="-lssl $LIBS"
13827
13828 fi
13829
13830 if test "$ac_cv_lib_ssl_SSL_connect" = "yes"; then :
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 fi
13877
13878 else
13879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - OpenSSL support disabled" >&5
13880 $as_echo "no - OpenSSL support disabled" >&6; }
13881 cf_enable_openssl="no"
13882 fi
13883 fi
13884
13885 if test "$ac_cv_lib_crypto_RSA_free" = yes; then
13886 ENABLE_SSL_TRUE=
13887 ENABLE_SSL_FALSE='#'
13888 else
13889 ENABLE_SSL_TRUE='#'
13890 ENABLE_SSL_FALSE=
13891 fi
13892
13893
13894
13895 # Check whether --enable-assert was given.
13896 if test "${enable_assert+set}" = set; then :
13897 enableval=$enable_assert; assert=$enableval
13898 else
13899 assert=no
13900 fi
13901
13902
13903 if test "$assert" = "no"; then :
13904
13905 $as_echo "#define NDEBUG 1" >>confdefs.h
13906
13907 fi
13908
13909
13910 # Check whether --enable-small-net was given.
13911 if test "${enable_small_net+set}" = set; then :
13912 enableval=$enable_small_net; small_net=$enableval
13913 else
13914 small_net=no
13915 fi
13916
13917
13918 if test "$small_net" = "yes"; then :
13919
13920
13921 $as_echo "#define NICKNAMEHISTORYLENGTH 2048" >>confdefs.h
13922
13923
13924 $as_echo "#define CHANNEL_HEAP_SIZE 256" >>confdefs.h
13925
13926
13927 $as_echo "#define BAN_HEAP_SIZE 128" >>confdefs.h
13928
13929
13930 $as_echo "#define CLIENT_HEAP_SIZE 256" >>confdefs.h
13931
13932
13933 $as_echo "#define LCLIENT_HEAP_SIZE 128" >>confdefs.h
13934
13935
13936 $as_echo "#define DNODE_HEAP_SIZE 256" >>confdefs.h
13937
13938
13939 $as_echo "#define TOPIC_HEAP_SIZE 256" >>confdefs.h
13940
13941
13942 $as_echo "#define DBUF_HEAP_SIZE 64" >>confdefs.h
13943
13944
13945 $as_echo "#define AUTH_HEAP_SIZE 128" >>confdefs.h
13946
13947
13948 $as_echo "#define DNS_HEAP_SIZE 128" >>confdefs.h
13949
13950 else
13951
13952
13953
13954 $as_echo "#define NICKNAMEHISTORYLENGTH 16384" >>confdefs.h
13955
13956
13957 $as_echo "#define CHANNEL_HEAP_SIZE 1024" >>confdefs.h
13958
13959
13960 $as_echo "#define BAN_HEAP_SIZE 1024" >>confdefs.h
13961
13962
13963 $as_echo "#define CLIENT_HEAP_SIZE 1024" >>confdefs.h
13964
13965
13966 $as_echo "#define LCLIENT_HEAP_SIZE 512" >>confdefs.h
13967
13968
13969 $as_echo "#define DNODE_HEAP_SIZE 1024" >>confdefs.h
13970
13971
13972 $as_echo "#define TOPIC_HEAP_SIZE 1024" >>confdefs.h
13973
13974
13975 $as_echo "#define DBUF_HEAP_SIZE 512" >>confdefs.h
13976
13977
13978 $as_echo "#define AUTH_HEAP_SIZE 512" >>confdefs.h
13979
13980
13981 $as_echo "#define DNS_HEAP_SIZE 512" >>confdefs.h
13982
13983 fi
13984
13985
13986 # Argument processing.
13987
13988 desired_iopoll_mechanism="none"
13989 # Check whether --enable-kqueue was given.
13990 if test "${enable_kqueue+set}" = set; then :
13991 enableval=$enable_kqueue; desired_iopoll_mechanism="kqueue"
13992 fi
13993
13994 # Check whether --enable-epoll was given.
13995 if test "${enable_epoll+set}" = set; then :
13996 enableval=$enable_epoll; desired_iopoll_mechanism="epoll"
13997 fi
13998
13999 # Check whether --enable-devpoll was given.
14000 if test "${enable_devpoll+set}" = set; then :
14001 enableval=$enable_devpoll; desired_iopoll_mechanism="devpoll"
14002 fi
14003
14004 # Check whether --enable-rtsigio was given.
14005 if test "${enable_rtsigio+set}" = set; then :
14006 enableval=$enable_rtsigio; desired_iopoll_mechanism="rtsigio"
14007 fi
14008
14009 # Check whether --enable-poll was given.
14010 if test "${enable_poll+set}" = set; then :
14011 enableval=$enable_poll; desired_iopoll_mechanism="poll"
14012 fi
14013
14014 # Check whether --enable-select was given.
14015 if test "${enable_select+set}" = set; then :
14016 enableval=$enable_select; desired_iopoll_mechanism="select"
14017 fi
14018
14019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for optimal/desired iopoll mechanism" >&5
14020 $as_echo_n "checking for optimal/desired iopoll mechanism... " >&6; }
14021 iopoll_mechanism_none=0
14022
14023 cat >>confdefs.h <<_ACEOF
14024 #define __IOPOLL_MECHANISM_NONE $iopoll_mechanism_none
14025 _ACEOF
14026
14027 iopoll_mechanism_kqueue=1
14028
14029 cat >>confdefs.h <<_ACEOF
14030 #define __IOPOLL_MECHANISM_KQUEUE $iopoll_mechanism_kqueue
14031 _ACEOF
14032
14033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14034 /* end confdefs.h. */
14035 /* Define kevent to an innocuous variant, in case <limits.h> declares kevent.
14036 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14037 #define kevent innocuous_kevent
14038
14039 /* System header to define __stub macros and hopefully few prototypes,
14040 which can conflict with char kevent (); below.
14041 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14042 <limits.h> exists even on freestanding compilers. */
14043
14044 #ifdef __STDC__
14045 # include <limits.h>
14046 #else
14047 # include <assert.h>
14048 #endif
14049
14050 #undef kevent
14051
14052 /* Override any GCC internal prototype to avoid an error.
14053 Use char because int might match the return type of a GCC
14054 builtin and then its argument prototype would still apply. */
14055 #ifdef __cplusplus
14056 extern "C"
14057 #endif
14058 char kevent ();
14059 /* The GNU C library defines this for functions which it implements
14060 to always fail with ENOSYS. Some functions are actually named
14061 something starting with __ and the normal name is an alias. */
14062 #if defined __stub_kevent || defined __stub___kevent
14063 choke me
14064 #endif
14065
14066 int
14067 main ()
14068 {
14069 return kevent ();
14070 ;
14071 return 0;
14072 }
14073 _ACEOF
14074 if ac_fn_c_try_link "$LINENO"; then :
14075 is_kqueue_mechanism_available="yes"
14076 else
14077 is_kqueue_mechanism_available="no"
14078 fi
14079 rm -f core conftest.err conftest.$ac_objext \
14080 conftest$ac_exeext conftest.$ac_ext
14081 iopoll_mechanism_epoll=2
14082
14083 cat >>confdefs.h <<_ACEOF
14084 #define __IOPOLL_MECHANISM_EPOLL $iopoll_mechanism_epoll
14085 _ACEOF
14086
14087 if test "$cross_compiling" = yes; then :
14088 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14089 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14090 as_fn_error $? "cannot run test program while cross compiling
14091 See \`config.log' for more details" "$LINENO" 5; }
14092 else
14093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14094 /* end confdefs.h. */
14095
14096 #include <sys/epoll.h>
14097 #include <sys/syscall.h>
14098 #if defined(__stub_epoll_create) || defined(__stub___epoll_create) || defined(EPOLL_NEED_BODY)
14099 #if !defined(__NR_epoll_create)
14100 #if defined(__ia64__)
14101 #define __NR_epoll_create 1243
14102 #elif defined(__x86_64__)
14103 #define __NR_epoll_create 214
14104 #elif defined(__sparc64__) || defined(__sparc__)
14105 #define __NR_epoll_create 193
14106 #elif defined(__s390__) || defined(__m68k__)
14107 #define __NR_epoll_create 249
14108 #elif defined(__ppc64__) || defined(__ppc__)
14109 #define __NR_epoll_create 236
14110 #elif defined(__parisc__) || defined(__arm26__) || defined(__arm__)
14111 #define __NR_epoll_create 224
14112 #elif defined(__alpha__)
14113 #define __NR_epoll_create 407
14114 #elif defined(__sh64__)
14115 #define __NR_epoll_create 282
14116 #elif defined(__i386__) || defined(__sh__) || defined(__m32r__) || defined(__h8300__) || defined(__frv__)
14117 #define __NR_epoll_create 254
14118 #else
14119 #error No system call numbers defined for epoll family.
14120 #endif
14121 #endif
14122 _syscall1(int, epoll_create, int, size)
14123 #endif
14124
14125 int
14126 main ()
14127 {
14128 return epoll_create(256) == -1 ? 1 : 0
14129 ;
14130 return 0;
14131 }
14132 _ACEOF
14133 if ac_fn_c_try_run "$LINENO"; then :
14134 is_epoll_mechanism_available="yes"
14135 else
14136 is_epoll_mechanism_available="no"
14137 fi
14138 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14139 conftest.$ac_objext conftest.beam conftest.$ac_ext
14140 fi
14141
14142 iopoll_mechanism_devpoll=3
14143
14144 cat >>confdefs.h <<_ACEOF
14145 #define __IOPOLL_MECHANISM_DEVPOLL $iopoll_mechanism_devpoll
14146 _ACEOF
14147
14148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14149 /* end confdefs.h. */
14150 #include <devpoll.h>
14151 int
14152 main ()
14153 {
14154
14155 ;
14156 return 0;
14157 }
14158 _ACEOF
14159 if ac_fn_c_try_compile "$LINENO"; then :
14160 is_devpoll_mechanism_available="yes"
14161 else
14162 is_devpoll_mechanism_available="no"
14163 fi
14164 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14165 if test "$is_devpoll_mechanism_available" = "yes" ; then
14166
14167 $as_echo "#define HAVE_DEVPOLL_H 1" >>confdefs.h
14168
14169 fi
14170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14171 /* end confdefs.h. */
14172 #include <sys/devpoll.h>
14173 int
14174 main ()
14175 {
14176
14177 ;
14178 return 0;
14179 }
14180 _ACEOF
14181 if ac_fn_c_try_compile "$LINENO"; then :
14182 is_devpoll_mechanism_available="yes"
14183 else
14184 is_devpoll_mechanism_available="no"
14185 fi
14186 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14187 if test "$is_devpoll_mechanism_available" = "yes" ; then
14188
14189 $as_echo "#define HAVE_SYS_DEVPOLL_H 1" >>confdefs.h
14190
14191 fi
14192 iopoll_mechanism_rtsigio=4
14193
14194 cat >>confdefs.h <<_ACEOF
14195 #define __IOPOLL_MECHANISM_RTSIGIO $iopoll_mechanism_rtsigio
14196 _ACEOF
14197
14198 if test "$cross_compiling" = yes; then :
14199 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14200 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14201 as_fn_error $? "cannot run test program while cross compiling
14202 See \`config.log' for more details" "$LINENO" 5; }
14203 else
14204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14205 /* end confdefs.h. */
14206
14207 #define _GNU_SOURCE
14208 #include <fcntl.h>
14209 static unsigned int have_f_setsig = 0;
14210
14211 int
14212 main ()
14213 {
14214
14215 #ifdef F_SETSIG
14216 have_f_setsig = 1;
14217 #endif
14218 return have_f_setsig == 0;
14219
14220 ;
14221 return 0;
14222 }
14223 _ACEOF
14224 if ac_fn_c_try_run "$LINENO"; then :
14225 is_rtsigio_mechanism_available="yes"
14226 else
14227 is_rtsigio_mechanism_available="no"
14228 fi
14229 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14230 conftest.$ac_objext conftest.beam conftest.$ac_ext
14231 fi
14232
14233 iopoll_mechanism_poll=5
14234
14235 cat >>confdefs.h <<_ACEOF
14236 #define __IOPOLL_MECHANISM_POLL $iopoll_mechanism_poll
14237 _ACEOF
14238
14239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14240 /* end confdefs.h. */
14241 /* Define poll to an innocuous variant, in case <limits.h> declares poll.
14242 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14243 #define poll innocuous_poll
14244
14245 /* System header to define __stub macros and hopefully few prototypes,
14246 which can conflict with char poll (); below.
14247 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14248 <limits.h> exists even on freestanding compilers. */
14249
14250 #ifdef __STDC__
14251 # include <limits.h>
14252 #else
14253 # include <assert.h>
14254 #endif
14255
14256 #undef poll
14257
14258 /* Override any GCC internal prototype to avoid an error.
14259 Use char because int might match the return type of a GCC
14260 builtin and then its argument prototype would still apply. */
14261 #ifdef __cplusplus
14262 extern "C"
14263 #endif
14264 char poll ();
14265 /* The GNU C library defines this for functions which it implements
14266 to always fail with ENOSYS. Some functions are actually named
14267 something starting with __ and the normal name is an alias. */
14268 #if defined __stub_poll || defined __stub___poll
14269 choke me
14270 #endif
14271
14272 int
14273 main ()
14274 {
14275 return poll ();
14276 ;
14277 return 0;
14278 }
14279 _ACEOF
14280 if ac_fn_c_try_link "$LINENO"; then :
14281 is_poll_mechanism_available="yes"
14282 else
14283 is_poll_mechanism_available="no"
14284 fi
14285 rm -f core conftest.err conftest.$ac_objext \
14286 conftest$ac_exeext conftest.$ac_ext
14287 iopoll_mechanism_select=6
14288
14289 cat >>confdefs.h <<_ACEOF
14290 #define __IOPOLL_MECHANISM_SELECT $iopoll_mechanism_select
14291 _ACEOF
14292
14293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14294 /* end confdefs.h. */
14295 /* Define select to an innocuous variant, in case <limits.h> declares select.
14296 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14297 #define select innocuous_select
14298
14299 /* System header to define __stub macros and hopefully few prototypes,
14300 which can conflict with char select (); below.
14301 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14302 <limits.h> exists even on freestanding compilers. */
14303
14304 #ifdef __STDC__
14305 # include <limits.h>
14306 #else
14307 # include <assert.h>
14308 #endif
14309
14310 #undef select
14311
14312 /* Override any GCC internal prototype to avoid an error.
14313 Use char because int might match the return type of a GCC
14314 builtin and then its argument prototype would still apply. */
14315 #ifdef __cplusplus
14316 extern "C"
14317 #endif
14318 char select ();
14319 /* The GNU C library defines this for functions which it implements
14320 to always fail with ENOSYS. Some functions are actually named
14321 something starting with __ and the normal name is an alias. */
14322 #if defined __stub_select || defined __stub___select
14323 choke me
14324 #endif
14325
14326 int
14327 main ()
14328 {
14329 return select ();
14330 ;
14331 return 0;
14332 }
14333 _ACEOF
14334 if ac_fn_c_try_link "$LINENO"; then :
14335 is_select_mechanism_available="yes"
14336 else
14337 is_select_mechanism_available="no"
14338 fi
14339 rm -f core conftest.err conftest.$ac_objext \
14340 conftest$ac_exeext conftest.$ac_ext
14341 optimal_iopoll_mechanism="none"
14342 for mechanism in "kqueue" "epoll" "devpoll" "rtsigio" "poll" "select" ; do # order is important
14343 eval "is_optimal_iopoll_mechanism_available=\$is_${mechanism}_mechanism_available"
14344 if test "$is_optimal_iopoll_mechanism_available" = "yes" ; then
14345 optimal_iopoll_mechanism="$mechanism"
14346 break
14347 fi
14348 done
14349 if test "$desired_iopoll_mechanism" = "none" ; then
14350 if test "$optimal_iopoll_mechanism" = "none" ; then
14351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
14352 $as_echo "none" >&6; }
14353 as_fn_error $? "no iopoll mechanism found!" "$LINENO" 5
14354 else
14355 selected_iopoll_mechanism=$optimal_iopoll_mechanism
14356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $selected_iopoll_mechanism" >&5
14357 $as_echo "$selected_iopoll_mechanism" >&6; }
14358 fi
14359 else
14360 eval "is_desired_iopoll_mechanism_available=\$is_${desired_iopoll_mechanism}_mechanism_available"
14361 if test "$is_desired_iopoll_mechanism_available" = "yes" ; then
14362 selected_iopoll_mechanism=$desired_iopoll_mechanism
14363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $selected_iopoll_mechanism" >&5
14364 $as_echo "$selected_iopoll_mechanism" >&6; }
14365 else
14366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
14367 $as_echo "none" >&6; }
14368 as_fn_error $? "desired iopoll mechanism, $desired_iopoll_mechanism, is not available" "$LINENO" 5
14369 fi
14370 fi
14371 eval "use_iopoll_mechanism=\$iopoll_mechanism_${selected_iopoll_mechanism}"
14372
14373 cat >>confdefs.h <<_ACEOF
14374 #define USE_IOPOLL_MECHANISM $use_iopoll_mechanism
14375 _ACEOF
14376
14377
14378
14379
14380 # Check whether --with-nicklen was given.
14381 if test "${with_nicklen+set}" = set; then :
14382 withval=$with_nicklen; nicklen="$withval"
14383 else
14384 nicklen="9"
14385 fi
14386
14387
14388 cat >>confdefs.h <<_ACEOF
14389 #define NICKLEN ($nicklen+1)
14390 _ACEOF
14391
14392
14393
14394
14395 # Check whether --with-topiclen was given.
14396 if test "${with_topiclen+set}" = set; then :
14397 withval=$with_topiclen; topiclen="$withval"
14398 else
14399 topiclen="160"
14400 fi
14401
14402
14403 cat >>confdefs.h <<_ACEOF
14404 #define TOPICLEN ($topiclen)
14405 _ACEOF
14406
14407
14408
14409 # Check whether --enable-efnet was given.
14410 if test "${enable_efnet+set}" = set; then :
14411 enableval=$enable_efnet; efnet="$enableval"
14412 else
14413 efnet="no"
14414 fi
14415
14416 if test "$efnet" = "yes" ; then
14417 use_efnet="yes"
14418
14419 $as_echo "#define EFNET 1" >>confdefs.h
14420
14421 else
14422 use_efnet="no"
14423 fi
14424 if test "$use_efnet" = "yes"; then
14425 EFNET_TRUE=
14426 EFNET_FALSE='#'
14427 else
14428 EFNET_TRUE='#'
14429 EFNET_FALSE=
14430 fi
14431
14432
14433
14434 # Check whether --enable-halfops was given.
14435 if test "${enable_halfops+set}" = set; then :
14436 enableval=$enable_halfops; halfops="$enableval"
14437 else
14438 halfops="no"
14439 fi
14440
14441 if test "$halfops" = "yes" ; then
14442
14443 $as_echo "#define HALFOPS 1" >>confdefs.h
14444
14445 fi
14446
14447
14448 # Check whether --enable-debugging was given.
14449 if test "${enable_debugging+set}" = set; then :
14450 enableval=$enable_debugging; debugging="$enableval"
14451 else
14452 debugging="no"
14453 fi
14454
14455 if test "$debugging" = "yes" ; then
14456
14457 $as_echo "#define DEBUG 1" >>confdefs.h
14458
14459 CFLAGS="-Wall -g -O0"
14460 else
14461
14462 $as_echo "#define NDEBUG 1" >>confdefs.h
14463
14464 fi
14465
14466
14467 # Check whether --enable-warnings was given.
14468 if test "${enable_warnings+set}" = set; then :
14469 enableval=$enable_warnings; warnings="$enableval"
14470 else
14471 warnings="no"
14472 fi
14473
14474 if test "$warnings" = "yes" ; then
14475 CFLAGS="-Wall -Wextra -Wno-unused -Wcast-qual -Wcast-align -Wbad-function-cast -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wredundant-decls -Wshadow -Wwrite-strings -Wundef"
14476 fi
14477
14478
14479
14480 prefix_NONE=
14481 exec_prefix_NONE=
14482 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
14483 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
14484 eval ac_define_dir="\"$prefix\""
14485 eval ac_define_dir="\"$ac_define_dir\""
14486 PREFIX="$ac_define_dir"
14487
14488
14489 cat >>confdefs.h <<_ACEOF
14490 #define PREFIX "$ac_define_dir"
14491 _ACEOF
14492
14493 test "$prefix_NONE" && prefix=NONE
14494 test "$exec_prefix_NONE" && exec_prefix=NONE
14495
14496
14497 prefix_NONE=
14498 exec_prefix_NONE=
14499 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
14500 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
14501 eval ac_define_dir="\"$sysconfdir\""
14502 eval ac_define_dir="\"$ac_define_dir\""
14503 SYSCONFDIR="$ac_define_dir"
14504
14505
14506 cat >>confdefs.h <<_ACEOF
14507 #define SYSCONFDIR "$ac_define_dir"
14508 _ACEOF
14509
14510 test "$prefix_NONE" && prefix=NONE
14511 test "$exec_prefix_NONE" && exec_prefix=NONE
14512
14513
14514 prefix_NONE=
14515 exec_prefix_NONE=
14516 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
14517 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
14518 eval ac_define_dir="\"$libdir\""
14519 eval ac_define_dir="\"$ac_define_dir\""
14520 LIBDIR="$ac_define_dir"
14521
14522
14523 cat >>confdefs.h <<_ACEOF
14524 #define LIBDIR "$ac_define_dir"
14525 _ACEOF
14526
14527 test "$prefix_NONE" && prefix=NONE
14528 test "$exec_prefix_NONE" && exec_prefix=NONE
14529
14530
14531 prefix_NONE=
14532 exec_prefix_NONE=
14533 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
14534 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
14535 eval ac_define_dir="\"$datadir\""
14536 eval ac_define_dir="\"$ac_define_dir\""
14537 DATADIR="$ac_define_dir"
14538
14539
14540 cat >>confdefs.h <<_ACEOF
14541 #define DATADIR "$ac_define_dir"
14542 _ACEOF
14543
14544 test "$prefix_NONE" && prefix=NONE
14545 test "$exec_prefix_NONE" && exec_prefix=NONE
14546
14547
14548 prefix_NONE=
14549 exec_prefix_NONE=
14550 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
14551 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
14552 eval ac_define_dir="\"$localstatedir\""
14553 eval ac_define_dir="\"$ac_define_dir\""
14554 LOCALSTATEDIR="$ac_define_dir"
14555
14556
14557 cat >>confdefs.h <<_ACEOF
14558 #define LOCALSTATEDIR "$ac_define_dir"
14559 _ACEOF
14560
14561 test "$prefix_NONE" && prefix=NONE
14562 test "$exec_prefix_NONE" && exec_prefix=NONE
14563
14564
14565 ac_config_files="$ac_config_files Makefile contrib/Makefile contrib/help/Makefile src/Makefile libltdl/Makefile messages/Makefile modules/Makefile modules/core/Makefile doc/Makefile help/Makefile help/opers/Makefile help/users/Makefile tools/Makefile"
14566
14567
14568 cat >confcache <<\_ACEOF
14569 # This file is a shell script that caches the results of configure
14570 # tests run on this system so they can be shared between configure
14571 # scripts and configure runs, see configure's option --config-cache.
14572 # It is not useful on other systems. If it contains results you don't
14573 # want to keep, you may remove or edit it.
14574 #
14575 # config.status only pays attention to the cache file if you give it
14576 # the --recheck option to rerun configure.
14577 #
14578 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14579 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14580 # following values.
14581
14582 _ACEOF
14583
14584 # The following way of writing the cache mishandles newlines in values,
14585 # but we know of no workaround that is simple, portable, and efficient.
14586 # So, we kill variables containing newlines.
14587 # Ultrix sh set writes to stderr and can't be redirected directly,
14588 # and sets the high bit in the cache file unless we assign to the vars.
14589 (
14590 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14591 eval ac_val=\$$ac_var
14592 case $ac_val in #(
14593 *${as_nl}*)
14594 case $ac_var in #(
14595 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14596 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14597 esac
14598 case $ac_var in #(
14599 _ | IFS | as_nl) ;; #(
14600 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14601 *) { eval $ac_var=; unset $ac_var;} ;;
14602 esac ;;
14603 esac
14604 done
14605
14606 (set) 2>&1 |
14607 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14608 *${as_nl}ac_space=\ *)
14609 # `set' does not quote correctly, so add quotes: double-quote
14610 # substitution turns \\\\ into \\, and sed turns \\ into \.
14611 sed -n \
14612 "s/'/'\\\\''/g;
14613 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14614 ;; #(
14615 *)
14616 # `set' quotes correctly as required by POSIX, so do not add quotes.
14617 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14618 ;;
14619 esac |
14620 sort
14621 ) |
14622 sed '
14623 /^ac_cv_env_/b end
14624 t clear
14625 :clear
14626 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14627 t end
14628 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14629 :end' >>confcache
14630 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14631 if test -w "$cache_file"; then
14632 if test "x$cache_file" != "x/dev/null"; then
14633 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14634 $as_echo "$as_me: updating cache $cache_file" >&6;}
14635 if test ! -f "$cache_file" || test -h "$cache_file"; then
14636 cat confcache >"$cache_file"
14637 else
14638 case $cache_file in #(
14639 */* | ?:*)
14640 mv -f confcache "$cache_file"$$ &&
14641 mv -f "$cache_file"$$ "$cache_file" ;; #(
14642 *)
14643 mv -f confcache "$cache_file" ;;
14644 esac
14645 fi
14646 fi
14647 else
14648 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14649 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14650 fi
14651 fi
14652 rm -f confcache
14653
14654 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14655 # Let make expand exec_prefix.
14656 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14657
14658 DEFS=-DHAVE_CONFIG_H
14659
14660 ac_libobjs=
14661 ac_ltlibobjs=
14662 U=
14663 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14664 # 1. Remove the extension, and $U if already installed.
14665 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14666 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14667 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14668 # will be set to the directory where LIBOBJS objects are built.
14669 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14670 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14671 done
14672 LIBOBJS=$ac_libobjs
14673
14674 LTLIBOBJS=$ac_ltlibobjs
14675
14676
14677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
14678 $as_echo_n "checking that generated files are newer than configure... " >&6; }
14679 if test -n "$am_sleep_pid"; then
14680 # Hide warnings about reused PIDs.
14681 wait $am_sleep_pid 2>/dev/null
14682 fi
14683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
14684 $as_echo "done" >&6; }
14685 if test -n "$EXEEXT"; then
14686 am__EXEEXT_TRUE=
14687 am__EXEEXT_FALSE='#'
14688 else
14689 am__EXEEXT_TRUE='#'
14690 am__EXEEXT_FALSE=
14691 fi
14692
14693 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
14694 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
14695 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14696 fi
14697 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14698 as_fn_error $? "conditional \"AMDEP\" was never defined.
14699 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14700 fi
14701 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14702 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
14703 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14704 fi
14705 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
14706 as_fn_error $? "conditional \"INSTALL_LTDL\" was never defined.
14707 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14708 fi
14709 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
14710 as_fn_error $? "conditional \"CONVENIENCE_LTDL\" was never defined.
14711 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14712 fi
14713 LT_CONFIG_H=config.h
14714
14715 _ltdl_libobjs=
14716 _ltdl_ltlibobjs=
14717 if test -n "$_LT_LIBOBJS"; then
14718 # Remove the extension.
14719 _lt_sed_drop_objext='s/\.o$//;s/\.obj$//'
14720 for i in `for i in $_LT_LIBOBJS; do echo "$i"; done | sed "$_lt_sed_drop_objext" | sort -u`; do
14721 _ltdl_libobjs="$_ltdl_libobjs $lt_libobj_prefix$i.$ac_objext"
14722 _ltdl_ltlibobjs="$_ltdl_ltlibobjs $lt_libobj_prefix$i.lo"
14723 done
14724 fi
14725 ltdl_LIBOBJS=$_ltdl_libobjs
14726
14727 ltdl_LTLIBOBJS=$_ltdl_ltlibobjs
14728
14729
14730
14731 if test -z "${ENABLE_SSL_TRUE}" && test -z "${ENABLE_SSL_FALSE}"; then
14732 as_fn_error $? "conditional \"ENABLE_SSL\" was never defined.
14733 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14734 fi
14735 if test -z "${EFNET_TRUE}" && test -z "${EFNET_FALSE}"; then
14736 as_fn_error $? "conditional \"EFNET\" was never defined.
14737 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14738 fi
14739
14740 : "${CONFIG_STATUS=./config.status}"
14741 ac_write_fail=0
14742 ac_clean_files_save=$ac_clean_files
14743 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14744 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14745 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14746 as_write_fail=0
14747 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14748 #! $SHELL
14749 # Generated by $as_me.
14750 # Run this file to recreate the current configuration.
14751 # Compiler output produced by configure, useful for debugging
14752 # configure, is in config.log if it exists.
14753
14754 debug=false
14755 ac_cs_recheck=false
14756 ac_cs_silent=false
14757
14758 SHELL=\${CONFIG_SHELL-$SHELL}
14759 export SHELL
14760 _ASEOF
14761 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14762 ## -------------------- ##
14763 ## M4sh Initialization. ##
14764 ## -------------------- ##
14765
14766 # Be more Bourne compatible
14767 DUALCASE=1; export DUALCASE # for MKS sh
14768 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14769 emulate sh
14770 NULLCMD=:
14771 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14772 # is contrary to our usage. Disable this feature.
14773 alias -g '${1+"$@"}'='"$@"'
14774 setopt NO_GLOB_SUBST
14775 else
14776 case `(set -o) 2>/dev/null` in #(
14777 *posix*) :
14778 set -o posix ;; #(
14779 *) :
14780 ;;
14781 esac
14782 fi
14783
14784
14785 as_nl='
14786 '
14787 export as_nl
14788 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14789 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14790 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14791 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14792 # Prefer a ksh shell builtin over an external printf program on Solaris,
14793 # but without wasting forks for bash or zsh.
14794 if test -z "$BASH_VERSION$ZSH_VERSION" \
14795 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14796 as_echo='print -r --'
14797 as_echo_n='print -rn --'
14798 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14799 as_echo='printf %s\n'
14800 as_echo_n='printf %s'
14801 else
14802 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14803 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14804 as_echo_n='/usr/ucb/echo -n'
14805 else
14806 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14807 as_echo_n_body='eval
14808 arg=$1;
14809 case $arg in #(
14810 *"$as_nl"*)
14811 expr "X$arg" : "X\\(.*\\)$as_nl";
14812 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14813 esac;
14814 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14815 '
14816 export as_echo_n_body
14817 as_echo_n='sh -c $as_echo_n_body as_echo'
14818 fi
14819 export as_echo_body
14820 as_echo='sh -c $as_echo_body as_echo'
14821 fi
14822
14823 # The user is always right.
14824 if test "${PATH_SEPARATOR+set}" != set; then
14825 PATH_SEPARATOR=:
14826 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14827 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14828 PATH_SEPARATOR=';'
14829 }
14830 fi
14831
14832
14833 # IFS
14834 # We need space, tab and new line, in precisely that order. Quoting is
14835 # there to prevent editors from complaining about space-tab.
14836 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14837 # splitting by setting IFS to empty value.)
14838 IFS=" "" $as_nl"
14839
14840 # Find who we are. Look in the path if we contain no directory separator.
14841 as_myself=
14842 case $0 in #((
14843 *[\\/]* ) as_myself=$0 ;;
14844 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14845 for as_dir in $PATH
14846 do
14847 IFS=$as_save_IFS
14848 test -z "$as_dir" && as_dir=.
14849 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14850 done
14851 IFS=$as_save_IFS
14852
14853 ;;
14854 esac
14855 # We did not find ourselves, most probably we were run as `sh COMMAND'
14856 # in which case we are not to be found in the path.
14857 if test "x$as_myself" = x; then
14858 as_myself=$0
14859 fi
14860 if test ! -f "$as_myself"; then
14861 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14862 exit 1
14863 fi
14864
14865 # Unset variables that we do not need and which cause bugs (e.g. in
14866 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14867 # suppresses any "Segmentation fault" message there. '((' could
14868 # trigger a bug in pdksh 5.2.14.
14869 for as_var in BASH_ENV ENV MAIL MAILPATH
14870 do eval test x\${$as_var+set} = xset \
14871 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14872 done
14873 PS1='$ '
14874 PS2='> '
14875 PS4='+ '
14876
14877 # NLS nuisances.
14878 LC_ALL=C
14879 export LC_ALL
14880 LANGUAGE=C
14881 export LANGUAGE
14882
14883 # CDPATH.
14884 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14885
14886
14887 # as_fn_error STATUS ERROR [LINENO LOG_FD]
14888 # ----------------------------------------
14889 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14890 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14891 # script with STATUS, using 1 if that was 0.
14892 as_fn_error ()
14893 {
14894 as_status=$1; test $as_status -eq 0 && as_status=1
14895 if test "$4"; then
14896 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14897 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
14898 fi
14899 $as_echo "$as_me: error: $2" >&2
14900 as_fn_exit $as_status
14901 } # as_fn_error
14902
14903
14904 # as_fn_set_status STATUS
14905 # -----------------------
14906 # Set $? to STATUS, without forking.
14907 as_fn_set_status ()
14908 {
14909 return $1
14910 } # as_fn_set_status
14911
14912 # as_fn_exit STATUS
14913 # -----------------
14914 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14915 as_fn_exit ()
14916 {
14917 set +e
14918 as_fn_set_status $1
14919 exit $1
14920 } # as_fn_exit
14921
14922 # as_fn_unset VAR
14923 # ---------------
14924 # Portably unset VAR.
14925 as_fn_unset ()
14926 {
14927 { eval $1=; unset $1;}
14928 }
14929 as_unset=as_fn_unset
14930 # as_fn_append VAR VALUE
14931 # ----------------------
14932 # Append the text in VALUE to the end of the definition contained in VAR. Take
14933 # advantage of any shell optimizations that allow amortized linear growth over
14934 # repeated appends, instead of the typical quadratic growth present in naive
14935 # implementations.
14936 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14937 eval 'as_fn_append ()
14938 {
14939 eval $1+=\$2
14940 }'
14941 else
14942 as_fn_append ()
14943 {
14944 eval $1=\$$1\$2
14945 }
14946 fi # as_fn_append
14947
14948 # as_fn_arith ARG...
14949 # ------------------
14950 # Perform arithmetic evaluation on the ARGs, and store the result in the
14951 # global $as_val. Take advantage of shells that can avoid forks. The arguments
14952 # must be portable across $(()) and expr.
14953 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14954 eval 'as_fn_arith ()
14955 {
14956 as_val=$(( $* ))
14957 }'
14958 else
14959 as_fn_arith ()
14960 {
14961 as_val=`expr "$@" || test $? -eq 1`
14962 }
14963 fi # as_fn_arith
14964
14965
14966 if expr a : '\(a\)' >/dev/null 2>&1 &&
14967 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14968 as_expr=expr
14969 else
14970 as_expr=false
14971 fi
14972
14973 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14974 as_basename=basename
14975 else
14976 as_basename=false
14977 fi
14978
14979 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14980 as_dirname=dirname
14981 else
14982 as_dirname=false
14983 fi
14984
14985 as_me=`$as_basename -- "$0" ||
14986 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14987 X"$0" : 'X\(//\)$' \| \
14988 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14989 $as_echo X/"$0" |
14990 sed '/^.*\/\([^/][^/]*\)\/*$/{
14991 s//\1/
14992 q
14993 }
14994 /^X\/\(\/\/\)$/{
14995 s//\1/
14996 q
14997 }
14998 /^X\/\(\/\).*/{
14999 s//\1/
15000 q
15001 }
15002 s/.*/./; q'`
15003
15004 # Avoid depending upon Character Ranges.
15005 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15006 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15007 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15008 as_cr_digits='0123456789'
15009 as_cr_alnum=$as_cr_Letters$as_cr_digits
15010
15011 ECHO_C= ECHO_N= ECHO_T=
15012 case `echo -n x` in #(((((
15013 -n*)
15014 case `echo 'xy\c'` in
15015 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15016 xy) ECHO_C='\c';;
15017 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15018 ECHO_T=' ';;
15019 esac;;
15020 *)
15021 ECHO_N='-n';;
15022 esac
15023
15024 rm -f conf$$ conf$$.exe conf$$.file
15025 if test -d conf$$.dir; then
15026 rm -f conf$$.dir/conf$$.file
15027 else
15028 rm -f conf$$.dir
15029 mkdir conf$$.dir 2>/dev/null
15030 fi
15031 if (echo >conf$$.file) 2>/dev/null; then
15032 if ln -s conf$$.file conf$$ 2>/dev/null; then
15033 as_ln_s='ln -s'
15034 # ... but there are two gotchas:
15035 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15036 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15037 # In both cases, we have to default to `cp -pR'.
15038 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15039 as_ln_s='cp -pR'
15040 elif ln conf$$.file conf$$ 2>/dev/null; then
15041 as_ln_s=ln
15042 else
15043 as_ln_s='cp -pR'
15044 fi
15045 else
15046 as_ln_s='cp -pR'
15047 fi
15048 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15049 rmdir conf$$.dir 2>/dev/null
15050
15051
15052 # as_fn_mkdir_p
15053 # -------------
15054 # Create "$as_dir" as a directory, including parents if necessary.
15055 as_fn_mkdir_p ()
15056 {
15057
15058 case $as_dir in #(
15059 -*) as_dir=./$as_dir;;
15060 esac
15061 test -d "$as_dir" || eval $as_mkdir_p || {
15062 as_dirs=
15063 while :; do
15064 case $as_dir in #(
15065 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15066 *) as_qdir=$as_dir;;
15067 esac
15068 as_dirs="'$as_qdir' $as_dirs"
15069 as_dir=`$as_dirname -- "$as_dir" ||
15070 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15071 X"$as_dir" : 'X\(//\)[^/]' \| \
15072 X"$as_dir" : 'X\(//\)$' \| \
15073 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15074 $as_echo X"$as_dir" |
15075 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15076 s//\1/
15077 q
15078 }
15079 /^X\(\/\/\)[^/].*/{
15080 s//\1/
15081 q
15082 }
15083 /^X\(\/\/\)$/{
15084 s//\1/
15085 q
15086 }
15087 /^X\(\/\).*/{
15088 s//\1/
15089 q
15090 }
15091 s/.*/./; q'`
15092 test -d "$as_dir" && break
15093 done
15094 test -z "$as_dirs" || eval "mkdir $as_dirs"
15095 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15096
15097
15098 } # as_fn_mkdir_p
15099 if mkdir -p . 2>/dev/null; then
15100 as_mkdir_p='mkdir -p "$as_dir"'
15101 else
15102 test -d ./-p && rmdir ./-p
15103 as_mkdir_p=false
15104 fi
15105
15106
15107 # as_fn_executable_p FILE
15108 # -----------------------
15109 # Test if FILE is an executable regular file.
15110 as_fn_executable_p ()
15111 {
15112 test -f "$1" && test -x "$1"
15113 } # as_fn_executable_p
15114 as_test_x='test -x'
15115 as_executable_p=as_fn_executable_p
15116
15117 # Sed expression to map a string onto a valid CPP name.
15118 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15119
15120 # Sed expression to map a string onto a valid variable name.
15121 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15122
15123
15124 exec 6>&1
15125 ## ----------------------------------- ##
15126 ## Main body of $CONFIG_STATUS script. ##
15127 ## ----------------------------------- ##
15128 _ASEOF
15129 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15130
15131 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15132 # Save the log message, to keep $0 and so on meaningful, and to
15133 # report actual input values of CONFIG_FILES etc. instead of their
15134 # values after options handling.
15135 ac_log="
15136 This file was extended by ircd-hybrid $as_me 8beta1, which was
15137 generated by GNU Autoconf 2.69. Invocation command line was
15138
15139 CONFIG_FILES = $CONFIG_FILES
15140 CONFIG_HEADERS = $CONFIG_HEADERS
15141 CONFIG_LINKS = $CONFIG_LINKS
15142 CONFIG_COMMANDS = $CONFIG_COMMANDS
15143 $ $0 $@
15144
15145 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15146 "
15147
15148 _ACEOF
15149
15150 case $ac_config_files in *"
15151 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15152 esac
15153
15154 case $ac_config_headers in *"
15155 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15156 esac
15157
15158
15159 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15160 # Files that config.status was made for.
15161 config_files="$ac_config_files"
15162 config_headers="$ac_config_headers"
15163 config_commands="$ac_config_commands"
15164
15165 _ACEOF
15166
15167 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15168 ac_cs_usage="\
15169 \`$as_me' instantiates files and other configuration actions
15170 from templates according to the current configuration. Unless the files
15171 and actions are specified as TAGs, all are instantiated by default.
15172
15173 Usage: $0 [OPTION]... [TAG]...
15174
15175 -h, --help print this help, then exit
15176 -V, --version print version number and configuration settings, then exit
15177 --config print configuration, then exit
15178 -q, --quiet, --silent
15179 do not print progress messages
15180 -d, --debug don't remove temporary files
15181 --recheck update $as_me by reconfiguring in the same conditions
15182 --file=FILE[:TEMPLATE]
15183 instantiate the configuration file FILE
15184 --header=FILE[:TEMPLATE]
15185 instantiate the configuration header FILE
15186
15187 Configuration files:
15188 $config_files
15189
15190 Configuration headers:
15191 $config_headers
15192
15193 Configuration commands:
15194 $config_commands
15195
15196 Report bugs to <bugs@ircd-hybrid.org>."
15197
15198 _ACEOF
15199 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15200 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15201 ac_cs_version="\\
15202 ircd-hybrid config.status 8beta1
15203 configured by $0, generated by GNU Autoconf 2.69,
15204 with options \\"\$ac_cs_config\\"
15205
15206 Copyright (C) 2012 Free Software Foundation, Inc.
15207 This config.status script is free software; the Free Software Foundation
15208 gives unlimited permission to copy, distribute and modify it."
15209
15210 ac_pwd='$ac_pwd'
15211 srcdir='$srcdir'
15212 INSTALL='$INSTALL'
15213 MKDIR_P='$MKDIR_P'
15214 AWK='$AWK'
15215 test -n "\$AWK" || AWK=awk
15216 _ACEOF
15217
15218 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15219 # The default lists apply if the user does not specify any file.
15220 ac_need_defaults=:
15221 while test $# != 0
15222 do
15223 case $1 in
15224 --*=?*)
15225 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15226 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15227 ac_shift=:
15228 ;;
15229 --*=)
15230 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15231 ac_optarg=
15232 ac_shift=:
15233 ;;
15234 *)
15235 ac_option=$1
15236 ac_optarg=$2
15237 ac_shift=shift
15238 ;;
15239 esac
15240
15241 case $ac_option in
15242 # Handling of the options.
15243 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15244 ac_cs_recheck=: ;;
15245 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15246 $as_echo "$ac_cs_version"; exit ;;
15247 --config | --confi | --conf | --con | --co | --c )
15248 $as_echo "$ac_cs_config"; exit ;;
15249 --debug | --debu | --deb | --de | --d | -d )
15250 debug=: ;;
15251 --file | --fil | --fi | --f )
15252 $ac_shift
15253 case $ac_optarg in
15254 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15255 '') as_fn_error $? "missing file argument" ;;
15256 esac
15257 as_fn_append CONFIG_FILES " '$ac_optarg'"
15258 ac_need_defaults=false;;
15259 --header | --heade | --head | --hea )
15260 $ac_shift
15261 case $ac_optarg in
15262 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15263 esac
15264 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15265 ac_need_defaults=false;;
15266 --he | --h)
15267 # Conflict between --help and --header
15268 as_fn_error $? "ambiguous option: \`$1'
15269 Try \`$0 --help' for more information.";;
15270 --help | --hel | -h )
15271 $as_echo "$ac_cs_usage"; exit ;;
15272 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15273 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15274 ac_cs_silent=: ;;
15275
15276 # This is an error.
15277 -*) as_fn_error $? "unrecognized option: \`$1'
15278 Try \`$0 --help' for more information." ;;
15279
15280 *) as_fn_append ac_config_targets " $1"
15281 ac_need_defaults=false ;;
15282
15283 esac
15284 shift
15285 done
15286
15287 ac_configure_extra_args=
15288
15289 if $ac_cs_silent; then
15290 exec 6>/dev/null
15291 ac_configure_extra_args="$ac_configure_extra_args --silent"
15292 fi
15293
15294 _ACEOF
15295 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15296 if \$ac_cs_recheck; then
15297 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15298 shift
15299 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15300 CONFIG_SHELL='$SHELL'
15301 export CONFIG_SHELL
15302 exec "\$@"
15303 fi
15304
15305 _ACEOF
15306 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15307 exec 5>>config.log
15308 {
15309 echo
15310 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15311 ## Running $as_me. ##
15312 _ASBOX
15313 $as_echo "$ac_log"
15314 } >&5
15315
15316 _ACEOF
15317 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15318 #
15319 # INIT-COMMANDS
15320 #
15321 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15322
15323
15324 # The HP-UX ksh and POSIX shell print the target directory to stdout
15325 # if CDPATH is set.
15326 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15327
15328 sed_quote_subst='$sed_quote_subst'
15329 double_quote_subst='$double_quote_subst'
15330 delay_variable_subst='$delay_variable_subst'
15331 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
15332 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
15333 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
15334 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
15335 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
15336 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
15337 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
15338 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
15339 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
15340 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
15341 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
15342 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
15343 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
15344 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
15345 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
15346 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
15347 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
15348 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
15349 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
15350 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
15351 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
15352 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
15353 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
15354 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
15355 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
15356 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
15357 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
15358 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
15359 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
15360 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
15361 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
15362 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
15363 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
15364 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
15365 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
15366 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
15367 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
15368 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
15369 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
15370 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
15371 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
15372 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
15373 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
15374 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
15375 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
15376 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15377 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15378 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
15379 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
15380 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
15381 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
15382 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
15383 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
15384 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
15385 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
15386 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
15387 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"`'
15388 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
15389 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
15390 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
15391 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
15392 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
15393 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
15394 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
15395 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
15396 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
15397 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
15398 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
15399 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
15400 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
15401 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
15402 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
15403 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
15404 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
15405 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
15406 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15407 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
15408 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
15409 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
15410 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
15411 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
15412 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
15413 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15414 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
15415 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15416 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
15417 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15418 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
15419 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
15420 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
15421 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
15422 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
15423 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
15424 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
15425 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
15426 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
15427 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
15428 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
15429 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
15430 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
15431 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
15432 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
15433 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
15434 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
15435 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
15436 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
15437 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
15438 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
15439 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
15440 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
15441 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
15442 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
15443 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
15444 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
15445 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
15446 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
15447 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
15448 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15449 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15450 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
15451 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
15452 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
15453 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
15454 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
15455 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
15456 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
15457 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
15458 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
15459 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
15460 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
15461
15462 LTCC='$LTCC'
15463 LTCFLAGS='$LTCFLAGS'
15464 compiler='$compiler_DEFAULT'
15465
15466 # A function that is used when there is no print builtin or printf.
15467 func_fallback_echo ()
15468 {
15469 eval 'cat <<_LTECHO_EOF
15470 \$1
15471 _LTECHO_EOF'
15472 }
15473
15474 # Quote evaled strings.
15475 for var in SHELL \
15476 ECHO \
15477 PATH_SEPARATOR \
15478 SED \
15479 GREP \
15480 EGREP \
15481 FGREP \
15482 LD \
15483 NM \
15484 LN_S \
15485 lt_SP2NL \
15486 lt_NL2SP \
15487 reload_flag \
15488 OBJDUMP \
15489 deplibs_check_method \
15490 file_magic_cmd \
15491 file_magic_glob \
15492 want_nocaseglob \
15493 DLLTOOL \
15494 sharedlib_from_linklib_cmd \
15495 AR \
15496 AR_FLAGS \
15497 archiver_list_spec \
15498 STRIP \
15499 RANLIB \
15500 CC \
15501 CFLAGS \
15502 compiler \
15503 lt_cv_sys_global_symbol_pipe \
15504 lt_cv_sys_global_symbol_to_cdecl \
15505 lt_cv_sys_global_symbol_to_c_name_address \
15506 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15507 nm_file_list_spec \
15508 lt_prog_compiler_no_builtin_flag \
15509 lt_prog_compiler_pic \
15510 lt_prog_compiler_wl \
15511 lt_prog_compiler_static \
15512 lt_cv_prog_compiler_c_o \
15513 need_locks \
15514 MANIFEST_TOOL \
15515 DSYMUTIL \
15516 NMEDIT \
15517 LIPO \
15518 OTOOL \
15519 OTOOL64 \
15520 shrext_cmds \
15521 export_dynamic_flag_spec \
15522 whole_archive_flag_spec \
15523 compiler_needs_object \
15524 with_gnu_ld \
15525 allow_undefined_flag \
15526 no_undefined_flag \
15527 hardcode_libdir_flag_spec \
15528 hardcode_libdir_separator \
15529 exclude_expsyms \
15530 include_expsyms \
15531 file_list_spec \
15532 variables_saved_for_relink \
15533 libname_spec \
15534 library_names_spec \
15535 soname_spec \
15536 install_override_mode \
15537 finish_eval \
15538 old_striplib \
15539 striplib; do
15540 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15541 *[\\\\\\\`\\"\\\$]*)
15542 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
15543 ;;
15544 *)
15545 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15546 ;;
15547 esac
15548 done
15549
15550 # Double-quote double-evaled strings.
15551 for var in reload_cmds \
15552 old_postinstall_cmds \
15553 old_postuninstall_cmds \
15554 old_archive_cmds \
15555 extract_expsyms_cmds \
15556 old_archive_from_new_cmds \
15557 old_archive_from_expsyms_cmds \
15558 archive_cmds \
15559 archive_expsym_cmds \
15560 module_cmds \
15561 module_expsym_cmds \
15562 export_symbols_cmds \
15563 prelink_cmds \
15564 postlink_cmds \
15565 postinstall_cmds \
15566 postuninstall_cmds \
15567 finish_cmds \
15568 sys_lib_search_path_spec \
15569 sys_lib_dlsearch_path_spec; do
15570 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15571 *[\\\\\\\`\\"\\\$]*)
15572 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
15573 ;;
15574 *)
15575 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15576 ;;
15577 esac
15578 done
15579
15580 ac_aux_dir='$ac_aux_dir'
15581 xsi_shell='$xsi_shell'
15582 lt_shell_append='$lt_shell_append'
15583
15584 # See if we are running on zsh, and set the options which allow our
15585 # commands through without removal of \ escapes INIT.
15586 if test -n "\${ZSH_VERSION+set}" ; then
15587 setopt NO_GLOB_SUBST
15588 fi
15589
15590
15591 PACKAGE='$PACKAGE'
15592 VERSION='$VERSION'
15593 TIMESTAMP='$TIMESTAMP'
15594 RM='$RM'
15595 ofile='$ofile'
15596
15597
15598
15599
15600 _ACEOF
15601
15602 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15603
15604 # Handling of arguments.
15605 for ac_config_target in $ac_config_targets
15606 do
15607 case $ac_config_target in
15608 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
15609 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
15610 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
15611 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15612 "contrib/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/Makefile" ;;
15613 "contrib/help/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/help/Makefile" ;;
15614 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
15615 "libltdl/Makefile") CONFIG_FILES="$CONFIG_FILES libltdl/Makefile" ;;
15616 "messages/Makefile") CONFIG_FILES="$CONFIG_FILES messages/Makefile" ;;
15617 "modules/Makefile") CONFIG_FILES="$CONFIG_FILES modules/Makefile" ;;
15618 "modules/core/Makefile") CONFIG_FILES="$CONFIG_FILES modules/core/Makefile" ;;
15619 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
15620 "help/Makefile") CONFIG_FILES="$CONFIG_FILES help/Makefile" ;;
15621 "help/opers/Makefile") CONFIG_FILES="$CONFIG_FILES help/opers/Makefile" ;;
15622 "help/users/Makefile") CONFIG_FILES="$CONFIG_FILES help/users/Makefile" ;;
15623 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
15624
15625 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15626 esac
15627 done
15628
15629
15630 # If the user did not use the arguments to specify the items to instantiate,
15631 # then the envvar interface is used. Set only those that are not.
15632 # We use the long form for the default assignment because of an extremely
15633 # bizarre bug on SunOS 4.1.3.
15634 if $ac_need_defaults; then
15635 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15636 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15637 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15638 fi
15639
15640 # Have a temporary directory for convenience. Make it in the build tree
15641 # simply because there is no reason against having it here, and in addition,
15642 # creating and moving files from /tmp can sometimes cause problems.
15643 # Hook for its removal unless debugging.
15644 # Note that there is a small window in which the directory will not be cleaned:
15645 # after its creation but before its name has been assigned to `$tmp'.
15646 $debug ||
15647 {
15648 tmp= ac_tmp=
15649 trap 'exit_status=$?
15650 : "${ac_tmp:=$tmp}"
15651 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
15652 ' 0
15653 trap 'as_fn_exit 1' 1 2 13 15
15654 }
15655 # Create a (secure) tmp directory for tmp files.
15656
15657 {
15658 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15659 test -d "$tmp"
15660 } ||
15661 {
15662 tmp=./conf$$-$RANDOM
15663 (umask 077 && mkdir "$tmp")
15664 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
15665 ac_tmp=$tmp
15666
15667 # Set up the scripts for CONFIG_FILES section.
15668 # No need to generate them if there are no CONFIG_FILES.
15669 # This happens for instance with `./config.status config.h'.
15670 if test -n "$CONFIG_FILES"; then
15671
15672
15673 ac_cr=`echo X | tr X '\015'`
15674 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15675 # But we know of no other shell where ac_cr would be empty at this
15676 # point, so we can use a bashism as a fallback.
15677 if test "x$ac_cr" = x; then
15678 eval ac_cr=\$\'\\r\'
15679 fi
15680 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15681 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15682 ac_cs_awk_cr='\\r'
15683 else
15684 ac_cs_awk_cr=$ac_cr
15685 fi
15686
15687 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
15688 _ACEOF
15689
15690
15691 {
15692 echo "cat >conf$$subs.awk <<_ACEOF" &&
15693 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15694 echo "_ACEOF"
15695 } >conf$$subs.sh ||
15696 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15697 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
15698 ac_delim='%!_!# '
15699 for ac_last_try in false false false false false :; do
15700 . ./conf$$subs.sh ||
15701 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15702
15703 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15704 if test $ac_delim_n = $ac_delim_num; then
15705 break
15706 elif $ac_last_try; then
15707 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15708 else
15709 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15710 fi
15711 done
15712 rm -f conf$$subs.sh
15713
15714 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15715 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
15716 _ACEOF
15717 sed -n '
15718 h
15719 s/^/S["/; s/!.*/"]=/
15720 p
15721 g
15722 s/^[^!]*!//
15723 :repl
15724 t repl
15725 s/'"$ac_delim"'$//
15726 t delim
15727 :nl
15728 h
15729 s/\(.\{148\}\)..*/\1/
15730 t more1
15731 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15732 p
15733 n
15734 b repl
15735 :more1
15736 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15737 p
15738 g
15739 s/.\{148\}//
15740 t nl
15741 :delim
15742 h
15743 s/\(.\{148\}\)..*/\1/
15744 t more2
15745 s/["\\]/\\&/g; s/^/"/; s/$/"/
15746 p
15747 b
15748 :more2
15749 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15750 p
15751 g
15752 s/.\{148\}//
15753 t delim
15754 ' <conf$$subs.awk | sed '
15755 /^[^""]/{
15756 N
15757 s/\n//
15758 }
15759 ' >>$CONFIG_STATUS || ac_write_fail=1
15760 rm -f conf$$subs.awk
15761 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15762 _ACAWK
15763 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
15764 for (key in S) S_is_set[key] = 1
15765 FS = ""
15766
15767 }
15768 {
15769 line = $ 0
15770 nfields = split(line, field, "@")
15771 substed = 0
15772 len = length(field[1])
15773 for (i = 2; i < nfields; i++) {
15774 key = field[i]
15775 keylen = length(key)
15776 if (S_is_set[key]) {
15777 value = S[key]
15778 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15779 len += length(value) + length(field[++i])
15780 substed = 1
15781 } else
15782 len += 1 + keylen
15783 }
15784
15785 print line
15786 }
15787
15788 _ACAWK
15789 _ACEOF
15790 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15791 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15792 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15793 else
15794 cat
15795 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
15796 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
15797 _ACEOF
15798
15799 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
15800 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
15801 # trailing colons and then remove the whole line if VPATH becomes empty
15802 # (actually we leave an empty line to preserve line numbers).
15803 if test "x$srcdir" = x.; then
15804 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
15805 h
15806 s///
15807 s/^/:/
15808 s/[ ]*$/:/
15809 s/:\$(srcdir):/:/g
15810 s/:\${srcdir}:/:/g
15811 s/:@srcdir@:/:/g
15812 s/^:*//
15813 s/:*$//
15814 x
15815 s/\(=[ ]*\).*/\1/
15816 G
15817 s/\n//
15818 s/^[^=]*=[ ]*$//
15819 }'
15820 fi
15821
15822 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15823 fi # test -n "$CONFIG_FILES"
15824
15825 # Set up the scripts for CONFIG_HEADERS section.
15826 # No need to generate them if there are no CONFIG_HEADERS.
15827 # This happens for instance with `./config.status Makefile'.
15828 if test -n "$CONFIG_HEADERS"; then
15829 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
15830 BEGIN {
15831 _ACEOF
15832
15833 # Transform confdefs.h into an awk script `defines.awk', embedded as
15834 # here-document in config.status, that substitutes the proper values into
15835 # config.h.in to produce config.h.
15836
15837 # Create a delimiter string that does not exist in confdefs.h, to ease
15838 # handling of long lines.
15839 ac_delim='%!_!# '
15840 for ac_last_try in false false :; do
15841 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
15842 if test -z "$ac_tt"; then
15843 break
15844 elif $ac_last_try; then
15845 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
15846 else
15847 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15848 fi
15849 done
15850
15851 # For the awk script, D is an array of macro values keyed by name,
15852 # likewise P contains macro parameters if any. Preserve backslash
15853 # newline sequences.
15854
15855 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15856 sed -n '
15857 s/.\{148\}/&'"$ac_delim"'/g
15858 t rset
15859 :rset
15860 s/^[ ]*#[ ]*define[ ][ ]*/ /
15861 t def
15862 d
15863 :def
15864 s/\\$//
15865 t bsnl
15866 s/["\\]/\\&/g
15867 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15868 D["\1"]=" \3"/p
15869 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
15870 d
15871 :bsnl
15872 s/["\\]/\\&/g
15873 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15874 D["\1"]=" \3\\\\\\n"\\/p
15875 t cont
15876 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15877 t cont
15878 d
15879 :cont
15880 n
15881 s/.\{148\}/&'"$ac_delim"'/g
15882 t clear
15883 :clear
15884 s/\\$//
15885 t bsnlc
15886 s/["\\]/\\&/g; s/^/"/; s/$/"/p
15887 d
15888 :bsnlc
15889 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15890 b cont
15891 ' <confdefs.h | sed '
15892 s/'"$ac_delim"'/"\\\
15893 "/g' >>$CONFIG_STATUS || ac_write_fail=1
15894
15895 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15896 for (key in D) D_is_set[key] = 1
15897 FS = ""
15898 }
15899 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15900 line = \$ 0
15901 split(line, arg, " ")
15902 if (arg[1] == "#") {
15903 defundef = arg[2]
15904 mac1 = arg[3]
15905 } else {
15906 defundef = substr(arg[1], 2)
15907 mac1 = arg[2]
15908 }
15909 split(mac1, mac2, "(") #)
15910 macro = mac2[1]
15911 prefix = substr(line, 1, index(line, defundef) - 1)
15912 if (D_is_set[macro]) {
15913 # Preserve the white space surrounding the "#".
15914 print prefix "define", macro P[macro] D[macro]
15915 next
15916 } else {
15917 # Replace #undef with comments. This is necessary, for example,
15918 # in the case of _POSIX_SOURCE, which is predefined and required
15919 # on some systems where configure will not decide to define it.
15920 if (defundef == "undef") {
15921 print "/*", prefix defundef, macro, "*/"
15922 next
15923 }
15924 }
15925 }
15926 { print }
15927 _ACAWK
15928 _ACEOF
15929 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15930 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
15931 fi # test -n "$CONFIG_HEADERS"
15932
15933
15934 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
15935 shift
15936 for ac_tag
15937 do
15938 case $ac_tag in
15939 :[FHLC]) ac_mode=$ac_tag; continue;;
15940 esac
15941 case $ac_mode$ac_tag in
15942 :[FHL]*:*);;
15943 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
15944 :[FH]-) ac_tag=-:-;;
15945 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15946 esac
15947 ac_save_IFS=$IFS
15948 IFS=:
15949 set x $ac_tag
15950 IFS=$ac_save_IFS
15951 shift
15952 ac_file=$1
15953 shift
15954
15955 case $ac_mode in
15956 :L) ac_source=$1;;
15957 :[FH])
15958 ac_file_inputs=
15959 for ac_f
15960 do
15961 case $ac_f in
15962 -) ac_f="$ac_tmp/stdin";;
15963 *) # Look for the file first in the build tree, then in the source tree
15964 # (if the path is not absolute). The absolute path cannot be DOS-style,
15965 # because $ac_f cannot contain `:'.
15966 test -f "$ac_f" ||
15967 case $ac_f in
15968 [\\/$]*) false;;
15969 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15970 esac ||
15971 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15972 esac
15973 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15974 as_fn_append ac_file_inputs " '$ac_f'"
15975 done
15976
15977 # Let's still pretend it is `configure' which instantiates (i.e., don't
15978 # use $as_me), people would be surprised to read:
15979 # /* config.h. Generated by config.status. */
15980 configure_input='Generated from '`
15981 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15982 `' by configure.'
15983 if test x"$ac_file" != x-; then
15984 configure_input="$ac_file. $configure_input"
15985 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15986 $as_echo "$as_me: creating $ac_file" >&6;}
15987 fi
15988 # Neutralize special characters interpreted by sed in replacement strings.
15989 case $configure_input in #(
15990 *\&* | *\|* | *\\* )
15991 ac_sed_conf_input=`$as_echo "$configure_input" |
15992 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15993 *) ac_sed_conf_input=$configure_input;;
15994 esac
15995
15996 case $ac_tag in
15997 *:-:* | *:-) cat >"$ac_tmp/stdin" \
15998 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
15999 esac
16000 ;;
16001 esac
16002
16003 ac_dir=`$as_dirname -- "$ac_file" ||
16004 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16005 X"$ac_file" : 'X\(//\)[^/]' \| \
16006 X"$ac_file" : 'X\(//\)$' \| \
16007 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16008 $as_echo X"$ac_file" |
16009 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16010 s//\1/
16011 q
16012 }
16013 /^X\(\/\/\)[^/].*/{
16014 s//\1/
16015 q
16016 }
16017 /^X\(\/\/\)$/{
16018 s//\1/
16019 q
16020 }
16021 /^X\(\/\).*/{
16022 s//\1/
16023 q
16024 }
16025 s/.*/./; q'`
16026 as_dir="$ac_dir"; as_fn_mkdir_p
16027 ac_builddir=.
16028
16029 case "$ac_dir" in
16030 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16031 *)
16032 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16033 # A ".." for each directory in $ac_dir_suffix.
16034 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16035 case $ac_top_builddir_sub in
16036 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16037 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16038 esac ;;
16039 esac
16040 ac_abs_top_builddir=$ac_pwd
16041 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16042 # for backward compatibility:
16043 ac_top_builddir=$ac_top_build_prefix
16044
16045 case $srcdir in
16046 .) # We are building in place.
16047 ac_srcdir=.
16048 ac_top_srcdir=$ac_top_builddir_sub
16049 ac_abs_top_srcdir=$ac_pwd ;;
16050 [\\/]* | ?:[\\/]* ) # Absolute name.
16051 ac_srcdir=$srcdir$ac_dir_suffix;
16052 ac_top_srcdir=$srcdir
16053 ac_abs_top_srcdir=$srcdir ;;
16054 *) # Relative name.
16055 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16056 ac_top_srcdir=$ac_top_build_prefix$srcdir
16057 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16058 esac
16059 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16060
16061
16062 case $ac_mode in
16063 :F)
16064 #
16065 # CONFIG_FILE
16066 #
16067
16068 case $INSTALL in
16069 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16070 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16071 esac
16072 ac_MKDIR_P=$MKDIR_P
16073 case $MKDIR_P in
16074 [\\/$]* | ?:[\\/]* ) ;;
16075 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16076 esac
16077 _ACEOF
16078
16079 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16080 # If the template does not know about datarootdir, expand it.
16081 # FIXME: This hack should be removed a few years after 2.60.
16082 ac_datarootdir_hack=; ac_datarootdir_seen=
16083 ac_sed_dataroot='
16084 /datarootdir/ {
16085 p
16086 q
16087 }
16088 /@datadir@/p
16089 /@docdir@/p
16090 /@infodir@/p
16091 /@localedir@/p
16092 /@mandir@/p'
16093 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16094 *datarootdir*) ac_datarootdir_seen=yes;;
16095 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16096 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16097 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16098 _ACEOF
16099 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16100 ac_datarootdir_hack='
16101 s&@datadir@&$datadir&g
16102 s&@docdir@&$docdir&g
16103 s&@infodir@&$infodir&g
16104 s&@localedir@&$localedir&g
16105 s&@mandir@&$mandir&g
16106 s&\\\${datarootdir}&$datarootdir&g' ;;
16107 esac
16108 _ACEOF
16109
16110 # Neutralize VPATH when `$srcdir' = `.'.
16111 # Shell code in configure.ac might set extrasub.
16112 # FIXME: do we really want to maintain this feature?
16113 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16114 ac_sed_extra="$ac_vpsub
16115 $extrasub
16116 _ACEOF
16117 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16118 :t
16119 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16120 s|@configure_input@|$ac_sed_conf_input|;t t
16121 s&@top_builddir@&$ac_top_builddir_sub&;t t
16122 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16123 s&@srcdir@&$ac_srcdir&;t t
16124 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16125 s&@top_srcdir@&$ac_top_srcdir&;t t
16126 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16127 s&@builddir@&$ac_builddir&;t t
16128 s&@abs_builddir@&$ac_abs_builddir&;t t
16129 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16130 s&@INSTALL@&$ac_INSTALL&;t t
16131 s&@MKDIR_P@&$ac_MKDIR_P&;t t
16132 $ac_datarootdir_hack
16133 "
16134 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
16135 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16136
16137 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16138 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16139 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
16140 "$ac_tmp/out"`; test -z "$ac_out"; } &&
16141 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16142 which seems to be undefined. Please make sure it is defined" >&5
16143 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16144 which seems to be undefined. Please make sure it is defined" >&2;}
16145
16146 rm -f "$ac_tmp/stdin"
16147 case $ac_file in
16148 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16149 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16150 esac \
16151 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16152 ;;
16153 :H)
16154 #
16155 # CONFIG_HEADER
16156 #
16157 if test x"$ac_file" != x-; then
16158 {
16159 $as_echo "/* $configure_input */" \
16160 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16161 } >"$ac_tmp/config.h" \
16162 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16163 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
16164 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16165 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16166 else
16167 rm -f "$ac_file"
16168 mv "$ac_tmp/config.h" "$ac_file" \
16169 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16170 fi
16171 else
16172 $as_echo "/* $configure_input */" \
16173 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
16174 || as_fn_error $? "could not create -" "$LINENO" 5
16175 fi
16176 # Compute "$ac_file"'s index in $config_headers.
16177 _am_arg="$ac_file"
16178 _am_stamp_count=1
16179 for _am_header in $config_headers :; do
16180 case $_am_header in
16181 $_am_arg | $_am_arg:* )
16182 break ;;
16183 * )
16184 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16185 esac
16186 done
16187 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16188 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16189 X"$_am_arg" : 'X\(//\)[^/]' \| \
16190 X"$_am_arg" : 'X\(//\)$' \| \
16191 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16192 $as_echo X"$_am_arg" |
16193 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16194 s//\1/
16195 q
16196 }
16197 /^X\(\/\/\)[^/].*/{
16198 s//\1/
16199 q
16200 }
16201 /^X\(\/\/\)$/{
16202 s//\1/
16203 q
16204 }
16205 /^X\(\/\).*/{
16206 s//\1/
16207 q
16208 }
16209 s/.*/./; q'`/stamp-h$_am_stamp_count
16210 ;;
16211
16212 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16213 $as_echo "$as_me: executing $ac_file commands" >&6;}
16214 ;;
16215 esac
16216
16217
16218 case $ac_file$ac_mode in
16219 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16220 # Autoconf 2.62 quotes --file arguments for eval, but not when files
16221 # are listed without --file. Let's play safe and only enable the eval
16222 # if we detect the quoting.
16223 case $CONFIG_FILES in
16224 *\'*) eval set x "$CONFIG_FILES" ;;
16225 *) set x $CONFIG_FILES ;;
16226 esac
16227 shift
16228 for mf
16229 do
16230 # Strip MF so we end up with the name of the file.
16231 mf=`echo "$mf" | sed -e 's/:.*$//'`
16232 # Check whether this is an Automake generated Makefile or not.
16233 # We used to match only the files named 'Makefile.in', but
16234 # some people rename them; so instead we look at the file content.
16235 # Grep'ing the first line is not enough: some people post-process
16236 # each Makefile.in and add a new line on top of each file to say so.
16237 # Grep'ing the whole file is not good either: AIX grep has a line
16238 # limit of 2048, but all sed's we know have understand at least 4000.
16239 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
16240 dirpart=`$as_dirname -- "$mf" ||
16241 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16242 X"$mf" : 'X\(//\)[^/]' \| \
16243 X"$mf" : 'X\(//\)$' \| \
16244 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16245 $as_echo X"$mf" |
16246 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16247 s//\1/
16248 q
16249 }
16250 /^X\(\/\/\)[^/].*/{
16251 s//\1/
16252 q
16253 }
16254 /^X\(\/\/\)$/{
16255 s//\1/
16256 q
16257 }
16258 /^X\(\/\).*/{
16259 s//\1/
16260 q
16261 }
16262 s/.*/./; q'`
16263 else
16264 continue
16265 fi
16266 # Extract the definition of DEPDIR, am__include, and am__quote
16267 # from the Makefile without running 'make'.
16268 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16269 test -z "$DEPDIR" && continue
16270 am__include=`sed -n 's/^am__include = //p' < "$mf"`
16271 test -z "am__include" && continue
16272 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16273 # Find all dependency output files, they are included files with
16274 # $(DEPDIR) in their names. We invoke sed twice because it is the
16275 # simplest approach to changing $(DEPDIR) to its actual value in the
16276 # expansion.
16277 for file in `sed -n "
16278 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16279 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
16280 # Make sure the directory exists.
16281 test -f "$dirpart/$file" && continue
16282 fdir=`$as_dirname -- "$file" ||
16283 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16284 X"$file" : 'X\(//\)[^/]' \| \
16285 X"$file" : 'X\(//\)$' \| \
16286 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
16287 $as_echo X"$file" |
16288 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16289 s//\1/
16290 q
16291 }
16292 /^X\(\/\/\)[^/].*/{
16293 s//\1/
16294 q
16295 }
16296 /^X\(\/\/\)$/{
16297 s//\1/
16298 q
16299 }
16300 /^X\(\/\).*/{
16301 s//\1/
16302 q
16303 }
16304 s/.*/./; q'`
16305 as_dir=$dirpart/$fdir; as_fn_mkdir_p
16306 # echo "creating $dirpart/$file"
16307 echo '# dummy' > "$dirpart/$file"
16308 done
16309 done
16310 }
16311 ;;
16312 "libtool":C)
16313
16314 # See if we are running on zsh, and set the options which allow our
16315 # commands through without removal of \ escapes.
16316 if test -n "${ZSH_VERSION+set}" ; then
16317 setopt NO_GLOB_SUBST
16318 fi
16319
16320 cfgfile="${ofile}T"
16321 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16322 $RM "$cfgfile"
16323
16324 cat <<_LT_EOF >> "$cfgfile"
16325 #! $SHELL
16326
16327 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16328 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
16329 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16330 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
16331 #
16332 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
16333 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
16334 # Foundation, Inc.
16335 # Written by Gordon Matzigkeit, 1996
16336 #
16337 # This file is part of GNU Libtool.
16338 #
16339 # GNU Libtool is free software; you can redistribute it and/or
16340 # modify it under the terms of the GNU General Public License as
16341 # published by the Free Software Foundation; either version 2 of
16342 # the License, or (at your option) any later version.
16343 #
16344 # As a special exception to the GNU General Public License,
16345 # if you distribute this file as part of a program or library that
16346 # is built using GNU Libtool, you may include this file under the
16347 # same distribution terms that you use for the rest of that program.
16348 #
16349 # GNU Libtool is distributed in the hope that it will be useful,
16350 # but WITHOUT ANY WARRANTY; without even the implied warranty of
16351 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16352 # GNU General Public License for more details.
16353 #
16354 # You should have received a copy of the GNU General Public License
16355 # along with GNU Libtool; see the file COPYING. If not, a copy
16356 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
16357 # obtained by writing to the Free Software Foundation, Inc.,
16358 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16359
16360
16361 # The names of the tagged configurations supported by this script.
16362 available_tags=""
16363
16364 # ### BEGIN LIBTOOL CONFIG
16365
16366 # Which release of libtool.m4 was used?
16367 macro_version=$macro_version
16368 macro_revision=$macro_revision
16369
16370 # Whether or not to build static libraries.
16371 build_old_libs=$enable_static
16372
16373 # Whether or not to build shared libraries.
16374 build_libtool_libs=$enable_shared
16375
16376 # What type of objects to build.
16377 pic_mode=$pic_mode
16378
16379 # Whether or not to optimize for fast installation.
16380 fast_install=$enable_fast_install
16381
16382 # Shell to use when invoking shell scripts.
16383 SHELL=$lt_SHELL
16384
16385 # An echo program that protects backslashes.
16386 ECHO=$lt_ECHO
16387
16388 # The PATH separator for the build system.
16389 PATH_SEPARATOR=$lt_PATH_SEPARATOR
16390
16391 # The host system.
16392 host_alias=$host_alias
16393 host=$host
16394 host_os=$host_os
16395
16396 # The build system.
16397 build_alias=$build_alias
16398 build=$build
16399 build_os=$build_os
16400
16401 # A sed program that does not truncate output.
16402 SED=$lt_SED
16403
16404 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
16405 Xsed="\$SED -e 1s/^X//"
16406
16407 # A grep program that handles long lines.
16408 GREP=$lt_GREP
16409
16410 # An ERE matcher.
16411 EGREP=$lt_EGREP
16412
16413 # A literal string matcher.
16414 FGREP=$lt_FGREP
16415
16416 # A BSD- or MS-compatible name lister.
16417 NM=$lt_NM
16418
16419 # Whether we need soft or hard links.
16420 LN_S=$lt_LN_S
16421
16422 # What is the maximum length of a command?
16423 max_cmd_len=$max_cmd_len
16424
16425 # Object file suffix (normally "o").
16426 objext=$ac_objext
16427
16428 # Executable file suffix (normally "").
16429 exeext=$exeext
16430
16431 # whether the shell understands "unset".
16432 lt_unset=$lt_unset
16433
16434 # turn spaces into newlines.
16435 SP2NL=$lt_lt_SP2NL
16436
16437 # turn newlines into spaces.
16438 NL2SP=$lt_lt_NL2SP
16439
16440 # convert \$build file names to \$host format.
16441 to_host_file_cmd=$lt_cv_to_host_file_cmd
16442
16443 # convert \$build files to toolchain format.
16444 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
16445
16446 # An object symbol dumper.
16447 OBJDUMP=$lt_OBJDUMP
16448
16449 # Method to check whether dependent libraries are shared objects.
16450 deplibs_check_method=$lt_deplibs_check_method
16451
16452 # Command to use when deplibs_check_method = "file_magic".
16453 file_magic_cmd=$lt_file_magic_cmd
16454
16455 # How to find potential files when deplibs_check_method = "file_magic".
16456 file_magic_glob=$lt_file_magic_glob
16457
16458 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
16459 want_nocaseglob=$lt_want_nocaseglob
16460
16461 # DLL creation program.
16462 DLLTOOL=$lt_DLLTOOL
16463
16464 # Command to associate shared and link libraries.
16465 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
16466
16467 # The archiver.
16468 AR=$lt_AR
16469
16470 # Flags to create an archive.
16471 AR_FLAGS=$lt_AR_FLAGS
16472
16473 # How to feed a file listing to the archiver.
16474 archiver_list_spec=$lt_archiver_list_spec
16475
16476 # A symbol stripping program.
16477 STRIP=$lt_STRIP
16478
16479 # Commands used to install an old-style archive.
16480 RANLIB=$lt_RANLIB
16481 old_postinstall_cmds=$lt_old_postinstall_cmds
16482 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16483
16484 # Whether to use a lock for old archive extraction.
16485 lock_old_archive_extraction=$lock_old_archive_extraction
16486
16487 # A C compiler.
16488 LTCC=$lt_CC
16489
16490 # LTCC compiler flags.
16491 LTCFLAGS=$lt_CFLAGS
16492
16493 # Take the output of nm and produce a listing of raw symbols and C names.
16494 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16495
16496 # Transform the output of nm in a proper C declaration.
16497 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16498
16499 # Transform the output of nm in a C name address pair.
16500 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16501
16502 # Transform the output of nm in a C name address pair when lib prefix is needed.
16503 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16504
16505 # Specify filename containing input files for \$NM.
16506 nm_file_list_spec=$lt_nm_file_list_spec
16507
16508 # The root where to search for dependent libraries,and in which our libraries should be installed.
16509 lt_sysroot=$lt_sysroot
16510
16511 # The name of the directory that contains temporary libtool files.
16512 objdir=$objdir
16513
16514 # Used to examine libraries when file_magic_cmd begins with "file".
16515 MAGIC_CMD=$MAGIC_CMD
16516
16517 # Must we lock files when doing compilation?
16518 need_locks=$lt_need_locks
16519
16520 # Manifest tool.
16521 MANIFEST_TOOL=$lt_MANIFEST_TOOL
16522
16523 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16524 DSYMUTIL=$lt_DSYMUTIL
16525
16526 # Tool to change global to local symbols on Mac OS X.
16527 NMEDIT=$lt_NMEDIT
16528
16529 # Tool to manipulate fat objects and archives on Mac OS X.
16530 LIPO=$lt_LIPO
16531
16532 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
16533 OTOOL=$lt_OTOOL
16534
16535 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16536 OTOOL64=$lt_OTOOL64
16537
16538 # Old archive suffix (normally "a").
16539 libext=$libext
16540
16541 # Shared library suffix (normally ".so").
16542 shrext_cmds=$lt_shrext_cmds
16543
16544 # The commands to extract the exported symbol list from a shared archive.
16545 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16546
16547 # Variables whose values should be saved in libtool wrapper scripts and
16548 # restored at link time.
16549 variables_saved_for_relink=$lt_variables_saved_for_relink
16550
16551 # Do we need the "lib" prefix for modules?
16552 need_lib_prefix=$need_lib_prefix
16553
16554 # Do we need a version for libraries?
16555 need_version=$need_version
16556
16557 # Library versioning type.
16558 version_type=$version_type
16559
16560 # Shared library runtime path variable.
16561 runpath_var=$runpath_var
16562
16563 # Shared library path variable.
16564 shlibpath_var=$shlibpath_var
16565
16566 # Is shlibpath searched before the hard-coded library search path?
16567 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16568
16569 # Format of library name prefix.
16570 libname_spec=$lt_libname_spec
16571
16572 # List of archive names. First name is the real one, the rest are links.
16573 # The last name is the one that the linker finds with -lNAME
16574 library_names_spec=$lt_library_names_spec
16575
16576 # The coded name of the library, if different from the real name.
16577 soname_spec=$lt_soname_spec
16578
16579 # Permission mode override for installation of shared libraries.
16580 install_override_mode=$lt_install_override_mode
16581
16582 # Command to use after installation of a shared archive.
16583 postinstall_cmds=$lt_postinstall_cmds
16584
16585 # Command to use after uninstallation of a shared archive.
16586 postuninstall_cmds=$lt_postuninstall_cmds
16587
16588 # Commands used to finish a libtool library installation in a directory.
16589 finish_cmds=$lt_finish_cmds
16590
16591 # As "finish_cmds", except a single script fragment to be evaled but
16592 # not shown.
16593 finish_eval=$lt_finish_eval
16594
16595 # Whether we should hardcode library paths into libraries.
16596 hardcode_into_libs=$hardcode_into_libs
16597
16598 # Compile-time system search path for libraries.
16599 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16600
16601 # Run-time system search path for libraries.
16602 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16603
16604 # Whether dlopen is supported.
16605 dlopen_support=$enable_dlopen
16606
16607 # Whether dlopen of programs is supported.
16608 dlopen_self=$enable_dlopen_self
16609
16610 # Whether dlopen of statically linked programs is supported.
16611 dlopen_self_static=$enable_dlopen_self_static
16612
16613 # Commands to strip libraries.
16614 old_striplib=$lt_old_striplib
16615 striplib=$lt_striplib
16616
16617
16618 # The linker used to build libraries.
16619 LD=$lt_LD
16620
16621 # How to create reloadable object files.
16622 reload_flag=$lt_reload_flag
16623 reload_cmds=$lt_reload_cmds
16624
16625 # Commands used to build an old-style archive.
16626 old_archive_cmds=$lt_old_archive_cmds
16627
16628 # A language specific compiler.
16629 CC=$lt_compiler
16630
16631 # Is the compiler the GNU compiler?
16632 with_gcc=$GCC
16633
16634 # Compiler flag to turn off builtin functions.
16635 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16636
16637 # Additional compiler flags for building library objects.
16638 pic_flag=$lt_lt_prog_compiler_pic
16639
16640 # How to pass a linker flag through the compiler.
16641 wl=$lt_lt_prog_compiler_wl
16642
16643 # Compiler flag to prevent dynamic linking.
16644 link_static_flag=$lt_lt_prog_compiler_static
16645
16646 # Does compiler simultaneously support -c and -o options?
16647 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16648
16649 # Whether or not to add -lc for building shared libraries.
16650 build_libtool_need_lc=$archive_cmds_need_lc
16651
16652 # Whether or not to disallow shared libs when runtime libs are static.
16653 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16654
16655 # Compiler flag to allow reflexive dlopens.
16656 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16657
16658 # Compiler flag to generate shared objects directly from archives.
16659 whole_archive_flag_spec=$lt_whole_archive_flag_spec
16660
16661 # Whether the compiler copes with passing no objects directly.
16662 compiler_needs_object=$lt_compiler_needs_object
16663
16664 # Create an old-style archive from a shared archive.
16665 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16666
16667 # Create a temporary old-style archive to link instead of a shared archive.
16668 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16669
16670 # Commands used to build a shared archive.
16671 archive_cmds=$lt_archive_cmds
16672 archive_expsym_cmds=$lt_archive_expsym_cmds
16673
16674 # Commands used to build a loadable module if different from building
16675 # a shared archive.
16676 module_cmds=$lt_module_cmds
16677 module_expsym_cmds=$lt_module_expsym_cmds
16678
16679 # Whether we are building with GNU ld or not.
16680 with_gnu_ld=$lt_with_gnu_ld
16681
16682 # Flag that allows shared libraries with undefined symbols to be built.
16683 allow_undefined_flag=$lt_allow_undefined_flag
16684
16685 # Flag that enforces no undefined symbols.
16686 no_undefined_flag=$lt_no_undefined_flag
16687
16688 # Flag to hardcode \$libdir into a binary during linking.
16689 # This must work even if \$libdir does not exist
16690 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16691
16692 # Whether we need a single "-rpath" flag with a separated argument.
16693 hardcode_libdir_separator=$lt_hardcode_libdir_separator
16694
16695 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16696 # DIR into the resulting binary.
16697 hardcode_direct=$hardcode_direct
16698
16699 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16700 # DIR into the resulting binary and the resulting library dependency is
16701 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
16702 # library is relocated.
16703 hardcode_direct_absolute=$hardcode_direct_absolute
16704
16705 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16706 # into the resulting binary.
16707 hardcode_minus_L=$hardcode_minus_L
16708
16709 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16710 # into the resulting binary.
16711 hardcode_shlibpath_var=$hardcode_shlibpath_var
16712
16713 # Set to "yes" if building a shared library automatically hardcodes DIR
16714 # into the library and all subsequent libraries and executables linked
16715 # against it.
16716 hardcode_automatic=$hardcode_automatic
16717
16718 # Set to yes if linker adds runtime paths of dependent libraries
16719 # to runtime path list.
16720 inherit_rpath=$inherit_rpath
16721
16722 # Whether libtool must link a program against all its dependency libraries.
16723 link_all_deplibs=$link_all_deplibs
16724
16725 # Set to "yes" if exported symbols are required.
16726 always_export_symbols=$always_export_symbols
16727
16728 # The commands to list exported symbols.
16729 export_symbols_cmds=$lt_export_symbols_cmds
16730
16731 # Symbols that should not be listed in the preloaded symbols.
16732 exclude_expsyms=$lt_exclude_expsyms
16733
16734 # Symbols that must always be exported.
16735 include_expsyms=$lt_include_expsyms
16736
16737 # Commands necessary for linking programs (against libraries) with templates.
16738 prelink_cmds=$lt_prelink_cmds
16739
16740 # Commands necessary for finishing linking programs.
16741 postlink_cmds=$lt_postlink_cmds
16742
16743 # Specify filename containing input files.
16744 file_list_spec=$lt_file_list_spec
16745
16746 # How to hardcode a shared library path into an executable.
16747 hardcode_action=$hardcode_action
16748
16749 # ### END LIBTOOL CONFIG
16750
16751 _LT_EOF
16752
16753 case $host_os in
16754 aix3*)
16755 cat <<\_LT_EOF >> "$cfgfile"
16756 # AIX sometimes has problems with the GCC collect2 program. For some
16757 # reason, if we set the COLLECT_NAMES environment variable, the problems
16758 # vanish in a puff of smoke.
16759 if test "X${COLLECT_NAMES+set}" != Xset; then
16760 COLLECT_NAMES=
16761 export COLLECT_NAMES
16762 fi
16763 _LT_EOF
16764 ;;
16765 esac
16766
16767
16768 ltmain="$ac_aux_dir/ltmain.sh"
16769
16770
16771 # We use sed instead of cat because bash on DJGPP gets confused if
16772 # if finds mixed CR/LF and LF-only lines. Since sed operates in
16773 # text mode, it properly converts lines to CR/LF. This bash problem
16774 # is reportedly fixed, but why not run on old versions too?
16775 sed '$q' "$ltmain" >> "$cfgfile" \
16776 || (rm -f "$cfgfile"; exit 1)
16777
16778 if test x"$xsi_shell" = xyes; then
16779 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
16780 func_dirname ()\
16781 {\
16782 \ case ${1} in\
16783 \ */*) func_dirname_result="${1%/*}${2}" ;;\
16784 \ * ) func_dirname_result="${3}" ;;\
16785 \ esac\
16786 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
16787 && mv -f "$cfgfile.tmp" "$cfgfile" \
16788 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16789 test 0 -eq $? || _lt_function_replace_fail=:
16790
16791
16792 sed -e '/^func_basename ()$/,/^} # func_basename /c\
16793 func_basename ()\
16794 {\
16795 \ func_basename_result="${1##*/}"\
16796 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
16797 && mv -f "$cfgfile.tmp" "$cfgfile" \
16798 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16799 test 0 -eq $? || _lt_function_replace_fail=:
16800
16801
16802 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
16803 func_dirname_and_basename ()\
16804 {\
16805 \ case ${1} in\
16806 \ */*) func_dirname_result="${1%/*}${2}" ;;\
16807 \ * ) func_dirname_result="${3}" ;;\
16808 \ esac\
16809 \ func_basename_result="${1##*/}"\
16810 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
16811 && mv -f "$cfgfile.tmp" "$cfgfile" \
16812 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16813 test 0 -eq $? || _lt_function_replace_fail=:
16814
16815
16816 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
16817 func_stripname ()\
16818 {\
16819 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
16820 \ # positional parameters, so assign one to ordinary parameter first.\
16821 \ func_stripname_result=${3}\
16822 \ func_stripname_result=${func_stripname_result#"${1}"}\
16823 \ func_stripname_result=${func_stripname_result%"${2}"}\
16824 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
16825 && mv -f "$cfgfile.tmp" "$cfgfile" \
16826 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16827 test 0 -eq $? || _lt_function_replace_fail=:
16828
16829
16830 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
16831 func_split_long_opt ()\
16832 {\
16833 \ func_split_long_opt_name=${1%%=*}\
16834 \ func_split_long_opt_arg=${1#*=}\
16835 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
16836 && mv -f "$cfgfile.tmp" "$cfgfile" \
16837 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16838 test 0 -eq $? || _lt_function_replace_fail=:
16839
16840
16841 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
16842 func_split_short_opt ()\
16843 {\
16844 \ func_split_short_opt_arg=${1#??}\
16845 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
16846 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
16847 && mv -f "$cfgfile.tmp" "$cfgfile" \
16848 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16849 test 0 -eq $? || _lt_function_replace_fail=:
16850
16851
16852 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
16853 func_lo2o ()\
16854 {\
16855 \ case ${1} in\
16856 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
16857 \ *) func_lo2o_result=${1} ;;\
16858 \ esac\
16859 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
16860 && mv -f "$cfgfile.tmp" "$cfgfile" \
16861 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16862 test 0 -eq $? || _lt_function_replace_fail=:
16863
16864
16865 sed -e '/^func_xform ()$/,/^} # func_xform /c\
16866 func_xform ()\
16867 {\
16868 func_xform_result=${1%.*}.lo\
16869 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
16870 && mv -f "$cfgfile.tmp" "$cfgfile" \
16871 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16872 test 0 -eq $? || _lt_function_replace_fail=:
16873
16874
16875 sed -e '/^func_arith ()$/,/^} # func_arith /c\
16876 func_arith ()\
16877 {\
16878 func_arith_result=$(( $* ))\
16879 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
16880 && mv -f "$cfgfile.tmp" "$cfgfile" \
16881 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16882 test 0 -eq $? || _lt_function_replace_fail=:
16883
16884
16885 sed -e '/^func_len ()$/,/^} # func_len /c\
16886 func_len ()\
16887 {\
16888 func_len_result=${#1}\
16889 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
16890 && mv -f "$cfgfile.tmp" "$cfgfile" \
16891 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16892 test 0 -eq $? || _lt_function_replace_fail=:
16893
16894 fi
16895
16896 if test x"$lt_shell_append" = xyes; then
16897 sed -e '/^func_append ()$/,/^} # func_append /c\
16898 func_append ()\
16899 {\
16900 eval "${1}+=\\${2}"\
16901 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
16902 && mv -f "$cfgfile.tmp" "$cfgfile" \
16903 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16904 test 0 -eq $? || _lt_function_replace_fail=:
16905
16906
16907 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
16908 func_append_quoted ()\
16909 {\
16910 \ func_quote_for_eval "${2}"\
16911 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
16912 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
16913 && mv -f "$cfgfile.tmp" "$cfgfile" \
16914 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16915 test 0 -eq $? || _lt_function_replace_fail=:
16916
16917
16918 # Save a `func_append' function call where possible by direct use of '+='
16919 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
16920 && mv -f "$cfgfile.tmp" "$cfgfile" \
16921 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16922 test 0 -eq $? || _lt_function_replace_fail=:
16923 else
16924 # Save a `func_append' function call even when '+=' is not available
16925 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
16926 && mv -f "$cfgfile.tmp" "$cfgfile" \
16927 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16928 test 0 -eq $? || _lt_function_replace_fail=:
16929 fi
16930
16931 if test x"$_lt_function_replace_fail" = x":"; then
16932 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
16933 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
16934 fi
16935
16936
16937 mv -f "$cfgfile" "$ofile" ||
16938 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16939 chmod +x "$ofile"
16940
16941 ;;
16942
16943 esac
16944 done # for ac_tag
16945
16946
16947 as_fn_exit 0
16948 _ACEOF
16949 ac_clean_files=$ac_clean_files_save
16950
16951 test $ac_write_fail = 0 ||
16952 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
16953
16954
16955 # configure is writing to config.log, and then calls config.status.
16956 # config.status does its own redirection, appending to config.log.
16957 # Unfortunately, on DOS this fails, as config.log is still kept open
16958 # by configure, so config.status won't be able to write to it; its
16959 # output is simply discarded. So we exec the FD to /dev/null,
16960 # effectively closing config.log, so it can be properly (re)opened and
16961 # appended to by config.status. When coming back to configure, we
16962 # need to make the FD available again.
16963 if test "$no_create" != yes; then
16964 ac_cs_success=:
16965 ac_config_status_args=
16966 test "$silent" = yes &&
16967 ac_config_status_args="$ac_config_status_args --quiet"
16968 exec 5>/dev/null
16969 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16970 exec 5>>config.log
16971 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16972 # would make configure fail if this is the last instruction.
16973 $ac_cs_success || as_fn_exit 1
16974 fi
16975 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16976 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16977 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16978 fi
16979

Properties

Name Value
svn:executable *