Debian Codegraph @

configure

raw
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.71 for Apache HTTP Server Request Library 2.17.
4 #
5 # Report bugs to <[email protected]>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation,
9 # Inc.
10 #
11 #
12 # This configure script is free software; the Free Software Foundation
13 # gives unlimited permission to copy, distribute and modify it.
14 ## -------------------- ##
15 ## M4sh Initialization. ##
16 ## -------------------- ##
17
18 # Be more Bourne compatible
19 DUALCASE=1; export DUALCASE # for MKS sh
20 as_nop=:
21 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
22 then :
23 emulate sh
24 NULLCMD=:
25 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26 # is contrary to our usage. Disable this feature.
27 alias -g '${1+"$@"}'='"$@"'
28 setopt NO_GLOB_SUBST
29 else $as_nop
30 case `(set -o) 2>/dev/null` in #(
31 *posix*) :
32 set -o posix ;; #(
33 *) :
34 ;;
35 esac
36 fi
37
38
39
40 # Reset variables that may have inherited troublesome values from
41 # the environment.
42
43 # IFS needs to be set, to space, tab, and newline, in precisely that order.
44 # (If _AS_PATH_WALK were called with IFS unset, it would have the
45 # side effect of setting IFS to empty, thus disabling word splitting.)
46 # Quoting is to prevent editors from complaining about space-tab.
47 as_nl='
48 '
49 export as_nl
50 IFS=" "" $as_nl"
51
52 PS1='$ '
53 PS2='> '
54 PS4='+ '
55
56 # Ensure predictable behavior from utilities with locale-dependent output.
57 LC_ALL=C
58 export LC_ALL
59 LANGUAGE=C
60 export LANGUAGE
61
62 # We cannot yet rely on "unset" to work, but we need these variables
63 # to be unset--not just set to an empty or harmless value--now, to
64 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
65 # also avoids known problems related to "unset" and subshell syntax
66 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
67 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
68 do eval test \${$as_var+y} \
69 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
70 done
71
72 # Ensure that fds 0, 1, and 2 are open.
73 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
74 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
75 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
76
77 # The user is always right.
78 if ${PATH_SEPARATOR+false} :; then
79 PATH_SEPARATOR=:
80 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
81 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
82 PATH_SEPARATOR=';'
83 }
84 fi
85
86
87 # Find who we are. Look in the path if we contain no directory separator.
88 as_myself=
89 case $0 in #((
90 *[\\/]* ) as_myself=$0 ;;
91 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
92 for as_dir in $PATH
93 do
94 IFS=$as_save_IFS
95 case $as_dir in #(((
96 '') as_dir=./ ;;
97 */) ;;
98 *) as_dir=$as_dir/ ;;
99 esac
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 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114 fi
115
116
117 # Use a proper internal environment variable to ensure we don't fall
118 # into an infinite loop, continuously re-executing ourselves.
119 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
120 _as_can_reexec=no; export _as_can_reexec;
121 # We cannot yet assume a decent shell, so we have to provide a
122 # neutralization value for shells without unset; and this also
123 # works around shells that cannot unset nonexistent variables.
124 # Preserve -v and -x to the replacement shell.
125 BASH_ENV=/dev/null
126 ENV=/dev/null
127 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
128 case $- in # ((((
129 *v*x* | *x*v* ) as_opts=-vx ;;
130 *v* ) as_opts=-v ;;
131 *x* ) as_opts=-x ;;
132 * ) as_opts= ;;
133 esac
134 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
135 # Admittedly, this is quite paranoid, since all the known shells bail
136 # out after a failed `exec'.
137 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
138 exit 255
139 fi
140 # We don't want this to propagate to other subprocesses.
141 { _as_can_reexec=; unset _as_can_reexec;}
142 if test "x$CONFIG_SHELL" = x; then
143 as_bourne_compatible="as_nop=:
144 if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
145 then :
146 emulate sh
147 NULLCMD=:
148 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
149 # is contrary to our usage. Disable this feature.
150 alias -g '\${1+\"\$@\"}'='\"\$@\"'
151 setopt NO_GLOB_SUBST
152 else \$as_nop
153 case \`(set -o) 2>/dev/null\` in #(
154 *posix*) :
155 set -o posix ;; #(
156 *) :
157 ;;
158 esac
159 fi
160 "
161 as_required="as_fn_return () { (exit \$1); }
162 as_fn_success () { as_fn_return 0; }
163 as_fn_failure () { as_fn_return 1; }
164 as_fn_ret_success () { return 0; }
165 as_fn_ret_failure () { return 1; }
166
167 exitcode=0
168 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
169 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
170 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
171 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
172 if ( set x; as_fn_ret_success y && test x = \"\$1\" )
173 then :
174
175 else \$as_nop
176 exitcode=1; echo positional parameters were not saved.
177 fi
178 test x\$exitcode = x0 || exit 1
179 blah=\$(echo \$(echo blah))
180 test x\"\$blah\" = xblah || exit 1
181 test -x / || exit 1"
182 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
183 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
184 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
185 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
186
187 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
188 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
189 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
190 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
191 PATH=/empty FPATH=/empty; export PATH FPATH
192 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
193 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
194 test \$(( 1 + 1 )) = 2 || exit 1"
195 if (eval "$as_required") 2>/dev/null
196 then :
197 as_have_required=yes
198 else $as_nop
199 as_have_required=no
200 fi
201 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
202 then :
203
204 else $as_nop
205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
206 as_found=false
207 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
208 do
209 IFS=$as_save_IFS
210 case $as_dir in #(((
211 '') as_dir=./ ;;
212 */) ;;
213 *) as_dir=$as_dir/ ;;
214 esac
215 as_found=:
216 case $as_dir in #(
217 /*)
218 for as_base in sh bash ksh sh5; do
219 # Try only shells that exist, to save several forks.
220 as_shell=$as_dir$as_base
221 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
222 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
223 then :
224 CONFIG_SHELL=$as_shell as_have_required=yes
225 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
226 then :
227 break 2
228 fi
229 fi
230 done;;
231 esac
232 as_found=false
233 done
234 IFS=$as_save_IFS
235 if $as_found
236 then :
237
238 else $as_nop
239 if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
241 then :
242 CONFIG_SHELL=$SHELL as_have_required=yes
243 fi
244 fi
245
246
247 if test "x$CONFIG_SHELL" != x
248 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 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
267 exit 255
268 fi
269
270 if test x$as_have_required = xno
271 then :
272 printf "%s\n" "$0: This script requires a shell more modern than all"
273 printf "%s\n" "$0: the shells that I found on your system."
274 if test ${ZSH_VERSION+y} ; then
275 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
276 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
277 else
278 printf "%s\n" "$0: Please tell [email protected] and
279 $0: [email protected] about your system, including
280 $0: any error possibly output before this message. Then
281 $0: install a modern shell, or manually run the script
282 $0: under such a shell if you do have one."
283 fi
284 exit 1
285 fi
286 fi
287 fi
288 SHELL=${CONFIG_SHELL-/bin/sh}
289 export SHELL
290 # Unset more variables known to interfere with behavior of common tools.
291 CLICOLOR_FORCE= GREP_OPTIONS=
292 unset CLICOLOR_FORCE GREP_OPTIONS
293
294 ## --------------------- ##
295 ## M4sh Shell Functions. ##
296 ## --------------------- ##
297 # as_fn_unset VAR
298 # ---------------
299 # Portably unset VAR.
300 as_fn_unset ()
301 {
302 { eval $1=; unset $1;}
303 }
304 as_unset=as_fn_unset
305
306
307 # as_fn_set_status STATUS
308 # -----------------------
309 # Set $? to STATUS, without forking.
310 as_fn_set_status ()
311 {
312 return $1
313 } # as_fn_set_status
314
315 # as_fn_exit STATUS
316 # -----------------
317 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
318 as_fn_exit ()
319 {
320 set +e
321 as_fn_set_status $1
322 exit $1
323 } # as_fn_exit
324 # as_fn_nop
325 # ---------
326 # Do nothing but, unlike ":", preserve the value of $?.
327 as_fn_nop ()
328 {
329 return $?
330 }
331 as_nop=as_fn_nop
332
333 # as_fn_mkdir_p
334 # -------------
335 # Create "$as_dir" as a directory, including parents if necessary.
336 as_fn_mkdir_p ()
337 {
338
339 case $as_dir in #(
340 -*) as_dir=./$as_dir;;
341 esac
342 test -d "$as_dir" || eval $as_mkdir_p || {
343 as_dirs=
344 while :; do
345 case $as_dir in #(
346 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
347 *) as_qdir=$as_dir;;
348 esac
349 as_dirs="'$as_qdir' $as_dirs"
350 as_dir=`$as_dirname -- "$as_dir" ||
351 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
352 X"$as_dir" : 'X\(//\)[^/]' \| \
353 X"$as_dir" : 'X\(//\)$' \| \
354 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
355 printf "%s\n" X"$as_dir" |
356 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
357 s//\1/
358 q
359 }
360 /^X\(\/\/\)[^/].*/{
361 s//\1/
362 q
363 }
364 /^X\(\/\/\)$/{
365 s//\1/
366 q
367 }
368 /^X\(\/\).*/{
369 s//\1/
370 q
371 }
372 s/.*/./; q'`
373 test -d "$as_dir" && break
374 done
375 test -z "$as_dirs" || eval "mkdir $as_dirs"
376 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
377
378
379 } # as_fn_mkdir_p
380
381 # as_fn_executable_p FILE
382 # -----------------------
383 # Test if FILE is an executable regular file.
384 as_fn_executable_p ()
385 {
386 test -f "$1" && test -x "$1"
387 } # as_fn_executable_p
388 # as_fn_append VAR VALUE
389 # ----------------------
390 # Append the text in VALUE to the end of the definition contained in VAR. Take
391 # advantage of any shell optimizations that allow amortized linear growth over
392 # repeated appends, instead of the typical quadratic growth present in naive
393 # implementations.
394 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
395 then :
396 eval 'as_fn_append ()
397 {
398 eval $1+=\$2
399 }'
400 else $as_nop
401 as_fn_append ()
402 {
403 eval $1=\$$1\$2
404 }
405 fi # as_fn_append
406
407 # as_fn_arith ARG...
408 # ------------------
409 # Perform arithmetic evaluation on the ARGs, and store the result in the
410 # global $as_val. Take advantage of shells that can avoid forks. The arguments
411 # must be portable across $(()) and expr.
412 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
413 then :
414 eval 'as_fn_arith ()
415 {
416 as_val=$(( $* ))
417 }'
418 else $as_nop
419 as_fn_arith ()
420 {
421 as_val=`expr "$@" || test $? -eq 1`
422 }
423 fi # as_fn_arith
424
425 # as_fn_nop
426 # ---------
427 # Do nothing but, unlike ":", preserve the value of $?.
428 as_fn_nop ()
429 {
430 return $?
431 }
432 as_nop=as_fn_nop
433
434 # as_fn_error STATUS ERROR [LINENO LOG_FD]
435 # ----------------------------------------
436 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
437 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
438 # script with STATUS, using 1 if that was 0.
439 as_fn_error ()
440 {
441 as_status=$1; test $as_status -eq 0 && as_status=1
442 if test "$4"; then
443 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
444 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
445 fi
446 printf "%s\n" "$as_me: error: $2" >&2
447 as_fn_exit $as_status
448 } # as_fn_error
449
450 if expr a : '\(a\)' >/dev/null 2>&1 &&
451 test "X`expr 00001 : '.*\(...\)'`" = X001; then
452 as_expr=expr
453 else
454 as_expr=false
455 fi
456
457 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
458 as_basename=basename
459 else
460 as_basename=false
461 fi
462
463 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
464 as_dirname=dirname
465 else
466 as_dirname=false
467 fi
468
469 as_me=`$as_basename -- "$0" ||
470 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
471 X"$0" : 'X\(//\)$' \| \
472 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
473 printf "%s\n" X/"$0" |
474 sed '/^.*\/\([^/][^/]*\)\/*$/{
475 s//\1/
476 q
477 }
478 /^X\/\(\/\/\)$/{
479 s//\1/
480 q
481 }
482 /^X\/\(\/\).*/{
483 s//\1/
484 q
485 }
486 s/.*/./; q'`
487
488 # Avoid depending upon Character Ranges.
489 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
490 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
491 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
492 as_cr_digits='0123456789'
493 as_cr_alnum=$as_cr_Letters$as_cr_digits
494
495
496 as_lineno_1=$LINENO as_lineno_1a=$LINENO
497 as_lineno_2=$LINENO as_lineno_2a=$LINENO
498 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
499 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
500 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
501 sed -n '
502 p
503 /[$]LINENO/=
504 ' <$as_myself |
505 sed '
506 s/[$]LINENO.*/&-/
507 t lineno
508 b
509 :lineno
510 N
511 :loop
512 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
513 t loop
514 s/-\n.*//
515 ' >$as_me.lineno &&
516 chmod +x "$as_me.lineno" ||
517 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
518
519 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
520 # already done that, so ensure we don't try to do so again and fall
521 # in an infinite loop. This has already happened in practice.
522 _as_can_reexec=no; export _as_can_reexec
523 # Don't try to exec as it changes $[0], causing all sort of problems
524 # (the dirname of $[0] is not the place where we might find the
525 # original and so on. Autoconf is especially sensitive to this).
526 . "./$as_me.lineno"
527 # Exit status is that of the last command.
528 exit
529 }
530
531
532 # Determine whether it's possible to make 'echo' print without a newline.
533 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
534 # for compatibility with existing Makefiles.
535 ECHO_C= ECHO_N= ECHO_T=
536 case `echo -n x` in #(((((
537 -n*)
538 case `echo 'xy\c'` in
539 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
540 xy) ECHO_C='\c';;
541 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
542 ECHO_T=' ';;
543 esac;;
544 *)
545 ECHO_N='-n';;
546 esac
547
548 # For backward compatibility with old third-party macros, we provide
549 # the shell variables $as_echo and $as_echo_n. New code should use
550 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
551 as_echo='printf %s\n'
552 as_echo_n='printf %s'
553
554
555 rm -f conf$$ conf$$.exe conf$$.file
556 if test -d conf$$.dir; then
557 rm -f conf$$.dir/conf$$.file
558 else
559 rm -f conf$$.dir
560 mkdir conf$$.dir 2>/dev/null
561 fi
562 if (echo >conf$$.file) 2>/dev/null; then
563 if ln -s conf$$.file conf$$ 2>/dev/null; then
564 as_ln_s='ln -s'
565 # ... but there are two gotchas:
566 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
567 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
568 # In both cases, we have to default to `cp -pR'.
569 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
570 as_ln_s='cp -pR'
571 elif ln conf$$.file conf$$ 2>/dev/null; then
572 as_ln_s=ln
573 else
574 as_ln_s='cp -pR'
575 fi
576 else
577 as_ln_s='cp -pR'
578 fi
579 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
580 rmdir conf$$.dir 2>/dev/null
581
582 if mkdir -p . 2>/dev/null; then
583 as_mkdir_p='mkdir -p "$as_dir"'
584 else
585 test -d ./-p && rmdir ./-p
586 as_mkdir_p=false
587 fi
588
589 as_test_x='test -x'
590 as_executable_p=as_fn_executable_p
591
592 # Sed expression to map a string onto a valid CPP name.
593 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
594
595 # Sed expression to map a string onto a valid variable name.
596 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
597
598 SHELL=${CONFIG_SHELL-/bin/sh}
599
600
601 test -n "$DJDIR" || exec 7<&0 </dev/null
602 exec 6>&1
603
604 # Name of the host.
605 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
606 # so uname gets run too.
607 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
608
609 #
610 # Initializations.
611 #
612 ac_default_prefix=/usr/local
613 ac_clean_files=
614 ac_config_libobj_dir=.
615 LIBOBJS=
616 cross_compiling=no
617 subdirs=
618 MFLAGS=
619 MAKEFLAGS=
620
621 # Identity of this package.
622 PACKAGE_NAME='Apache HTTP Server Request Library'
623 PACKAGE_TARNAME='libapreq2'
624 PACKAGE_VERSION='2.17'
625 PACKAGE_STRING='Apache HTTP Server Request Library 2.17'
626 PACKAGE_BUGREPORT='[email protected]'
627 PACKAGE_URL=''
628
629 # Factoring default headers for most tests.
630 ac_includes_default="\
631 #include <stddef.h>
632 #ifdef HAVE_STDIO_H
633 # include <stdio.h>
634 #endif
635 #ifdef HAVE_STDLIB_H
636 # include <stdlib.h>
637 #endif
638 #ifdef HAVE_STRING_H
639 # include <string.h>
640 #endif
641 #ifdef HAVE_INTTYPES_H
642 # include <inttypes.h>
643 #endif
644 #ifdef HAVE_STDINT_H
645 # include <stdint.h>
646 #endif
647 #ifdef HAVE_STRINGS_H
648 # include <strings.h>
649 #endif
650 #ifdef HAVE_SYS_TYPES_H
651 # include <sys/types.h>
652 #endif
653 #ifdef HAVE_SYS_STAT_H
654 # include <sys/stat.h>
655 #endif
656 #ifdef HAVE_UNISTD_H
657 # include <unistd.h>
658 #endif"
659
660 ac_header_c_list=
661 ac_subst_vars='am__EXEEXT_FALSE
662 am__EXEEXT_TRUE
663 LTLIBOBJS
664 LIBOBJS
665 APU_DOC_VERSION
666 APR_DOC_VERSION
667 TAR
668 MM_OPTS
669 PERL_OPTS
670 PERL
671 APU_LA
672 APR_LA
673 APR_LIBS
674 APR_LTFLAGS
675 APR_LDFLAGS
676 APR_INCLUDES
677 APR_CONFIG
678 APU_CONFIG
679 APACHE1_APXS
680 APACHE2_HTTPD
681 APACHE2_INCLUDES
682 APACHE2_SRC
683 APACHE2_APXS
684 APREQ_DOTTED_VERSION
685 APREQ_MAJOR_VERSION
686 APREQ_LIBTOOL_VERSION
687 APREQ_LIBNAME
688 APREQ_CONFIG
689 HAVE_APACHE1_FALSE
690 HAVE_APACHE1_TRUE
691 BUILD_APU_FALSE
692 BUILD_APU_TRUE
693 BUILD_APR_FALSE
694 BUILD_APR_TRUE
695 BUILD_HTTPD_FALSE
696 BUILD_HTTPD_TRUE
697 HAVE_APACHE_TEST_FALSE
698 HAVE_APACHE_TEST_TRUE
699 BUILD_PERL_GLUE_FALSE
700 BUILD_PERL_GLUE_TRUE
701 ENABLE_PROFILE_FALSE
702 ENABLE_PROFILE_TRUE
703 MAINT
704 MAINTAINER_MODE_FALSE
705 MAINTAINER_MODE_TRUE
706 LT_SYS_LIBRARY_PATH
707 OTOOL64
708 OTOOL
709 LIPO
710 NMEDIT
711 DSYMUTIL
712 MANIFEST_TOOL
713 RANLIB
714 ac_ct_AR
715 AR
716 DLLTOOL
717 OBJDUMP
718 FILECMD
719 LN_S
720 NM
721 ac_ct_DUMPBIN
722 DUMPBIN
723 LD
724 FGREP
725 EGREP
726 GREP
727 SED
728 host_os
729 host_vendor
730 host_cpu
731 host
732 build_os
733 build_vendor
734 build_cpu
735 build
736 LIBTOOL
737 am__fastdepCC_FALSE
738 am__fastdepCC_TRUE
739 CCDEPMODE
740 am__nodep
741 AMDEPBACKSLASH
742 AMDEP_FALSE
743 AMDEP_TRUE
744 am__include
745 DEPDIR
746 OBJEXT
747 EXEEXT
748 ac_ct_CC
749 CPPFLAGS
750 LDFLAGS
751 CFLAGS
752 CC
753 AM_BACKSLASH
754 AM_DEFAULT_VERBOSITY
755 AM_DEFAULT_V
756 AM_V
757 CSCOPE
758 ETAGS
759 CTAGS
760 am__untar
761 am__tar
762 AMTAR
763 am__leading_dot
764 SET_MAKE
765 AWK
766 mkdir_p
767 MKDIR_P
768 INSTALL_STRIP_PROGRAM
769 STRIP
770 install_sh
771 MAKEINFO
772 AUTOHEADER
773 AUTOMAKE
774 AUTOCONF
775 ACLOCAL
776 VERSION
777 PACKAGE
778 CYGPATH_W
779 am__isrc
780 INSTALL_DATA
781 INSTALL_SCRIPT
782 INSTALL_PROGRAM
783 target_alias
784 host_alias
785 build_alias
786 LIBS
787 ECHO_T
788 ECHO_N
789 ECHO_C
790 DEFS
791 mandir
792 localedir
793 libdir
794 psdir
795 pdfdir
796 dvidir
797 htmldir
798 infodir
799 docdir
800 oldincludedir
801 includedir
802 runstatedir
803 localstatedir
804 sharedstatedir
805 sysconfdir
806 datadir
807 datarootdir
808 libexecdir
809 sbindir
810 bindir
811 program_transform_name
812 prefix
813 exec_prefix
814 PACKAGE_URL
815 PACKAGE_BUGREPORT
816 PACKAGE_STRING
817 PACKAGE_VERSION
818 PACKAGE_TARNAME
819 PACKAGE_NAME
820 PATH_SEPARATOR
821 SHELL
822 am__quote'
823 ac_subst_files=''
824 ac_user_opts='
825 enable_option_checking
826 enable_silent_rules
827 enable_dependency_tracking
828 enable_shared
829 enable_static
830 with_pic
831 enable_fast_install
832 with_aix_soname
833 with_gnu_ld
834 with_sysroot
835 enable_libtool_lock
836 enable_maintainer_mode
837 enable_profile
838 enable_perl_glue
839 with_perl
840 with_apache2_apxs
841 with_apache2_src
842 with_apache2_httpd
843 with_apr_config
844 with_apu_config
845 with_apache1_apxs
846 with_perl_opts
847 with_mm_opts
848 with_expat
849 '
850 ac_precious_vars='build_alias
851 host_alias
852 target_alias
853 CC
854 CFLAGS
855 LDFLAGS
856 LIBS
857 CPPFLAGS
858 LT_SYS_LIBRARY_PATH'
859
860
861 # Initialize some variables set by options.
862 ac_init_help=
863 ac_init_version=false
864 ac_unrecognized_opts=
865 ac_unrecognized_sep=
866 # The variables have the same names as the options, with
867 # dashes changed to underlines.
868 cache_file=/dev/null
869 exec_prefix=NONE
870 no_create=
871 no_recursion=
872 prefix=NONE
873 program_prefix=NONE
874 program_suffix=NONE
875 program_transform_name=s,x,x,
876 silent=
877 site=
878 srcdir=
879 verbose=
880 x_includes=NONE
881 x_libraries=NONE
882
883 # Installation directory options.
884 # These are left unexpanded so users can "make install exec_prefix=/foo"
885 # and all the variables that are supposed to be based on exec_prefix
886 # by default will actually change.
887 # Use braces instead of parens because sh, perl, etc. also accept them.
888 # (The list follows the same order as the GNU Coding Standards.)
889 bindir='${exec_prefix}/bin'
890 sbindir='${exec_prefix}/sbin'
891 libexecdir='${exec_prefix}/libexec'
892 datarootdir='${prefix}/share'
893 datadir='${datarootdir}'
894 sysconfdir='${prefix}/etc'
895 sharedstatedir='${prefix}/com'
896 localstatedir='${prefix}/var'
897 runstatedir='${localstatedir}/run'
898 includedir='${prefix}/include'
899 oldincludedir='/usr/include'
900 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
901 infodir='${datarootdir}/info'
902 htmldir='${docdir}'
903 dvidir='${docdir}'
904 pdfdir='${docdir}'
905 psdir='${docdir}'
906 libdir='${exec_prefix}/lib'
907 localedir='${datarootdir}/locale'
908 mandir='${datarootdir}/man'
909
910 ac_prev=
911 ac_dashdash=
912 for ac_option
913 do
914 # If the previous option needs an argument, assign it.
915 if test -n "$ac_prev"; then
916 eval $ac_prev=\$ac_option
917 ac_prev=
918 continue
919 fi
920
921 case $ac_option in
922 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
923 *=) ac_optarg= ;;
924 *) ac_optarg=yes ;;
925 esac
926
927 case $ac_dashdash$ac_option in
928 --)
929 ac_dashdash=yes ;;
930
931 -bindir | --bindir | --bindi | --bind | --bin | --bi)
932 ac_prev=bindir ;;
933 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
934 bindir=$ac_optarg ;;
935
936 -build | --build | --buil | --bui | --bu)
937 ac_prev=build_alias ;;
938 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
939 build_alias=$ac_optarg ;;
940
941 -cache-file | --cache-file | --cache-fil | --cache-fi \
942 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
943 ac_prev=cache_file ;;
944 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
945 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
946 cache_file=$ac_optarg ;;
947
948 --config-cache | -C)
949 cache_file=config.cache ;;
950
951 -datadir | --datadir | --datadi | --datad)
952 ac_prev=datadir ;;
953 -datadir=* | --datadir=* | --datadi=* | --datad=*)
954 datadir=$ac_optarg ;;
955
956 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
957 | --dataroo | --dataro | --datar)
958 ac_prev=datarootdir ;;
959 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
960 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
961 datarootdir=$ac_optarg ;;
962
963 -disable-* | --disable-*)
964 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
965 # Reject names that are not valid shell variable names.
966 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
967 as_fn_error $? "invalid feature name: \`$ac_useropt'"
968 ac_useropt_orig=$ac_useropt
969 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
970 case $ac_user_opts in
971 *"
972 "enable_$ac_useropt"
973 "*) ;;
974 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
975 ac_unrecognized_sep=', ';;
976 esac
977 eval enable_$ac_useropt=no ;;
978
979 -docdir | --docdir | --docdi | --doc | --do)
980 ac_prev=docdir ;;
981 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
982 docdir=$ac_optarg ;;
983
984 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
985 ac_prev=dvidir ;;
986 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
987 dvidir=$ac_optarg ;;
988
989 -enable-* | --enable-*)
990 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
991 # Reject names that are not valid shell variable names.
992 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
993 as_fn_error $? "invalid feature name: \`$ac_useropt'"
994 ac_useropt_orig=$ac_useropt
995 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
996 case $ac_user_opts in
997 *"
998 "enable_$ac_useropt"
999 "*) ;;
1000 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1001 ac_unrecognized_sep=', ';;
1002 esac
1003 eval enable_$ac_useropt=\$ac_optarg ;;
1004
1005 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1006 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1007 | --exec | --exe | --ex)
1008 ac_prev=exec_prefix ;;
1009 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1010 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1011 | --exec=* | --exe=* | --ex=*)
1012 exec_prefix=$ac_optarg ;;
1013
1014 -gas | --gas | --ga | --g)
1015 # Obsolete; use --with-gas.
1016 with_gas=yes ;;
1017
1018 -help | --help | --hel | --he | -h)
1019 ac_init_help=long ;;
1020 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1021 ac_init_help=recursive ;;
1022 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1023 ac_init_help=short ;;
1024
1025 -host | --host | --hos | --ho)
1026 ac_prev=host_alias ;;
1027 -host=* | --host=* | --hos=* | --ho=*)
1028 host_alias=$ac_optarg ;;
1029
1030 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1031 ac_prev=htmldir ;;
1032 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1033 | --ht=*)
1034 htmldir=$ac_optarg ;;
1035
1036 -includedir | --includedir | --includedi | --included | --include \
1037 | --includ | --inclu | --incl | --inc)
1038 ac_prev=includedir ;;
1039 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1040 | --includ=* | --inclu=* | --incl=* | --inc=*)
1041 includedir=$ac_optarg ;;
1042
1043 -infodir | --infodir | --infodi | --infod | --info | --inf)
1044 ac_prev=infodir ;;
1045 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1046 infodir=$ac_optarg ;;
1047
1048 -libdir | --libdir | --libdi | --libd)
1049 ac_prev=libdir ;;
1050 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1051 libdir=$ac_optarg ;;
1052
1053 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1054 | --libexe | --libex | --libe)
1055 ac_prev=libexecdir ;;
1056 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1057 | --libexe=* | --libex=* | --libe=*)
1058 libexecdir=$ac_optarg ;;
1059
1060 -localedir | --localedir | --localedi | --localed | --locale)
1061 ac_prev=localedir ;;
1062 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1063 localedir=$ac_optarg ;;
1064
1065 -localstatedir | --localstatedir | --localstatedi | --localstated \
1066 | --localstate | --localstat | --localsta | --localst | --locals)
1067 ac_prev=localstatedir ;;
1068 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1069 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1070 localstatedir=$ac_optarg ;;
1071
1072 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1073 ac_prev=mandir ;;
1074 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1075 mandir=$ac_optarg ;;
1076
1077 -nfp | --nfp | --nf)
1078 # Obsolete; use --without-fp.
1079 with_fp=no ;;
1080
1081 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1082 | --no-cr | --no-c | -n)
1083 no_create=yes ;;
1084
1085 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1086 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1087 no_recursion=yes ;;
1088
1089 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1090 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1091 | --oldin | --oldi | --old | --ol | --o)
1092 ac_prev=oldincludedir ;;
1093 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1094 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1095 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1096 oldincludedir=$ac_optarg ;;
1097
1098 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1099 ac_prev=prefix ;;
1100 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1101 prefix=$ac_optarg ;;
1102
1103 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1104 | --program-pre | --program-pr | --program-p)
1105 ac_prev=program_prefix ;;
1106 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1107 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1108 program_prefix=$ac_optarg ;;
1109
1110 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1111 | --program-suf | --program-su | --program-s)
1112 ac_prev=program_suffix ;;
1113 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1114 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1115 program_suffix=$ac_optarg ;;
1116
1117 -program-transform-name | --program-transform-name \
1118 | --program-transform-nam | --program-transform-na \
1119 | --program-transform-n | --program-transform- \
1120 | --program-transform | --program-transfor \
1121 | --program-transfo | --program-transf \
1122 | --program-trans | --program-tran \
1123 | --progr-tra | --program-tr | --program-t)
1124 ac_prev=program_transform_name ;;
1125 -program-transform-name=* | --program-transform-name=* \
1126 | --program-transform-nam=* | --program-transform-na=* \
1127 | --program-transform-n=* | --program-transform-=* \
1128 | --program-transform=* | --program-transfor=* \
1129 | --program-transfo=* | --program-transf=* \
1130 | --program-trans=* | --program-tran=* \
1131 | --progr-tra=* | --program-tr=* | --program-t=*)
1132 program_transform_name=$ac_optarg ;;
1133
1134 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1135 ac_prev=pdfdir ;;
1136 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1137 pdfdir=$ac_optarg ;;
1138
1139 -psdir | --psdir | --psdi | --psd | --ps)
1140 ac_prev=psdir ;;
1141 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1142 psdir=$ac_optarg ;;
1143
1144 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1145 | -silent | --silent | --silen | --sile | --sil)
1146 silent=yes ;;
1147
1148 -runstatedir | --runstatedir | --runstatedi | --runstated \
1149 | --runstate | --runstat | --runsta | --runst | --runs \
1150 | --run | --ru | --r)
1151 ac_prev=runstatedir ;;
1152 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1153 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1154 | --run=* | --ru=* | --r=*)
1155 runstatedir=$ac_optarg ;;
1156
1157 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1158 ac_prev=sbindir ;;
1159 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1160 | --sbi=* | --sb=*)
1161 sbindir=$ac_optarg ;;
1162
1163 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1164 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1165 | --sharedst | --shareds | --shared | --share | --shar \
1166 | --sha | --sh)
1167 ac_prev=sharedstatedir ;;
1168 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1169 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1170 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1171 | --sha=* | --sh=*)
1172 sharedstatedir=$ac_optarg ;;
1173
1174 -site | --site | --sit)
1175 ac_prev=site ;;
1176 -site=* | --site=* | --sit=*)
1177 site=$ac_optarg ;;
1178
1179 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1180 ac_prev=srcdir ;;
1181 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1182 srcdir=$ac_optarg ;;
1183
1184 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1185 | --syscon | --sysco | --sysc | --sys | --sy)
1186 ac_prev=sysconfdir ;;
1187 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1188 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1189 sysconfdir=$ac_optarg ;;
1190
1191 -target | --target | --targe | --targ | --tar | --ta | --t)
1192 ac_prev=target_alias ;;
1193 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1194 target_alias=$ac_optarg ;;
1195
1196 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1197 verbose=yes ;;
1198
1199 -version | --version | --versio | --versi | --vers | -V)
1200 ac_init_version=: ;;
1201
1202 -with-* | --with-*)
1203 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1204 # Reject names that are not valid shell variable names.
1205 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1206 as_fn_error $? "invalid package name: \`$ac_useropt'"
1207 ac_useropt_orig=$ac_useropt
1208 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1209 case $ac_user_opts in
1210 *"
1211 "with_$ac_useropt"
1212 "*) ;;
1213 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1214 ac_unrecognized_sep=', ';;
1215 esac
1216 eval with_$ac_useropt=\$ac_optarg ;;
1217
1218 -without-* | --without-*)
1219 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1220 # Reject names that are not valid shell variable names.
1221 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1222 as_fn_error $? "invalid package name: \`$ac_useropt'"
1223 ac_useropt_orig=$ac_useropt
1224 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1225 case $ac_user_opts in
1226 *"
1227 "with_$ac_useropt"
1228 "*) ;;
1229 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1230 ac_unrecognized_sep=', ';;
1231 esac
1232 eval with_$ac_useropt=no ;;
1233
1234 --x)
1235 # Obsolete; use --with-x.
1236 with_x=yes ;;
1237
1238 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1239 | --x-incl | --x-inc | --x-in | --x-i)
1240 ac_prev=x_includes ;;
1241 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1242 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1243 x_includes=$ac_optarg ;;
1244
1245 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1246 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1247 ac_prev=x_libraries ;;
1248 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1249 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1250 x_libraries=$ac_optarg ;;
1251
1252 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1253 Try \`$0 --help' for more information"
1254 ;;
1255
1256 *=*)
1257 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1258 # Reject names that are not valid shell variable names.
1259 case $ac_envvar in #(
1260 '' | [0-9]* | *[!_$as_cr_alnum]* )
1261 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1262 esac
1263 eval $ac_envvar=\$ac_optarg
1264 export $ac_envvar ;;
1265
1266 *)
1267 # FIXME: should be removed in autoconf 3.0.
1268 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1269 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1270 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1271 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1272 ;;
1273
1274 esac
1275 done
1276
1277 if test -n "$ac_prev"; then
1278 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1279 as_fn_error $? "missing argument to $ac_option"
1280 fi
1281
1282 if test -n "$ac_unrecognized_opts"; then
1283 case $enable_option_checking in
1284 no) ;;
1285 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1286 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1287 esac
1288 fi
1289
1290 # Check all directory arguments for consistency.
1291 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1292 datadir sysconfdir sharedstatedir localstatedir includedir \
1293 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1294 libdir localedir mandir runstatedir
1295 do
1296 eval ac_val=\$$ac_var
1297 # Remove trailing slashes.
1298 case $ac_val in
1299 */ )
1300 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1301 eval $ac_var=\$ac_val;;
1302 esac
1303 # Be sure to have absolute directory names.
1304 case $ac_val in
1305 [\\/$]* | ?:[\\/]* ) continue;;
1306 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1307 esac
1308 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1309 done
1310
1311 # There might be people who depend on the old broken behavior: `$host'
1312 # used to hold the argument of --host etc.
1313 # FIXME: To remove some day.
1314 build=$build_alias
1315 host=$host_alias
1316 target=$target_alias
1317
1318 # FIXME: To remove some day.
1319 if test "x$host_alias" != x; then
1320 if test "x$build_alias" = x; then
1321 cross_compiling=maybe
1322 elif test "x$build_alias" != "x$host_alias"; then
1323 cross_compiling=yes
1324 fi
1325 fi
1326
1327 ac_tool_prefix=
1328 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1329
1330 test "$silent" = yes && exec 6>/dev/null
1331
1332
1333 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1334 ac_ls_di=`ls -di .` &&
1335 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1336 as_fn_error $? "working directory cannot be determined"
1337 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1338 as_fn_error $? "pwd does not report name of working directory"
1339
1340
1341 # Find the source files, if location was not specified.
1342 if test -z "$srcdir"; then
1343 ac_srcdir_defaulted=yes
1344 # Try the directory containing this script, then the parent directory.
1345 ac_confdir=`$as_dirname -- "$as_myself" ||
1346 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1347 X"$as_myself" : 'X\(//\)[^/]' \| \
1348 X"$as_myself" : 'X\(//\)$' \| \
1349 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1350 printf "%s\n" X"$as_myself" |
1351 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1352 s//\1/
1353 q
1354 }
1355 /^X\(\/\/\)[^/].*/{
1356 s//\1/
1357 q
1358 }
1359 /^X\(\/\/\)$/{
1360 s//\1/
1361 q
1362 }
1363 /^X\(\/\).*/{
1364 s//\1/
1365 q
1366 }
1367 s/.*/./; q'`
1368 srcdir=$ac_confdir
1369 if test ! -r "$srcdir/$ac_unique_file"; then
1370 srcdir=..
1371 fi
1372 else
1373 ac_srcdir_defaulted=no
1374 fi
1375 if test ! -r "$srcdir/$ac_unique_file"; then
1376 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1377 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1378 fi
1379 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1380 ac_abs_confdir=`(
1381 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1382 pwd)`
1383 # When building in place, set srcdir=.
1384 if test "$ac_abs_confdir" = "$ac_pwd"; then
1385 srcdir=.
1386 fi
1387 # Remove unnecessary trailing slashes from srcdir.
1388 # Double slashes in file names in object file debugging info
1389 # mess up M-x gdb in Emacs.
1390 case $srcdir in
1391 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1392 esac
1393 for ac_var in $ac_precious_vars; do
1394 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1395 eval ac_env_${ac_var}_value=\$${ac_var}
1396 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1397 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1398 done
1399
1400 #
1401 # Report the --help message.
1402 #
1403 if test "$ac_init_help" = "long"; then
1404 # Omit some internal or obsolete options to make the list less imposing.
1405 # This message is too long to be a string in the A/UX 3.1 sh.
1406 cat <<_ACEOF
1407 \`configure' configures Apache HTTP Server Request Library 2.17 to adapt to many kinds of systems.
1408
1409 Usage: $0 [OPTION]... [VAR=VALUE]...
1410
1411 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1412 VAR=VALUE. See below for descriptions of some of the useful variables.
1413
1414 Defaults for the options are specified in brackets.
1415
1416 Configuration:
1417 -h, --help display this help and exit
1418 --help=short display options specific to this package
1419 --help=recursive display the short help of all the included packages
1420 -V, --version display version information and exit
1421 -q, --quiet, --silent do not print \`checking ...' messages
1422 --cache-file=FILE cache test results in FILE [disabled]
1423 -C, --config-cache alias for \`--cache-file=config.cache'
1424 -n, --no-create do not create output files
1425 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1426
1427 Installation directories:
1428 --prefix=PREFIX install architecture-independent files in PREFIX
1429 [$ac_default_prefix]
1430 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1431 [PREFIX]
1432
1433 By default, \`make install' will install all the files in
1434 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1435 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1436 for instance \`--prefix=\$HOME'.
1437
1438 For better control, use the options below.
1439
1440 Fine tuning of the installation directories:
1441 --bindir=DIR user executables [EPREFIX/bin]
1442 --sbindir=DIR system admin executables [EPREFIX/sbin]
1443 --libexecdir=DIR program executables [EPREFIX/libexec]
1444 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1445 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1446 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1447 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1448 --libdir=DIR object code libraries [EPREFIX/lib]
1449 --includedir=DIR C header files [PREFIX/include]
1450 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1451 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1452 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1453 --infodir=DIR info documentation [DATAROOTDIR/info]
1454 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1455 --mandir=DIR man documentation [DATAROOTDIR/man]
1456 --docdir=DIR documentation root [DATAROOTDIR/doc/libapreq2]
1457 --htmldir=DIR html documentation [DOCDIR]
1458 --dvidir=DIR dvi documentation [DOCDIR]
1459 --pdfdir=DIR pdf documentation [DOCDIR]
1460 --psdir=DIR ps documentation [DOCDIR]
1461 _ACEOF
1462
1463 cat <<\_ACEOF
1464
1465 Program names:
1466 --program-prefix=PREFIX prepend PREFIX to installed program names
1467 --program-suffix=SUFFIX append SUFFIX to installed program names
1468 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1469
1470 System types:
1471 --build=BUILD configure for building on BUILD [guessed]
1472 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1473 _ACEOF
1474 fi
1475
1476 if test -n "$ac_init_help"; then
1477 case $ac_init_help in
1478 short | recursive ) echo "Configuration of Apache HTTP Server Request Library 2.17:";;
1479 esac
1480 cat <<\_ACEOF
1481
1482 Optional Features:
1483 --disable-option-checking ignore unrecognized --enable/--with options
1484 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1485 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1486 --enable-silent-rules less verbose build output (undo: "make V=1")
1487 --disable-silent-rules verbose build output (undo: "make V=0")
1488 --enable-dependency-tracking
1489 do not reject slow dependency extractors
1490 --disable-dependency-tracking
1491 speeds up one-time build
1492 --enable-shared[=PKGS] build shared libraries [default=yes]
1493 --enable-static[=PKGS] build static libraries [default=yes]
1494 --enable-fast-install[=PKGS]
1495 optimize for fast installation [default=yes]
1496 --disable-libtool-lock avoid locking (might break parallel builds)
1497 --enable-maintainer-mode
1498 enable make rules and dependencies not useful (and
1499 sometimes confusing) to the casual installer
1500 --enable-profile compile libapreq2 with "-pg -fprofile-arcs
1501 -ftest-coverage" for gcov/gprof
1502 --enable-perl-glue build perl modules Apache::Request and
1503 Apache::Cookie
1504
1505 Optional Packages:
1506 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1507 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1508 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1509 both]
1510 --with-aix-soname=aix|svr4|both
1511 shared library versioning (aka "SONAME") variant to
1512 provide on AIX, [default=aix].
1513 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1514 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1515 compiler's sysroot if not specified).
1516 --with-perl path to perl executable
1517 --with-apache2-apxs path to apache2's apxs
1518 --with-apache2-src path to httpd source
1519 --with-apache2-httpd path to httpd binary
1520 --with-apr-config path to apr-*-config script
1521 --with-apu-config path to apu-*-config script
1522 --with-apache1-apxs path to apache1's apxs
1523 --with-perl-opts extra PERL options
1524 --with-mm-opts extra ExtUtils::MakeMaker options
1525 --with-expat specify expat location
1526
1527 Some influential environment variables:
1528 CC C compiler command
1529 CFLAGS C compiler flags
1530 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1531 nonstandard directory <lib dir>
1532 LIBS libraries to pass to the linker, e.g. -l<library>
1533 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1534 you have headers in a nonstandard directory <include dir>
1535 LT_SYS_LIBRARY_PATH
1536 User-defined run-time library search path.
1537
1538 Use these variables to override the choices made by `configure' or to help
1539 it to find libraries and programs with nonstandard names/locations.
1540
1541 Report bugs to <[email protected]>.
1542 _ACEOF
1543 ac_status=$?
1544 fi
1545
1546 if test "$ac_init_help" = "recursive"; then
1547 # If there are subdirs, report their specific --help.
1548 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1549 test -d "$ac_dir" ||
1550 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1551 continue
1552 ac_builddir=.
1553
1554 case "$ac_dir" in
1555 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1556 *)
1557 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1558 # A ".." for each directory in $ac_dir_suffix.
1559 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1560 case $ac_top_builddir_sub in
1561 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1562 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1563 esac ;;
1564 esac
1565 ac_abs_top_builddir=$ac_pwd
1566 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1567 # for backward compatibility:
1568 ac_top_builddir=$ac_top_build_prefix
1569
1570 case $srcdir in
1571 .) # We are building in place.
1572 ac_srcdir=.
1573 ac_top_srcdir=$ac_top_builddir_sub
1574 ac_abs_top_srcdir=$ac_pwd ;;
1575 [\\/]* | ?:[\\/]* ) # Absolute name.
1576 ac_srcdir=$srcdir$ac_dir_suffix;
1577 ac_top_srcdir=$srcdir
1578 ac_abs_top_srcdir=$srcdir ;;
1579 *) # Relative name.
1580 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1581 ac_top_srcdir=$ac_top_build_prefix$srcdir
1582 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1583 esac
1584 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1585
1586 cd "$ac_dir" || { ac_status=$?; continue; }
1587 # Check for configure.gnu first; this name is used for a wrapper for
1588 # Metaconfig's "Configure" on case-insensitive file systems.
1589 if test -f "$ac_srcdir/configure.gnu"; then
1590 echo &&
1591 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1592 elif test -f "$ac_srcdir/configure"; then
1593 echo &&
1594 $SHELL "$ac_srcdir/configure" --help=recursive
1595 else
1596 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1597 fi || ac_status=$?
1598 cd "$ac_pwd" || { ac_status=$?; break; }
1599 done
1600 fi
1601
1602 test -n "$ac_init_help" && exit $ac_status
1603 if $ac_init_version; then
1604 cat <<\_ACEOF
1605 Apache HTTP Server Request Library configure 2.17
1606 generated by GNU Autoconf 2.71
1607
1608 Copyright (C) 2021 Free Software Foundation, Inc.
1609 This configure script is free software; the Free Software Foundation
1610 gives unlimited permission to copy, distribute and modify it.
1611 _ACEOF
1612 exit
1613 fi
1614
1615 ## ------------------------ ##
1616 ## Autoconf initialization. ##
1617 ## ------------------------ ##
1618
1619 # ac_fn_c_try_compile LINENO
1620 # --------------------------
1621 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1622 ac_fn_c_try_compile ()
1623 {
1624 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1625 rm -f conftest.$ac_objext conftest.beam
1626 if { { ac_try="$ac_compile"
1627 case "(($ac_try" in
1628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1629 *) ac_try_echo=$ac_try;;
1630 esac
1631 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1632 printf "%s\n" "$ac_try_echo"; } >&5
1633 (eval "$ac_compile") 2>conftest.err
1634 ac_status=$?
1635 if test -s conftest.err; then
1636 grep -v '^ *+' conftest.err >conftest.er1
1637 cat conftest.er1 >&5
1638 mv -f conftest.er1 conftest.err
1639 fi
1640 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1641 test $ac_status = 0; } && {
1642 test -z "$ac_c_werror_flag" ||
1643 test ! -s conftest.err
1644 } && test -s conftest.$ac_objext
1645 then :
1646 ac_retval=0
1647 else $as_nop
1648 printf "%s\n" "$as_me: failed program was:" >&5
1649 sed 's/^/| /' conftest.$ac_ext >&5
1650
1651 ac_retval=1
1652 fi
1653 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1654 as_fn_set_status $ac_retval
1655
1656 } # ac_fn_c_try_compile
1657
1658 # ac_fn_c_try_link LINENO
1659 # -----------------------
1660 # Try to link conftest.$ac_ext, and return whether this succeeded.
1661 ac_fn_c_try_link ()
1662 {
1663 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1664 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1665 if { { ac_try="$ac_link"
1666 case "(($ac_try" in
1667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1668 *) ac_try_echo=$ac_try;;
1669 esac
1670 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1671 printf "%s\n" "$ac_try_echo"; } >&5
1672 (eval "$ac_link") 2>conftest.err
1673 ac_status=$?
1674 if test -s conftest.err; then
1675 grep -v '^ *+' conftest.err >conftest.er1
1676 cat conftest.er1 >&5
1677 mv -f conftest.er1 conftest.err
1678 fi
1679 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1680 test $ac_status = 0; } && {
1681 test -z "$ac_c_werror_flag" ||
1682 test ! -s conftest.err
1683 } && test -s conftest$ac_exeext && {
1684 test "$cross_compiling" = yes ||
1685 test -x conftest$ac_exeext
1686 }
1687 then :
1688 ac_retval=0
1689 else $as_nop
1690 printf "%s\n" "$as_me: failed program was:" >&5
1691 sed 's/^/| /' conftest.$ac_ext >&5
1692
1693 ac_retval=1
1694 fi
1695 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1696 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1697 # interfere with the next link command; also delete a directory that is
1698 # left behind by Apple's compiler. We do this before executing the actions.
1699 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1700 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1701 as_fn_set_status $ac_retval
1702
1703 } # ac_fn_c_try_link
1704
1705 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1706 # -------------------------------------------------------
1707 # Tests whether HEADER exists and can be compiled using the include files in
1708 # INCLUDES, setting the cache variable VAR accordingly.
1709 ac_fn_c_check_header_compile ()
1710 {
1711 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1712 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1713 printf %s "checking for $2... " >&6; }
1714 if eval test \${$3+y}
1715 then :
1716 printf %s "(cached) " >&6
1717 else $as_nop
1718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1719 /* end confdefs.h. */
1720 $4
1721 #include <$2>
1722 _ACEOF
1723 if ac_fn_c_try_compile "$LINENO"
1724 then :
1725 eval "$3=yes"
1726 else $as_nop
1727 eval "$3=no"
1728 fi
1729 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1730 fi
1731 eval ac_res=\$$3
1732 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1733 printf "%s\n" "$ac_res" >&6; }
1734 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1735
1736 } # ac_fn_c_check_header_compile
1737
1738 # ac_fn_c_check_func LINENO FUNC VAR
1739 # ----------------------------------
1740 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1741 ac_fn_c_check_func ()
1742 {
1743 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1744 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1745 printf %s "checking for $2... " >&6; }
1746 if eval test \${$3+y}
1747 then :
1748 printf %s "(cached) " >&6
1749 else $as_nop
1750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1751 /* end confdefs.h. */
1752 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1753 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1754 #define $2 innocuous_$2
1755
1756 /* System header to define __stub macros and hopefully few prototypes,
1757 which can conflict with char $2 (); below. */
1758
1759 #include <limits.h>
1760 #undef $2
1761
1762 /* Override any GCC internal prototype to avoid an error.
1763 Use char because int might match the return type of a GCC
1764 builtin and then its argument prototype would still apply. */
1765 #ifdef __cplusplus
1766 extern "C"
1767 #endif
1768 char $2 ();
1769 /* The GNU C library defines this for functions which it implements
1770 to always fail with ENOSYS. Some functions are actually named
1771 something starting with __ and the normal name is an alias. */
1772 #if defined __stub_$2 || defined __stub___$2
1773 choke me
1774 #endif
1775
1776 int
1777 main (void)
1778 {
1779 return $2 ();
1780 ;
1781 return 0;
1782 }
1783 _ACEOF
1784 if ac_fn_c_try_link "$LINENO"
1785 then :
1786 eval "$3=yes"
1787 else $as_nop
1788 eval "$3=no"
1789 fi
1790 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1791 conftest$ac_exeext conftest.$ac_ext
1792 fi
1793 eval ac_res=\$$3
1794 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1795 printf "%s\n" "$ac_res" >&6; }
1796 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1797
1798 } # ac_fn_c_check_func
1799 ac_configure_args_raw=
1800 for ac_arg
1801 do
1802 case $ac_arg in
1803 *\'*)
1804 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1805 esac
1806 as_fn_append ac_configure_args_raw " '$ac_arg'"
1807 done
1808
1809 case $ac_configure_args_raw in
1810 *$as_nl*)
1811 ac_safe_unquote= ;;
1812 *)
1813 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
1814 ac_unsafe_a="$ac_unsafe_z#~"
1815 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1816 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1817 esac
1818
1819 cat >config.log <<_ACEOF
1820 This file contains any messages produced by compilers while
1821 running configure, to aid debugging if configure makes a mistake.
1822
1823 It was created by Apache HTTP Server Request Library $as_me 2.17, which was
1824 generated by GNU Autoconf 2.71. Invocation command line was
1825
1826 $ $0$ac_configure_args_raw
1827
1828 _ACEOF
1829 exec 5>>config.log
1830 {
1831 cat <<_ASUNAME
1832 ## --------- ##
1833 ## Platform. ##
1834 ## --------- ##
1835
1836 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1837 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1838 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1839 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1840 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1841
1842 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1843 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1844
1845 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1846 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1847 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1848 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1849 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1850 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1851 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1852
1853 _ASUNAME
1854
1855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1856 for as_dir in $PATH
1857 do
1858 IFS=$as_save_IFS
1859 case $as_dir in #(((
1860 '') as_dir=./ ;;
1861 */) ;;
1862 *) as_dir=$as_dir/ ;;
1863 esac
1864 printf "%s\n" "PATH: $as_dir"
1865 done
1866 IFS=$as_save_IFS
1867
1868 } >&5
1869
1870 cat >&5 <<_ACEOF
1871
1872
1873 ## ----------- ##
1874 ## Core tests. ##
1875 ## ----------- ##
1876
1877 _ACEOF
1878
1879
1880 # Keep a trace of the command line.
1881 # Strip out --no-create and --no-recursion so they do not pile up.
1882 # Strip out --silent because we don't want to record it for future runs.
1883 # Also quote any args containing shell meta-characters.
1884 # Make two passes to allow for proper duplicate-argument suppression.
1885 ac_configure_args=
1886 ac_configure_args0=
1887 ac_configure_args1=
1888 ac_must_keep_next=false
1889 for ac_pass in 1 2
1890 do
1891 for ac_arg
1892 do
1893 case $ac_arg in
1894 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1895 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1896 | -silent | --silent | --silen | --sile | --sil)
1897 continue ;;
1898 *\'*)
1899 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1900 esac
1901 case $ac_pass in
1902 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1903 2)
1904 as_fn_append ac_configure_args1 " '$ac_arg'"
1905 if test $ac_must_keep_next = true; then
1906 ac_must_keep_next=false # Got value, back to normal.
1907 else
1908 case $ac_arg in
1909 *=* | --config-cache | -C | -disable-* | --disable-* \
1910 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1911 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1912 | -with-* | --with-* | -without-* | --without-* | --x)
1913 case "$ac_configure_args0 " in
1914 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1915 esac
1916 ;;
1917 -* ) ac_must_keep_next=true ;;
1918 esac
1919 fi
1920 as_fn_append ac_configure_args " '$ac_arg'"
1921 ;;
1922 esac
1923 done
1924 done
1925 { ac_configure_args0=; unset ac_configure_args0;}
1926 { ac_configure_args1=; unset ac_configure_args1;}
1927
1928 # When interrupted or exit'd, cleanup temporary files, and complete
1929 # config.log. We remove comments because anyway the quotes in there
1930 # would cause problems or look ugly.
1931 # WARNING: Use '\'' to represent an apostrophe within the trap.
1932 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1933 trap 'exit_status=$?
1934 # Sanitize IFS.
1935 IFS=" "" $as_nl"
1936 # Save into config.log some information that might help in debugging.
1937 {
1938 echo
1939
1940 printf "%s\n" "## ---------------- ##
1941 ## Cache variables. ##
1942 ## ---------------- ##"
1943 echo
1944 # The following way of writing the cache mishandles newlines in values,
1945 (
1946 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1947 eval ac_val=\$$ac_var
1948 case $ac_val in #(
1949 *${as_nl}*)
1950 case $ac_var in #(
1951 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1952 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1953 esac
1954 case $ac_var in #(
1955 _ | IFS | as_nl) ;; #(
1956 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1957 *) { eval $ac_var=; unset $ac_var;} ;;
1958 esac ;;
1959 esac
1960 done
1961 (set) 2>&1 |
1962 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1963 *${as_nl}ac_space=\ *)
1964 sed -n \
1965 "s/'\''/'\''\\\\'\'''\''/g;
1966 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1967 ;; #(
1968 *)
1969 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1970 ;;
1971 esac |
1972 sort
1973 )
1974 echo
1975
1976 printf "%s\n" "## ----------------- ##
1977 ## Output variables. ##
1978 ## ----------------- ##"
1979 echo
1980 for ac_var in $ac_subst_vars
1981 do
1982 eval ac_val=\$$ac_var
1983 case $ac_val in
1984 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1985 esac
1986 printf "%s\n" "$ac_var='\''$ac_val'\''"
1987 done | sort
1988 echo
1989
1990 if test -n "$ac_subst_files"; then
1991 printf "%s\n" "## ------------------- ##
1992 ## File substitutions. ##
1993 ## ------------------- ##"
1994 echo
1995 for ac_var in $ac_subst_files
1996 do
1997 eval ac_val=\$$ac_var
1998 case $ac_val in
1999 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2000 esac
2001 printf "%s\n" "$ac_var='\''$ac_val'\''"
2002 done | sort
2003 echo
2004 fi
2005
2006 if test -s confdefs.h; then
2007 printf "%s\n" "## ----------- ##
2008 ## confdefs.h. ##
2009 ## ----------- ##"
2010 echo
2011 cat confdefs.h
2012 echo
2013 fi
2014 test "$ac_signal" != 0 &&
2015 printf "%s\n" "$as_me: caught signal $ac_signal"
2016 printf "%s\n" "$as_me: exit $exit_status"
2017 } >&5
2018 rm -f core *.core core.conftest.* &&
2019 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2020 exit $exit_status
2021 ' 0
2022 for ac_signal in 1 2 13 15; do
2023 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2024 done
2025 ac_signal=0
2026
2027 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2028 rm -f -r conftest* confdefs.h
2029
2030 printf "%s\n" "/* confdefs.h */" > confdefs.h
2031
2032 # Predefined preprocessor variables.
2033
2034 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2035
2036 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2037
2038 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2039
2040 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2041
2042 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2043
2044 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2045
2046
2047 # Let the site file select an alternate cache file if it wants to.
2048 # Prefer an explicitly selected file to automatically selected ones.
2049 if test -n "$CONFIG_SITE"; then
2050 ac_site_files="$CONFIG_SITE"
2051 elif test "x$prefix" != xNONE; then
2052 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2053 else
2054 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2055 fi
2056
2057 for ac_site_file in $ac_site_files
2058 do
2059 case $ac_site_file in #(
2060 */*) :
2061 ;; #(
2062 *) :
2063 ac_site_file=./$ac_site_file ;;
2064 esac
2065 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2066 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2067 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2068 sed 's/^/| /' "$ac_site_file" >&5
2069 . "$ac_site_file" \
2070 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2071 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2072 as_fn_error $? "failed to load site script $ac_site_file
2073 See \`config.log' for more details" "$LINENO" 5; }
2074 fi
2075 done
2076
2077 if test -r "$cache_file"; then
2078 # Some versions of bash will fail to source /dev/null (special files
2079 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2080 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2081 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2082 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2083 case $cache_file in
2084 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2085 *) . "./$cache_file";;
2086 esac
2087 fi
2088 else
2089 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2090 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2091 >$cache_file
2092 fi
2093
2094 # Test code for whether the C compiler supports C89 (global declarations)
2095 ac_c_conftest_c89_globals='
2096 /* Does the compiler advertise C89 conformance?
2097 Do not test the value of __STDC__, because some compilers set it to 0
2098 while being otherwise adequately conformant. */
2099 #if !defined __STDC__
2100 # error "Compiler does not advertise C89 conformance"
2101 #endif
2102
2103 #include <stddef.h>
2104 #include <stdarg.h>
2105 struct stat;
2106 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2107 struct buf { int x; };
2108 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2109 static char *e (p, i)
2110 char **p;
2111 int i;
2112 {
2113 return p[i];
2114 }
2115 static char *f (char * (*g) (char **, int), char **p, ...)
2116 {
2117 char *s;
2118 va_list v;
2119 va_start (v,p);
2120 s = g (p, va_arg (v,int));
2121 va_end (v);
2122 return s;
2123 }
2124
2125 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2126 function prototypes and stuff, but not \xHH hex character constants.
2127 These do not provoke an error unfortunately, instead are silently treated
2128 as an "x". The following induces an error, until -std is added to get
2129 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2130 array size at least. It is necessary to write \x00 == 0 to get something
2131 that is true only with -std. */
2132 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2133
2134 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2135 inside strings and character constants. */
2136 #define FOO(x) '\''x'\''
2137 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2138
2139 int test (int i, double x);
2140 struct s1 {int (*f) (int a);};
2141 struct s2 {int (*f) (double a);};
2142 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2143 int, int);'
2144
2145 # Test code for whether the C compiler supports C89 (body of main).
2146 ac_c_conftest_c89_main='
2147 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2148 '
2149
2150 # Test code for whether the C compiler supports C99 (global declarations)
2151 ac_c_conftest_c99_globals='
2152 // Does the compiler advertise C99 conformance?
2153 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2154 # error "Compiler does not advertise C99 conformance"
2155 #endif
2156
2157 #include <stdbool.h>
2158 extern int puts (const char *);
2159 extern int printf (const char *, ...);
2160 extern int dprintf (int, const char *, ...);
2161 extern void *malloc (size_t);
2162
2163 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2164 // dprintf is used instead of fprintf to avoid needing to declare
2165 // FILE and stderr.
2166 #define debug(...) dprintf (2, __VA_ARGS__)
2167 #define showlist(...) puts (#__VA_ARGS__)
2168 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2169 static void
2170 test_varargs_macros (void)
2171 {
2172 int x = 1234;
2173 int y = 5678;
2174 debug ("Flag");
2175 debug ("X = %d\n", x);
2176 showlist (The first, second, and third items.);
2177 report (x>y, "x is %d but y is %d", x, y);
2178 }
2179
2180 // Check long long types.
2181 #define BIG64 18446744073709551615ull
2182 #define BIG32 4294967295ul
2183 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2184 #if !BIG_OK
2185 #error "your preprocessor is broken"
2186 #endif
2187 #if BIG_OK
2188 #else
2189 #error "your preprocessor is broken"
2190 #endif
2191 static long long int bignum = -9223372036854775807LL;
2192 static unsigned long long int ubignum = BIG64;
2193
2194 struct incomplete_array
2195 {
2196 int datasize;
2197 double data[];
2198 };
2199
2200 struct named_init {
2201 int number;
2202 const wchar_t *name;
2203 double average;
2204 };
2205
2206 typedef const char *ccp;
2207
2208 static inline int
2209 test_restrict (ccp restrict text)
2210 {
2211 // See if C++-style comments work.
2212 // Iterate through items via the restricted pointer.
2213 // Also check for declarations in for loops.
2214 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2215 continue;
2216 return 0;
2217 }
2218
2219 // Check varargs and va_copy.
2220 static bool
2221 test_varargs (const char *format, ...)
2222 {
2223 va_list args;
2224 va_start (args, format);
2225 va_list args_copy;
2226 va_copy (args_copy, args);
2227
2228 const char *str = "";
2229 int number = 0;
2230 float fnumber = 0;
2231
2232 while (*format)
2233 {
2234 switch (*format++)
2235 {
2236 case '\''s'\'': // string
2237 str = va_arg (args_copy, const char *);
2238 break;
2239 case '\''d'\'': // int
2240 number = va_arg (args_copy, int);
2241 break;
2242 case '\''f'\'': // float
2243 fnumber = va_arg (args_copy, double);
2244 break;
2245 default:
2246 break;
2247 }
2248 }
2249 va_end (args_copy);
2250 va_end (args);
2251
2252 return *str && number && fnumber;
2253 }
2254 '
2255
2256 # Test code for whether the C compiler supports C99 (body of main).
2257 ac_c_conftest_c99_main='
2258 // Check bool.
2259 _Bool success = false;
2260 success |= (argc != 0);
2261
2262 // Check restrict.
2263 if (test_restrict ("String literal") == 0)
2264 success = true;
2265 char *restrict newvar = "Another string";
2266
2267 // Check varargs.
2268 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2269 test_varargs_macros ();
2270
2271 // Check flexible array members.
2272 struct incomplete_array *ia =
2273 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2274 ia->datasize = 10;
2275 for (int i = 0; i < ia->datasize; ++i)
2276 ia->data[i] = i * 1.234;
2277
2278 // Check named initializers.
2279 struct named_init ni = {
2280 .number = 34,
2281 .name = L"Test wide string",
2282 .average = 543.34343,
2283 };
2284
2285 ni.number = 58;
2286
2287 int dynamic_array[ni.number];
2288 dynamic_array[0] = argv[0][0];
2289 dynamic_array[ni.number - 1] = 543;
2290
2291 // work around unused variable warnings
2292 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2293 || dynamic_array[ni.number - 1] != 543);
2294 '
2295
2296 # Test code for whether the C compiler supports C11 (global declarations)
2297 ac_c_conftest_c11_globals='
2298 // Does the compiler advertise C11 conformance?
2299 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2300 # error "Compiler does not advertise C11 conformance"
2301 #endif
2302
2303 // Check _Alignas.
2304 char _Alignas (double) aligned_as_double;
2305 char _Alignas (0) no_special_alignment;
2306 extern char aligned_as_int;
2307 char _Alignas (0) _Alignas (int) aligned_as_int;
2308
2309 // Check _Alignof.
2310 enum
2311 {
2312 int_alignment = _Alignof (int),
2313 int_array_alignment = _Alignof (int[100]),
2314 char_alignment = _Alignof (char)
2315 };
2316 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2317
2318 // Check _Noreturn.
2319 int _Noreturn does_not_return (void) { for (;;) continue; }
2320
2321 // Check _Static_assert.
2322 struct test_static_assert
2323 {
2324 int x;
2325 _Static_assert (sizeof (int) <= sizeof (long int),
2326 "_Static_assert does not work in struct");
2327 long int y;
2328 };
2329
2330 // Check UTF-8 literals.
2331 #define u8 syntax error!
2332 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2333
2334 // Check duplicate typedefs.
2335 typedef long *long_ptr;
2336 typedef long int *long_ptr;
2337 typedef long_ptr long_ptr;
2338
2339 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2340 struct anonymous
2341 {
2342 union {
2343 struct { int i; int j; };
2344 struct { int k; long int l; } w;
2345 };
2346 int m;
2347 } v1;
2348 '
2349
2350 # Test code for whether the C compiler supports C11 (body of main).
2351 ac_c_conftest_c11_main='
2352 _Static_assert ((offsetof (struct anonymous, i)
2353 == offsetof (struct anonymous, w.k)),
2354 "Anonymous union alignment botch");
2355 v1.i = 2;
2356 v1.w.k = 5;
2357 ok |= v1.i != 5;
2358 '
2359
2360 # Test code for whether the C compiler supports C11 (complete).
2361 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2362 ${ac_c_conftest_c99_globals}
2363 ${ac_c_conftest_c11_globals}
2364
2365 int
2366 main (int argc, char **argv)
2367 {
2368 int ok = 0;
2369 ${ac_c_conftest_c89_main}
2370 ${ac_c_conftest_c99_main}
2371 ${ac_c_conftest_c11_main}
2372 return ok;
2373 }
2374 "
2375
2376 # Test code for whether the C compiler supports C99 (complete).
2377 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2378 ${ac_c_conftest_c99_globals}
2379
2380 int
2381 main (int argc, char **argv)
2382 {
2383 int ok = 0;
2384 ${ac_c_conftest_c89_main}
2385 ${ac_c_conftest_c99_main}
2386 return ok;
2387 }
2388 "
2389
2390 # Test code for whether the C compiler supports C89 (complete).
2391 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2392
2393 int
2394 main (int argc, char **argv)
2395 {
2396 int ok = 0;
2397 ${ac_c_conftest_c89_main}
2398 return ok;
2399 }
2400 "
2401
2402 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2403 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2404 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2405 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2406 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2407 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2408 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2409 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2410 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2411
2412 # Auxiliary files required by this configure script.
2413 ac_aux_files="config.guess config.sub ltmain.sh compile missing install-sh"
2414
2415 # Locations in which to look for auxiliary files.
2416 ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2417
2418 # Search for a directory containing all of the required auxiliary files,
2419 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2420 # If we don't find one directory that contains all the files we need,
2421 # we report the set of missing files from the *first* directory in
2422 # $ac_aux_dir_candidates and give up.
2423 ac_missing_aux_files=""
2424 ac_first_candidate=:
2425 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2427 as_found=false
2428 for as_dir in $ac_aux_dir_candidates
2429 do
2430 IFS=$as_save_IFS
2431 case $as_dir in #(((
2432 '') as_dir=./ ;;
2433 */) ;;
2434 *) as_dir=$as_dir/ ;;
2435 esac
2436 as_found=:
2437
2438 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
2439 ac_aux_dir_found=yes
2440 ac_install_sh=
2441 for ac_aux in $ac_aux_files
2442 do
2443 # As a special case, if "install-sh" is required, that requirement
2444 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2445 # and $ac_install_sh is set appropriately for whichever one is found.
2446 if test x"$ac_aux" = x"install-sh"
2447 then
2448 if test -f "${as_dir}install-sh"; then
2449 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
2450 ac_install_sh="${as_dir}install-sh -c"
2451 elif test -f "${as_dir}install.sh"; then
2452 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
2453 ac_install_sh="${as_dir}install.sh -c"
2454 elif test -f "${as_dir}shtool"; then
2455 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
2456 ac_install_sh="${as_dir}shtool install -c"
2457 else
2458 ac_aux_dir_found=no
2459 if $ac_first_candidate; then
2460 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2461 else
2462 break
2463 fi
2464 fi
2465 else
2466 if test -f "${as_dir}${ac_aux}"; then
2467 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
2468 else
2469 ac_aux_dir_found=no
2470 if $ac_first_candidate; then
2471 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2472 else
2473 break
2474 fi
2475 fi
2476 fi
2477 done
2478 if test "$ac_aux_dir_found" = yes; then
2479 ac_aux_dir="$as_dir"
2480 break
2481 fi
2482 ac_first_candidate=false
2483
2484 as_found=false
2485 done
2486 IFS=$as_save_IFS
2487 if $as_found
2488 then :
2489
2490 else $as_nop
2491 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
2492 fi
2493
2494
2495 # These three variables are undocumented and unsupported,
2496 # and are intended to be withdrawn in a future Autoconf release.
2497 # They can cause serious problems if a builder's source tree is in a directory
2498 # whose full name contains unusual characters.
2499 if test -f "${ac_aux_dir}config.guess"; then
2500 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2501 fi
2502 if test -f "${ac_aux_dir}config.sub"; then
2503 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2504 fi
2505 if test -f "$ac_aux_dir/configure"; then
2506 ac_configure="$SHELL ${ac_aux_dir}configure"
2507 fi
2508
2509 # Check that the precious variables saved in the cache have kept the same
2510 # value.
2511 ac_cache_corrupted=false
2512 for ac_var in $ac_precious_vars; do
2513 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2514 eval ac_new_set=\$ac_env_${ac_var}_set
2515 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2516 eval ac_new_val=\$ac_env_${ac_var}_value
2517 case $ac_old_set,$ac_new_set in
2518 set,)
2519 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2520 printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2521 ac_cache_corrupted=: ;;
2522 ,set)
2523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2524 printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2525 ac_cache_corrupted=: ;;
2526 ,);;
2527 *)
2528 if test "x$ac_old_val" != "x$ac_new_val"; then
2529 # differences in whitespace do not lead to failure.
2530 ac_old_val_w=`echo x $ac_old_val`
2531 ac_new_val_w=`echo x $ac_new_val`
2532 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2533 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2534 printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2535 ac_cache_corrupted=:
2536 else
2537 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2538 printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2539 eval $ac_var=\$ac_old_val
2540 fi
2541 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2542 printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;}
2543 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2544 printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;}
2545 fi;;
2546 esac
2547 # Pass precious variables to config.status.
2548 if test "$ac_new_set" = set; then
2549 case $ac_new_val in
2550 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2551 *) ac_arg=$ac_var=$ac_new_val ;;
2552 esac
2553 case " $ac_configure_args " in
2554 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2555 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2556 esac
2557 fi
2558 done
2559 if $ac_cache_corrupted; then
2560 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2561 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2562 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2563 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2564 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
2565 and start over" "$LINENO" 5
2566 fi
2567 ## -------------------- ##
2568 ## Main body of script. ##
2569 ## -------------------- ##
2570
2571 ac_ext=c
2572 ac_cpp='$CPP $CPPFLAGS'
2573 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2574 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2575 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2576
2577
2578
2579 rm -f config.nice
2580 cat >config.nice<<EOF
2581 #! /bin/sh
2582 #
2583 # Created by configure
2584
2585 EOF
2586 if test -n "$CC"; then
2587 echo "CC=\"$CC\"; export CC" >> config.nice
2588 fi
2589 if test -n "$CFLAGS"; then
2590 echo "CFLAGS=\"$CFLAGS\"; export CFLAGS" >> config.nice
2591 fi
2592 if test -n "$CPPFLAGS"; then
2593 echo "CPPFLAGS=\"$CPPFLAGS\"; export CPPFLAGS" >> config.nice
2594 fi
2595 if test -n "$LDFLAGS"; then
2596 echo "LDFLAGS=\"$LDFLAGS\"; export LDFLAGS" >> config.nice
2597 fi
2598 if test -n "$LTFLAGS"; then
2599 echo "LTFLAGS=\"$LTFLAGS\"; export LTFLAGS" >> config.nice
2600 fi
2601 if test -n "$LIBS"; then
2602 echo "LIBS=\"$LIBS\"; export LIBS" >> config.nice
2603 fi
2604 if test -n "$INCLUDES"; then
2605 echo "INCLUDES=\"$INCLUDES\"; export INCLUDES" >> config.nice
2606 fi
2607 if test -n "$NOTEST_CFLAGS"; then
2608 echo "NOTEST_CFLAGS=\"$NOTEST_CFLAGS\"; export NOTEST_CFLAGS" >> config.nice
2609 fi
2610 if test -n "$NOTEST_CPPFLAGS"; then
2611 echo "NOTEST_CPPFLAGS=\"$NOTEST_CPPFLAGS\"; export NOTEST_CPPFLAGS" >> config.nice
2612 fi
2613 if test -n "$NOTEST_LDFLAGS"; then
2614 echo "NOTEST_LDFLAGS=\"$NOTEST_LDFLAGS\"; export NOTEST_LDFLAGS" >> config.nice
2615 fi
2616 if test -n "$NOTEST_LIBS"; then
2617 echo "NOTEST_LIBS=\"$NOTEST_LIBS\"; export NOTEST_LIBS" >> config.nice
2618 fi
2619
2620 echo $0 $ac_configure_args '"$@"' >> config.nice
2621 chmod +x config.nice
2622
2623
2624
2625 am__api_version='1.16'
2626
2627
2628
2629 # Find a good install program. We prefer a C program (faster),
2630 # so one script is as good as another. But avoid the broken or
2631 # incompatible versions:
2632 # SysV /etc/install, /usr/sbin/install
2633 # SunOS /usr/etc/install
2634 # IRIX /sbin/install
2635 # AIX /bin/install
2636 # AmigaOS /C/install, which installs bootblocks on floppy discs
2637 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2638 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2639 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2640 # OS/2's system install, which has a completely different semantic
2641 # ./install, which can be erroneously created by make from ./install.sh.
2642 # Reject install programs that cannot install multiple files.
2643 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2644 printf %s "checking for a BSD-compatible install... " >&6; }
2645 if test -z "$INSTALL"; then
2646 if test ${ac_cv_path_install+y}
2647 then :
2648 printf %s "(cached) " >&6
2649 else $as_nop
2650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2651 for as_dir in $PATH
2652 do
2653 IFS=$as_save_IFS
2654 case $as_dir in #(((
2655 '') as_dir=./ ;;
2656 */) ;;
2657 *) as_dir=$as_dir/ ;;
2658 esac
2659 # Account for fact that we put trailing slashes in our PATH walk.
2660 case $as_dir in #((
2661 ./ | /[cC]/* | \
2662 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2663 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2664 /usr/ucb/* ) ;;
2665 *)
2666 # OSF1 and SCO ODT 3.0 have their own names for install.
2667 # Don't use installbsd from OSF since it installs stuff as root
2668 # by default.
2669 for ac_prog in ginstall scoinst install; do
2670 for ac_exec_ext in '' $ac_executable_extensions; do
2671 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
2672 if test $ac_prog = install &&
2673 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2674 # AIX install. It has an incompatible calling convention.
2675 :
2676 elif test $ac_prog = install &&
2677 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2678 # program-specific install script used by HP pwplus--don't use.
2679 :
2680 else
2681 rm -rf conftest.one conftest.two conftest.dir
2682 echo one > conftest.one
2683 echo two > conftest.two
2684 mkdir conftest.dir
2685 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
2686 test -s conftest.one && test -s conftest.two &&
2687 test -s conftest.dir/conftest.one &&
2688 test -s conftest.dir/conftest.two
2689 then
2690 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
2691 break 3
2692 fi
2693 fi
2694 fi
2695 done
2696 done
2697 ;;
2698 esac
2699
2700 done
2701 IFS=$as_save_IFS
2702
2703 rm -rf conftest.one conftest.two conftest.dir
2704
2705 fi
2706 if test ${ac_cv_path_install+y}; then
2707 INSTALL=$ac_cv_path_install
2708 else
2709 # As a last resort, use the slow shell script. Don't cache a
2710 # value for INSTALL within a source directory, because that will
2711 # break other packages using the cache if that directory is
2712 # removed, or if the value is a relative name.
2713 INSTALL=$ac_install_sh
2714 fi
2715 fi
2716 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2717 printf "%s\n" "$INSTALL" >&6; }
2718
2719 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2720 # It thinks the first close brace ends the variable substitution.
2721 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2722
2723 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2724
2725 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2726
2727 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2728 printf %s "checking whether build environment is sane... " >&6; }
2729 # Reject unsafe characters in $srcdir or the absolute working directory
2730 # name. Accept space and tab only in the latter.
2731 am_lf='
2732 '
2733 case `pwd` in
2734 *[\\\"\#\$\&\'\`$am_lf]*)
2735 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2736 esac
2737 case $srcdir in
2738 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2739 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2740 esac
2741
2742 # Do 'set' in a subshell so we don't clobber the current shell's
2743 # arguments. Must try -L first in case configure is actually a
2744 # symlink; some systems play weird games with the mod time of symlinks
2745 # (eg FreeBSD returns the mod time of the symlink's containing
2746 # directory).
2747 if (
2748 am_has_slept=no
2749 for am_try in 1 2; do
2750 echo "timestamp, slept: $am_has_slept" > conftest.file
2751 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2752 if test "$*" = "X"; then
2753 # -L didn't work.
2754 set X `ls -t "$srcdir/configure" conftest.file`
2755 fi
2756 if test "$*" != "X $srcdir/configure conftest.file" \
2757 && test "$*" != "X conftest.file $srcdir/configure"; then
2758
2759 # If neither matched, then we have a broken ls. This can happen
2760 # if, for instance, CONFIG_SHELL is bash and it inherits a
2761 # broken ls alias from the environment. This has actually
2762 # happened. Such a system could not be considered "sane".
2763 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2764 alias in your environment" "$LINENO" 5
2765 fi
2766 if test "$2" = conftest.file || test $am_try -eq 2; then
2767 break
2768 fi
2769 # Just in case.
2770 sleep 1
2771 am_has_slept=yes
2772 done
2773 test "$2" = conftest.file
2774 )
2775 then
2776 # Ok.
2777 :
2778 else
2779 as_fn_error $? "newly created file is older than distributed files!
2780 Check your system clock" "$LINENO" 5
2781 fi
2782 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2783 printf "%s\n" "yes" >&6; }
2784 # If we didn't sleep, we still need to ensure time stamps of config.status and
2785 # generated files are strictly newer.
2786 am_sleep_pid=
2787 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2788 ( sleep 1 ) &
2789 am_sleep_pid=$!
2790 fi
2791
2792 rm -f conftest.file
2793
2794 test "$program_prefix" != NONE &&
2795 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2796 # Use a double $ so make ignores it.
2797 test "$program_suffix" != NONE &&
2798 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2799 # Double any \ or $.
2800 # By default was `s,x,x', remove it if useless.
2801 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2802 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
2803
2804
2805 # Expand $ac_aux_dir to an absolute path.
2806 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2807
2808
2809 if test x"${MISSING+set}" != xset; then
2810 MISSING="\${SHELL} '$am_aux_dir/missing'"
2811 fi
2812 # Use eval to expand $SHELL
2813 if eval "$MISSING --is-lightweight"; then
2814 am_missing_run="$MISSING "
2815 else
2816 am_missing_run=
2817 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2818 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2819 fi
2820
2821 if test x"${install_sh+set}" != xset; then
2822 case $am_aux_dir in
2823 *\ * | *\ *)
2824 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2825 *)
2826 install_sh="\${SHELL} $am_aux_dir/install-sh"
2827 esac
2828 fi
2829
2830 # Installed binaries are usually stripped using 'strip' when the user
2831 # run "make install-strip". However 'strip' might not be the right
2832 # tool to use in cross-compilation environments, therefore Automake
2833 # will honor the 'STRIP' environment variable to overrule this program.
2834 if test "$cross_compiling" != no; then
2835 if test -n "$ac_tool_prefix"; then
2836 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2837 set dummy ${ac_tool_prefix}strip; ac_word=$2
2838 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2839 printf %s "checking for $ac_word... " >&6; }
2840 if test ${ac_cv_prog_STRIP+y}
2841 then :
2842 printf %s "(cached) " >&6
2843 else $as_nop
2844 if test -n "$STRIP"; then
2845 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2846 else
2847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2848 for as_dir in $PATH
2849 do
2850 IFS=$as_save_IFS
2851 case $as_dir in #(((
2852 '') as_dir=./ ;;
2853 */) ;;
2854 *) as_dir=$as_dir/ ;;
2855 esac
2856 for ac_exec_ext in '' $ac_executable_extensions; do
2857 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2858 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2859 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2860 break 2
2861 fi
2862 done
2863 done
2864 IFS=$as_save_IFS
2865
2866 fi
2867 fi
2868 STRIP=$ac_cv_prog_STRIP
2869 if test -n "$STRIP"; then
2870 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2871 printf "%s\n" "$STRIP" >&6; }
2872 else
2873 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2874 printf "%s\n" "no" >&6; }
2875 fi
2876
2877
2878 fi
2879 if test -z "$ac_cv_prog_STRIP"; then
2880 ac_ct_STRIP=$STRIP
2881 # Extract the first word of "strip", so it can be a program name with args.
2882 set dummy strip; ac_word=$2
2883 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2884 printf %s "checking for $ac_word... " >&6; }
2885 if test ${ac_cv_prog_ac_ct_STRIP+y}
2886 then :
2887 printf %s "(cached) " >&6
2888 else $as_nop
2889 if test -n "$ac_ct_STRIP"; then
2890 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2891 else
2892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2893 for as_dir in $PATH
2894 do
2895 IFS=$as_save_IFS
2896 case $as_dir in #(((
2897 '') as_dir=./ ;;
2898 */) ;;
2899 *) as_dir=$as_dir/ ;;
2900 esac
2901 for ac_exec_ext in '' $ac_executable_extensions; do
2902 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2903 ac_cv_prog_ac_ct_STRIP="strip"
2904 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2905 break 2
2906 fi
2907 done
2908 done
2909 IFS=$as_save_IFS
2910
2911 fi
2912 fi
2913 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2914 if test -n "$ac_ct_STRIP"; then
2915 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2916 printf "%s\n" "$ac_ct_STRIP" >&6; }
2917 else
2918 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2919 printf "%s\n" "no" >&6; }
2920 fi
2921
2922 if test "x$ac_ct_STRIP" = x; then
2923 STRIP=":"
2924 else
2925 case $cross_compiling:$ac_tool_warned in
2926 yes:)
2927 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2928 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2929 ac_tool_warned=yes ;;
2930 esac
2931 STRIP=$ac_ct_STRIP
2932 fi
2933 else
2934 STRIP="$ac_cv_prog_STRIP"
2935 fi
2936
2937 fi
2938 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2939
2940
2941 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
2942 printf %s "checking for a race-free mkdir -p... " >&6; }
2943 if test -z "$MKDIR_P"; then
2944 if test ${ac_cv_path_mkdir+y}
2945 then :
2946 printf %s "(cached) " >&6
2947 else $as_nop
2948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2949 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2950 do
2951 IFS=$as_save_IFS
2952 case $as_dir in #(((
2953 '') as_dir=./ ;;
2954 */) ;;
2955 *) as_dir=$as_dir/ ;;
2956 esac
2957 for ac_prog in mkdir gmkdir; do
2958 for ac_exec_ext in '' $ac_executable_extensions; do
2959 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
2960 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
2961 'mkdir ('*'coreutils) '* | \
2962 'BusyBox '* | \
2963 'mkdir (fileutils) '4.1*)
2964 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
2965 break 3;;
2966 esac
2967 done
2968 done
2969 done
2970 IFS=$as_save_IFS
2971
2972 fi
2973
2974 test -d ./--version && rmdir ./--version
2975 if test ${ac_cv_path_mkdir+y}; then
2976 MKDIR_P="$ac_cv_path_mkdir -p"
2977 else
2978 # As a last resort, use the slow shell script. Don't cache a
2979 # value for MKDIR_P within a source directory, because that will
2980 # break other packages using the cache if that directory is
2981 # removed, or if the value is a relative name.
2982 MKDIR_P="$ac_install_sh -d"
2983 fi
2984 fi
2985 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2986 printf "%s\n" "$MKDIR_P" >&6; }
2987
2988 for ac_prog in gawk mawk nawk awk
2989 do
2990 # Extract the first word of "$ac_prog", so it can be a program name with args.
2991 set dummy $ac_prog; ac_word=$2
2992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2993 printf %s "checking for $ac_word... " >&6; }
2994 if test ${ac_cv_prog_AWK+y}
2995 then :
2996 printf %s "(cached) " >&6
2997 else $as_nop
2998 if test -n "$AWK"; then
2999 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3000 else
3001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3002 for as_dir in $PATH
3003 do
3004 IFS=$as_save_IFS
3005 case $as_dir in #(((
3006 '') as_dir=./ ;;
3007 */) ;;
3008 *) as_dir=$as_dir/ ;;
3009 esac
3010 for ac_exec_ext in '' $ac_executable_extensions; do
3011 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3012 ac_cv_prog_AWK="$ac_prog"
3013 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3014 break 2
3015 fi
3016 done
3017 done
3018 IFS=$as_save_IFS
3019
3020 fi
3021 fi
3022 AWK=$ac_cv_prog_AWK
3023 if test -n "$AWK"; then
3024 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3025 printf "%s\n" "$AWK" >&6; }
3026 else
3027 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3028 printf "%s\n" "no" >&6; }
3029 fi
3030
3031
3032 test -n "$AWK" && break
3033 done
3034
3035 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3036 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3037 set x ${MAKE-make}
3038 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3039 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
3040 then :
3041 printf %s "(cached) " >&6
3042 else $as_nop
3043 cat >conftest.make <<\_ACEOF
3044 SHELL = /bin/sh
3045 all:
3046 @echo '@@@%%%=$(MAKE)=@@@%%%'
3047 _ACEOF
3048 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3049 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3050 *@@@%%%=?*=@@@%%%*)
3051 eval ac_cv_prog_make_${ac_make}_set=yes;;
3052 *)
3053 eval ac_cv_prog_make_${ac_make}_set=no;;
3054 esac
3055 rm -f conftest.make
3056 fi
3057 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3058 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3059 printf "%s\n" "yes" >&6; }
3060 SET_MAKE=
3061 else
3062 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3063 printf "%s\n" "no" >&6; }
3064 SET_MAKE="MAKE=${MAKE-make}"
3065 fi
3066
3067 rm -rf .tst 2>/dev/null
3068 mkdir .tst 2>/dev/null
3069 if test -d .tst; then
3070 am__leading_dot=.
3071 else
3072 am__leading_dot=_
3073 fi
3074 rmdir .tst 2>/dev/null
3075
3076 # Check whether --enable-silent-rules was given.
3077 if test ${enable_silent_rules+y}
3078 then :
3079 enableval=$enable_silent_rules;
3080 fi
3081
3082 case $enable_silent_rules in # (((
3083 yes) AM_DEFAULT_VERBOSITY=0;;
3084 no) AM_DEFAULT_VERBOSITY=1;;
3085 *) AM_DEFAULT_VERBOSITY=1;;
3086 esac
3087 am_make=${MAKE-make}
3088 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3089 printf %s "checking whether $am_make supports nested variables... " >&6; }
3090 if test ${am_cv_make_support_nested_variables+y}
3091 then :
3092 printf %s "(cached) " >&6
3093 else $as_nop
3094 if printf "%s\n" 'TRUE=$(BAR$(V))
3095 BAR0=false
3096 BAR1=true
3097 V=1
3098 am__doit:
3099 @$(TRUE)
3100 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3101 am_cv_make_support_nested_variables=yes
3102 else
3103 am_cv_make_support_nested_variables=no
3104 fi
3105 fi
3106 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3107 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3108 if test $am_cv_make_support_nested_variables = yes; then
3109 AM_V='$(V)'
3110 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3111 else
3112 AM_V=$AM_DEFAULT_VERBOSITY
3113 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3114 fi
3115 AM_BACKSLASH='\'
3116
3117 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3118 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3119 # is not polluted with repeated "-I."
3120 am__isrc=' -I$(srcdir)'
3121 # test to see if srcdir already configured
3122 if test -f $srcdir/config.status; then
3123 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3124 fi
3125 fi
3126
3127 # test whether we have cygpath
3128 if test -z "$CYGPATH_W"; then
3129 if (cygpath --version) >/dev/null 2>/dev/null; then
3130 CYGPATH_W='cygpath -w'
3131 else
3132 CYGPATH_W=echo
3133 fi
3134 fi
3135
3136
3137 # Define the identity of the package.
3138
3139 PACKAGE=libapreq2
3140 VERSION=2.17
3141
3142
3143 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
3144
3145
3146 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
3147
3148 # Some tools Automake needs.
3149
3150 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3151
3152
3153 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3154
3155
3156 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3157
3158
3159 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3160
3161
3162 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3163
3164 # For better backward compatibility. To be removed once Automake 1.9.x
3165 # dies out for good. For more background, see:
3166 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3167 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3168 mkdir_p='$(MKDIR_P)'
3169
3170 # We need awk for the "check" target (and possibly the TAP driver). The
3171 # system "awk" is bad on some platforms.
3172 # Always define AMTAR for backward compatibility. Yes, it's still used
3173 # in the wild :-( We should find a proper way to deprecate it ...
3174 AMTAR='$${TAR-tar}'
3175
3176
3177 # We'll loop over all known methods to create a tar archive until one works.
3178 _am_tools='gnutar pax cpio none'
3179
3180 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3181
3182
3183
3184
3185
3186 # Variables for tags utilities; see am/tags.am
3187 if test -z "$CTAGS"; then
3188 CTAGS=ctags
3189 fi
3190
3191 if test -z "$ETAGS"; then
3192 ETAGS=etags
3193 fi
3194
3195 if test -z "$CSCOPE"; then
3196 CSCOPE=cscope
3197 fi
3198
3199
3200
3201 # POSIX will say in a future version that running "rm -f" with no argument
3202 # is OK; and we want to be able to make that assumption in our Makefile
3203 # recipes. So use an aggressive probe to check that the usage we want is
3204 # actually supported "in the wild" to an acceptable degree.
3205 # See automake bug#10828.
3206 # To make any issue more visible, cause the running configure to be aborted
3207 # by default if the 'rm' program in use doesn't match our expectations; the
3208 # user can still override this though.
3209 if rm -f && rm -fr && rm -rf; then : OK; else
3210 cat >&2 <<'END'
3211 Oops!
3212
3213 Your 'rm' program seems unable to run without file operands specified
3214 on the command line, even when the '-f' option is present. This is contrary
3215 to the behaviour of most rm programs out there, and not conforming with
3216 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3217
3218 Please tell [email protected] about your system, including the value
3219 of your $PATH and any error possibly output before this message. This
3220 can help us improve future automake versions.
3221
3222 END
3223 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3224 echo 'Configuration will proceed anyway, since you have set the' >&2
3225 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3226 echo >&2
3227 else
3228 cat >&2 <<'END'
3229 Aborting the configuration process, to ensure you take notice of the issue.
3230
3231 You can download and install GNU coreutils to get an 'rm' implementation
3232 that behaves properly: <https://www.gnu.org/software/coreutils/>.
3233
3234 If you want to complete the configuration process using your problematic
3235 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3236 to "yes", and re-run configure.
3237
3238 END
3239 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3240 fi
3241 fi
3242
3243
3244 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3245 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3246 set x ${MAKE-make}
3247 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3248 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
3249 then :
3250 printf %s "(cached) " >&6
3251 else $as_nop
3252 cat >conftest.make <<\_ACEOF
3253 SHELL = /bin/sh
3254 all:
3255 @echo '@@@%%%=$(MAKE)=@@@%%%'
3256 _ACEOF
3257 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3258 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3259 *@@@%%%=?*=@@@%%%*)
3260 eval ac_cv_prog_make_${ac_make}_set=yes;;
3261 *)
3262 eval ac_cv_prog_make_${ac_make}_set=no;;
3263 esac
3264 rm -f conftest.make
3265 fi
3266 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3267 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3268 printf "%s\n" "yes" >&6; }
3269 SET_MAKE=
3270 else
3271 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3272 printf "%s\n" "no" >&6; }
3273 SET_MAKE="MAKE=${MAKE-make}"
3274 fi
3275
3276
3277
3278
3279
3280
3281
3282
3283
3284
3285
3286 ac_ext=c
3287 ac_cpp='$CPP $CPPFLAGS'
3288 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3289 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3290 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3291 if test -n "$ac_tool_prefix"; then
3292 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3293 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3294 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3295 printf %s "checking for $ac_word... " >&6; }
3296 if test ${ac_cv_prog_CC+y}
3297 then :
3298 printf %s "(cached) " >&6
3299 else $as_nop
3300 if test -n "$CC"; then
3301 ac_cv_prog_CC="$CC" # Let the user override the test.
3302 else
3303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3304 for as_dir in $PATH
3305 do
3306 IFS=$as_save_IFS
3307 case $as_dir in #(((
3308 '') as_dir=./ ;;
3309 */) ;;
3310 *) as_dir=$as_dir/ ;;
3311 esac
3312 for ac_exec_ext in '' $ac_executable_extensions; do
3313 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3314 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3315 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3316 break 2
3317 fi
3318 done
3319 done
3320 IFS=$as_save_IFS
3321
3322 fi
3323 fi
3324 CC=$ac_cv_prog_CC
3325 if test -n "$CC"; then
3326 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3327 printf "%s\n" "$CC" >&6; }
3328 else
3329 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3330 printf "%s\n" "no" >&6; }
3331 fi
3332
3333
3334 fi
3335 if test -z "$ac_cv_prog_CC"; then
3336 ac_ct_CC=$CC
3337 # Extract the first word of "gcc", so it can be a program name with args.
3338 set dummy gcc; ac_word=$2
3339 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3340 printf %s "checking for $ac_word... " >&6; }
3341 if test ${ac_cv_prog_ac_ct_CC+y}
3342 then :
3343 printf %s "(cached) " >&6
3344 else $as_nop
3345 if test -n "$ac_ct_CC"; then
3346 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3347 else
3348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3349 for as_dir in $PATH
3350 do
3351 IFS=$as_save_IFS
3352 case $as_dir in #(((
3353 '') as_dir=./ ;;
3354 */) ;;
3355 *) as_dir=$as_dir/ ;;
3356 esac
3357 for ac_exec_ext in '' $ac_executable_extensions; do
3358 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3359 ac_cv_prog_ac_ct_CC="gcc"
3360 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3361 break 2
3362 fi
3363 done
3364 done
3365 IFS=$as_save_IFS
3366
3367 fi
3368 fi
3369 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3370 if test -n "$ac_ct_CC"; then
3371 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3372 printf "%s\n" "$ac_ct_CC" >&6; }
3373 else
3374 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3375 printf "%s\n" "no" >&6; }
3376 fi
3377
3378 if test "x$ac_ct_CC" = x; then
3379 CC=""
3380 else
3381 case $cross_compiling:$ac_tool_warned in
3382 yes:)
3383 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3384 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3385 ac_tool_warned=yes ;;
3386 esac
3387 CC=$ac_ct_CC
3388 fi
3389 else
3390 CC="$ac_cv_prog_CC"
3391 fi
3392
3393 if test -z "$CC"; then
3394 if test -n "$ac_tool_prefix"; then
3395 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3396 set dummy ${ac_tool_prefix}cc; ac_word=$2
3397 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3398 printf %s "checking for $ac_word... " >&6; }
3399 if test ${ac_cv_prog_CC+y}
3400 then :
3401 printf %s "(cached) " >&6
3402 else $as_nop
3403 if test -n "$CC"; then
3404 ac_cv_prog_CC="$CC" # Let the user override the test.
3405 else
3406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3407 for as_dir in $PATH
3408 do
3409 IFS=$as_save_IFS
3410 case $as_dir in #(((
3411 '') as_dir=./ ;;
3412 */) ;;
3413 *) as_dir=$as_dir/ ;;
3414 esac
3415 for ac_exec_ext in '' $ac_executable_extensions; do
3416 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3417 ac_cv_prog_CC="${ac_tool_prefix}cc"
3418 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3419 break 2
3420 fi
3421 done
3422 done
3423 IFS=$as_save_IFS
3424
3425 fi
3426 fi
3427 CC=$ac_cv_prog_CC
3428 if test -n "$CC"; then
3429 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3430 printf "%s\n" "$CC" >&6; }
3431 else
3432 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3433 printf "%s\n" "no" >&6; }
3434 fi
3435
3436
3437 fi
3438 fi
3439 if test -z "$CC"; then
3440 # Extract the first word of "cc", so it can be a program name with args.
3441 set dummy cc; ac_word=$2
3442 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3443 printf %s "checking for $ac_word... " >&6; }
3444 if test ${ac_cv_prog_CC+y}
3445 then :
3446 printf %s "(cached) " >&6
3447 else $as_nop
3448 if test -n "$CC"; then
3449 ac_cv_prog_CC="$CC" # Let the user override the test.
3450 else
3451 ac_prog_rejected=no
3452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3453 for as_dir in $PATH
3454 do
3455 IFS=$as_save_IFS
3456 case $as_dir in #(((
3457 '') as_dir=./ ;;
3458 */) ;;
3459 *) as_dir=$as_dir/ ;;
3460 esac
3461 for ac_exec_ext in '' $ac_executable_extensions; do
3462 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3463 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3464 ac_prog_rejected=yes
3465 continue
3466 fi
3467 ac_cv_prog_CC="cc"
3468 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3469 break 2
3470 fi
3471 done
3472 done
3473 IFS=$as_save_IFS
3474
3475 if test $ac_prog_rejected = yes; then
3476 # We found a bogon in the path, so make sure we never use it.
3477 set dummy $ac_cv_prog_CC
3478 shift
3479 if test $# != 0; then
3480 # We chose a different compiler from the bogus one.
3481 # However, it has the same basename, so the bogon will be chosen
3482 # first if we set CC to just the basename; use the full file name.
3483 shift
3484 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
3485 fi
3486 fi
3487 fi
3488 fi
3489 CC=$ac_cv_prog_CC
3490 if test -n "$CC"; then
3491 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3492 printf "%s\n" "$CC" >&6; }
3493 else
3494 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3495 printf "%s\n" "no" >&6; }
3496 fi
3497
3498
3499 fi
3500 if test -z "$CC"; then
3501 if test -n "$ac_tool_prefix"; then
3502 for ac_prog in cl.exe
3503 do
3504 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3505 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3506 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3507 printf %s "checking for $ac_word... " >&6; }
3508 if test ${ac_cv_prog_CC+y}
3509 then :
3510 printf %s "(cached) " >&6
3511 else $as_nop
3512 if test -n "$CC"; then
3513 ac_cv_prog_CC="$CC" # Let the user override the test.
3514 else
3515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3516 for as_dir in $PATH
3517 do
3518 IFS=$as_save_IFS
3519 case $as_dir in #(((
3520 '') as_dir=./ ;;
3521 */) ;;
3522 *) as_dir=$as_dir/ ;;
3523 esac
3524 for ac_exec_ext in '' $ac_executable_extensions; do
3525 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3526 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3527 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3528 break 2
3529 fi
3530 done
3531 done
3532 IFS=$as_save_IFS
3533
3534 fi
3535 fi
3536 CC=$ac_cv_prog_CC
3537 if test -n "$CC"; then
3538 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3539 printf "%s\n" "$CC" >&6; }
3540 else
3541 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3542 printf "%s\n" "no" >&6; }
3543 fi
3544
3545
3546 test -n "$CC" && break
3547 done
3548 fi
3549 if test -z "$CC"; then
3550 ac_ct_CC=$CC
3551 for ac_prog in cl.exe
3552 do
3553 # Extract the first word of "$ac_prog", so it can be a program name with args.
3554 set dummy $ac_prog; ac_word=$2
3555 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3556 printf %s "checking for $ac_word... " >&6; }
3557 if test ${ac_cv_prog_ac_ct_CC+y}
3558 then :
3559 printf %s "(cached) " >&6
3560 else $as_nop
3561 if test -n "$ac_ct_CC"; then
3562 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3563 else
3564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3565 for as_dir in $PATH
3566 do
3567 IFS=$as_save_IFS
3568 case $as_dir in #(((
3569 '') as_dir=./ ;;
3570 */) ;;
3571 *) as_dir=$as_dir/ ;;
3572 esac
3573 for ac_exec_ext in '' $ac_executable_extensions; do
3574 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3575 ac_cv_prog_ac_ct_CC="$ac_prog"
3576 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3577 break 2
3578 fi
3579 done
3580 done
3581 IFS=$as_save_IFS
3582
3583 fi
3584 fi
3585 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3586 if test -n "$ac_ct_CC"; then
3587 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3588 printf "%s\n" "$ac_ct_CC" >&6; }
3589 else
3590 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3591 printf "%s\n" "no" >&6; }
3592 fi
3593
3594
3595 test -n "$ac_ct_CC" && break
3596 done
3597
3598 if test "x$ac_ct_CC" = x; then
3599 CC=""
3600 else
3601 case $cross_compiling:$ac_tool_warned in
3602 yes:)
3603 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3604 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3605 ac_tool_warned=yes ;;
3606 esac
3607 CC=$ac_ct_CC
3608 fi
3609 fi
3610
3611 fi
3612 if test -z "$CC"; then
3613 if test -n "$ac_tool_prefix"; then
3614 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3615 set dummy ${ac_tool_prefix}clang; ac_word=$2
3616 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3617 printf %s "checking for $ac_word... " >&6; }
3618 if test ${ac_cv_prog_CC+y}
3619 then :
3620 printf %s "(cached) " >&6
3621 else $as_nop
3622 if test -n "$CC"; then
3623 ac_cv_prog_CC="$CC" # Let the user override the test.
3624 else
3625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3626 for as_dir in $PATH
3627 do
3628 IFS=$as_save_IFS
3629 case $as_dir in #(((
3630 '') as_dir=./ ;;
3631 */) ;;
3632 *) as_dir=$as_dir/ ;;
3633 esac
3634 for ac_exec_ext in '' $ac_executable_extensions; do
3635 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3636 ac_cv_prog_CC="${ac_tool_prefix}clang"
3637 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3638 break 2
3639 fi
3640 done
3641 done
3642 IFS=$as_save_IFS
3643
3644 fi
3645 fi
3646 CC=$ac_cv_prog_CC
3647 if test -n "$CC"; then
3648 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3649 printf "%s\n" "$CC" >&6; }
3650 else
3651 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3652 printf "%s\n" "no" >&6; }
3653 fi
3654
3655
3656 fi
3657 if test -z "$ac_cv_prog_CC"; then
3658 ac_ct_CC=$CC
3659 # Extract the first word of "clang", so it can be a program name with args.
3660 set dummy clang; ac_word=$2
3661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3662 printf %s "checking for $ac_word... " >&6; }
3663 if test ${ac_cv_prog_ac_ct_CC+y}
3664 then :
3665 printf %s "(cached) " >&6
3666 else $as_nop
3667 if test -n "$ac_ct_CC"; then
3668 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3669 else
3670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3671 for as_dir in $PATH
3672 do
3673 IFS=$as_save_IFS
3674 case $as_dir in #(((
3675 '') as_dir=./ ;;
3676 */) ;;
3677 *) as_dir=$as_dir/ ;;
3678 esac
3679 for ac_exec_ext in '' $ac_executable_extensions; do
3680 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3681 ac_cv_prog_ac_ct_CC="clang"
3682 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3683 break 2
3684 fi
3685 done
3686 done
3687 IFS=$as_save_IFS
3688
3689 fi
3690 fi
3691 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3692 if test -n "$ac_ct_CC"; then
3693 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3694 printf "%s\n" "$ac_ct_CC" >&6; }
3695 else
3696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3697 printf "%s\n" "no" >&6; }
3698 fi
3699
3700 if test "x$ac_ct_CC" = x; then
3701 CC=""
3702 else
3703 case $cross_compiling:$ac_tool_warned in
3704 yes:)
3705 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3706 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3707 ac_tool_warned=yes ;;
3708 esac
3709 CC=$ac_ct_CC
3710 fi
3711 else
3712 CC="$ac_cv_prog_CC"
3713 fi
3714
3715 fi
3716
3717
3718 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3719 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3720 as_fn_error $? "no acceptable C compiler found in \$PATH
3721 See \`config.log' for more details" "$LINENO" 5; }
3722
3723 # Provide some information about the compiler.
3724 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3725 set X $ac_compile
3726 ac_compiler=$2
3727 for ac_option in --version -v -V -qversion -version; do
3728 { { ac_try="$ac_compiler $ac_option >&5"
3729 case "(($ac_try" in
3730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3731 *) ac_try_echo=$ac_try;;
3732 esac
3733 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3734 printf "%s\n" "$ac_try_echo"; } >&5
3735 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3736 ac_status=$?
3737 if test -s conftest.err; then
3738 sed '10a\
3739 ... rest of stderr output deleted ...
3740 10q' conftest.err >conftest.er1
3741 cat conftest.er1 >&5
3742 fi
3743 rm -f conftest.er1 conftest.err
3744 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3745 test $ac_status = 0; }
3746 done
3747
3748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3749 /* end confdefs.h. */
3750
3751 int
3752 main (void)
3753 {
3754
3755 ;
3756 return 0;
3757 }
3758 _ACEOF
3759 ac_clean_files_save=$ac_clean_files
3760 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3761 # Try to create an executable without -o first, disregard a.out.
3762 # It will help us diagnose broken compilers, and finding out an intuition
3763 # of exeext.
3764 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3765 printf %s "checking whether the C compiler works... " >&6; }
3766 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3767
3768 # The possible output files:
3769 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3770
3771 ac_rmfiles=
3772 for ac_file in $ac_files
3773 do
3774 case $ac_file in
3775 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3776 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3777 esac
3778 done
3779 rm -f $ac_rmfiles
3780
3781 if { { ac_try="$ac_link_default"
3782 case "(($ac_try" in
3783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3784 *) ac_try_echo=$ac_try;;
3785 esac
3786 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3787 printf "%s\n" "$ac_try_echo"; } >&5
3788 (eval "$ac_link_default") 2>&5
3789 ac_status=$?
3790 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3791 test $ac_status = 0; }
3792 then :
3793 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3794 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3795 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3796 # so that the user can short-circuit this test for compilers unknown to
3797 # Autoconf.
3798 for ac_file in $ac_files ''
3799 do
3800 test -f "$ac_file" || continue
3801 case $ac_file in
3802 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3803 ;;
3804 [ab].out )
3805 # We found the default executable, but exeext='' is most
3806 # certainly right.
3807 break;;
3808 *.* )
3809 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
3810 then :; else
3811 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3812 fi
3813 # We set ac_cv_exeext here because the later test for it is not
3814 # safe: cross compilers may not add the suffix if given an `-o'
3815 # argument, so we may need to know it at that point already.
3816 # Even if this section looks crufty: it has the advantage of
3817 # actually working.
3818 break;;
3819 * )
3820 break;;
3821 esac
3822 done
3823 test "$ac_cv_exeext" = no && ac_cv_exeext=
3824
3825 else $as_nop
3826 ac_file=''
3827 fi
3828 if test -z "$ac_file"
3829 then :
3830 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3831 printf "%s\n" "no" >&6; }
3832 printf "%s\n" "$as_me: failed program was:" >&5
3833 sed 's/^/| /' conftest.$ac_ext >&5
3834
3835 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3836 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3837 as_fn_error 77 "C compiler cannot create executables
3838 See \`config.log' for more details" "$LINENO" 5; }
3839 else $as_nop
3840 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3841 printf "%s\n" "yes" >&6; }
3842 fi
3843 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3844 printf %s "checking for C compiler default output file name... " >&6; }
3845 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3846 printf "%s\n" "$ac_file" >&6; }
3847 ac_exeext=$ac_cv_exeext
3848
3849 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3850 ac_clean_files=$ac_clean_files_save
3851 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3852 printf %s "checking for suffix of executables... " >&6; }
3853 if { { ac_try="$ac_link"
3854 case "(($ac_try" in
3855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3856 *) ac_try_echo=$ac_try;;
3857 esac
3858 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3859 printf "%s\n" "$ac_try_echo"; } >&5
3860 (eval "$ac_link") 2>&5
3861 ac_status=$?
3862 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3863 test $ac_status = 0; }
3864 then :
3865 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3866 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3867 # work properly (i.e., refer to `conftest.exe'), while it won't with
3868 # `rm'.
3869 for ac_file in conftest.exe conftest conftest.*; do
3870 test -f "$ac_file" || continue
3871 case $ac_file in
3872 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3873 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3874 break;;
3875 * ) break;;
3876 esac
3877 done
3878 else $as_nop
3879 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3880 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3881 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3882 See \`config.log' for more details" "$LINENO" 5; }
3883 fi
3884 rm -f conftest conftest$ac_cv_exeext
3885 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3886 printf "%s\n" "$ac_cv_exeext" >&6; }
3887
3888 rm -f conftest.$ac_ext
3889 EXEEXT=$ac_cv_exeext
3890 ac_exeext=$EXEEXT
3891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3892 /* end confdefs.h. */
3893 #include <stdio.h>
3894 int
3895 main (void)
3896 {
3897 FILE *f = fopen ("conftest.out", "w");
3898 return ferror (f) || fclose (f) != 0;
3899
3900 ;
3901 return 0;
3902 }
3903 _ACEOF
3904 ac_clean_files="$ac_clean_files conftest.out"
3905 # Check that the compiler produces executables we can run. If not, either
3906 # the compiler is broken, or we cross compile.
3907 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3908 printf %s "checking whether we are cross compiling... " >&6; }
3909 if test "$cross_compiling" != yes; then
3910 { { ac_try="$ac_link"
3911 case "(($ac_try" in
3912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3913 *) ac_try_echo=$ac_try;;
3914 esac
3915 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3916 printf "%s\n" "$ac_try_echo"; } >&5
3917 (eval "$ac_link") 2>&5
3918 ac_status=$?
3919 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3920 test $ac_status = 0; }
3921 if { ac_try='./conftest$ac_cv_exeext'
3922 { { case "(($ac_try" in
3923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3924 *) ac_try_echo=$ac_try;;
3925 esac
3926 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3927 printf "%s\n" "$ac_try_echo"; } >&5
3928 (eval "$ac_try") 2>&5
3929 ac_status=$?
3930 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3931 test $ac_status = 0; }; }; then
3932 cross_compiling=no
3933 else
3934 if test "$cross_compiling" = maybe; then
3935 cross_compiling=yes
3936 else
3937 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3938 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3939 as_fn_error 77 "cannot run C compiled programs.
3940 If you meant to cross compile, use \`--host'.
3941 See \`config.log' for more details" "$LINENO" 5; }
3942 fi
3943 fi
3944 fi
3945 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3946 printf "%s\n" "$cross_compiling" >&6; }
3947
3948 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3949 ac_clean_files=$ac_clean_files_save
3950 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3951 printf %s "checking for suffix of object files... " >&6; }
3952 if test ${ac_cv_objext+y}
3953 then :
3954 printf %s "(cached) " >&6
3955 else $as_nop
3956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3957 /* end confdefs.h. */
3958
3959 int
3960 main (void)
3961 {
3962
3963 ;
3964 return 0;
3965 }
3966 _ACEOF
3967 rm -f conftest.o conftest.obj
3968 if { { ac_try="$ac_compile"
3969 case "(($ac_try" in
3970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3971 *) ac_try_echo=$ac_try;;
3972 esac
3973 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3974 printf "%s\n" "$ac_try_echo"; } >&5
3975 (eval "$ac_compile") 2>&5
3976 ac_status=$?
3977 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3978 test $ac_status = 0; }
3979 then :
3980 for ac_file in conftest.o conftest.obj conftest.*; do
3981 test -f "$ac_file" || continue;
3982 case $ac_file in
3983 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3984 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3985 break;;
3986 esac
3987 done
3988 else $as_nop
3989 printf "%s\n" "$as_me: failed program was:" >&5
3990 sed 's/^/| /' conftest.$ac_ext >&5
3991
3992 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3993 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3994 as_fn_error $? "cannot compute suffix of object files: cannot compile
3995 See \`config.log' for more details" "$LINENO" 5; }
3996 fi
3997 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3998 fi
3999 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4000 printf "%s\n" "$ac_cv_objext" >&6; }
4001 OBJEXT=$ac_cv_objext
4002 ac_objext=$OBJEXT
4003 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4004 printf %s "checking whether the compiler supports GNU C... " >&6; }
4005 if test ${ac_cv_c_compiler_gnu+y}
4006 then :
4007 printf %s "(cached) " >&6
4008 else $as_nop
4009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4010 /* end confdefs.h. */
4011
4012 int
4013 main (void)
4014 {
4015 #ifndef __GNUC__
4016 choke me
4017 #endif
4018
4019 ;
4020 return 0;
4021 }
4022 _ACEOF
4023 if ac_fn_c_try_compile "$LINENO"
4024 then :
4025 ac_compiler_gnu=yes
4026 else $as_nop
4027 ac_compiler_gnu=no
4028 fi
4029 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4030 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4031
4032 fi
4033 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4034 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4035 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4036
4037 if test $ac_compiler_gnu = yes; then
4038 GCC=yes
4039 else
4040 GCC=
4041 fi
4042 ac_test_CFLAGS=${CFLAGS+y}
4043 ac_save_CFLAGS=$CFLAGS
4044 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4045 printf %s "checking whether $CC accepts -g... " >&6; }
4046 if test ${ac_cv_prog_cc_g+y}
4047 then :
4048 printf %s "(cached) " >&6
4049 else $as_nop
4050 ac_save_c_werror_flag=$ac_c_werror_flag
4051 ac_c_werror_flag=yes
4052 ac_cv_prog_cc_g=no
4053 CFLAGS="-g"
4054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4055 /* end confdefs.h. */
4056
4057 int
4058 main (void)
4059 {
4060
4061 ;
4062 return 0;
4063 }
4064 _ACEOF
4065 if ac_fn_c_try_compile "$LINENO"
4066 then :
4067 ac_cv_prog_cc_g=yes
4068 else $as_nop
4069 CFLAGS=""
4070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4071 /* end confdefs.h. */
4072
4073 int
4074 main (void)
4075 {
4076
4077 ;
4078 return 0;
4079 }
4080 _ACEOF
4081 if ac_fn_c_try_compile "$LINENO"
4082 then :
4083
4084 else $as_nop
4085 ac_c_werror_flag=$ac_save_c_werror_flag
4086 CFLAGS="-g"
4087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4088 /* end confdefs.h. */
4089
4090 int
4091 main (void)
4092 {
4093
4094 ;
4095 return 0;
4096 }
4097 _ACEOF
4098 if ac_fn_c_try_compile "$LINENO"
4099 then :
4100 ac_cv_prog_cc_g=yes
4101 fi
4102 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4103 fi
4104 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4105 fi
4106 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4107 ac_c_werror_flag=$ac_save_c_werror_flag
4108 fi
4109 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4110 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4111 if test $ac_test_CFLAGS; then
4112 CFLAGS=$ac_save_CFLAGS
4113 elif test $ac_cv_prog_cc_g = yes; then
4114 if test "$GCC" = yes; then
4115 CFLAGS="-g -O2"
4116 else
4117 CFLAGS="-g"
4118 fi
4119 else
4120 if test "$GCC" = yes; then
4121 CFLAGS="-O2"
4122 else
4123 CFLAGS=
4124 fi
4125 fi
4126 ac_prog_cc_stdc=no
4127 if test x$ac_prog_cc_stdc = xno
4128 then :
4129 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4130 printf %s "checking for $CC option to enable C11 features... " >&6; }
4131 if test ${ac_cv_prog_cc_c11+y}
4132 then :
4133 printf %s "(cached) " >&6
4134 else $as_nop
4135 ac_cv_prog_cc_c11=no
4136 ac_save_CC=$CC
4137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4138 /* end confdefs.h. */
4139 $ac_c_conftest_c11_program
4140 _ACEOF
4141 for ac_arg in '' -std=gnu11
4142 do
4143 CC="$ac_save_CC $ac_arg"
4144 if ac_fn_c_try_compile "$LINENO"
4145 then :
4146 ac_cv_prog_cc_c11=$ac_arg
4147 fi
4148 rm -f core conftest.err conftest.$ac_objext conftest.beam
4149 test "x$ac_cv_prog_cc_c11" != "xno" && break
4150 done
4151 rm -f conftest.$ac_ext
4152 CC=$ac_save_CC
4153 fi
4154
4155 if test "x$ac_cv_prog_cc_c11" = xno
4156 then :
4157 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4158 printf "%s\n" "unsupported" >&6; }
4159 else $as_nop
4160 if test "x$ac_cv_prog_cc_c11" = x
4161 then :
4162 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4163 printf "%s\n" "none needed" >&6; }
4164 else $as_nop
4165 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4166 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4167 CC="$CC $ac_cv_prog_cc_c11"
4168 fi
4169 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4170 ac_prog_cc_stdc=c11
4171 fi
4172 fi
4173 if test x$ac_prog_cc_stdc = xno
4174 then :
4175 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4176 printf %s "checking for $CC option to enable C99 features... " >&6; }
4177 if test ${ac_cv_prog_cc_c99+y}
4178 then :
4179 printf %s "(cached) " >&6
4180 else $as_nop
4181 ac_cv_prog_cc_c99=no
4182 ac_save_CC=$CC
4183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4184 /* end confdefs.h. */
4185 $ac_c_conftest_c99_program
4186 _ACEOF
4187 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4188 do
4189 CC="$ac_save_CC $ac_arg"
4190 if ac_fn_c_try_compile "$LINENO"
4191 then :
4192 ac_cv_prog_cc_c99=$ac_arg
4193 fi
4194 rm -f core conftest.err conftest.$ac_objext conftest.beam
4195 test "x$ac_cv_prog_cc_c99" != "xno" && break
4196 done
4197 rm -f conftest.$ac_ext
4198 CC=$ac_save_CC
4199 fi
4200
4201 if test "x$ac_cv_prog_cc_c99" = xno
4202 then :
4203 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4204 printf "%s\n" "unsupported" >&6; }
4205 else $as_nop
4206 if test "x$ac_cv_prog_cc_c99" = x
4207 then :
4208 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4209 printf "%s\n" "none needed" >&6; }
4210 else $as_nop
4211 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4212 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4213 CC="$CC $ac_cv_prog_cc_c99"
4214 fi
4215 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4216 ac_prog_cc_stdc=c99
4217 fi
4218 fi
4219 if test x$ac_prog_cc_stdc = xno
4220 then :
4221 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4222 printf %s "checking for $CC option to enable C89 features... " >&6; }
4223 if test ${ac_cv_prog_cc_c89+y}
4224 then :
4225 printf %s "(cached) " >&6
4226 else $as_nop
4227 ac_cv_prog_cc_c89=no
4228 ac_save_CC=$CC
4229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4230 /* end confdefs.h. */
4231 $ac_c_conftest_c89_program
4232 _ACEOF
4233 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4234 do
4235 CC="$ac_save_CC $ac_arg"
4236 if ac_fn_c_try_compile "$LINENO"
4237 then :
4238 ac_cv_prog_cc_c89=$ac_arg
4239 fi
4240 rm -f core conftest.err conftest.$ac_objext conftest.beam
4241 test "x$ac_cv_prog_cc_c89" != "xno" && break
4242 done
4243 rm -f conftest.$ac_ext
4244 CC=$ac_save_CC
4245 fi
4246
4247 if test "x$ac_cv_prog_cc_c89" = xno
4248 then :
4249 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4250 printf "%s\n" "unsupported" >&6; }
4251 else $as_nop
4252 if test "x$ac_cv_prog_cc_c89" = x
4253 then :
4254 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4255 printf "%s\n" "none needed" >&6; }
4256 else $as_nop
4257 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4258 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4259 CC="$CC $ac_cv_prog_cc_c89"
4260 fi
4261 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4262 ac_prog_cc_stdc=c89
4263 fi
4264 fi
4265
4266 ac_ext=c
4267 ac_cpp='$CPP $CPPFLAGS'
4268 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4269 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4270 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4271
4272
4273 ac_ext=c
4274 ac_cpp='$CPP $CPPFLAGS'
4275 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4276 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4277 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4278 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4279 printf %s "checking whether $CC understands -c and -o together... " >&6; }
4280 if test ${am_cv_prog_cc_c_o+y}
4281 then :
4282 printf %s "(cached) " >&6
4283 else $as_nop
4284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4285 /* end confdefs.h. */
4286
4287 int
4288 main (void)
4289 {
4290
4291 ;
4292 return 0;
4293 }
4294 _ACEOF
4295 # Make sure it works both with $CC and with simple cc.
4296 # Following AC_PROG_CC_C_O, we do the test twice because some
4297 # compilers refuse to overwrite an existing .o file with -o,
4298 # though they will create one.
4299 am_cv_prog_cc_c_o=yes
4300 for am_i in 1 2; do
4301 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4302 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4303 ac_status=$?
4304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4305 (exit $ac_status); } \
4306 && test -f conftest2.$ac_objext; then
4307 : OK
4308 else
4309 am_cv_prog_cc_c_o=no
4310 break
4311 fi
4312 done
4313 rm -f core conftest*
4314 unset am_i
4315 fi
4316 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4317 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
4318 if test "$am_cv_prog_cc_c_o" != yes; then
4319 # Losing compiler, so override with the script.
4320 # FIXME: It is wrong to rewrite CC.
4321 # But if we don't then we get into trouble of one sort or another.
4322 # A longer-term fix would be to have automake use am__CC in this case,
4323 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4324 CC="$am_aux_dir/compile $CC"
4325 fi
4326 ac_ext=c
4327 ac_cpp='$CPP $CPPFLAGS'
4328 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4329 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4330 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4331
4332 DEPDIR="${am__leading_dot}deps"
4333
4334 ac_config_commands="$ac_config_commands depfiles"
4335
4336 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
4337 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
4338 cat > confinc.mk << 'END'
4339 am__doit:
4340 @echo this is the am__doit target >confinc.out
4341 .PHONY: am__doit
4342 END
4343 am__include="#"
4344 am__quote=
4345 # BSD make does it like this.
4346 echo '.include "confinc.mk" # ignored' > confmf.BSD
4347 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
4348 echo 'include confinc.mk # ignored' > confmf.GNU
4349 _am_result=no
4350 for s in GNU BSD; do
4351 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
4352 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
4353 ac_status=$?
4354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4355 (exit $ac_status); }
4356 case $?:`cat confinc.out 2>/dev/null` in #(
4357 '0:this is the am__doit target') :
4358 case $s in #(
4359 BSD) :
4360 am__include='.include' am__quote='"' ;; #(
4361 *) :
4362 am__include='include' am__quote='' ;;
4363 esac ;; #(
4364 *) :
4365 ;;
4366 esac
4367 if test "$am__include" != "#"; then
4368 _am_result="yes ($s style)"
4369 break
4370 fi
4371 done
4372 rm -f confinc.* confmf.*
4373 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
4374 printf "%s\n" "${_am_result}" >&6; }
4375
4376 # Check whether --enable-dependency-tracking was given.
4377 if test ${enable_dependency_tracking+y}
4378 then :
4379 enableval=$enable_dependency_tracking;
4380 fi
4381
4382 if test "x$enable_dependency_tracking" != xno; then
4383 am_depcomp="$ac_aux_dir/depcomp"
4384 AMDEPBACKSLASH='\'
4385 am__nodep='_no'
4386 fi
4387 if test "x$enable_dependency_tracking" != xno; then
4388 AMDEP_TRUE=
4389 AMDEP_FALSE='#'
4390 else
4391 AMDEP_TRUE='#'
4392 AMDEP_FALSE=
4393 fi
4394
4395
4396
4397 depcc="$CC" am_compiler_list=
4398
4399 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4400 printf %s "checking dependency style of $depcc... " >&6; }
4401 if test ${am_cv_CC_dependencies_compiler_type+y}
4402 then :
4403 printf %s "(cached) " >&6
4404 else $as_nop
4405 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4406 # We make a subdir and do the tests there. Otherwise we can end up
4407 # making bogus files that we don't know about and never remove. For
4408 # instance it was reported that on HP-UX the gcc test will end up
4409 # making a dummy file named 'D' -- because '-MD' means "put the output
4410 # in D".
4411 rm -rf conftest.dir
4412 mkdir conftest.dir
4413 # Copy depcomp to subdir because otherwise we won't find it if we're
4414 # using a relative directory.
4415 cp "$am_depcomp" conftest.dir
4416 cd conftest.dir
4417 # We will build objects and dependencies in a subdirectory because
4418 # it helps to detect inapplicable dependency modes. For instance
4419 # both Tru64's cc and ICC support -MD to output dependencies as a
4420 # side effect of compilation, but ICC will put the dependencies in
4421 # the current directory while Tru64 will put them in the object
4422 # directory.
4423 mkdir sub
4424
4425 am_cv_CC_dependencies_compiler_type=none
4426 if test "$am_compiler_list" = ""; then
4427 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4428 fi
4429 am__universal=false
4430 case " $depcc " in #(
4431 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4432 esac
4433
4434 for depmode in $am_compiler_list; do
4435 # Setup a source with many dependencies, because some compilers
4436 # like to wrap large dependency lists on column 80 (with \), and
4437 # we should not choose a depcomp mode which is confused by this.
4438 #
4439 # We need to recreate these files for each test, as the compiler may
4440 # overwrite some of them when testing with obscure command lines.
4441 # This happens at least with the AIX C compiler.
4442 : > sub/conftest.c
4443 for i in 1 2 3 4 5 6; do
4444 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4445 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4446 # Solaris 10 /bin/sh.
4447 echo '/* dummy */' > sub/conftst$i.h
4448 done
4449 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4450
4451 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4452 # mode. It turns out that the SunPro C++ compiler does not properly
4453 # handle '-M -o', and we need to detect this. Also, some Intel
4454 # versions had trouble with output in subdirs.
4455 am__obj=sub/conftest.${OBJEXT-o}
4456 am__minus_obj="-o $am__obj"
4457 case $depmode in
4458 gcc)
4459 # This depmode causes a compiler race in universal mode.
4460 test "$am__universal" = false || continue
4461 ;;
4462 nosideeffect)
4463 # After this tag, mechanisms are not by side-effect, so they'll
4464 # only be used when explicitly requested.
4465 if test "x$enable_dependency_tracking" = xyes; then
4466 continue
4467 else
4468 break
4469 fi
4470 ;;
4471 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4472 # This compiler won't grok '-c -o', but also, the minuso test has
4473 # not run yet. These depmodes are late enough in the game, and
4474 # so weak that their functioning should not be impacted.
4475 am__obj=conftest.${OBJEXT-o}
4476 am__minus_obj=
4477 ;;
4478 none) break ;;
4479 esac
4480 if depmode=$depmode \
4481 source=sub/conftest.c object=$am__obj \
4482 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4483 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4484 >/dev/null 2>conftest.err &&
4485 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4486 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4487 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4488 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4489 # icc doesn't choke on unknown options, it will just issue warnings
4490 # or remarks (even with -Werror). So we grep stderr for any message
4491 # that says an option was ignored or not supported.
4492 # When given -MP, icc 7.0 and 7.1 complain thusly:
4493 # icc: Command line warning: ignoring option '-M'; no argument required
4494 # The diagnosis changed in icc 8.0:
4495 # icc: Command line remark: option '-MP' not supported
4496 if (grep 'ignoring option' conftest.err ||
4497 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4498 am_cv_CC_dependencies_compiler_type=$depmode
4499 break
4500 fi
4501 fi
4502 done
4503
4504 cd ..
4505 rm -rf conftest.dir
4506 else
4507 am_cv_CC_dependencies_compiler_type=none
4508 fi
4509
4510 fi
4511 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4512 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
4513 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4514
4515 if
4516 test "x$enable_dependency_tracking" != xno \
4517 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4518 am__fastdepCC_TRUE=
4519 am__fastdepCC_FALSE='#'
4520 else
4521 am__fastdepCC_TRUE='#'
4522 am__fastdepCC_FALSE=
4523 fi
4524
4525
4526 case `pwd` in
4527 *\ * | *\ *)
4528 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4529 printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4530 esac
4531
4532
4533
4534 macro_version='2.4.7'
4535 macro_revision='2.4.7'
4536
4537
4538
4539
4540
4541
4542
4543
4544
4545
4546
4547
4548
4549
4550 ltmain=$ac_aux_dir/ltmain.sh
4551
4552
4553
4554 # Make sure we can run config.sub.
4555 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
4556 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
4557
4558 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4559 printf %s "checking build system type... " >&6; }
4560 if test ${ac_cv_build+y}
4561 then :
4562 printf %s "(cached) " >&6
4563 else $as_nop
4564 ac_build_alias=$build_alias
4565 test "x$ac_build_alias" = x &&
4566 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
4567 test "x$ac_build_alias" = x &&
4568 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4569 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
4570 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
4571
4572 fi
4573 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4574 printf "%s\n" "$ac_cv_build" >&6; }
4575 case $ac_cv_build in
4576 *-*-*) ;;
4577 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4578 esac
4579 build=$ac_cv_build
4580 ac_save_IFS=$IFS; IFS='-'
4581 set x $ac_cv_build
4582 shift
4583 build_cpu=$1
4584 build_vendor=$2
4585 shift; shift
4586 # Remember, the first character of IFS is used to create $*,
4587 # except with old shells:
4588 build_os=$*
4589 IFS=$ac_save_IFS
4590 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4591
4592
4593 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4594 printf %s "checking host system type... " >&6; }
4595 if test ${ac_cv_host+y}
4596 then :
4597 printf %s "(cached) " >&6
4598 else $as_nop
4599 if test "x$host_alias" = x; then
4600 ac_cv_host=$ac_cv_build
4601 else
4602 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
4603 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
4604 fi
4605
4606 fi
4607 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4608 printf "%s\n" "$ac_cv_host" >&6; }
4609 case $ac_cv_host in
4610 *-*-*) ;;
4611 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4612 esac
4613 host=$ac_cv_host
4614 ac_save_IFS=$IFS; IFS='-'
4615 set x $ac_cv_host
4616 shift
4617 host_cpu=$1
4618 host_vendor=$2
4619 shift; shift
4620 # Remember, the first character of IFS is used to create $*,
4621 # except with old shells:
4622 host_os=$*
4623 IFS=$ac_save_IFS
4624 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4625
4626
4627 # Backslashify metacharacters that are still active within
4628 # double-quoted strings.
4629 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4630
4631 # Same as above, but do not quote variable references.
4632 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4633
4634 # Sed substitution to delay expansion of an escaped shell variable in a
4635 # double_quote_subst'ed string.
4636 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4637
4638 # Sed substitution to delay expansion of an escaped single quote.
4639 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4640
4641 # Sed substitution to avoid accidental globbing in evaled expressions
4642 no_glob_subst='s/\*/\\\*/g'
4643
4644 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4645 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4646 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4647
4648 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4649 printf %s "checking how to print strings... " >&6; }
4650 # Test print first, because it will be a builtin if present.
4651 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4652 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4653 ECHO='print -r --'
4654 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4655 ECHO='printf %s\n'
4656 else
4657 # Use this function as a fallback that always works.
4658 func_fallback_echo ()
4659 {
4660 eval 'cat <<_LTECHO_EOF
4661 $1
4662 _LTECHO_EOF'
4663 }
4664 ECHO='func_fallback_echo'
4665 fi
4666
4667 # func_echo_all arg...
4668 # Invoke $ECHO with all args, space-separated.
4669 func_echo_all ()
4670 {
4671 $ECHO ""
4672 }
4673
4674 case $ECHO in
4675 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4676 printf "%s\n" "printf" >&6; } ;;
4677 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4678 printf "%s\n" "print -r" >&6; } ;;
4679 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4680 printf "%s\n" "cat" >&6; } ;;
4681 esac
4682
4683
4684
4685
4686
4687
4688
4689
4690
4691
4692
4693
4694
4695
4696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4697 printf %s "checking for a sed that does not truncate output... " >&6; }
4698 if test ${ac_cv_path_SED+y}
4699 then :
4700 printf %s "(cached) " >&6
4701 else $as_nop
4702 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4703 for ac_i in 1 2 3 4 5 6 7; do
4704 ac_script="$ac_script$as_nl$ac_script"
4705 done
4706 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4707 { ac_script=; unset ac_script;}
4708 if test -z "$SED"; then
4709 ac_path_SED_found=false
4710 # Loop through the user's path and test for each of PROGNAME-LIST
4711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4712 for as_dir in $PATH
4713 do
4714 IFS=$as_save_IFS
4715 case $as_dir in #(((
4716 '') as_dir=./ ;;
4717 */) ;;
4718 *) as_dir=$as_dir/ ;;
4719 esac
4720 for ac_prog in sed gsed
4721 do
4722 for ac_exec_ext in '' $ac_executable_extensions; do
4723 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
4724 as_fn_executable_p "$ac_path_SED" || continue
4725 # Check for GNU ac_path_SED and select it if it is found.
4726 # Check for GNU $ac_path_SED
4727 case `"$ac_path_SED" --version 2>&1` in
4728 *GNU*)
4729 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4730 *)
4731 ac_count=0
4732 printf %s 0123456789 >"conftest.in"
4733 while :
4734 do
4735 cat "conftest.in" "conftest.in" >"conftest.tmp"
4736 mv "conftest.tmp" "conftest.in"
4737 cp "conftest.in" "conftest.nl"
4738 printf "%s\n" '' >> "conftest.nl"
4739 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4740 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4741 as_fn_arith $ac_count + 1 && ac_count=$as_val
4742 if test $ac_count -gt ${ac_path_SED_max-0}; then
4743 # Best one so far, save it but keep looking for a better one
4744 ac_cv_path_SED="$ac_path_SED"
4745 ac_path_SED_max=$ac_count
4746 fi
4747 # 10*(2^10) chars as input seems more than enough
4748 test $ac_count -gt 10 && break
4749 done
4750 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4751 esac
4752
4753 $ac_path_SED_found && break 3
4754 done
4755 done
4756 done
4757 IFS=$as_save_IFS
4758 if test -z "$ac_cv_path_SED"; then
4759 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4760 fi
4761 else
4762 ac_cv_path_SED=$SED
4763 fi
4764
4765 fi
4766 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4767 printf "%s\n" "$ac_cv_path_SED" >&6; }
4768 SED="$ac_cv_path_SED"
4769 rm -f conftest.sed
4770
4771 test -z "$SED" && SED=sed
4772 Xsed="$SED -e 1s/^X//"
4773
4774
4775
4776
4777
4778
4779
4780
4781
4782
4783
4784 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4785 printf %s "checking for grep that handles long lines and -e... " >&6; }
4786 if test ${ac_cv_path_GREP+y}
4787 then :
4788 printf %s "(cached) " >&6
4789 else $as_nop
4790 if test -z "$GREP"; then
4791 ac_path_GREP_found=false
4792 # Loop through the user's path and test for each of PROGNAME-LIST
4793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4794 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4795 do
4796 IFS=$as_save_IFS
4797 case $as_dir in #(((
4798 '') as_dir=./ ;;
4799 */) ;;
4800 *) as_dir=$as_dir/ ;;
4801 esac
4802 for ac_prog in grep ggrep
4803 do
4804 for ac_exec_ext in '' $ac_executable_extensions; do
4805 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
4806 as_fn_executable_p "$ac_path_GREP" || continue
4807 # Check for GNU ac_path_GREP and select it if it is found.
4808 # Check for GNU $ac_path_GREP
4809 case `"$ac_path_GREP" --version 2>&1` in
4810 *GNU*)
4811 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4812 *)
4813 ac_count=0
4814 printf %s 0123456789 >"conftest.in"
4815 while :
4816 do
4817 cat "conftest.in" "conftest.in" >"conftest.tmp"
4818 mv "conftest.tmp" "conftest.in"
4819 cp "conftest.in" "conftest.nl"
4820 printf "%s\n" 'GREP' >> "conftest.nl"
4821 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4822 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4823 as_fn_arith $ac_count + 1 && ac_count=$as_val
4824 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4825 # Best one so far, save it but keep looking for a better one
4826 ac_cv_path_GREP="$ac_path_GREP"
4827 ac_path_GREP_max=$ac_count
4828 fi
4829 # 10*(2^10) chars as input seems more than enough
4830 test $ac_count -gt 10 && break
4831 done
4832 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4833 esac
4834
4835 $ac_path_GREP_found && break 3
4836 done
4837 done
4838 done
4839 IFS=$as_save_IFS
4840 if test -z "$ac_cv_path_GREP"; then
4841 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4842 fi
4843 else
4844 ac_cv_path_GREP=$GREP
4845 fi
4846
4847 fi
4848 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4849 printf "%s\n" "$ac_cv_path_GREP" >&6; }
4850 GREP="$ac_cv_path_GREP"
4851
4852
4853 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4854 printf %s "checking for egrep... " >&6; }
4855 if test ${ac_cv_path_EGREP+y}
4856 then :
4857 printf %s "(cached) " >&6
4858 else $as_nop
4859 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4860 then ac_cv_path_EGREP="$GREP -E"
4861 else
4862 if test -z "$EGREP"; then
4863 ac_path_EGREP_found=false
4864 # Loop through the user's path and test for each of PROGNAME-LIST
4865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4866 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4867 do
4868 IFS=$as_save_IFS
4869 case $as_dir in #(((
4870 '') as_dir=./ ;;
4871 */) ;;
4872 *) as_dir=$as_dir/ ;;
4873 esac
4874 for ac_prog in egrep
4875 do
4876 for ac_exec_ext in '' $ac_executable_extensions; do
4877 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
4878 as_fn_executable_p "$ac_path_EGREP" || continue
4879 # Check for GNU ac_path_EGREP and select it if it is found.
4880 # Check for GNU $ac_path_EGREP
4881 case `"$ac_path_EGREP" --version 2>&1` in
4882 *GNU*)
4883 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4884 *)
4885 ac_count=0
4886 printf %s 0123456789 >"conftest.in"
4887 while :
4888 do
4889 cat "conftest.in" "conftest.in" >"conftest.tmp"
4890 mv "conftest.tmp" "conftest.in"
4891 cp "conftest.in" "conftest.nl"
4892 printf "%s\n" 'EGREP' >> "conftest.nl"
4893 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4894 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4895 as_fn_arith $ac_count + 1 && ac_count=$as_val
4896 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4897 # Best one so far, save it but keep looking for a better one
4898 ac_cv_path_EGREP="$ac_path_EGREP"
4899 ac_path_EGREP_max=$ac_count
4900 fi
4901 # 10*(2^10) chars as input seems more than enough
4902 test $ac_count -gt 10 && break
4903 done
4904 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4905 esac
4906
4907 $ac_path_EGREP_found && break 3
4908 done
4909 done
4910 done
4911 IFS=$as_save_IFS
4912 if test -z "$ac_cv_path_EGREP"; then
4913 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4914 fi
4915 else
4916 ac_cv_path_EGREP=$EGREP
4917 fi
4918
4919 fi
4920 fi
4921 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4922 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
4923 EGREP="$ac_cv_path_EGREP"
4924
4925
4926 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4927 printf %s "checking for fgrep... " >&6; }
4928 if test ${ac_cv_path_FGREP+y}
4929 then :
4930 printf %s "(cached) " >&6
4931 else $as_nop
4932 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4933 then ac_cv_path_FGREP="$GREP -F"
4934 else
4935 if test -z "$FGREP"; then
4936 ac_path_FGREP_found=false
4937 # Loop through the user's path and test for each of PROGNAME-LIST
4938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4939 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4940 do
4941 IFS=$as_save_IFS
4942 case $as_dir in #(((
4943 '') as_dir=./ ;;
4944 */) ;;
4945 *) as_dir=$as_dir/ ;;
4946 esac
4947 for ac_prog in fgrep
4948 do
4949 for ac_exec_ext in '' $ac_executable_extensions; do
4950 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
4951 as_fn_executable_p "$ac_path_FGREP" || continue
4952 # Check for GNU ac_path_FGREP and select it if it is found.
4953 # Check for GNU $ac_path_FGREP
4954 case `"$ac_path_FGREP" --version 2>&1` in
4955 *GNU*)
4956 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4957 *)
4958 ac_count=0
4959 printf %s 0123456789 >"conftest.in"
4960 while :
4961 do
4962 cat "conftest.in" "conftest.in" >"conftest.tmp"
4963 mv "conftest.tmp" "conftest.in"
4964 cp "conftest.in" "conftest.nl"
4965 printf "%s\n" 'FGREP' >> "conftest.nl"
4966 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4967 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4968 as_fn_arith $ac_count + 1 && ac_count=$as_val
4969 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4970 # Best one so far, save it but keep looking for a better one
4971 ac_cv_path_FGREP="$ac_path_FGREP"
4972 ac_path_FGREP_max=$ac_count
4973 fi
4974 # 10*(2^10) chars as input seems more than enough
4975 test $ac_count -gt 10 && break
4976 done
4977 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4978 esac
4979
4980 $ac_path_FGREP_found && break 3
4981 done
4982 done
4983 done
4984 IFS=$as_save_IFS
4985 if test -z "$ac_cv_path_FGREP"; then
4986 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4987 fi
4988 else
4989 ac_cv_path_FGREP=$FGREP
4990 fi
4991
4992 fi
4993 fi
4994 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4995 printf "%s\n" "$ac_cv_path_FGREP" >&6; }
4996 FGREP="$ac_cv_path_FGREP"
4997
4998
4999 test -z "$GREP" && GREP=grep
5000
5001
5002
5003
5004
5005
5006
5007
5008
5009
5010
5011
5012
5013
5014
5015
5016
5017
5018
5019 # Check whether --with-gnu-ld was given.
5020 if test ${with_gnu_ld+y}
5021 then :
5022 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5023 else $as_nop
5024 with_gnu_ld=no
5025 fi
5026
5027 ac_prog=ld
5028 if test yes = "$GCC"; then
5029 # Check if gcc -print-prog-name=ld gives a path.
5030 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5031 printf %s "checking for ld used by $CC... " >&6; }
5032 case $host in
5033 *-*-mingw*)
5034 # gcc leaves a trailing carriage return, which upsets mingw
5035 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5036 *)
5037 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5038 esac
5039 case $ac_prog in
5040 # Accept absolute paths.
5041 [\\/]* | ?:[\\/]*)
5042 re_direlt='/[^/][^/]*/\.\./'
5043 # Canonicalize the pathname of ld
5044 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5045 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5046 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5047 done
5048 test -z "$LD" && LD=$ac_prog
5049 ;;
5050 "")
5051 # If it fails, then pretend we aren't using GCC.
5052 ac_prog=ld
5053 ;;
5054 *)
5055 # If it is relative, then search for the first ld in PATH.
5056 with_gnu_ld=unknown
5057 ;;
5058 esac
5059 elif test yes = "$with_gnu_ld"; then
5060 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5061 printf %s "checking for GNU ld... " >&6; }
5062 else
5063 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5064 printf %s "checking for non-GNU ld... " >&6; }
5065 fi
5066 if test ${lt_cv_path_LD+y}
5067 then :
5068 printf %s "(cached) " >&6
5069 else $as_nop
5070 if test -z "$LD"; then
5071 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5072 for ac_dir in $PATH; do
5073 IFS=$lt_save_ifs
5074 test -z "$ac_dir" && ac_dir=.
5075 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5076 lt_cv_path_LD=$ac_dir/$ac_prog
5077 # Check to see if the program is GNU ld. I'd rather use --version,
5078 # but apparently some variants of GNU ld only accept -v.
5079 # Break only if it was the GNU/non-GNU ld that we prefer.
5080 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5081 *GNU* | *'with BFD'*)
5082 test no != "$with_gnu_ld" && break
5083 ;;
5084 *)
5085 test yes != "$with_gnu_ld" && break
5086 ;;
5087 esac
5088 fi
5089 done
5090 IFS=$lt_save_ifs
5091 else
5092 lt_cv_path_LD=$LD # Let the user override the test with a path.
5093 fi
5094 fi
5095
5096 LD=$lt_cv_path_LD
5097 if test -n "$LD"; then
5098 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5099 printf "%s\n" "$LD" >&6; }
5100 else
5101 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5102 printf "%s\n" "no" >&6; }
5103 fi
5104 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5105 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5106 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
5107 if test ${lt_cv_prog_gnu_ld+y}
5108 then :
5109 printf %s "(cached) " >&6
5110 else $as_nop
5111 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5112 case `$LD -v 2>&1 </dev/null` in
5113 *GNU* | *'with BFD'*)
5114 lt_cv_prog_gnu_ld=yes
5115 ;;
5116 *)
5117 lt_cv_prog_gnu_ld=no
5118 ;;
5119 esac
5120 fi
5121 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5122 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
5123 with_gnu_ld=$lt_cv_prog_gnu_ld
5124
5125
5126
5127
5128
5129
5130
5131
5132
5133 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5134 printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5135 if test ${lt_cv_path_NM+y}
5136 then :
5137 printf %s "(cached) " >&6
5138 else $as_nop
5139 if test -n "$NM"; then
5140 # Let the user override the test.
5141 lt_cv_path_NM=$NM
5142 else
5143 lt_nm_to_check=${ac_tool_prefix}nm
5144 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5145 lt_nm_to_check="$lt_nm_to_check nm"
5146 fi
5147 for lt_tmp_nm in $lt_nm_to_check; do
5148 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5149 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5150 IFS=$lt_save_ifs
5151 test -z "$ac_dir" && ac_dir=.
5152 tmp_nm=$ac_dir/$lt_tmp_nm
5153 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5154 # Check to see if the nm accepts a BSD-compat flag.
5155 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5156 # nm: unknown option "B" ignored
5157 # Tru64's nm complains that /dev/null is an invalid object file
5158 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5159 case $build_os in
5160 mingw*) lt_bad_file=conftest.nm/nofile ;;
5161 *) lt_bad_file=/dev/null ;;
5162 esac
5163 case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in
5164 *$lt_bad_file* | *'Invalid file or object type'*)
5165 lt_cv_path_NM="$tmp_nm -B"
5166 break 2
5167 ;;
5168 *)
5169 case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in
5170 */dev/null*)
5171 lt_cv_path_NM="$tmp_nm -p"
5172 break 2
5173 ;;
5174 *)
5175 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5176 continue # so that we can try to find one that supports BSD flags
5177 ;;
5178 esac
5179 ;;
5180 esac
5181 fi
5182 done
5183 IFS=$lt_save_ifs
5184 done
5185 : ${lt_cv_path_NM=no}
5186 fi
5187 fi
5188 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5189 printf "%s\n" "$lt_cv_path_NM" >&6; }
5190 if test no != "$lt_cv_path_NM"; then
5191 NM=$lt_cv_path_NM
5192 else
5193 # Didn't find any BSD compatible name lister, look for dumpbin.
5194 if test -n "$DUMPBIN"; then :
5195 # Let the user override the test.
5196 else
5197 if test -n "$ac_tool_prefix"; then
5198 for ac_prog in dumpbin "link -dump"
5199 do
5200 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5201 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5202 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5203 printf %s "checking for $ac_word... " >&6; }
5204 if test ${ac_cv_prog_DUMPBIN+y}
5205 then :
5206 printf %s "(cached) " >&6
5207 else $as_nop
5208 if test -n "$DUMPBIN"; then
5209 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5210 else
5211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5212 for as_dir in $PATH
5213 do
5214 IFS=$as_save_IFS
5215 case $as_dir in #(((
5216 '') as_dir=./ ;;
5217 */) ;;
5218 *) as_dir=$as_dir/ ;;
5219 esac
5220 for ac_exec_ext in '' $ac_executable_extensions; do
5221 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5222 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5223 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5224 break 2
5225 fi
5226 done
5227 done
5228 IFS=$as_save_IFS
5229
5230 fi
5231 fi
5232 DUMPBIN=$ac_cv_prog_DUMPBIN
5233 if test -n "$DUMPBIN"; then
5234 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5235 printf "%s\n" "$DUMPBIN" >&6; }
5236 else
5237 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5238 printf "%s\n" "no" >&6; }
5239 fi
5240
5241
5242 test -n "$DUMPBIN" && break
5243 done
5244 fi
5245 if test -z "$DUMPBIN"; then
5246 ac_ct_DUMPBIN=$DUMPBIN
5247 for ac_prog in dumpbin "link -dump"
5248 do
5249 # Extract the first word of "$ac_prog", so it can be a program name with args.
5250 set dummy $ac_prog; ac_word=$2
5251 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5252 printf %s "checking for $ac_word... " >&6; }
5253 if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
5254 then :
5255 printf %s "(cached) " >&6
5256 else $as_nop
5257 if test -n "$ac_ct_DUMPBIN"; then
5258 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5259 else
5260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5261 for as_dir in $PATH
5262 do
5263 IFS=$as_save_IFS
5264 case $as_dir in #(((
5265 '') as_dir=./ ;;
5266 */) ;;
5267 *) as_dir=$as_dir/ ;;
5268 esac
5269 for ac_exec_ext in '' $ac_executable_extensions; do
5270 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5271 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5272 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5273 break 2
5274 fi
5275 done
5276 done
5277 IFS=$as_save_IFS
5278
5279 fi
5280 fi
5281 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5282 if test -n "$ac_ct_DUMPBIN"; then
5283 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5284 printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
5285 else
5286 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5287 printf "%s\n" "no" >&6; }
5288 fi
5289
5290
5291 test -n "$ac_ct_DUMPBIN" && break
5292 done
5293
5294 if test "x$ac_ct_DUMPBIN" = x; then
5295 DUMPBIN=":"
5296 else
5297 case $cross_compiling:$ac_tool_warned in
5298 yes:)
5299 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5300 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5301 ac_tool_warned=yes ;;
5302 esac
5303 DUMPBIN=$ac_ct_DUMPBIN
5304 fi
5305 fi
5306
5307 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in
5308 *COFF*)
5309 DUMPBIN="$DUMPBIN -symbols -headers"
5310 ;;
5311 *)
5312 DUMPBIN=:
5313 ;;
5314 esac
5315 fi
5316
5317 if test : != "$DUMPBIN"; then
5318 NM=$DUMPBIN
5319 fi
5320 fi
5321 test -z "$NM" && NM=nm
5322
5323
5324
5325
5326
5327
5328 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5329 printf %s "checking the name lister ($NM) interface... " >&6; }
5330 if test ${lt_cv_nm_interface+y}
5331 then :
5332 printf %s "(cached) " >&6
5333 else $as_nop
5334 lt_cv_nm_interface="BSD nm"
5335 echo "int some_variable = 0;" > conftest.$ac_ext
5336 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5337 (eval "$ac_compile" 2>conftest.err)
5338 cat conftest.err >&5
5339 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5340 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5341 cat conftest.err >&5
5342 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5343 cat conftest.out >&5
5344 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5345 lt_cv_nm_interface="MS dumpbin"
5346 fi
5347 rm -f conftest*
5348 fi
5349 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5350 printf "%s\n" "$lt_cv_nm_interface" >&6; }
5351
5352 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5353 printf %s "checking whether ln -s works... " >&6; }
5354 LN_S=$as_ln_s
5355 if test "$LN_S" = "ln -s"; then
5356 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5357 printf "%s\n" "yes" >&6; }
5358 else
5359 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5360 printf "%s\n" "no, using $LN_S" >&6; }
5361 fi
5362
5363 # find the maximum length of command line arguments
5364 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5365 printf %s "checking the maximum length of command line arguments... " >&6; }
5366 if test ${lt_cv_sys_max_cmd_len+y}
5367 then :
5368 printf %s "(cached) " >&6
5369 else $as_nop
5370 i=0
5371 teststring=ABCD
5372
5373 case $build_os in
5374 msdosdjgpp*)
5375 # On DJGPP, this test can blow up pretty badly due to problems in libc
5376 # (any single argument exceeding 2000 bytes causes a buffer overrun
5377 # during glob expansion). Even if it were fixed, the result of this
5378 # check would be larger than it should be.
5379 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5380 ;;
5381
5382 gnu*)
5383 # Under GNU Hurd, this test is not required because there is
5384 # no limit to the length of command line arguments.
5385 # Libtool will interpret -1 as no limit whatsoever
5386 lt_cv_sys_max_cmd_len=-1;
5387 ;;
5388
5389 cygwin* | mingw* | cegcc*)
5390 # On Win9x/ME, this test blows up -- it succeeds, but takes
5391 # about 5 minutes as the teststring grows exponentially.
5392 # Worse, since 9x/ME are not pre-emptively multitasking,
5393 # you end up with a "frozen" computer, even though with patience
5394 # the test eventually succeeds (with a max line length of 256k).
5395 # Instead, let's just punt: use the minimum linelength reported by
5396 # all of the supported platforms: 8192 (on NT/2K/XP).
5397 lt_cv_sys_max_cmd_len=8192;
5398 ;;
5399
5400 mint*)
5401 # On MiNT this can take a long time and run out of memory.
5402 lt_cv_sys_max_cmd_len=8192;
5403 ;;
5404
5405 amigaos*)
5406 # On AmigaOS with pdksh, this test takes hours, literally.
5407 # So we just punt and use a minimum line length of 8192.
5408 lt_cv_sys_max_cmd_len=8192;
5409 ;;
5410
5411 bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
5412 # This has been around since 386BSD, at least. Likely further.
5413 if test -x /sbin/sysctl; then
5414 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5415 elif test -x /usr/sbin/sysctl; then
5416 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5417 else
5418 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5419 fi
5420 # And add a safety zone
5421 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5422 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5423 ;;
5424
5425 interix*)
5426 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5427 lt_cv_sys_max_cmd_len=196608
5428 ;;
5429
5430 os2*)
5431 # The test takes a long time on OS/2.
5432 lt_cv_sys_max_cmd_len=8192
5433 ;;
5434
5435 osf*)
5436 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5437 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5438 # nice to cause kernel panics so lets avoid the loop below.
5439 # First set a reasonable default.
5440 lt_cv_sys_max_cmd_len=16384
5441 #
5442 if test -x /sbin/sysconfig; then
5443 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5444 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5445 esac
5446 fi
5447 ;;
5448 sco3.2v5*)
5449 lt_cv_sys_max_cmd_len=102400
5450 ;;
5451 sysv5* | sco5v6* | sysv4.2uw2*)
5452 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5453 if test -n "$kargmax"; then
5454 lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[ ]//'`
5455 else
5456 lt_cv_sys_max_cmd_len=32768
5457 fi
5458 ;;
5459 *)
5460 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5461 if test -n "$lt_cv_sys_max_cmd_len" && \
5462 test undefined != "$lt_cv_sys_max_cmd_len"; then
5463 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5464 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5465 else
5466 # Make teststring a little bigger before we do anything with it.
5467 # a 1K string should be a reasonable start.
5468 for i in 1 2 3 4 5 6 7 8; do
5469 teststring=$teststring$teststring
5470 done
5471 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5472 # If test is not a shell built-in, we'll probably end up computing a
5473 # maximum length that is only half of the actual maximum length, but
5474 # we can't tell.
5475 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5476 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5477 test 17 != "$i" # 1/2 MB should be enough
5478 do
5479 i=`expr $i + 1`
5480 teststring=$teststring$teststring
5481 done
5482 # Only check the string length outside the loop.
5483 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5484 teststring=
5485 # Add a significant safety factor because C++ compilers can tack on
5486 # massive amounts of additional arguments before passing them to the
5487 # linker. It appears as though 1/2 is a usable value.
5488 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5489 fi
5490 ;;
5491 esac
5492
5493 fi
5494
5495 if test -n "$lt_cv_sys_max_cmd_len"; then
5496 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5497 printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
5498 else
5499 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
5500 printf "%s\n" "none" >&6; }
5501 fi
5502 max_cmd_len=$lt_cv_sys_max_cmd_len
5503
5504
5505
5506
5507
5508
5509 : ${CP="cp -f"}
5510 : ${MV="mv -f"}
5511 : ${RM="rm -f"}
5512
5513 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5514 lt_unset=unset
5515 else
5516 lt_unset=false
5517 fi
5518
5519
5520
5521
5522
5523 # test EBCDIC or ASCII
5524 case `echo X|tr X '\101'` in
5525 A) # ASCII based system
5526 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5527 lt_SP2NL='tr \040 \012'
5528 lt_NL2SP='tr \015\012 \040\040'
5529 ;;
5530 *) # EBCDIC based system
5531 lt_SP2NL='tr \100 \n'
5532 lt_NL2SP='tr \r\n \100\100'
5533 ;;
5534 esac
5535
5536
5537
5538
5539
5540
5541
5542
5543
5544 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5545 printf %s "checking how to convert $build file names to $host format... " >&6; }
5546 if test ${lt_cv_to_host_file_cmd+y}
5547 then :
5548 printf %s "(cached) " >&6
5549 else $as_nop
5550 case $host in
5551 *-*-mingw* )
5552 case $build in
5553 *-*-mingw* ) # actually msys
5554 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5555 ;;
5556 *-*-cygwin* )
5557 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5558 ;;
5559 * ) # otherwise, assume *nix
5560 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5561 ;;
5562 esac
5563 ;;
5564 *-*-cygwin* )
5565 case $build in
5566 *-*-mingw* ) # actually msys
5567 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5568 ;;
5569 *-*-cygwin* )
5570 lt_cv_to_host_file_cmd=func_convert_file_noop
5571 ;;
5572 * ) # otherwise, assume *nix
5573 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5574 ;;
5575 esac
5576 ;;
5577 * ) # unhandled hosts (and "normal" native builds)
5578 lt_cv_to_host_file_cmd=func_convert_file_noop
5579 ;;
5580 esac
5581
5582 fi
5583
5584 to_host_file_cmd=$lt_cv_to_host_file_cmd
5585 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5586 printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
5587
5588
5589
5590
5591
5592 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5593 printf %s "checking how to convert $build file names to toolchain format... " >&6; }
5594 if test ${lt_cv_to_tool_file_cmd+y}
5595 then :
5596 printf %s "(cached) " >&6
5597 else $as_nop
5598 #assume ordinary cross tools, or native build.
5599 lt_cv_to_tool_file_cmd=func_convert_file_noop
5600 case $host in
5601 *-*-mingw* )
5602 case $build in
5603 *-*-mingw* ) # actually msys
5604 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5605 ;;
5606 esac
5607 ;;
5608 esac
5609
5610 fi
5611
5612 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5613 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5614 printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
5615
5616
5617
5618
5619
5620 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5621 printf %s "checking for $LD option to reload object files... " >&6; }
5622 if test ${lt_cv_ld_reload_flag+y}
5623 then :
5624 printf %s "(cached) " >&6
5625 else $as_nop
5626 lt_cv_ld_reload_flag='-r'
5627 fi
5628 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5629 printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
5630 reload_flag=$lt_cv_ld_reload_flag
5631 case $reload_flag in
5632 "" | " "*) ;;
5633 *) reload_flag=" $reload_flag" ;;
5634 esac
5635 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5636 case $host_os in
5637 cygwin* | mingw* | pw32* | cegcc*)
5638 if test yes != "$GCC"; then
5639 reload_cmds=false
5640 fi
5641 ;;
5642 darwin*)
5643 if test yes = "$GCC"; then
5644 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5645 else
5646 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5647 fi
5648 ;;
5649 esac
5650
5651
5652
5653
5654
5655
5656
5657
5658
5659 if test -n "$ac_tool_prefix"; then
5660 # Extract the first word of "${ac_tool_prefix}file", so it can be a program name with args.
5661 set dummy ${ac_tool_prefix}file; ac_word=$2
5662 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5663 printf %s "checking for $ac_word... " >&6; }
5664 if test ${ac_cv_prog_FILECMD+y}
5665 then :
5666 printf %s "(cached) " >&6
5667 else $as_nop
5668 if test -n "$FILECMD"; then
5669 ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test.
5670 else
5671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5672 for as_dir in $PATH
5673 do
5674 IFS=$as_save_IFS
5675 case $as_dir in #(((
5676 '') as_dir=./ ;;
5677 */) ;;
5678 *) as_dir=$as_dir/ ;;
5679 esac
5680 for ac_exec_ext in '' $ac_executable_extensions; do
5681 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5682 ac_cv_prog_FILECMD="${ac_tool_prefix}file"
5683 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5684 break 2
5685 fi
5686 done
5687 done
5688 IFS=$as_save_IFS
5689
5690 fi
5691 fi
5692 FILECMD=$ac_cv_prog_FILECMD
5693 if test -n "$FILECMD"; then
5694 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5
5695 printf "%s\n" "$FILECMD" >&6; }
5696 else
5697 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5698 printf "%s\n" "no" >&6; }
5699 fi
5700
5701
5702 fi
5703 if test -z "$ac_cv_prog_FILECMD"; then
5704 ac_ct_FILECMD=$FILECMD
5705 # Extract the first word of "file", so it can be a program name with args.
5706 set dummy file; ac_word=$2
5707 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5708 printf %s "checking for $ac_word... " >&6; }
5709 if test ${ac_cv_prog_ac_ct_FILECMD+y}
5710 then :
5711 printf %s "(cached) " >&6
5712 else $as_nop
5713 if test -n "$ac_ct_FILECMD"; then
5714 ac_cv_prog_ac_ct_FILECMD="$ac_ct_FILECMD" # Let the user override the test.
5715 else
5716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5717 for as_dir in $PATH
5718 do
5719 IFS=$as_save_IFS
5720 case $as_dir in #(((
5721 '') as_dir=./ ;;
5722 */) ;;
5723 *) as_dir=$as_dir/ ;;
5724 esac
5725 for ac_exec_ext in '' $ac_executable_extensions; do
5726 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5727 ac_cv_prog_ac_ct_FILECMD="file"
5728 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5729 break 2
5730 fi
5731 done
5732 done
5733 IFS=$as_save_IFS
5734
5735 fi
5736 fi
5737 ac_ct_FILECMD=$ac_cv_prog_ac_ct_FILECMD
5738 if test -n "$ac_ct_FILECMD"; then
5739 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FILECMD" >&5
5740 printf "%s\n" "$ac_ct_FILECMD" >&6; }
5741 else
5742 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5743 printf "%s\n" "no" >&6; }
5744 fi
5745
5746 if test "x$ac_ct_FILECMD" = x; then
5747 FILECMD=":"
5748 else
5749 case $cross_compiling:$ac_tool_warned in
5750 yes:)
5751 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5752 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5753 ac_tool_warned=yes ;;
5754 esac
5755 FILECMD=$ac_ct_FILECMD
5756 fi
5757 else
5758 FILECMD="$ac_cv_prog_FILECMD"
5759 fi
5760
5761
5762
5763
5764
5765
5766
5767 if test -n "$ac_tool_prefix"; then
5768 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5769 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5771 printf %s "checking for $ac_word... " >&6; }
5772 if test ${ac_cv_prog_OBJDUMP+y}
5773 then :
5774 printf %s "(cached) " >&6
5775 else $as_nop
5776 if test -n "$OBJDUMP"; then
5777 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5778 else
5779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5780 for as_dir in $PATH
5781 do
5782 IFS=$as_save_IFS
5783 case $as_dir in #(((
5784 '') as_dir=./ ;;
5785 */) ;;
5786 *) as_dir=$as_dir/ ;;
5787 esac
5788 for ac_exec_ext in '' $ac_executable_extensions; do
5789 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5790 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5791 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5792 break 2
5793 fi
5794 done
5795 done
5796 IFS=$as_save_IFS
5797
5798 fi
5799 fi
5800 OBJDUMP=$ac_cv_prog_OBJDUMP
5801 if test -n "$OBJDUMP"; then
5802 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5803 printf "%s\n" "$OBJDUMP" >&6; }
5804 else
5805 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5806 printf "%s\n" "no" >&6; }
5807 fi
5808
5809
5810 fi
5811 if test -z "$ac_cv_prog_OBJDUMP"; then
5812 ac_ct_OBJDUMP=$OBJDUMP
5813 # Extract the first word of "objdump", so it can be a program name with args.
5814 set dummy objdump; ac_word=$2
5815 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5816 printf %s "checking for $ac_word... " >&6; }
5817 if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
5818 then :
5819 printf %s "(cached) " >&6
5820 else $as_nop
5821 if test -n "$ac_ct_OBJDUMP"; then
5822 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5823 else
5824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5825 for as_dir in $PATH
5826 do
5827 IFS=$as_save_IFS
5828 case $as_dir in #(((
5829 '') as_dir=./ ;;
5830 */) ;;
5831 *) as_dir=$as_dir/ ;;
5832 esac
5833 for ac_exec_ext in '' $ac_executable_extensions; do
5834 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5835 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5836 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5837 break 2
5838 fi
5839 done
5840 done
5841 IFS=$as_save_IFS
5842
5843 fi
5844 fi
5845 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5846 if test -n "$ac_ct_OBJDUMP"; then
5847 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5848 printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
5849 else
5850 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5851 printf "%s\n" "no" >&6; }
5852 fi
5853
5854 if test "x$ac_ct_OBJDUMP" = x; then
5855 OBJDUMP="false"
5856 else
5857 case $cross_compiling:$ac_tool_warned in
5858 yes:)
5859 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5860 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5861 ac_tool_warned=yes ;;
5862 esac
5863 OBJDUMP=$ac_ct_OBJDUMP
5864 fi
5865 else
5866 OBJDUMP="$ac_cv_prog_OBJDUMP"
5867 fi
5868
5869 test -z "$OBJDUMP" && OBJDUMP=objdump
5870
5871
5872
5873
5874
5875
5876
5877
5878
5879 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5880 printf %s "checking how to recognize dependent libraries... " >&6; }
5881 if test ${lt_cv_deplibs_check_method+y}
5882 then :
5883 printf %s "(cached) " >&6
5884 else $as_nop
5885 lt_cv_file_magic_cmd='$MAGIC_CMD'
5886 lt_cv_file_magic_test_file=
5887 lt_cv_deplibs_check_method='unknown'
5888 # Need to set the preceding variable on all platforms that support
5889 # interlibrary dependencies.
5890 # 'none' -- dependencies not supported.
5891 # 'unknown' -- same as none, but documents that we really don't know.
5892 # 'pass_all' -- all dependencies passed with no checks.
5893 # 'test_compile' -- check by making test program.
5894 # 'file_magic [[regex]]' -- check by looking for files in library path
5895 # that responds to the $file_magic_cmd with a given extended regex.
5896 # If you have 'file' or equivalent on your system and you're not sure
5897 # whether 'pass_all' will *always* work, you probably want this one.
5898
5899 case $host_os in
5900 aix[4-9]*)
5901 lt_cv_deplibs_check_method=pass_all
5902 ;;
5903
5904 beos*)
5905 lt_cv_deplibs_check_method=pass_all
5906 ;;
5907
5908 bsdi[45]*)
5909 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5910 lt_cv_file_magic_cmd='$FILECMD -L'
5911 lt_cv_file_magic_test_file=/shlib/libc.so
5912 ;;
5913
5914 cygwin*)
5915 # func_win32_libid is a shell function defined in ltmain.sh
5916 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5917 lt_cv_file_magic_cmd='func_win32_libid'
5918 ;;
5919
5920 mingw* | pw32*)
5921 # Base MSYS/MinGW do not provide the 'file' command needed by
5922 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5923 # unless we find 'file', for example because we are cross-compiling.
5924 if ( file / ) >/dev/null 2>&1; then
5925 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5926 lt_cv_file_magic_cmd='func_win32_libid'
5927 else
5928 # Keep this pattern in sync with the one in func_win32_libid.
5929 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5930 lt_cv_file_magic_cmd='$OBJDUMP -f'
5931 fi
5932 ;;
5933
5934 cegcc*)
5935 # use the weaker test based on 'objdump'. See mingw*.
5936 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5937 lt_cv_file_magic_cmd='$OBJDUMP -f'
5938 ;;
5939
5940 darwin* | rhapsody*)
5941 lt_cv_deplibs_check_method=pass_all
5942 ;;
5943
5944 freebsd* | dragonfly* | midnightbsd*)
5945 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5946 case $host_cpu in
5947 i*86 )
5948 # Not sure whether the presence of OpenBSD here was a mistake.
5949 # Let's accept both of them until this is cleared up.
5950 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5951 lt_cv_file_magic_cmd=$FILECMD
5952 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5953 ;;
5954 esac
5955 else
5956 lt_cv_deplibs_check_method=pass_all
5957 fi
5958 ;;
5959
5960 haiku*)
5961 lt_cv_deplibs_check_method=pass_all
5962 ;;
5963
5964 hpux10.20* | hpux11*)
5965 lt_cv_file_magic_cmd=$FILECMD
5966 case $host_cpu in
5967 ia64*)
5968 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5969 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5970 ;;
5971 hppa*64*)
5972 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]'
5973 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5974 ;;
5975 *)
5976 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5977 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5978 ;;
5979 esac
5980 ;;
5981
5982 interix[3-9]*)
5983 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5984 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5985 ;;
5986
5987 irix5* | irix6* | nonstopux*)
5988 case $LD in
5989 *-32|*"-32 ") libmagic=32-bit;;
5990 *-n32|*"-n32 ") libmagic=N32;;
5991 *-64|*"-64 ") libmagic=64-bit;;
5992 *) libmagic=never-match;;
5993 esac
5994 lt_cv_deplibs_check_method=pass_all
5995 ;;
5996
5997 # This must be glibc/ELF.
5998 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5999 lt_cv_deplibs_check_method=pass_all
6000 ;;
6001
6002 netbsd*)
6003 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6004 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6005 else
6006 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6007 fi
6008 ;;
6009
6010 newos6*)
6011 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6012 lt_cv_file_magic_cmd=$FILECMD
6013 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6014 ;;
6015
6016 *nto* | *qnx*)
6017 lt_cv_deplibs_check_method=pass_all
6018 ;;
6019
6020 openbsd* | bitrig*)
6021 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
6022 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6023 else
6024 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6025 fi
6026 ;;
6027
6028 osf3* | osf4* | osf5*)
6029 lt_cv_deplibs_check_method=pass_all
6030 ;;
6031
6032 rdos*)
6033 lt_cv_deplibs_check_method=pass_all
6034 ;;
6035
6036 solaris*)
6037 lt_cv_deplibs_check_method=pass_all
6038 ;;
6039
6040 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6041 lt_cv_deplibs_check_method=pass_all
6042 ;;
6043
6044 sysv4 | sysv4.3*)
6045 case $host_vendor in
6046 motorola)
6047 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]'
6048 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6049 ;;
6050 ncr)
6051 lt_cv_deplibs_check_method=pass_all
6052 ;;
6053 sequent)
6054 lt_cv_file_magic_cmd='/bin/file'
6055 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6056 ;;
6057 sni)
6058 lt_cv_file_magic_cmd='/bin/file'
6059 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6060 lt_cv_file_magic_test_file=/lib/libc.so
6061 ;;
6062 siemens)
6063 lt_cv_deplibs_check_method=pass_all
6064 ;;
6065 pc)
6066 lt_cv_deplibs_check_method=pass_all
6067 ;;
6068 esac
6069 ;;
6070
6071 tpf*)
6072 lt_cv_deplibs_check_method=pass_all
6073 ;;
6074 os2*)
6075 lt_cv_deplibs_check_method=pass_all
6076 ;;
6077 esac
6078
6079 fi
6080 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6081 printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
6082
6083 file_magic_glob=
6084 want_nocaseglob=no
6085 if test "$build" = "$host"; then
6086 case $host_os in
6087 mingw* | pw32*)
6088 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6089 want_nocaseglob=yes
6090 else
6091 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6092 fi
6093 ;;
6094 esac
6095 fi
6096
6097 file_magic_cmd=$lt_cv_file_magic_cmd
6098 deplibs_check_method=$lt_cv_deplibs_check_method
6099 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6100
6101
6102
6103
6104
6105
6106
6107
6108
6109
6110
6111
6112
6113
6114
6115
6116
6117
6118
6119
6120
6121
6122 if test -n "$ac_tool_prefix"; then
6123 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6124 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6125 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6126 printf %s "checking for $ac_word... " >&6; }
6127 if test ${ac_cv_prog_DLLTOOL+y}
6128 then :
6129 printf %s "(cached) " >&6
6130 else $as_nop
6131 if test -n "$DLLTOOL"; then
6132 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6133 else
6134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6135 for as_dir in $PATH
6136 do
6137 IFS=$as_save_IFS
6138 case $as_dir in #(((
6139 '') as_dir=./ ;;
6140 */) ;;
6141 *) as_dir=$as_dir/ ;;
6142 esac
6143 for ac_exec_ext in '' $ac_executable_extensions; do
6144 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6145 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6146 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6147 break 2
6148 fi
6149 done
6150 done
6151 IFS=$as_save_IFS
6152
6153 fi
6154 fi
6155 DLLTOOL=$ac_cv_prog_DLLTOOL
6156 if test -n "$DLLTOOL"; then
6157 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6158 printf "%s\n" "$DLLTOOL" >&6; }
6159 else
6160 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6161 printf "%s\n" "no" >&6; }
6162 fi
6163
6164
6165 fi
6166 if test -z "$ac_cv_prog_DLLTOOL"; then
6167 ac_ct_DLLTOOL=$DLLTOOL
6168 # Extract the first word of "dlltool", so it can be a program name with args.
6169 set dummy dlltool; ac_word=$2
6170 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6171 printf %s "checking for $ac_word... " >&6; }
6172 if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
6173 then :
6174 printf %s "(cached) " >&6
6175 else $as_nop
6176 if test -n "$ac_ct_DLLTOOL"; then
6177 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6178 else
6179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6180 for as_dir in $PATH
6181 do
6182 IFS=$as_save_IFS
6183 case $as_dir in #(((
6184 '') as_dir=./ ;;
6185 */) ;;
6186 *) as_dir=$as_dir/ ;;
6187 esac
6188 for ac_exec_ext in '' $ac_executable_extensions; do
6189 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6190 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6191 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6192 break 2
6193 fi
6194 done
6195 done
6196 IFS=$as_save_IFS
6197
6198 fi
6199 fi
6200 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6201 if test -n "$ac_ct_DLLTOOL"; then
6202 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6203 printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
6204 else
6205 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6206 printf "%s\n" "no" >&6; }
6207 fi
6208
6209 if test "x$ac_ct_DLLTOOL" = x; then
6210 DLLTOOL="false"
6211 else
6212 case $cross_compiling:$ac_tool_warned in
6213 yes:)
6214 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6215 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6216 ac_tool_warned=yes ;;
6217 esac
6218 DLLTOOL=$ac_ct_DLLTOOL
6219 fi
6220 else
6221 DLLTOOL="$ac_cv_prog_DLLTOOL"
6222 fi
6223
6224 test -z "$DLLTOOL" && DLLTOOL=dlltool
6225
6226
6227
6228
6229
6230
6231
6232
6233
6234
6235 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6236 printf %s "checking how to associate runtime and link libraries... " >&6; }
6237 if test ${lt_cv_sharedlib_from_linklib_cmd+y}
6238 then :
6239 printf %s "(cached) " >&6
6240 else $as_nop
6241 lt_cv_sharedlib_from_linklib_cmd='unknown'
6242
6243 case $host_os in
6244 cygwin* | mingw* | pw32* | cegcc*)
6245 # two different shell functions defined in ltmain.sh;
6246 # decide which one to use based on capabilities of $DLLTOOL
6247 case `$DLLTOOL --help 2>&1` in
6248 *--identify-strict*)
6249 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6250 ;;
6251 *)
6252 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6253 ;;
6254 esac
6255 ;;
6256 *)
6257 # fallback: assume linklib IS sharedlib
6258 lt_cv_sharedlib_from_linklib_cmd=$ECHO
6259 ;;
6260 esac
6261
6262 fi
6263 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6264 printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6265 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6266 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6267
6268
6269
6270
6271
6272
6273
6274
6275 if test -n "$ac_tool_prefix"; then
6276 for ac_prog in ar
6277 do
6278 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6279 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6280 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6281 printf %s "checking for $ac_word... " >&6; }
6282 if test ${ac_cv_prog_AR+y}
6283 then :
6284 printf %s "(cached) " >&6
6285 else $as_nop
6286 if test -n "$AR"; then
6287 ac_cv_prog_AR="$AR" # Let the user override the test.
6288 else
6289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6290 for as_dir in $PATH
6291 do
6292 IFS=$as_save_IFS
6293 case $as_dir in #(((
6294 '') as_dir=./ ;;
6295 */) ;;
6296 *) as_dir=$as_dir/ ;;
6297 esac
6298 for ac_exec_ext in '' $ac_executable_extensions; do
6299 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6300 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6301 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6302 break 2
6303 fi
6304 done
6305 done
6306 IFS=$as_save_IFS
6307
6308 fi
6309 fi
6310 AR=$ac_cv_prog_AR
6311 if test -n "$AR"; then
6312 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6313 printf "%s\n" "$AR" >&6; }
6314 else
6315 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6316 printf "%s\n" "no" >&6; }
6317 fi
6318
6319
6320 test -n "$AR" && break
6321 done
6322 fi
6323 if test -z "$AR"; then
6324 ac_ct_AR=$AR
6325 for ac_prog in ar
6326 do
6327 # Extract the first word of "$ac_prog", so it can be a program name with args.
6328 set dummy $ac_prog; ac_word=$2
6329 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6330 printf %s "checking for $ac_word... " >&6; }
6331 if test ${ac_cv_prog_ac_ct_AR+y}
6332 then :
6333 printf %s "(cached) " >&6
6334 else $as_nop
6335 if test -n "$ac_ct_AR"; then
6336 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6337 else
6338 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6339 for as_dir in $PATH
6340 do
6341 IFS=$as_save_IFS
6342 case $as_dir in #(((
6343 '') as_dir=./ ;;
6344 */) ;;
6345 *) as_dir=$as_dir/ ;;
6346 esac
6347 for ac_exec_ext in '' $ac_executable_extensions; do
6348 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6349 ac_cv_prog_ac_ct_AR="$ac_prog"
6350 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6351 break 2
6352 fi
6353 done
6354 done
6355 IFS=$as_save_IFS
6356
6357 fi
6358 fi
6359 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6360 if test -n "$ac_ct_AR"; then
6361 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6362 printf "%s\n" "$ac_ct_AR" >&6; }
6363 else
6364 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6365 printf "%s\n" "no" >&6; }
6366 fi
6367
6368
6369 test -n "$ac_ct_AR" && break
6370 done
6371
6372 if test "x$ac_ct_AR" = x; then
6373 AR="false"
6374 else
6375 case $cross_compiling:$ac_tool_warned in
6376 yes:)
6377 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6378 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6379 ac_tool_warned=yes ;;
6380 esac
6381 AR=$ac_ct_AR
6382 fi
6383 fi
6384
6385 : ${AR=ar}
6386
6387
6388
6389
6390
6391
6392 # Use ARFLAGS variable as AR's operation code to sync the variable naming with
6393 # Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
6394 # higher priority because thats what people were doing historically (setting
6395 # ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS
6396 # variable obsoleted/removed.
6397
6398 test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
6399 lt_ar_flags=$AR_FLAGS
6400
6401
6402
6403
6404
6405
6406 # Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override
6407 # by AR_FLAGS because that was never working and AR_FLAGS is about to die.
6408
6409
6410
6411
6412
6413
6414 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6415 printf %s "checking for archiver @FILE support... " >&6; }
6416 if test ${lt_cv_ar_at_file+y}
6417 then :
6418 printf %s "(cached) " >&6
6419 else $as_nop
6420 lt_cv_ar_at_file=no
6421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6422 /* end confdefs.h. */
6423
6424 int
6425 main (void)
6426 {
6427
6428 ;
6429 return 0;
6430 }
6431 _ACEOF
6432 if ac_fn_c_try_compile "$LINENO"
6433 then :
6434 echo conftest.$ac_objext > conftest.lst
6435 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6436 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6437 (eval $lt_ar_try) 2>&5
6438 ac_status=$?
6439 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6440 test $ac_status = 0; }
6441 if test 0 -eq "$ac_status"; then
6442 # Ensure the archiver fails upon bogus file names.
6443 rm -f conftest.$ac_objext libconftest.a
6444 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6445 (eval $lt_ar_try) 2>&5
6446 ac_status=$?
6447 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6448 test $ac_status = 0; }
6449 if test 0 -ne "$ac_status"; then
6450 lt_cv_ar_at_file=@
6451 fi
6452 fi
6453 rm -f conftest.* libconftest.a
6454
6455 fi
6456 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6457
6458 fi
6459 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6460 printf "%s\n" "$lt_cv_ar_at_file" >&6; }
6461
6462 if test no = "$lt_cv_ar_at_file"; then
6463 archiver_list_spec=
6464 else
6465 archiver_list_spec=$lt_cv_ar_at_file
6466 fi
6467
6468
6469
6470
6471
6472
6473
6474 if test -n "$ac_tool_prefix"; then
6475 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6476 set dummy ${ac_tool_prefix}strip; ac_word=$2
6477 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6478 printf %s "checking for $ac_word... " >&6; }
6479 if test ${ac_cv_prog_STRIP+y}
6480 then :
6481 printf %s "(cached) " >&6
6482 else $as_nop
6483 if test -n "$STRIP"; then
6484 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6485 else
6486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6487 for as_dir in $PATH
6488 do
6489 IFS=$as_save_IFS
6490 case $as_dir in #(((
6491 '') as_dir=./ ;;
6492 */) ;;
6493 *) as_dir=$as_dir/ ;;
6494 esac
6495 for ac_exec_ext in '' $ac_executable_extensions; do
6496 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6497 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6498 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6499 break 2
6500 fi
6501 done
6502 done
6503 IFS=$as_save_IFS
6504
6505 fi
6506 fi
6507 STRIP=$ac_cv_prog_STRIP
6508 if test -n "$STRIP"; then
6509 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6510 printf "%s\n" "$STRIP" >&6; }
6511 else
6512 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6513 printf "%s\n" "no" >&6; }
6514 fi
6515
6516
6517 fi
6518 if test -z "$ac_cv_prog_STRIP"; then
6519 ac_ct_STRIP=$STRIP
6520 # Extract the first word of "strip", so it can be a program name with args.
6521 set dummy strip; ac_word=$2
6522 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6523 printf %s "checking for $ac_word... " >&6; }
6524 if test ${ac_cv_prog_ac_ct_STRIP+y}
6525 then :
6526 printf %s "(cached) " >&6
6527 else $as_nop
6528 if test -n "$ac_ct_STRIP"; then
6529 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6530 else
6531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6532 for as_dir in $PATH
6533 do
6534 IFS=$as_save_IFS
6535 case $as_dir in #(((
6536 '') as_dir=./ ;;
6537 */) ;;
6538 *) as_dir=$as_dir/ ;;
6539 esac
6540 for ac_exec_ext in '' $ac_executable_extensions; do
6541 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6542 ac_cv_prog_ac_ct_STRIP="strip"
6543 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6544 break 2
6545 fi
6546 done
6547 done
6548 IFS=$as_save_IFS
6549
6550 fi
6551 fi
6552 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6553 if test -n "$ac_ct_STRIP"; then
6554 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6555 printf "%s\n" "$ac_ct_STRIP" >&6; }
6556 else
6557 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6558 printf "%s\n" "no" >&6; }
6559 fi
6560
6561 if test "x$ac_ct_STRIP" = x; then
6562 STRIP=":"
6563 else
6564 case $cross_compiling:$ac_tool_warned in
6565 yes:)
6566 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6567 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6568 ac_tool_warned=yes ;;
6569 esac
6570 STRIP=$ac_ct_STRIP
6571 fi
6572 else
6573 STRIP="$ac_cv_prog_STRIP"
6574 fi
6575
6576 test -z "$STRIP" && STRIP=:
6577
6578
6579
6580
6581
6582
6583 if test -n "$ac_tool_prefix"; then
6584 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6585 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6586 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6587 printf %s "checking for $ac_word... " >&6; }
6588 if test ${ac_cv_prog_RANLIB+y}
6589 then :
6590 printf %s "(cached) " >&6
6591 else $as_nop
6592 if test -n "$RANLIB"; then
6593 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6594 else
6595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6596 for as_dir in $PATH
6597 do
6598 IFS=$as_save_IFS
6599 case $as_dir in #(((
6600 '') as_dir=./ ;;
6601 */) ;;
6602 *) as_dir=$as_dir/ ;;
6603 esac
6604 for ac_exec_ext in '' $ac_executable_extensions; do
6605 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6606 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6607 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6608 break 2
6609 fi
6610 done
6611 done
6612 IFS=$as_save_IFS
6613
6614 fi
6615 fi
6616 RANLIB=$ac_cv_prog_RANLIB
6617 if test -n "$RANLIB"; then
6618 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6619 printf "%s\n" "$RANLIB" >&6; }
6620 else
6621 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6622 printf "%s\n" "no" >&6; }
6623 fi
6624
6625
6626 fi
6627 if test -z "$ac_cv_prog_RANLIB"; then
6628 ac_ct_RANLIB=$RANLIB
6629 # Extract the first word of "ranlib", so it can be a program name with args.
6630 set dummy ranlib; ac_word=$2
6631 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6632 printf %s "checking for $ac_word... " >&6; }
6633 if test ${ac_cv_prog_ac_ct_RANLIB+y}
6634 then :
6635 printf %s "(cached) " >&6
6636 else $as_nop
6637 if test -n "$ac_ct_RANLIB"; then
6638 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6639 else
6640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6641 for as_dir in $PATH
6642 do
6643 IFS=$as_save_IFS
6644 case $as_dir in #(((
6645 '') as_dir=./ ;;
6646 */) ;;
6647 *) as_dir=$as_dir/ ;;
6648 esac
6649 for ac_exec_ext in '' $ac_executable_extensions; do
6650 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6651 ac_cv_prog_ac_ct_RANLIB="ranlib"
6652 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6653 break 2
6654 fi
6655 done
6656 done
6657 IFS=$as_save_IFS
6658
6659 fi
6660 fi
6661 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6662 if test -n "$ac_ct_RANLIB"; then
6663 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6664 printf "%s\n" "$ac_ct_RANLIB" >&6; }
6665 else
6666 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6667 printf "%s\n" "no" >&6; }
6668 fi
6669
6670 if test "x$ac_ct_RANLIB" = x; then
6671 RANLIB=":"
6672 else
6673 case $cross_compiling:$ac_tool_warned in
6674 yes:)
6675 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6676 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6677 ac_tool_warned=yes ;;
6678 esac
6679 RANLIB=$ac_ct_RANLIB
6680 fi
6681 else
6682 RANLIB="$ac_cv_prog_RANLIB"
6683 fi
6684
6685 test -z "$RANLIB" && RANLIB=:
6686
6687
6688
6689
6690
6691
6692 # Determine commands to create old-style static archives.
6693 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6694 old_postinstall_cmds='chmod 644 $oldlib'
6695 old_postuninstall_cmds=
6696
6697 if test -n "$RANLIB"; then
6698 case $host_os in
6699 bitrig* | openbsd*)
6700 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6701 ;;
6702 *)
6703 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6704 ;;
6705 esac
6706 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6707 fi
6708
6709 case $host_os in
6710 darwin*)
6711 lock_old_archive_extraction=yes ;;
6712 *)
6713 lock_old_archive_extraction=no ;;
6714 esac
6715
6716
6717
6718
6719
6720
6721
6722
6723
6724
6725
6726
6727
6728
6729
6730
6731
6732
6733
6734
6735
6736
6737
6738
6739
6740
6741
6742
6743
6744
6745
6746
6747
6748
6749
6750
6751
6752
6753
6754 # If no C compiler was specified, use CC.
6755 LTCC=${LTCC-"$CC"}
6756
6757 # If no C compiler flags were specified, use CFLAGS.
6758 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6759
6760 # Allow CC to be a program name with arguments.
6761 compiler=$CC
6762
6763
6764 # Check for command to grab the raw symbol name followed by C symbol from nm.
6765 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6766 printf %s "checking command to parse $NM output from $compiler object... " >&6; }
6767 if test ${lt_cv_sys_global_symbol_pipe+y}
6768 then :
6769 printf %s "(cached) " >&6
6770 else $as_nop
6771
6772 # These are sane defaults that work on at least a few old systems.
6773 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6774
6775 # Character class describing NM global symbol codes.
6776 symcode='[BCDEGRST]'
6777
6778 # Regexp to match symbols that can be accessed directly from C.
6779 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6780
6781 # Define system-specific variables.
6782 case $host_os in
6783 aix*)
6784 symcode='[BCDT]'
6785 ;;
6786 cygwin* | mingw* | pw32* | cegcc*)
6787 symcode='[ABCDGISTW]'
6788 ;;
6789 hpux*)
6790 if test ia64 = "$host_cpu"; then
6791 symcode='[ABCDEGRST]'
6792 fi
6793 ;;
6794 irix* | nonstopux*)
6795 symcode='[BCDEGRST]'
6796 ;;
6797 osf*)
6798 symcode='[BCDEGQRST]'
6799 ;;
6800 solaris*)
6801 symcode='[BDRT]'
6802 ;;
6803 sco3.2v5*)
6804 symcode='[DT]'
6805 ;;
6806 sysv4.2uw2*)
6807 symcode='[DT]'
6808 ;;
6809 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6810 symcode='[ABDT]'
6811 ;;
6812 sysv4)
6813 symcode='[DFNSTU]'
6814 ;;
6815 esac
6816
6817 # If we're using GNU nm, then use its standard symbol codes.
6818 case `$NM -V 2>&1` in
6819 *GNU* | *'with BFD'*)
6820 symcode='[ABCDGIRSTW]' ;;
6821 esac
6822
6823 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6824 # Gets list of data symbols to import.
6825 lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'"
6826 # Adjust the below global symbol transforms to fixup imported variables.
6827 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6828 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
6829 lt_c_name_lib_hook="\
6830 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
6831 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
6832 else
6833 # Disable hooks by default.
6834 lt_cv_sys_global_symbol_to_import=
6835 lt_cdecl_hook=
6836 lt_c_name_hook=
6837 lt_c_name_lib_hook=
6838 fi
6839
6840 # Transform an extracted symbol line into a proper C declaration.
6841 # Some systems (esp. on ia64) link data and code symbols differently,
6842 # so use this general approach.
6843 lt_cv_sys_global_symbol_to_cdecl="$SED -n"\
6844 $lt_cdecl_hook\
6845 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6846 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
6847
6848 # Transform an extracted symbol line into symbol name and symbol address
6849 lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\
6850 $lt_c_name_hook\
6851 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6852 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
6853
6854 # Transform an extracted symbol line into symbol name with lib prefix and
6855 # symbol address.
6856 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\
6857 $lt_c_name_lib_hook\
6858 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6859 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
6860 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
6861
6862 # Handle CRLF in mingw tool chain
6863 opt_cr=
6864 case $build_os in
6865 mingw*)
6866 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6867 ;;
6868 esac
6869
6870 # Try without a prefix underscore, then with it.
6871 for ac_symprfx in "" "_"; do
6872
6873 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6874 symxfrm="\\1 $ac_symprfx\\2 \\2"
6875
6876 # Write the raw and C identifiers.
6877 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6878 # Fake it for dumpbin and say T for any non-static function,
6879 # D for any global variable and I for any imported variable.
6880 # Also find C++ and __fastcall symbols from MSVC++ or ICC,
6881 # which start with @ or ?.
6882 lt_cv_sys_global_symbol_pipe="$AWK '"\
6883 " {last_section=section; section=\$ 3};"\
6884 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6885 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6886 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
6887 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
6888 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
6889 " \$ 0!~/External *\|/{next};"\
6890 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6891 " {if(hide[section]) next};"\
6892 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
6893 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
6894 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
6895 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
6896 " ' prfx=^$ac_symprfx"
6897 else
6898 lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6899 fi
6900 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'"
6901
6902 # Check to see that the pipe works correctly.
6903 pipe_works=no
6904
6905 rm -f conftest*
6906 cat > conftest.$ac_ext <<_LT_EOF
6907 #ifdef __cplusplus
6908 extern "C" {
6909 #endif
6910 char nm_test_var;
6911 void nm_test_func(void);
6912 void nm_test_func(void){}
6913 #ifdef __cplusplus
6914 }
6915 #endif
6916 int main(){nm_test_var='a';nm_test_func();return(0);}
6917 _LT_EOF
6918
6919 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6920 (eval $ac_compile) 2>&5
6921 ac_status=$?
6922 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6923 test $ac_status = 0; }; then
6924 # Now try to grab the symbols.
6925 nlist=conftest.nm
6926 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6927 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6928 ac_status=$?
6929 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6930 test $ac_status = 0; } && test -s "$nlist"; then
6931 # Try sorting and uniquifying the output.
6932 if sort "$nlist" | uniq > "$nlist"T; then
6933 mv -f "$nlist"T "$nlist"
6934 else
6935 rm -f "$nlist"T
6936 fi
6937
6938 # Make sure that we snagged all the symbols we need.
6939 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6940 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6941 cat <<_LT_EOF > conftest.$ac_ext
6942 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6943 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
6944 /* DATA imports from DLLs on WIN32 can't be const, because runtime
6945 relocations are performed -- see ld's documentation on pseudo-relocs. */
6946 # define LT_DLSYM_CONST
6947 #elif defined __osf__
6948 /* This system does not cope well with relocations in const data. */
6949 # define LT_DLSYM_CONST
6950 #else
6951 # define LT_DLSYM_CONST const
6952 #endif
6953
6954 #ifdef __cplusplus
6955 extern "C" {
6956 #endif
6957
6958 _LT_EOF
6959 # Now generate the symbol file.
6960 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6961
6962 cat <<_LT_EOF >> conftest.$ac_ext
6963
6964 /* The mapping between symbol names and symbols. */
6965 LT_DLSYM_CONST struct {
6966 const char *name;
6967 void *address;
6968 }
6969 lt__PROGRAM__LTX_preloaded_symbols[] =
6970 {
6971 { "@PROGRAM@", (void *) 0 },
6972 _LT_EOF
6973 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6974 cat <<\_LT_EOF >> conftest.$ac_ext
6975 {0, (void *) 0}
6976 };
6977
6978 /* This works around a problem in FreeBSD linker */
6979 #ifdef FREEBSD_WORKAROUND
6980 static const void *lt_preloaded_setup() {
6981 return lt__PROGRAM__LTX_preloaded_symbols;
6982 }
6983 #endif
6984
6985 #ifdef __cplusplus
6986 }
6987 #endif
6988 _LT_EOF
6989 # Now try linking the two files.
6990 mv conftest.$ac_objext conftstm.$ac_objext
6991 lt_globsym_save_LIBS=$LIBS
6992 lt_globsym_save_CFLAGS=$CFLAGS
6993 LIBS=conftstm.$ac_objext
6994 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6995 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6996 (eval $ac_link) 2>&5
6997 ac_status=$?
6998 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6999 test $ac_status = 0; } && test -s conftest$ac_exeext; then
7000 pipe_works=yes
7001 fi
7002 LIBS=$lt_globsym_save_LIBS
7003 CFLAGS=$lt_globsym_save_CFLAGS
7004 else
7005 echo "cannot find nm_test_func in $nlist" >&5
7006 fi
7007 else
7008 echo "cannot find nm_test_var in $nlist" >&5
7009 fi
7010 else
7011 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7012 fi
7013 else
7014 echo "$progname: failed program was:" >&5
7015 cat conftest.$ac_ext >&5
7016 fi
7017 rm -rf conftest* conftst*
7018
7019 # Do not use the global_symbol_pipe unless it works.
7020 if test yes = "$pipe_works"; then
7021 break
7022 else
7023 lt_cv_sys_global_symbol_pipe=
7024 fi
7025 done
7026
7027 fi
7028
7029 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7030 lt_cv_sys_global_symbol_to_cdecl=
7031 fi
7032 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7033 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7034 printf "%s\n" "failed" >&6; }
7035 else
7036 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7037 printf "%s\n" "ok" >&6; }
7038 fi
7039
7040 # Response file support.
7041 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7042 nm_file_list_spec='@'
7043 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7044 nm_file_list_spec='@'
7045 fi
7046
7047
7048
7049
7050
7051
7052
7053
7054
7055
7056
7057
7058
7059
7060
7061
7062
7063
7064
7065
7066
7067
7068
7069
7070
7071
7072
7073
7074
7075
7076
7077
7078
7079
7080
7081
7082
7083 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7084 printf %s "checking for sysroot... " >&6; }
7085
7086 # Check whether --with-sysroot was given.
7087 if test ${with_sysroot+y}
7088 then :
7089 withval=$with_sysroot;
7090 else $as_nop
7091 with_sysroot=no
7092 fi
7093
7094
7095 lt_sysroot=
7096 case $with_sysroot in #(
7097 yes)
7098 if test yes = "$GCC"; then
7099 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7100 fi
7101 ;; #(
7102 /*)
7103 lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"`
7104 ;; #(
7105 no|'')
7106 ;; #(
7107 *)
7108 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7109 printf "%s\n" "$with_sysroot" >&6; }
7110 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7111 ;;
7112 esac
7113
7114 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7115 printf "%s\n" "${lt_sysroot:-no}" >&6; }
7116
7117
7118
7119
7120
7121 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7122 printf %s "checking for a working dd... " >&6; }
7123 if test ${ac_cv_path_lt_DD+y}
7124 then :
7125 printf %s "(cached) " >&6
7126 else $as_nop
7127 printf 0123456789abcdef0123456789abcdef >conftest.i
7128 cat conftest.i conftest.i >conftest2.i
7129 : ${lt_DD:=$DD}
7130 if test -z "$lt_DD"; then
7131 ac_path_lt_DD_found=false
7132 # Loop through the user's path and test for each of PROGNAME-LIST
7133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7134 for as_dir in $PATH
7135 do
7136 IFS=$as_save_IFS
7137 case $as_dir in #(((
7138 '') as_dir=./ ;;
7139 */) ;;
7140 *) as_dir=$as_dir/ ;;
7141 esac
7142 for ac_prog in dd
7143 do
7144 for ac_exec_ext in '' $ac_executable_extensions; do
7145 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
7146 as_fn_executable_p "$ac_path_lt_DD" || continue
7147 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7148 cmp -s conftest.i conftest.out \
7149 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7150 fi
7151 $ac_path_lt_DD_found && break 3
7152 done
7153 done
7154 done
7155 IFS=$as_save_IFS
7156 if test -z "$ac_cv_path_lt_DD"; then
7157 :
7158 fi
7159 else
7160 ac_cv_path_lt_DD=$lt_DD
7161 fi
7162
7163 rm -f conftest.i conftest2.i conftest.out
7164 fi
7165 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7166 printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
7167
7168
7169 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7170 printf %s "checking how to truncate binary pipes... " >&6; }
7171 if test ${lt_cv_truncate_bin+y}
7172 then :
7173 printf %s "(cached) " >&6
7174 else $as_nop
7175 printf 0123456789abcdef0123456789abcdef >conftest.i
7176 cat conftest.i conftest.i >conftest2.i
7177 lt_cv_truncate_bin=
7178 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7179 cmp -s conftest.i conftest.out \
7180 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7181 fi
7182 rm -f conftest.i conftest2.i conftest.out
7183 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
7184 fi
7185 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7186 printf "%s\n" "$lt_cv_truncate_bin" >&6; }
7187
7188
7189
7190
7191
7192
7193
7194 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
7195 func_cc_basename ()
7196 {
7197 for cc_temp in $*""; do
7198 case $cc_temp in
7199 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7200 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7201 \-*) ;;
7202 *) break;;
7203 esac
7204 done
7205 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7206 }
7207
7208 # Check whether --enable-libtool-lock was given.
7209 if test ${enable_libtool_lock+y}
7210 then :
7211 enableval=$enable_libtool_lock;
7212 fi
7213
7214 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7215
7216 # Some flags need to be propagated to the compiler or linker for good
7217 # libtool support.
7218 case $host in
7219 ia64-*-hpux*)
7220 # Find out what ABI is being produced by ac_compile, and set mode
7221 # options accordingly.
7222 echo 'int i;' > conftest.$ac_ext
7223 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7224 (eval $ac_compile) 2>&5
7225 ac_status=$?
7226 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7227 test $ac_status = 0; }; then
7228 case `$FILECMD conftest.$ac_objext` in
7229 *ELF-32*)
7230 HPUX_IA64_MODE=32
7231 ;;
7232 *ELF-64*)
7233 HPUX_IA64_MODE=64
7234 ;;
7235 esac
7236 fi
7237 rm -rf conftest*
7238 ;;
7239 *-*-irix6*)
7240 # Find out what ABI is being produced by ac_compile, and set linker
7241 # options accordingly.
7242 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7243 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7244 (eval $ac_compile) 2>&5
7245 ac_status=$?
7246 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7247 test $ac_status = 0; }; then
7248 if test yes = "$lt_cv_prog_gnu_ld"; then
7249 case `$FILECMD conftest.$ac_objext` in
7250 *32-bit*)
7251 LD="${LD-ld} -melf32bsmip"
7252 ;;
7253 *N32*)
7254 LD="${LD-ld} -melf32bmipn32"
7255 ;;
7256 *64-bit*)
7257 LD="${LD-ld} -melf64bmip"
7258 ;;
7259 esac
7260 else
7261 case `$FILECMD conftest.$ac_objext` in
7262 *32-bit*)
7263 LD="${LD-ld} -32"
7264 ;;
7265 *N32*)
7266 LD="${LD-ld} -n32"
7267 ;;
7268 *64-bit*)
7269 LD="${LD-ld} -64"
7270 ;;
7271 esac
7272 fi
7273 fi
7274 rm -rf conftest*
7275 ;;
7276
7277 mips64*-*linux*)
7278 # Find out what ABI is being produced by ac_compile, and set linker
7279 # options accordingly.
7280 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7281 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7282 (eval $ac_compile) 2>&5
7283 ac_status=$?
7284 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7285 test $ac_status = 0; }; then
7286 emul=elf
7287 case `$FILECMD conftest.$ac_objext` in
7288 *32-bit*)
7289 emul="${emul}32"
7290 ;;
7291 *64-bit*)
7292 emul="${emul}64"
7293 ;;
7294 esac
7295 case `$FILECMD conftest.$ac_objext` in
7296 *MSB*)
7297 emul="${emul}btsmip"
7298 ;;
7299 *LSB*)
7300 emul="${emul}ltsmip"
7301 ;;
7302 esac
7303 case `$FILECMD conftest.$ac_objext` in
7304 *N32*)
7305 emul="${emul}n32"
7306 ;;
7307 esac
7308 LD="${LD-ld} -m $emul"
7309 fi
7310 rm -rf conftest*
7311 ;;
7312
7313 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7314 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7315 # Find out what ABI is being produced by ac_compile, and set linker
7316 # options accordingly. Note that the listed cases only cover the
7317 # situations where additional linker options are needed (such as when
7318 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7319 # vice versa); the common cases where no linker options are needed do
7320 # not appear in the list.
7321 echo 'int i;' > conftest.$ac_ext
7322 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7323 (eval $ac_compile) 2>&5
7324 ac_status=$?
7325 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7326 test $ac_status = 0; }; then
7327 case `$FILECMD conftest.o` in
7328 *32-bit*)
7329 case $host in
7330 x86_64-*kfreebsd*-gnu)
7331 LD="${LD-ld} -m elf_i386_fbsd"
7332 ;;
7333 x86_64-*linux*)
7334 case `$FILECMD conftest.o` in
7335 *x86-64*)
7336 LD="${LD-ld} -m elf32_x86_64"
7337 ;;
7338 *)
7339 LD="${LD-ld} -m elf_i386"
7340 ;;
7341 esac
7342 ;;
7343 powerpc64le-*linux*)
7344 LD="${LD-ld} -m elf32lppclinux"
7345 ;;
7346 powerpc64-*linux*)
7347 LD="${LD-ld} -m elf32ppclinux"
7348 ;;
7349 s390x-*linux*)
7350 LD="${LD-ld} -m elf_s390"
7351 ;;
7352 sparc64-*linux*)
7353 LD="${LD-ld} -m elf32_sparc"
7354 ;;
7355 esac
7356 ;;
7357 *64-bit*)
7358 case $host in
7359 x86_64-*kfreebsd*-gnu)
7360 LD="${LD-ld} -m elf_x86_64_fbsd"
7361 ;;
7362 x86_64-*linux*)
7363 LD="${LD-ld} -m elf_x86_64"
7364 ;;
7365 powerpcle-*linux*)
7366 LD="${LD-ld} -m elf64lppc"
7367 ;;
7368 powerpc-*linux*)
7369 LD="${LD-ld} -m elf64ppc"
7370 ;;
7371 s390*-*linux*|s390*-*tpf*)
7372 LD="${LD-ld} -m elf64_s390"
7373 ;;
7374 sparc*-*linux*)
7375 LD="${LD-ld} -m elf64_sparc"
7376 ;;
7377 esac
7378 ;;
7379 esac
7380 fi
7381 rm -rf conftest*
7382 ;;
7383
7384 *-*-sco3.2v5*)
7385 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7386 SAVE_CFLAGS=$CFLAGS
7387 CFLAGS="$CFLAGS -belf"
7388 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7389 printf %s "checking whether the C compiler needs -belf... " >&6; }
7390 if test ${lt_cv_cc_needs_belf+y}
7391 then :
7392 printf %s "(cached) " >&6
7393 else $as_nop
7394 ac_ext=c
7395 ac_cpp='$CPP $CPPFLAGS'
7396 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7397 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7398 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7399
7400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7401 /* end confdefs.h. */
7402
7403 int
7404 main (void)
7405 {
7406
7407 ;
7408 return 0;
7409 }
7410 _ACEOF
7411 if ac_fn_c_try_link "$LINENO"
7412 then :
7413 lt_cv_cc_needs_belf=yes
7414 else $as_nop
7415 lt_cv_cc_needs_belf=no
7416 fi
7417 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7418 conftest$ac_exeext conftest.$ac_ext
7419 ac_ext=c
7420 ac_cpp='$CPP $CPPFLAGS'
7421 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7422 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7423 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7424
7425 fi
7426 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7427 printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
7428 if test yes != "$lt_cv_cc_needs_belf"; then
7429 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7430 CFLAGS=$SAVE_CFLAGS
7431 fi
7432 ;;
7433 *-*solaris*)
7434 # Find out what ABI is being produced by ac_compile, and set linker
7435 # options accordingly.
7436 echo 'int i;' > conftest.$ac_ext
7437 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7438 (eval $ac_compile) 2>&5
7439 ac_status=$?
7440 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7441 test $ac_status = 0; }; then
7442 case `$FILECMD conftest.o` in
7443 *64-bit*)
7444 case $lt_cv_prog_gnu_ld in
7445 yes*)
7446 case $host in
7447 i?86-*-solaris*|x86_64-*-solaris*)
7448 LD="${LD-ld} -m elf_x86_64"
7449 ;;
7450 sparc*-*-solaris*)
7451 LD="${LD-ld} -m elf64_sparc"
7452 ;;
7453 esac
7454 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7455 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7456 LD=${LD-ld}_sol2
7457 fi
7458 ;;
7459 *)
7460 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7461 LD="${LD-ld} -64"
7462 fi
7463 ;;
7464 esac
7465 ;;
7466 esac
7467 fi
7468 rm -rf conftest*
7469 ;;
7470 esac
7471
7472 need_locks=$enable_libtool_lock
7473
7474 if test -n "$ac_tool_prefix"; then
7475 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7476 set dummy ${ac_tool_prefix}mt; ac_word=$2
7477 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7478 printf %s "checking for $ac_word... " >&6; }
7479 if test ${ac_cv_prog_MANIFEST_TOOL+y}
7480 then :
7481 printf %s "(cached) " >&6
7482 else $as_nop
7483 if test -n "$MANIFEST_TOOL"; then
7484 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7485 else
7486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7487 for as_dir in $PATH
7488 do
7489 IFS=$as_save_IFS
7490 case $as_dir in #(((
7491 '') as_dir=./ ;;
7492 */) ;;
7493 *) as_dir=$as_dir/ ;;
7494 esac
7495 for ac_exec_ext in '' $ac_executable_extensions; do
7496 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7497 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7498 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7499 break 2
7500 fi
7501 done
7502 done
7503 IFS=$as_save_IFS
7504
7505 fi
7506 fi
7507 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7508 if test -n "$MANIFEST_TOOL"; then
7509 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7510 printf "%s\n" "$MANIFEST_TOOL" >&6; }
7511 else
7512 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7513 printf "%s\n" "no" >&6; }
7514 fi
7515
7516
7517 fi
7518 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7519 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7520 # Extract the first word of "mt", so it can be a program name with args.
7521 set dummy mt; ac_word=$2
7522 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7523 printf %s "checking for $ac_word... " >&6; }
7524 if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
7525 then :
7526 printf %s "(cached) " >&6
7527 else $as_nop
7528 if test -n "$ac_ct_MANIFEST_TOOL"; then
7529 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7530 else
7531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7532 for as_dir in $PATH
7533 do
7534 IFS=$as_save_IFS
7535 case $as_dir in #(((
7536 '') as_dir=./ ;;
7537 */) ;;
7538 *) as_dir=$as_dir/ ;;
7539 esac
7540 for ac_exec_ext in '' $ac_executable_extensions; do
7541 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7542 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7543 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7544 break 2
7545 fi
7546 done
7547 done
7548 IFS=$as_save_IFS
7549
7550 fi
7551 fi
7552 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7553 if test -n "$ac_ct_MANIFEST_TOOL"; then
7554 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7555 printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
7556 else
7557 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7558 printf "%s\n" "no" >&6; }
7559 fi
7560
7561 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7562 MANIFEST_TOOL=":"
7563 else
7564 case $cross_compiling:$ac_tool_warned in
7565 yes:)
7566 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7567 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7568 ac_tool_warned=yes ;;
7569 esac
7570 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7571 fi
7572 else
7573 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7574 fi
7575
7576 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7577 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7578 printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7579 if test ${lt_cv_path_mainfest_tool+y}
7580 then :
7581 printf %s "(cached) " >&6
7582 else $as_nop
7583 lt_cv_path_mainfest_tool=no
7584 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7585 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7586 cat conftest.err >&5
7587 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7588 lt_cv_path_mainfest_tool=yes
7589 fi
7590 rm -f conftest*
7591 fi
7592 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7593 printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; }
7594 if test yes != "$lt_cv_path_mainfest_tool"; then
7595 MANIFEST_TOOL=:
7596 fi
7597
7598
7599
7600
7601
7602
7603 case $host_os in
7604 rhapsody* | darwin*)
7605 if test -n "$ac_tool_prefix"; then
7606 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7607 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7608 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7609 printf %s "checking for $ac_word... " >&6; }
7610 if test ${ac_cv_prog_DSYMUTIL+y}
7611 then :
7612 printf %s "(cached) " >&6
7613 else $as_nop
7614 if test -n "$DSYMUTIL"; then
7615 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7616 else
7617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7618 for as_dir in $PATH
7619 do
7620 IFS=$as_save_IFS
7621 case $as_dir in #(((
7622 '') as_dir=./ ;;
7623 */) ;;
7624 *) as_dir=$as_dir/ ;;
7625 esac
7626 for ac_exec_ext in '' $ac_executable_extensions; do
7627 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7628 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7629 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7630 break 2
7631 fi
7632 done
7633 done
7634 IFS=$as_save_IFS
7635
7636 fi
7637 fi
7638 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7639 if test -n "$DSYMUTIL"; then
7640 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7641 printf "%s\n" "$DSYMUTIL" >&6; }
7642 else
7643 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7644 printf "%s\n" "no" >&6; }
7645 fi
7646
7647
7648 fi
7649 if test -z "$ac_cv_prog_DSYMUTIL"; then
7650 ac_ct_DSYMUTIL=$DSYMUTIL
7651 # Extract the first word of "dsymutil", so it can be a program name with args.
7652 set dummy dsymutil; ac_word=$2
7653 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7654 printf %s "checking for $ac_word... " >&6; }
7655 if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
7656 then :
7657 printf %s "(cached) " >&6
7658 else $as_nop
7659 if test -n "$ac_ct_DSYMUTIL"; then
7660 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7661 else
7662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7663 for as_dir in $PATH
7664 do
7665 IFS=$as_save_IFS
7666 case $as_dir in #(((
7667 '') as_dir=./ ;;
7668 */) ;;
7669 *) as_dir=$as_dir/ ;;
7670 esac
7671 for ac_exec_ext in '' $ac_executable_extensions; do
7672 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7673 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7674 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7675 break 2
7676 fi
7677 done
7678 done
7679 IFS=$as_save_IFS
7680
7681 fi
7682 fi
7683 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7684 if test -n "$ac_ct_DSYMUTIL"; then
7685 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7686 printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
7687 else
7688 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7689 printf "%s\n" "no" >&6; }
7690 fi
7691
7692 if test "x$ac_ct_DSYMUTIL" = x; then
7693 DSYMUTIL=":"
7694 else
7695 case $cross_compiling:$ac_tool_warned in
7696 yes:)
7697 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7698 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7699 ac_tool_warned=yes ;;
7700 esac
7701 DSYMUTIL=$ac_ct_DSYMUTIL
7702 fi
7703 else
7704 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7705 fi
7706
7707 if test -n "$ac_tool_prefix"; then
7708 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7709 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7710 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7711 printf %s "checking for $ac_word... " >&6; }
7712 if test ${ac_cv_prog_NMEDIT+y}
7713 then :
7714 printf %s "(cached) " >&6
7715 else $as_nop
7716 if test -n "$NMEDIT"; then
7717 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7718 else
7719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7720 for as_dir in $PATH
7721 do
7722 IFS=$as_save_IFS
7723 case $as_dir in #(((
7724 '') as_dir=./ ;;
7725 */) ;;
7726 *) as_dir=$as_dir/ ;;
7727 esac
7728 for ac_exec_ext in '' $ac_executable_extensions; do
7729 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7730 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7731 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7732 break 2
7733 fi
7734 done
7735 done
7736 IFS=$as_save_IFS
7737
7738 fi
7739 fi
7740 NMEDIT=$ac_cv_prog_NMEDIT
7741 if test -n "$NMEDIT"; then
7742 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7743 printf "%s\n" "$NMEDIT" >&6; }
7744 else
7745 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7746 printf "%s\n" "no" >&6; }
7747 fi
7748
7749
7750 fi
7751 if test -z "$ac_cv_prog_NMEDIT"; then
7752 ac_ct_NMEDIT=$NMEDIT
7753 # Extract the first word of "nmedit", so it can be a program name with args.
7754 set dummy nmedit; ac_word=$2
7755 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7756 printf %s "checking for $ac_word... " >&6; }
7757 if test ${ac_cv_prog_ac_ct_NMEDIT+y}
7758 then :
7759 printf %s "(cached) " >&6
7760 else $as_nop
7761 if test -n "$ac_ct_NMEDIT"; then
7762 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7763 else
7764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7765 for as_dir in $PATH
7766 do
7767 IFS=$as_save_IFS
7768 case $as_dir in #(((
7769 '') as_dir=./ ;;
7770 */) ;;
7771 *) as_dir=$as_dir/ ;;
7772 esac
7773 for ac_exec_ext in '' $ac_executable_extensions; do
7774 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7775 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7776 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7777 break 2
7778 fi
7779 done
7780 done
7781 IFS=$as_save_IFS
7782
7783 fi
7784 fi
7785 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7786 if test -n "$ac_ct_NMEDIT"; then
7787 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7788 printf "%s\n" "$ac_ct_NMEDIT" >&6; }
7789 else
7790 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7791 printf "%s\n" "no" >&6; }
7792 fi
7793
7794 if test "x$ac_ct_NMEDIT" = x; then
7795 NMEDIT=":"
7796 else
7797 case $cross_compiling:$ac_tool_warned in
7798 yes:)
7799 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7800 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7801 ac_tool_warned=yes ;;
7802 esac
7803 NMEDIT=$ac_ct_NMEDIT
7804 fi
7805 else
7806 NMEDIT="$ac_cv_prog_NMEDIT"
7807 fi
7808
7809 if test -n "$ac_tool_prefix"; then
7810 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7811 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7812 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7813 printf %s "checking for $ac_word... " >&6; }
7814 if test ${ac_cv_prog_LIPO+y}
7815 then :
7816 printf %s "(cached) " >&6
7817 else $as_nop
7818 if test -n "$LIPO"; then
7819 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7820 else
7821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7822 for as_dir in $PATH
7823 do
7824 IFS=$as_save_IFS
7825 case $as_dir in #(((
7826 '') as_dir=./ ;;
7827 */) ;;
7828 *) as_dir=$as_dir/ ;;
7829 esac
7830 for ac_exec_ext in '' $ac_executable_extensions; do
7831 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7832 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7833 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7834 break 2
7835 fi
7836 done
7837 done
7838 IFS=$as_save_IFS
7839
7840 fi
7841 fi
7842 LIPO=$ac_cv_prog_LIPO
7843 if test -n "$LIPO"; then
7844 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7845 printf "%s\n" "$LIPO" >&6; }
7846 else
7847 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7848 printf "%s\n" "no" >&6; }
7849 fi
7850
7851
7852 fi
7853 if test -z "$ac_cv_prog_LIPO"; then
7854 ac_ct_LIPO=$LIPO
7855 # Extract the first word of "lipo", so it can be a program name with args.
7856 set dummy lipo; ac_word=$2
7857 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7858 printf %s "checking for $ac_word... " >&6; }
7859 if test ${ac_cv_prog_ac_ct_LIPO+y}
7860 then :
7861 printf %s "(cached) " >&6
7862 else $as_nop
7863 if test -n "$ac_ct_LIPO"; then
7864 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7865 else
7866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7867 for as_dir in $PATH
7868 do
7869 IFS=$as_save_IFS
7870 case $as_dir in #(((
7871 '') as_dir=./ ;;
7872 */) ;;
7873 *) as_dir=$as_dir/ ;;
7874 esac
7875 for ac_exec_ext in '' $ac_executable_extensions; do
7876 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7877 ac_cv_prog_ac_ct_LIPO="lipo"
7878 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7879 break 2
7880 fi
7881 done
7882 done
7883 IFS=$as_save_IFS
7884
7885 fi
7886 fi
7887 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7888 if test -n "$ac_ct_LIPO"; then
7889 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7890 printf "%s\n" "$ac_ct_LIPO" >&6; }
7891 else
7892 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7893 printf "%s\n" "no" >&6; }
7894 fi
7895
7896 if test "x$ac_ct_LIPO" = x; then
7897 LIPO=":"
7898 else
7899 case $cross_compiling:$ac_tool_warned in
7900 yes:)
7901 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7902 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7903 ac_tool_warned=yes ;;
7904 esac
7905 LIPO=$ac_ct_LIPO
7906 fi
7907 else
7908 LIPO="$ac_cv_prog_LIPO"
7909 fi
7910
7911 if test -n "$ac_tool_prefix"; then
7912 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7913 set dummy ${ac_tool_prefix}otool; ac_word=$2
7914 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7915 printf %s "checking for $ac_word... " >&6; }
7916 if test ${ac_cv_prog_OTOOL+y}
7917 then :
7918 printf %s "(cached) " >&6
7919 else $as_nop
7920 if test -n "$OTOOL"; then
7921 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7922 else
7923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7924 for as_dir in $PATH
7925 do
7926 IFS=$as_save_IFS
7927 case $as_dir in #(((
7928 '') as_dir=./ ;;
7929 */) ;;
7930 *) as_dir=$as_dir/ ;;
7931 esac
7932 for ac_exec_ext in '' $ac_executable_extensions; do
7933 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7934 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7935 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7936 break 2
7937 fi
7938 done
7939 done
7940 IFS=$as_save_IFS
7941
7942 fi
7943 fi
7944 OTOOL=$ac_cv_prog_OTOOL
7945 if test -n "$OTOOL"; then
7946 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7947 printf "%s\n" "$OTOOL" >&6; }
7948 else
7949 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7950 printf "%s\n" "no" >&6; }
7951 fi
7952
7953
7954 fi
7955 if test -z "$ac_cv_prog_OTOOL"; then
7956 ac_ct_OTOOL=$OTOOL
7957 # Extract the first word of "otool", so it can be a program name with args.
7958 set dummy otool; ac_word=$2
7959 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7960 printf %s "checking for $ac_word... " >&6; }
7961 if test ${ac_cv_prog_ac_ct_OTOOL+y}
7962 then :
7963 printf %s "(cached) " >&6
7964 else $as_nop
7965 if test -n "$ac_ct_OTOOL"; then
7966 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7967 else
7968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7969 for as_dir in $PATH
7970 do
7971 IFS=$as_save_IFS
7972 case $as_dir in #(((
7973 '') as_dir=./ ;;
7974 */) ;;
7975 *) as_dir=$as_dir/ ;;
7976 esac
7977 for ac_exec_ext in '' $ac_executable_extensions; do
7978 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7979 ac_cv_prog_ac_ct_OTOOL="otool"
7980 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7981 break 2
7982 fi
7983 done
7984 done
7985 IFS=$as_save_IFS
7986
7987 fi
7988 fi
7989 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7990 if test -n "$ac_ct_OTOOL"; then
7991 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7992 printf "%s\n" "$ac_ct_OTOOL" >&6; }
7993 else
7994 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7995 printf "%s\n" "no" >&6; }
7996 fi
7997
7998 if test "x$ac_ct_OTOOL" = x; then
7999 OTOOL=":"
8000 else
8001 case $cross_compiling:$ac_tool_warned in
8002 yes:)
8003 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8004 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8005 ac_tool_warned=yes ;;
8006 esac
8007 OTOOL=$ac_ct_OTOOL
8008 fi
8009 else
8010 OTOOL="$ac_cv_prog_OTOOL"
8011 fi
8012
8013 if test -n "$ac_tool_prefix"; then
8014 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8015 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8016 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8017 printf %s "checking for $ac_word... " >&6; }
8018 if test ${ac_cv_prog_OTOOL64+y}
8019 then :
8020 printf %s "(cached) " >&6
8021 else $as_nop
8022 if test -n "$OTOOL64"; then
8023 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8024 else
8025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8026 for as_dir in $PATH
8027 do
8028 IFS=$as_save_IFS
8029 case $as_dir in #(((
8030 '') as_dir=./ ;;
8031 */) ;;
8032 *) as_dir=$as_dir/ ;;
8033 esac
8034 for ac_exec_ext in '' $ac_executable_extensions; do
8035 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8036 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8037 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8038 break 2
8039 fi
8040 done
8041 done
8042 IFS=$as_save_IFS
8043
8044 fi
8045 fi
8046 OTOOL64=$ac_cv_prog_OTOOL64
8047 if test -n "$OTOOL64"; then
8048 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8049 printf "%s\n" "$OTOOL64" >&6; }
8050 else
8051 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8052 printf "%s\n" "no" >&6; }
8053 fi
8054
8055
8056 fi
8057 if test -z "$ac_cv_prog_OTOOL64"; then
8058 ac_ct_OTOOL64=$OTOOL64
8059 # Extract the first word of "otool64", so it can be a program name with args.
8060 set dummy otool64; ac_word=$2
8061 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8062 printf %s "checking for $ac_word... " >&6; }
8063 if test ${ac_cv_prog_ac_ct_OTOOL64+y}
8064 then :
8065 printf %s "(cached) " >&6
8066 else $as_nop
8067 if test -n "$ac_ct_OTOOL64"; then
8068 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8069 else
8070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8071 for as_dir in $PATH
8072 do
8073 IFS=$as_save_IFS
8074 case $as_dir in #(((
8075 '') as_dir=./ ;;
8076 */) ;;
8077 *) as_dir=$as_dir/ ;;
8078 esac
8079 for ac_exec_ext in '' $ac_executable_extensions; do
8080 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8081 ac_cv_prog_ac_ct_OTOOL64="otool64"
8082 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8083 break 2
8084 fi
8085 done
8086 done
8087 IFS=$as_save_IFS
8088
8089 fi
8090 fi
8091 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8092 if test -n "$ac_ct_OTOOL64"; then
8093 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8094 printf "%s\n" "$ac_ct_OTOOL64" >&6; }
8095 else
8096 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8097 printf "%s\n" "no" >&6; }
8098 fi
8099
8100 if test "x$ac_ct_OTOOL64" = x; then
8101 OTOOL64=":"
8102 else
8103 case $cross_compiling:$ac_tool_warned in
8104 yes:)
8105 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8106 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8107 ac_tool_warned=yes ;;
8108 esac
8109 OTOOL64=$ac_ct_OTOOL64
8110 fi
8111 else
8112 OTOOL64="$ac_cv_prog_OTOOL64"
8113 fi
8114
8115
8116
8117
8118
8119
8120
8121
8122
8123
8124
8125
8126
8127
8128
8129
8130
8131
8132
8133
8134
8135
8136
8137
8138
8139
8140
8141 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8142 printf %s "checking for -single_module linker flag... " >&6; }
8143 if test ${lt_cv_apple_cc_single_mod+y}
8144 then :
8145 printf %s "(cached) " >&6
8146 else $as_nop
8147 lt_cv_apple_cc_single_mod=no
8148 if test -z "$LT_MULTI_MODULE"; then
8149 # By default we will add the -single_module flag. You can override
8150 # by either setting the environment variable LT_MULTI_MODULE
8151 # non-empty at configure time, or by adding -multi_module to the
8152 # link flags.
8153 rm -rf libconftest.dylib*
8154 echo "int foo(void){return 1;}" > conftest.c
8155 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8156 -dynamiclib -Wl,-single_module conftest.c" >&5
8157 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8158 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8159 _lt_result=$?
8160 # If there is a non-empty error log, and "single_module"
8161 # appears in it, assume the flag caused a linker warning
8162 if test -s conftest.err && $GREP single_module conftest.err; then
8163 cat conftest.err >&5
8164 # Otherwise, if the output was created with a 0 exit code from
8165 # the compiler, it worked.
8166 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
8167 lt_cv_apple_cc_single_mod=yes
8168 else
8169 cat conftest.err >&5
8170 fi
8171 rm -rf libconftest.dylib*
8172 rm -f conftest.*
8173 fi
8174 fi
8175 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8176 printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
8177
8178 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8179 printf %s "checking for -exported_symbols_list linker flag... " >&6; }
8180 if test ${lt_cv_ld_exported_symbols_list+y}
8181 then :
8182 printf %s "(cached) " >&6
8183 else $as_nop
8184 lt_cv_ld_exported_symbols_list=no
8185 save_LDFLAGS=$LDFLAGS
8186 echo "_main" > conftest.sym
8187 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8189 /* end confdefs.h. */
8190
8191 int
8192 main (void)
8193 {
8194
8195 ;
8196 return 0;
8197 }
8198 _ACEOF
8199 if ac_fn_c_try_link "$LINENO"
8200 then :
8201 lt_cv_ld_exported_symbols_list=yes
8202 else $as_nop
8203 lt_cv_ld_exported_symbols_list=no
8204 fi
8205 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8206 conftest$ac_exeext conftest.$ac_ext
8207 LDFLAGS=$save_LDFLAGS
8208
8209 fi
8210 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8211 printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
8212
8213 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8214 printf %s "checking for -force_load linker flag... " >&6; }
8215 if test ${lt_cv_ld_force_load+y}
8216 then :
8217 printf %s "(cached) " >&6
8218 else $as_nop
8219 lt_cv_ld_force_load=no
8220 cat > conftest.c << _LT_EOF
8221 int forced_loaded() { return 2;}
8222 _LT_EOF
8223 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8224 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8225 echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5
8226 $AR $AR_FLAGS libconftest.a conftest.o 2>&5
8227 echo "$RANLIB libconftest.a" >&5
8228 $RANLIB libconftest.a 2>&5
8229 cat > conftest.c << _LT_EOF
8230 int main() { return 0;}
8231 _LT_EOF
8232 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8233 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8234 _lt_result=$?
8235 if test -s conftest.err && $GREP force_load conftest.err; then
8236 cat conftest.err >&5
8237 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
8238 lt_cv_ld_force_load=yes
8239 else
8240 cat conftest.err >&5
8241 fi
8242 rm -f conftest.err libconftest.a conftest conftest.c
8243 rm -rf conftest.dSYM
8244
8245 fi
8246 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8247 printf "%s\n" "$lt_cv_ld_force_load" >&6; }
8248 case $host_os in
8249 rhapsody* | darwin1.[012])
8250 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8251 darwin1.*)
8252 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8253 darwin*)
8254 case $MACOSX_DEPLOYMENT_TARGET,$host in
8255 10.[012],*|,*powerpc*-darwin[5-8]*)
8256 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8257 *)
8258 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8259 esac
8260 ;;
8261 esac
8262 if test yes = "$lt_cv_apple_cc_single_mod"; then
8263 _lt_dar_single_mod='$single_module'
8264 fi
8265 if test yes = "$lt_cv_ld_exported_symbols_list"; then
8266 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8267 else
8268 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8269 fi
8270 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8271 _lt_dsymutil='~$DSYMUTIL $lib || :'
8272 else
8273 _lt_dsymutil=
8274 fi
8275 ;;
8276 esac
8277
8278 # func_munge_path_list VARIABLE PATH
8279 # -----------------------------------
8280 # VARIABLE is name of variable containing _space_ separated list of
8281 # directories to be munged by the contents of PATH, which is string
8282 # having a format:
8283 # "DIR[:DIR]:"
8284 # string "DIR[ DIR]" will be prepended to VARIABLE
8285 # ":DIR[:DIR]"
8286 # string "DIR[ DIR]" will be appended to VARIABLE
8287 # "DIRP[:DIRP]::[DIRA:]DIRA"
8288 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
8289 # "DIRA[ DIRA]" will be appended to VARIABLE
8290 # "DIR[:DIR]"
8291 # VARIABLE will be replaced by "DIR[ DIR]"
8292 func_munge_path_list ()
8293 {
8294 case x$2 in
8295 x)
8296 ;;
8297 *:)
8298 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
8299 ;;
8300 x:*)
8301 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
8302 ;;
8303 *::*)
8304 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
8305 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
8306 ;;
8307 *)
8308 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
8309 ;;
8310 esac
8311 }
8312
8313 ac_header= ac_cache=
8314 for ac_item in $ac_header_c_list
8315 do
8316 if test $ac_cache; then
8317 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
8318 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
8319 printf "%s\n" "#define $ac_item 1" >> confdefs.h
8320 fi
8321 ac_header= ac_cache=
8322 elif test $ac_header; then
8323 ac_cache=$ac_item
8324 else
8325 ac_header=$ac_item
8326 fi
8327 done
8328
8329
8330
8331
8332
8333
8334
8335
8336 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
8337 then :
8338
8339 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
8340
8341 fi
8342 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8343 "
8344 if test "x$ac_cv_header_dlfcn_h" = xyes
8345 then :
8346 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
8347
8348 fi
8349
8350
8351
8352
8353
8354 # Set options
8355
8356
8357
8358 enable_dlopen=no
8359
8360
8361 enable_win32_dll=no
8362
8363
8364 # Check whether --enable-shared was given.
8365 if test ${enable_shared+y}
8366 then :
8367 enableval=$enable_shared; p=${PACKAGE-default}
8368 case $enableval in
8369 yes) enable_shared=yes ;;
8370 no) enable_shared=no ;;
8371 *)
8372 enable_shared=no
8373 # Look at the argument we got. We use all the common list separators.
8374 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8375 for pkg in $enableval; do
8376 IFS=$lt_save_ifs
8377 if test "X$pkg" = "X$p"; then
8378 enable_shared=yes
8379 fi
8380 done
8381 IFS=$lt_save_ifs
8382 ;;
8383 esac
8384 else $as_nop
8385 enable_shared=yes
8386 fi
8387
8388
8389
8390
8391
8392
8393
8394
8395
8396 # Check whether --enable-static was given.
8397 if test ${enable_static+y}
8398 then :
8399 enableval=$enable_static; p=${PACKAGE-default}
8400 case $enableval in
8401 yes) enable_static=yes ;;
8402 no) enable_static=no ;;
8403 *)
8404 enable_static=no
8405 # Look at the argument we got. We use all the common list separators.
8406 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8407 for pkg in $enableval; do
8408 IFS=$lt_save_ifs
8409 if test "X$pkg" = "X$p"; then
8410 enable_static=yes
8411 fi
8412 done
8413 IFS=$lt_save_ifs
8414 ;;
8415 esac
8416 else $as_nop
8417 enable_static=yes
8418 fi
8419
8420
8421
8422
8423
8424
8425
8426
8427
8428
8429 # Check whether --with-pic was given.
8430 if test ${with_pic+y}
8431 then :
8432 withval=$with_pic; lt_p=${PACKAGE-default}
8433 case $withval in
8434 yes|no) pic_mode=$withval ;;
8435 *)
8436 pic_mode=default
8437 # Look at the argument we got. We use all the common list separators.
8438 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8439 for lt_pkg in $withval; do
8440 IFS=$lt_save_ifs
8441 if test "X$lt_pkg" = "X$lt_p"; then
8442 pic_mode=yes
8443 fi
8444 done
8445 IFS=$lt_save_ifs
8446 ;;
8447 esac
8448 else $as_nop
8449 pic_mode=default
8450 fi
8451
8452
8453
8454
8455
8456
8457
8458
8459 # Check whether --enable-fast-install was given.
8460 if test ${enable_fast_install+y}
8461 then :
8462 enableval=$enable_fast_install; p=${PACKAGE-default}
8463 case $enableval in
8464 yes) enable_fast_install=yes ;;
8465 no) enable_fast_install=no ;;
8466 *)
8467 enable_fast_install=no
8468 # Look at the argument we got. We use all the common list separators.
8469 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8470 for pkg in $enableval; do
8471 IFS=$lt_save_ifs
8472 if test "X$pkg" = "X$p"; then
8473 enable_fast_install=yes
8474 fi
8475 done
8476 IFS=$lt_save_ifs
8477 ;;
8478 esac
8479 else $as_nop
8480 enable_fast_install=yes
8481 fi
8482
8483
8484
8485
8486
8487
8488
8489
8490 shared_archive_member_spec=
8491 case $host,$enable_shared in
8492 power*-*-aix[5-9]*,yes)
8493 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8494 printf %s "checking which variant of shared library versioning to provide... " >&6; }
8495
8496 # Check whether --with-aix-soname was given.
8497 if test ${with_aix_soname+y}
8498 then :
8499 withval=$with_aix_soname; case $withval in
8500 aix|svr4|both)
8501 ;;
8502 *)
8503 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
8504 ;;
8505 esac
8506 lt_cv_with_aix_soname=$with_aix_soname
8507 else $as_nop
8508 if test ${lt_cv_with_aix_soname+y}
8509 then :
8510 printf %s "(cached) " >&6
8511 else $as_nop
8512 lt_cv_with_aix_soname=aix
8513 fi
8514
8515 with_aix_soname=$lt_cv_with_aix_soname
8516 fi
8517
8518 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8519 printf "%s\n" "$with_aix_soname" >&6; }
8520 if test aix != "$with_aix_soname"; then
8521 # For the AIX way of multilib, we name the shared archive member
8522 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8523 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8524 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8525 # the AIX toolchain works better with OBJECT_MODE set (default 32).
8526 if test 64 = "${OBJECT_MODE-32}"; then
8527 shared_archive_member_spec=shr_64
8528 else
8529 shared_archive_member_spec=shr
8530 fi
8531 fi
8532 ;;
8533 *)
8534 with_aix_soname=aix
8535 ;;
8536 esac
8537
8538
8539
8540
8541
8542
8543
8544
8545
8546
8547 # This can be used to rebuild libtool when needed
8548 LIBTOOL_DEPS=$ltmain
8549
8550 # Always use our own libtool.
8551 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8552
8553
8554
8555
8556
8557
8558
8559
8560
8561
8562
8563
8564
8565
8566
8567
8568
8569
8570
8571
8572
8573
8574
8575
8576
8577
8578
8579
8580
8581
8582 test -z "$LN_S" && LN_S="ln -s"
8583
8584
8585
8586
8587
8588
8589
8590
8591
8592
8593
8594
8595
8596
8597 if test -n "${ZSH_VERSION+set}"; then
8598 setopt NO_GLOB_SUBST
8599 fi
8600
8601 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8602 printf %s "checking for objdir... " >&6; }
8603 if test ${lt_cv_objdir+y}
8604 then :
8605 printf %s "(cached) " >&6
8606 else $as_nop
8607 rm -f .libs 2>/dev/null
8608 mkdir .libs 2>/dev/null
8609 if test -d .libs; then
8610 lt_cv_objdir=.libs
8611 else
8612 # MS-DOS does not allow filenames that begin with a dot.
8613 lt_cv_objdir=_libs
8614 fi
8615 rmdir .libs 2>/dev/null
8616 fi
8617 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8618 printf "%s\n" "$lt_cv_objdir" >&6; }
8619 objdir=$lt_cv_objdir
8620
8621
8622
8623
8624
8625 printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
8626
8627
8628
8629
8630 case $host_os in
8631 aix3*)
8632 # AIX sometimes has problems with the GCC collect2 program. For some
8633 # reason, if we set the COLLECT_NAMES environment variable, the problems
8634 # vanish in a puff of smoke.
8635 if test set != "${COLLECT_NAMES+set}"; then
8636 COLLECT_NAMES=
8637 export COLLECT_NAMES
8638 fi
8639 ;;
8640 esac
8641
8642 # Global variables:
8643 ofile=libtool
8644 can_build_shared=yes
8645
8646 # All known linkers require a '.a' archive for static linking (except MSVC and
8647 # ICC, which need '.lib').
8648 libext=a
8649
8650 with_gnu_ld=$lt_cv_prog_gnu_ld
8651
8652 old_CC=$CC
8653 old_CFLAGS=$CFLAGS
8654
8655 # Set sane defaults for various variables
8656 test -z "$CC" && CC=cc
8657 test -z "$LTCC" && LTCC=$CC
8658 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8659 test -z "$LD" && LD=ld
8660 test -z "$ac_objext" && ac_objext=o
8661
8662 func_cc_basename $compiler
8663 cc_basename=$func_cc_basename_result
8664
8665
8666 # Only perform the check for file, if the check method requires it
8667 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8668 case $deplibs_check_method in
8669 file_magic*)
8670 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8671 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8672 printf %s "checking for ${ac_tool_prefix}file... " >&6; }
8673 if test ${lt_cv_path_MAGIC_CMD+y}
8674 then :
8675 printf %s "(cached) " >&6
8676 else $as_nop
8677 case $MAGIC_CMD in
8678 [\\/*] | ?:[\\/]*)
8679 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8680 ;;
8681 *)
8682 lt_save_MAGIC_CMD=$MAGIC_CMD
8683 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8684 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8685 for ac_dir in $ac_dummy; do
8686 IFS=$lt_save_ifs
8687 test -z "$ac_dir" && ac_dir=.
8688 if test -f "$ac_dir/${ac_tool_prefix}file"; then
8689 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8690 if test -n "$file_magic_test_file"; then
8691 case $deplibs_check_method in
8692 "file_magic "*)
8693 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8694 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8695 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8696 $EGREP "$file_magic_regex" > /dev/null; then
8697 :
8698 else
8699 cat <<_LT_EOF 1>&2
8700
8701 *** Warning: the command libtool uses to detect shared libraries,
8702 *** $file_magic_cmd, produces output that libtool cannot recognize.
8703 *** The result is that libtool may fail to recognize shared libraries
8704 *** as such. This will affect the creation of libtool libraries that
8705 *** depend on shared libraries, but programs linked with such libtool
8706 *** libraries will work regardless of this problem. Nevertheless, you
8707 *** may want to report the problem to your system manager and/or to
8708 *** [email protected]
8709
8710 _LT_EOF
8711 fi ;;
8712 esac
8713 fi
8714 break
8715 fi
8716 done
8717 IFS=$lt_save_ifs
8718 MAGIC_CMD=$lt_save_MAGIC_CMD
8719 ;;
8720 esac
8721 fi
8722
8723 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8724 if test -n "$MAGIC_CMD"; then
8725 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8726 printf "%s\n" "$MAGIC_CMD" >&6; }
8727 else
8728 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8729 printf "%s\n" "no" >&6; }
8730 fi
8731
8732
8733
8734
8735
8736 if test -z "$lt_cv_path_MAGIC_CMD"; then
8737 if test -n "$ac_tool_prefix"; then
8738 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8739 printf %s "checking for file... " >&6; }
8740 if test ${lt_cv_path_MAGIC_CMD+y}
8741 then :
8742 printf %s "(cached) " >&6
8743 else $as_nop
8744 case $MAGIC_CMD in
8745 [\\/*] | ?:[\\/]*)
8746 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8747 ;;
8748 *)
8749 lt_save_MAGIC_CMD=$MAGIC_CMD
8750 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8751 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8752 for ac_dir in $ac_dummy; do
8753 IFS=$lt_save_ifs
8754 test -z "$ac_dir" && ac_dir=.
8755 if test -f "$ac_dir/file"; then
8756 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8757 if test -n "$file_magic_test_file"; then
8758 case $deplibs_check_method in
8759 "file_magic "*)
8760 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8761 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8762 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8763 $EGREP "$file_magic_regex" > /dev/null; then
8764 :
8765 else
8766 cat <<_LT_EOF 1>&2
8767
8768 *** Warning: the command libtool uses to detect shared libraries,
8769 *** $file_magic_cmd, produces output that libtool cannot recognize.
8770 *** The result is that libtool may fail to recognize shared libraries
8771 *** as such. This will affect the creation of libtool libraries that
8772 *** depend on shared libraries, but programs linked with such libtool
8773 *** libraries will work regardless of this problem. Nevertheless, you
8774 *** may want to report the problem to your system manager and/or to
8775 *** [email protected]
8776
8777 _LT_EOF
8778 fi ;;
8779 esac
8780 fi
8781 break
8782 fi
8783 done
8784 IFS=$lt_save_ifs
8785 MAGIC_CMD=$lt_save_MAGIC_CMD
8786 ;;
8787 esac
8788 fi
8789
8790 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8791 if test -n "$MAGIC_CMD"; then
8792 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8793 printf "%s\n" "$MAGIC_CMD" >&6; }
8794 else
8795 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8796 printf "%s\n" "no" >&6; }
8797 fi
8798
8799
8800 else
8801 MAGIC_CMD=:
8802 fi
8803 fi
8804
8805 fi
8806 ;;
8807 esac
8808
8809 # Use C for the default configuration in the libtool script
8810
8811 lt_save_CC=$CC
8812 ac_ext=c
8813 ac_cpp='$CPP $CPPFLAGS'
8814 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8815 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8816 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8817
8818
8819 # Source file extension for C test sources.
8820 ac_ext=c
8821
8822 # Object file extension for compiled C test sources.
8823 objext=o
8824 objext=$objext
8825
8826 # Code to be used in simple compile tests
8827 lt_simple_compile_test_code="int some_variable = 0;"
8828
8829 # Code to be used in simple link tests
8830 lt_simple_link_test_code='int main(){return(0);}'
8831
8832
8833
8834
8835
8836
8837
8838 # If no C compiler was specified, use CC.
8839 LTCC=${LTCC-"$CC"}
8840
8841 # If no C compiler flags were specified, use CFLAGS.
8842 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8843
8844 # Allow CC to be a program name with arguments.
8845 compiler=$CC
8846
8847 # Save the default compiler, since it gets overwritten when the other
8848 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8849 compiler_DEFAULT=$CC
8850
8851 # save warnings/boilerplate of simple test code
8852 ac_outfile=conftest.$ac_objext
8853 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8854 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8855 _lt_compiler_boilerplate=`cat conftest.err`
8856 $RM conftest*
8857
8858 ac_outfile=conftest.$ac_objext
8859 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8860 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8861 _lt_linker_boilerplate=`cat conftest.err`
8862 $RM -r conftest*
8863
8864
8865 if test -n "$compiler"; then
8866
8867 lt_prog_compiler_no_builtin_flag=
8868
8869 if test yes = "$GCC"; then
8870 case $cc_basename in
8871 nvcc*)
8872 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8873 *)
8874 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8875 esac
8876
8877 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8878 printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8879 if test ${lt_cv_prog_compiler_rtti_exceptions+y}
8880 then :
8881 printf %s "(cached) " >&6
8882 else $as_nop
8883 lt_cv_prog_compiler_rtti_exceptions=no
8884 ac_outfile=conftest.$ac_objext
8885 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8886 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
8887 # Insert the option either (1) after the last *FLAGS variable, or
8888 # (2) before a word containing "conftest.", or (3) at the end.
8889 # Note that $ac_compile itself does not contain backslashes and begins
8890 # with a dollar sign (not a hyphen), so the echo should work correctly.
8891 # The option is referenced via a variable to avoid confusing sed.
8892 lt_compile=`echo "$ac_compile" | $SED \
8893 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8894 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8895 -e 's:$: $lt_compiler_flag:'`
8896 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8897 (eval "$lt_compile" 2>conftest.err)
8898 ac_status=$?
8899 cat conftest.err >&5
8900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8901 if (exit $ac_status) && test -s "$ac_outfile"; then
8902 # The compiler can only warn and ignore the option if not recognized
8903 # So say no if there are warnings other than the usual output.
8904 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8905 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8906 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8907 lt_cv_prog_compiler_rtti_exceptions=yes
8908 fi
8909 fi
8910 $RM conftest*
8911
8912 fi
8913 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8914 printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8915
8916 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
8917 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8918 else
8919 :
8920 fi
8921
8922 fi
8923
8924
8925
8926
8927
8928
8929 lt_prog_compiler_wl=
8930 lt_prog_compiler_pic=
8931 lt_prog_compiler_static=
8932
8933
8934 if test yes = "$GCC"; then
8935 lt_prog_compiler_wl='-Wl,'
8936 lt_prog_compiler_static='-static'
8937
8938 case $host_os in
8939 aix*)
8940 # All AIX code is PIC.
8941 if test ia64 = "$host_cpu"; then
8942 # AIX 5 now supports IA64 processor
8943 lt_prog_compiler_static='-Bstatic'
8944 fi
8945 lt_prog_compiler_pic='-fPIC'
8946 ;;
8947
8948 amigaos*)
8949 case $host_cpu in
8950 powerpc)
8951 # see comment about AmigaOS4 .so support
8952 lt_prog_compiler_pic='-fPIC'
8953 ;;
8954 m68k)
8955 # FIXME: we need at least 68020 code to build shared libraries, but
8956 # adding the '-m68020' flag to GCC prevents building anything better,
8957 # like '-m68040'.
8958 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8959 ;;
8960 esac
8961 ;;
8962
8963 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8964 # PIC is the default for these OSes.
8965 ;;
8966
8967 mingw* | cygwin* | pw32* | os2* | cegcc*)
8968 # This hack is so that the source file can tell whether it is being
8969 # built for inclusion in a dll (and should export symbols for example).
8970 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8971 # (--disable-auto-import) libraries
8972 lt_prog_compiler_pic='-DDLL_EXPORT'
8973 case $host_os in
8974 os2*)
8975 lt_prog_compiler_static='$wl-static'
8976 ;;
8977 esac
8978 ;;
8979
8980 darwin* | rhapsody*)
8981 # PIC is the default on this platform
8982 # Common symbols not allowed in MH_DYLIB files
8983 lt_prog_compiler_pic='-fno-common'
8984 ;;
8985
8986 haiku*)
8987 # PIC is the default for Haiku.
8988 # The "-static" flag exists, but is broken.
8989 lt_prog_compiler_static=
8990 ;;
8991
8992 hpux*)
8993 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8994 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8995 # sets the default TLS model and affects inlining.
8996 case $host_cpu in
8997 hppa*64*)
8998 # +Z the default
8999 ;;
9000 *)
9001 lt_prog_compiler_pic='-fPIC'
9002 ;;
9003 esac
9004 ;;
9005
9006 interix[3-9]*)
9007 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9008 # Instead, we relocate shared libraries at runtime.
9009 ;;
9010
9011 msdosdjgpp*)
9012 # Just because we use GCC doesn't mean we suddenly get shared libraries
9013 # on systems that don't support them.
9014 lt_prog_compiler_can_build_shared=no
9015 enable_shared=no
9016 ;;
9017
9018 *nto* | *qnx*)
9019 # QNX uses GNU C++, but need to define -shared option too, otherwise
9020 # it will coredump.
9021 lt_prog_compiler_pic='-fPIC -shared'
9022 ;;
9023
9024 sysv4*MP*)
9025 if test -d /usr/nec; then
9026 lt_prog_compiler_pic=-Kconform_pic
9027 fi
9028 ;;
9029
9030 *)
9031 lt_prog_compiler_pic='-fPIC'
9032 ;;
9033 esac
9034
9035 case $cc_basename in
9036 nvcc*) # Cuda Compiler Driver 2.2
9037 lt_prog_compiler_wl='-Xlinker '
9038 if test -n "$lt_prog_compiler_pic"; then
9039 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9040 fi
9041 ;;
9042 esac
9043 else
9044 # PORTME Check for flag to pass linker flags through the system compiler.
9045 case $host_os in
9046 aix*)
9047 lt_prog_compiler_wl='-Wl,'
9048 if test ia64 = "$host_cpu"; then
9049 # AIX 5 now supports IA64 processor
9050 lt_prog_compiler_static='-Bstatic'
9051 else
9052 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9053 fi
9054 ;;
9055
9056 darwin* | rhapsody*)
9057 # PIC is the default on this platform
9058 # Common symbols not allowed in MH_DYLIB files
9059 lt_prog_compiler_pic='-fno-common'
9060 case $cc_basename in
9061 nagfor*)
9062 # NAG Fortran compiler
9063 lt_prog_compiler_wl='-Wl,-Wl,,'
9064 lt_prog_compiler_pic='-PIC'
9065 lt_prog_compiler_static='-Bstatic'
9066 ;;
9067 esac
9068 ;;
9069
9070 mingw* | cygwin* | pw32* | os2* | cegcc*)
9071 # This hack is so that the source file can tell whether it is being
9072 # built for inclusion in a dll (and should export symbols for example).
9073 lt_prog_compiler_pic='-DDLL_EXPORT'
9074 case $host_os in
9075 os2*)
9076 lt_prog_compiler_static='$wl-static'
9077 ;;
9078 esac
9079 ;;
9080
9081 hpux9* | hpux10* | hpux11*)
9082 lt_prog_compiler_wl='-Wl,'
9083 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9084 # not for PA HP-UX.
9085 case $host_cpu in
9086 hppa*64*|ia64*)
9087 # +Z the default
9088 ;;
9089 *)
9090 lt_prog_compiler_pic='+Z'
9091 ;;
9092 esac
9093 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9094 lt_prog_compiler_static='$wl-a ${wl}archive'
9095 ;;
9096
9097 irix5* | irix6* | nonstopux*)
9098 lt_prog_compiler_wl='-Wl,'
9099 # PIC (with -KPIC) is the default.
9100 lt_prog_compiler_static='-non_shared'
9101 ;;
9102
9103 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9104 case $cc_basename in
9105 # old Intel for x86_64, which still supported -KPIC.
9106 ecc*)
9107 lt_prog_compiler_wl='-Wl,'
9108 lt_prog_compiler_pic='-KPIC'
9109 lt_prog_compiler_static='-static'
9110 ;;
9111 # icc used to be incompatible with GCC.
9112 # ICC 10 doesn't accept -KPIC any more.
9113 icc* | ifort*)
9114 lt_prog_compiler_wl='-Wl,'
9115 lt_prog_compiler_pic='-fPIC'
9116 lt_prog_compiler_static='-static'
9117 ;;
9118 # Lahey Fortran 8.1.
9119 lf95*)
9120 lt_prog_compiler_wl='-Wl,'
9121 lt_prog_compiler_pic='--shared'
9122 lt_prog_compiler_static='--static'
9123 ;;
9124 nagfor*)
9125 # NAG Fortran compiler
9126 lt_prog_compiler_wl='-Wl,-Wl,,'
9127 lt_prog_compiler_pic='-PIC'
9128 lt_prog_compiler_static='-Bstatic'
9129 ;;
9130 tcc*)
9131 # Fabrice Bellard et al's Tiny C Compiler
9132 lt_prog_compiler_wl='-Wl,'
9133 lt_prog_compiler_pic='-fPIC'
9134 lt_prog_compiler_static='-static'
9135 ;;
9136 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9137 # Portland Group compilers (*not* the Pentium gcc compiler,
9138 # which looks to be a dead project)
9139 lt_prog_compiler_wl='-Wl,'
9140 lt_prog_compiler_pic='-fpic'
9141 lt_prog_compiler_static='-Bstatic'
9142 ;;
9143 ccc*)
9144 lt_prog_compiler_wl='-Wl,'
9145 # All Alpha code is PIC.
9146 lt_prog_compiler_static='-non_shared'
9147 ;;
9148 xl* | bgxl* | bgf* | mpixl*)
9149 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9150 lt_prog_compiler_wl='-Wl,'
9151 lt_prog_compiler_pic='-qpic'
9152 lt_prog_compiler_static='-qstaticlink'
9153 ;;
9154 *)
9155 case `$CC -V 2>&1 | $SED 5q` in
9156 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9157 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9158 lt_prog_compiler_pic='-KPIC'
9159 lt_prog_compiler_static='-Bstatic'
9160 lt_prog_compiler_wl=''
9161 ;;
9162 *Sun\ F* | *Sun*Fortran*)
9163 lt_prog_compiler_pic='-KPIC'
9164 lt_prog_compiler_static='-Bstatic'
9165 lt_prog_compiler_wl='-Qoption ld '
9166 ;;
9167 *Sun\ C*)
9168 # Sun C 5.9
9169 lt_prog_compiler_pic='-KPIC'
9170 lt_prog_compiler_static='-Bstatic'
9171 lt_prog_compiler_wl='-Wl,'
9172 ;;
9173 *Intel*\ [CF]*Compiler*)
9174 lt_prog_compiler_wl='-Wl,'
9175 lt_prog_compiler_pic='-fPIC'
9176 lt_prog_compiler_static='-static'
9177 ;;
9178 *Portland\ Group*)
9179 lt_prog_compiler_wl='-Wl,'
9180 lt_prog_compiler_pic='-fpic'
9181 lt_prog_compiler_static='-Bstatic'
9182 ;;
9183 esac
9184 ;;
9185 esac
9186 ;;
9187
9188 newsos6)
9189 lt_prog_compiler_pic='-KPIC'
9190 lt_prog_compiler_static='-Bstatic'
9191 ;;
9192
9193 *nto* | *qnx*)
9194 # QNX uses GNU C++, but need to define -shared option too, otherwise
9195 # it will coredump.
9196 lt_prog_compiler_pic='-fPIC -shared'
9197 ;;
9198
9199 osf3* | osf4* | osf5*)
9200 lt_prog_compiler_wl='-Wl,'
9201 # All OSF/1 code is PIC.
9202 lt_prog_compiler_static='-non_shared'
9203 ;;
9204
9205 rdos*)
9206 lt_prog_compiler_static='-non_shared'
9207 ;;
9208
9209 solaris*)
9210 lt_prog_compiler_pic='-KPIC'
9211 lt_prog_compiler_static='-Bstatic'
9212 case $cc_basename in
9213 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9214 lt_prog_compiler_wl='-Qoption ld ';;
9215 *)
9216 lt_prog_compiler_wl='-Wl,';;
9217 esac
9218 ;;
9219
9220 sunos4*)
9221 lt_prog_compiler_wl='-Qoption ld '
9222 lt_prog_compiler_pic='-PIC'
9223 lt_prog_compiler_static='-Bstatic'
9224 ;;
9225
9226 sysv4 | sysv4.2uw2* | sysv4.3*)
9227 lt_prog_compiler_wl='-Wl,'
9228 lt_prog_compiler_pic='-KPIC'
9229 lt_prog_compiler_static='-Bstatic'
9230 ;;
9231
9232 sysv4*MP*)
9233 if test -d /usr/nec; then
9234 lt_prog_compiler_pic='-Kconform_pic'
9235 lt_prog_compiler_static='-Bstatic'
9236 fi
9237 ;;
9238
9239 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9240 lt_prog_compiler_wl='-Wl,'
9241 lt_prog_compiler_pic='-KPIC'
9242 lt_prog_compiler_static='-Bstatic'
9243 ;;
9244
9245 unicos*)
9246 lt_prog_compiler_wl='-Wl,'
9247 lt_prog_compiler_can_build_shared=no
9248 ;;
9249
9250 uts4*)
9251 lt_prog_compiler_pic='-pic'
9252 lt_prog_compiler_static='-Bstatic'
9253 ;;
9254
9255 *)
9256 lt_prog_compiler_can_build_shared=no
9257 ;;
9258 esac
9259 fi
9260
9261 case $host_os in
9262 # For platforms that do not support PIC, -DPIC is meaningless:
9263 *djgpp*)
9264 lt_prog_compiler_pic=
9265 ;;
9266 *)
9267 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9268 ;;
9269 esac
9270
9271 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9272 printf %s "checking for $compiler option to produce PIC... " >&6; }
9273 if test ${lt_cv_prog_compiler_pic+y}
9274 then :
9275 printf %s "(cached) " >&6
9276 else $as_nop
9277 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9278 fi
9279 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9280 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
9281 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9282
9283 #
9284 # Check to make sure the PIC flag actually works.
9285 #
9286 if test -n "$lt_prog_compiler_pic"; then
9287 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9288 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9289 if test ${lt_cv_prog_compiler_pic_works+y}
9290 then :
9291 printf %s "(cached) " >&6
9292 else $as_nop
9293 lt_cv_prog_compiler_pic_works=no
9294 ac_outfile=conftest.$ac_objext
9295 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9296 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
9297 # Insert the option either (1) after the last *FLAGS variable, or
9298 # (2) before a word containing "conftest.", or (3) at the end.
9299 # Note that $ac_compile itself does not contain backslashes and begins
9300 # with a dollar sign (not a hyphen), so the echo should work correctly.
9301 # The option is referenced via a variable to avoid confusing sed.
9302 lt_compile=`echo "$ac_compile" | $SED \
9303 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9304 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9305 -e 's:$: $lt_compiler_flag:'`
9306 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9307 (eval "$lt_compile" 2>conftest.err)
9308 ac_status=$?
9309 cat conftest.err >&5
9310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9311 if (exit $ac_status) && test -s "$ac_outfile"; then
9312 # The compiler can only warn and ignore the option if not recognized
9313 # So say no if there are warnings other than the usual output.
9314 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9315 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9316 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9317 lt_cv_prog_compiler_pic_works=yes
9318 fi
9319 fi
9320 $RM conftest*
9321
9322 fi
9323 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9324 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
9325
9326 if test yes = "$lt_cv_prog_compiler_pic_works"; then
9327 case $lt_prog_compiler_pic in
9328 "" | " "*) ;;
9329 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9330 esac
9331 else
9332 lt_prog_compiler_pic=
9333 lt_prog_compiler_can_build_shared=no
9334 fi
9335
9336 fi
9337
9338
9339
9340
9341
9342
9343
9344
9345
9346
9347
9348 #
9349 # Check to make sure the static flag actually works.
9350 #
9351 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9352 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9353 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9354 if test ${lt_cv_prog_compiler_static_works+y}
9355 then :
9356 printf %s "(cached) " >&6
9357 else $as_nop
9358 lt_cv_prog_compiler_static_works=no
9359 save_LDFLAGS=$LDFLAGS
9360 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9361 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9362 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9363 # The linker can only warn and ignore the option if not recognized
9364 # So say no if there are warnings
9365 if test -s conftest.err; then
9366 # Append any errors to the config.log.
9367 cat conftest.err 1>&5
9368 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9369 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9370 if diff conftest.exp conftest.er2 >/dev/null; then
9371 lt_cv_prog_compiler_static_works=yes
9372 fi
9373 else
9374 lt_cv_prog_compiler_static_works=yes
9375 fi
9376 fi
9377 $RM -r conftest*
9378 LDFLAGS=$save_LDFLAGS
9379
9380 fi
9381 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9382 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
9383
9384 if test yes = "$lt_cv_prog_compiler_static_works"; then
9385 :
9386 else
9387 lt_prog_compiler_static=
9388 fi
9389
9390
9391
9392
9393
9394
9395
9396 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9397 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9398 if test ${lt_cv_prog_compiler_c_o+y}
9399 then :
9400 printf %s "(cached) " >&6
9401 else $as_nop
9402 lt_cv_prog_compiler_c_o=no
9403 $RM -r conftest 2>/dev/null
9404 mkdir conftest
9405 cd conftest
9406 mkdir out
9407 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9408
9409 lt_compiler_flag="-o out/conftest2.$ac_objext"
9410 # Insert the option either (1) after the last *FLAGS variable, or
9411 # (2) before a word containing "conftest.", or (3) at the end.
9412 # Note that $ac_compile itself does not contain backslashes and begins
9413 # with a dollar sign (not a hyphen), so the echo should work correctly.
9414 lt_compile=`echo "$ac_compile" | $SED \
9415 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9416 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9417 -e 's:$: $lt_compiler_flag:'`
9418 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9419 (eval "$lt_compile" 2>out/conftest.err)
9420 ac_status=$?
9421 cat out/conftest.err >&5
9422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9423 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9424 then
9425 # The compiler can only warn and ignore the option if not recognized
9426 # So say no if there are warnings
9427 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9428 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9429 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9430 lt_cv_prog_compiler_c_o=yes
9431 fi
9432 fi
9433 chmod u+w . 2>&5
9434 $RM conftest*
9435 # SGI C++ compiler will create directory out/ii_files/ for
9436 # template instantiation
9437 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9438 $RM out/* && rmdir out
9439 cd ..
9440 $RM -r conftest
9441 $RM conftest*
9442
9443 fi
9444 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9445 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
9446
9447
9448
9449
9450
9451
9452 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9453 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9454 if test ${lt_cv_prog_compiler_c_o+y}
9455 then :
9456 printf %s "(cached) " >&6
9457 else $as_nop
9458 lt_cv_prog_compiler_c_o=no
9459 $RM -r conftest 2>/dev/null
9460 mkdir conftest
9461 cd conftest
9462 mkdir out
9463 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9464
9465 lt_compiler_flag="-o out/conftest2.$ac_objext"
9466 # Insert the option either (1) after the last *FLAGS variable, or
9467 # (2) before a word containing "conftest.", or (3) at the end.
9468 # Note that $ac_compile itself does not contain backslashes and begins
9469 # with a dollar sign (not a hyphen), so the echo should work correctly.
9470 lt_compile=`echo "$ac_compile" | $SED \
9471 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9472 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9473 -e 's:$: $lt_compiler_flag:'`
9474 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9475 (eval "$lt_compile" 2>out/conftest.err)
9476 ac_status=$?
9477 cat out/conftest.err >&5
9478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9479 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9480 then
9481 # The compiler can only warn and ignore the option if not recognized
9482 # So say no if there are warnings
9483 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9484 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9485 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9486 lt_cv_prog_compiler_c_o=yes
9487 fi
9488 fi
9489 chmod u+w . 2>&5
9490 $RM conftest*
9491 # SGI C++ compiler will create directory out/ii_files/ for
9492 # template instantiation
9493 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9494 $RM out/* && rmdir out
9495 cd ..
9496 $RM -r conftest
9497 $RM conftest*
9498
9499 fi
9500 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9501 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
9502
9503
9504
9505
9506 hard_links=nottested
9507 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
9508 # do not overwrite the value of need_locks provided by the user
9509 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9510 printf %s "checking if we can lock with hard links... " >&6; }
9511 hard_links=yes
9512 $RM conftest*
9513 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9514 touch conftest.a
9515 ln conftest.a conftest.b 2>&5 || hard_links=no
9516 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9517 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9518 printf "%s\n" "$hard_links" >&6; }
9519 if test no = "$hard_links"; then
9520 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9521 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
9522 need_locks=warn
9523 fi
9524 else
9525 need_locks=no
9526 fi
9527
9528
9529
9530
9531
9532
9533 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9534 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9535
9536 runpath_var=
9537 allow_undefined_flag=
9538 always_export_symbols=no
9539 archive_cmds=
9540 archive_expsym_cmds=
9541 compiler_needs_object=no
9542 enable_shared_with_static_runtimes=no
9543 export_dynamic_flag_spec=
9544 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9545 hardcode_automatic=no
9546 hardcode_direct=no
9547 hardcode_direct_absolute=no
9548 hardcode_libdir_flag_spec=
9549 hardcode_libdir_separator=
9550 hardcode_minus_L=no
9551 hardcode_shlibpath_var=unsupported
9552 inherit_rpath=no
9553 link_all_deplibs=unknown
9554 module_cmds=
9555 module_expsym_cmds=
9556 old_archive_from_new_cmds=
9557 old_archive_from_expsyms_cmds=
9558 thread_safe_flag_spec=
9559 whole_archive_flag_spec=
9560 # include_expsyms should be a list of space-separated symbols to be *always*
9561 # included in the symbol list
9562 include_expsyms=
9563 # exclude_expsyms can be an extended regexp of symbols to exclude
9564 # it will be wrapped by ' (' and ')$', so one must not match beginning or
9565 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9566 # as well as any symbol that contains 'd'.
9567 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9568 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9569 # platforms (ab)use it in PIC code, but their linkers get confused if
9570 # the symbol is explicitly referenced. Since portable code cannot
9571 # rely on this symbol name, it's probably fine to never include it in
9572 # preloaded symbol tables.
9573 # Exclude shared library initialization/finalization symbols.
9574 extract_expsyms_cmds=
9575
9576 case $host_os in
9577 cygwin* | mingw* | pw32* | cegcc*)
9578 # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
9579 # When not using gcc, we currently assume that we are using
9580 # Microsoft Visual C++ or Intel C++ Compiler.
9581 if test yes != "$GCC"; then
9582 with_gnu_ld=no
9583 fi
9584 ;;
9585 interix*)
9586 # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
9587 with_gnu_ld=yes
9588 ;;
9589 openbsd* | bitrig*)
9590 with_gnu_ld=no
9591 ;;
9592 esac
9593
9594 ld_shlibs=yes
9595
9596 # On some targets, GNU ld is compatible enough with the native linker
9597 # that we're better off using the native interface for both.
9598 lt_use_gnu_ld_interface=no
9599 if test yes = "$with_gnu_ld"; then
9600 case $host_os in
9601 aix*)
9602 # The AIX port of GNU ld has always aspired to compatibility
9603 # with the native linker. However, as the warning in the GNU ld
9604 # block says, versions before 2.19.5* couldn't really create working
9605 # shared libraries, regardless of the interface used.
9606 case `$LD -v 2>&1` in
9607 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9608 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9609 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9610 *)
9611 lt_use_gnu_ld_interface=yes
9612 ;;
9613 esac
9614 ;;
9615 *)
9616 lt_use_gnu_ld_interface=yes
9617 ;;
9618 esac
9619 fi
9620
9621 if test yes = "$lt_use_gnu_ld_interface"; then
9622 # If archive_cmds runs LD, not CC, wlarc should be empty
9623 wlarc='$wl'
9624
9625 # Set some defaults for GNU ld with shared library support. These
9626 # are reset later if shared libraries are not supported. Putting them
9627 # here allows them to be overridden if necessary.
9628 runpath_var=LD_RUN_PATH
9629 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9630 export_dynamic_flag_spec='$wl--export-dynamic'
9631 # ancient GNU ld didn't support --whole-archive et. al.
9632 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9633 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9634 else
9635 whole_archive_flag_spec=
9636 fi
9637 supports_anon_versioning=no
9638 case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
9639 *GNU\ gold*) supports_anon_versioning=yes ;;
9640 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9641 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9642 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9643 *\ 2.11.*) ;; # other 2.11 versions
9644 *) supports_anon_versioning=yes ;;
9645 esac
9646
9647 # See if GNU ld supports shared libraries.
9648 case $host_os in
9649 aix[3-9]*)
9650 # On AIX/PPC, the GNU linker is very broken
9651 if test ia64 != "$host_cpu"; then
9652 ld_shlibs=no
9653 cat <<_LT_EOF 1>&2
9654
9655 *** Warning: the GNU linker, at least up to release 2.19, is reported
9656 *** to be unable to reliably create shared libraries on AIX.
9657 *** Therefore, libtool is disabling shared libraries support. If you
9658 *** really care for shared libraries, you may want to install binutils
9659 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9660 *** You will then need to restart the configuration process.
9661
9662 _LT_EOF
9663 fi
9664 ;;
9665
9666 amigaos*)
9667 case $host_cpu in
9668 powerpc)
9669 # see comment about AmigaOS4 .so support
9670 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9671 archive_expsym_cmds=''
9672 ;;
9673 m68k)
9674 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)'
9675 hardcode_libdir_flag_spec='-L$libdir'
9676 hardcode_minus_L=yes
9677 ;;
9678 esac
9679 ;;
9680
9681 beos*)
9682 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9683 allow_undefined_flag=unsupported
9684 # Joseph Beckenbach <[email protected]> says some releases of gcc
9685 # support --undefined. This deserves some investigation. FIXME
9686 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9687 else
9688 ld_shlibs=no
9689 fi
9690 ;;
9691
9692 cygwin* | mingw* | pw32* | cegcc*)
9693 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9694 # as there is no search path for DLLs.
9695 hardcode_libdir_flag_spec='-L$libdir'
9696 export_dynamic_flag_spec='$wl--export-all-symbols'
9697 allow_undefined_flag=unsupported
9698 always_export_symbols=no
9699 enable_shared_with_static_runtimes=yes
9700 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'
9701 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9702
9703 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9704 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9705 # If the export-symbols file already is a .def file, use it as
9706 # is; otherwise, prepend EXPORTS...
9707 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9708 cp $export_symbols $output_objdir/$soname.def;
9709 else
9710 echo EXPORTS > $output_objdir/$soname.def;
9711 cat $export_symbols >> $output_objdir/$soname.def;
9712 fi~
9713 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9714 else
9715 ld_shlibs=no
9716 fi
9717 ;;
9718
9719 haiku*)
9720 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9721 link_all_deplibs=yes
9722 ;;
9723
9724 os2*)
9725 hardcode_libdir_flag_spec='-L$libdir'
9726 hardcode_minus_L=yes
9727 allow_undefined_flag=unsupported
9728 shrext_cmds=.dll
9729 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9730 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9731 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9732 $ECHO EXPORTS >> $output_objdir/$libname.def~
9733 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9734 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9735 emximp -o $lib $output_objdir/$libname.def'
9736 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9737 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9738 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9739 $ECHO EXPORTS >> $output_objdir/$libname.def~
9740 prefix_cmds="$SED"~
9741 if test EXPORTS = "`$SED 1q $export_symbols`"; then
9742 prefix_cmds="$prefix_cmds -e 1d";
9743 fi~
9744 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9745 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9746 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9747 emximp -o $lib $output_objdir/$libname.def'
9748 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9749 enable_shared_with_static_runtimes=yes
9750 file_list_spec='@'
9751 ;;
9752
9753 interix[3-9]*)
9754 hardcode_direct=no
9755 hardcode_shlibpath_var=no
9756 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9757 export_dynamic_flag_spec='$wl-E'
9758 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9759 # Instead, shared libraries are loaded at an image base (0x10000000 by
9760 # default) and relocated if they conflict, which is a slow very memory
9761 # consuming and fragmenting process. To avoid this, we pick a random,
9762 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9763 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9764 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9765 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'
9766 ;;
9767
9768 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9769 tmp_diet=no
9770 if test linux-dietlibc = "$host_os"; then
9771 case $cc_basename in
9772 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9773 esac
9774 fi
9775 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9776 && test no = "$tmp_diet"
9777 then
9778 tmp_addflag=' $pic_flag'
9779 tmp_sharedflag='-shared'
9780 case $cc_basename,$host_cpu in
9781 pgcc*) # Portland Group C compiler
9782 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'
9783 tmp_addflag=' $pic_flag'
9784 ;;
9785 pgf77* | pgf90* | pgf95* | pgfortran*)
9786 # Portland Group f77 and f90 compilers
9787 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'
9788 tmp_addflag=' $pic_flag -Mnomain' ;;
9789 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9790 tmp_addflag=' -i_dynamic' ;;
9791 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9792 tmp_addflag=' -i_dynamic -nofor_main' ;;
9793 ifc* | ifort*) # Intel Fortran compiler
9794 tmp_addflag=' -nofor_main' ;;
9795 lf95*) # Lahey Fortran 8.1
9796 whole_archive_flag_spec=
9797 tmp_sharedflag='--shared' ;;
9798 nagfor*) # NAGFOR 5.3
9799 tmp_sharedflag='-Wl,-shared' ;;
9800 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9801 tmp_sharedflag='-qmkshrobj'
9802 tmp_addflag= ;;
9803 nvcc*) # Cuda Compiler Driver 2.2
9804 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'
9805 compiler_needs_object=yes
9806 ;;
9807 esac
9808 case `$CC -V 2>&1 | $SED 5q` in
9809 *Sun\ C*) # Sun C 5.9
9810 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'
9811 compiler_needs_object=yes
9812 tmp_sharedflag='-G' ;;
9813 *Sun\ F*) # Sun Fortran 8.3
9814 tmp_sharedflag='-G' ;;
9815 esac
9816 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9817
9818 if test yes = "$supports_anon_versioning"; then
9819 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9820 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9821 echo "local: *; };" >> $output_objdir/$libname.ver~
9822 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
9823 fi
9824
9825 case $cc_basename in
9826 tcc*)
9827 export_dynamic_flag_spec='-rdynamic'
9828 ;;
9829 xlf* | bgf* | bgxlf* | mpixlf*)
9830 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9831 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9832 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9833 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9834 if test yes = "$supports_anon_versioning"; then
9835 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9836 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9837 echo "local: *; };" >> $output_objdir/$libname.ver~
9838 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9839 fi
9840 ;;
9841 esac
9842 else
9843 ld_shlibs=no
9844 fi
9845 ;;
9846
9847 netbsd*)
9848 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9849 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9850 wlarc=
9851 else
9852 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9853 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9854 fi
9855 ;;
9856
9857 solaris*)
9858 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9859 ld_shlibs=no
9860 cat <<_LT_EOF 1>&2
9861
9862 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9863 *** create shared libraries on Solaris systems. Therefore, libtool
9864 *** is disabling shared libraries support. We urge you to upgrade GNU
9865 *** binutils to release 2.9.1 or newer. Another option is to modify
9866 *** your PATH or compiler configuration so that the native linker is
9867 *** used, and then restart.
9868
9869 _LT_EOF
9870 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9871 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9872 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9873 else
9874 ld_shlibs=no
9875 fi
9876 ;;
9877
9878 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9879 case `$LD -v 2>&1` in
9880 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9881 ld_shlibs=no
9882 cat <<_LT_EOF 1>&2
9883
9884 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
9885 *** reliably create shared libraries on SCO systems. Therefore, libtool
9886 *** is disabling shared libraries support. We urge you to upgrade GNU
9887 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9888 *** your PATH or compiler configuration so that the native linker is
9889 *** used, and then restart.
9890
9891 _LT_EOF
9892 ;;
9893 *)
9894 # For security reasons, it is highly recommended that you always
9895 # use absolute paths for naming shared libraries, and exclude the
9896 # DT_RUNPATH tag from executables and libraries. But doing so
9897 # requires that you compile everything twice, which is a pain.
9898 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9899 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9900 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9901 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9902 else
9903 ld_shlibs=no
9904 fi
9905 ;;
9906 esac
9907 ;;
9908
9909 sunos4*)
9910 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9911 wlarc=
9912 hardcode_direct=yes
9913 hardcode_shlibpath_var=no
9914 ;;
9915
9916 *)
9917 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9918 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9919 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9920 else
9921 ld_shlibs=no
9922 fi
9923 ;;
9924 esac
9925
9926 if test no = "$ld_shlibs"; then
9927 runpath_var=
9928 hardcode_libdir_flag_spec=
9929 export_dynamic_flag_spec=
9930 whole_archive_flag_spec=
9931 fi
9932 else
9933 # PORTME fill in a description of your system's linker (not GNU ld)
9934 case $host_os in
9935 aix3*)
9936 allow_undefined_flag=unsupported
9937 always_export_symbols=yes
9938 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'
9939 # Note: this linker hardcodes the directories in LIBPATH if there
9940 # are no directories specified by -L.
9941 hardcode_minus_L=yes
9942 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
9943 # Neither direct hardcoding nor static linking is supported with a
9944 # broken collect2.
9945 hardcode_direct=unsupported
9946 fi
9947 ;;
9948
9949 aix[4-9]*)
9950 if test ia64 = "$host_cpu"; then
9951 # On IA64, the linker does run time linking by default, so we don't
9952 # have to do anything special.
9953 aix_use_runtimelinking=no
9954 exp_sym_flag='-Bexport'
9955 no_entry_flag=
9956 else
9957 # If we're using GNU nm, then we don't want the "-C" option.
9958 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
9959 # Without the "-l" option, or with the "-B" option, AIX nm treats
9960 # weak defined symbols like other global defined symbols, whereas
9961 # GNU nm marks them as "W".
9962 # While the 'weak' keyword is ignored in the Export File, we need
9963 # it in the Import File for the 'aix-soname' feature, so we have
9964 # to replace the "-B" option with "-P" for AIX nm.
9965 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9966 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'
9967 else
9968 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 == "L") || (\$ 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'
9969 fi
9970 aix_use_runtimelinking=no
9971
9972 # Test if we are trying to use run time linking or normal
9973 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9974 # have runtime linking enabled, and use it for executables.
9975 # For shared libraries, we enable/disable runtime linking
9976 # depending on the kind of the shared library created -
9977 # when "with_aix_soname,aix_use_runtimelinking" is:
9978 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
9979 # "aix,yes" lib.so shared, rtl:yes, for executables
9980 # lib.a static archive
9981 # "both,no" lib.so.V(shr.o) shared, rtl:yes
9982 # lib.a(lib.so.V) shared, rtl:no, for executables
9983 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
9984 # lib.a(lib.so.V) shared, rtl:no
9985 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
9986 # lib.a static archive
9987 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9988 for ld_flag in $LDFLAGS; do
9989 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
9990 aix_use_runtimelinking=yes
9991 break
9992 fi
9993 done
9994 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
9995 # With aix-soname=svr4, we create the lib.so.V shared archives only,
9996 # so we don't have lib.a shared libs to link our executables.
9997 # We have to force runtime linking in this case.
9998 aix_use_runtimelinking=yes
9999 LDFLAGS="$LDFLAGS -Wl,-brtl"
10000 fi
10001 ;;
10002 esac
10003
10004 exp_sym_flag='-bexport'
10005 no_entry_flag='-bnoentry'
10006 fi
10007
10008 # When large executables or shared objects are built, AIX ld can
10009 # have problems creating the table of contents. If linking a library
10010 # or program results in "error TOC overflow" add -mminimal-toc to
10011 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10012 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10013
10014 archive_cmds=''
10015 hardcode_direct=yes
10016 hardcode_direct_absolute=yes
10017 hardcode_libdir_separator=':'
10018 link_all_deplibs=yes
10019 file_list_spec='$wl-f,'
10020 case $with_aix_soname,$aix_use_runtimelinking in
10021 aix,*) ;; # traditional, no import file
10022 svr4,* | *,yes) # use import file
10023 # The Import File defines what to hardcode.
10024 hardcode_direct=no
10025 hardcode_direct_absolute=no
10026 ;;
10027 esac
10028
10029 if test yes = "$GCC"; then
10030 case $host_os in aix4.[012]|aix4.[012].*)
10031 # We only want to do this on AIX 4.2 and lower, the check
10032 # below for broken collect2 doesn't work under 4.3+
10033 collect2name=`$CC -print-prog-name=collect2`
10034 if test -f "$collect2name" &&
10035 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10036 then
10037 # We have reworked collect2
10038 :
10039 else
10040 # We have old collect2
10041 hardcode_direct=unsupported
10042 # It fails to find uninstalled libraries when the uninstalled
10043 # path is not listed in the libpath. Setting hardcode_minus_L
10044 # to unsupported forces relinking
10045 hardcode_minus_L=yes
10046 hardcode_libdir_flag_spec='-L$libdir'
10047 hardcode_libdir_separator=
10048 fi
10049 ;;
10050 esac
10051 shared_flag='-shared'
10052 if test yes = "$aix_use_runtimelinking"; then
10053 shared_flag="$shared_flag "'$wl-G'
10054 fi
10055 # Need to ensure runtime linking is disabled for the traditional
10056 # shared library, or the linker may eventually find shared libraries
10057 # /with/ Import File - we do not want to mix them.
10058 shared_flag_aix='-shared'
10059 shared_flag_svr4='-shared $wl-G'
10060 else
10061 # not using gcc
10062 if test ia64 = "$host_cpu"; then
10063 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10064 # chokes on -Wl,-G. The following line is correct:
10065 shared_flag='-G'
10066 else
10067 if test yes = "$aix_use_runtimelinking"; then
10068 shared_flag='$wl-G'
10069 else
10070 shared_flag='$wl-bM:SRE'
10071 fi
10072 shared_flag_aix='$wl-bM:SRE'
10073 shared_flag_svr4='$wl-G'
10074 fi
10075 fi
10076
10077 export_dynamic_flag_spec='$wl-bexpall'
10078 # It seems that -bexpall does not export symbols beginning with
10079 # underscore (_), so it is better to generate a list of symbols to export.
10080 always_export_symbols=yes
10081 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
10082 # Warning - without using the other runtime loading flags (-brtl),
10083 # -berok will link without error, but may produce a broken library.
10084 allow_undefined_flag='-berok'
10085 # Determine the default libpath from the value encoded in an
10086 # empty executable.
10087 if test set = "${lt_cv_aix_libpath+set}"; then
10088 aix_libpath=$lt_cv_aix_libpath
10089 else
10090 if test ${lt_cv_aix_libpath_+y}
10091 then :
10092 printf %s "(cached) " >&6
10093 else $as_nop
10094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10095 /* end confdefs.h. */
10096
10097 int
10098 main (void)
10099 {
10100
10101 ;
10102 return 0;
10103 }
10104 _ACEOF
10105 if ac_fn_c_try_link "$LINENO"
10106 then :
10107
10108 lt_aix_libpath_sed='
10109 /Import File Strings/,/^$/ {
10110 /^0/ {
10111 s/^0 *\([^ ]*\) *$/\1/
10112 p
10113 }
10114 }'
10115 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10116 # Check for a 64-bit object if we didn't find anything.
10117 if test -z "$lt_cv_aix_libpath_"; then
10118 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10119 fi
10120 fi
10121 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10122 conftest$ac_exeext conftest.$ac_ext
10123 if test -z "$lt_cv_aix_libpath_"; then
10124 lt_cv_aix_libpath_=/usr/lib:/lib
10125 fi
10126
10127 fi
10128
10129 aix_libpath=$lt_cv_aix_libpath_
10130 fi
10131
10132 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10133 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
10134 else
10135 if test ia64 = "$host_cpu"; then
10136 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
10137 allow_undefined_flag="-z nodefs"
10138 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"
10139 else
10140 # Determine the default libpath from the value encoded in an
10141 # empty executable.
10142 if test set = "${lt_cv_aix_libpath+set}"; then
10143 aix_libpath=$lt_cv_aix_libpath
10144 else
10145 if test ${lt_cv_aix_libpath_+y}
10146 then :
10147 printf %s "(cached) " >&6
10148 else $as_nop
10149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10150 /* end confdefs.h. */
10151
10152 int
10153 main (void)
10154 {
10155
10156 ;
10157 return 0;
10158 }
10159 _ACEOF
10160 if ac_fn_c_try_link "$LINENO"
10161 then :
10162
10163 lt_aix_libpath_sed='
10164 /Import File Strings/,/^$/ {
10165 /^0/ {
10166 s/^0 *\([^ ]*\) *$/\1/
10167 p
10168 }
10169 }'
10170 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10171 # Check for a 64-bit object if we didn't find anything.
10172 if test -z "$lt_cv_aix_libpath_"; then
10173 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10174 fi
10175 fi
10176 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10177 conftest$ac_exeext conftest.$ac_ext
10178 if test -z "$lt_cv_aix_libpath_"; then
10179 lt_cv_aix_libpath_=/usr/lib:/lib
10180 fi
10181
10182 fi
10183
10184 aix_libpath=$lt_cv_aix_libpath_
10185 fi
10186
10187 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10188 # Warning - without using the other run time loading flags,
10189 # -berok will link without error, but may produce a broken library.
10190 no_undefined_flag=' $wl-bernotok'
10191 allow_undefined_flag=' $wl-berok'
10192 if test yes = "$with_gnu_ld"; then
10193 # We only use this code for GNU lds that support --whole-archive.
10194 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
10195 else
10196 # Exported symbols can be pulled into shared objects from archives
10197 whole_archive_flag_spec='$convenience'
10198 fi
10199 archive_cmds_need_lc=yes
10200 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10201 # -brtl affects multiple linker settings, -berok does not and is overridden later
10202 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10203 if test svr4 != "$with_aix_soname"; then
10204 # This is similar to how AIX traditionally builds its shared libraries.
10205 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'
10206 fi
10207 if test aix != "$with_aix_soname"; then
10208 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'
10209 else
10210 # used by -dlpreopen to get the symbols
10211 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
10212 fi
10213 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
10214 fi
10215 fi
10216 ;;
10217
10218 amigaos*)
10219 case $host_cpu in
10220 powerpc)
10221 # see comment about AmigaOS4 .so support
10222 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10223 archive_expsym_cmds=''
10224 ;;
10225 m68k)
10226 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)'
10227 hardcode_libdir_flag_spec='-L$libdir'
10228 hardcode_minus_L=yes
10229 ;;
10230 esac
10231 ;;
10232
10233 bsdi[45]*)
10234 export_dynamic_flag_spec=-rdynamic
10235 ;;
10236
10237 cygwin* | mingw* | pw32* | cegcc*)
10238 # When not using gcc, we currently assume that we are using
10239 # Microsoft Visual C++ or Intel C++ Compiler.
10240 # hardcode_libdir_flag_spec is actually meaningless, as there is
10241 # no search path for DLLs.
10242 case $cc_basename in
10243 cl* | icl*)
10244 # Native MSVC or ICC
10245 hardcode_libdir_flag_spec=' '
10246 allow_undefined_flag=unsupported
10247 always_export_symbols=yes
10248 file_list_spec='@'
10249 # Tell ltmain to make .lib files, not .a files.
10250 libext=lib
10251 # Tell ltmain to make .dll files, not .so files.
10252 shrext_cmds=.dll
10253 # FIXME: Setting linknames here is a bad hack.
10254 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10255 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10256 cp "$export_symbols" "$output_objdir/$soname.def";
10257 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
10258 else
10259 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
10260 fi~
10261 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10262 linknames='
10263 # The linker will not automatically build a static lib if we build a DLL.
10264 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10265 enable_shared_with_static_runtimes=yes
10266 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10267 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10268 # Don't use ranlib
10269 old_postinstall_cmds='chmod 644 $oldlib'
10270 postlink_cmds='lt_outputfile="@OUTPUT@"~
10271 lt_tool_outputfile="@TOOL_OUTPUT@"~
10272 case $lt_outputfile in
10273 *.exe|*.EXE) ;;
10274 *)
10275 lt_outputfile=$lt_outputfile.exe
10276 lt_tool_outputfile=$lt_tool_outputfile.exe
10277 ;;
10278 esac~
10279 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
10280 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10281 $RM "$lt_outputfile.manifest";
10282 fi'
10283 ;;
10284 *)
10285 # Assume MSVC and ICC wrapper
10286 hardcode_libdir_flag_spec=' '
10287 allow_undefined_flag=unsupported
10288 # Tell ltmain to make .lib files, not .a files.
10289 libext=lib
10290 # Tell ltmain to make .dll files, not .so files.
10291 shrext_cmds=.dll
10292 # FIXME: Setting linknames here is a bad hack.
10293 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10294 # The linker will automatically build a .lib file if we build a DLL.
10295 old_archive_from_new_cmds='true'
10296 # FIXME: Should let the user specify the lib program.
10297 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10298 enable_shared_with_static_runtimes=yes
10299 ;;
10300 esac
10301 ;;
10302
10303 darwin* | rhapsody*)
10304
10305
10306 archive_cmds_need_lc=no
10307 hardcode_direct=no
10308 hardcode_automatic=yes
10309 hardcode_shlibpath_var=unsupported
10310 if test yes = "$lt_cv_ld_force_load"; then
10311 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\"`'
10312
10313 else
10314 whole_archive_flag_spec=''
10315 fi
10316 link_all_deplibs=yes
10317 allow_undefined_flag=$_lt_dar_allow_undefined
10318 case $cc_basename in
10319 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
10320 *) _lt_dar_can_shared=$GCC ;;
10321 esac
10322 if test yes = "$_lt_dar_can_shared"; then
10323 output_verbose_link_cmd=func_echo_all
10324 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10325 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10326 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"
10327 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"
10328
10329 else
10330 ld_shlibs=no
10331 fi
10332
10333 ;;
10334
10335 dgux*)
10336 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10337 hardcode_libdir_flag_spec='-L$libdir'
10338 hardcode_shlibpath_var=no
10339 ;;
10340
10341 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10342 # support. Future versions do this automatically, but an explicit c++rt0.o
10343 # does not break anything, and helps significantly (at the cost of a little
10344 # extra space).
10345 freebsd2.2*)
10346 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10347 hardcode_libdir_flag_spec='-R$libdir'
10348 hardcode_direct=yes
10349 hardcode_shlibpath_var=no
10350 ;;
10351
10352 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10353 freebsd2.*)
10354 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10355 hardcode_direct=yes
10356 hardcode_minus_L=yes
10357 hardcode_shlibpath_var=no
10358 ;;
10359
10360 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10361 freebsd* | dragonfly* | midnightbsd*)
10362 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10363 hardcode_libdir_flag_spec='-R$libdir'
10364 hardcode_direct=yes
10365 hardcode_shlibpath_var=no
10366 ;;
10367
10368 hpux9*)
10369 if test yes = "$GCC"; then
10370 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'
10371 else
10372 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'
10373 fi
10374 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10375 hardcode_libdir_separator=:
10376 hardcode_direct=yes
10377
10378 # hardcode_minus_L: Not really in the search PATH,
10379 # but as the default location of the library.
10380 hardcode_minus_L=yes
10381 export_dynamic_flag_spec='$wl-E'
10382 ;;
10383
10384 hpux10*)
10385 if test yes,no = "$GCC,$with_gnu_ld"; then
10386 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10387 else
10388 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10389 fi
10390 if test no = "$with_gnu_ld"; then
10391 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10392 hardcode_libdir_separator=:
10393 hardcode_direct=yes
10394 hardcode_direct_absolute=yes
10395 export_dynamic_flag_spec='$wl-E'
10396 # hardcode_minus_L: Not really in the search PATH,
10397 # but as the default location of the library.
10398 hardcode_minus_L=yes
10399 fi
10400 ;;
10401
10402 hpux11*)
10403 if test yes,no = "$GCC,$with_gnu_ld"; then
10404 case $host_cpu in
10405 hppa*64*)
10406 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10407 ;;
10408 ia64*)
10409 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10410 ;;
10411 *)
10412 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10413 ;;
10414 esac
10415 else
10416 case $host_cpu in
10417 hppa*64*)
10418 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10419 ;;
10420 ia64*)
10421 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10422 ;;
10423 *)
10424
10425 # Older versions of the 11.00 compiler do not understand -b yet
10426 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10427 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10428 printf %s "checking if $CC understands -b... " >&6; }
10429 if test ${lt_cv_prog_compiler__b+y}
10430 then :
10431 printf %s "(cached) " >&6
10432 else $as_nop
10433 lt_cv_prog_compiler__b=no
10434 save_LDFLAGS=$LDFLAGS
10435 LDFLAGS="$LDFLAGS -b"
10436 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10437 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10438 # The linker can only warn and ignore the option if not recognized
10439 # So say no if there are warnings
10440 if test -s conftest.err; then
10441 # Append any errors to the config.log.
10442 cat conftest.err 1>&5
10443 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10444 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10445 if diff conftest.exp conftest.er2 >/dev/null; then
10446 lt_cv_prog_compiler__b=yes
10447 fi
10448 else
10449 lt_cv_prog_compiler__b=yes
10450 fi
10451 fi
10452 $RM -r conftest*
10453 LDFLAGS=$save_LDFLAGS
10454
10455 fi
10456 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10457 printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
10458
10459 if test yes = "$lt_cv_prog_compiler__b"; then
10460 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10461 else
10462 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10463 fi
10464
10465 ;;
10466 esac
10467 fi
10468 if test no = "$with_gnu_ld"; then
10469 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10470 hardcode_libdir_separator=:
10471
10472 case $host_cpu in
10473 hppa*64*|ia64*)
10474 hardcode_direct=no
10475 hardcode_shlibpath_var=no
10476 ;;
10477 *)
10478 hardcode_direct=yes
10479 hardcode_direct_absolute=yes
10480 export_dynamic_flag_spec='$wl-E'
10481
10482 # hardcode_minus_L: Not really in the search PATH,
10483 # but as the default location of the library.
10484 hardcode_minus_L=yes
10485 ;;
10486 esac
10487 fi
10488 ;;
10489
10490 irix5* | irix6* | nonstopux*)
10491 if test yes = "$GCC"; then
10492 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'
10493 # Try to use the -exported_symbol ld option, if it does not
10494 # work, assume that -exports_file does not work either and
10495 # implicitly export all symbols.
10496 # This should be the same for all languages, so no per-tag cache variable.
10497 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10498 printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10499 if test ${lt_cv_irix_exported_symbol+y}
10500 then :
10501 printf %s "(cached) " >&6
10502 else $as_nop
10503 save_LDFLAGS=$LDFLAGS
10504 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
10505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10506 /* end confdefs.h. */
10507 int foo (void) { return 0; }
10508 _ACEOF
10509 if ac_fn_c_try_link "$LINENO"
10510 then :
10511 lt_cv_irix_exported_symbol=yes
10512 else $as_nop
10513 lt_cv_irix_exported_symbol=no
10514 fi
10515 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10516 conftest$ac_exeext conftest.$ac_ext
10517 LDFLAGS=$save_LDFLAGS
10518 fi
10519 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10520 printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
10521 if test yes = "$lt_cv_irix_exported_symbol"; then
10522 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'
10523 fi
10524 else
10525 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'
10526 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'
10527 fi
10528 archive_cmds_need_lc='no'
10529 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10530 hardcode_libdir_separator=:
10531 inherit_rpath=yes
10532 link_all_deplibs=yes
10533 ;;
10534
10535 linux*)
10536 case $cc_basename in
10537 tcc*)
10538 # Fabrice Bellard et al's Tiny C Compiler
10539 ld_shlibs=yes
10540 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10541 ;;
10542 esac
10543 ;;
10544
10545 netbsd*)
10546 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10547 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10548 else
10549 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10550 fi
10551 hardcode_libdir_flag_spec='-R$libdir'
10552 hardcode_direct=yes
10553 hardcode_shlibpath_var=no
10554 ;;
10555
10556 newsos6)
10557 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10558 hardcode_direct=yes
10559 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10560 hardcode_libdir_separator=:
10561 hardcode_shlibpath_var=no
10562 ;;
10563
10564 *nto* | *qnx*)
10565 ;;
10566
10567 openbsd* | bitrig*)
10568 if test -f /usr/libexec/ld.so; then
10569 hardcode_direct=yes
10570 hardcode_shlibpath_var=no
10571 hardcode_direct_absolute=yes
10572 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10573 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10574 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10575 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10576 export_dynamic_flag_spec='$wl-E'
10577 else
10578 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10579 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10580 fi
10581 else
10582 ld_shlibs=no
10583 fi
10584 ;;
10585
10586 os2*)
10587 hardcode_libdir_flag_spec='-L$libdir'
10588 hardcode_minus_L=yes
10589 allow_undefined_flag=unsupported
10590 shrext_cmds=.dll
10591 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10592 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10593 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10594 $ECHO EXPORTS >> $output_objdir/$libname.def~
10595 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10596 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10597 emximp -o $lib $output_objdir/$libname.def'
10598 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10599 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10600 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10601 $ECHO EXPORTS >> $output_objdir/$libname.def~
10602 prefix_cmds="$SED"~
10603 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10604 prefix_cmds="$prefix_cmds -e 1d";
10605 fi~
10606 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10607 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10608 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10609 emximp -o $lib $output_objdir/$libname.def'
10610 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10611 enable_shared_with_static_runtimes=yes
10612 file_list_spec='@'
10613 ;;
10614
10615 osf3*)
10616 if test yes = "$GCC"; then
10617 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10618 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'
10619 else
10620 allow_undefined_flag=' -expect_unresolved \*'
10621 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'
10622 fi
10623 archive_cmds_need_lc='no'
10624 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10625 hardcode_libdir_separator=:
10626 ;;
10627
10628 osf4* | osf5*) # as osf3* with the addition of -msym flag
10629 if test yes = "$GCC"; then
10630 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10631 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'
10632 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10633 else
10634 allow_undefined_flag=' -expect_unresolved \*'
10635 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'
10636 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~
10637 $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'
10638
10639 # Both c and cxx compiler support -rpath directly
10640 hardcode_libdir_flag_spec='-rpath $libdir'
10641 fi
10642 archive_cmds_need_lc='no'
10643 hardcode_libdir_separator=:
10644 ;;
10645
10646 solaris*)
10647 no_undefined_flag=' -z defs'
10648 if test yes = "$GCC"; then
10649 wlarc='$wl'
10650 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10651 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10652 $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'
10653 else
10654 case `$CC -V 2>&1` in
10655 *"Compilers 5.0"*)
10656 wlarc=''
10657 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10658 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10659 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10660 ;;
10661 *)
10662 wlarc='$wl'
10663 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10664 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10665 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10666 ;;
10667 esac
10668 fi
10669 hardcode_libdir_flag_spec='-R$libdir'
10670 hardcode_shlibpath_var=no
10671 case $host_os in
10672 solaris2.[0-5] | solaris2.[0-5].*) ;;
10673 *)
10674 # The compiler driver will combine and reorder linker options,
10675 # but understands '-z linker_flag'. GCC discards it without '$wl',
10676 # but is careful enough not to reorder.
10677 # Supported since Solaris 2.6 (maybe 2.5.1?)
10678 if test yes = "$GCC"; then
10679 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10680 else
10681 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10682 fi
10683 ;;
10684 esac
10685 link_all_deplibs=yes
10686 ;;
10687
10688 sunos4*)
10689 if test sequent = "$host_vendor"; then
10690 # Use $CC to link under sequent, because it throws in some extra .o
10691 # files that make .init and .fini sections work.
10692 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10693 else
10694 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10695 fi
10696 hardcode_libdir_flag_spec='-L$libdir'
10697 hardcode_direct=yes
10698 hardcode_minus_L=yes
10699 hardcode_shlibpath_var=no
10700 ;;
10701
10702 sysv4)
10703 case $host_vendor in
10704 sni)
10705 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10706 hardcode_direct=yes # is this really true???
10707 ;;
10708 siemens)
10709 ## LD is ld it makes a PLAMLIB
10710 ## CC just makes a GrossModule.
10711 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10712 reload_cmds='$CC -r -o $output$reload_objs'
10713 hardcode_direct=no
10714 ;;
10715 motorola)
10716 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10717 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10718 ;;
10719 esac
10720 runpath_var='LD_RUN_PATH'
10721 hardcode_shlibpath_var=no
10722 ;;
10723
10724 sysv4.3*)
10725 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10726 hardcode_shlibpath_var=no
10727 export_dynamic_flag_spec='-Bexport'
10728 ;;
10729
10730 sysv4*MP*)
10731 if test -d /usr/nec; then
10732 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10733 hardcode_shlibpath_var=no
10734 runpath_var=LD_RUN_PATH
10735 hardcode_runpath_var=yes
10736 ld_shlibs=yes
10737 fi
10738 ;;
10739
10740 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10741 no_undefined_flag='$wl-z,text'
10742 archive_cmds_need_lc=no
10743 hardcode_shlibpath_var=no
10744 runpath_var='LD_RUN_PATH'
10745
10746 if test yes = "$GCC"; then
10747 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10748 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10749 else
10750 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10751 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10752 fi
10753 ;;
10754
10755 sysv5* | sco3.2v5* | sco5v6*)
10756 # Note: We CANNOT use -z defs as we might desire, because we do not
10757 # link with -lc, and that would cause any symbols used from libc to
10758 # always be unresolved, which means just about no library would
10759 # ever link correctly. If we're not using GNU ld we use -z text
10760 # though, which does catch some bad symbols but isn't as heavy-handed
10761 # as -z defs.
10762 no_undefined_flag='$wl-z,text'
10763 allow_undefined_flag='$wl-z,nodefs'
10764 archive_cmds_need_lc=no
10765 hardcode_shlibpath_var=no
10766 hardcode_libdir_flag_spec='$wl-R,$libdir'
10767 hardcode_libdir_separator=':'
10768 link_all_deplibs=yes
10769 export_dynamic_flag_spec='$wl-Bexport'
10770 runpath_var='LD_RUN_PATH'
10771
10772 if test yes = "$GCC"; then
10773 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10774 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10775 else
10776 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10777 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10778 fi
10779 ;;
10780
10781 uts4*)
10782 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10783 hardcode_libdir_flag_spec='-L$libdir'
10784 hardcode_shlibpath_var=no
10785 ;;
10786
10787 *)
10788 ld_shlibs=no
10789 ;;
10790 esac
10791
10792 if test sni = "$host_vendor"; then
10793 case $host in
10794 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10795 export_dynamic_flag_spec='$wl-Blargedynsym'
10796 ;;
10797 esac
10798 fi
10799 fi
10800
10801 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10802 printf "%s\n" "$ld_shlibs" >&6; }
10803 test no = "$ld_shlibs" && can_build_shared=no
10804
10805 with_gnu_ld=$with_gnu_ld
10806
10807
10808
10809
10810
10811
10812
10813
10814
10815
10816
10817
10818
10819
10820
10821 #
10822 # Do we need to explicitly link libc?
10823 #
10824 case "x$archive_cmds_need_lc" in
10825 x|xyes)
10826 # Assume -lc should be added
10827 archive_cmds_need_lc=yes
10828
10829 if test yes,yes = "$GCC,$enable_shared"; then
10830 case $archive_cmds in
10831 *'~'*)
10832 # FIXME: we may have to deal with multi-command sequences.
10833 ;;
10834 '$CC '*)
10835 # Test whether the compiler implicitly links with -lc since on some
10836 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10837 # to ld, don't add -lc before -lgcc.
10838 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10839 printf %s "checking whether -lc should be explicitly linked in... " >&6; }
10840 if test ${lt_cv_archive_cmds_need_lc+y}
10841 then :
10842 printf %s "(cached) " >&6
10843 else $as_nop
10844 $RM conftest*
10845 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10846
10847 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10848 (eval $ac_compile) 2>&5
10849 ac_status=$?
10850 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10851 test $ac_status = 0; } 2>conftest.err; then
10852 soname=conftest
10853 lib=conftest
10854 libobjs=conftest.$ac_objext
10855 deplibs=
10856 wl=$lt_prog_compiler_wl
10857 pic_flag=$lt_prog_compiler_pic
10858 compiler_flags=-v
10859 linker_flags=-v
10860 verstring=
10861 output_objdir=.
10862 libname=conftest
10863 lt_save_allow_undefined_flag=$allow_undefined_flag
10864 allow_undefined_flag=
10865 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10866 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10867 ac_status=$?
10868 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10869 test $ac_status = 0; }
10870 then
10871 lt_cv_archive_cmds_need_lc=no
10872 else
10873 lt_cv_archive_cmds_need_lc=yes
10874 fi
10875 allow_undefined_flag=$lt_save_allow_undefined_flag
10876 else
10877 cat conftest.err 1>&5
10878 fi
10879 $RM conftest*
10880
10881 fi
10882 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10883 printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
10884 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10885 ;;
10886 esac
10887 fi
10888 ;;
10889 esac
10890
10891
10892
10893
10894
10895
10896
10897
10898
10899
10900
10901
10902
10903
10904
10905
10906
10907
10908
10909
10910
10911
10912
10913
10914
10915
10916
10917
10918
10919
10920
10921
10922
10923
10924
10925
10926
10927
10928
10929
10930
10931
10932
10933
10934
10935
10936
10937
10938
10939
10940
10941
10942
10943
10944
10945
10946
10947
10948
10949
10950
10951
10952
10953
10954
10955
10956
10957
10958
10959
10960
10961
10962
10963
10964
10965
10966
10967
10968
10969
10970
10971
10972
10973
10974
10975
10976
10977
10978
10979
10980
10981
10982
10983
10984
10985
10986
10987
10988
10989
10990
10991
10992
10993
10994
10995
10996
10997
10998
10999
11000
11001
11002
11003
11004
11005
11006
11007
11008
11009
11010
11011
11012
11013
11014
11015
11016
11017
11018
11019
11020
11021
11022
11023
11024
11025
11026
11027
11028
11029
11030
11031
11032
11033
11034
11035
11036
11037
11038
11039
11040
11041
11042 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11043 printf %s "checking dynamic linker characteristics... " >&6; }
11044
11045 if test yes = "$GCC"; then
11046 case $host_os in
11047 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
11048 *) lt_awk_arg='/^libraries:/' ;;
11049 esac
11050 case $host_os in
11051 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
11052 *) lt_sed_strip_eq='s|=/|/|g' ;;
11053 esac
11054 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11055 case $lt_search_path_spec in
11056 *\;*)
11057 # if the path contains ";" then we assume it to be the separator
11058 # otherwise default to the standard path separator (i.e. ":") - it is
11059 # assumed that no part of a normal pathname contains ";" but that should
11060 # okay in the real world where ";" in dirpaths is itself problematic.
11061 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11062 ;;
11063 *)
11064 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11065 ;;
11066 esac
11067 # Ok, now we have the path, separated by spaces, we can step through it
11068 # and add multilib dir if necessary...
11069 lt_tmp_lt_search_path_spec=
11070 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11071 # ...but if some path component already ends with the multilib dir we assume
11072 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
11073 case "$lt_multi_os_dir; $lt_search_path_spec " in
11074 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
11075 lt_multi_os_dir=
11076 ;;
11077 esac
11078 for lt_sys_path in $lt_search_path_spec; do
11079 if test -d "$lt_sys_path$lt_multi_os_dir"; then
11080 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
11081 elif test -n "$lt_multi_os_dir"; then
11082 test -d "$lt_sys_path" && \
11083 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11084 fi
11085 done
11086 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11087 BEGIN {RS = " "; FS = "/|\n";} {
11088 lt_foo = "";
11089 lt_count = 0;
11090 for (lt_i = NF; lt_i > 0; lt_i--) {
11091 if ($lt_i != "" && $lt_i != ".") {
11092 if ($lt_i == "..") {
11093 lt_count++;
11094 } else {
11095 if (lt_count == 0) {
11096 lt_foo = "/" $lt_i lt_foo;
11097 } else {
11098 lt_count--;
11099 }
11100 }
11101 }
11102 }
11103 if (lt_foo != "") { lt_freq[lt_foo]++; }
11104 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11105 }'`
11106 # AWK program above erroneously prepends '/' to C:/dos/paths
11107 # for these hosts.
11108 case $host_os in
11109 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11110 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
11111 esac
11112 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11113 else
11114 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11115 fi
11116 library_names_spec=
11117 libname_spec='lib$name'
11118 soname_spec=
11119 shrext_cmds=.so
11120 postinstall_cmds=
11121 postuninstall_cmds=
11122 finish_cmds=
11123 finish_eval=
11124 shlibpath_var=
11125 shlibpath_overrides_runpath=unknown
11126 version_type=none
11127 dynamic_linker="$host_os ld.so"
11128 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11129 need_lib_prefix=unknown
11130 hardcode_into_libs=no
11131
11132 # when you set need_version to no, make sure it does not cause -set_version
11133 # flags to be left without arguments
11134 need_version=unknown
11135
11136
11137
11138 case $host_os in
11139 aix3*)
11140 version_type=linux # correct to gnu/linux during the next big refactor
11141 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
11142 shlibpath_var=LIBPATH
11143
11144 # AIX 3 has no versioning support, so we append a major version to the name.
11145 soname_spec='$libname$release$shared_ext$major'
11146 ;;
11147
11148 aix[4-9]*)
11149 version_type=linux # correct to gnu/linux during the next big refactor
11150 need_lib_prefix=no
11151 need_version=no
11152 hardcode_into_libs=yes
11153 if test ia64 = "$host_cpu"; then
11154 # AIX 5 supports IA64
11155 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
11156 shlibpath_var=LD_LIBRARY_PATH
11157 else
11158 # With GCC up to 2.95.x, collect2 would create an import file
11159 # for dependence libraries. The import file would start with
11160 # the line '#! .'. This would cause the generated library to
11161 # depend on '.', always an invalid library. This was fixed in
11162 # development snapshots of GCC prior to 3.0.
11163 case $host_os in
11164 aix4 | aix4.[01] | aix4.[01].*)
11165 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11166 echo ' yes '
11167 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
11168 :
11169 else
11170 can_build_shared=no
11171 fi
11172 ;;
11173 esac
11174 # Using Import Files as archive members, it is possible to support
11175 # filename-based versioning of shared library archives on AIX. While
11176 # this would work for both with and without runtime linking, it will
11177 # prevent static linking of such archives. So we do filename-based
11178 # shared library versioning with .so extension only, which is used
11179 # when both runtime linking and shared linking is enabled.
11180 # Unfortunately, runtime linking may impact performance, so we do
11181 # not want this to be the default eventually. Also, we use the
11182 # versioned .so libs for executables only if there is the -brtl
11183 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
11184 # To allow for filename-based versioning support, we need to create
11185 # libNAME.so.V as an archive file, containing:
11186 # *) an Import File, referring to the versioned filename of the
11187 # archive as well as the shared archive member, telling the
11188 # bitwidth (32 or 64) of that shared object, and providing the
11189 # list of exported symbols of that shared object, eventually
11190 # decorated with the 'weak' keyword
11191 # *) the shared object with the F_LOADONLY flag set, to really avoid
11192 # it being seen by the linker.
11193 # At run time we better use the real file rather than another symlink,
11194 # but for link time we create the symlink libNAME.so -> libNAME.so.V
11195
11196 case $with_aix_soname,$aix_use_runtimelinking in
11197 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
11198 # soname into executable. Probably we can add versioning support to
11199 # collect2, so additional links can be useful in future.
11200 aix,yes) # traditional libtool
11201 dynamic_linker='AIX unversionable lib.so'
11202 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11203 # instead of lib<name>.a to let people know that these are not
11204 # typical AIX shared libraries.
11205 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11206 ;;
11207 aix,no) # traditional AIX only
11208 dynamic_linker='AIX lib.a(lib.so.V)'
11209 # We preserve .a as extension for shared libraries through AIX4.2
11210 # and later when we are not doing run time linking.
11211 library_names_spec='$libname$release.a $libname.a'
11212 soname_spec='$libname$release$shared_ext$major'
11213 ;;
11214 svr4,*) # full svr4 only
11215 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
11216 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11217 # We do not specify a path in Import Files, so LIBPATH fires.
11218 shlibpath_overrides_runpath=yes
11219 ;;
11220 *,yes) # both, prefer svr4
11221 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
11222 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11223 # unpreferred sharedlib libNAME.a needs extra handling
11224 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"'
11225 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"'
11226 # We do not specify a path in Import Files, so LIBPATH fires.
11227 shlibpath_overrides_runpath=yes
11228 ;;
11229 *,no) # both, prefer aix
11230 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
11231 library_names_spec='$libname$release.a $libname.a'
11232 soname_spec='$libname$release$shared_ext$major'
11233 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
11234 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)'
11235 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"'
11236 ;;
11237 esac
11238 shlibpath_var=LIBPATH
11239 fi
11240 ;;
11241
11242 amigaos*)
11243 case $host_cpu in
11244 powerpc)
11245 # Since July 2007 AmigaOS4 officially supports .so libraries.
11246 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11247 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11248 ;;
11249 m68k)
11250 library_names_spec='$libname.ixlibrary $libname.a'
11251 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11252 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'
11253 ;;
11254 esac
11255 ;;
11256
11257 beos*)
11258 library_names_spec='$libname$shared_ext'
11259 dynamic_linker="$host_os ld.so"
11260 shlibpath_var=LIBRARY_PATH
11261 ;;
11262
11263 bsdi[45]*)
11264 version_type=linux # correct to gnu/linux during the next big refactor
11265 need_version=no
11266 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11267 soname_spec='$libname$release$shared_ext$major'
11268 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11269 shlibpath_var=LD_LIBRARY_PATH
11270 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11271 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11272 # the default ld.so.conf also contains /usr/contrib/lib and
11273 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11274 # libtool to hard-code these into programs
11275 ;;
11276
11277 cygwin* | mingw* | pw32* | cegcc*)
11278 version_type=windows
11279 shrext_cmds=.dll
11280 need_version=no
11281 need_lib_prefix=no
11282
11283 case $GCC,$cc_basename in
11284 yes,*)
11285 # gcc
11286 library_names_spec='$libname.dll.a'
11287 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11288 postinstall_cmds='base_file=`basename \$file`~
11289 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11290 dldir=$destdir/`dirname \$dlpath`~
11291 test -d \$dldir || mkdir -p \$dldir~
11292 $install_prog $dir/$dlname \$dldir/$dlname~
11293 chmod a+x \$dldir/$dlname~
11294 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11295 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11296 fi'
11297 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11298 dlpath=$dir/\$dldll~
11299 $RM \$dlpath'
11300 shlibpath_overrides_runpath=yes
11301
11302 case $host_os in
11303 cygwin*)
11304 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11305 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11306
11307 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11308 ;;
11309 mingw* | cegcc*)
11310 # MinGW DLLs use traditional 'lib' prefix
11311 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11312 ;;
11313 pw32*)
11314 # pw32 DLLs use 'pw' prefix rather than 'lib'
11315 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11316 ;;
11317 esac
11318 dynamic_linker='Win32 ld.exe'
11319 ;;
11320
11321 *,cl* | *,icl*)
11322 # Native MSVC or ICC
11323 libname_spec='$name'
11324 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11325 library_names_spec='$libname.dll.lib'
11326
11327 case $build_os in
11328 mingw*)
11329 sys_lib_search_path_spec=
11330 lt_save_ifs=$IFS
11331 IFS=';'
11332 for lt_path in $LIB
11333 do
11334 IFS=$lt_save_ifs
11335 # Let DOS variable expansion print the short 8.3 style file name.
11336 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11337 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11338 done
11339 IFS=$lt_save_ifs
11340 # Convert to MSYS style.
11341 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11342 ;;
11343 cygwin*)
11344 # Convert to unix form, then to dos form, then back to unix form
11345 # but this time dos style (no spaces!) so that the unix form looks
11346 # like /cygdrive/c/PROGRA~1:/cygdr...
11347 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11348 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11349 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11350 ;;
11351 *)
11352 sys_lib_search_path_spec=$LIB
11353 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11354 # It is most probably a Windows format PATH.
11355 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11356 else
11357 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11358 fi
11359 # FIXME: find the short name or the path components, as spaces are
11360 # common. (e.g. "Program Files" -> "PROGRA~1")
11361 ;;
11362 esac
11363
11364 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11365 postinstall_cmds='base_file=`basename \$file`~
11366 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11367 dldir=$destdir/`dirname \$dlpath`~
11368 test -d \$dldir || mkdir -p \$dldir~
11369 $install_prog $dir/$dlname \$dldir/$dlname'
11370 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11371 dlpath=$dir/\$dldll~
11372 $RM \$dlpath'
11373 shlibpath_overrides_runpath=yes
11374 dynamic_linker='Win32 link.exe'
11375 ;;
11376
11377 *)
11378 # Assume MSVC and ICC wrapper
11379 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
11380 dynamic_linker='Win32 ld.exe'
11381 ;;
11382 esac
11383 # FIXME: first we should search . and the directory the executable is in
11384 shlibpath_var=PATH
11385 ;;
11386
11387 darwin* | rhapsody*)
11388 dynamic_linker="$host_os dyld"
11389 version_type=darwin
11390 need_lib_prefix=no
11391 need_version=no
11392 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
11393 soname_spec='$libname$release$major$shared_ext'
11394 shlibpath_overrides_runpath=yes
11395 shlibpath_var=DYLD_LIBRARY_PATH
11396 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11397
11398 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11399 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11400 ;;
11401
11402 dgux*)
11403 version_type=linux # correct to gnu/linux during the next big refactor
11404 need_lib_prefix=no
11405 need_version=no
11406 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11407 soname_spec='$libname$release$shared_ext$major'
11408 shlibpath_var=LD_LIBRARY_PATH
11409 ;;
11410
11411 freebsd* | dragonfly* | midnightbsd*)
11412 # DragonFly does not have aout. When/if they implement a new
11413 # versioning mechanism, adjust this.
11414 if test -x /usr/bin/objformat; then
11415 objformat=`/usr/bin/objformat`
11416 else
11417 case $host_os in
11418 freebsd[23].*) objformat=aout ;;
11419 *) objformat=elf ;;
11420 esac
11421 fi
11422 version_type=freebsd-$objformat
11423 case $version_type in
11424 freebsd-elf*)
11425 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11426 soname_spec='$libname$release$shared_ext$major'
11427 need_version=no
11428 need_lib_prefix=no
11429 ;;
11430 freebsd-*)
11431 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11432 need_version=yes
11433 ;;
11434 esac
11435 shlibpath_var=LD_LIBRARY_PATH
11436 case $host_os in
11437 freebsd2.*)
11438 shlibpath_overrides_runpath=yes
11439 ;;
11440 freebsd3.[01]* | freebsdelf3.[01]*)
11441 shlibpath_overrides_runpath=yes
11442 hardcode_into_libs=yes
11443 ;;
11444 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11445 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11446 shlibpath_overrides_runpath=no
11447 hardcode_into_libs=yes
11448 ;;
11449 *) # from 4.6 on, and DragonFly
11450 shlibpath_overrides_runpath=yes
11451 hardcode_into_libs=yes
11452 ;;
11453 esac
11454 ;;
11455
11456 haiku*)
11457 version_type=linux # correct to gnu/linux during the next big refactor
11458 need_lib_prefix=no
11459 need_version=no
11460 dynamic_linker="$host_os runtime_loader"
11461 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11462 soname_spec='$libname$release$shared_ext$major'
11463 shlibpath_var=LIBRARY_PATH
11464 shlibpath_overrides_runpath=no
11465 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11466 hardcode_into_libs=yes
11467 ;;
11468
11469 hpux9* | hpux10* | hpux11*)
11470 # Give a soname corresponding to the major version so that dld.sl refuses to
11471 # link against other versions.
11472 version_type=sunos
11473 need_lib_prefix=no
11474 need_version=no
11475 case $host_cpu in
11476 ia64*)
11477 shrext_cmds='.so'
11478 hardcode_into_libs=yes
11479 dynamic_linker="$host_os dld.so"
11480 shlibpath_var=LD_LIBRARY_PATH
11481 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11482 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11483 soname_spec='$libname$release$shared_ext$major'
11484 if test 32 = "$HPUX_IA64_MODE"; then
11485 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11486 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
11487 else
11488 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11489 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
11490 fi
11491 ;;
11492 hppa*64*)
11493 shrext_cmds='.sl'
11494 hardcode_into_libs=yes
11495 dynamic_linker="$host_os dld.sl"
11496 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11497 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11498 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11499 soname_spec='$libname$release$shared_ext$major'
11500 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11501 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11502 ;;
11503 *)
11504 shrext_cmds='.sl'
11505 dynamic_linker="$host_os dld.sl"
11506 shlibpath_var=SHLIB_PATH
11507 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11508 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11509 soname_spec='$libname$release$shared_ext$major'
11510 ;;
11511 esac
11512 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11513 postinstall_cmds='chmod 555 $lib'
11514 # or fails outright, so override atomically:
11515 install_override_mode=555
11516 ;;
11517
11518 interix[3-9]*)
11519 version_type=linux # correct to gnu/linux during the next big refactor
11520 need_lib_prefix=no
11521 need_version=no
11522 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11523 soname_spec='$libname$release$shared_ext$major'
11524 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11525 shlibpath_var=LD_LIBRARY_PATH
11526 shlibpath_overrides_runpath=no
11527 hardcode_into_libs=yes
11528 ;;
11529
11530 irix5* | irix6* | nonstopux*)
11531 case $host_os in
11532 nonstopux*) version_type=nonstopux ;;
11533 *)
11534 if test yes = "$lt_cv_prog_gnu_ld"; then
11535 version_type=linux # correct to gnu/linux during the next big refactor
11536 else
11537 version_type=irix
11538 fi ;;
11539 esac
11540 need_lib_prefix=no
11541 need_version=no
11542 soname_spec='$libname$release$shared_ext$major'
11543 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
11544 case $host_os in
11545 irix5* | nonstopux*)
11546 libsuff= shlibsuff=
11547 ;;
11548 *)
11549 case $LD in # libtool.m4 will add one of these switches to LD
11550 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11551 libsuff= shlibsuff= libmagic=32-bit;;
11552 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11553 libsuff=32 shlibsuff=N32 libmagic=N32;;
11554 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11555 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11556 *) libsuff= shlibsuff= libmagic=never-match;;
11557 esac
11558 ;;
11559 esac
11560 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11561 shlibpath_overrides_runpath=no
11562 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11563 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
11564 hardcode_into_libs=yes
11565 ;;
11566
11567 # No shared lib support for Linux oldld, aout, or coff.
11568 linux*oldld* | linux*aout* | linux*coff*)
11569 dynamic_linker=no
11570 ;;
11571
11572 linux*android*)
11573 version_type=none # Android doesn't support versioned libraries.
11574 need_lib_prefix=no
11575 need_version=no
11576 library_names_spec='$libname$release$shared_ext'
11577 soname_spec='$libname$release$shared_ext'
11578 finish_cmds=
11579 shlibpath_var=LD_LIBRARY_PATH
11580 shlibpath_overrides_runpath=yes
11581
11582 # This implies no fast_install, which is unacceptable.
11583 # Some rework will be needed to allow for fast_install
11584 # before this can be enabled.
11585 hardcode_into_libs=yes
11586
11587 dynamic_linker='Android linker'
11588 # Don't embed -rpath directories since the linker doesn't support them.
11589 hardcode_libdir_flag_spec='-L$libdir'
11590 ;;
11591
11592 # This must be glibc/ELF.
11593 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11594 version_type=linux # correct to gnu/linux during the next big refactor
11595 need_lib_prefix=no
11596 need_version=no
11597 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11598 soname_spec='$libname$release$shared_ext$major'
11599 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11600 shlibpath_var=LD_LIBRARY_PATH
11601 shlibpath_overrides_runpath=no
11602
11603 # Some binutils ld are patched to set DT_RUNPATH
11604 if test ${lt_cv_shlibpath_overrides_runpath+y}
11605 then :
11606 printf %s "(cached) " >&6
11607 else $as_nop
11608 lt_cv_shlibpath_overrides_runpath=no
11609 save_LDFLAGS=$LDFLAGS
11610 save_libdir=$libdir
11611 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11612 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11614 /* end confdefs.h. */
11615
11616 int
11617 main (void)
11618 {
11619
11620 ;
11621 return 0;
11622 }
11623 _ACEOF
11624 if ac_fn_c_try_link "$LINENO"
11625 then :
11626 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
11627 then :
11628 lt_cv_shlibpath_overrides_runpath=yes
11629 fi
11630 fi
11631 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11632 conftest$ac_exeext conftest.$ac_ext
11633 LDFLAGS=$save_LDFLAGS
11634 libdir=$save_libdir
11635
11636 fi
11637
11638 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11639
11640 # This implies no fast_install, which is unacceptable.
11641 # Some rework will be needed to allow for fast_install
11642 # before this can be enabled.
11643 hardcode_into_libs=yes
11644
11645 # Add ABI-specific directories to the system library path.
11646 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
11647
11648 # Ideally, we could use ldconfig to report *all* directores which are
11649 # searched for libraries, however this is still not possible. Aside from not
11650 # being certain /sbin/ldconfig is available, command
11651 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11652 # even though it is searched at run-time. Try to do the best guess by
11653 # appending ld.so.conf contents (and includes) to the search path.
11654 if test -f /etc/ld.so.conf; then
11655 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' ' '`
11656 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
11657 fi
11658
11659 # We used to test for /lib/ld.so.1 and disable shared libraries on
11660 # powerpc, because MkLinux only supported shared libraries with the
11661 # GNU dynamic linker. Since this was broken with cross compilers,
11662 # most powerpc-linux boxes support dynamic linking these days and
11663 # people can always --disable-shared, the test was removed, and we
11664 # assume the GNU/Linux dynamic linker is in use.
11665 dynamic_linker='GNU/Linux ld.so'
11666 ;;
11667
11668 netbsd*)
11669 version_type=sunos
11670 need_lib_prefix=no
11671 need_version=no
11672 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11673 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11674 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11675 dynamic_linker='NetBSD (a.out) ld.so'
11676 else
11677 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11678 soname_spec='$libname$release$shared_ext$major'
11679 dynamic_linker='NetBSD ld.elf_so'
11680 fi
11681 shlibpath_var=LD_LIBRARY_PATH
11682 shlibpath_overrides_runpath=yes
11683 hardcode_into_libs=yes
11684 ;;
11685
11686 newsos6)
11687 version_type=linux # correct to gnu/linux during the next big refactor
11688 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11689 shlibpath_var=LD_LIBRARY_PATH
11690 shlibpath_overrides_runpath=yes
11691 ;;
11692
11693 *nto* | *qnx*)
11694 version_type=qnx
11695 need_lib_prefix=no
11696 need_version=no
11697 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11698 soname_spec='$libname$release$shared_ext$major'
11699 shlibpath_var=LD_LIBRARY_PATH
11700 shlibpath_overrides_runpath=no
11701 hardcode_into_libs=yes
11702 dynamic_linker='ldqnx.so'
11703 ;;
11704
11705 openbsd* | bitrig*)
11706 version_type=sunos
11707 sys_lib_dlsearch_path_spec=/usr/lib
11708 need_lib_prefix=no
11709 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11710 need_version=no
11711 else
11712 need_version=yes
11713 fi
11714 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11715 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11716 shlibpath_var=LD_LIBRARY_PATH
11717 shlibpath_overrides_runpath=yes
11718 ;;
11719
11720 os2*)
11721 libname_spec='$name'
11722 version_type=windows
11723 shrext_cmds=.dll
11724 need_version=no
11725 need_lib_prefix=no
11726 # OS/2 can only load a DLL with a base name of 8 characters or less.
11727 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11728 v=$($ECHO $release$versuffix | tr -d .-);
11729 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11730 $ECHO $n$v`$shared_ext'
11731 library_names_spec='${libname}_dll.$libext'
11732 dynamic_linker='OS/2 ld.exe'
11733 shlibpath_var=BEGINLIBPATH
11734 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11735 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11736 postinstall_cmds='base_file=`basename \$file`~
11737 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11738 dldir=$destdir/`dirname \$dlpath`~
11739 test -d \$dldir || mkdir -p \$dldir~
11740 $install_prog $dir/$dlname \$dldir/$dlname~
11741 chmod a+x \$dldir/$dlname~
11742 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11743 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11744 fi'
11745 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11746 dlpath=$dir/\$dldll~
11747 $RM \$dlpath'
11748 ;;
11749
11750 osf3* | osf4* | osf5*)
11751 version_type=osf
11752 need_lib_prefix=no
11753 need_version=no
11754 soname_spec='$libname$release$shared_ext$major'
11755 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11756 shlibpath_var=LD_LIBRARY_PATH
11757 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11758 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11759 ;;
11760
11761 rdos*)
11762 dynamic_linker=no
11763 ;;
11764
11765 solaris*)
11766 version_type=linux # correct to gnu/linux during the next big refactor
11767 need_lib_prefix=no
11768 need_version=no
11769 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11770 soname_spec='$libname$release$shared_ext$major'
11771 shlibpath_var=LD_LIBRARY_PATH
11772 shlibpath_overrides_runpath=yes
11773 hardcode_into_libs=yes
11774 # ldd complains unless libraries are executable
11775 postinstall_cmds='chmod +x $lib'
11776 ;;
11777
11778 sunos4*)
11779 version_type=sunos
11780 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11781 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11782 shlibpath_var=LD_LIBRARY_PATH
11783 shlibpath_overrides_runpath=yes
11784 if test yes = "$with_gnu_ld"; then
11785 need_lib_prefix=no
11786 fi
11787 need_version=yes
11788 ;;
11789
11790 sysv4 | sysv4.3*)
11791 version_type=linux # correct to gnu/linux during the next big refactor
11792 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11793 soname_spec='$libname$release$shared_ext$major'
11794 shlibpath_var=LD_LIBRARY_PATH
11795 case $host_vendor in
11796 sni)
11797 shlibpath_overrides_runpath=no
11798 need_lib_prefix=no
11799 runpath_var=LD_RUN_PATH
11800 ;;
11801 siemens)
11802 need_lib_prefix=no
11803 ;;
11804 motorola)
11805 need_lib_prefix=no
11806 need_version=no
11807 shlibpath_overrides_runpath=no
11808 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11809 ;;
11810 esac
11811 ;;
11812
11813 sysv4*MP*)
11814 if test -d /usr/nec; then
11815 version_type=linux # correct to gnu/linux during the next big refactor
11816 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11817 soname_spec='$libname$shared_ext.$major'
11818 shlibpath_var=LD_LIBRARY_PATH
11819 fi
11820 ;;
11821
11822 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11823 version_type=sco
11824 need_lib_prefix=no
11825 need_version=no
11826 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11827 soname_spec='$libname$release$shared_ext$major'
11828 shlibpath_var=LD_LIBRARY_PATH
11829 shlibpath_overrides_runpath=yes
11830 hardcode_into_libs=yes
11831 if test yes = "$with_gnu_ld"; then
11832 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11833 else
11834 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11835 case $host_os in
11836 sco3.2v5*)
11837 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11838 ;;
11839 esac
11840 fi
11841 sys_lib_dlsearch_path_spec='/usr/lib'
11842 ;;
11843
11844 tpf*)
11845 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11846 version_type=linux # correct to gnu/linux during the next big refactor
11847 need_lib_prefix=no
11848 need_version=no
11849 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11850 shlibpath_var=LD_LIBRARY_PATH
11851 shlibpath_overrides_runpath=no
11852 hardcode_into_libs=yes
11853 ;;
11854
11855 uts4*)
11856 version_type=linux # correct to gnu/linux during the next big refactor
11857 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11858 soname_spec='$libname$release$shared_ext$major'
11859 shlibpath_var=LD_LIBRARY_PATH
11860 ;;
11861
11862 *)
11863 dynamic_linker=no
11864 ;;
11865 esac
11866 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11867 printf "%s\n" "$dynamic_linker" >&6; }
11868 test no = "$dynamic_linker" && can_build_shared=no
11869
11870 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11871 if test yes = "$GCC"; then
11872 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11873 fi
11874
11875 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
11876 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
11877 fi
11878
11879 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
11880 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
11881 fi
11882
11883 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
11884 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
11885
11886 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
11887 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
11888
11889 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
11890 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
11891
11892
11893
11894
11895
11896
11897
11898
11899
11900
11901
11902
11903
11904
11905
11906
11907
11908
11909
11910
11911
11912
11913
11914
11915
11916
11917
11918
11919
11920
11921
11922
11923
11924
11925
11926
11927
11928
11929
11930
11931
11932
11933
11934
11935
11936
11937
11938
11939
11940
11941
11942
11943
11944
11945
11946
11947
11948
11949
11950
11951
11952
11953
11954
11955
11956
11957
11958
11959
11960
11961
11962
11963
11964
11965
11966
11967
11968
11969
11970
11971
11972
11973
11974
11975
11976
11977
11978
11979
11980
11981
11982
11983
11984
11985
11986
11987
11988 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11989 printf %s "checking how to hardcode library paths into programs... " >&6; }
11990 hardcode_action=
11991 if test -n "$hardcode_libdir_flag_spec" ||
11992 test -n "$runpath_var" ||
11993 test yes = "$hardcode_automatic"; then
11994
11995 # We can hardcode non-existent directories.
11996 if test no != "$hardcode_direct" &&
11997 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11998 # have to relink, otherwise we might link with an installed library
11999 # when we should be linking with a yet-to-be-installed one
12000 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
12001 test no != "$hardcode_minus_L"; then
12002 # Linking always hardcodes the temporary library directory.
12003 hardcode_action=relink
12004 else
12005 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12006 hardcode_action=immediate
12007 fi
12008 else
12009 # We cannot hardcode anything, or else we can only hardcode existing
12010 # directories.
12011 hardcode_action=unsupported
12012 fi
12013 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12014 printf "%s\n" "$hardcode_action" >&6; }
12015
12016 if test relink = "$hardcode_action" ||
12017 test yes = "$inherit_rpath"; then
12018 # Fast installation is not supported
12019 enable_fast_install=no
12020 elif test yes = "$shlibpath_overrides_runpath" ||
12021 test no = "$enable_shared"; then
12022 # Fast installation is not necessary
12023 enable_fast_install=needless
12024 fi
12025
12026
12027
12028
12029
12030
12031 if test yes != "$enable_dlopen"; then
12032 enable_dlopen=unknown
12033 enable_dlopen_self=unknown
12034 enable_dlopen_self_static=unknown
12035 else
12036 lt_cv_dlopen=no
12037 lt_cv_dlopen_libs=
12038
12039 case $host_os in
12040 beos*)
12041 lt_cv_dlopen=load_add_on
12042 lt_cv_dlopen_libs=
12043 lt_cv_dlopen_self=yes
12044 ;;
12045
12046 mingw* | pw32* | cegcc*)
12047 lt_cv_dlopen=LoadLibrary
12048 lt_cv_dlopen_libs=
12049 ;;
12050
12051 cygwin*)
12052 lt_cv_dlopen=dlopen
12053 lt_cv_dlopen_libs=
12054 ;;
12055
12056 darwin*)
12057 # if libdl is installed we need to link against it
12058 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12059 printf %s "checking for dlopen in -ldl... " >&6; }
12060 if test ${ac_cv_lib_dl_dlopen+y}
12061 then :
12062 printf %s "(cached) " >&6
12063 else $as_nop
12064 ac_check_lib_save_LIBS=$LIBS
12065 LIBS="-ldl $LIBS"
12066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12067 /* end confdefs.h. */
12068
12069 /* Override any GCC internal prototype to avoid an error.
12070 Use char because int might match the return type of a GCC
12071 builtin and then its argument prototype would still apply. */
12072 char dlopen ();
12073 int
12074 main (void)
12075 {
12076 return dlopen ();
12077 ;
12078 return 0;
12079 }
12080 _ACEOF
12081 if ac_fn_c_try_link "$LINENO"
12082 then :
12083 ac_cv_lib_dl_dlopen=yes
12084 else $as_nop
12085 ac_cv_lib_dl_dlopen=no
12086 fi
12087 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12088 conftest$ac_exeext conftest.$ac_ext
12089 LIBS=$ac_check_lib_save_LIBS
12090 fi
12091 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12092 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
12093 if test "x$ac_cv_lib_dl_dlopen" = xyes
12094 then :
12095 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12096 else $as_nop
12097
12098 lt_cv_dlopen=dyld
12099 lt_cv_dlopen_libs=
12100 lt_cv_dlopen_self=yes
12101
12102 fi
12103
12104 ;;
12105
12106 tpf*)
12107 # Don't try to run any link tests for TPF. We know it's impossible
12108 # because TPF is a cross-compiler, and we know how we open DSOs.
12109 lt_cv_dlopen=dlopen
12110 lt_cv_dlopen_libs=
12111 lt_cv_dlopen_self=no
12112 ;;
12113
12114 *)
12115 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12116 if test "x$ac_cv_func_shl_load" = xyes
12117 then :
12118 lt_cv_dlopen=shl_load
12119 else $as_nop
12120 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12121 printf %s "checking for shl_load in -ldld... " >&6; }
12122 if test ${ac_cv_lib_dld_shl_load+y}
12123 then :
12124 printf %s "(cached) " >&6
12125 else $as_nop
12126 ac_check_lib_save_LIBS=$LIBS
12127 LIBS="-ldld $LIBS"
12128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12129 /* end confdefs.h. */
12130
12131 /* Override any GCC internal prototype to avoid an error.
12132 Use char because int might match the return type of a GCC
12133 builtin and then its argument prototype would still apply. */
12134 char shl_load ();
12135 int
12136 main (void)
12137 {
12138 return shl_load ();
12139 ;
12140 return 0;
12141 }
12142 _ACEOF
12143 if ac_fn_c_try_link "$LINENO"
12144 then :
12145 ac_cv_lib_dld_shl_load=yes
12146 else $as_nop
12147 ac_cv_lib_dld_shl_load=no
12148 fi
12149 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12150 conftest$ac_exeext conftest.$ac_ext
12151 LIBS=$ac_check_lib_save_LIBS
12152 fi
12153 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12154 printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
12155 if test "x$ac_cv_lib_dld_shl_load" = xyes
12156 then :
12157 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
12158 else $as_nop
12159 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12160 if test "x$ac_cv_func_dlopen" = xyes
12161 then :
12162 lt_cv_dlopen=dlopen
12163 else $as_nop
12164 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12165 printf %s "checking for dlopen in -ldl... " >&6; }
12166 if test ${ac_cv_lib_dl_dlopen+y}
12167 then :
12168 printf %s "(cached) " >&6
12169 else $as_nop
12170 ac_check_lib_save_LIBS=$LIBS
12171 LIBS="-ldl $LIBS"
12172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12173 /* end confdefs.h. */
12174
12175 /* Override any GCC internal prototype to avoid an error.
12176 Use char because int might match the return type of a GCC
12177 builtin and then its argument prototype would still apply. */
12178 char dlopen ();
12179 int
12180 main (void)
12181 {
12182 return dlopen ();
12183 ;
12184 return 0;
12185 }
12186 _ACEOF
12187 if ac_fn_c_try_link "$LINENO"
12188 then :
12189 ac_cv_lib_dl_dlopen=yes
12190 else $as_nop
12191 ac_cv_lib_dl_dlopen=no
12192 fi
12193 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12194 conftest$ac_exeext conftest.$ac_ext
12195 LIBS=$ac_check_lib_save_LIBS
12196 fi
12197 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12198 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
12199 if test "x$ac_cv_lib_dl_dlopen" = xyes
12200 then :
12201 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12202 else $as_nop
12203 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12204 printf %s "checking for dlopen in -lsvld... " >&6; }
12205 if test ${ac_cv_lib_svld_dlopen+y}
12206 then :
12207 printf %s "(cached) " >&6
12208 else $as_nop
12209 ac_check_lib_save_LIBS=$LIBS
12210 LIBS="-lsvld $LIBS"
12211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12212 /* end confdefs.h. */
12213
12214 /* Override any GCC internal prototype to avoid an error.
12215 Use char because int might match the return type of a GCC
12216 builtin and then its argument prototype would still apply. */
12217 char dlopen ();
12218 int
12219 main (void)
12220 {
12221 return dlopen ();
12222 ;
12223 return 0;
12224 }
12225 _ACEOF
12226 if ac_fn_c_try_link "$LINENO"
12227 then :
12228 ac_cv_lib_svld_dlopen=yes
12229 else $as_nop
12230 ac_cv_lib_svld_dlopen=no
12231 fi
12232 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12233 conftest$ac_exeext conftest.$ac_ext
12234 LIBS=$ac_check_lib_save_LIBS
12235 fi
12236 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12237 printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
12238 if test "x$ac_cv_lib_svld_dlopen" = xyes
12239 then :
12240 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
12241 else $as_nop
12242 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12243 printf %s "checking for dld_link in -ldld... " >&6; }
12244 if test ${ac_cv_lib_dld_dld_link+y}
12245 then :
12246 printf %s "(cached) " >&6
12247 else $as_nop
12248 ac_check_lib_save_LIBS=$LIBS
12249 LIBS="-ldld $LIBS"
12250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12251 /* end confdefs.h. */
12252
12253 /* Override any GCC internal prototype to avoid an error.
12254 Use char because int might match the return type of a GCC
12255 builtin and then its argument prototype would still apply. */
12256 char dld_link ();
12257 int
12258 main (void)
12259 {
12260 return dld_link ();
12261 ;
12262 return 0;
12263 }
12264 _ACEOF
12265 if ac_fn_c_try_link "$LINENO"
12266 then :
12267 ac_cv_lib_dld_dld_link=yes
12268 else $as_nop
12269 ac_cv_lib_dld_dld_link=no
12270 fi
12271 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12272 conftest$ac_exeext conftest.$ac_ext
12273 LIBS=$ac_check_lib_save_LIBS
12274 fi
12275 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12276 printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
12277 if test "x$ac_cv_lib_dld_dld_link" = xyes
12278 then :
12279 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
12280 fi
12281
12282
12283 fi
12284
12285
12286 fi
12287
12288
12289 fi
12290
12291
12292 fi
12293
12294
12295 fi
12296
12297 ;;
12298 esac
12299
12300 if test no = "$lt_cv_dlopen"; then
12301 enable_dlopen=no
12302 else
12303 enable_dlopen=yes
12304 fi
12305
12306 case $lt_cv_dlopen in
12307 dlopen)
12308 save_CPPFLAGS=$CPPFLAGS
12309 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12310
12311 save_LDFLAGS=$LDFLAGS
12312 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12313
12314 save_LIBS=$LIBS
12315 LIBS="$lt_cv_dlopen_libs $LIBS"
12316
12317 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12318 printf %s "checking whether a program can dlopen itself... " >&6; }
12319 if test ${lt_cv_dlopen_self+y}
12320 then :
12321 printf %s "(cached) " >&6
12322 else $as_nop
12323 if test yes = "$cross_compiling"; then :
12324 lt_cv_dlopen_self=cross
12325 else
12326 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12327 lt_status=$lt_dlunknown
12328 cat > conftest.$ac_ext <<_LT_EOF
12329 #line $LINENO "configure"
12330 #include "confdefs.h"
12331
12332 #if HAVE_DLFCN_H
12333 #include <dlfcn.h>
12334 #endif
12335
12336 #include <stdio.h>
12337
12338 #ifdef RTLD_GLOBAL
12339 # define LT_DLGLOBAL RTLD_GLOBAL
12340 #else
12341 # ifdef DL_GLOBAL
12342 # define LT_DLGLOBAL DL_GLOBAL
12343 # else
12344 # define LT_DLGLOBAL 0
12345 # endif
12346 #endif
12347
12348 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12349 find out it does not work in some platform. */
12350 #ifndef LT_DLLAZY_OR_NOW
12351 # ifdef RTLD_LAZY
12352 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12353 # else
12354 # ifdef DL_LAZY
12355 # define LT_DLLAZY_OR_NOW DL_LAZY
12356 # else
12357 # ifdef RTLD_NOW
12358 # define LT_DLLAZY_OR_NOW RTLD_NOW
12359 # else
12360 # ifdef DL_NOW
12361 # define LT_DLLAZY_OR_NOW DL_NOW
12362 # else
12363 # define LT_DLLAZY_OR_NOW 0
12364 # endif
12365 # endif
12366 # endif
12367 # endif
12368 #endif
12369
12370 /* When -fvisibility=hidden is used, assume the code has been annotated
12371 correspondingly for the symbols needed. */
12372 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12373 int fnord () __attribute__((visibility("default")));
12374 #endif
12375
12376 int fnord () { return 42; }
12377 int main ()
12378 {
12379 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12380 int status = $lt_dlunknown;
12381
12382 if (self)
12383 {
12384 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12385 else
12386 {
12387 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12388 else puts (dlerror ());
12389 }
12390 /* dlclose (self); */
12391 }
12392 else
12393 puts (dlerror ());
12394
12395 return status;
12396 }
12397 _LT_EOF
12398 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12399 (eval $ac_link) 2>&5
12400 ac_status=$?
12401 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12402 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12403 (./conftest; exit; ) >&5 2>/dev/null
12404 lt_status=$?
12405 case x$lt_status in
12406 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12407 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12408 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12409 esac
12410 else :
12411 # compilation failed
12412 lt_cv_dlopen_self=no
12413 fi
12414 fi
12415 rm -fr conftest*
12416
12417
12418 fi
12419 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12420 printf "%s\n" "$lt_cv_dlopen_self" >&6; }
12421
12422 if test yes = "$lt_cv_dlopen_self"; then
12423 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12424 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12425 printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
12426 if test ${lt_cv_dlopen_self_static+y}
12427 then :
12428 printf %s "(cached) " >&6
12429 else $as_nop
12430 if test yes = "$cross_compiling"; then :
12431 lt_cv_dlopen_self_static=cross
12432 else
12433 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12434 lt_status=$lt_dlunknown
12435 cat > conftest.$ac_ext <<_LT_EOF
12436 #line $LINENO "configure"
12437 #include "confdefs.h"
12438
12439 #if HAVE_DLFCN_H
12440 #include <dlfcn.h>
12441 #endif
12442
12443 #include <stdio.h>
12444
12445 #ifdef RTLD_GLOBAL
12446 # define LT_DLGLOBAL RTLD_GLOBAL
12447 #else
12448 # ifdef DL_GLOBAL
12449 # define LT_DLGLOBAL DL_GLOBAL
12450 # else
12451 # define LT_DLGLOBAL 0
12452 # endif
12453 #endif
12454
12455 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12456 find out it does not work in some platform. */
12457 #ifndef LT_DLLAZY_OR_NOW
12458 # ifdef RTLD_LAZY
12459 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12460 # else
12461 # ifdef DL_LAZY
12462 # define LT_DLLAZY_OR_NOW DL_LAZY
12463 # else
12464 # ifdef RTLD_NOW
12465 # define LT_DLLAZY_OR_NOW RTLD_NOW
12466 # else
12467 # ifdef DL_NOW
12468 # define LT_DLLAZY_OR_NOW DL_NOW
12469 # else
12470 # define LT_DLLAZY_OR_NOW 0
12471 # endif
12472 # endif
12473 # endif
12474 # endif
12475 #endif
12476
12477 /* When -fvisibility=hidden is used, assume the code has been annotated
12478 correspondingly for the symbols needed. */
12479 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12480 int fnord () __attribute__((visibility("default")));
12481 #endif
12482
12483 int fnord () { return 42; }
12484 int main ()
12485 {
12486 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12487 int status = $lt_dlunknown;
12488
12489 if (self)
12490 {
12491 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12492 else
12493 {
12494 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12495 else puts (dlerror ());
12496 }
12497 /* dlclose (self); */
12498 }
12499 else
12500 puts (dlerror ());
12501
12502 return status;
12503 }
12504 _LT_EOF
12505 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12506 (eval $ac_link) 2>&5
12507 ac_status=$?
12508 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12509 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12510 (./conftest; exit; ) >&5 2>/dev/null
12511 lt_status=$?
12512 case x$lt_status in
12513 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12514 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12515 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12516 esac
12517 else :
12518 # compilation failed
12519 lt_cv_dlopen_self_static=no
12520 fi
12521 fi
12522 rm -fr conftest*
12523
12524
12525 fi
12526 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12527 printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
12528 fi
12529
12530 CPPFLAGS=$save_CPPFLAGS
12531 LDFLAGS=$save_LDFLAGS
12532 LIBS=$save_LIBS
12533 ;;
12534 esac
12535
12536 case $lt_cv_dlopen_self in
12537 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12538 *) enable_dlopen_self=unknown ;;
12539 esac
12540
12541 case $lt_cv_dlopen_self_static in
12542 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12543 *) enable_dlopen_self_static=unknown ;;
12544 esac
12545 fi
12546
12547
12548
12549
12550
12551
12552
12553
12554
12555
12556
12557
12558
12559
12560
12561
12562
12563 striplib=
12564 old_striplib=
12565 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12566 printf %s "checking whether stripping libraries is possible... " >&6; }
12567 if test -z "$STRIP"; then
12568 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12569 printf "%s\n" "no" >&6; }
12570 else
12571 if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12572 old_striplib="$STRIP --strip-debug"
12573 striplib="$STRIP --strip-unneeded"
12574 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12575 printf "%s\n" "yes" >&6; }
12576 else
12577 case $host_os in
12578 darwin*)
12579 # FIXME - insert some real tests, host_os isn't really good enough
12580 striplib="$STRIP -x"
12581 old_striplib="$STRIP -S"
12582 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12583 printf "%s\n" "yes" >&6; }
12584 ;;
12585 freebsd*)
12586 if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
12587 old_striplib="$STRIP --strip-debug"
12588 striplib="$STRIP --strip-unneeded"
12589 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12590 printf "%s\n" "yes" >&6; }
12591 else
12592 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12593 printf "%s\n" "no" >&6; }
12594 fi
12595 ;;
12596 *)
12597 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12598 printf "%s\n" "no" >&6; }
12599 ;;
12600 esac
12601 fi
12602 fi
12603
12604
12605
12606
12607
12608
12609
12610
12611
12612
12613
12614
12615 # Report what library types will actually be built
12616 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12617 printf %s "checking if libtool supports shared libraries... " >&6; }
12618 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12619 printf "%s\n" "$can_build_shared" >&6; }
12620
12621 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12622 printf %s "checking whether to build shared libraries... " >&6; }
12623 test no = "$can_build_shared" && enable_shared=no
12624
12625 # On AIX, shared libraries and static libraries use the same namespace, and
12626 # are all built from PIC.
12627 case $host_os in
12628 aix3*)
12629 test yes = "$enable_shared" && enable_static=no
12630 if test -n "$RANLIB"; then
12631 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12632 postinstall_cmds='$RANLIB $lib'
12633 fi
12634 ;;
12635
12636 aix[4-9]*)
12637 if test ia64 != "$host_cpu"; then
12638 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12639 yes,aix,yes) ;; # shared object as lib.so file only
12640 yes,svr4,*) ;; # shared object as lib.so archive member only
12641 yes,*) enable_static=no ;; # shared object in lib.a archive as well
12642 esac
12643 fi
12644 ;;
12645 esac
12646 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12647 printf "%s\n" "$enable_shared" >&6; }
12648
12649 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12650 printf %s "checking whether to build static libraries... " >&6; }
12651 # Make sure either enable_shared or enable_static is yes.
12652 test yes = "$enable_shared" || enable_static=yes
12653 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12654 printf "%s\n" "$enable_static" >&6; }
12655
12656
12657
12658
12659 fi
12660 ac_ext=c
12661 ac_cpp='$CPP $CPPFLAGS'
12662 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12663 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12664 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12665
12666 CC=$lt_save_CC
12667
12668
12669
12670
12671
12672
12673
12674
12675
12676
12677
12678
12679
12680
12681
12682 ac_config_commands="$ac_config_commands libtool"
12683
12684
12685
12686
12687 # Only expand once:
12688
12689
12690 if test -n "$ac_tool_prefix"; then
12691 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
12692 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
12693 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12694 printf %s "checking for $ac_word... " >&6; }
12695 if test ${ac_cv_prog_RANLIB+y}
12696 then :
12697 printf %s "(cached) " >&6
12698 else $as_nop
12699 if test -n "$RANLIB"; then
12700 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12701 else
12702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12703 for as_dir in $PATH
12704 do
12705 IFS=$as_save_IFS
12706 case $as_dir in #(((
12707 '') as_dir=./ ;;
12708 */) ;;
12709 *) as_dir=$as_dir/ ;;
12710 esac
12711 for ac_exec_ext in '' $ac_executable_extensions; do
12712 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12713 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
12714 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12715 break 2
12716 fi
12717 done
12718 done
12719 IFS=$as_save_IFS
12720
12721 fi
12722 fi
12723 RANLIB=$ac_cv_prog_RANLIB
12724 if test -n "$RANLIB"; then
12725 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
12726 printf "%s\n" "$RANLIB" >&6; }
12727 else
12728 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12729 printf "%s\n" "no" >&6; }
12730 fi
12731
12732
12733 fi
12734 if test -z "$ac_cv_prog_RANLIB"; then
12735 ac_ct_RANLIB=$RANLIB
12736 # Extract the first word of "ranlib", so it can be a program name with args.
12737 set dummy ranlib; ac_word=$2
12738 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12739 printf %s "checking for $ac_word... " >&6; }
12740 if test ${ac_cv_prog_ac_ct_RANLIB+y}
12741 then :
12742 printf %s "(cached) " >&6
12743 else $as_nop
12744 if test -n "$ac_ct_RANLIB"; then
12745 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
12746 else
12747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12748 for as_dir in $PATH
12749 do
12750 IFS=$as_save_IFS
12751 case $as_dir in #(((
12752 '') as_dir=./ ;;
12753 */) ;;
12754 *) as_dir=$as_dir/ ;;
12755 esac
12756 for ac_exec_ext in '' $ac_executable_extensions; do
12757 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12758 ac_cv_prog_ac_ct_RANLIB="ranlib"
12759 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12760 break 2
12761 fi
12762 done
12763 done
12764 IFS=$as_save_IFS
12765
12766 fi
12767 fi
12768 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
12769 if test -n "$ac_ct_RANLIB"; then
12770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
12771 printf "%s\n" "$ac_ct_RANLIB" >&6; }
12772 else
12773 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12774 printf "%s\n" "no" >&6; }
12775 fi
12776
12777 if test "x$ac_ct_RANLIB" = x; then
12778 RANLIB=":"
12779 else
12780 case $cross_compiling:$ac_tool_warned in
12781 yes:)
12782 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12783 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12784 ac_tool_warned=yes ;;
12785 esac
12786 RANLIB=$ac_ct_RANLIB
12787 fi
12788 else
12789 RANLIB="$ac_cv_prog_RANLIB"
12790 fi
12791
12792
12793 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
12794 printf %s "checking whether ln -s works... " >&6; }
12795 LN_S=$as_ln_s
12796 if test "$LN_S" = "ln -s"; then
12797 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12798 printf "%s\n" "yes" >&6; }
12799 else
12800 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
12801 printf "%s\n" "no, using $LN_S" >&6; }
12802 fi
12803
12804
12805
12806 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
12807 printf %s "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
12808 # Check whether --enable-maintainer-mode was given.
12809 if test ${enable_maintainer_mode+y}
12810 then :
12811 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
12812 else $as_nop
12813 USE_MAINTAINER_MODE=no
12814 fi
12815
12816 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
12817 printf "%s\n" "$USE_MAINTAINER_MODE" >&6; }
12818 if test $USE_MAINTAINER_MODE = yes; then
12819 MAINTAINER_MODE_TRUE=
12820 MAINTAINER_MODE_FALSE='#'
12821 else
12822 MAINTAINER_MODE_TRUE='#'
12823 MAINTAINER_MODE_FALSE=
12824 fi
12825
12826 MAINT=$MAINTAINER_MODE_TRUE
12827
12828
12829
12830 ac_config_headers="$ac_config_headers include/apreq_config.h"
12831
12832
12833
12834
12835 # Check whether --enable-profile was given.
12836 if test ${enable_profile+y}
12837 then :
12838 enableval=$enable_profile; PROFILE=$enableval
12839 else $as_nop
12840 PROFILE="no"
12841 fi
12842
12843 # Check whether --enable-perl_glue was given.
12844 if test ${enable_perl_glue+y}
12845 then :
12846 enableval=$enable_perl_glue; PERL_GLUE=$enableval
12847 else $as_nop
12848 PERL_GLUE="no"
12849 fi
12850
12851
12852 # Check whether --with-perl was given.
12853 if test ${with_perl+y}
12854 then :
12855 withval=$with_perl; PERL=$withval
12856 else $as_nop
12857 PERL="perl"
12858 fi
12859
12860
12861 # Check whether --with-apache2-apxs was given.
12862 if test ${with_apache2_apxs+y}
12863 then :
12864 withval=$with_apache2_apxs; APACHE2_APXS=$withval
12865 else $as_nop
12866 APACHE2_APXS="apxs"
12867 fi
12868
12869
12870 # Check whether --with-apache2-src was given.
12871 if test ${with_apache2_src+y}
12872 then :
12873 withval=$with_apache2_src; APACHE2_SRC=$withval
12874 else $as_nop
12875 APACHE2_SRC=""
12876 fi
12877
12878
12879 # Check whether --with-apache2-httpd was given.
12880 if test ${with_apache2_httpd+y}
12881 then :
12882 withval=$with_apache2_httpd; APACHE2_HTTPD=$withval
12883 else $as_nop
12884 APACHE2_HTTPD=""
12885 fi
12886
12887
12888 # Check whether --with-apr-config was given.
12889 if test ${with_apr_config+y}
12890 then :
12891 withval=$with_apr_config; APR_CONFIG=$withval
12892 else $as_nop
12893 APR_CONFIG=""
12894 fi
12895
12896
12897 # Check whether --with-apu-config was given.
12898 if test ${with_apu_config+y}
12899 then :
12900 withval=$with_apu_config; APU_CONFIG=$withval
12901 else $as_nop
12902 APU_CONFIG=""
12903 fi
12904
12905
12906 # Check whether --with-apache1-apxs was given.
12907 if test ${with_apache1_apxs+y}
12908 then :
12909 withval=$with_apache1_apxs; APACHE1_APXS=$withval
12910 else $as_nop
12911 APACHE1_APXS=""
12912 fi
12913
12914
12915 # Check whether --with-perl-opts was given.
12916 if test ${with_perl_opts+y}
12917 then :
12918 withval=$with_perl_opts; PERL_OPTS=$withval
12919 else $as_nop
12920 PERL_OPTS=""
12921 fi
12922
12923
12924 # Check whether --with-mm-opts was given.
12925 if test ${with_mm_opts+y}
12926 then :
12927 withval=$with_mm_opts; MM_OPTS=$withval
12928 else $as_nop
12929 MM_OPTS=""
12930 fi
12931
12932
12933 # Check whether --with-expat was given.
12934 if test ${with_expat+y}
12935 then :
12936 withval=$with_expat; EXPAT_DIR=$withval
12937 else $as_nop
12938 EXPAT_DIR=""
12939 fi
12940
12941
12942 OS=`$PERL -e 'print $^O'`
12943
12944 prereq_check="$PERL $PERL_OPTS build/version_check.pl"
12945
12946 if test -n "$APACHE2_SRC"; then
12947 # no apxs: must compile httpd from source
12948
12949 APACHE2_SRC=`cd $APACHE2_SRC;pwd`
12950
12951 as_ac_File=`printf "%s\n" "ac_cv_file_$APACHE2_SRC/include/httpd.h" | $as_tr_sh`
12952 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $APACHE2_SRC/include/httpd.h" >&5
12953 printf %s "checking for $APACHE2_SRC/include/httpd.h... " >&6; }
12954 if eval test \${$as_ac_File+y}
12955 then :
12956 printf %s "(cached) " >&6
12957 else $as_nop
12958 test "$cross_compiling" = yes &&
12959 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
12960 if test -r "$APACHE2_SRC/include/httpd.h"; then
12961 eval "$as_ac_File=yes"
12962 else
12963 eval "$as_ac_File=no"
12964 fi
12965 fi
12966 eval ac_res=\$$as_ac_File
12967 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12968 printf "%s\n" "$ac_res" >&6; }
12969 if eval test \"x\$"$as_ac_File"\" = x"yes"
12970 then :
12971
12972 else $as_nop
12973 as_fn_error $? "invalid Apache2 source directory" "$LINENO" 5
12974 fi
12975
12976
12977 APACHE2_INCLUDES=-I$APACHE2_SRC/include
12978
12979 if test -z "$APR_CONFIG"; then
12980 APR_CONFIG="$APACHE2_SRC/srclib/apr/apr-config"
12981 fi
12982
12983 if test -z "$APU_CONFIG"; then
12984 APU_CONFIG="$APACHE2_SRC/srclib/apr-util/apu-config"
12985 fi
12986
12987 APACHE2_HTTPD=$APACHE2_SRC/httpd
12988
12989 else
12990 # have apxs: use it
12991
12992 APACHE2_INCLUDES=-I`$APACHE2_APXS -q INCLUDEDIR`
12993
12994 APR_MAJOR_VERSION=`$APACHE2_APXS -q APR_VERSION 2>/dev/null | cut -d. -f 1`
12995 if test ${APR_MAJOR_VERSION:="0"} -eq 0; then
12996 apr_config=apr-config
12997 apu_config=apu-config
12998 apreq_libs="-lapr -laprutil"
12999 else
13000 apr_config=apr-$APR_MAJOR_VERSION-config
13001 apu_config=apu-$APR_MAJOR_VERSION-config
13002 apreq_libs="-lapr-$APR_MAJOR_VERSION -laprutil-$APR_MAJOR_VERSION"
13003 fi
13004
13005 if test -z "$APR_CONFIG"; then
13006 APR_CONFIG=`$APACHE2_APXS -q APR_BINDIR`/$apr_config
13007 fi
13008
13009 if test -z "$APU_CONFIG"; then
13010 APU_CONFIG=`$APACHE2_APXS -q APU_BINDIR`/$apu_config
13011 fi
13012
13013 if test -z "$APACHE2_HTTPD"; then
13014 APACHE2_HTTPD=`$APACHE2_APXS -q SBINDIR`/`$APACHE2_APXS -q progname`
13015 fi
13016
13017 if test -z "`$prereq_check apache2 $APACHE2_HTTPD`"; then
13018 as_fn_error $? "Bad apache2 binary ($APACHE2_HTTPD)" "$LINENO" 5
13019 fi
13020
13021 APR_DOC_VERSION=`$APACHE2_APXS -q APR_VERSION 2>/dev/null | cut -d. -f -2`
13022 APU_DOC_VERSION=`$APACHE2_APXS -q APU_VERSION 2>/dev/null | cut -d. -f -2`
13023 fi
13024
13025 if test "x$APR_DOC_VERSION" = 'x'; then
13026 APR_DOC_VERSION=0.9
13027 fi
13028 if test "x$APU_DOC_VERSION" = 'x'; then
13029 APU_DOC_VERSION=0.9
13030 fi
13031
13032 as_ac_File=`printf "%s\n" "ac_cv_file_$APR_CONFIG" | $as_tr_sh`
13033 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $APR_CONFIG" >&5
13034 printf %s "checking for $APR_CONFIG... " >&6; }
13035 if eval test \${$as_ac_File+y}
13036 then :
13037 printf %s "(cached) " >&6
13038 else $as_nop
13039 test "$cross_compiling" = yes &&
13040 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
13041 if test -r "$APR_CONFIG"; then
13042 eval "$as_ac_File=yes"
13043 else
13044 eval "$as_ac_File=no"
13045 fi
13046 fi
13047 eval ac_res=\$$as_ac_File
13048 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13049 printf "%s\n" "$ac_res" >&6; }
13050 if eval test \"x\$"$as_ac_File"\" = x"yes"
13051 then :
13052
13053 else $as_nop
13054 as_fn_error $? "invalid apr-config location ($APR_CONFIG)- did you forget to configure apr?" "$LINENO" 5
13055 fi
13056
13057
13058 if test -z "`$prereq_check apr $APR_CONFIG`"; then
13059 as_fn_error $? "Bad libapr version" "$LINENO" 5
13060 fi
13061
13062 as_ac_File=`printf "%s\n" "ac_cv_file_$APU_CONFIG" | $as_tr_sh`
13063 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $APU_CONFIG" >&5
13064 printf %s "checking for $APU_CONFIG... " >&6; }
13065 if eval test \${$as_ac_File+y}
13066 then :
13067 printf %s "(cached) " >&6
13068 else $as_nop
13069 test "$cross_compiling" = yes &&
13070 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
13071 if test -r "$APU_CONFIG"; then
13072 eval "$as_ac_File=yes"
13073 else
13074 eval "$as_ac_File=no"
13075 fi
13076 fi
13077 eval ac_res=\$$as_ac_File
13078 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13079 printf "%s\n" "$ac_res" >&6; }
13080 if eval test \"x\$"$as_ac_File"\" = x"yes"
13081 then :
13082
13083 else $as_nop
13084 as_fn_error $? "invalid apu-config location ($APU_CONFIG)- did you forget to configure apr-util?" "$LINENO" 5
13085 fi
13086
13087
13088 if test -z "`$prereq_check apu $APU_CONFIG`"; then
13089 as_fn_error $? "Bad libaprutil version" "$LINENO" 5
13090 fi
13091
13092 if test "x$PERL_GLUE" != "xno"; then
13093 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for perl" >&5
13094 printf %s "checking for perl... " >&6; }
13095 if test -z "`$prereq_check perl $PERL`"; then
13096 as_fn_error $? "Bad perl version" "$LINENO" 5
13097 fi
13098 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
13099 printf "%s\n" "$PERL" >&6; }
13100
13101 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ExtUtils::XSBuilder" >&5
13102 printf %s "checking for ExtUtils::XSBuilder... " >&6; }
13103 if test -z "`$prereq_check ExtUtils::XSBuilder`"; then
13104 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Bad ExtUtils::XSBuilder version" >&5
13105 printf "%s\n" "$as_me: WARNING: Bad ExtUtils::XSBuilder version" >&2;}
13106 fi
13107 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13108 printf "%s\n" "yes" >&6; }
13109
13110 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for mod_perl2" >&5
13111 printf %s "checking for mod_perl2... " >&6; }
13112 if test -z "`$prereq_check mod_perl2`"; then
13113 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Bad mod_perl2 version" >&5
13114 printf "%s\n" "$as_me: WARNING: Bad mod_perl2 version" >&2;}
13115 fi
13116 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13117 printf "%s\n" "yes" >&6; }
13118
13119 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Apache::Test" >&5
13120 printf %s "checking for Apache::Test... " >&6; }
13121 if test -z "`$prereq_check Apache::Test`"; then
13122 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Bad Apache::Test version" >&5
13123 printf "%s\n" "$as_me: WARNING: Bad Apache::Test version" >&2;}
13124 fi
13125 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13126 printf "%s\n" "yes" >&6; }
13127
13128 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ExtUtils::MakeMaker" >&5
13129 printf %s "checking for ExtUtils::MakeMaker... " >&6; }
13130 if test -z "`$prereq_check ExtUtils::MakeMaker`"; then
13131 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Bad ExtUtils::MakeMaker version" >&5
13132 printf "%s\n" "$as_me: WARNING: Bad ExtUtils::MakeMaker version" >&2;}
13133 fi
13134 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13135 printf "%s\n" "yes" >&6; }
13136
13137 fi
13138
13139 if test "x$PROFILE" != "xno"; then
13140 ENABLE_PROFILE_TRUE=
13141 ENABLE_PROFILE_FALSE='#'
13142 else
13143 ENABLE_PROFILE_TRUE='#'
13144 ENABLE_PROFILE_FALSE=
13145 fi
13146
13147 if test "x$PERL_GLUE" != "xno"; then
13148 BUILD_PERL_GLUE_TRUE=
13149 BUILD_PERL_GLUE_FALSE='#'
13150 else
13151 BUILD_PERL_GLUE_TRUE='#'
13152 BUILD_PERL_GLUE_FALSE=
13153 fi
13154
13155 if test -n "`$prereq_check Apache::Test`"; then
13156 HAVE_APACHE_TEST_TRUE=
13157 HAVE_APACHE_TEST_FALSE='#'
13158 else
13159 HAVE_APACHE_TEST_TRUE='#'
13160 HAVE_APACHE_TEST_FALSE=
13161 fi
13162
13163 if test -n "$APACHE2_SRC"; then
13164 BUILD_HTTPD_TRUE=
13165 BUILD_HTTPD_FALSE='#'
13166 else
13167 BUILD_HTTPD_TRUE='#'
13168 BUILD_HTTPD_FALSE=
13169 fi
13170
13171 if test "x$APR_CONFIG" = x`$APR_CONFIG --srcdir`/apr-config; then
13172 BUILD_APR_TRUE=
13173 BUILD_APR_FALSE='#'
13174 else
13175 BUILD_APR_TRUE='#'
13176 BUILD_APR_FALSE=
13177 fi
13178
13179 if test "x$APU_CONFIG" = x`$APU_CONFIG --srcdir`/apu-config; then
13180 BUILD_APU_TRUE=
13181 BUILD_APU_FALSE='#'
13182 else
13183 BUILD_APU_TRUE='#'
13184 BUILD_APU_FALSE=
13185 fi
13186
13187 if test -n "$APACHE1_APXS"; then
13188 HAVE_APACHE1_TRUE=
13189 HAVE_APACHE1_FALSE='#'
13190 else
13191 HAVE_APACHE1_TRUE='#'
13192 HAVE_APACHE1_FALSE=
13193 fi
13194
13195
13196 ac_default_prefix="`$APU_CONFIG --prefix`"
13197
13198
13199 if test "x$APR_INCLUDES" = "x"; then
13200 echo " setting APR_INCLUDES to \""`$APR_CONFIG --includes`"\""
13201 APR_INCLUDES=""`$APR_CONFIG --includes`""
13202 else
13203 apr_addto_bugger=""`$APR_CONFIG --includes`""
13204 for i in $apr_addto_bugger; do
13205 apr_addto_duplicate="0"
13206 for j in $APR_INCLUDES; do
13207 if test "x$i" = "x$j"; then
13208 apr_addto_duplicate="1"
13209 break
13210 fi
13211 done
13212 if test $apr_addto_duplicate = "0"; then
13213 echo " adding \"$i\" to APR_INCLUDES"
13214 APR_INCLUDES="$APR_INCLUDES $i"
13215 fi
13216 done
13217 fi
13218
13219
13220 if test "x$APR_INCLUDES" = "x"; then
13221 echo " setting APR_INCLUDES to \""`$APU_CONFIG --includes`"\""
13222 APR_INCLUDES=""`$APU_CONFIG --includes`""
13223 else
13224 apr_addto_bugger=""`$APU_CONFIG --includes`""
13225 for i in $apr_addto_bugger; do
13226 apr_addto_duplicate="0"
13227 for j in $APR_INCLUDES; do
13228 if test "x$i" = "x$j"; then
13229 apr_addto_duplicate="1"
13230 break
13231 fi
13232 done
13233 if test $apr_addto_duplicate = "0"; then
13234 echo " adding \"$i\" to APR_INCLUDES"
13235 APR_INCLUDES="$APR_INCLUDES $i"
13236 fi
13237 done
13238 fi
13239
13240 APR_LA="`$APR_CONFIG --apr-la-file`"
13241 APU_LA="`$APU_CONFIG --apu-la-file`"
13242
13243 if test "x$APR_LTFLAGS" = "x"; then
13244 echo " setting APR_LTFLAGS to \""`$APR_CONFIG --link-libtool`"\""
13245 APR_LTFLAGS=""`$APR_CONFIG --link-libtool`""
13246 else
13247 apr_addto_bugger=""`$APR_CONFIG --link-libtool`""
13248 for i in $apr_addto_bugger; do
13249 apr_addto_duplicate="0"
13250 for j in $APR_LTFLAGS; do
13251 if test "x$i" = "x$j"; then
13252 apr_addto_duplicate="1"
13253 break
13254 fi
13255 done
13256 if test $apr_addto_duplicate = "0"; then
13257 echo " adding \"$i\" to APR_LTFLAGS"
13258 APR_LTFLAGS="$APR_LTFLAGS $i"
13259 fi
13260 done
13261 fi
13262
13263
13264 if test "x$APR_LTFLAGS" = "x"; then
13265 echo " setting APR_LTFLAGS to \""`$APU_CONFIG --link-libtool`"\""
13266 APR_LTFLAGS=""`$APU_CONFIG --link-libtool`""
13267 else
13268 apr_addto_bugger=""`$APU_CONFIG --link-libtool`""
13269 for i in $apr_addto_bugger; do
13270 apr_addto_duplicate="0"
13271 for j in $APR_LTFLAGS; do
13272 if test "x$i" = "x$j"; then
13273 apr_addto_duplicate="1"
13274 break
13275 fi
13276 done
13277 if test $apr_addto_duplicate = "0"; then
13278 echo " adding \"$i\" to APR_LTFLAGS"
13279 APR_LTFLAGS="$APR_LTFLAGS $i"
13280 fi
13281 done
13282 fi
13283
13284
13285
13286 if test "x$APR_LIBS" = "x"; then
13287 echo " setting APR_LIBS to \""`$APR_CONFIG --libs`"\""
13288 APR_LIBS=""`$APR_CONFIG --libs`""
13289 else
13290 apr_addto_bugger=""`$APR_CONFIG --libs`""
13291 for i in $apr_addto_bugger; do
13292 apr_addto_duplicate="0"
13293 for j in $APR_LIBS; do
13294 if test "x$i" = "x$j"; then
13295 apr_addto_duplicate="1"
13296 break
13297 fi
13298 done
13299 if test $apr_addto_duplicate = "0"; then
13300 echo " adding \"$i\" to APR_LIBS"
13301 APR_LIBS="$APR_LIBS $i"
13302 fi
13303 done
13304 fi
13305
13306
13307 apu_avoid_libs=""
13308 if $APU_CONFIG --avoid-ldap >/dev/null 2>&1; then
13309 apu_avoid_libs="--avoid-ldap"
13310 fi
13311 if $APU_CONFIG --avoid-dbm >/dev/null 2>&1; then
13312 apu_avoid_libs="--avoid-dbm $apu_avoid_libs"
13313 fi
13314
13315 if test "x$OS" = "xsolaris"; then
13316 APU_LIBS="`$APU_CONFIG $apu_avoid_libs --libs | $PERL -pe 's,-lexpat,,'`"
13317 else
13318 APU_LIBS="`$APU_CONFIG $apu_avoid_libs --libs`"
13319 fi
13320
13321 if test "x$APR_LIBS" = "x"; then
13322 echo " setting APR_LIBS to \""$APU_LIBS"\""
13323 APR_LIBS=""$APU_LIBS""
13324 else
13325 apr_addto_bugger=""$APU_LIBS""
13326 for i in $apr_addto_bugger; do
13327 apr_addto_duplicate="0"
13328 for j in $APR_LIBS; do
13329 if test "x$i" = "x$j"; then
13330 apr_addto_duplicate="1"
13331 break
13332 fi
13333 done
13334 if test $apr_addto_duplicate = "0"; then
13335 echo " adding \"$i\" to APR_LIBS"
13336 APR_LIBS="$APR_LIBS $i"
13337 fi
13338 done
13339 fi
13340
13341
13342
13343 if test "x$APR_LDFLAGS" = "x"; then
13344 echo " setting APR_LDFLAGS to \""`$APU_CONFIG --link-ld --ldflags`"\""
13345 APR_LDFLAGS=""`$APU_CONFIG --link-ld --ldflags`""
13346 else
13347 apr_addto_bugger=""`$APU_CONFIG --link-ld --ldflags`""
13348 for i in $apr_addto_bugger; do
13349 apr_addto_duplicate="0"
13350 for j in $APR_LDFLAGS; do
13351 if test "x$i" = "x$j"; then
13352 apr_addto_duplicate="1"
13353 break
13354 fi
13355 done
13356 if test $apr_addto_duplicate = "0"; then
13357 echo " adding \"$i\" to APR_LDFLAGS"
13358 APR_LDFLAGS="$APR_LDFLAGS $i"
13359 fi
13360 done
13361 fi
13362
13363
13364 if test "x$APR_LDFLAGS" = "x"; then
13365 echo " setting APR_LDFLAGS to \""`$APR_CONFIG --link-ld --ldflags`"\""
13366 APR_LDFLAGS=""`$APR_CONFIG --link-ld --ldflags`""
13367 else
13368 apr_addto_bugger=""`$APR_CONFIG --link-ld --ldflags`""
13369 for i in $apr_addto_bugger; do
13370 apr_addto_duplicate="0"
13371 for j in $APR_LDFLAGS; do
13372 if test "x$i" = "x$j"; then
13373 apr_addto_duplicate="1"
13374 break
13375 fi
13376 done
13377 if test $apr_addto_duplicate = "0"; then
13378 echo " adding \"$i\" to APR_LDFLAGS"
13379 APR_LDFLAGS="$APR_LDFLAGS $i"
13380 fi
13381 done
13382 fi
13383
13384
13385 if test -n "$EXPAT_DIR"; then
13386
13387 if test "x$APR_INCLUDES" = "x"; then
13388 echo " setting APR_INCLUDES to \""-I$EXPAT_DIR/include"\""
13389 APR_INCLUDES=""-I$EXPAT_DIR/include""
13390 else
13391 apr_addto_bugger=""-I$EXPAT_DIR/include""
13392 for i in $apr_addto_bugger; do
13393 apr_addto_duplicate="0"
13394 for j in $APR_INCLUDES; do
13395 if test "x$i" = "x$j"; then
13396 apr_addto_duplicate="1"
13397 break
13398 fi
13399 done
13400 if test $apr_addto_duplicate = "0"; then
13401 echo " adding \"$i\" to APR_INCLUDES"
13402 APR_INCLUDES="$APR_INCLUDES $i"
13403 fi
13404 done
13405 fi
13406
13407
13408 if test "x$APR_LTFLAGS" = "x"; then
13409 echo " setting APR_LTFLAGS to \""-L$EXPAT_DIR/lib"\""
13410 APR_LTFLAGS=""-L$EXPAT_DIR/lib""
13411 else
13412 apr_addto_bugger=""-L$EXPAT_DIR/lib""
13413 for i in $apr_addto_bugger; do
13414 apr_addto_duplicate="0"
13415 for j in $APR_LTFLAGS; do
13416 if test "x$i" = "x$j"; then
13417 apr_addto_duplicate="1"
13418 break
13419 fi
13420 done
13421 if test $apr_addto_duplicate = "0"; then
13422 echo " adding \"$i\" to APR_LTFLAGS"
13423 APR_LTFLAGS="$APR_LTFLAGS $i"
13424 fi
13425 done
13426 fi
13427
13428 fi
13429
13430 abs_srcdir=`(cd $srcdir && pwd)`
13431 abs_builddir=`pwd`
13432 top_builddir="$abs_srcdir"
13433
13434 if test "$abs_builddir" != "$abs_srcdir"; then
13435 USE_VPATH=1
13436 fi
13437
13438 if test "x$USE_MAINTAINER_MODE" != "xno"; then
13439
13440 if test "x$CFLAGS" = "x"; then
13441 echo " setting CFLAGS to \"
13442 -fno-strict-aliasing
13443 -Wall -Wmissing-prototypes -Wstrict-prototypes
13444 -Wmissing-declarations -Wwrite-strings -Wcast-qual
13445 -Wfloat-equal -Wshadow -Wpointer-arith
13446 -Wbad-function-cast -Wsign-compare -Waggregate-return
13447 -Wmissing-noreturn -Wmissing-format-attribute -Wpacked
13448 -Wredundant-decls -Wnested-externs -Wdisabled-optimization
13449 -Wno-long-long -Wendif-labels -Wcast-align -Wpacked
13450 \""
13451 CFLAGS="
13452 -fno-strict-aliasing
13453 -Wall -Wmissing-prototypes -Wstrict-prototypes
13454 -Wmissing-declarations -Wwrite-strings -Wcast-qual
13455 -Wfloat-equal -Wshadow -Wpointer-arith
13456 -Wbad-function-cast -Wsign-compare -Waggregate-return
13457 -Wmissing-noreturn -Wmissing-format-attribute -Wpacked
13458 -Wredundant-decls -Wnested-externs -Wdisabled-optimization
13459 -Wno-long-long -Wendif-labels -Wcast-align -Wpacked
13460 "
13461 else
13462 apr_addto_bugger="
13463 -fno-strict-aliasing
13464 -Wall -Wmissing-prototypes -Wstrict-prototypes
13465 -Wmissing-declarations -Wwrite-strings -Wcast-qual
13466 -Wfloat-equal -Wshadow -Wpointer-arith
13467 -Wbad-function-cast -Wsign-compare -Waggregate-return
13468 -Wmissing-noreturn -Wmissing-format-attribute -Wpacked
13469 -Wredundant-decls -Wnested-externs -Wdisabled-optimization
13470 -Wno-long-long -Wendif-labels -Wcast-align -Wpacked
13471 "
13472 for i in $apr_addto_bugger; do
13473 apr_addto_duplicate="0"
13474 for j in $CFLAGS; do
13475 if test "x$i" = "x$j"; then
13476 apr_addto_duplicate="1"
13477 break
13478 fi
13479 done
13480 if test $apr_addto_duplicate = "0"; then
13481 echo " adding \"$i\" to CFLAGS"
13482 CFLAGS="$CFLAGS $i"
13483 fi
13484 done
13485 fi
13486
13487 # -Wdeclaration-after-statement is only supported on gcc 3.4+
13488 fi
13489
13490
13491 if test "x$CPPFLAGS" = "x"; then
13492 echo " setting CPPFLAGS to \""`$APR_CONFIG --cppflags`"\""
13493 CPPFLAGS=""`$APR_CONFIG --cppflags`""
13494 else
13495 apr_addto_bugger=""`$APR_CONFIG --cppflags`""
13496 for i in $apr_addto_bugger; do
13497 apr_addto_duplicate="0"
13498 for j in $CPPFLAGS; do
13499 if test "x$i" = "x$j"; then
13500 apr_addto_duplicate="1"
13501 break
13502 fi
13503 done
13504 if test $apr_addto_duplicate = "0"; then
13505 echo " adding \"$i\" to CPPFLAGS"
13506 CPPFLAGS="$CPPFLAGS $i"
13507 fi
13508 done
13509 fi
13510
13511
13512 get_version="$SHELL $abs_srcdir/build/get-version.sh"
13513 version_hdr="$abs_srcdir/include/apreq_version.h"
13514
13515 # set version data
13516
13517 APREQ_CONFIG="$top_builddir/apreq2-config"
13518
13519 APREQ_MAJOR_VERSION=`$get_version major $version_hdr APREQ`
13520 APREQ_MINOR_VERSION=`$get_version minor $version_hdr APREQ`
13521 APREQ_PATCH_VERSION=`$get_version patch $version_hdr APREQ`
13522 APREQ_DOTTED_VERSION=`$get_version all $version_hdr APREQ`
13523
13524 # XXX: APR_MAJOR_VERSION doesn't yet work for static builds
13525 APREQ_LIBTOOL_CURRENT=`expr $APREQ_MAJOR_VERSION + $APREQ_MINOR_VERSION + $APR_MAJOR_VERSION`
13526 APREQ_LIBTOOL_REVISION=$APREQ_PATCH_VERSION
13527 APREQ_LIBTOOL_AGE=$APREQ_MINOR_VERSION
13528
13529 APREQ_LIBTOOL_VERSION="$APREQ_LIBTOOL_CURRENT:$APREQ_LIBTOOL_REVISION:$APREQ_LIBTOOL_AGE"
13530
13531 APREQ_LIBNAME="apreq$APREQ_MAJOR_VERSION"
13532
13533 echo "lib$APREQ_LIBNAME Version: $APREQ_DOTTED_VERSION"
13534
13535 ## Apparently FC5 doesn't like bsdtar
13536 ## which is the default /usr/bin/tar on FreeBSD
13537 ## by default /usr/ports/archivers/gtar installs here
13538 if test "x$OS" = 'xfreebsd'; then
13539 TAR='/usr/local/bin/gtar'
13540 else
13541 TAR='tar'
13542 fi
13543
13544
13545
13546
13547
13548
13549
13550
13551
13552
13553
13554
13555
13556
13557
13558
13559
13560
13561
13562
13563
13564
13565
13566
13567
13568
13569
13570
13571
13572
13573
13574 if test "x$OS" = "xsolaris"; then
13575 $PERL -pi -e 's,^shrext=,shrext_cmds=,' libtool
13576 fi
13577
13578 ac_config_files="$ac_config_files Makefile include/Makefile library/Makefile library/t/Makefile module/Makefile module/apache2/Makefile glue/Makefile"
13579
13580 ac_config_files="$ac_config_files build/doxygen.conf include/groups.dox"
13581
13582 ac_config_files="$ac_config_files apreq2-config"
13583
13584 cat >confcache <<\_ACEOF
13585 # This file is a shell script that caches the results of configure
13586 # tests run on this system so they can be shared between configure
13587 # scripts and configure runs, see configure's option --config-cache.
13588 # It is not useful on other systems. If it contains results you don't
13589 # want to keep, you may remove or edit it.
13590 #
13591 # config.status only pays attention to the cache file if you give it
13592 # the --recheck option to rerun configure.
13593 #
13594 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13595 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13596 # following values.
13597
13598 _ACEOF
13599
13600 # The following way of writing the cache mishandles newlines in values,
13601 # but we know of no workaround that is simple, portable, and efficient.
13602 # So, we kill variables containing newlines.
13603 # Ultrix sh set writes to stderr and can't be redirected directly,
13604 # and sets the high bit in the cache file unless we assign to the vars.
13605 (
13606 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13607 eval ac_val=\$$ac_var
13608 case $ac_val in #(
13609 *${as_nl}*)
13610 case $ac_var in #(
13611 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13612 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13613 esac
13614 case $ac_var in #(
13615 _ | IFS | as_nl) ;; #(
13616 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13617 *) { eval $ac_var=; unset $ac_var;} ;;
13618 esac ;;
13619 esac
13620 done
13621
13622 (set) 2>&1 |
13623 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13624 *${as_nl}ac_space=\ *)
13625 # `set' does not quote correctly, so add quotes: double-quote
13626 # substitution turns \\\\ into \\, and sed turns \\ into \.
13627 sed -n \
13628 "s/'/'\\\\''/g;
13629 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13630 ;; #(
13631 *)
13632 # `set' quotes correctly as required by POSIX, so do not add quotes.
13633 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13634 ;;
13635 esac |
13636 sort
13637 ) |
13638 sed '
13639 /^ac_cv_env_/b end
13640 t clear
13641 :clear
13642 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
13643 t end
13644 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13645 :end' >>confcache
13646 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13647 if test -w "$cache_file"; then
13648 if test "x$cache_file" != "x/dev/null"; then
13649 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13650 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
13651 if test ! -f "$cache_file" || test -h "$cache_file"; then
13652 cat confcache >"$cache_file"
13653 else
13654 case $cache_file in #(
13655 */* | ?:*)
13656 mv -f confcache "$cache_file"$$ &&
13657 mv -f "$cache_file"$$ "$cache_file" ;; #(
13658 *)
13659 mv -f confcache "$cache_file" ;;
13660 esac
13661 fi
13662 fi
13663 else
13664 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13665 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
13666 fi
13667 fi
13668 rm -f confcache
13669
13670 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13671 # Let make expand exec_prefix.
13672 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13673
13674 DEFS=-DHAVE_CONFIG_H
13675
13676 ac_libobjs=
13677 ac_ltlibobjs=
13678 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13679 # 1. Remove the extension, and $U if already installed.
13680 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13681 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
13682 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13683 # will be set to the directory where LIBOBJS objects are built.
13684 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13685 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13686 done
13687 LIBOBJS=$ac_libobjs
13688
13689 LTLIBOBJS=$ac_ltlibobjs
13690
13691
13692 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
13693 printf %s "checking that generated files are newer than configure... " >&6; }
13694 if test -n "$am_sleep_pid"; then
13695 # Hide warnings about reused PIDs.
13696 wait $am_sleep_pid 2>/dev/null
13697 fi
13698 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
13699 printf "%s\n" "done" >&6; }
13700 if test -n "$EXEEXT"; then
13701 am__EXEEXT_TRUE=
13702 am__EXEEXT_FALSE='#'
13703 else
13704 am__EXEEXT_TRUE='#'
13705 am__EXEEXT_FALSE=
13706 fi
13707
13708 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13709 as_fn_error $? "conditional \"AMDEP\" was never defined.
13710 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13711 fi
13712 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13713 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
13714 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13715 fi
13716 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
13717 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
13718 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13719 fi
13720 if test -z "${ENABLE_PROFILE_TRUE}" && test -z "${ENABLE_PROFILE_FALSE}"; then
13721 as_fn_error $? "conditional \"ENABLE_PROFILE\" was never defined.
13722 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13723 fi
13724 if test -z "${BUILD_PERL_GLUE_TRUE}" && test -z "${BUILD_PERL_GLUE_FALSE}"; then
13725 as_fn_error $? "conditional \"BUILD_PERL_GLUE\" was never defined.
13726 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13727 fi
13728 if test -z "${HAVE_APACHE_TEST_TRUE}" && test -z "${HAVE_APACHE_TEST_FALSE}"; then
13729 as_fn_error $? "conditional \"HAVE_APACHE_TEST\" was never defined.
13730 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13731 fi
13732 if test -z "${BUILD_HTTPD_TRUE}" && test -z "${BUILD_HTTPD_FALSE}"; then
13733 as_fn_error $? "conditional \"BUILD_HTTPD\" was never defined.
13734 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13735 fi
13736 if test -z "${BUILD_APR_TRUE}" && test -z "${BUILD_APR_FALSE}"; then
13737 as_fn_error $? "conditional \"BUILD_APR\" was never defined.
13738 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13739 fi
13740 if test -z "${BUILD_APU_TRUE}" && test -z "${BUILD_APU_FALSE}"; then
13741 as_fn_error $? "conditional \"BUILD_APU\" was never defined.
13742 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13743 fi
13744 if test -z "${HAVE_APACHE1_TRUE}" && test -z "${HAVE_APACHE1_FALSE}"; then
13745 as_fn_error $? "conditional \"HAVE_APACHE1\" was never defined.
13746 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13747 fi
13748
13749 : "${CONFIG_STATUS=./config.status}"
13750 ac_write_fail=0
13751 ac_clean_files_save=$ac_clean_files
13752 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13753 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13754 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
13755 as_write_fail=0
13756 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13757 #! $SHELL
13758 # Generated by $as_me.
13759 # Run this file to recreate the current configuration.
13760 # Compiler output produced by configure, useful for debugging
13761 # configure, is in config.log if it exists.
13762
13763 debug=false
13764 ac_cs_recheck=false
13765 ac_cs_silent=false
13766
13767 SHELL=\${CONFIG_SHELL-$SHELL}
13768 export SHELL
13769 _ASEOF
13770 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13771 ## -------------------- ##
13772 ## M4sh Initialization. ##
13773 ## -------------------- ##
13774
13775 # Be more Bourne compatible
13776 DUALCASE=1; export DUALCASE # for MKS sh
13777 as_nop=:
13778 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
13779 then :
13780 emulate sh
13781 NULLCMD=:
13782 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13783 # is contrary to our usage. Disable this feature.
13784 alias -g '${1+"$@"}'='"$@"'
13785 setopt NO_GLOB_SUBST
13786 else $as_nop
13787 case `(set -o) 2>/dev/null` in #(
13788 *posix*) :
13789 set -o posix ;; #(
13790 *) :
13791 ;;
13792 esac
13793 fi
13794
13795
13796
13797 # Reset variables that may have inherited troublesome values from
13798 # the environment.
13799
13800 # IFS needs to be set, to space, tab, and newline, in precisely that order.
13801 # (If _AS_PATH_WALK were called with IFS unset, it would have the
13802 # side effect of setting IFS to empty, thus disabling word splitting.)
13803 # Quoting is to prevent editors from complaining about space-tab.
13804 as_nl='
13805 '
13806 export as_nl
13807 IFS=" "" $as_nl"
13808
13809 PS1='$ '
13810 PS2='> '
13811 PS4='+ '
13812
13813 # Ensure predictable behavior from utilities with locale-dependent output.
13814 LC_ALL=C
13815 export LC_ALL
13816 LANGUAGE=C
13817 export LANGUAGE
13818
13819 # We cannot yet rely on "unset" to work, but we need these variables
13820 # to be unset--not just set to an empty or harmless value--now, to
13821 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
13822 # also avoids known problems related to "unset" and subshell syntax
13823 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
13824 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
13825 do eval test \${$as_var+y} \
13826 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13827 done
13828
13829 # Ensure that fds 0, 1, and 2 are open.
13830 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
13831 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
13832 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
13833
13834 # The user is always right.
13835 if ${PATH_SEPARATOR+false} :; then
13836 PATH_SEPARATOR=:
13837 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13838 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13839 PATH_SEPARATOR=';'
13840 }
13841 fi
13842
13843
13844 # Find who we are. Look in the path if we contain no directory separator.
13845 as_myself=
13846 case $0 in #((
13847 *[\\/]* ) as_myself=$0 ;;
13848 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13849 for as_dir in $PATH
13850 do
13851 IFS=$as_save_IFS
13852 case $as_dir in #(((
13853 '') as_dir=./ ;;
13854 */) ;;
13855 *) as_dir=$as_dir/ ;;
13856 esac
13857 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
13858 done
13859 IFS=$as_save_IFS
13860
13861 ;;
13862 esac
13863 # We did not find ourselves, most probably we were run as `sh COMMAND'
13864 # in which case we are not to be found in the path.
13865 if test "x$as_myself" = x; then
13866 as_myself=$0
13867 fi
13868 if test ! -f "$as_myself"; then
13869 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13870 exit 1
13871 fi
13872
13873
13874
13875 # as_fn_error STATUS ERROR [LINENO LOG_FD]
13876 # ----------------------------------------
13877 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13878 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13879 # script with STATUS, using 1 if that was 0.
13880 as_fn_error ()
13881 {
13882 as_status=$1; test $as_status -eq 0 && as_status=1
13883 if test "$4"; then
13884 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13885 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
13886 fi
13887 printf "%s\n" "$as_me: error: $2" >&2
13888 as_fn_exit $as_status
13889 } # as_fn_error
13890
13891
13892
13893 # as_fn_set_status STATUS
13894 # -----------------------
13895 # Set $? to STATUS, without forking.
13896 as_fn_set_status ()
13897 {
13898 return $1
13899 } # as_fn_set_status
13900
13901 # as_fn_exit STATUS
13902 # -----------------
13903 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13904 as_fn_exit ()
13905 {
13906 set +e
13907 as_fn_set_status $1
13908 exit $1
13909 } # as_fn_exit
13910
13911 # as_fn_unset VAR
13912 # ---------------
13913 # Portably unset VAR.
13914 as_fn_unset ()
13915 {
13916 { eval $1=; unset $1;}
13917 }
13918 as_unset=as_fn_unset
13919
13920 # as_fn_append VAR VALUE
13921 # ----------------------
13922 # Append the text in VALUE to the end of the definition contained in VAR. Take
13923 # advantage of any shell optimizations that allow amortized linear growth over
13924 # repeated appends, instead of the typical quadratic growth present in naive
13925 # implementations.
13926 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
13927 then :
13928 eval 'as_fn_append ()
13929 {
13930 eval $1+=\$2
13931 }'
13932 else $as_nop
13933 as_fn_append ()
13934 {
13935 eval $1=\$$1\$2
13936 }
13937 fi # as_fn_append
13938
13939 # as_fn_arith ARG...
13940 # ------------------
13941 # Perform arithmetic evaluation on the ARGs, and store the result in the
13942 # global $as_val. Take advantage of shells that can avoid forks. The arguments
13943 # must be portable across $(()) and expr.
13944 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
13945 then :
13946 eval 'as_fn_arith ()
13947 {
13948 as_val=$(( $* ))
13949 }'
13950 else $as_nop
13951 as_fn_arith ()
13952 {
13953 as_val=`expr "$@" || test $? -eq 1`
13954 }
13955 fi # as_fn_arith
13956
13957
13958 if expr a : '\(a\)' >/dev/null 2>&1 &&
13959 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13960 as_expr=expr
13961 else
13962 as_expr=false
13963 fi
13964
13965 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13966 as_basename=basename
13967 else
13968 as_basename=false
13969 fi
13970
13971 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13972 as_dirname=dirname
13973 else
13974 as_dirname=false
13975 fi
13976
13977 as_me=`$as_basename -- "$0" ||
13978 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13979 X"$0" : 'X\(//\)$' \| \
13980 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13981 printf "%s\n" X/"$0" |
13982 sed '/^.*\/\([^/][^/]*\)\/*$/{
13983 s//\1/
13984 q
13985 }
13986 /^X\/\(\/\/\)$/{
13987 s//\1/
13988 q
13989 }
13990 /^X\/\(\/\).*/{
13991 s//\1/
13992 q
13993 }
13994 s/.*/./; q'`
13995
13996 # Avoid depending upon Character Ranges.
13997 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13998 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13999 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14000 as_cr_digits='0123456789'
14001 as_cr_alnum=$as_cr_Letters$as_cr_digits
14002
14003
14004 # Determine whether it's possible to make 'echo' print without a newline.
14005 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
14006 # for compatibility with existing Makefiles.
14007 ECHO_C= ECHO_N= ECHO_T=
14008 case `echo -n x` in #(((((
14009 -n*)
14010 case `echo 'xy\c'` in
14011 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14012 xy) ECHO_C='\c';;
14013 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14014 ECHO_T=' ';;
14015 esac;;
14016 *)
14017 ECHO_N='-n';;
14018 esac
14019
14020 # For backward compatibility with old third-party macros, we provide
14021 # the shell variables $as_echo and $as_echo_n. New code should use
14022 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
14023 as_echo='printf %s\n'
14024 as_echo_n='printf %s'
14025
14026 rm -f conf$$ conf$$.exe conf$$.file
14027 if test -d conf$$.dir; then
14028 rm -f conf$$.dir/conf$$.file
14029 else
14030 rm -f conf$$.dir
14031 mkdir conf$$.dir 2>/dev/null
14032 fi
14033 if (echo >conf$$.file) 2>/dev/null; then
14034 if ln -s conf$$.file conf$$ 2>/dev/null; then
14035 as_ln_s='ln -s'
14036 # ... but there are two gotchas:
14037 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14038 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14039 # In both cases, we have to default to `cp -pR'.
14040 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14041 as_ln_s='cp -pR'
14042 elif ln conf$$.file conf$$ 2>/dev/null; then
14043 as_ln_s=ln
14044 else
14045 as_ln_s='cp -pR'
14046 fi
14047 else
14048 as_ln_s='cp -pR'
14049 fi
14050 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14051 rmdir conf$$.dir 2>/dev/null
14052
14053
14054 # as_fn_mkdir_p
14055 # -------------
14056 # Create "$as_dir" as a directory, including parents if necessary.
14057 as_fn_mkdir_p ()
14058 {
14059
14060 case $as_dir in #(
14061 -*) as_dir=./$as_dir;;
14062 esac
14063 test -d "$as_dir" || eval $as_mkdir_p || {
14064 as_dirs=
14065 while :; do
14066 case $as_dir in #(
14067 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14068 *) as_qdir=$as_dir;;
14069 esac
14070 as_dirs="'$as_qdir' $as_dirs"
14071 as_dir=`$as_dirname -- "$as_dir" ||
14072 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14073 X"$as_dir" : 'X\(//\)[^/]' \| \
14074 X"$as_dir" : 'X\(//\)$' \| \
14075 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14076 printf "%s\n" X"$as_dir" |
14077 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14078 s//\1/
14079 q
14080 }
14081 /^X\(\/\/\)[^/].*/{
14082 s//\1/
14083 q
14084 }
14085 /^X\(\/\/\)$/{
14086 s//\1/
14087 q
14088 }
14089 /^X\(\/\).*/{
14090 s//\1/
14091 q
14092 }
14093 s/.*/./; q'`
14094 test -d "$as_dir" && break
14095 done
14096 test -z "$as_dirs" || eval "mkdir $as_dirs"
14097 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
14098
14099
14100 } # as_fn_mkdir_p
14101 if mkdir -p . 2>/dev/null; then
14102 as_mkdir_p='mkdir -p "$as_dir"'
14103 else
14104 test -d ./-p && rmdir ./-p
14105 as_mkdir_p=false
14106 fi
14107
14108
14109 # as_fn_executable_p FILE
14110 # -----------------------
14111 # Test if FILE is an executable regular file.
14112 as_fn_executable_p ()
14113 {
14114 test -f "$1" && test -x "$1"
14115 } # as_fn_executable_p
14116 as_test_x='test -x'
14117 as_executable_p=as_fn_executable_p
14118
14119 # Sed expression to map a string onto a valid CPP name.
14120 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14121
14122 # Sed expression to map a string onto a valid variable name.
14123 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14124
14125
14126 exec 6>&1
14127 ## ----------------------------------- ##
14128 ## Main body of $CONFIG_STATUS script. ##
14129 ## ----------------------------------- ##
14130 _ASEOF
14131 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14132
14133 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14134 # Save the log message, to keep $0 and so on meaningful, and to
14135 # report actual input values of CONFIG_FILES etc. instead of their
14136 # values after options handling.
14137 ac_log="
14138 This file was extended by Apache HTTP Server Request Library $as_me 2.17, which was
14139 generated by GNU Autoconf 2.71. Invocation command line was
14140
14141 CONFIG_FILES = $CONFIG_FILES
14142 CONFIG_HEADERS = $CONFIG_HEADERS
14143 CONFIG_LINKS = $CONFIG_LINKS
14144 CONFIG_COMMANDS = $CONFIG_COMMANDS
14145 $ $0 $@
14146
14147 on `(hostname || uname -n) 2>/dev/null | sed 1q`
14148 "
14149
14150 _ACEOF
14151
14152 case $ac_config_files in *"
14153 "*) set x $ac_config_files; shift; ac_config_files=$*;;
14154 esac
14155
14156 case $ac_config_headers in *"
14157 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
14158 esac
14159
14160
14161 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14162 # Files that config.status was made for.
14163 config_files="$ac_config_files"
14164 config_headers="$ac_config_headers"
14165 config_commands="$ac_config_commands"
14166
14167 _ACEOF
14168
14169 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14170 ac_cs_usage="\
14171 \`$as_me' instantiates files and other configuration actions
14172 from templates according to the current configuration. Unless the files
14173 and actions are specified as TAGs, all are instantiated by default.
14174
14175 Usage: $0 [OPTION]... [TAG]...
14176
14177 -h, --help print this help, then exit
14178 -V, --version print version number and configuration settings, then exit
14179 --config print configuration, then exit
14180 -q, --quiet, --silent
14181 do not print progress messages
14182 -d, --debug don't remove temporary files
14183 --recheck update $as_me by reconfiguring in the same conditions
14184 --file=FILE[:TEMPLATE]
14185 instantiate the configuration file FILE
14186 --header=FILE[:TEMPLATE]
14187 instantiate the configuration header FILE
14188
14189 Configuration files:
14190 $config_files
14191
14192 Configuration headers:
14193 $config_headers
14194
14195 Configuration commands:
14196 $config_commands
14197
14198 Report bugs to <[email protected]>."
14199
14200 _ACEOF
14201 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
14202 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
14203 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14204 ac_cs_config='$ac_cs_config_escaped'
14205 ac_cs_version="\\
14206 Apache HTTP Server Request Library config.status 2.17
14207 configured by $0, generated by GNU Autoconf 2.71,
14208 with options \\"\$ac_cs_config\\"
14209
14210 Copyright (C) 2021 Free Software Foundation, Inc.
14211 This config.status script is free software; the Free Software Foundation
14212 gives unlimited permission to copy, distribute and modify it."
14213
14214 ac_pwd='$ac_pwd'
14215 srcdir='$srcdir'
14216 INSTALL='$INSTALL'
14217 MKDIR_P='$MKDIR_P'
14218 AWK='$AWK'
14219 test -n "\$AWK" || AWK=awk
14220 _ACEOF
14221
14222 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14223 # The default lists apply if the user does not specify any file.
14224 ac_need_defaults=:
14225 while test $# != 0
14226 do
14227 case $1 in
14228 --*=?*)
14229 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14230 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14231 ac_shift=:
14232 ;;
14233 --*=)
14234 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14235 ac_optarg=
14236 ac_shift=:
14237 ;;
14238 *)
14239 ac_option=$1
14240 ac_optarg=$2
14241 ac_shift=shift
14242 ;;
14243 esac
14244
14245 case $ac_option in
14246 # Handling of the options.
14247 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14248 ac_cs_recheck=: ;;
14249 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14250 printf "%s\n" "$ac_cs_version"; exit ;;
14251 --config | --confi | --conf | --con | --co | --c )
14252 printf "%s\n" "$ac_cs_config"; exit ;;
14253 --debug | --debu | --deb | --de | --d | -d )
14254 debug=: ;;
14255 --file | --fil | --fi | --f )
14256 $ac_shift
14257 case $ac_optarg in
14258 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14259 '') as_fn_error $? "missing file argument" ;;
14260 esac
14261 as_fn_append CONFIG_FILES " '$ac_optarg'"
14262 ac_need_defaults=false;;
14263 --header | --heade | --head | --hea )
14264 $ac_shift
14265 case $ac_optarg in
14266 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14267 esac
14268 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
14269 ac_need_defaults=false;;
14270 --he | --h)
14271 # Conflict between --help and --header
14272 as_fn_error $? "ambiguous option: \`$1'
14273 Try \`$0 --help' for more information.";;
14274 --help | --hel | -h )
14275 printf "%s\n" "$ac_cs_usage"; exit ;;
14276 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14277 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14278 ac_cs_silent=: ;;
14279
14280 # This is an error.
14281 -*) as_fn_error $? "unrecognized option: \`$1'
14282 Try \`$0 --help' for more information." ;;
14283
14284 *) as_fn_append ac_config_targets " $1"
14285 ac_need_defaults=false ;;
14286
14287 esac
14288 shift
14289 done
14290
14291 ac_configure_extra_args=
14292
14293 if $ac_cs_silent; then
14294 exec 6>/dev/null
14295 ac_configure_extra_args="$ac_configure_extra_args --silent"
14296 fi
14297
14298 _ACEOF
14299 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14300 if \$ac_cs_recheck; then
14301 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14302 shift
14303 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
14304 CONFIG_SHELL='$SHELL'
14305 export CONFIG_SHELL
14306 exec "\$@"
14307 fi
14308
14309 _ACEOF
14310 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14311 exec 5>>config.log
14312 {
14313 echo
14314 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14315 ## Running $as_me. ##
14316 _ASBOX
14317 printf "%s\n" "$ac_log"
14318 } >&5
14319
14320 _ACEOF
14321 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14322 #
14323 # INIT-COMMANDS
14324 #
14325 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
14326
14327
14328 # The HP-UX ksh and POSIX shell print the target directory to stdout
14329 # if CDPATH is set.
14330 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14331
14332 sed_quote_subst='$sed_quote_subst'
14333 double_quote_subst='$double_quote_subst'
14334 delay_variable_subst='$delay_variable_subst'
14335 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
14336 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
14337 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
14338 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
14339 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
14340 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
14341 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
14342 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
14343 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
14344 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
14345 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
14346 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
14347 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
14348 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
14349 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
14350 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
14351 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
14352 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
14353 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
14354 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
14355 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
14356 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
14357 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
14358 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
14359 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
14360 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
14361 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
14362 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
14363 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
14364 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
14365 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
14366 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
14367 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
14368 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
14369 FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`'
14370 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
14371 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
14372 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
14373 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
14374 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
14375 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
14376 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
14377 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
14378 lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
14379 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
14380 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
14381 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
14382 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
14383 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14384 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14385 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
14386 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
14387 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
14388 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
14389 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
14390 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
14391 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
14392 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
14393 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
14394 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
14395 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"`'
14396 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
14397 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
14398 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
14399 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
14400 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
14401 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
14402 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
14403 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
14404 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
14405 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
14406 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
14407 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
14408 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
14409 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
14410 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
14411 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
14412 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
14413 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
14414 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
14415 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
14416 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14417 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
14418 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
14419 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
14420 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
14421 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
14422 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
14423 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14424 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
14425 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14426 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
14427 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14428 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
14429 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
14430 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
14431 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
14432 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
14433 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
14434 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
14435 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
14436 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
14437 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
14438 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
14439 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
14440 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
14441 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
14442 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
14443 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
14444 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
14445 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
14446 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
14447 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
14448 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
14449 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
14450 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
14451 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
14452 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
14453 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
14454 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
14455 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
14456 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
14457 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
14458 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14459 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14460 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
14461 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
14462 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
14463 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
14464 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
14465 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
14466 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
14467 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
14468 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
14469 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
14470 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
14471 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
14472
14473 LTCC='$LTCC'
14474 LTCFLAGS='$LTCFLAGS'
14475 compiler='$compiler_DEFAULT'
14476
14477 # A function that is used when there is no print builtin or printf.
14478 func_fallback_echo ()
14479 {
14480 eval 'cat <<_LTECHO_EOF
14481 \$1
14482 _LTECHO_EOF'
14483 }
14484
14485 # Quote evaled strings.
14486 for var in SHELL \
14487 ECHO \
14488 PATH_SEPARATOR \
14489 SED \
14490 GREP \
14491 EGREP \
14492 FGREP \
14493 LD \
14494 NM \
14495 LN_S \
14496 lt_SP2NL \
14497 lt_NL2SP \
14498 reload_flag \
14499 FILECMD \
14500 OBJDUMP \
14501 deplibs_check_method \
14502 file_magic_cmd \
14503 file_magic_glob \
14504 want_nocaseglob \
14505 DLLTOOL \
14506 sharedlib_from_linklib_cmd \
14507 AR \
14508 archiver_list_spec \
14509 STRIP \
14510 RANLIB \
14511 CC \
14512 CFLAGS \
14513 compiler \
14514 lt_cv_sys_global_symbol_pipe \
14515 lt_cv_sys_global_symbol_to_cdecl \
14516 lt_cv_sys_global_symbol_to_import \
14517 lt_cv_sys_global_symbol_to_c_name_address \
14518 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
14519 lt_cv_nm_interface \
14520 nm_file_list_spec \
14521 lt_cv_truncate_bin \
14522 lt_prog_compiler_no_builtin_flag \
14523 lt_prog_compiler_pic \
14524 lt_prog_compiler_wl \
14525 lt_prog_compiler_static \
14526 lt_cv_prog_compiler_c_o \
14527 need_locks \
14528 MANIFEST_TOOL \
14529 DSYMUTIL \
14530 NMEDIT \
14531 LIPO \
14532 OTOOL \
14533 OTOOL64 \
14534 shrext_cmds \
14535 export_dynamic_flag_spec \
14536 whole_archive_flag_spec \
14537 compiler_needs_object \
14538 with_gnu_ld \
14539 allow_undefined_flag \
14540 no_undefined_flag \
14541 hardcode_libdir_flag_spec \
14542 hardcode_libdir_separator \
14543 exclude_expsyms \
14544 include_expsyms \
14545 file_list_spec \
14546 variables_saved_for_relink \
14547 libname_spec \
14548 library_names_spec \
14549 soname_spec \
14550 install_override_mode \
14551 finish_eval \
14552 old_striplib \
14553 striplib; do
14554 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14555 *[\\\\\\\`\\"\\\$]*)
14556 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
14557 ;;
14558 *)
14559 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14560 ;;
14561 esac
14562 done
14563
14564 # Double-quote double-evaled strings.
14565 for var in reload_cmds \
14566 old_postinstall_cmds \
14567 old_postuninstall_cmds \
14568 old_archive_cmds \
14569 extract_expsyms_cmds \
14570 old_archive_from_new_cmds \
14571 old_archive_from_expsyms_cmds \
14572 archive_cmds \
14573 archive_expsym_cmds \
14574 module_cmds \
14575 module_expsym_cmds \
14576 export_symbols_cmds \
14577 prelink_cmds \
14578 postlink_cmds \
14579 postinstall_cmds \
14580 postuninstall_cmds \
14581 finish_cmds \
14582 sys_lib_search_path_spec \
14583 configure_time_dlsearch_path \
14584 configure_time_lt_sys_library_path; do
14585 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14586 *[\\\\\\\`\\"\\\$]*)
14587 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
14588 ;;
14589 *)
14590 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14591 ;;
14592 esac
14593 done
14594
14595 ac_aux_dir='$ac_aux_dir'
14596
14597 # See if we are running on zsh, and set the options that allow our
14598 # commands through without removal of \ escapes INIT.
14599 if test -n "\${ZSH_VERSION+set}"; then
14600 setopt NO_GLOB_SUBST
14601 fi
14602
14603
14604 PACKAGE='$PACKAGE'
14605 VERSION='$VERSION'
14606 RM='$RM'
14607 ofile='$ofile'
14608
14609
14610
14611
14612 _ACEOF
14613
14614 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14615
14616 # Handling of arguments.
14617 for ac_config_target in $ac_config_targets
14618 do
14619 case $ac_config_target in
14620 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
14621 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
14622 "include/apreq_config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/apreq_config.h" ;;
14623 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14624 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
14625 "library/Makefile") CONFIG_FILES="$CONFIG_FILES library/Makefile" ;;
14626 "library/t/Makefile") CONFIG_FILES="$CONFIG_FILES library/t/Makefile" ;;
14627 "module/Makefile") CONFIG_FILES="$CONFIG_FILES module/Makefile" ;;
14628 "module/apache2/Makefile") CONFIG_FILES="$CONFIG_FILES module/apache2/Makefile" ;;
14629 "glue/Makefile") CONFIG_FILES="$CONFIG_FILES glue/Makefile" ;;
14630 "build/doxygen.conf") CONFIG_FILES="$CONFIG_FILES build/doxygen.conf" ;;
14631 "include/groups.dox") CONFIG_FILES="$CONFIG_FILES include/groups.dox" ;;
14632 "apreq2-config") CONFIG_FILES="$CONFIG_FILES apreq2-config" ;;
14633
14634 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14635 esac
14636 done
14637
14638
14639 # If the user did not use the arguments to specify the items to instantiate,
14640 # then the envvar interface is used. Set only those that are not.
14641 # We use the long form for the default assignment because of an extremely
14642 # bizarre bug on SunOS 4.1.3.
14643 if $ac_need_defaults; then
14644 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
14645 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
14646 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
14647 fi
14648
14649 # Have a temporary directory for convenience. Make it in the build tree
14650 # simply because there is no reason against having it here, and in addition,
14651 # creating and moving files from /tmp can sometimes cause problems.
14652 # Hook for its removal unless debugging.
14653 # Note that there is a small window in which the directory will not be cleaned:
14654 # after its creation but before its name has been assigned to `$tmp'.
14655 $debug ||
14656 {
14657 tmp= ac_tmp=
14658 trap 'exit_status=$?
14659 : "${ac_tmp:=$tmp}"
14660 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
14661 ' 0
14662 trap 'as_fn_exit 1' 1 2 13 15
14663 }
14664 # Create a (secure) tmp directory for tmp files.
14665
14666 {
14667 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14668 test -d "$tmp"
14669 } ||
14670 {
14671 tmp=./conf$$-$RANDOM
14672 (umask 077 && mkdir "$tmp")
14673 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
14674 ac_tmp=$tmp
14675
14676 # Set up the scripts for CONFIG_FILES section.
14677 # No need to generate them if there are no CONFIG_FILES.
14678 # This happens for instance with `./config.status config.h'.
14679 if test -n "$CONFIG_FILES"; then
14680
14681
14682 ac_cr=`echo X | tr X '\015'`
14683 # On cygwin, bash can eat \r inside `` if the user requested igncr.
14684 # But we know of no other shell where ac_cr would be empty at this
14685 # point, so we can use a bashism as a fallback.
14686 if test "x$ac_cr" = x; then
14687 eval ac_cr=\$\'\\r\'
14688 fi
14689 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14690 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14691 ac_cs_awk_cr='\\r'
14692 else
14693 ac_cs_awk_cr=$ac_cr
14694 fi
14695
14696 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
14697 _ACEOF
14698
14699
14700 {
14701 echo "cat >conf$$subs.awk <<_ACEOF" &&
14702 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14703 echo "_ACEOF"
14704 } >conf$$subs.sh ||
14705 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14706 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
14707 ac_delim='%!_!# '
14708 for ac_last_try in false false false false false :; do
14709 . ./conf$$subs.sh ||
14710 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14711
14712 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14713 if test $ac_delim_n = $ac_delim_num; then
14714 break
14715 elif $ac_last_try; then
14716 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14717 else
14718 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14719 fi
14720 done
14721 rm -f conf$$subs.sh
14722
14723 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14724 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
14725 _ACEOF
14726 sed -n '
14727 h
14728 s/^/S["/; s/!.*/"]=/
14729 p
14730 g
14731 s/^[^!]*!//
14732 :repl
14733 t repl
14734 s/'"$ac_delim"'$//
14735 t delim
14736 :nl
14737 h
14738 s/\(.\{148\}\)..*/\1/
14739 t more1
14740 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14741 p
14742 n
14743 b repl
14744 :more1
14745 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14746 p
14747 g
14748 s/.\{148\}//
14749 t nl
14750 :delim
14751 h
14752 s/\(.\{148\}\)..*/\1/
14753 t more2
14754 s/["\\]/\\&/g; s/^/"/; s/$/"/
14755 p
14756 b
14757 :more2
14758 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14759 p
14760 g
14761 s/.\{148\}//
14762 t delim
14763 ' <conf$$subs.awk | sed '
14764 /^[^""]/{
14765 N
14766 s/\n//
14767 }
14768 ' >>$CONFIG_STATUS || ac_write_fail=1
14769 rm -f conf$$subs.awk
14770 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14771 _ACAWK
14772 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
14773 for (key in S) S_is_set[key] = 1
14774 FS = ""
14775
14776 }
14777 {
14778 line = $ 0
14779 nfields = split(line, field, "@")
14780 substed = 0
14781 len = length(field[1])
14782 for (i = 2; i < nfields; i++) {
14783 key = field[i]
14784 keylen = length(key)
14785 if (S_is_set[key]) {
14786 value = S[key]
14787 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14788 len += length(value) + length(field[++i])
14789 substed = 1
14790 } else
14791 len += 1 + keylen
14792 }
14793
14794 print line
14795 }
14796
14797 _ACAWK
14798 _ACEOF
14799 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14800 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14801 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14802 else
14803 cat
14804 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
14805 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
14806 _ACEOF
14807
14808 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
14809 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
14810 # trailing colons and then remove the whole line if VPATH becomes empty
14811 # (actually we leave an empty line to preserve line numbers).
14812 if test "x$srcdir" = x.; then
14813 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
14814 h
14815 s///
14816 s/^/:/
14817 s/[ ]*$/:/
14818 s/:\$(srcdir):/:/g
14819 s/:\${srcdir}:/:/g
14820 s/:@srcdir@:/:/g
14821 s/^:*//
14822 s/:*$//
14823 x
14824 s/\(=[ ]*\).*/\1/
14825 G
14826 s/\n//
14827 s/^[^=]*=[ ]*$//
14828 }'
14829 fi
14830
14831 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14832 fi # test -n "$CONFIG_FILES"
14833
14834 # Set up the scripts for CONFIG_HEADERS section.
14835 # No need to generate them if there are no CONFIG_HEADERS.
14836 # This happens for instance with `./config.status Makefile'.
14837 if test -n "$CONFIG_HEADERS"; then
14838 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
14839 BEGIN {
14840 _ACEOF
14841
14842 # Transform confdefs.h into an awk script `defines.awk', embedded as
14843 # here-document in config.status, that substitutes the proper values into
14844 # config.h.in to produce config.h.
14845
14846 # Create a delimiter string that does not exist in confdefs.h, to ease
14847 # handling of long lines.
14848 ac_delim='%!_!# '
14849 for ac_last_try in false false :; do
14850 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
14851 if test -z "$ac_tt"; then
14852 break
14853 elif $ac_last_try; then
14854 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
14855 else
14856 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14857 fi
14858 done
14859
14860 # For the awk script, D is an array of macro values keyed by name,
14861 # likewise P contains macro parameters if any. Preserve backslash
14862 # newline sequences.
14863
14864 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14865 sed -n '
14866 s/.\{148\}/&'"$ac_delim"'/g
14867 t rset
14868 :rset
14869 s/^[ ]*#[ ]*define[ ][ ]*/ /
14870 t def
14871 d
14872 :def
14873 s/\\$//
14874 t bsnl
14875 s/["\\]/\\&/g
14876 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14877 D["\1"]=" \3"/p
14878 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
14879 d
14880 :bsnl
14881 s/["\\]/\\&/g
14882 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14883 D["\1"]=" \3\\\\\\n"\\/p
14884 t cont
14885 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14886 t cont
14887 d
14888 :cont
14889 n
14890 s/.\{148\}/&'"$ac_delim"'/g
14891 t clear
14892 :clear
14893 s/\\$//
14894 t bsnlc
14895 s/["\\]/\\&/g; s/^/"/; s/$/"/p
14896 d
14897 :bsnlc
14898 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14899 b cont
14900 ' <confdefs.h | sed '
14901 s/'"$ac_delim"'/"\\\
14902 "/g' >>$CONFIG_STATUS || ac_write_fail=1
14903
14904 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14905 for (key in D) D_is_set[key] = 1
14906 FS = ""
14907 }
14908 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14909 line = \$ 0
14910 split(line, arg, " ")
14911 if (arg[1] == "#") {
14912 defundef = arg[2]
14913 mac1 = arg[3]
14914 } else {
14915 defundef = substr(arg[1], 2)
14916 mac1 = arg[2]
14917 }
14918 split(mac1, mac2, "(") #)
14919 macro = mac2[1]
14920 prefix = substr(line, 1, index(line, defundef) - 1)
14921 if (D_is_set[macro]) {
14922 # Preserve the white space surrounding the "#".
14923 print prefix "define", macro P[macro] D[macro]
14924 next
14925 } else {
14926 # Replace #undef with comments. This is necessary, for example,
14927 # in the case of _POSIX_SOURCE, which is predefined and required
14928 # on some systems where configure will not decide to define it.
14929 if (defundef == "undef") {
14930 print "/*", prefix defundef, macro, "*/"
14931 next
14932 }
14933 }
14934 }
14935 { print }
14936 _ACAWK
14937 _ACEOF
14938 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14939 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
14940 fi # test -n "$CONFIG_HEADERS"
14941
14942
14943 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
14944 shift
14945 for ac_tag
14946 do
14947 case $ac_tag in
14948 :[FHLC]) ac_mode=$ac_tag; continue;;
14949 esac
14950 case $ac_mode$ac_tag in
14951 :[FHL]*:*);;
14952 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
14953 :[FH]-) ac_tag=-:-;;
14954 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14955 esac
14956 ac_save_IFS=$IFS
14957 IFS=:
14958 set x $ac_tag
14959 IFS=$ac_save_IFS
14960 shift
14961 ac_file=$1
14962 shift
14963
14964 case $ac_mode in
14965 :L) ac_source=$1;;
14966 :[FH])
14967 ac_file_inputs=
14968 for ac_f
14969 do
14970 case $ac_f in
14971 -) ac_f="$ac_tmp/stdin";;
14972 *) # Look for the file first in the build tree, then in the source tree
14973 # (if the path is not absolute). The absolute path cannot be DOS-style,
14974 # because $ac_f cannot contain `:'.
14975 test -f "$ac_f" ||
14976 case $ac_f in
14977 [\\/$]*) false;;
14978 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14979 esac ||
14980 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14981 esac
14982 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14983 as_fn_append ac_file_inputs " '$ac_f'"
14984 done
14985
14986 # Let's still pretend it is `configure' which instantiates (i.e., don't
14987 # use $as_me), people would be surprised to read:
14988 # /* config.h. Generated by config.status. */
14989 configure_input='Generated from '`
14990 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14991 `' by configure.'
14992 if test x"$ac_file" != x-; then
14993 configure_input="$ac_file. $configure_input"
14994 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14995 printf "%s\n" "$as_me: creating $ac_file" >&6;}
14996 fi
14997 # Neutralize special characters interpreted by sed in replacement strings.
14998 case $configure_input in #(
14999 *\&* | *\|* | *\\* )
15000 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
15001 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15002 *) ac_sed_conf_input=$configure_input;;
15003 esac
15004
15005 case $ac_tag in
15006 *:-:* | *:-) cat >"$ac_tmp/stdin" \
15007 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
15008 esac
15009 ;;
15010 esac
15011
15012 ac_dir=`$as_dirname -- "$ac_file" ||
15013 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15014 X"$ac_file" : 'X\(//\)[^/]' \| \
15015 X"$ac_file" : 'X\(//\)$' \| \
15016 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15017 printf "%s\n" X"$ac_file" |
15018 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15019 s//\1/
15020 q
15021 }
15022 /^X\(\/\/\)[^/].*/{
15023 s//\1/
15024 q
15025 }
15026 /^X\(\/\/\)$/{
15027 s//\1/
15028 q
15029 }
15030 /^X\(\/\).*/{
15031 s//\1/
15032 q
15033 }
15034 s/.*/./; q'`
15035 as_dir="$ac_dir"; as_fn_mkdir_p
15036 ac_builddir=.
15037
15038 case "$ac_dir" in
15039 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15040 *)
15041 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
15042 # A ".." for each directory in $ac_dir_suffix.
15043 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15044 case $ac_top_builddir_sub in
15045 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15046 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15047 esac ;;
15048 esac
15049 ac_abs_top_builddir=$ac_pwd
15050 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15051 # for backward compatibility:
15052 ac_top_builddir=$ac_top_build_prefix
15053
15054 case $srcdir in
15055 .) # We are building in place.
15056 ac_srcdir=.
15057 ac_top_srcdir=$ac_top_builddir_sub
15058 ac_abs_top_srcdir=$ac_pwd ;;
15059 [\\/]* | ?:[\\/]* ) # Absolute name.
15060 ac_srcdir=$srcdir$ac_dir_suffix;
15061 ac_top_srcdir=$srcdir
15062 ac_abs_top_srcdir=$srcdir ;;
15063 *) # Relative name.
15064 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15065 ac_top_srcdir=$ac_top_build_prefix$srcdir
15066 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15067 esac
15068 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15069
15070
15071 case $ac_mode in
15072 :F)
15073 #
15074 # CONFIG_FILE
15075 #
15076
15077 case $INSTALL in
15078 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15079 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15080 esac
15081 ac_MKDIR_P=$MKDIR_P
15082 case $MKDIR_P in
15083 [\\/$]* | ?:[\\/]* ) ;;
15084 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
15085 esac
15086 _ACEOF
15087
15088 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15089 # If the template does not know about datarootdir, expand it.
15090 # FIXME: This hack should be removed a few years after 2.60.
15091 ac_datarootdir_hack=; ac_datarootdir_seen=
15092 ac_sed_dataroot='
15093 /datarootdir/ {
15094 p
15095 q
15096 }
15097 /@datadir@/p
15098 /@docdir@/p
15099 /@infodir@/p
15100 /@localedir@/p
15101 /@mandir@/p'
15102 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15103 *datarootdir*) ac_datarootdir_seen=yes;;
15104 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15105 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15106 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15107 _ACEOF
15108 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15109 ac_datarootdir_hack='
15110 s&@datadir@&$datadir&g
15111 s&@docdir@&$docdir&g
15112 s&@infodir@&$infodir&g
15113 s&@localedir@&$localedir&g
15114 s&@mandir@&$mandir&g
15115 s&\\\${datarootdir}&$datarootdir&g' ;;
15116 esac
15117 _ACEOF
15118
15119 # Neutralize VPATH when `$srcdir' = `.'.
15120 # Shell code in configure.ac might set extrasub.
15121 # FIXME: do we really want to maintain this feature?
15122 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15123 ac_sed_extra="$ac_vpsub
15124 $extrasub
15125 _ACEOF
15126 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15127 :t
15128 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15129 s|@configure_input@|$ac_sed_conf_input|;t t
15130 s&@top_builddir@&$ac_top_builddir_sub&;t t
15131 s&@top_build_prefix@&$ac_top_build_prefix&;t t
15132 s&@srcdir@&$ac_srcdir&;t t
15133 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15134 s&@top_srcdir@&$ac_top_srcdir&;t t
15135 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15136 s&@builddir@&$ac_builddir&;t t
15137 s&@abs_builddir@&$ac_abs_builddir&;t t
15138 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15139 s&@INSTALL@&$ac_INSTALL&;t t
15140 s&@MKDIR_P@&$ac_MKDIR_P&;t t
15141 $ac_datarootdir_hack
15142 "
15143 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
15144 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15145
15146 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15147 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
15148 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
15149 "$ac_tmp/out"`; test -z "$ac_out"; } &&
15150 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15151 which seems to be undefined. Please make sure it is defined" >&5
15152 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15153 which seems to be undefined. Please make sure it is defined" >&2;}
15154
15155 rm -f "$ac_tmp/stdin"
15156 case $ac_file in
15157 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
15158 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
15159 esac \
15160 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15161 ;;
15162 :H)
15163 #
15164 # CONFIG_HEADER
15165 #
15166 if test x"$ac_file" != x-; then
15167 {
15168 printf "%s\n" "/* $configure_input */" >&1 \
15169 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
15170 } >"$ac_tmp/config.h" \
15171 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15172 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
15173 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15174 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
15175 else
15176 rm -f "$ac_file"
15177 mv "$ac_tmp/config.h" "$ac_file" \
15178 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15179 fi
15180 else
15181 printf "%s\n" "/* $configure_input */" >&1 \
15182 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
15183 || as_fn_error $? "could not create -" "$LINENO" 5
15184 fi
15185 # Compute "$ac_file"'s index in $config_headers.
15186 _am_arg="$ac_file"
15187 _am_stamp_count=1
15188 for _am_header in $config_headers :; do
15189 case $_am_header in
15190 $_am_arg | $_am_arg:* )
15191 break ;;
15192 * )
15193 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
15194 esac
15195 done
15196 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
15197 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15198 X"$_am_arg" : 'X\(//\)[^/]' \| \
15199 X"$_am_arg" : 'X\(//\)$' \| \
15200 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
15201 printf "%s\n" X"$_am_arg" |
15202 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15203 s//\1/
15204 q
15205 }
15206 /^X\(\/\/\)[^/].*/{
15207 s//\1/
15208 q
15209 }
15210 /^X\(\/\/\)$/{
15211 s//\1/
15212 q
15213 }
15214 /^X\(\/\).*/{
15215 s//\1/
15216 q
15217 }
15218 s/.*/./; q'`/stamp-h$_am_stamp_count
15219 ;;
15220
15221 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
15222 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
15223 ;;
15224 esac
15225
15226
15227 case $ac_file$ac_mode in
15228 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
15229 # Older Autoconf quotes --file arguments for eval, but not when files
15230 # are listed without --file. Let's play safe and only enable the eval
15231 # if we detect the quoting.
15232 # TODO: see whether this extra hack can be removed once we start
15233 # requiring Autoconf 2.70 or later.
15234 case $CONFIG_FILES in #(
15235 *\'*) :
15236 eval set x "$CONFIG_FILES" ;; #(
15237 *) :
15238 set x $CONFIG_FILES ;; #(
15239 *) :
15240 ;;
15241 esac
15242 shift
15243 # Used to flag and report bootstrapping failures.
15244 am_rc=0
15245 for am_mf
15246 do
15247 # Strip MF so we end up with the name of the file.
15248 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
15249 # Check whether this is an Automake generated Makefile which includes
15250 # dependency-tracking related rules and includes.
15251 # Grep'ing the whole file directly is not great: AIX grep has a line
15252 # limit of 2048, but all sed's we know have understand at least 4000.
15253 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
15254 || continue
15255 am_dirpart=`$as_dirname -- "$am_mf" ||
15256 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15257 X"$am_mf" : 'X\(//\)[^/]' \| \
15258 X"$am_mf" : 'X\(//\)$' \| \
15259 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
15260 printf "%s\n" X"$am_mf" |
15261 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15262 s//\1/
15263 q
15264 }
15265 /^X\(\/\/\)[^/].*/{
15266 s//\1/
15267 q
15268 }
15269 /^X\(\/\/\)$/{
15270 s//\1/
15271 q
15272 }
15273 /^X\(\/\).*/{
15274 s//\1/
15275 q
15276 }
15277 s/.*/./; q'`
15278 am_filepart=`$as_basename -- "$am_mf" ||
15279 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
15280 X"$am_mf" : 'X\(//\)$' \| \
15281 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
15282 printf "%s\n" X/"$am_mf" |
15283 sed '/^.*\/\([^/][^/]*\)\/*$/{
15284 s//\1/
15285 q
15286 }
15287 /^X\/\(\/\/\)$/{
15288 s//\1/
15289 q
15290 }
15291 /^X\/\(\/\).*/{
15292 s//\1/
15293 q
15294 }
15295 s/.*/./; q'`
15296 { echo "$as_me:$LINENO: cd "$am_dirpart" \
15297 && sed -e '/# am--include-marker/d' "$am_filepart" \
15298 | $MAKE -f - am--depfiles" >&5
15299 (cd "$am_dirpart" \
15300 && sed -e '/# am--include-marker/d' "$am_filepart" \
15301 | $MAKE -f - am--depfiles) >&5 2>&5
15302 ac_status=$?
15303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15304 (exit $ac_status); } || am_rc=$?
15305 done
15306 if test $am_rc -ne 0; then
15307 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15308 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
15309 as_fn_error $? "Something went wrong bootstrapping makefile fragments
15310 for automatic dependency tracking. If GNU make was not used, consider
15311 re-running the configure script with MAKE=\"gmake\" (or whatever is
15312 necessary). You can also try re-running configure with the
15313 '--disable-dependency-tracking' option to at least be able to build
15314 the package (albeit without support for automatic dependency tracking).
15315 See \`config.log' for more details" "$LINENO" 5; }
15316 fi
15317 { am_dirpart=; unset am_dirpart;}
15318 { am_filepart=; unset am_filepart;}
15319 { am_mf=; unset am_mf;}
15320 { am_rc=; unset am_rc;}
15321 rm -f conftest-deps.mk
15322 }
15323 ;;
15324 "libtool":C)
15325
15326 # See if we are running on zsh, and set the options that allow our
15327 # commands through without removal of \ escapes.
15328 if test -n "${ZSH_VERSION+set}"; then
15329 setopt NO_GLOB_SUBST
15330 fi
15331
15332 cfgfile=${ofile}T
15333 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
15334 $RM "$cfgfile"
15335
15336 cat <<_LT_EOF >> "$cfgfile"
15337 #! $SHELL
15338 # Generated automatically by $as_me ($PACKAGE) $VERSION
15339 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15340 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
15341
15342 # Provide generalized library-building support services.
15343 # Written by Gordon Matzigkeit, 1996
15344
15345 # Copyright (C) 2014 Free Software Foundation, Inc.
15346 # This is free software; see the source for copying conditions. There is NO
15347 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
15348
15349 # GNU Libtool is free software; you can redistribute it and/or modify
15350 # it under the terms of the GNU General Public License as published by
15351 # the Free Software Foundation; either version 2 of of the License, or
15352 # (at your option) any later version.
15353 #
15354 # As a special exception to the GNU General Public License, if you
15355 # distribute this file as part of a program or library that is built
15356 # using GNU Libtool, you may include this file under the same
15357 # distribution terms that you use for the rest of that program.
15358 #
15359 # GNU Libtool is distributed in the hope that it will be useful, but
15360 # WITHOUT ANY WARRANTY; without even the implied warranty of
15361 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15362 # GNU General Public License for more details.
15363 #
15364 # You should have received a copy of the GNU General Public License
15365 # along with this program. If not, see <http://www.gnu.org/licenses/>.
15366
15367
15368 # The names of the tagged configurations supported by this script.
15369 available_tags=''
15370
15371 # Configured defaults for sys_lib_dlsearch_path munging.
15372 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
15373
15374 # ### BEGIN LIBTOOL CONFIG
15375
15376 # Which release of libtool.m4 was used?
15377 macro_version=$macro_version
15378 macro_revision=$macro_revision
15379
15380 # Whether or not to build shared libraries.
15381 build_libtool_libs=$enable_shared
15382
15383 # Whether or not to build static libraries.
15384 build_old_libs=$enable_static
15385
15386 # What type of objects to build.
15387 pic_mode=$pic_mode
15388
15389 # Whether or not to optimize for fast installation.
15390 fast_install=$enable_fast_install
15391
15392 # Shared archive member basename,for filename based shared library versioning on AIX.
15393 shared_archive_member_spec=$shared_archive_member_spec
15394
15395 # Shell to use when invoking shell scripts.
15396 SHELL=$lt_SHELL
15397
15398 # An echo program that protects backslashes.
15399 ECHO=$lt_ECHO
15400
15401 # The PATH separator for the build system.
15402 PATH_SEPARATOR=$lt_PATH_SEPARATOR
15403
15404 # The host system.
15405 host_alias=$host_alias
15406 host=$host
15407 host_os=$host_os
15408
15409 # The build system.
15410 build_alias=$build_alias
15411 build=$build
15412 build_os=$build_os
15413
15414 # A sed program that does not truncate output.
15415 SED=$lt_SED
15416
15417 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
15418 Xsed="\$SED -e 1s/^X//"
15419
15420 # A grep program that handles long lines.
15421 GREP=$lt_GREP
15422
15423 # An ERE matcher.
15424 EGREP=$lt_EGREP
15425
15426 # A literal string matcher.
15427 FGREP=$lt_FGREP
15428
15429 # A BSD- or MS-compatible name lister.
15430 NM=$lt_NM
15431
15432 # Whether we need soft or hard links.
15433 LN_S=$lt_LN_S
15434
15435 # What is the maximum length of a command?
15436 max_cmd_len=$max_cmd_len
15437
15438 # Object file suffix (normally "o").
15439 objext=$ac_objext
15440
15441 # Executable file suffix (normally "").
15442 exeext=$exeext
15443
15444 # whether the shell understands "unset".
15445 lt_unset=$lt_unset
15446
15447 # turn spaces into newlines.
15448 SP2NL=$lt_lt_SP2NL
15449
15450 # turn newlines into spaces.
15451 NL2SP=$lt_lt_NL2SP
15452
15453 # convert \$build file names to \$host format.
15454 to_host_file_cmd=$lt_cv_to_host_file_cmd
15455
15456 # convert \$build files to toolchain format.
15457 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
15458
15459 # A file(cmd) program that detects file types.
15460 FILECMD=$lt_FILECMD
15461
15462 # An object symbol dumper.
15463 OBJDUMP=$lt_OBJDUMP
15464
15465 # Method to check whether dependent libraries are shared objects.
15466 deplibs_check_method=$lt_deplibs_check_method
15467
15468 # Command to use when deplibs_check_method = "file_magic".
15469 file_magic_cmd=$lt_file_magic_cmd
15470
15471 # How to find potential files when deplibs_check_method = "file_magic".
15472 file_magic_glob=$lt_file_magic_glob
15473
15474 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
15475 want_nocaseglob=$lt_want_nocaseglob
15476
15477 # DLL creation program.
15478 DLLTOOL=$lt_DLLTOOL
15479
15480 # Command to associate shared and link libraries.
15481 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
15482
15483 # The archiver.
15484 AR=$lt_AR
15485
15486 # Flags to create an archive (by configure).
15487 lt_ar_flags=$lt_ar_flags
15488
15489 # Flags to create an archive.
15490 AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
15491
15492 # How to feed a file listing to the archiver.
15493 archiver_list_spec=$lt_archiver_list_spec
15494
15495 # A symbol stripping program.
15496 STRIP=$lt_STRIP
15497
15498 # Commands used to install an old-style archive.
15499 RANLIB=$lt_RANLIB
15500 old_postinstall_cmds=$lt_old_postinstall_cmds
15501 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15502
15503 # Whether to use a lock for old archive extraction.
15504 lock_old_archive_extraction=$lock_old_archive_extraction
15505
15506 # A C compiler.
15507 LTCC=$lt_CC
15508
15509 # LTCC compiler flags.
15510 LTCFLAGS=$lt_CFLAGS
15511
15512 # Take the output of nm and produce a listing of raw symbols and C names.
15513 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15514
15515 # Transform the output of nm in a proper C declaration.
15516 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15517
15518 # Transform the output of nm into a list of symbols to manually relocate.
15519 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
15520
15521 # Transform the output of nm in a C name address pair.
15522 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15523
15524 # Transform the output of nm in a C name address pair when lib prefix is needed.
15525 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
15526
15527 # The name lister interface.
15528 nm_interface=$lt_lt_cv_nm_interface
15529
15530 # Specify filename containing input files for \$NM.
15531 nm_file_list_spec=$lt_nm_file_list_spec
15532
15533 # The root where to search for dependent libraries,and where our libraries should be installed.
15534 lt_sysroot=$lt_sysroot
15535
15536 # Command to truncate a binary pipe.
15537 lt_truncate_bin=$lt_lt_cv_truncate_bin
15538
15539 # The name of the directory that contains temporary libtool files.
15540 objdir=$objdir
15541
15542 # Used to examine libraries when file_magic_cmd begins with "file".
15543 MAGIC_CMD=$MAGIC_CMD
15544
15545 # Must we lock files when doing compilation?
15546 need_locks=$lt_need_locks
15547
15548 # Manifest tool.
15549 MANIFEST_TOOL=$lt_MANIFEST_TOOL
15550
15551 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
15552 DSYMUTIL=$lt_DSYMUTIL
15553
15554 # Tool to change global to local symbols on Mac OS X.
15555 NMEDIT=$lt_NMEDIT
15556
15557 # Tool to manipulate fat objects and archives on Mac OS X.
15558 LIPO=$lt_LIPO
15559
15560 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
15561 OTOOL=$lt_OTOOL
15562
15563 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
15564 OTOOL64=$lt_OTOOL64
15565
15566 # Old archive suffix (normally "a").
15567 libext=$libext
15568
15569 # Shared library suffix (normally ".so").
15570 shrext_cmds=$lt_shrext_cmds
15571
15572 # The commands to extract the exported symbol list from a shared archive.
15573 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15574
15575 # Variables whose values should be saved in libtool wrapper scripts and
15576 # restored at link time.
15577 variables_saved_for_relink=$lt_variables_saved_for_relink
15578
15579 # Do we need the "lib" prefix for modules?
15580 need_lib_prefix=$need_lib_prefix
15581
15582 # Do we need a version for libraries?
15583 need_version=$need_version
15584
15585 # Library versioning type.
15586 version_type=$version_type
15587
15588 # Shared library runtime path variable.
15589 runpath_var=$runpath_var
15590
15591 # Shared library path variable.
15592 shlibpath_var=$shlibpath_var
15593
15594 # Is shlibpath searched before the hard-coded library search path?
15595 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15596
15597 # Format of library name prefix.
15598 libname_spec=$lt_libname_spec
15599
15600 # List of archive names. First name is the real one, the rest are links.
15601 # The last name is the one that the linker finds with -lNAME
15602 library_names_spec=$lt_library_names_spec
15603
15604 # The coded name of the library, if different from the real name.
15605 soname_spec=$lt_soname_spec
15606
15607 # Permission mode override for installation of shared libraries.
15608 install_override_mode=$lt_install_override_mode
15609
15610 # Command to use after installation of a shared archive.
15611 postinstall_cmds=$lt_postinstall_cmds
15612
15613 # Command to use after uninstallation of a shared archive.
15614 postuninstall_cmds=$lt_postuninstall_cmds
15615
15616 # Commands used to finish a libtool library installation in a directory.
15617 finish_cmds=$lt_finish_cmds
15618
15619 # As "finish_cmds", except a single script fragment to be evaled but
15620 # not shown.
15621 finish_eval=$lt_finish_eval
15622
15623 # Whether we should hardcode library paths into libraries.
15624 hardcode_into_libs=$hardcode_into_libs
15625
15626 # Compile-time system search path for libraries.
15627 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15628
15629 # Detected run-time system search path for libraries.
15630 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
15631
15632 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
15633 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
15634
15635 # Whether dlopen is supported.
15636 dlopen_support=$enable_dlopen
15637
15638 # Whether dlopen of programs is supported.
15639 dlopen_self=$enable_dlopen_self
15640
15641 # Whether dlopen of statically linked programs is supported.
15642 dlopen_self_static=$enable_dlopen_self_static
15643
15644 # Commands to strip libraries.
15645 old_striplib=$lt_old_striplib
15646 striplib=$lt_striplib
15647
15648
15649 # The linker used to build libraries.
15650 LD=$lt_LD
15651
15652 # How to create reloadable object files.
15653 reload_flag=$lt_reload_flag
15654 reload_cmds=$lt_reload_cmds
15655
15656 # Commands used to build an old-style archive.
15657 old_archive_cmds=$lt_old_archive_cmds
15658
15659 # A language specific compiler.
15660 CC=$lt_compiler
15661
15662 # Is the compiler the GNU compiler?
15663 with_gcc=$GCC
15664
15665 # Compiler flag to turn off builtin functions.
15666 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15667
15668 # Additional compiler flags for building library objects.
15669 pic_flag=$lt_lt_prog_compiler_pic
15670
15671 # How to pass a linker flag through the compiler.
15672 wl=$lt_lt_prog_compiler_wl
15673
15674 # Compiler flag to prevent dynamic linking.
15675 link_static_flag=$lt_lt_prog_compiler_static
15676
15677 # Does compiler simultaneously support -c and -o options?
15678 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15679
15680 # Whether or not to add -lc for building shared libraries.
15681 build_libtool_need_lc=$archive_cmds_need_lc
15682
15683 # Whether or not to disallow shared libs when runtime libs are static.
15684 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15685
15686 # Compiler flag to allow reflexive dlopens.
15687 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15688
15689 # Compiler flag to generate shared objects directly from archives.
15690 whole_archive_flag_spec=$lt_whole_archive_flag_spec
15691
15692 # Whether the compiler copes with passing no objects directly.
15693 compiler_needs_object=$lt_compiler_needs_object
15694
15695 # Create an old-style archive from a shared archive.
15696 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15697
15698 # Create a temporary old-style archive to link instead of a shared archive.
15699 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15700
15701 # Commands used to build a shared archive.
15702 archive_cmds=$lt_archive_cmds
15703 archive_expsym_cmds=$lt_archive_expsym_cmds
15704
15705 # Commands used to build a loadable module if different from building
15706 # a shared archive.
15707 module_cmds=$lt_module_cmds
15708 module_expsym_cmds=$lt_module_expsym_cmds
15709
15710 # Whether we are building with GNU ld or not.
15711 with_gnu_ld=$lt_with_gnu_ld
15712
15713 # Flag that allows shared libraries with undefined symbols to be built.
15714 allow_undefined_flag=$lt_allow_undefined_flag
15715
15716 # Flag that enforces no undefined symbols.
15717 no_undefined_flag=$lt_no_undefined_flag
15718
15719 # Flag to hardcode \$libdir into a binary during linking.
15720 # This must work even if \$libdir does not exist
15721 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15722
15723 # Whether we need a single "-rpath" flag with a separated argument.
15724 hardcode_libdir_separator=$lt_hardcode_libdir_separator
15725
15726 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
15727 # DIR into the resulting binary.
15728 hardcode_direct=$hardcode_direct
15729
15730 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
15731 # DIR into the resulting binary and the resulting library dependency is
15732 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
15733 # library is relocated.
15734 hardcode_direct_absolute=$hardcode_direct_absolute
15735
15736 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15737 # into the resulting binary.
15738 hardcode_minus_L=$hardcode_minus_L
15739
15740 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15741 # into the resulting binary.
15742 hardcode_shlibpath_var=$hardcode_shlibpath_var
15743
15744 # Set to "yes" if building a shared library automatically hardcodes DIR
15745 # into the library and all subsequent libraries and executables linked
15746 # against it.
15747 hardcode_automatic=$hardcode_automatic
15748
15749 # Set to yes if linker adds runtime paths of dependent libraries
15750 # to runtime path list.
15751 inherit_rpath=$inherit_rpath
15752
15753 # Whether libtool must link a program against all its dependency libraries.
15754 link_all_deplibs=$link_all_deplibs
15755
15756 # Set to "yes" if exported symbols are required.
15757 always_export_symbols=$always_export_symbols
15758
15759 # The commands to list exported symbols.
15760 export_symbols_cmds=$lt_export_symbols_cmds
15761
15762 # Symbols that should not be listed in the preloaded symbols.
15763 exclude_expsyms=$lt_exclude_expsyms
15764
15765 # Symbols that must always be exported.
15766 include_expsyms=$lt_include_expsyms
15767
15768 # Commands necessary for linking programs (against libraries) with templates.
15769 prelink_cmds=$lt_prelink_cmds
15770
15771 # Commands necessary for finishing linking programs.
15772 postlink_cmds=$lt_postlink_cmds
15773
15774 # Specify filename containing input files.
15775 file_list_spec=$lt_file_list_spec
15776
15777 # How to hardcode a shared library path into an executable.
15778 hardcode_action=$hardcode_action
15779
15780 # ### END LIBTOOL CONFIG
15781
15782 _LT_EOF
15783
15784 cat <<'_LT_EOF' >> "$cfgfile"
15785
15786 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
15787
15788 # func_munge_path_list VARIABLE PATH
15789 # -----------------------------------
15790 # VARIABLE is name of variable containing _space_ separated list of
15791 # directories to be munged by the contents of PATH, which is string
15792 # having a format:
15793 # "DIR[:DIR]:"
15794 # string "DIR[ DIR]" will be prepended to VARIABLE
15795 # ":DIR[:DIR]"
15796 # string "DIR[ DIR]" will be appended to VARIABLE
15797 # "DIRP[:DIRP]::[DIRA:]DIRA"
15798 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
15799 # "DIRA[ DIRA]" will be appended to VARIABLE
15800 # "DIR[:DIR]"
15801 # VARIABLE will be replaced by "DIR[ DIR]"
15802 func_munge_path_list ()
15803 {
15804 case x$2 in
15805 x)
15806 ;;
15807 *:)
15808 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
15809 ;;
15810 x:*)
15811 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
15812 ;;
15813 *::*)
15814 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
15815 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
15816 ;;
15817 *)
15818 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
15819 ;;
15820 esac
15821 }
15822
15823
15824 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
15825 func_cc_basename ()
15826 {
15827 for cc_temp in $*""; do
15828 case $cc_temp in
15829 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15830 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15831 \-*) ;;
15832 *) break;;
15833 esac
15834 done
15835 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
15836 }
15837
15838
15839 # ### END FUNCTIONS SHARED WITH CONFIGURE
15840
15841 _LT_EOF
15842
15843 case $host_os in
15844 aix3*)
15845 cat <<\_LT_EOF >> "$cfgfile"
15846 # AIX sometimes has problems with the GCC collect2 program. For some
15847 # reason, if we set the COLLECT_NAMES environment variable, the problems
15848 # vanish in a puff of smoke.
15849 if test set != "${COLLECT_NAMES+set}"; then
15850 COLLECT_NAMES=
15851 export COLLECT_NAMES
15852 fi
15853 _LT_EOF
15854 ;;
15855 esac
15856
15857
15858
15859 ltmain=$ac_aux_dir/ltmain.sh
15860
15861
15862 # We use sed instead of cat because bash on DJGPP gets confused if
15863 # if finds mixed CR/LF and LF-only lines. Since sed operates in
15864 # text mode, it properly converts lines to CR/LF. This bash problem
15865 # is reportedly fixed, but why not run on old versions too?
15866 $SED '$q' "$ltmain" >> "$cfgfile" \
15867 || (rm -f "$cfgfile"; exit 1)
15868
15869 mv -f "$cfgfile" "$ofile" ||
15870 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15871 chmod +x "$ofile"
15872
15873 ;;
15874 "apreq2-config":F) chmod +x apreq2-config ;;
15875
15876 esac
15877 done # for ac_tag
15878
15879
15880 as_fn_exit 0
15881 _ACEOF
15882 ac_clean_files=$ac_clean_files_save
15883
15884 test $ac_write_fail = 0 ||
15885 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
15886
15887
15888 # configure is writing to config.log, and then calls config.status.
15889 # config.status does its own redirection, appending to config.log.
15890 # Unfortunately, on DOS this fails, as config.log is still kept open
15891 # by configure, so config.status won't be able to write to it; its
15892 # output is simply discarded. So we exec the FD to /dev/null,
15893 # effectively closing config.log, so it can be properly (re)opened and
15894 # appended to by config.status. When coming back to configure, we
15895 # need to make the FD available again.
15896 if test "$no_create" != yes; then
15897 ac_cs_success=:
15898 ac_config_status_args=
15899 test "$silent" = yes &&
15900 ac_config_status_args="$ac_config_status_args --quiet"
15901 exec 5>/dev/null
15902 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15903 exec 5>>config.log
15904 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15905 # would make configure fail if this is the last instruction.
15906 $ac_cs_success || as_fn_exit 1
15907 fi
15908 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15909 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15910 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15911 fi
15912
15913