Debian Codegraph @

configure

raw symbols SCIP
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for rlinetd 0.9.3.
4 #
5 # Report bugs to <[email protected]>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" "" $as_nl"
90
91 # Find who we are. Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
97 do
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101 done
102 IFS=$as_save_IFS
103
104 ;;
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109 as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114 fi
115
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137 # Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
145 BASH_ENV=/dev/null
146 ENV=/dev/null
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148 case $- in # ((((
149 *v*x* | *x*v* ) as_opts=-vx ;;
150 *v* ) as_opts=-v ;;
151 *x* ) as_opts=-x ;;
152 * ) as_opts= ;;
153 esac
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 as_fn_exit 255
159 fi
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 emulate sh
165 NULLCMD=:
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 setopt NO_GLOB_SUBST
170 else
171 case \`(set -o) 2>/dev/null\` in #(
172 *posix*) :
173 set -o posix ;; #(
174 *) :
175 ;;
176 esac
177 fi
178 "
179 as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
184
185 exitcode=0
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192 else
193 exitcode=1; echo positional parameters were not saved.
194 fi
195 test x\$exitcode = x0 || exit 1
196 test -x / || exit 1"
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201 test \$(( 1 + 1 )) = 2 || 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 if (eval "$as_required") 2>/dev/null; then :
211 as_have_required=yes
212 else
213 as_have_required=no
214 fi
215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217 else
218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219 as_found=false
220 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221 do
222 IFS=$as_save_IFS
223 test -z "$as_dir" && as_dir=.
224 as_found=:
225 case $as_dir in #(
226 /*)
227 for as_base in sh bash ksh sh5; do
228 # Try only shells that exist, to save several forks.
229 as_shell=$as_dir/$as_base
230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 CONFIG_SHELL=$as_shell as_have_required=yes
233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234 break 2
235 fi
236 fi
237 done;;
238 esac
239 as_found=false
240 done
241 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243 CONFIG_SHELL=$SHELL as_have_required=yes
244 fi; }
245 IFS=$as_save_IFS
246
247
248 if test "x$CONFIG_SHELL" != x; then :
249 export CONFIG_SHELL
250 # We cannot yet assume a decent shell, so we have to provide a
251 # neutralization value for shells without unset; and this also
252 # works around shells that cannot unset nonexistent variables.
253 # Preserve -v and -x to the replacement shell.
254 BASH_ENV=/dev/null
255 ENV=/dev/null
256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257 case $- in # ((((
258 *v*x* | *x*v* ) as_opts=-vx ;;
259 *v* ) as_opts=-v ;;
260 *x* ) as_opts=-x ;;
261 * ) as_opts= ;;
262 esac
263 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264 # Admittedly, this is quite paranoid, since all the known shells bail
265 # out after a failed `exec'.
266 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267 exit 255
268 fi
269
270 if test x$as_have_required = xno; then :
271 $as_echo "$0: This script requires a shell more modern than all"
272 $as_echo "$0: the shells that I found on your system."
273 if test x${ZSH_VERSION+set} = xset ; then
274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276 else
277 $as_echo "$0: Please tell [email protected] and
278 $0: [email protected] about your system,
279 $0: including any error possibly output before this
280 $0: message. Then install a modern shell, or manually run
281 $0: the script under such a shell if you do have one."
282 fi
283 exit 1
284 fi
285 fi
286 fi
287 SHELL=${CONFIG_SHELL-/bin/sh}
288 export SHELL
289 # Unset more variables known to interfere with behavior of common tools.
290 CLICOLOR_FORCE= GREP_OPTIONS=
291 unset CLICOLOR_FORCE GREP_OPTIONS
292
293 ## --------------------- ##
294 ## M4sh Shell Functions. ##
295 ## --------------------- ##
296 # as_fn_unset VAR
297 # ---------------
298 # Portably unset VAR.
299 as_fn_unset ()
300 {
301 { eval $1=; unset $1;}
302 }
303 as_unset=as_fn_unset
304
305 # as_fn_set_status STATUS
306 # -----------------------
307 # Set $? to STATUS, without forking.
308 as_fn_set_status ()
309 {
310 return $1
311 } # as_fn_set_status
312
313 # as_fn_exit STATUS
314 # -----------------
315 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
316 as_fn_exit ()
317 {
318 set +e
319 as_fn_set_status $1
320 exit $1
321 } # as_fn_exit
322
323 # as_fn_mkdir_p
324 # -------------
325 # Create "$as_dir" as a directory, including parents if necessary.
326 as_fn_mkdir_p ()
327 {
328
329 case $as_dir in #(
330 -*) as_dir=./$as_dir;;
331 esac
332 test -d "$as_dir" || eval $as_mkdir_p || {
333 as_dirs=
334 while :; do
335 case $as_dir in #(
336 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
337 *) as_qdir=$as_dir;;
338 esac
339 as_dirs="'$as_qdir' $as_dirs"
340 as_dir=`$as_dirname -- "$as_dir" ||
341 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342 X"$as_dir" : 'X\(//\)[^/]' \| \
343 X"$as_dir" : 'X\(//\)$' \| \
344 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345 $as_echo X"$as_dir" |
346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
347 s//\1/
348 q
349 }
350 /^X\(\/\/\)[^/].*/{
351 s//\1/
352 q
353 }
354 /^X\(\/\/\)$/{
355 s//\1/
356 q
357 }
358 /^X\(\/\).*/{
359 s//\1/
360 q
361 }
362 s/.*/./; q'`
363 test -d "$as_dir" && break
364 done
365 test -z "$as_dirs" || eval "mkdir $as_dirs"
366 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
367
368
369 } # as_fn_mkdir_p
370
371 # as_fn_executable_p FILE
372 # -----------------------
373 # Test if FILE is an executable regular file.
374 as_fn_executable_p ()
375 {
376 test -f "$1" && test -x "$1"
377 } # as_fn_executable_p
378 # as_fn_append VAR VALUE
379 # ----------------------
380 # Append the text in VALUE to the end of the definition contained in VAR. Take
381 # advantage of any shell optimizations that allow amortized linear growth over
382 # repeated appends, instead of the typical quadratic growth present in naive
383 # implementations.
384 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385 eval 'as_fn_append ()
386 {
387 eval $1+=\$2
388 }'
389 else
390 as_fn_append ()
391 {
392 eval $1=\$$1\$2
393 }
394 fi # as_fn_append
395
396 # as_fn_arith ARG...
397 # ------------------
398 # Perform arithmetic evaluation on the ARGs, and store the result in the
399 # global $as_val. Take advantage of shells that can avoid forks. The arguments
400 # must be portable across $(()) and expr.
401 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
402 eval 'as_fn_arith ()
403 {
404 as_val=$(( $* ))
405 }'
406 else
407 as_fn_arith ()
408 {
409 as_val=`expr "$@" || test $? -eq 1`
410 }
411 fi # as_fn_arith
412
413
414 # as_fn_error STATUS ERROR [LINENO LOG_FD]
415 # ----------------------------------------
416 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
418 # script with STATUS, using 1 if that was 0.
419 as_fn_error ()
420 {
421 as_status=$1; test $as_status -eq 0 && as_status=1
422 if test "$4"; then
423 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
425 fi
426 $as_echo "$as_me: error: $2" >&2
427 as_fn_exit $as_status
428 } # as_fn_error
429
430 if expr a : '\(a\)' >/dev/null 2>&1 &&
431 test "X`expr 00001 : '.*\(...\)'`" = X001; then
432 as_expr=expr
433 else
434 as_expr=false
435 fi
436
437 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
438 as_basename=basename
439 else
440 as_basename=false
441 fi
442
443 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
444 as_dirname=dirname
445 else
446 as_dirname=false
447 fi
448
449 as_me=`$as_basename -- "$0" ||
450 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451 X"$0" : 'X\(//\)$' \| \
452 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
453 $as_echo X/"$0" |
454 sed '/^.*\/\([^/][^/]*\)\/*$/{
455 s//\1/
456 q
457 }
458 /^X\/\(\/\/\)$/{
459 s//\1/
460 q
461 }
462 /^X\/\(\/\).*/{
463 s//\1/
464 q
465 }
466 s/.*/./; q'`
467
468 # Avoid depending upon Character Ranges.
469 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472 as_cr_digits='0123456789'
473 as_cr_alnum=$as_cr_Letters$as_cr_digits
474
475
476 as_lineno_1=$LINENO as_lineno_1a=$LINENO
477 as_lineno_2=$LINENO as_lineno_2a=$LINENO
478 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
481 sed -n '
482 p
483 /[$]LINENO/=
484 ' <$as_myself |
485 sed '
486 s/[$]LINENO.*/&-/
487 t lineno
488 b
489 :lineno
490 N
491 :loop
492 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493 t loop
494 s/-\n.*//
495 ' >$as_me.lineno &&
496 chmod +x "$as_me.lineno" ||
497 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
498
499 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500 # already done that, so ensure we don't try to do so again and fall
501 # in an infinite loop. This has already happened in practice.
502 _as_can_reexec=no; export _as_can_reexec
503 # Don't try to exec as it changes $[0], causing all sort of problems
504 # (the dirname of $[0] is not the place where we might find the
505 # original and so on. Autoconf is especially sensitive to this).
506 . "./$as_me.lineno"
507 # Exit status is that of the last command.
508 exit
509 }
510
511 ECHO_C= ECHO_N= ECHO_T=
512 case `echo -n x` in #(((((
513 -n*)
514 case `echo 'xy\c'` in
515 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
516 xy) ECHO_C='\c';;
517 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
518 ECHO_T=' ';;
519 esac;;
520 *)
521 ECHO_N='-n';;
522 esac
523
524 rm -f conf$$ conf$$.exe conf$$.file
525 if test -d conf$$.dir; then
526 rm -f conf$$.dir/conf$$.file
527 else
528 rm -f conf$$.dir
529 mkdir conf$$.dir 2>/dev/null
530 fi
531 if (echo >conf$$.file) 2>/dev/null; then
532 if ln -s conf$$.file conf$$ 2>/dev/null; then
533 as_ln_s='ln -s'
534 # ... but there are two gotchas:
535 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
537 # In both cases, we have to default to `cp -pR'.
538 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
539 as_ln_s='cp -pR'
540 elif ln conf$$.file conf$$ 2>/dev/null; then
541 as_ln_s=ln
542 else
543 as_ln_s='cp -pR'
544 fi
545 else
546 as_ln_s='cp -pR'
547 fi
548 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549 rmdir conf$$.dir 2>/dev/null
550
551 if mkdir -p . 2>/dev/null; then
552 as_mkdir_p='mkdir -p "$as_dir"'
553 else
554 test -d ./-p && rmdir ./-p
555 as_mkdir_p=false
556 fi
557
558 as_test_x='test -x'
559 as_executable_p=as_fn_executable_p
560
561 # Sed expression to map a string onto a valid CPP name.
562 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
563
564 # Sed expression to map a string onto a valid variable name.
565 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
566
567 SHELL=${CONFIG_SHELL-/bin/sh}
568
569
570 test -n "$DJDIR" || exec 7<&0 </dev/null
571 exec 6>&1
572
573 # Name of the host.
574 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
575 # so uname gets run too.
576 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
577
578 #
579 # Initializations.
580 #
581 ac_default_prefix=/usr/local
582 ac_clean_files=
583 ac_config_libobj_dir=.
584 LIBOBJS=
585 cross_compiling=no
586 subdirs=
587 MFLAGS=
588 MAKEFLAGS=
589
590 # Identity of this package.
591 PACKAGE_NAME='rlinetd'
592 PACKAGE_TARNAME='rlinetd'
593 PACKAGE_VERSION='0.9.3'
594 PACKAGE_STRING='rlinetd 0.9.3'
595 PACKAGE_BUGREPORT='[email protected]'
596 PACKAGE_URL=''
597
598 ac_unique_file="src/engine.c"
599 gt_needs=
600 # Factoring default headers for most tests.
601 ac_includes_default="\
602 #include <stdio.h>
603 #ifdef HAVE_SYS_TYPES_H
604 # include <sys/types.h>
605 #endif
606 #ifdef HAVE_SYS_STAT_H
607 # include <sys/stat.h>
608 #endif
609 #ifdef STDC_HEADERS
610 # include <stdlib.h>
611 # include <stddef.h>
612 #else
613 # ifdef HAVE_STDLIB_H
614 # include <stdlib.h>
615 # endif
616 #endif
617 #ifdef HAVE_STRING_H
618 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
619 # include <memory.h>
620 # endif
621 # include <string.h>
622 #endif
623 #ifdef HAVE_STRINGS_H
624 # include <strings.h>
625 #endif
626 #ifdef HAVE_INTTYPES_H
627 # include <inttypes.h>
628 #endif
629 #ifdef HAVE_STDINT_H
630 # include <stdint.h>
631 #endif
632 #ifdef HAVE_UNISTD_H
633 # include <unistd.h>
634 #endif"
635
636 ac_subst_vars='am__EXEEXT_FALSE
637 am__EXEEXT_TRUE
638 LTLIBOBJS
639 po4apath
640 perlpath
641 libsrlinetd
642 MAINT
643 MAINTAINER_MODE_FALSE
644 MAINTAINER_MODE_TRUE
645 LIBOBJS
646 CPP
647 LT_SYS_LIBRARY_PATH
648 OTOOL64
649 OTOOL
650 LIPO
651 NMEDIT
652 DSYMUTIL
653 MANIFEST_TOOL
654 RANLIB
655 ac_ct_AR
656 AR
657 DLLTOOL
658 OBJDUMP
659 NM
660 ac_ct_DUMPBIN
661 DUMPBIN
662 LD
663 FGREP
664 EGREP
665 GREP
666 LIBTOOL
667 YFLAGS
668 YACC
669 SED
670 LEXLIB
671 LEX_OUTPUT_ROOT
672 LEX
673 LN_S
674 POSUB
675 LTLIBINTL
676 LIBINTL
677 INTLLIBS
678 LTLIBICONV
679 LIBICONV
680 INTL_MACOSX_LIBS
681 host_os
682 host_vendor
683 host_cpu
684 host
685 build_os
686 build_vendor
687 build_cpu
688 build
689 am__fastdepCC_FALSE
690 am__fastdepCC_TRUE
691 CCDEPMODE
692 am__nodep
693 AMDEPBACKSLASH
694 AMDEP_FALSE
695 AMDEP_TRUE
696 am__include
697 DEPDIR
698 OBJEXT
699 EXEEXT
700 ac_ct_CC
701 CPPFLAGS
702 LDFLAGS
703 CFLAGS
704 CC
705 MSGMERGE
706 XGETTEXT_015
707 XGETTEXT
708 GMSGFMT_015
709 MSGFMT_015
710 GMSGFMT
711 MSGFMT
712 USE_NLS
713 AM_BACKSLASH
714 AM_DEFAULT_VERBOSITY
715 AM_DEFAULT_V
716 AM_V
717 am__untar
718 am__tar
719 AMTAR
720 am__leading_dot
721 SET_MAKE
722 AWK
723 mkdir_p
724 MKDIR_P
725 INSTALL_STRIP_PROGRAM
726 STRIP
727 install_sh
728 MAKEINFO
729 AUTOHEADER
730 AUTOMAKE
731 AUTOCONF
732 ACLOCAL
733 VERSION
734 PACKAGE
735 CYGPATH_W
736 am__isrc
737 INSTALL_DATA
738 INSTALL_SCRIPT
739 INSTALL_PROGRAM
740 target_alias
741 host_alias
742 build_alias
743 LIBS
744 ECHO_T
745 ECHO_N
746 ECHO_C
747 DEFS
748 mandir
749 localedir
750 libdir
751 psdir
752 pdfdir
753 dvidir
754 htmldir
755 infodir
756 docdir
757 oldincludedir
758 includedir
759 runstatedir
760 localstatedir
761 sharedstatedir
762 sysconfdir
763 datadir
764 datarootdir
765 libexecdir
766 sbindir
767 bindir
768 program_transform_name
769 prefix
770 exec_prefix
771 PACKAGE_URL
772 PACKAGE_BUGREPORT
773 PACKAGE_STRING
774 PACKAGE_VERSION
775 PACKAGE_TARNAME
776 PACKAGE_NAME
777 PATH_SEPARATOR
778 SHELL
779 am__quote'
780 ac_subst_files=''
781 ac_user_opts='
782 enable_option_checking
783 enable_static
784 enable_silent_rules
785 enable_nls
786 enable_dependency_tracking
787 with_gnu_ld
788 enable_rpath
789 with_libiconv_prefix
790 with_libintl_prefix
791 with_dmalloc
792 enable_shared
793 with_pic
794 enable_fast_install
795 with_aix_soname
796 with_sysroot
797 enable_libtool_lock
798 with_libnsl
799 with_libwrap
800 with_libcap
801 with_lsf
802 enable_warnings
803 enable_largefile
804 enable_maintainer_mode
805 '
806 ac_precious_vars='build_alias
807 host_alias
808 target_alias
809 CC
810 CFLAGS
811 LDFLAGS
812 LIBS
813 CPPFLAGS
814 YACC
815 YFLAGS
816 LT_SYS_LIBRARY_PATH
817 CPP'
818
819
820 # Initialize some variables set by options.
821 ac_init_help=
822 ac_init_version=false
823 ac_unrecognized_opts=
824 ac_unrecognized_sep=
825 # The variables have the same names as the options, with
826 # dashes changed to underlines.
827 cache_file=/dev/null
828 exec_prefix=NONE
829 no_create=
830 no_recursion=
831 prefix=NONE
832 program_prefix=NONE
833 program_suffix=NONE
834 program_transform_name=s,x,x,
835 silent=
836 site=
837 srcdir=
838 verbose=
839 x_includes=NONE
840 x_libraries=NONE
841
842 # Installation directory options.
843 # These are left unexpanded so users can "make install exec_prefix=/foo"
844 # and all the variables that are supposed to be based on exec_prefix
845 # by default will actually change.
846 # Use braces instead of parens because sh, perl, etc. also accept them.
847 # (The list follows the same order as the GNU Coding Standards.)
848 bindir='${exec_prefix}/bin'
849 sbindir='${exec_prefix}/sbin'
850 libexecdir='${exec_prefix}/libexec'
851 datarootdir='${prefix}/share'
852 datadir='${datarootdir}'
853 sysconfdir='${prefix}/etc'
854 sharedstatedir='${prefix}/com'
855 localstatedir='${prefix}/var'
856 runstatedir='${localstatedir}/run'
857 includedir='${prefix}/include'
858 oldincludedir='/usr/include'
859 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
860 infodir='${datarootdir}/info'
861 htmldir='${docdir}'
862 dvidir='${docdir}'
863 pdfdir='${docdir}'
864 psdir='${docdir}'
865 libdir='${exec_prefix}/lib'
866 localedir='${datarootdir}/locale'
867 mandir='${datarootdir}/man'
868
869 ac_prev=
870 ac_dashdash=
871 for ac_option
872 do
873 # If the previous option needs an argument, assign it.
874 if test -n "$ac_prev"; then
875 eval $ac_prev=\$ac_option
876 ac_prev=
877 continue
878 fi
879
880 case $ac_option in
881 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
882 *=) ac_optarg= ;;
883 *) ac_optarg=yes ;;
884 esac
885
886 # Accept the important Cygnus configure options, so we can diagnose typos.
887
888 case $ac_dashdash$ac_option in
889 --)
890 ac_dashdash=yes ;;
891
892 -bindir | --bindir | --bindi | --bind | --bin | --bi)
893 ac_prev=bindir ;;
894 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
895 bindir=$ac_optarg ;;
896
897 -build | --build | --buil | --bui | --bu)
898 ac_prev=build_alias ;;
899 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
900 build_alias=$ac_optarg ;;
901
902 -cache-file | --cache-file | --cache-fil | --cache-fi \
903 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
904 ac_prev=cache_file ;;
905 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
906 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
907 cache_file=$ac_optarg ;;
908
909 --config-cache | -C)
910 cache_file=config.cache ;;
911
912 -datadir | --datadir | --datadi | --datad)
913 ac_prev=datadir ;;
914 -datadir=* | --datadir=* | --datadi=* | --datad=*)
915 datadir=$ac_optarg ;;
916
917 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
918 | --dataroo | --dataro | --datar)
919 ac_prev=datarootdir ;;
920 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
921 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
922 datarootdir=$ac_optarg ;;
923
924 -disable-* | --disable-*)
925 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
926 # Reject names that are not valid shell variable names.
927 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
928 as_fn_error $? "invalid feature name: $ac_useropt"
929 ac_useropt_orig=$ac_useropt
930 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
931 case $ac_user_opts in
932 *"
933 "enable_$ac_useropt"
934 "*) ;;
935 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
936 ac_unrecognized_sep=', ';;
937 esac
938 eval enable_$ac_useropt=no ;;
939
940 -docdir | --docdir | --docdi | --doc | --do)
941 ac_prev=docdir ;;
942 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
943 docdir=$ac_optarg ;;
944
945 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
946 ac_prev=dvidir ;;
947 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
948 dvidir=$ac_optarg ;;
949
950 -enable-* | --enable-*)
951 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
952 # Reject names that are not valid shell variable names.
953 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
954 as_fn_error $? "invalid feature name: $ac_useropt"
955 ac_useropt_orig=$ac_useropt
956 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
957 case $ac_user_opts in
958 *"
959 "enable_$ac_useropt"
960 "*) ;;
961 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
962 ac_unrecognized_sep=', ';;
963 esac
964 eval enable_$ac_useropt=\$ac_optarg ;;
965
966 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
967 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
968 | --exec | --exe | --ex)
969 ac_prev=exec_prefix ;;
970 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
971 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
972 | --exec=* | --exe=* | --ex=*)
973 exec_prefix=$ac_optarg ;;
974
975 -gas | --gas | --ga | --g)
976 # Obsolete; use --with-gas.
977 with_gas=yes ;;
978
979 -help | --help | --hel | --he | -h)
980 ac_init_help=long ;;
981 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
982 ac_init_help=recursive ;;
983 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
984 ac_init_help=short ;;
985
986 -host | --host | --hos | --ho)
987 ac_prev=host_alias ;;
988 -host=* | --host=* | --hos=* | --ho=*)
989 host_alias=$ac_optarg ;;
990
991 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
992 ac_prev=htmldir ;;
993 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
994 | --ht=*)
995 htmldir=$ac_optarg ;;
996
997 -includedir | --includedir | --includedi | --included | --include \
998 | --includ | --inclu | --incl | --inc)
999 ac_prev=includedir ;;
1000 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1001 | --includ=* | --inclu=* | --incl=* | --inc=*)
1002 includedir=$ac_optarg ;;
1003
1004 -infodir | --infodir | --infodi | --infod | --info | --inf)
1005 ac_prev=infodir ;;
1006 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1007 infodir=$ac_optarg ;;
1008
1009 -libdir | --libdir | --libdi | --libd)
1010 ac_prev=libdir ;;
1011 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1012 libdir=$ac_optarg ;;
1013
1014 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1015 | --libexe | --libex | --libe)
1016 ac_prev=libexecdir ;;
1017 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1018 | --libexe=* | --libex=* | --libe=*)
1019 libexecdir=$ac_optarg ;;
1020
1021 -localedir | --localedir | --localedi | --localed | --locale)
1022 ac_prev=localedir ;;
1023 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1024 localedir=$ac_optarg ;;
1025
1026 -localstatedir | --localstatedir | --localstatedi | --localstated \
1027 | --localstate | --localstat | --localsta | --localst | --locals)
1028 ac_prev=localstatedir ;;
1029 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1030 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1031 localstatedir=$ac_optarg ;;
1032
1033 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1034 ac_prev=mandir ;;
1035 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1036 mandir=$ac_optarg ;;
1037
1038 -nfp | --nfp | --nf)
1039 # Obsolete; use --without-fp.
1040 with_fp=no ;;
1041
1042 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1043 | --no-cr | --no-c | -n)
1044 no_create=yes ;;
1045
1046 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1047 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1048 no_recursion=yes ;;
1049
1050 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1051 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1052 | --oldin | --oldi | --old | --ol | --o)
1053 ac_prev=oldincludedir ;;
1054 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1055 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1056 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1057 oldincludedir=$ac_optarg ;;
1058
1059 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1060 ac_prev=prefix ;;
1061 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1062 prefix=$ac_optarg ;;
1063
1064 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1065 | --program-pre | --program-pr | --program-p)
1066 ac_prev=program_prefix ;;
1067 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1068 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1069 program_prefix=$ac_optarg ;;
1070
1071 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1072 | --program-suf | --program-su | --program-s)
1073 ac_prev=program_suffix ;;
1074 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1075 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1076 program_suffix=$ac_optarg ;;
1077
1078 -program-transform-name | --program-transform-name \
1079 | --program-transform-nam | --program-transform-na \
1080 | --program-transform-n | --program-transform- \
1081 | --program-transform | --program-transfor \
1082 | --program-transfo | --program-transf \
1083 | --program-trans | --program-tran \
1084 | --progr-tra | --program-tr | --program-t)
1085 ac_prev=program_transform_name ;;
1086 -program-transform-name=* | --program-transform-name=* \
1087 | --program-transform-nam=* | --program-transform-na=* \
1088 | --program-transform-n=* | --program-transform-=* \
1089 | --program-transform=* | --program-transfor=* \
1090 | --program-transfo=* | --program-transf=* \
1091 | --program-trans=* | --program-tran=* \
1092 | --progr-tra=* | --program-tr=* | --program-t=*)
1093 program_transform_name=$ac_optarg ;;
1094
1095 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1096 ac_prev=pdfdir ;;
1097 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1098 pdfdir=$ac_optarg ;;
1099
1100 -psdir | --psdir | --psdi | --psd | --ps)
1101 ac_prev=psdir ;;
1102 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1103 psdir=$ac_optarg ;;
1104
1105 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1106 | -silent | --silent | --silen | --sile | --sil)
1107 silent=yes ;;
1108
1109 -runstatedir | --runstatedir | --runstatedi | --runstated \
1110 | --runstate | --runstat | --runsta | --runst | --runs \
1111 | --run | --ru | --r)
1112 ac_prev=runstatedir ;;
1113 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1114 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1115 | --run=* | --ru=* | --r=*)
1116 runstatedir=$ac_optarg ;;
1117
1118 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1119 ac_prev=sbindir ;;
1120 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1121 | --sbi=* | --sb=*)
1122 sbindir=$ac_optarg ;;
1123
1124 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1125 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1126 | --sharedst | --shareds | --shared | --share | --shar \
1127 | --sha | --sh)
1128 ac_prev=sharedstatedir ;;
1129 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1130 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1131 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1132 | --sha=* | --sh=*)
1133 sharedstatedir=$ac_optarg ;;
1134
1135 -site | --site | --sit)
1136 ac_prev=site ;;
1137 -site=* | --site=* | --sit=*)
1138 site=$ac_optarg ;;
1139
1140 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1141 ac_prev=srcdir ;;
1142 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1143 srcdir=$ac_optarg ;;
1144
1145 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1146 | --syscon | --sysco | --sysc | --sys | --sy)
1147 ac_prev=sysconfdir ;;
1148 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1149 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1150 sysconfdir=$ac_optarg ;;
1151
1152 -target | --target | --targe | --targ | --tar | --ta | --t)
1153 ac_prev=target_alias ;;
1154 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1155 target_alias=$ac_optarg ;;
1156
1157 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1158 verbose=yes ;;
1159
1160 -version | --version | --versio | --versi | --vers | -V)
1161 ac_init_version=: ;;
1162
1163 -with-* | --with-*)
1164 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1165 # Reject names that are not valid shell variable names.
1166 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1167 as_fn_error $? "invalid package name: $ac_useropt"
1168 ac_useropt_orig=$ac_useropt
1169 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1170 case $ac_user_opts in
1171 *"
1172 "with_$ac_useropt"
1173 "*) ;;
1174 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1175 ac_unrecognized_sep=', ';;
1176 esac
1177 eval with_$ac_useropt=\$ac_optarg ;;
1178
1179 -without-* | --without-*)
1180 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1181 # Reject names that are not valid shell variable names.
1182 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1183 as_fn_error $? "invalid package name: $ac_useropt"
1184 ac_useropt_orig=$ac_useropt
1185 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1186 case $ac_user_opts in
1187 *"
1188 "with_$ac_useropt"
1189 "*) ;;
1190 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1191 ac_unrecognized_sep=', ';;
1192 esac
1193 eval with_$ac_useropt=no ;;
1194
1195 --x)
1196 # Obsolete; use --with-x.
1197 with_x=yes ;;
1198
1199 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1200 | --x-incl | --x-inc | --x-in | --x-i)
1201 ac_prev=x_includes ;;
1202 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1203 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1204 x_includes=$ac_optarg ;;
1205
1206 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1207 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1208 ac_prev=x_libraries ;;
1209 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1210 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1211 x_libraries=$ac_optarg ;;
1212
1213 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1214 Try \`$0 --help' for more information"
1215 ;;
1216
1217 *=*)
1218 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1219 # Reject names that are not valid shell variable names.
1220 case $ac_envvar in #(
1221 '' | [0-9]* | *[!_$as_cr_alnum]* )
1222 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1223 esac
1224 eval $ac_envvar=\$ac_optarg
1225 export $ac_envvar ;;
1226
1227 *)
1228 # FIXME: should be removed in autoconf 3.0.
1229 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1230 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1231 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1232 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1233 ;;
1234
1235 esac
1236 done
1237
1238 if test -n "$ac_prev"; then
1239 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1240 as_fn_error $? "missing argument to $ac_option"
1241 fi
1242
1243 if test -n "$ac_unrecognized_opts"; then
1244 case $enable_option_checking in
1245 no) ;;
1246 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1247 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1248 esac
1249 fi
1250
1251 # Check all directory arguments for consistency.
1252 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1253 datadir sysconfdir sharedstatedir localstatedir includedir \
1254 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1255 libdir localedir mandir runstatedir
1256 do
1257 eval ac_val=\$$ac_var
1258 # Remove trailing slashes.
1259 case $ac_val in
1260 */ )
1261 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1262 eval $ac_var=\$ac_val;;
1263 esac
1264 # Be sure to have absolute directory names.
1265 case $ac_val in
1266 [\\/$]* | ?:[\\/]* ) continue;;
1267 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1268 esac
1269 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1270 done
1271
1272 # There might be people who depend on the old broken behavior: `$host'
1273 # used to hold the argument of --host etc.
1274 # FIXME: To remove some day.
1275 build=$build_alias
1276 host=$host_alias
1277 target=$target_alias
1278
1279 # FIXME: To remove some day.
1280 if test "x$host_alias" != x; then
1281 if test "x$build_alias" = x; then
1282 cross_compiling=maybe
1283 elif test "x$build_alias" != "x$host_alias"; then
1284 cross_compiling=yes
1285 fi
1286 fi
1287
1288 ac_tool_prefix=
1289 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1290
1291 test "$silent" = yes && exec 6>/dev/null
1292
1293
1294 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1295 ac_ls_di=`ls -di .` &&
1296 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1297 as_fn_error $? "working directory cannot be determined"
1298 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1299 as_fn_error $? "pwd does not report name of working directory"
1300
1301
1302 # Find the source files, if location was not specified.
1303 if test -z "$srcdir"; then
1304 ac_srcdir_defaulted=yes
1305 # Try the directory containing this script, then the parent directory.
1306 ac_confdir=`$as_dirname -- "$as_myself" ||
1307 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1308 X"$as_myself" : 'X\(//\)[^/]' \| \
1309 X"$as_myself" : 'X\(//\)$' \| \
1310 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1311 $as_echo X"$as_myself" |
1312 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1313 s//\1/
1314 q
1315 }
1316 /^X\(\/\/\)[^/].*/{
1317 s//\1/
1318 q
1319 }
1320 /^X\(\/\/\)$/{
1321 s//\1/
1322 q
1323 }
1324 /^X\(\/\).*/{
1325 s//\1/
1326 q
1327 }
1328 s/.*/./; q'`
1329 srcdir=$ac_confdir
1330 if test ! -r "$srcdir/$ac_unique_file"; then
1331 srcdir=..
1332 fi
1333 else
1334 ac_srcdir_defaulted=no
1335 fi
1336 if test ! -r "$srcdir/$ac_unique_file"; then
1337 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1338 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1339 fi
1340 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1341 ac_abs_confdir=`(
1342 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1343 pwd)`
1344 # When building in place, set srcdir=.
1345 if test "$ac_abs_confdir" = "$ac_pwd"; then
1346 srcdir=.
1347 fi
1348 # Remove unnecessary trailing slashes from srcdir.
1349 # Double slashes in file names in object file debugging info
1350 # mess up M-x gdb in Emacs.
1351 case $srcdir in
1352 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1353 esac
1354 for ac_var in $ac_precious_vars; do
1355 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1356 eval ac_env_${ac_var}_value=\$${ac_var}
1357 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1358 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1359 done
1360
1361 #
1362 # Report the --help message.
1363 #
1364 if test "$ac_init_help" = "long"; then
1365 # Omit some internal or obsolete options to make the list less imposing.
1366 # This message is too long to be a string in the A/UX 3.1 sh.
1367 cat <<_ACEOF
1368 \`configure' configures rlinetd 0.9.3 to adapt to many kinds of systems.
1369
1370 Usage: $0 [OPTION]... [VAR=VALUE]...
1371
1372 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1373 VAR=VALUE. See below for descriptions of some of the useful variables.
1374
1375 Defaults for the options are specified in brackets.
1376
1377 Configuration:
1378 -h, --help display this help and exit
1379 --help=short display options specific to this package
1380 --help=recursive display the short help of all the included packages
1381 -V, --version display version information and exit
1382 -q, --quiet, --silent do not print \`checking ...' messages
1383 --cache-file=FILE cache test results in FILE [disabled]
1384 -C, --config-cache alias for \`--cache-file=config.cache'
1385 -n, --no-create do not create output files
1386 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1387
1388 Installation directories:
1389 --prefix=PREFIX install architecture-independent files in PREFIX
1390 [$ac_default_prefix]
1391 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1392 [PREFIX]
1393
1394 By default, \`make install' will install all the files in
1395 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1396 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1397 for instance \`--prefix=\$HOME'.
1398
1399 For better control, use the options below.
1400
1401 Fine tuning of the installation directories:
1402 --bindir=DIR user executables [EPREFIX/bin]
1403 --sbindir=DIR system admin executables [EPREFIX/sbin]
1404 --libexecdir=DIR program executables [EPREFIX/libexec]
1405 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1406 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1407 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1408 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1409 --libdir=DIR object code libraries [EPREFIX/lib]
1410 --includedir=DIR C header files [PREFIX/include]
1411 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1412 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1413 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1414 --infodir=DIR info documentation [DATAROOTDIR/info]
1415 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1416 --mandir=DIR man documentation [DATAROOTDIR/man]
1417 --docdir=DIR documentation root [DATAROOTDIR/doc/rlinetd]
1418 --htmldir=DIR html documentation [DOCDIR]
1419 --dvidir=DIR dvi documentation [DOCDIR]
1420 --pdfdir=DIR pdf documentation [DOCDIR]
1421 --psdir=DIR ps documentation [DOCDIR]
1422 _ACEOF
1423
1424 cat <<\_ACEOF
1425
1426 Program names:
1427 --program-prefix=PREFIX prepend PREFIX to installed program names
1428 --program-suffix=SUFFIX append SUFFIX to installed program names
1429 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1430
1431 System types:
1432 --build=BUILD configure for building on BUILD [guessed]
1433 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1434 _ACEOF
1435 fi
1436
1437 if test -n "$ac_init_help"; then
1438 case $ac_init_help in
1439 short | recursive ) echo "Configuration of rlinetd 0.9.3:";;
1440 esac
1441 cat <<\_ACEOF
1442
1443 Optional Features:
1444 --disable-option-checking ignore unrecognized --enable/--with options
1445 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1446 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1447 --enable-static[=PKGS] build static libraries [default=no]
1448 --enable-silent-rules less verbose build output (undo: "make V=1")
1449 --disable-silent-rules verbose build output (undo: "make V=0")
1450 --disable-nls do not use Native Language Support
1451 --enable-dependency-tracking
1452 do not reject slow dependency extractors
1453 --disable-dependency-tracking
1454 speeds up one-time build
1455 --disable-rpath do not hardcode runtime library paths
1456 --enable-shared[=PKGS] build shared libraries [default=yes]
1457 --enable-fast-install[=PKGS]
1458 optimize for fast installation [default=yes]
1459 --disable-libtool-lock avoid locking (might break parallel builds)
1460 --enable-warnings turn on more compiler warnings [default=yes]
1461 --disable-largefile omit support for large files
1462 --enable-maintainer-mode
1463 enable make rules and dependencies not useful (and
1464 sometimes confusing) to the casual installer
1465
1466 Optional Packages:
1467 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1468 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1469 --with-gnu-ld assume the C compiler uses GNU ld default=no
1470 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1471 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1472 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1473 --without-libintl-prefix don't search for libintl in includedir and libdir
1474 --with-dmalloc use dmalloc, as in http://www.dmalloc.com
1475 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1476 both]
1477 --with-aix-soname=aix|svr4|both
1478 shared library versioning (aka "SONAME") variant to
1479 provide on AIX, [default=aix].
1480 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1481 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1482 compiler's sysroot if not specified).
1483 --with-libnsl link with the nsl library
1484 --with-libwrap perform tcp_wrappers access control checks
1485 --with-libcap include POSIX capability support
1486 --with-lsf include Linux Socket Filter support
1487
1488 Some influential environment variables:
1489 CC C compiler command
1490 CFLAGS C compiler flags
1491 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1492 nonstandard directory <lib dir>
1493 LIBS libraries to pass to the linker, e.g. -l<library>
1494 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1495 you have headers in a nonstandard directory <include dir>
1496 YACC The `Yet Another Compiler Compiler' implementation to use.
1497 Defaults to the first program found out of: `bison -y', `byacc',
1498 `yacc'.
1499 YFLAGS The list of arguments that will be passed by default to $YACC.
1500 This script will default YFLAGS to the empty string to avoid a
1501 default value of `-d' given by some make applications.
1502 LT_SYS_LIBRARY_PATH
1503 User-defined run-time library search path.
1504 CPP C preprocessor
1505
1506 Use these variables to override the choices made by `configure' or to help
1507 it to find libraries and programs with nonstandard names/locations.
1508
1509 Report bugs to <[email protected]>.
1510 _ACEOF
1511 ac_status=$?
1512 fi
1513
1514 if test "$ac_init_help" = "recursive"; then
1515 # If there are subdirs, report their specific --help.
1516 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1517 test -d "$ac_dir" ||
1518 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1519 continue
1520 ac_builddir=.
1521
1522 case "$ac_dir" in
1523 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1524 *)
1525 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1526 # A ".." for each directory in $ac_dir_suffix.
1527 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1528 case $ac_top_builddir_sub in
1529 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1530 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1531 esac ;;
1532 esac
1533 ac_abs_top_builddir=$ac_pwd
1534 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1535 # for backward compatibility:
1536 ac_top_builddir=$ac_top_build_prefix
1537
1538 case $srcdir in
1539 .) # We are building in place.
1540 ac_srcdir=.
1541 ac_top_srcdir=$ac_top_builddir_sub
1542 ac_abs_top_srcdir=$ac_pwd ;;
1543 [\\/]* | ?:[\\/]* ) # Absolute name.
1544 ac_srcdir=$srcdir$ac_dir_suffix;
1545 ac_top_srcdir=$srcdir
1546 ac_abs_top_srcdir=$srcdir ;;
1547 *) # Relative name.
1548 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1549 ac_top_srcdir=$ac_top_build_prefix$srcdir
1550 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1551 esac
1552 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1553
1554 cd "$ac_dir" || { ac_status=$?; continue; }
1555 # Check for guested configure.
1556 if test -f "$ac_srcdir/configure.gnu"; then
1557 echo &&
1558 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1559 elif test -f "$ac_srcdir/configure"; then
1560 echo &&
1561 $SHELL "$ac_srcdir/configure" --help=recursive
1562 else
1563 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1564 fi || ac_status=$?
1565 cd "$ac_pwd" || { ac_status=$?; break; }
1566 done
1567 fi
1568
1569 test -n "$ac_init_help" && exit $ac_status
1570 if $ac_init_version; then
1571 cat <<\_ACEOF
1572 rlinetd configure 0.9.3
1573 generated by GNU Autoconf 2.69
1574
1575 Copyright (C) 2012 Free Software Foundation, Inc.
1576 This configure script is free software; the Free Software Foundation
1577 gives unlimited permission to copy, distribute and modify it.
1578 _ACEOF
1579 exit
1580 fi
1581
1582 ## ------------------------ ##
1583 ## Autoconf initialization. ##
1584 ## ------------------------ ##
1585
1586 # ac_fn_c_try_compile LINENO
1587 # --------------------------
1588 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1589 ac_fn_c_try_compile ()
1590 {
1591 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1592 rm -f conftest.$ac_objext
1593 if { { ac_try="$ac_compile"
1594 case "(($ac_try" in
1595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1596 *) ac_try_echo=$ac_try;;
1597 esac
1598 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1599 $as_echo "$ac_try_echo"; } >&5
1600 (eval "$ac_compile") 2>conftest.err
1601 ac_status=$?
1602 if test -s conftest.err; then
1603 grep -v '^ *+' conftest.err >conftest.er1
1604 cat conftest.er1 >&5
1605 mv -f conftest.er1 conftest.err
1606 fi
1607 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1608 test $ac_status = 0; } && {
1609 test -z "$ac_c_werror_flag" ||
1610 test ! -s conftest.err
1611 } && test -s conftest.$ac_objext; then :
1612 ac_retval=0
1613 else
1614 $as_echo "$as_me: failed program was:" >&5
1615 sed 's/^/| /' conftest.$ac_ext >&5
1616
1617 ac_retval=1
1618 fi
1619 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1620 as_fn_set_status $ac_retval
1621
1622 } # ac_fn_c_try_compile
1623
1624 # ac_fn_c_try_link LINENO
1625 # -----------------------
1626 # Try to link conftest.$ac_ext, and return whether this succeeded.
1627 ac_fn_c_try_link ()
1628 {
1629 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1630 rm -f conftest.$ac_objext conftest$ac_exeext
1631 if { { ac_try="$ac_link"
1632 case "(($ac_try" in
1633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1634 *) ac_try_echo=$ac_try;;
1635 esac
1636 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1637 $as_echo "$ac_try_echo"; } >&5
1638 (eval "$ac_link") 2>conftest.err
1639 ac_status=$?
1640 if test -s conftest.err; then
1641 grep -v '^ *+' conftest.err >conftest.er1
1642 cat conftest.er1 >&5
1643 mv -f conftest.er1 conftest.err
1644 fi
1645 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1646 test $ac_status = 0; } && {
1647 test -z "$ac_c_werror_flag" ||
1648 test ! -s conftest.err
1649 } && test -s conftest$ac_exeext && {
1650 test "$cross_compiling" = yes ||
1651 test -x conftest$ac_exeext
1652 }; then :
1653 ac_retval=0
1654 else
1655 $as_echo "$as_me: failed program was:" >&5
1656 sed 's/^/| /' conftest.$ac_ext >&5
1657
1658 ac_retval=1
1659 fi
1660 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1661 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1662 # interfere with the next link command; also delete a directory that is
1663 # left behind by Apple's compiler. We do this before executing the actions.
1664 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1665 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1666 as_fn_set_status $ac_retval
1667
1668 } # ac_fn_c_try_link
1669
1670 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1671 # -------------------------------------------------------
1672 # Tests whether HEADER exists and can be compiled using the include files in
1673 # INCLUDES, setting the cache variable VAR accordingly.
1674 ac_fn_c_check_header_compile ()
1675 {
1676 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1678 $as_echo_n "checking for $2... " >&6; }
1679 if eval \${$3+:} false; then :
1680 $as_echo_n "(cached) " >&6
1681 else
1682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1683 /* end confdefs.h. */
1684 $4
1685 #include <$2>
1686 _ACEOF
1687 if ac_fn_c_try_compile "$LINENO"; then :
1688 eval "$3=yes"
1689 else
1690 eval "$3=no"
1691 fi
1692 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1693 fi
1694 eval ac_res=\$$3
1695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1696 $as_echo "$ac_res" >&6; }
1697 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1698
1699 } # ac_fn_c_check_header_compile
1700
1701 # ac_fn_c_try_cpp LINENO
1702 # ----------------------
1703 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1704 ac_fn_c_try_cpp ()
1705 {
1706 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1707 if { { ac_try="$ac_cpp conftest.$ac_ext"
1708 case "(($ac_try" in
1709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1710 *) ac_try_echo=$ac_try;;
1711 esac
1712 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1713 $as_echo "$ac_try_echo"; } >&5
1714 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1715 ac_status=$?
1716 if test -s conftest.err; then
1717 grep -v '^ *+' conftest.err >conftest.er1
1718 cat conftest.er1 >&5
1719 mv -f conftest.er1 conftest.err
1720 fi
1721 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1722 test $ac_status = 0; } > conftest.i && {
1723 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1724 test ! -s conftest.err
1725 }; then :
1726 ac_retval=0
1727 else
1728 $as_echo "$as_me: failed program was:" >&5
1729 sed 's/^/| /' conftest.$ac_ext >&5
1730
1731 ac_retval=1
1732 fi
1733 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1734 as_fn_set_status $ac_retval
1735
1736 } # ac_fn_c_try_cpp
1737
1738 # ac_fn_c_try_run LINENO
1739 # ----------------------
1740 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1741 # that executables *can* be run.
1742 ac_fn_c_try_run ()
1743 {
1744 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1745 if { { ac_try="$ac_link"
1746 case "(($ac_try" in
1747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1748 *) ac_try_echo=$ac_try;;
1749 esac
1750 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1751 $as_echo "$ac_try_echo"; } >&5
1752 (eval "$ac_link") 2>&5
1753 ac_status=$?
1754 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1755 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1756 { { case "(($ac_try" in
1757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1758 *) ac_try_echo=$ac_try;;
1759 esac
1760 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1761 $as_echo "$ac_try_echo"; } >&5
1762 (eval "$ac_try") 2>&5
1763 ac_status=$?
1764 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1765 test $ac_status = 0; }; }; then :
1766 ac_retval=0
1767 else
1768 $as_echo "$as_me: program exited with status $ac_status" >&5
1769 $as_echo "$as_me: failed program was:" >&5
1770 sed 's/^/| /' conftest.$ac_ext >&5
1771
1772 ac_retval=$ac_status
1773 fi
1774 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1775 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1776 as_fn_set_status $ac_retval
1777
1778 } # ac_fn_c_try_run
1779
1780 # ac_fn_c_check_func LINENO FUNC VAR
1781 # ----------------------------------
1782 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1783 ac_fn_c_check_func ()
1784 {
1785 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1787 $as_echo_n "checking for $2... " >&6; }
1788 if eval \${$3+:} false; then :
1789 $as_echo_n "(cached) " >&6
1790 else
1791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1792 /* end confdefs.h. */
1793 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1794 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1795 #define $2 innocuous_$2
1796
1797 /* System header to define __stub macros and hopefully few prototypes,
1798 which can conflict with char $2 (); below.
1799 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1800 <limits.h> exists even on freestanding compilers. */
1801
1802 #ifdef __STDC__
1803 # include <limits.h>
1804 #else
1805 # include <assert.h>
1806 #endif
1807
1808 #undef $2
1809
1810 /* Override any GCC internal prototype to avoid an error.
1811 Use char because int might match the return type of a GCC
1812 builtin and then its argument prototype would still apply. */
1813 #ifdef __cplusplus
1814 extern "C"
1815 #endif
1816 char $2 ();
1817 /* The GNU C library defines this for functions which it implements
1818 to always fail with ENOSYS. Some functions are actually named
1819 something starting with __ and the normal name is an alias. */
1820 #if defined __stub_$2 || defined __stub___$2
1821 choke me
1822 #endif
1823
1824 int
1825 main ()
1826 {
1827 return $2 ();
1828 ;
1829 return 0;
1830 }
1831 _ACEOF
1832 if ac_fn_c_try_link "$LINENO"; then :
1833 eval "$3=yes"
1834 else
1835 eval "$3=no"
1836 fi
1837 rm -f core conftest.err conftest.$ac_objext \
1838 conftest$ac_exeext conftest.$ac_ext
1839 fi
1840 eval ac_res=\$$3
1841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1842 $as_echo "$ac_res" >&6; }
1843 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1844
1845 } # ac_fn_c_check_func
1846
1847 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1848 # -------------------------------------------------------
1849 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1850 # the include files in INCLUDES and setting the cache variable VAR
1851 # accordingly.
1852 ac_fn_c_check_header_mongrel ()
1853 {
1854 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1855 if eval \${$3+:} false; then :
1856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1857 $as_echo_n "checking for $2... " >&6; }
1858 if eval \${$3+:} false; then :
1859 $as_echo_n "(cached) " >&6
1860 fi
1861 eval ac_res=\$$3
1862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1863 $as_echo "$ac_res" >&6; }
1864 else
1865 # Is the header compilable?
1866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1867 $as_echo_n "checking $2 usability... " >&6; }
1868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1869 /* end confdefs.h. */
1870 $4
1871 #include <$2>
1872 _ACEOF
1873 if ac_fn_c_try_compile "$LINENO"; then :
1874 ac_header_compiler=yes
1875 else
1876 ac_header_compiler=no
1877 fi
1878 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1880 $as_echo "$ac_header_compiler" >&6; }
1881
1882 # Is the header present?
1883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1884 $as_echo_n "checking $2 presence... " >&6; }
1885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1886 /* end confdefs.h. */
1887 #include <$2>
1888 _ACEOF
1889 if ac_fn_c_try_cpp "$LINENO"; then :
1890 ac_header_preproc=yes
1891 else
1892 ac_header_preproc=no
1893 fi
1894 rm -f conftest.err conftest.i conftest.$ac_ext
1895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1896 $as_echo "$ac_header_preproc" >&6; }
1897
1898 # So? What about this header?
1899 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1900 yes:no: )
1901 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1902 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1903 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1904 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1905 ;;
1906 no:yes:* )
1907 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1908 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1909 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1910 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1911 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1912 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1913 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1914 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1915 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1916 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1917 ( $as_echo "## ------------------------------------------ ##
1918 ## Report this to [email protected] ##
1919 ## ------------------------------------------ ##"
1920 ) | sed "s/^/$as_me: WARNING: /" >&2
1921 ;;
1922 esac
1923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1924 $as_echo_n "checking for $2... " >&6; }
1925 if eval \${$3+:} false; then :
1926 $as_echo_n "(cached) " >&6
1927 else
1928 eval "$3=\$ac_header_compiler"
1929 fi
1930 eval ac_res=\$$3
1931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1932 $as_echo "$ac_res" >&6; }
1933 fi
1934 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1935
1936 } # ac_fn_c_check_header_mongrel
1937
1938 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1939 # -------------------------------------------
1940 # Tests whether TYPE exists after having included INCLUDES, setting cache
1941 # variable VAR accordingly.
1942 ac_fn_c_check_type ()
1943 {
1944 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1946 $as_echo_n "checking for $2... " >&6; }
1947 if eval \${$3+:} false; then :
1948 $as_echo_n "(cached) " >&6
1949 else
1950 eval "$3=no"
1951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1952 /* end confdefs.h. */
1953 $4
1954 int
1955 main ()
1956 {
1957 if (sizeof ($2))
1958 return 0;
1959 ;
1960 return 0;
1961 }
1962 _ACEOF
1963 if ac_fn_c_try_compile "$LINENO"; then :
1964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1965 /* end confdefs.h. */
1966 $4
1967 int
1968 main ()
1969 {
1970 if (sizeof (($2)))
1971 return 0;
1972 ;
1973 return 0;
1974 }
1975 _ACEOF
1976 if ac_fn_c_try_compile "$LINENO"; then :
1977
1978 else
1979 eval "$3=yes"
1980 fi
1981 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1982 fi
1983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1984 fi
1985 eval ac_res=\$$3
1986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1987 $as_echo "$ac_res" >&6; }
1988 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1989
1990 } # ac_fn_c_check_type
1991 cat >config.log <<_ACEOF
1992 This file contains any messages produced by compilers while
1993 running configure, to aid debugging if configure makes a mistake.
1994
1995 It was created by rlinetd $as_me 0.9.3, which was
1996 generated by GNU Autoconf 2.69. Invocation command line was
1997
1998 $ $0 $@
1999
2000 _ACEOF
2001 exec 5>>config.log
2002 {
2003 cat <<_ASUNAME
2004 ## --------- ##
2005 ## Platform. ##
2006 ## --------- ##
2007
2008 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2009 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2010 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2011 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2012 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2013
2014 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2015 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2016
2017 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2018 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2019 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2020 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2021 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2022 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2023 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2024
2025 _ASUNAME
2026
2027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2028 for as_dir in $PATH
2029 do
2030 IFS=$as_save_IFS
2031 test -z "$as_dir" && as_dir=.
2032 $as_echo "PATH: $as_dir"
2033 done
2034 IFS=$as_save_IFS
2035
2036 } >&5
2037
2038 cat >&5 <<_ACEOF
2039
2040
2041 ## ----------- ##
2042 ## Core tests. ##
2043 ## ----------- ##
2044
2045 _ACEOF
2046
2047
2048 # Keep a trace of the command line.
2049 # Strip out --no-create and --no-recursion so they do not pile up.
2050 # Strip out --silent because we don't want to record it for future runs.
2051 # Also quote any args containing shell meta-characters.
2052 # Make two passes to allow for proper duplicate-argument suppression.
2053 ac_configure_args=
2054 ac_configure_args0=
2055 ac_configure_args1=
2056 ac_must_keep_next=false
2057 for ac_pass in 1 2
2058 do
2059 for ac_arg
2060 do
2061 case $ac_arg in
2062 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2063 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2064 | -silent | --silent | --silen | --sile | --sil)
2065 continue ;;
2066 *\'*)
2067 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2068 esac
2069 case $ac_pass in
2070 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2071 2)
2072 as_fn_append ac_configure_args1 " '$ac_arg'"
2073 if test $ac_must_keep_next = true; then
2074 ac_must_keep_next=false # Got value, back to normal.
2075 else
2076 case $ac_arg in
2077 *=* | --config-cache | -C | -disable-* | --disable-* \
2078 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2079 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2080 | -with-* | --with-* | -without-* | --without-* | --x)
2081 case "$ac_configure_args0 " in
2082 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2083 esac
2084 ;;
2085 -* ) ac_must_keep_next=true ;;
2086 esac
2087 fi
2088 as_fn_append ac_configure_args " '$ac_arg'"
2089 ;;
2090 esac
2091 done
2092 done
2093 { ac_configure_args0=; unset ac_configure_args0;}
2094 { ac_configure_args1=; unset ac_configure_args1;}
2095
2096 # When interrupted or exit'd, cleanup temporary files, and complete
2097 # config.log. We remove comments because anyway the quotes in there
2098 # would cause problems or look ugly.
2099 # WARNING: Use '\'' to represent an apostrophe within the trap.
2100 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2101 trap 'exit_status=$?
2102 # Save into config.log some information that might help in debugging.
2103 {
2104 echo
2105
2106 $as_echo "## ---------------- ##
2107 ## Cache variables. ##
2108 ## ---------------- ##"
2109 echo
2110 # The following way of writing the cache mishandles newlines in values,
2111 (
2112 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2113 eval ac_val=\$$ac_var
2114 case $ac_val in #(
2115 *${as_nl}*)
2116 case $ac_var in #(
2117 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2118 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2119 esac
2120 case $ac_var in #(
2121 _ | IFS | as_nl) ;; #(
2122 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2123 *) { eval $ac_var=; unset $ac_var;} ;;
2124 esac ;;
2125 esac
2126 done
2127 (set) 2>&1 |
2128 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2129 *${as_nl}ac_space=\ *)
2130 sed -n \
2131 "s/'\''/'\''\\\\'\'''\''/g;
2132 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2133 ;; #(
2134 *)
2135 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2136 ;;
2137 esac |
2138 sort
2139 )
2140 echo
2141
2142 $as_echo "## ----------------- ##
2143 ## Output variables. ##
2144 ## ----------------- ##"
2145 echo
2146 for ac_var in $ac_subst_vars
2147 do
2148 eval ac_val=\$$ac_var
2149 case $ac_val in
2150 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2151 esac
2152 $as_echo "$ac_var='\''$ac_val'\''"
2153 done | sort
2154 echo
2155
2156 if test -n "$ac_subst_files"; then
2157 $as_echo "## ------------------- ##
2158 ## File substitutions. ##
2159 ## ------------------- ##"
2160 echo
2161 for ac_var in $ac_subst_files
2162 do
2163 eval ac_val=\$$ac_var
2164 case $ac_val in
2165 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2166 esac
2167 $as_echo "$ac_var='\''$ac_val'\''"
2168 done | sort
2169 echo
2170 fi
2171
2172 if test -s confdefs.h; then
2173 $as_echo "## ----------- ##
2174 ## confdefs.h. ##
2175 ## ----------- ##"
2176 echo
2177 cat confdefs.h
2178 echo
2179 fi
2180 test "$ac_signal" != 0 &&
2181 $as_echo "$as_me: caught signal $ac_signal"
2182 $as_echo "$as_me: exit $exit_status"
2183 } >&5
2184 rm -f core *.core core.conftest.* &&
2185 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2186 exit $exit_status
2187 ' 0
2188 for ac_signal in 1 2 13 15; do
2189 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2190 done
2191 ac_signal=0
2192
2193 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2194 rm -f -r conftest* confdefs.h
2195
2196 $as_echo "/* confdefs.h */" > confdefs.h
2197
2198 # Predefined preprocessor variables.
2199
2200 cat >>confdefs.h <<_ACEOF
2201 #define PACKAGE_NAME "$PACKAGE_NAME"
2202 _ACEOF
2203
2204 cat >>confdefs.h <<_ACEOF
2205 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2206 _ACEOF
2207
2208 cat >>confdefs.h <<_ACEOF
2209 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2210 _ACEOF
2211
2212 cat >>confdefs.h <<_ACEOF
2213 #define PACKAGE_STRING "$PACKAGE_STRING"
2214 _ACEOF
2215
2216 cat >>confdefs.h <<_ACEOF
2217 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2218 _ACEOF
2219
2220 cat >>confdefs.h <<_ACEOF
2221 #define PACKAGE_URL "$PACKAGE_URL"
2222 _ACEOF
2223
2224
2225 # Let the site file select an alternate cache file if it wants to.
2226 # Prefer an explicitly selected file to automatically selected ones.
2227 ac_site_file1=NONE
2228 ac_site_file2=NONE
2229 if test -n "$CONFIG_SITE"; then
2230 # We do not want a PATH search for config.site.
2231 case $CONFIG_SITE in #((
2232 -*) ac_site_file1=./$CONFIG_SITE;;
2233 */*) ac_site_file1=$CONFIG_SITE;;
2234 *) ac_site_file1=./$CONFIG_SITE;;
2235 esac
2236 elif test "x$prefix" != xNONE; then
2237 ac_site_file1=$prefix/share/config.site
2238 ac_site_file2=$prefix/etc/config.site
2239 else
2240 ac_site_file1=$ac_default_prefix/share/config.site
2241 ac_site_file2=$ac_default_prefix/etc/config.site
2242 fi
2243 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2244 do
2245 test "x$ac_site_file" = xNONE && continue
2246 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2247 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2248 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2249 sed 's/^/| /' "$ac_site_file" >&5
2250 . "$ac_site_file" \
2251 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2252 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2253 as_fn_error $? "failed to load site script $ac_site_file
2254 See \`config.log' for more details" "$LINENO" 5; }
2255 fi
2256 done
2257
2258 if test -r "$cache_file"; then
2259 # Some versions of bash will fail to source /dev/null (special files
2260 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2261 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2262 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2263 $as_echo "$as_me: loading cache $cache_file" >&6;}
2264 case $cache_file in
2265 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2266 *) . "./$cache_file";;
2267 esac
2268 fi
2269 else
2270 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2271 $as_echo "$as_me: creating cache $cache_file" >&6;}
2272 >$cache_file
2273 fi
2274
2275 gt_needs="$gt_needs "
2276 # Check that the precious variables saved in the cache have kept the same
2277 # value.
2278 ac_cache_corrupted=false
2279 for ac_var in $ac_precious_vars; do
2280 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2281 eval ac_new_set=\$ac_env_${ac_var}_set
2282 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2283 eval ac_new_val=\$ac_env_${ac_var}_value
2284 case $ac_old_set,$ac_new_set in
2285 set,)
2286 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2287 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2288 ac_cache_corrupted=: ;;
2289 ,set)
2290 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2291 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2292 ac_cache_corrupted=: ;;
2293 ,);;
2294 *)
2295 if test "x$ac_old_val" != "x$ac_new_val"; then
2296 # differences in whitespace do not lead to failure.
2297 ac_old_val_w=`echo x $ac_old_val`
2298 ac_new_val_w=`echo x $ac_new_val`
2299 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2300 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2301 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2302 ac_cache_corrupted=:
2303 else
2304 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2305 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2306 eval $ac_var=\$ac_old_val
2307 fi
2308 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2309 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2310 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2311 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2312 fi;;
2313 esac
2314 # Pass precious variables to config.status.
2315 if test "$ac_new_set" = set; then
2316 case $ac_new_val in
2317 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2318 *) ac_arg=$ac_var=$ac_new_val ;;
2319 esac
2320 case " $ac_configure_args " in
2321 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2322 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2323 esac
2324 fi
2325 done
2326 if $ac_cache_corrupted; then
2327 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2328 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2329 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2330 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2331 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2332 fi
2333 ## -------------------- ##
2334 ## Main body of script. ##
2335 ## -------------------- ##
2336
2337 ac_ext=c
2338 ac_cpp='$CPP $CPPFLAGS'
2339 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2340 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2341 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2342
2343
2344
2345
2346 ac_aux_dir=
2347 for ac_dir in auxiliary "$srcdir"/auxiliary; do
2348 if test -f "$ac_dir/install-sh"; then
2349 ac_aux_dir=$ac_dir
2350 ac_install_sh="$ac_aux_dir/install-sh -c"
2351 break
2352 elif test -f "$ac_dir/install.sh"; then
2353 ac_aux_dir=$ac_dir
2354 ac_install_sh="$ac_aux_dir/install.sh -c"
2355 break
2356 elif test -f "$ac_dir/shtool"; then
2357 ac_aux_dir=$ac_dir
2358 ac_install_sh="$ac_aux_dir/shtool install -c"
2359 break
2360 fi
2361 done
2362 if test -z "$ac_aux_dir"; then
2363 as_fn_error $? "cannot find install-sh, install.sh, or shtool in auxiliary \"$srcdir\"/auxiliary" "$LINENO" 5
2364 fi
2365
2366 # These three variables are undocumented and unsupported,
2367 # and are intended to be withdrawn in a future Autoconf release.
2368 # They can cause serious problems if a builder's source tree is in a directory
2369 # whose full name contains unusual characters.
2370 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2371 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2372 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2373
2374
2375 ac_config_headers="$ac_config_headers src/config.h"
2376
2377 # Check whether --enable-static was given.
2378 if test "${enable_static+set}" = set; then :
2379 enableval=$enable_static; p=${PACKAGE-default}
2380 case $enableval in
2381 yes) enable_static=yes ;;
2382 no) enable_static=no ;;
2383 *)
2384 enable_static=no
2385 # Look at the argument we got. We use all the common list separators.
2386 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
2387 for pkg in $enableval; do
2388 IFS=$lt_save_ifs
2389 if test "X$pkg" = "X$p"; then
2390 enable_static=yes
2391 fi
2392 done
2393 IFS=$lt_save_ifs
2394 ;;
2395 esac
2396 else
2397 enable_static=no
2398 fi
2399
2400
2401
2402
2403
2404
2405
2406
2407
2408 am__api_version='1.16'
2409
2410 # Find a good install program. We prefer a C program (faster),
2411 # so one script is as good as another. But avoid the broken or
2412 # incompatible versions:
2413 # SysV /etc/install, /usr/sbin/install
2414 # SunOS /usr/etc/install
2415 # IRIX /sbin/install
2416 # AIX /bin/install
2417 # AmigaOS /C/install, which installs bootblocks on floppy discs
2418 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2419 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2420 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2421 # OS/2's system install, which has a completely different semantic
2422 # ./install, which can be erroneously created by make from ./install.sh.
2423 # Reject install programs that cannot install multiple files.
2424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2425 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2426 if test -z "$INSTALL"; then
2427 if ${ac_cv_path_install+:} false; then :
2428 $as_echo_n "(cached) " >&6
2429 else
2430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2431 for as_dir in $PATH
2432 do
2433 IFS=$as_save_IFS
2434 test -z "$as_dir" && as_dir=.
2435 # Account for people who put trailing slashes in PATH elements.
2436 case $as_dir/ in #((
2437 ./ | .// | /[cC]/* | \
2438 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2439 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2440 /usr/ucb/* ) ;;
2441 *)
2442 # OSF1 and SCO ODT 3.0 have their own names for install.
2443 # Don't use installbsd from OSF since it installs stuff as root
2444 # by default.
2445 for ac_prog in ginstall scoinst install; do
2446 for ac_exec_ext in '' $ac_executable_extensions; do
2447 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2448 if test $ac_prog = install &&
2449 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2450 # AIX install. It has an incompatible calling convention.
2451 :
2452 elif test $ac_prog = install &&
2453 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2454 # program-specific install script used by HP pwplus--don't use.
2455 :
2456 else
2457 rm -rf conftest.one conftest.two conftest.dir
2458 echo one > conftest.one
2459 echo two > conftest.two
2460 mkdir conftest.dir
2461 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2462 test -s conftest.one && test -s conftest.two &&
2463 test -s conftest.dir/conftest.one &&
2464 test -s conftest.dir/conftest.two
2465 then
2466 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2467 break 3
2468 fi
2469 fi
2470 fi
2471 done
2472 done
2473 ;;
2474 esac
2475
2476 done
2477 IFS=$as_save_IFS
2478
2479 rm -rf conftest.one conftest.two conftest.dir
2480
2481 fi
2482 if test "${ac_cv_path_install+set}" = set; then
2483 INSTALL=$ac_cv_path_install
2484 else
2485 # As a last resort, use the slow shell script. Don't cache a
2486 # value for INSTALL within a source directory, because that will
2487 # break other packages using the cache if that directory is
2488 # removed, or if the value is a relative name.
2489 INSTALL=$ac_install_sh
2490 fi
2491 fi
2492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2493 $as_echo "$INSTALL" >&6; }
2494
2495 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2496 # It thinks the first close brace ends the variable substitution.
2497 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2498
2499 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2500
2501 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2502
2503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2504 $as_echo_n "checking whether build environment is sane... " >&6; }
2505 # Reject unsafe characters in $srcdir or the absolute working directory
2506 # name. Accept space and tab only in the latter.
2507 am_lf='
2508 '
2509 case `pwd` in
2510 *[\\\"\#\$\&\'\`$am_lf]*)
2511 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2512 esac
2513 case $srcdir in
2514 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2515 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2516 esac
2517
2518 # Do 'set' in a subshell so we don't clobber the current shell's
2519 # arguments. Must try -L first in case configure is actually a
2520 # symlink; some systems play weird games with the mod time of symlinks
2521 # (eg FreeBSD returns the mod time of the symlink's containing
2522 # directory).
2523 if (
2524 am_has_slept=no
2525 for am_try in 1 2; do
2526 echo "timestamp, slept: $am_has_slept" > conftest.file
2527 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2528 if test "$*" = "X"; then
2529 # -L didn't work.
2530 set X `ls -t "$srcdir/configure" conftest.file`
2531 fi
2532 if test "$*" != "X $srcdir/configure conftest.file" \
2533 && test "$*" != "X conftest.file $srcdir/configure"; then
2534
2535 # If neither matched, then we have a broken ls. This can happen
2536 # if, for instance, CONFIG_SHELL is bash and it inherits a
2537 # broken ls alias from the environment. This has actually
2538 # happened. Such a system could not be considered "sane".
2539 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2540 alias in your environment" "$LINENO" 5
2541 fi
2542 if test "$2" = conftest.file || test $am_try -eq 2; then
2543 break
2544 fi
2545 # Just in case.
2546 sleep 1
2547 am_has_slept=yes
2548 done
2549 test "$2" = conftest.file
2550 )
2551 then
2552 # Ok.
2553 :
2554 else
2555 as_fn_error $? "newly created file is older than distributed files!
2556 Check your system clock" "$LINENO" 5
2557 fi
2558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2559 $as_echo "yes" >&6; }
2560 # If we didn't sleep, we still need to ensure time stamps of config.status and
2561 # generated files are strictly newer.
2562 am_sleep_pid=
2563 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2564 ( sleep 1 ) &
2565 am_sleep_pid=$!
2566 fi
2567
2568 rm -f conftest.file
2569
2570 test "$program_prefix" != NONE &&
2571 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2572 # Use a double $ so make ignores it.
2573 test "$program_suffix" != NONE &&
2574 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2575 # Double any \ or $.
2576 # By default was `s,x,x', remove it if useless.
2577 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2578 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2579
2580 # Expand $ac_aux_dir to an absolute path.
2581 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2582
2583 if test x"${MISSING+set}" != xset; then
2584 MISSING="\${SHELL} '$am_aux_dir/missing'"
2585 fi
2586 # Use eval to expand $SHELL
2587 if eval "$MISSING --is-lightweight"; then
2588 am_missing_run="$MISSING "
2589 else
2590 am_missing_run=
2591 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2592 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2593 fi
2594
2595 if test x"${install_sh+set}" != xset; then
2596 case $am_aux_dir in
2597 *\ * | *\ *)
2598 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2599 *)
2600 install_sh="\${SHELL} $am_aux_dir/install-sh"
2601 esac
2602 fi
2603
2604 # Installed binaries are usually stripped using 'strip' when the user
2605 # run "make install-strip". However 'strip' might not be the right
2606 # tool to use in cross-compilation environments, therefore Automake
2607 # will honor the 'STRIP' environment variable to overrule this program.
2608 if test "$cross_compiling" != no; then
2609 if test -n "$ac_tool_prefix"; then
2610 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2611 set dummy ${ac_tool_prefix}strip; ac_word=$2
2612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2613 $as_echo_n "checking for $ac_word... " >&6; }
2614 if ${ac_cv_prog_STRIP+:} false; then :
2615 $as_echo_n "(cached) " >&6
2616 else
2617 if test -n "$STRIP"; then
2618 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2619 else
2620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2621 for as_dir in $PATH
2622 do
2623 IFS=$as_save_IFS
2624 test -z "$as_dir" && as_dir=.
2625 for ac_exec_ext in '' $ac_executable_extensions; do
2626 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2627 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2628 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2629 break 2
2630 fi
2631 done
2632 done
2633 IFS=$as_save_IFS
2634
2635 fi
2636 fi
2637 STRIP=$ac_cv_prog_STRIP
2638 if test -n "$STRIP"; then
2639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2640 $as_echo "$STRIP" >&6; }
2641 else
2642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2643 $as_echo "no" >&6; }
2644 fi
2645
2646
2647 fi
2648 if test -z "$ac_cv_prog_STRIP"; then
2649 ac_ct_STRIP=$STRIP
2650 # Extract the first word of "strip", so it can be a program name with args.
2651 set dummy strip; ac_word=$2
2652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2653 $as_echo_n "checking for $ac_word... " >&6; }
2654 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2655 $as_echo_n "(cached) " >&6
2656 else
2657 if test -n "$ac_ct_STRIP"; then
2658 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2659 else
2660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2661 for as_dir in $PATH
2662 do
2663 IFS=$as_save_IFS
2664 test -z "$as_dir" && as_dir=.
2665 for ac_exec_ext in '' $ac_executable_extensions; do
2666 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2667 ac_cv_prog_ac_ct_STRIP="strip"
2668 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2669 break 2
2670 fi
2671 done
2672 done
2673 IFS=$as_save_IFS
2674
2675 fi
2676 fi
2677 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2678 if test -n "$ac_ct_STRIP"; then
2679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2680 $as_echo "$ac_ct_STRIP" >&6; }
2681 else
2682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2683 $as_echo "no" >&6; }
2684 fi
2685
2686 if test "x$ac_ct_STRIP" = x; then
2687 STRIP=":"
2688 else
2689 case $cross_compiling:$ac_tool_warned in
2690 yes:)
2691 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2692 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2693 ac_tool_warned=yes ;;
2694 esac
2695 STRIP=$ac_ct_STRIP
2696 fi
2697 else
2698 STRIP="$ac_cv_prog_STRIP"
2699 fi
2700
2701 fi
2702 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2703
2704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2705 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2706 if test -z "$MKDIR_P"; then
2707 if ${ac_cv_path_mkdir+:} false; then :
2708 $as_echo_n "(cached) " >&6
2709 else
2710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2711 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2712 do
2713 IFS=$as_save_IFS
2714 test -z "$as_dir" && as_dir=.
2715 for ac_prog in mkdir gmkdir; do
2716 for ac_exec_ext in '' $ac_executable_extensions; do
2717 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2718 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2719 'mkdir (GNU coreutils) '* | \
2720 'mkdir (coreutils) '* | \
2721 'mkdir (fileutils) '4.1*)
2722 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2723 break 3;;
2724 esac
2725 done
2726 done
2727 done
2728 IFS=$as_save_IFS
2729
2730 fi
2731
2732 test -d ./--version && rmdir ./--version
2733 if test "${ac_cv_path_mkdir+set}" = set; then
2734 MKDIR_P="$ac_cv_path_mkdir -p"
2735 else
2736 # As a last resort, use the slow shell script. Don't cache a
2737 # value for MKDIR_P within a source directory, because that will
2738 # break other packages using the cache if that directory is
2739 # removed, or if the value is a relative name.
2740 MKDIR_P="$ac_install_sh -d"
2741 fi
2742 fi
2743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2744 $as_echo "$MKDIR_P" >&6; }
2745
2746 for ac_prog in gawk mawk nawk awk
2747 do
2748 # Extract the first word of "$ac_prog", so it can be a program name with args.
2749 set dummy $ac_prog; ac_word=$2
2750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2751 $as_echo_n "checking for $ac_word... " >&6; }
2752 if ${ac_cv_prog_AWK+:} false; then :
2753 $as_echo_n "(cached) " >&6
2754 else
2755 if test -n "$AWK"; then
2756 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2757 else
2758 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2759 for as_dir in $PATH
2760 do
2761 IFS=$as_save_IFS
2762 test -z "$as_dir" && as_dir=.
2763 for ac_exec_ext in '' $ac_executable_extensions; do
2764 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2765 ac_cv_prog_AWK="$ac_prog"
2766 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2767 break 2
2768 fi
2769 done
2770 done
2771 IFS=$as_save_IFS
2772
2773 fi
2774 fi
2775 AWK=$ac_cv_prog_AWK
2776 if test -n "$AWK"; then
2777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2778 $as_echo "$AWK" >&6; }
2779 else
2780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2781 $as_echo "no" >&6; }
2782 fi
2783
2784
2785 test -n "$AWK" && break
2786 done
2787
2788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2789 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2790 set x ${MAKE-make}
2791 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2792 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2793 $as_echo_n "(cached) " >&6
2794 else
2795 cat >conftest.make <<\_ACEOF
2796 SHELL = /bin/sh
2797 all:
2798 @echo '@@@%%%=$(MAKE)=@@@%%%'
2799 _ACEOF
2800 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2801 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2802 *@@@%%%=?*=@@@%%%*)
2803 eval ac_cv_prog_make_${ac_make}_set=yes;;
2804 *)
2805 eval ac_cv_prog_make_${ac_make}_set=no;;
2806 esac
2807 rm -f conftest.make
2808 fi
2809 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2811 $as_echo "yes" >&6; }
2812 SET_MAKE=
2813 else
2814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2815 $as_echo "no" >&6; }
2816 SET_MAKE="MAKE=${MAKE-make}"
2817 fi
2818
2819 rm -rf .tst 2>/dev/null
2820 mkdir .tst 2>/dev/null
2821 if test -d .tst; then
2822 am__leading_dot=.
2823 else
2824 am__leading_dot=_
2825 fi
2826 rmdir .tst 2>/dev/null
2827
2828 # Check whether --enable-silent-rules was given.
2829 if test "${enable_silent_rules+set}" = set; then :
2830 enableval=$enable_silent_rules;
2831 fi
2832
2833 case $enable_silent_rules in # (((
2834 yes) AM_DEFAULT_VERBOSITY=0;;
2835 no) AM_DEFAULT_VERBOSITY=1;;
2836 *) AM_DEFAULT_VERBOSITY=1;;
2837 esac
2838 am_make=${MAKE-make}
2839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2840 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2841 if ${am_cv_make_support_nested_variables+:} false; then :
2842 $as_echo_n "(cached) " >&6
2843 else
2844 if $as_echo 'TRUE=$(BAR$(V))
2845 BAR0=false
2846 BAR1=true
2847 V=1
2848 am__doit:
2849 @$(TRUE)
2850 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2851 am_cv_make_support_nested_variables=yes
2852 else
2853 am_cv_make_support_nested_variables=no
2854 fi
2855 fi
2856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2857 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2858 if test $am_cv_make_support_nested_variables = yes; then
2859 AM_V='$(V)'
2860 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2861 else
2862 AM_V=$AM_DEFAULT_VERBOSITY
2863 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2864 fi
2865 AM_BACKSLASH='\'
2866
2867 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2868 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2869 # is not polluted with repeated "-I."
2870 am__isrc=' -I$(srcdir)'
2871 # test to see if srcdir already configured
2872 if test -f $srcdir/config.status; then
2873 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2874 fi
2875 fi
2876
2877 # test whether we have cygpath
2878 if test -z "$CYGPATH_W"; then
2879 if (cygpath --version) >/dev/null 2>/dev/null; then
2880 CYGPATH_W='cygpath -w'
2881 else
2882 CYGPATH_W=echo
2883 fi
2884 fi
2885
2886
2887 # Define the identity of the package.
2888 PACKAGE='rlinetd'
2889 VERSION='0.9.3'
2890
2891
2892 cat >>confdefs.h <<_ACEOF
2893 #define PACKAGE "$PACKAGE"
2894 _ACEOF
2895
2896
2897 cat >>confdefs.h <<_ACEOF
2898 #define VERSION "$VERSION"
2899 _ACEOF
2900
2901 # Some tools Automake needs.
2902
2903 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2904
2905
2906 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2907
2908
2909 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2910
2911
2912 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2913
2914
2915 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2916
2917 # For better backward compatibility. To be removed once Automake 1.9.x
2918 # dies out for good. For more background, see:
2919 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2920 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2921 mkdir_p='$(MKDIR_P)'
2922
2923 # We need awk for the "check" target (and possibly the TAP driver). The
2924 # system "awk" is bad on some platforms.
2925 # Always define AMTAR for backward compatibility. Yes, it's still used
2926 # in the wild :-( We should find a proper way to deprecate it ...
2927 AMTAR='$${TAR-tar}'
2928
2929
2930 # We'll loop over all known methods to create a tar archive until one works.
2931 _am_tools='gnutar pax cpio none'
2932
2933 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2934
2935
2936
2937
2938
2939
2940 # POSIX will say in a future version that running "rm -f" with no argument
2941 # is OK; and we want to be able to make that assumption in our Makefile
2942 # recipes. So use an aggressive probe to check that the usage we want is
2943 # actually supported "in the wild" to an acceptable degree.
2944 # See automake bug#10828.
2945 # To make any issue more visible, cause the running configure to be aborted
2946 # by default if the 'rm' program in use doesn't match our expectations; the
2947 # user can still override this though.
2948 if rm -f && rm -fr && rm -rf; then : OK; else
2949 cat >&2 <<'END'
2950 Oops!
2951
2952 Your 'rm' program seems unable to run without file operands specified
2953 on the command line, even when the '-f' option is present. This is contrary
2954 to the behaviour of most rm programs out there, and not conforming with
2955 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2956
2957 Please tell [email protected] about your system, including the value
2958 of your $PATH and any error possibly output before this message. This
2959 can help us improve future automake versions.
2960
2961 END
2962 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2963 echo 'Configuration will proceed anyway, since you have set the' >&2
2964 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2965 echo >&2
2966 else
2967 cat >&2 <<'END'
2968 Aborting the configuration process, to ensure you take notice of the issue.
2969
2970 You can download and install GNU coreutils to get an 'rm' implementation
2971 that behaves properly: <https://www.gnu.org/software/coreutils/>.
2972
2973 If you want to complete the configuration process using your problematic
2974 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2975 to "yes", and re-run configure.
2976
2977 END
2978 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2979 fi
2980 fi
2981
2982 # Check whether --enable-silent-rules was given.
2983 if test "${enable_silent_rules+set}" = set; then :
2984 enableval=$enable_silent_rules;
2985 fi
2986
2987 case $enable_silent_rules in # (((
2988 yes) AM_DEFAULT_VERBOSITY=0;;
2989 no) AM_DEFAULT_VERBOSITY=1;;
2990 *) AM_DEFAULT_VERBOSITY=0;;
2991 esac
2992 am_make=${MAKE-make}
2993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2994 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2995 if ${am_cv_make_support_nested_variables+:} false; then :
2996 $as_echo_n "(cached) " >&6
2997 else
2998 if $as_echo 'TRUE=$(BAR$(V))
2999 BAR0=false
3000 BAR1=true
3001 V=1
3002 am__doit:
3003 @$(TRUE)
3004 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3005 am_cv_make_support_nested_variables=yes
3006 else
3007 am_cv_make_support_nested_variables=no
3008 fi
3009 fi
3010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3011 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3012 if test $am_cv_make_support_nested_variables = yes; then
3013 AM_V='$(V)'
3014 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3015 else
3016 AM_V=$AM_DEFAULT_VERBOSITY
3017 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3018 fi
3019 AM_BACKSLASH='\'
3020
3021
3022
3023
3024 mkdir_p="$MKDIR_P"
3025 case $mkdir_p in
3026 [\\/$]* | ?:[\\/]*) ;;
3027 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3028 esac
3029
3030
3031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
3032 $as_echo_n "checking whether NLS is requested... " >&6; }
3033 # Check whether --enable-nls was given.
3034 if test "${enable_nls+set}" = set; then :
3035 enableval=$enable_nls; USE_NLS=$enableval
3036 else
3037 USE_NLS=yes
3038 fi
3039
3040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
3041 $as_echo "$USE_NLS" >&6; }
3042
3043
3044
3045
3046
3047
3048 # Prepare PATH_SEPARATOR.
3049 # The user is always right.
3050 if test "${PATH_SEPARATOR+set}" != set; then
3051 echo "#! /bin/sh" >conf$$.sh
3052 echo "exit 0" >>conf$$.sh
3053 chmod +x conf$$.sh
3054 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
3055 PATH_SEPARATOR=';'
3056 else
3057 PATH_SEPARATOR=:
3058 fi
3059 rm -f conf$$.sh
3060 fi
3061
3062 # Find out how to test for executable files. Don't use a zero-byte file,
3063 # as systems may use methods other than mode bits to determine executability.
3064 cat >conf$$.file <<_ASEOF
3065 #! /bin/sh
3066 exit 0
3067 _ASEOF
3068 chmod +x conf$$.file
3069 if test -x conf$$.file >/dev/null 2>&1; then
3070 ac_executable_p="test -x"
3071 else
3072 ac_executable_p="test -f"
3073 fi
3074 rm -f conf$$.file
3075
3076 # Extract the first word of "msgfmt", so it can be a program name with args.
3077 set dummy msgfmt; ac_word=$2
3078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3079 $as_echo_n "checking for $ac_word... " >&6; }
3080 if ${ac_cv_path_MSGFMT+:} false; then :
3081 $as_echo_n "(cached) " >&6
3082 else
3083 case "$MSGFMT" in
3084 [\\/]* | ?:[\\/]*)
3085 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
3086 ;;
3087 *)
3088 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
3089 for ac_dir in $PATH; do
3090 IFS="$ac_save_IFS"
3091 test -z "$ac_dir" && ac_dir=.
3092 for ac_exec_ext in '' $ac_executable_extensions; do
3093 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
3094 echo "$as_me: trying $ac_dir/$ac_word..." >&5
3095 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
3096 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
3097 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
3098 break 2
3099 fi
3100 fi
3101 done
3102 done
3103 IFS="$ac_save_IFS"
3104 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
3105 ;;
3106 esac
3107 fi
3108 MSGFMT="$ac_cv_path_MSGFMT"
3109 if test "$MSGFMT" != ":"; then
3110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
3111 $as_echo "$MSGFMT" >&6; }
3112 else
3113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3114 $as_echo "no" >&6; }
3115 fi
3116
3117 # Extract the first word of "gmsgfmt", so it can be a program name with args.
3118 set dummy gmsgfmt; ac_word=$2
3119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3120 $as_echo_n "checking for $ac_word... " >&6; }
3121 if ${ac_cv_path_GMSGFMT+:} false; then :
3122 $as_echo_n "(cached) " >&6
3123 else
3124 case $GMSGFMT in
3125 [\\/]* | ?:[\\/]*)
3126 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
3127 ;;
3128 *)
3129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3130 for as_dir in $PATH
3131 do
3132 IFS=$as_save_IFS
3133 test -z "$as_dir" && as_dir=.
3134 for ac_exec_ext in '' $ac_executable_extensions; do
3135 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3136 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
3137 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3138 break 2
3139 fi
3140 done
3141 done
3142 IFS=$as_save_IFS
3143
3144 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
3145 ;;
3146 esac
3147 fi
3148 GMSGFMT=$ac_cv_path_GMSGFMT
3149 if test -n "$GMSGFMT"; then
3150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
3151 $as_echo "$GMSGFMT" >&6; }
3152 else
3153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3154 $as_echo "no" >&6; }
3155 fi
3156
3157
3158
3159 case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
3160 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
3161 *) MSGFMT_015=$MSGFMT ;;
3162 esac
3163
3164 case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
3165 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
3166 *) GMSGFMT_015=$GMSGFMT ;;
3167 esac
3168
3169
3170
3171 # Prepare PATH_SEPARATOR.
3172 # The user is always right.
3173 if test "${PATH_SEPARATOR+set}" != set; then
3174 echo "#! /bin/sh" >conf$$.sh
3175 echo "exit 0" >>conf$$.sh
3176 chmod +x conf$$.sh
3177 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
3178 PATH_SEPARATOR=';'
3179 else
3180 PATH_SEPARATOR=:
3181 fi
3182 rm -f conf$$.sh
3183 fi
3184
3185 # Find out how to test for executable files. Don't use a zero-byte file,
3186 # as systems may use methods other than mode bits to determine executability.
3187 cat >conf$$.file <<_ASEOF
3188 #! /bin/sh
3189 exit 0
3190 _ASEOF
3191 chmod +x conf$$.file
3192 if test -x conf$$.file >/dev/null 2>&1; then
3193 ac_executable_p="test -x"
3194 else
3195 ac_executable_p="test -f"
3196 fi
3197 rm -f conf$$.file
3198
3199 # Extract the first word of "xgettext", so it can be a program name with args.
3200 set dummy xgettext; ac_word=$2
3201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3202 $as_echo_n "checking for $ac_word... " >&6; }
3203 if ${ac_cv_path_XGETTEXT+:} false; then :
3204 $as_echo_n "(cached) " >&6
3205 else
3206 case "$XGETTEXT" in
3207 [\\/]* | ?:[\\/]*)
3208 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
3209 ;;
3210 *)
3211 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
3212 for ac_dir in $PATH; do
3213 IFS="$ac_save_IFS"
3214 test -z "$ac_dir" && ac_dir=.
3215 for ac_exec_ext in '' $ac_executable_extensions; do
3216 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
3217 echo "$as_me: trying $ac_dir/$ac_word..." >&5
3218 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
3219 (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
3220 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
3221 break 2
3222 fi
3223 fi
3224 done
3225 done
3226 IFS="$ac_save_IFS"
3227 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
3228 ;;
3229 esac
3230 fi
3231 XGETTEXT="$ac_cv_path_XGETTEXT"
3232 if test "$XGETTEXT" != ":"; then
3233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
3234 $as_echo "$XGETTEXT" >&6; }
3235 else
3236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3237 $as_echo "no" >&6; }
3238 fi
3239
3240 rm -f messages.po
3241
3242 case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
3243 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
3244 *) XGETTEXT_015=$XGETTEXT ;;
3245 esac
3246
3247
3248
3249 # Prepare PATH_SEPARATOR.
3250 # The user is always right.
3251 if test "${PATH_SEPARATOR+set}" != set; then
3252 echo "#! /bin/sh" >conf$$.sh
3253 echo "exit 0" >>conf$$.sh
3254 chmod +x conf$$.sh
3255 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
3256 PATH_SEPARATOR=';'
3257 else
3258 PATH_SEPARATOR=:
3259 fi
3260 rm -f conf$$.sh
3261 fi
3262
3263 # Find out how to test for executable files. Don't use a zero-byte file,
3264 # as systems may use methods other than mode bits to determine executability.
3265 cat >conf$$.file <<_ASEOF
3266 #! /bin/sh
3267 exit 0
3268 _ASEOF
3269 chmod +x conf$$.file
3270 if test -x conf$$.file >/dev/null 2>&1; then
3271 ac_executable_p="test -x"
3272 else
3273 ac_executable_p="test -f"
3274 fi
3275 rm -f conf$$.file
3276
3277 # Extract the first word of "msgmerge", so it can be a program name with args.
3278 set dummy msgmerge; ac_word=$2
3279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3280 $as_echo_n "checking for $ac_word... " >&6; }
3281 if ${ac_cv_path_MSGMERGE+:} false; then :
3282 $as_echo_n "(cached) " >&6
3283 else
3284 case "$MSGMERGE" in
3285 [\\/]* | ?:[\\/]*)
3286 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
3287 ;;
3288 *)
3289 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
3290 for ac_dir in $PATH; do
3291 IFS="$ac_save_IFS"
3292 test -z "$ac_dir" && ac_dir=.
3293 for ac_exec_ext in '' $ac_executable_extensions; do
3294 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
3295 echo "$as_me: trying $ac_dir/$ac_word..." >&5
3296 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
3297 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
3298 break 2
3299 fi
3300 fi
3301 done
3302 done
3303 IFS="$ac_save_IFS"
3304 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
3305 ;;
3306 esac
3307 fi
3308 MSGMERGE="$ac_cv_path_MSGMERGE"
3309 if test "$MSGMERGE" != ":"; then
3310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
3311 $as_echo "$MSGMERGE" >&6; }
3312 else
3313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3314 $as_echo "no" >&6; }
3315 fi
3316
3317
3318 test -n "$localedir" || localedir='${datadir}/locale'
3319
3320
3321 ac_config_commands="$ac_config_commands po-directories"
3322
3323
3324
3325 if test "X$prefix" = "XNONE"; then
3326 acl_final_prefix="$ac_default_prefix"
3327 else
3328 acl_final_prefix="$prefix"
3329 fi
3330 if test "X$exec_prefix" = "XNONE"; then
3331 acl_final_exec_prefix='${prefix}'
3332 else
3333 acl_final_exec_prefix="$exec_prefix"
3334 fi
3335 acl_save_prefix="$prefix"
3336 prefix="$acl_final_prefix"
3337 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
3338 prefix="$acl_save_prefix"
3339
3340 DEPDIR="${am__leading_dot}deps"
3341
3342 ac_config_commands="$ac_config_commands depfiles"
3343
3344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3345 $as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; }
3346 cat > confinc.mk << 'END'
3347 am__doit:
3348 @echo this is the am__doit target >confinc.out
3349 .PHONY: am__doit
3350 END
3351 am__include="#"
3352 am__quote=
3353 # BSD make does it like this.
3354 echo '.include "confinc.mk" # ignored' > confmf.BSD
3355 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
3356 echo 'include confinc.mk # ignored' > confmf.GNU
3357 _am_result=no
3358 for s in GNU BSD; do
3359 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3360 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3361 ac_status=$?
3362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3363 (exit $ac_status); }
3364 case $?:`cat confinc.out 2>/dev/null` in #(
3365 '0:this is the am__doit target') :
3366 case $s in #(
3367 BSD) :
3368 am__include='.include' am__quote='"' ;; #(
3369 *) :
3370 am__include='include' am__quote='' ;;
3371 esac ;; #(
3372 *) :
3373 ;;
3374 esac
3375 if test "$am__include" != "#"; then
3376 _am_result="yes ($s style)"
3377 break
3378 fi
3379 done
3380 rm -f confinc.* confmf.*
3381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3382 $as_echo "${_am_result}" >&6; }
3383
3384 # Check whether --enable-dependency-tracking was given.
3385 if test "${enable_dependency_tracking+set}" = set; then :
3386 enableval=$enable_dependency_tracking;
3387 fi
3388
3389 if test "x$enable_dependency_tracking" != xno; then
3390 am_depcomp="$ac_aux_dir/depcomp"
3391 AMDEPBACKSLASH='\'
3392 am__nodep='_no'
3393 fi
3394 if test "x$enable_dependency_tracking" != xno; then
3395 AMDEP_TRUE=
3396 AMDEP_FALSE='#'
3397 else
3398 AMDEP_TRUE='#'
3399 AMDEP_FALSE=
3400 fi
3401
3402
3403 ac_ext=c
3404 ac_cpp='$CPP $CPPFLAGS'
3405 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3406 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3407 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3408 if test -n "$ac_tool_prefix"; then
3409 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3410 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3412 $as_echo_n "checking for $ac_word... " >&6; }
3413 if ${ac_cv_prog_CC+:} false; then :
3414 $as_echo_n "(cached) " >&6
3415 else
3416 if test -n "$CC"; then
3417 ac_cv_prog_CC="$CC" # Let the user override the test.
3418 else
3419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3420 for as_dir in $PATH
3421 do
3422 IFS=$as_save_IFS
3423 test -z "$as_dir" && as_dir=.
3424 for ac_exec_ext in '' $ac_executable_extensions; do
3425 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3426 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3427 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3428 break 2
3429 fi
3430 done
3431 done
3432 IFS=$as_save_IFS
3433
3434 fi
3435 fi
3436 CC=$ac_cv_prog_CC
3437 if test -n "$CC"; then
3438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3439 $as_echo "$CC" >&6; }
3440 else
3441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3442 $as_echo "no" >&6; }
3443 fi
3444
3445
3446 fi
3447 if test -z "$ac_cv_prog_CC"; then
3448 ac_ct_CC=$CC
3449 # Extract the first word of "gcc", so it can be a program name with args.
3450 set dummy gcc; ac_word=$2
3451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3452 $as_echo_n "checking for $ac_word... " >&6; }
3453 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3454 $as_echo_n "(cached) " >&6
3455 else
3456 if test -n "$ac_ct_CC"; then
3457 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3458 else
3459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3460 for as_dir in $PATH
3461 do
3462 IFS=$as_save_IFS
3463 test -z "$as_dir" && as_dir=.
3464 for ac_exec_ext in '' $ac_executable_extensions; do
3465 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3466 ac_cv_prog_ac_ct_CC="gcc"
3467 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3468 break 2
3469 fi
3470 done
3471 done
3472 IFS=$as_save_IFS
3473
3474 fi
3475 fi
3476 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3477 if test -n "$ac_ct_CC"; then
3478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3479 $as_echo "$ac_ct_CC" >&6; }
3480 else
3481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3482 $as_echo "no" >&6; }
3483 fi
3484
3485 if test "x$ac_ct_CC" = x; then
3486 CC=""
3487 else
3488 case $cross_compiling:$ac_tool_warned in
3489 yes:)
3490 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3491 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3492 ac_tool_warned=yes ;;
3493 esac
3494 CC=$ac_ct_CC
3495 fi
3496 else
3497 CC="$ac_cv_prog_CC"
3498 fi
3499
3500 if test -z "$CC"; then
3501 if test -n "$ac_tool_prefix"; then
3502 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3503 set dummy ${ac_tool_prefix}cc; ac_word=$2
3504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3505 $as_echo_n "checking for $ac_word... " >&6; }
3506 if ${ac_cv_prog_CC+:} false; then :
3507 $as_echo_n "(cached) " >&6
3508 else
3509 if test -n "$CC"; then
3510 ac_cv_prog_CC="$CC" # Let the user override the test.
3511 else
3512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3513 for as_dir in $PATH
3514 do
3515 IFS=$as_save_IFS
3516 test -z "$as_dir" && as_dir=.
3517 for ac_exec_ext in '' $ac_executable_extensions; do
3518 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3519 ac_cv_prog_CC="${ac_tool_prefix}cc"
3520 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3521 break 2
3522 fi
3523 done
3524 done
3525 IFS=$as_save_IFS
3526
3527 fi
3528 fi
3529 CC=$ac_cv_prog_CC
3530 if test -n "$CC"; then
3531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3532 $as_echo "$CC" >&6; }
3533 else
3534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3535 $as_echo "no" >&6; }
3536 fi
3537
3538
3539 fi
3540 fi
3541 if test -z "$CC"; then
3542 # Extract the first word of "cc", so it can be a program name with args.
3543 set dummy cc; ac_word=$2
3544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3545 $as_echo_n "checking for $ac_word... " >&6; }
3546 if ${ac_cv_prog_CC+:} false; then :
3547 $as_echo_n "(cached) " >&6
3548 else
3549 if test -n "$CC"; then
3550 ac_cv_prog_CC="$CC" # Let the user override the test.
3551 else
3552 ac_prog_rejected=no
3553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3554 for as_dir in $PATH
3555 do
3556 IFS=$as_save_IFS
3557 test -z "$as_dir" && as_dir=.
3558 for ac_exec_ext in '' $ac_executable_extensions; do
3559 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3560 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3561 ac_prog_rejected=yes
3562 continue
3563 fi
3564 ac_cv_prog_CC="cc"
3565 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3566 break 2
3567 fi
3568 done
3569 done
3570 IFS=$as_save_IFS
3571
3572 if test $ac_prog_rejected = yes; then
3573 # We found a bogon in the path, so make sure we never use it.
3574 set dummy $ac_cv_prog_CC
3575 shift
3576 if test $# != 0; then
3577 # We chose a different compiler from the bogus one.
3578 # However, it has the same basename, so the bogon will be chosen
3579 # first if we set CC to just the basename; use the full file name.
3580 shift
3581 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3582 fi
3583 fi
3584 fi
3585 fi
3586 CC=$ac_cv_prog_CC
3587 if test -n "$CC"; then
3588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3589 $as_echo "$CC" >&6; }
3590 else
3591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3592 $as_echo "no" >&6; }
3593 fi
3594
3595
3596 fi
3597 if test -z "$CC"; then
3598 if test -n "$ac_tool_prefix"; then
3599 for ac_prog in cl.exe
3600 do
3601 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3602 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3604 $as_echo_n "checking for $ac_word... " >&6; }
3605 if ${ac_cv_prog_CC+:} false; then :
3606 $as_echo_n "(cached) " >&6
3607 else
3608 if test -n "$CC"; then
3609 ac_cv_prog_CC="$CC" # Let the user override the test.
3610 else
3611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3612 for as_dir in $PATH
3613 do
3614 IFS=$as_save_IFS
3615 test -z "$as_dir" && as_dir=.
3616 for ac_exec_ext in '' $ac_executable_extensions; do
3617 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3618 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3619 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3620 break 2
3621 fi
3622 done
3623 done
3624 IFS=$as_save_IFS
3625
3626 fi
3627 fi
3628 CC=$ac_cv_prog_CC
3629 if test -n "$CC"; then
3630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3631 $as_echo "$CC" >&6; }
3632 else
3633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3634 $as_echo "no" >&6; }
3635 fi
3636
3637
3638 test -n "$CC" && break
3639 done
3640 fi
3641 if test -z "$CC"; then
3642 ac_ct_CC=$CC
3643 for ac_prog in cl.exe
3644 do
3645 # Extract the first word of "$ac_prog", so it can be a program name with args.
3646 set dummy $ac_prog; ac_word=$2
3647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3648 $as_echo_n "checking for $ac_word... " >&6; }
3649 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3650 $as_echo_n "(cached) " >&6
3651 else
3652 if test -n "$ac_ct_CC"; then
3653 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3654 else
3655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3656 for as_dir in $PATH
3657 do
3658 IFS=$as_save_IFS
3659 test -z "$as_dir" && as_dir=.
3660 for ac_exec_ext in '' $ac_executable_extensions; do
3661 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3662 ac_cv_prog_ac_ct_CC="$ac_prog"
3663 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3664 break 2
3665 fi
3666 done
3667 done
3668 IFS=$as_save_IFS
3669
3670 fi
3671 fi
3672 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3673 if test -n "$ac_ct_CC"; then
3674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3675 $as_echo "$ac_ct_CC" >&6; }
3676 else
3677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3678 $as_echo "no" >&6; }
3679 fi
3680
3681
3682 test -n "$ac_ct_CC" && break
3683 done
3684
3685 if test "x$ac_ct_CC" = x; then
3686 CC=""
3687 else
3688 case $cross_compiling:$ac_tool_warned in
3689 yes:)
3690 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3691 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3692 ac_tool_warned=yes ;;
3693 esac
3694 CC=$ac_ct_CC
3695 fi
3696 fi
3697
3698 fi
3699
3700
3701 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3702 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3703 as_fn_error $? "no acceptable C compiler found in \$PATH
3704 See \`config.log' for more details" "$LINENO" 5; }
3705
3706 # Provide some information about the compiler.
3707 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3708 set X $ac_compile
3709 ac_compiler=$2
3710 for ac_option in --version -v -V -qversion; do
3711 { { ac_try="$ac_compiler $ac_option >&5"
3712 case "(($ac_try" in
3713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3714 *) ac_try_echo=$ac_try;;
3715 esac
3716 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3717 $as_echo "$ac_try_echo"; } >&5
3718 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3719 ac_status=$?
3720 if test -s conftest.err; then
3721 sed '10a\
3722 ... rest of stderr output deleted ...
3723 10q' conftest.err >conftest.er1
3724 cat conftest.er1 >&5
3725 fi
3726 rm -f conftest.er1 conftest.err
3727 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3728 test $ac_status = 0; }
3729 done
3730
3731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3732 /* end confdefs.h. */
3733
3734 int
3735 main ()
3736 {
3737
3738 ;
3739 return 0;
3740 }
3741 _ACEOF
3742 ac_clean_files_save=$ac_clean_files
3743 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3744 # Try to create an executable without -o first, disregard a.out.
3745 # It will help us diagnose broken compilers, and finding out an intuition
3746 # of exeext.
3747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3748 $as_echo_n "checking whether the C compiler works... " >&6; }
3749 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3750
3751 # The possible output files:
3752 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3753
3754 ac_rmfiles=
3755 for ac_file in $ac_files
3756 do
3757 case $ac_file in
3758 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3759 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3760 esac
3761 done
3762 rm -f $ac_rmfiles
3763
3764 if { { ac_try="$ac_link_default"
3765 case "(($ac_try" in
3766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3767 *) ac_try_echo=$ac_try;;
3768 esac
3769 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3770 $as_echo "$ac_try_echo"; } >&5
3771 (eval "$ac_link_default") 2>&5
3772 ac_status=$?
3773 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3774 test $ac_status = 0; }; then :
3775 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3776 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3777 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3778 # so that the user can short-circuit this test for compilers unknown to
3779 # Autoconf.
3780 for ac_file in $ac_files ''
3781 do
3782 test -f "$ac_file" || continue
3783 case $ac_file in
3784 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3785 ;;
3786 [ab].out )
3787 # We found the default executable, but exeext='' is most
3788 # certainly right.
3789 break;;
3790 *.* )
3791 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3792 then :; else
3793 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3794 fi
3795 # We set ac_cv_exeext here because the later test for it is not
3796 # safe: cross compilers may not add the suffix if given an `-o'
3797 # argument, so we may need to know it at that point already.
3798 # Even if this section looks crufty: it has the advantage of
3799 # actually working.
3800 break;;
3801 * )
3802 break;;
3803 esac
3804 done
3805 test "$ac_cv_exeext" = no && ac_cv_exeext=
3806
3807 else
3808 ac_file=''
3809 fi
3810 if test -z "$ac_file"; then :
3811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3812 $as_echo "no" >&6; }
3813 $as_echo "$as_me: failed program was:" >&5
3814 sed 's/^/| /' conftest.$ac_ext >&5
3815
3816 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3817 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3818 as_fn_error 77 "C compiler cannot create executables
3819 See \`config.log' for more details" "$LINENO" 5; }
3820 else
3821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3822 $as_echo "yes" >&6; }
3823 fi
3824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3825 $as_echo_n "checking for C compiler default output file name... " >&6; }
3826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3827 $as_echo "$ac_file" >&6; }
3828 ac_exeext=$ac_cv_exeext
3829
3830 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3831 ac_clean_files=$ac_clean_files_save
3832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3833 $as_echo_n "checking for suffix of executables... " >&6; }
3834 if { { ac_try="$ac_link"
3835 case "(($ac_try" in
3836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3837 *) ac_try_echo=$ac_try;;
3838 esac
3839 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3840 $as_echo "$ac_try_echo"; } >&5
3841 (eval "$ac_link") 2>&5
3842 ac_status=$?
3843 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3844 test $ac_status = 0; }; then :
3845 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3846 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3847 # work properly (i.e., refer to `conftest.exe'), while it won't with
3848 # `rm'.
3849 for ac_file in conftest.exe conftest conftest.*; do
3850 test -f "$ac_file" || continue
3851 case $ac_file in
3852 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3853 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3854 break;;
3855 * ) break;;
3856 esac
3857 done
3858 else
3859 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3860 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3861 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3862 See \`config.log' for more details" "$LINENO" 5; }
3863 fi
3864 rm -f conftest conftest$ac_cv_exeext
3865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3866 $as_echo "$ac_cv_exeext" >&6; }
3867
3868 rm -f conftest.$ac_ext
3869 EXEEXT=$ac_cv_exeext
3870 ac_exeext=$EXEEXT
3871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3872 /* end confdefs.h. */
3873 #include <stdio.h>
3874 int
3875 main ()
3876 {
3877 FILE *f = fopen ("conftest.out", "w");
3878 return ferror (f) || fclose (f) != 0;
3879
3880 ;
3881 return 0;
3882 }
3883 _ACEOF
3884 ac_clean_files="$ac_clean_files conftest.out"
3885 # Check that the compiler produces executables we can run. If not, either
3886 # the compiler is broken, or we cross compile.
3887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3888 $as_echo_n "checking whether we are cross compiling... " >&6; }
3889 if test "$cross_compiling" != yes; then
3890 { { ac_try="$ac_link"
3891 case "(($ac_try" in
3892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3893 *) ac_try_echo=$ac_try;;
3894 esac
3895 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3896 $as_echo "$ac_try_echo"; } >&5
3897 (eval "$ac_link") 2>&5
3898 ac_status=$?
3899 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3900 test $ac_status = 0; }
3901 if { ac_try='./conftest$ac_cv_exeext'
3902 { { case "(($ac_try" in
3903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3904 *) ac_try_echo=$ac_try;;
3905 esac
3906 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3907 $as_echo "$ac_try_echo"; } >&5
3908 (eval "$ac_try") 2>&5
3909 ac_status=$?
3910 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3911 test $ac_status = 0; }; }; then
3912 cross_compiling=no
3913 else
3914 if test "$cross_compiling" = maybe; then
3915 cross_compiling=yes
3916 else
3917 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3918 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3919 as_fn_error $? "cannot run C compiled programs.
3920 If you meant to cross compile, use \`--host'.
3921 See \`config.log' for more details" "$LINENO" 5; }
3922 fi
3923 fi
3924 fi
3925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3926 $as_echo "$cross_compiling" >&6; }
3927
3928 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3929 ac_clean_files=$ac_clean_files_save
3930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3931 $as_echo_n "checking for suffix of object files... " >&6; }
3932 if ${ac_cv_objext+:} false; then :
3933 $as_echo_n "(cached) " >&6
3934 else
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 rm -f conftest.o conftest.obj
3947 if { { ac_try="$ac_compile"
3948 case "(($ac_try" in
3949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3950 *) ac_try_echo=$ac_try;;
3951 esac
3952 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3953 $as_echo "$ac_try_echo"; } >&5
3954 (eval "$ac_compile") 2>&5
3955 ac_status=$?
3956 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3957 test $ac_status = 0; }; then :
3958 for ac_file in conftest.o conftest.obj conftest.*; do
3959 test -f "$ac_file" || continue;
3960 case $ac_file in
3961 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3962 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3963 break;;
3964 esac
3965 done
3966 else
3967 $as_echo "$as_me: failed program was:" >&5
3968 sed 's/^/| /' conftest.$ac_ext >&5
3969
3970 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3971 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3972 as_fn_error $? "cannot compute suffix of object files: cannot compile
3973 See \`config.log' for more details" "$LINENO" 5; }
3974 fi
3975 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3976 fi
3977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3978 $as_echo "$ac_cv_objext" >&6; }
3979 OBJEXT=$ac_cv_objext
3980 ac_objext=$OBJEXT
3981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3982 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3983 if ${ac_cv_c_compiler_gnu+:} false; then :
3984 $as_echo_n "(cached) " >&6
3985 else
3986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3987 /* end confdefs.h. */
3988
3989 int
3990 main ()
3991 {
3992 #ifndef __GNUC__
3993 choke me
3994 #endif
3995
3996 ;
3997 return 0;
3998 }
3999 _ACEOF
4000 if ac_fn_c_try_compile "$LINENO"; then :
4001 ac_compiler_gnu=yes
4002 else
4003 ac_compiler_gnu=no
4004 fi
4005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4006 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4007
4008 fi
4009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4010 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4011 if test $ac_compiler_gnu = yes; then
4012 GCC=yes
4013 else
4014 GCC=
4015 fi
4016 ac_test_CFLAGS=${CFLAGS+set}
4017 ac_save_CFLAGS=$CFLAGS
4018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4019 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4020 if ${ac_cv_prog_cc_g+:} false; then :
4021 $as_echo_n "(cached) " >&6
4022 else
4023 ac_save_c_werror_flag=$ac_c_werror_flag
4024 ac_c_werror_flag=yes
4025 ac_cv_prog_cc_g=no
4026 CFLAGS="-g"
4027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4028 /* end confdefs.h. */
4029
4030 int
4031 main ()
4032 {
4033
4034 ;
4035 return 0;
4036 }
4037 _ACEOF
4038 if ac_fn_c_try_compile "$LINENO"; then :
4039 ac_cv_prog_cc_g=yes
4040 else
4041 CFLAGS=""
4042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4043 /* end confdefs.h. */
4044
4045 int
4046 main ()
4047 {
4048
4049 ;
4050 return 0;
4051 }
4052 _ACEOF
4053 if ac_fn_c_try_compile "$LINENO"; then :
4054
4055 else
4056 ac_c_werror_flag=$ac_save_c_werror_flag
4057 CFLAGS="-g"
4058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4059 /* end confdefs.h. */
4060
4061 int
4062 main ()
4063 {
4064
4065 ;
4066 return 0;
4067 }
4068 _ACEOF
4069 if ac_fn_c_try_compile "$LINENO"; then :
4070 ac_cv_prog_cc_g=yes
4071 fi
4072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4073 fi
4074 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4075 fi
4076 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4077 ac_c_werror_flag=$ac_save_c_werror_flag
4078 fi
4079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4080 $as_echo "$ac_cv_prog_cc_g" >&6; }
4081 if test "$ac_test_CFLAGS" = set; then
4082 CFLAGS=$ac_save_CFLAGS
4083 elif test $ac_cv_prog_cc_g = yes; then
4084 if test "$GCC" = yes; then
4085 CFLAGS="-g -O2"
4086 else
4087 CFLAGS="-g"
4088 fi
4089 else
4090 if test "$GCC" = yes; then
4091 CFLAGS="-O2"
4092 else
4093 CFLAGS=
4094 fi
4095 fi
4096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4097 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4098 if ${ac_cv_prog_cc_c89+:} false; then :
4099 $as_echo_n "(cached) " >&6
4100 else
4101 ac_cv_prog_cc_c89=no
4102 ac_save_CC=$CC
4103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4104 /* end confdefs.h. */
4105 #include <stdarg.h>
4106 #include <stdio.h>
4107 struct stat;
4108 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4109 struct buf { int x; };
4110 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4111 static char *e (p, i)
4112 char **p;
4113 int i;
4114 {
4115 return p[i];
4116 }
4117 static char *f (char * (*g) (char **, int), char **p, ...)
4118 {
4119 char *s;
4120 va_list v;
4121 va_start (v,p);
4122 s = g (p, va_arg (v,int));
4123 va_end (v);
4124 return s;
4125 }
4126
4127 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4128 function prototypes and stuff, but not '\xHH' hex character constants.
4129 These don't provoke an error unfortunately, instead are silently treated
4130 as 'x'. The following induces an error, until -std is added to get
4131 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4132 array size at least. It's necessary to write '\x00'==0 to get something
4133 that's true only with -std. */
4134 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4135
4136 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4137 inside strings and character constants. */
4138 #define FOO(x) 'x'
4139 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4140
4141 int test (int i, double x);
4142 struct s1 {int (*f) (int a);};
4143 struct s2 {int (*f) (double a);};
4144 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4145 int argc;
4146 char **argv;
4147 int
4148 main ()
4149 {
4150 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4151 ;
4152 return 0;
4153 }
4154 _ACEOF
4155 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4156 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4157 do
4158 CC="$ac_save_CC $ac_arg"
4159 if ac_fn_c_try_compile "$LINENO"; then :
4160 ac_cv_prog_cc_c89=$ac_arg
4161 fi
4162 rm -f core conftest.err conftest.$ac_objext
4163 test "x$ac_cv_prog_cc_c89" != "xno" && break
4164 done
4165 rm -f conftest.$ac_ext
4166 CC=$ac_save_CC
4167
4168 fi
4169 # AC_CACHE_VAL
4170 case "x$ac_cv_prog_cc_c89" in
4171 x)
4172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4173 $as_echo "none needed" >&6; } ;;
4174 xno)
4175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4176 $as_echo "unsupported" >&6; } ;;
4177 *)
4178 CC="$CC $ac_cv_prog_cc_c89"
4179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4180 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4181 esac
4182 if test "x$ac_cv_prog_cc_c89" != xno; then :
4183
4184 fi
4185
4186 ac_ext=c
4187 ac_cpp='$CPP $CPPFLAGS'
4188 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4189 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4190 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4191
4192 ac_ext=c
4193 ac_cpp='$CPP $CPPFLAGS'
4194 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4195 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4196 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4198 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4199 if ${am_cv_prog_cc_c_o+:} false; then :
4200 $as_echo_n "(cached) " >&6
4201 else
4202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4203 /* end confdefs.h. */
4204
4205 int
4206 main ()
4207 {
4208
4209 ;
4210 return 0;
4211 }
4212 _ACEOF
4213 # Make sure it works both with $CC and with simple cc.
4214 # Following AC_PROG_CC_C_O, we do the test twice because some
4215 # compilers refuse to overwrite an existing .o file with -o,
4216 # though they will create one.
4217 am_cv_prog_cc_c_o=yes
4218 for am_i in 1 2; do
4219 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4220 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4221 ac_status=$?
4222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4223 (exit $ac_status); } \
4224 && test -f conftest2.$ac_objext; then
4225 : OK
4226 else
4227 am_cv_prog_cc_c_o=no
4228 break
4229 fi
4230 done
4231 rm -f core conftest*
4232 unset am_i
4233 fi
4234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4235 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4236 if test "$am_cv_prog_cc_c_o" != yes; then
4237 # Losing compiler, so override with the script.
4238 # FIXME: It is wrong to rewrite CC.
4239 # But if we don't then we get into trouble of one sort or another.
4240 # A longer-term fix would be to have automake use am__CC in this case,
4241 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4242 CC="$am_aux_dir/compile $CC"
4243 fi
4244 ac_ext=c
4245 ac_cpp='$CPP $CPPFLAGS'
4246 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4247 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4248 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4249
4250
4251 depcc="$CC" am_compiler_list=
4252
4253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4254 $as_echo_n "checking dependency style of $depcc... " >&6; }
4255 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4256 $as_echo_n "(cached) " >&6
4257 else
4258 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4259 # We make a subdir and do the tests there. Otherwise we can end up
4260 # making bogus files that we don't know about and never remove. For
4261 # instance it was reported that on HP-UX the gcc test will end up
4262 # making a dummy file named 'D' -- because '-MD' means "put the output
4263 # in D".
4264 rm -rf conftest.dir
4265 mkdir conftest.dir
4266 # Copy depcomp to subdir because otherwise we won't find it if we're
4267 # using a relative directory.
4268 cp "$am_depcomp" conftest.dir
4269 cd conftest.dir
4270 # We will build objects and dependencies in a subdirectory because
4271 # it helps to detect inapplicable dependency modes. For instance
4272 # both Tru64's cc and ICC support -MD to output dependencies as a
4273 # side effect of compilation, but ICC will put the dependencies in
4274 # the current directory while Tru64 will put them in the object
4275 # directory.
4276 mkdir sub
4277
4278 am_cv_CC_dependencies_compiler_type=none
4279 if test "$am_compiler_list" = ""; then
4280 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4281 fi
4282 am__universal=false
4283 case " $depcc " in #(
4284 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4285 esac
4286
4287 for depmode in $am_compiler_list; do
4288 # Setup a source with many dependencies, because some compilers
4289 # like to wrap large dependency lists on column 80 (with \), and
4290 # we should not choose a depcomp mode which is confused by this.
4291 #
4292 # We need to recreate these files for each test, as the compiler may
4293 # overwrite some of them when testing with obscure command lines.
4294 # This happens at least with the AIX C compiler.
4295 : > sub/conftest.c
4296 for i in 1 2 3 4 5 6; do
4297 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4298 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4299 # Solaris 10 /bin/sh.
4300 echo '/* dummy */' > sub/conftst$i.h
4301 done
4302 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4303
4304 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4305 # mode. It turns out that the SunPro C++ compiler does not properly
4306 # handle '-M -o', and we need to detect this. Also, some Intel
4307 # versions had trouble with output in subdirs.
4308 am__obj=sub/conftest.${OBJEXT-o}
4309 am__minus_obj="-o $am__obj"
4310 case $depmode in
4311 gcc)
4312 # This depmode causes a compiler race in universal mode.
4313 test "$am__universal" = false || continue
4314 ;;
4315 nosideeffect)
4316 # After this tag, mechanisms are not by side-effect, so they'll
4317 # only be used when explicitly requested.
4318 if test "x$enable_dependency_tracking" = xyes; then
4319 continue
4320 else
4321 break
4322 fi
4323 ;;
4324 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4325 # This compiler won't grok '-c -o', but also, the minuso test has
4326 # not run yet. These depmodes are late enough in the game, and
4327 # so weak that their functioning should not be impacted.
4328 am__obj=conftest.${OBJEXT-o}
4329 am__minus_obj=
4330 ;;
4331 none) break ;;
4332 esac
4333 if depmode=$depmode \
4334 source=sub/conftest.c object=$am__obj \
4335 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4336 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4337 >/dev/null 2>conftest.err &&
4338 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4339 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4340 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4341 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4342 # icc doesn't choke on unknown options, it will just issue warnings
4343 # or remarks (even with -Werror). So we grep stderr for any message
4344 # that says an option was ignored or not supported.
4345 # When given -MP, icc 7.0 and 7.1 complain thusly:
4346 # icc: Command line warning: ignoring option '-M'; no argument required
4347 # The diagnosis changed in icc 8.0:
4348 # icc: Command line remark: option '-MP' not supported
4349 if (grep 'ignoring option' conftest.err ||
4350 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4351 am_cv_CC_dependencies_compiler_type=$depmode
4352 break
4353 fi
4354 fi
4355 done
4356
4357 cd ..
4358 rm -rf conftest.dir
4359 else
4360 am_cv_CC_dependencies_compiler_type=none
4361 fi
4362
4363 fi
4364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4365 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4366 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4367
4368 if
4369 test "x$enable_dependency_tracking" != xno \
4370 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4371 am__fastdepCC_TRUE=
4372 am__fastdepCC_FALSE='#'
4373 else
4374 am__fastdepCC_TRUE='#'
4375 am__fastdepCC_FALSE=
4376 fi
4377
4378
4379 # Make sure we can run config.sub.
4380 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4381 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4382
4383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4384 $as_echo_n "checking build system type... " >&6; }
4385 if ${ac_cv_build+:} false; then :
4386 $as_echo_n "(cached) " >&6
4387 else
4388 ac_build_alias=$build_alias
4389 test "x$ac_build_alias" = x &&
4390 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4391 test "x$ac_build_alias" = x &&
4392 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4393 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4394 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4395
4396 fi
4397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4398 $as_echo "$ac_cv_build" >&6; }
4399 case $ac_cv_build in
4400 *-*-*) ;;
4401 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4402 esac
4403 build=$ac_cv_build
4404 ac_save_IFS=$IFS; IFS='-'
4405 set x $ac_cv_build
4406 shift
4407 build_cpu=$1
4408 build_vendor=$2
4409 shift; shift
4410 # Remember, the first character of IFS is used to create $*,
4411 # except with old shells:
4412 build_os=$*
4413 IFS=$ac_save_IFS
4414 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4415
4416
4417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4418 $as_echo_n "checking host system type... " >&6; }
4419 if ${ac_cv_host+:} false; then :
4420 $as_echo_n "(cached) " >&6
4421 else
4422 if test "x$host_alias" = x; then
4423 ac_cv_host=$ac_cv_build
4424 else
4425 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4426 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4427 fi
4428
4429 fi
4430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4431 $as_echo "$ac_cv_host" >&6; }
4432 case $ac_cv_host in
4433 *-*-*) ;;
4434 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4435 esac
4436 host=$ac_cv_host
4437 ac_save_IFS=$IFS; IFS='-'
4438 set x $ac_cv_host
4439 shift
4440 host_cpu=$1
4441 host_vendor=$2
4442 shift; shift
4443 # Remember, the first character of IFS is used to create $*,
4444 # except with old shells:
4445 host_os=$*
4446 IFS=$ac_save_IFS
4447 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4448
4449
4450
4451 # Check whether --with-gnu-ld was given.
4452 if test "${with_gnu_ld+set}" = set; then :
4453 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4454 else
4455 with_gnu_ld=no
4456 fi
4457
4458 # Prepare PATH_SEPARATOR.
4459 # The user is always right.
4460 if test "${PATH_SEPARATOR+set}" != set; then
4461 echo "#! /bin/sh" >conf$$.sh
4462 echo "exit 0" >>conf$$.sh
4463 chmod +x conf$$.sh
4464 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4465 PATH_SEPARATOR=';'
4466 else
4467 PATH_SEPARATOR=:
4468 fi
4469 rm -f conf$$.sh
4470 fi
4471 ac_prog=ld
4472 if test "$GCC" = yes; then
4473 # Check if gcc -print-prog-name=ld gives a path.
4474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
4475 $as_echo_n "checking for ld used by GCC... " >&6; }
4476 case $host in
4477 *-*-mingw*)
4478 # gcc leaves a trailing carriage return which upsets mingw
4479 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4480 *)
4481 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4482 esac
4483 case $ac_prog in
4484 # Accept absolute paths.
4485 [\\/]* | [A-Za-z]:[\\/]*)
4486 re_direlt='/[^/][^/]*/\.\./'
4487 # Canonicalize the path of ld
4488 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
4489 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4490 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
4491 done
4492 test -z "$LD" && LD="$ac_prog"
4493 ;;
4494 "")
4495 # If it fails, then pretend we aren't using GCC.
4496 ac_prog=ld
4497 ;;
4498 *)
4499 # If it is relative, then search for the first ld in PATH.
4500 with_gnu_ld=unknown
4501 ;;
4502 esac
4503 elif test "$with_gnu_ld" = yes; then
4504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4505 $as_echo_n "checking for GNU ld... " >&6; }
4506 else
4507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4508 $as_echo_n "checking for non-GNU ld... " >&6; }
4509 fi
4510 if ${acl_cv_path_LD+:} false; then :
4511 $as_echo_n "(cached) " >&6
4512 else
4513 if test -z "$LD"; then
4514 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
4515 for ac_dir in $PATH; do
4516 test -z "$ac_dir" && ac_dir=.
4517 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4518 acl_cv_path_LD="$ac_dir/$ac_prog"
4519 # Check to see if the program is GNU ld. I'd rather use --version,
4520 # but apparently some GNU ld's only accept -v.
4521 # Break only if it was the GNU/non-GNU ld that we prefer.
4522 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
4523 *GNU* | *'with BFD'*)
4524 test "$with_gnu_ld" != no && break ;;
4525 *)
4526 test "$with_gnu_ld" != yes && break ;;
4527 esac
4528 fi
4529 done
4530 IFS="$ac_save_ifs"
4531 else
4532 acl_cv_path_LD="$LD" # Let the user override the test with a path.
4533 fi
4534 fi
4535
4536 LD="$acl_cv_path_LD"
4537 if test -n "$LD"; then
4538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4539 $as_echo "$LD" >&6; }
4540 else
4541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4542 $as_echo "no" >&6; }
4543 fi
4544 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4546 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4547 if ${acl_cv_prog_gnu_ld+:} false; then :
4548 $as_echo_n "(cached) " >&6
4549 else
4550 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
4551 case `$LD -v 2>&1 </dev/null` in
4552 *GNU* | *'with BFD'*)
4553 acl_cv_prog_gnu_ld=yes ;;
4554 *)
4555 acl_cv_prog_gnu_ld=no ;;
4556 esac
4557 fi
4558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
4559 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
4560 with_gnu_ld=$acl_cv_prog_gnu_ld
4561
4562
4563
4564
4565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
4566 $as_echo_n "checking for shared library run path origin... " >&6; }
4567 if ${acl_cv_rpath+:} false; then :
4568 $as_echo_n "(cached) " >&6
4569 else
4570
4571 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
4572 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
4573 . ./conftest.sh
4574 rm -f ./conftest.sh
4575 acl_cv_rpath=done
4576
4577 fi
4578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
4579 $as_echo "$acl_cv_rpath" >&6; }
4580 wl="$acl_cv_wl"
4581 libext="$acl_cv_libext"
4582 shlibext="$acl_cv_shlibext"
4583 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
4584 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
4585 hardcode_direct="$acl_cv_hardcode_direct"
4586 hardcode_minus_L="$acl_cv_hardcode_minus_L"
4587 # Check whether --enable-rpath was given.
4588 if test "${enable_rpath+set}" = set; then :
4589 enableval=$enable_rpath; :
4590 else
4591 enable_rpath=yes
4592 fi
4593
4594
4595
4596 acl_libdirstem=lib
4597 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
4598 if test -n "$searchpath"; then
4599 acl_save_IFS="${IFS= }"; IFS=":"
4600 for searchdir in $searchpath; do
4601 if test -d "$searchdir"; then
4602 case "$searchdir" in
4603 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
4604 *) searchdir=`cd "$searchdir" && pwd`
4605 case "$searchdir" in
4606 */lib64 ) acl_libdirstem=lib64 ;;
4607 esac ;;
4608 esac
4609 fi
4610 done
4611 IFS="$acl_save_IFS"
4612 fi
4613
4614
4615
4616
4617
4618
4619
4620
4621 use_additional=yes
4622
4623 acl_save_prefix="$prefix"
4624 prefix="$acl_final_prefix"
4625 acl_save_exec_prefix="$exec_prefix"
4626 exec_prefix="$acl_final_exec_prefix"
4627
4628 eval additional_includedir=\"$includedir\"
4629 eval additional_libdir=\"$libdir\"
4630
4631 exec_prefix="$acl_save_exec_prefix"
4632 prefix="$acl_save_prefix"
4633
4634
4635 # Check whether --with-libiconv-prefix was given.
4636 if test "${with_libiconv_prefix+set}" = set; then :
4637 withval=$with_libiconv_prefix;
4638 if test "X$withval" = "Xno"; then
4639 use_additional=no
4640 else
4641 if test "X$withval" = "X"; then
4642
4643 acl_save_prefix="$prefix"
4644 prefix="$acl_final_prefix"
4645 acl_save_exec_prefix="$exec_prefix"
4646 exec_prefix="$acl_final_exec_prefix"
4647
4648 eval additional_includedir=\"$includedir\"
4649 eval additional_libdir=\"$libdir\"
4650
4651 exec_prefix="$acl_save_exec_prefix"
4652 prefix="$acl_save_prefix"
4653
4654 else
4655 additional_includedir="$withval/include"
4656 additional_libdir="$withval/$acl_libdirstem"
4657 fi
4658 fi
4659
4660 fi
4661
4662 LIBICONV=
4663 LTLIBICONV=
4664 INCICONV=
4665 rpathdirs=
4666 ltrpathdirs=
4667 names_already_handled=
4668 names_next_round='iconv '
4669 while test -n "$names_next_round"; do
4670 names_this_round="$names_next_round"
4671 names_next_round=
4672 for name in $names_this_round; do
4673 already_handled=
4674 for n in $names_already_handled; do
4675 if test "$n" = "$name"; then
4676 already_handled=yes
4677 break
4678 fi
4679 done
4680 if test -z "$already_handled"; then
4681 names_already_handled="$names_already_handled $name"
4682 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
4683 eval value=\"\$HAVE_LIB$uppername\"
4684 if test -n "$value"; then
4685 if test "$value" = yes; then
4686 eval value=\"\$LIB$uppername\"
4687 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
4688 eval value=\"\$LTLIB$uppername\"
4689 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
4690 else
4691 :
4692 fi
4693 else
4694 found_dir=
4695 found_la=
4696 found_so=
4697 found_a=
4698 if test $use_additional = yes; then
4699 if test -n "$shlibext" \
4700 && { test -f "$additional_libdir/lib$name.$shlibext" \
4701 || { test "$shlibext" = dll \
4702 && test -f "$additional_libdir/lib$name.dll.a"; }; }; then
4703 found_dir="$additional_libdir"
4704 if test -f "$additional_libdir/lib$name.$shlibext"; then
4705 found_so="$additional_libdir/lib$name.$shlibext"
4706 else
4707 found_so="$additional_libdir/lib$name.dll.a"
4708 fi
4709 if test -f "$additional_libdir/lib$name.la"; then
4710 found_la="$additional_libdir/lib$name.la"
4711 fi
4712 else
4713 if test -f "$additional_libdir/lib$name.$libext"; then
4714 found_dir="$additional_libdir"
4715 found_a="$additional_libdir/lib$name.$libext"
4716 if test -f "$additional_libdir/lib$name.la"; then
4717 found_la="$additional_libdir/lib$name.la"
4718 fi
4719 fi
4720 fi
4721 fi
4722 if test "X$found_dir" = "X"; then
4723 for x in $LDFLAGS $LTLIBICONV; do
4724
4725 acl_save_prefix="$prefix"
4726 prefix="$acl_final_prefix"
4727 acl_save_exec_prefix="$exec_prefix"
4728 exec_prefix="$acl_final_exec_prefix"
4729 eval x=\"$x\"
4730 exec_prefix="$acl_save_exec_prefix"
4731 prefix="$acl_save_prefix"
4732
4733 case "$x" in
4734 -L*)
4735 dir=`echo "X$x" | sed -e 's/^X-L//'`
4736 if test -n "$shlibext" \
4737 && { test -f "$dir/lib$name.$shlibext" \
4738 || { test "$shlibext" = dll \
4739 && test -f "$dir/lib$name.dll.a"; }; }; then
4740 found_dir="$dir"
4741 if test -f "$dir/lib$name.$shlibext"; then
4742 found_so="$dir/lib$name.$shlibext"
4743 else
4744 found_so="$dir/lib$name.dll.a"
4745 fi
4746 if test -f "$dir/lib$name.la"; then
4747 found_la="$dir/lib$name.la"
4748 fi
4749 else
4750 if test -f "$dir/lib$name.$libext"; then
4751 found_dir="$dir"
4752 found_a="$dir/lib$name.$libext"
4753 if test -f "$dir/lib$name.la"; then
4754 found_la="$dir/lib$name.la"
4755 fi
4756 fi
4757 fi
4758 ;;
4759 esac
4760 if test "X$found_dir" != "X"; then
4761 break
4762 fi
4763 done
4764 fi
4765 if test "X$found_dir" != "X"; then
4766 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
4767 if test "X$found_so" != "X"; then
4768 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
4769 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
4770 else
4771 haveit=
4772 for x in $ltrpathdirs; do
4773 if test "X$x" = "X$found_dir"; then
4774 haveit=yes
4775 break
4776 fi
4777 done
4778 if test -z "$haveit"; then
4779 ltrpathdirs="$ltrpathdirs $found_dir"
4780 fi
4781 if test "$hardcode_direct" = yes; then
4782 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
4783 else
4784 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
4785 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
4786 haveit=
4787 for x in $rpathdirs; do
4788 if test "X$x" = "X$found_dir"; then
4789 haveit=yes
4790 break
4791 fi
4792 done
4793 if test -z "$haveit"; then
4794 rpathdirs="$rpathdirs $found_dir"
4795 fi
4796 else
4797 haveit=
4798 for x in $LDFLAGS $LIBICONV; do
4799
4800 acl_save_prefix="$prefix"
4801 prefix="$acl_final_prefix"
4802 acl_save_exec_prefix="$exec_prefix"
4803 exec_prefix="$acl_final_exec_prefix"
4804 eval x=\"$x\"
4805 exec_prefix="$acl_save_exec_prefix"
4806 prefix="$acl_save_prefix"
4807
4808 if test "X$x" = "X-L$found_dir"; then
4809 haveit=yes
4810 break
4811 fi
4812 done
4813 if test -z "$haveit"; then
4814 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
4815 fi
4816 if test "$hardcode_minus_L" != no; then
4817 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
4818 else
4819 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
4820 fi
4821 fi
4822 fi
4823 fi
4824 else
4825 if test "X$found_a" != "X"; then
4826 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
4827 else
4828 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
4829 fi
4830 fi
4831 additional_includedir=
4832 case "$found_dir" in
4833 */$acl_libdirstem | */$acl_libdirstem/)
4834 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
4835 additional_includedir="$basedir/include"
4836 ;;
4837 esac
4838 if test "X$additional_includedir" != "X"; then
4839 if test "X$additional_includedir" != "X/usr/include"; then
4840 haveit=
4841 if test "X$additional_includedir" = "X/usr/local/include"; then
4842 if test -n "$GCC"; then
4843 case $host_os in
4844 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
4845 esac
4846 fi
4847 fi
4848 if test -z "$haveit"; then
4849 for x in $CPPFLAGS $INCICONV; do
4850
4851 acl_save_prefix="$prefix"
4852 prefix="$acl_final_prefix"
4853 acl_save_exec_prefix="$exec_prefix"
4854 exec_prefix="$acl_final_exec_prefix"
4855 eval x=\"$x\"
4856 exec_prefix="$acl_save_exec_prefix"
4857 prefix="$acl_save_prefix"
4858
4859 if test "X$x" = "X-I$additional_includedir"; then
4860 haveit=yes
4861 break
4862 fi
4863 done
4864 if test -z "$haveit"; then
4865 if test -d "$additional_includedir"; then
4866 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
4867 fi
4868 fi
4869 fi
4870 fi
4871 fi
4872 if test -n "$found_la"; then
4873 save_libdir="$libdir"
4874 case "$found_la" in
4875 */* | *\\*) . "$found_la" ;;
4876 *) . "./$found_la" ;;
4877 esac
4878 libdir="$save_libdir"
4879 for dep in $dependency_libs; do
4880 case "$dep" in
4881 -L*)
4882 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
4883 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
4884 haveit=
4885 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
4886 if test -n "$GCC"; then
4887 case $host_os in
4888 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
4889 esac
4890 fi
4891 fi
4892 if test -z "$haveit"; then
4893 haveit=
4894 for x in $LDFLAGS $LIBICONV; do
4895
4896 acl_save_prefix="$prefix"
4897 prefix="$acl_final_prefix"
4898 acl_save_exec_prefix="$exec_prefix"
4899 exec_prefix="$acl_final_exec_prefix"
4900 eval x=\"$x\"
4901 exec_prefix="$acl_save_exec_prefix"
4902 prefix="$acl_save_prefix"
4903
4904 if test "X$x" = "X-L$additional_libdir"; then
4905 haveit=yes
4906 break
4907 fi
4908 done
4909 if test -z "$haveit"; then
4910 if test -d "$additional_libdir"; then
4911 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
4912 fi
4913 fi
4914 haveit=
4915 for x in $LDFLAGS $LTLIBICONV; do
4916
4917 acl_save_prefix="$prefix"
4918 prefix="$acl_final_prefix"
4919 acl_save_exec_prefix="$exec_prefix"
4920 exec_prefix="$acl_final_exec_prefix"
4921 eval x=\"$x\"
4922 exec_prefix="$acl_save_exec_prefix"
4923 prefix="$acl_save_prefix"
4924
4925 if test "X$x" = "X-L$additional_libdir"; then
4926 haveit=yes
4927 break
4928 fi
4929 done
4930 if test -z "$haveit"; then
4931 if test -d "$additional_libdir"; then
4932 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
4933 fi
4934 fi
4935 fi
4936 fi
4937 ;;
4938 -R*)
4939 dir=`echo "X$dep" | sed -e 's/^X-R//'`
4940 if test "$enable_rpath" != no; then
4941 haveit=
4942 for x in $rpathdirs; do
4943 if test "X$x" = "X$dir"; then
4944 haveit=yes
4945 break
4946 fi
4947 done
4948 if test -z "$haveit"; then
4949 rpathdirs="$rpathdirs $dir"
4950 fi
4951 haveit=
4952 for x in $ltrpathdirs; do
4953 if test "X$x" = "X$dir"; then
4954 haveit=yes
4955 break
4956 fi
4957 done
4958 if test -z "$haveit"; then
4959 ltrpathdirs="$ltrpathdirs $dir"
4960 fi
4961 fi
4962 ;;
4963 -l*)
4964 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
4965 ;;
4966 *.la)
4967 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
4968 ;;
4969 *)
4970 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
4971 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
4972 ;;
4973 esac
4974 done
4975 fi
4976 else
4977 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
4978 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
4979 fi
4980 fi
4981 fi
4982 done
4983 done
4984 if test "X$rpathdirs" != "X"; then
4985 if test -n "$hardcode_libdir_separator"; then
4986 alldirs=
4987 for found_dir in $rpathdirs; do
4988 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
4989 done
4990 acl_save_libdir="$libdir"
4991 libdir="$alldirs"
4992 eval flag=\"$hardcode_libdir_flag_spec\"
4993 libdir="$acl_save_libdir"
4994 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
4995 else
4996 for found_dir in $rpathdirs; do
4997 acl_save_libdir="$libdir"
4998 libdir="$found_dir"
4999 eval flag=\"$hardcode_libdir_flag_spec\"
5000 libdir="$acl_save_libdir"
5001 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
5002 done
5003 fi
5004 fi
5005 if test "X$ltrpathdirs" != "X"; then
5006 for found_dir in $ltrpathdirs; do
5007 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
5008 done
5009 fi
5010
5011
5012
5013
5014
5015
5016
5017
5018
5019
5020
5021
5022
5023
5024
5025
5026
5027
5028
5029
5030
5031
5032
5033
5034
5035
5036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
5037 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
5038 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
5039 $as_echo_n "(cached) " >&6
5040 else
5041 gt_save_LIBS="$LIBS"
5042 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
5043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5044 /* end confdefs.h. */
5045 #include <CoreFoundation/CFPreferences.h>
5046 int
5047 main ()
5048 {
5049 CFPreferencesCopyAppValue(NULL, NULL)
5050 ;
5051 return 0;
5052 }
5053 _ACEOF
5054 if ac_fn_c_try_link "$LINENO"; then :
5055 gt_cv_func_CFPreferencesCopyAppValue=yes
5056 else
5057 gt_cv_func_CFPreferencesCopyAppValue=no
5058 fi
5059 rm -f core conftest.err conftest.$ac_objext \
5060 conftest$ac_exeext conftest.$ac_ext
5061 LIBS="$gt_save_LIBS"
5062 fi
5063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
5064 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
5065 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
5066
5067 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
5068
5069 fi
5070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
5071 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
5072 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
5073 $as_echo_n "(cached) " >&6
5074 else
5075 gt_save_LIBS="$LIBS"
5076 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
5077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5078 /* end confdefs.h. */
5079 #include <CoreFoundation/CFLocale.h>
5080 int
5081 main ()
5082 {
5083 CFLocaleCopyCurrent();
5084 ;
5085 return 0;
5086 }
5087 _ACEOF
5088 if ac_fn_c_try_link "$LINENO"; then :
5089 gt_cv_func_CFLocaleCopyCurrent=yes
5090 else
5091 gt_cv_func_CFLocaleCopyCurrent=no
5092 fi
5093 rm -f core conftest.err conftest.$ac_objext \
5094 conftest$ac_exeext conftest.$ac_ext
5095 LIBS="$gt_save_LIBS"
5096 fi
5097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
5098 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
5099 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
5100
5101 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
5102
5103 fi
5104 INTL_MACOSX_LIBS=
5105 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
5106 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
5107 fi
5108
5109
5110
5111
5112
5113
5114 LIBINTL=
5115 LTLIBINTL=
5116 POSUB=
5117
5118 case " $gt_needs " in
5119 *" need-formatstring-macros "*) gt_api_version=3 ;;
5120 *" need-ngettext "*) gt_api_version=2 ;;
5121 *) gt_api_version=1 ;;
5122 esac
5123 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
5124 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
5125
5126 if test "$USE_NLS" = "yes"; then
5127 gt_use_preinstalled_gnugettext=no
5128
5129
5130 if test $gt_api_version -ge 3; then
5131 gt_revision_test_code='
5132 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
5133 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
5134 #endif
5135 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
5136 '
5137 else
5138 gt_revision_test_code=
5139 fi
5140 if test $gt_api_version -ge 2; then
5141 gt_expression_test_code=' + * ngettext ("", "", 0)'
5142 else
5143 gt_expression_test_code=
5144 fi
5145
5146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
5147 $as_echo_n "checking for GNU gettext in libc... " >&6; }
5148 if eval \${$gt_func_gnugettext_libc+:} false; then :
5149 $as_echo_n "(cached) " >&6
5150 else
5151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5152 /* end confdefs.h. */
5153 #include <libintl.h>
5154 $gt_revision_test_code
5155 extern int _nl_msg_cat_cntr;
5156 extern int *_nl_domain_bindings;
5157 int
5158 main ()
5159 {
5160 bindtextdomain ("", "");
5161 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
5162 ;
5163 return 0;
5164 }
5165 _ACEOF
5166 if ac_fn_c_try_link "$LINENO"; then :
5167 eval "$gt_func_gnugettext_libc=yes"
5168 else
5169 eval "$gt_func_gnugettext_libc=no"
5170 fi
5171 rm -f core conftest.err conftest.$ac_objext \
5172 conftest$ac_exeext conftest.$ac_ext
5173 fi
5174 eval ac_res=\$$gt_func_gnugettext_libc
5175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5176 $as_echo "$ac_res" >&6; }
5177
5178 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
5179
5180
5181
5182
5183
5184 am_save_CPPFLAGS="$CPPFLAGS"
5185
5186 for element in $INCICONV; do
5187 haveit=
5188 for x in $CPPFLAGS; do
5189
5190 acl_save_prefix="$prefix"
5191 prefix="$acl_final_prefix"
5192 acl_save_exec_prefix="$exec_prefix"
5193 exec_prefix="$acl_final_exec_prefix"
5194 eval x=\"$x\"
5195 exec_prefix="$acl_save_exec_prefix"
5196 prefix="$acl_save_prefix"
5197
5198 if test "X$x" = "X$element"; then
5199 haveit=yes
5200 break
5201 fi
5202 done
5203 if test -z "$haveit"; then
5204 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
5205 fi
5206 done
5207
5208
5209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
5210 $as_echo_n "checking for iconv... " >&6; }
5211 if ${am_cv_func_iconv+:} false; then :
5212 $as_echo_n "(cached) " >&6
5213 else
5214
5215 am_cv_func_iconv="no, consider installing GNU libiconv"
5216 am_cv_lib_iconv=no
5217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5218 /* end confdefs.h. */
5219 #include <stdlib.h>
5220 #include <iconv.h>
5221 int
5222 main ()
5223 {
5224 iconv_t cd = iconv_open("","");
5225 iconv(cd,NULL,NULL,NULL,NULL);
5226 iconv_close(cd);
5227 ;
5228 return 0;
5229 }
5230 _ACEOF
5231 if ac_fn_c_try_link "$LINENO"; then :
5232 am_cv_func_iconv=yes
5233 fi
5234 rm -f core conftest.err conftest.$ac_objext \
5235 conftest$ac_exeext conftest.$ac_ext
5236 if test "$am_cv_func_iconv" != yes; then
5237 am_save_LIBS="$LIBS"
5238 LIBS="$LIBS $LIBICONV"
5239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5240 /* end confdefs.h. */
5241 #include <stdlib.h>
5242 #include <iconv.h>
5243 int
5244 main ()
5245 {
5246 iconv_t cd = iconv_open("","");
5247 iconv(cd,NULL,NULL,NULL,NULL);
5248 iconv_close(cd);
5249 ;
5250 return 0;
5251 }
5252 _ACEOF
5253 if ac_fn_c_try_link "$LINENO"; then :
5254 am_cv_lib_iconv=yes
5255 am_cv_func_iconv=yes
5256 fi
5257 rm -f core conftest.err conftest.$ac_objext \
5258 conftest$ac_exeext conftest.$ac_ext
5259 LIBS="$am_save_LIBS"
5260 fi
5261
5262 fi
5263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
5264 $as_echo "$am_cv_func_iconv" >&6; }
5265 if test "$am_cv_func_iconv" = yes; then
5266
5267 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
5268
5269 fi
5270 if test "$am_cv_lib_iconv" = yes; then
5271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
5272 $as_echo_n "checking how to link with libiconv... " >&6; }
5273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
5274 $as_echo "$LIBICONV" >&6; }
5275 else
5276 CPPFLAGS="$am_save_CPPFLAGS"
5277 LIBICONV=
5278 LTLIBICONV=
5279 fi
5280
5281
5282
5283
5284
5285
5286
5287 use_additional=yes
5288
5289 acl_save_prefix="$prefix"
5290 prefix="$acl_final_prefix"
5291 acl_save_exec_prefix="$exec_prefix"
5292 exec_prefix="$acl_final_exec_prefix"
5293
5294 eval additional_includedir=\"$includedir\"
5295 eval additional_libdir=\"$libdir\"
5296
5297 exec_prefix="$acl_save_exec_prefix"
5298 prefix="$acl_save_prefix"
5299
5300
5301 # Check whether --with-libintl-prefix was given.
5302 if test "${with_libintl_prefix+set}" = set; then :
5303 withval=$with_libintl_prefix;
5304 if test "X$withval" = "Xno"; then
5305 use_additional=no
5306 else
5307 if test "X$withval" = "X"; then
5308
5309 acl_save_prefix="$prefix"
5310 prefix="$acl_final_prefix"
5311 acl_save_exec_prefix="$exec_prefix"
5312 exec_prefix="$acl_final_exec_prefix"
5313
5314 eval additional_includedir=\"$includedir\"
5315 eval additional_libdir=\"$libdir\"
5316
5317 exec_prefix="$acl_save_exec_prefix"
5318 prefix="$acl_save_prefix"
5319
5320 else
5321 additional_includedir="$withval/include"
5322 additional_libdir="$withval/$acl_libdirstem"
5323 fi
5324 fi
5325
5326 fi
5327
5328 LIBINTL=
5329 LTLIBINTL=
5330 INCINTL=
5331 rpathdirs=
5332 ltrpathdirs=
5333 names_already_handled=
5334 names_next_round='intl '
5335 while test -n "$names_next_round"; do
5336 names_this_round="$names_next_round"
5337 names_next_round=
5338 for name in $names_this_round; do
5339 already_handled=
5340 for n in $names_already_handled; do
5341 if test "$n" = "$name"; then
5342 already_handled=yes
5343 break
5344 fi
5345 done
5346 if test -z "$already_handled"; then
5347 names_already_handled="$names_already_handled $name"
5348 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
5349 eval value=\"\$HAVE_LIB$uppername\"
5350 if test -n "$value"; then
5351 if test "$value" = yes; then
5352 eval value=\"\$LIB$uppername\"
5353 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
5354 eval value=\"\$LTLIB$uppername\"
5355 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
5356 else
5357 :
5358 fi
5359 else
5360 found_dir=
5361 found_la=
5362 found_so=
5363 found_a=
5364 if test $use_additional = yes; then
5365 if test -n "$shlibext" \
5366 && { test -f "$additional_libdir/lib$name.$shlibext" \
5367 || { test "$shlibext" = dll \
5368 && test -f "$additional_libdir/lib$name.dll.a"; }; }; then
5369 found_dir="$additional_libdir"
5370 if test -f "$additional_libdir/lib$name.$shlibext"; then
5371 found_so="$additional_libdir/lib$name.$shlibext"
5372 else
5373 found_so="$additional_libdir/lib$name.dll.a"
5374 fi
5375 if test -f "$additional_libdir/lib$name.la"; then
5376 found_la="$additional_libdir/lib$name.la"
5377 fi
5378 else
5379 if test -f "$additional_libdir/lib$name.$libext"; then
5380 found_dir="$additional_libdir"
5381 found_a="$additional_libdir/lib$name.$libext"
5382 if test -f "$additional_libdir/lib$name.la"; then
5383 found_la="$additional_libdir/lib$name.la"
5384 fi
5385 fi
5386 fi
5387 fi
5388 if test "X$found_dir" = "X"; then
5389 for x in $LDFLAGS $LTLIBINTL; do
5390
5391 acl_save_prefix="$prefix"
5392 prefix="$acl_final_prefix"
5393 acl_save_exec_prefix="$exec_prefix"
5394 exec_prefix="$acl_final_exec_prefix"
5395 eval x=\"$x\"
5396 exec_prefix="$acl_save_exec_prefix"
5397 prefix="$acl_save_prefix"
5398
5399 case "$x" in
5400 -L*)
5401 dir=`echo "X$x" | sed -e 's/^X-L//'`
5402 if test -n "$shlibext" \
5403 && { test -f "$dir/lib$name.$shlibext" \
5404 || { test "$shlibext" = dll \
5405 && test -f "$dir/lib$name.dll.a"; }; }; then
5406 found_dir="$dir"
5407 if test -f "$dir/lib$name.$shlibext"; then
5408 found_so="$dir/lib$name.$shlibext"
5409 else
5410 found_so="$dir/lib$name.dll.a"
5411 fi
5412 if test -f "$dir/lib$name.la"; then
5413 found_la="$dir/lib$name.la"
5414 fi
5415 else
5416 if test -f "$dir/lib$name.$libext"; then
5417 found_dir="$dir"
5418 found_a="$dir/lib$name.$libext"
5419 if test -f "$dir/lib$name.la"; then
5420 found_la="$dir/lib$name.la"
5421 fi
5422 fi
5423 fi
5424 ;;
5425 esac
5426 if test "X$found_dir" != "X"; then
5427 break
5428 fi
5429 done
5430 fi
5431 if test "X$found_dir" != "X"; then
5432 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
5433 if test "X$found_so" != "X"; then
5434 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
5435 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
5436 else
5437 haveit=
5438 for x in $ltrpathdirs; do
5439 if test "X$x" = "X$found_dir"; then
5440 haveit=yes
5441 break
5442 fi
5443 done
5444 if test -z "$haveit"; then
5445 ltrpathdirs="$ltrpathdirs $found_dir"
5446 fi
5447 if test "$hardcode_direct" = yes; then
5448 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
5449 else
5450 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
5451 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
5452 haveit=
5453 for x in $rpathdirs; do
5454 if test "X$x" = "X$found_dir"; then
5455 haveit=yes
5456 break
5457 fi
5458 done
5459 if test -z "$haveit"; then
5460 rpathdirs="$rpathdirs $found_dir"
5461 fi
5462 else
5463 haveit=
5464 for x in $LDFLAGS $LIBINTL; do
5465
5466 acl_save_prefix="$prefix"
5467 prefix="$acl_final_prefix"
5468 acl_save_exec_prefix="$exec_prefix"
5469 exec_prefix="$acl_final_exec_prefix"
5470 eval x=\"$x\"
5471 exec_prefix="$acl_save_exec_prefix"
5472 prefix="$acl_save_prefix"
5473
5474 if test "X$x" = "X-L$found_dir"; then
5475 haveit=yes
5476 break
5477 fi
5478 done
5479 if test -z "$haveit"; then
5480 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
5481 fi
5482 if test "$hardcode_minus_L" != no; then
5483 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
5484 else
5485 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
5486 fi
5487 fi
5488 fi
5489 fi
5490 else
5491 if test "X$found_a" != "X"; then
5492 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
5493 else
5494 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
5495 fi
5496 fi
5497 additional_includedir=
5498 case "$found_dir" in
5499 */$acl_libdirstem | */$acl_libdirstem/)
5500 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
5501 additional_includedir="$basedir/include"
5502 ;;
5503 esac
5504 if test "X$additional_includedir" != "X"; then
5505 if test "X$additional_includedir" != "X/usr/include"; then
5506 haveit=
5507 if test "X$additional_includedir" = "X/usr/local/include"; then
5508 if test -n "$GCC"; then
5509 case $host_os in
5510 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
5511 esac
5512 fi
5513 fi
5514 if test -z "$haveit"; then
5515 for x in $CPPFLAGS $INCINTL; do
5516
5517 acl_save_prefix="$prefix"
5518 prefix="$acl_final_prefix"
5519 acl_save_exec_prefix="$exec_prefix"
5520 exec_prefix="$acl_final_exec_prefix"
5521 eval x=\"$x\"
5522 exec_prefix="$acl_save_exec_prefix"
5523 prefix="$acl_save_prefix"
5524
5525 if test "X$x" = "X-I$additional_includedir"; then
5526 haveit=yes
5527 break
5528 fi
5529 done
5530 if test -z "$haveit"; then
5531 if test -d "$additional_includedir"; then
5532 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
5533 fi
5534 fi
5535 fi
5536 fi
5537 fi
5538 if test -n "$found_la"; then
5539 save_libdir="$libdir"
5540 case "$found_la" in
5541 */* | *\\*) . "$found_la" ;;
5542 *) . "./$found_la" ;;
5543 esac
5544 libdir="$save_libdir"
5545 for dep in $dependency_libs; do
5546 case "$dep" in
5547 -L*)
5548 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
5549 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
5550 haveit=
5551 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
5552 if test -n "$GCC"; then
5553 case $host_os in
5554 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
5555 esac
5556 fi
5557 fi
5558 if test -z "$haveit"; then
5559 haveit=
5560 for x in $LDFLAGS $LIBINTL; do
5561
5562 acl_save_prefix="$prefix"
5563 prefix="$acl_final_prefix"
5564 acl_save_exec_prefix="$exec_prefix"
5565 exec_prefix="$acl_final_exec_prefix"
5566 eval x=\"$x\"
5567 exec_prefix="$acl_save_exec_prefix"
5568 prefix="$acl_save_prefix"
5569
5570 if test "X$x" = "X-L$additional_libdir"; then
5571 haveit=yes
5572 break
5573 fi
5574 done
5575 if test -z "$haveit"; then
5576 if test -d "$additional_libdir"; then
5577 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
5578 fi
5579 fi
5580 haveit=
5581 for x in $LDFLAGS $LTLIBINTL; do
5582
5583 acl_save_prefix="$prefix"
5584 prefix="$acl_final_prefix"
5585 acl_save_exec_prefix="$exec_prefix"
5586 exec_prefix="$acl_final_exec_prefix"
5587 eval x=\"$x\"
5588 exec_prefix="$acl_save_exec_prefix"
5589 prefix="$acl_save_prefix"
5590
5591 if test "X$x" = "X-L$additional_libdir"; then
5592 haveit=yes
5593 break
5594 fi
5595 done
5596 if test -z "$haveit"; then
5597 if test -d "$additional_libdir"; then
5598 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
5599 fi
5600 fi
5601 fi
5602 fi
5603 ;;
5604 -R*)
5605 dir=`echo "X$dep" | sed -e 's/^X-R//'`
5606 if test "$enable_rpath" != no; then
5607 haveit=
5608 for x in $rpathdirs; do
5609 if test "X$x" = "X$dir"; then
5610 haveit=yes
5611 break
5612 fi
5613 done
5614 if test -z "$haveit"; then
5615 rpathdirs="$rpathdirs $dir"
5616 fi
5617 haveit=
5618 for x in $ltrpathdirs; do
5619 if test "X$x" = "X$dir"; then
5620 haveit=yes
5621 break
5622 fi
5623 done
5624 if test -z "$haveit"; then
5625 ltrpathdirs="$ltrpathdirs $dir"
5626 fi
5627 fi
5628 ;;
5629 -l*)
5630 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
5631 ;;
5632 *.la)
5633 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
5634 ;;
5635 *)
5636 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
5637 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
5638 ;;
5639 esac
5640 done
5641 fi
5642 else
5643 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
5644 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
5645 fi
5646 fi
5647 fi
5648 done
5649 done
5650 if test "X$rpathdirs" != "X"; then
5651 if test -n "$hardcode_libdir_separator"; then
5652 alldirs=
5653 for found_dir in $rpathdirs; do
5654 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
5655 done
5656 acl_save_libdir="$libdir"
5657 libdir="$alldirs"
5658 eval flag=\"$hardcode_libdir_flag_spec\"
5659 libdir="$acl_save_libdir"
5660 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
5661 else
5662 for found_dir in $rpathdirs; do
5663 acl_save_libdir="$libdir"
5664 libdir="$found_dir"
5665 eval flag=\"$hardcode_libdir_flag_spec\"
5666 libdir="$acl_save_libdir"
5667 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
5668 done
5669 fi
5670 fi
5671 if test "X$ltrpathdirs" != "X"; then
5672 for found_dir in $ltrpathdirs; do
5673 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
5674 done
5675 fi
5676
5677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
5678 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
5679 if eval \${$gt_func_gnugettext_libintl+:} false; then :
5680 $as_echo_n "(cached) " >&6
5681 else
5682 gt_save_CPPFLAGS="$CPPFLAGS"
5683 CPPFLAGS="$CPPFLAGS $INCINTL"
5684 gt_save_LIBS="$LIBS"
5685 LIBS="$LIBS $LIBINTL"
5686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5687 /* end confdefs.h. */
5688 #include <libintl.h>
5689 $gt_revision_test_code
5690 extern int _nl_msg_cat_cntr;
5691 extern
5692 #ifdef __cplusplus
5693 "C"
5694 #endif
5695 const char *_nl_expand_alias (const char *);
5696 int
5697 main ()
5698 {
5699 bindtextdomain ("", "");
5700 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
5701 ;
5702 return 0;
5703 }
5704 _ACEOF
5705 if ac_fn_c_try_link "$LINENO"; then :
5706 eval "$gt_func_gnugettext_libintl=yes"
5707 else
5708 eval "$gt_func_gnugettext_libintl=no"
5709 fi
5710 rm -f core conftest.err conftest.$ac_objext \
5711 conftest$ac_exeext conftest.$ac_ext
5712 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
5713 LIBS="$LIBS $LIBICONV"
5714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5715 /* end confdefs.h. */
5716 #include <libintl.h>
5717 $gt_revision_test_code
5718 extern int _nl_msg_cat_cntr;
5719 extern
5720 #ifdef __cplusplus
5721 "C"
5722 #endif
5723 const char *_nl_expand_alias (const char *);
5724 int
5725 main ()
5726 {
5727 bindtextdomain ("", "");
5728 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
5729 ;
5730 return 0;
5731 }
5732 _ACEOF
5733 if ac_fn_c_try_link "$LINENO"; then :
5734 LIBINTL="$LIBINTL $LIBICONV"
5735 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
5736 eval "$gt_func_gnugettext_libintl=yes"
5737
5738 fi
5739 rm -f core conftest.err conftest.$ac_objext \
5740 conftest$ac_exeext conftest.$ac_ext
5741 fi
5742 CPPFLAGS="$gt_save_CPPFLAGS"
5743 LIBS="$gt_save_LIBS"
5744 fi
5745 eval ac_res=\$$gt_func_gnugettext_libintl
5746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5747 $as_echo "$ac_res" >&6; }
5748 fi
5749
5750 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
5751 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
5752 && test "$PACKAGE" != gettext-runtime \
5753 && test "$PACKAGE" != gettext-tools; }; then
5754 gt_use_preinstalled_gnugettext=yes
5755 else
5756 LIBINTL=
5757 LTLIBINTL=
5758 INCINTL=
5759 fi
5760
5761
5762
5763 if test -n "$INTL_MACOSX_LIBS"; then
5764 if test "$gt_use_preinstalled_gnugettext" = "yes" \
5765 || test "$nls_cv_use_gnu_gettext" = "yes"; then
5766 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
5767 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
5768 fi
5769 fi
5770
5771 if test "$gt_use_preinstalled_gnugettext" = "yes" \
5772 || test "$nls_cv_use_gnu_gettext" = "yes"; then
5773
5774 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
5775
5776 else
5777 USE_NLS=no
5778 fi
5779 fi
5780
5781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
5782 $as_echo_n "checking whether to use NLS... " >&6; }
5783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
5784 $as_echo "$USE_NLS" >&6; }
5785 if test "$USE_NLS" = "yes"; then
5786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
5787 $as_echo_n "checking where the gettext function comes from... " >&6; }
5788 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
5789 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
5790 gt_source="external libintl"
5791 else
5792 gt_source="libc"
5793 fi
5794 else
5795 gt_source="included intl directory"
5796 fi
5797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
5798 $as_echo "$gt_source" >&6; }
5799 fi
5800
5801 if test "$USE_NLS" = "yes"; then
5802
5803 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
5804 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
5805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
5806 $as_echo_n "checking how to link with libintl... " >&6; }
5807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
5808 $as_echo "$LIBINTL" >&6; }
5809
5810 for element in $INCINTL; do
5811 haveit=
5812 for x in $CPPFLAGS; do
5813
5814 acl_save_prefix="$prefix"
5815 prefix="$acl_final_prefix"
5816 acl_save_exec_prefix="$exec_prefix"
5817 exec_prefix="$acl_final_exec_prefix"
5818 eval x=\"$x\"
5819 exec_prefix="$acl_save_exec_prefix"
5820 prefix="$acl_save_prefix"
5821
5822 if test "X$x" = "X$element"; then
5823 haveit=yes
5824 break
5825 fi
5826 done
5827 if test -z "$haveit"; then
5828 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
5829 fi
5830 done
5831
5832 fi
5833
5834
5835 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
5836
5837
5838 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
5839
5840 fi
5841
5842 POSUB=po
5843 fi
5844
5845
5846
5847 INTLLIBS="$LIBINTL"
5848
5849
5850
5851
5852
5853
5854
5855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if malloc debugging is wanted" >&5
5856 $as_echo_n "checking if malloc debugging is wanted... " >&6; }
5857
5858 # Check whether --with-dmalloc was given.
5859 if test "${with_dmalloc+set}" = set; then :
5860 withval=$with_dmalloc; if test "$withval" = yes; then
5861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5862 $as_echo "yes" >&6; }
5863
5864 $as_echo "#define WITH_DMALLOC 1" >>confdefs.h
5865
5866 LIBS="$LIBS -ldmalloc"
5867 LDFLAGS="$LDFLAGS -g"
5868 else
5869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5870 $as_echo "no" >&6; }
5871 fi
5872 else
5873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5874 $as_echo "no" >&6; }
5875 fi
5876
5877
5878
5879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5880 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5881 set x ${MAKE-make}
5882 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5883 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
5884 $as_echo_n "(cached) " >&6
5885 else
5886 cat >conftest.make <<\_ACEOF
5887 SHELL = /bin/sh
5888 all:
5889 @echo '@@@%%%=$(MAKE)=@@@%%%'
5890 _ACEOF
5891 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
5892 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5893 *@@@%%%=?*=@@@%%%*)
5894 eval ac_cv_prog_make_${ac_make}_set=yes;;
5895 *)
5896 eval ac_cv_prog_make_${ac_make}_set=no;;
5897 esac
5898 rm -f conftest.make
5899 fi
5900 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5902 $as_echo "yes" >&6; }
5903 SET_MAKE=
5904 else
5905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5906 $as_echo "no" >&6; }
5907 SET_MAKE="MAKE=${MAKE-make}"
5908 fi
5909
5910
5911 ac_ext=c
5912 ac_cpp='$CPP $CPPFLAGS'
5913 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5914 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5915 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5916 if test -n "$ac_tool_prefix"; then
5917 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5918 set dummy ${ac_tool_prefix}gcc; ac_word=$2
5919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5920 $as_echo_n "checking for $ac_word... " >&6; }
5921 if ${ac_cv_prog_CC+:} false; then :
5922 $as_echo_n "(cached) " >&6
5923 else
5924 if test -n "$CC"; then
5925 ac_cv_prog_CC="$CC" # Let the user override the test.
5926 else
5927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5928 for as_dir in $PATH
5929 do
5930 IFS=$as_save_IFS
5931 test -z "$as_dir" && as_dir=.
5932 for ac_exec_ext in '' $ac_executable_extensions; do
5933 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5934 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5935 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5936 break 2
5937 fi
5938 done
5939 done
5940 IFS=$as_save_IFS
5941
5942 fi
5943 fi
5944 CC=$ac_cv_prog_CC
5945 if test -n "$CC"; then
5946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5947 $as_echo "$CC" >&6; }
5948 else
5949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5950 $as_echo "no" >&6; }
5951 fi
5952
5953
5954 fi
5955 if test -z "$ac_cv_prog_CC"; then
5956 ac_ct_CC=$CC
5957 # Extract the first word of "gcc", so it can be a program name with args.
5958 set dummy gcc; ac_word=$2
5959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5960 $as_echo_n "checking for $ac_word... " >&6; }
5961 if ${ac_cv_prog_ac_ct_CC+:} false; then :
5962 $as_echo_n "(cached) " >&6
5963 else
5964 if test -n "$ac_ct_CC"; then
5965 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5966 else
5967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5968 for as_dir in $PATH
5969 do
5970 IFS=$as_save_IFS
5971 test -z "$as_dir" && as_dir=.
5972 for ac_exec_ext in '' $ac_executable_extensions; do
5973 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5974 ac_cv_prog_ac_ct_CC="gcc"
5975 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5976 break 2
5977 fi
5978 done
5979 done
5980 IFS=$as_save_IFS
5981
5982 fi
5983 fi
5984 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5985 if test -n "$ac_ct_CC"; then
5986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5987 $as_echo "$ac_ct_CC" >&6; }
5988 else
5989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5990 $as_echo "no" >&6; }
5991 fi
5992
5993 if test "x$ac_ct_CC" = x; then
5994 CC=""
5995 else
5996 case $cross_compiling:$ac_tool_warned in
5997 yes:)
5998 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5999 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6000 ac_tool_warned=yes ;;
6001 esac
6002 CC=$ac_ct_CC
6003 fi
6004 else
6005 CC="$ac_cv_prog_CC"
6006 fi
6007
6008 if test -z "$CC"; then
6009 if test -n "$ac_tool_prefix"; then
6010 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
6011 set dummy ${ac_tool_prefix}cc; ac_word=$2
6012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6013 $as_echo_n "checking for $ac_word... " >&6; }
6014 if ${ac_cv_prog_CC+:} false; then :
6015 $as_echo_n "(cached) " >&6
6016 else
6017 if test -n "$CC"; then
6018 ac_cv_prog_CC="$CC" # Let the user override the test.
6019 else
6020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6021 for as_dir in $PATH
6022 do
6023 IFS=$as_save_IFS
6024 test -z "$as_dir" && as_dir=.
6025 for ac_exec_ext in '' $ac_executable_extensions; do
6026 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6027 ac_cv_prog_CC="${ac_tool_prefix}cc"
6028 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6029 break 2
6030 fi
6031 done
6032 done
6033 IFS=$as_save_IFS
6034
6035 fi
6036 fi
6037 CC=$ac_cv_prog_CC
6038 if test -n "$CC"; then
6039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6040 $as_echo "$CC" >&6; }
6041 else
6042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6043 $as_echo "no" >&6; }
6044 fi
6045
6046
6047 fi
6048 fi
6049 if test -z "$CC"; then
6050 # Extract the first word of "cc", so it can be a program name with args.
6051 set dummy cc; ac_word=$2
6052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6053 $as_echo_n "checking for $ac_word... " >&6; }
6054 if ${ac_cv_prog_CC+:} false; then :
6055 $as_echo_n "(cached) " >&6
6056 else
6057 if test -n "$CC"; then
6058 ac_cv_prog_CC="$CC" # Let the user override the test.
6059 else
6060 ac_prog_rejected=no
6061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6062 for as_dir in $PATH
6063 do
6064 IFS=$as_save_IFS
6065 test -z "$as_dir" && as_dir=.
6066 for ac_exec_ext in '' $ac_executable_extensions; do
6067 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6068 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
6069 ac_prog_rejected=yes
6070 continue
6071 fi
6072 ac_cv_prog_CC="cc"
6073 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6074 break 2
6075 fi
6076 done
6077 done
6078 IFS=$as_save_IFS
6079
6080 if test $ac_prog_rejected = yes; then
6081 # We found a bogon in the path, so make sure we never use it.
6082 set dummy $ac_cv_prog_CC
6083 shift
6084 if test $# != 0; then
6085 # We chose a different compiler from the bogus one.
6086 # However, it has the same basename, so the bogon will be chosen
6087 # first if we set CC to just the basename; use the full file name.
6088 shift
6089 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
6090 fi
6091 fi
6092 fi
6093 fi
6094 CC=$ac_cv_prog_CC
6095 if test -n "$CC"; then
6096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6097 $as_echo "$CC" >&6; }
6098 else
6099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6100 $as_echo "no" >&6; }
6101 fi
6102
6103
6104 fi
6105 if test -z "$CC"; then
6106 if test -n "$ac_tool_prefix"; then
6107 for ac_prog in cl.exe
6108 do
6109 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6110 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6112 $as_echo_n "checking for $ac_word... " >&6; }
6113 if ${ac_cv_prog_CC+:} false; then :
6114 $as_echo_n "(cached) " >&6
6115 else
6116 if test -n "$CC"; then
6117 ac_cv_prog_CC="$CC" # Let the user override the test.
6118 else
6119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6120 for as_dir in $PATH
6121 do
6122 IFS=$as_save_IFS
6123 test -z "$as_dir" && as_dir=.
6124 for ac_exec_ext in '' $ac_executable_extensions; do
6125 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6126 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
6127 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6128 break 2
6129 fi
6130 done
6131 done
6132 IFS=$as_save_IFS
6133
6134 fi
6135 fi
6136 CC=$ac_cv_prog_CC
6137 if test -n "$CC"; then
6138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6139 $as_echo "$CC" >&6; }
6140 else
6141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6142 $as_echo "no" >&6; }
6143 fi
6144
6145
6146 test -n "$CC" && break
6147 done
6148 fi
6149 if test -z "$CC"; then
6150 ac_ct_CC=$CC
6151 for ac_prog in cl.exe
6152 do
6153 # Extract the first word of "$ac_prog", so it can be a program name with args.
6154 set dummy $ac_prog; ac_word=$2
6155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6156 $as_echo_n "checking for $ac_word... " >&6; }
6157 if ${ac_cv_prog_ac_ct_CC+:} false; then :
6158 $as_echo_n "(cached) " >&6
6159 else
6160 if test -n "$ac_ct_CC"; then
6161 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
6162 else
6163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6164 for as_dir in $PATH
6165 do
6166 IFS=$as_save_IFS
6167 test -z "$as_dir" && as_dir=.
6168 for ac_exec_ext in '' $ac_executable_extensions; do
6169 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6170 ac_cv_prog_ac_ct_CC="$ac_prog"
6171 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6172 break 2
6173 fi
6174 done
6175 done
6176 IFS=$as_save_IFS
6177
6178 fi
6179 fi
6180 ac_ct_CC=$ac_cv_prog_ac_ct_CC
6181 if test -n "$ac_ct_CC"; then
6182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
6183 $as_echo "$ac_ct_CC" >&6; }
6184 else
6185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6186 $as_echo "no" >&6; }
6187 fi
6188
6189
6190 test -n "$ac_ct_CC" && break
6191 done
6192
6193 if test "x$ac_ct_CC" = x; then
6194 CC=""
6195 else
6196 case $cross_compiling:$ac_tool_warned in
6197 yes:)
6198 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6199 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6200 ac_tool_warned=yes ;;
6201 esac
6202 CC=$ac_ct_CC
6203 fi
6204 fi
6205
6206 fi
6207
6208
6209 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6210 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6211 as_fn_error $? "no acceptable C compiler found in \$PATH
6212 See \`config.log' for more details" "$LINENO" 5; }
6213
6214 # Provide some information about the compiler.
6215 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
6216 set X $ac_compile
6217 ac_compiler=$2
6218 for ac_option in --version -v -V -qversion; do
6219 { { ac_try="$ac_compiler $ac_option >&5"
6220 case "(($ac_try" in
6221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6222 *) ac_try_echo=$ac_try;;
6223 esac
6224 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6225 $as_echo "$ac_try_echo"; } >&5
6226 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6227 ac_status=$?
6228 if test -s conftest.err; then
6229 sed '10a\
6230 ... rest of stderr output deleted ...
6231 10q' conftest.err >conftest.er1
6232 cat conftest.er1 >&5
6233 fi
6234 rm -f conftest.er1 conftest.err
6235 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6236 test $ac_status = 0; }
6237 done
6238
6239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
6240 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
6241 if ${ac_cv_c_compiler_gnu+:} false; then :
6242 $as_echo_n "(cached) " >&6
6243 else
6244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6245 /* end confdefs.h. */
6246
6247 int
6248 main ()
6249 {
6250 #ifndef __GNUC__
6251 choke me
6252 #endif
6253
6254 ;
6255 return 0;
6256 }
6257 _ACEOF
6258 if ac_fn_c_try_compile "$LINENO"; then :
6259 ac_compiler_gnu=yes
6260 else
6261 ac_compiler_gnu=no
6262 fi
6263 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6264 ac_cv_c_compiler_gnu=$ac_compiler_gnu
6265
6266 fi
6267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
6268 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
6269 if test $ac_compiler_gnu = yes; then
6270 GCC=yes
6271 else
6272 GCC=
6273 fi
6274 ac_test_CFLAGS=${CFLAGS+set}
6275 ac_save_CFLAGS=$CFLAGS
6276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
6277 $as_echo_n "checking whether $CC accepts -g... " >&6; }
6278 if ${ac_cv_prog_cc_g+:} false; then :
6279 $as_echo_n "(cached) " >&6
6280 else
6281 ac_save_c_werror_flag=$ac_c_werror_flag
6282 ac_c_werror_flag=yes
6283 ac_cv_prog_cc_g=no
6284 CFLAGS="-g"
6285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6286 /* end confdefs.h. */
6287
6288 int
6289 main ()
6290 {
6291
6292 ;
6293 return 0;
6294 }
6295 _ACEOF
6296 if ac_fn_c_try_compile "$LINENO"; then :
6297 ac_cv_prog_cc_g=yes
6298 else
6299 CFLAGS=""
6300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6301 /* end confdefs.h. */
6302
6303 int
6304 main ()
6305 {
6306
6307 ;
6308 return 0;
6309 }
6310 _ACEOF
6311 if ac_fn_c_try_compile "$LINENO"; then :
6312
6313 else
6314 ac_c_werror_flag=$ac_save_c_werror_flag
6315 CFLAGS="-g"
6316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6317 /* end confdefs.h. */
6318
6319 int
6320 main ()
6321 {
6322
6323 ;
6324 return 0;
6325 }
6326 _ACEOF
6327 if ac_fn_c_try_compile "$LINENO"; then :
6328 ac_cv_prog_cc_g=yes
6329 fi
6330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6331 fi
6332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6333 fi
6334 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6335 ac_c_werror_flag=$ac_save_c_werror_flag
6336 fi
6337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
6338 $as_echo "$ac_cv_prog_cc_g" >&6; }
6339 if test "$ac_test_CFLAGS" = set; then
6340 CFLAGS=$ac_save_CFLAGS
6341 elif test $ac_cv_prog_cc_g = yes; then
6342 if test "$GCC" = yes; then
6343 CFLAGS="-g -O2"
6344 else
6345 CFLAGS="-g"
6346 fi
6347 else
6348 if test "$GCC" = yes; then
6349 CFLAGS="-O2"
6350 else
6351 CFLAGS=
6352 fi
6353 fi
6354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6355 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
6356 if ${ac_cv_prog_cc_c89+:} false; then :
6357 $as_echo_n "(cached) " >&6
6358 else
6359 ac_cv_prog_cc_c89=no
6360 ac_save_CC=$CC
6361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6362 /* end confdefs.h. */
6363 #include <stdarg.h>
6364 #include <stdio.h>
6365 struct stat;
6366 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6367 struct buf { int x; };
6368 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6369 static char *e (p, i)
6370 char **p;
6371 int i;
6372 {
6373 return p[i];
6374 }
6375 static char *f (char * (*g) (char **, int), char **p, ...)
6376 {
6377 char *s;
6378 va_list v;
6379 va_start (v,p);
6380 s = g (p, va_arg (v,int));
6381 va_end (v);
6382 return s;
6383 }
6384
6385 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6386 function prototypes and stuff, but not '\xHH' hex character constants.
6387 These don't provoke an error unfortunately, instead are silently treated
6388 as 'x'. The following induces an error, until -std is added to get
6389 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6390 array size at least. It's necessary to write '\x00'==0 to get something
6391 that's true only with -std. */
6392 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6393
6394 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6395 inside strings and character constants. */
6396 #define FOO(x) 'x'
6397 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6398
6399 int test (int i, double x);
6400 struct s1 {int (*f) (int a);};
6401 struct s2 {int (*f) (double a);};
6402 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6403 int argc;
6404 char **argv;
6405 int
6406 main ()
6407 {
6408 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6409 ;
6410 return 0;
6411 }
6412 _ACEOF
6413 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6414 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6415 do
6416 CC="$ac_save_CC $ac_arg"
6417 if ac_fn_c_try_compile "$LINENO"; then :
6418 ac_cv_prog_cc_c89=$ac_arg
6419 fi
6420 rm -f core conftest.err conftest.$ac_objext
6421 test "x$ac_cv_prog_cc_c89" != "xno" && break
6422 done
6423 rm -f conftest.$ac_ext
6424 CC=$ac_save_CC
6425
6426 fi
6427 # AC_CACHE_VAL
6428 case "x$ac_cv_prog_cc_c89" in
6429 x)
6430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6431 $as_echo "none needed" >&6; } ;;
6432 xno)
6433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6434 $as_echo "unsupported" >&6; } ;;
6435 *)
6436 CC="$CC $ac_cv_prog_cc_c89"
6437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6438 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6439 esac
6440 if test "x$ac_cv_prog_cc_c89" != xno; then :
6441
6442 fi
6443
6444 ac_ext=c
6445 ac_cpp='$CPP $CPPFLAGS'
6446 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6447 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6448 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6449
6450 ac_ext=c
6451 ac_cpp='$CPP $CPPFLAGS'
6452 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6453 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6454 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
6456 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
6457 if ${am_cv_prog_cc_c_o+:} false; then :
6458 $as_echo_n "(cached) " >&6
6459 else
6460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6461 /* end confdefs.h. */
6462
6463 int
6464 main ()
6465 {
6466
6467 ;
6468 return 0;
6469 }
6470 _ACEOF
6471 # Make sure it works both with $CC and with simple cc.
6472 # Following AC_PROG_CC_C_O, we do the test twice because some
6473 # compilers refuse to overwrite an existing .o file with -o,
6474 # though they will create one.
6475 am_cv_prog_cc_c_o=yes
6476 for am_i in 1 2; do
6477 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
6478 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
6479 ac_status=$?
6480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6481 (exit $ac_status); } \
6482 && test -f conftest2.$ac_objext; then
6483 : OK
6484 else
6485 am_cv_prog_cc_c_o=no
6486 break
6487 fi
6488 done
6489 rm -f core conftest*
6490 unset am_i
6491 fi
6492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
6493 $as_echo "$am_cv_prog_cc_c_o" >&6; }
6494 if test "$am_cv_prog_cc_c_o" != yes; then
6495 # Losing compiler, so override with the script.
6496 # FIXME: It is wrong to rewrite CC.
6497 # But if we don't then we get into trouble of one sort or another.
6498 # A longer-term fix would be to have automake use am__CC in this case,
6499 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
6500 CC="$am_aux_dir/compile $CC"
6501 fi
6502 ac_ext=c
6503 ac_cpp='$CPP $CPPFLAGS'
6504 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6505 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6506 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6507
6508
6509 depcc="$CC" am_compiler_list=
6510
6511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6512 $as_echo_n "checking dependency style of $depcc... " >&6; }
6513 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
6514 $as_echo_n "(cached) " >&6
6515 else
6516 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6517 # We make a subdir and do the tests there. Otherwise we can end up
6518 # making bogus files that we don't know about and never remove. For
6519 # instance it was reported that on HP-UX the gcc test will end up
6520 # making a dummy file named 'D' -- because '-MD' means "put the output
6521 # in D".
6522 rm -rf conftest.dir
6523 mkdir conftest.dir
6524 # Copy depcomp to subdir because otherwise we won't find it if we're
6525 # using a relative directory.
6526 cp "$am_depcomp" conftest.dir
6527 cd conftest.dir
6528 # We will build objects and dependencies in a subdirectory because
6529 # it helps to detect inapplicable dependency modes. For instance
6530 # both Tru64's cc and ICC support -MD to output dependencies as a
6531 # side effect of compilation, but ICC will put the dependencies in
6532 # the current directory while Tru64 will put them in the object
6533 # directory.
6534 mkdir sub
6535
6536 am_cv_CC_dependencies_compiler_type=none
6537 if test "$am_compiler_list" = ""; then
6538 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6539 fi
6540 am__universal=false
6541 case " $depcc " in #(
6542 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6543 esac
6544
6545 for depmode in $am_compiler_list; do
6546 # Setup a source with many dependencies, because some compilers
6547 # like to wrap large dependency lists on column 80 (with \), and
6548 # we should not choose a depcomp mode which is confused by this.
6549 #
6550 # We need to recreate these files for each test, as the compiler may
6551 # overwrite some of them when testing with obscure command lines.
6552 # This happens at least with the AIX C compiler.
6553 : > sub/conftest.c
6554 for i in 1 2 3 4 5 6; do
6555 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6556 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6557 # Solaris 10 /bin/sh.
6558 echo '/* dummy */' > sub/conftst$i.h
6559 done
6560 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6561
6562 # We check with '-c' and '-o' for the sake of the "dashmstdout"
6563 # mode. It turns out that the SunPro C++ compiler does not properly
6564 # handle '-M -o', and we need to detect this. Also, some Intel
6565 # versions had trouble with output in subdirs.
6566 am__obj=sub/conftest.${OBJEXT-o}
6567 am__minus_obj="-o $am__obj"
6568 case $depmode in
6569 gcc)
6570 # This depmode causes a compiler race in universal mode.
6571 test "$am__universal" = false || continue
6572 ;;
6573 nosideeffect)
6574 # After this tag, mechanisms are not by side-effect, so they'll
6575 # only be used when explicitly requested.
6576 if test "x$enable_dependency_tracking" = xyes; then
6577 continue
6578 else
6579 break
6580 fi
6581 ;;
6582 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
6583 # This compiler won't grok '-c -o', but also, the minuso test has
6584 # not run yet. These depmodes are late enough in the game, and
6585 # so weak that their functioning should not be impacted.
6586 am__obj=conftest.${OBJEXT-o}
6587 am__minus_obj=
6588 ;;
6589 none) break ;;
6590 esac
6591 if depmode=$depmode \
6592 source=sub/conftest.c object=$am__obj \
6593 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6594 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6595 >/dev/null 2>conftest.err &&
6596 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6597 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6598 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6599 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6600 # icc doesn't choke on unknown options, it will just issue warnings
6601 # or remarks (even with -Werror). So we grep stderr for any message
6602 # that says an option was ignored or not supported.
6603 # When given -MP, icc 7.0 and 7.1 complain thusly:
6604 # icc: Command line warning: ignoring option '-M'; no argument required
6605 # The diagnosis changed in icc 8.0:
6606 # icc: Command line remark: option '-MP' not supported
6607 if (grep 'ignoring option' conftest.err ||
6608 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6609 am_cv_CC_dependencies_compiler_type=$depmode
6610 break
6611 fi
6612 fi
6613 done
6614
6615 cd ..
6616 rm -rf conftest.dir
6617 else
6618 am_cv_CC_dependencies_compiler_type=none
6619 fi
6620
6621 fi
6622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6623 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6624 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6625
6626 if
6627 test "x$enable_dependency_tracking" != xno \
6628 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6629 am__fastdepCC_TRUE=
6630 am__fastdepCC_FALSE='#'
6631 else
6632 am__fastdepCC_TRUE='#'
6633 am__fastdepCC_FALSE=
6634 fi
6635
6636
6637
6638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6639 $as_echo_n "checking whether ln -s works... " >&6; }
6640 LN_S=$as_ln_s
6641 if test "$LN_S" = "ln -s"; then
6642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6643 $as_echo "yes" >&6; }
6644 else
6645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6646 $as_echo "no, using $LN_S" >&6; }
6647 fi
6648
6649 for ac_prog in flex lex
6650 do
6651 # Extract the first word of "$ac_prog", so it can be a program name with args.
6652 set dummy $ac_prog; ac_word=$2
6653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6654 $as_echo_n "checking for $ac_word... " >&6; }
6655 if ${ac_cv_prog_LEX+:} false; then :
6656 $as_echo_n "(cached) " >&6
6657 else
6658 if test -n "$LEX"; then
6659 ac_cv_prog_LEX="$LEX" # Let the user override the test.
6660 else
6661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6662 for as_dir in $PATH
6663 do
6664 IFS=$as_save_IFS
6665 test -z "$as_dir" && as_dir=.
6666 for ac_exec_ext in '' $ac_executable_extensions; do
6667 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6668 ac_cv_prog_LEX="$ac_prog"
6669 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6670 break 2
6671 fi
6672 done
6673 done
6674 IFS=$as_save_IFS
6675
6676 fi
6677 fi
6678 LEX=$ac_cv_prog_LEX
6679 if test -n "$LEX"; then
6680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
6681 $as_echo "$LEX" >&6; }
6682 else
6683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6684 $as_echo "no" >&6; }
6685 fi
6686
6687
6688 test -n "$LEX" && break
6689 done
6690 test -n "$LEX" || LEX=":"
6691
6692 if test "x$LEX" != "x:"; then
6693 cat >conftest.l <<_ACEOF
6694 %%
6695 a { ECHO; }
6696 b { REJECT; }
6697 c { yymore (); }
6698 d { yyless (1); }
6699 e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument. */
6700 yyless ((input () != 0)); }
6701 f { unput (yytext[0]); }
6702 . { BEGIN INITIAL; }
6703 %%
6704 #ifdef YYTEXT_POINTER
6705 extern char *yytext;
6706 #endif
6707 int
6708 main (void)
6709 {
6710 return ! yylex () + ! yywrap ();
6711 }
6712 _ACEOF
6713 { { ac_try="$LEX conftest.l"
6714 case "(($ac_try" in
6715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6716 *) ac_try_echo=$ac_try;;
6717 esac
6718 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6719 $as_echo "$ac_try_echo"; } >&5
6720 (eval "$LEX conftest.l") 2>&5
6721 ac_status=$?
6722 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6723 test $ac_status = 0; }
6724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
6725 $as_echo_n "checking lex output file root... " >&6; }
6726 if ${ac_cv_prog_lex_root+:} false; then :
6727 $as_echo_n "(cached) " >&6
6728 else
6729
6730 if test -f lex.yy.c; then
6731 ac_cv_prog_lex_root=lex.yy
6732 elif test -f lexyy.c; then
6733 ac_cv_prog_lex_root=lexyy
6734 else
6735 as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5
6736 fi
6737 fi
6738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
6739 $as_echo "$ac_cv_prog_lex_root" >&6; }
6740 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
6741
6742 if test -z "${LEXLIB+set}"; then
6743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
6744 $as_echo_n "checking lex library... " >&6; }
6745 if ${ac_cv_lib_lex+:} false; then :
6746 $as_echo_n "(cached) " >&6
6747 else
6748
6749 ac_save_LIBS=$LIBS
6750 ac_cv_lib_lex='none needed'
6751 for ac_lib in '' -lfl -ll; do
6752 LIBS="$ac_lib $ac_save_LIBS"
6753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6754 /* end confdefs.h. */
6755 `cat $LEX_OUTPUT_ROOT.c`
6756 _ACEOF
6757 if ac_fn_c_try_link "$LINENO"; then :
6758 ac_cv_lib_lex=$ac_lib
6759 fi
6760 rm -f core conftest.err conftest.$ac_objext \
6761 conftest$ac_exeext conftest.$ac_ext
6762 test "$ac_cv_lib_lex" != 'none needed' && break
6763 done
6764 LIBS=$ac_save_LIBS
6765
6766 fi
6767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
6768 $as_echo "$ac_cv_lib_lex" >&6; }
6769 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
6770 fi
6771
6772
6773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
6774 $as_echo_n "checking whether yytext is a pointer... " >&6; }
6775 if ${ac_cv_prog_lex_yytext_pointer+:} false; then :
6776 $as_echo_n "(cached) " >&6
6777 else
6778 # POSIX says lex can declare yytext either as a pointer or an array; the
6779 # default is implementation-dependent. Figure out which it is, since
6780 # not all implementations provide the %pointer and %array declarations.
6781 ac_cv_prog_lex_yytext_pointer=no
6782 ac_save_LIBS=$LIBS
6783 LIBS="$LEXLIB $ac_save_LIBS"
6784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6785 /* end confdefs.h. */
6786
6787 #define YYTEXT_POINTER 1
6788 `cat $LEX_OUTPUT_ROOT.c`
6789 _ACEOF
6790 if ac_fn_c_try_link "$LINENO"; then :
6791 ac_cv_prog_lex_yytext_pointer=yes
6792 fi
6793 rm -f core conftest.err conftest.$ac_objext \
6794 conftest$ac_exeext conftest.$ac_ext
6795 LIBS=$ac_save_LIBS
6796
6797 fi
6798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
6799 $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
6800 if test $ac_cv_prog_lex_yytext_pointer = yes; then
6801
6802 $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
6803
6804 fi
6805 rm -f conftest.l $LEX_OUTPUT_ROOT.c
6806
6807 fi
6808 if test "$LEX" = :; then
6809 LEX=${am_missing_run}flex
6810 fi
6811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6812 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6813 if ${ac_cv_path_SED+:} false; then :
6814 $as_echo_n "(cached) " >&6
6815 else
6816 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6817 for ac_i in 1 2 3 4 5 6 7; do
6818 ac_script="$ac_script$as_nl$ac_script"
6819 done
6820 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6821 { ac_script=; unset ac_script;}
6822 if test -z "$SED"; then
6823 ac_path_SED_found=false
6824 # Loop through the user's path and test for each of PROGNAME-LIST
6825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6826 for as_dir in $PATH
6827 do
6828 IFS=$as_save_IFS
6829 test -z "$as_dir" && as_dir=.
6830 for ac_prog in sed gsed; do
6831 for ac_exec_ext in '' $ac_executable_extensions; do
6832 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6833 as_fn_executable_p "$ac_path_SED" || continue
6834 # Check for GNU ac_path_SED and select it if it is found.
6835 # Check for GNU $ac_path_SED
6836 case `"$ac_path_SED" --version 2>&1` in
6837 *GNU*)
6838 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6839 *)
6840 ac_count=0
6841 $as_echo_n 0123456789 >"conftest.in"
6842 while :
6843 do
6844 cat "conftest.in" "conftest.in" >"conftest.tmp"
6845 mv "conftest.tmp" "conftest.in"
6846 cp "conftest.in" "conftest.nl"
6847 $as_echo '' >> "conftest.nl"
6848 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6849 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6850 as_fn_arith $ac_count + 1 && ac_count=$as_val
6851 if test $ac_count -gt ${ac_path_SED_max-0}; then
6852 # Best one so far, save it but keep looking for a better one
6853 ac_cv_path_SED="$ac_path_SED"
6854 ac_path_SED_max=$ac_count
6855 fi
6856 # 10*(2^10) chars as input seems more than enough
6857 test $ac_count -gt 10 && break
6858 done
6859 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6860 esac
6861
6862 $ac_path_SED_found && break 3
6863 done
6864 done
6865 done
6866 IFS=$as_save_IFS
6867 if test -z "$ac_cv_path_SED"; then
6868 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6869 fi
6870 else
6871 ac_cv_path_SED=$SED
6872 fi
6873
6874 fi
6875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6876 $as_echo "$ac_cv_path_SED" >&6; }
6877 SED="$ac_cv_path_SED"
6878 rm -f conftest.sed
6879
6880 for ac_prog in 'bison -y' byacc
6881 do
6882 # Extract the first word of "$ac_prog", so it can be a program name with args.
6883 set dummy $ac_prog; ac_word=$2
6884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6885 $as_echo_n "checking for $ac_word... " >&6; }
6886 if ${ac_cv_prog_YACC+:} false; then :
6887 $as_echo_n "(cached) " >&6
6888 else
6889 if test -n "$YACC"; then
6890 ac_cv_prog_YACC="$YACC" # Let the user override the test.
6891 else
6892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6893 for as_dir in $PATH
6894 do
6895 IFS=$as_save_IFS
6896 test -z "$as_dir" && as_dir=.
6897 for ac_exec_ext in '' $ac_executable_extensions; do
6898 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6899 ac_cv_prog_YACC="$ac_prog"
6900 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6901 break 2
6902 fi
6903 done
6904 done
6905 IFS=$as_save_IFS
6906
6907 fi
6908 fi
6909 YACC=$ac_cv_prog_YACC
6910 if test -n "$YACC"; then
6911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
6912 $as_echo "$YACC" >&6; }
6913 else
6914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6915 $as_echo "no" >&6; }
6916 fi
6917
6918
6919 test -n "$YACC" && break
6920 done
6921 test -n "$YACC" || YACC="yacc"
6922
6923 case `pwd` in
6924 *\ * | *\ *)
6925 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6926 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6927 esac
6928
6929
6930
6931 macro_version='2.4.6'
6932 macro_revision='2.4.6'
6933
6934
6935
6936
6937
6938
6939
6940
6941
6942
6943
6944
6945
6946 ltmain=$ac_aux_dir/ltmain.sh
6947
6948 # Backslashify metacharacters that are still active within
6949 # double-quoted strings.
6950 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6951
6952 # Same as above, but do not quote variable references.
6953 double_quote_subst='s/\(["`\\]\)/\\\1/g'
6954
6955 # Sed substitution to delay expansion of an escaped shell variable in a
6956 # double_quote_subst'ed string.
6957 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6958
6959 # Sed substitution to delay expansion of an escaped single quote.
6960 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6961
6962 # Sed substitution to avoid accidental globbing in evaled expressions
6963 no_glob_subst='s/\*/\\\*/g'
6964
6965 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6966 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
6967 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
6968
6969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
6970 $as_echo_n "checking how to print strings... " >&6; }
6971 # Test print first, because it will be a builtin if present.
6972 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
6973 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6974 ECHO='print -r --'
6975 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6976 ECHO='printf %s\n'
6977 else
6978 # Use this function as a fallback that always works.
6979 func_fallback_echo ()
6980 {
6981 eval 'cat <<_LTECHO_EOF
6982 $1
6983 _LTECHO_EOF'
6984 }
6985 ECHO='func_fallback_echo'
6986 fi
6987
6988 # func_echo_all arg...
6989 # Invoke $ECHO with all args, space-separated.
6990 func_echo_all ()
6991 {
6992 $ECHO ""
6993 }
6994
6995 case $ECHO in
6996 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6997 $as_echo "printf" >&6; } ;;
6998 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6999 $as_echo "print -r" >&6; } ;;
7000 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
7001 $as_echo "cat" >&6; } ;;
7002 esac
7003
7004
7005
7006
7007
7008
7009
7010
7011
7012
7013
7014
7015
7016
7017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
7018 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
7019 if ${ac_cv_path_SED+:} false; then :
7020 $as_echo_n "(cached) " >&6
7021 else
7022 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
7023 for ac_i in 1 2 3 4 5 6 7; do
7024 ac_script="$ac_script$as_nl$ac_script"
7025 done
7026 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
7027 { ac_script=; unset ac_script;}
7028 if test -z "$SED"; then
7029 ac_path_SED_found=false
7030 # Loop through the user's path and test for each of PROGNAME-LIST
7031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7032 for as_dir in $PATH
7033 do
7034 IFS=$as_save_IFS
7035 test -z "$as_dir" && as_dir=.
7036 for ac_prog in sed gsed; do
7037 for ac_exec_ext in '' $ac_executable_extensions; do
7038 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
7039 as_fn_executable_p "$ac_path_SED" || continue
7040 # Check for GNU ac_path_SED and select it if it is found.
7041 # Check for GNU $ac_path_SED
7042 case `"$ac_path_SED" --version 2>&1` in
7043 *GNU*)
7044 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
7045 *)
7046 ac_count=0
7047 $as_echo_n 0123456789 >"conftest.in"
7048 while :
7049 do
7050 cat "conftest.in" "conftest.in" >"conftest.tmp"
7051 mv "conftest.tmp" "conftest.in"
7052 cp "conftest.in" "conftest.nl"
7053 $as_echo '' >> "conftest.nl"
7054 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7055 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7056 as_fn_arith $ac_count + 1 && ac_count=$as_val
7057 if test $ac_count -gt ${ac_path_SED_max-0}; then
7058 # Best one so far, save it but keep looking for a better one
7059 ac_cv_path_SED="$ac_path_SED"
7060 ac_path_SED_max=$ac_count
7061 fi
7062 # 10*(2^10) chars as input seems more than enough
7063 test $ac_count -gt 10 && break
7064 done
7065 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7066 esac
7067
7068 $ac_path_SED_found && break 3
7069 done
7070 done
7071 done
7072 IFS=$as_save_IFS
7073 if test -z "$ac_cv_path_SED"; then
7074 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
7075 fi
7076 else
7077 ac_cv_path_SED=$SED
7078 fi
7079
7080 fi
7081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
7082 $as_echo "$ac_cv_path_SED" >&6; }
7083 SED="$ac_cv_path_SED"
7084 rm -f conftest.sed
7085
7086 test -z "$SED" && SED=sed
7087 Xsed="$SED -e 1s/^X//"
7088
7089
7090
7091
7092
7093
7094
7095
7096
7097
7098
7099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
7100 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
7101 if ${ac_cv_path_GREP+:} false; then :
7102 $as_echo_n "(cached) " >&6
7103 else
7104 if test -z "$GREP"; then
7105 ac_path_GREP_found=false
7106 # Loop through the user's path and test for each of PROGNAME-LIST
7107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7108 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7109 do
7110 IFS=$as_save_IFS
7111 test -z "$as_dir" && as_dir=.
7112 for ac_prog in grep ggrep; do
7113 for ac_exec_ext in '' $ac_executable_extensions; do
7114 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
7115 as_fn_executable_p "$ac_path_GREP" || continue
7116 # Check for GNU ac_path_GREP and select it if it is found.
7117 # Check for GNU $ac_path_GREP
7118 case `"$ac_path_GREP" --version 2>&1` in
7119 *GNU*)
7120 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
7121 *)
7122 ac_count=0
7123 $as_echo_n 0123456789 >"conftest.in"
7124 while :
7125 do
7126 cat "conftest.in" "conftest.in" >"conftest.tmp"
7127 mv "conftest.tmp" "conftest.in"
7128 cp "conftest.in" "conftest.nl"
7129 $as_echo 'GREP' >> "conftest.nl"
7130 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7131 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7132 as_fn_arith $ac_count + 1 && ac_count=$as_val
7133 if test $ac_count -gt ${ac_path_GREP_max-0}; then
7134 # Best one so far, save it but keep looking for a better one
7135 ac_cv_path_GREP="$ac_path_GREP"
7136 ac_path_GREP_max=$ac_count
7137 fi
7138 # 10*(2^10) chars as input seems more than enough
7139 test $ac_count -gt 10 && break
7140 done
7141 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7142 esac
7143
7144 $ac_path_GREP_found && break 3
7145 done
7146 done
7147 done
7148 IFS=$as_save_IFS
7149 if test -z "$ac_cv_path_GREP"; then
7150 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7151 fi
7152 else
7153 ac_cv_path_GREP=$GREP
7154 fi
7155
7156 fi
7157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
7158 $as_echo "$ac_cv_path_GREP" >&6; }
7159 GREP="$ac_cv_path_GREP"
7160
7161
7162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
7163 $as_echo_n "checking for egrep... " >&6; }
7164 if ${ac_cv_path_EGREP+:} false; then :
7165 $as_echo_n "(cached) " >&6
7166 else
7167 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
7168 then ac_cv_path_EGREP="$GREP -E"
7169 else
7170 if test -z "$EGREP"; then
7171 ac_path_EGREP_found=false
7172 # Loop through the user's path and test for each of PROGNAME-LIST
7173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7174 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7175 do
7176 IFS=$as_save_IFS
7177 test -z "$as_dir" && as_dir=.
7178 for ac_prog in egrep; do
7179 for ac_exec_ext in '' $ac_executable_extensions; do
7180 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
7181 as_fn_executable_p "$ac_path_EGREP" || continue
7182 # Check for GNU ac_path_EGREP and select it if it is found.
7183 # Check for GNU $ac_path_EGREP
7184 case `"$ac_path_EGREP" --version 2>&1` in
7185 *GNU*)
7186 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
7187 *)
7188 ac_count=0
7189 $as_echo_n 0123456789 >"conftest.in"
7190 while :
7191 do
7192 cat "conftest.in" "conftest.in" >"conftest.tmp"
7193 mv "conftest.tmp" "conftest.in"
7194 cp "conftest.in" "conftest.nl"
7195 $as_echo 'EGREP' >> "conftest.nl"
7196 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7197 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7198 as_fn_arith $ac_count + 1 && ac_count=$as_val
7199 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
7200 # Best one so far, save it but keep looking for a better one
7201 ac_cv_path_EGREP="$ac_path_EGREP"
7202 ac_path_EGREP_max=$ac_count
7203 fi
7204 # 10*(2^10) chars as input seems more than enough
7205 test $ac_count -gt 10 && break
7206 done
7207 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7208 esac
7209
7210 $ac_path_EGREP_found && break 3
7211 done
7212 done
7213 done
7214 IFS=$as_save_IFS
7215 if test -z "$ac_cv_path_EGREP"; then
7216 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7217 fi
7218 else
7219 ac_cv_path_EGREP=$EGREP
7220 fi
7221
7222 fi
7223 fi
7224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
7225 $as_echo "$ac_cv_path_EGREP" >&6; }
7226 EGREP="$ac_cv_path_EGREP"
7227
7228
7229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
7230 $as_echo_n "checking for fgrep... " >&6; }
7231 if ${ac_cv_path_FGREP+:} false; then :
7232 $as_echo_n "(cached) " >&6
7233 else
7234 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7235 then ac_cv_path_FGREP="$GREP -F"
7236 else
7237 if test -z "$FGREP"; then
7238 ac_path_FGREP_found=false
7239 # Loop through the user's path and test for each of PROGNAME-LIST
7240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7241 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7242 do
7243 IFS=$as_save_IFS
7244 test -z "$as_dir" && as_dir=.
7245 for ac_prog in fgrep; do
7246 for ac_exec_ext in '' $ac_executable_extensions; do
7247 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
7248 as_fn_executable_p "$ac_path_FGREP" || continue
7249 # Check for GNU ac_path_FGREP and select it if it is found.
7250 # Check for GNU $ac_path_FGREP
7251 case `"$ac_path_FGREP" --version 2>&1` in
7252 *GNU*)
7253 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7254 *)
7255 ac_count=0
7256 $as_echo_n 0123456789 >"conftest.in"
7257 while :
7258 do
7259 cat "conftest.in" "conftest.in" >"conftest.tmp"
7260 mv "conftest.tmp" "conftest.in"
7261 cp "conftest.in" "conftest.nl"
7262 $as_echo 'FGREP' >> "conftest.nl"
7263 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7264 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7265 as_fn_arith $ac_count + 1 && ac_count=$as_val
7266 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7267 # Best one so far, save it but keep looking for a better one
7268 ac_cv_path_FGREP="$ac_path_FGREP"
7269 ac_path_FGREP_max=$ac_count
7270 fi
7271 # 10*(2^10) chars as input seems more than enough
7272 test $ac_count -gt 10 && break
7273 done
7274 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7275 esac
7276
7277 $ac_path_FGREP_found && break 3
7278 done
7279 done
7280 done
7281 IFS=$as_save_IFS
7282 if test -z "$ac_cv_path_FGREP"; then
7283 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7284 fi
7285 else
7286 ac_cv_path_FGREP=$FGREP
7287 fi
7288
7289 fi
7290 fi
7291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
7292 $as_echo "$ac_cv_path_FGREP" >&6; }
7293 FGREP="$ac_cv_path_FGREP"
7294
7295
7296 test -z "$GREP" && GREP=grep
7297
7298
7299
7300
7301
7302
7303
7304
7305
7306
7307
7308
7309
7310
7311
7312
7313
7314
7315
7316 # Check whether --with-gnu-ld was given.
7317 if test "${with_gnu_ld+set}" = set; then :
7318 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
7319 else
7320 with_gnu_ld=no
7321 fi
7322
7323 ac_prog=ld
7324 if test yes = "$GCC"; then
7325 # Check if gcc -print-prog-name=ld gives a path.
7326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7327 $as_echo_n "checking for ld used by $CC... " >&6; }
7328 case $host in
7329 *-*-mingw*)
7330 # gcc leaves a trailing carriage return, which upsets mingw
7331 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7332 *)
7333 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7334 esac
7335 case $ac_prog in
7336 # Accept absolute paths.
7337 [\\/]* | ?:[\\/]*)
7338 re_direlt='/[^/][^/]*/\.\./'
7339 # Canonicalize the pathname of ld
7340 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7341 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7342 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
7343 done
7344 test -z "$LD" && LD=$ac_prog
7345 ;;
7346 "")
7347 # If it fails, then pretend we aren't using GCC.
7348 ac_prog=ld
7349 ;;
7350 *)
7351 # If it is relative, then search for the first ld in PATH.
7352 with_gnu_ld=unknown
7353 ;;
7354 esac
7355 elif test yes = "$with_gnu_ld"; then
7356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7357 $as_echo_n "checking for GNU ld... " >&6; }
7358 else
7359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7360 $as_echo_n "checking for non-GNU ld... " >&6; }
7361 fi
7362 if ${lt_cv_path_LD+:} false; then :
7363 $as_echo_n "(cached) " >&6
7364 else
7365 if test -z "$LD"; then
7366 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
7367 for ac_dir in $PATH; do
7368 IFS=$lt_save_ifs
7369 test -z "$ac_dir" && ac_dir=.
7370 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7371 lt_cv_path_LD=$ac_dir/$ac_prog
7372 # Check to see if the program is GNU ld. I'd rather use --version,
7373 # but apparently some variants of GNU ld only accept -v.
7374 # Break only if it was the GNU/non-GNU ld that we prefer.
7375 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7376 *GNU* | *'with BFD'*)
7377 test no != "$with_gnu_ld" && break
7378 ;;
7379 *)
7380 test yes != "$with_gnu_ld" && break
7381 ;;
7382 esac
7383 fi
7384 done
7385 IFS=$lt_save_ifs
7386 else
7387 lt_cv_path_LD=$LD # Let the user override the test with a path.
7388 fi
7389 fi
7390
7391 LD=$lt_cv_path_LD
7392 if test -n "$LD"; then
7393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7394 $as_echo "$LD" >&6; }
7395 else
7396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7397 $as_echo "no" >&6; }
7398 fi
7399 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
7400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7401 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7402 if ${lt_cv_prog_gnu_ld+:} false; then :
7403 $as_echo_n "(cached) " >&6
7404 else
7405 # I'd rather use --version here, but apparently some GNU lds only accept -v.
7406 case `$LD -v 2>&1 </dev/null` in
7407 *GNU* | *'with BFD'*)
7408 lt_cv_prog_gnu_ld=yes
7409 ;;
7410 *)
7411 lt_cv_prog_gnu_ld=no
7412 ;;
7413 esac
7414 fi
7415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
7416 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
7417 with_gnu_ld=$lt_cv_prog_gnu_ld
7418
7419
7420
7421
7422
7423
7424
7425
7426
7427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
7428 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
7429 if ${lt_cv_path_NM+:} false; then :
7430 $as_echo_n "(cached) " >&6
7431 else
7432 if test -n "$NM"; then
7433 # Let the user override the test.
7434 lt_cv_path_NM=$NM
7435 else
7436 lt_nm_to_check=${ac_tool_prefix}nm
7437 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
7438 lt_nm_to_check="$lt_nm_to_check nm"
7439 fi
7440 for lt_tmp_nm in $lt_nm_to_check; do
7441 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
7442 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
7443 IFS=$lt_save_ifs
7444 test -z "$ac_dir" && ac_dir=.
7445 tmp_nm=$ac_dir/$lt_tmp_nm
7446 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
7447 # Check to see if the nm accepts a BSD-compat flag.
7448 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
7449 # nm: unknown option "B" ignored
7450 # Tru64's nm complains that /dev/null is an invalid object file
7451 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
7452 case $build_os in
7453 mingw*) lt_bad_file=conftest.nm/nofile ;;
7454 *) lt_bad_file=/dev/null ;;
7455 esac
7456 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
7457 *$lt_bad_file* | *'Invalid file or object type'*)
7458 lt_cv_path_NM="$tmp_nm -B"
7459 break 2
7460 ;;
7461 *)
7462 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
7463 */dev/null*)
7464 lt_cv_path_NM="$tmp_nm -p"
7465 break 2
7466 ;;
7467 *)
7468 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7469 continue # so that we can try to find one that supports BSD flags
7470 ;;
7471 esac
7472 ;;
7473 esac
7474 fi
7475 done
7476 IFS=$lt_save_ifs
7477 done
7478 : ${lt_cv_path_NM=no}
7479 fi
7480 fi
7481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
7482 $as_echo "$lt_cv_path_NM" >&6; }
7483 if test no != "$lt_cv_path_NM"; then
7484 NM=$lt_cv_path_NM
7485 else
7486 # Didn't find any BSD compatible name lister, look for dumpbin.
7487 if test -n "$DUMPBIN"; then :
7488 # Let the user override the test.
7489 else
7490 if test -n "$ac_tool_prefix"; then
7491 for ac_prog in dumpbin "link -dump"
7492 do
7493 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7494 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7496 $as_echo_n "checking for $ac_word... " >&6; }
7497 if ${ac_cv_prog_DUMPBIN+:} false; then :
7498 $as_echo_n "(cached) " >&6
7499 else
7500 if test -n "$DUMPBIN"; then
7501 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
7502 else
7503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7504 for as_dir in $PATH
7505 do
7506 IFS=$as_save_IFS
7507 test -z "$as_dir" && as_dir=.
7508 for ac_exec_ext in '' $ac_executable_extensions; do
7509 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7510 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
7511 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7512 break 2
7513 fi
7514 done
7515 done
7516 IFS=$as_save_IFS
7517
7518 fi
7519 fi
7520 DUMPBIN=$ac_cv_prog_DUMPBIN
7521 if test -n "$DUMPBIN"; then
7522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
7523 $as_echo "$DUMPBIN" >&6; }
7524 else
7525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7526 $as_echo "no" >&6; }
7527 fi
7528
7529
7530 test -n "$DUMPBIN" && break
7531 done
7532 fi
7533 if test -z "$DUMPBIN"; then
7534 ac_ct_DUMPBIN=$DUMPBIN
7535 for ac_prog in dumpbin "link -dump"
7536 do
7537 # Extract the first word of "$ac_prog", so it can be a program name with args.
7538 set dummy $ac_prog; ac_word=$2
7539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7540 $as_echo_n "checking for $ac_word... " >&6; }
7541 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
7542 $as_echo_n "(cached) " >&6
7543 else
7544 if test -n "$ac_ct_DUMPBIN"; then
7545 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
7546 else
7547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7548 for as_dir in $PATH
7549 do
7550 IFS=$as_save_IFS
7551 test -z "$as_dir" && as_dir=.
7552 for ac_exec_ext in '' $ac_executable_extensions; do
7553 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7554 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
7555 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7556 break 2
7557 fi
7558 done
7559 done
7560 IFS=$as_save_IFS
7561
7562 fi
7563 fi
7564 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
7565 if test -n "$ac_ct_DUMPBIN"; then
7566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
7567 $as_echo "$ac_ct_DUMPBIN" >&6; }
7568 else
7569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7570 $as_echo "no" >&6; }
7571 fi
7572
7573
7574 test -n "$ac_ct_DUMPBIN" && break
7575 done
7576
7577 if test "x$ac_ct_DUMPBIN" = x; then
7578 DUMPBIN=":"
7579 else
7580 case $cross_compiling:$ac_tool_warned in
7581 yes:)
7582 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7583 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7584 ac_tool_warned=yes ;;
7585 esac
7586 DUMPBIN=$ac_ct_DUMPBIN
7587 fi
7588 fi
7589
7590 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
7591 *COFF*)
7592 DUMPBIN="$DUMPBIN -symbols -headers"
7593 ;;
7594 *)
7595 DUMPBIN=:
7596 ;;
7597 esac
7598 fi
7599
7600 if test : != "$DUMPBIN"; then
7601 NM=$DUMPBIN
7602 fi
7603 fi
7604 test -z "$NM" && NM=nm
7605
7606
7607
7608
7609
7610
7611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
7612 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
7613 if ${lt_cv_nm_interface+:} false; then :
7614 $as_echo_n "(cached) " >&6
7615 else
7616 lt_cv_nm_interface="BSD nm"
7617 echo "int some_variable = 0;" > conftest.$ac_ext
7618 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
7619 (eval "$ac_compile" 2>conftest.err)
7620 cat conftest.err >&5
7621 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
7622 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
7623 cat conftest.err >&5
7624 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
7625 cat conftest.out >&5
7626 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
7627 lt_cv_nm_interface="MS dumpbin"
7628 fi
7629 rm -f conftest*
7630 fi
7631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
7632 $as_echo "$lt_cv_nm_interface" >&6; }
7633
7634 # find the maximum length of command line arguments
7635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
7636 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
7637 if ${lt_cv_sys_max_cmd_len+:} false; then :
7638 $as_echo_n "(cached) " >&6
7639 else
7640 i=0
7641 teststring=ABCD
7642
7643 case $build_os in
7644 msdosdjgpp*)
7645 # On DJGPP, this test can blow up pretty badly due to problems in libc
7646 # (any single argument exceeding 2000 bytes causes a buffer overrun
7647 # during glob expansion). Even if it were fixed, the result of this
7648 # check would be larger than it should be.
7649 lt_cv_sys_max_cmd_len=12288; # 12K is about right
7650 ;;
7651
7652 gnu*)
7653 # Under GNU Hurd, this test is not required because there is
7654 # no limit to the length of command line arguments.
7655 # Libtool will interpret -1 as no limit whatsoever
7656 lt_cv_sys_max_cmd_len=-1;
7657 ;;
7658
7659 cygwin* | mingw* | cegcc*)
7660 # On Win9x/ME, this test blows up -- it succeeds, but takes
7661 # about 5 minutes as the teststring grows exponentially.
7662 # Worse, since 9x/ME are not pre-emptively multitasking,
7663 # you end up with a "frozen" computer, even though with patience
7664 # the test eventually succeeds (with a max line length of 256k).
7665 # Instead, let's just punt: use the minimum linelength reported by
7666 # all of the supported platforms: 8192 (on NT/2K/XP).
7667 lt_cv_sys_max_cmd_len=8192;
7668 ;;
7669
7670 mint*)
7671 # On MiNT this can take a long time and run out of memory.
7672 lt_cv_sys_max_cmd_len=8192;
7673 ;;
7674
7675 amigaos*)
7676 # On AmigaOS with pdksh, this test takes hours, literally.
7677 # So we just punt and use a minimum line length of 8192.
7678 lt_cv_sys_max_cmd_len=8192;
7679 ;;
7680
7681 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
7682 # This has been around since 386BSD, at least. Likely further.
7683 if test -x /sbin/sysctl; then
7684 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7685 elif test -x /usr/sbin/sysctl; then
7686 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7687 else
7688 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
7689 fi
7690 # And add a safety zone
7691 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7692 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7693 ;;
7694
7695 interix*)
7696 # We know the value 262144 and hardcode it with a safety zone (like BSD)
7697 lt_cv_sys_max_cmd_len=196608
7698 ;;
7699
7700 os2*)
7701 # The test takes a long time on OS/2.
7702 lt_cv_sys_max_cmd_len=8192
7703 ;;
7704
7705 osf*)
7706 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7707 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7708 # nice to cause kernel panics so lets avoid the loop below.
7709 # First set a reasonable default.
7710 lt_cv_sys_max_cmd_len=16384
7711 #
7712 if test -x /sbin/sysconfig; then
7713 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7714 *1*) lt_cv_sys_max_cmd_len=-1 ;;
7715 esac
7716 fi
7717 ;;
7718 sco3.2v5*)
7719 lt_cv_sys_max_cmd_len=102400
7720 ;;
7721 sysv5* | sco5v6* | sysv4.2uw2*)
7722 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7723 if test -n "$kargmax"; then
7724 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
7725 else
7726 lt_cv_sys_max_cmd_len=32768
7727 fi
7728 ;;
7729 *)
7730 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
7731 if test -n "$lt_cv_sys_max_cmd_len" && \
7732 test undefined != "$lt_cv_sys_max_cmd_len"; then
7733 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7734 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7735 else
7736 # Make teststring a little bigger before we do anything with it.
7737 # a 1K string should be a reasonable start.
7738 for i in 1 2 3 4 5 6 7 8; do
7739 teststring=$teststring$teststring
7740 done
7741 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7742 # If test is not a shell built-in, we'll probably end up computing a
7743 # maximum length that is only half of the actual maximum length, but
7744 # we can't tell.
7745 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
7746 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
7747 test 17 != "$i" # 1/2 MB should be enough
7748 do
7749 i=`expr $i + 1`
7750 teststring=$teststring$teststring
7751 done
7752 # Only check the string length outside the loop.
7753 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
7754 teststring=
7755 # Add a significant safety factor because C++ compilers can tack on
7756 # massive amounts of additional arguments before passing them to the
7757 # linker. It appears as though 1/2 is a usable value.
7758 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7759 fi
7760 ;;
7761 esac
7762
7763 fi
7764
7765 if test -n "$lt_cv_sys_max_cmd_len"; then
7766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
7767 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
7768 else
7769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
7770 $as_echo "none" >&6; }
7771 fi
7772 max_cmd_len=$lt_cv_sys_max_cmd_len
7773
7774
7775
7776
7777
7778
7779 : ${CP="cp -f"}
7780 : ${MV="mv -f"}
7781 : ${RM="rm -f"}
7782
7783 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7784 lt_unset=unset
7785 else
7786 lt_unset=false
7787 fi
7788
7789
7790
7791
7792
7793 # test EBCDIC or ASCII
7794 case `echo X|tr X '\101'` in
7795 A) # ASCII based system
7796 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
7797 lt_SP2NL='tr \040 \012'
7798 lt_NL2SP='tr \015\012 \040\040'
7799 ;;
7800 *) # EBCDIC based system
7801 lt_SP2NL='tr \100 \n'
7802 lt_NL2SP='tr \r\n \100\100'
7803 ;;
7804 esac
7805
7806
7807
7808
7809
7810
7811
7812
7813
7814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
7815 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
7816 if ${lt_cv_to_host_file_cmd+:} false; then :
7817 $as_echo_n "(cached) " >&6
7818 else
7819 case $host in
7820 *-*-mingw* )
7821 case $build in
7822 *-*-mingw* ) # actually msys
7823 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
7824 ;;
7825 *-*-cygwin* )
7826 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
7827 ;;
7828 * ) # otherwise, assume *nix
7829 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
7830 ;;
7831 esac
7832 ;;
7833 *-*-cygwin* )
7834 case $build in
7835 *-*-mingw* ) # actually msys
7836 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
7837 ;;
7838 *-*-cygwin* )
7839 lt_cv_to_host_file_cmd=func_convert_file_noop
7840 ;;
7841 * ) # otherwise, assume *nix
7842 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
7843 ;;
7844 esac
7845 ;;
7846 * ) # unhandled hosts (and "normal" native builds)
7847 lt_cv_to_host_file_cmd=func_convert_file_noop
7848 ;;
7849 esac
7850
7851 fi
7852
7853 to_host_file_cmd=$lt_cv_to_host_file_cmd
7854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
7855 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
7856
7857
7858
7859
7860
7861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
7862 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
7863 if ${lt_cv_to_tool_file_cmd+:} false; then :
7864 $as_echo_n "(cached) " >&6
7865 else
7866 #assume ordinary cross tools, or native build.
7867 lt_cv_to_tool_file_cmd=func_convert_file_noop
7868 case $host in
7869 *-*-mingw* )
7870 case $build in
7871 *-*-mingw* ) # actually msys
7872 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
7873 ;;
7874 esac
7875 ;;
7876 esac
7877
7878 fi
7879
7880 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
7881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
7882 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
7883
7884
7885
7886
7887
7888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
7889 $as_echo_n "checking for $LD option to reload object files... " >&6; }
7890 if ${lt_cv_ld_reload_flag+:} false; then :
7891 $as_echo_n "(cached) " >&6
7892 else
7893 lt_cv_ld_reload_flag='-r'
7894 fi
7895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
7896 $as_echo "$lt_cv_ld_reload_flag" >&6; }
7897 reload_flag=$lt_cv_ld_reload_flag
7898 case $reload_flag in
7899 "" | " "*) ;;
7900 *) reload_flag=" $reload_flag" ;;
7901 esac
7902 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7903 case $host_os in
7904 cygwin* | mingw* | pw32* | cegcc*)
7905 if test yes != "$GCC"; then
7906 reload_cmds=false
7907 fi
7908 ;;
7909 darwin*)
7910 if test yes = "$GCC"; then
7911 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
7912 else
7913 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7914 fi
7915 ;;
7916 esac
7917
7918
7919
7920
7921
7922
7923
7924
7925
7926 if test -n "$ac_tool_prefix"; then
7927 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7928 set dummy ${ac_tool_prefix}objdump; ac_word=$2
7929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7930 $as_echo_n "checking for $ac_word... " >&6; }
7931 if ${ac_cv_prog_OBJDUMP+:} false; then :
7932 $as_echo_n "(cached) " >&6
7933 else
7934 if test -n "$OBJDUMP"; then
7935 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7936 else
7937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7938 for as_dir in $PATH
7939 do
7940 IFS=$as_save_IFS
7941 test -z "$as_dir" && as_dir=.
7942 for ac_exec_ext in '' $ac_executable_extensions; do
7943 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7944 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7945 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7946 break 2
7947 fi
7948 done
7949 done
7950 IFS=$as_save_IFS
7951
7952 fi
7953 fi
7954 OBJDUMP=$ac_cv_prog_OBJDUMP
7955 if test -n "$OBJDUMP"; then
7956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7957 $as_echo "$OBJDUMP" >&6; }
7958 else
7959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7960 $as_echo "no" >&6; }
7961 fi
7962
7963
7964 fi
7965 if test -z "$ac_cv_prog_OBJDUMP"; then
7966 ac_ct_OBJDUMP=$OBJDUMP
7967 # Extract the first word of "objdump", so it can be a program name with args.
7968 set dummy objdump; ac_word=$2
7969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7970 $as_echo_n "checking for $ac_word... " >&6; }
7971 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
7972 $as_echo_n "(cached) " >&6
7973 else
7974 if test -n "$ac_ct_OBJDUMP"; then
7975 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7976 else
7977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7978 for as_dir in $PATH
7979 do
7980 IFS=$as_save_IFS
7981 test -z "$as_dir" && as_dir=.
7982 for ac_exec_ext in '' $ac_executable_extensions; do
7983 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7984 ac_cv_prog_ac_ct_OBJDUMP="objdump"
7985 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7986 break 2
7987 fi
7988 done
7989 done
7990 IFS=$as_save_IFS
7991
7992 fi
7993 fi
7994 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7995 if test -n "$ac_ct_OBJDUMP"; then
7996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7997 $as_echo "$ac_ct_OBJDUMP" >&6; }
7998 else
7999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8000 $as_echo "no" >&6; }
8001 fi
8002
8003 if test "x$ac_ct_OBJDUMP" = x; then
8004 OBJDUMP="false"
8005 else
8006 case $cross_compiling:$ac_tool_warned in
8007 yes:)
8008 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8009 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8010 ac_tool_warned=yes ;;
8011 esac
8012 OBJDUMP=$ac_ct_OBJDUMP
8013 fi
8014 else
8015 OBJDUMP="$ac_cv_prog_OBJDUMP"
8016 fi
8017
8018 test -z "$OBJDUMP" && OBJDUMP=objdump
8019
8020
8021
8022
8023
8024
8025
8026
8027
8028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
8029 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
8030 if ${lt_cv_deplibs_check_method+:} false; then :
8031 $as_echo_n "(cached) " >&6
8032 else
8033 lt_cv_file_magic_cmd='$MAGIC_CMD'
8034 lt_cv_file_magic_test_file=
8035 lt_cv_deplibs_check_method='unknown'
8036 # Need to set the preceding variable on all platforms that support
8037 # interlibrary dependencies.
8038 # 'none' -- dependencies not supported.
8039 # 'unknown' -- same as none, but documents that we really don't know.
8040 # 'pass_all' -- all dependencies passed with no checks.
8041 # 'test_compile' -- check by making test program.
8042 # 'file_magic [[regex]]' -- check by looking for files in library path
8043 # that responds to the $file_magic_cmd with a given extended regex.
8044 # If you have 'file' or equivalent on your system and you're not sure
8045 # whether 'pass_all' will *always* work, you probably want this one.
8046
8047 case $host_os in
8048 aix[4-9]*)
8049 lt_cv_deplibs_check_method=pass_all
8050 ;;
8051
8052 beos*)
8053 lt_cv_deplibs_check_method=pass_all
8054 ;;
8055
8056 bsdi[45]*)
8057 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
8058 lt_cv_file_magic_cmd='/usr/bin/file -L'
8059 lt_cv_file_magic_test_file=/shlib/libc.so
8060 ;;
8061
8062 cygwin*)
8063 # func_win32_libid is a shell function defined in ltmain.sh
8064 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8065 lt_cv_file_magic_cmd='func_win32_libid'
8066 ;;
8067
8068 mingw* | pw32*)
8069 # Base MSYS/MinGW do not provide the 'file' command needed by
8070 # func_win32_libid shell function, so use a weaker test based on 'objdump',
8071 # unless we find 'file', for example because we are cross-compiling.
8072 if ( file / ) >/dev/null 2>&1; then
8073 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8074 lt_cv_file_magic_cmd='func_win32_libid'
8075 else
8076 # Keep this pattern in sync with the one in func_win32_libid.
8077 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
8078 lt_cv_file_magic_cmd='$OBJDUMP -f'
8079 fi
8080 ;;
8081
8082 cegcc*)
8083 # use the weaker test based on 'objdump'. See mingw*.
8084 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
8085 lt_cv_file_magic_cmd='$OBJDUMP -f'
8086 ;;
8087
8088 darwin* | rhapsody*)
8089 lt_cv_deplibs_check_method=pass_all
8090 ;;
8091
8092 freebsd* | dragonfly*)
8093 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8094 case $host_cpu in
8095 i*86 )
8096 # Not sure whether the presence of OpenBSD here was a mistake.
8097 # Let's accept both of them until this is cleared up.
8098 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
8099 lt_cv_file_magic_cmd=/usr/bin/file
8100 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
8101 ;;
8102 esac
8103 else
8104 lt_cv_deplibs_check_method=pass_all
8105 fi
8106 ;;
8107
8108 haiku*)
8109 lt_cv_deplibs_check_method=pass_all
8110 ;;
8111
8112 hpux10.20* | hpux11*)
8113 lt_cv_file_magic_cmd=/usr/bin/file
8114 case $host_cpu in
8115 ia64*)
8116 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
8117 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
8118 ;;
8119 hppa*64*)
8120 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]'
8121 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
8122 ;;
8123 *)
8124 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
8125 lt_cv_file_magic_test_file=/usr/lib/libc.sl
8126 ;;
8127 esac
8128 ;;
8129
8130 interix[3-9]*)
8131 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
8132 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
8133 ;;
8134
8135 irix5* | irix6* | nonstopux*)
8136 case $LD in
8137 *-32|*"-32 ") libmagic=32-bit;;
8138 *-n32|*"-n32 ") libmagic=N32;;
8139 *-64|*"-64 ") libmagic=64-bit;;
8140 *) libmagic=never-match;;
8141 esac
8142 lt_cv_deplibs_check_method=pass_all
8143 ;;
8144
8145 # This must be glibc/ELF.
8146 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8147 lt_cv_deplibs_check_method=pass_all
8148 ;;
8149
8150 netbsd* | netbsdelf*-gnu)
8151 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8152 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8153 else
8154 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
8155 fi
8156 ;;
8157
8158 newos6*)
8159 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
8160 lt_cv_file_magic_cmd=/usr/bin/file
8161 lt_cv_file_magic_test_file=/usr/lib/libnls.so
8162 ;;
8163
8164 *nto* | *qnx*)
8165 lt_cv_deplibs_check_method=pass_all
8166 ;;
8167
8168 openbsd* | bitrig*)
8169 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
8170 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
8171 else
8172 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8173 fi
8174 ;;
8175
8176 osf3* | osf4* | osf5*)
8177 lt_cv_deplibs_check_method=pass_all
8178 ;;
8179
8180 rdos*)
8181 lt_cv_deplibs_check_method=pass_all
8182 ;;
8183
8184 solaris*)
8185 lt_cv_deplibs_check_method=pass_all
8186 ;;
8187
8188 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8189 lt_cv_deplibs_check_method=pass_all
8190 ;;
8191
8192 sysv4 | sysv4.3*)
8193 case $host_vendor in
8194 motorola)
8195 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]'
8196 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
8197 ;;
8198 ncr)
8199 lt_cv_deplibs_check_method=pass_all
8200 ;;
8201 sequent)
8202 lt_cv_file_magic_cmd='/bin/file'
8203 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
8204 ;;
8205 sni)
8206 lt_cv_file_magic_cmd='/bin/file'
8207 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
8208 lt_cv_file_magic_test_file=/lib/libc.so
8209 ;;
8210 siemens)
8211 lt_cv_deplibs_check_method=pass_all
8212 ;;
8213 pc)
8214 lt_cv_deplibs_check_method=pass_all
8215 ;;
8216 esac
8217 ;;
8218
8219 tpf*)
8220 lt_cv_deplibs_check_method=pass_all
8221 ;;
8222 os2*)
8223 lt_cv_deplibs_check_method=pass_all
8224 ;;
8225 esac
8226
8227 fi
8228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
8229 $as_echo "$lt_cv_deplibs_check_method" >&6; }
8230
8231 file_magic_glob=
8232 want_nocaseglob=no
8233 if test "$build" = "$host"; then
8234 case $host_os in
8235 mingw* | pw32*)
8236 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
8237 want_nocaseglob=yes
8238 else
8239 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
8240 fi
8241 ;;
8242 esac
8243 fi
8244
8245 file_magic_cmd=$lt_cv_file_magic_cmd
8246 deplibs_check_method=$lt_cv_deplibs_check_method
8247 test -z "$deplibs_check_method" && deplibs_check_method=unknown
8248
8249
8250
8251
8252
8253
8254
8255
8256
8257
8258
8259
8260
8261
8262
8263
8264
8265
8266
8267
8268
8269
8270 if test -n "$ac_tool_prefix"; then
8271 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
8272 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
8273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8274 $as_echo_n "checking for $ac_word... " >&6; }
8275 if ${ac_cv_prog_DLLTOOL+:} false; then :
8276 $as_echo_n "(cached) " >&6
8277 else
8278 if test -n "$DLLTOOL"; then
8279 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8280 else
8281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8282 for as_dir in $PATH
8283 do
8284 IFS=$as_save_IFS
8285 test -z "$as_dir" && as_dir=.
8286 for ac_exec_ext in '' $ac_executable_extensions; do
8287 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8288 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
8289 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8290 break 2
8291 fi
8292 done
8293 done
8294 IFS=$as_save_IFS
8295
8296 fi
8297 fi
8298 DLLTOOL=$ac_cv_prog_DLLTOOL
8299 if test -n "$DLLTOOL"; then
8300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8301 $as_echo "$DLLTOOL" >&6; }
8302 else
8303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8304 $as_echo "no" >&6; }
8305 fi
8306
8307
8308 fi
8309 if test -z "$ac_cv_prog_DLLTOOL"; then
8310 ac_ct_DLLTOOL=$DLLTOOL
8311 # Extract the first word of "dlltool", so it can be a program name with args.
8312 set dummy dlltool; ac_word=$2
8313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8314 $as_echo_n "checking for $ac_word... " >&6; }
8315 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
8316 $as_echo_n "(cached) " >&6
8317 else
8318 if test -n "$ac_ct_DLLTOOL"; then
8319 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
8320 else
8321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8322 for as_dir in $PATH
8323 do
8324 IFS=$as_save_IFS
8325 test -z "$as_dir" && as_dir=.
8326 for ac_exec_ext in '' $ac_executable_extensions; do
8327 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8328 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
8329 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8330 break 2
8331 fi
8332 done
8333 done
8334 IFS=$as_save_IFS
8335
8336 fi
8337 fi
8338 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
8339 if test -n "$ac_ct_DLLTOOL"; then
8340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
8341 $as_echo "$ac_ct_DLLTOOL" >&6; }
8342 else
8343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8344 $as_echo "no" >&6; }
8345 fi
8346
8347 if test "x$ac_ct_DLLTOOL" = x; then
8348 DLLTOOL="false"
8349 else
8350 case $cross_compiling:$ac_tool_warned in
8351 yes:)
8352 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8353 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8354 ac_tool_warned=yes ;;
8355 esac
8356 DLLTOOL=$ac_ct_DLLTOOL
8357 fi
8358 else
8359 DLLTOOL="$ac_cv_prog_DLLTOOL"
8360 fi
8361
8362 test -z "$DLLTOOL" && DLLTOOL=dlltool
8363
8364
8365
8366
8367
8368
8369
8370
8371
8372
8373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
8374 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
8375 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
8376 $as_echo_n "(cached) " >&6
8377 else
8378 lt_cv_sharedlib_from_linklib_cmd='unknown'
8379
8380 case $host_os in
8381 cygwin* | mingw* | pw32* | cegcc*)
8382 # two different shell functions defined in ltmain.sh;
8383 # decide which one to use based on capabilities of $DLLTOOL
8384 case `$DLLTOOL --help 2>&1` in
8385 *--identify-strict*)
8386 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
8387 ;;
8388 *)
8389 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
8390 ;;
8391 esac
8392 ;;
8393 *)
8394 # fallback: assume linklib IS sharedlib
8395 lt_cv_sharedlib_from_linklib_cmd=$ECHO
8396 ;;
8397 esac
8398
8399 fi
8400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
8401 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
8402 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
8403 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
8404
8405
8406
8407
8408
8409
8410
8411 if test -n "$ac_tool_prefix"; then
8412 for ac_prog in ar
8413 do
8414 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8415 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8417 $as_echo_n "checking for $ac_word... " >&6; }
8418 if ${ac_cv_prog_AR+:} false; then :
8419 $as_echo_n "(cached) " >&6
8420 else
8421 if test -n "$AR"; then
8422 ac_cv_prog_AR="$AR" # Let the user override the test.
8423 else
8424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8425 for as_dir in $PATH
8426 do
8427 IFS=$as_save_IFS
8428 test -z "$as_dir" && as_dir=.
8429 for ac_exec_ext in '' $ac_executable_extensions; do
8430 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8431 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
8432 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8433 break 2
8434 fi
8435 done
8436 done
8437 IFS=$as_save_IFS
8438
8439 fi
8440 fi
8441 AR=$ac_cv_prog_AR
8442 if test -n "$AR"; then
8443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8444 $as_echo "$AR" >&6; }
8445 else
8446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8447 $as_echo "no" >&6; }
8448 fi
8449
8450
8451 test -n "$AR" && break
8452 done
8453 fi
8454 if test -z "$AR"; then
8455 ac_ct_AR=$AR
8456 for ac_prog in ar
8457 do
8458 # Extract the first word of "$ac_prog", so it can be a program name with args.
8459 set dummy $ac_prog; ac_word=$2
8460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8461 $as_echo_n "checking for $ac_word... " >&6; }
8462 if ${ac_cv_prog_ac_ct_AR+:} false; then :
8463 $as_echo_n "(cached) " >&6
8464 else
8465 if test -n "$ac_ct_AR"; then
8466 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8467 else
8468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8469 for as_dir in $PATH
8470 do
8471 IFS=$as_save_IFS
8472 test -z "$as_dir" && as_dir=.
8473 for ac_exec_ext in '' $ac_executable_extensions; do
8474 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8475 ac_cv_prog_ac_ct_AR="$ac_prog"
8476 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8477 break 2
8478 fi
8479 done
8480 done
8481 IFS=$as_save_IFS
8482
8483 fi
8484 fi
8485 ac_ct_AR=$ac_cv_prog_ac_ct_AR
8486 if test -n "$ac_ct_AR"; then
8487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
8488 $as_echo "$ac_ct_AR" >&6; }
8489 else
8490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8491 $as_echo "no" >&6; }
8492 fi
8493
8494
8495 test -n "$ac_ct_AR" && break
8496 done
8497
8498 if test "x$ac_ct_AR" = x; then
8499 AR="false"
8500 else
8501 case $cross_compiling:$ac_tool_warned in
8502 yes:)
8503 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8504 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8505 ac_tool_warned=yes ;;
8506 esac
8507 AR=$ac_ct_AR
8508 fi
8509 fi
8510
8511 : ${AR=ar}
8512 : ${AR_FLAGS=cr}
8513
8514
8515
8516
8517
8518
8519
8520
8521
8522
8523
8524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
8525 $as_echo_n "checking for archiver @FILE support... " >&6; }
8526 if ${lt_cv_ar_at_file+:} false; then :
8527 $as_echo_n "(cached) " >&6
8528 else
8529 lt_cv_ar_at_file=no
8530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8531 /* end confdefs.h. */
8532
8533 int
8534 main ()
8535 {
8536
8537 ;
8538 return 0;
8539 }
8540 _ACEOF
8541 if ac_fn_c_try_compile "$LINENO"; then :
8542 echo conftest.$ac_objext > conftest.lst
8543 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
8544 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
8545 (eval $lt_ar_try) 2>&5
8546 ac_status=$?
8547 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8548 test $ac_status = 0; }
8549 if test 0 -eq "$ac_status"; then
8550 # Ensure the archiver fails upon bogus file names.
8551 rm -f conftest.$ac_objext libconftest.a
8552 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
8553 (eval $lt_ar_try) 2>&5
8554 ac_status=$?
8555 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8556 test $ac_status = 0; }
8557 if test 0 -ne "$ac_status"; then
8558 lt_cv_ar_at_file=@
8559 fi
8560 fi
8561 rm -f conftest.* libconftest.a
8562
8563 fi
8564 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8565
8566 fi
8567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
8568 $as_echo "$lt_cv_ar_at_file" >&6; }
8569
8570 if test no = "$lt_cv_ar_at_file"; then
8571 archiver_list_spec=
8572 else
8573 archiver_list_spec=$lt_cv_ar_at_file
8574 fi
8575
8576
8577
8578
8579
8580
8581
8582 if test -n "$ac_tool_prefix"; then
8583 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8584 set dummy ${ac_tool_prefix}strip; ac_word=$2
8585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8586 $as_echo_n "checking for $ac_word... " >&6; }
8587 if ${ac_cv_prog_STRIP+:} false; then :
8588 $as_echo_n "(cached) " >&6
8589 else
8590 if test -n "$STRIP"; then
8591 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8592 else
8593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8594 for as_dir in $PATH
8595 do
8596 IFS=$as_save_IFS
8597 test -z "$as_dir" && as_dir=.
8598 for ac_exec_ext in '' $ac_executable_extensions; do
8599 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8600 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8601 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8602 break 2
8603 fi
8604 done
8605 done
8606 IFS=$as_save_IFS
8607
8608 fi
8609 fi
8610 STRIP=$ac_cv_prog_STRIP
8611 if test -n "$STRIP"; then
8612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8613 $as_echo "$STRIP" >&6; }
8614 else
8615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8616 $as_echo "no" >&6; }
8617 fi
8618
8619
8620 fi
8621 if test -z "$ac_cv_prog_STRIP"; then
8622 ac_ct_STRIP=$STRIP
8623 # Extract the first word of "strip", so it can be a program name with args.
8624 set dummy strip; ac_word=$2
8625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8626 $as_echo_n "checking for $ac_word... " >&6; }
8627 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
8628 $as_echo_n "(cached) " >&6
8629 else
8630 if test -n "$ac_ct_STRIP"; then
8631 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8632 else
8633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8634 for as_dir in $PATH
8635 do
8636 IFS=$as_save_IFS
8637 test -z "$as_dir" && as_dir=.
8638 for ac_exec_ext in '' $ac_executable_extensions; do
8639 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8640 ac_cv_prog_ac_ct_STRIP="strip"
8641 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8642 break 2
8643 fi
8644 done
8645 done
8646 IFS=$as_save_IFS
8647
8648 fi
8649 fi
8650 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8651 if test -n "$ac_ct_STRIP"; then
8652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
8653 $as_echo "$ac_ct_STRIP" >&6; }
8654 else
8655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8656 $as_echo "no" >&6; }
8657 fi
8658
8659 if test "x$ac_ct_STRIP" = x; then
8660 STRIP=":"
8661 else
8662 case $cross_compiling:$ac_tool_warned in
8663 yes:)
8664 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8665 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8666 ac_tool_warned=yes ;;
8667 esac
8668 STRIP=$ac_ct_STRIP
8669 fi
8670 else
8671 STRIP="$ac_cv_prog_STRIP"
8672 fi
8673
8674 test -z "$STRIP" && STRIP=:
8675
8676
8677
8678
8679
8680
8681 if test -n "$ac_tool_prefix"; then
8682 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8683 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8685 $as_echo_n "checking for $ac_word... " >&6; }
8686 if ${ac_cv_prog_RANLIB+:} false; then :
8687 $as_echo_n "(cached) " >&6
8688 else
8689 if test -n "$RANLIB"; then
8690 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8691 else
8692 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8693 for as_dir in $PATH
8694 do
8695 IFS=$as_save_IFS
8696 test -z "$as_dir" && as_dir=.
8697 for ac_exec_ext in '' $ac_executable_extensions; do
8698 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8699 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8700 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8701 break 2
8702 fi
8703 done
8704 done
8705 IFS=$as_save_IFS
8706
8707 fi
8708 fi
8709 RANLIB=$ac_cv_prog_RANLIB
8710 if test -n "$RANLIB"; then
8711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8712 $as_echo "$RANLIB" >&6; }
8713 else
8714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8715 $as_echo "no" >&6; }
8716 fi
8717
8718
8719 fi
8720 if test -z "$ac_cv_prog_RANLIB"; then
8721 ac_ct_RANLIB=$RANLIB
8722 # Extract the first word of "ranlib", so it can be a program name with args.
8723 set dummy ranlib; ac_word=$2
8724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8725 $as_echo_n "checking for $ac_word... " >&6; }
8726 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
8727 $as_echo_n "(cached) " >&6
8728 else
8729 if test -n "$ac_ct_RANLIB"; then
8730 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8731 else
8732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8733 for as_dir in $PATH
8734 do
8735 IFS=$as_save_IFS
8736 test -z "$as_dir" && as_dir=.
8737 for ac_exec_ext in '' $ac_executable_extensions; do
8738 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8739 ac_cv_prog_ac_ct_RANLIB="ranlib"
8740 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8741 break 2
8742 fi
8743 done
8744 done
8745 IFS=$as_save_IFS
8746
8747 fi
8748 fi
8749 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8750 if test -n "$ac_ct_RANLIB"; then
8751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8752 $as_echo "$ac_ct_RANLIB" >&6; }
8753 else
8754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8755 $as_echo "no" >&6; }
8756 fi
8757
8758 if test "x$ac_ct_RANLIB" = x; then
8759 RANLIB=":"
8760 else
8761 case $cross_compiling:$ac_tool_warned in
8762 yes:)
8763 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8764 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8765 ac_tool_warned=yes ;;
8766 esac
8767 RANLIB=$ac_ct_RANLIB
8768 fi
8769 else
8770 RANLIB="$ac_cv_prog_RANLIB"
8771 fi
8772
8773 test -z "$RANLIB" && RANLIB=:
8774
8775
8776
8777
8778
8779
8780 # Determine commands to create old-style static archives.
8781 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
8782 old_postinstall_cmds='chmod 644 $oldlib'
8783 old_postuninstall_cmds=
8784
8785 if test -n "$RANLIB"; then
8786 case $host_os in
8787 bitrig* | openbsd*)
8788 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
8789 ;;
8790 *)
8791 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
8792 ;;
8793 esac
8794 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
8795 fi
8796
8797 case $host_os in
8798 darwin*)
8799 lock_old_archive_extraction=yes ;;
8800 *)
8801 lock_old_archive_extraction=no ;;
8802 esac
8803
8804
8805
8806
8807
8808
8809
8810
8811
8812
8813
8814
8815
8816
8817
8818
8819
8820
8821
8822
8823
8824
8825
8826
8827
8828
8829
8830
8831
8832
8833
8834
8835
8836
8837
8838
8839
8840
8841
8842 # If no C compiler was specified, use CC.
8843 LTCC=${LTCC-"$CC"}
8844
8845 # If no C compiler flags were specified, use CFLAGS.
8846 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8847
8848 # Allow CC to be a program name with arguments.
8849 compiler=$CC
8850
8851
8852 # Check for command to grab the raw symbol name followed by C symbol from nm.
8853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
8854 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
8855 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
8856 $as_echo_n "(cached) " >&6
8857 else
8858
8859 # These are sane defaults that work on at least a few old systems.
8860 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
8861
8862 # Character class describing NM global symbol codes.
8863 symcode='[BCDEGRST]'
8864
8865 # Regexp to match symbols that can be accessed directly from C.
8866 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8867
8868 # Define system-specific variables.
8869 case $host_os in
8870 aix*)
8871 symcode='[BCDT]'
8872 ;;
8873 cygwin* | mingw* | pw32* | cegcc*)
8874 symcode='[ABCDGISTW]'
8875 ;;
8876 hpux*)
8877 if test ia64 = "$host_cpu"; then
8878 symcode='[ABCDEGRST]'
8879 fi
8880 ;;
8881 irix* | nonstopux*)
8882 symcode='[BCDEGRST]'
8883 ;;
8884 osf*)
8885 symcode='[BCDEGQRST]'
8886 ;;
8887 solaris*)
8888 symcode='[BDRT]'
8889 ;;
8890 sco3.2v5*)
8891 symcode='[DT]'
8892 ;;
8893 sysv4.2uw2*)
8894 symcode='[DT]'
8895 ;;
8896 sysv5* | sco5v6* | unixware* | OpenUNIX*)
8897 symcode='[ABDT]'
8898 ;;
8899 sysv4)
8900 symcode='[DFNSTU]'
8901 ;;
8902 esac
8903
8904 # If we're using GNU nm, then use its standard symbol codes.
8905 case `$NM -V 2>&1` in
8906 *GNU* | *'with BFD'*)
8907 symcode='[ABCDGIRSTW]' ;;
8908 esac
8909
8910 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8911 # Gets list of data symbols to import.
8912 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
8913 # Adjust the below global symbol transforms to fixup imported variables.
8914 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
8915 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
8916 lt_c_name_lib_hook="\
8917 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
8918 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
8919 else
8920 # Disable hooks by default.
8921 lt_cv_sys_global_symbol_to_import=
8922 lt_cdecl_hook=
8923 lt_c_name_hook=
8924 lt_c_name_lib_hook=
8925 fi
8926
8927 # Transform an extracted symbol line into a proper C declaration.
8928 # Some systems (esp. on ia64) link data and code symbols differently,
8929 # so use this general approach.
8930 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
8931 $lt_cdecl_hook\
8932 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
8933 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
8934
8935 # Transform an extracted symbol line into symbol name and symbol address
8936 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
8937 $lt_c_name_hook\
8938 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
8939 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
8940
8941 # Transform an extracted symbol line into symbol name with lib prefix and
8942 # symbol address.
8943 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
8944 $lt_c_name_lib_hook\
8945 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
8946 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
8947 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
8948
8949 # Handle CRLF in mingw tool chain
8950 opt_cr=
8951 case $build_os in
8952 mingw*)
8953 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
8954 ;;
8955 esac
8956
8957 # Try without a prefix underscore, then with it.
8958 for ac_symprfx in "" "_"; do
8959
8960 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
8961 symxfrm="\\1 $ac_symprfx\\2 \\2"
8962
8963 # Write the raw and C identifiers.
8964 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8965 # Fake it for dumpbin and say T for any non-static function,
8966 # D for any global variable and I for any imported variable.
8967 # Also find C++ and __fastcall symbols from MSVC++,
8968 # which start with @ or ?.
8969 lt_cv_sys_global_symbol_pipe="$AWK '"\
8970 " {last_section=section; section=\$ 3};"\
8971 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
8972 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
8973 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
8974 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
8975 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
8976 " \$ 0!~/External *\|/{next};"\
8977 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
8978 " {if(hide[section]) next};"\
8979 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
8980 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
8981 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
8982 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
8983 " ' prfx=^$ac_symprfx"
8984 else
8985 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8986 fi
8987 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
8988
8989 # Check to see that the pipe works correctly.
8990 pipe_works=no
8991
8992 rm -f conftest*
8993 cat > conftest.$ac_ext <<_LT_EOF
8994 #ifdef __cplusplus
8995 extern "C" {
8996 #endif
8997 char nm_test_var;
8998 void nm_test_func(void);
8999 void nm_test_func(void){}
9000 #ifdef __cplusplus
9001 }
9002 #endif
9003 int main(){nm_test_var='a';nm_test_func();return(0);}
9004 _LT_EOF
9005
9006 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9007 (eval $ac_compile) 2>&5
9008 ac_status=$?
9009 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9010 test $ac_status = 0; }; then
9011 # Now try to grab the symbols.
9012 nlist=conftest.nm
9013 $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5
9014 if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then
9015 # Try sorting and uniquifying the output.
9016 if sort "$nlist" | uniq > "$nlist"T; then
9017 mv -f "$nlist"T "$nlist"
9018 else
9019 rm -f "$nlist"T
9020 fi
9021
9022 # Make sure that we snagged all the symbols we need.
9023 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
9024 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
9025 cat <<_LT_EOF > conftest.$ac_ext
9026 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
9027 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
9028 /* DATA imports from DLLs on WIN32 can't be const, because runtime
9029 relocations are performed -- see ld's documentation on pseudo-relocs. */
9030 # define LT_DLSYM_CONST
9031 #elif defined __osf__
9032 /* This system does not cope well with relocations in const data. */
9033 # define LT_DLSYM_CONST
9034 #else
9035 # define LT_DLSYM_CONST const
9036 #endif
9037
9038 #ifdef __cplusplus
9039 extern "C" {
9040 #endif
9041
9042 _LT_EOF
9043 # Now generate the symbol file.
9044 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
9045
9046 cat <<_LT_EOF >> conftest.$ac_ext
9047
9048 /* The mapping between symbol names and symbols. */
9049 LT_DLSYM_CONST struct {
9050 const char *name;
9051 void *address;
9052 }
9053 lt__PROGRAM__LTX_preloaded_symbols[] =
9054 {
9055 { "@PROGRAM@", (void *) 0 },
9056 _LT_EOF
9057 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
9058 cat <<\_LT_EOF >> conftest.$ac_ext
9059 {0, (void *) 0}
9060 };
9061
9062 /* This works around a problem in FreeBSD linker */
9063 #ifdef FREEBSD_WORKAROUND
9064 static const void *lt_preloaded_setup() {
9065 return lt__PROGRAM__LTX_preloaded_symbols;
9066 }
9067 #endif
9068
9069 #ifdef __cplusplus
9070 }
9071 #endif
9072 _LT_EOF
9073 # Now try linking the two files.
9074 mv conftest.$ac_objext conftstm.$ac_objext
9075 lt_globsym_save_LIBS=$LIBS
9076 lt_globsym_save_CFLAGS=$CFLAGS
9077 LIBS=conftstm.$ac_objext
9078 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9079 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
9080 (eval $ac_link) 2>&5
9081 ac_status=$?
9082 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9083 test $ac_status = 0; } && test -s conftest$ac_exeext; then
9084 pipe_works=yes
9085 fi
9086 LIBS=$lt_globsym_save_LIBS
9087 CFLAGS=$lt_globsym_save_CFLAGS
9088 else
9089 echo "cannot find nm_test_func in $nlist" >&5
9090 fi
9091 else
9092 echo "cannot find nm_test_var in $nlist" >&5
9093 fi
9094 else
9095 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9096 fi
9097 else
9098 echo "$progname: failed program was:" >&5
9099 cat conftest.$ac_ext >&5
9100 fi
9101 rm -rf conftest* conftst*
9102
9103 # Do not use the global_symbol_pipe unless it works.
9104 if test yes = "$pipe_works"; then
9105 break
9106 else
9107 lt_cv_sys_global_symbol_pipe=
9108 fi
9109 done
9110
9111 fi
9112
9113 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9114 lt_cv_sys_global_symbol_to_cdecl=
9115 fi
9116 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
9118 $as_echo "failed" >&6; }
9119 else
9120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
9121 $as_echo "ok" >&6; }
9122 fi
9123
9124 # Response file support.
9125 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9126 nm_file_list_spec='@'
9127 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
9128 nm_file_list_spec='@'
9129 fi
9130
9131
9132
9133
9134
9135
9136
9137
9138
9139
9140
9141
9142
9143
9144
9145
9146
9147
9148
9149
9150
9151
9152
9153
9154
9155
9156
9157
9158
9159
9160
9161
9162
9163
9164
9165
9166
9167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
9168 $as_echo_n "checking for sysroot... " >&6; }
9169
9170 # Check whether --with-sysroot was given.
9171 if test "${with_sysroot+set}" = set; then :
9172 withval=$with_sysroot;
9173 else
9174 with_sysroot=no
9175 fi
9176
9177
9178 lt_sysroot=
9179 case $with_sysroot in #(
9180 yes)
9181 if test yes = "$GCC"; then
9182 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
9183 fi
9184 ;; #(
9185 /*)
9186 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
9187 ;; #(
9188 no|'')
9189 ;; #(
9190 *)
9191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
9192 $as_echo "$with_sysroot" >&6; }
9193 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
9194 ;;
9195 esac
9196
9197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
9198 $as_echo "${lt_sysroot:-no}" >&6; }
9199
9200
9201
9202
9203
9204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
9205 $as_echo_n "checking for a working dd... " >&6; }
9206 if ${ac_cv_path_lt_DD+:} false; then :
9207 $as_echo_n "(cached) " >&6
9208 else
9209 printf 0123456789abcdef0123456789abcdef >conftest.i
9210 cat conftest.i conftest.i >conftest2.i
9211 : ${lt_DD:=$DD}
9212 if test -z "$lt_DD"; then
9213 ac_path_lt_DD_found=false
9214 # Loop through the user's path and test for each of PROGNAME-LIST
9215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9216 for as_dir in $PATH
9217 do
9218 IFS=$as_save_IFS
9219 test -z "$as_dir" && as_dir=.
9220 for ac_prog in dd; do
9221 for ac_exec_ext in '' $ac_executable_extensions; do
9222 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
9223 as_fn_executable_p "$ac_path_lt_DD" || continue
9224 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
9225 cmp -s conftest.i conftest.out \
9226 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
9227 fi
9228 $ac_path_lt_DD_found && break 3
9229 done
9230 done
9231 done
9232 IFS=$as_save_IFS
9233 if test -z "$ac_cv_path_lt_DD"; then
9234 :
9235 fi
9236 else
9237 ac_cv_path_lt_DD=$lt_DD
9238 fi
9239
9240 rm -f conftest.i conftest2.i conftest.out
9241 fi
9242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
9243 $as_echo "$ac_cv_path_lt_DD" >&6; }
9244
9245
9246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
9247 $as_echo_n "checking how to truncate binary pipes... " >&6; }
9248 if ${lt_cv_truncate_bin+:} false; then :
9249 $as_echo_n "(cached) " >&6
9250 else
9251 printf 0123456789abcdef0123456789abcdef >conftest.i
9252 cat conftest.i conftest.i >conftest2.i
9253 lt_cv_truncate_bin=
9254 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
9255 cmp -s conftest.i conftest.out \
9256 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
9257 fi
9258 rm -f conftest.i conftest2.i conftest.out
9259 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
9260 fi
9261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
9262 $as_echo "$lt_cv_truncate_bin" >&6; }
9263
9264
9265
9266
9267
9268
9269
9270 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
9271 func_cc_basename ()
9272 {
9273 for cc_temp in $*""; do
9274 case $cc_temp in
9275 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9276 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9277 \-*) ;;
9278 *) break;;
9279 esac
9280 done
9281 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9282 }
9283
9284 # Check whether --enable-libtool-lock was given.
9285 if test "${enable_libtool_lock+set}" = set; then :
9286 enableval=$enable_libtool_lock;
9287 fi
9288
9289 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
9290
9291 # Some flags need to be propagated to the compiler or linker for good
9292 # libtool support.
9293 case $host in
9294 ia64-*-hpux*)
9295 # Find out what ABI is being produced by ac_compile, and set mode
9296 # options accordingly.
9297 echo 'int i;' > conftest.$ac_ext
9298 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9299 (eval $ac_compile) 2>&5
9300 ac_status=$?
9301 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9302 test $ac_status = 0; }; then
9303 case `/usr/bin/file conftest.$ac_objext` in
9304 *ELF-32*)
9305 HPUX_IA64_MODE=32
9306 ;;
9307 *ELF-64*)
9308 HPUX_IA64_MODE=64
9309 ;;
9310 esac
9311 fi
9312 rm -rf conftest*
9313 ;;
9314 *-*-irix6*)
9315 # Find out what ABI is being produced by ac_compile, and set linker
9316 # options accordingly.
9317 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
9318 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9319 (eval $ac_compile) 2>&5
9320 ac_status=$?
9321 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9322 test $ac_status = 0; }; then
9323 if test yes = "$lt_cv_prog_gnu_ld"; then
9324 case `/usr/bin/file conftest.$ac_objext` in
9325 *32-bit*)
9326 LD="${LD-ld} -melf32bsmip"
9327 ;;
9328 *N32*)
9329 LD="${LD-ld} -melf32bmipn32"
9330 ;;
9331 *64-bit*)
9332 LD="${LD-ld} -melf64bmip"
9333 ;;
9334 esac
9335 else
9336 case `/usr/bin/file conftest.$ac_objext` in
9337 *32-bit*)
9338 LD="${LD-ld} -32"
9339 ;;
9340 *N32*)
9341 LD="${LD-ld} -n32"
9342 ;;
9343 *64-bit*)
9344 LD="${LD-ld} -64"
9345 ;;
9346 esac
9347 fi
9348 fi
9349 rm -rf conftest*
9350 ;;
9351
9352 mips64*-*linux*)
9353 # Find out what ABI is being produced by ac_compile, and set linker
9354 # options accordingly.
9355 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
9356 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9357 (eval $ac_compile) 2>&5
9358 ac_status=$?
9359 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9360 test $ac_status = 0; }; then
9361 emul=elf
9362 case `/usr/bin/file conftest.$ac_objext` in
9363 *32-bit*)
9364 emul="${emul}32"
9365 ;;
9366 *64-bit*)
9367 emul="${emul}64"
9368 ;;
9369 esac
9370 case `/usr/bin/file conftest.$ac_objext` in
9371 *MSB*)
9372 emul="${emul}btsmip"
9373 ;;
9374 *LSB*)
9375 emul="${emul}ltsmip"
9376 ;;
9377 esac
9378 case `/usr/bin/file conftest.$ac_objext` in
9379 *N32*)
9380 emul="${emul}n32"
9381 ;;
9382 esac
9383 LD="${LD-ld} -m $emul"
9384 fi
9385 rm -rf conftest*
9386 ;;
9387
9388 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
9389 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
9390 # Find out what ABI is being produced by ac_compile, and set linker
9391 # options accordingly. Note that the listed cases only cover the
9392 # situations where additional linker options are needed (such as when
9393 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
9394 # vice versa); the common cases where no linker options are needed do
9395 # not appear in the list.
9396 echo 'int i;' > conftest.$ac_ext
9397 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9398 (eval $ac_compile) 2>&5
9399 ac_status=$?
9400 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9401 test $ac_status = 0; }; then
9402 case `/usr/bin/file conftest.o` in
9403 *32-bit*)
9404 case $host in
9405 x86_64-*kfreebsd*-gnu)
9406 LD="${LD-ld} -m elf_i386_fbsd"
9407 ;;
9408 x86_64-*linux*)
9409 case `/usr/bin/file conftest.o` in
9410 *x86-64*)
9411 LD="${LD-ld} -m elf32_x86_64"
9412 ;;
9413 *)
9414 LD="${LD-ld} -m elf_i386"
9415 ;;
9416 esac
9417 ;;
9418 powerpc64le-*linux*)
9419 LD="${LD-ld} -m elf32lppclinux"
9420 ;;
9421 powerpc64-*linux*)
9422 LD="${LD-ld} -m elf32ppclinux"
9423 ;;
9424 s390x-*linux*)
9425 LD="${LD-ld} -m elf_s390"
9426 ;;
9427 sparc64-*linux*)
9428 LD="${LD-ld} -m elf32_sparc"
9429 ;;
9430 esac
9431 ;;
9432 *64-bit*)
9433 case $host in
9434 x86_64-*kfreebsd*-gnu)
9435 LD="${LD-ld} -m elf_x86_64_fbsd"
9436 ;;
9437 x86_64-*linux*)
9438 LD="${LD-ld} -m elf_x86_64"
9439 ;;
9440 powerpcle-*linux*)
9441 LD="${LD-ld} -m elf64lppc"
9442 ;;
9443 powerpc-*linux*)
9444 LD="${LD-ld} -m elf64ppc"
9445 ;;
9446 s390*-*linux*|s390*-*tpf*)
9447 LD="${LD-ld} -m elf64_s390"
9448 ;;
9449 sparc*-*linux*)
9450 LD="${LD-ld} -m elf64_sparc"
9451 ;;
9452 esac
9453 ;;
9454 esac
9455 fi
9456 rm -rf conftest*
9457 ;;
9458
9459 *-*-sco3.2v5*)
9460 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
9461 SAVE_CFLAGS=$CFLAGS
9462 CFLAGS="$CFLAGS -belf"
9463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
9464 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
9465 if ${lt_cv_cc_needs_belf+:} false; then :
9466 $as_echo_n "(cached) " >&6
9467 else
9468 ac_ext=c
9469 ac_cpp='$CPP $CPPFLAGS'
9470 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9471 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9472 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9473
9474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9475 /* end confdefs.h. */
9476
9477 int
9478 main ()
9479 {
9480
9481 ;
9482 return 0;
9483 }
9484 _ACEOF
9485 if ac_fn_c_try_link "$LINENO"; then :
9486 lt_cv_cc_needs_belf=yes
9487 else
9488 lt_cv_cc_needs_belf=no
9489 fi
9490 rm -f core conftest.err conftest.$ac_objext \
9491 conftest$ac_exeext conftest.$ac_ext
9492 ac_ext=c
9493 ac_cpp='$CPP $CPPFLAGS'
9494 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9495 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9496 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9497
9498 fi
9499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
9500 $as_echo "$lt_cv_cc_needs_belf" >&6; }
9501 if test yes != "$lt_cv_cc_needs_belf"; then
9502 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
9503 CFLAGS=$SAVE_CFLAGS
9504 fi
9505 ;;
9506 *-*solaris*)
9507 # Find out what ABI is being produced by ac_compile, and set linker
9508 # options accordingly.
9509 echo 'int i;' > conftest.$ac_ext
9510 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9511 (eval $ac_compile) 2>&5
9512 ac_status=$?
9513 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9514 test $ac_status = 0; }; then
9515 case `/usr/bin/file conftest.o` in
9516 *64-bit*)
9517 case $lt_cv_prog_gnu_ld in
9518 yes*)
9519 case $host in
9520 i?86-*-solaris*|x86_64-*-solaris*)
9521 LD="${LD-ld} -m elf_x86_64"
9522 ;;
9523 sparc*-*-solaris*)
9524 LD="${LD-ld} -m elf64_sparc"
9525 ;;
9526 esac
9527 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
9528 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
9529 LD=${LD-ld}_sol2
9530 fi
9531 ;;
9532 *)
9533 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
9534 LD="${LD-ld} -64"
9535 fi
9536 ;;
9537 esac
9538 ;;
9539 esac
9540 fi
9541 rm -rf conftest*
9542 ;;
9543 esac
9544
9545 need_locks=$enable_libtool_lock
9546
9547 if test -n "$ac_tool_prefix"; then
9548 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
9549 set dummy ${ac_tool_prefix}mt; ac_word=$2
9550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9551 $as_echo_n "checking for $ac_word... " >&6; }
9552 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
9553 $as_echo_n "(cached) " >&6
9554 else
9555 if test -n "$MANIFEST_TOOL"; then
9556 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
9557 else
9558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9559 for as_dir in $PATH
9560 do
9561 IFS=$as_save_IFS
9562 test -z "$as_dir" && as_dir=.
9563 for ac_exec_ext in '' $ac_executable_extensions; do
9564 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9565 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
9566 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9567 break 2
9568 fi
9569 done
9570 done
9571 IFS=$as_save_IFS
9572
9573 fi
9574 fi
9575 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
9576 if test -n "$MANIFEST_TOOL"; then
9577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
9578 $as_echo "$MANIFEST_TOOL" >&6; }
9579 else
9580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9581 $as_echo "no" >&6; }
9582 fi
9583
9584
9585 fi
9586 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
9587 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
9588 # Extract the first word of "mt", so it can be a program name with args.
9589 set dummy mt; ac_word=$2
9590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9591 $as_echo_n "checking for $ac_word... " >&6; }
9592 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
9593 $as_echo_n "(cached) " >&6
9594 else
9595 if test -n "$ac_ct_MANIFEST_TOOL"; then
9596 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
9597 else
9598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9599 for as_dir in $PATH
9600 do
9601 IFS=$as_save_IFS
9602 test -z "$as_dir" && as_dir=.
9603 for ac_exec_ext in '' $ac_executable_extensions; do
9604 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9605 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
9606 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9607 break 2
9608 fi
9609 done
9610 done
9611 IFS=$as_save_IFS
9612
9613 fi
9614 fi
9615 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
9616 if test -n "$ac_ct_MANIFEST_TOOL"; then
9617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
9618 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
9619 else
9620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9621 $as_echo "no" >&6; }
9622 fi
9623
9624 if test "x$ac_ct_MANIFEST_TOOL" = x; then
9625 MANIFEST_TOOL=":"
9626 else
9627 case $cross_compiling:$ac_tool_warned in
9628 yes:)
9629 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9630 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9631 ac_tool_warned=yes ;;
9632 esac
9633 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
9634 fi
9635 else
9636 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
9637 fi
9638
9639 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
9640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
9641 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
9642 if ${lt_cv_path_mainfest_tool+:} false; then :
9643 $as_echo_n "(cached) " >&6
9644 else
9645 lt_cv_path_mainfest_tool=no
9646 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
9647 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
9648 cat conftest.err >&5
9649 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
9650 lt_cv_path_mainfest_tool=yes
9651 fi
9652 rm -f conftest*
9653 fi
9654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
9655 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
9656 if test yes != "$lt_cv_path_mainfest_tool"; then
9657 MANIFEST_TOOL=:
9658 fi
9659
9660
9661
9662
9663
9664
9665 case $host_os in
9666 rhapsody* | darwin*)
9667 if test -n "$ac_tool_prefix"; then
9668 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
9669 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
9670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9671 $as_echo_n "checking for $ac_word... " >&6; }
9672 if ${ac_cv_prog_DSYMUTIL+:} false; then :
9673 $as_echo_n "(cached) " >&6
9674 else
9675 if test -n "$DSYMUTIL"; then
9676 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
9677 else
9678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9679 for as_dir in $PATH
9680 do
9681 IFS=$as_save_IFS
9682 test -z "$as_dir" && as_dir=.
9683 for ac_exec_ext in '' $ac_executable_extensions; do
9684 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9685 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
9686 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9687 break 2
9688 fi
9689 done
9690 done
9691 IFS=$as_save_IFS
9692
9693 fi
9694 fi
9695 DSYMUTIL=$ac_cv_prog_DSYMUTIL
9696 if test -n "$DSYMUTIL"; then
9697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
9698 $as_echo "$DSYMUTIL" >&6; }
9699 else
9700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9701 $as_echo "no" >&6; }
9702 fi
9703
9704
9705 fi
9706 if test -z "$ac_cv_prog_DSYMUTIL"; then
9707 ac_ct_DSYMUTIL=$DSYMUTIL
9708 # Extract the first word of "dsymutil", so it can be a program name with args.
9709 set dummy dsymutil; ac_word=$2
9710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9711 $as_echo_n "checking for $ac_word... " >&6; }
9712 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
9713 $as_echo_n "(cached) " >&6
9714 else
9715 if test -n "$ac_ct_DSYMUTIL"; then
9716 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
9717 else
9718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9719 for as_dir in $PATH
9720 do
9721 IFS=$as_save_IFS
9722 test -z "$as_dir" && as_dir=.
9723 for ac_exec_ext in '' $ac_executable_extensions; do
9724 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9725 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
9726 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9727 break 2
9728 fi
9729 done
9730 done
9731 IFS=$as_save_IFS
9732
9733 fi
9734 fi
9735 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
9736 if test -n "$ac_ct_DSYMUTIL"; then
9737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
9738 $as_echo "$ac_ct_DSYMUTIL" >&6; }
9739 else
9740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9741 $as_echo "no" >&6; }
9742 fi
9743
9744 if test "x$ac_ct_DSYMUTIL" = x; then
9745 DSYMUTIL=":"
9746 else
9747 case $cross_compiling:$ac_tool_warned in
9748 yes:)
9749 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9750 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9751 ac_tool_warned=yes ;;
9752 esac
9753 DSYMUTIL=$ac_ct_DSYMUTIL
9754 fi
9755 else
9756 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
9757 fi
9758
9759 if test -n "$ac_tool_prefix"; then
9760 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
9761 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
9762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9763 $as_echo_n "checking for $ac_word... " >&6; }
9764 if ${ac_cv_prog_NMEDIT+:} false; then :
9765 $as_echo_n "(cached) " >&6
9766 else
9767 if test -n "$NMEDIT"; then
9768 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
9769 else
9770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9771 for as_dir in $PATH
9772 do
9773 IFS=$as_save_IFS
9774 test -z "$as_dir" && as_dir=.
9775 for ac_exec_ext in '' $ac_executable_extensions; do
9776 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9777 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
9778 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9779 break 2
9780 fi
9781 done
9782 done
9783 IFS=$as_save_IFS
9784
9785 fi
9786 fi
9787 NMEDIT=$ac_cv_prog_NMEDIT
9788 if test -n "$NMEDIT"; then
9789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
9790 $as_echo "$NMEDIT" >&6; }
9791 else
9792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9793 $as_echo "no" >&6; }
9794 fi
9795
9796
9797 fi
9798 if test -z "$ac_cv_prog_NMEDIT"; then
9799 ac_ct_NMEDIT=$NMEDIT
9800 # Extract the first word of "nmedit", so it can be a program name with args.
9801 set dummy nmedit; ac_word=$2
9802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9803 $as_echo_n "checking for $ac_word... " >&6; }
9804 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
9805 $as_echo_n "(cached) " >&6
9806 else
9807 if test -n "$ac_ct_NMEDIT"; then
9808 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
9809 else
9810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9811 for as_dir in $PATH
9812 do
9813 IFS=$as_save_IFS
9814 test -z "$as_dir" && as_dir=.
9815 for ac_exec_ext in '' $ac_executable_extensions; do
9816 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9817 ac_cv_prog_ac_ct_NMEDIT="nmedit"
9818 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9819 break 2
9820 fi
9821 done
9822 done
9823 IFS=$as_save_IFS
9824
9825 fi
9826 fi
9827 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
9828 if test -n "$ac_ct_NMEDIT"; then
9829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
9830 $as_echo "$ac_ct_NMEDIT" >&6; }
9831 else
9832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9833 $as_echo "no" >&6; }
9834 fi
9835
9836 if test "x$ac_ct_NMEDIT" = x; then
9837 NMEDIT=":"
9838 else
9839 case $cross_compiling:$ac_tool_warned in
9840 yes:)
9841 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9842 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9843 ac_tool_warned=yes ;;
9844 esac
9845 NMEDIT=$ac_ct_NMEDIT
9846 fi
9847 else
9848 NMEDIT="$ac_cv_prog_NMEDIT"
9849 fi
9850
9851 if test -n "$ac_tool_prefix"; then
9852 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
9853 set dummy ${ac_tool_prefix}lipo; ac_word=$2
9854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9855 $as_echo_n "checking for $ac_word... " >&6; }
9856 if ${ac_cv_prog_LIPO+:} false; then :
9857 $as_echo_n "(cached) " >&6
9858 else
9859 if test -n "$LIPO"; then
9860 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
9861 else
9862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9863 for as_dir in $PATH
9864 do
9865 IFS=$as_save_IFS
9866 test -z "$as_dir" && as_dir=.
9867 for ac_exec_ext in '' $ac_executable_extensions; do
9868 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9869 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
9870 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9871 break 2
9872 fi
9873 done
9874 done
9875 IFS=$as_save_IFS
9876
9877 fi
9878 fi
9879 LIPO=$ac_cv_prog_LIPO
9880 if test -n "$LIPO"; then
9881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
9882 $as_echo "$LIPO" >&6; }
9883 else
9884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9885 $as_echo "no" >&6; }
9886 fi
9887
9888
9889 fi
9890 if test -z "$ac_cv_prog_LIPO"; then
9891 ac_ct_LIPO=$LIPO
9892 # Extract the first word of "lipo", so it can be a program name with args.
9893 set dummy lipo; ac_word=$2
9894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9895 $as_echo_n "checking for $ac_word... " >&6; }
9896 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
9897 $as_echo_n "(cached) " >&6
9898 else
9899 if test -n "$ac_ct_LIPO"; then
9900 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
9901 else
9902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9903 for as_dir in $PATH
9904 do
9905 IFS=$as_save_IFS
9906 test -z "$as_dir" && as_dir=.
9907 for ac_exec_ext in '' $ac_executable_extensions; do
9908 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9909 ac_cv_prog_ac_ct_LIPO="lipo"
9910 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9911 break 2
9912 fi
9913 done
9914 done
9915 IFS=$as_save_IFS
9916
9917 fi
9918 fi
9919 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
9920 if test -n "$ac_ct_LIPO"; then
9921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
9922 $as_echo "$ac_ct_LIPO" >&6; }
9923 else
9924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9925 $as_echo "no" >&6; }
9926 fi
9927
9928 if test "x$ac_ct_LIPO" = x; then
9929 LIPO=":"
9930 else
9931 case $cross_compiling:$ac_tool_warned in
9932 yes:)
9933 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9934 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9935 ac_tool_warned=yes ;;
9936 esac
9937 LIPO=$ac_ct_LIPO
9938 fi
9939 else
9940 LIPO="$ac_cv_prog_LIPO"
9941 fi
9942
9943 if test -n "$ac_tool_prefix"; then
9944 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
9945 set dummy ${ac_tool_prefix}otool; ac_word=$2
9946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9947 $as_echo_n "checking for $ac_word... " >&6; }
9948 if ${ac_cv_prog_OTOOL+:} false; then :
9949 $as_echo_n "(cached) " >&6
9950 else
9951 if test -n "$OTOOL"; then
9952 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
9953 else
9954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9955 for as_dir in $PATH
9956 do
9957 IFS=$as_save_IFS
9958 test -z "$as_dir" && as_dir=.
9959 for ac_exec_ext in '' $ac_executable_extensions; do
9960 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9961 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
9962 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9963 break 2
9964 fi
9965 done
9966 done
9967 IFS=$as_save_IFS
9968
9969 fi
9970 fi
9971 OTOOL=$ac_cv_prog_OTOOL
9972 if test -n "$OTOOL"; then
9973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
9974 $as_echo "$OTOOL" >&6; }
9975 else
9976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9977 $as_echo "no" >&6; }
9978 fi
9979
9980
9981 fi
9982 if test -z "$ac_cv_prog_OTOOL"; then
9983 ac_ct_OTOOL=$OTOOL
9984 # Extract the first word of "otool", so it can be a program name with args.
9985 set dummy otool; ac_word=$2
9986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9987 $as_echo_n "checking for $ac_word... " >&6; }
9988 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
9989 $as_echo_n "(cached) " >&6
9990 else
9991 if test -n "$ac_ct_OTOOL"; then
9992 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
9993 else
9994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9995 for as_dir in $PATH
9996 do
9997 IFS=$as_save_IFS
9998 test -z "$as_dir" && as_dir=.
9999 for ac_exec_ext in '' $ac_executable_extensions; do
10000 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10001 ac_cv_prog_ac_ct_OTOOL="otool"
10002 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10003 break 2
10004 fi
10005 done
10006 done
10007 IFS=$as_save_IFS
10008
10009 fi
10010 fi
10011 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
10012 if test -n "$ac_ct_OTOOL"; then
10013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
10014 $as_echo "$ac_ct_OTOOL" >&6; }
10015 else
10016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10017 $as_echo "no" >&6; }
10018 fi
10019
10020 if test "x$ac_ct_OTOOL" = x; then
10021 OTOOL=":"
10022 else
10023 case $cross_compiling:$ac_tool_warned in
10024 yes:)
10025 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10026 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10027 ac_tool_warned=yes ;;
10028 esac
10029 OTOOL=$ac_ct_OTOOL
10030 fi
10031 else
10032 OTOOL="$ac_cv_prog_OTOOL"
10033 fi
10034
10035 if test -n "$ac_tool_prefix"; then
10036 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
10037 set dummy ${ac_tool_prefix}otool64; ac_word=$2
10038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10039 $as_echo_n "checking for $ac_word... " >&6; }
10040 if ${ac_cv_prog_OTOOL64+:} false; then :
10041 $as_echo_n "(cached) " >&6
10042 else
10043 if test -n "$OTOOL64"; then
10044 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
10045 else
10046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10047 for as_dir in $PATH
10048 do
10049 IFS=$as_save_IFS
10050 test -z "$as_dir" && as_dir=.
10051 for ac_exec_ext in '' $ac_executable_extensions; do
10052 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10053 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
10054 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10055 break 2
10056 fi
10057 done
10058 done
10059 IFS=$as_save_IFS
10060
10061 fi
10062 fi
10063 OTOOL64=$ac_cv_prog_OTOOL64
10064 if test -n "$OTOOL64"; then
10065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
10066 $as_echo "$OTOOL64" >&6; }
10067 else
10068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10069 $as_echo "no" >&6; }
10070 fi
10071
10072
10073 fi
10074 if test -z "$ac_cv_prog_OTOOL64"; then
10075 ac_ct_OTOOL64=$OTOOL64
10076 # Extract the first word of "otool64", so it can be a program name with args.
10077 set dummy otool64; ac_word=$2
10078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10079 $as_echo_n "checking for $ac_word... " >&6; }
10080 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
10081 $as_echo_n "(cached) " >&6
10082 else
10083 if test -n "$ac_ct_OTOOL64"; then
10084 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
10085 else
10086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10087 for as_dir in $PATH
10088 do
10089 IFS=$as_save_IFS
10090 test -z "$as_dir" && as_dir=.
10091 for ac_exec_ext in '' $ac_executable_extensions; do
10092 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10093 ac_cv_prog_ac_ct_OTOOL64="otool64"
10094 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10095 break 2
10096 fi
10097 done
10098 done
10099 IFS=$as_save_IFS
10100
10101 fi
10102 fi
10103 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
10104 if test -n "$ac_ct_OTOOL64"; then
10105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
10106 $as_echo "$ac_ct_OTOOL64" >&6; }
10107 else
10108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10109 $as_echo "no" >&6; }
10110 fi
10111
10112 if test "x$ac_ct_OTOOL64" = x; then
10113 OTOOL64=":"
10114 else
10115 case $cross_compiling:$ac_tool_warned in
10116 yes:)
10117 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10118 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10119 ac_tool_warned=yes ;;
10120 esac
10121 OTOOL64=$ac_ct_OTOOL64
10122 fi
10123 else
10124 OTOOL64="$ac_cv_prog_OTOOL64"
10125 fi
10126
10127
10128
10129
10130
10131
10132
10133
10134
10135
10136
10137
10138
10139
10140
10141
10142
10143
10144
10145
10146
10147
10148
10149
10150
10151
10152
10153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
10154 $as_echo_n "checking for -single_module linker flag... " >&6; }
10155 if ${lt_cv_apple_cc_single_mod+:} false; then :
10156 $as_echo_n "(cached) " >&6
10157 else
10158 lt_cv_apple_cc_single_mod=no
10159 if test -z "$LT_MULTI_MODULE"; then
10160 # By default we will add the -single_module flag. You can override
10161 # by either setting the environment variable LT_MULTI_MODULE
10162 # non-empty at configure time, or by adding -multi_module to the
10163 # link flags.
10164 rm -rf libconftest.dylib*
10165 echo "int foo(void){return 1;}" > conftest.c
10166 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10167 -dynamiclib -Wl,-single_module conftest.c" >&5
10168 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10169 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
10170 _lt_result=$?
10171 # If there is a non-empty error log, and "single_module"
10172 # appears in it, assume the flag caused a linker warning
10173 if test -s conftest.err && $GREP single_module conftest.err; then
10174 cat conftest.err >&5
10175 # Otherwise, if the output was created with a 0 exit code from
10176 # the compiler, it worked.
10177 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
10178 lt_cv_apple_cc_single_mod=yes
10179 else
10180 cat conftest.err >&5
10181 fi
10182 rm -rf libconftest.dylib*
10183 rm -f conftest.*
10184 fi
10185 fi
10186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
10187 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
10188
10189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
10190 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
10191 if ${lt_cv_ld_exported_symbols_list+:} false; then :
10192 $as_echo_n "(cached) " >&6
10193 else
10194 lt_cv_ld_exported_symbols_list=no
10195 save_LDFLAGS=$LDFLAGS
10196 echo "_main" > conftest.sym
10197 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
10198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10199 /* end confdefs.h. */
10200
10201 int
10202 main ()
10203 {
10204
10205 ;
10206 return 0;
10207 }
10208 _ACEOF
10209 if ac_fn_c_try_link "$LINENO"; then :
10210 lt_cv_ld_exported_symbols_list=yes
10211 else
10212 lt_cv_ld_exported_symbols_list=no
10213 fi
10214 rm -f core conftest.err conftest.$ac_objext \
10215 conftest$ac_exeext conftest.$ac_ext
10216 LDFLAGS=$save_LDFLAGS
10217
10218 fi
10219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
10220 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
10221
10222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
10223 $as_echo_n "checking for -force_load linker flag... " >&6; }
10224 if ${lt_cv_ld_force_load+:} false; then :
10225 $as_echo_n "(cached) " >&6
10226 else
10227 lt_cv_ld_force_load=no
10228 cat > conftest.c << _LT_EOF
10229 int forced_loaded() { return 2;}
10230 _LT_EOF
10231 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
10232 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
10233 echo "$AR cr libconftest.a conftest.o" >&5
10234 $AR cr libconftest.a conftest.o 2>&5
10235 echo "$RANLIB libconftest.a" >&5
10236 $RANLIB libconftest.a 2>&5
10237 cat > conftest.c << _LT_EOF
10238 int main() { return 0;}
10239 _LT_EOF
10240 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
10241 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
10242 _lt_result=$?
10243 if test -s conftest.err && $GREP force_load conftest.err; then
10244 cat conftest.err >&5
10245 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
10246 lt_cv_ld_force_load=yes
10247 else
10248 cat conftest.err >&5
10249 fi
10250 rm -f conftest.err libconftest.a conftest conftest.c
10251 rm -rf conftest.dSYM
10252
10253 fi
10254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
10255 $as_echo "$lt_cv_ld_force_load" >&6; }
10256 case $host_os in
10257 rhapsody* | darwin1.[012])
10258 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
10259 darwin1.*)
10260 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
10261 darwin*) # darwin 5.x on
10262 # if running on 10.5 or later, the deployment target defaults
10263 # to the OS version, if on x86, and 10.4, the deployment
10264 # target defaults to 10.4. Don't you love it?
10265 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
10266 10.0,*86*-darwin8*|10.0,*-darwin[912]*)
10267 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
10268 10.[012][,.]*)
10269 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
10270 10.*|11.*)
10271 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
10272 esac
10273 ;;
10274 esac
10275 if test yes = "$lt_cv_apple_cc_single_mod"; then
10276 _lt_dar_single_mod='$single_module'
10277 fi
10278 if test yes = "$lt_cv_ld_exported_symbols_list"; then
10279 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
10280 else
10281 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
10282 fi
10283 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
10284 _lt_dsymutil='~$DSYMUTIL $lib || :'
10285 else
10286 _lt_dsymutil=
10287 fi
10288 ;;
10289 esac
10290
10291 # func_munge_path_list VARIABLE PATH
10292 # -----------------------------------
10293 # VARIABLE is name of variable containing _space_ separated list of
10294 # directories to be munged by the contents of PATH, which is string
10295 # having a format:
10296 # "DIR[:DIR]:"
10297 # string "DIR[ DIR]" will be prepended to VARIABLE
10298 # ":DIR[:DIR]"
10299 # string "DIR[ DIR]" will be appended to VARIABLE
10300 # "DIRP[:DIRP]::[DIRA:]DIRA"
10301 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
10302 # "DIRA[ DIRA]" will be appended to VARIABLE
10303 # "DIR[:DIR]"
10304 # VARIABLE will be replaced by "DIR[ DIR]"
10305 func_munge_path_list ()
10306 {
10307 case x$2 in
10308 x)
10309 ;;
10310 *:)
10311 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
10312 ;;
10313 x:*)
10314 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
10315 ;;
10316 *::*)
10317 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
10318 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
10319 ;;
10320 *)
10321 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
10322 ;;
10323 esac
10324 }
10325
10326 ac_ext=c
10327 ac_cpp='$CPP $CPPFLAGS'
10328 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10329 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10330 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
10332 $as_echo_n "checking how to run the C preprocessor... " >&6; }
10333 # On Suns, sometimes $CPP names a directory.
10334 if test -n "$CPP" && test -d "$CPP"; then
10335 CPP=
10336 fi
10337 if test -z "$CPP"; then
10338 if ${ac_cv_prog_CPP+:} false; then :
10339 $as_echo_n "(cached) " >&6
10340 else
10341 # Double quotes because CPP needs to be expanded
10342 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
10343 do
10344 ac_preproc_ok=false
10345 for ac_c_preproc_warn_flag in '' yes
10346 do
10347 # Use a header file that comes with gcc, so configuring glibc
10348 # with a fresh cross-compiler works.
10349 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10350 # <limits.h> exists even on freestanding compilers.
10351 # On the NeXT, cc -E runs the code through the compiler's parser,
10352 # not just through cpp. "Syntax error" is here to catch this case.
10353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10354 /* end confdefs.h. */
10355 #ifdef __STDC__
10356 # include <limits.h>
10357 #else
10358 # include <assert.h>
10359 #endif
10360 Syntax error
10361 _ACEOF
10362 if ac_fn_c_try_cpp "$LINENO"; then :
10363
10364 else
10365 # Broken: fails on valid input.
10366 continue
10367 fi
10368 rm -f conftest.err conftest.i conftest.$ac_ext
10369
10370 # OK, works on sane cases. Now check whether nonexistent headers
10371 # can be detected and how.
10372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10373 /* end confdefs.h. */
10374 #include <ac_nonexistent.h>
10375 _ACEOF
10376 if ac_fn_c_try_cpp "$LINENO"; then :
10377 # Broken: success on invalid input.
10378 continue
10379 else
10380 # Passes both tests.
10381 ac_preproc_ok=:
10382 break
10383 fi
10384 rm -f conftest.err conftest.i conftest.$ac_ext
10385
10386 done
10387 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10388 rm -f conftest.i conftest.err conftest.$ac_ext
10389 if $ac_preproc_ok; then :
10390 break
10391 fi
10392
10393 done
10394 ac_cv_prog_CPP=$CPP
10395
10396 fi
10397 CPP=$ac_cv_prog_CPP
10398 else
10399 ac_cv_prog_CPP=$CPP
10400 fi
10401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
10402 $as_echo "$CPP" >&6; }
10403 ac_preproc_ok=false
10404 for ac_c_preproc_warn_flag in '' yes
10405 do
10406 # Use a header file that comes with gcc, so configuring glibc
10407 # with a fresh cross-compiler works.
10408 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10409 # <limits.h> exists even on freestanding compilers.
10410 # On the NeXT, cc -E runs the code through the compiler's parser,
10411 # not just through cpp. "Syntax error" is here to catch this case.
10412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10413 /* end confdefs.h. */
10414 #ifdef __STDC__
10415 # include <limits.h>
10416 #else
10417 # include <assert.h>
10418 #endif
10419 Syntax error
10420 _ACEOF
10421 if ac_fn_c_try_cpp "$LINENO"; then :
10422
10423 else
10424 # Broken: fails on valid input.
10425 continue
10426 fi
10427 rm -f conftest.err conftest.i conftest.$ac_ext
10428
10429 # OK, works on sane cases. Now check whether nonexistent headers
10430 # can be detected and how.
10431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10432 /* end confdefs.h. */
10433 #include <ac_nonexistent.h>
10434 _ACEOF
10435 if ac_fn_c_try_cpp "$LINENO"; then :
10436 # Broken: success on invalid input.
10437 continue
10438 else
10439 # Passes both tests.
10440 ac_preproc_ok=:
10441 break
10442 fi
10443 rm -f conftest.err conftest.i conftest.$ac_ext
10444
10445 done
10446 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10447 rm -f conftest.i conftest.err conftest.$ac_ext
10448 if $ac_preproc_ok; then :
10449
10450 else
10451 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10452 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10453 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
10454 See \`config.log' for more details" "$LINENO" 5; }
10455 fi
10456
10457 ac_ext=c
10458 ac_cpp='$CPP $CPPFLAGS'
10459 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10460 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10461 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10462
10463
10464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
10465 $as_echo_n "checking for ANSI C header files... " >&6; }
10466 if ${ac_cv_header_stdc+:} false; then :
10467 $as_echo_n "(cached) " >&6
10468 else
10469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10470 /* end confdefs.h. */
10471 #include <stdlib.h>
10472 #include <stdarg.h>
10473 #include <string.h>
10474 #include <float.h>
10475
10476 int
10477 main ()
10478 {
10479
10480 ;
10481 return 0;
10482 }
10483 _ACEOF
10484 if ac_fn_c_try_compile "$LINENO"; then :
10485 ac_cv_header_stdc=yes
10486 else
10487 ac_cv_header_stdc=no
10488 fi
10489 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10490
10491 if test $ac_cv_header_stdc = yes; then
10492 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
10493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10494 /* end confdefs.h. */
10495 #include <string.h>
10496
10497 _ACEOF
10498 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10499 $EGREP "memchr" >/dev/null 2>&1; then :
10500
10501 else
10502 ac_cv_header_stdc=no
10503 fi
10504 rm -f conftest*
10505
10506 fi
10507
10508 if test $ac_cv_header_stdc = yes; then
10509 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
10510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10511 /* end confdefs.h. */
10512 #include <stdlib.h>
10513
10514 _ACEOF
10515 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10516 $EGREP "free" >/dev/null 2>&1; then :
10517
10518 else
10519 ac_cv_header_stdc=no
10520 fi
10521 rm -f conftest*
10522
10523 fi
10524
10525 if test $ac_cv_header_stdc = yes; then
10526 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
10527 if test "$cross_compiling" = yes; then :
10528 :
10529 else
10530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10531 /* end confdefs.h. */
10532 #include <ctype.h>
10533 #include <stdlib.h>
10534 #if ((' ' & 0x0FF) == 0x020)
10535 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
10536 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
10537 #else
10538 # define ISLOWER(c) \
10539 (('a' <= (c) && (c) <= 'i') \
10540 || ('j' <= (c) && (c) <= 'r') \
10541 || ('s' <= (c) && (c) <= 'z'))
10542 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
10543 #endif
10544
10545 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
10546 int
10547 main ()
10548 {
10549 int i;
10550 for (i = 0; i < 256; i++)
10551 if (XOR (islower (i), ISLOWER (i))
10552 || toupper (i) != TOUPPER (i))
10553 return 2;
10554 return 0;
10555 }
10556 _ACEOF
10557 if ac_fn_c_try_run "$LINENO"; then :
10558
10559 else
10560 ac_cv_header_stdc=no
10561 fi
10562 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10563 conftest.$ac_objext conftest.beam conftest.$ac_ext
10564 fi
10565
10566 fi
10567 fi
10568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
10569 $as_echo "$ac_cv_header_stdc" >&6; }
10570 if test $ac_cv_header_stdc = yes; then
10571
10572 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
10573
10574 fi
10575
10576 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
10577 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
10578 inttypes.h stdint.h unistd.h
10579 do :
10580 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10581 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
10582 "
10583 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10584 cat >>confdefs.h <<_ACEOF
10585 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10586 _ACEOF
10587
10588 fi
10589
10590 done
10591
10592
10593 for ac_header in dlfcn.h
10594 do :
10595 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
10596 "
10597 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
10598 cat >>confdefs.h <<_ACEOF
10599 #define HAVE_DLFCN_H 1
10600 _ACEOF
10601
10602 fi
10603
10604 done
10605
10606
10607
10608
10609
10610 # Set options
10611
10612
10613
10614 enable_dlopen=no
10615
10616
10617 enable_win32_dll=no
10618
10619
10620 # Check whether --enable-shared was given.
10621 if test "${enable_shared+set}" = set; then :
10622 enableval=$enable_shared; p=${PACKAGE-default}
10623 case $enableval in
10624 yes) enable_shared=yes ;;
10625 no) enable_shared=no ;;
10626 *)
10627 enable_shared=no
10628 # Look at the argument we got. We use all the common list separators.
10629 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10630 for pkg in $enableval; do
10631 IFS=$lt_save_ifs
10632 if test "X$pkg" = "X$p"; then
10633 enable_shared=yes
10634 fi
10635 done
10636 IFS=$lt_save_ifs
10637 ;;
10638 esac
10639 else
10640 enable_shared=yes
10641 fi
10642
10643
10644
10645
10646
10647
10648
10649
10650
10651
10652
10653 # Check whether --with-pic was given.
10654 if test "${with_pic+set}" = set; then :
10655 withval=$with_pic; lt_p=${PACKAGE-default}
10656 case $withval in
10657 yes|no) pic_mode=$withval ;;
10658 *)
10659 pic_mode=default
10660 # Look at the argument we got. We use all the common list separators.
10661 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10662 for lt_pkg in $withval; do
10663 IFS=$lt_save_ifs
10664 if test "X$lt_pkg" = "X$lt_p"; then
10665 pic_mode=yes
10666 fi
10667 done
10668 IFS=$lt_save_ifs
10669 ;;
10670 esac
10671 else
10672 pic_mode=default
10673 fi
10674
10675
10676
10677
10678
10679
10680
10681
10682 # Check whether --enable-fast-install was given.
10683 if test "${enable_fast_install+set}" = set; then :
10684 enableval=$enable_fast_install; p=${PACKAGE-default}
10685 case $enableval in
10686 yes) enable_fast_install=yes ;;
10687 no) enable_fast_install=no ;;
10688 *)
10689 enable_fast_install=no
10690 # Look at the argument we got. We use all the common list separators.
10691 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10692 for pkg in $enableval; do
10693 IFS=$lt_save_ifs
10694 if test "X$pkg" = "X$p"; then
10695 enable_fast_install=yes
10696 fi
10697 done
10698 IFS=$lt_save_ifs
10699 ;;
10700 esac
10701 else
10702 enable_fast_install=yes
10703 fi
10704
10705
10706
10707
10708
10709
10710
10711
10712 shared_archive_member_spec=
10713 case $host,$enable_shared in
10714 power*-*-aix[5-9]*,yes)
10715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
10716 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
10717
10718 # Check whether --with-aix-soname was given.
10719 if test "${with_aix_soname+set}" = set; then :
10720 withval=$with_aix_soname; case $withval in
10721 aix|svr4|both)
10722 ;;
10723 *)
10724 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
10725 ;;
10726 esac
10727 lt_cv_with_aix_soname=$with_aix_soname
10728 else
10729 if ${lt_cv_with_aix_soname+:} false; then :
10730 $as_echo_n "(cached) " >&6
10731 else
10732 lt_cv_with_aix_soname=aix
10733 fi
10734
10735 with_aix_soname=$lt_cv_with_aix_soname
10736 fi
10737
10738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
10739 $as_echo "$with_aix_soname" >&6; }
10740 if test aix != "$with_aix_soname"; then
10741 # For the AIX way of multilib, we name the shared archive member
10742 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
10743 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
10744 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
10745 # the AIX toolchain works better with OBJECT_MODE set (default 32).
10746 if test 64 = "${OBJECT_MODE-32}"; then
10747 shared_archive_member_spec=shr_64
10748 else
10749 shared_archive_member_spec=shr
10750 fi
10751 fi
10752 ;;
10753 *)
10754 with_aix_soname=aix
10755 ;;
10756 esac
10757
10758
10759
10760
10761
10762
10763
10764
10765
10766
10767 # This can be used to rebuild libtool when needed
10768 LIBTOOL_DEPS=$ltmain
10769
10770 # Always use our own libtool.
10771 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
10772
10773
10774
10775
10776
10777
10778
10779
10780
10781
10782
10783
10784
10785
10786
10787
10788
10789
10790
10791
10792
10793
10794
10795
10796
10797
10798
10799
10800
10801
10802 test -z "$LN_S" && LN_S="ln -s"
10803
10804
10805
10806
10807
10808
10809
10810
10811
10812
10813
10814
10815
10816
10817 if test -n "${ZSH_VERSION+set}"; then
10818 setopt NO_GLOB_SUBST
10819 fi
10820
10821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
10822 $as_echo_n "checking for objdir... " >&6; }
10823 if ${lt_cv_objdir+:} false; then :
10824 $as_echo_n "(cached) " >&6
10825 else
10826 rm -f .libs 2>/dev/null
10827 mkdir .libs 2>/dev/null
10828 if test -d .libs; then
10829 lt_cv_objdir=.libs
10830 else
10831 # MS-DOS does not allow filenames that begin with a dot.
10832 lt_cv_objdir=_libs
10833 fi
10834 rmdir .libs 2>/dev/null
10835 fi
10836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
10837 $as_echo "$lt_cv_objdir" >&6; }
10838 objdir=$lt_cv_objdir
10839
10840
10841
10842
10843
10844 cat >>confdefs.h <<_ACEOF
10845 #define LT_OBJDIR "$lt_cv_objdir/"
10846 _ACEOF
10847
10848
10849
10850
10851 case $host_os in
10852 aix3*)
10853 # AIX sometimes has problems with the GCC collect2 program. For some
10854 # reason, if we set the COLLECT_NAMES environment variable, the problems
10855 # vanish in a puff of smoke.
10856 if test set != "${COLLECT_NAMES+set}"; then
10857 COLLECT_NAMES=
10858 export COLLECT_NAMES
10859 fi
10860 ;;
10861 esac
10862
10863 # Global variables:
10864 ofile=libtool
10865 can_build_shared=yes
10866
10867 # All known linkers require a '.a' archive for static linking (except MSVC,
10868 # which needs '.lib').
10869 libext=a
10870
10871 with_gnu_ld=$lt_cv_prog_gnu_ld
10872
10873 old_CC=$CC
10874 old_CFLAGS=$CFLAGS
10875
10876 # Set sane defaults for various variables
10877 test -z "$CC" && CC=cc
10878 test -z "$LTCC" && LTCC=$CC
10879 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
10880 test -z "$LD" && LD=ld
10881 test -z "$ac_objext" && ac_objext=o
10882
10883 func_cc_basename $compiler
10884 cc_basename=$func_cc_basename_result
10885
10886
10887 # Only perform the check for file, if the check method requires it
10888 test -z "$MAGIC_CMD" && MAGIC_CMD=file
10889 case $deplibs_check_method in
10890 file_magic*)
10891 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
10892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
10893 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
10894 if ${lt_cv_path_MAGIC_CMD+:} false; then :
10895 $as_echo_n "(cached) " >&6
10896 else
10897 case $MAGIC_CMD in
10898 [\\/*] | ?:[\\/]*)
10899 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
10900 ;;
10901 *)
10902 lt_save_MAGIC_CMD=$MAGIC_CMD
10903 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
10904 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10905 for ac_dir in $ac_dummy; do
10906 IFS=$lt_save_ifs
10907 test -z "$ac_dir" && ac_dir=.
10908 if test -f "$ac_dir/${ac_tool_prefix}file"; then
10909 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
10910 if test -n "$file_magic_test_file"; then
10911 case $deplibs_check_method in
10912 "file_magic "*)
10913 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10914 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10915 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10916 $EGREP "$file_magic_regex" > /dev/null; then
10917 :
10918 else
10919 cat <<_LT_EOF 1>&2
10920
10921 *** Warning: the command libtool uses to detect shared libraries,
10922 *** $file_magic_cmd, produces output that libtool cannot recognize.
10923 *** The result is that libtool may fail to recognize shared libraries
10924 *** as such. This will affect the creation of libtool libraries that
10925 *** depend on shared libraries, but programs linked with such libtool
10926 *** libraries will work regardless of this problem. Nevertheless, you
10927 *** may want to report the problem to your system manager and/or to
10928 *** [email protected]
10929
10930 _LT_EOF
10931 fi ;;
10932 esac
10933 fi
10934 break
10935 fi
10936 done
10937 IFS=$lt_save_ifs
10938 MAGIC_CMD=$lt_save_MAGIC_CMD
10939 ;;
10940 esac
10941 fi
10942
10943 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10944 if test -n "$MAGIC_CMD"; then
10945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10946 $as_echo "$MAGIC_CMD" >&6; }
10947 else
10948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10949 $as_echo "no" >&6; }
10950 fi
10951
10952
10953
10954
10955
10956 if test -z "$lt_cv_path_MAGIC_CMD"; then
10957 if test -n "$ac_tool_prefix"; then
10958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
10959 $as_echo_n "checking for file... " >&6; }
10960 if ${lt_cv_path_MAGIC_CMD+:} false; then :
10961 $as_echo_n "(cached) " >&6
10962 else
10963 case $MAGIC_CMD in
10964 [\\/*] | ?:[\\/]*)
10965 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
10966 ;;
10967 *)
10968 lt_save_MAGIC_CMD=$MAGIC_CMD
10969 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
10970 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10971 for ac_dir in $ac_dummy; do
10972 IFS=$lt_save_ifs
10973 test -z "$ac_dir" && ac_dir=.
10974 if test -f "$ac_dir/file"; then
10975 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
10976 if test -n "$file_magic_test_file"; then
10977 case $deplibs_check_method in
10978 "file_magic "*)
10979 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10980 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10981 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10982 $EGREP "$file_magic_regex" > /dev/null; then
10983 :
10984 else
10985 cat <<_LT_EOF 1>&2
10986
10987 *** Warning: the command libtool uses to detect shared libraries,
10988 *** $file_magic_cmd, produces output that libtool cannot recognize.
10989 *** The result is that libtool may fail to recognize shared libraries
10990 *** as such. This will affect the creation of libtool libraries that
10991 *** depend on shared libraries, but programs linked with such libtool
10992 *** libraries will work regardless of this problem. Nevertheless, you
10993 *** may want to report the problem to your system manager and/or to
10994 *** [email protected]
10995
10996 _LT_EOF
10997 fi ;;
10998 esac
10999 fi
11000 break
11001 fi
11002 done
11003 IFS=$lt_save_ifs
11004 MAGIC_CMD=$lt_save_MAGIC_CMD
11005 ;;
11006 esac
11007 fi
11008
11009 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11010 if test -n "$MAGIC_CMD"; then
11011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
11012 $as_echo "$MAGIC_CMD" >&6; }
11013 else
11014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11015 $as_echo "no" >&6; }
11016 fi
11017
11018
11019 else
11020 MAGIC_CMD=:
11021 fi
11022 fi
11023
11024 fi
11025 ;;
11026 esac
11027
11028 # Use C for the default configuration in the libtool script
11029
11030 lt_save_CC=$CC
11031 ac_ext=c
11032 ac_cpp='$CPP $CPPFLAGS'
11033 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11034 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11035 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11036
11037
11038 # Source file extension for C test sources.
11039 ac_ext=c
11040
11041 # Object file extension for compiled C test sources.
11042 objext=o
11043 objext=$objext
11044
11045 # Code to be used in simple compile tests
11046 lt_simple_compile_test_code="int some_variable = 0;"
11047
11048 # Code to be used in simple link tests
11049 lt_simple_link_test_code='int main(){return(0);}'
11050
11051
11052
11053
11054
11055
11056
11057 # If no C compiler was specified, use CC.
11058 LTCC=${LTCC-"$CC"}
11059
11060 # If no C compiler flags were specified, use CFLAGS.
11061 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11062
11063 # Allow CC to be a program name with arguments.
11064 compiler=$CC
11065
11066 # Save the default compiler, since it gets overwritten when the other
11067 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
11068 compiler_DEFAULT=$CC
11069
11070 # save warnings/boilerplate of simple test code
11071 ac_outfile=conftest.$ac_objext
11072 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11073 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11074 _lt_compiler_boilerplate=`cat conftest.err`
11075 $RM conftest*
11076
11077 ac_outfile=conftest.$ac_objext
11078 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11079 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11080 _lt_linker_boilerplate=`cat conftest.err`
11081 $RM -r conftest*
11082
11083
11084 ## CAVEAT EMPTOR:
11085 ## There is no encapsulation within the following macros, do not change
11086 ## the running order or otherwise move them around unless you know exactly
11087 ## what you are doing...
11088 if test -n "$compiler"; then
11089
11090 lt_prog_compiler_no_builtin_flag=
11091
11092 if test yes = "$GCC"; then
11093 case $cc_basename in
11094 nvcc*)
11095 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
11096 *)
11097 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
11098 esac
11099
11100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
11101 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
11102 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
11103 $as_echo_n "(cached) " >&6
11104 else
11105 lt_cv_prog_compiler_rtti_exceptions=no
11106 ac_outfile=conftest.$ac_objext
11107 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11108 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
11109 # Insert the option either (1) after the last *FLAGS variable, or
11110 # (2) before a word containing "conftest.", or (3) at the end.
11111 # Note that $ac_compile itself does not contain backslashes and begins
11112 # with a dollar sign (not a hyphen), so the echo should work correctly.
11113 # The option is referenced via a variable to avoid confusing sed.
11114 lt_compile=`echo "$ac_compile" | $SED \
11115 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11116 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11117 -e 's:$: $lt_compiler_flag:'`
11118 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11119 (eval "$lt_compile" 2>conftest.err)
11120 ac_status=$?
11121 cat conftest.err >&5
11122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11123 if (exit $ac_status) && test -s "$ac_outfile"; then
11124 # The compiler can only warn and ignore the option if not recognized
11125 # So say no if there are warnings other than the usual output.
11126 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11127 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11128 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11129 lt_cv_prog_compiler_rtti_exceptions=yes
11130 fi
11131 fi
11132 $RM conftest*
11133
11134 fi
11135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
11136 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
11137
11138 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
11139 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
11140 else
11141 :
11142 fi
11143
11144 fi
11145
11146
11147
11148
11149
11150
11151 lt_prog_compiler_wl=
11152 lt_prog_compiler_pic=
11153 lt_prog_compiler_static=
11154
11155
11156 if test yes = "$GCC"; then
11157 lt_prog_compiler_wl='-Wl,'
11158 lt_prog_compiler_static='-static'
11159
11160 case $host_os in
11161 aix*)
11162 # All AIX code is PIC.
11163 if test ia64 = "$host_cpu"; then
11164 # AIX 5 now supports IA64 processor
11165 lt_prog_compiler_static='-Bstatic'
11166 fi
11167 lt_prog_compiler_pic='-fPIC'
11168 ;;
11169
11170 amigaos*)
11171 case $host_cpu in
11172 powerpc)
11173 # see comment about AmigaOS4 .so support
11174 lt_prog_compiler_pic='-fPIC'
11175 ;;
11176 m68k)
11177 # FIXME: we need at least 68020 code to build shared libraries, but
11178 # adding the '-m68020' flag to GCC prevents building anything better,
11179 # like '-m68040'.
11180 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
11181 ;;
11182 esac
11183 ;;
11184
11185 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11186 # PIC is the default for these OSes.
11187 ;;
11188
11189 mingw* | cygwin* | pw32* | os2* | cegcc*)
11190 # This hack is so that the source file can tell whether it is being
11191 # built for inclusion in a dll (and should export symbols for example).
11192 # Although the cygwin gcc ignores -fPIC, still need this for old-style
11193 # (--disable-auto-import) libraries
11194 lt_prog_compiler_pic='-DDLL_EXPORT'
11195 case $host_os in
11196 os2*)
11197 lt_prog_compiler_static='$wl-static'
11198 ;;
11199 esac
11200 ;;
11201
11202 darwin* | rhapsody*)
11203 # PIC is the default on this platform
11204 # Common symbols not allowed in MH_DYLIB files
11205 lt_prog_compiler_pic='-fno-common'
11206 ;;
11207
11208 haiku*)
11209 # PIC is the default for Haiku.
11210 # The "-static" flag exists, but is broken.
11211 lt_prog_compiler_static=
11212 ;;
11213
11214 hpux*)
11215 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
11216 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
11217 # sets the default TLS model and affects inlining.
11218 case $host_cpu in
11219 hppa*64*)
11220 # +Z the default
11221 ;;
11222 *)
11223 lt_prog_compiler_pic='-fPIC'
11224 ;;
11225 esac
11226 ;;
11227
11228 interix[3-9]*)
11229 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11230 # Instead, we relocate shared libraries at runtime.
11231 ;;
11232
11233 msdosdjgpp*)
11234 # Just because we use GCC doesn't mean we suddenly get shared libraries
11235 # on systems that don't support them.
11236 lt_prog_compiler_can_build_shared=no
11237 enable_shared=no
11238 ;;
11239
11240 *nto* | *qnx*)
11241 # QNX uses GNU C++, but need to define -shared option too, otherwise
11242 # it will coredump.
11243 lt_prog_compiler_pic='-fPIC -shared'
11244 ;;
11245
11246 sysv4*MP*)
11247 if test -d /usr/nec; then
11248 lt_prog_compiler_pic=-Kconform_pic
11249 fi
11250 ;;
11251
11252 *)
11253 lt_prog_compiler_pic='-fPIC'
11254 ;;
11255 esac
11256
11257 case $cc_basename in
11258 nvcc*) # Cuda Compiler Driver 2.2
11259 lt_prog_compiler_wl='-Xlinker '
11260 if test -n "$lt_prog_compiler_pic"; then
11261 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
11262 fi
11263 ;;
11264 esac
11265 else
11266 # PORTME Check for flag to pass linker flags through the system compiler.
11267 case $host_os in
11268 aix*)
11269 lt_prog_compiler_wl='-Wl,'
11270 if test ia64 = "$host_cpu"; then
11271 # AIX 5 now supports IA64 processor
11272 lt_prog_compiler_static='-Bstatic'
11273 else
11274 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
11275 fi
11276 ;;
11277
11278 darwin* | rhapsody*)
11279 # PIC is the default on this platform
11280 # Common symbols not allowed in MH_DYLIB files
11281 lt_prog_compiler_pic='-fno-common'
11282 case $cc_basename in
11283 nagfor*)
11284 # NAG Fortran compiler
11285 lt_prog_compiler_wl='-Wl,-Wl,,'
11286 lt_prog_compiler_pic='-PIC'
11287 lt_prog_compiler_static='-Bstatic'
11288 ;;
11289 esac
11290 ;;
11291
11292 mingw* | cygwin* | pw32* | os2* | cegcc*)
11293 # This hack is so that the source file can tell whether it is being
11294 # built for inclusion in a dll (and should export symbols for example).
11295 lt_prog_compiler_pic='-DDLL_EXPORT'
11296 case $host_os in
11297 os2*)
11298 lt_prog_compiler_static='$wl-static'
11299 ;;
11300 esac
11301 ;;
11302
11303 hpux9* | hpux10* | hpux11*)
11304 lt_prog_compiler_wl='-Wl,'
11305 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11306 # not for PA HP-UX.
11307 case $host_cpu in
11308 hppa*64*|ia64*)
11309 # +Z the default
11310 ;;
11311 *)
11312 lt_prog_compiler_pic='+Z'
11313 ;;
11314 esac
11315 # Is there a better lt_prog_compiler_static that works with the bundled CC?
11316 lt_prog_compiler_static='$wl-a ${wl}archive'
11317 ;;
11318
11319 irix5* | irix6* | nonstopux*)
11320 lt_prog_compiler_wl='-Wl,'
11321 # PIC (with -KPIC) is the default.
11322 lt_prog_compiler_static='-non_shared'
11323 ;;
11324
11325 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11326 case $cc_basename in
11327 # old Intel for x86_64, which still supported -KPIC.
11328 ecc*)
11329 lt_prog_compiler_wl='-Wl,'
11330 lt_prog_compiler_pic='-KPIC'
11331 lt_prog_compiler_static='-static'
11332 ;;
11333 # flang / f18. f95 an alias for gfortran or flang on Debian
11334 flang* | f18* | f95*)
11335 lt_prog_compiler_wl='-Wl,'
11336 lt_prog_compiler_pic='-fPIC'
11337 lt_prog_compiler_static='-static'
11338 ;;
11339 # icc used to be incompatible with GCC.
11340 # ICC 10 doesn't accept -KPIC any more.
11341 icc* | ifort*)
11342 lt_prog_compiler_wl='-Wl,'
11343 lt_prog_compiler_pic='-fPIC'
11344 lt_prog_compiler_static='-static'
11345 ;;
11346 # Lahey Fortran 8.1.
11347 lf95*)
11348 lt_prog_compiler_wl='-Wl,'
11349 lt_prog_compiler_pic='--shared'
11350 lt_prog_compiler_static='--static'
11351 ;;
11352 nagfor*)
11353 # NAG Fortran compiler
11354 lt_prog_compiler_wl='-Wl,-Wl,,'
11355 lt_prog_compiler_pic='-PIC'
11356 lt_prog_compiler_static='-Bstatic'
11357 ;;
11358 tcc*)
11359 # Fabrice Bellard et al's Tiny C Compiler
11360 lt_prog_compiler_wl='-Wl,'
11361 lt_prog_compiler_pic='-fPIC'
11362 lt_prog_compiler_static='-static'
11363 ;;
11364 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
11365 # Portland Group compilers (*not* the Pentium gcc compiler,
11366 # which looks to be a dead project)
11367 lt_prog_compiler_wl='-Wl,'
11368 lt_prog_compiler_pic='-fpic'
11369 lt_prog_compiler_static='-Bstatic'
11370 ;;
11371 ccc*)
11372 lt_prog_compiler_wl='-Wl,'
11373 # All Alpha code is PIC.
11374 lt_prog_compiler_static='-non_shared'
11375 ;;
11376 xl* | bgxl* | bgf* | mpixl*)
11377 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
11378 lt_prog_compiler_wl='-Wl,'
11379 lt_prog_compiler_pic='-qpic'
11380 lt_prog_compiler_static='-qstaticlink'
11381 ;;
11382 *)
11383 case `$CC -V 2>&1 | sed 5q` in
11384 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
11385 # Sun Fortran 8.3 passes all unrecognized flags to the linker
11386 lt_prog_compiler_pic='-KPIC'
11387 lt_prog_compiler_static='-Bstatic'
11388 lt_prog_compiler_wl=''
11389 ;;
11390 *Sun\ F* | *Sun*Fortran*)
11391 lt_prog_compiler_pic='-KPIC'
11392 lt_prog_compiler_static='-Bstatic'
11393 lt_prog_compiler_wl='-Qoption ld '
11394 ;;
11395 *Sun\ C*)
11396 # Sun C 5.9
11397 lt_prog_compiler_pic='-KPIC'
11398 lt_prog_compiler_static='-Bstatic'
11399 lt_prog_compiler_wl='-Wl,'
11400 ;;
11401 *Intel*\ [CF]*Compiler*)
11402 lt_prog_compiler_wl='-Wl,'
11403 lt_prog_compiler_pic='-fPIC'
11404 lt_prog_compiler_static='-static'
11405 ;;
11406 *Portland\ Group*)
11407 lt_prog_compiler_wl='-Wl,'
11408 lt_prog_compiler_pic='-fpic'
11409 lt_prog_compiler_static='-Bstatic'
11410 ;;
11411 esac
11412 ;;
11413 esac
11414 ;;
11415
11416 newsos6)
11417 lt_prog_compiler_pic='-KPIC'
11418 lt_prog_compiler_static='-Bstatic'
11419 ;;
11420
11421 *nto* | *qnx*)
11422 # QNX uses GNU C++, but need to define -shared option too, otherwise
11423 # it will coredump.
11424 lt_prog_compiler_pic='-fPIC -shared'
11425 ;;
11426
11427 osf3* | osf4* | osf5*)
11428 lt_prog_compiler_wl='-Wl,'
11429 # All OSF/1 code is PIC.
11430 lt_prog_compiler_static='-non_shared'
11431 ;;
11432
11433 rdos*)
11434 lt_prog_compiler_static='-non_shared'
11435 ;;
11436
11437 solaris*)
11438 lt_prog_compiler_pic='-KPIC'
11439 lt_prog_compiler_static='-Bstatic'
11440 case $cc_basename in
11441 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
11442 lt_prog_compiler_wl='-Qoption ld ';;
11443 *)
11444 lt_prog_compiler_wl='-Wl,';;
11445 esac
11446 ;;
11447
11448 sunos4*)
11449 lt_prog_compiler_wl='-Qoption ld '
11450 lt_prog_compiler_pic='-PIC'
11451 lt_prog_compiler_static='-Bstatic'
11452 ;;
11453
11454 sysv4 | sysv4.2uw2* | sysv4.3*)
11455 lt_prog_compiler_wl='-Wl,'
11456 lt_prog_compiler_pic='-KPIC'
11457 lt_prog_compiler_static='-Bstatic'
11458 ;;
11459
11460 sysv4*MP*)
11461 if test -d /usr/nec; then
11462 lt_prog_compiler_pic='-Kconform_pic'
11463 lt_prog_compiler_static='-Bstatic'
11464 fi
11465 ;;
11466
11467 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11468 lt_prog_compiler_wl='-Wl,'
11469 lt_prog_compiler_pic='-KPIC'
11470 lt_prog_compiler_static='-Bstatic'
11471 ;;
11472
11473 unicos*)
11474 lt_prog_compiler_wl='-Wl,'
11475 lt_prog_compiler_can_build_shared=no
11476 ;;
11477
11478 uts4*)
11479 lt_prog_compiler_pic='-pic'
11480 lt_prog_compiler_static='-Bstatic'
11481 ;;
11482
11483 *)
11484 lt_prog_compiler_can_build_shared=no
11485 ;;
11486 esac
11487 fi
11488
11489 case $host_os in
11490 # For platforms that do not support PIC, -DPIC is meaningless:
11491 *djgpp*)
11492 lt_prog_compiler_pic=
11493 ;;
11494 *)
11495 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
11496 ;;
11497 esac
11498
11499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
11500 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
11501 if ${lt_cv_prog_compiler_pic+:} false; then :
11502 $as_echo_n "(cached) " >&6
11503 else
11504 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
11505 fi
11506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
11507 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
11508 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
11509
11510 #
11511 # Check to make sure the PIC flag actually works.
11512 #
11513 if test -n "$lt_prog_compiler_pic"; then
11514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
11515 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
11516 if ${lt_cv_prog_compiler_pic_works+:} false; then :
11517 $as_echo_n "(cached) " >&6
11518 else
11519 lt_cv_prog_compiler_pic_works=no
11520 ac_outfile=conftest.$ac_objext
11521 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11522 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
11523 # Insert the option either (1) after the last *FLAGS variable, or
11524 # (2) before a word containing "conftest.", or (3) at the end.
11525 # Note that $ac_compile itself does not contain backslashes and begins
11526 # with a dollar sign (not a hyphen), so the echo should work correctly.
11527 # The option is referenced via a variable to avoid confusing sed.
11528 lt_compile=`echo "$ac_compile" | $SED \
11529 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11530 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11531 -e 's:$: $lt_compiler_flag:'`
11532 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11533 (eval "$lt_compile" 2>conftest.err)
11534 ac_status=$?
11535 cat conftest.err >&5
11536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11537 if (exit $ac_status) && test -s "$ac_outfile"; then
11538 # The compiler can only warn and ignore the option if not recognized
11539 # So say no if there are warnings other than the usual output.
11540 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11541 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11542 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11543 lt_cv_prog_compiler_pic_works=yes
11544 fi
11545 fi
11546 $RM conftest*
11547
11548 fi
11549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
11550 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
11551
11552 if test yes = "$lt_cv_prog_compiler_pic_works"; then
11553 case $lt_prog_compiler_pic in
11554 "" | " "*) ;;
11555 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
11556 esac
11557 else
11558 lt_prog_compiler_pic=
11559 lt_prog_compiler_can_build_shared=no
11560 fi
11561
11562 fi
11563
11564
11565
11566
11567
11568
11569
11570
11571
11572
11573
11574 #
11575 # Check to make sure the static flag actually works.
11576 #
11577 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
11578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11579 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
11580 if ${lt_cv_prog_compiler_static_works+:} false; then :
11581 $as_echo_n "(cached) " >&6
11582 else
11583 lt_cv_prog_compiler_static_works=no
11584 save_LDFLAGS=$LDFLAGS
11585 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11586 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11587 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11588 # The linker can only warn and ignore the option if not recognized
11589 # So say no if there are warnings
11590 if test -s conftest.err; then
11591 # Append any errors to the config.log.
11592 cat conftest.err 1>&5
11593 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11594 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11595 if diff conftest.exp conftest.er2 >/dev/null; then
11596 lt_cv_prog_compiler_static_works=yes
11597 fi
11598 else
11599 lt_cv_prog_compiler_static_works=yes
11600 fi
11601 fi
11602 $RM -r conftest*
11603 LDFLAGS=$save_LDFLAGS
11604
11605 fi
11606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
11607 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
11608
11609 if test yes = "$lt_cv_prog_compiler_static_works"; then
11610 :
11611 else
11612 lt_prog_compiler_static=
11613 fi
11614
11615
11616
11617
11618
11619
11620
11621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11622 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11623 if ${lt_cv_prog_compiler_c_o+:} false; then :
11624 $as_echo_n "(cached) " >&6
11625 else
11626 lt_cv_prog_compiler_c_o=no
11627 $RM -r conftest 2>/dev/null
11628 mkdir conftest
11629 cd conftest
11630 mkdir out
11631 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11632
11633 lt_compiler_flag="-o out/conftest2.$ac_objext"
11634 # Insert the option either (1) after the last *FLAGS variable, or
11635 # (2) before a word containing "conftest.", or (3) at the end.
11636 # Note that $ac_compile itself does not contain backslashes and begins
11637 # with a dollar sign (not a hyphen), so the echo should work correctly.
11638 lt_compile=`echo "$ac_compile" | $SED \
11639 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11640 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11641 -e 's:$: $lt_compiler_flag:'`
11642 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11643 (eval "$lt_compile" 2>out/conftest.err)
11644 ac_status=$?
11645 cat out/conftest.err >&5
11646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11647 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11648 then
11649 # The compiler can only warn and ignore the option if not recognized
11650 # So say no if there are warnings
11651 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
11652 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11653 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11654 lt_cv_prog_compiler_c_o=yes
11655 fi
11656 fi
11657 chmod u+w . 2>&5
11658 $RM conftest*
11659 # SGI C++ compiler will create directory out/ii_files/ for
11660 # template instantiation
11661 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11662 $RM out/* && rmdir out
11663 cd ..
11664 $RM -r conftest
11665 $RM conftest*
11666
11667 fi
11668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
11669 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
11670
11671
11672
11673
11674
11675
11676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11677 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11678 if ${lt_cv_prog_compiler_c_o+:} false; then :
11679 $as_echo_n "(cached) " >&6
11680 else
11681 lt_cv_prog_compiler_c_o=no
11682 $RM -r conftest 2>/dev/null
11683 mkdir conftest
11684 cd conftest
11685 mkdir out
11686 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11687
11688 lt_compiler_flag="-o out/conftest2.$ac_objext"
11689 # Insert the option either (1) after the last *FLAGS variable, or
11690 # (2) before a word containing "conftest.", or (3) at the end.
11691 # Note that $ac_compile itself does not contain backslashes and begins
11692 # with a dollar sign (not a hyphen), so the echo should work correctly.
11693 lt_compile=`echo "$ac_compile" | $SED \
11694 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11695 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11696 -e 's:$: $lt_compiler_flag:'`
11697 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11698 (eval "$lt_compile" 2>out/conftest.err)
11699 ac_status=$?
11700 cat out/conftest.err >&5
11701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11702 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11703 then
11704 # The compiler can only warn and ignore the option if not recognized
11705 # So say no if there are warnings
11706 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
11707 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11708 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11709 lt_cv_prog_compiler_c_o=yes
11710 fi
11711 fi
11712 chmod u+w . 2>&5
11713 $RM conftest*
11714 # SGI C++ compiler will create directory out/ii_files/ for
11715 # template instantiation
11716 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11717 $RM out/* && rmdir out
11718 cd ..
11719 $RM -r conftest
11720 $RM conftest*
11721
11722 fi
11723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
11724 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
11725
11726
11727
11728
11729 hard_links=nottested
11730 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
11731 # do not overwrite the value of need_locks provided by the user
11732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
11733 $as_echo_n "checking if we can lock with hard links... " >&6; }
11734 hard_links=yes
11735 $RM conftest*
11736 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11737 touch conftest.a
11738 ln conftest.a conftest.b 2>&5 || hard_links=no
11739 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
11741 $as_echo "$hard_links" >&6; }
11742 if test no = "$hard_links"; then
11743 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
11744 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
11745 need_locks=warn
11746 fi
11747 else
11748 need_locks=no
11749 fi
11750
11751
11752
11753
11754
11755
11756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11757 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11758
11759 runpath_var=
11760 allow_undefined_flag=
11761 always_export_symbols=no
11762 archive_cmds=
11763 archive_expsym_cmds=
11764 compiler_needs_object=no
11765 enable_shared_with_static_runtimes=no
11766 export_dynamic_flag_spec=
11767 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11768 hardcode_automatic=no
11769 hardcode_direct=no
11770 hardcode_direct_absolute=no
11771 hardcode_libdir_flag_spec=
11772 hardcode_libdir_separator=
11773 hardcode_minus_L=no
11774 hardcode_shlibpath_var=unsupported
11775 inherit_rpath=no
11776 link_all_deplibs=unknown
11777 module_cmds=
11778 module_expsym_cmds=
11779 old_archive_from_new_cmds=
11780 old_archive_from_expsyms_cmds=
11781 thread_safe_flag_spec=
11782 whole_archive_flag_spec=
11783 # include_expsyms should be a list of space-separated symbols to be *always*
11784 # included in the symbol list
11785 include_expsyms=
11786 # exclude_expsyms can be an extended regexp of symbols to exclude
11787 # it will be wrapped by ' (' and ')$', so one must not match beginning or
11788 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
11789 # as well as any symbol that contains 'd'.
11790 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
11791 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
11792 # platforms (ab)use it in PIC code, but their linkers get confused if
11793 # the symbol is explicitly referenced. Since portable code cannot
11794 # rely on this symbol name, it's probably fine to never include it in
11795 # preloaded symbol tables.
11796 # Exclude shared library initialization/finalization symbols.
11797 extract_expsyms_cmds=
11798
11799 case $host_os in
11800 cygwin* | mingw* | pw32* | cegcc*)
11801 # FIXME: the MSVC++ port hasn't been tested in a loooong time
11802 # When not using gcc, we currently assume that we are using
11803 # Microsoft Visual C++.
11804 if test yes != "$GCC"; then
11805 with_gnu_ld=no
11806 fi
11807 ;;
11808 interix*)
11809 # we just hope/assume this is gcc and not c89 (= MSVC++)
11810 with_gnu_ld=yes
11811 ;;
11812 openbsd* | bitrig*)
11813 with_gnu_ld=no
11814 ;;
11815 linux* | k*bsd*-gnu | gnu*)
11816 link_all_deplibs=no
11817 ;;
11818 esac
11819
11820 ld_shlibs=yes
11821
11822 # On some targets, GNU ld is compatible enough with the native linker
11823 # that we're better off using the native interface for both.
11824 lt_use_gnu_ld_interface=no
11825 if test yes = "$with_gnu_ld"; then
11826 case $host_os in
11827 aix*)
11828 # The AIX port of GNU ld has always aspired to compatibility
11829 # with the native linker. However, as the warning in the GNU ld
11830 # block says, versions before 2.19.5* couldn't really create working
11831 # shared libraries, regardless of the interface used.
11832 case `$LD -v 2>&1` in
11833 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
11834 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
11835 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
11836 *)
11837 lt_use_gnu_ld_interface=yes
11838 ;;
11839 esac
11840 ;;
11841 *)
11842 lt_use_gnu_ld_interface=yes
11843 ;;
11844 esac
11845 fi
11846
11847 if test yes = "$lt_use_gnu_ld_interface"; then
11848 # If archive_cmds runs LD, not CC, wlarc should be empty
11849 wlarc='$wl'
11850
11851 # Set some defaults for GNU ld with shared library support. These
11852 # are reset later if shared libraries are not supported. Putting them
11853 # here allows them to be overridden if necessary.
11854 runpath_var=LD_RUN_PATH
11855 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11856 export_dynamic_flag_spec='$wl--export-dynamic'
11857 # ancient GNU ld didn't support --whole-archive et. al.
11858 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
11859 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
11860 else
11861 whole_archive_flag_spec=
11862 fi
11863 supports_anon_versioning=no
11864 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
11865 *GNU\ gold*) supports_anon_versioning=yes ;;
11866 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
11867 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
11868 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
11869 *\ 2.11.*) ;; # other 2.11 versions
11870 *) supports_anon_versioning=yes ;;
11871 esac
11872
11873 # See if GNU ld supports shared libraries.
11874 case $host_os in
11875 aix[3-9]*)
11876 # On AIX/PPC, the GNU linker is very broken
11877 if test ia64 != "$host_cpu"; then
11878 ld_shlibs=no
11879 cat <<_LT_EOF 1>&2
11880
11881 *** Warning: the GNU linker, at least up to release 2.19, is reported
11882 *** to be unable to reliably create shared libraries on AIX.
11883 *** Therefore, libtool is disabling shared libraries support. If you
11884 *** really care for shared libraries, you may want to install binutils
11885 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
11886 *** You will then need to restart the configuration process.
11887
11888 _LT_EOF
11889 fi
11890 ;;
11891
11892 amigaos*)
11893 case $host_cpu in
11894 powerpc)
11895 # see comment about AmigaOS4 .so support
11896 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11897 archive_expsym_cmds=''
11898 ;;
11899 m68k)
11900 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)'
11901 hardcode_libdir_flag_spec='-L$libdir'
11902 hardcode_minus_L=yes
11903 ;;
11904 esac
11905 ;;
11906
11907 beos*)
11908 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11909 allow_undefined_flag=unsupported
11910 # Joseph Beckenbach <[email protected]> says some releases of gcc
11911 # support --undefined. This deserves some investigation. FIXME
11912 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11913 else
11914 ld_shlibs=no
11915 fi
11916 ;;
11917
11918 cygwin* | mingw* | pw32* | cegcc*)
11919 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
11920 # as there is no search path for DLLs.
11921 hardcode_libdir_flag_spec='-L$libdir'
11922 export_dynamic_flag_spec='$wl--export-all-symbols'
11923 allow_undefined_flag=unsupported
11924 always_export_symbols=no
11925 enable_shared_with_static_runtimes=yes
11926 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'
11927 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
11928
11929 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
11930 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11931 # If the export-symbols file already is a .def file, use it as
11932 # is; otherwise, prepend EXPORTS...
11933 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
11934 cp $export_symbols $output_objdir/$soname.def;
11935 else
11936 echo EXPORTS > $output_objdir/$soname.def;
11937 cat $export_symbols >> $output_objdir/$soname.def;
11938 fi~
11939 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11940 else
11941 ld_shlibs=no
11942 fi
11943 ;;
11944
11945 haiku*)
11946 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11947 link_all_deplibs=yes
11948 ;;
11949
11950 os2*)
11951 hardcode_libdir_flag_spec='-L$libdir'
11952 hardcode_minus_L=yes
11953 allow_undefined_flag=unsupported
11954 shrext_cmds=.dll
11955 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11956 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11957 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11958 $ECHO EXPORTS >> $output_objdir/$libname.def~
11959 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
11960 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11961 emximp -o $lib $output_objdir/$libname.def'
11962 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11963 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11964 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11965 $ECHO EXPORTS >> $output_objdir/$libname.def~
11966 prefix_cmds="$SED"~
11967 if test EXPORTS = "`$SED 1q $export_symbols`"; then
11968 prefix_cmds="$prefix_cmds -e 1d";
11969 fi~
11970 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
11971 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
11972 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11973 emximp -o $lib $output_objdir/$libname.def'
11974 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
11975 enable_shared_with_static_runtimes=yes
11976 ;;
11977
11978 interix[3-9]*)
11979 hardcode_direct=no
11980 hardcode_shlibpath_var=no
11981 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11982 export_dynamic_flag_spec='$wl-E'
11983 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11984 # Instead, shared libraries are loaded at an image base (0x10000000 by
11985 # default) and relocated if they conflict, which is a slow very memory
11986 # consuming and fragmenting process. To avoid this, we pick a random,
11987 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11988 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11989 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11990 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'
11991 ;;
11992
11993 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
11994 tmp_diet=no
11995 if test linux-dietlibc = "$host_os"; then
11996 case $cc_basename in
11997 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
11998 esac
11999 fi
12000 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
12001 && test no = "$tmp_diet"
12002 then
12003 tmp_addflag=' $pic_flag'
12004 tmp_sharedflag='-shared'
12005 case $cc_basename,$host_cpu in
12006 pgcc*) # Portland Group C compiler
12007 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'
12008 tmp_addflag=' $pic_flag'
12009 ;;
12010 pgf77* | pgf90* | pgf95* | pgfortran*)
12011 # Portland Group f77 and f90 compilers
12012 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'
12013 tmp_addflag=' $pic_flag -Mnomain' ;;
12014 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
12015 tmp_addflag=' -i_dynamic' ;;
12016 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
12017 tmp_addflag=' -i_dynamic -nofor_main' ;;
12018 ifc* | ifort*) # Intel Fortran compiler
12019 tmp_addflag=' -nofor_main' ;;
12020 lf95*) # Lahey Fortran 8.1
12021 whole_archive_flag_spec=
12022 tmp_sharedflag='--shared' ;;
12023 nagfor*) # NAGFOR 5.3
12024 tmp_sharedflag='-Wl,-shared' ;;
12025 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
12026 tmp_sharedflag='-qmkshrobj'
12027 tmp_addflag= ;;
12028 nvcc*) # Cuda Compiler Driver 2.2
12029 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'
12030 compiler_needs_object=yes
12031 ;;
12032 esac
12033 case `$CC -V 2>&1 | sed 5q` in
12034 *Sun\ C*) # Sun C 5.9
12035 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'
12036 compiler_needs_object=yes
12037 tmp_sharedflag='-G' ;;
12038 *Sun\ F*) # Sun Fortran 8.3
12039 tmp_sharedflag='-G' ;;
12040 esac
12041 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12042
12043 if test yes = "$supports_anon_versioning"; then
12044 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
12045 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12046 echo "local: *; };" >> $output_objdir/$libname.ver~
12047 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
12048 fi
12049
12050 case $cc_basename in
12051 tcc*)
12052 export_dynamic_flag_spec='-rdynamic'
12053 ;;
12054 xlf* | bgf* | bgxlf* | mpixlf*)
12055 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
12056 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
12057 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12058 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
12059 if test yes = "$supports_anon_versioning"; then
12060 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
12061 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12062 echo "local: *; };" >> $output_objdir/$libname.ver~
12063 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
12064 fi
12065 ;;
12066 esac
12067 else
12068 ld_shlibs=no
12069 fi
12070 ;;
12071
12072 netbsd* | netbsdelf*-gnu)
12073 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12074 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12075 wlarc=
12076 else
12077 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12078 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12079 fi
12080 ;;
12081
12082 solaris*)
12083 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
12084 ld_shlibs=no
12085 cat <<_LT_EOF 1>&2
12086
12087 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
12088 *** create shared libraries on Solaris systems. Therefore, libtool
12089 *** is disabling shared libraries support. We urge you to upgrade GNU
12090 *** binutils to release 2.9.1 or newer. Another option is to modify
12091 *** your PATH or compiler configuration so that the native linker is
12092 *** used, and then restart.
12093
12094 _LT_EOF
12095 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12096 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12097 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12098 else
12099 ld_shlibs=no
12100 fi
12101 ;;
12102
12103 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
12104 case `$LD -v 2>&1` in
12105 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
12106 ld_shlibs=no
12107 cat <<_LT_EOF 1>&2
12108
12109 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
12110 *** reliably create shared libraries on SCO systems. Therefore, libtool
12111 *** is disabling shared libraries support. We urge you to upgrade GNU
12112 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
12113 *** your PATH or compiler configuration so that the native linker is
12114 *** used, and then restart.
12115
12116 _LT_EOF
12117 ;;
12118 *)
12119 # For security reasons, it is highly recommended that you always
12120 # use absolute paths for naming shared libraries, and exclude the
12121 # DT_RUNPATH tag from executables and libraries. But doing so
12122 # requires that you compile everything twice, which is a pain.
12123 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12124 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12125 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12126 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12127 else
12128 ld_shlibs=no
12129 fi
12130 ;;
12131 esac
12132 ;;
12133
12134 sunos4*)
12135 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12136 wlarc=
12137 hardcode_direct=yes
12138 hardcode_shlibpath_var=no
12139 ;;
12140
12141 *)
12142 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12143 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12144 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12145 else
12146 ld_shlibs=no
12147 fi
12148 ;;
12149 esac
12150
12151 if test no = "$ld_shlibs"; then
12152 runpath_var=
12153 hardcode_libdir_flag_spec=
12154 export_dynamic_flag_spec=
12155 whole_archive_flag_spec=
12156 fi
12157 else
12158 # PORTME fill in a description of your system's linker (not GNU ld)
12159 case $host_os in
12160 aix3*)
12161 allow_undefined_flag=unsupported
12162 always_export_symbols=yes
12163 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'
12164 # Note: this linker hardcodes the directories in LIBPATH if there
12165 # are no directories specified by -L.
12166 hardcode_minus_L=yes
12167 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
12168 # Neither direct hardcoding nor static linking is supported with a
12169 # broken collect2.
12170 hardcode_direct=unsupported
12171 fi
12172 ;;
12173
12174 aix[4-9]*)
12175 if test ia64 = "$host_cpu"; then
12176 # On IA64, the linker does run time linking by default, so we don't
12177 # have to do anything special.
12178 aix_use_runtimelinking=no
12179 exp_sym_flag='-Bexport'
12180 no_entry_flag=
12181 else
12182 # If we're using GNU nm, then we don't want the "-C" option.
12183 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
12184 # Without the "-l" option, or with the "-B" option, AIX nm treats
12185 # weak defined symbols like other global defined symbols, whereas
12186 # GNU nm marks them as "W".
12187 # While the 'weak' keyword is ignored in the Export File, we need
12188 # it in the Import File for the 'aix-soname' feature, so we have
12189 # to replace the "-B" option with "-P" for AIX nm.
12190 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
12191 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
12192 else
12193 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
12194 fi
12195 aix_use_runtimelinking=no
12196
12197 # Test if we are trying to use run time linking or normal
12198 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12199 # have runtime linking enabled, and use it for executables.
12200 # For shared libraries, we enable/disable runtime linking
12201 # depending on the kind of the shared library created -
12202 # when "with_aix_soname,aix_use_runtimelinking" is:
12203 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
12204 # "aix,yes" lib.so shared, rtl:yes, for executables
12205 # lib.a static archive
12206 # "both,no" lib.so.V(shr.o) shared, rtl:yes
12207 # lib.a(lib.so.V) shared, rtl:no, for executables
12208 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
12209 # lib.a(lib.so.V) shared, rtl:no
12210 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
12211 # lib.a static archive
12212 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12213 for ld_flag in $LDFLAGS; do
12214 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
12215 aix_use_runtimelinking=yes
12216 break
12217 fi
12218 done
12219 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
12220 # With aix-soname=svr4, we create the lib.so.V shared archives only,
12221 # so we don't have lib.a shared libs to link our executables.
12222 # We have to force runtime linking in this case.
12223 aix_use_runtimelinking=yes
12224 LDFLAGS="$LDFLAGS -Wl,-brtl"
12225 fi
12226 ;;
12227 esac
12228
12229 exp_sym_flag='-bexport'
12230 no_entry_flag='-bnoentry'
12231 fi
12232
12233 # When large executables or shared objects are built, AIX ld can
12234 # have problems creating the table of contents. If linking a library
12235 # or program results in "error TOC overflow" add -mminimal-toc to
12236 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12237 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12238
12239 archive_cmds=''
12240 hardcode_direct=yes
12241 hardcode_direct_absolute=yes
12242 hardcode_libdir_separator=':'
12243 link_all_deplibs=yes
12244 file_list_spec='$wl-f,'
12245 case $with_aix_soname,$aix_use_runtimelinking in
12246 aix,*) ;; # traditional, no import file
12247 svr4,* | *,yes) # use import file
12248 # The Import File defines what to hardcode.
12249 hardcode_direct=no
12250 hardcode_direct_absolute=no
12251 ;;
12252 esac
12253
12254 if test yes = "$GCC"; then
12255 case $host_os in aix4.[012]|aix4.[012].*)
12256 # We only want to do this on AIX 4.2 and lower, the check
12257 # below for broken collect2 doesn't work under 4.3+
12258 collect2name=`$CC -print-prog-name=collect2`
12259 if test -f "$collect2name" &&
12260 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12261 then
12262 # We have reworked collect2
12263 :
12264 else
12265 # We have old collect2
12266 hardcode_direct=unsupported
12267 # It fails to find uninstalled libraries when the uninstalled
12268 # path is not listed in the libpath. Setting hardcode_minus_L
12269 # to unsupported forces relinking
12270 hardcode_minus_L=yes
12271 hardcode_libdir_flag_spec='-L$libdir'
12272 hardcode_libdir_separator=
12273 fi
12274 ;;
12275 esac
12276 shared_flag='-shared'
12277 if test yes = "$aix_use_runtimelinking"; then
12278 shared_flag="$shared_flag "'$wl-G'
12279 fi
12280 # Need to ensure runtime linking is disabled for the traditional
12281 # shared library, or the linker may eventually find shared libraries
12282 # /with/ Import File - we do not want to mix them.
12283 shared_flag_aix='-shared'
12284 shared_flag_svr4='-shared $wl-G'
12285 else
12286 # not using gcc
12287 if test ia64 = "$host_cpu"; then
12288 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12289 # chokes on -Wl,-G. The following line is correct:
12290 shared_flag='-G'
12291 else
12292 if test yes = "$aix_use_runtimelinking"; then
12293 shared_flag='$wl-G'
12294 else
12295 shared_flag='$wl-bM:SRE'
12296 fi
12297 shared_flag_aix='$wl-bM:SRE'
12298 shared_flag_svr4='$wl-G'
12299 fi
12300 fi
12301
12302 export_dynamic_flag_spec='$wl-bexpall'
12303 # It seems that -bexpall does not export symbols beginning with
12304 # underscore (_), so it is better to generate a list of symbols to export.
12305 always_export_symbols=yes
12306 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
12307 # Warning - without using the other runtime loading flags (-brtl),
12308 # -berok will link without error, but may produce a broken library.
12309 allow_undefined_flag='-berok'
12310 # Determine the default libpath from the value encoded in an
12311 # empty executable.
12312 if test set = "${lt_cv_aix_libpath+set}"; then
12313 aix_libpath=$lt_cv_aix_libpath
12314 else
12315 if ${lt_cv_aix_libpath_+:} false; then :
12316 $as_echo_n "(cached) " >&6
12317 else
12318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12319 /* end confdefs.h. */
12320
12321 int
12322 main ()
12323 {
12324
12325 ;
12326 return 0;
12327 }
12328 _ACEOF
12329 if ac_fn_c_try_link "$LINENO"; then :
12330
12331 lt_aix_libpath_sed='
12332 /Import File Strings/,/^$/ {
12333 /^0/ {
12334 s/^0 *\([^ ]*\) *$/\1/
12335 p
12336 }
12337 }'
12338 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12339 # Check for a 64-bit object if we didn't find anything.
12340 if test -z "$lt_cv_aix_libpath_"; then
12341 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12342 fi
12343 fi
12344 rm -f core conftest.err conftest.$ac_objext \
12345 conftest$ac_exeext conftest.$ac_ext
12346 if test -z "$lt_cv_aix_libpath_"; then
12347 lt_cv_aix_libpath_=/usr/lib:/lib
12348 fi
12349
12350 fi
12351
12352 aix_libpath=$lt_cv_aix_libpath_
12353 fi
12354
12355 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
12356 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
12357 else
12358 if test ia64 = "$host_cpu"; then
12359 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
12360 allow_undefined_flag="-z nodefs"
12361 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"
12362 else
12363 # Determine the default libpath from the value encoded in an
12364 # empty executable.
12365 if test set = "${lt_cv_aix_libpath+set}"; then
12366 aix_libpath=$lt_cv_aix_libpath
12367 else
12368 if ${lt_cv_aix_libpath_+:} false; then :
12369 $as_echo_n "(cached) " >&6
12370 else
12371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12372 /* end confdefs.h. */
12373
12374 int
12375 main ()
12376 {
12377
12378 ;
12379 return 0;
12380 }
12381 _ACEOF
12382 if ac_fn_c_try_link "$LINENO"; then :
12383
12384 lt_aix_libpath_sed='
12385 /Import File Strings/,/^$/ {
12386 /^0/ {
12387 s/^0 *\([^ ]*\) *$/\1/
12388 p
12389 }
12390 }'
12391 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12392 # Check for a 64-bit object if we didn't find anything.
12393 if test -z "$lt_cv_aix_libpath_"; then
12394 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12395 fi
12396 fi
12397 rm -f core conftest.err conftest.$ac_objext \
12398 conftest$ac_exeext conftest.$ac_ext
12399 if test -z "$lt_cv_aix_libpath_"; then
12400 lt_cv_aix_libpath_=/usr/lib:/lib
12401 fi
12402
12403 fi
12404
12405 aix_libpath=$lt_cv_aix_libpath_
12406 fi
12407
12408 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
12409 # Warning - without using the other run time loading flags,
12410 # -berok will link without error, but may produce a broken library.
12411 no_undefined_flag=' $wl-bernotok'
12412 allow_undefined_flag=' $wl-berok'
12413 if test yes = "$with_gnu_ld"; then
12414 # We only use this code for GNU lds that support --whole-archive.
12415 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
12416 else
12417 # Exported symbols can be pulled into shared objects from archives
12418 whole_archive_flag_spec='$convenience'
12419 fi
12420 archive_cmds_need_lc=yes
12421 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
12422 # -brtl affects multiple linker settings, -berok does not and is overridden later
12423 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
12424 if test svr4 != "$with_aix_soname"; then
12425 # This is similar to how AIX traditionally builds its shared libraries.
12426 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
12427 fi
12428 if test aix != "$with_aix_soname"; then
12429 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
12430 else
12431 # used by -dlpreopen to get the symbols
12432 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
12433 fi
12434 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
12435 fi
12436 fi
12437 ;;
12438
12439 amigaos*)
12440 case $host_cpu in
12441 powerpc)
12442 # see comment about AmigaOS4 .so support
12443 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12444 archive_expsym_cmds=''
12445 ;;
12446 m68k)
12447 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)'
12448 hardcode_libdir_flag_spec='-L$libdir'
12449 hardcode_minus_L=yes
12450 ;;
12451 esac
12452 ;;
12453
12454 bsdi[45]*)
12455 export_dynamic_flag_spec=-rdynamic
12456 ;;
12457
12458 cygwin* | mingw* | pw32* | cegcc*)
12459 # When not using gcc, we currently assume that we are using
12460 # Microsoft Visual C++.
12461 # hardcode_libdir_flag_spec is actually meaningless, as there is
12462 # no search path for DLLs.
12463 case $cc_basename in
12464 cl*)
12465 # Native MSVC
12466 hardcode_libdir_flag_spec=' '
12467 allow_undefined_flag=unsupported
12468 always_export_symbols=yes
12469 file_list_spec='@'
12470 # Tell ltmain to make .lib files, not .a files.
12471 libext=lib
12472 # Tell ltmain to make .dll files, not .so files.
12473 shrext_cmds=.dll
12474 # FIXME: Setting linknames here is a bad hack.
12475 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
12476 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
12477 cp "$export_symbols" "$output_objdir/$soname.def";
12478 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
12479 else
12480 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
12481 fi~
12482 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
12483 linknames='
12484 # The linker will not automatically build a static lib if we build a DLL.
12485 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
12486 enable_shared_with_static_runtimes=yes
12487 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
12488 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12489 # Don't use ranlib
12490 old_postinstall_cmds='chmod 644 $oldlib'
12491 postlink_cmds='lt_outputfile="@OUTPUT@"~
12492 lt_tool_outputfile="@TOOL_OUTPUT@"~
12493 case $lt_outputfile in
12494 *.exe|*.EXE) ;;
12495 *)
12496 lt_outputfile=$lt_outputfile.exe
12497 lt_tool_outputfile=$lt_tool_outputfile.exe
12498 ;;
12499 esac~
12500 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
12501 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
12502 $RM "$lt_outputfile.manifest";
12503 fi'
12504 ;;
12505 *)
12506 # Assume MSVC wrapper
12507 hardcode_libdir_flag_spec=' '
12508 allow_undefined_flag=unsupported
12509 # Tell ltmain to make .lib files, not .a files.
12510 libext=lib
12511 # Tell ltmain to make .dll files, not .so files.
12512 shrext_cmds=.dll
12513 # FIXME: Setting linknames here is a bad hack.
12514 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
12515 # The linker will automatically build a .lib file if we build a DLL.
12516 old_archive_from_new_cmds='true'
12517 # FIXME: Should let the user specify the lib program.
12518 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
12519 enable_shared_with_static_runtimes=yes
12520 ;;
12521 esac
12522 ;;
12523
12524 darwin* | rhapsody*)
12525
12526
12527 archive_cmds_need_lc=no
12528 hardcode_direct=no
12529 hardcode_automatic=yes
12530 hardcode_shlibpath_var=unsupported
12531 if test yes = "$lt_cv_ld_force_load"; then
12532 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\"`'
12533
12534 else
12535 whole_archive_flag_spec=''
12536 fi
12537 link_all_deplibs=yes
12538 allow_undefined_flag=$_lt_dar_allow_undefined
12539 case $cc_basename in
12540 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
12541 *) _lt_dar_can_shared=$GCC ;;
12542 esac
12543 if test yes = "$_lt_dar_can_shared"; then
12544 output_verbose_link_cmd=func_echo_all
12545 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
12546 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
12547 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"
12548 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"
12549
12550 else
12551 ld_shlibs=no
12552 fi
12553
12554 ;;
12555
12556 dgux*)
12557 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12558 hardcode_libdir_flag_spec='-L$libdir'
12559 hardcode_shlibpath_var=no
12560 ;;
12561
12562 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12563 # support. Future versions do this automatically, but an explicit c++rt0.o
12564 # does not break anything, and helps significantly (at the cost of a little
12565 # extra space).
12566 freebsd2.2*)
12567 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12568 hardcode_libdir_flag_spec='-R$libdir'
12569 hardcode_direct=yes
12570 hardcode_shlibpath_var=no
12571 ;;
12572
12573 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12574 freebsd2.*)
12575 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12576 hardcode_direct=yes
12577 hardcode_minus_L=yes
12578 hardcode_shlibpath_var=no
12579 ;;
12580
12581 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
12582 freebsd* | dragonfly*)
12583 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12584 hardcode_libdir_flag_spec='-R$libdir'
12585 hardcode_direct=yes
12586 hardcode_shlibpath_var=no
12587 ;;
12588
12589 hpux9*)
12590 if test yes = "$GCC"; then
12591 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
12592 else
12593 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
12594 fi
12595 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
12596 hardcode_libdir_separator=:
12597 hardcode_direct=yes
12598
12599 # hardcode_minus_L: Not really in the search PATH,
12600 # but as the default location of the library.
12601 hardcode_minus_L=yes
12602 export_dynamic_flag_spec='$wl-E'
12603 ;;
12604
12605 hpux10*)
12606 if test yes,no = "$GCC,$with_gnu_ld"; then
12607 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12608 else
12609 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12610 fi
12611 if test no = "$with_gnu_ld"; then
12612 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
12613 hardcode_libdir_separator=:
12614 hardcode_direct=yes
12615 hardcode_direct_absolute=yes
12616 export_dynamic_flag_spec='$wl-E'
12617 # hardcode_minus_L: Not really in the search PATH,
12618 # but as the default location of the library.
12619 hardcode_minus_L=yes
12620 fi
12621 ;;
12622
12623 hpux11*)
12624 if test yes,no = "$GCC,$with_gnu_ld"; then
12625 case $host_cpu in
12626 hppa*64*)
12627 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
12628 ;;
12629 ia64*)
12630 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12631 ;;
12632 *)
12633 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12634 ;;
12635 esac
12636 else
12637 case $host_cpu in
12638 hppa*64*)
12639 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
12640 ;;
12641 ia64*)
12642 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12643 ;;
12644 *)
12645
12646 # Older versions of the 11.00 compiler do not understand -b yet
12647 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
12648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
12649 $as_echo_n "checking if $CC understands -b... " >&6; }
12650 if ${lt_cv_prog_compiler__b+:} false; then :
12651 $as_echo_n "(cached) " >&6
12652 else
12653 lt_cv_prog_compiler__b=no
12654 save_LDFLAGS=$LDFLAGS
12655 LDFLAGS="$LDFLAGS -b"
12656 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12657 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12658 # The linker can only warn and ignore the option if not recognized
12659 # So say no if there are warnings
12660 if test -s conftest.err; then
12661 # Append any errors to the config.log.
12662 cat conftest.err 1>&5
12663 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12664 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12665 if diff conftest.exp conftest.er2 >/dev/null; then
12666 lt_cv_prog_compiler__b=yes
12667 fi
12668 else
12669 lt_cv_prog_compiler__b=yes
12670 fi
12671 fi
12672 $RM -r conftest*
12673 LDFLAGS=$save_LDFLAGS
12674
12675 fi
12676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
12677 $as_echo "$lt_cv_prog_compiler__b" >&6; }
12678
12679 if test yes = "$lt_cv_prog_compiler__b"; then
12680 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12681 else
12682 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12683 fi
12684
12685 ;;
12686 esac
12687 fi
12688 if test no = "$with_gnu_ld"; then
12689 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
12690 hardcode_libdir_separator=:
12691
12692 case $host_cpu in
12693 hppa*64*|ia64*)
12694 hardcode_direct=no
12695 hardcode_shlibpath_var=no
12696 ;;
12697 *)
12698 hardcode_direct=yes
12699 hardcode_direct_absolute=yes
12700 export_dynamic_flag_spec='$wl-E'
12701
12702 # hardcode_minus_L: Not really in the search PATH,
12703 # but as the default location of the library.
12704 hardcode_minus_L=yes
12705 ;;
12706 esac
12707 fi
12708 ;;
12709
12710 irix5* | irix6* | nonstopux*)
12711 if test yes = "$GCC"; then
12712 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'
12713 # Try to use the -exported_symbol ld option, if it does not
12714 # work, assume that -exports_file does not work either and
12715 # implicitly export all symbols.
12716 # This should be the same for all languages, so no per-tag cache variable.
12717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
12718 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
12719 if ${lt_cv_irix_exported_symbol+:} false; then :
12720 $as_echo_n "(cached) " >&6
12721 else
12722 save_LDFLAGS=$LDFLAGS
12723 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
12724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12725 /* end confdefs.h. */
12726 int foo (void) { return 0; }
12727 _ACEOF
12728 if ac_fn_c_try_link "$LINENO"; then :
12729 lt_cv_irix_exported_symbol=yes
12730 else
12731 lt_cv_irix_exported_symbol=no
12732 fi
12733 rm -f core conftest.err conftest.$ac_objext \
12734 conftest$ac_exeext conftest.$ac_ext
12735 LDFLAGS=$save_LDFLAGS
12736 fi
12737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
12738 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
12739 if test yes = "$lt_cv_irix_exported_symbol"; then
12740 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'
12741 fi
12742 link_all_deplibs=no
12743 else
12744 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'
12745 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'
12746 fi
12747 archive_cmds_need_lc='no'
12748 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12749 hardcode_libdir_separator=:
12750 inherit_rpath=yes
12751 link_all_deplibs=yes
12752 ;;
12753
12754 linux*)
12755 case $cc_basename in
12756 tcc*)
12757 # Fabrice Bellard et al's Tiny C Compiler
12758 ld_shlibs=yes
12759 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12760 ;;
12761 esac
12762 ;;
12763
12764 netbsd* | netbsdelf*-gnu)
12765 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12766 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
12767 else
12768 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
12769 fi
12770 hardcode_libdir_flag_spec='-R$libdir'
12771 hardcode_direct=yes
12772 hardcode_shlibpath_var=no
12773 ;;
12774
12775 newsos6)
12776 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12777 hardcode_direct=yes
12778 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12779 hardcode_libdir_separator=:
12780 hardcode_shlibpath_var=no
12781 ;;
12782
12783 *nto* | *qnx*)
12784 ;;
12785
12786 openbsd* | bitrig*)
12787 if test -f /usr/libexec/ld.so; then
12788 hardcode_direct=yes
12789 hardcode_shlibpath_var=no
12790 hardcode_direct_absolute=yes
12791 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12792 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12793 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
12794 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
12795 export_dynamic_flag_spec='$wl-E'
12796 else
12797 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12798 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
12799 fi
12800 else
12801 ld_shlibs=no
12802 fi
12803 ;;
12804
12805 os2*)
12806 hardcode_libdir_flag_spec='-L$libdir'
12807 hardcode_minus_L=yes
12808 allow_undefined_flag=unsupported
12809 shrext_cmds=.dll
12810 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12811 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12812 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12813 $ECHO EXPORTS >> $output_objdir/$libname.def~
12814 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
12815 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12816 emximp -o $lib $output_objdir/$libname.def'
12817 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12818 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12819 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12820 $ECHO EXPORTS >> $output_objdir/$libname.def~
12821 prefix_cmds="$SED"~
12822 if test EXPORTS = "`$SED 1q $export_symbols`"; then
12823 prefix_cmds="$prefix_cmds -e 1d";
12824 fi~
12825 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
12826 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
12827 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12828 emximp -o $lib $output_objdir/$libname.def'
12829 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
12830 enable_shared_with_static_runtimes=yes
12831 ;;
12832
12833 osf3*)
12834 if test yes = "$GCC"; then
12835 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
12836 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'
12837 else
12838 allow_undefined_flag=' -expect_unresolved \*'
12839 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'
12840 fi
12841 archive_cmds_need_lc='no'
12842 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12843 hardcode_libdir_separator=:
12844 ;;
12845
12846 osf4* | osf5*) # as osf3* with the addition of -msym flag
12847 if test yes = "$GCC"; then
12848 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
12849 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'
12850 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12851 else
12852 allow_undefined_flag=' -expect_unresolved \*'
12853 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'
12854 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~
12855 $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'
12856
12857 # Both c and cxx compiler support -rpath directly
12858 hardcode_libdir_flag_spec='-rpath $libdir'
12859 fi
12860 archive_cmds_need_lc='no'
12861 hardcode_libdir_separator=:
12862 ;;
12863
12864 solaris*)
12865 no_undefined_flag=' -z defs'
12866 if test yes = "$GCC"; then
12867 wlarc='$wl'
12868 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
12869 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12870 $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'
12871 else
12872 case `$CC -V 2>&1` in
12873 *"Compilers 5.0"*)
12874 wlarc=''
12875 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
12876 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12877 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
12878 ;;
12879 *)
12880 wlarc='$wl'
12881 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
12882 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12883 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12884 ;;
12885 esac
12886 fi
12887 hardcode_libdir_flag_spec='-R$libdir'
12888 hardcode_shlibpath_var=no
12889 case $host_os in
12890 solaris2.[0-5] | solaris2.[0-5].*) ;;
12891 *)
12892 # The compiler driver will combine and reorder linker options,
12893 # but understands '-z linker_flag'. GCC discards it without '$wl',
12894 # but is careful enough not to reorder.
12895 # Supported since Solaris 2.6 (maybe 2.5.1?)
12896 if test yes = "$GCC"; then
12897 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
12898 else
12899 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
12900 fi
12901 ;;
12902 esac
12903 link_all_deplibs=yes
12904 ;;
12905
12906 sunos4*)
12907 if test sequent = "$host_vendor"; then
12908 # Use $CC to link under sequent, because it throws in some extra .o
12909 # files that make .init and .fini sections work.
12910 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
12911 else
12912 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
12913 fi
12914 hardcode_libdir_flag_spec='-L$libdir'
12915 hardcode_direct=yes
12916 hardcode_minus_L=yes
12917 hardcode_shlibpath_var=no
12918 ;;
12919
12920 sysv4)
12921 case $host_vendor in
12922 sni)
12923 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12924 hardcode_direct=yes # is this really true???
12925 ;;
12926 siemens)
12927 ## LD is ld it makes a PLAMLIB
12928 ## CC just makes a GrossModule.
12929 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12930 reload_cmds='$CC -r -o $output$reload_objs'
12931 hardcode_direct=no
12932 ;;
12933 motorola)
12934 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12935 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
12936 ;;
12937 esac
12938 runpath_var='LD_RUN_PATH'
12939 hardcode_shlibpath_var=no
12940 ;;
12941
12942 sysv4.3*)
12943 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12944 hardcode_shlibpath_var=no
12945 export_dynamic_flag_spec='-Bexport'
12946 ;;
12947
12948 sysv4*MP*)
12949 if test -d /usr/nec; then
12950 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12951 hardcode_shlibpath_var=no
12952 runpath_var=LD_RUN_PATH
12953 hardcode_runpath_var=yes
12954 ld_shlibs=yes
12955 fi
12956 ;;
12957
12958 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12959 no_undefined_flag='$wl-z,text'
12960 archive_cmds_need_lc=no
12961 hardcode_shlibpath_var=no
12962 runpath_var='LD_RUN_PATH'
12963
12964 if test yes = "$GCC"; then
12965 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12966 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12967 else
12968 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12969 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12970 fi
12971 ;;
12972
12973 sysv5* | sco3.2v5* | sco5v6*)
12974 # Note: We CANNOT use -z defs as we might desire, because we do not
12975 # link with -lc, and that would cause any symbols used from libc to
12976 # always be unresolved, which means just about no library would
12977 # ever link correctly. If we're not using GNU ld we use -z text
12978 # though, which does catch some bad symbols but isn't as heavy-handed
12979 # as -z defs.
12980 no_undefined_flag='$wl-z,text'
12981 allow_undefined_flag='$wl-z,nodefs'
12982 archive_cmds_need_lc=no
12983 hardcode_shlibpath_var=no
12984 hardcode_libdir_flag_spec='$wl-R,$libdir'
12985 hardcode_libdir_separator=':'
12986 link_all_deplibs=yes
12987 export_dynamic_flag_spec='$wl-Bexport'
12988 runpath_var='LD_RUN_PATH'
12989
12990 if test yes = "$GCC"; then
12991 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12992 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12993 else
12994 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12995 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12996 fi
12997 ;;
12998
12999 uts4*)
13000 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13001 hardcode_libdir_flag_spec='-L$libdir'
13002 hardcode_shlibpath_var=no
13003 ;;
13004
13005 *)
13006 ld_shlibs=no
13007 ;;
13008 esac
13009
13010 if test sni = "$host_vendor"; then
13011 case $host in
13012 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13013 export_dynamic_flag_spec='$wl-Blargedynsym'
13014 ;;
13015 esac
13016 fi
13017 fi
13018
13019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
13020 $as_echo "$ld_shlibs" >&6; }
13021 test no = "$ld_shlibs" && can_build_shared=no
13022
13023 with_gnu_ld=$with_gnu_ld
13024
13025
13026
13027
13028
13029
13030
13031
13032
13033
13034
13035
13036
13037
13038
13039 #
13040 # Do we need to explicitly link libc?
13041 #
13042 case "x$archive_cmds_need_lc" in
13043 x|xyes)
13044 # Assume -lc should be added
13045 archive_cmds_need_lc=yes
13046
13047 if test yes,yes = "$GCC,$enable_shared"; then
13048 case $archive_cmds in
13049 *'~'*)
13050 # FIXME: we may have to deal with multi-command sequences.
13051 ;;
13052 '$CC '*)
13053 # Test whether the compiler implicitly links with -lc since on some
13054 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13055 # to ld, don't add -lc before -lgcc.
13056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13057 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13058 if ${lt_cv_archive_cmds_need_lc+:} false; then :
13059 $as_echo_n "(cached) " >&6
13060 else
13061 $RM conftest*
13062 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13063
13064 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13065 (eval $ac_compile) 2>&5
13066 ac_status=$?
13067 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13068 test $ac_status = 0; } 2>conftest.err; then
13069 soname=conftest
13070 lib=conftest
13071 libobjs=conftest.$ac_objext
13072 deplibs=
13073 wl=$lt_prog_compiler_wl
13074 pic_flag=$lt_prog_compiler_pic
13075 compiler_flags=-v
13076 linker_flags=-v
13077 verstring=
13078 output_objdir=.
13079 libname=conftest
13080 lt_save_allow_undefined_flag=$allow_undefined_flag
13081 allow_undefined_flag=
13082 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13083 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13084 ac_status=$?
13085 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13086 test $ac_status = 0; }
13087 then
13088 lt_cv_archive_cmds_need_lc=no
13089 else
13090 lt_cv_archive_cmds_need_lc=yes
13091 fi
13092 allow_undefined_flag=$lt_save_allow_undefined_flag
13093 else
13094 cat conftest.err 1>&5
13095 fi
13096 $RM conftest*
13097
13098 fi
13099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
13100 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
13101 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
13102 ;;
13103 esac
13104 fi
13105 ;;
13106 esac
13107
13108
13109
13110
13111
13112
13113
13114
13115
13116
13117
13118
13119
13120
13121
13122
13123
13124
13125
13126
13127
13128
13129
13130
13131
13132
13133
13134
13135
13136
13137
13138
13139
13140
13141
13142
13143
13144
13145
13146
13147
13148
13149
13150
13151
13152
13153
13154
13155
13156
13157
13158
13159
13160
13161
13162
13163
13164
13165
13166
13167
13168
13169
13170
13171
13172
13173
13174
13175
13176
13177
13178
13179
13180
13181
13182
13183
13184
13185
13186
13187
13188
13189
13190
13191
13192
13193
13194
13195
13196
13197
13198
13199
13200
13201
13202
13203
13204
13205
13206
13207
13208
13209
13210
13211
13212
13213
13214
13215
13216
13217
13218
13219
13220
13221
13222
13223
13224
13225
13226
13227
13228
13229
13230
13231
13232
13233
13234
13235
13236
13237
13238
13239
13240
13241
13242
13243
13244
13245
13246
13247
13248
13249
13250
13251
13252
13253
13254
13255
13256
13257
13258
13259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
13260 $as_echo_n "checking dynamic linker characteristics... " >&6; }
13261
13262 if test yes = "$GCC"; then
13263 case $host_os in
13264 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
13265 *) lt_awk_arg='/^libraries:/' ;;
13266 esac
13267 case $host_os in
13268 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
13269 *) lt_sed_strip_eq='s|=/|/|g' ;;
13270 esac
13271 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
13272 case $lt_search_path_spec in
13273 *\;*)
13274 # if the path contains ";" then we assume it to be the separator
13275 # otherwise default to the standard path separator (i.e. ":") - it is
13276 # assumed that no part of a normal pathname contains ";" but that should
13277 # okay in the real world where ";" in dirpaths is itself problematic.
13278 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
13279 ;;
13280 *)
13281 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
13282 ;;
13283 esac
13284 # Ok, now we have the path, separated by spaces, we can step through it
13285 # and add multilib dir if necessary...
13286 lt_tmp_lt_search_path_spec=
13287 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
13288 # ...but if some path component already ends with the multilib dir we assume
13289 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
13290 case "$lt_multi_os_dir; $lt_search_path_spec " in
13291 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
13292 lt_multi_os_dir=
13293 ;;
13294 esac
13295 for lt_sys_path in $lt_search_path_spec; do
13296 if test -d "$lt_sys_path$lt_multi_os_dir"; then
13297 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
13298 elif test -n "$lt_multi_os_dir"; then
13299 test -d "$lt_sys_path" && \
13300 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
13301 fi
13302 done
13303 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
13304 BEGIN {RS = " "; FS = "/|\n";} {
13305 lt_foo = "";
13306 lt_count = 0;
13307 for (lt_i = NF; lt_i > 0; lt_i--) {
13308 if ($lt_i != "" && $lt_i != ".") {
13309 if ($lt_i == "..") {
13310 lt_count++;
13311 } else {
13312 if (lt_count == 0) {
13313 lt_foo = "/" $lt_i lt_foo;
13314 } else {
13315 lt_count--;
13316 }
13317 }
13318 }
13319 }
13320 if (lt_foo != "") { lt_freq[lt_foo]++; }
13321 if (lt_freq[lt_foo] == 1) { print lt_foo; }
13322 }'`
13323 # AWK program above erroneously prepends '/' to C:/dos/paths
13324 # for these hosts.
13325 case $host_os in
13326 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
13327 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
13328 esac
13329 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
13330 else
13331 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13332 fi
13333 library_names_spec=
13334 libname_spec='lib$name'
13335 soname_spec=
13336 shrext_cmds=.so
13337 postinstall_cmds=
13338 postuninstall_cmds=
13339 finish_cmds=
13340 finish_eval=
13341 shlibpath_var=
13342 shlibpath_overrides_runpath=unknown
13343 version_type=none
13344 dynamic_linker="$host_os ld.so"
13345 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13346 need_lib_prefix=unknown
13347 hardcode_into_libs=no
13348
13349 # when you set need_version to no, make sure it does not cause -set_version
13350 # flags to be left without arguments
13351 need_version=unknown
13352
13353
13354
13355 case $host_os in
13356 aix3*)
13357 version_type=linux # correct to gnu/linux during the next big refactor
13358 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
13359 shlibpath_var=LIBPATH
13360
13361 # AIX 3 has no versioning support, so we append a major version to the name.
13362 soname_spec='$libname$release$shared_ext$major'
13363 ;;
13364
13365 aix[4-9]*)
13366 version_type=linux # correct to gnu/linux during the next big refactor
13367 need_lib_prefix=no
13368 need_version=no
13369 hardcode_into_libs=yes
13370 if test ia64 = "$host_cpu"; then
13371 # AIX 5 supports IA64
13372 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
13373 shlibpath_var=LD_LIBRARY_PATH
13374 else
13375 # With GCC up to 2.95.x, collect2 would create an import file
13376 # for dependence libraries. The import file would start with
13377 # the line '#! .'. This would cause the generated library to
13378 # depend on '.', always an invalid library. This was fixed in
13379 # development snapshots of GCC prior to 3.0.
13380 case $host_os in
13381 aix4 | aix4.[01] | aix4.[01].*)
13382 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13383 echo ' yes '
13384 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
13385 :
13386 else
13387 can_build_shared=no
13388 fi
13389 ;;
13390 esac
13391 # Using Import Files as archive members, it is possible to support
13392 # filename-based versioning of shared library archives on AIX. While
13393 # this would work for both with and without runtime linking, it will
13394 # prevent static linking of such archives. So we do filename-based
13395 # shared library versioning with .so extension only, which is used
13396 # when both runtime linking and shared linking is enabled.
13397 # Unfortunately, runtime linking may impact performance, so we do
13398 # not want this to be the default eventually. Also, we use the
13399 # versioned .so libs for executables only if there is the -brtl
13400 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
13401 # To allow for filename-based versioning support, we need to create
13402 # libNAME.so.V as an archive file, containing:
13403 # *) an Import File, referring to the versioned filename of the
13404 # archive as well as the shared archive member, telling the
13405 # bitwidth (32 or 64) of that shared object, and providing the
13406 # list of exported symbols of that shared object, eventually
13407 # decorated with the 'weak' keyword
13408 # *) the shared object with the F_LOADONLY flag set, to really avoid
13409 # it being seen by the linker.
13410 # At run time we better use the real file rather than another symlink,
13411 # but for link time we create the symlink libNAME.so -> libNAME.so.V
13412
13413 case $with_aix_soname,$aix_use_runtimelinking in
13414 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
13415 # soname into executable. Probably we can add versioning support to
13416 # collect2, so additional links can be useful in future.
13417 aix,yes) # traditional libtool
13418 dynamic_linker='AIX unversionable lib.so'
13419 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13420 # instead of lib<name>.a to let people know that these are not
13421 # typical AIX shared libraries.
13422 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13423 ;;
13424 aix,no) # traditional AIX only
13425 dynamic_linker='AIX lib.a(lib.so.V)'
13426 # We preserve .a as extension for shared libraries through AIX4.2
13427 # and later when we are not doing run time linking.
13428 library_names_spec='$libname$release.a $libname.a'
13429 soname_spec='$libname$release$shared_ext$major'
13430 ;;
13431 svr4,*) # full svr4 only
13432 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
13433 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
13434 # We do not specify a path in Import Files, so LIBPATH fires.
13435 shlibpath_overrides_runpath=yes
13436 ;;
13437 *,yes) # both, prefer svr4
13438 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
13439 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
13440 # unpreferred sharedlib libNAME.a needs extra handling
13441 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
13442 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
13443 # We do not specify a path in Import Files, so LIBPATH fires.
13444 shlibpath_overrides_runpath=yes
13445 ;;
13446 *,no) # both, prefer aix
13447 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
13448 library_names_spec='$libname$release.a $libname.a'
13449 soname_spec='$libname$release$shared_ext$major'
13450 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
13451 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
13452 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
13453 ;;
13454 esac
13455 shlibpath_var=LIBPATH
13456 fi
13457 ;;
13458
13459 amigaos*)
13460 case $host_cpu in
13461 powerpc)
13462 # Since July 2007 AmigaOS4 officially supports .so libraries.
13463 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
13464 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13465 ;;
13466 m68k)
13467 library_names_spec='$libname.ixlibrary $libname.a'
13468 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13469 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $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'
13470 ;;
13471 esac
13472 ;;
13473
13474 beos*)
13475 library_names_spec='$libname$shared_ext'
13476 dynamic_linker="$host_os ld.so"
13477 shlibpath_var=LIBRARY_PATH
13478 ;;
13479
13480 bsdi[45]*)
13481 version_type=linux # correct to gnu/linux during the next big refactor
13482 need_version=no
13483 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13484 soname_spec='$libname$release$shared_ext$major'
13485 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13486 shlibpath_var=LD_LIBRARY_PATH
13487 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13488 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13489 # the default ld.so.conf also contains /usr/contrib/lib and
13490 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13491 # libtool to hard-code these into programs
13492 ;;
13493
13494 cygwin* | mingw* | pw32* | cegcc*)
13495 version_type=windows
13496 shrext_cmds=.dll
13497 need_version=no
13498 need_lib_prefix=no
13499
13500 case $GCC,$cc_basename in
13501 yes,*)
13502 # gcc
13503 library_names_spec='$libname.dll.a'
13504 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13505 postinstall_cmds='base_file=`basename \$file`~
13506 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
13507 dldir=$destdir/`dirname \$dlpath`~
13508 test -d \$dldir || mkdir -p \$dldir~
13509 $install_prog $dir/$dlname \$dldir/$dlname~
13510 chmod a+x \$dldir/$dlname~
13511 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13512 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13513 fi'
13514 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13515 dlpath=$dir/\$dldll~
13516 $RM \$dlpath'
13517 shlibpath_overrides_runpath=yes
13518
13519 case $host_os in
13520 cygwin*)
13521 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13522 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13523
13524 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
13525 ;;
13526 mingw* | cegcc*)
13527 # MinGW DLLs use traditional 'lib' prefix
13528 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13529 ;;
13530 pw32*)
13531 # pw32 DLLs use 'pw' prefix rather than 'lib'
13532 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13533 ;;
13534 esac
13535 dynamic_linker='Win32 ld.exe'
13536 ;;
13537
13538 *,cl*)
13539 # Native MSVC
13540 libname_spec='$name'
13541 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13542 library_names_spec='$libname.dll.lib'
13543
13544 case $build_os in
13545 mingw*)
13546 sys_lib_search_path_spec=
13547 lt_save_ifs=$IFS
13548 IFS=';'
13549 for lt_path in $LIB
13550 do
13551 IFS=$lt_save_ifs
13552 # Let DOS variable expansion print the short 8.3 style file name.
13553 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
13554 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
13555 done
13556 IFS=$lt_save_ifs
13557 # Convert to MSYS style.
13558 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
13559 ;;
13560 cygwin*)
13561 # Convert to unix form, then to dos form, then back to unix form
13562 # but this time dos style (no spaces!) so that the unix form looks
13563 # like /cygdrive/c/PROGRA~1:/cygdr...
13564 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
13565 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
13566 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13567 ;;
13568 *)
13569 sys_lib_search_path_spec=$LIB
13570 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
13571 # It is most probably a Windows format PATH.
13572 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13573 else
13574 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13575 fi
13576 # FIXME: find the short name or the path components, as spaces are
13577 # common. (e.g. "Program Files" -> "PROGRA~1")
13578 ;;
13579 esac
13580
13581 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13582 postinstall_cmds='base_file=`basename \$file`~
13583 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
13584 dldir=$destdir/`dirname \$dlpath`~
13585 test -d \$dldir || mkdir -p \$dldir~
13586 $install_prog $dir/$dlname \$dldir/$dlname'
13587 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13588 dlpath=$dir/\$dldll~
13589 $RM \$dlpath'
13590 shlibpath_overrides_runpath=yes
13591 dynamic_linker='Win32 link.exe'
13592 ;;
13593
13594 *)
13595 # Assume MSVC wrapper
13596 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
13597 dynamic_linker='Win32 ld.exe'
13598 ;;
13599 esac
13600 # FIXME: first we should search . and the directory the executable is in
13601 shlibpath_var=PATH
13602 ;;
13603
13604 darwin* | rhapsody*)
13605 dynamic_linker="$host_os dyld"
13606 version_type=darwin
13607 need_lib_prefix=no
13608 need_version=no
13609 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
13610 soname_spec='$libname$release$major$shared_ext'
13611 shlibpath_overrides_runpath=yes
13612 shlibpath_var=DYLD_LIBRARY_PATH
13613 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13614
13615 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
13616 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13617 ;;
13618
13619 dgux*)
13620 version_type=linux # correct to gnu/linux during the next big refactor
13621 need_lib_prefix=no
13622 need_version=no
13623 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13624 soname_spec='$libname$release$shared_ext$major'
13625 shlibpath_var=LD_LIBRARY_PATH
13626 ;;
13627
13628 freebsd* | dragonfly*)
13629 # DragonFly does not have aout. When/if they implement a new
13630 # versioning mechanism, adjust this.
13631 if test -x /usr/bin/objformat; then
13632 objformat=`/usr/bin/objformat`
13633 else
13634 case $host_os in
13635 freebsd[23].*) objformat=aout ;;
13636 *) objformat=elf ;;
13637 esac
13638 fi
13639 version_type=freebsd-$objformat
13640 case $version_type in
13641 freebsd-elf*)
13642 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13643 soname_spec='$libname$release$shared_ext$major'
13644 need_version=no
13645 need_lib_prefix=no
13646 ;;
13647 freebsd-*)
13648 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13649 need_version=yes
13650 ;;
13651 esac
13652 shlibpath_var=LD_LIBRARY_PATH
13653 case $host_os in
13654 freebsd2.*)
13655 shlibpath_overrides_runpath=yes
13656 ;;
13657 freebsd3.[01]* | freebsdelf3.[01]*)
13658 shlibpath_overrides_runpath=yes
13659 hardcode_into_libs=yes
13660 ;;
13661 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13662 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13663 shlibpath_overrides_runpath=no
13664 hardcode_into_libs=yes
13665 ;;
13666 *) # from 4.6 on, and DragonFly
13667 shlibpath_overrides_runpath=yes
13668 hardcode_into_libs=yes
13669 ;;
13670 esac
13671 ;;
13672
13673 haiku*)
13674 version_type=linux # correct to gnu/linux during the next big refactor
13675 need_lib_prefix=no
13676 need_version=no
13677 dynamic_linker="$host_os runtime_loader"
13678 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13679 soname_spec='$libname$release$shared_ext$major'
13680 shlibpath_var=LIBRARY_PATH
13681 shlibpath_overrides_runpath=no
13682 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
13683 hardcode_into_libs=yes
13684 ;;
13685
13686 hpux9* | hpux10* | hpux11*)
13687 # Give a soname corresponding to the major version so that dld.sl refuses to
13688 # link against other versions.
13689 version_type=sunos
13690 need_lib_prefix=no
13691 need_version=no
13692 case $host_cpu in
13693 ia64*)
13694 shrext_cmds='.so'
13695 hardcode_into_libs=yes
13696 dynamic_linker="$host_os dld.so"
13697 shlibpath_var=LD_LIBRARY_PATH
13698 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13699 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13700 soname_spec='$libname$release$shared_ext$major'
13701 if test 32 = "$HPUX_IA64_MODE"; then
13702 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13703 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
13704 else
13705 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13706 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
13707 fi
13708 ;;
13709 hppa*64*)
13710 shrext_cmds='.sl'
13711 hardcode_into_libs=yes
13712 dynamic_linker="$host_os dld.sl"
13713 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13714 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13715 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13716 soname_spec='$libname$release$shared_ext$major'
13717 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13718 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13719 ;;
13720 *)
13721 shrext_cmds='.sl'
13722 dynamic_linker="$host_os dld.sl"
13723 shlibpath_var=SHLIB_PATH
13724 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13725 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13726 soname_spec='$libname$release$shared_ext$major'
13727 ;;
13728 esac
13729 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
13730 postinstall_cmds='chmod 555 $lib'
13731 # or fails outright, so override atomically:
13732 install_override_mode=555
13733 ;;
13734
13735 interix[3-9]*)
13736 version_type=linux # correct to gnu/linux during the next big refactor
13737 need_lib_prefix=no
13738 need_version=no
13739 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13740 soname_spec='$libname$release$shared_ext$major'
13741 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13742 shlibpath_var=LD_LIBRARY_PATH
13743 shlibpath_overrides_runpath=no
13744 hardcode_into_libs=yes
13745 ;;
13746
13747 irix5* | irix6* | nonstopux*)
13748 case $host_os in
13749 nonstopux*) version_type=nonstopux ;;
13750 *)
13751 if test yes = "$lt_cv_prog_gnu_ld"; then
13752 version_type=linux # correct to gnu/linux during the next big refactor
13753 else
13754 version_type=irix
13755 fi ;;
13756 esac
13757 need_lib_prefix=no
13758 need_version=no
13759 soname_spec='$libname$release$shared_ext$major'
13760 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
13761 case $host_os in
13762 irix5* | nonstopux*)
13763 libsuff= shlibsuff=
13764 ;;
13765 *)
13766 case $LD in # libtool.m4 will add one of these switches to LD
13767 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13768 libsuff= shlibsuff= libmagic=32-bit;;
13769 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13770 libsuff=32 shlibsuff=N32 libmagic=N32;;
13771 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13772 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13773 *) libsuff= shlibsuff= libmagic=never-match;;
13774 esac
13775 ;;
13776 esac
13777 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13778 shlibpath_overrides_runpath=no
13779 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
13780 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
13781 hardcode_into_libs=yes
13782 ;;
13783
13784 # No shared lib support for Linux oldld, aout, or coff.
13785 linux*oldld* | linux*aout* | linux*coff*)
13786 dynamic_linker=no
13787 ;;
13788
13789 linux*android*)
13790 version_type=none # Android doesn't support versioned libraries.
13791 need_lib_prefix=no
13792 need_version=no
13793 library_names_spec='$libname$release$shared_ext'
13794 soname_spec='$libname$release$shared_ext'
13795 finish_cmds=
13796 shlibpath_var=LD_LIBRARY_PATH
13797 shlibpath_overrides_runpath=yes
13798
13799 # This implies no fast_install, which is unacceptable.
13800 # Some rework will be needed to allow for fast_install
13801 # before this can be enabled.
13802 hardcode_into_libs=yes
13803
13804 dynamic_linker='Android linker'
13805 # Don't embed -rpath directories since the linker doesn't support them.
13806 hardcode_libdir_flag_spec='-L$libdir'
13807 ;;
13808
13809 # This must be glibc/ELF.
13810 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
13811 version_type=linux # correct to gnu/linux during the next big refactor
13812 need_lib_prefix=no
13813 need_version=no
13814 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13815 soname_spec='$libname$release$shared_ext$major'
13816 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13817 shlibpath_var=LD_LIBRARY_PATH
13818 shlibpath_overrides_runpath=no
13819
13820 # Some binutils ld are patched to set DT_RUNPATH
13821 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
13822 $as_echo_n "(cached) " >&6
13823 else
13824 lt_cv_shlibpath_overrides_runpath=no
13825 save_LDFLAGS=$LDFLAGS
13826 save_libdir=$libdir
13827 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
13828 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
13829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13830 /* end confdefs.h. */
13831
13832 int
13833 main ()
13834 {
13835
13836 ;
13837 return 0;
13838 }
13839 _ACEOF
13840 if ac_fn_c_try_link "$LINENO"; then :
13841 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
13842 lt_cv_shlibpath_overrides_runpath=yes
13843 fi
13844 fi
13845 rm -f core conftest.err conftest.$ac_objext \
13846 conftest$ac_exeext conftest.$ac_ext
13847 LDFLAGS=$save_LDFLAGS
13848 libdir=$save_libdir
13849
13850 fi
13851
13852 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
13853
13854 # This implies no fast_install, which is unacceptable.
13855 # Some rework will be needed to allow for fast_install
13856 # before this can be enabled.
13857 hardcode_into_libs=yes
13858
13859 # Ideally, we could use ldconfig to report *all* directores which are
13860 # searched for libraries, however this is still not possible. Aside from not
13861 # being certain /sbin/ldconfig is available, command
13862 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
13863 # even though it is searched at run-time. Try to do the best guess by
13864 # appending ld.so.conf contents (and includes) to the search path.
13865 if test -f /etc/ld.so.conf; then
13866 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' ' '`
13867 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13868 fi
13869
13870 # We used to test for /lib/ld.so.1 and disable shared libraries on
13871 # powerpc, because MkLinux only supported shared libraries with the
13872 # GNU dynamic linker. Since this was broken with cross compilers,
13873 # most powerpc-linux boxes support dynamic linking these days and
13874 # people can always --disable-shared, the test was removed, and we
13875 # assume the GNU/Linux dynamic linker is in use.
13876 dynamic_linker='GNU/Linux ld.so'
13877 ;;
13878
13879 netbsdelf*-gnu)
13880 version_type=linux
13881 need_lib_prefix=no
13882 need_version=no
13883 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13884 soname_spec='${libname}${release}${shared_ext}$major'
13885 shlibpath_var=LD_LIBRARY_PATH
13886 shlibpath_overrides_runpath=no
13887 hardcode_into_libs=yes
13888 dynamic_linker='NetBSD ld.elf_so'
13889 ;;
13890
13891 netbsd*)
13892 version_type=sunos
13893 need_lib_prefix=no
13894 need_version=no
13895 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13896 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13897 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13898 dynamic_linker='NetBSD (a.out) ld.so'
13899 else
13900 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13901 soname_spec='$libname$release$shared_ext$major'
13902 dynamic_linker='NetBSD ld.elf_so'
13903 fi
13904 shlibpath_var=LD_LIBRARY_PATH
13905 shlibpath_overrides_runpath=yes
13906 hardcode_into_libs=yes
13907 ;;
13908
13909 newsos6)
13910 version_type=linux # correct to gnu/linux during the next big refactor
13911 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13912 shlibpath_var=LD_LIBRARY_PATH
13913 shlibpath_overrides_runpath=yes
13914 ;;
13915
13916 *nto* | *qnx*)
13917 version_type=qnx
13918 need_lib_prefix=no
13919 need_version=no
13920 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13921 soname_spec='$libname$release$shared_ext$major'
13922 shlibpath_var=LD_LIBRARY_PATH
13923 shlibpath_overrides_runpath=no
13924 hardcode_into_libs=yes
13925 dynamic_linker='ldqnx.so'
13926 ;;
13927
13928 openbsd* | bitrig*)
13929 version_type=sunos
13930 sys_lib_dlsearch_path_spec=/usr/lib
13931 need_lib_prefix=no
13932 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
13933 need_version=no
13934 else
13935 need_version=yes
13936 fi
13937 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13938 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13939 shlibpath_var=LD_LIBRARY_PATH
13940 shlibpath_overrides_runpath=yes
13941 ;;
13942
13943 os2*)
13944 libname_spec='$name'
13945 version_type=windows
13946 shrext_cmds=.dll
13947 need_version=no
13948 need_lib_prefix=no
13949 # OS/2 can only load a DLL with a base name of 8 characters or less.
13950 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
13951 v=$($ECHO $release$versuffix | tr -d .-);
13952 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
13953 $ECHO $n$v`$shared_ext'
13954 library_names_spec='${libname}_dll.$libext'
13955 dynamic_linker='OS/2 ld.exe'
13956 shlibpath_var=BEGINLIBPATH
13957 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13958 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13959 postinstall_cmds='base_file=`basename \$file`~
13960 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
13961 dldir=$destdir/`dirname \$dlpath`~
13962 test -d \$dldir || mkdir -p \$dldir~
13963 $install_prog $dir/$dlname \$dldir/$dlname~
13964 chmod a+x \$dldir/$dlname~
13965 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13966 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13967 fi'
13968 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
13969 dlpath=$dir/\$dldll~
13970 $RM \$dlpath'
13971 ;;
13972
13973 osf3* | osf4* | osf5*)
13974 version_type=osf
13975 need_lib_prefix=no
13976 need_version=no
13977 soname_spec='$libname$release$shared_ext$major'
13978 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13979 shlibpath_var=LD_LIBRARY_PATH
13980 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13981 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13982 ;;
13983
13984 rdos*)
13985 dynamic_linker=no
13986 ;;
13987
13988 solaris*)
13989 version_type=linux # correct to gnu/linux during the next big refactor
13990 need_lib_prefix=no
13991 need_version=no
13992 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13993 soname_spec='$libname$release$shared_ext$major'
13994 shlibpath_var=LD_LIBRARY_PATH
13995 shlibpath_overrides_runpath=yes
13996 hardcode_into_libs=yes
13997 # ldd complains unless libraries are executable
13998 postinstall_cmds='chmod +x $lib'
13999 ;;
14000
14001 sunos4*)
14002 version_type=sunos
14003 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
14004 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14005 shlibpath_var=LD_LIBRARY_PATH
14006 shlibpath_overrides_runpath=yes
14007 if test yes = "$with_gnu_ld"; then
14008 need_lib_prefix=no
14009 fi
14010 need_version=yes
14011 ;;
14012
14013 sysv4 | sysv4.3*)
14014 version_type=linux # correct to gnu/linux during the next big refactor
14015 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14016 soname_spec='$libname$release$shared_ext$major'
14017 shlibpath_var=LD_LIBRARY_PATH
14018 case $host_vendor in
14019 sni)
14020 shlibpath_overrides_runpath=no
14021 need_lib_prefix=no
14022 runpath_var=LD_RUN_PATH
14023 ;;
14024 siemens)
14025 need_lib_prefix=no
14026 ;;
14027 motorola)
14028 need_lib_prefix=no
14029 need_version=no
14030 shlibpath_overrides_runpath=no
14031 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14032 ;;
14033 esac
14034 ;;
14035
14036 sysv4*MP*)
14037 if test -d /usr/nec; then
14038 version_type=linux # correct to gnu/linux during the next big refactor
14039 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
14040 soname_spec='$libname$shared_ext.$major'
14041 shlibpath_var=LD_LIBRARY_PATH
14042 fi
14043 ;;
14044
14045 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14046 version_type=sco
14047 need_lib_prefix=no
14048 need_version=no
14049 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
14050 soname_spec='$libname$release$shared_ext$major'
14051 shlibpath_var=LD_LIBRARY_PATH
14052 shlibpath_overrides_runpath=yes
14053 hardcode_into_libs=yes
14054 if test yes = "$with_gnu_ld"; then
14055 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14056 else
14057 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14058 case $host_os in
14059 sco3.2v5*)
14060 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14061 ;;
14062 esac
14063 fi
14064 sys_lib_dlsearch_path_spec='/usr/lib'
14065 ;;
14066
14067 tpf*)
14068 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
14069 version_type=linux # correct to gnu/linux during the next big refactor
14070 need_lib_prefix=no
14071 need_version=no
14072 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14073 shlibpath_var=LD_LIBRARY_PATH
14074 shlibpath_overrides_runpath=no
14075 hardcode_into_libs=yes
14076 ;;
14077
14078 uts4*)
14079 version_type=linux # correct to gnu/linux during the next big refactor
14080 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14081 soname_spec='$libname$release$shared_ext$major'
14082 shlibpath_var=LD_LIBRARY_PATH
14083 ;;
14084
14085 *)
14086 dynamic_linker=no
14087 ;;
14088 esac
14089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14090 $as_echo "$dynamic_linker" >&6; }
14091 test no = "$dynamic_linker" && can_build_shared=no
14092
14093 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14094 if test yes = "$GCC"; then
14095 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14096 fi
14097
14098 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
14099 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
14100 fi
14101
14102 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
14103 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
14104 fi
14105
14106 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
14107 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
14108
14109 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
14110 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
14111
14112 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
14113 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
14114
14115
14116
14117
14118
14119
14120
14121
14122
14123
14124
14125
14126
14127
14128
14129
14130
14131
14132
14133
14134
14135
14136
14137
14138
14139
14140
14141
14142
14143
14144
14145
14146
14147
14148
14149
14150
14151
14152
14153
14154
14155
14156
14157
14158
14159
14160
14161
14162
14163
14164
14165
14166
14167
14168
14169
14170
14171
14172
14173
14174
14175
14176
14177
14178
14179
14180
14181
14182
14183
14184
14185
14186
14187
14188
14189
14190
14191
14192
14193
14194
14195
14196
14197
14198
14199
14200
14201
14202
14203
14204
14205
14206
14207
14208
14209
14210
14211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14212 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14213 hardcode_action=
14214 if test -n "$hardcode_libdir_flag_spec" ||
14215 test -n "$runpath_var" ||
14216 test yes = "$hardcode_automatic"; then
14217
14218 # We can hardcode non-existent directories.
14219 if test no != "$hardcode_direct" &&
14220 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14221 # have to relink, otherwise we might link with an installed library
14222 # when we should be linking with a yet-to-be-installed one
14223 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
14224 test no != "$hardcode_minus_L"; then
14225 # Linking always hardcodes the temporary library directory.
14226 hardcode_action=relink
14227 else
14228 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14229 hardcode_action=immediate
14230 fi
14231 else
14232 # We cannot hardcode anything, or else we can only hardcode existing
14233 # directories.
14234 hardcode_action=unsupported
14235 fi
14236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
14237 $as_echo "$hardcode_action" >&6; }
14238
14239 if test relink = "$hardcode_action" ||
14240 test yes = "$inherit_rpath"; then
14241 # Fast installation is not supported
14242 enable_fast_install=no
14243 elif test yes = "$shlibpath_overrides_runpath" ||
14244 test no = "$enable_shared"; then
14245 # Fast installation is not necessary
14246 enable_fast_install=needless
14247 fi
14248
14249
14250
14251
14252
14253
14254 if test yes != "$enable_dlopen"; then
14255 enable_dlopen=unknown
14256 enable_dlopen_self=unknown
14257 enable_dlopen_self_static=unknown
14258 else
14259 lt_cv_dlopen=no
14260 lt_cv_dlopen_libs=
14261
14262 case $host_os in
14263 beos*)
14264 lt_cv_dlopen=load_add_on
14265 lt_cv_dlopen_libs=
14266 lt_cv_dlopen_self=yes
14267 ;;
14268
14269 mingw* | pw32* | cegcc*)
14270 lt_cv_dlopen=LoadLibrary
14271 lt_cv_dlopen_libs=
14272 ;;
14273
14274 cygwin*)
14275 lt_cv_dlopen=dlopen
14276 lt_cv_dlopen_libs=
14277 ;;
14278
14279 darwin*)
14280 # if libdl is installed we need to link against it
14281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14282 $as_echo_n "checking for dlopen in -ldl... " >&6; }
14283 if ${ac_cv_lib_dl_dlopen+:} false; then :
14284 $as_echo_n "(cached) " >&6
14285 else
14286 ac_check_lib_save_LIBS=$LIBS
14287 LIBS="-ldl $LIBS"
14288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14289 /* end confdefs.h. */
14290
14291 /* Override any GCC internal prototype to avoid an error.
14292 Use char because int might match the return type of a GCC
14293 builtin and then its argument prototype would still apply. */
14294 #ifdef __cplusplus
14295 extern "C"
14296 #endif
14297 char dlopen ();
14298 int
14299 main ()
14300 {
14301 return dlopen ();
14302 ;
14303 return 0;
14304 }
14305 _ACEOF
14306 if ac_fn_c_try_link "$LINENO"; then :
14307 ac_cv_lib_dl_dlopen=yes
14308 else
14309 ac_cv_lib_dl_dlopen=no
14310 fi
14311 rm -f core conftest.err conftest.$ac_objext \
14312 conftest$ac_exeext conftest.$ac_ext
14313 LIBS=$ac_check_lib_save_LIBS
14314 fi
14315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14316 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
14317 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
14318 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
14319 else
14320
14321 lt_cv_dlopen=dyld
14322 lt_cv_dlopen_libs=
14323 lt_cv_dlopen_self=yes
14324
14325 fi
14326
14327 ;;
14328
14329 tpf*)
14330 # Don't try to run any link tests for TPF. We know it's impossible
14331 # because TPF is a cross-compiler, and we know how we open DSOs.
14332 lt_cv_dlopen=dlopen
14333 lt_cv_dlopen_libs=
14334 lt_cv_dlopen_self=no
14335 ;;
14336
14337 *)
14338 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
14339 if test "x$ac_cv_func_shl_load" = xyes; then :
14340 lt_cv_dlopen=shl_load
14341 else
14342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
14343 $as_echo_n "checking for shl_load in -ldld... " >&6; }
14344 if ${ac_cv_lib_dld_shl_load+:} false; then :
14345 $as_echo_n "(cached) " >&6
14346 else
14347 ac_check_lib_save_LIBS=$LIBS
14348 LIBS="-ldld $LIBS"
14349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14350 /* end confdefs.h. */
14351
14352 /* Override any GCC internal prototype to avoid an error.
14353 Use char because int might match the return type of a GCC
14354 builtin and then its argument prototype would still apply. */
14355 #ifdef __cplusplus
14356 extern "C"
14357 #endif
14358 char shl_load ();
14359 int
14360 main ()
14361 {
14362 return shl_load ();
14363 ;
14364 return 0;
14365 }
14366 _ACEOF
14367 if ac_fn_c_try_link "$LINENO"; then :
14368 ac_cv_lib_dld_shl_load=yes
14369 else
14370 ac_cv_lib_dld_shl_load=no
14371 fi
14372 rm -f core conftest.err conftest.$ac_objext \
14373 conftest$ac_exeext conftest.$ac_ext
14374 LIBS=$ac_check_lib_save_LIBS
14375 fi
14376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
14377 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
14378 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
14379 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
14380 else
14381 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
14382 if test "x$ac_cv_func_dlopen" = xyes; then :
14383 lt_cv_dlopen=dlopen
14384 else
14385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14386 $as_echo_n "checking for dlopen in -ldl... " >&6; }
14387 if ${ac_cv_lib_dl_dlopen+:} false; then :
14388 $as_echo_n "(cached) " >&6
14389 else
14390 ac_check_lib_save_LIBS=$LIBS
14391 LIBS="-ldl $LIBS"
14392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14393 /* end confdefs.h. */
14394
14395 /* Override any GCC internal prototype to avoid an error.
14396 Use char because int might match the return type of a GCC
14397 builtin and then its argument prototype would still apply. */
14398 #ifdef __cplusplus
14399 extern "C"
14400 #endif
14401 char dlopen ();
14402 int
14403 main ()
14404 {
14405 return dlopen ();
14406 ;
14407 return 0;
14408 }
14409 _ACEOF
14410 if ac_fn_c_try_link "$LINENO"; then :
14411 ac_cv_lib_dl_dlopen=yes
14412 else
14413 ac_cv_lib_dl_dlopen=no
14414 fi
14415 rm -f core conftest.err conftest.$ac_objext \
14416 conftest$ac_exeext conftest.$ac_ext
14417 LIBS=$ac_check_lib_save_LIBS
14418 fi
14419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14420 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
14421 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
14422 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
14423 else
14424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
14425 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
14426 if ${ac_cv_lib_svld_dlopen+:} false; then :
14427 $as_echo_n "(cached) " >&6
14428 else
14429 ac_check_lib_save_LIBS=$LIBS
14430 LIBS="-lsvld $LIBS"
14431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14432 /* end confdefs.h. */
14433
14434 /* Override any GCC internal prototype to avoid an error.
14435 Use char because int might match the return type of a GCC
14436 builtin and then its argument prototype would still apply. */
14437 #ifdef __cplusplus
14438 extern "C"
14439 #endif
14440 char dlopen ();
14441 int
14442 main ()
14443 {
14444 return dlopen ();
14445 ;
14446 return 0;
14447 }
14448 _ACEOF
14449 if ac_fn_c_try_link "$LINENO"; then :
14450 ac_cv_lib_svld_dlopen=yes
14451 else
14452 ac_cv_lib_svld_dlopen=no
14453 fi
14454 rm -f core conftest.err conftest.$ac_objext \
14455 conftest$ac_exeext conftest.$ac_ext
14456 LIBS=$ac_check_lib_save_LIBS
14457 fi
14458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
14459 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
14460 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
14461 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
14462 else
14463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
14464 $as_echo_n "checking for dld_link in -ldld... " >&6; }
14465 if ${ac_cv_lib_dld_dld_link+:} false; then :
14466 $as_echo_n "(cached) " >&6
14467 else
14468 ac_check_lib_save_LIBS=$LIBS
14469 LIBS="-ldld $LIBS"
14470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14471 /* end confdefs.h. */
14472
14473 /* Override any GCC internal prototype to avoid an error.
14474 Use char because int might match the return type of a GCC
14475 builtin and then its argument prototype would still apply. */
14476 #ifdef __cplusplus
14477 extern "C"
14478 #endif
14479 char dld_link ();
14480 int
14481 main ()
14482 {
14483 return dld_link ();
14484 ;
14485 return 0;
14486 }
14487 _ACEOF
14488 if ac_fn_c_try_link "$LINENO"; then :
14489 ac_cv_lib_dld_dld_link=yes
14490 else
14491 ac_cv_lib_dld_dld_link=no
14492 fi
14493 rm -f core conftest.err conftest.$ac_objext \
14494 conftest$ac_exeext conftest.$ac_ext
14495 LIBS=$ac_check_lib_save_LIBS
14496 fi
14497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
14498 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
14499 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
14500 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
14501 fi
14502
14503
14504 fi
14505
14506
14507 fi
14508
14509
14510 fi
14511
14512
14513 fi
14514
14515
14516 fi
14517
14518 ;;
14519 esac
14520
14521 if test no = "$lt_cv_dlopen"; then
14522 enable_dlopen=no
14523 else
14524 enable_dlopen=yes
14525 fi
14526
14527 case $lt_cv_dlopen in
14528 dlopen)
14529 save_CPPFLAGS=$CPPFLAGS
14530 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
14531
14532 save_LDFLAGS=$LDFLAGS
14533 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
14534
14535 save_LIBS=$LIBS
14536 LIBS="$lt_cv_dlopen_libs $LIBS"
14537
14538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
14539 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
14540 if ${lt_cv_dlopen_self+:} false; then :
14541 $as_echo_n "(cached) " >&6
14542 else
14543 if test yes = "$cross_compiling"; then :
14544 lt_cv_dlopen_self=cross
14545 else
14546 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14547 lt_status=$lt_dlunknown
14548 cat > conftest.$ac_ext <<_LT_EOF
14549 #line $LINENO "configure"
14550 #include "confdefs.h"
14551
14552 #if HAVE_DLFCN_H
14553 #include <dlfcn.h>
14554 #endif
14555
14556 #include <stdio.h>
14557
14558 #ifdef RTLD_GLOBAL
14559 # define LT_DLGLOBAL RTLD_GLOBAL
14560 #else
14561 # ifdef DL_GLOBAL
14562 # define LT_DLGLOBAL DL_GLOBAL
14563 # else
14564 # define LT_DLGLOBAL 0
14565 # endif
14566 #endif
14567
14568 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14569 find out it does not work in some platform. */
14570 #ifndef LT_DLLAZY_OR_NOW
14571 # ifdef RTLD_LAZY
14572 # define LT_DLLAZY_OR_NOW RTLD_LAZY
14573 # else
14574 # ifdef DL_LAZY
14575 # define LT_DLLAZY_OR_NOW DL_LAZY
14576 # else
14577 # ifdef RTLD_NOW
14578 # define LT_DLLAZY_OR_NOW RTLD_NOW
14579 # else
14580 # ifdef DL_NOW
14581 # define LT_DLLAZY_OR_NOW DL_NOW
14582 # else
14583 # define LT_DLLAZY_OR_NOW 0
14584 # endif
14585 # endif
14586 # endif
14587 # endif
14588 #endif
14589
14590 /* When -fvisibility=hidden is used, assume the code has been annotated
14591 correspondingly for the symbols needed. */
14592 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
14593 int fnord () __attribute__((visibility("default")));
14594 #endif
14595
14596 int fnord () { return 42; }
14597 int main ()
14598 {
14599 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14600 int status = $lt_dlunknown;
14601
14602 if (self)
14603 {
14604 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14605 else
14606 {
14607 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14608 else puts (dlerror ());
14609 }
14610 /* dlclose (self); */
14611 }
14612 else
14613 puts (dlerror ());
14614
14615 return status;
14616 }
14617 _LT_EOF
14618 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14619 (eval $ac_link) 2>&5
14620 ac_status=$?
14621 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14622 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
14623 (./conftest; exit; ) >&5 2>/dev/null
14624 lt_status=$?
14625 case x$lt_status in
14626 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14627 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14628 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
14629 esac
14630 else :
14631 # compilation failed
14632 lt_cv_dlopen_self=no
14633 fi
14634 fi
14635 rm -fr conftest*
14636
14637
14638 fi
14639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
14640 $as_echo "$lt_cv_dlopen_self" >&6; }
14641
14642 if test yes = "$lt_cv_dlopen_self"; then
14643 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
14644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
14645 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
14646 if ${lt_cv_dlopen_self_static+:} false; then :
14647 $as_echo_n "(cached) " >&6
14648 else
14649 if test yes = "$cross_compiling"; then :
14650 lt_cv_dlopen_self_static=cross
14651 else
14652 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14653 lt_status=$lt_dlunknown
14654 cat > conftest.$ac_ext <<_LT_EOF
14655 #line $LINENO "configure"
14656 #include "confdefs.h"
14657
14658 #if HAVE_DLFCN_H
14659 #include <dlfcn.h>
14660 #endif
14661
14662 #include <stdio.h>
14663
14664 #ifdef RTLD_GLOBAL
14665 # define LT_DLGLOBAL RTLD_GLOBAL
14666 #else
14667 # ifdef DL_GLOBAL
14668 # define LT_DLGLOBAL DL_GLOBAL
14669 # else
14670 # define LT_DLGLOBAL 0
14671 # endif
14672 #endif
14673
14674 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14675 find out it does not work in some platform. */
14676 #ifndef LT_DLLAZY_OR_NOW
14677 # ifdef RTLD_LAZY
14678 # define LT_DLLAZY_OR_NOW RTLD_LAZY
14679 # else
14680 # ifdef DL_LAZY
14681 # define LT_DLLAZY_OR_NOW DL_LAZY
14682 # else
14683 # ifdef RTLD_NOW
14684 # define LT_DLLAZY_OR_NOW RTLD_NOW
14685 # else
14686 # ifdef DL_NOW
14687 # define LT_DLLAZY_OR_NOW DL_NOW
14688 # else
14689 # define LT_DLLAZY_OR_NOW 0
14690 # endif
14691 # endif
14692 # endif
14693 # endif
14694 #endif
14695
14696 /* When -fvisibility=hidden is used, assume the code has been annotated
14697 correspondingly for the symbols needed. */
14698 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
14699 int fnord () __attribute__((visibility("default")));
14700 #endif
14701
14702 int fnord () { return 42; }
14703 int main ()
14704 {
14705 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14706 int status = $lt_dlunknown;
14707
14708 if (self)
14709 {
14710 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14711 else
14712 {
14713 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14714 else puts (dlerror ());
14715 }
14716 /* dlclose (self); */
14717 }
14718 else
14719 puts (dlerror ());
14720
14721 return status;
14722 }
14723 _LT_EOF
14724 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14725 (eval $ac_link) 2>&5
14726 ac_status=$?
14727 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14728 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
14729 (./conftest; exit; ) >&5 2>/dev/null
14730 lt_status=$?
14731 case x$lt_status in
14732 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
14733 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
14734 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
14735 esac
14736 else :
14737 # compilation failed
14738 lt_cv_dlopen_self_static=no
14739 fi
14740 fi
14741 rm -fr conftest*
14742
14743
14744 fi
14745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
14746 $as_echo "$lt_cv_dlopen_self_static" >&6; }
14747 fi
14748
14749 CPPFLAGS=$save_CPPFLAGS
14750 LDFLAGS=$save_LDFLAGS
14751 LIBS=$save_LIBS
14752 ;;
14753 esac
14754
14755 case $lt_cv_dlopen_self in
14756 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
14757 *) enable_dlopen_self=unknown ;;
14758 esac
14759
14760 case $lt_cv_dlopen_self_static in
14761 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
14762 *) enable_dlopen_self_static=unknown ;;
14763 esac
14764 fi
14765
14766
14767
14768
14769
14770
14771
14772
14773
14774
14775
14776
14777
14778
14779
14780
14781
14782 striplib=
14783 old_striplib=
14784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
14785 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
14786 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
14787 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14788 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14790 $as_echo "yes" >&6; }
14791 else
14792 # FIXME - insert some real tests, host_os isn't really good enough
14793 case $host_os in
14794 darwin*)
14795 if test -n "$STRIP"; then
14796 striplib="$STRIP -x"
14797 old_striplib="$STRIP -S"
14798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14799 $as_echo "yes" >&6; }
14800 else
14801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14802 $as_echo "no" >&6; }
14803 fi
14804 ;;
14805 *)
14806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14807 $as_echo "no" >&6; }
14808 ;;
14809 esac
14810 fi
14811
14812
14813
14814
14815
14816
14817
14818
14819
14820
14821
14822
14823 # Report what library types will actually be built
14824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
14825 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
14826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
14827 $as_echo "$can_build_shared" >&6; }
14828
14829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
14830 $as_echo_n "checking whether to build shared libraries... " >&6; }
14831 test no = "$can_build_shared" && enable_shared=no
14832
14833 # On AIX, shared libraries and static libraries use the same namespace, and
14834 # are all built from PIC.
14835 case $host_os in
14836 aix3*)
14837 test yes = "$enable_shared" && enable_static=no
14838 if test -n "$RANLIB"; then
14839 archive_cmds="$archive_cmds~\$RANLIB \$lib"
14840 postinstall_cmds='$RANLIB $lib'
14841 fi
14842 ;;
14843
14844 aix[4-9]*)
14845 if test ia64 != "$host_cpu"; then
14846 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
14847 yes,aix,yes) ;; # shared object as lib.so file only
14848 yes,svr4,*) ;; # shared object as lib.so archive member only
14849 yes,*) enable_static=no ;; # shared object in lib.a archive as well
14850 esac
14851 fi
14852 ;;
14853 esac
14854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
14855 $as_echo "$enable_shared" >&6; }
14856
14857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
14858 $as_echo_n "checking whether to build static libraries... " >&6; }
14859 # Make sure either enable_shared or enable_static is yes.
14860 test yes = "$enable_shared" || enable_static=yes
14861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
14862 $as_echo "$enable_static" >&6; }
14863
14864
14865
14866
14867 fi
14868 ac_ext=c
14869 ac_cpp='$CPP $CPPFLAGS'
14870 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14871 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14872 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14873
14874 CC=$lt_save_CC
14875
14876
14877
14878
14879
14880
14881
14882
14883
14884
14885
14886
14887
14888
14889
14890 ac_config_commands="$ac_config_commands libtool"
14891
14892
14893
14894
14895 # Only expand once:
14896
14897
14898
14899
14900 ###
14901
14902
14903
14904
14905
14906
14907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlsym in -ldl" >&5
14908 $as_echo_n "checking for dlsym in -ldl... " >&6; }
14909 if ${ac_cv_lib_dl_dlsym+:} false; then :
14910 $as_echo_n "(cached) " >&6
14911 else
14912 ac_check_lib_save_LIBS=$LIBS
14913 LIBS="-ldl $LIBS"
14914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14915 /* end confdefs.h. */
14916
14917 /* Override any GCC internal prototype to avoid an error.
14918 Use char because int might match the return type of a GCC
14919 builtin and then its argument prototype would still apply. */
14920 #ifdef __cplusplus
14921 extern "C"
14922 #endif
14923 char dlsym ();
14924 int
14925 main ()
14926 {
14927 return dlsym ();
14928 ;
14929 return 0;
14930 }
14931 _ACEOF
14932 if ac_fn_c_try_link "$LINENO"; then :
14933 ac_cv_lib_dl_dlsym=yes
14934 else
14935 ac_cv_lib_dl_dlsym=no
14936 fi
14937 rm -f core conftest.err conftest.$ac_objext \
14938 conftest$ac_exeext conftest.$ac_ext
14939 LIBS=$ac_check_lib_save_LIBS
14940 fi
14941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlsym" >&5
14942 $as_echo "$ac_cv_lib_dl_dlsym" >&6; }
14943 if test "x$ac_cv_lib_dl_dlsym" = xyes; then :
14944 libsrlinetd="${libsrlinetd} -ldl"
14945 fi
14946
14947
14948
14949
14950 # Check whether --with-libnsl was given.
14951 if test "${with_libnsl+set}" = set; then :
14952 withval=$with_libnsl; libnsl="$withval"
14953 else
14954 libnsl="yes"
14955 fi
14956
14957 if test x"$libnsl" != x"no"; then :
14958
14959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for yp_get_default_domain in -lnsl" >&5
14960 $as_echo_n "checking for yp_get_default_domain in -lnsl... " >&6; }
14961 if ${ac_cv_lib_nsl_yp_get_default_domain+:} false; then :
14962 $as_echo_n "(cached) " >&6
14963 else
14964 ac_check_lib_save_LIBS=$LIBS
14965 LIBS="-lnsl $LIBS"
14966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14967 /* end confdefs.h. */
14968
14969 /* Override any GCC internal prototype to avoid an error.
14970 Use char because int might match the return type of a GCC
14971 builtin and then its argument prototype would still apply. */
14972 #ifdef __cplusplus
14973 extern "C"
14974 #endif
14975 char yp_get_default_domain ();
14976 int
14977 main ()
14978 {
14979 return yp_get_default_domain ();
14980 ;
14981 return 0;
14982 }
14983 _ACEOF
14984 if ac_fn_c_try_link "$LINENO"; then :
14985 ac_cv_lib_nsl_yp_get_default_domain=yes
14986 else
14987 ac_cv_lib_nsl_yp_get_default_domain=no
14988 fi
14989 rm -f core conftest.err conftest.$ac_objext \
14990 conftest$ac_exeext conftest.$ac_ext
14991 LIBS=$ac_check_lib_save_LIBS
14992 fi
14993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_yp_get_default_domain" >&5
14994 $as_echo "$ac_cv_lib_nsl_yp_get_default_domain" >&6; }
14995 if test "x$ac_cv_lib_nsl_yp_get_default_domain" = xyes; then :
14996 libsrlinetd="${libsrlinetd} -lnsl"; LIBS="$LIBS -lnsl"
14997 fi
14998
14999
15000 fi
15001
15002
15003
15004 # Check whether --with-libwrap was given.
15005 if test "${with_libwrap+set}" = set; then :
15006 withval=$with_libwrap; libwrap="$withval"
15007 else
15008 libwrap="yes"
15009 fi
15010
15011 if test x"$libwrap" != x"no"; then :
15012
15013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hosts_access in -lwrap" >&5
15014 $as_echo_n "checking for hosts_access in -lwrap... " >&6; }
15015 oldLIBS=$LIBS
15016 LIBS="$LIBS -lwrap"
15017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15018 /* end confdefs.h. */
15019 int allow_severity; int deny_severity;
15020 int
15021 main ()
15022 {
15023 hosts_access(0)
15024 ;
15025 return 0;
15026 }
15027 _ACEOF
15028 if ac_fn_c_try_link "$LINENO"; then :
15029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15030 $as_echo "yes" >&6; }
15031 else
15032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - no tcp_wrappers support included" >&5
15033 $as_echo "no - no tcp_wrappers support included" >&6; }; libwrap="no"
15034 fi
15035 rm -f core conftest.err conftest.$ac_objext \
15036 conftest$ac_exeext conftest.$ac_ext
15037 LIBS=$oldLIBS
15038 if test x"$libwrap" != x"no"; then :
15039
15040 for ac_header in tcpd.h
15041 do :
15042 ac_fn_c_check_header_mongrel "$LINENO" "tcpd.h" "ac_cv_header_tcpd_h" "$ac_includes_default"
15043 if test "x$ac_cv_header_tcpd_h" = xyes; then :
15044 cat >>confdefs.h <<_ACEOF
15045 #define HAVE_TCPD_H 1
15046 _ACEOF
15047
15048 libsrlinetd="${libsrlinetd} -lwrap"
15049
15050 $as_echo "#define HAVE_TCP_WRAPPERS 1" >>confdefs.h
15051
15052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: including tcp_wrappers support" >&5
15053 $as_echo "including tcp_wrappers support" >&6; }
15054 else
15055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no tcp_wrappers support included" >&5
15056 $as_echo "no tcp_wrappers support included" >&6; }
15057 fi
15058
15059 done
15060
15061
15062 fi
15063
15064 fi
15065
15066
15067
15068 # Check whether --with-libcap was given.
15069 if test "${with_libcap+set}" = set; then :
15070 withval=$with_libcap; libcap="$withval"
15071 else
15072 libpcap="yes"
15073 fi
15074
15075
15076 if test x"$libcap" = x"yes"; then :
15077
15078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cap_set_proc in -lcap" >&5
15079 $as_echo_n "checking for cap_set_proc in -lcap... " >&6; }
15080 if ${ac_cv_lib_cap_cap_set_proc+:} false; then :
15081 $as_echo_n "(cached) " >&6
15082 else
15083 ac_check_lib_save_LIBS=$LIBS
15084 LIBS="-lcap $LIBS"
15085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15086 /* end confdefs.h. */
15087
15088 /* Override any GCC internal prototype to avoid an error.
15089 Use char because int might match the return type of a GCC
15090 builtin and then its argument prototype would still apply. */
15091 #ifdef __cplusplus
15092 extern "C"
15093 #endif
15094 char cap_set_proc ();
15095 int
15096 main ()
15097 {
15098 return cap_set_proc ();
15099 ;
15100 return 0;
15101 }
15102 _ACEOF
15103 if ac_fn_c_try_link "$LINENO"; then :
15104 ac_cv_lib_cap_cap_set_proc=yes
15105 else
15106 ac_cv_lib_cap_cap_set_proc=no
15107 fi
15108 rm -f core conftest.err conftest.$ac_objext \
15109 conftest$ac_exeext conftest.$ac_ext
15110 LIBS=$ac_check_lib_save_LIBS
15111 fi
15112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cap_cap_set_proc" >&5
15113 $as_echo "$ac_cv_lib_cap_cap_set_proc" >&6; }
15114 if test "x$ac_cv_lib_cap_cap_set_proc" = xyes; then :
15115 LIBS="${LIBS} -lcap"
15116 else
15117 libcap="no"
15118 fi
15119
15120 if test x"$libcap" = x"yes"; then :
15121
15122 for ac_header in sys/capability.h
15123 do :
15124 ac_fn_c_check_header_mongrel "$LINENO" "sys/capability.h" "ac_cv_header_sys_capability_h" "$ac_includes_default"
15125 if test "x$ac_cv_header_sys_capability_h" = xyes; then :
15126 cat >>confdefs.h <<_ACEOF
15127 #define HAVE_SYS_CAPABILITY_H 1
15128 _ACEOF
15129
15130 $as_echo "#define HAVE_CAPABILITIES 1" >>confdefs.h
15131
15132 fi
15133
15134 done
15135
15136
15137 fi
15138
15139 fi
15140
15141
15142
15143 # Check whether --with-lsf was given.
15144 if test "${with_lsf+set}" = set; then :
15145 withval=$with_lsf; lsf="$withval"
15146 else
15147 lsf="yes"
15148 fi
15149
15150
15151 if test x"$lsf" = x"yes"; then :
15152
15153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SO_ATTACH_FILTER in <sys/socket.h>" >&5
15154 $as_echo_n "checking for SO_ATTACH_FILTER in <sys/socket.h>... " >&6; }
15155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15156 /* end confdefs.h. */
15157
15158 #include <sys/socket.h>
15159 #ifdef SO_ATTACH_FILTER
15160 fishfish
15161 #endif
15162
15163 _ACEOF
15164 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15165 $EGREP "fishfish" >/dev/null 2>&1; then :
15166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15167 $as_echo "yes" >&6; }
15168 else
15169 lsf=no;
15170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15171 $as_echo "no" >&6; }
15172 fi
15173 rm -f conftest*
15174
15175
15176 if test x"$lsf" = x"yes"; then :
15177
15178 for ac_header in net/bpf.h
15179 do :
15180 ac_fn_c_check_header_mongrel "$LINENO" "net/bpf.h" "ac_cv_header_net_bpf_h" "$ac_includes_default"
15181 if test "x$ac_cv_header_net_bpf_h" = xyes; then :
15182 cat >>confdefs.h <<_ACEOF
15183 #define HAVE_NET_BPF_H 1
15184 _ACEOF
15185
15186 fi
15187
15188 done
15189
15190
15191 fi
15192
15193 fi
15194
15195
15196 # Check whether --enable-warnings was given.
15197 if test "${enable_warnings+set}" = set; then :
15198 enableval=$enable_warnings; enable_warnings="$enableval"
15199 else
15200 enable_warnings="yes"
15201 fi
15202
15203
15204 if test x"$enable_warnings" = x"yes"; then :
15205
15206 CFLAGS="$CFLAGS -Wall -Wextra -Wwrite-strings -Wcast-qual -Wbad-function-cast"
15207 CFLAGS="$CFLAGS -Wpointer-arith -Wmissing-prototypes -Wstrict-prototypes -Wmissing-declarations"
15208 CFLAGS="$CFLAGS -Wnested-externs -Wcast-align -Winline -Wshadow -Wredundant-decls"
15209
15210 fi
15211
15212
15213 ac_header_dirent=no
15214 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
15215 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
15216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
15217 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
15218 if eval \${$as_ac_Header+:} false; then :
15219 $as_echo_n "(cached) " >&6
15220 else
15221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15222 /* end confdefs.h. */
15223 #include <sys/types.h>
15224 #include <$ac_hdr>
15225
15226 int
15227 main ()
15228 {
15229 if ((DIR *) 0)
15230 return 0;
15231 ;
15232 return 0;
15233 }
15234 _ACEOF
15235 if ac_fn_c_try_compile "$LINENO"; then :
15236 eval "$as_ac_Header=yes"
15237 else
15238 eval "$as_ac_Header=no"
15239 fi
15240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15241 fi
15242 eval ac_res=\$$as_ac_Header
15243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15244 $as_echo "$ac_res" >&6; }
15245 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
15246 cat >>confdefs.h <<_ACEOF
15247 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
15248 _ACEOF
15249
15250 ac_header_dirent=$ac_hdr; break
15251 fi
15252
15253 done
15254 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
15255 if test $ac_header_dirent = dirent.h; then
15256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
15257 $as_echo_n "checking for library containing opendir... " >&6; }
15258 if ${ac_cv_search_opendir+:} false; then :
15259 $as_echo_n "(cached) " >&6
15260 else
15261 ac_func_search_save_LIBS=$LIBS
15262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15263 /* end confdefs.h. */
15264
15265 /* Override any GCC internal prototype to avoid an error.
15266 Use char because int might match the return type of a GCC
15267 builtin and then its argument prototype would still apply. */
15268 #ifdef __cplusplus
15269 extern "C"
15270 #endif
15271 char opendir ();
15272 int
15273 main ()
15274 {
15275 return opendir ();
15276 ;
15277 return 0;
15278 }
15279 _ACEOF
15280 for ac_lib in '' dir; do
15281 if test -z "$ac_lib"; then
15282 ac_res="none required"
15283 else
15284 ac_res=-l$ac_lib
15285 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15286 fi
15287 if ac_fn_c_try_link "$LINENO"; then :
15288 ac_cv_search_opendir=$ac_res
15289 fi
15290 rm -f core conftest.err conftest.$ac_objext \
15291 conftest$ac_exeext
15292 if ${ac_cv_search_opendir+:} false; then :
15293 break
15294 fi
15295 done
15296 if ${ac_cv_search_opendir+:} false; then :
15297
15298 else
15299 ac_cv_search_opendir=no
15300 fi
15301 rm conftest.$ac_ext
15302 LIBS=$ac_func_search_save_LIBS
15303 fi
15304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
15305 $as_echo "$ac_cv_search_opendir" >&6; }
15306 ac_res=$ac_cv_search_opendir
15307 if test "$ac_res" != no; then :
15308 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15309
15310 fi
15311
15312 else
15313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
15314 $as_echo_n "checking for library containing opendir... " >&6; }
15315 if ${ac_cv_search_opendir+:} false; then :
15316 $as_echo_n "(cached) " >&6
15317 else
15318 ac_func_search_save_LIBS=$LIBS
15319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15320 /* end confdefs.h. */
15321
15322 /* Override any GCC internal prototype to avoid an error.
15323 Use char because int might match the return type of a GCC
15324 builtin and then its argument prototype would still apply. */
15325 #ifdef __cplusplus
15326 extern "C"
15327 #endif
15328 char opendir ();
15329 int
15330 main ()
15331 {
15332 return opendir ();
15333 ;
15334 return 0;
15335 }
15336 _ACEOF
15337 for ac_lib in '' x; do
15338 if test -z "$ac_lib"; then
15339 ac_res="none required"
15340 else
15341 ac_res=-l$ac_lib
15342 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15343 fi
15344 if ac_fn_c_try_link "$LINENO"; then :
15345 ac_cv_search_opendir=$ac_res
15346 fi
15347 rm -f core conftest.err conftest.$ac_objext \
15348 conftest$ac_exeext
15349 if ${ac_cv_search_opendir+:} false; then :
15350 break
15351 fi
15352 done
15353 if ${ac_cv_search_opendir+:} false; then :
15354
15355 else
15356 ac_cv_search_opendir=no
15357 fi
15358 rm conftest.$ac_ext
15359 LIBS=$ac_func_search_save_LIBS
15360 fi
15361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
15362 $as_echo "$ac_cv_search_opendir" >&6; }
15363 ac_res=$ac_cv_search_opendir
15364 if test "$ac_res" != no; then :
15365 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15366
15367 fi
15368
15369 fi
15370
15371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
15372 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
15373 if ${ac_cv_header_time+:} false; then :
15374 $as_echo_n "(cached) " >&6
15375 else
15376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15377 /* end confdefs.h. */
15378 #include <sys/types.h>
15379 #include <sys/time.h>
15380 #include <time.h>
15381
15382 int
15383 main ()
15384 {
15385 if ((struct tm *) 0)
15386 return 0;
15387 ;
15388 return 0;
15389 }
15390 _ACEOF
15391 if ac_fn_c_try_compile "$LINENO"; then :
15392 ac_cv_header_time=yes
15393 else
15394 ac_cv_header_time=no
15395 fi
15396 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15397 fi
15398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
15399 $as_echo "$ac_cv_header_time" >&6; }
15400 if test $ac_cv_header_time = yes; then
15401
15402 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
15403
15404 fi
15405
15406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
15407 $as_echo_n "checking for ANSI C header files... " >&6; }
15408 if ${ac_cv_header_stdc+:} false; then :
15409 $as_echo_n "(cached) " >&6
15410 else
15411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15412 /* end confdefs.h. */
15413 #include <stdlib.h>
15414 #include <stdarg.h>
15415 #include <string.h>
15416 #include <float.h>
15417
15418 int
15419 main ()
15420 {
15421
15422 ;
15423 return 0;
15424 }
15425 _ACEOF
15426 if ac_fn_c_try_compile "$LINENO"; then :
15427 ac_cv_header_stdc=yes
15428 else
15429 ac_cv_header_stdc=no
15430 fi
15431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15432
15433 if test $ac_cv_header_stdc = yes; then
15434 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
15435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15436 /* end confdefs.h. */
15437 #include <string.h>
15438
15439 _ACEOF
15440 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15441 $EGREP "memchr" >/dev/null 2>&1; then :
15442
15443 else
15444 ac_cv_header_stdc=no
15445 fi
15446 rm -f conftest*
15447
15448 fi
15449
15450 if test $ac_cv_header_stdc = yes; then
15451 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
15452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15453 /* end confdefs.h. */
15454 #include <stdlib.h>
15455
15456 _ACEOF
15457 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15458 $EGREP "free" >/dev/null 2>&1; then :
15459
15460 else
15461 ac_cv_header_stdc=no
15462 fi
15463 rm -f conftest*
15464
15465 fi
15466
15467 if test $ac_cv_header_stdc = yes; then
15468 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
15469 if test "$cross_compiling" = yes; then :
15470 :
15471 else
15472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15473 /* end confdefs.h. */
15474 #include <ctype.h>
15475 #include <stdlib.h>
15476 #if ((' ' & 0x0FF) == 0x020)
15477 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
15478 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
15479 #else
15480 # define ISLOWER(c) \
15481 (('a' <= (c) && (c) <= 'i') \
15482 || ('j' <= (c) && (c) <= 'r') \
15483 || ('s' <= (c) && (c) <= 'z'))
15484 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
15485 #endif
15486
15487 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
15488 int
15489 main ()
15490 {
15491 int i;
15492 for (i = 0; i < 256; i++)
15493 if (XOR (islower (i), ISLOWER (i))
15494 || toupper (i) != TOUPPER (i))
15495 return 2;
15496 return 0;
15497 }
15498 _ACEOF
15499 if ac_fn_c_try_run "$LINENO"; then :
15500
15501 else
15502 ac_cv_header_stdc=no
15503 fi
15504 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15505 conftest.$ac_objext conftest.beam conftest.$ac_ext
15506 fi
15507
15508 fi
15509 fi
15510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
15511 $as_echo "$ac_cv_header_stdc" >&6; }
15512 if test $ac_cv_header_stdc = yes; then
15513
15514 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
15515
15516 fi
15517
15518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
15519 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
15520 if ${ac_cv_header_sys_wait_h+:} false; then :
15521 $as_echo_n "(cached) " >&6
15522 else
15523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15524 /* end confdefs.h. */
15525 #include <sys/types.h>
15526 #include <sys/wait.h>
15527 #ifndef WEXITSTATUS
15528 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
15529 #endif
15530 #ifndef WIFEXITED
15531 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
15532 #endif
15533
15534 int
15535 main ()
15536 {
15537 int s;
15538 wait (&s);
15539 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
15540 ;
15541 return 0;
15542 }
15543 _ACEOF
15544 if ac_fn_c_try_compile "$LINENO"; then :
15545 ac_cv_header_sys_wait_h=yes
15546 else
15547 ac_cv_header_sys_wait_h=no
15548 fi
15549 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15550 fi
15551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
15552 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
15553 if test $ac_cv_header_sys_wait_h = yes; then
15554
15555 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
15556
15557 fi
15558
15559 for ac_header in arpa/inet.h errno.h fcntl.h malloc.h netdb.h netinet/in.h stddef.h stdlib.h string.h sys/socket.h sys/time.h syslog.h unistd.h getopt.h rpc/rpc.h rpc/pmap_clnt.h
15560 do :
15561 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15562 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15563 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
15564 cat >>confdefs.h <<_ACEOF
15565 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15566 _ACEOF
15567
15568 fi
15569
15570 done
15571
15572
15573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
15574 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
15575 if ${ac_cv_c_const+:} false; then :
15576 $as_echo_n "(cached) " >&6
15577 else
15578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15579 /* end confdefs.h. */
15580
15581 int
15582 main ()
15583 {
15584
15585 #ifndef __cplusplus
15586 /* Ultrix mips cc rejects this sort of thing. */
15587 typedef int charset[2];
15588 const charset cs = { 0, 0 };
15589 /* SunOS 4.1.1 cc rejects this. */
15590 char const *const *pcpcc;
15591 char **ppc;
15592 /* NEC SVR4.0.2 mips cc rejects this. */
15593 struct point {int x, y;};
15594 static struct point const zero = {0,0};
15595 /* AIX XL C 1.02.0.0 rejects this.
15596 It does not let you subtract one const X* pointer from another in
15597 an arm of an if-expression whose if-part is not a constant
15598 expression */
15599 const char *g = "string";
15600 pcpcc = &g + (g ? g-g : 0);
15601 /* HPUX 7.0 cc rejects these. */
15602 ++pcpcc;
15603 ppc = (char**) pcpcc;
15604 pcpcc = (char const *const *) ppc;
15605 { /* SCO 3.2v4 cc rejects this sort of thing. */
15606 char tx;
15607 char *t = &tx;
15608 char const *s = 0 ? (char *) 0 : (char const *) 0;
15609
15610 *t++ = 0;
15611 if (s) return 0;
15612 }
15613 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
15614 int x[] = {25, 17};
15615 const int *foo = &x[0];
15616 ++foo;
15617 }
15618 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
15619 typedef const int *iptr;
15620 iptr p = 0;
15621 ++p;
15622 }
15623 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
15624 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
15625 struct s { int j; const int *ap[3]; } bx;
15626 struct s *b = &bx; b->j = 5;
15627 }
15628 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
15629 const int foo = 10;
15630 if (!foo) return 0;
15631 }
15632 return !cs[0] && !zero.x;
15633 #endif
15634
15635 ;
15636 return 0;
15637 }
15638 _ACEOF
15639 if ac_fn_c_try_compile "$LINENO"; then :
15640 ac_cv_c_const=yes
15641 else
15642 ac_cv_c_const=no
15643 fi
15644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15645 fi
15646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
15647 $as_echo "$ac_cv_c_const" >&6; }
15648 if test $ac_cv_c_const = no; then
15649
15650 $as_echo "#define const /**/" >>confdefs.h
15651
15652 fi
15653
15654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
15655 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
15656 if ${ac_cv_type_uid_t+:} false; then :
15657 $as_echo_n "(cached) " >&6
15658 else
15659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15660 /* end confdefs.h. */
15661 #include <sys/types.h>
15662
15663 _ACEOF
15664 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15665 $EGREP "uid_t" >/dev/null 2>&1; then :
15666 ac_cv_type_uid_t=yes
15667 else
15668 ac_cv_type_uid_t=no
15669 fi
15670 rm -f conftest*
15671
15672 fi
15673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
15674 $as_echo "$ac_cv_type_uid_t" >&6; }
15675 if test $ac_cv_type_uid_t = no; then
15676
15677 $as_echo "#define uid_t int" >>confdefs.h
15678
15679
15680 $as_echo "#define gid_t int" >>confdefs.h
15681
15682 fi
15683
15684 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
15685 if test "x$ac_cv_type_mode_t" = xyes; then :
15686
15687 else
15688
15689 cat >>confdefs.h <<_ACEOF
15690 #define mode_t int
15691 _ACEOF
15692
15693 fi
15694
15695 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
15696 if test "x$ac_cv_type_pid_t" = xyes; then :
15697
15698 else
15699
15700 cat >>confdefs.h <<_ACEOF
15701 #define pid_t int
15702 _ACEOF
15703
15704 fi
15705
15706 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
15707 if test "x$ac_cv_type_size_t" = xyes; then :
15708
15709 else
15710
15711 cat >>confdefs.h <<_ACEOF
15712 #define size_t unsigned int
15713 _ACEOF
15714
15715 fi
15716
15717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
15718 $as_echo_n "checking for working volatile... " >&6; }
15719 if ${ac_cv_c_volatile+:} false; then :
15720 $as_echo_n "(cached) " >&6
15721 else
15722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15723 /* end confdefs.h. */
15724
15725 int
15726 main ()
15727 {
15728
15729 volatile int x;
15730 int * volatile y = (int *) 0;
15731 return !x && !y;
15732 ;
15733 return 0;
15734 }
15735 _ACEOF
15736 if ac_fn_c_try_compile "$LINENO"; then :
15737 ac_cv_c_volatile=yes
15738 else
15739 ac_cv_c_volatile=no
15740 fi
15741 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15742 fi
15743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
15744 $as_echo "$ac_cv_c_volatile" >&6; }
15745 if test $ac_cv_c_volatile = no; then
15746
15747 $as_echo "#define volatile /**/" >>confdefs.h
15748
15749 fi
15750
15751
15752
15753
15754 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "$ac_includes_default"
15755 if test "x$ac_cv_type_socklen_t" = xyes; then :
15756
15757 else
15758
15759 cat >>confdefs.h <<_ACEOF
15760 #define socklen_t unsigned int
15761 _ACEOF
15762
15763 fi
15764
15765
15766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rlim_t in <sys/resource.h>" >&5
15767 $as_echo_n "checking for rlim_t in <sys/resource.h>... " >&6; }
15768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15769 /* end confdefs.h. */
15770 #include <sys/resource.h>
15771
15772 _ACEOF
15773 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15774 $EGREP "rlim_t" >/dev/null 2>&1; then :
15775
15776 $as_echo "#define HAVE_RLIM_T 1" >>confdefs.h
15777
15778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15779 $as_echo "yes" >&6; }
15780
15781 else
15782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15783 $as_echo "no" >&6; }
15784 fi
15785 rm -f conftest*
15786
15787
15788 # Checks for library functions.
15789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
15790 $as_echo_n "checking whether closedir returns void... " >&6; }
15791 if ${ac_cv_func_closedir_void+:} false; then :
15792 $as_echo_n "(cached) " >&6
15793 else
15794 if test "$cross_compiling" = yes; then :
15795 ac_cv_func_closedir_void=yes
15796 else
15797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15798 /* end confdefs.h. */
15799 $ac_includes_default
15800 #include <$ac_header_dirent>
15801 #ifndef __cplusplus
15802 int closedir ();
15803 #endif
15804
15805 int
15806 main ()
15807 {
15808 return closedir (opendir (".")) != 0;
15809 ;
15810 return 0;
15811 }
15812 _ACEOF
15813 if ac_fn_c_try_run "$LINENO"; then :
15814 ac_cv_func_closedir_void=no
15815 else
15816 ac_cv_func_closedir_void=yes
15817 fi
15818 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15819 conftest.$ac_objext conftest.beam conftest.$ac_ext
15820 fi
15821
15822 fi
15823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
15824 $as_echo "$ac_cv_func_closedir_void" >&6; }
15825 if test $ac_cv_func_closedir_void = yes; then
15826
15827 $as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
15828
15829 fi
15830
15831 for ac_header in vfork.h
15832 do :
15833 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
15834 if test "x$ac_cv_header_vfork_h" = xyes; then :
15835 cat >>confdefs.h <<_ACEOF
15836 #define HAVE_VFORK_H 1
15837 _ACEOF
15838
15839 fi
15840
15841 done
15842
15843 for ac_func in fork vfork
15844 do :
15845 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15846 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15847 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
15848 cat >>confdefs.h <<_ACEOF
15849 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15850 _ACEOF
15851
15852 fi
15853 done
15854
15855 if test "x$ac_cv_func_fork" = xyes; then
15856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
15857 $as_echo_n "checking for working fork... " >&6; }
15858 if ${ac_cv_func_fork_works+:} false; then :
15859 $as_echo_n "(cached) " >&6
15860 else
15861 if test "$cross_compiling" = yes; then :
15862 ac_cv_func_fork_works=cross
15863 else
15864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15865 /* end confdefs.h. */
15866 $ac_includes_default
15867 int
15868 main ()
15869 {
15870
15871 /* By Ruediger Kuhlmann. */
15872 return fork () < 0;
15873
15874 ;
15875 return 0;
15876 }
15877 _ACEOF
15878 if ac_fn_c_try_run "$LINENO"; then :
15879 ac_cv_func_fork_works=yes
15880 else
15881 ac_cv_func_fork_works=no
15882 fi
15883 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15884 conftest.$ac_objext conftest.beam conftest.$ac_ext
15885 fi
15886
15887 fi
15888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
15889 $as_echo "$ac_cv_func_fork_works" >&6; }
15890
15891 else
15892 ac_cv_func_fork_works=$ac_cv_func_fork
15893 fi
15894 if test "x$ac_cv_func_fork_works" = xcross; then
15895 case $host in
15896 *-*-amigaos* | *-*-msdosdjgpp*)
15897 # Override, as these systems have only a dummy fork() stub
15898 ac_cv_func_fork_works=no
15899 ;;
15900 *)
15901 ac_cv_func_fork_works=yes
15902 ;;
15903 esac
15904 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
15905 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
15906 fi
15907 ac_cv_func_vfork_works=$ac_cv_func_vfork
15908 if test "x$ac_cv_func_vfork" = xyes; then
15909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
15910 $as_echo_n "checking for working vfork... " >&6; }
15911 if ${ac_cv_func_vfork_works+:} false; then :
15912 $as_echo_n "(cached) " >&6
15913 else
15914 if test "$cross_compiling" = yes; then :
15915 ac_cv_func_vfork_works=cross
15916 else
15917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15918 /* end confdefs.h. */
15919 /* Thanks to Paul Eggert for this test. */
15920 $ac_includes_default
15921 #include <sys/wait.h>
15922 #ifdef HAVE_VFORK_H
15923 # include <vfork.h>
15924 #endif
15925 /* On some sparc systems, changes by the child to local and incoming
15926 argument registers are propagated back to the parent. The compiler
15927 is told about this with #include <vfork.h>, but some compilers
15928 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
15929 static variable whose address is put into a register that is
15930 clobbered by the vfork. */
15931 static void
15932 #ifdef __cplusplus
15933 sparc_address_test (int arg)
15934 # else
15935 sparc_address_test (arg) int arg;
15936 #endif
15937 {
15938 static pid_t child;
15939 if (!child) {
15940 child = vfork ();
15941 if (child < 0) {
15942 perror ("vfork");
15943 _exit(2);
15944 }
15945 if (!child) {
15946 arg = getpid();
15947 write(-1, "", 0);
15948 _exit (arg);
15949 }
15950 }
15951 }
15952
15953 int
15954 main ()
15955 {
15956 pid_t parent = getpid ();
15957 pid_t child;
15958
15959 sparc_address_test (0);
15960
15961 child = vfork ();
15962
15963 if (child == 0) {
15964 /* Here is another test for sparc vfork register problems. This
15965 test uses lots of local variables, at least as many local
15966 variables as main has allocated so far including compiler
15967 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
15968 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
15969 reuse the register of parent for one of the local variables,
15970 since it will think that parent can't possibly be used any more
15971 in this routine. Assigning to the local variable will thus
15972 munge parent in the parent process. */
15973 pid_t
15974 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
15975 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
15976 /* Convince the compiler that p..p7 are live; otherwise, it might
15977 use the same hardware register for all 8 local variables. */
15978 if (p != p1 || p != p2 || p != p3 || p != p4
15979 || p != p5 || p != p6 || p != p7)
15980 _exit(1);
15981
15982 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
15983 from child file descriptors. If the child closes a descriptor
15984 before it execs or exits, this munges the parent's descriptor
15985 as well. Test for this by closing stdout in the child. */
15986 _exit(close(fileno(stdout)) != 0);
15987 } else {
15988 int status;
15989 struct stat st;
15990
15991 while (wait(&status) != child)
15992 ;
15993 return (
15994 /* Was there some problem with vforking? */
15995 child < 0
15996
15997 /* Did the child fail? (This shouldn't happen.) */
15998 || status
15999
16000 /* Did the vfork/compiler bug occur? */
16001 || parent != getpid()
16002
16003 /* Did the file descriptor bug occur? */
16004 || fstat(fileno(stdout), &st) != 0
16005 );
16006 }
16007 }
16008 _ACEOF
16009 if ac_fn_c_try_run "$LINENO"; then :
16010 ac_cv_func_vfork_works=yes
16011 else
16012 ac_cv_func_vfork_works=no
16013 fi
16014 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16015 conftest.$ac_objext conftest.beam conftest.$ac_ext
16016 fi
16017
16018 fi
16019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
16020 $as_echo "$ac_cv_func_vfork_works" >&6; }
16021
16022 fi;
16023 if test "x$ac_cv_func_fork_works" = xcross; then
16024 ac_cv_func_vfork_works=$ac_cv_func_vfork
16025 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
16026 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
16027 fi
16028
16029 if test "x$ac_cv_func_vfork_works" = xyes; then
16030
16031 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
16032
16033 else
16034
16035 $as_echo "#define vfork fork" >>confdefs.h
16036
16037 fi
16038 if test "x$ac_cv_func_fork_works" = xyes; then
16039
16040 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
16041
16042 fi
16043
16044 for ac_header in stdlib.h
16045 do :
16046 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
16047 if test "x$ac_cv_header_stdlib_h" = xyes; then :
16048 cat >>confdefs.h <<_ACEOF
16049 #define HAVE_STDLIB_H 1
16050 _ACEOF
16051
16052 fi
16053
16054 done
16055
16056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
16057 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
16058 if ${ac_cv_func_malloc_0_nonnull+:} false; then :
16059 $as_echo_n "(cached) " >&6
16060 else
16061 if test "$cross_compiling" = yes; then :
16062 ac_cv_func_malloc_0_nonnull=no
16063 else
16064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16065 /* end confdefs.h. */
16066 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
16067 # include <stdlib.h>
16068 #else
16069 char *malloc ();
16070 #endif
16071
16072 int
16073 main ()
16074 {
16075 return ! malloc (0);
16076 ;
16077 return 0;
16078 }
16079 _ACEOF
16080 if ac_fn_c_try_run "$LINENO"; then :
16081 ac_cv_func_malloc_0_nonnull=yes
16082 else
16083 ac_cv_func_malloc_0_nonnull=no
16084 fi
16085 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16086 conftest.$ac_objext conftest.beam conftest.$ac_ext
16087 fi
16088
16089 fi
16090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
16091 $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
16092 if test $ac_cv_func_malloc_0_nonnull = yes; then :
16093
16094 $as_echo "#define HAVE_MALLOC 1" >>confdefs.h
16095
16096 else
16097 $as_echo "#define HAVE_MALLOC 0" >>confdefs.h
16098
16099 case " $LIBOBJS " in
16100 *" malloc.$ac_objext "* ) ;;
16101 *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
16102 ;;
16103 esac
16104
16105
16106 $as_echo "#define malloc rpl_malloc" >>confdefs.h
16107
16108 fi
16109
16110
16111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
16112 $as_echo_n "checking for working memcmp... " >&6; }
16113 if ${ac_cv_func_memcmp_working+:} false; then :
16114 $as_echo_n "(cached) " >&6
16115 else
16116 if test "$cross_compiling" = yes; then :
16117 ac_cv_func_memcmp_working=no
16118 else
16119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16120 /* end confdefs.h. */
16121 $ac_includes_default
16122 int
16123 main ()
16124 {
16125
16126 /* Some versions of memcmp are not 8-bit clean. */
16127 char c0 = '\100', c1 = '\200', c2 = '\201';
16128 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
16129 return 1;
16130
16131 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
16132 or more and with at least one buffer not starting on a 4-byte boundary.
16133 William Lewis provided this test program. */
16134 {
16135 char foo[21];
16136 char bar[21];
16137 int i;
16138 for (i = 0; i < 4; i++)
16139 {
16140 char *a = foo + i;
16141 char *b = bar + i;
16142 strcpy (a, "--------01111111");
16143 strcpy (b, "--------10000000");
16144 if (memcmp (a, b, 16) >= 0)
16145 return 1;
16146 }
16147 return 0;
16148 }
16149
16150 ;
16151 return 0;
16152 }
16153 _ACEOF
16154 if ac_fn_c_try_run "$LINENO"; then :
16155 ac_cv_func_memcmp_working=yes
16156 else
16157 ac_cv_func_memcmp_working=no
16158 fi
16159 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16160 conftest.$ac_objext conftest.beam conftest.$ac_ext
16161 fi
16162
16163 fi
16164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
16165 $as_echo "$ac_cv_func_memcmp_working" >&6; }
16166 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
16167 *" memcmp.$ac_objext "* ) ;;
16168 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
16169 ;;
16170 esac
16171
16172
16173 for ac_header in stdlib.h
16174 do :
16175 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
16176 if test "x$ac_cv_header_stdlib_h" = xyes; then :
16177 cat >>confdefs.h <<_ACEOF
16178 #define HAVE_STDLIB_H 1
16179 _ACEOF
16180
16181 fi
16182
16183 done
16184
16185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible realloc" >&5
16186 $as_echo_n "checking for GNU libc compatible realloc... " >&6; }
16187 if ${ac_cv_func_realloc_0_nonnull+:} false; then :
16188 $as_echo_n "(cached) " >&6
16189 else
16190 if test "$cross_compiling" = yes; then :
16191 ac_cv_func_realloc_0_nonnull=no
16192 else
16193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16194 /* end confdefs.h. */
16195 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
16196 # include <stdlib.h>
16197 #else
16198 char *realloc ();
16199 #endif
16200
16201 int
16202 main ()
16203 {
16204 return ! realloc (0, 0);
16205 ;
16206 return 0;
16207 }
16208 _ACEOF
16209 if ac_fn_c_try_run "$LINENO"; then :
16210 ac_cv_func_realloc_0_nonnull=yes
16211 else
16212 ac_cv_func_realloc_0_nonnull=no
16213 fi
16214 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16215 conftest.$ac_objext conftest.beam conftest.$ac_ext
16216 fi
16217
16218 fi
16219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_realloc_0_nonnull" >&5
16220 $as_echo "$ac_cv_func_realloc_0_nonnull" >&6; }
16221 if test $ac_cv_func_realloc_0_nonnull = yes; then :
16222
16223 $as_echo "#define HAVE_REALLOC 1" >>confdefs.h
16224
16225 else
16226 $as_echo "#define HAVE_REALLOC 0" >>confdefs.h
16227
16228 case " $LIBOBJS " in
16229 *" realloc.$ac_objext "* ) ;;
16230 *) LIBOBJS="$LIBOBJS realloc.$ac_objext"
16231 ;;
16232 esac
16233
16234
16235 $as_echo "#define realloc rpl_realloc" >>confdefs.h
16236
16237 fi
16238
16239
16240 for ac_header in sys/select.h sys/socket.h
16241 do :
16242 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16243 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16244 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16245 cat >>confdefs.h <<_ACEOF
16246 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16247 _ACEOF
16248
16249 fi
16250
16251 done
16252
16253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
16254 $as_echo_n "checking types of arguments for select... " >&6; }
16255 if ${ac_cv_func_select_args+:} false; then :
16256 $as_echo_n "(cached) " >&6
16257 else
16258 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
16259 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
16260 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
16261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16262 /* end confdefs.h. */
16263 $ac_includes_default
16264 #ifdef HAVE_SYS_SELECT_H
16265 # include <sys/select.h>
16266 #endif
16267 #ifdef HAVE_SYS_SOCKET_H
16268 # include <sys/socket.h>
16269 #endif
16270
16271 int
16272 main ()
16273 {
16274 extern int select ($ac_arg1,
16275 $ac_arg234, $ac_arg234, $ac_arg234,
16276 $ac_arg5);
16277 ;
16278 return 0;
16279 }
16280 _ACEOF
16281 if ac_fn_c_try_compile "$LINENO"; then :
16282 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
16283 fi
16284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16285 done
16286 done
16287 done
16288 # Provide a safe default value.
16289 : "${ac_cv_func_select_args=int,int *,struct timeval *}"
16290
16291 fi
16292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
16293 $as_echo "$ac_cv_func_select_args" >&6; }
16294 ac_save_IFS=$IFS; IFS=','
16295 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
16296 IFS=$ac_save_IFS
16297 shift
16298
16299 cat >>confdefs.h <<_ACEOF
16300 #define SELECT_TYPE_ARG1 $1
16301 _ACEOF
16302
16303
16304 cat >>confdefs.h <<_ACEOF
16305 #define SELECT_TYPE_ARG234 ($2)
16306 _ACEOF
16307
16308
16309 cat >>confdefs.h <<_ACEOF
16310 #define SELECT_TYPE_ARG5 ($3)
16311 _ACEOF
16312
16313 rm -f conftest*
16314
16315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
16316 $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
16317 if ${ac_cv_func_lstat_dereferences_slashed_symlink+:} false; then :
16318 $as_echo_n "(cached) " >&6
16319 else
16320 rm -f conftest.sym conftest.file
16321 echo >conftest.file
16322 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
16323 if test "$cross_compiling" = yes; then :
16324 ac_cv_func_lstat_dereferences_slashed_symlink=no
16325 else
16326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16327 /* end confdefs.h. */
16328 $ac_includes_default
16329 int
16330 main ()
16331 {
16332 struct stat sbuf;
16333 /* Linux will dereference the symlink and fail, as required by POSIX.
16334 That is better in the sense that it means we will not
16335 have to compile and use the lstat wrapper. */
16336 return lstat ("conftest.sym/", &sbuf) == 0;
16337 ;
16338 return 0;
16339 }
16340 _ACEOF
16341 if ac_fn_c_try_run "$LINENO"; then :
16342 ac_cv_func_lstat_dereferences_slashed_symlink=yes
16343 else
16344 ac_cv_func_lstat_dereferences_slashed_symlink=no
16345 fi
16346 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16347 conftest.$ac_objext conftest.beam conftest.$ac_ext
16348 fi
16349
16350 else
16351 # If the `ln -s' command failed, then we probably don't even
16352 # have an lstat function.
16353 ac_cv_func_lstat_dereferences_slashed_symlink=no
16354 fi
16355 rm -f conftest.sym conftest.file
16356
16357 fi
16358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
16359 $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
16360
16361 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
16362
16363 cat >>confdefs.h <<_ACEOF
16364 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
16365 _ACEOF
16366
16367
16368 if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then
16369 case " $LIBOBJS " in
16370 *" lstat.$ac_objext "* ) ;;
16371 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
16372 ;;
16373 esac
16374
16375 fi
16376
16377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat accepts an empty string" >&5
16378 $as_echo_n "checking whether stat accepts an empty string... " >&6; }
16379 if ${ac_cv_func_stat_empty_string_bug+:} false; then :
16380 $as_echo_n "(cached) " >&6
16381 else
16382 if test "$cross_compiling" = yes; then :
16383 ac_cv_func_stat_empty_string_bug=yes
16384 else
16385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16386 /* end confdefs.h. */
16387 $ac_includes_default
16388 int
16389 main ()
16390 {
16391 struct stat sbuf;
16392 return stat ("", &sbuf) == 0;
16393 ;
16394 return 0;
16395 }
16396 _ACEOF
16397 if ac_fn_c_try_run "$LINENO"; then :
16398 ac_cv_func_stat_empty_string_bug=no
16399 else
16400 ac_cv_func_stat_empty_string_bug=yes
16401 fi
16402 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16403 conftest.$ac_objext conftest.beam conftest.$ac_ext
16404 fi
16405
16406 fi
16407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_stat_empty_string_bug" >&5
16408 $as_echo "$ac_cv_func_stat_empty_string_bug" >&6; }
16409 if test $ac_cv_func_stat_empty_string_bug = yes; then
16410 case " $LIBOBJS " in
16411 *" stat.$ac_objext "* ) ;;
16412 *) LIBOBJS="$LIBOBJS stat.$ac_objext"
16413 ;;
16414 esac
16415
16416
16417 cat >>confdefs.h <<_ACEOF
16418 #define HAVE_STAT_EMPTY_STRING_BUG 1
16419 _ACEOF
16420
16421 fi
16422
16423 for ac_func in vprintf
16424 do :
16425 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
16426 if test "x$ac_cv_func_vprintf" = xyes; then :
16427 cat >>confdefs.h <<_ACEOF
16428 #define HAVE_VPRINTF 1
16429 _ACEOF
16430
16431 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
16432 if test "x$ac_cv_func__doprnt" = xyes; then :
16433
16434 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
16435
16436 fi
16437
16438 fi
16439 done
16440
16441
16442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wait3 that fills in rusage" >&5
16443 $as_echo_n "checking for wait3 that fills in rusage... " >&6; }
16444 if ${ac_cv_func_wait3_rusage+:} false; then :
16445 $as_echo_n "(cached) " >&6
16446 else
16447 if test "$cross_compiling" = yes; then :
16448 ac_cv_func_wait3_rusage=no
16449 else
16450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16451 /* end confdefs.h. */
16452 $ac_includes_default
16453 #include <sys/time.h>
16454 #include <sys/resource.h>
16455 #include <sys/wait.h>
16456 /* HP-UX has wait3 but does not fill in rusage at all. */
16457 int
16458 main ()
16459 {
16460 struct rusage r;
16461 int i;
16462 /* Use a field that we can force nonzero --
16463 voluntary context switches.
16464 For systems like NeXT and OSF/1 that don't set it,
16465 also use the system CPU time. And page faults (I/O) for Linux. */
16466 r.ru_nvcsw = 0;
16467 r.ru_stime.tv_sec = 0;
16468 r.ru_stime.tv_usec = 0;
16469 r.ru_majflt = r.ru_minflt = 0;
16470 switch (fork ())
16471 {
16472 case 0: /* Child. */
16473 sleep(1); /* Give up the CPU. */
16474 _exit(0);
16475 break;
16476 case -1: /* What can we do? */
16477 _exit(0);
16478 break;
16479 default: /* Parent. */
16480 wait3(&i, 0, &r);
16481 /* Avoid "text file busy" from rm on fast HP-UX machines. */
16482 sleep(2);
16483 return (r.ru_nvcsw == 0 && r.ru_majflt == 0 && r.ru_minflt == 0
16484 && r.ru_stime.tv_sec == 0 && r.ru_stime.tv_usec == 0);
16485 }
16486 }
16487 _ACEOF
16488 if ac_fn_c_try_run "$LINENO"; then :
16489 ac_cv_func_wait3_rusage=yes
16490 else
16491 ac_cv_func_wait3_rusage=no
16492 fi
16493 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16494 conftest.$ac_objext conftest.beam conftest.$ac_ext
16495 fi
16496
16497 fi
16498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_wait3_rusage" >&5
16499 $as_echo "$ac_cv_func_wait3_rusage" >&6; }
16500 if test $ac_cv_func_wait3_rusage = yes; then
16501
16502 $as_echo "#define HAVE_WAIT3 1" >>confdefs.h
16503
16504 fi
16505
16506
16507 nogai="no"
16508 ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo"
16509 if test "x$ac_cv_func_getaddrinfo" = xyes; then :
16510 $as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h
16511
16512 else
16513 nogai="yes"
16514 fi
16515
16516 if test x"$nogai" = x"yes"; then :
16517
16518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo in -linet6" >&5
16519 $as_echo_n "checking for getaddrinfo in -linet6... " >&6; }
16520 if ${ac_cv_lib_inet6_getaddrinfo+:} false; then :
16521 $as_echo_n "(cached) " >&6
16522 else
16523 ac_check_lib_save_LIBS=$LIBS
16524 LIBS="-linet6 $LIBS"
16525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16526 /* end confdefs.h. */
16527
16528 /* Override any GCC internal prototype to avoid an error.
16529 Use char because int might match the return type of a GCC
16530 builtin and then its argument prototype would still apply. */
16531 #ifdef __cplusplus
16532 extern "C"
16533 #endif
16534 char getaddrinfo ();
16535 int
16536 main ()
16537 {
16538 return getaddrinfo ();
16539 ;
16540 return 0;
16541 }
16542 _ACEOF
16543 if ac_fn_c_try_link "$LINENO"; then :
16544 ac_cv_lib_inet6_getaddrinfo=yes
16545 else
16546 ac_cv_lib_inet6_getaddrinfo=no
16547 fi
16548 rm -f core conftest.err conftest.$ac_objext \
16549 conftest$ac_exeext conftest.$ac_ext
16550 LIBS=$ac_check_lib_save_LIBS
16551 fi
16552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_inet6_getaddrinfo" >&5
16553 $as_echo "$ac_cv_lib_inet6_getaddrinfo" >&6; }
16554 if test "x$ac_cv_lib_inet6_getaddrinfo" = xyes; then :
16555 LIBS="${LIBS} -linet6"; $as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h
16556
16557 fi
16558
16559
16560 fi
16561 for ac_func in inet_ntop inet_pton vsyslog gai_strerror mallinfo
16562 do :
16563 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16564 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16565 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16566 cat >>confdefs.h <<_ACEOF
16567 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16568 _ACEOF
16569
16570 fi
16571 done
16572
16573 for ac_func in getopt_long getopt
16574 do :
16575 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16576 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16577 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16578 cat >>confdefs.h <<_ACEOF
16579 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16580 _ACEOF
16581
16582 fi
16583 done
16584
16585 for ac_func in dup2 endgrent endpwent inet_ntoa memmove memset regcomp select socket strdup strerror strtol strtoul
16586 do :
16587 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16588 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16589 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16590 cat >>confdefs.h <<_ACEOF
16591 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16592 _ACEOF
16593
16594 fi
16595 done
16596
16597 ac_fn_c_check_func "$LINENO" "strdup" "ac_cv_func_strdup"
16598 if test "x$ac_cv_func_strdup" = xyes; then :
16599 $as_echo "#define HAVE_STRDUP 1" >>confdefs.h
16600
16601 else
16602 case " $LIBOBJS " in
16603 *" strdup.$ac_objext "* ) ;;
16604 *) LIBOBJS="$LIBOBJS strdup.$ac_objext"
16605 ;;
16606 esac
16607
16608 fi
16609
16610 ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
16611 if test "x$ac_cv_func_snprintf" = xyes; then :
16612 $as_echo "#define HAVE_SNPRINTF 1" >>confdefs.h
16613
16614 else
16615 case " $LIBOBJS " in
16616 *" snprintf.$ac_objext "* ) ;;
16617 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
16618 ;;
16619 esac
16620
16621 fi
16622
16623 ac_fn_c_check_func "$LINENO" "vsnprintf" "ac_cv_func_vsnprintf"
16624 if test "x$ac_cv_func_vsnprintf" = xyes; then :
16625 $as_echo "#define HAVE_VSNPRINTF 1" >>confdefs.h
16626
16627 else
16628 case " $LIBOBJS " in
16629 *" vsnprintf.$ac_objext "* ) ;;
16630 *) LIBOBJS="$LIBOBJS vsnprintf.$ac_objext"
16631 ;;
16632 esac
16633
16634 fi
16635
16636
16637
16638 havesin6=no
16639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct sockaddr_in6 in <netinet/in.h>" >&5
16640 $as_echo_n "checking for struct sockaddr_in6 in <netinet/in.h>... " >&6; }
16641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16642 /* end confdefs.h. */
16643 #include <netinet/in.h>
16644
16645 _ACEOF
16646 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16647 $EGREP "sockaddr_in6" >/dev/null 2>&1; then :
16648 havesin6=yes; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16649 $as_echo "yes" >&6; }
16650 else
16651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16652 $as_echo "no" >&6; }
16653 fi
16654 rm -f conftest*
16655
16656
16657 if test x"$havesin6" = x"yes"; then :
16658
16659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ${CC} is lying through its teeth" >&5
16660 $as_echo_n "checking if ${CC} is lying through its teeth... " >&6; }
16661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16662 /* end confdefs.h. */
16663 #include <netinet/in.h>
16664 int
16665 main ()
16666 {
16667 struct sockaddr_in6 sin
16668 ;
16669 return 0;
16670 }
16671 _ACEOF
16672 if ac_fn_c_try_compile "$LINENO"; then :
16673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16674 $as_echo "no" >&6; }
16675
16676 $as_echo "#define HAVE_SOCKADDR_IN6 1" >>confdefs.h
16677
16678
16679 else
16680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16681 $as_echo "yes" >&6; }
16682 fi
16683 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16684
16685 fi
16686
16687 # Check whether --enable-largefile was given.
16688 if test "${enable_largefile+set}" = set; then :
16689 enableval=$enable_largefile;
16690 fi
16691
16692 if test "$enable_largefile" != no; then
16693
16694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
16695 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
16696 if ${ac_cv_sys_largefile_CC+:} false; then :
16697 $as_echo_n "(cached) " >&6
16698 else
16699 ac_cv_sys_largefile_CC=no
16700 if test "$GCC" != yes; then
16701 ac_save_CC=$CC
16702 while :; do
16703 # IRIX 6.2 and later do not support large files by default,
16704 # so use the C compiler's -n32 option if that helps.
16705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16706 /* end confdefs.h. */
16707 #include <sys/types.h>
16708 /* Check that off_t can represent 2**63 - 1 correctly.
16709 We can't simply define LARGE_OFF_T to be 9223372036854775807,
16710 since some C++ compilers masquerading as C compilers
16711 incorrectly reject 9223372036854775807. */
16712 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
16713 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
16714 && LARGE_OFF_T % 2147483647 == 1)
16715 ? 1 : -1];
16716 int
16717 main ()
16718 {
16719
16720 ;
16721 return 0;
16722 }
16723 _ACEOF
16724 if ac_fn_c_try_compile "$LINENO"; then :
16725 break
16726 fi
16727 rm -f core conftest.err conftest.$ac_objext
16728 CC="$CC -n32"
16729 if ac_fn_c_try_compile "$LINENO"; then :
16730 ac_cv_sys_largefile_CC=' -n32'; break
16731 fi
16732 rm -f core conftest.err conftest.$ac_objext
16733 break
16734 done
16735 CC=$ac_save_CC
16736 rm -f conftest.$ac_ext
16737 fi
16738 fi
16739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
16740 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
16741 if test "$ac_cv_sys_largefile_CC" != no; then
16742 CC=$CC$ac_cv_sys_largefile_CC
16743 fi
16744
16745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
16746 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
16747 if ${ac_cv_sys_file_offset_bits+:} false; then :
16748 $as_echo_n "(cached) " >&6
16749 else
16750 while :; do
16751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16752 /* end confdefs.h. */
16753 #include <sys/types.h>
16754 /* Check that off_t can represent 2**63 - 1 correctly.
16755 We can't simply define LARGE_OFF_T to be 9223372036854775807,
16756 since some C++ compilers masquerading as C compilers
16757 incorrectly reject 9223372036854775807. */
16758 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
16759 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
16760 && LARGE_OFF_T % 2147483647 == 1)
16761 ? 1 : -1];
16762 int
16763 main ()
16764 {
16765
16766 ;
16767 return 0;
16768 }
16769 _ACEOF
16770 if ac_fn_c_try_compile "$LINENO"; then :
16771 ac_cv_sys_file_offset_bits=no; break
16772 fi
16773 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16775 /* end confdefs.h. */
16776 #define _FILE_OFFSET_BITS 64
16777 #include <sys/types.h>
16778 /* Check that off_t can represent 2**63 - 1 correctly.
16779 We can't simply define LARGE_OFF_T to be 9223372036854775807,
16780 since some C++ compilers masquerading as C compilers
16781 incorrectly reject 9223372036854775807. */
16782 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
16783 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
16784 && LARGE_OFF_T % 2147483647 == 1)
16785 ? 1 : -1];
16786 int
16787 main ()
16788 {
16789
16790 ;
16791 return 0;
16792 }
16793 _ACEOF
16794 if ac_fn_c_try_compile "$LINENO"; then :
16795 ac_cv_sys_file_offset_bits=64; break
16796 fi
16797 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16798 ac_cv_sys_file_offset_bits=unknown
16799 break
16800 done
16801 fi
16802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
16803 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
16804 case $ac_cv_sys_file_offset_bits in #(
16805 no | unknown) ;;
16806 *)
16807 cat >>confdefs.h <<_ACEOF
16808 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
16809 _ACEOF
16810 ;;
16811 esac
16812 rm -rf conftest*
16813 if test $ac_cv_sys_file_offset_bits = unknown; then
16814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
16815 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
16816 if ${ac_cv_sys_large_files+:} false; then :
16817 $as_echo_n "(cached) " >&6
16818 else
16819 while :; do
16820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16821 /* end confdefs.h. */
16822 #include <sys/types.h>
16823 /* Check that off_t can represent 2**63 - 1 correctly.
16824 We can't simply define LARGE_OFF_T to be 9223372036854775807,
16825 since some C++ compilers masquerading as C compilers
16826 incorrectly reject 9223372036854775807. */
16827 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
16828 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
16829 && LARGE_OFF_T % 2147483647 == 1)
16830 ? 1 : -1];
16831 int
16832 main ()
16833 {
16834
16835 ;
16836 return 0;
16837 }
16838 _ACEOF
16839 if ac_fn_c_try_compile "$LINENO"; then :
16840 ac_cv_sys_large_files=no; break
16841 fi
16842 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16844 /* end confdefs.h. */
16845 #define _LARGE_FILES 1
16846 #include <sys/types.h>
16847 /* Check that off_t can represent 2**63 - 1 correctly.
16848 We can't simply define LARGE_OFF_T to be 9223372036854775807,
16849 since some C++ compilers masquerading as C compilers
16850 incorrectly reject 9223372036854775807. */
16851 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
16852 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
16853 && LARGE_OFF_T % 2147483647 == 1)
16854 ? 1 : -1];
16855 int
16856 main ()
16857 {
16858
16859 ;
16860 return 0;
16861 }
16862 _ACEOF
16863 if ac_fn_c_try_compile "$LINENO"; then :
16864 ac_cv_sys_large_files=1; break
16865 fi
16866 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16867 ac_cv_sys_large_files=unknown
16868 break
16869 done
16870 fi
16871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
16872 $as_echo "$ac_cv_sys_large_files" >&6; }
16873 case $ac_cv_sys_large_files in #(
16874 no | unknown) ;;
16875 *)
16876 cat >>confdefs.h <<_ACEOF
16877 #define _LARGE_FILES $ac_cv_sys_large_files
16878 _ACEOF
16879 ;;
16880 esac
16881 rm -rf conftest*
16882 fi
16883
16884
16885 fi
16886
16887
16888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
16889 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
16890 # Check whether --enable-maintainer-mode was given.
16891 if test "${enable_maintainer_mode+set}" = set; then :
16892 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
16893 else
16894 USE_MAINTAINER_MODE=no
16895 fi
16896
16897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
16898 $as_echo "$USE_MAINTAINER_MODE" >&6; }
16899 if test $USE_MAINTAINER_MODE = yes; then
16900 MAINTAINER_MODE_TRUE=
16901 MAINTAINER_MODE_FALSE='#'
16902 else
16903 MAINTAINER_MODE_TRUE='#'
16904 MAINTAINER_MODE_FALSE=
16905 fi
16906
16907 MAINT=$MAINTAINER_MODE_TRUE
16908
16909
16910
16911
16912
16913 # Extract the first word of "perl", so it can be a program name with args.
16914 set dummy perl; ac_word=$2
16915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16916 $as_echo_n "checking for $ac_word... " >&6; }
16917 if ${ac_cv_path_perlpath+:} false; then :
16918 $as_echo_n "(cached) " >&6
16919 else
16920 case $perlpath in
16921 [\\/]* | ?:[\\/]*)
16922 ac_cv_path_perlpath="$perlpath" # Let the user override the test with a path.
16923 ;;
16924 *)
16925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16926 for as_dir in $PATH
16927 do
16928 IFS=$as_save_IFS
16929 test -z "$as_dir" && as_dir=.
16930 for ac_exec_ext in '' $ac_executable_extensions; do
16931 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16932 ac_cv_path_perlpath="$as_dir/$ac_word$ac_exec_ext"
16933 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16934 break 2
16935 fi
16936 done
16937 done
16938 IFS=$as_save_IFS
16939
16940 test -z "$ac_cv_path_perlpath" && ac_cv_path_perlpath="/usr/bin/perl"
16941 ;;
16942 esac
16943 fi
16944 perlpath=$ac_cv_path_perlpath
16945 if test -n "$perlpath"; then
16946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $perlpath" >&5
16947 $as_echo "$perlpath" >&6; }
16948 else
16949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16950 $as_echo "no" >&6; }
16951 fi
16952
16953
16954 # Extract the first word of "po4a", so it can be a program name with args.
16955 set dummy po4a; ac_word=$2
16956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16957 $as_echo_n "checking for $ac_word... " >&6; }
16958 if ${ac_cv_path_po4apath+:} false; then :
16959 $as_echo_n "(cached) " >&6
16960 else
16961 case $po4apath in
16962 [\\/]* | ?:[\\/]*)
16963 ac_cv_path_po4apath="$po4apath" # Let the user override the test with a path.
16964 ;;
16965 *)
16966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16967 for as_dir in $PATH
16968 do
16969 IFS=$as_save_IFS
16970 test -z "$as_dir" && as_dir=.
16971 for ac_exec_ext in '' $ac_executable_extensions; do
16972 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16973 ac_cv_path_po4apath="$as_dir/$ac_word$ac_exec_ext"
16974 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16975 break 2
16976 fi
16977 done
16978 done
16979 IFS=$as_save_IFS
16980
16981 ;;
16982 esac
16983 fi
16984 po4apath=$ac_cv_path_po4apath
16985 if test -n "$po4apath"; then
16986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $po4apath" >&5
16987 $as_echo "$po4apath" >&6; }
16988 else
16989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16990 $as_echo "no" >&6; }
16991 fi
16992
16993
16994
16995
16996 { $as_echo "$as_me:${as_lineno-$LINENO}: Found CC = \"$CC\"" >&5
16997 $as_echo "$as_me: Found CC = \"$CC\"" >&6;}
16998 { $as_echo "$as_me:${as_lineno-$LINENO}: Found CFLAGS = \"$CFLAGS\"" >&5
16999 $as_echo "$as_me: Found CFLAGS = \"$CFLAGS\"" >&6;}
17000 { $as_echo "$as_me:${as_lineno-$LINENO}: Found CPP = \"$CPP\"" >&5
17001 $as_echo "$as_me: Found CPP = \"$CPP\"" >&6;}
17002 { $as_echo "$as_me:${as_lineno-$LINENO}: Found CPPFLAGS = \"$CPPFLAGS\"" >&5
17003 $as_echo "$as_me: Found CPPFLAGS = \"$CPPFLAGS\"" >&6;}
17004 { $as_echo "$as_me:${as_lineno-$LINENO}: Found LDFLAGS = \"$LDFLAGS\"" >&5
17005 $as_echo "$as_me: Found LDFLAGS = \"$LDFLAGS\"" >&6;}
17006 { $as_echo "$as_me:${as_lineno-$LINENO}: Found LEX = \"$LEX\"" >&5
17007 $as_echo "$as_me: Found LEX = \"$LEX\"" >&6;}
17008 { $as_echo "$as_me:${as_lineno-$LINENO}: Found LIBS = \"$LIBS\"" >&5
17009 $as_echo "$as_me: Found LIBS = \"$LIBS\"" >&6;}
17010 { $as_echo "$as_me:${as_lineno-$LINENO}: Found YACC = \"$YACC\"" >&5
17011 $as_echo "$as_me: Found YACC = \"$YACC\"" >&6;}
17012
17013
17014 ac_config_files="$ac_config_files Makefile examples/Makefile src/Makefile po/Makefile.in port/Makefile scripts/Makefile man/Makefile"
17015
17016 cat >confcache <<\_ACEOF
17017 # This file is a shell script that caches the results of configure
17018 # tests run on this system so they can be shared between configure
17019 # scripts and configure runs, see configure's option --config-cache.
17020 # It is not useful on other systems. If it contains results you don't
17021 # want to keep, you may remove or edit it.
17022 #
17023 # config.status only pays attention to the cache file if you give it
17024 # the --recheck option to rerun configure.
17025 #
17026 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17027 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17028 # following values.
17029
17030 _ACEOF
17031
17032 # The following way of writing the cache mishandles newlines in values,
17033 # but we know of no workaround that is simple, portable, and efficient.
17034 # So, we kill variables containing newlines.
17035 # Ultrix sh set writes to stderr and can't be redirected directly,
17036 # and sets the high bit in the cache file unless we assign to the vars.
17037 (
17038 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17039 eval ac_val=\$$ac_var
17040 case $ac_val in #(
17041 *${as_nl}*)
17042 case $ac_var in #(
17043 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
17044 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17045 esac
17046 case $ac_var in #(
17047 _ | IFS | as_nl) ;; #(
17048 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17049 *) { eval $ac_var=; unset $ac_var;} ;;
17050 esac ;;
17051 esac
17052 done
17053
17054 (set) 2>&1 |
17055 case $as_nl`(ac_space=' '; set) 2>&1` in #(
17056 *${as_nl}ac_space=\ *)
17057 # `set' does not quote correctly, so add quotes: double-quote
17058 # substitution turns \\\\ into \\, and sed turns \\ into \.
17059 sed -n \
17060 "s/'/'\\\\''/g;
17061 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17062 ;; #(
17063 *)
17064 # `set' quotes correctly as required by POSIX, so do not add quotes.
17065 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17066 ;;
17067 esac |
17068 sort
17069 ) |
17070 sed '
17071 /^ac_cv_env_/b end
17072 t clear
17073 :clear
17074 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17075 t end
17076 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17077 :end' >>confcache
17078 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17079 if test -w "$cache_file"; then
17080 if test "x$cache_file" != "x/dev/null"; then
17081 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
17082 $as_echo "$as_me: updating cache $cache_file" >&6;}
17083 if test ! -f "$cache_file" || test -h "$cache_file"; then
17084 cat confcache >"$cache_file"
17085 else
17086 case $cache_file in #(
17087 */* | ?:*)
17088 mv -f confcache "$cache_file"$$ &&
17089 mv -f "$cache_file"$$ "$cache_file" ;; #(
17090 *)
17091 mv -f confcache "$cache_file" ;;
17092 esac
17093 fi
17094 fi
17095 else
17096 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17097 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17098 fi
17099 fi
17100 rm -f confcache
17101
17102 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17103 # Let make expand exec_prefix.
17104 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17105
17106 DEFS=-DHAVE_CONFIG_H
17107
17108 ac_libobjs=
17109 ac_ltlibobjs=
17110 U=
17111 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17112 # 1. Remove the extension, and $U if already installed.
17113 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
17114 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
17115 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
17116 # will be set to the directory where LIBOBJS objects are built.
17117 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17118 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
17119 done
17120 LIBOBJS=$ac_libobjs
17121
17122 LTLIBOBJS=$ac_ltlibobjs
17123
17124
17125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
17126 $as_echo_n "checking that generated files are newer than configure... " >&6; }
17127 if test -n "$am_sleep_pid"; then
17128 # Hide warnings about reused PIDs.
17129 wait $am_sleep_pid 2>/dev/null
17130 fi
17131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
17132 $as_echo "done" >&6; }
17133 if test -n "$EXEEXT"; then
17134 am__EXEEXT_TRUE=
17135 am__EXEEXT_FALSE='#'
17136 else
17137 am__EXEEXT_TRUE='#'
17138 am__EXEEXT_FALSE=
17139 fi
17140
17141 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
17142 as_fn_error $? "conditional \"AMDEP\" was never defined.
17143 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17144 fi
17145 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17146 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
17147 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17148 fi
17149 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17150 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
17151 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17152 fi
17153 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
17154 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
17155 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17156 fi
17157
17158 : "${CONFIG_STATUS=./config.status}"
17159 ac_write_fail=0
17160 ac_clean_files_save=$ac_clean_files
17161 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17162 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17163 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17164 as_write_fail=0
17165 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
17166 #! $SHELL
17167 # Generated by $as_me.
17168 # Run this file to recreate the current configuration.
17169 # Compiler output produced by configure, useful for debugging
17170 # configure, is in config.log if it exists.
17171
17172 debug=false
17173 ac_cs_recheck=false
17174 ac_cs_silent=false
17175
17176 SHELL=\${CONFIG_SHELL-$SHELL}
17177 export SHELL
17178 _ASEOF
17179 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
17180 ## -------------------- ##
17181 ## M4sh Initialization. ##
17182 ## -------------------- ##
17183
17184 # Be more Bourne compatible
17185 DUALCASE=1; export DUALCASE # for MKS sh
17186 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
17187 emulate sh
17188 NULLCMD=:
17189 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17190 # is contrary to our usage. Disable this feature.
17191 alias -g '${1+"$@"}'='"$@"'
17192 setopt NO_GLOB_SUBST
17193 else
17194 case `(set -o) 2>/dev/null` in #(
17195 *posix*) :
17196 set -o posix ;; #(
17197 *) :
17198 ;;
17199 esac
17200 fi
17201
17202
17203 as_nl='
17204 '
17205 export as_nl
17206 # Printing a long string crashes Solaris 7 /usr/bin/printf.
17207 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17208 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17209 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17210 # Prefer a ksh shell builtin over an external printf program on Solaris,
17211 # but without wasting forks for bash or zsh.
17212 if test -z "$BASH_VERSION$ZSH_VERSION" \
17213 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
17214 as_echo='print -r --'
17215 as_echo_n='print -rn --'
17216 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17217 as_echo='printf %s\n'
17218 as_echo_n='printf %s'
17219 else
17220 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17221 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
17222 as_echo_n='/usr/ucb/echo -n'
17223 else
17224 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17225 as_echo_n_body='eval
17226 arg=$1;
17227 case $arg in #(
17228 *"$as_nl"*)
17229 expr "X$arg" : "X\\(.*\\)$as_nl";
17230 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17231 esac;
17232 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
17233 '
17234 export as_echo_n_body
17235 as_echo_n='sh -c $as_echo_n_body as_echo'
17236 fi
17237 export as_echo_body
17238 as_echo='sh -c $as_echo_body as_echo'
17239 fi
17240
17241 # The user is always right.
17242 if test "${PATH_SEPARATOR+set}" != set; then
17243 PATH_SEPARATOR=:
17244 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17245 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17246 PATH_SEPARATOR=';'
17247 }
17248 fi
17249
17250
17251 # IFS
17252 # We need space, tab and new line, in precisely that order. Quoting is
17253 # there to prevent editors from complaining about space-tab.
17254 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
17255 # splitting by setting IFS to empty value.)
17256 IFS=" "" $as_nl"
17257
17258 # Find who we are. Look in the path if we contain no directory separator.
17259 as_myself=
17260 case $0 in #((
17261 *[\\/]* ) as_myself=$0 ;;
17262 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17263 for as_dir in $PATH
17264 do
17265 IFS=$as_save_IFS
17266 test -z "$as_dir" && as_dir=.
17267 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17268 done
17269 IFS=$as_save_IFS
17270
17271 ;;
17272 esac
17273 # We did not find ourselves, most probably we were run as `sh COMMAND'
17274 # in which case we are not to be found in the path.
17275 if test "x$as_myself" = x; then
17276 as_myself=$0
17277 fi
17278 if test ! -f "$as_myself"; then
17279 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17280 exit 1
17281 fi
17282
17283 # Unset variables that we do not need and which cause bugs (e.g. in
17284 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
17285 # suppresses any "Segmentation fault" message there. '((' could
17286 # trigger a bug in pdksh 5.2.14.
17287 for as_var in BASH_ENV ENV MAIL MAILPATH
17288 do eval test x\${$as_var+set} = xset \
17289 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
17290 done
17291 PS1='$ '
17292 PS2='> '
17293 PS4='+ '
17294
17295 # NLS nuisances.
17296 LC_ALL=C
17297 export LC_ALL
17298 LANGUAGE=C
17299 export LANGUAGE
17300
17301 # CDPATH.
17302 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17303
17304
17305 # as_fn_error STATUS ERROR [LINENO LOG_FD]
17306 # ----------------------------------------
17307 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17308 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17309 # script with STATUS, using 1 if that was 0.
17310 as_fn_error ()
17311 {
17312 as_status=$1; test $as_status -eq 0 && as_status=1
17313 if test "$4"; then
17314 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17315 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
17316 fi
17317 $as_echo "$as_me: error: $2" >&2
17318 as_fn_exit $as_status
17319 } # as_fn_error
17320
17321
17322 # as_fn_set_status STATUS
17323 # -----------------------
17324 # Set $? to STATUS, without forking.
17325 as_fn_set_status ()
17326 {
17327 return $1
17328 } # as_fn_set_status
17329
17330 # as_fn_exit STATUS
17331 # -----------------
17332 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17333 as_fn_exit ()
17334 {
17335 set +e
17336 as_fn_set_status $1
17337 exit $1
17338 } # as_fn_exit
17339
17340 # as_fn_unset VAR
17341 # ---------------
17342 # Portably unset VAR.
17343 as_fn_unset ()
17344 {
17345 { eval $1=; unset $1;}
17346 }
17347 as_unset=as_fn_unset
17348 # as_fn_append VAR VALUE
17349 # ----------------------
17350 # Append the text in VALUE to the end of the definition contained in VAR. Take
17351 # advantage of any shell optimizations that allow amortized linear growth over
17352 # repeated appends, instead of the typical quadratic growth present in naive
17353 # implementations.
17354 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
17355 eval 'as_fn_append ()
17356 {
17357 eval $1+=\$2
17358 }'
17359 else
17360 as_fn_append ()
17361 {
17362 eval $1=\$$1\$2
17363 }
17364 fi # as_fn_append
17365
17366 # as_fn_arith ARG...
17367 # ------------------
17368 # Perform arithmetic evaluation on the ARGs, and store the result in the
17369 # global $as_val. Take advantage of shells that can avoid forks. The arguments
17370 # must be portable across $(()) and expr.
17371 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
17372 eval 'as_fn_arith ()
17373 {
17374 as_val=$(( $* ))
17375 }'
17376 else
17377 as_fn_arith ()
17378 {
17379 as_val=`expr "$@" || test $? -eq 1`
17380 }
17381 fi # as_fn_arith
17382
17383
17384 if expr a : '\(a\)' >/dev/null 2>&1 &&
17385 test "X`expr 00001 : '.*\(...\)'`" = X001; then
17386 as_expr=expr
17387 else
17388 as_expr=false
17389 fi
17390
17391 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17392 as_basename=basename
17393 else
17394 as_basename=false
17395 fi
17396
17397 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17398 as_dirname=dirname
17399 else
17400 as_dirname=false
17401 fi
17402
17403 as_me=`$as_basename -- "$0" ||
17404 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17405 X"$0" : 'X\(//\)$' \| \
17406 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17407 $as_echo X/"$0" |
17408 sed '/^.*\/\([^/][^/]*\)\/*$/{
17409 s//\1/
17410 q
17411 }
17412 /^X\/\(\/\/\)$/{
17413 s//\1/
17414 q
17415 }
17416 /^X\/\(\/\).*/{
17417 s//\1/
17418 q
17419 }
17420 s/.*/./; q'`
17421
17422 # Avoid depending upon Character Ranges.
17423 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17424 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17425 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17426 as_cr_digits='0123456789'
17427 as_cr_alnum=$as_cr_Letters$as_cr_digits
17428
17429 ECHO_C= ECHO_N= ECHO_T=
17430 case `echo -n x` in #(((((
17431 -n*)
17432 case `echo 'xy\c'` in
17433 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
17434 xy) ECHO_C='\c';;
17435 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
17436 ECHO_T=' ';;
17437 esac;;
17438 *)
17439 ECHO_N='-n';;
17440 esac
17441
17442 rm -f conf$$ conf$$.exe conf$$.file
17443 if test -d conf$$.dir; then
17444 rm -f conf$$.dir/conf$$.file
17445 else
17446 rm -f conf$$.dir
17447 mkdir conf$$.dir 2>/dev/null
17448 fi
17449 if (echo >conf$$.file) 2>/dev/null; then
17450 if ln -s conf$$.file conf$$ 2>/dev/null; then
17451 as_ln_s='ln -s'
17452 # ... but there are two gotchas:
17453 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17454 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17455 # In both cases, we have to default to `cp -pR'.
17456 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17457 as_ln_s='cp -pR'
17458 elif ln conf$$.file conf$$ 2>/dev/null; then
17459 as_ln_s=ln
17460 else
17461 as_ln_s='cp -pR'
17462 fi
17463 else
17464 as_ln_s='cp -pR'
17465 fi
17466 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17467 rmdir conf$$.dir 2>/dev/null
17468
17469
17470 # as_fn_mkdir_p
17471 # -------------
17472 # Create "$as_dir" as a directory, including parents if necessary.
17473 as_fn_mkdir_p ()
17474 {
17475
17476 case $as_dir in #(
17477 -*) as_dir=./$as_dir;;
17478 esac
17479 test -d "$as_dir" || eval $as_mkdir_p || {
17480 as_dirs=
17481 while :; do
17482 case $as_dir in #(
17483 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17484 *) as_qdir=$as_dir;;
17485 esac
17486 as_dirs="'$as_qdir' $as_dirs"
17487 as_dir=`$as_dirname -- "$as_dir" ||
17488 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17489 X"$as_dir" : 'X\(//\)[^/]' \| \
17490 X"$as_dir" : 'X\(//\)$' \| \
17491 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17492 $as_echo X"$as_dir" |
17493 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17494 s//\1/
17495 q
17496 }
17497 /^X\(\/\/\)[^/].*/{
17498 s//\1/
17499 q
17500 }
17501 /^X\(\/\/\)$/{
17502 s//\1/
17503 q
17504 }
17505 /^X\(\/\).*/{
17506 s//\1/
17507 q
17508 }
17509 s/.*/./; q'`
17510 test -d "$as_dir" && break
17511 done
17512 test -z "$as_dirs" || eval "mkdir $as_dirs"
17513 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
17514
17515
17516 } # as_fn_mkdir_p
17517 if mkdir -p . 2>/dev/null; then
17518 as_mkdir_p='mkdir -p "$as_dir"'
17519 else
17520 test -d ./-p && rmdir ./-p
17521 as_mkdir_p=false
17522 fi
17523
17524
17525 # as_fn_executable_p FILE
17526 # -----------------------
17527 # Test if FILE is an executable regular file.
17528 as_fn_executable_p ()
17529 {
17530 test -f "$1" && test -x "$1"
17531 } # as_fn_executable_p
17532 as_test_x='test -x'
17533 as_executable_p=as_fn_executable_p
17534
17535 # Sed expression to map a string onto a valid CPP name.
17536 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17537
17538 # Sed expression to map a string onto a valid variable name.
17539 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17540
17541
17542 exec 6>&1
17543 ## ----------------------------------- ##
17544 ## Main body of $CONFIG_STATUS script. ##
17545 ## ----------------------------------- ##
17546 _ASEOF
17547 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17548
17549 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17550 # Save the log message, to keep $0 and so on meaningful, and to
17551 # report actual input values of CONFIG_FILES etc. instead of their
17552 # values after options handling.
17553 ac_log="
17554 This file was extended by rlinetd $as_me 0.9.3, which was
17555 generated by GNU Autoconf 2.69. Invocation command line was
17556
17557 CONFIG_FILES = $CONFIG_FILES
17558 CONFIG_HEADERS = $CONFIG_HEADERS
17559 CONFIG_LINKS = $CONFIG_LINKS
17560 CONFIG_COMMANDS = $CONFIG_COMMANDS
17561 $ $0 $@
17562
17563 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17564 "
17565
17566 _ACEOF
17567
17568 case $ac_config_files in *"
17569 "*) set x $ac_config_files; shift; ac_config_files=$*;;
17570 esac
17571
17572 case $ac_config_headers in *"
17573 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17574 esac
17575
17576
17577 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17578 # Files that config.status was made for.
17579 config_files="$ac_config_files"
17580 config_headers="$ac_config_headers"
17581 config_commands="$ac_config_commands"
17582
17583 _ACEOF
17584
17585 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17586 ac_cs_usage="\
17587 \`$as_me' instantiates files and other configuration actions
17588 from templates according to the current configuration. Unless the files
17589 and actions are specified as TAGs, all are instantiated by default.
17590
17591 Usage: $0 [OPTION]... [TAG]...
17592
17593 -h, --help print this help, then exit
17594 -V, --version print version number and configuration settings, then exit
17595 --config print configuration, then exit
17596 -q, --quiet, --silent
17597 do not print progress messages
17598 -d, --debug don't remove temporary files
17599 --recheck update $as_me by reconfiguring in the same conditions
17600 --file=FILE[:TEMPLATE]
17601 instantiate the configuration file FILE
17602 --header=FILE[:TEMPLATE]
17603 instantiate the configuration header FILE
17604
17605 Configuration files:
17606 $config_files
17607
17608 Configuration headers:
17609 $config_headers
17610
17611 Configuration commands:
17612 $config_commands
17613
17614 Report bugs to <[email protected]>."
17615
17616 _ACEOF
17617 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17618 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
17619 ac_cs_version="\\
17620 rlinetd config.status 0.9.3
17621 configured by $0, generated by GNU Autoconf 2.69,
17622 with options \\"\$ac_cs_config\\"
17623
17624 Copyright (C) 2012 Free Software Foundation, Inc.
17625 This config.status script is free software; the Free Software Foundation
17626 gives unlimited permission to copy, distribute and modify it."
17627
17628 ac_pwd='$ac_pwd'
17629 srcdir='$srcdir'
17630 INSTALL='$INSTALL'
17631 MKDIR_P='$MKDIR_P'
17632 AWK='$AWK'
17633 test -n "\$AWK" || AWK=awk
17634 _ACEOF
17635
17636 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17637 # The default lists apply if the user does not specify any file.
17638 ac_need_defaults=:
17639 while test $# != 0
17640 do
17641 case $1 in
17642 --*=?*)
17643 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17644 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17645 ac_shift=:
17646 ;;
17647 --*=)
17648 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17649 ac_optarg=
17650 ac_shift=:
17651 ;;
17652 *)
17653 ac_option=$1
17654 ac_optarg=$2
17655 ac_shift=shift
17656 ;;
17657 esac
17658
17659 case $ac_option in
17660 # Handling of the options.
17661 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17662 ac_cs_recheck=: ;;
17663 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17664 $as_echo "$ac_cs_version"; exit ;;
17665 --config | --confi | --conf | --con | --co | --c )
17666 $as_echo "$ac_cs_config"; exit ;;
17667 --debug | --debu | --deb | --de | --d | -d )
17668 debug=: ;;
17669 --file | --fil | --fi | --f )
17670 $ac_shift
17671 case $ac_optarg in
17672 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17673 '') as_fn_error $? "missing file argument" ;;
17674 esac
17675 as_fn_append CONFIG_FILES " '$ac_optarg'"
17676 ac_need_defaults=false;;
17677 --header | --heade | --head | --hea )
17678 $ac_shift
17679 case $ac_optarg in
17680 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17681 esac
17682 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
17683 ac_need_defaults=false;;
17684 --he | --h)
17685 # Conflict between --help and --header
17686 as_fn_error $? "ambiguous option: \`$1'
17687 Try \`$0 --help' for more information.";;
17688 --help | --hel | -h )
17689 $as_echo "$ac_cs_usage"; exit ;;
17690 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17691 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17692 ac_cs_silent=: ;;
17693
17694 # This is an error.
17695 -*) as_fn_error $? "unrecognized option: \`$1'
17696 Try \`$0 --help' for more information." ;;
17697
17698 *) as_fn_append ac_config_targets " $1"
17699 ac_need_defaults=false ;;
17700
17701 esac
17702 shift
17703 done
17704
17705 ac_configure_extra_args=
17706
17707 if $ac_cs_silent; then
17708 exec 6>/dev/null
17709 ac_configure_extra_args="$ac_configure_extra_args --silent"
17710 fi
17711
17712 _ACEOF
17713 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17714 if \$ac_cs_recheck; then
17715 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17716 shift
17717 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17718 CONFIG_SHELL='$SHELL'
17719 export CONFIG_SHELL
17720 exec "\$@"
17721 fi
17722
17723 _ACEOF
17724 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17725 exec 5>>config.log
17726 {
17727 echo
17728 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17729 ## Running $as_me. ##
17730 _ASBOX
17731 $as_echo "$ac_log"
17732 } >&5
17733
17734 _ACEOF
17735 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17736 #
17737 # INIT-COMMANDS
17738 #
17739 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
17740 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
17741 # from automake < 1.5.
17742 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
17743 # Capture the value of LINGUAS because we need it to compute CATALOGS.
17744 LINGUAS="${LINGUAS-%UNSET%}"
17745
17746 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
17747
17748
17749 # The HP-UX ksh and POSIX shell print the target directory to stdout
17750 # if CDPATH is set.
17751 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17752
17753 sed_quote_subst='$sed_quote_subst'
17754 double_quote_subst='$double_quote_subst'
17755 delay_variable_subst='$delay_variable_subst'
17756 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
17757 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
17758 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
17759 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
17760 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
17761 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
17762 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
17763 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
17764 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
17765 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
17766 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
17767 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
17768 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
17769 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
17770 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
17771 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
17772 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
17773 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
17774 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
17775 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
17776 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
17777 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
17778 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
17779 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
17780 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
17781 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
17782 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
17783 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
17784 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
17785 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
17786 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
17787 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
17788 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
17789 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
17790 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
17791 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
17792 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
17793 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
17794 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
17795 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
17796 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
17797 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
17798 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
17799 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
17800 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
17801 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
17802 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17803 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17804 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
17805 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
17806 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
17807 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
17808 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
17809 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
17810 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
17811 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
17812 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
17813 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
17814 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"`'
17815 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
17816 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
17817 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
17818 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
17819 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
17820 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
17821 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
17822 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
17823 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
17824 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
17825 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
17826 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
17827 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
17828 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
17829 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
17830 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
17831 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
17832 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
17833 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
17834 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
17835 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17836 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
17837 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
17838 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
17839 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
17840 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
17841 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
17842 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17843 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
17844 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17845 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
17846 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17847 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
17848 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
17849 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
17850 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
17851 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
17852 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
17853 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
17854 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
17855 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
17856 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
17857 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
17858 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
17859 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
17860 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
17861 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
17862 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
17863 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
17864 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
17865 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
17866 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
17867 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
17868 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
17869 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
17870 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
17871 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
17872 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
17873 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
17874 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
17875 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
17876 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
17877 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17878 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17879 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
17880 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
17881 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
17882 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
17883 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
17884 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
17885 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
17886 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
17887 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
17888 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
17889 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
17890 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
17891
17892 LTCC='$LTCC'
17893 LTCFLAGS='$LTCFLAGS'
17894 compiler='$compiler_DEFAULT'
17895
17896 # A function that is used when there is no print builtin or printf.
17897 func_fallback_echo ()
17898 {
17899 eval 'cat <<_LTECHO_EOF
17900 \$1
17901 _LTECHO_EOF'
17902 }
17903
17904 # Quote evaled strings.
17905 for var in SHELL \
17906 ECHO \
17907 PATH_SEPARATOR \
17908 SED \
17909 GREP \
17910 EGREP \
17911 FGREP \
17912 LD \
17913 NM \
17914 LN_S \
17915 lt_SP2NL \
17916 lt_NL2SP \
17917 reload_flag \
17918 OBJDUMP \
17919 deplibs_check_method \
17920 file_magic_cmd \
17921 file_magic_glob \
17922 want_nocaseglob \
17923 DLLTOOL \
17924 sharedlib_from_linklib_cmd \
17925 AR \
17926 AR_FLAGS \
17927 archiver_list_spec \
17928 STRIP \
17929 RANLIB \
17930 CC \
17931 CFLAGS \
17932 compiler \
17933 lt_cv_sys_global_symbol_pipe \
17934 lt_cv_sys_global_symbol_to_cdecl \
17935 lt_cv_sys_global_symbol_to_import \
17936 lt_cv_sys_global_symbol_to_c_name_address \
17937 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17938 lt_cv_nm_interface \
17939 nm_file_list_spec \
17940 lt_cv_truncate_bin \
17941 lt_prog_compiler_no_builtin_flag \
17942 lt_prog_compiler_pic \
17943 lt_prog_compiler_wl \
17944 lt_prog_compiler_static \
17945 lt_cv_prog_compiler_c_o \
17946 need_locks \
17947 MANIFEST_TOOL \
17948 DSYMUTIL \
17949 NMEDIT \
17950 LIPO \
17951 OTOOL \
17952 OTOOL64 \
17953 shrext_cmds \
17954 export_dynamic_flag_spec \
17955 whole_archive_flag_spec \
17956 compiler_needs_object \
17957 with_gnu_ld \
17958 allow_undefined_flag \
17959 no_undefined_flag \
17960 hardcode_libdir_flag_spec \
17961 hardcode_libdir_separator \
17962 exclude_expsyms \
17963 include_expsyms \
17964 file_list_spec \
17965 variables_saved_for_relink \
17966 libname_spec \
17967 library_names_spec \
17968 soname_spec \
17969 install_override_mode \
17970 finish_eval \
17971 old_striplib \
17972 striplib; do
17973 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17974 *[\\\\\\\`\\"\\\$]*)
17975 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
17976 ;;
17977 *)
17978 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17979 ;;
17980 esac
17981 done
17982
17983 # Double-quote double-evaled strings.
17984 for var in reload_cmds \
17985 old_postinstall_cmds \
17986 old_postuninstall_cmds \
17987 old_archive_cmds \
17988 extract_expsyms_cmds \
17989 old_archive_from_new_cmds \
17990 old_archive_from_expsyms_cmds \
17991 archive_cmds \
17992 archive_expsym_cmds \
17993 module_cmds \
17994 module_expsym_cmds \
17995 export_symbols_cmds \
17996 prelink_cmds \
17997 postlink_cmds \
17998 postinstall_cmds \
17999 postuninstall_cmds \
18000 finish_cmds \
18001 sys_lib_search_path_spec \
18002 configure_time_dlsearch_path \
18003 configure_time_lt_sys_library_path; do
18004 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18005 *[\\\\\\\`\\"\\\$]*)
18006 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
18007 ;;
18008 *)
18009 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18010 ;;
18011 esac
18012 done
18013
18014 ac_aux_dir='$ac_aux_dir'
18015
18016 # See if we are running on zsh, and set the options that allow our
18017 # commands through without removal of \ escapes INIT.
18018 if test -n "\${ZSH_VERSION+set}"; then
18019 setopt NO_GLOB_SUBST
18020 fi
18021
18022
18023 PACKAGE='$PACKAGE'
18024 VERSION='$VERSION'
18025 RM='$RM'
18026 ofile='$ofile'
18027
18028
18029
18030
18031 _ACEOF
18032
18033 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18034
18035 # Handling of arguments.
18036 for ac_config_target in $ac_config_targets
18037 do
18038 case $ac_config_target in
18039 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
18040 "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
18041 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
18042 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
18043 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18044 "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
18045 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
18046 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
18047 "port/Makefile") CONFIG_FILES="$CONFIG_FILES port/Makefile" ;;
18048 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
18049 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
18050
18051 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
18052 esac
18053 done
18054
18055
18056 # If the user did not use the arguments to specify the items to instantiate,
18057 # then the envvar interface is used. Set only those that are not.
18058 # We use the long form for the default assignment because of an extremely
18059 # bizarre bug on SunOS 4.1.3.
18060 if $ac_need_defaults; then
18061 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18062 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18063 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18064 fi
18065
18066 # Have a temporary directory for convenience. Make it in the build tree
18067 # simply because there is no reason against having it here, and in addition,
18068 # creating and moving files from /tmp can sometimes cause problems.
18069 # Hook for its removal unless debugging.
18070 # Note that there is a small window in which the directory will not be cleaned:
18071 # after its creation but before its name has been assigned to `$tmp'.
18072 $debug ||
18073 {
18074 tmp= ac_tmp=
18075 trap 'exit_status=$?
18076 : "${ac_tmp:=$tmp}"
18077 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
18078 ' 0
18079 trap 'as_fn_exit 1' 1 2 13 15
18080 }
18081 # Create a (secure) tmp directory for tmp files.
18082
18083 {
18084 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18085 test -d "$tmp"
18086 } ||
18087 {
18088 tmp=./conf$$-$RANDOM
18089 (umask 077 && mkdir "$tmp")
18090 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
18091 ac_tmp=$tmp
18092
18093 # Set up the scripts for CONFIG_FILES section.
18094 # No need to generate them if there are no CONFIG_FILES.
18095 # This happens for instance with `./config.status config.h'.
18096 if test -n "$CONFIG_FILES"; then
18097
18098
18099 ac_cr=`echo X | tr X '\015'`
18100 # On cygwin, bash can eat \r inside `` if the user requested igncr.
18101 # But we know of no other shell where ac_cr would be empty at this
18102 # point, so we can use a bashism as a fallback.
18103 if test "x$ac_cr" = x; then
18104 eval ac_cr=\$\'\\r\'
18105 fi
18106 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18107 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18108 ac_cs_awk_cr='\\r'
18109 else
18110 ac_cs_awk_cr=$ac_cr
18111 fi
18112
18113 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
18114 _ACEOF
18115
18116
18117 {
18118 echo "cat >conf$$subs.awk <<_ACEOF" &&
18119 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18120 echo "_ACEOF"
18121 } >conf$$subs.sh ||
18122 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18123 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
18124 ac_delim='%!_!# '
18125 for ac_last_try in false false false false false :; do
18126 . ./conf$$subs.sh ||
18127 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18128
18129 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18130 if test $ac_delim_n = $ac_delim_num; then
18131 break
18132 elif $ac_last_try; then
18133 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18134 else
18135 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18136 fi
18137 done
18138 rm -f conf$$subs.sh
18139
18140 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18141 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
18142 _ACEOF
18143 sed -n '
18144 h
18145 s/^/S["/; s/!.*/"]=/
18146 p
18147 g
18148 s/^[^!]*!//
18149 :repl
18150 t repl
18151 s/'"$ac_delim"'$//
18152 t delim
18153 :nl
18154 h
18155 s/\(.\{148\}\)..*/\1/
18156 t more1
18157 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18158 p
18159 n
18160 b repl
18161 :more1
18162 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18163 p
18164 g
18165 s/.\{148\}//
18166 t nl
18167 :delim
18168 h
18169 s/\(.\{148\}\)..*/\1/
18170 t more2
18171 s/["\\]/\\&/g; s/^/"/; s/$/"/
18172 p
18173 b
18174 :more2
18175 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18176 p
18177 g
18178 s/.\{148\}//
18179 t delim
18180 ' <conf$$subs.awk | sed '
18181 /^[^""]/{
18182 N
18183 s/\n//
18184 }
18185 ' >>$CONFIG_STATUS || ac_write_fail=1
18186 rm -f conf$$subs.awk
18187 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18188 _ACAWK
18189 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
18190 for (key in S) S_is_set[key] = 1
18191 FS = ""
18192
18193 }
18194 {
18195 line = $ 0
18196 nfields = split(line, field, "@")
18197 substed = 0
18198 len = length(field[1])
18199 for (i = 2; i < nfields; i++) {
18200 key = field[i]
18201 keylen = length(key)
18202 if (S_is_set[key]) {
18203 value = S[key]
18204 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18205 len += length(value) + length(field[++i])
18206 substed = 1
18207 } else
18208 len += 1 + keylen
18209 }
18210
18211 print line
18212 }
18213
18214 _ACAWK
18215 _ACEOF
18216 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18217 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18218 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18219 else
18220 cat
18221 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
18222 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
18223 _ACEOF
18224
18225 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
18226 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
18227 # trailing colons and then remove the whole line if VPATH becomes empty
18228 # (actually we leave an empty line to preserve line numbers).
18229 if test "x$srcdir" = x.; then
18230 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
18231 h
18232 s///
18233 s/^/:/
18234 s/[ ]*$/:/
18235 s/:\$(srcdir):/:/g
18236 s/:\${srcdir}:/:/g
18237 s/:@srcdir@:/:/g
18238 s/^:*//
18239 s/:*$//
18240 x
18241 s/\(=[ ]*\).*/\1/
18242 G
18243 s/\n//
18244 s/^[^=]*=[ ]*$//
18245 }'
18246 fi
18247
18248 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18249 fi # test -n "$CONFIG_FILES"
18250
18251 # Set up the scripts for CONFIG_HEADERS section.
18252 # No need to generate them if there are no CONFIG_HEADERS.
18253 # This happens for instance with `./config.status Makefile'.
18254 if test -n "$CONFIG_HEADERS"; then
18255 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
18256 BEGIN {
18257 _ACEOF
18258
18259 # Transform confdefs.h into an awk script `defines.awk', embedded as
18260 # here-document in config.status, that substitutes the proper values into
18261 # config.h.in to produce config.h.
18262
18263 # Create a delimiter string that does not exist in confdefs.h, to ease
18264 # handling of long lines.
18265 ac_delim='%!_!# '
18266 for ac_last_try in false false :; do
18267 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
18268 if test -z "$ac_tt"; then
18269 break
18270 elif $ac_last_try; then
18271 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
18272 else
18273 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18274 fi
18275 done
18276
18277 # For the awk script, D is an array of macro values keyed by name,
18278 # likewise P contains macro parameters if any. Preserve backslash
18279 # newline sequences.
18280
18281 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18282 sed -n '
18283 s/.\{148\}/&'"$ac_delim"'/g
18284 t rset
18285 :rset
18286 s/^[ ]*#[ ]*define[ ][ ]*/ /
18287 t def
18288 d
18289 :def
18290 s/\\$//
18291 t bsnl
18292 s/["\\]/\\&/g
18293 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18294 D["\1"]=" \3"/p
18295 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
18296 d
18297 :bsnl
18298 s/["\\]/\\&/g
18299 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18300 D["\1"]=" \3\\\\\\n"\\/p
18301 t cont
18302 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
18303 t cont
18304 d
18305 :cont
18306 n
18307 s/.\{148\}/&'"$ac_delim"'/g
18308 t clear
18309 :clear
18310 s/\\$//
18311 t bsnlc
18312 s/["\\]/\\&/g; s/^/"/; s/$/"/p
18313 d
18314 :bsnlc
18315 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
18316 b cont
18317 ' <confdefs.h | sed '
18318 s/'"$ac_delim"'/"\\\
18319 "/g' >>$CONFIG_STATUS || ac_write_fail=1
18320
18321 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18322 for (key in D) D_is_set[key] = 1
18323 FS = ""
18324 }
18325 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18326 line = \$ 0
18327 split(line, arg, " ")
18328 if (arg[1] == "#") {
18329 defundef = arg[2]
18330 mac1 = arg[3]
18331 } else {
18332 defundef = substr(arg[1], 2)
18333 mac1 = arg[2]
18334 }
18335 split(mac1, mac2, "(") #)
18336 macro = mac2[1]
18337 prefix = substr(line, 1, index(line, defundef) - 1)
18338 if (D_is_set[macro]) {
18339 # Preserve the white space surrounding the "#".
18340 print prefix "define", macro P[macro] D[macro]
18341 next
18342 } else {
18343 # Replace #undef with comments. This is necessary, for example,
18344 # in the case of _POSIX_SOURCE, which is predefined and required
18345 # on some systems where configure will not decide to define it.
18346 if (defundef == "undef") {
18347 print "/*", prefix defundef, macro, "*/"
18348 next
18349 }
18350 }
18351 }
18352 { print }
18353 _ACAWK
18354 _ACEOF
18355 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18356 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
18357 fi # test -n "$CONFIG_HEADERS"
18358
18359
18360 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
18361 shift
18362 for ac_tag
18363 do
18364 case $ac_tag in
18365 :[FHLC]) ac_mode=$ac_tag; continue;;
18366 esac
18367 case $ac_mode$ac_tag in
18368 :[FHL]*:*);;
18369 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
18370 :[FH]-) ac_tag=-:-;;
18371 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18372 esac
18373 ac_save_IFS=$IFS
18374 IFS=:
18375 set x $ac_tag
18376 IFS=$ac_save_IFS
18377 shift
18378 ac_file=$1
18379 shift
18380
18381 case $ac_mode in
18382 :L) ac_source=$1;;
18383 :[FH])
18384 ac_file_inputs=
18385 for ac_f
18386 do
18387 case $ac_f in
18388 -) ac_f="$ac_tmp/stdin";;
18389 *) # Look for the file first in the build tree, then in the source tree
18390 # (if the path is not absolute). The absolute path cannot be DOS-style,
18391 # because $ac_f cannot contain `:'.
18392 test -f "$ac_f" ||
18393 case $ac_f in
18394 [\\/$]*) false;;
18395 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18396 esac ||
18397 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
18398 esac
18399 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18400 as_fn_append ac_file_inputs " '$ac_f'"
18401 done
18402
18403 # Let's still pretend it is `configure' which instantiates (i.e., don't
18404 # use $as_me), people would be surprised to read:
18405 # /* config.h. Generated by config.status. */
18406 configure_input='Generated from '`
18407 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18408 `' by configure.'
18409 if test x"$ac_file" != x-; then
18410 configure_input="$ac_file. $configure_input"
18411 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18412 $as_echo "$as_me: creating $ac_file" >&6;}
18413 fi
18414 # Neutralize special characters interpreted by sed in replacement strings.
18415 case $configure_input in #(
18416 *\&* | *\|* | *\\* )
18417 ac_sed_conf_input=`$as_echo "$configure_input" |
18418 sed 's/[\\\\&|]/\\\\&/g'`;; #(
18419 *) ac_sed_conf_input=$configure_input;;
18420 esac
18421
18422 case $ac_tag in
18423 *:-:* | *:-) cat >"$ac_tmp/stdin" \
18424 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
18425 esac
18426 ;;
18427 esac
18428
18429 ac_dir=`$as_dirname -- "$ac_file" ||
18430 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18431 X"$ac_file" : 'X\(//\)[^/]' \| \
18432 X"$ac_file" : 'X\(//\)$' \| \
18433 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18434 $as_echo X"$ac_file" |
18435 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18436 s//\1/
18437 q
18438 }
18439 /^X\(\/\/\)[^/].*/{
18440 s//\1/
18441 q
18442 }
18443 /^X\(\/\/\)$/{
18444 s//\1/
18445 q
18446 }
18447 /^X\(\/\).*/{
18448 s//\1/
18449 q
18450 }
18451 s/.*/./; q'`
18452 as_dir="$ac_dir"; as_fn_mkdir_p
18453 ac_builddir=.
18454
18455 case "$ac_dir" in
18456 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18457 *)
18458 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18459 # A ".." for each directory in $ac_dir_suffix.
18460 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18461 case $ac_top_builddir_sub in
18462 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18463 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18464 esac ;;
18465 esac
18466 ac_abs_top_builddir=$ac_pwd
18467 ac_abs_builddir=$ac_pwd$ac_dir_suffix
18468 # for backward compatibility:
18469 ac_top_builddir=$ac_top_build_prefix
18470
18471 case $srcdir in
18472 .) # We are building in place.
18473 ac_srcdir=.
18474 ac_top_srcdir=$ac_top_builddir_sub
18475 ac_abs_top_srcdir=$ac_pwd ;;
18476 [\\/]* | ?:[\\/]* ) # Absolute name.
18477 ac_srcdir=$srcdir$ac_dir_suffix;
18478 ac_top_srcdir=$srcdir
18479 ac_abs_top_srcdir=$srcdir ;;
18480 *) # Relative name.
18481 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18482 ac_top_srcdir=$ac_top_build_prefix$srcdir
18483 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18484 esac
18485 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18486
18487
18488 case $ac_mode in
18489 :F)
18490 #
18491 # CONFIG_FILE
18492 #
18493
18494 case $INSTALL in
18495 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18496 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18497 esac
18498 ac_MKDIR_P=$MKDIR_P
18499 case $MKDIR_P in
18500 [\\/$]* | ?:[\\/]* ) ;;
18501 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
18502 esac
18503 _ACEOF
18504
18505 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18506 # If the template does not know about datarootdir, expand it.
18507 # FIXME: This hack should be removed a few years after 2.60.
18508 ac_datarootdir_hack=; ac_datarootdir_seen=
18509 ac_sed_dataroot='
18510 /datarootdir/ {
18511 p
18512 q
18513 }
18514 /@datadir@/p
18515 /@docdir@/p
18516 /@infodir@/p
18517 /@localedir@/p
18518 /@mandir@/p'
18519 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18520 *datarootdir*) ac_datarootdir_seen=yes;;
18521 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18522 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18523 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18524 _ACEOF
18525 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18526 ac_datarootdir_hack='
18527 s&@datadir@&$datadir&g
18528 s&@docdir@&$docdir&g
18529 s&@infodir@&$infodir&g
18530 s&@localedir@&$localedir&g
18531 s&@mandir@&$mandir&g
18532 s&\\\${datarootdir}&$datarootdir&g' ;;
18533 esac
18534 _ACEOF
18535
18536 # Neutralize VPATH when `$srcdir' = `.'.
18537 # Shell code in configure.ac might set extrasub.
18538 # FIXME: do we really want to maintain this feature?
18539 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18540 ac_sed_extra="$ac_vpsub
18541 $extrasub
18542 _ACEOF
18543 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18544 :t
18545 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18546 s|@configure_input@|$ac_sed_conf_input|;t t
18547 s&@top_builddir@&$ac_top_builddir_sub&;t t
18548 s&@top_build_prefix@&$ac_top_build_prefix&;t t
18549 s&@srcdir@&$ac_srcdir&;t t
18550 s&@abs_srcdir@&$ac_abs_srcdir&;t t
18551 s&@top_srcdir@&$ac_top_srcdir&;t t
18552 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18553 s&@builddir@&$ac_builddir&;t t
18554 s&@abs_builddir@&$ac_abs_builddir&;t t
18555 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18556 s&@INSTALL@&$ac_INSTALL&;t t
18557 s&@MKDIR_P@&$ac_MKDIR_P&;t t
18558 $ac_datarootdir_hack
18559 "
18560 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
18561 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18562
18563 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18564 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
18565 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
18566 "$ac_tmp/out"`; test -z "$ac_out"; } &&
18567 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18568 which seems to be undefined. Please make sure it is defined" >&5
18569 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18570 which seems to be undefined. Please make sure it is defined" >&2;}
18571
18572 rm -f "$ac_tmp/stdin"
18573 case $ac_file in
18574 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
18575 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
18576 esac \
18577 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18578 ;;
18579 :H)
18580 #
18581 # CONFIG_HEADER
18582 #
18583 if test x"$ac_file" != x-; then
18584 {
18585 $as_echo "/* $configure_input */" \
18586 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
18587 } >"$ac_tmp/config.h" \
18588 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18589 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
18590 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18591 $as_echo "$as_me: $ac_file is unchanged" >&6;}
18592 else
18593 rm -f "$ac_file"
18594 mv "$ac_tmp/config.h" "$ac_file" \
18595 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18596 fi
18597 else
18598 $as_echo "/* $configure_input */" \
18599 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
18600 || as_fn_error $? "could not create -" "$LINENO" 5
18601 fi
18602 # Compute "$ac_file"'s index in $config_headers.
18603 _am_arg="$ac_file"
18604 _am_stamp_count=1
18605 for _am_header in $config_headers :; do
18606 case $_am_header in
18607 $_am_arg | $_am_arg:* )
18608 break ;;
18609 * )
18610 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18611 esac
18612 done
18613 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18614 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18615 X"$_am_arg" : 'X\(//\)[^/]' \| \
18616 X"$_am_arg" : 'X\(//\)$' \| \
18617 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18618 $as_echo X"$_am_arg" |
18619 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18620 s//\1/
18621 q
18622 }
18623 /^X\(\/\/\)[^/].*/{
18624 s//\1/
18625 q
18626 }
18627 /^X\(\/\/\)$/{
18628 s//\1/
18629 q
18630 }
18631 /^X\(\/\).*/{
18632 s//\1/
18633 q
18634 }
18635 s/.*/./; q'`/stamp-h$_am_stamp_count
18636 ;;
18637
18638 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18639 $as_echo "$as_me: executing $ac_file commands" >&6;}
18640 ;;
18641 esac
18642
18643
18644 case $ac_file$ac_mode in
18645 "po-directories":C)
18646 for ac_file in $CONFIG_FILES; do
18647 # Support "outfile[:infile[:infile...]]"
18648 case "$ac_file" in
18649 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
18650 esac
18651 # PO directories have a Makefile.in generated from Makefile.in.in.
18652 case "$ac_file" in */Makefile.in)
18653 # Adjust a relative srcdir.
18654 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
18655 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
18656 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
18657 # In autoconf-2.13 it is called $ac_given_srcdir.
18658 # In autoconf-2.50 it is called $srcdir.
18659 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
18660 case "$ac_given_srcdir" in
18661 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
18662 /*) top_srcdir="$ac_given_srcdir" ;;
18663 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
18664 esac
18665 # Treat a directory as a PO directory if and only if it has a
18666 # POTFILES.in file. This allows packages to have multiple PO
18667 # directories under different names or in different locations.
18668 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
18669 rm -f "$ac_dir/POTFILES"
18670 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
18671 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
18672 POMAKEFILEDEPS="POTFILES.in"
18673 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
18674 # on $ac_dir but don't depend on user-specified configuration
18675 # parameters.
18676 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
18677 # The LINGUAS file contains the set of available languages.
18678 if test -n "$OBSOLETE_ALL_LINGUAS"; then
18679 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
18680 fi
18681 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
18682 # Hide the ALL_LINGUAS assigment from automake < 1.5.
18683 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
18684 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
18685 else
18686 # The set of available languages was given in configure.in.
18687 # Hide the ALL_LINGUAS assigment from automake < 1.5.
18688 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
18689 fi
18690 # Compute POFILES
18691 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
18692 # Compute UPDATEPOFILES
18693 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
18694 # Compute DUMMYPOFILES
18695 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
18696 # Compute GMOFILES
18697 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
18698 case "$ac_given_srcdir" in
18699 .) srcdirpre= ;;
18700 *) srcdirpre='$(srcdir)/' ;;
18701 esac
18702 POFILES=
18703 UPDATEPOFILES=
18704 DUMMYPOFILES=
18705 GMOFILES=
18706 for lang in $ALL_LINGUAS; do
18707 POFILES="$POFILES $srcdirpre$lang.po"
18708 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
18709 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
18710 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
18711 done
18712 # CATALOGS depends on both $ac_dir and the user's LINGUAS
18713 # environment variable.
18714 INST_LINGUAS=
18715 if test -n "$ALL_LINGUAS"; then
18716 for presentlang in $ALL_LINGUAS; do
18717 useit=no
18718 if test "%UNSET%" != "$LINGUAS"; then
18719 desiredlanguages="$LINGUAS"
18720 else
18721 desiredlanguages="$ALL_LINGUAS"
18722 fi
18723 for desiredlang in $desiredlanguages; do
18724 # Use the presentlang catalog if desiredlang is
18725 # a. equal to presentlang, or
18726 # b. a variant of presentlang (because in this case,
18727 # presentlang can be used as a fallback for messages
18728 # which are not translated in the desiredlang catalog).
18729 case "$desiredlang" in
18730 "$presentlang"*) useit=yes;;
18731 esac
18732 done
18733 if test $useit = yes; then
18734 INST_LINGUAS="$INST_LINGUAS $presentlang"
18735 fi
18736 done
18737 fi
18738 CATALOGS=
18739 if test -n "$INST_LINGUAS"; then
18740 for lang in $INST_LINGUAS; do
18741 CATALOGS="$CATALOGS $lang.gmo"
18742 done
18743 fi
18744 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
18745 sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
18746 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
18747 if test -f "$f"; then
18748 case "$f" in
18749 *.orig | *.bak | *~) ;;
18750 *) cat "$f" >> "$ac_dir/Makefile" ;;
18751 esac
18752 fi
18753 done
18754 fi
18755 ;;
18756 esac
18757 done ;;
18758 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
18759 # Older Autoconf quotes --file arguments for eval, but not when files
18760 # are listed without --file. Let's play safe and only enable the eval
18761 # if we detect the quoting.
18762 # TODO: see whether this extra hack can be removed once we start
18763 # requiring Autoconf 2.70 or later.
18764 case $CONFIG_FILES in #(
18765 *\'*) :
18766 eval set x "$CONFIG_FILES" ;; #(
18767 *) :
18768 set x $CONFIG_FILES ;; #(
18769 *) :
18770 ;;
18771 esac
18772 shift
18773 # Used to flag and report bootstrapping failures.
18774 am_rc=0
18775 for am_mf
18776 do
18777 # Strip MF so we end up with the name of the file.
18778 am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'`
18779 # Check whether this is an Automake generated Makefile which includes
18780 # dependency-tracking related rules and includes.
18781 # Grep'ing the whole file directly is not great: AIX grep has a line
18782 # limit of 2048, but all sed's we know have understand at least 4000.
18783 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
18784 || continue
18785 am_dirpart=`$as_dirname -- "$am_mf" ||
18786 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18787 X"$am_mf" : 'X\(//\)[^/]' \| \
18788 X"$am_mf" : 'X\(//\)$' \| \
18789 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
18790 $as_echo X"$am_mf" |
18791 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18792 s//\1/
18793 q
18794 }
18795 /^X\(\/\/\)[^/].*/{
18796 s//\1/
18797 q
18798 }
18799 /^X\(\/\/\)$/{
18800 s//\1/
18801 q
18802 }
18803 /^X\(\/\).*/{
18804 s//\1/
18805 q
18806 }
18807 s/.*/./; q'`
18808 am_filepart=`$as_basename -- "$am_mf" ||
18809 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
18810 X"$am_mf" : 'X\(//\)$' \| \
18811 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
18812 $as_echo X/"$am_mf" |
18813 sed '/^.*\/\([^/][^/]*\)\/*$/{
18814 s//\1/
18815 q
18816 }
18817 /^X\/\(\/\/\)$/{
18818 s//\1/
18819 q
18820 }
18821 /^X\/\(\/\).*/{
18822 s//\1/
18823 q
18824 }
18825 s/.*/./; q'`
18826 { echo "$as_me:$LINENO: cd "$am_dirpart" \
18827 && sed -e '/# am--include-marker/d' "$am_filepart" \
18828 | $MAKE -f - am--depfiles" >&5
18829 (cd "$am_dirpart" \
18830 && sed -e '/# am--include-marker/d' "$am_filepart" \
18831 | $MAKE -f - am--depfiles) >&5 2>&5
18832 ac_status=$?
18833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18834 (exit $ac_status); } || am_rc=$?
18835 done
18836 if test $am_rc -ne 0; then
18837 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18838 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18839 as_fn_error $? "Something went wrong bootstrapping makefile fragments
18840 for automatic dependency tracking. If GNU make was not used, consider
18841 re-running the configure script with MAKE=\"gmake\" (or whatever is
18842 necessary). You can also try re-running configure with the
18843 '--disable-dependency-tracking' option to at least be able to build
18844 the package (albeit without support for automatic dependency tracking).
18845 See \`config.log' for more details" "$LINENO" 5; }
18846 fi
18847 { am_dirpart=; unset am_dirpart;}
18848 { am_filepart=; unset am_filepart;}
18849 { am_mf=; unset am_mf;}
18850 { am_rc=; unset am_rc;}
18851 rm -f conftest-deps.mk
18852 }
18853 ;;
18854 "libtool":C)
18855
18856 # See if we are running on zsh, and set the options that allow our
18857 # commands through without removal of \ escapes.
18858 if test -n "${ZSH_VERSION+set}"; then
18859 setopt NO_GLOB_SUBST
18860 fi
18861
18862 cfgfile=${ofile}T
18863 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18864 $RM "$cfgfile"
18865
18866 cat <<_LT_EOF >> "$cfgfile"
18867 #! $SHELL
18868 # Generated automatically by $as_me ($PACKAGE) $VERSION
18869 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
18870
18871 # Provide generalized library-building support services.
18872 # Written by Gordon Matzigkeit, 1996
18873
18874 # Copyright (C) 2014 Free Software Foundation, Inc.
18875 # This is free software; see the source for copying conditions. There is NO
18876 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
18877
18878 # GNU Libtool is free software; you can redistribute it and/or modify
18879 # it under the terms of the GNU General Public License as published by
18880 # the Free Software Foundation; either version 2 of of the License, or
18881 # (at your option) any later version.
18882 #
18883 # As a special exception to the GNU General Public License, if you
18884 # distribute this file as part of a program or library that is built
18885 # using GNU Libtool, you may include this file under the same
18886 # distribution terms that you use for the rest of that program.
18887 #
18888 # GNU Libtool is distributed in the hope that it will be useful, but
18889 # WITHOUT ANY WARRANTY; without even the implied warranty of
18890 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18891 # GNU General Public License for more details.
18892 #
18893 # You should have received a copy of the GNU General Public License
18894 # along with this program. If not, see <http://www.gnu.org/licenses/>.
18895
18896
18897 # The names of the tagged configurations supported by this script.
18898 available_tags=''
18899
18900 # Configured defaults for sys_lib_dlsearch_path munging.
18901 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
18902
18903 # ### BEGIN LIBTOOL CONFIG
18904
18905 # Whether or not to build static libraries.
18906 build_old_libs=$enable_static
18907
18908 # Which release of libtool.m4 was used?
18909 macro_version=$macro_version
18910 macro_revision=$macro_revision
18911
18912 # Whether or not to build shared libraries.
18913 build_libtool_libs=$enable_shared
18914
18915 # What type of objects to build.
18916 pic_mode=$pic_mode
18917
18918 # Whether or not to optimize for fast installation.
18919 fast_install=$enable_fast_install
18920
18921 # Shared archive member basename,for filename based shared library versioning on AIX.
18922 shared_archive_member_spec=$shared_archive_member_spec
18923
18924 # Shell to use when invoking shell scripts.
18925 SHELL=$lt_SHELL
18926
18927 # An echo program that protects backslashes.
18928 ECHO=$lt_ECHO
18929
18930 # The PATH separator for the build system.
18931 PATH_SEPARATOR=$lt_PATH_SEPARATOR
18932
18933 # The host system.
18934 host_alias=$host_alias
18935 host=$host
18936 host_os=$host_os
18937
18938 # The build system.
18939 build_alias=$build_alias
18940 build=$build
18941 build_os=$build_os
18942
18943 # A sed program that does not truncate output.
18944 SED=$lt_SED
18945
18946 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
18947 Xsed="\$SED -e 1s/^X//"
18948
18949 # A grep program that handles long lines.
18950 GREP=$lt_GREP
18951
18952 # An ERE matcher.
18953 EGREP=$lt_EGREP
18954
18955 # A literal string matcher.
18956 FGREP=$lt_FGREP
18957
18958 # A BSD- or MS-compatible name lister.
18959 NM=$lt_NM
18960
18961 # Whether we need soft or hard links.
18962 LN_S=$lt_LN_S
18963
18964 # What is the maximum length of a command?
18965 max_cmd_len=$max_cmd_len
18966
18967 # Object file suffix (normally "o").
18968 objext=$ac_objext
18969
18970 # Executable file suffix (normally "").
18971 exeext=$exeext
18972
18973 # whether the shell understands "unset".
18974 lt_unset=$lt_unset
18975
18976 # turn spaces into newlines.
18977 SP2NL=$lt_lt_SP2NL
18978
18979 # turn newlines into spaces.
18980 NL2SP=$lt_lt_NL2SP
18981
18982 # convert \$build file names to \$host format.
18983 to_host_file_cmd=$lt_cv_to_host_file_cmd
18984
18985 # convert \$build files to toolchain format.
18986 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
18987
18988 # An object symbol dumper.
18989 OBJDUMP=$lt_OBJDUMP
18990
18991 # Method to check whether dependent libraries are shared objects.
18992 deplibs_check_method=$lt_deplibs_check_method
18993
18994 # Command to use when deplibs_check_method = "file_magic".
18995 file_magic_cmd=$lt_file_magic_cmd
18996
18997 # How to find potential files when deplibs_check_method = "file_magic".
18998 file_magic_glob=$lt_file_magic_glob
18999
19000 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
19001 want_nocaseglob=$lt_want_nocaseglob
19002
19003 # DLL creation program.
19004 DLLTOOL=$lt_DLLTOOL
19005
19006 # Command to associate shared and link libraries.
19007 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
19008
19009 # The archiver.
19010 AR=$lt_AR
19011
19012 # Flags to create an archive.
19013 AR_FLAGS=$lt_AR_FLAGS
19014
19015 # How to feed a file listing to the archiver.
19016 archiver_list_spec=$lt_archiver_list_spec
19017
19018 # A symbol stripping program.
19019 STRIP=$lt_STRIP
19020
19021 # Commands used to install an old-style archive.
19022 RANLIB=$lt_RANLIB
19023 old_postinstall_cmds=$lt_old_postinstall_cmds
19024 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19025
19026 # Whether to use a lock for old archive extraction.
19027 lock_old_archive_extraction=$lock_old_archive_extraction
19028
19029 # A C compiler.
19030 LTCC=$lt_CC
19031
19032 # LTCC compiler flags.
19033 LTCFLAGS=$lt_CFLAGS
19034
19035 # Take the output of nm and produce a listing of raw symbols and C names.
19036 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19037
19038 # Transform the output of nm in a proper C declaration.
19039 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19040
19041 # Transform the output of nm into a list of symbols to manually relocate.
19042 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
19043
19044 # Transform the output of nm in a C name address pair.
19045 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19046
19047 # Transform the output of nm in a C name address pair when lib prefix is needed.
19048 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
19049
19050 # The name lister interface.
19051 nm_interface=$lt_lt_cv_nm_interface
19052
19053 # Specify filename containing input files for \$NM.
19054 nm_file_list_spec=$lt_nm_file_list_spec
19055
19056 # The root where to search for dependent libraries,and where our libraries should be installed.
19057 lt_sysroot=$lt_sysroot
19058
19059 # Command to truncate a binary pipe.
19060 lt_truncate_bin=$lt_lt_cv_truncate_bin
19061
19062 # The name of the directory that contains temporary libtool files.
19063 objdir=$objdir
19064
19065 # Used to examine libraries when file_magic_cmd begins with "file".
19066 MAGIC_CMD=$MAGIC_CMD
19067
19068 # Must we lock files when doing compilation?
19069 need_locks=$lt_need_locks
19070
19071 # Manifest tool.
19072 MANIFEST_TOOL=$lt_MANIFEST_TOOL
19073
19074 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
19075 DSYMUTIL=$lt_DSYMUTIL
19076
19077 # Tool to change global to local symbols on Mac OS X.
19078 NMEDIT=$lt_NMEDIT
19079
19080 # Tool to manipulate fat objects and archives on Mac OS X.
19081 LIPO=$lt_LIPO
19082
19083 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
19084 OTOOL=$lt_OTOOL
19085
19086 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
19087 OTOOL64=$lt_OTOOL64
19088
19089 # Old archive suffix (normally "a").
19090 libext=$libext
19091
19092 # Shared library suffix (normally ".so").
19093 shrext_cmds=$lt_shrext_cmds
19094
19095 # The commands to extract the exported symbol list from a shared archive.
19096 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19097
19098 # Variables whose values should be saved in libtool wrapper scripts and
19099 # restored at link time.
19100 variables_saved_for_relink=$lt_variables_saved_for_relink
19101
19102 # Do we need the "lib" prefix for modules?
19103 need_lib_prefix=$need_lib_prefix
19104
19105 # Do we need a version for libraries?
19106 need_version=$need_version
19107
19108 # Library versioning type.
19109 version_type=$version_type
19110
19111 # Shared library runtime path variable.
19112 runpath_var=$runpath_var
19113
19114 # Shared library path variable.
19115 shlibpath_var=$shlibpath_var
19116
19117 # Is shlibpath searched before the hard-coded library search path?
19118 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19119
19120 # Format of library name prefix.
19121 libname_spec=$lt_libname_spec
19122
19123 # List of archive names. First name is the real one, the rest are links.
19124 # The last name is the one that the linker finds with -lNAME
19125 library_names_spec=$lt_library_names_spec
19126
19127 # The coded name of the library, if different from the real name.
19128 soname_spec=$lt_soname_spec
19129
19130 # Permission mode override for installation of shared libraries.
19131 install_override_mode=$lt_install_override_mode
19132
19133 # Command to use after installation of a shared archive.
19134 postinstall_cmds=$lt_postinstall_cmds
19135
19136 # Command to use after uninstallation of a shared archive.
19137 postuninstall_cmds=$lt_postuninstall_cmds
19138
19139 # Commands used to finish a libtool library installation in a directory.
19140 finish_cmds=$lt_finish_cmds
19141
19142 # As "finish_cmds", except a single script fragment to be evaled but
19143 # not shown.
19144 finish_eval=$lt_finish_eval
19145
19146 # Whether we should hardcode library paths into libraries.
19147 hardcode_into_libs=$hardcode_into_libs
19148
19149 # Compile-time system search path for libraries.
19150 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19151
19152 # Detected run-time system search path for libraries.
19153 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
19154
19155 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
19156 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
19157
19158 # Whether dlopen is supported.
19159 dlopen_support=$enable_dlopen
19160
19161 # Whether dlopen of programs is supported.
19162 dlopen_self=$enable_dlopen_self
19163
19164 # Whether dlopen of statically linked programs is supported.
19165 dlopen_self_static=$enable_dlopen_self_static
19166
19167 # Commands to strip libraries.
19168 old_striplib=$lt_old_striplib
19169 striplib=$lt_striplib
19170
19171
19172 # The linker used to build libraries.
19173 LD=$lt_LD
19174
19175 # How to create reloadable object files.
19176 reload_flag=$lt_reload_flag
19177 reload_cmds=$lt_reload_cmds
19178
19179 # Commands used to build an old-style archive.
19180 old_archive_cmds=$lt_old_archive_cmds
19181
19182 # A language specific compiler.
19183 CC=$lt_compiler
19184
19185 # Is the compiler the GNU compiler?
19186 with_gcc=$GCC
19187
19188 # Compiler flag to turn off builtin functions.
19189 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
19190
19191 # Additional compiler flags for building library objects.
19192 pic_flag=$lt_lt_prog_compiler_pic
19193
19194 # How to pass a linker flag through the compiler.
19195 wl=$lt_lt_prog_compiler_wl
19196
19197 # Compiler flag to prevent dynamic linking.
19198 link_static_flag=$lt_lt_prog_compiler_static
19199
19200 # Does compiler simultaneously support -c and -o options?
19201 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
19202
19203 # Whether or not to add -lc for building shared libraries.
19204 build_libtool_need_lc=$archive_cmds_need_lc
19205
19206 # Whether or not to disallow shared libs when runtime libs are static.
19207 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
19208
19209 # Compiler flag to allow reflexive dlopens.
19210 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
19211
19212 # Compiler flag to generate shared objects directly from archives.
19213 whole_archive_flag_spec=$lt_whole_archive_flag_spec
19214
19215 # Whether the compiler copes with passing no objects directly.
19216 compiler_needs_object=$lt_compiler_needs_object
19217
19218 # Create an old-style archive from a shared archive.
19219 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
19220
19221 # Create a temporary old-style archive to link instead of a shared archive.
19222 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
19223
19224 # Commands used to build a shared archive.
19225 archive_cmds=$lt_archive_cmds
19226 archive_expsym_cmds=$lt_archive_expsym_cmds
19227
19228 # Commands used to build a loadable module if different from building
19229 # a shared archive.
19230 module_cmds=$lt_module_cmds
19231 module_expsym_cmds=$lt_module_expsym_cmds
19232
19233 # Whether we are building with GNU ld or not.
19234 with_gnu_ld=$lt_with_gnu_ld
19235
19236 # Flag that allows shared libraries with undefined symbols to be built.
19237 allow_undefined_flag=$lt_allow_undefined_flag
19238
19239 # Flag that enforces no undefined symbols.
19240 no_undefined_flag=$lt_no_undefined_flag
19241
19242 # Flag to hardcode \$libdir into a binary during linking.
19243 # This must work even if \$libdir does not exist
19244 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
19245
19246 # Whether we need a single "-rpath" flag with a separated argument.
19247 hardcode_libdir_separator=$lt_hardcode_libdir_separator
19248
19249 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
19250 # DIR into the resulting binary.
19251 hardcode_direct=$hardcode_direct
19252
19253 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
19254 # DIR into the resulting binary and the resulting library dependency is
19255 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
19256 # library is relocated.
19257 hardcode_direct_absolute=$hardcode_direct_absolute
19258
19259 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19260 # into the resulting binary.
19261 hardcode_minus_L=$hardcode_minus_L
19262
19263 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19264 # into the resulting binary.
19265 hardcode_shlibpath_var=$hardcode_shlibpath_var
19266
19267 # Set to "yes" if building a shared library automatically hardcodes DIR
19268 # into the library and all subsequent libraries and executables linked
19269 # against it.
19270 hardcode_automatic=$hardcode_automatic
19271
19272 # Set to yes if linker adds runtime paths of dependent libraries
19273 # to runtime path list.
19274 inherit_rpath=$inherit_rpath
19275
19276 # Whether libtool must link a program against all its dependency libraries.
19277 link_all_deplibs=$link_all_deplibs
19278
19279 # Set to "yes" if exported symbols are required.
19280 always_export_symbols=$always_export_symbols
19281
19282 # The commands to list exported symbols.
19283 export_symbols_cmds=$lt_export_symbols_cmds
19284
19285 # Symbols that should not be listed in the preloaded symbols.
19286 exclude_expsyms=$lt_exclude_expsyms
19287
19288 # Symbols that must always be exported.
19289 include_expsyms=$lt_include_expsyms
19290
19291 # Commands necessary for linking programs (against libraries) with templates.
19292 prelink_cmds=$lt_prelink_cmds
19293
19294 # Commands necessary for finishing linking programs.
19295 postlink_cmds=$lt_postlink_cmds
19296
19297 # Specify filename containing input files.
19298 file_list_spec=$lt_file_list_spec
19299
19300 # How to hardcode a shared library path into an executable.
19301 hardcode_action=$hardcode_action
19302
19303 # ### END LIBTOOL CONFIG
19304
19305 _LT_EOF
19306
19307 cat <<'_LT_EOF' >> "$cfgfile"
19308
19309 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
19310
19311 # func_munge_path_list VARIABLE PATH
19312 # -----------------------------------
19313 # VARIABLE is name of variable containing _space_ separated list of
19314 # directories to be munged by the contents of PATH, which is string
19315 # having a format:
19316 # "DIR[:DIR]:"
19317 # string "DIR[ DIR]" will be prepended to VARIABLE
19318 # ":DIR[:DIR]"
19319 # string "DIR[ DIR]" will be appended to VARIABLE
19320 # "DIRP[:DIRP]::[DIRA:]DIRA"
19321 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
19322 # "DIRA[ DIRA]" will be appended to VARIABLE
19323 # "DIR[:DIR]"
19324 # VARIABLE will be replaced by "DIR[ DIR]"
19325 func_munge_path_list ()
19326 {
19327 case x$2 in
19328 x)
19329 ;;
19330 *:)
19331 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
19332 ;;
19333 x:*)
19334 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
19335 ;;
19336 *::*)
19337 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
19338 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
19339 ;;
19340 *)
19341 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
19342 ;;
19343 esac
19344 }
19345
19346
19347 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
19348 func_cc_basename ()
19349 {
19350 for cc_temp in $*""; do
19351 case $cc_temp in
19352 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19353 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19354 \-*) ;;
19355 *) break;;
19356 esac
19357 done
19358 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
19359 }
19360
19361
19362 # ### END FUNCTIONS SHARED WITH CONFIGURE
19363
19364 _LT_EOF
19365
19366 case $host_os in
19367 aix3*)
19368 cat <<\_LT_EOF >> "$cfgfile"
19369 # AIX sometimes has problems with the GCC collect2 program. For some
19370 # reason, if we set the COLLECT_NAMES environment variable, the problems
19371 # vanish in a puff of smoke.
19372 if test set != "${COLLECT_NAMES+set}"; then
19373 COLLECT_NAMES=
19374 export COLLECT_NAMES
19375 fi
19376 _LT_EOF
19377 ;;
19378 esac
19379
19380
19381 ltmain=$ac_aux_dir/ltmain.sh
19382
19383
19384 # We use sed instead of cat because bash on DJGPP gets confused if
19385 # if finds mixed CR/LF and LF-only lines. Since sed operates in
19386 # text mode, it properly converts lines to CR/LF. This bash problem
19387 # is reportedly fixed, but why not run on old versions too?
19388 sed '$q' "$ltmain" >> "$cfgfile" \
19389 || (rm -f "$cfgfile"; exit 1)
19390
19391 mv -f "$cfgfile" "$ofile" ||
19392 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19393 chmod +x "$ofile"
19394
19395 ;;
19396
19397 esac
19398 done # for ac_tag
19399
19400
19401 as_fn_exit 0
19402 _ACEOF
19403 ac_clean_files=$ac_clean_files_save
19404
19405 test $ac_write_fail = 0 ||
19406 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
19407
19408
19409 # configure is writing to config.log, and then calls config.status.
19410 # config.status does its own redirection, appending to config.log.
19411 # Unfortunately, on DOS this fails, as config.log is still kept open
19412 # by configure, so config.status won't be able to write to it; its
19413 # output is simply discarded. So we exec the FD to /dev/null,
19414 # effectively closing config.log, so it can be properly (re)opened and
19415 # appended to by config.status. When coming back to configure, we
19416 # need to make the FD available again.
19417 if test "$no_create" != yes; then
19418 ac_cs_success=:
19419 ac_config_status_args=
19420 test "$silent" = yes &&
19421 ac_config_status_args="$ac_config_status_args --quiet"
19422 exec 5>/dev/null
19423 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19424 exec 5>>config.log
19425 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19426 # would make configure fail if this is the last instruction.
19427 $ac_cs_success || as_fn_exit 1
19428 fi
19429 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19430 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19431 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
19432 fi
19433