ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/branches/newio/configure
Revision: 2334
Committed: Sun Jun 23 17:32:44 2013 UTC (10 years, 9 months ago) by michael
Original Path: ircd-hybrid/trunk/configure
File size: 503043 byte(s)
Log Message:
- Fixed broken --disable-libgeoip switch

File Contents

# Content
1 #! /bin/sh
2 # From configure.ac Id: configure.ac 2318 2013-06-21 17:47:52Z michael .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.69 for ircd-hybrid TRUNK.
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='TRUNK'
597 PACKAGE_STRING='ircd-hybrid TRUNK'
598 PACKAGE_BUGREPORT='bugs@ircd-hybrid.org'
599 PACKAGE_URL=''
600
601 ac_unique_file="src/ircd.c"
602 # Factoring default headers for most tests.
603 ac_includes_default="\
604 #include <stdio.h>
605 #ifdef HAVE_SYS_TYPES_H
606 # include <sys/types.h>
607 #endif
608 #ifdef HAVE_SYS_STAT_H
609 # include <sys/stat.h>
610 #endif
611 #ifdef STDC_HEADERS
612 # include <stdlib.h>
613 # include <stddef.h>
614 #else
615 # ifdef HAVE_STDLIB_H
616 # include <stdlib.h>
617 # endif
618 #endif
619 #ifdef HAVE_STRING_H
620 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
621 # include <memory.h>
622 # endif
623 # include <string.h>
624 #endif
625 #ifdef HAVE_STRINGS_H
626 # include <strings.h>
627 #endif
628 #ifdef HAVE_INTTYPES_H
629 # include <inttypes.h>
630 #endif
631 #ifdef HAVE_STDINT_H
632 # include <stdint.h>
633 #endif
634 #ifdef HAVE_UNISTD_H
635 # include <unistd.h>
636 #endif"
637
638 ac_func_list=
639 ac_header_list=
640 ac_subst_vars='ltdl_LTLIBOBJS
641 ltdl_LIBOBJS
642 am__EXEEXT_FALSE
643 am__EXEEXT_TRUE
644 LTLIBOBJS
645 LIBOBJS
646 LOCALSTATEDIR
647 DATADIR
648 LIBDIR
649 SYSCONFDIR
650 PREFIX
651 ENABLE_SSL_FALSE
652 ENABLE_SSL_TRUE
653 LTDLOPEN
654 LT_CONFIG_H
655 CONVENIENCE_LTDL_FALSE
656 CONVENIENCE_LTDL_TRUE
657 INSTALL_LTDL_FALSE
658 INSTALL_LTDL_TRUE
659 ARGZ_H
660 sys_symbol_underscore
661 LIBADD_DL
662 LT_DLPREOPEN
663 LIBADD_DLD_LINK
664 LIBADD_SHL_LOAD
665 LIBADD_DLOPEN
666 LT_DLLOADERS
667 INCLTDL
668 LTDLINCL
669 LTDLDEPS
670 LIBLTDL
671 CPP
672 OTOOL64
673 OTOOL
674 LIPO
675 NMEDIT
676 DSYMUTIL
677 MANIFEST_TOOL
678 RANLIB
679 ac_ct_AR
680 AR
681 DLLTOOL
682 OBJDUMP
683 LN_S
684 NM
685 ac_ct_DUMPBIN
686 DUMPBIN
687 LD
688 FGREP
689 EGREP
690 GREP
691 SED
692 host_os
693 host_vendor
694 host_cpu
695 host
696 build_os
697 build_vendor
698 build_cpu
699 build
700 LIBTOOL
701 LEXLIB
702 LEX_OUTPUT_ROOT
703 LEX
704 YFLAGS
705 YACC
706 am__fastdepCC_FALSE
707 am__fastdepCC_TRUE
708 CCDEPMODE
709 am__nodep
710 AMDEPBACKSLASH
711 AMDEP_FALSE
712 AMDEP_TRUE
713 am__quote
714 am__include
715 DEPDIR
716 OBJEXT
717 EXEEXT
718 ac_ct_CC
719 CPPFLAGS
720 LDFLAGS
721 CFLAGS
722 CC
723 MAINT
724 MAINTAINER_MODE_FALSE
725 MAINTAINER_MODE_TRUE
726 AM_BACKSLASH
727 AM_DEFAULT_VERBOSITY
728 AM_DEFAULT_V
729 AM_V
730 am__untar
731 am__tar
732 AMTAR
733 am__leading_dot
734 SET_MAKE
735 AWK
736 mkdir_p
737 MKDIR_P
738 INSTALL_STRIP_PROGRAM
739 STRIP
740 install_sh
741 MAKEINFO
742 AUTOHEADER
743 AUTOMAKE
744 AUTOCONF
745 ACLOCAL
746 VERSION
747 PACKAGE
748 CYGPATH_W
749 am__isrc
750 INSTALL_DATA
751 INSTALL_SCRIPT
752 INSTALL_PROGRAM
753 target_alias
754 host_alias
755 build_alias
756 LIBS
757 ECHO_T
758 ECHO_N
759 ECHO_C
760 DEFS
761 mandir
762 localedir
763 libdir
764 psdir
765 pdfdir
766 dvidir
767 htmldir
768 infodir
769 docdir
770 oldincludedir
771 includedir
772 localstatedir
773 sharedstatedir
774 sysconfdir
775 datadir
776 datarootdir
777 libexecdir
778 sbindir
779 bindir
780 program_transform_name
781 prefix
782 exec_prefix
783 PACKAGE_URL
784 PACKAGE_BUGREPORT
785 PACKAGE_STRING
786 PACKAGE_VERSION
787 PACKAGE_TARNAME
788 PACKAGE_NAME
789 PATH_SEPARATOR
790 SHELL'
791 ac_subst_files=''
792 ac_user_opts='
793 enable_option_checking
794 enable_silent_rules
795 enable_maintainer_mode
796 enable_dependency_tracking
797 enable_static
798 enable_shared
799 with_pic
800 enable_fast_install
801 with_gnu_ld
802 with_sysroot
803 enable_libtool_lock
804 with_included_ltdl
805 with_ltdl_include
806 with_ltdl_lib
807 enable_ltdl_install
808 enable_libgeoip
809 enable_openssl
810 enable_assert
811 enable_kqueue
812 enable_epoll
813 enable_devpoll
814 enable_poll
815 enable_select
816 enable_halfops
817 enable_debugging
818 enable_warnings
819 '
820 ac_precious_vars='build_alias
821 host_alias
822 target_alias
823 CC
824 CFLAGS
825 LDFLAGS
826 LIBS
827 CPPFLAGS
828 YACC
829 YFLAGS
830 CPP'
831
832
833 # Initialize some variables set by options.
834 ac_init_help=
835 ac_init_version=false
836 ac_unrecognized_opts=
837 ac_unrecognized_sep=
838 # The variables have the same names as the options, with
839 # dashes changed to underlines.
840 cache_file=/dev/null
841 exec_prefix=NONE
842 no_create=
843 no_recursion=
844 prefix=NONE
845 program_prefix=NONE
846 program_suffix=NONE
847 program_transform_name=s,x,x,
848 silent=
849 site=
850 srcdir=
851 verbose=
852 x_includes=NONE
853 x_libraries=NONE
854
855 # Installation directory options.
856 # These are left unexpanded so users can "make install exec_prefix=/foo"
857 # and all the variables that are supposed to be based on exec_prefix
858 # by default will actually change.
859 # Use braces instead of parens because sh, perl, etc. also accept them.
860 # (The list follows the same order as the GNU Coding Standards.)
861 bindir='${exec_prefix}/bin'
862 sbindir='${exec_prefix}/sbin'
863 libexecdir='${exec_prefix}/libexec'
864 datarootdir='${prefix}/share'
865 datadir='${datarootdir}'
866 sysconfdir='${prefix}/etc'
867 sharedstatedir='${prefix}/com'
868 localstatedir='${prefix}/var'
869 includedir='${prefix}/include'
870 oldincludedir='/usr/include'
871 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
872 infodir='${datarootdir}/info'
873 htmldir='${docdir}'
874 dvidir='${docdir}'
875 pdfdir='${docdir}'
876 psdir='${docdir}'
877 libdir='${exec_prefix}/lib'
878 localedir='${datarootdir}/locale'
879 mandir='${datarootdir}/man'
880
881 ac_prev=
882 ac_dashdash=
883 for ac_option
884 do
885 # If the previous option needs an argument, assign it.
886 if test -n "$ac_prev"; then
887 eval $ac_prev=\$ac_option
888 ac_prev=
889 continue
890 fi
891
892 case $ac_option in
893 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
894 *=) ac_optarg= ;;
895 *) ac_optarg=yes ;;
896 esac
897
898 # Accept the important Cygnus configure options, so we can diagnose typos.
899
900 case $ac_dashdash$ac_option in
901 --)
902 ac_dashdash=yes ;;
903
904 -bindir | --bindir | --bindi | --bind | --bin | --bi)
905 ac_prev=bindir ;;
906 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
907 bindir=$ac_optarg ;;
908
909 -build | --build | --buil | --bui | --bu)
910 ac_prev=build_alias ;;
911 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
912 build_alias=$ac_optarg ;;
913
914 -cache-file | --cache-file | --cache-fil | --cache-fi \
915 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
916 ac_prev=cache_file ;;
917 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
918 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
919 cache_file=$ac_optarg ;;
920
921 --config-cache | -C)
922 cache_file=config.cache ;;
923
924 -datadir | --datadir | --datadi | --datad)
925 ac_prev=datadir ;;
926 -datadir=* | --datadir=* | --datadi=* | --datad=*)
927 datadir=$ac_optarg ;;
928
929 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
930 | --dataroo | --dataro | --datar)
931 ac_prev=datarootdir ;;
932 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
933 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
934 datarootdir=$ac_optarg ;;
935
936 -disable-* | --disable-*)
937 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
938 # Reject names that are not valid shell variable names.
939 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
940 as_fn_error $? "invalid feature name: $ac_useropt"
941 ac_useropt_orig=$ac_useropt
942 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
943 case $ac_user_opts in
944 *"
945 "enable_$ac_useropt"
946 "*) ;;
947 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
948 ac_unrecognized_sep=', ';;
949 esac
950 eval enable_$ac_useropt=no ;;
951
952 -docdir | --docdir | --docdi | --doc | --do)
953 ac_prev=docdir ;;
954 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
955 docdir=$ac_optarg ;;
956
957 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
958 ac_prev=dvidir ;;
959 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
960 dvidir=$ac_optarg ;;
961
962 -enable-* | --enable-*)
963 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
964 # Reject names that are not valid shell variable names.
965 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
966 as_fn_error $? "invalid feature name: $ac_useropt"
967 ac_useropt_orig=$ac_useropt
968 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
969 case $ac_user_opts in
970 *"
971 "enable_$ac_useropt"
972 "*) ;;
973 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
974 ac_unrecognized_sep=', ';;
975 esac
976 eval enable_$ac_useropt=\$ac_optarg ;;
977
978 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
979 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
980 | --exec | --exe | --ex)
981 ac_prev=exec_prefix ;;
982 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
983 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
984 | --exec=* | --exe=* | --ex=*)
985 exec_prefix=$ac_optarg ;;
986
987 -gas | --gas | --ga | --g)
988 # Obsolete; use --with-gas.
989 with_gas=yes ;;
990
991 -help | --help | --hel | --he | -h)
992 ac_init_help=long ;;
993 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
994 ac_init_help=recursive ;;
995 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
996 ac_init_help=short ;;
997
998 -host | --host | --hos | --ho)
999 ac_prev=host_alias ;;
1000 -host=* | --host=* | --hos=* | --ho=*)
1001 host_alias=$ac_optarg ;;
1002
1003 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1004 ac_prev=htmldir ;;
1005 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1006 | --ht=*)
1007 htmldir=$ac_optarg ;;
1008
1009 -includedir | --includedir | --includedi | --included | --include \
1010 | --includ | --inclu | --incl | --inc)
1011 ac_prev=includedir ;;
1012 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1013 | --includ=* | --inclu=* | --incl=* | --inc=*)
1014 includedir=$ac_optarg ;;
1015
1016 -infodir | --infodir | --infodi | --infod | --info | --inf)
1017 ac_prev=infodir ;;
1018 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1019 infodir=$ac_optarg ;;
1020
1021 -libdir | --libdir | --libdi | --libd)
1022 ac_prev=libdir ;;
1023 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1024 libdir=$ac_optarg ;;
1025
1026 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1027 | --libexe | --libex | --libe)
1028 ac_prev=libexecdir ;;
1029 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1030 | --libexe=* | --libex=* | --libe=*)
1031 libexecdir=$ac_optarg ;;
1032
1033 -localedir | --localedir | --localedi | --localed | --locale)
1034 ac_prev=localedir ;;
1035 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1036 localedir=$ac_optarg ;;
1037
1038 -localstatedir | --localstatedir | --localstatedi | --localstated \
1039 | --localstate | --localstat | --localsta | --localst | --locals)
1040 ac_prev=localstatedir ;;
1041 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1042 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1043 localstatedir=$ac_optarg ;;
1044
1045 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1046 ac_prev=mandir ;;
1047 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1048 mandir=$ac_optarg ;;
1049
1050 -nfp | --nfp | --nf)
1051 # Obsolete; use --without-fp.
1052 with_fp=no ;;
1053
1054 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1055 | --no-cr | --no-c | -n)
1056 no_create=yes ;;
1057
1058 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1059 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1060 no_recursion=yes ;;
1061
1062 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1063 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1064 | --oldin | --oldi | --old | --ol | --o)
1065 ac_prev=oldincludedir ;;
1066 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1067 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1068 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1069 oldincludedir=$ac_optarg ;;
1070
1071 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1072 ac_prev=prefix ;;
1073 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1074 prefix=$ac_optarg ;;
1075
1076 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1077 | --program-pre | --program-pr | --program-p)
1078 ac_prev=program_prefix ;;
1079 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1080 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1081 program_prefix=$ac_optarg ;;
1082
1083 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1084 | --program-suf | --program-su | --program-s)
1085 ac_prev=program_suffix ;;
1086 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1087 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1088 program_suffix=$ac_optarg ;;
1089
1090 -program-transform-name | --program-transform-name \
1091 | --program-transform-nam | --program-transform-na \
1092 | --program-transform-n | --program-transform- \
1093 | --program-transform | --program-transfor \
1094 | --program-transfo | --program-transf \
1095 | --program-trans | --program-tran \
1096 | --progr-tra | --program-tr | --program-t)
1097 ac_prev=program_transform_name ;;
1098 -program-transform-name=* | --program-transform-name=* \
1099 | --program-transform-nam=* | --program-transform-na=* \
1100 | --program-transform-n=* | --program-transform-=* \
1101 | --program-transform=* | --program-transfor=* \
1102 | --program-transfo=* | --program-transf=* \
1103 | --program-trans=* | --program-tran=* \
1104 | --progr-tra=* | --program-tr=* | --program-t=*)
1105 program_transform_name=$ac_optarg ;;
1106
1107 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1108 ac_prev=pdfdir ;;
1109 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1110 pdfdir=$ac_optarg ;;
1111
1112 -psdir | --psdir | --psdi | --psd | --ps)
1113 ac_prev=psdir ;;
1114 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1115 psdir=$ac_optarg ;;
1116
1117 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1118 | -silent | --silent | --silen | --sile | --sil)
1119 silent=yes ;;
1120
1121 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1122 ac_prev=sbindir ;;
1123 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1124 | --sbi=* | --sb=*)
1125 sbindir=$ac_optarg ;;
1126
1127 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1128 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1129 | --sharedst | --shareds | --shared | --share | --shar \
1130 | --sha | --sh)
1131 ac_prev=sharedstatedir ;;
1132 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1133 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1134 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1135 | --sha=* | --sh=*)
1136 sharedstatedir=$ac_optarg ;;
1137
1138 -site | --site | --sit)
1139 ac_prev=site ;;
1140 -site=* | --site=* | --sit=*)
1141 site=$ac_optarg ;;
1142
1143 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1144 ac_prev=srcdir ;;
1145 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1146 srcdir=$ac_optarg ;;
1147
1148 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1149 | --syscon | --sysco | --sysc | --sys | --sy)
1150 ac_prev=sysconfdir ;;
1151 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1152 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1153 sysconfdir=$ac_optarg ;;
1154
1155 -target | --target | --targe | --targ | --tar | --ta | --t)
1156 ac_prev=target_alias ;;
1157 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1158 target_alias=$ac_optarg ;;
1159
1160 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1161 verbose=yes ;;
1162
1163 -version | --version | --versio | --versi | --vers | -V)
1164 ac_init_version=: ;;
1165
1166 -with-* | --with-*)
1167 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1168 # Reject names that are not valid shell variable names.
1169 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1170 as_fn_error $? "invalid package name: $ac_useropt"
1171 ac_useropt_orig=$ac_useropt
1172 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1173 case $ac_user_opts in
1174 *"
1175 "with_$ac_useropt"
1176 "*) ;;
1177 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1178 ac_unrecognized_sep=', ';;
1179 esac
1180 eval with_$ac_useropt=\$ac_optarg ;;
1181
1182 -without-* | --without-*)
1183 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1184 # Reject names that are not valid shell variable names.
1185 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1186 as_fn_error $? "invalid package name: $ac_useropt"
1187 ac_useropt_orig=$ac_useropt
1188 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1189 case $ac_user_opts in
1190 *"
1191 "with_$ac_useropt"
1192 "*) ;;
1193 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1194 ac_unrecognized_sep=', ';;
1195 esac
1196 eval with_$ac_useropt=no ;;
1197
1198 --x)
1199 # Obsolete; use --with-x.
1200 with_x=yes ;;
1201
1202 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1203 | --x-incl | --x-inc | --x-in | --x-i)
1204 ac_prev=x_includes ;;
1205 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1206 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1207 x_includes=$ac_optarg ;;
1208
1209 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1210 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1211 ac_prev=x_libraries ;;
1212 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1213 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1214 x_libraries=$ac_optarg ;;
1215
1216 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1217 Try \`$0 --help' for more information"
1218 ;;
1219
1220 *=*)
1221 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1222 # Reject names that are not valid shell variable names.
1223 case $ac_envvar in #(
1224 '' | [0-9]* | *[!_$as_cr_alnum]* )
1225 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1226 esac
1227 eval $ac_envvar=\$ac_optarg
1228 export $ac_envvar ;;
1229
1230 *)
1231 # FIXME: should be removed in autoconf 3.0.
1232 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1233 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1234 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1235 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1236 ;;
1237
1238 esac
1239 done
1240
1241 if test -n "$ac_prev"; then
1242 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1243 as_fn_error $? "missing argument to $ac_option"
1244 fi
1245
1246 if test -n "$ac_unrecognized_opts"; then
1247 case $enable_option_checking in
1248 no) ;;
1249 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1250 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1251 esac
1252 fi
1253
1254 # Check all directory arguments for consistency.
1255 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1256 datadir sysconfdir sharedstatedir localstatedir includedir \
1257 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1258 libdir localedir mandir
1259 do
1260 eval ac_val=\$$ac_var
1261 # Remove trailing slashes.
1262 case $ac_val in
1263 */ )
1264 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1265 eval $ac_var=\$ac_val;;
1266 esac
1267 # Be sure to have absolute directory names.
1268 case $ac_val in
1269 [\\/$]* | ?:[\\/]* ) continue;;
1270 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1271 esac
1272 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1273 done
1274
1275 # There might be people who depend on the old broken behavior: `$host'
1276 # used to hold the argument of --host etc.
1277 # FIXME: To remove some day.
1278 build=$build_alias
1279 host=$host_alias
1280 target=$target_alias
1281
1282 # FIXME: To remove some day.
1283 if test "x$host_alias" != x; then
1284 if test "x$build_alias" = x; then
1285 cross_compiling=maybe
1286 elif test "x$build_alias" != "x$host_alias"; then
1287 cross_compiling=yes
1288 fi
1289 fi
1290
1291 ac_tool_prefix=
1292 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1293
1294 test "$silent" = yes && exec 6>/dev/null
1295
1296
1297 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1298 ac_ls_di=`ls -di .` &&
1299 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1300 as_fn_error $? "working directory cannot be determined"
1301 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1302 as_fn_error $? "pwd does not report name of working directory"
1303
1304
1305 # Find the source files, if location was not specified.
1306 if test -z "$srcdir"; then
1307 ac_srcdir_defaulted=yes
1308 # Try the directory containing this script, then the parent directory.
1309 ac_confdir=`$as_dirname -- "$as_myself" ||
1310 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1311 X"$as_myself" : 'X\(//\)[^/]' \| \
1312 X"$as_myself" : 'X\(//\)$' \| \
1313 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1314 $as_echo X"$as_myself" |
1315 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1316 s//\1/
1317 q
1318 }
1319 /^X\(\/\/\)[^/].*/{
1320 s//\1/
1321 q
1322 }
1323 /^X\(\/\/\)$/{
1324 s//\1/
1325 q
1326 }
1327 /^X\(\/\).*/{
1328 s//\1/
1329 q
1330 }
1331 s/.*/./; q'`
1332 srcdir=$ac_confdir
1333 if test ! -r "$srcdir/$ac_unique_file"; then
1334 srcdir=..
1335 fi
1336 else
1337 ac_srcdir_defaulted=no
1338 fi
1339 if test ! -r "$srcdir/$ac_unique_file"; then
1340 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1341 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1342 fi
1343 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1344 ac_abs_confdir=`(
1345 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1346 pwd)`
1347 # When building in place, set srcdir=.
1348 if test "$ac_abs_confdir" = "$ac_pwd"; then
1349 srcdir=.
1350 fi
1351 # Remove unnecessary trailing slashes from srcdir.
1352 # Double slashes in file names in object file debugging info
1353 # mess up M-x gdb in Emacs.
1354 case $srcdir in
1355 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1356 esac
1357 for ac_var in $ac_precious_vars; do
1358 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1359 eval ac_env_${ac_var}_value=\$${ac_var}
1360 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1361 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1362 done
1363
1364 #
1365 # Report the --help message.
1366 #
1367 if test "$ac_init_help" = "long"; then
1368 # Omit some internal or obsolete options to make the list less imposing.
1369 # This message is too long to be a string in the A/UX 3.1 sh.
1370 cat <<_ACEOF
1371 \`configure' configures ircd-hybrid TRUNK to adapt to many kinds of systems.
1372
1373 Usage: $0 [OPTION]... [VAR=VALUE]...
1374
1375 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1376 VAR=VALUE. See below for descriptions of some of the useful variables.
1377
1378 Defaults for the options are specified in brackets.
1379
1380 Configuration:
1381 -h, --help display this help and exit
1382 --help=short display options specific to this package
1383 --help=recursive display the short help of all the included packages
1384 -V, --version display version information and exit
1385 -q, --quiet, --silent do not print \`checking ...' messages
1386 --cache-file=FILE cache test results in FILE [disabled]
1387 -C, --config-cache alias for \`--cache-file=config.cache'
1388 -n, --no-create do not create output files
1389 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1390
1391 Installation directories:
1392 --prefix=PREFIX install architecture-independent files in PREFIX
1393 [$ac_default_prefix]
1394 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1395 [PREFIX]
1396
1397 By default, \`make install' will install all the files in
1398 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1399 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1400 for instance \`--prefix=\$HOME'.
1401
1402 For better control, use the options below.
1403
1404 Fine tuning of the installation directories:
1405 --bindir=DIR user executables [EPREFIX/bin]
1406 --sbindir=DIR system admin executables [EPREFIX/sbin]
1407 --libexecdir=DIR program executables [EPREFIX/libexec]
1408 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1409 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1410 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1411 --libdir=DIR object code libraries [EPREFIX/lib]
1412 --includedir=DIR C header files [PREFIX/include]
1413 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1414 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1415 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1416 --infodir=DIR info documentation [DATAROOTDIR/info]
1417 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1418 --mandir=DIR man documentation [DATAROOTDIR/man]
1419 --docdir=DIR documentation root [DATAROOTDIR/doc/ircd-hybrid]
1420 --htmldir=DIR html documentation [DOCDIR]
1421 --dvidir=DIR dvi documentation [DOCDIR]
1422 --pdfdir=DIR pdf documentation [DOCDIR]
1423 --psdir=DIR ps documentation [DOCDIR]
1424 _ACEOF
1425
1426 cat <<\_ACEOF
1427
1428 Program names:
1429 --program-prefix=PREFIX prepend PREFIX to installed program names
1430 --program-suffix=SUFFIX append SUFFIX to installed program names
1431 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1432
1433 System types:
1434 --build=BUILD configure for building on BUILD [guessed]
1435 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1436 _ACEOF
1437 fi
1438
1439 if test -n "$ac_init_help"; then
1440 case $ac_init_help in
1441 short | recursive ) echo "Configuration of ircd-hybrid TRUNK:";;
1442 esac
1443 cat <<\_ACEOF
1444
1445 Optional Features:
1446 --disable-option-checking ignore unrecognized --enable/--with options
1447 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1448 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1449 --enable-silent-rules less verbose build output (undo: "make V=1")
1450 --disable-silent-rules verbose build output (undo: "make V=0")
1451 --enable-maintainer-mode
1452 enable make rules and dependencies not useful (and
1453 sometimes confusing) to the casual installer
1454 --enable-dependency-tracking
1455 do not reject slow dependency extractors
1456 --disable-dependency-tracking
1457 speeds up one-time build
1458 --enable-static[=PKGS] build static libraries [default=no]
1459 --enable-shared[=PKGS] build shared libraries [default=yes]
1460 --enable-fast-install[=PKGS]
1461 optimize for fast installation [default=yes]
1462 --disable-libtool-lock avoid locking (might break parallel builds)
1463 --enable-ltdl-install install libltdl
1464 --disable-libgeoip Disable GeoIP support
1465 --enable-openssl=DIR Enable OpenSSL support (DIR optional).
1466 --disable-openssl Disable OpenSSL support.
1467 --enable-assert Enable assert() statements
1468 --enable-kqueue Force kqueue usage.
1469 --enable-epoll Force epoll usage.
1470 --enable-devpoll Force devpoll usage.
1471 --enable-poll Force poll usage.
1472 --enable-select Force select usage.
1473 --enable-halfops Enable halfops support.
1474 --enable-debugging Enable debugging.
1475 --enable-warnings Enable compiler warnings.
1476
1477 Optional Packages:
1478 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1479 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1480 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1481 both]
1482 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1483 --with-sysroot=DIR Search for dependent libraries within DIR
1484 (or the compiler's sysroot if not specified).
1485 --with-included-ltdl use the GNU ltdl sources included here
1486 --with-ltdl-include=DIR use the ltdl headers installed in DIR
1487 --with-ltdl-lib=DIR use the libltdl.la installed in DIR
1488
1489 Some influential environment variables:
1490 CC C compiler command
1491 CFLAGS C compiler flags
1492 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1493 nonstandard directory <lib dir>
1494 LIBS libraries to pass to the linker, e.g. -l<library>
1495 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1496 you have headers in a nonstandard directory <include dir>
1497 YACC The `Yet Another Compiler Compiler' implementation to use.
1498 Defaults to the first program found out of: `bison -y', `byacc',
1499 `yacc'.
1500 YFLAGS The list of arguments that will be passed by default to $YACC.
1501 This script will default YFLAGS to the empty string to avoid a
1502 default value of `-d' given by some make applications.
1503 CPP C preprocessor
1504
1505 Use these variables to override the choices made by `configure' or to help
1506 it to find libraries and programs with nonstandard names/locations.
1507
1508 Report bugs to <bugs@ircd-hybrid.org>.
1509 _ACEOF
1510 ac_status=$?
1511 fi
1512
1513 if test "$ac_init_help" = "recursive"; then
1514 # If there are subdirs, report their specific --help.
1515 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1516 test -d "$ac_dir" ||
1517 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1518 continue
1519 ac_builddir=.
1520
1521 case "$ac_dir" in
1522 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1523 *)
1524 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1525 # A ".." for each directory in $ac_dir_suffix.
1526 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1527 case $ac_top_builddir_sub in
1528 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1529 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1530 esac ;;
1531 esac
1532 ac_abs_top_builddir=$ac_pwd
1533 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1534 # for backward compatibility:
1535 ac_top_builddir=$ac_top_build_prefix
1536
1537 case $srcdir in
1538 .) # We are building in place.
1539 ac_srcdir=.
1540 ac_top_srcdir=$ac_top_builddir_sub
1541 ac_abs_top_srcdir=$ac_pwd ;;
1542 [\\/]* | ?:[\\/]* ) # Absolute name.
1543 ac_srcdir=$srcdir$ac_dir_suffix;
1544 ac_top_srcdir=$srcdir
1545 ac_abs_top_srcdir=$srcdir ;;
1546 *) # Relative name.
1547 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1548 ac_top_srcdir=$ac_top_build_prefix$srcdir
1549 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1550 esac
1551 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1552
1553 cd "$ac_dir" || { ac_status=$?; continue; }
1554 # Check for guested configure.
1555 if test -f "$ac_srcdir/configure.gnu"; then
1556 echo &&
1557 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1558 elif test -f "$ac_srcdir/configure"; then
1559 echo &&
1560 $SHELL "$ac_srcdir/configure" --help=recursive
1561 else
1562 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1563 fi || ac_status=$?
1564 cd "$ac_pwd" || { ac_status=$?; break; }
1565 done
1566 fi
1567
1568 test -n "$ac_init_help" && exit $ac_status
1569 if $ac_init_version; then
1570 cat <<\_ACEOF
1571 ircd-hybrid configure TRUNK
1572 generated by GNU Autoconf 2.69
1573
1574 Copyright (C) 2012 Free Software Foundation, Inc.
1575 This configure script is free software; the Free Software Foundation
1576 gives unlimited permission to copy, distribute and modify it.
1577 _ACEOF
1578 exit
1579 fi
1580
1581 ## ------------------------ ##
1582 ## Autoconf initialization. ##
1583 ## ------------------------ ##
1584
1585 # ac_fn_c_try_compile LINENO
1586 # --------------------------
1587 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1588 ac_fn_c_try_compile ()
1589 {
1590 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1591 rm -f conftest.$ac_objext
1592 if { { ac_try="$ac_compile"
1593 case "(($ac_try" in
1594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1595 *) ac_try_echo=$ac_try;;
1596 esac
1597 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1598 $as_echo "$ac_try_echo"; } >&5
1599 (eval "$ac_compile") 2>conftest.err
1600 ac_status=$?
1601 if test -s conftest.err; then
1602 grep -v '^ *+' conftest.err >conftest.er1
1603 cat conftest.er1 >&5
1604 mv -f conftest.er1 conftest.err
1605 fi
1606 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1607 test $ac_status = 0; } && {
1608 test -z "$ac_c_werror_flag" ||
1609 test ! -s conftest.err
1610 } && test -s conftest.$ac_objext; then :
1611 ac_retval=0
1612 else
1613 $as_echo "$as_me: failed program was:" >&5
1614 sed 's/^/| /' conftest.$ac_ext >&5
1615
1616 ac_retval=1
1617 fi
1618 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1619 as_fn_set_status $ac_retval
1620
1621 } # ac_fn_c_try_compile
1622
1623 # ac_fn_c_try_link LINENO
1624 # -----------------------
1625 # Try to link conftest.$ac_ext, and return whether this succeeded.
1626 ac_fn_c_try_link ()
1627 {
1628 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1629 rm -f conftest.$ac_objext conftest$ac_exeext
1630 if { { ac_try="$ac_link"
1631 case "(($ac_try" in
1632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1633 *) ac_try_echo=$ac_try;;
1634 esac
1635 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1636 $as_echo "$ac_try_echo"; } >&5
1637 (eval "$ac_link") 2>conftest.err
1638 ac_status=$?
1639 if test -s conftest.err; then
1640 grep -v '^ *+' conftest.err >conftest.er1
1641 cat conftest.er1 >&5
1642 mv -f conftest.er1 conftest.err
1643 fi
1644 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1645 test $ac_status = 0; } && {
1646 test -z "$ac_c_werror_flag" ||
1647 test ! -s conftest.err
1648 } && test -s conftest$ac_exeext && {
1649 test "$cross_compiling" = yes ||
1650 test -x conftest$ac_exeext
1651 }; then :
1652 ac_retval=0
1653 else
1654 $as_echo "$as_me: failed program was:" >&5
1655 sed 's/^/| /' conftest.$ac_ext >&5
1656
1657 ac_retval=1
1658 fi
1659 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1660 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1661 # interfere with the next link command; also delete a directory that is
1662 # left behind by Apple's compiler. We do this before executing the actions.
1663 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1664 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1665 as_fn_set_status $ac_retval
1666
1667 } # ac_fn_c_try_link
1668
1669 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1670 # -------------------------------------------------------
1671 # Tests whether HEADER exists and can be compiled using the include files in
1672 # INCLUDES, setting the cache variable VAR accordingly.
1673 ac_fn_c_check_header_compile ()
1674 {
1675 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1677 $as_echo_n "checking for $2... " >&6; }
1678 if eval \${$3+:} false; then :
1679 $as_echo_n "(cached) " >&6
1680 else
1681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1682 /* end confdefs.h. */
1683 $4
1684 #include <$2>
1685 _ACEOF
1686 if ac_fn_c_try_compile "$LINENO"; then :
1687 eval "$3=yes"
1688 else
1689 eval "$3=no"
1690 fi
1691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1692 fi
1693 eval ac_res=\$$3
1694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1695 $as_echo "$ac_res" >&6; }
1696 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1697
1698 } # ac_fn_c_check_header_compile
1699
1700 # ac_fn_c_try_cpp LINENO
1701 # ----------------------
1702 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1703 ac_fn_c_try_cpp ()
1704 {
1705 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1706 if { { ac_try="$ac_cpp conftest.$ac_ext"
1707 case "(($ac_try" in
1708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1709 *) ac_try_echo=$ac_try;;
1710 esac
1711 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1712 $as_echo "$ac_try_echo"; } >&5
1713 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1714 ac_status=$?
1715 if test -s conftest.err; then
1716 grep -v '^ *+' conftest.err >conftest.er1
1717 cat conftest.er1 >&5
1718 mv -f conftest.er1 conftest.err
1719 fi
1720 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1721 test $ac_status = 0; } > conftest.i && {
1722 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1723 test ! -s conftest.err
1724 }; then :
1725 ac_retval=0
1726 else
1727 $as_echo "$as_me: failed program was:" >&5
1728 sed 's/^/| /' conftest.$ac_ext >&5
1729
1730 ac_retval=1
1731 fi
1732 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1733 as_fn_set_status $ac_retval
1734
1735 } # ac_fn_c_try_cpp
1736
1737 # ac_fn_c_try_run LINENO
1738 # ----------------------
1739 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1740 # that executables *can* be run.
1741 ac_fn_c_try_run ()
1742 {
1743 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1744 if { { ac_try="$ac_link"
1745 case "(($ac_try" in
1746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1747 *) ac_try_echo=$ac_try;;
1748 esac
1749 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1750 $as_echo "$ac_try_echo"; } >&5
1751 (eval "$ac_link") 2>&5
1752 ac_status=$?
1753 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1754 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1755 { { case "(($ac_try" in
1756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1757 *) ac_try_echo=$ac_try;;
1758 esac
1759 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1760 $as_echo "$ac_try_echo"; } >&5
1761 (eval "$ac_try") 2>&5
1762 ac_status=$?
1763 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1764 test $ac_status = 0; }; }; then :
1765 ac_retval=0
1766 else
1767 $as_echo "$as_me: program exited with status $ac_status" >&5
1768 $as_echo "$as_me: failed program was:" >&5
1769 sed 's/^/| /' conftest.$ac_ext >&5
1770
1771 ac_retval=$ac_status
1772 fi
1773 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1774 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1775 as_fn_set_status $ac_retval
1776
1777 } # ac_fn_c_try_run
1778
1779 # ac_fn_c_check_func LINENO FUNC VAR
1780 # ----------------------------------
1781 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1782 ac_fn_c_check_func ()
1783 {
1784 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1786 $as_echo_n "checking for $2... " >&6; }
1787 if eval \${$3+:} false; then :
1788 $as_echo_n "(cached) " >&6
1789 else
1790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1791 /* end confdefs.h. */
1792 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1793 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1794 #define $2 innocuous_$2
1795
1796 /* System header to define __stub macros and hopefully few prototypes,
1797 which can conflict with char $2 (); below.
1798 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1799 <limits.h> exists even on freestanding compilers. */
1800
1801 #ifdef __STDC__
1802 # include <limits.h>
1803 #else
1804 # include <assert.h>
1805 #endif
1806
1807 #undef $2
1808
1809 /* Override any GCC internal prototype to avoid an error.
1810 Use char because int might match the return type of a GCC
1811 builtin and then its argument prototype would still apply. */
1812 #ifdef __cplusplus
1813 extern "C"
1814 #endif
1815 char $2 ();
1816 /* The GNU C library defines this for functions which it implements
1817 to always fail with ENOSYS. Some functions are actually named
1818 something starting with __ and the normal name is an alias. */
1819 #if defined __stub_$2 || defined __stub___$2
1820 choke me
1821 #endif
1822
1823 int
1824 main ()
1825 {
1826 return $2 ();
1827 ;
1828 return 0;
1829 }
1830 _ACEOF
1831 if ac_fn_c_try_link "$LINENO"; then :
1832 eval "$3=yes"
1833 else
1834 eval "$3=no"
1835 fi
1836 rm -f core conftest.err conftest.$ac_objext \
1837 conftest$ac_exeext conftest.$ac_ext
1838 fi
1839 eval ac_res=\$$3
1840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1841 $as_echo "$ac_res" >&6; }
1842 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1843
1844 } # ac_fn_c_check_func
1845
1846 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1847 # ---------------------------------------------
1848 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1849 # accordingly.
1850 ac_fn_c_check_decl ()
1851 {
1852 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1853 as_decl_name=`echo $2|sed 's/ *(.*//'`
1854 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1856 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1857 if eval \${$3+:} false; then :
1858 $as_echo_n "(cached) " >&6
1859 else
1860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1861 /* end confdefs.h. */
1862 $4
1863 int
1864 main ()
1865 {
1866 #ifndef $as_decl_name
1867 #ifdef __cplusplus
1868 (void) $as_decl_use;
1869 #else
1870 (void) $as_decl_name;
1871 #endif
1872 #endif
1873
1874 ;
1875 return 0;
1876 }
1877 _ACEOF
1878 if ac_fn_c_try_compile "$LINENO"; then :
1879 eval "$3=yes"
1880 else
1881 eval "$3=no"
1882 fi
1883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1884 fi
1885 eval ac_res=\$$3
1886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1887 $as_echo "$ac_res" >&6; }
1888 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1889
1890 } # ac_fn_c_check_decl
1891
1892 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1893 # -------------------------------------------
1894 # Tests whether TYPE exists after having included INCLUDES, setting cache
1895 # variable VAR accordingly.
1896 ac_fn_c_check_type ()
1897 {
1898 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1900 $as_echo_n "checking for $2... " >&6; }
1901 if eval \${$3+:} false; then :
1902 $as_echo_n "(cached) " >&6
1903 else
1904 eval "$3=no"
1905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1906 /* end confdefs.h. */
1907 $4
1908 int
1909 main ()
1910 {
1911 if (sizeof ($2))
1912 return 0;
1913 ;
1914 return 0;
1915 }
1916 _ACEOF
1917 if ac_fn_c_try_compile "$LINENO"; then :
1918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1919 /* end confdefs.h. */
1920 $4
1921 int
1922 main ()
1923 {
1924 if (sizeof (($2)))
1925 return 0;
1926 ;
1927 return 0;
1928 }
1929 _ACEOF
1930 if ac_fn_c_try_compile "$LINENO"; then :
1931
1932 else
1933 eval "$3=yes"
1934 fi
1935 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1936 fi
1937 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1938 fi
1939 eval ac_res=\$$3
1940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1941 $as_echo "$ac_res" >&6; }
1942 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1943
1944 } # ac_fn_c_check_type
1945
1946 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1947 # --------------------------------------------
1948 # Tries to find the compile-time value of EXPR in a program that includes
1949 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1950 # computed
1951 ac_fn_c_compute_int ()
1952 {
1953 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1954 if test "$cross_compiling" = yes; then
1955 # Depending upon the size, compute the lo and hi bounds.
1956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1957 /* end confdefs.h. */
1958 $4
1959 int
1960 main ()
1961 {
1962 static int test_array [1 - 2 * !(($2) >= 0)];
1963 test_array [0] = 0;
1964 return test_array [0];
1965
1966 ;
1967 return 0;
1968 }
1969 _ACEOF
1970 if ac_fn_c_try_compile "$LINENO"; then :
1971 ac_lo=0 ac_mid=0
1972 while :; do
1973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1974 /* end confdefs.h. */
1975 $4
1976 int
1977 main ()
1978 {
1979 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1980 test_array [0] = 0;
1981 return test_array [0];
1982
1983 ;
1984 return 0;
1985 }
1986 _ACEOF
1987 if ac_fn_c_try_compile "$LINENO"; then :
1988 ac_hi=$ac_mid; break
1989 else
1990 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1991 if test $ac_lo -le $ac_mid; then
1992 ac_lo= ac_hi=
1993 break
1994 fi
1995 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1996 fi
1997 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1998 done
1999 else
2000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2001 /* end confdefs.h. */
2002 $4
2003 int
2004 main ()
2005 {
2006 static int test_array [1 - 2 * !(($2) < 0)];
2007 test_array [0] = 0;
2008 return test_array [0];
2009
2010 ;
2011 return 0;
2012 }
2013 _ACEOF
2014 if ac_fn_c_try_compile "$LINENO"; then :
2015 ac_hi=-1 ac_mid=-1
2016 while :; do
2017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2018 /* end confdefs.h. */
2019 $4
2020 int
2021 main ()
2022 {
2023 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2024 test_array [0] = 0;
2025 return test_array [0];
2026
2027 ;
2028 return 0;
2029 }
2030 _ACEOF
2031 if ac_fn_c_try_compile "$LINENO"; then :
2032 ac_lo=$ac_mid; break
2033 else
2034 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2035 if test $ac_mid -le $ac_hi; then
2036 ac_lo= ac_hi=
2037 break
2038 fi
2039 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2040 fi
2041 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2042 done
2043 else
2044 ac_lo= ac_hi=
2045 fi
2046 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2047 fi
2048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2049 # Binary search between lo and hi bounds.
2050 while test "x$ac_lo" != "x$ac_hi"; do
2051 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2053 /* end confdefs.h. */
2054 $4
2055 int
2056 main ()
2057 {
2058 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2059 test_array [0] = 0;
2060 return test_array [0];
2061
2062 ;
2063 return 0;
2064 }
2065 _ACEOF
2066 if ac_fn_c_try_compile "$LINENO"; then :
2067 ac_hi=$ac_mid
2068 else
2069 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2070 fi
2071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2072 done
2073 case $ac_lo in #((
2074 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2075 '') ac_retval=1 ;;
2076 esac
2077 else
2078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2079 /* end confdefs.h. */
2080 $4
2081 static long int longval () { return $2; }
2082 static unsigned long int ulongval () { return $2; }
2083 #include <stdio.h>
2084 #include <stdlib.h>
2085 int
2086 main ()
2087 {
2088
2089 FILE *f = fopen ("conftest.val", "w");
2090 if (! f)
2091 return 1;
2092 if (($2) < 0)
2093 {
2094 long int i = longval ();
2095 if (i != ($2))
2096 return 1;
2097 fprintf (f, "%ld", i);
2098 }
2099 else
2100 {
2101 unsigned long int i = ulongval ();
2102 if (i != ($2))
2103 return 1;
2104 fprintf (f, "%lu", i);
2105 }
2106 /* Do not output a trailing newline, as this causes \r\n confusion
2107 on some platforms. */
2108 return ferror (f) || fclose (f) != 0;
2109
2110 ;
2111 return 0;
2112 }
2113 _ACEOF
2114 if ac_fn_c_try_run "$LINENO"; then :
2115 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2116 else
2117 ac_retval=1
2118 fi
2119 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2120 conftest.$ac_objext conftest.beam conftest.$ac_ext
2121 rm -f conftest.val
2122
2123 fi
2124 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2125 as_fn_set_status $ac_retval
2126
2127 } # ac_fn_c_compute_int
2128
2129 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2130 # ----------------------------------------------------
2131 # Tries to find if the field MEMBER exists in type AGGR, after including
2132 # INCLUDES, setting cache variable VAR accordingly.
2133 ac_fn_c_check_member ()
2134 {
2135 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2137 $as_echo_n "checking for $2.$3... " >&6; }
2138 if eval \${$4+:} false; then :
2139 $as_echo_n "(cached) " >&6
2140 else
2141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2142 /* end confdefs.h. */
2143 $5
2144 int
2145 main ()
2146 {
2147 static $2 ac_aggr;
2148 if (ac_aggr.$3)
2149 return 0;
2150 ;
2151 return 0;
2152 }
2153 _ACEOF
2154 if ac_fn_c_try_compile "$LINENO"; then :
2155 eval "$4=yes"
2156 else
2157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2158 /* end confdefs.h. */
2159 $5
2160 int
2161 main ()
2162 {
2163 static $2 ac_aggr;
2164 if (sizeof ac_aggr.$3)
2165 return 0;
2166 ;
2167 return 0;
2168 }
2169 _ACEOF
2170 if ac_fn_c_try_compile "$LINENO"; then :
2171 eval "$4=yes"
2172 else
2173 eval "$4=no"
2174 fi
2175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2176 fi
2177 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2178 fi
2179 eval ac_res=\$$4
2180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2181 $as_echo "$ac_res" >&6; }
2182 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2183
2184 } # ac_fn_c_check_member
2185
2186 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2187 # -------------------------------------------------------
2188 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2189 # the include files in INCLUDES and setting the cache variable VAR
2190 # accordingly.
2191 ac_fn_c_check_header_mongrel ()
2192 {
2193 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2194 if eval \${$3+:} false; then :
2195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2196 $as_echo_n "checking for $2... " >&6; }
2197 if eval \${$3+:} false; then :
2198 $as_echo_n "(cached) " >&6
2199 fi
2200 eval ac_res=\$$3
2201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2202 $as_echo "$ac_res" >&6; }
2203 else
2204 # Is the header compilable?
2205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2206 $as_echo_n "checking $2 usability... " >&6; }
2207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2208 /* end confdefs.h. */
2209 $4
2210 #include <$2>
2211 _ACEOF
2212 if ac_fn_c_try_compile "$LINENO"; then :
2213 ac_header_compiler=yes
2214 else
2215 ac_header_compiler=no
2216 fi
2217 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2219 $as_echo "$ac_header_compiler" >&6; }
2220
2221 # Is the header present?
2222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2223 $as_echo_n "checking $2 presence... " >&6; }
2224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2225 /* end confdefs.h. */
2226 #include <$2>
2227 _ACEOF
2228 if ac_fn_c_try_cpp "$LINENO"; then :
2229 ac_header_preproc=yes
2230 else
2231 ac_header_preproc=no
2232 fi
2233 rm -f conftest.err conftest.i conftest.$ac_ext
2234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2235 $as_echo "$ac_header_preproc" >&6; }
2236
2237 # So? What about this header?
2238 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2239 yes:no: )
2240 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2241 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2242 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2243 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2244 ;;
2245 no:yes:* )
2246 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2247 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2248 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2249 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2250 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2251 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2252 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2253 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2254 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2255 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2256 ( $as_echo "## ----------------------------------- ##
2257 ## Report this to bugs@ircd-hybrid.org ##
2258 ## ----------------------------------- ##"
2259 ) | sed "s/^/$as_me: WARNING: /" >&2
2260 ;;
2261 esac
2262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2263 $as_echo_n "checking for $2... " >&6; }
2264 if eval \${$3+:} false; then :
2265 $as_echo_n "(cached) " >&6
2266 else
2267 eval "$3=\$ac_header_compiler"
2268 fi
2269 eval ac_res=\$$3
2270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2271 $as_echo "$ac_res" >&6; }
2272 fi
2273 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2274
2275 } # ac_fn_c_check_header_mongrel
2276 cat >config.log <<_ACEOF
2277 This file contains any messages produced by compilers while
2278 running configure, to aid debugging if configure makes a mistake.
2279
2280 It was created by ircd-hybrid $as_me TRUNK, which was
2281 generated by GNU Autoconf 2.69. Invocation command line was
2282
2283 $ $0 $@
2284
2285 _ACEOF
2286 exec 5>>config.log
2287 {
2288 cat <<_ASUNAME
2289 ## --------- ##
2290 ## Platform. ##
2291 ## --------- ##
2292
2293 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2294 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2295 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2296 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2297 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2298
2299 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2300 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2301
2302 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2303 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2304 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2305 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2306 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2307 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2308 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2309
2310 _ASUNAME
2311
2312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2313 for as_dir in $PATH
2314 do
2315 IFS=$as_save_IFS
2316 test -z "$as_dir" && as_dir=.
2317 $as_echo "PATH: $as_dir"
2318 done
2319 IFS=$as_save_IFS
2320
2321 } >&5
2322
2323 cat >&5 <<_ACEOF
2324
2325
2326 ## ----------- ##
2327 ## Core tests. ##
2328 ## ----------- ##
2329
2330 _ACEOF
2331
2332
2333 # Keep a trace of the command line.
2334 # Strip out --no-create and --no-recursion so they do not pile up.
2335 # Strip out --silent because we don't want to record it for future runs.
2336 # Also quote any args containing shell meta-characters.
2337 # Make two passes to allow for proper duplicate-argument suppression.
2338 ac_configure_args=
2339 ac_configure_args0=
2340 ac_configure_args1=
2341 ac_must_keep_next=false
2342 for ac_pass in 1 2
2343 do
2344 for ac_arg
2345 do
2346 case $ac_arg in
2347 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2348 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2349 | -silent | --silent | --silen | --sile | --sil)
2350 continue ;;
2351 *\'*)
2352 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2353 esac
2354 case $ac_pass in
2355 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2356 2)
2357 as_fn_append ac_configure_args1 " '$ac_arg'"
2358 if test $ac_must_keep_next = true; then
2359 ac_must_keep_next=false # Got value, back to normal.
2360 else
2361 case $ac_arg in
2362 *=* | --config-cache | -C | -disable-* | --disable-* \
2363 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2364 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2365 | -with-* | --with-* | -without-* | --without-* | --x)
2366 case "$ac_configure_args0 " in
2367 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2368 esac
2369 ;;
2370 -* ) ac_must_keep_next=true ;;
2371 esac
2372 fi
2373 as_fn_append ac_configure_args " '$ac_arg'"
2374 ;;
2375 esac
2376 done
2377 done
2378 { ac_configure_args0=; unset ac_configure_args0;}
2379 { ac_configure_args1=; unset ac_configure_args1;}
2380
2381 # When interrupted or exit'd, cleanup temporary files, and complete
2382 # config.log. We remove comments because anyway the quotes in there
2383 # would cause problems or look ugly.
2384 # WARNING: Use '\'' to represent an apostrophe within the trap.
2385 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2386 trap 'exit_status=$?
2387 # Save into config.log some information that might help in debugging.
2388 {
2389 echo
2390
2391 $as_echo "## ---------------- ##
2392 ## Cache variables. ##
2393 ## ---------------- ##"
2394 echo
2395 # The following way of writing the cache mishandles newlines in values,
2396 (
2397 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2398 eval ac_val=\$$ac_var
2399 case $ac_val in #(
2400 *${as_nl}*)
2401 case $ac_var in #(
2402 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2403 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2404 esac
2405 case $ac_var in #(
2406 _ | IFS | as_nl) ;; #(
2407 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2408 *) { eval $ac_var=; unset $ac_var;} ;;
2409 esac ;;
2410 esac
2411 done
2412 (set) 2>&1 |
2413 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2414 *${as_nl}ac_space=\ *)
2415 sed -n \
2416 "s/'\''/'\''\\\\'\'''\''/g;
2417 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2418 ;; #(
2419 *)
2420 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2421 ;;
2422 esac |
2423 sort
2424 )
2425 echo
2426
2427 $as_echo "## ----------------- ##
2428 ## Output variables. ##
2429 ## ----------------- ##"
2430 echo
2431 for ac_var in $ac_subst_vars
2432 do
2433 eval ac_val=\$$ac_var
2434 case $ac_val in
2435 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2436 esac
2437 $as_echo "$ac_var='\''$ac_val'\''"
2438 done | sort
2439 echo
2440
2441 if test -n "$ac_subst_files"; then
2442 $as_echo "## ------------------- ##
2443 ## File substitutions. ##
2444 ## ------------------- ##"
2445 echo
2446 for ac_var in $ac_subst_files
2447 do
2448 eval ac_val=\$$ac_var
2449 case $ac_val in
2450 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2451 esac
2452 $as_echo "$ac_var='\''$ac_val'\''"
2453 done | sort
2454 echo
2455 fi
2456
2457 if test -s confdefs.h; then
2458 $as_echo "## ----------- ##
2459 ## confdefs.h. ##
2460 ## ----------- ##"
2461 echo
2462 cat confdefs.h
2463 echo
2464 fi
2465 test "$ac_signal" != 0 &&
2466 $as_echo "$as_me: caught signal $ac_signal"
2467 $as_echo "$as_me: exit $exit_status"
2468 } >&5
2469 rm -f core *.core core.conftest.* &&
2470 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2471 exit $exit_status
2472 ' 0
2473 for ac_signal in 1 2 13 15; do
2474 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2475 done
2476 ac_signal=0
2477
2478 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2479 rm -f -r conftest* confdefs.h
2480
2481 $as_echo "/* confdefs.h */" > confdefs.h
2482
2483 # Predefined preprocessor variables.
2484
2485 cat >>confdefs.h <<_ACEOF
2486 #define PACKAGE_NAME "$PACKAGE_NAME"
2487 _ACEOF
2488
2489 cat >>confdefs.h <<_ACEOF
2490 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2491 _ACEOF
2492
2493 cat >>confdefs.h <<_ACEOF
2494 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2495 _ACEOF
2496
2497 cat >>confdefs.h <<_ACEOF
2498 #define PACKAGE_STRING "$PACKAGE_STRING"
2499 _ACEOF
2500
2501 cat >>confdefs.h <<_ACEOF
2502 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2503 _ACEOF
2504
2505 cat >>confdefs.h <<_ACEOF
2506 #define PACKAGE_URL "$PACKAGE_URL"
2507 _ACEOF
2508
2509
2510 # Let the site file select an alternate cache file if it wants to.
2511 # Prefer an explicitly selected file to automatically selected ones.
2512 ac_site_file1=NONE
2513 ac_site_file2=NONE
2514 if test -n "$CONFIG_SITE"; then
2515 # We do not want a PATH search for config.site.
2516 case $CONFIG_SITE in #((
2517 -*) ac_site_file1=./$CONFIG_SITE;;
2518 */*) ac_site_file1=$CONFIG_SITE;;
2519 *) ac_site_file1=./$CONFIG_SITE;;
2520 esac
2521 elif test "x$prefix" != xNONE; then
2522 ac_site_file1=$prefix/share/config.site
2523 ac_site_file2=$prefix/etc/config.site
2524 else
2525 ac_site_file1=$ac_default_prefix/share/config.site
2526 ac_site_file2=$ac_default_prefix/etc/config.site
2527 fi
2528 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2529 do
2530 test "x$ac_site_file" = xNONE && continue
2531 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2532 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2533 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2534 sed 's/^/| /' "$ac_site_file" >&5
2535 . "$ac_site_file" \
2536 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2537 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2538 as_fn_error $? "failed to load site script $ac_site_file
2539 See \`config.log' for more details" "$LINENO" 5; }
2540 fi
2541 done
2542
2543 if test -r "$cache_file"; then
2544 # Some versions of bash will fail to source /dev/null (special files
2545 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2546 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2547 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2548 $as_echo "$as_me: loading cache $cache_file" >&6;}
2549 case $cache_file in
2550 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2551 *) . "./$cache_file";;
2552 esac
2553 fi
2554 else
2555 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2556 $as_echo "$as_me: creating cache $cache_file" >&6;}
2557 >$cache_file
2558 fi
2559
2560 as_fn_append ac_func_list " strtok_r"
2561 as_fn_append ac_func_list " usleep"
2562 as_fn_append ac_func_list " strlcat"
2563 as_fn_append ac_func_list " strlcpy"
2564 as_fn_append ac_header_list " crypt.h"
2565 as_fn_append ac_header_list " sys/resource.h"
2566 as_fn_append ac_header_list " sys/param.h"
2567 as_fn_append ac_header_list " types.h"
2568 as_fn_append ac_header_list " socket.h"
2569 as_fn_append ac_header_list " sys/wait.h"
2570 as_fn_append ac_header_list " wait.h"
2571 # Check that the precious variables saved in the cache have kept the same
2572 # value.
2573 ac_cache_corrupted=false
2574 for ac_var in $ac_precious_vars; do
2575 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2576 eval ac_new_set=\$ac_env_${ac_var}_set
2577 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2578 eval ac_new_val=\$ac_env_${ac_var}_value
2579 case $ac_old_set,$ac_new_set in
2580 set,)
2581 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2582 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2583 ac_cache_corrupted=: ;;
2584 ,set)
2585 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2586 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2587 ac_cache_corrupted=: ;;
2588 ,);;
2589 *)
2590 if test "x$ac_old_val" != "x$ac_new_val"; then
2591 # differences in whitespace do not lead to failure.
2592 ac_old_val_w=`echo x $ac_old_val`
2593 ac_new_val_w=`echo x $ac_new_val`
2594 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2595 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2596 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2597 ac_cache_corrupted=:
2598 else
2599 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2600 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2601 eval $ac_var=\$ac_old_val
2602 fi
2603 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2604 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2605 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2606 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2607 fi;;
2608 esac
2609 # Pass precious variables to config.status.
2610 if test "$ac_new_set" = set; then
2611 case $ac_new_val in
2612 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2613 *) ac_arg=$ac_var=$ac_new_val ;;
2614 esac
2615 case " $ac_configure_args " in
2616 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2617 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2618 esac
2619 fi
2620 done
2621 if $ac_cache_corrupted; then
2622 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2623 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2624 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2625 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2626 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2627 fi
2628 ## -------------------- ##
2629 ## Main body of script. ##
2630 ## -------------------- ##
2631
2632 ac_ext=c
2633 ac_cpp='$CPP $CPPFLAGS'
2634 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2635 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2636 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2637
2638
2639 am__api_version='1.13'
2640
2641 ac_aux_dir=
2642 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2643 if test -f "$ac_dir/install-sh"; then
2644 ac_aux_dir=$ac_dir
2645 ac_install_sh="$ac_aux_dir/install-sh -c"
2646 break
2647 elif test -f "$ac_dir/install.sh"; then
2648 ac_aux_dir=$ac_dir
2649 ac_install_sh="$ac_aux_dir/install.sh -c"
2650 break
2651 elif test -f "$ac_dir/shtool"; then
2652 ac_aux_dir=$ac_dir
2653 ac_install_sh="$ac_aux_dir/shtool install -c"
2654 break
2655 fi
2656 done
2657 if test -z "$ac_aux_dir"; then
2658 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2659 fi
2660
2661 # These three variables are undocumented and unsupported,
2662 # and are intended to be withdrawn in a future Autoconf release.
2663 # They can cause serious problems if a builder's source tree is in a directory
2664 # whose full name contains unusual characters.
2665 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2666 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2667 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2668
2669
2670 # Find a good install program. We prefer a C program (faster),
2671 # so one script is as good as another. But avoid the broken or
2672 # incompatible versions:
2673 # SysV /etc/install, /usr/sbin/install
2674 # SunOS /usr/etc/install
2675 # IRIX /sbin/install
2676 # AIX /bin/install
2677 # AmigaOS /C/install, which installs bootblocks on floppy discs
2678 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2679 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2680 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2681 # OS/2's system install, which has a completely different semantic
2682 # ./install, which can be erroneously created by make from ./install.sh.
2683 # Reject install programs that cannot install multiple files.
2684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2685 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2686 if test -z "$INSTALL"; then
2687 if ${ac_cv_path_install+:} false; then :
2688 $as_echo_n "(cached) " >&6
2689 else
2690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2691 for as_dir in $PATH
2692 do
2693 IFS=$as_save_IFS
2694 test -z "$as_dir" && as_dir=.
2695 # Account for people who put trailing slashes in PATH elements.
2696 case $as_dir/ in #((
2697 ./ | .// | /[cC]/* | \
2698 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2699 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2700 /usr/ucb/* ) ;;
2701 *)
2702 # OSF1 and SCO ODT 3.0 have their own names for install.
2703 # Don't use installbsd from OSF since it installs stuff as root
2704 # by default.
2705 for ac_prog in ginstall scoinst install; do
2706 for ac_exec_ext in '' $ac_executable_extensions; do
2707 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2708 if test $ac_prog = install &&
2709 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2710 # AIX install. It has an incompatible calling convention.
2711 :
2712 elif test $ac_prog = install &&
2713 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2714 # program-specific install script used by HP pwplus--don't use.
2715 :
2716 else
2717 rm -rf conftest.one conftest.two conftest.dir
2718 echo one > conftest.one
2719 echo two > conftest.two
2720 mkdir conftest.dir
2721 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2722 test -s conftest.one && test -s conftest.two &&
2723 test -s conftest.dir/conftest.one &&
2724 test -s conftest.dir/conftest.two
2725 then
2726 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2727 break 3
2728 fi
2729 fi
2730 fi
2731 done
2732 done
2733 ;;
2734 esac
2735
2736 done
2737 IFS=$as_save_IFS
2738
2739 rm -rf conftest.one conftest.two conftest.dir
2740
2741 fi
2742 if test "${ac_cv_path_install+set}" = set; then
2743 INSTALL=$ac_cv_path_install
2744 else
2745 # As a last resort, use the slow shell script. Don't cache a
2746 # value for INSTALL within a source directory, because that will
2747 # break other packages using the cache if that directory is
2748 # removed, or if the value is a relative name.
2749 INSTALL=$ac_install_sh
2750 fi
2751 fi
2752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2753 $as_echo "$INSTALL" >&6; }
2754
2755 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2756 # It thinks the first close brace ends the variable substitution.
2757 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2758
2759 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2760
2761 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2762
2763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2764 $as_echo_n "checking whether build environment is sane... " >&6; }
2765 # Reject unsafe characters in $srcdir or the absolute working directory
2766 # name. Accept space and tab only in the latter.
2767 am_lf='
2768 '
2769 case `pwd` in
2770 *[\\\"\#\$\&\'\`$am_lf]*)
2771 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2772 esac
2773 case $srcdir in
2774 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2775 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2776 esac
2777
2778 # Do 'set' in a subshell so we don't clobber the current shell's
2779 # arguments. Must try -L first in case configure is actually a
2780 # symlink; some systems play weird games with the mod time of symlinks
2781 # (eg FreeBSD returns the mod time of the symlink's containing
2782 # directory).
2783 if (
2784 am_has_slept=no
2785 for am_try in 1 2; do
2786 echo "timestamp, slept: $am_has_slept" > conftest.file
2787 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2788 if test "$*" = "X"; then
2789 # -L didn't work.
2790 set X `ls -t "$srcdir/configure" conftest.file`
2791 fi
2792 if test "$*" != "X $srcdir/configure conftest.file" \
2793 && test "$*" != "X conftest.file $srcdir/configure"; then
2794
2795 # If neither matched, then we have a broken ls. This can happen
2796 # if, for instance, CONFIG_SHELL is bash and it inherits a
2797 # broken ls alias from the environment. This has actually
2798 # happened. Such a system could not be considered "sane".
2799 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2800 alias in your environment" "$LINENO" 5
2801 fi
2802 if test "$2" = conftest.file || test $am_try -eq 2; then
2803 break
2804 fi
2805 # Just in case.
2806 sleep 1
2807 am_has_slept=yes
2808 done
2809 test "$2" = conftest.file
2810 )
2811 then
2812 # Ok.
2813 :
2814 else
2815 as_fn_error $? "newly created file is older than distributed files!
2816 Check your system clock" "$LINENO" 5
2817 fi
2818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2819 $as_echo "yes" >&6; }
2820 # If we didn't sleep, we still need to ensure time stamps of config.status and
2821 # generated files are strictly newer.
2822 am_sleep_pid=
2823 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2824 ( sleep 1 ) &
2825 am_sleep_pid=$!
2826 fi
2827
2828 rm -f conftest.file
2829
2830 test "$program_prefix" != NONE &&
2831 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2832 # Use a double $ so make ignores it.
2833 test "$program_suffix" != NONE &&
2834 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2835 # Double any \ or $.
2836 # By default was `s,x,x', remove it if useless.
2837 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2838 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2839
2840 # expand $ac_aux_dir to an absolute path
2841 am_aux_dir=`cd $ac_aux_dir && pwd`
2842
2843 if test x"${MISSING+set}" != xset; then
2844 case $am_aux_dir in
2845 *\ * | *\ *)
2846 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2847 *)
2848 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2849 esac
2850 fi
2851 # Use eval to expand $SHELL
2852 if eval "$MISSING --is-lightweight"; then
2853 am_missing_run="$MISSING "
2854 else
2855 am_missing_run=
2856 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2857 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2858 fi
2859
2860 if test x"${install_sh}" != xset; then
2861 case $am_aux_dir in
2862 *\ * | *\ *)
2863 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2864 *)
2865 install_sh="\${SHELL} $am_aux_dir/install-sh"
2866 esac
2867 fi
2868
2869 # Installed binaries are usually stripped using 'strip' when the user
2870 # run "make install-strip". However 'strip' might not be the right
2871 # tool to use in cross-compilation environments, therefore Automake
2872 # will honor the 'STRIP' environment variable to overrule this program.
2873 if test "$cross_compiling" != no; then
2874 if test -n "$ac_tool_prefix"; then
2875 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2876 set dummy ${ac_tool_prefix}strip; ac_word=$2
2877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2878 $as_echo_n "checking for $ac_word... " >&6; }
2879 if ${ac_cv_prog_STRIP+:} false; then :
2880 $as_echo_n "(cached) " >&6
2881 else
2882 if test -n "$STRIP"; then
2883 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2884 else
2885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2886 for as_dir in $PATH
2887 do
2888 IFS=$as_save_IFS
2889 test -z "$as_dir" && as_dir=.
2890 for ac_exec_ext in '' $ac_executable_extensions; do
2891 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2892 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2893 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2894 break 2
2895 fi
2896 done
2897 done
2898 IFS=$as_save_IFS
2899
2900 fi
2901 fi
2902 STRIP=$ac_cv_prog_STRIP
2903 if test -n "$STRIP"; then
2904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2905 $as_echo "$STRIP" >&6; }
2906 else
2907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2908 $as_echo "no" >&6; }
2909 fi
2910
2911
2912 fi
2913 if test -z "$ac_cv_prog_STRIP"; then
2914 ac_ct_STRIP=$STRIP
2915 # Extract the first word of "strip", so it can be a program name with args.
2916 set dummy strip; ac_word=$2
2917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2918 $as_echo_n "checking for $ac_word... " >&6; }
2919 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2920 $as_echo_n "(cached) " >&6
2921 else
2922 if test -n "$ac_ct_STRIP"; then
2923 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2924 else
2925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2926 for as_dir in $PATH
2927 do
2928 IFS=$as_save_IFS
2929 test -z "$as_dir" && as_dir=.
2930 for ac_exec_ext in '' $ac_executable_extensions; do
2931 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2932 ac_cv_prog_ac_ct_STRIP="strip"
2933 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2934 break 2
2935 fi
2936 done
2937 done
2938 IFS=$as_save_IFS
2939
2940 fi
2941 fi
2942 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2943 if test -n "$ac_ct_STRIP"; then
2944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2945 $as_echo "$ac_ct_STRIP" >&6; }
2946 else
2947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2948 $as_echo "no" >&6; }
2949 fi
2950
2951 if test "x$ac_ct_STRIP" = x; then
2952 STRIP=":"
2953 else
2954 case $cross_compiling:$ac_tool_warned in
2955 yes:)
2956 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2957 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2958 ac_tool_warned=yes ;;
2959 esac
2960 STRIP=$ac_ct_STRIP
2961 fi
2962 else
2963 STRIP="$ac_cv_prog_STRIP"
2964 fi
2965
2966 fi
2967 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2968
2969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2970 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2971 if test -z "$MKDIR_P"; then
2972 if ${ac_cv_path_mkdir+:} false; then :
2973 $as_echo_n "(cached) " >&6
2974 else
2975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2976 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2977 do
2978 IFS=$as_save_IFS
2979 test -z "$as_dir" && as_dir=.
2980 for ac_prog in mkdir gmkdir; do
2981 for ac_exec_ext in '' $ac_executable_extensions; do
2982 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2983 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2984 'mkdir (GNU coreutils) '* | \
2985 'mkdir (coreutils) '* | \
2986 'mkdir (fileutils) '4.1*)
2987 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2988 break 3;;
2989 esac
2990 done
2991 done
2992 done
2993 IFS=$as_save_IFS
2994
2995 fi
2996
2997 test -d ./--version && rmdir ./--version
2998 if test "${ac_cv_path_mkdir+set}" = set; then
2999 MKDIR_P="$ac_cv_path_mkdir -p"
3000 else
3001 # As a last resort, use the slow shell script. Don't cache a
3002 # value for MKDIR_P within a source directory, because that will
3003 # break other packages using the cache if that directory is
3004 # removed, or if the value is a relative name.
3005 MKDIR_P="$ac_install_sh -d"
3006 fi
3007 fi
3008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3009 $as_echo "$MKDIR_P" >&6; }
3010
3011 for ac_prog in gawk mawk nawk awk
3012 do
3013 # Extract the first word of "$ac_prog", so it can be a program name with args.
3014 set dummy $ac_prog; ac_word=$2
3015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3016 $as_echo_n "checking for $ac_word... " >&6; }
3017 if ${ac_cv_prog_AWK+:} false; then :
3018 $as_echo_n "(cached) " >&6
3019 else
3020 if test -n "$AWK"; then
3021 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3022 else
3023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3024 for as_dir in $PATH
3025 do
3026 IFS=$as_save_IFS
3027 test -z "$as_dir" && as_dir=.
3028 for ac_exec_ext in '' $ac_executable_extensions; do
3029 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3030 ac_cv_prog_AWK="$ac_prog"
3031 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3032 break 2
3033 fi
3034 done
3035 done
3036 IFS=$as_save_IFS
3037
3038 fi
3039 fi
3040 AWK=$ac_cv_prog_AWK
3041 if test -n "$AWK"; then
3042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3043 $as_echo "$AWK" >&6; }
3044 else
3045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3046 $as_echo "no" >&6; }
3047 fi
3048
3049
3050 test -n "$AWK" && break
3051 done
3052
3053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3054 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3055 set x ${MAKE-make}
3056 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3057 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3058 $as_echo_n "(cached) " >&6
3059 else
3060 cat >conftest.make <<\_ACEOF
3061 SHELL = /bin/sh
3062 all:
3063 @echo '@@@%%%=$(MAKE)=@@@%%%'
3064 _ACEOF
3065 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3066 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3067 *@@@%%%=?*=@@@%%%*)
3068 eval ac_cv_prog_make_${ac_make}_set=yes;;
3069 *)
3070 eval ac_cv_prog_make_${ac_make}_set=no;;
3071 esac
3072 rm -f conftest.make
3073 fi
3074 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3076 $as_echo "yes" >&6; }
3077 SET_MAKE=
3078 else
3079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3080 $as_echo "no" >&6; }
3081 SET_MAKE="MAKE=${MAKE-make}"
3082 fi
3083
3084 rm -rf .tst 2>/dev/null
3085 mkdir .tst 2>/dev/null
3086 if test -d .tst; then
3087 am__leading_dot=.
3088 else
3089 am__leading_dot=_
3090 fi
3091 rmdir .tst 2>/dev/null
3092
3093 # Check whether --enable-silent-rules was given.
3094 if test "${enable_silent_rules+set}" = set; then :
3095 enableval=$enable_silent_rules;
3096 fi
3097
3098 case $enable_silent_rules in # (((
3099 yes) AM_DEFAULT_VERBOSITY=0;;
3100 no) AM_DEFAULT_VERBOSITY=1;;
3101 *) AM_DEFAULT_VERBOSITY=1;;
3102 esac
3103 am_make=${MAKE-make}
3104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3105 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3106 if ${am_cv_make_support_nested_variables+:} false; then :
3107 $as_echo_n "(cached) " >&6
3108 else
3109 if $as_echo 'TRUE=$(BAR$(V))
3110 BAR0=false
3111 BAR1=true
3112 V=1
3113 am__doit:
3114 @$(TRUE)
3115 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3116 am_cv_make_support_nested_variables=yes
3117 else
3118 am_cv_make_support_nested_variables=no
3119 fi
3120 fi
3121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3122 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3123 if test $am_cv_make_support_nested_variables = yes; then
3124 AM_V='$(V)'
3125 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3126 else
3127 AM_V=$AM_DEFAULT_VERBOSITY
3128 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3129 fi
3130 AM_BACKSLASH='\'
3131
3132 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3133 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3134 # is not polluted with repeated "-I."
3135 am__isrc=' -I$(srcdir)'
3136 # test to see if srcdir already configured
3137 if test -f $srcdir/config.status; then
3138 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3139 fi
3140 fi
3141
3142 # test whether we have cygpath
3143 if test -z "$CYGPATH_W"; then
3144 if (cygpath --version) >/dev/null 2>/dev/null; then
3145 CYGPATH_W='cygpath -w'
3146 else
3147 CYGPATH_W=echo
3148 fi
3149 fi
3150
3151
3152 # Define the identity of the package.
3153 PACKAGE='ircd-hybrid'
3154 VERSION='TRUNK'
3155
3156
3157 cat >>confdefs.h <<_ACEOF
3158 #define PACKAGE "$PACKAGE"
3159 _ACEOF
3160
3161
3162 cat >>confdefs.h <<_ACEOF
3163 #define VERSION "$VERSION"
3164 _ACEOF
3165
3166 # Some tools Automake needs.
3167
3168 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3169
3170
3171 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3172
3173
3174 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3175
3176
3177 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3178
3179
3180 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3181
3182 # For better backward compatibility. To be removed once Automake 1.9.x
3183 # dies out for good. For more background, see:
3184 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3185 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3186 mkdir_p='$(MKDIR_P)'
3187
3188 # We need awk for the "check" target. The system "awk" is bad on
3189 # some platforms.
3190 # Always define AMTAR for backward compatibility. Yes, it's still used
3191 # in the wild :-( We should find a proper way to deprecate it ...
3192 AMTAR='$${TAR-tar}'
3193
3194
3195 # We'll loop over all known methods to create a tar archive until one works.
3196 _am_tools='gnutar pax cpio none'
3197
3198 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3199
3200
3201
3202
3203
3204
3205
3206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3207 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3208 # Check whether --enable-maintainer-mode was given.
3209 if test "${enable_maintainer_mode+set}" = set; then :
3210 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3211 else
3212 USE_MAINTAINER_MODE=no
3213 fi
3214
3215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3216 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3217 if test $USE_MAINTAINER_MODE = yes; then
3218 MAINTAINER_MODE_TRUE=
3219 MAINTAINER_MODE_FALSE='#'
3220 else
3221 MAINTAINER_MODE_TRUE='#'
3222 MAINTAINER_MODE_FALSE=
3223 fi
3224
3225 MAINT=$MAINTAINER_MODE_TRUE
3226
3227
3228 ac_config_headers="$ac_config_headers config.h"
3229
3230
3231
3232 # Checks for programs.
3233 DEPDIR="${am__leading_dot}deps"
3234
3235 ac_config_commands="$ac_config_commands depfiles"
3236
3237
3238 am_make=${MAKE-make}
3239 cat > confinc << 'END'
3240 am__doit:
3241 @echo this is the am__doit target
3242 .PHONY: am__doit
3243 END
3244 # If we don't find an include directive, just comment out the code.
3245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3246 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3247 am__include="#"
3248 am__quote=
3249 _am_result=none
3250 # First try GNU make style include.
3251 echo "include confinc" > confmf
3252 # Ignore all kinds of additional output from 'make'.
3253 case `$am_make -s -f confmf 2> /dev/null` in #(
3254 *the\ am__doit\ target*)
3255 am__include=include
3256 am__quote=
3257 _am_result=GNU
3258 ;;
3259 esac
3260 # Now try BSD make style include.
3261 if test "$am__include" = "#"; then
3262 echo '.include "confinc"' > confmf
3263 case `$am_make -s -f confmf 2> /dev/null` in #(
3264 *the\ am__doit\ target*)
3265 am__include=.include
3266 am__quote="\""
3267 _am_result=BSD
3268 ;;
3269 esac
3270 fi
3271
3272
3273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3274 $as_echo "$_am_result" >&6; }
3275 rm -f confinc confmf
3276
3277 # Check whether --enable-dependency-tracking was given.
3278 if test "${enable_dependency_tracking+set}" = set; then :
3279 enableval=$enable_dependency_tracking;
3280 fi
3281
3282 if test "x$enable_dependency_tracking" != xno; then
3283 am_depcomp="$ac_aux_dir/depcomp"
3284 AMDEPBACKSLASH='\'
3285 am__nodep='_no'
3286 fi
3287 if test "x$enable_dependency_tracking" != xno; then
3288 AMDEP_TRUE=
3289 AMDEP_FALSE='#'
3290 else
3291 AMDEP_TRUE='#'
3292 AMDEP_FALSE=
3293 fi
3294
3295
3296 ac_ext=c
3297 ac_cpp='$CPP $CPPFLAGS'
3298 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3299 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3300 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3301 if test -n "$ac_tool_prefix"; then
3302 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3303 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3305 $as_echo_n "checking for $ac_word... " >&6; }
3306 if ${ac_cv_prog_CC+:} false; then :
3307 $as_echo_n "(cached) " >&6
3308 else
3309 if test -n "$CC"; then
3310 ac_cv_prog_CC="$CC" # Let the user override the test.
3311 else
3312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3313 for as_dir in $PATH
3314 do
3315 IFS=$as_save_IFS
3316 test -z "$as_dir" && as_dir=.
3317 for ac_exec_ext in '' $ac_executable_extensions; do
3318 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3319 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3320 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3321 break 2
3322 fi
3323 done
3324 done
3325 IFS=$as_save_IFS
3326
3327 fi
3328 fi
3329 CC=$ac_cv_prog_CC
3330 if test -n "$CC"; then
3331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3332 $as_echo "$CC" >&6; }
3333 else
3334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3335 $as_echo "no" >&6; }
3336 fi
3337
3338
3339 fi
3340 if test -z "$ac_cv_prog_CC"; then
3341 ac_ct_CC=$CC
3342 # Extract the first word of "gcc", so it can be a program name with args.
3343 set dummy gcc; ac_word=$2
3344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3345 $as_echo_n "checking for $ac_word... " >&6; }
3346 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3347 $as_echo_n "(cached) " >&6
3348 else
3349 if test -n "$ac_ct_CC"; then
3350 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3351 else
3352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3353 for as_dir in $PATH
3354 do
3355 IFS=$as_save_IFS
3356 test -z "$as_dir" && as_dir=.
3357 for ac_exec_ext in '' $ac_executable_extensions; do
3358 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3359 ac_cv_prog_ac_ct_CC="gcc"
3360 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3361 break 2
3362 fi
3363 done
3364 done
3365 IFS=$as_save_IFS
3366
3367 fi
3368 fi
3369 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3370 if test -n "$ac_ct_CC"; then
3371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3372 $as_echo "$ac_ct_CC" >&6; }
3373 else
3374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3375 $as_echo "no" >&6; }
3376 fi
3377
3378 if test "x$ac_ct_CC" = x; then
3379 CC=""
3380 else
3381 case $cross_compiling:$ac_tool_warned in
3382 yes:)
3383 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3384 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3385 ac_tool_warned=yes ;;
3386 esac
3387 CC=$ac_ct_CC
3388 fi
3389 else
3390 CC="$ac_cv_prog_CC"
3391 fi
3392
3393 if test -z "$CC"; then
3394 if test -n "$ac_tool_prefix"; then
3395 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3396 set dummy ${ac_tool_prefix}cc; ac_word=$2
3397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3398 $as_echo_n "checking for $ac_word... " >&6; }
3399 if ${ac_cv_prog_CC+:} false; then :
3400 $as_echo_n "(cached) " >&6
3401 else
3402 if test -n "$CC"; then
3403 ac_cv_prog_CC="$CC" # Let the user override the test.
3404 else
3405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3406 for as_dir in $PATH
3407 do
3408 IFS=$as_save_IFS
3409 test -z "$as_dir" && as_dir=.
3410 for ac_exec_ext in '' $ac_executable_extensions; do
3411 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3412 ac_cv_prog_CC="${ac_tool_prefix}cc"
3413 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3414 break 2
3415 fi
3416 done
3417 done
3418 IFS=$as_save_IFS
3419
3420 fi
3421 fi
3422 CC=$ac_cv_prog_CC
3423 if test -n "$CC"; then
3424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3425 $as_echo "$CC" >&6; }
3426 else
3427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3428 $as_echo "no" >&6; }
3429 fi
3430
3431
3432 fi
3433 fi
3434 if test -z "$CC"; then
3435 # Extract the first word of "cc", so it can be a program name with args.
3436 set dummy cc; ac_word=$2
3437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3438 $as_echo_n "checking for $ac_word... " >&6; }
3439 if ${ac_cv_prog_CC+:} false; then :
3440 $as_echo_n "(cached) " >&6
3441 else
3442 if test -n "$CC"; then
3443 ac_cv_prog_CC="$CC" # Let the user override the test.
3444 else
3445 ac_prog_rejected=no
3446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3447 for as_dir in $PATH
3448 do
3449 IFS=$as_save_IFS
3450 test -z "$as_dir" && as_dir=.
3451 for ac_exec_ext in '' $ac_executable_extensions; do
3452 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3453 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3454 ac_prog_rejected=yes
3455 continue
3456 fi
3457 ac_cv_prog_CC="cc"
3458 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3459 break 2
3460 fi
3461 done
3462 done
3463 IFS=$as_save_IFS
3464
3465 if test $ac_prog_rejected = yes; then
3466 # We found a bogon in the path, so make sure we never use it.
3467 set dummy $ac_cv_prog_CC
3468 shift
3469 if test $# != 0; then
3470 # We chose a different compiler from the bogus one.
3471 # However, it has the same basename, so the bogon will be chosen
3472 # first if we set CC to just the basename; use the full file name.
3473 shift
3474 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3475 fi
3476 fi
3477 fi
3478 fi
3479 CC=$ac_cv_prog_CC
3480 if test -n "$CC"; then
3481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3482 $as_echo "$CC" >&6; }
3483 else
3484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3485 $as_echo "no" >&6; }
3486 fi
3487
3488
3489 fi
3490 if test -z "$CC"; then
3491 if test -n "$ac_tool_prefix"; then
3492 for ac_prog in cl.exe
3493 do
3494 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3495 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3497 $as_echo_n "checking for $ac_word... " >&6; }
3498 if ${ac_cv_prog_CC+:} false; then :
3499 $as_echo_n "(cached) " >&6
3500 else
3501 if test -n "$CC"; then
3502 ac_cv_prog_CC="$CC" # Let the user override the test.
3503 else
3504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3505 for as_dir in $PATH
3506 do
3507 IFS=$as_save_IFS
3508 test -z "$as_dir" && as_dir=.
3509 for ac_exec_ext in '' $ac_executable_extensions; do
3510 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3511 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3512 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3513 break 2
3514 fi
3515 done
3516 done
3517 IFS=$as_save_IFS
3518
3519 fi
3520 fi
3521 CC=$ac_cv_prog_CC
3522 if test -n "$CC"; then
3523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3524 $as_echo "$CC" >&6; }
3525 else
3526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3527 $as_echo "no" >&6; }
3528 fi
3529
3530
3531 test -n "$CC" && break
3532 done
3533 fi
3534 if test -z "$CC"; then
3535 ac_ct_CC=$CC
3536 for ac_prog in cl.exe
3537 do
3538 # Extract the first word of "$ac_prog", so it can be a program name with args.
3539 set dummy $ac_prog; ac_word=$2
3540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3541 $as_echo_n "checking for $ac_word... " >&6; }
3542 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3543 $as_echo_n "(cached) " >&6
3544 else
3545 if test -n "$ac_ct_CC"; then
3546 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3547 else
3548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3549 for as_dir in $PATH
3550 do
3551 IFS=$as_save_IFS
3552 test -z "$as_dir" && as_dir=.
3553 for ac_exec_ext in '' $ac_executable_extensions; do
3554 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3555 ac_cv_prog_ac_ct_CC="$ac_prog"
3556 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3557 break 2
3558 fi
3559 done
3560 done
3561 IFS=$as_save_IFS
3562
3563 fi
3564 fi
3565 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3566 if test -n "$ac_ct_CC"; then
3567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3568 $as_echo "$ac_ct_CC" >&6; }
3569 else
3570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3571 $as_echo "no" >&6; }
3572 fi
3573
3574
3575 test -n "$ac_ct_CC" && break
3576 done
3577
3578 if test "x$ac_ct_CC" = x; then
3579 CC=""
3580 else
3581 case $cross_compiling:$ac_tool_warned in
3582 yes:)
3583 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3584 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3585 ac_tool_warned=yes ;;
3586 esac
3587 CC=$ac_ct_CC
3588 fi
3589 fi
3590
3591 fi
3592
3593
3594 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3595 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3596 as_fn_error $? "no acceptable C compiler found in \$PATH
3597 See \`config.log' for more details" "$LINENO" 5; }
3598
3599 # Provide some information about the compiler.
3600 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3601 set X $ac_compile
3602 ac_compiler=$2
3603 for ac_option in --version -v -V -qversion; do
3604 { { ac_try="$ac_compiler $ac_option >&5"
3605 case "(($ac_try" in
3606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3607 *) ac_try_echo=$ac_try;;
3608 esac
3609 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3610 $as_echo "$ac_try_echo"; } >&5
3611 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3612 ac_status=$?
3613 if test -s conftest.err; then
3614 sed '10a\
3615 ... rest of stderr output deleted ...
3616 10q' conftest.err >conftest.er1
3617 cat conftest.er1 >&5
3618 fi
3619 rm -f conftest.er1 conftest.err
3620 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3621 test $ac_status = 0; }
3622 done
3623
3624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3625 /* end confdefs.h. */
3626
3627 int
3628 main ()
3629 {
3630
3631 ;
3632 return 0;
3633 }
3634 _ACEOF
3635 ac_clean_files_save=$ac_clean_files
3636 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3637 # Try to create an executable without -o first, disregard a.out.
3638 # It will help us diagnose broken compilers, and finding out an intuition
3639 # of exeext.
3640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3641 $as_echo_n "checking whether the C compiler works... " >&6; }
3642 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3643
3644 # The possible output files:
3645 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3646
3647 ac_rmfiles=
3648 for ac_file in $ac_files
3649 do
3650 case $ac_file in
3651 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3652 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3653 esac
3654 done
3655 rm -f $ac_rmfiles
3656
3657 if { { ac_try="$ac_link_default"
3658 case "(($ac_try" in
3659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3660 *) ac_try_echo=$ac_try;;
3661 esac
3662 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3663 $as_echo "$ac_try_echo"; } >&5
3664 (eval "$ac_link_default") 2>&5
3665 ac_status=$?
3666 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3667 test $ac_status = 0; }; then :
3668 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3669 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3670 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3671 # so that the user can short-circuit this test for compilers unknown to
3672 # Autoconf.
3673 for ac_file in $ac_files ''
3674 do
3675 test -f "$ac_file" || continue
3676 case $ac_file in
3677 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3678 ;;
3679 [ab].out )
3680 # We found the default executable, but exeext='' is most
3681 # certainly right.
3682 break;;
3683 *.* )
3684 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3685 then :; else
3686 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3687 fi
3688 # We set ac_cv_exeext here because the later test for it is not
3689 # safe: cross compilers may not add the suffix if given an `-o'
3690 # argument, so we may need to know it at that point already.
3691 # Even if this section looks crufty: it has the advantage of
3692 # actually working.
3693 break;;
3694 * )
3695 break;;
3696 esac
3697 done
3698 test "$ac_cv_exeext" = no && ac_cv_exeext=
3699
3700 else
3701 ac_file=''
3702 fi
3703 if test -z "$ac_file"; then :
3704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3705 $as_echo "no" >&6; }
3706 $as_echo "$as_me: failed program was:" >&5
3707 sed 's/^/| /' conftest.$ac_ext >&5
3708
3709 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3710 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3711 as_fn_error 77 "C compiler cannot create executables
3712 See \`config.log' for more details" "$LINENO" 5; }
3713 else
3714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3715 $as_echo "yes" >&6; }
3716 fi
3717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3718 $as_echo_n "checking for C compiler default output file name... " >&6; }
3719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3720 $as_echo "$ac_file" >&6; }
3721 ac_exeext=$ac_cv_exeext
3722
3723 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3724 ac_clean_files=$ac_clean_files_save
3725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3726 $as_echo_n "checking for suffix of executables... " >&6; }
3727 if { { ac_try="$ac_link"
3728 case "(($ac_try" in
3729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3730 *) ac_try_echo=$ac_try;;
3731 esac
3732 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3733 $as_echo "$ac_try_echo"; } >&5
3734 (eval "$ac_link") 2>&5
3735 ac_status=$?
3736 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3737 test $ac_status = 0; }; then :
3738 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3739 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3740 # work properly (i.e., refer to `conftest.exe'), while it won't with
3741 # `rm'.
3742 for ac_file in conftest.exe conftest conftest.*; do
3743 test -f "$ac_file" || continue
3744 case $ac_file in
3745 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3746 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3747 break;;
3748 * ) break;;
3749 esac
3750 done
3751 else
3752 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3753 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3754 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3755 See \`config.log' for more details" "$LINENO" 5; }
3756 fi
3757 rm -f conftest conftest$ac_cv_exeext
3758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3759 $as_echo "$ac_cv_exeext" >&6; }
3760
3761 rm -f conftest.$ac_ext
3762 EXEEXT=$ac_cv_exeext
3763 ac_exeext=$EXEEXT
3764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3765 /* end confdefs.h. */
3766 #include <stdio.h>
3767 int
3768 main ()
3769 {
3770 FILE *f = fopen ("conftest.out", "w");
3771 return ferror (f) || fclose (f) != 0;
3772
3773 ;
3774 return 0;
3775 }
3776 _ACEOF
3777 ac_clean_files="$ac_clean_files conftest.out"
3778 # Check that the compiler produces executables we can run. If not, either
3779 # the compiler is broken, or we cross compile.
3780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3781 $as_echo_n "checking whether we are cross compiling... " >&6; }
3782 if test "$cross_compiling" != yes; then
3783 { { ac_try="$ac_link"
3784 case "(($ac_try" in
3785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3786 *) ac_try_echo=$ac_try;;
3787 esac
3788 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3789 $as_echo "$ac_try_echo"; } >&5
3790 (eval "$ac_link") 2>&5
3791 ac_status=$?
3792 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3793 test $ac_status = 0; }
3794 if { ac_try='./conftest$ac_cv_exeext'
3795 { { case "(($ac_try" in
3796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3797 *) ac_try_echo=$ac_try;;
3798 esac
3799 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3800 $as_echo "$ac_try_echo"; } >&5
3801 (eval "$ac_try") 2>&5
3802 ac_status=$?
3803 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3804 test $ac_status = 0; }; }; then
3805 cross_compiling=no
3806 else
3807 if test "$cross_compiling" = maybe; then
3808 cross_compiling=yes
3809 else
3810 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3811 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3812 as_fn_error $? "cannot run C compiled programs.
3813 If you meant to cross compile, use \`--host'.
3814 See \`config.log' for more details" "$LINENO" 5; }
3815 fi
3816 fi
3817 fi
3818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3819 $as_echo "$cross_compiling" >&6; }
3820
3821 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3822 ac_clean_files=$ac_clean_files_save
3823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3824 $as_echo_n "checking for suffix of object files... " >&6; }
3825 if ${ac_cv_objext+:} false; then :
3826 $as_echo_n "(cached) " >&6
3827 else
3828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3829 /* end confdefs.h. */
3830
3831 int
3832 main ()
3833 {
3834
3835 ;
3836 return 0;
3837 }
3838 _ACEOF
3839 rm -f conftest.o conftest.obj
3840 if { { ac_try="$ac_compile"
3841 case "(($ac_try" in
3842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3843 *) ac_try_echo=$ac_try;;
3844 esac
3845 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3846 $as_echo "$ac_try_echo"; } >&5
3847 (eval "$ac_compile") 2>&5
3848 ac_status=$?
3849 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3850 test $ac_status = 0; }; then :
3851 for ac_file in conftest.o conftest.obj conftest.*; do
3852 test -f "$ac_file" || continue;
3853 case $ac_file in
3854 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3855 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3856 break;;
3857 esac
3858 done
3859 else
3860 $as_echo "$as_me: failed program was:" >&5
3861 sed 's/^/| /' conftest.$ac_ext >&5
3862
3863 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3864 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3865 as_fn_error $? "cannot compute suffix of object files: cannot compile
3866 See \`config.log' for more details" "$LINENO" 5; }
3867 fi
3868 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3869 fi
3870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3871 $as_echo "$ac_cv_objext" >&6; }
3872 OBJEXT=$ac_cv_objext
3873 ac_objext=$OBJEXT
3874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3875 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3876 if ${ac_cv_c_compiler_gnu+:} false; then :
3877 $as_echo_n "(cached) " >&6
3878 else
3879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3880 /* end confdefs.h. */
3881
3882 int
3883 main ()
3884 {
3885 #ifndef __GNUC__
3886 choke me
3887 #endif
3888
3889 ;
3890 return 0;
3891 }
3892 _ACEOF
3893 if ac_fn_c_try_compile "$LINENO"; then :
3894 ac_compiler_gnu=yes
3895 else
3896 ac_compiler_gnu=no
3897 fi
3898 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3899 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3900
3901 fi
3902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3903 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3904 if test $ac_compiler_gnu = yes; then
3905 GCC=yes
3906 else
3907 GCC=
3908 fi
3909 ac_test_CFLAGS=${CFLAGS+set}
3910 ac_save_CFLAGS=$CFLAGS
3911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3912 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3913 if ${ac_cv_prog_cc_g+:} false; then :
3914 $as_echo_n "(cached) " >&6
3915 else
3916 ac_save_c_werror_flag=$ac_c_werror_flag
3917 ac_c_werror_flag=yes
3918 ac_cv_prog_cc_g=no
3919 CFLAGS="-g"
3920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3921 /* end confdefs.h. */
3922
3923 int
3924 main ()
3925 {
3926
3927 ;
3928 return 0;
3929 }
3930 _ACEOF
3931 if ac_fn_c_try_compile "$LINENO"; then :
3932 ac_cv_prog_cc_g=yes
3933 else
3934 CFLAGS=""
3935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3936 /* end confdefs.h. */
3937
3938 int
3939 main ()
3940 {
3941
3942 ;
3943 return 0;
3944 }
3945 _ACEOF
3946 if ac_fn_c_try_compile "$LINENO"; then :
3947
3948 else
3949 ac_c_werror_flag=$ac_save_c_werror_flag
3950 CFLAGS="-g"
3951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3952 /* end confdefs.h. */
3953
3954 int
3955 main ()
3956 {
3957
3958 ;
3959 return 0;
3960 }
3961 _ACEOF
3962 if ac_fn_c_try_compile "$LINENO"; then :
3963 ac_cv_prog_cc_g=yes
3964 fi
3965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3966 fi
3967 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3968 fi
3969 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3970 ac_c_werror_flag=$ac_save_c_werror_flag
3971 fi
3972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3973 $as_echo "$ac_cv_prog_cc_g" >&6; }
3974 if test "$ac_test_CFLAGS" = set; then
3975 CFLAGS=$ac_save_CFLAGS
3976 elif test $ac_cv_prog_cc_g = yes; then
3977 if test "$GCC" = yes; then
3978 CFLAGS="-g -O2"
3979 else
3980 CFLAGS="-g"
3981 fi
3982 else
3983 if test "$GCC" = yes; then
3984 CFLAGS="-O2"
3985 else
3986 CFLAGS=
3987 fi
3988 fi
3989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3990 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3991 if ${ac_cv_prog_cc_c89+:} false; then :
3992 $as_echo_n "(cached) " >&6
3993 else
3994 ac_cv_prog_cc_c89=no
3995 ac_save_CC=$CC
3996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3997 /* end confdefs.h. */
3998 #include <stdarg.h>
3999 #include <stdio.h>
4000 struct stat;
4001 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4002 struct buf { int x; };
4003 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4004 static char *e (p, i)
4005 char **p;
4006 int i;
4007 {
4008 return p[i];
4009 }
4010 static char *f (char * (*g) (char **, int), char **p, ...)
4011 {
4012 char *s;
4013 va_list v;
4014 va_start (v,p);
4015 s = g (p, va_arg (v,int));
4016 va_end (v);
4017 return s;
4018 }
4019
4020 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4021 function prototypes and stuff, but not '\xHH' hex character constants.
4022 These don't provoke an error unfortunately, instead are silently treated
4023 as 'x'. The following induces an error, until -std is added to get
4024 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4025 array size at least. It's necessary to write '\x00'==0 to get something
4026 that's true only with -std. */
4027 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4028
4029 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4030 inside strings and character constants. */
4031 #define FOO(x) 'x'
4032 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4033
4034 int test (int i, double x);
4035 struct s1 {int (*f) (int a);};
4036 struct s2 {int (*f) (double a);};
4037 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4038 int argc;
4039 char **argv;
4040 int
4041 main ()
4042 {
4043 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4044 ;
4045 return 0;
4046 }
4047 _ACEOF
4048 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4049 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4050 do
4051 CC="$ac_save_CC $ac_arg"
4052 if ac_fn_c_try_compile "$LINENO"; then :
4053 ac_cv_prog_cc_c89=$ac_arg
4054 fi
4055 rm -f core conftest.err conftest.$ac_objext
4056 test "x$ac_cv_prog_cc_c89" != "xno" && break
4057 done
4058 rm -f conftest.$ac_ext
4059 CC=$ac_save_CC
4060
4061 fi
4062 # AC_CACHE_VAL
4063 case "x$ac_cv_prog_cc_c89" in
4064 x)
4065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4066 $as_echo "none needed" >&6; } ;;
4067 xno)
4068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4069 $as_echo "unsupported" >&6; } ;;
4070 *)
4071 CC="$CC $ac_cv_prog_cc_c89"
4072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4073 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4074 esac
4075 if test "x$ac_cv_prog_cc_c89" != xno; then :
4076
4077 fi
4078
4079 ac_ext=c
4080 ac_cpp='$CPP $CPPFLAGS'
4081 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4082 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4083 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4084
4085 depcc="$CC" am_compiler_list=
4086
4087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4088 $as_echo_n "checking dependency style of $depcc... " >&6; }
4089 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4090 $as_echo_n "(cached) " >&6
4091 else
4092 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4093 # We make a subdir and do the tests there. Otherwise we can end up
4094 # making bogus files that we don't know about and never remove. For
4095 # instance it was reported that on HP-UX the gcc test will end up
4096 # making a dummy file named 'D' -- because '-MD' means "put the output
4097 # in D".
4098 rm -rf conftest.dir
4099 mkdir conftest.dir
4100 # Copy depcomp to subdir because otherwise we won't find it if we're
4101 # using a relative directory.
4102 cp "$am_depcomp" conftest.dir
4103 cd conftest.dir
4104 # We will build objects and dependencies in a subdirectory because
4105 # it helps to detect inapplicable dependency modes. For instance
4106 # both Tru64's cc and ICC support -MD to output dependencies as a
4107 # side effect of compilation, but ICC will put the dependencies in
4108 # the current directory while Tru64 will put them in the object
4109 # directory.
4110 mkdir sub
4111
4112 am_cv_CC_dependencies_compiler_type=none
4113 if test "$am_compiler_list" = ""; then
4114 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4115 fi
4116 am__universal=false
4117 case " $depcc " in #(
4118 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4119 esac
4120
4121 for depmode in $am_compiler_list; do
4122 # Setup a source with many dependencies, because some compilers
4123 # like to wrap large dependency lists on column 80 (with \), and
4124 # we should not choose a depcomp mode which is confused by this.
4125 #
4126 # We need to recreate these files for each test, as the compiler may
4127 # overwrite some of them when testing with obscure command lines.
4128 # This happens at least with the AIX C compiler.
4129 : > sub/conftest.c
4130 for i in 1 2 3 4 5 6; do
4131 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4132 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4133 # Solaris 10 /bin/sh.
4134 echo '/* dummy */' > sub/conftst$i.h
4135 done
4136 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4137
4138 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4139 # mode. It turns out that the SunPro C++ compiler does not properly
4140 # handle '-M -o', and we need to detect this. Also, some Intel
4141 # versions had trouble with output in subdirs.
4142 am__obj=sub/conftest.${OBJEXT-o}
4143 am__minus_obj="-o $am__obj"
4144 case $depmode in
4145 gcc)
4146 # This depmode causes a compiler race in universal mode.
4147 test "$am__universal" = false || continue
4148 ;;
4149 nosideeffect)
4150 # After this tag, mechanisms are not by side-effect, so they'll
4151 # only be used when explicitly requested.
4152 if test "x$enable_dependency_tracking" = xyes; then
4153 continue
4154 else
4155 break
4156 fi
4157 ;;
4158 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4159 # This compiler won't grok '-c -o', but also, the minuso test has
4160 # not run yet. These depmodes are late enough in the game, and
4161 # so weak that their functioning should not be impacted.
4162 am__obj=conftest.${OBJEXT-o}
4163 am__minus_obj=
4164 ;;
4165 none) break ;;
4166 esac
4167 if depmode=$depmode \
4168 source=sub/conftest.c object=$am__obj \
4169 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4170 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4171 >/dev/null 2>conftest.err &&
4172 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4173 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4174 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4175 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4176 # icc doesn't choke on unknown options, it will just issue warnings
4177 # or remarks (even with -Werror). So we grep stderr for any message
4178 # that says an option was ignored or not supported.
4179 # When given -MP, icc 7.0 and 7.1 complain thusly:
4180 # icc: Command line warning: ignoring option '-M'; no argument required
4181 # The diagnosis changed in icc 8.0:
4182 # icc: Command line remark: option '-MP' not supported
4183 if (grep 'ignoring option' conftest.err ||
4184 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4185 am_cv_CC_dependencies_compiler_type=$depmode
4186 break
4187 fi
4188 fi
4189 done
4190
4191 cd ..
4192 rm -rf conftest.dir
4193 else
4194 am_cv_CC_dependencies_compiler_type=none
4195 fi
4196
4197 fi
4198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4199 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4200 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4201
4202 if
4203 test "x$enable_dependency_tracking" != xno \
4204 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4205 am__fastdepCC_TRUE=
4206 am__fastdepCC_FALSE='#'
4207 else
4208 am__fastdepCC_TRUE='#'
4209 am__fastdepCC_FALSE=
4210 fi
4211
4212
4213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
4214 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4215 if ${ac_cv_prog_cc_c99+:} false; then :
4216 $as_echo_n "(cached) " >&6
4217 else
4218 ac_cv_prog_cc_c99=no
4219 ac_save_CC=$CC
4220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4221 /* end confdefs.h. */
4222 #include <stdarg.h>
4223 #include <stdbool.h>
4224 #include <stdlib.h>
4225 #include <wchar.h>
4226 #include <stdio.h>
4227
4228 // Check varargs macros. These examples are taken from C99 6.10.3.5.
4229 #define debug(...) fprintf (stderr, __VA_ARGS__)
4230 #define showlist(...) puts (#__VA_ARGS__)
4231 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4232 static void
4233 test_varargs_macros (void)
4234 {
4235 int x = 1234;
4236 int y = 5678;
4237 debug ("Flag");
4238 debug ("X = %d\n", x);
4239 showlist (The first, second, and third items.);
4240 report (x>y, "x is %d but y is %d", x, y);
4241 }
4242
4243 // Check long long types.
4244 #define BIG64 18446744073709551615ull
4245 #define BIG32 4294967295ul
4246 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4247 #if !BIG_OK
4248 your preprocessor is broken;
4249 #endif
4250 #if BIG_OK
4251 #else
4252 your preprocessor is broken;
4253 #endif
4254 static long long int bignum = -9223372036854775807LL;
4255 static unsigned long long int ubignum = BIG64;
4256
4257 struct incomplete_array
4258 {
4259 int datasize;
4260 double data[];
4261 };
4262
4263 struct named_init {
4264 int number;
4265 const wchar_t *name;
4266 double average;
4267 };
4268
4269 typedef const char *ccp;
4270
4271 static inline int
4272 test_restrict (ccp restrict text)
4273 {
4274 // See if C++-style comments work.
4275 // Iterate through items via the restricted pointer.
4276 // Also check for declarations in for loops.
4277 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4278 continue;
4279 return 0;
4280 }
4281
4282 // Check varargs and va_copy.
4283 static void
4284 test_varargs (const char *format, ...)
4285 {
4286 va_list args;
4287 va_start (args, format);
4288 va_list args_copy;
4289 va_copy (args_copy, args);
4290
4291 const char *str;
4292 int number;
4293 float fnumber;
4294
4295 while (*format)
4296 {
4297 switch (*format++)
4298 {
4299 case 's': // string
4300 str = va_arg (args_copy, const char *);
4301 break;
4302 case 'd': // int
4303 number = va_arg (args_copy, int);
4304 break;
4305 case 'f': // float
4306 fnumber = va_arg (args_copy, double);
4307 break;
4308 default:
4309 break;
4310 }
4311 }
4312 va_end (args_copy);
4313 va_end (args);
4314 }
4315
4316 int
4317 main ()
4318 {
4319
4320 // Check bool.
4321 _Bool success = false;
4322
4323 // Check restrict.
4324 if (test_restrict ("String literal") == 0)
4325 success = true;
4326 char *restrict newvar = "Another string";
4327
4328 // Check varargs.
4329 test_varargs ("s, d' f .", "string", 65, 34.234);
4330 test_varargs_macros ();
4331
4332 // Check flexible array members.
4333 struct incomplete_array *ia =
4334 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4335 ia->datasize = 10;
4336 for (int i = 0; i < ia->datasize; ++i)
4337 ia->data[i] = i * 1.234;
4338
4339 // Check named initializers.
4340 struct named_init ni = {
4341 .number = 34,
4342 .name = L"Test wide string",
4343 .average = 543.34343,
4344 };
4345
4346 ni.number = 58;
4347
4348 int dynamic_array[ni.number];
4349 dynamic_array[ni.number - 1] = 543;
4350
4351 // work around unused variable warnings
4352 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4353 || dynamic_array[ni.number - 1] != 543);
4354
4355 ;
4356 return 0;
4357 }
4358 _ACEOF
4359 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
4360 do
4361 CC="$ac_save_CC $ac_arg"
4362 if ac_fn_c_try_compile "$LINENO"; then :
4363 ac_cv_prog_cc_c99=$ac_arg
4364 fi
4365 rm -f core conftest.err conftest.$ac_objext
4366 test "x$ac_cv_prog_cc_c99" != "xno" && break
4367 done
4368 rm -f conftest.$ac_ext
4369 CC=$ac_save_CC
4370
4371 fi
4372 # AC_CACHE_VAL
4373 case "x$ac_cv_prog_cc_c99" in
4374 x)
4375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4376 $as_echo "none needed" >&6; } ;;
4377 xno)
4378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4379 $as_echo "unsupported" >&6; } ;;
4380 *)
4381 CC="$CC $ac_cv_prog_cc_c99"
4382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4383 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4384 esac
4385 if test "x$ac_cv_prog_cc_c99" != xno; then :
4386
4387 fi
4388
4389
4390 if test "$ac_cv_prog_cc_c99" = "no"; then :
4391 as_fn_error $? "no suitable C99 compiler found. Aborting." "$LINENO" 5
4392 fi
4393 for ac_prog in 'bison -y' byacc
4394 do
4395 # Extract the first word of "$ac_prog", so it can be a program name with args.
4396 set dummy $ac_prog; ac_word=$2
4397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4398 $as_echo_n "checking for $ac_word... " >&6; }
4399 if ${ac_cv_prog_YACC+:} false; then :
4400 $as_echo_n "(cached) " >&6
4401 else
4402 if test -n "$YACC"; then
4403 ac_cv_prog_YACC="$YACC" # Let the user override the test.
4404 else
4405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4406 for as_dir in $PATH
4407 do
4408 IFS=$as_save_IFS
4409 test -z "$as_dir" && as_dir=.
4410 for ac_exec_ext in '' $ac_executable_extensions; do
4411 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4412 ac_cv_prog_YACC="$ac_prog"
4413 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4414 break 2
4415 fi
4416 done
4417 done
4418 IFS=$as_save_IFS
4419
4420 fi
4421 fi
4422 YACC=$ac_cv_prog_YACC
4423 if test -n "$YACC"; then
4424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
4425 $as_echo "$YACC" >&6; }
4426 else
4427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4428 $as_echo "no" >&6; }
4429 fi
4430
4431
4432 test -n "$YACC" && break
4433 done
4434 test -n "$YACC" || YACC="yacc"
4435
4436
4437 for ac_prog in flex lex
4438 do
4439 # Extract the first word of "$ac_prog", so it can be a program name with args.
4440 set dummy $ac_prog; ac_word=$2
4441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4442 $as_echo_n "checking for $ac_word... " >&6; }
4443 if ${ac_cv_prog_LEX+:} false; then :
4444 $as_echo_n "(cached) " >&6
4445 else
4446 if test -n "$LEX"; then
4447 ac_cv_prog_LEX="$LEX" # Let the user override the test.
4448 else
4449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4450 for as_dir in $PATH
4451 do
4452 IFS=$as_save_IFS
4453 test -z "$as_dir" && as_dir=.
4454 for ac_exec_ext in '' $ac_executable_extensions; do
4455 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4456 ac_cv_prog_LEX="$ac_prog"
4457 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4458 break 2
4459 fi
4460 done
4461 done
4462 IFS=$as_save_IFS
4463
4464 fi
4465 fi
4466 LEX=$ac_cv_prog_LEX
4467 if test -n "$LEX"; then
4468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
4469 $as_echo "$LEX" >&6; }
4470 else
4471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4472 $as_echo "no" >&6; }
4473 fi
4474
4475
4476 test -n "$LEX" && break
4477 done
4478 test -n "$LEX" || LEX=":"
4479
4480 if test "x$LEX" != "x:"; then
4481 cat >conftest.l <<_ACEOF
4482 %%
4483 a { ECHO; }
4484 b { REJECT; }
4485 c { yymore (); }
4486 d { yyless (1); }
4487 e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument. */
4488 yyless ((input () != 0)); }
4489 f { unput (yytext[0]); }
4490 . { BEGIN INITIAL; }
4491 %%
4492 #ifdef YYTEXT_POINTER
4493 extern char *yytext;
4494 #endif
4495 int
4496 main (void)
4497 {
4498 return ! yylex () + ! yywrap ();
4499 }
4500 _ACEOF
4501 { { ac_try="$LEX conftest.l"
4502 case "(($ac_try" in
4503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4504 *) ac_try_echo=$ac_try;;
4505 esac
4506 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4507 $as_echo "$ac_try_echo"; } >&5
4508 (eval "$LEX conftest.l") 2>&5
4509 ac_status=$?
4510 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4511 test $ac_status = 0; }
4512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
4513 $as_echo_n "checking lex output file root... " >&6; }
4514 if ${ac_cv_prog_lex_root+:} false; then :
4515 $as_echo_n "(cached) " >&6
4516 else
4517
4518 if test -f lex.yy.c; then
4519 ac_cv_prog_lex_root=lex.yy
4520 elif test -f lexyy.c; then
4521 ac_cv_prog_lex_root=lexyy
4522 else
4523 as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5
4524 fi
4525 fi
4526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
4527 $as_echo "$ac_cv_prog_lex_root" >&6; }
4528 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
4529
4530 if test -z "${LEXLIB+set}"; then
4531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
4532 $as_echo_n "checking lex library... " >&6; }
4533 if ${ac_cv_lib_lex+:} false; then :
4534 $as_echo_n "(cached) " >&6
4535 else
4536
4537 ac_save_LIBS=$LIBS
4538 ac_cv_lib_lex='none needed'
4539 for ac_lib in '' -lfl -ll; do
4540 LIBS="$ac_lib $ac_save_LIBS"
4541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4542 /* end confdefs.h. */
4543 `cat $LEX_OUTPUT_ROOT.c`
4544 _ACEOF
4545 if ac_fn_c_try_link "$LINENO"; then :
4546 ac_cv_lib_lex=$ac_lib
4547 fi
4548 rm -f core conftest.err conftest.$ac_objext \
4549 conftest$ac_exeext conftest.$ac_ext
4550 test "$ac_cv_lib_lex" != 'none needed' && break
4551 done
4552 LIBS=$ac_save_LIBS
4553
4554 fi
4555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
4556 $as_echo "$ac_cv_lib_lex" >&6; }
4557 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
4558 fi
4559
4560
4561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
4562 $as_echo_n "checking whether yytext is a pointer... " >&6; }
4563 if ${ac_cv_prog_lex_yytext_pointer+:} false; then :
4564 $as_echo_n "(cached) " >&6
4565 else
4566 # POSIX says lex can declare yytext either as a pointer or an array; the
4567 # default is implementation-dependent. Figure out which it is, since
4568 # not all implementations provide the %pointer and %array declarations.
4569 ac_cv_prog_lex_yytext_pointer=no
4570 ac_save_LIBS=$LIBS
4571 LIBS="$LEXLIB $ac_save_LIBS"
4572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4573 /* end confdefs.h. */
4574
4575 #define YYTEXT_POINTER 1
4576 `cat $LEX_OUTPUT_ROOT.c`
4577 _ACEOF
4578 if ac_fn_c_try_link "$LINENO"; then :
4579 ac_cv_prog_lex_yytext_pointer=yes
4580 fi
4581 rm -f core conftest.err conftest.$ac_objext \
4582 conftest$ac_exeext conftest.$ac_ext
4583 LIBS=$ac_save_LIBS
4584
4585 fi
4586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
4587 $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
4588 if test $ac_cv_prog_lex_yytext_pointer = yes; then
4589
4590 $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
4591
4592 fi
4593 rm -f conftest.l $LEX_OUTPUT_ROOT.c
4594
4595 fi
4596 if test "$LEX" = :; then
4597 LEX=${am_missing_run}flex
4598 fi
4599
4600
4601 # Initializing libtool.
4602
4603
4604
4605
4606
4607
4608
4609 case `pwd` in
4610 *\ * | *\ *)
4611 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4612 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4613 esac
4614
4615
4616
4617 macro_version='2.4.2'
4618 macro_revision='1.3337'
4619
4620
4621
4622
4623
4624
4625
4626
4627
4628
4629
4630
4631
4632 ltmain="$ac_aux_dir/ltmain.sh"
4633
4634 # Make sure we can run config.sub.
4635 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4636 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4637
4638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4639 $as_echo_n "checking build system type... " >&6; }
4640 if ${ac_cv_build+:} false; then :
4641 $as_echo_n "(cached) " >&6
4642 else
4643 ac_build_alias=$build_alias
4644 test "x$ac_build_alias" = x &&
4645 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4646 test "x$ac_build_alias" = x &&
4647 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4648 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4649 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4650
4651 fi
4652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4653 $as_echo "$ac_cv_build" >&6; }
4654 case $ac_cv_build in
4655 *-*-*) ;;
4656 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4657 esac
4658 build=$ac_cv_build
4659 ac_save_IFS=$IFS; IFS='-'
4660 set x $ac_cv_build
4661 shift
4662 build_cpu=$1
4663 build_vendor=$2
4664 shift; shift
4665 # Remember, the first character of IFS is used to create $*,
4666 # except with old shells:
4667 build_os=$*
4668 IFS=$ac_save_IFS
4669 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4670
4671
4672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4673 $as_echo_n "checking host system type... " >&6; }
4674 if ${ac_cv_host+:} false; then :
4675 $as_echo_n "(cached) " >&6
4676 else
4677 if test "x$host_alias" = x; then
4678 ac_cv_host=$ac_cv_build
4679 else
4680 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4681 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4682 fi
4683
4684 fi
4685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4686 $as_echo "$ac_cv_host" >&6; }
4687 case $ac_cv_host in
4688 *-*-*) ;;
4689 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4690 esac
4691 host=$ac_cv_host
4692 ac_save_IFS=$IFS; IFS='-'
4693 set x $ac_cv_host
4694 shift
4695 host_cpu=$1
4696 host_vendor=$2
4697 shift; shift
4698 # Remember, the first character of IFS is used to create $*,
4699 # except with old shells:
4700 host_os=$*
4701 IFS=$ac_save_IFS
4702 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4703
4704
4705 # Backslashify metacharacters that are still active within
4706 # double-quoted strings.
4707 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4708
4709 # Same as above, but do not quote variable references.
4710 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4711
4712 # Sed substitution to delay expansion of an escaped shell variable in a
4713 # double_quote_subst'ed string.
4714 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4715
4716 # Sed substitution to delay expansion of an escaped single quote.
4717 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4718
4719 # Sed substitution to avoid accidental globbing in evaled expressions
4720 no_glob_subst='s/\*/\\\*/g'
4721
4722 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4723 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4724 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4725
4726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4727 $as_echo_n "checking how to print strings... " >&6; }
4728 # Test print first, because it will be a builtin if present.
4729 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4730 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4731 ECHO='print -r --'
4732 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4733 ECHO='printf %s\n'
4734 else
4735 # Use this function as a fallback that always works.
4736 func_fallback_echo ()
4737 {
4738 eval 'cat <<_LTECHO_EOF
4739 $1
4740 _LTECHO_EOF'
4741 }
4742 ECHO='func_fallback_echo'
4743 fi
4744
4745 # func_echo_all arg...
4746 # Invoke $ECHO with all args, space-separated.
4747 func_echo_all ()
4748 {
4749 $ECHO ""
4750 }
4751
4752 case "$ECHO" in
4753 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4754 $as_echo "printf" >&6; } ;;
4755 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4756 $as_echo "print -r" >&6; } ;;
4757 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4758 $as_echo "cat" >&6; } ;;
4759 esac
4760
4761
4762
4763
4764
4765
4766
4767
4768
4769
4770
4771
4772
4773
4774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4775 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4776 if ${ac_cv_path_SED+:} false; then :
4777 $as_echo_n "(cached) " >&6
4778 else
4779 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4780 for ac_i in 1 2 3 4 5 6 7; do
4781 ac_script="$ac_script$as_nl$ac_script"
4782 done
4783 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4784 { ac_script=; unset ac_script;}
4785 if test -z "$SED"; then
4786 ac_path_SED_found=false
4787 # Loop through the user's path and test for each of PROGNAME-LIST
4788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4789 for as_dir in $PATH
4790 do
4791 IFS=$as_save_IFS
4792 test -z "$as_dir" && as_dir=.
4793 for ac_prog in sed gsed; do
4794 for ac_exec_ext in '' $ac_executable_extensions; do
4795 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4796 as_fn_executable_p "$ac_path_SED" || continue
4797 # Check for GNU ac_path_SED and select it if it is found.
4798 # Check for GNU $ac_path_SED
4799 case `"$ac_path_SED" --version 2>&1` in
4800 *GNU*)
4801 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4802 *)
4803 ac_count=0
4804 $as_echo_n 0123456789 >"conftest.in"
4805 while :
4806 do
4807 cat "conftest.in" "conftest.in" >"conftest.tmp"
4808 mv "conftest.tmp" "conftest.in"
4809 cp "conftest.in" "conftest.nl"
4810 $as_echo '' >> "conftest.nl"
4811 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4812 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4813 as_fn_arith $ac_count + 1 && ac_count=$as_val
4814 if test $ac_count -gt ${ac_path_SED_max-0}; then
4815 # Best one so far, save it but keep looking for a better one
4816 ac_cv_path_SED="$ac_path_SED"
4817 ac_path_SED_max=$ac_count
4818 fi
4819 # 10*(2^10) chars as input seems more than enough
4820 test $ac_count -gt 10 && break
4821 done
4822 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4823 esac
4824
4825 $ac_path_SED_found && break 3
4826 done
4827 done
4828 done
4829 IFS=$as_save_IFS
4830 if test -z "$ac_cv_path_SED"; then
4831 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4832 fi
4833 else
4834 ac_cv_path_SED=$SED
4835 fi
4836
4837 fi
4838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4839 $as_echo "$ac_cv_path_SED" >&6; }
4840 SED="$ac_cv_path_SED"
4841 rm -f conftest.sed
4842
4843 test -z "$SED" && SED=sed
4844 Xsed="$SED -e 1s/^X//"
4845
4846
4847
4848
4849
4850
4851
4852
4853
4854
4855
4856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4857 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4858 if ${ac_cv_path_GREP+:} false; then :
4859 $as_echo_n "(cached) " >&6
4860 else
4861 if test -z "$GREP"; then
4862 ac_path_GREP_found=false
4863 # Loop through the user's path and test for each of PROGNAME-LIST
4864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4865 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4866 do
4867 IFS=$as_save_IFS
4868 test -z "$as_dir" && as_dir=.
4869 for ac_prog in grep ggrep; do
4870 for ac_exec_ext in '' $ac_executable_extensions; do
4871 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4872 as_fn_executable_p "$ac_path_GREP" || continue
4873 # Check for GNU ac_path_GREP and select it if it is found.
4874 # Check for GNU $ac_path_GREP
4875 case `"$ac_path_GREP" --version 2>&1` in
4876 *GNU*)
4877 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4878 *)
4879 ac_count=0
4880 $as_echo_n 0123456789 >"conftest.in"
4881 while :
4882 do
4883 cat "conftest.in" "conftest.in" >"conftest.tmp"
4884 mv "conftest.tmp" "conftest.in"
4885 cp "conftest.in" "conftest.nl"
4886 $as_echo 'GREP' >> "conftest.nl"
4887 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4888 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4889 as_fn_arith $ac_count + 1 && ac_count=$as_val
4890 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4891 # Best one so far, save it but keep looking for a better one
4892 ac_cv_path_GREP="$ac_path_GREP"
4893 ac_path_GREP_max=$ac_count
4894 fi
4895 # 10*(2^10) chars as input seems more than enough
4896 test $ac_count -gt 10 && break
4897 done
4898 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4899 esac
4900
4901 $ac_path_GREP_found && break 3
4902 done
4903 done
4904 done
4905 IFS=$as_save_IFS
4906 if test -z "$ac_cv_path_GREP"; then
4907 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4908 fi
4909 else
4910 ac_cv_path_GREP=$GREP
4911 fi
4912
4913 fi
4914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4915 $as_echo "$ac_cv_path_GREP" >&6; }
4916 GREP="$ac_cv_path_GREP"
4917
4918
4919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4920 $as_echo_n "checking for egrep... " >&6; }
4921 if ${ac_cv_path_EGREP+:} false; then :
4922 $as_echo_n "(cached) " >&6
4923 else
4924 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4925 then ac_cv_path_EGREP="$GREP -E"
4926 else
4927 if test -z "$EGREP"; then
4928 ac_path_EGREP_found=false
4929 # Loop through the user's path and test for each of PROGNAME-LIST
4930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4931 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4932 do
4933 IFS=$as_save_IFS
4934 test -z "$as_dir" && as_dir=.
4935 for ac_prog in egrep; do
4936 for ac_exec_ext in '' $ac_executable_extensions; do
4937 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4938 as_fn_executable_p "$ac_path_EGREP" || continue
4939 # Check for GNU ac_path_EGREP and select it if it is found.
4940 # Check for GNU $ac_path_EGREP
4941 case `"$ac_path_EGREP" --version 2>&1` in
4942 *GNU*)
4943 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4944 *)
4945 ac_count=0
4946 $as_echo_n 0123456789 >"conftest.in"
4947 while :
4948 do
4949 cat "conftest.in" "conftest.in" >"conftest.tmp"
4950 mv "conftest.tmp" "conftest.in"
4951 cp "conftest.in" "conftest.nl"
4952 $as_echo 'EGREP' >> "conftest.nl"
4953 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4954 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4955 as_fn_arith $ac_count + 1 && ac_count=$as_val
4956 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4957 # Best one so far, save it but keep looking for a better one
4958 ac_cv_path_EGREP="$ac_path_EGREP"
4959 ac_path_EGREP_max=$ac_count
4960 fi
4961 # 10*(2^10) chars as input seems more than enough
4962 test $ac_count -gt 10 && break
4963 done
4964 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4965 esac
4966
4967 $ac_path_EGREP_found && break 3
4968 done
4969 done
4970 done
4971 IFS=$as_save_IFS
4972 if test -z "$ac_cv_path_EGREP"; then
4973 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4974 fi
4975 else
4976 ac_cv_path_EGREP=$EGREP
4977 fi
4978
4979 fi
4980 fi
4981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4982 $as_echo "$ac_cv_path_EGREP" >&6; }
4983 EGREP="$ac_cv_path_EGREP"
4984
4985
4986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4987 $as_echo_n "checking for fgrep... " >&6; }
4988 if ${ac_cv_path_FGREP+:} false; then :
4989 $as_echo_n "(cached) " >&6
4990 else
4991 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4992 then ac_cv_path_FGREP="$GREP -F"
4993 else
4994 if test -z "$FGREP"; then
4995 ac_path_FGREP_found=false
4996 # Loop through the user's path and test for each of PROGNAME-LIST
4997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4998 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4999 do
5000 IFS=$as_save_IFS
5001 test -z "$as_dir" && as_dir=.
5002 for ac_prog in fgrep; do
5003 for ac_exec_ext in '' $ac_executable_extensions; do
5004 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5005 as_fn_executable_p "$ac_path_FGREP" || continue
5006 # Check for GNU ac_path_FGREP and select it if it is found.
5007 # Check for GNU $ac_path_FGREP
5008 case `"$ac_path_FGREP" --version 2>&1` in
5009 *GNU*)
5010 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5011 *)
5012 ac_count=0
5013 $as_echo_n 0123456789 >"conftest.in"
5014 while :
5015 do
5016 cat "conftest.in" "conftest.in" >"conftest.tmp"
5017 mv "conftest.tmp" "conftest.in"
5018 cp "conftest.in" "conftest.nl"
5019 $as_echo 'FGREP' >> "conftest.nl"
5020 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5021 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5022 as_fn_arith $ac_count + 1 && ac_count=$as_val
5023 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5024 # Best one so far, save it but keep looking for a better one
5025 ac_cv_path_FGREP="$ac_path_FGREP"
5026 ac_path_FGREP_max=$ac_count
5027 fi
5028 # 10*(2^10) chars as input seems more than enough
5029 test $ac_count -gt 10 && break
5030 done
5031 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5032 esac
5033
5034 $ac_path_FGREP_found && break 3
5035 done
5036 done
5037 done
5038 IFS=$as_save_IFS
5039 if test -z "$ac_cv_path_FGREP"; then
5040 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5041 fi
5042 else
5043 ac_cv_path_FGREP=$FGREP
5044 fi
5045
5046 fi
5047 fi
5048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5049 $as_echo "$ac_cv_path_FGREP" >&6; }
5050 FGREP="$ac_cv_path_FGREP"
5051
5052
5053 test -z "$GREP" && GREP=grep
5054
5055
5056
5057
5058
5059
5060
5061
5062
5063
5064
5065
5066
5067
5068
5069
5070
5071
5072
5073 # Check whether --with-gnu-ld was given.
5074 if test "${with_gnu_ld+set}" = set; then :
5075 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5076 else
5077 with_gnu_ld=no
5078 fi
5079
5080 ac_prog=ld
5081 if test "$GCC" = yes; then
5082 # Check if gcc -print-prog-name=ld gives a path.
5083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5084 $as_echo_n "checking for ld used by $CC... " >&6; }
5085 case $host in
5086 *-*-mingw*)
5087 # gcc leaves a trailing carriage return which upsets mingw
5088 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5089 *)
5090 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5091 esac
5092 case $ac_prog in
5093 # Accept absolute paths.
5094 [\\/]* | ?:[\\/]*)
5095 re_direlt='/[^/][^/]*/\.\./'
5096 # Canonicalize the pathname of ld
5097 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5098 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5099 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5100 done
5101 test -z "$LD" && LD="$ac_prog"
5102 ;;
5103 "")
5104 # If it fails, then pretend we aren't using GCC.
5105 ac_prog=ld
5106 ;;
5107 *)
5108 # If it is relative, then search for the first ld in PATH.
5109 with_gnu_ld=unknown
5110 ;;
5111 esac
5112 elif test "$with_gnu_ld" = yes; then
5113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5114 $as_echo_n "checking for GNU ld... " >&6; }
5115 else
5116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5117 $as_echo_n "checking for non-GNU ld... " >&6; }
5118 fi
5119 if ${lt_cv_path_LD+:} false; then :
5120 $as_echo_n "(cached) " >&6
5121 else
5122 if test -z "$LD"; then
5123 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5124 for ac_dir in $PATH; do
5125 IFS="$lt_save_ifs"
5126 test -z "$ac_dir" && ac_dir=.
5127 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5128 lt_cv_path_LD="$ac_dir/$ac_prog"
5129 # Check to see if the program is GNU ld. I'd rather use --version,
5130 # but apparently some variants of GNU ld only accept -v.
5131 # Break only if it was the GNU/non-GNU ld that we prefer.
5132 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5133 *GNU* | *'with BFD'*)
5134 test "$with_gnu_ld" != no && break
5135 ;;
5136 *)
5137 test "$with_gnu_ld" != yes && break
5138 ;;
5139 esac
5140 fi
5141 done
5142 IFS="$lt_save_ifs"
5143 else
5144 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5145 fi
5146 fi
5147
5148 LD="$lt_cv_path_LD"
5149 if test -n "$LD"; then
5150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5151 $as_echo "$LD" >&6; }
5152 else
5153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5154 $as_echo "no" >&6; }
5155 fi
5156 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5158 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5159 if ${lt_cv_prog_gnu_ld+:} false; then :
5160 $as_echo_n "(cached) " >&6
5161 else
5162 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5163 case `$LD -v 2>&1 </dev/null` in
5164 *GNU* | *'with BFD'*)
5165 lt_cv_prog_gnu_ld=yes
5166 ;;
5167 *)
5168 lt_cv_prog_gnu_ld=no
5169 ;;
5170 esac
5171 fi
5172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5173 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5174 with_gnu_ld=$lt_cv_prog_gnu_ld
5175
5176
5177
5178
5179
5180
5181
5182
5183
5184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5185 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5186 if ${lt_cv_path_NM+:} false; then :
5187 $as_echo_n "(cached) " >&6
5188 else
5189 if test -n "$NM"; then
5190 # Let the user override the test.
5191 lt_cv_path_NM="$NM"
5192 else
5193 lt_nm_to_check="${ac_tool_prefix}nm"
5194 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5195 lt_nm_to_check="$lt_nm_to_check nm"
5196 fi
5197 for lt_tmp_nm in $lt_nm_to_check; do
5198 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5199 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5200 IFS="$lt_save_ifs"
5201 test -z "$ac_dir" && ac_dir=.
5202 tmp_nm="$ac_dir/$lt_tmp_nm"
5203 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5204 # Check to see if the nm accepts a BSD-compat flag.
5205 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5206 # nm: unknown option "B" ignored
5207 # Tru64's nm complains that /dev/null is an invalid object file
5208 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5209 */dev/null* | *'Invalid file or object type'*)
5210 lt_cv_path_NM="$tmp_nm -B"
5211 break
5212 ;;
5213 *)
5214 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5215 */dev/null*)
5216 lt_cv_path_NM="$tmp_nm -p"
5217 break
5218 ;;
5219 *)
5220 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5221 continue # so that we can try to find one that supports BSD flags
5222 ;;
5223 esac
5224 ;;
5225 esac
5226 fi
5227 done
5228 IFS="$lt_save_ifs"
5229 done
5230 : ${lt_cv_path_NM=no}
5231 fi
5232 fi
5233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5234 $as_echo "$lt_cv_path_NM" >&6; }
5235 if test "$lt_cv_path_NM" != "no"; then
5236 NM="$lt_cv_path_NM"
5237 else
5238 # Didn't find any BSD compatible name lister, look for dumpbin.
5239 if test -n "$DUMPBIN"; then :
5240 # Let the user override the test.
5241 else
5242 if test -n "$ac_tool_prefix"; then
5243 for ac_prog in dumpbin "link -dump"
5244 do
5245 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5246 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5248 $as_echo_n "checking for $ac_word... " >&6; }
5249 if ${ac_cv_prog_DUMPBIN+:} false; then :
5250 $as_echo_n "(cached) " >&6
5251 else
5252 if test -n "$DUMPBIN"; then
5253 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5254 else
5255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5256 for as_dir in $PATH
5257 do
5258 IFS=$as_save_IFS
5259 test -z "$as_dir" && as_dir=.
5260 for ac_exec_ext in '' $ac_executable_extensions; do
5261 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5262 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5263 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5264 break 2
5265 fi
5266 done
5267 done
5268 IFS=$as_save_IFS
5269
5270 fi
5271 fi
5272 DUMPBIN=$ac_cv_prog_DUMPBIN
5273 if test -n "$DUMPBIN"; then
5274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5275 $as_echo "$DUMPBIN" >&6; }
5276 else
5277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5278 $as_echo "no" >&6; }
5279 fi
5280
5281
5282 test -n "$DUMPBIN" && break
5283 done
5284 fi
5285 if test -z "$DUMPBIN"; then
5286 ac_ct_DUMPBIN=$DUMPBIN
5287 for ac_prog in dumpbin "link -dump"
5288 do
5289 # Extract the first word of "$ac_prog", so it can be a program name with args.
5290 set dummy $ac_prog; ac_word=$2
5291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5292 $as_echo_n "checking for $ac_word... " >&6; }
5293 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5294 $as_echo_n "(cached) " >&6
5295 else
5296 if test -n "$ac_ct_DUMPBIN"; then
5297 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5298 else
5299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5300 for as_dir in $PATH
5301 do
5302 IFS=$as_save_IFS
5303 test -z "$as_dir" && as_dir=.
5304 for ac_exec_ext in '' $ac_executable_extensions; do
5305 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5306 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5307 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5308 break 2
5309 fi
5310 done
5311 done
5312 IFS=$as_save_IFS
5313
5314 fi
5315 fi
5316 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5317 if test -n "$ac_ct_DUMPBIN"; then
5318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5319 $as_echo "$ac_ct_DUMPBIN" >&6; }
5320 else
5321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5322 $as_echo "no" >&6; }
5323 fi
5324
5325
5326 test -n "$ac_ct_DUMPBIN" && break
5327 done
5328
5329 if test "x$ac_ct_DUMPBIN" = x; then
5330 DUMPBIN=":"
5331 else
5332 case $cross_compiling:$ac_tool_warned in
5333 yes:)
5334 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5335 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5336 ac_tool_warned=yes ;;
5337 esac
5338 DUMPBIN=$ac_ct_DUMPBIN
5339 fi
5340 fi
5341
5342 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5343 *COFF*)
5344 DUMPBIN="$DUMPBIN -symbols"
5345 ;;
5346 *)
5347 DUMPBIN=:
5348 ;;
5349 esac
5350 fi
5351
5352 if test "$DUMPBIN" != ":"; then
5353 NM="$DUMPBIN"
5354 fi
5355 fi
5356 test -z "$NM" && NM=nm
5357
5358
5359
5360
5361
5362
5363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5364 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5365 if ${lt_cv_nm_interface+:} false; then :
5366 $as_echo_n "(cached) " >&6
5367 else
5368 lt_cv_nm_interface="BSD nm"
5369 echo "int some_variable = 0;" > conftest.$ac_ext
5370 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5371 (eval "$ac_compile" 2>conftest.err)
5372 cat conftest.err >&5
5373 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5374 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5375 cat conftest.err >&5
5376 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5377 cat conftest.out >&5
5378 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5379 lt_cv_nm_interface="MS dumpbin"
5380 fi
5381 rm -f conftest*
5382 fi
5383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5384 $as_echo "$lt_cv_nm_interface" >&6; }
5385
5386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5387 $as_echo_n "checking whether ln -s works... " >&6; }
5388 LN_S=$as_ln_s
5389 if test "$LN_S" = "ln -s"; then
5390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5391 $as_echo "yes" >&6; }
5392 else
5393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5394 $as_echo "no, using $LN_S" >&6; }
5395 fi
5396
5397 # find the maximum length of command line arguments
5398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5399 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5400 if ${lt_cv_sys_max_cmd_len+:} false; then :
5401 $as_echo_n "(cached) " >&6
5402 else
5403 i=0
5404 teststring="ABCD"
5405
5406 case $build_os in
5407 msdosdjgpp*)
5408 # On DJGPP, this test can blow up pretty badly due to problems in libc
5409 # (any single argument exceeding 2000 bytes causes a buffer overrun
5410 # during glob expansion). Even if it were fixed, the result of this
5411 # check would be larger than it should be.
5412 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5413 ;;
5414
5415 gnu*)
5416 # Under GNU Hurd, this test is not required because there is
5417 # no limit to the length of command line arguments.
5418 # Libtool will interpret -1 as no limit whatsoever
5419 lt_cv_sys_max_cmd_len=-1;
5420 ;;
5421
5422 cygwin* | mingw* | cegcc*)
5423 # On Win9x/ME, this test blows up -- it succeeds, but takes
5424 # about 5 minutes as the teststring grows exponentially.
5425 # Worse, since 9x/ME are not pre-emptively multitasking,
5426 # you end up with a "frozen" computer, even though with patience
5427 # the test eventually succeeds (with a max line length of 256k).
5428 # Instead, let's just punt: use the minimum linelength reported by
5429 # all of the supported platforms: 8192 (on NT/2K/XP).
5430 lt_cv_sys_max_cmd_len=8192;
5431 ;;
5432
5433 mint*)
5434 # On MiNT this can take a long time and run out of memory.
5435 lt_cv_sys_max_cmd_len=8192;
5436 ;;
5437
5438 amigaos*)
5439 # On AmigaOS with pdksh, this test takes hours, literally.
5440 # So we just punt and use a minimum line length of 8192.
5441 lt_cv_sys_max_cmd_len=8192;
5442 ;;
5443
5444 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5445 # This has been around since 386BSD, at least. Likely further.
5446 if test -x /sbin/sysctl; then
5447 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5448 elif test -x /usr/sbin/sysctl; then
5449 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5450 else
5451 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5452 fi
5453 # And add a safety zone
5454 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5455 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5456 ;;
5457
5458 interix*)
5459 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5460 lt_cv_sys_max_cmd_len=196608
5461 ;;
5462
5463 os2*)
5464 # The test takes a long time on OS/2.
5465 lt_cv_sys_max_cmd_len=8192
5466 ;;
5467
5468 osf*)
5469 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5470 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5471 # nice to cause kernel panics so lets avoid the loop below.
5472 # First set a reasonable default.
5473 lt_cv_sys_max_cmd_len=16384
5474 #
5475 if test -x /sbin/sysconfig; then
5476 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5477 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5478 esac
5479 fi
5480 ;;
5481 sco3.2v5*)
5482 lt_cv_sys_max_cmd_len=102400
5483 ;;
5484 sysv5* | sco5v6* | sysv4.2uw2*)
5485 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5486 if test -n "$kargmax"; then
5487 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5488 else
5489 lt_cv_sys_max_cmd_len=32768
5490 fi
5491 ;;
5492 *)
5493 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5494 if test -n "$lt_cv_sys_max_cmd_len"; then
5495 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5496 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5497 else
5498 # Make teststring a little bigger before we do anything with it.
5499 # a 1K string should be a reasonable start.
5500 for i in 1 2 3 4 5 6 7 8 ; do
5501 teststring=$teststring$teststring
5502 done
5503 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5504 # If test is not a shell built-in, we'll probably end up computing a
5505 # maximum length that is only half of the actual maximum length, but
5506 # we can't tell.
5507 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5508 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5509 test $i != 17 # 1/2 MB should be enough
5510 do
5511 i=`expr $i + 1`
5512 teststring=$teststring$teststring
5513 done
5514 # Only check the string length outside the loop.
5515 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5516 teststring=
5517 # Add a significant safety factor because C++ compilers can tack on
5518 # massive amounts of additional arguments before passing them to the
5519 # linker. It appears as though 1/2 is a usable value.
5520 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5521 fi
5522 ;;
5523 esac
5524
5525 fi
5526
5527 if test -n $lt_cv_sys_max_cmd_len ; then
5528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5529 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5530 else
5531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5532 $as_echo "none" >&6; }
5533 fi
5534 max_cmd_len=$lt_cv_sys_max_cmd_len
5535
5536
5537
5538
5539
5540
5541 : ${CP="cp -f"}
5542 : ${MV="mv -f"}
5543 : ${RM="rm -f"}
5544
5545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5546 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5547 # Try some XSI features
5548 xsi_shell=no
5549 ( _lt_dummy="a/b/c"
5550 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5551 = c,a/b,b/c, \
5552 && eval 'test $(( 1 + 1 )) -eq 2 \
5553 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5554 && xsi_shell=yes
5555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5556 $as_echo "$xsi_shell" >&6; }
5557
5558
5559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5560 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5561 lt_shell_append=no
5562 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5563 >/dev/null 2>&1 \
5564 && lt_shell_append=yes
5565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5566 $as_echo "$lt_shell_append" >&6; }
5567
5568
5569 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5570 lt_unset=unset
5571 else
5572 lt_unset=false
5573 fi
5574
5575
5576
5577
5578
5579 # test EBCDIC or ASCII
5580 case `echo X|tr X '\101'` in
5581 A) # ASCII based system
5582 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5583 lt_SP2NL='tr \040 \012'
5584 lt_NL2SP='tr \015\012 \040\040'
5585 ;;
5586 *) # EBCDIC based system
5587 lt_SP2NL='tr \100 \n'
5588 lt_NL2SP='tr \r\n \100\100'
5589 ;;
5590 esac
5591
5592
5593
5594
5595
5596
5597
5598
5599
5600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5601 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5602 if ${lt_cv_to_host_file_cmd+:} false; then :
5603 $as_echo_n "(cached) " >&6
5604 else
5605 case $host in
5606 *-*-mingw* )
5607 case $build in
5608 *-*-mingw* ) # actually msys
5609 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5610 ;;
5611 *-*-cygwin* )
5612 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5613 ;;
5614 * ) # otherwise, assume *nix
5615 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5616 ;;
5617 esac
5618 ;;
5619 *-*-cygwin* )
5620 case $build in
5621 *-*-mingw* ) # actually msys
5622 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5623 ;;
5624 *-*-cygwin* )
5625 lt_cv_to_host_file_cmd=func_convert_file_noop
5626 ;;
5627 * ) # otherwise, assume *nix
5628 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5629 ;;
5630 esac
5631 ;;
5632 * ) # unhandled hosts (and "normal" native builds)
5633 lt_cv_to_host_file_cmd=func_convert_file_noop
5634 ;;
5635 esac
5636
5637 fi
5638
5639 to_host_file_cmd=$lt_cv_to_host_file_cmd
5640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5641 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5642
5643
5644
5645
5646
5647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5648 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5649 if ${lt_cv_to_tool_file_cmd+:} false; then :
5650 $as_echo_n "(cached) " >&6
5651 else
5652 #assume ordinary cross tools, or native build.
5653 lt_cv_to_tool_file_cmd=func_convert_file_noop
5654 case $host in
5655 *-*-mingw* )
5656 case $build in
5657 *-*-mingw* ) # actually msys
5658 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5659 ;;
5660 esac
5661 ;;
5662 esac
5663
5664 fi
5665
5666 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5668 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5669
5670
5671
5672
5673
5674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5675 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5676 if ${lt_cv_ld_reload_flag+:} false; then :
5677 $as_echo_n "(cached) " >&6
5678 else
5679 lt_cv_ld_reload_flag='-r'
5680 fi
5681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5682 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5683 reload_flag=$lt_cv_ld_reload_flag
5684 case $reload_flag in
5685 "" | " "*) ;;
5686 *) reload_flag=" $reload_flag" ;;
5687 esac
5688 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5689 case $host_os in
5690 cygwin* | mingw* | pw32* | cegcc*)
5691 if test "$GCC" != yes; then
5692 reload_cmds=false
5693 fi
5694 ;;
5695 darwin*)
5696 if test "$GCC" = yes; then
5697 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5698 else
5699 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5700 fi
5701 ;;
5702 esac
5703
5704
5705
5706
5707
5708
5709
5710
5711
5712 if test -n "$ac_tool_prefix"; then
5713 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5714 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5716 $as_echo_n "checking for $ac_word... " >&6; }
5717 if ${ac_cv_prog_OBJDUMP+:} false; then :
5718 $as_echo_n "(cached) " >&6
5719 else
5720 if test -n "$OBJDUMP"; then
5721 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5722 else
5723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5724 for as_dir in $PATH
5725 do
5726 IFS=$as_save_IFS
5727 test -z "$as_dir" && as_dir=.
5728 for ac_exec_ext in '' $ac_executable_extensions; do
5729 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5730 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5731 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5732 break 2
5733 fi
5734 done
5735 done
5736 IFS=$as_save_IFS
5737
5738 fi
5739 fi
5740 OBJDUMP=$ac_cv_prog_OBJDUMP
5741 if test -n "$OBJDUMP"; then
5742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5743 $as_echo "$OBJDUMP" >&6; }
5744 else
5745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5746 $as_echo "no" >&6; }
5747 fi
5748
5749
5750 fi
5751 if test -z "$ac_cv_prog_OBJDUMP"; then
5752 ac_ct_OBJDUMP=$OBJDUMP
5753 # Extract the first word of "objdump", so it can be a program name with args.
5754 set dummy objdump; ac_word=$2
5755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5756 $as_echo_n "checking for $ac_word... " >&6; }
5757 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5758 $as_echo_n "(cached) " >&6
5759 else
5760 if test -n "$ac_ct_OBJDUMP"; then
5761 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5762 else
5763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5764 for as_dir in $PATH
5765 do
5766 IFS=$as_save_IFS
5767 test -z "$as_dir" && as_dir=.
5768 for ac_exec_ext in '' $ac_executable_extensions; do
5769 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5770 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5771 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5772 break 2
5773 fi
5774 done
5775 done
5776 IFS=$as_save_IFS
5777
5778 fi
5779 fi
5780 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5781 if test -n "$ac_ct_OBJDUMP"; then
5782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5783 $as_echo "$ac_ct_OBJDUMP" >&6; }
5784 else
5785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5786 $as_echo "no" >&6; }
5787 fi
5788
5789 if test "x$ac_ct_OBJDUMP" = x; then
5790 OBJDUMP="false"
5791 else
5792 case $cross_compiling:$ac_tool_warned in
5793 yes:)
5794 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5795 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5796 ac_tool_warned=yes ;;
5797 esac
5798 OBJDUMP=$ac_ct_OBJDUMP
5799 fi
5800 else
5801 OBJDUMP="$ac_cv_prog_OBJDUMP"
5802 fi
5803
5804 test -z "$OBJDUMP" && OBJDUMP=objdump
5805
5806
5807
5808
5809
5810
5811
5812
5813
5814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5815 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5816 if ${lt_cv_deplibs_check_method+:} false; then :
5817 $as_echo_n "(cached) " >&6
5818 else
5819 lt_cv_file_magic_cmd='$MAGIC_CMD'
5820 lt_cv_file_magic_test_file=
5821 lt_cv_deplibs_check_method='unknown'
5822 # Need to set the preceding variable on all platforms that support
5823 # interlibrary dependencies.
5824 # 'none' -- dependencies not supported.
5825 # `unknown' -- same as none, but documents that we really don't know.
5826 # 'pass_all' -- all dependencies passed with no checks.
5827 # 'test_compile' -- check by making test program.
5828 # 'file_magic [[regex]]' -- check by looking for files in library path
5829 # which responds to the $file_magic_cmd with a given extended regex.
5830 # If you have `file' or equivalent on your system and you're not sure
5831 # whether `pass_all' will *always* work, you probably want this one.
5832
5833 case $host_os in
5834 aix[4-9]*)
5835 lt_cv_deplibs_check_method=pass_all
5836 ;;
5837
5838 beos*)
5839 lt_cv_deplibs_check_method=pass_all
5840 ;;
5841
5842 bsdi[45]*)
5843 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5844 lt_cv_file_magic_cmd='/usr/bin/file -L'
5845 lt_cv_file_magic_test_file=/shlib/libc.so
5846 ;;
5847
5848 cygwin*)
5849 # func_win32_libid is a shell function defined in ltmain.sh
5850 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5851 lt_cv_file_magic_cmd='func_win32_libid'
5852 ;;
5853
5854 mingw* | pw32*)
5855 # Base MSYS/MinGW do not provide the 'file' command needed by
5856 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5857 # unless we find 'file', for example because we are cross-compiling.
5858 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5859 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5860 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5861 lt_cv_file_magic_cmd='func_win32_libid'
5862 else
5863 # Keep this pattern in sync with the one in func_win32_libid.
5864 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5865 lt_cv_file_magic_cmd='$OBJDUMP -f'
5866 fi
5867 ;;
5868
5869 cegcc*)
5870 # use the weaker test based on 'objdump'. See mingw*.
5871 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5872 lt_cv_file_magic_cmd='$OBJDUMP -f'
5873 ;;
5874
5875 darwin* | rhapsody*)
5876 lt_cv_deplibs_check_method=pass_all
5877 ;;
5878
5879 freebsd* | dragonfly*)
5880 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5881 case $host_cpu in
5882 i*86 )
5883 # Not sure whether the presence of OpenBSD here was a mistake.
5884 # Let's accept both of them until this is cleared up.
5885 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5886 lt_cv_file_magic_cmd=/usr/bin/file
5887 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5888 ;;
5889 esac
5890 else
5891 lt_cv_deplibs_check_method=pass_all
5892 fi
5893 ;;
5894
5895 gnu*)
5896 lt_cv_deplibs_check_method=pass_all
5897 ;;
5898
5899 haiku*)
5900 lt_cv_deplibs_check_method=pass_all
5901 ;;
5902
5903 hpux10.20* | hpux11*)
5904 lt_cv_file_magic_cmd=/usr/bin/file
5905 case $host_cpu in
5906 ia64*)
5907 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5908 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5909 ;;
5910 hppa*64*)
5911 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]'
5912 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5913 ;;
5914 *)
5915 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5916 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5917 ;;
5918 esac
5919 ;;
5920
5921 interix[3-9]*)
5922 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5923 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5924 ;;
5925
5926 irix5* | irix6* | nonstopux*)
5927 case $LD in
5928 *-32|*"-32 ") libmagic=32-bit;;
5929 *-n32|*"-n32 ") libmagic=N32;;
5930 *-64|*"-64 ") libmagic=64-bit;;
5931 *) libmagic=never-match;;
5932 esac
5933 lt_cv_deplibs_check_method=pass_all
5934 ;;
5935
5936 # This must be glibc/ELF.
5937 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5938 lt_cv_deplibs_check_method=pass_all
5939 ;;
5940
5941 netbsd*)
5942 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5943 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5944 else
5945 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5946 fi
5947 ;;
5948
5949 newos6*)
5950 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5951 lt_cv_file_magic_cmd=/usr/bin/file
5952 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5953 ;;
5954
5955 *nto* | *qnx*)
5956 lt_cv_deplibs_check_method=pass_all
5957 ;;
5958
5959 openbsd*)
5960 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5961 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5962 else
5963 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5964 fi
5965 ;;
5966
5967 osf3* | osf4* | osf5*)
5968 lt_cv_deplibs_check_method=pass_all
5969 ;;
5970
5971 rdos*)
5972 lt_cv_deplibs_check_method=pass_all
5973 ;;
5974
5975 solaris*)
5976 lt_cv_deplibs_check_method=pass_all
5977 ;;
5978
5979 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5980 lt_cv_deplibs_check_method=pass_all
5981 ;;
5982
5983 sysv4 | sysv4.3*)
5984 case $host_vendor in
5985 motorola)
5986 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]'
5987 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5988 ;;
5989 ncr)
5990 lt_cv_deplibs_check_method=pass_all
5991 ;;
5992 sequent)
5993 lt_cv_file_magic_cmd='/bin/file'
5994 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5995 ;;
5996 sni)
5997 lt_cv_file_magic_cmd='/bin/file'
5998 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5999 lt_cv_file_magic_test_file=/lib/libc.so
6000 ;;
6001 siemens)
6002 lt_cv_deplibs_check_method=pass_all
6003 ;;
6004 pc)
6005 lt_cv_deplibs_check_method=pass_all
6006 ;;
6007 esac
6008 ;;
6009
6010 tpf*)
6011 lt_cv_deplibs_check_method=pass_all
6012 ;;
6013 esac
6014
6015 fi
6016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6017 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6018
6019 file_magic_glob=
6020 want_nocaseglob=no
6021 if test "$build" = "$host"; then
6022 case $host_os in
6023 mingw* | pw32*)
6024 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6025 want_nocaseglob=yes
6026 else
6027 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6028 fi
6029 ;;
6030 esac
6031 fi
6032
6033 file_magic_cmd=$lt_cv_file_magic_cmd
6034 deplibs_check_method=$lt_cv_deplibs_check_method
6035 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6036
6037
6038
6039
6040
6041
6042
6043
6044
6045
6046
6047
6048
6049
6050
6051
6052
6053
6054
6055
6056
6057
6058 if test -n "$ac_tool_prefix"; then
6059 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6060 set dummy ${ac_tool_prefix}dlltool; 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_DLLTOOL+:} false; then :
6064 $as_echo_n "(cached) " >&6
6065 else
6066 if test -n "$DLLTOOL"; then
6067 ac_cv_prog_DLLTOOL="$DLLTOOL" # 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_DLLTOOL="${ac_tool_prefix}dlltool"
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 DLLTOOL=$ac_cv_prog_DLLTOOL
6087 if test -n "$DLLTOOL"; then
6088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6089 $as_echo "$DLLTOOL" >&6; }
6090 else
6091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6092 $as_echo "no" >&6; }
6093 fi
6094
6095
6096 fi
6097 if test -z "$ac_cv_prog_DLLTOOL"; then
6098 ac_ct_DLLTOOL=$DLLTOOL
6099 # Extract the first word of "dlltool", so it can be a program name with args.
6100 set dummy dlltool; ac_word=$2
6101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6102 $as_echo_n "checking for $ac_word... " >&6; }
6103 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6104 $as_echo_n "(cached) " >&6
6105 else
6106 if test -n "$ac_ct_DLLTOOL"; then
6107 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6108 else
6109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6110 for as_dir in $PATH
6111 do
6112 IFS=$as_save_IFS
6113 test -z "$as_dir" && as_dir=.
6114 for ac_exec_ext in '' $ac_executable_extensions; do
6115 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6116 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6117 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6118 break 2
6119 fi
6120 done
6121 done
6122 IFS=$as_save_IFS
6123
6124 fi
6125 fi
6126 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6127 if test -n "$ac_ct_DLLTOOL"; then
6128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6129 $as_echo "$ac_ct_DLLTOOL" >&6; }
6130 else
6131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6132 $as_echo "no" >&6; }
6133 fi
6134
6135 if test "x$ac_ct_DLLTOOL" = x; then
6136 DLLTOOL="false"
6137 else
6138 case $cross_compiling:$ac_tool_warned in
6139 yes:)
6140 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6141 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6142 ac_tool_warned=yes ;;
6143 esac
6144 DLLTOOL=$ac_ct_DLLTOOL
6145 fi
6146 else
6147 DLLTOOL="$ac_cv_prog_DLLTOOL"
6148 fi
6149
6150 test -z "$DLLTOOL" && DLLTOOL=dlltool
6151
6152
6153
6154
6155
6156
6157
6158
6159
6160
6161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6162 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6163 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6164 $as_echo_n "(cached) " >&6
6165 else
6166 lt_cv_sharedlib_from_linklib_cmd='unknown'
6167
6168 case $host_os in
6169 cygwin* | mingw* | pw32* | cegcc*)
6170 # two different shell functions defined in ltmain.sh
6171 # decide which to use based on capabilities of $DLLTOOL
6172 case `$DLLTOOL --help 2>&1` in
6173 *--identify-strict*)
6174 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6175 ;;
6176 *)
6177 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6178 ;;
6179 esac
6180 ;;
6181 *)
6182 # fallback: assume linklib IS sharedlib
6183 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6184 ;;
6185 esac
6186
6187 fi
6188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6189 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6190 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6191 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6192
6193
6194
6195
6196
6197
6198
6199 if test -n "$ac_tool_prefix"; then
6200 for ac_prog in ar
6201 do
6202 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6203 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6205 $as_echo_n "checking for $ac_word... " >&6; }
6206 if ${ac_cv_prog_AR+:} false; then :
6207 $as_echo_n "(cached) " >&6
6208 else
6209 if test -n "$AR"; then
6210 ac_cv_prog_AR="$AR" # Let the user override the test.
6211 else
6212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6213 for as_dir in $PATH
6214 do
6215 IFS=$as_save_IFS
6216 test -z "$as_dir" && as_dir=.
6217 for ac_exec_ext in '' $ac_executable_extensions; do
6218 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6219 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6220 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6221 break 2
6222 fi
6223 done
6224 done
6225 IFS=$as_save_IFS
6226
6227 fi
6228 fi
6229 AR=$ac_cv_prog_AR
6230 if test -n "$AR"; then
6231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6232 $as_echo "$AR" >&6; }
6233 else
6234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6235 $as_echo "no" >&6; }
6236 fi
6237
6238
6239 test -n "$AR" && break
6240 done
6241 fi
6242 if test -z "$AR"; then
6243 ac_ct_AR=$AR
6244 for ac_prog in ar
6245 do
6246 # Extract the first word of "$ac_prog", so it can be a program name with args.
6247 set dummy $ac_prog; ac_word=$2
6248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6249 $as_echo_n "checking for $ac_word... " >&6; }
6250 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6251 $as_echo_n "(cached) " >&6
6252 else
6253 if test -n "$ac_ct_AR"; then
6254 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6255 else
6256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6257 for as_dir in $PATH
6258 do
6259 IFS=$as_save_IFS
6260 test -z "$as_dir" && as_dir=.
6261 for ac_exec_ext in '' $ac_executable_extensions; do
6262 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6263 ac_cv_prog_ac_ct_AR="$ac_prog"
6264 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6265 break 2
6266 fi
6267 done
6268 done
6269 IFS=$as_save_IFS
6270
6271 fi
6272 fi
6273 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6274 if test -n "$ac_ct_AR"; then
6275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6276 $as_echo "$ac_ct_AR" >&6; }
6277 else
6278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6279 $as_echo "no" >&6; }
6280 fi
6281
6282
6283 test -n "$ac_ct_AR" && break
6284 done
6285
6286 if test "x$ac_ct_AR" = x; then
6287 AR="false"
6288 else
6289 case $cross_compiling:$ac_tool_warned in
6290 yes:)
6291 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6292 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6293 ac_tool_warned=yes ;;
6294 esac
6295 AR=$ac_ct_AR
6296 fi
6297 fi
6298
6299 : ${AR=ar}
6300 : ${AR_FLAGS=cru}
6301
6302
6303
6304
6305
6306
6307
6308
6309
6310
6311
6312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6313 $as_echo_n "checking for archiver @FILE support... " >&6; }
6314 if ${lt_cv_ar_at_file+:} false; then :
6315 $as_echo_n "(cached) " >&6
6316 else
6317 lt_cv_ar_at_file=no
6318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6319 /* end confdefs.h. */
6320
6321 int
6322 main ()
6323 {
6324
6325 ;
6326 return 0;
6327 }
6328 _ACEOF
6329 if ac_fn_c_try_compile "$LINENO"; then :
6330 echo conftest.$ac_objext > conftest.lst
6331 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6332 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6333 (eval $lt_ar_try) 2>&5
6334 ac_status=$?
6335 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6336 test $ac_status = 0; }
6337 if test "$ac_status" -eq 0; then
6338 # Ensure the archiver fails upon bogus file names.
6339 rm -f conftest.$ac_objext libconftest.a
6340 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6341 (eval $lt_ar_try) 2>&5
6342 ac_status=$?
6343 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6344 test $ac_status = 0; }
6345 if test "$ac_status" -ne 0; then
6346 lt_cv_ar_at_file=@
6347 fi
6348 fi
6349 rm -f conftest.* libconftest.a
6350
6351 fi
6352 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6353
6354 fi
6355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6356 $as_echo "$lt_cv_ar_at_file" >&6; }
6357
6358 if test "x$lt_cv_ar_at_file" = xno; then
6359 archiver_list_spec=
6360 else
6361 archiver_list_spec=$lt_cv_ar_at_file
6362 fi
6363
6364
6365
6366
6367
6368
6369
6370 if test -n "$ac_tool_prefix"; then
6371 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6372 set dummy ${ac_tool_prefix}strip; ac_word=$2
6373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6374 $as_echo_n "checking for $ac_word... " >&6; }
6375 if ${ac_cv_prog_STRIP+:} false; then :
6376 $as_echo_n "(cached) " >&6
6377 else
6378 if test -n "$STRIP"; then
6379 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6380 else
6381 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6382 for as_dir in $PATH
6383 do
6384 IFS=$as_save_IFS
6385 test -z "$as_dir" && as_dir=.
6386 for ac_exec_ext in '' $ac_executable_extensions; do
6387 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6388 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6389 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6390 break 2
6391 fi
6392 done
6393 done
6394 IFS=$as_save_IFS
6395
6396 fi
6397 fi
6398 STRIP=$ac_cv_prog_STRIP
6399 if test -n "$STRIP"; then
6400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6401 $as_echo "$STRIP" >&6; }
6402 else
6403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6404 $as_echo "no" >&6; }
6405 fi
6406
6407
6408 fi
6409 if test -z "$ac_cv_prog_STRIP"; then
6410 ac_ct_STRIP=$STRIP
6411 # Extract the first word of "strip", so it can be a program name with args.
6412 set dummy strip; ac_word=$2
6413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6414 $as_echo_n "checking for $ac_word... " >&6; }
6415 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6416 $as_echo_n "(cached) " >&6
6417 else
6418 if test -n "$ac_ct_STRIP"; then
6419 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6420 else
6421 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6422 for as_dir in $PATH
6423 do
6424 IFS=$as_save_IFS
6425 test -z "$as_dir" && as_dir=.
6426 for ac_exec_ext in '' $ac_executable_extensions; do
6427 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6428 ac_cv_prog_ac_ct_STRIP="strip"
6429 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6430 break 2
6431 fi
6432 done
6433 done
6434 IFS=$as_save_IFS
6435
6436 fi
6437 fi
6438 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6439 if test -n "$ac_ct_STRIP"; then
6440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6441 $as_echo "$ac_ct_STRIP" >&6; }
6442 else
6443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6444 $as_echo "no" >&6; }
6445 fi
6446
6447 if test "x$ac_ct_STRIP" = x; then
6448 STRIP=":"
6449 else
6450 case $cross_compiling:$ac_tool_warned in
6451 yes:)
6452 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6453 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6454 ac_tool_warned=yes ;;
6455 esac
6456 STRIP=$ac_ct_STRIP
6457 fi
6458 else
6459 STRIP="$ac_cv_prog_STRIP"
6460 fi
6461
6462 test -z "$STRIP" && STRIP=:
6463
6464
6465
6466
6467
6468
6469 if test -n "$ac_tool_prefix"; then
6470 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6471 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6473 $as_echo_n "checking for $ac_word... " >&6; }
6474 if ${ac_cv_prog_RANLIB+:} false; then :
6475 $as_echo_n "(cached) " >&6
6476 else
6477 if test -n "$RANLIB"; then
6478 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6479 else
6480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6481 for as_dir in $PATH
6482 do
6483 IFS=$as_save_IFS
6484 test -z "$as_dir" && as_dir=.
6485 for ac_exec_ext in '' $ac_executable_extensions; do
6486 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6487 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6488 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6489 break 2
6490 fi
6491 done
6492 done
6493 IFS=$as_save_IFS
6494
6495 fi
6496 fi
6497 RANLIB=$ac_cv_prog_RANLIB
6498 if test -n "$RANLIB"; then
6499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6500 $as_echo "$RANLIB" >&6; }
6501 else
6502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6503 $as_echo "no" >&6; }
6504 fi
6505
6506
6507 fi
6508 if test -z "$ac_cv_prog_RANLIB"; then
6509 ac_ct_RANLIB=$RANLIB
6510 # Extract the first word of "ranlib", so it can be a program name with args.
6511 set dummy ranlib; ac_word=$2
6512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6513 $as_echo_n "checking for $ac_word... " >&6; }
6514 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6515 $as_echo_n "(cached) " >&6
6516 else
6517 if test -n "$ac_ct_RANLIB"; then
6518 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6519 else
6520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6521 for as_dir in $PATH
6522 do
6523 IFS=$as_save_IFS
6524 test -z "$as_dir" && as_dir=.
6525 for ac_exec_ext in '' $ac_executable_extensions; do
6526 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6527 ac_cv_prog_ac_ct_RANLIB="ranlib"
6528 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6529 break 2
6530 fi
6531 done
6532 done
6533 IFS=$as_save_IFS
6534
6535 fi
6536 fi
6537 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6538 if test -n "$ac_ct_RANLIB"; then
6539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6540 $as_echo "$ac_ct_RANLIB" >&6; }
6541 else
6542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6543 $as_echo "no" >&6; }
6544 fi
6545
6546 if test "x$ac_ct_RANLIB" = x; then
6547 RANLIB=":"
6548 else
6549 case $cross_compiling:$ac_tool_warned in
6550 yes:)
6551 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6552 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6553 ac_tool_warned=yes ;;
6554 esac
6555 RANLIB=$ac_ct_RANLIB
6556 fi
6557 else
6558 RANLIB="$ac_cv_prog_RANLIB"
6559 fi
6560
6561 test -z "$RANLIB" && RANLIB=:
6562
6563
6564
6565
6566
6567
6568 # Determine commands to create old-style static archives.
6569 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6570 old_postinstall_cmds='chmod 644 $oldlib'
6571 old_postuninstall_cmds=
6572
6573 if test -n "$RANLIB"; then
6574 case $host_os in
6575 openbsd*)
6576 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6577 ;;
6578 *)
6579 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6580 ;;
6581 esac
6582 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6583 fi
6584
6585 case $host_os in
6586 darwin*)
6587 lock_old_archive_extraction=yes ;;
6588 *)
6589 lock_old_archive_extraction=no ;;
6590 esac
6591
6592
6593
6594
6595
6596
6597
6598
6599
6600
6601
6602
6603
6604
6605
6606
6607
6608
6609
6610
6611
6612
6613
6614
6615
6616
6617
6618
6619
6620
6621
6622
6623
6624
6625
6626
6627
6628
6629
6630 # If no C compiler was specified, use CC.
6631 LTCC=${LTCC-"$CC"}
6632
6633 # If no C compiler flags were specified, use CFLAGS.
6634 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6635
6636 # Allow CC to be a program name with arguments.
6637 compiler=$CC
6638
6639
6640 # Check for command to grab the raw symbol name followed by C symbol from nm.
6641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6642 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6643 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6644 $as_echo_n "(cached) " >&6
6645 else
6646
6647 # These are sane defaults that work on at least a few old systems.
6648 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6649
6650 # Character class describing NM global symbol codes.
6651 symcode='[BCDEGRST]'
6652
6653 # Regexp to match symbols that can be accessed directly from C.
6654 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6655
6656 # Define system-specific variables.
6657 case $host_os in
6658 aix*)
6659 symcode='[BCDT]'
6660 ;;
6661 cygwin* | mingw* | pw32* | cegcc*)
6662 symcode='[ABCDGISTW]'
6663 ;;
6664 hpux*)
6665 if test "$host_cpu" = ia64; then
6666 symcode='[ABCDEGRST]'
6667 fi
6668 ;;
6669 irix* | nonstopux*)
6670 symcode='[BCDEGRST]'
6671 ;;
6672 osf*)
6673 symcode='[BCDEGQRST]'
6674 ;;
6675 solaris*)
6676 symcode='[BDRT]'
6677 ;;
6678 sco3.2v5*)
6679 symcode='[DT]'
6680 ;;
6681 sysv4.2uw2*)
6682 symcode='[DT]'
6683 ;;
6684 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6685 symcode='[ABDT]'
6686 ;;
6687 sysv4)
6688 symcode='[DFNSTU]'
6689 ;;
6690 esac
6691
6692 # If we're using GNU nm, then use its standard symbol codes.
6693 case `$NM -V 2>&1` in
6694 *GNU* | *'with BFD'*)
6695 symcode='[ABCDGIRSTW]' ;;
6696 esac
6697
6698 # Transform an extracted symbol line into a proper C declaration.
6699 # Some systems (esp. on ia64) link data and code symbols differently,
6700 # so use this general approach.
6701 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6702
6703 # Transform an extracted symbol line into symbol name and symbol address
6704 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6705 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'"
6706
6707 # Handle CRLF in mingw tool chain
6708 opt_cr=
6709 case $build_os in
6710 mingw*)
6711 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6712 ;;
6713 esac
6714
6715 # Try without a prefix underscore, then with it.
6716 for ac_symprfx in "" "_"; do
6717
6718 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6719 symxfrm="\\1 $ac_symprfx\\2 \\2"
6720
6721 # Write the raw and C identifiers.
6722 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6723 # Fake it for dumpbin and say T for any non-static function
6724 # and D for any global variable.
6725 # Also find C++ and __fastcall symbols from MSVC++,
6726 # which start with @ or ?.
6727 lt_cv_sys_global_symbol_pipe="$AWK '"\
6728 " {last_section=section; section=\$ 3};"\
6729 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6730 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6731 " \$ 0!~/External *\|/{next};"\
6732 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6733 " {if(hide[section]) next};"\
6734 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6735 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6736 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6737 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6738 " ' prfx=^$ac_symprfx"
6739 else
6740 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6741 fi
6742 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6743
6744 # Check to see that the pipe works correctly.
6745 pipe_works=no
6746
6747 rm -f conftest*
6748 cat > conftest.$ac_ext <<_LT_EOF
6749 #ifdef __cplusplus
6750 extern "C" {
6751 #endif
6752 char nm_test_var;
6753 void nm_test_func(void);
6754 void nm_test_func(void){}
6755 #ifdef __cplusplus
6756 }
6757 #endif
6758 int main(){nm_test_var='a';nm_test_func();return(0);}
6759 _LT_EOF
6760
6761 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6762 (eval $ac_compile) 2>&5
6763 ac_status=$?
6764 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6765 test $ac_status = 0; }; then
6766 # Now try to grab the symbols.
6767 nlist=conftest.nm
6768 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6769 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6770 ac_status=$?
6771 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6772 test $ac_status = 0; } && test -s "$nlist"; then
6773 # Try sorting and uniquifying the output.
6774 if sort "$nlist" | uniq > "$nlist"T; then
6775 mv -f "$nlist"T "$nlist"
6776 else
6777 rm -f "$nlist"T
6778 fi
6779
6780 # Make sure that we snagged all the symbols we need.
6781 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6782 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6783 cat <<_LT_EOF > conftest.$ac_ext
6784 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6785 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6786 /* DATA imports from DLLs on WIN32 con't be const, because runtime
6787 relocations are performed -- see ld's documentation on pseudo-relocs. */
6788 # define LT_DLSYM_CONST
6789 #elif defined(__osf__)
6790 /* This system does not cope well with relocations in const data. */
6791 # define LT_DLSYM_CONST
6792 #else
6793 # define LT_DLSYM_CONST const
6794 #endif
6795
6796 #ifdef __cplusplus
6797 extern "C" {
6798 #endif
6799
6800 _LT_EOF
6801 # Now generate the symbol file.
6802 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6803
6804 cat <<_LT_EOF >> conftest.$ac_ext
6805
6806 /* The mapping between symbol names and symbols. */
6807 LT_DLSYM_CONST struct {
6808 const char *name;
6809 void *address;
6810 }
6811 lt__PROGRAM__LTX_preloaded_symbols[] =
6812 {
6813 { "@PROGRAM@", (void *) 0 },
6814 _LT_EOF
6815 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6816 cat <<\_LT_EOF >> conftest.$ac_ext
6817 {0, (void *) 0}
6818 };
6819
6820 /* This works around a problem in FreeBSD linker */
6821 #ifdef FREEBSD_WORKAROUND
6822 static const void *lt_preloaded_setup() {
6823 return lt__PROGRAM__LTX_preloaded_symbols;
6824 }
6825 #endif
6826
6827 #ifdef __cplusplus
6828 }
6829 #endif
6830 _LT_EOF
6831 # Now try linking the two files.
6832 mv conftest.$ac_objext conftstm.$ac_objext
6833 lt_globsym_save_LIBS=$LIBS
6834 lt_globsym_save_CFLAGS=$CFLAGS
6835 LIBS="conftstm.$ac_objext"
6836 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6837 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6838 (eval $ac_link) 2>&5
6839 ac_status=$?
6840 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6841 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6842 pipe_works=yes
6843 fi
6844 LIBS=$lt_globsym_save_LIBS
6845 CFLAGS=$lt_globsym_save_CFLAGS
6846 else
6847 echo "cannot find nm_test_func in $nlist" >&5
6848 fi
6849 else
6850 echo "cannot find nm_test_var in $nlist" >&5
6851 fi
6852 else
6853 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6854 fi
6855 else
6856 echo "$progname: failed program was:" >&5
6857 cat conftest.$ac_ext >&5
6858 fi
6859 rm -rf conftest* conftst*
6860
6861 # Do not use the global_symbol_pipe unless it works.
6862 if test "$pipe_works" = yes; then
6863 break
6864 else
6865 lt_cv_sys_global_symbol_pipe=
6866 fi
6867 done
6868
6869 fi
6870
6871 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6872 lt_cv_sys_global_symbol_to_cdecl=
6873 fi
6874 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6876 $as_echo "failed" >&6; }
6877 else
6878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6879 $as_echo "ok" >&6; }
6880 fi
6881
6882 # Response file support.
6883 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6884 nm_file_list_spec='@'
6885 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6886 nm_file_list_spec='@'
6887 fi
6888
6889
6890
6891
6892
6893
6894
6895
6896
6897
6898
6899
6900
6901
6902
6903
6904
6905
6906
6907
6908
6909
6910
6911
6912
6913
6914
6915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6916 $as_echo_n "checking for sysroot... " >&6; }
6917
6918 # Check whether --with-sysroot was given.
6919 if test "${with_sysroot+set}" = set; then :
6920 withval=$with_sysroot;
6921 else
6922 with_sysroot=no
6923 fi
6924
6925
6926 lt_sysroot=
6927 case ${with_sysroot} in #(
6928 yes)
6929 if test "$GCC" = yes; then
6930 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6931 fi
6932 ;; #(
6933 /*)
6934 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6935 ;; #(
6936 no|'')
6937 ;; #(
6938 *)
6939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6940 $as_echo "${with_sysroot}" >&6; }
6941 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6942 ;;
6943 esac
6944
6945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6946 $as_echo "${lt_sysroot:-no}" >&6; }
6947
6948
6949
6950
6951
6952 # Check whether --enable-libtool-lock was given.
6953 if test "${enable_libtool_lock+set}" = set; then :
6954 enableval=$enable_libtool_lock;
6955 fi
6956
6957 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6958
6959 # Some flags need to be propagated to the compiler or linker for good
6960 # libtool support.
6961 case $host in
6962 ia64-*-hpux*)
6963 # Find out which ABI we are using.
6964 echo 'int i;' > conftest.$ac_ext
6965 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6966 (eval $ac_compile) 2>&5
6967 ac_status=$?
6968 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6969 test $ac_status = 0; }; then
6970 case `/usr/bin/file conftest.$ac_objext` in
6971 *ELF-32*)
6972 HPUX_IA64_MODE="32"
6973 ;;
6974 *ELF-64*)
6975 HPUX_IA64_MODE="64"
6976 ;;
6977 esac
6978 fi
6979 rm -rf conftest*
6980 ;;
6981 *-*-irix6*)
6982 # Find out which ABI we are using.
6983 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6984 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6985 (eval $ac_compile) 2>&5
6986 ac_status=$?
6987 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6988 test $ac_status = 0; }; then
6989 if test "$lt_cv_prog_gnu_ld" = yes; then
6990 case `/usr/bin/file conftest.$ac_objext` in
6991 *32-bit*)
6992 LD="${LD-ld} -melf32bsmip"
6993 ;;
6994 *N32*)
6995 LD="${LD-ld} -melf32bmipn32"
6996 ;;
6997 *64-bit*)
6998 LD="${LD-ld} -melf64bmip"
6999 ;;
7000 esac
7001 else
7002 case `/usr/bin/file conftest.$ac_objext` in
7003 *32-bit*)
7004 LD="${LD-ld} -32"
7005 ;;
7006 *N32*)
7007 LD="${LD-ld} -n32"
7008 ;;
7009 *64-bit*)
7010 LD="${LD-ld} -64"
7011 ;;
7012 esac
7013 fi
7014 fi
7015 rm -rf conftest*
7016 ;;
7017
7018 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7019 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7020 # Find out which ABI we are using.
7021 echo 'int i;' > conftest.$ac_ext
7022 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7023 (eval $ac_compile) 2>&5
7024 ac_status=$?
7025 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7026 test $ac_status = 0; }; then
7027 case `/usr/bin/file conftest.o` in
7028 *32-bit*)
7029 case $host in
7030 x86_64-*kfreebsd*-gnu)
7031 LD="${LD-ld} -m elf_i386_fbsd"
7032 ;;
7033 x86_64-*linux*)
7034 LD="${LD-ld} -m elf_i386"
7035 ;;
7036 ppc64-*linux*|powerpc64-*linux*)
7037 LD="${LD-ld} -m elf32ppclinux"
7038 ;;
7039 s390x-*linux*)
7040 LD="${LD-ld} -m elf_s390"
7041 ;;
7042 sparc64-*linux*)
7043 LD="${LD-ld} -m elf32_sparc"
7044 ;;
7045 esac
7046 ;;
7047 *64-bit*)
7048 case $host in
7049 x86_64-*kfreebsd*-gnu)
7050 LD="${LD-ld} -m elf_x86_64_fbsd"
7051 ;;
7052 x86_64-*linux*)
7053 LD="${LD-ld} -m elf_x86_64"
7054 ;;
7055 ppc*-*linux*|powerpc*-*linux*)
7056 LD="${LD-ld} -m elf64ppc"
7057 ;;
7058 s390*-*linux*|s390*-*tpf*)
7059 LD="${LD-ld} -m elf64_s390"
7060 ;;
7061 sparc*-*linux*)
7062 LD="${LD-ld} -m elf64_sparc"
7063 ;;
7064 esac
7065 ;;
7066 esac
7067 fi
7068 rm -rf conftest*
7069 ;;
7070
7071 *-*-sco3.2v5*)
7072 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7073 SAVE_CFLAGS="$CFLAGS"
7074 CFLAGS="$CFLAGS -belf"
7075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7076 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7077 if ${lt_cv_cc_needs_belf+:} false; then :
7078 $as_echo_n "(cached) " >&6
7079 else
7080 ac_ext=c
7081 ac_cpp='$CPP $CPPFLAGS'
7082 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7083 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7084 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7085
7086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7087 /* end confdefs.h. */
7088
7089 int
7090 main ()
7091 {
7092
7093 ;
7094 return 0;
7095 }
7096 _ACEOF
7097 if ac_fn_c_try_link "$LINENO"; then :
7098 lt_cv_cc_needs_belf=yes
7099 else
7100 lt_cv_cc_needs_belf=no
7101 fi
7102 rm -f core conftest.err conftest.$ac_objext \
7103 conftest$ac_exeext conftest.$ac_ext
7104 ac_ext=c
7105 ac_cpp='$CPP $CPPFLAGS'
7106 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7107 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7108 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7109
7110 fi
7111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7112 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7113 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7114 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7115 CFLAGS="$SAVE_CFLAGS"
7116 fi
7117 ;;
7118 *-*solaris*)
7119 # Find out which ABI we are using.
7120 echo 'int i;' > conftest.$ac_ext
7121 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7122 (eval $ac_compile) 2>&5
7123 ac_status=$?
7124 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7125 test $ac_status = 0; }; then
7126 case `/usr/bin/file conftest.o` in
7127 *64-bit*)
7128 case $lt_cv_prog_gnu_ld in
7129 yes*)
7130 case $host in
7131 i?86-*-solaris*)
7132 LD="${LD-ld} -m elf_x86_64"
7133 ;;
7134 sparc*-*-solaris*)
7135 LD="${LD-ld} -m elf64_sparc"
7136 ;;
7137 esac
7138 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7139 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7140 LD="${LD-ld}_sol2"
7141 fi
7142 ;;
7143 *)
7144 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7145 LD="${LD-ld} -64"
7146 fi
7147 ;;
7148 esac
7149 ;;
7150 esac
7151 fi
7152 rm -rf conftest*
7153 ;;
7154 esac
7155
7156 need_locks="$enable_libtool_lock"
7157
7158 if test -n "$ac_tool_prefix"; then
7159 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7160 set dummy ${ac_tool_prefix}mt; ac_word=$2
7161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7162 $as_echo_n "checking for $ac_word... " >&6; }
7163 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7164 $as_echo_n "(cached) " >&6
7165 else
7166 if test -n "$MANIFEST_TOOL"; then
7167 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7168 else
7169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7170 for as_dir in $PATH
7171 do
7172 IFS=$as_save_IFS
7173 test -z "$as_dir" && as_dir=.
7174 for ac_exec_ext in '' $ac_executable_extensions; do
7175 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7176 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7177 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7178 break 2
7179 fi
7180 done
7181 done
7182 IFS=$as_save_IFS
7183
7184 fi
7185 fi
7186 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7187 if test -n "$MANIFEST_TOOL"; then
7188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7189 $as_echo "$MANIFEST_TOOL" >&6; }
7190 else
7191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7192 $as_echo "no" >&6; }
7193 fi
7194
7195
7196 fi
7197 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7198 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7199 # Extract the first word of "mt", so it can be a program name with args.
7200 set dummy mt; ac_word=$2
7201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7202 $as_echo_n "checking for $ac_word... " >&6; }
7203 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7204 $as_echo_n "(cached) " >&6
7205 else
7206 if test -n "$ac_ct_MANIFEST_TOOL"; then
7207 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7208 else
7209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7210 for as_dir in $PATH
7211 do
7212 IFS=$as_save_IFS
7213 test -z "$as_dir" && as_dir=.
7214 for ac_exec_ext in '' $ac_executable_extensions; do
7215 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7216 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7217 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7218 break 2
7219 fi
7220 done
7221 done
7222 IFS=$as_save_IFS
7223
7224 fi
7225 fi
7226 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7227 if test -n "$ac_ct_MANIFEST_TOOL"; then
7228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7229 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7230 else
7231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7232 $as_echo "no" >&6; }
7233 fi
7234
7235 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7236 MANIFEST_TOOL=":"
7237 else
7238 case $cross_compiling:$ac_tool_warned in
7239 yes:)
7240 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7241 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7242 ac_tool_warned=yes ;;
7243 esac
7244 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7245 fi
7246 else
7247 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7248 fi
7249
7250 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7252 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7253 if ${lt_cv_path_mainfest_tool+:} false; then :
7254 $as_echo_n "(cached) " >&6
7255 else
7256 lt_cv_path_mainfest_tool=no
7257 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7258 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7259 cat conftest.err >&5
7260 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7261 lt_cv_path_mainfest_tool=yes
7262 fi
7263 rm -f conftest*
7264 fi
7265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7266 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7267 if test "x$lt_cv_path_mainfest_tool" != xyes; then
7268 MANIFEST_TOOL=:
7269 fi
7270
7271
7272
7273
7274
7275
7276 case $host_os in
7277 rhapsody* | darwin*)
7278 if test -n "$ac_tool_prefix"; then
7279 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7280 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7282 $as_echo_n "checking for $ac_word... " >&6; }
7283 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7284 $as_echo_n "(cached) " >&6
7285 else
7286 if test -n "$DSYMUTIL"; then
7287 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7288 else
7289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7290 for as_dir in $PATH
7291 do
7292 IFS=$as_save_IFS
7293 test -z "$as_dir" && as_dir=.
7294 for ac_exec_ext in '' $ac_executable_extensions; do
7295 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7296 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7297 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7298 break 2
7299 fi
7300 done
7301 done
7302 IFS=$as_save_IFS
7303
7304 fi
7305 fi
7306 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7307 if test -n "$DSYMUTIL"; then
7308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7309 $as_echo "$DSYMUTIL" >&6; }
7310 else
7311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7312 $as_echo "no" >&6; }
7313 fi
7314
7315
7316 fi
7317 if test -z "$ac_cv_prog_DSYMUTIL"; then
7318 ac_ct_DSYMUTIL=$DSYMUTIL
7319 # Extract the first word of "dsymutil", so it can be a program name with args.
7320 set dummy dsymutil; ac_word=$2
7321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7322 $as_echo_n "checking for $ac_word... " >&6; }
7323 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7324 $as_echo_n "(cached) " >&6
7325 else
7326 if test -n "$ac_ct_DSYMUTIL"; then
7327 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7328 else
7329 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7330 for as_dir in $PATH
7331 do
7332 IFS=$as_save_IFS
7333 test -z "$as_dir" && as_dir=.
7334 for ac_exec_ext in '' $ac_executable_extensions; do
7335 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7336 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7337 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7338 break 2
7339 fi
7340 done
7341 done
7342 IFS=$as_save_IFS
7343
7344 fi
7345 fi
7346 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7347 if test -n "$ac_ct_DSYMUTIL"; then
7348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7349 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7350 else
7351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7352 $as_echo "no" >&6; }
7353 fi
7354
7355 if test "x$ac_ct_DSYMUTIL" = x; then
7356 DSYMUTIL=":"
7357 else
7358 case $cross_compiling:$ac_tool_warned in
7359 yes:)
7360 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7361 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7362 ac_tool_warned=yes ;;
7363 esac
7364 DSYMUTIL=$ac_ct_DSYMUTIL
7365 fi
7366 else
7367 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7368 fi
7369
7370 if test -n "$ac_tool_prefix"; then
7371 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7372 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7374 $as_echo_n "checking for $ac_word... " >&6; }
7375 if ${ac_cv_prog_NMEDIT+:} false; then :
7376 $as_echo_n "(cached) " >&6
7377 else
7378 if test -n "$NMEDIT"; then
7379 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7380 else
7381 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7382 for as_dir in $PATH
7383 do
7384 IFS=$as_save_IFS
7385 test -z "$as_dir" && as_dir=.
7386 for ac_exec_ext in '' $ac_executable_extensions; do
7387 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7388 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7389 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7390 break 2
7391 fi
7392 done
7393 done
7394 IFS=$as_save_IFS
7395
7396 fi
7397 fi
7398 NMEDIT=$ac_cv_prog_NMEDIT
7399 if test -n "$NMEDIT"; then
7400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7401 $as_echo "$NMEDIT" >&6; }
7402 else
7403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7404 $as_echo "no" >&6; }
7405 fi
7406
7407
7408 fi
7409 if test -z "$ac_cv_prog_NMEDIT"; then
7410 ac_ct_NMEDIT=$NMEDIT
7411 # Extract the first word of "nmedit", so it can be a program name with args.
7412 set dummy nmedit; ac_word=$2
7413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7414 $as_echo_n "checking for $ac_word... " >&6; }
7415 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7416 $as_echo_n "(cached) " >&6
7417 else
7418 if test -n "$ac_ct_NMEDIT"; then
7419 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7420 else
7421 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7422 for as_dir in $PATH
7423 do
7424 IFS=$as_save_IFS
7425 test -z "$as_dir" && as_dir=.
7426 for ac_exec_ext in '' $ac_executable_extensions; do
7427 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7428 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7429 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7430 break 2
7431 fi
7432 done
7433 done
7434 IFS=$as_save_IFS
7435
7436 fi
7437 fi
7438 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7439 if test -n "$ac_ct_NMEDIT"; then
7440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7441 $as_echo "$ac_ct_NMEDIT" >&6; }
7442 else
7443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7444 $as_echo "no" >&6; }
7445 fi
7446
7447 if test "x$ac_ct_NMEDIT" = x; then
7448 NMEDIT=":"
7449 else
7450 case $cross_compiling:$ac_tool_warned in
7451 yes:)
7452 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7453 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7454 ac_tool_warned=yes ;;
7455 esac
7456 NMEDIT=$ac_ct_NMEDIT
7457 fi
7458 else
7459 NMEDIT="$ac_cv_prog_NMEDIT"
7460 fi
7461
7462 if test -n "$ac_tool_prefix"; then
7463 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7464 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7466 $as_echo_n "checking for $ac_word... " >&6; }
7467 if ${ac_cv_prog_LIPO+:} false; then :
7468 $as_echo_n "(cached) " >&6
7469 else
7470 if test -n "$LIPO"; then
7471 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7472 else
7473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7474 for as_dir in $PATH
7475 do
7476 IFS=$as_save_IFS
7477 test -z "$as_dir" && as_dir=.
7478 for ac_exec_ext in '' $ac_executable_extensions; do
7479 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7480 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7481 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7482 break 2
7483 fi
7484 done
7485 done
7486 IFS=$as_save_IFS
7487
7488 fi
7489 fi
7490 LIPO=$ac_cv_prog_LIPO
7491 if test -n "$LIPO"; then
7492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7493 $as_echo "$LIPO" >&6; }
7494 else
7495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7496 $as_echo "no" >&6; }
7497 fi
7498
7499
7500 fi
7501 if test -z "$ac_cv_prog_LIPO"; then
7502 ac_ct_LIPO=$LIPO
7503 # Extract the first word of "lipo", so it can be a program name with args.
7504 set dummy lipo; ac_word=$2
7505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7506 $as_echo_n "checking for $ac_word... " >&6; }
7507 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7508 $as_echo_n "(cached) " >&6
7509 else
7510 if test -n "$ac_ct_LIPO"; then
7511 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7512 else
7513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7514 for as_dir in $PATH
7515 do
7516 IFS=$as_save_IFS
7517 test -z "$as_dir" && as_dir=.
7518 for ac_exec_ext in '' $ac_executable_extensions; do
7519 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7520 ac_cv_prog_ac_ct_LIPO="lipo"
7521 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7522 break 2
7523 fi
7524 done
7525 done
7526 IFS=$as_save_IFS
7527
7528 fi
7529 fi
7530 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7531 if test -n "$ac_ct_LIPO"; then
7532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7533 $as_echo "$ac_ct_LIPO" >&6; }
7534 else
7535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7536 $as_echo "no" >&6; }
7537 fi
7538
7539 if test "x$ac_ct_LIPO" = x; then
7540 LIPO=":"
7541 else
7542 case $cross_compiling:$ac_tool_warned in
7543 yes:)
7544 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7545 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7546 ac_tool_warned=yes ;;
7547 esac
7548 LIPO=$ac_ct_LIPO
7549 fi
7550 else
7551 LIPO="$ac_cv_prog_LIPO"
7552 fi
7553
7554 if test -n "$ac_tool_prefix"; then
7555 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7556 set dummy ${ac_tool_prefix}otool; ac_word=$2
7557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7558 $as_echo_n "checking for $ac_word... " >&6; }
7559 if ${ac_cv_prog_OTOOL+:} false; then :
7560 $as_echo_n "(cached) " >&6
7561 else
7562 if test -n "$OTOOL"; then
7563 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7564 else
7565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7566 for as_dir in $PATH
7567 do
7568 IFS=$as_save_IFS
7569 test -z "$as_dir" && as_dir=.
7570 for ac_exec_ext in '' $ac_executable_extensions; do
7571 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7572 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7573 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7574 break 2
7575 fi
7576 done
7577 done
7578 IFS=$as_save_IFS
7579
7580 fi
7581 fi
7582 OTOOL=$ac_cv_prog_OTOOL
7583 if test -n "$OTOOL"; then
7584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7585 $as_echo "$OTOOL" >&6; }
7586 else
7587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7588 $as_echo "no" >&6; }
7589 fi
7590
7591
7592 fi
7593 if test -z "$ac_cv_prog_OTOOL"; then
7594 ac_ct_OTOOL=$OTOOL
7595 # Extract the first word of "otool", so it can be a program name with args.
7596 set dummy otool; ac_word=$2
7597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7598 $as_echo_n "checking for $ac_word... " >&6; }
7599 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7600 $as_echo_n "(cached) " >&6
7601 else
7602 if test -n "$ac_ct_OTOOL"; then
7603 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7604 else
7605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7606 for as_dir in $PATH
7607 do
7608 IFS=$as_save_IFS
7609 test -z "$as_dir" && as_dir=.
7610 for ac_exec_ext in '' $ac_executable_extensions; do
7611 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7612 ac_cv_prog_ac_ct_OTOOL="otool"
7613 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7614 break 2
7615 fi
7616 done
7617 done
7618 IFS=$as_save_IFS
7619
7620 fi
7621 fi
7622 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7623 if test -n "$ac_ct_OTOOL"; then
7624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7625 $as_echo "$ac_ct_OTOOL" >&6; }
7626 else
7627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7628 $as_echo "no" >&6; }
7629 fi
7630
7631 if test "x$ac_ct_OTOOL" = x; then
7632 OTOOL=":"
7633 else
7634 case $cross_compiling:$ac_tool_warned in
7635 yes:)
7636 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7637 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7638 ac_tool_warned=yes ;;
7639 esac
7640 OTOOL=$ac_ct_OTOOL
7641 fi
7642 else
7643 OTOOL="$ac_cv_prog_OTOOL"
7644 fi
7645
7646 if test -n "$ac_tool_prefix"; then
7647 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7648 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7650 $as_echo_n "checking for $ac_word... " >&6; }
7651 if ${ac_cv_prog_OTOOL64+:} false; then :
7652 $as_echo_n "(cached) " >&6
7653 else
7654 if test -n "$OTOOL64"; then
7655 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7656 else
7657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7658 for as_dir in $PATH
7659 do
7660 IFS=$as_save_IFS
7661 test -z "$as_dir" && as_dir=.
7662 for ac_exec_ext in '' $ac_executable_extensions; do
7663 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7664 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7665 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7666 break 2
7667 fi
7668 done
7669 done
7670 IFS=$as_save_IFS
7671
7672 fi
7673 fi
7674 OTOOL64=$ac_cv_prog_OTOOL64
7675 if test -n "$OTOOL64"; then
7676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7677 $as_echo "$OTOOL64" >&6; }
7678 else
7679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7680 $as_echo "no" >&6; }
7681 fi
7682
7683
7684 fi
7685 if test -z "$ac_cv_prog_OTOOL64"; then
7686 ac_ct_OTOOL64=$OTOOL64
7687 # Extract the first word of "otool64", so it can be a program name with args.
7688 set dummy otool64; ac_word=$2
7689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7690 $as_echo_n "checking for $ac_word... " >&6; }
7691 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7692 $as_echo_n "(cached) " >&6
7693 else
7694 if test -n "$ac_ct_OTOOL64"; then
7695 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7696 else
7697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7698 for as_dir in $PATH
7699 do
7700 IFS=$as_save_IFS
7701 test -z "$as_dir" && as_dir=.
7702 for ac_exec_ext in '' $ac_executable_extensions; do
7703 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7704 ac_cv_prog_ac_ct_OTOOL64="otool64"
7705 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7706 break 2
7707 fi
7708 done
7709 done
7710 IFS=$as_save_IFS
7711
7712 fi
7713 fi
7714 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7715 if test -n "$ac_ct_OTOOL64"; then
7716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7717 $as_echo "$ac_ct_OTOOL64" >&6; }
7718 else
7719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7720 $as_echo "no" >&6; }
7721 fi
7722
7723 if test "x$ac_ct_OTOOL64" = x; then
7724 OTOOL64=":"
7725 else
7726 case $cross_compiling:$ac_tool_warned in
7727 yes:)
7728 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7729 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7730 ac_tool_warned=yes ;;
7731 esac
7732 OTOOL64=$ac_ct_OTOOL64
7733 fi
7734 else
7735 OTOOL64="$ac_cv_prog_OTOOL64"
7736 fi
7737
7738
7739
7740
7741
7742
7743
7744
7745
7746
7747
7748
7749
7750
7751
7752
7753
7754
7755
7756
7757
7758
7759
7760
7761
7762
7763
7764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7765 $as_echo_n "checking for -single_module linker flag... " >&6; }
7766 if ${lt_cv_apple_cc_single_mod+:} false; then :
7767 $as_echo_n "(cached) " >&6
7768 else
7769 lt_cv_apple_cc_single_mod=no
7770 if test -z "${LT_MULTI_MODULE}"; then
7771 # By default we will add the -single_module flag. You can override
7772 # by either setting the environment variable LT_MULTI_MODULE
7773 # non-empty at configure time, or by adding -multi_module to the
7774 # link flags.
7775 rm -rf libconftest.dylib*
7776 echo "int foo(void){return 1;}" > conftest.c
7777 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7778 -dynamiclib -Wl,-single_module conftest.c" >&5
7779 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7780 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7781 _lt_result=$?
7782 # If there is a non-empty error log, and "single_module"
7783 # appears in it, assume the flag caused a linker warning
7784 if test -s conftest.err && $GREP single_module conftest.err; then
7785 cat conftest.err >&5
7786 # Otherwise, if the output was created with a 0 exit code from
7787 # the compiler, it worked.
7788 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7789 lt_cv_apple_cc_single_mod=yes
7790 else
7791 cat conftest.err >&5
7792 fi
7793 rm -rf libconftest.dylib*
7794 rm -f conftest.*
7795 fi
7796 fi
7797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7798 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7799
7800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7801 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7802 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7803 $as_echo_n "(cached) " >&6
7804 else
7805 lt_cv_ld_exported_symbols_list=no
7806 save_LDFLAGS=$LDFLAGS
7807 echo "_main" > conftest.sym
7808 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7810 /* end confdefs.h. */
7811
7812 int
7813 main ()
7814 {
7815
7816 ;
7817 return 0;
7818 }
7819 _ACEOF
7820 if ac_fn_c_try_link "$LINENO"; then :
7821 lt_cv_ld_exported_symbols_list=yes
7822 else
7823 lt_cv_ld_exported_symbols_list=no
7824 fi
7825 rm -f core conftest.err conftest.$ac_objext \
7826 conftest$ac_exeext conftest.$ac_ext
7827 LDFLAGS="$save_LDFLAGS"
7828
7829 fi
7830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7831 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7832
7833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7834 $as_echo_n "checking for -force_load linker flag... " >&6; }
7835 if ${lt_cv_ld_force_load+:} false; then :
7836 $as_echo_n "(cached) " >&6
7837 else
7838 lt_cv_ld_force_load=no
7839 cat > conftest.c << _LT_EOF
7840 int forced_loaded() { return 2;}
7841 _LT_EOF
7842 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7843 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7844 echo "$AR cru libconftest.a conftest.o" >&5
7845 $AR cru libconftest.a conftest.o 2>&5
7846 echo "$RANLIB libconftest.a" >&5
7847 $RANLIB libconftest.a 2>&5
7848 cat > conftest.c << _LT_EOF
7849 int main() { return 0;}
7850 _LT_EOF
7851 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7852 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7853 _lt_result=$?
7854 if test -s conftest.err && $GREP force_load conftest.err; then
7855 cat conftest.err >&5
7856 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7857 lt_cv_ld_force_load=yes
7858 else
7859 cat conftest.err >&5
7860 fi
7861 rm -f conftest.err libconftest.a conftest conftest.c
7862 rm -rf conftest.dSYM
7863
7864 fi
7865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7866 $as_echo "$lt_cv_ld_force_load" >&6; }
7867 case $host_os in
7868 rhapsody* | darwin1.[012])
7869 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7870 darwin1.*)
7871 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7872 darwin*) # darwin 5.x on
7873 # if running on 10.5 or later, the deployment target defaults
7874 # to the OS version, if on x86, and 10.4, the deployment
7875 # target defaults to 10.4. Don't you love it?
7876 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7877 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7878 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7879 10.[012]*)
7880 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7881 10.*)
7882 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7883 esac
7884 ;;
7885 esac
7886 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7887 _lt_dar_single_mod='$single_module'
7888 fi
7889 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7890 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7891 else
7892 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7893 fi
7894 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7895 _lt_dsymutil='~$DSYMUTIL $lib || :'
7896 else
7897 _lt_dsymutil=
7898 fi
7899 ;;
7900 esac
7901
7902 ac_ext=c
7903 ac_cpp='$CPP $CPPFLAGS'
7904 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7905 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7906 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7908 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7909 # On Suns, sometimes $CPP names a directory.
7910 if test -n "$CPP" && test -d "$CPP"; then
7911 CPP=
7912 fi
7913 if test -z "$CPP"; then
7914 if ${ac_cv_prog_CPP+:} false; then :
7915 $as_echo_n "(cached) " >&6
7916 else
7917 # Double quotes because CPP needs to be expanded
7918 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7919 do
7920 ac_preproc_ok=false
7921 for ac_c_preproc_warn_flag in '' yes
7922 do
7923 # Use a header file that comes with gcc, so configuring glibc
7924 # with a fresh cross-compiler works.
7925 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7926 # <limits.h> exists even on freestanding compilers.
7927 # On the NeXT, cc -E runs the code through the compiler's parser,
7928 # not just through cpp. "Syntax error" is here to catch this case.
7929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7930 /* end confdefs.h. */
7931 #ifdef __STDC__
7932 # include <limits.h>
7933 #else
7934 # include <assert.h>
7935 #endif
7936 Syntax error
7937 _ACEOF
7938 if ac_fn_c_try_cpp "$LINENO"; then :
7939
7940 else
7941 # Broken: fails on valid input.
7942 continue
7943 fi
7944 rm -f conftest.err conftest.i conftest.$ac_ext
7945
7946 # OK, works on sane cases. Now check whether nonexistent headers
7947 # can be detected and how.
7948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7949 /* end confdefs.h. */
7950 #include <ac_nonexistent.h>
7951 _ACEOF
7952 if ac_fn_c_try_cpp "$LINENO"; then :
7953 # Broken: success on invalid input.
7954 continue
7955 else
7956 # Passes both tests.
7957 ac_preproc_ok=:
7958 break
7959 fi
7960 rm -f conftest.err conftest.i conftest.$ac_ext
7961
7962 done
7963 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7964 rm -f conftest.i conftest.err conftest.$ac_ext
7965 if $ac_preproc_ok; then :
7966 break
7967 fi
7968
7969 done
7970 ac_cv_prog_CPP=$CPP
7971
7972 fi
7973 CPP=$ac_cv_prog_CPP
7974 else
7975 ac_cv_prog_CPP=$CPP
7976 fi
7977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7978 $as_echo "$CPP" >&6; }
7979 ac_preproc_ok=false
7980 for ac_c_preproc_warn_flag in '' yes
7981 do
7982 # Use a header file that comes with gcc, so configuring glibc
7983 # with a fresh cross-compiler works.
7984 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7985 # <limits.h> exists even on freestanding compilers.
7986 # On the NeXT, cc -E runs the code through the compiler's parser,
7987 # not just through cpp. "Syntax error" is here to catch this case.
7988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7989 /* end confdefs.h. */
7990 #ifdef __STDC__
7991 # include <limits.h>
7992 #else
7993 # include <assert.h>
7994 #endif
7995 Syntax error
7996 _ACEOF
7997 if ac_fn_c_try_cpp "$LINENO"; then :
7998
7999 else
8000 # Broken: fails on valid input.
8001 continue
8002 fi
8003 rm -f conftest.err conftest.i conftest.$ac_ext
8004
8005 # OK, works on sane cases. Now check whether nonexistent headers
8006 # can be detected and how.
8007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8008 /* end confdefs.h. */
8009 #include <ac_nonexistent.h>
8010 _ACEOF
8011 if ac_fn_c_try_cpp "$LINENO"; then :
8012 # Broken: success on invalid input.
8013 continue
8014 else
8015 # Passes both tests.
8016 ac_preproc_ok=:
8017 break
8018 fi
8019 rm -f conftest.err conftest.i conftest.$ac_ext
8020
8021 done
8022 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8023 rm -f conftest.i conftest.err conftest.$ac_ext
8024 if $ac_preproc_ok; then :
8025
8026 else
8027 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8028 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8029 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
8030 See \`config.log' for more details" "$LINENO" 5; }
8031 fi
8032
8033 ac_ext=c
8034 ac_cpp='$CPP $CPPFLAGS'
8035 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8036 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8037 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8038
8039
8040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8041 $as_echo_n "checking for ANSI C header files... " >&6; }
8042 if ${ac_cv_header_stdc+:} false; then :
8043 $as_echo_n "(cached) " >&6
8044 else
8045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8046 /* end confdefs.h. */
8047 #include <stdlib.h>
8048 #include <stdarg.h>
8049 #include <string.h>
8050 #include <float.h>
8051
8052 int
8053 main ()
8054 {
8055
8056 ;
8057 return 0;
8058 }
8059 _ACEOF
8060 if ac_fn_c_try_compile "$LINENO"; then :
8061 ac_cv_header_stdc=yes
8062 else
8063 ac_cv_header_stdc=no
8064 fi
8065 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8066
8067 if test $ac_cv_header_stdc = yes; then
8068 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8070 /* end confdefs.h. */
8071 #include <string.h>
8072
8073 _ACEOF
8074 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8075 $EGREP "memchr" >/dev/null 2>&1; then :
8076
8077 else
8078 ac_cv_header_stdc=no
8079 fi
8080 rm -f conftest*
8081
8082 fi
8083
8084 if test $ac_cv_header_stdc = yes; then
8085 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8087 /* end confdefs.h. */
8088 #include <stdlib.h>
8089
8090 _ACEOF
8091 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8092 $EGREP "free" >/dev/null 2>&1; then :
8093
8094 else
8095 ac_cv_header_stdc=no
8096 fi
8097 rm -f conftest*
8098
8099 fi
8100
8101 if test $ac_cv_header_stdc = yes; then
8102 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8103 if test "$cross_compiling" = yes; then :
8104 :
8105 else
8106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8107 /* end confdefs.h. */
8108 #include <ctype.h>
8109 #include <stdlib.h>
8110 #if ((' ' & 0x0FF) == 0x020)
8111 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8112 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8113 #else
8114 # define ISLOWER(c) \
8115 (('a' <= (c) && (c) <= 'i') \
8116 || ('j' <= (c) && (c) <= 'r') \
8117 || ('s' <= (c) && (c) <= 'z'))
8118 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8119 #endif
8120
8121 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8122 int
8123 main ()
8124 {
8125 int i;
8126 for (i = 0; i < 256; i++)
8127 if (XOR (islower (i), ISLOWER (i))
8128 || toupper (i) != TOUPPER (i))
8129 return 2;
8130 return 0;
8131 }
8132 _ACEOF
8133 if ac_fn_c_try_run "$LINENO"; then :
8134
8135 else
8136 ac_cv_header_stdc=no
8137 fi
8138 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8139 conftest.$ac_objext conftest.beam conftest.$ac_ext
8140 fi
8141
8142 fi
8143 fi
8144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8145 $as_echo "$ac_cv_header_stdc" >&6; }
8146 if test $ac_cv_header_stdc = yes; then
8147
8148 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8149
8150 fi
8151
8152 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8153 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8154 inttypes.h stdint.h unistd.h
8155 do :
8156 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8157 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8158 "
8159 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8160 cat >>confdefs.h <<_ACEOF
8161 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8162 _ACEOF
8163
8164 fi
8165
8166 done
8167
8168
8169 for ac_header in dlfcn.h
8170 do :
8171 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8172 "
8173 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8174 cat >>confdefs.h <<_ACEOF
8175 #define HAVE_DLFCN_H 1
8176 _ACEOF
8177
8178 fi
8179
8180 done
8181
8182
8183
8184
8185
8186 # Set options
8187 enable_dlopen=yes
8188 # Check whether --enable-static was given.
8189 if test "${enable_static+set}" = set; then :
8190 enableval=$enable_static; p=${PACKAGE-default}
8191 case $enableval in
8192 yes) enable_static=yes ;;
8193 no) enable_static=no ;;
8194 *)
8195 enable_static=no
8196 # Look at the argument we got. We use all the common list separators.
8197 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8198 for pkg in $enableval; do
8199 IFS="$lt_save_ifs"
8200 if test "X$pkg" = "X$p"; then
8201 enable_static=yes
8202 fi
8203 done
8204 IFS="$lt_save_ifs"
8205 ;;
8206 esac
8207 else
8208 enable_static=no
8209 fi
8210
8211
8212
8213
8214
8215
8216
8217
8218
8219
8220
8221 enable_win32_dll=no
8222
8223
8224 # Check whether --enable-shared was given.
8225 if test "${enable_shared+set}" = set; then :
8226 enableval=$enable_shared; p=${PACKAGE-default}
8227 case $enableval in
8228 yes) enable_shared=yes ;;
8229 no) enable_shared=no ;;
8230 *)
8231 enable_shared=no
8232 # Look at the argument we got. We use all the common list separators.
8233 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8234 for pkg in $enableval; do
8235 IFS="$lt_save_ifs"
8236 if test "X$pkg" = "X$p"; then
8237 enable_shared=yes
8238 fi
8239 done
8240 IFS="$lt_save_ifs"
8241 ;;
8242 esac
8243 else
8244 enable_shared=yes
8245 fi
8246
8247
8248
8249
8250
8251
8252
8253
8254
8255
8256
8257 # Check whether --with-pic was given.
8258 if test "${with_pic+set}" = set; then :
8259 withval=$with_pic; lt_p=${PACKAGE-default}
8260 case $withval in
8261 yes|no) pic_mode=$withval ;;
8262 *)
8263 pic_mode=default
8264 # Look at the argument we got. We use all the common list separators.
8265 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8266 for lt_pkg in $withval; do
8267 IFS="$lt_save_ifs"
8268 if test "X$lt_pkg" = "X$lt_p"; then
8269 pic_mode=yes
8270 fi
8271 done
8272 IFS="$lt_save_ifs"
8273 ;;
8274 esac
8275 else
8276 pic_mode=default
8277 fi
8278
8279
8280 test -z "$pic_mode" && pic_mode=default
8281
8282
8283
8284
8285
8286
8287
8288 # Check whether --enable-fast-install was given.
8289 if test "${enable_fast_install+set}" = set; then :
8290 enableval=$enable_fast_install; p=${PACKAGE-default}
8291 case $enableval in
8292 yes) enable_fast_install=yes ;;
8293 no) enable_fast_install=no ;;
8294 *)
8295 enable_fast_install=no
8296 # Look at the argument we got. We use all the common list separators.
8297 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8298 for pkg in $enableval; do
8299 IFS="$lt_save_ifs"
8300 if test "X$pkg" = "X$p"; then
8301 enable_fast_install=yes
8302 fi
8303 done
8304 IFS="$lt_save_ifs"
8305 ;;
8306 esac
8307 else
8308 enable_fast_install=yes
8309 fi
8310
8311
8312
8313
8314
8315
8316
8317
8318
8319
8320
8321 # This can be used to rebuild libtool when needed
8322 LIBTOOL_DEPS="$ltmain"
8323
8324 # Always use our own libtool.
8325 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8326
8327
8328
8329
8330
8331
8332
8333
8334
8335
8336
8337
8338
8339
8340
8341
8342
8343
8344
8345
8346
8347
8348
8349
8350
8351
8352
8353
8354
8355
8356 test -z "$LN_S" && LN_S="ln -s"
8357
8358
8359
8360
8361
8362
8363
8364
8365
8366
8367
8368
8369
8370
8371 if test -n "${ZSH_VERSION+set}" ; then
8372 setopt NO_GLOB_SUBST
8373 fi
8374
8375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8376 $as_echo_n "checking for objdir... " >&6; }
8377 if ${lt_cv_objdir+:} false; then :
8378 $as_echo_n "(cached) " >&6
8379 else
8380 rm -f .libs 2>/dev/null
8381 mkdir .libs 2>/dev/null
8382 if test -d .libs; then
8383 lt_cv_objdir=.libs
8384 else
8385 # MS-DOS does not allow filenames that begin with a dot.
8386 lt_cv_objdir=_libs
8387 fi
8388 rmdir .libs 2>/dev/null
8389 fi
8390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8391 $as_echo "$lt_cv_objdir" >&6; }
8392 objdir=$lt_cv_objdir
8393
8394
8395
8396
8397
8398 cat >>confdefs.h <<_ACEOF
8399 #define LT_OBJDIR "$lt_cv_objdir/"
8400 _ACEOF
8401
8402
8403
8404
8405 case $host_os in
8406 aix3*)
8407 # AIX sometimes has problems with the GCC collect2 program. For some
8408 # reason, if we set the COLLECT_NAMES environment variable, the problems
8409 # vanish in a puff of smoke.
8410 if test "X${COLLECT_NAMES+set}" != Xset; then
8411 COLLECT_NAMES=
8412 export COLLECT_NAMES
8413 fi
8414 ;;
8415 esac
8416
8417 # Global variables:
8418 ofile=libtool
8419 can_build_shared=yes
8420
8421 # All known linkers require a `.a' archive for static linking (except MSVC,
8422 # which needs '.lib').
8423 libext=a
8424
8425 with_gnu_ld="$lt_cv_prog_gnu_ld"
8426
8427 old_CC="$CC"
8428 old_CFLAGS="$CFLAGS"
8429
8430 # Set sane defaults for various variables
8431 test -z "$CC" && CC=cc
8432 test -z "$LTCC" && LTCC=$CC
8433 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8434 test -z "$LD" && LD=ld
8435 test -z "$ac_objext" && ac_objext=o
8436
8437 for cc_temp in $compiler""; do
8438 case $cc_temp in
8439 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8440 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8441 \-*) ;;
8442 *) break;;
8443 esac
8444 done
8445 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8446
8447
8448 # Only perform the check for file, if the check method requires it
8449 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8450 case $deplibs_check_method in
8451 file_magic*)
8452 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8454 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8455 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8456 $as_echo_n "(cached) " >&6
8457 else
8458 case $MAGIC_CMD in
8459 [\\/*] | ?:[\\/]*)
8460 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8461 ;;
8462 *)
8463 lt_save_MAGIC_CMD="$MAGIC_CMD"
8464 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8465 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8466 for ac_dir in $ac_dummy; do
8467 IFS="$lt_save_ifs"
8468 test -z "$ac_dir" && ac_dir=.
8469 if test -f $ac_dir/${ac_tool_prefix}file; then
8470 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8471 if test -n "$file_magic_test_file"; then
8472 case $deplibs_check_method in
8473 "file_magic "*)
8474 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8475 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8476 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8477 $EGREP "$file_magic_regex" > /dev/null; then
8478 :
8479 else
8480 cat <<_LT_EOF 1>&2
8481
8482 *** Warning: the command libtool uses to detect shared libraries,
8483 *** $file_magic_cmd, produces output that libtool cannot recognize.
8484 *** The result is that libtool may fail to recognize shared libraries
8485 *** as such. This will affect the creation of libtool libraries that
8486 *** depend on shared libraries, but programs linked with such libtool
8487 *** libraries will work regardless of this problem. Nevertheless, you
8488 *** may want to report the problem to your system manager and/or to
8489 *** bug-libtool@gnu.org
8490
8491 _LT_EOF
8492 fi ;;
8493 esac
8494 fi
8495 break
8496 fi
8497 done
8498 IFS="$lt_save_ifs"
8499 MAGIC_CMD="$lt_save_MAGIC_CMD"
8500 ;;
8501 esac
8502 fi
8503
8504 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8505 if test -n "$MAGIC_CMD"; then
8506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8507 $as_echo "$MAGIC_CMD" >&6; }
8508 else
8509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8510 $as_echo "no" >&6; }
8511 fi
8512
8513
8514
8515
8516
8517 if test -z "$lt_cv_path_MAGIC_CMD"; then
8518 if test -n "$ac_tool_prefix"; then
8519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8520 $as_echo_n "checking for file... " >&6; }
8521 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8522 $as_echo_n "(cached) " >&6
8523 else
8524 case $MAGIC_CMD in
8525 [\\/*] | ?:[\\/]*)
8526 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8527 ;;
8528 *)
8529 lt_save_MAGIC_CMD="$MAGIC_CMD"
8530 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8531 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8532 for ac_dir in $ac_dummy; do
8533 IFS="$lt_save_ifs"
8534 test -z "$ac_dir" && ac_dir=.
8535 if test -f $ac_dir/file; then
8536 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8537 if test -n "$file_magic_test_file"; then
8538 case $deplibs_check_method in
8539 "file_magic "*)
8540 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8541 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8542 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8543 $EGREP "$file_magic_regex" > /dev/null; then
8544 :
8545 else
8546 cat <<_LT_EOF 1>&2
8547
8548 *** Warning: the command libtool uses to detect shared libraries,
8549 *** $file_magic_cmd, produces output that libtool cannot recognize.
8550 *** The result is that libtool may fail to recognize shared libraries
8551 *** as such. This will affect the creation of libtool libraries that
8552 *** depend on shared libraries, but programs linked with such libtool
8553 *** libraries will work regardless of this problem. Nevertheless, you
8554 *** may want to report the problem to your system manager and/or to
8555 *** bug-libtool@gnu.org
8556
8557 _LT_EOF
8558 fi ;;
8559 esac
8560 fi
8561 break
8562 fi
8563 done
8564 IFS="$lt_save_ifs"
8565 MAGIC_CMD="$lt_save_MAGIC_CMD"
8566 ;;
8567 esac
8568 fi
8569
8570 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8571 if test -n "$MAGIC_CMD"; then
8572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8573 $as_echo "$MAGIC_CMD" >&6; }
8574 else
8575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8576 $as_echo "no" >&6; }
8577 fi
8578
8579
8580 else
8581 MAGIC_CMD=:
8582 fi
8583 fi
8584
8585 fi
8586 ;;
8587 esac
8588
8589 # Use C for the default configuration in the libtool script
8590
8591 lt_save_CC="$CC"
8592 ac_ext=c
8593 ac_cpp='$CPP $CPPFLAGS'
8594 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8595 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8596 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8597
8598
8599 # Source file extension for C test sources.
8600 ac_ext=c
8601
8602 # Object file extension for compiled C test sources.
8603 objext=o
8604 objext=$objext
8605
8606 # Code to be used in simple compile tests
8607 lt_simple_compile_test_code="int some_variable = 0;"
8608
8609 # Code to be used in simple link tests
8610 lt_simple_link_test_code='int main(){return(0);}'
8611
8612
8613
8614
8615
8616
8617
8618 # If no C compiler was specified, use CC.
8619 LTCC=${LTCC-"$CC"}
8620
8621 # If no C compiler flags were specified, use CFLAGS.
8622 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8623
8624 # Allow CC to be a program name with arguments.
8625 compiler=$CC
8626
8627 # Save the default compiler, since it gets overwritten when the other
8628 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8629 compiler_DEFAULT=$CC
8630
8631 # save warnings/boilerplate of simple test code
8632 ac_outfile=conftest.$ac_objext
8633 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8634 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8635 _lt_compiler_boilerplate=`cat conftest.err`
8636 $RM conftest*
8637
8638 ac_outfile=conftest.$ac_objext
8639 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8640 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8641 _lt_linker_boilerplate=`cat conftest.err`
8642 $RM -r conftest*
8643
8644
8645 if test -n "$compiler"; then
8646
8647 lt_prog_compiler_no_builtin_flag=
8648
8649 if test "$GCC" = yes; then
8650 case $cc_basename in
8651 nvcc*)
8652 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8653 *)
8654 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8655 esac
8656
8657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8658 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8659 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8660 $as_echo_n "(cached) " >&6
8661 else
8662 lt_cv_prog_compiler_rtti_exceptions=no
8663 ac_outfile=conftest.$ac_objext
8664 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8665 lt_compiler_flag="-fno-rtti -fno-exceptions"
8666 # Insert the option either (1) after the last *FLAGS variable, or
8667 # (2) before a word containing "conftest.", or (3) at the end.
8668 # Note that $ac_compile itself does not contain backslashes and begins
8669 # with a dollar sign (not a hyphen), so the echo should work correctly.
8670 # The option is referenced via a variable to avoid confusing sed.
8671 lt_compile=`echo "$ac_compile" | $SED \
8672 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8673 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8674 -e 's:$: $lt_compiler_flag:'`
8675 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8676 (eval "$lt_compile" 2>conftest.err)
8677 ac_status=$?
8678 cat conftest.err >&5
8679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8680 if (exit $ac_status) && test -s "$ac_outfile"; then
8681 # The compiler can only warn and ignore the option if not recognized
8682 # So say no if there are warnings other than the usual output.
8683 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8684 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8685 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8686 lt_cv_prog_compiler_rtti_exceptions=yes
8687 fi
8688 fi
8689 $RM conftest*
8690
8691 fi
8692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8693 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8694
8695 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8696 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8697 else
8698 :
8699 fi
8700
8701 fi
8702
8703
8704
8705
8706
8707
8708 lt_prog_compiler_wl=
8709 lt_prog_compiler_pic=
8710 lt_prog_compiler_static=
8711
8712
8713 if test "$GCC" = yes; then
8714 lt_prog_compiler_wl='-Wl,'
8715 lt_prog_compiler_static='-static'
8716
8717 case $host_os in
8718 aix*)
8719 # All AIX code is PIC.
8720 if test "$host_cpu" = ia64; then
8721 # AIX 5 now supports IA64 processor
8722 lt_prog_compiler_static='-Bstatic'
8723 fi
8724 ;;
8725
8726 amigaos*)
8727 case $host_cpu in
8728 powerpc)
8729 # see comment about AmigaOS4 .so support
8730 lt_prog_compiler_pic='-fPIC'
8731 ;;
8732 m68k)
8733 # FIXME: we need at least 68020 code to build shared libraries, but
8734 # adding the `-m68020' flag to GCC prevents building anything better,
8735 # like `-m68040'.
8736 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8737 ;;
8738 esac
8739 ;;
8740
8741 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8742 # PIC is the default for these OSes.
8743 ;;
8744
8745 mingw* | cygwin* | pw32* | os2* | cegcc*)
8746 # This hack is so that the source file can tell whether it is being
8747 # built for inclusion in a dll (and should export symbols for example).
8748 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8749 # (--disable-auto-import) libraries
8750 lt_prog_compiler_pic='-DDLL_EXPORT'
8751 ;;
8752
8753 darwin* | rhapsody*)
8754 # PIC is the default on this platform
8755 # Common symbols not allowed in MH_DYLIB files
8756 lt_prog_compiler_pic='-fno-common'
8757 ;;
8758
8759 haiku*)
8760 # PIC is the default for Haiku.
8761 # The "-static" flag exists, but is broken.
8762 lt_prog_compiler_static=
8763 ;;
8764
8765 hpux*)
8766 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8767 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8768 # sets the default TLS model and affects inlining.
8769 case $host_cpu in
8770 hppa*64*)
8771 # +Z the default
8772 ;;
8773 *)
8774 lt_prog_compiler_pic='-fPIC'
8775 ;;
8776 esac
8777 ;;
8778
8779 interix[3-9]*)
8780 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8781 # Instead, we relocate shared libraries at runtime.
8782 ;;
8783
8784 msdosdjgpp*)
8785 # Just because we use GCC doesn't mean we suddenly get shared libraries
8786 # on systems that don't support them.
8787 lt_prog_compiler_can_build_shared=no
8788 enable_shared=no
8789 ;;
8790
8791 *nto* | *qnx*)
8792 # QNX uses GNU C++, but need to define -shared option too, otherwise
8793 # it will coredump.
8794 lt_prog_compiler_pic='-fPIC -shared'
8795 ;;
8796
8797 sysv4*MP*)
8798 if test -d /usr/nec; then
8799 lt_prog_compiler_pic=-Kconform_pic
8800 fi
8801 ;;
8802
8803 *)
8804 lt_prog_compiler_pic='-fPIC'
8805 ;;
8806 esac
8807
8808 case $cc_basename in
8809 nvcc*) # Cuda Compiler Driver 2.2
8810 lt_prog_compiler_wl='-Xlinker '
8811 if test -n "$lt_prog_compiler_pic"; then
8812 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8813 fi
8814 ;;
8815 esac
8816 else
8817 # PORTME Check for flag to pass linker flags through the system compiler.
8818 case $host_os in
8819 aix*)
8820 lt_prog_compiler_wl='-Wl,'
8821 if test "$host_cpu" = ia64; then
8822 # AIX 5 now supports IA64 processor
8823 lt_prog_compiler_static='-Bstatic'
8824 else
8825 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8826 fi
8827 ;;
8828
8829 mingw* | cygwin* | pw32* | os2* | cegcc*)
8830 # This hack is so that the source file can tell whether it is being
8831 # built for inclusion in a dll (and should export symbols for example).
8832 lt_prog_compiler_pic='-DDLL_EXPORT'
8833 ;;
8834
8835 hpux9* | hpux10* | hpux11*)
8836 lt_prog_compiler_wl='-Wl,'
8837 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8838 # not for PA HP-UX.
8839 case $host_cpu in
8840 hppa*64*|ia64*)
8841 # +Z the default
8842 ;;
8843 *)
8844 lt_prog_compiler_pic='+Z'
8845 ;;
8846 esac
8847 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8848 lt_prog_compiler_static='${wl}-a ${wl}archive'
8849 ;;
8850
8851 irix5* | irix6* | nonstopux*)
8852 lt_prog_compiler_wl='-Wl,'
8853 # PIC (with -KPIC) is the default.
8854 lt_prog_compiler_static='-non_shared'
8855 ;;
8856
8857 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8858 case $cc_basename in
8859 # old Intel for x86_64 which still supported -KPIC.
8860 ecc*)
8861 lt_prog_compiler_wl='-Wl,'
8862 lt_prog_compiler_pic='-KPIC'
8863 lt_prog_compiler_static='-static'
8864 ;;
8865 # icc used to be incompatible with GCC.
8866 # ICC 10 doesn't accept -KPIC any more.
8867 icc* | ifort*)
8868 lt_prog_compiler_wl='-Wl,'
8869 lt_prog_compiler_pic='-fPIC'
8870 lt_prog_compiler_static='-static'
8871 ;;
8872 # Lahey Fortran 8.1.
8873 lf95*)
8874 lt_prog_compiler_wl='-Wl,'
8875 lt_prog_compiler_pic='--shared'
8876 lt_prog_compiler_static='--static'
8877 ;;
8878 nagfor*)
8879 # NAG Fortran compiler
8880 lt_prog_compiler_wl='-Wl,-Wl,,'
8881 lt_prog_compiler_pic='-PIC'
8882 lt_prog_compiler_static='-Bstatic'
8883 ;;
8884 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8885 # Portland Group compilers (*not* the Pentium gcc compiler,
8886 # which looks to be a dead project)
8887 lt_prog_compiler_wl='-Wl,'
8888 lt_prog_compiler_pic='-fpic'
8889 lt_prog_compiler_static='-Bstatic'
8890 ;;
8891 ccc*)
8892 lt_prog_compiler_wl='-Wl,'
8893 # All Alpha code is PIC.
8894 lt_prog_compiler_static='-non_shared'
8895 ;;
8896 xl* | bgxl* | bgf* | mpixl*)
8897 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8898 lt_prog_compiler_wl='-Wl,'
8899 lt_prog_compiler_pic='-qpic'
8900 lt_prog_compiler_static='-qstaticlink'
8901 ;;
8902 *)
8903 case `$CC -V 2>&1 | sed 5q` in
8904 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8905 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8906 lt_prog_compiler_pic='-KPIC'
8907 lt_prog_compiler_static='-Bstatic'
8908 lt_prog_compiler_wl=''
8909 ;;
8910 *Sun\ F* | *Sun*Fortran*)
8911 lt_prog_compiler_pic='-KPIC'
8912 lt_prog_compiler_static='-Bstatic'
8913 lt_prog_compiler_wl='-Qoption ld '
8914 ;;
8915 *Sun\ C*)
8916 # Sun C 5.9
8917 lt_prog_compiler_pic='-KPIC'
8918 lt_prog_compiler_static='-Bstatic'
8919 lt_prog_compiler_wl='-Wl,'
8920 ;;
8921 *Intel*\ [CF]*Compiler*)
8922 lt_prog_compiler_wl='-Wl,'
8923 lt_prog_compiler_pic='-fPIC'
8924 lt_prog_compiler_static='-static'
8925 ;;
8926 *Portland\ Group*)
8927 lt_prog_compiler_wl='-Wl,'
8928 lt_prog_compiler_pic='-fpic'
8929 lt_prog_compiler_static='-Bstatic'
8930 ;;
8931 esac
8932 ;;
8933 esac
8934 ;;
8935
8936 newsos6)
8937 lt_prog_compiler_pic='-KPIC'
8938 lt_prog_compiler_static='-Bstatic'
8939 ;;
8940
8941 *nto* | *qnx*)
8942 # QNX uses GNU C++, but need to define -shared option too, otherwise
8943 # it will coredump.
8944 lt_prog_compiler_pic='-fPIC -shared'
8945 ;;
8946
8947 osf3* | osf4* | osf5*)
8948 lt_prog_compiler_wl='-Wl,'
8949 # All OSF/1 code is PIC.
8950 lt_prog_compiler_static='-non_shared'
8951 ;;
8952
8953 rdos*)
8954 lt_prog_compiler_static='-non_shared'
8955 ;;
8956
8957 solaris*)
8958 lt_prog_compiler_pic='-KPIC'
8959 lt_prog_compiler_static='-Bstatic'
8960 case $cc_basename in
8961 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8962 lt_prog_compiler_wl='-Qoption ld ';;
8963 *)
8964 lt_prog_compiler_wl='-Wl,';;
8965 esac
8966 ;;
8967
8968 sunos4*)
8969 lt_prog_compiler_wl='-Qoption ld '
8970 lt_prog_compiler_pic='-PIC'
8971 lt_prog_compiler_static='-Bstatic'
8972 ;;
8973
8974 sysv4 | sysv4.2uw2* | sysv4.3*)
8975 lt_prog_compiler_wl='-Wl,'
8976 lt_prog_compiler_pic='-KPIC'
8977 lt_prog_compiler_static='-Bstatic'
8978 ;;
8979
8980 sysv4*MP*)
8981 if test -d /usr/nec ;then
8982 lt_prog_compiler_pic='-Kconform_pic'
8983 lt_prog_compiler_static='-Bstatic'
8984 fi
8985 ;;
8986
8987 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8988 lt_prog_compiler_wl='-Wl,'
8989 lt_prog_compiler_pic='-KPIC'
8990 lt_prog_compiler_static='-Bstatic'
8991 ;;
8992
8993 unicos*)
8994 lt_prog_compiler_wl='-Wl,'
8995 lt_prog_compiler_can_build_shared=no
8996 ;;
8997
8998 uts4*)
8999 lt_prog_compiler_pic='-pic'
9000 lt_prog_compiler_static='-Bstatic'
9001 ;;
9002
9003 *)
9004 lt_prog_compiler_can_build_shared=no
9005 ;;
9006 esac
9007 fi
9008
9009 case $host_os in
9010 # For platforms which do not support PIC, -DPIC is meaningless:
9011 *djgpp*)
9012 lt_prog_compiler_pic=
9013 ;;
9014 *)
9015 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9016 ;;
9017 esac
9018
9019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9020 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9021 if ${lt_cv_prog_compiler_pic+:} false; then :
9022 $as_echo_n "(cached) " >&6
9023 else
9024 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9025 fi
9026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9027 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
9028 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9029
9030 #
9031 # Check to make sure the PIC flag actually works.
9032 #
9033 if test -n "$lt_prog_compiler_pic"; then
9034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9035 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9036 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9037 $as_echo_n "(cached) " >&6
9038 else
9039 lt_cv_prog_compiler_pic_works=no
9040 ac_outfile=conftest.$ac_objext
9041 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9042 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9043 # Insert the option either (1) after the last *FLAGS variable, or
9044 # (2) before a word containing "conftest.", or (3) at the end.
9045 # Note that $ac_compile itself does not contain backslashes and begins
9046 # with a dollar sign (not a hyphen), so the echo should work correctly.
9047 # The option is referenced via a variable to avoid confusing sed.
9048 lt_compile=`echo "$ac_compile" | $SED \
9049 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9050 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9051 -e 's:$: $lt_compiler_flag:'`
9052 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9053 (eval "$lt_compile" 2>conftest.err)
9054 ac_status=$?
9055 cat conftest.err >&5
9056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9057 if (exit $ac_status) && test -s "$ac_outfile"; then
9058 # The compiler can only warn and ignore the option if not recognized
9059 # So say no if there are warnings other than the usual output.
9060 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9061 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9062 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9063 lt_cv_prog_compiler_pic_works=yes
9064 fi
9065 fi
9066 $RM conftest*
9067
9068 fi
9069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9070 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9071
9072 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9073 case $lt_prog_compiler_pic in
9074 "" | " "*) ;;
9075 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9076 esac
9077 else
9078 lt_prog_compiler_pic=
9079 lt_prog_compiler_can_build_shared=no
9080 fi
9081
9082 fi
9083
9084
9085
9086
9087
9088
9089
9090
9091
9092
9093
9094 #
9095 # Check to make sure the static flag actually works.
9096 #
9097 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9099 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9100 if ${lt_cv_prog_compiler_static_works+:} false; then :
9101 $as_echo_n "(cached) " >&6
9102 else
9103 lt_cv_prog_compiler_static_works=no
9104 save_LDFLAGS="$LDFLAGS"
9105 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9106 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9107 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9108 # The linker can only warn and ignore the option if not recognized
9109 # So say no if there are warnings
9110 if test -s conftest.err; then
9111 # Append any errors to the config.log.
9112 cat conftest.err 1>&5
9113 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9114 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9115 if diff conftest.exp conftest.er2 >/dev/null; then
9116 lt_cv_prog_compiler_static_works=yes
9117 fi
9118 else
9119 lt_cv_prog_compiler_static_works=yes
9120 fi
9121 fi
9122 $RM -r conftest*
9123 LDFLAGS="$save_LDFLAGS"
9124
9125 fi
9126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9127 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9128
9129 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9130 :
9131 else
9132 lt_prog_compiler_static=
9133 fi
9134
9135
9136
9137
9138
9139
9140
9141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9142 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9143 if ${lt_cv_prog_compiler_c_o+:} false; then :
9144 $as_echo_n "(cached) " >&6
9145 else
9146 lt_cv_prog_compiler_c_o=no
9147 $RM -r conftest 2>/dev/null
9148 mkdir conftest
9149 cd conftest
9150 mkdir out
9151 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9152
9153 lt_compiler_flag="-o out/conftest2.$ac_objext"
9154 # Insert the option either (1) after the last *FLAGS variable, or
9155 # (2) before a word containing "conftest.", or (3) at the end.
9156 # Note that $ac_compile itself does not contain backslashes and begins
9157 # with a dollar sign (not a hyphen), so the echo should work correctly.
9158 lt_compile=`echo "$ac_compile" | $SED \
9159 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9160 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9161 -e 's:$: $lt_compiler_flag:'`
9162 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9163 (eval "$lt_compile" 2>out/conftest.err)
9164 ac_status=$?
9165 cat out/conftest.err >&5
9166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9167 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9168 then
9169 # The compiler can only warn and ignore the option if not recognized
9170 # So say no if there are warnings
9171 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9172 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9173 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9174 lt_cv_prog_compiler_c_o=yes
9175 fi
9176 fi
9177 chmod u+w . 2>&5
9178 $RM conftest*
9179 # SGI C++ compiler will create directory out/ii_files/ for
9180 # template instantiation
9181 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9182 $RM out/* && rmdir out
9183 cd ..
9184 $RM -r conftest
9185 $RM conftest*
9186
9187 fi
9188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9189 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9190
9191
9192
9193
9194
9195
9196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9197 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9198 if ${lt_cv_prog_compiler_c_o+:} false; then :
9199 $as_echo_n "(cached) " >&6
9200 else
9201 lt_cv_prog_compiler_c_o=no
9202 $RM -r conftest 2>/dev/null
9203 mkdir conftest
9204 cd conftest
9205 mkdir out
9206 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9207
9208 lt_compiler_flag="-o out/conftest2.$ac_objext"
9209 # Insert the option either (1) after the last *FLAGS variable, or
9210 # (2) before a word containing "conftest.", or (3) at the end.
9211 # Note that $ac_compile itself does not contain backslashes and begins
9212 # with a dollar sign (not a hyphen), so the echo should work correctly.
9213 lt_compile=`echo "$ac_compile" | $SED \
9214 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9215 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9216 -e 's:$: $lt_compiler_flag:'`
9217 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9218 (eval "$lt_compile" 2>out/conftest.err)
9219 ac_status=$?
9220 cat out/conftest.err >&5
9221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9222 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9223 then
9224 # The compiler can only warn and ignore the option if not recognized
9225 # So say no if there are warnings
9226 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9227 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9228 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9229 lt_cv_prog_compiler_c_o=yes
9230 fi
9231 fi
9232 chmod u+w . 2>&5
9233 $RM conftest*
9234 # SGI C++ compiler will create directory out/ii_files/ for
9235 # template instantiation
9236 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9237 $RM out/* && rmdir out
9238 cd ..
9239 $RM -r conftest
9240 $RM conftest*
9241
9242 fi
9243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9244 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9245
9246
9247
9248
9249 hard_links="nottested"
9250 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9251 # do not overwrite the value of need_locks provided by the user
9252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9253 $as_echo_n "checking if we can lock with hard links... " >&6; }
9254 hard_links=yes
9255 $RM conftest*
9256 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9257 touch conftest.a
9258 ln conftest.a conftest.b 2>&5 || hard_links=no
9259 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9261 $as_echo "$hard_links" >&6; }
9262 if test "$hard_links" = no; then
9263 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9264 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9265 need_locks=warn
9266 fi
9267 else
9268 need_locks=no
9269 fi
9270
9271
9272
9273
9274
9275
9276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9277 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9278
9279 runpath_var=
9280 allow_undefined_flag=
9281 always_export_symbols=no
9282 archive_cmds=
9283 archive_expsym_cmds=
9284 compiler_needs_object=no
9285 enable_shared_with_static_runtimes=no
9286 export_dynamic_flag_spec=
9287 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9288 hardcode_automatic=no
9289 hardcode_direct=no
9290 hardcode_direct_absolute=no
9291 hardcode_libdir_flag_spec=
9292 hardcode_libdir_separator=
9293 hardcode_minus_L=no
9294 hardcode_shlibpath_var=unsupported
9295 inherit_rpath=no
9296 link_all_deplibs=unknown
9297 module_cmds=
9298 module_expsym_cmds=
9299 old_archive_from_new_cmds=
9300 old_archive_from_expsyms_cmds=
9301 thread_safe_flag_spec=
9302 whole_archive_flag_spec=
9303 # include_expsyms should be a list of space-separated symbols to be *always*
9304 # included in the symbol list
9305 include_expsyms=
9306 # exclude_expsyms can be an extended regexp of symbols to exclude
9307 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9308 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9309 # as well as any symbol that contains `d'.
9310 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9311 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9312 # platforms (ab)use it in PIC code, but their linkers get confused if
9313 # the symbol is explicitly referenced. Since portable code cannot
9314 # rely on this symbol name, it's probably fine to never include it in
9315 # preloaded symbol tables.
9316 # Exclude shared library initialization/finalization symbols.
9317 extract_expsyms_cmds=
9318
9319 case $host_os in
9320 cygwin* | mingw* | pw32* | cegcc*)
9321 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9322 # When not using gcc, we currently assume that we are using
9323 # Microsoft Visual C++.
9324 if test "$GCC" != yes; then
9325 with_gnu_ld=no
9326 fi
9327 ;;
9328 interix*)
9329 # we just hope/assume this is gcc and not c89 (= MSVC++)
9330 with_gnu_ld=yes
9331 ;;
9332 openbsd*)
9333 with_gnu_ld=no
9334 ;;
9335 esac
9336
9337 ld_shlibs=yes
9338
9339 # On some targets, GNU ld is compatible enough with the native linker
9340 # that we're better off using the native interface for both.
9341 lt_use_gnu_ld_interface=no
9342 if test "$with_gnu_ld" = yes; then
9343 case $host_os in
9344 aix*)
9345 # The AIX port of GNU ld has always aspired to compatibility
9346 # with the native linker. However, as the warning in the GNU ld
9347 # block says, versions before 2.19.5* couldn't really create working
9348 # shared libraries, regardless of the interface used.
9349 case `$LD -v 2>&1` in
9350 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9351 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9352 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9353 *)
9354 lt_use_gnu_ld_interface=yes
9355 ;;
9356 esac
9357 ;;
9358 *)
9359 lt_use_gnu_ld_interface=yes
9360 ;;
9361 esac
9362 fi
9363
9364 if test "$lt_use_gnu_ld_interface" = yes; then
9365 # If archive_cmds runs LD, not CC, wlarc should be empty
9366 wlarc='${wl}'
9367
9368 # Set some defaults for GNU ld with shared library support. These
9369 # are reset later if shared libraries are not supported. Putting them
9370 # here allows them to be overridden if necessary.
9371 runpath_var=LD_RUN_PATH
9372 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9373 export_dynamic_flag_spec='${wl}--export-dynamic'
9374 # ancient GNU ld didn't support --whole-archive et. al.
9375 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9376 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9377 else
9378 whole_archive_flag_spec=
9379 fi
9380 supports_anon_versioning=no
9381 case `$LD -v 2>&1` in
9382 *GNU\ gold*) supports_anon_versioning=yes ;;
9383 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9384 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9385 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9386 *\ 2.11.*) ;; # other 2.11 versions
9387 *) supports_anon_versioning=yes ;;
9388 esac
9389
9390 # See if GNU ld supports shared libraries.
9391 case $host_os in
9392 aix[3-9]*)
9393 # On AIX/PPC, the GNU linker is very broken
9394 if test "$host_cpu" != ia64; then
9395 ld_shlibs=no
9396 cat <<_LT_EOF 1>&2
9397
9398 *** Warning: the GNU linker, at least up to release 2.19, is reported
9399 *** to be unable to reliably create shared libraries on AIX.
9400 *** Therefore, libtool is disabling shared libraries support. If you
9401 *** really care for shared libraries, you may want to install binutils
9402 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9403 *** You will then need to restart the configuration process.
9404
9405 _LT_EOF
9406 fi
9407 ;;
9408
9409 amigaos*)
9410 case $host_cpu in
9411 powerpc)
9412 # see comment about AmigaOS4 .so support
9413 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9414 archive_expsym_cmds=''
9415 ;;
9416 m68k)
9417 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)'
9418 hardcode_libdir_flag_spec='-L$libdir'
9419 hardcode_minus_L=yes
9420 ;;
9421 esac
9422 ;;
9423
9424 beos*)
9425 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9426 allow_undefined_flag=unsupported
9427 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9428 # support --undefined. This deserves some investigation. FIXME
9429 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9430 else
9431 ld_shlibs=no
9432 fi
9433 ;;
9434
9435 cygwin* | mingw* | pw32* | cegcc*)
9436 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9437 # as there is no search path for DLLs.
9438 hardcode_libdir_flag_spec='-L$libdir'
9439 export_dynamic_flag_spec='${wl}--export-all-symbols'
9440 allow_undefined_flag=unsupported
9441 always_export_symbols=no
9442 enable_shared_with_static_runtimes=yes
9443 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'
9444 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9445
9446 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9447 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9448 # If the export-symbols file already is a .def file (1st line
9449 # is EXPORTS), use it as is; otherwise, prepend...
9450 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9451 cp $export_symbols $output_objdir/$soname.def;
9452 else
9453 echo EXPORTS > $output_objdir/$soname.def;
9454 cat $export_symbols >> $output_objdir/$soname.def;
9455 fi~
9456 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9457 else
9458 ld_shlibs=no
9459 fi
9460 ;;
9461
9462 haiku*)
9463 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9464 link_all_deplibs=yes
9465 ;;
9466
9467 interix[3-9]*)
9468 hardcode_direct=no
9469 hardcode_shlibpath_var=no
9470 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9471 export_dynamic_flag_spec='${wl}-E'
9472 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9473 # Instead, shared libraries are loaded at an image base (0x10000000 by
9474 # default) and relocated if they conflict, which is a slow very memory
9475 # consuming and fragmenting process. To avoid this, we pick a random,
9476 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9477 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9478 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9479 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'
9480 ;;
9481
9482 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9483 tmp_diet=no
9484 if test "$host_os" = linux-dietlibc; then
9485 case $cc_basename in
9486 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9487 esac
9488 fi
9489 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9490 && test "$tmp_diet" = no
9491 then
9492 tmp_addflag=' $pic_flag'
9493 tmp_sharedflag='-shared'
9494 case $cc_basename,$host_cpu in
9495 pgcc*) # Portland Group C compiler
9496 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'
9497 tmp_addflag=' $pic_flag'
9498 ;;
9499 pgf77* | pgf90* | pgf95* | pgfortran*)
9500 # Portland Group f77 and f90 compilers
9501 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'
9502 tmp_addflag=' $pic_flag -Mnomain' ;;
9503 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9504 tmp_addflag=' -i_dynamic' ;;
9505 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9506 tmp_addflag=' -i_dynamic -nofor_main' ;;
9507 ifc* | ifort*) # Intel Fortran compiler
9508 tmp_addflag=' -nofor_main' ;;
9509 lf95*) # Lahey Fortran 8.1
9510 whole_archive_flag_spec=
9511 tmp_sharedflag='--shared' ;;
9512 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9513 tmp_sharedflag='-qmkshrobj'
9514 tmp_addflag= ;;
9515 nvcc*) # Cuda Compiler Driver 2.2
9516 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'
9517 compiler_needs_object=yes
9518 ;;
9519 esac
9520 case `$CC -V 2>&1 | sed 5q` in
9521 *Sun\ C*) # Sun C 5.9
9522 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'
9523 compiler_needs_object=yes
9524 tmp_sharedflag='-G' ;;
9525 *Sun\ F*) # Sun Fortran 8.3
9526 tmp_sharedflag='-G' ;;
9527 esac
9528 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9529
9530 if test "x$supports_anon_versioning" = xyes; then
9531 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9532 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9533 echo "local: *; };" >> $output_objdir/$libname.ver~
9534 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9535 fi
9536
9537 case $cc_basename in
9538 xlf* | bgf* | bgxlf* | mpixlf*)
9539 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9540 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9541 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9542 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9543 if test "x$supports_anon_versioning" = xyes; then
9544 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9545 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9546 echo "local: *; };" >> $output_objdir/$libname.ver~
9547 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9548 fi
9549 ;;
9550 esac
9551 else
9552 ld_shlibs=no
9553 fi
9554 ;;
9555
9556 netbsd*)
9557 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9558 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9559 wlarc=
9560 else
9561 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9562 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9563 fi
9564 ;;
9565
9566 solaris*)
9567 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9568 ld_shlibs=no
9569 cat <<_LT_EOF 1>&2
9570
9571 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9572 *** create shared libraries on Solaris systems. Therefore, libtool
9573 *** is disabling shared libraries support. We urge you to upgrade GNU
9574 *** binutils to release 2.9.1 or newer. Another option is to modify
9575 *** your PATH or compiler configuration so that the native linker is
9576 *** used, and then restart.
9577
9578 _LT_EOF
9579 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9580 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9581 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9582 else
9583 ld_shlibs=no
9584 fi
9585 ;;
9586
9587 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9588 case `$LD -v 2>&1` in
9589 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9590 ld_shlibs=no
9591 cat <<_LT_EOF 1>&2
9592
9593 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9594 *** reliably create shared libraries on SCO systems. Therefore, libtool
9595 *** is disabling shared libraries support. We urge you to upgrade GNU
9596 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9597 *** your PATH or compiler configuration so that the native linker is
9598 *** used, and then restart.
9599
9600 _LT_EOF
9601 ;;
9602 *)
9603 # For security reasons, it is highly recommended that you always
9604 # use absolute paths for naming shared libraries, and exclude the
9605 # DT_RUNPATH tag from executables and libraries. But doing so
9606 # requires that you compile everything twice, which is a pain.
9607 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9608 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9609 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9610 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9611 else
9612 ld_shlibs=no
9613 fi
9614 ;;
9615 esac
9616 ;;
9617
9618 sunos4*)
9619 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9620 wlarc=
9621 hardcode_direct=yes
9622 hardcode_shlibpath_var=no
9623 ;;
9624
9625 *)
9626 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9627 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9628 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9629 else
9630 ld_shlibs=no
9631 fi
9632 ;;
9633 esac
9634
9635 if test "$ld_shlibs" = no; then
9636 runpath_var=
9637 hardcode_libdir_flag_spec=
9638 export_dynamic_flag_spec=
9639 whole_archive_flag_spec=
9640 fi
9641 else
9642 # PORTME fill in a description of your system's linker (not GNU ld)
9643 case $host_os in
9644 aix3*)
9645 allow_undefined_flag=unsupported
9646 always_export_symbols=yes
9647 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'
9648 # Note: this linker hardcodes the directories in LIBPATH if there
9649 # are no directories specified by -L.
9650 hardcode_minus_L=yes
9651 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9652 # Neither direct hardcoding nor static linking is supported with a
9653 # broken collect2.
9654 hardcode_direct=unsupported
9655 fi
9656 ;;
9657
9658 aix[4-9]*)
9659 if test "$host_cpu" = ia64; then
9660 # On IA64, the linker does run time linking by default, so we don't
9661 # have to do anything special.
9662 aix_use_runtimelinking=no
9663 exp_sym_flag='-Bexport'
9664 no_entry_flag=""
9665 else
9666 # If we're using GNU nm, then we don't want the "-C" option.
9667 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9668 # Also, AIX nm treats weak defined symbols like other global
9669 # defined symbols, whereas GNU nm marks them as "W".
9670 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9671 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'
9672 else
9673 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'
9674 fi
9675 aix_use_runtimelinking=no
9676
9677 # Test if we are trying to use run time linking or normal
9678 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9679 # need to do runtime linking.
9680 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9681 for ld_flag in $LDFLAGS; do
9682 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9683 aix_use_runtimelinking=yes
9684 break
9685 fi
9686 done
9687 ;;
9688 esac
9689
9690 exp_sym_flag='-bexport'
9691 no_entry_flag='-bnoentry'
9692 fi
9693
9694 # When large executables or shared objects are built, AIX ld can
9695 # have problems creating the table of contents. If linking a library
9696 # or program results in "error TOC overflow" add -mminimal-toc to
9697 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9698 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9699
9700 archive_cmds=''
9701 hardcode_direct=yes
9702 hardcode_direct_absolute=yes
9703 hardcode_libdir_separator=':'
9704 link_all_deplibs=yes
9705 file_list_spec='${wl}-f,'
9706
9707 if test "$GCC" = yes; then
9708 case $host_os in aix4.[012]|aix4.[012].*)
9709 # We only want to do this on AIX 4.2 and lower, the check
9710 # below for broken collect2 doesn't work under 4.3+
9711 collect2name=`${CC} -print-prog-name=collect2`
9712 if test -f "$collect2name" &&
9713 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9714 then
9715 # We have reworked collect2
9716 :
9717 else
9718 # We have old collect2
9719 hardcode_direct=unsupported
9720 # It fails to find uninstalled libraries when the uninstalled
9721 # path is not listed in the libpath. Setting hardcode_minus_L
9722 # to unsupported forces relinking
9723 hardcode_minus_L=yes
9724 hardcode_libdir_flag_spec='-L$libdir'
9725 hardcode_libdir_separator=
9726 fi
9727 ;;
9728 esac
9729 shared_flag='-shared'
9730 if test "$aix_use_runtimelinking" = yes; then
9731 shared_flag="$shared_flag "'${wl}-G'
9732 fi
9733 else
9734 # not using gcc
9735 if test "$host_cpu" = ia64; then
9736 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9737 # chokes on -Wl,-G. The following line is correct:
9738 shared_flag='-G'
9739 else
9740 if test "$aix_use_runtimelinking" = yes; then
9741 shared_flag='${wl}-G'
9742 else
9743 shared_flag='${wl}-bM:SRE'
9744 fi
9745 fi
9746 fi
9747
9748 export_dynamic_flag_spec='${wl}-bexpall'
9749 # It seems that -bexpall does not export symbols beginning with
9750 # underscore (_), so it is better to generate a list of symbols to export.
9751 always_export_symbols=yes
9752 if test "$aix_use_runtimelinking" = yes; then
9753 # Warning - without using the other runtime loading flags (-brtl),
9754 # -berok will link without error, but may produce a broken library.
9755 allow_undefined_flag='-berok'
9756 # Determine the default libpath from the value encoded in an
9757 # empty executable.
9758 if test "${lt_cv_aix_libpath+set}" = set; then
9759 aix_libpath=$lt_cv_aix_libpath
9760 else
9761 if ${lt_cv_aix_libpath_+:} false; then :
9762 $as_echo_n "(cached) " >&6
9763 else
9764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9765 /* end confdefs.h. */
9766
9767 int
9768 main ()
9769 {
9770
9771 ;
9772 return 0;
9773 }
9774 _ACEOF
9775 if ac_fn_c_try_link "$LINENO"; then :
9776
9777 lt_aix_libpath_sed='
9778 /Import File Strings/,/^$/ {
9779 /^0/ {
9780 s/^0 *\([^ ]*\) *$/\1/
9781 p
9782 }
9783 }'
9784 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9785 # Check for a 64-bit object if we didn't find anything.
9786 if test -z "$lt_cv_aix_libpath_"; then
9787 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9788 fi
9789 fi
9790 rm -f core conftest.err conftest.$ac_objext \
9791 conftest$ac_exeext conftest.$ac_ext
9792 if test -z "$lt_cv_aix_libpath_"; then
9793 lt_cv_aix_libpath_="/usr/lib:/lib"
9794 fi
9795
9796 fi
9797
9798 aix_libpath=$lt_cv_aix_libpath_
9799 fi
9800
9801 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9802 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"
9803 else
9804 if test "$host_cpu" = ia64; then
9805 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9806 allow_undefined_flag="-z nodefs"
9807 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"
9808 else
9809 # Determine the default libpath from the value encoded in an
9810 # empty executable.
9811 if test "${lt_cv_aix_libpath+set}" = set; then
9812 aix_libpath=$lt_cv_aix_libpath
9813 else
9814 if ${lt_cv_aix_libpath_+:} false; then :
9815 $as_echo_n "(cached) " >&6
9816 else
9817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9818 /* end confdefs.h. */
9819
9820 int
9821 main ()
9822 {
9823
9824 ;
9825 return 0;
9826 }
9827 _ACEOF
9828 if ac_fn_c_try_link "$LINENO"; then :
9829
9830 lt_aix_libpath_sed='
9831 /Import File Strings/,/^$/ {
9832 /^0/ {
9833 s/^0 *\([^ ]*\) *$/\1/
9834 p
9835 }
9836 }'
9837 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9838 # Check for a 64-bit object if we didn't find anything.
9839 if test -z "$lt_cv_aix_libpath_"; then
9840 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9841 fi
9842 fi
9843 rm -f core conftest.err conftest.$ac_objext \
9844 conftest$ac_exeext conftest.$ac_ext
9845 if test -z "$lt_cv_aix_libpath_"; then
9846 lt_cv_aix_libpath_="/usr/lib:/lib"
9847 fi
9848
9849 fi
9850
9851 aix_libpath=$lt_cv_aix_libpath_
9852 fi
9853
9854 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9855 # Warning - without using the other run time loading flags,
9856 # -berok will link without error, but may produce a broken library.
9857 no_undefined_flag=' ${wl}-bernotok'
9858 allow_undefined_flag=' ${wl}-berok'
9859 if test "$with_gnu_ld" = yes; then
9860 # We only use this code for GNU lds that support --whole-archive.
9861 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9862 else
9863 # Exported symbols can be pulled into shared objects from archives
9864 whole_archive_flag_spec='$convenience'
9865 fi
9866 archive_cmds_need_lc=yes
9867 # This is similar to how AIX traditionally builds its shared libraries.
9868 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'
9869 fi
9870 fi
9871 ;;
9872
9873 amigaos*)
9874 case $host_cpu in
9875 powerpc)
9876 # see comment about AmigaOS4 .so support
9877 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9878 archive_expsym_cmds=''
9879 ;;
9880 m68k)
9881 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)'
9882 hardcode_libdir_flag_spec='-L$libdir'
9883 hardcode_minus_L=yes
9884 ;;
9885 esac
9886 ;;
9887
9888 bsdi[45]*)
9889 export_dynamic_flag_spec=-rdynamic
9890 ;;
9891
9892 cygwin* | mingw* | pw32* | cegcc*)
9893 # When not using gcc, we currently assume that we are using
9894 # Microsoft Visual C++.
9895 # hardcode_libdir_flag_spec is actually meaningless, as there is
9896 # no search path for DLLs.
9897 case $cc_basename in
9898 cl*)
9899 # Native MSVC
9900 hardcode_libdir_flag_spec=' '
9901 allow_undefined_flag=unsupported
9902 always_export_symbols=yes
9903 file_list_spec='@'
9904 # Tell ltmain to make .lib files, not .a files.
9905 libext=lib
9906 # Tell ltmain to make .dll files, not .so files.
9907 shrext_cmds=".dll"
9908 # FIXME: Setting linknames here is a bad hack.
9909 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9910 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9911 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9912 else
9913 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9914 fi~
9915 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9916 linknames='
9917 # The linker will not automatically build a static lib if we build a DLL.
9918 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9919 enable_shared_with_static_runtimes=yes
9920 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9921 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9922 # Don't use ranlib
9923 old_postinstall_cmds='chmod 644 $oldlib'
9924 postlink_cmds='lt_outputfile="@OUTPUT@"~
9925 lt_tool_outputfile="@TOOL_OUTPUT@"~
9926 case $lt_outputfile in
9927 *.exe|*.EXE) ;;
9928 *)
9929 lt_outputfile="$lt_outputfile.exe"
9930 lt_tool_outputfile="$lt_tool_outputfile.exe"
9931 ;;
9932 esac~
9933 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9934 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9935 $RM "$lt_outputfile.manifest";
9936 fi'
9937 ;;
9938 *)
9939 # Assume MSVC wrapper
9940 hardcode_libdir_flag_spec=' '
9941 allow_undefined_flag=unsupported
9942 # Tell ltmain to make .lib files, not .a files.
9943 libext=lib
9944 # Tell ltmain to make .dll files, not .so files.
9945 shrext_cmds=".dll"
9946 # FIXME: Setting linknames here is a bad hack.
9947 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9948 # The linker will automatically build a .lib file if we build a DLL.
9949 old_archive_from_new_cmds='true'
9950 # FIXME: Should let the user specify the lib program.
9951 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9952 enable_shared_with_static_runtimes=yes
9953 ;;
9954 esac
9955 ;;
9956
9957 darwin* | rhapsody*)
9958
9959
9960 archive_cmds_need_lc=no
9961 hardcode_direct=no
9962 hardcode_automatic=yes
9963 hardcode_shlibpath_var=unsupported
9964 if test "$lt_cv_ld_force_load" = "yes"; then
9965 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\"`'
9966
9967 else
9968 whole_archive_flag_spec=''
9969 fi
9970 link_all_deplibs=yes
9971 allow_undefined_flag="$_lt_dar_allow_undefined"
9972 case $cc_basename in
9973 ifort*) _lt_dar_can_shared=yes ;;
9974 *) _lt_dar_can_shared=$GCC ;;
9975 esac
9976 if test "$_lt_dar_can_shared" = "yes"; then
9977 output_verbose_link_cmd=func_echo_all
9978 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9979 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9980 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}"
9981 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}"
9982
9983 else
9984 ld_shlibs=no
9985 fi
9986
9987 ;;
9988
9989 dgux*)
9990 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9991 hardcode_libdir_flag_spec='-L$libdir'
9992 hardcode_shlibpath_var=no
9993 ;;
9994
9995 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9996 # support. Future versions do this automatically, but an explicit c++rt0.o
9997 # does not break anything, and helps significantly (at the cost of a little
9998 # extra space).
9999 freebsd2.2*)
10000 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10001 hardcode_libdir_flag_spec='-R$libdir'
10002 hardcode_direct=yes
10003 hardcode_shlibpath_var=no
10004 ;;
10005
10006 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10007 freebsd2.*)
10008 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10009 hardcode_direct=yes
10010 hardcode_minus_L=yes
10011 hardcode_shlibpath_var=no
10012 ;;
10013
10014 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10015 freebsd* | dragonfly*)
10016 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10017 hardcode_libdir_flag_spec='-R$libdir'
10018 hardcode_direct=yes
10019 hardcode_shlibpath_var=no
10020 ;;
10021
10022 hpux9*)
10023 if test "$GCC" = yes; then
10024 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'
10025 else
10026 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'
10027 fi
10028 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10029 hardcode_libdir_separator=:
10030 hardcode_direct=yes
10031
10032 # hardcode_minus_L: Not really in the search PATH,
10033 # but as the default location of the library.
10034 hardcode_minus_L=yes
10035 export_dynamic_flag_spec='${wl}-E'
10036 ;;
10037
10038 hpux10*)
10039 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10040 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10041 else
10042 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10043 fi
10044 if test "$with_gnu_ld" = no; then
10045 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10046 hardcode_libdir_separator=:
10047 hardcode_direct=yes
10048 hardcode_direct_absolute=yes
10049 export_dynamic_flag_spec='${wl}-E'
10050 # hardcode_minus_L: Not really in the search PATH,
10051 # but as the default location of the library.
10052 hardcode_minus_L=yes
10053 fi
10054 ;;
10055
10056 hpux11*)
10057 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10058 case $host_cpu in
10059 hppa*64*)
10060 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10061 ;;
10062 ia64*)
10063 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10064 ;;
10065 *)
10066 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10067 ;;
10068 esac
10069 else
10070 case $host_cpu in
10071 hppa*64*)
10072 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10073 ;;
10074 ia64*)
10075 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10076 ;;
10077 *)
10078
10079 # Older versions of the 11.00 compiler do not understand -b yet
10080 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10082 $as_echo_n "checking if $CC understands -b... " >&6; }
10083 if ${lt_cv_prog_compiler__b+:} false; then :
10084 $as_echo_n "(cached) " >&6
10085 else
10086 lt_cv_prog_compiler__b=no
10087 save_LDFLAGS="$LDFLAGS"
10088 LDFLAGS="$LDFLAGS -b"
10089 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10090 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10091 # The linker can only warn and ignore the option if not recognized
10092 # So say no if there are warnings
10093 if test -s conftest.err; then
10094 # Append any errors to the config.log.
10095 cat conftest.err 1>&5
10096 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10097 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10098 if diff conftest.exp conftest.er2 >/dev/null; then
10099 lt_cv_prog_compiler__b=yes
10100 fi
10101 else
10102 lt_cv_prog_compiler__b=yes
10103 fi
10104 fi
10105 $RM -r conftest*
10106 LDFLAGS="$save_LDFLAGS"
10107
10108 fi
10109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10110 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10111
10112 if test x"$lt_cv_prog_compiler__b" = xyes; then
10113 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10114 else
10115 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10116 fi
10117
10118 ;;
10119 esac
10120 fi
10121 if test "$with_gnu_ld" = no; then
10122 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10123 hardcode_libdir_separator=:
10124
10125 case $host_cpu in
10126 hppa*64*|ia64*)
10127 hardcode_direct=no
10128 hardcode_shlibpath_var=no
10129 ;;
10130 *)
10131 hardcode_direct=yes
10132 hardcode_direct_absolute=yes
10133 export_dynamic_flag_spec='${wl}-E'
10134
10135 # hardcode_minus_L: Not really in the search PATH,
10136 # but as the default location of the library.
10137 hardcode_minus_L=yes
10138 ;;
10139 esac
10140 fi
10141 ;;
10142
10143 irix5* | irix6* | nonstopux*)
10144 if test "$GCC" = yes; then
10145 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'
10146 # Try to use the -exported_symbol ld option, if it does not
10147 # work, assume that -exports_file does not work either and
10148 # implicitly export all symbols.
10149 # This should be the same for all languages, so no per-tag cache variable.
10150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10151 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10152 if ${lt_cv_irix_exported_symbol+:} false; then :
10153 $as_echo_n "(cached) " >&6
10154 else
10155 save_LDFLAGS="$LDFLAGS"
10156 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10158 /* end confdefs.h. */
10159 int foo (void) { return 0; }
10160 _ACEOF
10161 if ac_fn_c_try_link "$LINENO"; then :
10162 lt_cv_irix_exported_symbol=yes
10163 else
10164 lt_cv_irix_exported_symbol=no
10165 fi
10166 rm -f core conftest.err conftest.$ac_objext \
10167 conftest$ac_exeext conftest.$ac_ext
10168 LDFLAGS="$save_LDFLAGS"
10169 fi
10170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10171 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10172 if test "$lt_cv_irix_exported_symbol" = yes; then
10173 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'
10174 fi
10175 else
10176 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'
10177 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'
10178 fi
10179 archive_cmds_need_lc='no'
10180 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10181 hardcode_libdir_separator=:
10182 inherit_rpath=yes
10183 link_all_deplibs=yes
10184 ;;
10185
10186 netbsd*)
10187 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10188 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10189 else
10190 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10191 fi
10192 hardcode_libdir_flag_spec='-R$libdir'
10193 hardcode_direct=yes
10194 hardcode_shlibpath_var=no
10195 ;;
10196
10197 newsos6)
10198 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10199 hardcode_direct=yes
10200 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10201 hardcode_libdir_separator=:
10202 hardcode_shlibpath_var=no
10203 ;;
10204
10205 *nto* | *qnx*)
10206 ;;
10207
10208 openbsd*)
10209 if test -f /usr/libexec/ld.so; then
10210 hardcode_direct=yes
10211 hardcode_shlibpath_var=no
10212 hardcode_direct_absolute=yes
10213 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10214 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10215 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10216 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10217 export_dynamic_flag_spec='${wl}-E'
10218 else
10219 case $host_os in
10220 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10221 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10222 hardcode_libdir_flag_spec='-R$libdir'
10223 ;;
10224 *)
10225 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10226 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10227 ;;
10228 esac
10229 fi
10230 else
10231 ld_shlibs=no
10232 fi
10233 ;;
10234
10235 os2*)
10236 hardcode_libdir_flag_spec='-L$libdir'
10237 hardcode_minus_L=yes
10238 allow_undefined_flag=unsupported
10239 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'
10240 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10241 ;;
10242
10243 osf3*)
10244 if test "$GCC" = yes; then
10245 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10246 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'
10247 else
10248 allow_undefined_flag=' -expect_unresolved \*'
10249 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'
10250 fi
10251 archive_cmds_need_lc='no'
10252 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10253 hardcode_libdir_separator=:
10254 ;;
10255
10256 osf4* | osf5*) # as osf3* with the addition of -msym flag
10257 if test "$GCC" = yes; then
10258 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10259 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'
10260 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10261 else
10262 allow_undefined_flag=' -expect_unresolved \*'
10263 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'
10264 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~
10265 $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'
10266
10267 # Both c and cxx compiler support -rpath directly
10268 hardcode_libdir_flag_spec='-rpath $libdir'
10269 fi
10270 archive_cmds_need_lc='no'
10271 hardcode_libdir_separator=:
10272 ;;
10273
10274 solaris*)
10275 no_undefined_flag=' -z defs'
10276 if test "$GCC" = yes; then
10277 wlarc='${wl}'
10278 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10279 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10280 $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'
10281 else
10282 case `$CC -V 2>&1` in
10283 *"Compilers 5.0"*)
10284 wlarc=''
10285 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10286 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10287 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10288 ;;
10289 *)
10290 wlarc='${wl}'
10291 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10292 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10293 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10294 ;;
10295 esac
10296 fi
10297 hardcode_libdir_flag_spec='-R$libdir'
10298 hardcode_shlibpath_var=no
10299 case $host_os in
10300 solaris2.[0-5] | solaris2.[0-5].*) ;;
10301 *)
10302 # The compiler driver will combine and reorder linker options,
10303 # but understands `-z linker_flag'. GCC discards it without `$wl',
10304 # but is careful enough not to reorder.
10305 # Supported since Solaris 2.6 (maybe 2.5.1?)
10306 if test "$GCC" = yes; then
10307 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10308 else
10309 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10310 fi
10311 ;;
10312 esac
10313 link_all_deplibs=yes
10314 ;;
10315
10316 sunos4*)
10317 if test "x$host_vendor" = xsequent; then
10318 # Use $CC to link under sequent, because it throws in some extra .o
10319 # files that make .init and .fini sections work.
10320 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10321 else
10322 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10323 fi
10324 hardcode_libdir_flag_spec='-L$libdir'
10325 hardcode_direct=yes
10326 hardcode_minus_L=yes
10327 hardcode_shlibpath_var=no
10328 ;;
10329
10330 sysv4)
10331 case $host_vendor in
10332 sni)
10333 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10334 hardcode_direct=yes # is this really true???
10335 ;;
10336 siemens)
10337 ## LD is ld it makes a PLAMLIB
10338 ## CC just makes a GrossModule.
10339 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10340 reload_cmds='$CC -r -o $output$reload_objs'
10341 hardcode_direct=no
10342 ;;
10343 motorola)
10344 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10345 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10346 ;;
10347 esac
10348 runpath_var='LD_RUN_PATH'
10349 hardcode_shlibpath_var=no
10350 ;;
10351
10352 sysv4.3*)
10353 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10354 hardcode_shlibpath_var=no
10355 export_dynamic_flag_spec='-Bexport'
10356 ;;
10357
10358 sysv4*MP*)
10359 if test -d /usr/nec; then
10360 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10361 hardcode_shlibpath_var=no
10362 runpath_var=LD_RUN_PATH
10363 hardcode_runpath_var=yes
10364 ld_shlibs=yes
10365 fi
10366 ;;
10367
10368 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10369 no_undefined_flag='${wl}-z,text'
10370 archive_cmds_need_lc=no
10371 hardcode_shlibpath_var=no
10372 runpath_var='LD_RUN_PATH'
10373
10374 if test "$GCC" = yes; then
10375 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10376 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10377 else
10378 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10379 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10380 fi
10381 ;;
10382
10383 sysv5* | sco3.2v5* | sco5v6*)
10384 # Note: We can NOT use -z defs as we might desire, because we do not
10385 # link with -lc, and that would cause any symbols used from libc to
10386 # always be unresolved, which means just about no library would
10387 # ever link correctly. If we're not using GNU ld we use -z text
10388 # though, which does catch some bad symbols but isn't as heavy-handed
10389 # as -z defs.
10390 no_undefined_flag='${wl}-z,text'
10391 allow_undefined_flag='${wl}-z,nodefs'
10392 archive_cmds_need_lc=no
10393 hardcode_shlibpath_var=no
10394 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10395 hardcode_libdir_separator=':'
10396 link_all_deplibs=yes
10397 export_dynamic_flag_spec='${wl}-Bexport'
10398 runpath_var='LD_RUN_PATH'
10399
10400 if test "$GCC" = yes; then
10401 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10402 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10403 else
10404 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10405 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10406 fi
10407 ;;
10408
10409 uts4*)
10410 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10411 hardcode_libdir_flag_spec='-L$libdir'
10412 hardcode_shlibpath_var=no
10413 ;;
10414
10415 *)
10416 ld_shlibs=no
10417 ;;
10418 esac
10419
10420 if test x$host_vendor = xsni; then
10421 case $host in
10422 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10423 export_dynamic_flag_spec='${wl}-Blargedynsym'
10424 ;;
10425 esac
10426 fi
10427 fi
10428
10429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10430 $as_echo "$ld_shlibs" >&6; }
10431 test "$ld_shlibs" = no && can_build_shared=no
10432
10433 with_gnu_ld=$with_gnu_ld
10434
10435
10436
10437
10438
10439
10440
10441
10442
10443
10444
10445
10446
10447
10448
10449 #
10450 # Do we need to explicitly link libc?
10451 #
10452 case "x$archive_cmds_need_lc" in
10453 x|xyes)
10454 # Assume -lc should be added
10455 archive_cmds_need_lc=yes
10456
10457 if test "$enable_shared" = yes && test "$GCC" = yes; then
10458 case $archive_cmds in
10459 *'~'*)
10460 # FIXME: we may have to deal with multi-command sequences.
10461 ;;
10462 '$CC '*)
10463 # Test whether the compiler implicitly links with -lc since on some
10464 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10465 # to ld, don't add -lc before -lgcc.
10466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10467 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10468 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10469 $as_echo_n "(cached) " >&6
10470 else
10471 $RM conftest*
10472 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10473
10474 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10475 (eval $ac_compile) 2>&5
10476 ac_status=$?
10477 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10478 test $ac_status = 0; } 2>conftest.err; then
10479 soname=conftest
10480 lib=conftest
10481 libobjs=conftest.$ac_objext
10482 deplibs=
10483 wl=$lt_prog_compiler_wl
10484 pic_flag=$lt_prog_compiler_pic
10485 compiler_flags=-v
10486 linker_flags=-v
10487 verstring=
10488 output_objdir=.
10489 libname=conftest
10490 lt_save_allow_undefined_flag=$allow_undefined_flag
10491 allow_undefined_flag=
10492 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10493 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10494 ac_status=$?
10495 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10496 test $ac_status = 0; }
10497 then
10498 lt_cv_archive_cmds_need_lc=no
10499 else
10500 lt_cv_archive_cmds_need_lc=yes
10501 fi
10502 allow_undefined_flag=$lt_save_allow_undefined_flag
10503 else
10504 cat conftest.err 1>&5
10505 fi
10506 $RM conftest*
10507
10508 fi
10509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10510 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10511 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10512 ;;
10513 esac
10514 fi
10515 ;;
10516 esac
10517
10518
10519
10520
10521
10522
10523
10524
10525
10526
10527
10528
10529
10530
10531
10532
10533
10534
10535
10536
10537
10538
10539
10540
10541
10542
10543
10544
10545
10546
10547
10548
10549
10550
10551
10552
10553
10554
10555
10556
10557
10558
10559
10560
10561
10562
10563
10564
10565
10566
10567
10568
10569
10570
10571
10572
10573
10574
10575
10576
10577
10578
10579
10580
10581
10582
10583
10584
10585
10586
10587
10588
10589
10590
10591
10592
10593
10594
10595
10596
10597
10598
10599
10600
10601
10602
10603
10604
10605
10606
10607
10608
10609
10610
10611
10612
10613
10614
10615
10616
10617
10618
10619
10620
10621
10622
10623
10624
10625
10626
10627
10628
10629
10630
10631
10632
10633
10634
10635
10636
10637
10638
10639
10640
10641
10642
10643
10644
10645
10646
10647
10648
10649
10650
10651
10652
10653
10654
10655
10656
10657
10658
10659
10660
10661
10662
10663
10664
10665
10666
10667
10668
10669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10670 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10671
10672 if test "$GCC" = yes; then
10673 case $host_os in
10674 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10675 *) lt_awk_arg="/^libraries:/" ;;
10676 esac
10677 case $host_os in
10678 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10679 *) lt_sed_strip_eq="s,=/,/,g" ;;
10680 esac
10681 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10682 case $lt_search_path_spec in
10683 *\;*)
10684 # if the path contains ";" then we assume it to be the separator
10685 # otherwise default to the standard path separator (i.e. ":") - it is
10686 # assumed that no part of a normal pathname contains ";" but that should
10687 # okay in the real world where ";" in dirpaths is itself problematic.
10688 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10689 ;;
10690 *)
10691 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10692 ;;
10693 esac
10694 # Ok, now we have the path, separated by spaces, we can step through it
10695 # and add multilib dir if necessary.
10696 lt_tmp_lt_search_path_spec=
10697 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10698 for lt_sys_path in $lt_search_path_spec; do
10699 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10700 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10701 else
10702 test -d "$lt_sys_path" && \
10703 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10704 fi
10705 done
10706 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10707 BEGIN {RS=" "; FS="/|\n";} {
10708 lt_foo="";
10709 lt_count=0;
10710 for (lt_i = NF; lt_i > 0; lt_i--) {
10711 if ($lt_i != "" && $lt_i != ".") {
10712 if ($lt_i == "..") {
10713 lt_count++;
10714 } else {
10715 if (lt_count == 0) {
10716 lt_foo="/" $lt_i lt_foo;
10717 } else {
10718 lt_count--;
10719 }
10720 }
10721 }
10722 }
10723 if (lt_foo != "") { lt_freq[lt_foo]++; }
10724 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10725 }'`
10726 # AWK program above erroneously prepends '/' to C:/dos/paths
10727 # for these hosts.
10728 case $host_os in
10729 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10730 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10731 esac
10732 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10733 else
10734 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10735 fi
10736 library_names_spec=
10737 libname_spec='lib$name'
10738 soname_spec=
10739 shrext_cmds=".so"
10740 postinstall_cmds=
10741 postuninstall_cmds=
10742 finish_cmds=
10743 finish_eval=
10744 shlibpath_var=
10745 shlibpath_overrides_runpath=unknown
10746 version_type=none
10747 dynamic_linker="$host_os ld.so"
10748 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10749 need_lib_prefix=unknown
10750 hardcode_into_libs=no
10751
10752 # when you set need_version to no, make sure it does not cause -set_version
10753 # flags to be left without arguments
10754 need_version=unknown
10755
10756 case $host_os in
10757 aix3*)
10758 version_type=linux # correct to gnu/linux during the next big refactor
10759 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10760 shlibpath_var=LIBPATH
10761
10762 # AIX 3 has no versioning support, so we append a major version to the name.
10763 soname_spec='${libname}${release}${shared_ext}$major'
10764 ;;
10765
10766 aix[4-9]*)
10767 version_type=linux # correct to gnu/linux during the next big refactor
10768 need_lib_prefix=no
10769 need_version=no
10770 hardcode_into_libs=yes
10771 if test "$host_cpu" = ia64; then
10772 # AIX 5 supports IA64
10773 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10774 shlibpath_var=LD_LIBRARY_PATH
10775 else
10776 # With GCC up to 2.95.x, collect2 would create an import file
10777 # for dependence libraries. The import file would start with
10778 # the line `#! .'. This would cause the generated library to
10779 # depend on `.', always an invalid library. This was fixed in
10780 # development snapshots of GCC prior to 3.0.
10781 case $host_os in
10782 aix4 | aix4.[01] | aix4.[01].*)
10783 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10784 echo ' yes '
10785 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10786 :
10787 else
10788 can_build_shared=no
10789 fi
10790 ;;
10791 esac
10792 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10793 # soname into executable. Probably we can add versioning support to
10794 # collect2, so additional links can be useful in future.
10795 if test "$aix_use_runtimelinking" = yes; then
10796 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10797 # instead of lib<name>.a to let people know that these are not
10798 # typical AIX shared libraries.
10799 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10800 else
10801 # We preserve .a as extension for shared libraries through AIX4.2
10802 # and later when we are not doing run time linking.
10803 library_names_spec='${libname}${release}.a $libname.a'
10804 soname_spec='${libname}${release}${shared_ext}$major'
10805 fi
10806 shlibpath_var=LIBPATH
10807 fi
10808 ;;
10809
10810 amigaos*)
10811 case $host_cpu in
10812 powerpc)
10813 # Since July 2007 AmigaOS4 officially supports .so libraries.
10814 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10815 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10816 ;;
10817 m68k)
10818 library_names_spec='$libname.ixlibrary $libname.a'
10819 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10820 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'
10821 ;;
10822 esac
10823 ;;
10824
10825 beos*)
10826 library_names_spec='${libname}${shared_ext}'
10827 dynamic_linker="$host_os ld.so"
10828 shlibpath_var=LIBRARY_PATH
10829 ;;
10830
10831 bsdi[45]*)
10832 version_type=linux # correct to gnu/linux during the next big refactor
10833 need_version=no
10834 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10835 soname_spec='${libname}${release}${shared_ext}$major'
10836 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10837 shlibpath_var=LD_LIBRARY_PATH
10838 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10839 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10840 # the default ld.so.conf also contains /usr/contrib/lib and
10841 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10842 # libtool to hard-code these into programs
10843 ;;
10844
10845 cygwin* | mingw* | pw32* | cegcc*)
10846 version_type=windows
10847 shrext_cmds=".dll"
10848 need_version=no
10849 need_lib_prefix=no
10850
10851 case $GCC,$cc_basename in
10852 yes,*)
10853 # gcc
10854 library_names_spec='$libname.dll.a'
10855 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10856 postinstall_cmds='base_file=`basename \${file}`~
10857 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10858 dldir=$destdir/`dirname \$dlpath`~
10859 test -d \$dldir || mkdir -p \$dldir~
10860 $install_prog $dir/$dlname \$dldir/$dlname~
10861 chmod a+x \$dldir/$dlname~
10862 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10863 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10864 fi'
10865 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10866 dlpath=$dir/\$dldll~
10867 $RM \$dlpath'
10868 shlibpath_overrides_runpath=yes
10869
10870 case $host_os in
10871 cygwin*)
10872 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10873 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10874
10875 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10876 ;;
10877 mingw* | cegcc*)
10878 # MinGW DLLs use traditional 'lib' prefix
10879 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10880 ;;
10881 pw32*)
10882 # pw32 DLLs use 'pw' prefix rather than 'lib'
10883 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10884 ;;
10885 esac
10886 dynamic_linker='Win32 ld.exe'
10887 ;;
10888
10889 *,cl*)
10890 # Native MSVC
10891 libname_spec='$name'
10892 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10893 library_names_spec='${libname}.dll.lib'
10894
10895 case $build_os in
10896 mingw*)
10897 sys_lib_search_path_spec=
10898 lt_save_ifs=$IFS
10899 IFS=';'
10900 for lt_path in $LIB
10901 do
10902 IFS=$lt_save_ifs
10903 # Let DOS variable expansion print the short 8.3 style file name.
10904 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10905 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10906 done
10907 IFS=$lt_save_ifs
10908 # Convert to MSYS style.
10909 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10910 ;;
10911 cygwin*)
10912 # Convert to unix form, then to dos form, then back to unix form
10913 # but this time dos style (no spaces!) so that the unix form looks
10914 # like /cygdrive/c/PROGRA~1:/cygdr...
10915 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10916 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10917 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10918 ;;
10919 *)
10920 sys_lib_search_path_spec="$LIB"
10921 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10922 # It is most probably a Windows format PATH.
10923 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10924 else
10925 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10926 fi
10927 # FIXME: find the short name or the path components, as spaces are
10928 # common. (e.g. "Program Files" -> "PROGRA~1")
10929 ;;
10930 esac
10931
10932 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10933 postinstall_cmds='base_file=`basename \${file}`~
10934 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10935 dldir=$destdir/`dirname \$dlpath`~
10936 test -d \$dldir || mkdir -p \$dldir~
10937 $install_prog $dir/$dlname \$dldir/$dlname'
10938 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10939 dlpath=$dir/\$dldll~
10940 $RM \$dlpath'
10941 shlibpath_overrides_runpath=yes
10942 dynamic_linker='Win32 link.exe'
10943 ;;
10944
10945 *)
10946 # Assume MSVC wrapper
10947 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10948 dynamic_linker='Win32 ld.exe'
10949 ;;
10950 esac
10951 # FIXME: first we should search . and the directory the executable is in
10952 shlibpath_var=PATH
10953 ;;
10954
10955 darwin* | rhapsody*)
10956 dynamic_linker="$host_os dyld"
10957 version_type=darwin
10958 need_lib_prefix=no
10959 need_version=no
10960 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10961 soname_spec='${libname}${release}${major}$shared_ext'
10962 shlibpath_overrides_runpath=yes
10963 shlibpath_var=DYLD_LIBRARY_PATH
10964 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10965
10966 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10967 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10968 ;;
10969
10970 dgux*)
10971 version_type=linux # correct to gnu/linux during the next big refactor
10972 need_lib_prefix=no
10973 need_version=no
10974 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10975 soname_spec='${libname}${release}${shared_ext}$major'
10976 shlibpath_var=LD_LIBRARY_PATH
10977 ;;
10978
10979 freebsd* | dragonfly*)
10980 # DragonFly does not have aout. When/if they implement a new
10981 # versioning mechanism, adjust this.
10982 if test -x /usr/bin/objformat; then
10983 objformat=`/usr/bin/objformat`
10984 else
10985 case $host_os in
10986 freebsd[23].*) objformat=aout ;;
10987 *) objformat=elf ;;
10988 esac
10989 fi
10990 version_type=freebsd-$objformat
10991 case $version_type in
10992 freebsd-elf*)
10993 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10994 need_version=no
10995 need_lib_prefix=no
10996 ;;
10997 freebsd-*)
10998 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10999 need_version=yes
11000 ;;
11001 esac
11002 shlibpath_var=LD_LIBRARY_PATH
11003 case $host_os in
11004 freebsd2.*)
11005 shlibpath_overrides_runpath=yes
11006 ;;
11007 freebsd3.[01]* | freebsdelf3.[01]*)
11008 shlibpath_overrides_runpath=yes
11009 hardcode_into_libs=yes
11010 ;;
11011 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11012 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11013 shlibpath_overrides_runpath=no
11014 hardcode_into_libs=yes
11015 ;;
11016 *) # from 4.6 on, and DragonFly
11017 shlibpath_overrides_runpath=yes
11018 hardcode_into_libs=yes
11019 ;;
11020 esac
11021 ;;
11022
11023 gnu*)
11024 version_type=linux # correct to gnu/linux during the next big refactor
11025 need_lib_prefix=no
11026 need_version=no
11027 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11028 soname_spec='${libname}${release}${shared_ext}$major'
11029 shlibpath_var=LD_LIBRARY_PATH
11030 shlibpath_overrides_runpath=no
11031 hardcode_into_libs=yes
11032 ;;
11033
11034 haiku*)
11035 version_type=linux # correct to gnu/linux during the next big refactor
11036 need_lib_prefix=no
11037 need_version=no
11038 dynamic_linker="$host_os runtime_loader"
11039 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11040 soname_spec='${libname}${release}${shared_ext}$major'
11041 shlibpath_var=LIBRARY_PATH
11042 shlibpath_overrides_runpath=yes
11043 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11044 hardcode_into_libs=yes
11045 ;;
11046
11047 hpux9* | hpux10* | hpux11*)
11048 # Give a soname corresponding to the major version so that dld.sl refuses to
11049 # link against other versions.
11050 version_type=sunos
11051 need_lib_prefix=no
11052 need_version=no
11053 case $host_cpu in
11054 ia64*)
11055 shrext_cmds='.so'
11056 hardcode_into_libs=yes
11057 dynamic_linker="$host_os dld.so"
11058 shlibpath_var=LD_LIBRARY_PATH
11059 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11060 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11061 soname_spec='${libname}${release}${shared_ext}$major'
11062 if test "X$HPUX_IA64_MODE" = X32; then
11063 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11064 else
11065 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11066 fi
11067 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11068 ;;
11069 hppa*64*)
11070 shrext_cmds='.sl'
11071 hardcode_into_libs=yes
11072 dynamic_linker="$host_os dld.sl"
11073 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11074 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11075 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11076 soname_spec='${libname}${release}${shared_ext}$major'
11077 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11078 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11079 ;;
11080 *)
11081 shrext_cmds='.sl'
11082 dynamic_linker="$host_os dld.sl"
11083 shlibpath_var=SHLIB_PATH
11084 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11085 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11086 soname_spec='${libname}${release}${shared_ext}$major'
11087 ;;
11088 esac
11089 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11090 postinstall_cmds='chmod 555 $lib'
11091 # or fails outright, so override atomically:
11092 install_override_mode=555
11093 ;;
11094
11095 interix[3-9]*)
11096 version_type=linux # correct to gnu/linux during the next big refactor
11097 need_lib_prefix=no
11098 need_version=no
11099 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11100 soname_spec='${libname}${release}${shared_ext}$major'
11101 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11102 shlibpath_var=LD_LIBRARY_PATH
11103 shlibpath_overrides_runpath=no
11104 hardcode_into_libs=yes
11105 ;;
11106
11107 irix5* | irix6* | nonstopux*)
11108 case $host_os in
11109 nonstopux*) version_type=nonstopux ;;
11110 *)
11111 if test "$lt_cv_prog_gnu_ld" = yes; then
11112 version_type=linux # correct to gnu/linux during the next big refactor
11113 else
11114 version_type=irix
11115 fi ;;
11116 esac
11117 need_lib_prefix=no
11118 need_version=no
11119 soname_spec='${libname}${release}${shared_ext}$major'
11120 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11121 case $host_os in
11122 irix5* | nonstopux*)
11123 libsuff= shlibsuff=
11124 ;;
11125 *)
11126 case $LD in # libtool.m4 will add one of these switches to LD
11127 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11128 libsuff= shlibsuff= libmagic=32-bit;;
11129 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11130 libsuff=32 shlibsuff=N32 libmagic=N32;;
11131 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11132 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11133 *) libsuff= shlibsuff= libmagic=never-match;;
11134 esac
11135 ;;
11136 esac
11137 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11138 shlibpath_overrides_runpath=no
11139 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11140 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11141 hardcode_into_libs=yes
11142 ;;
11143
11144 # No shared lib support for Linux oldld, aout, or coff.
11145 linux*oldld* | linux*aout* | linux*coff*)
11146 dynamic_linker=no
11147 ;;
11148
11149 # This must be glibc/ELF.
11150 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11151 version_type=linux # correct to gnu/linux during the next big refactor
11152 need_lib_prefix=no
11153 need_version=no
11154 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11155 soname_spec='${libname}${release}${shared_ext}$major'
11156 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11157 shlibpath_var=LD_LIBRARY_PATH
11158 shlibpath_overrides_runpath=no
11159
11160 # Some binutils ld are patched to set DT_RUNPATH
11161 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11162 $as_echo_n "(cached) " >&6
11163 else
11164 lt_cv_shlibpath_overrides_runpath=no
11165 save_LDFLAGS=$LDFLAGS
11166 save_libdir=$libdir
11167 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11168 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11170 /* end confdefs.h. */
11171
11172 int
11173 main ()
11174 {
11175
11176 ;
11177 return 0;
11178 }
11179 _ACEOF
11180 if ac_fn_c_try_link "$LINENO"; then :
11181 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11182 lt_cv_shlibpath_overrides_runpath=yes
11183 fi
11184 fi
11185 rm -f core conftest.err conftest.$ac_objext \
11186 conftest$ac_exeext conftest.$ac_ext
11187 LDFLAGS=$save_LDFLAGS
11188 libdir=$save_libdir
11189
11190 fi
11191
11192 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11193
11194 # This implies no fast_install, which is unacceptable.
11195 # Some rework will be needed to allow for fast_install
11196 # before this can be enabled.
11197 hardcode_into_libs=yes
11198
11199 # Append ld.so.conf contents to the search path
11200 if test -f /etc/ld.so.conf; then
11201 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' ' '`
11202 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11203 fi
11204
11205 # We used to test for /lib/ld.so.1 and disable shared libraries on
11206 # powerpc, because MkLinux only supported shared libraries with the
11207 # GNU dynamic linker. Since this was broken with cross compilers,
11208 # most powerpc-linux boxes support dynamic linking these days and
11209 # people can always --disable-shared, the test was removed, and we
11210 # assume the GNU/Linux dynamic linker is in use.
11211 dynamic_linker='GNU/Linux ld.so'
11212 ;;
11213
11214 netbsd*)
11215 version_type=sunos
11216 need_lib_prefix=no
11217 need_version=no
11218 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11219 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11220 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11221 dynamic_linker='NetBSD (a.out) ld.so'
11222 else
11223 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11224 soname_spec='${libname}${release}${shared_ext}$major'
11225 dynamic_linker='NetBSD ld.elf_so'
11226 fi
11227 shlibpath_var=LD_LIBRARY_PATH
11228 shlibpath_overrides_runpath=yes
11229 hardcode_into_libs=yes
11230 ;;
11231
11232 newsos6)
11233 version_type=linux # correct to gnu/linux during the next big refactor
11234 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11235 shlibpath_var=LD_LIBRARY_PATH
11236 shlibpath_overrides_runpath=yes
11237 ;;
11238
11239 *nto* | *qnx*)
11240 version_type=qnx
11241 need_lib_prefix=no
11242 need_version=no
11243 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11244 soname_spec='${libname}${release}${shared_ext}$major'
11245 shlibpath_var=LD_LIBRARY_PATH
11246 shlibpath_overrides_runpath=no
11247 hardcode_into_libs=yes
11248 dynamic_linker='ldqnx.so'
11249 ;;
11250
11251 openbsd*)
11252 version_type=sunos
11253 sys_lib_dlsearch_path_spec="/usr/lib"
11254 need_lib_prefix=no
11255 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11256 case $host_os in
11257 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11258 *) need_version=no ;;
11259 esac
11260 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11261 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11262 shlibpath_var=LD_LIBRARY_PATH
11263 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11264 case $host_os in
11265 openbsd2.[89] | openbsd2.[89].*)
11266 shlibpath_overrides_runpath=no
11267 ;;
11268 *)
11269 shlibpath_overrides_runpath=yes
11270 ;;
11271 esac
11272 else
11273 shlibpath_overrides_runpath=yes
11274 fi
11275 ;;
11276
11277 os2*)
11278 libname_spec='$name'
11279 shrext_cmds=".dll"
11280 need_lib_prefix=no
11281 library_names_spec='$libname${shared_ext} $libname.a'
11282 dynamic_linker='OS/2 ld.exe'
11283 shlibpath_var=LIBPATH
11284 ;;
11285
11286 osf3* | osf4* | osf5*)
11287 version_type=osf
11288 need_lib_prefix=no
11289 need_version=no
11290 soname_spec='${libname}${release}${shared_ext}$major'
11291 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11292 shlibpath_var=LD_LIBRARY_PATH
11293 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11294 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11295 ;;
11296
11297 rdos*)
11298 dynamic_linker=no
11299 ;;
11300
11301 solaris*)
11302 version_type=linux # correct to gnu/linux during the next big refactor
11303 need_lib_prefix=no
11304 need_version=no
11305 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11306 soname_spec='${libname}${release}${shared_ext}$major'
11307 shlibpath_var=LD_LIBRARY_PATH
11308 shlibpath_overrides_runpath=yes
11309 hardcode_into_libs=yes
11310 # ldd complains unless libraries are executable
11311 postinstall_cmds='chmod +x $lib'
11312 ;;
11313
11314 sunos4*)
11315 version_type=sunos
11316 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11317 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11318 shlibpath_var=LD_LIBRARY_PATH
11319 shlibpath_overrides_runpath=yes
11320 if test "$with_gnu_ld" = yes; then
11321 need_lib_prefix=no
11322 fi
11323 need_version=yes
11324 ;;
11325
11326 sysv4 | sysv4.3*)
11327 version_type=linux # correct to gnu/linux during the next big refactor
11328 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11329 soname_spec='${libname}${release}${shared_ext}$major'
11330 shlibpath_var=LD_LIBRARY_PATH
11331 case $host_vendor in
11332 sni)
11333 shlibpath_overrides_runpath=no
11334 need_lib_prefix=no
11335 runpath_var=LD_RUN_PATH
11336 ;;
11337 siemens)
11338 need_lib_prefix=no
11339 ;;
11340 motorola)
11341 need_lib_prefix=no
11342 need_version=no
11343 shlibpath_overrides_runpath=no
11344 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11345 ;;
11346 esac
11347 ;;
11348
11349 sysv4*MP*)
11350 if test -d /usr/nec ;then
11351 version_type=linux # correct to gnu/linux during the next big refactor
11352 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11353 soname_spec='$libname${shared_ext}.$major'
11354 shlibpath_var=LD_LIBRARY_PATH
11355 fi
11356 ;;
11357
11358 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11359 version_type=freebsd-elf
11360 need_lib_prefix=no
11361 need_version=no
11362 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11363 soname_spec='${libname}${release}${shared_ext}$major'
11364 shlibpath_var=LD_LIBRARY_PATH
11365 shlibpath_overrides_runpath=yes
11366 hardcode_into_libs=yes
11367 if test "$with_gnu_ld" = yes; then
11368 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11369 else
11370 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11371 case $host_os in
11372 sco3.2v5*)
11373 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11374 ;;
11375 esac
11376 fi
11377 sys_lib_dlsearch_path_spec='/usr/lib'
11378 ;;
11379
11380 tpf*)
11381 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11382 version_type=linux # correct to gnu/linux during the next big refactor
11383 need_lib_prefix=no
11384 need_version=no
11385 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11386 shlibpath_var=LD_LIBRARY_PATH
11387 shlibpath_overrides_runpath=no
11388 hardcode_into_libs=yes
11389 ;;
11390
11391 uts4*)
11392 version_type=linux # correct to gnu/linux during the next big refactor
11393 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11394 soname_spec='${libname}${release}${shared_ext}$major'
11395 shlibpath_var=LD_LIBRARY_PATH
11396 ;;
11397
11398 *)
11399 dynamic_linker=no
11400 ;;
11401 esac
11402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11403 $as_echo "$dynamic_linker" >&6; }
11404 test "$dynamic_linker" = no && can_build_shared=no
11405
11406 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11407 if test "$GCC" = yes; then
11408 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11409 fi
11410
11411 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11412 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11413 fi
11414 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11415 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11416 fi
11417
11418
11419
11420
11421
11422
11423
11424
11425
11426
11427
11428
11429
11430
11431
11432
11433
11434
11435
11436
11437
11438
11439
11440
11441
11442
11443
11444
11445
11446
11447
11448
11449
11450
11451
11452
11453
11454
11455
11456
11457
11458
11459
11460
11461
11462
11463
11464
11465
11466
11467
11468
11469
11470
11471
11472
11473
11474
11475
11476
11477
11478
11479
11480
11481
11482
11483
11484
11485
11486
11487
11488
11489
11490
11491
11492
11493
11494
11495
11496
11497
11498
11499
11500
11501
11502
11503
11504
11505
11506
11507
11508
11509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11510 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11511 hardcode_action=
11512 if test -n "$hardcode_libdir_flag_spec" ||
11513 test -n "$runpath_var" ||
11514 test "X$hardcode_automatic" = "Xyes" ; then
11515
11516 # We can hardcode non-existent directories.
11517 if test "$hardcode_direct" != no &&
11518 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11519 # have to relink, otherwise we might link with an installed library
11520 # when we should be linking with a yet-to-be-installed one
11521 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11522 test "$hardcode_minus_L" != no; then
11523 # Linking always hardcodes the temporary library directory.
11524 hardcode_action=relink
11525 else
11526 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11527 hardcode_action=immediate
11528 fi
11529 else
11530 # We cannot hardcode anything, or else we can only hardcode existing
11531 # directories.
11532 hardcode_action=unsupported
11533 fi
11534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11535 $as_echo "$hardcode_action" >&6; }
11536
11537 if test "$hardcode_action" = relink ||
11538 test "$inherit_rpath" = yes; then
11539 # Fast installation is not supported
11540 enable_fast_install=no
11541 elif test "$shlibpath_overrides_runpath" = yes ||
11542 test "$enable_shared" = no; then
11543 # Fast installation is not necessary
11544 enable_fast_install=needless
11545 fi
11546
11547
11548
11549
11550
11551
11552 if test "x$enable_dlopen" != xyes; then
11553 enable_dlopen=unknown
11554 enable_dlopen_self=unknown
11555 enable_dlopen_self_static=unknown
11556 else
11557 lt_cv_dlopen=no
11558 lt_cv_dlopen_libs=
11559
11560 case $host_os in
11561 beos*)
11562 lt_cv_dlopen="load_add_on"
11563 lt_cv_dlopen_libs=
11564 lt_cv_dlopen_self=yes
11565 ;;
11566
11567 mingw* | pw32* | cegcc*)
11568 lt_cv_dlopen="LoadLibrary"
11569 lt_cv_dlopen_libs=
11570 ;;
11571
11572 cygwin*)
11573 lt_cv_dlopen="dlopen"
11574 lt_cv_dlopen_libs=
11575 ;;
11576
11577 darwin*)
11578 # if libdl is installed we need to link against it
11579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11580 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11581 if ${ac_cv_lib_dl_dlopen+:} false; then :
11582 $as_echo_n "(cached) " >&6
11583 else
11584 ac_check_lib_save_LIBS=$LIBS
11585 LIBS="-ldl $LIBS"
11586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11587 /* end confdefs.h. */
11588
11589 /* Override any GCC internal prototype to avoid an error.
11590 Use char because int might match the return type of a GCC
11591 builtin and then its argument prototype would still apply. */
11592 #ifdef __cplusplus
11593 extern "C"
11594 #endif
11595 char dlopen ();
11596 int
11597 main ()
11598 {
11599 return dlopen ();
11600 ;
11601 return 0;
11602 }
11603 _ACEOF
11604 if ac_fn_c_try_link "$LINENO"; then :
11605 ac_cv_lib_dl_dlopen=yes
11606 else
11607 ac_cv_lib_dl_dlopen=no
11608 fi
11609 rm -f core conftest.err conftest.$ac_objext \
11610 conftest$ac_exeext conftest.$ac_ext
11611 LIBS=$ac_check_lib_save_LIBS
11612 fi
11613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11614 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11615 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11616 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11617 else
11618
11619 lt_cv_dlopen="dyld"
11620 lt_cv_dlopen_libs=
11621 lt_cv_dlopen_self=yes
11622
11623 fi
11624
11625 ;;
11626
11627 *)
11628 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11629 if test "x$ac_cv_func_shl_load" = xyes; then :
11630 lt_cv_dlopen="shl_load"
11631 else
11632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11633 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11634 if ${ac_cv_lib_dld_shl_load+:} false; then :
11635 $as_echo_n "(cached) " >&6
11636 else
11637 ac_check_lib_save_LIBS=$LIBS
11638 LIBS="-ldld $LIBS"
11639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11640 /* end confdefs.h. */
11641
11642 /* Override any GCC internal prototype to avoid an error.
11643 Use char because int might match the return type of a GCC
11644 builtin and then its argument prototype would still apply. */
11645 #ifdef __cplusplus
11646 extern "C"
11647 #endif
11648 char shl_load ();
11649 int
11650 main ()
11651 {
11652 return shl_load ();
11653 ;
11654 return 0;
11655 }
11656 _ACEOF
11657 if ac_fn_c_try_link "$LINENO"; then :
11658 ac_cv_lib_dld_shl_load=yes
11659 else
11660 ac_cv_lib_dld_shl_load=no
11661 fi
11662 rm -f core conftest.err conftest.$ac_objext \
11663 conftest$ac_exeext conftest.$ac_ext
11664 LIBS=$ac_check_lib_save_LIBS
11665 fi
11666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11667 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11668 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11669 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11670 else
11671 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11672 if test "x$ac_cv_func_dlopen" = xyes; then :
11673 lt_cv_dlopen="dlopen"
11674 else
11675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11676 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11677 if ${ac_cv_lib_dl_dlopen+:} false; then :
11678 $as_echo_n "(cached) " >&6
11679 else
11680 ac_check_lib_save_LIBS=$LIBS
11681 LIBS="-ldl $LIBS"
11682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11683 /* end confdefs.h. */
11684
11685 /* Override any GCC internal prototype to avoid an error.
11686 Use char because int might match the return type of a GCC
11687 builtin and then its argument prototype would still apply. */
11688 #ifdef __cplusplus
11689 extern "C"
11690 #endif
11691 char dlopen ();
11692 int
11693 main ()
11694 {
11695 return dlopen ();
11696 ;
11697 return 0;
11698 }
11699 _ACEOF
11700 if ac_fn_c_try_link "$LINENO"; then :
11701 ac_cv_lib_dl_dlopen=yes
11702 else
11703 ac_cv_lib_dl_dlopen=no
11704 fi
11705 rm -f core conftest.err conftest.$ac_objext \
11706 conftest$ac_exeext conftest.$ac_ext
11707 LIBS=$ac_check_lib_save_LIBS
11708 fi
11709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11710 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11711 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11712 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11713 else
11714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11715 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11716 if ${ac_cv_lib_svld_dlopen+:} false; then :
11717 $as_echo_n "(cached) " >&6
11718 else
11719 ac_check_lib_save_LIBS=$LIBS
11720 LIBS="-lsvld $LIBS"
11721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11722 /* end confdefs.h. */
11723
11724 /* Override any GCC internal prototype to avoid an error.
11725 Use char because int might match the return type of a GCC
11726 builtin and then its argument prototype would still apply. */
11727 #ifdef __cplusplus
11728 extern "C"
11729 #endif
11730 char dlopen ();
11731 int
11732 main ()
11733 {
11734 return dlopen ();
11735 ;
11736 return 0;
11737 }
11738 _ACEOF
11739 if ac_fn_c_try_link "$LINENO"; then :
11740 ac_cv_lib_svld_dlopen=yes
11741 else
11742 ac_cv_lib_svld_dlopen=no
11743 fi
11744 rm -f core conftest.err conftest.$ac_objext \
11745 conftest$ac_exeext conftest.$ac_ext
11746 LIBS=$ac_check_lib_save_LIBS
11747 fi
11748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11749 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11750 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11751 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11752 else
11753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11754 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11755 if ${ac_cv_lib_dld_dld_link+:} false; then :
11756 $as_echo_n "(cached) " >&6
11757 else
11758 ac_check_lib_save_LIBS=$LIBS
11759 LIBS="-ldld $LIBS"
11760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11761 /* end confdefs.h. */
11762
11763 /* Override any GCC internal prototype to avoid an error.
11764 Use char because int might match the return type of a GCC
11765 builtin and then its argument prototype would still apply. */
11766 #ifdef __cplusplus
11767 extern "C"
11768 #endif
11769 char dld_link ();
11770 int
11771 main ()
11772 {
11773 return dld_link ();
11774 ;
11775 return 0;
11776 }
11777 _ACEOF
11778 if ac_fn_c_try_link "$LINENO"; then :
11779 ac_cv_lib_dld_dld_link=yes
11780 else
11781 ac_cv_lib_dld_dld_link=no
11782 fi
11783 rm -f core conftest.err conftest.$ac_objext \
11784 conftest$ac_exeext conftest.$ac_ext
11785 LIBS=$ac_check_lib_save_LIBS
11786 fi
11787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11788 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11789 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11790 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11791 fi
11792
11793
11794 fi
11795
11796
11797 fi
11798
11799
11800 fi
11801
11802
11803 fi
11804
11805
11806 fi
11807
11808 ;;
11809 esac
11810
11811 if test "x$lt_cv_dlopen" != xno; then
11812 enable_dlopen=yes
11813 else
11814 enable_dlopen=no
11815 fi
11816
11817 case $lt_cv_dlopen in
11818 dlopen)
11819 save_CPPFLAGS="$CPPFLAGS"
11820 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11821
11822 save_LDFLAGS="$LDFLAGS"
11823 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11824
11825 save_LIBS="$LIBS"
11826 LIBS="$lt_cv_dlopen_libs $LIBS"
11827
11828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11829 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11830 if ${lt_cv_dlopen_self+:} false; then :
11831 $as_echo_n "(cached) " >&6
11832 else
11833 if test "$cross_compiling" = yes; then :
11834 lt_cv_dlopen_self=cross
11835 else
11836 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11837 lt_status=$lt_dlunknown
11838 cat > conftest.$ac_ext <<_LT_EOF
11839 #line $LINENO "configure"
11840 #include "confdefs.h"
11841
11842 #if HAVE_DLFCN_H
11843 #include <dlfcn.h>
11844 #endif
11845
11846 #include <stdio.h>
11847
11848 #ifdef RTLD_GLOBAL
11849 # define LT_DLGLOBAL RTLD_GLOBAL
11850 #else
11851 # ifdef DL_GLOBAL
11852 # define LT_DLGLOBAL DL_GLOBAL
11853 # else
11854 # define LT_DLGLOBAL 0
11855 # endif
11856 #endif
11857
11858 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11859 find out it does not work in some platform. */
11860 #ifndef LT_DLLAZY_OR_NOW
11861 # ifdef RTLD_LAZY
11862 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11863 # else
11864 # ifdef DL_LAZY
11865 # define LT_DLLAZY_OR_NOW DL_LAZY
11866 # else
11867 # ifdef RTLD_NOW
11868 # define LT_DLLAZY_OR_NOW RTLD_NOW
11869 # else
11870 # ifdef DL_NOW
11871 # define LT_DLLAZY_OR_NOW DL_NOW
11872 # else
11873 # define LT_DLLAZY_OR_NOW 0
11874 # endif
11875 # endif
11876 # endif
11877 # endif
11878 #endif
11879
11880 /* When -fvisbility=hidden is used, assume the code has been annotated
11881 correspondingly for the symbols needed. */
11882 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11883 int fnord () __attribute__((visibility("default")));
11884 #endif
11885
11886 int fnord () { return 42; }
11887 int main ()
11888 {
11889 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11890 int status = $lt_dlunknown;
11891
11892 if (self)
11893 {
11894 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11895 else
11896 {
11897 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11898 else puts (dlerror ());
11899 }
11900 /* dlclose (self); */
11901 }
11902 else
11903 puts (dlerror ());
11904
11905 return status;
11906 }
11907 _LT_EOF
11908 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11909 (eval $ac_link) 2>&5
11910 ac_status=$?
11911 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11912 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11913 (./conftest; exit; ) >&5 2>/dev/null
11914 lt_status=$?
11915 case x$lt_status in
11916 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11917 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11918 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11919 esac
11920 else :
11921 # compilation failed
11922 lt_cv_dlopen_self=no
11923 fi
11924 fi
11925 rm -fr conftest*
11926
11927
11928 fi
11929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11930 $as_echo "$lt_cv_dlopen_self" >&6; }
11931
11932 if test "x$lt_cv_dlopen_self" = xyes; then
11933 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11935 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11936 if ${lt_cv_dlopen_self_static+:} false; then :
11937 $as_echo_n "(cached) " >&6
11938 else
11939 if test "$cross_compiling" = yes; then :
11940 lt_cv_dlopen_self_static=cross
11941 else
11942 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11943 lt_status=$lt_dlunknown
11944 cat > conftest.$ac_ext <<_LT_EOF
11945 #line $LINENO "configure"
11946 #include "confdefs.h"
11947
11948 #if HAVE_DLFCN_H
11949 #include <dlfcn.h>
11950 #endif
11951
11952 #include <stdio.h>
11953
11954 #ifdef RTLD_GLOBAL
11955 # define LT_DLGLOBAL RTLD_GLOBAL
11956 #else
11957 # ifdef DL_GLOBAL
11958 # define LT_DLGLOBAL DL_GLOBAL
11959 # else
11960 # define LT_DLGLOBAL 0
11961 # endif
11962 #endif
11963
11964 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11965 find out it does not work in some platform. */
11966 #ifndef LT_DLLAZY_OR_NOW
11967 # ifdef RTLD_LAZY
11968 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11969 # else
11970 # ifdef DL_LAZY
11971 # define LT_DLLAZY_OR_NOW DL_LAZY
11972 # else
11973 # ifdef RTLD_NOW
11974 # define LT_DLLAZY_OR_NOW RTLD_NOW
11975 # else
11976 # ifdef DL_NOW
11977 # define LT_DLLAZY_OR_NOW DL_NOW
11978 # else
11979 # define LT_DLLAZY_OR_NOW 0
11980 # endif
11981 # endif
11982 # endif
11983 # endif
11984 #endif
11985
11986 /* When -fvisbility=hidden is used, assume the code has been annotated
11987 correspondingly for the symbols needed. */
11988 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11989 int fnord () __attribute__((visibility("default")));
11990 #endif
11991
11992 int fnord () { return 42; }
11993 int main ()
11994 {
11995 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11996 int status = $lt_dlunknown;
11997
11998 if (self)
11999 {
12000 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12001 else
12002 {
12003 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12004 else puts (dlerror ());
12005 }
12006 /* dlclose (self); */
12007 }
12008 else
12009 puts (dlerror ());
12010
12011 return status;
12012 }
12013 _LT_EOF
12014 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12015 (eval $ac_link) 2>&5
12016 ac_status=$?
12017 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12018 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12019 (./conftest; exit; ) >&5 2>/dev/null
12020 lt_status=$?
12021 case x$lt_status in
12022 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12023 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12024 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12025 esac
12026 else :
12027 # compilation failed
12028 lt_cv_dlopen_self_static=no
12029 fi
12030 fi
12031 rm -fr conftest*
12032
12033
12034 fi
12035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12036 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12037 fi
12038
12039 CPPFLAGS="$save_CPPFLAGS"
12040 LDFLAGS="$save_LDFLAGS"
12041 LIBS="$save_LIBS"
12042 ;;
12043 esac
12044
12045 case $lt_cv_dlopen_self in
12046 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12047 *) enable_dlopen_self=unknown ;;
12048 esac
12049
12050 case $lt_cv_dlopen_self_static in
12051 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12052 *) enable_dlopen_self_static=unknown ;;
12053 esac
12054 fi
12055
12056
12057
12058
12059
12060
12061
12062
12063
12064
12065
12066
12067
12068
12069
12070
12071
12072 striplib=
12073 old_striplib=
12074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12075 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12076 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12077 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12078 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12080 $as_echo "yes" >&6; }
12081 else
12082 # FIXME - insert some real tests, host_os isn't really good enough
12083 case $host_os in
12084 darwin*)
12085 if test -n "$STRIP" ; then
12086 striplib="$STRIP -x"
12087 old_striplib="$STRIP -S"
12088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12089 $as_echo "yes" >&6; }
12090 else
12091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12092 $as_echo "no" >&6; }
12093 fi
12094 ;;
12095 *)
12096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12097 $as_echo "no" >&6; }
12098 ;;
12099 esac
12100 fi
12101
12102
12103
12104
12105
12106
12107
12108
12109
12110
12111
12112
12113 # Report which library types will actually be built
12114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12115 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12117 $as_echo "$can_build_shared" >&6; }
12118
12119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12120 $as_echo_n "checking whether to build shared libraries... " >&6; }
12121 test "$can_build_shared" = "no" && enable_shared=no
12122
12123 # On AIX, shared libraries and static libraries use the same namespace, and
12124 # are all built from PIC.
12125 case $host_os in
12126 aix3*)
12127 test "$enable_shared" = yes && enable_static=no
12128 if test -n "$RANLIB"; then
12129 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12130 postinstall_cmds='$RANLIB $lib'
12131 fi
12132 ;;
12133
12134 aix[4-9]*)
12135 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12136 test "$enable_shared" = yes && enable_static=no
12137 fi
12138 ;;
12139 esac
12140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12141 $as_echo "$enable_shared" >&6; }
12142
12143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12144 $as_echo_n "checking whether to build static libraries... " >&6; }
12145 # Make sure either enable_shared or enable_static is yes.
12146 test "$enable_shared" = yes || enable_static=yes
12147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12148 $as_echo "$enable_static" >&6; }
12149
12150
12151
12152
12153 fi
12154 ac_ext=c
12155 ac_cpp='$CPP $CPPFLAGS'
12156 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12157 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12158 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12159
12160 CC="$lt_save_CC"
12161
12162
12163
12164
12165
12166
12167
12168
12169
12170
12171
12172
12173
12174
12175
12176 ac_config_commands="$ac_config_commands libtool"
12177
12178
12179
12180
12181 # Only expand once:
12182
12183
12184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which extension is used for runtime loadable modules" >&5
12185 $as_echo_n "checking which extension is used for runtime loadable modules... " >&6; }
12186 if ${libltdl_cv_shlibext+:} false; then :
12187 $as_echo_n "(cached) " >&6
12188 else
12189
12190 module=yes
12191 eval libltdl_cv_shlibext=$shrext_cmds
12192 module=no
12193 eval libltdl_cv_shrext=$shrext_cmds
12194
12195 fi
12196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_shlibext" >&5
12197 $as_echo "$libltdl_cv_shlibext" >&6; }
12198 if test -n "$libltdl_cv_shlibext"; then
12199
12200 cat >>confdefs.h <<_ACEOF
12201 #define LT_MODULE_EXT "$libltdl_cv_shlibext"
12202 _ACEOF
12203
12204 fi
12205 if test "$libltdl_cv_shrext" != "$libltdl_cv_shlibext"; then
12206
12207 cat >>confdefs.h <<_ACEOF
12208 #define LT_SHARED_EXT "$libltdl_cv_shrext"
12209 _ACEOF
12210
12211 fi
12212
12213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variable specifies run-time module search path" >&5
12214 $as_echo_n "checking which variable specifies run-time module search path... " >&6; }
12215 if ${lt_cv_module_path_var+:} false; then :
12216 $as_echo_n "(cached) " >&6
12217 else
12218 lt_cv_module_path_var="$shlibpath_var"
12219 fi
12220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_module_path_var" >&5
12221 $as_echo "$lt_cv_module_path_var" >&6; }
12222 if test -n "$lt_cv_module_path_var"; then
12223
12224 cat >>confdefs.h <<_ACEOF
12225 #define LT_MODULE_PATH_VAR "$lt_cv_module_path_var"
12226 _ACEOF
12227
12228 fi
12229
12230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the default library search path" >&5
12231 $as_echo_n "checking for the default library search path... " >&6; }
12232 if ${lt_cv_sys_dlsearch_path+:} false; then :
12233 $as_echo_n "(cached) " >&6
12234 else
12235 lt_cv_sys_dlsearch_path="$sys_lib_dlsearch_path_spec"
12236 fi
12237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlsearch_path" >&5
12238 $as_echo "$lt_cv_sys_dlsearch_path" >&6; }
12239 if test -n "$lt_cv_sys_dlsearch_path"; then
12240 sys_dlsearch_path=
12241 for dir in $lt_cv_sys_dlsearch_path; do
12242 if test -z "$sys_dlsearch_path"; then
12243 sys_dlsearch_path="$dir"
12244 else
12245 sys_dlsearch_path="$sys_dlsearch_path$PATH_SEPARATOR$dir"
12246 fi
12247 done
12248
12249 cat >>confdefs.h <<_ACEOF
12250 #define LT_DLSEARCH_PATH "$sys_dlsearch_path"
12251 _ACEOF
12252
12253 fi
12254
12255
12256 LT_DLLOADERS=
12257
12258
12259 ac_ext=c
12260 ac_cpp='$CPP $CPPFLAGS'
12261 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12262 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12263 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12264
12265
12266 LIBADD_DLOPEN=
12267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
12268 $as_echo_n "checking for library containing dlopen... " >&6; }
12269 if ${ac_cv_search_dlopen+:} false; then :
12270 $as_echo_n "(cached) " >&6
12271 else
12272 ac_func_search_save_LIBS=$LIBS
12273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12274 /* end confdefs.h. */
12275
12276 /* Override any GCC internal prototype to avoid an error.
12277 Use char because int might match the return type of a GCC
12278 builtin and then its argument prototype would still apply. */
12279 #ifdef __cplusplus
12280 extern "C"
12281 #endif
12282 char dlopen ();
12283 int
12284 main ()
12285 {
12286 return dlopen ();
12287 ;
12288 return 0;
12289 }
12290 _ACEOF
12291 for ac_lib in '' dl; do
12292 if test -z "$ac_lib"; then
12293 ac_res="none required"
12294 else
12295 ac_res=-l$ac_lib
12296 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12297 fi
12298 if ac_fn_c_try_link "$LINENO"; then :
12299 ac_cv_search_dlopen=$ac_res
12300 fi
12301 rm -f core conftest.err conftest.$ac_objext \
12302 conftest$ac_exeext
12303 if ${ac_cv_search_dlopen+:} false; then :
12304 break
12305 fi
12306 done
12307 if ${ac_cv_search_dlopen+:} false; then :
12308
12309 else
12310 ac_cv_search_dlopen=no
12311 fi
12312 rm conftest.$ac_ext
12313 LIBS=$ac_func_search_save_LIBS
12314 fi
12315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
12316 $as_echo "$ac_cv_search_dlopen" >&6; }
12317 ac_res=$ac_cv_search_dlopen
12318 if test "$ac_res" != no; then :
12319 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12320
12321 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
12322
12323 if test "$ac_cv_search_dlopen" != "none required" ; then
12324 LIBADD_DLOPEN="-ldl"
12325 fi
12326 libltdl_cv_lib_dl_dlopen="yes"
12327 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
12328 else
12329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12330 /* end confdefs.h. */
12331 #if HAVE_DLFCN_H
12332 # include <dlfcn.h>
12333 #endif
12334
12335 int
12336 main ()
12337 {
12338 dlopen(0, 0);
12339 ;
12340 return 0;
12341 }
12342 _ACEOF
12343 if ac_fn_c_try_link "$LINENO"; then :
12344
12345 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
12346
12347 libltdl_cv_func_dlopen="yes"
12348 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
12349 else
12350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12351 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12352 if ${ac_cv_lib_svld_dlopen+:} false; then :
12353 $as_echo_n "(cached) " >&6
12354 else
12355 ac_check_lib_save_LIBS=$LIBS
12356 LIBS="-lsvld $LIBS"
12357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12358 /* end confdefs.h. */
12359
12360 /* Override any GCC internal prototype to avoid an error.
12361 Use char because int might match the return type of a GCC
12362 builtin and then its argument prototype would still apply. */
12363 #ifdef __cplusplus
12364 extern "C"
12365 #endif
12366 char dlopen ();
12367 int
12368 main ()
12369 {
12370 return dlopen ();
12371 ;
12372 return 0;
12373 }
12374 _ACEOF
12375 if ac_fn_c_try_link "$LINENO"; then :
12376 ac_cv_lib_svld_dlopen=yes
12377 else
12378 ac_cv_lib_svld_dlopen=no
12379 fi
12380 rm -f core conftest.err conftest.$ac_objext \
12381 conftest$ac_exeext conftest.$ac_ext
12382 LIBS=$ac_check_lib_save_LIBS
12383 fi
12384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12385 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12386 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12387
12388 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
12389
12390 LIBADD_DLOPEN="-lsvld" libltdl_cv_func_dlopen="yes"
12391 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
12392 fi
12393
12394 fi
12395 rm -f core conftest.err conftest.$ac_objext \
12396 conftest$ac_exeext conftest.$ac_ext
12397 fi
12398
12399 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
12400 then
12401 lt_save_LIBS="$LIBS"
12402 LIBS="$LIBS $LIBADD_DLOPEN"
12403 for ac_func in dlerror
12404 do :
12405 ac_fn_c_check_func "$LINENO" "dlerror" "ac_cv_func_dlerror"
12406 if test "x$ac_cv_func_dlerror" = xyes; then :
12407 cat >>confdefs.h <<_ACEOF
12408 #define HAVE_DLERROR 1
12409 _ACEOF
12410
12411 fi
12412 done
12413
12414 LIBS="$lt_save_LIBS"
12415 fi
12416
12417
12418 LIBADD_SHL_LOAD=
12419 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12420 if test "x$ac_cv_func_shl_load" = xyes; then :
12421
12422 $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
12423
12424 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
12425 else
12426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12427 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12428 if ${ac_cv_lib_dld_shl_load+:} false; then :
12429 $as_echo_n "(cached) " >&6
12430 else
12431 ac_check_lib_save_LIBS=$LIBS
12432 LIBS="-ldld $LIBS"
12433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12434 /* end confdefs.h. */
12435
12436 /* Override any GCC internal prototype to avoid an error.
12437 Use char because int might match the return type of a GCC
12438 builtin and then its argument prototype would still apply. */
12439 #ifdef __cplusplus
12440 extern "C"
12441 #endif
12442 char shl_load ();
12443 int
12444 main ()
12445 {
12446 return shl_load ();
12447 ;
12448 return 0;
12449 }
12450 _ACEOF
12451 if ac_fn_c_try_link "$LINENO"; then :
12452 ac_cv_lib_dld_shl_load=yes
12453 else
12454 ac_cv_lib_dld_shl_load=no
12455 fi
12456 rm -f core conftest.err conftest.$ac_objext \
12457 conftest$ac_exeext conftest.$ac_ext
12458 LIBS=$ac_check_lib_save_LIBS
12459 fi
12460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12461 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12462 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12463
12464 $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
12465
12466 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
12467 LIBADD_SHL_LOAD="-ldld"
12468 fi
12469
12470 fi
12471
12472
12473
12474 case $host_os in
12475 darwin[1567].*)
12476 # We only want this for pre-Mac OS X 10.4.
12477 ac_fn_c_check_func "$LINENO" "_dyld_func_lookup" "ac_cv_func__dyld_func_lookup"
12478 if test "x$ac_cv_func__dyld_func_lookup" = xyes; then :
12479
12480 $as_echo "#define HAVE_DYLD 1" >>confdefs.h
12481
12482 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la"
12483 fi
12484
12485 ;;
12486 beos*)
12487 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la"
12488 ;;
12489 cygwin* | mingw* | os2* | pw32*)
12490 ac_fn_c_check_decl "$LINENO" "cygwin_conv_path" "ac_cv_have_decl_cygwin_conv_path" "#include <sys/cygwin.h>
12491 "
12492 if test "x$ac_cv_have_decl_cygwin_conv_path" = xyes; then :
12493 ac_have_decl=1
12494 else
12495 ac_have_decl=0
12496 fi
12497
12498 cat >>confdefs.h <<_ACEOF
12499 #define HAVE_DECL_CYGWIN_CONV_PATH $ac_have_decl
12500 _ACEOF
12501
12502 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la"
12503 ;;
12504 esac
12505
12506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12507 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12508 if ${ac_cv_lib_dld_dld_link+:} false; then :
12509 $as_echo_n "(cached) " >&6
12510 else
12511 ac_check_lib_save_LIBS=$LIBS
12512 LIBS="-ldld $LIBS"
12513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12514 /* end confdefs.h. */
12515
12516 /* Override any GCC internal prototype to avoid an error.
12517 Use char because int might match the return type of a GCC
12518 builtin and then its argument prototype would still apply. */
12519 #ifdef __cplusplus
12520 extern "C"
12521 #endif
12522 char dld_link ();
12523 int
12524 main ()
12525 {
12526 return dld_link ();
12527 ;
12528 return 0;
12529 }
12530 _ACEOF
12531 if ac_fn_c_try_link "$LINENO"; then :
12532 ac_cv_lib_dld_dld_link=yes
12533 else
12534 ac_cv_lib_dld_dld_link=no
12535 fi
12536 rm -f core conftest.err conftest.$ac_objext \
12537 conftest$ac_exeext conftest.$ac_ext
12538 LIBS=$ac_check_lib_save_LIBS
12539 fi
12540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12541 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12542 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12543
12544 $as_echo "#define HAVE_DLD 1" >>confdefs.h
12545
12546 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la"
12547 fi
12548
12549
12550
12551
12552 LT_DLPREOPEN=
12553 if test -n "$LT_DLLOADERS"
12554 then
12555 for lt_loader in $LT_DLLOADERS; do
12556 LT_DLPREOPEN="$LT_DLPREOPEN-dlpreopen $lt_loader "
12557 done
12558
12559 $as_echo "#define HAVE_LIBDLLOADER 1" >>confdefs.h
12560
12561 fi
12562
12563
12564 LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD"
12565
12566
12567 ac_ext=c
12568 ac_cpp='$CPP $CPPFLAGS'
12569 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12570 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12571 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12572
12573
12574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _ prefix in compiled symbols" >&5
12575 $as_echo_n "checking for _ prefix in compiled symbols... " >&6; }
12576 if ${lt_cv_sys_symbol_underscore+:} false; then :
12577 $as_echo_n "(cached) " >&6
12578 else
12579 lt_cv_sys_symbol_underscore=no
12580 cat > conftest.$ac_ext <<_LT_EOF
12581 void nm_test_func(){}
12582 int main(){nm_test_func;return 0;}
12583 _LT_EOF
12584 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12585 (eval $ac_compile) 2>&5
12586 ac_status=$?
12587 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12588 test $ac_status = 0; }; then
12589 # Now try to grab the symbols.
12590 ac_nlist=conftest.nm
12591 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\""; } >&5
12592 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
12593 ac_status=$?
12594 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12595 test $ac_status = 0; } && test -s "$ac_nlist"; then
12596 # See whether the symbols have a leading underscore.
12597 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
12598 lt_cv_sys_symbol_underscore=yes
12599 else
12600 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
12601 :
12602 else
12603 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
12604 fi
12605 fi
12606 else
12607 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
12608 fi
12609 else
12610 echo "configure: failed program was:" >&5
12611 cat conftest.c >&5
12612 fi
12613 rm -rf conftest*
12614
12615 fi
12616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_symbol_underscore" >&5
12617 $as_echo "$lt_cv_sys_symbol_underscore" >&6; }
12618 sys_symbol_underscore=$lt_cv_sys_symbol_underscore
12619
12620
12621 if test x"$lt_cv_sys_symbol_underscore" = xyes; then
12622 if test x"$libltdl_cv_func_dlopen" = xyes ||
12623 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
12624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have to add an underscore for dlsym" >&5
12625 $as_echo_n "checking whether we have to add an underscore for dlsym... " >&6; }
12626 if ${libltdl_cv_need_uscore+:} false; then :
12627 $as_echo_n "(cached) " >&6
12628 else
12629 libltdl_cv_need_uscore=unknown
12630 save_LIBS="$LIBS"
12631 LIBS="$LIBS $LIBADD_DLOPEN"
12632 if test "$cross_compiling" = yes; then :
12633 libltdl_cv_need_uscore=cross
12634 else
12635 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12636 lt_status=$lt_dlunknown
12637 cat > conftest.$ac_ext <<_LT_EOF
12638 #line $LINENO "configure"
12639 #include "confdefs.h"
12640
12641 #if HAVE_DLFCN_H
12642 #include <dlfcn.h>
12643 #endif
12644
12645 #include <stdio.h>
12646
12647 #ifdef RTLD_GLOBAL
12648 # define LT_DLGLOBAL RTLD_GLOBAL
12649 #else
12650 # ifdef DL_GLOBAL
12651 # define LT_DLGLOBAL DL_GLOBAL
12652 # else
12653 # define LT_DLGLOBAL 0
12654 # endif
12655 #endif
12656
12657 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12658 find out it does not work in some platform. */
12659 #ifndef LT_DLLAZY_OR_NOW
12660 # ifdef RTLD_LAZY
12661 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12662 # else
12663 # ifdef DL_LAZY
12664 # define LT_DLLAZY_OR_NOW DL_LAZY
12665 # else
12666 # ifdef RTLD_NOW
12667 # define LT_DLLAZY_OR_NOW RTLD_NOW
12668 # else
12669 # ifdef DL_NOW
12670 # define LT_DLLAZY_OR_NOW DL_NOW
12671 # else
12672 # define LT_DLLAZY_OR_NOW 0
12673 # endif
12674 # endif
12675 # endif
12676 # endif
12677 #endif
12678
12679 /* When -fvisbility=hidden is used, assume the code has been annotated
12680 correspondingly for the symbols needed. */
12681 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12682 int fnord () __attribute__((visibility("default")));
12683 #endif
12684
12685 int fnord () { return 42; }
12686 int main ()
12687 {
12688 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12689 int status = $lt_dlunknown;
12690
12691 if (self)
12692 {
12693 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12694 else
12695 {
12696 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12697 else puts (dlerror ());
12698 }
12699 /* dlclose (self); */
12700 }
12701 else
12702 puts (dlerror ());
12703
12704 return status;
12705 }
12706 _LT_EOF
12707 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12708 (eval $ac_link) 2>&5
12709 ac_status=$?
12710 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12711 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12712 (./conftest; exit; ) >&5 2>/dev/null
12713 lt_status=$?
12714 case x$lt_status in
12715 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
12716 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
12717 x$lt_dlunknown|x*) ;;
12718 esac
12719 else :
12720 # compilation failed
12721
12722 fi
12723 fi
12724 rm -fr conftest*
12725
12726 LIBS="$save_LIBS"
12727
12728 fi
12729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_need_uscore" >&5
12730 $as_echo "$libltdl_cv_need_uscore" >&6; }
12731 fi
12732 fi
12733
12734 if test x"$libltdl_cv_need_uscore" = xyes; then
12735
12736 $as_echo "#define NEED_USCORE 1" >>confdefs.h
12737
12738 fi
12739
12740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether deplibs are loaded by dlopen" >&5
12741 $as_echo_n "checking whether deplibs are loaded by dlopen... " >&6; }
12742 if ${lt_cv_sys_dlopen_deplibs+:} false; then :
12743 $as_echo_n "(cached) " >&6
12744 else
12745 # PORTME does your system automatically load deplibs for dlopen?
12746 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
12747 # For now, we just catch OSes we know something about -- in the
12748 # future, we'll try test this programmatically.
12749 lt_cv_sys_dlopen_deplibs=unknown
12750 case $host_os in
12751 aix3*|aix4.1.*|aix4.2.*)
12752 # Unknown whether this is true for these versions of AIX, but
12753 # we want this `case' here to explicitly catch those versions.
12754 lt_cv_sys_dlopen_deplibs=unknown
12755 ;;
12756 aix[4-9]*)
12757 lt_cv_sys_dlopen_deplibs=yes
12758 ;;
12759 amigaos*)
12760 case $host_cpu in
12761 powerpc)
12762 lt_cv_sys_dlopen_deplibs=no
12763 ;;
12764 esac
12765 ;;
12766 darwin*)
12767 # Assuming the user has installed a libdl from somewhere, this is true
12768 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
12769 lt_cv_sys_dlopen_deplibs=yes
12770 ;;
12771 freebsd* | dragonfly*)
12772 lt_cv_sys_dlopen_deplibs=yes
12773 ;;
12774 gnu* | linux* | k*bsd*-gnu | kopensolaris*-gnu)
12775 # GNU and its variants, using gnu ld.so (Glibc)
12776 lt_cv_sys_dlopen_deplibs=yes
12777 ;;
12778 hpux10*|hpux11*)
12779 lt_cv_sys_dlopen_deplibs=yes
12780 ;;
12781 interix*)
12782 lt_cv_sys_dlopen_deplibs=yes
12783 ;;
12784 irix[12345]*|irix6.[01]*)
12785 # Catch all versions of IRIX before 6.2, and indicate that we don't
12786 # know how it worked for any of those versions.
12787 lt_cv_sys_dlopen_deplibs=unknown
12788 ;;
12789 irix*)
12790 # The case above catches anything before 6.2, and it's known that
12791 # at 6.2 and later dlopen does load deplibs.
12792 lt_cv_sys_dlopen_deplibs=yes
12793 ;;
12794 netbsd*)
12795 lt_cv_sys_dlopen_deplibs=yes
12796 ;;
12797 openbsd*)
12798 lt_cv_sys_dlopen_deplibs=yes
12799 ;;
12800 osf[1234]*)
12801 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
12802 # it did *not* use an RPATH in a shared library to find objects the
12803 # library depends on, so we explicitly say `no'.
12804 lt_cv_sys_dlopen_deplibs=no
12805 ;;
12806 osf5.0|osf5.0a|osf5.1)
12807 # dlopen *does* load deplibs and with the right loader patch applied
12808 # it even uses RPATH in a shared library to search for shared objects
12809 # that the library depends on, but there's no easy way to know if that
12810 # patch is installed. Since this is the case, all we can really
12811 # say is unknown -- it depends on the patch being installed. If
12812 # it is, this changes to `yes'. Without it, it would be `no'.
12813 lt_cv_sys_dlopen_deplibs=unknown
12814 ;;
12815 osf*)
12816 # the two cases above should catch all versions of osf <= 5.1. Read
12817 # the comments above for what we know about them.
12818 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
12819 # is used to find them so we can finally say `yes'.
12820 lt_cv_sys_dlopen_deplibs=yes
12821 ;;
12822 qnx*)
12823 lt_cv_sys_dlopen_deplibs=yes
12824 ;;
12825 solaris*)
12826 lt_cv_sys_dlopen_deplibs=yes
12827 ;;
12828 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12829 libltdl_cv_sys_dlopen_deplibs=yes
12830 ;;
12831 esac
12832
12833 fi
12834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlopen_deplibs" >&5
12835 $as_echo "$lt_cv_sys_dlopen_deplibs" >&6; }
12836 if test "$lt_cv_sys_dlopen_deplibs" != yes; then
12837
12838 $as_echo "#define LTDL_DLOPEN_DEPLIBS 1" >>confdefs.h
12839
12840 fi
12841
12842 :
12843
12844 for ac_header in argz.h
12845 do :
12846 ac_fn_c_check_header_compile "$LINENO" "argz.h" "ac_cv_header_argz_h" "$ac_includes_default
12847 "
12848 if test "x$ac_cv_header_argz_h" = xyes; then :
12849 cat >>confdefs.h <<_ACEOF
12850 #define HAVE_ARGZ_H 1
12851 _ACEOF
12852
12853 fi
12854
12855 done
12856
12857
12858 ac_fn_c_check_type "$LINENO" "error_t" "ac_cv_type_error_t" "#if defined(HAVE_ARGZ_H)
12859 # include <argz.h>
12860 #endif
12861 "
12862 if test "x$ac_cv_type_error_t" = xyes; then :
12863
12864 cat >>confdefs.h <<_ACEOF
12865 #define HAVE_ERROR_T 1
12866 _ACEOF
12867
12868
12869 else
12870
12871 $as_echo "#define error_t int" >>confdefs.h
12872
12873
12874 $as_echo "#define __error_t_defined 1" >>confdefs.h
12875
12876 fi
12877
12878
12879 ARGZ_H=
12880 for ac_func in argz_add argz_append argz_count argz_create_sep argz_insert \
12881 argz_next argz_stringify
12882 do :
12883 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12884 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12885 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12886 cat >>confdefs.h <<_ACEOF
12887 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12888 _ACEOF
12889
12890 else
12891 ARGZ_H=argz.h;
12892
12893 _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
12894
12895 fi
12896 done
12897
12898
12899 if test -z "$ARGZ_H"; then :
12900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if argz actually works" >&5
12901 $as_echo_n "checking if argz actually works... " >&6; }
12902 if ${lt_cv_sys_argz_works+:} false; then :
12903 $as_echo_n "(cached) " >&6
12904 else
12905 case $host_os in #(
12906 *cygwin*)
12907 lt_cv_sys_argz_works=no
12908 if test "$cross_compiling" != no; then
12909 lt_cv_sys_argz_works="guessing no"
12910 else
12911 lt_sed_extract_leading_digits='s/^\([0-9\.]*\).*/\1/'
12912 save_IFS=$IFS
12913 IFS=-.
12914 set x `uname -r | sed -e "$lt_sed_extract_leading_digits"`
12915 IFS=$save_IFS
12916 lt_os_major=${2-0}
12917 lt_os_minor=${3-0}
12918 lt_os_micro=${4-0}
12919 if test "$lt_os_major" -gt 1 \
12920 || { test "$lt_os_major" -eq 1 \
12921 && { test "$lt_os_minor" -gt 5 \
12922 || { test "$lt_os_minor" -eq 5 \
12923 && test "$lt_os_micro" -gt 24; }; }; }; then
12924 lt_cv_sys_argz_works=yes
12925 fi
12926 fi
12927 ;; #(
12928 *) lt_cv_sys_argz_works=yes ;;
12929 esac
12930 fi
12931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_argz_works" >&5
12932 $as_echo "$lt_cv_sys_argz_works" >&6; }
12933 if test "$lt_cv_sys_argz_works" = yes; then :
12934
12935 $as_echo "#define HAVE_WORKING_ARGZ 1" >>confdefs.h
12936
12937 else
12938 ARGZ_H=argz.h
12939
12940
12941 _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
12942
12943 fi
12944 fi
12945
12946
12947
12948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libtool supports -dlopen/-dlpreopen" >&5
12949 $as_echo_n "checking whether libtool supports -dlopen/-dlpreopen... " >&6; }
12950 if ${libltdl_cv_preloaded_symbols+:} false; then :
12951 $as_echo_n "(cached) " >&6
12952 else
12953 if test -n "$lt_cv_sys_global_symbol_pipe"; then
12954 libltdl_cv_preloaded_symbols=yes
12955 else
12956 libltdl_cv_preloaded_symbols=no
12957 fi
12958
12959 fi
12960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_preloaded_symbols" >&5
12961 $as_echo "$libltdl_cv_preloaded_symbols" >&6; }
12962 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
12963
12964 $as_echo "#define HAVE_PRELOADED_SYMBOLS 1" >>confdefs.h
12965
12966 fi
12967
12968 # Set options
12969
12970
12971
12972
12973
12974
12975
12976
12977
12978
12979
12980 # Check whether --with-included_ltdl was given.
12981 if test "${with_included_ltdl+set}" = set; then :
12982 withval=$with_included_ltdl;
12983 fi
12984
12985
12986 if test "x$with_included_ltdl" != xyes; then
12987 # We are not being forced to use the included libltdl sources, so
12988 # decide whether there is a useful installed version we can use.
12989 ac_fn_c_check_header_compile "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default
12990
12991 "
12992 if test "x$ac_cv_header_ltdl_h" = xyes; then :
12993 ac_fn_c_check_decl "$LINENO" "lt_dlinterface_register" "ac_cv_have_decl_lt_dlinterface_register" "$ac_includes_default
12994 #include <ltdl.h>
12995 "
12996 if test "x$ac_cv_have_decl_lt_dlinterface_register" = xyes; then :
12997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dladvise_preload in -lltdl" >&5
12998 $as_echo_n "checking for lt_dladvise_preload in -lltdl... " >&6; }
12999 if ${ac_cv_lib_ltdl_lt_dladvise_preload+:} false; then :
13000 $as_echo_n "(cached) " >&6
13001 else
13002 ac_check_lib_save_LIBS=$LIBS
13003 LIBS="-lltdl $LIBS"
13004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13005 /* end confdefs.h. */
13006
13007 /* Override any GCC internal prototype to avoid an error.
13008 Use char because int might match the return type of a GCC
13009 builtin and then its argument prototype would still apply. */
13010 #ifdef __cplusplus
13011 extern "C"
13012 #endif
13013 char lt_dladvise_preload ();
13014 int
13015 main ()
13016 {
13017 return lt_dladvise_preload ();
13018 ;
13019 return 0;
13020 }
13021 _ACEOF
13022 if ac_fn_c_try_link "$LINENO"; then :
13023 ac_cv_lib_ltdl_lt_dladvise_preload=yes
13024 else
13025 ac_cv_lib_ltdl_lt_dladvise_preload=no
13026 fi
13027 rm -f core conftest.err conftest.$ac_objext \
13028 conftest$ac_exeext conftest.$ac_ext
13029 LIBS=$ac_check_lib_save_LIBS
13030 fi
13031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dladvise_preload" >&5
13032 $as_echo "$ac_cv_lib_ltdl_lt_dladvise_preload" >&6; }
13033 if test "x$ac_cv_lib_ltdl_lt_dladvise_preload" = xyes; then :
13034 with_included_ltdl=no
13035 else
13036 with_included_ltdl=yes
13037 fi
13038
13039 else
13040 with_included_ltdl=yes
13041 fi
13042
13043 else
13044 with_included_ltdl=yes
13045 fi
13046
13047
13048 fi
13049
13050
13051
13052
13053 # Check whether --with-ltdl_include was given.
13054 if test "${with_ltdl_include+set}" = set; then :
13055 withval=$with_ltdl_include;
13056 fi
13057
13058
13059 if test -n "$with_ltdl_include"; then
13060 if test -f "$with_ltdl_include/ltdl.h"; then :
13061 else
13062 as_fn_error $? "invalid ltdl include directory: \`$with_ltdl_include'" "$LINENO" 5
13063 fi
13064 else
13065 with_ltdl_include=no
13066 fi
13067
13068
13069 # Check whether --with-ltdl_lib was given.
13070 if test "${with_ltdl_lib+set}" = set; then :
13071 withval=$with_ltdl_lib;
13072 fi
13073
13074
13075 if test -n "$with_ltdl_lib"; then
13076 if test -f "$with_ltdl_lib/libltdl.la"; then :
13077 else
13078 as_fn_error $? "invalid ltdl library directory: \`$with_ltdl_lib'" "$LINENO" 5
13079 fi
13080 else
13081 with_ltdl_lib=no
13082 fi
13083
13084 case ,$with_included_ltdl,$with_ltdl_include,$with_ltdl_lib, in
13085 ,yes,no,no,)
13086 case $enable_ltdl_convenience in
13087 no) as_fn_error $? "this package needs a convenience libltdl" "$LINENO" 5 ;;
13088 "") enable_ltdl_convenience=yes
13089 ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
13090 esac
13091 LIBLTDL='${top_build_prefix}'"${lt_ltdl_dir+$lt_ltdl_dir/}libltdlc.la"
13092 LTDLDEPS=$LIBLTDL
13093 LTDLINCL='-I${top_srcdir}'"${lt_ltdl_dir+/$lt_ltdl_dir}"
13094
13095
13096
13097
13098
13099 # For backwards non-gettext consistent compatibility...
13100 INCLTDL="$LTDLINCL"
13101
13102
13103 ;;
13104 ,no,no,no,)
13105 # If the included ltdl is not to be used, then use the
13106 # preinstalled libltdl we found.
13107
13108 $as_echo "#define HAVE_LTDL 1" >>confdefs.h
13109
13110 LIBLTDL=-lltdl
13111 LTDLDEPS=
13112 LTDLINCL=
13113 ;;
13114 ,no*,no,*)
13115 as_fn_error $? "\`--with-ltdl-include' and \`--with-ltdl-lib' options must be used together" "$LINENO" 5
13116 ;;
13117 *) with_included_ltdl=no
13118 LIBLTDL="-L$with_ltdl_lib -lltdl"
13119 LTDLDEPS=
13120 LTDLINCL="-I$with_ltdl_include"
13121 ;;
13122 esac
13123 INCLTDL="$LTDLINCL"
13124
13125 # Report our decision...
13126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl headers" >&5
13127 $as_echo_n "checking where to find libltdl headers... " >&6; }
13128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LTDLINCL" >&5
13129 $as_echo "$LTDLINCL" >&6; }
13130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl library" >&5
13131 $as_echo_n "checking where to find libltdl library... " >&6; }
13132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBLTDL" >&5
13133 $as_echo "$LIBLTDL" >&6; }
13134
13135
13136
13137 # Check whether --enable-ltdl-install was given.
13138 if test "${enable_ltdl_install+set}" = set; then :
13139 enableval=$enable_ltdl_install;
13140 fi
13141
13142
13143 case ,${enable_ltdl_install},${enable_ltdl_convenience} in
13144 *yes*) ;;
13145 *) enable_ltdl_convenience=yes ;;
13146 esac
13147
13148 if test x"${enable_ltdl_install-no}" != xno; then
13149 INSTALL_LTDL_TRUE=
13150 INSTALL_LTDL_FALSE='#'
13151 else
13152 INSTALL_LTDL_TRUE='#'
13153 INSTALL_LTDL_FALSE=
13154 fi
13155
13156 if test x"${enable_ltdl_convenience-no}" != xno; then
13157 CONVENIENCE_LTDL_TRUE=
13158 CONVENIENCE_LTDL_FALSE='#'
13159 else
13160 CONVENIENCE_LTDL_TRUE='#'
13161 CONVENIENCE_LTDL_FALSE=
13162 fi
13163
13164
13165
13166
13167
13168
13169 # In order that ltdl.c can compile, find out the first AC_CONFIG_HEADERS
13170 # the user used. This is so that ltdl.h can pick up the parent projects
13171 # config.h file, The first file in AC_CONFIG_HEADERS must contain the
13172 # definitions required by ltdl.c.
13173 # FIXME: Remove use of undocumented AC_LIST_HEADERS (2.59 compatibility).
13174
13175
13176
13177 for ac_header in unistd.h dl.h sys/dl.h dld.h mach-o/dyld.h dirent.h
13178 do :
13179 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13180 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
13181 "
13182 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13183 cat >>confdefs.h <<_ACEOF
13184 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13185 _ACEOF
13186
13187 fi
13188
13189 done
13190
13191
13192 for ac_func in closedir opendir readdir
13193 do :
13194 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13195 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13196 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13197 cat >>confdefs.h <<_ACEOF
13198 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13199 _ACEOF
13200
13201 else
13202
13203
13204 _LT_LIBOBJS="$_LT_LIBOBJS lt__dirent.$ac_objext"
13205
13206 fi
13207 done
13208
13209 for ac_func in strlcat strlcpy
13210 do :
13211 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13212 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13213 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13214 cat >>confdefs.h <<_ACEOF
13215 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13216 _ACEOF
13217
13218 else
13219
13220
13221 _LT_LIBOBJS="$_LT_LIBOBJS lt__strl.$ac_objext"
13222
13223 fi
13224 done
13225
13226
13227
13228 cat >>confdefs.h <<_ACEOF
13229 #define LT_LIBEXT "$libext"
13230 _ACEOF
13231
13232
13233 name=
13234 eval "lt_libprefix=\"$libname_spec\""
13235
13236 cat >>confdefs.h <<_ACEOF
13237 #define LT_LIBPREFIX "$lt_libprefix"
13238 _ACEOF
13239
13240
13241 name=ltdl
13242 eval "LTDLOPEN=\"$libname_spec\""
13243
13244
13245
13246
13247
13248
13249
13250
13251 # Only expand once:
13252
13253
13254 LIBTOOL="$LIBTOOL --silent"
13255
13256 # The cast to long int works around a bug in the HP C Compiler
13257 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13258 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13259 # This bug is HP SR number 8606223364.
13260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
13261 $as_echo_n "checking size of short... " >&6; }
13262 if ${ac_cv_sizeof_short+:} false; then :
13263 $as_echo_n "(cached) " >&6
13264 else
13265 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
13266
13267 else
13268 if test "$ac_cv_type_short" = yes; then
13269 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13270 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13271 as_fn_error 77 "cannot compute sizeof (short)
13272 See \`config.log' for more details" "$LINENO" 5; }
13273 else
13274 ac_cv_sizeof_short=0
13275 fi
13276 fi
13277
13278 fi
13279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
13280 $as_echo "$ac_cv_sizeof_short" >&6; }
13281
13282
13283
13284 cat >>confdefs.h <<_ACEOF
13285 #define SIZEOF_SHORT $ac_cv_sizeof_short
13286 _ACEOF
13287
13288
13289 # The cast to long int works around a bug in the HP C Compiler
13290 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13291 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13292 # This bug is HP SR number 8606223364.
13293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
13294 $as_echo_n "checking size of int... " >&6; }
13295 if ${ac_cv_sizeof_int+:} false; then :
13296 $as_echo_n "(cached) " >&6
13297 else
13298 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
13299
13300 else
13301 if test "$ac_cv_type_int" = yes; then
13302 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13303 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13304 as_fn_error 77 "cannot compute sizeof (int)
13305 See \`config.log' for more details" "$LINENO" 5; }
13306 else
13307 ac_cv_sizeof_int=0
13308 fi
13309 fi
13310
13311 fi
13312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
13313 $as_echo "$ac_cv_sizeof_int" >&6; }
13314
13315
13316
13317 cat >>confdefs.h <<_ACEOF
13318 #define SIZEOF_INT $ac_cv_sizeof_int
13319 _ACEOF
13320
13321
13322 # The cast to long int works around a bug in the HP C Compiler
13323 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13324 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13325 # This bug is HP SR number 8606223364.
13326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
13327 $as_echo_n "checking size of long... " >&6; }
13328 if ${ac_cv_sizeof_long+:} false; then :
13329 $as_echo_n "(cached) " >&6
13330 else
13331 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
13332
13333 else
13334 if test "$ac_cv_type_long" = yes; then
13335 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13336 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13337 as_fn_error 77 "cannot compute sizeof (long)
13338 See \`config.log' for more details" "$LINENO" 5; }
13339 else
13340 ac_cv_sizeof_long=0
13341 fi
13342 fi
13343
13344 fi
13345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
13346 $as_echo "$ac_cv_sizeof_long" >&6; }
13347
13348
13349
13350 cat >>confdefs.h <<_ACEOF
13351 #define SIZEOF_LONG $ac_cv_sizeof_long
13352 _ACEOF
13353
13354
13355 # The cast to long int works around a bug in the HP C Compiler
13356 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13357 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13358 # This bug is HP SR number 8606223364.
13359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
13360 $as_echo_n "checking size of void *... " >&6; }
13361 if ${ac_cv_sizeof_void_p+:} false; then :
13362 $as_echo_n "(cached) " >&6
13363 else
13364 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
13365
13366 else
13367 if test "$ac_cv_type_void_p" = yes; then
13368 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13369 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13370 as_fn_error 77 "cannot compute sizeof (void *)
13371 See \`config.log' for more details" "$LINENO" 5; }
13372 else
13373 ac_cv_sizeof_void_p=0
13374 fi
13375 fi
13376
13377 fi
13378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
13379 $as_echo "$ac_cv_sizeof_void_p" >&6; }
13380
13381
13382
13383 cat >>confdefs.h <<_ACEOF
13384 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
13385 _ACEOF
13386
13387
13388 # The cast to long int works around a bug in the HP C Compiler
13389 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13390 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13391 # This bug is HP SR number 8606223364.
13392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int64_t" >&5
13393 $as_echo_n "checking size of int64_t... " >&6; }
13394 if ${ac_cv_sizeof_int64_t+:} false; then :
13395 $as_echo_n "(cached) " >&6
13396 else
13397 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int64_t))" "ac_cv_sizeof_int64_t" "$ac_includes_default"; then :
13398
13399 else
13400 if test "$ac_cv_type_int64_t" = yes; then
13401 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13402 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13403 as_fn_error 77 "cannot compute sizeof (int64_t)
13404 See \`config.log' for more details" "$LINENO" 5; }
13405 else
13406 ac_cv_sizeof_int64_t=0
13407 fi
13408 fi
13409
13410 fi
13411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int64_t" >&5
13412 $as_echo "$ac_cv_sizeof_int64_t" >&6; }
13413
13414
13415
13416 cat >>confdefs.h <<_ACEOF
13417 #define SIZEOF_INT64_T $ac_cv_sizeof_int64_t
13418 _ACEOF
13419
13420
13421 # The cast to long int works around a bug in the HP C Compiler
13422 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13423 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13424 # This bug is HP SR number 8606223364.
13425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
13426 $as_echo_n "checking size of long long... " >&6; }
13427 if ${ac_cv_sizeof_long_long+:} false; then :
13428 $as_echo_n "(cached) " >&6
13429 else
13430 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
13431
13432 else
13433 if test "$ac_cv_type_long_long" = yes; then
13434 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13435 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13436 as_fn_error 77 "cannot compute sizeof (long long)
13437 See \`config.log' for more details" "$LINENO" 5; }
13438 else
13439 ac_cv_sizeof_long_long=0
13440 fi
13441 fi
13442
13443 fi
13444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
13445 $as_echo "$ac_cv_sizeof_long_long" >&6; }
13446
13447
13448
13449 cat >>confdefs.h <<_ACEOF
13450 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
13451 _ACEOF
13452
13453
13454
13455 if test "$ac_cv_sizeof_int" = 2 ; then
13456 ac_fn_c_check_type "$LINENO" "int16_t" "ac_cv_type_int16_t" "$ac_includes_default"
13457 if test "x$ac_cv_type_int16_t" = xyes; then :
13458
13459 else
13460
13461 cat >>confdefs.h <<_ACEOF
13462 #define int16_t int
13463 _ACEOF
13464
13465 fi
13466
13467 ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default"
13468 if test "x$ac_cv_type_uint16_t" = xyes; then :
13469
13470 else
13471
13472 cat >>confdefs.h <<_ACEOF
13473 #define uint16_t unsigned int
13474 _ACEOF
13475
13476 fi
13477
13478 elif test "$ac_cv_sizeof_short" = 2 ; then
13479 ac_fn_c_check_type "$LINENO" "int16_t" "ac_cv_type_int16_t" "$ac_includes_default"
13480 if test "x$ac_cv_type_int16_t" = xyes; then :
13481
13482 else
13483
13484 cat >>confdefs.h <<_ACEOF
13485 #define int16_t short
13486 _ACEOF
13487
13488 fi
13489
13490 ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default"
13491 if test "x$ac_cv_type_uint16_t" = xyes; then :
13492
13493 else
13494
13495 cat >>confdefs.h <<_ACEOF
13496 #define uint16_t unsigned short
13497 _ACEOF
13498
13499 fi
13500
13501 else
13502 as_fn_error $? "Cannot find a type with size of 16 bits" "$LINENO" 5
13503 fi
13504 if test "$ac_cv_sizeof_int" = 4 ; then
13505 ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default"
13506 if test "x$ac_cv_type_int32_t" = xyes; then :
13507
13508 else
13509
13510 cat >>confdefs.h <<_ACEOF
13511 #define int32_t int
13512 _ACEOF
13513
13514 fi
13515
13516 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default"
13517 if test "x$ac_cv_type_uint32_t" = xyes; then :
13518
13519 else
13520
13521 cat >>confdefs.h <<_ACEOF
13522 #define uint32_t unsigned int
13523 _ACEOF
13524
13525 fi
13526
13527 elif test "$ac_cv_sizeof_short" = 4 ; then
13528 ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default"
13529 if test "x$ac_cv_type_int32_t" = xyes; then :
13530
13531 else
13532
13533 cat >>confdefs.h <<_ACEOF
13534 #define int32_t short
13535 _ACEOF
13536
13537 fi
13538
13539 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default"
13540 if test "x$ac_cv_type_uint32_t" = xyes; then :
13541
13542 else
13543
13544 cat >>confdefs.h <<_ACEOF
13545 #define uint32_t unsigned short
13546 _ACEOF
13547
13548 fi
13549
13550 elif test "$ac_cv_sizeof_long" = 4 ; then
13551 ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default"
13552 if test "x$ac_cv_type_int32_t" = xyes; then :
13553
13554 else
13555
13556 cat >>confdefs.h <<_ACEOF
13557 #define int32_t long
13558 _ACEOF
13559
13560 fi
13561
13562 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default"
13563 if test "x$ac_cv_type_uint32_t" = xyes; then :
13564
13565 else
13566
13567 cat >>confdefs.h <<_ACEOF
13568 #define uint32_t unsigned long
13569 _ACEOF
13570
13571 fi
13572
13573 else
13574 as_fn_error $? "Cannot find a type with size of 32 bits" "$LINENO" 5
13575 fi
13576 if test "$ac_cv_sizeof_int64_t" = 8 ; then
13577 ac_fn_c_check_type "$LINENO" "int64_t" "ac_cv_type_int64_t" "$ac_includes_default"
13578 if test "x$ac_cv_type_int64_t" = xyes; then :
13579
13580 fi
13581
13582 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "$ac_includes_default"
13583 if test "x$ac_cv_type_uint64_t" = xyes; then :
13584
13585 fi
13586
13587 elif test "$ac_cv_sizeof_long_long" = 8 ; then
13588 ac_fn_c_check_type "$LINENO" "int64_t" "ac_cv_type_int64_t" "$ac_includes_default"
13589 if test "x$ac_cv_type_int64_t" = xyes; then :
13590
13591 else
13592
13593 cat >>confdefs.h <<_ACEOF
13594 #define int64_t long long
13595 _ACEOF
13596
13597 fi
13598
13599 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "$ac_includes_default"
13600 if test "x$ac_cv_type_uint64_t" = xyes; then :
13601
13602 else
13603
13604 cat >>confdefs.h <<_ACEOF
13605 #define uint64_t unsigned long long
13606 _ACEOF
13607
13608 fi
13609
13610 else
13611 as_fn_error $? "Cannot find a type with size of 64 bits" "$LINENO" 5
13612 fi
13613
13614
13615 # Checks for libraries.
13616
13617 ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo"
13618 if test "x$ac_cv_func_getaddrinfo" = xyes; then :
13619
13620 else
13621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getaddrinfo" >&5
13622 $as_echo_n "checking for library containing getaddrinfo... " >&6; }
13623 if ${ac_cv_search_getaddrinfo+:} false; then :
13624 $as_echo_n "(cached) " >&6
13625 else
13626 ac_func_search_save_LIBS=$LIBS
13627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13628 /* end confdefs.h. */
13629
13630 /* Override any GCC internal prototype to avoid an error.
13631 Use char because int might match the return type of a GCC
13632 builtin and then its argument prototype would still apply. */
13633 #ifdef __cplusplus
13634 extern "C"
13635 #endif
13636 char getaddrinfo ();
13637 int
13638 main ()
13639 {
13640 return getaddrinfo ();
13641 ;
13642 return 0;
13643 }
13644 _ACEOF
13645 for ac_lib in '' nsl; do
13646 if test -z "$ac_lib"; then
13647 ac_res="none required"
13648 else
13649 ac_res=-l$ac_lib
13650 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13651 fi
13652 if ac_fn_c_try_link "$LINENO"; then :
13653 ac_cv_search_getaddrinfo=$ac_res
13654 fi
13655 rm -f core conftest.err conftest.$ac_objext \
13656 conftest$ac_exeext
13657 if ${ac_cv_search_getaddrinfo+:} false; then :
13658 break
13659 fi
13660 done
13661 if ${ac_cv_search_getaddrinfo+:} false; then :
13662
13663 else
13664 ac_cv_search_getaddrinfo=no
13665 fi
13666 rm conftest.$ac_ext
13667 LIBS=$ac_func_search_save_LIBS
13668 fi
13669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getaddrinfo" >&5
13670 $as_echo "$ac_cv_search_getaddrinfo" >&6; }
13671 ac_res=$ac_cv_search_getaddrinfo
13672 if test "$ac_res" != no; then :
13673 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13674
13675 fi
13676
13677 fi
13678
13679 ac_fn_c_check_func "$LINENO" "getnameinfo" "ac_cv_func_getnameinfo"
13680 if test "x$ac_cv_func_getnameinfo" = xyes; then :
13681
13682 else
13683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getnameinfo" >&5
13684 $as_echo_n "checking for library containing getnameinfo... " >&6; }
13685 if ${ac_cv_search_getnameinfo+:} false; then :
13686 $as_echo_n "(cached) " >&6
13687 else
13688 ac_func_search_save_LIBS=$LIBS
13689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13690 /* end confdefs.h. */
13691
13692 /* Override any GCC internal prototype to avoid an error.
13693 Use char because int might match the return type of a GCC
13694 builtin and then its argument prototype would still apply. */
13695 #ifdef __cplusplus
13696 extern "C"
13697 #endif
13698 char getnameinfo ();
13699 int
13700 main ()
13701 {
13702 return getnameinfo ();
13703 ;
13704 return 0;
13705 }
13706 _ACEOF
13707 for ac_lib in '' nsl; do
13708 if test -z "$ac_lib"; then
13709 ac_res="none required"
13710 else
13711 ac_res=-l$ac_lib
13712 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13713 fi
13714 if ac_fn_c_try_link "$LINENO"; then :
13715 ac_cv_search_getnameinfo=$ac_res
13716 fi
13717 rm -f core conftest.err conftest.$ac_objext \
13718 conftest$ac_exeext
13719 if ${ac_cv_search_getnameinfo+:} false; then :
13720 break
13721 fi
13722 done
13723 if ${ac_cv_search_getnameinfo+:} false; then :
13724
13725 else
13726 ac_cv_search_getnameinfo=no
13727 fi
13728 rm conftest.$ac_ext
13729 LIBS=$ac_func_search_save_LIBS
13730 fi
13731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getnameinfo" >&5
13732 $as_echo "$ac_cv_search_getnameinfo" >&6; }
13733 ac_res=$ac_cv_search_getnameinfo
13734 if test "$ac_res" != no; then :
13735 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13736
13737 fi
13738
13739 fi
13740
13741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
13742 $as_echo_n "checking for library containing socket... " >&6; }
13743 if ${ac_cv_search_socket+:} false; then :
13744 $as_echo_n "(cached) " >&6
13745 else
13746 ac_func_search_save_LIBS=$LIBS
13747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13748 /* end confdefs.h. */
13749
13750 /* Override any GCC internal prototype to avoid an error.
13751 Use char because int might match the return type of a GCC
13752 builtin and then its argument prototype would still apply. */
13753 #ifdef __cplusplus
13754 extern "C"
13755 #endif
13756 char socket ();
13757 int
13758 main ()
13759 {
13760 return socket ();
13761 ;
13762 return 0;
13763 }
13764 _ACEOF
13765 for ac_lib in '' socket; do
13766 if test -z "$ac_lib"; then
13767 ac_res="none required"
13768 else
13769 ac_res=-l$ac_lib
13770 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13771 fi
13772 if ac_fn_c_try_link "$LINENO"; then :
13773 ac_cv_search_socket=$ac_res
13774 fi
13775 rm -f core conftest.err conftest.$ac_objext \
13776 conftest$ac_exeext
13777 if ${ac_cv_search_socket+:} false; then :
13778 break
13779 fi
13780 done
13781 if ${ac_cv_search_socket+:} false; then :
13782
13783 else
13784 ac_cv_search_socket=no
13785 fi
13786 rm conftest.$ac_ext
13787 LIBS=$ac_func_search_save_LIBS
13788 fi
13789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
13790 $as_echo "$ac_cv_search_socket" >&6; }
13791 ac_res=$ac_cv_search_socket
13792 if test "$ac_res" != no; then :
13793 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13794
13795 else
13796 as_fn_error $? "socket library not found" "$LINENO" 5
13797 fi
13798
13799 ac_fn_c_check_type "$LINENO" "struct sockaddr_in" "ac_cv_type_struct_sockaddr_in" "#include <sys/types.h>
13800 #include <sys/socket.h>
13801 #include <netdb.h>
13802
13803 "
13804 if test "x$ac_cv_type_struct_sockaddr_in" = xyes; then :
13805
13806 cat >>confdefs.h <<_ACEOF
13807 #define HAVE_STRUCT_SOCKADDR_IN 1
13808 _ACEOF
13809
13810
13811 fi
13812 ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "#include <sys/types.h>
13813 #include <sys/socket.h>
13814 #include <netdb.h>
13815
13816 "
13817 if test "x$ac_cv_type_struct_sockaddr_storage" = xyes; then :
13818
13819 cat >>confdefs.h <<_ACEOF
13820 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
13821 _ACEOF
13822
13823
13824 fi
13825 ac_fn_c_check_type "$LINENO" "struct addrinfo" "ac_cv_type_struct_addrinfo" "#include <sys/types.h>
13826 #include <sys/socket.h>
13827 #include <netdb.h>
13828
13829 "
13830 if test "x$ac_cv_type_struct_addrinfo" = xyes; then :
13831
13832 cat >>confdefs.h <<_ACEOF
13833 #define HAVE_STRUCT_ADDRINFO 1
13834 _ACEOF
13835
13836
13837 fi
13838
13839 ac_fn_c_check_member "$LINENO" "struct sockaddr_in" "sin_len" "ac_cv_member_struct_sockaddr_in_sin_len" "#include <sys/types.h>
13840 <sys/socket.h>
13841 "
13842 if test "x$ac_cv_member_struct_sockaddr_in_sin_len" = xyes; then :
13843
13844 cat >>confdefs.h <<_ACEOF
13845 #define HAVE_STRUCT_SOCKADDR_IN_SIN_LEN 1
13846 _ACEOF
13847
13848
13849 fi
13850
13851
13852
13853 ac_fn_c_check_type "$LINENO" "struct sockaddr_in6" "ac_cv_type_struct_sockaddr_in6" "#include <netinet/in.h>
13854 "
13855 if test "x$ac_cv_type_struct_sockaddr_in6" = xyes; then :
13856
13857 $as_echo "#define IPV6 1" >>confdefs.h
13858
13859 fi
13860
13861
13862
13863 # Checks for typedefs, structures, and compiler characteristics.
13864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
13865 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
13866 if ${ac_cv_c_bigendian+:} false; then :
13867 $as_echo_n "(cached) " >&6
13868 else
13869 ac_cv_c_bigendian=unknown
13870 # See if we're dealing with a universal compiler.
13871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13872 /* end confdefs.h. */
13873 #ifndef __APPLE_CC__
13874 not a universal capable compiler
13875 #endif
13876 typedef int dummy;
13877
13878 _ACEOF
13879 if ac_fn_c_try_compile "$LINENO"; then :
13880
13881 # Check for potential -arch flags. It is not universal unless
13882 # there are at least two -arch flags with different values.
13883 ac_arch=
13884 ac_prev=
13885 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
13886 if test -n "$ac_prev"; then
13887 case $ac_word in
13888 i?86 | x86_64 | ppc | ppc64)
13889 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
13890 ac_arch=$ac_word
13891 else
13892 ac_cv_c_bigendian=universal
13893 break
13894 fi
13895 ;;
13896 esac
13897 ac_prev=
13898 elif test "x$ac_word" = "x-arch"; then
13899 ac_prev=arch
13900 fi
13901 done
13902 fi
13903 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13904 if test $ac_cv_c_bigendian = unknown; then
13905 # See if sys/param.h defines the BYTE_ORDER macro.
13906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13907 /* end confdefs.h. */
13908 #include <sys/types.h>
13909 #include <sys/param.h>
13910
13911 int
13912 main ()
13913 {
13914 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
13915 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
13916 && LITTLE_ENDIAN)
13917 bogus endian macros
13918 #endif
13919
13920 ;
13921 return 0;
13922 }
13923 _ACEOF
13924 if ac_fn_c_try_compile "$LINENO"; then :
13925 # It does; now see whether it defined to BIG_ENDIAN or not.
13926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13927 /* end confdefs.h. */
13928 #include <sys/types.h>
13929 #include <sys/param.h>
13930
13931 int
13932 main ()
13933 {
13934 #if BYTE_ORDER != BIG_ENDIAN
13935 not big endian
13936 #endif
13937
13938 ;
13939 return 0;
13940 }
13941 _ACEOF
13942 if ac_fn_c_try_compile "$LINENO"; then :
13943 ac_cv_c_bigendian=yes
13944 else
13945 ac_cv_c_bigendian=no
13946 fi
13947 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13948 fi
13949 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13950 fi
13951 if test $ac_cv_c_bigendian = unknown; then
13952 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
13953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13954 /* end confdefs.h. */
13955 #include <limits.h>
13956
13957 int
13958 main ()
13959 {
13960 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
13961 bogus endian macros
13962 #endif
13963
13964 ;
13965 return 0;
13966 }
13967 _ACEOF
13968 if ac_fn_c_try_compile "$LINENO"; then :
13969 # It does; now see whether it defined to _BIG_ENDIAN or not.
13970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13971 /* end confdefs.h. */
13972 #include <limits.h>
13973
13974 int
13975 main ()
13976 {
13977 #ifndef _BIG_ENDIAN
13978 not big endian
13979 #endif
13980
13981 ;
13982 return 0;
13983 }
13984 _ACEOF
13985 if ac_fn_c_try_compile "$LINENO"; then :
13986 ac_cv_c_bigendian=yes
13987 else
13988 ac_cv_c_bigendian=no
13989 fi
13990 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13991 fi
13992 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13993 fi
13994 if test $ac_cv_c_bigendian = unknown; then
13995 # Compile a test program.
13996 if test "$cross_compiling" = yes; then :
13997 # Try to guess by grepping values from an object file.
13998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13999 /* end confdefs.h. */
14000 short int ascii_mm[] =
14001 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
14002 short int ascii_ii[] =
14003 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
14004 int use_ascii (int i) {
14005 return ascii_mm[i] + ascii_ii[i];
14006 }
14007 short int ebcdic_ii[] =
14008 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
14009 short int ebcdic_mm[] =
14010 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
14011 int use_ebcdic (int i) {
14012 return ebcdic_mm[i] + ebcdic_ii[i];
14013 }
14014 extern int foo;
14015
14016 int
14017 main ()
14018 {
14019 return use_ascii (foo) == use_ebcdic (foo);
14020 ;
14021 return 0;
14022 }
14023 _ACEOF
14024 if ac_fn_c_try_compile "$LINENO"; then :
14025 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
14026 ac_cv_c_bigendian=yes
14027 fi
14028 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
14029 if test "$ac_cv_c_bigendian" = unknown; then
14030 ac_cv_c_bigendian=no
14031 else
14032 # finding both strings is unlikely to happen, but who knows?
14033 ac_cv_c_bigendian=unknown
14034 fi
14035 fi
14036 fi
14037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14038 else
14039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14040 /* end confdefs.h. */
14041 $ac_includes_default
14042 int
14043 main ()
14044 {
14045
14046 /* Are we little or big endian? From Harbison&Steele. */
14047 union
14048 {
14049 long int l;
14050 char c[sizeof (long int)];
14051 } u;
14052 u.l = 1;
14053 return u.c[sizeof (long int) - 1] == 1;
14054
14055 ;
14056 return 0;
14057 }
14058 _ACEOF
14059 if ac_fn_c_try_run "$LINENO"; then :
14060 ac_cv_c_bigendian=no
14061 else
14062 ac_cv_c_bigendian=yes
14063 fi
14064 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14065 conftest.$ac_objext conftest.beam conftest.$ac_ext
14066 fi
14067
14068 fi
14069 fi
14070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
14071 $as_echo "$ac_cv_c_bigendian" >&6; }
14072 case $ac_cv_c_bigendian in #(
14073 yes)
14074 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
14075 ;; #(
14076 no)
14077 ;; #(
14078 universal)
14079
14080 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
14081
14082 ;; #(
14083 *)
14084 as_fn_error $? "unknown endianness
14085 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
14086 esac
14087
14088
14089 # Checks for library functions.
14090
14091
14092
14093 for ac_func in $ac_func_list
14094 do :
14095 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14096 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14097 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14098 cat >>confdefs.h <<_ACEOF
14099 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14100 _ACEOF
14101
14102 fi
14103 done
14104
14105
14106
14107
14108
14109
14110
14111
14112
14113
14114
14115 # Checks for header files.
14116
14117
14118
14119 for ac_header in $ac_header_list
14120 do :
14121 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14122 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
14123 "
14124 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
14125 cat >>confdefs.h <<_ACEOF
14126 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14127 _ACEOF
14128
14129 fi
14130
14131 done
14132
14133
14134
14135
14136
14137
14138
14139
14140
14141
14142
14143
14144
14145
14146
14147
14148
14149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crypt" >&5
14150 $as_echo_n "checking for library containing crypt... " >&6; }
14151 if ${ac_cv_search_crypt+:} false; then :
14152 $as_echo_n "(cached) " >&6
14153 else
14154 ac_func_search_save_LIBS=$LIBS
14155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14156 /* end confdefs.h. */
14157
14158 /* Override any GCC internal prototype to avoid an error.
14159 Use char because int might match the return type of a GCC
14160 builtin and then its argument prototype would still apply. */
14161 #ifdef __cplusplus
14162 extern "C"
14163 #endif
14164 char crypt ();
14165 int
14166 main ()
14167 {
14168 return crypt ();
14169 ;
14170 return 0;
14171 }
14172 _ACEOF
14173 for ac_lib in '' crypt; do
14174 if test -z "$ac_lib"; then
14175 ac_res="none required"
14176 else
14177 ac_res=-l$ac_lib
14178 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14179 fi
14180 if ac_fn_c_try_link "$LINENO"; then :
14181 ac_cv_search_crypt=$ac_res
14182 fi
14183 rm -f core conftest.err conftest.$ac_objext \
14184 conftest$ac_exeext
14185 if ${ac_cv_search_crypt+:} false; then :
14186 break
14187 fi
14188 done
14189 if ${ac_cv_search_crypt+:} false; then :
14190
14191 else
14192 ac_cv_search_crypt=no
14193 fi
14194 rm conftest.$ac_ext
14195 LIBS=$ac_func_search_save_LIBS
14196 fi
14197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypt" >&5
14198 $as_echo "$ac_cv_search_crypt" >&6; }
14199 ac_res=$ac_cv_search_crypt
14200 if test "$ac_res" != no; then :
14201 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14202
14203 fi
14204
14205
14206 # Check whether --enable-libgeoip was given.
14207 if test "${enable_libgeoip+set}" = set; then :
14208 enableval=$enable_libgeoip;
14209 else
14210 ac_fn_c_check_header_mongrel "$LINENO" "GeoIP.h" "ac_cv_header_GeoIP_h" "$ac_includes_default"
14211 if test "x$ac_cv_header_GeoIP_h" = xyes; then :
14212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing GeoIP_id_by_ipnum_v6_gl" >&5
14213 $as_echo_n "checking for library containing GeoIP_id_by_ipnum_v6_gl... " >&6; }
14214 if ${ac_cv_search_GeoIP_id_by_ipnum_v6_gl+:} false; then :
14215 $as_echo_n "(cached) " >&6
14216 else
14217 ac_func_search_save_LIBS=$LIBS
14218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14219 /* end confdefs.h. */
14220
14221 /* Override any GCC internal prototype to avoid an error.
14222 Use char because int might match the return type of a GCC
14223 builtin and then its argument prototype would still apply. */
14224 #ifdef __cplusplus
14225 extern "C"
14226 #endif
14227 char GeoIP_id_by_ipnum_v6_gl ();
14228 int
14229 main ()
14230 {
14231 return GeoIP_id_by_ipnum_v6_gl ();
14232 ;
14233 return 0;
14234 }
14235 _ACEOF
14236 for ac_lib in '' GeoIP; do
14237 if test -z "$ac_lib"; then
14238 ac_res="none required"
14239 else
14240 ac_res=-l$ac_lib
14241 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14242 fi
14243 if ac_fn_c_try_link "$LINENO"; then :
14244 ac_cv_search_GeoIP_id_by_ipnum_v6_gl=$ac_res
14245 fi
14246 rm -f core conftest.err conftest.$ac_objext \
14247 conftest$ac_exeext
14248 if ${ac_cv_search_GeoIP_id_by_ipnum_v6_gl+:} false; then :
14249 break
14250 fi
14251 done
14252 if ${ac_cv_search_GeoIP_id_by_ipnum_v6_gl+:} false; then :
14253
14254 else
14255 ac_cv_search_GeoIP_id_by_ipnum_v6_gl=no
14256 fi
14257 rm conftest.$ac_ext
14258 LIBS=$ac_func_search_save_LIBS
14259 fi
14260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_GeoIP_id_by_ipnum_v6_gl" >&5
14261 $as_echo "$ac_cv_search_GeoIP_id_by_ipnum_v6_gl" >&6; }
14262 ac_res=$ac_cv_search_GeoIP_id_by_ipnum_v6_gl
14263 if test "$ac_res" != no; then :
14264 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14265
14266 $as_echo "#define HAVE_LIBGEOIP 1" >>confdefs.h
14267
14268 fi
14269
14270 fi
14271
14272
14273 fi
14274
14275
14276 # Check whether --enable-openssl was given.
14277 if test "${enable_openssl+set}" = set; then :
14278 enableval=$enable_openssl; cf_enable_openssl=$enableval
14279 else
14280 cf_enable_openssl="auto"
14281 fi
14282
14283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL" >&5
14284 $as_echo_n "checking for OpenSSL... " >&6; }
14285 if test "$cf_enable_openssl" != "no"; then
14286 cf_openssl_basedir=""
14287 if test "$cf_enable_openssl" != "auto" &&
14288 test "$cf_enable_openssl" != "yes"; then
14289 cf_openssl_basedir="${cf_enable_openssl}"
14290 else
14291 for dirs in /usr/local/ssl /usr/pkg /usr/local /usr/lib /usr/lib/ssl\
14292 /opt /opt/openssl /usr/local/openssl; do
14293 if test -f "${dirs}/include/openssl/opensslv.h"; then
14294 cf_openssl_basedir="${dirs}"
14295 break
14296 fi
14297 done
14298 unset dirs
14299 fi
14300
14301 if test ! -z "$cf_openssl_basedir"; then
14302 if test -f "${cf_openssl_basedir}/include/openssl/opensslv.h"; then
14303 CPPFLAGS="-I${cf_openssl_basedir}/include $CPPFLAGS"
14304 LDFLAGS="-L${cf_openssl_basedir}/lib $LDFLAGS"
14305 else
14306 cf_openssl_basedir=""
14307 fi
14308 else
14309 if test -f "/usr/include/openssl/opensslv.h"; then
14310 cf_openssl_basedir="/usr"
14311 fi
14312 fi
14313
14314 if test ! -z "$cf_openssl_basedir"; then
14315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cf_openssl_basedir" >&5
14316 $as_echo "$cf_openssl_basedir" >&6; }
14317 cf_enable_openssl="yes"
14318 else
14319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found. Please check your path." >&5
14320 $as_echo "not found. Please check your path." >&6; }
14321 cf_enable_openssl="no"
14322 fi
14323 unset cf_openssl_basedir
14324 else
14325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
14326 $as_echo "disabled" >&6; }
14327 fi
14328
14329 if test "$cf_enable_openssl" != "no"; then :
14330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL 0.9.8 or above" >&5
14331 $as_echo_n "checking for OpenSSL 0.9.8 or above... " >&6; }
14332 if test "$cross_compiling" = yes; then :
14333 cf_openssl_version_ok=no
14334 else
14335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14336 /* end confdefs.h. */
14337
14338
14339 #include <openssl/opensslv.h>
14340 #include <stdlib.h>
14341 int
14342 main ()
14343 {
14344 exit(!(OPENSSL_VERSION_NUMBER >= 0x00908000));
14345 ;
14346 return 0;
14347 }
14348 _ACEOF
14349 if ac_fn_c_try_run "$LINENO"; then :
14350 cf_openssl_version_ok=yes
14351 else
14352 cf_openssl_version_ok=no
14353 fi
14354 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14355 conftest.$ac_objext conftest.beam conftest.$ac_ext
14356 fi
14357
14358
14359 if test "$cf_openssl_version_ok" = "yes"; then :
14360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
14361 $as_echo "found" >&6; }
14362
14363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSA_free in -lcrypto" >&5
14364 $as_echo_n "checking for RSA_free in -lcrypto... " >&6; }
14365 if ${ac_cv_lib_crypto_RSA_free+:} false; then :
14366 $as_echo_n "(cached) " >&6
14367 else
14368 ac_check_lib_save_LIBS=$LIBS
14369 LIBS="-lcrypto $LIBS"
14370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14371 /* end confdefs.h. */
14372
14373 /* Override any GCC internal prototype to avoid an error.
14374 Use char because int might match the return type of a GCC
14375 builtin and then its argument prototype would still apply. */
14376 #ifdef __cplusplus
14377 extern "C"
14378 #endif
14379 char RSA_free ();
14380 int
14381 main ()
14382 {
14383 return RSA_free ();
14384 ;
14385 return 0;
14386 }
14387 _ACEOF
14388 if ac_fn_c_try_link "$LINENO"; then :
14389 ac_cv_lib_crypto_RSA_free=yes
14390 else
14391 ac_cv_lib_crypto_RSA_free=no
14392 fi
14393 rm -f core conftest.err conftest.$ac_objext \
14394 conftest$ac_exeext conftest.$ac_ext
14395 LIBS=$ac_check_lib_save_LIBS
14396 fi
14397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_RSA_free" >&5
14398 $as_echo "$ac_cv_lib_crypto_RSA_free" >&6; }
14399 if test "x$ac_cv_lib_crypto_RSA_free" = xyes; then :
14400 cat >>confdefs.h <<_ACEOF
14401 #define HAVE_LIBCRYPTO 1
14402 _ACEOF
14403
14404 LIBS="-lcrypto $LIBS"
14405
14406 fi
14407
14408 if test "$ac_cv_lib_crypto_RSA_free" = "yes"; then :
14409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_connect in -lssl" >&5
14410 $as_echo_n "checking for SSL_connect in -lssl... " >&6; }
14411 if ${ac_cv_lib_ssl_SSL_connect+:} false; then :
14412 $as_echo_n "(cached) " >&6
14413 else
14414 ac_check_lib_save_LIBS=$LIBS
14415 LIBS="-lssl $LIBS"
14416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14417 /* end confdefs.h. */
14418
14419 /* Override any GCC internal prototype to avoid an error.
14420 Use char because int might match the return type of a GCC
14421 builtin and then its argument prototype would still apply. */
14422 #ifdef __cplusplus
14423 extern "C"
14424 #endif
14425 char SSL_connect ();
14426 int
14427 main ()
14428 {
14429 return SSL_connect ();
14430 ;
14431 return 0;
14432 }
14433 _ACEOF
14434 if ac_fn_c_try_link "$LINENO"; then :
14435 ac_cv_lib_ssl_SSL_connect=yes
14436 else
14437 ac_cv_lib_ssl_SSL_connect=no
14438 fi
14439 rm -f core conftest.err conftest.$ac_objext \
14440 conftest$ac_exeext conftest.$ac_ext
14441 LIBS=$ac_check_lib_save_LIBS
14442 fi
14443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_connect" >&5
14444 $as_echo "$ac_cv_lib_ssl_SSL_connect" >&6; }
14445 if test "x$ac_cv_lib_ssl_SSL_connect" = xyes; then :
14446 cat >>confdefs.h <<_ACEOF
14447 #define HAVE_LIBSSL 1
14448 _ACEOF
14449
14450 LIBS="-lssl $LIBS"
14451
14452 fi
14453
14454 fi
14455
14456 else
14457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - OpenSSL support disabled" >&5
14458 $as_echo "no - OpenSSL support disabled" >&6; }
14459 cf_enable_openssl="no"
14460 fi
14461 fi
14462
14463 if test "$ac_cv_lib_ssl_SSL_connect" = yes; then
14464 ENABLE_SSL_TRUE=
14465 ENABLE_SSL_FALSE='#'
14466 else
14467 ENABLE_SSL_TRUE='#'
14468 ENABLE_SSL_FALSE=
14469 fi
14470
14471
14472
14473 # Check whether --enable-assert was given.
14474 if test "${enable_assert+set}" = set; then :
14475 enableval=$enable_assert; assert=$enableval
14476 else
14477 assert=no
14478 fi
14479
14480
14481 if test "$assert" = "no"; then :
14482
14483 $as_echo "#define NDEBUG 1" >>confdefs.h
14484
14485 fi
14486
14487
14488 $as_echo "#define NICKNAMEHISTORYLENGTH 32768" >>confdefs.h
14489
14490
14491 $as_echo "#define MP_CHUNK_SIZE_CHANNEL 1024*1024" >>confdefs.h
14492
14493
14494 $as_echo "#define MP_CHUNK_SIZE_MEMBER 2048*1024" >>confdefs.h
14495
14496
14497 $as_echo "#define MP_CHUNK_SIZE_BAN 1024*1024" >>confdefs.h
14498
14499
14500 $as_echo "#define MP_CHUNK_SIZE_CLIENT 1024*1024" >>confdefs.h
14501
14502
14503 $as_echo "#define MP_CHUNK_SIZE_LCLIENT 512*1024" >>confdefs.h
14504
14505
14506 $as_echo "#define MP_CHUNK_SIZE_DNODE 32*1024" >>confdefs.h
14507
14508
14509 $as_echo "#define MP_CHUNK_SIZE_DBUF 512*1024" >>confdefs.h
14510
14511
14512 $as_echo "#define MP_CHUNK_SIZE_AUTH 128*1024" >>confdefs.h
14513
14514
14515 $as_echo "#define MP_CHUNK_SIZE_DNS 64*1024" >>confdefs.h
14516
14517
14518 $as_echo "#define MP_CHUNK_SIZE_WATCH 8*1024" >>confdefs.h
14519
14520
14521 $as_echo "#define MP_CHUNK_SIZE_NAMEHOST 64*1024" >>confdefs.h
14522
14523
14524 $as_echo "#define MP_CHUNK_SIZE_USERHOST 128*1024" >>confdefs.h
14525
14526
14527 $as_echo "#define MP_CHUNK_SIZE_IP_ENTRY 128*1024" >>confdefs.h
14528
14529
14530 # Argument processing.
14531
14532 desired_iopoll_mechanism="none"
14533 # Check whether --enable-kqueue was given.
14534 if test "${enable_kqueue+set}" = set; then :
14535 enableval=$enable_kqueue; desired_iopoll_mechanism="kqueue"
14536 fi
14537
14538 # Check whether --enable-epoll was given.
14539 if test "${enable_epoll+set}" = set; then :
14540 enableval=$enable_epoll; desired_iopoll_mechanism="epoll"
14541 fi
14542
14543 # Check whether --enable-devpoll was given.
14544 if test "${enable_devpoll+set}" = set; then :
14545 enableval=$enable_devpoll; desired_iopoll_mechanism="devpoll"
14546 fi
14547
14548 # Check whether --enable-poll was given.
14549 if test "${enable_poll+set}" = set; then :
14550 enableval=$enable_poll; desired_iopoll_mechanism="poll"
14551 fi
14552
14553 # Check whether --enable-select was given.
14554 if test "${enable_select+set}" = set; then :
14555 enableval=$enable_select; desired_iopoll_mechanism="select"
14556 fi
14557
14558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for optimal/desired iopoll mechanism" >&5
14559 $as_echo_n "checking for optimal/desired iopoll mechanism... " >&6; }
14560 iopoll_mechanism_none=0
14561
14562 cat >>confdefs.h <<_ACEOF
14563 #define __IOPOLL_MECHANISM_NONE $iopoll_mechanism_none
14564 _ACEOF
14565
14566 iopoll_mechanism_kqueue=1
14567
14568 cat >>confdefs.h <<_ACEOF
14569 #define __IOPOLL_MECHANISM_KQUEUE $iopoll_mechanism_kqueue
14570 _ACEOF
14571
14572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14573 /* end confdefs.h. */
14574 /* Define kevent to an innocuous variant, in case <limits.h> declares kevent.
14575 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14576 #define kevent innocuous_kevent
14577
14578 /* System header to define __stub macros and hopefully few prototypes,
14579 which can conflict with char kevent (); below.
14580 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14581 <limits.h> exists even on freestanding compilers. */
14582
14583 #ifdef __STDC__
14584 # include <limits.h>
14585 #else
14586 # include <assert.h>
14587 #endif
14588
14589 #undef kevent
14590
14591 /* Override any GCC internal prototype to avoid an error.
14592 Use char because int might match the return type of a GCC
14593 builtin and then its argument prototype would still apply. */
14594 #ifdef __cplusplus
14595 extern "C"
14596 #endif
14597 char kevent ();
14598 /* The GNU C library defines this for functions which it implements
14599 to always fail with ENOSYS. Some functions are actually named
14600 something starting with __ and the normal name is an alias. */
14601 #if defined __stub_kevent || defined __stub___kevent
14602 choke me
14603 #endif
14604
14605 int
14606 main ()
14607 {
14608 return kevent ();
14609 ;
14610 return 0;
14611 }
14612 _ACEOF
14613 if ac_fn_c_try_link "$LINENO"; then :
14614 is_kqueue_mechanism_available="yes"
14615 else
14616 is_kqueue_mechanism_available="no"
14617 fi
14618 rm -f core conftest.err conftest.$ac_objext \
14619 conftest$ac_exeext conftest.$ac_ext
14620 iopoll_mechanism_epoll=2
14621
14622 cat >>confdefs.h <<_ACEOF
14623 #define __IOPOLL_MECHANISM_EPOLL $iopoll_mechanism_epoll
14624 _ACEOF
14625
14626 if test "$cross_compiling" = yes; then :
14627 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14628 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14629 as_fn_error $? "cannot run test program while cross compiling
14630 See \`config.log' for more details" "$LINENO" 5; }
14631 else
14632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14633 /* end confdefs.h. */
14634
14635 #include <sys/epoll.h>
14636 #include <sys/syscall.h>
14637 #if defined(__stub_epoll_create) || defined(__stub___epoll_create) || defined(EPOLL_NEED_BODY)
14638 #if !defined(__NR_epoll_create)
14639 #if defined(__ia64__)
14640 #define __NR_epoll_create 1243
14641 #elif defined(__x86_64__)
14642 #define __NR_epoll_create 214
14643 #elif defined(__sparc64__) || defined(__sparc__)
14644 #define __NR_epoll_create 193
14645 #elif defined(__s390__) || defined(__m68k__)
14646 #define __NR_epoll_create 249
14647 #elif defined(__ppc64__) || defined(__ppc__)
14648 #define __NR_epoll_create 236
14649 #elif defined(__parisc__) || defined(__arm26__) || defined(__arm__)
14650 #define __NR_epoll_create 224
14651 #elif defined(__alpha__)
14652 #define __NR_epoll_create 407
14653 #elif defined(__sh64__)
14654 #define __NR_epoll_create 282
14655 #elif defined(__i386__) || defined(__sh__) || defined(__m32r__) || defined(__h8300__) || defined(__frv__)
14656 #define __NR_epoll_create 254
14657 #else
14658 #error No system call numbers defined for epoll family.
14659 #endif
14660 #endif
14661 _syscall1(int, epoll_create, int, size)
14662 #endif
14663
14664 int
14665 main ()
14666 {
14667 return epoll_create(256) == -1 ? 1 : 0
14668 ;
14669 return 0;
14670 }
14671 _ACEOF
14672 if ac_fn_c_try_run "$LINENO"; then :
14673 is_epoll_mechanism_available="yes"
14674 else
14675 is_epoll_mechanism_available="no"
14676 fi
14677 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14678 conftest.$ac_objext conftest.beam conftest.$ac_ext
14679 fi
14680
14681 iopoll_mechanism_devpoll=3
14682
14683 cat >>confdefs.h <<_ACEOF
14684 #define __IOPOLL_MECHANISM_DEVPOLL $iopoll_mechanism_devpoll
14685 _ACEOF
14686
14687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14688 /* end confdefs.h. */
14689 #include <devpoll.h>
14690 int
14691 main ()
14692 {
14693
14694 ;
14695 return 0;
14696 }
14697 _ACEOF
14698 if ac_fn_c_try_compile "$LINENO"; then :
14699 is_devpoll_mechanism_available="yes"
14700 else
14701 is_devpoll_mechanism_available="no"
14702 fi
14703 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14704 if test "$is_devpoll_mechanism_available" = "yes" ; then
14705
14706 $as_echo "#define HAVE_DEVPOLL_H 1" >>confdefs.h
14707
14708 fi
14709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14710 /* end confdefs.h. */
14711 #include <sys/devpoll.h>
14712 int
14713 main ()
14714 {
14715
14716 ;
14717 return 0;
14718 }
14719 _ACEOF
14720 if ac_fn_c_try_compile "$LINENO"; then :
14721 is_devpoll_mechanism_available="yes"
14722 else
14723 is_devpoll_mechanism_available="no"
14724 fi
14725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14726 if test "$is_devpoll_mechanism_available" = "yes" ; then
14727
14728 $as_echo "#define HAVE_SYS_DEVPOLL_H 1" >>confdefs.h
14729
14730 fi
14731 iopoll_mechanism_poll=4
14732
14733 cat >>confdefs.h <<_ACEOF
14734 #define __IOPOLL_MECHANISM_POLL $iopoll_mechanism_poll
14735 _ACEOF
14736
14737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14738 /* end confdefs.h. */
14739 /* Define poll to an innocuous variant, in case <limits.h> declares poll.
14740 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14741 #define poll innocuous_poll
14742
14743 /* System header to define __stub macros and hopefully few prototypes,
14744 which can conflict with char poll (); below.
14745 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14746 <limits.h> exists even on freestanding compilers. */
14747
14748 #ifdef __STDC__
14749 # include <limits.h>
14750 #else
14751 # include <assert.h>
14752 #endif
14753
14754 #undef poll
14755
14756 /* Override any GCC internal prototype to avoid an error.
14757 Use char because int might match the return type of a GCC
14758 builtin and then its argument prototype would still apply. */
14759 #ifdef __cplusplus
14760 extern "C"
14761 #endif
14762 char poll ();
14763 /* The GNU C library defines this for functions which it implements
14764 to always fail with ENOSYS. Some functions are actually named
14765 something starting with __ and the normal name is an alias. */
14766 #if defined __stub_poll || defined __stub___poll
14767 choke me
14768 #endif
14769
14770 int
14771 main ()
14772 {
14773 return poll ();
14774 ;
14775 return 0;
14776 }
14777 _ACEOF
14778 if ac_fn_c_try_link "$LINENO"; then :
14779 is_poll_mechanism_available="yes"
14780 else
14781 is_poll_mechanism_available="no"
14782 fi
14783 rm -f core conftest.err conftest.$ac_objext \
14784 conftest$ac_exeext conftest.$ac_ext
14785 iopoll_mechanism_select=5
14786
14787 cat >>confdefs.h <<_ACEOF
14788 #define __IOPOLL_MECHANISM_SELECT $iopoll_mechanism_select
14789 _ACEOF
14790
14791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14792 /* end confdefs.h. */
14793 /* Define select to an innocuous variant, in case <limits.h> declares select.
14794 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14795 #define select innocuous_select
14796
14797 /* System header to define __stub macros and hopefully few prototypes,
14798 which can conflict with char select (); below.
14799 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14800 <limits.h> exists even on freestanding compilers. */
14801
14802 #ifdef __STDC__
14803 # include <limits.h>
14804 #else
14805 # include <assert.h>
14806 #endif
14807
14808 #undef select
14809
14810 /* Override any GCC internal prototype to avoid an error.
14811 Use char because int might match the return type of a GCC
14812 builtin and then its argument prototype would still apply. */
14813 #ifdef __cplusplus
14814 extern "C"
14815 #endif
14816 char select ();
14817 /* The GNU C library defines this for functions which it implements
14818 to always fail with ENOSYS. Some functions are actually named
14819 something starting with __ and the normal name is an alias. */
14820 #if defined __stub_select || defined __stub___select
14821 choke me
14822 #endif
14823
14824 int
14825 main ()
14826 {
14827 return select ();
14828 ;
14829 return 0;
14830 }
14831 _ACEOF
14832 if ac_fn_c_try_link "$LINENO"; then :
14833 is_select_mechanism_available="yes"
14834 else
14835 is_select_mechanism_available="no"
14836 fi
14837 rm -f core conftest.err conftest.$ac_objext \
14838 conftest$ac_exeext conftest.$ac_ext
14839 optimal_iopoll_mechanism="none"
14840 for mechanism in "kqueue" "epoll" "devpoll" "poll" "select" ; do # order is important
14841 eval "is_optimal_iopoll_mechanism_available=\$is_${mechanism}_mechanism_available"
14842 if test "$is_optimal_iopoll_mechanism_available" = "yes" ; then
14843 optimal_iopoll_mechanism="$mechanism"
14844 break
14845 fi
14846 done
14847 if test "$desired_iopoll_mechanism" = "none" ; then
14848 if test "$optimal_iopoll_mechanism" = "none" ; then
14849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
14850 $as_echo "none" >&6; }
14851 as_fn_error $? "no iopoll mechanism found!" "$LINENO" 5
14852 else
14853 selected_iopoll_mechanism=$optimal_iopoll_mechanism
14854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $selected_iopoll_mechanism" >&5
14855 $as_echo "$selected_iopoll_mechanism" >&6; }
14856 fi
14857 else
14858 eval "is_desired_iopoll_mechanism_available=\$is_${desired_iopoll_mechanism}_mechanism_available"
14859 if test "$is_desired_iopoll_mechanism_available" = "yes" ; then
14860 selected_iopoll_mechanism=$desired_iopoll_mechanism
14861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $selected_iopoll_mechanism" >&5
14862 $as_echo "$selected_iopoll_mechanism" >&6; }
14863 else
14864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
14865 $as_echo "none" >&6; }
14866 as_fn_error $? "desired iopoll mechanism, $desired_iopoll_mechanism, is not available" "$LINENO" 5
14867 fi
14868 fi
14869 eval "use_iopoll_mechanism=\$iopoll_mechanism_${selected_iopoll_mechanism}"
14870
14871 cat >>confdefs.h <<_ACEOF
14872 #define USE_IOPOLL_MECHANISM $use_iopoll_mechanism
14873 _ACEOF
14874
14875
14876
14877 # Check whether --enable-halfops was given.
14878 if test "${enable_halfops+set}" = set; then :
14879 enableval=$enable_halfops; halfops="$enableval"
14880 else
14881 halfops="no"
14882 fi
14883
14884 if test "$halfops" = "yes" ; then
14885
14886 $as_echo "#define HALFOPS 1" >>confdefs.h
14887
14888 fi
14889
14890
14891 # Check whether --enable-debugging was given.
14892 if test "${enable_debugging+set}" = set; then :
14893 enableval=$enable_debugging; debugging="$enableval"
14894 else
14895 debugging="no"
14896 fi
14897
14898 if test "$debugging" = "yes" ; then
14899 CFLAGS="-Wall -g -O0"
14900 fi
14901
14902
14903 # Check whether --enable-warnings was given.
14904 if test "${enable_warnings+set}" = set; then :
14905 enableval=$enable_warnings; warnings="$enableval"
14906 else
14907 warnings="no"
14908 fi
14909
14910 if test "$warnings" = "yes" ; then
14911 CFLAGS="-Wall -Wextra -Wno-unused -Wcast-qual -Wcast-align -Wbad-function-cast -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wredundant-decls -Wshadow -Wwrite-strings -Wundef"
14912 fi
14913
14914
14915
14916 prefix_NONE=
14917 exec_prefix_NONE=
14918 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
14919 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
14920 eval ac_define_dir="\"$prefix\""
14921 eval ac_define_dir="\"$ac_define_dir\""
14922 PREFIX="$ac_define_dir"
14923
14924
14925 cat >>confdefs.h <<_ACEOF
14926 #define PREFIX "$ac_define_dir"
14927 _ACEOF
14928
14929 test "$prefix_NONE" && prefix=NONE
14930 test "$exec_prefix_NONE" && exec_prefix=NONE
14931
14932
14933 prefix_NONE=
14934 exec_prefix_NONE=
14935 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
14936 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
14937 eval ac_define_dir="\"$sysconfdir\""
14938 eval ac_define_dir="\"$ac_define_dir\""
14939 SYSCONFDIR="$ac_define_dir"
14940
14941
14942 cat >>confdefs.h <<_ACEOF
14943 #define SYSCONFDIR "$ac_define_dir"
14944 _ACEOF
14945
14946 test "$prefix_NONE" && prefix=NONE
14947 test "$exec_prefix_NONE" && exec_prefix=NONE
14948
14949
14950 prefix_NONE=
14951 exec_prefix_NONE=
14952 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
14953 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
14954 eval ac_define_dir="\"$libdir\""
14955 eval ac_define_dir="\"$ac_define_dir\""
14956 LIBDIR="$ac_define_dir"
14957
14958
14959 cat >>confdefs.h <<_ACEOF
14960 #define LIBDIR "$ac_define_dir"
14961 _ACEOF
14962
14963 test "$prefix_NONE" && prefix=NONE
14964 test "$exec_prefix_NONE" && exec_prefix=NONE
14965
14966
14967 prefix_NONE=
14968 exec_prefix_NONE=
14969 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
14970 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
14971 eval ac_define_dir="\"$datadir\""
14972 eval ac_define_dir="\"$ac_define_dir\""
14973 DATADIR="$ac_define_dir"
14974
14975
14976 cat >>confdefs.h <<_ACEOF
14977 #define DATADIR "$ac_define_dir"
14978 _ACEOF
14979
14980 test "$prefix_NONE" && prefix=NONE
14981 test "$exec_prefix_NONE" && exec_prefix=NONE
14982
14983
14984 prefix_NONE=
14985 exec_prefix_NONE=
14986 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
14987 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
14988 eval ac_define_dir="\"$localstatedir\""
14989 eval ac_define_dir="\"$ac_define_dir\""
14990 LOCALSTATEDIR="$ac_define_dir"
14991
14992
14993 cat >>confdefs.h <<_ACEOF
14994 #define LOCALSTATEDIR "$ac_define_dir"
14995 _ACEOF
14996
14997 test "$prefix_NONE" && prefix=NONE
14998 test "$exec_prefix_NONE" && exec_prefix=NONE
14999
15000
15001 ac_config_files="$ac_config_files Makefile src/Makefile libltdl/Makefile modules/Makefile modules/core/Makefile doc/Makefile help/Makefile tools/Makefile"
15002
15003
15004 cat >confcache <<\_ACEOF
15005 # This file is a shell script that caches the results of configure
15006 # tests run on this system so they can be shared between configure
15007 # scripts and configure runs, see configure's option --config-cache.
15008 # It is not useful on other systems. If it contains results you don't
15009 # want to keep, you may remove or edit it.
15010 #
15011 # config.status only pays attention to the cache file if you give it
15012 # the --recheck option to rerun configure.
15013 #
15014 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15015 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15016 # following values.
15017
15018 _ACEOF
15019
15020 # The following way of writing the cache mishandles newlines in values,
15021 # but we know of no workaround that is simple, portable, and efficient.
15022 # So, we kill variables containing newlines.
15023 # Ultrix sh set writes to stderr and can't be redirected directly,
15024 # and sets the high bit in the cache file unless we assign to the vars.
15025 (
15026 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15027 eval ac_val=\$$ac_var
15028 case $ac_val in #(
15029 *${as_nl}*)
15030 case $ac_var in #(
15031 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15032 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15033 esac
15034 case $ac_var in #(
15035 _ | IFS | as_nl) ;; #(
15036 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15037 *) { eval $ac_var=; unset $ac_var;} ;;
15038 esac ;;
15039 esac
15040 done
15041
15042 (set) 2>&1 |
15043 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15044 *${as_nl}ac_space=\ *)
15045 # `set' does not quote correctly, so add quotes: double-quote
15046 # substitution turns \\\\ into \\, and sed turns \\ into \.
15047 sed -n \
15048 "s/'/'\\\\''/g;
15049 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15050 ;; #(
15051 *)
15052 # `set' quotes correctly as required by POSIX, so do not add quotes.
15053 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15054 ;;
15055 esac |
15056 sort
15057 ) |
15058 sed '
15059 /^ac_cv_env_/b end
15060 t clear
15061 :clear
15062 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15063 t end
15064 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15065 :end' >>confcache
15066 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15067 if test -w "$cache_file"; then
15068 if test "x$cache_file" != "x/dev/null"; then
15069 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15070 $as_echo "$as_me: updating cache $cache_file" >&6;}
15071 if test ! -f "$cache_file" || test -h "$cache_file"; then
15072 cat confcache >"$cache_file"
15073 else
15074 case $cache_file in #(
15075 */* | ?:*)
15076 mv -f confcache "$cache_file"$$ &&
15077 mv -f "$cache_file"$$ "$cache_file" ;; #(
15078 *)
15079 mv -f confcache "$cache_file" ;;
15080 esac
15081 fi
15082 fi
15083 else
15084 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15085 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15086 fi
15087 fi
15088 rm -f confcache
15089
15090 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15091 # Let make expand exec_prefix.
15092 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15093
15094 DEFS=-DHAVE_CONFIG_H
15095
15096 ac_libobjs=
15097 ac_ltlibobjs=
15098 U=
15099 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15100 # 1. Remove the extension, and $U if already installed.
15101 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15102 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15103 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15104 # will be set to the directory where LIBOBJS objects are built.
15105 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15106 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15107 done
15108 LIBOBJS=$ac_libobjs
15109
15110 LTLIBOBJS=$ac_ltlibobjs
15111
15112
15113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
15114 $as_echo_n "checking that generated files are newer than configure... " >&6; }
15115 if test -n "$am_sleep_pid"; then
15116 # Hide warnings about reused PIDs.
15117 wait $am_sleep_pid 2>/dev/null
15118 fi
15119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
15120 $as_echo "done" >&6; }
15121 if test -n "$EXEEXT"; then
15122 am__EXEEXT_TRUE=
15123 am__EXEEXT_FALSE='#'
15124 else
15125 am__EXEEXT_TRUE='#'
15126 am__EXEEXT_FALSE=
15127 fi
15128
15129 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
15130 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
15131 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15132 fi
15133 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15134 as_fn_error $? "conditional \"AMDEP\" was never defined.
15135 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15136 fi
15137 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15138 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
15139 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15140 fi
15141 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
15142 as_fn_error $? "conditional \"INSTALL_LTDL\" was never defined.
15143 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15144 fi
15145 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
15146 as_fn_error $? "conditional \"CONVENIENCE_LTDL\" was never defined.
15147 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15148 fi
15149 LT_CONFIG_H=config.h
15150
15151 _ltdl_libobjs=
15152 _ltdl_ltlibobjs=
15153 if test -n "$_LT_LIBOBJS"; then
15154 # Remove the extension.
15155 _lt_sed_drop_objext='s/\.o$//;s/\.obj$//'
15156 for i in `for i in $_LT_LIBOBJS; do echo "$i"; done | sed "$_lt_sed_drop_objext" | sort -u`; do
15157 _ltdl_libobjs="$_ltdl_libobjs $lt_libobj_prefix$i.$ac_objext"
15158 _ltdl_ltlibobjs="$_ltdl_ltlibobjs $lt_libobj_prefix$i.lo"
15159 done
15160 fi
15161 ltdl_LIBOBJS=$_ltdl_libobjs
15162
15163 ltdl_LTLIBOBJS=$_ltdl_ltlibobjs
15164
15165
15166
15167 if test -z "${ENABLE_SSL_TRUE}" && test -z "${ENABLE_SSL_FALSE}"; then
15168 as_fn_error $? "conditional \"ENABLE_SSL\" was never defined.
15169 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15170 fi
15171
15172 : "${CONFIG_STATUS=./config.status}"
15173 ac_write_fail=0
15174 ac_clean_files_save=$ac_clean_files
15175 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15176 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15177 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15178 as_write_fail=0
15179 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15180 #! $SHELL
15181 # Generated by $as_me.
15182 # Run this file to recreate the current configuration.
15183 # Compiler output produced by configure, useful for debugging
15184 # configure, is in config.log if it exists.
15185
15186 debug=false
15187 ac_cs_recheck=false
15188 ac_cs_silent=false
15189
15190 SHELL=\${CONFIG_SHELL-$SHELL}
15191 export SHELL
15192 _ASEOF
15193 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15194 ## -------------------- ##
15195 ## M4sh Initialization. ##
15196 ## -------------------- ##
15197
15198 # Be more Bourne compatible
15199 DUALCASE=1; export DUALCASE # for MKS sh
15200 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15201 emulate sh
15202 NULLCMD=:
15203 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15204 # is contrary to our usage. Disable this feature.
15205 alias -g '${1+"$@"}'='"$@"'
15206 setopt NO_GLOB_SUBST
15207 else
15208 case `(set -o) 2>/dev/null` in #(
15209 *posix*) :
15210 set -o posix ;; #(
15211 *) :
15212 ;;
15213 esac
15214 fi
15215
15216
15217 as_nl='
15218 '
15219 export as_nl
15220 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15221 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15222 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15223 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15224 # Prefer a ksh shell builtin over an external printf program on Solaris,
15225 # but without wasting forks for bash or zsh.
15226 if test -z "$BASH_VERSION$ZSH_VERSION" \
15227 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15228 as_echo='print -r --'
15229 as_echo_n='print -rn --'
15230 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15231 as_echo='printf %s\n'
15232 as_echo_n='printf %s'
15233 else
15234 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15235 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15236 as_echo_n='/usr/ucb/echo -n'
15237 else
15238 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15239 as_echo_n_body='eval
15240 arg=$1;
15241 case $arg in #(
15242 *"$as_nl"*)
15243 expr "X$arg" : "X\\(.*\\)$as_nl";
15244 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15245 esac;
15246 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15247 '
15248 export as_echo_n_body
15249 as_echo_n='sh -c $as_echo_n_body as_echo'
15250 fi
15251 export as_echo_body
15252 as_echo='sh -c $as_echo_body as_echo'
15253 fi
15254
15255 # The user is always right.
15256 if test "${PATH_SEPARATOR+set}" != set; then
15257 PATH_SEPARATOR=:
15258 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15259 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15260 PATH_SEPARATOR=';'
15261 }
15262 fi
15263
15264
15265 # IFS
15266 # We need space, tab and new line, in precisely that order. Quoting is
15267 # there to prevent editors from complaining about space-tab.
15268 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15269 # splitting by setting IFS to empty value.)
15270 IFS=" "" $as_nl"
15271
15272 # Find who we are. Look in the path if we contain no directory separator.
15273 as_myself=
15274 case $0 in #((
15275 *[\\/]* ) as_myself=$0 ;;
15276 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15277 for as_dir in $PATH
15278 do
15279 IFS=$as_save_IFS
15280 test -z "$as_dir" && as_dir=.
15281 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15282 done
15283 IFS=$as_save_IFS
15284
15285 ;;
15286 esac
15287 # We did not find ourselves, most probably we were run as `sh COMMAND'
15288 # in which case we are not to be found in the path.
15289 if test "x$as_myself" = x; then
15290 as_myself=$0
15291 fi
15292 if test ! -f "$as_myself"; then
15293 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15294 exit 1
15295 fi
15296
15297 # Unset variables that we do not need and which cause bugs (e.g. in
15298 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15299 # suppresses any "Segmentation fault" message there. '((' could
15300 # trigger a bug in pdksh 5.2.14.
15301 for as_var in BASH_ENV ENV MAIL MAILPATH
15302 do eval test x\${$as_var+set} = xset \
15303 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15304 done
15305 PS1='$ '
15306 PS2='> '
15307 PS4='+ '
15308
15309 # NLS nuisances.
15310 LC_ALL=C
15311 export LC_ALL
15312 LANGUAGE=C
15313 export LANGUAGE
15314
15315 # CDPATH.
15316 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15317
15318
15319 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15320 # ----------------------------------------
15321 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15322 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15323 # script with STATUS, using 1 if that was 0.
15324 as_fn_error ()
15325 {
15326 as_status=$1; test $as_status -eq 0 && as_status=1
15327 if test "$4"; then
15328 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15329 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15330 fi
15331 $as_echo "$as_me: error: $2" >&2
15332 as_fn_exit $as_status
15333 } # as_fn_error
15334
15335
15336 # as_fn_set_status STATUS
15337 # -----------------------
15338 # Set $? to STATUS, without forking.
15339 as_fn_set_status ()
15340 {
15341 return $1
15342 } # as_fn_set_status
15343
15344 # as_fn_exit STATUS
15345 # -----------------
15346 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15347 as_fn_exit ()
15348 {
15349 set +e
15350 as_fn_set_status $1
15351 exit $1
15352 } # as_fn_exit
15353
15354 # as_fn_unset VAR
15355 # ---------------
15356 # Portably unset VAR.
15357 as_fn_unset ()
15358 {
15359 { eval $1=; unset $1;}
15360 }
15361 as_unset=as_fn_unset
15362 # as_fn_append VAR VALUE
15363 # ----------------------
15364 # Append the text in VALUE to the end of the definition contained in VAR. Take
15365 # advantage of any shell optimizations that allow amortized linear growth over
15366 # repeated appends, instead of the typical quadratic growth present in naive
15367 # implementations.
15368 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15369 eval 'as_fn_append ()
15370 {
15371 eval $1+=\$2
15372 }'
15373 else
15374 as_fn_append ()
15375 {
15376 eval $1=\$$1\$2
15377 }
15378 fi # as_fn_append
15379
15380 # as_fn_arith ARG...
15381 # ------------------
15382 # Perform arithmetic evaluation on the ARGs, and store the result in the
15383 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15384 # must be portable across $(()) and expr.
15385 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15386 eval 'as_fn_arith ()
15387 {
15388 as_val=$(( $* ))
15389 }'
15390 else
15391 as_fn_arith ()
15392 {
15393 as_val=`expr "$@" || test $? -eq 1`
15394 }
15395 fi # as_fn_arith
15396
15397
15398 if expr a : '\(a\)' >/dev/null 2>&1 &&
15399 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15400 as_expr=expr
15401 else
15402 as_expr=false
15403 fi
15404
15405 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15406 as_basename=basename
15407 else
15408 as_basename=false
15409 fi
15410
15411 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15412 as_dirname=dirname
15413 else
15414 as_dirname=false
15415 fi
15416
15417 as_me=`$as_basename -- "$0" ||
15418 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15419 X"$0" : 'X\(//\)$' \| \
15420 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15421 $as_echo X/"$0" |
15422 sed '/^.*\/\([^/][^/]*\)\/*$/{
15423 s//\1/
15424 q
15425 }
15426 /^X\/\(\/\/\)$/{
15427 s//\1/
15428 q
15429 }
15430 /^X\/\(\/\).*/{
15431 s//\1/
15432 q
15433 }
15434 s/.*/./; q'`
15435
15436 # Avoid depending upon Character Ranges.
15437 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15438 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15439 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15440 as_cr_digits='0123456789'
15441 as_cr_alnum=$as_cr_Letters$as_cr_digits
15442
15443 ECHO_C= ECHO_N= ECHO_T=
15444 case `echo -n x` in #(((((
15445 -n*)
15446 case `echo 'xy\c'` in
15447 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15448 xy) ECHO_C='\c';;
15449 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15450 ECHO_T=' ';;
15451 esac;;
15452 *)
15453 ECHO_N='-n';;
15454 esac
15455
15456 rm -f conf$$ conf$$.exe conf$$.file
15457 if test -d conf$$.dir; then
15458 rm -f conf$$.dir/conf$$.file
15459 else
15460 rm -f conf$$.dir
15461 mkdir conf$$.dir 2>/dev/null
15462 fi
15463 if (echo >conf$$.file) 2>/dev/null; then
15464 if ln -s conf$$.file conf$$ 2>/dev/null; then
15465 as_ln_s='ln -s'
15466 # ... but there are two gotchas:
15467 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15468 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15469 # In both cases, we have to default to `cp -pR'.
15470 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15471 as_ln_s='cp -pR'
15472 elif ln conf$$.file conf$$ 2>/dev/null; then
15473 as_ln_s=ln
15474 else
15475 as_ln_s='cp -pR'
15476 fi
15477 else
15478 as_ln_s='cp -pR'
15479 fi
15480 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15481 rmdir conf$$.dir 2>/dev/null
15482
15483
15484 # as_fn_mkdir_p
15485 # -------------
15486 # Create "$as_dir" as a directory, including parents if necessary.
15487 as_fn_mkdir_p ()
15488 {
15489
15490 case $as_dir in #(
15491 -*) as_dir=./$as_dir;;
15492 esac
15493 test -d "$as_dir" || eval $as_mkdir_p || {
15494 as_dirs=
15495 while :; do
15496 case $as_dir in #(
15497 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15498 *) as_qdir=$as_dir;;
15499 esac
15500 as_dirs="'$as_qdir' $as_dirs"
15501 as_dir=`$as_dirname -- "$as_dir" ||
15502 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15503 X"$as_dir" : 'X\(//\)[^/]' \| \
15504 X"$as_dir" : 'X\(//\)$' \| \
15505 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15506 $as_echo X"$as_dir" |
15507 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15508 s//\1/
15509 q
15510 }
15511 /^X\(\/\/\)[^/].*/{
15512 s//\1/
15513 q
15514 }
15515 /^X\(\/\/\)$/{
15516 s//\1/
15517 q
15518 }
15519 /^X\(\/\).*/{
15520 s//\1/
15521 q
15522 }
15523 s/.*/./; q'`
15524 test -d "$as_dir" && break
15525 done
15526 test -z "$as_dirs" || eval "mkdir $as_dirs"
15527 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15528
15529
15530 } # as_fn_mkdir_p
15531 if mkdir -p . 2>/dev/null; then
15532 as_mkdir_p='mkdir -p "$as_dir"'
15533 else
15534 test -d ./-p && rmdir ./-p
15535 as_mkdir_p=false
15536 fi
15537
15538
15539 # as_fn_executable_p FILE
15540 # -----------------------
15541 # Test if FILE is an executable regular file.
15542 as_fn_executable_p ()
15543 {
15544 test -f "$1" && test -x "$1"
15545 } # as_fn_executable_p
15546 as_test_x='test -x'
15547 as_executable_p=as_fn_executable_p
15548
15549 # Sed expression to map a string onto a valid CPP name.
15550 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15551
15552 # Sed expression to map a string onto a valid variable name.
15553 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15554
15555
15556 exec 6>&1
15557 ## ----------------------------------- ##
15558 ## Main body of $CONFIG_STATUS script. ##
15559 ## ----------------------------------- ##
15560 _ASEOF
15561 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15562
15563 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15564 # Save the log message, to keep $0 and so on meaningful, and to
15565 # report actual input values of CONFIG_FILES etc. instead of their
15566 # values after options handling.
15567 ac_log="
15568 This file was extended by ircd-hybrid $as_me TRUNK, which was
15569 generated by GNU Autoconf 2.69. Invocation command line was
15570
15571 CONFIG_FILES = $CONFIG_FILES
15572 CONFIG_HEADERS = $CONFIG_HEADERS
15573 CONFIG_LINKS = $CONFIG_LINKS
15574 CONFIG_COMMANDS = $CONFIG_COMMANDS
15575 $ $0 $@
15576
15577 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15578 "
15579
15580 _ACEOF
15581
15582 case $ac_config_files in *"
15583 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15584 esac
15585
15586 case $ac_config_headers in *"
15587 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15588 esac
15589
15590
15591 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15592 # Files that config.status was made for.
15593 config_files="$ac_config_files"
15594 config_headers="$ac_config_headers"
15595 config_commands="$ac_config_commands"
15596
15597 _ACEOF
15598
15599 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15600 ac_cs_usage="\
15601 \`$as_me' instantiates files and other configuration actions
15602 from templates according to the current configuration. Unless the files
15603 and actions are specified as TAGs, all are instantiated by default.
15604
15605 Usage: $0 [OPTION]... [TAG]...
15606
15607 -h, --help print this help, then exit
15608 -V, --version print version number and configuration settings, then exit
15609 --config print configuration, then exit
15610 -q, --quiet, --silent
15611 do not print progress messages
15612 -d, --debug don't remove temporary files
15613 --recheck update $as_me by reconfiguring in the same conditions
15614 --file=FILE[:TEMPLATE]
15615 instantiate the configuration file FILE
15616 --header=FILE[:TEMPLATE]
15617 instantiate the configuration header FILE
15618
15619 Configuration files:
15620 $config_files
15621
15622 Configuration headers:
15623 $config_headers
15624
15625 Configuration commands:
15626 $config_commands
15627
15628 Report bugs to <bugs@ircd-hybrid.org>."
15629
15630 _ACEOF
15631 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15632 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15633 ac_cs_version="\\
15634 ircd-hybrid config.status TRUNK
15635 configured by $0, generated by GNU Autoconf 2.69,
15636 with options \\"\$ac_cs_config\\"
15637
15638 Copyright (C) 2012 Free Software Foundation, Inc.
15639 This config.status script is free software; the Free Software Foundation
15640 gives unlimited permission to copy, distribute and modify it."
15641
15642 ac_pwd='$ac_pwd'
15643 srcdir='$srcdir'
15644 INSTALL='$INSTALL'
15645 MKDIR_P='$MKDIR_P'
15646 AWK='$AWK'
15647 test -n "\$AWK" || AWK=awk
15648 _ACEOF
15649
15650 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15651 # The default lists apply if the user does not specify any file.
15652 ac_need_defaults=:
15653 while test $# != 0
15654 do
15655 case $1 in
15656 --*=?*)
15657 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15658 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15659 ac_shift=:
15660 ;;
15661 --*=)
15662 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15663 ac_optarg=
15664 ac_shift=:
15665 ;;
15666 *)
15667 ac_option=$1
15668 ac_optarg=$2
15669 ac_shift=shift
15670 ;;
15671 esac
15672
15673 case $ac_option in
15674 # Handling of the options.
15675 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15676 ac_cs_recheck=: ;;
15677 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15678 $as_echo "$ac_cs_version"; exit ;;
15679 --config | --confi | --conf | --con | --co | --c )
15680 $as_echo "$ac_cs_config"; exit ;;
15681 --debug | --debu | --deb | --de | --d | -d )
15682 debug=: ;;
15683 --file | --fil | --fi | --f )
15684 $ac_shift
15685 case $ac_optarg in
15686 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15687 '') as_fn_error $? "missing file argument" ;;
15688 esac
15689 as_fn_append CONFIG_FILES " '$ac_optarg'"
15690 ac_need_defaults=false;;
15691 --header | --heade | --head | --hea )
15692 $ac_shift
15693 case $ac_optarg in
15694 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15695 esac
15696 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15697 ac_need_defaults=false;;
15698 --he | --h)
15699 # Conflict between --help and --header
15700 as_fn_error $? "ambiguous option: \`$1'
15701 Try \`$0 --help' for more information.";;
15702 --help | --hel | -h )
15703 $as_echo "$ac_cs_usage"; exit ;;
15704 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15705 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15706 ac_cs_silent=: ;;
15707
15708 # This is an error.
15709 -*) as_fn_error $? "unrecognized option: \`$1'
15710 Try \`$0 --help' for more information." ;;
15711
15712 *) as_fn_append ac_config_targets " $1"
15713 ac_need_defaults=false ;;
15714
15715 esac
15716 shift
15717 done
15718
15719 ac_configure_extra_args=
15720
15721 if $ac_cs_silent; then
15722 exec 6>/dev/null
15723 ac_configure_extra_args="$ac_configure_extra_args --silent"
15724 fi
15725
15726 _ACEOF
15727 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15728 if \$ac_cs_recheck; then
15729 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15730 shift
15731 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15732 CONFIG_SHELL='$SHELL'
15733 export CONFIG_SHELL
15734 exec "\$@"
15735 fi
15736
15737 _ACEOF
15738 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15739 exec 5>>config.log
15740 {
15741 echo
15742 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15743 ## Running $as_me. ##
15744 _ASBOX
15745 $as_echo "$ac_log"
15746 } >&5
15747
15748 _ACEOF
15749 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15750 #
15751 # INIT-COMMANDS
15752 #
15753 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15754
15755
15756 # The HP-UX ksh and POSIX shell print the target directory to stdout
15757 # if CDPATH is set.
15758 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15759
15760 sed_quote_subst='$sed_quote_subst'
15761 double_quote_subst='$double_quote_subst'
15762 delay_variable_subst='$delay_variable_subst'
15763 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
15764 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
15765 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
15766 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
15767 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
15768 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
15769 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
15770 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
15771 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
15772 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
15773 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
15774 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
15775 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
15776 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
15777 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
15778 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
15779 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
15780 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
15781 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
15782 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
15783 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
15784 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
15785 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
15786 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
15787 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
15788 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
15789 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
15790 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
15791 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
15792 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
15793 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
15794 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
15795 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
15796 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
15797 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
15798 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
15799 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
15800 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
15801 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
15802 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
15803 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
15804 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
15805 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
15806 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
15807 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
15808 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15809 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15810 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
15811 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
15812 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
15813 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
15814 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
15815 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
15816 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
15817 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
15818 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
15819 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"`'
15820 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
15821 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
15822 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
15823 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
15824 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
15825 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
15826 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
15827 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
15828 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
15829 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
15830 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
15831 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
15832 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
15833 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
15834 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
15835 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
15836 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
15837 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
15838 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15839 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
15840 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
15841 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
15842 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
15843 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
15844 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
15845 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15846 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
15847 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15848 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
15849 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15850 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
15851 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
15852 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
15853 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
15854 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
15855 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
15856 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
15857 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
15858 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
15859 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
15860 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
15861 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
15862 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
15863 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
15864 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
15865 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
15866 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
15867 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
15868 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
15869 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
15870 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
15871 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
15872 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
15873 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
15874 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
15875 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
15876 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
15877 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
15878 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
15879 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
15880 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15881 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15882 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
15883 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
15884 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
15885 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
15886 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
15887 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
15888 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
15889 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
15890 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
15891 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
15892 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
15893
15894 LTCC='$LTCC'
15895 LTCFLAGS='$LTCFLAGS'
15896 compiler='$compiler_DEFAULT'
15897
15898 # A function that is used when there is no print builtin or printf.
15899 func_fallback_echo ()
15900 {
15901 eval 'cat <<_LTECHO_EOF
15902 \$1
15903 _LTECHO_EOF'
15904 }
15905
15906 # Quote evaled strings.
15907 for var in SHELL \
15908 ECHO \
15909 PATH_SEPARATOR \
15910 SED \
15911 GREP \
15912 EGREP \
15913 FGREP \
15914 LD \
15915 NM \
15916 LN_S \
15917 lt_SP2NL \
15918 lt_NL2SP \
15919 reload_flag \
15920 OBJDUMP \
15921 deplibs_check_method \
15922 file_magic_cmd \
15923 file_magic_glob \
15924 want_nocaseglob \
15925 DLLTOOL \
15926 sharedlib_from_linklib_cmd \
15927 AR \
15928 AR_FLAGS \
15929 archiver_list_spec \
15930 STRIP \
15931 RANLIB \
15932 CC \
15933 CFLAGS \
15934 compiler \
15935 lt_cv_sys_global_symbol_pipe \
15936 lt_cv_sys_global_symbol_to_cdecl \
15937 lt_cv_sys_global_symbol_to_c_name_address \
15938 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15939 nm_file_list_spec \
15940 lt_prog_compiler_no_builtin_flag \
15941 lt_prog_compiler_pic \
15942 lt_prog_compiler_wl \
15943 lt_prog_compiler_static \
15944 lt_cv_prog_compiler_c_o \
15945 need_locks \
15946 MANIFEST_TOOL \
15947 DSYMUTIL \
15948 NMEDIT \
15949 LIPO \
15950 OTOOL \
15951 OTOOL64 \
15952 shrext_cmds \
15953 export_dynamic_flag_spec \
15954 whole_archive_flag_spec \
15955 compiler_needs_object \
15956 with_gnu_ld \
15957 allow_undefined_flag \
15958 no_undefined_flag \
15959 hardcode_libdir_flag_spec \
15960 hardcode_libdir_separator \
15961 exclude_expsyms \
15962 include_expsyms \
15963 file_list_spec \
15964 variables_saved_for_relink \
15965 libname_spec \
15966 library_names_spec \
15967 soname_spec \
15968 install_override_mode \
15969 finish_eval \
15970 old_striplib \
15971 striplib; do
15972 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15973 *[\\\\\\\`\\"\\\$]*)
15974 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
15975 ;;
15976 *)
15977 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15978 ;;
15979 esac
15980 done
15981
15982 # Double-quote double-evaled strings.
15983 for var in reload_cmds \
15984 old_postinstall_cmds \
15985 old_postuninstall_cmds \
15986 old_archive_cmds \
15987 extract_expsyms_cmds \
15988 old_archive_from_new_cmds \
15989 old_archive_from_expsyms_cmds \
15990 archive_cmds \
15991 archive_expsym_cmds \
15992 module_cmds \
15993 module_expsym_cmds \
15994 export_symbols_cmds \
15995 prelink_cmds \
15996 postlink_cmds \
15997 postinstall_cmds \
15998 postuninstall_cmds \
15999 finish_cmds \
16000 sys_lib_search_path_spec \
16001 sys_lib_dlsearch_path_spec; do
16002 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16003 *[\\\\\\\`\\"\\\$]*)
16004 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
16005 ;;
16006 *)
16007 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16008 ;;
16009 esac
16010 done
16011
16012 ac_aux_dir='$ac_aux_dir'
16013 xsi_shell='$xsi_shell'
16014 lt_shell_append='$lt_shell_append'
16015
16016 # See if we are running on zsh, and set the options which allow our
16017 # commands through without removal of \ escapes INIT.
16018 if test -n "\${ZSH_VERSION+set}" ; then
16019 setopt NO_GLOB_SUBST
16020 fi
16021
16022
16023 PACKAGE='$PACKAGE'
16024 VERSION='$VERSION'
16025 TIMESTAMP='$TIMESTAMP'
16026 RM='$RM'
16027 ofile='$ofile'
16028
16029
16030
16031
16032 _ACEOF
16033
16034 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16035
16036 # Handling of arguments.
16037 for ac_config_target in $ac_config_targets
16038 do
16039 case $ac_config_target in
16040 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
16041 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16042 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16043 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16044 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
16045 "libltdl/Makefile") CONFIG_FILES="$CONFIG_FILES libltdl/Makefile" ;;
16046 "modules/Makefile") CONFIG_FILES="$CONFIG_FILES modules/Makefile" ;;
16047 "modules/core/Makefile") CONFIG_FILES="$CONFIG_FILES modules/core/Makefile" ;;
16048 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
16049 "help/Makefile") CONFIG_FILES="$CONFIG_FILES help/Makefile" ;;
16050 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
16051
16052 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16053 esac
16054 done
16055
16056
16057 # If the user did not use the arguments to specify the items to instantiate,
16058 # then the envvar interface is used. Set only those that are not.
16059 # We use the long form for the default assignment because of an extremely
16060 # bizarre bug on SunOS 4.1.3.
16061 if $ac_need_defaults; then
16062 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16063 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16064 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16065 fi
16066
16067 # Have a temporary directory for convenience. Make it in the build tree
16068 # simply because there is no reason against having it here, and in addition,
16069 # creating and moving files from /tmp can sometimes cause problems.
16070 # Hook for its removal unless debugging.
16071 # Note that there is a small window in which the directory will not be cleaned:
16072 # after its creation but before its name has been assigned to `$tmp'.
16073 $debug ||
16074 {
16075 tmp= ac_tmp=
16076 trap 'exit_status=$?
16077 : "${ac_tmp:=$tmp}"
16078 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
16079 ' 0
16080 trap 'as_fn_exit 1' 1 2 13 15
16081 }
16082 # Create a (secure) tmp directory for tmp files.
16083
16084 {
16085 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16086 test -d "$tmp"
16087 } ||
16088 {
16089 tmp=./conf$$-$RANDOM
16090 (umask 077 && mkdir "$tmp")
16091 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16092 ac_tmp=$tmp
16093
16094 # Set up the scripts for CONFIG_FILES section.
16095 # No need to generate them if there are no CONFIG_FILES.
16096 # This happens for instance with `./config.status config.h'.
16097 if test -n "$CONFIG_FILES"; then
16098
16099
16100 ac_cr=`echo X | tr X '\015'`
16101 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16102 # But we know of no other shell where ac_cr would be empty at this
16103 # point, so we can use a bashism as a fallback.
16104 if test "x$ac_cr" = x; then
16105 eval ac_cr=\$\'\\r\'
16106 fi
16107 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16108 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16109 ac_cs_awk_cr='\\r'
16110 else
16111 ac_cs_awk_cr=$ac_cr
16112 fi
16113
16114 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
16115 _ACEOF
16116
16117
16118 {
16119 echo "cat >conf$$subs.awk <<_ACEOF" &&
16120 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16121 echo "_ACEOF"
16122 } >conf$$subs.sh ||
16123 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16124 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16125 ac_delim='%!_!# '
16126 for ac_last_try in false false false false false :; do
16127 . ./conf$$subs.sh ||
16128 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16129
16130 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16131 if test $ac_delim_n = $ac_delim_num; then
16132 break
16133 elif $ac_last_try; then
16134 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16135 else
16136 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16137 fi
16138 done
16139 rm -f conf$$subs.sh
16140
16141 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16142 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
16143 _ACEOF
16144 sed -n '
16145 h
16146 s/^/S["/; s/!.*/"]=/
16147 p
16148 g
16149 s/^[^!]*!//
16150 :repl
16151 t repl
16152 s/'"$ac_delim"'$//
16153 t delim
16154 :nl
16155 h
16156 s/\(.\{148\}\)..*/\1/
16157 t more1
16158 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16159 p
16160 n
16161 b repl
16162 :more1
16163 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16164 p
16165 g
16166 s/.\{148\}//
16167 t nl
16168 :delim
16169 h
16170 s/\(.\{148\}\)..*/\1/
16171 t more2
16172 s/["\\]/\\&/g; s/^/"/; s/$/"/
16173 p
16174 b
16175 :more2
16176 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16177 p
16178 g
16179 s/.\{148\}//
16180 t delim
16181 ' <conf$$subs.awk | sed '
16182 /^[^""]/{
16183 N
16184 s/\n//
16185 }
16186 ' >>$CONFIG_STATUS || ac_write_fail=1
16187 rm -f conf$$subs.awk
16188 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16189 _ACAWK
16190 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
16191 for (key in S) S_is_set[key] = 1
16192 FS = ""
16193
16194 }
16195 {
16196 line = $ 0
16197 nfields = split(line, field, "@")
16198 substed = 0
16199 len = length(field[1])
16200 for (i = 2; i < nfields; i++) {
16201 key = field[i]
16202 keylen = length(key)
16203 if (S_is_set[key]) {
16204 value = S[key]
16205 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16206 len += length(value) + length(field[++i])
16207 substed = 1
16208 } else
16209 len += 1 + keylen
16210 }
16211
16212 print line
16213 }
16214
16215 _ACAWK
16216 _ACEOF
16217 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16218 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16219 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16220 else
16221 cat
16222 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16223 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16224 _ACEOF
16225
16226 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16227 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16228 # trailing colons and then remove the whole line if VPATH becomes empty
16229 # (actually we leave an empty line to preserve line numbers).
16230 if test "x$srcdir" = x.; then
16231 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
16232 h
16233 s///
16234 s/^/:/
16235 s/[ ]*$/:/
16236 s/:\$(srcdir):/:/g
16237 s/:\${srcdir}:/:/g
16238 s/:@srcdir@:/:/g
16239 s/^:*//
16240 s/:*$//
16241 x
16242 s/\(=[ ]*\).*/\1/
16243 G
16244 s/\n//
16245 s/^[^=]*=[ ]*$//
16246 }'
16247 fi
16248
16249 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16250 fi # test -n "$CONFIG_FILES"
16251
16252 # Set up the scripts for CONFIG_HEADERS section.
16253 # No need to generate them if there are no CONFIG_HEADERS.
16254 # This happens for instance with `./config.status Makefile'.
16255 if test -n "$CONFIG_HEADERS"; then
16256 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
16257 BEGIN {
16258 _ACEOF
16259
16260 # Transform confdefs.h into an awk script `defines.awk', embedded as
16261 # here-document in config.status, that substitutes the proper values into
16262 # config.h.in to produce config.h.
16263
16264 # Create a delimiter string that does not exist in confdefs.h, to ease
16265 # handling of long lines.
16266 ac_delim='%!_!# '
16267 for ac_last_try in false false :; do
16268 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
16269 if test -z "$ac_tt"; then
16270 break
16271 elif $ac_last_try; then
16272 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
16273 else
16274 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16275 fi
16276 done
16277
16278 # For the awk script, D is an array of macro values keyed by name,
16279 # likewise P contains macro parameters if any. Preserve backslash
16280 # newline sequences.
16281
16282 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16283 sed -n '
16284 s/.\{148\}/&'"$ac_delim"'/g
16285 t rset
16286 :rset
16287 s/^[ ]*#[ ]*define[ ][ ]*/ /
16288 t def
16289 d
16290 :def
16291 s/\\$//
16292 t bsnl
16293 s/["\\]/\\&/g
16294 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16295 D["\1"]=" \3"/p
16296 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16297 d
16298 :bsnl
16299 s/["\\]/\\&/g
16300 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16301 D["\1"]=" \3\\\\\\n"\\/p
16302 t cont
16303 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16304 t cont
16305 d
16306 :cont
16307 n
16308 s/.\{148\}/&'"$ac_delim"'/g
16309 t clear
16310 :clear
16311 s/\\$//
16312 t bsnlc
16313 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16314 d
16315 :bsnlc
16316 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16317 b cont
16318 ' <confdefs.h | sed '
16319 s/'"$ac_delim"'/"\\\
16320 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16321
16322 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16323 for (key in D) D_is_set[key] = 1
16324 FS = ""
16325 }
16326 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16327 line = \$ 0
16328 split(line, arg, " ")
16329 if (arg[1] == "#") {
16330 defundef = arg[2]
16331 mac1 = arg[3]
16332 } else {
16333 defundef = substr(arg[1], 2)
16334 mac1 = arg[2]
16335 }
16336 split(mac1, mac2, "(") #)
16337 macro = mac2[1]
16338 prefix = substr(line, 1, index(line, defundef) - 1)
16339 if (D_is_set[macro]) {
16340 # Preserve the white space surrounding the "#".
16341 print prefix "define", macro P[macro] D[macro]
16342 next
16343 } else {
16344 # Replace #undef with comments. This is necessary, for example,
16345 # in the case of _POSIX_SOURCE, which is predefined and required
16346 # on some systems where configure will not decide to define it.
16347 if (defundef == "undef") {
16348 print "/*", prefix defundef, macro, "*/"
16349 next
16350 }
16351 }
16352 }
16353 { print }
16354 _ACAWK
16355 _ACEOF
16356 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16357 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
16358 fi # test -n "$CONFIG_HEADERS"
16359
16360
16361 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
16362 shift
16363 for ac_tag
16364 do
16365 case $ac_tag in
16366 :[FHLC]) ac_mode=$ac_tag; continue;;
16367 esac
16368 case $ac_mode$ac_tag in
16369 :[FHL]*:*);;
16370 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
16371 :[FH]-) ac_tag=-:-;;
16372 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16373 esac
16374 ac_save_IFS=$IFS
16375 IFS=:
16376 set x $ac_tag
16377 IFS=$ac_save_IFS
16378 shift
16379 ac_file=$1
16380 shift
16381
16382 case $ac_mode in
16383 :L) ac_source=$1;;
16384 :[FH])
16385 ac_file_inputs=
16386 for ac_f
16387 do
16388 case $ac_f in
16389 -) ac_f="$ac_tmp/stdin";;
16390 *) # Look for the file first in the build tree, then in the source tree
16391 # (if the path is not absolute). The absolute path cannot be DOS-style,
16392 # because $ac_f cannot contain `:'.
16393 test -f "$ac_f" ||
16394 case $ac_f in
16395 [\\/$]*) false;;
16396 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16397 esac ||
16398 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16399 esac
16400 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16401 as_fn_append ac_file_inputs " '$ac_f'"
16402 done
16403
16404 # Let's still pretend it is `configure' which instantiates (i.e., don't
16405 # use $as_me), people would be surprised to read:
16406 # /* config.h. Generated by config.status. */
16407 configure_input='Generated from '`
16408 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16409 `' by configure.'
16410 if test x"$ac_file" != x-; then
16411 configure_input="$ac_file. $configure_input"
16412 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16413 $as_echo "$as_me: creating $ac_file" >&6;}
16414 fi
16415 # Neutralize special characters interpreted by sed in replacement strings.
16416 case $configure_input in #(
16417 *\&* | *\|* | *\\* )
16418 ac_sed_conf_input=`$as_echo "$configure_input" |
16419 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16420 *) ac_sed_conf_input=$configure_input;;
16421 esac
16422
16423 case $ac_tag in
16424 *:-:* | *:-) cat >"$ac_tmp/stdin" \
16425 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
16426 esac
16427 ;;
16428 esac
16429
16430 ac_dir=`$as_dirname -- "$ac_file" ||
16431 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16432 X"$ac_file" : 'X\(//\)[^/]' \| \
16433 X"$ac_file" : 'X\(//\)$' \| \
16434 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16435 $as_echo X"$ac_file" |
16436 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16437 s//\1/
16438 q
16439 }
16440 /^X\(\/\/\)[^/].*/{
16441 s//\1/
16442 q
16443 }
16444 /^X\(\/\/\)$/{
16445 s//\1/
16446 q
16447 }
16448 /^X\(\/\).*/{
16449 s//\1/
16450 q
16451 }
16452 s/.*/./; q'`
16453 as_dir="$ac_dir"; as_fn_mkdir_p
16454 ac_builddir=.
16455
16456 case "$ac_dir" in
16457 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16458 *)
16459 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16460 # A ".." for each directory in $ac_dir_suffix.
16461 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16462 case $ac_top_builddir_sub in
16463 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16464 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16465 esac ;;
16466 esac
16467 ac_abs_top_builddir=$ac_pwd
16468 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16469 # for backward compatibility:
16470 ac_top_builddir=$ac_top_build_prefix
16471
16472 case $srcdir in
16473 .) # We are building in place.
16474 ac_srcdir=.
16475 ac_top_srcdir=$ac_top_builddir_sub
16476 ac_abs_top_srcdir=$ac_pwd ;;
16477 [\\/]* | ?:[\\/]* ) # Absolute name.
16478 ac_srcdir=$srcdir$ac_dir_suffix;
16479 ac_top_srcdir=$srcdir
16480 ac_abs_top_srcdir=$srcdir ;;
16481 *) # Relative name.
16482 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16483 ac_top_srcdir=$ac_top_build_prefix$srcdir
16484 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16485 esac
16486 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16487
16488
16489 case $ac_mode in
16490 :F)
16491 #
16492 # CONFIG_FILE
16493 #
16494
16495 case $INSTALL in
16496 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16497 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16498 esac
16499 ac_MKDIR_P=$MKDIR_P
16500 case $MKDIR_P in
16501 [\\/$]* | ?:[\\/]* ) ;;
16502 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16503 esac
16504 _ACEOF
16505
16506 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16507 # If the template does not know about datarootdir, expand it.
16508 # FIXME: This hack should be removed a few years after 2.60.
16509 ac_datarootdir_hack=; ac_datarootdir_seen=
16510 ac_sed_dataroot='
16511 /datarootdir/ {
16512 p
16513 q
16514 }
16515 /@datadir@/p
16516 /@docdir@/p
16517 /@infodir@/p
16518 /@localedir@/p
16519 /@mandir@/p'
16520 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16521 *datarootdir*) ac_datarootdir_seen=yes;;
16522 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16523 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16524 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16525 _ACEOF
16526 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16527 ac_datarootdir_hack='
16528 s&@datadir@&$datadir&g
16529 s&@docdir@&$docdir&g
16530 s&@infodir@&$infodir&g
16531 s&@localedir@&$localedir&g
16532 s&@mandir@&$mandir&g
16533 s&\\\${datarootdir}&$datarootdir&g' ;;
16534 esac
16535 _ACEOF
16536
16537 # Neutralize VPATH when `$srcdir' = `.'.
16538 # Shell code in configure.ac might set extrasub.
16539 # FIXME: do we really want to maintain this feature?
16540 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16541 ac_sed_extra="$ac_vpsub
16542 $extrasub
16543 _ACEOF
16544 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16545 :t
16546 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16547 s|@configure_input@|$ac_sed_conf_input|;t t
16548 s&@top_builddir@&$ac_top_builddir_sub&;t t
16549 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16550 s&@srcdir@&$ac_srcdir&;t t
16551 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16552 s&@top_srcdir@&$ac_top_srcdir&;t t
16553 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16554 s&@builddir@&$ac_builddir&;t t
16555 s&@abs_builddir@&$ac_abs_builddir&;t t
16556 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16557 s&@INSTALL@&$ac_INSTALL&;t t
16558 s&@MKDIR_P@&$ac_MKDIR_P&;t t
16559 $ac_datarootdir_hack
16560 "
16561 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
16562 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16563
16564 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16565 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16566 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
16567 "$ac_tmp/out"`; test -z "$ac_out"; } &&
16568 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16569 which seems to be undefined. Please make sure it is defined" >&5
16570 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16571 which seems to be undefined. Please make sure it is defined" >&2;}
16572
16573 rm -f "$ac_tmp/stdin"
16574 case $ac_file in
16575 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16576 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16577 esac \
16578 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16579 ;;
16580 :H)
16581 #
16582 # CONFIG_HEADER
16583 #
16584 if test x"$ac_file" != x-; then
16585 {
16586 $as_echo "/* $configure_input */" \
16587 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16588 } >"$ac_tmp/config.h" \
16589 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16590 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
16591 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16592 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16593 else
16594 rm -f "$ac_file"
16595 mv "$ac_tmp/config.h" "$ac_file" \
16596 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16597 fi
16598 else
16599 $as_echo "/* $configure_input */" \
16600 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
16601 || as_fn_error $? "could not create -" "$LINENO" 5
16602 fi
16603 # Compute "$ac_file"'s index in $config_headers.
16604 _am_arg="$ac_file"
16605 _am_stamp_count=1
16606 for _am_header in $config_headers :; do
16607 case $_am_header in
16608 $_am_arg | $_am_arg:* )
16609 break ;;
16610 * )
16611 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16612 esac
16613 done
16614 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16615 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16616 X"$_am_arg" : 'X\(//\)[^/]' \| \
16617 X"$_am_arg" : 'X\(//\)$' \| \
16618 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16619 $as_echo X"$_am_arg" |
16620 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16621 s//\1/
16622 q
16623 }
16624 /^X\(\/\/\)[^/].*/{
16625 s//\1/
16626 q
16627 }
16628 /^X\(\/\/\)$/{
16629 s//\1/
16630 q
16631 }
16632 /^X\(\/\).*/{
16633 s//\1/
16634 q
16635 }
16636 s/.*/./; q'`/stamp-h$_am_stamp_count
16637 ;;
16638
16639 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16640 $as_echo "$as_me: executing $ac_file commands" >&6;}
16641 ;;
16642 esac
16643
16644
16645 case $ac_file$ac_mode in
16646 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16647 # Older Autoconf quotes --file arguments for eval, but not when files
16648 # are listed without --file. Let's play safe and only enable the eval
16649 # if we detect the quoting.
16650 case $CONFIG_FILES in
16651 *\'*) eval set x "$CONFIG_FILES" ;;
16652 *) set x $CONFIG_FILES ;;
16653 esac
16654 shift
16655 for mf
16656 do
16657 # Strip MF so we end up with the name of the file.
16658 mf=`echo "$mf" | sed -e 's/:.*$//'`
16659 # Check whether this is an Automake generated Makefile or not.
16660 # We used to match only the files named 'Makefile.in', but
16661 # some people rename them; so instead we look at the file content.
16662 # Grep'ing the first line is not enough: some people post-process
16663 # each Makefile.in and add a new line on top of each file to say so.
16664 # Grep'ing the whole file is not good either: AIX grep has a line
16665 # limit of 2048, but all sed's we know have understand at least 4000.
16666 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
16667 dirpart=`$as_dirname -- "$mf" ||
16668 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16669 X"$mf" : 'X\(//\)[^/]' \| \
16670 X"$mf" : 'X\(//\)$' \| \
16671 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16672 $as_echo X"$mf" |
16673 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16674 s//\1/
16675 q
16676 }
16677 /^X\(\/\/\)[^/].*/{
16678 s//\1/
16679 q
16680 }
16681 /^X\(\/\/\)$/{
16682 s//\1/
16683 q
16684 }
16685 /^X\(\/\).*/{
16686 s//\1/
16687 q
16688 }
16689 s/.*/./; q'`
16690 else
16691 continue
16692 fi
16693 # Extract the definition of DEPDIR, am__include, and am__quote
16694 # from the Makefile without running 'make'.
16695 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16696 test -z "$DEPDIR" && continue
16697 am__include=`sed -n 's/^am__include = //p' < "$mf"`
16698 test -z "$am__include" && continue
16699 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16700 # Find all dependency output files, they are included files with
16701 # $(DEPDIR) in their names. We invoke sed twice because it is the
16702 # simplest approach to changing $(DEPDIR) to its actual value in the
16703 # expansion.
16704 for file in `sed -n "
16705 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16706 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
16707 # Make sure the directory exists.
16708 test -f "$dirpart/$file" && continue
16709 fdir=`$as_dirname -- "$file" ||
16710 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16711 X"$file" : 'X\(//\)[^/]' \| \
16712 X"$file" : 'X\(//\)$' \| \
16713 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
16714 $as_echo X"$file" |
16715 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16716 s//\1/
16717 q
16718 }
16719 /^X\(\/\/\)[^/].*/{
16720 s//\1/
16721 q
16722 }
16723 /^X\(\/\/\)$/{
16724 s//\1/
16725 q
16726 }
16727 /^X\(\/\).*/{
16728 s//\1/
16729 q
16730 }
16731 s/.*/./; q'`
16732 as_dir=$dirpart/$fdir; as_fn_mkdir_p
16733 # echo "creating $dirpart/$file"
16734 echo '# dummy' > "$dirpart/$file"
16735 done
16736 done
16737 }
16738 ;;
16739 "libtool":C)
16740
16741 # See if we are running on zsh, and set the options which allow our
16742 # commands through without removal of \ escapes.
16743 if test -n "${ZSH_VERSION+set}" ; then
16744 setopt NO_GLOB_SUBST
16745 fi
16746
16747 cfgfile="${ofile}T"
16748 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16749 $RM "$cfgfile"
16750
16751 cat <<_LT_EOF >> "$cfgfile"
16752 #! $SHELL
16753
16754 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16755 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
16756 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16757 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
16758 #
16759 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
16760 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
16761 # Foundation, Inc.
16762 # Written by Gordon Matzigkeit, 1996
16763 #
16764 # This file is part of GNU Libtool.
16765 #
16766 # GNU Libtool is free software; you can redistribute it and/or
16767 # modify it under the terms of the GNU General Public License as
16768 # published by the Free Software Foundation; either version 2 of
16769 # the License, or (at your option) any later version.
16770 #
16771 # As a special exception to the GNU General Public License,
16772 # if you distribute this file as part of a program or library that
16773 # is built using GNU Libtool, you may include this file under the
16774 # same distribution terms that you use for the rest of that program.
16775 #
16776 # GNU Libtool is distributed in the hope that it will be useful,
16777 # but WITHOUT ANY WARRANTY; without even the implied warranty of
16778 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16779 # GNU General Public License for more details.
16780 #
16781 # You should have received a copy of the GNU General Public License
16782 # along with GNU Libtool; see the file COPYING. If not, a copy
16783 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
16784 # obtained by writing to the Free Software Foundation, Inc.,
16785 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16786
16787
16788 # The names of the tagged configurations supported by this script.
16789 available_tags=""
16790
16791 # ### BEGIN LIBTOOL CONFIG
16792
16793 # Which release of libtool.m4 was used?
16794 macro_version=$macro_version
16795 macro_revision=$macro_revision
16796
16797 # Whether or not to build static libraries.
16798 build_old_libs=$enable_static
16799
16800 # Whether or not to build shared libraries.
16801 build_libtool_libs=$enable_shared
16802
16803 # What type of objects to build.
16804 pic_mode=$pic_mode
16805
16806 # Whether or not to optimize for fast installation.
16807 fast_install=$enable_fast_install
16808
16809 # Shell to use when invoking shell scripts.
16810 SHELL=$lt_SHELL
16811
16812 # An echo program that protects backslashes.
16813 ECHO=$lt_ECHO
16814
16815 # The PATH separator for the build system.
16816 PATH_SEPARATOR=$lt_PATH_SEPARATOR
16817
16818 # The host system.
16819 host_alias=$host_alias
16820 host=$host
16821 host_os=$host_os
16822
16823 # The build system.
16824 build_alias=$build_alias
16825 build=$build
16826 build_os=$build_os
16827
16828 # A sed program that does not truncate output.
16829 SED=$lt_SED
16830
16831 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
16832 Xsed="\$SED -e 1s/^X//"
16833
16834 # A grep program that handles long lines.
16835 GREP=$lt_GREP
16836
16837 # An ERE matcher.
16838 EGREP=$lt_EGREP
16839
16840 # A literal string matcher.
16841 FGREP=$lt_FGREP
16842
16843 # A BSD- or MS-compatible name lister.
16844 NM=$lt_NM
16845
16846 # Whether we need soft or hard links.
16847 LN_S=$lt_LN_S
16848
16849 # What is the maximum length of a command?
16850 max_cmd_len=$max_cmd_len
16851
16852 # Object file suffix (normally "o").
16853 objext=$ac_objext
16854
16855 # Executable file suffix (normally "").
16856 exeext=$exeext
16857
16858 # whether the shell understands "unset".
16859 lt_unset=$lt_unset
16860
16861 # turn spaces into newlines.
16862 SP2NL=$lt_lt_SP2NL
16863
16864 # turn newlines into spaces.
16865 NL2SP=$lt_lt_NL2SP
16866
16867 # convert \$build file names to \$host format.
16868 to_host_file_cmd=$lt_cv_to_host_file_cmd
16869
16870 # convert \$build files to toolchain format.
16871 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
16872
16873 # An object symbol dumper.
16874 OBJDUMP=$lt_OBJDUMP
16875
16876 # Method to check whether dependent libraries are shared objects.
16877 deplibs_check_method=$lt_deplibs_check_method
16878
16879 # Command to use when deplibs_check_method = "file_magic".
16880 file_magic_cmd=$lt_file_magic_cmd
16881
16882 # How to find potential files when deplibs_check_method = "file_magic".
16883 file_magic_glob=$lt_file_magic_glob
16884
16885 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
16886 want_nocaseglob=$lt_want_nocaseglob
16887
16888 # DLL creation program.
16889 DLLTOOL=$lt_DLLTOOL
16890
16891 # Command to associate shared and link libraries.
16892 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
16893
16894 # The archiver.
16895 AR=$lt_AR
16896
16897 # Flags to create an archive.
16898 AR_FLAGS=$lt_AR_FLAGS
16899
16900 # How to feed a file listing to the archiver.
16901 archiver_list_spec=$lt_archiver_list_spec
16902
16903 # A symbol stripping program.
16904 STRIP=$lt_STRIP
16905
16906 # Commands used to install an old-style archive.
16907 RANLIB=$lt_RANLIB
16908 old_postinstall_cmds=$lt_old_postinstall_cmds
16909 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16910
16911 # Whether to use a lock for old archive extraction.
16912 lock_old_archive_extraction=$lock_old_archive_extraction
16913
16914 # A C compiler.
16915 LTCC=$lt_CC
16916
16917 # LTCC compiler flags.
16918 LTCFLAGS=$lt_CFLAGS
16919
16920 # Take the output of nm and produce a listing of raw symbols and C names.
16921 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16922
16923 # Transform the output of nm in a proper C declaration.
16924 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16925
16926 # Transform the output of nm in a C name address pair.
16927 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16928
16929 # Transform the output of nm in a C name address pair when lib prefix is needed.
16930 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16931
16932 # Specify filename containing input files for \$NM.
16933 nm_file_list_spec=$lt_nm_file_list_spec
16934
16935 # The root where to search for dependent libraries,and in which our libraries should be installed.
16936 lt_sysroot=$lt_sysroot
16937
16938 # The name of the directory that contains temporary libtool files.
16939 objdir=$objdir
16940
16941 # Used to examine libraries when file_magic_cmd begins with "file".
16942 MAGIC_CMD=$MAGIC_CMD
16943
16944 # Must we lock files when doing compilation?
16945 need_locks=$lt_need_locks
16946
16947 # Manifest tool.
16948 MANIFEST_TOOL=$lt_MANIFEST_TOOL
16949
16950 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16951 DSYMUTIL=$lt_DSYMUTIL
16952
16953 # Tool to change global to local symbols on Mac OS X.
16954 NMEDIT=$lt_NMEDIT
16955
16956 # Tool to manipulate fat objects and archives on Mac OS X.
16957 LIPO=$lt_LIPO
16958
16959 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
16960 OTOOL=$lt_OTOOL
16961
16962 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16963 OTOOL64=$lt_OTOOL64
16964
16965 # Old archive suffix (normally "a").
16966 libext=$libext
16967
16968 # Shared library suffix (normally ".so").
16969 shrext_cmds=$lt_shrext_cmds
16970
16971 # The commands to extract the exported symbol list from a shared archive.
16972 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16973
16974 # Variables whose values should be saved in libtool wrapper scripts and
16975 # restored at link time.
16976 variables_saved_for_relink=$lt_variables_saved_for_relink
16977
16978 # Do we need the "lib" prefix for modules?
16979 need_lib_prefix=$need_lib_prefix
16980
16981 # Do we need a version for libraries?
16982 need_version=$need_version
16983
16984 # Library versioning type.
16985 version_type=$version_type
16986
16987 # Shared library runtime path variable.
16988 runpath_var=$runpath_var
16989
16990 # Shared library path variable.
16991 shlibpath_var=$shlibpath_var
16992
16993 # Is shlibpath searched before the hard-coded library search path?
16994 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16995
16996 # Format of library name prefix.
16997 libname_spec=$lt_libname_spec
16998
16999 # List of archive names. First name is the real one, the rest are links.
17000 # The last name is the one that the linker finds with -lNAME
17001 library_names_spec=$lt_library_names_spec
17002
17003 # The coded name of the library, if different from the real name.
17004 soname_spec=$lt_soname_spec
17005
17006 # Permission mode override for installation of shared libraries.
17007 install_override_mode=$lt_install_override_mode
17008
17009 # Command to use after installation of a shared archive.
17010 postinstall_cmds=$lt_postinstall_cmds
17011
17012 # Command to use after uninstallation of a shared archive.
17013 postuninstall_cmds=$lt_postuninstall_cmds
17014
17015 # Commands used to finish a libtool library installation in a directory.
17016 finish_cmds=$lt_finish_cmds
17017
17018 # As "finish_cmds", except a single script fragment to be evaled but
17019 # not shown.
17020 finish_eval=$lt_finish_eval
17021
17022 # Whether we should hardcode library paths into libraries.
17023 hardcode_into_libs=$hardcode_into_libs
17024
17025 # Compile-time system search path for libraries.
17026 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17027
17028 # Run-time system search path for libraries.
17029 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17030
17031 # Whether dlopen is supported.
17032 dlopen_support=$enable_dlopen
17033
17034 # Whether dlopen of programs is supported.
17035 dlopen_self=$enable_dlopen_self
17036
17037 # Whether dlopen of statically linked programs is supported.
17038 dlopen_self_static=$enable_dlopen_self_static
17039
17040 # Commands to strip libraries.
17041 old_striplib=$lt_old_striplib
17042 striplib=$lt_striplib
17043
17044
17045 # The linker used to build libraries.
17046 LD=$lt_LD
17047
17048 # How to create reloadable object files.
17049 reload_flag=$lt_reload_flag
17050 reload_cmds=$lt_reload_cmds
17051
17052 # Commands used to build an old-style archive.
17053 old_archive_cmds=$lt_old_archive_cmds
17054
17055 # A language specific compiler.
17056 CC=$lt_compiler
17057
17058 # Is the compiler the GNU compiler?
17059 with_gcc=$GCC
17060
17061 # Compiler flag to turn off builtin functions.
17062 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17063
17064 # Additional compiler flags for building library objects.
17065 pic_flag=$lt_lt_prog_compiler_pic
17066
17067 # How to pass a linker flag through the compiler.
17068 wl=$lt_lt_prog_compiler_wl
17069
17070 # Compiler flag to prevent dynamic linking.
17071 link_static_flag=$lt_lt_prog_compiler_static
17072
17073 # Does compiler simultaneously support -c and -o options?
17074 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17075
17076 # Whether or not to add -lc for building shared libraries.
17077 build_libtool_need_lc=$archive_cmds_need_lc
17078
17079 # Whether or not to disallow shared libs when runtime libs are static.
17080 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17081
17082 # Compiler flag to allow reflexive dlopens.
17083 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17084
17085 # Compiler flag to generate shared objects directly from archives.
17086 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17087
17088 # Whether the compiler copes with passing no objects directly.
17089 compiler_needs_object=$lt_compiler_needs_object
17090
17091 # Create an old-style archive from a shared archive.
17092 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17093
17094 # Create a temporary old-style archive to link instead of a shared archive.
17095 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17096
17097 # Commands used to build a shared archive.
17098 archive_cmds=$lt_archive_cmds
17099 archive_expsym_cmds=$lt_archive_expsym_cmds
17100
17101 # Commands used to build a loadable module if different from building
17102 # a shared archive.
17103 module_cmds=$lt_module_cmds
17104 module_expsym_cmds=$lt_module_expsym_cmds
17105
17106 # Whether we are building with GNU ld or not.
17107 with_gnu_ld=$lt_with_gnu_ld
17108
17109 # Flag that allows shared libraries with undefined symbols to be built.
17110 allow_undefined_flag=$lt_allow_undefined_flag
17111
17112 # Flag that enforces no undefined symbols.
17113 no_undefined_flag=$lt_no_undefined_flag
17114
17115 # Flag to hardcode \$libdir into a binary during linking.
17116 # This must work even if \$libdir does not exist
17117 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17118
17119 # Whether we need a single "-rpath" flag with a separated argument.
17120 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17121
17122 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17123 # DIR into the resulting binary.
17124 hardcode_direct=$hardcode_direct
17125
17126 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17127 # DIR into the resulting binary and the resulting library dependency is
17128 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17129 # library is relocated.
17130 hardcode_direct_absolute=$hardcode_direct_absolute
17131
17132 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17133 # into the resulting binary.
17134 hardcode_minus_L=$hardcode_minus_L
17135
17136 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17137 # into the resulting binary.
17138 hardcode_shlibpath_var=$hardcode_shlibpath_var
17139
17140 # Set to "yes" if building a shared library automatically hardcodes DIR
17141 # into the library and all subsequent libraries and executables linked
17142 # against it.
17143 hardcode_automatic=$hardcode_automatic
17144
17145 # Set to yes if linker adds runtime paths of dependent libraries
17146 # to runtime path list.
17147 inherit_rpath=$inherit_rpath
17148
17149 # Whether libtool must link a program against all its dependency libraries.
17150 link_all_deplibs=$link_all_deplibs
17151
17152 # Set to "yes" if exported symbols are required.
17153 always_export_symbols=$always_export_symbols
17154
17155 # The commands to list exported symbols.
17156 export_symbols_cmds=$lt_export_symbols_cmds
17157
17158 # Symbols that should not be listed in the preloaded symbols.
17159 exclude_expsyms=$lt_exclude_expsyms
17160
17161 # Symbols that must always be exported.
17162 include_expsyms=$lt_include_expsyms
17163
17164 # Commands necessary for linking programs (against libraries) with templates.
17165 prelink_cmds=$lt_prelink_cmds
17166
17167 # Commands necessary for finishing linking programs.
17168 postlink_cmds=$lt_postlink_cmds
17169
17170 # Specify filename containing input files.
17171 file_list_spec=$lt_file_list_spec
17172
17173 # How to hardcode a shared library path into an executable.
17174 hardcode_action=$hardcode_action
17175
17176 # ### END LIBTOOL CONFIG
17177
17178 _LT_EOF
17179
17180 case $host_os in
17181 aix3*)
17182 cat <<\_LT_EOF >> "$cfgfile"
17183 # AIX sometimes has problems with the GCC collect2 program. For some
17184 # reason, if we set the COLLECT_NAMES environment variable, the problems
17185 # vanish in a puff of smoke.
17186 if test "X${COLLECT_NAMES+set}" != Xset; then
17187 COLLECT_NAMES=
17188 export COLLECT_NAMES
17189 fi
17190 _LT_EOF
17191 ;;
17192 esac
17193
17194
17195 ltmain="$ac_aux_dir/ltmain.sh"
17196
17197
17198 # We use sed instead of cat because bash on DJGPP gets confused if
17199 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17200 # text mode, it properly converts lines to CR/LF. This bash problem
17201 # is reportedly fixed, but why not run on old versions too?
17202 sed '$q' "$ltmain" >> "$cfgfile" \
17203 || (rm -f "$cfgfile"; exit 1)
17204
17205 if test x"$xsi_shell" = xyes; then
17206 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
17207 func_dirname ()\
17208 {\
17209 \ case ${1} in\
17210 \ */*) func_dirname_result="${1%/*}${2}" ;;\
17211 \ * ) func_dirname_result="${3}" ;;\
17212 \ esac\
17213 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
17214 && mv -f "$cfgfile.tmp" "$cfgfile" \
17215 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17216 test 0 -eq $? || _lt_function_replace_fail=:
17217
17218
17219 sed -e '/^func_basename ()$/,/^} # func_basename /c\
17220 func_basename ()\
17221 {\
17222 \ func_basename_result="${1##*/}"\
17223 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
17224 && mv -f "$cfgfile.tmp" "$cfgfile" \
17225 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17226 test 0 -eq $? || _lt_function_replace_fail=:
17227
17228
17229 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
17230 func_dirname_and_basename ()\
17231 {\
17232 \ case ${1} in\
17233 \ */*) func_dirname_result="${1%/*}${2}" ;;\
17234 \ * ) func_dirname_result="${3}" ;;\
17235 \ esac\
17236 \ func_basename_result="${1##*/}"\
17237 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
17238 && mv -f "$cfgfile.tmp" "$cfgfile" \
17239 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17240 test 0 -eq $? || _lt_function_replace_fail=:
17241
17242
17243 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
17244 func_stripname ()\
17245 {\
17246 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
17247 \ # positional parameters, so assign one to ordinary parameter first.\
17248 \ func_stripname_result=${3}\
17249 \ func_stripname_result=${func_stripname_result#"${1}"}\
17250 \ func_stripname_result=${func_stripname_result%"${2}"}\
17251 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
17252 && mv -f "$cfgfile.tmp" "$cfgfile" \
17253 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17254 test 0 -eq $? || _lt_function_replace_fail=:
17255
17256
17257 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
17258 func_split_long_opt ()\
17259 {\
17260 \ func_split_long_opt_name=${1%%=*}\
17261 \ func_split_long_opt_arg=${1#*=}\
17262 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
17263 && mv -f "$cfgfile.tmp" "$cfgfile" \
17264 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17265 test 0 -eq $? || _lt_function_replace_fail=:
17266
17267
17268 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
17269 func_split_short_opt ()\
17270 {\
17271 \ func_split_short_opt_arg=${1#??}\
17272 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
17273 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
17274 && mv -f "$cfgfile.tmp" "$cfgfile" \
17275 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17276 test 0 -eq $? || _lt_function_replace_fail=:
17277
17278
17279 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
17280 func_lo2o ()\
17281 {\
17282 \ case ${1} in\
17283 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
17284 \ *) func_lo2o_result=${1} ;;\
17285 \ esac\
17286 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
17287 && mv -f "$cfgfile.tmp" "$cfgfile" \
17288 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17289 test 0 -eq $? || _lt_function_replace_fail=:
17290
17291
17292 sed -e '/^func_xform ()$/,/^} # func_xform /c\
17293 func_xform ()\
17294 {\
17295 func_xform_result=${1%.*}.lo\
17296 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
17297 && mv -f "$cfgfile.tmp" "$cfgfile" \
17298 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17299 test 0 -eq $? || _lt_function_replace_fail=:
17300
17301
17302 sed -e '/^func_arith ()$/,/^} # func_arith /c\
17303 func_arith ()\
17304 {\
17305 func_arith_result=$(( $* ))\
17306 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
17307 && mv -f "$cfgfile.tmp" "$cfgfile" \
17308 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17309 test 0 -eq $? || _lt_function_replace_fail=:
17310
17311
17312 sed -e '/^func_len ()$/,/^} # func_len /c\
17313 func_len ()\
17314 {\
17315 func_len_result=${#1}\
17316 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
17317 && mv -f "$cfgfile.tmp" "$cfgfile" \
17318 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17319 test 0 -eq $? || _lt_function_replace_fail=:
17320
17321 fi
17322
17323 if test x"$lt_shell_append" = xyes; then
17324 sed -e '/^func_append ()$/,/^} # func_append /c\
17325 func_append ()\
17326 {\
17327 eval "${1}+=\\${2}"\
17328 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
17329 && mv -f "$cfgfile.tmp" "$cfgfile" \
17330 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17331 test 0 -eq $? || _lt_function_replace_fail=:
17332
17333
17334 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
17335 func_append_quoted ()\
17336 {\
17337 \ func_quote_for_eval "${2}"\
17338 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
17339 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
17340 && mv -f "$cfgfile.tmp" "$cfgfile" \
17341 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17342 test 0 -eq $? || _lt_function_replace_fail=:
17343
17344
17345 # Save a `func_append' function call where possible by direct use of '+='
17346 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
17347 && mv -f "$cfgfile.tmp" "$cfgfile" \
17348 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17349 test 0 -eq $? || _lt_function_replace_fail=:
17350 else
17351 # Save a `func_append' function call even when '+=' is not available
17352 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
17353 && mv -f "$cfgfile.tmp" "$cfgfile" \
17354 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17355 test 0 -eq $? || _lt_function_replace_fail=:
17356 fi
17357
17358 if test x"$_lt_function_replace_fail" = x":"; then
17359 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
17360 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
17361 fi
17362
17363
17364 mv -f "$cfgfile" "$ofile" ||
17365 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17366 chmod +x "$ofile"
17367
17368 ;;
17369
17370 esac
17371 done # for ac_tag
17372
17373
17374 as_fn_exit 0
17375 _ACEOF
17376 ac_clean_files=$ac_clean_files_save
17377
17378 test $ac_write_fail = 0 ||
17379 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
17380
17381
17382 # configure is writing to config.log, and then calls config.status.
17383 # config.status does its own redirection, appending to config.log.
17384 # Unfortunately, on DOS this fails, as config.log is still kept open
17385 # by configure, so config.status won't be able to write to it; its
17386 # output is simply discarded. So we exec the FD to /dev/null,
17387 # effectively closing config.log, so it can be properly (re)opened and
17388 # appended to by config.status. When coming back to configure, we
17389 # need to make the FD available again.
17390 if test "$no_create" != yes; then
17391 ac_cs_success=:
17392 ac_config_status_args=
17393 test "$silent" = yes &&
17394 ac_config_status_args="$ac_config_status_args --quiet"
17395 exec 5>/dev/null
17396 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17397 exec 5>>config.log
17398 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17399 # would make configure fail if this is the last instruction.
17400 $ac_cs_success || as_fn_exit 1
17401 fi
17402 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17403 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17404 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17405 fi
17406

Properties

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