ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/ircd-hybrid/branches/8.2.x/configure
Revision: 4371
Committed: Sun Aug 3 10:56:24 2014 UTC (9 years, 8 months ago) by michael
File size: 515909 byte(s)
Log Message:
- Revved version to hybrid-8.2.0rc2

File Contents

# Content
1 #! /bin/sh
2 # From configure.ac Id: configure.ac 4363 2014-08-02 22:23:09Z michael .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.69 for ircd-hybrid 8.2.0rc2.
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.0rc2'
597 PACKAGE_STRING='ircd-hybrid 8.2.0rc2'
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_assert
810 enable_kqueue
811 enable_epoll
812 enable_devpoll
813 enable_poll
814 enable_debugging
815 enable_warnings
816 enable_openssl
817 '
818 ac_precious_vars='build_alias
819 host_alias
820 target_alias
821 CC
822 CFLAGS
823 LDFLAGS
824 LIBS
825 CPPFLAGS
826 YACC
827 YFLAGS
828 CPP'
829
830
831 # Initialize some variables set by options.
832 ac_init_help=
833 ac_init_version=false
834 ac_unrecognized_opts=
835 ac_unrecognized_sep=
836 # The variables have the same names as the options, with
837 # dashes changed to underlines.
838 cache_file=/dev/null
839 exec_prefix=NONE
840 no_create=
841 no_recursion=
842 prefix=NONE
843 program_prefix=NONE
844 program_suffix=NONE
845 program_transform_name=s,x,x,
846 silent=
847 site=
848 srcdir=
849 verbose=
850 x_includes=NONE
851 x_libraries=NONE
852
853 # Installation directory options.
854 # These are left unexpanded so users can "make install exec_prefix=/foo"
855 # and all the variables that are supposed to be based on exec_prefix
856 # by default will actually change.
857 # Use braces instead of parens because sh, perl, etc. also accept them.
858 # (The list follows the same order as the GNU Coding Standards.)
859 bindir='${exec_prefix}/bin'
860 sbindir='${exec_prefix}/sbin'
861 libexecdir='${exec_prefix}/libexec'
862 datarootdir='${prefix}/share'
863 datadir='${datarootdir}'
864 sysconfdir='${prefix}/etc'
865 sharedstatedir='${prefix}/com'
866 localstatedir='${prefix}/var'
867 includedir='${prefix}/include'
868 oldincludedir='/usr/include'
869 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
870 infodir='${datarootdir}/info'
871 htmldir='${docdir}'
872 dvidir='${docdir}'
873 pdfdir='${docdir}'
874 psdir='${docdir}'
875 libdir='${exec_prefix}/lib'
876 localedir='${datarootdir}/locale'
877 mandir='${datarootdir}/man'
878
879 ac_prev=
880 ac_dashdash=
881 for ac_option
882 do
883 # If the previous option needs an argument, assign it.
884 if test -n "$ac_prev"; then
885 eval $ac_prev=\$ac_option
886 ac_prev=
887 continue
888 fi
889
890 case $ac_option in
891 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
892 *=) ac_optarg= ;;
893 *) ac_optarg=yes ;;
894 esac
895
896 # Accept the important Cygnus configure options, so we can diagnose typos.
897
898 case $ac_dashdash$ac_option in
899 --)
900 ac_dashdash=yes ;;
901
902 -bindir | --bindir | --bindi | --bind | --bin | --bi)
903 ac_prev=bindir ;;
904 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
905 bindir=$ac_optarg ;;
906
907 -build | --build | --buil | --bui | --bu)
908 ac_prev=build_alias ;;
909 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
910 build_alias=$ac_optarg ;;
911
912 -cache-file | --cache-file | --cache-fil | --cache-fi \
913 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
914 ac_prev=cache_file ;;
915 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
916 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
917 cache_file=$ac_optarg ;;
918
919 --config-cache | -C)
920 cache_file=config.cache ;;
921
922 -datadir | --datadir | --datadi | --datad)
923 ac_prev=datadir ;;
924 -datadir=* | --datadir=* | --datadi=* | --datad=*)
925 datadir=$ac_optarg ;;
926
927 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
928 | --dataroo | --dataro | --datar)
929 ac_prev=datarootdir ;;
930 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
931 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
932 datarootdir=$ac_optarg ;;
933
934 -disable-* | --disable-*)
935 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
936 # Reject names that are not valid shell variable names.
937 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
938 as_fn_error $? "invalid feature name: $ac_useropt"
939 ac_useropt_orig=$ac_useropt
940 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
941 case $ac_user_opts in
942 *"
943 "enable_$ac_useropt"
944 "*) ;;
945 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
946 ac_unrecognized_sep=', ';;
947 esac
948 eval enable_$ac_useropt=no ;;
949
950 -docdir | --docdir | --docdi | --doc | --do)
951 ac_prev=docdir ;;
952 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
953 docdir=$ac_optarg ;;
954
955 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
956 ac_prev=dvidir ;;
957 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
958 dvidir=$ac_optarg ;;
959
960 -enable-* | --enable-*)
961 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
962 # Reject names that are not valid shell variable names.
963 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
964 as_fn_error $? "invalid feature name: $ac_useropt"
965 ac_useropt_orig=$ac_useropt
966 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
967 case $ac_user_opts in
968 *"
969 "enable_$ac_useropt"
970 "*) ;;
971 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
972 ac_unrecognized_sep=', ';;
973 esac
974 eval enable_$ac_useropt=\$ac_optarg ;;
975
976 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
977 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
978 | --exec | --exe | --ex)
979 ac_prev=exec_prefix ;;
980 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
981 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
982 | --exec=* | --exe=* | --ex=*)
983 exec_prefix=$ac_optarg ;;
984
985 -gas | --gas | --ga | --g)
986 # Obsolete; use --with-gas.
987 with_gas=yes ;;
988
989 -help | --help | --hel | --he | -h)
990 ac_init_help=long ;;
991 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
992 ac_init_help=recursive ;;
993 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
994 ac_init_help=short ;;
995
996 -host | --host | --hos | --ho)
997 ac_prev=host_alias ;;
998 -host=* | --host=* | --hos=* | --ho=*)
999 host_alias=$ac_optarg ;;
1000
1001 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1002 ac_prev=htmldir ;;
1003 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1004 | --ht=*)
1005 htmldir=$ac_optarg ;;
1006
1007 -includedir | --includedir | --includedi | --included | --include \
1008 | --includ | --inclu | --incl | --inc)
1009 ac_prev=includedir ;;
1010 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1011 | --includ=* | --inclu=* | --incl=* | --inc=*)
1012 includedir=$ac_optarg ;;
1013
1014 -infodir | --infodir | --infodi | --infod | --info | --inf)
1015 ac_prev=infodir ;;
1016 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1017 infodir=$ac_optarg ;;
1018
1019 -libdir | --libdir | --libdi | --libd)
1020 ac_prev=libdir ;;
1021 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1022 libdir=$ac_optarg ;;
1023
1024 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1025 | --libexe | --libex | --libe)
1026 ac_prev=libexecdir ;;
1027 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1028 | --libexe=* | --libex=* | --libe=*)
1029 libexecdir=$ac_optarg ;;
1030
1031 -localedir | --localedir | --localedi | --localed | --locale)
1032 ac_prev=localedir ;;
1033 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1034 localedir=$ac_optarg ;;
1035
1036 -localstatedir | --localstatedir | --localstatedi | --localstated \
1037 | --localstate | --localstat | --localsta | --localst | --locals)
1038 ac_prev=localstatedir ;;
1039 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1040 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1041 localstatedir=$ac_optarg ;;
1042
1043 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1044 ac_prev=mandir ;;
1045 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1046 mandir=$ac_optarg ;;
1047
1048 -nfp | --nfp | --nf)
1049 # Obsolete; use --without-fp.
1050 with_fp=no ;;
1051
1052 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1053 | --no-cr | --no-c | -n)
1054 no_create=yes ;;
1055
1056 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1057 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1058 no_recursion=yes ;;
1059
1060 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1061 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1062 | --oldin | --oldi | --old | --ol | --o)
1063 ac_prev=oldincludedir ;;
1064 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1065 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1066 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1067 oldincludedir=$ac_optarg ;;
1068
1069 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1070 ac_prev=prefix ;;
1071 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1072 prefix=$ac_optarg ;;
1073
1074 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1075 | --program-pre | --program-pr | --program-p)
1076 ac_prev=program_prefix ;;
1077 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1078 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1079 program_prefix=$ac_optarg ;;
1080
1081 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1082 | --program-suf | --program-su | --program-s)
1083 ac_prev=program_suffix ;;
1084 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1085 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1086 program_suffix=$ac_optarg ;;
1087
1088 -program-transform-name | --program-transform-name \
1089 | --program-transform-nam | --program-transform-na \
1090 | --program-transform-n | --program-transform- \
1091 | --program-transform | --program-transfor \
1092 | --program-transfo | --program-transf \
1093 | --program-trans | --program-tran \
1094 | --progr-tra | --program-tr | --program-t)
1095 ac_prev=program_transform_name ;;
1096 -program-transform-name=* | --program-transform-name=* \
1097 | --program-transform-nam=* | --program-transform-na=* \
1098 | --program-transform-n=* | --program-transform-=* \
1099 | --program-transform=* | --program-transfor=* \
1100 | --program-transfo=* | --program-transf=* \
1101 | --program-trans=* | --program-tran=* \
1102 | --progr-tra=* | --program-tr=* | --program-t=*)
1103 program_transform_name=$ac_optarg ;;
1104
1105 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1106 ac_prev=pdfdir ;;
1107 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1108 pdfdir=$ac_optarg ;;
1109
1110 -psdir | --psdir | --psdi | --psd | --ps)
1111 ac_prev=psdir ;;
1112 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1113 psdir=$ac_optarg ;;
1114
1115 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1116 | -silent | --silent | --silen | --sile | --sil)
1117 silent=yes ;;
1118
1119 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1120 ac_prev=sbindir ;;
1121 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1122 | --sbi=* | --sb=*)
1123 sbindir=$ac_optarg ;;
1124
1125 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1126 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1127 | --sharedst | --shareds | --shared | --share | --shar \
1128 | --sha | --sh)
1129 ac_prev=sharedstatedir ;;
1130 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1131 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1132 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1133 | --sha=* | --sh=*)
1134 sharedstatedir=$ac_optarg ;;
1135
1136 -site | --site | --sit)
1137 ac_prev=site ;;
1138 -site=* | --site=* | --sit=*)
1139 site=$ac_optarg ;;
1140
1141 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1142 ac_prev=srcdir ;;
1143 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1144 srcdir=$ac_optarg ;;
1145
1146 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1147 | --syscon | --sysco | --sysc | --sys | --sy)
1148 ac_prev=sysconfdir ;;
1149 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1150 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1151 sysconfdir=$ac_optarg ;;
1152
1153 -target | --target | --targe | --targ | --tar | --ta | --t)
1154 ac_prev=target_alias ;;
1155 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1156 target_alias=$ac_optarg ;;
1157
1158 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1159 verbose=yes ;;
1160
1161 -version | --version | --versio | --versi | --vers | -V)
1162 ac_init_version=: ;;
1163
1164 -with-* | --with-*)
1165 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1166 # Reject names that are not valid shell variable names.
1167 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1168 as_fn_error $? "invalid package name: $ac_useropt"
1169 ac_useropt_orig=$ac_useropt
1170 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1171 case $ac_user_opts in
1172 *"
1173 "with_$ac_useropt"
1174 "*) ;;
1175 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1176 ac_unrecognized_sep=', ';;
1177 esac
1178 eval with_$ac_useropt=\$ac_optarg ;;
1179
1180 -without-* | --without-*)
1181 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1182 # Reject names that are not valid shell variable names.
1183 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1184 as_fn_error $? "invalid package name: $ac_useropt"
1185 ac_useropt_orig=$ac_useropt
1186 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1187 case $ac_user_opts in
1188 *"
1189 "with_$ac_useropt"
1190 "*) ;;
1191 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1192 ac_unrecognized_sep=', ';;
1193 esac
1194 eval with_$ac_useropt=no ;;
1195
1196 --x)
1197 # Obsolete; use --with-x.
1198 with_x=yes ;;
1199
1200 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1201 | --x-incl | --x-inc | --x-in | --x-i)
1202 ac_prev=x_includes ;;
1203 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1204 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1205 x_includes=$ac_optarg ;;
1206
1207 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1208 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1209 ac_prev=x_libraries ;;
1210 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1211 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1212 x_libraries=$ac_optarg ;;
1213
1214 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1215 Try \`$0 --help' for more information"
1216 ;;
1217
1218 *=*)
1219 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1220 # Reject names that are not valid shell variable names.
1221 case $ac_envvar in #(
1222 '' | [0-9]* | *[!_$as_cr_alnum]* )
1223 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1224 esac
1225 eval $ac_envvar=\$ac_optarg
1226 export $ac_envvar ;;
1227
1228 *)
1229 # FIXME: should be removed in autoconf 3.0.
1230 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1231 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1232 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1233 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1234 ;;
1235
1236 esac
1237 done
1238
1239 if test -n "$ac_prev"; then
1240 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1241 as_fn_error $? "missing argument to $ac_option"
1242 fi
1243
1244 if test -n "$ac_unrecognized_opts"; then
1245 case $enable_option_checking in
1246 no) ;;
1247 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1248 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1249 esac
1250 fi
1251
1252 # Check all directory arguments for consistency.
1253 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1254 datadir sysconfdir sharedstatedir localstatedir includedir \
1255 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1256 libdir localedir mandir
1257 do
1258 eval ac_val=\$$ac_var
1259 # Remove trailing slashes.
1260 case $ac_val in
1261 */ )
1262 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1263 eval $ac_var=\$ac_val;;
1264 esac
1265 # Be sure to have absolute directory names.
1266 case $ac_val in
1267 [\\/$]* | ?:[\\/]* ) continue;;
1268 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1269 esac
1270 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1271 done
1272
1273 # There might be people who depend on the old broken behavior: `$host'
1274 # used to hold the argument of --host etc.
1275 # FIXME: To remove some day.
1276 build=$build_alias
1277 host=$host_alias
1278 target=$target_alias
1279
1280 # FIXME: To remove some day.
1281 if test "x$host_alias" != x; then
1282 if test "x$build_alias" = x; then
1283 cross_compiling=maybe
1284 elif test "x$build_alias" != "x$host_alias"; then
1285 cross_compiling=yes
1286 fi
1287 fi
1288
1289 ac_tool_prefix=
1290 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1291
1292 test "$silent" = yes && exec 6>/dev/null
1293
1294
1295 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1296 ac_ls_di=`ls -di .` &&
1297 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1298 as_fn_error $? "working directory cannot be determined"
1299 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1300 as_fn_error $? "pwd does not report name of working directory"
1301
1302
1303 # Find the source files, if location was not specified.
1304 if test -z "$srcdir"; then
1305 ac_srcdir_defaulted=yes
1306 # Try the directory containing this script, then the parent directory.
1307 ac_confdir=`$as_dirname -- "$as_myself" ||
1308 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1309 X"$as_myself" : 'X\(//\)[^/]' \| \
1310 X"$as_myself" : 'X\(//\)$' \| \
1311 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1312 $as_echo X"$as_myself" |
1313 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1314 s//\1/
1315 q
1316 }
1317 /^X\(\/\/\)[^/].*/{
1318 s//\1/
1319 q
1320 }
1321 /^X\(\/\/\)$/{
1322 s//\1/
1323 q
1324 }
1325 /^X\(\/\).*/{
1326 s//\1/
1327 q
1328 }
1329 s/.*/./; q'`
1330 srcdir=$ac_confdir
1331 if test ! -r "$srcdir/$ac_unique_file"; then
1332 srcdir=..
1333 fi
1334 else
1335 ac_srcdir_defaulted=no
1336 fi
1337 if test ! -r "$srcdir/$ac_unique_file"; then
1338 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1339 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1340 fi
1341 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1342 ac_abs_confdir=`(
1343 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1344 pwd)`
1345 # When building in place, set srcdir=.
1346 if test "$ac_abs_confdir" = "$ac_pwd"; then
1347 srcdir=.
1348 fi
1349 # Remove unnecessary trailing slashes from srcdir.
1350 # Double slashes in file names in object file debugging info
1351 # mess up M-x gdb in Emacs.
1352 case $srcdir in
1353 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1354 esac
1355 for ac_var in $ac_precious_vars; do
1356 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1357 eval ac_env_${ac_var}_value=\$${ac_var}
1358 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1359 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1360 done
1361
1362 #
1363 # Report the --help message.
1364 #
1365 if test "$ac_init_help" = "long"; then
1366 # Omit some internal or obsolete options to make the list less imposing.
1367 # This message is too long to be a string in the A/UX 3.1 sh.
1368 cat <<_ACEOF
1369 \`configure' configures ircd-hybrid 8.2.0rc2 to adapt to many kinds of systems.
1370
1371 Usage: $0 [OPTION]... [VAR=VALUE]...
1372
1373 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1374 VAR=VALUE. See below for descriptions of some of the useful variables.
1375
1376 Defaults for the options are specified in brackets.
1377
1378 Configuration:
1379 -h, --help display this help and exit
1380 --help=short display options specific to this package
1381 --help=recursive display the short help of all the included packages
1382 -V, --version display version information and exit
1383 -q, --quiet, --silent do not print \`checking ...' messages
1384 --cache-file=FILE cache test results in FILE [disabled]
1385 -C, --config-cache alias for \`--cache-file=config.cache'
1386 -n, --no-create do not create output files
1387 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1388
1389 Installation directories:
1390 --prefix=PREFIX install architecture-independent files in PREFIX
1391 [$ac_default_prefix]
1392 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1393 [PREFIX]
1394
1395 By default, \`make install' will install all the files in
1396 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1397 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1398 for instance \`--prefix=\$HOME'.
1399
1400 For better control, use the options below.
1401
1402 Fine tuning of the installation directories:
1403 --bindir=DIR user executables [EPREFIX/bin]
1404 --sbindir=DIR system admin executables [EPREFIX/sbin]
1405 --libexecdir=DIR program executables [EPREFIX/libexec]
1406 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1407 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1408 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1409 --libdir=DIR object code libraries [EPREFIX/lib]
1410 --includedir=DIR C header files [PREFIX/include]
1411 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1412 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1413 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1414 --infodir=DIR info documentation [DATAROOTDIR/info]
1415 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1416 --mandir=DIR man documentation [DATAROOTDIR/man]
1417 --docdir=DIR documentation root [DATAROOTDIR/doc/ircd-hybrid]
1418 --htmldir=DIR html documentation [DOCDIR]
1419 --dvidir=DIR dvi documentation [DOCDIR]
1420 --pdfdir=DIR pdf documentation [DOCDIR]
1421 --psdir=DIR ps documentation [DOCDIR]
1422 _ACEOF
1423
1424 cat <<\_ACEOF
1425
1426 Program names:
1427 --program-prefix=PREFIX prepend PREFIX to installed program names
1428 --program-suffix=SUFFIX append SUFFIX to installed program names
1429 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1430
1431 System types:
1432 --build=BUILD configure for building on BUILD [guessed]
1433 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1434 _ACEOF
1435 fi
1436
1437 if test -n "$ac_init_help"; then
1438 case $ac_init_help in
1439 short | recursive ) echo "Configuration of ircd-hybrid 8.2.0rc2:";;
1440 esac
1441 cat <<\_ACEOF
1442
1443 Optional Features:
1444 --disable-option-checking ignore unrecognized --enable/--with options
1445 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1446 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1447 --enable-silent-rules less verbose build output (undo: "make V=1")
1448 --disable-silent-rules verbose build output (undo: "make V=0")
1449 --enable-maintainer-mode
1450 enable make rules and dependencies not useful (and
1451 sometimes confusing) to the casual installer
1452 --enable-dependency-tracking
1453 do not reject slow dependency extractors
1454 --disable-dependency-tracking
1455 speeds up one-time build
1456 --enable-static[=PKGS] build static libraries [default=no]
1457 --enable-shared[=PKGS] build shared libraries [default=yes]
1458 --enable-fast-install[=PKGS]
1459 optimize for fast installation [default=yes]
1460 --disable-libtool-lock avoid locking (might break parallel builds)
1461 --enable-ltdl-install install libltdl
1462 --disable-libgeoip Disable GeoIP support
1463 --enable-assert Enable assert() statements
1464 --enable-kqueue Force kqueue usage.
1465 --enable-epoll Force epoll usage.
1466 --enable-devpoll Force devpoll usage.
1467 --enable-poll Force poll usage.
1468 --enable-debugging Enable debugging.
1469 --enable-warnings Enable compiler warnings.
1470 --enable-openssl=DIR Enable LibreSSL/OpenSSL support (DIR optional).
1471 --disable-openssl Disable LibreSSL/OpenSSL support.
1472
1473 Optional Packages:
1474 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1475 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1476 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1477 both]
1478 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1479 --with-sysroot=DIR Search for dependent libraries within DIR
1480 (or the compiler's sysroot if not specified).
1481 --with-included-ltdl use the GNU ltdl sources included here
1482 --with-ltdl-include=DIR use the ltdl headers installed in DIR
1483 --with-ltdl-lib=DIR use the libltdl.la installed in DIR
1484
1485 Some influential environment variables:
1486 CC C compiler command
1487 CFLAGS C compiler flags
1488 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1489 nonstandard directory <lib dir>
1490 LIBS libraries to pass to the linker, e.g. -l<library>
1491 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1492 you have headers in a nonstandard directory <include dir>
1493 YACC The `Yet Another Compiler Compiler' implementation to use.
1494 Defaults to the first program found out of: `bison -y', `byacc',
1495 `yacc'.
1496 YFLAGS The list of arguments that will be passed by default to $YACC.
1497 This script will default YFLAGS to the empty string to avoid a
1498 default value of `-d' given by some make applications.
1499 CPP C preprocessor
1500
1501 Use these variables to override the choices made by `configure' or to help
1502 it to find libraries and programs with nonstandard names/locations.
1503
1504 Report bugs to <bugs@ircd-hybrid.org>.
1505 _ACEOF
1506 ac_status=$?
1507 fi
1508
1509 if test "$ac_init_help" = "recursive"; then
1510 # If there are subdirs, report their specific --help.
1511 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1512 test -d "$ac_dir" ||
1513 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1514 continue
1515 ac_builddir=.
1516
1517 case "$ac_dir" in
1518 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1519 *)
1520 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1521 # A ".." for each directory in $ac_dir_suffix.
1522 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1523 case $ac_top_builddir_sub in
1524 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1525 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1526 esac ;;
1527 esac
1528 ac_abs_top_builddir=$ac_pwd
1529 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1530 # for backward compatibility:
1531 ac_top_builddir=$ac_top_build_prefix
1532
1533 case $srcdir in
1534 .) # We are building in place.
1535 ac_srcdir=.
1536 ac_top_srcdir=$ac_top_builddir_sub
1537 ac_abs_top_srcdir=$ac_pwd ;;
1538 [\\/]* | ?:[\\/]* ) # Absolute name.
1539 ac_srcdir=$srcdir$ac_dir_suffix;
1540 ac_top_srcdir=$srcdir
1541 ac_abs_top_srcdir=$srcdir ;;
1542 *) # Relative name.
1543 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1544 ac_top_srcdir=$ac_top_build_prefix$srcdir
1545 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1546 esac
1547 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1548
1549 cd "$ac_dir" || { ac_status=$?; continue; }
1550 # Check for guested configure.
1551 if test -f "$ac_srcdir/configure.gnu"; then
1552 echo &&
1553 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1554 elif test -f "$ac_srcdir/configure"; then
1555 echo &&
1556 $SHELL "$ac_srcdir/configure" --help=recursive
1557 else
1558 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1559 fi || ac_status=$?
1560 cd "$ac_pwd" || { ac_status=$?; break; }
1561 done
1562 fi
1563
1564 test -n "$ac_init_help" && exit $ac_status
1565 if $ac_init_version; then
1566 cat <<\_ACEOF
1567 ircd-hybrid configure 8.2.0rc2
1568 generated by GNU Autoconf 2.69
1569
1570 Copyright (C) 2012 Free Software Foundation, Inc.
1571 This configure script is free software; the Free Software Foundation
1572 gives unlimited permission to copy, distribute and modify it.
1573 _ACEOF
1574 exit
1575 fi
1576
1577 ## ------------------------ ##
1578 ## Autoconf initialization. ##
1579 ## ------------------------ ##
1580
1581 # ac_fn_c_try_compile LINENO
1582 # --------------------------
1583 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1584 ac_fn_c_try_compile ()
1585 {
1586 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1587 rm -f conftest.$ac_objext
1588 if { { ac_try="$ac_compile"
1589 case "(($ac_try" in
1590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1591 *) ac_try_echo=$ac_try;;
1592 esac
1593 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1594 $as_echo "$ac_try_echo"; } >&5
1595 (eval "$ac_compile") 2>conftest.err
1596 ac_status=$?
1597 if test -s conftest.err; then
1598 grep -v '^ *+' conftest.err >conftest.er1
1599 cat conftest.er1 >&5
1600 mv -f conftest.er1 conftest.err
1601 fi
1602 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1603 test $ac_status = 0; } && {
1604 test -z "$ac_c_werror_flag" ||
1605 test ! -s conftest.err
1606 } && test -s conftest.$ac_objext; then :
1607 ac_retval=0
1608 else
1609 $as_echo "$as_me: failed program was:" >&5
1610 sed 's/^/| /' conftest.$ac_ext >&5
1611
1612 ac_retval=1
1613 fi
1614 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1615 as_fn_set_status $ac_retval
1616
1617 } # ac_fn_c_try_compile
1618
1619 # ac_fn_c_try_link LINENO
1620 # -----------------------
1621 # Try to link conftest.$ac_ext, and return whether this succeeded.
1622 ac_fn_c_try_link ()
1623 {
1624 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1625 rm -f conftest.$ac_objext conftest$ac_exeext
1626 if { { ac_try="$ac_link"
1627 case "(($ac_try" in
1628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1629 *) ac_try_echo=$ac_try;;
1630 esac
1631 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1632 $as_echo "$ac_try_echo"; } >&5
1633 (eval "$ac_link") 2>conftest.err
1634 ac_status=$?
1635 if test -s conftest.err; then
1636 grep -v '^ *+' conftest.err >conftest.er1
1637 cat conftest.er1 >&5
1638 mv -f conftest.er1 conftest.err
1639 fi
1640 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1641 test $ac_status = 0; } && {
1642 test -z "$ac_c_werror_flag" ||
1643 test ! -s conftest.err
1644 } && test -s conftest$ac_exeext && {
1645 test "$cross_compiling" = yes ||
1646 test -x conftest$ac_exeext
1647 }; then :
1648 ac_retval=0
1649 else
1650 $as_echo "$as_me: failed program was:" >&5
1651 sed 's/^/| /' conftest.$ac_ext >&5
1652
1653 ac_retval=1
1654 fi
1655 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1656 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1657 # interfere with the next link command; also delete a directory that is
1658 # left behind by Apple's compiler. We do this before executing the actions.
1659 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1660 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1661 as_fn_set_status $ac_retval
1662
1663 } # ac_fn_c_try_link
1664
1665 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1666 # -------------------------------------------------------
1667 # Tests whether HEADER exists and can be compiled using the include files in
1668 # INCLUDES, setting the cache variable VAR accordingly.
1669 ac_fn_c_check_header_compile ()
1670 {
1671 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1673 $as_echo_n "checking for $2... " >&6; }
1674 if eval \${$3+:} false; then :
1675 $as_echo_n "(cached) " >&6
1676 else
1677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1678 /* end confdefs.h. */
1679 $4
1680 #include <$2>
1681 _ACEOF
1682 if ac_fn_c_try_compile "$LINENO"; then :
1683 eval "$3=yes"
1684 else
1685 eval "$3=no"
1686 fi
1687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1688 fi
1689 eval ac_res=\$$3
1690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1691 $as_echo "$ac_res" >&6; }
1692 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1693
1694 } # ac_fn_c_check_header_compile
1695
1696 # ac_fn_c_try_cpp LINENO
1697 # ----------------------
1698 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1699 ac_fn_c_try_cpp ()
1700 {
1701 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1702 if { { ac_try="$ac_cpp conftest.$ac_ext"
1703 case "(($ac_try" in
1704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1705 *) ac_try_echo=$ac_try;;
1706 esac
1707 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1708 $as_echo "$ac_try_echo"; } >&5
1709 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1710 ac_status=$?
1711 if test -s conftest.err; then
1712 grep -v '^ *+' conftest.err >conftest.er1
1713 cat conftest.er1 >&5
1714 mv -f conftest.er1 conftest.err
1715 fi
1716 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1717 test $ac_status = 0; } > conftest.i && {
1718 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1719 test ! -s conftest.err
1720 }; then :
1721 ac_retval=0
1722 else
1723 $as_echo "$as_me: failed program was:" >&5
1724 sed 's/^/| /' conftest.$ac_ext >&5
1725
1726 ac_retval=1
1727 fi
1728 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1729 as_fn_set_status $ac_retval
1730
1731 } # ac_fn_c_try_cpp
1732
1733 # ac_fn_c_try_run LINENO
1734 # ----------------------
1735 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1736 # that executables *can* be run.
1737 ac_fn_c_try_run ()
1738 {
1739 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1740 if { { ac_try="$ac_link"
1741 case "(($ac_try" in
1742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1743 *) ac_try_echo=$ac_try;;
1744 esac
1745 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1746 $as_echo "$ac_try_echo"; } >&5
1747 (eval "$ac_link") 2>&5
1748 ac_status=$?
1749 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1750 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1751 { { case "(($ac_try" in
1752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1753 *) ac_try_echo=$ac_try;;
1754 esac
1755 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1756 $as_echo "$ac_try_echo"; } >&5
1757 (eval "$ac_try") 2>&5
1758 ac_status=$?
1759 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1760 test $ac_status = 0; }; }; then :
1761 ac_retval=0
1762 else
1763 $as_echo "$as_me: program exited with status $ac_status" >&5
1764 $as_echo "$as_me: failed program was:" >&5
1765 sed 's/^/| /' conftest.$ac_ext >&5
1766
1767 ac_retval=$ac_status
1768 fi
1769 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1770 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1771 as_fn_set_status $ac_retval
1772
1773 } # ac_fn_c_try_run
1774
1775 # ac_fn_c_check_func LINENO FUNC VAR
1776 # ----------------------------------
1777 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1778 ac_fn_c_check_func ()
1779 {
1780 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1782 $as_echo_n "checking for $2... " >&6; }
1783 if eval \${$3+:} false; then :
1784 $as_echo_n "(cached) " >&6
1785 else
1786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1787 /* end confdefs.h. */
1788 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1789 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1790 #define $2 innocuous_$2
1791
1792 /* System header to define __stub macros and hopefully few prototypes,
1793 which can conflict with char $2 (); below.
1794 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1795 <limits.h> exists even on freestanding compilers. */
1796
1797 #ifdef __STDC__
1798 # include <limits.h>
1799 #else
1800 # include <assert.h>
1801 #endif
1802
1803 #undef $2
1804
1805 /* Override any GCC internal prototype to avoid an error.
1806 Use char because int might match the return type of a GCC
1807 builtin and then its argument prototype would still apply. */
1808 #ifdef __cplusplus
1809 extern "C"
1810 #endif
1811 char $2 ();
1812 /* The GNU C library defines this for functions which it implements
1813 to always fail with ENOSYS. Some functions are actually named
1814 something starting with __ and the normal name is an alias. */
1815 #if defined __stub_$2 || defined __stub___$2
1816 choke me
1817 #endif
1818
1819 int
1820 main ()
1821 {
1822 return $2 ();
1823 ;
1824 return 0;
1825 }
1826 _ACEOF
1827 if ac_fn_c_try_link "$LINENO"; then :
1828 eval "$3=yes"
1829 else
1830 eval "$3=no"
1831 fi
1832 rm -f core conftest.err conftest.$ac_objext \
1833 conftest$ac_exeext conftest.$ac_ext
1834 fi
1835 eval ac_res=\$$3
1836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1837 $as_echo "$ac_res" >&6; }
1838 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1839
1840 } # ac_fn_c_check_func
1841
1842 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1843 # ---------------------------------------------
1844 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1845 # accordingly.
1846 ac_fn_c_check_decl ()
1847 {
1848 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1849 as_decl_name=`echo $2|sed 's/ *(.*//'`
1850 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1852 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1853 if eval \${$3+:} false; then :
1854 $as_echo_n "(cached) " >&6
1855 else
1856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1857 /* end confdefs.h. */
1858 $4
1859 int
1860 main ()
1861 {
1862 #ifndef $as_decl_name
1863 #ifdef __cplusplus
1864 (void) $as_decl_use;
1865 #else
1866 (void) $as_decl_name;
1867 #endif
1868 #endif
1869
1870 ;
1871 return 0;
1872 }
1873 _ACEOF
1874 if ac_fn_c_try_compile "$LINENO"; then :
1875 eval "$3=yes"
1876 else
1877 eval "$3=no"
1878 fi
1879 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1880 fi
1881 eval ac_res=\$$3
1882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1883 $as_echo "$ac_res" >&6; }
1884 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1885
1886 } # ac_fn_c_check_decl
1887
1888 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1889 # -------------------------------------------
1890 # Tests whether TYPE exists after having included INCLUDES, setting cache
1891 # variable VAR accordingly.
1892 ac_fn_c_check_type ()
1893 {
1894 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1896 $as_echo_n "checking for $2... " >&6; }
1897 if eval \${$3+:} false; then :
1898 $as_echo_n "(cached) " >&6
1899 else
1900 eval "$3=no"
1901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1902 /* end confdefs.h. */
1903 $4
1904 int
1905 main ()
1906 {
1907 if (sizeof ($2))
1908 return 0;
1909 ;
1910 return 0;
1911 }
1912 _ACEOF
1913 if ac_fn_c_try_compile "$LINENO"; then :
1914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1915 /* end confdefs.h. */
1916 $4
1917 int
1918 main ()
1919 {
1920 if (sizeof (($2)))
1921 return 0;
1922 ;
1923 return 0;
1924 }
1925 _ACEOF
1926 if ac_fn_c_try_compile "$LINENO"; then :
1927
1928 else
1929 eval "$3=yes"
1930 fi
1931 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1932 fi
1933 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1934 fi
1935 eval ac_res=\$$3
1936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1937 $as_echo "$ac_res" >&6; }
1938 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1939
1940 } # ac_fn_c_check_type
1941
1942 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1943 # -------------------------------------------------------
1944 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1945 # the include files in INCLUDES and setting the cache variable VAR
1946 # accordingly.
1947 ac_fn_c_check_header_mongrel ()
1948 {
1949 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1950 if eval \${$3+:} false; then :
1951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1952 $as_echo_n "checking for $2... " >&6; }
1953 if eval \${$3+:} false; then :
1954 $as_echo_n "(cached) " >&6
1955 fi
1956 eval ac_res=\$$3
1957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1958 $as_echo "$ac_res" >&6; }
1959 else
1960 # Is the header compilable?
1961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1962 $as_echo_n "checking $2 usability... " >&6; }
1963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1964 /* end confdefs.h. */
1965 $4
1966 #include <$2>
1967 _ACEOF
1968 if ac_fn_c_try_compile "$LINENO"; then :
1969 ac_header_compiler=yes
1970 else
1971 ac_header_compiler=no
1972 fi
1973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1975 $as_echo "$ac_header_compiler" >&6; }
1976
1977 # Is the header present?
1978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1979 $as_echo_n "checking $2 presence... " >&6; }
1980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1981 /* end confdefs.h. */
1982 #include <$2>
1983 _ACEOF
1984 if ac_fn_c_try_cpp "$LINENO"; then :
1985 ac_header_preproc=yes
1986 else
1987 ac_header_preproc=no
1988 fi
1989 rm -f conftest.err conftest.i conftest.$ac_ext
1990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1991 $as_echo "$ac_header_preproc" >&6; }
1992
1993 # So? What about this header?
1994 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1995 yes:no: )
1996 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1997 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1998 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1999 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2000 ;;
2001 no:yes:* )
2002 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2003 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2004 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2005 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2006 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2007 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2008 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2009 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2010 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2011 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2012 ( $as_echo "## ----------------------------------- ##
2013 ## Report this to bugs@ircd-hybrid.org ##
2014 ## ----------------------------------- ##"
2015 ) | sed "s/^/$as_me: WARNING: /" >&2
2016 ;;
2017 esac
2018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2019 $as_echo_n "checking for $2... " >&6; }
2020 if eval \${$3+:} false; then :
2021 $as_echo_n "(cached) " >&6
2022 else
2023 eval "$3=\$ac_header_compiler"
2024 fi
2025 eval ac_res=\$$3
2026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2027 $as_echo "$ac_res" >&6; }
2028 fi
2029 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2030
2031 } # ac_fn_c_check_header_mongrel
2032 cat >config.log <<_ACEOF
2033 This file contains any messages produced by compilers while
2034 running configure, to aid debugging if configure makes a mistake.
2035
2036 It was created by ircd-hybrid $as_me 8.2.0rc2, which was
2037 generated by GNU Autoconf 2.69. Invocation command line was
2038
2039 $ $0 $@
2040
2041 _ACEOF
2042 exec 5>>config.log
2043 {
2044 cat <<_ASUNAME
2045 ## --------- ##
2046 ## Platform. ##
2047 ## --------- ##
2048
2049 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2050 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2051 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2052 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2053 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2054
2055 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2056 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2057
2058 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2059 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2060 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2061 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2062 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2063 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2064 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2065
2066 _ASUNAME
2067
2068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2069 for as_dir in $PATH
2070 do
2071 IFS=$as_save_IFS
2072 test -z "$as_dir" && as_dir=.
2073 $as_echo "PATH: $as_dir"
2074 done
2075 IFS=$as_save_IFS
2076
2077 } >&5
2078
2079 cat >&5 <<_ACEOF
2080
2081
2082 ## ----------- ##
2083 ## Core tests. ##
2084 ## ----------- ##
2085
2086 _ACEOF
2087
2088
2089 # Keep a trace of the command line.
2090 # Strip out --no-create and --no-recursion so they do not pile up.
2091 # Strip out --silent because we don't want to record it for future runs.
2092 # Also quote any args containing shell meta-characters.
2093 # Make two passes to allow for proper duplicate-argument suppression.
2094 ac_configure_args=
2095 ac_configure_args0=
2096 ac_configure_args1=
2097 ac_must_keep_next=false
2098 for ac_pass in 1 2
2099 do
2100 for ac_arg
2101 do
2102 case $ac_arg in
2103 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2104 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2105 | -silent | --silent | --silen | --sile | --sil)
2106 continue ;;
2107 *\'*)
2108 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2109 esac
2110 case $ac_pass in
2111 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2112 2)
2113 as_fn_append ac_configure_args1 " '$ac_arg'"
2114 if test $ac_must_keep_next = true; then
2115 ac_must_keep_next=false # Got value, back to normal.
2116 else
2117 case $ac_arg in
2118 *=* | --config-cache | -C | -disable-* | --disable-* \
2119 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2120 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2121 | -with-* | --with-* | -without-* | --without-* | --x)
2122 case "$ac_configure_args0 " in
2123 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2124 esac
2125 ;;
2126 -* ) ac_must_keep_next=true ;;
2127 esac
2128 fi
2129 as_fn_append ac_configure_args " '$ac_arg'"
2130 ;;
2131 esac
2132 done
2133 done
2134 { ac_configure_args0=; unset ac_configure_args0;}
2135 { ac_configure_args1=; unset ac_configure_args1;}
2136
2137 # When interrupted or exit'd, cleanup temporary files, and complete
2138 # config.log. We remove comments because anyway the quotes in there
2139 # would cause problems or look ugly.
2140 # WARNING: Use '\'' to represent an apostrophe within the trap.
2141 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2142 trap 'exit_status=$?
2143 # Save into config.log some information that might help in debugging.
2144 {
2145 echo
2146
2147 $as_echo "## ---------------- ##
2148 ## Cache variables. ##
2149 ## ---------------- ##"
2150 echo
2151 # The following way of writing the cache mishandles newlines in values,
2152 (
2153 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2154 eval ac_val=\$$ac_var
2155 case $ac_val in #(
2156 *${as_nl}*)
2157 case $ac_var in #(
2158 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2159 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2160 esac
2161 case $ac_var in #(
2162 _ | IFS | as_nl) ;; #(
2163 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2164 *) { eval $ac_var=; unset $ac_var;} ;;
2165 esac ;;
2166 esac
2167 done
2168 (set) 2>&1 |
2169 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2170 *${as_nl}ac_space=\ *)
2171 sed -n \
2172 "s/'\''/'\''\\\\'\'''\''/g;
2173 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2174 ;; #(
2175 *)
2176 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2177 ;;
2178 esac |
2179 sort
2180 )
2181 echo
2182
2183 $as_echo "## ----------------- ##
2184 ## Output variables. ##
2185 ## ----------------- ##"
2186 echo
2187 for ac_var in $ac_subst_vars
2188 do
2189 eval ac_val=\$$ac_var
2190 case $ac_val in
2191 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2192 esac
2193 $as_echo "$ac_var='\''$ac_val'\''"
2194 done | sort
2195 echo
2196
2197 if test -n "$ac_subst_files"; then
2198 $as_echo "## ------------------- ##
2199 ## File substitutions. ##
2200 ## ------------------- ##"
2201 echo
2202 for ac_var in $ac_subst_files
2203 do
2204 eval ac_val=\$$ac_var
2205 case $ac_val in
2206 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2207 esac
2208 $as_echo "$ac_var='\''$ac_val'\''"
2209 done | sort
2210 echo
2211 fi
2212
2213 if test -s confdefs.h; then
2214 $as_echo "## ----------- ##
2215 ## confdefs.h. ##
2216 ## ----------- ##"
2217 echo
2218 cat confdefs.h
2219 echo
2220 fi
2221 test "$ac_signal" != 0 &&
2222 $as_echo "$as_me: caught signal $ac_signal"
2223 $as_echo "$as_me: exit $exit_status"
2224 } >&5
2225 rm -f core *.core core.conftest.* &&
2226 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2227 exit $exit_status
2228 ' 0
2229 for ac_signal in 1 2 13 15; do
2230 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2231 done
2232 ac_signal=0
2233
2234 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2235 rm -f -r conftest* confdefs.h
2236
2237 $as_echo "/* confdefs.h */" > confdefs.h
2238
2239 # Predefined preprocessor variables.
2240
2241 cat >>confdefs.h <<_ACEOF
2242 #define PACKAGE_NAME "$PACKAGE_NAME"
2243 _ACEOF
2244
2245 cat >>confdefs.h <<_ACEOF
2246 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2247 _ACEOF
2248
2249 cat >>confdefs.h <<_ACEOF
2250 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2251 _ACEOF
2252
2253 cat >>confdefs.h <<_ACEOF
2254 #define PACKAGE_STRING "$PACKAGE_STRING"
2255 _ACEOF
2256
2257 cat >>confdefs.h <<_ACEOF
2258 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2259 _ACEOF
2260
2261 cat >>confdefs.h <<_ACEOF
2262 #define PACKAGE_URL "$PACKAGE_URL"
2263 _ACEOF
2264
2265
2266 # Let the site file select an alternate cache file if it wants to.
2267 # Prefer an explicitly selected file to automatically selected ones.
2268 ac_site_file1=NONE
2269 ac_site_file2=NONE
2270 if test -n "$CONFIG_SITE"; then
2271 # We do not want a PATH search for config.site.
2272 case $CONFIG_SITE in #((
2273 -*) ac_site_file1=./$CONFIG_SITE;;
2274 */*) ac_site_file1=$CONFIG_SITE;;
2275 *) ac_site_file1=./$CONFIG_SITE;;
2276 esac
2277 elif test "x$prefix" != xNONE; then
2278 ac_site_file1=$prefix/share/config.site
2279 ac_site_file2=$prefix/etc/config.site
2280 else
2281 ac_site_file1=$ac_default_prefix/share/config.site
2282 ac_site_file2=$ac_default_prefix/etc/config.site
2283 fi
2284 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2285 do
2286 test "x$ac_site_file" = xNONE && continue
2287 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2288 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2289 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2290 sed 's/^/| /' "$ac_site_file" >&5
2291 . "$ac_site_file" \
2292 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2293 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2294 as_fn_error $? "failed to load site script $ac_site_file
2295 See \`config.log' for more details" "$LINENO" 5; }
2296 fi
2297 done
2298
2299 if test -r "$cache_file"; then
2300 # Some versions of bash will fail to source /dev/null (special files
2301 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2302 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2303 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2304 $as_echo "$as_me: loading cache $cache_file" >&6;}
2305 case $cache_file in
2306 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2307 *) . "./$cache_file";;
2308 esac
2309 fi
2310 else
2311 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2312 $as_echo "$as_me: creating cache $cache_file" >&6;}
2313 >$cache_file
2314 fi
2315
2316 as_fn_append ac_func_list " strtok_r"
2317 as_fn_append ac_func_list " usleep"
2318 as_fn_append ac_func_list " strlcat"
2319 as_fn_append ac_func_list " strlcpy"
2320 as_fn_append ac_header_list " crypt.h"
2321 as_fn_append ac_header_list " sys/resource.h"
2322 as_fn_append ac_header_list " sys/param.h"
2323 as_fn_append ac_header_list " types.h"
2324 as_fn_append ac_header_list " socket.h"
2325 as_fn_append ac_header_list " sys/wait.h"
2326 as_fn_append ac_header_list " wait.h"
2327 # Check that the precious variables saved in the cache have kept the same
2328 # value.
2329 ac_cache_corrupted=false
2330 for ac_var in $ac_precious_vars; do
2331 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2332 eval ac_new_set=\$ac_env_${ac_var}_set
2333 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2334 eval ac_new_val=\$ac_env_${ac_var}_value
2335 case $ac_old_set,$ac_new_set in
2336 set,)
2337 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2338 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2339 ac_cache_corrupted=: ;;
2340 ,set)
2341 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2342 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2343 ac_cache_corrupted=: ;;
2344 ,);;
2345 *)
2346 if test "x$ac_old_val" != "x$ac_new_val"; then
2347 # differences in whitespace do not lead to failure.
2348 ac_old_val_w=`echo x $ac_old_val`
2349 ac_new_val_w=`echo x $ac_new_val`
2350 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2351 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2352 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2353 ac_cache_corrupted=:
2354 else
2355 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2356 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2357 eval $ac_var=\$ac_old_val
2358 fi
2359 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2360 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2361 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2362 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2363 fi;;
2364 esac
2365 # Pass precious variables to config.status.
2366 if test "$ac_new_set" = set; then
2367 case $ac_new_val in
2368 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2369 *) ac_arg=$ac_var=$ac_new_val ;;
2370 esac
2371 case " $ac_configure_args " in
2372 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2373 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2374 esac
2375 fi
2376 done
2377 if $ac_cache_corrupted; then
2378 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2379 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2380 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2381 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2382 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2383 fi
2384 ## -------------------- ##
2385 ## Main body of script. ##
2386 ## -------------------- ##
2387
2388 ac_ext=c
2389 ac_cpp='$CPP $CPPFLAGS'
2390 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2391 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2392 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2393
2394
2395 am__api_version='1.14'
2396
2397 ac_aux_dir=
2398 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2399 if test -f "$ac_dir/install-sh"; then
2400 ac_aux_dir=$ac_dir
2401 ac_install_sh="$ac_aux_dir/install-sh -c"
2402 break
2403 elif test -f "$ac_dir/install.sh"; then
2404 ac_aux_dir=$ac_dir
2405 ac_install_sh="$ac_aux_dir/install.sh -c"
2406 break
2407 elif test -f "$ac_dir/shtool"; then
2408 ac_aux_dir=$ac_dir
2409 ac_install_sh="$ac_aux_dir/shtool install -c"
2410 break
2411 fi
2412 done
2413 if test -z "$ac_aux_dir"; then
2414 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2415 fi
2416
2417 # These three variables are undocumented and unsupported,
2418 # and are intended to be withdrawn in a future Autoconf release.
2419 # They can cause serious problems if a builder's source tree is in a directory
2420 # whose full name contains unusual characters.
2421 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2422 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2423 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2424
2425
2426 # Find a good install program. We prefer a C program (faster),
2427 # so one script is as good as another. But avoid the broken or
2428 # incompatible versions:
2429 # SysV /etc/install, /usr/sbin/install
2430 # SunOS /usr/etc/install
2431 # IRIX /sbin/install
2432 # AIX /bin/install
2433 # AmigaOS /C/install, which installs bootblocks on floppy discs
2434 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2435 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2436 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2437 # OS/2's system install, which has a completely different semantic
2438 # ./install, which can be erroneously created by make from ./install.sh.
2439 # Reject install programs that cannot install multiple files.
2440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2441 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2442 if test -z "$INSTALL"; then
2443 if ${ac_cv_path_install+:} false; then :
2444 $as_echo_n "(cached) " >&6
2445 else
2446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2447 for as_dir in $PATH
2448 do
2449 IFS=$as_save_IFS
2450 test -z "$as_dir" && as_dir=.
2451 # Account for people who put trailing slashes in PATH elements.
2452 case $as_dir/ in #((
2453 ./ | .// | /[cC]/* | \
2454 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2455 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2456 /usr/ucb/* ) ;;
2457 *)
2458 # OSF1 and SCO ODT 3.0 have their own names for install.
2459 # Don't use installbsd from OSF since it installs stuff as root
2460 # by default.
2461 for ac_prog in ginstall scoinst install; do
2462 for ac_exec_ext in '' $ac_executable_extensions; do
2463 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2464 if test $ac_prog = install &&
2465 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2466 # AIX install. It has an incompatible calling convention.
2467 :
2468 elif test $ac_prog = install &&
2469 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2470 # program-specific install script used by HP pwplus--don't use.
2471 :
2472 else
2473 rm -rf conftest.one conftest.two conftest.dir
2474 echo one > conftest.one
2475 echo two > conftest.two
2476 mkdir conftest.dir
2477 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2478 test -s conftest.one && test -s conftest.two &&
2479 test -s conftest.dir/conftest.one &&
2480 test -s conftest.dir/conftest.two
2481 then
2482 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2483 break 3
2484 fi
2485 fi
2486 fi
2487 done
2488 done
2489 ;;
2490 esac
2491
2492 done
2493 IFS=$as_save_IFS
2494
2495 rm -rf conftest.one conftest.two conftest.dir
2496
2497 fi
2498 if test "${ac_cv_path_install+set}" = set; then
2499 INSTALL=$ac_cv_path_install
2500 else
2501 # As a last resort, use the slow shell script. Don't cache a
2502 # value for INSTALL within a source directory, because that will
2503 # break other packages using the cache if that directory is
2504 # removed, or if the value is a relative name.
2505 INSTALL=$ac_install_sh
2506 fi
2507 fi
2508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2509 $as_echo "$INSTALL" >&6; }
2510
2511 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2512 # It thinks the first close brace ends the variable substitution.
2513 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2514
2515 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2516
2517 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2518
2519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2520 $as_echo_n "checking whether build environment is sane... " >&6; }
2521 # Reject unsafe characters in $srcdir or the absolute working directory
2522 # name. Accept space and tab only in the latter.
2523 am_lf='
2524 '
2525 case `pwd` in
2526 *[\\\"\#\$\&\'\`$am_lf]*)
2527 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2528 esac
2529 case $srcdir in
2530 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2531 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2532 esac
2533
2534 # Do 'set' in a subshell so we don't clobber the current shell's
2535 # arguments. Must try -L first in case configure is actually a
2536 # symlink; some systems play weird games with the mod time of symlinks
2537 # (eg FreeBSD returns the mod time of the symlink's containing
2538 # directory).
2539 if (
2540 am_has_slept=no
2541 for am_try in 1 2; do
2542 echo "timestamp, slept: $am_has_slept" > conftest.file
2543 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2544 if test "$*" = "X"; then
2545 # -L didn't work.
2546 set X `ls -t "$srcdir/configure" conftest.file`
2547 fi
2548 if test "$*" != "X $srcdir/configure conftest.file" \
2549 && test "$*" != "X conftest.file $srcdir/configure"; then
2550
2551 # If neither matched, then we have a broken ls. This can happen
2552 # if, for instance, CONFIG_SHELL is bash and it inherits a
2553 # broken ls alias from the environment. This has actually
2554 # happened. Such a system could not be considered "sane".
2555 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2556 alias in your environment" "$LINENO" 5
2557 fi
2558 if test "$2" = conftest.file || test $am_try -eq 2; then
2559 break
2560 fi
2561 # Just in case.
2562 sleep 1
2563 am_has_slept=yes
2564 done
2565 test "$2" = conftest.file
2566 )
2567 then
2568 # Ok.
2569 :
2570 else
2571 as_fn_error $? "newly created file is older than distributed files!
2572 Check your system clock" "$LINENO" 5
2573 fi
2574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2575 $as_echo "yes" >&6; }
2576 # If we didn't sleep, we still need to ensure time stamps of config.status and
2577 # generated files are strictly newer.
2578 am_sleep_pid=
2579 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2580 ( sleep 1 ) &
2581 am_sleep_pid=$!
2582 fi
2583
2584 rm -f conftest.file
2585
2586 test "$program_prefix" != NONE &&
2587 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2588 # Use a double $ so make ignores it.
2589 test "$program_suffix" != NONE &&
2590 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2591 # Double any \ or $.
2592 # By default was `s,x,x', remove it if useless.
2593 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2594 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2595
2596 # expand $ac_aux_dir to an absolute path
2597 am_aux_dir=`cd $ac_aux_dir && pwd`
2598
2599 if test x"${MISSING+set}" != xset; then
2600 case $am_aux_dir in
2601 *\ * | *\ *)
2602 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2603 *)
2604 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2605 esac
2606 fi
2607 # Use eval to expand $SHELL
2608 if eval "$MISSING --is-lightweight"; then
2609 am_missing_run="$MISSING "
2610 else
2611 am_missing_run=
2612 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2613 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2614 fi
2615
2616 if test x"${install_sh}" != xset; then
2617 case $am_aux_dir in
2618 *\ * | *\ *)
2619 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2620 *)
2621 install_sh="\${SHELL} $am_aux_dir/install-sh"
2622 esac
2623 fi
2624
2625 # Installed binaries are usually stripped using 'strip' when the user
2626 # run "make install-strip". However 'strip' might not be the right
2627 # tool to use in cross-compilation environments, therefore Automake
2628 # will honor the 'STRIP' environment variable to overrule this program.
2629 if test "$cross_compiling" != no; then
2630 if test -n "$ac_tool_prefix"; then
2631 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2632 set dummy ${ac_tool_prefix}strip; ac_word=$2
2633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2634 $as_echo_n "checking for $ac_word... " >&6; }
2635 if ${ac_cv_prog_STRIP+:} false; then :
2636 $as_echo_n "(cached) " >&6
2637 else
2638 if test -n "$STRIP"; then
2639 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2640 else
2641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2642 for as_dir in $PATH
2643 do
2644 IFS=$as_save_IFS
2645 test -z "$as_dir" && as_dir=.
2646 for ac_exec_ext in '' $ac_executable_extensions; do
2647 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2648 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2649 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2650 break 2
2651 fi
2652 done
2653 done
2654 IFS=$as_save_IFS
2655
2656 fi
2657 fi
2658 STRIP=$ac_cv_prog_STRIP
2659 if test -n "$STRIP"; then
2660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2661 $as_echo "$STRIP" >&6; }
2662 else
2663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2664 $as_echo "no" >&6; }
2665 fi
2666
2667
2668 fi
2669 if test -z "$ac_cv_prog_STRIP"; then
2670 ac_ct_STRIP=$STRIP
2671 # Extract the first word of "strip", so it can be a program name with args.
2672 set dummy strip; ac_word=$2
2673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2674 $as_echo_n "checking for $ac_word... " >&6; }
2675 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2676 $as_echo_n "(cached) " >&6
2677 else
2678 if test -n "$ac_ct_STRIP"; then
2679 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2680 else
2681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2682 for as_dir in $PATH
2683 do
2684 IFS=$as_save_IFS
2685 test -z "$as_dir" && as_dir=.
2686 for ac_exec_ext in '' $ac_executable_extensions; do
2687 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2688 ac_cv_prog_ac_ct_STRIP="strip"
2689 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2690 break 2
2691 fi
2692 done
2693 done
2694 IFS=$as_save_IFS
2695
2696 fi
2697 fi
2698 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2699 if test -n "$ac_ct_STRIP"; then
2700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2701 $as_echo "$ac_ct_STRIP" >&6; }
2702 else
2703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2704 $as_echo "no" >&6; }
2705 fi
2706
2707 if test "x$ac_ct_STRIP" = x; then
2708 STRIP=":"
2709 else
2710 case $cross_compiling:$ac_tool_warned in
2711 yes:)
2712 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2713 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2714 ac_tool_warned=yes ;;
2715 esac
2716 STRIP=$ac_ct_STRIP
2717 fi
2718 else
2719 STRIP="$ac_cv_prog_STRIP"
2720 fi
2721
2722 fi
2723 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2724
2725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2726 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2727 if test -z "$MKDIR_P"; then
2728 if ${ac_cv_path_mkdir+:} false; then :
2729 $as_echo_n "(cached) " >&6
2730 else
2731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2732 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2733 do
2734 IFS=$as_save_IFS
2735 test -z "$as_dir" && as_dir=.
2736 for ac_prog in mkdir gmkdir; do
2737 for ac_exec_ext in '' $ac_executable_extensions; do
2738 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2739 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2740 'mkdir (GNU coreutils) '* | \
2741 'mkdir (coreutils) '* | \
2742 'mkdir (fileutils) '4.1*)
2743 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2744 break 3;;
2745 esac
2746 done
2747 done
2748 done
2749 IFS=$as_save_IFS
2750
2751 fi
2752
2753 test -d ./--version && rmdir ./--version
2754 if test "${ac_cv_path_mkdir+set}" = set; then
2755 MKDIR_P="$ac_cv_path_mkdir -p"
2756 else
2757 # As a last resort, use the slow shell script. Don't cache a
2758 # value for MKDIR_P within a source directory, because that will
2759 # break other packages using the cache if that directory is
2760 # removed, or if the value is a relative name.
2761 MKDIR_P="$ac_install_sh -d"
2762 fi
2763 fi
2764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2765 $as_echo "$MKDIR_P" >&6; }
2766
2767 for ac_prog in gawk mawk nawk awk
2768 do
2769 # Extract the first word of "$ac_prog", so it can be a program name with args.
2770 set dummy $ac_prog; ac_word=$2
2771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2772 $as_echo_n "checking for $ac_word... " >&6; }
2773 if ${ac_cv_prog_AWK+:} false; then :
2774 $as_echo_n "(cached) " >&6
2775 else
2776 if test -n "$AWK"; then
2777 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2778 else
2779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2780 for as_dir in $PATH
2781 do
2782 IFS=$as_save_IFS
2783 test -z "$as_dir" && as_dir=.
2784 for ac_exec_ext in '' $ac_executable_extensions; do
2785 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2786 ac_cv_prog_AWK="$ac_prog"
2787 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2788 break 2
2789 fi
2790 done
2791 done
2792 IFS=$as_save_IFS
2793
2794 fi
2795 fi
2796 AWK=$ac_cv_prog_AWK
2797 if test -n "$AWK"; then
2798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2799 $as_echo "$AWK" >&6; }
2800 else
2801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2802 $as_echo "no" >&6; }
2803 fi
2804
2805
2806 test -n "$AWK" && break
2807 done
2808
2809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2810 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2811 set x ${MAKE-make}
2812 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2813 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2814 $as_echo_n "(cached) " >&6
2815 else
2816 cat >conftest.make <<\_ACEOF
2817 SHELL = /bin/sh
2818 all:
2819 @echo '@@@%%%=$(MAKE)=@@@%%%'
2820 _ACEOF
2821 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2822 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2823 *@@@%%%=?*=@@@%%%*)
2824 eval ac_cv_prog_make_${ac_make}_set=yes;;
2825 *)
2826 eval ac_cv_prog_make_${ac_make}_set=no;;
2827 esac
2828 rm -f conftest.make
2829 fi
2830 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2832 $as_echo "yes" >&6; }
2833 SET_MAKE=
2834 else
2835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2836 $as_echo "no" >&6; }
2837 SET_MAKE="MAKE=${MAKE-make}"
2838 fi
2839
2840 rm -rf .tst 2>/dev/null
2841 mkdir .tst 2>/dev/null
2842 if test -d .tst; then
2843 am__leading_dot=.
2844 else
2845 am__leading_dot=_
2846 fi
2847 rmdir .tst 2>/dev/null
2848
2849 # Check whether --enable-silent-rules was given.
2850 if test "${enable_silent_rules+set}" = set; then :
2851 enableval=$enable_silent_rules;
2852 fi
2853
2854 case $enable_silent_rules in # (((
2855 yes) AM_DEFAULT_VERBOSITY=0;;
2856 no) AM_DEFAULT_VERBOSITY=1;;
2857 *) AM_DEFAULT_VERBOSITY=1;;
2858 esac
2859 am_make=${MAKE-make}
2860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2861 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2862 if ${am_cv_make_support_nested_variables+:} false; then :
2863 $as_echo_n "(cached) " >&6
2864 else
2865 if $as_echo 'TRUE=$(BAR$(V))
2866 BAR0=false
2867 BAR1=true
2868 V=1
2869 am__doit:
2870 @$(TRUE)
2871 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2872 am_cv_make_support_nested_variables=yes
2873 else
2874 am_cv_make_support_nested_variables=no
2875 fi
2876 fi
2877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2878 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2879 if test $am_cv_make_support_nested_variables = yes; then
2880 AM_V='$(V)'
2881 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2882 else
2883 AM_V=$AM_DEFAULT_VERBOSITY
2884 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2885 fi
2886 AM_BACKSLASH='\'
2887
2888 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2889 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2890 # is not polluted with repeated "-I."
2891 am__isrc=' -I$(srcdir)'
2892 # test to see if srcdir already configured
2893 if test -f $srcdir/config.status; then
2894 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2895 fi
2896 fi
2897
2898 # test whether we have cygpath
2899 if test -z "$CYGPATH_W"; then
2900 if (cygpath --version) >/dev/null 2>/dev/null; then
2901 CYGPATH_W='cygpath -w'
2902 else
2903 CYGPATH_W=echo
2904 fi
2905 fi
2906
2907
2908 # Define the identity of the package.
2909 PACKAGE='ircd-hybrid'
2910 VERSION='8.2.0rc2'
2911
2912
2913 cat >>confdefs.h <<_ACEOF
2914 #define PACKAGE "$PACKAGE"
2915 _ACEOF
2916
2917
2918 cat >>confdefs.h <<_ACEOF
2919 #define VERSION "$VERSION"
2920 _ACEOF
2921
2922 # Some tools Automake needs.
2923
2924 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2925
2926
2927 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2928
2929
2930 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2931
2932
2933 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2934
2935
2936 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2937
2938 # For better backward compatibility. To be removed once Automake 1.9.x
2939 # dies out for good. For more background, see:
2940 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2941 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2942 mkdir_p='$(MKDIR_P)'
2943
2944 # We need awk for the "check" target. The system "awk" is bad on
2945 # some platforms.
2946 # Always define AMTAR for backward compatibility. Yes, it's still used
2947 # in the wild :-( We should find a proper way to deprecate it ...
2948 AMTAR='$${TAR-tar}'
2949
2950
2951 # We'll loop over all known methods to create a tar archive until one works.
2952 _am_tools='gnutar pax cpio none'
2953
2954 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2955
2956
2957
2958
2959
2960
2961 # POSIX will say in a future version that running "rm -f" with no argument
2962 # is OK; and we want to be able to make that assumption in our Makefile
2963 # recipes. So use an aggressive probe to check that the usage we want is
2964 # actually supported "in the wild" to an acceptable degree.
2965 # See automake bug#10828.
2966 # To make any issue more visible, cause the running configure to be aborted
2967 # by default if the 'rm' program in use doesn't match our expectations; the
2968 # user can still override this though.
2969 if rm -f && rm -fr && rm -rf; then : OK; else
2970 cat >&2 <<'END'
2971 Oops!
2972
2973 Your 'rm' program seems unable to run without file operands specified
2974 on the command line, even when the '-f' option is present. This is contrary
2975 to the behaviour of most rm programs out there, and not conforming with
2976 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2977
2978 Please tell bug-automake@gnu.org about your system, including the value
2979 of your $PATH and any error possibly output before this message. This
2980 can help us improve future automake versions.
2981
2982 END
2983 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2984 echo 'Configuration will proceed anyway, since you have set the' >&2
2985 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2986 echo >&2
2987 else
2988 cat >&2 <<'END'
2989 Aborting the configuration process, to ensure you take notice of the issue.
2990
2991 You can download and install GNU coreutils to get an 'rm' implementation
2992 that behaves properly: <http://www.gnu.org/software/coreutils/>.
2993
2994 If you want to complete the configuration process using your problematic
2995 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2996 to "yes", and re-run configure.
2997
2998 END
2999 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3000 fi
3001 fi
3002
3003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3004 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3005 # Check whether --enable-maintainer-mode was given.
3006 if test "${enable_maintainer_mode+set}" = set; then :
3007 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3008 else
3009 USE_MAINTAINER_MODE=no
3010 fi
3011
3012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3013 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3014 if test $USE_MAINTAINER_MODE = yes; then
3015 MAINTAINER_MODE_TRUE=
3016 MAINTAINER_MODE_FALSE='#'
3017 else
3018 MAINTAINER_MODE_TRUE='#'
3019 MAINTAINER_MODE_FALSE=
3020 fi
3021
3022 MAINT=$MAINTAINER_MODE_TRUE
3023
3024
3025
3026 ac_config_headers="$ac_config_headers config.h"
3027
3028
3029
3030 # Checks for programs.
3031 DEPDIR="${am__leading_dot}deps"
3032
3033 ac_config_commands="$ac_config_commands depfiles"
3034
3035
3036 am_make=${MAKE-make}
3037 cat > confinc << 'END'
3038 am__doit:
3039 @echo this is the am__doit target
3040 .PHONY: am__doit
3041 END
3042 # If we don't find an include directive, just comment out the code.
3043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3044 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3045 am__include="#"
3046 am__quote=
3047 _am_result=none
3048 # First try GNU make style include.
3049 echo "include confinc" > confmf
3050 # Ignore all kinds of additional output from 'make'.
3051 case `$am_make -s -f confmf 2> /dev/null` in #(
3052 *the\ am__doit\ target*)
3053 am__include=include
3054 am__quote=
3055 _am_result=GNU
3056 ;;
3057 esac
3058 # Now try BSD make style include.
3059 if test "$am__include" = "#"; then
3060 echo '.include "confinc"' > confmf
3061 case `$am_make -s -f confmf 2> /dev/null` in #(
3062 *the\ am__doit\ target*)
3063 am__include=.include
3064 am__quote="\""
3065 _am_result=BSD
3066 ;;
3067 esac
3068 fi
3069
3070
3071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3072 $as_echo "$_am_result" >&6; }
3073 rm -f confinc confmf
3074
3075 # Check whether --enable-dependency-tracking was given.
3076 if test "${enable_dependency_tracking+set}" = set; then :
3077 enableval=$enable_dependency_tracking;
3078 fi
3079
3080 if test "x$enable_dependency_tracking" != xno; then
3081 am_depcomp="$ac_aux_dir/depcomp"
3082 AMDEPBACKSLASH='\'
3083 am__nodep='_no'
3084 fi
3085 if test "x$enable_dependency_tracking" != xno; then
3086 AMDEP_TRUE=
3087 AMDEP_FALSE='#'
3088 else
3089 AMDEP_TRUE='#'
3090 AMDEP_FALSE=
3091 fi
3092
3093
3094 ac_ext=c
3095 ac_cpp='$CPP $CPPFLAGS'
3096 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3097 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3098 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3099 if test -n "$ac_tool_prefix"; then
3100 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3101 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3103 $as_echo_n "checking for $ac_word... " >&6; }
3104 if ${ac_cv_prog_CC+:} false; then :
3105 $as_echo_n "(cached) " >&6
3106 else
3107 if test -n "$CC"; then
3108 ac_cv_prog_CC="$CC" # Let the user override the test.
3109 else
3110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3111 for as_dir in $PATH
3112 do
3113 IFS=$as_save_IFS
3114 test -z "$as_dir" && as_dir=.
3115 for ac_exec_ext in '' $ac_executable_extensions; do
3116 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3117 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3118 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3119 break 2
3120 fi
3121 done
3122 done
3123 IFS=$as_save_IFS
3124
3125 fi
3126 fi
3127 CC=$ac_cv_prog_CC
3128 if test -n "$CC"; then
3129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3130 $as_echo "$CC" >&6; }
3131 else
3132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3133 $as_echo "no" >&6; }
3134 fi
3135
3136
3137 fi
3138 if test -z "$ac_cv_prog_CC"; then
3139 ac_ct_CC=$CC
3140 # Extract the first word of "gcc", so it can be a program name with args.
3141 set dummy gcc; ac_word=$2
3142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3143 $as_echo_n "checking for $ac_word... " >&6; }
3144 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3145 $as_echo_n "(cached) " >&6
3146 else
3147 if test -n "$ac_ct_CC"; then
3148 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3149 else
3150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3151 for as_dir in $PATH
3152 do
3153 IFS=$as_save_IFS
3154 test -z "$as_dir" && as_dir=.
3155 for ac_exec_ext in '' $ac_executable_extensions; do
3156 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3157 ac_cv_prog_ac_ct_CC="gcc"
3158 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3159 break 2
3160 fi
3161 done
3162 done
3163 IFS=$as_save_IFS
3164
3165 fi
3166 fi
3167 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3168 if test -n "$ac_ct_CC"; then
3169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3170 $as_echo "$ac_ct_CC" >&6; }
3171 else
3172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3173 $as_echo "no" >&6; }
3174 fi
3175
3176 if test "x$ac_ct_CC" = x; then
3177 CC=""
3178 else
3179 case $cross_compiling:$ac_tool_warned in
3180 yes:)
3181 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3182 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3183 ac_tool_warned=yes ;;
3184 esac
3185 CC=$ac_ct_CC
3186 fi
3187 else
3188 CC="$ac_cv_prog_CC"
3189 fi
3190
3191 if test -z "$CC"; then
3192 if test -n "$ac_tool_prefix"; then
3193 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3194 set dummy ${ac_tool_prefix}cc; ac_word=$2
3195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3196 $as_echo_n "checking for $ac_word... " >&6; }
3197 if ${ac_cv_prog_CC+:} false; then :
3198 $as_echo_n "(cached) " >&6
3199 else
3200 if test -n "$CC"; then
3201 ac_cv_prog_CC="$CC" # Let the user override the test.
3202 else
3203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3204 for as_dir in $PATH
3205 do
3206 IFS=$as_save_IFS
3207 test -z "$as_dir" && as_dir=.
3208 for ac_exec_ext in '' $ac_executable_extensions; do
3209 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3210 ac_cv_prog_CC="${ac_tool_prefix}cc"
3211 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3212 break 2
3213 fi
3214 done
3215 done
3216 IFS=$as_save_IFS
3217
3218 fi
3219 fi
3220 CC=$ac_cv_prog_CC
3221 if test -n "$CC"; then
3222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3223 $as_echo "$CC" >&6; }
3224 else
3225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3226 $as_echo "no" >&6; }
3227 fi
3228
3229
3230 fi
3231 fi
3232 if test -z "$CC"; then
3233 # Extract the first word of "cc", so it can be a program name with args.
3234 set dummy cc; ac_word=$2
3235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3236 $as_echo_n "checking for $ac_word... " >&6; }
3237 if ${ac_cv_prog_CC+:} false; then :
3238 $as_echo_n "(cached) " >&6
3239 else
3240 if test -n "$CC"; then
3241 ac_cv_prog_CC="$CC" # Let the user override the test.
3242 else
3243 ac_prog_rejected=no
3244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3245 for as_dir in $PATH
3246 do
3247 IFS=$as_save_IFS
3248 test -z "$as_dir" && as_dir=.
3249 for ac_exec_ext in '' $ac_executable_extensions; do
3250 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3251 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3252 ac_prog_rejected=yes
3253 continue
3254 fi
3255 ac_cv_prog_CC="cc"
3256 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3257 break 2
3258 fi
3259 done
3260 done
3261 IFS=$as_save_IFS
3262
3263 if test $ac_prog_rejected = yes; then
3264 # We found a bogon in the path, so make sure we never use it.
3265 set dummy $ac_cv_prog_CC
3266 shift
3267 if test $# != 0; then
3268 # We chose a different compiler from the bogus one.
3269 # However, it has the same basename, so the bogon will be chosen
3270 # first if we set CC to just the basename; use the full file name.
3271 shift
3272 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3273 fi
3274 fi
3275 fi
3276 fi
3277 CC=$ac_cv_prog_CC
3278 if test -n "$CC"; then
3279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3280 $as_echo "$CC" >&6; }
3281 else
3282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3283 $as_echo "no" >&6; }
3284 fi
3285
3286
3287 fi
3288 if test -z "$CC"; then
3289 if test -n "$ac_tool_prefix"; then
3290 for ac_prog in cl.exe
3291 do
3292 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3293 set dummy $ac_tool_prefix$ac_prog; 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 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3303 for as_dir in $PATH
3304 do
3305 IFS=$as_save_IFS
3306 test -z "$as_dir" && as_dir=.
3307 for ac_exec_ext in '' $ac_executable_extensions; do
3308 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3309 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3310 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3311 break 2
3312 fi
3313 done
3314 done
3315 IFS=$as_save_IFS
3316
3317 fi
3318 fi
3319 CC=$ac_cv_prog_CC
3320 if test -n "$CC"; then
3321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3322 $as_echo "$CC" >&6; }
3323 else
3324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3325 $as_echo "no" >&6; }
3326 fi
3327
3328
3329 test -n "$CC" && break
3330 done
3331 fi
3332 if test -z "$CC"; then
3333 ac_ct_CC=$CC
3334 for ac_prog in cl.exe
3335 do
3336 # Extract the first word of "$ac_prog", so it can be a program name with args.
3337 set dummy $ac_prog; ac_word=$2
3338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3339 $as_echo_n "checking for $ac_word... " >&6; }
3340 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3341 $as_echo_n "(cached) " >&6
3342 else
3343 if test -n "$ac_ct_CC"; then
3344 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3345 else
3346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3347 for as_dir in $PATH
3348 do
3349 IFS=$as_save_IFS
3350 test -z "$as_dir" && as_dir=.
3351 for ac_exec_ext in '' $ac_executable_extensions; do
3352 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3353 ac_cv_prog_ac_ct_CC="$ac_prog"
3354 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3355 break 2
3356 fi
3357 done
3358 done
3359 IFS=$as_save_IFS
3360
3361 fi
3362 fi
3363 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3364 if test -n "$ac_ct_CC"; then
3365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3366 $as_echo "$ac_ct_CC" >&6; }
3367 else
3368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3369 $as_echo "no" >&6; }
3370 fi
3371
3372
3373 test -n "$ac_ct_CC" && break
3374 done
3375
3376 if test "x$ac_ct_CC" = x; then
3377 CC=""
3378 else
3379 case $cross_compiling:$ac_tool_warned in
3380 yes:)
3381 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3382 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3383 ac_tool_warned=yes ;;
3384 esac
3385 CC=$ac_ct_CC
3386 fi
3387 fi
3388
3389 fi
3390
3391
3392 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3393 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3394 as_fn_error $? "no acceptable C compiler found in \$PATH
3395 See \`config.log' for more details" "$LINENO" 5; }
3396
3397 # Provide some information about the compiler.
3398 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3399 set X $ac_compile
3400 ac_compiler=$2
3401 for ac_option in --version -v -V -qversion; do
3402 { { ac_try="$ac_compiler $ac_option >&5"
3403 case "(($ac_try" in
3404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3405 *) ac_try_echo=$ac_try;;
3406 esac
3407 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3408 $as_echo "$ac_try_echo"; } >&5
3409 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3410 ac_status=$?
3411 if test -s conftest.err; then
3412 sed '10a\
3413 ... rest of stderr output deleted ...
3414 10q' conftest.err >conftest.er1
3415 cat conftest.er1 >&5
3416 fi
3417 rm -f conftest.er1 conftest.err
3418 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3419 test $ac_status = 0; }
3420 done
3421
3422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3423 /* end confdefs.h. */
3424
3425 int
3426 main ()
3427 {
3428
3429 ;
3430 return 0;
3431 }
3432 _ACEOF
3433 ac_clean_files_save=$ac_clean_files
3434 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3435 # Try to create an executable without -o first, disregard a.out.
3436 # It will help us diagnose broken compilers, and finding out an intuition
3437 # of exeext.
3438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3439 $as_echo_n "checking whether the C compiler works... " >&6; }
3440 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3441
3442 # The possible output files:
3443 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3444
3445 ac_rmfiles=
3446 for ac_file in $ac_files
3447 do
3448 case $ac_file in
3449 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3450 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3451 esac
3452 done
3453 rm -f $ac_rmfiles
3454
3455 if { { ac_try="$ac_link_default"
3456 case "(($ac_try" in
3457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3458 *) ac_try_echo=$ac_try;;
3459 esac
3460 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3461 $as_echo "$ac_try_echo"; } >&5
3462 (eval "$ac_link_default") 2>&5
3463 ac_status=$?
3464 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3465 test $ac_status = 0; }; then :
3466 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3467 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3468 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3469 # so that the user can short-circuit this test for compilers unknown to
3470 # Autoconf.
3471 for ac_file in $ac_files ''
3472 do
3473 test -f "$ac_file" || continue
3474 case $ac_file in
3475 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3476 ;;
3477 [ab].out )
3478 # We found the default executable, but exeext='' is most
3479 # certainly right.
3480 break;;
3481 *.* )
3482 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3483 then :; else
3484 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3485 fi
3486 # We set ac_cv_exeext here because the later test for it is not
3487 # safe: cross compilers may not add the suffix if given an `-o'
3488 # argument, so we may need to know it at that point already.
3489 # Even if this section looks crufty: it has the advantage of
3490 # actually working.
3491 break;;
3492 * )
3493 break;;
3494 esac
3495 done
3496 test "$ac_cv_exeext" = no && ac_cv_exeext=
3497
3498 else
3499 ac_file=''
3500 fi
3501 if test -z "$ac_file"; then :
3502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3503 $as_echo "no" >&6; }
3504 $as_echo "$as_me: failed program was:" >&5
3505 sed 's/^/| /' conftest.$ac_ext >&5
3506
3507 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3508 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3509 as_fn_error 77 "C compiler cannot create executables
3510 See \`config.log' for more details" "$LINENO" 5; }
3511 else
3512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3513 $as_echo "yes" >&6; }
3514 fi
3515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3516 $as_echo_n "checking for C compiler default output file name... " >&6; }
3517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3518 $as_echo "$ac_file" >&6; }
3519 ac_exeext=$ac_cv_exeext
3520
3521 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3522 ac_clean_files=$ac_clean_files_save
3523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3524 $as_echo_n "checking for suffix of executables... " >&6; }
3525 if { { ac_try="$ac_link"
3526 case "(($ac_try" in
3527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3528 *) ac_try_echo=$ac_try;;
3529 esac
3530 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3531 $as_echo "$ac_try_echo"; } >&5
3532 (eval "$ac_link") 2>&5
3533 ac_status=$?
3534 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3535 test $ac_status = 0; }; then :
3536 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3537 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3538 # work properly (i.e., refer to `conftest.exe'), while it won't with
3539 # `rm'.
3540 for ac_file in conftest.exe conftest conftest.*; do
3541 test -f "$ac_file" || continue
3542 case $ac_file in
3543 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3544 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3545 break;;
3546 * ) break;;
3547 esac
3548 done
3549 else
3550 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3551 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3552 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3553 See \`config.log' for more details" "$LINENO" 5; }
3554 fi
3555 rm -f conftest conftest$ac_cv_exeext
3556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3557 $as_echo "$ac_cv_exeext" >&6; }
3558
3559 rm -f conftest.$ac_ext
3560 EXEEXT=$ac_cv_exeext
3561 ac_exeext=$EXEEXT
3562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3563 /* end confdefs.h. */
3564 #include <stdio.h>
3565 int
3566 main ()
3567 {
3568 FILE *f = fopen ("conftest.out", "w");
3569 return ferror (f) || fclose (f) != 0;
3570
3571 ;
3572 return 0;
3573 }
3574 _ACEOF
3575 ac_clean_files="$ac_clean_files conftest.out"
3576 # Check that the compiler produces executables we can run. If not, either
3577 # the compiler is broken, or we cross compile.
3578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3579 $as_echo_n "checking whether we are cross compiling... " >&6; }
3580 if test "$cross_compiling" != yes; then
3581 { { ac_try="$ac_link"
3582 case "(($ac_try" in
3583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3584 *) ac_try_echo=$ac_try;;
3585 esac
3586 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3587 $as_echo "$ac_try_echo"; } >&5
3588 (eval "$ac_link") 2>&5
3589 ac_status=$?
3590 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3591 test $ac_status = 0; }
3592 if { ac_try='./conftest$ac_cv_exeext'
3593 { { case "(($ac_try" in
3594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3595 *) ac_try_echo=$ac_try;;
3596 esac
3597 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3598 $as_echo "$ac_try_echo"; } >&5
3599 (eval "$ac_try") 2>&5
3600 ac_status=$?
3601 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3602 test $ac_status = 0; }; }; then
3603 cross_compiling=no
3604 else
3605 if test "$cross_compiling" = maybe; then
3606 cross_compiling=yes
3607 else
3608 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3609 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3610 as_fn_error $? "cannot run C compiled programs.
3611 If you meant to cross compile, use \`--host'.
3612 See \`config.log' for more details" "$LINENO" 5; }
3613 fi
3614 fi
3615 fi
3616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3617 $as_echo "$cross_compiling" >&6; }
3618
3619 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3620 ac_clean_files=$ac_clean_files_save
3621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3622 $as_echo_n "checking for suffix of object files... " >&6; }
3623 if ${ac_cv_objext+:} false; then :
3624 $as_echo_n "(cached) " >&6
3625 else
3626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3627 /* end confdefs.h. */
3628
3629 int
3630 main ()
3631 {
3632
3633 ;
3634 return 0;
3635 }
3636 _ACEOF
3637 rm -f conftest.o conftest.obj
3638 if { { ac_try="$ac_compile"
3639 case "(($ac_try" in
3640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3641 *) ac_try_echo=$ac_try;;
3642 esac
3643 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3644 $as_echo "$ac_try_echo"; } >&5
3645 (eval "$ac_compile") 2>&5
3646 ac_status=$?
3647 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3648 test $ac_status = 0; }; then :
3649 for ac_file in conftest.o conftest.obj conftest.*; do
3650 test -f "$ac_file" || continue;
3651 case $ac_file in
3652 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3653 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3654 break;;
3655 esac
3656 done
3657 else
3658 $as_echo "$as_me: failed program was:" >&5
3659 sed 's/^/| /' conftest.$ac_ext >&5
3660
3661 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3662 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3663 as_fn_error $? "cannot compute suffix of object files: cannot compile
3664 See \`config.log' for more details" "$LINENO" 5; }
3665 fi
3666 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3667 fi
3668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3669 $as_echo "$ac_cv_objext" >&6; }
3670 OBJEXT=$ac_cv_objext
3671 ac_objext=$OBJEXT
3672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3673 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3674 if ${ac_cv_c_compiler_gnu+:} false; then :
3675 $as_echo_n "(cached) " >&6
3676 else
3677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3678 /* end confdefs.h. */
3679
3680 int
3681 main ()
3682 {
3683 #ifndef __GNUC__
3684 choke me
3685 #endif
3686
3687 ;
3688 return 0;
3689 }
3690 _ACEOF
3691 if ac_fn_c_try_compile "$LINENO"; then :
3692 ac_compiler_gnu=yes
3693 else
3694 ac_compiler_gnu=no
3695 fi
3696 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3697 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3698
3699 fi
3700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3701 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3702 if test $ac_compiler_gnu = yes; then
3703 GCC=yes
3704 else
3705 GCC=
3706 fi
3707 ac_test_CFLAGS=${CFLAGS+set}
3708 ac_save_CFLAGS=$CFLAGS
3709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3710 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3711 if ${ac_cv_prog_cc_g+:} false; then :
3712 $as_echo_n "(cached) " >&6
3713 else
3714 ac_save_c_werror_flag=$ac_c_werror_flag
3715 ac_c_werror_flag=yes
3716 ac_cv_prog_cc_g=no
3717 CFLAGS="-g"
3718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3719 /* end confdefs.h. */
3720
3721 int
3722 main ()
3723 {
3724
3725 ;
3726 return 0;
3727 }
3728 _ACEOF
3729 if ac_fn_c_try_compile "$LINENO"; then :
3730 ac_cv_prog_cc_g=yes
3731 else
3732 CFLAGS=""
3733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3734 /* end confdefs.h. */
3735
3736 int
3737 main ()
3738 {
3739
3740 ;
3741 return 0;
3742 }
3743 _ACEOF
3744 if ac_fn_c_try_compile "$LINENO"; then :
3745
3746 else
3747 ac_c_werror_flag=$ac_save_c_werror_flag
3748 CFLAGS="-g"
3749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3750 /* end confdefs.h. */
3751
3752 int
3753 main ()
3754 {
3755
3756 ;
3757 return 0;
3758 }
3759 _ACEOF
3760 if ac_fn_c_try_compile "$LINENO"; then :
3761 ac_cv_prog_cc_g=yes
3762 fi
3763 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3764 fi
3765 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3766 fi
3767 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3768 ac_c_werror_flag=$ac_save_c_werror_flag
3769 fi
3770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3771 $as_echo "$ac_cv_prog_cc_g" >&6; }
3772 if test "$ac_test_CFLAGS" = set; then
3773 CFLAGS=$ac_save_CFLAGS
3774 elif test $ac_cv_prog_cc_g = yes; then
3775 if test "$GCC" = yes; then
3776 CFLAGS="-g -O2"
3777 else
3778 CFLAGS="-g"
3779 fi
3780 else
3781 if test "$GCC" = yes; then
3782 CFLAGS="-O2"
3783 else
3784 CFLAGS=
3785 fi
3786 fi
3787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3788 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3789 if ${ac_cv_prog_cc_c89+:} false; then :
3790 $as_echo_n "(cached) " >&6
3791 else
3792 ac_cv_prog_cc_c89=no
3793 ac_save_CC=$CC
3794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3795 /* end confdefs.h. */
3796 #include <stdarg.h>
3797 #include <stdio.h>
3798 struct stat;
3799 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3800 struct buf { int x; };
3801 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3802 static char *e (p, i)
3803 char **p;
3804 int i;
3805 {
3806 return p[i];
3807 }
3808 static char *f (char * (*g) (char **, int), char **p, ...)
3809 {
3810 char *s;
3811 va_list v;
3812 va_start (v,p);
3813 s = g (p, va_arg (v,int));
3814 va_end (v);
3815 return s;
3816 }
3817
3818 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3819 function prototypes and stuff, but not '\xHH' hex character constants.
3820 These don't provoke an error unfortunately, instead are silently treated
3821 as 'x'. The following induces an error, until -std is added to get
3822 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3823 array size at least. It's necessary to write '\x00'==0 to get something
3824 that's true only with -std. */
3825 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3826
3827 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3828 inside strings and character constants. */
3829 #define FOO(x) 'x'
3830 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3831
3832 int test (int i, double x);
3833 struct s1 {int (*f) (int a);};
3834 struct s2 {int (*f) (double a);};
3835 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3836 int argc;
3837 char **argv;
3838 int
3839 main ()
3840 {
3841 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3842 ;
3843 return 0;
3844 }
3845 _ACEOF
3846 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3847 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3848 do
3849 CC="$ac_save_CC $ac_arg"
3850 if ac_fn_c_try_compile "$LINENO"; then :
3851 ac_cv_prog_cc_c89=$ac_arg
3852 fi
3853 rm -f core conftest.err conftest.$ac_objext
3854 test "x$ac_cv_prog_cc_c89" != "xno" && break
3855 done
3856 rm -f conftest.$ac_ext
3857 CC=$ac_save_CC
3858
3859 fi
3860 # AC_CACHE_VAL
3861 case "x$ac_cv_prog_cc_c89" in
3862 x)
3863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3864 $as_echo "none needed" >&6; } ;;
3865 xno)
3866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3867 $as_echo "unsupported" >&6; } ;;
3868 *)
3869 CC="$CC $ac_cv_prog_cc_c89"
3870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3871 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3872 esac
3873 if test "x$ac_cv_prog_cc_c89" != xno; then :
3874
3875 fi
3876
3877 ac_ext=c
3878 ac_cpp='$CPP $CPPFLAGS'
3879 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3880 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3881 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3882
3883 ac_ext=c
3884 ac_cpp='$CPP $CPPFLAGS'
3885 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3886 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3887 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3889 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3890 if ${am_cv_prog_cc_c_o+:} false; then :
3891 $as_echo_n "(cached) " >&6
3892 else
3893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3894 /* end confdefs.h. */
3895
3896 int
3897 main ()
3898 {
3899
3900 ;
3901 return 0;
3902 }
3903 _ACEOF
3904 # Make sure it works both with $CC and with simple cc.
3905 # Following AC_PROG_CC_C_O, we do the test twice because some
3906 # compilers refuse to overwrite an existing .o file with -o,
3907 # though they will create one.
3908 am_cv_prog_cc_c_o=yes
3909 for am_i in 1 2; do
3910 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3911 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3912 ac_status=$?
3913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3914 (exit $ac_status); } \
3915 && test -f conftest2.$ac_objext; then
3916 : OK
3917 else
3918 am_cv_prog_cc_c_o=no
3919 break
3920 fi
3921 done
3922 rm -f core conftest*
3923 unset am_i
3924 fi
3925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3926 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3927 if test "$am_cv_prog_cc_c_o" != yes; then
3928 # Losing compiler, so override with the script.
3929 # FIXME: It is wrong to rewrite CC.
3930 # But if we don't then we get into trouble of one sort or another.
3931 # A longer-term fix would be to have automake use am__CC in this case,
3932 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3933 CC="$am_aux_dir/compile $CC"
3934 fi
3935 ac_ext=c
3936 ac_cpp='$CPP $CPPFLAGS'
3937 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3938 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3939 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3940
3941
3942 depcc="$CC" am_compiler_list=
3943
3944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3945 $as_echo_n "checking dependency style of $depcc... " >&6; }
3946 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3947 $as_echo_n "(cached) " >&6
3948 else
3949 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3950 # We make a subdir and do the tests there. Otherwise we can end up
3951 # making bogus files that we don't know about and never remove. For
3952 # instance it was reported that on HP-UX the gcc test will end up
3953 # making a dummy file named 'D' -- because '-MD' means "put the output
3954 # in D".
3955 rm -rf conftest.dir
3956 mkdir conftest.dir
3957 # Copy depcomp to subdir because otherwise we won't find it if we're
3958 # using a relative directory.
3959 cp "$am_depcomp" conftest.dir
3960 cd conftest.dir
3961 # We will build objects and dependencies in a subdirectory because
3962 # it helps to detect inapplicable dependency modes. For instance
3963 # both Tru64's cc and ICC support -MD to output dependencies as a
3964 # side effect of compilation, but ICC will put the dependencies in
3965 # the current directory while Tru64 will put them in the object
3966 # directory.
3967 mkdir sub
3968
3969 am_cv_CC_dependencies_compiler_type=none
3970 if test "$am_compiler_list" = ""; then
3971 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3972 fi
3973 am__universal=false
3974 case " $depcc " in #(
3975 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3976 esac
3977
3978 for depmode in $am_compiler_list; do
3979 # Setup a source with many dependencies, because some compilers
3980 # like to wrap large dependency lists on column 80 (with \), and
3981 # we should not choose a depcomp mode which is confused by this.
3982 #
3983 # We need to recreate these files for each test, as the compiler may
3984 # overwrite some of them when testing with obscure command lines.
3985 # This happens at least with the AIX C compiler.
3986 : > sub/conftest.c
3987 for i in 1 2 3 4 5 6; do
3988 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3989 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3990 # Solaris 10 /bin/sh.
3991 echo '/* dummy */' > sub/conftst$i.h
3992 done
3993 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3994
3995 # We check with '-c' and '-o' for the sake of the "dashmstdout"
3996 # mode. It turns out that the SunPro C++ compiler does not properly
3997 # handle '-M -o', and we need to detect this. Also, some Intel
3998 # versions had trouble with output in subdirs.
3999 am__obj=sub/conftest.${OBJEXT-o}
4000 am__minus_obj="-o $am__obj"
4001 case $depmode in
4002 gcc)
4003 # This depmode causes a compiler race in universal mode.
4004 test "$am__universal" = false || continue
4005 ;;
4006 nosideeffect)
4007 # After this tag, mechanisms are not by side-effect, so they'll
4008 # only be used when explicitly requested.
4009 if test "x$enable_dependency_tracking" = xyes; then
4010 continue
4011 else
4012 break
4013 fi
4014 ;;
4015 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4016 # This compiler won't grok '-c -o', but also, the minuso test has
4017 # not run yet. These depmodes are late enough in the game, and
4018 # so weak that their functioning should not be impacted.
4019 am__obj=conftest.${OBJEXT-o}
4020 am__minus_obj=
4021 ;;
4022 none) break ;;
4023 esac
4024 if depmode=$depmode \
4025 source=sub/conftest.c object=$am__obj \
4026 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4027 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4028 >/dev/null 2>conftest.err &&
4029 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4030 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4031 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4032 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4033 # icc doesn't choke on unknown options, it will just issue warnings
4034 # or remarks (even with -Werror). So we grep stderr for any message
4035 # that says an option was ignored or not supported.
4036 # When given -MP, icc 7.0 and 7.1 complain thusly:
4037 # icc: Command line warning: ignoring option '-M'; no argument required
4038 # The diagnosis changed in icc 8.0:
4039 # icc: Command line remark: option '-MP' not supported
4040 if (grep 'ignoring option' conftest.err ||
4041 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4042 am_cv_CC_dependencies_compiler_type=$depmode
4043 break
4044 fi
4045 fi
4046 done
4047
4048 cd ..
4049 rm -rf conftest.dir
4050 else
4051 am_cv_CC_dependencies_compiler_type=none
4052 fi
4053
4054 fi
4055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4056 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4057 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4058
4059 if
4060 test "x$enable_dependency_tracking" != xno \
4061 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4062 am__fastdepCC_TRUE=
4063 am__fastdepCC_FALSE='#'
4064 else
4065 am__fastdepCC_TRUE='#'
4066 am__fastdepCC_FALSE=
4067 fi
4068
4069
4070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
4071 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4072 if ${ac_cv_prog_cc_c99+:} false; then :
4073 $as_echo_n "(cached) " >&6
4074 else
4075 ac_cv_prog_cc_c99=no
4076 ac_save_CC=$CC
4077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4078 /* end confdefs.h. */
4079 #include <stdarg.h>
4080 #include <stdbool.h>
4081 #include <stdlib.h>
4082 #include <wchar.h>
4083 #include <stdio.h>
4084
4085 // Check varargs macros. These examples are taken from C99 6.10.3.5.
4086 #define debug(...) fprintf (stderr, __VA_ARGS__)
4087 #define showlist(...) puts (#__VA_ARGS__)
4088 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4089 static void
4090 test_varargs_macros (void)
4091 {
4092 int x = 1234;
4093 int y = 5678;
4094 debug ("Flag");
4095 debug ("X = %d\n", x);
4096 showlist (The first, second, and third items.);
4097 report (x>y, "x is %d but y is %d", x, y);
4098 }
4099
4100 // Check long long types.
4101 #define BIG64 18446744073709551615ull
4102 #define BIG32 4294967295ul
4103 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4104 #if !BIG_OK
4105 your preprocessor is broken;
4106 #endif
4107 #if BIG_OK
4108 #else
4109 your preprocessor is broken;
4110 #endif
4111 static long long int bignum = -9223372036854775807LL;
4112 static unsigned long long int ubignum = BIG64;
4113
4114 struct incomplete_array
4115 {
4116 int datasize;
4117 double data[];
4118 };
4119
4120 struct named_init {
4121 int number;
4122 const wchar_t *name;
4123 double average;
4124 };
4125
4126 typedef const char *ccp;
4127
4128 static inline int
4129 test_restrict (ccp restrict text)
4130 {
4131 // See if C++-style comments work.
4132 // Iterate through items via the restricted pointer.
4133 // Also check for declarations in for loops.
4134 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4135 continue;
4136 return 0;
4137 }
4138
4139 // Check varargs and va_copy.
4140 static void
4141 test_varargs (const char *format, ...)
4142 {
4143 va_list args;
4144 va_start (args, format);
4145 va_list args_copy;
4146 va_copy (args_copy, args);
4147
4148 const char *str;
4149 int number;
4150 float fnumber;
4151
4152 while (*format)
4153 {
4154 switch (*format++)
4155 {
4156 case 's': // string
4157 str = va_arg (args_copy, const char *);
4158 break;
4159 case 'd': // int
4160 number = va_arg (args_copy, int);
4161 break;
4162 case 'f': // float
4163 fnumber = va_arg (args_copy, double);
4164 break;
4165 default:
4166 break;
4167 }
4168 }
4169 va_end (args_copy);
4170 va_end (args);
4171 }
4172
4173 int
4174 main ()
4175 {
4176
4177 // Check bool.
4178 _Bool success = false;
4179
4180 // Check restrict.
4181 if (test_restrict ("String literal") == 0)
4182 success = true;
4183 char *restrict newvar = "Another string";
4184
4185 // Check varargs.
4186 test_varargs ("s, d' f .", "string", 65, 34.234);
4187 test_varargs_macros ();
4188
4189 // Check flexible array members.
4190 struct incomplete_array *ia =
4191 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4192 ia->datasize = 10;
4193 for (int i = 0; i < ia->datasize; ++i)
4194 ia->data[i] = i * 1.234;
4195
4196 // Check named initializers.
4197 struct named_init ni = {
4198 .number = 34,
4199 .name = L"Test wide string",
4200 .average = 543.34343,
4201 };
4202
4203 ni.number = 58;
4204
4205 int dynamic_array[ni.number];
4206 dynamic_array[ni.number - 1] = 543;
4207
4208 // work around unused variable warnings
4209 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4210 || dynamic_array[ni.number - 1] != 543);
4211
4212 ;
4213 return 0;
4214 }
4215 _ACEOF
4216 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
4217 do
4218 CC="$ac_save_CC $ac_arg"
4219 if ac_fn_c_try_compile "$LINENO"; then :
4220 ac_cv_prog_cc_c99=$ac_arg
4221 fi
4222 rm -f core conftest.err conftest.$ac_objext
4223 test "x$ac_cv_prog_cc_c99" != "xno" && break
4224 done
4225 rm -f conftest.$ac_ext
4226 CC=$ac_save_CC
4227
4228 fi
4229 # AC_CACHE_VAL
4230 case "x$ac_cv_prog_cc_c99" in
4231 x)
4232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4233 $as_echo "none needed" >&6; } ;;
4234 xno)
4235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4236 $as_echo "unsupported" >&6; } ;;
4237 *)
4238 CC="$CC $ac_cv_prog_cc_c99"
4239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4240 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4241 esac
4242 if test "x$ac_cv_prog_cc_c99" != xno; then :
4243
4244 fi
4245
4246
4247 if test "$ac_cv_prog_cc_c99" = "no"; then :
4248 as_fn_error $? "no suitable C99 compiler found. Aborting." "$LINENO" 5
4249 fi
4250 for ac_prog in 'bison -y' byacc
4251 do
4252 # Extract the first word of "$ac_prog", so it can be a program name with args.
4253 set dummy $ac_prog; ac_word=$2
4254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4255 $as_echo_n "checking for $ac_word... " >&6; }
4256 if ${ac_cv_prog_YACC+:} false; then :
4257 $as_echo_n "(cached) " >&6
4258 else
4259 if test -n "$YACC"; then
4260 ac_cv_prog_YACC="$YACC" # Let the user override the test.
4261 else
4262 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4263 for as_dir in $PATH
4264 do
4265 IFS=$as_save_IFS
4266 test -z "$as_dir" && as_dir=.
4267 for ac_exec_ext in '' $ac_executable_extensions; do
4268 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4269 ac_cv_prog_YACC="$ac_prog"
4270 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4271 break 2
4272 fi
4273 done
4274 done
4275 IFS=$as_save_IFS
4276
4277 fi
4278 fi
4279 YACC=$ac_cv_prog_YACC
4280 if test -n "$YACC"; then
4281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
4282 $as_echo "$YACC" >&6; }
4283 else
4284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4285 $as_echo "no" >&6; }
4286 fi
4287
4288
4289 test -n "$YACC" && break
4290 done
4291 test -n "$YACC" || YACC="yacc"
4292
4293
4294 for ac_prog in flex lex
4295 do
4296 # Extract the first word of "$ac_prog", so it can be a program name with args.
4297 set dummy $ac_prog; ac_word=$2
4298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4299 $as_echo_n "checking for $ac_word... " >&6; }
4300 if ${ac_cv_prog_LEX+:} false; then :
4301 $as_echo_n "(cached) " >&6
4302 else
4303 if test -n "$LEX"; then
4304 ac_cv_prog_LEX="$LEX" # Let the user override the test.
4305 else
4306 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4307 for as_dir in $PATH
4308 do
4309 IFS=$as_save_IFS
4310 test -z "$as_dir" && as_dir=.
4311 for ac_exec_ext in '' $ac_executable_extensions; do
4312 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4313 ac_cv_prog_LEX="$ac_prog"
4314 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4315 break 2
4316 fi
4317 done
4318 done
4319 IFS=$as_save_IFS
4320
4321 fi
4322 fi
4323 LEX=$ac_cv_prog_LEX
4324 if test -n "$LEX"; then
4325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
4326 $as_echo "$LEX" >&6; }
4327 else
4328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4329 $as_echo "no" >&6; }
4330 fi
4331
4332
4333 test -n "$LEX" && break
4334 done
4335 test -n "$LEX" || LEX=":"
4336
4337 if test "x$LEX" != "x:"; then
4338 cat >conftest.l <<_ACEOF
4339 %%
4340 a { ECHO; }
4341 b { REJECT; }
4342 c { yymore (); }
4343 d { yyless (1); }
4344 e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument. */
4345 yyless ((input () != 0)); }
4346 f { unput (yytext[0]); }
4347 . { BEGIN INITIAL; }
4348 %%
4349 #ifdef YYTEXT_POINTER
4350 extern char *yytext;
4351 #endif
4352 int
4353 main (void)
4354 {
4355 return ! yylex () + ! yywrap ();
4356 }
4357 _ACEOF
4358 { { ac_try="$LEX conftest.l"
4359 case "(($ac_try" in
4360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4361 *) ac_try_echo=$ac_try;;
4362 esac
4363 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4364 $as_echo "$ac_try_echo"; } >&5
4365 (eval "$LEX conftest.l") 2>&5
4366 ac_status=$?
4367 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4368 test $ac_status = 0; }
4369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
4370 $as_echo_n "checking lex output file root... " >&6; }
4371 if ${ac_cv_prog_lex_root+:} false; then :
4372 $as_echo_n "(cached) " >&6
4373 else
4374
4375 if test -f lex.yy.c; then
4376 ac_cv_prog_lex_root=lex.yy
4377 elif test -f lexyy.c; then
4378 ac_cv_prog_lex_root=lexyy
4379 else
4380 as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5
4381 fi
4382 fi
4383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
4384 $as_echo "$ac_cv_prog_lex_root" >&6; }
4385 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
4386
4387 if test -z "${LEXLIB+set}"; then
4388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
4389 $as_echo_n "checking lex library... " >&6; }
4390 if ${ac_cv_lib_lex+:} false; then :
4391 $as_echo_n "(cached) " >&6
4392 else
4393
4394 ac_save_LIBS=$LIBS
4395 ac_cv_lib_lex='none needed'
4396 for ac_lib in '' -lfl -ll; do
4397 LIBS="$ac_lib $ac_save_LIBS"
4398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4399 /* end confdefs.h. */
4400 `cat $LEX_OUTPUT_ROOT.c`
4401 _ACEOF
4402 if ac_fn_c_try_link "$LINENO"; then :
4403 ac_cv_lib_lex=$ac_lib
4404 fi
4405 rm -f core conftest.err conftest.$ac_objext \
4406 conftest$ac_exeext conftest.$ac_ext
4407 test "$ac_cv_lib_lex" != 'none needed' && break
4408 done
4409 LIBS=$ac_save_LIBS
4410
4411 fi
4412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
4413 $as_echo "$ac_cv_lib_lex" >&6; }
4414 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
4415 fi
4416
4417
4418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
4419 $as_echo_n "checking whether yytext is a pointer... " >&6; }
4420 if ${ac_cv_prog_lex_yytext_pointer+:} false; then :
4421 $as_echo_n "(cached) " >&6
4422 else
4423 # POSIX says lex can declare yytext either as a pointer or an array; the
4424 # default is implementation-dependent. Figure out which it is, since
4425 # not all implementations provide the %pointer and %array declarations.
4426 ac_cv_prog_lex_yytext_pointer=no
4427 ac_save_LIBS=$LIBS
4428 LIBS="$LEXLIB $ac_save_LIBS"
4429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4430 /* end confdefs.h. */
4431
4432 #define YYTEXT_POINTER 1
4433 `cat $LEX_OUTPUT_ROOT.c`
4434 _ACEOF
4435 if ac_fn_c_try_link "$LINENO"; then :
4436 ac_cv_prog_lex_yytext_pointer=yes
4437 fi
4438 rm -f core conftest.err conftest.$ac_objext \
4439 conftest$ac_exeext conftest.$ac_ext
4440 LIBS=$ac_save_LIBS
4441
4442 fi
4443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
4444 $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
4445 if test $ac_cv_prog_lex_yytext_pointer = yes; then
4446
4447 $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
4448
4449 fi
4450 rm -f conftest.l $LEX_OUTPUT_ROOT.c
4451
4452 fi
4453 if test "$LEX" = :; then
4454 LEX=${am_missing_run}flex
4455 fi
4456
4457
4458 # Initializing libtool.
4459
4460
4461
4462
4463
4464
4465
4466 case `pwd` in
4467 *\ * | *\ *)
4468 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4469 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4470 esac
4471
4472
4473
4474 macro_version='2.4.2'
4475 macro_revision='1.3337'
4476
4477
4478
4479
4480
4481
4482
4483
4484
4485
4486
4487
4488
4489 ltmain="$ac_aux_dir/ltmain.sh"
4490
4491 # Make sure we can run config.sub.
4492 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4493 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4494
4495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4496 $as_echo_n "checking build system type... " >&6; }
4497 if ${ac_cv_build+:} false; then :
4498 $as_echo_n "(cached) " >&6
4499 else
4500 ac_build_alias=$build_alias
4501 test "x$ac_build_alias" = x &&
4502 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4503 test "x$ac_build_alias" = x &&
4504 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4505 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4506 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4507
4508 fi
4509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4510 $as_echo "$ac_cv_build" >&6; }
4511 case $ac_cv_build in
4512 *-*-*) ;;
4513 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4514 esac
4515 build=$ac_cv_build
4516 ac_save_IFS=$IFS; IFS='-'
4517 set x $ac_cv_build
4518 shift
4519 build_cpu=$1
4520 build_vendor=$2
4521 shift; shift
4522 # Remember, the first character of IFS is used to create $*,
4523 # except with old shells:
4524 build_os=$*
4525 IFS=$ac_save_IFS
4526 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4527
4528
4529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4530 $as_echo_n "checking host system type... " >&6; }
4531 if ${ac_cv_host+:} false; then :
4532 $as_echo_n "(cached) " >&6
4533 else
4534 if test "x$host_alias" = x; then
4535 ac_cv_host=$ac_cv_build
4536 else
4537 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4538 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4539 fi
4540
4541 fi
4542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4543 $as_echo "$ac_cv_host" >&6; }
4544 case $ac_cv_host in
4545 *-*-*) ;;
4546 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4547 esac
4548 host=$ac_cv_host
4549 ac_save_IFS=$IFS; IFS='-'
4550 set x $ac_cv_host
4551 shift
4552 host_cpu=$1
4553 host_vendor=$2
4554 shift; shift
4555 # Remember, the first character of IFS is used to create $*,
4556 # except with old shells:
4557 host_os=$*
4558 IFS=$ac_save_IFS
4559 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4560
4561
4562 # Backslashify metacharacters that are still active within
4563 # double-quoted strings.
4564 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4565
4566 # Same as above, but do not quote variable references.
4567 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4568
4569 # Sed substitution to delay expansion of an escaped shell variable in a
4570 # double_quote_subst'ed string.
4571 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4572
4573 # Sed substitution to delay expansion of an escaped single quote.
4574 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4575
4576 # Sed substitution to avoid accidental globbing in evaled expressions
4577 no_glob_subst='s/\*/\\\*/g'
4578
4579 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4580 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4581 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4582
4583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4584 $as_echo_n "checking how to print strings... " >&6; }
4585 # Test print first, because it will be a builtin if present.
4586 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4587 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4588 ECHO='print -r --'
4589 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4590 ECHO='printf %s\n'
4591 else
4592 # Use this function as a fallback that always works.
4593 func_fallback_echo ()
4594 {
4595 eval 'cat <<_LTECHO_EOF
4596 $1
4597 _LTECHO_EOF'
4598 }
4599 ECHO='func_fallback_echo'
4600 fi
4601
4602 # func_echo_all arg...
4603 # Invoke $ECHO with all args, space-separated.
4604 func_echo_all ()
4605 {
4606 $ECHO ""
4607 }
4608
4609 case "$ECHO" in
4610 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4611 $as_echo "printf" >&6; } ;;
4612 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4613 $as_echo "print -r" >&6; } ;;
4614 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4615 $as_echo "cat" >&6; } ;;
4616 esac
4617
4618
4619
4620
4621
4622
4623
4624
4625
4626
4627
4628
4629
4630
4631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4632 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4633 if ${ac_cv_path_SED+:} false; then :
4634 $as_echo_n "(cached) " >&6
4635 else
4636 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4637 for ac_i in 1 2 3 4 5 6 7; do
4638 ac_script="$ac_script$as_nl$ac_script"
4639 done
4640 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4641 { ac_script=; unset ac_script;}
4642 if test -z "$SED"; then
4643 ac_path_SED_found=false
4644 # Loop through the user's path and test for each of PROGNAME-LIST
4645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4646 for as_dir in $PATH
4647 do
4648 IFS=$as_save_IFS
4649 test -z "$as_dir" && as_dir=.
4650 for ac_prog in sed gsed; do
4651 for ac_exec_ext in '' $ac_executable_extensions; do
4652 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4653 as_fn_executable_p "$ac_path_SED" || continue
4654 # Check for GNU ac_path_SED and select it if it is found.
4655 # Check for GNU $ac_path_SED
4656 case `"$ac_path_SED" --version 2>&1` in
4657 *GNU*)
4658 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4659 *)
4660 ac_count=0
4661 $as_echo_n 0123456789 >"conftest.in"
4662 while :
4663 do
4664 cat "conftest.in" "conftest.in" >"conftest.tmp"
4665 mv "conftest.tmp" "conftest.in"
4666 cp "conftest.in" "conftest.nl"
4667 $as_echo '' >> "conftest.nl"
4668 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4669 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4670 as_fn_arith $ac_count + 1 && ac_count=$as_val
4671 if test $ac_count -gt ${ac_path_SED_max-0}; then
4672 # Best one so far, save it but keep looking for a better one
4673 ac_cv_path_SED="$ac_path_SED"
4674 ac_path_SED_max=$ac_count
4675 fi
4676 # 10*(2^10) chars as input seems more than enough
4677 test $ac_count -gt 10 && break
4678 done
4679 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4680 esac
4681
4682 $ac_path_SED_found && break 3
4683 done
4684 done
4685 done
4686 IFS=$as_save_IFS
4687 if test -z "$ac_cv_path_SED"; then
4688 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4689 fi
4690 else
4691 ac_cv_path_SED=$SED
4692 fi
4693
4694 fi
4695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4696 $as_echo "$ac_cv_path_SED" >&6; }
4697 SED="$ac_cv_path_SED"
4698 rm -f conftest.sed
4699
4700 test -z "$SED" && SED=sed
4701 Xsed="$SED -e 1s/^X//"
4702
4703
4704
4705
4706
4707
4708
4709
4710
4711
4712
4713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4714 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4715 if ${ac_cv_path_GREP+:} false; then :
4716 $as_echo_n "(cached) " >&6
4717 else
4718 if test -z "$GREP"; then
4719 ac_path_GREP_found=false
4720 # Loop through the user's path and test for each of PROGNAME-LIST
4721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4722 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4723 do
4724 IFS=$as_save_IFS
4725 test -z "$as_dir" && as_dir=.
4726 for ac_prog in grep ggrep; do
4727 for ac_exec_ext in '' $ac_executable_extensions; do
4728 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4729 as_fn_executable_p "$ac_path_GREP" || continue
4730 # Check for GNU ac_path_GREP and select it if it is found.
4731 # Check for GNU $ac_path_GREP
4732 case `"$ac_path_GREP" --version 2>&1` in
4733 *GNU*)
4734 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4735 *)
4736 ac_count=0
4737 $as_echo_n 0123456789 >"conftest.in"
4738 while :
4739 do
4740 cat "conftest.in" "conftest.in" >"conftest.tmp"
4741 mv "conftest.tmp" "conftest.in"
4742 cp "conftest.in" "conftest.nl"
4743 $as_echo 'GREP' >> "conftest.nl"
4744 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4745 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4746 as_fn_arith $ac_count + 1 && ac_count=$as_val
4747 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4748 # Best one so far, save it but keep looking for a better one
4749 ac_cv_path_GREP="$ac_path_GREP"
4750 ac_path_GREP_max=$ac_count
4751 fi
4752 # 10*(2^10) chars as input seems more than enough
4753 test $ac_count -gt 10 && break
4754 done
4755 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4756 esac
4757
4758 $ac_path_GREP_found && break 3
4759 done
4760 done
4761 done
4762 IFS=$as_save_IFS
4763 if test -z "$ac_cv_path_GREP"; then
4764 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4765 fi
4766 else
4767 ac_cv_path_GREP=$GREP
4768 fi
4769
4770 fi
4771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4772 $as_echo "$ac_cv_path_GREP" >&6; }
4773 GREP="$ac_cv_path_GREP"
4774
4775
4776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4777 $as_echo_n "checking for egrep... " >&6; }
4778 if ${ac_cv_path_EGREP+:} false; then :
4779 $as_echo_n "(cached) " >&6
4780 else
4781 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4782 then ac_cv_path_EGREP="$GREP -E"
4783 else
4784 if test -z "$EGREP"; then
4785 ac_path_EGREP_found=false
4786 # Loop through the user's path and test for each of PROGNAME-LIST
4787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4788 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4789 do
4790 IFS=$as_save_IFS
4791 test -z "$as_dir" && as_dir=.
4792 for ac_prog in egrep; do
4793 for ac_exec_ext in '' $ac_executable_extensions; do
4794 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4795 as_fn_executable_p "$ac_path_EGREP" || continue
4796 # Check for GNU ac_path_EGREP and select it if it is found.
4797 # Check for GNU $ac_path_EGREP
4798 case `"$ac_path_EGREP" --version 2>&1` in
4799 *GNU*)
4800 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4801 *)
4802 ac_count=0
4803 $as_echo_n 0123456789 >"conftest.in"
4804 while :
4805 do
4806 cat "conftest.in" "conftest.in" >"conftest.tmp"
4807 mv "conftest.tmp" "conftest.in"
4808 cp "conftest.in" "conftest.nl"
4809 $as_echo 'EGREP' >> "conftest.nl"
4810 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4811 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4812 as_fn_arith $ac_count + 1 && ac_count=$as_val
4813 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4814 # Best one so far, save it but keep looking for a better one
4815 ac_cv_path_EGREP="$ac_path_EGREP"
4816 ac_path_EGREP_max=$ac_count
4817 fi
4818 # 10*(2^10) chars as input seems more than enough
4819 test $ac_count -gt 10 && break
4820 done
4821 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4822 esac
4823
4824 $ac_path_EGREP_found && break 3
4825 done
4826 done
4827 done
4828 IFS=$as_save_IFS
4829 if test -z "$ac_cv_path_EGREP"; then
4830 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4831 fi
4832 else
4833 ac_cv_path_EGREP=$EGREP
4834 fi
4835
4836 fi
4837 fi
4838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4839 $as_echo "$ac_cv_path_EGREP" >&6; }
4840 EGREP="$ac_cv_path_EGREP"
4841
4842
4843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4844 $as_echo_n "checking for fgrep... " >&6; }
4845 if ${ac_cv_path_FGREP+:} false; then :
4846 $as_echo_n "(cached) " >&6
4847 else
4848 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4849 then ac_cv_path_FGREP="$GREP -F"
4850 else
4851 if test -z "$FGREP"; then
4852 ac_path_FGREP_found=false
4853 # Loop through the user's path and test for each of PROGNAME-LIST
4854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4855 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4856 do
4857 IFS=$as_save_IFS
4858 test -z "$as_dir" && as_dir=.
4859 for ac_prog in fgrep; do
4860 for ac_exec_ext in '' $ac_executable_extensions; do
4861 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4862 as_fn_executable_p "$ac_path_FGREP" || continue
4863 # Check for GNU ac_path_FGREP and select it if it is found.
4864 # Check for GNU $ac_path_FGREP
4865 case `"$ac_path_FGREP" --version 2>&1` in
4866 *GNU*)
4867 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4868 *)
4869 ac_count=0
4870 $as_echo_n 0123456789 >"conftest.in"
4871 while :
4872 do
4873 cat "conftest.in" "conftest.in" >"conftest.tmp"
4874 mv "conftest.tmp" "conftest.in"
4875 cp "conftest.in" "conftest.nl"
4876 $as_echo 'FGREP' >> "conftest.nl"
4877 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4878 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4879 as_fn_arith $ac_count + 1 && ac_count=$as_val
4880 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4881 # Best one so far, save it but keep looking for a better one
4882 ac_cv_path_FGREP="$ac_path_FGREP"
4883 ac_path_FGREP_max=$ac_count
4884 fi
4885 # 10*(2^10) chars as input seems more than enough
4886 test $ac_count -gt 10 && break
4887 done
4888 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4889 esac
4890
4891 $ac_path_FGREP_found && break 3
4892 done
4893 done
4894 done
4895 IFS=$as_save_IFS
4896 if test -z "$ac_cv_path_FGREP"; then
4897 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4898 fi
4899 else
4900 ac_cv_path_FGREP=$FGREP
4901 fi
4902
4903 fi
4904 fi
4905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4906 $as_echo "$ac_cv_path_FGREP" >&6; }
4907 FGREP="$ac_cv_path_FGREP"
4908
4909
4910 test -z "$GREP" && GREP=grep
4911
4912
4913
4914
4915
4916
4917
4918
4919
4920
4921
4922
4923
4924
4925
4926
4927
4928
4929
4930 # Check whether --with-gnu-ld was given.
4931 if test "${with_gnu_ld+set}" = set; then :
4932 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4933 else
4934 with_gnu_ld=no
4935 fi
4936
4937 ac_prog=ld
4938 if test "$GCC" = yes; then
4939 # Check if gcc -print-prog-name=ld gives a path.
4940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4941 $as_echo_n "checking for ld used by $CC... " >&6; }
4942 case $host in
4943 *-*-mingw*)
4944 # gcc leaves a trailing carriage return which upsets mingw
4945 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4946 *)
4947 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4948 esac
4949 case $ac_prog in
4950 # Accept absolute paths.
4951 [\\/]* | ?:[\\/]*)
4952 re_direlt='/[^/][^/]*/\.\./'
4953 # Canonicalize the pathname of ld
4954 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4955 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4956 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4957 done
4958 test -z "$LD" && LD="$ac_prog"
4959 ;;
4960 "")
4961 # If it fails, then pretend we aren't using GCC.
4962 ac_prog=ld
4963 ;;
4964 *)
4965 # If it is relative, then search for the first ld in PATH.
4966 with_gnu_ld=unknown
4967 ;;
4968 esac
4969 elif test "$with_gnu_ld" = yes; then
4970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4971 $as_echo_n "checking for GNU ld... " >&6; }
4972 else
4973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4974 $as_echo_n "checking for non-GNU ld... " >&6; }
4975 fi
4976 if ${lt_cv_path_LD+:} false; then :
4977 $as_echo_n "(cached) " >&6
4978 else
4979 if test -z "$LD"; then
4980 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4981 for ac_dir in $PATH; do
4982 IFS="$lt_save_ifs"
4983 test -z "$ac_dir" && ac_dir=.
4984 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4985 lt_cv_path_LD="$ac_dir/$ac_prog"
4986 # Check to see if the program is GNU ld. I'd rather use --version,
4987 # but apparently some variants of GNU ld only accept -v.
4988 # Break only if it was the GNU/non-GNU ld that we prefer.
4989 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4990 *GNU* | *'with BFD'*)
4991 test "$with_gnu_ld" != no && break
4992 ;;
4993 *)
4994 test "$with_gnu_ld" != yes && break
4995 ;;
4996 esac
4997 fi
4998 done
4999 IFS="$lt_save_ifs"
5000 else
5001 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5002 fi
5003 fi
5004
5005 LD="$lt_cv_path_LD"
5006 if test -n "$LD"; then
5007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5008 $as_echo "$LD" >&6; }
5009 else
5010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5011 $as_echo "no" >&6; }
5012 fi
5013 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5015 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5016 if ${lt_cv_prog_gnu_ld+:} false; then :
5017 $as_echo_n "(cached) " >&6
5018 else
5019 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5020 case `$LD -v 2>&1 </dev/null` in
5021 *GNU* | *'with BFD'*)
5022 lt_cv_prog_gnu_ld=yes
5023 ;;
5024 *)
5025 lt_cv_prog_gnu_ld=no
5026 ;;
5027 esac
5028 fi
5029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5030 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5031 with_gnu_ld=$lt_cv_prog_gnu_ld
5032
5033
5034
5035
5036
5037
5038
5039
5040
5041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5042 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5043 if ${lt_cv_path_NM+:} false; then :
5044 $as_echo_n "(cached) " >&6
5045 else
5046 if test -n "$NM"; then
5047 # Let the user override the test.
5048 lt_cv_path_NM="$NM"
5049 else
5050 lt_nm_to_check="${ac_tool_prefix}nm"
5051 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5052 lt_nm_to_check="$lt_nm_to_check nm"
5053 fi
5054 for lt_tmp_nm in $lt_nm_to_check; do
5055 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5056 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5057 IFS="$lt_save_ifs"
5058 test -z "$ac_dir" && ac_dir=.
5059 tmp_nm="$ac_dir/$lt_tmp_nm"
5060 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5061 # Check to see if the nm accepts a BSD-compat flag.
5062 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5063 # nm: unknown option "B" ignored
5064 # Tru64's nm complains that /dev/null is an invalid object file
5065 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5066 */dev/null* | *'Invalid file or object type'*)
5067 lt_cv_path_NM="$tmp_nm -B"
5068 break
5069 ;;
5070 *)
5071 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5072 */dev/null*)
5073 lt_cv_path_NM="$tmp_nm -p"
5074 break
5075 ;;
5076 *)
5077 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5078 continue # so that we can try to find one that supports BSD flags
5079 ;;
5080 esac
5081 ;;
5082 esac
5083 fi
5084 done
5085 IFS="$lt_save_ifs"
5086 done
5087 : ${lt_cv_path_NM=no}
5088 fi
5089 fi
5090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5091 $as_echo "$lt_cv_path_NM" >&6; }
5092 if test "$lt_cv_path_NM" != "no"; then
5093 NM="$lt_cv_path_NM"
5094 else
5095 # Didn't find any BSD compatible name lister, look for dumpbin.
5096 if test -n "$DUMPBIN"; then :
5097 # Let the user override the test.
5098 else
5099 if test -n "$ac_tool_prefix"; then
5100 for ac_prog in dumpbin "link -dump"
5101 do
5102 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5103 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5105 $as_echo_n "checking for $ac_word... " >&6; }
5106 if ${ac_cv_prog_DUMPBIN+:} false; then :
5107 $as_echo_n "(cached) " >&6
5108 else
5109 if test -n "$DUMPBIN"; then
5110 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5111 else
5112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5113 for as_dir in $PATH
5114 do
5115 IFS=$as_save_IFS
5116 test -z "$as_dir" && as_dir=.
5117 for ac_exec_ext in '' $ac_executable_extensions; do
5118 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5119 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5120 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5121 break 2
5122 fi
5123 done
5124 done
5125 IFS=$as_save_IFS
5126
5127 fi
5128 fi
5129 DUMPBIN=$ac_cv_prog_DUMPBIN
5130 if test -n "$DUMPBIN"; then
5131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5132 $as_echo "$DUMPBIN" >&6; }
5133 else
5134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5135 $as_echo "no" >&6; }
5136 fi
5137
5138
5139 test -n "$DUMPBIN" && break
5140 done
5141 fi
5142 if test -z "$DUMPBIN"; then
5143 ac_ct_DUMPBIN=$DUMPBIN
5144 for ac_prog in dumpbin "link -dump"
5145 do
5146 # Extract the first word of "$ac_prog", so it can be a program name with args.
5147 set dummy $ac_prog; ac_word=$2
5148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5149 $as_echo_n "checking for $ac_word... " >&6; }
5150 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5151 $as_echo_n "(cached) " >&6
5152 else
5153 if test -n "$ac_ct_DUMPBIN"; then
5154 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5155 else
5156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5157 for as_dir in $PATH
5158 do
5159 IFS=$as_save_IFS
5160 test -z "$as_dir" && as_dir=.
5161 for ac_exec_ext in '' $ac_executable_extensions; do
5162 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5163 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5164 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5165 break 2
5166 fi
5167 done
5168 done
5169 IFS=$as_save_IFS
5170
5171 fi
5172 fi
5173 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5174 if test -n "$ac_ct_DUMPBIN"; then
5175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5176 $as_echo "$ac_ct_DUMPBIN" >&6; }
5177 else
5178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5179 $as_echo "no" >&6; }
5180 fi
5181
5182
5183 test -n "$ac_ct_DUMPBIN" && break
5184 done
5185
5186 if test "x$ac_ct_DUMPBIN" = x; then
5187 DUMPBIN=":"
5188 else
5189 case $cross_compiling:$ac_tool_warned in
5190 yes:)
5191 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5192 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5193 ac_tool_warned=yes ;;
5194 esac
5195 DUMPBIN=$ac_ct_DUMPBIN
5196 fi
5197 fi
5198
5199 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5200 *COFF*)
5201 DUMPBIN="$DUMPBIN -symbols"
5202 ;;
5203 *)
5204 DUMPBIN=:
5205 ;;
5206 esac
5207 fi
5208
5209 if test "$DUMPBIN" != ":"; then
5210 NM="$DUMPBIN"
5211 fi
5212 fi
5213 test -z "$NM" && NM=nm
5214
5215
5216
5217
5218
5219
5220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5221 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5222 if ${lt_cv_nm_interface+:} false; then :
5223 $as_echo_n "(cached) " >&6
5224 else
5225 lt_cv_nm_interface="BSD nm"
5226 echo "int some_variable = 0;" > conftest.$ac_ext
5227 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5228 (eval "$ac_compile" 2>conftest.err)
5229 cat conftest.err >&5
5230 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5231 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5232 cat conftest.err >&5
5233 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5234 cat conftest.out >&5
5235 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5236 lt_cv_nm_interface="MS dumpbin"
5237 fi
5238 rm -f conftest*
5239 fi
5240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5241 $as_echo "$lt_cv_nm_interface" >&6; }
5242
5243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5244 $as_echo_n "checking whether ln -s works... " >&6; }
5245 LN_S=$as_ln_s
5246 if test "$LN_S" = "ln -s"; then
5247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5248 $as_echo "yes" >&6; }
5249 else
5250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5251 $as_echo "no, using $LN_S" >&6; }
5252 fi
5253
5254 # find the maximum length of command line arguments
5255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5256 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5257 if ${lt_cv_sys_max_cmd_len+:} false; then :
5258 $as_echo_n "(cached) " >&6
5259 else
5260 i=0
5261 teststring="ABCD"
5262
5263 case $build_os in
5264 msdosdjgpp*)
5265 # On DJGPP, this test can blow up pretty badly due to problems in libc
5266 # (any single argument exceeding 2000 bytes causes a buffer overrun
5267 # during glob expansion). Even if it were fixed, the result of this
5268 # check would be larger than it should be.
5269 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5270 ;;
5271
5272 gnu*)
5273 # Under GNU Hurd, this test is not required because there is
5274 # no limit to the length of command line arguments.
5275 # Libtool will interpret -1 as no limit whatsoever
5276 lt_cv_sys_max_cmd_len=-1;
5277 ;;
5278
5279 cygwin* | mingw* | cegcc*)
5280 # On Win9x/ME, this test blows up -- it succeeds, but takes
5281 # about 5 minutes as the teststring grows exponentially.
5282 # Worse, since 9x/ME are not pre-emptively multitasking,
5283 # you end up with a "frozen" computer, even though with patience
5284 # the test eventually succeeds (with a max line length of 256k).
5285 # Instead, let's just punt: use the minimum linelength reported by
5286 # all of the supported platforms: 8192 (on NT/2K/XP).
5287 lt_cv_sys_max_cmd_len=8192;
5288 ;;
5289
5290 mint*)
5291 # On MiNT this can take a long time and run out of memory.
5292 lt_cv_sys_max_cmd_len=8192;
5293 ;;
5294
5295 amigaos*)
5296 # On AmigaOS with pdksh, this test takes hours, literally.
5297 # So we just punt and use a minimum line length of 8192.
5298 lt_cv_sys_max_cmd_len=8192;
5299 ;;
5300
5301 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5302 # This has been around since 386BSD, at least. Likely further.
5303 if test -x /sbin/sysctl; then
5304 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5305 elif test -x /usr/sbin/sysctl; then
5306 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5307 else
5308 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5309 fi
5310 # And add a safety zone
5311 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5312 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5313 ;;
5314
5315 interix*)
5316 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5317 lt_cv_sys_max_cmd_len=196608
5318 ;;
5319
5320 os2*)
5321 # The test takes a long time on OS/2.
5322 lt_cv_sys_max_cmd_len=8192
5323 ;;
5324
5325 osf*)
5326 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5327 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5328 # nice to cause kernel panics so lets avoid the loop below.
5329 # First set a reasonable default.
5330 lt_cv_sys_max_cmd_len=16384
5331 #
5332 if test -x /sbin/sysconfig; then
5333 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5334 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5335 esac
5336 fi
5337 ;;
5338 sco3.2v5*)
5339 lt_cv_sys_max_cmd_len=102400
5340 ;;
5341 sysv5* | sco5v6* | sysv4.2uw2*)
5342 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5343 if test -n "$kargmax"; then
5344 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5345 else
5346 lt_cv_sys_max_cmd_len=32768
5347 fi
5348 ;;
5349 *)
5350 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5351 if test -n "$lt_cv_sys_max_cmd_len"; then
5352 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5353 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5354 else
5355 # Make teststring a little bigger before we do anything with it.
5356 # a 1K string should be a reasonable start.
5357 for i in 1 2 3 4 5 6 7 8 ; do
5358 teststring=$teststring$teststring
5359 done
5360 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5361 # If test is not a shell built-in, we'll probably end up computing a
5362 # maximum length that is only half of the actual maximum length, but
5363 # we can't tell.
5364 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5365 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5366 test $i != 17 # 1/2 MB should be enough
5367 do
5368 i=`expr $i + 1`
5369 teststring=$teststring$teststring
5370 done
5371 # Only check the string length outside the loop.
5372 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5373 teststring=
5374 # Add a significant safety factor because C++ compilers can tack on
5375 # massive amounts of additional arguments before passing them to the
5376 # linker. It appears as though 1/2 is a usable value.
5377 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5378 fi
5379 ;;
5380 esac
5381
5382 fi
5383
5384 if test -n $lt_cv_sys_max_cmd_len ; then
5385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5386 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5387 else
5388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5389 $as_echo "none" >&6; }
5390 fi
5391 max_cmd_len=$lt_cv_sys_max_cmd_len
5392
5393
5394
5395
5396
5397
5398 : ${CP="cp -f"}
5399 : ${MV="mv -f"}
5400 : ${RM="rm -f"}
5401
5402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5403 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5404 # Try some XSI features
5405 xsi_shell=no
5406 ( _lt_dummy="a/b/c"
5407 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5408 = c,a/b,b/c, \
5409 && eval 'test $(( 1 + 1 )) -eq 2 \
5410 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5411 && xsi_shell=yes
5412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5413 $as_echo "$xsi_shell" >&6; }
5414
5415
5416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5417 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5418 lt_shell_append=no
5419 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5420 >/dev/null 2>&1 \
5421 && lt_shell_append=yes
5422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5423 $as_echo "$lt_shell_append" >&6; }
5424
5425
5426 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5427 lt_unset=unset
5428 else
5429 lt_unset=false
5430 fi
5431
5432
5433
5434
5435
5436 # test EBCDIC or ASCII
5437 case `echo X|tr X '\101'` in
5438 A) # ASCII based system
5439 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5440 lt_SP2NL='tr \040 \012'
5441 lt_NL2SP='tr \015\012 \040\040'
5442 ;;
5443 *) # EBCDIC based system
5444 lt_SP2NL='tr \100 \n'
5445 lt_NL2SP='tr \r\n \100\100'
5446 ;;
5447 esac
5448
5449
5450
5451
5452
5453
5454
5455
5456
5457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5458 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5459 if ${lt_cv_to_host_file_cmd+:} false; then :
5460 $as_echo_n "(cached) " >&6
5461 else
5462 case $host in
5463 *-*-mingw* )
5464 case $build in
5465 *-*-mingw* ) # actually msys
5466 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5467 ;;
5468 *-*-cygwin* )
5469 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5470 ;;
5471 * ) # otherwise, assume *nix
5472 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5473 ;;
5474 esac
5475 ;;
5476 *-*-cygwin* )
5477 case $build in
5478 *-*-mingw* ) # actually msys
5479 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5480 ;;
5481 *-*-cygwin* )
5482 lt_cv_to_host_file_cmd=func_convert_file_noop
5483 ;;
5484 * ) # otherwise, assume *nix
5485 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5486 ;;
5487 esac
5488 ;;
5489 * ) # unhandled hosts (and "normal" native builds)
5490 lt_cv_to_host_file_cmd=func_convert_file_noop
5491 ;;
5492 esac
5493
5494 fi
5495
5496 to_host_file_cmd=$lt_cv_to_host_file_cmd
5497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5498 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5499
5500
5501
5502
5503
5504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5505 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5506 if ${lt_cv_to_tool_file_cmd+:} false; then :
5507 $as_echo_n "(cached) " >&6
5508 else
5509 #assume ordinary cross tools, or native build.
5510 lt_cv_to_tool_file_cmd=func_convert_file_noop
5511 case $host in
5512 *-*-mingw* )
5513 case $build in
5514 *-*-mingw* ) # actually msys
5515 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5516 ;;
5517 esac
5518 ;;
5519 esac
5520
5521 fi
5522
5523 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5525 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5526
5527
5528
5529
5530
5531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5532 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5533 if ${lt_cv_ld_reload_flag+:} false; then :
5534 $as_echo_n "(cached) " >&6
5535 else
5536 lt_cv_ld_reload_flag='-r'
5537 fi
5538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5539 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5540 reload_flag=$lt_cv_ld_reload_flag
5541 case $reload_flag in
5542 "" | " "*) ;;
5543 *) reload_flag=" $reload_flag" ;;
5544 esac
5545 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5546 case $host_os in
5547 cygwin* | mingw* | pw32* | cegcc*)
5548 if test "$GCC" != yes; then
5549 reload_cmds=false
5550 fi
5551 ;;
5552 darwin*)
5553 if test "$GCC" = yes; then
5554 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5555 else
5556 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5557 fi
5558 ;;
5559 esac
5560
5561
5562
5563
5564
5565
5566
5567
5568
5569 if test -n "$ac_tool_prefix"; then
5570 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5571 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5573 $as_echo_n "checking for $ac_word... " >&6; }
5574 if ${ac_cv_prog_OBJDUMP+:} false; then :
5575 $as_echo_n "(cached) " >&6
5576 else
5577 if test -n "$OBJDUMP"; then
5578 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5579 else
5580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5581 for as_dir in $PATH
5582 do
5583 IFS=$as_save_IFS
5584 test -z "$as_dir" && as_dir=.
5585 for ac_exec_ext in '' $ac_executable_extensions; do
5586 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5587 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5588 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5589 break 2
5590 fi
5591 done
5592 done
5593 IFS=$as_save_IFS
5594
5595 fi
5596 fi
5597 OBJDUMP=$ac_cv_prog_OBJDUMP
5598 if test -n "$OBJDUMP"; then
5599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5600 $as_echo "$OBJDUMP" >&6; }
5601 else
5602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5603 $as_echo "no" >&6; }
5604 fi
5605
5606
5607 fi
5608 if test -z "$ac_cv_prog_OBJDUMP"; then
5609 ac_ct_OBJDUMP=$OBJDUMP
5610 # Extract the first word of "objdump", so it can be a program name with args.
5611 set dummy objdump; ac_word=$2
5612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5613 $as_echo_n "checking for $ac_word... " >&6; }
5614 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5615 $as_echo_n "(cached) " >&6
5616 else
5617 if test -n "$ac_ct_OBJDUMP"; then
5618 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5619 else
5620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5621 for as_dir in $PATH
5622 do
5623 IFS=$as_save_IFS
5624 test -z "$as_dir" && as_dir=.
5625 for ac_exec_ext in '' $ac_executable_extensions; do
5626 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5627 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5628 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5629 break 2
5630 fi
5631 done
5632 done
5633 IFS=$as_save_IFS
5634
5635 fi
5636 fi
5637 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5638 if test -n "$ac_ct_OBJDUMP"; then
5639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5640 $as_echo "$ac_ct_OBJDUMP" >&6; }
5641 else
5642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5643 $as_echo "no" >&6; }
5644 fi
5645
5646 if test "x$ac_ct_OBJDUMP" = x; then
5647 OBJDUMP="false"
5648 else
5649 case $cross_compiling:$ac_tool_warned in
5650 yes:)
5651 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5652 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5653 ac_tool_warned=yes ;;
5654 esac
5655 OBJDUMP=$ac_ct_OBJDUMP
5656 fi
5657 else
5658 OBJDUMP="$ac_cv_prog_OBJDUMP"
5659 fi
5660
5661 test -z "$OBJDUMP" && OBJDUMP=objdump
5662
5663
5664
5665
5666
5667
5668
5669
5670
5671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5672 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5673 if ${lt_cv_deplibs_check_method+:} false; then :
5674 $as_echo_n "(cached) " >&6
5675 else
5676 lt_cv_file_magic_cmd='$MAGIC_CMD'
5677 lt_cv_file_magic_test_file=
5678 lt_cv_deplibs_check_method='unknown'
5679 # Need to set the preceding variable on all platforms that support
5680 # interlibrary dependencies.
5681 # 'none' -- dependencies not supported.
5682 # `unknown' -- same as none, but documents that we really don't know.
5683 # 'pass_all' -- all dependencies passed with no checks.
5684 # 'test_compile' -- check by making test program.
5685 # 'file_magic [[regex]]' -- check by looking for files in library path
5686 # which responds to the $file_magic_cmd with a given extended regex.
5687 # If you have `file' or equivalent on your system and you're not sure
5688 # whether `pass_all' will *always* work, you probably want this one.
5689
5690 case $host_os in
5691 aix[4-9]*)
5692 lt_cv_deplibs_check_method=pass_all
5693 ;;
5694
5695 beos*)
5696 lt_cv_deplibs_check_method=pass_all
5697 ;;
5698
5699 bsdi[45]*)
5700 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5701 lt_cv_file_magic_cmd='/usr/bin/file -L'
5702 lt_cv_file_magic_test_file=/shlib/libc.so
5703 ;;
5704
5705 cygwin*)
5706 # func_win32_libid is a shell function defined in ltmain.sh
5707 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5708 lt_cv_file_magic_cmd='func_win32_libid'
5709 ;;
5710
5711 mingw* | pw32*)
5712 # Base MSYS/MinGW do not provide the 'file' command needed by
5713 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5714 # unless we find 'file', for example because we are cross-compiling.
5715 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5716 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5717 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5718 lt_cv_file_magic_cmd='func_win32_libid'
5719 else
5720 # Keep this pattern in sync with the one in func_win32_libid.
5721 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5722 lt_cv_file_magic_cmd='$OBJDUMP -f'
5723 fi
5724 ;;
5725
5726 cegcc*)
5727 # use the weaker test based on 'objdump'. See mingw*.
5728 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5729 lt_cv_file_magic_cmd='$OBJDUMP -f'
5730 ;;
5731
5732 darwin* | rhapsody*)
5733 lt_cv_deplibs_check_method=pass_all
5734 ;;
5735
5736 freebsd* | dragonfly*)
5737 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5738 case $host_cpu in
5739 i*86 )
5740 # Not sure whether the presence of OpenBSD here was a mistake.
5741 # Let's accept both of them until this is cleared up.
5742 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5743 lt_cv_file_magic_cmd=/usr/bin/file
5744 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5745 ;;
5746 esac
5747 else
5748 lt_cv_deplibs_check_method=pass_all
5749 fi
5750 ;;
5751
5752 gnu*)
5753 lt_cv_deplibs_check_method=pass_all
5754 ;;
5755
5756 haiku*)
5757 lt_cv_deplibs_check_method=pass_all
5758 ;;
5759
5760 hpux10.20* | hpux11*)
5761 lt_cv_file_magic_cmd=/usr/bin/file
5762 case $host_cpu in
5763 ia64*)
5764 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5765 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5766 ;;
5767 hppa*64*)
5768 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]'
5769 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5770 ;;
5771 *)
5772 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5773 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5774 ;;
5775 esac
5776 ;;
5777
5778 interix[3-9]*)
5779 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5780 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5781 ;;
5782
5783 irix5* | irix6* | nonstopux*)
5784 case $LD in
5785 *-32|*"-32 ") libmagic=32-bit;;
5786 *-n32|*"-n32 ") libmagic=N32;;
5787 *-64|*"-64 ") libmagic=64-bit;;
5788 *) libmagic=never-match;;
5789 esac
5790 lt_cv_deplibs_check_method=pass_all
5791 ;;
5792
5793 # This must be glibc/ELF.
5794 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5795 lt_cv_deplibs_check_method=pass_all
5796 ;;
5797
5798 netbsd*)
5799 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5800 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5801 else
5802 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5803 fi
5804 ;;
5805
5806 newos6*)
5807 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5808 lt_cv_file_magic_cmd=/usr/bin/file
5809 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5810 ;;
5811
5812 *nto* | *qnx*)
5813 lt_cv_deplibs_check_method=pass_all
5814 ;;
5815
5816 openbsd*)
5817 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5818 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5819 else
5820 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5821 fi
5822 ;;
5823
5824 osf3* | osf4* | osf5*)
5825 lt_cv_deplibs_check_method=pass_all
5826 ;;
5827
5828 rdos*)
5829 lt_cv_deplibs_check_method=pass_all
5830 ;;
5831
5832 solaris*)
5833 lt_cv_deplibs_check_method=pass_all
5834 ;;
5835
5836 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5837 lt_cv_deplibs_check_method=pass_all
5838 ;;
5839
5840 sysv4 | sysv4.3*)
5841 case $host_vendor in
5842 motorola)
5843 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]'
5844 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5845 ;;
5846 ncr)
5847 lt_cv_deplibs_check_method=pass_all
5848 ;;
5849 sequent)
5850 lt_cv_file_magic_cmd='/bin/file'
5851 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5852 ;;
5853 sni)
5854 lt_cv_file_magic_cmd='/bin/file'
5855 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5856 lt_cv_file_magic_test_file=/lib/libc.so
5857 ;;
5858 siemens)
5859 lt_cv_deplibs_check_method=pass_all
5860 ;;
5861 pc)
5862 lt_cv_deplibs_check_method=pass_all
5863 ;;
5864 esac
5865 ;;
5866
5867 tpf*)
5868 lt_cv_deplibs_check_method=pass_all
5869 ;;
5870 esac
5871
5872 fi
5873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5874 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5875
5876 file_magic_glob=
5877 want_nocaseglob=no
5878 if test "$build" = "$host"; then
5879 case $host_os in
5880 mingw* | pw32*)
5881 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5882 want_nocaseglob=yes
5883 else
5884 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5885 fi
5886 ;;
5887 esac
5888 fi
5889
5890 file_magic_cmd=$lt_cv_file_magic_cmd
5891 deplibs_check_method=$lt_cv_deplibs_check_method
5892 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5893
5894
5895
5896
5897
5898
5899
5900
5901
5902
5903
5904
5905
5906
5907
5908
5909
5910
5911
5912
5913
5914
5915 if test -n "$ac_tool_prefix"; then
5916 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5917 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5919 $as_echo_n "checking for $ac_word... " >&6; }
5920 if ${ac_cv_prog_DLLTOOL+:} false; then :
5921 $as_echo_n "(cached) " >&6
5922 else
5923 if test -n "$DLLTOOL"; then
5924 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5925 else
5926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5927 for as_dir in $PATH
5928 do
5929 IFS=$as_save_IFS
5930 test -z "$as_dir" && as_dir=.
5931 for ac_exec_ext in '' $ac_executable_extensions; do
5932 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5933 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5934 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5935 break 2
5936 fi
5937 done
5938 done
5939 IFS=$as_save_IFS
5940
5941 fi
5942 fi
5943 DLLTOOL=$ac_cv_prog_DLLTOOL
5944 if test -n "$DLLTOOL"; then
5945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5946 $as_echo "$DLLTOOL" >&6; }
5947 else
5948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5949 $as_echo "no" >&6; }
5950 fi
5951
5952
5953 fi
5954 if test -z "$ac_cv_prog_DLLTOOL"; then
5955 ac_ct_DLLTOOL=$DLLTOOL
5956 # Extract the first word of "dlltool", so it can be a program name with args.
5957 set dummy dlltool; ac_word=$2
5958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5959 $as_echo_n "checking for $ac_word... " >&6; }
5960 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5961 $as_echo_n "(cached) " >&6
5962 else
5963 if test -n "$ac_ct_DLLTOOL"; then
5964 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5965 else
5966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5967 for as_dir in $PATH
5968 do
5969 IFS=$as_save_IFS
5970 test -z "$as_dir" && as_dir=.
5971 for ac_exec_ext in '' $ac_executable_extensions; do
5972 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5973 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5974 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5975 break 2
5976 fi
5977 done
5978 done
5979 IFS=$as_save_IFS
5980
5981 fi
5982 fi
5983 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5984 if test -n "$ac_ct_DLLTOOL"; then
5985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5986 $as_echo "$ac_ct_DLLTOOL" >&6; }
5987 else
5988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5989 $as_echo "no" >&6; }
5990 fi
5991
5992 if test "x$ac_ct_DLLTOOL" = x; then
5993 DLLTOOL="false"
5994 else
5995 case $cross_compiling:$ac_tool_warned in
5996 yes:)
5997 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5998 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5999 ac_tool_warned=yes ;;
6000 esac
6001 DLLTOOL=$ac_ct_DLLTOOL
6002 fi
6003 else
6004 DLLTOOL="$ac_cv_prog_DLLTOOL"
6005 fi
6006
6007 test -z "$DLLTOOL" && DLLTOOL=dlltool
6008
6009
6010
6011
6012
6013
6014
6015
6016
6017
6018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6019 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6020 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6021 $as_echo_n "(cached) " >&6
6022 else
6023 lt_cv_sharedlib_from_linklib_cmd='unknown'
6024
6025 case $host_os in
6026 cygwin* | mingw* | pw32* | cegcc*)
6027 # two different shell functions defined in ltmain.sh
6028 # decide which to use based on capabilities of $DLLTOOL
6029 case `$DLLTOOL --help 2>&1` in
6030 *--identify-strict*)
6031 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6032 ;;
6033 *)
6034 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6035 ;;
6036 esac
6037 ;;
6038 *)
6039 # fallback: assume linklib IS sharedlib
6040 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6041 ;;
6042 esac
6043
6044 fi
6045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6046 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6047 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6048 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6049
6050
6051
6052
6053
6054
6055
6056 if test -n "$ac_tool_prefix"; then
6057 for ac_prog in ar
6058 do
6059 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6060 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6062 $as_echo_n "checking for $ac_word... " >&6; }
6063 if ${ac_cv_prog_AR+:} false; then :
6064 $as_echo_n "(cached) " >&6
6065 else
6066 if test -n "$AR"; then
6067 ac_cv_prog_AR="$AR" # Let the user override the test.
6068 else
6069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6070 for as_dir in $PATH
6071 do
6072 IFS=$as_save_IFS
6073 test -z "$as_dir" && as_dir=.
6074 for ac_exec_ext in '' $ac_executable_extensions; do
6075 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6076 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6077 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6078 break 2
6079 fi
6080 done
6081 done
6082 IFS=$as_save_IFS
6083
6084 fi
6085 fi
6086 AR=$ac_cv_prog_AR
6087 if test -n "$AR"; then
6088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6089 $as_echo "$AR" >&6; }
6090 else
6091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6092 $as_echo "no" >&6; }
6093 fi
6094
6095
6096 test -n "$AR" && break
6097 done
6098 fi
6099 if test -z "$AR"; then
6100 ac_ct_AR=$AR
6101 for ac_prog in ar
6102 do
6103 # Extract the first word of "$ac_prog", so it can be a program name with args.
6104 set dummy $ac_prog; ac_word=$2
6105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6106 $as_echo_n "checking for $ac_word... " >&6; }
6107 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6108 $as_echo_n "(cached) " >&6
6109 else
6110 if test -n "$ac_ct_AR"; then
6111 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6112 else
6113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6114 for as_dir in $PATH
6115 do
6116 IFS=$as_save_IFS
6117 test -z "$as_dir" && as_dir=.
6118 for ac_exec_ext in '' $ac_executable_extensions; do
6119 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6120 ac_cv_prog_ac_ct_AR="$ac_prog"
6121 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6122 break 2
6123 fi
6124 done
6125 done
6126 IFS=$as_save_IFS
6127
6128 fi
6129 fi
6130 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6131 if test -n "$ac_ct_AR"; then
6132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6133 $as_echo "$ac_ct_AR" >&6; }
6134 else
6135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6136 $as_echo "no" >&6; }
6137 fi
6138
6139
6140 test -n "$ac_ct_AR" && break
6141 done
6142
6143 if test "x$ac_ct_AR" = x; then
6144 AR="false"
6145 else
6146 case $cross_compiling:$ac_tool_warned in
6147 yes:)
6148 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6149 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6150 ac_tool_warned=yes ;;
6151 esac
6152 AR=$ac_ct_AR
6153 fi
6154 fi
6155
6156 : ${AR=ar}
6157 : ${AR_FLAGS=cru}
6158
6159
6160
6161
6162
6163
6164
6165
6166
6167
6168
6169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6170 $as_echo_n "checking for archiver @FILE support... " >&6; }
6171 if ${lt_cv_ar_at_file+:} false; then :
6172 $as_echo_n "(cached) " >&6
6173 else
6174 lt_cv_ar_at_file=no
6175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6176 /* end confdefs.h. */
6177
6178 int
6179 main ()
6180 {
6181
6182 ;
6183 return 0;
6184 }
6185 _ACEOF
6186 if ac_fn_c_try_compile "$LINENO"; then :
6187 echo conftest.$ac_objext > conftest.lst
6188 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6189 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6190 (eval $lt_ar_try) 2>&5
6191 ac_status=$?
6192 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6193 test $ac_status = 0; }
6194 if test "$ac_status" -eq 0; then
6195 # Ensure the archiver fails upon bogus file names.
6196 rm -f conftest.$ac_objext libconftest.a
6197 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6198 (eval $lt_ar_try) 2>&5
6199 ac_status=$?
6200 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6201 test $ac_status = 0; }
6202 if test "$ac_status" -ne 0; then
6203 lt_cv_ar_at_file=@
6204 fi
6205 fi
6206 rm -f conftest.* libconftest.a
6207
6208 fi
6209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6210
6211 fi
6212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6213 $as_echo "$lt_cv_ar_at_file" >&6; }
6214
6215 if test "x$lt_cv_ar_at_file" = xno; then
6216 archiver_list_spec=
6217 else
6218 archiver_list_spec=$lt_cv_ar_at_file
6219 fi
6220
6221
6222
6223
6224
6225
6226
6227 if test -n "$ac_tool_prefix"; then
6228 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6229 set dummy ${ac_tool_prefix}strip; ac_word=$2
6230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6231 $as_echo_n "checking for $ac_word... " >&6; }
6232 if ${ac_cv_prog_STRIP+:} false; then :
6233 $as_echo_n "(cached) " >&6
6234 else
6235 if test -n "$STRIP"; then
6236 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6237 else
6238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6239 for as_dir in $PATH
6240 do
6241 IFS=$as_save_IFS
6242 test -z "$as_dir" && as_dir=.
6243 for ac_exec_ext in '' $ac_executable_extensions; do
6244 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6245 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6246 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6247 break 2
6248 fi
6249 done
6250 done
6251 IFS=$as_save_IFS
6252
6253 fi
6254 fi
6255 STRIP=$ac_cv_prog_STRIP
6256 if test -n "$STRIP"; then
6257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6258 $as_echo "$STRIP" >&6; }
6259 else
6260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6261 $as_echo "no" >&6; }
6262 fi
6263
6264
6265 fi
6266 if test -z "$ac_cv_prog_STRIP"; then
6267 ac_ct_STRIP=$STRIP
6268 # Extract the first word of "strip", so it can be a program name with args.
6269 set dummy strip; ac_word=$2
6270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6271 $as_echo_n "checking for $ac_word... " >&6; }
6272 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6273 $as_echo_n "(cached) " >&6
6274 else
6275 if test -n "$ac_ct_STRIP"; then
6276 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6277 else
6278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6279 for as_dir in $PATH
6280 do
6281 IFS=$as_save_IFS
6282 test -z "$as_dir" && as_dir=.
6283 for ac_exec_ext in '' $ac_executable_extensions; do
6284 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6285 ac_cv_prog_ac_ct_STRIP="strip"
6286 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6287 break 2
6288 fi
6289 done
6290 done
6291 IFS=$as_save_IFS
6292
6293 fi
6294 fi
6295 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6296 if test -n "$ac_ct_STRIP"; then
6297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6298 $as_echo "$ac_ct_STRIP" >&6; }
6299 else
6300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6301 $as_echo "no" >&6; }
6302 fi
6303
6304 if test "x$ac_ct_STRIP" = x; then
6305 STRIP=":"
6306 else
6307 case $cross_compiling:$ac_tool_warned in
6308 yes:)
6309 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6310 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6311 ac_tool_warned=yes ;;
6312 esac
6313 STRIP=$ac_ct_STRIP
6314 fi
6315 else
6316 STRIP="$ac_cv_prog_STRIP"
6317 fi
6318
6319 test -z "$STRIP" && STRIP=:
6320
6321
6322
6323
6324
6325
6326 if test -n "$ac_tool_prefix"; then
6327 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6328 set dummy ${ac_tool_prefix}ranlib; 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_RANLIB+:} false; then :
6332 $as_echo_n "(cached) " >&6
6333 else
6334 if test -n "$RANLIB"; then
6335 ac_cv_prog_RANLIB="$RANLIB" # 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_RANLIB="${ac_tool_prefix}ranlib"
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 RANLIB=$ac_cv_prog_RANLIB
6355 if test -n "$RANLIB"; then
6356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6357 $as_echo "$RANLIB" >&6; }
6358 else
6359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6360 $as_echo "no" >&6; }
6361 fi
6362
6363
6364 fi
6365 if test -z "$ac_cv_prog_RANLIB"; then
6366 ac_ct_RANLIB=$RANLIB
6367 # Extract the first word of "ranlib", so it can be a program name with args.
6368 set dummy ranlib; ac_word=$2
6369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6370 $as_echo_n "checking for $ac_word... " >&6; }
6371 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6372 $as_echo_n "(cached) " >&6
6373 else
6374 if test -n "$ac_ct_RANLIB"; then
6375 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6376 else
6377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6378 for as_dir in $PATH
6379 do
6380 IFS=$as_save_IFS
6381 test -z "$as_dir" && as_dir=.
6382 for ac_exec_ext in '' $ac_executable_extensions; do
6383 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6384 ac_cv_prog_ac_ct_RANLIB="ranlib"
6385 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6386 break 2
6387 fi
6388 done
6389 done
6390 IFS=$as_save_IFS
6391
6392 fi
6393 fi
6394 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6395 if test -n "$ac_ct_RANLIB"; then
6396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6397 $as_echo "$ac_ct_RANLIB" >&6; }
6398 else
6399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6400 $as_echo "no" >&6; }
6401 fi
6402
6403 if test "x$ac_ct_RANLIB" = x; then
6404 RANLIB=":"
6405 else
6406 case $cross_compiling:$ac_tool_warned in
6407 yes:)
6408 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6409 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6410 ac_tool_warned=yes ;;
6411 esac
6412 RANLIB=$ac_ct_RANLIB
6413 fi
6414 else
6415 RANLIB="$ac_cv_prog_RANLIB"
6416 fi
6417
6418 test -z "$RANLIB" && RANLIB=:
6419
6420
6421
6422
6423
6424
6425 # Determine commands to create old-style static archives.
6426 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6427 old_postinstall_cmds='chmod 644 $oldlib'
6428 old_postuninstall_cmds=
6429
6430 if test -n "$RANLIB"; then
6431 case $host_os in
6432 openbsd*)
6433 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6434 ;;
6435 *)
6436 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6437 ;;
6438 esac
6439 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6440 fi
6441
6442 case $host_os in
6443 darwin*)
6444 lock_old_archive_extraction=yes ;;
6445 *)
6446 lock_old_archive_extraction=no ;;
6447 esac
6448
6449
6450
6451
6452
6453
6454
6455
6456
6457
6458
6459
6460
6461
6462
6463
6464
6465
6466
6467
6468
6469
6470
6471
6472
6473
6474
6475
6476
6477
6478
6479
6480
6481
6482
6483
6484
6485
6486
6487 # If no C compiler was specified, use CC.
6488 LTCC=${LTCC-"$CC"}
6489
6490 # If no C compiler flags were specified, use CFLAGS.
6491 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6492
6493 # Allow CC to be a program name with arguments.
6494 compiler=$CC
6495
6496
6497 # Check for command to grab the raw symbol name followed by C symbol from nm.
6498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6499 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6500 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6501 $as_echo_n "(cached) " >&6
6502 else
6503
6504 # These are sane defaults that work on at least a few old systems.
6505 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6506
6507 # Character class describing NM global symbol codes.
6508 symcode='[BCDEGRST]'
6509
6510 # Regexp to match symbols that can be accessed directly from C.
6511 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6512
6513 # Define system-specific variables.
6514 case $host_os in
6515 aix*)
6516 symcode='[BCDT]'
6517 ;;
6518 cygwin* | mingw* | pw32* | cegcc*)
6519 symcode='[ABCDGISTW]'
6520 ;;
6521 hpux*)
6522 if test "$host_cpu" = ia64; then
6523 symcode='[ABCDEGRST]'
6524 fi
6525 ;;
6526 irix* | nonstopux*)
6527 symcode='[BCDEGRST]'
6528 ;;
6529 osf*)
6530 symcode='[BCDEGQRST]'
6531 ;;
6532 solaris*)
6533 symcode='[BDRT]'
6534 ;;
6535 sco3.2v5*)
6536 symcode='[DT]'
6537 ;;
6538 sysv4.2uw2*)
6539 symcode='[DT]'
6540 ;;
6541 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6542 symcode='[ABDT]'
6543 ;;
6544 sysv4)
6545 symcode='[DFNSTU]'
6546 ;;
6547 esac
6548
6549 # If we're using GNU nm, then use its standard symbol codes.
6550 case `$NM -V 2>&1` in
6551 *GNU* | *'with BFD'*)
6552 symcode='[ABCDGIRSTW]' ;;
6553 esac
6554
6555 # Transform an extracted symbol line into a proper C declaration.
6556 # Some systems (esp. on ia64) link data and code symbols differently,
6557 # so use this general approach.
6558 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6559
6560 # Transform an extracted symbol line into symbol name and symbol address
6561 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6562 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'"
6563
6564 # Handle CRLF in mingw tool chain
6565 opt_cr=
6566 case $build_os in
6567 mingw*)
6568 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6569 ;;
6570 esac
6571
6572 # Try without a prefix underscore, then with it.
6573 for ac_symprfx in "" "_"; do
6574
6575 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6576 symxfrm="\\1 $ac_symprfx\\2 \\2"
6577
6578 # Write the raw and C identifiers.
6579 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6580 # Fake it for dumpbin and say T for any non-static function
6581 # and D for any global variable.
6582 # Also find C++ and __fastcall symbols from MSVC++,
6583 # which start with @ or ?.
6584 lt_cv_sys_global_symbol_pipe="$AWK '"\
6585 " {last_section=section; section=\$ 3};"\
6586 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6587 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6588 " \$ 0!~/External *\|/{next};"\
6589 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6590 " {if(hide[section]) next};"\
6591 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6592 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6593 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6594 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6595 " ' prfx=^$ac_symprfx"
6596 else
6597 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6598 fi
6599 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6600
6601 # Check to see that the pipe works correctly.
6602 pipe_works=no
6603
6604 rm -f conftest*
6605 cat > conftest.$ac_ext <<_LT_EOF
6606 #ifdef __cplusplus
6607 extern "C" {
6608 #endif
6609 char nm_test_var;
6610 void nm_test_func(void);
6611 void nm_test_func(void){}
6612 #ifdef __cplusplus
6613 }
6614 #endif
6615 int main(){nm_test_var='a';nm_test_func();return(0);}
6616 _LT_EOF
6617
6618 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6619 (eval $ac_compile) 2>&5
6620 ac_status=$?
6621 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6622 test $ac_status = 0; }; then
6623 # Now try to grab the symbols.
6624 nlist=conftest.nm
6625 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6626 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6627 ac_status=$?
6628 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6629 test $ac_status = 0; } && test -s "$nlist"; then
6630 # Try sorting and uniquifying the output.
6631 if sort "$nlist" | uniq > "$nlist"T; then
6632 mv -f "$nlist"T "$nlist"
6633 else
6634 rm -f "$nlist"T
6635 fi
6636
6637 # Make sure that we snagged all the symbols we need.
6638 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6639 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6640 cat <<_LT_EOF > conftest.$ac_ext
6641 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6642 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6643 /* DATA imports from DLLs on WIN32 con't be const, because runtime
6644 relocations are performed -- see ld's documentation on pseudo-relocs. */
6645 # define LT_DLSYM_CONST
6646 #elif defined(__osf__)
6647 /* This system does not cope well with relocations in const data. */
6648 # define LT_DLSYM_CONST
6649 #else
6650 # define LT_DLSYM_CONST const
6651 #endif
6652
6653 #ifdef __cplusplus
6654 extern "C" {
6655 #endif
6656
6657 _LT_EOF
6658 # Now generate the symbol file.
6659 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6660
6661 cat <<_LT_EOF >> conftest.$ac_ext
6662
6663 /* The mapping between symbol names and symbols. */
6664 LT_DLSYM_CONST struct {
6665 const char *name;
6666 void *address;
6667 }
6668 lt__PROGRAM__LTX_preloaded_symbols[] =
6669 {
6670 { "@PROGRAM@", (void *) 0 },
6671 _LT_EOF
6672 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6673 cat <<\_LT_EOF >> conftest.$ac_ext
6674 {0, (void *) 0}
6675 };
6676
6677 /* This works around a problem in FreeBSD linker */
6678 #ifdef FREEBSD_WORKAROUND
6679 static const void *lt_preloaded_setup() {
6680 return lt__PROGRAM__LTX_preloaded_symbols;
6681 }
6682 #endif
6683
6684 #ifdef __cplusplus
6685 }
6686 #endif
6687 _LT_EOF
6688 # Now try linking the two files.
6689 mv conftest.$ac_objext conftstm.$ac_objext
6690 lt_globsym_save_LIBS=$LIBS
6691 lt_globsym_save_CFLAGS=$CFLAGS
6692 LIBS="conftstm.$ac_objext"
6693 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6694 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6695 (eval $ac_link) 2>&5
6696 ac_status=$?
6697 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6698 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6699 pipe_works=yes
6700 fi
6701 LIBS=$lt_globsym_save_LIBS
6702 CFLAGS=$lt_globsym_save_CFLAGS
6703 else
6704 echo "cannot find nm_test_func in $nlist" >&5
6705 fi
6706 else
6707 echo "cannot find nm_test_var in $nlist" >&5
6708 fi
6709 else
6710 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6711 fi
6712 else
6713 echo "$progname: failed program was:" >&5
6714 cat conftest.$ac_ext >&5
6715 fi
6716 rm -rf conftest* conftst*
6717
6718 # Do not use the global_symbol_pipe unless it works.
6719 if test "$pipe_works" = yes; then
6720 break
6721 else
6722 lt_cv_sys_global_symbol_pipe=
6723 fi
6724 done
6725
6726 fi
6727
6728 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6729 lt_cv_sys_global_symbol_to_cdecl=
6730 fi
6731 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6733 $as_echo "failed" >&6; }
6734 else
6735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6736 $as_echo "ok" >&6; }
6737 fi
6738
6739 # Response file support.
6740 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6741 nm_file_list_spec='@'
6742 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6743 nm_file_list_spec='@'
6744 fi
6745
6746
6747
6748
6749
6750
6751
6752
6753
6754
6755
6756
6757
6758
6759
6760
6761
6762
6763
6764
6765
6766
6767
6768
6769
6770
6771
6772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6773 $as_echo_n "checking for sysroot... " >&6; }
6774
6775 # Check whether --with-sysroot was given.
6776 if test "${with_sysroot+set}" = set; then :
6777 withval=$with_sysroot;
6778 else
6779 with_sysroot=no
6780 fi
6781
6782
6783 lt_sysroot=
6784 case ${with_sysroot} in #(
6785 yes)
6786 if test "$GCC" = yes; then
6787 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6788 fi
6789 ;; #(
6790 /*)
6791 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6792 ;; #(
6793 no|'')
6794 ;; #(
6795 *)
6796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6797 $as_echo "${with_sysroot}" >&6; }
6798 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6799 ;;
6800 esac
6801
6802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6803 $as_echo "${lt_sysroot:-no}" >&6; }
6804
6805
6806
6807
6808
6809 # Check whether --enable-libtool-lock was given.
6810 if test "${enable_libtool_lock+set}" = set; then :
6811 enableval=$enable_libtool_lock;
6812 fi
6813
6814 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6815
6816 # Some flags need to be propagated to the compiler or linker for good
6817 # libtool support.
6818 case $host in
6819 ia64-*-hpux*)
6820 # Find out which ABI we are using.
6821 echo 'int i;' > conftest.$ac_ext
6822 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6823 (eval $ac_compile) 2>&5
6824 ac_status=$?
6825 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6826 test $ac_status = 0; }; then
6827 case `/usr/bin/file conftest.$ac_objext` in
6828 *ELF-32*)
6829 HPUX_IA64_MODE="32"
6830 ;;
6831 *ELF-64*)
6832 HPUX_IA64_MODE="64"
6833 ;;
6834 esac
6835 fi
6836 rm -rf conftest*
6837 ;;
6838 *-*-irix6*)
6839 # Find out which ABI we are using.
6840 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6841 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6842 (eval $ac_compile) 2>&5
6843 ac_status=$?
6844 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6845 test $ac_status = 0; }; then
6846 if test "$lt_cv_prog_gnu_ld" = yes; then
6847 case `/usr/bin/file conftest.$ac_objext` in
6848 *32-bit*)
6849 LD="${LD-ld} -melf32bsmip"
6850 ;;
6851 *N32*)
6852 LD="${LD-ld} -melf32bmipn32"
6853 ;;
6854 *64-bit*)
6855 LD="${LD-ld} -melf64bmip"
6856 ;;
6857 esac
6858 else
6859 case `/usr/bin/file conftest.$ac_objext` in
6860 *32-bit*)
6861 LD="${LD-ld} -32"
6862 ;;
6863 *N32*)
6864 LD="${LD-ld} -n32"
6865 ;;
6866 *64-bit*)
6867 LD="${LD-ld} -64"
6868 ;;
6869 esac
6870 fi
6871 fi
6872 rm -rf conftest*
6873 ;;
6874
6875 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6876 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6877 # Find out which ABI we are using.
6878 echo 'int i;' > conftest.$ac_ext
6879 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6880 (eval $ac_compile) 2>&5
6881 ac_status=$?
6882 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6883 test $ac_status = 0; }; then
6884 case `/usr/bin/file conftest.o` in
6885 *32-bit*)
6886 case $host in
6887 x86_64-*kfreebsd*-gnu)
6888 LD="${LD-ld} -m elf_i386_fbsd"
6889 ;;
6890 x86_64-*linux*)
6891 LD="${LD-ld} -m elf_i386"
6892 ;;
6893 ppc64-*linux*|powerpc64-*linux*)
6894 LD="${LD-ld} -m elf32ppclinux"
6895 ;;
6896 s390x-*linux*)
6897 LD="${LD-ld} -m elf_s390"
6898 ;;
6899 sparc64-*linux*)
6900 LD="${LD-ld} -m elf32_sparc"
6901 ;;
6902 esac
6903 ;;
6904 *64-bit*)
6905 case $host in
6906 x86_64-*kfreebsd*-gnu)
6907 LD="${LD-ld} -m elf_x86_64_fbsd"
6908 ;;
6909 x86_64-*linux*)
6910 LD="${LD-ld} -m elf_x86_64"
6911 ;;
6912 ppc*-*linux*|powerpc*-*linux*)
6913 LD="${LD-ld} -m elf64ppc"
6914 ;;
6915 s390*-*linux*|s390*-*tpf*)
6916 LD="${LD-ld} -m elf64_s390"
6917 ;;
6918 sparc*-*linux*)
6919 LD="${LD-ld} -m elf64_sparc"
6920 ;;
6921 esac
6922 ;;
6923 esac
6924 fi
6925 rm -rf conftest*
6926 ;;
6927
6928 *-*-sco3.2v5*)
6929 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6930 SAVE_CFLAGS="$CFLAGS"
6931 CFLAGS="$CFLAGS -belf"
6932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6933 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6934 if ${lt_cv_cc_needs_belf+:} false; then :
6935 $as_echo_n "(cached) " >&6
6936 else
6937 ac_ext=c
6938 ac_cpp='$CPP $CPPFLAGS'
6939 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6940 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6941 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6942
6943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6944 /* end confdefs.h. */
6945
6946 int
6947 main ()
6948 {
6949
6950 ;
6951 return 0;
6952 }
6953 _ACEOF
6954 if ac_fn_c_try_link "$LINENO"; then :
6955 lt_cv_cc_needs_belf=yes
6956 else
6957 lt_cv_cc_needs_belf=no
6958 fi
6959 rm -f core conftest.err conftest.$ac_objext \
6960 conftest$ac_exeext conftest.$ac_ext
6961 ac_ext=c
6962 ac_cpp='$CPP $CPPFLAGS'
6963 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6964 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6965 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6966
6967 fi
6968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6969 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6970 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6971 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6972 CFLAGS="$SAVE_CFLAGS"
6973 fi
6974 ;;
6975 *-*solaris*)
6976 # Find out which ABI we are using.
6977 echo 'int i;' > conftest.$ac_ext
6978 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6979 (eval $ac_compile) 2>&5
6980 ac_status=$?
6981 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6982 test $ac_status = 0; }; then
6983 case `/usr/bin/file conftest.o` in
6984 *64-bit*)
6985 case $lt_cv_prog_gnu_ld in
6986 yes*)
6987 case $host in
6988 i?86-*-solaris*)
6989 LD="${LD-ld} -m elf_x86_64"
6990 ;;
6991 sparc*-*-solaris*)
6992 LD="${LD-ld} -m elf64_sparc"
6993 ;;
6994 esac
6995 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6996 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6997 LD="${LD-ld}_sol2"
6998 fi
6999 ;;
7000 *)
7001 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7002 LD="${LD-ld} -64"
7003 fi
7004 ;;
7005 esac
7006 ;;
7007 esac
7008 fi
7009 rm -rf conftest*
7010 ;;
7011 esac
7012
7013 need_locks="$enable_libtool_lock"
7014
7015 if test -n "$ac_tool_prefix"; then
7016 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7017 set dummy ${ac_tool_prefix}mt; ac_word=$2
7018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7019 $as_echo_n "checking for $ac_word... " >&6; }
7020 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7021 $as_echo_n "(cached) " >&6
7022 else
7023 if test -n "$MANIFEST_TOOL"; then
7024 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7025 else
7026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7027 for as_dir in $PATH
7028 do
7029 IFS=$as_save_IFS
7030 test -z "$as_dir" && as_dir=.
7031 for ac_exec_ext in '' $ac_executable_extensions; do
7032 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7033 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7034 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7035 break 2
7036 fi
7037 done
7038 done
7039 IFS=$as_save_IFS
7040
7041 fi
7042 fi
7043 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7044 if test -n "$MANIFEST_TOOL"; then
7045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7046 $as_echo "$MANIFEST_TOOL" >&6; }
7047 else
7048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7049 $as_echo "no" >&6; }
7050 fi
7051
7052
7053 fi
7054 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7055 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7056 # Extract the first word of "mt", so it can be a program name with args.
7057 set dummy mt; ac_word=$2
7058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7059 $as_echo_n "checking for $ac_word... " >&6; }
7060 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7061 $as_echo_n "(cached) " >&6
7062 else
7063 if test -n "$ac_ct_MANIFEST_TOOL"; then
7064 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7065 else
7066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7067 for as_dir in $PATH
7068 do
7069 IFS=$as_save_IFS
7070 test -z "$as_dir" && as_dir=.
7071 for ac_exec_ext in '' $ac_executable_extensions; do
7072 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7073 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7074 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7075 break 2
7076 fi
7077 done
7078 done
7079 IFS=$as_save_IFS
7080
7081 fi
7082 fi
7083 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7084 if test -n "$ac_ct_MANIFEST_TOOL"; then
7085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7086 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7087 else
7088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7089 $as_echo "no" >&6; }
7090 fi
7091
7092 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7093 MANIFEST_TOOL=":"
7094 else
7095 case $cross_compiling:$ac_tool_warned in
7096 yes:)
7097 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7098 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7099 ac_tool_warned=yes ;;
7100 esac
7101 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7102 fi
7103 else
7104 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7105 fi
7106
7107 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7109 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7110 if ${lt_cv_path_mainfest_tool+:} false; then :
7111 $as_echo_n "(cached) " >&6
7112 else
7113 lt_cv_path_mainfest_tool=no
7114 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7115 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7116 cat conftest.err >&5
7117 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7118 lt_cv_path_mainfest_tool=yes
7119 fi
7120 rm -f conftest*
7121 fi
7122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7123 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7124 if test "x$lt_cv_path_mainfest_tool" != xyes; then
7125 MANIFEST_TOOL=:
7126 fi
7127
7128
7129
7130
7131
7132
7133 case $host_os in
7134 rhapsody* | darwin*)
7135 if test -n "$ac_tool_prefix"; then
7136 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7137 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7139 $as_echo_n "checking for $ac_word... " >&6; }
7140 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7141 $as_echo_n "(cached) " >&6
7142 else
7143 if test -n "$DSYMUTIL"; then
7144 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7145 else
7146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7147 for as_dir in $PATH
7148 do
7149 IFS=$as_save_IFS
7150 test -z "$as_dir" && as_dir=.
7151 for ac_exec_ext in '' $ac_executable_extensions; do
7152 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7153 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7154 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7155 break 2
7156 fi
7157 done
7158 done
7159 IFS=$as_save_IFS
7160
7161 fi
7162 fi
7163 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7164 if test -n "$DSYMUTIL"; then
7165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7166 $as_echo "$DSYMUTIL" >&6; }
7167 else
7168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7169 $as_echo "no" >&6; }
7170 fi
7171
7172
7173 fi
7174 if test -z "$ac_cv_prog_DSYMUTIL"; then
7175 ac_ct_DSYMUTIL=$DSYMUTIL
7176 # Extract the first word of "dsymutil", so it can be a program name with args.
7177 set dummy dsymutil; ac_word=$2
7178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7179 $as_echo_n "checking for $ac_word... " >&6; }
7180 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7181 $as_echo_n "(cached) " >&6
7182 else
7183 if test -n "$ac_ct_DSYMUTIL"; then
7184 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7185 else
7186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7187 for as_dir in $PATH
7188 do
7189 IFS=$as_save_IFS
7190 test -z "$as_dir" && as_dir=.
7191 for ac_exec_ext in '' $ac_executable_extensions; do
7192 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7193 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7194 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7195 break 2
7196 fi
7197 done
7198 done
7199 IFS=$as_save_IFS
7200
7201 fi
7202 fi
7203 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7204 if test -n "$ac_ct_DSYMUTIL"; then
7205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7206 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7207 else
7208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7209 $as_echo "no" >&6; }
7210 fi
7211
7212 if test "x$ac_ct_DSYMUTIL" = x; then
7213 DSYMUTIL=":"
7214 else
7215 case $cross_compiling:$ac_tool_warned in
7216 yes:)
7217 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7218 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7219 ac_tool_warned=yes ;;
7220 esac
7221 DSYMUTIL=$ac_ct_DSYMUTIL
7222 fi
7223 else
7224 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7225 fi
7226
7227 if test -n "$ac_tool_prefix"; then
7228 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7229 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7231 $as_echo_n "checking for $ac_word... " >&6; }
7232 if ${ac_cv_prog_NMEDIT+:} false; then :
7233 $as_echo_n "(cached) " >&6
7234 else
7235 if test -n "$NMEDIT"; then
7236 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7237 else
7238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7239 for as_dir in $PATH
7240 do
7241 IFS=$as_save_IFS
7242 test -z "$as_dir" && as_dir=.
7243 for ac_exec_ext in '' $ac_executable_extensions; do
7244 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7245 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7246 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7247 break 2
7248 fi
7249 done
7250 done
7251 IFS=$as_save_IFS
7252
7253 fi
7254 fi
7255 NMEDIT=$ac_cv_prog_NMEDIT
7256 if test -n "$NMEDIT"; then
7257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7258 $as_echo "$NMEDIT" >&6; }
7259 else
7260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7261 $as_echo "no" >&6; }
7262 fi
7263
7264
7265 fi
7266 if test -z "$ac_cv_prog_NMEDIT"; then
7267 ac_ct_NMEDIT=$NMEDIT
7268 # Extract the first word of "nmedit", so it can be a program name with args.
7269 set dummy nmedit; ac_word=$2
7270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7271 $as_echo_n "checking for $ac_word... " >&6; }
7272 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7273 $as_echo_n "(cached) " >&6
7274 else
7275 if test -n "$ac_ct_NMEDIT"; then
7276 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7277 else
7278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7279 for as_dir in $PATH
7280 do
7281 IFS=$as_save_IFS
7282 test -z "$as_dir" && as_dir=.
7283 for ac_exec_ext in '' $ac_executable_extensions; do
7284 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7285 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7286 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7287 break 2
7288 fi
7289 done
7290 done
7291 IFS=$as_save_IFS
7292
7293 fi
7294 fi
7295 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7296 if test -n "$ac_ct_NMEDIT"; then
7297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7298 $as_echo "$ac_ct_NMEDIT" >&6; }
7299 else
7300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7301 $as_echo "no" >&6; }
7302 fi
7303
7304 if test "x$ac_ct_NMEDIT" = x; then
7305 NMEDIT=":"
7306 else
7307 case $cross_compiling:$ac_tool_warned in
7308 yes:)
7309 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7310 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7311 ac_tool_warned=yes ;;
7312 esac
7313 NMEDIT=$ac_ct_NMEDIT
7314 fi
7315 else
7316 NMEDIT="$ac_cv_prog_NMEDIT"
7317 fi
7318
7319 if test -n "$ac_tool_prefix"; then
7320 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7321 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7323 $as_echo_n "checking for $ac_word... " >&6; }
7324 if ${ac_cv_prog_LIPO+:} false; then :
7325 $as_echo_n "(cached) " >&6
7326 else
7327 if test -n "$LIPO"; then
7328 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7329 else
7330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7331 for as_dir in $PATH
7332 do
7333 IFS=$as_save_IFS
7334 test -z "$as_dir" && as_dir=.
7335 for ac_exec_ext in '' $ac_executable_extensions; do
7336 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7337 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7338 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7339 break 2
7340 fi
7341 done
7342 done
7343 IFS=$as_save_IFS
7344
7345 fi
7346 fi
7347 LIPO=$ac_cv_prog_LIPO
7348 if test -n "$LIPO"; then
7349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7350 $as_echo "$LIPO" >&6; }
7351 else
7352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7353 $as_echo "no" >&6; }
7354 fi
7355
7356
7357 fi
7358 if test -z "$ac_cv_prog_LIPO"; then
7359 ac_ct_LIPO=$LIPO
7360 # Extract the first word of "lipo", so it can be a program name with args.
7361 set dummy lipo; ac_word=$2
7362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7363 $as_echo_n "checking for $ac_word... " >&6; }
7364 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7365 $as_echo_n "(cached) " >&6
7366 else
7367 if test -n "$ac_ct_LIPO"; then
7368 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7369 else
7370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7371 for as_dir in $PATH
7372 do
7373 IFS=$as_save_IFS
7374 test -z "$as_dir" && as_dir=.
7375 for ac_exec_ext in '' $ac_executable_extensions; do
7376 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7377 ac_cv_prog_ac_ct_LIPO="lipo"
7378 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7379 break 2
7380 fi
7381 done
7382 done
7383 IFS=$as_save_IFS
7384
7385 fi
7386 fi
7387 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7388 if test -n "$ac_ct_LIPO"; then
7389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7390 $as_echo "$ac_ct_LIPO" >&6; }
7391 else
7392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7393 $as_echo "no" >&6; }
7394 fi
7395
7396 if test "x$ac_ct_LIPO" = x; then
7397 LIPO=":"
7398 else
7399 case $cross_compiling:$ac_tool_warned in
7400 yes:)
7401 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7402 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7403 ac_tool_warned=yes ;;
7404 esac
7405 LIPO=$ac_ct_LIPO
7406 fi
7407 else
7408 LIPO="$ac_cv_prog_LIPO"
7409 fi
7410
7411 if test -n "$ac_tool_prefix"; then
7412 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7413 set dummy ${ac_tool_prefix}otool; ac_word=$2
7414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7415 $as_echo_n "checking for $ac_word... " >&6; }
7416 if ${ac_cv_prog_OTOOL+:} false; then :
7417 $as_echo_n "(cached) " >&6
7418 else
7419 if test -n "$OTOOL"; then
7420 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7421 else
7422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7423 for as_dir in $PATH
7424 do
7425 IFS=$as_save_IFS
7426 test -z "$as_dir" && as_dir=.
7427 for ac_exec_ext in '' $ac_executable_extensions; do
7428 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7429 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7430 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7431 break 2
7432 fi
7433 done
7434 done
7435 IFS=$as_save_IFS
7436
7437 fi
7438 fi
7439 OTOOL=$ac_cv_prog_OTOOL
7440 if test -n "$OTOOL"; then
7441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7442 $as_echo "$OTOOL" >&6; }
7443 else
7444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7445 $as_echo "no" >&6; }
7446 fi
7447
7448
7449 fi
7450 if test -z "$ac_cv_prog_OTOOL"; then
7451 ac_ct_OTOOL=$OTOOL
7452 # Extract the first word of "otool", so it can be a program name with args.
7453 set dummy otool; ac_word=$2
7454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7455 $as_echo_n "checking for $ac_word... " >&6; }
7456 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7457 $as_echo_n "(cached) " >&6
7458 else
7459 if test -n "$ac_ct_OTOOL"; then
7460 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7461 else
7462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7463 for as_dir in $PATH
7464 do
7465 IFS=$as_save_IFS
7466 test -z "$as_dir" && as_dir=.
7467 for ac_exec_ext in '' $ac_executable_extensions; do
7468 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7469 ac_cv_prog_ac_ct_OTOOL="otool"
7470 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7471 break 2
7472 fi
7473 done
7474 done
7475 IFS=$as_save_IFS
7476
7477 fi
7478 fi
7479 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7480 if test -n "$ac_ct_OTOOL"; then
7481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7482 $as_echo "$ac_ct_OTOOL" >&6; }
7483 else
7484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7485 $as_echo "no" >&6; }
7486 fi
7487
7488 if test "x$ac_ct_OTOOL" = x; then
7489 OTOOL=":"
7490 else
7491 case $cross_compiling:$ac_tool_warned in
7492 yes:)
7493 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7494 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7495 ac_tool_warned=yes ;;
7496 esac
7497 OTOOL=$ac_ct_OTOOL
7498 fi
7499 else
7500 OTOOL="$ac_cv_prog_OTOOL"
7501 fi
7502
7503 if test -n "$ac_tool_prefix"; then
7504 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7505 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7507 $as_echo_n "checking for $ac_word... " >&6; }
7508 if ${ac_cv_prog_OTOOL64+:} false; then :
7509 $as_echo_n "(cached) " >&6
7510 else
7511 if test -n "$OTOOL64"; then
7512 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7513 else
7514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7515 for as_dir in $PATH
7516 do
7517 IFS=$as_save_IFS
7518 test -z "$as_dir" && as_dir=.
7519 for ac_exec_ext in '' $ac_executable_extensions; do
7520 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7521 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7522 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7523 break 2
7524 fi
7525 done
7526 done
7527 IFS=$as_save_IFS
7528
7529 fi
7530 fi
7531 OTOOL64=$ac_cv_prog_OTOOL64
7532 if test -n "$OTOOL64"; then
7533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7534 $as_echo "$OTOOL64" >&6; }
7535 else
7536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7537 $as_echo "no" >&6; }
7538 fi
7539
7540
7541 fi
7542 if test -z "$ac_cv_prog_OTOOL64"; then
7543 ac_ct_OTOOL64=$OTOOL64
7544 # Extract the first word of "otool64", so it can be a program name with args.
7545 set dummy otool64; ac_word=$2
7546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7547 $as_echo_n "checking for $ac_word... " >&6; }
7548 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7549 $as_echo_n "(cached) " >&6
7550 else
7551 if test -n "$ac_ct_OTOOL64"; then
7552 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7553 else
7554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7555 for as_dir in $PATH
7556 do
7557 IFS=$as_save_IFS
7558 test -z "$as_dir" && as_dir=.
7559 for ac_exec_ext in '' $ac_executable_extensions; do
7560 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7561 ac_cv_prog_ac_ct_OTOOL64="otool64"
7562 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7563 break 2
7564 fi
7565 done
7566 done
7567 IFS=$as_save_IFS
7568
7569 fi
7570 fi
7571 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7572 if test -n "$ac_ct_OTOOL64"; then
7573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7574 $as_echo "$ac_ct_OTOOL64" >&6; }
7575 else
7576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7577 $as_echo "no" >&6; }
7578 fi
7579
7580 if test "x$ac_ct_OTOOL64" = x; then
7581 OTOOL64=":"
7582 else
7583 case $cross_compiling:$ac_tool_warned in
7584 yes:)
7585 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7586 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7587 ac_tool_warned=yes ;;
7588 esac
7589 OTOOL64=$ac_ct_OTOOL64
7590 fi
7591 else
7592 OTOOL64="$ac_cv_prog_OTOOL64"
7593 fi
7594
7595
7596
7597
7598
7599
7600
7601
7602
7603
7604
7605
7606
7607
7608
7609
7610
7611
7612
7613
7614
7615
7616
7617
7618
7619
7620
7621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7622 $as_echo_n "checking for -single_module linker flag... " >&6; }
7623 if ${lt_cv_apple_cc_single_mod+:} false; then :
7624 $as_echo_n "(cached) " >&6
7625 else
7626 lt_cv_apple_cc_single_mod=no
7627 if test -z "${LT_MULTI_MODULE}"; then
7628 # By default we will add the -single_module flag. You can override
7629 # by either setting the environment variable LT_MULTI_MODULE
7630 # non-empty at configure time, or by adding -multi_module to the
7631 # link flags.
7632 rm -rf libconftest.dylib*
7633 echo "int foo(void){return 1;}" > conftest.c
7634 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7635 -dynamiclib -Wl,-single_module conftest.c" >&5
7636 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7637 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7638 _lt_result=$?
7639 # If there is a non-empty error log, and "single_module"
7640 # appears in it, assume the flag caused a linker warning
7641 if test -s conftest.err && $GREP single_module conftest.err; then
7642 cat conftest.err >&5
7643 # Otherwise, if the output was created with a 0 exit code from
7644 # the compiler, it worked.
7645 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7646 lt_cv_apple_cc_single_mod=yes
7647 else
7648 cat conftest.err >&5
7649 fi
7650 rm -rf libconftest.dylib*
7651 rm -f conftest.*
7652 fi
7653 fi
7654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7655 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7656
7657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7658 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7659 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7660 $as_echo_n "(cached) " >&6
7661 else
7662 lt_cv_ld_exported_symbols_list=no
7663 save_LDFLAGS=$LDFLAGS
7664 echo "_main" > conftest.sym
7665 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7667 /* end confdefs.h. */
7668
7669 int
7670 main ()
7671 {
7672
7673 ;
7674 return 0;
7675 }
7676 _ACEOF
7677 if ac_fn_c_try_link "$LINENO"; then :
7678 lt_cv_ld_exported_symbols_list=yes
7679 else
7680 lt_cv_ld_exported_symbols_list=no
7681 fi
7682 rm -f core conftest.err conftest.$ac_objext \
7683 conftest$ac_exeext conftest.$ac_ext
7684 LDFLAGS="$save_LDFLAGS"
7685
7686 fi
7687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7688 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7689
7690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7691 $as_echo_n "checking for -force_load linker flag... " >&6; }
7692 if ${lt_cv_ld_force_load+:} false; then :
7693 $as_echo_n "(cached) " >&6
7694 else
7695 lt_cv_ld_force_load=no
7696 cat > conftest.c << _LT_EOF
7697 int forced_loaded() { return 2;}
7698 _LT_EOF
7699 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7700 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7701 echo "$AR cru libconftest.a conftest.o" >&5
7702 $AR cru libconftest.a conftest.o 2>&5
7703 echo "$RANLIB libconftest.a" >&5
7704 $RANLIB libconftest.a 2>&5
7705 cat > conftest.c << _LT_EOF
7706 int main() { return 0;}
7707 _LT_EOF
7708 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7709 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7710 _lt_result=$?
7711 if test -s conftest.err && $GREP force_load conftest.err; then
7712 cat conftest.err >&5
7713 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7714 lt_cv_ld_force_load=yes
7715 else
7716 cat conftest.err >&5
7717 fi
7718 rm -f conftest.err libconftest.a conftest conftest.c
7719 rm -rf conftest.dSYM
7720
7721 fi
7722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7723 $as_echo "$lt_cv_ld_force_load" >&6; }
7724 case $host_os in
7725 rhapsody* | darwin1.[012])
7726 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7727 darwin1.*)
7728 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7729 darwin*) # darwin 5.x on
7730 # if running on 10.5 or later, the deployment target defaults
7731 # to the OS version, if on x86, and 10.4, the deployment
7732 # target defaults to 10.4. Don't you love it?
7733 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7734 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7735 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7736 10.[012]*)
7737 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7738 10.*)
7739 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7740 esac
7741 ;;
7742 esac
7743 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7744 _lt_dar_single_mod='$single_module'
7745 fi
7746 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7747 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7748 else
7749 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7750 fi
7751 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7752 _lt_dsymutil='~$DSYMUTIL $lib || :'
7753 else
7754 _lt_dsymutil=
7755 fi
7756 ;;
7757 esac
7758
7759 ac_ext=c
7760 ac_cpp='$CPP $CPPFLAGS'
7761 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7762 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7763 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7765 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7766 # On Suns, sometimes $CPP names a directory.
7767 if test -n "$CPP" && test -d "$CPP"; then
7768 CPP=
7769 fi
7770 if test -z "$CPP"; then
7771 if ${ac_cv_prog_CPP+:} false; then :
7772 $as_echo_n "(cached) " >&6
7773 else
7774 # Double quotes because CPP needs to be expanded
7775 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7776 do
7777 ac_preproc_ok=false
7778 for ac_c_preproc_warn_flag in '' yes
7779 do
7780 # Use a header file that comes with gcc, so configuring glibc
7781 # with a fresh cross-compiler works.
7782 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7783 # <limits.h> exists even on freestanding compilers.
7784 # On the NeXT, cc -E runs the code through the compiler's parser,
7785 # not just through cpp. "Syntax error" is here to catch this case.
7786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7787 /* end confdefs.h. */
7788 #ifdef __STDC__
7789 # include <limits.h>
7790 #else
7791 # include <assert.h>
7792 #endif
7793 Syntax error
7794 _ACEOF
7795 if ac_fn_c_try_cpp "$LINENO"; then :
7796
7797 else
7798 # Broken: fails on valid input.
7799 continue
7800 fi
7801 rm -f conftest.err conftest.i conftest.$ac_ext
7802
7803 # OK, works on sane cases. Now check whether nonexistent headers
7804 # can be detected and how.
7805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7806 /* end confdefs.h. */
7807 #include <ac_nonexistent.h>
7808 _ACEOF
7809 if ac_fn_c_try_cpp "$LINENO"; then :
7810 # Broken: success on invalid input.
7811 continue
7812 else
7813 # Passes both tests.
7814 ac_preproc_ok=:
7815 break
7816 fi
7817 rm -f conftest.err conftest.i conftest.$ac_ext
7818
7819 done
7820 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7821 rm -f conftest.i conftest.err conftest.$ac_ext
7822 if $ac_preproc_ok; then :
7823 break
7824 fi
7825
7826 done
7827 ac_cv_prog_CPP=$CPP
7828
7829 fi
7830 CPP=$ac_cv_prog_CPP
7831 else
7832 ac_cv_prog_CPP=$CPP
7833 fi
7834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7835 $as_echo "$CPP" >&6; }
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
7883 else
7884 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7885 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7886 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7887 See \`config.log' for more details" "$LINENO" 5; }
7888 fi
7889
7890 ac_ext=c
7891 ac_cpp='$CPP $CPPFLAGS'
7892 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7893 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7894 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7895
7896
7897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7898 $as_echo_n "checking for ANSI C header files... " >&6; }
7899 if ${ac_cv_header_stdc+:} false; then :
7900 $as_echo_n "(cached) " >&6
7901 else
7902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7903 /* end confdefs.h. */
7904 #include <stdlib.h>
7905 #include <stdarg.h>
7906 #include <string.h>
7907 #include <float.h>
7908
7909 int
7910 main ()
7911 {
7912
7913 ;
7914 return 0;
7915 }
7916 _ACEOF
7917 if ac_fn_c_try_compile "$LINENO"; then :
7918 ac_cv_header_stdc=yes
7919 else
7920 ac_cv_header_stdc=no
7921 fi
7922 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7923
7924 if test $ac_cv_header_stdc = yes; then
7925 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7927 /* end confdefs.h. */
7928 #include <string.h>
7929
7930 _ACEOF
7931 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7932 $EGREP "memchr" >/dev/null 2>&1; then :
7933
7934 else
7935 ac_cv_header_stdc=no
7936 fi
7937 rm -f conftest*
7938
7939 fi
7940
7941 if test $ac_cv_header_stdc = yes; then
7942 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7944 /* end confdefs.h. */
7945 #include <stdlib.h>
7946
7947 _ACEOF
7948 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7949 $EGREP "free" >/dev/null 2>&1; then :
7950
7951 else
7952 ac_cv_header_stdc=no
7953 fi
7954 rm -f conftest*
7955
7956 fi
7957
7958 if test $ac_cv_header_stdc = yes; then
7959 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7960 if test "$cross_compiling" = yes; then :
7961 :
7962 else
7963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7964 /* end confdefs.h. */
7965 #include <ctype.h>
7966 #include <stdlib.h>
7967 #if ((' ' & 0x0FF) == 0x020)
7968 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7969 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7970 #else
7971 # define ISLOWER(c) \
7972 (('a' <= (c) && (c) <= 'i') \
7973 || ('j' <= (c) && (c) <= 'r') \
7974 || ('s' <= (c) && (c) <= 'z'))
7975 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7976 #endif
7977
7978 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7979 int
7980 main ()
7981 {
7982 int i;
7983 for (i = 0; i < 256; i++)
7984 if (XOR (islower (i), ISLOWER (i))
7985 || toupper (i) != TOUPPER (i))
7986 return 2;
7987 return 0;
7988 }
7989 _ACEOF
7990 if ac_fn_c_try_run "$LINENO"; then :
7991
7992 else
7993 ac_cv_header_stdc=no
7994 fi
7995 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7996 conftest.$ac_objext conftest.beam conftest.$ac_ext
7997 fi
7998
7999 fi
8000 fi
8001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8002 $as_echo "$ac_cv_header_stdc" >&6; }
8003 if test $ac_cv_header_stdc = yes; then
8004
8005 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8006
8007 fi
8008
8009 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8010 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8011 inttypes.h stdint.h unistd.h
8012 do :
8013 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8014 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8015 "
8016 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8017 cat >>confdefs.h <<_ACEOF
8018 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8019 _ACEOF
8020
8021 fi
8022
8023 done
8024
8025
8026 for ac_header in dlfcn.h
8027 do :
8028 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8029 "
8030 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8031 cat >>confdefs.h <<_ACEOF
8032 #define HAVE_DLFCN_H 1
8033 _ACEOF
8034
8035 fi
8036
8037 done
8038
8039
8040
8041
8042
8043 # Set options
8044 enable_dlopen=yes
8045 # Check whether --enable-static was given.
8046 if test "${enable_static+set}" = set; then :
8047 enableval=$enable_static; p=${PACKAGE-default}
8048 case $enableval in
8049 yes) enable_static=yes ;;
8050 no) enable_static=no ;;
8051 *)
8052 enable_static=no
8053 # Look at the argument we got. We use all the common list separators.
8054 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8055 for pkg in $enableval; do
8056 IFS="$lt_save_ifs"
8057 if test "X$pkg" = "X$p"; then
8058 enable_static=yes
8059 fi
8060 done
8061 IFS="$lt_save_ifs"
8062 ;;
8063 esac
8064 else
8065 enable_static=no
8066 fi
8067
8068
8069
8070
8071
8072
8073
8074
8075
8076
8077
8078 enable_win32_dll=no
8079
8080
8081 # Check whether --enable-shared was given.
8082 if test "${enable_shared+set}" = set; then :
8083 enableval=$enable_shared; p=${PACKAGE-default}
8084 case $enableval in
8085 yes) enable_shared=yes ;;
8086 no) enable_shared=no ;;
8087 *)
8088 enable_shared=no
8089 # Look at the argument we got. We use all the common list separators.
8090 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8091 for pkg in $enableval; do
8092 IFS="$lt_save_ifs"
8093 if test "X$pkg" = "X$p"; then
8094 enable_shared=yes
8095 fi
8096 done
8097 IFS="$lt_save_ifs"
8098 ;;
8099 esac
8100 else
8101 enable_shared=yes
8102 fi
8103
8104
8105
8106
8107
8108
8109
8110
8111
8112
8113
8114 # Check whether --with-pic was given.
8115 if test "${with_pic+set}" = set; then :
8116 withval=$with_pic; lt_p=${PACKAGE-default}
8117 case $withval in
8118 yes|no) pic_mode=$withval ;;
8119 *)
8120 pic_mode=default
8121 # Look at the argument we got. We use all the common list separators.
8122 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8123 for lt_pkg in $withval; do
8124 IFS="$lt_save_ifs"
8125 if test "X$lt_pkg" = "X$lt_p"; then
8126 pic_mode=yes
8127 fi
8128 done
8129 IFS="$lt_save_ifs"
8130 ;;
8131 esac
8132 else
8133 pic_mode=default
8134 fi
8135
8136
8137 test -z "$pic_mode" && pic_mode=default
8138
8139
8140
8141
8142
8143
8144
8145 # Check whether --enable-fast-install was given.
8146 if test "${enable_fast_install+set}" = set; then :
8147 enableval=$enable_fast_install; p=${PACKAGE-default}
8148 case $enableval in
8149 yes) enable_fast_install=yes ;;
8150 no) enable_fast_install=no ;;
8151 *)
8152 enable_fast_install=no
8153 # Look at the argument we got. We use all the common list separators.
8154 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8155 for pkg in $enableval; do
8156 IFS="$lt_save_ifs"
8157 if test "X$pkg" = "X$p"; then
8158 enable_fast_install=yes
8159 fi
8160 done
8161 IFS="$lt_save_ifs"
8162 ;;
8163 esac
8164 else
8165 enable_fast_install=yes
8166 fi
8167
8168
8169
8170
8171
8172
8173
8174
8175
8176
8177
8178 # This can be used to rebuild libtool when needed
8179 LIBTOOL_DEPS="$ltmain"
8180
8181 # Always use our own libtool.
8182 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8183
8184
8185
8186
8187
8188
8189
8190
8191
8192
8193
8194
8195
8196
8197
8198
8199
8200
8201
8202
8203
8204
8205
8206
8207
8208
8209
8210
8211
8212
8213 test -z "$LN_S" && LN_S="ln -s"
8214
8215
8216
8217
8218
8219
8220
8221
8222
8223
8224
8225
8226
8227
8228 if test -n "${ZSH_VERSION+set}" ; then
8229 setopt NO_GLOB_SUBST
8230 fi
8231
8232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8233 $as_echo_n "checking for objdir... " >&6; }
8234 if ${lt_cv_objdir+:} false; then :
8235 $as_echo_n "(cached) " >&6
8236 else
8237 rm -f .libs 2>/dev/null
8238 mkdir .libs 2>/dev/null
8239 if test -d .libs; then
8240 lt_cv_objdir=.libs
8241 else
8242 # MS-DOS does not allow filenames that begin with a dot.
8243 lt_cv_objdir=_libs
8244 fi
8245 rmdir .libs 2>/dev/null
8246 fi
8247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8248 $as_echo "$lt_cv_objdir" >&6; }
8249 objdir=$lt_cv_objdir
8250
8251
8252
8253
8254
8255 cat >>confdefs.h <<_ACEOF
8256 #define LT_OBJDIR "$lt_cv_objdir/"
8257 _ACEOF
8258
8259
8260
8261
8262 case $host_os in
8263 aix3*)
8264 # AIX sometimes has problems with the GCC collect2 program. For some
8265 # reason, if we set the COLLECT_NAMES environment variable, the problems
8266 # vanish in a puff of smoke.
8267 if test "X${COLLECT_NAMES+set}" != Xset; then
8268 COLLECT_NAMES=
8269 export COLLECT_NAMES
8270 fi
8271 ;;
8272 esac
8273
8274 # Global variables:
8275 ofile=libtool
8276 can_build_shared=yes
8277
8278 # All known linkers require a `.a' archive for static linking (except MSVC,
8279 # which needs '.lib').
8280 libext=a
8281
8282 with_gnu_ld="$lt_cv_prog_gnu_ld"
8283
8284 old_CC="$CC"
8285 old_CFLAGS="$CFLAGS"
8286
8287 # Set sane defaults for various variables
8288 test -z "$CC" && CC=cc
8289 test -z "$LTCC" && LTCC=$CC
8290 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8291 test -z "$LD" && LD=ld
8292 test -z "$ac_objext" && ac_objext=o
8293
8294 for cc_temp in $compiler""; do
8295 case $cc_temp in
8296 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8297 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8298 \-*) ;;
8299 *) break;;
8300 esac
8301 done
8302 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8303
8304
8305 # Only perform the check for file, if the check method requires it
8306 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8307 case $deplibs_check_method in
8308 file_magic*)
8309 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8311 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8312 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8313 $as_echo_n "(cached) " >&6
8314 else
8315 case $MAGIC_CMD in
8316 [\\/*] | ?:[\\/]*)
8317 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8318 ;;
8319 *)
8320 lt_save_MAGIC_CMD="$MAGIC_CMD"
8321 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8322 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8323 for ac_dir in $ac_dummy; do
8324 IFS="$lt_save_ifs"
8325 test -z "$ac_dir" && ac_dir=.
8326 if test -f $ac_dir/${ac_tool_prefix}file; then
8327 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8328 if test -n "$file_magic_test_file"; then
8329 case $deplibs_check_method in
8330 "file_magic "*)
8331 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8332 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8333 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8334 $EGREP "$file_magic_regex" > /dev/null; then
8335 :
8336 else
8337 cat <<_LT_EOF 1>&2
8338
8339 *** Warning: the command libtool uses to detect shared libraries,
8340 *** $file_magic_cmd, produces output that libtool cannot recognize.
8341 *** The result is that libtool may fail to recognize shared libraries
8342 *** as such. This will affect the creation of libtool libraries that
8343 *** depend on shared libraries, but programs linked with such libtool
8344 *** libraries will work regardless of this problem. Nevertheless, you
8345 *** may want to report the problem to your system manager and/or to
8346 *** bug-libtool@gnu.org
8347
8348 _LT_EOF
8349 fi ;;
8350 esac
8351 fi
8352 break
8353 fi
8354 done
8355 IFS="$lt_save_ifs"
8356 MAGIC_CMD="$lt_save_MAGIC_CMD"
8357 ;;
8358 esac
8359 fi
8360
8361 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8362 if test -n "$MAGIC_CMD"; then
8363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8364 $as_echo "$MAGIC_CMD" >&6; }
8365 else
8366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8367 $as_echo "no" >&6; }
8368 fi
8369
8370
8371
8372
8373
8374 if test -z "$lt_cv_path_MAGIC_CMD"; then
8375 if test -n "$ac_tool_prefix"; then
8376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8377 $as_echo_n "checking for file... " >&6; }
8378 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8379 $as_echo_n "(cached) " >&6
8380 else
8381 case $MAGIC_CMD in
8382 [\\/*] | ?:[\\/]*)
8383 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8384 ;;
8385 *)
8386 lt_save_MAGIC_CMD="$MAGIC_CMD"
8387 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8388 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8389 for ac_dir in $ac_dummy; do
8390 IFS="$lt_save_ifs"
8391 test -z "$ac_dir" && ac_dir=.
8392 if test -f $ac_dir/file; then
8393 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8394 if test -n "$file_magic_test_file"; then
8395 case $deplibs_check_method in
8396 "file_magic "*)
8397 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8398 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8399 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8400 $EGREP "$file_magic_regex" > /dev/null; then
8401 :
8402 else
8403 cat <<_LT_EOF 1>&2
8404
8405 *** Warning: the command libtool uses to detect shared libraries,
8406 *** $file_magic_cmd, produces output that libtool cannot recognize.
8407 *** The result is that libtool may fail to recognize shared libraries
8408 *** as such. This will affect the creation of libtool libraries that
8409 *** depend on shared libraries, but programs linked with such libtool
8410 *** libraries will work regardless of this problem. Nevertheless, you
8411 *** may want to report the problem to your system manager and/or to
8412 *** bug-libtool@gnu.org
8413
8414 _LT_EOF
8415 fi ;;
8416 esac
8417 fi
8418 break
8419 fi
8420 done
8421 IFS="$lt_save_ifs"
8422 MAGIC_CMD="$lt_save_MAGIC_CMD"
8423 ;;
8424 esac
8425 fi
8426
8427 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8428 if test -n "$MAGIC_CMD"; then
8429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8430 $as_echo "$MAGIC_CMD" >&6; }
8431 else
8432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8433 $as_echo "no" >&6; }
8434 fi
8435
8436
8437 else
8438 MAGIC_CMD=:
8439 fi
8440 fi
8441
8442 fi
8443 ;;
8444 esac
8445
8446 # Use C for the default configuration in the libtool script
8447
8448 lt_save_CC="$CC"
8449 ac_ext=c
8450 ac_cpp='$CPP $CPPFLAGS'
8451 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8452 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8453 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8454
8455
8456 # Source file extension for C test sources.
8457 ac_ext=c
8458
8459 # Object file extension for compiled C test sources.
8460 objext=o
8461 objext=$objext
8462
8463 # Code to be used in simple compile tests
8464 lt_simple_compile_test_code="int some_variable = 0;"
8465
8466 # Code to be used in simple link tests
8467 lt_simple_link_test_code='int main(){return(0);}'
8468
8469
8470
8471
8472
8473
8474
8475 # If no C compiler was specified, use CC.
8476 LTCC=${LTCC-"$CC"}
8477
8478 # If no C compiler flags were specified, use CFLAGS.
8479 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8480
8481 # Allow CC to be a program name with arguments.
8482 compiler=$CC
8483
8484 # Save the default compiler, since it gets overwritten when the other
8485 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8486 compiler_DEFAULT=$CC
8487
8488 # save warnings/boilerplate of simple test code
8489 ac_outfile=conftest.$ac_objext
8490 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8491 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8492 _lt_compiler_boilerplate=`cat conftest.err`
8493 $RM conftest*
8494
8495 ac_outfile=conftest.$ac_objext
8496 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8497 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8498 _lt_linker_boilerplate=`cat conftest.err`
8499 $RM -r conftest*
8500
8501
8502 ## CAVEAT EMPTOR:
8503 ## There is no encapsulation within the following macros, do not change
8504 ## the running order or otherwise move them around unless you know exactly
8505 ## what you are doing...
8506 if test -n "$compiler"; then
8507
8508 lt_prog_compiler_no_builtin_flag=
8509
8510 if test "$GCC" = yes; then
8511 case $cc_basename in
8512 nvcc*)
8513 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8514 *)
8515 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8516 esac
8517
8518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8519 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8520 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8521 $as_echo_n "(cached) " >&6
8522 else
8523 lt_cv_prog_compiler_rtti_exceptions=no
8524 ac_outfile=conftest.$ac_objext
8525 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8526 lt_compiler_flag="-fno-rtti -fno-exceptions"
8527 # Insert the option either (1) after the last *FLAGS variable, or
8528 # (2) before a word containing "conftest.", or (3) at the end.
8529 # Note that $ac_compile itself does not contain backslashes and begins
8530 # with a dollar sign (not a hyphen), so the echo should work correctly.
8531 # The option is referenced via a variable to avoid confusing sed.
8532 lt_compile=`echo "$ac_compile" | $SED \
8533 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8534 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8535 -e 's:$: $lt_compiler_flag:'`
8536 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8537 (eval "$lt_compile" 2>conftest.err)
8538 ac_status=$?
8539 cat conftest.err >&5
8540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8541 if (exit $ac_status) && test -s "$ac_outfile"; then
8542 # The compiler can only warn and ignore the option if not recognized
8543 # So say no if there are warnings other than the usual output.
8544 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8545 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8546 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8547 lt_cv_prog_compiler_rtti_exceptions=yes
8548 fi
8549 fi
8550 $RM conftest*
8551
8552 fi
8553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8554 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8555
8556 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8557 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8558 else
8559 :
8560 fi
8561
8562 fi
8563
8564
8565
8566
8567
8568
8569 lt_prog_compiler_wl=
8570 lt_prog_compiler_pic=
8571 lt_prog_compiler_static=
8572
8573
8574 if test "$GCC" = yes; then
8575 lt_prog_compiler_wl='-Wl,'
8576 lt_prog_compiler_static='-static'
8577
8578 case $host_os in
8579 aix*)
8580 # All AIX code is PIC.
8581 if test "$host_cpu" = ia64; then
8582 # AIX 5 now supports IA64 processor
8583 lt_prog_compiler_static='-Bstatic'
8584 fi
8585 ;;
8586
8587 amigaos*)
8588 case $host_cpu in
8589 powerpc)
8590 # see comment about AmigaOS4 .so support
8591 lt_prog_compiler_pic='-fPIC'
8592 ;;
8593 m68k)
8594 # FIXME: we need at least 68020 code to build shared libraries, but
8595 # adding the `-m68020' flag to GCC prevents building anything better,
8596 # like `-m68040'.
8597 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8598 ;;
8599 esac
8600 ;;
8601
8602 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8603 # PIC is the default for these OSes.
8604 ;;
8605
8606 mingw* | cygwin* | pw32* | os2* | cegcc*)
8607 # This hack is so that the source file can tell whether it is being
8608 # built for inclusion in a dll (and should export symbols for example).
8609 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8610 # (--disable-auto-import) libraries
8611 lt_prog_compiler_pic='-DDLL_EXPORT'
8612 ;;
8613
8614 darwin* | rhapsody*)
8615 # PIC is the default on this platform
8616 # Common symbols not allowed in MH_DYLIB files
8617 lt_prog_compiler_pic='-fno-common'
8618 ;;
8619
8620 haiku*)
8621 # PIC is the default for Haiku.
8622 # The "-static" flag exists, but is broken.
8623 lt_prog_compiler_static=
8624 ;;
8625
8626 hpux*)
8627 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8628 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8629 # sets the default TLS model and affects inlining.
8630 case $host_cpu in
8631 hppa*64*)
8632 # +Z the default
8633 ;;
8634 *)
8635 lt_prog_compiler_pic='-fPIC'
8636 ;;
8637 esac
8638 ;;
8639
8640 interix[3-9]*)
8641 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8642 # Instead, we relocate shared libraries at runtime.
8643 ;;
8644
8645 msdosdjgpp*)
8646 # Just because we use GCC doesn't mean we suddenly get shared libraries
8647 # on systems that don't support them.
8648 lt_prog_compiler_can_build_shared=no
8649 enable_shared=no
8650 ;;
8651
8652 *nto* | *qnx*)
8653 # QNX uses GNU C++, but need to define -shared option too, otherwise
8654 # it will coredump.
8655 lt_prog_compiler_pic='-fPIC -shared'
8656 ;;
8657
8658 sysv4*MP*)
8659 if test -d /usr/nec; then
8660 lt_prog_compiler_pic=-Kconform_pic
8661 fi
8662 ;;
8663
8664 *)
8665 lt_prog_compiler_pic='-fPIC'
8666 ;;
8667 esac
8668
8669 case $cc_basename in
8670 nvcc*) # Cuda Compiler Driver 2.2
8671 lt_prog_compiler_wl='-Xlinker '
8672 if test -n "$lt_prog_compiler_pic"; then
8673 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8674 fi
8675 ;;
8676 esac
8677 else
8678 # PORTME Check for flag to pass linker flags through the system compiler.
8679 case $host_os in
8680 aix*)
8681 lt_prog_compiler_wl='-Wl,'
8682 if test "$host_cpu" = ia64; then
8683 # AIX 5 now supports IA64 processor
8684 lt_prog_compiler_static='-Bstatic'
8685 else
8686 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8687 fi
8688 ;;
8689
8690 mingw* | cygwin* | pw32* | os2* | cegcc*)
8691 # This hack is so that the source file can tell whether it is being
8692 # built for inclusion in a dll (and should export symbols for example).
8693 lt_prog_compiler_pic='-DDLL_EXPORT'
8694 ;;
8695
8696 hpux9* | hpux10* | hpux11*)
8697 lt_prog_compiler_wl='-Wl,'
8698 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8699 # not for PA HP-UX.
8700 case $host_cpu in
8701 hppa*64*|ia64*)
8702 # +Z the default
8703 ;;
8704 *)
8705 lt_prog_compiler_pic='+Z'
8706 ;;
8707 esac
8708 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8709 lt_prog_compiler_static='${wl}-a ${wl}archive'
8710 ;;
8711
8712 irix5* | irix6* | nonstopux*)
8713 lt_prog_compiler_wl='-Wl,'
8714 # PIC (with -KPIC) is the default.
8715 lt_prog_compiler_static='-non_shared'
8716 ;;
8717
8718 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8719 case $cc_basename in
8720 # old Intel for x86_64 which still supported -KPIC.
8721 ecc*)
8722 lt_prog_compiler_wl='-Wl,'
8723 lt_prog_compiler_pic='-KPIC'
8724 lt_prog_compiler_static='-static'
8725 ;;
8726 # icc used to be incompatible with GCC.
8727 # ICC 10 doesn't accept -KPIC any more.
8728 icc* | ifort*)
8729 lt_prog_compiler_wl='-Wl,'
8730 lt_prog_compiler_pic='-fPIC'
8731 lt_prog_compiler_static='-static'
8732 ;;
8733 # Lahey Fortran 8.1.
8734 lf95*)
8735 lt_prog_compiler_wl='-Wl,'
8736 lt_prog_compiler_pic='--shared'
8737 lt_prog_compiler_static='--static'
8738 ;;
8739 nagfor*)
8740 # NAG Fortran compiler
8741 lt_prog_compiler_wl='-Wl,-Wl,,'
8742 lt_prog_compiler_pic='-PIC'
8743 lt_prog_compiler_static='-Bstatic'
8744 ;;
8745 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8746 # Portland Group compilers (*not* the Pentium gcc compiler,
8747 # which looks to be a dead project)
8748 lt_prog_compiler_wl='-Wl,'
8749 lt_prog_compiler_pic='-fpic'
8750 lt_prog_compiler_static='-Bstatic'
8751 ;;
8752 ccc*)
8753 lt_prog_compiler_wl='-Wl,'
8754 # All Alpha code is PIC.
8755 lt_prog_compiler_static='-non_shared'
8756 ;;
8757 xl* | bgxl* | bgf* | mpixl*)
8758 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8759 lt_prog_compiler_wl='-Wl,'
8760 lt_prog_compiler_pic='-qpic'
8761 lt_prog_compiler_static='-qstaticlink'
8762 ;;
8763 *)
8764 case `$CC -V 2>&1 | sed 5q` in
8765 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8766 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8767 lt_prog_compiler_pic='-KPIC'
8768 lt_prog_compiler_static='-Bstatic'
8769 lt_prog_compiler_wl=''
8770 ;;
8771 *Sun\ F* | *Sun*Fortran*)
8772 lt_prog_compiler_pic='-KPIC'
8773 lt_prog_compiler_static='-Bstatic'
8774 lt_prog_compiler_wl='-Qoption ld '
8775 ;;
8776 *Sun\ C*)
8777 # Sun C 5.9
8778 lt_prog_compiler_pic='-KPIC'
8779 lt_prog_compiler_static='-Bstatic'
8780 lt_prog_compiler_wl='-Wl,'
8781 ;;
8782 *Intel*\ [CF]*Compiler*)
8783 lt_prog_compiler_wl='-Wl,'
8784 lt_prog_compiler_pic='-fPIC'
8785 lt_prog_compiler_static='-static'
8786 ;;
8787 *Portland\ Group*)
8788 lt_prog_compiler_wl='-Wl,'
8789 lt_prog_compiler_pic='-fpic'
8790 lt_prog_compiler_static='-Bstatic'
8791 ;;
8792 esac
8793 ;;
8794 esac
8795 ;;
8796
8797 newsos6)
8798 lt_prog_compiler_pic='-KPIC'
8799 lt_prog_compiler_static='-Bstatic'
8800 ;;
8801
8802 *nto* | *qnx*)
8803 # QNX uses GNU C++, but need to define -shared option too, otherwise
8804 # it will coredump.
8805 lt_prog_compiler_pic='-fPIC -shared'
8806 ;;
8807
8808 osf3* | osf4* | osf5*)
8809 lt_prog_compiler_wl='-Wl,'
8810 # All OSF/1 code is PIC.
8811 lt_prog_compiler_static='-non_shared'
8812 ;;
8813
8814 rdos*)
8815 lt_prog_compiler_static='-non_shared'
8816 ;;
8817
8818 solaris*)
8819 lt_prog_compiler_pic='-KPIC'
8820 lt_prog_compiler_static='-Bstatic'
8821 case $cc_basename in
8822 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8823 lt_prog_compiler_wl='-Qoption ld ';;
8824 *)
8825 lt_prog_compiler_wl='-Wl,';;
8826 esac
8827 ;;
8828
8829 sunos4*)
8830 lt_prog_compiler_wl='-Qoption ld '
8831 lt_prog_compiler_pic='-PIC'
8832 lt_prog_compiler_static='-Bstatic'
8833 ;;
8834
8835 sysv4 | sysv4.2uw2* | sysv4.3*)
8836 lt_prog_compiler_wl='-Wl,'
8837 lt_prog_compiler_pic='-KPIC'
8838 lt_prog_compiler_static='-Bstatic'
8839 ;;
8840
8841 sysv4*MP*)
8842 if test -d /usr/nec ;then
8843 lt_prog_compiler_pic='-Kconform_pic'
8844 lt_prog_compiler_static='-Bstatic'
8845 fi
8846 ;;
8847
8848 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8849 lt_prog_compiler_wl='-Wl,'
8850 lt_prog_compiler_pic='-KPIC'
8851 lt_prog_compiler_static='-Bstatic'
8852 ;;
8853
8854 unicos*)
8855 lt_prog_compiler_wl='-Wl,'
8856 lt_prog_compiler_can_build_shared=no
8857 ;;
8858
8859 uts4*)
8860 lt_prog_compiler_pic='-pic'
8861 lt_prog_compiler_static='-Bstatic'
8862 ;;
8863
8864 *)
8865 lt_prog_compiler_can_build_shared=no
8866 ;;
8867 esac
8868 fi
8869
8870 case $host_os in
8871 # For platforms which do not support PIC, -DPIC is meaningless:
8872 *djgpp*)
8873 lt_prog_compiler_pic=
8874 ;;
8875 *)
8876 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8877 ;;
8878 esac
8879
8880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8881 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8882 if ${lt_cv_prog_compiler_pic+:} false; then :
8883 $as_echo_n "(cached) " >&6
8884 else
8885 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8886 fi
8887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8888 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8889 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8890
8891 #
8892 # Check to make sure the PIC flag actually works.
8893 #
8894 if test -n "$lt_prog_compiler_pic"; then
8895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8896 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8897 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8898 $as_echo_n "(cached) " >&6
8899 else
8900 lt_cv_prog_compiler_pic_works=no
8901 ac_outfile=conftest.$ac_objext
8902 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8903 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8904 # Insert the option either (1) after the last *FLAGS variable, or
8905 # (2) before a word containing "conftest.", or (3) at the end.
8906 # Note that $ac_compile itself does not contain backslashes and begins
8907 # with a dollar sign (not a hyphen), so the echo should work correctly.
8908 # The option is referenced via a variable to avoid confusing sed.
8909 lt_compile=`echo "$ac_compile" | $SED \
8910 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8911 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8912 -e 's:$: $lt_compiler_flag:'`
8913 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8914 (eval "$lt_compile" 2>conftest.err)
8915 ac_status=$?
8916 cat conftest.err >&5
8917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8918 if (exit $ac_status) && test -s "$ac_outfile"; then
8919 # The compiler can only warn and ignore the option if not recognized
8920 # So say no if there are warnings other than the usual output.
8921 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8922 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8923 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8924 lt_cv_prog_compiler_pic_works=yes
8925 fi
8926 fi
8927 $RM conftest*
8928
8929 fi
8930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8931 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8932
8933 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8934 case $lt_prog_compiler_pic in
8935 "" | " "*) ;;
8936 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8937 esac
8938 else
8939 lt_prog_compiler_pic=
8940 lt_prog_compiler_can_build_shared=no
8941 fi
8942
8943 fi
8944
8945
8946
8947
8948
8949
8950
8951
8952
8953
8954
8955 #
8956 # Check to make sure the static flag actually works.
8957 #
8958 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8960 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8961 if ${lt_cv_prog_compiler_static_works+:} false; then :
8962 $as_echo_n "(cached) " >&6
8963 else
8964 lt_cv_prog_compiler_static_works=no
8965 save_LDFLAGS="$LDFLAGS"
8966 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8967 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8968 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8969 # The linker can only warn and ignore the option if not recognized
8970 # So say no if there are warnings
8971 if test -s conftest.err; then
8972 # Append any errors to the config.log.
8973 cat conftest.err 1>&5
8974 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8975 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8976 if diff conftest.exp conftest.er2 >/dev/null; then
8977 lt_cv_prog_compiler_static_works=yes
8978 fi
8979 else
8980 lt_cv_prog_compiler_static_works=yes
8981 fi
8982 fi
8983 $RM -r conftest*
8984 LDFLAGS="$save_LDFLAGS"
8985
8986 fi
8987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8988 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8989
8990 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8991 :
8992 else
8993 lt_prog_compiler_static=
8994 fi
8995
8996
8997
8998
8999
9000
9001
9002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9003 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9004 if ${lt_cv_prog_compiler_c_o+:} false; then :
9005 $as_echo_n "(cached) " >&6
9006 else
9007 lt_cv_prog_compiler_c_o=no
9008 $RM -r conftest 2>/dev/null
9009 mkdir conftest
9010 cd conftest
9011 mkdir out
9012 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9013
9014 lt_compiler_flag="-o out/conftest2.$ac_objext"
9015 # Insert the option either (1) after the last *FLAGS variable, or
9016 # (2) before a word containing "conftest.", or (3) at the end.
9017 # Note that $ac_compile itself does not contain backslashes and begins
9018 # with a dollar sign (not a hyphen), so the echo should work correctly.
9019 lt_compile=`echo "$ac_compile" | $SED \
9020 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9021 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9022 -e 's:$: $lt_compiler_flag:'`
9023 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9024 (eval "$lt_compile" 2>out/conftest.err)
9025 ac_status=$?
9026 cat out/conftest.err >&5
9027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9028 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9029 then
9030 # The compiler can only warn and ignore the option if not recognized
9031 # So say no if there are warnings
9032 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9033 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9034 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9035 lt_cv_prog_compiler_c_o=yes
9036 fi
9037 fi
9038 chmod u+w . 2>&5
9039 $RM conftest*
9040 # SGI C++ compiler will create directory out/ii_files/ for
9041 # template instantiation
9042 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9043 $RM out/* && rmdir out
9044 cd ..
9045 $RM -r conftest
9046 $RM conftest*
9047
9048 fi
9049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9050 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9051
9052
9053
9054
9055
9056
9057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9058 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9059 if ${lt_cv_prog_compiler_c_o+:} false; then :
9060 $as_echo_n "(cached) " >&6
9061 else
9062 lt_cv_prog_compiler_c_o=no
9063 $RM -r conftest 2>/dev/null
9064 mkdir conftest
9065 cd conftest
9066 mkdir out
9067 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9068
9069 lt_compiler_flag="-o out/conftest2.$ac_objext"
9070 # Insert the option either (1) after the last *FLAGS variable, or
9071 # (2) before a word containing "conftest.", or (3) at the end.
9072 # Note that $ac_compile itself does not contain backslashes and begins
9073 # with a dollar sign (not a hyphen), so the echo should work correctly.
9074 lt_compile=`echo "$ac_compile" | $SED \
9075 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9076 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9077 -e 's:$: $lt_compiler_flag:'`
9078 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9079 (eval "$lt_compile" 2>out/conftest.err)
9080 ac_status=$?
9081 cat out/conftest.err >&5
9082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9083 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9084 then
9085 # The compiler can only warn and ignore the option if not recognized
9086 # So say no if there are warnings
9087 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9088 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9089 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9090 lt_cv_prog_compiler_c_o=yes
9091 fi
9092 fi
9093 chmod u+w . 2>&5
9094 $RM conftest*
9095 # SGI C++ compiler will create directory out/ii_files/ for
9096 # template instantiation
9097 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9098 $RM out/* && rmdir out
9099 cd ..
9100 $RM -r conftest
9101 $RM conftest*
9102
9103 fi
9104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9105 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9106
9107
9108
9109
9110 hard_links="nottested"
9111 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9112 # do not overwrite the value of need_locks provided by the user
9113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9114 $as_echo_n "checking if we can lock with hard links... " >&6; }
9115 hard_links=yes
9116 $RM conftest*
9117 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9118 touch conftest.a
9119 ln conftest.a conftest.b 2>&5 || hard_links=no
9120 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9122 $as_echo "$hard_links" >&6; }
9123 if test "$hard_links" = no; then
9124 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9125 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9126 need_locks=warn
9127 fi
9128 else
9129 need_locks=no
9130 fi
9131
9132
9133
9134
9135
9136
9137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9138 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9139
9140 runpath_var=
9141 allow_undefined_flag=
9142 always_export_symbols=no
9143 archive_cmds=
9144 archive_expsym_cmds=
9145 compiler_needs_object=no
9146 enable_shared_with_static_runtimes=no
9147 export_dynamic_flag_spec=
9148 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9149 hardcode_automatic=no
9150 hardcode_direct=no
9151 hardcode_direct_absolute=no
9152 hardcode_libdir_flag_spec=
9153 hardcode_libdir_separator=
9154 hardcode_minus_L=no
9155 hardcode_shlibpath_var=unsupported
9156 inherit_rpath=no
9157 link_all_deplibs=unknown
9158 module_cmds=
9159 module_expsym_cmds=
9160 old_archive_from_new_cmds=
9161 old_archive_from_expsyms_cmds=
9162 thread_safe_flag_spec=
9163 whole_archive_flag_spec=
9164 # include_expsyms should be a list of space-separated symbols to be *always*
9165 # included in the symbol list
9166 include_expsyms=
9167 # exclude_expsyms can be an extended regexp of symbols to exclude
9168 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9169 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9170 # as well as any symbol that contains `d'.
9171 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9172 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9173 # platforms (ab)use it in PIC code, but their linkers get confused if
9174 # the symbol is explicitly referenced. Since portable code cannot
9175 # rely on this symbol name, it's probably fine to never include it in
9176 # preloaded symbol tables.
9177 # Exclude shared library initialization/finalization symbols.
9178 extract_expsyms_cmds=
9179
9180 case $host_os in
9181 cygwin* | mingw* | pw32* | cegcc*)
9182 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9183 # When not using gcc, we currently assume that we are using
9184 # Microsoft Visual C++.
9185 if test "$GCC" != yes; then
9186 with_gnu_ld=no
9187 fi
9188 ;;
9189 interix*)
9190 # we just hope/assume this is gcc and not c89 (= MSVC++)
9191 with_gnu_ld=yes
9192 ;;
9193 openbsd*)
9194 with_gnu_ld=no
9195 ;;
9196 esac
9197
9198 ld_shlibs=yes
9199
9200 # On some targets, GNU ld is compatible enough with the native linker
9201 # that we're better off using the native interface for both.
9202 lt_use_gnu_ld_interface=no
9203 if test "$with_gnu_ld" = yes; then
9204 case $host_os in
9205 aix*)
9206 # The AIX port of GNU ld has always aspired to compatibility
9207 # with the native linker. However, as the warning in the GNU ld
9208 # block says, versions before 2.19.5* couldn't really create working
9209 # shared libraries, regardless of the interface used.
9210 case `$LD -v 2>&1` in
9211 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9212 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9213 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9214 *)
9215 lt_use_gnu_ld_interface=yes
9216 ;;
9217 esac
9218 ;;
9219 *)
9220 lt_use_gnu_ld_interface=yes
9221 ;;
9222 esac
9223 fi
9224
9225 if test "$lt_use_gnu_ld_interface" = yes; then
9226 # If archive_cmds runs LD, not CC, wlarc should be empty
9227 wlarc='${wl}'
9228
9229 # Set some defaults for GNU ld with shared library support. These
9230 # are reset later if shared libraries are not supported. Putting them
9231 # here allows them to be overridden if necessary.
9232 runpath_var=LD_RUN_PATH
9233 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9234 export_dynamic_flag_spec='${wl}--export-dynamic'
9235 # ancient GNU ld didn't support --whole-archive et. al.
9236 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9237 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9238 else
9239 whole_archive_flag_spec=
9240 fi
9241 supports_anon_versioning=no
9242 case `$LD -v 2>&1` in
9243 *GNU\ gold*) supports_anon_versioning=yes ;;
9244 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9245 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9246 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9247 *\ 2.11.*) ;; # other 2.11 versions
9248 *) supports_anon_versioning=yes ;;
9249 esac
9250
9251 # See if GNU ld supports shared libraries.
9252 case $host_os in
9253 aix[3-9]*)
9254 # On AIX/PPC, the GNU linker is very broken
9255 if test "$host_cpu" != ia64; then
9256 ld_shlibs=no
9257 cat <<_LT_EOF 1>&2
9258
9259 *** Warning: the GNU linker, at least up to release 2.19, is reported
9260 *** to be unable to reliably create shared libraries on AIX.
9261 *** Therefore, libtool is disabling shared libraries support. If you
9262 *** really care for shared libraries, you may want to install binutils
9263 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9264 *** You will then need to restart the configuration process.
9265
9266 _LT_EOF
9267 fi
9268 ;;
9269
9270 amigaos*)
9271 case $host_cpu in
9272 powerpc)
9273 # see comment about AmigaOS4 .so support
9274 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9275 archive_expsym_cmds=''
9276 ;;
9277 m68k)
9278 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)'
9279 hardcode_libdir_flag_spec='-L$libdir'
9280 hardcode_minus_L=yes
9281 ;;
9282 esac
9283 ;;
9284
9285 beos*)
9286 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9287 allow_undefined_flag=unsupported
9288 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9289 # support --undefined. This deserves some investigation. FIXME
9290 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9291 else
9292 ld_shlibs=no
9293 fi
9294 ;;
9295
9296 cygwin* | mingw* | pw32* | cegcc*)
9297 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9298 # as there is no search path for DLLs.
9299 hardcode_libdir_flag_spec='-L$libdir'
9300 export_dynamic_flag_spec='${wl}--export-all-symbols'
9301 allow_undefined_flag=unsupported
9302 always_export_symbols=no
9303 enable_shared_with_static_runtimes=yes
9304 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'
9305 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9306
9307 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9308 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9309 # If the export-symbols file already is a .def file (1st line
9310 # is EXPORTS), use it as is; otherwise, prepend...
9311 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9312 cp $export_symbols $output_objdir/$soname.def;
9313 else
9314 echo EXPORTS > $output_objdir/$soname.def;
9315 cat $export_symbols >> $output_objdir/$soname.def;
9316 fi~
9317 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9318 else
9319 ld_shlibs=no
9320 fi
9321 ;;
9322
9323 haiku*)
9324 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9325 link_all_deplibs=yes
9326 ;;
9327
9328 interix[3-9]*)
9329 hardcode_direct=no
9330 hardcode_shlibpath_var=no
9331 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9332 export_dynamic_flag_spec='${wl}-E'
9333 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9334 # Instead, shared libraries are loaded at an image base (0x10000000 by
9335 # default) and relocated if they conflict, which is a slow very memory
9336 # consuming and fragmenting process. To avoid this, we pick a random,
9337 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9338 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9339 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9340 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'
9341 ;;
9342
9343 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9344 tmp_diet=no
9345 if test "$host_os" = linux-dietlibc; then
9346 case $cc_basename in
9347 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9348 esac
9349 fi
9350 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9351 && test "$tmp_diet" = no
9352 then
9353 tmp_addflag=' $pic_flag'
9354 tmp_sharedflag='-shared'
9355 case $cc_basename,$host_cpu in
9356 pgcc*) # Portland Group C compiler
9357 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'
9358 tmp_addflag=' $pic_flag'
9359 ;;
9360 pgf77* | pgf90* | pgf95* | pgfortran*)
9361 # Portland Group f77 and f90 compilers
9362 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'
9363 tmp_addflag=' $pic_flag -Mnomain' ;;
9364 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9365 tmp_addflag=' -i_dynamic' ;;
9366 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9367 tmp_addflag=' -i_dynamic -nofor_main' ;;
9368 ifc* | ifort*) # Intel Fortran compiler
9369 tmp_addflag=' -nofor_main' ;;
9370 lf95*) # Lahey Fortran 8.1
9371 whole_archive_flag_spec=
9372 tmp_sharedflag='--shared' ;;
9373 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9374 tmp_sharedflag='-qmkshrobj'
9375 tmp_addflag= ;;
9376 nvcc*) # Cuda Compiler Driver 2.2
9377 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'
9378 compiler_needs_object=yes
9379 ;;
9380 esac
9381 case `$CC -V 2>&1 | sed 5q` in
9382 *Sun\ C*) # Sun C 5.9
9383 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'
9384 compiler_needs_object=yes
9385 tmp_sharedflag='-G' ;;
9386 *Sun\ F*) # Sun Fortran 8.3
9387 tmp_sharedflag='-G' ;;
9388 esac
9389 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9390
9391 if test "x$supports_anon_versioning" = xyes; then
9392 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9393 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9394 echo "local: *; };" >> $output_objdir/$libname.ver~
9395 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9396 fi
9397
9398 case $cc_basename in
9399 xlf* | bgf* | bgxlf* | mpixlf*)
9400 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9401 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9402 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9403 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9404 if test "x$supports_anon_versioning" = xyes; then
9405 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9406 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9407 echo "local: *; };" >> $output_objdir/$libname.ver~
9408 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9409 fi
9410 ;;
9411 esac
9412 else
9413 ld_shlibs=no
9414 fi
9415 ;;
9416
9417 netbsd*)
9418 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9419 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9420 wlarc=
9421 else
9422 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9423 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9424 fi
9425 ;;
9426
9427 solaris*)
9428 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9429 ld_shlibs=no
9430 cat <<_LT_EOF 1>&2
9431
9432 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9433 *** create shared libraries on Solaris systems. Therefore, libtool
9434 *** is disabling shared libraries support. We urge you to upgrade GNU
9435 *** binutils to release 2.9.1 or newer. Another option is to modify
9436 *** your PATH or compiler configuration so that the native linker is
9437 *** used, and then restart.
9438
9439 _LT_EOF
9440 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9441 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9442 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9443 else
9444 ld_shlibs=no
9445 fi
9446 ;;
9447
9448 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9449 case `$LD -v 2>&1` in
9450 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9451 ld_shlibs=no
9452 cat <<_LT_EOF 1>&2
9453
9454 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9455 *** reliably create shared libraries on SCO systems. Therefore, libtool
9456 *** is disabling shared libraries support. We urge you to upgrade GNU
9457 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9458 *** your PATH or compiler configuration so that the native linker is
9459 *** used, and then restart.
9460
9461 _LT_EOF
9462 ;;
9463 *)
9464 # For security reasons, it is highly recommended that you always
9465 # use absolute paths for naming shared libraries, and exclude the
9466 # DT_RUNPATH tag from executables and libraries. But doing so
9467 # requires that you compile everything twice, which is a pain.
9468 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9469 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9470 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9471 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9472 else
9473 ld_shlibs=no
9474 fi
9475 ;;
9476 esac
9477 ;;
9478
9479 sunos4*)
9480 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9481 wlarc=
9482 hardcode_direct=yes
9483 hardcode_shlibpath_var=no
9484 ;;
9485
9486 *)
9487 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9488 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9489 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9490 else
9491 ld_shlibs=no
9492 fi
9493 ;;
9494 esac
9495
9496 if test "$ld_shlibs" = no; then
9497 runpath_var=
9498 hardcode_libdir_flag_spec=
9499 export_dynamic_flag_spec=
9500 whole_archive_flag_spec=
9501 fi
9502 else
9503 # PORTME fill in a description of your system's linker (not GNU ld)
9504 case $host_os in
9505 aix3*)
9506 allow_undefined_flag=unsupported
9507 always_export_symbols=yes
9508 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'
9509 # Note: this linker hardcodes the directories in LIBPATH if there
9510 # are no directories specified by -L.
9511 hardcode_minus_L=yes
9512 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9513 # Neither direct hardcoding nor static linking is supported with a
9514 # broken collect2.
9515 hardcode_direct=unsupported
9516 fi
9517 ;;
9518
9519 aix[4-9]*)
9520 if test "$host_cpu" = ia64; then
9521 # On IA64, the linker does run time linking by default, so we don't
9522 # have to do anything special.
9523 aix_use_runtimelinking=no
9524 exp_sym_flag='-Bexport'
9525 no_entry_flag=""
9526 else
9527 # If we're using GNU nm, then we don't want the "-C" option.
9528 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9529 # Also, AIX nm treats weak defined symbols like other global
9530 # defined symbols, whereas GNU nm marks them as "W".
9531 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9532 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'
9533 else
9534 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'
9535 fi
9536 aix_use_runtimelinking=no
9537
9538 # Test if we are trying to use run time linking or normal
9539 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9540 # need to do runtime linking.
9541 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9542 for ld_flag in $LDFLAGS; do
9543 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9544 aix_use_runtimelinking=yes
9545 break
9546 fi
9547 done
9548 ;;
9549 esac
9550
9551 exp_sym_flag='-bexport'
9552 no_entry_flag='-bnoentry'
9553 fi
9554
9555 # When large executables or shared objects are built, AIX ld can
9556 # have problems creating the table of contents. If linking a library
9557 # or program results in "error TOC overflow" add -mminimal-toc to
9558 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9559 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9560
9561 archive_cmds=''
9562 hardcode_direct=yes
9563 hardcode_direct_absolute=yes
9564 hardcode_libdir_separator=':'
9565 link_all_deplibs=yes
9566 file_list_spec='${wl}-f,'
9567
9568 if test "$GCC" = yes; then
9569 case $host_os in aix4.[012]|aix4.[012].*)
9570 # We only want to do this on AIX 4.2 and lower, the check
9571 # below for broken collect2 doesn't work under 4.3+
9572 collect2name=`${CC} -print-prog-name=collect2`
9573 if test -f "$collect2name" &&
9574 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9575 then
9576 # We have reworked collect2
9577 :
9578 else
9579 # We have old collect2
9580 hardcode_direct=unsupported
9581 # It fails to find uninstalled libraries when the uninstalled
9582 # path is not listed in the libpath. Setting hardcode_minus_L
9583 # to unsupported forces relinking
9584 hardcode_minus_L=yes
9585 hardcode_libdir_flag_spec='-L$libdir'
9586 hardcode_libdir_separator=
9587 fi
9588 ;;
9589 esac
9590 shared_flag='-shared'
9591 if test "$aix_use_runtimelinking" = yes; then
9592 shared_flag="$shared_flag "'${wl}-G'
9593 fi
9594 else
9595 # not using gcc
9596 if test "$host_cpu" = ia64; then
9597 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9598 # chokes on -Wl,-G. The following line is correct:
9599 shared_flag='-G'
9600 else
9601 if test "$aix_use_runtimelinking" = yes; then
9602 shared_flag='${wl}-G'
9603 else
9604 shared_flag='${wl}-bM:SRE'
9605 fi
9606 fi
9607 fi
9608
9609 export_dynamic_flag_spec='${wl}-bexpall'
9610 # It seems that -bexpall does not export symbols beginning with
9611 # underscore (_), so it is better to generate a list of symbols to export.
9612 always_export_symbols=yes
9613 if test "$aix_use_runtimelinking" = yes; then
9614 # Warning - without using the other runtime loading flags (-brtl),
9615 # -berok will link without error, but may produce a broken library.
9616 allow_undefined_flag='-berok'
9617 # Determine the default libpath from the value encoded in an
9618 # empty executable.
9619 if test "${lt_cv_aix_libpath+set}" = set; then
9620 aix_libpath=$lt_cv_aix_libpath
9621 else
9622 if ${lt_cv_aix_libpath_+:} false; then :
9623 $as_echo_n "(cached) " >&6
9624 else
9625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9626 /* end confdefs.h. */
9627
9628 int
9629 main ()
9630 {
9631
9632 ;
9633 return 0;
9634 }
9635 _ACEOF
9636 if ac_fn_c_try_link "$LINENO"; then :
9637
9638 lt_aix_libpath_sed='
9639 /Import File Strings/,/^$/ {
9640 /^0/ {
9641 s/^0 *\([^ ]*\) *$/\1/
9642 p
9643 }
9644 }'
9645 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9646 # Check for a 64-bit object if we didn't find anything.
9647 if test -z "$lt_cv_aix_libpath_"; then
9648 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9649 fi
9650 fi
9651 rm -f core conftest.err conftest.$ac_objext \
9652 conftest$ac_exeext conftest.$ac_ext
9653 if test -z "$lt_cv_aix_libpath_"; then
9654 lt_cv_aix_libpath_="/usr/lib:/lib"
9655 fi
9656
9657 fi
9658
9659 aix_libpath=$lt_cv_aix_libpath_
9660 fi
9661
9662 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9663 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"
9664 else
9665 if test "$host_cpu" = ia64; then
9666 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9667 allow_undefined_flag="-z nodefs"
9668 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"
9669 else
9670 # Determine the default libpath from the value encoded in an
9671 # empty executable.
9672 if test "${lt_cv_aix_libpath+set}" = set; then
9673 aix_libpath=$lt_cv_aix_libpath
9674 else
9675 if ${lt_cv_aix_libpath_+:} false; then :
9676 $as_echo_n "(cached) " >&6
9677 else
9678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9679 /* end confdefs.h. */
9680
9681 int
9682 main ()
9683 {
9684
9685 ;
9686 return 0;
9687 }
9688 _ACEOF
9689 if ac_fn_c_try_link "$LINENO"; then :
9690
9691 lt_aix_libpath_sed='
9692 /Import File Strings/,/^$/ {
9693 /^0/ {
9694 s/^0 *\([^ ]*\) *$/\1/
9695 p
9696 }
9697 }'
9698 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9699 # Check for a 64-bit object if we didn't find anything.
9700 if test -z "$lt_cv_aix_libpath_"; then
9701 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9702 fi
9703 fi
9704 rm -f core conftest.err conftest.$ac_objext \
9705 conftest$ac_exeext conftest.$ac_ext
9706 if test -z "$lt_cv_aix_libpath_"; then
9707 lt_cv_aix_libpath_="/usr/lib:/lib"
9708 fi
9709
9710 fi
9711
9712 aix_libpath=$lt_cv_aix_libpath_
9713 fi
9714
9715 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9716 # Warning - without using the other run time loading flags,
9717 # -berok will link without error, but may produce a broken library.
9718 no_undefined_flag=' ${wl}-bernotok'
9719 allow_undefined_flag=' ${wl}-berok'
9720 if test "$with_gnu_ld" = yes; then
9721 # We only use this code for GNU lds that support --whole-archive.
9722 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9723 else
9724 # Exported symbols can be pulled into shared objects from archives
9725 whole_archive_flag_spec='$convenience'
9726 fi
9727 archive_cmds_need_lc=yes
9728 # This is similar to how AIX traditionally builds its shared libraries.
9729 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'
9730 fi
9731 fi
9732 ;;
9733
9734 amigaos*)
9735 case $host_cpu in
9736 powerpc)
9737 # see comment about AmigaOS4 .so support
9738 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9739 archive_expsym_cmds=''
9740 ;;
9741 m68k)
9742 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)'
9743 hardcode_libdir_flag_spec='-L$libdir'
9744 hardcode_minus_L=yes
9745 ;;
9746 esac
9747 ;;
9748
9749 bsdi[45]*)
9750 export_dynamic_flag_spec=-rdynamic
9751 ;;
9752
9753 cygwin* | mingw* | pw32* | cegcc*)
9754 # When not using gcc, we currently assume that we are using
9755 # Microsoft Visual C++.
9756 # hardcode_libdir_flag_spec is actually meaningless, as there is
9757 # no search path for DLLs.
9758 case $cc_basename in
9759 cl*)
9760 # Native MSVC
9761 hardcode_libdir_flag_spec=' '
9762 allow_undefined_flag=unsupported
9763 always_export_symbols=yes
9764 file_list_spec='@'
9765 # Tell ltmain to make .lib files, not .a files.
9766 libext=lib
9767 # Tell ltmain to make .dll files, not .so files.
9768 shrext_cmds=".dll"
9769 # FIXME: Setting linknames here is a bad hack.
9770 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9771 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9772 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9773 else
9774 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9775 fi~
9776 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9777 linknames='
9778 # The linker will not automatically build a static lib if we build a DLL.
9779 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9780 enable_shared_with_static_runtimes=yes
9781 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9782 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9783 # Don't use ranlib
9784 old_postinstall_cmds='chmod 644 $oldlib'
9785 postlink_cmds='lt_outputfile="@OUTPUT@"~
9786 lt_tool_outputfile="@TOOL_OUTPUT@"~
9787 case $lt_outputfile in
9788 *.exe|*.EXE) ;;
9789 *)
9790 lt_outputfile="$lt_outputfile.exe"
9791 lt_tool_outputfile="$lt_tool_outputfile.exe"
9792 ;;
9793 esac~
9794 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9795 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9796 $RM "$lt_outputfile.manifest";
9797 fi'
9798 ;;
9799 *)
9800 # Assume MSVC wrapper
9801 hardcode_libdir_flag_spec=' '
9802 allow_undefined_flag=unsupported
9803 # Tell ltmain to make .lib files, not .a files.
9804 libext=lib
9805 # Tell ltmain to make .dll files, not .so files.
9806 shrext_cmds=".dll"
9807 # FIXME: Setting linknames here is a bad hack.
9808 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9809 # The linker will automatically build a .lib file if we build a DLL.
9810 old_archive_from_new_cmds='true'
9811 # FIXME: Should let the user specify the lib program.
9812 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9813 enable_shared_with_static_runtimes=yes
9814 ;;
9815 esac
9816 ;;
9817
9818 darwin* | rhapsody*)
9819
9820
9821 archive_cmds_need_lc=no
9822 hardcode_direct=no
9823 hardcode_automatic=yes
9824 hardcode_shlibpath_var=unsupported
9825 if test "$lt_cv_ld_force_load" = "yes"; then
9826 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\"`'
9827
9828 else
9829 whole_archive_flag_spec=''
9830 fi
9831 link_all_deplibs=yes
9832 allow_undefined_flag="$_lt_dar_allow_undefined"
9833 case $cc_basename in
9834 ifort*) _lt_dar_can_shared=yes ;;
9835 *) _lt_dar_can_shared=$GCC ;;
9836 esac
9837 if test "$_lt_dar_can_shared" = "yes"; then
9838 output_verbose_link_cmd=func_echo_all
9839 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9840 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9841 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}"
9842 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}"
9843
9844 else
9845 ld_shlibs=no
9846 fi
9847
9848 ;;
9849
9850 dgux*)
9851 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9852 hardcode_libdir_flag_spec='-L$libdir'
9853 hardcode_shlibpath_var=no
9854 ;;
9855
9856 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9857 # support. Future versions do this automatically, but an explicit c++rt0.o
9858 # does not break anything, and helps significantly (at the cost of a little
9859 # extra space).
9860 freebsd2.2*)
9861 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9862 hardcode_libdir_flag_spec='-R$libdir'
9863 hardcode_direct=yes
9864 hardcode_shlibpath_var=no
9865 ;;
9866
9867 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9868 freebsd2.*)
9869 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9870 hardcode_direct=yes
9871 hardcode_minus_L=yes
9872 hardcode_shlibpath_var=no
9873 ;;
9874
9875 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9876 freebsd* | dragonfly*)
9877 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9878 hardcode_libdir_flag_spec='-R$libdir'
9879 hardcode_direct=yes
9880 hardcode_shlibpath_var=no
9881 ;;
9882
9883 hpux9*)
9884 if test "$GCC" = yes; then
9885 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'
9886 else
9887 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'
9888 fi
9889 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9890 hardcode_libdir_separator=:
9891 hardcode_direct=yes
9892
9893 # hardcode_minus_L: Not really in the search PATH,
9894 # but as the default location of the library.
9895 hardcode_minus_L=yes
9896 export_dynamic_flag_spec='${wl}-E'
9897 ;;
9898
9899 hpux10*)
9900 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9901 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9902 else
9903 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9904 fi
9905 if test "$with_gnu_ld" = no; then
9906 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9907 hardcode_libdir_separator=:
9908 hardcode_direct=yes
9909 hardcode_direct_absolute=yes
9910 export_dynamic_flag_spec='${wl}-E'
9911 # hardcode_minus_L: Not really in the search PATH,
9912 # but as the default location of the library.
9913 hardcode_minus_L=yes
9914 fi
9915 ;;
9916
9917 hpux11*)
9918 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9919 case $host_cpu in
9920 hppa*64*)
9921 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9922 ;;
9923 ia64*)
9924 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9925 ;;
9926 *)
9927 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9928 ;;
9929 esac
9930 else
9931 case $host_cpu in
9932 hppa*64*)
9933 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9934 ;;
9935 ia64*)
9936 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9937 ;;
9938 *)
9939
9940 # Older versions of the 11.00 compiler do not understand -b yet
9941 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9943 $as_echo_n "checking if $CC understands -b... " >&6; }
9944 if ${lt_cv_prog_compiler__b+:} false; then :
9945 $as_echo_n "(cached) " >&6
9946 else
9947 lt_cv_prog_compiler__b=no
9948 save_LDFLAGS="$LDFLAGS"
9949 LDFLAGS="$LDFLAGS -b"
9950 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9951 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9952 # The linker can only warn and ignore the option if not recognized
9953 # So say no if there are warnings
9954 if test -s conftest.err; then
9955 # Append any errors to the config.log.
9956 cat conftest.err 1>&5
9957 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9958 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9959 if diff conftest.exp conftest.er2 >/dev/null; then
9960 lt_cv_prog_compiler__b=yes
9961 fi
9962 else
9963 lt_cv_prog_compiler__b=yes
9964 fi
9965 fi
9966 $RM -r conftest*
9967 LDFLAGS="$save_LDFLAGS"
9968
9969 fi
9970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9971 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9972
9973 if test x"$lt_cv_prog_compiler__b" = xyes; then
9974 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9975 else
9976 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9977 fi
9978
9979 ;;
9980 esac
9981 fi
9982 if test "$with_gnu_ld" = no; then
9983 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9984 hardcode_libdir_separator=:
9985
9986 case $host_cpu in
9987 hppa*64*|ia64*)
9988 hardcode_direct=no
9989 hardcode_shlibpath_var=no
9990 ;;
9991 *)
9992 hardcode_direct=yes
9993 hardcode_direct_absolute=yes
9994 export_dynamic_flag_spec='${wl}-E'
9995
9996 # hardcode_minus_L: Not really in the search PATH,
9997 # but as the default location of the library.
9998 hardcode_minus_L=yes
9999 ;;
10000 esac
10001 fi
10002 ;;
10003
10004 irix5* | irix6* | nonstopux*)
10005 if test "$GCC" = yes; then
10006 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'
10007 # Try to use the -exported_symbol ld option, if it does not
10008 # work, assume that -exports_file does not work either and
10009 # implicitly export all symbols.
10010 # This should be the same for all languages, so no per-tag cache variable.
10011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10012 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10013 if ${lt_cv_irix_exported_symbol+:} false; then :
10014 $as_echo_n "(cached) " >&6
10015 else
10016 save_LDFLAGS="$LDFLAGS"
10017 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10019 /* end confdefs.h. */
10020 int foo (void) { return 0; }
10021 _ACEOF
10022 if ac_fn_c_try_link "$LINENO"; then :
10023 lt_cv_irix_exported_symbol=yes
10024 else
10025 lt_cv_irix_exported_symbol=no
10026 fi
10027 rm -f core conftest.err conftest.$ac_objext \
10028 conftest$ac_exeext conftest.$ac_ext
10029 LDFLAGS="$save_LDFLAGS"
10030 fi
10031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10032 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10033 if test "$lt_cv_irix_exported_symbol" = yes; then
10034 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'
10035 fi
10036 else
10037 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'
10038 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'
10039 fi
10040 archive_cmds_need_lc='no'
10041 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10042 hardcode_libdir_separator=:
10043 inherit_rpath=yes
10044 link_all_deplibs=yes
10045 ;;
10046
10047 netbsd*)
10048 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10049 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10050 else
10051 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10052 fi
10053 hardcode_libdir_flag_spec='-R$libdir'
10054 hardcode_direct=yes
10055 hardcode_shlibpath_var=no
10056 ;;
10057
10058 newsos6)
10059 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10060 hardcode_direct=yes
10061 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10062 hardcode_libdir_separator=:
10063 hardcode_shlibpath_var=no
10064 ;;
10065
10066 *nto* | *qnx*)
10067 ;;
10068
10069 openbsd*)
10070 if test -f /usr/libexec/ld.so; then
10071 hardcode_direct=yes
10072 hardcode_shlibpath_var=no
10073 hardcode_direct_absolute=yes
10074 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10075 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10076 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10077 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10078 export_dynamic_flag_spec='${wl}-E'
10079 else
10080 case $host_os in
10081 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10082 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10083 hardcode_libdir_flag_spec='-R$libdir'
10084 ;;
10085 *)
10086 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10087 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10088 ;;
10089 esac
10090 fi
10091 else
10092 ld_shlibs=no
10093 fi
10094 ;;
10095
10096 os2*)
10097 hardcode_libdir_flag_spec='-L$libdir'
10098 hardcode_minus_L=yes
10099 allow_undefined_flag=unsupported
10100 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'
10101 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10102 ;;
10103
10104 osf3*)
10105 if test "$GCC" = yes; then
10106 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10107 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'
10108 else
10109 allow_undefined_flag=' -expect_unresolved \*'
10110 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'
10111 fi
10112 archive_cmds_need_lc='no'
10113 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10114 hardcode_libdir_separator=:
10115 ;;
10116
10117 osf4* | osf5*) # as osf3* with the addition of -msym flag
10118 if test "$GCC" = yes; then
10119 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10120 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'
10121 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10122 else
10123 allow_undefined_flag=' -expect_unresolved \*'
10124 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'
10125 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~
10126 $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'
10127
10128 # Both c and cxx compiler support -rpath directly
10129 hardcode_libdir_flag_spec='-rpath $libdir'
10130 fi
10131 archive_cmds_need_lc='no'
10132 hardcode_libdir_separator=:
10133 ;;
10134
10135 solaris*)
10136 no_undefined_flag=' -z defs'
10137 if test "$GCC" = yes; then
10138 wlarc='${wl}'
10139 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10140 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10141 $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'
10142 else
10143 case `$CC -V 2>&1` in
10144 *"Compilers 5.0"*)
10145 wlarc=''
10146 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10147 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10148 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10149 ;;
10150 *)
10151 wlarc='${wl}'
10152 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10153 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10154 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10155 ;;
10156 esac
10157 fi
10158 hardcode_libdir_flag_spec='-R$libdir'
10159 hardcode_shlibpath_var=no
10160 case $host_os in
10161 solaris2.[0-5] | solaris2.[0-5].*) ;;
10162 *)
10163 # The compiler driver will combine and reorder linker options,
10164 # but understands `-z linker_flag'. GCC discards it without `$wl',
10165 # but is careful enough not to reorder.
10166 # Supported since Solaris 2.6 (maybe 2.5.1?)
10167 if test "$GCC" = yes; then
10168 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10169 else
10170 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10171 fi
10172 ;;
10173 esac
10174 link_all_deplibs=yes
10175 ;;
10176
10177 sunos4*)
10178 if test "x$host_vendor" = xsequent; then
10179 # Use $CC to link under sequent, because it throws in some extra .o
10180 # files that make .init and .fini sections work.
10181 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10182 else
10183 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10184 fi
10185 hardcode_libdir_flag_spec='-L$libdir'
10186 hardcode_direct=yes
10187 hardcode_minus_L=yes
10188 hardcode_shlibpath_var=no
10189 ;;
10190
10191 sysv4)
10192 case $host_vendor in
10193 sni)
10194 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10195 hardcode_direct=yes # is this really true???
10196 ;;
10197 siemens)
10198 ## LD is ld it makes a PLAMLIB
10199 ## CC just makes a GrossModule.
10200 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10201 reload_cmds='$CC -r -o $output$reload_objs'
10202 hardcode_direct=no
10203 ;;
10204 motorola)
10205 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10206 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10207 ;;
10208 esac
10209 runpath_var='LD_RUN_PATH'
10210 hardcode_shlibpath_var=no
10211 ;;
10212
10213 sysv4.3*)
10214 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10215 hardcode_shlibpath_var=no
10216 export_dynamic_flag_spec='-Bexport'
10217 ;;
10218
10219 sysv4*MP*)
10220 if test -d /usr/nec; then
10221 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10222 hardcode_shlibpath_var=no
10223 runpath_var=LD_RUN_PATH
10224 hardcode_runpath_var=yes
10225 ld_shlibs=yes
10226 fi
10227 ;;
10228
10229 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10230 no_undefined_flag='${wl}-z,text'
10231 archive_cmds_need_lc=no
10232 hardcode_shlibpath_var=no
10233 runpath_var='LD_RUN_PATH'
10234
10235 if test "$GCC" = yes; then
10236 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10237 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10238 else
10239 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10240 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10241 fi
10242 ;;
10243
10244 sysv5* | sco3.2v5* | sco5v6*)
10245 # Note: We can NOT use -z defs as we might desire, because we do not
10246 # link with -lc, and that would cause any symbols used from libc to
10247 # always be unresolved, which means just about no library would
10248 # ever link correctly. If we're not using GNU ld we use -z text
10249 # though, which does catch some bad symbols but isn't as heavy-handed
10250 # as -z defs.
10251 no_undefined_flag='${wl}-z,text'
10252 allow_undefined_flag='${wl}-z,nodefs'
10253 archive_cmds_need_lc=no
10254 hardcode_shlibpath_var=no
10255 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10256 hardcode_libdir_separator=':'
10257 link_all_deplibs=yes
10258 export_dynamic_flag_spec='${wl}-Bexport'
10259 runpath_var='LD_RUN_PATH'
10260
10261 if test "$GCC" = yes; then
10262 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10263 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10264 else
10265 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10266 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10267 fi
10268 ;;
10269
10270 uts4*)
10271 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10272 hardcode_libdir_flag_spec='-L$libdir'
10273 hardcode_shlibpath_var=no
10274 ;;
10275
10276 *)
10277 ld_shlibs=no
10278 ;;
10279 esac
10280
10281 if test x$host_vendor = xsni; then
10282 case $host in
10283 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10284 export_dynamic_flag_spec='${wl}-Blargedynsym'
10285 ;;
10286 esac
10287 fi
10288 fi
10289
10290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10291 $as_echo "$ld_shlibs" >&6; }
10292 test "$ld_shlibs" = no && can_build_shared=no
10293
10294 with_gnu_ld=$with_gnu_ld
10295
10296
10297
10298
10299
10300
10301
10302
10303
10304
10305
10306
10307
10308
10309
10310 #
10311 # Do we need to explicitly link libc?
10312 #
10313 case "x$archive_cmds_need_lc" in
10314 x|xyes)
10315 # Assume -lc should be added
10316 archive_cmds_need_lc=yes
10317
10318 if test "$enable_shared" = yes && test "$GCC" = yes; then
10319 case $archive_cmds in
10320 *'~'*)
10321 # FIXME: we may have to deal with multi-command sequences.
10322 ;;
10323 '$CC '*)
10324 # Test whether the compiler implicitly links with -lc since on some
10325 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10326 # to ld, don't add -lc before -lgcc.
10327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10328 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10329 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10330 $as_echo_n "(cached) " >&6
10331 else
10332 $RM conftest*
10333 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10334
10335 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10336 (eval $ac_compile) 2>&5
10337 ac_status=$?
10338 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10339 test $ac_status = 0; } 2>conftest.err; then
10340 soname=conftest
10341 lib=conftest
10342 libobjs=conftest.$ac_objext
10343 deplibs=
10344 wl=$lt_prog_compiler_wl
10345 pic_flag=$lt_prog_compiler_pic
10346 compiler_flags=-v
10347 linker_flags=-v
10348 verstring=
10349 output_objdir=.
10350 libname=conftest
10351 lt_save_allow_undefined_flag=$allow_undefined_flag
10352 allow_undefined_flag=
10353 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10354 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10355 ac_status=$?
10356 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10357 test $ac_status = 0; }
10358 then
10359 lt_cv_archive_cmds_need_lc=no
10360 else
10361 lt_cv_archive_cmds_need_lc=yes
10362 fi
10363 allow_undefined_flag=$lt_save_allow_undefined_flag
10364 else
10365 cat conftest.err 1>&5
10366 fi
10367 $RM conftest*
10368
10369 fi
10370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10371 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10372 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10373 ;;
10374 esac
10375 fi
10376 ;;
10377 esac
10378
10379
10380
10381
10382
10383
10384
10385
10386
10387
10388
10389
10390
10391
10392
10393
10394
10395
10396
10397
10398
10399
10400
10401
10402
10403
10404
10405
10406
10407
10408
10409
10410
10411
10412
10413
10414
10415
10416
10417
10418
10419
10420
10421
10422
10423
10424
10425
10426
10427
10428
10429
10430
10431
10432
10433
10434
10435
10436
10437
10438
10439
10440
10441
10442
10443
10444
10445
10446
10447
10448
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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10531 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10532
10533 if test "$GCC" = yes; then
10534 case $host_os in
10535 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10536 *) lt_awk_arg="/^libraries:/" ;;
10537 esac
10538 case $host_os in
10539 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10540 *) lt_sed_strip_eq="s,=/,/,g" ;;
10541 esac
10542 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10543 case $lt_search_path_spec in
10544 *\;*)
10545 # if the path contains ";" then we assume it to be the separator
10546 # otherwise default to the standard path separator (i.e. ":") - it is
10547 # assumed that no part of a normal pathname contains ";" but that should
10548 # okay in the real world where ";" in dirpaths is itself problematic.
10549 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10550 ;;
10551 *)
10552 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10553 ;;
10554 esac
10555 # Ok, now we have the path, separated by spaces, we can step through it
10556 # and add multilib dir if necessary.
10557 lt_tmp_lt_search_path_spec=
10558 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10559 for lt_sys_path in $lt_search_path_spec; do
10560 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10561 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10562 else
10563 test -d "$lt_sys_path" && \
10564 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10565 fi
10566 done
10567 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10568 BEGIN {RS=" "; FS="/|\n";} {
10569 lt_foo="";
10570 lt_count=0;
10571 for (lt_i = NF; lt_i > 0; lt_i--) {
10572 if ($lt_i != "" && $lt_i != ".") {
10573 if ($lt_i == "..") {
10574 lt_count++;
10575 } else {
10576 if (lt_count == 0) {
10577 lt_foo="/" $lt_i lt_foo;
10578 } else {
10579 lt_count--;
10580 }
10581 }
10582 }
10583 }
10584 if (lt_foo != "") { lt_freq[lt_foo]++; }
10585 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10586 }'`
10587 # AWK program above erroneously prepends '/' to C:/dos/paths
10588 # for these hosts.
10589 case $host_os in
10590 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10591 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10592 esac
10593 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10594 else
10595 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10596 fi
10597 library_names_spec=
10598 libname_spec='lib$name'
10599 soname_spec=
10600 shrext_cmds=".so"
10601 postinstall_cmds=
10602 postuninstall_cmds=
10603 finish_cmds=
10604 finish_eval=
10605 shlibpath_var=
10606 shlibpath_overrides_runpath=unknown
10607 version_type=none
10608 dynamic_linker="$host_os ld.so"
10609 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10610 need_lib_prefix=unknown
10611 hardcode_into_libs=no
10612
10613 # when you set need_version to no, make sure it does not cause -set_version
10614 # flags to be left without arguments
10615 need_version=unknown
10616
10617 case $host_os in
10618 aix3*)
10619 version_type=linux # correct to gnu/linux during the next big refactor
10620 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10621 shlibpath_var=LIBPATH
10622
10623 # AIX 3 has no versioning support, so we append a major version to the name.
10624 soname_spec='${libname}${release}${shared_ext}$major'
10625 ;;
10626
10627 aix[4-9]*)
10628 version_type=linux # correct to gnu/linux during the next big refactor
10629 need_lib_prefix=no
10630 need_version=no
10631 hardcode_into_libs=yes
10632 if test "$host_cpu" = ia64; then
10633 # AIX 5 supports IA64
10634 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10635 shlibpath_var=LD_LIBRARY_PATH
10636 else
10637 # With GCC up to 2.95.x, collect2 would create an import file
10638 # for dependence libraries. The import file would start with
10639 # the line `#! .'. This would cause the generated library to
10640 # depend on `.', always an invalid library. This was fixed in
10641 # development snapshots of GCC prior to 3.0.
10642 case $host_os in
10643 aix4 | aix4.[01] | aix4.[01].*)
10644 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10645 echo ' yes '
10646 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10647 :
10648 else
10649 can_build_shared=no
10650 fi
10651 ;;
10652 esac
10653 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10654 # soname into executable. Probably we can add versioning support to
10655 # collect2, so additional links can be useful in future.
10656 if test "$aix_use_runtimelinking" = yes; then
10657 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10658 # instead of lib<name>.a to let people know that these are not
10659 # typical AIX shared libraries.
10660 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10661 else
10662 # We preserve .a as extension for shared libraries through AIX4.2
10663 # and later when we are not doing run time linking.
10664 library_names_spec='${libname}${release}.a $libname.a'
10665 soname_spec='${libname}${release}${shared_ext}$major'
10666 fi
10667 shlibpath_var=LIBPATH
10668 fi
10669 ;;
10670
10671 amigaos*)
10672 case $host_cpu in
10673 powerpc)
10674 # Since July 2007 AmigaOS4 officially supports .so libraries.
10675 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10676 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10677 ;;
10678 m68k)
10679 library_names_spec='$libname.ixlibrary $libname.a'
10680 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10681 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'
10682 ;;
10683 esac
10684 ;;
10685
10686 beos*)
10687 library_names_spec='${libname}${shared_ext}'
10688 dynamic_linker="$host_os ld.so"
10689 shlibpath_var=LIBRARY_PATH
10690 ;;
10691
10692 bsdi[45]*)
10693 version_type=linux # correct to gnu/linux during the next big refactor
10694 need_version=no
10695 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10696 soname_spec='${libname}${release}${shared_ext}$major'
10697 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10698 shlibpath_var=LD_LIBRARY_PATH
10699 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10700 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10701 # the default ld.so.conf also contains /usr/contrib/lib and
10702 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10703 # libtool to hard-code these into programs
10704 ;;
10705
10706 cygwin* | mingw* | pw32* | cegcc*)
10707 version_type=windows
10708 shrext_cmds=".dll"
10709 need_version=no
10710 need_lib_prefix=no
10711
10712 case $GCC,$cc_basename in
10713 yes,*)
10714 # gcc
10715 library_names_spec='$libname.dll.a'
10716 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10717 postinstall_cmds='base_file=`basename \${file}`~
10718 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10719 dldir=$destdir/`dirname \$dlpath`~
10720 test -d \$dldir || mkdir -p \$dldir~
10721 $install_prog $dir/$dlname \$dldir/$dlname~
10722 chmod a+x \$dldir/$dlname~
10723 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10724 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10725 fi'
10726 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10727 dlpath=$dir/\$dldll~
10728 $RM \$dlpath'
10729 shlibpath_overrides_runpath=yes
10730
10731 case $host_os in
10732 cygwin*)
10733 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10734 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10735
10736 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10737 ;;
10738 mingw* | cegcc*)
10739 # MinGW DLLs use traditional 'lib' prefix
10740 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10741 ;;
10742 pw32*)
10743 # pw32 DLLs use 'pw' prefix rather than 'lib'
10744 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10745 ;;
10746 esac
10747 dynamic_linker='Win32 ld.exe'
10748 ;;
10749
10750 *,cl*)
10751 # Native MSVC
10752 libname_spec='$name'
10753 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10754 library_names_spec='${libname}.dll.lib'
10755
10756 case $build_os in
10757 mingw*)
10758 sys_lib_search_path_spec=
10759 lt_save_ifs=$IFS
10760 IFS=';'
10761 for lt_path in $LIB
10762 do
10763 IFS=$lt_save_ifs
10764 # Let DOS variable expansion print the short 8.3 style file name.
10765 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10766 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10767 done
10768 IFS=$lt_save_ifs
10769 # Convert to MSYS style.
10770 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10771 ;;
10772 cygwin*)
10773 # Convert to unix form, then to dos form, then back to unix form
10774 # but this time dos style (no spaces!) so that the unix form looks
10775 # like /cygdrive/c/PROGRA~1:/cygdr...
10776 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10777 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10778 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10779 ;;
10780 *)
10781 sys_lib_search_path_spec="$LIB"
10782 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10783 # It is most probably a Windows format PATH.
10784 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10785 else
10786 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10787 fi
10788 # FIXME: find the short name or the path components, as spaces are
10789 # common. (e.g. "Program Files" -> "PROGRA~1")
10790 ;;
10791 esac
10792
10793 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10794 postinstall_cmds='base_file=`basename \${file}`~
10795 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10796 dldir=$destdir/`dirname \$dlpath`~
10797 test -d \$dldir || mkdir -p \$dldir~
10798 $install_prog $dir/$dlname \$dldir/$dlname'
10799 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10800 dlpath=$dir/\$dldll~
10801 $RM \$dlpath'
10802 shlibpath_overrides_runpath=yes
10803 dynamic_linker='Win32 link.exe'
10804 ;;
10805
10806 *)
10807 # Assume MSVC wrapper
10808 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10809 dynamic_linker='Win32 ld.exe'
10810 ;;
10811 esac
10812 # FIXME: first we should search . and the directory the executable is in
10813 shlibpath_var=PATH
10814 ;;
10815
10816 darwin* | rhapsody*)
10817 dynamic_linker="$host_os dyld"
10818 version_type=darwin
10819 need_lib_prefix=no
10820 need_version=no
10821 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10822 soname_spec='${libname}${release}${major}$shared_ext'
10823 shlibpath_overrides_runpath=yes
10824 shlibpath_var=DYLD_LIBRARY_PATH
10825 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10826
10827 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10828 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10829 ;;
10830
10831 dgux*)
10832 version_type=linux # correct to gnu/linux during the next big refactor
10833 need_lib_prefix=no
10834 need_version=no
10835 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10836 soname_spec='${libname}${release}${shared_ext}$major'
10837 shlibpath_var=LD_LIBRARY_PATH
10838 ;;
10839
10840 freebsd* | dragonfly*)
10841 # DragonFly does not have aout. When/if they implement a new
10842 # versioning mechanism, adjust this.
10843 if test -x /usr/bin/objformat; then
10844 objformat=`/usr/bin/objformat`
10845 else
10846 case $host_os in
10847 freebsd[23].*) objformat=aout ;;
10848 *) objformat=elf ;;
10849 esac
10850 fi
10851 version_type=freebsd-$objformat
10852 case $version_type in
10853 freebsd-elf*)
10854 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10855 need_version=no
10856 need_lib_prefix=no
10857 ;;
10858 freebsd-*)
10859 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10860 need_version=yes
10861 ;;
10862 esac
10863 shlibpath_var=LD_LIBRARY_PATH
10864 case $host_os in
10865 freebsd2.*)
10866 shlibpath_overrides_runpath=yes
10867 ;;
10868 freebsd3.[01]* | freebsdelf3.[01]*)
10869 shlibpath_overrides_runpath=yes
10870 hardcode_into_libs=yes
10871 ;;
10872 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10873 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10874 shlibpath_overrides_runpath=no
10875 hardcode_into_libs=yes
10876 ;;
10877 *) # from 4.6 on, and DragonFly
10878 shlibpath_overrides_runpath=yes
10879 hardcode_into_libs=yes
10880 ;;
10881 esac
10882 ;;
10883
10884 gnu*)
10885 version_type=linux # correct to gnu/linux during the next big refactor
10886 need_lib_prefix=no
10887 need_version=no
10888 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10889 soname_spec='${libname}${release}${shared_ext}$major'
10890 shlibpath_var=LD_LIBRARY_PATH
10891 shlibpath_overrides_runpath=no
10892 hardcode_into_libs=yes
10893 ;;
10894
10895 haiku*)
10896 version_type=linux # correct to gnu/linux during the next big refactor
10897 need_lib_prefix=no
10898 need_version=no
10899 dynamic_linker="$host_os runtime_loader"
10900 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10901 soname_spec='${libname}${release}${shared_ext}$major'
10902 shlibpath_var=LIBRARY_PATH
10903 shlibpath_overrides_runpath=yes
10904 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10905 hardcode_into_libs=yes
10906 ;;
10907
10908 hpux9* | hpux10* | hpux11*)
10909 # Give a soname corresponding to the major version so that dld.sl refuses to
10910 # link against other versions.
10911 version_type=sunos
10912 need_lib_prefix=no
10913 need_version=no
10914 case $host_cpu in
10915 ia64*)
10916 shrext_cmds='.so'
10917 hardcode_into_libs=yes
10918 dynamic_linker="$host_os dld.so"
10919 shlibpath_var=LD_LIBRARY_PATH
10920 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10921 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10922 soname_spec='${libname}${release}${shared_ext}$major'
10923 if test "X$HPUX_IA64_MODE" = X32; then
10924 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10925 else
10926 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10927 fi
10928 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10929 ;;
10930 hppa*64*)
10931 shrext_cmds='.sl'
10932 hardcode_into_libs=yes
10933 dynamic_linker="$host_os dld.sl"
10934 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10935 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10936 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10937 soname_spec='${libname}${release}${shared_ext}$major'
10938 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10939 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10940 ;;
10941 *)
10942 shrext_cmds='.sl'
10943 dynamic_linker="$host_os dld.sl"
10944 shlibpath_var=SHLIB_PATH
10945 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10946 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10947 soname_spec='${libname}${release}${shared_ext}$major'
10948 ;;
10949 esac
10950 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10951 postinstall_cmds='chmod 555 $lib'
10952 # or fails outright, so override atomically:
10953 install_override_mode=555
10954 ;;
10955
10956 interix[3-9]*)
10957 version_type=linux # correct to gnu/linux during the next big refactor
10958 need_lib_prefix=no
10959 need_version=no
10960 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10961 soname_spec='${libname}${release}${shared_ext}$major'
10962 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10963 shlibpath_var=LD_LIBRARY_PATH
10964 shlibpath_overrides_runpath=no
10965 hardcode_into_libs=yes
10966 ;;
10967
10968 irix5* | irix6* | nonstopux*)
10969 case $host_os in
10970 nonstopux*) version_type=nonstopux ;;
10971 *)
10972 if test "$lt_cv_prog_gnu_ld" = yes; then
10973 version_type=linux # correct to gnu/linux during the next big refactor
10974 else
10975 version_type=irix
10976 fi ;;
10977 esac
10978 need_lib_prefix=no
10979 need_version=no
10980 soname_spec='${libname}${release}${shared_ext}$major'
10981 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10982 case $host_os in
10983 irix5* | nonstopux*)
10984 libsuff= shlibsuff=
10985 ;;
10986 *)
10987 case $LD in # libtool.m4 will add one of these switches to LD
10988 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10989 libsuff= shlibsuff= libmagic=32-bit;;
10990 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10991 libsuff=32 shlibsuff=N32 libmagic=N32;;
10992 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10993 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10994 *) libsuff= shlibsuff= libmagic=never-match;;
10995 esac
10996 ;;
10997 esac
10998 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10999 shlibpath_overrides_runpath=no
11000 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11001 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11002 hardcode_into_libs=yes
11003 ;;
11004
11005 # No shared lib support for Linux oldld, aout, or coff.
11006 linux*oldld* | linux*aout* | linux*coff*)
11007 dynamic_linker=no
11008 ;;
11009
11010 # This must be glibc/ELF.
11011 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11012 version_type=linux # correct to gnu/linux during the next big refactor
11013 need_lib_prefix=no
11014 need_version=no
11015 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11016 soname_spec='${libname}${release}${shared_ext}$major'
11017 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11018 shlibpath_var=LD_LIBRARY_PATH
11019 shlibpath_overrides_runpath=no
11020
11021 # Some binutils ld are patched to set DT_RUNPATH
11022 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11023 $as_echo_n "(cached) " >&6
11024 else
11025 lt_cv_shlibpath_overrides_runpath=no
11026 save_LDFLAGS=$LDFLAGS
11027 save_libdir=$libdir
11028 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11029 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11031 /* end confdefs.h. */
11032
11033 int
11034 main ()
11035 {
11036
11037 ;
11038 return 0;
11039 }
11040 _ACEOF
11041 if ac_fn_c_try_link "$LINENO"; then :
11042 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11043 lt_cv_shlibpath_overrides_runpath=yes
11044 fi
11045 fi
11046 rm -f core conftest.err conftest.$ac_objext \
11047 conftest$ac_exeext conftest.$ac_ext
11048 LDFLAGS=$save_LDFLAGS
11049 libdir=$save_libdir
11050
11051 fi
11052
11053 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11054
11055 # This implies no fast_install, which is unacceptable.
11056 # Some rework will be needed to allow for fast_install
11057 # before this can be enabled.
11058 hardcode_into_libs=yes
11059
11060 # Append ld.so.conf contents to the search path
11061 if test -f /etc/ld.so.conf; then
11062 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' ' '`
11063 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11064 fi
11065
11066 # We used to test for /lib/ld.so.1 and disable shared libraries on
11067 # powerpc, because MkLinux only supported shared libraries with the
11068 # GNU dynamic linker. Since this was broken with cross compilers,
11069 # most powerpc-linux boxes support dynamic linking these days and
11070 # people can always --disable-shared, the test was removed, and we
11071 # assume the GNU/Linux dynamic linker is in use.
11072 dynamic_linker='GNU/Linux ld.so'
11073 ;;
11074
11075 netbsd*)
11076 version_type=sunos
11077 need_lib_prefix=no
11078 need_version=no
11079 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11080 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11081 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11082 dynamic_linker='NetBSD (a.out) ld.so'
11083 else
11084 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11085 soname_spec='${libname}${release}${shared_ext}$major'
11086 dynamic_linker='NetBSD ld.elf_so'
11087 fi
11088 shlibpath_var=LD_LIBRARY_PATH
11089 shlibpath_overrides_runpath=yes
11090 hardcode_into_libs=yes
11091 ;;
11092
11093 newsos6)
11094 version_type=linux # correct to gnu/linux during the next big refactor
11095 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11096 shlibpath_var=LD_LIBRARY_PATH
11097 shlibpath_overrides_runpath=yes
11098 ;;
11099
11100 *nto* | *qnx*)
11101 version_type=qnx
11102 need_lib_prefix=no
11103 need_version=no
11104 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11105 soname_spec='${libname}${release}${shared_ext}$major'
11106 shlibpath_var=LD_LIBRARY_PATH
11107 shlibpath_overrides_runpath=no
11108 hardcode_into_libs=yes
11109 dynamic_linker='ldqnx.so'
11110 ;;
11111
11112 openbsd*)
11113 version_type=sunos
11114 sys_lib_dlsearch_path_spec="/usr/lib"
11115 need_lib_prefix=no
11116 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11117 case $host_os in
11118 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11119 *) need_version=no ;;
11120 esac
11121 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11122 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11123 shlibpath_var=LD_LIBRARY_PATH
11124 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11125 case $host_os in
11126 openbsd2.[89] | openbsd2.[89].*)
11127 shlibpath_overrides_runpath=no
11128 ;;
11129 *)
11130 shlibpath_overrides_runpath=yes
11131 ;;
11132 esac
11133 else
11134 shlibpath_overrides_runpath=yes
11135 fi
11136 ;;
11137
11138 os2*)
11139 libname_spec='$name'
11140 shrext_cmds=".dll"
11141 need_lib_prefix=no
11142 library_names_spec='$libname${shared_ext} $libname.a'
11143 dynamic_linker='OS/2 ld.exe'
11144 shlibpath_var=LIBPATH
11145 ;;
11146
11147 osf3* | osf4* | osf5*)
11148 version_type=osf
11149 need_lib_prefix=no
11150 need_version=no
11151 soname_spec='${libname}${release}${shared_ext}$major'
11152 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11153 shlibpath_var=LD_LIBRARY_PATH
11154 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11155 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11156 ;;
11157
11158 rdos*)
11159 dynamic_linker=no
11160 ;;
11161
11162 solaris*)
11163 version_type=linux # correct to gnu/linux during the next big refactor
11164 need_lib_prefix=no
11165 need_version=no
11166 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11167 soname_spec='${libname}${release}${shared_ext}$major'
11168 shlibpath_var=LD_LIBRARY_PATH
11169 shlibpath_overrides_runpath=yes
11170 hardcode_into_libs=yes
11171 # ldd complains unless libraries are executable
11172 postinstall_cmds='chmod +x $lib'
11173 ;;
11174
11175 sunos4*)
11176 version_type=sunos
11177 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11178 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11179 shlibpath_var=LD_LIBRARY_PATH
11180 shlibpath_overrides_runpath=yes
11181 if test "$with_gnu_ld" = yes; then
11182 need_lib_prefix=no
11183 fi
11184 need_version=yes
11185 ;;
11186
11187 sysv4 | sysv4.3*)
11188 version_type=linux # correct to gnu/linux during the next big refactor
11189 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11190 soname_spec='${libname}${release}${shared_ext}$major'
11191 shlibpath_var=LD_LIBRARY_PATH
11192 case $host_vendor in
11193 sni)
11194 shlibpath_overrides_runpath=no
11195 need_lib_prefix=no
11196 runpath_var=LD_RUN_PATH
11197 ;;
11198 siemens)
11199 need_lib_prefix=no
11200 ;;
11201 motorola)
11202 need_lib_prefix=no
11203 need_version=no
11204 shlibpath_overrides_runpath=no
11205 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11206 ;;
11207 esac
11208 ;;
11209
11210 sysv4*MP*)
11211 if test -d /usr/nec ;then
11212 version_type=linux # correct to gnu/linux during the next big refactor
11213 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11214 soname_spec='$libname${shared_ext}.$major'
11215 shlibpath_var=LD_LIBRARY_PATH
11216 fi
11217 ;;
11218
11219 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11220 version_type=freebsd-elf
11221 need_lib_prefix=no
11222 need_version=no
11223 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11224 soname_spec='${libname}${release}${shared_ext}$major'
11225 shlibpath_var=LD_LIBRARY_PATH
11226 shlibpath_overrides_runpath=yes
11227 hardcode_into_libs=yes
11228 if test "$with_gnu_ld" = yes; then
11229 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11230 else
11231 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11232 case $host_os in
11233 sco3.2v5*)
11234 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11235 ;;
11236 esac
11237 fi
11238 sys_lib_dlsearch_path_spec='/usr/lib'
11239 ;;
11240
11241 tpf*)
11242 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11243 version_type=linux # correct to gnu/linux during the next big refactor
11244 need_lib_prefix=no
11245 need_version=no
11246 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11247 shlibpath_var=LD_LIBRARY_PATH
11248 shlibpath_overrides_runpath=no
11249 hardcode_into_libs=yes
11250 ;;
11251
11252 uts4*)
11253 version_type=linux # correct to gnu/linux during the next big refactor
11254 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11255 soname_spec='${libname}${release}${shared_ext}$major'
11256 shlibpath_var=LD_LIBRARY_PATH
11257 ;;
11258
11259 *)
11260 dynamic_linker=no
11261 ;;
11262 esac
11263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11264 $as_echo "$dynamic_linker" >&6; }
11265 test "$dynamic_linker" = no && can_build_shared=no
11266
11267 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11268 if test "$GCC" = yes; then
11269 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11270 fi
11271
11272 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11273 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11274 fi
11275 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11276 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11277 fi
11278
11279
11280
11281
11282
11283
11284
11285
11286
11287
11288
11289
11290
11291
11292
11293
11294
11295
11296
11297
11298
11299
11300
11301
11302
11303
11304
11305
11306
11307
11308
11309
11310
11311
11312
11313
11314
11315
11316
11317
11318
11319
11320
11321
11322
11323
11324
11325
11326
11327
11328
11329
11330
11331
11332
11333
11334
11335
11336
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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11371 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11372 hardcode_action=
11373 if test -n "$hardcode_libdir_flag_spec" ||
11374 test -n "$runpath_var" ||
11375 test "X$hardcode_automatic" = "Xyes" ; then
11376
11377 # We can hardcode non-existent directories.
11378 if test "$hardcode_direct" != no &&
11379 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11380 # have to relink, otherwise we might link with an installed library
11381 # when we should be linking with a yet-to-be-installed one
11382 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11383 test "$hardcode_minus_L" != no; then
11384 # Linking always hardcodes the temporary library directory.
11385 hardcode_action=relink
11386 else
11387 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11388 hardcode_action=immediate
11389 fi
11390 else
11391 # We cannot hardcode anything, or else we can only hardcode existing
11392 # directories.
11393 hardcode_action=unsupported
11394 fi
11395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11396 $as_echo "$hardcode_action" >&6; }
11397
11398 if test "$hardcode_action" = relink ||
11399 test "$inherit_rpath" = yes; then
11400 # Fast installation is not supported
11401 enable_fast_install=no
11402 elif test "$shlibpath_overrides_runpath" = yes ||
11403 test "$enable_shared" = no; then
11404 # Fast installation is not necessary
11405 enable_fast_install=needless
11406 fi
11407
11408
11409
11410
11411
11412
11413 if test "x$enable_dlopen" != xyes; then
11414 enable_dlopen=unknown
11415 enable_dlopen_self=unknown
11416 enable_dlopen_self_static=unknown
11417 else
11418 lt_cv_dlopen=no
11419 lt_cv_dlopen_libs=
11420
11421 case $host_os in
11422 beos*)
11423 lt_cv_dlopen="load_add_on"
11424 lt_cv_dlopen_libs=
11425 lt_cv_dlopen_self=yes
11426 ;;
11427
11428 mingw* | pw32* | cegcc*)
11429 lt_cv_dlopen="LoadLibrary"
11430 lt_cv_dlopen_libs=
11431 ;;
11432
11433 cygwin*)
11434 lt_cv_dlopen="dlopen"
11435 lt_cv_dlopen_libs=
11436 ;;
11437
11438 darwin*)
11439 # if libdl is installed we need to link against it
11440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11441 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11442 if ${ac_cv_lib_dl_dlopen+:} false; then :
11443 $as_echo_n "(cached) " >&6
11444 else
11445 ac_check_lib_save_LIBS=$LIBS
11446 LIBS="-ldl $LIBS"
11447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11448 /* end confdefs.h. */
11449
11450 /* Override any GCC internal prototype to avoid an error.
11451 Use char because int might match the return type of a GCC
11452 builtin and then its argument prototype would still apply. */
11453 #ifdef __cplusplus
11454 extern "C"
11455 #endif
11456 char dlopen ();
11457 int
11458 main ()
11459 {
11460 return dlopen ();
11461 ;
11462 return 0;
11463 }
11464 _ACEOF
11465 if ac_fn_c_try_link "$LINENO"; then :
11466 ac_cv_lib_dl_dlopen=yes
11467 else
11468 ac_cv_lib_dl_dlopen=no
11469 fi
11470 rm -f core conftest.err conftest.$ac_objext \
11471 conftest$ac_exeext conftest.$ac_ext
11472 LIBS=$ac_check_lib_save_LIBS
11473 fi
11474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11475 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11476 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11477 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11478 else
11479
11480 lt_cv_dlopen="dyld"
11481 lt_cv_dlopen_libs=
11482 lt_cv_dlopen_self=yes
11483
11484 fi
11485
11486 ;;
11487
11488 *)
11489 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11490 if test "x$ac_cv_func_shl_load" = xyes; then :
11491 lt_cv_dlopen="shl_load"
11492 else
11493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11494 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11495 if ${ac_cv_lib_dld_shl_load+:} false; then :
11496 $as_echo_n "(cached) " >&6
11497 else
11498 ac_check_lib_save_LIBS=$LIBS
11499 LIBS="-ldld $LIBS"
11500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11501 /* end confdefs.h. */
11502
11503 /* Override any GCC internal prototype to avoid an error.
11504 Use char because int might match the return type of a GCC
11505 builtin and then its argument prototype would still apply. */
11506 #ifdef __cplusplus
11507 extern "C"
11508 #endif
11509 char shl_load ();
11510 int
11511 main ()
11512 {
11513 return shl_load ();
11514 ;
11515 return 0;
11516 }
11517 _ACEOF
11518 if ac_fn_c_try_link "$LINENO"; then :
11519 ac_cv_lib_dld_shl_load=yes
11520 else
11521 ac_cv_lib_dld_shl_load=no
11522 fi
11523 rm -f core conftest.err conftest.$ac_objext \
11524 conftest$ac_exeext conftest.$ac_ext
11525 LIBS=$ac_check_lib_save_LIBS
11526 fi
11527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11528 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11529 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11530 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11531 else
11532 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11533 if test "x$ac_cv_func_dlopen" = xyes; then :
11534 lt_cv_dlopen="dlopen"
11535 else
11536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11537 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11538 if ${ac_cv_lib_dl_dlopen+:} false; then :
11539 $as_echo_n "(cached) " >&6
11540 else
11541 ac_check_lib_save_LIBS=$LIBS
11542 LIBS="-ldl $LIBS"
11543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11544 /* end confdefs.h. */
11545
11546 /* Override any GCC internal prototype to avoid an error.
11547 Use char because int might match the return type of a GCC
11548 builtin and then its argument prototype would still apply. */
11549 #ifdef __cplusplus
11550 extern "C"
11551 #endif
11552 char dlopen ();
11553 int
11554 main ()
11555 {
11556 return dlopen ();
11557 ;
11558 return 0;
11559 }
11560 _ACEOF
11561 if ac_fn_c_try_link "$LINENO"; then :
11562 ac_cv_lib_dl_dlopen=yes
11563 else
11564 ac_cv_lib_dl_dlopen=no
11565 fi
11566 rm -f core conftest.err conftest.$ac_objext \
11567 conftest$ac_exeext conftest.$ac_ext
11568 LIBS=$ac_check_lib_save_LIBS
11569 fi
11570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11571 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11572 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11573 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11574 else
11575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11576 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11577 if ${ac_cv_lib_svld_dlopen+:} false; then :
11578 $as_echo_n "(cached) " >&6
11579 else
11580 ac_check_lib_save_LIBS=$LIBS
11581 LIBS="-lsvld $LIBS"
11582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11583 /* end confdefs.h. */
11584
11585 /* Override any GCC internal prototype to avoid an error.
11586 Use char because int might match the return type of a GCC
11587 builtin and then its argument prototype would still apply. */
11588 #ifdef __cplusplus
11589 extern "C"
11590 #endif
11591 char dlopen ();
11592 int
11593 main ()
11594 {
11595 return dlopen ();
11596 ;
11597 return 0;
11598 }
11599 _ACEOF
11600 if ac_fn_c_try_link "$LINENO"; then :
11601 ac_cv_lib_svld_dlopen=yes
11602 else
11603 ac_cv_lib_svld_dlopen=no
11604 fi
11605 rm -f core conftest.err conftest.$ac_objext \
11606 conftest$ac_exeext conftest.$ac_ext
11607 LIBS=$ac_check_lib_save_LIBS
11608 fi
11609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11610 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11611 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11612 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11613 else
11614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11615 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11616 if ${ac_cv_lib_dld_dld_link+:} false; then :
11617 $as_echo_n "(cached) " >&6
11618 else
11619 ac_check_lib_save_LIBS=$LIBS
11620 LIBS="-ldld $LIBS"
11621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11622 /* end confdefs.h. */
11623
11624 /* Override any GCC internal prototype to avoid an error.
11625 Use char because int might match the return type of a GCC
11626 builtin and then its argument prototype would still apply. */
11627 #ifdef __cplusplus
11628 extern "C"
11629 #endif
11630 char dld_link ();
11631 int
11632 main ()
11633 {
11634 return dld_link ();
11635 ;
11636 return 0;
11637 }
11638 _ACEOF
11639 if ac_fn_c_try_link "$LINENO"; then :
11640 ac_cv_lib_dld_dld_link=yes
11641 else
11642 ac_cv_lib_dld_dld_link=no
11643 fi
11644 rm -f core conftest.err conftest.$ac_objext \
11645 conftest$ac_exeext conftest.$ac_ext
11646 LIBS=$ac_check_lib_save_LIBS
11647 fi
11648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11649 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11650 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11651 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11652 fi
11653
11654
11655 fi
11656
11657
11658 fi
11659
11660
11661 fi
11662
11663
11664 fi
11665
11666
11667 fi
11668
11669 ;;
11670 esac
11671
11672 if test "x$lt_cv_dlopen" != xno; then
11673 enable_dlopen=yes
11674 else
11675 enable_dlopen=no
11676 fi
11677
11678 case $lt_cv_dlopen in
11679 dlopen)
11680 save_CPPFLAGS="$CPPFLAGS"
11681 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11682
11683 save_LDFLAGS="$LDFLAGS"
11684 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11685
11686 save_LIBS="$LIBS"
11687 LIBS="$lt_cv_dlopen_libs $LIBS"
11688
11689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11690 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11691 if ${lt_cv_dlopen_self+:} false; then :
11692 $as_echo_n "(cached) " >&6
11693 else
11694 if test "$cross_compiling" = yes; then :
11695 lt_cv_dlopen_self=cross
11696 else
11697 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11698 lt_status=$lt_dlunknown
11699 cat > conftest.$ac_ext <<_LT_EOF
11700 #line $LINENO "configure"
11701 #include "confdefs.h"
11702
11703 #if HAVE_DLFCN_H
11704 #include <dlfcn.h>
11705 #endif
11706
11707 #include <stdio.h>
11708
11709 #ifdef RTLD_GLOBAL
11710 # define LT_DLGLOBAL RTLD_GLOBAL
11711 #else
11712 # ifdef DL_GLOBAL
11713 # define LT_DLGLOBAL DL_GLOBAL
11714 # else
11715 # define LT_DLGLOBAL 0
11716 # endif
11717 #endif
11718
11719 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11720 find out it does not work in some platform. */
11721 #ifndef LT_DLLAZY_OR_NOW
11722 # ifdef RTLD_LAZY
11723 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11724 # else
11725 # ifdef DL_LAZY
11726 # define LT_DLLAZY_OR_NOW DL_LAZY
11727 # else
11728 # ifdef RTLD_NOW
11729 # define LT_DLLAZY_OR_NOW RTLD_NOW
11730 # else
11731 # ifdef DL_NOW
11732 # define LT_DLLAZY_OR_NOW DL_NOW
11733 # else
11734 # define LT_DLLAZY_OR_NOW 0
11735 # endif
11736 # endif
11737 # endif
11738 # endif
11739 #endif
11740
11741 /* When -fvisbility=hidden is used, assume the code has been annotated
11742 correspondingly for the symbols needed. */
11743 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11744 int fnord () __attribute__((visibility("default")));
11745 #endif
11746
11747 int fnord () { return 42; }
11748 int main ()
11749 {
11750 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11751 int status = $lt_dlunknown;
11752
11753 if (self)
11754 {
11755 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11756 else
11757 {
11758 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11759 else puts (dlerror ());
11760 }
11761 /* dlclose (self); */
11762 }
11763 else
11764 puts (dlerror ());
11765
11766 return status;
11767 }
11768 _LT_EOF
11769 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11770 (eval $ac_link) 2>&5
11771 ac_status=$?
11772 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11773 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11774 (./conftest; exit; ) >&5 2>/dev/null
11775 lt_status=$?
11776 case x$lt_status in
11777 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11778 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11779 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11780 esac
11781 else :
11782 # compilation failed
11783 lt_cv_dlopen_self=no
11784 fi
11785 fi
11786 rm -fr conftest*
11787
11788
11789 fi
11790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11791 $as_echo "$lt_cv_dlopen_self" >&6; }
11792
11793 if test "x$lt_cv_dlopen_self" = xyes; then
11794 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11796 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11797 if ${lt_cv_dlopen_self_static+:} false; then :
11798 $as_echo_n "(cached) " >&6
11799 else
11800 if test "$cross_compiling" = yes; then :
11801 lt_cv_dlopen_self_static=cross
11802 else
11803 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11804 lt_status=$lt_dlunknown
11805 cat > conftest.$ac_ext <<_LT_EOF
11806 #line $LINENO "configure"
11807 #include "confdefs.h"
11808
11809 #if HAVE_DLFCN_H
11810 #include <dlfcn.h>
11811 #endif
11812
11813 #include <stdio.h>
11814
11815 #ifdef RTLD_GLOBAL
11816 # define LT_DLGLOBAL RTLD_GLOBAL
11817 #else
11818 # ifdef DL_GLOBAL
11819 # define LT_DLGLOBAL DL_GLOBAL
11820 # else
11821 # define LT_DLGLOBAL 0
11822 # endif
11823 #endif
11824
11825 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11826 find out it does not work in some platform. */
11827 #ifndef LT_DLLAZY_OR_NOW
11828 # ifdef RTLD_LAZY
11829 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11830 # else
11831 # ifdef DL_LAZY
11832 # define LT_DLLAZY_OR_NOW DL_LAZY
11833 # else
11834 # ifdef RTLD_NOW
11835 # define LT_DLLAZY_OR_NOW RTLD_NOW
11836 # else
11837 # ifdef DL_NOW
11838 # define LT_DLLAZY_OR_NOW DL_NOW
11839 # else
11840 # define LT_DLLAZY_OR_NOW 0
11841 # endif
11842 # endif
11843 # endif
11844 # endif
11845 #endif
11846
11847 /* When -fvisbility=hidden is used, assume the code has been annotated
11848 correspondingly for the symbols needed. */
11849 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11850 int fnord () __attribute__((visibility("default")));
11851 #endif
11852
11853 int fnord () { return 42; }
11854 int main ()
11855 {
11856 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11857 int status = $lt_dlunknown;
11858
11859 if (self)
11860 {
11861 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11862 else
11863 {
11864 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11865 else puts (dlerror ());
11866 }
11867 /* dlclose (self); */
11868 }
11869 else
11870 puts (dlerror ());
11871
11872 return status;
11873 }
11874 _LT_EOF
11875 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11876 (eval $ac_link) 2>&5
11877 ac_status=$?
11878 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11879 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11880 (./conftest; exit; ) >&5 2>/dev/null
11881 lt_status=$?
11882 case x$lt_status in
11883 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11884 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11885 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11886 esac
11887 else :
11888 # compilation failed
11889 lt_cv_dlopen_self_static=no
11890 fi
11891 fi
11892 rm -fr conftest*
11893
11894
11895 fi
11896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11897 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11898 fi
11899
11900 CPPFLAGS="$save_CPPFLAGS"
11901 LDFLAGS="$save_LDFLAGS"
11902 LIBS="$save_LIBS"
11903 ;;
11904 esac
11905
11906 case $lt_cv_dlopen_self in
11907 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11908 *) enable_dlopen_self=unknown ;;
11909 esac
11910
11911 case $lt_cv_dlopen_self_static in
11912 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11913 *) enable_dlopen_self_static=unknown ;;
11914 esac
11915 fi
11916
11917
11918
11919
11920
11921
11922
11923
11924
11925
11926
11927
11928
11929
11930
11931
11932
11933 striplib=
11934 old_striplib=
11935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11936 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11937 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11938 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11939 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11941 $as_echo "yes" >&6; }
11942 else
11943 # FIXME - insert some real tests, host_os isn't really good enough
11944 case $host_os in
11945 darwin*)
11946 if test -n "$STRIP" ; then
11947 striplib="$STRIP -x"
11948 old_striplib="$STRIP -S"
11949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11950 $as_echo "yes" >&6; }
11951 else
11952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11953 $as_echo "no" >&6; }
11954 fi
11955 ;;
11956 *)
11957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11958 $as_echo "no" >&6; }
11959 ;;
11960 esac
11961 fi
11962
11963
11964
11965
11966
11967
11968
11969
11970
11971
11972
11973
11974 # Report which library types will actually be built
11975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11976 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11978 $as_echo "$can_build_shared" >&6; }
11979
11980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11981 $as_echo_n "checking whether to build shared libraries... " >&6; }
11982 test "$can_build_shared" = "no" && enable_shared=no
11983
11984 # On AIX, shared libraries and static libraries use the same namespace, and
11985 # are all built from PIC.
11986 case $host_os in
11987 aix3*)
11988 test "$enable_shared" = yes && enable_static=no
11989 if test -n "$RANLIB"; then
11990 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11991 postinstall_cmds='$RANLIB $lib'
11992 fi
11993 ;;
11994
11995 aix[4-9]*)
11996 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11997 test "$enable_shared" = yes && enable_static=no
11998 fi
11999 ;;
12000 esac
12001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12002 $as_echo "$enable_shared" >&6; }
12003
12004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12005 $as_echo_n "checking whether to build static libraries... " >&6; }
12006 # Make sure either enable_shared or enable_static is yes.
12007 test "$enable_shared" = yes || enable_static=yes
12008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12009 $as_echo "$enable_static" >&6; }
12010
12011
12012
12013
12014 fi
12015 ac_ext=c
12016 ac_cpp='$CPP $CPPFLAGS'
12017 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12018 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12019 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12020
12021 CC="$lt_save_CC"
12022
12023
12024
12025
12026
12027
12028
12029
12030
12031
12032
12033
12034
12035
12036
12037 ac_config_commands="$ac_config_commands libtool"
12038
12039
12040
12041
12042 # Only expand once:
12043
12044
12045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which extension is used for runtime loadable modules" >&5
12046 $as_echo_n "checking which extension is used for runtime loadable modules... " >&6; }
12047 if ${libltdl_cv_shlibext+:} false; then :
12048 $as_echo_n "(cached) " >&6
12049 else
12050
12051 module=yes
12052 eval libltdl_cv_shlibext=$shrext_cmds
12053 module=no
12054 eval libltdl_cv_shrext=$shrext_cmds
12055
12056 fi
12057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_shlibext" >&5
12058 $as_echo "$libltdl_cv_shlibext" >&6; }
12059 if test -n "$libltdl_cv_shlibext"; then
12060
12061 cat >>confdefs.h <<_ACEOF
12062 #define LT_MODULE_EXT "$libltdl_cv_shlibext"
12063 _ACEOF
12064
12065 fi
12066 if test "$libltdl_cv_shrext" != "$libltdl_cv_shlibext"; then
12067
12068 cat >>confdefs.h <<_ACEOF
12069 #define LT_SHARED_EXT "$libltdl_cv_shrext"
12070 _ACEOF
12071
12072 fi
12073
12074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variable specifies run-time module search path" >&5
12075 $as_echo_n "checking which variable specifies run-time module search path... " >&6; }
12076 if ${lt_cv_module_path_var+:} false; then :
12077 $as_echo_n "(cached) " >&6
12078 else
12079 lt_cv_module_path_var="$shlibpath_var"
12080 fi
12081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_module_path_var" >&5
12082 $as_echo "$lt_cv_module_path_var" >&6; }
12083 if test -n "$lt_cv_module_path_var"; then
12084
12085 cat >>confdefs.h <<_ACEOF
12086 #define LT_MODULE_PATH_VAR "$lt_cv_module_path_var"
12087 _ACEOF
12088
12089 fi
12090
12091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the default library search path" >&5
12092 $as_echo_n "checking for the default library search path... " >&6; }
12093 if ${lt_cv_sys_dlsearch_path+:} false; then :
12094 $as_echo_n "(cached) " >&6
12095 else
12096 lt_cv_sys_dlsearch_path="$sys_lib_dlsearch_path_spec"
12097 fi
12098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlsearch_path" >&5
12099 $as_echo "$lt_cv_sys_dlsearch_path" >&6; }
12100 if test -n "$lt_cv_sys_dlsearch_path"; then
12101 sys_dlsearch_path=
12102 for dir in $lt_cv_sys_dlsearch_path; do
12103 if test -z "$sys_dlsearch_path"; then
12104 sys_dlsearch_path="$dir"
12105 else
12106 sys_dlsearch_path="$sys_dlsearch_path$PATH_SEPARATOR$dir"
12107 fi
12108 done
12109
12110 cat >>confdefs.h <<_ACEOF
12111 #define LT_DLSEARCH_PATH "$sys_dlsearch_path"
12112 _ACEOF
12113
12114 fi
12115
12116
12117 LT_DLLOADERS=
12118
12119
12120 ac_ext=c
12121 ac_cpp='$CPP $CPPFLAGS'
12122 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12123 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12124 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12125
12126
12127 LIBADD_DLOPEN=
12128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
12129 $as_echo_n "checking for library containing dlopen... " >&6; }
12130 if ${ac_cv_search_dlopen+:} false; then :
12131 $as_echo_n "(cached) " >&6
12132 else
12133 ac_func_search_save_LIBS=$LIBS
12134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12135 /* end confdefs.h. */
12136
12137 /* Override any GCC internal prototype to avoid an error.
12138 Use char because int might match the return type of a GCC
12139 builtin and then its argument prototype would still apply. */
12140 #ifdef __cplusplus
12141 extern "C"
12142 #endif
12143 char dlopen ();
12144 int
12145 main ()
12146 {
12147 return dlopen ();
12148 ;
12149 return 0;
12150 }
12151 _ACEOF
12152 for ac_lib in '' dl; do
12153 if test -z "$ac_lib"; then
12154 ac_res="none required"
12155 else
12156 ac_res=-l$ac_lib
12157 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12158 fi
12159 if ac_fn_c_try_link "$LINENO"; then :
12160 ac_cv_search_dlopen=$ac_res
12161 fi
12162 rm -f core conftest.err conftest.$ac_objext \
12163 conftest$ac_exeext
12164 if ${ac_cv_search_dlopen+:} false; then :
12165 break
12166 fi
12167 done
12168 if ${ac_cv_search_dlopen+:} false; then :
12169
12170 else
12171 ac_cv_search_dlopen=no
12172 fi
12173 rm conftest.$ac_ext
12174 LIBS=$ac_func_search_save_LIBS
12175 fi
12176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
12177 $as_echo "$ac_cv_search_dlopen" >&6; }
12178 ac_res=$ac_cv_search_dlopen
12179 if test "$ac_res" != no; then :
12180 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12181
12182 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
12183
12184 if test "$ac_cv_search_dlopen" != "none required" ; then
12185 LIBADD_DLOPEN="-ldl"
12186 fi
12187 libltdl_cv_lib_dl_dlopen="yes"
12188 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
12189 else
12190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12191 /* end confdefs.h. */
12192 #if HAVE_DLFCN_H
12193 # include <dlfcn.h>
12194 #endif
12195
12196 int
12197 main ()
12198 {
12199 dlopen(0, 0);
12200 ;
12201 return 0;
12202 }
12203 _ACEOF
12204 if ac_fn_c_try_link "$LINENO"; then :
12205
12206 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
12207
12208 libltdl_cv_func_dlopen="yes"
12209 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
12210 else
12211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12212 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12213 if ${ac_cv_lib_svld_dlopen+:} false; then :
12214 $as_echo_n "(cached) " >&6
12215 else
12216 ac_check_lib_save_LIBS=$LIBS
12217 LIBS="-lsvld $LIBS"
12218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12219 /* end confdefs.h. */
12220
12221 /* Override any GCC internal prototype to avoid an error.
12222 Use char because int might match the return type of a GCC
12223 builtin and then its argument prototype would still apply. */
12224 #ifdef __cplusplus
12225 extern "C"
12226 #endif
12227 char dlopen ();
12228 int
12229 main ()
12230 {
12231 return dlopen ();
12232 ;
12233 return 0;
12234 }
12235 _ACEOF
12236 if ac_fn_c_try_link "$LINENO"; then :
12237 ac_cv_lib_svld_dlopen=yes
12238 else
12239 ac_cv_lib_svld_dlopen=no
12240 fi
12241 rm -f core conftest.err conftest.$ac_objext \
12242 conftest$ac_exeext conftest.$ac_ext
12243 LIBS=$ac_check_lib_save_LIBS
12244 fi
12245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12246 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12247 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12248
12249 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
12250
12251 LIBADD_DLOPEN="-lsvld" libltdl_cv_func_dlopen="yes"
12252 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
12253 fi
12254
12255 fi
12256 rm -f core conftest.err conftest.$ac_objext \
12257 conftest$ac_exeext conftest.$ac_ext
12258 fi
12259
12260 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
12261 then
12262 lt_save_LIBS="$LIBS"
12263 LIBS="$LIBS $LIBADD_DLOPEN"
12264 for ac_func in dlerror
12265 do :
12266 ac_fn_c_check_func "$LINENO" "dlerror" "ac_cv_func_dlerror"
12267 if test "x$ac_cv_func_dlerror" = xyes; then :
12268 cat >>confdefs.h <<_ACEOF
12269 #define HAVE_DLERROR 1
12270 _ACEOF
12271
12272 fi
12273 done
12274
12275 LIBS="$lt_save_LIBS"
12276 fi
12277
12278
12279 LIBADD_SHL_LOAD=
12280 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12281 if test "x$ac_cv_func_shl_load" = xyes; then :
12282
12283 $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
12284
12285 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
12286 else
12287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12288 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12289 if ${ac_cv_lib_dld_shl_load+:} false; then :
12290 $as_echo_n "(cached) " >&6
12291 else
12292 ac_check_lib_save_LIBS=$LIBS
12293 LIBS="-ldld $LIBS"
12294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12295 /* end confdefs.h. */
12296
12297 /* Override any GCC internal prototype to avoid an error.
12298 Use char because int might match the return type of a GCC
12299 builtin and then its argument prototype would still apply. */
12300 #ifdef __cplusplus
12301 extern "C"
12302 #endif
12303 char shl_load ();
12304 int
12305 main ()
12306 {
12307 return shl_load ();
12308 ;
12309 return 0;
12310 }
12311 _ACEOF
12312 if ac_fn_c_try_link "$LINENO"; then :
12313 ac_cv_lib_dld_shl_load=yes
12314 else
12315 ac_cv_lib_dld_shl_load=no
12316 fi
12317 rm -f core conftest.err conftest.$ac_objext \
12318 conftest$ac_exeext conftest.$ac_ext
12319 LIBS=$ac_check_lib_save_LIBS
12320 fi
12321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12322 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12323 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12324
12325 $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
12326
12327 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
12328 LIBADD_SHL_LOAD="-ldld"
12329 fi
12330
12331 fi
12332
12333
12334
12335 case $host_os in
12336 darwin[1567].*)
12337 # We only want this for pre-Mac OS X 10.4.
12338 ac_fn_c_check_func "$LINENO" "_dyld_func_lookup" "ac_cv_func__dyld_func_lookup"
12339 if test "x$ac_cv_func__dyld_func_lookup" = xyes; then :
12340
12341 $as_echo "#define HAVE_DYLD 1" >>confdefs.h
12342
12343 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la"
12344 fi
12345
12346 ;;
12347 beos*)
12348 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la"
12349 ;;
12350 cygwin* | mingw* | os2* | pw32*)
12351 ac_fn_c_check_decl "$LINENO" "cygwin_conv_path" "ac_cv_have_decl_cygwin_conv_path" "#include <sys/cygwin.h>
12352 "
12353 if test "x$ac_cv_have_decl_cygwin_conv_path" = xyes; then :
12354 ac_have_decl=1
12355 else
12356 ac_have_decl=0
12357 fi
12358
12359 cat >>confdefs.h <<_ACEOF
12360 #define HAVE_DECL_CYGWIN_CONV_PATH $ac_have_decl
12361 _ACEOF
12362
12363 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la"
12364 ;;
12365 esac
12366
12367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12368 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12369 if ${ac_cv_lib_dld_dld_link+:} false; then :
12370 $as_echo_n "(cached) " >&6
12371 else
12372 ac_check_lib_save_LIBS=$LIBS
12373 LIBS="-ldld $LIBS"
12374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12375 /* end confdefs.h. */
12376
12377 /* Override any GCC internal prototype to avoid an error.
12378 Use char because int might match the return type of a GCC
12379 builtin and then its argument prototype would still apply. */
12380 #ifdef __cplusplus
12381 extern "C"
12382 #endif
12383 char dld_link ();
12384 int
12385 main ()
12386 {
12387 return dld_link ();
12388 ;
12389 return 0;
12390 }
12391 _ACEOF
12392 if ac_fn_c_try_link "$LINENO"; then :
12393 ac_cv_lib_dld_dld_link=yes
12394 else
12395 ac_cv_lib_dld_dld_link=no
12396 fi
12397 rm -f core conftest.err conftest.$ac_objext \
12398 conftest$ac_exeext conftest.$ac_ext
12399 LIBS=$ac_check_lib_save_LIBS
12400 fi
12401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12402 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12403 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12404
12405 $as_echo "#define HAVE_DLD 1" >>confdefs.h
12406
12407 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la"
12408 fi
12409
12410
12411
12412
12413 LT_DLPREOPEN=
12414 if test -n "$LT_DLLOADERS"
12415 then
12416 for lt_loader in $LT_DLLOADERS; do
12417 LT_DLPREOPEN="$LT_DLPREOPEN-dlpreopen $lt_loader "
12418 done
12419
12420 $as_echo "#define HAVE_LIBDLLOADER 1" >>confdefs.h
12421
12422 fi
12423
12424
12425 LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD"
12426
12427
12428 ac_ext=c
12429 ac_cpp='$CPP $CPPFLAGS'
12430 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12431 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12432 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12433
12434
12435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _ prefix in compiled symbols" >&5
12436 $as_echo_n "checking for _ prefix in compiled symbols... " >&6; }
12437 if ${lt_cv_sys_symbol_underscore+:} false; then :
12438 $as_echo_n "(cached) " >&6
12439 else
12440 lt_cv_sys_symbol_underscore=no
12441 cat > conftest.$ac_ext <<_LT_EOF
12442 void nm_test_func(){}
12443 int main(){nm_test_func;return 0;}
12444 _LT_EOF
12445 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12446 (eval $ac_compile) 2>&5
12447 ac_status=$?
12448 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12449 test $ac_status = 0; }; then
12450 # Now try to grab the symbols.
12451 ac_nlist=conftest.nm
12452 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\""; } >&5
12453 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
12454 ac_status=$?
12455 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12456 test $ac_status = 0; } && test -s "$ac_nlist"; then
12457 # See whether the symbols have a leading underscore.
12458 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
12459 lt_cv_sys_symbol_underscore=yes
12460 else
12461 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
12462 :
12463 else
12464 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
12465 fi
12466 fi
12467 else
12468 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
12469 fi
12470 else
12471 echo "configure: failed program was:" >&5
12472 cat conftest.c >&5
12473 fi
12474 rm -rf conftest*
12475
12476 fi
12477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_symbol_underscore" >&5
12478 $as_echo "$lt_cv_sys_symbol_underscore" >&6; }
12479 sys_symbol_underscore=$lt_cv_sys_symbol_underscore
12480
12481
12482 if test x"$lt_cv_sys_symbol_underscore" = xyes; then
12483 if test x"$libltdl_cv_func_dlopen" = xyes ||
12484 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
12485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have to add an underscore for dlsym" >&5
12486 $as_echo_n "checking whether we have to add an underscore for dlsym... " >&6; }
12487 if ${libltdl_cv_need_uscore+:} false; then :
12488 $as_echo_n "(cached) " >&6
12489 else
12490 libltdl_cv_need_uscore=unknown
12491 save_LIBS="$LIBS"
12492 LIBS="$LIBS $LIBADD_DLOPEN"
12493 if test "$cross_compiling" = yes; then :
12494 libltdl_cv_need_uscore=cross
12495 else
12496 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12497 lt_status=$lt_dlunknown
12498 cat > conftest.$ac_ext <<_LT_EOF
12499 #line $LINENO "configure"
12500 #include "confdefs.h"
12501
12502 #if HAVE_DLFCN_H
12503 #include <dlfcn.h>
12504 #endif
12505
12506 #include <stdio.h>
12507
12508 #ifdef RTLD_GLOBAL
12509 # define LT_DLGLOBAL RTLD_GLOBAL
12510 #else
12511 # ifdef DL_GLOBAL
12512 # define LT_DLGLOBAL DL_GLOBAL
12513 # else
12514 # define LT_DLGLOBAL 0
12515 # endif
12516 #endif
12517
12518 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12519 find out it does not work in some platform. */
12520 #ifndef LT_DLLAZY_OR_NOW
12521 # ifdef RTLD_LAZY
12522 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12523 # else
12524 # ifdef DL_LAZY
12525 # define LT_DLLAZY_OR_NOW DL_LAZY
12526 # else
12527 # ifdef RTLD_NOW
12528 # define LT_DLLAZY_OR_NOW RTLD_NOW
12529 # else
12530 # ifdef DL_NOW
12531 # define LT_DLLAZY_OR_NOW DL_NOW
12532 # else
12533 # define LT_DLLAZY_OR_NOW 0
12534 # endif
12535 # endif
12536 # endif
12537 # endif
12538 #endif
12539
12540 /* When -fvisbility=hidden is used, assume the code has been annotated
12541 correspondingly for the symbols needed. */
12542 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12543 int fnord () __attribute__((visibility("default")));
12544 #endif
12545
12546 int fnord () { return 42; }
12547 int main ()
12548 {
12549 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12550 int status = $lt_dlunknown;
12551
12552 if (self)
12553 {
12554 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12555 else
12556 {
12557 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12558 else puts (dlerror ());
12559 }
12560 /* dlclose (self); */
12561 }
12562 else
12563 puts (dlerror ());
12564
12565 return status;
12566 }
12567 _LT_EOF
12568 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12569 (eval $ac_link) 2>&5
12570 ac_status=$?
12571 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12572 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12573 (./conftest; exit; ) >&5 2>/dev/null
12574 lt_status=$?
12575 case x$lt_status in
12576 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
12577 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
12578 x$lt_dlunknown|x*) ;;
12579 esac
12580 else :
12581 # compilation failed
12582
12583 fi
12584 fi
12585 rm -fr conftest*
12586
12587 LIBS="$save_LIBS"
12588
12589 fi
12590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_need_uscore" >&5
12591 $as_echo "$libltdl_cv_need_uscore" >&6; }
12592 fi
12593 fi
12594
12595 if test x"$libltdl_cv_need_uscore" = xyes; then
12596
12597 $as_echo "#define NEED_USCORE 1" >>confdefs.h
12598
12599 fi
12600
12601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether deplibs are loaded by dlopen" >&5
12602 $as_echo_n "checking whether deplibs are loaded by dlopen... " >&6; }
12603 if ${lt_cv_sys_dlopen_deplibs+:} false; then :
12604 $as_echo_n "(cached) " >&6
12605 else
12606 # PORTME does your system automatically load deplibs for dlopen?
12607 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
12608 # For now, we just catch OSes we know something about -- in the
12609 # future, we'll try test this programmatically.
12610 lt_cv_sys_dlopen_deplibs=unknown
12611 case $host_os in
12612 aix3*|aix4.1.*|aix4.2.*)
12613 # Unknown whether this is true for these versions of AIX, but
12614 # we want this `case' here to explicitly catch those versions.
12615 lt_cv_sys_dlopen_deplibs=unknown
12616 ;;
12617 aix[4-9]*)
12618 lt_cv_sys_dlopen_deplibs=yes
12619 ;;
12620 amigaos*)
12621 case $host_cpu in
12622 powerpc)
12623 lt_cv_sys_dlopen_deplibs=no
12624 ;;
12625 esac
12626 ;;
12627 darwin*)
12628 # Assuming the user has installed a libdl from somewhere, this is true
12629 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
12630 lt_cv_sys_dlopen_deplibs=yes
12631 ;;
12632 freebsd* | dragonfly*)
12633 lt_cv_sys_dlopen_deplibs=yes
12634 ;;
12635 gnu* | linux* | k*bsd*-gnu | kopensolaris*-gnu)
12636 # GNU and its variants, using gnu ld.so (Glibc)
12637 lt_cv_sys_dlopen_deplibs=yes
12638 ;;
12639 hpux10*|hpux11*)
12640 lt_cv_sys_dlopen_deplibs=yes
12641 ;;
12642 interix*)
12643 lt_cv_sys_dlopen_deplibs=yes
12644 ;;
12645 irix[12345]*|irix6.[01]*)
12646 # Catch all versions of IRIX before 6.2, and indicate that we don't
12647 # know how it worked for any of those versions.
12648 lt_cv_sys_dlopen_deplibs=unknown
12649 ;;
12650 irix*)
12651 # The case above catches anything before 6.2, and it's known that
12652 # at 6.2 and later dlopen does load deplibs.
12653 lt_cv_sys_dlopen_deplibs=yes
12654 ;;
12655 netbsd*)
12656 lt_cv_sys_dlopen_deplibs=yes
12657 ;;
12658 openbsd*)
12659 lt_cv_sys_dlopen_deplibs=yes
12660 ;;
12661 osf[1234]*)
12662 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
12663 # it did *not* use an RPATH in a shared library to find objects the
12664 # library depends on, so we explicitly say `no'.
12665 lt_cv_sys_dlopen_deplibs=no
12666 ;;
12667 osf5.0|osf5.0a|osf5.1)
12668 # dlopen *does* load deplibs and with the right loader patch applied
12669 # it even uses RPATH in a shared library to search for shared objects
12670 # that the library depends on, but there's no easy way to know if that
12671 # patch is installed. Since this is the case, all we can really
12672 # say is unknown -- it depends on the patch being installed. If
12673 # it is, this changes to `yes'. Without it, it would be `no'.
12674 lt_cv_sys_dlopen_deplibs=unknown
12675 ;;
12676 osf*)
12677 # the two cases above should catch all versions of osf <= 5.1. Read
12678 # the comments above for what we know about them.
12679 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
12680 # is used to find them so we can finally say `yes'.
12681 lt_cv_sys_dlopen_deplibs=yes
12682 ;;
12683 qnx*)
12684 lt_cv_sys_dlopen_deplibs=yes
12685 ;;
12686 solaris*)
12687 lt_cv_sys_dlopen_deplibs=yes
12688 ;;
12689 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12690 libltdl_cv_sys_dlopen_deplibs=yes
12691 ;;
12692 esac
12693
12694 fi
12695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlopen_deplibs" >&5
12696 $as_echo "$lt_cv_sys_dlopen_deplibs" >&6; }
12697 if test "$lt_cv_sys_dlopen_deplibs" != yes; then
12698
12699 $as_echo "#define LTDL_DLOPEN_DEPLIBS 1" >>confdefs.h
12700
12701 fi
12702
12703 :
12704
12705 for ac_header in argz.h
12706 do :
12707 ac_fn_c_check_header_compile "$LINENO" "argz.h" "ac_cv_header_argz_h" "$ac_includes_default
12708 "
12709 if test "x$ac_cv_header_argz_h" = xyes; then :
12710 cat >>confdefs.h <<_ACEOF
12711 #define HAVE_ARGZ_H 1
12712 _ACEOF
12713
12714 fi
12715
12716 done
12717
12718
12719 ac_fn_c_check_type "$LINENO" "error_t" "ac_cv_type_error_t" "#if defined(HAVE_ARGZ_H)
12720 # include <argz.h>
12721 #endif
12722 "
12723 if test "x$ac_cv_type_error_t" = xyes; then :
12724
12725 cat >>confdefs.h <<_ACEOF
12726 #define HAVE_ERROR_T 1
12727 _ACEOF
12728
12729
12730 else
12731
12732 $as_echo "#define error_t int" >>confdefs.h
12733
12734
12735 $as_echo "#define __error_t_defined 1" >>confdefs.h
12736
12737 fi
12738
12739
12740 ARGZ_H=
12741 for ac_func in argz_add argz_append argz_count argz_create_sep argz_insert \
12742 argz_next argz_stringify
12743 do :
12744 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12745 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12746 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12747 cat >>confdefs.h <<_ACEOF
12748 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12749 _ACEOF
12750
12751 else
12752 ARGZ_H=argz.h;
12753
12754 _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
12755
12756 fi
12757 done
12758
12759
12760 if test -z "$ARGZ_H"; then :
12761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if argz actually works" >&5
12762 $as_echo_n "checking if argz actually works... " >&6; }
12763 if ${lt_cv_sys_argz_works+:} false; then :
12764 $as_echo_n "(cached) " >&6
12765 else
12766 case $host_os in #(
12767 *cygwin*)
12768 lt_cv_sys_argz_works=no
12769 if test "$cross_compiling" != no; then
12770 lt_cv_sys_argz_works="guessing no"
12771 else
12772 lt_sed_extract_leading_digits='s/^\([0-9\.]*\).*/\1/'
12773 save_IFS=$IFS
12774 IFS=-.
12775 set x `uname -r | sed -e "$lt_sed_extract_leading_digits"`
12776 IFS=$save_IFS
12777 lt_os_major=${2-0}
12778 lt_os_minor=${3-0}
12779 lt_os_micro=${4-0}
12780 if test "$lt_os_major" -gt 1 \
12781 || { test "$lt_os_major" -eq 1 \
12782 && { test "$lt_os_minor" -gt 5 \
12783 || { test "$lt_os_minor" -eq 5 \
12784 && test "$lt_os_micro" -gt 24; }; }; }; then
12785 lt_cv_sys_argz_works=yes
12786 fi
12787 fi
12788 ;; #(
12789 *) lt_cv_sys_argz_works=yes ;;
12790 esac
12791 fi
12792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_argz_works" >&5
12793 $as_echo "$lt_cv_sys_argz_works" >&6; }
12794 if test "$lt_cv_sys_argz_works" = yes; then :
12795
12796 $as_echo "#define HAVE_WORKING_ARGZ 1" >>confdefs.h
12797
12798 else
12799 ARGZ_H=argz.h
12800
12801
12802 _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
12803
12804 fi
12805 fi
12806
12807
12808
12809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libtool supports -dlopen/-dlpreopen" >&5
12810 $as_echo_n "checking whether libtool supports -dlopen/-dlpreopen... " >&6; }
12811 if ${libltdl_cv_preloaded_symbols+:} false; then :
12812 $as_echo_n "(cached) " >&6
12813 else
12814 if test -n "$lt_cv_sys_global_symbol_pipe"; then
12815 libltdl_cv_preloaded_symbols=yes
12816 else
12817 libltdl_cv_preloaded_symbols=no
12818 fi
12819
12820 fi
12821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_preloaded_symbols" >&5
12822 $as_echo "$libltdl_cv_preloaded_symbols" >&6; }
12823 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
12824
12825 $as_echo "#define HAVE_PRELOADED_SYMBOLS 1" >>confdefs.h
12826
12827 fi
12828
12829 # Set options
12830
12831
12832
12833
12834
12835
12836
12837
12838
12839
12840
12841 # Check whether --with-included_ltdl was given.
12842 if test "${with_included_ltdl+set}" = set; then :
12843 withval=$with_included_ltdl;
12844 fi
12845
12846
12847 if test "x$with_included_ltdl" != xyes; then
12848 # We are not being forced to use the included libltdl sources, so
12849 # decide whether there is a useful installed version we can use.
12850 ac_fn_c_check_header_compile "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default
12851
12852 "
12853 if test "x$ac_cv_header_ltdl_h" = xyes; then :
12854 ac_fn_c_check_decl "$LINENO" "lt_dlinterface_register" "ac_cv_have_decl_lt_dlinterface_register" "$ac_includes_default
12855 #include <ltdl.h>
12856 "
12857 if test "x$ac_cv_have_decl_lt_dlinterface_register" = xyes; then :
12858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dladvise_preload in -lltdl" >&5
12859 $as_echo_n "checking for lt_dladvise_preload in -lltdl... " >&6; }
12860 if ${ac_cv_lib_ltdl_lt_dladvise_preload+:} false; then :
12861 $as_echo_n "(cached) " >&6
12862 else
12863 ac_check_lib_save_LIBS=$LIBS
12864 LIBS="-lltdl $LIBS"
12865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12866 /* end confdefs.h. */
12867
12868 /* Override any GCC internal prototype to avoid an error.
12869 Use char because int might match the return type of a GCC
12870 builtin and then its argument prototype would still apply. */
12871 #ifdef __cplusplus
12872 extern "C"
12873 #endif
12874 char lt_dladvise_preload ();
12875 int
12876 main ()
12877 {
12878 return lt_dladvise_preload ();
12879 ;
12880 return 0;
12881 }
12882 _ACEOF
12883 if ac_fn_c_try_link "$LINENO"; then :
12884 ac_cv_lib_ltdl_lt_dladvise_preload=yes
12885 else
12886 ac_cv_lib_ltdl_lt_dladvise_preload=no
12887 fi
12888 rm -f core conftest.err conftest.$ac_objext \
12889 conftest$ac_exeext conftest.$ac_ext
12890 LIBS=$ac_check_lib_save_LIBS
12891 fi
12892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dladvise_preload" >&5
12893 $as_echo "$ac_cv_lib_ltdl_lt_dladvise_preload" >&6; }
12894 if test "x$ac_cv_lib_ltdl_lt_dladvise_preload" = xyes; then :
12895 with_included_ltdl=no
12896 else
12897 with_included_ltdl=yes
12898 fi
12899
12900 else
12901 with_included_ltdl=yes
12902 fi
12903
12904 else
12905 with_included_ltdl=yes
12906 fi
12907
12908
12909 fi
12910
12911
12912
12913
12914 # Check whether --with-ltdl_include was given.
12915 if test "${with_ltdl_include+set}" = set; then :
12916 withval=$with_ltdl_include;
12917 fi
12918
12919
12920 if test -n "$with_ltdl_include"; then
12921 if test -f "$with_ltdl_include/ltdl.h"; then :
12922 else
12923 as_fn_error $? "invalid ltdl include directory: \`$with_ltdl_include'" "$LINENO" 5
12924 fi
12925 else
12926 with_ltdl_include=no
12927 fi
12928
12929
12930 # Check whether --with-ltdl_lib was given.
12931 if test "${with_ltdl_lib+set}" = set; then :
12932 withval=$with_ltdl_lib;
12933 fi
12934
12935
12936 if test -n "$with_ltdl_lib"; then
12937 if test -f "$with_ltdl_lib/libltdl.la"; then :
12938 else
12939 as_fn_error $? "invalid ltdl library directory: \`$with_ltdl_lib'" "$LINENO" 5
12940 fi
12941 else
12942 with_ltdl_lib=no
12943 fi
12944
12945 case ,$with_included_ltdl,$with_ltdl_include,$with_ltdl_lib, in
12946 ,yes,no,no,)
12947 case $enable_ltdl_convenience in
12948 no) as_fn_error $? "this package needs a convenience libltdl" "$LINENO" 5 ;;
12949 "") enable_ltdl_convenience=yes
12950 ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
12951 esac
12952 LIBLTDL='${top_build_prefix}'"${lt_ltdl_dir+$lt_ltdl_dir/}libltdlc.la"
12953 LTDLDEPS=$LIBLTDL
12954 LTDLINCL='-I${top_srcdir}'"${lt_ltdl_dir+/$lt_ltdl_dir}"
12955
12956
12957
12958
12959
12960 # For backwards non-gettext consistent compatibility...
12961 INCLTDL="$LTDLINCL"
12962
12963
12964 ;;
12965 ,no,no,no,)
12966 # If the included ltdl is not to be used, then use the
12967 # preinstalled libltdl we found.
12968
12969 $as_echo "#define HAVE_LTDL 1" >>confdefs.h
12970
12971 LIBLTDL=-lltdl
12972 LTDLDEPS=
12973 LTDLINCL=
12974 ;;
12975 ,no*,no,*)
12976 as_fn_error $? "\`--with-ltdl-include' and \`--with-ltdl-lib' options must be used together" "$LINENO" 5
12977 ;;
12978 *) with_included_ltdl=no
12979 LIBLTDL="-L$with_ltdl_lib -lltdl"
12980 LTDLDEPS=
12981 LTDLINCL="-I$with_ltdl_include"
12982 ;;
12983 esac
12984 INCLTDL="$LTDLINCL"
12985
12986 # Report our decision...
12987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl headers" >&5
12988 $as_echo_n "checking where to find libltdl headers... " >&6; }
12989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LTDLINCL" >&5
12990 $as_echo "$LTDLINCL" >&6; }
12991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl library" >&5
12992 $as_echo_n "checking where to find libltdl library... " >&6; }
12993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBLTDL" >&5
12994 $as_echo "$LIBLTDL" >&6; }
12995
12996
12997
12998 # Check whether --enable-ltdl-install was given.
12999 if test "${enable_ltdl_install+set}" = set; then :
13000 enableval=$enable_ltdl_install;
13001 fi
13002
13003
13004 case ,${enable_ltdl_install},${enable_ltdl_convenience} in
13005 *yes*) ;;
13006 *) enable_ltdl_convenience=yes ;;
13007 esac
13008
13009 if test x"${enable_ltdl_install-no}" != xno; then
13010 INSTALL_LTDL_TRUE=
13011 INSTALL_LTDL_FALSE='#'
13012 else
13013 INSTALL_LTDL_TRUE='#'
13014 INSTALL_LTDL_FALSE=
13015 fi
13016
13017 if test x"${enable_ltdl_convenience-no}" != xno; then
13018 CONVENIENCE_LTDL_TRUE=
13019 CONVENIENCE_LTDL_FALSE='#'
13020 else
13021 CONVENIENCE_LTDL_TRUE='#'
13022 CONVENIENCE_LTDL_FALSE=
13023 fi
13024
13025
13026
13027
13028
13029
13030 # In order that ltdl.c can compile, find out the first AC_CONFIG_HEADERS
13031 # the user used. This is so that ltdl.h can pick up the parent projects
13032 # config.h file, The first file in AC_CONFIG_HEADERS must contain the
13033 # definitions required by ltdl.c.
13034 # FIXME: Remove use of undocumented AC_LIST_HEADERS (2.59 compatibility).
13035
13036
13037
13038 for ac_header in unistd.h dl.h sys/dl.h dld.h mach-o/dyld.h dirent.h
13039 do :
13040 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13041 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
13042 "
13043 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13044 cat >>confdefs.h <<_ACEOF
13045 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13046 _ACEOF
13047
13048 fi
13049
13050 done
13051
13052
13053 for ac_func in closedir opendir readdir
13054 do :
13055 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13056 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13057 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13058 cat >>confdefs.h <<_ACEOF
13059 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13060 _ACEOF
13061
13062 else
13063
13064
13065 _LT_LIBOBJS="$_LT_LIBOBJS lt__dirent.$ac_objext"
13066
13067 fi
13068 done
13069
13070 for ac_func in strlcat strlcpy
13071 do :
13072 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13073 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13074 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13075 cat >>confdefs.h <<_ACEOF
13076 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13077 _ACEOF
13078
13079 else
13080
13081
13082 _LT_LIBOBJS="$_LT_LIBOBJS lt__strl.$ac_objext"
13083
13084 fi
13085 done
13086
13087
13088
13089 cat >>confdefs.h <<_ACEOF
13090 #define LT_LIBEXT "$libext"
13091 _ACEOF
13092
13093
13094 name=
13095 eval "lt_libprefix=\"$libname_spec\""
13096
13097 cat >>confdefs.h <<_ACEOF
13098 #define LT_LIBPREFIX "$lt_libprefix"
13099 _ACEOF
13100
13101
13102 name=ltdl
13103 eval "LTDLOPEN=\"$libname_spec\""
13104
13105
13106
13107
13108
13109
13110
13111
13112 # Only expand once:
13113
13114
13115 LIBTOOL="$LIBTOOL --silent"
13116
13117 # Checks for libraries.
13118
13119
13120 if test "X$CC" != "X"; then
13121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fstack-protector" >&5
13122 $as_echo_n "checking whether ${CC} accepts -fstack-protector... " >&6; }
13123 if ${ssp_cv_cc+:} false; then :
13124 $as_echo_n "(cached) " >&6
13125 else
13126 ssp_old_cflags="$CFLAGS"
13127 CFLAGS="$CFLAGS -fstack-protector"
13128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13129 /* end confdefs.h. */
13130
13131 int
13132 main ()
13133 {
13134
13135 ;
13136 return 0;
13137 }
13138 _ACEOF
13139 if ac_fn_c_try_compile "$LINENO"; then :
13140 ssp_cv_cc=yes
13141 else
13142 ssp_cv_cc=no
13143 fi
13144 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13145 CFLAGS="$ssp_old_cflags"
13146
13147 fi
13148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ssp_cv_cc" >&5
13149 $as_echo "$ssp_cv_cc" >&6; }
13150 if test $ssp_cv_cc = yes; then
13151 CFLAGS="$CFLAGS -fstack-protector"
13152
13153 $as_echo "#define ENABLE_SSP_CC 1" >>confdefs.h
13154
13155 fi
13156 fi
13157
13158
13159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libssp exists" >&5
13160 $as_echo_n "checking whether libssp exists... " >&6; }
13161 if ${ssp_cv_lib+:} false; then :
13162 $as_echo_n "(cached) " >&6
13163 else
13164 ssp_old_libs="$LIBS"
13165 LIBS="$LIBS -lssp"
13166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13167 /* end confdefs.h. */
13168
13169 int
13170 main ()
13171 {
13172
13173 ;
13174 return 0;
13175 }
13176 _ACEOF
13177 if ac_fn_c_try_link "$LINENO"; then :
13178 ssp_cv_lib=yes
13179 else
13180 ssp_cv_lib=no
13181 fi
13182 rm -f core conftest.err conftest.$ac_objext \
13183 conftest$ac_exeext conftest.$ac_ext
13184 LIBS="$ssp_old_libs"
13185
13186 fi
13187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ssp_cv_lib" >&5
13188 $as_echo "$ssp_cv_lib" >&6; }
13189 if test $ssp_cv_lib = yes; then
13190 LIBS="$LIBS -lssp"
13191 fi
13192
13193
13194
13195
13196
13197
13198 for flag in -fno-strict-aliasing; do
13199 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
13200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
13201 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
13202 if eval \${$as_CACHEVAR+:} false; then :
13203 $as_echo_n "(cached) " >&6
13204 else
13205
13206 ax_check_save_flags=$CFLAGS
13207 CFLAGS="$CFLAGS $flag"
13208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13209 /* end confdefs.h. */
13210
13211 int
13212 main ()
13213 {
13214
13215 ;
13216 return 0;
13217 }
13218 _ACEOF
13219 if ac_fn_c_try_compile "$LINENO"; then :
13220 eval "$as_CACHEVAR=yes"
13221 else
13222 eval "$as_CACHEVAR=no"
13223 fi
13224 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13225 CFLAGS=$ax_check_save_flags
13226 fi
13227 eval ac_res=\$$as_CACHEVAR
13228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13229 $as_echo "$ac_res" >&6; }
13230 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
13231 if ${CFLAGS+:} false; then :
13232 case " $CFLAGS " in
13233 *" $flag "*)
13234 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
13235 (: CFLAGS already contains $flag) 2>&5
13236 ac_status=$?
13237 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13238 test $ac_status = 0; }
13239 ;;
13240 *)
13241 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
13242 (: CFLAGS="$CFLAGS $flag") 2>&5
13243 ac_status=$?
13244 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13245 test $ac_status = 0; }
13246 CFLAGS="$CFLAGS $flag"
13247 ;;
13248 esac
13249 else
13250 CFLAGS="$flag"
13251 fi
13252
13253 else
13254 :
13255 fi
13256
13257 done
13258
13259
13260 ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo"
13261 if test "x$ac_cv_func_getaddrinfo" = xyes; then :
13262
13263 else
13264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getaddrinfo" >&5
13265 $as_echo_n "checking for library containing getaddrinfo... " >&6; }
13266 if ${ac_cv_search_getaddrinfo+:} false; then :
13267 $as_echo_n "(cached) " >&6
13268 else
13269 ac_func_search_save_LIBS=$LIBS
13270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13271 /* end confdefs.h. */
13272
13273 /* Override any GCC internal prototype to avoid an error.
13274 Use char because int might match the return type of a GCC
13275 builtin and then its argument prototype would still apply. */
13276 #ifdef __cplusplus
13277 extern "C"
13278 #endif
13279 char getaddrinfo ();
13280 int
13281 main ()
13282 {
13283 return getaddrinfo ();
13284 ;
13285 return 0;
13286 }
13287 _ACEOF
13288 for ac_lib in '' nsl; do
13289 if test -z "$ac_lib"; then
13290 ac_res="none required"
13291 else
13292 ac_res=-l$ac_lib
13293 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13294 fi
13295 if ac_fn_c_try_link "$LINENO"; then :
13296 ac_cv_search_getaddrinfo=$ac_res
13297 fi
13298 rm -f core conftest.err conftest.$ac_objext \
13299 conftest$ac_exeext
13300 if ${ac_cv_search_getaddrinfo+:} false; then :
13301 break
13302 fi
13303 done
13304 if ${ac_cv_search_getaddrinfo+:} false; then :
13305
13306 else
13307 ac_cv_search_getaddrinfo=no
13308 fi
13309 rm conftest.$ac_ext
13310 LIBS=$ac_func_search_save_LIBS
13311 fi
13312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getaddrinfo" >&5
13313 $as_echo "$ac_cv_search_getaddrinfo" >&6; }
13314 ac_res=$ac_cv_search_getaddrinfo
13315 if test "$ac_res" != no; then :
13316 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13317
13318 fi
13319
13320 fi
13321
13322 ac_fn_c_check_func "$LINENO" "getnameinfo" "ac_cv_func_getnameinfo"
13323 if test "x$ac_cv_func_getnameinfo" = xyes; then :
13324
13325 else
13326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getnameinfo" >&5
13327 $as_echo_n "checking for library containing getnameinfo... " >&6; }
13328 if ${ac_cv_search_getnameinfo+:} false; then :
13329 $as_echo_n "(cached) " >&6
13330 else
13331 ac_func_search_save_LIBS=$LIBS
13332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13333 /* end confdefs.h. */
13334
13335 /* Override any GCC internal prototype to avoid an error.
13336 Use char because int might match the return type of a GCC
13337 builtin and then its argument prototype would still apply. */
13338 #ifdef __cplusplus
13339 extern "C"
13340 #endif
13341 char getnameinfo ();
13342 int
13343 main ()
13344 {
13345 return getnameinfo ();
13346 ;
13347 return 0;
13348 }
13349 _ACEOF
13350 for ac_lib in '' nsl; do
13351 if test -z "$ac_lib"; then
13352 ac_res="none required"
13353 else
13354 ac_res=-l$ac_lib
13355 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13356 fi
13357 if ac_fn_c_try_link "$LINENO"; then :
13358 ac_cv_search_getnameinfo=$ac_res
13359 fi
13360 rm -f core conftest.err conftest.$ac_objext \
13361 conftest$ac_exeext
13362 if ${ac_cv_search_getnameinfo+:} false; then :
13363 break
13364 fi
13365 done
13366 if ${ac_cv_search_getnameinfo+:} false; then :
13367
13368 else
13369 ac_cv_search_getnameinfo=no
13370 fi
13371 rm conftest.$ac_ext
13372 LIBS=$ac_func_search_save_LIBS
13373 fi
13374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getnameinfo" >&5
13375 $as_echo "$ac_cv_search_getnameinfo" >&6; }
13376 ac_res=$ac_cv_search_getnameinfo
13377 if test "$ac_res" != no; then :
13378 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13379
13380 fi
13381
13382 fi
13383
13384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
13385 $as_echo_n "checking for library containing socket... " >&6; }
13386 if ${ac_cv_search_socket+:} false; then :
13387 $as_echo_n "(cached) " >&6
13388 else
13389 ac_func_search_save_LIBS=$LIBS
13390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13391 /* end confdefs.h. */
13392
13393 /* Override any GCC internal prototype to avoid an error.
13394 Use char because int might match the return type of a GCC
13395 builtin and then its argument prototype would still apply. */
13396 #ifdef __cplusplus
13397 extern "C"
13398 #endif
13399 char socket ();
13400 int
13401 main ()
13402 {
13403 return socket ();
13404 ;
13405 return 0;
13406 }
13407 _ACEOF
13408 for ac_lib in '' socket; do
13409 if test -z "$ac_lib"; then
13410 ac_res="none required"
13411 else
13412 ac_res=-l$ac_lib
13413 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13414 fi
13415 if ac_fn_c_try_link "$LINENO"; then :
13416 ac_cv_search_socket=$ac_res
13417 fi
13418 rm -f core conftest.err conftest.$ac_objext \
13419 conftest$ac_exeext
13420 if ${ac_cv_search_socket+:} false; then :
13421 break
13422 fi
13423 done
13424 if ${ac_cv_search_socket+:} false; then :
13425
13426 else
13427 ac_cv_search_socket=no
13428 fi
13429 rm conftest.$ac_ext
13430 LIBS=$ac_func_search_save_LIBS
13431 fi
13432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
13433 $as_echo "$ac_cv_search_socket" >&6; }
13434 ac_res=$ac_cv_search_socket
13435 if test "$ac_res" != no; then :
13436 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13437
13438 else
13439 as_fn_error $? "socket library not found" "$LINENO" 5
13440 fi
13441
13442 ac_fn_c_check_type "$LINENO" "struct sockaddr_in6" "ac_cv_type_struct_sockaddr_in6" "#include <netinet/in.h>
13443 "
13444 if test "x$ac_cv_type_struct_sockaddr_in6" = xyes; then :
13445
13446 $as_echo "#define IPV6 1" >>confdefs.h
13447
13448 fi
13449
13450 ac_fn_c_check_type "$LINENO" "struct sockaddr_in" "ac_cv_type_struct_sockaddr_in" "#include <sys/types.h>
13451 #include <sys/socket.h>
13452 #include <netdb.h>
13453
13454 "
13455 if test "x$ac_cv_type_struct_sockaddr_in" = xyes; then :
13456
13457 cat >>confdefs.h <<_ACEOF
13458 #define HAVE_STRUCT_SOCKADDR_IN 1
13459 _ACEOF
13460
13461
13462 fi
13463 ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "#include <sys/types.h>
13464 #include <sys/socket.h>
13465 #include <netdb.h>
13466
13467 "
13468 if test "x$ac_cv_type_struct_sockaddr_storage" = xyes; then :
13469
13470 cat >>confdefs.h <<_ACEOF
13471 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
13472 _ACEOF
13473
13474
13475 fi
13476 ac_fn_c_check_type "$LINENO" "struct addrinfo" "ac_cv_type_struct_addrinfo" "#include <sys/types.h>
13477 #include <sys/socket.h>
13478 #include <netdb.h>
13479
13480 "
13481 if test "x$ac_cv_type_struct_addrinfo" = xyes; then :
13482
13483 cat >>confdefs.h <<_ACEOF
13484 #define HAVE_STRUCT_ADDRINFO 1
13485 _ACEOF
13486
13487
13488 fi
13489
13490
13491
13492 # Checks for typedefs, structures, and compiler characteristics.
13493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
13494 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
13495 if ${ac_cv_c_bigendian+:} false; then :
13496 $as_echo_n "(cached) " >&6
13497 else
13498 ac_cv_c_bigendian=unknown
13499 # See if we're dealing with a universal compiler.
13500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13501 /* end confdefs.h. */
13502 #ifndef __APPLE_CC__
13503 not a universal capable compiler
13504 #endif
13505 typedef int dummy;
13506
13507 _ACEOF
13508 if ac_fn_c_try_compile "$LINENO"; then :
13509
13510 # Check for potential -arch flags. It is not universal unless
13511 # there are at least two -arch flags with different values.
13512 ac_arch=
13513 ac_prev=
13514 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
13515 if test -n "$ac_prev"; then
13516 case $ac_word in
13517 i?86 | x86_64 | ppc | ppc64)
13518 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
13519 ac_arch=$ac_word
13520 else
13521 ac_cv_c_bigendian=universal
13522 break
13523 fi
13524 ;;
13525 esac
13526 ac_prev=
13527 elif test "x$ac_word" = "x-arch"; then
13528 ac_prev=arch
13529 fi
13530 done
13531 fi
13532 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13533 if test $ac_cv_c_bigendian = unknown; then
13534 # See if sys/param.h defines the BYTE_ORDER macro.
13535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13536 /* end confdefs.h. */
13537 #include <sys/types.h>
13538 #include <sys/param.h>
13539
13540 int
13541 main ()
13542 {
13543 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
13544 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
13545 && LITTLE_ENDIAN)
13546 bogus endian macros
13547 #endif
13548
13549 ;
13550 return 0;
13551 }
13552 _ACEOF
13553 if ac_fn_c_try_compile "$LINENO"; then :
13554 # It does; now see whether it defined to BIG_ENDIAN or not.
13555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13556 /* end confdefs.h. */
13557 #include <sys/types.h>
13558 #include <sys/param.h>
13559
13560 int
13561 main ()
13562 {
13563 #if BYTE_ORDER != BIG_ENDIAN
13564 not big endian
13565 #endif
13566
13567 ;
13568 return 0;
13569 }
13570 _ACEOF
13571 if ac_fn_c_try_compile "$LINENO"; then :
13572 ac_cv_c_bigendian=yes
13573 else
13574 ac_cv_c_bigendian=no
13575 fi
13576 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13577 fi
13578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13579 fi
13580 if test $ac_cv_c_bigendian = unknown; then
13581 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
13582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13583 /* end confdefs.h. */
13584 #include <limits.h>
13585
13586 int
13587 main ()
13588 {
13589 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
13590 bogus endian macros
13591 #endif
13592
13593 ;
13594 return 0;
13595 }
13596 _ACEOF
13597 if ac_fn_c_try_compile "$LINENO"; then :
13598 # It does; now see whether it defined to _BIG_ENDIAN or not.
13599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13600 /* end confdefs.h. */
13601 #include <limits.h>
13602
13603 int
13604 main ()
13605 {
13606 #ifndef _BIG_ENDIAN
13607 not big endian
13608 #endif
13609
13610 ;
13611 return 0;
13612 }
13613 _ACEOF
13614 if ac_fn_c_try_compile "$LINENO"; then :
13615 ac_cv_c_bigendian=yes
13616 else
13617 ac_cv_c_bigendian=no
13618 fi
13619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13620 fi
13621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13622 fi
13623 if test $ac_cv_c_bigendian = unknown; then
13624 # Compile a test program.
13625 if test "$cross_compiling" = yes; then :
13626 # Try to guess by grepping values from an object file.
13627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13628 /* end confdefs.h. */
13629 short int ascii_mm[] =
13630 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
13631 short int ascii_ii[] =
13632 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
13633 int use_ascii (int i) {
13634 return ascii_mm[i] + ascii_ii[i];
13635 }
13636 short int ebcdic_ii[] =
13637 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
13638 short int ebcdic_mm[] =
13639 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
13640 int use_ebcdic (int i) {
13641 return ebcdic_mm[i] + ebcdic_ii[i];
13642 }
13643 extern int foo;
13644
13645 int
13646 main ()
13647 {
13648 return use_ascii (foo) == use_ebcdic (foo);
13649 ;
13650 return 0;
13651 }
13652 _ACEOF
13653 if ac_fn_c_try_compile "$LINENO"; then :
13654 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
13655 ac_cv_c_bigendian=yes
13656 fi
13657 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
13658 if test "$ac_cv_c_bigendian" = unknown; then
13659 ac_cv_c_bigendian=no
13660 else
13661 # finding both strings is unlikely to happen, but who knows?
13662 ac_cv_c_bigendian=unknown
13663 fi
13664 fi
13665 fi
13666 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13667 else
13668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13669 /* end confdefs.h. */
13670 $ac_includes_default
13671 int
13672 main ()
13673 {
13674
13675 /* Are we little or big endian? From Harbison&Steele. */
13676 union
13677 {
13678 long int l;
13679 char c[sizeof (long int)];
13680 } u;
13681 u.l = 1;
13682 return u.c[sizeof (long int) - 1] == 1;
13683
13684 ;
13685 return 0;
13686 }
13687 _ACEOF
13688 if ac_fn_c_try_run "$LINENO"; then :
13689 ac_cv_c_bigendian=no
13690 else
13691 ac_cv_c_bigendian=yes
13692 fi
13693 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13694 conftest.$ac_objext conftest.beam conftest.$ac_ext
13695 fi
13696
13697 fi
13698 fi
13699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
13700 $as_echo "$ac_cv_c_bigendian" >&6; }
13701 case $ac_cv_c_bigendian in #(
13702 yes)
13703 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
13704 ;; #(
13705 no)
13706 ;; #(
13707 universal)
13708
13709 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
13710
13711 ;; #(
13712 *)
13713 as_fn_error $? "unknown endianness
13714 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
13715 esac
13716
13717
13718 # Checks for library functions.
13719
13720
13721
13722 for ac_func in $ac_func_list
13723 do :
13724 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13725 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13726 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13727 cat >>confdefs.h <<_ACEOF
13728 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13729 _ACEOF
13730
13731 fi
13732 done
13733
13734
13735
13736
13737
13738
13739
13740
13741
13742
13743
13744 # Checks for header files.
13745
13746
13747
13748 for ac_header in $ac_header_list
13749 do :
13750 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13751 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
13752 "
13753 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13754 cat >>confdefs.h <<_ACEOF
13755 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13756 _ACEOF
13757
13758 fi
13759
13760 done
13761
13762
13763
13764
13765
13766
13767
13768
13769
13770
13771
13772
13773
13774
13775
13776
13777
13778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crypt" >&5
13779 $as_echo_n "checking for library containing crypt... " >&6; }
13780 if ${ac_cv_search_crypt+:} false; then :
13781 $as_echo_n "(cached) " >&6
13782 else
13783 ac_func_search_save_LIBS=$LIBS
13784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13785 /* end confdefs.h. */
13786
13787 /* Override any GCC internal prototype to avoid an error.
13788 Use char because int might match the return type of a GCC
13789 builtin and then its argument prototype would still apply. */
13790 #ifdef __cplusplus
13791 extern "C"
13792 #endif
13793 char crypt ();
13794 int
13795 main ()
13796 {
13797 return crypt ();
13798 ;
13799 return 0;
13800 }
13801 _ACEOF
13802 for ac_lib in '' crypt; do
13803 if test -z "$ac_lib"; then
13804 ac_res="none required"
13805 else
13806 ac_res=-l$ac_lib
13807 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13808 fi
13809 if ac_fn_c_try_link "$LINENO"; then :
13810 ac_cv_search_crypt=$ac_res
13811 fi
13812 rm -f core conftest.err conftest.$ac_objext \
13813 conftest$ac_exeext
13814 if ${ac_cv_search_crypt+:} false; then :
13815 break
13816 fi
13817 done
13818 if ${ac_cv_search_crypt+:} false; then :
13819
13820 else
13821 ac_cv_search_crypt=no
13822 fi
13823 rm conftest.$ac_ext
13824 LIBS=$ac_func_search_save_LIBS
13825 fi
13826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypt" >&5
13827 $as_echo "$ac_cv_search_crypt" >&6; }
13828 ac_res=$ac_cv_search_crypt
13829 if test "$ac_res" != no; then :
13830 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13831
13832 fi
13833
13834
13835 # Check whether --enable-libgeoip was given.
13836 if test "${enable_libgeoip+set}" = set; then :
13837 enableval=$enable_libgeoip;
13838 else
13839 ac_fn_c_check_header_mongrel "$LINENO" "GeoIP.h" "ac_cv_header_GeoIP_h" "$ac_includes_default"
13840 if test "x$ac_cv_header_GeoIP_h" = xyes; then :
13841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing GeoIP_id_by_ipnum_v6_gl" >&5
13842 $as_echo_n "checking for library containing GeoIP_id_by_ipnum_v6_gl... " >&6; }
13843 if ${ac_cv_search_GeoIP_id_by_ipnum_v6_gl+:} false; then :
13844 $as_echo_n "(cached) " >&6
13845 else
13846 ac_func_search_save_LIBS=$LIBS
13847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13848 /* end confdefs.h. */
13849
13850 /* Override any GCC internal prototype to avoid an error.
13851 Use char because int might match the return type of a GCC
13852 builtin and then its argument prototype would still apply. */
13853 #ifdef __cplusplus
13854 extern "C"
13855 #endif
13856 char GeoIP_id_by_ipnum_v6_gl ();
13857 int
13858 main ()
13859 {
13860 return GeoIP_id_by_ipnum_v6_gl ();
13861 ;
13862 return 0;
13863 }
13864 _ACEOF
13865 for ac_lib in '' GeoIP; do
13866 if test -z "$ac_lib"; then
13867 ac_res="none required"
13868 else
13869 ac_res=-l$ac_lib
13870 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13871 fi
13872 if ac_fn_c_try_link "$LINENO"; then :
13873 ac_cv_search_GeoIP_id_by_ipnum_v6_gl=$ac_res
13874 fi
13875 rm -f core conftest.err conftest.$ac_objext \
13876 conftest$ac_exeext
13877 if ${ac_cv_search_GeoIP_id_by_ipnum_v6_gl+:} false; then :
13878 break
13879 fi
13880 done
13881 if ${ac_cv_search_GeoIP_id_by_ipnum_v6_gl+:} false; then :
13882
13883 else
13884 ac_cv_search_GeoIP_id_by_ipnum_v6_gl=no
13885 fi
13886 rm conftest.$ac_ext
13887 LIBS=$ac_func_search_save_LIBS
13888 fi
13889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_GeoIP_id_by_ipnum_v6_gl" >&5
13890 $as_echo "$ac_cv_search_GeoIP_id_by_ipnum_v6_gl" >&6; }
13891 ac_res=$ac_cv_search_GeoIP_id_by_ipnum_v6_gl
13892 if test "$ac_res" != no; then :
13893 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13894
13895 $as_echo "#define HAVE_LIBGEOIP 1" >>confdefs.h
13896
13897 fi
13898
13899 fi
13900
13901
13902 fi
13903
13904
13905 # Check whether --enable-assert was given.
13906 if test "${enable_assert+set}" = set; then :
13907 enableval=$enable_assert; assert=$enableval
13908 else
13909 assert=no
13910 fi
13911
13912
13913 if test "$assert" = "no"; then :
13914
13915 $as_echo "#define NDEBUG 1" >>confdefs.h
13916
13917 fi
13918
13919
13920 $as_echo "#define NICKNAMEHISTORYLENGTH 32768" >>confdefs.h
13921
13922
13923 $as_echo "#define MP_CHUNK_SIZE_CHANNEL 1024*1024" >>confdefs.h
13924
13925
13926 $as_echo "#define MP_CHUNK_SIZE_MEMBER 2048*1024" >>confdefs.h
13927
13928
13929 $as_echo "#define MP_CHUNK_SIZE_BAN 1024*1024" >>confdefs.h
13930
13931
13932 $as_echo "#define MP_CHUNK_SIZE_CLIENT 1024*1024" >>confdefs.h
13933
13934
13935 $as_echo "#define MP_CHUNK_SIZE_LCLIENT 512*1024" >>confdefs.h
13936
13937
13938 $as_echo "#define MP_CHUNK_SIZE_DNODE 32*1024" >>confdefs.h
13939
13940
13941 $as_echo "#define MP_CHUNK_SIZE_DBUF 512*1024" >>confdefs.h
13942
13943
13944 $as_echo "#define MP_CHUNK_SIZE_AUTH 128*1024" >>confdefs.h
13945
13946
13947 $as_echo "#define MP_CHUNK_SIZE_DNS 64*1024" >>confdefs.h
13948
13949
13950 $as_echo "#define MP_CHUNK_SIZE_WATCH 8*1024" >>confdefs.h
13951
13952
13953 $as_echo "#define MP_CHUNK_SIZE_NAMEHOST 64*1024" >>confdefs.h
13954
13955
13956 $as_echo "#define MP_CHUNK_SIZE_USERHOST 128*1024" >>confdefs.h
13957
13958
13959 $as_echo "#define MP_CHUNK_SIZE_IP_ENTRY 128*1024" >>confdefs.h
13960
13961
13962 # Argument processing.
13963
13964 desired_iopoll_mechanism="none"
13965
13966 # Check whether --enable-kqueue was given.
13967 if test "${enable_kqueue+set}" = set; then :
13968 enableval=$enable_kqueue; desired_iopoll_mechanism="kqueue"
13969 fi
13970
13971 # Check whether --enable-epoll was given.
13972 if test "${enable_epoll+set}" = set; then :
13973 enableval=$enable_epoll; desired_iopoll_mechanism="epoll"
13974 fi
13975
13976 # Check whether --enable-devpoll was given.
13977 if test "${enable_devpoll+set}" = set; then :
13978 enableval=$enable_devpoll; desired_iopoll_mechanism="devpoll"
13979 fi
13980
13981 # Check whether --enable-poll was given.
13982 if test "${enable_poll+set}" = set; then :
13983 enableval=$enable_poll; desired_iopoll_mechanism="poll"
13984 fi
13985
13986
13987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for optimal/desired iopoll mechanism" >&5
13988 $as_echo_n "checking for optimal/desired iopoll mechanism... " >&6; }
13989
13990 iopoll_mechanism_none=0
13991
13992 cat >>confdefs.h <<_ACEOF
13993 #define __IOPOLL_MECHANISM_NONE $iopoll_mechanism_none
13994 _ACEOF
13995
13996
13997 iopoll_mechanism_kqueue=1
13998
13999 cat >>confdefs.h <<_ACEOF
14000 #define __IOPOLL_MECHANISM_KQUEUE $iopoll_mechanism_kqueue
14001 _ACEOF
14002
14003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14004 /* end confdefs.h. */
14005 /* Define kevent to an innocuous variant, in case <limits.h> declares kevent.
14006 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14007 #define kevent innocuous_kevent
14008
14009 /* System header to define __stub macros and hopefully few prototypes,
14010 which can conflict with char kevent (); below.
14011 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14012 <limits.h> exists even on freestanding compilers. */
14013
14014 #ifdef __STDC__
14015 # include <limits.h>
14016 #else
14017 # include <assert.h>
14018 #endif
14019
14020 #undef kevent
14021
14022 /* Override any GCC internal prototype to avoid an error.
14023 Use char because int might match the return type of a GCC
14024 builtin and then its argument prototype would still apply. */
14025 #ifdef __cplusplus
14026 extern "C"
14027 #endif
14028 char kevent ();
14029 /* The GNU C library defines this for functions which it implements
14030 to always fail with ENOSYS. Some functions are actually named
14031 something starting with __ and the normal name is an alias. */
14032 #if defined __stub_kevent || defined __stub___kevent
14033 choke me
14034 #endif
14035
14036 int
14037 main ()
14038 {
14039 return kevent ();
14040 ;
14041 return 0;
14042 }
14043 _ACEOF
14044 if ac_fn_c_try_link "$LINENO"; then :
14045 is_kqueue_mechanism_available="yes"
14046 else
14047 is_kqueue_mechanism_available="no"
14048 fi
14049 rm -f core conftest.err conftest.$ac_objext \
14050 conftest$ac_exeext conftest.$ac_ext
14051
14052 iopoll_mechanism_epoll=2
14053
14054 cat >>confdefs.h <<_ACEOF
14055 #define __IOPOLL_MECHANISM_EPOLL $iopoll_mechanism_epoll
14056 _ACEOF
14057
14058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14059 /* end confdefs.h. */
14060 #include <sys/epoll.h>
14061 int
14062 main ()
14063 {
14064 epoll_create(256);
14065 ;
14066 return 0;
14067 }
14068 _ACEOF
14069 if ac_fn_c_try_link "$LINENO"; then :
14070 is_epoll_mechanism_available="yes"
14071 else
14072 is_epoll_mechanism_available="no"
14073 fi
14074 rm -f core conftest.err conftest.$ac_objext \
14075 conftest$ac_exeext conftest.$ac_ext
14076
14077 iopoll_mechanism_devpoll=3
14078
14079 cat >>confdefs.h <<_ACEOF
14080 #define __IOPOLL_MECHANISM_DEVPOLL $iopoll_mechanism_devpoll
14081 _ACEOF
14082
14083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14084 /* end confdefs.h. */
14085 #include <devpoll.h>
14086 int
14087 main ()
14088 {
14089
14090 ;
14091 return 0;
14092 }
14093 _ACEOF
14094 if ac_fn_c_try_compile "$LINENO"; then :
14095 is_devpoll_mechanism_available="yes"
14096 else
14097 is_devpoll_mechanism_available="no"
14098 fi
14099 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14100 if test "$is_devpoll_mechanism_available" = "yes" ; then
14101
14102 $as_echo "#define HAVE_DEVPOLL_H 1" >>confdefs.h
14103
14104 fi
14105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14106 /* end confdefs.h. */
14107 #include <sys/devpoll.h>
14108 int
14109 main ()
14110 {
14111
14112 ;
14113 return 0;
14114 }
14115 _ACEOF
14116 if ac_fn_c_try_compile "$LINENO"; then :
14117 is_devpoll_mechanism_available="yes"
14118 else
14119 is_devpoll_mechanism_available="no"
14120 fi
14121 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14122 if test "$is_devpoll_mechanism_available" = "yes" ; then
14123
14124 $as_echo "#define HAVE_SYS_DEVPOLL_H 1" >>confdefs.h
14125
14126 fi
14127
14128 iopoll_mechanism_poll=4
14129
14130 cat >>confdefs.h <<_ACEOF
14131 #define __IOPOLL_MECHANISM_POLL $iopoll_mechanism_poll
14132 _ACEOF
14133
14134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14135 /* end confdefs.h. */
14136 /* Define poll to an innocuous variant, in case <limits.h> declares poll.
14137 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14138 #define poll innocuous_poll
14139
14140 /* System header to define __stub macros and hopefully few prototypes,
14141 which can conflict with char poll (); below.
14142 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14143 <limits.h> exists even on freestanding compilers. */
14144
14145 #ifdef __STDC__
14146 # include <limits.h>
14147 #else
14148 # include <assert.h>
14149 #endif
14150
14151 #undef poll
14152
14153 /* Override any GCC internal prototype to avoid an error.
14154 Use char because int might match the return type of a GCC
14155 builtin and then its argument prototype would still apply. */
14156 #ifdef __cplusplus
14157 extern "C"
14158 #endif
14159 char poll ();
14160 /* The GNU C library defines this for functions which it implements
14161 to always fail with ENOSYS. Some functions are actually named
14162 something starting with __ and the normal name is an alias. */
14163 #if defined __stub_poll || defined __stub___poll
14164 choke me
14165 #endif
14166
14167 int
14168 main ()
14169 {
14170 return poll ();
14171 ;
14172 return 0;
14173 }
14174 _ACEOF
14175 if ac_fn_c_try_link "$LINENO"; then :
14176 is_poll_mechanism_available="yes"
14177 else
14178 is_poll_mechanism_available="no"
14179 fi
14180 rm -f core conftest.err conftest.$ac_objext \
14181 conftest$ac_exeext conftest.$ac_ext
14182
14183 optimal_iopoll_mechanism="none"
14184 for mechanism in "kqueue" "epoll" "devpoll" "poll" ; do # order is important
14185 eval "is_optimal_iopoll_mechanism_available=\$is_${mechanism}_mechanism_available"
14186 if test "$is_optimal_iopoll_mechanism_available" = "yes" ; then
14187 optimal_iopoll_mechanism="$mechanism"
14188 break
14189 fi
14190 done
14191
14192 if test "$desired_iopoll_mechanism" = "none" ; then
14193 if test "$optimal_iopoll_mechanism" = "none" ; then
14194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
14195 $as_echo "none" >&6; }
14196 as_fn_error $? "no iopoll mechanism found!" "$LINENO" 5
14197 else
14198 selected_iopoll_mechanism=$optimal_iopoll_mechanism
14199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $selected_iopoll_mechanism" >&5
14200 $as_echo "$selected_iopoll_mechanism" >&6; }
14201 fi
14202 else
14203 eval "is_desired_iopoll_mechanism_available=\$is_${desired_iopoll_mechanism}_mechanism_available"
14204 if test "$is_desired_iopoll_mechanism_available" = "yes" ; then
14205 selected_iopoll_mechanism=$desired_iopoll_mechanism
14206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $selected_iopoll_mechanism" >&5
14207 $as_echo "$selected_iopoll_mechanism" >&6; }
14208 else
14209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
14210 $as_echo "none" >&6; }
14211 as_fn_error $? "desired iopoll mechanism, $desired_iopoll_mechanism, is not available" "$LINENO" 5
14212 fi
14213 fi
14214
14215 eval "use_iopoll_mechanism=\$iopoll_mechanism_${selected_iopoll_mechanism}"
14216
14217 cat >>confdefs.h <<_ACEOF
14218 #define USE_IOPOLL_MECHANISM $use_iopoll_mechanism
14219 _ACEOF
14220
14221
14222
14223 # Check whether --enable-debugging was given.
14224 if test "${enable_debugging+set}" = set; then :
14225 enableval=$enable_debugging; debugging="$enableval"
14226 else
14227 debugging="no"
14228 fi
14229
14230 if test "$debugging" = "yes" ; then
14231 CFLAGS="-Wall -g -O0"
14232 fi
14233
14234
14235 # Check whether --enable-warnings was given.
14236 if test "${enable_warnings+set}" = set; then :
14237 enableval=$enable_warnings; warnings="$enableval"
14238 else
14239 warnings="no"
14240 fi
14241
14242
14243 if test "$warnings" = "yes" ; then
14244
14245
14246
14247
14248 for flag in -Wall; do
14249 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
14250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
14251 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
14252 if eval \${$as_CACHEVAR+:} false; then :
14253 $as_echo_n "(cached) " >&6
14254 else
14255
14256 ax_check_save_flags=$CFLAGS
14257 CFLAGS="$CFLAGS $flag"
14258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14259 /* end confdefs.h. */
14260
14261 int
14262 main ()
14263 {
14264
14265 ;
14266 return 0;
14267 }
14268 _ACEOF
14269 if ac_fn_c_try_compile "$LINENO"; then :
14270 eval "$as_CACHEVAR=yes"
14271 else
14272 eval "$as_CACHEVAR=no"
14273 fi
14274 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14275 CFLAGS=$ax_check_save_flags
14276 fi
14277 eval ac_res=\$$as_CACHEVAR
14278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14279 $as_echo "$ac_res" >&6; }
14280 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
14281 if ${CFLAGS+:} false; then :
14282 case " $CFLAGS " in
14283 *" $flag "*)
14284 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
14285 (: CFLAGS already contains $flag) 2>&5
14286 ac_status=$?
14287 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14288 test $ac_status = 0; }
14289 ;;
14290 *)
14291 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
14292 (: CFLAGS="$CFLAGS $flag") 2>&5
14293 ac_status=$?
14294 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14295 test $ac_status = 0; }
14296 CFLAGS="$CFLAGS $flag"
14297 ;;
14298 esac
14299 else
14300 CFLAGS="$flag"
14301 fi
14302
14303 else
14304 :
14305 fi
14306
14307 done
14308
14309
14310
14311
14312
14313 for flag in -Wextra; do
14314 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
14315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
14316 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
14317 if eval \${$as_CACHEVAR+:} false; then :
14318 $as_echo_n "(cached) " >&6
14319 else
14320
14321 ax_check_save_flags=$CFLAGS
14322 CFLAGS="$CFLAGS $flag"
14323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14324 /* end confdefs.h. */
14325
14326 int
14327 main ()
14328 {
14329
14330 ;
14331 return 0;
14332 }
14333 _ACEOF
14334 if ac_fn_c_try_compile "$LINENO"; then :
14335 eval "$as_CACHEVAR=yes"
14336 else
14337 eval "$as_CACHEVAR=no"
14338 fi
14339 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14340 CFLAGS=$ax_check_save_flags
14341 fi
14342 eval ac_res=\$$as_CACHEVAR
14343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14344 $as_echo "$ac_res" >&6; }
14345 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
14346 if ${CFLAGS+:} false; then :
14347 case " $CFLAGS " in
14348 *" $flag "*)
14349 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
14350 (: CFLAGS already contains $flag) 2>&5
14351 ac_status=$?
14352 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14353 test $ac_status = 0; }
14354 ;;
14355 *)
14356 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
14357 (: CFLAGS="$CFLAGS $flag") 2>&5
14358 ac_status=$?
14359 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14360 test $ac_status = 0; }
14361 CFLAGS="$CFLAGS $flag"
14362 ;;
14363 esac
14364 else
14365 CFLAGS="$flag"
14366 fi
14367
14368 else
14369 :
14370 fi
14371
14372 done
14373
14374
14375
14376
14377
14378 for flag in -Wno-unused; do
14379 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
14380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
14381 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
14382 if eval \${$as_CACHEVAR+:} false; then :
14383 $as_echo_n "(cached) " >&6
14384 else
14385
14386 ax_check_save_flags=$CFLAGS
14387 CFLAGS="$CFLAGS $flag"
14388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14389 /* end confdefs.h. */
14390
14391 int
14392 main ()
14393 {
14394
14395 ;
14396 return 0;
14397 }
14398 _ACEOF
14399 if ac_fn_c_try_compile "$LINENO"; then :
14400 eval "$as_CACHEVAR=yes"
14401 else
14402 eval "$as_CACHEVAR=no"
14403 fi
14404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14405 CFLAGS=$ax_check_save_flags
14406 fi
14407 eval ac_res=\$$as_CACHEVAR
14408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14409 $as_echo "$ac_res" >&6; }
14410 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
14411 if ${CFLAGS+:} false; then :
14412 case " $CFLAGS " in
14413 *" $flag "*)
14414 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
14415 (: CFLAGS already contains $flag) 2>&5
14416 ac_status=$?
14417 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14418 test $ac_status = 0; }
14419 ;;
14420 *)
14421 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
14422 (: CFLAGS="$CFLAGS $flag") 2>&5
14423 ac_status=$?
14424 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14425 test $ac_status = 0; }
14426 CFLAGS="$CFLAGS $flag"
14427 ;;
14428 esac
14429 else
14430 CFLAGS="$flag"
14431 fi
14432
14433 else
14434 :
14435 fi
14436
14437 done
14438
14439
14440
14441
14442
14443 for flag in -Wcast-qual; do
14444 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
14445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
14446 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
14447 if eval \${$as_CACHEVAR+:} false; then :
14448 $as_echo_n "(cached) " >&6
14449 else
14450
14451 ax_check_save_flags=$CFLAGS
14452 CFLAGS="$CFLAGS $flag"
14453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14454 /* end confdefs.h. */
14455
14456 int
14457 main ()
14458 {
14459
14460 ;
14461 return 0;
14462 }
14463 _ACEOF
14464 if ac_fn_c_try_compile "$LINENO"; then :
14465 eval "$as_CACHEVAR=yes"
14466 else
14467 eval "$as_CACHEVAR=no"
14468 fi
14469 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14470 CFLAGS=$ax_check_save_flags
14471 fi
14472 eval ac_res=\$$as_CACHEVAR
14473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14474 $as_echo "$ac_res" >&6; }
14475 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
14476 if ${CFLAGS+:} false; then :
14477 case " $CFLAGS " in
14478 *" $flag "*)
14479 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
14480 (: CFLAGS already contains $flag) 2>&5
14481 ac_status=$?
14482 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14483 test $ac_status = 0; }
14484 ;;
14485 *)
14486 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
14487 (: CFLAGS="$CFLAGS $flag") 2>&5
14488 ac_status=$?
14489 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14490 test $ac_status = 0; }
14491 CFLAGS="$CFLAGS $flag"
14492 ;;
14493 esac
14494 else
14495 CFLAGS="$flag"
14496 fi
14497
14498 else
14499 :
14500 fi
14501
14502 done
14503
14504
14505
14506
14507
14508 for flag in -Wcast-align; do
14509 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
14510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
14511 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
14512 if eval \${$as_CACHEVAR+:} false; then :
14513 $as_echo_n "(cached) " >&6
14514 else
14515
14516 ax_check_save_flags=$CFLAGS
14517 CFLAGS="$CFLAGS $flag"
14518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14519 /* end confdefs.h. */
14520
14521 int
14522 main ()
14523 {
14524
14525 ;
14526 return 0;
14527 }
14528 _ACEOF
14529 if ac_fn_c_try_compile "$LINENO"; then :
14530 eval "$as_CACHEVAR=yes"
14531 else
14532 eval "$as_CACHEVAR=no"
14533 fi
14534 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14535 CFLAGS=$ax_check_save_flags
14536 fi
14537 eval ac_res=\$$as_CACHEVAR
14538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14539 $as_echo "$ac_res" >&6; }
14540 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
14541 if ${CFLAGS+:} false; then :
14542 case " $CFLAGS " in
14543 *" $flag "*)
14544 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
14545 (: CFLAGS already contains $flag) 2>&5
14546 ac_status=$?
14547 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14548 test $ac_status = 0; }
14549 ;;
14550 *)
14551 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
14552 (: CFLAGS="$CFLAGS $flag") 2>&5
14553 ac_status=$?
14554 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14555 test $ac_status = 0; }
14556 CFLAGS="$CFLAGS $flag"
14557 ;;
14558 esac
14559 else
14560 CFLAGS="$flag"
14561 fi
14562
14563 else
14564 :
14565 fi
14566
14567 done
14568
14569
14570
14571
14572
14573 for flag in -Wbad-function-cast; do
14574 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
14575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
14576 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
14577 if eval \${$as_CACHEVAR+:} false; then :
14578 $as_echo_n "(cached) " >&6
14579 else
14580
14581 ax_check_save_flags=$CFLAGS
14582 CFLAGS="$CFLAGS $flag"
14583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14584 /* end confdefs.h. */
14585
14586 int
14587 main ()
14588 {
14589
14590 ;
14591 return 0;
14592 }
14593 _ACEOF
14594 if ac_fn_c_try_compile "$LINENO"; then :
14595 eval "$as_CACHEVAR=yes"
14596 else
14597 eval "$as_CACHEVAR=no"
14598 fi
14599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14600 CFLAGS=$ax_check_save_flags
14601 fi
14602 eval ac_res=\$$as_CACHEVAR
14603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14604 $as_echo "$ac_res" >&6; }
14605 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
14606 if ${CFLAGS+:} false; then :
14607 case " $CFLAGS " in
14608 *" $flag "*)
14609 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
14610 (: CFLAGS already contains $flag) 2>&5
14611 ac_status=$?
14612 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14613 test $ac_status = 0; }
14614 ;;
14615 *)
14616 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
14617 (: CFLAGS="$CFLAGS $flag") 2>&5
14618 ac_status=$?
14619 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14620 test $ac_status = 0; }
14621 CFLAGS="$CFLAGS $flag"
14622 ;;
14623 esac
14624 else
14625 CFLAGS="$flag"
14626 fi
14627
14628 else
14629 :
14630 fi
14631
14632 done
14633
14634
14635
14636
14637
14638 for flag in -Wlogical-op; do
14639 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
14640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
14641 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
14642 if eval \${$as_CACHEVAR+:} false; then :
14643 $as_echo_n "(cached) " >&6
14644 else
14645
14646 ax_check_save_flags=$CFLAGS
14647 CFLAGS="$CFLAGS $flag"
14648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14649 /* end confdefs.h. */
14650
14651 int
14652 main ()
14653 {
14654
14655 ;
14656 return 0;
14657 }
14658 _ACEOF
14659 if ac_fn_c_try_compile "$LINENO"; then :
14660 eval "$as_CACHEVAR=yes"
14661 else
14662 eval "$as_CACHEVAR=no"
14663 fi
14664 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14665 CFLAGS=$ax_check_save_flags
14666 fi
14667 eval ac_res=\$$as_CACHEVAR
14668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14669 $as_echo "$ac_res" >&6; }
14670 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
14671 if ${CFLAGS+:} false; then :
14672 case " $CFLAGS " in
14673 *" $flag "*)
14674 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
14675 (: CFLAGS already contains $flag) 2>&5
14676 ac_status=$?
14677 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14678 test $ac_status = 0; }
14679 ;;
14680 *)
14681 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
14682 (: CFLAGS="$CFLAGS $flag") 2>&5
14683 ac_status=$?
14684 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14685 test $ac_status = 0; }
14686 CFLAGS="$CFLAGS $flag"
14687 ;;
14688 esac
14689 else
14690 CFLAGS="$flag"
14691 fi
14692
14693 else
14694 :
14695 fi
14696
14697 done
14698
14699
14700
14701
14702
14703 for flag in -Wmissing-declarations; do
14704 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
14705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
14706 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
14707 if eval \${$as_CACHEVAR+:} false; then :
14708 $as_echo_n "(cached) " >&6
14709 else
14710
14711 ax_check_save_flags=$CFLAGS
14712 CFLAGS="$CFLAGS $flag"
14713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14714 /* end confdefs.h. */
14715
14716 int
14717 main ()
14718 {
14719
14720 ;
14721 return 0;
14722 }
14723 _ACEOF
14724 if ac_fn_c_try_compile "$LINENO"; then :
14725 eval "$as_CACHEVAR=yes"
14726 else
14727 eval "$as_CACHEVAR=no"
14728 fi
14729 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14730 CFLAGS=$ax_check_save_flags
14731 fi
14732 eval ac_res=\$$as_CACHEVAR
14733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14734 $as_echo "$ac_res" >&6; }
14735 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
14736 if ${CFLAGS+:} false; then :
14737 case " $CFLAGS " in
14738 *" $flag "*)
14739 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
14740 (: CFLAGS already contains $flag) 2>&5
14741 ac_status=$?
14742 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14743 test $ac_status = 0; }
14744 ;;
14745 *)
14746 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
14747 (: CFLAGS="$CFLAGS $flag") 2>&5
14748 ac_status=$?
14749 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14750 test $ac_status = 0; }
14751 CFLAGS="$CFLAGS $flag"
14752 ;;
14753 esac
14754 else
14755 CFLAGS="$flag"
14756 fi
14757
14758 else
14759 :
14760 fi
14761
14762 done
14763
14764
14765
14766
14767
14768 for flag in -Wmissing-include-dirs; do
14769 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
14770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
14771 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
14772 if eval \${$as_CACHEVAR+:} false; then :
14773 $as_echo_n "(cached) " >&6
14774 else
14775
14776 ax_check_save_flags=$CFLAGS
14777 CFLAGS="$CFLAGS $flag"
14778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14779 /* end confdefs.h. */
14780
14781 int
14782 main ()
14783 {
14784
14785 ;
14786 return 0;
14787 }
14788 _ACEOF
14789 if ac_fn_c_try_compile "$LINENO"; then :
14790 eval "$as_CACHEVAR=yes"
14791 else
14792 eval "$as_CACHEVAR=no"
14793 fi
14794 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14795 CFLAGS=$ax_check_save_flags
14796 fi
14797 eval ac_res=\$$as_CACHEVAR
14798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14799 $as_echo "$ac_res" >&6; }
14800 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
14801 if ${CFLAGS+:} false; then :
14802 case " $CFLAGS " in
14803 *" $flag "*)
14804 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
14805 (: CFLAGS already contains $flag) 2>&5
14806 ac_status=$?
14807 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14808 test $ac_status = 0; }
14809 ;;
14810 *)
14811 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
14812 (: CFLAGS="$CFLAGS $flag") 2>&5
14813 ac_status=$?
14814 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14815 test $ac_status = 0; }
14816 CFLAGS="$CFLAGS $flag"
14817 ;;
14818 esac
14819 else
14820 CFLAGS="$flag"
14821 fi
14822
14823 else
14824 :
14825 fi
14826
14827 done
14828
14829
14830
14831
14832
14833 for flag in -Wmissing-prototypes; do
14834 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
14835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
14836 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
14837 if eval \${$as_CACHEVAR+:} false; then :
14838 $as_echo_n "(cached) " >&6
14839 else
14840
14841 ax_check_save_flags=$CFLAGS
14842 CFLAGS="$CFLAGS $flag"
14843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14844 /* end confdefs.h. */
14845
14846 int
14847 main ()
14848 {
14849
14850 ;
14851 return 0;
14852 }
14853 _ACEOF
14854 if ac_fn_c_try_compile "$LINENO"; then :
14855 eval "$as_CACHEVAR=yes"
14856 else
14857 eval "$as_CACHEVAR=no"
14858 fi
14859 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14860 CFLAGS=$ax_check_save_flags
14861 fi
14862 eval ac_res=\$$as_CACHEVAR
14863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14864 $as_echo "$ac_res" >&6; }
14865 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
14866 if ${CFLAGS+:} false; then :
14867 case " $CFLAGS " in
14868 *" $flag "*)
14869 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
14870 (: CFLAGS already contains $flag) 2>&5
14871 ac_status=$?
14872 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14873 test $ac_status = 0; }
14874 ;;
14875 *)
14876 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
14877 (: CFLAGS="$CFLAGS $flag") 2>&5
14878 ac_status=$?
14879 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14880 test $ac_status = 0; }
14881 CFLAGS="$CFLAGS $flag"
14882 ;;
14883 esac
14884 else
14885 CFLAGS="$flag"
14886 fi
14887
14888 else
14889 :
14890 fi
14891
14892 done
14893
14894
14895
14896
14897
14898 for flag in -Wnested-externs; do
14899 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
14900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
14901 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
14902 if eval \${$as_CACHEVAR+:} false; then :
14903 $as_echo_n "(cached) " >&6
14904 else
14905
14906 ax_check_save_flags=$CFLAGS
14907 CFLAGS="$CFLAGS $flag"
14908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14909 /* end confdefs.h. */
14910
14911 int
14912 main ()
14913 {
14914
14915 ;
14916 return 0;
14917 }
14918 _ACEOF
14919 if ac_fn_c_try_compile "$LINENO"; then :
14920 eval "$as_CACHEVAR=yes"
14921 else
14922 eval "$as_CACHEVAR=no"
14923 fi
14924 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14925 CFLAGS=$ax_check_save_flags
14926 fi
14927 eval ac_res=\$$as_CACHEVAR
14928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14929 $as_echo "$ac_res" >&6; }
14930 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
14931 if ${CFLAGS+:} false; then :
14932 case " $CFLAGS " in
14933 *" $flag "*)
14934 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
14935 (: CFLAGS already contains $flag) 2>&5
14936 ac_status=$?
14937 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14938 test $ac_status = 0; }
14939 ;;
14940 *)
14941 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
14942 (: CFLAGS="$CFLAGS $flag") 2>&5
14943 ac_status=$?
14944 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14945 test $ac_status = 0; }
14946 CFLAGS="$CFLAGS $flag"
14947 ;;
14948 esac
14949 else
14950 CFLAGS="$flag"
14951 fi
14952
14953 else
14954 :
14955 fi
14956
14957 done
14958
14959
14960
14961
14962
14963 for flag in -Wpointer-arith; do
14964 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
14965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
14966 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
14967 if eval \${$as_CACHEVAR+:} false; then :
14968 $as_echo_n "(cached) " >&6
14969 else
14970
14971 ax_check_save_flags=$CFLAGS
14972 CFLAGS="$CFLAGS $flag"
14973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14974 /* end confdefs.h. */
14975
14976 int
14977 main ()
14978 {
14979
14980 ;
14981 return 0;
14982 }
14983 _ACEOF
14984 if ac_fn_c_try_compile "$LINENO"; then :
14985 eval "$as_CACHEVAR=yes"
14986 else
14987 eval "$as_CACHEVAR=no"
14988 fi
14989 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14990 CFLAGS=$ax_check_save_flags
14991 fi
14992 eval ac_res=\$$as_CACHEVAR
14993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14994 $as_echo "$ac_res" >&6; }
14995 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
14996 if ${CFLAGS+:} false; then :
14997 case " $CFLAGS " in
14998 *" $flag "*)
14999 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
15000 (: CFLAGS already contains $flag) 2>&5
15001 ac_status=$?
15002 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15003 test $ac_status = 0; }
15004 ;;
15005 *)
15006 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
15007 (: CFLAGS="$CFLAGS $flag") 2>&5
15008 ac_status=$?
15009 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15010 test $ac_status = 0; }
15011 CFLAGS="$CFLAGS $flag"
15012 ;;
15013 esac
15014 else
15015 CFLAGS="$flag"
15016 fi
15017
15018 else
15019 :
15020 fi
15021
15022 done
15023
15024
15025
15026
15027
15028 for flag in -Wredundant-decls; do
15029 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
15030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
15031 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
15032 if eval \${$as_CACHEVAR+:} false; then :
15033 $as_echo_n "(cached) " >&6
15034 else
15035
15036 ax_check_save_flags=$CFLAGS
15037 CFLAGS="$CFLAGS $flag"
15038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15039 /* end confdefs.h. */
15040
15041 int
15042 main ()
15043 {
15044
15045 ;
15046 return 0;
15047 }
15048 _ACEOF
15049 if ac_fn_c_try_compile "$LINENO"; then :
15050 eval "$as_CACHEVAR=yes"
15051 else
15052 eval "$as_CACHEVAR=no"
15053 fi
15054 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15055 CFLAGS=$ax_check_save_flags
15056 fi
15057 eval ac_res=\$$as_CACHEVAR
15058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15059 $as_echo "$ac_res" >&6; }
15060 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
15061 if ${CFLAGS+:} false; then :
15062 case " $CFLAGS " in
15063 *" $flag "*)
15064 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
15065 (: CFLAGS already contains $flag) 2>&5
15066 ac_status=$?
15067 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15068 test $ac_status = 0; }
15069 ;;
15070 *)
15071 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
15072 (: CFLAGS="$CFLAGS $flag") 2>&5
15073 ac_status=$?
15074 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15075 test $ac_status = 0; }
15076 CFLAGS="$CFLAGS $flag"
15077 ;;
15078 esac
15079 else
15080 CFLAGS="$flag"
15081 fi
15082
15083 else
15084 :
15085 fi
15086
15087 done
15088
15089
15090
15091
15092
15093 for flag in -Wshadow; do
15094 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
15095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
15096 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
15097 if eval \${$as_CACHEVAR+:} false; then :
15098 $as_echo_n "(cached) " >&6
15099 else
15100
15101 ax_check_save_flags=$CFLAGS
15102 CFLAGS="$CFLAGS $flag"
15103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15104 /* end confdefs.h. */
15105
15106 int
15107 main ()
15108 {
15109
15110 ;
15111 return 0;
15112 }
15113 _ACEOF
15114 if ac_fn_c_try_compile "$LINENO"; then :
15115 eval "$as_CACHEVAR=yes"
15116 else
15117 eval "$as_CACHEVAR=no"
15118 fi
15119 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15120 CFLAGS=$ax_check_save_flags
15121 fi
15122 eval ac_res=\$$as_CACHEVAR
15123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15124 $as_echo "$ac_res" >&6; }
15125 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
15126 if ${CFLAGS+:} false; then :
15127 case " $CFLAGS " in
15128 *" $flag "*)
15129 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
15130 (: CFLAGS already contains $flag) 2>&5
15131 ac_status=$?
15132 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15133 test $ac_status = 0; }
15134 ;;
15135 *)
15136 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
15137 (: CFLAGS="$CFLAGS $flag") 2>&5
15138 ac_status=$?
15139 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15140 test $ac_status = 0; }
15141 CFLAGS="$CFLAGS $flag"
15142 ;;
15143 esac
15144 else
15145 CFLAGS="$flag"
15146 fi
15147
15148 else
15149 :
15150 fi
15151
15152 done
15153
15154
15155
15156
15157
15158 for flag in -Wwrite-strings; do
15159 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
15160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
15161 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
15162 if eval \${$as_CACHEVAR+:} false; then :
15163 $as_echo_n "(cached) " >&6
15164 else
15165
15166 ax_check_save_flags=$CFLAGS
15167 CFLAGS="$CFLAGS $flag"
15168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15169 /* end confdefs.h. */
15170
15171 int
15172 main ()
15173 {
15174
15175 ;
15176 return 0;
15177 }
15178 _ACEOF
15179 if ac_fn_c_try_compile "$LINENO"; then :
15180 eval "$as_CACHEVAR=yes"
15181 else
15182 eval "$as_CACHEVAR=no"
15183 fi
15184 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15185 CFLAGS=$ax_check_save_flags
15186 fi
15187 eval ac_res=\$$as_CACHEVAR
15188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15189 $as_echo "$ac_res" >&6; }
15190 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
15191 if ${CFLAGS+:} false; then :
15192 case " $CFLAGS " in
15193 *" $flag "*)
15194 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
15195 (: CFLAGS already contains $flag) 2>&5
15196 ac_status=$?
15197 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15198 test $ac_status = 0; }
15199 ;;
15200 *)
15201 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
15202 (: CFLAGS="$CFLAGS $flag") 2>&5
15203 ac_status=$?
15204 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15205 test $ac_status = 0; }
15206 CFLAGS="$CFLAGS $flag"
15207 ;;
15208 esac
15209 else
15210 CFLAGS="$flag"
15211 fi
15212
15213 else
15214 :
15215 fi
15216
15217 done
15218
15219
15220
15221
15222
15223 for flag in -Wundef; do
15224 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
15225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
15226 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
15227 if eval \${$as_CACHEVAR+:} false; then :
15228 $as_echo_n "(cached) " >&6
15229 else
15230
15231 ax_check_save_flags=$CFLAGS
15232 CFLAGS="$CFLAGS $flag"
15233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15234 /* end confdefs.h. */
15235
15236 int
15237 main ()
15238 {
15239
15240 ;
15241 return 0;
15242 }
15243 _ACEOF
15244 if ac_fn_c_try_compile "$LINENO"; then :
15245 eval "$as_CACHEVAR=yes"
15246 else
15247 eval "$as_CACHEVAR=no"
15248 fi
15249 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15250 CFLAGS=$ax_check_save_flags
15251 fi
15252 eval ac_res=\$$as_CACHEVAR
15253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15254 $as_echo "$ac_res" >&6; }
15255 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
15256 if ${CFLAGS+:} false; then :
15257 case " $CFLAGS " in
15258 *" $flag "*)
15259 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
15260 (: CFLAGS already contains $flag) 2>&5
15261 ac_status=$?
15262 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15263 test $ac_status = 0; }
15264 ;;
15265 *)
15266 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
15267 (: CFLAGS="$CFLAGS $flag") 2>&5
15268 ac_status=$?
15269 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15270 test $ac_status = 0; }
15271 CFLAGS="$CFLAGS $flag"
15272 ;;
15273 esac
15274 else
15275 CFLAGS="$flag"
15276 fi
15277
15278 else
15279 :
15280 fi
15281
15282 done
15283
15284 fi
15285
15286
15287 # Check whether --enable-openssl was given.
15288 if test "${enable_openssl+set}" = set; then :
15289 enableval=$enable_openssl; cf_enable_openssl=$enableval
15290 else
15291 cf_enable_openssl="auto"
15292 fi
15293
15294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LibreSSL/OpenSSL" >&5
15295 $as_echo_n "checking for LibreSSL/OpenSSL... " >&6; }
15296 if test "$cf_enable_openssl" != "no"; then
15297 cf_openssl_basedir=""
15298 if test "$cf_enable_openssl" != "auto" &&
15299 test "$cf_enable_openssl" != "yes"; then
15300 cf_openssl_basedir="${cf_enable_openssl}"
15301 else
15302 for dirs in /usr/local/ssl /usr/pkg /usr/local /usr/lib /usr/lib/ssl\
15303 /opt /opt/openssl /usr/local/openssl; do
15304 if test -f "${dirs}/include/openssl/opensslv.h"; then
15305 cf_openssl_basedir="${dirs}"
15306 break
15307 fi
15308 done
15309 unset dirs
15310 fi
15311
15312 if test ! -z "$cf_openssl_basedir"; then
15313 if test -f "${cf_openssl_basedir}/include/openssl/opensslv.h"; then
15314 CPPFLAGS="-I${cf_openssl_basedir}/include $CPPFLAGS"
15315 LDFLAGS="-L${cf_openssl_basedir}/lib $LDFLAGS"
15316 else
15317 cf_openssl_basedir=""
15318 fi
15319 else
15320 if test -f "/usr/include/openssl/opensslv.h"; then
15321 cf_openssl_basedir="/usr"
15322 fi
15323 fi
15324
15325 if test ! -z "$cf_openssl_basedir"; then
15326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cf_openssl_basedir" >&5
15327 $as_echo "$cf_openssl_basedir" >&6; }
15328 cf_enable_openssl="yes"
15329 else
15330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found. Please check your path." >&5
15331 $as_echo "not found. Please check your path." >&6; }
15332 cf_enable_openssl="no"
15333 fi
15334 unset cf_openssl_basedir
15335 else
15336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
15337 $as_echo "disabled" >&6; }
15338 fi
15339
15340 if test "$cf_enable_openssl" != "no"; then :
15341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LibreSSL or OpenSSL 0.9.8o and above" >&5
15342 $as_echo_n "checking for LibreSSL or OpenSSL 0.9.8o and above... " >&6; }
15343 if test "$cross_compiling" = yes; then :
15344 cf_openssl_version_ok=no
15345 else
15346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15347 /* end confdefs.h. */
15348
15349
15350 #include <openssl/opensslv.h>
15351 #include <stdlib.h>
15352 int
15353 main ()
15354 {
15355 exit(!(OPENSSL_VERSION_NUMBER >= 0x009080ffL));
15356 ;
15357 return 0;
15358 }
15359 _ACEOF
15360 if ac_fn_c_try_run "$LINENO"; then :
15361 cf_openssl_version_ok=yes
15362 else
15363 cf_openssl_version_ok=no
15364 fi
15365 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15366 conftest.$ac_objext conftest.beam conftest.$ac_ext
15367 fi
15368
15369
15370 if test "$cf_openssl_version_ok" = "yes"; then :
15371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
15372 $as_echo "found" >&6; }
15373
15374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSA_free in -lcrypto" >&5
15375 $as_echo_n "checking for RSA_free in -lcrypto... " >&6; }
15376 if ${ac_cv_lib_crypto_RSA_free+:} false; then :
15377 $as_echo_n "(cached) " >&6
15378 else
15379 ac_check_lib_save_LIBS=$LIBS
15380 LIBS="-lcrypto $LIBS"
15381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15382 /* end confdefs.h. */
15383
15384 /* Override any GCC internal prototype to avoid an error.
15385 Use char because int might match the return type of a GCC
15386 builtin and then its argument prototype would still apply. */
15387 #ifdef __cplusplus
15388 extern "C"
15389 #endif
15390 char RSA_free ();
15391 int
15392 main ()
15393 {
15394 return RSA_free ();
15395 ;
15396 return 0;
15397 }
15398 _ACEOF
15399 if ac_fn_c_try_link "$LINENO"; then :
15400 ac_cv_lib_crypto_RSA_free=yes
15401 else
15402 ac_cv_lib_crypto_RSA_free=no
15403 fi
15404 rm -f core conftest.err conftest.$ac_objext \
15405 conftest$ac_exeext conftest.$ac_ext
15406 LIBS=$ac_check_lib_save_LIBS
15407 fi
15408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_RSA_free" >&5
15409 $as_echo "$ac_cv_lib_crypto_RSA_free" >&6; }
15410 if test "x$ac_cv_lib_crypto_RSA_free" = xyes; then :
15411 cat >>confdefs.h <<_ACEOF
15412 #define HAVE_LIBCRYPTO 1
15413 _ACEOF
15414
15415 LIBS="-lcrypto $LIBS"
15416
15417 fi
15418
15419 if test "$ac_cv_lib_crypto_RSA_free" = "yes"; then :
15420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_connect in -lssl" >&5
15421 $as_echo_n "checking for SSL_connect in -lssl... " >&6; }
15422 if ${ac_cv_lib_ssl_SSL_connect+:} false; then :
15423 $as_echo_n "(cached) " >&6
15424 else
15425 ac_check_lib_save_LIBS=$LIBS
15426 LIBS="-lssl $LIBS"
15427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15428 /* end confdefs.h. */
15429
15430 /* Override any GCC internal prototype to avoid an error.
15431 Use char because int might match the return type of a GCC
15432 builtin and then its argument prototype would still apply. */
15433 #ifdef __cplusplus
15434 extern "C"
15435 #endif
15436 char SSL_connect ();
15437 int
15438 main ()
15439 {
15440 return SSL_connect ();
15441 ;
15442 return 0;
15443 }
15444 _ACEOF
15445 if ac_fn_c_try_link "$LINENO"; then :
15446 ac_cv_lib_ssl_SSL_connect=yes
15447 else
15448 ac_cv_lib_ssl_SSL_connect=no
15449 fi
15450 rm -f core conftest.err conftest.$ac_objext \
15451 conftest$ac_exeext conftest.$ac_ext
15452 LIBS=$ac_check_lib_save_LIBS
15453 fi
15454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_connect" >&5
15455 $as_echo "$ac_cv_lib_ssl_SSL_connect" >&6; }
15456 if test "x$ac_cv_lib_ssl_SSL_connect" = xyes; then :
15457 cat >>confdefs.h <<_ACEOF
15458 #define HAVE_LIBSSL 1
15459 _ACEOF
15460
15461 LIBS="-lssl $LIBS"
15462
15463 fi
15464
15465 fi
15466
15467 else
15468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - LibreSSL/OpenSSL support disabled" >&5
15469 $as_echo "no - LibreSSL/OpenSSL support disabled" >&6; }
15470 cf_enable_openssl="no"
15471 fi
15472 fi
15473
15474 if test "$ac_cv_lib_ssl_SSL_connect" = yes; then
15475 ENABLE_SSL_TRUE=
15476 ENABLE_SSL_FALSE='#'
15477 else
15478 ENABLE_SSL_TRUE='#'
15479 ENABLE_SSL_FALSE=
15480 fi
15481
15482
15483
15484
15485 prefix_NONE=
15486 exec_prefix_NONE=
15487 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
15488 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
15489 eval ac_define_dir="\"$prefix\""
15490 eval ac_define_dir="\"$ac_define_dir\""
15491 PREFIX="$ac_define_dir"
15492
15493
15494 cat >>confdefs.h <<_ACEOF
15495 #define PREFIX "$ac_define_dir"
15496 _ACEOF
15497
15498 test "$prefix_NONE" && prefix=NONE
15499 test "$exec_prefix_NONE" && exec_prefix=NONE
15500
15501
15502 prefix_NONE=
15503 exec_prefix_NONE=
15504 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
15505 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
15506 eval ac_define_dir="\"$sysconfdir\""
15507 eval ac_define_dir="\"$ac_define_dir\""
15508 SYSCONFDIR="$ac_define_dir"
15509
15510
15511 cat >>confdefs.h <<_ACEOF
15512 #define SYSCONFDIR "$ac_define_dir"
15513 _ACEOF
15514
15515 test "$prefix_NONE" && prefix=NONE
15516 test "$exec_prefix_NONE" && exec_prefix=NONE
15517
15518
15519 prefix_NONE=
15520 exec_prefix_NONE=
15521 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
15522 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
15523 eval ac_define_dir="\"$libdir\""
15524 eval ac_define_dir="\"$ac_define_dir\""
15525 LIBDIR="$ac_define_dir"
15526
15527
15528 cat >>confdefs.h <<_ACEOF
15529 #define LIBDIR "$ac_define_dir"
15530 _ACEOF
15531
15532 test "$prefix_NONE" && prefix=NONE
15533 test "$exec_prefix_NONE" && exec_prefix=NONE
15534
15535
15536 prefix_NONE=
15537 exec_prefix_NONE=
15538 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
15539 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
15540 eval ac_define_dir="\"$datadir\""
15541 eval ac_define_dir="\"$ac_define_dir\""
15542 DATADIR="$ac_define_dir"
15543
15544
15545 cat >>confdefs.h <<_ACEOF
15546 #define DATADIR "$ac_define_dir"
15547 _ACEOF
15548
15549 test "$prefix_NONE" && prefix=NONE
15550 test "$exec_prefix_NONE" && exec_prefix=NONE
15551
15552
15553 prefix_NONE=
15554 exec_prefix_NONE=
15555 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
15556 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
15557 eval ac_define_dir="\"$localstatedir\""
15558 eval ac_define_dir="\"$ac_define_dir\""
15559 LOCALSTATEDIR="$ac_define_dir"
15560
15561
15562 cat >>confdefs.h <<_ACEOF
15563 #define LOCALSTATEDIR "$ac_define_dir"
15564 _ACEOF
15565
15566 test "$prefix_NONE" && prefix=NONE
15567 test "$exec_prefix_NONE" && exec_prefix=NONE
15568
15569
15570 ac_config_files="$ac_config_files Makefile src/Makefile libltdl/Makefile modules/Makefile modules/core/Makefile doc/Makefile help/Makefile tools/Makefile"
15571
15572
15573 cat >confcache <<\_ACEOF
15574 # This file is a shell script that caches the results of configure
15575 # tests run on this system so they can be shared between configure
15576 # scripts and configure runs, see configure's option --config-cache.
15577 # It is not useful on other systems. If it contains results you don't
15578 # want to keep, you may remove or edit it.
15579 #
15580 # config.status only pays attention to the cache file if you give it
15581 # the --recheck option to rerun configure.
15582 #
15583 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15584 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15585 # following values.
15586
15587 _ACEOF
15588
15589 # The following way of writing the cache mishandles newlines in values,
15590 # but we know of no workaround that is simple, portable, and efficient.
15591 # So, we kill variables containing newlines.
15592 # Ultrix sh set writes to stderr and can't be redirected directly,
15593 # and sets the high bit in the cache file unless we assign to the vars.
15594 (
15595 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15596 eval ac_val=\$$ac_var
15597 case $ac_val in #(
15598 *${as_nl}*)
15599 case $ac_var in #(
15600 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15601 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15602 esac
15603 case $ac_var in #(
15604 _ | IFS | as_nl) ;; #(
15605 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15606 *) { eval $ac_var=; unset $ac_var;} ;;
15607 esac ;;
15608 esac
15609 done
15610
15611 (set) 2>&1 |
15612 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15613 *${as_nl}ac_space=\ *)
15614 # `set' does not quote correctly, so add quotes: double-quote
15615 # substitution turns \\\\ into \\, and sed turns \\ into \.
15616 sed -n \
15617 "s/'/'\\\\''/g;
15618 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15619 ;; #(
15620 *)
15621 # `set' quotes correctly as required by POSIX, so do not add quotes.
15622 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15623 ;;
15624 esac |
15625 sort
15626 ) |
15627 sed '
15628 /^ac_cv_env_/b end
15629 t clear
15630 :clear
15631 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15632 t end
15633 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15634 :end' >>confcache
15635 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15636 if test -w "$cache_file"; then
15637 if test "x$cache_file" != "x/dev/null"; then
15638 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15639 $as_echo "$as_me: updating cache $cache_file" >&6;}
15640 if test ! -f "$cache_file" || test -h "$cache_file"; then
15641 cat confcache >"$cache_file"
15642 else
15643 case $cache_file in #(
15644 */* | ?:*)
15645 mv -f confcache "$cache_file"$$ &&
15646 mv -f "$cache_file"$$ "$cache_file" ;; #(
15647 *)
15648 mv -f confcache "$cache_file" ;;
15649 esac
15650 fi
15651 fi
15652 else
15653 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15654 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15655 fi
15656 fi
15657 rm -f confcache
15658
15659 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15660 # Let make expand exec_prefix.
15661 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15662
15663 DEFS=-DHAVE_CONFIG_H
15664
15665 ac_libobjs=
15666 ac_ltlibobjs=
15667 U=
15668 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15669 # 1. Remove the extension, and $U if already installed.
15670 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15671 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15672 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15673 # will be set to the directory where LIBOBJS objects are built.
15674 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15675 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15676 done
15677 LIBOBJS=$ac_libobjs
15678
15679 LTLIBOBJS=$ac_ltlibobjs
15680
15681
15682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
15683 $as_echo_n "checking that generated files are newer than configure... " >&6; }
15684 if test -n "$am_sleep_pid"; then
15685 # Hide warnings about reused PIDs.
15686 wait $am_sleep_pid 2>/dev/null
15687 fi
15688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
15689 $as_echo "done" >&6; }
15690 if test -n "$EXEEXT"; then
15691 am__EXEEXT_TRUE=
15692 am__EXEEXT_FALSE='#'
15693 else
15694 am__EXEEXT_TRUE='#'
15695 am__EXEEXT_FALSE=
15696 fi
15697
15698 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
15699 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
15700 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15701 fi
15702 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15703 as_fn_error $? "conditional \"AMDEP\" was never defined.
15704 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15705 fi
15706 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15707 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
15708 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15709 fi
15710 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
15711 as_fn_error $? "conditional \"INSTALL_LTDL\" was never defined.
15712 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15713 fi
15714 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
15715 as_fn_error $? "conditional \"CONVENIENCE_LTDL\" was never defined.
15716 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15717 fi
15718 LT_CONFIG_H=config.h
15719
15720 _ltdl_libobjs=
15721 _ltdl_ltlibobjs=
15722 if test -n "$_LT_LIBOBJS"; then
15723 # Remove the extension.
15724 _lt_sed_drop_objext='s/\.o$//;s/\.obj$//'
15725 for i in `for i in $_LT_LIBOBJS; do echo "$i"; done | sed "$_lt_sed_drop_objext" | sort -u`; do
15726 _ltdl_libobjs="$_ltdl_libobjs $lt_libobj_prefix$i.$ac_objext"
15727 _ltdl_ltlibobjs="$_ltdl_ltlibobjs $lt_libobj_prefix$i.lo"
15728 done
15729 fi
15730 ltdl_LIBOBJS=$_ltdl_libobjs
15731
15732 ltdl_LTLIBOBJS=$_ltdl_ltlibobjs
15733
15734
15735
15736 if test -z "${ENABLE_SSL_TRUE}" && test -z "${ENABLE_SSL_FALSE}"; then
15737 as_fn_error $? "conditional \"ENABLE_SSL\" was never defined.
15738 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15739 fi
15740
15741 : "${CONFIG_STATUS=./config.status}"
15742 ac_write_fail=0
15743 ac_clean_files_save=$ac_clean_files
15744 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15745 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15746 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15747 as_write_fail=0
15748 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15749 #! $SHELL
15750 # Generated by $as_me.
15751 # Run this file to recreate the current configuration.
15752 # Compiler output produced by configure, useful for debugging
15753 # configure, is in config.log if it exists.
15754
15755 debug=false
15756 ac_cs_recheck=false
15757 ac_cs_silent=false
15758
15759 SHELL=\${CONFIG_SHELL-$SHELL}
15760 export SHELL
15761 _ASEOF
15762 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15763 ## -------------------- ##
15764 ## M4sh Initialization. ##
15765 ## -------------------- ##
15766
15767 # Be more Bourne compatible
15768 DUALCASE=1; export DUALCASE # for MKS sh
15769 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15770 emulate sh
15771 NULLCMD=:
15772 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15773 # is contrary to our usage. Disable this feature.
15774 alias -g '${1+"$@"}'='"$@"'
15775 setopt NO_GLOB_SUBST
15776 else
15777 case `(set -o) 2>/dev/null` in #(
15778 *posix*) :
15779 set -o posix ;; #(
15780 *) :
15781 ;;
15782 esac
15783 fi
15784
15785
15786 as_nl='
15787 '
15788 export as_nl
15789 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15790 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15791 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15792 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15793 # Prefer a ksh shell builtin over an external printf program on Solaris,
15794 # but without wasting forks for bash or zsh.
15795 if test -z "$BASH_VERSION$ZSH_VERSION" \
15796 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15797 as_echo='print -r --'
15798 as_echo_n='print -rn --'
15799 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15800 as_echo='printf %s\n'
15801 as_echo_n='printf %s'
15802 else
15803 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15804 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15805 as_echo_n='/usr/ucb/echo -n'
15806 else
15807 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15808 as_echo_n_body='eval
15809 arg=$1;
15810 case $arg in #(
15811 *"$as_nl"*)
15812 expr "X$arg" : "X\\(.*\\)$as_nl";
15813 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15814 esac;
15815 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15816 '
15817 export as_echo_n_body
15818 as_echo_n='sh -c $as_echo_n_body as_echo'
15819 fi
15820 export as_echo_body
15821 as_echo='sh -c $as_echo_body as_echo'
15822 fi
15823
15824 # The user is always right.
15825 if test "${PATH_SEPARATOR+set}" != set; then
15826 PATH_SEPARATOR=:
15827 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15828 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15829 PATH_SEPARATOR=';'
15830 }
15831 fi
15832
15833
15834 # IFS
15835 # We need space, tab and new line, in precisely that order. Quoting is
15836 # there to prevent editors from complaining about space-tab.
15837 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15838 # splitting by setting IFS to empty value.)
15839 IFS=" "" $as_nl"
15840
15841 # Find who we are. Look in the path if we contain no directory separator.
15842 as_myself=
15843 case $0 in #((
15844 *[\\/]* ) as_myself=$0 ;;
15845 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15846 for as_dir in $PATH
15847 do
15848 IFS=$as_save_IFS
15849 test -z "$as_dir" && as_dir=.
15850 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15851 done
15852 IFS=$as_save_IFS
15853
15854 ;;
15855 esac
15856 # We did not find ourselves, most probably we were run as `sh COMMAND'
15857 # in which case we are not to be found in the path.
15858 if test "x$as_myself" = x; then
15859 as_myself=$0
15860 fi
15861 if test ! -f "$as_myself"; then
15862 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15863 exit 1
15864 fi
15865
15866 # Unset variables that we do not need and which cause bugs (e.g. in
15867 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15868 # suppresses any "Segmentation fault" message there. '((' could
15869 # trigger a bug in pdksh 5.2.14.
15870 for as_var in BASH_ENV ENV MAIL MAILPATH
15871 do eval test x\${$as_var+set} = xset \
15872 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15873 done
15874 PS1='$ '
15875 PS2='> '
15876 PS4='+ '
15877
15878 # NLS nuisances.
15879 LC_ALL=C
15880 export LC_ALL
15881 LANGUAGE=C
15882 export LANGUAGE
15883
15884 # CDPATH.
15885 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15886
15887
15888 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15889 # ----------------------------------------
15890 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15891 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15892 # script with STATUS, using 1 if that was 0.
15893 as_fn_error ()
15894 {
15895 as_status=$1; test $as_status -eq 0 && as_status=1
15896 if test "$4"; then
15897 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15898 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15899 fi
15900 $as_echo "$as_me: error: $2" >&2
15901 as_fn_exit $as_status
15902 } # as_fn_error
15903
15904
15905 # as_fn_set_status STATUS
15906 # -----------------------
15907 # Set $? to STATUS, without forking.
15908 as_fn_set_status ()
15909 {
15910 return $1
15911 } # as_fn_set_status
15912
15913 # as_fn_exit STATUS
15914 # -----------------
15915 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15916 as_fn_exit ()
15917 {
15918 set +e
15919 as_fn_set_status $1
15920 exit $1
15921 } # as_fn_exit
15922
15923 # as_fn_unset VAR
15924 # ---------------
15925 # Portably unset VAR.
15926 as_fn_unset ()
15927 {
15928 { eval $1=; unset $1;}
15929 }
15930 as_unset=as_fn_unset
15931 # as_fn_append VAR VALUE
15932 # ----------------------
15933 # Append the text in VALUE to the end of the definition contained in VAR. Take
15934 # advantage of any shell optimizations that allow amortized linear growth over
15935 # repeated appends, instead of the typical quadratic growth present in naive
15936 # implementations.
15937 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15938 eval 'as_fn_append ()
15939 {
15940 eval $1+=\$2
15941 }'
15942 else
15943 as_fn_append ()
15944 {
15945 eval $1=\$$1\$2
15946 }
15947 fi # as_fn_append
15948
15949 # as_fn_arith ARG...
15950 # ------------------
15951 # Perform arithmetic evaluation on the ARGs, and store the result in the
15952 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15953 # must be portable across $(()) and expr.
15954 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15955 eval 'as_fn_arith ()
15956 {
15957 as_val=$(( $* ))
15958 }'
15959 else
15960 as_fn_arith ()
15961 {
15962 as_val=`expr "$@" || test $? -eq 1`
15963 }
15964 fi # as_fn_arith
15965
15966
15967 if expr a : '\(a\)' >/dev/null 2>&1 &&
15968 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15969 as_expr=expr
15970 else
15971 as_expr=false
15972 fi
15973
15974 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15975 as_basename=basename
15976 else
15977 as_basename=false
15978 fi
15979
15980 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15981 as_dirname=dirname
15982 else
15983 as_dirname=false
15984 fi
15985
15986 as_me=`$as_basename -- "$0" ||
15987 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15988 X"$0" : 'X\(//\)$' \| \
15989 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15990 $as_echo X/"$0" |
15991 sed '/^.*\/\([^/][^/]*\)\/*$/{
15992 s//\1/
15993 q
15994 }
15995 /^X\/\(\/\/\)$/{
15996 s//\1/
15997 q
15998 }
15999 /^X\/\(\/\).*/{
16000 s//\1/
16001 q
16002 }
16003 s/.*/./; q'`
16004
16005 # Avoid depending upon Character Ranges.
16006 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16007 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16008 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16009 as_cr_digits='0123456789'
16010 as_cr_alnum=$as_cr_Letters$as_cr_digits
16011
16012 ECHO_C= ECHO_N= ECHO_T=
16013 case `echo -n x` in #(((((
16014 -n*)
16015 case `echo 'xy\c'` in
16016 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
16017 xy) ECHO_C='\c';;
16018 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
16019 ECHO_T=' ';;
16020 esac;;
16021 *)
16022 ECHO_N='-n';;
16023 esac
16024
16025 rm -f conf$$ conf$$.exe conf$$.file
16026 if test -d conf$$.dir; then
16027 rm -f conf$$.dir/conf$$.file
16028 else
16029 rm -f conf$$.dir
16030 mkdir conf$$.dir 2>/dev/null
16031 fi
16032 if (echo >conf$$.file) 2>/dev/null; then
16033 if ln -s conf$$.file conf$$ 2>/dev/null; then
16034 as_ln_s='ln -s'
16035 # ... but there are two gotchas:
16036 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16037 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16038 # In both cases, we have to default to `cp -pR'.
16039 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16040 as_ln_s='cp -pR'
16041 elif ln conf$$.file conf$$ 2>/dev/null; then
16042 as_ln_s=ln
16043 else
16044 as_ln_s='cp -pR'
16045 fi
16046 else
16047 as_ln_s='cp -pR'
16048 fi
16049 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16050 rmdir conf$$.dir 2>/dev/null
16051
16052
16053 # as_fn_mkdir_p
16054 # -------------
16055 # Create "$as_dir" as a directory, including parents if necessary.
16056 as_fn_mkdir_p ()
16057 {
16058
16059 case $as_dir in #(
16060 -*) as_dir=./$as_dir;;
16061 esac
16062 test -d "$as_dir" || eval $as_mkdir_p || {
16063 as_dirs=
16064 while :; do
16065 case $as_dir in #(
16066 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16067 *) as_qdir=$as_dir;;
16068 esac
16069 as_dirs="'$as_qdir' $as_dirs"
16070 as_dir=`$as_dirname -- "$as_dir" ||
16071 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16072 X"$as_dir" : 'X\(//\)[^/]' \| \
16073 X"$as_dir" : 'X\(//\)$' \| \
16074 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16075 $as_echo X"$as_dir" |
16076 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16077 s//\1/
16078 q
16079 }
16080 /^X\(\/\/\)[^/].*/{
16081 s//\1/
16082 q
16083 }
16084 /^X\(\/\/\)$/{
16085 s//\1/
16086 q
16087 }
16088 /^X\(\/\).*/{
16089 s//\1/
16090 q
16091 }
16092 s/.*/./; q'`
16093 test -d "$as_dir" && break
16094 done
16095 test -z "$as_dirs" || eval "mkdir $as_dirs"
16096 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
16097
16098
16099 } # as_fn_mkdir_p
16100 if mkdir -p . 2>/dev/null; then
16101 as_mkdir_p='mkdir -p "$as_dir"'
16102 else
16103 test -d ./-p && rmdir ./-p
16104 as_mkdir_p=false
16105 fi
16106
16107
16108 # as_fn_executable_p FILE
16109 # -----------------------
16110 # Test if FILE is an executable regular file.
16111 as_fn_executable_p ()
16112 {
16113 test -f "$1" && test -x "$1"
16114 } # as_fn_executable_p
16115 as_test_x='test -x'
16116 as_executable_p=as_fn_executable_p
16117
16118 # Sed expression to map a string onto a valid CPP name.
16119 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16120
16121 # Sed expression to map a string onto a valid variable name.
16122 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16123
16124
16125 exec 6>&1
16126 ## ----------------------------------- ##
16127 ## Main body of $CONFIG_STATUS script. ##
16128 ## ----------------------------------- ##
16129 _ASEOF
16130 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16131
16132 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16133 # Save the log message, to keep $0 and so on meaningful, and to
16134 # report actual input values of CONFIG_FILES etc. instead of their
16135 # values after options handling.
16136 ac_log="
16137 This file was extended by ircd-hybrid $as_me 8.2.0rc2, which was
16138 generated by GNU Autoconf 2.69. Invocation command line was
16139
16140 CONFIG_FILES = $CONFIG_FILES
16141 CONFIG_HEADERS = $CONFIG_HEADERS
16142 CONFIG_LINKS = $CONFIG_LINKS
16143 CONFIG_COMMANDS = $CONFIG_COMMANDS
16144 $ $0 $@
16145
16146 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16147 "
16148
16149 _ACEOF
16150
16151 case $ac_config_files in *"
16152 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16153 esac
16154
16155 case $ac_config_headers in *"
16156 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16157 esac
16158
16159
16160 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16161 # Files that config.status was made for.
16162 config_files="$ac_config_files"
16163 config_headers="$ac_config_headers"
16164 config_commands="$ac_config_commands"
16165
16166 _ACEOF
16167
16168 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16169 ac_cs_usage="\
16170 \`$as_me' instantiates files and other configuration actions
16171 from templates according to the current configuration. Unless the files
16172 and actions are specified as TAGs, all are instantiated by default.
16173
16174 Usage: $0 [OPTION]... [TAG]...
16175
16176 -h, --help print this help, then exit
16177 -V, --version print version number and configuration settings, then exit
16178 --config print configuration, then exit
16179 -q, --quiet, --silent
16180 do not print progress messages
16181 -d, --debug don't remove temporary files
16182 --recheck update $as_me by reconfiguring in the same conditions
16183 --file=FILE[:TEMPLATE]
16184 instantiate the configuration file FILE
16185 --header=FILE[:TEMPLATE]
16186 instantiate the configuration header FILE
16187
16188 Configuration files:
16189 $config_files
16190
16191 Configuration headers:
16192 $config_headers
16193
16194 Configuration commands:
16195 $config_commands
16196
16197 Report bugs to <bugs@ircd-hybrid.org>."
16198
16199 _ACEOF
16200 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16201 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
16202 ac_cs_version="\\
16203 ircd-hybrid config.status 8.2.0rc2
16204 configured by $0, generated by GNU Autoconf 2.69,
16205 with options \\"\$ac_cs_config\\"
16206
16207 Copyright (C) 2012 Free Software Foundation, Inc.
16208 This config.status script is free software; the Free Software Foundation
16209 gives unlimited permission to copy, distribute and modify it."
16210
16211 ac_pwd='$ac_pwd'
16212 srcdir='$srcdir'
16213 INSTALL='$INSTALL'
16214 MKDIR_P='$MKDIR_P'
16215 AWK='$AWK'
16216 test -n "\$AWK" || AWK=awk
16217 _ACEOF
16218
16219 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16220 # The default lists apply if the user does not specify any file.
16221 ac_need_defaults=:
16222 while test $# != 0
16223 do
16224 case $1 in
16225 --*=?*)
16226 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16227 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16228 ac_shift=:
16229 ;;
16230 --*=)
16231 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16232 ac_optarg=
16233 ac_shift=:
16234 ;;
16235 *)
16236 ac_option=$1
16237 ac_optarg=$2
16238 ac_shift=shift
16239 ;;
16240 esac
16241
16242 case $ac_option in
16243 # Handling of the options.
16244 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16245 ac_cs_recheck=: ;;
16246 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16247 $as_echo "$ac_cs_version"; exit ;;
16248 --config | --confi | --conf | --con | --co | --c )
16249 $as_echo "$ac_cs_config"; exit ;;
16250 --debug | --debu | --deb | --de | --d | -d )
16251 debug=: ;;
16252 --file | --fil | --fi | --f )
16253 $ac_shift
16254 case $ac_optarg in
16255 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16256 '') as_fn_error $? "missing file argument" ;;
16257 esac
16258 as_fn_append CONFIG_FILES " '$ac_optarg'"
16259 ac_need_defaults=false;;
16260 --header | --heade | --head | --hea )
16261 $ac_shift
16262 case $ac_optarg in
16263 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16264 esac
16265 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16266 ac_need_defaults=false;;
16267 --he | --h)
16268 # Conflict between --help and --header
16269 as_fn_error $? "ambiguous option: \`$1'
16270 Try \`$0 --help' for more information.";;
16271 --help | --hel | -h )
16272 $as_echo "$ac_cs_usage"; exit ;;
16273 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16274 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16275 ac_cs_silent=: ;;
16276
16277 # This is an error.
16278 -*) as_fn_error $? "unrecognized option: \`$1'
16279 Try \`$0 --help' for more information." ;;
16280
16281 *) as_fn_append ac_config_targets " $1"
16282 ac_need_defaults=false ;;
16283
16284 esac
16285 shift
16286 done
16287
16288 ac_configure_extra_args=
16289
16290 if $ac_cs_silent; then
16291 exec 6>/dev/null
16292 ac_configure_extra_args="$ac_configure_extra_args --silent"
16293 fi
16294
16295 _ACEOF
16296 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16297 if \$ac_cs_recheck; then
16298 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16299 shift
16300 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16301 CONFIG_SHELL='$SHELL'
16302 export CONFIG_SHELL
16303 exec "\$@"
16304 fi
16305
16306 _ACEOF
16307 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16308 exec 5>>config.log
16309 {
16310 echo
16311 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16312 ## Running $as_me. ##
16313 _ASBOX
16314 $as_echo "$ac_log"
16315 } >&5
16316
16317 _ACEOF
16318 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16319 #
16320 # INIT-COMMANDS
16321 #
16322 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16323
16324
16325 # The HP-UX ksh and POSIX shell print the target directory to stdout
16326 # if CDPATH is set.
16327 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16328
16329 sed_quote_subst='$sed_quote_subst'
16330 double_quote_subst='$double_quote_subst'
16331 delay_variable_subst='$delay_variable_subst'
16332 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
16333 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
16334 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
16335 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
16336 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
16337 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
16338 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
16339 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
16340 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
16341 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
16342 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
16343 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
16344 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
16345 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
16346 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
16347 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
16348 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
16349 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
16350 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
16351 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
16352 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
16353 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
16354 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
16355 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
16356 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
16357 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
16358 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
16359 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
16360 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
16361 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
16362 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
16363 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
16364 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
16365 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
16366 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
16367 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
16368 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
16369 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
16370 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
16371 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
16372 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
16373 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
16374 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
16375 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
16376 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
16377 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16378 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16379 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
16380 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
16381 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
16382 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
16383 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
16384 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
16385 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
16386 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
16387 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
16388 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"`'
16389 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
16390 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
16391 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
16392 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
16393 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
16394 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
16395 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
16396 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
16397 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
16398 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
16399 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
16400 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
16401 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
16402 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
16403 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
16404 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
16405 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
16406 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
16407 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16408 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
16409 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
16410 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
16411 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
16412 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
16413 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
16414 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16415 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
16416 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16417 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
16418 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16419 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
16420 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
16421 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
16422 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
16423 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
16424 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
16425 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
16426 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
16427 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
16428 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
16429 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
16430 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
16431 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
16432 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
16433 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
16434 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
16435 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
16436 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
16437 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
16438 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
16439 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
16440 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
16441 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
16442 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
16443 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
16444 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
16445 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
16446 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
16447 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
16448 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
16449 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16450 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16451 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
16452 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
16453 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
16454 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
16455 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
16456 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
16457 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
16458 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
16459 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
16460 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
16461 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
16462
16463 LTCC='$LTCC'
16464 LTCFLAGS='$LTCFLAGS'
16465 compiler='$compiler_DEFAULT'
16466
16467 # A function that is used when there is no print builtin or printf.
16468 func_fallback_echo ()
16469 {
16470 eval 'cat <<_LTECHO_EOF
16471 \$1
16472 _LTECHO_EOF'
16473 }
16474
16475 # Quote evaled strings.
16476 for var in SHELL \
16477 ECHO \
16478 PATH_SEPARATOR \
16479 SED \
16480 GREP \
16481 EGREP \
16482 FGREP \
16483 LD \
16484 NM \
16485 LN_S \
16486 lt_SP2NL \
16487 lt_NL2SP \
16488 reload_flag \
16489 OBJDUMP \
16490 deplibs_check_method \
16491 file_magic_cmd \
16492 file_magic_glob \
16493 want_nocaseglob \
16494 DLLTOOL \
16495 sharedlib_from_linklib_cmd \
16496 AR \
16497 AR_FLAGS \
16498 archiver_list_spec \
16499 STRIP \
16500 RANLIB \
16501 CC \
16502 CFLAGS \
16503 compiler \
16504 lt_cv_sys_global_symbol_pipe \
16505 lt_cv_sys_global_symbol_to_cdecl \
16506 lt_cv_sys_global_symbol_to_c_name_address \
16507 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16508 nm_file_list_spec \
16509 lt_prog_compiler_no_builtin_flag \
16510 lt_prog_compiler_pic \
16511 lt_prog_compiler_wl \
16512 lt_prog_compiler_static \
16513 lt_cv_prog_compiler_c_o \
16514 need_locks \
16515 MANIFEST_TOOL \
16516 DSYMUTIL \
16517 NMEDIT \
16518 LIPO \
16519 OTOOL \
16520 OTOOL64 \
16521 shrext_cmds \
16522 export_dynamic_flag_spec \
16523 whole_archive_flag_spec \
16524 compiler_needs_object \
16525 with_gnu_ld \
16526 allow_undefined_flag \
16527 no_undefined_flag \
16528 hardcode_libdir_flag_spec \
16529 hardcode_libdir_separator \
16530 exclude_expsyms \
16531 include_expsyms \
16532 file_list_spec \
16533 variables_saved_for_relink \
16534 libname_spec \
16535 library_names_spec \
16536 soname_spec \
16537 install_override_mode \
16538 finish_eval \
16539 old_striplib \
16540 striplib; do
16541 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16542 *[\\\\\\\`\\"\\\$]*)
16543 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
16544 ;;
16545 *)
16546 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16547 ;;
16548 esac
16549 done
16550
16551 # Double-quote double-evaled strings.
16552 for var in reload_cmds \
16553 old_postinstall_cmds \
16554 old_postuninstall_cmds \
16555 old_archive_cmds \
16556 extract_expsyms_cmds \
16557 old_archive_from_new_cmds \
16558 old_archive_from_expsyms_cmds \
16559 archive_cmds \
16560 archive_expsym_cmds \
16561 module_cmds \
16562 module_expsym_cmds \
16563 export_symbols_cmds \
16564 prelink_cmds \
16565 postlink_cmds \
16566 postinstall_cmds \
16567 postuninstall_cmds \
16568 finish_cmds \
16569 sys_lib_search_path_spec \
16570 sys_lib_dlsearch_path_spec; do
16571 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16572 *[\\\\\\\`\\"\\\$]*)
16573 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
16574 ;;
16575 *)
16576 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16577 ;;
16578 esac
16579 done
16580
16581 ac_aux_dir='$ac_aux_dir'
16582 xsi_shell='$xsi_shell'
16583 lt_shell_append='$lt_shell_append'
16584
16585 # See if we are running on zsh, and set the options which allow our
16586 # commands through without removal of \ escapes INIT.
16587 if test -n "\${ZSH_VERSION+set}" ; then
16588 setopt NO_GLOB_SUBST
16589 fi
16590
16591
16592 PACKAGE='$PACKAGE'
16593 VERSION='$VERSION'
16594 TIMESTAMP='$TIMESTAMP'
16595 RM='$RM'
16596 ofile='$ofile'
16597
16598
16599
16600
16601 _ACEOF
16602
16603 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16604
16605 # Handling of arguments.
16606 for ac_config_target in $ac_config_targets
16607 do
16608 case $ac_config_target in
16609 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
16610 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16611 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16612 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16613 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
16614 "libltdl/Makefile") CONFIG_FILES="$CONFIG_FILES libltdl/Makefile" ;;
16615 "modules/Makefile") CONFIG_FILES="$CONFIG_FILES modules/Makefile" ;;
16616 "modules/core/Makefile") CONFIG_FILES="$CONFIG_FILES modules/core/Makefile" ;;
16617 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
16618 "help/Makefile") CONFIG_FILES="$CONFIG_FILES help/Makefile" ;;
16619 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
16620
16621 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16622 esac
16623 done
16624
16625
16626 # If the user did not use the arguments to specify the items to instantiate,
16627 # then the envvar interface is used. Set only those that are not.
16628 # We use the long form for the default assignment because of an extremely
16629 # bizarre bug on SunOS 4.1.3.
16630 if $ac_need_defaults; then
16631 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16632 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16633 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16634 fi
16635
16636 # Have a temporary directory for convenience. Make it in the build tree
16637 # simply because there is no reason against having it here, and in addition,
16638 # creating and moving files from /tmp can sometimes cause problems.
16639 # Hook for its removal unless debugging.
16640 # Note that there is a small window in which the directory will not be cleaned:
16641 # after its creation but before its name has been assigned to `$tmp'.
16642 $debug ||
16643 {
16644 tmp= ac_tmp=
16645 trap 'exit_status=$?
16646 : "${ac_tmp:=$tmp}"
16647 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
16648 ' 0
16649 trap 'as_fn_exit 1' 1 2 13 15
16650 }
16651 # Create a (secure) tmp directory for tmp files.
16652
16653 {
16654 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16655 test -d "$tmp"
16656 } ||
16657 {
16658 tmp=./conf$$-$RANDOM
16659 (umask 077 && mkdir "$tmp")
16660 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16661 ac_tmp=$tmp
16662
16663 # Set up the scripts for CONFIG_FILES section.
16664 # No need to generate them if there are no CONFIG_FILES.
16665 # This happens for instance with `./config.status config.h'.
16666 if test -n "$CONFIG_FILES"; then
16667
16668
16669 ac_cr=`echo X | tr X '\015'`
16670 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16671 # But we know of no other shell where ac_cr would be empty at this
16672 # point, so we can use a bashism as a fallback.
16673 if test "x$ac_cr" = x; then
16674 eval ac_cr=\$\'\\r\'
16675 fi
16676 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16677 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16678 ac_cs_awk_cr='\\r'
16679 else
16680 ac_cs_awk_cr=$ac_cr
16681 fi
16682
16683 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
16684 _ACEOF
16685
16686
16687 {
16688 echo "cat >conf$$subs.awk <<_ACEOF" &&
16689 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16690 echo "_ACEOF"
16691 } >conf$$subs.sh ||
16692 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16693 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16694 ac_delim='%!_!# '
16695 for ac_last_try in false false false false false :; do
16696 . ./conf$$subs.sh ||
16697 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16698
16699 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16700 if test $ac_delim_n = $ac_delim_num; then
16701 break
16702 elif $ac_last_try; then
16703 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16704 else
16705 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16706 fi
16707 done
16708 rm -f conf$$subs.sh
16709
16710 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16711 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
16712 _ACEOF
16713 sed -n '
16714 h
16715 s/^/S["/; s/!.*/"]=/
16716 p
16717 g
16718 s/^[^!]*!//
16719 :repl
16720 t repl
16721 s/'"$ac_delim"'$//
16722 t delim
16723 :nl
16724 h
16725 s/\(.\{148\}\)..*/\1/
16726 t more1
16727 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16728 p
16729 n
16730 b repl
16731 :more1
16732 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16733 p
16734 g
16735 s/.\{148\}//
16736 t nl
16737 :delim
16738 h
16739 s/\(.\{148\}\)..*/\1/
16740 t more2
16741 s/["\\]/\\&/g; s/^/"/; s/$/"/
16742 p
16743 b
16744 :more2
16745 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16746 p
16747 g
16748 s/.\{148\}//
16749 t delim
16750 ' <conf$$subs.awk | sed '
16751 /^[^""]/{
16752 N
16753 s/\n//
16754 }
16755 ' >>$CONFIG_STATUS || ac_write_fail=1
16756 rm -f conf$$subs.awk
16757 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16758 _ACAWK
16759 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
16760 for (key in S) S_is_set[key] = 1
16761 FS = ""
16762
16763 }
16764 {
16765 line = $ 0
16766 nfields = split(line, field, "@")
16767 substed = 0
16768 len = length(field[1])
16769 for (i = 2; i < nfields; i++) {
16770 key = field[i]
16771 keylen = length(key)
16772 if (S_is_set[key]) {
16773 value = S[key]
16774 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16775 len += length(value) + length(field[++i])
16776 substed = 1
16777 } else
16778 len += 1 + keylen
16779 }
16780
16781 print line
16782 }
16783
16784 _ACAWK
16785 _ACEOF
16786 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16787 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16788 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16789 else
16790 cat
16791 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16792 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16793 _ACEOF
16794
16795 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16796 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16797 # trailing colons and then remove the whole line if VPATH becomes empty
16798 # (actually we leave an empty line to preserve line numbers).
16799 if test "x$srcdir" = x.; then
16800 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
16801 h
16802 s///
16803 s/^/:/
16804 s/[ ]*$/:/
16805 s/:\$(srcdir):/:/g
16806 s/:\${srcdir}:/:/g
16807 s/:@srcdir@:/:/g
16808 s/^:*//
16809 s/:*$//
16810 x
16811 s/\(=[ ]*\).*/\1/
16812 G
16813 s/\n//
16814 s/^[^=]*=[ ]*$//
16815 }'
16816 fi
16817
16818 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16819 fi # test -n "$CONFIG_FILES"
16820
16821 # Set up the scripts for CONFIG_HEADERS section.
16822 # No need to generate them if there are no CONFIG_HEADERS.
16823 # This happens for instance with `./config.status Makefile'.
16824 if test -n "$CONFIG_HEADERS"; then
16825 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
16826 BEGIN {
16827 _ACEOF
16828
16829 # Transform confdefs.h into an awk script `defines.awk', embedded as
16830 # here-document in config.status, that substitutes the proper values into
16831 # config.h.in to produce config.h.
16832
16833 # Create a delimiter string that does not exist in confdefs.h, to ease
16834 # handling of long lines.
16835 ac_delim='%!_!# '
16836 for ac_last_try in false false :; do
16837 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
16838 if test -z "$ac_tt"; then
16839 break
16840 elif $ac_last_try; then
16841 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
16842 else
16843 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16844 fi
16845 done
16846
16847 # For the awk script, D is an array of macro values keyed by name,
16848 # likewise P contains macro parameters if any. Preserve backslash
16849 # newline sequences.
16850
16851 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16852 sed -n '
16853 s/.\{148\}/&'"$ac_delim"'/g
16854 t rset
16855 :rset
16856 s/^[ ]*#[ ]*define[ ][ ]*/ /
16857 t def
16858 d
16859 :def
16860 s/\\$//
16861 t bsnl
16862 s/["\\]/\\&/g
16863 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16864 D["\1"]=" \3"/p
16865 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16866 d
16867 :bsnl
16868 s/["\\]/\\&/g
16869 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16870 D["\1"]=" \3\\\\\\n"\\/p
16871 t cont
16872 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16873 t cont
16874 d
16875 :cont
16876 n
16877 s/.\{148\}/&'"$ac_delim"'/g
16878 t clear
16879 :clear
16880 s/\\$//
16881 t bsnlc
16882 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16883 d
16884 :bsnlc
16885 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16886 b cont
16887 ' <confdefs.h | sed '
16888 s/'"$ac_delim"'/"\\\
16889 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16890
16891 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16892 for (key in D) D_is_set[key] = 1
16893 FS = ""
16894 }
16895 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16896 line = \$ 0
16897 split(line, arg, " ")
16898 if (arg[1] == "#") {
16899 defundef = arg[2]
16900 mac1 = arg[3]
16901 } else {
16902 defundef = substr(arg[1], 2)
16903 mac1 = arg[2]
16904 }
16905 split(mac1, mac2, "(") #)
16906 macro = mac2[1]
16907 prefix = substr(line, 1, index(line, defundef) - 1)
16908 if (D_is_set[macro]) {
16909 # Preserve the white space surrounding the "#".
16910 print prefix "define", macro P[macro] D[macro]
16911 next
16912 } else {
16913 # Replace #undef with comments. This is necessary, for example,
16914 # in the case of _POSIX_SOURCE, which is predefined and required
16915 # on some systems where configure will not decide to define it.
16916 if (defundef == "undef") {
16917 print "/*", prefix defundef, macro, "*/"
16918 next
16919 }
16920 }
16921 }
16922 { print }
16923 _ACAWK
16924 _ACEOF
16925 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16926 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
16927 fi # test -n "$CONFIG_HEADERS"
16928
16929
16930 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
16931 shift
16932 for ac_tag
16933 do
16934 case $ac_tag in
16935 :[FHLC]) ac_mode=$ac_tag; continue;;
16936 esac
16937 case $ac_mode$ac_tag in
16938 :[FHL]*:*);;
16939 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
16940 :[FH]-) ac_tag=-:-;;
16941 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16942 esac
16943 ac_save_IFS=$IFS
16944 IFS=:
16945 set x $ac_tag
16946 IFS=$ac_save_IFS
16947 shift
16948 ac_file=$1
16949 shift
16950
16951 case $ac_mode in
16952 :L) ac_source=$1;;
16953 :[FH])
16954 ac_file_inputs=
16955 for ac_f
16956 do
16957 case $ac_f in
16958 -) ac_f="$ac_tmp/stdin";;
16959 *) # Look for the file first in the build tree, then in the source tree
16960 # (if the path is not absolute). The absolute path cannot be DOS-style,
16961 # because $ac_f cannot contain `:'.
16962 test -f "$ac_f" ||
16963 case $ac_f in
16964 [\\/$]*) false;;
16965 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16966 esac ||
16967 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16968 esac
16969 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16970 as_fn_append ac_file_inputs " '$ac_f'"
16971 done
16972
16973 # Let's still pretend it is `configure' which instantiates (i.e., don't
16974 # use $as_me), people would be surprised to read:
16975 # /* config.h. Generated by config.status. */
16976 configure_input='Generated from '`
16977 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16978 `' by configure.'
16979 if test x"$ac_file" != x-; then
16980 configure_input="$ac_file. $configure_input"
16981 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16982 $as_echo "$as_me: creating $ac_file" >&6;}
16983 fi
16984 # Neutralize special characters interpreted by sed in replacement strings.
16985 case $configure_input in #(
16986 *\&* | *\|* | *\\* )
16987 ac_sed_conf_input=`$as_echo "$configure_input" |
16988 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16989 *) ac_sed_conf_input=$configure_input;;
16990 esac
16991
16992 case $ac_tag in
16993 *:-:* | *:-) cat >"$ac_tmp/stdin" \
16994 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
16995 esac
16996 ;;
16997 esac
16998
16999 ac_dir=`$as_dirname -- "$ac_file" ||
17000 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17001 X"$ac_file" : 'X\(//\)[^/]' \| \
17002 X"$ac_file" : 'X\(//\)$' \| \
17003 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17004 $as_echo X"$ac_file" |
17005 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17006 s//\1/
17007 q
17008 }
17009 /^X\(\/\/\)[^/].*/{
17010 s//\1/
17011 q
17012 }
17013 /^X\(\/\/\)$/{
17014 s//\1/
17015 q
17016 }
17017 /^X\(\/\).*/{
17018 s//\1/
17019 q
17020 }
17021 s/.*/./; q'`
17022 as_dir="$ac_dir"; as_fn_mkdir_p
17023 ac_builddir=.
17024
17025 case "$ac_dir" in
17026 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17027 *)
17028 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17029 # A ".." for each directory in $ac_dir_suffix.
17030 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17031 case $ac_top_builddir_sub in
17032 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17033 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17034 esac ;;
17035 esac
17036 ac_abs_top_builddir=$ac_pwd
17037 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17038 # for backward compatibility:
17039 ac_top_builddir=$ac_top_build_prefix
17040
17041 case $srcdir in
17042 .) # We are building in place.
17043 ac_srcdir=.
17044 ac_top_srcdir=$ac_top_builddir_sub
17045 ac_abs_top_srcdir=$ac_pwd ;;
17046 [\\/]* | ?:[\\/]* ) # Absolute name.
17047 ac_srcdir=$srcdir$ac_dir_suffix;
17048 ac_top_srcdir=$srcdir
17049 ac_abs_top_srcdir=$srcdir ;;
17050 *) # Relative name.
17051 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17052 ac_top_srcdir=$ac_top_build_prefix$srcdir
17053 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17054 esac
17055 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17056
17057
17058 case $ac_mode in
17059 :F)
17060 #
17061 # CONFIG_FILE
17062 #
17063
17064 case $INSTALL in
17065 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17066 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17067 esac
17068 ac_MKDIR_P=$MKDIR_P
17069 case $MKDIR_P in
17070 [\\/$]* | ?:[\\/]* ) ;;
17071 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17072 esac
17073 _ACEOF
17074
17075 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17076 # If the template does not know about datarootdir, expand it.
17077 # FIXME: This hack should be removed a few years after 2.60.
17078 ac_datarootdir_hack=; ac_datarootdir_seen=
17079 ac_sed_dataroot='
17080 /datarootdir/ {
17081 p
17082 q
17083 }
17084 /@datadir@/p
17085 /@docdir@/p
17086 /@infodir@/p
17087 /@localedir@/p
17088 /@mandir@/p'
17089 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17090 *datarootdir*) ac_datarootdir_seen=yes;;
17091 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17092 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17093 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17094 _ACEOF
17095 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17096 ac_datarootdir_hack='
17097 s&@datadir@&$datadir&g
17098 s&@docdir@&$docdir&g
17099 s&@infodir@&$infodir&g
17100 s&@localedir@&$localedir&g
17101 s&@mandir@&$mandir&g
17102 s&\\\${datarootdir}&$datarootdir&g' ;;
17103 esac
17104 _ACEOF
17105
17106 # Neutralize VPATH when `$srcdir' = `.'.
17107 # Shell code in configure.ac might set extrasub.
17108 # FIXME: do we really want to maintain this feature?
17109 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17110 ac_sed_extra="$ac_vpsub
17111 $extrasub
17112 _ACEOF
17113 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17114 :t
17115 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17116 s|@configure_input@|$ac_sed_conf_input|;t t
17117 s&@top_builddir@&$ac_top_builddir_sub&;t t
17118 s&@top_build_prefix@&$ac_top_build_prefix&;t t
17119 s&@srcdir@&$ac_srcdir&;t t
17120 s&@abs_srcdir@&$ac_abs_srcdir&;t t
17121 s&@top_srcdir@&$ac_top_srcdir&;t t
17122 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17123 s&@builddir@&$ac_builddir&;t t
17124 s&@abs_builddir@&$ac_abs_builddir&;t t
17125 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17126 s&@INSTALL@&$ac_INSTALL&;t t
17127 s&@MKDIR_P@&$ac_MKDIR_P&;t t
17128 $ac_datarootdir_hack
17129 "
17130 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
17131 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17132
17133 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17134 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
17135 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
17136 "$ac_tmp/out"`; test -z "$ac_out"; } &&
17137 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17138 which seems to be undefined. Please make sure it is defined" >&5
17139 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17140 which seems to be undefined. Please make sure it is defined" >&2;}
17141
17142 rm -f "$ac_tmp/stdin"
17143 case $ac_file in
17144 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
17145 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
17146 esac \
17147 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17148 ;;
17149 :H)
17150 #
17151 # CONFIG_HEADER
17152 #
17153 if test x"$ac_file" != x-; then
17154 {
17155 $as_echo "/* $configure_input */" \
17156 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
17157 } >"$ac_tmp/config.h" \
17158 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17159 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
17160 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17161 $as_echo "$as_me: $ac_file is unchanged" >&6;}
17162 else
17163 rm -f "$ac_file"
17164 mv "$ac_tmp/config.h" "$ac_file" \
17165 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17166 fi
17167 else
17168 $as_echo "/* $configure_input */" \
17169 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
17170 || as_fn_error $? "could not create -" "$LINENO" 5
17171 fi
17172 # Compute "$ac_file"'s index in $config_headers.
17173 _am_arg="$ac_file"
17174 _am_stamp_count=1
17175 for _am_header in $config_headers :; do
17176 case $_am_header in
17177 $_am_arg | $_am_arg:* )
17178 break ;;
17179 * )
17180 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17181 esac
17182 done
17183 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17184 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17185 X"$_am_arg" : 'X\(//\)[^/]' \| \
17186 X"$_am_arg" : 'X\(//\)$' \| \
17187 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
17188 $as_echo X"$_am_arg" |
17189 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17190 s//\1/
17191 q
17192 }
17193 /^X\(\/\/\)[^/].*/{
17194 s//\1/
17195 q
17196 }
17197 /^X\(\/\/\)$/{
17198 s//\1/
17199 q
17200 }
17201 /^X\(\/\).*/{
17202 s//\1/
17203 q
17204 }
17205 s/.*/./; q'`/stamp-h$_am_stamp_count
17206 ;;
17207
17208 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17209 $as_echo "$as_me: executing $ac_file commands" >&6;}
17210 ;;
17211 esac
17212
17213
17214 case $ac_file$ac_mode in
17215 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
17216 # Older Autoconf quotes --file arguments for eval, but not when files
17217 # are listed without --file. Let's play safe and only enable the eval
17218 # if we detect the quoting.
17219 case $CONFIG_FILES in
17220 *\'*) eval set x "$CONFIG_FILES" ;;
17221 *) set x $CONFIG_FILES ;;
17222 esac
17223 shift
17224 for mf
17225 do
17226 # Strip MF so we end up with the name of the file.
17227 mf=`echo "$mf" | sed -e 's/:.*$//'`
17228 # Check whether this is an Automake generated Makefile or not.
17229 # We used to match only the files named 'Makefile.in', but
17230 # some people rename them; so instead we look at the file content.
17231 # Grep'ing the first line is not enough: some people post-process
17232 # each Makefile.in and add a new line on top of each file to say so.
17233 # Grep'ing the whole file is not good either: AIX grep has a line
17234 # limit of 2048, but all sed's we know have understand at least 4000.
17235 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
17236 dirpart=`$as_dirname -- "$mf" ||
17237 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17238 X"$mf" : 'X\(//\)[^/]' \| \
17239 X"$mf" : 'X\(//\)$' \| \
17240 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
17241 $as_echo X"$mf" |
17242 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17243 s//\1/
17244 q
17245 }
17246 /^X\(\/\/\)[^/].*/{
17247 s//\1/
17248 q
17249 }
17250 /^X\(\/\/\)$/{
17251 s//\1/
17252 q
17253 }
17254 /^X\(\/\).*/{
17255 s//\1/
17256 q
17257 }
17258 s/.*/./; q'`
17259 else
17260 continue
17261 fi
17262 # Extract the definition of DEPDIR, am__include, and am__quote
17263 # from the Makefile without running 'make'.
17264 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
17265 test -z "$DEPDIR" && continue
17266 am__include=`sed -n 's/^am__include = //p' < "$mf"`
17267 test -z "$am__include" && continue
17268 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
17269 # Find all dependency output files, they are included files with
17270 # $(DEPDIR) in their names. We invoke sed twice because it is the
17271 # simplest approach to changing $(DEPDIR) to its actual value in the
17272 # expansion.
17273 for file in `sed -n "
17274 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17275 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
17276 # Make sure the directory exists.
17277 test -f "$dirpart/$file" && continue
17278 fdir=`$as_dirname -- "$file" ||
17279 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17280 X"$file" : 'X\(//\)[^/]' \| \
17281 X"$file" : 'X\(//\)$' \| \
17282 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
17283 $as_echo X"$file" |
17284 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17285 s//\1/
17286 q
17287 }
17288 /^X\(\/\/\)[^/].*/{
17289 s//\1/
17290 q
17291 }
17292 /^X\(\/\/\)$/{
17293 s//\1/
17294 q
17295 }
17296 /^X\(\/\).*/{
17297 s//\1/
17298 q
17299 }
17300 s/.*/./; q'`
17301 as_dir=$dirpart/$fdir; as_fn_mkdir_p
17302 # echo "creating $dirpart/$file"
17303 echo '# dummy' > "$dirpart/$file"
17304 done
17305 done
17306 }
17307 ;;
17308 "libtool":C)
17309
17310 # See if we are running on zsh, and set the options which allow our
17311 # commands through without removal of \ escapes.
17312 if test -n "${ZSH_VERSION+set}" ; then
17313 setopt NO_GLOB_SUBST
17314 fi
17315
17316 cfgfile="${ofile}T"
17317 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17318 $RM "$cfgfile"
17319
17320 cat <<_LT_EOF >> "$cfgfile"
17321 #! $SHELL
17322
17323 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17324 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
17325 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17326 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17327 #
17328 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
17329 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
17330 # Foundation, Inc.
17331 # Written by Gordon Matzigkeit, 1996
17332 #
17333 # This file is part of GNU Libtool.
17334 #
17335 # GNU Libtool is free software; you can redistribute it and/or
17336 # modify it under the terms of the GNU General Public License as
17337 # published by the Free Software Foundation; either version 2 of
17338 # the License, or (at your option) any later version.
17339 #
17340 # As a special exception to the GNU General Public License,
17341 # if you distribute this file as part of a program or library that
17342 # is built using GNU Libtool, you may include this file under the
17343 # same distribution terms that you use for the rest of that program.
17344 #
17345 # GNU Libtool is distributed in the hope that it will be useful,
17346 # but WITHOUT ANY WARRANTY; without even the implied warranty of
17347 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17348 # GNU General Public License for more details.
17349 #
17350 # You should have received a copy of the GNU General Public License
17351 # along with GNU Libtool; see the file COPYING. If not, a copy
17352 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
17353 # obtained by writing to the Free Software Foundation, Inc.,
17354 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17355
17356
17357 # The names of the tagged configurations supported by this script.
17358 available_tags=""
17359
17360 # ### BEGIN LIBTOOL CONFIG
17361
17362 # Which release of libtool.m4 was used?
17363 macro_version=$macro_version
17364 macro_revision=$macro_revision
17365
17366 # Whether or not to build static libraries.
17367 build_old_libs=$enable_static
17368
17369 # Whether or not to build shared libraries.
17370 build_libtool_libs=$enable_shared
17371
17372 # What type of objects to build.
17373 pic_mode=$pic_mode
17374
17375 # Whether or not to optimize for fast installation.
17376 fast_install=$enable_fast_install
17377
17378 # Shell to use when invoking shell scripts.
17379 SHELL=$lt_SHELL
17380
17381 # An echo program that protects backslashes.
17382 ECHO=$lt_ECHO
17383
17384 # The PATH separator for the build system.
17385 PATH_SEPARATOR=$lt_PATH_SEPARATOR
17386
17387 # The host system.
17388 host_alias=$host_alias
17389 host=$host
17390 host_os=$host_os
17391
17392 # The build system.
17393 build_alias=$build_alias
17394 build=$build
17395 build_os=$build_os
17396
17397 # A sed program that does not truncate output.
17398 SED=$lt_SED
17399
17400 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17401 Xsed="\$SED -e 1s/^X//"
17402
17403 # A grep program that handles long lines.
17404 GREP=$lt_GREP
17405
17406 # An ERE matcher.
17407 EGREP=$lt_EGREP
17408
17409 # A literal string matcher.
17410 FGREP=$lt_FGREP
17411
17412 # A BSD- or MS-compatible name lister.
17413 NM=$lt_NM
17414
17415 # Whether we need soft or hard links.
17416 LN_S=$lt_LN_S
17417
17418 # What is the maximum length of a command?
17419 max_cmd_len=$max_cmd_len
17420
17421 # Object file suffix (normally "o").
17422 objext=$ac_objext
17423
17424 # Executable file suffix (normally "").
17425 exeext=$exeext
17426
17427 # whether the shell understands "unset".
17428 lt_unset=$lt_unset
17429
17430 # turn spaces into newlines.
17431 SP2NL=$lt_lt_SP2NL
17432
17433 # turn newlines into spaces.
17434 NL2SP=$lt_lt_NL2SP
17435
17436 # convert \$build file names to \$host format.
17437 to_host_file_cmd=$lt_cv_to_host_file_cmd
17438
17439 # convert \$build files to toolchain format.
17440 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
17441
17442 # An object symbol dumper.
17443 OBJDUMP=$lt_OBJDUMP
17444
17445 # Method to check whether dependent libraries are shared objects.
17446 deplibs_check_method=$lt_deplibs_check_method
17447
17448 # Command to use when deplibs_check_method = "file_magic".
17449 file_magic_cmd=$lt_file_magic_cmd
17450
17451 # How to find potential files when deplibs_check_method = "file_magic".
17452 file_magic_glob=$lt_file_magic_glob
17453
17454 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
17455 want_nocaseglob=$lt_want_nocaseglob
17456
17457 # DLL creation program.
17458 DLLTOOL=$lt_DLLTOOL
17459
17460 # Command to associate shared and link libraries.
17461 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
17462
17463 # The archiver.
17464 AR=$lt_AR
17465
17466 # Flags to create an archive.
17467 AR_FLAGS=$lt_AR_FLAGS
17468
17469 # How to feed a file listing to the archiver.
17470 archiver_list_spec=$lt_archiver_list_spec
17471
17472 # A symbol stripping program.
17473 STRIP=$lt_STRIP
17474
17475 # Commands used to install an old-style archive.
17476 RANLIB=$lt_RANLIB
17477 old_postinstall_cmds=$lt_old_postinstall_cmds
17478 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17479
17480 # Whether to use a lock for old archive extraction.
17481 lock_old_archive_extraction=$lock_old_archive_extraction
17482
17483 # A C compiler.
17484 LTCC=$lt_CC
17485
17486 # LTCC compiler flags.
17487 LTCFLAGS=$lt_CFLAGS
17488
17489 # Take the output of nm and produce a listing of raw symbols and C names.
17490 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17491
17492 # Transform the output of nm in a proper C declaration.
17493 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17494
17495 # Transform the output of nm in a C name address pair.
17496 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17497
17498 # Transform the output of nm in a C name address pair when lib prefix is needed.
17499 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17500
17501 # Specify filename containing input files for \$NM.
17502 nm_file_list_spec=$lt_nm_file_list_spec
17503
17504 # The root where to search for dependent libraries,and in which our libraries should be installed.
17505 lt_sysroot=$lt_sysroot
17506
17507 # The name of the directory that contains temporary libtool files.
17508 objdir=$objdir
17509
17510 # Used to examine libraries when file_magic_cmd begins with "file".
17511 MAGIC_CMD=$MAGIC_CMD
17512
17513 # Must we lock files when doing compilation?
17514 need_locks=$lt_need_locks
17515
17516 # Manifest tool.
17517 MANIFEST_TOOL=$lt_MANIFEST_TOOL
17518
17519 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17520 DSYMUTIL=$lt_DSYMUTIL
17521
17522 # Tool to change global to local symbols on Mac OS X.
17523 NMEDIT=$lt_NMEDIT
17524
17525 # Tool to manipulate fat objects and archives on Mac OS X.
17526 LIPO=$lt_LIPO
17527
17528 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
17529 OTOOL=$lt_OTOOL
17530
17531 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17532 OTOOL64=$lt_OTOOL64
17533
17534 # Old archive suffix (normally "a").
17535 libext=$libext
17536
17537 # Shared library suffix (normally ".so").
17538 shrext_cmds=$lt_shrext_cmds
17539
17540 # The commands to extract the exported symbol list from a shared archive.
17541 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17542
17543 # Variables whose values should be saved in libtool wrapper scripts and
17544 # restored at link time.
17545 variables_saved_for_relink=$lt_variables_saved_for_relink
17546
17547 # Do we need the "lib" prefix for modules?
17548 need_lib_prefix=$need_lib_prefix
17549
17550 # Do we need a version for libraries?
17551 need_version=$need_version
17552
17553 # Library versioning type.
17554 version_type=$version_type
17555
17556 # Shared library runtime path variable.
17557 runpath_var=$runpath_var
17558
17559 # Shared library path variable.
17560 shlibpath_var=$shlibpath_var
17561
17562 # Is shlibpath searched before the hard-coded library search path?
17563 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17564
17565 # Format of library name prefix.
17566 libname_spec=$lt_libname_spec
17567
17568 # List of archive names. First name is the real one, the rest are links.
17569 # The last name is the one that the linker finds with -lNAME
17570 library_names_spec=$lt_library_names_spec
17571
17572 # The coded name of the library, if different from the real name.
17573 soname_spec=$lt_soname_spec
17574
17575 # Permission mode override for installation of shared libraries.
17576 install_override_mode=$lt_install_override_mode
17577
17578 # Command to use after installation of a shared archive.
17579 postinstall_cmds=$lt_postinstall_cmds
17580
17581 # Command to use after uninstallation of a shared archive.
17582 postuninstall_cmds=$lt_postuninstall_cmds
17583
17584 # Commands used to finish a libtool library installation in a directory.
17585 finish_cmds=$lt_finish_cmds
17586
17587 # As "finish_cmds", except a single script fragment to be evaled but
17588 # not shown.
17589 finish_eval=$lt_finish_eval
17590
17591 # Whether we should hardcode library paths into libraries.
17592 hardcode_into_libs=$hardcode_into_libs
17593
17594 # Compile-time system search path for libraries.
17595 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17596
17597 # Run-time system search path for libraries.
17598 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17599
17600 # Whether dlopen is supported.
17601 dlopen_support=$enable_dlopen
17602
17603 # Whether dlopen of programs is supported.
17604 dlopen_self=$enable_dlopen_self
17605
17606 # Whether dlopen of statically linked programs is supported.
17607 dlopen_self_static=$enable_dlopen_self_static
17608
17609 # Commands to strip libraries.
17610 old_striplib=$lt_old_striplib
17611 striplib=$lt_striplib
17612
17613
17614 # The linker used to build libraries.
17615 LD=$lt_LD
17616
17617 # How to create reloadable object files.
17618 reload_flag=$lt_reload_flag
17619 reload_cmds=$lt_reload_cmds
17620
17621 # Commands used to build an old-style archive.
17622 old_archive_cmds=$lt_old_archive_cmds
17623
17624 # A language specific compiler.
17625 CC=$lt_compiler
17626
17627 # Is the compiler the GNU compiler?
17628 with_gcc=$GCC
17629
17630 # Compiler flag to turn off builtin functions.
17631 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17632
17633 # Additional compiler flags for building library objects.
17634 pic_flag=$lt_lt_prog_compiler_pic
17635
17636 # How to pass a linker flag through the compiler.
17637 wl=$lt_lt_prog_compiler_wl
17638
17639 # Compiler flag to prevent dynamic linking.
17640 link_static_flag=$lt_lt_prog_compiler_static
17641
17642 # Does compiler simultaneously support -c and -o options?
17643 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17644
17645 # Whether or not to add -lc for building shared libraries.
17646 build_libtool_need_lc=$archive_cmds_need_lc
17647
17648 # Whether or not to disallow shared libs when runtime libs are static.
17649 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17650
17651 # Compiler flag to allow reflexive dlopens.
17652 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17653
17654 # Compiler flag to generate shared objects directly from archives.
17655 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17656
17657 # Whether the compiler copes with passing no objects directly.
17658 compiler_needs_object=$lt_compiler_needs_object
17659
17660 # Create an old-style archive from a shared archive.
17661 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17662
17663 # Create a temporary old-style archive to link instead of a shared archive.
17664 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17665
17666 # Commands used to build a shared archive.
17667 archive_cmds=$lt_archive_cmds
17668 archive_expsym_cmds=$lt_archive_expsym_cmds
17669
17670 # Commands used to build a loadable module if different from building
17671 # a shared archive.
17672 module_cmds=$lt_module_cmds
17673 module_expsym_cmds=$lt_module_expsym_cmds
17674
17675 # Whether we are building with GNU ld or not.
17676 with_gnu_ld=$lt_with_gnu_ld
17677
17678 # Flag that allows shared libraries with undefined symbols to be built.
17679 allow_undefined_flag=$lt_allow_undefined_flag
17680
17681 # Flag that enforces no undefined symbols.
17682 no_undefined_flag=$lt_no_undefined_flag
17683
17684 # Flag to hardcode \$libdir into a binary during linking.
17685 # This must work even if \$libdir does not exist
17686 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17687
17688 # Whether we need a single "-rpath" flag with a separated argument.
17689 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17690
17691 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17692 # DIR into the resulting binary.
17693 hardcode_direct=$hardcode_direct
17694
17695 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17696 # DIR into the resulting binary and the resulting library dependency is
17697 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17698 # library is relocated.
17699 hardcode_direct_absolute=$hardcode_direct_absolute
17700
17701 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17702 # into the resulting binary.
17703 hardcode_minus_L=$hardcode_minus_L
17704
17705 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17706 # into the resulting binary.
17707 hardcode_shlibpath_var=$hardcode_shlibpath_var
17708
17709 # Set to "yes" if building a shared library automatically hardcodes DIR
17710 # into the library and all subsequent libraries and executables linked
17711 # against it.
17712 hardcode_automatic=$hardcode_automatic
17713
17714 # Set to yes if linker adds runtime paths of dependent libraries
17715 # to runtime path list.
17716 inherit_rpath=$inherit_rpath
17717
17718 # Whether libtool must link a program against all its dependency libraries.
17719 link_all_deplibs=$link_all_deplibs
17720
17721 # Set to "yes" if exported symbols are required.
17722 always_export_symbols=$always_export_symbols
17723
17724 # The commands to list exported symbols.
17725 export_symbols_cmds=$lt_export_symbols_cmds
17726
17727 # Symbols that should not be listed in the preloaded symbols.
17728 exclude_expsyms=$lt_exclude_expsyms
17729
17730 # Symbols that must always be exported.
17731 include_expsyms=$lt_include_expsyms
17732
17733 # Commands necessary for linking programs (against libraries) with templates.
17734 prelink_cmds=$lt_prelink_cmds
17735
17736 # Commands necessary for finishing linking programs.
17737 postlink_cmds=$lt_postlink_cmds
17738
17739 # Specify filename containing input files.
17740 file_list_spec=$lt_file_list_spec
17741
17742 # How to hardcode a shared library path into an executable.
17743 hardcode_action=$hardcode_action
17744
17745 # ### END LIBTOOL CONFIG
17746
17747 _LT_EOF
17748
17749 case $host_os in
17750 aix3*)
17751 cat <<\_LT_EOF >> "$cfgfile"
17752 # AIX sometimes has problems with the GCC collect2 program. For some
17753 # reason, if we set the COLLECT_NAMES environment variable, the problems
17754 # vanish in a puff of smoke.
17755 if test "X${COLLECT_NAMES+set}" != Xset; then
17756 COLLECT_NAMES=
17757 export COLLECT_NAMES
17758 fi
17759 _LT_EOF
17760 ;;
17761 esac
17762
17763
17764 ltmain="$ac_aux_dir/ltmain.sh"
17765
17766
17767 # We use sed instead of cat because bash on DJGPP gets confused if
17768 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17769 # text mode, it properly converts lines to CR/LF. This bash problem
17770 # is reportedly fixed, but why not run on old versions too?
17771 sed '$q' "$ltmain" >> "$cfgfile" \
17772 || (rm -f "$cfgfile"; exit 1)
17773
17774 if test x"$xsi_shell" = xyes; then
17775 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
17776 func_dirname ()\
17777 {\
17778 \ case ${1} in\
17779 \ */*) func_dirname_result="${1%/*}${2}" ;;\
17780 \ * ) func_dirname_result="${3}" ;;\
17781 \ esac\
17782 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
17783 && mv -f "$cfgfile.tmp" "$cfgfile" \
17784 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17785 test 0 -eq $? || _lt_function_replace_fail=:
17786
17787
17788 sed -e '/^func_basename ()$/,/^} # func_basename /c\
17789 func_basename ()\
17790 {\
17791 \ func_basename_result="${1##*/}"\
17792 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
17793 && mv -f "$cfgfile.tmp" "$cfgfile" \
17794 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17795 test 0 -eq $? || _lt_function_replace_fail=:
17796
17797
17798 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
17799 func_dirname_and_basename ()\
17800 {\
17801 \ case ${1} in\
17802 \ */*) func_dirname_result="${1%/*}${2}" ;;\
17803 \ * ) func_dirname_result="${3}" ;;\
17804 \ esac\
17805 \ func_basename_result="${1##*/}"\
17806 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
17807 && mv -f "$cfgfile.tmp" "$cfgfile" \
17808 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17809 test 0 -eq $? || _lt_function_replace_fail=:
17810
17811
17812 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
17813 func_stripname ()\
17814 {\
17815 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
17816 \ # positional parameters, so assign one to ordinary parameter first.\
17817 \ func_stripname_result=${3}\
17818 \ func_stripname_result=${func_stripname_result#"${1}"}\
17819 \ func_stripname_result=${func_stripname_result%"${2}"}\
17820 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
17821 && mv -f "$cfgfile.tmp" "$cfgfile" \
17822 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17823 test 0 -eq $? || _lt_function_replace_fail=:
17824
17825
17826 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
17827 func_split_long_opt ()\
17828 {\
17829 \ func_split_long_opt_name=${1%%=*}\
17830 \ func_split_long_opt_arg=${1#*=}\
17831 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
17832 && mv -f "$cfgfile.tmp" "$cfgfile" \
17833 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17834 test 0 -eq $? || _lt_function_replace_fail=:
17835
17836
17837 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
17838 func_split_short_opt ()\
17839 {\
17840 \ func_split_short_opt_arg=${1#??}\
17841 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
17842 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
17843 && mv -f "$cfgfile.tmp" "$cfgfile" \
17844 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17845 test 0 -eq $? || _lt_function_replace_fail=:
17846
17847
17848 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
17849 func_lo2o ()\
17850 {\
17851 \ case ${1} in\
17852 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
17853 \ *) func_lo2o_result=${1} ;;\
17854 \ esac\
17855 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
17856 && mv -f "$cfgfile.tmp" "$cfgfile" \
17857 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17858 test 0 -eq $? || _lt_function_replace_fail=:
17859
17860
17861 sed -e '/^func_xform ()$/,/^} # func_xform /c\
17862 func_xform ()\
17863 {\
17864 func_xform_result=${1%.*}.lo\
17865 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
17866 && mv -f "$cfgfile.tmp" "$cfgfile" \
17867 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17868 test 0 -eq $? || _lt_function_replace_fail=:
17869
17870
17871 sed -e '/^func_arith ()$/,/^} # func_arith /c\
17872 func_arith ()\
17873 {\
17874 func_arith_result=$(( $* ))\
17875 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
17876 && mv -f "$cfgfile.tmp" "$cfgfile" \
17877 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17878 test 0 -eq $? || _lt_function_replace_fail=:
17879
17880
17881 sed -e '/^func_len ()$/,/^} # func_len /c\
17882 func_len ()\
17883 {\
17884 func_len_result=${#1}\
17885 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
17886 && mv -f "$cfgfile.tmp" "$cfgfile" \
17887 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17888 test 0 -eq $? || _lt_function_replace_fail=:
17889
17890 fi
17891
17892 if test x"$lt_shell_append" = xyes; then
17893 sed -e '/^func_append ()$/,/^} # func_append /c\
17894 func_append ()\
17895 {\
17896 eval "${1}+=\\${2}"\
17897 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
17898 && mv -f "$cfgfile.tmp" "$cfgfile" \
17899 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17900 test 0 -eq $? || _lt_function_replace_fail=:
17901
17902
17903 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
17904 func_append_quoted ()\
17905 {\
17906 \ func_quote_for_eval "${2}"\
17907 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
17908 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
17909 && mv -f "$cfgfile.tmp" "$cfgfile" \
17910 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17911 test 0 -eq $? || _lt_function_replace_fail=:
17912
17913
17914 # Save a `func_append' function call where possible by direct use of '+='
17915 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
17916 && mv -f "$cfgfile.tmp" "$cfgfile" \
17917 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17918 test 0 -eq $? || _lt_function_replace_fail=:
17919 else
17920 # Save a `func_append' function call even when '+=' is not available
17921 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
17922 && mv -f "$cfgfile.tmp" "$cfgfile" \
17923 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17924 test 0 -eq $? || _lt_function_replace_fail=:
17925 fi
17926
17927 if test x"$_lt_function_replace_fail" = x":"; then
17928 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
17929 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
17930 fi
17931
17932
17933 mv -f "$cfgfile" "$ofile" ||
17934 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17935 chmod +x "$ofile"
17936
17937 ;;
17938
17939 esac
17940 done # for ac_tag
17941
17942
17943 as_fn_exit 0
17944 _ACEOF
17945 ac_clean_files=$ac_clean_files_save
17946
17947 test $ac_write_fail = 0 ||
17948 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
17949
17950
17951 # configure is writing to config.log, and then calls config.status.
17952 # config.status does its own redirection, appending to config.log.
17953 # Unfortunately, on DOS this fails, as config.log is still kept open
17954 # by configure, so config.status won't be able to write to it; its
17955 # output is simply discarded. So we exec the FD to /dev/null,
17956 # effectively closing config.log, so it can be properly (re)opened and
17957 # appended to by config.status. When coming back to configure, we
17958 # need to make the FD available again.
17959 if test "$no_create" != yes; then
17960 ac_cs_success=:
17961 ac_config_status_args=
17962 test "$silent" = yes &&
17963 ac_config_status_args="$ac_config_status_args --quiet"
17964 exec 5>/dev/null
17965 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17966 exec 5>>config.log
17967 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17968 # would make configure fail if this is the last instruction.
17969 $ac_cs_success || as_fn_exit 1
17970 fi
17971 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17972 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17973 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17974 fi
17975

Properties

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