ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/ircd-hybrid/branches/8.2.x/configure
Revision: 3815
Committed: Tue Jun 3 20:13:48 2014 UTC (9 years, 10 months ago) by michael
File size: 521070 byte(s)
Log Message:
- Added -Wlogical-op to warning options

File Contents

# Content
1 #! /bin/sh
2 # From configure.ac Id: configure.ac 3725 2014-05-31 16:29:38Z michael .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.69 for ircd-hybrid 8.2.0beta3.
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='8.2.0beta3'
597 PACKAGE_STRING='ircd-hybrid 8.2.0beta3'
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 ENABLE_SSL_FALSE
652 ENABLE_SSL_TRUE
653 LTDLOPEN
654 LT_CONFIG_H
655 CONVENIENCE_LTDL_FALSE
656 CONVENIENCE_LTDL_TRUE
657 INSTALL_LTDL_FALSE
658 INSTALL_LTDL_TRUE
659 ARGZ_H
660 sys_symbol_underscore
661 LIBADD_DL
662 LT_DLPREOPEN
663 LIBADD_DLD_LINK
664 LIBADD_SHL_LOAD
665 LIBADD_DLOPEN
666 LT_DLLOADERS
667 INCLTDL
668 LTDLINCL
669 LTDLDEPS
670 LIBLTDL
671 CPP
672 OTOOL64
673 OTOOL
674 LIPO
675 NMEDIT
676 DSYMUTIL
677 MANIFEST_TOOL
678 RANLIB
679 ac_ct_AR
680 AR
681 DLLTOOL
682 OBJDUMP
683 LN_S
684 NM
685 ac_ct_DUMPBIN
686 DUMPBIN
687 LD
688 FGREP
689 EGREP
690 GREP
691 SED
692 host_os
693 host_vendor
694 host_cpu
695 host
696 build_os
697 build_vendor
698 build_cpu
699 build
700 LIBTOOL
701 LEXLIB
702 LEX_OUTPUT_ROOT
703 LEX
704 YFLAGS
705 YACC
706 am__fastdepCC_FALSE
707 am__fastdepCC_TRUE
708 CCDEPMODE
709 am__nodep
710 AMDEPBACKSLASH
711 AMDEP_FALSE
712 AMDEP_TRUE
713 am__quote
714 am__include
715 DEPDIR
716 OBJEXT
717 EXEEXT
718 ac_ct_CC
719 CPPFLAGS
720 LDFLAGS
721 CFLAGS
722 CC
723 MAINT
724 MAINTAINER_MODE_FALSE
725 MAINTAINER_MODE_TRUE
726 AM_BACKSLASH
727 AM_DEFAULT_VERBOSITY
728 AM_DEFAULT_V
729 AM_V
730 am__untar
731 am__tar
732 AMTAR
733 am__leading_dot
734 SET_MAKE
735 AWK
736 mkdir_p
737 MKDIR_P
738 INSTALL_STRIP_PROGRAM
739 STRIP
740 install_sh
741 MAKEINFO
742 AUTOHEADER
743 AUTOMAKE
744 AUTOCONF
745 ACLOCAL
746 VERSION
747 PACKAGE
748 CYGPATH_W
749 am__isrc
750 INSTALL_DATA
751 INSTALL_SCRIPT
752 INSTALL_PROGRAM
753 target_alias
754 host_alias
755 build_alias
756 LIBS
757 ECHO_T
758 ECHO_N
759 ECHO_C
760 DEFS
761 mandir
762 localedir
763 libdir
764 psdir
765 pdfdir
766 dvidir
767 htmldir
768 infodir
769 docdir
770 oldincludedir
771 includedir
772 localstatedir
773 sharedstatedir
774 sysconfdir
775 datadir
776 datarootdir
777 libexecdir
778 sbindir
779 bindir
780 program_transform_name
781 prefix
782 exec_prefix
783 PACKAGE_URL
784 PACKAGE_BUGREPORT
785 PACKAGE_STRING
786 PACKAGE_VERSION
787 PACKAGE_TARNAME
788 PACKAGE_NAME
789 PATH_SEPARATOR
790 SHELL'
791 ac_subst_files=''
792 ac_user_opts='
793 enable_option_checking
794 enable_silent_rules
795 enable_maintainer_mode
796 enable_dependency_tracking
797 enable_static
798 enable_shared
799 with_pic
800 enable_fast_install
801 with_gnu_ld
802 with_sysroot
803 enable_libtool_lock
804 with_included_ltdl
805 with_ltdl_include
806 with_ltdl_lib
807 enable_ltdl_install
808 enable_libgeoip
809 enable_openssl
810 enable_assert
811 enable_kqueue
812 enable_epoll
813 enable_devpoll
814 enable_poll
815 enable_select
816 enable_debugging
817 enable_warnings
818 '
819 ac_precious_vars='build_alias
820 host_alias
821 target_alias
822 CC
823 CFLAGS
824 LDFLAGS
825 LIBS
826 CPPFLAGS
827 YACC
828 YFLAGS
829 CPP'
830
831
832 # Initialize some variables set by options.
833 ac_init_help=
834 ac_init_version=false
835 ac_unrecognized_opts=
836 ac_unrecognized_sep=
837 # The variables have the same names as the options, with
838 # dashes changed to underlines.
839 cache_file=/dev/null
840 exec_prefix=NONE
841 no_create=
842 no_recursion=
843 prefix=NONE
844 program_prefix=NONE
845 program_suffix=NONE
846 program_transform_name=s,x,x,
847 silent=
848 site=
849 srcdir=
850 verbose=
851 x_includes=NONE
852 x_libraries=NONE
853
854 # Installation directory options.
855 # These are left unexpanded so users can "make install exec_prefix=/foo"
856 # and all the variables that are supposed to be based on exec_prefix
857 # by default will actually change.
858 # Use braces instead of parens because sh, perl, etc. also accept them.
859 # (The list follows the same order as the GNU Coding Standards.)
860 bindir='${exec_prefix}/bin'
861 sbindir='${exec_prefix}/sbin'
862 libexecdir='${exec_prefix}/libexec'
863 datarootdir='${prefix}/share'
864 datadir='${datarootdir}'
865 sysconfdir='${prefix}/etc'
866 sharedstatedir='${prefix}/com'
867 localstatedir='${prefix}/var'
868 includedir='${prefix}/include'
869 oldincludedir='/usr/include'
870 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
871 infodir='${datarootdir}/info'
872 htmldir='${docdir}'
873 dvidir='${docdir}'
874 pdfdir='${docdir}'
875 psdir='${docdir}'
876 libdir='${exec_prefix}/lib'
877 localedir='${datarootdir}/locale'
878 mandir='${datarootdir}/man'
879
880 ac_prev=
881 ac_dashdash=
882 for ac_option
883 do
884 # If the previous option needs an argument, assign it.
885 if test -n "$ac_prev"; then
886 eval $ac_prev=\$ac_option
887 ac_prev=
888 continue
889 fi
890
891 case $ac_option in
892 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
893 *=) ac_optarg= ;;
894 *) ac_optarg=yes ;;
895 esac
896
897 # Accept the important Cygnus configure options, so we can diagnose typos.
898
899 case $ac_dashdash$ac_option in
900 --)
901 ac_dashdash=yes ;;
902
903 -bindir | --bindir | --bindi | --bind | --bin | --bi)
904 ac_prev=bindir ;;
905 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
906 bindir=$ac_optarg ;;
907
908 -build | --build | --buil | --bui | --bu)
909 ac_prev=build_alias ;;
910 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
911 build_alias=$ac_optarg ;;
912
913 -cache-file | --cache-file | --cache-fil | --cache-fi \
914 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
915 ac_prev=cache_file ;;
916 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
917 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
918 cache_file=$ac_optarg ;;
919
920 --config-cache | -C)
921 cache_file=config.cache ;;
922
923 -datadir | --datadir | --datadi | --datad)
924 ac_prev=datadir ;;
925 -datadir=* | --datadir=* | --datadi=* | --datad=*)
926 datadir=$ac_optarg ;;
927
928 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
929 | --dataroo | --dataro | --datar)
930 ac_prev=datarootdir ;;
931 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
932 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
933 datarootdir=$ac_optarg ;;
934
935 -disable-* | --disable-*)
936 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
937 # Reject names that are not valid shell variable names.
938 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
939 as_fn_error $? "invalid feature name: $ac_useropt"
940 ac_useropt_orig=$ac_useropt
941 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
942 case $ac_user_opts in
943 *"
944 "enable_$ac_useropt"
945 "*) ;;
946 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
947 ac_unrecognized_sep=', ';;
948 esac
949 eval enable_$ac_useropt=no ;;
950
951 -docdir | --docdir | --docdi | --doc | --do)
952 ac_prev=docdir ;;
953 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
954 docdir=$ac_optarg ;;
955
956 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
957 ac_prev=dvidir ;;
958 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
959 dvidir=$ac_optarg ;;
960
961 -enable-* | --enable-*)
962 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
963 # Reject names that are not valid shell variable names.
964 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
965 as_fn_error $? "invalid feature name: $ac_useropt"
966 ac_useropt_orig=$ac_useropt
967 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
968 case $ac_user_opts in
969 *"
970 "enable_$ac_useropt"
971 "*) ;;
972 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
973 ac_unrecognized_sep=', ';;
974 esac
975 eval enable_$ac_useropt=\$ac_optarg ;;
976
977 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
978 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
979 | --exec | --exe | --ex)
980 ac_prev=exec_prefix ;;
981 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
982 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
983 | --exec=* | --exe=* | --ex=*)
984 exec_prefix=$ac_optarg ;;
985
986 -gas | --gas | --ga | --g)
987 # Obsolete; use --with-gas.
988 with_gas=yes ;;
989
990 -help | --help | --hel | --he | -h)
991 ac_init_help=long ;;
992 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
993 ac_init_help=recursive ;;
994 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
995 ac_init_help=short ;;
996
997 -host | --host | --hos | --ho)
998 ac_prev=host_alias ;;
999 -host=* | --host=* | --hos=* | --ho=*)
1000 host_alias=$ac_optarg ;;
1001
1002 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1003 ac_prev=htmldir ;;
1004 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1005 | --ht=*)
1006 htmldir=$ac_optarg ;;
1007
1008 -includedir | --includedir | --includedi | --included | --include \
1009 | --includ | --inclu | --incl | --inc)
1010 ac_prev=includedir ;;
1011 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1012 | --includ=* | --inclu=* | --incl=* | --inc=*)
1013 includedir=$ac_optarg ;;
1014
1015 -infodir | --infodir | --infodi | --infod | --info | --inf)
1016 ac_prev=infodir ;;
1017 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1018 infodir=$ac_optarg ;;
1019
1020 -libdir | --libdir | --libdi | --libd)
1021 ac_prev=libdir ;;
1022 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1023 libdir=$ac_optarg ;;
1024
1025 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1026 | --libexe | --libex | --libe)
1027 ac_prev=libexecdir ;;
1028 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1029 | --libexe=* | --libex=* | --libe=*)
1030 libexecdir=$ac_optarg ;;
1031
1032 -localedir | --localedir | --localedi | --localed | --locale)
1033 ac_prev=localedir ;;
1034 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1035 localedir=$ac_optarg ;;
1036
1037 -localstatedir | --localstatedir | --localstatedi | --localstated \
1038 | --localstate | --localstat | --localsta | --localst | --locals)
1039 ac_prev=localstatedir ;;
1040 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1041 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1042 localstatedir=$ac_optarg ;;
1043
1044 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1045 ac_prev=mandir ;;
1046 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1047 mandir=$ac_optarg ;;
1048
1049 -nfp | --nfp | --nf)
1050 # Obsolete; use --without-fp.
1051 with_fp=no ;;
1052
1053 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1054 | --no-cr | --no-c | -n)
1055 no_create=yes ;;
1056
1057 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1058 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1059 no_recursion=yes ;;
1060
1061 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1062 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1063 | --oldin | --oldi | --old | --ol | --o)
1064 ac_prev=oldincludedir ;;
1065 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1066 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1067 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1068 oldincludedir=$ac_optarg ;;
1069
1070 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1071 ac_prev=prefix ;;
1072 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1073 prefix=$ac_optarg ;;
1074
1075 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1076 | --program-pre | --program-pr | --program-p)
1077 ac_prev=program_prefix ;;
1078 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1079 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1080 program_prefix=$ac_optarg ;;
1081
1082 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1083 | --program-suf | --program-su | --program-s)
1084 ac_prev=program_suffix ;;
1085 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1086 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1087 program_suffix=$ac_optarg ;;
1088
1089 -program-transform-name | --program-transform-name \
1090 | --program-transform-nam | --program-transform-na \
1091 | --program-transform-n | --program-transform- \
1092 | --program-transform | --program-transfor \
1093 | --program-transfo | --program-transf \
1094 | --program-trans | --program-tran \
1095 | --progr-tra | --program-tr | --program-t)
1096 ac_prev=program_transform_name ;;
1097 -program-transform-name=* | --program-transform-name=* \
1098 | --program-transform-nam=* | --program-transform-na=* \
1099 | --program-transform-n=* | --program-transform-=* \
1100 | --program-transform=* | --program-transfor=* \
1101 | --program-transfo=* | --program-transf=* \
1102 | --program-trans=* | --program-tran=* \
1103 | --progr-tra=* | --program-tr=* | --program-t=*)
1104 program_transform_name=$ac_optarg ;;
1105
1106 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1107 ac_prev=pdfdir ;;
1108 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1109 pdfdir=$ac_optarg ;;
1110
1111 -psdir | --psdir | --psdi | --psd | --ps)
1112 ac_prev=psdir ;;
1113 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1114 psdir=$ac_optarg ;;
1115
1116 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1117 | -silent | --silent | --silen | --sile | --sil)
1118 silent=yes ;;
1119
1120 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1121 ac_prev=sbindir ;;
1122 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1123 | --sbi=* | --sb=*)
1124 sbindir=$ac_optarg ;;
1125
1126 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1127 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1128 | --sharedst | --shareds | --shared | --share | --shar \
1129 | --sha | --sh)
1130 ac_prev=sharedstatedir ;;
1131 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1132 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1133 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1134 | --sha=* | --sh=*)
1135 sharedstatedir=$ac_optarg ;;
1136
1137 -site | --site | --sit)
1138 ac_prev=site ;;
1139 -site=* | --site=* | --sit=*)
1140 site=$ac_optarg ;;
1141
1142 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1143 ac_prev=srcdir ;;
1144 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1145 srcdir=$ac_optarg ;;
1146
1147 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1148 | --syscon | --sysco | --sysc | --sys | --sy)
1149 ac_prev=sysconfdir ;;
1150 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1151 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1152 sysconfdir=$ac_optarg ;;
1153
1154 -target | --target | --targe | --targ | --tar | --ta | --t)
1155 ac_prev=target_alias ;;
1156 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1157 target_alias=$ac_optarg ;;
1158
1159 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1160 verbose=yes ;;
1161
1162 -version | --version | --versio | --versi | --vers | -V)
1163 ac_init_version=: ;;
1164
1165 -with-* | --with-*)
1166 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1167 # Reject names that are not valid shell variable names.
1168 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1169 as_fn_error $? "invalid package name: $ac_useropt"
1170 ac_useropt_orig=$ac_useropt
1171 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1172 case $ac_user_opts in
1173 *"
1174 "with_$ac_useropt"
1175 "*) ;;
1176 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1177 ac_unrecognized_sep=', ';;
1178 esac
1179 eval with_$ac_useropt=\$ac_optarg ;;
1180
1181 -without-* | --without-*)
1182 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1183 # Reject names that are not valid shell variable names.
1184 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1185 as_fn_error $? "invalid package name: $ac_useropt"
1186 ac_useropt_orig=$ac_useropt
1187 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1188 case $ac_user_opts in
1189 *"
1190 "with_$ac_useropt"
1191 "*) ;;
1192 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1193 ac_unrecognized_sep=', ';;
1194 esac
1195 eval with_$ac_useropt=no ;;
1196
1197 --x)
1198 # Obsolete; use --with-x.
1199 with_x=yes ;;
1200
1201 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1202 | --x-incl | --x-inc | --x-in | --x-i)
1203 ac_prev=x_includes ;;
1204 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1205 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1206 x_includes=$ac_optarg ;;
1207
1208 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1209 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1210 ac_prev=x_libraries ;;
1211 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1212 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1213 x_libraries=$ac_optarg ;;
1214
1215 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1216 Try \`$0 --help' for more information"
1217 ;;
1218
1219 *=*)
1220 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1221 # Reject names that are not valid shell variable names.
1222 case $ac_envvar in #(
1223 '' | [0-9]* | *[!_$as_cr_alnum]* )
1224 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1225 esac
1226 eval $ac_envvar=\$ac_optarg
1227 export $ac_envvar ;;
1228
1229 *)
1230 # FIXME: should be removed in autoconf 3.0.
1231 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1232 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1233 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1234 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1235 ;;
1236
1237 esac
1238 done
1239
1240 if test -n "$ac_prev"; then
1241 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1242 as_fn_error $? "missing argument to $ac_option"
1243 fi
1244
1245 if test -n "$ac_unrecognized_opts"; then
1246 case $enable_option_checking in
1247 no) ;;
1248 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1249 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1250 esac
1251 fi
1252
1253 # Check all directory arguments for consistency.
1254 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1255 datadir sysconfdir sharedstatedir localstatedir includedir \
1256 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1257 libdir localedir mandir
1258 do
1259 eval ac_val=\$$ac_var
1260 # Remove trailing slashes.
1261 case $ac_val in
1262 */ )
1263 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1264 eval $ac_var=\$ac_val;;
1265 esac
1266 # Be sure to have absolute directory names.
1267 case $ac_val in
1268 [\\/$]* | ?:[\\/]* ) continue;;
1269 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1270 esac
1271 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1272 done
1273
1274 # There might be people who depend on the old broken behavior: `$host'
1275 # used to hold the argument of --host etc.
1276 # FIXME: To remove some day.
1277 build=$build_alias
1278 host=$host_alias
1279 target=$target_alias
1280
1281 # FIXME: To remove some day.
1282 if test "x$host_alias" != x; then
1283 if test "x$build_alias" = x; then
1284 cross_compiling=maybe
1285 elif test "x$build_alias" != "x$host_alias"; then
1286 cross_compiling=yes
1287 fi
1288 fi
1289
1290 ac_tool_prefix=
1291 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1292
1293 test "$silent" = yes && exec 6>/dev/null
1294
1295
1296 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1297 ac_ls_di=`ls -di .` &&
1298 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1299 as_fn_error $? "working directory cannot be determined"
1300 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1301 as_fn_error $? "pwd does not report name of working directory"
1302
1303
1304 # Find the source files, if location was not specified.
1305 if test -z "$srcdir"; then
1306 ac_srcdir_defaulted=yes
1307 # Try the directory containing this script, then the parent directory.
1308 ac_confdir=`$as_dirname -- "$as_myself" ||
1309 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1310 X"$as_myself" : 'X\(//\)[^/]' \| \
1311 X"$as_myself" : 'X\(//\)$' \| \
1312 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1313 $as_echo X"$as_myself" |
1314 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1315 s//\1/
1316 q
1317 }
1318 /^X\(\/\/\)[^/].*/{
1319 s//\1/
1320 q
1321 }
1322 /^X\(\/\/\)$/{
1323 s//\1/
1324 q
1325 }
1326 /^X\(\/\).*/{
1327 s//\1/
1328 q
1329 }
1330 s/.*/./; q'`
1331 srcdir=$ac_confdir
1332 if test ! -r "$srcdir/$ac_unique_file"; then
1333 srcdir=..
1334 fi
1335 else
1336 ac_srcdir_defaulted=no
1337 fi
1338 if test ! -r "$srcdir/$ac_unique_file"; then
1339 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1340 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1341 fi
1342 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1343 ac_abs_confdir=`(
1344 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1345 pwd)`
1346 # When building in place, set srcdir=.
1347 if test "$ac_abs_confdir" = "$ac_pwd"; then
1348 srcdir=.
1349 fi
1350 # Remove unnecessary trailing slashes from srcdir.
1351 # Double slashes in file names in object file debugging info
1352 # mess up M-x gdb in Emacs.
1353 case $srcdir in
1354 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1355 esac
1356 for ac_var in $ac_precious_vars; do
1357 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1358 eval ac_env_${ac_var}_value=\$${ac_var}
1359 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1360 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1361 done
1362
1363 #
1364 # Report the --help message.
1365 #
1366 if test "$ac_init_help" = "long"; then
1367 # Omit some internal or obsolete options to make the list less imposing.
1368 # This message is too long to be a string in the A/UX 3.1 sh.
1369 cat <<_ACEOF
1370 \`configure' configures ircd-hybrid 8.2.0beta3 to adapt to many kinds of systems.
1371
1372 Usage: $0 [OPTION]... [VAR=VALUE]...
1373
1374 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1375 VAR=VALUE. See below for descriptions of some of the useful variables.
1376
1377 Defaults for the options are specified in brackets.
1378
1379 Configuration:
1380 -h, --help display this help and exit
1381 --help=short display options specific to this package
1382 --help=recursive display the short help of all the included packages
1383 -V, --version display version information and exit
1384 -q, --quiet, --silent do not print \`checking ...' messages
1385 --cache-file=FILE cache test results in FILE [disabled]
1386 -C, --config-cache alias for \`--cache-file=config.cache'
1387 -n, --no-create do not create output files
1388 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1389
1390 Installation directories:
1391 --prefix=PREFIX install architecture-independent files in PREFIX
1392 [$ac_default_prefix]
1393 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1394 [PREFIX]
1395
1396 By default, \`make install' will install all the files in
1397 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1398 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1399 for instance \`--prefix=\$HOME'.
1400
1401 For better control, use the options below.
1402
1403 Fine tuning of the installation directories:
1404 --bindir=DIR user executables [EPREFIX/bin]
1405 --sbindir=DIR system admin executables [EPREFIX/sbin]
1406 --libexecdir=DIR program executables [EPREFIX/libexec]
1407 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1408 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1409 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1410 --libdir=DIR object code libraries [EPREFIX/lib]
1411 --includedir=DIR C header files [PREFIX/include]
1412 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1413 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1414 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1415 --infodir=DIR info documentation [DATAROOTDIR/info]
1416 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1417 --mandir=DIR man documentation [DATAROOTDIR/man]
1418 --docdir=DIR documentation root [DATAROOTDIR/doc/ircd-hybrid]
1419 --htmldir=DIR html documentation [DOCDIR]
1420 --dvidir=DIR dvi documentation [DOCDIR]
1421 --pdfdir=DIR pdf documentation [DOCDIR]
1422 --psdir=DIR ps documentation [DOCDIR]
1423 _ACEOF
1424
1425 cat <<\_ACEOF
1426
1427 Program names:
1428 --program-prefix=PREFIX prepend PREFIX to installed program names
1429 --program-suffix=SUFFIX append SUFFIX to installed program names
1430 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1431
1432 System types:
1433 --build=BUILD configure for building on BUILD [guessed]
1434 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1435 _ACEOF
1436 fi
1437
1438 if test -n "$ac_init_help"; then
1439 case $ac_init_help in
1440 short | recursive ) echo "Configuration of ircd-hybrid 8.2.0beta3:";;
1441 esac
1442 cat <<\_ACEOF
1443
1444 Optional Features:
1445 --disable-option-checking ignore unrecognized --enable/--with options
1446 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1447 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1448 --enable-silent-rules less verbose build output (undo: "make V=1")
1449 --disable-silent-rules verbose build output (undo: "make V=0")
1450 --enable-maintainer-mode
1451 enable make rules and dependencies not useful (and
1452 sometimes confusing) to the casual installer
1453 --enable-dependency-tracking
1454 do not reject slow dependency extractors
1455 --disable-dependency-tracking
1456 speeds up one-time build
1457 --enable-static[=PKGS] build static libraries [default=no]
1458 --enable-shared[=PKGS] build shared libraries [default=yes]
1459 --enable-fast-install[=PKGS]
1460 optimize for fast installation [default=yes]
1461 --disable-libtool-lock avoid locking (might break parallel builds)
1462 --enable-ltdl-install install libltdl
1463 --disable-libgeoip Disable GeoIP support
1464 --enable-openssl=DIR Enable OpenSSL support (DIR optional).
1465 --disable-openssl Disable OpenSSL support.
1466 --enable-assert Enable assert() statements
1467 --enable-kqueue Force kqueue usage.
1468 --enable-epoll Force epoll usage.
1469 --enable-devpoll Force devpoll usage.
1470 --enable-poll Force poll usage.
1471 --enable-select Force select usage.
1472 --enable-debugging Enable debugging.
1473 --enable-warnings Enable compiler warnings.
1474
1475 Optional Packages:
1476 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1477 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1478 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1479 both]
1480 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1481 --with-sysroot=DIR Search for dependent libraries within DIR
1482 (or the compiler's sysroot if not specified).
1483 --with-included-ltdl use the GNU ltdl sources included here
1484 --with-ltdl-include=DIR use the ltdl headers installed in DIR
1485 --with-ltdl-lib=DIR use the libltdl.la installed in DIR
1486
1487 Some influential environment variables:
1488 CC C compiler command
1489 CFLAGS C compiler flags
1490 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1491 nonstandard directory <lib dir>
1492 LIBS libraries to pass to the linker, e.g. -l<library>
1493 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1494 you have headers in a nonstandard directory <include dir>
1495 YACC The `Yet Another Compiler Compiler' implementation to use.
1496 Defaults to the first program found out of: `bison -y', `byacc',
1497 `yacc'.
1498 YFLAGS The list of arguments that will be passed by default to $YACC.
1499 This script will default YFLAGS to the empty string to avoid a
1500 default value of `-d' given by some make applications.
1501 CPP C preprocessor
1502
1503 Use these variables to override the choices made by `configure' or to help
1504 it to find libraries and programs with nonstandard names/locations.
1505
1506 Report bugs to <bugs@ircd-hybrid.org>.
1507 _ACEOF
1508 ac_status=$?
1509 fi
1510
1511 if test "$ac_init_help" = "recursive"; then
1512 # If there are subdirs, report their specific --help.
1513 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1514 test -d "$ac_dir" ||
1515 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1516 continue
1517 ac_builddir=.
1518
1519 case "$ac_dir" in
1520 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1521 *)
1522 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1523 # A ".." for each directory in $ac_dir_suffix.
1524 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1525 case $ac_top_builddir_sub in
1526 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1527 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1528 esac ;;
1529 esac
1530 ac_abs_top_builddir=$ac_pwd
1531 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1532 # for backward compatibility:
1533 ac_top_builddir=$ac_top_build_prefix
1534
1535 case $srcdir in
1536 .) # We are building in place.
1537 ac_srcdir=.
1538 ac_top_srcdir=$ac_top_builddir_sub
1539 ac_abs_top_srcdir=$ac_pwd ;;
1540 [\\/]* | ?:[\\/]* ) # Absolute name.
1541 ac_srcdir=$srcdir$ac_dir_suffix;
1542 ac_top_srcdir=$srcdir
1543 ac_abs_top_srcdir=$srcdir ;;
1544 *) # Relative name.
1545 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1546 ac_top_srcdir=$ac_top_build_prefix$srcdir
1547 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1548 esac
1549 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1550
1551 cd "$ac_dir" || { ac_status=$?; continue; }
1552 # Check for guested configure.
1553 if test -f "$ac_srcdir/configure.gnu"; then
1554 echo &&
1555 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1556 elif test -f "$ac_srcdir/configure"; then
1557 echo &&
1558 $SHELL "$ac_srcdir/configure" --help=recursive
1559 else
1560 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1561 fi || ac_status=$?
1562 cd "$ac_pwd" || { ac_status=$?; break; }
1563 done
1564 fi
1565
1566 test -n "$ac_init_help" && exit $ac_status
1567 if $ac_init_version; then
1568 cat <<\_ACEOF
1569 ircd-hybrid configure 8.2.0beta3
1570 generated by GNU Autoconf 2.69
1571
1572 Copyright (C) 2012 Free Software Foundation, Inc.
1573 This configure script is free software; the Free Software Foundation
1574 gives unlimited permission to copy, distribute and modify it.
1575 _ACEOF
1576 exit
1577 fi
1578
1579 ## ------------------------ ##
1580 ## Autoconf initialization. ##
1581 ## ------------------------ ##
1582
1583 # ac_fn_c_try_compile LINENO
1584 # --------------------------
1585 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1586 ac_fn_c_try_compile ()
1587 {
1588 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1589 rm -f conftest.$ac_objext
1590 if { { ac_try="$ac_compile"
1591 case "(($ac_try" in
1592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1593 *) ac_try_echo=$ac_try;;
1594 esac
1595 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1596 $as_echo "$ac_try_echo"; } >&5
1597 (eval "$ac_compile") 2>conftest.err
1598 ac_status=$?
1599 if test -s conftest.err; then
1600 grep -v '^ *+' conftest.err >conftest.er1
1601 cat conftest.er1 >&5
1602 mv -f conftest.er1 conftest.err
1603 fi
1604 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1605 test $ac_status = 0; } && {
1606 test -z "$ac_c_werror_flag" ||
1607 test ! -s conftest.err
1608 } && test -s conftest.$ac_objext; then :
1609 ac_retval=0
1610 else
1611 $as_echo "$as_me: failed program was:" >&5
1612 sed 's/^/| /' conftest.$ac_ext >&5
1613
1614 ac_retval=1
1615 fi
1616 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1617 as_fn_set_status $ac_retval
1618
1619 } # ac_fn_c_try_compile
1620
1621 # ac_fn_c_try_link LINENO
1622 # -----------------------
1623 # Try to link conftest.$ac_ext, and return whether this succeeded.
1624 ac_fn_c_try_link ()
1625 {
1626 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1627 rm -f conftest.$ac_objext conftest$ac_exeext
1628 if { { ac_try="$ac_link"
1629 case "(($ac_try" in
1630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1631 *) ac_try_echo=$ac_try;;
1632 esac
1633 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1634 $as_echo "$ac_try_echo"; } >&5
1635 (eval "$ac_link") 2>conftest.err
1636 ac_status=$?
1637 if test -s conftest.err; then
1638 grep -v '^ *+' conftest.err >conftest.er1
1639 cat conftest.er1 >&5
1640 mv -f conftest.er1 conftest.err
1641 fi
1642 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1643 test $ac_status = 0; } && {
1644 test -z "$ac_c_werror_flag" ||
1645 test ! -s conftest.err
1646 } && test -s conftest$ac_exeext && {
1647 test "$cross_compiling" = yes ||
1648 test -x conftest$ac_exeext
1649 }; then :
1650 ac_retval=0
1651 else
1652 $as_echo "$as_me: failed program was:" >&5
1653 sed 's/^/| /' conftest.$ac_ext >&5
1654
1655 ac_retval=1
1656 fi
1657 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1658 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1659 # interfere with the next link command; also delete a directory that is
1660 # left behind by Apple's compiler. We do this before executing the actions.
1661 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1662 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1663 as_fn_set_status $ac_retval
1664
1665 } # ac_fn_c_try_link
1666
1667 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1668 # -------------------------------------------------------
1669 # Tests whether HEADER exists and can be compiled using the include files in
1670 # INCLUDES, setting the cache variable VAR accordingly.
1671 ac_fn_c_check_header_compile ()
1672 {
1673 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1675 $as_echo_n "checking for $2... " >&6; }
1676 if eval \${$3+:} false; then :
1677 $as_echo_n "(cached) " >&6
1678 else
1679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1680 /* end confdefs.h. */
1681 $4
1682 #include <$2>
1683 _ACEOF
1684 if ac_fn_c_try_compile "$LINENO"; then :
1685 eval "$3=yes"
1686 else
1687 eval "$3=no"
1688 fi
1689 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1690 fi
1691 eval ac_res=\$$3
1692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1693 $as_echo "$ac_res" >&6; }
1694 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1695
1696 } # ac_fn_c_check_header_compile
1697
1698 # ac_fn_c_try_cpp LINENO
1699 # ----------------------
1700 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1701 ac_fn_c_try_cpp ()
1702 {
1703 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1704 if { { ac_try="$ac_cpp conftest.$ac_ext"
1705 case "(($ac_try" in
1706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1707 *) ac_try_echo=$ac_try;;
1708 esac
1709 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1710 $as_echo "$ac_try_echo"; } >&5
1711 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1712 ac_status=$?
1713 if test -s conftest.err; then
1714 grep -v '^ *+' conftest.err >conftest.er1
1715 cat conftest.er1 >&5
1716 mv -f conftest.er1 conftest.err
1717 fi
1718 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1719 test $ac_status = 0; } > conftest.i && {
1720 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1721 test ! -s conftest.err
1722 }; then :
1723 ac_retval=0
1724 else
1725 $as_echo "$as_me: failed program was:" >&5
1726 sed 's/^/| /' conftest.$ac_ext >&5
1727
1728 ac_retval=1
1729 fi
1730 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1731 as_fn_set_status $ac_retval
1732
1733 } # ac_fn_c_try_cpp
1734
1735 # ac_fn_c_try_run LINENO
1736 # ----------------------
1737 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1738 # that executables *can* be run.
1739 ac_fn_c_try_run ()
1740 {
1741 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1742 if { { ac_try="$ac_link"
1743 case "(($ac_try" in
1744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1745 *) ac_try_echo=$ac_try;;
1746 esac
1747 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1748 $as_echo "$ac_try_echo"; } >&5
1749 (eval "$ac_link") 2>&5
1750 ac_status=$?
1751 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1752 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1753 { { case "(($ac_try" in
1754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1755 *) ac_try_echo=$ac_try;;
1756 esac
1757 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1758 $as_echo "$ac_try_echo"; } >&5
1759 (eval "$ac_try") 2>&5
1760 ac_status=$?
1761 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1762 test $ac_status = 0; }; }; then :
1763 ac_retval=0
1764 else
1765 $as_echo "$as_me: program exited with status $ac_status" >&5
1766 $as_echo "$as_me: failed program was:" >&5
1767 sed 's/^/| /' conftest.$ac_ext >&5
1768
1769 ac_retval=$ac_status
1770 fi
1771 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1772 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1773 as_fn_set_status $ac_retval
1774
1775 } # ac_fn_c_try_run
1776
1777 # ac_fn_c_check_func LINENO FUNC VAR
1778 # ----------------------------------
1779 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1780 ac_fn_c_check_func ()
1781 {
1782 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1784 $as_echo_n "checking for $2... " >&6; }
1785 if eval \${$3+:} false; then :
1786 $as_echo_n "(cached) " >&6
1787 else
1788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1789 /* end confdefs.h. */
1790 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1791 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1792 #define $2 innocuous_$2
1793
1794 /* System header to define __stub macros and hopefully few prototypes,
1795 which can conflict with char $2 (); below.
1796 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1797 <limits.h> exists even on freestanding compilers. */
1798
1799 #ifdef __STDC__
1800 # include <limits.h>
1801 #else
1802 # include <assert.h>
1803 #endif
1804
1805 #undef $2
1806
1807 /* Override any GCC internal prototype to avoid an error.
1808 Use char because int might match the return type of a GCC
1809 builtin and then its argument prototype would still apply. */
1810 #ifdef __cplusplus
1811 extern "C"
1812 #endif
1813 char $2 ();
1814 /* The GNU C library defines this for functions which it implements
1815 to always fail with ENOSYS. Some functions are actually named
1816 something starting with __ and the normal name is an alias. */
1817 #if defined __stub_$2 || defined __stub___$2
1818 choke me
1819 #endif
1820
1821 int
1822 main ()
1823 {
1824 return $2 ();
1825 ;
1826 return 0;
1827 }
1828 _ACEOF
1829 if ac_fn_c_try_link "$LINENO"; then :
1830 eval "$3=yes"
1831 else
1832 eval "$3=no"
1833 fi
1834 rm -f core conftest.err conftest.$ac_objext \
1835 conftest$ac_exeext conftest.$ac_ext
1836 fi
1837 eval ac_res=\$$3
1838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1839 $as_echo "$ac_res" >&6; }
1840 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1841
1842 } # ac_fn_c_check_func
1843
1844 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1845 # ---------------------------------------------
1846 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1847 # accordingly.
1848 ac_fn_c_check_decl ()
1849 {
1850 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1851 as_decl_name=`echo $2|sed 's/ *(.*//'`
1852 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1854 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1855 if eval \${$3+:} false; then :
1856 $as_echo_n "(cached) " >&6
1857 else
1858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1859 /* end confdefs.h. */
1860 $4
1861 int
1862 main ()
1863 {
1864 #ifndef $as_decl_name
1865 #ifdef __cplusplus
1866 (void) $as_decl_use;
1867 #else
1868 (void) $as_decl_name;
1869 #endif
1870 #endif
1871
1872 ;
1873 return 0;
1874 }
1875 _ACEOF
1876 if ac_fn_c_try_compile "$LINENO"; then :
1877 eval "$3=yes"
1878 else
1879 eval "$3=no"
1880 fi
1881 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1882 fi
1883 eval ac_res=\$$3
1884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1885 $as_echo "$ac_res" >&6; }
1886 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1887
1888 } # ac_fn_c_check_decl
1889
1890 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1891 # -------------------------------------------
1892 # Tests whether TYPE exists after having included INCLUDES, setting cache
1893 # variable VAR accordingly.
1894 ac_fn_c_check_type ()
1895 {
1896 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1898 $as_echo_n "checking for $2... " >&6; }
1899 if eval \${$3+:} false; then :
1900 $as_echo_n "(cached) " >&6
1901 else
1902 eval "$3=no"
1903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1904 /* end confdefs.h. */
1905 $4
1906 int
1907 main ()
1908 {
1909 if (sizeof ($2))
1910 return 0;
1911 ;
1912 return 0;
1913 }
1914 _ACEOF
1915 if ac_fn_c_try_compile "$LINENO"; then :
1916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1917 /* end confdefs.h. */
1918 $4
1919 int
1920 main ()
1921 {
1922 if (sizeof (($2)))
1923 return 0;
1924 ;
1925 return 0;
1926 }
1927 _ACEOF
1928 if ac_fn_c_try_compile "$LINENO"; then :
1929
1930 else
1931 eval "$3=yes"
1932 fi
1933 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1934 fi
1935 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1936 fi
1937 eval ac_res=\$$3
1938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1939 $as_echo "$ac_res" >&6; }
1940 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1941
1942 } # ac_fn_c_check_type
1943
1944 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1945 # ----------------------------------------------------
1946 # Tries to find if the field MEMBER exists in type AGGR, after including
1947 # INCLUDES, setting cache variable VAR accordingly.
1948 ac_fn_c_check_member ()
1949 {
1950 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1952 $as_echo_n "checking for $2.$3... " >&6; }
1953 if eval \${$4+:} false; then :
1954 $as_echo_n "(cached) " >&6
1955 else
1956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1957 /* end confdefs.h. */
1958 $5
1959 int
1960 main ()
1961 {
1962 static $2 ac_aggr;
1963 if (ac_aggr.$3)
1964 return 0;
1965 ;
1966 return 0;
1967 }
1968 _ACEOF
1969 if ac_fn_c_try_compile "$LINENO"; then :
1970 eval "$4=yes"
1971 else
1972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1973 /* end confdefs.h. */
1974 $5
1975 int
1976 main ()
1977 {
1978 static $2 ac_aggr;
1979 if (sizeof ac_aggr.$3)
1980 return 0;
1981 ;
1982 return 0;
1983 }
1984 _ACEOF
1985 if ac_fn_c_try_compile "$LINENO"; then :
1986 eval "$4=yes"
1987 else
1988 eval "$4=no"
1989 fi
1990 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1991 fi
1992 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1993 fi
1994 eval ac_res=\$$4
1995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1996 $as_echo "$ac_res" >&6; }
1997 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1998
1999 } # ac_fn_c_check_member
2000
2001 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2002 # -------------------------------------------------------
2003 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2004 # the include files in INCLUDES and setting the cache variable VAR
2005 # accordingly.
2006 ac_fn_c_check_header_mongrel ()
2007 {
2008 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2009 if eval \${$3+:} false; then :
2010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2011 $as_echo_n "checking for $2... " >&6; }
2012 if eval \${$3+:} false; then :
2013 $as_echo_n "(cached) " >&6
2014 fi
2015 eval ac_res=\$$3
2016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2017 $as_echo "$ac_res" >&6; }
2018 else
2019 # Is the header compilable?
2020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2021 $as_echo_n "checking $2 usability... " >&6; }
2022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2023 /* end confdefs.h. */
2024 $4
2025 #include <$2>
2026 _ACEOF
2027 if ac_fn_c_try_compile "$LINENO"; then :
2028 ac_header_compiler=yes
2029 else
2030 ac_header_compiler=no
2031 fi
2032 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2034 $as_echo "$ac_header_compiler" >&6; }
2035
2036 # Is the header present?
2037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2038 $as_echo_n "checking $2 presence... " >&6; }
2039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2040 /* end confdefs.h. */
2041 #include <$2>
2042 _ACEOF
2043 if ac_fn_c_try_cpp "$LINENO"; then :
2044 ac_header_preproc=yes
2045 else
2046 ac_header_preproc=no
2047 fi
2048 rm -f conftest.err conftest.i conftest.$ac_ext
2049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2050 $as_echo "$ac_header_preproc" >&6; }
2051
2052 # So? What about this header?
2053 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2054 yes:no: )
2055 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2056 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2057 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2058 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2059 ;;
2060 no:yes:* )
2061 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2062 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2063 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2064 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2065 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2066 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2067 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2068 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2069 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2070 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2071 ( $as_echo "## ----------------------------------- ##
2072 ## Report this to bugs@ircd-hybrid.org ##
2073 ## ----------------------------------- ##"
2074 ) | sed "s/^/$as_me: WARNING: /" >&2
2075 ;;
2076 esac
2077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2078 $as_echo_n "checking for $2... " >&6; }
2079 if eval \${$3+:} false; then :
2080 $as_echo_n "(cached) " >&6
2081 else
2082 eval "$3=\$ac_header_compiler"
2083 fi
2084 eval ac_res=\$$3
2085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2086 $as_echo "$ac_res" >&6; }
2087 fi
2088 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2089
2090 } # ac_fn_c_check_header_mongrel
2091 cat >config.log <<_ACEOF
2092 This file contains any messages produced by compilers while
2093 running configure, to aid debugging if configure makes a mistake.
2094
2095 It was created by ircd-hybrid $as_me 8.2.0beta3, which was
2096 generated by GNU Autoconf 2.69. Invocation command line was
2097
2098 $ $0 $@
2099
2100 _ACEOF
2101 exec 5>>config.log
2102 {
2103 cat <<_ASUNAME
2104 ## --------- ##
2105 ## Platform. ##
2106 ## --------- ##
2107
2108 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2109 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2110 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2111 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2112 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2113
2114 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2115 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2116
2117 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2118 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2119 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2120 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2121 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2122 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2123 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2124
2125 _ASUNAME
2126
2127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2128 for as_dir in $PATH
2129 do
2130 IFS=$as_save_IFS
2131 test -z "$as_dir" && as_dir=.
2132 $as_echo "PATH: $as_dir"
2133 done
2134 IFS=$as_save_IFS
2135
2136 } >&5
2137
2138 cat >&5 <<_ACEOF
2139
2140
2141 ## ----------- ##
2142 ## Core tests. ##
2143 ## ----------- ##
2144
2145 _ACEOF
2146
2147
2148 # Keep a trace of the command line.
2149 # Strip out --no-create and --no-recursion so they do not pile up.
2150 # Strip out --silent because we don't want to record it for future runs.
2151 # Also quote any args containing shell meta-characters.
2152 # Make two passes to allow for proper duplicate-argument suppression.
2153 ac_configure_args=
2154 ac_configure_args0=
2155 ac_configure_args1=
2156 ac_must_keep_next=false
2157 for ac_pass in 1 2
2158 do
2159 for ac_arg
2160 do
2161 case $ac_arg in
2162 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2163 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2164 | -silent | --silent | --silen | --sile | --sil)
2165 continue ;;
2166 *\'*)
2167 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2168 esac
2169 case $ac_pass in
2170 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2171 2)
2172 as_fn_append ac_configure_args1 " '$ac_arg'"
2173 if test $ac_must_keep_next = true; then
2174 ac_must_keep_next=false # Got value, back to normal.
2175 else
2176 case $ac_arg in
2177 *=* | --config-cache | -C | -disable-* | --disable-* \
2178 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2179 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2180 | -with-* | --with-* | -without-* | --without-* | --x)
2181 case "$ac_configure_args0 " in
2182 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2183 esac
2184 ;;
2185 -* ) ac_must_keep_next=true ;;
2186 esac
2187 fi
2188 as_fn_append ac_configure_args " '$ac_arg'"
2189 ;;
2190 esac
2191 done
2192 done
2193 { ac_configure_args0=; unset ac_configure_args0;}
2194 { ac_configure_args1=; unset ac_configure_args1;}
2195
2196 # When interrupted or exit'd, cleanup temporary files, and complete
2197 # config.log. We remove comments because anyway the quotes in there
2198 # would cause problems or look ugly.
2199 # WARNING: Use '\'' to represent an apostrophe within the trap.
2200 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2201 trap 'exit_status=$?
2202 # Save into config.log some information that might help in debugging.
2203 {
2204 echo
2205
2206 $as_echo "## ---------------- ##
2207 ## Cache variables. ##
2208 ## ---------------- ##"
2209 echo
2210 # The following way of writing the cache mishandles newlines in values,
2211 (
2212 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2213 eval ac_val=\$$ac_var
2214 case $ac_val in #(
2215 *${as_nl}*)
2216 case $ac_var in #(
2217 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2218 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2219 esac
2220 case $ac_var in #(
2221 _ | IFS | as_nl) ;; #(
2222 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2223 *) { eval $ac_var=; unset $ac_var;} ;;
2224 esac ;;
2225 esac
2226 done
2227 (set) 2>&1 |
2228 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2229 *${as_nl}ac_space=\ *)
2230 sed -n \
2231 "s/'\''/'\''\\\\'\'''\''/g;
2232 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2233 ;; #(
2234 *)
2235 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2236 ;;
2237 esac |
2238 sort
2239 )
2240 echo
2241
2242 $as_echo "## ----------------- ##
2243 ## Output variables. ##
2244 ## ----------------- ##"
2245 echo
2246 for ac_var in $ac_subst_vars
2247 do
2248 eval ac_val=\$$ac_var
2249 case $ac_val in
2250 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2251 esac
2252 $as_echo "$ac_var='\''$ac_val'\''"
2253 done | sort
2254 echo
2255
2256 if test -n "$ac_subst_files"; then
2257 $as_echo "## ------------------- ##
2258 ## File substitutions. ##
2259 ## ------------------- ##"
2260 echo
2261 for ac_var in $ac_subst_files
2262 do
2263 eval ac_val=\$$ac_var
2264 case $ac_val in
2265 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2266 esac
2267 $as_echo "$ac_var='\''$ac_val'\''"
2268 done | sort
2269 echo
2270 fi
2271
2272 if test -s confdefs.h; then
2273 $as_echo "## ----------- ##
2274 ## confdefs.h. ##
2275 ## ----------- ##"
2276 echo
2277 cat confdefs.h
2278 echo
2279 fi
2280 test "$ac_signal" != 0 &&
2281 $as_echo "$as_me: caught signal $ac_signal"
2282 $as_echo "$as_me: exit $exit_status"
2283 } >&5
2284 rm -f core *.core core.conftest.* &&
2285 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2286 exit $exit_status
2287 ' 0
2288 for ac_signal in 1 2 13 15; do
2289 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2290 done
2291 ac_signal=0
2292
2293 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2294 rm -f -r conftest* confdefs.h
2295
2296 $as_echo "/* confdefs.h */" > confdefs.h
2297
2298 # Predefined preprocessor variables.
2299
2300 cat >>confdefs.h <<_ACEOF
2301 #define PACKAGE_NAME "$PACKAGE_NAME"
2302 _ACEOF
2303
2304 cat >>confdefs.h <<_ACEOF
2305 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2306 _ACEOF
2307
2308 cat >>confdefs.h <<_ACEOF
2309 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2310 _ACEOF
2311
2312 cat >>confdefs.h <<_ACEOF
2313 #define PACKAGE_STRING "$PACKAGE_STRING"
2314 _ACEOF
2315
2316 cat >>confdefs.h <<_ACEOF
2317 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2318 _ACEOF
2319
2320 cat >>confdefs.h <<_ACEOF
2321 #define PACKAGE_URL "$PACKAGE_URL"
2322 _ACEOF
2323
2324
2325 # Let the site file select an alternate cache file if it wants to.
2326 # Prefer an explicitly selected file to automatically selected ones.
2327 ac_site_file1=NONE
2328 ac_site_file2=NONE
2329 if test -n "$CONFIG_SITE"; then
2330 # We do not want a PATH search for config.site.
2331 case $CONFIG_SITE in #((
2332 -*) ac_site_file1=./$CONFIG_SITE;;
2333 */*) ac_site_file1=$CONFIG_SITE;;
2334 *) ac_site_file1=./$CONFIG_SITE;;
2335 esac
2336 elif test "x$prefix" != xNONE; then
2337 ac_site_file1=$prefix/share/config.site
2338 ac_site_file2=$prefix/etc/config.site
2339 else
2340 ac_site_file1=$ac_default_prefix/share/config.site
2341 ac_site_file2=$ac_default_prefix/etc/config.site
2342 fi
2343 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2344 do
2345 test "x$ac_site_file" = xNONE && continue
2346 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2347 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2348 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2349 sed 's/^/| /' "$ac_site_file" >&5
2350 . "$ac_site_file" \
2351 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2352 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2353 as_fn_error $? "failed to load site script $ac_site_file
2354 See \`config.log' for more details" "$LINENO" 5; }
2355 fi
2356 done
2357
2358 if test -r "$cache_file"; then
2359 # Some versions of bash will fail to source /dev/null (special files
2360 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2361 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2362 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2363 $as_echo "$as_me: loading cache $cache_file" >&6;}
2364 case $cache_file in
2365 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2366 *) . "./$cache_file";;
2367 esac
2368 fi
2369 else
2370 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2371 $as_echo "$as_me: creating cache $cache_file" >&6;}
2372 >$cache_file
2373 fi
2374
2375 as_fn_append ac_func_list " strtok_r"
2376 as_fn_append ac_func_list " usleep"
2377 as_fn_append ac_func_list " strlcat"
2378 as_fn_append ac_func_list " strlcpy"
2379 as_fn_append ac_header_list " crypt.h"
2380 as_fn_append ac_header_list " sys/resource.h"
2381 as_fn_append ac_header_list " sys/param.h"
2382 as_fn_append ac_header_list " types.h"
2383 as_fn_append ac_header_list " socket.h"
2384 as_fn_append ac_header_list " sys/wait.h"
2385 as_fn_append ac_header_list " wait.h"
2386 # Check that the precious variables saved in the cache have kept the same
2387 # value.
2388 ac_cache_corrupted=false
2389 for ac_var in $ac_precious_vars; do
2390 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2391 eval ac_new_set=\$ac_env_${ac_var}_set
2392 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2393 eval ac_new_val=\$ac_env_${ac_var}_value
2394 case $ac_old_set,$ac_new_set in
2395 set,)
2396 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2397 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2398 ac_cache_corrupted=: ;;
2399 ,set)
2400 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2401 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2402 ac_cache_corrupted=: ;;
2403 ,);;
2404 *)
2405 if test "x$ac_old_val" != "x$ac_new_val"; then
2406 # differences in whitespace do not lead to failure.
2407 ac_old_val_w=`echo x $ac_old_val`
2408 ac_new_val_w=`echo x $ac_new_val`
2409 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2410 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2411 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2412 ac_cache_corrupted=:
2413 else
2414 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2415 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2416 eval $ac_var=\$ac_old_val
2417 fi
2418 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2419 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2420 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2421 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2422 fi;;
2423 esac
2424 # Pass precious variables to config.status.
2425 if test "$ac_new_set" = set; then
2426 case $ac_new_val in
2427 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2428 *) ac_arg=$ac_var=$ac_new_val ;;
2429 esac
2430 case " $ac_configure_args " in
2431 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2432 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2433 esac
2434 fi
2435 done
2436 if $ac_cache_corrupted; then
2437 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2438 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2439 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2440 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2441 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2442 fi
2443 ## -------------------- ##
2444 ## Main body of script. ##
2445 ## -------------------- ##
2446
2447 ac_ext=c
2448 ac_cpp='$CPP $CPPFLAGS'
2449 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2450 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2451 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2452
2453
2454 am__api_version='1.14'
2455
2456 ac_aux_dir=
2457 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2458 if test -f "$ac_dir/install-sh"; then
2459 ac_aux_dir=$ac_dir
2460 ac_install_sh="$ac_aux_dir/install-sh -c"
2461 break
2462 elif test -f "$ac_dir/install.sh"; then
2463 ac_aux_dir=$ac_dir
2464 ac_install_sh="$ac_aux_dir/install.sh -c"
2465 break
2466 elif test -f "$ac_dir/shtool"; then
2467 ac_aux_dir=$ac_dir
2468 ac_install_sh="$ac_aux_dir/shtool install -c"
2469 break
2470 fi
2471 done
2472 if test -z "$ac_aux_dir"; then
2473 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2474 fi
2475
2476 # These three variables are undocumented and unsupported,
2477 # and are intended to be withdrawn in a future Autoconf release.
2478 # They can cause serious problems if a builder's source tree is in a directory
2479 # whose full name contains unusual characters.
2480 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2481 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2482 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2483
2484
2485 # Find a good install program. We prefer a C program (faster),
2486 # so one script is as good as another. But avoid the broken or
2487 # incompatible versions:
2488 # SysV /etc/install, /usr/sbin/install
2489 # SunOS /usr/etc/install
2490 # IRIX /sbin/install
2491 # AIX /bin/install
2492 # AmigaOS /C/install, which installs bootblocks on floppy discs
2493 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2494 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2495 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2496 # OS/2's system install, which has a completely different semantic
2497 # ./install, which can be erroneously created by make from ./install.sh.
2498 # Reject install programs that cannot install multiple files.
2499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2500 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2501 if test -z "$INSTALL"; then
2502 if ${ac_cv_path_install+:} false; then :
2503 $as_echo_n "(cached) " >&6
2504 else
2505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2506 for as_dir in $PATH
2507 do
2508 IFS=$as_save_IFS
2509 test -z "$as_dir" && as_dir=.
2510 # Account for people who put trailing slashes in PATH elements.
2511 case $as_dir/ in #((
2512 ./ | .// | /[cC]/* | \
2513 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2514 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2515 /usr/ucb/* ) ;;
2516 *)
2517 # OSF1 and SCO ODT 3.0 have their own names for install.
2518 # Don't use installbsd from OSF since it installs stuff as root
2519 # by default.
2520 for ac_prog in ginstall scoinst install; do
2521 for ac_exec_ext in '' $ac_executable_extensions; do
2522 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2523 if test $ac_prog = install &&
2524 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2525 # AIX install. It has an incompatible calling convention.
2526 :
2527 elif test $ac_prog = install &&
2528 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2529 # program-specific install script used by HP pwplus--don't use.
2530 :
2531 else
2532 rm -rf conftest.one conftest.two conftest.dir
2533 echo one > conftest.one
2534 echo two > conftest.two
2535 mkdir conftest.dir
2536 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2537 test -s conftest.one && test -s conftest.two &&
2538 test -s conftest.dir/conftest.one &&
2539 test -s conftest.dir/conftest.two
2540 then
2541 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2542 break 3
2543 fi
2544 fi
2545 fi
2546 done
2547 done
2548 ;;
2549 esac
2550
2551 done
2552 IFS=$as_save_IFS
2553
2554 rm -rf conftest.one conftest.two conftest.dir
2555
2556 fi
2557 if test "${ac_cv_path_install+set}" = set; then
2558 INSTALL=$ac_cv_path_install
2559 else
2560 # As a last resort, use the slow shell script. Don't cache a
2561 # value for INSTALL within a source directory, because that will
2562 # break other packages using the cache if that directory is
2563 # removed, or if the value is a relative name.
2564 INSTALL=$ac_install_sh
2565 fi
2566 fi
2567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2568 $as_echo "$INSTALL" >&6; }
2569
2570 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2571 # It thinks the first close brace ends the variable substitution.
2572 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2573
2574 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2575
2576 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2577
2578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2579 $as_echo_n "checking whether build environment is sane... " >&6; }
2580 # Reject unsafe characters in $srcdir or the absolute working directory
2581 # name. Accept space and tab only in the latter.
2582 am_lf='
2583 '
2584 case `pwd` in
2585 *[\\\"\#\$\&\'\`$am_lf]*)
2586 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2587 esac
2588 case $srcdir in
2589 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2590 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2591 esac
2592
2593 # Do 'set' in a subshell so we don't clobber the current shell's
2594 # arguments. Must try -L first in case configure is actually a
2595 # symlink; some systems play weird games with the mod time of symlinks
2596 # (eg FreeBSD returns the mod time of the symlink's containing
2597 # directory).
2598 if (
2599 am_has_slept=no
2600 for am_try in 1 2; do
2601 echo "timestamp, slept: $am_has_slept" > conftest.file
2602 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2603 if test "$*" = "X"; then
2604 # -L didn't work.
2605 set X `ls -t "$srcdir/configure" conftest.file`
2606 fi
2607 if test "$*" != "X $srcdir/configure conftest.file" \
2608 && test "$*" != "X conftest.file $srcdir/configure"; then
2609
2610 # If neither matched, then we have a broken ls. This can happen
2611 # if, for instance, CONFIG_SHELL is bash and it inherits a
2612 # broken ls alias from the environment. This has actually
2613 # happened. Such a system could not be considered "sane".
2614 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2615 alias in your environment" "$LINENO" 5
2616 fi
2617 if test "$2" = conftest.file || test $am_try -eq 2; then
2618 break
2619 fi
2620 # Just in case.
2621 sleep 1
2622 am_has_slept=yes
2623 done
2624 test "$2" = conftest.file
2625 )
2626 then
2627 # Ok.
2628 :
2629 else
2630 as_fn_error $? "newly created file is older than distributed files!
2631 Check your system clock" "$LINENO" 5
2632 fi
2633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2634 $as_echo "yes" >&6; }
2635 # If we didn't sleep, we still need to ensure time stamps of config.status and
2636 # generated files are strictly newer.
2637 am_sleep_pid=
2638 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2639 ( sleep 1 ) &
2640 am_sleep_pid=$!
2641 fi
2642
2643 rm -f conftest.file
2644
2645 test "$program_prefix" != NONE &&
2646 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2647 # Use a double $ so make ignores it.
2648 test "$program_suffix" != NONE &&
2649 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2650 # Double any \ or $.
2651 # By default was `s,x,x', remove it if useless.
2652 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2653 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2654
2655 # expand $ac_aux_dir to an absolute path
2656 am_aux_dir=`cd $ac_aux_dir && pwd`
2657
2658 if test x"${MISSING+set}" != xset; then
2659 case $am_aux_dir in
2660 *\ * | *\ *)
2661 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2662 *)
2663 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2664 esac
2665 fi
2666 # Use eval to expand $SHELL
2667 if eval "$MISSING --is-lightweight"; then
2668 am_missing_run="$MISSING "
2669 else
2670 am_missing_run=
2671 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2672 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2673 fi
2674
2675 if test x"${install_sh}" != xset; then
2676 case $am_aux_dir in
2677 *\ * | *\ *)
2678 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2679 *)
2680 install_sh="\${SHELL} $am_aux_dir/install-sh"
2681 esac
2682 fi
2683
2684 # Installed binaries are usually stripped using 'strip' when the user
2685 # run "make install-strip". However 'strip' might not be the right
2686 # tool to use in cross-compilation environments, therefore Automake
2687 # will honor the 'STRIP' environment variable to overrule this program.
2688 if test "$cross_compiling" != no; then
2689 if test -n "$ac_tool_prefix"; then
2690 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2691 set dummy ${ac_tool_prefix}strip; ac_word=$2
2692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2693 $as_echo_n "checking for $ac_word... " >&6; }
2694 if ${ac_cv_prog_STRIP+:} false; then :
2695 $as_echo_n "(cached) " >&6
2696 else
2697 if test -n "$STRIP"; then
2698 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2699 else
2700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2701 for as_dir in $PATH
2702 do
2703 IFS=$as_save_IFS
2704 test -z "$as_dir" && as_dir=.
2705 for ac_exec_ext in '' $ac_executable_extensions; do
2706 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2707 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2708 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2709 break 2
2710 fi
2711 done
2712 done
2713 IFS=$as_save_IFS
2714
2715 fi
2716 fi
2717 STRIP=$ac_cv_prog_STRIP
2718 if test -n "$STRIP"; then
2719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2720 $as_echo "$STRIP" >&6; }
2721 else
2722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2723 $as_echo "no" >&6; }
2724 fi
2725
2726
2727 fi
2728 if test -z "$ac_cv_prog_STRIP"; then
2729 ac_ct_STRIP=$STRIP
2730 # Extract the first word of "strip", so it can be a program name with args.
2731 set dummy strip; ac_word=$2
2732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2733 $as_echo_n "checking for $ac_word... " >&6; }
2734 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2735 $as_echo_n "(cached) " >&6
2736 else
2737 if test -n "$ac_ct_STRIP"; then
2738 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2739 else
2740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2741 for as_dir in $PATH
2742 do
2743 IFS=$as_save_IFS
2744 test -z "$as_dir" && as_dir=.
2745 for ac_exec_ext in '' $ac_executable_extensions; do
2746 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2747 ac_cv_prog_ac_ct_STRIP="strip"
2748 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2749 break 2
2750 fi
2751 done
2752 done
2753 IFS=$as_save_IFS
2754
2755 fi
2756 fi
2757 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2758 if test -n "$ac_ct_STRIP"; then
2759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2760 $as_echo "$ac_ct_STRIP" >&6; }
2761 else
2762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2763 $as_echo "no" >&6; }
2764 fi
2765
2766 if test "x$ac_ct_STRIP" = x; then
2767 STRIP=":"
2768 else
2769 case $cross_compiling:$ac_tool_warned in
2770 yes:)
2771 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2772 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2773 ac_tool_warned=yes ;;
2774 esac
2775 STRIP=$ac_ct_STRIP
2776 fi
2777 else
2778 STRIP="$ac_cv_prog_STRIP"
2779 fi
2780
2781 fi
2782 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2783
2784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2785 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2786 if test -z "$MKDIR_P"; then
2787 if ${ac_cv_path_mkdir+:} false; then :
2788 $as_echo_n "(cached) " >&6
2789 else
2790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2791 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2792 do
2793 IFS=$as_save_IFS
2794 test -z "$as_dir" && as_dir=.
2795 for ac_prog in mkdir gmkdir; do
2796 for ac_exec_ext in '' $ac_executable_extensions; do
2797 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2798 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2799 'mkdir (GNU coreutils) '* | \
2800 'mkdir (coreutils) '* | \
2801 'mkdir (fileutils) '4.1*)
2802 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2803 break 3;;
2804 esac
2805 done
2806 done
2807 done
2808 IFS=$as_save_IFS
2809
2810 fi
2811
2812 test -d ./--version && rmdir ./--version
2813 if test "${ac_cv_path_mkdir+set}" = set; then
2814 MKDIR_P="$ac_cv_path_mkdir -p"
2815 else
2816 # As a last resort, use the slow shell script. Don't cache a
2817 # value for MKDIR_P within a source directory, because that will
2818 # break other packages using the cache if that directory is
2819 # removed, or if the value is a relative name.
2820 MKDIR_P="$ac_install_sh -d"
2821 fi
2822 fi
2823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2824 $as_echo "$MKDIR_P" >&6; }
2825
2826 for ac_prog in gawk mawk nawk awk
2827 do
2828 # Extract the first word of "$ac_prog", so it can be a program name with args.
2829 set dummy $ac_prog; ac_word=$2
2830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2831 $as_echo_n "checking for $ac_word... " >&6; }
2832 if ${ac_cv_prog_AWK+:} false; then :
2833 $as_echo_n "(cached) " >&6
2834 else
2835 if test -n "$AWK"; then
2836 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2837 else
2838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2839 for as_dir in $PATH
2840 do
2841 IFS=$as_save_IFS
2842 test -z "$as_dir" && as_dir=.
2843 for ac_exec_ext in '' $ac_executable_extensions; do
2844 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2845 ac_cv_prog_AWK="$ac_prog"
2846 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2847 break 2
2848 fi
2849 done
2850 done
2851 IFS=$as_save_IFS
2852
2853 fi
2854 fi
2855 AWK=$ac_cv_prog_AWK
2856 if test -n "$AWK"; then
2857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2858 $as_echo "$AWK" >&6; }
2859 else
2860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2861 $as_echo "no" >&6; }
2862 fi
2863
2864
2865 test -n "$AWK" && break
2866 done
2867
2868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2869 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2870 set x ${MAKE-make}
2871 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2872 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2873 $as_echo_n "(cached) " >&6
2874 else
2875 cat >conftest.make <<\_ACEOF
2876 SHELL = /bin/sh
2877 all:
2878 @echo '@@@%%%=$(MAKE)=@@@%%%'
2879 _ACEOF
2880 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2881 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2882 *@@@%%%=?*=@@@%%%*)
2883 eval ac_cv_prog_make_${ac_make}_set=yes;;
2884 *)
2885 eval ac_cv_prog_make_${ac_make}_set=no;;
2886 esac
2887 rm -f conftest.make
2888 fi
2889 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2891 $as_echo "yes" >&6; }
2892 SET_MAKE=
2893 else
2894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2895 $as_echo "no" >&6; }
2896 SET_MAKE="MAKE=${MAKE-make}"
2897 fi
2898
2899 rm -rf .tst 2>/dev/null
2900 mkdir .tst 2>/dev/null
2901 if test -d .tst; then
2902 am__leading_dot=.
2903 else
2904 am__leading_dot=_
2905 fi
2906 rmdir .tst 2>/dev/null
2907
2908 # Check whether --enable-silent-rules was given.
2909 if test "${enable_silent_rules+set}" = set; then :
2910 enableval=$enable_silent_rules;
2911 fi
2912
2913 case $enable_silent_rules in # (((
2914 yes) AM_DEFAULT_VERBOSITY=0;;
2915 no) AM_DEFAULT_VERBOSITY=1;;
2916 *) AM_DEFAULT_VERBOSITY=1;;
2917 esac
2918 am_make=${MAKE-make}
2919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2920 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2921 if ${am_cv_make_support_nested_variables+:} false; then :
2922 $as_echo_n "(cached) " >&6
2923 else
2924 if $as_echo 'TRUE=$(BAR$(V))
2925 BAR0=false
2926 BAR1=true
2927 V=1
2928 am__doit:
2929 @$(TRUE)
2930 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2931 am_cv_make_support_nested_variables=yes
2932 else
2933 am_cv_make_support_nested_variables=no
2934 fi
2935 fi
2936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2937 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2938 if test $am_cv_make_support_nested_variables = yes; then
2939 AM_V='$(V)'
2940 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2941 else
2942 AM_V=$AM_DEFAULT_VERBOSITY
2943 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2944 fi
2945 AM_BACKSLASH='\'
2946
2947 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2948 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2949 # is not polluted with repeated "-I."
2950 am__isrc=' -I$(srcdir)'
2951 # test to see if srcdir already configured
2952 if test -f $srcdir/config.status; then
2953 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2954 fi
2955 fi
2956
2957 # test whether we have cygpath
2958 if test -z "$CYGPATH_W"; then
2959 if (cygpath --version) >/dev/null 2>/dev/null; then
2960 CYGPATH_W='cygpath -w'
2961 else
2962 CYGPATH_W=echo
2963 fi
2964 fi
2965
2966
2967 # Define the identity of the package.
2968 PACKAGE='ircd-hybrid'
2969 VERSION='8.2.0beta3'
2970
2971
2972 cat >>confdefs.h <<_ACEOF
2973 #define PACKAGE "$PACKAGE"
2974 _ACEOF
2975
2976
2977 cat >>confdefs.h <<_ACEOF
2978 #define VERSION "$VERSION"
2979 _ACEOF
2980
2981 # Some tools Automake needs.
2982
2983 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2984
2985
2986 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2987
2988
2989 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2990
2991
2992 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2993
2994
2995 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2996
2997 # For better backward compatibility. To be removed once Automake 1.9.x
2998 # dies out for good. For more background, see:
2999 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3000 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3001 mkdir_p='$(MKDIR_P)'
3002
3003 # We need awk for the "check" target. The system "awk" is bad on
3004 # some platforms.
3005 # Always define AMTAR for backward compatibility. Yes, it's still used
3006 # in the wild :-( We should find a proper way to deprecate it ...
3007 AMTAR='$${TAR-tar}'
3008
3009
3010 # We'll loop over all known methods to create a tar archive until one works.
3011 _am_tools='gnutar pax cpio none'
3012
3013 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3014
3015
3016
3017
3018
3019
3020 # POSIX will say in a future version that running "rm -f" with no argument
3021 # is OK; and we want to be able to make that assumption in our Makefile
3022 # recipes. So use an aggressive probe to check that the usage we want is
3023 # actually supported "in the wild" to an acceptable degree.
3024 # See automake bug#10828.
3025 # To make any issue more visible, cause the running configure to be aborted
3026 # by default if the 'rm' program in use doesn't match our expectations; the
3027 # user can still override this though.
3028 if rm -f && rm -fr && rm -rf; then : OK; else
3029 cat >&2 <<'END'
3030 Oops!
3031
3032 Your 'rm' program seems unable to run without file operands specified
3033 on the command line, even when the '-f' option is present. This is contrary
3034 to the behaviour of most rm programs out there, and not conforming with
3035 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3036
3037 Please tell bug-automake@gnu.org about your system, including the value
3038 of your $PATH and any error possibly output before this message. This
3039 can help us improve future automake versions.
3040
3041 END
3042 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3043 echo 'Configuration will proceed anyway, since you have set the' >&2
3044 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3045 echo >&2
3046 else
3047 cat >&2 <<'END'
3048 Aborting the configuration process, to ensure you take notice of the issue.
3049
3050 You can download and install GNU coreutils to get an 'rm' implementation
3051 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3052
3053 If you want to complete the configuration process using your problematic
3054 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3055 to "yes", and re-run configure.
3056
3057 END
3058 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3059 fi
3060 fi
3061
3062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3063 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3064 # Check whether --enable-maintainer-mode was given.
3065 if test "${enable_maintainer_mode+set}" = set; then :
3066 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3067 else
3068 USE_MAINTAINER_MODE=no
3069 fi
3070
3071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3072 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3073 if test $USE_MAINTAINER_MODE = yes; then
3074 MAINTAINER_MODE_TRUE=
3075 MAINTAINER_MODE_FALSE='#'
3076 else
3077 MAINTAINER_MODE_TRUE='#'
3078 MAINTAINER_MODE_FALSE=
3079 fi
3080
3081 MAINT=$MAINTAINER_MODE_TRUE
3082
3083
3084
3085 ac_config_headers="$ac_config_headers config.h"
3086
3087
3088
3089 # Checks for programs.
3090 DEPDIR="${am__leading_dot}deps"
3091
3092 ac_config_commands="$ac_config_commands depfiles"
3093
3094
3095 am_make=${MAKE-make}
3096 cat > confinc << 'END'
3097 am__doit:
3098 @echo this is the am__doit target
3099 .PHONY: am__doit
3100 END
3101 # If we don't find an include directive, just comment out the code.
3102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3103 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3104 am__include="#"
3105 am__quote=
3106 _am_result=none
3107 # First try GNU make style include.
3108 echo "include confinc" > confmf
3109 # Ignore all kinds of additional output from 'make'.
3110 case `$am_make -s -f confmf 2> /dev/null` in #(
3111 *the\ am__doit\ target*)
3112 am__include=include
3113 am__quote=
3114 _am_result=GNU
3115 ;;
3116 esac
3117 # Now try BSD make style include.
3118 if test "$am__include" = "#"; then
3119 echo '.include "confinc"' > confmf
3120 case `$am_make -s -f confmf 2> /dev/null` in #(
3121 *the\ am__doit\ target*)
3122 am__include=.include
3123 am__quote="\""
3124 _am_result=BSD
3125 ;;
3126 esac
3127 fi
3128
3129
3130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3131 $as_echo "$_am_result" >&6; }
3132 rm -f confinc confmf
3133
3134 # Check whether --enable-dependency-tracking was given.
3135 if test "${enable_dependency_tracking+set}" = set; then :
3136 enableval=$enable_dependency_tracking;
3137 fi
3138
3139 if test "x$enable_dependency_tracking" != xno; then
3140 am_depcomp="$ac_aux_dir/depcomp"
3141 AMDEPBACKSLASH='\'
3142 am__nodep='_no'
3143 fi
3144 if test "x$enable_dependency_tracking" != xno; then
3145 AMDEP_TRUE=
3146 AMDEP_FALSE='#'
3147 else
3148 AMDEP_TRUE='#'
3149 AMDEP_FALSE=
3150 fi
3151
3152
3153 ac_ext=c
3154 ac_cpp='$CPP $CPPFLAGS'
3155 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3156 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3157 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3158 if test -n "$ac_tool_prefix"; then
3159 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3160 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3162 $as_echo_n "checking for $ac_word... " >&6; }
3163 if ${ac_cv_prog_CC+:} false; then :
3164 $as_echo_n "(cached) " >&6
3165 else
3166 if test -n "$CC"; then
3167 ac_cv_prog_CC="$CC" # Let the user override the test.
3168 else
3169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3170 for as_dir in $PATH
3171 do
3172 IFS=$as_save_IFS
3173 test -z "$as_dir" && as_dir=.
3174 for ac_exec_ext in '' $ac_executable_extensions; do
3175 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3176 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3177 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3178 break 2
3179 fi
3180 done
3181 done
3182 IFS=$as_save_IFS
3183
3184 fi
3185 fi
3186 CC=$ac_cv_prog_CC
3187 if test -n "$CC"; then
3188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3189 $as_echo "$CC" >&6; }
3190 else
3191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3192 $as_echo "no" >&6; }
3193 fi
3194
3195
3196 fi
3197 if test -z "$ac_cv_prog_CC"; then
3198 ac_ct_CC=$CC
3199 # Extract the first word of "gcc", so it can be a program name with args.
3200 set dummy gcc; ac_word=$2
3201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3202 $as_echo_n "checking for $ac_word... " >&6; }
3203 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3204 $as_echo_n "(cached) " >&6
3205 else
3206 if test -n "$ac_ct_CC"; then
3207 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3208 else
3209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3210 for as_dir in $PATH
3211 do
3212 IFS=$as_save_IFS
3213 test -z "$as_dir" && as_dir=.
3214 for ac_exec_ext in '' $ac_executable_extensions; do
3215 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3216 ac_cv_prog_ac_ct_CC="gcc"
3217 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3218 break 2
3219 fi
3220 done
3221 done
3222 IFS=$as_save_IFS
3223
3224 fi
3225 fi
3226 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3227 if test -n "$ac_ct_CC"; then
3228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3229 $as_echo "$ac_ct_CC" >&6; }
3230 else
3231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3232 $as_echo "no" >&6; }
3233 fi
3234
3235 if test "x$ac_ct_CC" = x; then
3236 CC=""
3237 else
3238 case $cross_compiling:$ac_tool_warned in
3239 yes:)
3240 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3241 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3242 ac_tool_warned=yes ;;
3243 esac
3244 CC=$ac_ct_CC
3245 fi
3246 else
3247 CC="$ac_cv_prog_CC"
3248 fi
3249
3250 if test -z "$CC"; then
3251 if test -n "$ac_tool_prefix"; then
3252 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3253 set dummy ${ac_tool_prefix}cc; ac_word=$2
3254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3255 $as_echo_n "checking for $ac_word... " >&6; }
3256 if ${ac_cv_prog_CC+:} false; then :
3257 $as_echo_n "(cached) " >&6
3258 else
3259 if test -n "$CC"; then
3260 ac_cv_prog_CC="$CC" # Let the user override the test.
3261 else
3262 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3263 for as_dir in $PATH
3264 do
3265 IFS=$as_save_IFS
3266 test -z "$as_dir" && as_dir=.
3267 for ac_exec_ext in '' $ac_executable_extensions; do
3268 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3269 ac_cv_prog_CC="${ac_tool_prefix}cc"
3270 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3271 break 2
3272 fi
3273 done
3274 done
3275 IFS=$as_save_IFS
3276
3277 fi
3278 fi
3279 CC=$ac_cv_prog_CC
3280 if test -n "$CC"; then
3281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3282 $as_echo "$CC" >&6; }
3283 else
3284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3285 $as_echo "no" >&6; }
3286 fi
3287
3288
3289 fi
3290 fi
3291 if test -z "$CC"; then
3292 # Extract the first word of "cc", so it can be a program name with args.
3293 set dummy cc; ac_word=$2
3294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3295 $as_echo_n "checking for $ac_word... " >&6; }
3296 if ${ac_cv_prog_CC+:} false; then :
3297 $as_echo_n "(cached) " >&6
3298 else
3299 if test -n "$CC"; then
3300 ac_cv_prog_CC="$CC" # Let the user override the test.
3301 else
3302 ac_prog_rejected=no
3303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3304 for as_dir in $PATH
3305 do
3306 IFS=$as_save_IFS
3307 test -z "$as_dir" && as_dir=.
3308 for ac_exec_ext in '' $ac_executable_extensions; do
3309 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3310 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3311 ac_prog_rejected=yes
3312 continue
3313 fi
3314 ac_cv_prog_CC="cc"
3315 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3316 break 2
3317 fi
3318 done
3319 done
3320 IFS=$as_save_IFS
3321
3322 if test $ac_prog_rejected = yes; then
3323 # We found a bogon in the path, so make sure we never use it.
3324 set dummy $ac_cv_prog_CC
3325 shift
3326 if test $# != 0; then
3327 # We chose a different compiler from the bogus one.
3328 # However, it has the same basename, so the bogon will be chosen
3329 # first if we set CC to just the basename; use the full file name.
3330 shift
3331 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3332 fi
3333 fi
3334 fi
3335 fi
3336 CC=$ac_cv_prog_CC
3337 if test -n "$CC"; then
3338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3339 $as_echo "$CC" >&6; }
3340 else
3341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3342 $as_echo "no" >&6; }
3343 fi
3344
3345
3346 fi
3347 if test -z "$CC"; then
3348 if test -n "$ac_tool_prefix"; then
3349 for ac_prog in cl.exe
3350 do
3351 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3352 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3354 $as_echo_n "checking for $ac_word... " >&6; }
3355 if ${ac_cv_prog_CC+:} false; then :
3356 $as_echo_n "(cached) " >&6
3357 else
3358 if test -n "$CC"; then
3359 ac_cv_prog_CC="$CC" # Let the user override the test.
3360 else
3361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3362 for as_dir in $PATH
3363 do
3364 IFS=$as_save_IFS
3365 test -z "$as_dir" && as_dir=.
3366 for ac_exec_ext in '' $ac_executable_extensions; do
3367 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3368 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3369 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3370 break 2
3371 fi
3372 done
3373 done
3374 IFS=$as_save_IFS
3375
3376 fi
3377 fi
3378 CC=$ac_cv_prog_CC
3379 if test -n "$CC"; then
3380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3381 $as_echo "$CC" >&6; }
3382 else
3383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3384 $as_echo "no" >&6; }
3385 fi
3386
3387
3388 test -n "$CC" && break
3389 done
3390 fi
3391 if test -z "$CC"; then
3392 ac_ct_CC=$CC
3393 for ac_prog in cl.exe
3394 do
3395 # Extract the first word of "$ac_prog", so it can be a program name with args.
3396 set dummy $ac_prog; ac_word=$2
3397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3398 $as_echo_n "checking for $ac_word... " >&6; }
3399 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3400 $as_echo_n "(cached) " >&6
3401 else
3402 if test -n "$ac_ct_CC"; then
3403 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3404 else
3405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3406 for as_dir in $PATH
3407 do
3408 IFS=$as_save_IFS
3409 test -z "$as_dir" && as_dir=.
3410 for ac_exec_ext in '' $ac_executable_extensions; do
3411 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3412 ac_cv_prog_ac_ct_CC="$ac_prog"
3413 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3414 break 2
3415 fi
3416 done
3417 done
3418 IFS=$as_save_IFS
3419
3420 fi
3421 fi
3422 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3423 if test -n "$ac_ct_CC"; then
3424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3425 $as_echo "$ac_ct_CC" >&6; }
3426 else
3427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3428 $as_echo "no" >&6; }
3429 fi
3430
3431
3432 test -n "$ac_ct_CC" && break
3433 done
3434
3435 if test "x$ac_ct_CC" = x; then
3436 CC=""
3437 else
3438 case $cross_compiling:$ac_tool_warned in
3439 yes:)
3440 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3441 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3442 ac_tool_warned=yes ;;
3443 esac
3444 CC=$ac_ct_CC
3445 fi
3446 fi
3447
3448 fi
3449
3450
3451 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3452 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3453 as_fn_error $? "no acceptable C compiler found in \$PATH
3454 See \`config.log' for more details" "$LINENO" 5; }
3455
3456 # Provide some information about the compiler.
3457 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3458 set X $ac_compile
3459 ac_compiler=$2
3460 for ac_option in --version -v -V -qversion; do
3461 { { ac_try="$ac_compiler $ac_option >&5"
3462 case "(($ac_try" in
3463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3464 *) ac_try_echo=$ac_try;;
3465 esac
3466 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3467 $as_echo "$ac_try_echo"; } >&5
3468 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3469 ac_status=$?
3470 if test -s conftest.err; then
3471 sed '10a\
3472 ... rest of stderr output deleted ...
3473 10q' conftest.err >conftest.er1
3474 cat conftest.er1 >&5
3475 fi
3476 rm -f conftest.er1 conftest.err
3477 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3478 test $ac_status = 0; }
3479 done
3480
3481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3482 /* end confdefs.h. */
3483
3484 int
3485 main ()
3486 {
3487
3488 ;
3489 return 0;
3490 }
3491 _ACEOF
3492 ac_clean_files_save=$ac_clean_files
3493 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3494 # Try to create an executable without -o first, disregard a.out.
3495 # It will help us diagnose broken compilers, and finding out an intuition
3496 # of exeext.
3497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3498 $as_echo_n "checking whether the C compiler works... " >&6; }
3499 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3500
3501 # The possible output files:
3502 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3503
3504 ac_rmfiles=
3505 for ac_file in $ac_files
3506 do
3507 case $ac_file in
3508 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3509 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3510 esac
3511 done
3512 rm -f $ac_rmfiles
3513
3514 if { { ac_try="$ac_link_default"
3515 case "(($ac_try" in
3516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3517 *) ac_try_echo=$ac_try;;
3518 esac
3519 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3520 $as_echo "$ac_try_echo"; } >&5
3521 (eval "$ac_link_default") 2>&5
3522 ac_status=$?
3523 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3524 test $ac_status = 0; }; then :
3525 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3526 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3527 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3528 # so that the user can short-circuit this test for compilers unknown to
3529 # Autoconf.
3530 for ac_file in $ac_files ''
3531 do
3532 test -f "$ac_file" || continue
3533 case $ac_file in
3534 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3535 ;;
3536 [ab].out )
3537 # We found the default executable, but exeext='' is most
3538 # certainly right.
3539 break;;
3540 *.* )
3541 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3542 then :; else
3543 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3544 fi
3545 # We set ac_cv_exeext here because the later test for it is not
3546 # safe: cross compilers may not add the suffix if given an `-o'
3547 # argument, so we may need to know it at that point already.
3548 # Even if this section looks crufty: it has the advantage of
3549 # actually working.
3550 break;;
3551 * )
3552 break;;
3553 esac
3554 done
3555 test "$ac_cv_exeext" = no && ac_cv_exeext=
3556
3557 else
3558 ac_file=''
3559 fi
3560 if test -z "$ac_file"; then :
3561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3562 $as_echo "no" >&6; }
3563 $as_echo "$as_me: failed program was:" >&5
3564 sed 's/^/| /' conftest.$ac_ext >&5
3565
3566 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3567 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3568 as_fn_error 77 "C compiler cannot create executables
3569 See \`config.log' for more details" "$LINENO" 5; }
3570 else
3571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3572 $as_echo "yes" >&6; }
3573 fi
3574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3575 $as_echo_n "checking for C compiler default output file name... " >&6; }
3576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3577 $as_echo "$ac_file" >&6; }
3578 ac_exeext=$ac_cv_exeext
3579
3580 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3581 ac_clean_files=$ac_clean_files_save
3582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3583 $as_echo_n "checking for suffix of executables... " >&6; }
3584 if { { ac_try="$ac_link"
3585 case "(($ac_try" in
3586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3587 *) ac_try_echo=$ac_try;;
3588 esac
3589 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3590 $as_echo "$ac_try_echo"; } >&5
3591 (eval "$ac_link") 2>&5
3592 ac_status=$?
3593 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3594 test $ac_status = 0; }; then :
3595 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3596 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3597 # work properly (i.e., refer to `conftest.exe'), while it won't with
3598 # `rm'.
3599 for ac_file in conftest.exe conftest conftest.*; do
3600 test -f "$ac_file" || continue
3601 case $ac_file in
3602 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3603 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3604 break;;
3605 * ) break;;
3606 esac
3607 done
3608 else
3609 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3610 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3611 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3612 See \`config.log' for more details" "$LINENO" 5; }
3613 fi
3614 rm -f conftest conftest$ac_cv_exeext
3615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3616 $as_echo "$ac_cv_exeext" >&6; }
3617
3618 rm -f conftest.$ac_ext
3619 EXEEXT=$ac_cv_exeext
3620 ac_exeext=$EXEEXT
3621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3622 /* end confdefs.h. */
3623 #include <stdio.h>
3624 int
3625 main ()
3626 {
3627 FILE *f = fopen ("conftest.out", "w");
3628 return ferror (f) || fclose (f) != 0;
3629
3630 ;
3631 return 0;
3632 }
3633 _ACEOF
3634 ac_clean_files="$ac_clean_files conftest.out"
3635 # Check that the compiler produces executables we can run. If not, either
3636 # the compiler is broken, or we cross compile.
3637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3638 $as_echo_n "checking whether we are cross compiling... " >&6; }
3639 if test "$cross_compiling" != yes; then
3640 { { ac_try="$ac_link"
3641 case "(($ac_try" in
3642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3643 *) ac_try_echo=$ac_try;;
3644 esac
3645 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3646 $as_echo "$ac_try_echo"; } >&5
3647 (eval "$ac_link") 2>&5
3648 ac_status=$?
3649 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3650 test $ac_status = 0; }
3651 if { ac_try='./conftest$ac_cv_exeext'
3652 { { case "(($ac_try" in
3653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3654 *) ac_try_echo=$ac_try;;
3655 esac
3656 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3657 $as_echo "$ac_try_echo"; } >&5
3658 (eval "$ac_try") 2>&5
3659 ac_status=$?
3660 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3661 test $ac_status = 0; }; }; then
3662 cross_compiling=no
3663 else
3664 if test "$cross_compiling" = maybe; then
3665 cross_compiling=yes
3666 else
3667 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3668 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3669 as_fn_error $? "cannot run C compiled programs.
3670 If you meant to cross compile, use \`--host'.
3671 See \`config.log' for more details" "$LINENO" 5; }
3672 fi
3673 fi
3674 fi
3675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3676 $as_echo "$cross_compiling" >&6; }
3677
3678 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3679 ac_clean_files=$ac_clean_files_save
3680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3681 $as_echo_n "checking for suffix of object files... " >&6; }
3682 if ${ac_cv_objext+:} false; then :
3683 $as_echo_n "(cached) " >&6
3684 else
3685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3686 /* end confdefs.h. */
3687
3688 int
3689 main ()
3690 {
3691
3692 ;
3693 return 0;
3694 }
3695 _ACEOF
3696 rm -f conftest.o conftest.obj
3697 if { { ac_try="$ac_compile"
3698 case "(($ac_try" in
3699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3700 *) ac_try_echo=$ac_try;;
3701 esac
3702 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3703 $as_echo "$ac_try_echo"; } >&5
3704 (eval "$ac_compile") 2>&5
3705 ac_status=$?
3706 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3707 test $ac_status = 0; }; then :
3708 for ac_file in conftest.o conftest.obj conftest.*; do
3709 test -f "$ac_file" || continue;
3710 case $ac_file in
3711 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3712 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3713 break;;
3714 esac
3715 done
3716 else
3717 $as_echo "$as_me: failed program was:" >&5
3718 sed 's/^/| /' conftest.$ac_ext >&5
3719
3720 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3721 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3722 as_fn_error $? "cannot compute suffix of object files: cannot compile
3723 See \`config.log' for more details" "$LINENO" 5; }
3724 fi
3725 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3726 fi
3727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3728 $as_echo "$ac_cv_objext" >&6; }
3729 OBJEXT=$ac_cv_objext
3730 ac_objext=$OBJEXT
3731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3732 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3733 if ${ac_cv_c_compiler_gnu+:} false; then :
3734 $as_echo_n "(cached) " >&6
3735 else
3736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3737 /* end confdefs.h. */
3738
3739 int
3740 main ()
3741 {
3742 #ifndef __GNUC__
3743 choke me
3744 #endif
3745
3746 ;
3747 return 0;
3748 }
3749 _ACEOF
3750 if ac_fn_c_try_compile "$LINENO"; then :
3751 ac_compiler_gnu=yes
3752 else
3753 ac_compiler_gnu=no
3754 fi
3755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3756 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3757
3758 fi
3759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3760 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3761 if test $ac_compiler_gnu = yes; then
3762 GCC=yes
3763 else
3764 GCC=
3765 fi
3766 ac_test_CFLAGS=${CFLAGS+set}
3767 ac_save_CFLAGS=$CFLAGS
3768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3769 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3770 if ${ac_cv_prog_cc_g+:} false; then :
3771 $as_echo_n "(cached) " >&6
3772 else
3773 ac_save_c_werror_flag=$ac_c_werror_flag
3774 ac_c_werror_flag=yes
3775 ac_cv_prog_cc_g=no
3776 CFLAGS="-g"
3777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3778 /* end confdefs.h. */
3779
3780 int
3781 main ()
3782 {
3783
3784 ;
3785 return 0;
3786 }
3787 _ACEOF
3788 if ac_fn_c_try_compile "$LINENO"; then :
3789 ac_cv_prog_cc_g=yes
3790 else
3791 CFLAGS=""
3792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3793 /* end confdefs.h. */
3794
3795 int
3796 main ()
3797 {
3798
3799 ;
3800 return 0;
3801 }
3802 _ACEOF
3803 if ac_fn_c_try_compile "$LINENO"; then :
3804
3805 else
3806 ac_c_werror_flag=$ac_save_c_werror_flag
3807 CFLAGS="-g"
3808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3809 /* end confdefs.h. */
3810
3811 int
3812 main ()
3813 {
3814
3815 ;
3816 return 0;
3817 }
3818 _ACEOF
3819 if ac_fn_c_try_compile "$LINENO"; then :
3820 ac_cv_prog_cc_g=yes
3821 fi
3822 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3823 fi
3824 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3825 fi
3826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3827 ac_c_werror_flag=$ac_save_c_werror_flag
3828 fi
3829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3830 $as_echo "$ac_cv_prog_cc_g" >&6; }
3831 if test "$ac_test_CFLAGS" = set; then
3832 CFLAGS=$ac_save_CFLAGS
3833 elif test $ac_cv_prog_cc_g = yes; then
3834 if test "$GCC" = yes; then
3835 CFLAGS="-g -O2"
3836 else
3837 CFLAGS="-g"
3838 fi
3839 else
3840 if test "$GCC" = yes; then
3841 CFLAGS="-O2"
3842 else
3843 CFLAGS=
3844 fi
3845 fi
3846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3847 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3848 if ${ac_cv_prog_cc_c89+:} false; then :
3849 $as_echo_n "(cached) " >&6
3850 else
3851 ac_cv_prog_cc_c89=no
3852 ac_save_CC=$CC
3853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3854 /* end confdefs.h. */
3855 #include <stdarg.h>
3856 #include <stdio.h>
3857 struct stat;
3858 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3859 struct buf { int x; };
3860 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3861 static char *e (p, i)
3862 char **p;
3863 int i;
3864 {
3865 return p[i];
3866 }
3867 static char *f (char * (*g) (char **, int), char **p, ...)
3868 {
3869 char *s;
3870 va_list v;
3871 va_start (v,p);
3872 s = g (p, va_arg (v,int));
3873 va_end (v);
3874 return s;
3875 }
3876
3877 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3878 function prototypes and stuff, but not '\xHH' hex character constants.
3879 These don't provoke an error unfortunately, instead are silently treated
3880 as 'x'. The following induces an error, until -std is added to get
3881 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3882 array size at least. It's necessary to write '\x00'==0 to get something
3883 that's true only with -std. */
3884 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3885
3886 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3887 inside strings and character constants. */
3888 #define FOO(x) 'x'
3889 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3890
3891 int test (int i, double x);
3892 struct s1 {int (*f) (int a);};
3893 struct s2 {int (*f) (double a);};
3894 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3895 int argc;
3896 char **argv;
3897 int
3898 main ()
3899 {
3900 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3901 ;
3902 return 0;
3903 }
3904 _ACEOF
3905 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3906 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3907 do
3908 CC="$ac_save_CC $ac_arg"
3909 if ac_fn_c_try_compile "$LINENO"; then :
3910 ac_cv_prog_cc_c89=$ac_arg
3911 fi
3912 rm -f core conftest.err conftest.$ac_objext
3913 test "x$ac_cv_prog_cc_c89" != "xno" && break
3914 done
3915 rm -f conftest.$ac_ext
3916 CC=$ac_save_CC
3917
3918 fi
3919 # AC_CACHE_VAL
3920 case "x$ac_cv_prog_cc_c89" in
3921 x)
3922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3923 $as_echo "none needed" >&6; } ;;
3924 xno)
3925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3926 $as_echo "unsupported" >&6; } ;;
3927 *)
3928 CC="$CC $ac_cv_prog_cc_c89"
3929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3930 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3931 esac
3932 if test "x$ac_cv_prog_cc_c89" != xno; then :
3933
3934 fi
3935
3936 ac_ext=c
3937 ac_cpp='$CPP $CPPFLAGS'
3938 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3939 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3940 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3941
3942 ac_ext=c
3943 ac_cpp='$CPP $CPPFLAGS'
3944 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3945 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3946 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3948 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3949 if ${am_cv_prog_cc_c_o+:} false; then :
3950 $as_echo_n "(cached) " >&6
3951 else
3952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3953 /* end confdefs.h. */
3954
3955 int
3956 main ()
3957 {
3958
3959 ;
3960 return 0;
3961 }
3962 _ACEOF
3963 # Make sure it works both with $CC and with simple cc.
3964 # Following AC_PROG_CC_C_O, we do the test twice because some
3965 # compilers refuse to overwrite an existing .o file with -o,
3966 # though they will create one.
3967 am_cv_prog_cc_c_o=yes
3968 for am_i in 1 2; do
3969 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3970 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3971 ac_status=$?
3972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3973 (exit $ac_status); } \
3974 && test -f conftest2.$ac_objext; then
3975 : OK
3976 else
3977 am_cv_prog_cc_c_o=no
3978 break
3979 fi
3980 done
3981 rm -f core conftest*
3982 unset am_i
3983 fi
3984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3985 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3986 if test "$am_cv_prog_cc_c_o" != yes; then
3987 # Losing compiler, so override with the script.
3988 # FIXME: It is wrong to rewrite CC.
3989 # But if we don't then we get into trouble of one sort or another.
3990 # A longer-term fix would be to have automake use am__CC in this case,
3991 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3992 CC="$am_aux_dir/compile $CC"
3993 fi
3994 ac_ext=c
3995 ac_cpp='$CPP $CPPFLAGS'
3996 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3997 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3998 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3999
4000
4001 depcc="$CC" am_compiler_list=
4002
4003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4004 $as_echo_n "checking dependency style of $depcc... " >&6; }
4005 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4006 $as_echo_n "(cached) " >&6
4007 else
4008 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4009 # We make a subdir and do the tests there. Otherwise we can end up
4010 # making bogus files that we don't know about and never remove. For
4011 # instance it was reported that on HP-UX the gcc test will end up
4012 # making a dummy file named 'D' -- because '-MD' means "put the output
4013 # in D".
4014 rm -rf conftest.dir
4015 mkdir conftest.dir
4016 # Copy depcomp to subdir because otherwise we won't find it if we're
4017 # using a relative directory.
4018 cp "$am_depcomp" conftest.dir
4019 cd conftest.dir
4020 # We will build objects and dependencies in a subdirectory because
4021 # it helps to detect inapplicable dependency modes. For instance
4022 # both Tru64's cc and ICC support -MD to output dependencies as a
4023 # side effect of compilation, but ICC will put the dependencies in
4024 # the current directory while Tru64 will put them in the object
4025 # directory.
4026 mkdir sub
4027
4028 am_cv_CC_dependencies_compiler_type=none
4029 if test "$am_compiler_list" = ""; then
4030 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4031 fi
4032 am__universal=false
4033 case " $depcc " in #(
4034 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4035 esac
4036
4037 for depmode in $am_compiler_list; do
4038 # Setup a source with many dependencies, because some compilers
4039 # like to wrap large dependency lists on column 80 (with \), and
4040 # we should not choose a depcomp mode which is confused by this.
4041 #
4042 # We need to recreate these files for each test, as the compiler may
4043 # overwrite some of them when testing with obscure command lines.
4044 # This happens at least with the AIX C compiler.
4045 : > sub/conftest.c
4046 for i in 1 2 3 4 5 6; do
4047 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4048 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4049 # Solaris 10 /bin/sh.
4050 echo '/* dummy */' > sub/conftst$i.h
4051 done
4052 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4053
4054 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4055 # mode. It turns out that the SunPro C++ compiler does not properly
4056 # handle '-M -o', and we need to detect this. Also, some Intel
4057 # versions had trouble with output in subdirs.
4058 am__obj=sub/conftest.${OBJEXT-o}
4059 am__minus_obj="-o $am__obj"
4060 case $depmode in
4061 gcc)
4062 # This depmode causes a compiler race in universal mode.
4063 test "$am__universal" = false || continue
4064 ;;
4065 nosideeffect)
4066 # After this tag, mechanisms are not by side-effect, so they'll
4067 # only be used when explicitly requested.
4068 if test "x$enable_dependency_tracking" = xyes; then
4069 continue
4070 else
4071 break
4072 fi
4073 ;;
4074 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4075 # This compiler won't grok '-c -o', but also, the minuso test has
4076 # not run yet. These depmodes are late enough in the game, and
4077 # so weak that their functioning should not be impacted.
4078 am__obj=conftest.${OBJEXT-o}
4079 am__minus_obj=
4080 ;;
4081 none) break ;;
4082 esac
4083 if depmode=$depmode \
4084 source=sub/conftest.c object=$am__obj \
4085 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4086 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4087 >/dev/null 2>conftest.err &&
4088 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4089 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4090 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4091 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4092 # icc doesn't choke on unknown options, it will just issue warnings
4093 # or remarks (even with -Werror). So we grep stderr for any message
4094 # that says an option was ignored or not supported.
4095 # When given -MP, icc 7.0 and 7.1 complain thusly:
4096 # icc: Command line warning: ignoring option '-M'; no argument required
4097 # The diagnosis changed in icc 8.0:
4098 # icc: Command line remark: option '-MP' not supported
4099 if (grep 'ignoring option' conftest.err ||
4100 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4101 am_cv_CC_dependencies_compiler_type=$depmode
4102 break
4103 fi
4104 fi
4105 done
4106
4107 cd ..
4108 rm -rf conftest.dir
4109 else
4110 am_cv_CC_dependencies_compiler_type=none
4111 fi
4112
4113 fi
4114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4115 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4116 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4117
4118 if
4119 test "x$enable_dependency_tracking" != xno \
4120 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4121 am__fastdepCC_TRUE=
4122 am__fastdepCC_FALSE='#'
4123 else
4124 am__fastdepCC_TRUE='#'
4125 am__fastdepCC_FALSE=
4126 fi
4127
4128
4129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
4130 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4131 if ${ac_cv_prog_cc_c99+:} false; then :
4132 $as_echo_n "(cached) " >&6
4133 else
4134 ac_cv_prog_cc_c99=no
4135 ac_save_CC=$CC
4136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4137 /* end confdefs.h. */
4138 #include <stdarg.h>
4139 #include <stdbool.h>
4140 #include <stdlib.h>
4141 #include <wchar.h>
4142 #include <stdio.h>
4143
4144 // Check varargs macros. These examples are taken from C99 6.10.3.5.
4145 #define debug(...) fprintf (stderr, __VA_ARGS__)
4146 #define showlist(...) puts (#__VA_ARGS__)
4147 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4148 static void
4149 test_varargs_macros (void)
4150 {
4151 int x = 1234;
4152 int y = 5678;
4153 debug ("Flag");
4154 debug ("X = %d\n", x);
4155 showlist (The first, second, and third items.);
4156 report (x>y, "x is %d but y is %d", x, y);
4157 }
4158
4159 // Check long long types.
4160 #define BIG64 18446744073709551615ull
4161 #define BIG32 4294967295ul
4162 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4163 #if !BIG_OK
4164 your preprocessor is broken;
4165 #endif
4166 #if BIG_OK
4167 #else
4168 your preprocessor is broken;
4169 #endif
4170 static long long int bignum = -9223372036854775807LL;
4171 static unsigned long long int ubignum = BIG64;
4172
4173 struct incomplete_array
4174 {
4175 int datasize;
4176 double data[];
4177 };
4178
4179 struct named_init {
4180 int number;
4181 const wchar_t *name;
4182 double average;
4183 };
4184
4185 typedef const char *ccp;
4186
4187 static inline int
4188 test_restrict (ccp restrict text)
4189 {
4190 // See if C++-style comments work.
4191 // Iterate through items via the restricted pointer.
4192 // Also check for declarations in for loops.
4193 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4194 continue;
4195 return 0;
4196 }
4197
4198 // Check varargs and va_copy.
4199 static void
4200 test_varargs (const char *format, ...)
4201 {
4202 va_list args;
4203 va_start (args, format);
4204 va_list args_copy;
4205 va_copy (args_copy, args);
4206
4207 const char *str;
4208 int number;
4209 float fnumber;
4210
4211 while (*format)
4212 {
4213 switch (*format++)
4214 {
4215 case 's': // string
4216 str = va_arg (args_copy, const char *);
4217 break;
4218 case 'd': // int
4219 number = va_arg (args_copy, int);
4220 break;
4221 case 'f': // float
4222 fnumber = va_arg (args_copy, double);
4223 break;
4224 default:
4225 break;
4226 }
4227 }
4228 va_end (args_copy);
4229 va_end (args);
4230 }
4231
4232 int
4233 main ()
4234 {
4235
4236 // Check bool.
4237 _Bool success = false;
4238
4239 // Check restrict.
4240 if (test_restrict ("String literal") == 0)
4241 success = true;
4242 char *restrict newvar = "Another string";
4243
4244 // Check varargs.
4245 test_varargs ("s, d' f .", "string", 65, 34.234);
4246 test_varargs_macros ();
4247
4248 // Check flexible array members.
4249 struct incomplete_array *ia =
4250 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4251 ia->datasize = 10;
4252 for (int i = 0; i < ia->datasize; ++i)
4253 ia->data[i] = i * 1.234;
4254
4255 // Check named initializers.
4256 struct named_init ni = {
4257 .number = 34,
4258 .name = L"Test wide string",
4259 .average = 543.34343,
4260 };
4261
4262 ni.number = 58;
4263
4264 int dynamic_array[ni.number];
4265 dynamic_array[ni.number - 1] = 543;
4266
4267 // work around unused variable warnings
4268 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4269 || dynamic_array[ni.number - 1] != 543);
4270
4271 ;
4272 return 0;
4273 }
4274 _ACEOF
4275 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
4276 do
4277 CC="$ac_save_CC $ac_arg"
4278 if ac_fn_c_try_compile "$LINENO"; then :
4279 ac_cv_prog_cc_c99=$ac_arg
4280 fi
4281 rm -f core conftest.err conftest.$ac_objext
4282 test "x$ac_cv_prog_cc_c99" != "xno" && break
4283 done
4284 rm -f conftest.$ac_ext
4285 CC=$ac_save_CC
4286
4287 fi
4288 # AC_CACHE_VAL
4289 case "x$ac_cv_prog_cc_c99" in
4290 x)
4291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4292 $as_echo "none needed" >&6; } ;;
4293 xno)
4294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4295 $as_echo "unsupported" >&6; } ;;
4296 *)
4297 CC="$CC $ac_cv_prog_cc_c99"
4298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4299 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4300 esac
4301 if test "x$ac_cv_prog_cc_c99" != xno; then :
4302
4303 fi
4304
4305
4306 if test "$ac_cv_prog_cc_c99" = "no"; then :
4307 as_fn_error $? "no suitable C99 compiler found. Aborting." "$LINENO" 5
4308 fi
4309 for ac_prog in 'bison -y' byacc
4310 do
4311 # Extract the first word of "$ac_prog", so it can be a program name with args.
4312 set dummy $ac_prog; ac_word=$2
4313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4314 $as_echo_n "checking for $ac_word... " >&6; }
4315 if ${ac_cv_prog_YACC+:} false; then :
4316 $as_echo_n "(cached) " >&6
4317 else
4318 if test -n "$YACC"; then
4319 ac_cv_prog_YACC="$YACC" # Let the user override the test.
4320 else
4321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4322 for as_dir in $PATH
4323 do
4324 IFS=$as_save_IFS
4325 test -z "$as_dir" && as_dir=.
4326 for ac_exec_ext in '' $ac_executable_extensions; do
4327 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4328 ac_cv_prog_YACC="$ac_prog"
4329 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4330 break 2
4331 fi
4332 done
4333 done
4334 IFS=$as_save_IFS
4335
4336 fi
4337 fi
4338 YACC=$ac_cv_prog_YACC
4339 if test -n "$YACC"; then
4340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
4341 $as_echo "$YACC" >&6; }
4342 else
4343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4344 $as_echo "no" >&6; }
4345 fi
4346
4347
4348 test -n "$YACC" && break
4349 done
4350 test -n "$YACC" || YACC="yacc"
4351
4352
4353 for ac_prog in flex lex
4354 do
4355 # Extract the first word of "$ac_prog", so it can be a program name with args.
4356 set dummy $ac_prog; ac_word=$2
4357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4358 $as_echo_n "checking for $ac_word... " >&6; }
4359 if ${ac_cv_prog_LEX+:} false; then :
4360 $as_echo_n "(cached) " >&6
4361 else
4362 if test -n "$LEX"; then
4363 ac_cv_prog_LEX="$LEX" # Let the user override the test.
4364 else
4365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4366 for as_dir in $PATH
4367 do
4368 IFS=$as_save_IFS
4369 test -z "$as_dir" && as_dir=.
4370 for ac_exec_ext in '' $ac_executable_extensions; do
4371 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4372 ac_cv_prog_LEX="$ac_prog"
4373 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4374 break 2
4375 fi
4376 done
4377 done
4378 IFS=$as_save_IFS
4379
4380 fi
4381 fi
4382 LEX=$ac_cv_prog_LEX
4383 if test -n "$LEX"; then
4384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
4385 $as_echo "$LEX" >&6; }
4386 else
4387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4388 $as_echo "no" >&6; }
4389 fi
4390
4391
4392 test -n "$LEX" && break
4393 done
4394 test -n "$LEX" || LEX=":"
4395
4396 if test "x$LEX" != "x:"; then
4397 cat >conftest.l <<_ACEOF
4398 %%
4399 a { ECHO; }
4400 b { REJECT; }
4401 c { yymore (); }
4402 d { yyless (1); }
4403 e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument. */
4404 yyless ((input () != 0)); }
4405 f { unput (yytext[0]); }
4406 . { BEGIN INITIAL; }
4407 %%
4408 #ifdef YYTEXT_POINTER
4409 extern char *yytext;
4410 #endif
4411 int
4412 main (void)
4413 {
4414 return ! yylex () + ! yywrap ();
4415 }
4416 _ACEOF
4417 { { ac_try="$LEX conftest.l"
4418 case "(($ac_try" in
4419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4420 *) ac_try_echo=$ac_try;;
4421 esac
4422 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4423 $as_echo "$ac_try_echo"; } >&5
4424 (eval "$LEX conftest.l") 2>&5
4425 ac_status=$?
4426 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4427 test $ac_status = 0; }
4428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
4429 $as_echo_n "checking lex output file root... " >&6; }
4430 if ${ac_cv_prog_lex_root+:} false; then :
4431 $as_echo_n "(cached) " >&6
4432 else
4433
4434 if test -f lex.yy.c; then
4435 ac_cv_prog_lex_root=lex.yy
4436 elif test -f lexyy.c; then
4437 ac_cv_prog_lex_root=lexyy
4438 else
4439 as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5
4440 fi
4441 fi
4442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
4443 $as_echo "$ac_cv_prog_lex_root" >&6; }
4444 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
4445
4446 if test -z "${LEXLIB+set}"; then
4447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
4448 $as_echo_n "checking lex library... " >&6; }
4449 if ${ac_cv_lib_lex+:} false; then :
4450 $as_echo_n "(cached) " >&6
4451 else
4452
4453 ac_save_LIBS=$LIBS
4454 ac_cv_lib_lex='none needed'
4455 for ac_lib in '' -lfl -ll; do
4456 LIBS="$ac_lib $ac_save_LIBS"
4457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4458 /* end confdefs.h. */
4459 `cat $LEX_OUTPUT_ROOT.c`
4460 _ACEOF
4461 if ac_fn_c_try_link "$LINENO"; then :
4462 ac_cv_lib_lex=$ac_lib
4463 fi
4464 rm -f core conftest.err conftest.$ac_objext \
4465 conftest$ac_exeext conftest.$ac_ext
4466 test "$ac_cv_lib_lex" != 'none needed' && break
4467 done
4468 LIBS=$ac_save_LIBS
4469
4470 fi
4471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
4472 $as_echo "$ac_cv_lib_lex" >&6; }
4473 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
4474 fi
4475
4476
4477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
4478 $as_echo_n "checking whether yytext is a pointer... " >&6; }
4479 if ${ac_cv_prog_lex_yytext_pointer+:} false; then :
4480 $as_echo_n "(cached) " >&6
4481 else
4482 # POSIX says lex can declare yytext either as a pointer or an array; the
4483 # default is implementation-dependent. Figure out which it is, since
4484 # not all implementations provide the %pointer and %array declarations.
4485 ac_cv_prog_lex_yytext_pointer=no
4486 ac_save_LIBS=$LIBS
4487 LIBS="$LEXLIB $ac_save_LIBS"
4488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4489 /* end confdefs.h. */
4490
4491 #define YYTEXT_POINTER 1
4492 `cat $LEX_OUTPUT_ROOT.c`
4493 _ACEOF
4494 if ac_fn_c_try_link "$LINENO"; then :
4495 ac_cv_prog_lex_yytext_pointer=yes
4496 fi
4497 rm -f core conftest.err conftest.$ac_objext \
4498 conftest$ac_exeext conftest.$ac_ext
4499 LIBS=$ac_save_LIBS
4500
4501 fi
4502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
4503 $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
4504 if test $ac_cv_prog_lex_yytext_pointer = yes; then
4505
4506 $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
4507
4508 fi
4509 rm -f conftest.l $LEX_OUTPUT_ROOT.c
4510
4511 fi
4512 if test "$LEX" = :; then
4513 LEX=${am_missing_run}flex
4514 fi
4515
4516
4517 # Initializing libtool.
4518
4519
4520
4521
4522
4523
4524
4525 case `pwd` in
4526 *\ * | *\ *)
4527 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4528 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4529 esac
4530
4531
4532
4533 macro_version='2.4.2'
4534 macro_revision='1.3337'
4535
4536
4537
4538
4539
4540
4541
4542
4543
4544
4545
4546
4547
4548 ltmain="$ac_aux_dir/ltmain.sh"
4549
4550 # Make sure we can run config.sub.
4551 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4552 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4553
4554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4555 $as_echo_n "checking build system type... " >&6; }
4556 if ${ac_cv_build+:} false; then :
4557 $as_echo_n "(cached) " >&6
4558 else
4559 ac_build_alias=$build_alias
4560 test "x$ac_build_alias" = x &&
4561 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4562 test "x$ac_build_alias" = x &&
4563 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4564 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4565 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4566
4567 fi
4568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4569 $as_echo "$ac_cv_build" >&6; }
4570 case $ac_cv_build in
4571 *-*-*) ;;
4572 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4573 esac
4574 build=$ac_cv_build
4575 ac_save_IFS=$IFS; IFS='-'
4576 set x $ac_cv_build
4577 shift
4578 build_cpu=$1
4579 build_vendor=$2
4580 shift; shift
4581 # Remember, the first character of IFS is used to create $*,
4582 # except with old shells:
4583 build_os=$*
4584 IFS=$ac_save_IFS
4585 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4586
4587
4588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4589 $as_echo_n "checking host system type... " >&6; }
4590 if ${ac_cv_host+:} false; then :
4591 $as_echo_n "(cached) " >&6
4592 else
4593 if test "x$host_alias" = x; then
4594 ac_cv_host=$ac_cv_build
4595 else
4596 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4597 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4598 fi
4599
4600 fi
4601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4602 $as_echo "$ac_cv_host" >&6; }
4603 case $ac_cv_host in
4604 *-*-*) ;;
4605 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4606 esac
4607 host=$ac_cv_host
4608 ac_save_IFS=$IFS; IFS='-'
4609 set x $ac_cv_host
4610 shift
4611 host_cpu=$1
4612 host_vendor=$2
4613 shift; shift
4614 # Remember, the first character of IFS is used to create $*,
4615 # except with old shells:
4616 host_os=$*
4617 IFS=$ac_save_IFS
4618 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4619
4620
4621 # Backslashify metacharacters that are still active within
4622 # double-quoted strings.
4623 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4624
4625 # Same as above, but do not quote variable references.
4626 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4627
4628 # Sed substitution to delay expansion of an escaped shell variable in a
4629 # double_quote_subst'ed string.
4630 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4631
4632 # Sed substitution to delay expansion of an escaped single quote.
4633 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4634
4635 # Sed substitution to avoid accidental globbing in evaled expressions
4636 no_glob_subst='s/\*/\\\*/g'
4637
4638 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4639 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4640 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4641
4642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4643 $as_echo_n "checking how to print strings... " >&6; }
4644 # Test print first, because it will be a builtin if present.
4645 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4646 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4647 ECHO='print -r --'
4648 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4649 ECHO='printf %s\n'
4650 else
4651 # Use this function as a fallback that always works.
4652 func_fallback_echo ()
4653 {
4654 eval 'cat <<_LTECHO_EOF
4655 $1
4656 _LTECHO_EOF'
4657 }
4658 ECHO='func_fallback_echo'
4659 fi
4660
4661 # func_echo_all arg...
4662 # Invoke $ECHO with all args, space-separated.
4663 func_echo_all ()
4664 {
4665 $ECHO ""
4666 }
4667
4668 case "$ECHO" in
4669 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4670 $as_echo "printf" >&6; } ;;
4671 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4672 $as_echo "print -r" >&6; } ;;
4673 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4674 $as_echo "cat" >&6; } ;;
4675 esac
4676
4677
4678
4679
4680
4681
4682
4683
4684
4685
4686
4687
4688
4689
4690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4691 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4692 if ${ac_cv_path_SED+:} false; then :
4693 $as_echo_n "(cached) " >&6
4694 else
4695 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4696 for ac_i in 1 2 3 4 5 6 7; do
4697 ac_script="$ac_script$as_nl$ac_script"
4698 done
4699 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4700 { ac_script=; unset ac_script;}
4701 if test -z "$SED"; then
4702 ac_path_SED_found=false
4703 # Loop through the user's path and test for each of PROGNAME-LIST
4704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4705 for as_dir in $PATH
4706 do
4707 IFS=$as_save_IFS
4708 test -z "$as_dir" && as_dir=.
4709 for ac_prog in sed gsed; do
4710 for ac_exec_ext in '' $ac_executable_extensions; do
4711 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4712 as_fn_executable_p "$ac_path_SED" || continue
4713 # Check for GNU ac_path_SED and select it if it is found.
4714 # Check for GNU $ac_path_SED
4715 case `"$ac_path_SED" --version 2>&1` in
4716 *GNU*)
4717 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4718 *)
4719 ac_count=0
4720 $as_echo_n 0123456789 >"conftest.in"
4721 while :
4722 do
4723 cat "conftest.in" "conftest.in" >"conftest.tmp"
4724 mv "conftest.tmp" "conftest.in"
4725 cp "conftest.in" "conftest.nl"
4726 $as_echo '' >> "conftest.nl"
4727 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4728 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4729 as_fn_arith $ac_count + 1 && ac_count=$as_val
4730 if test $ac_count -gt ${ac_path_SED_max-0}; then
4731 # Best one so far, save it but keep looking for a better one
4732 ac_cv_path_SED="$ac_path_SED"
4733 ac_path_SED_max=$ac_count
4734 fi
4735 # 10*(2^10) chars as input seems more than enough
4736 test $ac_count -gt 10 && break
4737 done
4738 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4739 esac
4740
4741 $ac_path_SED_found && break 3
4742 done
4743 done
4744 done
4745 IFS=$as_save_IFS
4746 if test -z "$ac_cv_path_SED"; then
4747 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4748 fi
4749 else
4750 ac_cv_path_SED=$SED
4751 fi
4752
4753 fi
4754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4755 $as_echo "$ac_cv_path_SED" >&6; }
4756 SED="$ac_cv_path_SED"
4757 rm -f conftest.sed
4758
4759 test -z "$SED" && SED=sed
4760 Xsed="$SED -e 1s/^X//"
4761
4762
4763
4764
4765
4766
4767
4768
4769
4770
4771
4772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4773 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4774 if ${ac_cv_path_GREP+:} false; then :
4775 $as_echo_n "(cached) " >&6
4776 else
4777 if test -z "$GREP"; then
4778 ac_path_GREP_found=false
4779 # Loop through the user's path and test for each of PROGNAME-LIST
4780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4781 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4782 do
4783 IFS=$as_save_IFS
4784 test -z "$as_dir" && as_dir=.
4785 for ac_prog in grep ggrep; do
4786 for ac_exec_ext in '' $ac_executable_extensions; do
4787 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4788 as_fn_executable_p "$ac_path_GREP" || continue
4789 # Check for GNU ac_path_GREP and select it if it is found.
4790 # Check for GNU $ac_path_GREP
4791 case `"$ac_path_GREP" --version 2>&1` in
4792 *GNU*)
4793 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4794 *)
4795 ac_count=0
4796 $as_echo_n 0123456789 >"conftest.in"
4797 while :
4798 do
4799 cat "conftest.in" "conftest.in" >"conftest.tmp"
4800 mv "conftest.tmp" "conftest.in"
4801 cp "conftest.in" "conftest.nl"
4802 $as_echo 'GREP' >> "conftest.nl"
4803 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4804 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4805 as_fn_arith $ac_count + 1 && ac_count=$as_val
4806 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4807 # Best one so far, save it but keep looking for a better one
4808 ac_cv_path_GREP="$ac_path_GREP"
4809 ac_path_GREP_max=$ac_count
4810 fi
4811 # 10*(2^10) chars as input seems more than enough
4812 test $ac_count -gt 10 && break
4813 done
4814 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4815 esac
4816
4817 $ac_path_GREP_found && break 3
4818 done
4819 done
4820 done
4821 IFS=$as_save_IFS
4822 if test -z "$ac_cv_path_GREP"; then
4823 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4824 fi
4825 else
4826 ac_cv_path_GREP=$GREP
4827 fi
4828
4829 fi
4830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4831 $as_echo "$ac_cv_path_GREP" >&6; }
4832 GREP="$ac_cv_path_GREP"
4833
4834
4835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4836 $as_echo_n "checking for egrep... " >&6; }
4837 if ${ac_cv_path_EGREP+:} false; then :
4838 $as_echo_n "(cached) " >&6
4839 else
4840 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4841 then ac_cv_path_EGREP="$GREP -E"
4842 else
4843 if test -z "$EGREP"; then
4844 ac_path_EGREP_found=false
4845 # Loop through the user's path and test for each of PROGNAME-LIST
4846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4847 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4848 do
4849 IFS=$as_save_IFS
4850 test -z "$as_dir" && as_dir=.
4851 for ac_prog in egrep; do
4852 for ac_exec_ext in '' $ac_executable_extensions; do
4853 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4854 as_fn_executable_p "$ac_path_EGREP" || continue
4855 # Check for GNU ac_path_EGREP and select it if it is found.
4856 # Check for GNU $ac_path_EGREP
4857 case `"$ac_path_EGREP" --version 2>&1` in
4858 *GNU*)
4859 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4860 *)
4861 ac_count=0
4862 $as_echo_n 0123456789 >"conftest.in"
4863 while :
4864 do
4865 cat "conftest.in" "conftest.in" >"conftest.tmp"
4866 mv "conftest.tmp" "conftest.in"
4867 cp "conftest.in" "conftest.nl"
4868 $as_echo 'EGREP' >> "conftest.nl"
4869 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4870 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4871 as_fn_arith $ac_count + 1 && ac_count=$as_val
4872 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4873 # Best one so far, save it but keep looking for a better one
4874 ac_cv_path_EGREP="$ac_path_EGREP"
4875 ac_path_EGREP_max=$ac_count
4876 fi
4877 # 10*(2^10) chars as input seems more than enough
4878 test $ac_count -gt 10 && break
4879 done
4880 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4881 esac
4882
4883 $ac_path_EGREP_found && break 3
4884 done
4885 done
4886 done
4887 IFS=$as_save_IFS
4888 if test -z "$ac_cv_path_EGREP"; then
4889 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4890 fi
4891 else
4892 ac_cv_path_EGREP=$EGREP
4893 fi
4894
4895 fi
4896 fi
4897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4898 $as_echo "$ac_cv_path_EGREP" >&6; }
4899 EGREP="$ac_cv_path_EGREP"
4900
4901
4902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4903 $as_echo_n "checking for fgrep... " >&6; }
4904 if ${ac_cv_path_FGREP+:} false; then :
4905 $as_echo_n "(cached) " >&6
4906 else
4907 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4908 then ac_cv_path_FGREP="$GREP -F"
4909 else
4910 if test -z "$FGREP"; then
4911 ac_path_FGREP_found=false
4912 # Loop through the user's path and test for each of PROGNAME-LIST
4913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4914 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4915 do
4916 IFS=$as_save_IFS
4917 test -z "$as_dir" && as_dir=.
4918 for ac_prog in fgrep; do
4919 for ac_exec_ext in '' $ac_executable_extensions; do
4920 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4921 as_fn_executable_p "$ac_path_FGREP" || continue
4922 # Check for GNU ac_path_FGREP and select it if it is found.
4923 # Check for GNU $ac_path_FGREP
4924 case `"$ac_path_FGREP" --version 2>&1` in
4925 *GNU*)
4926 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4927 *)
4928 ac_count=0
4929 $as_echo_n 0123456789 >"conftest.in"
4930 while :
4931 do
4932 cat "conftest.in" "conftest.in" >"conftest.tmp"
4933 mv "conftest.tmp" "conftest.in"
4934 cp "conftest.in" "conftest.nl"
4935 $as_echo 'FGREP' >> "conftest.nl"
4936 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4937 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4938 as_fn_arith $ac_count + 1 && ac_count=$as_val
4939 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4940 # Best one so far, save it but keep looking for a better one
4941 ac_cv_path_FGREP="$ac_path_FGREP"
4942 ac_path_FGREP_max=$ac_count
4943 fi
4944 # 10*(2^10) chars as input seems more than enough
4945 test $ac_count -gt 10 && break
4946 done
4947 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4948 esac
4949
4950 $ac_path_FGREP_found && break 3
4951 done
4952 done
4953 done
4954 IFS=$as_save_IFS
4955 if test -z "$ac_cv_path_FGREP"; then
4956 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4957 fi
4958 else
4959 ac_cv_path_FGREP=$FGREP
4960 fi
4961
4962 fi
4963 fi
4964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4965 $as_echo "$ac_cv_path_FGREP" >&6; }
4966 FGREP="$ac_cv_path_FGREP"
4967
4968
4969 test -z "$GREP" && GREP=grep
4970
4971
4972
4973
4974
4975
4976
4977
4978
4979
4980
4981
4982
4983
4984
4985
4986
4987
4988
4989 # Check whether --with-gnu-ld was given.
4990 if test "${with_gnu_ld+set}" = set; then :
4991 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4992 else
4993 with_gnu_ld=no
4994 fi
4995
4996 ac_prog=ld
4997 if test "$GCC" = yes; then
4998 # Check if gcc -print-prog-name=ld gives a path.
4999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5000 $as_echo_n "checking for ld used by $CC... " >&6; }
5001 case $host in
5002 *-*-mingw*)
5003 # gcc leaves a trailing carriage return which upsets mingw
5004 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5005 *)
5006 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5007 esac
5008 case $ac_prog in
5009 # Accept absolute paths.
5010 [\\/]* | ?:[\\/]*)
5011 re_direlt='/[^/][^/]*/\.\./'
5012 # Canonicalize the pathname of ld
5013 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5014 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5015 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5016 done
5017 test -z "$LD" && LD="$ac_prog"
5018 ;;
5019 "")
5020 # If it fails, then pretend we aren't using GCC.
5021 ac_prog=ld
5022 ;;
5023 *)
5024 # If it is relative, then search for the first ld in PATH.
5025 with_gnu_ld=unknown
5026 ;;
5027 esac
5028 elif test "$with_gnu_ld" = yes; then
5029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5030 $as_echo_n "checking for GNU ld... " >&6; }
5031 else
5032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5033 $as_echo_n "checking for non-GNU ld... " >&6; }
5034 fi
5035 if ${lt_cv_path_LD+:} false; then :
5036 $as_echo_n "(cached) " >&6
5037 else
5038 if test -z "$LD"; then
5039 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5040 for ac_dir in $PATH; do
5041 IFS="$lt_save_ifs"
5042 test -z "$ac_dir" && ac_dir=.
5043 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5044 lt_cv_path_LD="$ac_dir/$ac_prog"
5045 # Check to see if the program is GNU ld. I'd rather use --version,
5046 # but apparently some variants of GNU ld only accept -v.
5047 # Break only if it was the GNU/non-GNU ld that we prefer.
5048 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5049 *GNU* | *'with BFD'*)
5050 test "$with_gnu_ld" != no && break
5051 ;;
5052 *)
5053 test "$with_gnu_ld" != yes && break
5054 ;;
5055 esac
5056 fi
5057 done
5058 IFS="$lt_save_ifs"
5059 else
5060 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5061 fi
5062 fi
5063
5064 LD="$lt_cv_path_LD"
5065 if test -n "$LD"; then
5066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5067 $as_echo "$LD" >&6; }
5068 else
5069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5070 $as_echo "no" >&6; }
5071 fi
5072 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5074 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5075 if ${lt_cv_prog_gnu_ld+:} false; then :
5076 $as_echo_n "(cached) " >&6
5077 else
5078 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5079 case `$LD -v 2>&1 </dev/null` in
5080 *GNU* | *'with BFD'*)
5081 lt_cv_prog_gnu_ld=yes
5082 ;;
5083 *)
5084 lt_cv_prog_gnu_ld=no
5085 ;;
5086 esac
5087 fi
5088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5089 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5090 with_gnu_ld=$lt_cv_prog_gnu_ld
5091
5092
5093
5094
5095
5096
5097
5098
5099
5100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5101 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5102 if ${lt_cv_path_NM+:} false; then :
5103 $as_echo_n "(cached) " >&6
5104 else
5105 if test -n "$NM"; then
5106 # Let the user override the test.
5107 lt_cv_path_NM="$NM"
5108 else
5109 lt_nm_to_check="${ac_tool_prefix}nm"
5110 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5111 lt_nm_to_check="$lt_nm_to_check nm"
5112 fi
5113 for lt_tmp_nm in $lt_nm_to_check; do
5114 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5115 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5116 IFS="$lt_save_ifs"
5117 test -z "$ac_dir" && ac_dir=.
5118 tmp_nm="$ac_dir/$lt_tmp_nm"
5119 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5120 # Check to see if the nm accepts a BSD-compat flag.
5121 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5122 # nm: unknown option "B" ignored
5123 # Tru64's nm complains that /dev/null is an invalid object file
5124 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5125 */dev/null* | *'Invalid file or object type'*)
5126 lt_cv_path_NM="$tmp_nm -B"
5127 break
5128 ;;
5129 *)
5130 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5131 */dev/null*)
5132 lt_cv_path_NM="$tmp_nm -p"
5133 break
5134 ;;
5135 *)
5136 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5137 continue # so that we can try to find one that supports BSD flags
5138 ;;
5139 esac
5140 ;;
5141 esac
5142 fi
5143 done
5144 IFS="$lt_save_ifs"
5145 done
5146 : ${lt_cv_path_NM=no}
5147 fi
5148 fi
5149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5150 $as_echo "$lt_cv_path_NM" >&6; }
5151 if test "$lt_cv_path_NM" != "no"; then
5152 NM="$lt_cv_path_NM"
5153 else
5154 # Didn't find any BSD compatible name lister, look for dumpbin.
5155 if test -n "$DUMPBIN"; then :
5156 # Let the user override the test.
5157 else
5158 if test -n "$ac_tool_prefix"; then
5159 for ac_prog in dumpbin "link -dump"
5160 do
5161 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5162 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5164 $as_echo_n "checking for $ac_word... " >&6; }
5165 if ${ac_cv_prog_DUMPBIN+:} false; then :
5166 $as_echo_n "(cached) " >&6
5167 else
5168 if test -n "$DUMPBIN"; then
5169 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5170 else
5171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5172 for as_dir in $PATH
5173 do
5174 IFS=$as_save_IFS
5175 test -z "$as_dir" && as_dir=.
5176 for ac_exec_ext in '' $ac_executable_extensions; do
5177 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5178 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5179 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5180 break 2
5181 fi
5182 done
5183 done
5184 IFS=$as_save_IFS
5185
5186 fi
5187 fi
5188 DUMPBIN=$ac_cv_prog_DUMPBIN
5189 if test -n "$DUMPBIN"; then
5190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5191 $as_echo "$DUMPBIN" >&6; }
5192 else
5193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5194 $as_echo "no" >&6; }
5195 fi
5196
5197
5198 test -n "$DUMPBIN" && break
5199 done
5200 fi
5201 if test -z "$DUMPBIN"; then
5202 ac_ct_DUMPBIN=$DUMPBIN
5203 for ac_prog in dumpbin "link -dump"
5204 do
5205 # Extract the first word of "$ac_prog", so it can be a program name with args.
5206 set dummy $ac_prog; ac_word=$2
5207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5208 $as_echo_n "checking for $ac_word... " >&6; }
5209 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5210 $as_echo_n "(cached) " >&6
5211 else
5212 if test -n "$ac_ct_DUMPBIN"; then
5213 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5214 else
5215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5216 for as_dir in $PATH
5217 do
5218 IFS=$as_save_IFS
5219 test -z "$as_dir" && as_dir=.
5220 for ac_exec_ext in '' $ac_executable_extensions; do
5221 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5222 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5223 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5224 break 2
5225 fi
5226 done
5227 done
5228 IFS=$as_save_IFS
5229
5230 fi
5231 fi
5232 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5233 if test -n "$ac_ct_DUMPBIN"; then
5234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5235 $as_echo "$ac_ct_DUMPBIN" >&6; }
5236 else
5237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5238 $as_echo "no" >&6; }
5239 fi
5240
5241
5242 test -n "$ac_ct_DUMPBIN" && break
5243 done
5244
5245 if test "x$ac_ct_DUMPBIN" = x; then
5246 DUMPBIN=":"
5247 else
5248 case $cross_compiling:$ac_tool_warned in
5249 yes:)
5250 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5251 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5252 ac_tool_warned=yes ;;
5253 esac
5254 DUMPBIN=$ac_ct_DUMPBIN
5255 fi
5256 fi
5257
5258 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5259 *COFF*)
5260 DUMPBIN="$DUMPBIN -symbols"
5261 ;;
5262 *)
5263 DUMPBIN=:
5264 ;;
5265 esac
5266 fi
5267
5268 if test "$DUMPBIN" != ":"; then
5269 NM="$DUMPBIN"
5270 fi
5271 fi
5272 test -z "$NM" && NM=nm
5273
5274
5275
5276
5277
5278
5279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5280 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5281 if ${lt_cv_nm_interface+:} false; then :
5282 $as_echo_n "(cached) " >&6
5283 else
5284 lt_cv_nm_interface="BSD nm"
5285 echo "int some_variable = 0;" > conftest.$ac_ext
5286 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5287 (eval "$ac_compile" 2>conftest.err)
5288 cat conftest.err >&5
5289 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5290 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5291 cat conftest.err >&5
5292 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5293 cat conftest.out >&5
5294 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5295 lt_cv_nm_interface="MS dumpbin"
5296 fi
5297 rm -f conftest*
5298 fi
5299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5300 $as_echo "$lt_cv_nm_interface" >&6; }
5301
5302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5303 $as_echo_n "checking whether ln -s works... " >&6; }
5304 LN_S=$as_ln_s
5305 if test "$LN_S" = "ln -s"; then
5306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5307 $as_echo "yes" >&6; }
5308 else
5309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5310 $as_echo "no, using $LN_S" >&6; }
5311 fi
5312
5313 # find the maximum length of command line arguments
5314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5315 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5316 if ${lt_cv_sys_max_cmd_len+:} false; then :
5317 $as_echo_n "(cached) " >&6
5318 else
5319 i=0
5320 teststring="ABCD"
5321
5322 case $build_os in
5323 msdosdjgpp*)
5324 # On DJGPP, this test can blow up pretty badly due to problems in libc
5325 # (any single argument exceeding 2000 bytes causes a buffer overrun
5326 # during glob expansion). Even if it were fixed, the result of this
5327 # check would be larger than it should be.
5328 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5329 ;;
5330
5331 gnu*)
5332 # Under GNU Hurd, this test is not required because there is
5333 # no limit to the length of command line arguments.
5334 # Libtool will interpret -1 as no limit whatsoever
5335 lt_cv_sys_max_cmd_len=-1;
5336 ;;
5337
5338 cygwin* | mingw* | cegcc*)
5339 # On Win9x/ME, this test blows up -- it succeeds, but takes
5340 # about 5 minutes as the teststring grows exponentially.
5341 # Worse, since 9x/ME are not pre-emptively multitasking,
5342 # you end up with a "frozen" computer, even though with patience
5343 # the test eventually succeeds (with a max line length of 256k).
5344 # Instead, let's just punt: use the minimum linelength reported by
5345 # all of the supported platforms: 8192 (on NT/2K/XP).
5346 lt_cv_sys_max_cmd_len=8192;
5347 ;;
5348
5349 mint*)
5350 # On MiNT this can take a long time and run out of memory.
5351 lt_cv_sys_max_cmd_len=8192;
5352 ;;
5353
5354 amigaos*)
5355 # On AmigaOS with pdksh, this test takes hours, literally.
5356 # So we just punt and use a minimum line length of 8192.
5357 lt_cv_sys_max_cmd_len=8192;
5358 ;;
5359
5360 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5361 # This has been around since 386BSD, at least. Likely further.
5362 if test -x /sbin/sysctl; then
5363 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5364 elif test -x /usr/sbin/sysctl; then
5365 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5366 else
5367 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5368 fi
5369 # And add a safety zone
5370 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5371 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5372 ;;
5373
5374 interix*)
5375 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5376 lt_cv_sys_max_cmd_len=196608
5377 ;;
5378
5379 os2*)
5380 # The test takes a long time on OS/2.
5381 lt_cv_sys_max_cmd_len=8192
5382 ;;
5383
5384 osf*)
5385 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5386 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5387 # nice to cause kernel panics so lets avoid the loop below.
5388 # First set a reasonable default.
5389 lt_cv_sys_max_cmd_len=16384
5390 #
5391 if test -x /sbin/sysconfig; then
5392 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5393 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5394 esac
5395 fi
5396 ;;
5397 sco3.2v5*)
5398 lt_cv_sys_max_cmd_len=102400
5399 ;;
5400 sysv5* | sco5v6* | sysv4.2uw2*)
5401 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5402 if test -n "$kargmax"; then
5403 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5404 else
5405 lt_cv_sys_max_cmd_len=32768
5406 fi
5407 ;;
5408 *)
5409 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5410 if test -n "$lt_cv_sys_max_cmd_len"; then
5411 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5412 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5413 else
5414 # Make teststring a little bigger before we do anything with it.
5415 # a 1K string should be a reasonable start.
5416 for i in 1 2 3 4 5 6 7 8 ; do
5417 teststring=$teststring$teststring
5418 done
5419 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5420 # If test is not a shell built-in, we'll probably end up computing a
5421 # maximum length that is only half of the actual maximum length, but
5422 # we can't tell.
5423 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5424 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5425 test $i != 17 # 1/2 MB should be enough
5426 do
5427 i=`expr $i + 1`
5428 teststring=$teststring$teststring
5429 done
5430 # Only check the string length outside the loop.
5431 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5432 teststring=
5433 # Add a significant safety factor because C++ compilers can tack on
5434 # massive amounts of additional arguments before passing them to the
5435 # linker. It appears as though 1/2 is a usable value.
5436 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5437 fi
5438 ;;
5439 esac
5440
5441 fi
5442
5443 if test -n $lt_cv_sys_max_cmd_len ; then
5444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5445 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5446 else
5447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5448 $as_echo "none" >&6; }
5449 fi
5450 max_cmd_len=$lt_cv_sys_max_cmd_len
5451
5452
5453
5454
5455
5456
5457 : ${CP="cp -f"}
5458 : ${MV="mv -f"}
5459 : ${RM="rm -f"}
5460
5461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5462 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5463 # Try some XSI features
5464 xsi_shell=no
5465 ( _lt_dummy="a/b/c"
5466 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5467 = c,a/b,b/c, \
5468 && eval 'test $(( 1 + 1 )) -eq 2 \
5469 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5470 && xsi_shell=yes
5471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5472 $as_echo "$xsi_shell" >&6; }
5473
5474
5475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5476 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5477 lt_shell_append=no
5478 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5479 >/dev/null 2>&1 \
5480 && lt_shell_append=yes
5481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5482 $as_echo "$lt_shell_append" >&6; }
5483
5484
5485 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5486 lt_unset=unset
5487 else
5488 lt_unset=false
5489 fi
5490
5491
5492
5493
5494
5495 # test EBCDIC or ASCII
5496 case `echo X|tr X '\101'` in
5497 A) # ASCII based system
5498 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5499 lt_SP2NL='tr \040 \012'
5500 lt_NL2SP='tr \015\012 \040\040'
5501 ;;
5502 *) # EBCDIC based system
5503 lt_SP2NL='tr \100 \n'
5504 lt_NL2SP='tr \r\n \100\100'
5505 ;;
5506 esac
5507
5508
5509
5510
5511
5512
5513
5514
5515
5516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5517 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5518 if ${lt_cv_to_host_file_cmd+:} false; then :
5519 $as_echo_n "(cached) " >&6
5520 else
5521 case $host in
5522 *-*-mingw* )
5523 case $build in
5524 *-*-mingw* ) # actually msys
5525 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5526 ;;
5527 *-*-cygwin* )
5528 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5529 ;;
5530 * ) # otherwise, assume *nix
5531 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5532 ;;
5533 esac
5534 ;;
5535 *-*-cygwin* )
5536 case $build in
5537 *-*-mingw* ) # actually msys
5538 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5539 ;;
5540 *-*-cygwin* )
5541 lt_cv_to_host_file_cmd=func_convert_file_noop
5542 ;;
5543 * ) # otherwise, assume *nix
5544 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5545 ;;
5546 esac
5547 ;;
5548 * ) # unhandled hosts (and "normal" native builds)
5549 lt_cv_to_host_file_cmd=func_convert_file_noop
5550 ;;
5551 esac
5552
5553 fi
5554
5555 to_host_file_cmd=$lt_cv_to_host_file_cmd
5556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5557 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5558
5559
5560
5561
5562
5563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5564 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5565 if ${lt_cv_to_tool_file_cmd+:} false; then :
5566 $as_echo_n "(cached) " >&6
5567 else
5568 #assume ordinary cross tools, or native build.
5569 lt_cv_to_tool_file_cmd=func_convert_file_noop
5570 case $host in
5571 *-*-mingw* )
5572 case $build in
5573 *-*-mingw* ) # actually msys
5574 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5575 ;;
5576 esac
5577 ;;
5578 esac
5579
5580 fi
5581
5582 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5584 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5585
5586
5587
5588
5589
5590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5591 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5592 if ${lt_cv_ld_reload_flag+:} false; then :
5593 $as_echo_n "(cached) " >&6
5594 else
5595 lt_cv_ld_reload_flag='-r'
5596 fi
5597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5598 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5599 reload_flag=$lt_cv_ld_reload_flag
5600 case $reload_flag in
5601 "" | " "*) ;;
5602 *) reload_flag=" $reload_flag" ;;
5603 esac
5604 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5605 case $host_os in
5606 cygwin* | mingw* | pw32* | cegcc*)
5607 if test "$GCC" != yes; then
5608 reload_cmds=false
5609 fi
5610 ;;
5611 darwin*)
5612 if test "$GCC" = yes; then
5613 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5614 else
5615 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5616 fi
5617 ;;
5618 esac
5619
5620
5621
5622
5623
5624
5625
5626
5627
5628 if test -n "$ac_tool_prefix"; then
5629 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5630 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5632 $as_echo_n "checking for $ac_word... " >&6; }
5633 if ${ac_cv_prog_OBJDUMP+:} false; then :
5634 $as_echo_n "(cached) " >&6
5635 else
5636 if test -n "$OBJDUMP"; then
5637 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5638 else
5639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5640 for as_dir in $PATH
5641 do
5642 IFS=$as_save_IFS
5643 test -z "$as_dir" && as_dir=.
5644 for ac_exec_ext in '' $ac_executable_extensions; do
5645 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5646 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5647 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5648 break 2
5649 fi
5650 done
5651 done
5652 IFS=$as_save_IFS
5653
5654 fi
5655 fi
5656 OBJDUMP=$ac_cv_prog_OBJDUMP
5657 if test -n "$OBJDUMP"; then
5658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5659 $as_echo "$OBJDUMP" >&6; }
5660 else
5661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5662 $as_echo "no" >&6; }
5663 fi
5664
5665
5666 fi
5667 if test -z "$ac_cv_prog_OBJDUMP"; then
5668 ac_ct_OBJDUMP=$OBJDUMP
5669 # Extract the first word of "objdump", so it can be a program name with args.
5670 set dummy objdump; ac_word=$2
5671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5672 $as_echo_n "checking for $ac_word... " >&6; }
5673 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5674 $as_echo_n "(cached) " >&6
5675 else
5676 if test -n "$ac_ct_OBJDUMP"; then
5677 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5678 else
5679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5680 for as_dir in $PATH
5681 do
5682 IFS=$as_save_IFS
5683 test -z "$as_dir" && as_dir=.
5684 for ac_exec_ext in '' $ac_executable_extensions; do
5685 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5686 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5687 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5688 break 2
5689 fi
5690 done
5691 done
5692 IFS=$as_save_IFS
5693
5694 fi
5695 fi
5696 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5697 if test -n "$ac_ct_OBJDUMP"; then
5698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5699 $as_echo "$ac_ct_OBJDUMP" >&6; }
5700 else
5701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5702 $as_echo "no" >&6; }
5703 fi
5704
5705 if test "x$ac_ct_OBJDUMP" = x; then
5706 OBJDUMP="false"
5707 else
5708 case $cross_compiling:$ac_tool_warned in
5709 yes:)
5710 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5711 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5712 ac_tool_warned=yes ;;
5713 esac
5714 OBJDUMP=$ac_ct_OBJDUMP
5715 fi
5716 else
5717 OBJDUMP="$ac_cv_prog_OBJDUMP"
5718 fi
5719
5720 test -z "$OBJDUMP" && OBJDUMP=objdump
5721
5722
5723
5724
5725
5726
5727
5728
5729
5730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5731 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5732 if ${lt_cv_deplibs_check_method+:} false; then :
5733 $as_echo_n "(cached) " >&6
5734 else
5735 lt_cv_file_magic_cmd='$MAGIC_CMD'
5736 lt_cv_file_magic_test_file=
5737 lt_cv_deplibs_check_method='unknown'
5738 # Need to set the preceding variable on all platforms that support
5739 # interlibrary dependencies.
5740 # 'none' -- dependencies not supported.
5741 # `unknown' -- same as none, but documents that we really don't know.
5742 # 'pass_all' -- all dependencies passed with no checks.
5743 # 'test_compile' -- check by making test program.
5744 # 'file_magic [[regex]]' -- check by looking for files in library path
5745 # which responds to the $file_magic_cmd with a given extended regex.
5746 # If you have `file' or equivalent on your system and you're not sure
5747 # whether `pass_all' will *always* work, you probably want this one.
5748
5749 case $host_os in
5750 aix[4-9]*)
5751 lt_cv_deplibs_check_method=pass_all
5752 ;;
5753
5754 beos*)
5755 lt_cv_deplibs_check_method=pass_all
5756 ;;
5757
5758 bsdi[45]*)
5759 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5760 lt_cv_file_magic_cmd='/usr/bin/file -L'
5761 lt_cv_file_magic_test_file=/shlib/libc.so
5762 ;;
5763
5764 cygwin*)
5765 # func_win32_libid is a shell function defined in ltmain.sh
5766 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5767 lt_cv_file_magic_cmd='func_win32_libid'
5768 ;;
5769
5770 mingw* | pw32*)
5771 # Base MSYS/MinGW do not provide the 'file' command needed by
5772 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5773 # unless we find 'file', for example because we are cross-compiling.
5774 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5775 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5776 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5777 lt_cv_file_magic_cmd='func_win32_libid'
5778 else
5779 # Keep this pattern in sync with the one in func_win32_libid.
5780 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5781 lt_cv_file_magic_cmd='$OBJDUMP -f'
5782 fi
5783 ;;
5784
5785 cegcc*)
5786 # use the weaker test based on 'objdump'. See mingw*.
5787 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5788 lt_cv_file_magic_cmd='$OBJDUMP -f'
5789 ;;
5790
5791 darwin* | rhapsody*)
5792 lt_cv_deplibs_check_method=pass_all
5793 ;;
5794
5795 freebsd* | dragonfly*)
5796 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5797 case $host_cpu in
5798 i*86 )
5799 # Not sure whether the presence of OpenBSD here was a mistake.
5800 # Let's accept both of them until this is cleared up.
5801 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5802 lt_cv_file_magic_cmd=/usr/bin/file
5803 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5804 ;;
5805 esac
5806 else
5807 lt_cv_deplibs_check_method=pass_all
5808 fi
5809 ;;
5810
5811 gnu*)
5812 lt_cv_deplibs_check_method=pass_all
5813 ;;
5814
5815 haiku*)
5816 lt_cv_deplibs_check_method=pass_all
5817 ;;
5818
5819 hpux10.20* | hpux11*)
5820 lt_cv_file_magic_cmd=/usr/bin/file
5821 case $host_cpu in
5822 ia64*)
5823 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5824 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5825 ;;
5826 hppa*64*)
5827 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]'
5828 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5829 ;;
5830 *)
5831 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5832 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5833 ;;
5834 esac
5835 ;;
5836
5837 interix[3-9]*)
5838 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5839 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5840 ;;
5841
5842 irix5* | irix6* | nonstopux*)
5843 case $LD in
5844 *-32|*"-32 ") libmagic=32-bit;;
5845 *-n32|*"-n32 ") libmagic=N32;;
5846 *-64|*"-64 ") libmagic=64-bit;;
5847 *) libmagic=never-match;;
5848 esac
5849 lt_cv_deplibs_check_method=pass_all
5850 ;;
5851
5852 # This must be glibc/ELF.
5853 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5854 lt_cv_deplibs_check_method=pass_all
5855 ;;
5856
5857 netbsd*)
5858 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5859 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5860 else
5861 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5862 fi
5863 ;;
5864
5865 newos6*)
5866 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5867 lt_cv_file_magic_cmd=/usr/bin/file
5868 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5869 ;;
5870
5871 *nto* | *qnx*)
5872 lt_cv_deplibs_check_method=pass_all
5873 ;;
5874
5875 openbsd*)
5876 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5877 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5878 else
5879 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5880 fi
5881 ;;
5882
5883 osf3* | osf4* | osf5*)
5884 lt_cv_deplibs_check_method=pass_all
5885 ;;
5886
5887 rdos*)
5888 lt_cv_deplibs_check_method=pass_all
5889 ;;
5890
5891 solaris*)
5892 lt_cv_deplibs_check_method=pass_all
5893 ;;
5894
5895 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5896 lt_cv_deplibs_check_method=pass_all
5897 ;;
5898
5899 sysv4 | sysv4.3*)
5900 case $host_vendor in
5901 motorola)
5902 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]'
5903 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5904 ;;
5905 ncr)
5906 lt_cv_deplibs_check_method=pass_all
5907 ;;
5908 sequent)
5909 lt_cv_file_magic_cmd='/bin/file'
5910 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5911 ;;
5912 sni)
5913 lt_cv_file_magic_cmd='/bin/file'
5914 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5915 lt_cv_file_magic_test_file=/lib/libc.so
5916 ;;
5917 siemens)
5918 lt_cv_deplibs_check_method=pass_all
5919 ;;
5920 pc)
5921 lt_cv_deplibs_check_method=pass_all
5922 ;;
5923 esac
5924 ;;
5925
5926 tpf*)
5927 lt_cv_deplibs_check_method=pass_all
5928 ;;
5929 esac
5930
5931 fi
5932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5933 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5934
5935 file_magic_glob=
5936 want_nocaseglob=no
5937 if test "$build" = "$host"; then
5938 case $host_os in
5939 mingw* | pw32*)
5940 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5941 want_nocaseglob=yes
5942 else
5943 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5944 fi
5945 ;;
5946 esac
5947 fi
5948
5949 file_magic_cmd=$lt_cv_file_magic_cmd
5950 deplibs_check_method=$lt_cv_deplibs_check_method
5951 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5952
5953
5954
5955
5956
5957
5958
5959
5960
5961
5962
5963
5964
5965
5966
5967
5968
5969
5970
5971
5972
5973
5974 if test -n "$ac_tool_prefix"; then
5975 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5976 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5978 $as_echo_n "checking for $ac_word... " >&6; }
5979 if ${ac_cv_prog_DLLTOOL+:} false; then :
5980 $as_echo_n "(cached) " >&6
5981 else
5982 if test -n "$DLLTOOL"; then
5983 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5984 else
5985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5986 for as_dir in $PATH
5987 do
5988 IFS=$as_save_IFS
5989 test -z "$as_dir" && as_dir=.
5990 for ac_exec_ext in '' $ac_executable_extensions; do
5991 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5992 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5993 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5994 break 2
5995 fi
5996 done
5997 done
5998 IFS=$as_save_IFS
5999
6000 fi
6001 fi
6002 DLLTOOL=$ac_cv_prog_DLLTOOL
6003 if test -n "$DLLTOOL"; then
6004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6005 $as_echo "$DLLTOOL" >&6; }
6006 else
6007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6008 $as_echo "no" >&6; }
6009 fi
6010
6011
6012 fi
6013 if test -z "$ac_cv_prog_DLLTOOL"; then
6014 ac_ct_DLLTOOL=$DLLTOOL
6015 # Extract the first word of "dlltool", so it can be a program name with args.
6016 set dummy dlltool; ac_word=$2
6017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6018 $as_echo_n "checking for $ac_word... " >&6; }
6019 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6020 $as_echo_n "(cached) " >&6
6021 else
6022 if test -n "$ac_ct_DLLTOOL"; then
6023 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6024 else
6025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6026 for as_dir in $PATH
6027 do
6028 IFS=$as_save_IFS
6029 test -z "$as_dir" && as_dir=.
6030 for ac_exec_ext in '' $ac_executable_extensions; do
6031 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6032 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6033 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6034 break 2
6035 fi
6036 done
6037 done
6038 IFS=$as_save_IFS
6039
6040 fi
6041 fi
6042 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6043 if test -n "$ac_ct_DLLTOOL"; then
6044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6045 $as_echo "$ac_ct_DLLTOOL" >&6; }
6046 else
6047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6048 $as_echo "no" >&6; }
6049 fi
6050
6051 if test "x$ac_ct_DLLTOOL" = x; then
6052 DLLTOOL="false"
6053 else
6054 case $cross_compiling:$ac_tool_warned in
6055 yes:)
6056 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6057 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6058 ac_tool_warned=yes ;;
6059 esac
6060 DLLTOOL=$ac_ct_DLLTOOL
6061 fi
6062 else
6063 DLLTOOL="$ac_cv_prog_DLLTOOL"
6064 fi
6065
6066 test -z "$DLLTOOL" && DLLTOOL=dlltool
6067
6068
6069
6070
6071
6072
6073
6074
6075
6076
6077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6078 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6079 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6080 $as_echo_n "(cached) " >&6
6081 else
6082 lt_cv_sharedlib_from_linklib_cmd='unknown'
6083
6084 case $host_os in
6085 cygwin* | mingw* | pw32* | cegcc*)
6086 # two different shell functions defined in ltmain.sh
6087 # decide which to use based on capabilities of $DLLTOOL
6088 case `$DLLTOOL --help 2>&1` in
6089 *--identify-strict*)
6090 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6091 ;;
6092 *)
6093 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6094 ;;
6095 esac
6096 ;;
6097 *)
6098 # fallback: assume linklib IS sharedlib
6099 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6100 ;;
6101 esac
6102
6103 fi
6104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6105 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6106 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6107 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6108
6109
6110
6111
6112
6113
6114
6115 if test -n "$ac_tool_prefix"; then
6116 for ac_prog in ar
6117 do
6118 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6119 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6121 $as_echo_n "checking for $ac_word... " >&6; }
6122 if ${ac_cv_prog_AR+:} false; then :
6123 $as_echo_n "(cached) " >&6
6124 else
6125 if test -n "$AR"; then
6126 ac_cv_prog_AR="$AR" # Let the user override the test.
6127 else
6128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6129 for as_dir in $PATH
6130 do
6131 IFS=$as_save_IFS
6132 test -z "$as_dir" && as_dir=.
6133 for ac_exec_ext in '' $ac_executable_extensions; do
6134 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6135 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6136 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6137 break 2
6138 fi
6139 done
6140 done
6141 IFS=$as_save_IFS
6142
6143 fi
6144 fi
6145 AR=$ac_cv_prog_AR
6146 if test -n "$AR"; then
6147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6148 $as_echo "$AR" >&6; }
6149 else
6150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6151 $as_echo "no" >&6; }
6152 fi
6153
6154
6155 test -n "$AR" && break
6156 done
6157 fi
6158 if test -z "$AR"; then
6159 ac_ct_AR=$AR
6160 for ac_prog in ar
6161 do
6162 # Extract the first word of "$ac_prog", so it can be a program name with args.
6163 set dummy $ac_prog; ac_word=$2
6164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6165 $as_echo_n "checking for $ac_word... " >&6; }
6166 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6167 $as_echo_n "(cached) " >&6
6168 else
6169 if test -n "$ac_ct_AR"; then
6170 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6171 else
6172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6173 for as_dir in $PATH
6174 do
6175 IFS=$as_save_IFS
6176 test -z "$as_dir" && as_dir=.
6177 for ac_exec_ext in '' $ac_executable_extensions; do
6178 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6179 ac_cv_prog_ac_ct_AR="$ac_prog"
6180 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6181 break 2
6182 fi
6183 done
6184 done
6185 IFS=$as_save_IFS
6186
6187 fi
6188 fi
6189 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6190 if test -n "$ac_ct_AR"; then
6191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6192 $as_echo "$ac_ct_AR" >&6; }
6193 else
6194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6195 $as_echo "no" >&6; }
6196 fi
6197
6198
6199 test -n "$ac_ct_AR" && break
6200 done
6201
6202 if test "x$ac_ct_AR" = x; then
6203 AR="false"
6204 else
6205 case $cross_compiling:$ac_tool_warned in
6206 yes:)
6207 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6208 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6209 ac_tool_warned=yes ;;
6210 esac
6211 AR=$ac_ct_AR
6212 fi
6213 fi
6214
6215 : ${AR=ar}
6216 : ${AR_FLAGS=cru}
6217
6218
6219
6220
6221
6222
6223
6224
6225
6226
6227
6228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6229 $as_echo_n "checking for archiver @FILE support... " >&6; }
6230 if ${lt_cv_ar_at_file+:} false; then :
6231 $as_echo_n "(cached) " >&6
6232 else
6233 lt_cv_ar_at_file=no
6234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6235 /* end confdefs.h. */
6236
6237 int
6238 main ()
6239 {
6240
6241 ;
6242 return 0;
6243 }
6244 _ACEOF
6245 if ac_fn_c_try_compile "$LINENO"; then :
6246 echo conftest.$ac_objext > conftest.lst
6247 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6248 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6249 (eval $lt_ar_try) 2>&5
6250 ac_status=$?
6251 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6252 test $ac_status = 0; }
6253 if test "$ac_status" -eq 0; then
6254 # Ensure the archiver fails upon bogus file names.
6255 rm -f conftest.$ac_objext libconftest.a
6256 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6257 (eval $lt_ar_try) 2>&5
6258 ac_status=$?
6259 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6260 test $ac_status = 0; }
6261 if test "$ac_status" -ne 0; then
6262 lt_cv_ar_at_file=@
6263 fi
6264 fi
6265 rm -f conftest.* libconftest.a
6266
6267 fi
6268 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6269
6270 fi
6271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6272 $as_echo "$lt_cv_ar_at_file" >&6; }
6273
6274 if test "x$lt_cv_ar_at_file" = xno; then
6275 archiver_list_spec=
6276 else
6277 archiver_list_spec=$lt_cv_ar_at_file
6278 fi
6279
6280
6281
6282
6283
6284
6285
6286 if test -n "$ac_tool_prefix"; then
6287 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6288 set dummy ${ac_tool_prefix}strip; ac_word=$2
6289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6290 $as_echo_n "checking for $ac_word... " >&6; }
6291 if ${ac_cv_prog_STRIP+:} false; then :
6292 $as_echo_n "(cached) " >&6
6293 else
6294 if test -n "$STRIP"; then
6295 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6296 else
6297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6298 for as_dir in $PATH
6299 do
6300 IFS=$as_save_IFS
6301 test -z "$as_dir" && as_dir=.
6302 for ac_exec_ext in '' $ac_executable_extensions; do
6303 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6304 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6305 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6306 break 2
6307 fi
6308 done
6309 done
6310 IFS=$as_save_IFS
6311
6312 fi
6313 fi
6314 STRIP=$ac_cv_prog_STRIP
6315 if test -n "$STRIP"; then
6316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6317 $as_echo "$STRIP" >&6; }
6318 else
6319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6320 $as_echo "no" >&6; }
6321 fi
6322
6323
6324 fi
6325 if test -z "$ac_cv_prog_STRIP"; then
6326 ac_ct_STRIP=$STRIP
6327 # Extract the first word of "strip", so it can be a program name with args.
6328 set dummy strip; ac_word=$2
6329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6330 $as_echo_n "checking for $ac_word... " >&6; }
6331 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6332 $as_echo_n "(cached) " >&6
6333 else
6334 if test -n "$ac_ct_STRIP"; then
6335 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6336 else
6337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6338 for as_dir in $PATH
6339 do
6340 IFS=$as_save_IFS
6341 test -z "$as_dir" && as_dir=.
6342 for ac_exec_ext in '' $ac_executable_extensions; do
6343 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6344 ac_cv_prog_ac_ct_STRIP="strip"
6345 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6346 break 2
6347 fi
6348 done
6349 done
6350 IFS=$as_save_IFS
6351
6352 fi
6353 fi
6354 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6355 if test -n "$ac_ct_STRIP"; then
6356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6357 $as_echo "$ac_ct_STRIP" >&6; }
6358 else
6359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6360 $as_echo "no" >&6; }
6361 fi
6362
6363 if test "x$ac_ct_STRIP" = x; then
6364 STRIP=":"
6365 else
6366 case $cross_compiling:$ac_tool_warned in
6367 yes:)
6368 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6369 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6370 ac_tool_warned=yes ;;
6371 esac
6372 STRIP=$ac_ct_STRIP
6373 fi
6374 else
6375 STRIP="$ac_cv_prog_STRIP"
6376 fi
6377
6378 test -z "$STRIP" && STRIP=:
6379
6380
6381
6382
6383
6384
6385 if test -n "$ac_tool_prefix"; then
6386 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6387 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6389 $as_echo_n "checking for $ac_word... " >&6; }
6390 if ${ac_cv_prog_RANLIB+:} false; then :
6391 $as_echo_n "(cached) " >&6
6392 else
6393 if test -n "$RANLIB"; then
6394 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6395 else
6396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6397 for as_dir in $PATH
6398 do
6399 IFS=$as_save_IFS
6400 test -z "$as_dir" && as_dir=.
6401 for ac_exec_ext in '' $ac_executable_extensions; do
6402 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6403 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6404 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6405 break 2
6406 fi
6407 done
6408 done
6409 IFS=$as_save_IFS
6410
6411 fi
6412 fi
6413 RANLIB=$ac_cv_prog_RANLIB
6414 if test -n "$RANLIB"; then
6415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6416 $as_echo "$RANLIB" >&6; }
6417 else
6418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6419 $as_echo "no" >&6; }
6420 fi
6421
6422
6423 fi
6424 if test -z "$ac_cv_prog_RANLIB"; then
6425 ac_ct_RANLIB=$RANLIB
6426 # Extract the first word of "ranlib", so it can be a program name with args.
6427 set dummy ranlib; ac_word=$2
6428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6429 $as_echo_n "checking for $ac_word... " >&6; }
6430 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6431 $as_echo_n "(cached) " >&6
6432 else
6433 if test -n "$ac_ct_RANLIB"; then
6434 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6435 else
6436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6437 for as_dir in $PATH
6438 do
6439 IFS=$as_save_IFS
6440 test -z "$as_dir" && as_dir=.
6441 for ac_exec_ext in '' $ac_executable_extensions; do
6442 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6443 ac_cv_prog_ac_ct_RANLIB="ranlib"
6444 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6445 break 2
6446 fi
6447 done
6448 done
6449 IFS=$as_save_IFS
6450
6451 fi
6452 fi
6453 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6454 if test -n "$ac_ct_RANLIB"; then
6455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6456 $as_echo "$ac_ct_RANLIB" >&6; }
6457 else
6458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6459 $as_echo "no" >&6; }
6460 fi
6461
6462 if test "x$ac_ct_RANLIB" = x; then
6463 RANLIB=":"
6464 else
6465 case $cross_compiling:$ac_tool_warned in
6466 yes:)
6467 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6468 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6469 ac_tool_warned=yes ;;
6470 esac
6471 RANLIB=$ac_ct_RANLIB
6472 fi
6473 else
6474 RANLIB="$ac_cv_prog_RANLIB"
6475 fi
6476
6477 test -z "$RANLIB" && RANLIB=:
6478
6479
6480
6481
6482
6483
6484 # Determine commands to create old-style static archives.
6485 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6486 old_postinstall_cmds='chmod 644 $oldlib'
6487 old_postuninstall_cmds=
6488
6489 if test -n "$RANLIB"; then
6490 case $host_os in
6491 openbsd*)
6492 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6493 ;;
6494 *)
6495 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6496 ;;
6497 esac
6498 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6499 fi
6500
6501 case $host_os in
6502 darwin*)
6503 lock_old_archive_extraction=yes ;;
6504 *)
6505 lock_old_archive_extraction=no ;;
6506 esac
6507
6508
6509
6510
6511
6512
6513
6514
6515
6516
6517
6518
6519
6520
6521
6522
6523
6524
6525
6526
6527
6528
6529
6530
6531
6532
6533
6534
6535
6536
6537
6538
6539
6540
6541
6542
6543
6544
6545
6546 # If no C compiler was specified, use CC.
6547 LTCC=${LTCC-"$CC"}
6548
6549 # If no C compiler flags were specified, use CFLAGS.
6550 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6551
6552 # Allow CC to be a program name with arguments.
6553 compiler=$CC
6554
6555
6556 # Check for command to grab the raw symbol name followed by C symbol from nm.
6557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6558 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6559 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6560 $as_echo_n "(cached) " >&6
6561 else
6562
6563 # These are sane defaults that work on at least a few old systems.
6564 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6565
6566 # Character class describing NM global symbol codes.
6567 symcode='[BCDEGRST]'
6568
6569 # Regexp to match symbols that can be accessed directly from C.
6570 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6571
6572 # Define system-specific variables.
6573 case $host_os in
6574 aix*)
6575 symcode='[BCDT]'
6576 ;;
6577 cygwin* | mingw* | pw32* | cegcc*)
6578 symcode='[ABCDGISTW]'
6579 ;;
6580 hpux*)
6581 if test "$host_cpu" = ia64; then
6582 symcode='[ABCDEGRST]'
6583 fi
6584 ;;
6585 irix* | nonstopux*)
6586 symcode='[BCDEGRST]'
6587 ;;
6588 osf*)
6589 symcode='[BCDEGQRST]'
6590 ;;
6591 solaris*)
6592 symcode='[BDRT]'
6593 ;;
6594 sco3.2v5*)
6595 symcode='[DT]'
6596 ;;
6597 sysv4.2uw2*)
6598 symcode='[DT]'
6599 ;;
6600 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6601 symcode='[ABDT]'
6602 ;;
6603 sysv4)
6604 symcode='[DFNSTU]'
6605 ;;
6606 esac
6607
6608 # If we're using GNU nm, then use its standard symbol codes.
6609 case `$NM -V 2>&1` in
6610 *GNU* | *'with BFD'*)
6611 symcode='[ABCDGIRSTW]' ;;
6612 esac
6613
6614 # Transform an extracted symbol line into a proper C declaration.
6615 # Some systems (esp. on ia64) link data and code symbols differently,
6616 # so use this general approach.
6617 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6618
6619 # Transform an extracted symbol line into symbol name and symbol address
6620 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6621 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'"
6622
6623 # Handle CRLF in mingw tool chain
6624 opt_cr=
6625 case $build_os in
6626 mingw*)
6627 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6628 ;;
6629 esac
6630
6631 # Try without a prefix underscore, then with it.
6632 for ac_symprfx in "" "_"; do
6633
6634 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6635 symxfrm="\\1 $ac_symprfx\\2 \\2"
6636
6637 # Write the raw and C identifiers.
6638 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6639 # Fake it for dumpbin and say T for any non-static function
6640 # and D for any global variable.
6641 # Also find C++ and __fastcall symbols from MSVC++,
6642 # which start with @ or ?.
6643 lt_cv_sys_global_symbol_pipe="$AWK '"\
6644 " {last_section=section; section=\$ 3};"\
6645 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6646 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6647 " \$ 0!~/External *\|/{next};"\
6648 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6649 " {if(hide[section]) next};"\
6650 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6651 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6652 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6653 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6654 " ' prfx=^$ac_symprfx"
6655 else
6656 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6657 fi
6658 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6659
6660 # Check to see that the pipe works correctly.
6661 pipe_works=no
6662
6663 rm -f conftest*
6664 cat > conftest.$ac_ext <<_LT_EOF
6665 #ifdef __cplusplus
6666 extern "C" {
6667 #endif
6668 char nm_test_var;
6669 void nm_test_func(void);
6670 void nm_test_func(void){}
6671 #ifdef __cplusplus
6672 }
6673 #endif
6674 int main(){nm_test_var='a';nm_test_func();return(0);}
6675 _LT_EOF
6676
6677 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6678 (eval $ac_compile) 2>&5
6679 ac_status=$?
6680 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6681 test $ac_status = 0; }; then
6682 # Now try to grab the symbols.
6683 nlist=conftest.nm
6684 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6685 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6686 ac_status=$?
6687 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6688 test $ac_status = 0; } && test -s "$nlist"; then
6689 # Try sorting and uniquifying the output.
6690 if sort "$nlist" | uniq > "$nlist"T; then
6691 mv -f "$nlist"T "$nlist"
6692 else
6693 rm -f "$nlist"T
6694 fi
6695
6696 # Make sure that we snagged all the symbols we need.
6697 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6698 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6699 cat <<_LT_EOF > conftest.$ac_ext
6700 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6701 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6702 /* DATA imports from DLLs on WIN32 con't be const, because runtime
6703 relocations are performed -- see ld's documentation on pseudo-relocs. */
6704 # define LT_DLSYM_CONST
6705 #elif defined(__osf__)
6706 /* This system does not cope well with relocations in const data. */
6707 # define LT_DLSYM_CONST
6708 #else
6709 # define LT_DLSYM_CONST const
6710 #endif
6711
6712 #ifdef __cplusplus
6713 extern "C" {
6714 #endif
6715
6716 _LT_EOF
6717 # Now generate the symbol file.
6718 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6719
6720 cat <<_LT_EOF >> conftest.$ac_ext
6721
6722 /* The mapping between symbol names and symbols. */
6723 LT_DLSYM_CONST struct {
6724 const char *name;
6725 void *address;
6726 }
6727 lt__PROGRAM__LTX_preloaded_symbols[] =
6728 {
6729 { "@PROGRAM@", (void *) 0 },
6730 _LT_EOF
6731 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6732 cat <<\_LT_EOF >> conftest.$ac_ext
6733 {0, (void *) 0}
6734 };
6735
6736 /* This works around a problem in FreeBSD linker */
6737 #ifdef FREEBSD_WORKAROUND
6738 static const void *lt_preloaded_setup() {
6739 return lt__PROGRAM__LTX_preloaded_symbols;
6740 }
6741 #endif
6742
6743 #ifdef __cplusplus
6744 }
6745 #endif
6746 _LT_EOF
6747 # Now try linking the two files.
6748 mv conftest.$ac_objext conftstm.$ac_objext
6749 lt_globsym_save_LIBS=$LIBS
6750 lt_globsym_save_CFLAGS=$CFLAGS
6751 LIBS="conftstm.$ac_objext"
6752 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6753 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6754 (eval $ac_link) 2>&5
6755 ac_status=$?
6756 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6757 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6758 pipe_works=yes
6759 fi
6760 LIBS=$lt_globsym_save_LIBS
6761 CFLAGS=$lt_globsym_save_CFLAGS
6762 else
6763 echo "cannot find nm_test_func in $nlist" >&5
6764 fi
6765 else
6766 echo "cannot find nm_test_var in $nlist" >&5
6767 fi
6768 else
6769 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6770 fi
6771 else
6772 echo "$progname: failed program was:" >&5
6773 cat conftest.$ac_ext >&5
6774 fi
6775 rm -rf conftest* conftst*
6776
6777 # Do not use the global_symbol_pipe unless it works.
6778 if test "$pipe_works" = yes; then
6779 break
6780 else
6781 lt_cv_sys_global_symbol_pipe=
6782 fi
6783 done
6784
6785 fi
6786
6787 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6788 lt_cv_sys_global_symbol_to_cdecl=
6789 fi
6790 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6792 $as_echo "failed" >&6; }
6793 else
6794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6795 $as_echo "ok" >&6; }
6796 fi
6797
6798 # Response file support.
6799 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6800 nm_file_list_spec='@'
6801 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6802 nm_file_list_spec='@'
6803 fi
6804
6805
6806
6807
6808
6809
6810
6811
6812
6813
6814
6815
6816
6817
6818
6819
6820
6821
6822
6823
6824
6825
6826
6827
6828
6829
6830
6831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6832 $as_echo_n "checking for sysroot... " >&6; }
6833
6834 # Check whether --with-sysroot was given.
6835 if test "${with_sysroot+set}" = set; then :
6836 withval=$with_sysroot;
6837 else
6838 with_sysroot=no
6839 fi
6840
6841
6842 lt_sysroot=
6843 case ${with_sysroot} in #(
6844 yes)
6845 if test "$GCC" = yes; then
6846 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6847 fi
6848 ;; #(
6849 /*)
6850 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6851 ;; #(
6852 no|'')
6853 ;; #(
6854 *)
6855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6856 $as_echo "${with_sysroot}" >&6; }
6857 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6858 ;;
6859 esac
6860
6861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6862 $as_echo "${lt_sysroot:-no}" >&6; }
6863
6864
6865
6866
6867
6868 # Check whether --enable-libtool-lock was given.
6869 if test "${enable_libtool_lock+set}" = set; then :
6870 enableval=$enable_libtool_lock;
6871 fi
6872
6873 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6874
6875 # Some flags need to be propagated to the compiler or linker for good
6876 # libtool support.
6877 case $host in
6878 ia64-*-hpux*)
6879 # Find out which ABI we are using.
6880 echo 'int i;' > conftest.$ac_ext
6881 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6882 (eval $ac_compile) 2>&5
6883 ac_status=$?
6884 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6885 test $ac_status = 0; }; then
6886 case `/usr/bin/file conftest.$ac_objext` in
6887 *ELF-32*)
6888 HPUX_IA64_MODE="32"
6889 ;;
6890 *ELF-64*)
6891 HPUX_IA64_MODE="64"
6892 ;;
6893 esac
6894 fi
6895 rm -rf conftest*
6896 ;;
6897 *-*-irix6*)
6898 # Find out which ABI we are using.
6899 echo '#line '$LINENO' "configure"' > 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 if test "$lt_cv_prog_gnu_ld" = yes; then
6906 case `/usr/bin/file conftest.$ac_objext` in
6907 *32-bit*)
6908 LD="${LD-ld} -melf32bsmip"
6909 ;;
6910 *N32*)
6911 LD="${LD-ld} -melf32bmipn32"
6912 ;;
6913 *64-bit*)
6914 LD="${LD-ld} -melf64bmip"
6915 ;;
6916 esac
6917 else
6918 case `/usr/bin/file conftest.$ac_objext` in
6919 *32-bit*)
6920 LD="${LD-ld} -32"
6921 ;;
6922 *N32*)
6923 LD="${LD-ld} -n32"
6924 ;;
6925 *64-bit*)
6926 LD="${LD-ld} -64"
6927 ;;
6928 esac
6929 fi
6930 fi
6931 rm -rf conftest*
6932 ;;
6933
6934 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6935 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6936 # Find out which ABI we are using.
6937 echo 'int i;' > conftest.$ac_ext
6938 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6939 (eval $ac_compile) 2>&5
6940 ac_status=$?
6941 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6942 test $ac_status = 0; }; then
6943 case `/usr/bin/file conftest.o` in
6944 *32-bit*)
6945 case $host in
6946 x86_64-*kfreebsd*-gnu)
6947 LD="${LD-ld} -m elf_i386_fbsd"
6948 ;;
6949 x86_64-*linux*)
6950 LD="${LD-ld} -m elf_i386"
6951 ;;
6952 ppc64-*linux*|powerpc64-*linux*)
6953 LD="${LD-ld} -m elf32ppclinux"
6954 ;;
6955 s390x-*linux*)
6956 LD="${LD-ld} -m elf_s390"
6957 ;;
6958 sparc64-*linux*)
6959 LD="${LD-ld} -m elf32_sparc"
6960 ;;
6961 esac
6962 ;;
6963 *64-bit*)
6964 case $host in
6965 x86_64-*kfreebsd*-gnu)
6966 LD="${LD-ld} -m elf_x86_64_fbsd"
6967 ;;
6968 x86_64-*linux*)
6969 LD="${LD-ld} -m elf_x86_64"
6970 ;;
6971 ppc*-*linux*|powerpc*-*linux*)
6972 LD="${LD-ld} -m elf64ppc"
6973 ;;
6974 s390*-*linux*|s390*-*tpf*)
6975 LD="${LD-ld} -m elf64_s390"
6976 ;;
6977 sparc*-*linux*)
6978 LD="${LD-ld} -m elf64_sparc"
6979 ;;
6980 esac
6981 ;;
6982 esac
6983 fi
6984 rm -rf conftest*
6985 ;;
6986
6987 *-*-sco3.2v5*)
6988 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6989 SAVE_CFLAGS="$CFLAGS"
6990 CFLAGS="$CFLAGS -belf"
6991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6992 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6993 if ${lt_cv_cc_needs_belf+:} false; then :
6994 $as_echo_n "(cached) " >&6
6995 else
6996 ac_ext=c
6997 ac_cpp='$CPP $CPPFLAGS'
6998 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6999 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7000 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7001
7002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7003 /* end confdefs.h. */
7004
7005 int
7006 main ()
7007 {
7008
7009 ;
7010 return 0;
7011 }
7012 _ACEOF
7013 if ac_fn_c_try_link "$LINENO"; then :
7014 lt_cv_cc_needs_belf=yes
7015 else
7016 lt_cv_cc_needs_belf=no
7017 fi
7018 rm -f core conftest.err conftest.$ac_objext \
7019 conftest$ac_exeext conftest.$ac_ext
7020 ac_ext=c
7021 ac_cpp='$CPP $CPPFLAGS'
7022 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7023 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7024 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7025
7026 fi
7027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7028 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7029 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7030 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7031 CFLAGS="$SAVE_CFLAGS"
7032 fi
7033 ;;
7034 *-*solaris*)
7035 # Find out which ABI we are using.
7036 echo 'int i;' > conftest.$ac_ext
7037 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7038 (eval $ac_compile) 2>&5
7039 ac_status=$?
7040 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7041 test $ac_status = 0; }; then
7042 case `/usr/bin/file conftest.o` in
7043 *64-bit*)
7044 case $lt_cv_prog_gnu_ld in
7045 yes*)
7046 case $host in
7047 i?86-*-solaris*)
7048 LD="${LD-ld} -m elf_x86_64"
7049 ;;
7050 sparc*-*-solaris*)
7051 LD="${LD-ld} -m elf64_sparc"
7052 ;;
7053 esac
7054 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7055 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7056 LD="${LD-ld}_sol2"
7057 fi
7058 ;;
7059 *)
7060 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7061 LD="${LD-ld} -64"
7062 fi
7063 ;;
7064 esac
7065 ;;
7066 esac
7067 fi
7068 rm -rf conftest*
7069 ;;
7070 esac
7071
7072 need_locks="$enable_libtool_lock"
7073
7074 if test -n "$ac_tool_prefix"; then
7075 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7076 set dummy ${ac_tool_prefix}mt; ac_word=$2
7077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7078 $as_echo_n "checking for $ac_word... " >&6; }
7079 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7080 $as_echo_n "(cached) " >&6
7081 else
7082 if test -n "$MANIFEST_TOOL"; then
7083 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7084 else
7085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7086 for as_dir in $PATH
7087 do
7088 IFS=$as_save_IFS
7089 test -z "$as_dir" && as_dir=.
7090 for ac_exec_ext in '' $ac_executable_extensions; do
7091 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7092 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7093 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7094 break 2
7095 fi
7096 done
7097 done
7098 IFS=$as_save_IFS
7099
7100 fi
7101 fi
7102 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7103 if test -n "$MANIFEST_TOOL"; then
7104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7105 $as_echo "$MANIFEST_TOOL" >&6; }
7106 else
7107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7108 $as_echo "no" >&6; }
7109 fi
7110
7111
7112 fi
7113 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7114 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7115 # Extract the first word of "mt", so it can be a program name with args.
7116 set dummy mt; ac_word=$2
7117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7118 $as_echo_n "checking for $ac_word... " >&6; }
7119 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7120 $as_echo_n "(cached) " >&6
7121 else
7122 if test -n "$ac_ct_MANIFEST_TOOL"; then
7123 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7124 else
7125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7126 for as_dir in $PATH
7127 do
7128 IFS=$as_save_IFS
7129 test -z "$as_dir" && as_dir=.
7130 for ac_exec_ext in '' $ac_executable_extensions; do
7131 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7132 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7133 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7134 break 2
7135 fi
7136 done
7137 done
7138 IFS=$as_save_IFS
7139
7140 fi
7141 fi
7142 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7143 if test -n "$ac_ct_MANIFEST_TOOL"; then
7144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7145 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7146 else
7147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7148 $as_echo "no" >&6; }
7149 fi
7150
7151 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7152 MANIFEST_TOOL=":"
7153 else
7154 case $cross_compiling:$ac_tool_warned in
7155 yes:)
7156 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7157 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7158 ac_tool_warned=yes ;;
7159 esac
7160 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7161 fi
7162 else
7163 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7164 fi
7165
7166 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7168 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7169 if ${lt_cv_path_mainfest_tool+:} false; then :
7170 $as_echo_n "(cached) " >&6
7171 else
7172 lt_cv_path_mainfest_tool=no
7173 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7174 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7175 cat conftest.err >&5
7176 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7177 lt_cv_path_mainfest_tool=yes
7178 fi
7179 rm -f conftest*
7180 fi
7181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7182 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7183 if test "x$lt_cv_path_mainfest_tool" != xyes; then
7184 MANIFEST_TOOL=:
7185 fi
7186
7187
7188
7189
7190
7191
7192 case $host_os in
7193 rhapsody* | darwin*)
7194 if test -n "$ac_tool_prefix"; then
7195 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7196 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7198 $as_echo_n "checking for $ac_word... " >&6; }
7199 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7200 $as_echo_n "(cached) " >&6
7201 else
7202 if test -n "$DSYMUTIL"; then
7203 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7204 else
7205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7206 for as_dir in $PATH
7207 do
7208 IFS=$as_save_IFS
7209 test -z "$as_dir" && as_dir=.
7210 for ac_exec_ext in '' $ac_executable_extensions; do
7211 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7212 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7213 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7214 break 2
7215 fi
7216 done
7217 done
7218 IFS=$as_save_IFS
7219
7220 fi
7221 fi
7222 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7223 if test -n "$DSYMUTIL"; then
7224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7225 $as_echo "$DSYMUTIL" >&6; }
7226 else
7227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7228 $as_echo "no" >&6; }
7229 fi
7230
7231
7232 fi
7233 if test -z "$ac_cv_prog_DSYMUTIL"; then
7234 ac_ct_DSYMUTIL=$DSYMUTIL
7235 # Extract the first word of "dsymutil", so it can be a program name with args.
7236 set dummy dsymutil; ac_word=$2
7237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7238 $as_echo_n "checking for $ac_word... " >&6; }
7239 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7240 $as_echo_n "(cached) " >&6
7241 else
7242 if test -n "$ac_ct_DSYMUTIL"; then
7243 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7244 else
7245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7246 for as_dir in $PATH
7247 do
7248 IFS=$as_save_IFS
7249 test -z "$as_dir" && as_dir=.
7250 for ac_exec_ext in '' $ac_executable_extensions; do
7251 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7252 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7253 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7254 break 2
7255 fi
7256 done
7257 done
7258 IFS=$as_save_IFS
7259
7260 fi
7261 fi
7262 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7263 if test -n "$ac_ct_DSYMUTIL"; then
7264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7265 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7266 else
7267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7268 $as_echo "no" >&6; }
7269 fi
7270
7271 if test "x$ac_ct_DSYMUTIL" = x; then
7272 DSYMUTIL=":"
7273 else
7274 case $cross_compiling:$ac_tool_warned in
7275 yes:)
7276 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7277 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7278 ac_tool_warned=yes ;;
7279 esac
7280 DSYMUTIL=$ac_ct_DSYMUTIL
7281 fi
7282 else
7283 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7284 fi
7285
7286 if test -n "$ac_tool_prefix"; then
7287 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7288 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7290 $as_echo_n "checking for $ac_word... " >&6; }
7291 if ${ac_cv_prog_NMEDIT+:} false; then :
7292 $as_echo_n "(cached) " >&6
7293 else
7294 if test -n "$NMEDIT"; then
7295 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7296 else
7297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7298 for as_dir in $PATH
7299 do
7300 IFS=$as_save_IFS
7301 test -z "$as_dir" && as_dir=.
7302 for ac_exec_ext in '' $ac_executable_extensions; do
7303 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7304 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7305 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7306 break 2
7307 fi
7308 done
7309 done
7310 IFS=$as_save_IFS
7311
7312 fi
7313 fi
7314 NMEDIT=$ac_cv_prog_NMEDIT
7315 if test -n "$NMEDIT"; then
7316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7317 $as_echo "$NMEDIT" >&6; }
7318 else
7319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7320 $as_echo "no" >&6; }
7321 fi
7322
7323
7324 fi
7325 if test -z "$ac_cv_prog_NMEDIT"; then
7326 ac_ct_NMEDIT=$NMEDIT
7327 # Extract the first word of "nmedit", so it can be a program name with args.
7328 set dummy nmedit; ac_word=$2
7329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7330 $as_echo_n "checking for $ac_word... " >&6; }
7331 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7332 $as_echo_n "(cached) " >&6
7333 else
7334 if test -n "$ac_ct_NMEDIT"; then
7335 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7336 else
7337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7338 for as_dir in $PATH
7339 do
7340 IFS=$as_save_IFS
7341 test -z "$as_dir" && as_dir=.
7342 for ac_exec_ext in '' $ac_executable_extensions; do
7343 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7344 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7345 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7346 break 2
7347 fi
7348 done
7349 done
7350 IFS=$as_save_IFS
7351
7352 fi
7353 fi
7354 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7355 if test -n "$ac_ct_NMEDIT"; then
7356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7357 $as_echo "$ac_ct_NMEDIT" >&6; }
7358 else
7359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7360 $as_echo "no" >&6; }
7361 fi
7362
7363 if test "x$ac_ct_NMEDIT" = x; then
7364 NMEDIT=":"
7365 else
7366 case $cross_compiling:$ac_tool_warned in
7367 yes:)
7368 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7369 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7370 ac_tool_warned=yes ;;
7371 esac
7372 NMEDIT=$ac_ct_NMEDIT
7373 fi
7374 else
7375 NMEDIT="$ac_cv_prog_NMEDIT"
7376 fi
7377
7378 if test -n "$ac_tool_prefix"; then
7379 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7380 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7382 $as_echo_n "checking for $ac_word... " >&6; }
7383 if ${ac_cv_prog_LIPO+:} false; then :
7384 $as_echo_n "(cached) " >&6
7385 else
7386 if test -n "$LIPO"; then
7387 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7388 else
7389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7390 for as_dir in $PATH
7391 do
7392 IFS=$as_save_IFS
7393 test -z "$as_dir" && as_dir=.
7394 for ac_exec_ext in '' $ac_executable_extensions; do
7395 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7396 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7397 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7398 break 2
7399 fi
7400 done
7401 done
7402 IFS=$as_save_IFS
7403
7404 fi
7405 fi
7406 LIPO=$ac_cv_prog_LIPO
7407 if test -n "$LIPO"; then
7408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7409 $as_echo "$LIPO" >&6; }
7410 else
7411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7412 $as_echo "no" >&6; }
7413 fi
7414
7415
7416 fi
7417 if test -z "$ac_cv_prog_LIPO"; then
7418 ac_ct_LIPO=$LIPO
7419 # Extract the first word of "lipo", so it can be a program name with args.
7420 set dummy lipo; ac_word=$2
7421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7422 $as_echo_n "checking for $ac_word... " >&6; }
7423 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7424 $as_echo_n "(cached) " >&6
7425 else
7426 if test -n "$ac_ct_LIPO"; then
7427 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7428 else
7429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7430 for as_dir in $PATH
7431 do
7432 IFS=$as_save_IFS
7433 test -z "$as_dir" && as_dir=.
7434 for ac_exec_ext in '' $ac_executable_extensions; do
7435 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7436 ac_cv_prog_ac_ct_LIPO="lipo"
7437 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7438 break 2
7439 fi
7440 done
7441 done
7442 IFS=$as_save_IFS
7443
7444 fi
7445 fi
7446 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7447 if test -n "$ac_ct_LIPO"; then
7448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7449 $as_echo "$ac_ct_LIPO" >&6; }
7450 else
7451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7452 $as_echo "no" >&6; }
7453 fi
7454
7455 if test "x$ac_ct_LIPO" = x; then
7456 LIPO=":"
7457 else
7458 case $cross_compiling:$ac_tool_warned in
7459 yes:)
7460 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7461 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7462 ac_tool_warned=yes ;;
7463 esac
7464 LIPO=$ac_ct_LIPO
7465 fi
7466 else
7467 LIPO="$ac_cv_prog_LIPO"
7468 fi
7469
7470 if test -n "$ac_tool_prefix"; then
7471 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7472 set dummy ${ac_tool_prefix}otool; ac_word=$2
7473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7474 $as_echo_n "checking for $ac_word... " >&6; }
7475 if ${ac_cv_prog_OTOOL+:} false; then :
7476 $as_echo_n "(cached) " >&6
7477 else
7478 if test -n "$OTOOL"; then
7479 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7480 else
7481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7482 for as_dir in $PATH
7483 do
7484 IFS=$as_save_IFS
7485 test -z "$as_dir" && as_dir=.
7486 for ac_exec_ext in '' $ac_executable_extensions; do
7487 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7488 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7489 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7490 break 2
7491 fi
7492 done
7493 done
7494 IFS=$as_save_IFS
7495
7496 fi
7497 fi
7498 OTOOL=$ac_cv_prog_OTOOL
7499 if test -n "$OTOOL"; then
7500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7501 $as_echo "$OTOOL" >&6; }
7502 else
7503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7504 $as_echo "no" >&6; }
7505 fi
7506
7507
7508 fi
7509 if test -z "$ac_cv_prog_OTOOL"; then
7510 ac_ct_OTOOL=$OTOOL
7511 # Extract the first word of "otool", so it can be a program name with args.
7512 set dummy otool; ac_word=$2
7513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7514 $as_echo_n "checking for $ac_word... " >&6; }
7515 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7516 $as_echo_n "(cached) " >&6
7517 else
7518 if test -n "$ac_ct_OTOOL"; then
7519 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7520 else
7521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7522 for as_dir in $PATH
7523 do
7524 IFS=$as_save_IFS
7525 test -z "$as_dir" && as_dir=.
7526 for ac_exec_ext in '' $ac_executable_extensions; do
7527 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7528 ac_cv_prog_ac_ct_OTOOL="otool"
7529 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7530 break 2
7531 fi
7532 done
7533 done
7534 IFS=$as_save_IFS
7535
7536 fi
7537 fi
7538 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7539 if test -n "$ac_ct_OTOOL"; then
7540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7541 $as_echo "$ac_ct_OTOOL" >&6; }
7542 else
7543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7544 $as_echo "no" >&6; }
7545 fi
7546
7547 if test "x$ac_ct_OTOOL" = x; then
7548 OTOOL=":"
7549 else
7550 case $cross_compiling:$ac_tool_warned in
7551 yes:)
7552 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7553 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7554 ac_tool_warned=yes ;;
7555 esac
7556 OTOOL=$ac_ct_OTOOL
7557 fi
7558 else
7559 OTOOL="$ac_cv_prog_OTOOL"
7560 fi
7561
7562 if test -n "$ac_tool_prefix"; then
7563 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7564 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7566 $as_echo_n "checking for $ac_word... " >&6; }
7567 if ${ac_cv_prog_OTOOL64+:} false; then :
7568 $as_echo_n "(cached) " >&6
7569 else
7570 if test -n "$OTOOL64"; then
7571 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7572 else
7573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7574 for as_dir in $PATH
7575 do
7576 IFS=$as_save_IFS
7577 test -z "$as_dir" && as_dir=.
7578 for ac_exec_ext in '' $ac_executable_extensions; do
7579 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7580 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7581 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7582 break 2
7583 fi
7584 done
7585 done
7586 IFS=$as_save_IFS
7587
7588 fi
7589 fi
7590 OTOOL64=$ac_cv_prog_OTOOL64
7591 if test -n "$OTOOL64"; then
7592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7593 $as_echo "$OTOOL64" >&6; }
7594 else
7595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7596 $as_echo "no" >&6; }
7597 fi
7598
7599
7600 fi
7601 if test -z "$ac_cv_prog_OTOOL64"; then
7602 ac_ct_OTOOL64=$OTOOL64
7603 # Extract the first word of "otool64", so it can be a program name with args.
7604 set dummy otool64; ac_word=$2
7605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7606 $as_echo_n "checking for $ac_word... " >&6; }
7607 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7608 $as_echo_n "(cached) " >&6
7609 else
7610 if test -n "$ac_ct_OTOOL64"; then
7611 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7612 else
7613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7614 for as_dir in $PATH
7615 do
7616 IFS=$as_save_IFS
7617 test -z "$as_dir" && as_dir=.
7618 for ac_exec_ext in '' $ac_executable_extensions; do
7619 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7620 ac_cv_prog_ac_ct_OTOOL64="otool64"
7621 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7622 break 2
7623 fi
7624 done
7625 done
7626 IFS=$as_save_IFS
7627
7628 fi
7629 fi
7630 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7631 if test -n "$ac_ct_OTOOL64"; then
7632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7633 $as_echo "$ac_ct_OTOOL64" >&6; }
7634 else
7635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7636 $as_echo "no" >&6; }
7637 fi
7638
7639 if test "x$ac_ct_OTOOL64" = x; then
7640 OTOOL64=":"
7641 else
7642 case $cross_compiling:$ac_tool_warned in
7643 yes:)
7644 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7645 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7646 ac_tool_warned=yes ;;
7647 esac
7648 OTOOL64=$ac_ct_OTOOL64
7649 fi
7650 else
7651 OTOOL64="$ac_cv_prog_OTOOL64"
7652 fi
7653
7654
7655
7656
7657
7658
7659
7660
7661
7662
7663
7664
7665
7666
7667
7668
7669
7670
7671
7672
7673
7674
7675
7676
7677
7678
7679
7680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7681 $as_echo_n "checking for -single_module linker flag... " >&6; }
7682 if ${lt_cv_apple_cc_single_mod+:} false; then :
7683 $as_echo_n "(cached) " >&6
7684 else
7685 lt_cv_apple_cc_single_mod=no
7686 if test -z "${LT_MULTI_MODULE}"; then
7687 # By default we will add the -single_module flag. You can override
7688 # by either setting the environment variable LT_MULTI_MODULE
7689 # non-empty at configure time, or by adding -multi_module to the
7690 # link flags.
7691 rm -rf libconftest.dylib*
7692 echo "int foo(void){return 1;}" > conftest.c
7693 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7694 -dynamiclib -Wl,-single_module conftest.c" >&5
7695 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7696 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7697 _lt_result=$?
7698 # If there is a non-empty error log, and "single_module"
7699 # appears in it, assume the flag caused a linker warning
7700 if test -s conftest.err && $GREP single_module conftest.err; then
7701 cat conftest.err >&5
7702 # Otherwise, if the output was created with a 0 exit code from
7703 # the compiler, it worked.
7704 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7705 lt_cv_apple_cc_single_mod=yes
7706 else
7707 cat conftest.err >&5
7708 fi
7709 rm -rf libconftest.dylib*
7710 rm -f conftest.*
7711 fi
7712 fi
7713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7714 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7715
7716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7717 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7718 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7719 $as_echo_n "(cached) " >&6
7720 else
7721 lt_cv_ld_exported_symbols_list=no
7722 save_LDFLAGS=$LDFLAGS
7723 echo "_main" > conftest.sym
7724 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7726 /* end confdefs.h. */
7727
7728 int
7729 main ()
7730 {
7731
7732 ;
7733 return 0;
7734 }
7735 _ACEOF
7736 if ac_fn_c_try_link "$LINENO"; then :
7737 lt_cv_ld_exported_symbols_list=yes
7738 else
7739 lt_cv_ld_exported_symbols_list=no
7740 fi
7741 rm -f core conftest.err conftest.$ac_objext \
7742 conftest$ac_exeext conftest.$ac_ext
7743 LDFLAGS="$save_LDFLAGS"
7744
7745 fi
7746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7747 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7748
7749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7750 $as_echo_n "checking for -force_load linker flag... " >&6; }
7751 if ${lt_cv_ld_force_load+:} false; then :
7752 $as_echo_n "(cached) " >&6
7753 else
7754 lt_cv_ld_force_load=no
7755 cat > conftest.c << _LT_EOF
7756 int forced_loaded() { return 2;}
7757 _LT_EOF
7758 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7759 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7760 echo "$AR cru libconftest.a conftest.o" >&5
7761 $AR cru libconftest.a conftest.o 2>&5
7762 echo "$RANLIB libconftest.a" >&5
7763 $RANLIB libconftest.a 2>&5
7764 cat > conftest.c << _LT_EOF
7765 int main() { return 0;}
7766 _LT_EOF
7767 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7768 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7769 _lt_result=$?
7770 if test -s conftest.err && $GREP force_load conftest.err; then
7771 cat conftest.err >&5
7772 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7773 lt_cv_ld_force_load=yes
7774 else
7775 cat conftest.err >&5
7776 fi
7777 rm -f conftest.err libconftest.a conftest conftest.c
7778 rm -rf conftest.dSYM
7779
7780 fi
7781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7782 $as_echo "$lt_cv_ld_force_load" >&6; }
7783 case $host_os in
7784 rhapsody* | darwin1.[012])
7785 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7786 darwin1.*)
7787 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7788 darwin*) # darwin 5.x on
7789 # if running on 10.5 or later, the deployment target defaults
7790 # to the OS version, if on x86, and 10.4, the deployment
7791 # target defaults to 10.4. Don't you love it?
7792 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7793 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7794 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7795 10.[012]*)
7796 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7797 10.*)
7798 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7799 esac
7800 ;;
7801 esac
7802 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7803 _lt_dar_single_mod='$single_module'
7804 fi
7805 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7806 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7807 else
7808 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7809 fi
7810 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7811 _lt_dsymutil='~$DSYMUTIL $lib || :'
7812 else
7813 _lt_dsymutil=
7814 fi
7815 ;;
7816 esac
7817
7818 ac_ext=c
7819 ac_cpp='$CPP $CPPFLAGS'
7820 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7821 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7822 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7824 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7825 # On Suns, sometimes $CPP names a directory.
7826 if test -n "$CPP" && test -d "$CPP"; then
7827 CPP=
7828 fi
7829 if test -z "$CPP"; then
7830 if ${ac_cv_prog_CPP+:} false; then :
7831 $as_echo_n "(cached) " >&6
7832 else
7833 # Double quotes because CPP needs to be expanded
7834 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7835 do
7836 ac_preproc_ok=false
7837 for ac_c_preproc_warn_flag in '' yes
7838 do
7839 # Use a header file that comes with gcc, so configuring glibc
7840 # with a fresh cross-compiler works.
7841 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7842 # <limits.h> exists even on freestanding compilers.
7843 # On the NeXT, cc -E runs the code through the compiler's parser,
7844 # not just through cpp. "Syntax error" is here to catch this case.
7845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7846 /* end confdefs.h. */
7847 #ifdef __STDC__
7848 # include <limits.h>
7849 #else
7850 # include <assert.h>
7851 #endif
7852 Syntax error
7853 _ACEOF
7854 if ac_fn_c_try_cpp "$LINENO"; then :
7855
7856 else
7857 # Broken: fails on valid input.
7858 continue
7859 fi
7860 rm -f conftest.err conftest.i conftest.$ac_ext
7861
7862 # OK, works on sane cases. Now check whether nonexistent headers
7863 # can be detected and how.
7864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7865 /* end confdefs.h. */
7866 #include <ac_nonexistent.h>
7867 _ACEOF
7868 if ac_fn_c_try_cpp "$LINENO"; then :
7869 # Broken: success on invalid input.
7870 continue
7871 else
7872 # Passes both tests.
7873 ac_preproc_ok=:
7874 break
7875 fi
7876 rm -f conftest.err conftest.i conftest.$ac_ext
7877
7878 done
7879 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7880 rm -f conftest.i conftest.err conftest.$ac_ext
7881 if $ac_preproc_ok; then :
7882 break
7883 fi
7884
7885 done
7886 ac_cv_prog_CPP=$CPP
7887
7888 fi
7889 CPP=$ac_cv_prog_CPP
7890 else
7891 ac_cv_prog_CPP=$CPP
7892 fi
7893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7894 $as_echo "$CPP" >&6; }
7895 ac_preproc_ok=false
7896 for ac_c_preproc_warn_flag in '' yes
7897 do
7898 # Use a header file that comes with gcc, so configuring glibc
7899 # with a fresh cross-compiler works.
7900 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7901 # <limits.h> exists even on freestanding compilers.
7902 # On the NeXT, cc -E runs the code through the compiler's parser,
7903 # not just through cpp. "Syntax error" is here to catch this case.
7904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7905 /* end confdefs.h. */
7906 #ifdef __STDC__
7907 # include <limits.h>
7908 #else
7909 # include <assert.h>
7910 #endif
7911 Syntax error
7912 _ACEOF
7913 if ac_fn_c_try_cpp "$LINENO"; then :
7914
7915 else
7916 # Broken: fails on valid input.
7917 continue
7918 fi
7919 rm -f conftest.err conftest.i conftest.$ac_ext
7920
7921 # OK, works on sane cases. Now check whether nonexistent headers
7922 # can be detected and how.
7923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7924 /* end confdefs.h. */
7925 #include <ac_nonexistent.h>
7926 _ACEOF
7927 if ac_fn_c_try_cpp "$LINENO"; then :
7928 # Broken: success on invalid input.
7929 continue
7930 else
7931 # Passes both tests.
7932 ac_preproc_ok=:
7933 break
7934 fi
7935 rm -f conftest.err conftest.i conftest.$ac_ext
7936
7937 done
7938 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7939 rm -f conftest.i conftest.err conftest.$ac_ext
7940 if $ac_preproc_ok; then :
7941
7942 else
7943 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7944 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7945 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7946 See \`config.log' for more details" "$LINENO" 5; }
7947 fi
7948
7949 ac_ext=c
7950 ac_cpp='$CPP $CPPFLAGS'
7951 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7952 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7953 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7954
7955
7956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7957 $as_echo_n "checking for ANSI C header files... " >&6; }
7958 if ${ac_cv_header_stdc+:} false; then :
7959 $as_echo_n "(cached) " >&6
7960 else
7961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7962 /* end confdefs.h. */
7963 #include <stdlib.h>
7964 #include <stdarg.h>
7965 #include <string.h>
7966 #include <float.h>
7967
7968 int
7969 main ()
7970 {
7971
7972 ;
7973 return 0;
7974 }
7975 _ACEOF
7976 if ac_fn_c_try_compile "$LINENO"; then :
7977 ac_cv_header_stdc=yes
7978 else
7979 ac_cv_header_stdc=no
7980 fi
7981 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7982
7983 if test $ac_cv_header_stdc = yes; then
7984 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7986 /* end confdefs.h. */
7987 #include <string.h>
7988
7989 _ACEOF
7990 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7991 $EGREP "memchr" >/dev/null 2>&1; then :
7992
7993 else
7994 ac_cv_header_stdc=no
7995 fi
7996 rm -f conftest*
7997
7998 fi
7999
8000 if test $ac_cv_header_stdc = yes; then
8001 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8003 /* end confdefs.h. */
8004 #include <stdlib.h>
8005
8006 _ACEOF
8007 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8008 $EGREP "free" >/dev/null 2>&1; then :
8009
8010 else
8011 ac_cv_header_stdc=no
8012 fi
8013 rm -f conftest*
8014
8015 fi
8016
8017 if test $ac_cv_header_stdc = yes; then
8018 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8019 if test "$cross_compiling" = yes; then :
8020 :
8021 else
8022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8023 /* end confdefs.h. */
8024 #include <ctype.h>
8025 #include <stdlib.h>
8026 #if ((' ' & 0x0FF) == 0x020)
8027 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8028 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8029 #else
8030 # define ISLOWER(c) \
8031 (('a' <= (c) && (c) <= 'i') \
8032 || ('j' <= (c) && (c) <= 'r') \
8033 || ('s' <= (c) && (c) <= 'z'))
8034 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8035 #endif
8036
8037 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8038 int
8039 main ()
8040 {
8041 int i;
8042 for (i = 0; i < 256; i++)
8043 if (XOR (islower (i), ISLOWER (i))
8044 || toupper (i) != TOUPPER (i))
8045 return 2;
8046 return 0;
8047 }
8048 _ACEOF
8049 if ac_fn_c_try_run "$LINENO"; then :
8050
8051 else
8052 ac_cv_header_stdc=no
8053 fi
8054 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8055 conftest.$ac_objext conftest.beam conftest.$ac_ext
8056 fi
8057
8058 fi
8059 fi
8060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8061 $as_echo "$ac_cv_header_stdc" >&6; }
8062 if test $ac_cv_header_stdc = yes; then
8063
8064 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8065
8066 fi
8067
8068 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8069 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8070 inttypes.h stdint.h unistd.h
8071 do :
8072 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8073 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8074 "
8075 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8076 cat >>confdefs.h <<_ACEOF
8077 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8078 _ACEOF
8079
8080 fi
8081
8082 done
8083
8084
8085 for ac_header in dlfcn.h
8086 do :
8087 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8088 "
8089 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8090 cat >>confdefs.h <<_ACEOF
8091 #define HAVE_DLFCN_H 1
8092 _ACEOF
8093
8094 fi
8095
8096 done
8097
8098
8099
8100
8101
8102 # Set options
8103 enable_dlopen=yes
8104 # Check whether --enable-static was given.
8105 if test "${enable_static+set}" = set; then :
8106 enableval=$enable_static; p=${PACKAGE-default}
8107 case $enableval in
8108 yes) enable_static=yes ;;
8109 no) enable_static=no ;;
8110 *)
8111 enable_static=no
8112 # Look at the argument we got. We use all the common list separators.
8113 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8114 for pkg in $enableval; do
8115 IFS="$lt_save_ifs"
8116 if test "X$pkg" = "X$p"; then
8117 enable_static=yes
8118 fi
8119 done
8120 IFS="$lt_save_ifs"
8121 ;;
8122 esac
8123 else
8124 enable_static=no
8125 fi
8126
8127
8128
8129
8130
8131
8132
8133
8134
8135
8136
8137 enable_win32_dll=no
8138
8139
8140 # Check whether --enable-shared was given.
8141 if test "${enable_shared+set}" = set; then :
8142 enableval=$enable_shared; p=${PACKAGE-default}
8143 case $enableval in
8144 yes) enable_shared=yes ;;
8145 no) enable_shared=no ;;
8146 *)
8147 enable_shared=no
8148 # Look at the argument we got. We use all the common list separators.
8149 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8150 for pkg in $enableval; do
8151 IFS="$lt_save_ifs"
8152 if test "X$pkg" = "X$p"; then
8153 enable_shared=yes
8154 fi
8155 done
8156 IFS="$lt_save_ifs"
8157 ;;
8158 esac
8159 else
8160 enable_shared=yes
8161 fi
8162
8163
8164
8165
8166
8167
8168
8169
8170
8171
8172
8173 # Check whether --with-pic was given.
8174 if test "${with_pic+set}" = set; then :
8175 withval=$with_pic; lt_p=${PACKAGE-default}
8176 case $withval in
8177 yes|no) pic_mode=$withval ;;
8178 *)
8179 pic_mode=default
8180 # Look at the argument we got. We use all the common list separators.
8181 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8182 for lt_pkg in $withval; do
8183 IFS="$lt_save_ifs"
8184 if test "X$lt_pkg" = "X$lt_p"; then
8185 pic_mode=yes
8186 fi
8187 done
8188 IFS="$lt_save_ifs"
8189 ;;
8190 esac
8191 else
8192 pic_mode=default
8193 fi
8194
8195
8196 test -z "$pic_mode" && pic_mode=default
8197
8198
8199
8200
8201
8202
8203
8204 # Check whether --enable-fast-install was given.
8205 if test "${enable_fast_install+set}" = set; then :
8206 enableval=$enable_fast_install; p=${PACKAGE-default}
8207 case $enableval in
8208 yes) enable_fast_install=yes ;;
8209 no) enable_fast_install=no ;;
8210 *)
8211 enable_fast_install=no
8212 # Look at the argument we got. We use all the common list separators.
8213 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8214 for pkg in $enableval; do
8215 IFS="$lt_save_ifs"
8216 if test "X$pkg" = "X$p"; then
8217 enable_fast_install=yes
8218 fi
8219 done
8220 IFS="$lt_save_ifs"
8221 ;;
8222 esac
8223 else
8224 enable_fast_install=yes
8225 fi
8226
8227
8228
8229
8230
8231
8232
8233
8234
8235
8236
8237 # This can be used to rebuild libtool when needed
8238 LIBTOOL_DEPS="$ltmain"
8239
8240 # Always use our own libtool.
8241 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8242
8243
8244
8245
8246
8247
8248
8249
8250
8251
8252
8253
8254
8255
8256
8257
8258
8259
8260
8261
8262
8263
8264
8265
8266
8267
8268
8269
8270
8271
8272 test -z "$LN_S" && LN_S="ln -s"
8273
8274
8275
8276
8277
8278
8279
8280
8281
8282
8283
8284
8285
8286
8287 if test -n "${ZSH_VERSION+set}" ; then
8288 setopt NO_GLOB_SUBST
8289 fi
8290
8291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8292 $as_echo_n "checking for objdir... " >&6; }
8293 if ${lt_cv_objdir+:} false; then :
8294 $as_echo_n "(cached) " >&6
8295 else
8296 rm -f .libs 2>/dev/null
8297 mkdir .libs 2>/dev/null
8298 if test -d .libs; then
8299 lt_cv_objdir=.libs
8300 else
8301 # MS-DOS does not allow filenames that begin with a dot.
8302 lt_cv_objdir=_libs
8303 fi
8304 rmdir .libs 2>/dev/null
8305 fi
8306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8307 $as_echo "$lt_cv_objdir" >&6; }
8308 objdir=$lt_cv_objdir
8309
8310
8311
8312
8313
8314 cat >>confdefs.h <<_ACEOF
8315 #define LT_OBJDIR "$lt_cv_objdir/"
8316 _ACEOF
8317
8318
8319
8320
8321 case $host_os in
8322 aix3*)
8323 # AIX sometimes has problems with the GCC collect2 program. For some
8324 # reason, if we set the COLLECT_NAMES environment variable, the problems
8325 # vanish in a puff of smoke.
8326 if test "X${COLLECT_NAMES+set}" != Xset; then
8327 COLLECT_NAMES=
8328 export COLLECT_NAMES
8329 fi
8330 ;;
8331 esac
8332
8333 # Global variables:
8334 ofile=libtool
8335 can_build_shared=yes
8336
8337 # All known linkers require a `.a' archive for static linking (except MSVC,
8338 # which needs '.lib').
8339 libext=a
8340
8341 with_gnu_ld="$lt_cv_prog_gnu_ld"
8342
8343 old_CC="$CC"
8344 old_CFLAGS="$CFLAGS"
8345
8346 # Set sane defaults for various variables
8347 test -z "$CC" && CC=cc
8348 test -z "$LTCC" && LTCC=$CC
8349 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8350 test -z "$LD" && LD=ld
8351 test -z "$ac_objext" && ac_objext=o
8352
8353 for cc_temp in $compiler""; do
8354 case $cc_temp in
8355 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8356 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8357 \-*) ;;
8358 *) break;;
8359 esac
8360 done
8361 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8362
8363
8364 # Only perform the check for file, if the check method requires it
8365 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8366 case $deplibs_check_method in
8367 file_magic*)
8368 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8370 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8371 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8372 $as_echo_n "(cached) " >&6
8373 else
8374 case $MAGIC_CMD in
8375 [\\/*] | ?:[\\/]*)
8376 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8377 ;;
8378 *)
8379 lt_save_MAGIC_CMD="$MAGIC_CMD"
8380 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8381 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8382 for ac_dir in $ac_dummy; do
8383 IFS="$lt_save_ifs"
8384 test -z "$ac_dir" && ac_dir=.
8385 if test -f $ac_dir/${ac_tool_prefix}file; then
8386 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8387 if test -n "$file_magic_test_file"; then
8388 case $deplibs_check_method in
8389 "file_magic "*)
8390 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8391 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8392 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8393 $EGREP "$file_magic_regex" > /dev/null; then
8394 :
8395 else
8396 cat <<_LT_EOF 1>&2
8397
8398 *** Warning: the command libtool uses to detect shared libraries,
8399 *** $file_magic_cmd, produces output that libtool cannot recognize.
8400 *** The result is that libtool may fail to recognize shared libraries
8401 *** as such. This will affect the creation of libtool libraries that
8402 *** depend on shared libraries, but programs linked with such libtool
8403 *** libraries will work regardless of this problem. Nevertheless, you
8404 *** may want to report the problem to your system manager and/or to
8405 *** bug-libtool@gnu.org
8406
8407 _LT_EOF
8408 fi ;;
8409 esac
8410 fi
8411 break
8412 fi
8413 done
8414 IFS="$lt_save_ifs"
8415 MAGIC_CMD="$lt_save_MAGIC_CMD"
8416 ;;
8417 esac
8418 fi
8419
8420 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8421 if test -n "$MAGIC_CMD"; then
8422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8423 $as_echo "$MAGIC_CMD" >&6; }
8424 else
8425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8426 $as_echo "no" >&6; }
8427 fi
8428
8429
8430
8431
8432
8433 if test -z "$lt_cv_path_MAGIC_CMD"; then
8434 if test -n "$ac_tool_prefix"; then
8435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8436 $as_echo_n "checking for file... " >&6; }
8437 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8438 $as_echo_n "(cached) " >&6
8439 else
8440 case $MAGIC_CMD in
8441 [\\/*] | ?:[\\/]*)
8442 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8443 ;;
8444 *)
8445 lt_save_MAGIC_CMD="$MAGIC_CMD"
8446 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8447 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8448 for ac_dir in $ac_dummy; do
8449 IFS="$lt_save_ifs"
8450 test -z "$ac_dir" && ac_dir=.
8451 if test -f $ac_dir/file; then
8452 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8453 if test -n "$file_magic_test_file"; then
8454 case $deplibs_check_method in
8455 "file_magic "*)
8456 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8457 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8458 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8459 $EGREP "$file_magic_regex" > /dev/null; then
8460 :
8461 else
8462 cat <<_LT_EOF 1>&2
8463
8464 *** Warning: the command libtool uses to detect shared libraries,
8465 *** $file_magic_cmd, produces output that libtool cannot recognize.
8466 *** The result is that libtool may fail to recognize shared libraries
8467 *** as such. This will affect the creation of libtool libraries that
8468 *** depend on shared libraries, but programs linked with such libtool
8469 *** libraries will work regardless of this problem. Nevertheless, you
8470 *** may want to report the problem to your system manager and/or to
8471 *** bug-libtool@gnu.org
8472
8473 _LT_EOF
8474 fi ;;
8475 esac
8476 fi
8477 break
8478 fi
8479 done
8480 IFS="$lt_save_ifs"
8481 MAGIC_CMD="$lt_save_MAGIC_CMD"
8482 ;;
8483 esac
8484 fi
8485
8486 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8487 if test -n "$MAGIC_CMD"; then
8488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8489 $as_echo "$MAGIC_CMD" >&6; }
8490 else
8491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8492 $as_echo "no" >&6; }
8493 fi
8494
8495
8496 else
8497 MAGIC_CMD=:
8498 fi
8499 fi
8500
8501 fi
8502 ;;
8503 esac
8504
8505 # Use C for the default configuration in the libtool script
8506
8507 lt_save_CC="$CC"
8508 ac_ext=c
8509 ac_cpp='$CPP $CPPFLAGS'
8510 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8511 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8512 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8513
8514
8515 # Source file extension for C test sources.
8516 ac_ext=c
8517
8518 # Object file extension for compiled C test sources.
8519 objext=o
8520 objext=$objext
8521
8522 # Code to be used in simple compile tests
8523 lt_simple_compile_test_code="int some_variable = 0;"
8524
8525 # Code to be used in simple link tests
8526 lt_simple_link_test_code='int main(){return(0);}'
8527
8528
8529
8530
8531
8532
8533
8534 # If no C compiler was specified, use CC.
8535 LTCC=${LTCC-"$CC"}
8536
8537 # If no C compiler flags were specified, use CFLAGS.
8538 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8539
8540 # Allow CC to be a program name with arguments.
8541 compiler=$CC
8542
8543 # Save the default compiler, since it gets overwritten when the other
8544 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8545 compiler_DEFAULT=$CC
8546
8547 # save warnings/boilerplate of simple test code
8548 ac_outfile=conftest.$ac_objext
8549 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8550 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8551 _lt_compiler_boilerplate=`cat conftest.err`
8552 $RM conftest*
8553
8554 ac_outfile=conftest.$ac_objext
8555 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8556 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8557 _lt_linker_boilerplate=`cat conftest.err`
8558 $RM -r conftest*
8559
8560
8561 ## CAVEAT EMPTOR:
8562 ## There is no encapsulation within the following macros, do not change
8563 ## the running order or otherwise move them around unless you know exactly
8564 ## what you are doing...
8565 if test -n "$compiler"; then
8566
8567 lt_prog_compiler_no_builtin_flag=
8568
8569 if test "$GCC" = yes; then
8570 case $cc_basename in
8571 nvcc*)
8572 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8573 *)
8574 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8575 esac
8576
8577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8578 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8579 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8580 $as_echo_n "(cached) " >&6
8581 else
8582 lt_cv_prog_compiler_rtti_exceptions=no
8583 ac_outfile=conftest.$ac_objext
8584 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8585 lt_compiler_flag="-fno-rtti -fno-exceptions"
8586 # Insert the option either (1) after the last *FLAGS variable, or
8587 # (2) before a word containing "conftest.", or (3) at the end.
8588 # Note that $ac_compile itself does not contain backslashes and begins
8589 # with a dollar sign (not a hyphen), so the echo should work correctly.
8590 # The option is referenced via a variable to avoid confusing sed.
8591 lt_compile=`echo "$ac_compile" | $SED \
8592 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8593 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8594 -e 's:$: $lt_compiler_flag:'`
8595 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8596 (eval "$lt_compile" 2>conftest.err)
8597 ac_status=$?
8598 cat conftest.err >&5
8599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8600 if (exit $ac_status) && test -s "$ac_outfile"; then
8601 # The compiler can only warn and ignore the option if not recognized
8602 # So say no if there are warnings other than the usual output.
8603 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8604 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8605 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8606 lt_cv_prog_compiler_rtti_exceptions=yes
8607 fi
8608 fi
8609 $RM conftest*
8610
8611 fi
8612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8613 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8614
8615 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8616 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8617 else
8618 :
8619 fi
8620
8621 fi
8622
8623
8624
8625
8626
8627
8628 lt_prog_compiler_wl=
8629 lt_prog_compiler_pic=
8630 lt_prog_compiler_static=
8631
8632
8633 if test "$GCC" = yes; then
8634 lt_prog_compiler_wl='-Wl,'
8635 lt_prog_compiler_static='-static'
8636
8637 case $host_os in
8638 aix*)
8639 # All AIX code is PIC.
8640 if test "$host_cpu" = ia64; then
8641 # AIX 5 now supports IA64 processor
8642 lt_prog_compiler_static='-Bstatic'
8643 fi
8644 ;;
8645
8646 amigaos*)
8647 case $host_cpu in
8648 powerpc)
8649 # see comment about AmigaOS4 .so support
8650 lt_prog_compiler_pic='-fPIC'
8651 ;;
8652 m68k)
8653 # FIXME: we need at least 68020 code to build shared libraries, but
8654 # adding the `-m68020' flag to GCC prevents building anything better,
8655 # like `-m68040'.
8656 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8657 ;;
8658 esac
8659 ;;
8660
8661 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8662 # PIC is the default for these OSes.
8663 ;;
8664
8665 mingw* | cygwin* | pw32* | os2* | cegcc*)
8666 # This hack is so that the source file can tell whether it is being
8667 # built for inclusion in a dll (and should export symbols for example).
8668 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8669 # (--disable-auto-import) libraries
8670 lt_prog_compiler_pic='-DDLL_EXPORT'
8671 ;;
8672
8673 darwin* | rhapsody*)
8674 # PIC is the default on this platform
8675 # Common symbols not allowed in MH_DYLIB files
8676 lt_prog_compiler_pic='-fno-common'
8677 ;;
8678
8679 haiku*)
8680 # PIC is the default for Haiku.
8681 # The "-static" flag exists, but is broken.
8682 lt_prog_compiler_static=
8683 ;;
8684
8685 hpux*)
8686 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8687 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8688 # sets the default TLS model and affects inlining.
8689 case $host_cpu in
8690 hppa*64*)
8691 # +Z the default
8692 ;;
8693 *)
8694 lt_prog_compiler_pic='-fPIC'
8695 ;;
8696 esac
8697 ;;
8698
8699 interix[3-9]*)
8700 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8701 # Instead, we relocate shared libraries at runtime.
8702 ;;
8703
8704 msdosdjgpp*)
8705 # Just because we use GCC doesn't mean we suddenly get shared libraries
8706 # on systems that don't support them.
8707 lt_prog_compiler_can_build_shared=no
8708 enable_shared=no
8709 ;;
8710
8711 *nto* | *qnx*)
8712 # QNX uses GNU C++, but need to define -shared option too, otherwise
8713 # it will coredump.
8714 lt_prog_compiler_pic='-fPIC -shared'
8715 ;;
8716
8717 sysv4*MP*)
8718 if test -d /usr/nec; then
8719 lt_prog_compiler_pic=-Kconform_pic
8720 fi
8721 ;;
8722
8723 *)
8724 lt_prog_compiler_pic='-fPIC'
8725 ;;
8726 esac
8727
8728 case $cc_basename in
8729 nvcc*) # Cuda Compiler Driver 2.2
8730 lt_prog_compiler_wl='-Xlinker '
8731 if test -n "$lt_prog_compiler_pic"; then
8732 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8733 fi
8734 ;;
8735 esac
8736 else
8737 # PORTME Check for flag to pass linker flags through the system compiler.
8738 case $host_os in
8739 aix*)
8740 lt_prog_compiler_wl='-Wl,'
8741 if test "$host_cpu" = ia64; then
8742 # AIX 5 now supports IA64 processor
8743 lt_prog_compiler_static='-Bstatic'
8744 else
8745 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8746 fi
8747 ;;
8748
8749 mingw* | cygwin* | pw32* | os2* | cegcc*)
8750 # This hack is so that the source file can tell whether it is being
8751 # built for inclusion in a dll (and should export symbols for example).
8752 lt_prog_compiler_pic='-DDLL_EXPORT'
8753 ;;
8754
8755 hpux9* | hpux10* | hpux11*)
8756 lt_prog_compiler_wl='-Wl,'
8757 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8758 # not for PA HP-UX.
8759 case $host_cpu in
8760 hppa*64*|ia64*)
8761 # +Z the default
8762 ;;
8763 *)
8764 lt_prog_compiler_pic='+Z'
8765 ;;
8766 esac
8767 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8768 lt_prog_compiler_static='${wl}-a ${wl}archive'
8769 ;;
8770
8771 irix5* | irix6* | nonstopux*)
8772 lt_prog_compiler_wl='-Wl,'
8773 # PIC (with -KPIC) is the default.
8774 lt_prog_compiler_static='-non_shared'
8775 ;;
8776
8777 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8778 case $cc_basename in
8779 # old Intel for x86_64 which still supported -KPIC.
8780 ecc*)
8781 lt_prog_compiler_wl='-Wl,'
8782 lt_prog_compiler_pic='-KPIC'
8783 lt_prog_compiler_static='-static'
8784 ;;
8785 # icc used to be incompatible with GCC.
8786 # ICC 10 doesn't accept -KPIC any more.
8787 icc* | ifort*)
8788 lt_prog_compiler_wl='-Wl,'
8789 lt_prog_compiler_pic='-fPIC'
8790 lt_prog_compiler_static='-static'
8791 ;;
8792 # Lahey Fortran 8.1.
8793 lf95*)
8794 lt_prog_compiler_wl='-Wl,'
8795 lt_prog_compiler_pic='--shared'
8796 lt_prog_compiler_static='--static'
8797 ;;
8798 nagfor*)
8799 # NAG Fortran compiler
8800 lt_prog_compiler_wl='-Wl,-Wl,,'
8801 lt_prog_compiler_pic='-PIC'
8802 lt_prog_compiler_static='-Bstatic'
8803 ;;
8804 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8805 # Portland Group compilers (*not* the Pentium gcc compiler,
8806 # which looks to be a dead project)
8807 lt_prog_compiler_wl='-Wl,'
8808 lt_prog_compiler_pic='-fpic'
8809 lt_prog_compiler_static='-Bstatic'
8810 ;;
8811 ccc*)
8812 lt_prog_compiler_wl='-Wl,'
8813 # All Alpha code is PIC.
8814 lt_prog_compiler_static='-non_shared'
8815 ;;
8816 xl* | bgxl* | bgf* | mpixl*)
8817 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8818 lt_prog_compiler_wl='-Wl,'
8819 lt_prog_compiler_pic='-qpic'
8820 lt_prog_compiler_static='-qstaticlink'
8821 ;;
8822 *)
8823 case `$CC -V 2>&1 | sed 5q` in
8824 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8825 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8826 lt_prog_compiler_pic='-KPIC'
8827 lt_prog_compiler_static='-Bstatic'
8828 lt_prog_compiler_wl=''
8829 ;;
8830 *Sun\ F* | *Sun*Fortran*)
8831 lt_prog_compiler_pic='-KPIC'
8832 lt_prog_compiler_static='-Bstatic'
8833 lt_prog_compiler_wl='-Qoption ld '
8834 ;;
8835 *Sun\ C*)
8836 # Sun C 5.9
8837 lt_prog_compiler_pic='-KPIC'
8838 lt_prog_compiler_static='-Bstatic'
8839 lt_prog_compiler_wl='-Wl,'
8840 ;;
8841 *Intel*\ [CF]*Compiler*)
8842 lt_prog_compiler_wl='-Wl,'
8843 lt_prog_compiler_pic='-fPIC'
8844 lt_prog_compiler_static='-static'
8845 ;;
8846 *Portland\ Group*)
8847 lt_prog_compiler_wl='-Wl,'
8848 lt_prog_compiler_pic='-fpic'
8849 lt_prog_compiler_static='-Bstatic'
8850 ;;
8851 esac
8852 ;;
8853 esac
8854 ;;
8855
8856 newsos6)
8857 lt_prog_compiler_pic='-KPIC'
8858 lt_prog_compiler_static='-Bstatic'
8859 ;;
8860
8861 *nto* | *qnx*)
8862 # QNX uses GNU C++, but need to define -shared option too, otherwise
8863 # it will coredump.
8864 lt_prog_compiler_pic='-fPIC -shared'
8865 ;;
8866
8867 osf3* | osf4* | osf5*)
8868 lt_prog_compiler_wl='-Wl,'
8869 # All OSF/1 code is PIC.
8870 lt_prog_compiler_static='-non_shared'
8871 ;;
8872
8873 rdos*)
8874 lt_prog_compiler_static='-non_shared'
8875 ;;
8876
8877 solaris*)
8878 lt_prog_compiler_pic='-KPIC'
8879 lt_prog_compiler_static='-Bstatic'
8880 case $cc_basename in
8881 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8882 lt_prog_compiler_wl='-Qoption ld ';;
8883 *)
8884 lt_prog_compiler_wl='-Wl,';;
8885 esac
8886 ;;
8887
8888 sunos4*)
8889 lt_prog_compiler_wl='-Qoption ld '
8890 lt_prog_compiler_pic='-PIC'
8891 lt_prog_compiler_static='-Bstatic'
8892 ;;
8893
8894 sysv4 | sysv4.2uw2* | sysv4.3*)
8895 lt_prog_compiler_wl='-Wl,'
8896 lt_prog_compiler_pic='-KPIC'
8897 lt_prog_compiler_static='-Bstatic'
8898 ;;
8899
8900 sysv4*MP*)
8901 if test -d /usr/nec ;then
8902 lt_prog_compiler_pic='-Kconform_pic'
8903 lt_prog_compiler_static='-Bstatic'
8904 fi
8905 ;;
8906
8907 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8908 lt_prog_compiler_wl='-Wl,'
8909 lt_prog_compiler_pic='-KPIC'
8910 lt_prog_compiler_static='-Bstatic'
8911 ;;
8912
8913 unicos*)
8914 lt_prog_compiler_wl='-Wl,'
8915 lt_prog_compiler_can_build_shared=no
8916 ;;
8917
8918 uts4*)
8919 lt_prog_compiler_pic='-pic'
8920 lt_prog_compiler_static='-Bstatic'
8921 ;;
8922
8923 *)
8924 lt_prog_compiler_can_build_shared=no
8925 ;;
8926 esac
8927 fi
8928
8929 case $host_os in
8930 # For platforms which do not support PIC, -DPIC is meaningless:
8931 *djgpp*)
8932 lt_prog_compiler_pic=
8933 ;;
8934 *)
8935 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8936 ;;
8937 esac
8938
8939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8940 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8941 if ${lt_cv_prog_compiler_pic+:} false; then :
8942 $as_echo_n "(cached) " >&6
8943 else
8944 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8945 fi
8946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8947 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8948 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8949
8950 #
8951 # Check to make sure the PIC flag actually works.
8952 #
8953 if test -n "$lt_prog_compiler_pic"; then
8954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8955 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8956 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8957 $as_echo_n "(cached) " >&6
8958 else
8959 lt_cv_prog_compiler_pic_works=no
8960 ac_outfile=conftest.$ac_objext
8961 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8962 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8963 # Insert the option either (1) after the last *FLAGS variable, or
8964 # (2) before a word containing "conftest.", or (3) at the end.
8965 # Note that $ac_compile itself does not contain backslashes and begins
8966 # with a dollar sign (not a hyphen), so the echo should work correctly.
8967 # The option is referenced via a variable to avoid confusing sed.
8968 lt_compile=`echo "$ac_compile" | $SED \
8969 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8970 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8971 -e 's:$: $lt_compiler_flag:'`
8972 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8973 (eval "$lt_compile" 2>conftest.err)
8974 ac_status=$?
8975 cat conftest.err >&5
8976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8977 if (exit $ac_status) && test -s "$ac_outfile"; then
8978 # The compiler can only warn and ignore the option if not recognized
8979 # So say no if there are warnings other than the usual output.
8980 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8981 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8982 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8983 lt_cv_prog_compiler_pic_works=yes
8984 fi
8985 fi
8986 $RM conftest*
8987
8988 fi
8989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8990 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8991
8992 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8993 case $lt_prog_compiler_pic in
8994 "" | " "*) ;;
8995 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8996 esac
8997 else
8998 lt_prog_compiler_pic=
8999 lt_prog_compiler_can_build_shared=no
9000 fi
9001
9002 fi
9003
9004
9005
9006
9007
9008
9009
9010
9011
9012
9013
9014 #
9015 # Check to make sure the static flag actually works.
9016 #
9017 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9019 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9020 if ${lt_cv_prog_compiler_static_works+:} false; then :
9021 $as_echo_n "(cached) " >&6
9022 else
9023 lt_cv_prog_compiler_static_works=no
9024 save_LDFLAGS="$LDFLAGS"
9025 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9026 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9027 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9028 # The linker can only warn and ignore the option if not recognized
9029 # So say no if there are warnings
9030 if test -s conftest.err; then
9031 # Append any errors to the config.log.
9032 cat conftest.err 1>&5
9033 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9034 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9035 if diff conftest.exp conftest.er2 >/dev/null; then
9036 lt_cv_prog_compiler_static_works=yes
9037 fi
9038 else
9039 lt_cv_prog_compiler_static_works=yes
9040 fi
9041 fi
9042 $RM -r conftest*
9043 LDFLAGS="$save_LDFLAGS"
9044
9045 fi
9046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9047 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9048
9049 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9050 :
9051 else
9052 lt_prog_compiler_static=
9053 fi
9054
9055
9056
9057
9058
9059
9060
9061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9062 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9063 if ${lt_cv_prog_compiler_c_o+:} false; then :
9064 $as_echo_n "(cached) " >&6
9065 else
9066 lt_cv_prog_compiler_c_o=no
9067 $RM -r conftest 2>/dev/null
9068 mkdir conftest
9069 cd conftest
9070 mkdir out
9071 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9072
9073 lt_compiler_flag="-o out/conftest2.$ac_objext"
9074 # Insert the option either (1) after the last *FLAGS variable, or
9075 # (2) before a word containing "conftest.", or (3) at the end.
9076 # Note that $ac_compile itself does not contain backslashes and begins
9077 # with a dollar sign (not a hyphen), so the echo should work correctly.
9078 lt_compile=`echo "$ac_compile" | $SED \
9079 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9080 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9081 -e 's:$: $lt_compiler_flag:'`
9082 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9083 (eval "$lt_compile" 2>out/conftest.err)
9084 ac_status=$?
9085 cat out/conftest.err >&5
9086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9087 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9088 then
9089 # The compiler can only warn and ignore the option if not recognized
9090 # So say no if there are warnings
9091 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9092 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9093 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9094 lt_cv_prog_compiler_c_o=yes
9095 fi
9096 fi
9097 chmod u+w . 2>&5
9098 $RM conftest*
9099 # SGI C++ compiler will create directory out/ii_files/ for
9100 # template instantiation
9101 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9102 $RM out/* && rmdir out
9103 cd ..
9104 $RM -r conftest
9105 $RM conftest*
9106
9107 fi
9108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9109 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9110
9111
9112
9113
9114
9115
9116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9117 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9118 if ${lt_cv_prog_compiler_c_o+:} false; then :
9119 $as_echo_n "(cached) " >&6
9120 else
9121 lt_cv_prog_compiler_c_o=no
9122 $RM -r conftest 2>/dev/null
9123 mkdir conftest
9124 cd conftest
9125 mkdir out
9126 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9127
9128 lt_compiler_flag="-o out/conftest2.$ac_objext"
9129 # Insert the option either (1) after the last *FLAGS variable, or
9130 # (2) before a word containing "conftest.", or (3) at the end.
9131 # Note that $ac_compile itself does not contain backslashes and begins
9132 # with a dollar sign (not a hyphen), so the echo should work correctly.
9133 lt_compile=`echo "$ac_compile" | $SED \
9134 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9135 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9136 -e 's:$: $lt_compiler_flag:'`
9137 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9138 (eval "$lt_compile" 2>out/conftest.err)
9139 ac_status=$?
9140 cat out/conftest.err >&5
9141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9142 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9143 then
9144 # The compiler can only warn and ignore the option if not recognized
9145 # So say no if there are warnings
9146 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9147 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9148 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9149 lt_cv_prog_compiler_c_o=yes
9150 fi
9151 fi
9152 chmod u+w . 2>&5
9153 $RM conftest*
9154 # SGI C++ compiler will create directory out/ii_files/ for
9155 # template instantiation
9156 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9157 $RM out/* && rmdir out
9158 cd ..
9159 $RM -r conftest
9160 $RM conftest*
9161
9162 fi
9163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9164 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9165
9166
9167
9168
9169 hard_links="nottested"
9170 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9171 # do not overwrite the value of need_locks provided by the user
9172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9173 $as_echo_n "checking if we can lock with hard links... " >&6; }
9174 hard_links=yes
9175 $RM conftest*
9176 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9177 touch conftest.a
9178 ln conftest.a conftest.b 2>&5 || hard_links=no
9179 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9181 $as_echo "$hard_links" >&6; }
9182 if test "$hard_links" = no; then
9183 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9184 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9185 need_locks=warn
9186 fi
9187 else
9188 need_locks=no
9189 fi
9190
9191
9192
9193
9194
9195
9196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9197 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9198
9199 runpath_var=
9200 allow_undefined_flag=
9201 always_export_symbols=no
9202 archive_cmds=
9203 archive_expsym_cmds=
9204 compiler_needs_object=no
9205 enable_shared_with_static_runtimes=no
9206 export_dynamic_flag_spec=
9207 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9208 hardcode_automatic=no
9209 hardcode_direct=no
9210 hardcode_direct_absolute=no
9211 hardcode_libdir_flag_spec=
9212 hardcode_libdir_separator=
9213 hardcode_minus_L=no
9214 hardcode_shlibpath_var=unsupported
9215 inherit_rpath=no
9216 link_all_deplibs=unknown
9217 module_cmds=
9218 module_expsym_cmds=
9219 old_archive_from_new_cmds=
9220 old_archive_from_expsyms_cmds=
9221 thread_safe_flag_spec=
9222 whole_archive_flag_spec=
9223 # include_expsyms should be a list of space-separated symbols to be *always*
9224 # included in the symbol list
9225 include_expsyms=
9226 # exclude_expsyms can be an extended regexp of symbols to exclude
9227 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9228 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9229 # as well as any symbol that contains `d'.
9230 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9231 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9232 # platforms (ab)use it in PIC code, but their linkers get confused if
9233 # the symbol is explicitly referenced. Since portable code cannot
9234 # rely on this symbol name, it's probably fine to never include it in
9235 # preloaded symbol tables.
9236 # Exclude shared library initialization/finalization symbols.
9237 extract_expsyms_cmds=
9238
9239 case $host_os in
9240 cygwin* | mingw* | pw32* | cegcc*)
9241 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9242 # When not using gcc, we currently assume that we are using
9243 # Microsoft Visual C++.
9244 if test "$GCC" != yes; then
9245 with_gnu_ld=no
9246 fi
9247 ;;
9248 interix*)
9249 # we just hope/assume this is gcc and not c89 (= MSVC++)
9250 with_gnu_ld=yes
9251 ;;
9252 openbsd*)
9253 with_gnu_ld=no
9254 ;;
9255 esac
9256
9257 ld_shlibs=yes
9258
9259 # On some targets, GNU ld is compatible enough with the native linker
9260 # that we're better off using the native interface for both.
9261 lt_use_gnu_ld_interface=no
9262 if test "$with_gnu_ld" = yes; then
9263 case $host_os in
9264 aix*)
9265 # The AIX port of GNU ld has always aspired to compatibility
9266 # with the native linker. However, as the warning in the GNU ld
9267 # block says, versions before 2.19.5* couldn't really create working
9268 # shared libraries, regardless of the interface used.
9269 case `$LD -v 2>&1` in
9270 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9271 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9272 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9273 *)
9274 lt_use_gnu_ld_interface=yes
9275 ;;
9276 esac
9277 ;;
9278 *)
9279 lt_use_gnu_ld_interface=yes
9280 ;;
9281 esac
9282 fi
9283
9284 if test "$lt_use_gnu_ld_interface" = yes; then
9285 # If archive_cmds runs LD, not CC, wlarc should be empty
9286 wlarc='${wl}'
9287
9288 # Set some defaults for GNU ld with shared library support. These
9289 # are reset later if shared libraries are not supported. Putting them
9290 # here allows them to be overridden if necessary.
9291 runpath_var=LD_RUN_PATH
9292 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9293 export_dynamic_flag_spec='${wl}--export-dynamic'
9294 # ancient GNU ld didn't support --whole-archive et. al.
9295 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9296 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9297 else
9298 whole_archive_flag_spec=
9299 fi
9300 supports_anon_versioning=no
9301 case `$LD -v 2>&1` in
9302 *GNU\ gold*) supports_anon_versioning=yes ;;
9303 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9304 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9305 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9306 *\ 2.11.*) ;; # other 2.11 versions
9307 *) supports_anon_versioning=yes ;;
9308 esac
9309
9310 # See if GNU ld supports shared libraries.
9311 case $host_os in
9312 aix[3-9]*)
9313 # On AIX/PPC, the GNU linker is very broken
9314 if test "$host_cpu" != ia64; then
9315 ld_shlibs=no
9316 cat <<_LT_EOF 1>&2
9317
9318 *** Warning: the GNU linker, at least up to release 2.19, is reported
9319 *** to be unable to reliably create shared libraries on AIX.
9320 *** Therefore, libtool is disabling shared libraries support. If you
9321 *** really care for shared libraries, you may want to install binutils
9322 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9323 *** You will then need to restart the configuration process.
9324
9325 _LT_EOF
9326 fi
9327 ;;
9328
9329 amigaos*)
9330 case $host_cpu in
9331 powerpc)
9332 # see comment about AmigaOS4 .so support
9333 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9334 archive_expsym_cmds=''
9335 ;;
9336 m68k)
9337 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)'
9338 hardcode_libdir_flag_spec='-L$libdir'
9339 hardcode_minus_L=yes
9340 ;;
9341 esac
9342 ;;
9343
9344 beos*)
9345 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9346 allow_undefined_flag=unsupported
9347 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9348 # support --undefined. This deserves some investigation. FIXME
9349 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9350 else
9351 ld_shlibs=no
9352 fi
9353 ;;
9354
9355 cygwin* | mingw* | pw32* | cegcc*)
9356 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9357 # as there is no search path for DLLs.
9358 hardcode_libdir_flag_spec='-L$libdir'
9359 export_dynamic_flag_spec='${wl}--export-all-symbols'
9360 allow_undefined_flag=unsupported
9361 always_export_symbols=no
9362 enable_shared_with_static_runtimes=yes
9363 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'
9364 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9365
9366 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9367 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9368 # If the export-symbols file already is a .def file (1st line
9369 # is EXPORTS), use it as is; otherwise, prepend...
9370 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9371 cp $export_symbols $output_objdir/$soname.def;
9372 else
9373 echo EXPORTS > $output_objdir/$soname.def;
9374 cat $export_symbols >> $output_objdir/$soname.def;
9375 fi~
9376 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9377 else
9378 ld_shlibs=no
9379 fi
9380 ;;
9381
9382 haiku*)
9383 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9384 link_all_deplibs=yes
9385 ;;
9386
9387 interix[3-9]*)
9388 hardcode_direct=no
9389 hardcode_shlibpath_var=no
9390 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9391 export_dynamic_flag_spec='${wl}-E'
9392 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9393 # Instead, shared libraries are loaded at an image base (0x10000000 by
9394 # default) and relocated if they conflict, which is a slow very memory
9395 # consuming and fragmenting process. To avoid this, we pick a random,
9396 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9397 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9398 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9399 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'
9400 ;;
9401
9402 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9403 tmp_diet=no
9404 if test "$host_os" = linux-dietlibc; then
9405 case $cc_basename in
9406 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9407 esac
9408 fi
9409 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9410 && test "$tmp_diet" = no
9411 then
9412 tmp_addflag=' $pic_flag'
9413 tmp_sharedflag='-shared'
9414 case $cc_basename,$host_cpu in
9415 pgcc*) # Portland Group C compiler
9416 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'
9417 tmp_addflag=' $pic_flag'
9418 ;;
9419 pgf77* | pgf90* | pgf95* | pgfortran*)
9420 # Portland Group f77 and f90 compilers
9421 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'
9422 tmp_addflag=' $pic_flag -Mnomain' ;;
9423 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9424 tmp_addflag=' -i_dynamic' ;;
9425 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9426 tmp_addflag=' -i_dynamic -nofor_main' ;;
9427 ifc* | ifort*) # Intel Fortran compiler
9428 tmp_addflag=' -nofor_main' ;;
9429 lf95*) # Lahey Fortran 8.1
9430 whole_archive_flag_spec=
9431 tmp_sharedflag='--shared' ;;
9432 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9433 tmp_sharedflag='-qmkshrobj'
9434 tmp_addflag= ;;
9435 nvcc*) # Cuda Compiler Driver 2.2
9436 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'
9437 compiler_needs_object=yes
9438 ;;
9439 esac
9440 case `$CC -V 2>&1 | sed 5q` in
9441 *Sun\ C*) # Sun C 5.9
9442 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'
9443 compiler_needs_object=yes
9444 tmp_sharedflag='-G' ;;
9445 *Sun\ F*) # Sun Fortran 8.3
9446 tmp_sharedflag='-G' ;;
9447 esac
9448 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9449
9450 if test "x$supports_anon_versioning" = xyes; then
9451 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9452 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9453 echo "local: *; };" >> $output_objdir/$libname.ver~
9454 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9455 fi
9456
9457 case $cc_basename in
9458 xlf* | bgf* | bgxlf* | mpixlf*)
9459 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9460 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9461 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9462 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9463 if test "x$supports_anon_versioning" = xyes; then
9464 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9465 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9466 echo "local: *; };" >> $output_objdir/$libname.ver~
9467 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9468 fi
9469 ;;
9470 esac
9471 else
9472 ld_shlibs=no
9473 fi
9474 ;;
9475
9476 netbsd*)
9477 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9478 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9479 wlarc=
9480 else
9481 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9482 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9483 fi
9484 ;;
9485
9486 solaris*)
9487 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9488 ld_shlibs=no
9489 cat <<_LT_EOF 1>&2
9490
9491 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9492 *** create shared libraries on Solaris systems. Therefore, libtool
9493 *** is disabling shared libraries support. We urge you to upgrade GNU
9494 *** binutils to release 2.9.1 or newer. Another option is to modify
9495 *** your PATH or compiler configuration so that the native linker is
9496 *** used, and then restart.
9497
9498 _LT_EOF
9499 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9500 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9501 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9502 else
9503 ld_shlibs=no
9504 fi
9505 ;;
9506
9507 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9508 case `$LD -v 2>&1` in
9509 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9510 ld_shlibs=no
9511 cat <<_LT_EOF 1>&2
9512
9513 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9514 *** reliably create shared libraries on SCO systems. Therefore, libtool
9515 *** is disabling shared libraries support. We urge you to upgrade GNU
9516 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9517 *** your PATH or compiler configuration so that the native linker is
9518 *** used, and then restart.
9519
9520 _LT_EOF
9521 ;;
9522 *)
9523 # For security reasons, it is highly recommended that you always
9524 # use absolute paths for naming shared libraries, and exclude the
9525 # DT_RUNPATH tag from executables and libraries. But doing so
9526 # requires that you compile everything twice, which is a pain.
9527 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9528 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9529 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9530 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9531 else
9532 ld_shlibs=no
9533 fi
9534 ;;
9535 esac
9536 ;;
9537
9538 sunos4*)
9539 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9540 wlarc=
9541 hardcode_direct=yes
9542 hardcode_shlibpath_var=no
9543 ;;
9544
9545 *)
9546 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9547 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9548 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9549 else
9550 ld_shlibs=no
9551 fi
9552 ;;
9553 esac
9554
9555 if test "$ld_shlibs" = no; then
9556 runpath_var=
9557 hardcode_libdir_flag_spec=
9558 export_dynamic_flag_spec=
9559 whole_archive_flag_spec=
9560 fi
9561 else
9562 # PORTME fill in a description of your system's linker (not GNU ld)
9563 case $host_os in
9564 aix3*)
9565 allow_undefined_flag=unsupported
9566 always_export_symbols=yes
9567 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'
9568 # Note: this linker hardcodes the directories in LIBPATH if there
9569 # are no directories specified by -L.
9570 hardcode_minus_L=yes
9571 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9572 # Neither direct hardcoding nor static linking is supported with a
9573 # broken collect2.
9574 hardcode_direct=unsupported
9575 fi
9576 ;;
9577
9578 aix[4-9]*)
9579 if test "$host_cpu" = ia64; then
9580 # On IA64, the linker does run time linking by default, so we don't
9581 # have to do anything special.
9582 aix_use_runtimelinking=no
9583 exp_sym_flag='-Bexport'
9584 no_entry_flag=""
9585 else
9586 # If we're using GNU nm, then we don't want the "-C" option.
9587 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9588 # Also, AIX nm treats weak defined symbols like other global
9589 # defined symbols, whereas GNU nm marks them as "W".
9590 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9591 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'
9592 else
9593 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'
9594 fi
9595 aix_use_runtimelinking=no
9596
9597 # Test if we are trying to use run time linking or normal
9598 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9599 # need to do runtime linking.
9600 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9601 for ld_flag in $LDFLAGS; do
9602 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9603 aix_use_runtimelinking=yes
9604 break
9605 fi
9606 done
9607 ;;
9608 esac
9609
9610 exp_sym_flag='-bexport'
9611 no_entry_flag='-bnoentry'
9612 fi
9613
9614 # When large executables or shared objects are built, AIX ld can
9615 # have problems creating the table of contents. If linking a library
9616 # or program results in "error TOC overflow" add -mminimal-toc to
9617 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9618 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9619
9620 archive_cmds=''
9621 hardcode_direct=yes
9622 hardcode_direct_absolute=yes
9623 hardcode_libdir_separator=':'
9624 link_all_deplibs=yes
9625 file_list_spec='${wl}-f,'
9626
9627 if test "$GCC" = yes; then
9628 case $host_os in aix4.[012]|aix4.[012].*)
9629 # We only want to do this on AIX 4.2 and lower, the check
9630 # below for broken collect2 doesn't work under 4.3+
9631 collect2name=`${CC} -print-prog-name=collect2`
9632 if test -f "$collect2name" &&
9633 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9634 then
9635 # We have reworked collect2
9636 :
9637 else
9638 # We have old collect2
9639 hardcode_direct=unsupported
9640 # It fails to find uninstalled libraries when the uninstalled
9641 # path is not listed in the libpath. Setting hardcode_minus_L
9642 # to unsupported forces relinking
9643 hardcode_minus_L=yes
9644 hardcode_libdir_flag_spec='-L$libdir'
9645 hardcode_libdir_separator=
9646 fi
9647 ;;
9648 esac
9649 shared_flag='-shared'
9650 if test "$aix_use_runtimelinking" = yes; then
9651 shared_flag="$shared_flag "'${wl}-G'
9652 fi
9653 else
9654 # not using gcc
9655 if test "$host_cpu" = ia64; then
9656 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9657 # chokes on -Wl,-G. The following line is correct:
9658 shared_flag='-G'
9659 else
9660 if test "$aix_use_runtimelinking" = yes; then
9661 shared_flag='${wl}-G'
9662 else
9663 shared_flag='${wl}-bM:SRE'
9664 fi
9665 fi
9666 fi
9667
9668 export_dynamic_flag_spec='${wl}-bexpall'
9669 # It seems that -bexpall does not export symbols beginning with
9670 # underscore (_), so it is better to generate a list of symbols to export.
9671 always_export_symbols=yes
9672 if test "$aix_use_runtimelinking" = yes; then
9673 # Warning - without using the other runtime loading flags (-brtl),
9674 # -berok will link without error, but may produce a broken library.
9675 allow_undefined_flag='-berok'
9676 # Determine the default libpath from the value encoded in an
9677 # empty executable.
9678 if test "${lt_cv_aix_libpath+set}" = set; then
9679 aix_libpath=$lt_cv_aix_libpath
9680 else
9681 if ${lt_cv_aix_libpath_+:} false; then :
9682 $as_echo_n "(cached) " >&6
9683 else
9684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9685 /* end confdefs.h. */
9686
9687 int
9688 main ()
9689 {
9690
9691 ;
9692 return 0;
9693 }
9694 _ACEOF
9695 if ac_fn_c_try_link "$LINENO"; then :
9696
9697 lt_aix_libpath_sed='
9698 /Import File Strings/,/^$/ {
9699 /^0/ {
9700 s/^0 *\([^ ]*\) *$/\1/
9701 p
9702 }
9703 }'
9704 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9705 # Check for a 64-bit object if we didn't find anything.
9706 if test -z "$lt_cv_aix_libpath_"; then
9707 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9708 fi
9709 fi
9710 rm -f core conftest.err conftest.$ac_objext \
9711 conftest$ac_exeext conftest.$ac_ext
9712 if test -z "$lt_cv_aix_libpath_"; then
9713 lt_cv_aix_libpath_="/usr/lib:/lib"
9714 fi
9715
9716 fi
9717
9718 aix_libpath=$lt_cv_aix_libpath_
9719 fi
9720
9721 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9722 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"
9723 else
9724 if test "$host_cpu" = ia64; then
9725 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9726 allow_undefined_flag="-z nodefs"
9727 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"
9728 else
9729 # Determine the default libpath from the value encoded in an
9730 # empty executable.
9731 if test "${lt_cv_aix_libpath+set}" = set; then
9732 aix_libpath=$lt_cv_aix_libpath
9733 else
9734 if ${lt_cv_aix_libpath_+:} false; then :
9735 $as_echo_n "(cached) " >&6
9736 else
9737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9738 /* end confdefs.h. */
9739
9740 int
9741 main ()
9742 {
9743
9744 ;
9745 return 0;
9746 }
9747 _ACEOF
9748 if ac_fn_c_try_link "$LINENO"; then :
9749
9750 lt_aix_libpath_sed='
9751 /Import File Strings/,/^$/ {
9752 /^0/ {
9753 s/^0 *\([^ ]*\) *$/\1/
9754 p
9755 }
9756 }'
9757 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9758 # Check for a 64-bit object if we didn't find anything.
9759 if test -z "$lt_cv_aix_libpath_"; then
9760 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9761 fi
9762 fi
9763 rm -f core conftest.err conftest.$ac_objext \
9764 conftest$ac_exeext conftest.$ac_ext
9765 if test -z "$lt_cv_aix_libpath_"; then
9766 lt_cv_aix_libpath_="/usr/lib:/lib"
9767 fi
9768
9769 fi
9770
9771 aix_libpath=$lt_cv_aix_libpath_
9772 fi
9773
9774 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9775 # Warning - without using the other run time loading flags,
9776 # -berok will link without error, but may produce a broken library.
9777 no_undefined_flag=' ${wl}-bernotok'
9778 allow_undefined_flag=' ${wl}-berok'
9779 if test "$with_gnu_ld" = yes; then
9780 # We only use this code for GNU lds that support --whole-archive.
9781 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9782 else
9783 # Exported symbols can be pulled into shared objects from archives
9784 whole_archive_flag_spec='$convenience'
9785 fi
9786 archive_cmds_need_lc=yes
9787 # This is similar to how AIX traditionally builds its shared libraries.
9788 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'
9789 fi
9790 fi
9791 ;;
9792
9793 amigaos*)
9794 case $host_cpu in
9795 powerpc)
9796 # see comment about AmigaOS4 .so support
9797 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9798 archive_expsym_cmds=''
9799 ;;
9800 m68k)
9801 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)'
9802 hardcode_libdir_flag_spec='-L$libdir'
9803 hardcode_minus_L=yes
9804 ;;
9805 esac
9806 ;;
9807
9808 bsdi[45]*)
9809 export_dynamic_flag_spec=-rdynamic
9810 ;;
9811
9812 cygwin* | mingw* | pw32* | cegcc*)
9813 # When not using gcc, we currently assume that we are using
9814 # Microsoft Visual C++.
9815 # hardcode_libdir_flag_spec is actually meaningless, as there is
9816 # no search path for DLLs.
9817 case $cc_basename in
9818 cl*)
9819 # Native MSVC
9820 hardcode_libdir_flag_spec=' '
9821 allow_undefined_flag=unsupported
9822 always_export_symbols=yes
9823 file_list_spec='@'
9824 # Tell ltmain to make .lib files, not .a files.
9825 libext=lib
9826 # Tell ltmain to make .dll files, not .so files.
9827 shrext_cmds=".dll"
9828 # FIXME: Setting linknames here is a bad hack.
9829 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9830 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9831 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9832 else
9833 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9834 fi~
9835 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9836 linknames='
9837 # The linker will not automatically build a static lib if we build a DLL.
9838 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9839 enable_shared_with_static_runtimes=yes
9840 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9841 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9842 # Don't use ranlib
9843 old_postinstall_cmds='chmod 644 $oldlib'
9844 postlink_cmds='lt_outputfile="@OUTPUT@"~
9845 lt_tool_outputfile="@TOOL_OUTPUT@"~
9846 case $lt_outputfile in
9847 *.exe|*.EXE) ;;
9848 *)
9849 lt_outputfile="$lt_outputfile.exe"
9850 lt_tool_outputfile="$lt_tool_outputfile.exe"
9851 ;;
9852 esac~
9853 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9854 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9855 $RM "$lt_outputfile.manifest";
9856 fi'
9857 ;;
9858 *)
9859 # Assume MSVC wrapper
9860 hardcode_libdir_flag_spec=' '
9861 allow_undefined_flag=unsupported
9862 # Tell ltmain to make .lib files, not .a files.
9863 libext=lib
9864 # Tell ltmain to make .dll files, not .so files.
9865 shrext_cmds=".dll"
9866 # FIXME: Setting linknames here is a bad hack.
9867 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9868 # The linker will automatically build a .lib file if we build a DLL.
9869 old_archive_from_new_cmds='true'
9870 # FIXME: Should let the user specify the lib program.
9871 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9872 enable_shared_with_static_runtimes=yes
9873 ;;
9874 esac
9875 ;;
9876
9877 darwin* | rhapsody*)
9878
9879
9880 archive_cmds_need_lc=no
9881 hardcode_direct=no
9882 hardcode_automatic=yes
9883 hardcode_shlibpath_var=unsupported
9884 if test "$lt_cv_ld_force_load" = "yes"; then
9885 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\"`'
9886
9887 else
9888 whole_archive_flag_spec=''
9889 fi
9890 link_all_deplibs=yes
9891 allow_undefined_flag="$_lt_dar_allow_undefined"
9892 case $cc_basename in
9893 ifort*) _lt_dar_can_shared=yes ;;
9894 *) _lt_dar_can_shared=$GCC ;;
9895 esac
9896 if test "$_lt_dar_can_shared" = "yes"; then
9897 output_verbose_link_cmd=func_echo_all
9898 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9899 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9900 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}"
9901 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}"
9902
9903 else
9904 ld_shlibs=no
9905 fi
9906
9907 ;;
9908
9909 dgux*)
9910 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9911 hardcode_libdir_flag_spec='-L$libdir'
9912 hardcode_shlibpath_var=no
9913 ;;
9914
9915 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9916 # support. Future versions do this automatically, but an explicit c++rt0.o
9917 # does not break anything, and helps significantly (at the cost of a little
9918 # extra space).
9919 freebsd2.2*)
9920 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9921 hardcode_libdir_flag_spec='-R$libdir'
9922 hardcode_direct=yes
9923 hardcode_shlibpath_var=no
9924 ;;
9925
9926 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9927 freebsd2.*)
9928 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9929 hardcode_direct=yes
9930 hardcode_minus_L=yes
9931 hardcode_shlibpath_var=no
9932 ;;
9933
9934 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9935 freebsd* | dragonfly*)
9936 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9937 hardcode_libdir_flag_spec='-R$libdir'
9938 hardcode_direct=yes
9939 hardcode_shlibpath_var=no
9940 ;;
9941
9942 hpux9*)
9943 if test "$GCC" = yes; then
9944 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'
9945 else
9946 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'
9947 fi
9948 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9949 hardcode_libdir_separator=:
9950 hardcode_direct=yes
9951
9952 # hardcode_minus_L: Not really in the search PATH,
9953 # but as the default location of the library.
9954 hardcode_minus_L=yes
9955 export_dynamic_flag_spec='${wl}-E'
9956 ;;
9957
9958 hpux10*)
9959 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9960 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9961 else
9962 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9963 fi
9964 if test "$with_gnu_ld" = no; then
9965 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9966 hardcode_libdir_separator=:
9967 hardcode_direct=yes
9968 hardcode_direct_absolute=yes
9969 export_dynamic_flag_spec='${wl}-E'
9970 # hardcode_minus_L: Not really in the search PATH,
9971 # but as the default location of the library.
9972 hardcode_minus_L=yes
9973 fi
9974 ;;
9975
9976 hpux11*)
9977 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9978 case $host_cpu in
9979 hppa*64*)
9980 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9981 ;;
9982 ia64*)
9983 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9984 ;;
9985 *)
9986 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9987 ;;
9988 esac
9989 else
9990 case $host_cpu in
9991 hppa*64*)
9992 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9993 ;;
9994 ia64*)
9995 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9996 ;;
9997 *)
9998
9999 # Older versions of the 11.00 compiler do not understand -b yet
10000 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10002 $as_echo_n "checking if $CC understands -b... " >&6; }
10003 if ${lt_cv_prog_compiler__b+:} false; then :
10004 $as_echo_n "(cached) " >&6
10005 else
10006 lt_cv_prog_compiler__b=no
10007 save_LDFLAGS="$LDFLAGS"
10008 LDFLAGS="$LDFLAGS -b"
10009 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10010 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10011 # The linker can only warn and ignore the option if not recognized
10012 # So say no if there are warnings
10013 if test -s conftest.err; then
10014 # Append any errors to the config.log.
10015 cat conftest.err 1>&5
10016 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10017 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10018 if diff conftest.exp conftest.er2 >/dev/null; then
10019 lt_cv_prog_compiler__b=yes
10020 fi
10021 else
10022 lt_cv_prog_compiler__b=yes
10023 fi
10024 fi
10025 $RM -r conftest*
10026 LDFLAGS="$save_LDFLAGS"
10027
10028 fi
10029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10030 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10031
10032 if test x"$lt_cv_prog_compiler__b" = xyes; then
10033 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10034 else
10035 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10036 fi
10037
10038 ;;
10039 esac
10040 fi
10041 if test "$with_gnu_ld" = no; then
10042 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10043 hardcode_libdir_separator=:
10044
10045 case $host_cpu in
10046 hppa*64*|ia64*)
10047 hardcode_direct=no
10048 hardcode_shlibpath_var=no
10049 ;;
10050 *)
10051 hardcode_direct=yes
10052 hardcode_direct_absolute=yes
10053 export_dynamic_flag_spec='${wl}-E'
10054
10055 # hardcode_minus_L: Not really in the search PATH,
10056 # but as the default location of the library.
10057 hardcode_minus_L=yes
10058 ;;
10059 esac
10060 fi
10061 ;;
10062
10063 irix5* | irix6* | nonstopux*)
10064 if test "$GCC" = yes; then
10065 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'
10066 # Try to use the -exported_symbol ld option, if it does not
10067 # work, assume that -exports_file does not work either and
10068 # implicitly export all symbols.
10069 # This should be the same for all languages, so no per-tag cache variable.
10070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10071 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10072 if ${lt_cv_irix_exported_symbol+:} false; then :
10073 $as_echo_n "(cached) " >&6
10074 else
10075 save_LDFLAGS="$LDFLAGS"
10076 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10078 /* end confdefs.h. */
10079 int foo (void) { return 0; }
10080 _ACEOF
10081 if ac_fn_c_try_link "$LINENO"; then :
10082 lt_cv_irix_exported_symbol=yes
10083 else
10084 lt_cv_irix_exported_symbol=no
10085 fi
10086 rm -f core conftest.err conftest.$ac_objext \
10087 conftest$ac_exeext conftest.$ac_ext
10088 LDFLAGS="$save_LDFLAGS"
10089 fi
10090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10091 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10092 if test "$lt_cv_irix_exported_symbol" = yes; then
10093 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'
10094 fi
10095 else
10096 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'
10097 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'
10098 fi
10099 archive_cmds_need_lc='no'
10100 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10101 hardcode_libdir_separator=:
10102 inherit_rpath=yes
10103 link_all_deplibs=yes
10104 ;;
10105
10106 netbsd*)
10107 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10108 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10109 else
10110 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10111 fi
10112 hardcode_libdir_flag_spec='-R$libdir'
10113 hardcode_direct=yes
10114 hardcode_shlibpath_var=no
10115 ;;
10116
10117 newsos6)
10118 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10119 hardcode_direct=yes
10120 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10121 hardcode_libdir_separator=:
10122 hardcode_shlibpath_var=no
10123 ;;
10124
10125 *nto* | *qnx*)
10126 ;;
10127
10128 openbsd*)
10129 if test -f /usr/libexec/ld.so; then
10130 hardcode_direct=yes
10131 hardcode_shlibpath_var=no
10132 hardcode_direct_absolute=yes
10133 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10134 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10135 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10136 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10137 export_dynamic_flag_spec='${wl}-E'
10138 else
10139 case $host_os in
10140 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10141 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10142 hardcode_libdir_flag_spec='-R$libdir'
10143 ;;
10144 *)
10145 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10146 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10147 ;;
10148 esac
10149 fi
10150 else
10151 ld_shlibs=no
10152 fi
10153 ;;
10154
10155 os2*)
10156 hardcode_libdir_flag_spec='-L$libdir'
10157 hardcode_minus_L=yes
10158 allow_undefined_flag=unsupported
10159 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'
10160 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10161 ;;
10162
10163 osf3*)
10164 if test "$GCC" = yes; then
10165 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10166 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'
10167 else
10168 allow_undefined_flag=' -expect_unresolved \*'
10169 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'
10170 fi
10171 archive_cmds_need_lc='no'
10172 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10173 hardcode_libdir_separator=:
10174 ;;
10175
10176 osf4* | osf5*) # as osf3* with the addition of -msym flag
10177 if test "$GCC" = yes; then
10178 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10179 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'
10180 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10181 else
10182 allow_undefined_flag=' -expect_unresolved \*'
10183 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'
10184 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~
10185 $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'
10186
10187 # Both c and cxx compiler support -rpath directly
10188 hardcode_libdir_flag_spec='-rpath $libdir'
10189 fi
10190 archive_cmds_need_lc='no'
10191 hardcode_libdir_separator=:
10192 ;;
10193
10194 solaris*)
10195 no_undefined_flag=' -z defs'
10196 if test "$GCC" = yes; then
10197 wlarc='${wl}'
10198 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10199 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10200 $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'
10201 else
10202 case `$CC -V 2>&1` in
10203 *"Compilers 5.0"*)
10204 wlarc=''
10205 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10206 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10207 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10208 ;;
10209 *)
10210 wlarc='${wl}'
10211 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10212 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10213 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10214 ;;
10215 esac
10216 fi
10217 hardcode_libdir_flag_spec='-R$libdir'
10218 hardcode_shlibpath_var=no
10219 case $host_os in
10220 solaris2.[0-5] | solaris2.[0-5].*) ;;
10221 *)
10222 # The compiler driver will combine and reorder linker options,
10223 # but understands `-z linker_flag'. GCC discards it without `$wl',
10224 # but is careful enough not to reorder.
10225 # Supported since Solaris 2.6 (maybe 2.5.1?)
10226 if test "$GCC" = yes; then
10227 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10228 else
10229 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10230 fi
10231 ;;
10232 esac
10233 link_all_deplibs=yes
10234 ;;
10235
10236 sunos4*)
10237 if test "x$host_vendor" = xsequent; then
10238 # Use $CC to link under sequent, because it throws in some extra .o
10239 # files that make .init and .fini sections work.
10240 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10241 else
10242 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10243 fi
10244 hardcode_libdir_flag_spec='-L$libdir'
10245 hardcode_direct=yes
10246 hardcode_minus_L=yes
10247 hardcode_shlibpath_var=no
10248 ;;
10249
10250 sysv4)
10251 case $host_vendor in
10252 sni)
10253 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10254 hardcode_direct=yes # is this really true???
10255 ;;
10256 siemens)
10257 ## LD is ld it makes a PLAMLIB
10258 ## CC just makes a GrossModule.
10259 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10260 reload_cmds='$CC -r -o $output$reload_objs'
10261 hardcode_direct=no
10262 ;;
10263 motorola)
10264 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10265 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10266 ;;
10267 esac
10268 runpath_var='LD_RUN_PATH'
10269 hardcode_shlibpath_var=no
10270 ;;
10271
10272 sysv4.3*)
10273 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10274 hardcode_shlibpath_var=no
10275 export_dynamic_flag_spec='-Bexport'
10276 ;;
10277
10278 sysv4*MP*)
10279 if test -d /usr/nec; then
10280 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10281 hardcode_shlibpath_var=no
10282 runpath_var=LD_RUN_PATH
10283 hardcode_runpath_var=yes
10284 ld_shlibs=yes
10285 fi
10286 ;;
10287
10288 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10289 no_undefined_flag='${wl}-z,text'
10290 archive_cmds_need_lc=no
10291 hardcode_shlibpath_var=no
10292 runpath_var='LD_RUN_PATH'
10293
10294 if test "$GCC" = yes; then
10295 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10296 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10297 else
10298 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10299 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10300 fi
10301 ;;
10302
10303 sysv5* | sco3.2v5* | sco5v6*)
10304 # Note: We can NOT use -z defs as we might desire, because we do not
10305 # link with -lc, and that would cause any symbols used from libc to
10306 # always be unresolved, which means just about no library would
10307 # ever link correctly. If we're not using GNU ld we use -z text
10308 # though, which does catch some bad symbols but isn't as heavy-handed
10309 # as -z defs.
10310 no_undefined_flag='${wl}-z,text'
10311 allow_undefined_flag='${wl}-z,nodefs'
10312 archive_cmds_need_lc=no
10313 hardcode_shlibpath_var=no
10314 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10315 hardcode_libdir_separator=':'
10316 link_all_deplibs=yes
10317 export_dynamic_flag_spec='${wl}-Bexport'
10318 runpath_var='LD_RUN_PATH'
10319
10320 if test "$GCC" = yes; then
10321 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10322 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10323 else
10324 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10325 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10326 fi
10327 ;;
10328
10329 uts4*)
10330 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10331 hardcode_libdir_flag_spec='-L$libdir'
10332 hardcode_shlibpath_var=no
10333 ;;
10334
10335 *)
10336 ld_shlibs=no
10337 ;;
10338 esac
10339
10340 if test x$host_vendor = xsni; then
10341 case $host in
10342 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10343 export_dynamic_flag_spec='${wl}-Blargedynsym'
10344 ;;
10345 esac
10346 fi
10347 fi
10348
10349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10350 $as_echo "$ld_shlibs" >&6; }
10351 test "$ld_shlibs" = no && can_build_shared=no
10352
10353 with_gnu_ld=$with_gnu_ld
10354
10355
10356
10357
10358
10359
10360
10361
10362
10363
10364
10365
10366
10367
10368
10369 #
10370 # Do we need to explicitly link libc?
10371 #
10372 case "x$archive_cmds_need_lc" in
10373 x|xyes)
10374 # Assume -lc should be added
10375 archive_cmds_need_lc=yes
10376
10377 if test "$enable_shared" = yes && test "$GCC" = yes; then
10378 case $archive_cmds in
10379 *'~'*)
10380 # FIXME: we may have to deal with multi-command sequences.
10381 ;;
10382 '$CC '*)
10383 # Test whether the compiler implicitly links with -lc since on some
10384 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10385 # to ld, don't add -lc before -lgcc.
10386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10387 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10388 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10389 $as_echo_n "(cached) " >&6
10390 else
10391 $RM conftest*
10392 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10393
10394 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10395 (eval $ac_compile) 2>&5
10396 ac_status=$?
10397 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10398 test $ac_status = 0; } 2>conftest.err; then
10399 soname=conftest
10400 lib=conftest
10401 libobjs=conftest.$ac_objext
10402 deplibs=
10403 wl=$lt_prog_compiler_wl
10404 pic_flag=$lt_prog_compiler_pic
10405 compiler_flags=-v
10406 linker_flags=-v
10407 verstring=
10408 output_objdir=.
10409 libname=conftest
10410 lt_save_allow_undefined_flag=$allow_undefined_flag
10411 allow_undefined_flag=
10412 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10413 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10414 ac_status=$?
10415 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10416 test $ac_status = 0; }
10417 then
10418 lt_cv_archive_cmds_need_lc=no
10419 else
10420 lt_cv_archive_cmds_need_lc=yes
10421 fi
10422 allow_undefined_flag=$lt_save_allow_undefined_flag
10423 else
10424 cat conftest.err 1>&5
10425 fi
10426 $RM conftest*
10427
10428 fi
10429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10430 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10431 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10432 ;;
10433 esac
10434 fi
10435 ;;
10436 esac
10437
10438
10439
10440
10441
10442
10443
10444
10445
10446
10447
10448
10449
10450
10451
10452
10453
10454
10455
10456
10457
10458
10459
10460
10461
10462
10463
10464
10465
10466
10467
10468
10469
10470
10471
10472
10473
10474
10475
10476
10477
10478
10479
10480
10481
10482
10483
10484
10485
10486
10487
10488
10489
10490
10491
10492
10493
10494
10495
10496
10497
10498
10499
10500
10501
10502
10503
10504
10505
10506
10507
10508
10509
10510
10511
10512
10513
10514
10515
10516
10517
10518
10519
10520
10521
10522
10523
10524
10525
10526
10527
10528
10529
10530
10531
10532
10533
10534
10535
10536
10537
10538
10539
10540
10541
10542
10543
10544
10545
10546
10547
10548
10549
10550
10551
10552
10553
10554
10555
10556
10557
10558
10559
10560
10561
10562
10563
10564
10565
10566
10567
10568
10569
10570
10571
10572
10573
10574
10575
10576
10577
10578
10579
10580
10581
10582
10583
10584
10585
10586
10587
10588
10589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10590 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10591
10592 if test "$GCC" = yes; then
10593 case $host_os in
10594 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10595 *) lt_awk_arg="/^libraries:/" ;;
10596 esac
10597 case $host_os in
10598 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10599 *) lt_sed_strip_eq="s,=/,/,g" ;;
10600 esac
10601 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10602 case $lt_search_path_spec in
10603 *\;*)
10604 # if the path contains ";" then we assume it to be the separator
10605 # otherwise default to the standard path separator (i.e. ":") - it is
10606 # assumed that no part of a normal pathname contains ";" but that should
10607 # okay in the real world where ";" in dirpaths is itself problematic.
10608 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10609 ;;
10610 *)
10611 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10612 ;;
10613 esac
10614 # Ok, now we have the path, separated by spaces, we can step through it
10615 # and add multilib dir if necessary.
10616 lt_tmp_lt_search_path_spec=
10617 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10618 for lt_sys_path in $lt_search_path_spec; do
10619 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10620 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10621 else
10622 test -d "$lt_sys_path" && \
10623 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10624 fi
10625 done
10626 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10627 BEGIN {RS=" "; FS="/|\n";} {
10628 lt_foo="";
10629 lt_count=0;
10630 for (lt_i = NF; lt_i > 0; lt_i--) {
10631 if ($lt_i != "" && $lt_i != ".") {
10632 if ($lt_i == "..") {
10633 lt_count++;
10634 } else {
10635 if (lt_count == 0) {
10636 lt_foo="/" $lt_i lt_foo;
10637 } else {
10638 lt_count--;
10639 }
10640 }
10641 }
10642 }
10643 if (lt_foo != "") { lt_freq[lt_foo]++; }
10644 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10645 }'`
10646 # AWK program above erroneously prepends '/' to C:/dos/paths
10647 # for these hosts.
10648 case $host_os in
10649 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10650 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10651 esac
10652 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10653 else
10654 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10655 fi
10656 library_names_spec=
10657 libname_spec='lib$name'
10658 soname_spec=
10659 shrext_cmds=".so"
10660 postinstall_cmds=
10661 postuninstall_cmds=
10662 finish_cmds=
10663 finish_eval=
10664 shlibpath_var=
10665 shlibpath_overrides_runpath=unknown
10666 version_type=none
10667 dynamic_linker="$host_os ld.so"
10668 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10669 need_lib_prefix=unknown
10670 hardcode_into_libs=no
10671
10672 # when you set need_version to no, make sure it does not cause -set_version
10673 # flags to be left without arguments
10674 need_version=unknown
10675
10676 case $host_os in
10677 aix3*)
10678 version_type=linux # correct to gnu/linux during the next big refactor
10679 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10680 shlibpath_var=LIBPATH
10681
10682 # AIX 3 has no versioning support, so we append a major version to the name.
10683 soname_spec='${libname}${release}${shared_ext}$major'
10684 ;;
10685
10686 aix[4-9]*)
10687 version_type=linux # correct to gnu/linux during the next big refactor
10688 need_lib_prefix=no
10689 need_version=no
10690 hardcode_into_libs=yes
10691 if test "$host_cpu" = ia64; then
10692 # AIX 5 supports IA64
10693 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10694 shlibpath_var=LD_LIBRARY_PATH
10695 else
10696 # With GCC up to 2.95.x, collect2 would create an import file
10697 # for dependence libraries. The import file would start with
10698 # the line `#! .'. This would cause the generated library to
10699 # depend on `.', always an invalid library. This was fixed in
10700 # development snapshots of GCC prior to 3.0.
10701 case $host_os in
10702 aix4 | aix4.[01] | aix4.[01].*)
10703 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10704 echo ' yes '
10705 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10706 :
10707 else
10708 can_build_shared=no
10709 fi
10710 ;;
10711 esac
10712 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10713 # soname into executable. Probably we can add versioning support to
10714 # collect2, so additional links can be useful in future.
10715 if test "$aix_use_runtimelinking" = yes; then
10716 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10717 # instead of lib<name>.a to let people know that these are not
10718 # typical AIX shared libraries.
10719 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10720 else
10721 # We preserve .a as extension for shared libraries through AIX4.2
10722 # and later when we are not doing run time linking.
10723 library_names_spec='${libname}${release}.a $libname.a'
10724 soname_spec='${libname}${release}${shared_ext}$major'
10725 fi
10726 shlibpath_var=LIBPATH
10727 fi
10728 ;;
10729
10730 amigaos*)
10731 case $host_cpu in
10732 powerpc)
10733 # Since July 2007 AmigaOS4 officially supports .so libraries.
10734 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10735 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10736 ;;
10737 m68k)
10738 library_names_spec='$libname.ixlibrary $libname.a'
10739 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10740 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'
10741 ;;
10742 esac
10743 ;;
10744
10745 beos*)
10746 library_names_spec='${libname}${shared_ext}'
10747 dynamic_linker="$host_os ld.so"
10748 shlibpath_var=LIBRARY_PATH
10749 ;;
10750
10751 bsdi[45]*)
10752 version_type=linux # correct to gnu/linux during the next big refactor
10753 need_version=no
10754 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10755 soname_spec='${libname}${release}${shared_ext}$major'
10756 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10757 shlibpath_var=LD_LIBRARY_PATH
10758 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10759 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10760 # the default ld.so.conf also contains /usr/contrib/lib and
10761 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10762 # libtool to hard-code these into programs
10763 ;;
10764
10765 cygwin* | mingw* | pw32* | cegcc*)
10766 version_type=windows
10767 shrext_cmds=".dll"
10768 need_version=no
10769 need_lib_prefix=no
10770
10771 case $GCC,$cc_basename in
10772 yes,*)
10773 # gcc
10774 library_names_spec='$libname.dll.a'
10775 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10776 postinstall_cmds='base_file=`basename \${file}`~
10777 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10778 dldir=$destdir/`dirname \$dlpath`~
10779 test -d \$dldir || mkdir -p \$dldir~
10780 $install_prog $dir/$dlname \$dldir/$dlname~
10781 chmod a+x \$dldir/$dlname~
10782 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10783 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10784 fi'
10785 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10786 dlpath=$dir/\$dldll~
10787 $RM \$dlpath'
10788 shlibpath_overrides_runpath=yes
10789
10790 case $host_os in
10791 cygwin*)
10792 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10793 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10794
10795 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10796 ;;
10797 mingw* | cegcc*)
10798 # MinGW DLLs use traditional 'lib' prefix
10799 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10800 ;;
10801 pw32*)
10802 # pw32 DLLs use 'pw' prefix rather than 'lib'
10803 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10804 ;;
10805 esac
10806 dynamic_linker='Win32 ld.exe'
10807 ;;
10808
10809 *,cl*)
10810 # Native MSVC
10811 libname_spec='$name'
10812 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10813 library_names_spec='${libname}.dll.lib'
10814
10815 case $build_os in
10816 mingw*)
10817 sys_lib_search_path_spec=
10818 lt_save_ifs=$IFS
10819 IFS=';'
10820 for lt_path in $LIB
10821 do
10822 IFS=$lt_save_ifs
10823 # Let DOS variable expansion print the short 8.3 style file name.
10824 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10825 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10826 done
10827 IFS=$lt_save_ifs
10828 # Convert to MSYS style.
10829 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10830 ;;
10831 cygwin*)
10832 # Convert to unix form, then to dos form, then back to unix form
10833 # but this time dos style (no spaces!) so that the unix form looks
10834 # like /cygdrive/c/PROGRA~1:/cygdr...
10835 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10836 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10837 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10838 ;;
10839 *)
10840 sys_lib_search_path_spec="$LIB"
10841 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10842 # It is most probably a Windows format PATH.
10843 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10844 else
10845 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10846 fi
10847 # FIXME: find the short name or the path components, as spaces are
10848 # common. (e.g. "Program Files" -> "PROGRA~1")
10849 ;;
10850 esac
10851
10852 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10853 postinstall_cmds='base_file=`basename \${file}`~
10854 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10855 dldir=$destdir/`dirname \$dlpath`~
10856 test -d \$dldir || mkdir -p \$dldir~
10857 $install_prog $dir/$dlname \$dldir/$dlname'
10858 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10859 dlpath=$dir/\$dldll~
10860 $RM \$dlpath'
10861 shlibpath_overrides_runpath=yes
10862 dynamic_linker='Win32 link.exe'
10863 ;;
10864
10865 *)
10866 # Assume MSVC wrapper
10867 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10868 dynamic_linker='Win32 ld.exe'
10869 ;;
10870 esac
10871 # FIXME: first we should search . and the directory the executable is in
10872 shlibpath_var=PATH
10873 ;;
10874
10875 darwin* | rhapsody*)
10876 dynamic_linker="$host_os dyld"
10877 version_type=darwin
10878 need_lib_prefix=no
10879 need_version=no
10880 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10881 soname_spec='${libname}${release}${major}$shared_ext'
10882 shlibpath_overrides_runpath=yes
10883 shlibpath_var=DYLD_LIBRARY_PATH
10884 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10885
10886 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10887 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10888 ;;
10889
10890 dgux*)
10891 version_type=linux # correct to gnu/linux during the next big refactor
10892 need_lib_prefix=no
10893 need_version=no
10894 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10895 soname_spec='${libname}${release}${shared_ext}$major'
10896 shlibpath_var=LD_LIBRARY_PATH
10897 ;;
10898
10899 freebsd* | dragonfly*)
10900 # DragonFly does not have aout. When/if they implement a new
10901 # versioning mechanism, adjust this.
10902 if test -x /usr/bin/objformat; then
10903 objformat=`/usr/bin/objformat`
10904 else
10905 case $host_os in
10906 freebsd[23].*) objformat=aout ;;
10907 *) objformat=elf ;;
10908 esac
10909 fi
10910 version_type=freebsd-$objformat
10911 case $version_type in
10912 freebsd-elf*)
10913 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10914 need_version=no
10915 need_lib_prefix=no
10916 ;;
10917 freebsd-*)
10918 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10919 need_version=yes
10920 ;;
10921 esac
10922 shlibpath_var=LD_LIBRARY_PATH
10923 case $host_os in
10924 freebsd2.*)
10925 shlibpath_overrides_runpath=yes
10926 ;;
10927 freebsd3.[01]* | freebsdelf3.[01]*)
10928 shlibpath_overrides_runpath=yes
10929 hardcode_into_libs=yes
10930 ;;
10931 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10932 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10933 shlibpath_overrides_runpath=no
10934 hardcode_into_libs=yes
10935 ;;
10936 *) # from 4.6 on, and DragonFly
10937 shlibpath_overrides_runpath=yes
10938 hardcode_into_libs=yes
10939 ;;
10940 esac
10941 ;;
10942
10943 gnu*)
10944 version_type=linux # correct to gnu/linux during the next big refactor
10945 need_lib_prefix=no
10946 need_version=no
10947 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10948 soname_spec='${libname}${release}${shared_ext}$major'
10949 shlibpath_var=LD_LIBRARY_PATH
10950 shlibpath_overrides_runpath=no
10951 hardcode_into_libs=yes
10952 ;;
10953
10954 haiku*)
10955 version_type=linux # correct to gnu/linux during the next big refactor
10956 need_lib_prefix=no
10957 need_version=no
10958 dynamic_linker="$host_os runtime_loader"
10959 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10960 soname_spec='${libname}${release}${shared_ext}$major'
10961 shlibpath_var=LIBRARY_PATH
10962 shlibpath_overrides_runpath=yes
10963 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10964 hardcode_into_libs=yes
10965 ;;
10966
10967 hpux9* | hpux10* | hpux11*)
10968 # Give a soname corresponding to the major version so that dld.sl refuses to
10969 # link against other versions.
10970 version_type=sunos
10971 need_lib_prefix=no
10972 need_version=no
10973 case $host_cpu in
10974 ia64*)
10975 shrext_cmds='.so'
10976 hardcode_into_libs=yes
10977 dynamic_linker="$host_os dld.so"
10978 shlibpath_var=LD_LIBRARY_PATH
10979 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10980 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10981 soname_spec='${libname}${release}${shared_ext}$major'
10982 if test "X$HPUX_IA64_MODE" = X32; then
10983 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10984 else
10985 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10986 fi
10987 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10988 ;;
10989 hppa*64*)
10990 shrext_cmds='.sl'
10991 hardcode_into_libs=yes
10992 dynamic_linker="$host_os dld.sl"
10993 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10994 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10995 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10996 soname_spec='${libname}${release}${shared_ext}$major'
10997 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10998 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10999 ;;
11000 *)
11001 shrext_cmds='.sl'
11002 dynamic_linker="$host_os dld.sl"
11003 shlibpath_var=SHLIB_PATH
11004 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11005 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11006 soname_spec='${libname}${release}${shared_ext}$major'
11007 ;;
11008 esac
11009 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11010 postinstall_cmds='chmod 555 $lib'
11011 # or fails outright, so override atomically:
11012 install_override_mode=555
11013 ;;
11014
11015 interix[3-9]*)
11016 version_type=linux # correct to gnu/linux during the next big refactor
11017 need_lib_prefix=no
11018 need_version=no
11019 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11020 soname_spec='${libname}${release}${shared_ext}$major'
11021 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11022 shlibpath_var=LD_LIBRARY_PATH
11023 shlibpath_overrides_runpath=no
11024 hardcode_into_libs=yes
11025 ;;
11026
11027 irix5* | irix6* | nonstopux*)
11028 case $host_os in
11029 nonstopux*) version_type=nonstopux ;;
11030 *)
11031 if test "$lt_cv_prog_gnu_ld" = yes; then
11032 version_type=linux # correct to gnu/linux during the next big refactor
11033 else
11034 version_type=irix
11035 fi ;;
11036 esac
11037 need_lib_prefix=no
11038 need_version=no
11039 soname_spec='${libname}${release}${shared_ext}$major'
11040 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11041 case $host_os in
11042 irix5* | nonstopux*)
11043 libsuff= shlibsuff=
11044 ;;
11045 *)
11046 case $LD in # libtool.m4 will add one of these switches to LD
11047 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11048 libsuff= shlibsuff= libmagic=32-bit;;
11049 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11050 libsuff=32 shlibsuff=N32 libmagic=N32;;
11051 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11052 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11053 *) libsuff= shlibsuff= libmagic=never-match;;
11054 esac
11055 ;;
11056 esac
11057 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11058 shlibpath_overrides_runpath=no
11059 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11060 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11061 hardcode_into_libs=yes
11062 ;;
11063
11064 # No shared lib support for Linux oldld, aout, or coff.
11065 linux*oldld* | linux*aout* | linux*coff*)
11066 dynamic_linker=no
11067 ;;
11068
11069 # This must be glibc/ELF.
11070 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11071 version_type=linux # correct to gnu/linux during the next big refactor
11072 need_lib_prefix=no
11073 need_version=no
11074 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11075 soname_spec='${libname}${release}${shared_ext}$major'
11076 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11077 shlibpath_var=LD_LIBRARY_PATH
11078 shlibpath_overrides_runpath=no
11079
11080 # Some binutils ld are patched to set DT_RUNPATH
11081 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11082 $as_echo_n "(cached) " >&6
11083 else
11084 lt_cv_shlibpath_overrides_runpath=no
11085 save_LDFLAGS=$LDFLAGS
11086 save_libdir=$libdir
11087 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11088 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11090 /* end confdefs.h. */
11091
11092 int
11093 main ()
11094 {
11095
11096 ;
11097 return 0;
11098 }
11099 _ACEOF
11100 if ac_fn_c_try_link "$LINENO"; then :
11101 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11102 lt_cv_shlibpath_overrides_runpath=yes
11103 fi
11104 fi
11105 rm -f core conftest.err conftest.$ac_objext \
11106 conftest$ac_exeext conftest.$ac_ext
11107 LDFLAGS=$save_LDFLAGS
11108 libdir=$save_libdir
11109
11110 fi
11111
11112 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11113
11114 # This implies no fast_install, which is unacceptable.
11115 # Some rework will be needed to allow for fast_install
11116 # before this can be enabled.
11117 hardcode_into_libs=yes
11118
11119 # Append ld.so.conf contents to the search path
11120 if test -f /etc/ld.so.conf; then
11121 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' ' '`
11122 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11123 fi
11124
11125 # We used to test for /lib/ld.so.1 and disable shared libraries on
11126 # powerpc, because MkLinux only supported shared libraries with the
11127 # GNU dynamic linker. Since this was broken with cross compilers,
11128 # most powerpc-linux boxes support dynamic linking these days and
11129 # people can always --disable-shared, the test was removed, and we
11130 # assume the GNU/Linux dynamic linker is in use.
11131 dynamic_linker='GNU/Linux ld.so'
11132 ;;
11133
11134 netbsd*)
11135 version_type=sunos
11136 need_lib_prefix=no
11137 need_version=no
11138 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11139 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11140 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11141 dynamic_linker='NetBSD (a.out) ld.so'
11142 else
11143 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11144 soname_spec='${libname}${release}${shared_ext}$major'
11145 dynamic_linker='NetBSD ld.elf_so'
11146 fi
11147 shlibpath_var=LD_LIBRARY_PATH
11148 shlibpath_overrides_runpath=yes
11149 hardcode_into_libs=yes
11150 ;;
11151
11152 newsos6)
11153 version_type=linux # correct to gnu/linux during the next big refactor
11154 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11155 shlibpath_var=LD_LIBRARY_PATH
11156 shlibpath_overrides_runpath=yes
11157 ;;
11158
11159 *nto* | *qnx*)
11160 version_type=qnx
11161 need_lib_prefix=no
11162 need_version=no
11163 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11164 soname_spec='${libname}${release}${shared_ext}$major'
11165 shlibpath_var=LD_LIBRARY_PATH
11166 shlibpath_overrides_runpath=no
11167 hardcode_into_libs=yes
11168 dynamic_linker='ldqnx.so'
11169 ;;
11170
11171 openbsd*)
11172 version_type=sunos
11173 sys_lib_dlsearch_path_spec="/usr/lib"
11174 need_lib_prefix=no
11175 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11176 case $host_os in
11177 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11178 *) need_version=no ;;
11179 esac
11180 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11181 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11182 shlibpath_var=LD_LIBRARY_PATH
11183 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11184 case $host_os in
11185 openbsd2.[89] | openbsd2.[89].*)
11186 shlibpath_overrides_runpath=no
11187 ;;
11188 *)
11189 shlibpath_overrides_runpath=yes
11190 ;;
11191 esac
11192 else
11193 shlibpath_overrides_runpath=yes
11194 fi
11195 ;;
11196
11197 os2*)
11198 libname_spec='$name'
11199 shrext_cmds=".dll"
11200 need_lib_prefix=no
11201 library_names_spec='$libname${shared_ext} $libname.a'
11202 dynamic_linker='OS/2 ld.exe'
11203 shlibpath_var=LIBPATH
11204 ;;
11205
11206 osf3* | osf4* | osf5*)
11207 version_type=osf
11208 need_lib_prefix=no
11209 need_version=no
11210 soname_spec='${libname}${release}${shared_ext}$major'
11211 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11212 shlibpath_var=LD_LIBRARY_PATH
11213 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11214 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11215 ;;
11216
11217 rdos*)
11218 dynamic_linker=no
11219 ;;
11220
11221 solaris*)
11222 version_type=linux # correct to gnu/linux during the next big refactor
11223 need_lib_prefix=no
11224 need_version=no
11225 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11226 soname_spec='${libname}${release}${shared_ext}$major'
11227 shlibpath_var=LD_LIBRARY_PATH
11228 shlibpath_overrides_runpath=yes
11229 hardcode_into_libs=yes
11230 # ldd complains unless libraries are executable
11231 postinstall_cmds='chmod +x $lib'
11232 ;;
11233
11234 sunos4*)
11235 version_type=sunos
11236 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11237 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11238 shlibpath_var=LD_LIBRARY_PATH
11239 shlibpath_overrides_runpath=yes
11240 if test "$with_gnu_ld" = yes; then
11241 need_lib_prefix=no
11242 fi
11243 need_version=yes
11244 ;;
11245
11246 sysv4 | sysv4.3*)
11247 version_type=linux # correct to gnu/linux during the next big refactor
11248 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11249 soname_spec='${libname}${release}${shared_ext}$major'
11250 shlibpath_var=LD_LIBRARY_PATH
11251 case $host_vendor in
11252 sni)
11253 shlibpath_overrides_runpath=no
11254 need_lib_prefix=no
11255 runpath_var=LD_RUN_PATH
11256 ;;
11257 siemens)
11258 need_lib_prefix=no
11259 ;;
11260 motorola)
11261 need_lib_prefix=no
11262 need_version=no
11263 shlibpath_overrides_runpath=no
11264 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11265 ;;
11266 esac
11267 ;;
11268
11269 sysv4*MP*)
11270 if test -d /usr/nec ;then
11271 version_type=linux # correct to gnu/linux during the next big refactor
11272 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11273 soname_spec='$libname${shared_ext}.$major'
11274 shlibpath_var=LD_LIBRARY_PATH
11275 fi
11276 ;;
11277
11278 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11279 version_type=freebsd-elf
11280 need_lib_prefix=no
11281 need_version=no
11282 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11283 soname_spec='${libname}${release}${shared_ext}$major'
11284 shlibpath_var=LD_LIBRARY_PATH
11285 shlibpath_overrides_runpath=yes
11286 hardcode_into_libs=yes
11287 if test "$with_gnu_ld" = yes; then
11288 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11289 else
11290 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11291 case $host_os in
11292 sco3.2v5*)
11293 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11294 ;;
11295 esac
11296 fi
11297 sys_lib_dlsearch_path_spec='/usr/lib'
11298 ;;
11299
11300 tpf*)
11301 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11302 version_type=linux # correct to gnu/linux during the next big refactor
11303 need_lib_prefix=no
11304 need_version=no
11305 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11306 shlibpath_var=LD_LIBRARY_PATH
11307 shlibpath_overrides_runpath=no
11308 hardcode_into_libs=yes
11309 ;;
11310
11311 uts4*)
11312 version_type=linux # correct to gnu/linux during the next big refactor
11313 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11314 soname_spec='${libname}${release}${shared_ext}$major'
11315 shlibpath_var=LD_LIBRARY_PATH
11316 ;;
11317
11318 *)
11319 dynamic_linker=no
11320 ;;
11321 esac
11322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11323 $as_echo "$dynamic_linker" >&6; }
11324 test "$dynamic_linker" = no && can_build_shared=no
11325
11326 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11327 if test "$GCC" = yes; then
11328 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11329 fi
11330
11331 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11332 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11333 fi
11334 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11335 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11336 fi
11337
11338
11339
11340
11341
11342
11343
11344
11345
11346
11347
11348
11349
11350
11351
11352
11353
11354
11355
11356
11357
11358
11359
11360
11361
11362
11363
11364
11365
11366
11367
11368
11369
11370
11371
11372
11373
11374
11375
11376
11377
11378
11379
11380
11381
11382
11383
11384
11385
11386
11387
11388
11389
11390
11391
11392
11393
11394
11395
11396
11397
11398
11399
11400
11401
11402
11403
11404
11405
11406
11407
11408
11409
11410
11411
11412
11413
11414
11415
11416
11417
11418
11419
11420
11421
11422
11423
11424
11425
11426
11427
11428
11429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11430 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11431 hardcode_action=
11432 if test -n "$hardcode_libdir_flag_spec" ||
11433 test -n "$runpath_var" ||
11434 test "X$hardcode_automatic" = "Xyes" ; then
11435
11436 # We can hardcode non-existent directories.
11437 if test "$hardcode_direct" != no &&
11438 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11439 # have to relink, otherwise we might link with an installed library
11440 # when we should be linking with a yet-to-be-installed one
11441 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11442 test "$hardcode_minus_L" != no; then
11443 # Linking always hardcodes the temporary library directory.
11444 hardcode_action=relink
11445 else
11446 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11447 hardcode_action=immediate
11448 fi
11449 else
11450 # We cannot hardcode anything, or else we can only hardcode existing
11451 # directories.
11452 hardcode_action=unsupported
11453 fi
11454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11455 $as_echo "$hardcode_action" >&6; }
11456
11457 if test "$hardcode_action" = relink ||
11458 test "$inherit_rpath" = yes; then
11459 # Fast installation is not supported
11460 enable_fast_install=no
11461 elif test "$shlibpath_overrides_runpath" = yes ||
11462 test "$enable_shared" = no; then
11463 # Fast installation is not necessary
11464 enable_fast_install=needless
11465 fi
11466
11467
11468
11469
11470
11471
11472 if test "x$enable_dlopen" != xyes; then
11473 enable_dlopen=unknown
11474 enable_dlopen_self=unknown
11475 enable_dlopen_self_static=unknown
11476 else
11477 lt_cv_dlopen=no
11478 lt_cv_dlopen_libs=
11479
11480 case $host_os in
11481 beos*)
11482 lt_cv_dlopen="load_add_on"
11483 lt_cv_dlopen_libs=
11484 lt_cv_dlopen_self=yes
11485 ;;
11486
11487 mingw* | pw32* | cegcc*)
11488 lt_cv_dlopen="LoadLibrary"
11489 lt_cv_dlopen_libs=
11490 ;;
11491
11492 cygwin*)
11493 lt_cv_dlopen="dlopen"
11494 lt_cv_dlopen_libs=
11495 ;;
11496
11497 darwin*)
11498 # if libdl is installed we need to link against it
11499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11500 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11501 if ${ac_cv_lib_dl_dlopen+:} false; then :
11502 $as_echo_n "(cached) " >&6
11503 else
11504 ac_check_lib_save_LIBS=$LIBS
11505 LIBS="-ldl $LIBS"
11506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11507 /* end confdefs.h. */
11508
11509 /* Override any GCC internal prototype to avoid an error.
11510 Use char because int might match the return type of a GCC
11511 builtin and then its argument prototype would still apply. */
11512 #ifdef __cplusplus
11513 extern "C"
11514 #endif
11515 char dlopen ();
11516 int
11517 main ()
11518 {
11519 return dlopen ();
11520 ;
11521 return 0;
11522 }
11523 _ACEOF
11524 if ac_fn_c_try_link "$LINENO"; then :
11525 ac_cv_lib_dl_dlopen=yes
11526 else
11527 ac_cv_lib_dl_dlopen=no
11528 fi
11529 rm -f core conftest.err conftest.$ac_objext \
11530 conftest$ac_exeext conftest.$ac_ext
11531 LIBS=$ac_check_lib_save_LIBS
11532 fi
11533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11534 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11535 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11536 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11537 else
11538
11539 lt_cv_dlopen="dyld"
11540 lt_cv_dlopen_libs=
11541 lt_cv_dlopen_self=yes
11542
11543 fi
11544
11545 ;;
11546
11547 *)
11548 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11549 if test "x$ac_cv_func_shl_load" = xyes; then :
11550 lt_cv_dlopen="shl_load"
11551 else
11552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11553 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11554 if ${ac_cv_lib_dld_shl_load+:} false; then :
11555 $as_echo_n "(cached) " >&6
11556 else
11557 ac_check_lib_save_LIBS=$LIBS
11558 LIBS="-ldld $LIBS"
11559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11560 /* end confdefs.h. */
11561
11562 /* Override any GCC internal prototype to avoid an error.
11563 Use char because int might match the return type of a GCC
11564 builtin and then its argument prototype would still apply. */
11565 #ifdef __cplusplus
11566 extern "C"
11567 #endif
11568 char shl_load ();
11569 int
11570 main ()
11571 {
11572 return shl_load ();
11573 ;
11574 return 0;
11575 }
11576 _ACEOF
11577 if ac_fn_c_try_link "$LINENO"; then :
11578 ac_cv_lib_dld_shl_load=yes
11579 else
11580 ac_cv_lib_dld_shl_load=no
11581 fi
11582 rm -f core conftest.err conftest.$ac_objext \
11583 conftest$ac_exeext conftest.$ac_ext
11584 LIBS=$ac_check_lib_save_LIBS
11585 fi
11586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11587 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11588 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11589 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11590 else
11591 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11592 if test "x$ac_cv_func_dlopen" = xyes; then :
11593 lt_cv_dlopen="dlopen"
11594 else
11595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11596 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11597 if ${ac_cv_lib_dl_dlopen+:} false; then :
11598 $as_echo_n "(cached) " >&6
11599 else
11600 ac_check_lib_save_LIBS=$LIBS
11601 LIBS="-ldl $LIBS"
11602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11603 /* end confdefs.h. */
11604
11605 /* Override any GCC internal prototype to avoid an error.
11606 Use char because int might match the return type of a GCC
11607 builtin and then its argument prototype would still apply. */
11608 #ifdef __cplusplus
11609 extern "C"
11610 #endif
11611 char dlopen ();
11612 int
11613 main ()
11614 {
11615 return dlopen ();
11616 ;
11617 return 0;
11618 }
11619 _ACEOF
11620 if ac_fn_c_try_link "$LINENO"; then :
11621 ac_cv_lib_dl_dlopen=yes
11622 else
11623 ac_cv_lib_dl_dlopen=no
11624 fi
11625 rm -f core conftest.err conftest.$ac_objext \
11626 conftest$ac_exeext conftest.$ac_ext
11627 LIBS=$ac_check_lib_save_LIBS
11628 fi
11629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11630 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11631 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11632 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11633 else
11634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11635 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11636 if ${ac_cv_lib_svld_dlopen+:} false; then :
11637 $as_echo_n "(cached) " >&6
11638 else
11639 ac_check_lib_save_LIBS=$LIBS
11640 LIBS="-lsvld $LIBS"
11641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11642 /* end confdefs.h. */
11643
11644 /* Override any GCC internal prototype to avoid an error.
11645 Use char because int might match the return type of a GCC
11646 builtin and then its argument prototype would still apply. */
11647 #ifdef __cplusplus
11648 extern "C"
11649 #endif
11650 char dlopen ();
11651 int
11652 main ()
11653 {
11654 return dlopen ();
11655 ;
11656 return 0;
11657 }
11658 _ACEOF
11659 if ac_fn_c_try_link "$LINENO"; then :
11660 ac_cv_lib_svld_dlopen=yes
11661 else
11662 ac_cv_lib_svld_dlopen=no
11663 fi
11664 rm -f core conftest.err conftest.$ac_objext \
11665 conftest$ac_exeext conftest.$ac_ext
11666 LIBS=$ac_check_lib_save_LIBS
11667 fi
11668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11669 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11670 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11671 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11672 else
11673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11674 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11675 if ${ac_cv_lib_dld_dld_link+:} false; then :
11676 $as_echo_n "(cached) " >&6
11677 else
11678 ac_check_lib_save_LIBS=$LIBS
11679 LIBS="-ldld $LIBS"
11680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11681 /* end confdefs.h. */
11682
11683 /* Override any GCC internal prototype to avoid an error.
11684 Use char because int might match the return type of a GCC
11685 builtin and then its argument prototype would still apply. */
11686 #ifdef __cplusplus
11687 extern "C"
11688 #endif
11689 char dld_link ();
11690 int
11691 main ()
11692 {
11693 return dld_link ();
11694 ;
11695 return 0;
11696 }
11697 _ACEOF
11698 if ac_fn_c_try_link "$LINENO"; then :
11699 ac_cv_lib_dld_dld_link=yes
11700 else
11701 ac_cv_lib_dld_dld_link=no
11702 fi
11703 rm -f core conftest.err conftest.$ac_objext \
11704 conftest$ac_exeext conftest.$ac_ext
11705 LIBS=$ac_check_lib_save_LIBS
11706 fi
11707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11708 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11709 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11710 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11711 fi
11712
11713
11714 fi
11715
11716
11717 fi
11718
11719
11720 fi
11721
11722
11723 fi
11724
11725
11726 fi
11727
11728 ;;
11729 esac
11730
11731 if test "x$lt_cv_dlopen" != xno; then
11732 enable_dlopen=yes
11733 else
11734 enable_dlopen=no
11735 fi
11736
11737 case $lt_cv_dlopen in
11738 dlopen)
11739 save_CPPFLAGS="$CPPFLAGS"
11740 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11741
11742 save_LDFLAGS="$LDFLAGS"
11743 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11744
11745 save_LIBS="$LIBS"
11746 LIBS="$lt_cv_dlopen_libs $LIBS"
11747
11748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11749 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11750 if ${lt_cv_dlopen_self+:} false; then :
11751 $as_echo_n "(cached) " >&6
11752 else
11753 if test "$cross_compiling" = yes; then :
11754 lt_cv_dlopen_self=cross
11755 else
11756 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11757 lt_status=$lt_dlunknown
11758 cat > conftest.$ac_ext <<_LT_EOF
11759 #line $LINENO "configure"
11760 #include "confdefs.h"
11761
11762 #if HAVE_DLFCN_H
11763 #include <dlfcn.h>
11764 #endif
11765
11766 #include <stdio.h>
11767
11768 #ifdef RTLD_GLOBAL
11769 # define LT_DLGLOBAL RTLD_GLOBAL
11770 #else
11771 # ifdef DL_GLOBAL
11772 # define LT_DLGLOBAL DL_GLOBAL
11773 # else
11774 # define LT_DLGLOBAL 0
11775 # endif
11776 #endif
11777
11778 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11779 find out it does not work in some platform. */
11780 #ifndef LT_DLLAZY_OR_NOW
11781 # ifdef RTLD_LAZY
11782 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11783 # else
11784 # ifdef DL_LAZY
11785 # define LT_DLLAZY_OR_NOW DL_LAZY
11786 # else
11787 # ifdef RTLD_NOW
11788 # define LT_DLLAZY_OR_NOW RTLD_NOW
11789 # else
11790 # ifdef DL_NOW
11791 # define LT_DLLAZY_OR_NOW DL_NOW
11792 # else
11793 # define LT_DLLAZY_OR_NOW 0
11794 # endif
11795 # endif
11796 # endif
11797 # endif
11798 #endif
11799
11800 /* When -fvisbility=hidden is used, assume the code has been annotated
11801 correspondingly for the symbols needed. */
11802 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11803 int fnord () __attribute__((visibility("default")));
11804 #endif
11805
11806 int fnord () { return 42; }
11807 int main ()
11808 {
11809 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11810 int status = $lt_dlunknown;
11811
11812 if (self)
11813 {
11814 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11815 else
11816 {
11817 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11818 else puts (dlerror ());
11819 }
11820 /* dlclose (self); */
11821 }
11822 else
11823 puts (dlerror ());
11824
11825 return status;
11826 }
11827 _LT_EOF
11828 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11829 (eval $ac_link) 2>&5
11830 ac_status=$?
11831 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11832 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11833 (./conftest; exit; ) >&5 2>/dev/null
11834 lt_status=$?
11835 case x$lt_status in
11836 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11837 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11838 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11839 esac
11840 else :
11841 # compilation failed
11842 lt_cv_dlopen_self=no
11843 fi
11844 fi
11845 rm -fr conftest*
11846
11847
11848 fi
11849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11850 $as_echo "$lt_cv_dlopen_self" >&6; }
11851
11852 if test "x$lt_cv_dlopen_self" = xyes; then
11853 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11855 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11856 if ${lt_cv_dlopen_self_static+:} false; then :
11857 $as_echo_n "(cached) " >&6
11858 else
11859 if test "$cross_compiling" = yes; then :
11860 lt_cv_dlopen_self_static=cross
11861 else
11862 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11863 lt_status=$lt_dlunknown
11864 cat > conftest.$ac_ext <<_LT_EOF
11865 #line $LINENO "configure"
11866 #include "confdefs.h"
11867
11868 #if HAVE_DLFCN_H
11869 #include <dlfcn.h>
11870 #endif
11871
11872 #include <stdio.h>
11873
11874 #ifdef RTLD_GLOBAL
11875 # define LT_DLGLOBAL RTLD_GLOBAL
11876 #else
11877 # ifdef DL_GLOBAL
11878 # define LT_DLGLOBAL DL_GLOBAL
11879 # else
11880 # define LT_DLGLOBAL 0
11881 # endif
11882 #endif
11883
11884 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11885 find out it does not work in some platform. */
11886 #ifndef LT_DLLAZY_OR_NOW
11887 # ifdef RTLD_LAZY
11888 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11889 # else
11890 # ifdef DL_LAZY
11891 # define LT_DLLAZY_OR_NOW DL_LAZY
11892 # else
11893 # ifdef RTLD_NOW
11894 # define LT_DLLAZY_OR_NOW RTLD_NOW
11895 # else
11896 # ifdef DL_NOW
11897 # define LT_DLLAZY_OR_NOW DL_NOW
11898 # else
11899 # define LT_DLLAZY_OR_NOW 0
11900 # endif
11901 # endif
11902 # endif
11903 # endif
11904 #endif
11905
11906 /* When -fvisbility=hidden is used, assume the code has been annotated
11907 correspondingly for the symbols needed. */
11908 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11909 int fnord () __attribute__((visibility("default")));
11910 #endif
11911
11912 int fnord () { return 42; }
11913 int main ()
11914 {
11915 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11916 int status = $lt_dlunknown;
11917
11918 if (self)
11919 {
11920 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11921 else
11922 {
11923 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11924 else puts (dlerror ());
11925 }
11926 /* dlclose (self); */
11927 }
11928 else
11929 puts (dlerror ());
11930
11931 return status;
11932 }
11933 _LT_EOF
11934 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11935 (eval $ac_link) 2>&5
11936 ac_status=$?
11937 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11938 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11939 (./conftest; exit; ) >&5 2>/dev/null
11940 lt_status=$?
11941 case x$lt_status in
11942 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11943 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11944 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11945 esac
11946 else :
11947 # compilation failed
11948 lt_cv_dlopen_self_static=no
11949 fi
11950 fi
11951 rm -fr conftest*
11952
11953
11954 fi
11955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11956 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11957 fi
11958
11959 CPPFLAGS="$save_CPPFLAGS"
11960 LDFLAGS="$save_LDFLAGS"
11961 LIBS="$save_LIBS"
11962 ;;
11963 esac
11964
11965 case $lt_cv_dlopen_self in
11966 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11967 *) enable_dlopen_self=unknown ;;
11968 esac
11969
11970 case $lt_cv_dlopen_self_static in
11971 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11972 *) enable_dlopen_self_static=unknown ;;
11973 esac
11974 fi
11975
11976
11977
11978
11979
11980
11981
11982
11983
11984
11985
11986
11987
11988
11989
11990
11991
11992 striplib=
11993 old_striplib=
11994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11995 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11996 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11997 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11998 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12000 $as_echo "yes" >&6; }
12001 else
12002 # FIXME - insert some real tests, host_os isn't really good enough
12003 case $host_os in
12004 darwin*)
12005 if test -n "$STRIP" ; then
12006 striplib="$STRIP -x"
12007 old_striplib="$STRIP -S"
12008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12009 $as_echo "yes" >&6; }
12010 else
12011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12012 $as_echo "no" >&6; }
12013 fi
12014 ;;
12015 *)
12016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12017 $as_echo "no" >&6; }
12018 ;;
12019 esac
12020 fi
12021
12022
12023
12024
12025
12026
12027
12028
12029
12030
12031
12032
12033 # Report which library types will actually be built
12034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12035 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12037 $as_echo "$can_build_shared" >&6; }
12038
12039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12040 $as_echo_n "checking whether to build shared libraries... " >&6; }
12041 test "$can_build_shared" = "no" && enable_shared=no
12042
12043 # On AIX, shared libraries and static libraries use the same namespace, and
12044 # are all built from PIC.
12045 case $host_os in
12046 aix3*)
12047 test "$enable_shared" = yes && enable_static=no
12048 if test -n "$RANLIB"; then
12049 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12050 postinstall_cmds='$RANLIB $lib'
12051 fi
12052 ;;
12053
12054 aix[4-9]*)
12055 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12056 test "$enable_shared" = yes && enable_static=no
12057 fi
12058 ;;
12059 esac
12060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12061 $as_echo "$enable_shared" >&6; }
12062
12063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12064 $as_echo_n "checking whether to build static libraries... " >&6; }
12065 # Make sure either enable_shared or enable_static is yes.
12066 test "$enable_shared" = yes || enable_static=yes
12067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12068 $as_echo "$enable_static" >&6; }
12069
12070
12071
12072
12073 fi
12074 ac_ext=c
12075 ac_cpp='$CPP $CPPFLAGS'
12076 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12077 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12078 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12079
12080 CC="$lt_save_CC"
12081
12082
12083
12084
12085
12086
12087
12088
12089
12090
12091
12092
12093
12094
12095
12096 ac_config_commands="$ac_config_commands libtool"
12097
12098
12099
12100
12101 # Only expand once:
12102
12103
12104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which extension is used for runtime loadable modules" >&5
12105 $as_echo_n "checking which extension is used for runtime loadable modules... " >&6; }
12106 if ${libltdl_cv_shlibext+:} false; then :
12107 $as_echo_n "(cached) " >&6
12108 else
12109
12110 module=yes
12111 eval libltdl_cv_shlibext=$shrext_cmds
12112 module=no
12113 eval libltdl_cv_shrext=$shrext_cmds
12114
12115 fi
12116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_shlibext" >&5
12117 $as_echo "$libltdl_cv_shlibext" >&6; }
12118 if test -n "$libltdl_cv_shlibext"; then
12119
12120 cat >>confdefs.h <<_ACEOF
12121 #define LT_MODULE_EXT "$libltdl_cv_shlibext"
12122 _ACEOF
12123
12124 fi
12125 if test "$libltdl_cv_shrext" != "$libltdl_cv_shlibext"; then
12126
12127 cat >>confdefs.h <<_ACEOF
12128 #define LT_SHARED_EXT "$libltdl_cv_shrext"
12129 _ACEOF
12130
12131 fi
12132
12133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variable specifies run-time module search path" >&5
12134 $as_echo_n "checking which variable specifies run-time module search path... " >&6; }
12135 if ${lt_cv_module_path_var+:} false; then :
12136 $as_echo_n "(cached) " >&6
12137 else
12138 lt_cv_module_path_var="$shlibpath_var"
12139 fi
12140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_module_path_var" >&5
12141 $as_echo "$lt_cv_module_path_var" >&6; }
12142 if test -n "$lt_cv_module_path_var"; then
12143
12144 cat >>confdefs.h <<_ACEOF
12145 #define LT_MODULE_PATH_VAR "$lt_cv_module_path_var"
12146 _ACEOF
12147
12148 fi
12149
12150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the default library search path" >&5
12151 $as_echo_n "checking for the default library search path... " >&6; }
12152 if ${lt_cv_sys_dlsearch_path+:} false; then :
12153 $as_echo_n "(cached) " >&6
12154 else
12155 lt_cv_sys_dlsearch_path="$sys_lib_dlsearch_path_spec"
12156 fi
12157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlsearch_path" >&5
12158 $as_echo "$lt_cv_sys_dlsearch_path" >&6; }
12159 if test -n "$lt_cv_sys_dlsearch_path"; then
12160 sys_dlsearch_path=
12161 for dir in $lt_cv_sys_dlsearch_path; do
12162 if test -z "$sys_dlsearch_path"; then
12163 sys_dlsearch_path="$dir"
12164 else
12165 sys_dlsearch_path="$sys_dlsearch_path$PATH_SEPARATOR$dir"
12166 fi
12167 done
12168
12169 cat >>confdefs.h <<_ACEOF
12170 #define LT_DLSEARCH_PATH "$sys_dlsearch_path"
12171 _ACEOF
12172
12173 fi
12174
12175
12176 LT_DLLOADERS=
12177
12178
12179 ac_ext=c
12180 ac_cpp='$CPP $CPPFLAGS'
12181 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12182 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12183 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12184
12185
12186 LIBADD_DLOPEN=
12187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
12188 $as_echo_n "checking for library containing dlopen... " >&6; }
12189 if ${ac_cv_search_dlopen+:} false; then :
12190 $as_echo_n "(cached) " >&6
12191 else
12192 ac_func_search_save_LIBS=$LIBS
12193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12194 /* end confdefs.h. */
12195
12196 /* Override any GCC internal prototype to avoid an error.
12197 Use char because int might match the return type of a GCC
12198 builtin and then its argument prototype would still apply. */
12199 #ifdef __cplusplus
12200 extern "C"
12201 #endif
12202 char dlopen ();
12203 int
12204 main ()
12205 {
12206 return dlopen ();
12207 ;
12208 return 0;
12209 }
12210 _ACEOF
12211 for ac_lib in '' dl; do
12212 if test -z "$ac_lib"; then
12213 ac_res="none required"
12214 else
12215 ac_res=-l$ac_lib
12216 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12217 fi
12218 if ac_fn_c_try_link "$LINENO"; then :
12219 ac_cv_search_dlopen=$ac_res
12220 fi
12221 rm -f core conftest.err conftest.$ac_objext \
12222 conftest$ac_exeext
12223 if ${ac_cv_search_dlopen+:} false; then :
12224 break
12225 fi
12226 done
12227 if ${ac_cv_search_dlopen+:} false; then :
12228
12229 else
12230 ac_cv_search_dlopen=no
12231 fi
12232 rm conftest.$ac_ext
12233 LIBS=$ac_func_search_save_LIBS
12234 fi
12235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
12236 $as_echo "$ac_cv_search_dlopen" >&6; }
12237 ac_res=$ac_cv_search_dlopen
12238 if test "$ac_res" != no; then :
12239 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12240
12241 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
12242
12243 if test "$ac_cv_search_dlopen" != "none required" ; then
12244 LIBADD_DLOPEN="-ldl"
12245 fi
12246 libltdl_cv_lib_dl_dlopen="yes"
12247 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
12248 else
12249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12250 /* end confdefs.h. */
12251 #if HAVE_DLFCN_H
12252 # include <dlfcn.h>
12253 #endif
12254
12255 int
12256 main ()
12257 {
12258 dlopen(0, 0);
12259 ;
12260 return 0;
12261 }
12262 _ACEOF
12263 if ac_fn_c_try_link "$LINENO"; then :
12264
12265 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
12266
12267 libltdl_cv_func_dlopen="yes"
12268 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
12269 else
12270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12271 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12272 if ${ac_cv_lib_svld_dlopen+:} false; then :
12273 $as_echo_n "(cached) " >&6
12274 else
12275 ac_check_lib_save_LIBS=$LIBS
12276 LIBS="-lsvld $LIBS"
12277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12278 /* end confdefs.h. */
12279
12280 /* Override any GCC internal prototype to avoid an error.
12281 Use char because int might match the return type of a GCC
12282 builtin and then its argument prototype would still apply. */
12283 #ifdef __cplusplus
12284 extern "C"
12285 #endif
12286 char dlopen ();
12287 int
12288 main ()
12289 {
12290 return dlopen ();
12291 ;
12292 return 0;
12293 }
12294 _ACEOF
12295 if ac_fn_c_try_link "$LINENO"; then :
12296 ac_cv_lib_svld_dlopen=yes
12297 else
12298 ac_cv_lib_svld_dlopen=no
12299 fi
12300 rm -f core conftest.err conftest.$ac_objext \
12301 conftest$ac_exeext conftest.$ac_ext
12302 LIBS=$ac_check_lib_save_LIBS
12303 fi
12304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12305 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12306 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12307
12308 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
12309
12310 LIBADD_DLOPEN="-lsvld" libltdl_cv_func_dlopen="yes"
12311 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
12312 fi
12313
12314 fi
12315 rm -f core conftest.err conftest.$ac_objext \
12316 conftest$ac_exeext conftest.$ac_ext
12317 fi
12318
12319 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
12320 then
12321 lt_save_LIBS="$LIBS"
12322 LIBS="$LIBS $LIBADD_DLOPEN"
12323 for ac_func in dlerror
12324 do :
12325 ac_fn_c_check_func "$LINENO" "dlerror" "ac_cv_func_dlerror"
12326 if test "x$ac_cv_func_dlerror" = xyes; then :
12327 cat >>confdefs.h <<_ACEOF
12328 #define HAVE_DLERROR 1
12329 _ACEOF
12330
12331 fi
12332 done
12333
12334 LIBS="$lt_save_LIBS"
12335 fi
12336
12337
12338 LIBADD_SHL_LOAD=
12339 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12340 if test "x$ac_cv_func_shl_load" = xyes; then :
12341
12342 $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
12343
12344 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
12345 else
12346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12347 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12348 if ${ac_cv_lib_dld_shl_load+:} false; then :
12349 $as_echo_n "(cached) " >&6
12350 else
12351 ac_check_lib_save_LIBS=$LIBS
12352 LIBS="-ldld $LIBS"
12353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12354 /* end confdefs.h. */
12355
12356 /* Override any GCC internal prototype to avoid an error.
12357 Use char because int might match the return type of a GCC
12358 builtin and then its argument prototype would still apply. */
12359 #ifdef __cplusplus
12360 extern "C"
12361 #endif
12362 char shl_load ();
12363 int
12364 main ()
12365 {
12366 return shl_load ();
12367 ;
12368 return 0;
12369 }
12370 _ACEOF
12371 if ac_fn_c_try_link "$LINENO"; then :
12372 ac_cv_lib_dld_shl_load=yes
12373 else
12374 ac_cv_lib_dld_shl_load=no
12375 fi
12376 rm -f core conftest.err conftest.$ac_objext \
12377 conftest$ac_exeext conftest.$ac_ext
12378 LIBS=$ac_check_lib_save_LIBS
12379 fi
12380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12381 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12382 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12383
12384 $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
12385
12386 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
12387 LIBADD_SHL_LOAD="-ldld"
12388 fi
12389
12390 fi
12391
12392
12393
12394 case $host_os in
12395 darwin[1567].*)
12396 # We only want this for pre-Mac OS X 10.4.
12397 ac_fn_c_check_func "$LINENO" "_dyld_func_lookup" "ac_cv_func__dyld_func_lookup"
12398 if test "x$ac_cv_func__dyld_func_lookup" = xyes; then :
12399
12400 $as_echo "#define HAVE_DYLD 1" >>confdefs.h
12401
12402 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la"
12403 fi
12404
12405 ;;
12406 beos*)
12407 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la"
12408 ;;
12409 cygwin* | mingw* | os2* | pw32*)
12410 ac_fn_c_check_decl "$LINENO" "cygwin_conv_path" "ac_cv_have_decl_cygwin_conv_path" "#include <sys/cygwin.h>
12411 "
12412 if test "x$ac_cv_have_decl_cygwin_conv_path" = xyes; then :
12413 ac_have_decl=1
12414 else
12415 ac_have_decl=0
12416 fi
12417
12418 cat >>confdefs.h <<_ACEOF
12419 #define HAVE_DECL_CYGWIN_CONV_PATH $ac_have_decl
12420 _ACEOF
12421
12422 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la"
12423 ;;
12424 esac
12425
12426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12427 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12428 if ${ac_cv_lib_dld_dld_link+:} false; then :
12429 $as_echo_n "(cached) " >&6
12430 else
12431 ac_check_lib_save_LIBS=$LIBS
12432 LIBS="-ldld $LIBS"
12433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12434 /* end confdefs.h. */
12435
12436 /* Override any GCC internal prototype to avoid an error.
12437 Use char because int might match the return type of a GCC
12438 builtin and then its argument prototype would still apply. */
12439 #ifdef __cplusplus
12440 extern "C"
12441 #endif
12442 char dld_link ();
12443 int
12444 main ()
12445 {
12446 return dld_link ();
12447 ;
12448 return 0;
12449 }
12450 _ACEOF
12451 if ac_fn_c_try_link "$LINENO"; then :
12452 ac_cv_lib_dld_dld_link=yes
12453 else
12454 ac_cv_lib_dld_dld_link=no
12455 fi
12456 rm -f core conftest.err conftest.$ac_objext \
12457 conftest$ac_exeext conftest.$ac_ext
12458 LIBS=$ac_check_lib_save_LIBS
12459 fi
12460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12461 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12462 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12463
12464 $as_echo "#define HAVE_DLD 1" >>confdefs.h
12465
12466 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la"
12467 fi
12468
12469
12470
12471
12472 LT_DLPREOPEN=
12473 if test -n "$LT_DLLOADERS"
12474 then
12475 for lt_loader in $LT_DLLOADERS; do
12476 LT_DLPREOPEN="$LT_DLPREOPEN-dlpreopen $lt_loader "
12477 done
12478
12479 $as_echo "#define HAVE_LIBDLLOADER 1" >>confdefs.h
12480
12481 fi
12482
12483
12484 LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD"
12485
12486
12487 ac_ext=c
12488 ac_cpp='$CPP $CPPFLAGS'
12489 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12490 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12491 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12492
12493
12494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _ prefix in compiled symbols" >&5
12495 $as_echo_n "checking for _ prefix in compiled symbols... " >&6; }
12496 if ${lt_cv_sys_symbol_underscore+:} false; then :
12497 $as_echo_n "(cached) " >&6
12498 else
12499 lt_cv_sys_symbol_underscore=no
12500 cat > conftest.$ac_ext <<_LT_EOF
12501 void nm_test_func(){}
12502 int main(){nm_test_func;return 0;}
12503 _LT_EOF
12504 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12505 (eval $ac_compile) 2>&5
12506 ac_status=$?
12507 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12508 test $ac_status = 0; }; then
12509 # Now try to grab the symbols.
12510 ac_nlist=conftest.nm
12511 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\""; } >&5
12512 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
12513 ac_status=$?
12514 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12515 test $ac_status = 0; } && test -s "$ac_nlist"; then
12516 # See whether the symbols have a leading underscore.
12517 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
12518 lt_cv_sys_symbol_underscore=yes
12519 else
12520 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
12521 :
12522 else
12523 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
12524 fi
12525 fi
12526 else
12527 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
12528 fi
12529 else
12530 echo "configure: failed program was:" >&5
12531 cat conftest.c >&5
12532 fi
12533 rm -rf conftest*
12534
12535 fi
12536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_symbol_underscore" >&5
12537 $as_echo "$lt_cv_sys_symbol_underscore" >&6; }
12538 sys_symbol_underscore=$lt_cv_sys_symbol_underscore
12539
12540
12541 if test x"$lt_cv_sys_symbol_underscore" = xyes; then
12542 if test x"$libltdl_cv_func_dlopen" = xyes ||
12543 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
12544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have to add an underscore for dlsym" >&5
12545 $as_echo_n "checking whether we have to add an underscore for dlsym... " >&6; }
12546 if ${libltdl_cv_need_uscore+:} false; then :
12547 $as_echo_n "(cached) " >&6
12548 else
12549 libltdl_cv_need_uscore=unknown
12550 save_LIBS="$LIBS"
12551 LIBS="$LIBS $LIBADD_DLOPEN"
12552 if test "$cross_compiling" = yes; then :
12553 libltdl_cv_need_uscore=cross
12554 else
12555 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12556 lt_status=$lt_dlunknown
12557 cat > conftest.$ac_ext <<_LT_EOF
12558 #line $LINENO "configure"
12559 #include "confdefs.h"
12560
12561 #if HAVE_DLFCN_H
12562 #include <dlfcn.h>
12563 #endif
12564
12565 #include <stdio.h>
12566
12567 #ifdef RTLD_GLOBAL
12568 # define LT_DLGLOBAL RTLD_GLOBAL
12569 #else
12570 # ifdef DL_GLOBAL
12571 # define LT_DLGLOBAL DL_GLOBAL
12572 # else
12573 # define LT_DLGLOBAL 0
12574 # endif
12575 #endif
12576
12577 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12578 find out it does not work in some platform. */
12579 #ifndef LT_DLLAZY_OR_NOW
12580 # ifdef RTLD_LAZY
12581 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12582 # else
12583 # ifdef DL_LAZY
12584 # define LT_DLLAZY_OR_NOW DL_LAZY
12585 # else
12586 # ifdef RTLD_NOW
12587 # define LT_DLLAZY_OR_NOW RTLD_NOW
12588 # else
12589 # ifdef DL_NOW
12590 # define LT_DLLAZY_OR_NOW DL_NOW
12591 # else
12592 # define LT_DLLAZY_OR_NOW 0
12593 # endif
12594 # endif
12595 # endif
12596 # endif
12597 #endif
12598
12599 /* When -fvisbility=hidden is used, assume the code has been annotated
12600 correspondingly for the symbols needed. */
12601 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12602 int fnord () __attribute__((visibility("default")));
12603 #endif
12604
12605 int fnord () { return 42; }
12606 int main ()
12607 {
12608 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12609 int status = $lt_dlunknown;
12610
12611 if (self)
12612 {
12613 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12614 else
12615 {
12616 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12617 else puts (dlerror ());
12618 }
12619 /* dlclose (self); */
12620 }
12621 else
12622 puts (dlerror ());
12623
12624 return status;
12625 }
12626 _LT_EOF
12627 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12628 (eval $ac_link) 2>&5
12629 ac_status=$?
12630 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12631 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12632 (./conftest; exit; ) >&5 2>/dev/null
12633 lt_status=$?
12634 case x$lt_status in
12635 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
12636 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
12637 x$lt_dlunknown|x*) ;;
12638 esac
12639 else :
12640 # compilation failed
12641
12642 fi
12643 fi
12644 rm -fr conftest*
12645
12646 LIBS="$save_LIBS"
12647
12648 fi
12649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_need_uscore" >&5
12650 $as_echo "$libltdl_cv_need_uscore" >&6; }
12651 fi
12652 fi
12653
12654 if test x"$libltdl_cv_need_uscore" = xyes; then
12655
12656 $as_echo "#define NEED_USCORE 1" >>confdefs.h
12657
12658 fi
12659
12660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether deplibs are loaded by dlopen" >&5
12661 $as_echo_n "checking whether deplibs are loaded by dlopen... " >&6; }
12662 if ${lt_cv_sys_dlopen_deplibs+:} false; then :
12663 $as_echo_n "(cached) " >&6
12664 else
12665 # PORTME does your system automatically load deplibs for dlopen?
12666 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
12667 # For now, we just catch OSes we know something about -- in the
12668 # future, we'll try test this programmatically.
12669 lt_cv_sys_dlopen_deplibs=unknown
12670 case $host_os in
12671 aix3*|aix4.1.*|aix4.2.*)
12672 # Unknown whether this is true for these versions of AIX, but
12673 # we want this `case' here to explicitly catch those versions.
12674 lt_cv_sys_dlopen_deplibs=unknown
12675 ;;
12676 aix[4-9]*)
12677 lt_cv_sys_dlopen_deplibs=yes
12678 ;;
12679 amigaos*)
12680 case $host_cpu in
12681 powerpc)
12682 lt_cv_sys_dlopen_deplibs=no
12683 ;;
12684 esac
12685 ;;
12686 darwin*)
12687 # Assuming the user has installed a libdl from somewhere, this is true
12688 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
12689 lt_cv_sys_dlopen_deplibs=yes
12690 ;;
12691 freebsd* | dragonfly*)
12692 lt_cv_sys_dlopen_deplibs=yes
12693 ;;
12694 gnu* | linux* | k*bsd*-gnu | kopensolaris*-gnu)
12695 # GNU and its variants, using gnu ld.so (Glibc)
12696 lt_cv_sys_dlopen_deplibs=yes
12697 ;;
12698 hpux10*|hpux11*)
12699 lt_cv_sys_dlopen_deplibs=yes
12700 ;;
12701 interix*)
12702 lt_cv_sys_dlopen_deplibs=yes
12703 ;;
12704 irix[12345]*|irix6.[01]*)
12705 # Catch all versions of IRIX before 6.2, and indicate that we don't
12706 # know how it worked for any of those versions.
12707 lt_cv_sys_dlopen_deplibs=unknown
12708 ;;
12709 irix*)
12710 # The case above catches anything before 6.2, and it's known that
12711 # at 6.2 and later dlopen does load deplibs.
12712 lt_cv_sys_dlopen_deplibs=yes
12713 ;;
12714 netbsd*)
12715 lt_cv_sys_dlopen_deplibs=yes
12716 ;;
12717 openbsd*)
12718 lt_cv_sys_dlopen_deplibs=yes
12719 ;;
12720 osf[1234]*)
12721 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
12722 # it did *not* use an RPATH in a shared library to find objects the
12723 # library depends on, so we explicitly say `no'.
12724 lt_cv_sys_dlopen_deplibs=no
12725 ;;
12726 osf5.0|osf5.0a|osf5.1)
12727 # dlopen *does* load deplibs and with the right loader patch applied
12728 # it even uses RPATH in a shared library to search for shared objects
12729 # that the library depends on, but there's no easy way to know if that
12730 # patch is installed. Since this is the case, all we can really
12731 # say is unknown -- it depends on the patch being installed. If
12732 # it is, this changes to `yes'. Without it, it would be `no'.
12733 lt_cv_sys_dlopen_deplibs=unknown
12734 ;;
12735 osf*)
12736 # the two cases above should catch all versions of osf <= 5.1. Read
12737 # the comments above for what we know about them.
12738 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
12739 # is used to find them so we can finally say `yes'.
12740 lt_cv_sys_dlopen_deplibs=yes
12741 ;;
12742 qnx*)
12743 lt_cv_sys_dlopen_deplibs=yes
12744 ;;
12745 solaris*)
12746 lt_cv_sys_dlopen_deplibs=yes
12747 ;;
12748 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12749 libltdl_cv_sys_dlopen_deplibs=yes
12750 ;;
12751 esac
12752
12753 fi
12754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlopen_deplibs" >&5
12755 $as_echo "$lt_cv_sys_dlopen_deplibs" >&6; }
12756 if test "$lt_cv_sys_dlopen_deplibs" != yes; then
12757
12758 $as_echo "#define LTDL_DLOPEN_DEPLIBS 1" >>confdefs.h
12759
12760 fi
12761
12762 :
12763
12764 for ac_header in argz.h
12765 do :
12766 ac_fn_c_check_header_compile "$LINENO" "argz.h" "ac_cv_header_argz_h" "$ac_includes_default
12767 "
12768 if test "x$ac_cv_header_argz_h" = xyes; then :
12769 cat >>confdefs.h <<_ACEOF
12770 #define HAVE_ARGZ_H 1
12771 _ACEOF
12772
12773 fi
12774
12775 done
12776
12777
12778 ac_fn_c_check_type "$LINENO" "error_t" "ac_cv_type_error_t" "#if defined(HAVE_ARGZ_H)
12779 # include <argz.h>
12780 #endif
12781 "
12782 if test "x$ac_cv_type_error_t" = xyes; then :
12783
12784 cat >>confdefs.h <<_ACEOF
12785 #define HAVE_ERROR_T 1
12786 _ACEOF
12787
12788
12789 else
12790
12791 $as_echo "#define error_t int" >>confdefs.h
12792
12793
12794 $as_echo "#define __error_t_defined 1" >>confdefs.h
12795
12796 fi
12797
12798
12799 ARGZ_H=
12800 for ac_func in argz_add argz_append argz_count argz_create_sep argz_insert \
12801 argz_next argz_stringify
12802 do :
12803 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12804 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12805 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12806 cat >>confdefs.h <<_ACEOF
12807 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12808 _ACEOF
12809
12810 else
12811 ARGZ_H=argz.h;
12812
12813 _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
12814
12815 fi
12816 done
12817
12818
12819 if test -z "$ARGZ_H"; then :
12820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if argz actually works" >&5
12821 $as_echo_n "checking if argz actually works... " >&6; }
12822 if ${lt_cv_sys_argz_works+:} false; then :
12823 $as_echo_n "(cached) " >&6
12824 else
12825 case $host_os in #(
12826 *cygwin*)
12827 lt_cv_sys_argz_works=no
12828 if test "$cross_compiling" != no; then
12829 lt_cv_sys_argz_works="guessing no"
12830 else
12831 lt_sed_extract_leading_digits='s/^\([0-9\.]*\).*/\1/'
12832 save_IFS=$IFS
12833 IFS=-.
12834 set x `uname -r | sed -e "$lt_sed_extract_leading_digits"`
12835 IFS=$save_IFS
12836 lt_os_major=${2-0}
12837 lt_os_minor=${3-0}
12838 lt_os_micro=${4-0}
12839 if test "$lt_os_major" -gt 1 \
12840 || { test "$lt_os_major" -eq 1 \
12841 && { test "$lt_os_minor" -gt 5 \
12842 || { test "$lt_os_minor" -eq 5 \
12843 && test "$lt_os_micro" -gt 24; }; }; }; then
12844 lt_cv_sys_argz_works=yes
12845 fi
12846 fi
12847 ;; #(
12848 *) lt_cv_sys_argz_works=yes ;;
12849 esac
12850 fi
12851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_argz_works" >&5
12852 $as_echo "$lt_cv_sys_argz_works" >&6; }
12853 if test "$lt_cv_sys_argz_works" = yes; then :
12854
12855 $as_echo "#define HAVE_WORKING_ARGZ 1" >>confdefs.h
12856
12857 else
12858 ARGZ_H=argz.h
12859
12860
12861 _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
12862
12863 fi
12864 fi
12865
12866
12867
12868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libtool supports -dlopen/-dlpreopen" >&5
12869 $as_echo_n "checking whether libtool supports -dlopen/-dlpreopen... " >&6; }
12870 if ${libltdl_cv_preloaded_symbols+:} false; then :
12871 $as_echo_n "(cached) " >&6
12872 else
12873 if test -n "$lt_cv_sys_global_symbol_pipe"; then
12874 libltdl_cv_preloaded_symbols=yes
12875 else
12876 libltdl_cv_preloaded_symbols=no
12877 fi
12878
12879 fi
12880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_preloaded_symbols" >&5
12881 $as_echo "$libltdl_cv_preloaded_symbols" >&6; }
12882 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
12883
12884 $as_echo "#define HAVE_PRELOADED_SYMBOLS 1" >>confdefs.h
12885
12886 fi
12887
12888 # Set options
12889
12890
12891
12892
12893
12894
12895
12896
12897
12898
12899
12900 # Check whether --with-included_ltdl was given.
12901 if test "${with_included_ltdl+set}" = set; then :
12902 withval=$with_included_ltdl;
12903 fi
12904
12905
12906 if test "x$with_included_ltdl" != xyes; then
12907 # We are not being forced to use the included libltdl sources, so
12908 # decide whether there is a useful installed version we can use.
12909 ac_fn_c_check_header_compile "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default
12910
12911 "
12912 if test "x$ac_cv_header_ltdl_h" = xyes; then :
12913 ac_fn_c_check_decl "$LINENO" "lt_dlinterface_register" "ac_cv_have_decl_lt_dlinterface_register" "$ac_includes_default
12914 #include <ltdl.h>
12915 "
12916 if test "x$ac_cv_have_decl_lt_dlinterface_register" = xyes; then :
12917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dladvise_preload in -lltdl" >&5
12918 $as_echo_n "checking for lt_dladvise_preload in -lltdl... " >&6; }
12919 if ${ac_cv_lib_ltdl_lt_dladvise_preload+:} false; then :
12920 $as_echo_n "(cached) " >&6
12921 else
12922 ac_check_lib_save_LIBS=$LIBS
12923 LIBS="-lltdl $LIBS"
12924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12925 /* end confdefs.h. */
12926
12927 /* Override any GCC internal prototype to avoid an error.
12928 Use char because int might match the return type of a GCC
12929 builtin and then its argument prototype would still apply. */
12930 #ifdef __cplusplus
12931 extern "C"
12932 #endif
12933 char lt_dladvise_preload ();
12934 int
12935 main ()
12936 {
12937 return lt_dladvise_preload ();
12938 ;
12939 return 0;
12940 }
12941 _ACEOF
12942 if ac_fn_c_try_link "$LINENO"; then :
12943 ac_cv_lib_ltdl_lt_dladvise_preload=yes
12944 else
12945 ac_cv_lib_ltdl_lt_dladvise_preload=no
12946 fi
12947 rm -f core conftest.err conftest.$ac_objext \
12948 conftest$ac_exeext conftest.$ac_ext
12949 LIBS=$ac_check_lib_save_LIBS
12950 fi
12951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dladvise_preload" >&5
12952 $as_echo "$ac_cv_lib_ltdl_lt_dladvise_preload" >&6; }
12953 if test "x$ac_cv_lib_ltdl_lt_dladvise_preload" = xyes; then :
12954 with_included_ltdl=no
12955 else
12956 with_included_ltdl=yes
12957 fi
12958
12959 else
12960 with_included_ltdl=yes
12961 fi
12962
12963 else
12964 with_included_ltdl=yes
12965 fi
12966
12967
12968 fi
12969
12970
12971
12972
12973 # Check whether --with-ltdl_include was given.
12974 if test "${with_ltdl_include+set}" = set; then :
12975 withval=$with_ltdl_include;
12976 fi
12977
12978
12979 if test -n "$with_ltdl_include"; then
12980 if test -f "$with_ltdl_include/ltdl.h"; then :
12981 else
12982 as_fn_error $? "invalid ltdl include directory: \`$with_ltdl_include'" "$LINENO" 5
12983 fi
12984 else
12985 with_ltdl_include=no
12986 fi
12987
12988
12989 # Check whether --with-ltdl_lib was given.
12990 if test "${with_ltdl_lib+set}" = set; then :
12991 withval=$with_ltdl_lib;
12992 fi
12993
12994
12995 if test -n "$with_ltdl_lib"; then
12996 if test -f "$with_ltdl_lib/libltdl.la"; then :
12997 else
12998 as_fn_error $? "invalid ltdl library directory: \`$with_ltdl_lib'" "$LINENO" 5
12999 fi
13000 else
13001 with_ltdl_lib=no
13002 fi
13003
13004 case ,$with_included_ltdl,$with_ltdl_include,$with_ltdl_lib, in
13005 ,yes,no,no,)
13006 case $enable_ltdl_convenience in
13007 no) as_fn_error $? "this package needs a convenience libltdl" "$LINENO" 5 ;;
13008 "") enable_ltdl_convenience=yes
13009 ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
13010 esac
13011 LIBLTDL='${top_build_prefix}'"${lt_ltdl_dir+$lt_ltdl_dir/}libltdlc.la"
13012 LTDLDEPS=$LIBLTDL
13013 LTDLINCL='-I${top_srcdir}'"${lt_ltdl_dir+/$lt_ltdl_dir}"
13014
13015
13016
13017
13018
13019 # For backwards non-gettext consistent compatibility...
13020 INCLTDL="$LTDLINCL"
13021
13022
13023 ;;
13024 ,no,no,no,)
13025 # If the included ltdl is not to be used, then use the
13026 # preinstalled libltdl we found.
13027
13028 $as_echo "#define HAVE_LTDL 1" >>confdefs.h
13029
13030 LIBLTDL=-lltdl
13031 LTDLDEPS=
13032 LTDLINCL=
13033 ;;
13034 ,no*,no,*)
13035 as_fn_error $? "\`--with-ltdl-include' and \`--with-ltdl-lib' options must be used together" "$LINENO" 5
13036 ;;
13037 *) with_included_ltdl=no
13038 LIBLTDL="-L$with_ltdl_lib -lltdl"
13039 LTDLDEPS=
13040 LTDLINCL="-I$with_ltdl_include"
13041 ;;
13042 esac
13043 INCLTDL="$LTDLINCL"
13044
13045 # Report our decision...
13046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl headers" >&5
13047 $as_echo_n "checking where to find libltdl headers... " >&6; }
13048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LTDLINCL" >&5
13049 $as_echo "$LTDLINCL" >&6; }
13050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl library" >&5
13051 $as_echo_n "checking where to find libltdl library... " >&6; }
13052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBLTDL" >&5
13053 $as_echo "$LIBLTDL" >&6; }
13054
13055
13056
13057 # Check whether --enable-ltdl-install was given.
13058 if test "${enable_ltdl_install+set}" = set; then :
13059 enableval=$enable_ltdl_install;
13060 fi
13061
13062
13063 case ,${enable_ltdl_install},${enable_ltdl_convenience} in
13064 *yes*) ;;
13065 *) enable_ltdl_convenience=yes ;;
13066 esac
13067
13068 if test x"${enable_ltdl_install-no}" != xno; then
13069 INSTALL_LTDL_TRUE=
13070 INSTALL_LTDL_FALSE='#'
13071 else
13072 INSTALL_LTDL_TRUE='#'
13073 INSTALL_LTDL_FALSE=
13074 fi
13075
13076 if test x"${enable_ltdl_convenience-no}" != xno; then
13077 CONVENIENCE_LTDL_TRUE=
13078 CONVENIENCE_LTDL_FALSE='#'
13079 else
13080 CONVENIENCE_LTDL_TRUE='#'
13081 CONVENIENCE_LTDL_FALSE=
13082 fi
13083
13084
13085
13086
13087
13088
13089 # In order that ltdl.c can compile, find out the first AC_CONFIG_HEADERS
13090 # the user used. This is so that ltdl.h can pick up the parent projects
13091 # config.h file, The first file in AC_CONFIG_HEADERS must contain the
13092 # definitions required by ltdl.c.
13093 # FIXME: Remove use of undocumented AC_LIST_HEADERS (2.59 compatibility).
13094
13095
13096
13097 for ac_header in unistd.h dl.h sys/dl.h dld.h mach-o/dyld.h dirent.h
13098 do :
13099 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13100 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
13101 "
13102 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13103 cat >>confdefs.h <<_ACEOF
13104 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13105 _ACEOF
13106
13107 fi
13108
13109 done
13110
13111
13112 for ac_func in closedir opendir readdir
13113 do :
13114 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13115 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13116 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13117 cat >>confdefs.h <<_ACEOF
13118 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13119 _ACEOF
13120
13121 else
13122
13123
13124 _LT_LIBOBJS="$_LT_LIBOBJS lt__dirent.$ac_objext"
13125
13126 fi
13127 done
13128
13129 for ac_func in strlcat strlcpy
13130 do :
13131 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13132 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13133 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13134 cat >>confdefs.h <<_ACEOF
13135 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13136 _ACEOF
13137
13138 else
13139
13140
13141 _LT_LIBOBJS="$_LT_LIBOBJS lt__strl.$ac_objext"
13142
13143 fi
13144 done
13145
13146
13147
13148 cat >>confdefs.h <<_ACEOF
13149 #define LT_LIBEXT "$libext"
13150 _ACEOF
13151
13152
13153 name=
13154 eval "lt_libprefix=\"$libname_spec\""
13155
13156 cat >>confdefs.h <<_ACEOF
13157 #define LT_LIBPREFIX "$lt_libprefix"
13158 _ACEOF
13159
13160
13161 name=ltdl
13162 eval "LTDLOPEN=\"$libname_spec\""
13163
13164
13165
13166
13167
13168
13169
13170
13171 # Only expand once:
13172
13173
13174 LIBTOOL="$LIBTOOL --silent"
13175
13176 # Checks for libraries.
13177
13178
13179 if test "X$CC" != "X"; then
13180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fstack-protector" >&5
13181 $as_echo_n "checking whether ${CC} accepts -fstack-protector... " >&6; }
13182 if ${ssp_cv_cc+:} false; then :
13183 $as_echo_n "(cached) " >&6
13184 else
13185 ssp_old_cflags="$CFLAGS"
13186 CFLAGS="$CFLAGS -fstack-protector"
13187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13188 /* end confdefs.h. */
13189
13190 int
13191 main ()
13192 {
13193
13194 ;
13195 return 0;
13196 }
13197 _ACEOF
13198 if ac_fn_c_try_compile "$LINENO"; then :
13199 ssp_cv_cc=yes
13200 else
13201 ssp_cv_cc=no
13202 fi
13203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13204 CFLAGS="$ssp_old_cflags"
13205
13206 fi
13207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ssp_cv_cc" >&5
13208 $as_echo "$ssp_cv_cc" >&6; }
13209 if test $ssp_cv_cc = yes; then
13210 CFLAGS="$CFLAGS -fstack-protector"
13211
13212 $as_echo "#define ENABLE_SSP_CC 1" >>confdefs.h
13213
13214 fi
13215 fi
13216
13217
13218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts " >&5
13219 $as_echo_n "checking whether C compiler accepts ... " >&6; }
13220 if ${ax_cv_check_cflags__+:} false; then :
13221 $as_echo_n "(cached) " >&6
13222 else
13223
13224 ax_check_save_flags=$CFLAGS
13225 CFLAGS="$CFLAGS "
13226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13227 /* end confdefs.h. */
13228
13229 int
13230 main ()
13231 {
13232
13233 ;
13234 return 0;
13235 }
13236 _ACEOF
13237 if ac_fn_c_try_compile "$LINENO"; then :
13238 ax_cv_check_cflags__=yes
13239 else
13240 ax_cv_check_cflags__=no
13241 fi
13242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13243 CFLAGS=$ax_check_save_flags
13244 fi
13245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags__" >&5
13246 $as_echo "$ax_cv_check_cflags__" >&6; }
13247 if test x"$ax_cv_check_cflags__" = xyes; then :
13248 :
13249 else
13250 :
13251 fi
13252
13253 if ${CFLAGS+:} false; then :
13254 case " $CFLAGS " in
13255 *" "*)
13256 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains "; } >&5
13257 (: CFLAGS already contains ) 2>&5
13258 ac_status=$?
13259 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13260 test $ac_status = 0; }
13261 ;;
13262 *)
13263 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \""; } >&5
13264 (: CFLAGS="$CFLAGS ") 2>&5
13265 ac_status=$?
13266 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13267 test $ac_status = 0; }
13268 CFLAGS="$CFLAGS "
13269 ;;
13270 esac
13271 else
13272 CFLAGS=""
13273 fi
13274
13275
13276
13277 for flag in -fno-strict-aliasing; do
13278 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
13279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
13280 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
13281 if eval \${$as_CACHEVAR+:} false; then :
13282 $as_echo_n "(cached) " >&6
13283 else
13284
13285 ax_check_save_flags=$CFLAGS
13286 CFLAGS="$CFLAGS $flag"
13287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13288 /* end confdefs.h. */
13289
13290 int
13291 main ()
13292 {
13293
13294 ;
13295 return 0;
13296 }
13297 _ACEOF
13298 if ac_fn_c_try_compile "$LINENO"; then :
13299 eval "$as_CACHEVAR=yes"
13300 else
13301 eval "$as_CACHEVAR=no"
13302 fi
13303 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13304 CFLAGS=$ax_check_save_flags
13305 fi
13306 eval ac_res=\$$as_CACHEVAR
13307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13308 $as_echo "$ac_res" >&6; }
13309 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
13310 if ${CFLAGS+:} false; then :
13311 case " $CFLAGS " in
13312 *" $flag "*)
13313 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
13314 (: CFLAGS already contains $flag) 2>&5
13315 ac_status=$?
13316 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13317 test $ac_status = 0; }
13318 ;;
13319 *)
13320 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
13321 (: CFLAGS="$CFLAGS $flag") 2>&5
13322 ac_status=$?
13323 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13324 test $ac_status = 0; }
13325 CFLAGS="$CFLAGS $flag"
13326 ;;
13327 esac
13328 else
13329 CFLAGS="$flag"
13330 fi
13331
13332 else
13333 :
13334 fi
13335
13336 done
13337
13338
13339
13340 ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo"
13341 if test "x$ac_cv_func_getaddrinfo" = xyes; then :
13342
13343 else
13344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getaddrinfo" >&5
13345 $as_echo_n "checking for library containing getaddrinfo... " >&6; }
13346 if ${ac_cv_search_getaddrinfo+:} false; then :
13347 $as_echo_n "(cached) " >&6
13348 else
13349 ac_func_search_save_LIBS=$LIBS
13350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13351 /* end confdefs.h. */
13352
13353 /* Override any GCC internal prototype to avoid an error.
13354 Use char because int might match the return type of a GCC
13355 builtin and then its argument prototype would still apply. */
13356 #ifdef __cplusplus
13357 extern "C"
13358 #endif
13359 char getaddrinfo ();
13360 int
13361 main ()
13362 {
13363 return getaddrinfo ();
13364 ;
13365 return 0;
13366 }
13367 _ACEOF
13368 for ac_lib in '' nsl; do
13369 if test -z "$ac_lib"; then
13370 ac_res="none required"
13371 else
13372 ac_res=-l$ac_lib
13373 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13374 fi
13375 if ac_fn_c_try_link "$LINENO"; then :
13376 ac_cv_search_getaddrinfo=$ac_res
13377 fi
13378 rm -f core conftest.err conftest.$ac_objext \
13379 conftest$ac_exeext
13380 if ${ac_cv_search_getaddrinfo+:} false; then :
13381 break
13382 fi
13383 done
13384 if ${ac_cv_search_getaddrinfo+:} false; then :
13385
13386 else
13387 ac_cv_search_getaddrinfo=no
13388 fi
13389 rm conftest.$ac_ext
13390 LIBS=$ac_func_search_save_LIBS
13391 fi
13392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getaddrinfo" >&5
13393 $as_echo "$ac_cv_search_getaddrinfo" >&6; }
13394 ac_res=$ac_cv_search_getaddrinfo
13395 if test "$ac_res" != no; then :
13396 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13397
13398 fi
13399
13400 fi
13401
13402 ac_fn_c_check_func "$LINENO" "getnameinfo" "ac_cv_func_getnameinfo"
13403 if test "x$ac_cv_func_getnameinfo" = xyes; then :
13404
13405 else
13406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getnameinfo" >&5
13407 $as_echo_n "checking for library containing getnameinfo... " >&6; }
13408 if ${ac_cv_search_getnameinfo+:} false; then :
13409 $as_echo_n "(cached) " >&6
13410 else
13411 ac_func_search_save_LIBS=$LIBS
13412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13413 /* end confdefs.h. */
13414
13415 /* Override any GCC internal prototype to avoid an error.
13416 Use char because int might match the return type of a GCC
13417 builtin and then its argument prototype would still apply. */
13418 #ifdef __cplusplus
13419 extern "C"
13420 #endif
13421 char getnameinfo ();
13422 int
13423 main ()
13424 {
13425 return getnameinfo ();
13426 ;
13427 return 0;
13428 }
13429 _ACEOF
13430 for ac_lib in '' nsl; do
13431 if test -z "$ac_lib"; then
13432 ac_res="none required"
13433 else
13434 ac_res=-l$ac_lib
13435 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13436 fi
13437 if ac_fn_c_try_link "$LINENO"; then :
13438 ac_cv_search_getnameinfo=$ac_res
13439 fi
13440 rm -f core conftest.err conftest.$ac_objext \
13441 conftest$ac_exeext
13442 if ${ac_cv_search_getnameinfo+:} false; then :
13443 break
13444 fi
13445 done
13446 if ${ac_cv_search_getnameinfo+:} false; then :
13447
13448 else
13449 ac_cv_search_getnameinfo=no
13450 fi
13451 rm conftest.$ac_ext
13452 LIBS=$ac_func_search_save_LIBS
13453 fi
13454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getnameinfo" >&5
13455 $as_echo "$ac_cv_search_getnameinfo" >&6; }
13456 ac_res=$ac_cv_search_getnameinfo
13457 if test "$ac_res" != no; then :
13458 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13459
13460 fi
13461
13462 fi
13463
13464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
13465 $as_echo_n "checking for library containing socket... " >&6; }
13466 if ${ac_cv_search_socket+:} false; then :
13467 $as_echo_n "(cached) " >&6
13468 else
13469 ac_func_search_save_LIBS=$LIBS
13470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13471 /* end confdefs.h. */
13472
13473 /* Override any GCC internal prototype to avoid an error.
13474 Use char because int might match the return type of a GCC
13475 builtin and then its argument prototype would still apply. */
13476 #ifdef __cplusplus
13477 extern "C"
13478 #endif
13479 char socket ();
13480 int
13481 main ()
13482 {
13483 return socket ();
13484 ;
13485 return 0;
13486 }
13487 _ACEOF
13488 for ac_lib in '' socket; do
13489 if test -z "$ac_lib"; then
13490 ac_res="none required"
13491 else
13492 ac_res=-l$ac_lib
13493 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13494 fi
13495 if ac_fn_c_try_link "$LINENO"; then :
13496 ac_cv_search_socket=$ac_res
13497 fi
13498 rm -f core conftest.err conftest.$ac_objext \
13499 conftest$ac_exeext
13500 if ${ac_cv_search_socket+:} false; then :
13501 break
13502 fi
13503 done
13504 if ${ac_cv_search_socket+:} false; then :
13505
13506 else
13507 ac_cv_search_socket=no
13508 fi
13509 rm conftest.$ac_ext
13510 LIBS=$ac_func_search_save_LIBS
13511 fi
13512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
13513 $as_echo "$ac_cv_search_socket" >&6; }
13514 ac_res=$ac_cv_search_socket
13515 if test "$ac_res" != no; then :
13516 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13517
13518 else
13519 as_fn_error $? "socket library not found" "$LINENO" 5
13520 fi
13521
13522 ac_fn_c_check_type "$LINENO" "struct sockaddr_in" "ac_cv_type_struct_sockaddr_in" "#include <sys/types.h>
13523 #include <sys/socket.h>
13524 #include <netdb.h>
13525
13526 "
13527 if test "x$ac_cv_type_struct_sockaddr_in" = xyes; then :
13528
13529 cat >>confdefs.h <<_ACEOF
13530 #define HAVE_STRUCT_SOCKADDR_IN 1
13531 _ACEOF
13532
13533
13534 fi
13535 ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "#include <sys/types.h>
13536 #include <sys/socket.h>
13537 #include <netdb.h>
13538
13539 "
13540 if test "x$ac_cv_type_struct_sockaddr_storage" = xyes; then :
13541
13542 cat >>confdefs.h <<_ACEOF
13543 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
13544 _ACEOF
13545
13546
13547 fi
13548 ac_fn_c_check_type "$LINENO" "struct addrinfo" "ac_cv_type_struct_addrinfo" "#include <sys/types.h>
13549 #include <sys/socket.h>
13550 #include <netdb.h>
13551
13552 "
13553 if test "x$ac_cv_type_struct_addrinfo" = xyes; then :
13554
13555 cat >>confdefs.h <<_ACEOF
13556 #define HAVE_STRUCT_ADDRINFO 1
13557 _ACEOF
13558
13559
13560 fi
13561
13562 ac_fn_c_check_member "$LINENO" "struct sockaddr_in" "sin_len" "ac_cv_member_struct_sockaddr_in_sin_len" "#include <sys/types.h>
13563 <sys/socket.h>
13564 "
13565 if test "x$ac_cv_member_struct_sockaddr_in_sin_len" = xyes; then :
13566
13567 cat >>confdefs.h <<_ACEOF
13568 #define HAVE_STRUCT_SOCKADDR_IN_SIN_LEN 1
13569 _ACEOF
13570
13571
13572 fi
13573
13574
13575
13576 ac_fn_c_check_type "$LINENO" "struct sockaddr_in6" "ac_cv_type_struct_sockaddr_in6" "#include <netinet/in.h>
13577 "
13578 if test "x$ac_cv_type_struct_sockaddr_in6" = xyes; then :
13579
13580 $as_echo "#define IPV6 1" >>confdefs.h
13581
13582 fi
13583
13584
13585
13586 # Checks for typedefs, structures, and compiler characteristics.
13587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
13588 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
13589 if ${ac_cv_c_bigendian+:} false; then :
13590 $as_echo_n "(cached) " >&6
13591 else
13592 ac_cv_c_bigendian=unknown
13593 # See if we're dealing with a universal compiler.
13594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13595 /* end confdefs.h. */
13596 #ifndef __APPLE_CC__
13597 not a universal capable compiler
13598 #endif
13599 typedef int dummy;
13600
13601 _ACEOF
13602 if ac_fn_c_try_compile "$LINENO"; then :
13603
13604 # Check for potential -arch flags. It is not universal unless
13605 # there are at least two -arch flags with different values.
13606 ac_arch=
13607 ac_prev=
13608 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
13609 if test -n "$ac_prev"; then
13610 case $ac_word in
13611 i?86 | x86_64 | ppc | ppc64)
13612 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
13613 ac_arch=$ac_word
13614 else
13615 ac_cv_c_bigendian=universal
13616 break
13617 fi
13618 ;;
13619 esac
13620 ac_prev=
13621 elif test "x$ac_word" = "x-arch"; then
13622 ac_prev=arch
13623 fi
13624 done
13625 fi
13626 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13627 if test $ac_cv_c_bigendian = unknown; then
13628 # See if sys/param.h defines the BYTE_ORDER macro.
13629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13630 /* end confdefs.h. */
13631 #include <sys/types.h>
13632 #include <sys/param.h>
13633
13634 int
13635 main ()
13636 {
13637 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
13638 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
13639 && LITTLE_ENDIAN)
13640 bogus endian macros
13641 #endif
13642
13643 ;
13644 return 0;
13645 }
13646 _ACEOF
13647 if ac_fn_c_try_compile "$LINENO"; then :
13648 # It does; now see whether it defined to BIG_ENDIAN or not.
13649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13650 /* end confdefs.h. */
13651 #include <sys/types.h>
13652 #include <sys/param.h>
13653
13654 int
13655 main ()
13656 {
13657 #if BYTE_ORDER != BIG_ENDIAN
13658 not big endian
13659 #endif
13660
13661 ;
13662 return 0;
13663 }
13664 _ACEOF
13665 if ac_fn_c_try_compile "$LINENO"; then :
13666 ac_cv_c_bigendian=yes
13667 else
13668 ac_cv_c_bigendian=no
13669 fi
13670 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13671 fi
13672 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13673 fi
13674 if test $ac_cv_c_bigendian = unknown; then
13675 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
13676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13677 /* end confdefs.h. */
13678 #include <limits.h>
13679
13680 int
13681 main ()
13682 {
13683 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
13684 bogus endian macros
13685 #endif
13686
13687 ;
13688 return 0;
13689 }
13690 _ACEOF
13691 if ac_fn_c_try_compile "$LINENO"; then :
13692 # It does; now see whether it defined to _BIG_ENDIAN or not.
13693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13694 /* end confdefs.h. */
13695 #include <limits.h>
13696
13697 int
13698 main ()
13699 {
13700 #ifndef _BIG_ENDIAN
13701 not big endian
13702 #endif
13703
13704 ;
13705 return 0;
13706 }
13707 _ACEOF
13708 if ac_fn_c_try_compile "$LINENO"; then :
13709 ac_cv_c_bigendian=yes
13710 else
13711 ac_cv_c_bigendian=no
13712 fi
13713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13714 fi
13715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13716 fi
13717 if test $ac_cv_c_bigendian = unknown; then
13718 # Compile a test program.
13719 if test "$cross_compiling" = yes; then :
13720 # Try to guess by grepping values from an object file.
13721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13722 /* end confdefs.h. */
13723 short int ascii_mm[] =
13724 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
13725 short int ascii_ii[] =
13726 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
13727 int use_ascii (int i) {
13728 return ascii_mm[i] + ascii_ii[i];
13729 }
13730 short int ebcdic_ii[] =
13731 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
13732 short int ebcdic_mm[] =
13733 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
13734 int use_ebcdic (int i) {
13735 return ebcdic_mm[i] + ebcdic_ii[i];
13736 }
13737 extern int foo;
13738
13739 int
13740 main ()
13741 {
13742 return use_ascii (foo) == use_ebcdic (foo);
13743 ;
13744 return 0;
13745 }
13746 _ACEOF
13747 if ac_fn_c_try_compile "$LINENO"; then :
13748 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
13749 ac_cv_c_bigendian=yes
13750 fi
13751 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
13752 if test "$ac_cv_c_bigendian" = unknown; then
13753 ac_cv_c_bigendian=no
13754 else
13755 # finding both strings is unlikely to happen, but who knows?
13756 ac_cv_c_bigendian=unknown
13757 fi
13758 fi
13759 fi
13760 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13761 else
13762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13763 /* end confdefs.h. */
13764 $ac_includes_default
13765 int
13766 main ()
13767 {
13768
13769 /* Are we little or big endian? From Harbison&Steele. */
13770 union
13771 {
13772 long int l;
13773 char c[sizeof (long int)];
13774 } u;
13775 u.l = 1;
13776 return u.c[sizeof (long int) - 1] == 1;
13777
13778 ;
13779 return 0;
13780 }
13781 _ACEOF
13782 if ac_fn_c_try_run "$LINENO"; then :
13783 ac_cv_c_bigendian=no
13784 else
13785 ac_cv_c_bigendian=yes
13786 fi
13787 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13788 conftest.$ac_objext conftest.beam conftest.$ac_ext
13789 fi
13790
13791 fi
13792 fi
13793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
13794 $as_echo "$ac_cv_c_bigendian" >&6; }
13795 case $ac_cv_c_bigendian in #(
13796 yes)
13797 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
13798 ;; #(
13799 no)
13800 ;; #(
13801 universal)
13802
13803 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
13804
13805 ;; #(
13806 *)
13807 as_fn_error $? "unknown endianness
13808 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
13809 esac
13810
13811
13812 # Checks for library functions.
13813
13814
13815
13816 for ac_func in $ac_func_list
13817 do :
13818 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13819 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13820 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13821 cat >>confdefs.h <<_ACEOF
13822 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13823 _ACEOF
13824
13825 fi
13826 done
13827
13828
13829
13830
13831
13832
13833
13834
13835
13836
13837
13838 # Checks for header files.
13839
13840
13841
13842 for ac_header in $ac_header_list
13843 do :
13844 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13845 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
13846 "
13847 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13848 cat >>confdefs.h <<_ACEOF
13849 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13850 _ACEOF
13851
13852 fi
13853
13854 done
13855
13856
13857
13858
13859
13860
13861
13862
13863
13864
13865
13866
13867
13868
13869
13870
13871
13872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crypt" >&5
13873 $as_echo_n "checking for library containing crypt... " >&6; }
13874 if ${ac_cv_search_crypt+:} false; then :
13875 $as_echo_n "(cached) " >&6
13876 else
13877 ac_func_search_save_LIBS=$LIBS
13878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13879 /* end confdefs.h. */
13880
13881 /* Override any GCC internal prototype to avoid an error.
13882 Use char because int might match the return type of a GCC
13883 builtin and then its argument prototype would still apply. */
13884 #ifdef __cplusplus
13885 extern "C"
13886 #endif
13887 char crypt ();
13888 int
13889 main ()
13890 {
13891 return crypt ();
13892 ;
13893 return 0;
13894 }
13895 _ACEOF
13896 for ac_lib in '' crypt; do
13897 if test -z "$ac_lib"; then
13898 ac_res="none required"
13899 else
13900 ac_res=-l$ac_lib
13901 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13902 fi
13903 if ac_fn_c_try_link "$LINENO"; then :
13904 ac_cv_search_crypt=$ac_res
13905 fi
13906 rm -f core conftest.err conftest.$ac_objext \
13907 conftest$ac_exeext
13908 if ${ac_cv_search_crypt+:} false; then :
13909 break
13910 fi
13911 done
13912 if ${ac_cv_search_crypt+:} false; then :
13913
13914 else
13915 ac_cv_search_crypt=no
13916 fi
13917 rm conftest.$ac_ext
13918 LIBS=$ac_func_search_save_LIBS
13919 fi
13920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypt" >&5
13921 $as_echo "$ac_cv_search_crypt" >&6; }
13922 ac_res=$ac_cv_search_crypt
13923 if test "$ac_res" != no; then :
13924 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13925
13926 fi
13927
13928
13929 # Check whether --enable-libgeoip was given.
13930 if test "${enable_libgeoip+set}" = set; then :
13931 enableval=$enable_libgeoip;
13932 else
13933 ac_fn_c_check_header_mongrel "$LINENO" "GeoIP.h" "ac_cv_header_GeoIP_h" "$ac_includes_default"
13934 if test "x$ac_cv_header_GeoIP_h" = xyes; then :
13935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing GeoIP_id_by_ipnum_v6_gl" >&5
13936 $as_echo_n "checking for library containing GeoIP_id_by_ipnum_v6_gl... " >&6; }
13937 if ${ac_cv_search_GeoIP_id_by_ipnum_v6_gl+:} false; then :
13938 $as_echo_n "(cached) " >&6
13939 else
13940 ac_func_search_save_LIBS=$LIBS
13941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13942 /* end confdefs.h. */
13943
13944 /* Override any GCC internal prototype to avoid an error.
13945 Use char because int might match the return type of a GCC
13946 builtin and then its argument prototype would still apply. */
13947 #ifdef __cplusplus
13948 extern "C"
13949 #endif
13950 char GeoIP_id_by_ipnum_v6_gl ();
13951 int
13952 main ()
13953 {
13954 return GeoIP_id_by_ipnum_v6_gl ();
13955 ;
13956 return 0;
13957 }
13958 _ACEOF
13959 for ac_lib in '' GeoIP; do
13960 if test -z "$ac_lib"; then
13961 ac_res="none required"
13962 else
13963 ac_res=-l$ac_lib
13964 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13965 fi
13966 if ac_fn_c_try_link "$LINENO"; then :
13967 ac_cv_search_GeoIP_id_by_ipnum_v6_gl=$ac_res
13968 fi
13969 rm -f core conftest.err conftest.$ac_objext \
13970 conftest$ac_exeext
13971 if ${ac_cv_search_GeoIP_id_by_ipnum_v6_gl+:} false; then :
13972 break
13973 fi
13974 done
13975 if ${ac_cv_search_GeoIP_id_by_ipnum_v6_gl+:} false; then :
13976
13977 else
13978 ac_cv_search_GeoIP_id_by_ipnum_v6_gl=no
13979 fi
13980 rm conftest.$ac_ext
13981 LIBS=$ac_func_search_save_LIBS
13982 fi
13983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_GeoIP_id_by_ipnum_v6_gl" >&5
13984 $as_echo "$ac_cv_search_GeoIP_id_by_ipnum_v6_gl" >&6; }
13985 ac_res=$ac_cv_search_GeoIP_id_by_ipnum_v6_gl
13986 if test "$ac_res" != no; then :
13987 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13988
13989 $as_echo "#define HAVE_LIBGEOIP 1" >>confdefs.h
13990
13991 fi
13992
13993 fi
13994
13995
13996 fi
13997
13998
13999
14000 # Check whether --enable-openssl was given.
14001 if test "${enable_openssl+set}" = set; then :
14002 enableval=$enable_openssl; cf_enable_openssl=$enableval
14003 else
14004 cf_enable_openssl="auto"
14005 fi
14006
14007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL" >&5
14008 $as_echo_n "checking for OpenSSL... " >&6; }
14009 if test "$cf_enable_openssl" != "no"; then
14010 cf_openssl_basedir=""
14011 if test "$cf_enable_openssl" != "auto" &&
14012 test "$cf_enable_openssl" != "yes"; then
14013 cf_openssl_basedir="${cf_enable_openssl}"
14014 else
14015 for dirs in /usr/local/ssl /usr/pkg /usr/local /usr/lib /usr/lib/ssl\
14016 /opt /opt/openssl /usr/local/openssl; do
14017 if test -f "${dirs}/include/openssl/opensslv.h"; then
14018 cf_openssl_basedir="${dirs}"
14019 break
14020 fi
14021 done
14022 unset dirs
14023 fi
14024
14025 if test ! -z "$cf_openssl_basedir"; then
14026 if test -f "${cf_openssl_basedir}/include/openssl/opensslv.h"; then
14027 CPPFLAGS="-I${cf_openssl_basedir}/include $CPPFLAGS"
14028 LDFLAGS="-L${cf_openssl_basedir}/lib $LDFLAGS"
14029 else
14030 cf_openssl_basedir=""
14031 fi
14032 else
14033 if test -f "/usr/include/openssl/opensslv.h"; then
14034 cf_openssl_basedir="/usr"
14035 fi
14036 fi
14037
14038 if test ! -z "$cf_openssl_basedir"; then
14039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cf_openssl_basedir" >&5
14040 $as_echo "$cf_openssl_basedir" >&6; }
14041 cf_enable_openssl="yes"
14042 else
14043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found. Please check your path." >&5
14044 $as_echo "not found. Please check your path." >&6; }
14045 cf_enable_openssl="no"
14046 fi
14047 unset cf_openssl_basedir
14048 else
14049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
14050 $as_echo "disabled" >&6; }
14051 fi
14052
14053 if test "$cf_enable_openssl" != "no"; then :
14054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL 0.9.8 or above" >&5
14055 $as_echo_n "checking for OpenSSL 0.9.8 or above... " >&6; }
14056 if test "$cross_compiling" = yes; then :
14057 cf_openssl_version_ok=no
14058 else
14059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14060 /* end confdefs.h. */
14061
14062
14063 #include <openssl/opensslv.h>
14064 #include <stdlib.h>
14065 int
14066 main ()
14067 {
14068 exit(!(OPENSSL_VERSION_NUMBER >= 0x00908000));
14069 ;
14070 return 0;
14071 }
14072 _ACEOF
14073 if ac_fn_c_try_run "$LINENO"; then :
14074 cf_openssl_version_ok=yes
14075 else
14076 cf_openssl_version_ok=no
14077 fi
14078 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14079 conftest.$ac_objext conftest.beam conftest.$ac_ext
14080 fi
14081
14082
14083 if test "$cf_openssl_version_ok" = "yes"; then :
14084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
14085 $as_echo "found" >&6; }
14086
14087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSA_free in -lcrypto" >&5
14088 $as_echo_n "checking for RSA_free in -lcrypto... " >&6; }
14089 if ${ac_cv_lib_crypto_RSA_free+:} false; then :
14090 $as_echo_n "(cached) " >&6
14091 else
14092 ac_check_lib_save_LIBS=$LIBS
14093 LIBS="-lcrypto $LIBS"
14094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14095 /* end confdefs.h. */
14096
14097 /* Override any GCC internal prototype to avoid an error.
14098 Use char because int might match the return type of a GCC
14099 builtin and then its argument prototype would still apply. */
14100 #ifdef __cplusplus
14101 extern "C"
14102 #endif
14103 char RSA_free ();
14104 int
14105 main ()
14106 {
14107 return RSA_free ();
14108 ;
14109 return 0;
14110 }
14111 _ACEOF
14112 if ac_fn_c_try_link "$LINENO"; then :
14113 ac_cv_lib_crypto_RSA_free=yes
14114 else
14115 ac_cv_lib_crypto_RSA_free=no
14116 fi
14117 rm -f core conftest.err conftest.$ac_objext \
14118 conftest$ac_exeext conftest.$ac_ext
14119 LIBS=$ac_check_lib_save_LIBS
14120 fi
14121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_RSA_free" >&5
14122 $as_echo "$ac_cv_lib_crypto_RSA_free" >&6; }
14123 if test "x$ac_cv_lib_crypto_RSA_free" = xyes; then :
14124 cat >>confdefs.h <<_ACEOF
14125 #define HAVE_LIBCRYPTO 1
14126 _ACEOF
14127
14128 LIBS="-lcrypto $LIBS"
14129
14130 fi
14131
14132 if test "$ac_cv_lib_crypto_RSA_free" = "yes"; then :
14133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_connect in -lssl" >&5
14134 $as_echo_n "checking for SSL_connect in -lssl... " >&6; }
14135 if ${ac_cv_lib_ssl_SSL_connect+:} false; then :
14136 $as_echo_n "(cached) " >&6
14137 else
14138 ac_check_lib_save_LIBS=$LIBS
14139 LIBS="-lssl $LIBS"
14140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14141 /* end confdefs.h. */
14142
14143 /* Override any GCC internal prototype to avoid an error.
14144 Use char because int might match the return type of a GCC
14145 builtin and then its argument prototype would still apply. */
14146 #ifdef __cplusplus
14147 extern "C"
14148 #endif
14149 char SSL_connect ();
14150 int
14151 main ()
14152 {
14153 return SSL_connect ();
14154 ;
14155 return 0;
14156 }
14157 _ACEOF
14158 if ac_fn_c_try_link "$LINENO"; then :
14159 ac_cv_lib_ssl_SSL_connect=yes
14160 else
14161 ac_cv_lib_ssl_SSL_connect=no
14162 fi
14163 rm -f core conftest.err conftest.$ac_objext \
14164 conftest$ac_exeext conftest.$ac_ext
14165 LIBS=$ac_check_lib_save_LIBS
14166 fi
14167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_connect" >&5
14168 $as_echo "$ac_cv_lib_ssl_SSL_connect" >&6; }
14169 if test "x$ac_cv_lib_ssl_SSL_connect" = xyes; then :
14170 cat >>confdefs.h <<_ACEOF
14171 #define HAVE_LIBSSL 1
14172 _ACEOF
14173
14174 LIBS="-lssl $LIBS"
14175
14176 fi
14177
14178 fi
14179
14180 else
14181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - OpenSSL support disabled" >&5
14182 $as_echo "no - OpenSSL support disabled" >&6; }
14183 cf_enable_openssl="no"
14184 fi
14185 fi
14186
14187 if test "$ac_cv_lib_ssl_SSL_connect" = yes; then
14188 ENABLE_SSL_TRUE=
14189 ENABLE_SSL_FALSE='#'
14190 else
14191 ENABLE_SSL_TRUE='#'
14192 ENABLE_SSL_FALSE=
14193 fi
14194
14195
14196
14197 # Check whether --enable-assert was given.
14198 if test "${enable_assert+set}" = set; then :
14199 enableval=$enable_assert; assert=$enableval
14200 else
14201 assert=no
14202 fi
14203
14204
14205 if test "$assert" = "no"; then :
14206
14207 $as_echo "#define NDEBUG 1" >>confdefs.h
14208
14209 fi
14210
14211
14212 $as_echo "#define NICKNAMEHISTORYLENGTH 32768" >>confdefs.h
14213
14214
14215 $as_echo "#define MP_CHUNK_SIZE_CHANNEL 1024*1024" >>confdefs.h
14216
14217
14218 $as_echo "#define MP_CHUNK_SIZE_MEMBER 2048*1024" >>confdefs.h
14219
14220
14221 $as_echo "#define MP_CHUNK_SIZE_BAN 1024*1024" >>confdefs.h
14222
14223
14224 $as_echo "#define MP_CHUNK_SIZE_CLIENT 1024*1024" >>confdefs.h
14225
14226
14227 $as_echo "#define MP_CHUNK_SIZE_LCLIENT 512*1024" >>confdefs.h
14228
14229
14230 $as_echo "#define MP_CHUNK_SIZE_DNODE 32*1024" >>confdefs.h
14231
14232
14233 $as_echo "#define MP_CHUNK_SIZE_DBUF 512*1024" >>confdefs.h
14234
14235
14236 $as_echo "#define MP_CHUNK_SIZE_AUTH 128*1024" >>confdefs.h
14237
14238
14239 $as_echo "#define MP_CHUNK_SIZE_DNS 64*1024" >>confdefs.h
14240
14241
14242 $as_echo "#define MP_CHUNK_SIZE_WATCH 8*1024" >>confdefs.h
14243
14244
14245 $as_echo "#define MP_CHUNK_SIZE_NAMEHOST 64*1024" >>confdefs.h
14246
14247
14248 $as_echo "#define MP_CHUNK_SIZE_USERHOST 128*1024" >>confdefs.h
14249
14250
14251 $as_echo "#define MP_CHUNK_SIZE_IP_ENTRY 128*1024" >>confdefs.h
14252
14253
14254 # Argument processing.
14255
14256 desired_iopoll_mechanism="none"
14257 # Check whether --enable-kqueue was given.
14258 if test "${enable_kqueue+set}" = set; then :
14259 enableval=$enable_kqueue; desired_iopoll_mechanism="kqueue"
14260 fi
14261
14262 # Check whether --enable-epoll was given.
14263 if test "${enable_epoll+set}" = set; then :
14264 enableval=$enable_epoll; desired_iopoll_mechanism="epoll"
14265 fi
14266
14267 # Check whether --enable-devpoll was given.
14268 if test "${enable_devpoll+set}" = set; then :
14269 enableval=$enable_devpoll; desired_iopoll_mechanism="devpoll"
14270 fi
14271
14272 # Check whether --enable-poll was given.
14273 if test "${enable_poll+set}" = set; then :
14274 enableval=$enable_poll; desired_iopoll_mechanism="poll"
14275 fi
14276
14277 # Check whether --enable-select was given.
14278 if test "${enable_select+set}" = set; then :
14279 enableval=$enable_select; desired_iopoll_mechanism="select"
14280 fi
14281
14282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for optimal/desired iopoll mechanism" >&5
14283 $as_echo_n "checking for optimal/desired iopoll mechanism... " >&6; }
14284 iopoll_mechanism_none=0
14285
14286 cat >>confdefs.h <<_ACEOF
14287 #define __IOPOLL_MECHANISM_NONE $iopoll_mechanism_none
14288 _ACEOF
14289
14290 iopoll_mechanism_kqueue=1
14291
14292 cat >>confdefs.h <<_ACEOF
14293 #define __IOPOLL_MECHANISM_KQUEUE $iopoll_mechanism_kqueue
14294 _ACEOF
14295
14296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14297 /* end confdefs.h. */
14298 /* Define kevent to an innocuous variant, in case <limits.h> declares kevent.
14299 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14300 #define kevent innocuous_kevent
14301
14302 /* System header to define __stub macros and hopefully few prototypes,
14303 which can conflict with char kevent (); below.
14304 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14305 <limits.h> exists even on freestanding compilers. */
14306
14307 #ifdef __STDC__
14308 # include <limits.h>
14309 #else
14310 # include <assert.h>
14311 #endif
14312
14313 #undef kevent
14314
14315 /* Override any GCC internal prototype to avoid an error.
14316 Use char because int might match the return type of a GCC
14317 builtin and then its argument prototype would still apply. */
14318 #ifdef __cplusplus
14319 extern "C"
14320 #endif
14321 char kevent ();
14322 /* The GNU C library defines this for functions which it implements
14323 to always fail with ENOSYS. Some functions are actually named
14324 something starting with __ and the normal name is an alias. */
14325 #if defined __stub_kevent || defined __stub___kevent
14326 choke me
14327 #endif
14328
14329 int
14330 main ()
14331 {
14332 return kevent ();
14333 ;
14334 return 0;
14335 }
14336 _ACEOF
14337 if ac_fn_c_try_link "$LINENO"; then :
14338 is_kqueue_mechanism_available="yes"
14339 else
14340 is_kqueue_mechanism_available="no"
14341 fi
14342 rm -f core conftest.err conftest.$ac_objext \
14343 conftest$ac_exeext conftest.$ac_ext
14344 iopoll_mechanism_epoll=2
14345
14346 cat >>confdefs.h <<_ACEOF
14347 #define __IOPOLL_MECHANISM_EPOLL $iopoll_mechanism_epoll
14348 _ACEOF
14349
14350 if test "$cross_compiling" = yes; then :
14351 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14352 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14353 as_fn_error $? "cannot run test program while cross compiling
14354 See \`config.log' for more details" "$LINENO" 5; }
14355 else
14356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14357 /* end confdefs.h. */
14358
14359 #include <sys/epoll.h>
14360 #include <sys/syscall.h>
14361 #if defined(__stub_epoll_create) || defined(__stub___epoll_create) || defined(EPOLL_NEED_BODY)
14362 #if !defined(__NR_epoll_create)
14363 #if defined(__ia64__)
14364 #define __NR_epoll_create 1243
14365 #elif defined(__x86_64__)
14366 #define __NR_epoll_create 214
14367 #elif defined(__sparc64__) || defined(__sparc__)
14368 #define __NR_epoll_create 193
14369 #elif defined(__s390__) || defined(__m68k__)
14370 #define __NR_epoll_create 249
14371 #elif defined(__ppc64__) || defined(__ppc__)
14372 #define __NR_epoll_create 236
14373 #elif defined(__parisc__) || defined(__arm26__) || defined(__arm__)
14374 #define __NR_epoll_create 224
14375 #elif defined(__alpha__)
14376 #define __NR_epoll_create 407
14377 #elif defined(__sh64__)
14378 #define __NR_epoll_create 282
14379 #elif defined(__i386__) || defined(__sh__) || defined(__m32r__) || defined(__h8300__) || defined(__frv__)
14380 #define __NR_epoll_create 254
14381 #else
14382 #error No system call numbers defined for epoll family.
14383 #endif
14384 #endif
14385 _syscall1(int, epoll_create, int, size)
14386 #endif
14387
14388 int
14389 main ()
14390 {
14391 return epoll_create(256) == -1 ? 1 : 0
14392 ;
14393 return 0;
14394 }
14395 _ACEOF
14396 if ac_fn_c_try_run "$LINENO"; then :
14397 is_epoll_mechanism_available="yes"
14398 else
14399 is_epoll_mechanism_available="no"
14400 fi
14401 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14402 conftest.$ac_objext conftest.beam conftest.$ac_ext
14403 fi
14404
14405 iopoll_mechanism_devpoll=3
14406
14407 cat >>confdefs.h <<_ACEOF
14408 #define __IOPOLL_MECHANISM_DEVPOLL $iopoll_mechanism_devpoll
14409 _ACEOF
14410
14411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14412 /* end confdefs.h. */
14413 #include <devpoll.h>
14414 int
14415 main ()
14416 {
14417
14418 ;
14419 return 0;
14420 }
14421 _ACEOF
14422 if ac_fn_c_try_compile "$LINENO"; then :
14423 is_devpoll_mechanism_available="yes"
14424 else
14425 is_devpoll_mechanism_available="no"
14426 fi
14427 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14428 if test "$is_devpoll_mechanism_available" = "yes" ; then
14429
14430 $as_echo "#define HAVE_DEVPOLL_H 1" >>confdefs.h
14431
14432 fi
14433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14434 /* end confdefs.h. */
14435 #include <sys/devpoll.h>
14436 int
14437 main ()
14438 {
14439
14440 ;
14441 return 0;
14442 }
14443 _ACEOF
14444 if ac_fn_c_try_compile "$LINENO"; then :
14445 is_devpoll_mechanism_available="yes"
14446 else
14447 is_devpoll_mechanism_available="no"
14448 fi
14449 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14450 if test "$is_devpoll_mechanism_available" = "yes" ; then
14451
14452 $as_echo "#define HAVE_SYS_DEVPOLL_H 1" >>confdefs.h
14453
14454 fi
14455 iopoll_mechanism_poll=4
14456
14457 cat >>confdefs.h <<_ACEOF
14458 #define __IOPOLL_MECHANISM_POLL $iopoll_mechanism_poll
14459 _ACEOF
14460
14461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14462 /* end confdefs.h. */
14463 /* Define poll to an innocuous variant, in case <limits.h> declares poll.
14464 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14465 #define poll innocuous_poll
14466
14467 /* System header to define __stub macros and hopefully few prototypes,
14468 which can conflict with char poll (); below.
14469 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14470 <limits.h> exists even on freestanding compilers. */
14471
14472 #ifdef __STDC__
14473 # include <limits.h>
14474 #else
14475 # include <assert.h>
14476 #endif
14477
14478 #undef poll
14479
14480 /* Override any GCC internal prototype to avoid an error.
14481 Use char because int might match the return type of a GCC
14482 builtin and then its argument prototype would still apply. */
14483 #ifdef __cplusplus
14484 extern "C"
14485 #endif
14486 char poll ();
14487 /* The GNU C library defines this for functions which it implements
14488 to always fail with ENOSYS. Some functions are actually named
14489 something starting with __ and the normal name is an alias. */
14490 #if defined __stub_poll || defined __stub___poll
14491 choke me
14492 #endif
14493
14494 int
14495 main ()
14496 {
14497 return poll ();
14498 ;
14499 return 0;
14500 }
14501 _ACEOF
14502 if ac_fn_c_try_link "$LINENO"; then :
14503 is_poll_mechanism_available="yes"
14504 else
14505 is_poll_mechanism_available="no"
14506 fi
14507 rm -f core conftest.err conftest.$ac_objext \
14508 conftest$ac_exeext conftest.$ac_ext
14509 iopoll_mechanism_select=5
14510
14511 cat >>confdefs.h <<_ACEOF
14512 #define __IOPOLL_MECHANISM_SELECT $iopoll_mechanism_select
14513 _ACEOF
14514
14515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14516 /* end confdefs.h. */
14517 /* Define select to an innocuous variant, in case <limits.h> declares select.
14518 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14519 #define select innocuous_select
14520
14521 /* System header to define __stub macros and hopefully few prototypes,
14522 which can conflict with char select (); below.
14523 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14524 <limits.h> exists even on freestanding compilers. */
14525
14526 #ifdef __STDC__
14527 # include <limits.h>
14528 #else
14529 # include <assert.h>
14530 #endif
14531
14532 #undef select
14533
14534 /* Override any GCC internal prototype to avoid an error.
14535 Use char because int might match the return type of a GCC
14536 builtin and then its argument prototype would still apply. */
14537 #ifdef __cplusplus
14538 extern "C"
14539 #endif
14540 char select ();
14541 /* The GNU C library defines this for functions which it implements
14542 to always fail with ENOSYS. Some functions are actually named
14543 something starting with __ and the normal name is an alias. */
14544 #if defined __stub_select || defined __stub___select
14545 choke me
14546 #endif
14547
14548 int
14549 main ()
14550 {
14551 return select ();
14552 ;
14553 return 0;
14554 }
14555 _ACEOF
14556 if ac_fn_c_try_link "$LINENO"; then :
14557 is_select_mechanism_available="yes"
14558 else
14559 is_select_mechanism_available="no"
14560 fi
14561 rm -f core conftest.err conftest.$ac_objext \
14562 conftest$ac_exeext conftest.$ac_ext
14563 optimal_iopoll_mechanism="none"
14564 for mechanism in "kqueue" "epoll" "devpoll" "poll" "select" ; do # order is important
14565 eval "is_optimal_iopoll_mechanism_available=\$is_${mechanism}_mechanism_available"
14566 if test "$is_optimal_iopoll_mechanism_available" = "yes" ; then
14567 optimal_iopoll_mechanism="$mechanism"
14568 break
14569 fi
14570 done
14571 if test "$desired_iopoll_mechanism" = "none" ; then
14572 if test "$optimal_iopoll_mechanism" = "none" ; then
14573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
14574 $as_echo "none" >&6; }
14575 as_fn_error $? "no iopoll mechanism found!" "$LINENO" 5
14576 else
14577 selected_iopoll_mechanism=$optimal_iopoll_mechanism
14578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $selected_iopoll_mechanism" >&5
14579 $as_echo "$selected_iopoll_mechanism" >&6; }
14580 fi
14581 else
14582 eval "is_desired_iopoll_mechanism_available=\$is_${desired_iopoll_mechanism}_mechanism_available"
14583 if test "$is_desired_iopoll_mechanism_available" = "yes" ; then
14584 selected_iopoll_mechanism=$desired_iopoll_mechanism
14585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $selected_iopoll_mechanism" >&5
14586 $as_echo "$selected_iopoll_mechanism" >&6; }
14587 else
14588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
14589 $as_echo "none" >&6; }
14590 as_fn_error $? "desired iopoll mechanism, $desired_iopoll_mechanism, is not available" "$LINENO" 5
14591 fi
14592 fi
14593 eval "use_iopoll_mechanism=\$iopoll_mechanism_${selected_iopoll_mechanism}"
14594
14595 cat >>confdefs.h <<_ACEOF
14596 #define USE_IOPOLL_MECHANISM $use_iopoll_mechanism
14597 _ACEOF
14598
14599
14600
14601 # Check whether --enable-debugging was given.
14602 if test "${enable_debugging+set}" = set; then :
14603 enableval=$enable_debugging; debugging="$enableval"
14604 else
14605 debugging="no"
14606 fi
14607
14608 if test "$debugging" = "yes" ; then
14609 CFLAGS="-Wall -g -O0"
14610 fi
14611
14612
14613 # Check whether --enable-warnings was given.
14614 if test "${enable_warnings+set}" = set; then :
14615 enableval=$enable_warnings; warnings="$enableval"
14616 else
14617 warnings="no"
14618 fi
14619
14620 if test "$warnings" = "yes" ; then
14621
14622
14623 for flag in -Wall; do
14624 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
14625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
14626 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
14627 if eval \${$as_CACHEVAR+:} false; then :
14628 $as_echo_n "(cached) " >&6
14629 else
14630
14631 ax_check_save_flags=$CFLAGS
14632 CFLAGS="$CFLAGS $flag"
14633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14634 /* end confdefs.h. */
14635
14636 int
14637 main ()
14638 {
14639
14640 ;
14641 return 0;
14642 }
14643 _ACEOF
14644 if ac_fn_c_try_compile "$LINENO"; then :
14645 eval "$as_CACHEVAR=yes"
14646 else
14647 eval "$as_CACHEVAR=no"
14648 fi
14649 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14650 CFLAGS=$ax_check_save_flags
14651 fi
14652 eval ac_res=\$$as_CACHEVAR
14653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14654 $as_echo "$ac_res" >&6; }
14655 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
14656 if ${CFLAGS+:} false; then :
14657 case " $CFLAGS " in
14658 *" $flag "*)
14659 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
14660 (: CFLAGS already contains $flag) 2>&5
14661 ac_status=$?
14662 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14663 test $ac_status = 0; }
14664 ;;
14665 *)
14666 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
14667 (: CFLAGS="$CFLAGS $flag") 2>&5
14668 ac_status=$?
14669 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14670 test $ac_status = 0; }
14671 CFLAGS="$CFLAGS $flag"
14672 ;;
14673 esac
14674 else
14675 CFLAGS="$flag"
14676 fi
14677
14678 else
14679 :
14680 fi
14681
14682 done
14683
14684
14685
14686 for flag in -Wextra; do
14687 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
14688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
14689 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
14690 if eval \${$as_CACHEVAR+:} false; then :
14691 $as_echo_n "(cached) " >&6
14692 else
14693
14694 ax_check_save_flags=$CFLAGS
14695 CFLAGS="$CFLAGS $flag"
14696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14697 /* end confdefs.h. */
14698
14699 int
14700 main ()
14701 {
14702
14703 ;
14704 return 0;
14705 }
14706 _ACEOF
14707 if ac_fn_c_try_compile "$LINENO"; then :
14708 eval "$as_CACHEVAR=yes"
14709 else
14710 eval "$as_CACHEVAR=no"
14711 fi
14712 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14713 CFLAGS=$ax_check_save_flags
14714 fi
14715 eval ac_res=\$$as_CACHEVAR
14716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14717 $as_echo "$ac_res" >&6; }
14718 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
14719 if ${CFLAGS+:} false; then :
14720 case " $CFLAGS " in
14721 *" $flag "*)
14722 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
14723 (: CFLAGS already contains $flag) 2>&5
14724 ac_status=$?
14725 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14726 test $ac_status = 0; }
14727 ;;
14728 *)
14729 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
14730 (: CFLAGS="$CFLAGS $flag") 2>&5
14731 ac_status=$?
14732 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14733 test $ac_status = 0; }
14734 CFLAGS="$CFLAGS $flag"
14735 ;;
14736 esac
14737 else
14738 CFLAGS="$flag"
14739 fi
14740
14741 else
14742 :
14743 fi
14744
14745 done
14746
14747
14748
14749 for flag in -Wno-unused; do
14750 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
14751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
14752 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
14753 if eval \${$as_CACHEVAR+:} false; then :
14754 $as_echo_n "(cached) " >&6
14755 else
14756
14757 ax_check_save_flags=$CFLAGS
14758 CFLAGS="$CFLAGS $flag"
14759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14760 /* end confdefs.h. */
14761
14762 int
14763 main ()
14764 {
14765
14766 ;
14767 return 0;
14768 }
14769 _ACEOF
14770 if ac_fn_c_try_compile "$LINENO"; then :
14771 eval "$as_CACHEVAR=yes"
14772 else
14773 eval "$as_CACHEVAR=no"
14774 fi
14775 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14776 CFLAGS=$ax_check_save_flags
14777 fi
14778 eval ac_res=\$$as_CACHEVAR
14779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14780 $as_echo "$ac_res" >&6; }
14781 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
14782 if ${CFLAGS+:} false; then :
14783 case " $CFLAGS " in
14784 *" $flag "*)
14785 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
14786 (: CFLAGS already contains $flag) 2>&5
14787 ac_status=$?
14788 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14789 test $ac_status = 0; }
14790 ;;
14791 *)
14792 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
14793 (: CFLAGS="$CFLAGS $flag") 2>&5
14794 ac_status=$?
14795 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14796 test $ac_status = 0; }
14797 CFLAGS="$CFLAGS $flag"
14798 ;;
14799 esac
14800 else
14801 CFLAGS="$flag"
14802 fi
14803
14804 else
14805 :
14806 fi
14807
14808 done
14809
14810
14811
14812 for flag in -Wcast-qual; do
14813 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
14814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
14815 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
14816 if eval \${$as_CACHEVAR+:} false; then :
14817 $as_echo_n "(cached) " >&6
14818 else
14819
14820 ax_check_save_flags=$CFLAGS
14821 CFLAGS="$CFLAGS $flag"
14822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14823 /* end confdefs.h. */
14824
14825 int
14826 main ()
14827 {
14828
14829 ;
14830 return 0;
14831 }
14832 _ACEOF
14833 if ac_fn_c_try_compile "$LINENO"; then :
14834 eval "$as_CACHEVAR=yes"
14835 else
14836 eval "$as_CACHEVAR=no"
14837 fi
14838 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14839 CFLAGS=$ax_check_save_flags
14840 fi
14841 eval ac_res=\$$as_CACHEVAR
14842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14843 $as_echo "$ac_res" >&6; }
14844 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
14845 if ${CFLAGS+:} false; then :
14846 case " $CFLAGS " in
14847 *" $flag "*)
14848 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
14849 (: CFLAGS already contains $flag) 2>&5
14850 ac_status=$?
14851 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14852 test $ac_status = 0; }
14853 ;;
14854 *)
14855 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
14856 (: CFLAGS="$CFLAGS $flag") 2>&5
14857 ac_status=$?
14858 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14859 test $ac_status = 0; }
14860 CFLAGS="$CFLAGS $flag"
14861 ;;
14862 esac
14863 else
14864 CFLAGS="$flag"
14865 fi
14866
14867 else
14868 :
14869 fi
14870
14871 done
14872
14873
14874
14875 for flag in -Wcast-align; do
14876 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
14877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
14878 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
14879 if eval \${$as_CACHEVAR+:} false; then :
14880 $as_echo_n "(cached) " >&6
14881 else
14882
14883 ax_check_save_flags=$CFLAGS
14884 CFLAGS="$CFLAGS $flag"
14885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14886 /* end confdefs.h. */
14887
14888 int
14889 main ()
14890 {
14891
14892 ;
14893 return 0;
14894 }
14895 _ACEOF
14896 if ac_fn_c_try_compile "$LINENO"; then :
14897 eval "$as_CACHEVAR=yes"
14898 else
14899 eval "$as_CACHEVAR=no"
14900 fi
14901 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14902 CFLAGS=$ax_check_save_flags
14903 fi
14904 eval ac_res=\$$as_CACHEVAR
14905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14906 $as_echo "$ac_res" >&6; }
14907 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
14908 if ${CFLAGS+:} false; then :
14909 case " $CFLAGS " in
14910 *" $flag "*)
14911 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
14912 (: CFLAGS already contains $flag) 2>&5
14913 ac_status=$?
14914 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14915 test $ac_status = 0; }
14916 ;;
14917 *)
14918 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
14919 (: CFLAGS="$CFLAGS $flag") 2>&5
14920 ac_status=$?
14921 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14922 test $ac_status = 0; }
14923 CFLAGS="$CFLAGS $flag"
14924 ;;
14925 esac
14926 else
14927 CFLAGS="$flag"
14928 fi
14929
14930 else
14931 :
14932 fi
14933
14934 done
14935
14936
14937
14938 for flag in -Wbad-function-cast; do
14939 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
14940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
14941 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
14942 if eval \${$as_CACHEVAR+:} false; then :
14943 $as_echo_n "(cached) " >&6
14944 else
14945
14946 ax_check_save_flags=$CFLAGS
14947 CFLAGS="$CFLAGS $flag"
14948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14949 /* end confdefs.h. */
14950
14951 int
14952 main ()
14953 {
14954
14955 ;
14956 return 0;
14957 }
14958 _ACEOF
14959 if ac_fn_c_try_compile "$LINENO"; then :
14960 eval "$as_CACHEVAR=yes"
14961 else
14962 eval "$as_CACHEVAR=no"
14963 fi
14964 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14965 CFLAGS=$ax_check_save_flags
14966 fi
14967 eval ac_res=\$$as_CACHEVAR
14968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14969 $as_echo "$ac_res" >&6; }
14970 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
14971 if ${CFLAGS+:} false; then :
14972 case " $CFLAGS " in
14973 *" $flag "*)
14974 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
14975 (: CFLAGS already contains $flag) 2>&5
14976 ac_status=$?
14977 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14978 test $ac_status = 0; }
14979 ;;
14980 *)
14981 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
14982 (: CFLAGS="$CFLAGS $flag") 2>&5
14983 ac_status=$?
14984 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14985 test $ac_status = 0; }
14986 CFLAGS="$CFLAGS $flag"
14987 ;;
14988 esac
14989 else
14990 CFLAGS="$flag"
14991 fi
14992
14993 else
14994 :
14995 fi
14996
14997 done
14998
14999
15000
15001 for flag in -Wlogical-op; do
15002 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
15003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
15004 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
15005 if eval \${$as_CACHEVAR+:} false; then :
15006 $as_echo_n "(cached) " >&6
15007 else
15008
15009 ax_check_save_flags=$CFLAGS
15010 CFLAGS="$CFLAGS $flag"
15011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15012 /* end confdefs.h. */
15013
15014 int
15015 main ()
15016 {
15017
15018 ;
15019 return 0;
15020 }
15021 _ACEOF
15022 if ac_fn_c_try_compile "$LINENO"; then :
15023 eval "$as_CACHEVAR=yes"
15024 else
15025 eval "$as_CACHEVAR=no"
15026 fi
15027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15028 CFLAGS=$ax_check_save_flags
15029 fi
15030 eval ac_res=\$$as_CACHEVAR
15031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15032 $as_echo "$ac_res" >&6; }
15033 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
15034 if ${CFLAGS+:} false; then :
15035 case " $CFLAGS " in
15036 *" $flag "*)
15037 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
15038 (: CFLAGS already contains $flag) 2>&5
15039 ac_status=$?
15040 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15041 test $ac_status = 0; }
15042 ;;
15043 *)
15044 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
15045 (: CFLAGS="$CFLAGS $flag") 2>&5
15046 ac_status=$?
15047 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15048 test $ac_status = 0; }
15049 CFLAGS="$CFLAGS $flag"
15050 ;;
15051 esac
15052 else
15053 CFLAGS="$flag"
15054 fi
15055
15056 else
15057 :
15058 fi
15059
15060 done
15061
15062
15063
15064 for flag in -Wmissing-declarations; do
15065 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
15066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
15067 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
15068 if eval \${$as_CACHEVAR+:} false; then :
15069 $as_echo_n "(cached) " >&6
15070 else
15071
15072 ax_check_save_flags=$CFLAGS
15073 CFLAGS="$CFLAGS $flag"
15074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15075 /* end confdefs.h. */
15076
15077 int
15078 main ()
15079 {
15080
15081 ;
15082 return 0;
15083 }
15084 _ACEOF
15085 if ac_fn_c_try_compile "$LINENO"; then :
15086 eval "$as_CACHEVAR=yes"
15087 else
15088 eval "$as_CACHEVAR=no"
15089 fi
15090 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15091 CFLAGS=$ax_check_save_flags
15092 fi
15093 eval ac_res=\$$as_CACHEVAR
15094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15095 $as_echo "$ac_res" >&6; }
15096 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
15097 if ${CFLAGS+:} false; then :
15098 case " $CFLAGS " in
15099 *" $flag "*)
15100 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
15101 (: CFLAGS already contains $flag) 2>&5
15102 ac_status=$?
15103 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15104 test $ac_status = 0; }
15105 ;;
15106 *)
15107 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
15108 (: CFLAGS="$CFLAGS $flag") 2>&5
15109 ac_status=$?
15110 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15111 test $ac_status = 0; }
15112 CFLAGS="$CFLAGS $flag"
15113 ;;
15114 esac
15115 else
15116 CFLAGS="$flag"
15117 fi
15118
15119 else
15120 :
15121 fi
15122
15123 done
15124
15125
15126
15127 for flag in -Wmissing-include-dirs; do
15128 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
15129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
15130 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
15131 if eval \${$as_CACHEVAR+:} false; then :
15132 $as_echo_n "(cached) " >&6
15133 else
15134
15135 ax_check_save_flags=$CFLAGS
15136 CFLAGS="$CFLAGS $flag"
15137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15138 /* end confdefs.h. */
15139
15140 int
15141 main ()
15142 {
15143
15144 ;
15145 return 0;
15146 }
15147 _ACEOF
15148 if ac_fn_c_try_compile "$LINENO"; then :
15149 eval "$as_CACHEVAR=yes"
15150 else
15151 eval "$as_CACHEVAR=no"
15152 fi
15153 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15154 CFLAGS=$ax_check_save_flags
15155 fi
15156 eval ac_res=\$$as_CACHEVAR
15157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15158 $as_echo "$ac_res" >&6; }
15159 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
15160 if ${CFLAGS+:} false; then :
15161 case " $CFLAGS " in
15162 *" $flag "*)
15163 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
15164 (: CFLAGS already contains $flag) 2>&5
15165 ac_status=$?
15166 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15167 test $ac_status = 0; }
15168 ;;
15169 *)
15170 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
15171 (: CFLAGS="$CFLAGS $flag") 2>&5
15172 ac_status=$?
15173 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15174 test $ac_status = 0; }
15175 CFLAGS="$CFLAGS $flag"
15176 ;;
15177 esac
15178 else
15179 CFLAGS="$flag"
15180 fi
15181
15182 else
15183 :
15184 fi
15185
15186 done
15187
15188
15189
15190 for flag in -Wmissing-prototypes; do
15191 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
15192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
15193 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
15194 if eval \${$as_CACHEVAR+:} false; then :
15195 $as_echo_n "(cached) " >&6
15196 else
15197
15198 ax_check_save_flags=$CFLAGS
15199 CFLAGS="$CFLAGS $flag"
15200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15201 /* end confdefs.h. */
15202
15203 int
15204 main ()
15205 {
15206
15207 ;
15208 return 0;
15209 }
15210 _ACEOF
15211 if ac_fn_c_try_compile "$LINENO"; then :
15212 eval "$as_CACHEVAR=yes"
15213 else
15214 eval "$as_CACHEVAR=no"
15215 fi
15216 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15217 CFLAGS=$ax_check_save_flags
15218 fi
15219 eval ac_res=\$$as_CACHEVAR
15220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15221 $as_echo "$ac_res" >&6; }
15222 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
15223 if ${CFLAGS+:} false; then :
15224 case " $CFLAGS " in
15225 *" $flag "*)
15226 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
15227 (: CFLAGS already contains $flag) 2>&5
15228 ac_status=$?
15229 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15230 test $ac_status = 0; }
15231 ;;
15232 *)
15233 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
15234 (: CFLAGS="$CFLAGS $flag") 2>&5
15235 ac_status=$?
15236 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15237 test $ac_status = 0; }
15238 CFLAGS="$CFLAGS $flag"
15239 ;;
15240 esac
15241 else
15242 CFLAGS="$flag"
15243 fi
15244
15245 else
15246 :
15247 fi
15248
15249 done
15250
15251
15252
15253 for flag in -Wnested-externs; do
15254 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
15255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
15256 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
15257 if eval \${$as_CACHEVAR+:} false; then :
15258 $as_echo_n "(cached) " >&6
15259 else
15260
15261 ax_check_save_flags=$CFLAGS
15262 CFLAGS="$CFLAGS $flag"
15263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15264 /* end confdefs.h. */
15265
15266 int
15267 main ()
15268 {
15269
15270 ;
15271 return 0;
15272 }
15273 _ACEOF
15274 if ac_fn_c_try_compile "$LINENO"; then :
15275 eval "$as_CACHEVAR=yes"
15276 else
15277 eval "$as_CACHEVAR=no"
15278 fi
15279 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15280 CFLAGS=$ax_check_save_flags
15281 fi
15282 eval ac_res=\$$as_CACHEVAR
15283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15284 $as_echo "$ac_res" >&6; }
15285 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
15286 if ${CFLAGS+:} false; then :
15287 case " $CFLAGS " in
15288 *" $flag "*)
15289 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
15290 (: CFLAGS already contains $flag) 2>&5
15291 ac_status=$?
15292 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15293 test $ac_status = 0; }
15294 ;;
15295 *)
15296 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
15297 (: CFLAGS="$CFLAGS $flag") 2>&5
15298 ac_status=$?
15299 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15300 test $ac_status = 0; }
15301 CFLAGS="$CFLAGS $flag"
15302 ;;
15303 esac
15304 else
15305 CFLAGS="$flag"
15306 fi
15307
15308 else
15309 :
15310 fi
15311
15312 done
15313
15314
15315
15316 for flag in -Wpointer-arith; do
15317 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
15318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
15319 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
15320 if eval \${$as_CACHEVAR+:} false; then :
15321 $as_echo_n "(cached) " >&6
15322 else
15323
15324 ax_check_save_flags=$CFLAGS
15325 CFLAGS="$CFLAGS $flag"
15326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15327 /* end confdefs.h. */
15328
15329 int
15330 main ()
15331 {
15332
15333 ;
15334 return 0;
15335 }
15336 _ACEOF
15337 if ac_fn_c_try_compile "$LINENO"; then :
15338 eval "$as_CACHEVAR=yes"
15339 else
15340 eval "$as_CACHEVAR=no"
15341 fi
15342 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15343 CFLAGS=$ax_check_save_flags
15344 fi
15345 eval ac_res=\$$as_CACHEVAR
15346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15347 $as_echo "$ac_res" >&6; }
15348 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
15349 if ${CFLAGS+:} false; then :
15350 case " $CFLAGS " in
15351 *" $flag "*)
15352 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
15353 (: CFLAGS already contains $flag) 2>&5
15354 ac_status=$?
15355 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15356 test $ac_status = 0; }
15357 ;;
15358 *)
15359 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
15360 (: CFLAGS="$CFLAGS $flag") 2>&5
15361 ac_status=$?
15362 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15363 test $ac_status = 0; }
15364 CFLAGS="$CFLAGS $flag"
15365 ;;
15366 esac
15367 else
15368 CFLAGS="$flag"
15369 fi
15370
15371 else
15372 :
15373 fi
15374
15375 done
15376
15377
15378
15379 for flag in -Wredundant-decls; do
15380 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
15381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
15382 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
15383 if eval \${$as_CACHEVAR+:} false; then :
15384 $as_echo_n "(cached) " >&6
15385 else
15386
15387 ax_check_save_flags=$CFLAGS
15388 CFLAGS="$CFLAGS $flag"
15389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15390 /* end confdefs.h. */
15391
15392 int
15393 main ()
15394 {
15395
15396 ;
15397 return 0;
15398 }
15399 _ACEOF
15400 if ac_fn_c_try_compile "$LINENO"; then :
15401 eval "$as_CACHEVAR=yes"
15402 else
15403 eval "$as_CACHEVAR=no"
15404 fi
15405 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15406 CFLAGS=$ax_check_save_flags
15407 fi
15408 eval ac_res=\$$as_CACHEVAR
15409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15410 $as_echo "$ac_res" >&6; }
15411 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
15412 if ${CFLAGS+:} false; then :
15413 case " $CFLAGS " in
15414 *" $flag "*)
15415 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
15416 (: CFLAGS already contains $flag) 2>&5
15417 ac_status=$?
15418 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15419 test $ac_status = 0; }
15420 ;;
15421 *)
15422 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
15423 (: CFLAGS="$CFLAGS $flag") 2>&5
15424 ac_status=$?
15425 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15426 test $ac_status = 0; }
15427 CFLAGS="$CFLAGS $flag"
15428 ;;
15429 esac
15430 else
15431 CFLAGS="$flag"
15432 fi
15433
15434 else
15435 :
15436 fi
15437
15438 done
15439
15440
15441
15442 for flag in -Wshadow; do
15443 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
15444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
15445 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
15446 if eval \${$as_CACHEVAR+:} false; then :
15447 $as_echo_n "(cached) " >&6
15448 else
15449
15450 ax_check_save_flags=$CFLAGS
15451 CFLAGS="$CFLAGS $flag"
15452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15453 /* end confdefs.h. */
15454
15455 int
15456 main ()
15457 {
15458
15459 ;
15460 return 0;
15461 }
15462 _ACEOF
15463 if ac_fn_c_try_compile "$LINENO"; then :
15464 eval "$as_CACHEVAR=yes"
15465 else
15466 eval "$as_CACHEVAR=no"
15467 fi
15468 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15469 CFLAGS=$ax_check_save_flags
15470 fi
15471 eval ac_res=\$$as_CACHEVAR
15472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15473 $as_echo "$ac_res" >&6; }
15474 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
15475 if ${CFLAGS+:} false; then :
15476 case " $CFLAGS " in
15477 *" $flag "*)
15478 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
15479 (: CFLAGS already contains $flag) 2>&5
15480 ac_status=$?
15481 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15482 test $ac_status = 0; }
15483 ;;
15484 *)
15485 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
15486 (: CFLAGS="$CFLAGS $flag") 2>&5
15487 ac_status=$?
15488 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15489 test $ac_status = 0; }
15490 CFLAGS="$CFLAGS $flag"
15491 ;;
15492 esac
15493 else
15494 CFLAGS="$flag"
15495 fi
15496
15497 else
15498 :
15499 fi
15500
15501 done
15502
15503
15504
15505 for flag in -Wwrite-strings; do
15506 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
15507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
15508 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
15509 if eval \${$as_CACHEVAR+:} false; then :
15510 $as_echo_n "(cached) " >&6
15511 else
15512
15513 ax_check_save_flags=$CFLAGS
15514 CFLAGS="$CFLAGS $flag"
15515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15516 /* end confdefs.h. */
15517
15518 int
15519 main ()
15520 {
15521
15522 ;
15523 return 0;
15524 }
15525 _ACEOF
15526 if ac_fn_c_try_compile "$LINENO"; then :
15527 eval "$as_CACHEVAR=yes"
15528 else
15529 eval "$as_CACHEVAR=no"
15530 fi
15531 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15532 CFLAGS=$ax_check_save_flags
15533 fi
15534 eval ac_res=\$$as_CACHEVAR
15535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15536 $as_echo "$ac_res" >&6; }
15537 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
15538 if ${CFLAGS+:} false; then :
15539 case " $CFLAGS " in
15540 *" $flag "*)
15541 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
15542 (: CFLAGS already contains $flag) 2>&5
15543 ac_status=$?
15544 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15545 test $ac_status = 0; }
15546 ;;
15547 *)
15548 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
15549 (: CFLAGS="$CFLAGS $flag") 2>&5
15550 ac_status=$?
15551 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15552 test $ac_status = 0; }
15553 CFLAGS="$CFLAGS $flag"
15554 ;;
15555 esac
15556 else
15557 CFLAGS="$flag"
15558 fi
15559
15560 else
15561 :
15562 fi
15563
15564 done
15565
15566
15567
15568 for flag in -Wundef; do
15569 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
15570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
15571 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
15572 if eval \${$as_CACHEVAR+:} false; then :
15573 $as_echo_n "(cached) " >&6
15574 else
15575
15576 ax_check_save_flags=$CFLAGS
15577 CFLAGS="$CFLAGS $flag"
15578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15579 /* end confdefs.h. */
15580
15581 int
15582 main ()
15583 {
15584
15585 ;
15586 return 0;
15587 }
15588 _ACEOF
15589 if ac_fn_c_try_compile "$LINENO"; then :
15590 eval "$as_CACHEVAR=yes"
15591 else
15592 eval "$as_CACHEVAR=no"
15593 fi
15594 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15595 CFLAGS=$ax_check_save_flags
15596 fi
15597 eval ac_res=\$$as_CACHEVAR
15598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15599 $as_echo "$ac_res" >&6; }
15600 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
15601 if ${CFLAGS+:} false; then :
15602 case " $CFLAGS " in
15603 *" $flag "*)
15604 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
15605 (: CFLAGS already contains $flag) 2>&5
15606 ac_status=$?
15607 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15608 test $ac_status = 0; }
15609 ;;
15610 *)
15611 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
15612 (: CFLAGS="$CFLAGS $flag") 2>&5
15613 ac_status=$?
15614 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15615 test $ac_status = 0; }
15616 CFLAGS="$CFLAGS $flag"
15617 ;;
15618 esac
15619 else
15620 CFLAGS="$flag"
15621 fi
15622
15623 else
15624 :
15625 fi
15626
15627 done
15628
15629 fi
15630
15631
15632
15633 prefix_NONE=
15634 exec_prefix_NONE=
15635 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
15636 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
15637 eval ac_define_dir="\"$prefix\""
15638 eval ac_define_dir="\"$ac_define_dir\""
15639 PREFIX="$ac_define_dir"
15640
15641
15642 cat >>confdefs.h <<_ACEOF
15643 #define PREFIX "$ac_define_dir"
15644 _ACEOF
15645
15646 test "$prefix_NONE" && prefix=NONE
15647 test "$exec_prefix_NONE" && exec_prefix=NONE
15648
15649
15650 prefix_NONE=
15651 exec_prefix_NONE=
15652 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
15653 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
15654 eval ac_define_dir="\"$sysconfdir\""
15655 eval ac_define_dir="\"$ac_define_dir\""
15656 SYSCONFDIR="$ac_define_dir"
15657
15658
15659 cat >>confdefs.h <<_ACEOF
15660 #define SYSCONFDIR "$ac_define_dir"
15661 _ACEOF
15662
15663 test "$prefix_NONE" && prefix=NONE
15664 test "$exec_prefix_NONE" && exec_prefix=NONE
15665
15666
15667 prefix_NONE=
15668 exec_prefix_NONE=
15669 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
15670 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
15671 eval ac_define_dir="\"$libdir\""
15672 eval ac_define_dir="\"$ac_define_dir\""
15673 LIBDIR="$ac_define_dir"
15674
15675
15676 cat >>confdefs.h <<_ACEOF
15677 #define LIBDIR "$ac_define_dir"
15678 _ACEOF
15679
15680 test "$prefix_NONE" && prefix=NONE
15681 test "$exec_prefix_NONE" && exec_prefix=NONE
15682
15683
15684 prefix_NONE=
15685 exec_prefix_NONE=
15686 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
15687 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
15688 eval ac_define_dir="\"$datadir\""
15689 eval ac_define_dir="\"$ac_define_dir\""
15690 DATADIR="$ac_define_dir"
15691
15692
15693 cat >>confdefs.h <<_ACEOF
15694 #define DATADIR "$ac_define_dir"
15695 _ACEOF
15696
15697 test "$prefix_NONE" && prefix=NONE
15698 test "$exec_prefix_NONE" && exec_prefix=NONE
15699
15700
15701 prefix_NONE=
15702 exec_prefix_NONE=
15703 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
15704 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
15705 eval ac_define_dir="\"$localstatedir\""
15706 eval ac_define_dir="\"$ac_define_dir\""
15707 LOCALSTATEDIR="$ac_define_dir"
15708
15709
15710 cat >>confdefs.h <<_ACEOF
15711 #define LOCALSTATEDIR "$ac_define_dir"
15712 _ACEOF
15713
15714 test "$prefix_NONE" && prefix=NONE
15715 test "$exec_prefix_NONE" && exec_prefix=NONE
15716
15717
15718 ac_config_files="$ac_config_files Makefile src/Makefile libltdl/Makefile modules/Makefile modules/core/Makefile doc/Makefile help/Makefile tools/Makefile"
15719
15720
15721 cat >confcache <<\_ACEOF
15722 # This file is a shell script that caches the results of configure
15723 # tests run on this system so they can be shared between configure
15724 # scripts and configure runs, see configure's option --config-cache.
15725 # It is not useful on other systems. If it contains results you don't
15726 # want to keep, you may remove or edit it.
15727 #
15728 # config.status only pays attention to the cache file if you give it
15729 # the --recheck option to rerun configure.
15730 #
15731 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15732 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15733 # following values.
15734
15735 _ACEOF
15736
15737 # The following way of writing the cache mishandles newlines in values,
15738 # but we know of no workaround that is simple, portable, and efficient.
15739 # So, we kill variables containing newlines.
15740 # Ultrix sh set writes to stderr and can't be redirected directly,
15741 # and sets the high bit in the cache file unless we assign to the vars.
15742 (
15743 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15744 eval ac_val=\$$ac_var
15745 case $ac_val in #(
15746 *${as_nl}*)
15747 case $ac_var in #(
15748 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15749 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15750 esac
15751 case $ac_var in #(
15752 _ | IFS | as_nl) ;; #(
15753 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15754 *) { eval $ac_var=; unset $ac_var;} ;;
15755 esac ;;
15756 esac
15757 done
15758
15759 (set) 2>&1 |
15760 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15761 *${as_nl}ac_space=\ *)
15762 # `set' does not quote correctly, so add quotes: double-quote
15763 # substitution turns \\\\ into \\, and sed turns \\ into \.
15764 sed -n \
15765 "s/'/'\\\\''/g;
15766 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15767 ;; #(
15768 *)
15769 # `set' quotes correctly as required by POSIX, so do not add quotes.
15770 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15771 ;;
15772 esac |
15773 sort
15774 ) |
15775 sed '
15776 /^ac_cv_env_/b end
15777 t clear
15778 :clear
15779 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15780 t end
15781 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15782 :end' >>confcache
15783 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15784 if test -w "$cache_file"; then
15785 if test "x$cache_file" != "x/dev/null"; then
15786 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15787 $as_echo "$as_me: updating cache $cache_file" >&6;}
15788 if test ! -f "$cache_file" || test -h "$cache_file"; then
15789 cat confcache >"$cache_file"
15790 else
15791 case $cache_file in #(
15792 */* | ?:*)
15793 mv -f confcache "$cache_file"$$ &&
15794 mv -f "$cache_file"$$ "$cache_file" ;; #(
15795 *)
15796 mv -f confcache "$cache_file" ;;
15797 esac
15798 fi
15799 fi
15800 else
15801 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15802 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15803 fi
15804 fi
15805 rm -f confcache
15806
15807 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15808 # Let make expand exec_prefix.
15809 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15810
15811 DEFS=-DHAVE_CONFIG_H
15812
15813 ac_libobjs=
15814 ac_ltlibobjs=
15815 U=
15816 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15817 # 1. Remove the extension, and $U if already installed.
15818 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15819 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15820 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15821 # will be set to the directory where LIBOBJS objects are built.
15822 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15823 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15824 done
15825 LIBOBJS=$ac_libobjs
15826
15827 LTLIBOBJS=$ac_ltlibobjs
15828
15829
15830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
15831 $as_echo_n "checking that generated files are newer than configure... " >&6; }
15832 if test -n "$am_sleep_pid"; then
15833 # Hide warnings about reused PIDs.
15834 wait $am_sleep_pid 2>/dev/null
15835 fi
15836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
15837 $as_echo "done" >&6; }
15838 if test -n "$EXEEXT"; then
15839 am__EXEEXT_TRUE=
15840 am__EXEEXT_FALSE='#'
15841 else
15842 am__EXEEXT_TRUE='#'
15843 am__EXEEXT_FALSE=
15844 fi
15845
15846 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
15847 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
15848 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15849 fi
15850 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15851 as_fn_error $? "conditional \"AMDEP\" was never defined.
15852 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15853 fi
15854 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15855 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
15856 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15857 fi
15858 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
15859 as_fn_error $? "conditional \"INSTALL_LTDL\" was never defined.
15860 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15861 fi
15862 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
15863 as_fn_error $? "conditional \"CONVENIENCE_LTDL\" was never defined.
15864 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15865 fi
15866 LT_CONFIG_H=config.h
15867
15868 _ltdl_libobjs=
15869 _ltdl_ltlibobjs=
15870 if test -n "$_LT_LIBOBJS"; then
15871 # Remove the extension.
15872 _lt_sed_drop_objext='s/\.o$//;s/\.obj$//'
15873 for i in `for i in $_LT_LIBOBJS; do echo "$i"; done | sed "$_lt_sed_drop_objext" | sort -u`; do
15874 _ltdl_libobjs="$_ltdl_libobjs $lt_libobj_prefix$i.$ac_objext"
15875 _ltdl_ltlibobjs="$_ltdl_ltlibobjs $lt_libobj_prefix$i.lo"
15876 done
15877 fi
15878 ltdl_LIBOBJS=$_ltdl_libobjs
15879
15880 ltdl_LTLIBOBJS=$_ltdl_ltlibobjs
15881
15882
15883
15884 if test -z "${ENABLE_SSL_TRUE}" && test -z "${ENABLE_SSL_FALSE}"; then
15885 as_fn_error $? "conditional \"ENABLE_SSL\" was never defined.
15886 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15887 fi
15888
15889 : "${CONFIG_STATUS=./config.status}"
15890 ac_write_fail=0
15891 ac_clean_files_save=$ac_clean_files
15892 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15893 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15894 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15895 as_write_fail=0
15896 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15897 #! $SHELL
15898 # Generated by $as_me.
15899 # Run this file to recreate the current configuration.
15900 # Compiler output produced by configure, useful for debugging
15901 # configure, is in config.log if it exists.
15902
15903 debug=false
15904 ac_cs_recheck=false
15905 ac_cs_silent=false
15906
15907 SHELL=\${CONFIG_SHELL-$SHELL}
15908 export SHELL
15909 _ASEOF
15910 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15911 ## -------------------- ##
15912 ## M4sh Initialization. ##
15913 ## -------------------- ##
15914
15915 # Be more Bourne compatible
15916 DUALCASE=1; export DUALCASE # for MKS sh
15917 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15918 emulate sh
15919 NULLCMD=:
15920 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15921 # is contrary to our usage. Disable this feature.
15922 alias -g '${1+"$@"}'='"$@"'
15923 setopt NO_GLOB_SUBST
15924 else
15925 case `(set -o) 2>/dev/null` in #(
15926 *posix*) :
15927 set -o posix ;; #(
15928 *) :
15929 ;;
15930 esac
15931 fi
15932
15933
15934 as_nl='
15935 '
15936 export as_nl
15937 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15938 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15939 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15940 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15941 # Prefer a ksh shell builtin over an external printf program on Solaris,
15942 # but without wasting forks for bash or zsh.
15943 if test -z "$BASH_VERSION$ZSH_VERSION" \
15944 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15945 as_echo='print -r --'
15946 as_echo_n='print -rn --'
15947 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15948 as_echo='printf %s\n'
15949 as_echo_n='printf %s'
15950 else
15951 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15952 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15953 as_echo_n='/usr/ucb/echo -n'
15954 else
15955 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15956 as_echo_n_body='eval
15957 arg=$1;
15958 case $arg in #(
15959 *"$as_nl"*)
15960 expr "X$arg" : "X\\(.*\\)$as_nl";
15961 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15962 esac;
15963 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15964 '
15965 export as_echo_n_body
15966 as_echo_n='sh -c $as_echo_n_body as_echo'
15967 fi
15968 export as_echo_body
15969 as_echo='sh -c $as_echo_body as_echo'
15970 fi
15971
15972 # The user is always right.
15973 if test "${PATH_SEPARATOR+set}" != set; then
15974 PATH_SEPARATOR=:
15975 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15976 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15977 PATH_SEPARATOR=';'
15978 }
15979 fi
15980
15981
15982 # IFS
15983 # We need space, tab and new line, in precisely that order. Quoting is
15984 # there to prevent editors from complaining about space-tab.
15985 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15986 # splitting by setting IFS to empty value.)
15987 IFS=" "" $as_nl"
15988
15989 # Find who we are. Look in the path if we contain no directory separator.
15990 as_myself=
15991 case $0 in #((
15992 *[\\/]* ) as_myself=$0 ;;
15993 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15994 for as_dir in $PATH
15995 do
15996 IFS=$as_save_IFS
15997 test -z "$as_dir" && as_dir=.
15998 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15999 done
16000 IFS=$as_save_IFS
16001
16002 ;;
16003 esac
16004 # We did not find ourselves, most probably we were run as `sh COMMAND'
16005 # in which case we are not to be found in the path.
16006 if test "x$as_myself" = x; then
16007 as_myself=$0
16008 fi
16009 if test ! -f "$as_myself"; then
16010 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16011 exit 1
16012 fi
16013
16014 # Unset variables that we do not need and which cause bugs (e.g. in
16015 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
16016 # suppresses any "Segmentation fault" message there. '((' could
16017 # trigger a bug in pdksh 5.2.14.
16018 for as_var in BASH_ENV ENV MAIL MAILPATH
16019 do eval test x\${$as_var+set} = xset \
16020 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16021 done
16022 PS1='$ '
16023 PS2='> '
16024 PS4='+ '
16025
16026 # NLS nuisances.
16027 LC_ALL=C
16028 export LC_ALL
16029 LANGUAGE=C
16030 export LANGUAGE
16031
16032 # CDPATH.
16033 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16034
16035
16036 # as_fn_error STATUS ERROR [LINENO LOG_FD]
16037 # ----------------------------------------
16038 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16039 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16040 # script with STATUS, using 1 if that was 0.
16041 as_fn_error ()
16042 {
16043 as_status=$1; test $as_status -eq 0 && as_status=1
16044 if test "$4"; then
16045 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16046 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
16047 fi
16048 $as_echo "$as_me: error: $2" >&2
16049 as_fn_exit $as_status
16050 } # as_fn_error
16051
16052
16053 # as_fn_set_status STATUS
16054 # -----------------------
16055 # Set $? to STATUS, without forking.
16056 as_fn_set_status ()
16057 {
16058 return $1
16059 } # as_fn_set_status
16060
16061 # as_fn_exit STATUS
16062 # -----------------
16063 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16064 as_fn_exit ()
16065 {
16066 set +e
16067 as_fn_set_status $1
16068 exit $1
16069 } # as_fn_exit
16070
16071 # as_fn_unset VAR
16072 # ---------------
16073 # Portably unset VAR.
16074 as_fn_unset ()
16075 {
16076 { eval $1=; unset $1;}
16077 }
16078 as_unset=as_fn_unset
16079 # as_fn_append VAR VALUE
16080 # ----------------------
16081 # Append the text in VALUE to the end of the definition contained in VAR. Take
16082 # advantage of any shell optimizations that allow amortized linear growth over
16083 # repeated appends, instead of the typical quadratic growth present in naive
16084 # implementations.
16085 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16086 eval 'as_fn_append ()
16087 {
16088 eval $1+=\$2
16089 }'
16090 else
16091 as_fn_append ()
16092 {
16093 eval $1=\$$1\$2
16094 }
16095 fi # as_fn_append
16096
16097 # as_fn_arith ARG...
16098 # ------------------
16099 # Perform arithmetic evaluation on the ARGs, and store the result in the
16100 # global $as_val. Take advantage of shells that can avoid forks. The arguments
16101 # must be portable across $(()) and expr.
16102 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16103 eval 'as_fn_arith ()
16104 {
16105 as_val=$(( $* ))
16106 }'
16107 else
16108 as_fn_arith ()
16109 {
16110 as_val=`expr "$@" || test $? -eq 1`
16111 }
16112 fi # as_fn_arith
16113
16114
16115 if expr a : '\(a\)' >/dev/null 2>&1 &&
16116 test "X`expr 00001 : '.*\(...\)'`" = X001; then
16117 as_expr=expr
16118 else
16119 as_expr=false
16120 fi
16121
16122 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16123 as_basename=basename
16124 else
16125 as_basename=false
16126 fi
16127
16128 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16129 as_dirname=dirname
16130 else
16131 as_dirname=false
16132 fi
16133
16134 as_me=`$as_basename -- "$0" ||
16135 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16136 X"$0" : 'X\(//\)$' \| \
16137 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16138 $as_echo X/"$0" |
16139 sed '/^.*\/\([^/][^/]*\)\/*$/{
16140 s//\1/
16141 q
16142 }
16143 /^X\/\(\/\/\)$/{
16144 s//\1/
16145 q
16146 }
16147 /^X\/\(\/\).*/{
16148 s//\1/
16149 q
16150 }
16151 s/.*/./; q'`
16152
16153 # Avoid depending upon Character Ranges.
16154 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16155 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16156 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16157 as_cr_digits='0123456789'
16158 as_cr_alnum=$as_cr_Letters$as_cr_digits
16159
16160 ECHO_C= ECHO_N= ECHO_T=
16161 case `echo -n x` in #(((((
16162 -n*)
16163 case `echo 'xy\c'` in
16164 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
16165 xy) ECHO_C='\c';;
16166 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
16167 ECHO_T=' ';;
16168 esac;;
16169 *)
16170 ECHO_N='-n';;
16171 esac
16172
16173 rm -f conf$$ conf$$.exe conf$$.file
16174 if test -d conf$$.dir; then
16175 rm -f conf$$.dir/conf$$.file
16176 else
16177 rm -f conf$$.dir
16178 mkdir conf$$.dir 2>/dev/null
16179 fi
16180 if (echo >conf$$.file) 2>/dev/null; then
16181 if ln -s conf$$.file conf$$ 2>/dev/null; then
16182 as_ln_s='ln -s'
16183 # ... but there are two gotchas:
16184 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16185 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16186 # In both cases, we have to default to `cp -pR'.
16187 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16188 as_ln_s='cp -pR'
16189 elif ln conf$$.file conf$$ 2>/dev/null; then
16190 as_ln_s=ln
16191 else
16192 as_ln_s='cp -pR'
16193 fi
16194 else
16195 as_ln_s='cp -pR'
16196 fi
16197 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16198 rmdir conf$$.dir 2>/dev/null
16199
16200
16201 # as_fn_mkdir_p
16202 # -------------
16203 # Create "$as_dir" as a directory, including parents if necessary.
16204 as_fn_mkdir_p ()
16205 {
16206
16207 case $as_dir in #(
16208 -*) as_dir=./$as_dir;;
16209 esac
16210 test -d "$as_dir" || eval $as_mkdir_p || {
16211 as_dirs=
16212 while :; do
16213 case $as_dir in #(
16214 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16215 *) as_qdir=$as_dir;;
16216 esac
16217 as_dirs="'$as_qdir' $as_dirs"
16218 as_dir=`$as_dirname -- "$as_dir" ||
16219 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16220 X"$as_dir" : 'X\(//\)[^/]' \| \
16221 X"$as_dir" : 'X\(//\)$' \| \
16222 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16223 $as_echo X"$as_dir" |
16224 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16225 s//\1/
16226 q
16227 }
16228 /^X\(\/\/\)[^/].*/{
16229 s//\1/
16230 q
16231 }
16232 /^X\(\/\/\)$/{
16233 s//\1/
16234 q
16235 }
16236 /^X\(\/\).*/{
16237 s//\1/
16238 q
16239 }
16240 s/.*/./; q'`
16241 test -d "$as_dir" && break
16242 done
16243 test -z "$as_dirs" || eval "mkdir $as_dirs"
16244 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
16245
16246
16247 } # as_fn_mkdir_p
16248 if mkdir -p . 2>/dev/null; then
16249 as_mkdir_p='mkdir -p "$as_dir"'
16250 else
16251 test -d ./-p && rmdir ./-p
16252 as_mkdir_p=false
16253 fi
16254
16255
16256 # as_fn_executable_p FILE
16257 # -----------------------
16258 # Test if FILE is an executable regular file.
16259 as_fn_executable_p ()
16260 {
16261 test -f "$1" && test -x "$1"
16262 } # as_fn_executable_p
16263 as_test_x='test -x'
16264 as_executable_p=as_fn_executable_p
16265
16266 # Sed expression to map a string onto a valid CPP name.
16267 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16268
16269 # Sed expression to map a string onto a valid variable name.
16270 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16271
16272
16273 exec 6>&1
16274 ## ----------------------------------- ##
16275 ## Main body of $CONFIG_STATUS script. ##
16276 ## ----------------------------------- ##
16277 _ASEOF
16278 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16279
16280 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16281 # Save the log message, to keep $0 and so on meaningful, and to
16282 # report actual input values of CONFIG_FILES etc. instead of their
16283 # values after options handling.
16284 ac_log="
16285 This file was extended by ircd-hybrid $as_me 8.2.0beta3, which was
16286 generated by GNU Autoconf 2.69. Invocation command line was
16287
16288 CONFIG_FILES = $CONFIG_FILES
16289 CONFIG_HEADERS = $CONFIG_HEADERS
16290 CONFIG_LINKS = $CONFIG_LINKS
16291 CONFIG_COMMANDS = $CONFIG_COMMANDS
16292 $ $0 $@
16293
16294 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16295 "
16296
16297 _ACEOF
16298
16299 case $ac_config_files in *"
16300 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16301 esac
16302
16303 case $ac_config_headers in *"
16304 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16305 esac
16306
16307
16308 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16309 # Files that config.status was made for.
16310 config_files="$ac_config_files"
16311 config_headers="$ac_config_headers"
16312 config_commands="$ac_config_commands"
16313
16314 _ACEOF
16315
16316 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16317 ac_cs_usage="\
16318 \`$as_me' instantiates files and other configuration actions
16319 from templates according to the current configuration. Unless the files
16320 and actions are specified as TAGs, all are instantiated by default.
16321
16322 Usage: $0 [OPTION]... [TAG]...
16323
16324 -h, --help print this help, then exit
16325 -V, --version print version number and configuration settings, then exit
16326 --config print configuration, then exit
16327 -q, --quiet, --silent
16328 do not print progress messages
16329 -d, --debug don't remove temporary files
16330 --recheck update $as_me by reconfiguring in the same conditions
16331 --file=FILE[:TEMPLATE]
16332 instantiate the configuration file FILE
16333 --header=FILE[:TEMPLATE]
16334 instantiate the configuration header FILE
16335
16336 Configuration files:
16337 $config_files
16338
16339 Configuration headers:
16340 $config_headers
16341
16342 Configuration commands:
16343 $config_commands
16344
16345 Report bugs to <bugs@ircd-hybrid.org>."
16346
16347 _ACEOF
16348 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16349 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
16350 ac_cs_version="\\
16351 ircd-hybrid config.status 8.2.0beta3
16352 configured by $0, generated by GNU Autoconf 2.69,
16353 with options \\"\$ac_cs_config\\"
16354
16355 Copyright (C) 2012 Free Software Foundation, Inc.
16356 This config.status script is free software; the Free Software Foundation
16357 gives unlimited permission to copy, distribute and modify it."
16358
16359 ac_pwd='$ac_pwd'
16360 srcdir='$srcdir'
16361 INSTALL='$INSTALL'
16362 MKDIR_P='$MKDIR_P'
16363 AWK='$AWK'
16364 test -n "\$AWK" || AWK=awk
16365 _ACEOF
16366
16367 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16368 # The default lists apply if the user does not specify any file.
16369 ac_need_defaults=:
16370 while test $# != 0
16371 do
16372 case $1 in
16373 --*=?*)
16374 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16375 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16376 ac_shift=:
16377 ;;
16378 --*=)
16379 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16380 ac_optarg=
16381 ac_shift=:
16382 ;;
16383 *)
16384 ac_option=$1
16385 ac_optarg=$2
16386 ac_shift=shift
16387 ;;
16388 esac
16389
16390 case $ac_option in
16391 # Handling of the options.
16392 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16393 ac_cs_recheck=: ;;
16394 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16395 $as_echo "$ac_cs_version"; exit ;;
16396 --config | --confi | --conf | --con | --co | --c )
16397 $as_echo "$ac_cs_config"; exit ;;
16398 --debug | --debu | --deb | --de | --d | -d )
16399 debug=: ;;
16400 --file | --fil | --fi | --f )
16401 $ac_shift
16402 case $ac_optarg in
16403 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16404 '') as_fn_error $? "missing file argument" ;;
16405 esac
16406 as_fn_append CONFIG_FILES " '$ac_optarg'"
16407 ac_need_defaults=false;;
16408 --header | --heade | --head | --hea )
16409 $ac_shift
16410 case $ac_optarg in
16411 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16412 esac
16413 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16414 ac_need_defaults=false;;
16415 --he | --h)
16416 # Conflict between --help and --header
16417 as_fn_error $? "ambiguous option: \`$1'
16418 Try \`$0 --help' for more information.";;
16419 --help | --hel | -h )
16420 $as_echo "$ac_cs_usage"; exit ;;
16421 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16422 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16423 ac_cs_silent=: ;;
16424
16425 # This is an error.
16426 -*) as_fn_error $? "unrecognized option: \`$1'
16427 Try \`$0 --help' for more information." ;;
16428
16429 *) as_fn_append ac_config_targets " $1"
16430 ac_need_defaults=false ;;
16431
16432 esac
16433 shift
16434 done
16435
16436 ac_configure_extra_args=
16437
16438 if $ac_cs_silent; then
16439 exec 6>/dev/null
16440 ac_configure_extra_args="$ac_configure_extra_args --silent"
16441 fi
16442
16443 _ACEOF
16444 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16445 if \$ac_cs_recheck; then
16446 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16447 shift
16448 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16449 CONFIG_SHELL='$SHELL'
16450 export CONFIG_SHELL
16451 exec "\$@"
16452 fi
16453
16454 _ACEOF
16455 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16456 exec 5>>config.log
16457 {
16458 echo
16459 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16460 ## Running $as_me. ##
16461 _ASBOX
16462 $as_echo "$ac_log"
16463 } >&5
16464
16465 _ACEOF
16466 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16467 #
16468 # INIT-COMMANDS
16469 #
16470 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16471
16472
16473 # The HP-UX ksh and POSIX shell print the target directory to stdout
16474 # if CDPATH is set.
16475 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16476
16477 sed_quote_subst='$sed_quote_subst'
16478 double_quote_subst='$double_quote_subst'
16479 delay_variable_subst='$delay_variable_subst'
16480 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
16481 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
16482 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
16483 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
16484 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
16485 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
16486 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
16487 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
16488 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
16489 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
16490 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
16491 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
16492 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
16493 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
16494 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
16495 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
16496 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
16497 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
16498 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
16499 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
16500 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
16501 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
16502 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
16503 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
16504 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
16505 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
16506 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
16507 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
16508 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
16509 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
16510 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
16511 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
16512 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
16513 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
16514 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
16515 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
16516 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
16517 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
16518 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
16519 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
16520 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
16521 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
16522 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
16523 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
16524 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
16525 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16526 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16527 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
16528 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
16529 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
16530 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
16531 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
16532 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
16533 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
16534 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
16535 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
16536 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"`'
16537 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
16538 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
16539 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
16540 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
16541 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
16542 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
16543 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
16544 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
16545 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
16546 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
16547 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
16548 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
16549 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
16550 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
16551 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
16552 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
16553 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
16554 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
16555 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16556 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
16557 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
16558 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
16559 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
16560 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
16561 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
16562 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16563 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
16564 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16565 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
16566 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16567 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
16568 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
16569 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
16570 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
16571 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
16572 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
16573 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
16574 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
16575 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
16576 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
16577 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
16578 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
16579 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
16580 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
16581 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
16582 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
16583 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
16584 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
16585 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
16586 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
16587 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
16588 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
16589 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
16590 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
16591 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
16592 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
16593 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
16594 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
16595 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
16596 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
16597 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16598 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16599 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
16600 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
16601 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
16602 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
16603 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
16604 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
16605 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
16606 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
16607 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
16608 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
16609 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
16610
16611 LTCC='$LTCC'
16612 LTCFLAGS='$LTCFLAGS'
16613 compiler='$compiler_DEFAULT'
16614
16615 # A function that is used when there is no print builtin or printf.
16616 func_fallback_echo ()
16617 {
16618 eval 'cat <<_LTECHO_EOF
16619 \$1
16620 _LTECHO_EOF'
16621 }
16622
16623 # Quote evaled strings.
16624 for var in SHELL \
16625 ECHO \
16626 PATH_SEPARATOR \
16627 SED \
16628 GREP \
16629 EGREP \
16630 FGREP \
16631 LD \
16632 NM \
16633 LN_S \
16634 lt_SP2NL \
16635 lt_NL2SP \
16636 reload_flag \
16637 OBJDUMP \
16638 deplibs_check_method \
16639 file_magic_cmd \
16640 file_magic_glob \
16641 want_nocaseglob \
16642 DLLTOOL \
16643 sharedlib_from_linklib_cmd \
16644 AR \
16645 AR_FLAGS \
16646 archiver_list_spec \
16647 STRIP \
16648 RANLIB \
16649 CC \
16650 CFLAGS \
16651 compiler \
16652 lt_cv_sys_global_symbol_pipe \
16653 lt_cv_sys_global_symbol_to_cdecl \
16654 lt_cv_sys_global_symbol_to_c_name_address \
16655 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16656 nm_file_list_spec \
16657 lt_prog_compiler_no_builtin_flag \
16658 lt_prog_compiler_pic \
16659 lt_prog_compiler_wl \
16660 lt_prog_compiler_static \
16661 lt_cv_prog_compiler_c_o \
16662 need_locks \
16663 MANIFEST_TOOL \
16664 DSYMUTIL \
16665 NMEDIT \
16666 LIPO \
16667 OTOOL \
16668 OTOOL64 \
16669 shrext_cmds \
16670 export_dynamic_flag_spec \
16671 whole_archive_flag_spec \
16672 compiler_needs_object \
16673 with_gnu_ld \
16674 allow_undefined_flag \
16675 no_undefined_flag \
16676 hardcode_libdir_flag_spec \
16677 hardcode_libdir_separator \
16678 exclude_expsyms \
16679 include_expsyms \
16680 file_list_spec \
16681 variables_saved_for_relink \
16682 libname_spec \
16683 library_names_spec \
16684 soname_spec \
16685 install_override_mode \
16686 finish_eval \
16687 old_striplib \
16688 striplib; do
16689 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16690 *[\\\\\\\`\\"\\\$]*)
16691 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
16692 ;;
16693 *)
16694 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16695 ;;
16696 esac
16697 done
16698
16699 # Double-quote double-evaled strings.
16700 for var in reload_cmds \
16701 old_postinstall_cmds \
16702 old_postuninstall_cmds \
16703 old_archive_cmds \
16704 extract_expsyms_cmds \
16705 old_archive_from_new_cmds \
16706 old_archive_from_expsyms_cmds \
16707 archive_cmds \
16708 archive_expsym_cmds \
16709 module_cmds \
16710 module_expsym_cmds \
16711 export_symbols_cmds \
16712 prelink_cmds \
16713 postlink_cmds \
16714 postinstall_cmds \
16715 postuninstall_cmds \
16716 finish_cmds \
16717 sys_lib_search_path_spec \
16718 sys_lib_dlsearch_path_spec; do
16719 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16720 *[\\\\\\\`\\"\\\$]*)
16721 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
16722 ;;
16723 *)
16724 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16725 ;;
16726 esac
16727 done
16728
16729 ac_aux_dir='$ac_aux_dir'
16730 xsi_shell='$xsi_shell'
16731 lt_shell_append='$lt_shell_append'
16732
16733 # See if we are running on zsh, and set the options which allow our
16734 # commands through without removal of \ escapes INIT.
16735 if test -n "\${ZSH_VERSION+set}" ; then
16736 setopt NO_GLOB_SUBST
16737 fi
16738
16739
16740 PACKAGE='$PACKAGE'
16741 VERSION='$VERSION'
16742 TIMESTAMP='$TIMESTAMP'
16743 RM='$RM'
16744 ofile='$ofile'
16745
16746
16747
16748
16749 _ACEOF
16750
16751 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16752
16753 # Handling of arguments.
16754 for ac_config_target in $ac_config_targets
16755 do
16756 case $ac_config_target in
16757 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
16758 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16759 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16760 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16761 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
16762 "libltdl/Makefile") CONFIG_FILES="$CONFIG_FILES libltdl/Makefile" ;;
16763 "modules/Makefile") CONFIG_FILES="$CONFIG_FILES modules/Makefile" ;;
16764 "modules/core/Makefile") CONFIG_FILES="$CONFIG_FILES modules/core/Makefile" ;;
16765 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
16766 "help/Makefile") CONFIG_FILES="$CONFIG_FILES help/Makefile" ;;
16767 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
16768
16769 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16770 esac
16771 done
16772
16773
16774 # If the user did not use the arguments to specify the items to instantiate,
16775 # then the envvar interface is used. Set only those that are not.
16776 # We use the long form for the default assignment because of an extremely
16777 # bizarre bug on SunOS 4.1.3.
16778 if $ac_need_defaults; then
16779 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16780 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16781 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16782 fi
16783
16784 # Have a temporary directory for convenience. Make it in the build tree
16785 # simply because there is no reason against having it here, and in addition,
16786 # creating and moving files from /tmp can sometimes cause problems.
16787 # Hook for its removal unless debugging.
16788 # Note that there is a small window in which the directory will not be cleaned:
16789 # after its creation but before its name has been assigned to `$tmp'.
16790 $debug ||
16791 {
16792 tmp= ac_tmp=
16793 trap 'exit_status=$?
16794 : "${ac_tmp:=$tmp}"
16795 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
16796 ' 0
16797 trap 'as_fn_exit 1' 1 2 13 15
16798 }
16799 # Create a (secure) tmp directory for tmp files.
16800
16801 {
16802 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16803 test -d "$tmp"
16804 } ||
16805 {
16806 tmp=./conf$$-$RANDOM
16807 (umask 077 && mkdir "$tmp")
16808 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16809 ac_tmp=$tmp
16810
16811 # Set up the scripts for CONFIG_FILES section.
16812 # No need to generate them if there are no CONFIG_FILES.
16813 # This happens for instance with `./config.status config.h'.
16814 if test -n "$CONFIG_FILES"; then
16815
16816
16817 ac_cr=`echo X | tr X '\015'`
16818 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16819 # But we know of no other shell where ac_cr would be empty at this
16820 # point, so we can use a bashism as a fallback.
16821 if test "x$ac_cr" = x; then
16822 eval ac_cr=\$\'\\r\'
16823 fi
16824 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16825 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16826 ac_cs_awk_cr='\\r'
16827 else
16828 ac_cs_awk_cr=$ac_cr
16829 fi
16830
16831 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
16832 _ACEOF
16833
16834
16835 {
16836 echo "cat >conf$$subs.awk <<_ACEOF" &&
16837 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16838 echo "_ACEOF"
16839 } >conf$$subs.sh ||
16840 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16841 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16842 ac_delim='%!_!# '
16843 for ac_last_try in false false false false false :; do
16844 . ./conf$$subs.sh ||
16845 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16846
16847 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16848 if test $ac_delim_n = $ac_delim_num; then
16849 break
16850 elif $ac_last_try; then
16851 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16852 else
16853 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16854 fi
16855 done
16856 rm -f conf$$subs.sh
16857
16858 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16859 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
16860 _ACEOF
16861 sed -n '
16862 h
16863 s/^/S["/; s/!.*/"]=/
16864 p
16865 g
16866 s/^[^!]*!//
16867 :repl
16868 t repl
16869 s/'"$ac_delim"'$//
16870 t delim
16871 :nl
16872 h
16873 s/\(.\{148\}\)..*/\1/
16874 t more1
16875 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16876 p
16877 n
16878 b repl
16879 :more1
16880 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16881 p
16882 g
16883 s/.\{148\}//
16884 t nl
16885 :delim
16886 h
16887 s/\(.\{148\}\)..*/\1/
16888 t more2
16889 s/["\\]/\\&/g; s/^/"/; s/$/"/
16890 p
16891 b
16892 :more2
16893 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16894 p
16895 g
16896 s/.\{148\}//
16897 t delim
16898 ' <conf$$subs.awk | sed '
16899 /^[^""]/{
16900 N
16901 s/\n//
16902 }
16903 ' >>$CONFIG_STATUS || ac_write_fail=1
16904 rm -f conf$$subs.awk
16905 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16906 _ACAWK
16907 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
16908 for (key in S) S_is_set[key] = 1
16909 FS = ""
16910
16911 }
16912 {
16913 line = $ 0
16914 nfields = split(line, field, "@")
16915 substed = 0
16916 len = length(field[1])
16917 for (i = 2; i < nfields; i++) {
16918 key = field[i]
16919 keylen = length(key)
16920 if (S_is_set[key]) {
16921 value = S[key]
16922 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16923 len += length(value) + length(field[++i])
16924 substed = 1
16925 } else
16926 len += 1 + keylen
16927 }
16928
16929 print line
16930 }
16931
16932 _ACAWK
16933 _ACEOF
16934 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16935 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16936 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16937 else
16938 cat
16939 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16940 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16941 _ACEOF
16942
16943 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16944 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16945 # trailing colons and then remove the whole line if VPATH becomes empty
16946 # (actually we leave an empty line to preserve line numbers).
16947 if test "x$srcdir" = x.; then
16948 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
16949 h
16950 s///
16951 s/^/:/
16952 s/[ ]*$/:/
16953 s/:\$(srcdir):/:/g
16954 s/:\${srcdir}:/:/g
16955 s/:@srcdir@:/:/g
16956 s/^:*//
16957 s/:*$//
16958 x
16959 s/\(=[ ]*\).*/\1/
16960 G
16961 s/\n//
16962 s/^[^=]*=[ ]*$//
16963 }'
16964 fi
16965
16966 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16967 fi # test -n "$CONFIG_FILES"
16968
16969 # Set up the scripts for CONFIG_HEADERS section.
16970 # No need to generate them if there are no CONFIG_HEADERS.
16971 # This happens for instance with `./config.status Makefile'.
16972 if test -n "$CONFIG_HEADERS"; then
16973 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
16974 BEGIN {
16975 _ACEOF
16976
16977 # Transform confdefs.h into an awk script `defines.awk', embedded as
16978 # here-document in config.status, that substitutes the proper values into
16979 # config.h.in to produce config.h.
16980
16981 # Create a delimiter string that does not exist in confdefs.h, to ease
16982 # handling of long lines.
16983 ac_delim='%!_!# '
16984 for ac_last_try in false false :; do
16985 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
16986 if test -z "$ac_tt"; then
16987 break
16988 elif $ac_last_try; then
16989 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
16990 else
16991 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16992 fi
16993 done
16994
16995 # For the awk script, D is an array of macro values keyed by name,
16996 # likewise P contains macro parameters if any. Preserve backslash
16997 # newline sequences.
16998
16999 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17000 sed -n '
17001 s/.\{148\}/&'"$ac_delim"'/g
17002 t rset
17003 :rset
17004 s/^[ ]*#[ ]*define[ ][ ]*/ /
17005 t def
17006 d
17007 :def
17008 s/\\$//
17009 t bsnl
17010 s/["\\]/\\&/g
17011 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17012 D["\1"]=" \3"/p
17013 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
17014 d
17015 :bsnl
17016 s/["\\]/\\&/g
17017 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17018 D["\1"]=" \3\\\\\\n"\\/p
17019 t cont
17020 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17021 t cont
17022 d
17023 :cont
17024 n
17025 s/.\{148\}/&'"$ac_delim"'/g
17026 t clear
17027 :clear
17028 s/\\$//
17029 t bsnlc
17030 s/["\\]/\\&/g; s/^/"/; s/$/"/p
17031 d
17032 :bsnlc
17033 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17034 b cont
17035 ' <confdefs.h | sed '
17036 s/'"$ac_delim"'/"\\\
17037 "/g' >>$CONFIG_STATUS || ac_write_fail=1
17038
17039 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17040 for (key in D) D_is_set[key] = 1
17041 FS = ""
17042 }
17043 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17044 line = \$ 0
17045 split(line, arg, " ")
17046 if (arg[1] == "#") {
17047 defundef = arg[2]
17048 mac1 = arg[3]
17049 } else {
17050 defundef = substr(arg[1], 2)
17051 mac1 = arg[2]
17052 }
17053 split(mac1, mac2, "(") #)
17054 macro = mac2[1]
17055 prefix = substr(line, 1, index(line, defundef) - 1)
17056 if (D_is_set[macro]) {
17057 # Preserve the white space surrounding the "#".
17058 print prefix "define", macro P[macro] D[macro]
17059 next
17060 } else {
17061 # Replace #undef with comments. This is necessary, for example,
17062 # in the case of _POSIX_SOURCE, which is predefined and required
17063 # on some systems where configure will not decide to define it.
17064 if (defundef == "undef") {
17065 print "/*", prefix defundef, macro, "*/"
17066 next
17067 }
17068 }
17069 }
17070 { print }
17071 _ACAWK
17072 _ACEOF
17073 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17074 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
17075 fi # test -n "$CONFIG_HEADERS"
17076
17077
17078 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
17079 shift
17080 for ac_tag
17081 do
17082 case $ac_tag in
17083 :[FHLC]) ac_mode=$ac_tag; continue;;
17084 esac
17085 case $ac_mode$ac_tag in
17086 :[FHL]*:*);;
17087 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
17088 :[FH]-) ac_tag=-:-;;
17089 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17090 esac
17091 ac_save_IFS=$IFS
17092 IFS=:
17093 set x $ac_tag
17094 IFS=$ac_save_IFS
17095 shift
17096 ac_file=$1
17097 shift
17098
17099 case $ac_mode in
17100 :L) ac_source=$1;;
17101 :[FH])
17102 ac_file_inputs=
17103 for ac_f
17104 do
17105 case $ac_f in
17106 -) ac_f="$ac_tmp/stdin";;
17107 *) # Look for the file first in the build tree, then in the source tree
17108 # (if the path is not absolute). The absolute path cannot be DOS-style,
17109 # because $ac_f cannot contain `:'.
17110 test -f "$ac_f" ||
17111 case $ac_f in
17112 [\\/$]*) false;;
17113 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17114 esac ||
17115 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17116 esac
17117 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17118 as_fn_append ac_file_inputs " '$ac_f'"
17119 done
17120
17121 # Let's still pretend it is `configure' which instantiates (i.e., don't
17122 # use $as_me), people would be surprised to read:
17123 # /* config.h. Generated by config.status. */
17124 configure_input='Generated from '`
17125 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17126 `' by configure.'
17127 if test x"$ac_file" != x-; then
17128 configure_input="$ac_file. $configure_input"
17129 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17130 $as_echo "$as_me: creating $ac_file" >&6;}
17131 fi
17132 # Neutralize special characters interpreted by sed in replacement strings.
17133 case $configure_input in #(
17134 *\&* | *\|* | *\\* )
17135 ac_sed_conf_input=`$as_echo "$configure_input" |
17136 sed 's/[\\\\&|]/\\\\&/g'`;; #(
17137 *) ac_sed_conf_input=$configure_input;;
17138 esac
17139
17140 case $ac_tag in
17141 *:-:* | *:-) cat >"$ac_tmp/stdin" \
17142 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
17143 esac
17144 ;;
17145 esac
17146
17147 ac_dir=`$as_dirname -- "$ac_file" ||
17148 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17149 X"$ac_file" : 'X\(//\)[^/]' \| \
17150 X"$ac_file" : 'X\(//\)$' \| \
17151 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17152 $as_echo X"$ac_file" |
17153 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17154 s//\1/
17155 q
17156 }
17157 /^X\(\/\/\)[^/].*/{
17158 s//\1/
17159 q
17160 }
17161 /^X\(\/\/\)$/{
17162 s//\1/
17163 q
17164 }
17165 /^X\(\/\).*/{
17166 s//\1/
17167 q
17168 }
17169 s/.*/./; q'`
17170 as_dir="$ac_dir"; as_fn_mkdir_p
17171 ac_builddir=.
17172
17173 case "$ac_dir" in
17174 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17175 *)
17176 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17177 # A ".." for each directory in $ac_dir_suffix.
17178 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17179 case $ac_top_builddir_sub in
17180 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17181 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17182 esac ;;
17183 esac
17184 ac_abs_top_builddir=$ac_pwd
17185 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17186 # for backward compatibility:
17187 ac_top_builddir=$ac_top_build_prefix
17188
17189 case $srcdir in
17190 .) # We are building in place.
17191 ac_srcdir=.
17192 ac_top_srcdir=$ac_top_builddir_sub
17193 ac_abs_top_srcdir=$ac_pwd ;;
17194 [\\/]* | ?:[\\/]* ) # Absolute name.
17195 ac_srcdir=$srcdir$ac_dir_suffix;
17196 ac_top_srcdir=$srcdir
17197 ac_abs_top_srcdir=$srcdir ;;
17198 *) # Relative name.
17199 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17200 ac_top_srcdir=$ac_top_build_prefix$srcdir
17201 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17202 esac
17203 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17204
17205
17206 case $ac_mode in
17207 :F)
17208 #
17209 # CONFIG_FILE
17210 #
17211
17212 case $INSTALL in
17213 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17214 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17215 esac
17216 ac_MKDIR_P=$MKDIR_P
17217 case $MKDIR_P in
17218 [\\/$]* | ?:[\\/]* ) ;;
17219 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17220 esac
17221 _ACEOF
17222
17223 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17224 # If the template does not know about datarootdir, expand it.
17225 # FIXME: This hack should be removed a few years after 2.60.
17226 ac_datarootdir_hack=; ac_datarootdir_seen=
17227 ac_sed_dataroot='
17228 /datarootdir/ {
17229 p
17230 q
17231 }
17232 /@datadir@/p
17233 /@docdir@/p
17234 /@infodir@/p
17235 /@localedir@/p
17236 /@mandir@/p'
17237 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17238 *datarootdir*) ac_datarootdir_seen=yes;;
17239 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17240 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17241 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17242 _ACEOF
17243 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17244 ac_datarootdir_hack='
17245 s&@datadir@&$datadir&g
17246 s&@docdir@&$docdir&g
17247 s&@infodir@&$infodir&g
17248 s&@localedir@&$localedir&g
17249 s&@mandir@&$mandir&g
17250 s&\\\${datarootdir}&$datarootdir&g' ;;
17251 esac
17252 _ACEOF
17253
17254 # Neutralize VPATH when `$srcdir' = `.'.
17255 # Shell code in configure.ac might set extrasub.
17256 # FIXME: do we really want to maintain this feature?
17257 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17258 ac_sed_extra="$ac_vpsub
17259 $extrasub
17260 _ACEOF
17261 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17262 :t
17263 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17264 s|@configure_input@|$ac_sed_conf_input|;t t
17265 s&@top_builddir@&$ac_top_builddir_sub&;t t
17266 s&@top_build_prefix@&$ac_top_build_prefix&;t t
17267 s&@srcdir@&$ac_srcdir&;t t
17268 s&@abs_srcdir@&$ac_abs_srcdir&;t t
17269 s&@top_srcdir@&$ac_top_srcdir&;t t
17270 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17271 s&@builddir@&$ac_builddir&;t t
17272 s&@abs_builddir@&$ac_abs_builddir&;t t
17273 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17274 s&@INSTALL@&$ac_INSTALL&;t t
17275 s&@MKDIR_P@&$ac_MKDIR_P&;t t
17276 $ac_datarootdir_hack
17277 "
17278 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
17279 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17280
17281 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17282 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
17283 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
17284 "$ac_tmp/out"`; test -z "$ac_out"; } &&
17285 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17286 which seems to be undefined. Please make sure it is defined" >&5
17287 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17288 which seems to be undefined. Please make sure it is defined" >&2;}
17289
17290 rm -f "$ac_tmp/stdin"
17291 case $ac_file in
17292 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
17293 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
17294 esac \
17295 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17296 ;;
17297 :H)
17298 #
17299 # CONFIG_HEADER
17300 #
17301 if test x"$ac_file" != x-; then
17302 {
17303 $as_echo "/* $configure_input */" \
17304 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
17305 } >"$ac_tmp/config.h" \
17306 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17307 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
17308 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17309 $as_echo "$as_me: $ac_file is unchanged" >&6;}
17310 else
17311 rm -f "$ac_file"
17312 mv "$ac_tmp/config.h" "$ac_file" \
17313 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17314 fi
17315 else
17316 $as_echo "/* $configure_input */" \
17317 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
17318 || as_fn_error $? "could not create -" "$LINENO" 5
17319 fi
17320 # Compute "$ac_file"'s index in $config_headers.
17321 _am_arg="$ac_file"
17322 _am_stamp_count=1
17323 for _am_header in $config_headers :; do
17324 case $_am_header in
17325 $_am_arg | $_am_arg:* )
17326 break ;;
17327 * )
17328 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17329 esac
17330 done
17331 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17332 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17333 X"$_am_arg" : 'X\(//\)[^/]' \| \
17334 X"$_am_arg" : 'X\(//\)$' \| \
17335 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
17336 $as_echo X"$_am_arg" |
17337 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17338 s//\1/
17339 q
17340 }
17341 /^X\(\/\/\)[^/].*/{
17342 s//\1/
17343 q
17344 }
17345 /^X\(\/\/\)$/{
17346 s//\1/
17347 q
17348 }
17349 /^X\(\/\).*/{
17350 s//\1/
17351 q
17352 }
17353 s/.*/./; q'`/stamp-h$_am_stamp_count
17354 ;;
17355
17356 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17357 $as_echo "$as_me: executing $ac_file commands" >&6;}
17358 ;;
17359 esac
17360
17361
17362 case $ac_file$ac_mode in
17363 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
17364 # Older Autoconf quotes --file arguments for eval, but not when files
17365 # are listed without --file. Let's play safe and only enable the eval
17366 # if we detect the quoting.
17367 case $CONFIG_FILES in
17368 *\'*) eval set x "$CONFIG_FILES" ;;
17369 *) set x $CONFIG_FILES ;;
17370 esac
17371 shift
17372 for mf
17373 do
17374 # Strip MF so we end up with the name of the file.
17375 mf=`echo "$mf" | sed -e 's/:.*$//'`
17376 # Check whether this is an Automake generated Makefile or not.
17377 # We used to match only the files named 'Makefile.in', but
17378 # some people rename them; so instead we look at the file content.
17379 # Grep'ing the first line is not enough: some people post-process
17380 # each Makefile.in and add a new line on top of each file to say so.
17381 # Grep'ing the whole file is not good either: AIX grep has a line
17382 # limit of 2048, but all sed's we know have understand at least 4000.
17383 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
17384 dirpart=`$as_dirname -- "$mf" ||
17385 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17386 X"$mf" : 'X\(//\)[^/]' \| \
17387 X"$mf" : 'X\(//\)$' \| \
17388 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
17389 $as_echo X"$mf" |
17390 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17391 s//\1/
17392 q
17393 }
17394 /^X\(\/\/\)[^/].*/{
17395 s//\1/
17396 q
17397 }
17398 /^X\(\/\/\)$/{
17399 s//\1/
17400 q
17401 }
17402 /^X\(\/\).*/{
17403 s//\1/
17404 q
17405 }
17406 s/.*/./; q'`
17407 else
17408 continue
17409 fi
17410 # Extract the definition of DEPDIR, am__include, and am__quote
17411 # from the Makefile without running 'make'.
17412 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
17413 test -z "$DEPDIR" && continue
17414 am__include=`sed -n 's/^am__include = //p' < "$mf"`
17415 test -z "$am__include" && continue
17416 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
17417 # Find all dependency output files, they are included files with
17418 # $(DEPDIR) in their names. We invoke sed twice because it is the
17419 # simplest approach to changing $(DEPDIR) to its actual value in the
17420 # expansion.
17421 for file in `sed -n "
17422 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17423 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
17424 # Make sure the directory exists.
17425 test -f "$dirpart/$file" && continue
17426 fdir=`$as_dirname -- "$file" ||
17427 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17428 X"$file" : 'X\(//\)[^/]' \| \
17429 X"$file" : 'X\(//\)$' \| \
17430 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
17431 $as_echo X"$file" |
17432 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17433 s//\1/
17434 q
17435 }
17436 /^X\(\/\/\)[^/].*/{
17437 s//\1/
17438 q
17439 }
17440 /^X\(\/\/\)$/{
17441 s//\1/
17442 q
17443 }
17444 /^X\(\/\).*/{
17445 s//\1/
17446 q
17447 }
17448 s/.*/./; q'`
17449 as_dir=$dirpart/$fdir; as_fn_mkdir_p
17450 # echo "creating $dirpart/$file"
17451 echo '# dummy' > "$dirpart/$file"
17452 done
17453 done
17454 }
17455 ;;
17456 "libtool":C)
17457
17458 # See if we are running on zsh, and set the options which allow our
17459 # commands through without removal of \ escapes.
17460 if test -n "${ZSH_VERSION+set}" ; then
17461 setopt NO_GLOB_SUBST
17462 fi
17463
17464 cfgfile="${ofile}T"
17465 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17466 $RM "$cfgfile"
17467
17468 cat <<_LT_EOF >> "$cfgfile"
17469 #! $SHELL
17470
17471 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17472 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
17473 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17474 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17475 #
17476 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
17477 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
17478 # Foundation, Inc.
17479 # Written by Gordon Matzigkeit, 1996
17480 #
17481 # This file is part of GNU Libtool.
17482 #
17483 # GNU Libtool is free software; you can redistribute it and/or
17484 # modify it under the terms of the GNU General Public License as
17485 # published by the Free Software Foundation; either version 2 of
17486 # the License, or (at your option) any later version.
17487 #
17488 # As a special exception to the GNU General Public License,
17489 # if you distribute this file as part of a program or library that
17490 # is built using GNU Libtool, you may include this file under the
17491 # same distribution terms that you use for the rest of that program.
17492 #
17493 # GNU Libtool is distributed in the hope that it will be useful,
17494 # but WITHOUT ANY WARRANTY; without even the implied warranty of
17495 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17496 # GNU General Public License for more details.
17497 #
17498 # You should have received a copy of the GNU General Public License
17499 # along with GNU Libtool; see the file COPYING. If not, a copy
17500 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
17501 # obtained by writing to the Free Software Foundation, Inc.,
17502 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17503
17504
17505 # The names of the tagged configurations supported by this script.
17506 available_tags=""
17507
17508 # ### BEGIN LIBTOOL CONFIG
17509
17510 # Which release of libtool.m4 was used?
17511 macro_version=$macro_version
17512 macro_revision=$macro_revision
17513
17514 # Whether or not to build static libraries.
17515 build_old_libs=$enable_static
17516
17517 # Whether or not to build shared libraries.
17518 build_libtool_libs=$enable_shared
17519
17520 # What type of objects to build.
17521 pic_mode=$pic_mode
17522
17523 # Whether or not to optimize for fast installation.
17524 fast_install=$enable_fast_install
17525
17526 # Shell to use when invoking shell scripts.
17527 SHELL=$lt_SHELL
17528
17529 # An echo program that protects backslashes.
17530 ECHO=$lt_ECHO
17531
17532 # The PATH separator for the build system.
17533 PATH_SEPARATOR=$lt_PATH_SEPARATOR
17534
17535 # The host system.
17536 host_alias=$host_alias
17537 host=$host
17538 host_os=$host_os
17539
17540 # The build system.
17541 build_alias=$build_alias
17542 build=$build
17543 build_os=$build_os
17544
17545 # A sed program that does not truncate output.
17546 SED=$lt_SED
17547
17548 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17549 Xsed="\$SED -e 1s/^X//"
17550
17551 # A grep program that handles long lines.
17552 GREP=$lt_GREP
17553
17554 # An ERE matcher.
17555 EGREP=$lt_EGREP
17556
17557 # A literal string matcher.
17558 FGREP=$lt_FGREP
17559
17560 # A BSD- or MS-compatible name lister.
17561 NM=$lt_NM
17562
17563 # Whether we need soft or hard links.
17564 LN_S=$lt_LN_S
17565
17566 # What is the maximum length of a command?
17567 max_cmd_len=$max_cmd_len
17568
17569 # Object file suffix (normally "o").
17570 objext=$ac_objext
17571
17572 # Executable file suffix (normally "").
17573 exeext=$exeext
17574
17575 # whether the shell understands "unset".
17576 lt_unset=$lt_unset
17577
17578 # turn spaces into newlines.
17579 SP2NL=$lt_lt_SP2NL
17580
17581 # turn newlines into spaces.
17582 NL2SP=$lt_lt_NL2SP
17583
17584 # convert \$build file names to \$host format.
17585 to_host_file_cmd=$lt_cv_to_host_file_cmd
17586
17587 # convert \$build files to toolchain format.
17588 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
17589
17590 # An object symbol dumper.
17591 OBJDUMP=$lt_OBJDUMP
17592
17593 # Method to check whether dependent libraries are shared objects.
17594 deplibs_check_method=$lt_deplibs_check_method
17595
17596 # Command to use when deplibs_check_method = "file_magic".
17597 file_magic_cmd=$lt_file_magic_cmd
17598
17599 # How to find potential files when deplibs_check_method = "file_magic".
17600 file_magic_glob=$lt_file_magic_glob
17601
17602 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
17603 want_nocaseglob=$lt_want_nocaseglob
17604
17605 # DLL creation program.
17606 DLLTOOL=$lt_DLLTOOL
17607
17608 # Command to associate shared and link libraries.
17609 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
17610
17611 # The archiver.
17612 AR=$lt_AR
17613
17614 # Flags to create an archive.
17615 AR_FLAGS=$lt_AR_FLAGS
17616
17617 # How to feed a file listing to the archiver.
17618 archiver_list_spec=$lt_archiver_list_spec
17619
17620 # A symbol stripping program.
17621 STRIP=$lt_STRIP
17622
17623 # Commands used to install an old-style archive.
17624 RANLIB=$lt_RANLIB
17625 old_postinstall_cmds=$lt_old_postinstall_cmds
17626 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17627
17628 # Whether to use a lock for old archive extraction.
17629 lock_old_archive_extraction=$lock_old_archive_extraction
17630
17631 # A C compiler.
17632 LTCC=$lt_CC
17633
17634 # LTCC compiler flags.
17635 LTCFLAGS=$lt_CFLAGS
17636
17637 # Take the output of nm and produce a listing of raw symbols and C names.
17638 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17639
17640 # Transform the output of nm in a proper C declaration.
17641 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17642
17643 # Transform the output of nm in a C name address pair.
17644 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17645
17646 # Transform the output of nm in a C name address pair when lib prefix is needed.
17647 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17648
17649 # Specify filename containing input files for \$NM.
17650 nm_file_list_spec=$lt_nm_file_list_spec
17651
17652 # The root where to search for dependent libraries,and in which our libraries should be installed.
17653 lt_sysroot=$lt_sysroot
17654
17655 # The name of the directory that contains temporary libtool files.
17656 objdir=$objdir
17657
17658 # Used to examine libraries when file_magic_cmd begins with "file".
17659 MAGIC_CMD=$MAGIC_CMD
17660
17661 # Must we lock files when doing compilation?
17662 need_locks=$lt_need_locks
17663
17664 # Manifest tool.
17665 MANIFEST_TOOL=$lt_MANIFEST_TOOL
17666
17667 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17668 DSYMUTIL=$lt_DSYMUTIL
17669
17670 # Tool to change global to local symbols on Mac OS X.
17671 NMEDIT=$lt_NMEDIT
17672
17673 # Tool to manipulate fat objects and archives on Mac OS X.
17674 LIPO=$lt_LIPO
17675
17676 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
17677 OTOOL=$lt_OTOOL
17678
17679 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17680 OTOOL64=$lt_OTOOL64
17681
17682 # Old archive suffix (normally "a").
17683 libext=$libext
17684
17685 # Shared library suffix (normally ".so").
17686 shrext_cmds=$lt_shrext_cmds
17687
17688 # The commands to extract the exported symbol list from a shared archive.
17689 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17690
17691 # Variables whose values should be saved in libtool wrapper scripts and
17692 # restored at link time.
17693 variables_saved_for_relink=$lt_variables_saved_for_relink
17694
17695 # Do we need the "lib" prefix for modules?
17696 need_lib_prefix=$need_lib_prefix
17697
17698 # Do we need a version for libraries?
17699 need_version=$need_version
17700
17701 # Library versioning type.
17702 version_type=$version_type
17703
17704 # Shared library runtime path variable.
17705 runpath_var=$runpath_var
17706
17707 # Shared library path variable.
17708 shlibpath_var=$shlibpath_var
17709
17710 # Is shlibpath searched before the hard-coded library search path?
17711 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17712
17713 # Format of library name prefix.
17714 libname_spec=$lt_libname_spec
17715
17716 # List of archive names. First name is the real one, the rest are links.
17717 # The last name is the one that the linker finds with -lNAME
17718 library_names_spec=$lt_library_names_spec
17719
17720 # The coded name of the library, if different from the real name.
17721 soname_spec=$lt_soname_spec
17722
17723 # Permission mode override for installation of shared libraries.
17724 install_override_mode=$lt_install_override_mode
17725
17726 # Command to use after installation of a shared archive.
17727 postinstall_cmds=$lt_postinstall_cmds
17728
17729 # Command to use after uninstallation of a shared archive.
17730 postuninstall_cmds=$lt_postuninstall_cmds
17731
17732 # Commands used to finish a libtool library installation in a directory.
17733 finish_cmds=$lt_finish_cmds
17734
17735 # As "finish_cmds", except a single script fragment to be evaled but
17736 # not shown.
17737 finish_eval=$lt_finish_eval
17738
17739 # Whether we should hardcode library paths into libraries.
17740 hardcode_into_libs=$hardcode_into_libs
17741
17742 # Compile-time system search path for libraries.
17743 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17744
17745 # Run-time system search path for libraries.
17746 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17747
17748 # Whether dlopen is supported.
17749 dlopen_support=$enable_dlopen
17750
17751 # Whether dlopen of programs is supported.
17752 dlopen_self=$enable_dlopen_self
17753
17754 # Whether dlopen of statically linked programs is supported.
17755 dlopen_self_static=$enable_dlopen_self_static
17756
17757 # Commands to strip libraries.
17758 old_striplib=$lt_old_striplib
17759 striplib=$lt_striplib
17760
17761
17762 # The linker used to build libraries.
17763 LD=$lt_LD
17764
17765 # How to create reloadable object files.
17766 reload_flag=$lt_reload_flag
17767 reload_cmds=$lt_reload_cmds
17768
17769 # Commands used to build an old-style archive.
17770 old_archive_cmds=$lt_old_archive_cmds
17771
17772 # A language specific compiler.
17773 CC=$lt_compiler
17774
17775 # Is the compiler the GNU compiler?
17776 with_gcc=$GCC
17777
17778 # Compiler flag to turn off builtin functions.
17779 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17780
17781 # Additional compiler flags for building library objects.
17782 pic_flag=$lt_lt_prog_compiler_pic
17783
17784 # How to pass a linker flag through the compiler.
17785 wl=$lt_lt_prog_compiler_wl
17786
17787 # Compiler flag to prevent dynamic linking.
17788 link_static_flag=$lt_lt_prog_compiler_static
17789
17790 # Does compiler simultaneously support -c and -o options?
17791 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17792
17793 # Whether or not to add -lc for building shared libraries.
17794 build_libtool_need_lc=$archive_cmds_need_lc
17795
17796 # Whether or not to disallow shared libs when runtime libs are static.
17797 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17798
17799 # Compiler flag to allow reflexive dlopens.
17800 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17801
17802 # Compiler flag to generate shared objects directly from archives.
17803 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17804
17805 # Whether the compiler copes with passing no objects directly.
17806 compiler_needs_object=$lt_compiler_needs_object
17807
17808 # Create an old-style archive from a shared archive.
17809 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17810
17811 # Create a temporary old-style archive to link instead of a shared archive.
17812 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17813
17814 # Commands used to build a shared archive.
17815 archive_cmds=$lt_archive_cmds
17816 archive_expsym_cmds=$lt_archive_expsym_cmds
17817
17818 # Commands used to build a loadable module if different from building
17819 # a shared archive.
17820 module_cmds=$lt_module_cmds
17821 module_expsym_cmds=$lt_module_expsym_cmds
17822
17823 # Whether we are building with GNU ld or not.
17824 with_gnu_ld=$lt_with_gnu_ld
17825
17826 # Flag that allows shared libraries with undefined symbols to be built.
17827 allow_undefined_flag=$lt_allow_undefined_flag
17828
17829 # Flag that enforces no undefined symbols.
17830 no_undefined_flag=$lt_no_undefined_flag
17831
17832 # Flag to hardcode \$libdir into a binary during linking.
17833 # This must work even if \$libdir does not exist
17834 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17835
17836 # Whether we need a single "-rpath" flag with a separated argument.
17837 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17838
17839 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17840 # DIR into the resulting binary.
17841 hardcode_direct=$hardcode_direct
17842
17843 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17844 # DIR into the resulting binary and the resulting library dependency is
17845 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17846 # library is relocated.
17847 hardcode_direct_absolute=$hardcode_direct_absolute
17848
17849 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17850 # into the resulting binary.
17851 hardcode_minus_L=$hardcode_minus_L
17852
17853 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17854 # into the resulting binary.
17855 hardcode_shlibpath_var=$hardcode_shlibpath_var
17856
17857 # Set to "yes" if building a shared library automatically hardcodes DIR
17858 # into the library and all subsequent libraries and executables linked
17859 # against it.
17860 hardcode_automatic=$hardcode_automatic
17861
17862 # Set to yes if linker adds runtime paths of dependent libraries
17863 # to runtime path list.
17864 inherit_rpath=$inherit_rpath
17865
17866 # Whether libtool must link a program against all its dependency libraries.
17867 link_all_deplibs=$link_all_deplibs
17868
17869 # Set to "yes" if exported symbols are required.
17870 always_export_symbols=$always_export_symbols
17871
17872 # The commands to list exported symbols.
17873 export_symbols_cmds=$lt_export_symbols_cmds
17874
17875 # Symbols that should not be listed in the preloaded symbols.
17876 exclude_expsyms=$lt_exclude_expsyms
17877
17878 # Symbols that must always be exported.
17879 include_expsyms=$lt_include_expsyms
17880
17881 # Commands necessary for linking programs (against libraries) with templates.
17882 prelink_cmds=$lt_prelink_cmds
17883
17884 # Commands necessary for finishing linking programs.
17885 postlink_cmds=$lt_postlink_cmds
17886
17887 # Specify filename containing input files.
17888 file_list_spec=$lt_file_list_spec
17889
17890 # How to hardcode a shared library path into an executable.
17891 hardcode_action=$hardcode_action
17892
17893 # ### END LIBTOOL CONFIG
17894
17895 _LT_EOF
17896
17897 case $host_os in
17898 aix3*)
17899 cat <<\_LT_EOF >> "$cfgfile"
17900 # AIX sometimes has problems with the GCC collect2 program. For some
17901 # reason, if we set the COLLECT_NAMES environment variable, the problems
17902 # vanish in a puff of smoke.
17903 if test "X${COLLECT_NAMES+set}" != Xset; then
17904 COLLECT_NAMES=
17905 export COLLECT_NAMES
17906 fi
17907 _LT_EOF
17908 ;;
17909 esac
17910
17911
17912 ltmain="$ac_aux_dir/ltmain.sh"
17913
17914
17915 # We use sed instead of cat because bash on DJGPP gets confused if
17916 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17917 # text mode, it properly converts lines to CR/LF. This bash problem
17918 # is reportedly fixed, but why not run on old versions too?
17919 sed '$q' "$ltmain" >> "$cfgfile" \
17920 || (rm -f "$cfgfile"; exit 1)
17921
17922 if test x"$xsi_shell" = xyes; then
17923 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
17924 func_dirname ()\
17925 {\
17926 \ case ${1} in\
17927 \ */*) func_dirname_result="${1%/*}${2}" ;;\
17928 \ * ) func_dirname_result="${3}" ;;\
17929 \ esac\
17930 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
17931 && mv -f "$cfgfile.tmp" "$cfgfile" \
17932 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17933 test 0 -eq $? || _lt_function_replace_fail=:
17934
17935
17936 sed -e '/^func_basename ()$/,/^} # func_basename /c\
17937 func_basename ()\
17938 {\
17939 \ func_basename_result="${1##*/}"\
17940 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
17941 && mv -f "$cfgfile.tmp" "$cfgfile" \
17942 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17943 test 0 -eq $? || _lt_function_replace_fail=:
17944
17945
17946 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
17947 func_dirname_and_basename ()\
17948 {\
17949 \ case ${1} in\
17950 \ */*) func_dirname_result="${1%/*}${2}" ;;\
17951 \ * ) func_dirname_result="${3}" ;;\
17952 \ esac\
17953 \ func_basename_result="${1##*/}"\
17954 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
17955 && mv -f "$cfgfile.tmp" "$cfgfile" \
17956 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17957 test 0 -eq $? || _lt_function_replace_fail=:
17958
17959
17960 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
17961 func_stripname ()\
17962 {\
17963 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
17964 \ # positional parameters, so assign one to ordinary parameter first.\
17965 \ func_stripname_result=${3}\
17966 \ func_stripname_result=${func_stripname_result#"${1}"}\
17967 \ func_stripname_result=${func_stripname_result%"${2}"}\
17968 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
17969 && mv -f "$cfgfile.tmp" "$cfgfile" \
17970 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17971 test 0 -eq $? || _lt_function_replace_fail=:
17972
17973
17974 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
17975 func_split_long_opt ()\
17976 {\
17977 \ func_split_long_opt_name=${1%%=*}\
17978 \ func_split_long_opt_arg=${1#*=}\
17979 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
17980 && mv -f "$cfgfile.tmp" "$cfgfile" \
17981 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17982 test 0 -eq $? || _lt_function_replace_fail=:
17983
17984
17985 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
17986 func_split_short_opt ()\
17987 {\
17988 \ func_split_short_opt_arg=${1#??}\
17989 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
17990 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
17991 && mv -f "$cfgfile.tmp" "$cfgfile" \
17992 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17993 test 0 -eq $? || _lt_function_replace_fail=:
17994
17995
17996 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
17997 func_lo2o ()\
17998 {\
17999 \ case ${1} in\
18000 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
18001 \ *) func_lo2o_result=${1} ;;\
18002 \ esac\
18003 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
18004 && mv -f "$cfgfile.tmp" "$cfgfile" \
18005 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18006 test 0 -eq $? || _lt_function_replace_fail=:
18007
18008
18009 sed -e '/^func_xform ()$/,/^} # func_xform /c\
18010 func_xform ()\
18011 {\
18012 func_xform_result=${1%.*}.lo\
18013 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
18014 && mv -f "$cfgfile.tmp" "$cfgfile" \
18015 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18016 test 0 -eq $? || _lt_function_replace_fail=:
18017
18018
18019 sed -e '/^func_arith ()$/,/^} # func_arith /c\
18020 func_arith ()\
18021 {\
18022 func_arith_result=$(( $* ))\
18023 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
18024 && mv -f "$cfgfile.tmp" "$cfgfile" \
18025 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18026 test 0 -eq $? || _lt_function_replace_fail=:
18027
18028
18029 sed -e '/^func_len ()$/,/^} # func_len /c\
18030 func_len ()\
18031 {\
18032 func_len_result=${#1}\
18033 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
18034 && mv -f "$cfgfile.tmp" "$cfgfile" \
18035 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18036 test 0 -eq $? || _lt_function_replace_fail=:
18037
18038 fi
18039
18040 if test x"$lt_shell_append" = xyes; then
18041 sed -e '/^func_append ()$/,/^} # func_append /c\
18042 func_append ()\
18043 {\
18044 eval "${1}+=\\${2}"\
18045 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
18046 && mv -f "$cfgfile.tmp" "$cfgfile" \
18047 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18048 test 0 -eq $? || _lt_function_replace_fail=:
18049
18050
18051 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
18052 func_append_quoted ()\
18053 {\
18054 \ func_quote_for_eval "${2}"\
18055 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
18056 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
18057 && mv -f "$cfgfile.tmp" "$cfgfile" \
18058 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18059 test 0 -eq $? || _lt_function_replace_fail=:
18060
18061
18062 # Save a `func_append' function call where possible by direct use of '+='
18063 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
18064 && mv -f "$cfgfile.tmp" "$cfgfile" \
18065 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18066 test 0 -eq $? || _lt_function_replace_fail=:
18067 else
18068 # Save a `func_append' function call even when '+=' is not available
18069 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
18070 && mv -f "$cfgfile.tmp" "$cfgfile" \
18071 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18072 test 0 -eq $? || _lt_function_replace_fail=:
18073 fi
18074
18075 if test x"$_lt_function_replace_fail" = x":"; then
18076 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
18077 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
18078 fi
18079
18080
18081 mv -f "$cfgfile" "$ofile" ||
18082 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18083 chmod +x "$ofile"
18084
18085 ;;
18086
18087 esac
18088 done # for ac_tag
18089
18090
18091 as_fn_exit 0
18092 _ACEOF
18093 ac_clean_files=$ac_clean_files_save
18094
18095 test $ac_write_fail = 0 ||
18096 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
18097
18098
18099 # configure is writing to config.log, and then calls config.status.
18100 # config.status does its own redirection, appending to config.log.
18101 # Unfortunately, on DOS this fails, as config.log is still kept open
18102 # by configure, so config.status won't be able to write to it; its
18103 # output is simply discarded. So we exec the FD to /dev/null,
18104 # effectively closing config.log, so it can be properly (re)opened and
18105 # appended to by config.status. When coming back to configure, we
18106 # need to make the FD available again.
18107 if test "$no_create" != yes; then
18108 ac_cs_success=:
18109 ac_config_status_args=
18110 test "$silent" = yes &&
18111 ac_config_status_args="$ac_config_status_args --quiet"
18112 exec 5>/dev/null
18113 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18114 exec 5>>config.log
18115 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18116 # would make configure fail if this is the last instruction.
18117 $ac_cs_success || as_fn_exit 1
18118 fi
18119 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18120 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18121 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
18122 fi
18123

Properties

Name Value
svn:eol-style native
svn:executable *