Annotation of embedaddon/lighttpd/configure, revision 1.1.1.2
1.1 misho 1: #! /bin/sh
2: # Guess values for system-dependent variables and create Makefiles.
1.1.1.2 ! misho 3: # Generated by GNU Autoconf 2.69 for lighttpd 1.4.35.
1.1 misho 4: #
5: # Report bugs to <contact@lighttpd.net>.
6: #
7: #
8: # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9: #
10: #
11: # This configure script is free software; the Free Software Foundation
12: # gives unlimited permission to copy, distribute and modify it.
13: ## -------------------- ##
14: ## M4sh Initialization. ##
15: ## -------------------- ##
16:
17: # Be more Bourne compatible
18: DUALCASE=1; export DUALCASE # for MKS sh
19: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20: emulate sh
21: NULLCMD=:
22: # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23: # is contrary to our usage. Disable this feature.
24: alias -g '${1+"$@"}'='"$@"'
25: setopt NO_GLOB_SUBST
26: else
27: case `(set -o) 2>/dev/null` in #(
28: *posix*) :
29: set -o posix ;; #(
30: *) :
31: ;;
32: esac
33: fi
34:
35:
36: as_nl='
37: '
38: export as_nl
39: # Printing a long string crashes Solaris 7 /usr/bin/printf.
40: as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43: # Prefer a ksh shell builtin over an external printf program on Solaris,
44: # but without wasting forks for bash or zsh.
45: if test -z "$BASH_VERSION$ZSH_VERSION" \
46: && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47: as_echo='print -r --'
48: as_echo_n='print -rn --'
49: elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50: as_echo='printf %s\n'
51: as_echo_n='printf %s'
52: else
53: if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54: as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55: as_echo_n='/usr/ucb/echo -n'
56: else
57: as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58: as_echo_n_body='eval
59: arg=$1;
60: case $arg in #(
61: *"$as_nl"*)
62: expr "X$arg" : "X\\(.*\\)$as_nl";
63: arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64: esac;
65: expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66: '
67: export as_echo_n_body
68: as_echo_n='sh -c $as_echo_n_body as_echo'
69: fi
70: export as_echo_body
71: as_echo='sh -c $as_echo_body as_echo'
72: fi
73:
74: # The user is always right.
75: if test "${PATH_SEPARATOR+set}" != set; then
76: PATH_SEPARATOR=:
77: (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78: (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79: PATH_SEPARATOR=';'
80: }
81: fi
82:
83:
84: # IFS
85: # We need space, tab and new line, in precisely that order. Quoting is
86: # there to prevent editors from complaining about space-tab.
87: # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88: # splitting by setting IFS to empty value.)
89: IFS=" "" $as_nl"
90:
91: # Find who we are. Look in the path if we contain no directory separator.
92: as_myself=
93: case $0 in #((
94: *[\\/]* ) as_myself=$0 ;;
95: *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96: for as_dir in $PATH
97: do
98: IFS=$as_save_IFS
99: test -z "$as_dir" && as_dir=.
100: test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101: done
102: IFS=$as_save_IFS
103:
104: ;;
105: esac
106: # We did not find ourselves, most probably we were run as `sh COMMAND'
107: # in which case we are not to be found in the path.
108: if test "x$as_myself" = x; then
109: as_myself=$0
110: fi
111: if test ! -f "$as_myself"; then
112: $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113: exit 1
114: fi
115:
116: # Unset variables that we do not need and which cause bugs (e.g. in
117: # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118: # suppresses any "Segmentation fault" message there. '((' could
119: # trigger a bug in pdksh 5.2.14.
120: for as_var in BASH_ENV ENV MAIL MAILPATH
121: do eval test x\${$as_var+set} = xset \
122: && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123: done
124: PS1='$ '
125: PS2='> '
126: PS4='+ '
127:
128: # NLS nuisances.
129: LC_ALL=C
130: export LC_ALL
131: LANGUAGE=C
132: export LANGUAGE
133:
134: # CDPATH.
135: (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136:
137: # Use a proper internal environment variable to ensure we don't fall
138: # into an infinite loop, continuously re-executing ourselves.
139: if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140: _as_can_reexec=no; export _as_can_reexec;
141: # We cannot yet assume a decent shell, so we have to provide a
142: # neutralization value for shells without unset; and this also
143: # works around shells that cannot unset nonexistent variables.
144: # Preserve -v and -x to the replacement shell.
145: BASH_ENV=/dev/null
146: ENV=/dev/null
147: (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148: case $- in # ((((
149: *v*x* | *x*v* ) as_opts=-vx ;;
150: *v* ) as_opts=-v ;;
151: *x* ) as_opts=-x ;;
152: * ) as_opts= ;;
153: esac
154: exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155: # Admittedly, this is quite paranoid, since all the known shells bail
156: # out after a failed `exec'.
157: $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158: as_fn_exit 255
159: fi
160: # We don't want this to propagate to other subprocesses.
161: { _as_can_reexec=; unset _as_can_reexec;}
162: if test "x$CONFIG_SHELL" = x; then
163: as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164: emulate sh
165: NULLCMD=:
166: # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167: # is contrary to our usage. Disable this feature.
168: alias -g '\${1+\"\$@\"}'='\"\$@\"'
169: setopt NO_GLOB_SUBST
170: else
171: case \`(set -o) 2>/dev/null\` in #(
172: *posix*) :
173: set -o posix ;; #(
174: *) :
175: ;;
176: esac
177: fi
178: "
179: as_required="as_fn_return () { (exit \$1); }
180: as_fn_success () { as_fn_return 0; }
181: as_fn_failure () { as_fn_return 1; }
182: as_fn_ret_success () { return 0; }
183: as_fn_ret_failure () { return 1; }
184:
185: exitcode=0
186: as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187: as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188: as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189: as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190: if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191:
192: else
193: exitcode=1; echo positional parameters were not saved.
194: fi
195: test x\$exitcode = x0 || exit 1
196: test -x / || exit 1"
197: as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198: as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199: eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200: test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201: test \$(( 1 + 1 )) = 2 || exit 1
202:
203: test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
204: ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
205: ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206: ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207: PATH=/empty FPATH=/empty; export PATH FPATH
208: test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
209: || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
210: if (eval "$as_required") 2>/dev/null; then :
211: as_have_required=yes
212: else
213: as_have_required=no
214: fi
215: if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216:
217: else
218: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219: as_found=false
220: for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221: do
222: IFS=$as_save_IFS
223: test -z "$as_dir" && as_dir=.
224: as_found=:
225: case $as_dir in #(
226: /*)
227: for as_base in sh bash ksh sh5; do
228: # Try only shells that exist, to save several forks.
229: as_shell=$as_dir/$as_base
230: if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231: { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232: CONFIG_SHELL=$as_shell as_have_required=yes
233: if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234: break 2
235: fi
236: fi
237: done;;
238: esac
239: as_found=false
240: done
241: $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242: { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243: CONFIG_SHELL=$SHELL as_have_required=yes
244: fi; }
245: IFS=$as_save_IFS
246:
247:
248: if test "x$CONFIG_SHELL" != x; then :
249: export CONFIG_SHELL
250: # We cannot yet assume a decent shell, so we have to provide a
251: # neutralization value for shells without unset; and this also
252: # works around shells that cannot unset nonexistent variables.
253: # Preserve -v and -x to the replacement shell.
254: BASH_ENV=/dev/null
255: ENV=/dev/null
256: (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257: case $- in # ((((
258: *v*x* | *x*v* ) as_opts=-vx ;;
259: *v* ) as_opts=-v ;;
260: *x* ) as_opts=-x ;;
261: * ) as_opts= ;;
262: esac
263: exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264: # Admittedly, this is quite paranoid, since all the known shells bail
265: # out after a failed `exec'.
266: $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267: exit 255
268: fi
269:
270: if test x$as_have_required = xno; then :
271: $as_echo "$0: This script requires a shell more modern than all"
272: $as_echo "$0: the shells that I found on your system."
273: if test x${ZSH_VERSION+set} = xset ; then
274: $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275: $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276: else
277: $as_echo "$0: Please tell bug-autoconf@gnu.org and
278: $0: contact@lighttpd.net about your system, including any
279: $0: error possibly output before this message. Then install
280: $0: a modern shell, or manually run the script under such a
281: $0: shell if you do have one."
282: fi
283: exit 1
284: fi
285: fi
286: fi
287: SHELL=${CONFIG_SHELL-/bin/sh}
288: export SHELL
289: # Unset more variables known to interfere with behavior of common tools.
290: CLICOLOR_FORCE= GREP_OPTIONS=
291: unset CLICOLOR_FORCE GREP_OPTIONS
292:
293: ## --------------------- ##
294: ## M4sh Shell Functions. ##
295: ## --------------------- ##
296: # as_fn_unset VAR
297: # ---------------
298: # Portably unset VAR.
299: as_fn_unset ()
300: {
301: { eval $1=; unset $1;}
302: }
303: as_unset=as_fn_unset
304:
305: # as_fn_set_status STATUS
306: # -----------------------
307: # Set $? to STATUS, without forking.
308: as_fn_set_status ()
309: {
310: return $1
311: } # as_fn_set_status
312:
313: # as_fn_exit STATUS
314: # -----------------
315: # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
316: as_fn_exit ()
317: {
318: set +e
319: as_fn_set_status $1
320: exit $1
321: } # as_fn_exit
322:
323: # as_fn_mkdir_p
324: # -------------
325: # Create "$as_dir" as a directory, including parents if necessary.
326: as_fn_mkdir_p ()
327: {
328:
329: case $as_dir in #(
330: -*) as_dir=./$as_dir;;
331: esac
332: test -d "$as_dir" || eval $as_mkdir_p || {
333: as_dirs=
334: while :; do
335: case $as_dir in #(
336: *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
337: *) as_qdir=$as_dir;;
338: esac
339: as_dirs="'$as_qdir' $as_dirs"
340: as_dir=`$as_dirname -- "$as_dir" ||
341: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342: X"$as_dir" : 'X\(//\)[^/]' \| \
343: X"$as_dir" : 'X\(//\)$' \| \
344: X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345: $as_echo X"$as_dir" |
346: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
347: s//\1/
348: q
349: }
350: /^X\(\/\/\)[^/].*/{
351: s//\1/
352: q
353: }
354: /^X\(\/\/\)$/{
355: s//\1/
356: q
357: }
358: /^X\(\/\).*/{
359: s//\1/
360: q
361: }
362: s/.*/./; q'`
363: test -d "$as_dir" && break
364: done
365: test -z "$as_dirs" || eval "mkdir $as_dirs"
366: } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
367:
368:
369: } # as_fn_mkdir_p
370:
371: # as_fn_executable_p FILE
372: # -----------------------
373: # Test if FILE is an executable regular file.
374: as_fn_executable_p ()
375: {
376: test -f "$1" && test -x "$1"
377: } # as_fn_executable_p
378: # as_fn_append VAR VALUE
379: # ----------------------
380: # Append the text in VALUE to the end of the definition contained in VAR. Take
381: # advantage of any shell optimizations that allow amortized linear growth over
382: # repeated appends, instead of the typical quadratic growth present in naive
383: # implementations.
384: if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385: eval 'as_fn_append ()
386: {
387: eval $1+=\$2
388: }'
389: else
390: as_fn_append ()
391: {
392: eval $1=\$$1\$2
393: }
394: fi # as_fn_append
395:
396: # as_fn_arith ARG...
397: # ------------------
398: # Perform arithmetic evaluation on the ARGs, and store the result in the
399: # global $as_val. Take advantage of shells that can avoid forks. The arguments
400: # must be portable across $(()) and expr.
401: if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
402: eval 'as_fn_arith ()
403: {
404: as_val=$(( $* ))
405: }'
406: else
407: as_fn_arith ()
408: {
409: as_val=`expr "$@" || test $? -eq 1`
410: }
411: fi # as_fn_arith
412:
413:
414: # as_fn_error STATUS ERROR [LINENO LOG_FD]
415: # ----------------------------------------
416: # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417: # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
418: # script with STATUS, using 1 if that was 0.
419: as_fn_error ()
420: {
421: as_status=$1; test $as_status -eq 0 && as_status=1
422: if test "$4"; then
423: as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424: $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
425: fi
426: $as_echo "$as_me: error: $2" >&2
427: as_fn_exit $as_status
428: } # as_fn_error
429:
430: if expr a : '\(a\)' >/dev/null 2>&1 &&
431: test "X`expr 00001 : '.*\(...\)'`" = X001; then
432: as_expr=expr
433: else
434: as_expr=false
435: fi
436:
437: if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
438: as_basename=basename
439: else
440: as_basename=false
441: fi
442:
443: if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
444: as_dirname=dirname
445: else
446: as_dirname=false
447: fi
448:
449: as_me=`$as_basename -- "$0" ||
450: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451: X"$0" : 'X\(//\)$' \| \
452: X"$0" : 'X\(/\)' \| . 2>/dev/null ||
453: $as_echo X/"$0" |
454: sed '/^.*\/\([^/][^/]*\)\/*$/{
455: s//\1/
456: q
457: }
458: /^X\/\(\/\/\)$/{
459: s//\1/
460: q
461: }
462: /^X\/\(\/\).*/{
463: s//\1/
464: q
465: }
466: s/.*/./; q'`
467:
468: # Avoid depending upon Character Ranges.
469: as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470: as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471: as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472: as_cr_digits='0123456789'
473: as_cr_alnum=$as_cr_Letters$as_cr_digits
474:
475:
476: as_lineno_1=$LINENO as_lineno_1a=$LINENO
477: as_lineno_2=$LINENO as_lineno_2a=$LINENO
478: eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479: test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480: # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
481: sed -n '
482: p
483: /[$]LINENO/=
484: ' <$as_myself |
485: sed '
486: s/[$]LINENO.*/&-/
487: t lineno
488: b
489: :lineno
490: N
491: :loop
492: s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493: t loop
494: s/-\n.*//
495: ' >$as_me.lineno &&
496: chmod +x "$as_me.lineno" ||
497: { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
498:
499: # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500: # already done that, so ensure we don't try to do so again and fall
501: # in an infinite loop. This has already happened in practice.
502: _as_can_reexec=no; export _as_can_reexec
503: # Don't try to exec as it changes $[0], causing all sort of problems
504: # (the dirname of $[0] is not the place where we might find the
505: # original and so on. Autoconf is especially sensitive to this).
506: . "./$as_me.lineno"
507: # Exit status is that of the last command.
508: exit
509: }
510:
511: ECHO_C= ECHO_N= ECHO_T=
512: case `echo -n x` in #(((((
513: -n*)
514: case `echo 'xy\c'` in
515: *c*) ECHO_T=' ';; # ECHO_T is single tab character.
516: xy) ECHO_C='\c';;
517: *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
518: ECHO_T=' ';;
519: esac;;
520: *)
521: ECHO_N='-n';;
522: esac
523:
524: rm -f conf$$ conf$$.exe conf$$.file
525: if test -d conf$$.dir; then
526: rm -f conf$$.dir/conf$$.file
527: else
528: rm -f conf$$.dir
529: mkdir conf$$.dir 2>/dev/null
530: fi
531: if (echo >conf$$.file) 2>/dev/null; then
532: if ln -s conf$$.file conf$$ 2>/dev/null; then
533: as_ln_s='ln -s'
534: # ... but there are two gotchas:
535: # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536: # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
537: # In both cases, we have to default to `cp -pR'.
538: ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
539: as_ln_s='cp -pR'
540: elif ln conf$$.file conf$$ 2>/dev/null; then
541: as_ln_s=ln
542: else
543: as_ln_s='cp -pR'
544: fi
545: else
546: as_ln_s='cp -pR'
547: fi
548: rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549: rmdir conf$$.dir 2>/dev/null
550:
551: if mkdir -p . 2>/dev/null; then
552: as_mkdir_p='mkdir -p "$as_dir"'
553: else
554: test -d ./-p && rmdir ./-p
555: as_mkdir_p=false
556: fi
557:
558: as_test_x='test -x'
559: as_executable_p=as_fn_executable_p
560:
561: # Sed expression to map a string onto a valid CPP name.
562: as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
563:
564: # Sed expression to map a string onto a valid variable name.
565: as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
566:
567: SHELL=${CONFIG_SHELL-/bin/sh}
568:
569:
570: test -n "$DJDIR" || exec 7<&0 </dev/null
571: exec 6>&1
572:
573: # Name of the host.
574: # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
575: # so uname gets run too.
576: ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
577:
578: #
579: # Initializations.
580: #
581: ac_default_prefix=/usr/local
582: ac_clean_files=
583: ac_config_libobj_dir=.
584: LIBOBJS=
585: cross_compiling=no
586: subdirs=
587: MFLAGS=
588: MAKEFLAGS=
589:
590: # Identity of this package.
591: PACKAGE_NAME='lighttpd'
592: PACKAGE_TARNAME='lighttpd'
1.1.1.2 ! misho 593: PACKAGE_VERSION='1.4.35'
! 594: PACKAGE_STRING='lighttpd 1.4.35'
1.1 misho 595: PACKAGE_BUGREPORT='contact@lighttpd.net'
596: PACKAGE_URL=''
597:
598: ac_unique_file="src/server.c"
599: # Factoring default headers for most tests.
600: ac_includes_default="\
601: #include <stdio.h>
602: #ifdef HAVE_SYS_TYPES_H
603: # include <sys/types.h>
604: #endif
605: #ifdef HAVE_SYS_STAT_H
606: # include <sys/stat.h>
607: #endif
608: #ifdef STDC_HEADERS
609: # include <stdlib.h>
610: # include <stddef.h>
611: #else
612: # ifdef HAVE_STDLIB_H
613: # include <stdlib.h>
614: # endif
615: #endif
616: #ifdef HAVE_STRING_H
617: # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
618: # include <memory.h>
619: # endif
620: # include <string.h>
621: #endif
622: #ifdef HAVE_STRINGS_H
623: # include <strings.h>
624: #endif
625: #ifdef HAVE_INTTYPES_H
626: # include <inttypes.h>
627: #endif
628: #ifdef HAVE_STDINT_H
629: # include <stdint.h>
630: #endif
631: #ifdef HAVE_UNISTD_H
632: # include <unistd.h>
633: #endif"
634:
635: ac_subst_vars='am__EXEEXT_FALSE
636: am__EXEEXT_TRUE
637: LTLIBOBJS
638: CHECK_WITH_FASTCGI_FALSE
639: CHECK_WITH_FASTCGI_TRUE
640: CROSS_COMPILING_FALSE
641: CROSS_COMPILING_TRUE
642: SENDFILE_LIB
643: CRYPT_LIB
644: LUA_LIBS
645: LUA_CFLAGS
646: MEMCACHE_LIB
647: GDBM_LIB
648: UUID_LIBS
649: SQLITE_LIBS
650: SQLITE_CFLAGS
651: XML_LIBS
652: XML_CFLAGS
653: FAM_LIBS
654: FAM_CFLAGS
655: BZ_LIB
656: Z_LIB
657: PCRE_LIB
658: PCRECONFIG
659: SSL_LIB
660: DL_LIB
661: ATTR_LIB
662: LBER_LIB
663: LDAP_LIB
664: MYSQL_INCLUDE
665: MYSQL_LIBS
666: MYSQL_CONFIG
667: LIBEV_LIBS
668: LIBEV_CFLAGS
669: PKG_CONFIG_LIBDIR
670: PKG_CONFIG_PATH
671: PKG_CONFIG
672: LIBOBJS
673: OTOOL64
674: OTOOL
675: LIPO
676: NMEDIT
677: DSYMUTIL
678: MANIFEST_TOOL
679: RANLIB
680: DLLTOOL
681: OBJDUMP
682: NM
683: ac_ct_DUMPBIN
684: DUMPBIN
685: LIBTOOL
686: NO_RDYNAMIC_FALSE
687: NO_RDYNAMIC_TRUE
688: ac_ct_AR
689: AR
690: LN_S
691: CPP
692: LD
693: FGREP
694: EGREP
695: GREP
696: SED
697: am__fastdepCC_FALSE
698: am__fastdepCC_TRUE
699: CCDEPMODE
700: am__nodep
701: AMDEPBACKSLASH
702: AMDEP_FALSE
703: AMDEP_TRUE
704: am__quote
705: am__include
706: DEPDIR
707: OBJEXT
708: EXEEXT
709: ac_ct_CC
710: CPPFLAGS
711: LDFLAGS
712: CFLAGS
713: CC
714: AM_BACKSLASH
715: AM_DEFAULT_VERBOSITY
716: AM_DEFAULT_V
717: AM_V
718: am__untar
719: am__tar
720: AMTAR
721: am__leading_dot
722: SET_MAKE
723: AWK
724: mkdir_p
725: MKDIR_P
726: INSTALL_STRIP_PROGRAM
727: STRIP
728: install_sh
729: MAKEINFO
730: AUTOHEADER
731: AUTOMAKE
732: AUTOCONF
733: ACLOCAL
734: VERSION
735: PACKAGE
736: CYGPATH_W
737: am__isrc
738: INSTALL_DATA
739: INSTALL_SCRIPT
740: INSTALL_PROGRAM
741: target_os
742: target_vendor
743: target_cpu
744: target
745: host_os
746: host_vendor
747: host_cpu
748: host
749: build_os
750: build_vendor
751: build_cpu
752: build
753: target_alias
754: host_alias
755: build_alias
756: LIBS
757: ECHO_T
758: ECHO_N
759: ECHO_C
760: DEFS
761: mandir
762: localedir
763: libdir
764: psdir
765: pdfdir
766: dvidir
767: htmldir
768: infodir
769: docdir
770: oldincludedir
771: includedir
772: localstatedir
773: sharedstatedir
774: sysconfdir
775: datadir
776: datarootdir
777: libexecdir
778: sbindir
779: bindir
780: program_transform_name
781: prefix
782: exec_prefix
783: PACKAGE_URL
784: PACKAGE_BUGREPORT
785: PACKAGE_STRING
786: PACKAGE_VERSION
787: PACKAGE_TARNAME
788: PACKAGE_NAME
789: PATH_SEPARATOR
790: SHELL'
791: ac_subst_files=''
792: ac_user_opts='
793: enable_option_checking
794: enable_silent_rules
795: enable_dependency_tracking
796: with_gnu_ld
797: enable_static
798: enable_shared
799: with_pic
800: enable_fast_install
801: with_sysroot
802: enable_libtool_lock
803: with_libev
804: with_mysql
805: with_ldap
806: with_attr
807: with_valgrind
808: with_openssl
809: with_openssl_includes
810: with_openssl_libs
811: with_kerberos5
812: with_pcre
813: with_zlib
814: with_bzip2
815: with_fam
816: with_webdav_props
817: with_webdav_locks
818: with_gdbm
819: with_memcache
820: with_lua
821: enable_lfs
822: enable_ipv6
823: enable_mmap
824: enable_extra_warnings
825: '
826: ac_precious_vars='build_alias
827: host_alias
828: target_alias
829: CC
830: CFLAGS
831: LDFLAGS
832: LIBS
833: CPPFLAGS
834: CPP
835: PKG_CONFIG
836: PKG_CONFIG_PATH
837: PKG_CONFIG_LIBDIR
838: LIBEV_CFLAGS
839: LIBEV_LIBS
840: FAM_CFLAGS
841: FAM_LIBS
842: XML_CFLAGS
843: XML_LIBS
844: SQLITE_CFLAGS
845: SQLITE_LIBS
846: LUA_CFLAGS
847: LUA_LIBS'
848:
849:
850: # Initialize some variables set by options.
851: ac_init_help=
852: ac_init_version=false
853: ac_unrecognized_opts=
854: ac_unrecognized_sep=
855: # The variables have the same names as the options, with
856: # dashes changed to underlines.
857: cache_file=/dev/null
858: exec_prefix=NONE
859: no_create=
860: no_recursion=
861: prefix=NONE
862: program_prefix=NONE
863: program_suffix=NONE
864: program_transform_name=s,x,x,
865: silent=
866: site=
867: srcdir=
868: verbose=
869: x_includes=NONE
870: x_libraries=NONE
871:
872: # Installation directory options.
873: # These are left unexpanded so users can "make install exec_prefix=/foo"
874: # and all the variables that are supposed to be based on exec_prefix
875: # by default will actually change.
876: # Use braces instead of parens because sh, perl, etc. also accept them.
877: # (The list follows the same order as the GNU Coding Standards.)
878: bindir='${exec_prefix}/bin'
879: sbindir='${exec_prefix}/sbin'
880: libexecdir='${exec_prefix}/libexec'
881: datarootdir='${prefix}/share'
882: datadir='${datarootdir}'
883: sysconfdir='${prefix}/etc'
884: sharedstatedir='${prefix}/com'
885: localstatedir='${prefix}/var'
886: includedir='${prefix}/include'
887: oldincludedir='/usr/include'
888: docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
889: infodir='${datarootdir}/info'
890: htmldir='${docdir}'
891: dvidir='${docdir}'
892: pdfdir='${docdir}'
893: psdir='${docdir}'
894: libdir='${exec_prefix}/lib'
895: localedir='${datarootdir}/locale'
896: mandir='${datarootdir}/man'
897:
898: ac_prev=
899: ac_dashdash=
900: for ac_option
901: do
902: # If the previous option needs an argument, assign it.
903: if test -n "$ac_prev"; then
904: eval $ac_prev=\$ac_option
905: ac_prev=
906: continue
907: fi
908:
909: case $ac_option in
910: *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
911: *=) ac_optarg= ;;
912: *) ac_optarg=yes ;;
913: esac
914:
915: # Accept the important Cygnus configure options, so we can diagnose typos.
916:
917: case $ac_dashdash$ac_option in
918: --)
919: ac_dashdash=yes ;;
920:
921: -bindir | --bindir | --bindi | --bind | --bin | --bi)
922: ac_prev=bindir ;;
923: -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
924: bindir=$ac_optarg ;;
925:
926: -build | --build | --buil | --bui | --bu)
927: ac_prev=build_alias ;;
928: -build=* | --build=* | --buil=* | --bui=* | --bu=*)
929: build_alias=$ac_optarg ;;
930:
931: -cache-file | --cache-file | --cache-fil | --cache-fi \
932: | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
933: ac_prev=cache_file ;;
934: -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
935: | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
936: cache_file=$ac_optarg ;;
937:
938: --config-cache | -C)
939: cache_file=config.cache ;;
940:
941: -datadir | --datadir | --datadi | --datad)
942: ac_prev=datadir ;;
943: -datadir=* | --datadir=* | --datadi=* | --datad=*)
944: datadir=$ac_optarg ;;
945:
946: -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
947: | --dataroo | --dataro | --datar)
948: ac_prev=datarootdir ;;
949: -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
950: | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
951: datarootdir=$ac_optarg ;;
952:
953: -disable-* | --disable-*)
954: ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
955: # Reject names that are not valid shell variable names.
956: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
957: as_fn_error $? "invalid feature name: $ac_useropt"
958: ac_useropt_orig=$ac_useropt
959: ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
960: case $ac_user_opts in
961: *"
962: "enable_$ac_useropt"
963: "*) ;;
964: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
965: ac_unrecognized_sep=', ';;
966: esac
967: eval enable_$ac_useropt=no ;;
968:
969: -docdir | --docdir | --docdi | --doc | --do)
970: ac_prev=docdir ;;
971: -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
972: docdir=$ac_optarg ;;
973:
974: -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
975: ac_prev=dvidir ;;
976: -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
977: dvidir=$ac_optarg ;;
978:
979: -enable-* | --enable-*)
980: ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
981: # Reject names that are not valid shell variable names.
982: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
983: as_fn_error $? "invalid feature name: $ac_useropt"
984: ac_useropt_orig=$ac_useropt
985: ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
986: case $ac_user_opts in
987: *"
988: "enable_$ac_useropt"
989: "*) ;;
990: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
991: ac_unrecognized_sep=', ';;
992: esac
993: eval enable_$ac_useropt=\$ac_optarg ;;
994:
995: -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
996: | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
997: | --exec | --exe | --ex)
998: ac_prev=exec_prefix ;;
999: -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1000: | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1001: | --exec=* | --exe=* | --ex=*)
1002: exec_prefix=$ac_optarg ;;
1003:
1004: -gas | --gas | --ga | --g)
1005: # Obsolete; use --with-gas.
1006: with_gas=yes ;;
1007:
1008: -help | --help | --hel | --he | -h)
1009: ac_init_help=long ;;
1010: -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1011: ac_init_help=recursive ;;
1012: -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1013: ac_init_help=short ;;
1014:
1015: -host | --host | --hos | --ho)
1016: ac_prev=host_alias ;;
1017: -host=* | --host=* | --hos=* | --ho=*)
1018: host_alias=$ac_optarg ;;
1019:
1020: -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1021: ac_prev=htmldir ;;
1022: -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1023: | --ht=*)
1024: htmldir=$ac_optarg ;;
1025:
1026: -includedir | --includedir | --includedi | --included | --include \
1027: | --includ | --inclu | --incl | --inc)
1028: ac_prev=includedir ;;
1029: -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1030: | --includ=* | --inclu=* | --incl=* | --inc=*)
1031: includedir=$ac_optarg ;;
1032:
1033: -infodir | --infodir | --infodi | --infod | --info | --inf)
1034: ac_prev=infodir ;;
1035: -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1036: infodir=$ac_optarg ;;
1037:
1038: -libdir | --libdir | --libdi | --libd)
1039: ac_prev=libdir ;;
1040: -libdir=* | --libdir=* | --libdi=* | --libd=*)
1041: libdir=$ac_optarg ;;
1042:
1043: -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1044: | --libexe | --libex | --libe)
1045: ac_prev=libexecdir ;;
1046: -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1047: | --libexe=* | --libex=* | --libe=*)
1048: libexecdir=$ac_optarg ;;
1049:
1050: -localedir | --localedir | --localedi | --localed | --locale)
1051: ac_prev=localedir ;;
1052: -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1053: localedir=$ac_optarg ;;
1054:
1055: -localstatedir | --localstatedir | --localstatedi | --localstated \
1056: | --localstate | --localstat | --localsta | --localst | --locals)
1057: ac_prev=localstatedir ;;
1058: -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1059: | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1060: localstatedir=$ac_optarg ;;
1061:
1062: -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1063: ac_prev=mandir ;;
1064: -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1065: mandir=$ac_optarg ;;
1066:
1067: -nfp | --nfp | --nf)
1068: # Obsolete; use --without-fp.
1069: with_fp=no ;;
1070:
1071: -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1072: | --no-cr | --no-c | -n)
1073: no_create=yes ;;
1074:
1075: -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1076: | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1077: no_recursion=yes ;;
1078:
1079: -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1080: | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1081: | --oldin | --oldi | --old | --ol | --o)
1082: ac_prev=oldincludedir ;;
1083: -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1084: | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1085: | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1086: oldincludedir=$ac_optarg ;;
1087:
1088: -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1089: ac_prev=prefix ;;
1090: -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1091: prefix=$ac_optarg ;;
1092:
1093: -program-prefix | --program-prefix | --program-prefi | --program-pref \
1094: | --program-pre | --program-pr | --program-p)
1095: ac_prev=program_prefix ;;
1096: -program-prefix=* | --program-prefix=* | --program-prefi=* \
1097: | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1098: program_prefix=$ac_optarg ;;
1099:
1100: -program-suffix | --program-suffix | --program-suffi | --program-suff \
1101: | --program-suf | --program-su | --program-s)
1102: ac_prev=program_suffix ;;
1103: -program-suffix=* | --program-suffix=* | --program-suffi=* \
1104: | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1105: program_suffix=$ac_optarg ;;
1106:
1107: -program-transform-name | --program-transform-name \
1108: | --program-transform-nam | --program-transform-na \
1109: | --program-transform-n | --program-transform- \
1110: | --program-transform | --program-transfor \
1111: | --program-transfo | --program-transf \
1112: | --program-trans | --program-tran \
1113: | --progr-tra | --program-tr | --program-t)
1114: ac_prev=program_transform_name ;;
1115: -program-transform-name=* | --program-transform-name=* \
1116: | --program-transform-nam=* | --program-transform-na=* \
1117: | --program-transform-n=* | --program-transform-=* \
1118: | --program-transform=* | --program-transfor=* \
1119: | --program-transfo=* | --program-transf=* \
1120: | --program-trans=* | --program-tran=* \
1121: | --progr-tra=* | --program-tr=* | --program-t=*)
1122: program_transform_name=$ac_optarg ;;
1123:
1124: -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1125: ac_prev=pdfdir ;;
1126: -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1127: pdfdir=$ac_optarg ;;
1128:
1129: -psdir | --psdir | --psdi | --psd | --ps)
1130: ac_prev=psdir ;;
1131: -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1132: psdir=$ac_optarg ;;
1133:
1134: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1135: | -silent | --silent | --silen | --sile | --sil)
1136: silent=yes ;;
1137:
1138: -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1139: ac_prev=sbindir ;;
1140: -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1141: | --sbi=* | --sb=*)
1142: sbindir=$ac_optarg ;;
1143:
1144: -sharedstatedir | --sharedstatedir | --sharedstatedi \
1145: | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1146: | --sharedst | --shareds | --shared | --share | --shar \
1147: | --sha | --sh)
1148: ac_prev=sharedstatedir ;;
1149: -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1150: | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1151: | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1152: | --sha=* | --sh=*)
1153: sharedstatedir=$ac_optarg ;;
1154:
1155: -site | --site | --sit)
1156: ac_prev=site ;;
1157: -site=* | --site=* | --sit=*)
1158: site=$ac_optarg ;;
1159:
1160: -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1161: ac_prev=srcdir ;;
1162: -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1163: srcdir=$ac_optarg ;;
1164:
1165: -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1166: | --syscon | --sysco | --sysc | --sys | --sy)
1167: ac_prev=sysconfdir ;;
1168: -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1169: | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1170: sysconfdir=$ac_optarg ;;
1171:
1172: -target | --target | --targe | --targ | --tar | --ta | --t)
1173: ac_prev=target_alias ;;
1174: -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1175: target_alias=$ac_optarg ;;
1176:
1177: -v | -verbose | --verbose | --verbos | --verbo | --verb)
1178: verbose=yes ;;
1179:
1180: -version | --version | --versio | --versi | --vers | -V)
1181: ac_init_version=: ;;
1182:
1183: -with-* | --with-*)
1184: ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1185: # Reject names that are not valid shell variable names.
1186: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1187: as_fn_error $? "invalid package name: $ac_useropt"
1188: ac_useropt_orig=$ac_useropt
1189: ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1190: case $ac_user_opts in
1191: *"
1192: "with_$ac_useropt"
1193: "*) ;;
1194: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1195: ac_unrecognized_sep=', ';;
1196: esac
1197: eval with_$ac_useropt=\$ac_optarg ;;
1198:
1199: -without-* | --without-*)
1200: ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1201: # Reject names that are not valid shell variable names.
1202: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1203: as_fn_error $? "invalid package name: $ac_useropt"
1204: ac_useropt_orig=$ac_useropt
1205: ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1206: case $ac_user_opts in
1207: *"
1208: "with_$ac_useropt"
1209: "*) ;;
1210: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1211: ac_unrecognized_sep=', ';;
1212: esac
1213: eval with_$ac_useropt=no ;;
1214:
1215: --x)
1216: # Obsolete; use --with-x.
1217: with_x=yes ;;
1218:
1219: -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1220: | --x-incl | --x-inc | --x-in | --x-i)
1221: ac_prev=x_includes ;;
1222: -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1223: | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1224: x_includes=$ac_optarg ;;
1225:
1226: -x-libraries | --x-libraries | --x-librarie | --x-librari \
1227: | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1228: ac_prev=x_libraries ;;
1229: -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1230: | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1231: x_libraries=$ac_optarg ;;
1232:
1233: -*) as_fn_error $? "unrecognized option: \`$ac_option'
1234: Try \`$0 --help' for more information"
1235: ;;
1236:
1237: *=*)
1238: ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1239: # Reject names that are not valid shell variable names.
1240: case $ac_envvar in #(
1241: '' | [0-9]* | *[!_$as_cr_alnum]* )
1242: as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1243: esac
1244: eval $ac_envvar=\$ac_optarg
1245: export $ac_envvar ;;
1246:
1247: *)
1248: # FIXME: should be removed in autoconf 3.0.
1249: $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1250: expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1251: $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1252: : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1253: ;;
1254:
1255: esac
1256: done
1257:
1258: if test -n "$ac_prev"; then
1259: ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1260: as_fn_error $? "missing argument to $ac_option"
1261: fi
1262:
1263: if test -n "$ac_unrecognized_opts"; then
1264: case $enable_option_checking in
1265: no) ;;
1266: fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1267: *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1268: esac
1269: fi
1270:
1271: # Check all directory arguments for consistency.
1272: for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1273: datadir sysconfdir sharedstatedir localstatedir includedir \
1274: oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1275: libdir localedir mandir
1276: do
1277: eval ac_val=\$$ac_var
1278: # Remove trailing slashes.
1279: case $ac_val in
1280: */ )
1281: ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1282: eval $ac_var=\$ac_val;;
1283: esac
1284: # Be sure to have absolute directory names.
1285: case $ac_val in
1286: [\\/$]* | ?:[\\/]* ) continue;;
1287: NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1288: esac
1289: as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1290: done
1291:
1292: # There might be people who depend on the old broken behavior: `$host'
1293: # used to hold the argument of --host etc.
1294: # FIXME: To remove some day.
1295: build=$build_alias
1296: host=$host_alias
1297: target=$target_alias
1298:
1299: # FIXME: To remove some day.
1300: if test "x$host_alias" != x; then
1301: if test "x$build_alias" = x; then
1302: cross_compiling=maybe
1303: elif test "x$build_alias" != "x$host_alias"; then
1304: cross_compiling=yes
1305: fi
1306: fi
1307:
1308: ac_tool_prefix=
1309: test -n "$host_alias" && ac_tool_prefix=$host_alias-
1310:
1311: test "$silent" = yes && exec 6>/dev/null
1312:
1313:
1314: ac_pwd=`pwd` && test -n "$ac_pwd" &&
1315: ac_ls_di=`ls -di .` &&
1316: ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1317: as_fn_error $? "working directory cannot be determined"
1318: test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1319: as_fn_error $? "pwd does not report name of working directory"
1320:
1321:
1322: # Find the source files, if location was not specified.
1323: if test -z "$srcdir"; then
1324: ac_srcdir_defaulted=yes
1325: # Try the directory containing this script, then the parent directory.
1326: ac_confdir=`$as_dirname -- "$as_myself" ||
1327: $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1328: X"$as_myself" : 'X\(//\)[^/]' \| \
1329: X"$as_myself" : 'X\(//\)$' \| \
1330: X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1331: $as_echo X"$as_myself" |
1332: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1333: s//\1/
1334: q
1335: }
1336: /^X\(\/\/\)[^/].*/{
1337: s//\1/
1338: q
1339: }
1340: /^X\(\/\/\)$/{
1341: s//\1/
1342: q
1343: }
1344: /^X\(\/\).*/{
1345: s//\1/
1346: q
1347: }
1348: s/.*/./; q'`
1349: srcdir=$ac_confdir
1350: if test ! -r "$srcdir/$ac_unique_file"; then
1351: srcdir=..
1352: fi
1353: else
1354: ac_srcdir_defaulted=no
1355: fi
1356: if test ! -r "$srcdir/$ac_unique_file"; then
1357: test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1358: as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1359: fi
1360: ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1361: ac_abs_confdir=`(
1362: cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1363: pwd)`
1364: # When building in place, set srcdir=.
1365: if test "$ac_abs_confdir" = "$ac_pwd"; then
1366: srcdir=.
1367: fi
1368: # Remove unnecessary trailing slashes from srcdir.
1369: # Double slashes in file names in object file debugging info
1370: # mess up M-x gdb in Emacs.
1371: case $srcdir in
1372: */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1373: esac
1374: for ac_var in $ac_precious_vars; do
1375: eval ac_env_${ac_var}_set=\${${ac_var}+set}
1376: eval ac_env_${ac_var}_value=\$${ac_var}
1377: eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1378: eval ac_cv_env_${ac_var}_value=\$${ac_var}
1379: done
1380:
1381: #
1382: # Report the --help message.
1383: #
1384: if test "$ac_init_help" = "long"; then
1385: # Omit some internal or obsolete options to make the list less imposing.
1386: # This message is too long to be a string in the A/UX 3.1 sh.
1387: cat <<_ACEOF
1.1.1.2 ! misho 1388: \`configure' configures lighttpd 1.4.35 to adapt to many kinds of systems.
1.1 misho 1389:
1390: Usage: $0 [OPTION]... [VAR=VALUE]...
1391:
1392: To assign environment variables (e.g., CC, CFLAGS...), specify them as
1393: VAR=VALUE. See below for descriptions of some of the useful variables.
1394:
1395: Defaults for the options are specified in brackets.
1396:
1397: Configuration:
1398: -h, --help display this help and exit
1399: --help=short display options specific to this package
1400: --help=recursive display the short help of all the included packages
1401: -V, --version display version information and exit
1402: -q, --quiet, --silent do not print \`checking ...' messages
1403: --cache-file=FILE cache test results in FILE [disabled]
1404: -C, --config-cache alias for \`--cache-file=config.cache'
1405: -n, --no-create do not create output files
1406: --srcdir=DIR find the sources in DIR [configure dir or \`..']
1407:
1408: Installation directories:
1409: --prefix=PREFIX install architecture-independent files in PREFIX
1410: [$ac_default_prefix]
1411: --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1412: [PREFIX]
1413:
1414: By default, \`make install' will install all the files in
1415: \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1416: an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1417: for instance \`--prefix=\$HOME'.
1418:
1419: For better control, use the options below.
1420:
1421: Fine tuning of the installation directories:
1422: --bindir=DIR user executables [EPREFIX/bin]
1423: --sbindir=DIR system admin executables [EPREFIX/sbin]
1424: --libexecdir=DIR program executables [EPREFIX/libexec]
1425: --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1426: --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1427: --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1428: --libdir=DIR object code libraries [EPREFIX/lib]
1429: --includedir=DIR C header files [PREFIX/include]
1430: --oldincludedir=DIR C header files for non-gcc [/usr/include]
1431: --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1432: --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1433: --infodir=DIR info documentation [DATAROOTDIR/info]
1434: --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1435: --mandir=DIR man documentation [DATAROOTDIR/man]
1436: --docdir=DIR documentation root [DATAROOTDIR/doc/lighttpd]
1437: --htmldir=DIR html documentation [DOCDIR]
1438: --dvidir=DIR dvi documentation [DOCDIR]
1439: --pdfdir=DIR pdf documentation [DOCDIR]
1440: --psdir=DIR ps documentation [DOCDIR]
1441: _ACEOF
1442:
1443: cat <<\_ACEOF
1444:
1445: Program names:
1446: --program-prefix=PREFIX prepend PREFIX to installed program names
1447: --program-suffix=SUFFIX append SUFFIX to installed program names
1448: --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1449:
1450: System types:
1451: --build=BUILD configure for building on BUILD [guessed]
1452: --host=HOST cross-compile to build programs to run on HOST [BUILD]
1453: --target=TARGET configure for building compilers for TARGET [HOST]
1454: _ACEOF
1455: fi
1456:
1457: if test -n "$ac_init_help"; then
1458: case $ac_init_help in
1.1.1.2 ! misho 1459: short | recursive ) echo "Configuration of lighttpd 1.4.35:";;
1.1 misho 1460: esac
1461: cat <<\_ACEOF
1462:
1463: Optional Features:
1464: --disable-option-checking ignore unrecognized --enable/--with options
1465: --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1466: --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1467: --enable-silent-rules less verbose build output (undo: "make V=1")
1468: --disable-silent-rules verbose build output (undo: "make V=0")
1469: --enable-dependency-tracking
1470: do not reject slow dependency extractors
1471: --disable-dependency-tracking
1472: speeds up one-time build
1473: --enable-static[=PKGS] build static libraries [default=no]
1474: --enable-shared[=PKGS] build shared libraries [default=yes]
1475: --enable-fast-install[=PKGS]
1476: optimize for fast installation [default=yes]
1477: --disable-libtool-lock avoid locking (might break parallel builds)
1478: --enable-lfs Turn on Large File System (default)
1479: --disable-ipv6 disable IPv6 support
1480: --enable-mmap use mmap if available (DANGEROUS, allows local users
1481: to trigger SIGBUS crashes)
1482: --enable-extra-warnings enable extra warnings (gcc specific)
1483:
1484: Optional Packages:
1485: --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1486: --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1487: --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1488: --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1489: both]
1490: --with-sysroot=DIR Search for dependent libraries within DIR
1491: (or the compiler's sysroot if not specified).
1492: --with-libev[=PATH] Include libev support for fdevent handlers in
1493: PATH/include and PATH/lib
1494: --with-mysql[=PATH] Include MySQL support. PATH is the path to
1495: 'mysql_config'
1496: --with-ldap enable LDAP support
1497: --with-attr enable extended attribute support
1498: --with-valgrind enable internal support for valgrind
1499: --with-openssl[=DIR] Include openssl support (default no)
1500: --with-openssl-includes=DIR
1501: OpenSSL includes
1502: --with-openssl-libs=DIR OpenSSL libraries
1503: --with-kerberos5 use Kerberos5 support with OpenSSL
1504: --with-pcre Enable pcre support (default yes)
1505: --with-zlib Enable zlib support for mod_compress
1506: --with-bzip2 Enable bzip2 support for mod_compress
1507: --with-fam fam/gamin for reducing number of stat() calls
1508: --with-webdav-props properties in mod_webdav
1509: --with-webdav-locks locks in mod_webdav
1510: --with-gdbm gdbm storage for mod_trigger_b4_dl
1511: --with-memcache memcached storage for mod_trigger_b4_dl
1512: --with-lua lua engine for mod_cml
1513:
1514: Some influential environment variables:
1515: CC C compiler command
1516: CFLAGS C compiler flags
1517: LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1518: nonstandard directory <lib dir>
1519: LIBS libraries to pass to the linker, e.g. -l<library>
1520: CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1521: you have headers in a nonstandard directory <include dir>
1522: CPP C preprocessor
1523: PKG_CONFIG path to pkg-config utility
1524: PKG_CONFIG_PATH
1525: directories to add to pkg-config's search path
1526: PKG_CONFIG_LIBDIR
1527: path overriding pkg-config's built-in search path
1528: LIBEV_CFLAGS
1529: C compiler flags for LIBEV, overriding pkg-config
1530: LIBEV_LIBS linker flags for LIBEV, overriding pkg-config
1531: FAM_CFLAGS C compiler flags for FAM, overriding pkg-config
1532: FAM_LIBS linker flags for FAM, overriding pkg-config
1533: XML_CFLAGS C compiler flags for XML, overriding pkg-config
1534: XML_LIBS linker flags for XML, overriding pkg-config
1535: SQLITE_CFLAGS
1536: C compiler flags for SQLITE, overriding pkg-config
1537: SQLITE_LIBS linker flags for SQLITE, overriding pkg-config
1538: LUA_CFLAGS C compiler flags for LUA, overriding pkg-config
1539: LUA_LIBS linker flags for LUA, overriding pkg-config
1540:
1541: Use these variables to override the choices made by `configure' or to help
1542: it to find libraries and programs with nonstandard names/locations.
1543:
1544: Report bugs to <contact@lighttpd.net>.
1545: _ACEOF
1546: ac_status=$?
1547: fi
1548:
1549: if test "$ac_init_help" = "recursive"; then
1550: # If there are subdirs, report their specific --help.
1551: for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1552: test -d "$ac_dir" ||
1553: { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1554: continue
1555: ac_builddir=.
1556:
1557: case "$ac_dir" in
1558: .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1559: *)
1560: ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1561: # A ".." for each directory in $ac_dir_suffix.
1562: ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1563: case $ac_top_builddir_sub in
1564: "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1565: *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1566: esac ;;
1567: esac
1568: ac_abs_top_builddir=$ac_pwd
1569: ac_abs_builddir=$ac_pwd$ac_dir_suffix
1570: # for backward compatibility:
1571: ac_top_builddir=$ac_top_build_prefix
1572:
1573: case $srcdir in
1574: .) # We are building in place.
1575: ac_srcdir=.
1576: ac_top_srcdir=$ac_top_builddir_sub
1577: ac_abs_top_srcdir=$ac_pwd ;;
1578: [\\/]* | ?:[\\/]* ) # Absolute name.
1579: ac_srcdir=$srcdir$ac_dir_suffix;
1580: ac_top_srcdir=$srcdir
1581: ac_abs_top_srcdir=$srcdir ;;
1582: *) # Relative name.
1583: ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1584: ac_top_srcdir=$ac_top_build_prefix$srcdir
1585: ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1586: esac
1587: ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1588:
1589: cd "$ac_dir" || { ac_status=$?; continue; }
1590: # Check for guested configure.
1591: if test -f "$ac_srcdir/configure.gnu"; then
1592: echo &&
1593: $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1594: elif test -f "$ac_srcdir/configure"; then
1595: echo &&
1596: $SHELL "$ac_srcdir/configure" --help=recursive
1597: else
1598: $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1599: fi || ac_status=$?
1600: cd "$ac_pwd" || { ac_status=$?; break; }
1601: done
1602: fi
1603:
1604: test -n "$ac_init_help" && exit $ac_status
1605: if $ac_init_version; then
1606: cat <<\_ACEOF
1.1.1.2 ! misho 1607: lighttpd configure 1.4.35
1.1 misho 1608: generated by GNU Autoconf 2.69
1609:
1610: Copyright (C) 2012 Free Software Foundation, Inc.
1611: This configure script is free software; the Free Software Foundation
1612: gives unlimited permission to copy, distribute and modify it.
1613: _ACEOF
1614: exit
1615: fi
1616:
1617: ## ------------------------ ##
1618: ## Autoconf initialization. ##
1619: ## ------------------------ ##
1620:
1621: # ac_fn_c_try_compile LINENO
1622: # --------------------------
1623: # Try to compile conftest.$ac_ext, and return whether this succeeded.
1624: ac_fn_c_try_compile ()
1625: {
1626: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1627: rm -f conftest.$ac_objext
1628: if { { ac_try="$ac_compile"
1629: case "(($ac_try" in
1630: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1631: *) ac_try_echo=$ac_try;;
1632: esac
1633: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1634: $as_echo "$ac_try_echo"; } >&5
1635: (eval "$ac_compile") 2>conftest.err
1636: ac_status=$?
1637: if test -s conftest.err; then
1638: grep -v '^ *+' conftest.err >conftest.er1
1639: cat conftest.er1 >&5
1640: mv -f conftest.er1 conftest.err
1641: fi
1642: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1643: test $ac_status = 0; } && {
1644: test -z "$ac_c_werror_flag" ||
1645: test ! -s conftest.err
1646: } && test -s conftest.$ac_objext; then :
1647: ac_retval=0
1648: else
1649: $as_echo "$as_me: failed program was:" >&5
1650: sed 's/^/| /' conftest.$ac_ext >&5
1651:
1652: ac_retval=1
1653: fi
1654: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1655: as_fn_set_status $ac_retval
1656:
1657: } # ac_fn_c_try_compile
1658:
1659: # ac_fn_c_try_cpp LINENO
1660: # ----------------------
1661: # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1662: ac_fn_c_try_cpp ()
1663: {
1664: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1665: if { { ac_try="$ac_cpp conftest.$ac_ext"
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: $as_echo "$ac_try_echo"; } >&5
1672: (eval "$ac_cpp conftest.$ac_ext") 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: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1680: test $ac_status = 0; } > conftest.i && {
1681: test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1682: test ! -s conftest.err
1683: }; then :
1684: ac_retval=0
1685: else
1686: $as_echo "$as_me: failed program was:" >&5
1687: sed 's/^/| /' conftest.$ac_ext >&5
1688:
1689: ac_retval=1
1690: fi
1691: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1692: as_fn_set_status $ac_retval
1693:
1694: } # ac_fn_c_try_cpp
1695:
1696: # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1697: # -------------------------------------------------------
1698: # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1699: # the include files in INCLUDES and setting the cache variable VAR
1700: # accordingly.
1701: ac_fn_c_check_header_mongrel ()
1702: {
1703: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1704: if eval \${$3+:} false; then :
1705: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1706: $as_echo_n "checking for $2... " >&6; }
1707: if eval \${$3+:} false; then :
1708: $as_echo_n "(cached) " >&6
1709: fi
1710: eval ac_res=\$$3
1711: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1712: $as_echo "$ac_res" >&6; }
1713: else
1714: # Is the header compilable?
1715: { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1716: $as_echo_n "checking $2 usability... " >&6; }
1717: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1718: /* end confdefs.h. */
1719: $4
1720: #include <$2>
1721: _ACEOF
1722: if ac_fn_c_try_compile "$LINENO"; then :
1723: ac_header_compiler=yes
1724: else
1725: ac_header_compiler=no
1726: fi
1727: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1728: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1729: $as_echo "$ac_header_compiler" >&6; }
1730:
1731: # Is the header present?
1732: { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1733: $as_echo_n "checking $2 presence... " >&6; }
1734: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1735: /* end confdefs.h. */
1736: #include <$2>
1737: _ACEOF
1738: if ac_fn_c_try_cpp "$LINENO"; then :
1739: ac_header_preproc=yes
1740: else
1741: ac_header_preproc=no
1742: fi
1743: rm -f conftest.err conftest.i conftest.$ac_ext
1744: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1745: $as_echo "$ac_header_preproc" >&6; }
1746:
1747: # So? What about this header?
1748: case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1749: yes:no: )
1750: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1751: $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1752: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1753: $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1754: ;;
1755: no:yes:* )
1756: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1757: $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1758: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1759: $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1760: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1761: $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1762: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1763: $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1764: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1765: $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1766: ( $as_echo "## ----------------------------------- ##
1767: ## Report this to contact@lighttpd.net ##
1768: ## ----------------------------------- ##"
1769: ) | sed "s/^/$as_me: WARNING: /" >&2
1770: ;;
1771: esac
1772: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1773: $as_echo_n "checking for $2... " >&6; }
1774: if eval \${$3+:} false; then :
1775: $as_echo_n "(cached) " >&6
1776: else
1777: eval "$3=\$ac_header_compiler"
1778: fi
1779: eval ac_res=\$$3
1780: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1781: $as_echo "$ac_res" >&6; }
1782: fi
1783: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1784:
1785: } # ac_fn_c_check_header_mongrel
1786:
1787: # ac_fn_c_try_run LINENO
1788: # ----------------------
1789: # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1790: # that executables *can* be run.
1791: ac_fn_c_try_run ()
1792: {
1793: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1794: if { { ac_try="$ac_link"
1795: case "(($ac_try" in
1796: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1797: *) ac_try_echo=$ac_try;;
1798: esac
1799: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1800: $as_echo "$ac_try_echo"; } >&5
1801: (eval "$ac_link") 2>&5
1802: ac_status=$?
1803: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1804: test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1805: { { case "(($ac_try" in
1806: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1807: *) ac_try_echo=$ac_try;;
1808: esac
1809: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1810: $as_echo "$ac_try_echo"; } >&5
1811: (eval "$ac_try") 2>&5
1812: ac_status=$?
1813: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1814: test $ac_status = 0; }; }; then :
1815: ac_retval=0
1816: else
1817: $as_echo "$as_me: program exited with status $ac_status" >&5
1818: $as_echo "$as_me: failed program was:" >&5
1819: sed 's/^/| /' conftest.$ac_ext >&5
1820:
1821: ac_retval=$ac_status
1822: fi
1823: rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1824: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1825: as_fn_set_status $ac_retval
1826:
1827: } # ac_fn_c_try_run
1828:
1829: # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1830: # -------------------------------------------------------
1831: # Tests whether HEADER exists and can be compiled using the include files in
1832: # INCLUDES, setting the cache variable VAR accordingly.
1833: ac_fn_c_check_header_compile ()
1834: {
1835: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1836: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1837: $as_echo_n "checking for $2... " >&6; }
1838: if eval \${$3+:} false; then :
1839: $as_echo_n "(cached) " >&6
1840: else
1841: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1842: /* end confdefs.h. */
1843: $4
1844: #include <$2>
1845: _ACEOF
1846: if ac_fn_c_try_compile "$LINENO"; then :
1847: eval "$3=yes"
1848: else
1849: eval "$3=no"
1850: fi
1851: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1852: fi
1853: eval ac_res=\$$3
1854: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1855: $as_echo "$ac_res" >&6; }
1856: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1857:
1858: } # ac_fn_c_check_header_compile
1859:
1860: # ac_fn_c_try_link LINENO
1861: # -----------------------
1862: # Try to link conftest.$ac_ext, and return whether this succeeded.
1863: ac_fn_c_try_link ()
1864: {
1865: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1866: rm -f conftest.$ac_objext conftest$ac_exeext
1867: if { { ac_try="$ac_link"
1868: case "(($ac_try" in
1869: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1870: *) ac_try_echo=$ac_try;;
1871: esac
1872: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1873: $as_echo "$ac_try_echo"; } >&5
1874: (eval "$ac_link") 2>conftest.err
1875: ac_status=$?
1876: if test -s conftest.err; then
1877: grep -v '^ *+' conftest.err >conftest.er1
1878: cat conftest.er1 >&5
1879: mv -f conftest.er1 conftest.err
1880: fi
1881: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1882: test $ac_status = 0; } && {
1883: test -z "$ac_c_werror_flag" ||
1884: test ! -s conftest.err
1885: } && test -s conftest$ac_exeext && {
1886: test "$cross_compiling" = yes ||
1887: test -x conftest$ac_exeext
1888: }; then :
1889: ac_retval=0
1890: else
1891: $as_echo "$as_me: failed program was:" >&5
1892: sed 's/^/| /' conftest.$ac_ext >&5
1893:
1894: ac_retval=1
1895: fi
1896: # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1897: # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1898: # interfere with the next link command; also delete a directory that is
1899: # left behind by Apple's compiler. We do this before executing the actions.
1900: rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1901: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1902: as_fn_set_status $ac_retval
1903:
1904: } # ac_fn_c_try_link
1905:
1906: # ac_fn_c_check_func LINENO FUNC VAR
1907: # ----------------------------------
1908: # Tests whether FUNC exists, setting the cache variable VAR accordingly
1909: ac_fn_c_check_func ()
1910: {
1911: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1912: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1913: $as_echo_n "checking for $2... " >&6; }
1914: if eval \${$3+:} false; then :
1915: $as_echo_n "(cached) " >&6
1916: else
1917: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1918: /* end confdefs.h. */
1919: /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1920: For example, HP-UX 11i <limits.h> declares gettimeofday. */
1921: #define $2 innocuous_$2
1922:
1923: /* System header to define __stub macros and hopefully few prototypes,
1924: which can conflict with char $2 (); below.
1925: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1926: <limits.h> exists even on freestanding compilers. */
1927:
1928: #ifdef __STDC__
1929: # include <limits.h>
1930: #else
1931: # include <assert.h>
1932: #endif
1933:
1934: #undef $2
1935:
1936: /* Override any GCC internal prototype to avoid an error.
1937: Use char because int might match the return type of a GCC
1938: builtin and then its argument prototype would still apply. */
1939: #ifdef __cplusplus
1940: extern "C"
1941: #endif
1942: char $2 ();
1943: /* The GNU C library defines this for functions which it implements
1944: to always fail with ENOSYS. Some functions are actually named
1945: something starting with __ and the normal name is an alias. */
1946: #if defined __stub_$2 || defined __stub___$2
1947: choke me
1948: #endif
1949:
1950: int
1951: main ()
1952: {
1953: return $2 ();
1954: ;
1955: return 0;
1956: }
1957: _ACEOF
1958: if ac_fn_c_try_link "$LINENO"; then :
1959: eval "$3=yes"
1960: else
1961: eval "$3=no"
1962: fi
1963: rm -f core conftest.err conftest.$ac_objext \
1964: conftest$ac_exeext conftest.$ac_ext
1965: fi
1966: eval ac_res=\$$3
1967: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1968: $as_echo "$ac_res" >&6; }
1969: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1970:
1971: } # ac_fn_c_check_func
1972:
1973: # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1974: # -------------------------------------------
1975: # Tests whether TYPE exists after having included INCLUDES, setting cache
1976: # variable VAR accordingly.
1977: ac_fn_c_check_type ()
1978: {
1979: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1980: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1981: $as_echo_n "checking for $2... " >&6; }
1982: if eval \${$3+:} false; then :
1983: $as_echo_n "(cached) " >&6
1984: else
1985: eval "$3=no"
1986: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1987: /* end confdefs.h. */
1988: $4
1989: int
1990: main ()
1991: {
1992: if (sizeof ($2))
1993: return 0;
1994: ;
1995: return 0;
1996: }
1997: _ACEOF
1998: if ac_fn_c_try_compile "$LINENO"; then :
1999: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2000: /* end confdefs.h. */
2001: $4
2002: int
2003: main ()
2004: {
2005: if (sizeof (($2)))
2006: return 0;
2007: ;
2008: return 0;
2009: }
2010: _ACEOF
2011: if ac_fn_c_try_compile "$LINENO"; then :
2012:
2013: else
2014: eval "$3=yes"
2015: fi
2016: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2017: fi
2018: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2019: fi
2020: eval ac_res=\$$3
2021: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2022: $as_echo "$ac_res" >&6; }
2023: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2024:
2025: } # ac_fn_c_check_type
2026:
2027: # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2028: # ----------------------------------------------------
2029: # Tries to find if the field MEMBER exists in type AGGR, after including
2030: # INCLUDES, setting cache variable VAR accordingly.
2031: ac_fn_c_check_member ()
2032: {
2033: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2034: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2035: $as_echo_n "checking for $2.$3... " >&6; }
2036: if eval \${$4+:} false; then :
2037: $as_echo_n "(cached) " >&6
2038: else
2039: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2040: /* end confdefs.h. */
2041: $5
2042: int
2043: main ()
2044: {
2045: static $2 ac_aggr;
2046: if (ac_aggr.$3)
2047: return 0;
2048: ;
2049: return 0;
2050: }
2051: _ACEOF
2052: if ac_fn_c_try_compile "$LINENO"; then :
2053: eval "$4=yes"
2054: else
2055: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2056: /* end confdefs.h. */
2057: $5
2058: int
2059: main ()
2060: {
2061: static $2 ac_aggr;
2062: if (sizeof ac_aggr.$3)
2063: return 0;
2064: ;
2065: return 0;
2066: }
2067: _ACEOF
2068: if ac_fn_c_try_compile "$LINENO"; then :
2069: eval "$4=yes"
2070: else
2071: eval "$4=no"
2072: fi
2073: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2074: fi
2075: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2076: fi
2077: eval ac_res=\$$4
2078: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2079: $as_echo "$ac_res" >&6; }
2080: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2081:
2082: } # ac_fn_c_check_member
2083:
2084: # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2085: # --------------------------------------------
2086: # Tries to find the compile-time value of EXPR in a program that includes
2087: # INCLUDES, setting VAR accordingly. Returns whether the value could be
2088: # computed
2089: ac_fn_c_compute_int ()
2090: {
2091: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2092: if test "$cross_compiling" = yes; then
2093: # Depending upon the size, compute the lo and hi bounds.
2094: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2095: /* end confdefs.h. */
2096: $4
2097: int
2098: main ()
2099: {
2100: static int test_array [1 - 2 * !(($2) >= 0)];
2101: test_array [0] = 0;
2102: return test_array [0];
2103:
2104: ;
2105: return 0;
2106: }
2107: _ACEOF
2108: if ac_fn_c_try_compile "$LINENO"; then :
2109: ac_lo=0 ac_mid=0
2110: while :; do
2111: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2112: /* end confdefs.h. */
2113: $4
2114: int
2115: main ()
2116: {
2117: static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2118: test_array [0] = 0;
2119: return test_array [0];
2120:
2121: ;
2122: return 0;
2123: }
2124: _ACEOF
2125: if ac_fn_c_try_compile "$LINENO"; then :
2126: ac_hi=$ac_mid; break
2127: else
2128: as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2129: if test $ac_lo -le $ac_mid; then
2130: ac_lo= ac_hi=
2131: break
2132: fi
2133: as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2134: fi
2135: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2136: done
2137: else
2138: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2139: /* end confdefs.h. */
2140: $4
2141: int
2142: main ()
2143: {
2144: static int test_array [1 - 2 * !(($2) < 0)];
2145: test_array [0] = 0;
2146: return test_array [0];
2147:
2148: ;
2149: return 0;
2150: }
2151: _ACEOF
2152: if ac_fn_c_try_compile "$LINENO"; then :
2153: ac_hi=-1 ac_mid=-1
2154: while :; do
2155: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2156: /* end confdefs.h. */
2157: $4
2158: int
2159: main ()
2160: {
2161: static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2162: test_array [0] = 0;
2163: return test_array [0];
2164:
2165: ;
2166: return 0;
2167: }
2168: _ACEOF
2169: if ac_fn_c_try_compile "$LINENO"; then :
2170: ac_lo=$ac_mid; break
2171: else
2172: as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2173: if test $ac_mid -le $ac_hi; then
2174: ac_lo= ac_hi=
2175: break
2176: fi
2177: as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2178: fi
2179: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2180: done
2181: else
2182: ac_lo= ac_hi=
2183: fi
2184: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2185: fi
2186: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2187: # Binary search between lo and hi bounds.
2188: while test "x$ac_lo" != "x$ac_hi"; do
2189: as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2190: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2191: /* end confdefs.h. */
2192: $4
2193: int
2194: main ()
2195: {
2196: static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2197: test_array [0] = 0;
2198: return test_array [0];
2199:
2200: ;
2201: return 0;
2202: }
2203: _ACEOF
2204: if ac_fn_c_try_compile "$LINENO"; then :
2205: ac_hi=$ac_mid
2206: else
2207: as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2208: fi
2209: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2210: done
2211: case $ac_lo in #((
2212: ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2213: '') ac_retval=1 ;;
2214: esac
2215: else
2216: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2217: /* end confdefs.h. */
2218: $4
2219: static long int longval () { return $2; }
2220: static unsigned long int ulongval () { return $2; }
2221: #include <stdio.h>
2222: #include <stdlib.h>
2223: int
2224: main ()
2225: {
2226:
2227: FILE *f = fopen ("conftest.val", "w");
2228: if (! f)
2229: return 1;
2230: if (($2) < 0)
2231: {
2232: long int i = longval ();
2233: if (i != ($2))
2234: return 1;
2235: fprintf (f, "%ld", i);
2236: }
2237: else
2238: {
2239: unsigned long int i = ulongval ();
2240: if (i != ($2))
2241: return 1;
2242: fprintf (f, "%lu", i);
2243: }
2244: /* Do not output a trailing newline, as this causes \r\n confusion
2245: on some platforms. */
2246: return ferror (f) || fclose (f) != 0;
2247:
2248: ;
2249: return 0;
2250: }
2251: _ACEOF
2252: if ac_fn_c_try_run "$LINENO"; then :
2253: echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2254: else
2255: ac_retval=1
2256: fi
2257: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2258: conftest.$ac_objext conftest.beam conftest.$ac_ext
2259: rm -f conftest.val
2260:
2261: fi
2262: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2263: as_fn_set_status $ac_retval
2264:
2265: } # ac_fn_c_compute_int
2266: cat >config.log <<_ACEOF
2267: This file contains any messages produced by compilers while
2268: running configure, to aid debugging if configure makes a mistake.
2269:
1.1.1.2 ! misho 2270: It was created by lighttpd $as_me 1.4.35, which was
1.1 misho 2271: generated by GNU Autoconf 2.69. Invocation command line was
2272:
2273: $ $0 $@
2274:
2275: _ACEOF
2276: exec 5>>config.log
2277: {
2278: cat <<_ASUNAME
2279: ## --------- ##
2280: ## Platform. ##
2281: ## --------- ##
2282:
2283: hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2284: uname -m = `(uname -m) 2>/dev/null || echo unknown`
2285: uname -r = `(uname -r) 2>/dev/null || echo unknown`
2286: uname -s = `(uname -s) 2>/dev/null || echo unknown`
2287: uname -v = `(uname -v) 2>/dev/null || echo unknown`
2288:
2289: /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2290: /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2291:
2292: /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2293: /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2294: /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2295: /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2296: /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2297: /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2298: /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2299:
2300: _ASUNAME
2301:
2302: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2303: for as_dir in $PATH
2304: do
2305: IFS=$as_save_IFS
2306: test -z "$as_dir" && as_dir=.
2307: $as_echo "PATH: $as_dir"
2308: done
2309: IFS=$as_save_IFS
2310:
2311: } >&5
2312:
2313: cat >&5 <<_ACEOF
2314:
2315:
2316: ## ----------- ##
2317: ## Core tests. ##
2318: ## ----------- ##
2319:
2320: _ACEOF
2321:
2322:
2323: # Keep a trace of the command line.
2324: # Strip out --no-create and --no-recursion so they do not pile up.
2325: # Strip out --silent because we don't want to record it for future runs.
2326: # Also quote any args containing shell meta-characters.
2327: # Make two passes to allow for proper duplicate-argument suppression.
2328: ac_configure_args=
2329: ac_configure_args0=
2330: ac_configure_args1=
2331: ac_must_keep_next=false
2332: for ac_pass in 1 2
2333: do
2334: for ac_arg
2335: do
2336: case $ac_arg in
2337: -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2338: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2339: | -silent | --silent | --silen | --sile | --sil)
2340: continue ;;
2341: *\'*)
2342: ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2343: esac
2344: case $ac_pass in
2345: 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2346: 2)
2347: as_fn_append ac_configure_args1 " '$ac_arg'"
2348: if test $ac_must_keep_next = true; then
2349: ac_must_keep_next=false # Got value, back to normal.
2350: else
2351: case $ac_arg in
2352: *=* | --config-cache | -C | -disable-* | --disable-* \
2353: | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2354: | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2355: | -with-* | --with-* | -without-* | --without-* | --x)
2356: case "$ac_configure_args0 " in
2357: "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2358: esac
2359: ;;
2360: -* ) ac_must_keep_next=true ;;
2361: esac
2362: fi
2363: as_fn_append ac_configure_args " '$ac_arg'"
2364: ;;
2365: esac
2366: done
2367: done
2368: { ac_configure_args0=; unset ac_configure_args0;}
2369: { ac_configure_args1=; unset ac_configure_args1;}
2370:
2371: # When interrupted or exit'd, cleanup temporary files, and complete
2372: # config.log. We remove comments because anyway the quotes in there
2373: # would cause problems or look ugly.
2374: # WARNING: Use '\'' to represent an apostrophe within the trap.
2375: # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2376: trap 'exit_status=$?
2377: # Save into config.log some information that might help in debugging.
2378: {
2379: echo
2380:
2381: $as_echo "## ---------------- ##
2382: ## Cache variables. ##
2383: ## ---------------- ##"
2384: echo
2385: # The following way of writing the cache mishandles newlines in values,
2386: (
2387: for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2388: eval ac_val=\$$ac_var
2389: case $ac_val in #(
2390: *${as_nl}*)
2391: case $ac_var in #(
2392: *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2393: $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2394: esac
2395: case $ac_var in #(
2396: _ | IFS | as_nl) ;; #(
2397: BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2398: *) { eval $ac_var=; unset $ac_var;} ;;
2399: esac ;;
2400: esac
2401: done
2402: (set) 2>&1 |
2403: case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2404: *${as_nl}ac_space=\ *)
2405: sed -n \
2406: "s/'\''/'\''\\\\'\'''\''/g;
2407: s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2408: ;; #(
2409: *)
2410: sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2411: ;;
2412: esac |
2413: sort
2414: )
2415: echo
2416:
2417: $as_echo "## ----------------- ##
2418: ## Output variables. ##
2419: ## ----------------- ##"
2420: echo
2421: for ac_var in $ac_subst_vars
2422: do
2423: eval ac_val=\$$ac_var
2424: case $ac_val in
2425: *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2426: esac
2427: $as_echo "$ac_var='\''$ac_val'\''"
2428: done | sort
2429: echo
2430:
2431: if test -n "$ac_subst_files"; then
2432: $as_echo "## ------------------- ##
2433: ## File substitutions. ##
2434: ## ------------------- ##"
2435: echo
2436: for ac_var in $ac_subst_files
2437: do
2438: eval ac_val=\$$ac_var
2439: case $ac_val in
2440: *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2441: esac
2442: $as_echo "$ac_var='\''$ac_val'\''"
2443: done | sort
2444: echo
2445: fi
2446:
2447: if test -s confdefs.h; then
2448: $as_echo "## ----------- ##
2449: ## confdefs.h. ##
2450: ## ----------- ##"
2451: echo
2452: cat confdefs.h
2453: echo
2454: fi
2455: test "$ac_signal" != 0 &&
2456: $as_echo "$as_me: caught signal $ac_signal"
2457: $as_echo "$as_me: exit $exit_status"
2458: } >&5
2459: rm -f core *.core core.conftest.* &&
2460: rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2461: exit $exit_status
2462: ' 0
2463: for ac_signal in 1 2 13 15; do
2464: trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2465: done
2466: ac_signal=0
2467:
2468: # confdefs.h avoids OS command line length limits that DEFS can exceed.
2469: rm -f -r conftest* confdefs.h
2470:
2471: $as_echo "/* confdefs.h */" > confdefs.h
2472:
2473: # Predefined preprocessor variables.
2474:
2475: cat >>confdefs.h <<_ACEOF
2476: #define PACKAGE_NAME "$PACKAGE_NAME"
2477: _ACEOF
2478:
2479: cat >>confdefs.h <<_ACEOF
2480: #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2481: _ACEOF
2482:
2483: cat >>confdefs.h <<_ACEOF
2484: #define PACKAGE_VERSION "$PACKAGE_VERSION"
2485: _ACEOF
2486:
2487: cat >>confdefs.h <<_ACEOF
2488: #define PACKAGE_STRING "$PACKAGE_STRING"
2489: _ACEOF
2490:
2491: cat >>confdefs.h <<_ACEOF
2492: #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2493: _ACEOF
2494:
2495: cat >>confdefs.h <<_ACEOF
2496: #define PACKAGE_URL "$PACKAGE_URL"
2497: _ACEOF
2498:
2499:
2500: # Let the site file select an alternate cache file if it wants to.
2501: # Prefer an explicitly selected file to automatically selected ones.
2502: ac_site_file1=NONE
2503: ac_site_file2=NONE
2504: if test -n "$CONFIG_SITE"; then
2505: # We do not want a PATH search for config.site.
2506: case $CONFIG_SITE in #((
2507: -*) ac_site_file1=./$CONFIG_SITE;;
2508: */*) ac_site_file1=$CONFIG_SITE;;
2509: *) ac_site_file1=./$CONFIG_SITE;;
2510: esac
2511: elif test "x$prefix" != xNONE; then
2512: ac_site_file1=$prefix/share/config.site
2513: ac_site_file2=$prefix/etc/config.site
2514: else
2515: ac_site_file1=$ac_default_prefix/share/config.site
2516: ac_site_file2=$ac_default_prefix/etc/config.site
2517: fi
2518: for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2519: do
2520: test "x$ac_site_file" = xNONE && continue
2521: if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2522: { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2523: $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2524: sed 's/^/| /' "$ac_site_file" >&5
2525: . "$ac_site_file" \
2526: || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2527: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2528: as_fn_error $? "failed to load site script $ac_site_file
2529: See \`config.log' for more details" "$LINENO" 5; }
2530: fi
2531: done
2532:
2533: if test -r "$cache_file"; then
2534: # Some versions of bash will fail to source /dev/null (special files
2535: # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2536: if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2537: { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2538: $as_echo "$as_me: loading cache $cache_file" >&6;}
2539: case $cache_file in
2540: [\\/]* | ?:[\\/]* ) . "$cache_file";;
2541: *) . "./$cache_file";;
2542: esac
2543: fi
2544: else
2545: { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2546: $as_echo "$as_me: creating cache $cache_file" >&6;}
2547: >$cache_file
2548: fi
2549:
2550: # Check that the precious variables saved in the cache have kept the same
2551: # value.
2552: ac_cache_corrupted=false
2553: for ac_var in $ac_precious_vars; do
2554: eval ac_old_set=\$ac_cv_env_${ac_var}_set
2555: eval ac_new_set=\$ac_env_${ac_var}_set
2556: eval ac_old_val=\$ac_cv_env_${ac_var}_value
2557: eval ac_new_val=\$ac_env_${ac_var}_value
2558: case $ac_old_set,$ac_new_set in
2559: set,)
2560: { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2561: $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2562: ac_cache_corrupted=: ;;
2563: ,set)
2564: { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2565: $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2566: ac_cache_corrupted=: ;;
2567: ,);;
2568: *)
2569: if test "x$ac_old_val" != "x$ac_new_val"; then
2570: # differences in whitespace do not lead to failure.
2571: ac_old_val_w=`echo x $ac_old_val`
2572: ac_new_val_w=`echo x $ac_new_val`
2573: if test "$ac_old_val_w" != "$ac_new_val_w"; then
2574: { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2575: $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2576: ac_cache_corrupted=:
2577: else
2578: { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2579: $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2580: eval $ac_var=\$ac_old_val
2581: fi
2582: { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2583: $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2584: { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2585: $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2586: fi;;
2587: esac
2588: # Pass precious variables to config.status.
2589: if test "$ac_new_set" = set; then
2590: case $ac_new_val in
2591: *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2592: *) ac_arg=$ac_var=$ac_new_val ;;
2593: esac
2594: case " $ac_configure_args " in
2595: *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2596: *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2597: esac
2598: fi
2599: done
2600: if $ac_cache_corrupted; then
2601: { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2602: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2603: { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2604: $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2605: as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2606: fi
2607: ## -------------------- ##
2608: ## Main body of script. ##
2609: ## -------------------- ##
2610:
2611: ac_ext=c
2612: ac_cpp='$CPP $CPPFLAGS'
2613: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2614: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2615: ac_compiler_gnu=$ac_cv_c_compiler_gnu
2616:
2617:
2618:
2619: ac_config_headers="$ac_config_headers config.h"
2620:
2621:
2622:
2623: ac_aux_dir=
2624: for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2625: if test -f "$ac_dir/install-sh"; then
2626: ac_aux_dir=$ac_dir
2627: ac_install_sh="$ac_aux_dir/install-sh -c"
2628: break
2629: elif test -f "$ac_dir/install.sh"; then
2630: ac_aux_dir=$ac_dir
2631: ac_install_sh="$ac_aux_dir/install.sh -c"
2632: break
2633: elif test -f "$ac_dir/shtool"; then
2634: ac_aux_dir=$ac_dir
2635: ac_install_sh="$ac_aux_dir/shtool install -c"
2636: break
2637: fi
2638: done
2639: if test -z "$ac_aux_dir"; then
2640: as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2641: fi
2642:
2643: # These three variables are undocumented and unsupported,
2644: # and are intended to be withdrawn in a future Autoconf release.
2645: # They can cause serious problems if a builder's source tree is in a directory
2646: # whose full name contains unusual characters.
2647: ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2648: ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2649: ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2650:
2651:
2652: # Make sure we can run config.sub.
2653: $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2654: as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2655:
2656: { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2657: $as_echo_n "checking build system type... " >&6; }
2658: if ${ac_cv_build+:} false; then :
2659: $as_echo_n "(cached) " >&6
2660: else
2661: ac_build_alias=$build_alias
2662: test "x$ac_build_alias" = x &&
2663: ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2664: test "x$ac_build_alias" = x &&
2665: as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2666: ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2667: as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2668:
2669: fi
2670: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2671: $as_echo "$ac_cv_build" >&6; }
2672: case $ac_cv_build in
2673: *-*-*) ;;
2674: *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2675: esac
2676: build=$ac_cv_build
2677: ac_save_IFS=$IFS; IFS='-'
2678: set x $ac_cv_build
2679: shift
2680: build_cpu=$1
2681: build_vendor=$2
2682: shift; shift
2683: # Remember, the first character of IFS is used to create $*,
2684: # except with old shells:
2685: build_os=$*
2686: IFS=$ac_save_IFS
2687: case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2688:
2689:
2690: { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2691: $as_echo_n "checking host system type... " >&6; }
2692: if ${ac_cv_host+:} false; then :
2693: $as_echo_n "(cached) " >&6
2694: else
2695: if test "x$host_alias" = x; then
2696: ac_cv_host=$ac_cv_build
2697: else
2698: ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2699: as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2700: fi
2701:
2702: fi
2703: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2704: $as_echo "$ac_cv_host" >&6; }
2705: case $ac_cv_host in
2706: *-*-*) ;;
2707: *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2708: esac
2709: host=$ac_cv_host
2710: ac_save_IFS=$IFS; IFS='-'
2711: set x $ac_cv_host
2712: shift
2713: host_cpu=$1
2714: host_vendor=$2
2715: shift; shift
2716: # Remember, the first character of IFS is used to create $*,
2717: # except with old shells:
2718: host_os=$*
2719: IFS=$ac_save_IFS
2720: case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2721:
2722:
2723: { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2724: $as_echo_n "checking target system type... " >&6; }
2725: if ${ac_cv_target+:} false; then :
2726: $as_echo_n "(cached) " >&6
2727: else
2728: if test "x$target_alias" = x; then
2729: ac_cv_target=$ac_cv_host
2730: else
2731: ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2732: as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2733: fi
2734:
2735: fi
2736: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2737: $as_echo "$ac_cv_target" >&6; }
2738: case $ac_cv_target in
2739: *-*-*) ;;
2740: *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2741: esac
2742: target=$ac_cv_target
2743: ac_save_IFS=$IFS; IFS='-'
2744: set x $ac_cv_target
2745: shift
2746: target_cpu=$1
2747: target_vendor=$2
2748: shift; shift
2749: # Remember, the first character of IFS is used to create $*,
2750: # except with old shells:
2751: target_os=$*
2752: IFS=$ac_save_IFS
2753: case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2754:
2755:
2756: # The aliases save the names the user supplied, while $host etc.
2757: # will get canonicalized.
2758: test -n "$target_alias" &&
2759: test "$program_prefix$program_suffix$program_transform_name" = \
2760: NONENONEs,x,x, &&
2761: program_prefix=${target_alias}-
2762:
2763:
2764:
2765: am__api_version='1.14'
2766:
2767: # Find a good install program. We prefer a C program (faster),
2768: # so one script is as good as another. But avoid the broken or
2769: # incompatible versions:
2770: # SysV /etc/install, /usr/sbin/install
2771: # SunOS /usr/etc/install
2772: # IRIX /sbin/install
2773: # AIX /bin/install
2774: # AmigaOS /C/install, which installs bootblocks on floppy discs
2775: # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2776: # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2777: # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2778: # OS/2's system install, which has a completely different semantic
2779: # ./install, which can be erroneously created by make from ./install.sh.
2780: # Reject install programs that cannot install multiple files.
2781: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2782: $as_echo_n "checking for a BSD-compatible install... " >&6; }
2783: if test -z "$INSTALL"; then
2784: if ${ac_cv_path_install+:} false; then :
2785: $as_echo_n "(cached) " >&6
2786: else
2787: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2788: for as_dir in $PATH
2789: do
2790: IFS=$as_save_IFS
2791: test -z "$as_dir" && as_dir=.
2792: # Account for people who put trailing slashes in PATH elements.
2793: case $as_dir/ in #((
2794: ./ | .// | /[cC]/* | \
2795: /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2796: ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2797: /usr/ucb/* ) ;;
2798: *)
2799: # OSF1 and SCO ODT 3.0 have their own names for install.
2800: # Don't use installbsd from OSF since it installs stuff as root
2801: # by default.
2802: for ac_prog in ginstall scoinst install; do
2803: for ac_exec_ext in '' $ac_executable_extensions; do
2804: if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2805: if test $ac_prog = install &&
2806: grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2807: # AIX install. It has an incompatible calling convention.
2808: :
2809: elif test $ac_prog = install &&
2810: grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2811: # program-specific install script used by HP pwplus--don't use.
2812: :
2813: else
2814: rm -rf conftest.one conftest.two conftest.dir
2815: echo one > conftest.one
2816: echo two > conftest.two
2817: mkdir conftest.dir
2818: if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2819: test -s conftest.one && test -s conftest.two &&
2820: test -s conftest.dir/conftest.one &&
2821: test -s conftest.dir/conftest.two
2822: then
2823: ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2824: break 3
2825: fi
2826: fi
2827: fi
2828: done
2829: done
2830: ;;
2831: esac
2832:
2833: done
2834: IFS=$as_save_IFS
2835:
2836: rm -rf conftest.one conftest.two conftest.dir
2837:
2838: fi
2839: if test "${ac_cv_path_install+set}" = set; then
2840: INSTALL=$ac_cv_path_install
2841: else
2842: # As a last resort, use the slow shell script. Don't cache a
2843: # value for INSTALL within a source directory, because that will
2844: # break other packages using the cache if that directory is
2845: # removed, or if the value is a relative name.
2846: INSTALL=$ac_install_sh
2847: fi
2848: fi
2849: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2850: $as_echo "$INSTALL" >&6; }
2851:
2852: # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2853: # It thinks the first close brace ends the variable substitution.
2854: test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2855:
2856: test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2857:
2858: test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2859:
2860: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2861: $as_echo_n "checking whether build environment is sane... " >&6; }
2862: # Reject unsafe characters in $srcdir or the absolute working directory
2863: # name. Accept space and tab only in the latter.
2864: am_lf='
2865: '
2866: case `pwd` in
2867: *[\\\"\#\$\&\'\`$am_lf]*)
2868: as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2869: esac
2870: case $srcdir in
2871: *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2872: as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2873: esac
2874:
2875: # Do 'set' in a subshell so we don't clobber the current shell's
2876: # arguments. Must try -L first in case configure is actually a
2877: # symlink; some systems play weird games with the mod time of symlinks
2878: # (eg FreeBSD returns the mod time of the symlink's containing
2879: # directory).
2880: if (
2881: am_has_slept=no
2882: for am_try in 1 2; do
2883: echo "timestamp, slept: $am_has_slept" > conftest.file
2884: set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2885: if test "$*" = "X"; then
2886: # -L didn't work.
2887: set X `ls -t "$srcdir/configure" conftest.file`
2888: fi
2889: if test "$*" != "X $srcdir/configure conftest.file" \
2890: && test "$*" != "X conftest.file $srcdir/configure"; then
2891:
2892: # If neither matched, then we have a broken ls. This can happen
2893: # if, for instance, CONFIG_SHELL is bash and it inherits a
2894: # broken ls alias from the environment. This has actually
2895: # happened. Such a system could not be considered "sane".
2896: as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2897: alias in your environment" "$LINENO" 5
2898: fi
2899: if test "$2" = conftest.file || test $am_try -eq 2; then
2900: break
2901: fi
2902: # Just in case.
2903: sleep 1
2904: am_has_slept=yes
2905: done
2906: test "$2" = conftest.file
2907: )
2908: then
2909: # Ok.
2910: :
2911: else
2912: as_fn_error $? "newly created file is older than distributed files!
2913: Check your system clock" "$LINENO" 5
2914: fi
2915: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2916: $as_echo "yes" >&6; }
2917: # If we didn't sleep, we still need to ensure time stamps of config.status and
2918: # generated files are strictly newer.
2919: am_sleep_pid=
2920: if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2921: ( sleep 1 ) &
2922: am_sleep_pid=$!
2923: fi
2924:
2925: rm -f conftest.file
2926:
2927: test "$program_prefix" != NONE &&
2928: program_transform_name="s&^&$program_prefix&;$program_transform_name"
2929: # Use a double $ so make ignores it.
2930: test "$program_suffix" != NONE &&
2931: program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2932: # Double any \ or $.
2933: # By default was `s,x,x', remove it if useless.
2934: ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2935: program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2936:
2937: # expand $ac_aux_dir to an absolute path
2938: am_aux_dir=`cd $ac_aux_dir && pwd`
2939:
2940: if test x"${MISSING+set}" != xset; then
2941: case $am_aux_dir in
2942: *\ * | *\ *)
2943: MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2944: *)
2945: MISSING="\${SHELL} $am_aux_dir/missing" ;;
2946: esac
2947: fi
2948: # Use eval to expand $SHELL
2949: if eval "$MISSING --is-lightweight"; then
2950: am_missing_run="$MISSING "
2951: else
2952: am_missing_run=
2953: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2954: $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2955: fi
2956:
2957: if test x"${install_sh}" != xset; then
2958: case $am_aux_dir in
2959: *\ * | *\ *)
2960: install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2961: *)
2962: install_sh="\${SHELL} $am_aux_dir/install-sh"
2963: esac
2964: fi
2965:
2966: # Installed binaries are usually stripped using 'strip' when the user
2967: # run "make install-strip". However 'strip' might not be the right
2968: # tool to use in cross-compilation environments, therefore Automake
2969: # will honor the 'STRIP' environment variable to overrule this program.
2970: if test "$cross_compiling" != no; then
2971: if test -n "$ac_tool_prefix"; then
2972: # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2973: set dummy ${ac_tool_prefix}strip; ac_word=$2
2974: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2975: $as_echo_n "checking for $ac_word... " >&6; }
2976: if ${ac_cv_prog_STRIP+:} false; then :
2977: $as_echo_n "(cached) " >&6
2978: else
2979: if test -n "$STRIP"; then
2980: ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2981: else
2982: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2983: for as_dir in $PATH
2984: do
2985: IFS=$as_save_IFS
2986: test -z "$as_dir" && as_dir=.
2987: for ac_exec_ext in '' $ac_executable_extensions; do
2988: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2989: ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2990: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2991: break 2
2992: fi
2993: done
2994: done
2995: IFS=$as_save_IFS
2996:
2997: fi
2998: fi
2999: STRIP=$ac_cv_prog_STRIP
3000: if test -n "$STRIP"; then
3001: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3002: $as_echo "$STRIP" >&6; }
3003: else
3004: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3005: $as_echo "no" >&6; }
3006: fi
3007:
3008:
3009: fi
3010: if test -z "$ac_cv_prog_STRIP"; then
3011: ac_ct_STRIP=$STRIP
3012: # Extract the first word of "strip", so it can be a program name with args.
3013: set dummy strip; ac_word=$2
3014: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3015: $as_echo_n "checking for $ac_word... " >&6; }
3016: if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3017: $as_echo_n "(cached) " >&6
3018: else
3019: if test -n "$ac_ct_STRIP"; then
3020: ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3021: else
3022: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3023: for as_dir in $PATH
3024: do
3025: IFS=$as_save_IFS
3026: test -z "$as_dir" && as_dir=.
3027: for ac_exec_ext in '' $ac_executable_extensions; do
3028: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3029: ac_cv_prog_ac_ct_STRIP="strip"
3030: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3031: break 2
3032: fi
3033: done
3034: done
3035: IFS=$as_save_IFS
3036:
3037: fi
3038: fi
3039: ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3040: if test -n "$ac_ct_STRIP"; then
3041: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3042: $as_echo "$ac_ct_STRIP" >&6; }
3043: else
3044: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3045: $as_echo "no" >&6; }
3046: fi
3047:
3048: if test "x$ac_ct_STRIP" = x; then
3049: STRIP=":"
3050: else
3051: case $cross_compiling:$ac_tool_warned in
3052: yes:)
3053: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3054: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3055: ac_tool_warned=yes ;;
3056: esac
3057: STRIP=$ac_ct_STRIP
3058: fi
3059: else
3060: STRIP="$ac_cv_prog_STRIP"
3061: fi
3062:
3063: fi
3064: INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3065:
3066: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3067: $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3068: if test -z "$MKDIR_P"; then
3069: if ${ac_cv_path_mkdir+:} false; then :
3070: $as_echo_n "(cached) " >&6
3071: else
3072: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3073: for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3074: do
3075: IFS=$as_save_IFS
3076: test -z "$as_dir" && as_dir=.
3077: for ac_prog in mkdir gmkdir; do
3078: for ac_exec_ext in '' $ac_executable_extensions; do
3079: as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3080: case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3081: 'mkdir (GNU coreutils) '* | \
3082: 'mkdir (coreutils) '* | \
3083: 'mkdir (fileutils) '4.1*)
3084: ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3085: break 3;;
3086: esac
3087: done
3088: done
3089: done
3090: IFS=$as_save_IFS
3091:
3092: fi
3093:
3094: test -d ./--version && rmdir ./--version
3095: if test "${ac_cv_path_mkdir+set}" = set; then
3096: MKDIR_P="$ac_cv_path_mkdir -p"
3097: else
3098: # As a last resort, use the slow shell script. Don't cache a
3099: # value for MKDIR_P within a source directory, because that will
3100: # break other packages using the cache if that directory is
3101: # removed, or if the value is a relative name.
3102: MKDIR_P="$ac_install_sh -d"
3103: fi
3104: fi
3105: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3106: $as_echo "$MKDIR_P" >&6; }
3107:
3108: for ac_prog in gawk mawk nawk awk
3109: do
3110: # Extract the first word of "$ac_prog", so it can be a program name with args.
3111: set dummy $ac_prog; ac_word=$2
3112: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3113: $as_echo_n "checking for $ac_word... " >&6; }
3114: if ${ac_cv_prog_AWK+:} false; then :
3115: $as_echo_n "(cached) " >&6
3116: else
3117: if test -n "$AWK"; then
3118: ac_cv_prog_AWK="$AWK" # Let the user override the test.
3119: else
3120: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3121: for as_dir in $PATH
3122: do
3123: IFS=$as_save_IFS
3124: test -z "$as_dir" && as_dir=.
3125: for ac_exec_ext in '' $ac_executable_extensions; do
3126: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3127: ac_cv_prog_AWK="$ac_prog"
3128: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3129: break 2
3130: fi
3131: done
3132: done
3133: IFS=$as_save_IFS
3134:
3135: fi
3136: fi
3137: AWK=$ac_cv_prog_AWK
3138: if test -n "$AWK"; then
3139: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3140: $as_echo "$AWK" >&6; }
3141: else
3142: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3143: $as_echo "no" >&6; }
3144: fi
3145:
3146:
3147: test -n "$AWK" && break
3148: done
3149:
3150: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3151: $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3152: set x ${MAKE-make}
3153: ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3154: if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3155: $as_echo_n "(cached) " >&6
3156: else
3157: cat >conftest.make <<\_ACEOF
3158: SHELL = /bin/sh
3159: all:
3160: @echo '@@@%%%=$(MAKE)=@@@%%%'
3161: _ACEOF
3162: # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3163: case `${MAKE-make} -f conftest.make 2>/dev/null` in
3164: *@@@%%%=?*=@@@%%%*)
3165: eval ac_cv_prog_make_${ac_make}_set=yes;;
3166: *)
3167: eval ac_cv_prog_make_${ac_make}_set=no;;
3168: esac
3169: rm -f conftest.make
3170: fi
3171: if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3172: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3173: $as_echo "yes" >&6; }
3174: SET_MAKE=
3175: else
3176: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3177: $as_echo "no" >&6; }
3178: SET_MAKE="MAKE=${MAKE-make}"
3179: fi
3180:
3181: rm -rf .tst 2>/dev/null
3182: mkdir .tst 2>/dev/null
3183: if test -d .tst; then
3184: am__leading_dot=.
3185: else
3186: am__leading_dot=_
3187: fi
3188: rmdir .tst 2>/dev/null
3189:
3190: # Check whether --enable-silent-rules was given.
3191: if test "${enable_silent_rules+set}" = set; then :
3192: enableval=$enable_silent_rules;
3193: fi
3194:
3195: case $enable_silent_rules in # (((
3196: yes) AM_DEFAULT_VERBOSITY=0;;
3197: no) AM_DEFAULT_VERBOSITY=1;;
3198: *) AM_DEFAULT_VERBOSITY=1;;
3199: esac
3200: am_make=${MAKE-make}
3201: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3202: $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3203: if ${am_cv_make_support_nested_variables+:} false; then :
3204: $as_echo_n "(cached) " >&6
3205: else
3206: if $as_echo 'TRUE=$(BAR$(V))
3207: BAR0=false
3208: BAR1=true
3209: V=1
3210: am__doit:
3211: @$(TRUE)
3212: .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3213: am_cv_make_support_nested_variables=yes
3214: else
3215: am_cv_make_support_nested_variables=no
3216: fi
3217: fi
3218: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3219: $as_echo "$am_cv_make_support_nested_variables" >&6; }
3220: if test $am_cv_make_support_nested_variables = yes; then
3221: AM_V='$(V)'
3222: AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3223: else
3224: AM_V=$AM_DEFAULT_VERBOSITY
3225: AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3226: fi
3227: AM_BACKSLASH='\'
3228:
3229: if test "`cd $srcdir && pwd`" != "`pwd`"; then
3230: # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3231: # is not polluted with repeated "-I."
3232: am__isrc=' -I$(srcdir)'
3233: # test to see if srcdir already configured
3234: if test -f $srcdir/config.status; then
3235: as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3236: fi
3237: fi
3238:
3239: # test whether we have cygpath
3240: if test -z "$CYGPATH_W"; then
3241: if (cygpath --version) >/dev/null 2>/dev/null; then
3242: CYGPATH_W='cygpath -w'
3243: else
3244: CYGPATH_W=echo
3245: fi
3246: fi
3247:
3248:
3249: # Define the identity of the package.
3250: PACKAGE='lighttpd'
1.1.1.2 ! misho 3251: VERSION='1.4.35'
1.1 misho 3252:
3253:
3254: cat >>confdefs.h <<_ACEOF
3255: #define PACKAGE "$PACKAGE"
3256: _ACEOF
3257:
3258:
3259: cat >>confdefs.h <<_ACEOF
3260: #define VERSION "$VERSION"
3261: _ACEOF
3262:
3263: # Some tools Automake needs.
3264:
3265: ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3266:
3267:
3268: AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3269:
3270:
3271: AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3272:
3273:
3274: AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3275:
3276:
3277: MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3278:
3279: # For better backward compatibility. To be removed once Automake 1.9.x
3280: # dies out for good. For more background, see:
3281: # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3282: # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3283: mkdir_p='$(MKDIR_P)'
3284:
3285: # We need awk for the "check" target. The system "awk" is bad on
3286: # some platforms.
3287: # Always define AMTAR for backward compatibility. Yes, it's still used
3288: # in the wild :-( We should find a proper way to deprecate it ...
3289: AMTAR='$${TAR-tar}'
3290:
3291:
3292: # We'll loop over all known methods to create a tar archive until one works.
3293: _am_tools='gnutar plaintar pax cpio none'
3294:
3295: # The POSIX 1988 'ustar' format is defined with fixed-size fields.
3296: # There is notably a 21 bits limit for the UID and the GID. In fact,
3297: # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343
3298: # and bug#13588).
3299: am_max_uid=2097151 # 2^21 - 1
3300: am_max_gid=$am_max_uid
3301: # The $UID and $GID variables are not portable, so we need to resort
3302: # to the POSIX-mandated id(1) utility. Errors in the 'id' calls
3303: # below are definitely unexpected, so allow the users to see them
3304: # (that is, avoid stderr redirection).
3305: am_uid=`id -u || echo unknown`
3306: am_gid=`id -g || echo unknown`
3307: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UID '$am_uid' is supported by ustar format" >&5
3308: $as_echo_n "checking whether UID '$am_uid' is supported by ustar format... " >&6; }
3309: if test $am_uid -le $am_max_uid; then
3310: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3311: $as_echo "yes" >&6; }
3312: else
3313: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3314: $as_echo "no" >&6; }
3315: _am_tools=none
3316: fi
3317: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether GID '$am_gid' is supported by ustar format" >&5
3318: $as_echo_n "checking whether GID '$am_gid' is supported by ustar format... " >&6; }
3319: if test $am_gid -le $am_max_gid; then
3320: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3321: $as_echo "yes" >&6; }
3322: else
3323: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3324: $as_echo "no" >&6; }
3325: _am_tools=none
3326: fi
3327:
3328: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to create a ustar tar archive" >&5
3329: $as_echo_n "checking how to create a ustar tar archive... " >&6; }
3330:
3331: # Go ahead even if we have the value already cached. We do so because we
3332: # need to set the values for the 'am__tar' and 'am__untar' variables.
3333: _am_tools=${am_cv_prog_tar_ustar-$_am_tools}
3334:
3335: for _am_tool in $_am_tools; do
3336: case $_am_tool in
3337: gnutar)
3338: for _am_tar in tar gnutar gtar; do
3339: { echo "$as_me:$LINENO: $_am_tar --version" >&5
3340: ($_am_tar --version) >&5 2>&5
3341: ac_status=$?
3342: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3343: (exit $ac_status); } && break
3344: done
3345: am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"'
3346: am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"'
3347: am__untar="$_am_tar -xf -"
3348: ;;
3349: plaintar)
3350: # Must skip GNU tar: if it does not support --format= it doesn't create
3351: # ustar tarball either.
3352: (tar --version) >/dev/null 2>&1 && continue
3353: am__tar='tar chf - "$$tardir"'
3354: am__tar_='tar chf - "$tardir"'
3355: am__untar='tar xf -'
3356: ;;
3357: pax)
3358: am__tar='pax -L -x ustar -w "$$tardir"'
3359: am__tar_='pax -L -x ustar -w "$tardir"'
3360: am__untar='pax -r'
3361: ;;
3362: cpio)
3363: am__tar='find "$$tardir" -print | cpio -o -H ustar -L'
3364: am__tar_='find "$tardir" -print | cpio -o -H ustar -L'
3365: am__untar='cpio -i -H ustar -d'
3366: ;;
3367: none)
3368: am__tar=false
3369: am__tar_=false
3370: am__untar=false
3371: ;;
3372: esac
3373:
3374: # If the value was cached, stop now. We just wanted to have am__tar
3375: # and am__untar set.
3376: test -n "${am_cv_prog_tar_ustar}" && break
3377:
3378: # tar/untar a dummy directory, and stop if the command works.
3379: rm -rf conftest.dir
3380: mkdir conftest.dir
3381: echo GrepMe > conftest.dir/file
3382: { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
3383: (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
3384: ac_status=$?
3385: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3386: (exit $ac_status); }
3387: rm -rf conftest.dir
3388: if test -s conftest.tar; then
3389: { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
3390: ($am__untar <conftest.tar) >&5 2>&5
3391: ac_status=$?
3392: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3393: (exit $ac_status); }
3394: { echo "$as_me:$LINENO: cat conftest.dir/file" >&5
3395: (cat conftest.dir/file) >&5 2>&5
3396: ac_status=$?
3397: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3398: (exit $ac_status); }
3399: grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
3400: fi
3401: done
3402: rm -rf conftest.dir
3403:
3404: if ${am_cv_prog_tar_ustar+:} false; then :
3405: $as_echo_n "(cached) " >&6
3406: else
3407: am_cv_prog_tar_ustar=$_am_tool
3408: fi
3409:
3410: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_ustar" >&5
3411: $as_echo "$am_cv_prog_tar_ustar" >&6; }
3412:
3413:
3414:
3415:
3416:
3417:
3418: # POSIX will say in a future version that running "rm -f" with no argument
3419: # is OK; and we want to be able to make that assumption in our Makefile
3420: # recipes. So use an aggressive probe to check that the usage we want is
3421: # actually supported "in the wild" to an acceptable degree.
3422: # See automake bug#10828.
3423: # To make any issue more visible, cause the running configure to be aborted
3424: # by default if the 'rm' program in use doesn't match our expectations; the
3425: # user can still override this though.
3426: if rm -f && rm -fr && rm -rf; then : OK; else
3427: cat >&2 <<'END'
3428: Oops!
3429:
3430: Your 'rm' program seems unable to run without file operands specified
3431: on the command line, even when the '-f' option is present. This is contrary
3432: to the behaviour of most rm programs out there, and not conforming with
3433: the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3434:
3435: Please tell bug-automake@gnu.org about your system, including the value
3436: of your $PATH and any error possibly output before this message. This
3437: can help us improve future automake versions.
3438:
3439: END
3440: if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3441: echo 'Configuration will proceed anyway, since you have set the' >&2
3442: echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3443: echo >&2
3444: else
3445: cat >&2 <<'END'
3446: Aborting the configuration process, to ensure you take notice of the issue.
3447:
3448: You can download and install GNU coreutils to get an 'rm' implementation
3449: that behaves properly: <http://www.gnu.org/software/coreutils/>.
3450:
3451: If you want to complete the configuration process using your problematic
3452: 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3453: to "yes", and re-run configure.
3454:
3455: END
3456: as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3457: fi
3458: fi
3459:
1.1.1.2 ! misho 3460:
1.1 misho 3461: # Check whether --enable-silent-rules was given.
3462: if test "${enable_silent_rules+set}" = set; then :
3463: enableval=$enable_silent_rules;
3464: fi
3465:
3466: case $enable_silent_rules in # (((
3467: yes) AM_DEFAULT_VERBOSITY=0;;
3468: no) AM_DEFAULT_VERBOSITY=1;;
3469: *) AM_DEFAULT_VERBOSITY=1;;
3470: esac
3471: am_make=${MAKE-make}
3472: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3473: $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3474: if ${am_cv_make_support_nested_variables+:} false; then :
3475: $as_echo_n "(cached) " >&6
3476: else
3477: if $as_echo 'TRUE=$(BAR$(V))
3478: BAR0=false
3479: BAR1=true
3480: V=1
3481: am__doit:
3482: @$(TRUE)
3483: .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3484: am_cv_make_support_nested_variables=yes
3485: else
3486: am_cv_make_support_nested_variables=no
3487: fi
3488: fi
3489: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3490: $as_echo "$am_cv_make_support_nested_variables" >&6; }
3491: if test $am_cv_make_support_nested_variables = yes; then
3492: AM_V='$(V)'
3493: AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3494: else
3495: AM_V=$AM_DEFAULT_VERBOSITY
3496: AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3497: fi
3498: AM_BACKSLASH='\'
3499:
3500:
3501: ac_ext=c
3502: ac_cpp='$CPP $CPPFLAGS'
3503: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3504: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3505: ac_compiler_gnu=$ac_cv_c_compiler_gnu
3506: if test -n "$ac_tool_prefix"; then
3507: # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3508: set dummy ${ac_tool_prefix}gcc; ac_word=$2
3509: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3510: $as_echo_n "checking for $ac_word... " >&6; }
3511: if ${ac_cv_prog_CC+:} false; then :
3512: $as_echo_n "(cached) " >&6
3513: else
3514: if test -n "$CC"; then
3515: ac_cv_prog_CC="$CC" # Let the user override the test.
3516: else
3517: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3518: for as_dir in $PATH
3519: do
3520: IFS=$as_save_IFS
3521: test -z "$as_dir" && as_dir=.
3522: for ac_exec_ext in '' $ac_executable_extensions; do
3523: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3524: ac_cv_prog_CC="${ac_tool_prefix}gcc"
3525: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3526: break 2
3527: fi
3528: done
3529: done
3530: IFS=$as_save_IFS
3531:
3532: fi
3533: fi
3534: CC=$ac_cv_prog_CC
3535: if test -n "$CC"; then
3536: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3537: $as_echo "$CC" >&6; }
3538: else
3539: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3540: $as_echo "no" >&6; }
3541: fi
3542:
3543:
3544: fi
3545: if test -z "$ac_cv_prog_CC"; then
3546: ac_ct_CC=$CC
3547: # Extract the first word of "gcc", so it can be a program name with args.
3548: set dummy gcc; ac_word=$2
3549: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3550: $as_echo_n "checking for $ac_word... " >&6; }
3551: if ${ac_cv_prog_ac_ct_CC+:} false; then :
3552: $as_echo_n "(cached) " >&6
3553: else
3554: if test -n "$ac_ct_CC"; then
3555: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3556: else
3557: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3558: for as_dir in $PATH
3559: do
3560: IFS=$as_save_IFS
3561: test -z "$as_dir" && as_dir=.
3562: for ac_exec_ext in '' $ac_executable_extensions; do
3563: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3564: ac_cv_prog_ac_ct_CC="gcc"
3565: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3566: break 2
3567: fi
3568: done
3569: done
3570: IFS=$as_save_IFS
3571:
3572: fi
3573: fi
3574: ac_ct_CC=$ac_cv_prog_ac_ct_CC
3575: if test -n "$ac_ct_CC"; then
3576: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3577: $as_echo "$ac_ct_CC" >&6; }
3578: else
3579: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3580: $as_echo "no" >&6; }
3581: fi
3582:
3583: if test "x$ac_ct_CC" = x; then
3584: CC=""
3585: else
3586: case $cross_compiling:$ac_tool_warned in
3587: yes:)
3588: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3589: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3590: ac_tool_warned=yes ;;
3591: esac
3592: CC=$ac_ct_CC
3593: fi
3594: else
3595: CC="$ac_cv_prog_CC"
3596: fi
3597:
3598: if test -z "$CC"; then
3599: if test -n "$ac_tool_prefix"; then
3600: # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3601: set dummy ${ac_tool_prefix}cc; ac_word=$2
3602: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3603: $as_echo_n "checking for $ac_word... " >&6; }
3604: if ${ac_cv_prog_CC+:} false; then :
3605: $as_echo_n "(cached) " >&6
3606: else
3607: if test -n "$CC"; then
3608: ac_cv_prog_CC="$CC" # Let the user override the test.
3609: else
3610: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3611: for as_dir in $PATH
3612: do
3613: IFS=$as_save_IFS
3614: test -z "$as_dir" && as_dir=.
3615: for ac_exec_ext in '' $ac_executable_extensions; do
3616: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3617: ac_cv_prog_CC="${ac_tool_prefix}cc"
3618: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3619: break 2
3620: fi
3621: done
3622: done
3623: IFS=$as_save_IFS
3624:
3625: fi
3626: fi
3627: CC=$ac_cv_prog_CC
3628: if test -n "$CC"; then
3629: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3630: $as_echo "$CC" >&6; }
3631: else
3632: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3633: $as_echo "no" >&6; }
3634: fi
3635:
3636:
3637: fi
3638: fi
3639: if test -z "$CC"; then
3640: # Extract the first word of "cc", so it can be a program name with args.
3641: set dummy cc; ac_word=$2
3642: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3643: $as_echo_n "checking for $ac_word... " >&6; }
3644: if ${ac_cv_prog_CC+:} false; then :
3645: $as_echo_n "(cached) " >&6
3646: else
3647: if test -n "$CC"; then
3648: ac_cv_prog_CC="$CC" # Let the user override the test.
3649: else
3650: ac_prog_rejected=no
3651: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3652: for as_dir in $PATH
3653: do
3654: IFS=$as_save_IFS
3655: test -z "$as_dir" && as_dir=.
3656: for ac_exec_ext in '' $ac_executable_extensions; do
3657: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3658: if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3659: ac_prog_rejected=yes
3660: continue
3661: fi
3662: ac_cv_prog_CC="cc"
3663: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3664: break 2
3665: fi
3666: done
3667: done
3668: IFS=$as_save_IFS
3669:
3670: if test $ac_prog_rejected = yes; then
3671: # We found a bogon in the path, so make sure we never use it.
3672: set dummy $ac_cv_prog_CC
3673: shift
3674: if test $# != 0; then
3675: # We chose a different compiler from the bogus one.
3676: # However, it has the same basename, so the bogon will be chosen
3677: # first if we set CC to just the basename; use the full file name.
3678: shift
3679: ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3680: fi
3681: fi
3682: fi
3683: fi
3684: CC=$ac_cv_prog_CC
3685: if test -n "$CC"; then
3686: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3687: $as_echo "$CC" >&6; }
3688: else
3689: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3690: $as_echo "no" >&6; }
3691: fi
3692:
3693:
3694: fi
3695: if test -z "$CC"; then
3696: if test -n "$ac_tool_prefix"; then
3697: for ac_prog in cl.exe
3698: do
3699: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3700: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3701: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3702: $as_echo_n "checking for $ac_word... " >&6; }
3703: if ${ac_cv_prog_CC+:} false; then :
3704: $as_echo_n "(cached) " >&6
3705: else
3706: if test -n "$CC"; then
3707: ac_cv_prog_CC="$CC" # Let the user override the test.
3708: else
3709: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3710: for as_dir in $PATH
3711: do
3712: IFS=$as_save_IFS
3713: test -z "$as_dir" && as_dir=.
3714: for ac_exec_ext in '' $ac_executable_extensions; do
3715: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3716: ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3717: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3718: break 2
3719: fi
3720: done
3721: done
3722: IFS=$as_save_IFS
3723:
3724: fi
3725: fi
3726: CC=$ac_cv_prog_CC
3727: if test -n "$CC"; then
3728: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3729: $as_echo "$CC" >&6; }
3730: else
3731: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3732: $as_echo "no" >&6; }
3733: fi
3734:
3735:
3736: test -n "$CC" && break
3737: done
3738: fi
3739: if test -z "$CC"; then
3740: ac_ct_CC=$CC
3741: for ac_prog in cl.exe
3742: do
3743: # Extract the first word of "$ac_prog", so it can be a program name with args.
3744: set dummy $ac_prog; ac_word=$2
3745: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3746: $as_echo_n "checking for $ac_word... " >&6; }
3747: if ${ac_cv_prog_ac_ct_CC+:} false; then :
3748: $as_echo_n "(cached) " >&6
3749: else
3750: if test -n "$ac_ct_CC"; then
3751: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3752: else
3753: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3754: for as_dir in $PATH
3755: do
3756: IFS=$as_save_IFS
3757: test -z "$as_dir" && as_dir=.
3758: for ac_exec_ext in '' $ac_executable_extensions; do
3759: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3760: ac_cv_prog_ac_ct_CC="$ac_prog"
3761: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3762: break 2
3763: fi
3764: done
3765: done
3766: IFS=$as_save_IFS
3767:
3768: fi
3769: fi
3770: ac_ct_CC=$ac_cv_prog_ac_ct_CC
3771: if test -n "$ac_ct_CC"; then
3772: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3773: $as_echo "$ac_ct_CC" >&6; }
3774: else
3775: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3776: $as_echo "no" >&6; }
3777: fi
3778:
3779:
3780: test -n "$ac_ct_CC" && break
3781: done
3782:
3783: if test "x$ac_ct_CC" = x; then
3784: CC=""
3785: else
3786: case $cross_compiling:$ac_tool_warned in
3787: yes:)
3788: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3789: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3790: ac_tool_warned=yes ;;
3791: esac
3792: CC=$ac_ct_CC
3793: fi
3794: fi
3795:
3796: fi
3797:
3798:
3799: test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3800: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3801: as_fn_error $? "no acceptable C compiler found in \$PATH
3802: See \`config.log' for more details" "$LINENO" 5; }
3803:
3804: # Provide some information about the compiler.
3805: $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3806: set X $ac_compile
3807: ac_compiler=$2
3808: for ac_option in --version -v -V -qversion; do
3809: { { ac_try="$ac_compiler $ac_option >&5"
3810: case "(($ac_try" in
3811: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3812: *) ac_try_echo=$ac_try;;
3813: esac
3814: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3815: $as_echo "$ac_try_echo"; } >&5
3816: (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3817: ac_status=$?
3818: if test -s conftest.err; then
3819: sed '10a\
3820: ... rest of stderr output deleted ...
3821: 10q' conftest.err >conftest.er1
3822: cat conftest.er1 >&5
3823: fi
3824: rm -f conftest.er1 conftest.err
3825: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3826: test $ac_status = 0; }
3827: done
3828:
3829: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3830: /* end confdefs.h. */
3831:
3832: int
3833: main ()
3834: {
3835:
3836: ;
3837: return 0;
3838: }
3839: _ACEOF
3840: ac_clean_files_save=$ac_clean_files
3841: ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3842: # Try to create an executable without -o first, disregard a.out.
3843: # It will help us diagnose broken compilers, and finding out an intuition
3844: # of exeext.
3845: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3846: $as_echo_n "checking whether the C compiler works... " >&6; }
3847: ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3848:
3849: # The possible output files:
3850: ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3851:
3852: ac_rmfiles=
3853: for ac_file in $ac_files
3854: do
3855: case $ac_file in
3856: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3857: * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3858: esac
3859: done
3860: rm -f $ac_rmfiles
3861:
3862: if { { ac_try="$ac_link_default"
3863: case "(($ac_try" in
3864: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3865: *) ac_try_echo=$ac_try;;
3866: esac
3867: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3868: $as_echo "$ac_try_echo"; } >&5
3869: (eval "$ac_link_default") 2>&5
3870: ac_status=$?
3871: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3872: test $ac_status = 0; }; then :
3873: # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3874: # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3875: # in a Makefile. We should not override ac_cv_exeext if it was cached,
3876: # so that the user can short-circuit this test for compilers unknown to
3877: # Autoconf.
3878: for ac_file in $ac_files ''
3879: do
3880: test -f "$ac_file" || continue
3881: case $ac_file in
3882: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3883: ;;
3884: [ab].out )
3885: # We found the default executable, but exeext='' is most
3886: # certainly right.
3887: break;;
3888: *.* )
3889: if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3890: then :; else
3891: ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3892: fi
3893: # We set ac_cv_exeext here because the later test for it is not
3894: # safe: cross compilers may not add the suffix if given an `-o'
3895: # argument, so we may need to know it at that point already.
3896: # Even if this section looks crufty: it has the advantage of
3897: # actually working.
3898: break;;
3899: * )
3900: break;;
3901: esac
3902: done
3903: test "$ac_cv_exeext" = no && ac_cv_exeext=
3904:
3905: else
3906: ac_file=''
3907: fi
3908: if test -z "$ac_file"; then :
3909: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3910: $as_echo "no" >&6; }
3911: $as_echo "$as_me: failed program was:" >&5
3912: sed 's/^/| /' conftest.$ac_ext >&5
3913:
3914: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3915: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3916: as_fn_error 77 "C compiler cannot create executables
3917: See \`config.log' for more details" "$LINENO" 5; }
3918: else
3919: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3920: $as_echo "yes" >&6; }
3921: fi
3922: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3923: $as_echo_n "checking for C compiler default output file name... " >&6; }
3924: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3925: $as_echo "$ac_file" >&6; }
3926: ac_exeext=$ac_cv_exeext
3927:
3928: rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3929: ac_clean_files=$ac_clean_files_save
3930: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3931: $as_echo_n "checking for suffix of executables... " >&6; }
3932: if { { ac_try="$ac_link"
3933: case "(($ac_try" in
3934: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3935: *) ac_try_echo=$ac_try;;
3936: esac
3937: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3938: $as_echo "$ac_try_echo"; } >&5
3939: (eval "$ac_link") 2>&5
3940: ac_status=$?
3941: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3942: test $ac_status = 0; }; then :
3943: # If both `conftest.exe' and `conftest' are `present' (well, observable)
3944: # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3945: # work properly (i.e., refer to `conftest.exe'), while it won't with
3946: # `rm'.
3947: for ac_file in conftest.exe conftest conftest.*; do
3948: test -f "$ac_file" || continue
3949: case $ac_file in
3950: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3951: *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3952: break;;
3953: * ) break;;
3954: esac
3955: done
3956: else
3957: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3958: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3959: as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3960: See \`config.log' for more details" "$LINENO" 5; }
3961: fi
3962: rm -f conftest conftest$ac_cv_exeext
3963: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3964: $as_echo "$ac_cv_exeext" >&6; }
3965:
3966: rm -f conftest.$ac_ext
3967: EXEEXT=$ac_cv_exeext
3968: ac_exeext=$EXEEXT
3969: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3970: /* end confdefs.h. */
3971: #include <stdio.h>
3972: int
3973: main ()
3974: {
3975: FILE *f = fopen ("conftest.out", "w");
3976: return ferror (f) || fclose (f) != 0;
3977:
3978: ;
3979: return 0;
3980: }
3981: _ACEOF
3982: ac_clean_files="$ac_clean_files conftest.out"
3983: # Check that the compiler produces executables we can run. If not, either
3984: # the compiler is broken, or we cross compile.
3985: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3986: $as_echo_n "checking whether we are cross compiling... " >&6; }
3987: if test "$cross_compiling" != yes; then
3988: { { ac_try="$ac_link"
3989: case "(($ac_try" in
3990: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3991: *) ac_try_echo=$ac_try;;
3992: esac
3993: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3994: $as_echo "$ac_try_echo"; } >&5
3995: (eval "$ac_link") 2>&5
3996: ac_status=$?
3997: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3998: test $ac_status = 0; }
3999: if { ac_try='./conftest$ac_cv_exeext'
4000: { { case "(($ac_try" in
4001: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4002: *) ac_try_echo=$ac_try;;
4003: esac
4004: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4005: $as_echo "$ac_try_echo"; } >&5
4006: (eval "$ac_try") 2>&5
4007: ac_status=$?
4008: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4009: test $ac_status = 0; }; }; then
4010: cross_compiling=no
4011: else
4012: if test "$cross_compiling" = maybe; then
4013: cross_compiling=yes
4014: else
4015: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4016: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4017: as_fn_error $? "cannot run C compiled programs.
4018: If you meant to cross compile, use \`--host'.
4019: See \`config.log' for more details" "$LINENO" 5; }
4020: fi
4021: fi
4022: fi
4023: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4024: $as_echo "$cross_compiling" >&6; }
4025:
4026: rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4027: ac_clean_files=$ac_clean_files_save
4028: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4029: $as_echo_n "checking for suffix of object files... " >&6; }
4030: if ${ac_cv_objext+:} false; then :
4031: $as_echo_n "(cached) " >&6
4032: else
4033: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4034: /* end confdefs.h. */
4035:
4036: int
4037: main ()
4038: {
4039:
4040: ;
4041: return 0;
4042: }
4043: _ACEOF
4044: rm -f conftest.o conftest.obj
4045: if { { ac_try="$ac_compile"
4046: case "(($ac_try" in
4047: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4048: *) ac_try_echo=$ac_try;;
4049: esac
4050: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4051: $as_echo "$ac_try_echo"; } >&5
4052: (eval "$ac_compile") 2>&5
4053: ac_status=$?
4054: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4055: test $ac_status = 0; }; then :
4056: for ac_file in conftest.o conftest.obj conftest.*; do
4057: test -f "$ac_file" || continue;
4058: case $ac_file in
4059: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4060: *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4061: break;;
4062: esac
4063: done
4064: else
4065: $as_echo "$as_me: failed program was:" >&5
4066: sed 's/^/| /' conftest.$ac_ext >&5
4067:
4068: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4069: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4070: as_fn_error $? "cannot compute suffix of object files: cannot compile
4071: See \`config.log' for more details" "$LINENO" 5; }
4072: fi
4073: rm -f conftest.$ac_cv_objext conftest.$ac_ext
4074: fi
4075: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4076: $as_echo "$ac_cv_objext" >&6; }
4077: OBJEXT=$ac_cv_objext
4078: ac_objext=$OBJEXT
4079: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4080: $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4081: if ${ac_cv_c_compiler_gnu+:} false; then :
4082: $as_echo_n "(cached) " >&6
4083: else
4084: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4085: /* end confdefs.h. */
4086:
4087: int
4088: main ()
4089: {
4090: #ifndef __GNUC__
4091: choke me
4092: #endif
4093:
4094: ;
4095: return 0;
4096: }
4097: _ACEOF
4098: if ac_fn_c_try_compile "$LINENO"; then :
4099: ac_compiler_gnu=yes
4100: else
4101: ac_compiler_gnu=no
4102: fi
4103: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4104: ac_cv_c_compiler_gnu=$ac_compiler_gnu
4105:
4106: fi
4107: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4108: $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4109: if test $ac_compiler_gnu = yes; then
4110: GCC=yes
4111: else
4112: GCC=
4113: fi
4114: ac_test_CFLAGS=${CFLAGS+set}
4115: ac_save_CFLAGS=$CFLAGS
4116: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4117: $as_echo_n "checking whether $CC accepts -g... " >&6; }
4118: if ${ac_cv_prog_cc_g+:} false; then :
4119: $as_echo_n "(cached) " >&6
4120: else
4121: ac_save_c_werror_flag=$ac_c_werror_flag
4122: ac_c_werror_flag=yes
4123: ac_cv_prog_cc_g=no
4124: CFLAGS="-g"
4125: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4126: /* end confdefs.h. */
4127:
4128: int
4129: main ()
4130: {
4131:
4132: ;
4133: return 0;
4134: }
4135: _ACEOF
4136: if ac_fn_c_try_compile "$LINENO"; then :
4137: ac_cv_prog_cc_g=yes
4138: else
4139: CFLAGS=""
4140: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4141: /* end confdefs.h. */
4142:
4143: int
4144: main ()
4145: {
4146:
4147: ;
4148: return 0;
4149: }
4150: _ACEOF
4151: if ac_fn_c_try_compile "$LINENO"; then :
4152:
4153: else
4154: ac_c_werror_flag=$ac_save_c_werror_flag
4155: CFLAGS="-g"
4156: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4157: /* end confdefs.h. */
4158:
4159: int
4160: main ()
4161: {
4162:
4163: ;
4164: return 0;
4165: }
4166: _ACEOF
4167: if ac_fn_c_try_compile "$LINENO"; then :
4168: ac_cv_prog_cc_g=yes
4169: fi
4170: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4171: fi
4172: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4173: fi
4174: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4175: ac_c_werror_flag=$ac_save_c_werror_flag
4176: fi
4177: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4178: $as_echo "$ac_cv_prog_cc_g" >&6; }
4179: if test "$ac_test_CFLAGS" = set; then
4180: CFLAGS=$ac_save_CFLAGS
4181: elif test $ac_cv_prog_cc_g = yes; then
4182: if test "$GCC" = yes; then
4183: CFLAGS="-g -O2"
4184: else
4185: CFLAGS="-g"
4186: fi
4187: else
4188: if test "$GCC" = yes; then
4189: CFLAGS="-O2"
4190: else
4191: CFLAGS=
4192: fi
4193: fi
4194: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4195: $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4196: if ${ac_cv_prog_cc_c89+:} false; then :
4197: $as_echo_n "(cached) " >&6
4198: else
4199: ac_cv_prog_cc_c89=no
4200: ac_save_CC=$CC
4201: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4202: /* end confdefs.h. */
4203: #include <stdarg.h>
4204: #include <stdio.h>
4205: struct stat;
4206: /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4207: struct buf { int x; };
4208: FILE * (*rcsopen) (struct buf *, struct stat *, int);
4209: static char *e (p, i)
4210: char **p;
4211: int i;
4212: {
4213: return p[i];
4214: }
4215: static char *f (char * (*g) (char **, int), char **p, ...)
4216: {
4217: char *s;
4218: va_list v;
4219: va_start (v,p);
4220: s = g (p, va_arg (v,int));
4221: va_end (v);
4222: return s;
4223: }
4224:
4225: /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4226: function prototypes and stuff, but not '\xHH' hex character constants.
4227: These don't provoke an error unfortunately, instead are silently treated
4228: as 'x'. The following induces an error, until -std is added to get
4229: proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4230: array size at least. It's necessary to write '\x00'==0 to get something
4231: that's true only with -std. */
4232: int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4233:
4234: /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4235: inside strings and character constants. */
4236: #define FOO(x) 'x'
4237: int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4238:
4239: int test (int i, double x);
4240: struct s1 {int (*f) (int a);};
4241: struct s2 {int (*f) (double a);};
4242: int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4243: int argc;
4244: char **argv;
4245: int
4246: main ()
4247: {
4248: return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4249: ;
4250: return 0;
4251: }
4252: _ACEOF
4253: for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4254: -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4255: do
4256: CC="$ac_save_CC $ac_arg"
4257: if ac_fn_c_try_compile "$LINENO"; then :
4258: ac_cv_prog_cc_c89=$ac_arg
4259: fi
4260: rm -f core conftest.err conftest.$ac_objext
4261: test "x$ac_cv_prog_cc_c89" != "xno" && break
4262: done
4263: rm -f conftest.$ac_ext
4264: CC=$ac_save_CC
4265:
4266: fi
4267: # AC_CACHE_VAL
4268: case "x$ac_cv_prog_cc_c89" in
4269: x)
4270: { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4271: $as_echo "none needed" >&6; } ;;
4272: xno)
4273: { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4274: $as_echo "unsupported" >&6; } ;;
4275: *)
4276: CC="$CC $ac_cv_prog_cc_c89"
4277: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4278: $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4279: esac
4280: if test "x$ac_cv_prog_cc_c89" != xno; then :
4281:
4282: fi
4283:
4284: ac_ext=c
4285: ac_cpp='$CPP $CPPFLAGS'
4286: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4287: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4288: ac_compiler_gnu=$ac_cv_c_compiler_gnu
4289:
4290: ac_ext=c
4291: ac_cpp='$CPP $CPPFLAGS'
4292: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4293: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4294: ac_compiler_gnu=$ac_cv_c_compiler_gnu
4295: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4296: $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4297: if ${am_cv_prog_cc_c_o+:} false; then :
4298: $as_echo_n "(cached) " >&6
4299: else
4300: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4301: /* end confdefs.h. */
4302:
4303: int
4304: main ()
4305: {
4306:
4307: ;
4308: return 0;
4309: }
4310: _ACEOF
4311: # Make sure it works both with $CC and with simple cc.
4312: # Following AC_PROG_CC_C_O, we do the test twice because some
4313: # compilers refuse to overwrite an existing .o file with -o,
4314: # though they will create one.
4315: am_cv_prog_cc_c_o=yes
4316: for am_i in 1 2; do
4317: if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4318: ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4319: ac_status=$?
4320: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4321: (exit $ac_status); } \
4322: && test -f conftest2.$ac_objext; then
4323: : OK
4324: else
4325: am_cv_prog_cc_c_o=no
4326: break
4327: fi
4328: done
4329: rm -f core conftest*
4330: unset am_i
4331: fi
4332: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4333: $as_echo "$am_cv_prog_cc_c_o" >&6; }
4334: if test "$am_cv_prog_cc_c_o" != yes; then
4335: # Losing compiler, so override with the script.
4336: # FIXME: It is wrong to rewrite CC.
4337: # But if we don't then we get into trouble of one sort or another.
4338: # A longer-term fix would be to have automake use am__CC in this case,
4339: # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4340: CC="$am_aux_dir/compile $CC"
4341: fi
4342: ac_ext=c
4343: ac_cpp='$CPP $CPPFLAGS'
4344: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4345: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4346: ac_compiler_gnu=$ac_cv_c_compiler_gnu
4347:
4348: DEPDIR="${am__leading_dot}deps"
4349:
4350: ac_config_commands="$ac_config_commands depfiles"
4351:
4352:
4353: am_make=${MAKE-make}
4354: cat > confinc << 'END'
4355: am__doit:
4356: @echo this is the am__doit target
4357: .PHONY: am__doit
4358: END
4359: # If we don't find an include directive, just comment out the code.
4360: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4361: $as_echo_n "checking for style of include used by $am_make... " >&6; }
4362: am__include="#"
4363: am__quote=
4364: _am_result=none
4365: # First try GNU make style include.
4366: echo "include confinc" > confmf
4367: # Ignore all kinds of additional output from 'make'.
4368: case `$am_make -s -f confmf 2> /dev/null` in #(
4369: *the\ am__doit\ target*)
4370: am__include=include
4371: am__quote=
4372: _am_result=GNU
4373: ;;
4374: esac
4375: # Now try BSD make style include.
4376: if test "$am__include" = "#"; then
4377: echo '.include "confinc"' > confmf
4378: case `$am_make -s -f confmf 2> /dev/null` in #(
4379: *the\ am__doit\ target*)
4380: am__include=.include
4381: am__quote="\""
4382: _am_result=BSD
4383: ;;
4384: esac
4385: fi
4386:
4387:
4388: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4389: $as_echo "$_am_result" >&6; }
4390: rm -f confinc confmf
4391:
4392: # Check whether --enable-dependency-tracking was given.
4393: if test "${enable_dependency_tracking+set}" = set; then :
4394: enableval=$enable_dependency_tracking;
4395: fi
4396:
4397: if test "x$enable_dependency_tracking" != xno; then
4398: am_depcomp="$ac_aux_dir/depcomp"
4399: AMDEPBACKSLASH='\'
4400: am__nodep='_no'
4401: fi
4402: if test "x$enable_dependency_tracking" != xno; then
4403: AMDEP_TRUE=
4404: AMDEP_FALSE='#'
4405: else
4406: AMDEP_TRUE='#'
4407: AMDEP_FALSE=
4408: fi
4409:
4410:
4411:
4412: depcc="$CC" am_compiler_list=
4413:
4414: { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4415: $as_echo_n "checking dependency style of $depcc... " >&6; }
4416: if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4417: $as_echo_n "(cached) " >&6
4418: else
4419: if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4420: # We make a subdir and do the tests there. Otherwise we can end up
4421: # making bogus files that we don't know about and never remove. For
4422: # instance it was reported that on HP-UX the gcc test will end up
4423: # making a dummy file named 'D' -- because '-MD' means "put the output
4424: # in D".
4425: rm -rf conftest.dir
4426: mkdir conftest.dir
4427: # Copy depcomp to subdir because otherwise we won't find it if we're
4428: # using a relative directory.
4429: cp "$am_depcomp" conftest.dir
4430: cd conftest.dir
4431: # We will build objects and dependencies in a subdirectory because
4432: # it helps to detect inapplicable dependency modes. For instance
4433: # both Tru64's cc and ICC support -MD to output dependencies as a
4434: # side effect of compilation, but ICC will put the dependencies in
4435: # the current directory while Tru64 will put them in the object
4436: # directory.
4437: mkdir sub
4438:
4439: am_cv_CC_dependencies_compiler_type=none
4440: if test "$am_compiler_list" = ""; then
4441: am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4442: fi
4443: am__universal=false
4444: case " $depcc " in #(
4445: *\ -arch\ *\ -arch\ *) am__universal=true ;;
4446: esac
4447:
4448: for depmode in $am_compiler_list; do
4449: # Setup a source with many dependencies, because some compilers
4450: # like to wrap large dependency lists on column 80 (with \), and
4451: # we should not choose a depcomp mode which is confused by this.
4452: #
4453: # We need to recreate these files for each test, as the compiler may
4454: # overwrite some of them when testing with obscure command lines.
4455: # This happens at least with the AIX C compiler.
4456: : > sub/conftest.c
4457: for i in 1 2 3 4 5 6; do
4458: echo '#include "conftst'$i'.h"' >> sub/conftest.c
4459: # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4460: # Solaris 10 /bin/sh.
4461: echo '/* dummy */' > sub/conftst$i.h
4462: done
4463: echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4464:
4465: # We check with '-c' and '-o' for the sake of the "dashmstdout"
4466: # mode. It turns out that the SunPro C++ compiler does not properly
4467: # handle '-M -o', and we need to detect this. Also, some Intel
4468: # versions had trouble with output in subdirs.
4469: am__obj=sub/conftest.${OBJEXT-o}
4470: am__minus_obj="-o $am__obj"
4471: case $depmode in
4472: gcc)
4473: # This depmode causes a compiler race in universal mode.
4474: test "$am__universal" = false || continue
4475: ;;
4476: nosideeffect)
4477: # After this tag, mechanisms are not by side-effect, so they'll
4478: # only be used when explicitly requested.
4479: if test "x$enable_dependency_tracking" = xyes; then
4480: continue
4481: else
4482: break
4483: fi
4484: ;;
4485: msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4486: # This compiler won't grok '-c -o', but also, the minuso test has
4487: # not run yet. These depmodes are late enough in the game, and
4488: # so weak that their functioning should not be impacted.
4489: am__obj=conftest.${OBJEXT-o}
4490: am__minus_obj=
4491: ;;
4492: none) break ;;
4493: esac
4494: if depmode=$depmode \
4495: source=sub/conftest.c object=$am__obj \
4496: depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4497: $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4498: >/dev/null 2>conftest.err &&
4499: grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4500: grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4501: grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4502: ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4503: # icc doesn't choke on unknown options, it will just issue warnings
4504: # or remarks (even with -Werror). So we grep stderr for any message
4505: # that says an option was ignored or not supported.
4506: # When given -MP, icc 7.0 and 7.1 complain thusly:
4507: # icc: Command line warning: ignoring option '-M'; no argument required
4508: # The diagnosis changed in icc 8.0:
4509: # icc: Command line remark: option '-MP' not supported
4510: if (grep 'ignoring option' conftest.err ||
4511: grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4512: am_cv_CC_dependencies_compiler_type=$depmode
4513: break
4514: fi
4515: fi
4516: done
4517:
4518: cd ..
4519: rm -rf conftest.dir
4520: else
4521: am_cv_CC_dependencies_compiler_type=none
4522: fi
4523:
4524: fi
4525: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4526: $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4527: CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4528:
4529: if
4530: test "x$enable_dependency_tracking" != xno \
4531: && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4532: am__fastdepCC_TRUE=
4533: am__fastdepCC_FALSE='#'
4534: else
4535: am__fastdepCC_TRUE='#'
4536: am__fastdepCC_FALSE=
4537: fi
4538:
4539:
4540:
4541: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4542: $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4543: if ${ac_cv_path_SED+:} false; then :
4544: $as_echo_n "(cached) " >&6
4545: else
4546: ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4547: for ac_i in 1 2 3 4 5 6 7; do
4548: ac_script="$ac_script$as_nl$ac_script"
4549: done
4550: echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4551: { ac_script=; unset ac_script;}
4552: if test -z "$SED"; then
4553: ac_path_SED_found=false
4554: # Loop through the user's path and test for each of PROGNAME-LIST
4555: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4556: for as_dir in $PATH
4557: do
4558: IFS=$as_save_IFS
4559: test -z "$as_dir" && as_dir=.
4560: for ac_prog in sed gsed; do
4561: for ac_exec_ext in '' $ac_executable_extensions; do
4562: ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4563: as_fn_executable_p "$ac_path_SED" || continue
4564: # Check for GNU ac_path_SED and select it if it is found.
4565: # Check for GNU $ac_path_SED
4566: case `"$ac_path_SED" --version 2>&1` in
4567: *GNU*)
4568: ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4569: *)
4570: ac_count=0
4571: $as_echo_n 0123456789 >"conftest.in"
4572: while :
4573: do
4574: cat "conftest.in" "conftest.in" >"conftest.tmp"
4575: mv "conftest.tmp" "conftest.in"
4576: cp "conftest.in" "conftest.nl"
4577: $as_echo '' >> "conftest.nl"
4578: "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4579: diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4580: as_fn_arith $ac_count + 1 && ac_count=$as_val
4581: if test $ac_count -gt ${ac_path_SED_max-0}; then
4582: # Best one so far, save it but keep looking for a better one
4583: ac_cv_path_SED="$ac_path_SED"
4584: ac_path_SED_max=$ac_count
4585: fi
4586: # 10*(2^10) chars as input seems more than enough
4587: test $ac_count -gt 10 && break
4588: done
4589: rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4590: esac
4591:
4592: $ac_path_SED_found && break 3
4593: done
4594: done
4595: done
4596: IFS=$as_save_IFS
4597: if test -z "$ac_cv_path_SED"; then
4598: as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4599: fi
4600: else
4601: ac_cv_path_SED=$SED
4602: fi
4603:
4604: fi
4605: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4606: $as_echo "$ac_cv_path_SED" >&6; }
4607: SED="$ac_cv_path_SED"
4608: rm -f conftest.sed
4609:
4610: test -z "$SED" && SED=sed
4611: Xsed="$SED -e 1s/^X//"
4612:
4613:
4614:
4615:
4616:
4617:
4618:
4619:
4620:
4621:
4622:
4623: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4624: $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4625: if ${ac_cv_path_GREP+:} false; then :
4626: $as_echo_n "(cached) " >&6
4627: else
4628: if test -z "$GREP"; then
4629: ac_path_GREP_found=false
4630: # Loop through the user's path and test for each of PROGNAME-LIST
4631: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4632: for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4633: do
4634: IFS=$as_save_IFS
4635: test -z "$as_dir" && as_dir=.
4636: for ac_prog in grep ggrep; do
4637: for ac_exec_ext in '' $ac_executable_extensions; do
4638: ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4639: as_fn_executable_p "$ac_path_GREP" || continue
4640: # Check for GNU ac_path_GREP and select it if it is found.
4641: # Check for GNU $ac_path_GREP
4642: case `"$ac_path_GREP" --version 2>&1` in
4643: *GNU*)
4644: ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4645: *)
4646: ac_count=0
4647: $as_echo_n 0123456789 >"conftest.in"
4648: while :
4649: do
4650: cat "conftest.in" "conftest.in" >"conftest.tmp"
4651: mv "conftest.tmp" "conftest.in"
4652: cp "conftest.in" "conftest.nl"
4653: $as_echo 'GREP' >> "conftest.nl"
4654: "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4655: diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4656: as_fn_arith $ac_count + 1 && ac_count=$as_val
4657: if test $ac_count -gt ${ac_path_GREP_max-0}; then
4658: # Best one so far, save it but keep looking for a better one
4659: ac_cv_path_GREP="$ac_path_GREP"
4660: ac_path_GREP_max=$ac_count
4661: fi
4662: # 10*(2^10) chars as input seems more than enough
4663: test $ac_count -gt 10 && break
4664: done
4665: rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4666: esac
4667:
4668: $ac_path_GREP_found && break 3
4669: done
4670: done
4671: done
4672: IFS=$as_save_IFS
4673: if test -z "$ac_cv_path_GREP"; then
4674: as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4675: fi
4676: else
4677: ac_cv_path_GREP=$GREP
4678: fi
4679:
4680: fi
4681: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4682: $as_echo "$ac_cv_path_GREP" >&6; }
4683: GREP="$ac_cv_path_GREP"
4684:
4685:
4686: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4687: $as_echo_n "checking for egrep... " >&6; }
4688: if ${ac_cv_path_EGREP+:} false; then :
4689: $as_echo_n "(cached) " >&6
4690: else
4691: if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4692: then ac_cv_path_EGREP="$GREP -E"
4693: else
4694: if test -z "$EGREP"; then
4695: ac_path_EGREP_found=false
4696: # Loop through the user's path and test for each of PROGNAME-LIST
4697: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4698: for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4699: do
4700: IFS=$as_save_IFS
4701: test -z "$as_dir" && as_dir=.
4702: for ac_prog in egrep; do
4703: for ac_exec_ext in '' $ac_executable_extensions; do
4704: ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4705: as_fn_executable_p "$ac_path_EGREP" || continue
4706: # Check for GNU ac_path_EGREP and select it if it is found.
4707: # Check for GNU $ac_path_EGREP
4708: case `"$ac_path_EGREP" --version 2>&1` in
4709: *GNU*)
4710: ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4711: *)
4712: ac_count=0
4713: $as_echo_n 0123456789 >"conftest.in"
4714: while :
4715: do
4716: cat "conftest.in" "conftest.in" >"conftest.tmp"
4717: mv "conftest.tmp" "conftest.in"
4718: cp "conftest.in" "conftest.nl"
4719: $as_echo 'EGREP' >> "conftest.nl"
4720: "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4721: diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4722: as_fn_arith $ac_count + 1 && ac_count=$as_val
4723: if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4724: # Best one so far, save it but keep looking for a better one
4725: ac_cv_path_EGREP="$ac_path_EGREP"
4726: ac_path_EGREP_max=$ac_count
4727: fi
4728: # 10*(2^10) chars as input seems more than enough
4729: test $ac_count -gt 10 && break
4730: done
4731: rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4732: esac
4733:
4734: $ac_path_EGREP_found && break 3
4735: done
4736: done
4737: done
4738: IFS=$as_save_IFS
4739: if test -z "$ac_cv_path_EGREP"; then
4740: as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4741: fi
4742: else
4743: ac_cv_path_EGREP=$EGREP
4744: fi
4745:
4746: fi
4747: fi
4748: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4749: $as_echo "$ac_cv_path_EGREP" >&6; }
4750: EGREP="$ac_cv_path_EGREP"
4751:
4752:
4753: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4754: $as_echo_n "checking for fgrep... " >&6; }
4755: if ${ac_cv_path_FGREP+:} false; then :
4756: $as_echo_n "(cached) " >&6
4757: else
4758: if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4759: then ac_cv_path_FGREP="$GREP -F"
4760: else
4761: if test -z "$FGREP"; then
4762: ac_path_FGREP_found=false
4763: # Loop through the user's path and test for each of PROGNAME-LIST
4764: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4765: for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4766: do
4767: IFS=$as_save_IFS
4768: test -z "$as_dir" && as_dir=.
4769: for ac_prog in fgrep; do
4770: for ac_exec_ext in '' $ac_executable_extensions; do
4771: ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4772: as_fn_executable_p "$ac_path_FGREP" || continue
4773: # Check for GNU ac_path_FGREP and select it if it is found.
4774: # Check for GNU $ac_path_FGREP
4775: case `"$ac_path_FGREP" --version 2>&1` in
4776: *GNU*)
4777: ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4778: *)
4779: ac_count=0
4780: $as_echo_n 0123456789 >"conftest.in"
4781: while :
4782: do
4783: cat "conftest.in" "conftest.in" >"conftest.tmp"
4784: mv "conftest.tmp" "conftest.in"
4785: cp "conftest.in" "conftest.nl"
4786: $as_echo 'FGREP' >> "conftest.nl"
4787: "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4788: diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4789: as_fn_arith $ac_count + 1 && ac_count=$as_val
4790: if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4791: # Best one so far, save it but keep looking for a better one
4792: ac_cv_path_FGREP="$ac_path_FGREP"
4793: ac_path_FGREP_max=$ac_count
4794: fi
4795: # 10*(2^10) chars as input seems more than enough
4796: test $ac_count -gt 10 && break
4797: done
4798: rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4799: esac
4800:
4801: $ac_path_FGREP_found && break 3
4802: done
4803: done
4804: done
4805: IFS=$as_save_IFS
4806: if test -z "$ac_cv_path_FGREP"; then
4807: as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4808: fi
4809: else
4810: ac_cv_path_FGREP=$FGREP
4811: fi
4812:
4813: fi
4814: fi
4815: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4816: $as_echo "$ac_cv_path_FGREP" >&6; }
4817: FGREP="$ac_cv_path_FGREP"
4818:
4819:
4820: test -z "$GREP" && GREP=grep
4821:
4822:
4823:
4824:
4825:
4826:
4827:
4828:
4829:
4830:
4831:
4832:
4833:
4834:
4835:
4836:
4837:
4838: ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4839: ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4840: ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4841:
4842: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4843: $as_echo_n "checking how to print strings... " >&6; }
4844: # Test print first, because it will be a builtin if present.
4845: if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4846: test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4847: ECHO='print -r --'
4848: elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4849: ECHO='printf %s\n'
4850: else
4851: # Use this function as a fallback that always works.
4852: func_fallback_echo ()
4853: {
4854: eval 'cat <<_LTECHO_EOF
4855: $1
4856: _LTECHO_EOF'
4857: }
4858: ECHO='func_fallback_echo'
4859: fi
4860:
4861: # func_echo_all arg...
4862: # Invoke $ECHO with all args, space-separated.
4863: func_echo_all ()
4864: {
4865: $ECHO ""
4866: }
4867:
4868: case "$ECHO" in
4869: printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4870: $as_echo "printf" >&6; } ;;
4871: print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4872: $as_echo "print -r" >&6; } ;;
4873: *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4874: $as_echo "cat" >&6; } ;;
4875: esac
4876:
4877:
4878:
4879:
4880:
4881:
4882:
4883:
4884:
4885:
4886:
4887:
4888:
4889:
4890:
4891:
4892: # Check whether --with-gnu-ld was given.
4893: if test "${with_gnu_ld+set}" = set; then :
4894: withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4895: else
4896: with_gnu_ld=no
4897: fi
4898:
4899: ac_prog=ld
4900: if test "$GCC" = yes; then
4901: # Check if gcc -print-prog-name=ld gives a path.
4902: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4903: $as_echo_n "checking for ld used by $CC... " >&6; }
4904: case $host in
4905: *-*-mingw*)
4906: # gcc leaves a trailing carriage return which upsets mingw
4907: ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4908: *)
4909: ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4910: esac
4911: case $ac_prog in
4912: # Accept absolute paths.
4913: [\\/]* | ?:[\\/]*)
4914: re_direlt='/[^/][^/]*/\.\./'
4915: # Canonicalize the pathname of ld
4916: ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4917: while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4918: ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4919: done
4920: test -z "$LD" && LD="$ac_prog"
4921: ;;
4922: "")
4923: # If it fails, then pretend we aren't using GCC.
4924: ac_prog=ld
4925: ;;
4926: *)
4927: # If it is relative, then search for the first ld in PATH.
4928: with_gnu_ld=unknown
4929: ;;
4930: esac
4931: elif test "$with_gnu_ld" = yes; then
4932: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4933: $as_echo_n "checking for GNU ld... " >&6; }
4934: else
4935: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4936: $as_echo_n "checking for non-GNU ld... " >&6; }
4937: fi
4938: if ${lt_cv_path_LD+:} false; then :
4939: $as_echo_n "(cached) " >&6
4940: else
4941: if test -z "$LD"; then
4942: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4943: for ac_dir in $PATH; do
4944: IFS="$lt_save_ifs"
4945: test -z "$ac_dir" && ac_dir=.
4946: if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4947: lt_cv_path_LD="$ac_dir/$ac_prog"
4948: # Check to see if the program is GNU ld. I'd rather use --version,
4949: # but apparently some variants of GNU ld only accept -v.
4950: # Break only if it was the GNU/non-GNU ld that we prefer.
4951: case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4952: *GNU* | *'with BFD'*)
4953: test "$with_gnu_ld" != no && break
4954: ;;
4955: *)
4956: test "$with_gnu_ld" != yes && break
4957: ;;
4958: esac
4959: fi
4960: done
4961: IFS="$lt_save_ifs"
4962: else
4963: lt_cv_path_LD="$LD" # Let the user override the test with a path.
4964: fi
4965: fi
4966:
4967: LD="$lt_cv_path_LD"
4968: if test -n "$LD"; then
4969: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4970: $as_echo "$LD" >&6; }
4971: else
4972: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4973: $as_echo "no" >&6; }
4974: fi
4975: test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4976: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4977: $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4978: if ${lt_cv_prog_gnu_ld+:} false; then :
4979: $as_echo_n "(cached) " >&6
4980: else
4981: # I'd rather use --version here, but apparently some GNU lds only accept -v.
4982: case `$LD -v 2>&1 </dev/null` in
4983: *GNU* | *'with BFD'*)
4984: lt_cv_prog_gnu_ld=yes
4985: ;;
4986: *)
4987: lt_cv_prog_gnu_ld=no
4988: ;;
4989: esac
4990: fi
4991: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4992: $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4993: with_gnu_ld=$lt_cv_prog_gnu_ld
4994:
4995:
4996:
4997:
4998:
4999:
5000:
5001:
5002:
5003:
5004: for ac_prog in gawk mawk nawk awk
5005: do
5006: # Extract the first word of "$ac_prog", so it can be a program name with args.
5007: set dummy $ac_prog; ac_word=$2
5008: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5009: $as_echo_n "checking for $ac_word... " >&6; }
5010: if ${ac_cv_prog_AWK+:} false; then :
5011: $as_echo_n "(cached) " >&6
5012: else
5013: if test -n "$AWK"; then
5014: ac_cv_prog_AWK="$AWK" # Let the user override the test.
5015: else
5016: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5017: for as_dir in $PATH
5018: do
5019: IFS=$as_save_IFS
5020: test -z "$as_dir" && as_dir=.
5021: for ac_exec_ext in '' $ac_executable_extensions; do
5022: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5023: ac_cv_prog_AWK="$ac_prog"
5024: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5025: break 2
5026: fi
5027: done
5028: done
5029: IFS=$as_save_IFS
5030:
5031: fi
5032: fi
5033: AWK=$ac_cv_prog_AWK
5034: if test -n "$AWK"; then
5035: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5036: $as_echo "$AWK" >&6; }
5037: else
5038: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5039: $as_echo "no" >&6; }
5040: fi
5041:
5042:
5043: test -n "$AWK" && break
5044: done
5045:
5046: ac_ext=c
5047: ac_cpp='$CPP $CPPFLAGS'
5048: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5049: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5050: ac_compiler_gnu=$ac_cv_c_compiler_gnu
5051: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5052: $as_echo_n "checking how to run the C preprocessor... " >&6; }
5053: # On Suns, sometimes $CPP names a directory.
5054: if test -n "$CPP" && test -d "$CPP"; then
5055: CPP=
5056: fi
5057: if test -z "$CPP"; then
5058: if ${ac_cv_prog_CPP+:} false; then :
5059: $as_echo_n "(cached) " >&6
5060: else
5061: # Double quotes because CPP needs to be expanded
5062: for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5063: do
5064: ac_preproc_ok=false
5065: for ac_c_preproc_warn_flag in '' yes
5066: do
5067: # Use a header file that comes with gcc, so configuring glibc
5068: # with a fresh cross-compiler works.
5069: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5070: # <limits.h> exists even on freestanding compilers.
5071: # On the NeXT, cc -E runs the code through the compiler's parser,
5072: # not just through cpp. "Syntax error" is here to catch this case.
5073: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5074: /* end confdefs.h. */
5075: #ifdef __STDC__
5076: # include <limits.h>
5077: #else
5078: # include <assert.h>
5079: #endif
5080: Syntax error
5081: _ACEOF
5082: if ac_fn_c_try_cpp "$LINENO"; then :
5083:
5084: else
5085: # Broken: fails on valid input.
5086: continue
5087: fi
5088: rm -f conftest.err conftest.i conftest.$ac_ext
5089:
5090: # OK, works on sane cases. Now check whether nonexistent headers
5091: # can be detected and how.
5092: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5093: /* end confdefs.h. */
5094: #include <ac_nonexistent.h>
5095: _ACEOF
5096: if ac_fn_c_try_cpp "$LINENO"; then :
5097: # Broken: success on invalid input.
5098: continue
5099: else
5100: # Passes both tests.
5101: ac_preproc_ok=:
5102: break
5103: fi
5104: rm -f conftest.err conftest.i conftest.$ac_ext
5105:
5106: done
5107: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5108: rm -f conftest.i conftest.err conftest.$ac_ext
5109: if $ac_preproc_ok; then :
5110: break
5111: fi
5112:
5113: done
5114: ac_cv_prog_CPP=$CPP
5115:
5116: fi
5117: CPP=$ac_cv_prog_CPP
5118: else
5119: ac_cv_prog_CPP=$CPP
5120: fi
5121: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5122: $as_echo "$CPP" >&6; }
5123: ac_preproc_ok=false
5124: for ac_c_preproc_warn_flag in '' yes
5125: do
5126: # Use a header file that comes with gcc, so configuring glibc
5127: # with a fresh cross-compiler works.
5128: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5129: # <limits.h> exists even on freestanding compilers.
5130: # On the NeXT, cc -E runs the code through the compiler's parser,
5131: # not just through cpp. "Syntax error" is here to catch this case.
5132: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5133: /* end confdefs.h. */
5134: #ifdef __STDC__
5135: # include <limits.h>
5136: #else
5137: # include <assert.h>
5138: #endif
5139: Syntax error
5140: _ACEOF
5141: if ac_fn_c_try_cpp "$LINENO"; then :
5142:
5143: else
5144: # Broken: fails on valid input.
5145: continue
5146: fi
5147: rm -f conftest.err conftest.i conftest.$ac_ext
5148:
5149: # OK, works on sane cases. Now check whether nonexistent headers
5150: # can be detected and how.
5151: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5152: /* end confdefs.h. */
5153: #include <ac_nonexistent.h>
5154: _ACEOF
5155: if ac_fn_c_try_cpp "$LINENO"; then :
5156: # Broken: success on invalid input.
5157: continue
5158: else
5159: # Passes both tests.
5160: ac_preproc_ok=:
5161: break
5162: fi
5163: rm -f conftest.err conftest.i conftest.$ac_ext
5164:
5165: done
5166: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5167: rm -f conftest.i conftest.err conftest.$ac_ext
5168: if $ac_preproc_ok; then :
5169:
5170: else
5171: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5172: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5173: as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5174: See \`config.log' for more details" "$LINENO" 5; }
5175: fi
5176:
5177: ac_ext=c
5178: ac_cpp='$CPP $CPPFLAGS'
5179: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5180: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5181: ac_compiler_gnu=$ac_cv_c_compiler_gnu
5182:
5183: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5184: $as_echo_n "checking whether ln -s works... " >&6; }
5185: LN_S=$as_ln_s
5186: if test "$LN_S" = "ln -s"; then
5187: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5188: $as_echo "yes" >&6; }
5189: else
5190: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5191: $as_echo "no, using $LN_S" >&6; }
5192: fi
5193:
5194: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5195: $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5196: set x ${MAKE-make}
5197: ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5198: if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
5199: $as_echo_n "(cached) " >&6
5200: else
5201: cat >conftest.make <<\_ACEOF
5202: SHELL = /bin/sh
5203: all:
5204: @echo '@@@%%%=$(MAKE)=@@@%%%'
5205: _ACEOF
5206: # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
5207: case `${MAKE-make} -f conftest.make 2>/dev/null` in
5208: *@@@%%%=?*=@@@%%%*)
5209: eval ac_cv_prog_make_${ac_make}_set=yes;;
5210: *)
5211: eval ac_cv_prog_make_${ac_make}_set=no;;
5212: esac
5213: rm -f conftest.make
5214: fi
5215: if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5216: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5217: $as_echo "yes" >&6; }
5218: SET_MAKE=
5219: else
5220: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5221: $as_echo "no" >&6; }
5222: SET_MAKE="MAKE=${MAKE-make}"
5223: fi
5224:
5225:
5226:
5227:
5228: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5229: $as_echo_n "checking for ANSI C header files... " >&6; }
5230: if ${ac_cv_header_stdc+:} false; then :
5231: $as_echo_n "(cached) " >&6
5232: else
5233: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5234: /* end confdefs.h. */
5235: #include <stdlib.h>
5236: #include <stdarg.h>
5237: #include <string.h>
5238: #include <float.h>
5239:
5240: int
5241: main ()
5242: {
5243:
5244: ;
5245: return 0;
5246: }
5247: _ACEOF
5248: if ac_fn_c_try_compile "$LINENO"; then :
5249: ac_cv_header_stdc=yes
5250: else
5251: ac_cv_header_stdc=no
5252: fi
5253: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5254:
5255: if test $ac_cv_header_stdc = yes; then
5256: # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5257: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5258: /* end confdefs.h. */
5259: #include <string.h>
5260:
5261: _ACEOF
5262: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5263: $EGREP "memchr" >/dev/null 2>&1; then :
5264:
5265: else
5266: ac_cv_header_stdc=no
5267: fi
5268: rm -f conftest*
5269:
5270: fi
5271:
5272: if test $ac_cv_header_stdc = yes; then
5273: # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5274: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5275: /* end confdefs.h. */
5276: #include <stdlib.h>
5277:
5278: _ACEOF
5279: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5280: $EGREP "free" >/dev/null 2>&1; then :
5281:
5282: else
5283: ac_cv_header_stdc=no
5284: fi
5285: rm -f conftest*
5286:
5287: fi
5288:
5289: if test $ac_cv_header_stdc = yes; then
5290: # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5291: if test "$cross_compiling" = yes; then :
5292: :
5293: else
5294: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5295: /* end confdefs.h. */
5296: #include <ctype.h>
5297: #include <stdlib.h>
5298: #if ((' ' & 0x0FF) == 0x020)
5299: # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5300: # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5301: #else
5302: # define ISLOWER(c) \
5303: (('a' <= (c) && (c) <= 'i') \
5304: || ('j' <= (c) && (c) <= 'r') \
5305: || ('s' <= (c) && (c) <= 'z'))
5306: # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5307: #endif
5308:
5309: #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5310: int
5311: main ()
5312: {
5313: int i;
5314: for (i = 0; i < 256; i++)
5315: if (XOR (islower (i), ISLOWER (i))
5316: || toupper (i) != TOUPPER (i))
5317: return 2;
5318: return 0;
5319: }
5320: _ACEOF
5321: if ac_fn_c_try_run "$LINENO"; then :
5322:
5323: else
5324: ac_cv_header_stdc=no
5325: fi
5326: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5327: conftest.$ac_objext conftest.beam conftest.$ac_ext
5328: fi
5329:
5330: fi
5331: fi
5332: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5333: $as_echo "$ac_cv_header_stdc" >&6; }
5334: if test $ac_cv_header_stdc = yes; then
5335:
5336: $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5337:
5338: fi
5339:
5340: # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5341: for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5342: inttypes.h stdint.h unistd.h
5343: do :
5344: as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5345: ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5346: "
5347: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5348: cat >>confdefs.h <<_ACEOF
5349: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5350: _ACEOF
5351:
5352: fi
5353:
5354: done
5355:
5356:
5357:
5358: ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5359: if test "x$ac_cv_header_minix_config_h" = xyes; then :
5360: MINIX=yes
5361: else
5362: MINIX=
5363: fi
5364:
5365:
5366: if test "$MINIX" = yes; then
5367:
5368: $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5369:
5370:
5371: $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5372:
5373:
5374: $as_echo "#define _MINIX 1" >>confdefs.h
5375:
5376: fi
5377:
5378:
5379: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5380: $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5381: if ${ac_cv_safe_to_define___extensions__+:} false; then :
5382: $as_echo_n "(cached) " >&6
5383: else
5384: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5385: /* end confdefs.h. */
5386:
5387: # define __EXTENSIONS__ 1
5388: $ac_includes_default
5389: int
5390: main ()
5391: {
5392:
5393: ;
5394: return 0;
5395: }
5396: _ACEOF
5397: if ac_fn_c_try_compile "$LINENO"; then :
5398: ac_cv_safe_to_define___extensions__=yes
5399: else
5400: ac_cv_safe_to_define___extensions__=no
5401: fi
5402: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5403: fi
5404: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5405: $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5406: test $ac_cv_safe_to_define___extensions__ = yes &&
5407: $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5408:
5409: $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5410:
5411: $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5412:
5413: $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5414:
5415: $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5416:
5417:
5418: if test -n "$ac_tool_prefix"; then
5419: for ac_prog in ar lib "link -lib"
5420: do
5421: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5422: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5423: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5424: $as_echo_n "checking for $ac_word... " >&6; }
5425: if ${ac_cv_prog_AR+:} false; then :
5426: $as_echo_n "(cached) " >&6
5427: else
5428: if test -n "$AR"; then
5429: ac_cv_prog_AR="$AR" # Let the user override the test.
5430: else
5431: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5432: for as_dir in $PATH
5433: do
5434: IFS=$as_save_IFS
5435: test -z "$as_dir" && as_dir=.
5436: for ac_exec_ext in '' $ac_executable_extensions; do
5437: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5438: ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5439: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5440: break 2
5441: fi
5442: done
5443: done
5444: IFS=$as_save_IFS
5445:
5446: fi
5447: fi
5448: AR=$ac_cv_prog_AR
5449: if test -n "$AR"; then
5450: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5451: $as_echo "$AR" >&6; }
5452: else
5453: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5454: $as_echo "no" >&6; }
5455: fi
5456:
5457:
5458: test -n "$AR" && break
5459: done
5460: fi
5461: if test -z "$AR"; then
5462: ac_ct_AR=$AR
5463: for ac_prog in ar lib "link -lib"
5464: do
5465: # Extract the first word of "$ac_prog", so it can be a program name with args.
5466: set dummy $ac_prog; ac_word=$2
5467: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5468: $as_echo_n "checking for $ac_word... " >&6; }
5469: if ${ac_cv_prog_ac_ct_AR+:} false; then :
5470: $as_echo_n "(cached) " >&6
5471: else
5472: if test -n "$ac_ct_AR"; then
5473: ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5474: else
5475: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5476: for as_dir in $PATH
5477: do
5478: IFS=$as_save_IFS
5479: test -z "$as_dir" && as_dir=.
5480: for ac_exec_ext in '' $ac_executable_extensions; do
5481: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5482: ac_cv_prog_ac_ct_AR="$ac_prog"
5483: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5484: break 2
5485: fi
5486: done
5487: done
5488: IFS=$as_save_IFS
5489:
5490: fi
5491: fi
5492: ac_ct_AR=$ac_cv_prog_ac_ct_AR
5493: if test -n "$ac_ct_AR"; then
5494: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5495: $as_echo "$ac_ct_AR" >&6; }
5496: else
5497: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5498: $as_echo "no" >&6; }
5499: fi
5500:
5501:
5502: test -n "$ac_ct_AR" && break
5503: done
5504:
5505: if test "x$ac_ct_AR" = x; then
5506: AR="false"
5507: else
5508: case $cross_compiling:$ac_tool_warned in
5509: yes:)
5510: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5511: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5512: ac_tool_warned=yes ;;
5513: esac
5514: AR=$ac_ct_AR
5515: fi
5516: fi
5517:
5518: : ${AR=ar}
5519:
5520: { $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
5521: $as_echo_n "checking the archiver ($AR) interface... " >&6; }
5522: if ${am_cv_ar_interface+:} false; then :
5523: $as_echo_n "(cached) " >&6
5524: else
5525: ac_ext=c
5526: ac_cpp='$CPP $CPPFLAGS'
5527: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5528: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5529: ac_compiler_gnu=$ac_cv_c_compiler_gnu
5530:
5531: am_cv_ar_interface=ar
5532: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5533: /* end confdefs.h. */
5534: int some_variable = 0;
5535: _ACEOF
5536: if ac_fn_c_try_compile "$LINENO"; then :
5537: am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
5538: { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
5539: (eval $am_ar_try) 2>&5
5540: ac_status=$?
5541: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5542: test $ac_status = 0; }
5543: if test "$ac_status" -eq 0; then
5544: am_cv_ar_interface=ar
5545: else
5546: am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
5547: { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
5548: (eval $am_ar_try) 2>&5
5549: ac_status=$?
5550: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5551: test $ac_status = 0; }
5552: if test "$ac_status" -eq 0; then
5553: am_cv_ar_interface=lib
5554: else
5555: am_cv_ar_interface=unknown
5556: fi
5557: fi
5558: rm -f conftest.lib libconftest.a
5559:
5560: fi
5561: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5562: ac_ext=c
5563: ac_cpp='$CPP $CPPFLAGS'
5564: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5565: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5566: ac_compiler_gnu=$ac_cv_c_compiler_gnu
5567:
5568: fi
5569: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
5570: $as_echo "$am_cv_ar_interface" >&6; }
5571:
5572: case $am_cv_ar_interface in
5573: ar)
5574: ;;
5575: lib)
5576: # Microsoft lib, so override with the ar-lib wrapper script.
5577: # FIXME: It is wrong to rewrite AR.
5578: # But if we don't then we get into trouble of one sort or another.
5579: # A longer-term fix would be to have automake use am__AR in this case,
5580: # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
5581: # similar.
5582: AR="$am_aux_dir/ar-lib $AR"
5583: ;;
5584: unknown)
5585: as_fn_error $? "could not determine $AR interface" "$LINENO" 5
5586: ;;
5587: esac
5588:
5589:
5590:
5591: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
5592: $as_echo_n "checking for library containing strerror... " >&6; }
5593: if ${ac_cv_search_strerror+:} false; then :
5594: $as_echo_n "(cached) " >&6
5595: else
5596: ac_func_search_save_LIBS=$LIBS
5597: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5598: /* end confdefs.h. */
5599:
5600: /* Override any GCC internal prototype to avoid an error.
5601: Use char because int might match the return type of a GCC
5602: builtin and then its argument prototype would still apply. */
5603: #ifdef __cplusplus
5604: extern "C"
5605: #endif
5606: char strerror ();
5607: int
5608: main ()
5609: {
5610: return strerror ();
5611: ;
5612: return 0;
5613: }
5614: _ACEOF
5615: for ac_lib in '' cposix; do
5616: if test -z "$ac_lib"; then
5617: ac_res="none required"
5618: else
5619: ac_res=-l$ac_lib
5620: LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5621: fi
5622: if ac_fn_c_try_link "$LINENO"; then :
5623: ac_cv_search_strerror=$ac_res
5624: fi
5625: rm -f core conftest.err conftest.$ac_objext \
5626: conftest$ac_exeext
5627: if ${ac_cv_search_strerror+:} false; then :
5628: break
5629: fi
5630: done
5631: if ${ac_cv_search_strerror+:} false; then :
5632:
5633: else
5634: ac_cv_search_strerror=no
5635: fi
5636: rm conftest.$ac_ext
5637: LIBS=$ac_func_search_save_LIBS
5638: fi
5639: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
5640: $as_echo "$ac_cv_search_strerror" >&6; }
5641: ac_res=$ac_cv_search_strerror
5642: if test "$ac_res" != no; then :
5643: test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5644:
5645: fi
5646:
5647:
5648:
5649: case $host_os in
5650: *darwin*|*cygwin*|*aix*|*mingw* ) NO_RDYNAMIC=yes;;
5651: * ) NO_RDYNAMIC=no;;
5652: esac
5653: if test x$NO_RDYNAMIC = xyes; then
5654: NO_RDYNAMIC_TRUE=
5655: NO_RDYNAMIC_FALSE='#'
5656: else
5657: NO_RDYNAMIC_TRUE='#'
5658: NO_RDYNAMIC_FALSE=
5659: fi
5660:
5661:
5662:
5663:
5664: # Check whether --enable-static was given.
5665: if test "${enable_static+set}" = set; then :
5666: enableval=$enable_static; p=${PACKAGE-default}
5667: case $enableval in
5668: yes) enable_static=yes ;;
5669: no) enable_static=no ;;
5670: *)
5671: enable_static=no
5672: # Look at the argument we got. We use all the common list separators.
5673: lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5674: for pkg in $enableval; do
5675: IFS="$lt_save_ifs"
5676: if test "X$pkg" = "X$p"; then
5677: enable_static=yes
5678: fi
5679: done
5680: IFS="$lt_save_ifs"
5681: ;;
5682: esac
5683: else
5684: enable_static=no
5685: fi
5686:
5687:
5688:
5689:
5690:
5691:
5692:
5693:
5694:
5695: # Check whether --enable-shared was given.
5696: if test "${enable_shared+set}" = set; then :
5697: enableval=$enable_shared; p=${PACKAGE-default}
5698: case $enableval in
5699: yes) enable_shared=yes ;;
5700: no) enable_shared=no ;;
5701: *)
5702: enable_shared=no
5703: # Look at the argument we got. We use all the common list separators.
5704: lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5705: for pkg in $enableval; do
5706: IFS="$lt_save_ifs"
5707: if test "X$pkg" = "X$p"; then
5708: enable_shared=yes
5709: fi
5710: done
5711: IFS="$lt_save_ifs"
5712: ;;
5713: esac
5714: else
5715: enable_shared=yes
5716: fi
5717:
5718:
5719:
5720:
5721:
5722:
5723:
5724:
5725:
5726:
5727: enable_dlopen=yes
5728:
5729:
5730:
5731: case `pwd` in
5732: *\ * | *\ *)
5733: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5734: $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5735: esac
5736:
5737:
5738:
5739: macro_version='2.4.2'
5740: macro_revision='1.3337'
5741:
5742:
5743:
5744:
5745:
5746:
5747:
5748:
5749:
5750:
5751:
5752:
5753:
5754: ltmain="$ac_aux_dir/ltmain.sh"
5755:
5756: # Backslashify metacharacters that are still active within
5757: # double-quoted strings.
5758: sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5759:
5760: # Same as above, but do not quote variable references.
5761: double_quote_subst='s/\(["`\\]\)/\\\1/g'
5762:
5763: # Sed substitution to delay expansion of an escaped shell variable in a
5764: # double_quote_subst'ed string.
5765: delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5766:
5767: # Sed substitution to delay expansion of an escaped single quote.
5768: delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5769:
5770: # Sed substitution to avoid accidental globbing in evaled expressions
5771: no_glob_subst='s/\*/\\\*/g'
5772:
5773: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5774: $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5775: if ${lt_cv_path_NM+:} false; then :
5776: $as_echo_n "(cached) " >&6
5777: else
5778: if test -n "$NM"; then
5779: # Let the user override the test.
5780: lt_cv_path_NM="$NM"
5781: else
5782: lt_nm_to_check="${ac_tool_prefix}nm"
5783: if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5784: lt_nm_to_check="$lt_nm_to_check nm"
5785: fi
5786: for lt_tmp_nm in $lt_nm_to_check; do
5787: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5788: for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5789: IFS="$lt_save_ifs"
5790: test -z "$ac_dir" && ac_dir=.
5791: tmp_nm="$ac_dir/$lt_tmp_nm"
5792: if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5793: # Check to see if the nm accepts a BSD-compat flag.
5794: # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5795: # nm: unknown option "B" ignored
5796: # Tru64's nm complains that /dev/null is an invalid object file
5797: case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5798: */dev/null* | *'Invalid file or object type'*)
5799: lt_cv_path_NM="$tmp_nm -B"
5800: break
5801: ;;
5802: *)
5803: case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5804: */dev/null*)
5805: lt_cv_path_NM="$tmp_nm -p"
5806: break
5807: ;;
5808: *)
5809: lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5810: continue # so that we can try to find one that supports BSD flags
5811: ;;
5812: esac
5813: ;;
5814: esac
5815: fi
5816: done
5817: IFS="$lt_save_ifs"
5818: done
5819: : ${lt_cv_path_NM=no}
5820: fi
5821: fi
5822: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5823: $as_echo "$lt_cv_path_NM" >&6; }
5824: if test "$lt_cv_path_NM" != "no"; then
5825: NM="$lt_cv_path_NM"
5826: else
5827: # Didn't find any BSD compatible name lister, look for dumpbin.
5828: if test -n "$DUMPBIN"; then :
5829: # Let the user override the test.
5830: else
5831: if test -n "$ac_tool_prefix"; then
5832: for ac_prog in dumpbin "link -dump"
5833: do
5834: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5835: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5836: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5837: $as_echo_n "checking for $ac_word... " >&6; }
5838: if ${ac_cv_prog_DUMPBIN+:} false; then :
5839: $as_echo_n "(cached) " >&6
5840: else
5841: if test -n "$DUMPBIN"; then
5842: ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5843: else
5844: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5845: for as_dir in $PATH
5846: do
5847: IFS=$as_save_IFS
5848: test -z "$as_dir" && as_dir=.
5849: for ac_exec_ext in '' $ac_executable_extensions; do
5850: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5851: ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5852: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5853: break 2
5854: fi
5855: done
5856: done
5857: IFS=$as_save_IFS
5858:
5859: fi
5860: fi
5861: DUMPBIN=$ac_cv_prog_DUMPBIN
5862: if test -n "$DUMPBIN"; then
5863: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5864: $as_echo "$DUMPBIN" >&6; }
5865: else
5866: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5867: $as_echo "no" >&6; }
5868: fi
5869:
5870:
5871: test -n "$DUMPBIN" && break
5872: done
5873: fi
5874: if test -z "$DUMPBIN"; then
5875: ac_ct_DUMPBIN=$DUMPBIN
5876: for ac_prog in dumpbin "link -dump"
5877: do
5878: # Extract the first word of "$ac_prog", so it can be a program name with args.
5879: set dummy $ac_prog; ac_word=$2
5880: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5881: $as_echo_n "checking for $ac_word... " >&6; }
5882: if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5883: $as_echo_n "(cached) " >&6
5884: else
5885: if test -n "$ac_ct_DUMPBIN"; then
5886: ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5887: else
5888: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5889: for as_dir in $PATH
5890: do
5891: IFS=$as_save_IFS
5892: test -z "$as_dir" && as_dir=.
5893: for ac_exec_ext in '' $ac_executable_extensions; do
5894: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5895: ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5896: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5897: break 2
5898: fi
5899: done
5900: done
5901: IFS=$as_save_IFS
5902:
5903: fi
5904: fi
5905: ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5906: if test -n "$ac_ct_DUMPBIN"; then
5907: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5908: $as_echo "$ac_ct_DUMPBIN" >&6; }
5909: else
5910: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5911: $as_echo "no" >&6; }
5912: fi
5913:
5914:
5915: test -n "$ac_ct_DUMPBIN" && break
5916: done
5917:
5918: if test "x$ac_ct_DUMPBIN" = x; then
5919: DUMPBIN=":"
5920: else
5921: case $cross_compiling:$ac_tool_warned in
5922: yes:)
5923: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5924: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5925: ac_tool_warned=yes ;;
5926: esac
5927: DUMPBIN=$ac_ct_DUMPBIN
5928: fi
5929: fi
5930:
5931: case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5932: *COFF*)
5933: DUMPBIN="$DUMPBIN -symbols"
5934: ;;
5935: *)
5936: DUMPBIN=:
5937: ;;
5938: esac
5939: fi
5940:
5941: if test "$DUMPBIN" != ":"; then
5942: NM="$DUMPBIN"
5943: fi
5944: fi
5945: test -z "$NM" && NM=nm
5946:
5947:
5948:
5949:
5950:
5951:
5952: { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5953: $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5954: if ${lt_cv_nm_interface+:} false; then :
5955: $as_echo_n "(cached) " >&6
5956: else
5957: lt_cv_nm_interface="BSD nm"
5958: echo "int some_variable = 0;" > conftest.$ac_ext
5959: (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5960: (eval "$ac_compile" 2>conftest.err)
5961: cat conftest.err >&5
5962: (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5963: (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5964: cat conftest.err >&5
5965: (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5966: cat conftest.out >&5
5967: if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5968: lt_cv_nm_interface="MS dumpbin"
5969: fi
5970: rm -f conftest*
5971: fi
5972: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5973: $as_echo "$lt_cv_nm_interface" >&6; }
5974:
5975: # find the maximum length of command line arguments
5976: { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5977: $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5978: if ${lt_cv_sys_max_cmd_len+:} false; then :
5979: $as_echo_n "(cached) " >&6
5980: else
5981: i=0
5982: teststring="ABCD"
5983:
5984: case $build_os in
5985: msdosdjgpp*)
5986: # On DJGPP, this test can blow up pretty badly due to problems in libc
5987: # (any single argument exceeding 2000 bytes causes a buffer overrun
5988: # during glob expansion). Even if it were fixed, the result of this
5989: # check would be larger than it should be.
5990: lt_cv_sys_max_cmd_len=12288; # 12K is about right
5991: ;;
5992:
5993: gnu*)
5994: # Under GNU Hurd, this test is not required because there is
5995: # no limit to the length of command line arguments.
5996: # Libtool will interpret -1 as no limit whatsoever
5997: lt_cv_sys_max_cmd_len=-1;
5998: ;;
5999:
6000: cygwin* | mingw* | cegcc*)
6001: # On Win9x/ME, this test blows up -- it succeeds, but takes
6002: # about 5 minutes as the teststring grows exponentially.
6003: # Worse, since 9x/ME are not pre-emptively multitasking,
6004: # you end up with a "frozen" computer, even though with patience
6005: # the test eventually succeeds (with a max line length of 256k).
6006: # Instead, let's just punt: use the minimum linelength reported by
6007: # all of the supported platforms: 8192 (on NT/2K/XP).
6008: lt_cv_sys_max_cmd_len=8192;
6009: ;;
6010:
6011: mint*)
6012: # On MiNT this can take a long time and run out of memory.
6013: lt_cv_sys_max_cmd_len=8192;
6014: ;;
6015:
6016: amigaos*)
6017: # On AmigaOS with pdksh, this test takes hours, literally.
6018: # So we just punt and use a minimum line length of 8192.
6019: lt_cv_sys_max_cmd_len=8192;
6020: ;;
6021:
6022: netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6023: # This has been around since 386BSD, at least. Likely further.
6024: if test -x /sbin/sysctl; then
6025: lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6026: elif test -x /usr/sbin/sysctl; then
6027: lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6028: else
6029: lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6030: fi
6031: # And add a safety zone
6032: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6033: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6034: ;;
6035:
6036: interix*)
6037: # We know the value 262144 and hardcode it with a safety zone (like BSD)
6038: lt_cv_sys_max_cmd_len=196608
6039: ;;
6040:
6041: os2*)
6042: # The test takes a long time on OS/2.
6043: lt_cv_sys_max_cmd_len=8192
6044: ;;
6045:
6046: osf*)
6047: # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6048: # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6049: # nice to cause kernel panics so lets avoid the loop below.
6050: # First set a reasonable default.
6051: lt_cv_sys_max_cmd_len=16384
6052: #
6053: if test -x /sbin/sysconfig; then
6054: case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6055: *1*) lt_cv_sys_max_cmd_len=-1 ;;
6056: esac
6057: fi
6058: ;;
6059: sco3.2v5*)
6060: lt_cv_sys_max_cmd_len=102400
6061: ;;
6062: sysv5* | sco5v6* | sysv4.2uw2*)
6063: kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6064: if test -n "$kargmax"; then
6065: lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6066: else
6067: lt_cv_sys_max_cmd_len=32768
6068: fi
6069: ;;
6070: *)
6071: lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6072: if test -n "$lt_cv_sys_max_cmd_len" && \
6073: test undefined != "$lt_cv_sys_max_cmd_len"; then
6074: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6075: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6076: else
6077: # Make teststring a little bigger before we do anything with it.
6078: # a 1K string should be a reasonable start.
6079: for i in 1 2 3 4 5 6 7 8 ; do
6080: teststring=$teststring$teststring
6081: done
6082: SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6083: # If test is not a shell built-in, we'll probably end up computing a
6084: # maximum length that is only half of the actual maximum length, but
6085: # we can't tell.
6086: while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
6087: = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6088: test $i != 17 # 1/2 MB should be enough
6089: do
6090: i=`expr $i + 1`
6091: teststring=$teststring$teststring
6092: done
6093: # Only check the string length outside the loop.
6094: lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6095: teststring=
6096: # Add a significant safety factor because C++ compilers can tack on
6097: # massive amounts of additional arguments before passing them to the
6098: # linker. It appears as though 1/2 is a usable value.
6099: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6100: fi
6101: ;;
6102: esac
6103:
6104: fi
6105:
6106: if test -n $lt_cv_sys_max_cmd_len ; then
6107: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6108: $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6109: else
6110: { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6111: $as_echo "none" >&6; }
6112: fi
6113: max_cmd_len=$lt_cv_sys_max_cmd_len
6114:
6115:
6116:
6117:
6118:
6119:
6120: : ${CP="cp -f"}
6121: : ${MV="mv -f"}
6122: : ${RM="rm -f"}
6123:
6124: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6125: $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6126: # Try some XSI features
6127: xsi_shell=no
6128: ( _lt_dummy="a/b/c"
6129: test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
6130: = c,a/b,b/c, \
6131: && eval 'test $(( 1 + 1 )) -eq 2 \
6132: && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6133: && xsi_shell=yes
6134: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6135: $as_echo "$xsi_shell" >&6; }
6136:
6137:
6138: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6139: $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6140: lt_shell_append=no
6141: ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6142: >/dev/null 2>&1 \
6143: && lt_shell_append=yes
6144: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6145: $as_echo "$lt_shell_append" >&6; }
6146:
6147:
6148: if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6149: lt_unset=unset
6150: else
6151: lt_unset=false
6152: fi
6153:
6154:
6155:
6156:
6157:
6158: # test EBCDIC or ASCII
6159: case `echo X|tr X '\101'` in
6160: A) # ASCII based system
6161: # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6162: lt_SP2NL='tr \040 \012'
6163: lt_NL2SP='tr \015\012 \040\040'
6164: ;;
6165: *) # EBCDIC based system
6166: lt_SP2NL='tr \100 \n'
6167: lt_NL2SP='tr \r\n \100\100'
6168: ;;
6169: esac
6170:
6171:
6172:
6173:
6174:
6175:
6176:
6177:
6178:
6179: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6180: $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
6181: if ${lt_cv_to_host_file_cmd+:} false; then :
6182: $as_echo_n "(cached) " >&6
6183: else
6184: case $host in
6185: *-*-mingw* )
6186: case $build in
6187: *-*-mingw* ) # actually msys
6188: lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6189: ;;
6190: *-*-cygwin* )
6191: lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6192: ;;
6193: * ) # otherwise, assume *nix
6194: lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6195: ;;
6196: esac
6197: ;;
6198: *-*-cygwin* )
6199: case $build in
6200: *-*-mingw* ) # actually msys
6201: lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6202: ;;
6203: *-*-cygwin* )
6204: lt_cv_to_host_file_cmd=func_convert_file_noop
6205: ;;
6206: * ) # otherwise, assume *nix
6207: lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6208: ;;
6209: esac
6210: ;;
6211: * ) # unhandled hosts (and "normal" native builds)
6212: lt_cv_to_host_file_cmd=func_convert_file_noop
6213: ;;
6214: esac
6215:
6216: fi
6217:
6218: to_host_file_cmd=$lt_cv_to_host_file_cmd
6219: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6220: $as_echo "$lt_cv_to_host_file_cmd" >&6; }
6221:
6222:
6223:
6224:
6225:
6226: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6227: $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
6228: if ${lt_cv_to_tool_file_cmd+:} false; then :
6229: $as_echo_n "(cached) " >&6
6230: else
6231: #assume ordinary cross tools, or native build.
6232: lt_cv_to_tool_file_cmd=func_convert_file_noop
6233: case $host in
6234: *-*-mingw* )
6235: case $build in
6236: *-*-mingw* ) # actually msys
6237: lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6238: ;;
6239: esac
6240: ;;
6241: esac
6242:
6243: fi
6244:
6245: to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6246: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6247: $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
6248:
6249:
6250:
6251:
6252:
6253: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6254: $as_echo_n "checking for $LD option to reload object files... " >&6; }
6255: if ${lt_cv_ld_reload_flag+:} false; then :
6256: $as_echo_n "(cached) " >&6
6257: else
6258: lt_cv_ld_reload_flag='-r'
6259: fi
6260: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6261: $as_echo "$lt_cv_ld_reload_flag" >&6; }
6262: reload_flag=$lt_cv_ld_reload_flag
6263: case $reload_flag in
6264: "" | " "*) ;;
6265: *) reload_flag=" $reload_flag" ;;
6266: esac
6267: reload_cmds='$LD$reload_flag -o $output$reload_objs'
6268: case $host_os in
6269: cygwin* | mingw* | pw32* | cegcc*)
6270: if test "$GCC" != yes; then
6271: reload_cmds=false
6272: fi
6273: ;;
6274: darwin*)
6275: if test "$GCC" = yes; then
6276: reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6277: else
6278: reload_cmds='$LD$reload_flag -o $output$reload_objs'
6279: fi
6280: ;;
6281: esac
6282:
6283:
6284:
6285:
6286:
6287:
6288:
6289:
6290:
6291: if test -n "$ac_tool_prefix"; then
6292: # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6293: set dummy ${ac_tool_prefix}objdump; ac_word=$2
6294: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6295: $as_echo_n "checking for $ac_word... " >&6; }
6296: if ${ac_cv_prog_OBJDUMP+:} false; then :
6297: $as_echo_n "(cached) " >&6
6298: else
6299: if test -n "$OBJDUMP"; then
6300: ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6301: else
6302: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6303: for as_dir in $PATH
6304: do
6305: IFS=$as_save_IFS
6306: test -z "$as_dir" && as_dir=.
6307: for ac_exec_ext in '' $ac_executable_extensions; do
6308: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6309: ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6310: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6311: break 2
6312: fi
6313: done
6314: done
6315: IFS=$as_save_IFS
6316:
6317: fi
6318: fi
6319: OBJDUMP=$ac_cv_prog_OBJDUMP
6320: if test -n "$OBJDUMP"; then
6321: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6322: $as_echo "$OBJDUMP" >&6; }
6323: else
6324: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6325: $as_echo "no" >&6; }
6326: fi
6327:
6328:
6329: fi
6330: if test -z "$ac_cv_prog_OBJDUMP"; then
6331: ac_ct_OBJDUMP=$OBJDUMP
6332: # Extract the first word of "objdump", so it can be a program name with args.
6333: set dummy objdump; ac_word=$2
6334: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6335: $as_echo_n "checking for $ac_word... " >&6; }
6336: if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6337: $as_echo_n "(cached) " >&6
6338: else
6339: if test -n "$ac_ct_OBJDUMP"; then
6340: ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6341: else
6342: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6343: for as_dir in $PATH
6344: do
6345: IFS=$as_save_IFS
6346: test -z "$as_dir" && as_dir=.
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_OBJDUMP="objdump"
6350: $as_echo "$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_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6360: if test -n "$ac_ct_OBJDUMP"; then
6361: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6362: $as_echo "$ac_ct_OBJDUMP" >&6; }
6363: else
6364: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6365: $as_echo "no" >&6; }
6366: fi
6367:
6368: if test "x$ac_ct_OBJDUMP" = x; then
6369: OBJDUMP="false"
6370: else
6371: case $cross_compiling:$ac_tool_warned in
6372: yes:)
6373: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6374: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6375: ac_tool_warned=yes ;;
6376: esac
6377: OBJDUMP=$ac_ct_OBJDUMP
6378: fi
6379: else
6380: OBJDUMP="$ac_cv_prog_OBJDUMP"
6381: fi
6382:
6383: test -z "$OBJDUMP" && OBJDUMP=objdump
6384:
6385:
6386:
6387:
6388:
6389:
6390:
6391:
6392:
6393: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6394: $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6395: if ${lt_cv_deplibs_check_method+:} false; then :
6396: $as_echo_n "(cached) " >&6
6397: else
6398: lt_cv_file_magic_cmd='$MAGIC_CMD'
6399: lt_cv_file_magic_test_file=
6400: lt_cv_deplibs_check_method='unknown'
6401: # Need to set the preceding variable on all platforms that support
6402: # interlibrary dependencies.
6403: # 'none' -- dependencies not supported.
6404: # `unknown' -- same as none, but documents that we really don't know.
6405: # 'pass_all' -- all dependencies passed with no checks.
6406: # 'test_compile' -- check by making test program.
6407: # 'file_magic [[regex]]' -- check by looking for files in library path
6408: # which responds to the $file_magic_cmd with a given extended regex.
6409: # If you have `file' or equivalent on your system and you're not sure
6410: # whether `pass_all' will *always* work, you probably want this one.
6411:
6412: case $host_os in
6413: aix[4-9]*)
6414: lt_cv_deplibs_check_method=pass_all
6415: ;;
6416:
6417: beos*)
6418: lt_cv_deplibs_check_method=pass_all
6419: ;;
6420:
6421: bsdi[45]*)
6422: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6423: lt_cv_file_magic_cmd='/usr/bin/file -L'
6424: lt_cv_file_magic_test_file=/shlib/libc.so
6425: ;;
6426:
6427: cygwin*)
6428: # func_win32_libid is a shell function defined in ltmain.sh
6429: lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6430: lt_cv_file_magic_cmd='func_win32_libid'
6431: ;;
6432:
6433: mingw* | pw32*)
6434: # Base MSYS/MinGW do not provide the 'file' command needed by
6435: # func_win32_libid shell function, so use a weaker test based on 'objdump',
6436: # unless we find 'file', for example because we are cross-compiling.
6437: # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6438: if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6439: lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6440: lt_cv_file_magic_cmd='func_win32_libid'
6441: else
6442: # Keep this pattern in sync with the one in func_win32_libid.
6443: lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6444: lt_cv_file_magic_cmd='$OBJDUMP -f'
6445: fi
6446: ;;
6447:
6448: cegcc*)
6449: # use the weaker test based on 'objdump'. See mingw*.
6450: lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6451: lt_cv_file_magic_cmd='$OBJDUMP -f'
6452: ;;
6453:
6454: darwin* | rhapsody*)
6455: lt_cv_deplibs_check_method=pass_all
6456: ;;
6457:
6458: freebsd* | dragonfly*)
6459: if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6460: case $host_cpu in
6461: i*86 )
6462: # Not sure whether the presence of OpenBSD here was a mistake.
6463: # Let's accept both of them until this is cleared up.
6464: lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6465: lt_cv_file_magic_cmd=/usr/bin/file
6466: lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6467: ;;
6468: esac
6469: else
6470: lt_cv_deplibs_check_method=pass_all
6471: fi
6472: ;;
6473:
6474: haiku*)
6475: lt_cv_deplibs_check_method=pass_all
6476: ;;
6477:
6478: hpux10.20* | hpux11*)
6479: lt_cv_file_magic_cmd=/usr/bin/file
6480: case $host_cpu in
6481: ia64*)
6482: lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6483: lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6484: ;;
6485: hppa*64*)
6486: 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]'
6487: lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6488: ;;
6489: *)
6490: lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6491: lt_cv_file_magic_test_file=/usr/lib/libc.sl
6492: ;;
6493: esac
6494: ;;
6495:
6496: interix[3-9]*)
6497: # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6498: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6499: ;;
6500:
6501: irix5* | irix6* | nonstopux*)
6502: case $LD in
6503: *-32|*"-32 ") libmagic=32-bit;;
6504: *-n32|*"-n32 ") libmagic=N32;;
6505: *-64|*"-64 ") libmagic=64-bit;;
6506: *) libmagic=never-match;;
6507: esac
6508: lt_cv_deplibs_check_method=pass_all
6509: ;;
6510:
6511: # This must be glibc/ELF.
6512: linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6513: lt_cv_deplibs_check_method=pass_all
6514: ;;
6515:
6516: netbsd* | netbsdelf*-gnu)
6517: if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6518: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6519: else
6520: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6521: fi
6522: ;;
6523:
6524: newos6*)
6525: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6526: lt_cv_file_magic_cmd=/usr/bin/file
6527: lt_cv_file_magic_test_file=/usr/lib/libnls.so
6528: ;;
6529:
6530: *nto* | *qnx*)
6531: lt_cv_deplibs_check_method=pass_all
6532: ;;
6533:
6534: openbsd*)
6535: if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6536: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6537: else
6538: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6539: fi
6540: ;;
6541:
6542: osf3* | osf4* | osf5*)
6543: lt_cv_deplibs_check_method=pass_all
6544: ;;
6545:
6546: rdos*)
6547: lt_cv_deplibs_check_method=pass_all
6548: ;;
6549:
6550: solaris*)
6551: lt_cv_deplibs_check_method=pass_all
6552: ;;
6553:
6554: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6555: lt_cv_deplibs_check_method=pass_all
6556: ;;
6557:
6558: sysv4 | sysv4.3*)
6559: case $host_vendor in
6560: motorola)
6561: 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]'
6562: lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6563: ;;
6564: ncr)
6565: lt_cv_deplibs_check_method=pass_all
6566: ;;
6567: sequent)
6568: lt_cv_file_magic_cmd='/bin/file'
6569: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6570: ;;
6571: sni)
6572: lt_cv_file_magic_cmd='/bin/file'
6573: lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6574: lt_cv_file_magic_test_file=/lib/libc.so
6575: ;;
6576: siemens)
6577: lt_cv_deplibs_check_method=pass_all
6578: ;;
6579: pc)
6580: lt_cv_deplibs_check_method=pass_all
6581: ;;
6582: esac
6583: ;;
6584:
6585: tpf*)
6586: lt_cv_deplibs_check_method=pass_all
6587: ;;
6588: esac
6589:
6590: fi
6591: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6592: $as_echo "$lt_cv_deplibs_check_method" >&6; }
6593:
6594: file_magic_glob=
6595: want_nocaseglob=no
6596: if test "$build" = "$host"; then
6597: case $host_os in
6598: mingw* | pw32*)
6599: if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6600: want_nocaseglob=yes
6601: else
6602: file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6603: fi
6604: ;;
6605: esac
6606: fi
6607:
6608: file_magic_cmd=$lt_cv_file_magic_cmd
6609: deplibs_check_method=$lt_cv_deplibs_check_method
6610: test -z "$deplibs_check_method" && deplibs_check_method=unknown
6611:
6612:
6613:
6614:
6615:
6616:
6617:
6618:
6619:
6620:
6621:
6622:
6623:
6624:
6625:
6626:
6627:
6628:
6629:
6630:
6631:
6632:
6633: if test -n "$ac_tool_prefix"; then
6634: # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6635: set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6636: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6637: $as_echo_n "checking for $ac_word... " >&6; }
6638: if ${ac_cv_prog_DLLTOOL+:} false; then :
6639: $as_echo_n "(cached) " >&6
6640: else
6641: if test -n "$DLLTOOL"; then
6642: ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6643: else
6644: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6645: for as_dir in $PATH
6646: do
6647: IFS=$as_save_IFS
6648: test -z "$as_dir" && as_dir=.
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_DLLTOOL="${ac_tool_prefix}dlltool"
6652: $as_echo "$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: DLLTOOL=$ac_cv_prog_DLLTOOL
6662: if test -n "$DLLTOOL"; then
6663: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6664: $as_echo "$DLLTOOL" >&6; }
6665: else
6666: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6667: $as_echo "no" >&6; }
6668: fi
6669:
6670:
6671: fi
6672: if test -z "$ac_cv_prog_DLLTOOL"; then
6673: ac_ct_DLLTOOL=$DLLTOOL
6674: # Extract the first word of "dlltool", so it can be a program name with args.
6675: set dummy dlltool; ac_word=$2
6676: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6677: $as_echo_n "checking for $ac_word... " >&6; }
6678: if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6679: $as_echo_n "(cached) " >&6
6680: else
6681: if test -n "$ac_ct_DLLTOOL"; then
6682: ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6683: else
6684: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6685: for as_dir in $PATH
6686: do
6687: IFS=$as_save_IFS
6688: test -z "$as_dir" && as_dir=.
6689: for ac_exec_ext in '' $ac_executable_extensions; do
6690: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6691: ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6692: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6693: break 2
6694: fi
6695: done
6696: done
6697: IFS=$as_save_IFS
6698:
6699: fi
6700: fi
6701: ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6702: if test -n "$ac_ct_DLLTOOL"; then
6703: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6704: $as_echo "$ac_ct_DLLTOOL" >&6; }
6705: else
6706: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6707: $as_echo "no" >&6; }
6708: fi
6709:
6710: if test "x$ac_ct_DLLTOOL" = x; then
6711: DLLTOOL="false"
6712: else
6713: case $cross_compiling:$ac_tool_warned in
6714: yes:)
6715: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6716: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6717: ac_tool_warned=yes ;;
6718: esac
6719: DLLTOOL=$ac_ct_DLLTOOL
6720: fi
6721: else
6722: DLLTOOL="$ac_cv_prog_DLLTOOL"
6723: fi
6724:
6725: test -z "$DLLTOOL" && DLLTOOL=dlltool
6726:
6727:
6728:
6729:
6730:
6731:
6732:
6733:
6734:
6735:
6736: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6737: $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6738: if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6739: $as_echo_n "(cached) " >&6
6740: else
6741: lt_cv_sharedlib_from_linklib_cmd='unknown'
6742:
6743: case $host_os in
6744: cygwin* | mingw* | pw32* | cegcc*)
6745: # two different shell functions defined in ltmain.sh
6746: # decide which to use based on capabilities of $DLLTOOL
6747: case `$DLLTOOL --help 2>&1` in
6748: *--identify-strict*)
6749: lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6750: ;;
6751: *)
6752: lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6753: ;;
6754: esac
6755: ;;
6756: *)
6757: # fallback: assume linklib IS sharedlib
6758: lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6759: ;;
6760: esac
6761:
6762: fi
6763: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6764: $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6765: sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6766: test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6767:
6768:
6769:
6770:
6771:
6772:
6773:
6774: if test -n "$ac_tool_prefix"; then
6775: for ac_prog in ar
6776: do
6777: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6778: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6779: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6780: $as_echo_n "checking for $ac_word... " >&6; }
6781: if ${ac_cv_prog_AR+:} false; then :
6782: $as_echo_n "(cached) " >&6
6783: else
6784: if test -n "$AR"; then
6785: ac_cv_prog_AR="$AR" # Let the user override the test.
6786: else
6787: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6788: for as_dir in $PATH
6789: do
6790: IFS=$as_save_IFS
6791: test -z "$as_dir" && as_dir=.
6792: for ac_exec_ext in '' $ac_executable_extensions; do
6793: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6794: ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6795: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6796: break 2
6797: fi
6798: done
6799: done
6800: IFS=$as_save_IFS
6801:
6802: fi
6803: fi
6804: AR=$ac_cv_prog_AR
6805: if test -n "$AR"; then
6806: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6807: $as_echo "$AR" >&6; }
6808: else
6809: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6810: $as_echo "no" >&6; }
6811: fi
6812:
6813:
6814: test -n "$AR" && break
6815: done
6816: fi
6817: if test -z "$AR"; then
6818: ac_ct_AR=$AR
6819: for ac_prog in ar
6820: do
6821: # Extract the first word of "$ac_prog", so it can be a program name with args.
6822: set dummy $ac_prog; ac_word=$2
6823: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6824: $as_echo_n "checking for $ac_word... " >&6; }
6825: if ${ac_cv_prog_ac_ct_AR+:} false; then :
6826: $as_echo_n "(cached) " >&6
6827: else
6828: if test -n "$ac_ct_AR"; then
6829: ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6830: else
6831: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6832: for as_dir in $PATH
6833: do
6834: IFS=$as_save_IFS
6835: test -z "$as_dir" && as_dir=.
6836: for ac_exec_ext in '' $ac_executable_extensions; do
6837: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6838: ac_cv_prog_ac_ct_AR="$ac_prog"
6839: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6840: break 2
6841: fi
6842: done
6843: done
6844: IFS=$as_save_IFS
6845:
6846: fi
6847: fi
6848: ac_ct_AR=$ac_cv_prog_ac_ct_AR
6849: if test -n "$ac_ct_AR"; then
6850: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6851: $as_echo "$ac_ct_AR" >&6; }
6852: else
6853: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6854: $as_echo "no" >&6; }
6855: fi
6856:
6857:
6858: test -n "$ac_ct_AR" && break
6859: done
6860:
6861: if test "x$ac_ct_AR" = x; then
6862: AR="false"
6863: else
6864: case $cross_compiling:$ac_tool_warned in
6865: yes:)
6866: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6867: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6868: ac_tool_warned=yes ;;
6869: esac
6870: AR=$ac_ct_AR
6871: fi
6872: fi
6873:
6874: : ${AR=ar}
6875: : ${AR_FLAGS=cru}
6876:
6877:
6878:
6879:
6880:
6881:
6882:
6883:
6884:
6885:
6886:
6887: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6888: $as_echo_n "checking for archiver @FILE support... " >&6; }
6889: if ${lt_cv_ar_at_file+:} false; then :
6890: $as_echo_n "(cached) " >&6
6891: else
6892: lt_cv_ar_at_file=no
6893: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6894: /* end confdefs.h. */
6895:
6896: int
6897: main ()
6898: {
6899:
6900: ;
6901: return 0;
6902: }
6903: _ACEOF
6904: if ac_fn_c_try_compile "$LINENO"; then :
6905: echo conftest.$ac_objext > conftest.lst
6906: lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6907: { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6908: (eval $lt_ar_try) 2>&5
6909: ac_status=$?
6910: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6911: test $ac_status = 0; }
6912: if test "$ac_status" -eq 0; then
6913: # Ensure the archiver fails upon bogus file names.
6914: rm -f conftest.$ac_objext libconftest.a
6915: { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6916: (eval $lt_ar_try) 2>&5
6917: ac_status=$?
6918: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6919: test $ac_status = 0; }
6920: if test "$ac_status" -ne 0; then
6921: lt_cv_ar_at_file=@
6922: fi
6923: fi
6924: rm -f conftest.* libconftest.a
6925:
6926: fi
6927: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6928:
6929: fi
6930: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6931: $as_echo "$lt_cv_ar_at_file" >&6; }
6932:
6933: if test "x$lt_cv_ar_at_file" = xno; then
6934: archiver_list_spec=
6935: else
6936: archiver_list_spec=$lt_cv_ar_at_file
6937: fi
6938:
6939:
6940:
6941:
6942:
6943:
6944:
6945: if test -n "$ac_tool_prefix"; then
6946: # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6947: set dummy ${ac_tool_prefix}strip; ac_word=$2
6948: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6949: $as_echo_n "checking for $ac_word... " >&6; }
6950: if ${ac_cv_prog_STRIP+:} false; then :
6951: $as_echo_n "(cached) " >&6
6952: else
6953: if test -n "$STRIP"; then
6954: ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6955: else
6956: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6957: for as_dir in $PATH
6958: do
6959: IFS=$as_save_IFS
6960: test -z "$as_dir" && as_dir=.
6961: for ac_exec_ext in '' $ac_executable_extensions; do
6962: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6963: ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6964: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6965: break 2
6966: fi
6967: done
6968: done
6969: IFS=$as_save_IFS
6970:
6971: fi
6972: fi
6973: STRIP=$ac_cv_prog_STRIP
6974: if test -n "$STRIP"; then
6975: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6976: $as_echo "$STRIP" >&6; }
6977: else
6978: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6979: $as_echo "no" >&6; }
6980: fi
6981:
6982:
6983: fi
6984: if test -z "$ac_cv_prog_STRIP"; then
6985: ac_ct_STRIP=$STRIP
6986: # Extract the first word of "strip", so it can be a program name with args.
6987: set dummy strip; ac_word=$2
6988: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6989: $as_echo_n "checking for $ac_word... " >&6; }
6990: if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6991: $as_echo_n "(cached) " >&6
6992: else
6993: if test -n "$ac_ct_STRIP"; then
6994: ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6995: else
6996: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6997: for as_dir in $PATH
6998: do
6999: IFS=$as_save_IFS
7000: test -z "$as_dir" && as_dir=.
7001: for ac_exec_ext in '' $ac_executable_extensions; do
7002: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7003: ac_cv_prog_ac_ct_STRIP="strip"
7004: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7005: break 2
7006: fi
7007: done
7008: done
7009: IFS=$as_save_IFS
7010:
7011: fi
7012: fi
7013: ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7014: if test -n "$ac_ct_STRIP"; then
7015: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7016: $as_echo "$ac_ct_STRIP" >&6; }
7017: else
7018: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7019: $as_echo "no" >&6; }
7020: fi
7021:
7022: if test "x$ac_ct_STRIP" = x; then
7023: STRIP=":"
7024: else
7025: case $cross_compiling:$ac_tool_warned in
7026: yes:)
7027: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7028: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7029: ac_tool_warned=yes ;;
7030: esac
7031: STRIP=$ac_ct_STRIP
7032: fi
7033: else
7034: STRIP="$ac_cv_prog_STRIP"
7035: fi
7036:
7037: test -z "$STRIP" && STRIP=:
7038:
7039:
7040:
7041:
7042:
7043:
7044: if test -n "$ac_tool_prefix"; then
7045: # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7046: set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7047: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7048: $as_echo_n "checking for $ac_word... " >&6; }
7049: if ${ac_cv_prog_RANLIB+:} false; then :
7050: $as_echo_n "(cached) " >&6
7051: else
7052: if test -n "$RANLIB"; then
7053: ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7054: else
7055: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7056: for as_dir in $PATH
7057: do
7058: IFS=$as_save_IFS
7059: test -z "$as_dir" && as_dir=.
7060: for ac_exec_ext in '' $ac_executable_extensions; do
7061: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7062: ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7063: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7064: break 2
7065: fi
7066: done
7067: done
7068: IFS=$as_save_IFS
7069:
7070: fi
7071: fi
7072: RANLIB=$ac_cv_prog_RANLIB
7073: if test -n "$RANLIB"; then
7074: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7075: $as_echo "$RANLIB" >&6; }
7076: else
7077: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7078: $as_echo "no" >&6; }
7079: fi
7080:
7081:
7082: fi
7083: if test -z "$ac_cv_prog_RANLIB"; then
7084: ac_ct_RANLIB=$RANLIB
7085: # Extract the first word of "ranlib", so it can be a program name with args.
7086: set dummy ranlib; ac_word=$2
7087: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7088: $as_echo_n "checking for $ac_word... " >&6; }
7089: if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7090: $as_echo_n "(cached) " >&6
7091: else
7092: if test -n "$ac_ct_RANLIB"; then
7093: ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7094: else
7095: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7096: for as_dir in $PATH
7097: do
7098: IFS=$as_save_IFS
7099: test -z "$as_dir" && as_dir=.
7100: for ac_exec_ext in '' $ac_executable_extensions; do
7101: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7102: ac_cv_prog_ac_ct_RANLIB="ranlib"
7103: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7104: break 2
7105: fi
7106: done
7107: done
7108: IFS=$as_save_IFS
7109:
7110: fi
7111: fi
7112: ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7113: if test -n "$ac_ct_RANLIB"; then
7114: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7115: $as_echo "$ac_ct_RANLIB" >&6; }
7116: else
7117: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7118: $as_echo "no" >&6; }
7119: fi
7120:
7121: if test "x$ac_ct_RANLIB" = x; then
7122: RANLIB=":"
7123: else
7124: case $cross_compiling:$ac_tool_warned in
7125: yes:)
7126: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7127: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7128: ac_tool_warned=yes ;;
7129: esac
7130: RANLIB=$ac_ct_RANLIB
7131: fi
7132: else
7133: RANLIB="$ac_cv_prog_RANLIB"
7134: fi
7135:
7136: test -z "$RANLIB" && RANLIB=:
7137:
7138:
7139:
7140:
7141:
7142:
7143: # Determine commands to create old-style static archives.
7144: old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7145: old_postinstall_cmds='chmod 644 $oldlib'
7146: old_postuninstall_cmds=
7147:
7148: if test -n "$RANLIB"; then
7149: case $host_os in
7150: openbsd*)
7151: old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
7152: ;;
7153: *)
7154: old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7155: ;;
7156: esac
7157: old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7158: fi
7159:
7160: case $host_os in
7161: darwin*)
7162: lock_old_archive_extraction=yes ;;
7163: *)
7164: lock_old_archive_extraction=no ;;
7165: esac
7166:
7167:
7168:
7169:
7170:
7171:
7172:
7173:
7174:
7175:
7176:
7177:
7178:
7179:
7180:
7181:
7182:
7183:
7184:
7185:
7186:
7187:
7188:
7189:
7190:
7191:
7192:
7193:
7194:
7195:
7196:
7197:
7198:
7199:
7200:
7201:
7202:
7203:
7204:
7205: # If no C compiler was specified, use CC.
7206: LTCC=${LTCC-"$CC"}
7207:
7208: # If no C compiler flags were specified, use CFLAGS.
7209: LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7210:
7211: # Allow CC to be a program name with arguments.
7212: compiler=$CC
7213:
7214:
7215: # Check for command to grab the raw symbol name followed by C symbol from nm.
7216: { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7217: $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7218: if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7219: $as_echo_n "(cached) " >&6
7220: else
7221:
7222: # These are sane defaults that work on at least a few old systems.
7223: # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7224:
7225: # Character class describing NM global symbol codes.
7226: symcode='[BCDEGRST]'
7227:
7228: # Regexp to match symbols that can be accessed directly from C.
7229: sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7230:
7231: # Define system-specific variables.
7232: case $host_os in
7233: aix*)
7234: symcode='[BCDT]'
7235: ;;
7236: cygwin* | mingw* | pw32* | cegcc*)
7237: symcode='[ABCDGISTW]'
7238: ;;
7239: hpux*)
7240: if test "$host_cpu" = ia64; then
7241: symcode='[ABCDEGRST]'
7242: fi
7243: ;;
7244: irix* | nonstopux*)
7245: symcode='[BCDEGRST]'
7246: ;;
7247: osf*)
7248: symcode='[BCDEGQRST]'
7249: ;;
7250: solaris*)
7251: symcode='[BDRT]'
7252: ;;
7253: sco3.2v5*)
7254: symcode='[DT]'
7255: ;;
7256: sysv4.2uw2*)
7257: symcode='[DT]'
7258: ;;
7259: sysv5* | sco5v6* | unixware* | OpenUNIX*)
7260: symcode='[ABDT]'
7261: ;;
7262: sysv4)
7263: symcode='[DFNSTU]'
7264: ;;
7265: esac
7266:
7267: # If we're using GNU nm, then use its standard symbol codes.
7268: case `$NM -V 2>&1` in
7269: *GNU* | *'with BFD'*)
7270: symcode='[ABCDGIRSTW]' ;;
7271: esac
7272:
7273: # Transform an extracted symbol line into a proper C declaration.
7274: # Some systems (esp. on ia64) link data and code symbols differently,
7275: # so use this general approach.
7276: lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7277:
7278: # Transform an extracted symbol line into symbol name and symbol address
7279: lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7280: lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
7281:
7282: # Handle CRLF in mingw tool chain
7283: opt_cr=
7284: case $build_os in
7285: mingw*)
7286: opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7287: ;;
7288: esac
7289:
7290: # Try without a prefix underscore, then with it.
7291: for ac_symprfx in "" "_"; do
7292:
7293: # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7294: symxfrm="\\1 $ac_symprfx\\2 \\2"
7295:
7296: # Write the raw and C identifiers.
7297: if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7298: # Fake it for dumpbin and say T for any non-static function
7299: # and D for any global variable.
7300: # Also find C++ and __fastcall symbols from MSVC++,
7301: # which start with @ or ?.
7302: lt_cv_sys_global_symbol_pipe="$AWK '"\
7303: " {last_section=section; section=\$ 3};"\
7304: " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7305: " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7306: " \$ 0!~/External *\|/{next};"\
7307: " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7308: " {if(hide[section]) next};"\
7309: " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7310: " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7311: " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7312: " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7313: " ' prfx=^$ac_symprfx"
7314: else
7315: lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7316: fi
7317: lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7318:
7319: # Check to see that the pipe works correctly.
7320: pipe_works=no
7321:
7322: rm -f conftest*
7323: cat > conftest.$ac_ext <<_LT_EOF
7324: #ifdef __cplusplus
7325: extern "C" {
7326: #endif
7327: char nm_test_var;
7328: void nm_test_func(void);
7329: void nm_test_func(void){}
7330: #ifdef __cplusplus
7331: }
7332: #endif
7333: int main(){nm_test_var='a';nm_test_func();return(0);}
7334: _LT_EOF
7335:
7336: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7337: (eval $ac_compile) 2>&5
7338: ac_status=$?
7339: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7340: test $ac_status = 0; }; then
7341: # Now try to grab the symbols.
7342: nlist=conftest.nm
7343: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7344: (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7345: ac_status=$?
7346: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7347: test $ac_status = 0; } && test -s "$nlist"; then
7348: # Try sorting and uniquifying the output.
7349: if sort "$nlist" | uniq > "$nlist"T; then
7350: mv -f "$nlist"T "$nlist"
7351: else
7352: rm -f "$nlist"T
7353: fi
7354:
7355: # Make sure that we snagged all the symbols we need.
7356: if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7357: if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7358: cat <<_LT_EOF > conftest.$ac_ext
7359: /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7360: #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
7361: /* DATA imports from DLLs on WIN32 con't be const, because runtime
7362: relocations are performed -- see ld's documentation on pseudo-relocs. */
7363: # define LT_DLSYM_CONST
7364: #elif defined(__osf__)
7365: /* This system does not cope well with relocations in const data. */
7366: # define LT_DLSYM_CONST
7367: #else
7368: # define LT_DLSYM_CONST const
7369: #endif
7370:
7371: #ifdef __cplusplus
7372: extern "C" {
7373: #endif
7374:
7375: _LT_EOF
7376: # Now generate the symbol file.
7377: eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7378:
7379: cat <<_LT_EOF >> conftest.$ac_ext
7380:
7381: /* The mapping between symbol names and symbols. */
7382: LT_DLSYM_CONST struct {
7383: const char *name;
7384: void *address;
7385: }
7386: lt__PROGRAM__LTX_preloaded_symbols[] =
7387: {
7388: { "@PROGRAM@", (void *) 0 },
7389: _LT_EOF
7390: $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7391: cat <<\_LT_EOF >> conftest.$ac_ext
7392: {0, (void *) 0}
7393: };
7394:
7395: /* This works around a problem in FreeBSD linker */
7396: #ifdef FREEBSD_WORKAROUND
7397: static const void *lt_preloaded_setup() {
7398: return lt__PROGRAM__LTX_preloaded_symbols;
7399: }
7400: #endif
7401:
7402: #ifdef __cplusplus
7403: }
7404: #endif
7405: _LT_EOF
7406: # Now try linking the two files.
7407: mv conftest.$ac_objext conftstm.$ac_objext
7408: lt_globsym_save_LIBS=$LIBS
7409: lt_globsym_save_CFLAGS=$CFLAGS
7410: LIBS="conftstm.$ac_objext"
7411: CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7412: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7413: (eval $ac_link) 2>&5
7414: ac_status=$?
7415: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7416: test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7417: pipe_works=yes
7418: fi
7419: LIBS=$lt_globsym_save_LIBS
7420: CFLAGS=$lt_globsym_save_CFLAGS
7421: else
7422: echo "cannot find nm_test_func in $nlist" >&5
7423: fi
7424: else
7425: echo "cannot find nm_test_var in $nlist" >&5
7426: fi
7427: else
7428: echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7429: fi
7430: else
7431: echo "$progname: failed program was:" >&5
7432: cat conftest.$ac_ext >&5
7433: fi
7434: rm -rf conftest* conftst*
7435:
7436: # Do not use the global_symbol_pipe unless it works.
7437: if test "$pipe_works" = yes; then
7438: break
7439: else
7440: lt_cv_sys_global_symbol_pipe=
7441: fi
7442: done
7443:
7444: fi
7445:
7446: if test -z "$lt_cv_sys_global_symbol_pipe"; then
7447: lt_cv_sys_global_symbol_to_cdecl=
7448: fi
7449: if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7450: { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7451: $as_echo "failed" >&6; }
7452: else
7453: { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7454: $as_echo "ok" >&6; }
7455: fi
7456:
7457: # Response file support.
7458: if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7459: nm_file_list_spec='@'
7460: elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7461: nm_file_list_spec='@'
7462: fi
7463:
7464:
7465:
7466:
7467:
7468:
7469:
7470:
7471:
7472:
7473:
7474:
7475:
7476:
7477:
7478:
7479:
7480:
7481:
7482:
7483:
7484:
7485:
7486:
7487:
7488:
7489:
7490: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7491: $as_echo_n "checking for sysroot... " >&6; }
7492:
7493: # Check whether --with-sysroot was given.
7494: if test "${with_sysroot+set}" = set; then :
7495: withval=$with_sysroot;
7496: else
7497: with_sysroot=no
7498: fi
7499:
7500:
7501: lt_sysroot=
7502: case ${with_sysroot} in #(
7503: yes)
7504: if test "$GCC" = yes; then
7505: lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7506: fi
7507: ;; #(
7508: /*)
7509: lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7510: ;; #(
7511: no|'')
7512: ;; #(
7513: *)
7514: { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
7515: $as_echo "${with_sysroot}" >&6; }
7516: as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7517: ;;
7518: esac
7519:
7520: { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7521: $as_echo "${lt_sysroot:-no}" >&6; }
7522:
7523:
7524:
7525:
7526:
7527: # Check whether --enable-libtool-lock was given.
7528: if test "${enable_libtool_lock+set}" = set; then :
7529: enableval=$enable_libtool_lock;
7530: fi
7531:
7532: test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7533:
7534: # Some flags need to be propagated to the compiler or linker for good
7535: # libtool support.
7536: case $host in
7537: ia64-*-hpux*)
7538: # Find out which ABI we are using.
7539: echo 'int i;' > conftest.$ac_ext
7540: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7541: (eval $ac_compile) 2>&5
7542: ac_status=$?
7543: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7544: test $ac_status = 0; }; then
7545: case `/usr/bin/file conftest.$ac_objext` in
7546: *ELF-32*)
7547: HPUX_IA64_MODE="32"
7548: ;;
7549: *ELF-64*)
7550: HPUX_IA64_MODE="64"
7551: ;;
7552: esac
7553: fi
7554: rm -rf conftest*
7555: ;;
7556: *-*-irix6*)
7557: # Find out which ABI we are using.
7558: echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7559: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7560: (eval $ac_compile) 2>&5
7561: ac_status=$?
7562: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7563: test $ac_status = 0; }; then
7564: if test "$lt_cv_prog_gnu_ld" = yes; then
7565: case `/usr/bin/file conftest.$ac_objext` in
7566: *32-bit*)
7567: LD="${LD-ld} -melf32bsmip"
7568: ;;
7569: *N32*)
7570: LD="${LD-ld} -melf32bmipn32"
7571: ;;
7572: *64-bit*)
7573: LD="${LD-ld} -melf64bmip"
7574: ;;
7575: esac
7576: else
7577: case `/usr/bin/file conftest.$ac_objext` in
7578: *32-bit*)
7579: LD="${LD-ld} -32"
7580: ;;
7581: *N32*)
7582: LD="${LD-ld} -n32"
7583: ;;
7584: *64-bit*)
7585: LD="${LD-ld} -64"
7586: ;;
7587: esac
7588: fi
7589: fi
7590: rm -rf conftest*
7591: ;;
7592:
1.1.1.2 ! misho 7593: x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
1.1 misho 7594: s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7595: # Find out which ABI we are using.
7596: echo 'int i;' > conftest.$ac_ext
7597: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7598: (eval $ac_compile) 2>&5
7599: ac_status=$?
7600: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7601: test $ac_status = 0; }; then
7602: case `/usr/bin/file conftest.o` in
7603: *32-bit*)
7604: case $host in
7605: x86_64-*kfreebsd*-gnu)
7606: LD="${LD-ld} -m elf_i386_fbsd"
7607: ;;
7608: x86_64-*linux*)
7609: case `/usr/bin/file conftest.o` in
7610: *x86-64*)
7611: LD="${LD-ld} -m elf32_x86_64"
7612: ;;
7613: *)
7614: LD="${LD-ld} -m elf_i386"
7615: ;;
7616: esac
7617: ;;
1.1.1.2 ! misho 7618: powerpc64le-*)
! 7619: LD="${LD-ld} -m elf32lppclinux"
! 7620: ;;
! 7621: powerpc64-*)
1.1 misho 7622: LD="${LD-ld} -m elf32ppclinux"
7623: ;;
7624: s390x-*linux*)
7625: LD="${LD-ld} -m elf_s390"
7626: ;;
7627: sparc64-*linux*)
7628: LD="${LD-ld} -m elf32_sparc"
7629: ;;
7630: esac
7631: ;;
7632: *64-bit*)
7633: case $host in
7634: x86_64-*kfreebsd*-gnu)
7635: LD="${LD-ld} -m elf_x86_64_fbsd"
7636: ;;
7637: x86_64-*linux*)
7638: LD="${LD-ld} -m elf_x86_64"
7639: ;;
1.1.1.2 ! misho 7640: powerpcle-*)
! 7641: LD="${LD-ld} -m elf64lppc"
! 7642: ;;
! 7643: powerpc-*)
1.1 misho 7644: LD="${LD-ld} -m elf64ppc"
7645: ;;
7646: s390*-*linux*|s390*-*tpf*)
7647: LD="${LD-ld} -m elf64_s390"
7648: ;;
7649: sparc*-*linux*)
7650: LD="${LD-ld} -m elf64_sparc"
7651: ;;
7652: esac
7653: ;;
7654: esac
7655: fi
7656: rm -rf conftest*
7657: ;;
7658:
7659: *-*-sco3.2v5*)
7660: # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7661: SAVE_CFLAGS="$CFLAGS"
7662: CFLAGS="$CFLAGS -belf"
7663: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7664: $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7665: if ${lt_cv_cc_needs_belf+:} false; then :
7666: $as_echo_n "(cached) " >&6
7667: else
7668: ac_ext=c
7669: ac_cpp='$CPP $CPPFLAGS'
7670: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7671: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7672: ac_compiler_gnu=$ac_cv_c_compiler_gnu
7673:
7674: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7675: /* end confdefs.h. */
7676:
7677: int
7678: main ()
7679: {
7680:
7681: ;
7682: return 0;
7683: }
7684: _ACEOF
7685: if ac_fn_c_try_link "$LINENO"; then :
7686: lt_cv_cc_needs_belf=yes
7687: else
7688: lt_cv_cc_needs_belf=no
7689: fi
7690: rm -f core conftest.err conftest.$ac_objext \
7691: conftest$ac_exeext conftest.$ac_ext
7692: ac_ext=c
7693: ac_cpp='$CPP $CPPFLAGS'
7694: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7695: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7696: ac_compiler_gnu=$ac_cv_c_compiler_gnu
7697:
7698: fi
7699: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7700: $as_echo "$lt_cv_cc_needs_belf" >&6; }
7701: if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7702: # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7703: CFLAGS="$SAVE_CFLAGS"
7704: fi
7705: ;;
7706: *-*solaris*)
7707: # Find out which ABI we are using.
7708: echo 'int i;' > conftest.$ac_ext
7709: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7710: (eval $ac_compile) 2>&5
7711: ac_status=$?
7712: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7713: test $ac_status = 0; }; then
7714: case `/usr/bin/file conftest.o` in
7715: *64-bit*)
7716: case $lt_cv_prog_gnu_ld in
7717: yes*)
7718: case $host in
7719: i?86-*-solaris*)
7720: LD="${LD-ld} -m elf_x86_64"
7721: ;;
7722: sparc*-*-solaris*)
7723: LD="${LD-ld} -m elf64_sparc"
7724: ;;
7725: esac
7726: # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7727: if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7728: LD="${LD-ld}_sol2"
7729: fi
7730: ;;
7731: *)
7732: if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7733: LD="${LD-ld} -64"
7734: fi
7735: ;;
7736: esac
7737: ;;
7738: esac
7739: fi
7740: rm -rf conftest*
7741: ;;
7742: esac
7743:
7744: need_locks="$enable_libtool_lock"
7745:
7746: if test -n "$ac_tool_prefix"; then
7747: # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7748: set dummy ${ac_tool_prefix}mt; ac_word=$2
7749: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7750: $as_echo_n "checking for $ac_word... " >&6; }
7751: if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7752: $as_echo_n "(cached) " >&6
7753: else
7754: if test -n "$MANIFEST_TOOL"; then
7755: ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7756: else
7757: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7758: for as_dir in $PATH
7759: do
7760: IFS=$as_save_IFS
7761: test -z "$as_dir" && as_dir=.
7762: for ac_exec_ext in '' $ac_executable_extensions; do
7763: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7764: ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7765: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7766: break 2
7767: fi
7768: done
7769: done
7770: IFS=$as_save_IFS
7771:
7772: fi
7773: fi
7774: MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7775: if test -n "$MANIFEST_TOOL"; then
7776: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7777: $as_echo "$MANIFEST_TOOL" >&6; }
7778: else
7779: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7780: $as_echo "no" >&6; }
7781: fi
7782:
7783:
7784: fi
7785: if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7786: ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7787: # Extract the first word of "mt", so it can be a program name with args.
7788: set dummy mt; ac_word=$2
7789: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7790: $as_echo_n "checking for $ac_word... " >&6; }
7791: if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7792: $as_echo_n "(cached) " >&6
7793: else
7794: if test -n "$ac_ct_MANIFEST_TOOL"; then
7795: ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7796: else
7797: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7798: for as_dir in $PATH
7799: do
7800: IFS=$as_save_IFS
7801: test -z "$as_dir" && as_dir=.
7802: for ac_exec_ext in '' $ac_executable_extensions; do
7803: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7804: ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7805: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7806: break 2
7807: fi
7808: done
7809: done
7810: IFS=$as_save_IFS
7811:
7812: fi
7813: fi
7814: ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7815: if test -n "$ac_ct_MANIFEST_TOOL"; then
7816: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7817: $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7818: else
7819: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7820: $as_echo "no" >&6; }
7821: fi
7822:
7823: if test "x$ac_ct_MANIFEST_TOOL" = x; then
7824: MANIFEST_TOOL=":"
7825: else
7826: case $cross_compiling:$ac_tool_warned in
7827: yes:)
7828: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7829: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7830: ac_tool_warned=yes ;;
7831: esac
7832: MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7833: fi
7834: else
7835: MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7836: fi
7837:
7838: test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7839: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7840: $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7841: if ${lt_cv_path_mainfest_tool+:} false; then :
7842: $as_echo_n "(cached) " >&6
7843: else
7844: lt_cv_path_mainfest_tool=no
7845: echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7846: $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7847: cat conftest.err >&5
7848: if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7849: lt_cv_path_mainfest_tool=yes
7850: fi
7851: rm -f conftest*
7852: fi
7853: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7854: $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7855: if test "x$lt_cv_path_mainfest_tool" != xyes; then
7856: MANIFEST_TOOL=:
7857: fi
7858:
7859:
7860:
7861:
7862:
7863:
7864: case $host_os in
7865: rhapsody* | darwin*)
7866: if test -n "$ac_tool_prefix"; then
7867: # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7868: set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7869: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7870: $as_echo_n "checking for $ac_word... " >&6; }
7871: if ${ac_cv_prog_DSYMUTIL+:} false; then :
7872: $as_echo_n "(cached) " >&6
7873: else
7874: if test -n "$DSYMUTIL"; then
7875: ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7876: else
7877: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7878: for as_dir in $PATH
7879: do
7880: IFS=$as_save_IFS
7881: test -z "$as_dir" && as_dir=.
7882: for ac_exec_ext in '' $ac_executable_extensions; do
7883: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7884: ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7885: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7886: break 2
7887: fi
7888: done
7889: done
7890: IFS=$as_save_IFS
7891:
7892: fi
7893: fi
7894: DSYMUTIL=$ac_cv_prog_DSYMUTIL
7895: if test -n "$DSYMUTIL"; then
7896: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7897: $as_echo "$DSYMUTIL" >&6; }
7898: else
7899: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7900: $as_echo "no" >&6; }
7901: fi
7902:
7903:
7904: fi
7905: if test -z "$ac_cv_prog_DSYMUTIL"; then
7906: ac_ct_DSYMUTIL=$DSYMUTIL
7907: # Extract the first word of "dsymutil", so it can be a program name with args.
7908: set dummy dsymutil; ac_word=$2
7909: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7910: $as_echo_n "checking for $ac_word... " >&6; }
7911: if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7912: $as_echo_n "(cached) " >&6
7913: else
7914: if test -n "$ac_ct_DSYMUTIL"; then
7915: ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7916: else
7917: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7918: for as_dir in $PATH
7919: do
7920: IFS=$as_save_IFS
7921: test -z "$as_dir" && as_dir=.
7922: for ac_exec_ext in '' $ac_executable_extensions; do
7923: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7924: ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7925: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7926: break 2
7927: fi
7928: done
7929: done
7930: IFS=$as_save_IFS
7931:
7932: fi
7933: fi
7934: ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7935: if test -n "$ac_ct_DSYMUTIL"; then
7936: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7937: $as_echo "$ac_ct_DSYMUTIL" >&6; }
7938: else
7939: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7940: $as_echo "no" >&6; }
7941: fi
7942:
7943: if test "x$ac_ct_DSYMUTIL" = x; then
7944: DSYMUTIL=":"
7945: else
7946: case $cross_compiling:$ac_tool_warned in
7947: yes:)
7948: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7949: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7950: ac_tool_warned=yes ;;
7951: esac
7952: DSYMUTIL=$ac_ct_DSYMUTIL
7953: fi
7954: else
7955: DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7956: fi
7957:
7958: if test -n "$ac_tool_prefix"; then
7959: # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7960: set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7961: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7962: $as_echo_n "checking for $ac_word... " >&6; }
7963: if ${ac_cv_prog_NMEDIT+:} false; then :
7964: $as_echo_n "(cached) " >&6
7965: else
7966: if test -n "$NMEDIT"; then
7967: ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7968: else
7969: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7970: for as_dir in $PATH
7971: do
7972: IFS=$as_save_IFS
7973: test -z "$as_dir" && as_dir=.
7974: for ac_exec_ext in '' $ac_executable_extensions; do
7975: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7976: ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7977: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7978: break 2
7979: fi
7980: done
7981: done
7982: IFS=$as_save_IFS
7983:
7984: fi
7985: fi
7986: NMEDIT=$ac_cv_prog_NMEDIT
7987: if test -n "$NMEDIT"; then
7988: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7989: $as_echo "$NMEDIT" >&6; }
7990: else
7991: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7992: $as_echo "no" >&6; }
7993: fi
7994:
7995:
7996: fi
7997: if test -z "$ac_cv_prog_NMEDIT"; then
7998: ac_ct_NMEDIT=$NMEDIT
7999: # Extract the first word of "nmedit", so it can be a program name with args.
8000: set dummy nmedit; ac_word=$2
8001: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8002: $as_echo_n "checking for $ac_word... " >&6; }
8003: if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
8004: $as_echo_n "(cached) " >&6
8005: else
8006: if test -n "$ac_ct_NMEDIT"; then
8007: ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8008: else
8009: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8010: for as_dir in $PATH
8011: do
8012: IFS=$as_save_IFS
8013: test -z "$as_dir" && as_dir=.
8014: for ac_exec_ext in '' $ac_executable_extensions; do
8015: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8016: ac_cv_prog_ac_ct_NMEDIT="nmedit"
8017: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8018: break 2
8019: fi
8020: done
8021: done
8022: IFS=$as_save_IFS
8023:
8024: fi
8025: fi
8026: ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8027: if test -n "$ac_ct_NMEDIT"; then
8028: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8029: $as_echo "$ac_ct_NMEDIT" >&6; }
8030: else
8031: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8032: $as_echo "no" >&6; }
8033: fi
8034:
8035: if test "x$ac_ct_NMEDIT" = x; then
8036: NMEDIT=":"
8037: else
8038: case $cross_compiling:$ac_tool_warned in
8039: yes:)
8040: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8041: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8042: ac_tool_warned=yes ;;
8043: esac
8044: NMEDIT=$ac_ct_NMEDIT
8045: fi
8046: else
8047: NMEDIT="$ac_cv_prog_NMEDIT"
8048: fi
8049:
8050: if test -n "$ac_tool_prefix"; then
8051: # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8052: set dummy ${ac_tool_prefix}lipo; ac_word=$2
8053: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8054: $as_echo_n "checking for $ac_word... " >&6; }
8055: if ${ac_cv_prog_LIPO+:} false; then :
8056: $as_echo_n "(cached) " >&6
8057: else
8058: if test -n "$LIPO"; then
8059: ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8060: else
8061: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8062: for as_dir in $PATH
8063: do
8064: IFS=$as_save_IFS
8065: test -z "$as_dir" && as_dir=.
8066: for ac_exec_ext in '' $ac_executable_extensions; do
8067: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8068: ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8069: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8070: break 2
8071: fi
8072: done
8073: done
8074: IFS=$as_save_IFS
8075:
8076: fi
8077: fi
8078: LIPO=$ac_cv_prog_LIPO
8079: if test -n "$LIPO"; then
8080: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8081: $as_echo "$LIPO" >&6; }
8082: else
8083: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8084: $as_echo "no" >&6; }
8085: fi
8086:
8087:
8088: fi
8089: if test -z "$ac_cv_prog_LIPO"; then
8090: ac_ct_LIPO=$LIPO
8091: # Extract the first word of "lipo", so it can be a program name with args.
8092: set dummy lipo; ac_word=$2
8093: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8094: $as_echo_n "checking for $ac_word... " >&6; }
8095: if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8096: $as_echo_n "(cached) " >&6
8097: else
8098: if test -n "$ac_ct_LIPO"; then
8099: ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8100: else
8101: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8102: for as_dir in $PATH
8103: do
8104: IFS=$as_save_IFS
8105: test -z "$as_dir" && as_dir=.
8106: for ac_exec_ext in '' $ac_executable_extensions; do
8107: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8108: ac_cv_prog_ac_ct_LIPO="lipo"
8109: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8110: break 2
8111: fi
8112: done
8113: done
8114: IFS=$as_save_IFS
8115:
8116: fi
8117: fi
8118: ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8119: if test -n "$ac_ct_LIPO"; then
8120: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8121: $as_echo "$ac_ct_LIPO" >&6; }
8122: else
8123: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8124: $as_echo "no" >&6; }
8125: fi
8126:
8127: if test "x$ac_ct_LIPO" = x; then
8128: LIPO=":"
8129: else
8130: case $cross_compiling:$ac_tool_warned in
8131: yes:)
8132: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8133: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8134: ac_tool_warned=yes ;;
8135: esac
8136: LIPO=$ac_ct_LIPO
8137: fi
8138: else
8139: LIPO="$ac_cv_prog_LIPO"
8140: fi
8141:
8142: if test -n "$ac_tool_prefix"; then
8143: # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8144: set dummy ${ac_tool_prefix}otool; ac_word=$2
8145: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8146: $as_echo_n "checking for $ac_word... " >&6; }
8147: if ${ac_cv_prog_OTOOL+:} false; then :
8148: $as_echo_n "(cached) " >&6
8149: else
8150: if test -n "$OTOOL"; then
8151: ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8152: else
8153: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8154: for as_dir in $PATH
8155: do
8156: IFS=$as_save_IFS
8157: test -z "$as_dir" && as_dir=.
8158: for ac_exec_ext in '' $ac_executable_extensions; do
8159: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8160: ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8161: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8162: break 2
8163: fi
8164: done
8165: done
8166: IFS=$as_save_IFS
8167:
8168: fi
8169: fi
8170: OTOOL=$ac_cv_prog_OTOOL
8171: if test -n "$OTOOL"; then
8172: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8173: $as_echo "$OTOOL" >&6; }
8174: else
8175: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8176: $as_echo "no" >&6; }
8177: fi
8178:
8179:
8180: fi
8181: if test -z "$ac_cv_prog_OTOOL"; then
8182: ac_ct_OTOOL=$OTOOL
8183: # Extract the first word of "otool", so it can be a program name with args.
8184: set dummy otool; ac_word=$2
8185: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8186: $as_echo_n "checking for $ac_word... " >&6; }
8187: if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8188: $as_echo_n "(cached) " >&6
8189: else
8190: if test -n "$ac_ct_OTOOL"; then
8191: ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8192: else
8193: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8194: for as_dir in $PATH
8195: do
8196: IFS=$as_save_IFS
8197: test -z "$as_dir" && as_dir=.
8198: for ac_exec_ext in '' $ac_executable_extensions; do
8199: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8200: ac_cv_prog_ac_ct_OTOOL="otool"
8201: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8202: break 2
8203: fi
8204: done
8205: done
8206: IFS=$as_save_IFS
8207:
8208: fi
8209: fi
8210: ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8211: if test -n "$ac_ct_OTOOL"; then
8212: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8213: $as_echo "$ac_ct_OTOOL" >&6; }
8214: else
8215: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8216: $as_echo "no" >&6; }
8217: fi
8218:
8219: if test "x$ac_ct_OTOOL" = x; then
8220: OTOOL=":"
8221: else
8222: case $cross_compiling:$ac_tool_warned in
8223: yes:)
8224: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8225: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8226: ac_tool_warned=yes ;;
8227: esac
8228: OTOOL=$ac_ct_OTOOL
8229: fi
8230: else
8231: OTOOL="$ac_cv_prog_OTOOL"
8232: fi
8233:
8234: if test -n "$ac_tool_prefix"; then
8235: # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8236: set dummy ${ac_tool_prefix}otool64; ac_word=$2
8237: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8238: $as_echo_n "checking for $ac_word... " >&6; }
8239: if ${ac_cv_prog_OTOOL64+:} false; then :
8240: $as_echo_n "(cached) " >&6
8241: else
8242: if test -n "$OTOOL64"; then
8243: ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8244: else
8245: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8246: for as_dir in $PATH
8247: do
8248: IFS=$as_save_IFS
8249: test -z "$as_dir" && as_dir=.
8250: for ac_exec_ext in '' $ac_executable_extensions; do
8251: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8252: ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8253: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8254: break 2
8255: fi
8256: done
8257: done
8258: IFS=$as_save_IFS
8259:
8260: fi
8261: fi
8262: OTOOL64=$ac_cv_prog_OTOOL64
8263: if test -n "$OTOOL64"; then
8264: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8265: $as_echo "$OTOOL64" >&6; }
8266: else
8267: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8268: $as_echo "no" >&6; }
8269: fi
8270:
8271:
8272: fi
8273: if test -z "$ac_cv_prog_OTOOL64"; then
8274: ac_ct_OTOOL64=$OTOOL64
8275: # Extract the first word of "otool64", so it can be a program name with args.
8276: set dummy otool64; ac_word=$2
8277: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8278: $as_echo_n "checking for $ac_word... " >&6; }
8279: if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8280: $as_echo_n "(cached) " >&6
8281: else
8282: if test -n "$ac_ct_OTOOL64"; then
8283: ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8284: else
8285: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8286: for as_dir in $PATH
8287: do
8288: IFS=$as_save_IFS
8289: test -z "$as_dir" && as_dir=.
8290: for ac_exec_ext in '' $ac_executable_extensions; do
8291: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8292: ac_cv_prog_ac_ct_OTOOL64="otool64"
8293: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8294: break 2
8295: fi
8296: done
8297: done
8298: IFS=$as_save_IFS
8299:
8300: fi
8301: fi
8302: ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8303: if test -n "$ac_ct_OTOOL64"; then
8304: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8305: $as_echo "$ac_ct_OTOOL64" >&6; }
8306: else
8307: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8308: $as_echo "no" >&6; }
8309: fi
8310:
8311: if test "x$ac_ct_OTOOL64" = x; then
8312: OTOOL64=":"
8313: else
8314: case $cross_compiling:$ac_tool_warned in
8315: yes:)
8316: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8317: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8318: ac_tool_warned=yes ;;
8319: esac
8320: OTOOL64=$ac_ct_OTOOL64
8321: fi
8322: else
8323: OTOOL64="$ac_cv_prog_OTOOL64"
8324: fi
8325:
8326:
8327:
8328:
8329:
8330:
8331:
8332:
8333:
8334:
8335:
8336:
8337:
8338:
8339:
8340:
8341:
8342:
8343:
8344:
8345:
8346:
8347:
8348:
8349:
8350:
8351:
8352: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8353: $as_echo_n "checking for -single_module linker flag... " >&6; }
8354: if ${lt_cv_apple_cc_single_mod+:} false; then :
8355: $as_echo_n "(cached) " >&6
8356: else
8357: lt_cv_apple_cc_single_mod=no
8358: if test -z "${LT_MULTI_MODULE}"; then
8359: # By default we will add the -single_module flag. You can override
8360: # by either setting the environment variable LT_MULTI_MODULE
8361: # non-empty at configure time, or by adding -multi_module to the
8362: # link flags.
8363: rm -rf libconftest.dylib*
8364: echo "int foo(void){return 1;}" > conftest.c
8365: echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8366: -dynamiclib -Wl,-single_module conftest.c" >&5
8367: $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8368: -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8369: _lt_result=$?
8370: # If there is a non-empty error log, and "single_module"
8371: # appears in it, assume the flag caused a linker warning
8372: if test -s conftest.err && $GREP single_module conftest.err; then
8373: cat conftest.err >&5
8374: # Otherwise, if the output was created with a 0 exit code from
8375: # the compiler, it worked.
8376: elif test -f libconftest.dylib && test $_lt_result -eq 0; then
8377: lt_cv_apple_cc_single_mod=yes
8378: else
8379: cat conftest.err >&5
8380: fi
8381: rm -rf libconftest.dylib*
8382: rm -f conftest.*
8383: fi
8384: fi
8385: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8386: $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8387:
8388: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8389: $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8390: if ${lt_cv_ld_exported_symbols_list+:} false; then :
8391: $as_echo_n "(cached) " >&6
8392: else
8393: lt_cv_ld_exported_symbols_list=no
8394: save_LDFLAGS=$LDFLAGS
8395: echo "_main" > conftest.sym
8396: LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8397: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8398: /* end confdefs.h. */
8399:
8400: int
8401: main ()
8402: {
8403:
8404: ;
8405: return 0;
8406: }
8407: _ACEOF
8408: if ac_fn_c_try_link "$LINENO"; then :
8409: lt_cv_ld_exported_symbols_list=yes
8410: else
8411: lt_cv_ld_exported_symbols_list=no
8412: fi
8413: rm -f core conftest.err conftest.$ac_objext \
8414: conftest$ac_exeext conftest.$ac_ext
8415: LDFLAGS="$save_LDFLAGS"
8416:
8417: fi
8418: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8419: $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8420:
8421: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8422: $as_echo_n "checking for -force_load linker flag... " >&6; }
8423: if ${lt_cv_ld_force_load+:} false; then :
8424: $as_echo_n "(cached) " >&6
8425: else
8426: lt_cv_ld_force_load=no
8427: cat > conftest.c << _LT_EOF
8428: int forced_loaded() { return 2;}
8429: _LT_EOF
8430: echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8431: $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8432: echo "$AR cru libconftest.a conftest.o" >&5
8433: $AR cru libconftest.a conftest.o 2>&5
8434: echo "$RANLIB libconftest.a" >&5
8435: $RANLIB libconftest.a 2>&5
8436: cat > conftest.c << _LT_EOF
8437: int main() { return 0;}
8438: _LT_EOF
8439: echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8440: $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8441: _lt_result=$?
8442: if test -s conftest.err && $GREP force_load conftest.err; then
8443: cat conftest.err >&5
8444: elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
8445: lt_cv_ld_force_load=yes
8446: else
8447: cat conftest.err >&5
8448: fi
8449: rm -f conftest.err libconftest.a conftest conftest.c
8450: rm -rf conftest.dSYM
8451:
8452: fi
8453: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8454: $as_echo "$lt_cv_ld_force_load" >&6; }
8455: case $host_os in
8456: rhapsody* | darwin1.[012])
8457: _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8458: darwin1.*)
8459: _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8460: darwin*) # darwin 5.x on
8461: # if running on 10.5 or later, the deployment target defaults
8462: # to the OS version, if on x86, and 10.4, the deployment
8463: # target defaults to 10.4. Don't you love it?
8464: case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8465: 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8466: _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8467: 10.[012]*)
8468: _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8469: 10.*)
8470: _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8471: esac
8472: ;;
8473: esac
8474: if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8475: _lt_dar_single_mod='$single_module'
8476: fi
8477: if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8478: _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8479: else
8480: _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8481: fi
8482: if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8483: _lt_dsymutil='~$DSYMUTIL $lib || :'
8484: else
8485: _lt_dsymutil=
8486: fi
8487: ;;
8488: esac
8489:
8490: for ac_header in dlfcn.h
8491: do :
8492: ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8493: "
8494: if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8495: cat >>confdefs.h <<_ACEOF
8496: #define HAVE_DLFCN_H 1
8497: _ACEOF
8498:
8499: fi
8500:
8501: done
8502:
8503:
8504:
8505:
8506:
8507: # Set options
8508:
8509:
8510:
8511:
8512: enable_win32_dll=no
8513:
8514:
8515:
8516:
8517:
8518: # Check whether --with-pic was given.
8519: if test "${with_pic+set}" = set; then :
8520: withval=$with_pic; lt_p=${PACKAGE-default}
8521: case $withval in
8522: yes|no) pic_mode=$withval ;;
8523: *)
8524: pic_mode=default
8525: # Look at the argument we got. We use all the common list separators.
8526: lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8527: for lt_pkg in $withval; do
8528: IFS="$lt_save_ifs"
8529: if test "X$lt_pkg" = "X$lt_p"; then
8530: pic_mode=yes
8531: fi
8532: done
8533: IFS="$lt_save_ifs"
8534: ;;
8535: esac
8536: else
8537: pic_mode=default
8538: fi
8539:
8540:
8541: test -z "$pic_mode" && pic_mode=default
8542:
8543:
8544:
8545:
8546:
8547:
8548:
8549: # Check whether --enable-fast-install was given.
8550: if test "${enable_fast_install+set}" = set; then :
8551: enableval=$enable_fast_install; p=${PACKAGE-default}
8552: case $enableval in
8553: yes) enable_fast_install=yes ;;
8554: no) enable_fast_install=no ;;
8555: *)
8556: enable_fast_install=no
8557: # Look at the argument we got. We use all the common list separators.
8558: lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8559: for pkg in $enableval; do
8560: IFS="$lt_save_ifs"
8561: if test "X$pkg" = "X$p"; then
8562: enable_fast_install=yes
8563: fi
8564: done
8565: IFS="$lt_save_ifs"
8566: ;;
8567: esac
8568: else
8569: enable_fast_install=yes
8570: fi
8571:
8572:
8573:
8574:
8575:
8576:
8577:
8578:
8579:
8580:
8581:
8582: # This can be used to rebuild libtool when needed
8583: LIBTOOL_DEPS="$ltmain"
8584:
8585: # Always use our own libtool.
8586: LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8587:
8588:
8589:
8590:
8591:
8592:
8593:
8594:
8595:
8596:
8597:
8598:
8599:
8600:
8601:
8602:
8603:
8604:
8605:
8606:
8607:
8608:
8609:
8610:
8611:
8612:
8613:
8614:
8615:
8616:
8617: test -z "$LN_S" && LN_S="ln -s"
8618:
8619:
8620:
8621:
8622:
8623:
8624:
8625:
8626:
8627:
8628:
8629:
8630:
8631:
8632: if test -n "${ZSH_VERSION+set}" ; then
8633: setopt NO_GLOB_SUBST
8634: fi
8635:
8636: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8637: $as_echo_n "checking for objdir... " >&6; }
8638: if ${lt_cv_objdir+:} false; then :
8639: $as_echo_n "(cached) " >&6
8640: else
8641: rm -f .libs 2>/dev/null
8642: mkdir .libs 2>/dev/null
8643: if test -d .libs; then
8644: lt_cv_objdir=.libs
8645: else
8646: # MS-DOS does not allow filenames that begin with a dot.
8647: lt_cv_objdir=_libs
8648: fi
8649: rmdir .libs 2>/dev/null
8650: fi
8651: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8652: $as_echo "$lt_cv_objdir" >&6; }
8653: objdir=$lt_cv_objdir
8654:
8655:
8656:
8657:
8658:
8659: cat >>confdefs.h <<_ACEOF
8660: #define LT_OBJDIR "$lt_cv_objdir/"
8661: _ACEOF
8662:
8663:
8664:
8665:
8666: case $host_os in
8667: aix3*)
8668: # AIX sometimes has problems with the GCC collect2 program. For some
8669: # reason, if we set the COLLECT_NAMES environment variable, the problems
8670: # vanish in a puff of smoke.
8671: if test "X${COLLECT_NAMES+set}" != Xset; then
8672: COLLECT_NAMES=
8673: export COLLECT_NAMES
8674: fi
8675: ;;
8676: esac
8677:
8678: # Global variables:
8679: ofile=libtool
8680: can_build_shared=yes
8681:
8682: # All known linkers require a `.a' archive for static linking (except MSVC,
8683: # which needs '.lib').
8684: libext=a
8685:
8686: with_gnu_ld="$lt_cv_prog_gnu_ld"
8687:
8688: old_CC="$CC"
8689: old_CFLAGS="$CFLAGS"
8690:
8691: # Set sane defaults for various variables
8692: test -z "$CC" && CC=cc
8693: test -z "$LTCC" && LTCC=$CC
8694: test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8695: test -z "$LD" && LD=ld
8696: test -z "$ac_objext" && ac_objext=o
8697:
8698: for cc_temp in $compiler""; do
8699: case $cc_temp in
8700: compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8701: distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8702: \-*) ;;
8703: *) break;;
8704: esac
8705: done
8706: cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8707:
8708:
8709: # Only perform the check for file, if the check method requires it
8710: test -z "$MAGIC_CMD" && MAGIC_CMD=file
8711: case $deplibs_check_method in
8712: file_magic*)
8713: if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8714: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8715: $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8716: if ${lt_cv_path_MAGIC_CMD+:} false; then :
8717: $as_echo_n "(cached) " >&6
8718: else
8719: case $MAGIC_CMD in
8720: [\\/*] | ?:[\\/]*)
8721: lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8722: ;;
8723: *)
8724: lt_save_MAGIC_CMD="$MAGIC_CMD"
8725: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8726: ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8727: for ac_dir in $ac_dummy; do
8728: IFS="$lt_save_ifs"
8729: test -z "$ac_dir" && ac_dir=.
8730: if test -f $ac_dir/${ac_tool_prefix}file; then
8731: lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8732: if test -n "$file_magic_test_file"; then
8733: case $deplibs_check_method in
8734: "file_magic "*)
8735: file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8736: MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8737: if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8738: $EGREP "$file_magic_regex" > /dev/null; then
8739: :
8740: else
8741: cat <<_LT_EOF 1>&2
8742:
8743: *** Warning: the command libtool uses to detect shared libraries,
8744: *** $file_magic_cmd, produces output that libtool cannot recognize.
8745: *** The result is that libtool may fail to recognize shared libraries
8746: *** as such. This will affect the creation of libtool libraries that
8747: *** depend on shared libraries, but programs linked with such libtool
8748: *** libraries will work regardless of this problem. Nevertheless, you
8749: *** may want to report the problem to your system manager and/or to
8750: *** bug-libtool@gnu.org
8751:
8752: _LT_EOF
8753: fi ;;
8754: esac
8755: fi
8756: break
8757: fi
8758: done
8759: IFS="$lt_save_ifs"
8760: MAGIC_CMD="$lt_save_MAGIC_CMD"
8761: ;;
8762: esac
8763: fi
8764:
8765: MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8766: if test -n "$MAGIC_CMD"; then
8767: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8768: $as_echo "$MAGIC_CMD" >&6; }
8769: else
8770: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8771: $as_echo "no" >&6; }
8772: fi
8773:
8774:
8775:
8776:
8777:
8778: if test -z "$lt_cv_path_MAGIC_CMD"; then
8779: if test -n "$ac_tool_prefix"; then
8780: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8781: $as_echo_n "checking for file... " >&6; }
8782: if ${lt_cv_path_MAGIC_CMD+:} false; then :
8783: $as_echo_n "(cached) " >&6
8784: else
8785: case $MAGIC_CMD in
8786: [\\/*] | ?:[\\/]*)
8787: lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8788: ;;
8789: *)
8790: lt_save_MAGIC_CMD="$MAGIC_CMD"
8791: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8792: ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8793: for ac_dir in $ac_dummy; do
8794: IFS="$lt_save_ifs"
8795: test -z "$ac_dir" && ac_dir=.
8796: if test -f $ac_dir/file; then
8797: lt_cv_path_MAGIC_CMD="$ac_dir/file"
8798: if test -n "$file_magic_test_file"; then
8799: case $deplibs_check_method in
8800: "file_magic "*)
8801: file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8802: MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8803: if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8804: $EGREP "$file_magic_regex" > /dev/null; then
8805: :
8806: else
8807: cat <<_LT_EOF 1>&2
8808:
8809: *** Warning: the command libtool uses to detect shared libraries,
8810: *** $file_magic_cmd, produces output that libtool cannot recognize.
8811: *** The result is that libtool may fail to recognize shared libraries
8812: *** as such. This will affect the creation of libtool libraries that
8813: *** depend on shared libraries, but programs linked with such libtool
8814: *** libraries will work regardless of this problem. Nevertheless, you
8815: *** may want to report the problem to your system manager and/or to
8816: *** bug-libtool@gnu.org
8817:
8818: _LT_EOF
8819: fi ;;
8820: esac
8821: fi
8822: break
8823: fi
8824: done
8825: IFS="$lt_save_ifs"
8826: MAGIC_CMD="$lt_save_MAGIC_CMD"
8827: ;;
8828: esac
8829: fi
8830:
8831: MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8832: if test -n "$MAGIC_CMD"; then
8833: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8834: $as_echo "$MAGIC_CMD" >&6; }
8835: else
8836: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8837: $as_echo "no" >&6; }
8838: fi
8839:
8840:
8841: else
8842: MAGIC_CMD=:
8843: fi
8844: fi
8845:
8846: fi
8847: ;;
8848: esac
8849:
8850: # Use C for the default configuration in the libtool script
8851:
8852: lt_save_CC="$CC"
8853: ac_ext=c
8854: ac_cpp='$CPP $CPPFLAGS'
8855: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8856: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8857: ac_compiler_gnu=$ac_cv_c_compiler_gnu
8858:
8859:
8860: # Source file extension for C test sources.
8861: ac_ext=c
8862:
8863: # Object file extension for compiled C test sources.
8864: objext=o
8865: objext=$objext
8866:
8867: # Code to be used in simple compile tests
8868: lt_simple_compile_test_code="int some_variable = 0;"
8869:
8870: # Code to be used in simple link tests
8871: lt_simple_link_test_code='int main(){return(0);}'
8872:
8873:
8874:
8875:
8876:
8877:
8878:
8879: # If no C compiler was specified, use CC.
8880: LTCC=${LTCC-"$CC"}
8881:
8882: # If no C compiler flags were specified, use CFLAGS.
8883: LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8884:
8885: # Allow CC to be a program name with arguments.
8886: compiler=$CC
8887:
8888: # Save the default compiler, since it gets overwritten when the other
8889: # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8890: compiler_DEFAULT=$CC
8891:
8892: # save warnings/boilerplate of simple test code
8893: ac_outfile=conftest.$ac_objext
8894: echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8895: eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8896: _lt_compiler_boilerplate=`cat conftest.err`
8897: $RM conftest*
8898:
8899: ac_outfile=conftest.$ac_objext
8900: echo "$lt_simple_link_test_code" >conftest.$ac_ext
8901: eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8902: _lt_linker_boilerplate=`cat conftest.err`
8903: $RM -r conftest*
8904:
8905:
8906: ## CAVEAT EMPTOR:
8907: ## There is no encapsulation within the following macros, do not change
8908: ## the running order or otherwise move them around unless you know exactly
8909: ## what you are doing...
8910: if test -n "$compiler"; then
8911:
8912: lt_prog_compiler_no_builtin_flag=
8913:
8914: if test "$GCC" = yes; then
8915: case $cc_basename in
8916: nvcc*)
8917: lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8918: *)
8919: lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8920: esac
8921:
8922: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8923: $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8924: if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8925: $as_echo_n "(cached) " >&6
8926: else
8927: lt_cv_prog_compiler_rtti_exceptions=no
8928: ac_outfile=conftest.$ac_objext
8929: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8930: lt_compiler_flag="-fno-rtti -fno-exceptions"
8931: # Insert the option either (1) after the last *FLAGS variable, or
8932: # (2) before a word containing "conftest.", or (3) at the end.
8933: # Note that $ac_compile itself does not contain backslashes and begins
8934: # with a dollar sign (not a hyphen), so the echo should work correctly.
8935: # The option is referenced via a variable to avoid confusing sed.
8936: lt_compile=`echo "$ac_compile" | $SED \
8937: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8938: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8939: -e 's:$: $lt_compiler_flag:'`
8940: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8941: (eval "$lt_compile" 2>conftest.err)
8942: ac_status=$?
8943: cat conftest.err >&5
8944: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8945: if (exit $ac_status) && test -s "$ac_outfile"; then
8946: # The compiler can only warn and ignore the option if not recognized
8947: # So say no if there are warnings other than the usual output.
8948: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8949: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8950: if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8951: lt_cv_prog_compiler_rtti_exceptions=yes
8952: fi
8953: fi
8954: $RM conftest*
8955:
8956: fi
8957: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8958: $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8959:
8960: if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8961: lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8962: else
8963: :
8964: fi
8965:
8966: fi
8967:
8968:
8969:
8970:
8971:
8972:
8973: lt_prog_compiler_wl=
8974: lt_prog_compiler_pic=
8975: lt_prog_compiler_static=
8976:
8977:
8978: if test "$GCC" = yes; then
8979: lt_prog_compiler_wl='-Wl,'
8980: lt_prog_compiler_static='-static'
8981:
8982: case $host_os in
8983: aix*)
8984: # All AIX code is PIC.
8985: if test "$host_cpu" = ia64; then
8986: # AIX 5 now supports IA64 processor
8987: lt_prog_compiler_static='-Bstatic'
8988: fi
8989: ;;
8990:
8991: amigaos*)
8992: case $host_cpu in
8993: powerpc)
8994: # see comment about AmigaOS4 .so support
8995: lt_prog_compiler_pic='-fPIC'
8996: ;;
8997: m68k)
8998: # FIXME: we need at least 68020 code to build shared libraries, but
8999: # adding the `-m68020' flag to GCC prevents building anything better,
9000: # like `-m68040'.
9001: lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9002: ;;
9003: esac
9004: ;;
9005:
9006: beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9007: # PIC is the default for these OSes.
9008: ;;
9009:
9010: mingw* | cygwin* | pw32* | os2* | cegcc*)
9011: # This hack is so that the source file can tell whether it is being
9012: # built for inclusion in a dll (and should export symbols for example).
9013: # Although the cygwin gcc ignores -fPIC, still need this for old-style
9014: # (--disable-auto-import) libraries
9015: lt_prog_compiler_pic='-DDLL_EXPORT'
9016: ;;
9017:
9018: darwin* | rhapsody*)
9019: # PIC is the default on this platform
9020: # Common symbols not allowed in MH_DYLIB files
9021: lt_prog_compiler_pic='-fno-common'
9022: ;;
9023:
9024: haiku*)
9025: # PIC is the default for Haiku.
9026: # The "-static" flag exists, but is broken.
9027: lt_prog_compiler_static=
9028: ;;
9029:
9030: hpux*)
9031: # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9032: # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9033: # sets the default TLS model and affects inlining.
9034: case $host_cpu in
9035: hppa*64*)
9036: # +Z the default
9037: ;;
9038: *)
9039: lt_prog_compiler_pic='-fPIC'
9040: ;;
9041: esac
9042: ;;
9043:
9044: interix[3-9]*)
9045: # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9046: # Instead, we relocate shared libraries at runtime.
9047: ;;
9048:
9049: msdosdjgpp*)
9050: # Just because we use GCC doesn't mean we suddenly get shared libraries
9051: # on systems that don't support them.
9052: lt_prog_compiler_can_build_shared=no
9053: enable_shared=no
9054: ;;
9055:
9056: *nto* | *qnx*)
9057: # QNX uses GNU C++, but need to define -shared option too, otherwise
9058: # it will coredump.
9059: lt_prog_compiler_pic='-fPIC -shared'
9060: ;;
9061:
9062: sysv4*MP*)
9063: if test -d /usr/nec; then
9064: lt_prog_compiler_pic=-Kconform_pic
9065: fi
9066: ;;
9067:
9068: *)
9069: lt_prog_compiler_pic='-fPIC'
9070: ;;
9071: esac
9072:
9073: case $cc_basename in
9074: nvcc*) # Cuda Compiler Driver 2.2
9075: lt_prog_compiler_wl='-Xlinker '
9076: if test -n "$lt_prog_compiler_pic"; then
9077: lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9078: fi
9079: ;;
9080: esac
9081: else
9082: # PORTME Check for flag to pass linker flags through the system compiler.
9083: case $host_os in
9084: aix*)
9085: lt_prog_compiler_wl='-Wl,'
9086: if test "$host_cpu" = ia64; then
9087: # AIX 5 now supports IA64 processor
9088: lt_prog_compiler_static='-Bstatic'
9089: else
9090: lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9091: fi
9092: ;;
9093:
9094: mingw* | cygwin* | pw32* | os2* | cegcc*)
9095: # This hack is so that the source file can tell whether it is being
9096: # built for inclusion in a dll (and should export symbols for example).
9097: lt_prog_compiler_pic='-DDLL_EXPORT'
9098: ;;
9099:
9100: hpux9* | hpux10* | hpux11*)
9101: lt_prog_compiler_wl='-Wl,'
9102: # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9103: # not for PA HP-UX.
9104: case $host_cpu in
9105: hppa*64*|ia64*)
9106: # +Z the default
9107: ;;
9108: *)
9109: lt_prog_compiler_pic='+Z'
9110: ;;
9111: esac
9112: # Is there a better lt_prog_compiler_static that works with the bundled CC?
9113: lt_prog_compiler_static='${wl}-a ${wl}archive'
9114: ;;
9115:
9116: irix5* | irix6* | nonstopux*)
9117: lt_prog_compiler_wl='-Wl,'
9118: # PIC (with -KPIC) is the default.
9119: lt_prog_compiler_static='-non_shared'
9120: ;;
9121:
9122: linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9123: case $cc_basename in
9124: # old Intel for x86_64 which still supported -KPIC.
9125: ecc*)
9126: lt_prog_compiler_wl='-Wl,'
9127: lt_prog_compiler_pic='-KPIC'
9128: lt_prog_compiler_static='-static'
9129: ;;
9130: # icc used to be incompatible with GCC.
9131: # ICC 10 doesn't accept -KPIC any more.
9132: icc* | ifort*)
9133: lt_prog_compiler_wl='-Wl,'
9134: lt_prog_compiler_pic='-fPIC'
9135: lt_prog_compiler_static='-static'
9136: ;;
9137: # Lahey Fortran 8.1.
9138: lf95*)
9139: lt_prog_compiler_wl='-Wl,'
9140: lt_prog_compiler_pic='--shared'
9141: lt_prog_compiler_static='--static'
9142: ;;
9143: nagfor*)
9144: # NAG Fortran compiler
9145: lt_prog_compiler_wl='-Wl,-Wl,,'
9146: lt_prog_compiler_pic='-PIC'
9147: lt_prog_compiler_static='-Bstatic'
9148: ;;
9149: pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9150: # Portland Group compilers (*not* the Pentium gcc compiler,
9151: # which looks to be a dead project)
9152: lt_prog_compiler_wl='-Wl,'
9153: lt_prog_compiler_pic='-fpic'
9154: lt_prog_compiler_static='-Bstatic'
9155: ;;
9156: ccc*)
9157: lt_prog_compiler_wl='-Wl,'
9158: # All Alpha code is PIC.
9159: lt_prog_compiler_static='-non_shared'
9160: ;;
9161: xl* | bgxl* | bgf* | mpixl*)
9162: # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9163: lt_prog_compiler_wl='-Wl,'
9164: lt_prog_compiler_pic='-qpic'
9165: lt_prog_compiler_static='-qstaticlink'
9166: ;;
9167: *)
9168: case `$CC -V 2>&1 | sed 5q` in
9169: *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9170: # Sun Fortran 8.3 passes all unrecognized flags to the linker
9171: lt_prog_compiler_pic='-KPIC'
9172: lt_prog_compiler_static='-Bstatic'
9173: lt_prog_compiler_wl=''
9174: ;;
9175: *Sun\ F* | *Sun*Fortran*)
9176: lt_prog_compiler_pic='-KPIC'
9177: lt_prog_compiler_static='-Bstatic'
9178: lt_prog_compiler_wl='-Qoption ld '
9179: ;;
9180: *Sun\ C*)
9181: # Sun C 5.9
9182: lt_prog_compiler_pic='-KPIC'
9183: lt_prog_compiler_static='-Bstatic'
9184: lt_prog_compiler_wl='-Wl,'
9185: ;;
9186: *Intel*\ [CF]*Compiler*)
9187: lt_prog_compiler_wl='-Wl,'
9188: lt_prog_compiler_pic='-fPIC'
9189: lt_prog_compiler_static='-static'
9190: ;;
9191: *Portland\ Group*)
9192: lt_prog_compiler_wl='-Wl,'
9193: lt_prog_compiler_pic='-fpic'
9194: lt_prog_compiler_static='-Bstatic'
9195: ;;
9196: esac
9197: ;;
9198: esac
9199: ;;
9200:
9201: newsos6)
9202: lt_prog_compiler_pic='-KPIC'
9203: lt_prog_compiler_static='-Bstatic'
9204: ;;
9205:
9206: *nto* | *qnx*)
9207: # QNX uses GNU C++, but need to define -shared option too, otherwise
9208: # it will coredump.
9209: lt_prog_compiler_pic='-fPIC -shared'
9210: ;;
9211:
9212: osf3* | osf4* | osf5*)
9213: lt_prog_compiler_wl='-Wl,'
9214: # All OSF/1 code is PIC.
9215: lt_prog_compiler_static='-non_shared'
9216: ;;
9217:
9218: rdos*)
9219: lt_prog_compiler_static='-non_shared'
9220: ;;
9221:
9222: solaris*)
9223: lt_prog_compiler_pic='-KPIC'
9224: lt_prog_compiler_static='-Bstatic'
9225: case $cc_basename in
9226: f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9227: lt_prog_compiler_wl='-Qoption ld ';;
9228: *)
9229: lt_prog_compiler_wl='-Wl,';;
9230: esac
9231: ;;
9232:
9233: sunos4*)
9234: lt_prog_compiler_wl='-Qoption ld '
9235: lt_prog_compiler_pic='-PIC'
9236: lt_prog_compiler_static='-Bstatic'
9237: ;;
9238:
9239: sysv4 | sysv4.2uw2* | sysv4.3*)
9240: lt_prog_compiler_wl='-Wl,'
9241: lt_prog_compiler_pic='-KPIC'
9242: lt_prog_compiler_static='-Bstatic'
9243: ;;
9244:
9245: sysv4*MP*)
9246: if test -d /usr/nec ;then
9247: lt_prog_compiler_pic='-Kconform_pic'
9248: lt_prog_compiler_static='-Bstatic'
9249: fi
9250: ;;
9251:
9252: sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9253: lt_prog_compiler_wl='-Wl,'
9254: lt_prog_compiler_pic='-KPIC'
9255: lt_prog_compiler_static='-Bstatic'
9256: ;;
9257:
9258: unicos*)
9259: lt_prog_compiler_wl='-Wl,'
9260: lt_prog_compiler_can_build_shared=no
9261: ;;
9262:
9263: uts4*)
9264: lt_prog_compiler_pic='-pic'
9265: lt_prog_compiler_static='-Bstatic'
9266: ;;
9267:
9268: *)
9269: lt_prog_compiler_can_build_shared=no
9270: ;;
9271: esac
9272: fi
9273:
9274: case $host_os in
9275: # For platforms which do not support PIC, -DPIC is meaningless:
9276: *djgpp*)
9277: lt_prog_compiler_pic=
9278: ;;
9279: *)
9280: lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9281: ;;
9282: esac
9283:
9284: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9285: $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9286: if ${lt_cv_prog_compiler_pic+:} false; then :
9287: $as_echo_n "(cached) " >&6
9288: else
9289: lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9290: fi
9291: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9292: $as_echo "$lt_cv_prog_compiler_pic" >&6; }
9293: lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9294:
9295: #
9296: # Check to make sure the PIC flag actually works.
9297: #
9298: if test -n "$lt_prog_compiler_pic"; then
9299: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9300: $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9301: if ${lt_cv_prog_compiler_pic_works+:} false; then :
9302: $as_echo_n "(cached) " >&6
9303: else
9304: lt_cv_prog_compiler_pic_works=no
9305: ac_outfile=conftest.$ac_objext
9306: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9307: lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9308: # Insert the option either (1) after the last *FLAGS variable, or
9309: # (2) before a word containing "conftest.", or (3) at the end.
9310: # Note that $ac_compile itself does not contain backslashes and begins
9311: # with a dollar sign (not a hyphen), so the echo should work correctly.
9312: # The option is referenced via a variable to avoid confusing sed.
9313: lt_compile=`echo "$ac_compile" | $SED \
9314: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9315: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9316: -e 's:$: $lt_compiler_flag:'`
9317: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9318: (eval "$lt_compile" 2>conftest.err)
9319: ac_status=$?
9320: cat conftest.err >&5
9321: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9322: if (exit $ac_status) && test -s "$ac_outfile"; then
9323: # The compiler can only warn and ignore the option if not recognized
9324: # So say no if there are warnings other than the usual output.
9325: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9326: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9327: if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9328: lt_cv_prog_compiler_pic_works=yes
9329: fi
9330: fi
9331: $RM conftest*
9332:
9333: fi
9334: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9335: $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9336:
9337: if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9338: case $lt_prog_compiler_pic in
9339: "" | " "*) ;;
9340: *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9341: esac
9342: else
9343: lt_prog_compiler_pic=
9344: lt_prog_compiler_can_build_shared=no
9345: fi
9346:
9347: fi
9348:
9349:
9350:
9351:
9352:
9353:
9354:
9355:
9356:
9357:
9358:
9359: #
9360: # Check to make sure the static flag actually works.
9361: #
9362: wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9363: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9364: $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9365: if ${lt_cv_prog_compiler_static_works+:} false; then :
9366: $as_echo_n "(cached) " >&6
9367: else
9368: lt_cv_prog_compiler_static_works=no
9369: save_LDFLAGS="$LDFLAGS"
9370: LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9371: echo "$lt_simple_link_test_code" > conftest.$ac_ext
9372: if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9373: # The linker can only warn and ignore the option if not recognized
9374: # So say no if there are warnings
9375: if test -s conftest.err; then
9376: # Append any errors to the config.log.
9377: cat conftest.err 1>&5
9378: $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9379: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9380: if diff conftest.exp conftest.er2 >/dev/null; then
9381: lt_cv_prog_compiler_static_works=yes
9382: fi
9383: else
9384: lt_cv_prog_compiler_static_works=yes
9385: fi
9386: fi
9387: $RM -r conftest*
9388: LDFLAGS="$save_LDFLAGS"
9389:
9390: fi
9391: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9392: $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9393:
9394: if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9395: :
9396: else
9397: lt_prog_compiler_static=
9398: fi
9399:
9400:
9401:
9402:
9403:
9404:
9405:
9406: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9407: $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9408: if ${lt_cv_prog_compiler_c_o+:} false; then :
9409: $as_echo_n "(cached) " >&6
9410: else
9411: lt_cv_prog_compiler_c_o=no
9412: $RM -r conftest 2>/dev/null
9413: mkdir conftest
9414: cd conftest
9415: mkdir out
9416: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9417:
9418: lt_compiler_flag="-o out/conftest2.$ac_objext"
9419: # Insert the option either (1) after the last *FLAGS variable, or
9420: # (2) before a word containing "conftest.", or (3) at the end.
9421: # Note that $ac_compile itself does not contain backslashes and begins
9422: # with a dollar sign (not a hyphen), so the echo should work correctly.
9423: lt_compile=`echo "$ac_compile" | $SED \
9424: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9425: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9426: -e 's:$: $lt_compiler_flag:'`
9427: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9428: (eval "$lt_compile" 2>out/conftest.err)
9429: ac_status=$?
9430: cat out/conftest.err >&5
9431: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9432: if (exit $ac_status) && test -s out/conftest2.$ac_objext
9433: then
9434: # The compiler can only warn and ignore the option if not recognized
9435: # So say no if there are warnings
9436: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9437: $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9438: if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9439: lt_cv_prog_compiler_c_o=yes
9440: fi
9441: fi
9442: chmod u+w . 2>&5
9443: $RM conftest*
9444: # SGI C++ compiler will create directory out/ii_files/ for
9445: # template instantiation
9446: test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9447: $RM out/* && rmdir out
9448: cd ..
9449: $RM -r conftest
9450: $RM conftest*
9451:
9452: fi
9453: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9454: $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9455:
9456:
9457:
9458:
9459:
9460:
9461: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9462: $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9463: if ${lt_cv_prog_compiler_c_o+:} false; then :
9464: $as_echo_n "(cached) " >&6
9465: else
9466: lt_cv_prog_compiler_c_o=no
9467: $RM -r conftest 2>/dev/null
9468: mkdir conftest
9469: cd conftest
9470: mkdir out
9471: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9472:
9473: lt_compiler_flag="-o out/conftest2.$ac_objext"
9474: # Insert the option either (1) after the last *FLAGS variable, or
9475: # (2) before a word containing "conftest.", or (3) at the end.
9476: # Note that $ac_compile itself does not contain backslashes and begins
9477: # with a dollar sign (not a hyphen), so the echo should work correctly.
9478: lt_compile=`echo "$ac_compile" | $SED \
9479: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9480: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9481: -e 's:$: $lt_compiler_flag:'`
9482: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9483: (eval "$lt_compile" 2>out/conftest.err)
9484: ac_status=$?
9485: cat out/conftest.err >&5
9486: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9487: if (exit $ac_status) && test -s out/conftest2.$ac_objext
9488: then
9489: # The compiler can only warn and ignore the option if not recognized
9490: # So say no if there are warnings
9491: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9492: $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9493: if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9494: lt_cv_prog_compiler_c_o=yes
9495: fi
9496: fi
9497: chmod u+w . 2>&5
9498: $RM conftest*
9499: # SGI C++ compiler will create directory out/ii_files/ for
9500: # template instantiation
9501: test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9502: $RM out/* && rmdir out
9503: cd ..
9504: $RM -r conftest
9505: $RM conftest*
9506:
9507: fi
9508: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9509: $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9510:
9511:
9512:
9513:
9514: hard_links="nottested"
9515: if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9516: # do not overwrite the value of need_locks provided by the user
9517: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9518: $as_echo_n "checking if we can lock with hard links... " >&6; }
9519: hard_links=yes
9520: $RM conftest*
9521: ln conftest.a conftest.b 2>/dev/null && hard_links=no
9522: touch conftest.a
9523: ln conftest.a conftest.b 2>&5 || hard_links=no
9524: ln conftest.a conftest.b 2>/dev/null && hard_links=no
9525: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9526: $as_echo "$hard_links" >&6; }
9527: if test "$hard_links" = no; then
9528: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9529: $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9530: need_locks=warn
9531: fi
9532: else
9533: need_locks=no
9534: fi
9535:
9536:
9537:
9538:
9539:
9540:
9541: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9542: $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9543:
9544: runpath_var=
9545: allow_undefined_flag=
9546: always_export_symbols=no
9547: archive_cmds=
9548: archive_expsym_cmds=
9549: compiler_needs_object=no
9550: enable_shared_with_static_runtimes=no
9551: export_dynamic_flag_spec=
9552: export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9553: hardcode_automatic=no
9554: hardcode_direct=no
9555: hardcode_direct_absolute=no
9556: hardcode_libdir_flag_spec=
9557: hardcode_libdir_separator=
9558: hardcode_minus_L=no
9559: hardcode_shlibpath_var=unsupported
9560: inherit_rpath=no
9561: link_all_deplibs=unknown
9562: module_cmds=
9563: module_expsym_cmds=
9564: old_archive_from_new_cmds=
9565: old_archive_from_expsyms_cmds=
9566: thread_safe_flag_spec=
9567: whole_archive_flag_spec=
9568: # include_expsyms should be a list of space-separated symbols to be *always*
9569: # included in the symbol list
9570: include_expsyms=
9571: # exclude_expsyms can be an extended regexp of symbols to exclude
9572: # it will be wrapped by ` (' and `)$', so one must not match beginning or
9573: # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9574: # as well as any symbol that contains `d'.
9575: exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9576: # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9577: # platforms (ab)use it in PIC code, but their linkers get confused if
9578: # the symbol is explicitly referenced. Since portable code cannot
9579: # rely on this symbol name, it's probably fine to never include it in
9580: # preloaded symbol tables.
9581: # Exclude shared library initialization/finalization symbols.
9582: extract_expsyms_cmds=
9583:
9584: case $host_os in
9585: cygwin* | mingw* | pw32* | cegcc*)
9586: # FIXME: the MSVC++ port hasn't been tested in a loooong time
9587: # When not using gcc, we currently assume that we are using
9588: # Microsoft Visual C++.
9589: if test "$GCC" != yes; then
9590: with_gnu_ld=no
9591: fi
9592: ;;
9593: interix*)
9594: # we just hope/assume this is gcc and not c89 (= MSVC++)
9595: with_gnu_ld=yes
9596: ;;
9597: openbsd*)
9598: with_gnu_ld=no
9599: ;;
9600: linux* | k*bsd*-gnu | gnu*)
9601: link_all_deplibs=no
9602: ;;
9603: esac
9604:
9605: ld_shlibs=yes
9606:
9607: # On some targets, GNU ld is compatible enough with the native linker
9608: # that we're better off using the native interface for both.
9609: lt_use_gnu_ld_interface=no
9610: if test "$with_gnu_ld" = yes; then
9611: case $host_os in
9612: aix*)
9613: # The AIX port of GNU ld has always aspired to compatibility
9614: # with the native linker. However, as the warning in the GNU ld
9615: # block says, versions before 2.19.5* couldn't really create working
9616: # shared libraries, regardless of the interface used.
9617: case `$LD -v 2>&1` in
9618: *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9619: *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9620: *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9621: *)
9622: lt_use_gnu_ld_interface=yes
9623: ;;
9624: esac
9625: ;;
9626: *)
9627: lt_use_gnu_ld_interface=yes
9628: ;;
9629: esac
9630: fi
9631:
9632: if test "$lt_use_gnu_ld_interface" = yes; then
9633: # If archive_cmds runs LD, not CC, wlarc should be empty
9634: wlarc='${wl}'
9635:
9636: # Set some defaults for GNU ld with shared library support. These
9637: # are reset later if shared libraries are not supported. Putting them
9638: # here allows them to be overridden if necessary.
9639: runpath_var=LD_RUN_PATH
9640: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9641: export_dynamic_flag_spec='${wl}--export-dynamic'
9642: # ancient GNU ld didn't support --whole-archive et. al.
9643: if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9644: whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9645: else
9646: whole_archive_flag_spec=
9647: fi
9648: supports_anon_versioning=no
9649: case `$LD -v 2>&1` in
9650: *GNU\ gold*) supports_anon_versioning=yes ;;
9651: *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9652: *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9653: *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9654: *\ 2.11.*) ;; # other 2.11 versions
9655: *) supports_anon_versioning=yes ;;
9656: esac
9657:
9658: # See if GNU ld supports shared libraries.
9659: case $host_os in
9660: aix[3-9]*)
9661: # On AIX/PPC, the GNU linker is very broken
9662: if test "$host_cpu" != ia64; then
9663: ld_shlibs=no
9664: cat <<_LT_EOF 1>&2
9665:
9666: *** Warning: the GNU linker, at least up to release 2.19, is reported
9667: *** to be unable to reliably create shared libraries on AIX.
9668: *** Therefore, libtool is disabling shared libraries support. If you
9669: *** really care for shared libraries, you may want to install binutils
9670: *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9671: *** You will then need to restart the configuration process.
9672:
9673: _LT_EOF
9674: fi
9675: ;;
9676:
9677: amigaos*)
9678: case $host_cpu in
9679: powerpc)
9680: # see comment about AmigaOS4 .so support
9681: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9682: archive_expsym_cmds=''
9683: ;;
9684: m68k)
9685: 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)'
9686: hardcode_libdir_flag_spec='-L$libdir'
9687: hardcode_minus_L=yes
9688: ;;
9689: esac
9690: ;;
9691:
9692: beos*)
9693: if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9694: allow_undefined_flag=unsupported
9695: # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9696: # support --undefined. This deserves some investigation. FIXME
9697: archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9698: else
9699: ld_shlibs=no
9700: fi
9701: ;;
9702:
9703: cygwin* | mingw* | pw32* | cegcc*)
9704: # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9705: # as there is no search path for DLLs.
9706: hardcode_libdir_flag_spec='-L$libdir'
9707: export_dynamic_flag_spec='${wl}--export-all-symbols'
9708: allow_undefined_flag=unsupported
9709: always_export_symbols=no
9710: enable_shared_with_static_runtimes=yes
9711: 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'
9712: exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9713:
9714: if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9715: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9716: # If the export-symbols file already is a .def file (1st line
9717: # is EXPORTS), use it as is; otherwise, prepend...
9718: archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9719: cp $export_symbols $output_objdir/$soname.def;
9720: else
9721: echo EXPORTS > $output_objdir/$soname.def;
9722: cat $export_symbols >> $output_objdir/$soname.def;
9723: fi~
9724: $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9725: else
9726: ld_shlibs=no
9727: fi
9728: ;;
9729:
9730: haiku*)
9731: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9732: link_all_deplibs=yes
9733: ;;
9734:
9735: interix[3-9]*)
9736: hardcode_direct=no
9737: hardcode_shlibpath_var=no
9738: hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9739: export_dynamic_flag_spec='${wl}-E'
9740: # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9741: # Instead, shared libraries are loaded at an image base (0x10000000 by
9742: # default) and relocated if they conflict, which is a slow very memory
9743: # consuming and fragmenting process. To avoid this, we pick a random,
9744: # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9745: # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9746: archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9747: 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'
9748: ;;
9749:
9750: gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9751: tmp_diet=no
9752: if test "$host_os" = linux-dietlibc; then
9753: case $cc_basename in
9754: diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9755: esac
9756: fi
9757: if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9758: && test "$tmp_diet" = no
9759: then
9760: tmp_addflag=' $pic_flag'
9761: tmp_sharedflag='-shared'
9762: case $cc_basename,$host_cpu in
9763: pgcc*) # Portland Group C compiler
9764: 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'
9765: tmp_addflag=' $pic_flag'
9766: ;;
9767: pgf77* | pgf90* | pgf95* | pgfortran*)
9768: # Portland Group f77 and f90 compilers
9769: 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'
9770: tmp_addflag=' $pic_flag -Mnomain' ;;
9771: ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9772: tmp_addflag=' -i_dynamic' ;;
9773: efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9774: tmp_addflag=' -i_dynamic -nofor_main' ;;
9775: ifc* | ifort*) # Intel Fortran compiler
9776: tmp_addflag=' -nofor_main' ;;
9777: lf95*) # Lahey Fortran 8.1
9778: whole_archive_flag_spec=
9779: tmp_sharedflag='--shared' ;;
9780: xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9781: tmp_sharedflag='-qmkshrobj'
9782: tmp_addflag= ;;
9783: nvcc*) # Cuda Compiler Driver 2.2
9784: 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'
9785: compiler_needs_object=yes
9786: ;;
9787: esac
9788: case `$CC -V 2>&1 | sed 5q` in
9789: *Sun\ C*) # Sun C 5.9
9790: 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'
9791: compiler_needs_object=yes
9792: tmp_sharedflag='-G' ;;
9793: *Sun\ F*) # Sun Fortran 8.3
9794: tmp_sharedflag='-G' ;;
9795: esac
9796: archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9797:
9798: if test "x$supports_anon_versioning" = xyes; then
9799: archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9800: cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9801: echo "local: *; };" >> $output_objdir/$libname.ver~
9802: $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9803: fi
9804:
9805: case $cc_basename in
9806: xlf* | bgf* | bgxlf* | mpixlf*)
9807: # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9808: whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9809: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9810: archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9811: if test "x$supports_anon_versioning" = xyes; then
9812: archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9813: cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9814: echo "local: *; };" >> $output_objdir/$libname.ver~
9815: $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9816: fi
9817: ;;
9818: esac
9819: else
9820: ld_shlibs=no
9821: fi
9822: ;;
9823:
9824: netbsd* | netbsdelf*-gnu)
9825: if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9826: archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9827: wlarc=
9828: else
9829: archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9830: archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9831: fi
9832: ;;
9833:
9834: solaris*)
9835: if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9836: ld_shlibs=no
9837: cat <<_LT_EOF 1>&2
9838:
9839: *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9840: *** create shared libraries on Solaris systems. Therefore, libtool
9841: *** is disabling shared libraries support. We urge you to upgrade GNU
9842: *** binutils to release 2.9.1 or newer. Another option is to modify
9843: *** your PATH or compiler configuration so that the native linker is
9844: *** used, and then restart.
9845:
9846: _LT_EOF
9847: elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9848: archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9849: archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9850: else
9851: ld_shlibs=no
9852: fi
9853: ;;
9854:
9855: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9856: case `$LD -v 2>&1` in
9857: *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9858: ld_shlibs=no
9859: cat <<_LT_EOF 1>&2
9860:
9861: *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9862: *** reliably create shared libraries on SCO systems. Therefore, libtool
9863: *** is disabling shared libraries support. We urge you to upgrade GNU
9864: *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9865: *** your PATH or compiler configuration so that the native linker is
9866: *** used, and then restart.
9867:
9868: _LT_EOF
9869: ;;
9870: *)
9871: # For security reasons, it is highly recommended that you always
9872: # use absolute paths for naming shared libraries, and exclude the
9873: # DT_RUNPATH tag from executables and libraries. But doing so
9874: # requires that you compile everything twice, which is a pain.
9875: if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9876: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9877: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9878: archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9879: else
9880: ld_shlibs=no
9881: fi
9882: ;;
9883: esac
9884: ;;
9885:
9886: sunos4*)
9887: archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9888: wlarc=
9889: hardcode_direct=yes
9890: hardcode_shlibpath_var=no
9891: ;;
9892:
9893: *)
9894: if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9895: archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9896: archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9897: else
9898: ld_shlibs=no
9899: fi
9900: ;;
9901: esac
9902:
9903: if test "$ld_shlibs" = no; then
9904: runpath_var=
9905: hardcode_libdir_flag_spec=
9906: export_dynamic_flag_spec=
9907: whole_archive_flag_spec=
9908: fi
9909: else
9910: # PORTME fill in a description of your system's linker (not GNU ld)
9911: case $host_os in
9912: aix3*)
9913: allow_undefined_flag=unsupported
9914: always_export_symbols=yes
9915: 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'
9916: # Note: this linker hardcodes the directories in LIBPATH if there
9917: # are no directories specified by -L.
9918: hardcode_minus_L=yes
9919: if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9920: # Neither direct hardcoding nor static linking is supported with a
9921: # broken collect2.
9922: hardcode_direct=unsupported
9923: fi
9924: ;;
9925:
9926: aix[4-9]*)
9927: if test "$host_cpu" = ia64; then
9928: # On IA64, the linker does run time linking by default, so we don't
9929: # have to do anything special.
9930: aix_use_runtimelinking=no
9931: exp_sym_flag='-Bexport'
9932: no_entry_flag=""
9933: else
9934: # If we're using GNU nm, then we don't want the "-C" option.
9935: # -C means demangle to AIX nm, but means don't demangle with GNU nm
9936: # Also, AIX nm treats weak defined symbols like other global
9937: # defined symbols, whereas GNU nm marks them as "W".
9938: if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9939: export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9940: else
9941: export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9942: fi
9943: aix_use_runtimelinking=no
9944:
9945: # Test if we are trying to use run time linking or normal
9946: # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9947: # need to do runtime linking.
9948: case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9949: for ld_flag in $LDFLAGS; do
9950: if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9951: aix_use_runtimelinking=yes
9952: break
9953: fi
9954: done
9955: ;;
9956: esac
9957:
9958: exp_sym_flag='-bexport'
9959: no_entry_flag='-bnoentry'
9960: fi
9961:
9962: # When large executables or shared objects are built, AIX ld can
9963: # have problems creating the table of contents. If linking a library
9964: # or program results in "error TOC overflow" add -mminimal-toc to
9965: # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9966: # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9967:
9968: archive_cmds=''
9969: hardcode_direct=yes
9970: hardcode_direct_absolute=yes
9971: hardcode_libdir_separator=':'
9972: link_all_deplibs=yes
9973: file_list_spec='${wl}-f,'
9974:
9975: if test "$GCC" = yes; then
9976: case $host_os in aix4.[012]|aix4.[012].*)
9977: # We only want to do this on AIX 4.2 and lower, the check
9978: # below for broken collect2 doesn't work under 4.3+
9979: collect2name=`${CC} -print-prog-name=collect2`
9980: if test -f "$collect2name" &&
9981: strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9982: then
9983: # We have reworked collect2
9984: :
9985: else
9986: # We have old collect2
9987: hardcode_direct=unsupported
9988: # It fails to find uninstalled libraries when the uninstalled
9989: # path is not listed in the libpath. Setting hardcode_minus_L
9990: # to unsupported forces relinking
9991: hardcode_minus_L=yes
9992: hardcode_libdir_flag_spec='-L$libdir'
9993: hardcode_libdir_separator=
9994: fi
9995: ;;
9996: esac
9997: shared_flag='-shared'
9998: if test "$aix_use_runtimelinking" = yes; then
9999: shared_flag="$shared_flag "'${wl}-G'
10000: fi
10001: link_all_deplibs=no
10002: else
10003: # not using gcc
10004: if test "$host_cpu" = ia64; then
10005: # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10006: # chokes on -Wl,-G. The following line is correct:
10007: shared_flag='-G'
10008: else
10009: if test "$aix_use_runtimelinking" = yes; then
10010: shared_flag='${wl}-G'
10011: else
10012: shared_flag='${wl}-bM:SRE'
10013: fi
10014: fi
10015: fi
10016:
10017: export_dynamic_flag_spec='${wl}-bexpall'
10018: # It seems that -bexpall does not export symbols beginning with
10019: # underscore (_), so it is better to generate a list of symbols to export.
10020: always_export_symbols=yes
10021: if test "$aix_use_runtimelinking" = yes; then
10022: # Warning - without using the other runtime loading flags (-brtl),
10023: # -berok will link without error, but may produce a broken library.
10024: allow_undefined_flag='-berok'
10025: # Determine the default libpath from the value encoded in an
10026: # empty executable.
10027: if test "${lt_cv_aix_libpath+set}" = set; then
10028: aix_libpath=$lt_cv_aix_libpath
10029: else
10030: if ${lt_cv_aix_libpath_+:} false; then :
10031: $as_echo_n "(cached) " >&6
10032: else
10033: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10034: /* end confdefs.h. */
10035:
10036: int
10037: main ()
10038: {
10039:
10040: ;
10041: return 0;
10042: }
10043: _ACEOF
10044: if ac_fn_c_try_link "$LINENO"; then :
10045:
10046: lt_aix_libpath_sed='
10047: /Import File Strings/,/^$/ {
10048: /^0/ {
10049: s/^0 *\([^ ]*\) *$/\1/
10050: p
10051: }
10052: }'
10053: lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10054: # Check for a 64-bit object if we didn't find anything.
10055: if test -z "$lt_cv_aix_libpath_"; then
10056: lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10057: fi
10058: fi
10059: rm -f core conftest.err conftest.$ac_objext \
10060: conftest$ac_exeext conftest.$ac_ext
10061: if test -z "$lt_cv_aix_libpath_"; then
10062: lt_cv_aix_libpath_="/usr/lib:/lib"
10063: fi
10064:
10065: fi
10066:
10067: aix_libpath=$lt_cv_aix_libpath_
10068: fi
10069:
10070: hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10071: archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
10072: else
10073: if test "$host_cpu" = ia64; then
10074: hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10075: allow_undefined_flag="-z nodefs"
10076: 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"
10077: else
10078: # Determine the default libpath from the value encoded in an
10079: # empty executable.
10080: if test "${lt_cv_aix_libpath+set}" = set; then
10081: aix_libpath=$lt_cv_aix_libpath
10082: else
10083: if ${lt_cv_aix_libpath_+:} false; then :
10084: $as_echo_n "(cached) " >&6
10085: else
10086: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10087: /* end confdefs.h. */
10088:
10089: int
10090: main ()
10091: {
10092:
10093: ;
10094: return 0;
10095: }
10096: _ACEOF
10097: if ac_fn_c_try_link "$LINENO"; then :
10098:
10099: lt_aix_libpath_sed='
10100: /Import File Strings/,/^$/ {
10101: /^0/ {
10102: s/^0 *\([^ ]*\) *$/\1/
10103: p
10104: }
10105: }'
10106: lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10107: # Check for a 64-bit object if we didn't find anything.
10108: if test -z "$lt_cv_aix_libpath_"; then
10109: lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10110: fi
10111: fi
10112: rm -f core conftest.err conftest.$ac_objext \
10113: conftest$ac_exeext conftest.$ac_ext
10114: if test -z "$lt_cv_aix_libpath_"; then
10115: lt_cv_aix_libpath_="/usr/lib:/lib"
10116: fi
10117:
10118: fi
10119:
10120: aix_libpath=$lt_cv_aix_libpath_
10121: fi
10122:
10123: hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10124: # Warning - without using the other run time loading flags,
10125: # -berok will link without error, but may produce a broken library.
10126: no_undefined_flag=' ${wl}-bernotok'
10127: allow_undefined_flag=' ${wl}-berok'
10128: if test "$with_gnu_ld" = yes; then
10129: # We only use this code for GNU lds that support --whole-archive.
10130: whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10131: else
10132: # Exported symbols can be pulled into shared objects from archives
10133: whole_archive_flag_spec='$convenience'
10134: fi
10135: archive_cmds_need_lc=yes
10136: # This is similar to how AIX traditionally builds its shared libraries.
10137: archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
10138: fi
10139: fi
10140: ;;
10141:
10142: amigaos*)
10143: case $host_cpu in
10144: powerpc)
10145: # see comment about AmigaOS4 .so support
10146: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10147: archive_expsym_cmds=''
10148: ;;
10149: m68k)
10150: 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)'
10151: hardcode_libdir_flag_spec='-L$libdir'
10152: hardcode_minus_L=yes
10153: ;;
10154: esac
10155: ;;
10156:
10157: bsdi[45]*)
10158: export_dynamic_flag_spec=-rdynamic
10159: ;;
10160:
10161: cygwin* | mingw* | pw32* | cegcc*)
10162: # When not using gcc, we currently assume that we are using
10163: # Microsoft Visual C++.
10164: # hardcode_libdir_flag_spec is actually meaningless, as there is
10165: # no search path for DLLs.
10166: case $cc_basename in
10167: cl*)
10168: # Native MSVC
10169: hardcode_libdir_flag_spec=' '
10170: allow_undefined_flag=unsupported
10171: always_export_symbols=yes
10172: file_list_spec='@'
10173: # Tell ltmain to make .lib files, not .a files.
10174: libext=lib
10175: # Tell ltmain to make .dll files, not .so files.
10176: shrext_cmds=".dll"
10177: # FIXME: Setting linknames here is a bad hack.
10178: archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
10179: archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10180: sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
10181: else
10182: sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
10183: fi~
10184: $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10185: linknames='
10186: # The linker will not automatically build a static lib if we build a DLL.
10187: # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10188: enable_shared_with_static_runtimes=yes
10189: exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10190: export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10191: # Don't use ranlib
10192: old_postinstall_cmds='chmod 644 $oldlib'
10193: postlink_cmds='lt_outputfile="@OUTPUT@"~
10194: lt_tool_outputfile="@TOOL_OUTPUT@"~
10195: case $lt_outputfile in
10196: *.exe|*.EXE) ;;
10197: *)
10198: lt_outputfile="$lt_outputfile.exe"
10199: lt_tool_outputfile="$lt_tool_outputfile.exe"
10200: ;;
10201: esac~
10202: if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
10203: $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10204: $RM "$lt_outputfile.manifest";
10205: fi'
10206: ;;
10207: *)
10208: # Assume MSVC wrapper
10209: hardcode_libdir_flag_spec=' '
10210: allow_undefined_flag=unsupported
10211: # Tell ltmain to make .lib files, not .a files.
10212: libext=lib
10213: # Tell ltmain to make .dll files, not .so files.
10214: shrext_cmds=".dll"
10215: # FIXME: Setting linknames here is a bad hack.
10216: archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10217: # The linker will automatically build a .lib file if we build a DLL.
10218: old_archive_from_new_cmds='true'
10219: # FIXME: Should let the user specify the lib program.
10220: old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10221: enable_shared_with_static_runtimes=yes
10222: ;;
10223: esac
10224: ;;
10225:
10226: darwin* | rhapsody*)
10227:
10228:
10229: archive_cmds_need_lc=no
10230: hardcode_direct=no
10231: hardcode_automatic=yes
10232: hardcode_shlibpath_var=unsupported
10233: if test "$lt_cv_ld_force_load" = "yes"; then
10234: 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\"`'
10235:
10236: else
10237: whole_archive_flag_spec=''
10238: fi
10239: link_all_deplibs=yes
10240: allow_undefined_flag="$_lt_dar_allow_undefined"
10241: case $cc_basename in
10242: ifort*) _lt_dar_can_shared=yes ;;
10243: *) _lt_dar_can_shared=$GCC ;;
10244: esac
10245: if test "$_lt_dar_can_shared" = "yes"; then
10246: output_verbose_link_cmd=func_echo_all
10247: archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10248: module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10249: 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}"
10250: 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}"
10251:
10252: else
10253: ld_shlibs=no
10254: fi
10255:
10256: ;;
10257:
10258: dgux*)
10259: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10260: hardcode_libdir_flag_spec='-L$libdir'
10261: hardcode_shlibpath_var=no
10262: ;;
10263:
10264: # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10265: # support. Future versions do this automatically, but an explicit c++rt0.o
10266: # does not break anything, and helps significantly (at the cost of a little
10267: # extra space).
10268: freebsd2.2*)
10269: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10270: hardcode_libdir_flag_spec='-R$libdir'
10271: hardcode_direct=yes
10272: hardcode_shlibpath_var=no
10273: ;;
10274:
10275: # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10276: freebsd2.*)
10277: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10278: hardcode_direct=yes
10279: hardcode_minus_L=yes
10280: hardcode_shlibpath_var=no
10281: ;;
10282:
10283: # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10284: freebsd* | dragonfly*)
10285: archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10286: hardcode_libdir_flag_spec='-R$libdir'
10287: hardcode_direct=yes
10288: hardcode_shlibpath_var=no
10289: ;;
10290:
10291: hpux9*)
10292: if test "$GCC" = yes; then
10293: archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10294: else
10295: archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10296: fi
10297: hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10298: hardcode_libdir_separator=:
10299: hardcode_direct=yes
10300:
10301: # hardcode_minus_L: Not really in the search PATH,
10302: # but as the default location of the library.
10303: hardcode_minus_L=yes
10304: export_dynamic_flag_spec='${wl}-E'
10305: ;;
10306:
10307: hpux10*)
10308: if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10309: archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10310: else
10311: archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10312: fi
10313: if test "$with_gnu_ld" = no; then
10314: hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10315: hardcode_libdir_separator=:
10316: hardcode_direct=yes
10317: hardcode_direct_absolute=yes
10318: export_dynamic_flag_spec='${wl}-E'
10319: # hardcode_minus_L: Not really in the search PATH,
10320: # but as the default location of the library.
10321: hardcode_minus_L=yes
10322: fi
10323: ;;
10324:
10325: hpux11*)
10326: if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10327: case $host_cpu in
10328: hppa*64*)
10329: archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10330: ;;
10331: ia64*)
10332: archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10333: ;;
10334: *)
10335: archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10336: ;;
10337: esac
10338: else
10339: case $host_cpu in
10340: hppa*64*)
10341: archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10342: ;;
10343: ia64*)
10344: archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10345: ;;
10346: *)
10347:
10348: # Older versions of the 11.00 compiler do not understand -b yet
10349: # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10350: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10351: $as_echo_n "checking if $CC understands -b... " >&6; }
10352: if ${lt_cv_prog_compiler__b+:} false; then :
10353: $as_echo_n "(cached) " >&6
10354: else
10355: lt_cv_prog_compiler__b=no
10356: save_LDFLAGS="$LDFLAGS"
10357: LDFLAGS="$LDFLAGS -b"
10358: echo "$lt_simple_link_test_code" > conftest.$ac_ext
10359: if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10360: # The linker can only warn and ignore the option if not recognized
10361: # So say no if there are warnings
10362: if test -s conftest.err; then
10363: # Append any errors to the config.log.
10364: cat conftest.err 1>&5
10365: $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10366: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10367: if diff conftest.exp conftest.er2 >/dev/null; then
10368: lt_cv_prog_compiler__b=yes
10369: fi
10370: else
10371: lt_cv_prog_compiler__b=yes
10372: fi
10373: fi
10374: $RM -r conftest*
10375: LDFLAGS="$save_LDFLAGS"
10376:
10377: fi
10378: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10379: $as_echo "$lt_cv_prog_compiler__b" >&6; }
10380:
10381: if test x"$lt_cv_prog_compiler__b" = xyes; then
10382: archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10383: else
10384: archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10385: fi
10386:
10387: ;;
10388: esac
10389: fi
10390: if test "$with_gnu_ld" = no; then
10391: hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10392: hardcode_libdir_separator=:
10393:
10394: case $host_cpu in
10395: hppa*64*|ia64*)
10396: hardcode_direct=no
10397: hardcode_shlibpath_var=no
10398: ;;
10399: *)
10400: hardcode_direct=yes
10401: hardcode_direct_absolute=yes
10402: export_dynamic_flag_spec='${wl}-E'
10403:
10404: # hardcode_minus_L: Not really in the search PATH,
10405: # but as the default location of the library.
10406: hardcode_minus_L=yes
10407: ;;
10408: esac
10409: fi
10410: ;;
10411:
10412: irix5* | irix6* | nonstopux*)
10413: if test "$GCC" = yes; then
10414: 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'
10415: # Try to use the -exported_symbol ld option, if it does not
10416: # work, assume that -exports_file does not work either and
10417: # implicitly export all symbols.
10418: # This should be the same for all languages, so no per-tag cache variable.
10419: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10420: $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10421: if ${lt_cv_irix_exported_symbol+:} false; then :
10422: $as_echo_n "(cached) " >&6
10423: else
10424: save_LDFLAGS="$LDFLAGS"
10425: LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10426: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10427: /* end confdefs.h. */
10428: int foo (void) { return 0; }
10429: _ACEOF
10430: if ac_fn_c_try_link "$LINENO"; then :
10431: lt_cv_irix_exported_symbol=yes
10432: else
10433: lt_cv_irix_exported_symbol=no
10434: fi
10435: rm -f core conftest.err conftest.$ac_objext \
10436: conftest$ac_exeext conftest.$ac_ext
10437: LDFLAGS="$save_LDFLAGS"
10438: fi
10439: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10440: $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10441: if test "$lt_cv_irix_exported_symbol" = yes; then
10442: 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'
10443: fi
10444: else
10445: 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'
10446: 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'
10447: fi
10448: archive_cmds_need_lc='no'
10449: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10450: hardcode_libdir_separator=:
10451: inherit_rpath=yes
10452: link_all_deplibs=yes
10453: ;;
10454:
10455: netbsd* | netbsdelf*-gnu)
10456: if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10457: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10458: else
10459: archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10460: fi
10461: hardcode_libdir_flag_spec='-R$libdir'
10462: hardcode_direct=yes
10463: hardcode_shlibpath_var=no
10464: ;;
10465:
10466: newsos6)
10467: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10468: hardcode_direct=yes
10469: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10470: hardcode_libdir_separator=:
10471: hardcode_shlibpath_var=no
10472: ;;
10473:
10474: *nto* | *qnx*)
10475: ;;
10476:
10477: openbsd*)
10478: if test -f /usr/libexec/ld.so; then
10479: hardcode_direct=yes
10480: hardcode_shlibpath_var=no
10481: hardcode_direct_absolute=yes
10482: if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10483: archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10484: archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10485: hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10486: export_dynamic_flag_spec='${wl}-E'
10487: else
10488: case $host_os in
10489: openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10490: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10491: hardcode_libdir_flag_spec='-R$libdir'
10492: ;;
10493: *)
10494: archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10495: hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10496: ;;
10497: esac
10498: fi
10499: else
10500: ld_shlibs=no
10501: fi
10502: ;;
10503:
10504: os2*)
10505: hardcode_libdir_flag_spec='-L$libdir'
10506: hardcode_minus_L=yes
10507: allow_undefined_flag=unsupported
10508: archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
10509: old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10510: ;;
10511:
10512: osf3*)
10513: if test "$GCC" = yes; then
10514: allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10515: 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'
10516: else
10517: allow_undefined_flag=' -expect_unresolved \*'
10518: 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'
10519: fi
10520: archive_cmds_need_lc='no'
10521: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10522: hardcode_libdir_separator=:
10523: ;;
10524:
10525: osf4* | osf5*) # as osf3* with the addition of -msym flag
10526: if test "$GCC" = yes; then
10527: allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10528: 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'
10529: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10530: else
10531: allow_undefined_flag=' -expect_unresolved \*'
10532: 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'
10533: 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~
10534: $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'
10535:
10536: # Both c and cxx compiler support -rpath directly
10537: hardcode_libdir_flag_spec='-rpath $libdir'
10538: fi
10539: archive_cmds_need_lc='no'
10540: hardcode_libdir_separator=:
10541: ;;
10542:
10543: solaris*)
10544: no_undefined_flag=' -z defs'
10545: if test "$GCC" = yes; then
10546: wlarc='${wl}'
10547: archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10548: archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10549: $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'
10550: else
10551: case `$CC -V 2>&1` in
10552: *"Compilers 5.0"*)
10553: wlarc=''
10554: archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10555: archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10556: $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10557: ;;
10558: *)
10559: wlarc='${wl}'
10560: archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10561: archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10562: $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10563: ;;
10564: esac
10565: fi
10566: hardcode_libdir_flag_spec='-R$libdir'
10567: hardcode_shlibpath_var=no
10568: case $host_os in
10569: solaris2.[0-5] | solaris2.[0-5].*) ;;
10570: *)
10571: # The compiler driver will combine and reorder linker options,
10572: # but understands `-z linker_flag'. GCC discards it without `$wl',
10573: # but is careful enough not to reorder.
10574: # Supported since Solaris 2.6 (maybe 2.5.1?)
10575: if test "$GCC" = yes; then
10576: whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10577: else
10578: whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10579: fi
10580: ;;
10581: esac
10582: link_all_deplibs=yes
10583: ;;
10584:
10585: sunos4*)
10586: if test "x$host_vendor" = xsequent; then
10587: # Use $CC to link under sequent, because it throws in some extra .o
10588: # files that make .init and .fini sections work.
10589: archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10590: else
10591: archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10592: fi
10593: hardcode_libdir_flag_spec='-L$libdir'
10594: hardcode_direct=yes
10595: hardcode_minus_L=yes
10596: hardcode_shlibpath_var=no
10597: ;;
10598:
10599: sysv4)
10600: case $host_vendor in
10601: sni)
10602: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10603: hardcode_direct=yes # is this really true???
10604: ;;
10605: siemens)
10606: ## LD is ld it makes a PLAMLIB
10607: ## CC just makes a GrossModule.
10608: archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10609: reload_cmds='$CC -r -o $output$reload_objs'
10610: hardcode_direct=no
10611: ;;
10612: motorola)
10613: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10614: hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10615: ;;
10616: esac
10617: runpath_var='LD_RUN_PATH'
10618: hardcode_shlibpath_var=no
10619: ;;
10620:
10621: sysv4.3*)
10622: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10623: hardcode_shlibpath_var=no
10624: export_dynamic_flag_spec='-Bexport'
10625: ;;
10626:
10627: sysv4*MP*)
10628: if test -d /usr/nec; then
10629: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10630: hardcode_shlibpath_var=no
10631: runpath_var=LD_RUN_PATH
10632: hardcode_runpath_var=yes
10633: ld_shlibs=yes
10634: fi
10635: ;;
10636:
10637: sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10638: no_undefined_flag='${wl}-z,text'
10639: archive_cmds_need_lc=no
10640: hardcode_shlibpath_var=no
10641: runpath_var='LD_RUN_PATH'
10642:
10643: if test "$GCC" = yes; then
10644: archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10645: archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10646: else
10647: archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10648: archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10649: fi
10650: ;;
10651:
10652: sysv5* | sco3.2v5* | sco5v6*)
10653: # Note: We can NOT use -z defs as we might desire, because we do not
10654: # link with -lc, and that would cause any symbols used from libc to
10655: # always be unresolved, which means just about no library would
10656: # ever link correctly. If we're not using GNU ld we use -z text
10657: # though, which does catch some bad symbols but isn't as heavy-handed
10658: # as -z defs.
10659: no_undefined_flag='${wl}-z,text'
10660: allow_undefined_flag='${wl}-z,nodefs'
10661: archive_cmds_need_lc=no
10662: hardcode_shlibpath_var=no
10663: hardcode_libdir_flag_spec='${wl}-R,$libdir'
10664: hardcode_libdir_separator=':'
10665: link_all_deplibs=yes
10666: export_dynamic_flag_spec='${wl}-Bexport'
10667: runpath_var='LD_RUN_PATH'
10668:
10669: if test "$GCC" = yes; then
10670: archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10671: archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10672: else
10673: archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10674: archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10675: fi
10676: ;;
10677:
10678: uts4*)
10679: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10680: hardcode_libdir_flag_spec='-L$libdir'
10681: hardcode_shlibpath_var=no
10682: ;;
10683:
10684: *)
10685: ld_shlibs=no
10686: ;;
10687: esac
10688:
10689: if test x$host_vendor = xsni; then
10690: case $host in
10691: sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10692: export_dynamic_flag_spec='${wl}-Blargedynsym'
10693: ;;
10694: esac
10695: fi
10696: fi
10697:
10698: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10699: $as_echo "$ld_shlibs" >&6; }
10700: test "$ld_shlibs" = no && can_build_shared=no
10701:
10702: with_gnu_ld=$with_gnu_ld
10703:
10704:
10705:
10706:
10707:
10708:
10709:
10710:
10711:
10712:
10713:
10714:
10715:
10716:
10717:
10718: #
10719: # Do we need to explicitly link libc?
10720: #
10721: case "x$archive_cmds_need_lc" in
10722: x|xyes)
10723: # Assume -lc should be added
10724: archive_cmds_need_lc=yes
10725:
10726: if test "$enable_shared" = yes && test "$GCC" = yes; then
10727: case $archive_cmds in
10728: *'~'*)
10729: # FIXME: we may have to deal with multi-command sequences.
10730: ;;
10731: '$CC '*)
10732: # Test whether the compiler implicitly links with -lc since on some
10733: # systems, -lgcc has to come before -lc. If gcc already passes -lc
10734: # to ld, don't add -lc before -lgcc.
10735: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10736: $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10737: if ${lt_cv_archive_cmds_need_lc+:} false; then :
10738: $as_echo_n "(cached) " >&6
10739: else
10740: $RM conftest*
10741: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10742:
10743: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10744: (eval $ac_compile) 2>&5
10745: ac_status=$?
10746: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10747: test $ac_status = 0; } 2>conftest.err; then
10748: soname=conftest
10749: lib=conftest
10750: libobjs=conftest.$ac_objext
10751: deplibs=
10752: wl=$lt_prog_compiler_wl
10753: pic_flag=$lt_prog_compiler_pic
10754: compiler_flags=-v
10755: linker_flags=-v
10756: verstring=
10757: output_objdir=.
10758: libname=conftest
10759: lt_save_allow_undefined_flag=$allow_undefined_flag
10760: allow_undefined_flag=
10761: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10762: (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10763: ac_status=$?
10764: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10765: test $ac_status = 0; }
10766: then
10767: lt_cv_archive_cmds_need_lc=no
10768: else
10769: lt_cv_archive_cmds_need_lc=yes
10770: fi
10771: allow_undefined_flag=$lt_save_allow_undefined_flag
10772: else
10773: cat conftest.err 1>&5
10774: fi
10775: $RM conftest*
10776:
10777: fi
10778: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10779: $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10780: archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10781: ;;
10782: esac
10783: fi
10784: ;;
10785: esac
10786:
10787:
10788:
10789:
10790:
10791:
10792:
10793:
10794:
10795:
10796:
10797:
10798:
10799:
10800:
10801:
10802:
10803:
10804:
10805:
10806:
10807:
10808:
10809:
10810:
10811:
10812:
10813:
10814:
10815:
10816:
10817:
10818:
10819:
10820:
10821:
10822:
10823:
10824:
10825:
10826:
10827:
10828:
10829:
10830:
10831:
10832:
10833:
10834:
10835:
10836:
10837:
10838:
10839:
10840:
10841:
10842:
10843:
10844:
10845:
10846:
10847:
10848:
10849:
10850:
10851:
10852:
10853:
10854:
10855:
10856:
10857:
10858:
10859:
10860:
10861:
10862:
10863:
10864:
10865:
10866:
10867:
10868:
10869:
10870:
10871:
10872:
10873:
10874:
10875:
10876:
10877:
10878:
10879:
10880:
10881:
10882:
10883:
10884:
10885:
10886:
10887:
10888:
10889:
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: { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10939: $as_echo_n "checking dynamic linker characteristics... " >&6; }
10940:
10941: if test "$GCC" = yes; then
10942: case $host_os in
10943: darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10944: *) lt_awk_arg="/^libraries:/" ;;
10945: esac
10946: case $host_os in
10947: mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10948: *) lt_sed_strip_eq="s,=/,/,g" ;;
10949: esac
10950: lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10951: case $lt_search_path_spec in
10952: *\;*)
10953: # if the path contains ";" then we assume it to be the separator
10954: # otherwise default to the standard path separator (i.e. ":") - it is
10955: # assumed that no part of a normal pathname contains ";" but that should
10956: # okay in the real world where ";" in dirpaths is itself problematic.
10957: lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10958: ;;
10959: *)
10960: lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10961: ;;
10962: esac
10963: # Ok, now we have the path, separated by spaces, we can step through it
10964: # and add multilib dir if necessary.
10965: lt_tmp_lt_search_path_spec=
10966: lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10967: for lt_sys_path in $lt_search_path_spec; do
10968: if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10969: lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10970: else
10971: test -d "$lt_sys_path" && \
10972: lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10973: fi
10974: done
10975: lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10976: BEGIN {RS=" "; FS="/|\n";} {
10977: lt_foo="";
10978: lt_count=0;
10979: for (lt_i = NF; lt_i > 0; lt_i--) {
10980: if ($lt_i != "" && $lt_i != ".") {
10981: if ($lt_i == "..") {
10982: lt_count++;
10983: } else {
10984: if (lt_count == 0) {
10985: lt_foo="/" $lt_i lt_foo;
10986: } else {
10987: lt_count--;
10988: }
10989: }
10990: }
10991: }
10992: if (lt_foo != "") { lt_freq[lt_foo]++; }
10993: if (lt_freq[lt_foo] == 1) { print lt_foo; }
10994: }'`
10995: # AWK program above erroneously prepends '/' to C:/dos/paths
10996: # for these hosts.
10997: case $host_os in
10998: mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10999: $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11000: esac
11001: sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11002: else
11003: sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11004: fi
11005: library_names_spec=
11006: libname_spec='lib$name'
11007: soname_spec=
11008: shrext_cmds=".so"
11009: postinstall_cmds=
11010: postuninstall_cmds=
11011: finish_cmds=
11012: finish_eval=
11013: shlibpath_var=
11014: shlibpath_overrides_runpath=unknown
11015: version_type=none
11016: dynamic_linker="$host_os ld.so"
11017: sys_lib_dlsearch_path_spec="/lib /usr/lib"
11018: need_lib_prefix=unknown
11019: hardcode_into_libs=no
11020:
11021: # when you set need_version to no, make sure it does not cause -set_version
11022: # flags to be left without arguments
11023: need_version=unknown
11024:
11025: case $host_os in
11026: aix3*)
11027: version_type=linux # correct to gnu/linux during the next big refactor
11028: library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11029: shlibpath_var=LIBPATH
11030:
11031: # AIX 3 has no versioning support, so we append a major version to the name.
11032: soname_spec='${libname}${release}${shared_ext}$major'
11033: ;;
11034:
11035: aix[4-9]*)
11036: version_type=linux # correct to gnu/linux during the next big refactor
11037: need_lib_prefix=no
11038: need_version=no
11039: hardcode_into_libs=yes
11040: if test "$host_cpu" = ia64; then
11041: # AIX 5 supports IA64
11042: library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11043: shlibpath_var=LD_LIBRARY_PATH
11044: else
11045: # With GCC up to 2.95.x, collect2 would create an import file
11046: # for dependence libraries. The import file would start with
11047: # the line `#! .'. This would cause the generated library to
11048: # depend on `.', always an invalid library. This was fixed in
11049: # development snapshots of GCC prior to 3.0.
11050: case $host_os in
11051: aix4 | aix4.[01] | aix4.[01].*)
11052: if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11053: echo ' yes '
11054: echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11055: :
11056: else
11057: can_build_shared=no
11058: fi
11059: ;;
11060: esac
11061: # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11062: # soname into executable. Probably we can add versioning support to
11063: # collect2, so additional links can be useful in future.
11064: if test "$aix_use_runtimelinking" = yes; then
11065: # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11066: # instead of lib<name>.a to let people know that these are not
11067: # typical AIX shared libraries.
11068: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11069: else
11070: # We preserve .a as extension for shared libraries through AIX4.2
11071: # and later when we are not doing run time linking.
11072: library_names_spec='${libname}${release}.a $libname.a'
11073: soname_spec='${libname}${release}${shared_ext}$major'
11074: fi
11075: shlibpath_var=LIBPATH
11076: fi
11077: ;;
11078:
11079: amigaos*)
11080: case $host_cpu in
11081: powerpc)
11082: # Since July 2007 AmigaOS4 officially supports .so libraries.
11083: # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11084: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11085: ;;
11086: m68k)
11087: library_names_spec='$libname.ixlibrary $libname.a'
11088: # Create ${libname}_ixlibrary.a entries in /sys/libs.
11089: finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
11090: ;;
11091: esac
11092: ;;
11093:
11094: beos*)
11095: library_names_spec='${libname}${shared_ext}'
11096: dynamic_linker="$host_os ld.so"
11097: shlibpath_var=LIBRARY_PATH
11098: ;;
11099:
11100: bsdi[45]*)
11101: version_type=linux # correct to gnu/linux during the next big refactor
11102: need_version=no
11103: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11104: soname_spec='${libname}${release}${shared_ext}$major'
11105: finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11106: shlibpath_var=LD_LIBRARY_PATH
11107: sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11108: sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11109: # the default ld.so.conf also contains /usr/contrib/lib and
11110: # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11111: # libtool to hard-code these into programs
11112: ;;
11113:
11114: cygwin* | mingw* | pw32* | cegcc*)
11115: version_type=windows
11116: shrext_cmds=".dll"
11117: need_version=no
11118: need_lib_prefix=no
11119:
11120: case $GCC,$cc_basename in
11121: yes,*)
11122: # gcc
11123: library_names_spec='$libname.dll.a'
11124: # DLL is installed to $(libdir)/../bin by postinstall_cmds
11125: postinstall_cmds='base_file=`basename \${file}`~
11126: dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11127: dldir=$destdir/`dirname \$dlpath`~
11128: test -d \$dldir || mkdir -p \$dldir~
11129: $install_prog $dir/$dlname \$dldir/$dlname~
11130: chmod a+x \$dldir/$dlname~
11131: if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11132: eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11133: fi'
11134: postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11135: dlpath=$dir/\$dldll~
11136: $RM \$dlpath'
11137: shlibpath_overrides_runpath=yes
11138:
11139: case $host_os in
11140: cygwin*)
11141: # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11142: soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11143:
11144: sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11145: ;;
11146: mingw* | cegcc*)
11147: # MinGW DLLs use traditional 'lib' prefix
11148: soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11149: ;;
11150: pw32*)
11151: # pw32 DLLs use 'pw' prefix rather than 'lib'
11152: library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11153: ;;
11154: esac
11155: dynamic_linker='Win32 ld.exe'
11156: ;;
11157:
11158: *,cl*)
11159: # Native MSVC
11160: libname_spec='$name'
11161: soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11162: library_names_spec='${libname}.dll.lib'
11163:
11164: case $build_os in
11165: mingw*)
11166: sys_lib_search_path_spec=
11167: lt_save_ifs=$IFS
11168: IFS=';'
11169: for lt_path in $LIB
11170: do
11171: IFS=$lt_save_ifs
11172: # Let DOS variable expansion print the short 8.3 style file name.
11173: lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11174: sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11175: done
11176: IFS=$lt_save_ifs
11177: # Convert to MSYS style.
11178: sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11179: ;;
11180: cygwin*)
11181: # Convert to unix form, then to dos form, then back to unix form
11182: # but this time dos style (no spaces!) so that the unix form looks
11183: # like /cygdrive/c/PROGRA~1:/cygdr...
11184: sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11185: sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11186: sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11187: ;;
11188: *)
11189: sys_lib_search_path_spec="$LIB"
11190: if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11191: # It is most probably a Windows format PATH.
11192: sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11193: else
11194: sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11195: fi
11196: # FIXME: find the short name or the path components, as spaces are
11197: # common. (e.g. "Program Files" -> "PROGRA~1")
11198: ;;
11199: esac
11200:
11201: # DLL is installed to $(libdir)/../bin by postinstall_cmds
11202: postinstall_cmds='base_file=`basename \${file}`~
11203: dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11204: dldir=$destdir/`dirname \$dlpath`~
11205: test -d \$dldir || mkdir -p \$dldir~
11206: $install_prog $dir/$dlname \$dldir/$dlname'
11207: postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11208: dlpath=$dir/\$dldll~
11209: $RM \$dlpath'
11210: shlibpath_overrides_runpath=yes
11211: dynamic_linker='Win32 link.exe'
11212: ;;
11213:
11214: *)
11215: # Assume MSVC wrapper
11216: library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11217: dynamic_linker='Win32 ld.exe'
11218: ;;
11219: esac
11220: # FIXME: first we should search . and the directory the executable is in
11221: shlibpath_var=PATH
11222: ;;
11223:
11224: darwin* | rhapsody*)
11225: dynamic_linker="$host_os dyld"
11226: version_type=darwin
11227: need_lib_prefix=no
11228: need_version=no
11229: library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11230: soname_spec='${libname}${release}${major}$shared_ext'
11231: shlibpath_overrides_runpath=yes
11232: shlibpath_var=DYLD_LIBRARY_PATH
11233: shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11234:
11235: sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11236: sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11237: ;;
11238:
11239: dgux*)
11240: version_type=linux # correct to gnu/linux during the next big refactor
11241: need_lib_prefix=no
11242: need_version=no
11243: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11244: soname_spec='${libname}${release}${shared_ext}$major'
11245: shlibpath_var=LD_LIBRARY_PATH
11246: ;;
11247:
11248: freebsd* | dragonfly*)
11249: # DragonFly does not have aout. When/if they implement a new
11250: # versioning mechanism, adjust this.
11251: if test -x /usr/bin/objformat; then
11252: objformat=`/usr/bin/objformat`
11253: else
11254: case $host_os in
11255: freebsd[23].*) objformat=aout ;;
11256: *) objformat=elf ;;
11257: esac
11258: fi
11259: version_type=freebsd-$objformat
11260: case $version_type in
11261: freebsd-elf*)
11262: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11263: need_version=no
11264: need_lib_prefix=no
11265: ;;
11266: freebsd-*)
11267: library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11268: need_version=yes
11269: ;;
11270: esac
11271: shlibpath_var=LD_LIBRARY_PATH
11272: case $host_os in
11273: freebsd2.*)
11274: shlibpath_overrides_runpath=yes
11275: ;;
11276: freebsd3.[01]* | freebsdelf3.[01]*)
11277: shlibpath_overrides_runpath=yes
11278: hardcode_into_libs=yes
11279: ;;
11280: freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11281: freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11282: shlibpath_overrides_runpath=no
11283: hardcode_into_libs=yes
11284: ;;
11285: *) # from 4.6 on, and DragonFly
11286: shlibpath_overrides_runpath=yes
11287: hardcode_into_libs=yes
11288: ;;
11289: esac
11290: ;;
11291:
11292: haiku*)
11293: version_type=linux # correct to gnu/linux during the next big refactor
11294: need_lib_prefix=no
11295: need_version=no
11296: dynamic_linker="$host_os runtime_loader"
11297: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11298: soname_spec='${libname}${release}${shared_ext}$major'
11299: shlibpath_var=LIBRARY_PATH
11300: shlibpath_overrides_runpath=yes
11301: sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11302: hardcode_into_libs=yes
11303: ;;
11304:
11305: hpux9* | hpux10* | hpux11*)
11306: # Give a soname corresponding to the major version so that dld.sl refuses to
11307: # link against other versions.
11308: version_type=sunos
11309: need_lib_prefix=no
11310: need_version=no
11311: case $host_cpu in
11312: ia64*)
11313: shrext_cmds='.so'
11314: hardcode_into_libs=yes
11315: dynamic_linker="$host_os dld.so"
11316: shlibpath_var=LD_LIBRARY_PATH
11317: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11318: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11319: soname_spec='${libname}${release}${shared_ext}$major'
11320: if test "X$HPUX_IA64_MODE" = X32; then
11321: sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11322: else
11323: sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11324: fi
11325: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11326: ;;
11327: hppa*64*)
11328: shrext_cmds='.sl'
11329: hardcode_into_libs=yes
11330: dynamic_linker="$host_os dld.sl"
11331: shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11332: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11333: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11334: soname_spec='${libname}${release}${shared_ext}$major'
11335: sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11336: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11337: ;;
11338: *)
11339: shrext_cmds='.sl'
11340: dynamic_linker="$host_os dld.sl"
11341: shlibpath_var=SHLIB_PATH
11342: shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11343: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11344: soname_spec='${libname}${release}${shared_ext}$major'
11345: ;;
11346: esac
11347: # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11348: postinstall_cmds='chmod 555 $lib'
11349: # or fails outright, so override atomically:
11350: install_override_mode=555
11351: ;;
11352:
11353: interix[3-9]*)
11354: version_type=linux # correct to gnu/linux during the next big refactor
11355: need_lib_prefix=no
11356: need_version=no
11357: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11358: soname_spec='${libname}${release}${shared_ext}$major'
11359: dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11360: shlibpath_var=LD_LIBRARY_PATH
11361: shlibpath_overrides_runpath=no
11362: hardcode_into_libs=yes
11363: ;;
11364:
11365: irix5* | irix6* | nonstopux*)
11366: case $host_os in
11367: nonstopux*) version_type=nonstopux ;;
11368: *)
11369: if test "$lt_cv_prog_gnu_ld" = yes; then
11370: version_type=linux # correct to gnu/linux during the next big refactor
11371: else
11372: version_type=irix
11373: fi ;;
11374: esac
11375: need_lib_prefix=no
11376: need_version=no
11377: soname_spec='${libname}${release}${shared_ext}$major'
11378: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11379: case $host_os in
11380: irix5* | nonstopux*)
11381: libsuff= shlibsuff=
11382: ;;
11383: *)
11384: case $LD in # libtool.m4 will add one of these switches to LD
11385: *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11386: libsuff= shlibsuff= libmagic=32-bit;;
11387: *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11388: libsuff=32 shlibsuff=N32 libmagic=N32;;
11389: *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11390: libsuff=64 shlibsuff=64 libmagic=64-bit;;
11391: *) libsuff= shlibsuff= libmagic=never-match;;
11392: esac
11393: ;;
11394: esac
11395: shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11396: shlibpath_overrides_runpath=no
11397: sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11398: sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11399: hardcode_into_libs=yes
11400: ;;
11401:
11402: # No shared lib support for Linux oldld, aout, or coff.
11403: linux*oldld* | linux*aout* | linux*coff*)
11404: dynamic_linker=no
11405: ;;
11406:
11407: # This must be glibc/ELF.
11408: linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11409: version_type=linux # correct to gnu/linux during the next big refactor
11410: need_lib_prefix=no
11411: need_version=no
11412: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11413: soname_spec='${libname}${release}${shared_ext}$major'
11414: finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11415: shlibpath_var=LD_LIBRARY_PATH
11416: shlibpath_overrides_runpath=no
11417:
11418: # Some binutils ld are patched to set DT_RUNPATH
11419: if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11420: $as_echo_n "(cached) " >&6
11421: else
11422: lt_cv_shlibpath_overrides_runpath=no
11423: save_LDFLAGS=$LDFLAGS
11424: save_libdir=$libdir
11425: eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11426: LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11427: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11428: /* end confdefs.h. */
11429:
11430: int
11431: main ()
11432: {
11433:
11434: ;
11435: return 0;
11436: }
11437: _ACEOF
11438: if ac_fn_c_try_link "$LINENO"; then :
11439: if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11440: lt_cv_shlibpath_overrides_runpath=yes
11441: fi
11442: fi
11443: rm -f core conftest.err conftest.$ac_objext \
11444: conftest$ac_exeext conftest.$ac_ext
11445: LDFLAGS=$save_LDFLAGS
11446: libdir=$save_libdir
11447:
11448: fi
11449:
11450: shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11451:
11452: # This implies no fast_install, which is unacceptable.
11453: # Some rework will be needed to allow for fast_install
11454: # before this can be enabled.
11455: hardcode_into_libs=yes
11456:
11457: # Append ld.so.conf contents to the search path
11458: if test -f /etc/ld.so.conf; then
11459: 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' ' '`
11460: sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11461: fi
11462:
11463: # We used to test for /lib/ld.so.1 and disable shared libraries on
11464: # powerpc, because MkLinux only supported shared libraries with the
11465: # GNU dynamic linker. Since this was broken with cross compilers,
11466: # most powerpc-linux boxes support dynamic linking these days and
11467: # people can always --disable-shared, the test was removed, and we
11468: # assume the GNU/Linux dynamic linker is in use.
11469: dynamic_linker='GNU/Linux ld.so'
11470: ;;
11471:
11472: netbsdelf*-gnu)
11473: version_type=linux
11474: need_lib_prefix=no
11475: need_version=no
11476: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11477: soname_spec='${libname}${release}${shared_ext}$major'
11478: shlibpath_var=LD_LIBRARY_PATH
11479: shlibpath_overrides_runpath=no
11480: hardcode_into_libs=yes
11481: dynamic_linker='NetBSD ld.elf_so'
11482: ;;
11483:
11484: netbsd*)
11485: version_type=sunos
11486: need_lib_prefix=no
11487: need_version=no
11488: if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11489: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11490: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11491: dynamic_linker='NetBSD (a.out) ld.so'
11492: else
11493: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11494: soname_spec='${libname}${release}${shared_ext}$major'
11495: dynamic_linker='NetBSD ld.elf_so'
11496: fi
11497: shlibpath_var=LD_LIBRARY_PATH
11498: shlibpath_overrides_runpath=yes
11499: hardcode_into_libs=yes
11500: ;;
11501:
11502: newsos6)
11503: version_type=linux # correct to gnu/linux during the next big refactor
11504: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11505: shlibpath_var=LD_LIBRARY_PATH
11506: shlibpath_overrides_runpath=yes
11507: ;;
11508:
11509: *nto* | *qnx*)
11510: version_type=qnx
11511: need_lib_prefix=no
11512: need_version=no
11513: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11514: soname_spec='${libname}${release}${shared_ext}$major'
11515: shlibpath_var=LD_LIBRARY_PATH
11516: shlibpath_overrides_runpath=no
11517: hardcode_into_libs=yes
11518: dynamic_linker='ldqnx.so'
11519: ;;
11520:
11521: openbsd*)
11522: version_type=sunos
11523: sys_lib_dlsearch_path_spec="/usr/lib"
11524: need_lib_prefix=no
11525: # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11526: case $host_os in
11527: openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11528: *) need_version=no ;;
11529: esac
11530: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11531: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11532: shlibpath_var=LD_LIBRARY_PATH
11533: if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11534: case $host_os in
11535: openbsd2.[89] | openbsd2.[89].*)
11536: shlibpath_overrides_runpath=no
11537: ;;
11538: *)
11539: shlibpath_overrides_runpath=yes
11540: ;;
11541: esac
11542: else
11543: shlibpath_overrides_runpath=yes
11544: fi
11545: ;;
11546:
11547: os2*)
11548: libname_spec='$name'
11549: shrext_cmds=".dll"
11550: need_lib_prefix=no
11551: library_names_spec='$libname${shared_ext} $libname.a'
11552: dynamic_linker='OS/2 ld.exe'
11553: shlibpath_var=LIBPATH
11554: ;;
11555:
11556: osf3* | osf4* | osf5*)
11557: version_type=osf
11558: need_lib_prefix=no
11559: need_version=no
11560: soname_spec='${libname}${release}${shared_ext}$major'
11561: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11562: shlibpath_var=LD_LIBRARY_PATH
11563: sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11564: sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11565: ;;
11566:
11567: rdos*)
11568: dynamic_linker=no
11569: ;;
11570:
11571: solaris*)
11572: version_type=linux # correct to gnu/linux during the next big refactor
11573: need_lib_prefix=no
11574: need_version=no
11575: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11576: soname_spec='${libname}${release}${shared_ext}$major'
11577: shlibpath_var=LD_LIBRARY_PATH
11578: shlibpath_overrides_runpath=yes
11579: hardcode_into_libs=yes
11580: # ldd complains unless libraries are executable
11581: postinstall_cmds='chmod +x $lib'
11582: ;;
11583:
11584: sunos4*)
11585: version_type=sunos
11586: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11587: finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11588: shlibpath_var=LD_LIBRARY_PATH
11589: shlibpath_overrides_runpath=yes
11590: if test "$with_gnu_ld" = yes; then
11591: need_lib_prefix=no
11592: fi
11593: need_version=yes
11594: ;;
11595:
11596: sysv4 | sysv4.3*)
11597: version_type=linux # correct to gnu/linux during the next big refactor
11598: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11599: soname_spec='${libname}${release}${shared_ext}$major'
11600: shlibpath_var=LD_LIBRARY_PATH
11601: case $host_vendor in
11602: sni)
11603: shlibpath_overrides_runpath=no
11604: need_lib_prefix=no
11605: runpath_var=LD_RUN_PATH
11606: ;;
11607: siemens)
11608: need_lib_prefix=no
11609: ;;
11610: motorola)
11611: need_lib_prefix=no
11612: need_version=no
11613: shlibpath_overrides_runpath=no
11614: sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11615: ;;
11616: esac
11617: ;;
11618:
11619: sysv4*MP*)
11620: if test -d /usr/nec ;then
11621: version_type=linux # correct to gnu/linux during the next big refactor
11622: library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11623: soname_spec='$libname${shared_ext}.$major'
11624: shlibpath_var=LD_LIBRARY_PATH
11625: fi
11626: ;;
11627:
11628: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11629: version_type=freebsd-elf
11630: need_lib_prefix=no
11631: need_version=no
11632: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11633: soname_spec='${libname}${release}${shared_ext}$major'
11634: shlibpath_var=LD_LIBRARY_PATH
11635: shlibpath_overrides_runpath=yes
11636: hardcode_into_libs=yes
11637: if test "$with_gnu_ld" = yes; then
11638: sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11639: else
11640: sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11641: case $host_os in
11642: sco3.2v5*)
11643: sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11644: ;;
11645: esac
11646: fi
11647: sys_lib_dlsearch_path_spec='/usr/lib'
11648: ;;
11649:
11650: tpf*)
11651: # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11652: version_type=linux # correct to gnu/linux during the next big refactor
11653: need_lib_prefix=no
11654: need_version=no
11655: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11656: shlibpath_var=LD_LIBRARY_PATH
11657: shlibpath_overrides_runpath=no
11658: hardcode_into_libs=yes
11659: ;;
11660:
11661: uts4*)
11662: version_type=linux # correct to gnu/linux during the next big refactor
11663: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11664: soname_spec='${libname}${release}${shared_ext}$major'
11665: shlibpath_var=LD_LIBRARY_PATH
11666: ;;
11667:
11668: *)
11669: dynamic_linker=no
11670: ;;
11671: esac
11672: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11673: $as_echo "$dynamic_linker" >&6; }
11674: test "$dynamic_linker" = no && can_build_shared=no
11675:
11676: variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11677: if test "$GCC" = yes; then
11678: variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11679: fi
11680:
11681: if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11682: sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11683: fi
11684: if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11685: sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11686: fi
11687:
11688:
11689:
11690:
11691:
11692:
11693:
11694:
11695:
11696:
11697:
11698:
11699:
11700:
11701:
11702:
11703:
11704:
11705:
11706:
11707:
11708:
11709:
11710:
11711:
11712:
11713:
11714:
11715:
11716:
11717:
11718:
11719:
11720:
11721:
11722:
11723:
11724:
11725:
11726:
11727:
11728:
11729:
11730:
11731:
11732:
11733:
11734:
11735:
11736:
11737:
11738:
11739:
11740:
11741:
11742:
11743:
11744:
11745:
11746:
11747:
11748:
11749:
11750:
11751:
11752:
11753:
11754:
11755:
11756:
11757:
11758:
11759:
11760:
11761:
11762:
11763:
11764:
11765:
11766:
11767:
11768:
11769:
11770:
11771:
11772:
11773:
11774:
11775:
11776:
11777:
11778:
11779: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11780: $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11781: hardcode_action=
11782: if test -n "$hardcode_libdir_flag_spec" ||
11783: test -n "$runpath_var" ||
11784: test "X$hardcode_automatic" = "Xyes" ; then
11785:
11786: # We can hardcode non-existent directories.
11787: if test "$hardcode_direct" != no &&
11788: # If the only mechanism to avoid hardcoding is shlibpath_var, we
11789: # have to relink, otherwise we might link with an installed library
11790: # when we should be linking with a yet-to-be-installed one
11791: ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11792: test "$hardcode_minus_L" != no; then
11793: # Linking always hardcodes the temporary library directory.
11794: hardcode_action=relink
11795: else
11796: # We can link without hardcoding, and we can hardcode nonexisting dirs.
11797: hardcode_action=immediate
11798: fi
11799: else
11800: # We cannot hardcode anything, or else we can only hardcode existing
11801: # directories.
11802: hardcode_action=unsupported
11803: fi
11804: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11805: $as_echo "$hardcode_action" >&6; }
11806:
11807: if test "$hardcode_action" = relink ||
11808: test "$inherit_rpath" = yes; then
11809: # Fast installation is not supported
11810: enable_fast_install=no
11811: elif test "$shlibpath_overrides_runpath" = yes ||
11812: test "$enable_shared" = no; then
11813: # Fast installation is not necessary
11814: enable_fast_install=needless
11815: fi
11816:
11817:
11818:
11819:
11820:
11821:
11822: if test "x$enable_dlopen" != xyes; then
11823: enable_dlopen=unknown
11824: enable_dlopen_self=unknown
11825: enable_dlopen_self_static=unknown
11826: else
11827: lt_cv_dlopen=no
11828: lt_cv_dlopen_libs=
11829:
11830: case $host_os in
11831: beos*)
11832: lt_cv_dlopen="load_add_on"
11833: lt_cv_dlopen_libs=
11834: lt_cv_dlopen_self=yes
11835: ;;
11836:
11837: mingw* | pw32* | cegcc*)
11838: lt_cv_dlopen="LoadLibrary"
11839: lt_cv_dlopen_libs=
11840: ;;
11841:
11842: cygwin*)
11843: lt_cv_dlopen="dlopen"
11844: lt_cv_dlopen_libs=
11845: ;;
11846:
11847: darwin*)
11848: # if libdl is installed we need to link against it
11849: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11850: $as_echo_n "checking for dlopen in -ldl... " >&6; }
11851: if ${ac_cv_lib_dl_dlopen+:} false; then :
11852: $as_echo_n "(cached) " >&6
11853: else
11854: ac_check_lib_save_LIBS=$LIBS
11855: LIBS="-ldl $LIBS"
11856: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11857: /* end confdefs.h. */
11858:
11859: /* Override any GCC internal prototype to avoid an error.
11860: Use char because int might match the return type of a GCC
11861: builtin and then its argument prototype would still apply. */
11862: #ifdef __cplusplus
11863: extern "C"
11864: #endif
11865: char dlopen ();
11866: int
11867: main ()
11868: {
11869: return dlopen ();
11870: ;
11871: return 0;
11872: }
11873: _ACEOF
11874: if ac_fn_c_try_link "$LINENO"; then :
11875: ac_cv_lib_dl_dlopen=yes
11876: else
11877: ac_cv_lib_dl_dlopen=no
11878: fi
11879: rm -f core conftest.err conftest.$ac_objext \
11880: conftest$ac_exeext conftest.$ac_ext
11881: LIBS=$ac_check_lib_save_LIBS
11882: fi
11883: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11884: $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11885: if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11886: lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11887: else
11888:
11889: lt_cv_dlopen="dyld"
11890: lt_cv_dlopen_libs=
11891: lt_cv_dlopen_self=yes
11892:
11893: fi
11894:
11895: ;;
11896:
11897: *)
11898: ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11899: if test "x$ac_cv_func_shl_load" = xyes; then :
11900: lt_cv_dlopen="shl_load"
11901: else
11902: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11903: $as_echo_n "checking for shl_load in -ldld... " >&6; }
11904: if ${ac_cv_lib_dld_shl_load+:} false; then :
11905: $as_echo_n "(cached) " >&6
11906: else
11907: ac_check_lib_save_LIBS=$LIBS
11908: LIBS="-ldld $LIBS"
11909: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11910: /* end confdefs.h. */
11911:
11912: /* Override any GCC internal prototype to avoid an error.
11913: Use char because int might match the return type of a GCC
11914: builtin and then its argument prototype would still apply. */
11915: #ifdef __cplusplus
11916: extern "C"
11917: #endif
11918: char shl_load ();
11919: int
11920: main ()
11921: {
11922: return shl_load ();
11923: ;
11924: return 0;
11925: }
11926: _ACEOF
11927: if ac_fn_c_try_link "$LINENO"; then :
11928: ac_cv_lib_dld_shl_load=yes
11929: else
11930: ac_cv_lib_dld_shl_load=no
11931: fi
11932: rm -f core conftest.err conftest.$ac_objext \
11933: conftest$ac_exeext conftest.$ac_ext
11934: LIBS=$ac_check_lib_save_LIBS
11935: fi
11936: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11937: $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11938: if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11939: lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11940: else
11941: ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11942: if test "x$ac_cv_func_dlopen" = xyes; then :
11943: lt_cv_dlopen="dlopen"
11944: else
11945: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11946: $as_echo_n "checking for dlopen in -ldl... " >&6; }
11947: if ${ac_cv_lib_dl_dlopen+:} false; then :
11948: $as_echo_n "(cached) " >&6
11949: else
11950: ac_check_lib_save_LIBS=$LIBS
11951: LIBS="-ldl $LIBS"
11952: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11953: /* end confdefs.h. */
11954:
11955: /* Override any GCC internal prototype to avoid an error.
11956: Use char because int might match the return type of a GCC
11957: builtin and then its argument prototype would still apply. */
11958: #ifdef __cplusplus
11959: extern "C"
11960: #endif
11961: char dlopen ();
11962: int
11963: main ()
11964: {
11965: return dlopen ();
11966: ;
11967: return 0;
11968: }
11969: _ACEOF
11970: if ac_fn_c_try_link "$LINENO"; then :
11971: ac_cv_lib_dl_dlopen=yes
11972: else
11973: ac_cv_lib_dl_dlopen=no
11974: fi
11975: rm -f core conftest.err conftest.$ac_objext \
11976: conftest$ac_exeext conftest.$ac_ext
11977: LIBS=$ac_check_lib_save_LIBS
11978: fi
11979: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11980: $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11981: if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11982: lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11983: else
11984: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11985: $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11986: if ${ac_cv_lib_svld_dlopen+:} false; then :
11987: $as_echo_n "(cached) " >&6
11988: else
11989: ac_check_lib_save_LIBS=$LIBS
11990: LIBS="-lsvld $LIBS"
11991: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11992: /* end confdefs.h. */
11993:
11994: /* Override any GCC internal prototype to avoid an error.
11995: Use char because int might match the return type of a GCC
11996: builtin and then its argument prototype would still apply. */
11997: #ifdef __cplusplus
11998: extern "C"
11999: #endif
12000: char dlopen ();
12001: int
12002: main ()
12003: {
12004: return dlopen ();
12005: ;
12006: return 0;
12007: }
12008: _ACEOF
12009: if ac_fn_c_try_link "$LINENO"; then :
12010: ac_cv_lib_svld_dlopen=yes
12011: else
12012: ac_cv_lib_svld_dlopen=no
12013: fi
12014: rm -f core conftest.err conftest.$ac_objext \
12015: conftest$ac_exeext conftest.$ac_ext
12016: LIBS=$ac_check_lib_save_LIBS
12017: fi
12018: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12019: $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12020: if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12021: lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12022: else
12023: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12024: $as_echo_n "checking for dld_link in -ldld... " >&6; }
12025: if ${ac_cv_lib_dld_dld_link+:} false; then :
12026: $as_echo_n "(cached) " >&6
12027: else
12028: ac_check_lib_save_LIBS=$LIBS
12029: LIBS="-ldld $LIBS"
12030: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12031: /* end confdefs.h. */
12032:
12033: /* Override any GCC internal prototype to avoid an error.
12034: Use char because int might match the return type of a GCC
12035: builtin and then its argument prototype would still apply. */
12036: #ifdef __cplusplus
12037: extern "C"
12038: #endif
12039: char dld_link ();
12040: int
12041: main ()
12042: {
12043: return dld_link ();
12044: ;
12045: return 0;
12046: }
12047: _ACEOF
12048: if ac_fn_c_try_link "$LINENO"; then :
12049: ac_cv_lib_dld_dld_link=yes
12050: else
12051: ac_cv_lib_dld_dld_link=no
12052: fi
12053: rm -f core conftest.err conftest.$ac_objext \
12054: conftest$ac_exeext conftest.$ac_ext
12055: LIBS=$ac_check_lib_save_LIBS
12056: fi
12057: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12058: $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12059: if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12060: lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12061: fi
12062:
12063:
12064: fi
12065:
12066:
12067: fi
12068:
12069:
12070: fi
12071:
12072:
12073: fi
12074:
12075:
12076: fi
12077:
12078: ;;
12079: esac
12080:
12081: if test "x$lt_cv_dlopen" != xno; then
12082: enable_dlopen=yes
12083: else
12084: enable_dlopen=no
12085: fi
12086:
12087: case $lt_cv_dlopen in
12088: dlopen)
12089: save_CPPFLAGS="$CPPFLAGS"
12090: test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12091:
12092: save_LDFLAGS="$LDFLAGS"
12093: wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12094:
12095: save_LIBS="$LIBS"
12096: LIBS="$lt_cv_dlopen_libs $LIBS"
12097:
12098: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12099: $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12100: if ${lt_cv_dlopen_self+:} false; then :
12101: $as_echo_n "(cached) " >&6
12102: else
12103: if test "$cross_compiling" = yes; then :
12104: lt_cv_dlopen_self=cross
12105: else
12106: lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12107: lt_status=$lt_dlunknown
12108: cat > conftest.$ac_ext <<_LT_EOF
12109: #line $LINENO "configure"
12110: #include "confdefs.h"
12111:
12112: #if HAVE_DLFCN_H
12113: #include <dlfcn.h>
12114: #endif
12115:
12116: #include <stdio.h>
12117:
12118: #ifdef RTLD_GLOBAL
12119: # define LT_DLGLOBAL RTLD_GLOBAL
12120: #else
12121: # ifdef DL_GLOBAL
12122: # define LT_DLGLOBAL DL_GLOBAL
12123: # else
12124: # define LT_DLGLOBAL 0
12125: # endif
12126: #endif
12127:
12128: /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12129: find out it does not work in some platform. */
12130: #ifndef LT_DLLAZY_OR_NOW
12131: # ifdef RTLD_LAZY
12132: # define LT_DLLAZY_OR_NOW RTLD_LAZY
12133: # else
12134: # ifdef DL_LAZY
12135: # define LT_DLLAZY_OR_NOW DL_LAZY
12136: # else
12137: # ifdef RTLD_NOW
12138: # define LT_DLLAZY_OR_NOW RTLD_NOW
12139: # else
12140: # ifdef DL_NOW
12141: # define LT_DLLAZY_OR_NOW DL_NOW
12142: # else
12143: # define LT_DLLAZY_OR_NOW 0
12144: # endif
12145: # endif
12146: # endif
12147: # endif
12148: #endif
12149:
12150: /* When -fvisbility=hidden is used, assume the code has been annotated
12151: correspondingly for the symbols needed. */
12152: #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12153: int fnord () __attribute__((visibility("default")));
12154: #endif
12155:
12156: int fnord () { return 42; }
12157: int main ()
12158: {
12159: void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12160: int status = $lt_dlunknown;
12161:
12162: if (self)
12163: {
12164: if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12165: else
12166: {
12167: if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12168: else puts (dlerror ());
12169: }
12170: /* dlclose (self); */
12171: }
12172: else
12173: puts (dlerror ());
12174:
12175: return status;
12176: }
12177: _LT_EOF
12178: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12179: (eval $ac_link) 2>&5
12180: ac_status=$?
12181: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12182: test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12183: (./conftest; exit; ) >&5 2>/dev/null
12184: lt_status=$?
12185: case x$lt_status in
12186: x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12187: x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12188: x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12189: esac
12190: else :
12191: # compilation failed
12192: lt_cv_dlopen_self=no
12193: fi
12194: fi
12195: rm -fr conftest*
12196:
12197:
12198: fi
12199: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12200: $as_echo "$lt_cv_dlopen_self" >&6; }
12201:
12202: if test "x$lt_cv_dlopen_self" = xyes; then
12203: wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12204: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12205: $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12206: if ${lt_cv_dlopen_self_static+:} false; then :
12207: $as_echo_n "(cached) " >&6
12208: else
12209: if test "$cross_compiling" = yes; then :
12210: lt_cv_dlopen_self_static=cross
12211: else
12212: lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12213: lt_status=$lt_dlunknown
12214: cat > conftest.$ac_ext <<_LT_EOF
12215: #line $LINENO "configure"
12216: #include "confdefs.h"
12217:
12218: #if HAVE_DLFCN_H
12219: #include <dlfcn.h>
12220: #endif
12221:
12222: #include <stdio.h>
12223:
12224: #ifdef RTLD_GLOBAL
12225: # define LT_DLGLOBAL RTLD_GLOBAL
12226: #else
12227: # ifdef DL_GLOBAL
12228: # define LT_DLGLOBAL DL_GLOBAL
12229: # else
12230: # define LT_DLGLOBAL 0
12231: # endif
12232: #endif
12233:
12234: /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12235: find out it does not work in some platform. */
12236: #ifndef LT_DLLAZY_OR_NOW
12237: # ifdef RTLD_LAZY
12238: # define LT_DLLAZY_OR_NOW RTLD_LAZY
12239: # else
12240: # ifdef DL_LAZY
12241: # define LT_DLLAZY_OR_NOW DL_LAZY
12242: # else
12243: # ifdef RTLD_NOW
12244: # define LT_DLLAZY_OR_NOW RTLD_NOW
12245: # else
12246: # ifdef DL_NOW
12247: # define LT_DLLAZY_OR_NOW DL_NOW
12248: # else
12249: # define LT_DLLAZY_OR_NOW 0
12250: # endif
12251: # endif
12252: # endif
12253: # endif
12254: #endif
12255:
12256: /* When -fvisbility=hidden is used, assume the code has been annotated
12257: correspondingly for the symbols needed. */
12258: #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12259: int fnord () __attribute__((visibility("default")));
12260: #endif
12261:
12262: int fnord () { return 42; }
12263: int main ()
12264: {
12265: void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12266: int status = $lt_dlunknown;
12267:
12268: if (self)
12269: {
12270: if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12271: else
12272: {
12273: if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12274: else puts (dlerror ());
12275: }
12276: /* dlclose (self); */
12277: }
12278: else
12279: puts (dlerror ());
12280:
12281: return status;
12282: }
12283: _LT_EOF
12284: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12285: (eval $ac_link) 2>&5
12286: ac_status=$?
12287: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12288: test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12289: (./conftest; exit; ) >&5 2>/dev/null
12290: lt_status=$?
12291: case x$lt_status in
12292: x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12293: x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12294: x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12295: esac
12296: else :
12297: # compilation failed
12298: lt_cv_dlopen_self_static=no
12299: fi
12300: fi
12301: rm -fr conftest*
12302:
12303:
12304: fi
12305: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12306: $as_echo "$lt_cv_dlopen_self_static" >&6; }
12307: fi
12308:
12309: CPPFLAGS="$save_CPPFLAGS"
12310: LDFLAGS="$save_LDFLAGS"
12311: LIBS="$save_LIBS"
12312: ;;
12313: esac
12314:
12315: case $lt_cv_dlopen_self in
12316: yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12317: *) enable_dlopen_self=unknown ;;
12318: esac
12319:
12320: case $lt_cv_dlopen_self_static in
12321: yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12322: *) enable_dlopen_self_static=unknown ;;
12323: esac
12324: fi
12325:
12326:
12327:
12328:
12329:
12330:
12331:
12332:
12333:
12334:
12335:
12336:
12337:
12338:
12339:
12340:
12341:
12342: striplib=
12343: old_striplib=
12344: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12345: $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12346: if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12347: test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12348: test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12349: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12350: $as_echo "yes" >&6; }
12351: else
12352: # FIXME - insert some real tests, host_os isn't really good enough
12353: case $host_os in
12354: darwin*)
12355: if test -n "$STRIP" ; then
12356: striplib="$STRIP -x"
12357: old_striplib="$STRIP -S"
12358: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12359: $as_echo "yes" >&6; }
12360: else
12361: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12362: $as_echo "no" >&6; }
12363: fi
12364: ;;
12365: *)
12366: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12367: $as_echo "no" >&6; }
12368: ;;
12369: esac
12370: fi
12371:
12372:
12373:
12374:
12375:
12376:
12377:
12378:
12379:
12380:
12381:
12382:
12383: # Report which library types will actually be built
12384: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12385: $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12386: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12387: $as_echo "$can_build_shared" >&6; }
12388:
12389: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12390: $as_echo_n "checking whether to build shared libraries... " >&6; }
12391: test "$can_build_shared" = "no" && enable_shared=no
12392:
12393: # On AIX, shared libraries and static libraries use the same namespace, and
12394: # are all built from PIC.
12395: case $host_os in
12396: aix3*)
12397: test "$enable_shared" = yes && enable_static=no
12398: if test -n "$RANLIB"; then
12399: archive_cmds="$archive_cmds~\$RANLIB \$lib"
12400: postinstall_cmds='$RANLIB $lib'
12401: fi
12402: ;;
12403:
12404: aix[4-9]*)
12405: if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12406: test "$enable_shared" = yes && enable_static=no
12407: fi
12408: ;;
12409: esac
12410: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12411: $as_echo "$enable_shared" >&6; }
12412:
12413: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12414: $as_echo_n "checking whether to build static libraries... " >&6; }
12415: # Make sure either enable_shared or enable_static is yes.
12416: test "$enable_shared" = yes || enable_static=yes
12417: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12418: $as_echo "$enable_static" >&6; }
12419:
12420:
12421:
12422:
12423: fi
12424: ac_ext=c
12425: ac_cpp='$CPP $CPPFLAGS'
12426: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12427: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12428: ac_compiler_gnu=$ac_cv_c_compiler_gnu
12429:
12430: CC="$lt_save_CC"
12431:
12432:
12433:
12434:
12435:
12436:
12437:
12438:
12439:
12440:
12441:
12442:
12443:
12444:
12445:
12446: ac_config_commands="$ac_config_commands libtool"
12447:
12448:
12449:
12450:
12451: # Only expand once:
12452:
12453:
12454:
12455: CPPFLAGS="${CPPFLAGS} -D_REENTRANT -D__EXTENSIONS__"
12456:
12457: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
12458: $as_echo_n "checking for ANSI C header files... " >&6; }
12459: if ${ac_cv_header_stdc+:} false; then :
12460: $as_echo_n "(cached) " >&6
12461: else
12462: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12463: /* end confdefs.h. */
12464: #include <stdlib.h>
12465: #include <stdarg.h>
12466: #include <string.h>
12467: #include <float.h>
12468:
12469: int
12470: main ()
12471: {
12472:
12473: ;
12474: return 0;
12475: }
12476: _ACEOF
12477: if ac_fn_c_try_compile "$LINENO"; then :
12478: ac_cv_header_stdc=yes
12479: else
12480: ac_cv_header_stdc=no
12481: fi
12482: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12483:
12484: if test $ac_cv_header_stdc = yes; then
12485: # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12486: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12487: /* end confdefs.h. */
12488: #include <string.h>
12489:
12490: _ACEOF
12491: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12492: $EGREP "memchr" >/dev/null 2>&1; then :
12493:
12494: else
12495: ac_cv_header_stdc=no
12496: fi
12497: rm -f conftest*
12498:
12499: fi
12500:
12501: if test $ac_cv_header_stdc = yes; then
12502: # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12503: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12504: /* end confdefs.h. */
12505: #include <stdlib.h>
12506:
12507: _ACEOF
12508: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12509: $EGREP "free" >/dev/null 2>&1; then :
12510:
12511: else
12512: ac_cv_header_stdc=no
12513: fi
12514: rm -f conftest*
12515:
12516: fi
12517:
12518: if test $ac_cv_header_stdc = yes; then
12519: # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12520: if test "$cross_compiling" = yes; then :
12521: :
12522: else
12523: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12524: /* end confdefs.h. */
12525: #include <ctype.h>
12526: #include <stdlib.h>
12527: #if ((' ' & 0x0FF) == 0x020)
12528: # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12529: # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12530: #else
12531: # define ISLOWER(c) \
12532: (('a' <= (c) && (c) <= 'i') \
12533: || ('j' <= (c) && (c) <= 'r') \
12534: || ('s' <= (c) && (c) <= 'z'))
12535: # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12536: #endif
12537:
12538: #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12539: int
12540: main ()
12541: {
12542: int i;
12543: for (i = 0; i < 256; i++)
12544: if (XOR (islower (i), ISLOWER (i))
12545: || toupper (i) != TOUPPER (i))
12546: return 2;
12547: return 0;
12548: }
12549: _ACEOF
12550: if ac_fn_c_try_run "$LINENO"; then :
12551:
12552: else
12553: ac_cv_header_stdc=no
12554: fi
12555: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12556: conftest.$ac_objext conftest.beam conftest.$ac_ext
12557: fi
12558:
12559: fi
12560: fi
12561: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
12562: $as_echo "$ac_cv_header_stdc" >&6; }
12563: if test $ac_cv_header_stdc = yes; then
12564:
12565: $as_echo "#define STDC_HEADERS 1" >>confdefs.h
12566:
12567: fi
12568:
12569: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
12570: $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
12571: if ${ac_cv_header_sys_wait_h+:} false; then :
12572: $as_echo_n "(cached) " >&6
12573: else
12574: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12575: /* end confdefs.h. */
12576: #include <sys/types.h>
12577: #include <sys/wait.h>
12578: #ifndef WEXITSTATUS
12579: # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
12580: #endif
12581: #ifndef WIFEXITED
12582: # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
12583: #endif
12584:
12585: int
12586: main ()
12587: {
12588: int s;
12589: wait (&s);
12590: s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
12591: ;
12592: return 0;
12593: }
12594: _ACEOF
12595: if ac_fn_c_try_compile "$LINENO"; then :
12596: ac_cv_header_sys_wait_h=yes
12597: else
12598: ac_cv_header_sys_wait_h=no
12599: fi
12600: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12601: fi
12602: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
12603: $as_echo "$ac_cv_header_sys_wait_h" >&6; }
12604: if test $ac_cv_header_sys_wait_h = yes; then
12605:
12606: $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
12607:
12608: fi
12609:
12610: for ac_header in arpa/inet.h fcntl.h netinet/in.h stdlib.h string.h \
12611: sys/socket.h sys/time.h unistd.h sys/sendfile.h sys/uio.h \
12612: getopt.h sys/epoll.h sys/select.h poll.h sys/poll.h sys/devpoll.h sys/filio.h \
12613: sys/mman.h sys/event.h port.h pwd.h sys/syslimits.h \
12614: sys/resource.h sys/un.h syslog.h sys/prctl.h uuid/uuid.h
12615: do :
12616: as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12617: ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12618: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12619: cat >>confdefs.h <<_ACEOF
12620: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12621: _ACEOF
12622:
12623: fi
12624:
12625: done
12626:
12627:
12628: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
12629: $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
12630: if ${ac_cv_c_const+:} false; then :
12631: $as_echo_n "(cached) " >&6
12632: else
12633: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12634: /* end confdefs.h. */
12635:
12636: int
12637: main ()
12638: {
12639:
12640: #ifndef __cplusplus
12641: /* Ultrix mips cc rejects this sort of thing. */
12642: typedef int charset[2];
12643: const charset cs = { 0, 0 };
12644: /* SunOS 4.1.1 cc rejects this. */
12645: char const *const *pcpcc;
12646: char **ppc;
12647: /* NEC SVR4.0.2 mips cc rejects this. */
12648: struct point {int x, y;};
12649: static struct point const zero = {0,0};
12650: /* AIX XL C 1.02.0.0 rejects this.
12651: It does not let you subtract one const X* pointer from another in
12652: an arm of an if-expression whose if-part is not a constant
12653: expression */
12654: const char *g = "string";
12655: pcpcc = &g + (g ? g-g : 0);
12656: /* HPUX 7.0 cc rejects these. */
12657: ++pcpcc;
12658: ppc = (char**) pcpcc;
12659: pcpcc = (char const *const *) ppc;
12660: { /* SCO 3.2v4 cc rejects this sort of thing. */
12661: char tx;
12662: char *t = &tx;
12663: char const *s = 0 ? (char *) 0 : (char const *) 0;
12664:
12665: *t++ = 0;
12666: if (s) return 0;
12667: }
12668: { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
12669: int x[] = {25, 17};
12670: const int *foo = &x[0];
12671: ++foo;
12672: }
12673: { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12674: typedef const int *iptr;
12675: iptr p = 0;
12676: ++p;
12677: }
12678: { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
12679: "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12680: struct s { int j; const int *ap[3]; } bx;
12681: struct s *b = &bx; b->j = 5;
12682: }
12683: { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12684: const int foo = 10;
12685: if (!foo) return 0;
12686: }
12687: return !cs[0] && !zero.x;
12688: #endif
12689:
12690: ;
12691: return 0;
12692: }
12693: _ACEOF
12694: if ac_fn_c_try_compile "$LINENO"; then :
12695: ac_cv_c_const=yes
12696: else
12697: ac_cv_c_const=no
12698: fi
12699: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12700: fi
12701: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
12702: $as_echo "$ac_cv_c_const" >&6; }
12703: if test $ac_cv_c_const = no; then
12704:
12705: $as_echo "#define const /**/" >>confdefs.h
12706:
12707: fi
12708:
12709: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
12710: $as_echo_n "checking for inline... " >&6; }
12711: if ${ac_cv_c_inline+:} false; then :
12712: $as_echo_n "(cached) " >&6
12713: else
12714: ac_cv_c_inline=no
12715: for ac_kw in inline __inline__ __inline; do
12716: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12717: /* end confdefs.h. */
12718: #ifndef __cplusplus
12719: typedef int foo_t;
12720: static $ac_kw foo_t static_foo () {return 0; }
12721: $ac_kw foo_t foo () {return 0; }
12722: #endif
12723:
12724: _ACEOF
12725: if ac_fn_c_try_compile "$LINENO"; then :
12726: ac_cv_c_inline=$ac_kw
12727: fi
12728: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12729: test "$ac_cv_c_inline" != no && break
12730: done
12731:
12732: fi
12733: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
12734: $as_echo "$ac_cv_c_inline" >&6; }
12735:
12736: case $ac_cv_c_inline in
12737: inline | yes) ;;
12738: *)
12739: case $ac_cv_c_inline in
12740: no) ac_val=;;
12741: *) ac_val=$ac_cv_c_inline;;
12742: esac
12743: cat >>confdefs.h <<_ACEOF
12744: #ifndef __cplusplus
12745: #define inline $ac_val
12746: #endif
12747: _ACEOF
12748: ;;
12749: esac
12750:
12751: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5
12752: $as_echo_n "checking whether char is unsigned... " >&6; }
12753: if ${ac_cv_c_char_unsigned+:} false; then :
12754: $as_echo_n "(cached) " >&6
12755: else
12756: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12757: /* end confdefs.h. */
12758: $ac_includes_default
12759: int
12760: main ()
12761: {
12762: static int test_array [1 - 2 * !(((char) -1) < 0)];
12763: test_array [0] = 0;
12764: return test_array [0];
12765:
12766: ;
12767: return 0;
12768: }
12769: _ACEOF
12770: if ac_fn_c_try_compile "$LINENO"; then :
12771: ac_cv_c_char_unsigned=no
12772: else
12773: ac_cv_c_char_unsigned=yes
12774: fi
12775: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12776: fi
12777: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5
12778: $as_echo "$ac_cv_c_char_unsigned" >&6; }
12779: if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
12780: $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h
12781:
12782: fi
12783:
12784: ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
12785: if test "x$ac_cv_type_off_t" = xyes; then :
12786:
12787: else
12788:
12789: cat >>confdefs.h <<_ACEOF
12790: #define off_t long int
12791: _ACEOF
12792:
12793: fi
12794:
12795: ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
12796: if test "x$ac_cv_type_pid_t" = xyes; then :
12797:
12798: else
12799:
12800: cat >>confdefs.h <<_ACEOF
12801: #define pid_t int
12802: _ACEOF
12803:
12804: fi
12805:
12806: ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
12807: if test "x$ac_cv_type_size_t" = xyes; then :
12808:
12809: else
12810:
12811: cat >>confdefs.h <<_ACEOF
12812: #define size_t unsigned int
12813: _ACEOF
12814:
12815: fi
12816:
12817:
12818: ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h>
12819: "
12820: if test "x$ac_cv_member_struct_tm_tm_gmtoff" = xyes; then :
12821:
12822: $as_echo "#define HAVE_STRUCT_TM_GMTOFF 1" >>confdefs.h
12823:
12824: fi
12825:
12826: ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "#include <sys/socket.h>
12827: "
12828: if test "x$ac_cv_type_struct_sockaddr_storage" = xyes; then :
12829:
12830: cat >>confdefs.h <<_ACEOF
12831: #define HAVE_STRUCT_SOCKADDR_STORAGE 1
12832: _ACEOF
12833:
12834:
12835: fi
12836:
12837: ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
12838: #include <sys/socket.h>
12839: "
12840: if test "x$ac_cv_type_socklen_t" = xyes; then :
12841:
12842: cat >>confdefs.h <<_ACEOF
12843: #define HAVE_SOCKLEN_T 1
12844: _ACEOF
12845:
12846:
12847: fi
12848:
12849:
12850: for ac_header in vfork.h
12851: do :
12852: ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
12853: if test "x$ac_cv_header_vfork_h" = xyes; then :
12854: cat >>confdefs.h <<_ACEOF
12855: #define HAVE_VFORK_H 1
12856: _ACEOF
12857:
12858: fi
12859:
12860: done
12861:
12862: for ac_func in fork vfork
12863: do :
12864: as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12865: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12866: if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12867: cat >>confdefs.h <<_ACEOF
12868: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12869: _ACEOF
12870:
12871: fi
12872: done
12873:
12874: if test "x$ac_cv_func_fork" = xyes; then
12875: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
12876: $as_echo_n "checking for working fork... " >&6; }
12877: if ${ac_cv_func_fork_works+:} false; then :
12878: $as_echo_n "(cached) " >&6
12879: else
12880: if test "$cross_compiling" = yes; then :
12881: ac_cv_func_fork_works=cross
12882: else
12883: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12884: /* end confdefs.h. */
12885: $ac_includes_default
12886: int
12887: main ()
12888: {
12889:
12890: /* By Ruediger Kuhlmann. */
12891: return fork () < 0;
12892:
12893: ;
12894: return 0;
12895: }
12896: _ACEOF
12897: if ac_fn_c_try_run "$LINENO"; then :
12898: ac_cv_func_fork_works=yes
12899: else
12900: ac_cv_func_fork_works=no
12901: fi
12902: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12903: conftest.$ac_objext conftest.beam conftest.$ac_ext
12904: fi
12905:
12906: fi
12907: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
12908: $as_echo "$ac_cv_func_fork_works" >&6; }
12909:
12910: else
12911: ac_cv_func_fork_works=$ac_cv_func_fork
12912: fi
12913: if test "x$ac_cv_func_fork_works" = xcross; then
12914: case $host in
12915: *-*-amigaos* | *-*-msdosdjgpp*)
12916: # Override, as these systems have only a dummy fork() stub
12917: ac_cv_func_fork_works=no
12918: ;;
12919: *)
12920: ac_cv_func_fork_works=yes
12921: ;;
12922: esac
12923: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
12924: $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
12925: fi
12926: ac_cv_func_vfork_works=$ac_cv_func_vfork
12927: if test "x$ac_cv_func_vfork" = xyes; then
12928: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
12929: $as_echo_n "checking for working vfork... " >&6; }
12930: if ${ac_cv_func_vfork_works+:} false; then :
12931: $as_echo_n "(cached) " >&6
12932: else
12933: if test "$cross_compiling" = yes; then :
12934: ac_cv_func_vfork_works=cross
12935: else
12936: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12937: /* end confdefs.h. */
12938: /* Thanks to Paul Eggert for this test. */
12939: $ac_includes_default
12940: #include <sys/wait.h>
12941: #ifdef HAVE_VFORK_H
12942: # include <vfork.h>
12943: #endif
12944: /* On some sparc systems, changes by the child to local and incoming
12945: argument registers are propagated back to the parent. The compiler
12946: is told about this with #include <vfork.h>, but some compilers
12947: (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
12948: static variable whose address is put into a register that is
12949: clobbered by the vfork. */
12950: static void
12951: #ifdef __cplusplus
12952: sparc_address_test (int arg)
12953: # else
12954: sparc_address_test (arg) int arg;
12955: #endif
12956: {
12957: static pid_t child;
12958: if (!child) {
12959: child = vfork ();
12960: if (child < 0) {
12961: perror ("vfork");
12962: _exit(2);
12963: }
12964: if (!child) {
12965: arg = getpid();
12966: write(-1, "", 0);
12967: _exit (arg);
12968: }
12969: }
12970: }
12971:
12972: int
12973: main ()
12974: {
12975: pid_t parent = getpid ();
12976: pid_t child;
12977:
12978: sparc_address_test (0);
12979:
12980: child = vfork ();
12981:
12982: if (child == 0) {
12983: /* Here is another test for sparc vfork register problems. This
12984: test uses lots of local variables, at least as many local
12985: variables as main has allocated so far including compiler
12986: temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
12987: 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
12988: reuse the register of parent for one of the local variables,
12989: since it will think that parent can't possibly be used any more
12990: in this routine. Assigning to the local variable will thus
12991: munge parent in the parent process. */
12992: pid_t
12993: p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
12994: p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
12995: /* Convince the compiler that p..p7 are live; otherwise, it might
12996: use the same hardware register for all 8 local variables. */
12997: if (p != p1 || p != p2 || p != p3 || p != p4
12998: || p != p5 || p != p6 || p != p7)
12999: _exit(1);
13000:
13001: /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
13002: from child file descriptors. If the child closes a descriptor
13003: before it execs or exits, this munges the parent's descriptor
13004: as well. Test for this by closing stdout in the child. */
13005: _exit(close(fileno(stdout)) != 0);
13006: } else {
13007: int status;
13008: struct stat st;
13009:
13010: while (wait(&status) != child)
13011: ;
13012: return (
13013: /* Was there some problem with vforking? */
13014: child < 0
13015:
13016: /* Did the child fail? (This shouldn't happen.) */
13017: || status
13018:
13019: /* Did the vfork/compiler bug occur? */
13020: || parent != getpid()
13021:
13022: /* Did the file descriptor bug occur? */
13023: || fstat(fileno(stdout), &st) != 0
13024: );
13025: }
13026: }
13027: _ACEOF
13028: if ac_fn_c_try_run "$LINENO"; then :
13029: ac_cv_func_vfork_works=yes
13030: else
13031: ac_cv_func_vfork_works=no
13032: fi
13033: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13034: conftest.$ac_objext conftest.beam conftest.$ac_ext
13035: fi
13036:
13037: fi
13038: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
13039: $as_echo "$ac_cv_func_vfork_works" >&6; }
13040:
13041: fi;
13042: if test "x$ac_cv_func_fork_works" = xcross; then
13043: ac_cv_func_vfork_works=$ac_cv_func_vfork
13044: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
13045: $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
13046: fi
13047:
13048: if test "x$ac_cv_func_vfork_works" = xyes; then
13049:
13050: $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
13051:
13052: else
13053:
13054: $as_echo "#define vfork fork" >>confdefs.h
13055:
13056: fi
13057: if test "x$ac_cv_func_fork_works" = xyes; then
13058:
13059: $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
13060:
13061: fi
13062:
13063: { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
13064: $as_echo_n "checking return type of signal handlers... " >&6; }
13065: if ${ac_cv_type_signal+:} false; then :
13066: $as_echo_n "(cached) " >&6
13067: else
13068: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13069: /* end confdefs.h. */
13070: #include <sys/types.h>
13071: #include <signal.h>
13072:
13073: int
13074: main ()
13075: {
13076: return *(signal (0, 0)) (0) == 1;
13077: ;
13078: return 0;
13079: }
13080: _ACEOF
13081: if ac_fn_c_try_compile "$LINENO"; then :
13082: ac_cv_type_signal=int
13083: else
13084: ac_cv_type_signal=void
13085: fi
13086: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13087: fi
13088: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
13089: $as_echo "$ac_cv_type_signal" >&6; }
13090:
13091: cat >>confdefs.h <<_ACEOF
13092: #define RETSIGTYPE $ac_cv_type_signal
13093: _ACEOF
13094:
13095:
13096: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
13097: $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
13098: if ${ac_cv_func_lstat_dereferences_slashed_symlink+:} false; then :
13099: $as_echo_n "(cached) " >&6
13100: else
13101: rm -f conftest.sym conftest.file
13102: echo >conftest.file
13103: if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
13104: if test "$cross_compiling" = yes; then :
13105: ac_cv_func_lstat_dereferences_slashed_symlink=no
13106: else
13107: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13108: /* end confdefs.h. */
13109: $ac_includes_default
13110: int
13111: main ()
13112: {
13113: struct stat sbuf;
13114: /* Linux will dereference the symlink and fail, as required by POSIX.
13115: That is better in the sense that it means we will not
13116: have to compile and use the lstat wrapper. */
13117: return lstat ("conftest.sym/", &sbuf) == 0;
13118: ;
13119: return 0;
13120: }
13121: _ACEOF
13122: if ac_fn_c_try_run "$LINENO"; then :
13123: ac_cv_func_lstat_dereferences_slashed_symlink=yes
13124: else
13125: ac_cv_func_lstat_dereferences_slashed_symlink=no
13126: fi
13127: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13128: conftest.$ac_objext conftest.beam conftest.$ac_ext
13129: fi
13130:
13131: else
13132: # If the `ln -s' command failed, then we probably don't even
13133: # have an lstat function.
13134: ac_cv_func_lstat_dereferences_slashed_symlink=no
13135: fi
13136: rm -f conftest.sym conftest.file
13137:
13138: fi
13139: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
13140: $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
13141:
13142: test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
13143:
13144: cat >>confdefs.h <<_ACEOF
13145: #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
13146: _ACEOF
13147:
13148:
13149: if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then
13150: case " $LIBOBJS " in
13151: *" lstat.$ac_objext "* ) ;;
13152: *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
13153: ;;
13154: esac
13155:
13156: fi
13157:
13158: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat accepts an empty string" >&5
13159: $as_echo_n "checking whether stat accepts an empty string... " >&6; }
13160: if ${ac_cv_func_stat_empty_string_bug+:} false; then :
13161: $as_echo_n "(cached) " >&6
13162: else
13163: if test "$cross_compiling" = yes; then :
13164: ac_cv_func_stat_empty_string_bug=yes
13165: else
13166: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13167: /* end confdefs.h. */
13168: $ac_includes_default
13169: int
13170: main ()
13171: {
13172: struct stat sbuf;
13173: return stat ("", &sbuf) == 0;
13174: ;
13175: return 0;
13176: }
13177: _ACEOF
13178: if ac_fn_c_try_run "$LINENO"; then :
13179: ac_cv_func_stat_empty_string_bug=no
13180: else
13181: ac_cv_func_stat_empty_string_bug=yes
13182: fi
13183: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13184: conftest.$ac_objext conftest.beam conftest.$ac_ext
13185: fi
13186:
13187: fi
13188: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_stat_empty_string_bug" >&5
13189: $as_echo "$ac_cv_func_stat_empty_string_bug" >&6; }
13190: if test $ac_cv_func_stat_empty_string_bug = yes; then
13191: case " $LIBOBJS " in
13192: *" stat.$ac_objext "* ) ;;
13193: *) LIBOBJS="$LIBOBJS stat.$ac_objext"
13194: ;;
13195: esac
13196:
13197:
13198: cat >>confdefs.h <<_ACEOF
13199: #define HAVE_STAT_EMPTY_STRING_BUG 1
13200: _ACEOF
13201:
13202: fi
13203:
13204: for ac_func in strftime
13205: do :
13206: ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
13207: if test "x$ac_cv_func_strftime" = xyes; then :
13208: cat >>confdefs.h <<_ACEOF
13209: #define HAVE_STRFTIME 1
13210: _ACEOF
13211:
13212: else
13213: # strftime is in -lintl on SCO UNIX.
13214: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
13215: $as_echo_n "checking for strftime in -lintl... " >&6; }
13216: if ${ac_cv_lib_intl_strftime+:} false; then :
13217: $as_echo_n "(cached) " >&6
13218: else
13219: ac_check_lib_save_LIBS=$LIBS
13220: LIBS="-lintl $LIBS"
13221: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13222: /* end confdefs.h. */
13223:
13224: /* Override any GCC internal prototype to avoid an error.
13225: Use char because int might match the return type of a GCC
13226: builtin and then its argument prototype would still apply. */
13227: #ifdef __cplusplus
13228: extern "C"
13229: #endif
13230: char strftime ();
13231: int
13232: main ()
13233: {
13234: return strftime ();
13235: ;
13236: return 0;
13237: }
13238: _ACEOF
13239: if ac_fn_c_try_link "$LINENO"; then :
13240: ac_cv_lib_intl_strftime=yes
13241: else
13242: ac_cv_lib_intl_strftime=no
13243: fi
13244: rm -f core conftest.err conftest.$ac_objext \
13245: conftest$ac_exeext conftest.$ac_ext
13246: LIBS=$ac_check_lib_save_LIBS
13247: fi
13248: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
13249: $as_echo "$ac_cv_lib_intl_strftime" >&6; }
13250: if test "x$ac_cv_lib_intl_strftime" = xyes; then :
13251: $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
13252:
13253: LIBS="-lintl $LIBS"
13254: fi
13255:
13256: fi
13257: done
13258:
13259: for ac_func in issetugid inet_pton
13260: do :
13261: as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13262: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13263: if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13264: cat >>confdefs.h <<_ACEOF
13265: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13266: _ACEOF
13267:
13268: fi
13269: done
13270:
13271:
13272: if test -z "$PKG_CONFIG"; then
13273: # Extract the first word of "pkg-config", so it can be a program name with args.
13274: set dummy pkg-config; ac_word=$2
13275: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13276: $as_echo_n "checking for $ac_word... " >&6; }
13277: if ${ac_cv_path_PKG_CONFIG+:} false; then :
13278: $as_echo_n "(cached) " >&6
13279: else
13280: case $PKG_CONFIG in
13281: [\\/]* | ?:[\\/]*)
13282: ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13283: ;;
13284: *)
13285: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13286: for as_dir in $PATH
13287: do
13288: IFS=$as_save_IFS
13289: test -z "$as_dir" && as_dir=.
13290: for ac_exec_ext in '' $ac_executable_extensions; do
13291: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13292: ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13293: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13294: break 2
13295: fi
13296: done
13297: done
13298: IFS=$as_save_IFS
13299:
13300: test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13301: ;;
13302: esac
13303: fi
13304: PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13305: if test -n "$PKG_CONFIG"; then
13306: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
13307: $as_echo "$PKG_CONFIG" >&6; }
13308: else
13309: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13310: $as_echo "no" >&6; }
13311: fi
13312:
13313:
13314: fi
13315:
13316: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libev support" >&5
13317: $as_echo_n "checking for libev support... " >&6; }
13318:
13319: # Check whether --with-libev was given.
13320: if test "${with_libev+set}" = set; then :
13321: withval=$with_libev; WITH_LIBEV=$withval
13322: else
13323: WITH_LIBEV=no
13324: fi
13325:
13326:
13327: LIBEV_CFLAGS=""
13328: LIBEV_LIBS=""
13329:
13330: if test "$WITH_LIBEV" != "no"; then
13331:
13332:
13333:
13334:
13335:
13336:
13337:
13338: if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
13339: if test -n "$ac_tool_prefix"; then
13340: # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
13341: set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
13342: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13343: $as_echo_n "checking for $ac_word... " >&6; }
13344: if ${ac_cv_path_PKG_CONFIG+:} false; then :
13345: $as_echo_n "(cached) " >&6
13346: else
13347: case $PKG_CONFIG in
13348: [\\/]* | ?:[\\/]*)
13349: ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13350: ;;
13351: *)
13352: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13353: for as_dir in $PATH
13354: do
13355: IFS=$as_save_IFS
13356: test -z "$as_dir" && as_dir=.
13357: for ac_exec_ext in '' $ac_executable_extensions; do
13358: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13359: ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13360: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13361: break 2
13362: fi
13363: done
13364: done
13365: IFS=$as_save_IFS
13366:
13367: ;;
13368: esac
13369: fi
13370: PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13371: if test -n "$PKG_CONFIG"; then
13372: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
13373: $as_echo "$PKG_CONFIG" >&6; }
13374: else
13375: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13376: $as_echo "no" >&6; }
13377: fi
13378:
13379:
13380: fi
13381: if test -z "$ac_cv_path_PKG_CONFIG"; then
13382: ac_pt_PKG_CONFIG=$PKG_CONFIG
13383: # Extract the first word of "pkg-config", so it can be a program name with args.
13384: set dummy pkg-config; ac_word=$2
13385: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13386: $as_echo_n "checking for $ac_word... " >&6; }
13387: if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
13388: $as_echo_n "(cached) " >&6
13389: else
13390: case $ac_pt_PKG_CONFIG in
13391: [\\/]* | ?:[\\/]*)
13392: ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
13393: ;;
13394: *)
13395: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13396: for as_dir in $PATH
13397: do
13398: IFS=$as_save_IFS
13399: test -z "$as_dir" && as_dir=.
13400: for ac_exec_ext in '' $ac_executable_extensions; do
13401: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13402: ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13403: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13404: break 2
13405: fi
13406: done
13407: done
13408: IFS=$as_save_IFS
13409:
13410: ;;
13411: esac
13412: fi
13413: ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
13414: if test -n "$ac_pt_PKG_CONFIG"; then
13415: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
13416: $as_echo "$ac_pt_PKG_CONFIG" >&6; }
13417: else
13418: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13419: $as_echo "no" >&6; }
13420: fi
13421:
13422: if test "x$ac_pt_PKG_CONFIG" = x; then
13423: PKG_CONFIG=""
13424: else
13425: case $cross_compiling:$ac_tool_warned in
13426: yes:)
13427: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13428: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13429: ac_tool_warned=yes ;;
13430: esac
13431: PKG_CONFIG=$ac_pt_PKG_CONFIG
13432: fi
13433: else
13434: PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
13435: fi
13436:
13437: fi
13438: if test -n "$PKG_CONFIG"; then
13439: _pkg_min_version=0.9.0
13440: { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
13441: $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
13442: if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
13443: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13444: $as_echo "yes" >&6; }
13445: else
13446: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13447: $as_echo "no" >&6; }
13448: PKG_CONFIG=""
13449: fi
13450: fi
13451:
13452: pkg_failed=no
13453: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBEV" >&5
13454: $as_echo_n "checking for LIBEV... " >&6; }
13455:
13456: if test -n "$LIBEV_CFLAGS"; then
13457: pkg_cv_LIBEV_CFLAGS="$LIBEV_CFLAGS"
13458: elif test -n "$PKG_CONFIG"; then
13459: if test -n "$PKG_CONFIG" && \
13460: { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libev\""; } >&5
13461: ($PKG_CONFIG --exists --print-errors "libev") 2>&5
13462: ac_status=$?
13463: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13464: test $ac_status = 0; }; then
13465: pkg_cv_LIBEV_CFLAGS=`$PKG_CONFIG --cflags "libev" 2>/dev/null`
13466: test "x$?" != "x0" && pkg_failed=yes
13467: else
13468: pkg_failed=yes
13469: fi
13470: else
13471: pkg_failed=untried
13472: fi
13473: if test -n "$LIBEV_LIBS"; then
13474: pkg_cv_LIBEV_LIBS="$LIBEV_LIBS"
13475: elif test -n "$PKG_CONFIG"; then
13476: if test -n "$PKG_CONFIG" && \
13477: { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libev\""; } >&5
13478: ($PKG_CONFIG --exists --print-errors "libev") 2>&5
13479: ac_status=$?
13480: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13481: test $ac_status = 0; }; then
13482: pkg_cv_LIBEV_LIBS=`$PKG_CONFIG --libs "libev" 2>/dev/null`
13483: test "x$?" != "x0" && pkg_failed=yes
13484: else
13485: pkg_failed=yes
13486: fi
13487: else
13488: pkg_failed=untried
13489: fi
13490:
13491:
13492:
13493: if test $pkg_failed = yes; then
13494: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13495: $as_echo "no" >&6; }
13496:
13497: if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13498: _pkg_short_errors_supported=yes
13499: else
13500: _pkg_short_errors_supported=no
13501: fi
13502: if test $_pkg_short_errors_supported = yes; then
13503: LIBEV_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libev" 2>&1`
13504: else
13505: LIBEV_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libev" 2>&1`
13506: fi
13507: # Put the nasty error message in config.log where it belongs
13508: echo "$LIBEV_PKG_ERRORS" >&5
13509:
13510:
13511:
13512: if test "$WITH_LIBEV" != "yes"; then
13513: LIBEV_CFLAGS="-I$WITH_LIBEV/include"
13514: LIBEV_LIBS="-L$WITH_LIBEV/lib -lev"
13515: else
13516: for ac_header in ev.h
13517: do :
13518: ac_fn_c_check_header_mongrel "$LINENO" "ev.h" "ac_cv_header_ev_h" "$ac_includes_default"
13519: if test "x$ac_cv_header_ev_h" = xyes; then :
13520: cat >>confdefs.h <<_ACEOF
13521: #define HAVE_EV_H 1
13522: _ACEOF
13523:
13524: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ev_time in -lev" >&5
13525: $as_echo_n "checking for ev_time in -lev... " >&6; }
13526: if ${ac_cv_lib_ev_ev_time+:} false; then :
13527: $as_echo_n "(cached) " >&6
13528: else
13529: ac_check_lib_save_LIBS=$LIBS
13530: LIBS="-lev $LIBS"
13531: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13532: /* end confdefs.h. */
13533:
13534: /* Override any GCC internal prototype to avoid an error.
13535: Use char because int might match the return type of a GCC
13536: builtin and then its argument prototype would still apply. */
13537: #ifdef __cplusplus
13538: extern "C"
13539: #endif
13540: char ev_time ();
13541: int
13542: main ()
13543: {
13544: return ev_time ();
13545: ;
13546: return 0;
13547: }
13548: _ACEOF
13549: if ac_fn_c_try_link "$LINENO"; then :
13550: ac_cv_lib_ev_ev_time=yes
13551: else
13552: ac_cv_lib_ev_ev_time=no
13553: fi
13554: rm -f core conftest.err conftest.$ac_objext \
13555: conftest$ac_exeext conftest.$ac_ext
13556: LIBS=$ac_check_lib_save_LIBS
13557: fi
13558: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ev_ev_time" >&5
13559: $as_echo "$ac_cv_lib_ev_ev_time" >&6; }
13560: if test "x$ac_cv_lib_ev_ev_time" = xyes; then :
13561:
13562: LIBEV_CFLAGS=""
13563: LIBEV_LIBS="-lev"
13564:
13565: else
13566:
13567: as_fn_error $? "libev not found" "$LINENO" 5
13568:
13569:
13570: fi
13571:
13572: else
13573:
13574: as_fn_error $? "libev not found" "$LINENO" 5
13575:
13576:
13577: fi
13578:
13579: done
13580:
13581: fi
13582:
13583: elif test $pkg_failed = untried; then
13584: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13585: $as_echo "no" >&6; }
13586:
13587:
13588: if test "$WITH_LIBEV" != "yes"; then
13589: LIBEV_CFLAGS="-I$WITH_LIBEV/include"
13590: LIBEV_LIBS="-L$WITH_LIBEV/lib -lev"
13591: else
13592: for ac_header in ev.h
13593: do :
13594: ac_fn_c_check_header_mongrel "$LINENO" "ev.h" "ac_cv_header_ev_h" "$ac_includes_default"
13595: if test "x$ac_cv_header_ev_h" = xyes; then :
13596: cat >>confdefs.h <<_ACEOF
13597: #define HAVE_EV_H 1
13598: _ACEOF
13599:
13600: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ev_time in -lev" >&5
13601: $as_echo_n "checking for ev_time in -lev... " >&6; }
13602: if ${ac_cv_lib_ev_ev_time+:} false; then :
13603: $as_echo_n "(cached) " >&6
13604: else
13605: ac_check_lib_save_LIBS=$LIBS
13606: LIBS="-lev $LIBS"
13607: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13608: /* end confdefs.h. */
13609:
13610: /* Override any GCC internal prototype to avoid an error.
13611: Use char because int might match the return type of a GCC
13612: builtin and then its argument prototype would still apply. */
13613: #ifdef __cplusplus
13614: extern "C"
13615: #endif
13616: char ev_time ();
13617: int
13618: main ()
13619: {
13620: return ev_time ();
13621: ;
13622: return 0;
13623: }
13624: _ACEOF
13625: if ac_fn_c_try_link "$LINENO"; then :
13626: ac_cv_lib_ev_ev_time=yes
13627: else
13628: ac_cv_lib_ev_ev_time=no
13629: fi
13630: rm -f core conftest.err conftest.$ac_objext \
13631: conftest$ac_exeext conftest.$ac_ext
13632: LIBS=$ac_check_lib_save_LIBS
13633: fi
13634: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ev_ev_time" >&5
13635: $as_echo "$ac_cv_lib_ev_ev_time" >&6; }
13636: if test "x$ac_cv_lib_ev_ev_time" = xyes; then :
13637:
13638: LIBEV_CFLAGS=""
13639: LIBEV_LIBS="-lev"
13640:
13641: else
13642:
13643: as_fn_error $? "libev not found" "$LINENO" 5
13644:
13645:
13646: fi
13647:
13648: else
13649:
13650: as_fn_error $? "libev not found" "$LINENO" 5
13651:
13652:
13653: fi
13654:
13655: done
13656:
13657: fi
13658:
13659: else
13660: LIBEV_CFLAGS=$pkg_cv_LIBEV_CFLAGS
13661: LIBEV_LIBS=$pkg_cv_LIBEV_LIBS
13662: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13663: $as_echo "yes" >&6; }
13664:
13665: fi
13666:
13667:
13668: $as_echo "#define HAVE_LIBEV 1" >>confdefs.h
13669:
13670: fi
13671:
13672:
13673:
13674:
13675: MYSQL_INCLUDE=""
13676: MYSQL_LIBS=""
13677:
13678: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MySQL support" >&5
13679: $as_echo_n "checking for MySQL support... " >&6; }
13680:
13681: # Check whether --with-mysql was given.
13682: if test "${with_mysql+set}" = set; then :
13683: withval=$with_mysql; WITH_MYSQL=$withval
13684: else
13685: WITH_MYSQL=no
13686: fi
13687:
13688:
13689: if test "$WITH_MYSQL" != "no"; then
13690: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13691: $as_echo "yes" >&6; }
13692: if test "$WITH_MYSQL" = "yes"; then
13693: # Extract the first word of "mysql_config", so it can be a program name with args.
13694: set dummy mysql_config; ac_word=$2
13695: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13696: $as_echo_n "checking for $ac_word... " >&6; }
13697: if ${ac_cv_path_MYSQL_CONFIG+:} false; then :
13698: $as_echo_n "(cached) " >&6
13699: else
13700: case $MYSQL_CONFIG in
13701: [\\/]* | ?:[\\/]*)
13702: ac_cv_path_MYSQL_CONFIG="$MYSQL_CONFIG" # Let the user override the test with a path.
13703: ;;
13704: *)
13705: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13706: for as_dir in $PATH
13707: do
13708: IFS=$as_save_IFS
13709: test -z "$as_dir" && as_dir=.
13710: for ac_exec_ext in '' $ac_executable_extensions; do
13711: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13712: ac_cv_path_MYSQL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13713: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13714: break 2
13715: fi
13716: done
13717: done
13718: IFS=$as_save_IFS
13719:
13720: ;;
13721: esac
13722: fi
13723: MYSQL_CONFIG=$ac_cv_path_MYSQL_CONFIG
13724: if test -n "$MYSQL_CONFIG"; then
13725: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MYSQL_CONFIG" >&5
13726: $as_echo "$MYSQL_CONFIG" >&6; }
13727: else
13728: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13729: $as_echo "no" >&6; }
13730: fi
13731:
13732:
13733: else
13734: MYSQL_CONFIG=$WITH_MYSQL
13735: fi
13736:
13737: if test "$MYSQL_CONFIG" = ""; then
13738: as_fn_error $? "mysql_config is not found" "$LINENO" 5
13739: fi
13740: if test \! -x $MYSQL_CONFIG; then
13741: as_fn_error use --with-mysql=path-to-mysql_config "mysql_config not exists or not executable" "$LINENO" 5
13742: fi
13743:
13744: if $MYSQL_CONFIG | grep -- '--include' > /dev/null ; then
13745: MYSQL_INCLUDE="`$MYSQL_CONFIG --include | sed s/\'//g`"
13746: else
13747: MYSQL_INCLUDE="`$MYSQL_CONFIG --cflags | sed s/\'//g`"
13748: fi
13749: MYSQL_LIBS="`$MYSQL_CONFIG --libs | sed s/\'//g`"
13750:
13751: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MySQL includes at" >&5
13752: $as_echo_n "checking for MySQL includes at... " >&6; }
13753: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MYSQL_INCLUDE" >&5
13754: $as_echo "$MYSQL_INCLUDE" >&6; }
13755:
13756: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MySQL libraries at" >&5
13757: $as_echo_n "checking for MySQL libraries at... " >&6; }
13758: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MYSQL_LIBS" >&5
13759: $as_echo "$MYSQL_LIBS" >&6; }
13760: old_CPPFLAGS="$CPPFLAGS"
13761: CPPFLAGS="$CPPFLAGS $MYSQL_INCLUDE"
13762: for ac_header in errmsg.h mysql.h
13763: do :
13764: as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13765: ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13766: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13767: cat >>confdefs.h <<_ACEOF
13768: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13769: _ACEOF
13770:
13771: fi
13772:
13773: done
13774:
13775: CPPFLAGS="$old_CPPFLAGS"
13776:
13777:
13778: $as_echo "#define HAVE_MYSQL 1" >>confdefs.h
13779:
13780: else
13781: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13782: $as_echo "no" >&6; }
13783: fi
13784:
13785:
13786:
13787:
13788: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDAP support" >&5
13789: $as_echo_n "checking for LDAP support... " >&6; }
13790:
13791: # Check whether --with-ldap was given.
13792: if test "${with_ldap+set}" = set; then :
13793: withval=$with_ldap; WITH_LDAP=$withval
13794: else
13795: WITH_LDAP=no
13796: fi
13797:
13798: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5
13799: $as_echo "$withval" >&6; }
13800: if test "$WITH_LDAP" != "no"; then
13801: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_bind in -lldap" >&5
13802: $as_echo_n "checking for ldap_bind in -lldap... " >&6; }
13803: if ${ac_cv_lib_ldap_ldap_bind+:} false; then :
13804: $as_echo_n "(cached) " >&6
13805: else
13806: ac_check_lib_save_LIBS=$LIBS
13807: LIBS="-lldap $LIBS"
13808: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13809: /* end confdefs.h. */
13810:
13811: /* Override any GCC internal prototype to avoid an error.
13812: Use char because int might match the return type of a GCC
13813: builtin and then its argument prototype would still apply. */
13814: #ifdef __cplusplus
13815: extern "C"
13816: #endif
13817: char ldap_bind ();
13818: int
13819: main ()
13820: {
13821: return ldap_bind ();
13822: ;
13823: return 0;
13824: }
13825: _ACEOF
13826: if ac_fn_c_try_link "$LINENO"; then :
13827: ac_cv_lib_ldap_ldap_bind=yes
13828: else
13829: ac_cv_lib_ldap_ldap_bind=no
13830: fi
13831: rm -f core conftest.err conftest.$ac_objext \
13832: conftest$ac_exeext conftest.$ac_ext
13833: LIBS=$ac_check_lib_save_LIBS
13834: fi
13835: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ldap_ldap_bind" >&5
13836: $as_echo "$ac_cv_lib_ldap_ldap_bind" >&6; }
13837: if test "x$ac_cv_lib_ldap_ldap_bind" = xyes; then :
13838:
13839: for ac_header in ldap.h
13840: do :
13841: ac_fn_c_check_header_mongrel "$LINENO" "ldap.h" "ac_cv_header_ldap_h" "$ac_includes_default"
13842: if test "x$ac_cv_header_ldap_h" = xyes; then :
13843: cat >>confdefs.h <<_ACEOF
13844: #define HAVE_LDAP_H 1
13845: _ACEOF
13846:
13847: LDAP_LIB=-lldap
13848:
13849: $as_echo "#define HAVE_LIBLDAP 1" >>confdefs.h
13850:
13851: $as_echo "#define HAVE_LDAP_H 1" >>confdefs.h
13852:
13853:
13854: $as_echo "#define LDAP_DEPRECATED 1" >>confdefs.h
13855:
13856:
13857: fi
13858:
13859: done
13860:
13861:
13862: fi
13863:
13864:
13865: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ber_printf in -llber" >&5
13866: $as_echo_n "checking for ber_printf in -llber... " >&6; }
13867: if ${ac_cv_lib_lber_ber_printf+:} false; then :
13868: $as_echo_n "(cached) " >&6
13869: else
13870: ac_check_lib_save_LIBS=$LIBS
13871: LIBS="-llber $LIBS"
13872: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13873: /* end confdefs.h. */
13874:
13875: /* Override any GCC internal prototype to avoid an error.
13876: Use char because int might match the return type of a GCC
13877: builtin and then its argument prototype would still apply. */
13878: #ifdef __cplusplus
13879: extern "C"
13880: #endif
13881: char ber_printf ();
13882: int
13883: main ()
13884: {
13885: return ber_printf ();
13886: ;
13887: return 0;
13888: }
13889: _ACEOF
13890: if ac_fn_c_try_link "$LINENO"; then :
13891: ac_cv_lib_lber_ber_printf=yes
13892: else
13893: ac_cv_lib_lber_ber_printf=no
13894: fi
13895: rm -f core conftest.err conftest.$ac_objext \
13896: conftest$ac_exeext conftest.$ac_ext
13897: LIBS=$ac_check_lib_save_LIBS
13898: fi
13899: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lber_ber_printf" >&5
13900: $as_echo "$ac_cv_lib_lber_ber_printf" >&6; }
13901: if test "x$ac_cv_lib_lber_ber_printf" = xyes; then :
13902:
13903: for ac_header in lber.h
13904: do :
13905: ac_fn_c_check_header_mongrel "$LINENO" "lber.h" "ac_cv_header_lber_h" "$ac_includes_default"
13906: if test "x$ac_cv_header_lber_h" = xyes; then :
13907: cat >>confdefs.h <<_ACEOF
13908: #define HAVE_LBER_H 1
13909: _ACEOF
13910:
13911: LBER_LIB=-llber
13912:
13913: $as_echo "#define HAVE_LIBLBER 1" >>confdefs.h
13914:
13915: $as_echo "#define HAVE_LBER_H 1" >>confdefs.h
13916:
13917:
13918: fi
13919:
13920: done
13921:
13922:
13923: fi
13924:
13925:
13926: fi
13927:
13928: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extended attributes support" >&5
13929: $as_echo_n "checking for extended attributes support... " >&6; }
13930:
13931: # Check whether --with-attr was given.
13932: if test "${with_attr+set}" = set; then :
13933: withval=$with_attr; WITH_ATTR=$withval
13934: else
13935: WITH_ATTR=no
13936: fi
13937:
13938: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5
13939: $as_echo "$withval" >&6; }
13940: if test "$WITH_ATTR" != "no"; then
13941: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for attr_get in -lattr" >&5
13942: $as_echo_n "checking for attr_get in -lattr... " >&6; }
13943: if ${ac_cv_lib_attr_attr_get+:} false; then :
13944: $as_echo_n "(cached) " >&6
13945: else
13946: ac_check_lib_save_LIBS=$LIBS
13947: LIBS="-lattr $LIBS"
13948: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13949: /* end confdefs.h. */
13950:
13951: /* Override any GCC internal prototype to avoid an error.
13952: Use char because int might match the return type of a GCC
13953: builtin and then its argument prototype would still apply. */
13954: #ifdef __cplusplus
13955: extern "C"
13956: #endif
13957: char attr_get ();
13958: int
13959: main ()
13960: {
13961: return attr_get ();
13962: ;
13963: return 0;
13964: }
13965: _ACEOF
13966: if ac_fn_c_try_link "$LINENO"; then :
13967: ac_cv_lib_attr_attr_get=yes
13968: else
13969: ac_cv_lib_attr_attr_get=no
13970: fi
13971: rm -f core conftest.err conftest.$ac_objext \
13972: conftest$ac_exeext conftest.$ac_ext
13973: LIBS=$ac_check_lib_save_LIBS
13974: fi
13975: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_attr_attr_get" >&5
13976: $as_echo "$ac_cv_lib_attr_attr_get" >&6; }
13977: if test "x$ac_cv_lib_attr_attr_get" = xyes; then :
13978:
13979: for ac_header in attr/attributes.h
13980: do :
13981: ac_fn_c_check_header_mongrel "$LINENO" "attr/attributes.h" "ac_cv_header_attr_attributes_h" "$ac_includes_default"
13982: if test "x$ac_cv_header_attr_attributes_h" = xyes; then :
13983: cat >>confdefs.h <<_ACEOF
13984: #define HAVE_ATTR_ATTRIBUTES_H 1
13985: _ACEOF
13986:
13987: ATTR_LIB=-lattr
13988:
13989: $as_echo "#define HAVE_XATTR 1" >>confdefs.h
13990:
13991: $as_echo "#define HAVE_ATTR_ATTRIBUTES_H 1" >>confdefs.h
13992:
13993:
13994: fi
13995:
13996: done
13997:
13998:
13999: fi
14000:
14001:
14002: fi
14003:
14004: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
14005: $as_echo_n "checking for library containing socket... " >&6; }
14006: if ${ac_cv_search_socket+:} false; then :
14007: $as_echo_n "(cached) " >&6
14008: else
14009: ac_func_search_save_LIBS=$LIBS
14010: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14011: /* end confdefs.h. */
14012:
14013: /* Override any GCC internal prototype to avoid an error.
14014: Use char because int might match the return type of a GCC
14015: builtin and then its argument prototype would still apply. */
14016: #ifdef __cplusplus
14017: extern "C"
14018: #endif
14019: char socket ();
14020: int
14021: main ()
14022: {
14023: return socket ();
14024: ;
14025: return 0;
14026: }
14027: _ACEOF
14028: for ac_lib in '' socket; do
14029: if test -z "$ac_lib"; then
14030: ac_res="none required"
14031: else
14032: ac_res=-l$ac_lib
14033: LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14034: fi
14035: if ac_fn_c_try_link "$LINENO"; then :
14036: ac_cv_search_socket=$ac_res
14037: fi
14038: rm -f core conftest.err conftest.$ac_objext \
14039: conftest$ac_exeext
14040: if ${ac_cv_search_socket+:} false; then :
14041: break
14042: fi
14043: done
14044: if ${ac_cv_search_socket+:} false; then :
14045:
14046: else
14047: ac_cv_search_socket=no
14048: fi
14049: rm conftest.$ac_ext
14050: LIBS=$ac_func_search_save_LIBS
14051: fi
14052: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
14053: $as_echo "$ac_cv_search_socket" >&6; }
14054: ac_res=$ac_cv_search_socket
14055: if test "$ac_res" != no; then :
14056: test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14057:
14058: fi
14059:
14060: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
14061: $as_echo_n "checking for library containing gethostbyname... " >&6; }
14062: if ${ac_cv_search_gethostbyname+:} false; then :
14063: $as_echo_n "(cached) " >&6
14064: else
14065: ac_func_search_save_LIBS=$LIBS
14066: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14067: /* end confdefs.h. */
14068:
14069: /* Override any GCC internal prototype to avoid an error.
14070: Use char because int might match the return type of a GCC
14071: builtin and then its argument prototype would still apply. */
14072: #ifdef __cplusplus
14073: extern "C"
14074: #endif
14075: char gethostbyname ();
14076: int
14077: main ()
14078: {
14079: return gethostbyname ();
14080: ;
14081: return 0;
14082: }
14083: _ACEOF
14084: for ac_lib in '' nsl socket; do
14085: if test -z "$ac_lib"; then
14086: ac_res="none required"
14087: else
14088: ac_res=-l$ac_lib
14089: LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14090: fi
14091: if ac_fn_c_try_link "$LINENO"; then :
14092: ac_cv_search_gethostbyname=$ac_res
14093: fi
14094: rm -f core conftest.err conftest.$ac_objext \
14095: conftest$ac_exeext
14096: if ${ac_cv_search_gethostbyname+:} false; then :
14097: break
14098: fi
14099: done
14100: if ${ac_cv_search_gethostbyname+:} false; then :
14101:
14102: else
14103: ac_cv_search_gethostbyname=no
14104: fi
14105: rm conftest.$ac_ext
14106: LIBS=$ac_func_search_save_LIBS
14107: fi
14108: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
14109: $as_echo "$ac_cv_search_gethostbyname" >&6; }
14110: ac_res=$ac_cv_search_gethostbyname
14111: if test "$ac_res" != no; then :
14112: test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14113:
14114: fi
14115:
14116: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing hstrerror" >&5
14117: $as_echo_n "checking for library containing hstrerror... " >&6; }
14118: if ${ac_cv_search_hstrerror+:} false; then :
14119: $as_echo_n "(cached) " >&6
14120: else
14121: ac_func_search_save_LIBS=$LIBS
14122: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14123: /* end confdefs.h. */
14124:
14125: /* Override any GCC internal prototype to avoid an error.
14126: Use char because int might match the return type of a GCC
14127: builtin and then its argument prototype would still apply. */
14128: #ifdef __cplusplus
14129: extern "C"
14130: #endif
14131: char hstrerror ();
14132: int
14133: main ()
14134: {
14135: return hstrerror ();
14136: ;
14137: return 0;
14138: }
14139: _ACEOF
14140: for ac_lib in '' resolv; do
14141: if test -z "$ac_lib"; then
14142: ac_res="none required"
14143: else
14144: ac_res=-l$ac_lib
14145: LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14146: fi
14147: if ac_fn_c_try_link "$LINENO"; then :
14148: ac_cv_search_hstrerror=$ac_res
14149: fi
14150: rm -f core conftest.err conftest.$ac_objext \
14151: conftest$ac_exeext
14152: if ${ac_cv_search_hstrerror+:} false; then :
14153: break
14154: fi
14155: done
14156: if ${ac_cv_search_hstrerror+:} false; then :
14157:
14158: else
14159: ac_cv_search_hstrerror=no
14160: fi
14161: rm conftest.$ac_ext
14162: LIBS=$ac_func_search_save_LIBS
14163: fi
14164: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_hstrerror" >&5
14165: $as_echo "$ac_cv_search_hstrerror" >&6; }
14166: ac_res=$ac_cv_search_hstrerror
14167: if test "$ac_res" != no; then :
14168: test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14169:
14170: fi
14171:
14172:
14173: save_LIBS=$LIBS
14174: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
14175: $as_echo_n "checking for library containing dlopen... " >&6; }
14176: if ${ac_cv_search_dlopen+:} false; then :
14177: $as_echo_n "(cached) " >&6
14178: else
14179: ac_func_search_save_LIBS=$LIBS
14180: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14181: /* end confdefs.h. */
14182:
14183: /* Override any GCC internal prototype to avoid an error.
14184: Use char because int might match the return type of a GCC
14185: builtin and then its argument prototype would still apply. */
14186: #ifdef __cplusplus
14187: extern "C"
14188: #endif
14189: char dlopen ();
14190: int
14191: main ()
14192: {
14193: return dlopen ();
14194: ;
14195: return 0;
14196: }
14197: _ACEOF
14198: for ac_lib in '' dl; do
14199: if test -z "$ac_lib"; then
14200: ac_res="none required"
14201: else
14202: ac_res=-l$ac_lib
14203: LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14204: fi
14205: if ac_fn_c_try_link "$LINENO"; then :
14206: ac_cv_search_dlopen=$ac_res
14207: fi
14208: rm -f core conftest.err conftest.$ac_objext \
14209: conftest$ac_exeext
14210: if ${ac_cv_search_dlopen+:} false; then :
14211: break
14212: fi
14213: done
14214: if ${ac_cv_search_dlopen+:} false; then :
14215:
14216: else
14217: ac_cv_search_dlopen=no
14218: fi
14219: rm conftest.$ac_ext
14220: LIBS=$ac_func_search_save_LIBS
14221: fi
14222: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
14223: $as_echo "$ac_cv_search_dlopen" >&6; }
14224: ac_res=$ac_cv_search_dlopen
14225: if test "$ac_res" != no; then :
14226: test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14227:
14228: for ac_header in dlfcn.h
14229: do :
14230: ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
14231: if test "x$ac_cv_header_dlfcn_h" = xyes; then :
14232: cat >>confdefs.h <<_ACEOF
14233: #define HAVE_DLFCN_H 1
14234: _ACEOF
14235:
14236: if test "$ac_cv_search_dlopen" != no; then
14237: test "$ac_cv_search_dlopen" = "none required" || DL_LIB="$ac_cv_search_dlopen"
14238: fi
14239:
14240:
14241: $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
14242:
14243: $as_echo "#define HAVE_DLFCN_H 1" >>confdefs.h
14244:
14245:
14246: fi
14247:
14248: done
14249:
14250:
14251: fi
14252:
14253: LIBS=$save_LIBS
14254:
14255:
14256: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for valgrind" >&5
14257: $as_echo_n "checking for valgrind... " >&6; }
14258:
14259: # Check whether --with-valgrind was given.
14260: if test "${with_valgrind+set}" = set; then :
14261: withval=$with_valgrind; WITH_VALGRIND=$withval
14262: else
14263: WITH_VALGRIND=no
14264: fi
14265:
14266: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WITH_VALGRIND" >&5
14267: $as_echo "$WITH_VALGRIND" >&6; }
14268: if test "$WITH_VALGRIND" != "no"; then
14269: for ac_header in valgrind/valgrind.h
14270: do :
14271: ac_fn_c_check_header_mongrel "$LINENO" "valgrind/valgrind.h" "ac_cv_header_valgrind_valgrind_h" "$ac_includes_default"
14272: if test "x$ac_cv_header_valgrind_valgrind_h" = xyes; then :
14273: cat >>confdefs.h <<_ACEOF
14274: #define HAVE_VALGRIND_VALGRIND_H 1
14275: _ACEOF
14276:
14277: fi
14278:
14279: done
14280:
14281: fi
14282:
14283: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL" >&5
14284: $as_echo_n "checking for OpenSSL... " >&6; }
14285:
14286: # Check whether --with-openssl was given.
14287: if test "${with_openssl+set}" = set; then :
14288: withval=$with_openssl; WITH_OPENSSL=$withval
14289: else
14290: WITH_OPENSSL=no
14291: fi
14292:
14293:
14294: if test "$WITH_OPENSSL" != "no"; then
14295: use_openssl=yes
14296: if test "$WITH_OPENSSL" != "yes"; then
14297: CPPFLAGS="$CPPFLAGS -I$WITH_OPENSSL/include"
14298: LDFLAGS="$LDFLAGS -L$WITH_OPENSSL/lib"
14299: fi
14300: else
14301: use_openssl=no
14302: fi
14303: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_openssl" >&5
14304: $as_echo "$use_openssl" >&6; }
14305:
14306:
14307: # Check whether --with-openssl-includes was given.
14308: if test "${with_openssl_includes+set}" = set; then :
14309: withval=$with_openssl_includes; use_openssl=yes CPPFLAGS="$CPPFLAGS -I$withval"
14310:
14311: fi
14312:
14313:
14314:
14315: # Check whether --with-openssl-libs was given.
14316: if test "${with_openssl_libs+set}" = set; then :
14317: withval=$with_openssl_libs; use_openssl=yes LDFLAGS="$LDFLAGS -L$withval"
14318:
14319: fi
14320:
14321:
14322:
14323: # Check whether --with-kerberos5 was given.
14324: if test "${with_kerberos5+set}" = set; then :
14325: withval=$with_kerberos5; use_kerberos=yes
14326: else
14327: use_kerberos=no
14328:
14329: fi
14330:
14331:
14332: if test "x$use_openssl" = "xyes"; then
14333: if test "x$use_kerberos" != "xyes"; then
14334: CPPFLAGS="$CPPFLAGS -DOPENSSL_NO_KRB5"
14335: fi
14336:
14337: for ac_header in openssl/ssl.h
14338: do :
14339: ac_fn_c_check_header_mongrel "$LINENO" "openssl/ssl.h" "ac_cv_header_openssl_ssl_h" "$ac_includes_default"
14340: if test "x$ac_cv_header_openssl_ssl_h" = xyes; then :
14341: cat >>confdefs.h <<_ACEOF
14342: #define HAVE_OPENSSL_SSL_H 1
14343: _ACEOF
14344:
14345: fi
14346:
14347: done
14348:
14349: OLDLIBS="$LIBS"
14350: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BIO_f_base64 in -lcrypto" >&5
14351: $as_echo_n "checking for BIO_f_base64 in -lcrypto... " >&6; }
14352: if ${ac_cv_lib_crypto_BIO_f_base64+:} false; then :
14353: $as_echo_n "(cached) " >&6
14354: else
14355: ac_check_lib_save_LIBS=$LIBS
14356: LIBS="-lcrypto $LIBS"
14357: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14358: /* end confdefs.h. */
14359:
14360: /* Override any GCC internal prototype to avoid an error.
14361: Use char because int might match the return type of a GCC
14362: builtin and then its argument prototype would still apply. */
14363: #ifdef __cplusplus
14364: extern "C"
14365: #endif
14366: char BIO_f_base64 ();
14367: int
14368: main ()
14369: {
14370: return BIO_f_base64 ();
14371: ;
14372: return 0;
14373: }
14374: _ACEOF
14375: if ac_fn_c_try_link "$LINENO"; then :
14376: ac_cv_lib_crypto_BIO_f_base64=yes
14377: else
14378: ac_cv_lib_crypto_BIO_f_base64=no
14379: fi
14380: rm -f core conftest.err conftest.$ac_objext \
14381: conftest$ac_exeext conftest.$ac_ext
14382: LIBS=$ac_check_lib_save_LIBS
14383: fi
14384: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_BIO_f_base64" >&5
14385: $as_echo "$ac_cv_lib_crypto_BIO_f_base64" >&6; }
14386: if test "x$ac_cv_lib_crypto_BIO_f_base64" = xyes; then :
14387:
14388: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_new in -lssl" >&5
14389: $as_echo_n "checking for SSL_new in -lssl... " >&6; }
14390: if ${ac_cv_lib_ssl_SSL_new+:} false; then :
14391: $as_echo_n "(cached) " >&6
14392: else
14393: ac_check_lib_save_LIBS=$LIBS
14394: LIBS="-lssl -lcrypto "$DL_LIB" $LIBS"
14395: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14396: /* end confdefs.h. */
14397:
14398: /* Override any GCC internal prototype to avoid an error.
14399: Use char because int might match the return type of a GCC
14400: builtin and then its argument prototype would still apply. */
14401: #ifdef __cplusplus
14402: extern "C"
14403: #endif
14404: char SSL_new ();
14405: int
14406: main ()
14407: {
14408: return SSL_new ();
14409: ;
14410: return 0;
14411: }
14412: _ACEOF
14413: if ac_fn_c_try_link "$LINENO"; then :
14414: ac_cv_lib_ssl_SSL_new=yes
14415: else
14416: ac_cv_lib_ssl_SSL_new=no
14417: fi
14418: rm -f core conftest.err conftest.$ac_objext \
14419: conftest$ac_exeext conftest.$ac_ext
14420: LIBS=$ac_check_lib_save_LIBS
14421: fi
14422: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_new" >&5
14423: $as_echo "$ac_cv_lib_ssl_SSL_new" >&6; }
14424: if test "x$ac_cv_lib_ssl_SSL_new" = xyes; then :
14425: SSL_LIB="-lssl -lcrypto"
14426:
14427: $as_echo "#define HAVE_LIBSSL /**/" >>confdefs.h
14428:
14429: fi
14430:
14431:
14432: fi
14433:
14434: LIBS="$OLDLIBS"
14435:
14436: fi
14437:
14438: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl regular expressions support" >&5
14439: $as_echo_n "checking for perl regular expressions support... " >&6; }
14440:
14441: # Check whether --with-pcre was given.
14442: if test "${with_pcre+set}" = set; then :
14443: withval=$with_pcre; WITH_PCRE=$withval
14444: else
14445: WITH_PCRE=yes
14446: fi
14447:
14448: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WITH_PCRE" >&5
14449: $as_echo "$WITH_PCRE" >&6; }
14450:
14451: if test "$WITH_PCRE" != "no"; then
14452: # Extract the first word of "pcre-config", so it can be a program name with args.
14453: set dummy pcre-config; ac_word=$2
14454: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14455: $as_echo_n "checking for $ac_word... " >&6; }
14456: if ${ac_cv_path_PCRECONFIG+:} false; then :
14457: $as_echo_n "(cached) " >&6
14458: else
14459: case $PCRECONFIG in
14460: [\\/]* | ?:[\\/]*)
14461: ac_cv_path_PCRECONFIG="$PCRECONFIG" # Let the user override the test with a path.
14462: ;;
14463: *)
14464: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14465: for as_dir in $PATH
14466: do
14467: IFS=$as_save_IFS
14468: test -z "$as_dir" && as_dir=.
14469: for ac_exec_ext in '' $ac_executable_extensions; do
14470: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14471: ac_cv_path_PCRECONFIG="$as_dir/$ac_word$ac_exec_ext"
14472: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14473: break 2
14474: fi
14475: done
14476: done
14477: IFS=$as_save_IFS
14478:
14479: ;;
14480: esac
14481: fi
14482: PCRECONFIG=$ac_cv_path_PCRECONFIG
14483: if test -n "$PCRECONFIG"; then
14484: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCRECONFIG" >&5
14485: $as_echo "$PCRECONFIG" >&6; }
14486: else
14487: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14488: $as_echo "no" >&6; }
14489: fi
14490:
14491:
14492:
14493: if test x"$PCRECONFIG" != x; then
14494: PCRE_LIB=`$PCRECONFIG --libs`
14495: CPPFLAGS="$CPPFLAGS `$PCRECONFIG --cflags`"
14496:
14497: $as_echo "#define HAVE_LIBPCRE 1" >>confdefs.h
14498:
14499:
14500: $as_echo "#define HAVE_PCRE_H 1" >>confdefs.h
14501:
14502: else
14503: as_fn_error $? "pcre-config not found, install the pcre-devel package or build with --without-pcre" "$LINENO" 5
14504: fi
14505: fi
14506:
14507:
14508:
14509: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zlib support" >&5
14510: $as_echo_n "checking for zlib support... " >&6; }
14511:
14512: # Check whether --with-zlib was given.
14513: if test "${with_zlib+set}" = set; then :
14514: withval=$with_zlib; WITH_ZLIB=$withval
14515: else
14516: WITH_ZLIB=yes
14517: fi
14518:
14519: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WITH_ZLIB" >&5
14520: $as_echo "$WITH_ZLIB" >&6; }
14521:
14522: if test "$WITH_ZLIB" != "no"; then
14523: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
14524: $as_echo_n "checking for deflate in -lz... " >&6; }
14525: if ${ac_cv_lib_z_deflate+:} false; then :
14526: $as_echo_n "(cached) " >&6
14527: else
14528: ac_check_lib_save_LIBS=$LIBS
14529: LIBS="-lz $LIBS"
14530: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14531: /* end confdefs.h. */
14532:
14533: /* Override any GCC internal prototype to avoid an error.
14534: Use char because int might match the return type of a GCC
14535: builtin and then its argument prototype would still apply. */
14536: #ifdef __cplusplus
14537: extern "C"
14538: #endif
14539: char deflate ();
14540: int
14541: main ()
14542: {
14543: return deflate ();
14544: ;
14545: return 0;
14546: }
14547: _ACEOF
14548: if ac_fn_c_try_link "$LINENO"; then :
14549: ac_cv_lib_z_deflate=yes
14550: else
14551: ac_cv_lib_z_deflate=no
14552: fi
14553: rm -f core conftest.err conftest.$ac_objext \
14554: conftest$ac_exeext conftest.$ac_ext
14555: LIBS=$ac_check_lib_save_LIBS
14556: fi
14557: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
14558: $as_echo "$ac_cv_lib_z_deflate" >&6; }
14559: if test "x$ac_cv_lib_z_deflate" = xyes; then :
14560:
14561: for ac_header in zlib.h
14562: do :
14563: ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
14564: if test "x$ac_cv_header_zlib_h" = xyes; then :
14565: cat >>confdefs.h <<_ACEOF
14566: #define HAVE_ZLIB_H 1
14567: _ACEOF
14568:
14569: Z_LIB=-lz
14570:
14571: $as_echo "#define HAVE_LIBZ 1" >>confdefs.h
14572:
14573: $as_echo "#define HAVE_ZLIB_H 1" >>confdefs.h
14574:
14575:
14576: fi
14577:
14578: done
14579:
14580:
14581: fi
14582:
14583: if test x$Z_LIB = x; then
14584: as_fn_error $? "zlib-headers and/or libs where not found, install them or build with --without-zlib" "$LINENO" 5
14585: fi
14586: fi
14587:
14588:
14589: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bzip2 support" >&5
14590: $as_echo_n "checking for bzip2 support... " >&6; }
14591:
14592: # Check whether --with-bzip2 was given.
14593: if test "${with_bzip2+set}" = set; then :
14594: withval=$with_bzip2; WITH_BZIP2=$withval
14595: else
14596: WITH_BZIP2=yes
14597: fi
14598:
14599: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WITH_BZIP2" >&5
14600: $as_echo "$WITH_BZIP2" >&6; }
14601:
14602: if test "$WITH_BZIP2" != "no"; then
14603: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzCompress in -lbz2" >&5
14604: $as_echo_n "checking for BZ2_bzCompress in -lbz2... " >&6; }
14605: if ${ac_cv_lib_bz2_BZ2_bzCompress+:} false; then :
14606: $as_echo_n "(cached) " >&6
14607: else
14608: ac_check_lib_save_LIBS=$LIBS
14609: LIBS="-lbz2 $LIBS"
14610: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14611: /* end confdefs.h. */
14612:
14613: /* Override any GCC internal prototype to avoid an error.
14614: Use char because int might match the return type of a GCC
14615: builtin and then its argument prototype would still apply. */
14616: #ifdef __cplusplus
14617: extern "C"
14618: #endif
14619: char BZ2_bzCompress ();
14620: int
14621: main ()
14622: {
14623: return BZ2_bzCompress ();
14624: ;
14625: return 0;
14626: }
14627: _ACEOF
14628: if ac_fn_c_try_link "$LINENO"; then :
14629: ac_cv_lib_bz2_BZ2_bzCompress=yes
14630: else
14631: ac_cv_lib_bz2_BZ2_bzCompress=no
14632: fi
14633: rm -f core conftest.err conftest.$ac_objext \
14634: conftest$ac_exeext conftest.$ac_ext
14635: LIBS=$ac_check_lib_save_LIBS
14636: fi
14637: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzCompress" >&5
14638: $as_echo "$ac_cv_lib_bz2_BZ2_bzCompress" >&6; }
14639: if test "x$ac_cv_lib_bz2_BZ2_bzCompress" = xyes; then :
14640:
14641: for ac_header in bzlib.h
14642: do :
14643: ac_fn_c_check_header_mongrel "$LINENO" "bzlib.h" "ac_cv_header_bzlib_h" "$ac_includes_default"
14644: if test "x$ac_cv_header_bzlib_h" = xyes; then :
14645: cat >>confdefs.h <<_ACEOF
14646: #define HAVE_BZLIB_H 1
14647: _ACEOF
14648:
14649: BZ_LIB=-lbz2
14650:
14651: $as_echo "#define HAVE_LIBBZ2 1" >>confdefs.h
14652:
14653: $as_echo "#define HAVE_BZLIB_H 1" >>confdefs.h
14654:
14655:
14656: fi
14657:
14658: done
14659:
14660:
14661: fi
14662:
14663: if test x$BZ_LIB = x; then
14664: as_fn_error $? "bzip2-headers and/or libs where not found, install them or build with --without-bzip2" "$LINENO" 5
14665: fi
14666: fi
14667:
14668:
14669: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FAM" >&5
14670: $as_echo_n "checking for FAM... " >&6; }
14671:
14672: # Check whether --with-fam was given.
14673: if test "${with_fam+set}" = set; then :
14674: withval=$with_fam; WITH_FAM=$withval
14675: else
14676: WITH_FAM=no
14677: fi
14678:
14679: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WITH_FAM" >&5
14680: $as_echo "$WITH_FAM" >&6; }
14681:
14682: if test "$WITH_FAM" != "no"; then
14683: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FAMOpen2 in -lfam" >&5
14684: $as_echo_n "checking for FAMOpen2 in -lfam... " >&6; }
14685: if ${ac_cv_lib_fam_FAMOpen2+:} false; then :
14686: $as_echo_n "(cached) " >&6
14687: else
14688: ac_check_lib_save_LIBS=$LIBS
14689: LIBS="-lfam $LIBS"
14690: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14691: /* end confdefs.h. */
14692:
14693: /* Override any GCC internal prototype to avoid an error.
14694: Use char because int might match the return type of a GCC
14695: builtin and then its argument prototype would still apply. */
14696: #ifdef __cplusplus
14697: extern "C"
14698: #endif
14699: char FAMOpen2 ();
14700: int
14701: main ()
14702: {
14703: return FAMOpen2 ();
14704: ;
14705: return 0;
14706: }
14707: _ACEOF
14708: if ac_fn_c_try_link "$LINENO"; then :
14709: ac_cv_lib_fam_FAMOpen2=yes
14710: else
14711: ac_cv_lib_fam_FAMOpen2=no
14712: fi
14713: rm -f core conftest.err conftest.$ac_objext \
14714: conftest$ac_exeext conftest.$ac_ext
14715: LIBS=$ac_check_lib_save_LIBS
14716: fi
14717: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fam_FAMOpen2" >&5
14718: $as_echo "$ac_cv_lib_fam_FAMOpen2" >&6; }
14719: if test "x$ac_cv_lib_fam_FAMOpen2" = xyes; then :
14720:
14721: for ac_header in fam.h
14722: do :
14723: ac_fn_c_check_header_mongrel "$LINENO" "fam.h" "ac_cv_header_fam_h" "$ac_includes_default"
14724: if test "x$ac_cv_header_fam_h" = xyes; then :
14725: cat >>confdefs.h <<_ACEOF
14726: #define HAVE_FAM_H 1
14727: _ACEOF
14728:
14729: FAM_LIBS=-lfam
14730:
14731: $as_echo "#define HAVE_LIBFAM 1" >>confdefs.h
14732:
14733:
14734: $as_echo "#define HAVE_FAM_H 1" >>confdefs.h
14735:
14736:
14737: fi
14738:
14739: done
14740:
14741:
14742: fi
14743:
14744: if test "x$FAM_LIBS" = x; then
14745:
14746: pkg_failed=no
14747: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FAM" >&5
14748: $as_echo_n "checking for FAM... " >&6; }
14749:
14750: if test -n "$FAM_CFLAGS"; then
14751: pkg_cv_FAM_CFLAGS="$FAM_CFLAGS"
14752: elif test -n "$PKG_CONFIG"; then
14753: if test -n "$PKG_CONFIG" && \
14754: { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gamin >= 0.1.0\""; } >&5
14755: ($PKG_CONFIG --exists --print-errors "gamin >= 0.1.0") 2>&5
14756: ac_status=$?
14757: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14758: test $ac_status = 0; }; then
14759: pkg_cv_FAM_CFLAGS=`$PKG_CONFIG --cflags "gamin >= 0.1.0" 2>/dev/null`
14760: test "x$?" != "x0" && pkg_failed=yes
14761: else
14762: pkg_failed=yes
14763: fi
14764: else
14765: pkg_failed=untried
14766: fi
14767: if test -n "$FAM_LIBS"; then
14768: pkg_cv_FAM_LIBS="$FAM_LIBS"
14769: elif test -n "$PKG_CONFIG"; then
14770: if test -n "$PKG_CONFIG" && \
14771: { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gamin >= 0.1.0\""; } >&5
14772: ($PKG_CONFIG --exists --print-errors "gamin >= 0.1.0") 2>&5
14773: ac_status=$?
14774: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14775: test $ac_status = 0; }; then
14776: pkg_cv_FAM_LIBS=`$PKG_CONFIG --libs "gamin >= 0.1.0" 2>/dev/null`
14777: test "x$?" != "x0" && pkg_failed=yes
14778: else
14779: pkg_failed=yes
14780: fi
14781: else
14782: pkg_failed=untried
14783: fi
14784:
14785:
14786:
14787: if test $pkg_failed = yes; then
14788: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14789: $as_echo "no" >&6; }
14790:
14791: if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14792: _pkg_short_errors_supported=yes
14793: else
14794: _pkg_short_errors_supported=no
14795: fi
14796: if test $_pkg_short_errors_supported = yes; then
14797: FAM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gamin >= 0.1.0" 2>&1`
14798: else
14799: FAM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gamin >= 0.1.0" 2>&1`
14800: fi
14801: # Put the nasty error message in config.log where it belongs
14802: echo "$FAM_PKG_ERRORS" >&5
14803:
14804: as_fn_error $? "Package requirements (gamin >= 0.1.0) were not met:
14805:
14806: $FAM_PKG_ERRORS
14807:
14808: Consider adjusting the PKG_CONFIG_PATH environment variable if you
14809: installed software in a non-standard prefix.
14810:
14811: Alternatively, you may set the environment variables FAM_CFLAGS
14812: and FAM_LIBS to avoid the need to call pkg-config.
14813: See the pkg-config man page for more details." "$LINENO" 5
14814: elif test $pkg_failed = untried; then
14815: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14816: $as_echo "no" >&6; }
14817: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14818: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14819: as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
14820: is in your PATH or set the PKG_CONFIG environment variable to the full
14821: path to pkg-config.
14822:
14823: Alternatively, you may set the environment variables FAM_CFLAGS
14824: and FAM_LIBS to avoid the need to call pkg-config.
14825: See the pkg-config man page for more details.
14826:
14827: To get pkg-config, see <http://pkg-config.freedesktop.org/>.
14828: See \`config.log' for more details" "$LINENO" 5; }
14829: else
14830: FAM_CFLAGS=$pkg_cv_FAM_CFLAGS
14831: FAM_LIBS=$pkg_cv_FAM_LIBS
14832: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14833: $as_echo "yes" >&6; }
14834:
14835:
14836: $as_echo "#define HAVE_LIBFAM 1" >>confdefs.h
14837:
14838:
14839: $as_echo "#define HAVE_FAM_H 1" >>confdefs.h
14840:
14841:
14842: fi
14843: fi
14844: OLD_LIBS=$LIBS
14845: LIBS=$FAM_LIBS
14846: for ac_func in FAMNoExists
14847: do :
14848: ac_fn_c_check_func "$LINENO" "FAMNoExists" "ac_cv_func_FAMNoExists"
14849: if test "x$ac_cv_func_FAMNoExists" = xyes; then :
14850: cat >>confdefs.h <<_ACEOF
14851: #define HAVE_FAMNOEXISTS 1
14852: _ACEOF
14853:
14854: fi
14855: done
14856:
14857: LIBS=$OLD_LIBS
14858:
14859: if test x$FAM_LIBS = x; then
14860: as_fn_error $? "fam/gamin-headers and/or libs where not found, install them or build with --without-fam" "$LINENO" 5
14861: fi
14862: fi
14863:
14864: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for properties in mod_webdav" >&5
14865: $as_echo_n "checking for properties in mod_webdav... " >&6; }
14866:
14867: # Check whether --with-webdav-props was given.
14868: if test "${with_webdav_props+set}" = set; then :
14869: withval=$with_webdav_props; WITH_WEBDAV_PROPS=$withval
14870: else
14871: WITH_WEBDAV_PROPS=no
14872: fi
14873:
14874: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WITH_WEBDAV_PROPS" >&5
14875: $as_echo "$WITH_WEBDAV_PROPS" >&6; }
14876:
14877: if test "$WITH_WEBDAV_PROPS" != "no"; then
14878:
14879: pkg_failed=no
14880: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML" >&5
14881: $as_echo_n "checking for XML... " >&6; }
14882:
14883: if test -n "$XML_CFLAGS"; then
14884: pkg_cv_XML_CFLAGS="$XML_CFLAGS"
14885: elif test -n "$PKG_CONFIG"; then
14886: if test -n "$PKG_CONFIG" && \
14887: { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0\""; } >&5
14888: ($PKG_CONFIG --exists --print-errors "libxml-2.0") 2>&5
14889: ac_status=$?
14890: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14891: test $ac_status = 0; }; then
14892: pkg_cv_XML_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0" 2>/dev/null`
14893: test "x$?" != "x0" && pkg_failed=yes
14894: else
14895: pkg_failed=yes
14896: fi
14897: else
14898: pkg_failed=untried
14899: fi
14900: if test -n "$XML_LIBS"; then
14901: pkg_cv_XML_LIBS="$XML_LIBS"
14902: elif test -n "$PKG_CONFIG"; then
14903: if test -n "$PKG_CONFIG" && \
14904: { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0\""; } >&5
14905: ($PKG_CONFIG --exists --print-errors "libxml-2.0") 2>&5
14906: ac_status=$?
14907: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14908: test $ac_status = 0; }; then
14909: pkg_cv_XML_LIBS=`$PKG_CONFIG --libs "libxml-2.0" 2>/dev/null`
14910: test "x$?" != "x0" && pkg_failed=yes
14911: else
14912: pkg_failed=yes
14913: fi
14914: else
14915: pkg_failed=untried
14916: fi
14917:
14918:
14919:
14920: if test $pkg_failed = yes; then
14921: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14922: $as_echo "no" >&6; }
14923:
14924: if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14925: _pkg_short_errors_supported=yes
14926: else
14927: _pkg_short_errors_supported=no
14928: fi
14929: if test $_pkg_short_errors_supported = yes; then
14930: XML_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libxml-2.0" 2>&1`
14931: else
14932: XML_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libxml-2.0" 2>&1`
14933: fi
14934: # Put the nasty error message in config.log where it belongs
14935: echo "$XML_PKG_ERRORS" >&5
14936:
14937: as_fn_error $? "Package requirements (libxml-2.0) were not met:
14938:
14939: $XML_PKG_ERRORS
14940:
14941: Consider adjusting the PKG_CONFIG_PATH environment variable if you
14942: installed software in a non-standard prefix.
14943:
14944: Alternatively, you may set the environment variables XML_CFLAGS
14945: and XML_LIBS to avoid the need to call pkg-config.
14946: See the pkg-config man page for more details." "$LINENO" 5
14947: elif test $pkg_failed = untried; then
14948: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14949: $as_echo "no" >&6; }
14950: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14951: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14952: as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
14953: is in your PATH or set the PKG_CONFIG environment variable to the full
14954: path to pkg-config.
14955:
14956: Alternatively, you may set the environment variables XML_CFLAGS
14957: and XML_LIBS to avoid the need to call pkg-config.
14958: See the pkg-config man page for more details.
14959:
14960: To get pkg-config, see <http://pkg-config.freedesktop.org/>.
14961: See \`config.log' for more details" "$LINENO" 5; }
14962: else
14963: XML_CFLAGS=$pkg_cv_XML_CFLAGS
14964: XML_LIBS=$pkg_cv_XML_LIBS
14965: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14966: $as_echo "yes" >&6; }
14967:
14968:
14969: $as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
14970:
14971:
14972: $as_echo "#define HAVE_LIBXML_H 1" >>confdefs.h
14973:
14974:
14975: fi
14976:
14977: pkg_failed=no
14978: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SQLITE" >&5
14979: $as_echo_n "checking for SQLITE... " >&6; }
14980:
14981: if test -n "$SQLITE_CFLAGS"; then
14982: pkg_cv_SQLITE_CFLAGS="$SQLITE_CFLAGS"
14983: elif test -n "$PKG_CONFIG"; then
14984: if test -n "$PKG_CONFIG" && \
14985: { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sqlite3\""; } >&5
14986: ($PKG_CONFIG --exists --print-errors "sqlite3") 2>&5
14987: ac_status=$?
14988: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14989: test $ac_status = 0; }; then
14990: pkg_cv_SQLITE_CFLAGS=`$PKG_CONFIG --cflags "sqlite3" 2>/dev/null`
14991: test "x$?" != "x0" && pkg_failed=yes
14992: else
14993: pkg_failed=yes
14994: fi
14995: else
14996: pkg_failed=untried
14997: fi
14998: if test -n "$SQLITE_LIBS"; then
14999: pkg_cv_SQLITE_LIBS="$SQLITE_LIBS"
15000: elif test -n "$PKG_CONFIG"; then
15001: if test -n "$PKG_CONFIG" && \
15002: { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sqlite3\""; } >&5
15003: ($PKG_CONFIG --exists --print-errors "sqlite3") 2>&5
15004: ac_status=$?
15005: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15006: test $ac_status = 0; }; then
15007: pkg_cv_SQLITE_LIBS=`$PKG_CONFIG --libs "sqlite3" 2>/dev/null`
15008: test "x$?" != "x0" && pkg_failed=yes
15009: else
15010: pkg_failed=yes
15011: fi
15012: else
15013: pkg_failed=untried
15014: fi
15015:
15016:
15017:
15018: if test $pkg_failed = yes; then
15019: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15020: $as_echo "no" >&6; }
15021:
15022: if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15023: _pkg_short_errors_supported=yes
15024: else
15025: _pkg_short_errors_supported=no
15026: fi
15027: if test $_pkg_short_errors_supported = yes; then
15028: SQLITE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "sqlite3" 2>&1`
15029: else
15030: SQLITE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "sqlite3" 2>&1`
15031: fi
15032: # Put the nasty error message in config.log where it belongs
15033: echo "$SQLITE_PKG_ERRORS" >&5
15034:
15035: as_fn_error $? "Package requirements (sqlite3) were not met:
15036:
15037: $SQLITE_PKG_ERRORS
15038:
15039: Consider adjusting the PKG_CONFIG_PATH environment variable if you
15040: installed software in a non-standard prefix.
15041:
15042: Alternatively, you may set the environment variables SQLITE_CFLAGS
15043: and SQLITE_LIBS to avoid the need to call pkg-config.
15044: See the pkg-config man page for more details." "$LINENO" 5
15045: elif test $pkg_failed = untried; then
15046: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15047: $as_echo "no" >&6; }
15048: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15049: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15050: as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
15051: is in your PATH or set the PKG_CONFIG environment variable to the full
15052: path to pkg-config.
15053:
15054: Alternatively, you may set the environment variables SQLITE_CFLAGS
15055: and SQLITE_LIBS to avoid the need to call pkg-config.
15056: See the pkg-config man page for more details.
15057:
15058: To get pkg-config, see <http://pkg-config.freedesktop.org/>.
15059: See \`config.log' for more details" "$LINENO" 5; }
15060: else
15061: SQLITE_CFLAGS=$pkg_cv_SQLITE_CFLAGS
15062: SQLITE_LIBS=$pkg_cv_SQLITE_LIBS
15063: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15064: $as_echo "yes" >&6; }
15065:
15066:
15067: $as_echo "#define HAVE_SQLITE3 1" >>confdefs.h
15068:
15069:
15070: $as_echo "#define HAVE_SQLITE3_H 1" >>confdefs.h
15071:
15072:
15073: fi
15074:
15075: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for locks in mod_webdav" >&5
15076: $as_echo_n "checking for locks in mod_webdav... " >&6; }
15077:
15078: # Check whether --with-webdav-locks was given.
15079: if test "${with_webdav_locks+set}" = set; then :
15080: withval=$with_webdav_locks; WITH_WEBDAV_LOCKS=$withval
15081: else
15082: WITH_WEBDAV_LOCKS=no
15083: fi
15084:
15085: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WITH_WEBDAV_LOCKS" >&5
15086: $as_echo "$WITH_WEBDAV_LOCKS" >&6; }
15087:
15088: if test "$WITH_WEBDAV_LOCKS" != "no"; then
15089: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_unparse in -luuid" >&5
15090: $as_echo_n "checking for uuid_unparse in -luuid... " >&6; }
15091: if ${ac_cv_lib_uuid_uuid_unparse+:} false; then :
15092: $as_echo_n "(cached) " >&6
15093: else
15094: ac_check_lib_save_LIBS=$LIBS
15095: LIBS="-luuid $LIBS"
15096: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15097: /* end confdefs.h. */
15098:
15099: /* Override any GCC internal prototype to avoid an error.
15100: Use char because int might match the return type of a GCC
15101: builtin and then its argument prototype would still apply. */
15102: #ifdef __cplusplus
15103: extern "C"
15104: #endif
15105: char uuid_unparse ();
15106: int
15107: main ()
15108: {
15109: return uuid_unparse ();
15110: ;
15111: return 0;
15112: }
15113: _ACEOF
15114: if ac_fn_c_try_link "$LINENO"; then :
15115: ac_cv_lib_uuid_uuid_unparse=yes
15116: else
15117: ac_cv_lib_uuid_uuid_unparse=no
15118: fi
15119: rm -f core conftest.err conftest.$ac_objext \
15120: conftest$ac_exeext conftest.$ac_ext
15121: LIBS=$ac_check_lib_save_LIBS
15122: fi
15123: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_unparse" >&5
15124: $as_echo "$ac_cv_lib_uuid_uuid_unparse" >&6; }
15125: if test "x$ac_cv_lib_uuid_uuid_unparse" = xyes; then :
15126:
15127: for ac_header in uuid/uuid.h
15128: do :
15129: ac_fn_c_check_header_mongrel "$LINENO" "uuid/uuid.h" "ac_cv_header_uuid_uuid_h" "$ac_includes_default"
15130: if test "x$ac_cv_header_uuid_uuid_h" = xyes; then :
15131: cat >>confdefs.h <<_ACEOF
15132: #define HAVE_UUID_UUID_H 1
15133: _ACEOF
15134:
15135: UUID_LIBS=-luuid
15136:
15137: $as_echo "#define HAVE_UUID 1" >>confdefs.h
15138:
15139:
15140: $as_echo "#define HAVE_UUID_H 1" >>confdefs.h
15141:
15142:
15143: fi
15144:
15145: done
15146:
15147:
15148: fi
15149:
15150:
15151: fi
15152: fi
15153:
15154:
15155: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdbm" >&5
15156: $as_echo_n "checking for gdbm... " >&6; }
15157:
15158: # Check whether --with-gdbm was given.
15159: if test "${with_gdbm+set}" = set; then :
15160: withval=$with_gdbm; WITH_GDBM=$withval
15161: else
15162: WITH_GDBM=no
15163: fi
15164:
15165: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WITH_GDBM" >&5
15166: $as_echo "$WITH_GDBM" >&6; }
15167:
15168: if test "$WITH_GDBM" != "no"; then
15169: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdbm_open in -lgdbm" >&5
15170: $as_echo_n "checking for gdbm_open in -lgdbm... " >&6; }
15171: if ${ac_cv_lib_gdbm_gdbm_open+:} false; then :
15172: $as_echo_n "(cached) " >&6
15173: else
15174: ac_check_lib_save_LIBS=$LIBS
15175: LIBS="-lgdbm $LIBS"
15176: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15177: /* end confdefs.h. */
15178:
15179: /* Override any GCC internal prototype to avoid an error.
15180: Use char because int might match the return type of a GCC
15181: builtin and then its argument prototype would still apply. */
15182: #ifdef __cplusplus
15183: extern "C"
15184: #endif
15185: char gdbm_open ();
15186: int
15187: main ()
15188: {
15189: return gdbm_open ();
15190: ;
15191: return 0;
15192: }
15193: _ACEOF
15194: if ac_fn_c_try_link "$LINENO"; then :
15195: ac_cv_lib_gdbm_gdbm_open=yes
15196: else
15197: ac_cv_lib_gdbm_gdbm_open=no
15198: fi
15199: rm -f core conftest.err conftest.$ac_objext \
15200: conftest$ac_exeext conftest.$ac_ext
15201: LIBS=$ac_check_lib_save_LIBS
15202: fi
15203: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gdbm_gdbm_open" >&5
15204: $as_echo "$ac_cv_lib_gdbm_gdbm_open" >&6; }
15205: if test "x$ac_cv_lib_gdbm_gdbm_open" = xyes; then :
15206:
15207: for ac_header in gdbm.h
15208: do :
15209: ac_fn_c_check_header_mongrel "$LINENO" "gdbm.h" "ac_cv_header_gdbm_h" "$ac_includes_default"
15210: if test "x$ac_cv_header_gdbm_h" = xyes; then :
15211: cat >>confdefs.h <<_ACEOF
15212: #define HAVE_GDBM_H 1
15213: _ACEOF
15214:
15215: GDBM_LIB=-lgdbm
15216:
15217: $as_echo "#define HAVE_GDBM 1" >>confdefs.h
15218:
15219: $as_echo "#define HAVE_GDBM_H 1" >>confdefs.h
15220:
15221:
15222: fi
15223:
15224: done
15225:
15226:
15227: fi
15228:
15229:
15230: fi
15231:
15232: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for memcache" >&5
15233: $as_echo_n "checking for memcache... " >&6; }
15234:
15235: # Check whether --with-memcache was given.
15236: if test "${with_memcache+set}" = set; then :
15237: withval=$with_memcache; WITH_MEMCACHE=$withval
15238: else
15239: WITH_MEMCACHE=no
15240: fi
15241:
15242: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WITH_MEMCACHE" >&5
15243: $as_echo "$WITH_MEMCACHE" >&6; }
15244: if test "$WITH_MEMCACHE" != "no"; then
15245: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mc_new in -lmemcache" >&5
15246: $as_echo_n "checking for mc_new in -lmemcache... " >&6; }
15247: if ${ac_cv_lib_memcache_mc_new+:} false; then :
15248: $as_echo_n "(cached) " >&6
15249: else
15250: ac_check_lib_save_LIBS=$LIBS
15251: LIBS="-lmemcache $LIBS"
15252: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15253: /* end confdefs.h. */
15254:
15255: /* Override any GCC internal prototype to avoid an error.
15256: Use char because int might match the return type of a GCC
15257: builtin and then its argument prototype would still apply. */
15258: #ifdef __cplusplus
15259: extern "C"
15260: #endif
15261: char mc_new ();
15262: int
15263: main ()
15264: {
15265: return mc_new ();
15266: ;
15267: return 0;
15268: }
15269: _ACEOF
15270: if ac_fn_c_try_link "$LINENO"; then :
15271: ac_cv_lib_memcache_mc_new=yes
15272: else
15273: ac_cv_lib_memcache_mc_new=no
15274: fi
15275: rm -f core conftest.err conftest.$ac_objext \
15276: conftest$ac_exeext conftest.$ac_ext
15277: LIBS=$ac_check_lib_save_LIBS
15278: fi
15279: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_memcache_mc_new" >&5
15280: $as_echo "$ac_cv_lib_memcache_mc_new" >&6; }
15281: if test "x$ac_cv_lib_memcache_mc_new" = xyes; then :
15282:
15283: for ac_header in memcache.h
15284: do :
15285: ac_fn_c_check_header_mongrel "$LINENO" "memcache.h" "ac_cv_header_memcache_h" "$ac_includes_default"
15286: if test "x$ac_cv_header_memcache_h" = xyes; then :
15287: cat >>confdefs.h <<_ACEOF
15288: #define HAVE_MEMCACHE_H 1
15289: _ACEOF
15290:
15291: MEMCACHE_LIB=-lmemcache
15292:
15293: $as_echo "#define HAVE_MEMCACHE 1" >>confdefs.h
15294:
15295:
15296: $as_echo "#define HAVE_MEMCACHE_H 1" >>confdefs.h
15297:
15298:
15299: fi
15300:
15301: done
15302:
15303:
15304: fi
15305:
15306:
15307: fi
15308:
15309: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if lua-support is requested" >&5
15310: $as_echo_n "checking if lua-support is requested... " >&6; }
15311:
15312: # Check whether --with-lua was given.
15313: if test "${with_lua+set}" = set; then :
15314: withval=$with_lua; WITH_LUA=$withval
15315: else
15316: WITH_LUA=no
15317: fi
15318:
15319:
15320: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WITH_LUA" >&5
15321: $as_echo "$WITH_LUA" >&6; }
15322: if test "$WITH_LUA" != "no"; then
15323: if test "$WITH_LUA" = "yes"; then
15324: WITH_LUA=lua
15325: fi
15326:
15327: pkg_failed=no
15328: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
15329: $as_echo_n "checking for LUA... " >&6; }
15330:
15331: if test -n "$LUA_CFLAGS"; then
15332: pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
15333: elif test -n "$PKG_CONFIG"; then
15334: if test -n "$PKG_CONFIG" && \
15335: { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1 >= 5.1\""; } >&5
15336: ($PKG_CONFIG --exists --print-errors "lua5.1 >= 5.1") 2>&5
15337: ac_status=$?
15338: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15339: test $ac_status = 0; }; then
15340: pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.1 >= 5.1" 2>/dev/null`
15341: test "x$?" != "x0" && pkg_failed=yes
15342: else
15343: pkg_failed=yes
15344: fi
15345: else
15346: pkg_failed=untried
15347: fi
15348: if test -n "$LUA_LIBS"; then
15349: pkg_cv_LUA_LIBS="$LUA_LIBS"
15350: elif test -n "$PKG_CONFIG"; then
15351: if test -n "$PKG_CONFIG" && \
15352: { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1 >= 5.1\""; } >&5
15353: ($PKG_CONFIG --exists --print-errors "lua5.1 >= 5.1") 2>&5
15354: ac_status=$?
15355: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15356: test $ac_status = 0; }; then
15357: pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.1 >= 5.1" 2>/dev/null`
15358: test "x$?" != "x0" && pkg_failed=yes
15359: else
15360: pkg_failed=yes
15361: fi
15362: else
15363: pkg_failed=untried
15364: fi
15365:
15366:
15367:
15368: if test $pkg_failed = yes; then
15369: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15370: $as_echo "no" >&6; }
15371:
15372: if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15373: _pkg_short_errors_supported=yes
15374: else
15375: _pkg_short_errors_supported=no
15376: fi
15377: if test $_pkg_short_errors_supported = yes; then
15378: LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua5.1 >= 5.1" 2>&1`
15379: else
15380: LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua5.1 >= 5.1" 2>&1`
15381: fi
15382: # Put the nasty error message in config.log where it belongs
15383: echo "$LUA_PKG_ERRORS" >&5
15384:
15385:
15386:
15387: pkg_failed=no
15388: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
15389: $as_echo_n "checking for LUA... " >&6; }
15390:
15391: if test -n "$LUA_CFLAGS"; then
15392: pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
15393: elif test -n "$PKG_CONFIG"; then
15394: if test -n "$PKG_CONFIG" && \
15395: { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1 >= 5.1\""; } >&5
15396: ($PKG_CONFIG --exists --print-errors "lua-5.1 >= 5.1") 2>&5
15397: ac_status=$?
15398: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15399: test $ac_status = 0; }; then
15400: pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua-5.1 >= 5.1" 2>/dev/null`
15401: test "x$?" != "x0" && pkg_failed=yes
15402: else
15403: pkg_failed=yes
15404: fi
15405: else
15406: pkg_failed=untried
15407: fi
15408: if test -n "$LUA_LIBS"; then
15409: pkg_cv_LUA_LIBS="$LUA_LIBS"
15410: elif test -n "$PKG_CONFIG"; then
15411: if test -n "$PKG_CONFIG" && \
15412: { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1 >= 5.1\""; } >&5
15413: ($PKG_CONFIG --exists --print-errors "lua-5.1 >= 5.1") 2>&5
15414: ac_status=$?
15415: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15416: test $ac_status = 0; }; then
15417: pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua-5.1 >= 5.1" 2>/dev/null`
15418: test "x$?" != "x0" && pkg_failed=yes
15419: else
15420: pkg_failed=yes
15421: fi
15422: else
15423: pkg_failed=untried
15424: fi
15425:
15426:
15427:
15428: if test $pkg_failed = yes; then
15429: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15430: $as_echo "no" >&6; }
15431:
15432: if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15433: _pkg_short_errors_supported=yes
15434: else
15435: _pkg_short_errors_supported=no
15436: fi
15437: if test $_pkg_short_errors_supported = yes; then
15438: LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua-5.1 >= 5.1" 2>&1`
15439: else
15440: LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua-5.1 >= 5.1" 2>&1`
15441: fi
15442: # Put the nasty error message in config.log where it belongs
15443: echo "$LUA_PKG_ERRORS" >&5
15444:
15445:
15446:
15447: pkg_failed=no
15448: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
15449: $as_echo_n "checking for LUA... " >&6; }
15450:
15451: if test -n "$LUA_CFLAGS"; then
15452: pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
15453: elif test -n "$PKG_CONFIG"; then
15454: if test -n "$PKG_CONFIG" && \
15455: { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$WITH_LUA >= 5.1\""; } >&5
15456: ($PKG_CONFIG --exists --print-errors "$WITH_LUA >= 5.1") 2>&5
15457: ac_status=$?
15458: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15459: test $ac_status = 0; }; then
15460: pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "$WITH_LUA >= 5.1" 2>/dev/null`
15461: test "x$?" != "x0" && pkg_failed=yes
15462: else
15463: pkg_failed=yes
15464: fi
15465: else
15466: pkg_failed=untried
15467: fi
15468: if test -n "$LUA_LIBS"; then
15469: pkg_cv_LUA_LIBS="$LUA_LIBS"
15470: elif test -n "$PKG_CONFIG"; then
15471: if test -n "$PKG_CONFIG" && \
15472: { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$WITH_LUA >= 5.1\""; } >&5
15473: ($PKG_CONFIG --exists --print-errors "$WITH_LUA >= 5.1") 2>&5
15474: ac_status=$?
15475: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15476: test $ac_status = 0; }; then
15477: pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "$WITH_LUA >= 5.1" 2>/dev/null`
15478: test "x$?" != "x0" && pkg_failed=yes
15479: else
15480: pkg_failed=yes
15481: fi
15482: else
15483: pkg_failed=untried
15484: fi
15485:
15486:
15487:
15488: if test $pkg_failed = yes; then
15489: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15490: $as_echo "no" >&6; }
15491:
15492: if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15493: _pkg_short_errors_supported=yes
15494: else
15495: _pkg_short_errors_supported=no
15496: fi
15497: if test $_pkg_short_errors_supported = yes; then
15498: LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$WITH_LUA >= 5.1" 2>&1`
15499: else
15500: LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$WITH_LUA >= 5.1" 2>&1`
15501: fi
15502: # Put the nasty error message in config.log where it belongs
15503: echo "$LUA_PKG_ERRORS" >&5
15504:
15505: as_fn_error $? "Package requirements ($WITH_LUA >= 5.1) were not met:
15506:
15507: $LUA_PKG_ERRORS
15508:
15509: Consider adjusting the PKG_CONFIG_PATH environment variable if you
15510: installed software in a non-standard prefix.
15511:
15512: Alternatively, you may set the environment variables LUA_CFLAGS
15513: and LUA_LIBS to avoid the need to call pkg-config.
15514: See the pkg-config man page for more details." "$LINENO" 5
15515: elif test $pkg_failed = untried; then
15516: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15517: $as_echo "no" >&6; }
15518: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15519: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15520: as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
15521: is in your PATH or set the PKG_CONFIG environment variable to the full
15522: path to pkg-config.
15523:
15524: Alternatively, you may set the environment variables LUA_CFLAGS
15525: and LUA_LIBS to avoid the need to call pkg-config.
15526: See the pkg-config man page for more details.
15527:
15528: To get pkg-config, see <http://pkg-config.freedesktop.org/>.
15529: See \`config.log' for more details" "$LINENO" 5; }
15530: else
15531: LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
15532: LUA_LIBS=$pkg_cv_LUA_LIBS
15533: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15534: $as_echo "yes" >&6; }
15535:
15536:
15537: $as_echo "#define HAVE_LUA 1" >>confdefs.h
15538:
15539:
15540: $as_echo "#define HAVE_LUA_H 1" >>confdefs.h
15541:
15542:
15543: fi
15544:
15545: elif test $pkg_failed = untried; then
15546: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15547: $as_echo "no" >&6; }
15548:
15549:
15550: pkg_failed=no
15551: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
15552: $as_echo_n "checking for LUA... " >&6; }
15553:
15554: if test -n "$LUA_CFLAGS"; then
15555: pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
15556: elif test -n "$PKG_CONFIG"; then
15557: if test -n "$PKG_CONFIG" && \
15558: { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$WITH_LUA >= 5.1\""; } >&5
15559: ($PKG_CONFIG --exists --print-errors "$WITH_LUA >= 5.1") 2>&5
15560: ac_status=$?
15561: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15562: test $ac_status = 0; }; then
15563: pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "$WITH_LUA >= 5.1" 2>/dev/null`
15564: test "x$?" != "x0" && pkg_failed=yes
15565: else
15566: pkg_failed=yes
15567: fi
15568: else
15569: pkg_failed=untried
15570: fi
15571: if test -n "$LUA_LIBS"; then
15572: pkg_cv_LUA_LIBS="$LUA_LIBS"
15573: elif test -n "$PKG_CONFIG"; then
15574: if test -n "$PKG_CONFIG" && \
15575: { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$WITH_LUA >= 5.1\""; } >&5
15576: ($PKG_CONFIG --exists --print-errors "$WITH_LUA >= 5.1") 2>&5
15577: ac_status=$?
15578: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15579: test $ac_status = 0; }; then
15580: pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "$WITH_LUA >= 5.1" 2>/dev/null`
15581: test "x$?" != "x0" && pkg_failed=yes
15582: else
15583: pkg_failed=yes
15584: fi
15585: else
15586: pkg_failed=untried
15587: fi
15588:
15589:
15590:
15591: if test $pkg_failed = yes; then
15592: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15593: $as_echo "no" >&6; }
15594:
15595: if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15596: _pkg_short_errors_supported=yes
15597: else
15598: _pkg_short_errors_supported=no
15599: fi
15600: if test $_pkg_short_errors_supported = yes; then
15601: LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$WITH_LUA >= 5.1" 2>&1`
15602: else
15603: LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$WITH_LUA >= 5.1" 2>&1`
15604: fi
15605: # Put the nasty error message in config.log where it belongs
15606: echo "$LUA_PKG_ERRORS" >&5
15607:
15608: as_fn_error $? "Package requirements ($WITH_LUA >= 5.1) were not met:
15609:
15610: $LUA_PKG_ERRORS
15611:
15612: Consider adjusting the PKG_CONFIG_PATH environment variable if you
15613: installed software in a non-standard prefix.
15614:
15615: Alternatively, you may set the environment variables LUA_CFLAGS
15616: and LUA_LIBS to avoid the need to call pkg-config.
15617: See the pkg-config man page for more details." "$LINENO" 5
15618: elif test $pkg_failed = untried; then
15619: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15620: $as_echo "no" >&6; }
15621: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15622: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15623: as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
15624: is in your PATH or set the PKG_CONFIG environment variable to the full
15625: path to pkg-config.
15626:
15627: Alternatively, you may set the environment variables LUA_CFLAGS
15628: and LUA_LIBS to avoid the need to call pkg-config.
15629: See the pkg-config man page for more details.
15630:
15631: To get pkg-config, see <http://pkg-config.freedesktop.org/>.
15632: See \`config.log' for more details" "$LINENO" 5; }
15633: else
15634: LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
15635: LUA_LIBS=$pkg_cv_LUA_LIBS
15636: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15637: $as_echo "yes" >&6; }
15638:
15639:
15640: $as_echo "#define HAVE_LUA 1" >>confdefs.h
15641:
15642:
15643: $as_echo "#define HAVE_LUA_H 1" >>confdefs.h
15644:
15645:
15646: fi
15647:
15648: else
15649: LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
15650: LUA_LIBS=$pkg_cv_LUA_LIBS
15651: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15652: $as_echo "yes" >&6; }
15653:
15654:
15655: $as_echo "#define HAVE_LUA 1" >>confdefs.h
15656:
15657:
15658: $as_echo "#define HAVE_LUA_H 1" >>confdefs.h
15659:
15660:
15661: fi
15662:
15663: elif test $pkg_failed = untried; then
15664: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15665: $as_echo "no" >&6; }
15666:
15667:
15668: pkg_failed=no
15669: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
15670: $as_echo_n "checking for LUA... " >&6; }
15671:
15672: if test -n "$LUA_CFLAGS"; then
15673: pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
15674: elif test -n "$PKG_CONFIG"; then
15675: if test -n "$PKG_CONFIG" && \
15676: { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1 >= 5.1\""; } >&5
15677: ($PKG_CONFIG --exists --print-errors "lua-5.1 >= 5.1") 2>&5
15678: ac_status=$?
15679: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15680: test $ac_status = 0; }; then
15681: pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua-5.1 >= 5.1" 2>/dev/null`
15682: test "x$?" != "x0" && pkg_failed=yes
15683: else
15684: pkg_failed=yes
15685: fi
15686: else
15687: pkg_failed=untried
15688: fi
15689: if test -n "$LUA_LIBS"; then
15690: pkg_cv_LUA_LIBS="$LUA_LIBS"
15691: elif test -n "$PKG_CONFIG"; then
15692: if test -n "$PKG_CONFIG" && \
15693: { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1 >= 5.1\""; } >&5
15694: ($PKG_CONFIG --exists --print-errors "lua-5.1 >= 5.1") 2>&5
15695: ac_status=$?
15696: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15697: test $ac_status = 0; }; then
15698: pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua-5.1 >= 5.1" 2>/dev/null`
15699: test "x$?" != "x0" && pkg_failed=yes
15700: else
15701: pkg_failed=yes
15702: fi
15703: else
15704: pkg_failed=untried
15705: fi
15706:
15707:
15708:
15709: if test $pkg_failed = yes; then
15710: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15711: $as_echo "no" >&6; }
15712:
15713: if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15714: _pkg_short_errors_supported=yes
15715: else
15716: _pkg_short_errors_supported=no
15717: fi
15718: if test $_pkg_short_errors_supported = yes; then
15719: LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua-5.1 >= 5.1" 2>&1`
15720: else
15721: LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua-5.1 >= 5.1" 2>&1`
15722: fi
15723: # Put the nasty error message in config.log where it belongs
15724: echo "$LUA_PKG_ERRORS" >&5
15725:
15726:
15727:
15728: pkg_failed=no
15729: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
15730: $as_echo_n "checking for LUA... " >&6; }
15731:
15732: if test -n "$LUA_CFLAGS"; then
15733: pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
15734: elif test -n "$PKG_CONFIG"; then
15735: if test -n "$PKG_CONFIG" && \
15736: { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$WITH_LUA >= 5.1\""; } >&5
15737: ($PKG_CONFIG --exists --print-errors "$WITH_LUA >= 5.1") 2>&5
15738: ac_status=$?
15739: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15740: test $ac_status = 0; }; then
15741: pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "$WITH_LUA >= 5.1" 2>/dev/null`
15742: test "x$?" != "x0" && pkg_failed=yes
15743: else
15744: pkg_failed=yes
15745: fi
15746: else
15747: pkg_failed=untried
15748: fi
15749: if test -n "$LUA_LIBS"; then
15750: pkg_cv_LUA_LIBS="$LUA_LIBS"
15751: elif test -n "$PKG_CONFIG"; then
15752: if test -n "$PKG_CONFIG" && \
15753: { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$WITH_LUA >= 5.1\""; } >&5
15754: ($PKG_CONFIG --exists --print-errors "$WITH_LUA >= 5.1") 2>&5
15755: ac_status=$?
15756: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15757: test $ac_status = 0; }; then
15758: pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "$WITH_LUA >= 5.1" 2>/dev/null`
15759: test "x$?" != "x0" && pkg_failed=yes
15760: else
15761: pkg_failed=yes
15762: fi
15763: else
15764: pkg_failed=untried
15765: fi
15766:
15767:
15768:
15769: if test $pkg_failed = yes; then
15770: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15771: $as_echo "no" >&6; }
15772:
15773: if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15774: _pkg_short_errors_supported=yes
15775: else
15776: _pkg_short_errors_supported=no
15777: fi
15778: if test $_pkg_short_errors_supported = yes; then
15779: LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$WITH_LUA >= 5.1" 2>&1`
15780: else
15781: LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$WITH_LUA >= 5.1" 2>&1`
15782: fi
15783: # Put the nasty error message in config.log where it belongs
15784: echo "$LUA_PKG_ERRORS" >&5
15785:
15786: as_fn_error $? "Package requirements ($WITH_LUA >= 5.1) were not met:
15787:
15788: $LUA_PKG_ERRORS
15789:
15790: Consider adjusting the PKG_CONFIG_PATH environment variable if you
15791: installed software in a non-standard prefix.
15792:
15793: Alternatively, you may set the environment variables LUA_CFLAGS
15794: and LUA_LIBS to avoid the need to call pkg-config.
15795: See the pkg-config man page for more details." "$LINENO" 5
15796: elif test $pkg_failed = untried; then
15797: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15798: $as_echo "no" >&6; }
15799: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15800: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15801: as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
15802: is in your PATH or set the PKG_CONFIG environment variable to the full
15803: path to pkg-config.
15804:
15805: Alternatively, you may set the environment variables LUA_CFLAGS
15806: and LUA_LIBS to avoid the need to call pkg-config.
15807: See the pkg-config man page for more details.
15808:
15809: To get pkg-config, see <http://pkg-config.freedesktop.org/>.
15810: See \`config.log' for more details" "$LINENO" 5; }
15811: else
15812: LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
15813: LUA_LIBS=$pkg_cv_LUA_LIBS
15814: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15815: $as_echo "yes" >&6; }
15816:
15817:
15818: $as_echo "#define HAVE_LUA 1" >>confdefs.h
15819:
15820:
15821: $as_echo "#define HAVE_LUA_H 1" >>confdefs.h
15822:
15823:
15824: fi
15825:
15826: elif test $pkg_failed = untried; then
15827: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15828: $as_echo "no" >&6; }
15829:
15830:
15831: pkg_failed=no
15832: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
15833: $as_echo_n "checking for LUA... " >&6; }
15834:
15835: if test -n "$LUA_CFLAGS"; then
15836: pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
15837: elif test -n "$PKG_CONFIG"; then
15838: if test -n "$PKG_CONFIG" && \
15839: { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$WITH_LUA >= 5.1\""; } >&5
15840: ($PKG_CONFIG --exists --print-errors "$WITH_LUA >= 5.1") 2>&5
15841: ac_status=$?
15842: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15843: test $ac_status = 0; }; then
15844: pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "$WITH_LUA >= 5.1" 2>/dev/null`
15845: test "x$?" != "x0" && pkg_failed=yes
15846: else
15847: pkg_failed=yes
15848: fi
15849: else
15850: pkg_failed=untried
15851: fi
15852: if test -n "$LUA_LIBS"; then
15853: pkg_cv_LUA_LIBS="$LUA_LIBS"
15854: elif test -n "$PKG_CONFIG"; then
15855: if test -n "$PKG_CONFIG" && \
15856: { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$WITH_LUA >= 5.1\""; } >&5
15857: ($PKG_CONFIG --exists --print-errors "$WITH_LUA >= 5.1") 2>&5
15858: ac_status=$?
15859: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15860: test $ac_status = 0; }; then
15861: pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "$WITH_LUA >= 5.1" 2>/dev/null`
15862: test "x$?" != "x0" && pkg_failed=yes
15863: else
15864: pkg_failed=yes
15865: fi
15866: else
15867: pkg_failed=untried
15868: fi
15869:
15870:
15871:
15872: if test $pkg_failed = yes; then
15873: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15874: $as_echo "no" >&6; }
15875:
15876: if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15877: _pkg_short_errors_supported=yes
15878: else
15879: _pkg_short_errors_supported=no
15880: fi
15881: if test $_pkg_short_errors_supported = yes; then
15882: LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$WITH_LUA >= 5.1" 2>&1`
15883: else
15884: LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$WITH_LUA >= 5.1" 2>&1`
15885: fi
15886: # Put the nasty error message in config.log where it belongs
15887: echo "$LUA_PKG_ERRORS" >&5
15888:
15889: as_fn_error $? "Package requirements ($WITH_LUA >= 5.1) were not met:
15890:
15891: $LUA_PKG_ERRORS
15892:
15893: Consider adjusting the PKG_CONFIG_PATH environment variable if you
15894: installed software in a non-standard prefix.
15895:
15896: Alternatively, you may set the environment variables LUA_CFLAGS
15897: and LUA_LIBS to avoid the need to call pkg-config.
15898: See the pkg-config man page for more details." "$LINENO" 5
15899: elif test $pkg_failed = untried; then
15900: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15901: $as_echo "no" >&6; }
15902: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15903: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15904: as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
15905: is in your PATH or set the PKG_CONFIG environment variable to the full
15906: path to pkg-config.
15907:
15908: Alternatively, you may set the environment variables LUA_CFLAGS
15909: and LUA_LIBS to avoid the need to call pkg-config.
15910: See the pkg-config man page for more details.
15911:
15912: To get pkg-config, see <http://pkg-config.freedesktop.org/>.
15913: See \`config.log' for more details" "$LINENO" 5; }
15914: else
15915: LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
15916: LUA_LIBS=$pkg_cv_LUA_LIBS
15917: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15918: $as_echo "yes" >&6; }
15919:
15920:
15921: $as_echo "#define HAVE_LUA 1" >>confdefs.h
15922:
15923:
15924: $as_echo "#define HAVE_LUA_H 1" >>confdefs.h
15925:
15926:
15927: fi
15928:
15929: else
15930: LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
15931: LUA_LIBS=$pkg_cv_LUA_LIBS
15932: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15933: $as_echo "yes" >&6; }
15934:
15935:
15936: $as_echo "#define HAVE_LUA 1" >>confdefs.h
15937:
15938:
15939: $as_echo "#define HAVE_LUA_H 1" >>confdefs.h
15940:
15941:
15942: fi
15943:
15944: else
15945: LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
15946: LUA_LIBS=$pkg_cv_LUA_LIBS
15947: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15948: $as_echo "yes" >&6; }
15949:
15950:
15951: $as_echo "#define HAVE_LUA 1" >>confdefs.h
15952:
15953:
15954: $as_echo "#define HAVE_LUA_H 1" >>confdefs.h
15955:
15956:
15957: fi
15958:
15959:
15960:
15961: fi
15962:
15963: save_LIBS=$LIBS
15964: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crypt" >&5
15965: $as_echo_n "checking for library containing crypt... " >&6; }
15966: if ${ac_cv_search_crypt+:} false; then :
15967: $as_echo_n "(cached) " >&6
15968: else
15969: ac_func_search_save_LIBS=$LIBS
15970: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15971: /* end confdefs.h. */
15972:
15973: /* Override any GCC internal prototype to avoid an error.
15974: Use char because int might match the return type of a GCC
15975: builtin and then its argument prototype would still apply. */
15976: #ifdef __cplusplus
15977: extern "C"
15978: #endif
15979: char crypt ();
15980: int
15981: main ()
15982: {
15983: return crypt ();
15984: ;
15985: return 0;
15986: }
15987: _ACEOF
15988: for ac_lib in '' crypt; do
15989: if test -z "$ac_lib"; then
15990: ac_res="none required"
15991: else
15992: ac_res=-l$ac_lib
15993: LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15994: fi
15995: if ac_fn_c_try_link "$LINENO"; then :
15996: ac_cv_search_crypt=$ac_res
15997: fi
15998: rm -f core conftest.err conftest.$ac_objext \
15999: conftest$ac_exeext
16000: if ${ac_cv_search_crypt+:} false; then :
16001: break
16002: fi
16003: done
16004: if ${ac_cv_search_crypt+:} false; then :
16005:
16006: else
16007: ac_cv_search_crypt=no
16008: fi
16009: rm conftest.$ac_ext
16010: LIBS=$ac_func_search_save_LIBS
16011: fi
16012: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypt" >&5
16013: $as_echo "$ac_cv_search_crypt" >&6; }
16014: ac_res=$ac_cv_search_crypt
16015: if test "$ac_res" != no; then :
16016: test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16017:
16018: for ac_header in crypt.h
16019: do :
16020: ac_fn_c_check_header_mongrel "$LINENO" "crypt.h" "ac_cv_header_crypt_h" "$ac_includes_default"
16021: if test "x$ac_cv_header_crypt_h" = xyes; then :
16022: cat >>confdefs.h <<_ACEOF
16023: #define HAVE_CRYPT_H 1
16024: _ACEOF
16025:
16026: $as_echo "#define HAVE_CRYPT_H 1" >>confdefs.h
16027:
16028:
16029: fi
16030:
16031: done
16032:
16033:
16034:
16035: $as_echo "#define HAVE_LIBCRYPT 1" >>confdefs.h
16036:
16037: if test "$ac_cv_search_crypt" != no; then
16038: test "$ac_cv_search_crypt" = "none required" || CRYPT_LIB="$ac_cv_search_crypt"
16039: fi
16040:
16041: fi
16042:
16043: LIBS=$save_LIBS
16044:
16045:
16046: save_LIBS=$LIBS
16047: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sendfilev" >&5
16048: $as_echo_n "checking for library containing sendfilev... " >&6; }
16049: if ${ac_cv_search_sendfilev+:} false; then :
16050: $as_echo_n "(cached) " >&6
16051: else
16052: ac_func_search_save_LIBS=$LIBS
16053: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16054: /* end confdefs.h. */
16055:
16056: /* Override any GCC internal prototype to avoid an error.
16057: Use char because int might match the return type of a GCC
16058: builtin and then its argument prototype would still apply. */
16059: #ifdef __cplusplus
16060: extern "C"
16061: #endif
16062: char sendfilev ();
16063: int
16064: main ()
16065: {
16066: return sendfilev ();
16067: ;
16068: return 0;
16069: }
16070: _ACEOF
16071: for ac_lib in '' sendfile; do
16072: if test -z "$ac_lib"; then
16073: ac_res="none required"
16074: else
16075: ac_res=-l$ac_lib
16076: LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16077: fi
16078: if ac_fn_c_try_link "$LINENO"; then :
16079: ac_cv_search_sendfilev=$ac_res
16080: fi
16081: rm -f core conftest.err conftest.$ac_objext \
16082: conftest$ac_exeext
16083: if ${ac_cv_search_sendfilev+:} false; then :
16084: break
16085: fi
16086: done
16087: if ${ac_cv_search_sendfilev+:} false; then :
16088:
16089: else
16090: ac_cv_search_sendfilev=no
16091: fi
16092: rm conftest.$ac_ext
16093: LIBS=$ac_func_search_save_LIBS
16094: fi
16095: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sendfilev" >&5
16096: $as_echo "$ac_cv_search_sendfilev" >&6; }
16097: ac_res=$ac_cv_search_sendfilev
16098: if test "$ac_res" != no; then :
16099: test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16100:
16101: if test "$ac_cv_search_sendfilev" != no; then
16102: test "$ac_cv_search_sendfilev" = "none required" || SENDFILE_LIB="$ac_cv_search_sendfilev"
16103:
16104: $as_echo "#define HAVE_SENDFILEV 1" >>confdefs.h
16105:
16106: fi
16107:
16108: fi
16109:
16110: LIBS=$save_LIBS
16111:
16112:
16113: case $host_os in
16114: *mingw* ) LIBS="$LIBS -lwsock32";;
16115: * ) ;;
16116: esac
16117:
16118: for ac_func in dup2 getcwd inet_ntoa inet_ntop memset mmap munmap strchr \
16119: strdup strerror strstr strtol sendfile getopt socket lstat \
16120: gethostbyname poll epoll_ctl getrlimit chroot \
16121: getuid select signal pathconf madvise posix_fadvise posix_madvise \
16122: writev sigaction sendfile64 send_file kqueue port_create localtime_r gmtime_r
16123: do :
16124: as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16125: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16126: if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16127: cat >>confdefs.h <<_ACEOF
16128: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16129: _ACEOF
16130:
16131: fi
16132: done
16133:
16134:
16135: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Large File System support" >&5
16136: $as_echo_n "checking for Large File System support... " >&6; }
16137: # Check whether --enable-lfs was given.
16138: if test "${enable_lfs+set}" = set; then :
16139: enableval=$enable_lfs; case "${enableval}" in
16140: yes) CPPFLAGS="${CPPFLAGS} -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGE_FILES" ;;
16141: no) ;;
16142: *) as_fn_error $? "bad value ${enableval} for --enable-lfs" "$LINENO" 5 ;;
16143: esac
16144: else
16145: CPPFLAGS="${CPPFLAGS} -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGE_FILES"
16146: enable_lfs=yes
16147: fi
16148:
16149: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
16150: $as_echo "$enableval" >&6; }
16151:
16152: # The cast to long int works around a bug in the HP C Compiler
16153: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16154: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16155: # This bug is HP SR number 8606223364.
16156: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
16157: $as_echo_n "checking size of long... " >&6; }
16158: if ${ac_cv_sizeof_long+:} false; then :
16159: $as_echo_n "(cached) " >&6
16160: else
16161: if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
16162:
16163: else
16164: if test "$ac_cv_type_long" = yes; then
16165: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16166: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16167: as_fn_error 77 "cannot compute sizeof (long)
16168: See \`config.log' for more details" "$LINENO" 5; }
16169: else
16170: ac_cv_sizeof_long=0
16171: fi
16172: fi
16173:
16174: fi
16175: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
16176: $as_echo "$ac_cv_sizeof_long" >&6; }
16177:
16178:
16179:
16180: cat >>confdefs.h <<_ACEOF
16181: #define SIZEOF_LONG $ac_cv_sizeof_long
16182: _ACEOF
16183:
16184:
16185: # The cast to long int works around a bug in the HP C Compiler
16186: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16187: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16188: # This bug is HP SR number 8606223364.
16189: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
16190: $as_echo_n "checking size of off_t... " >&6; }
16191: if ${ac_cv_sizeof_off_t+:} false; then :
16192: $as_echo_n "(cached) " >&6
16193: else
16194: if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default"; then :
16195:
16196: else
16197: if test "$ac_cv_type_off_t" = yes; then
16198: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16199: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16200: as_fn_error 77 "cannot compute sizeof (off_t)
16201: See \`config.log' for more details" "$LINENO" 5; }
16202: else
16203: ac_cv_sizeof_off_t=0
16204: fi
16205: fi
16206:
16207: fi
16208: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
16209: $as_echo "$ac_cv_sizeof_off_t" >&6; }
16210:
16211:
16212:
16213: cat >>confdefs.h <<_ACEOF
16214: #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
16215: _ACEOF
16216:
16217:
16218:
16219: if test "x$ac_cv_func_sendfile" = xyes; then
16220: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sendfile works" >&5
16221: $as_echo_n "checking if sendfile works... " >&6; }
16222: if test "x$cross_compiling" = xno; then
16223: if test "$cross_compiling" = yes; then :
16224: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16225: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16226: as_fn_error $? "cannot run test program while cross compiling
16227: See \`config.log' for more details" "$LINENO" 5; }
16228: else
16229: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16230: /* end confdefs.h. */
16231:
16232: #ifdef HAVE_SYS_SENDFILE_H
16233: #include <sys/sendfile.h>
16234: #endif /* HAVE_SYS_SENDFILE_H */
16235: #include <errno.h>
16236: int main() {
16237: int o = 0;
16238: if (-1 == sendfile(-1, 0, &o, 0) && errno == ENOSYS) return -1;
16239: return 0;
16240: }
16241: _ACEOF
16242: if ac_fn_c_try_run "$LINENO"; then :
16243: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16244: $as_echo "yes" >&6; }
16245: else
16246: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16247: $as_echo "no" >&6; }
16248:
16249: $as_echo "#define HAVE_SENDFILE_BROKEN 1" >>confdefs.h
16250:
16251: fi
16252: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16253: conftest.$ac_objext conftest.beam conftest.$ac_ext
16254: fi
16255:
16256: else
16257: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16258: $as_echo "no" >&6; }
16259:
16260: $as_echo "#define HAVE_SENDFILE_BROKEN 1" >>confdefs.h
16261:
16262: fi
16263: fi
16264:
16265:
16266: # Check whether --enable-ipv6 was given.
16267: if test "${enable_ipv6+set}" = set; then :
16268: enableval=$enable_ipv6; case "${enableval}" in
16269: yes) ipv6=true ;;
16270: no) ipv6=false ;;
16271: *) as_fn_error $? "bad value ${enableval} for --enable-ipv6" "$LINENO" 5 ;;
16272: esac
16273: else
16274: ipv6=true
16275: fi
16276:
16277:
16278: if test x$ipv6 = xtrue; then
16279: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IPv6 support" >&5
16280: $as_echo_n "checking for IPv6 support... " >&6; }
16281: if ${ac_cv_ipv6_support+:} false; then :
16282: $as_echo_n "(cached) " >&6
16283: else
16284: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16285: /* end confdefs.h. */
16286: #include <sys/types.h>
16287: #include <sys/socket.h>
16288: #include <netinet/in.h>
16289: int
16290: main ()
16291: {
16292: struct sockaddr_in6 s; struct in6_addr t=in6addr_any; int i=AF_INET6; s; t.s6_addr[0] = 0;
16293: ;
16294: return 0;
16295: }
16296: _ACEOF
16297: if ac_fn_c_try_link "$LINENO"; then :
16298: ac_cv_ipv6_support=yes
16299: else
16300: ac_cv_ipv6_support=no
16301: fi
16302: rm -f core conftest.err conftest.$ac_objext \
16303: conftest$ac_exeext conftest.$ac_ext
16304: fi
16305: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_ipv6_support" >&5
16306: $as_echo "$ac_cv_ipv6_support" >&6; }
16307:
16308: if test "$ac_cv_ipv6_support" = yes; then
16309:
16310: $as_echo "#define HAVE_IPV6 1" >>confdefs.h
16311:
16312: fi
16313: fi
16314:
16315: # disable mmap by default; if a mmapped file gets truncated, the process gets a SIGBUS signal
16316: # on reading the truncated area which we can't handle (yet).
16317: # lighttpd may always use mmap with files it owns (created tmp files)
16318: # Check whether --enable-mmap was given.
16319: if test "${enable_mmap+set}" = set; then :
16320: enableval=$enable_mmap; case "${enableval}" in
16321: yes) mmap=true ;;
16322: no) mmap=false ;;
16323: *) as_fn_error $? "bad value ${enableval} for --enable-mmap" "$LINENO" 5 ;;
16324: esac
16325: else
16326: mmap=false
16327: fi
16328:
16329:
16330: if test x$mmap = xtrue; then
16331:
16332: $as_echo "#define ENABLE_MMAP 1" >>confdefs.h
16333:
16334: fi
16335:
16336:
16337: if test "x$cross_compiling" = xyes; then
16338: CROSS_COMPILING_TRUE=
16339: CROSS_COMPILING_FALSE='#'
16340: else
16341: CROSS_COMPILING_TRUE='#'
16342: CROSS_COMPILING_FALSE=
16343: fi
16344:
16345:
16346: fastcgi_found=no
16347: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FCGI_Accept in -lfcgi" >&5
16348: $as_echo_n "checking for FCGI_Accept in -lfcgi... " >&6; }
16349: if ${ac_cv_lib_fcgi_FCGI_Accept+:} false; then :
16350: $as_echo_n "(cached) " >&6
16351: else
16352: ac_check_lib_save_LIBS=$LIBS
16353: LIBS="-lfcgi $LIBS"
16354: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16355: /* end confdefs.h. */
16356:
16357: /* Override any GCC internal prototype to avoid an error.
16358: Use char because int might match the return type of a GCC
16359: builtin and then its argument prototype would still apply. */
16360: #ifdef __cplusplus
16361: extern "C"
16362: #endif
16363: char FCGI_Accept ();
16364: int
16365: main ()
16366: {
16367: return FCGI_Accept ();
16368: ;
16369: return 0;
16370: }
16371: _ACEOF
16372: if ac_fn_c_try_link "$LINENO"; then :
16373: ac_cv_lib_fcgi_FCGI_Accept=yes
16374: else
16375: ac_cv_lib_fcgi_FCGI_Accept=no
16376: fi
16377: rm -f core conftest.err conftest.$ac_objext \
16378: conftest$ac_exeext conftest.$ac_ext
16379: LIBS=$ac_check_lib_save_LIBS
16380: fi
16381: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fcgi_FCGI_Accept" >&5
16382: $as_echo "$ac_cv_lib_fcgi_FCGI_Accept" >&6; }
16383: if test "x$ac_cv_lib_fcgi_FCGI_Accept" = xyes; then :
16384:
16385: for ac_header in fastcgi.h fastcgi/fastcgi.h
16386: do :
16387: as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16388: ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16389: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16390: cat >>confdefs.h <<_ACEOF
16391: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16392: _ACEOF
16393:
16394: fastcgi_found=yes
16395:
16396: fi
16397:
16398: done
16399:
16400:
16401: fi
16402:
16403:
16404: if test "x$fastcgi_found" = xyes; then
16405: CHECK_WITH_FASTCGI_TRUE=
16406: CHECK_WITH_FASTCGI_FALSE='#'
16407: else
16408: CHECK_WITH_FASTCGI_TRUE='#'
16409: CHECK_WITH_FASTCGI_FALSE=
16410: fi
16411:
16412:
16413:
16414: if test "${GCC}" = "yes"; then
16415: CFLAGS="${CFLAGS} -Wall -W -Wshadow -pedantic -std=gnu99"
16416: fi
16417:
16418: # Check whether --enable-extra-warnings was given.
16419: if test "${enable_extra_warnings+set}" = set; then :
16420: enableval=$enable_extra_warnings; case "${enableval}" in
16421: yes) extrawarnings=true ;;
16422: no) extrawarnings=false ;;
16423: *) as_fn_error $? "bad value ${enableval} for --enable-extra-warnings" "$LINENO" 5 ;;
16424: esac
16425: else
16426: extrawarnings=false
16427: fi
16428:
16429:
16430: if test x$extrawarnings = xtrue; then
16431: CFLAGS="${CFLAGS} -g -O2 -g2 -Wall -Wmissing-declarations -Wdeclaration-after-statement -Wno-pointer-sign -Wcast-align -Winline -Wsign-compare -Wnested-externs -Wpointer-arith -Wl,--as-needed -Wformat-security"
16432: fi
16433:
16434: LIGHTTPD_VERSION_ID=`echo $PACKAGE_VERSION | $AWK -F '.' '{print "(" $1 " << 16 | " $2 " << 8 | " $3 ")"}'`
16435:
16436: cat >>confdefs.h <<_ACEOF
16437: #define LIGHTTPD_VERSION_ID $LIGHTTPD_VERSION_ID
16438: _ACEOF
16439:
16440:
16441: ac_config_files="$ac_config_files Makefile src/Makefile doc/config/conf.d/Makefile doc/config/vhosts.d/Makefile doc/config/Makefile doc/scripts/Makefile doc/initscripts/Makefile doc/systemd/Makefile doc/outdated/Makefile doc/Makefile tests/Makefile tests/docroot/Makefile tests/docroot/123/Makefile tests/docroot/www/Makefile tests/docroot/www/go/Makefile tests/docroot/www/indexfile/Makefile tests/docroot/www/expire/Makefile distribute.sh"
16442:
16443: cat >confcache <<\_ACEOF
16444: # This file is a shell script that caches the results of configure
16445: # tests run on this system so they can be shared between configure
16446: # scripts and configure runs, see configure's option --config-cache.
16447: # It is not useful on other systems. If it contains results you don't
16448: # want to keep, you may remove or edit it.
16449: #
16450: # config.status only pays attention to the cache file if you give it
16451: # the --recheck option to rerun configure.
16452: #
16453: # `ac_cv_env_foo' variables (set or unset) will be overridden when
16454: # loading this file, other *unset* `ac_cv_foo' will be assigned the
16455: # following values.
16456:
16457: _ACEOF
16458:
16459: # The following way of writing the cache mishandles newlines in values,
16460: # but we know of no workaround that is simple, portable, and efficient.
16461: # So, we kill variables containing newlines.
16462: # Ultrix sh set writes to stderr and can't be redirected directly,
16463: # and sets the high bit in the cache file unless we assign to the vars.
16464: (
16465: for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16466: eval ac_val=\$$ac_var
16467: case $ac_val in #(
16468: *${as_nl}*)
16469: case $ac_var in #(
16470: *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16471: $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16472: esac
16473: case $ac_var in #(
16474: _ | IFS | as_nl) ;; #(
16475: BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16476: *) { eval $ac_var=; unset $ac_var;} ;;
16477: esac ;;
16478: esac
16479: done
16480:
16481: (set) 2>&1 |
16482: case $as_nl`(ac_space=' '; set) 2>&1` in #(
16483: *${as_nl}ac_space=\ *)
16484: # `set' does not quote correctly, so add quotes: double-quote
16485: # substitution turns \\\\ into \\, and sed turns \\ into \.
16486: sed -n \
16487: "s/'/'\\\\''/g;
16488: s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16489: ;; #(
16490: *)
16491: # `set' quotes correctly as required by POSIX, so do not add quotes.
16492: sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16493: ;;
16494: esac |
16495: sort
16496: ) |
16497: sed '
16498: /^ac_cv_env_/b end
16499: t clear
16500: :clear
16501: s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16502: t end
16503: s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16504: :end' >>confcache
16505: if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16506: if test -w "$cache_file"; then
16507: if test "x$cache_file" != "x/dev/null"; then
16508: { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16509: $as_echo "$as_me: updating cache $cache_file" >&6;}
16510: if test ! -f "$cache_file" || test -h "$cache_file"; then
16511: cat confcache >"$cache_file"
16512: else
16513: case $cache_file in #(
16514: */* | ?:*)
16515: mv -f confcache "$cache_file"$$ &&
16516: mv -f "$cache_file"$$ "$cache_file" ;; #(
16517: *)
16518: mv -f confcache "$cache_file" ;;
16519: esac
16520: fi
16521: fi
16522: else
16523: { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16524: $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16525: fi
16526: fi
16527: rm -f confcache
16528:
16529: test "x$prefix" = xNONE && prefix=$ac_default_prefix
16530: # Let make expand exec_prefix.
16531: test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16532:
16533: DEFS=-DHAVE_CONFIG_H
16534:
16535: ac_libobjs=
16536: ac_ltlibobjs=
16537: U=
16538: for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16539: # 1. Remove the extension, and $U if already installed.
16540: ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16541: ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16542: # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
16543: # will be set to the directory where LIBOBJS objects are built.
16544: as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16545: as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16546: done
16547: LIBOBJS=$ac_libobjs
16548:
16549: LTLIBOBJS=$ac_ltlibobjs
16550:
16551:
16552: { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
16553: $as_echo_n "checking that generated files are newer than configure... " >&6; }
16554: if test -n "$am_sleep_pid"; then
16555: # Hide warnings about reused PIDs.
16556: wait $am_sleep_pid 2>/dev/null
16557: fi
16558: { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
16559: $as_echo "done" >&6; }
16560: if test -n "$EXEEXT"; then
16561: am__EXEEXT_TRUE=
16562: am__EXEEXT_FALSE='#'
16563: else
16564: am__EXEEXT_TRUE='#'
16565: am__EXEEXT_FALSE=
16566: fi
16567:
16568: if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16569: as_fn_error $? "conditional \"AMDEP\" was never defined.
16570: Usually this means the macro was only invoked conditionally." "$LINENO" 5
16571: fi
16572: if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16573: as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
16574: Usually this means the macro was only invoked conditionally." "$LINENO" 5
16575: fi
16576: if test -z "${NO_RDYNAMIC_TRUE}" && test -z "${NO_RDYNAMIC_FALSE}"; then
16577: as_fn_error $? "conditional \"NO_RDYNAMIC\" was never defined.
16578: Usually this means the macro was only invoked conditionally." "$LINENO" 5
16579: fi
16580: if test -z "${CROSS_COMPILING_TRUE}" && test -z "${CROSS_COMPILING_FALSE}"; then
16581: as_fn_error $? "conditional \"CROSS_COMPILING\" was never defined.
16582: Usually this means the macro was only invoked conditionally." "$LINENO" 5
16583: fi
16584: if test -z "${CHECK_WITH_FASTCGI_TRUE}" && test -z "${CHECK_WITH_FASTCGI_FALSE}"; then
16585: as_fn_error $? "conditional \"CHECK_WITH_FASTCGI\" was never defined.
16586: Usually this means the macro was only invoked conditionally." "$LINENO" 5
16587: fi
16588:
16589: : "${CONFIG_STATUS=./config.status}"
16590: ac_write_fail=0
16591: ac_clean_files_save=$ac_clean_files
16592: ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16593: { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16594: $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16595: as_write_fail=0
16596: cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16597: #! $SHELL
16598: # Generated by $as_me.
16599: # Run this file to recreate the current configuration.
16600: # Compiler output produced by configure, useful for debugging
16601: # configure, is in config.log if it exists.
16602:
16603: debug=false
16604: ac_cs_recheck=false
16605: ac_cs_silent=false
16606:
16607: SHELL=\${CONFIG_SHELL-$SHELL}
16608: export SHELL
16609: _ASEOF
16610: cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16611: ## -------------------- ##
16612: ## M4sh Initialization. ##
16613: ## -------------------- ##
16614:
16615: # Be more Bourne compatible
16616: DUALCASE=1; export DUALCASE # for MKS sh
16617: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
16618: emulate sh
16619: NULLCMD=:
16620: # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16621: # is contrary to our usage. Disable this feature.
16622: alias -g '${1+"$@"}'='"$@"'
16623: setopt NO_GLOB_SUBST
16624: else
16625: case `(set -o) 2>/dev/null` in #(
16626: *posix*) :
16627: set -o posix ;; #(
16628: *) :
16629: ;;
16630: esac
16631: fi
16632:
16633:
16634: as_nl='
16635: '
16636: export as_nl
16637: # Printing a long string crashes Solaris 7 /usr/bin/printf.
16638: as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16639: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16640: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16641: # Prefer a ksh shell builtin over an external printf program on Solaris,
16642: # but without wasting forks for bash or zsh.
16643: if test -z "$BASH_VERSION$ZSH_VERSION" \
16644: && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16645: as_echo='print -r --'
16646: as_echo_n='print -rn --'
16647: elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16648: as_echo='printf %s\n'
16649: as_echo_n='printf %s'
16650: else
16651: if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16652: as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16653: as_echo_n='/usr/ucb/echo -n'
16654: else
16655: as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16656: as_echo_n_body='eval
16657: arg=$1;
16658: case $arg in #(
16659: *"$as_nl"*)
16660: expr "X$arg" : "X\\(.*\\)$as_nl";
16661: arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16662: esac;
16663: expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16664: '
16665: export as_echo_n_body
16666: as_echo_n='sh -c $as_echo_n_body as_echo'
16667: fi
16668: export as_echo_body
16669: as_echo='sh -c $as_echo_body as_echo'
16670: fi
16671:
16672: # The user is always right.
16673: if test "${PATH_SEPARATOR+set}" != set; then
16674: PATH_SEPARATOR=:
16675: (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16676: (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16677: PATH_SEPARATOR=';'
16678: }
16679: fi
16680:
16681:
16682: # IFS
16683: # We need space, tab and new line, in precisely that order. Quoting is
16684: # there to prevent editors from complaining about space-tab.
16685: # (If _AS_PATH_WALK were called with IFS unset, it would disable word
16686: # splitting by setting IFS to empty value.)
16687: IFS=" "" $as_nl"
16688:
16689: # Find who we are. Look in the path if we contain no directory separator.
16690: as_myself=
16691: case $0 in #((
16692: *[\\/]* ) as_myself=$0 ;;
16693: *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16694: for as_dir in $PATH
16695: do
16696: IFS=$as_save_IFS
16697: test -z "$as_dir" && as_dir=.
16698: test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16699: done
16700: IFS=$as_save_IFS
16701:
16702: ;;
16703: esac
16704: # We did not find ourselves, most probably we were run as `sh COMMAND'
16705: # in which case we are not to be found in the path.
16706: if test "x$as_myself" = x; then
16707: as_myself=$0
16708: fi
16709: if test ! -f "$as_myself"; then
16710: $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16711: exit 1
16712: fi
16713:
16714: # Unset variables that we do not need and which cause bugs (e.g. in
16715: # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
16716: # suppresses any "Segmentation fault" message there. '((' could
16717: # trigger a bug in pdksh 5.2.14.
16718: for as_var in BASH_ENV ENV MAIL MAILPATH
16719: do eval test x\${$as_var+set} = xset \
16720: && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16721: done
16722: PS1='$ '
16723: PS2='> '
16724: PS4='+ '
16725:
16726: # NLS nuisances.
16727: LC_ALL=C
16728: export LC_ALL
16729: LANGUAGE=C
16730: export LANGUAGE
16731:
16732: # CDPATH.
16733: (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16734:
16735:
16736: # as_fn_error STATUS ERROR [LINENO LOG_FD]
16737: # ----------------------------------------
16738: # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16739: # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16740: # script with STATUS, using 1 if that was 0.
16741: as_fn_error ()
16742: {
16743: as_status=$1; test $as_status -eq 0 && as_status=1
16744: if test "$4"; then
16745: as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16746: $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
16747: fi
16748: $as_echo "$as_me: error: $2" >&2
16749: as_fn_exit $as_status
16750: } # as_fn_error
16751:
16752:
16753: # as_fn_set_status STATUS
16754: # -----------------------
16755: # Set $? to STATUS, without forking.
16756: as_fn_set_status ()
16757: {
16758: return $1
16759: } # as_fn_set_status
16760:
16761: # as_fn_exit STATUS
16762: # -----------------
16763: # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16764: as_fn_exit ()
16765: {
16766: set +e
16767: as_fn_set_status $1
16768: exit $1
16769: } # as_fn_exit
16770:
16771: # as_fn_unset VAR
16772: # ---------------
16773: # Portably unset VAR.
16774: as_fn_unset ()
16775: {
16776: { eval $1=; unset $1;}
16777: }
16778: as_unset=as_fn_unset
16779: # as_fn_append VAR VALUE
16780: # ----------------------
16781: # Append the text in VALUE to the end of the definition contained in VAR. Take
16782: # advantage of any shell optimizations that allow amortized linear growth over
16783: # repeated appends, instead of the typical quadratic growth present in naive
16784: # implementations.
16785: if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16786: eval 'as_fn_append ()
16787: {
16788: eval $1+=\$2
16789: }'
16790: else
16791: as_fn_append ()
16792: {
16793: eval $1=\$$1\$2
16794: }
16795: fi # as_fn_append
16796:
16797: # as_fn_arith ARG...
16798: # ------------------
16799: # Perform arithmetic evaluation on the ARGs, and store the result in the
16800: # global $as_val. Take advantage of shells that can avoid forks. The arguments
16801: # must be portable across $(()) and expr.
16802: if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16803: eval 'as_fn_arith ()
16804: {
16805: as_val=$(( $* ))
16806: }'
16807: else
16808: as_fn_arith ()
16809: {
16810: as_val=`expr "$@" || test $? -eq 1`
16811: }
16812: fi # as_fn_arith
16813:
16814:
16815: if expr a : '\(a\)' >/dev/null 2>&1 &&
16816: test "X`expr 00001 : '.*\(...\)'`" = X001; then
16817: as_expr=expr
16818: else
16819: as_expr=false
16820: fi
16821:
16822: if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16823: as_basename=basename
16824: else
16825: as_basename=false
16826: fi
16827:
16828: if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16829: as_dirname=dirname
16830: else
16831: as_dirname=false
16832: fi
16833:
16834: as_me=`$as_basename -- "$0" ||
16835: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16836: X"$0" : 'X\(//\)$' \| \
16837: X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16838: $as_echo X/"$0" |
16839: sed '/^.*\/\([^/][^/]*\)\/*$/{
16840: s//\1/
16841: q
16842: }
16843: /^X\/\(\/\/\)$/{
16844: s//\1/
16845: q
16846: }
16847: /^X\/\(\/\).*/{
16848: s//\1/
16849: q
16850: }
16851: s/.*/./; q'`
16852:
16853: # Avoid depending upon Character Ranges.
16854: as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16855: as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16856: as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16857: as_cr_digits='0123456789'
16858: as_cr_alnum=$as_cr_Letters$as_cr_digits
16859:
16860: ECHO_C= ECHO_N= ECHO_T=
16861: case `echo -n x` in #(((((
16862: -n*)
16863: case `echo 'xy\c'` in
16864: *c*) ECHO_T=' ';; # ECHO_T is single tab character.
16865: xy) ECHO_C='\c';;
16866: *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
16867: ECHO_T=' ';;
16868: esac;;
16869: *)
16870: ECHO_N='-n';;
16871: esac
16872:
16873: rm -f conf$$ conf$$.exe conf$$.file
16874: if test -d conf$$.dir; then
16875: rm -f conf$$.dir/conf$$.file
16876: else
16877: rm -f conf$$.dir
16878: mkdir conf$$.dir 2>/dev/null
16879: fi
16880: if (echo >conf$$.file) 2>/dev/null; then
16881: if ln -s conf$$.file conf$$ 2>/dev/null; then
16882: as_ln_s='ln -s'
16883: # ... but there are two gotchas:
16884: # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16885: # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16886: # In both cases, we have to default to `cp -pR'.
16887: ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16888: as_ln_s='cp -pR'
16889: elif ln conf$$.file conf$$ 2>/dev/null; then
16890: as_ln_s=ln
16891: else
16892: as_ln_s='cp -pR'
16893: fi
16894: else
16895: as_ln_s='cp -pR'
16896: fi
16897: rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16898: rmdir conf$$.dir 2>/dev/null
16899:
16900:
16901: # as_fn_mkdir_p
16902: # -------------
16903: # Create "$as_dir" as a directory, including parents if necessary.
16904: as_fn_mkdir_p ()
16905: {
16906:
16907: case $as_dir in #(
16908: -*) as_dir=./$as_dir;;
16909: esac
16910: test -d "$as_dir" || eval $as_mkdir_p || {
16911: as_dirs=
16912: while :; do
16913: case $as_dir in #(
16914: *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16915: *) as_qdir=$as_dir;;
16916: esac
16917: as_dirs="'$as_qdir' $as_dirs"
16918: as_dir=`$as_dirname -- "$as_dir" ||
16919: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16920: X"$as_dir" : 'X\(//\)[^/]' \| \
16921: X"$as_dir" : 'X\(//\)$' \| \
16922: X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16923: $as_echo X"$as_dir" |
16924: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16925: s//\1/
16926: q
16927: }
16928: /^X\(\/\/\)[^/].*/{
16929: s//\1/
16930: q
16931: }
16932: /^X\(\/\/\)$/{
16933: s//\1/
16934: q
16935: }
16936: /^X\(\/\).*/{
16937: s//\1/
16938: q
16939: }
16940: s/.*/./; q'`
16941: test -d "$as_dir" && break
16942: done
16943: test -z "$as_dirs" || eval "mkdir $as_dirs"
16944: } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
16945:
16946:
16947: } # as_fn_mkdir_p
16948: if mkdir -p . 2>/dev/null; then
16949: as_mkdir_p='mkdir -p "$as_dir"'
16950: else
16951: test -d ./-p && rmdir ./-p
16952: as_mkdir_p=false
16953: fi
16954:
16955:
16956: # as_fn_executable_p FILE
16957: # -----------------------
16958: # Test if FILE is an executable regular file.
16959: as_fn_executable_p ()
16960: {
16961: test -f "$1" && test -x "$1"
16962: } # as_fn_executable_p
16963: as_test_x='test -x'
16964: as_executable_p=as_fn_executable_p
16965:
16966: # Sed expression to map a string onto a valid CPP name.
16967: as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16968:
16969: # Sed expression to map a string onto a valid variable name.
16970: as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16971:
16972:
16973: exec 6>&1
16974: ## ----------------------------------- ##
16975: ## Main body of $CONFIG_STATUS script. ##
16976: ## ----------------------------------- ##
16977: _ASEOF
16978: test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16979:
16980: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16981: # Save the log message, to keep $0 and so on meaningful, and to
16982: # report actual input values of CONFIG_FILES etc. instead of their
16983: # values after options handling.
16984: ac_log="
1.1.1.2 ! misho 16985: This file was extended by lighttpd $as_me 1.4.35, which was
1.1 misho 16986: generated by GNU Autoconf 2.69. Invocation command line was
16987:
16988: CONFIG_FILES = $CONFIG_FILES
16989: CONFIG_HEADERS = $CONFIG_HEADERS
16990: CONFIG_LINKS = $CONFIG_LINKS
16991: CONFIG_COMMANDS = $CONFIG_COMMANDS
16992: $ $0 $@
16993:
16994: on `(hostname || uname -n) 2>/dev/null | sed 1q`
16995: "
16996:
16997: _ACEOF
16998:
16999: case $ac_config_files in *"
17000: "*) set x $ac_config_files; shift; ac_config_files=$*;;
17001: esac
17002:
17003: case $ac_config_headers in *"
17004: "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17005: esac
17006:
17007:
17008: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17009: # Files that config.status was made for.
17010: config_files="$ac_config_files"
17011: config_headers="$ac_config_headers"
17012: config_commands="$ac_config_commands"
17013:
17014: _ACEOF
17015:
17016: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17017: ac_cs_usage="\
17018: \`$as_me' instantiates files and other configuration actions
17019: from templates according to the current configuration. Unless the files
17020: and actions are specified as TAGs, all are instantiated by default.
17021:
17022: Usage: $0 [OPTION]... [TAG]...
17023:
17024: -h, --help print this help, then exit
17025: -V, --version print version number and configuration settings, then exit
17026: --config print configuration, then exit
17027: -q, --quiet, --silent
17028: do not print progress messages
17029: -d, --debug don't remove temporary files
17030: --recheck update $as_me by reconfiguring in the same conditions
17031: --file=FILE[:TEMPLATE]
17032: instantiate the configuration file FILE
17033: --header=FILE[:TEMPLATE]
17034: instantiate the configuration header FILE
17035:
17036: Configuration files:
17037: $config_files
17038:
17039: Configuration headers:
17040: $config_headers
17041:
17042: Configuration commands:
17043: $config_commands
17044:
17045: Report bugs to <contact@lighttpd.net>."
17046:
17047: _ACEOF
17048: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17049: ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
17050: ac_cs_version="\\
1.1.1.2 ! misho 17051: lighttpd config.status 1.4.35
1.1 misho 17052: configured by $0, generated by GNU Autoconf 2.69,
17053: with options \\"\$ac_cs_config\\"
17054:
17055: Copyright (C) 2012 Free Software Foundation, Inc.
17056: This config.status script is free software; the Free Software Foundation
17057: gives unlimited permission to copy, distribute and modify it."
17058:
17059: ac_pwd='$ac_pwd'
17060: srcdir='$srcdir'
17061: INSTALL='$INSTALL'
17062: MKDIR_P='$MKDIR_P'
17063: AWK='$AWK'
17064: test -n "\$AWK" || AWK=awk
17065: _ACEOF
17066:
17067: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17068: # The default lists apply if the user does not specify any file.
17069: ac_need_defaults=:
17070: while test $# != 0
17071: do
17072: case $1 in
17073: --*=?*)
17074: ac_option=`expr "X$1" : 'X\([^=]*\)='`
17075: ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17076: ac_shift=:
17077: ;;
17078: --*=)
17079: ac_option=`expr "X$1" : 'X\([^=]*\)='`
17080: ac_optarg=
17081: ac_shift=:
17082: ;;
17083: *)
17084: ac_option=$1
17085: ac_optarg=$2
17086: ac_shift=shift
17087: ;;
17088: esac
17089:
17090: case $ac_option in
17091: # Handling of the options.
17092: -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17093: ac_cs_recheck=: ;;
17094: --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17095: $as_echo "$ac_cs_version"; exit ;;
17096: --config | --confi | --conf | --con | --co | --c )
17097: $as_echo "$ac_cs_config"; exit ;;
17098: --debug | --debu | --deb | --de | --d | -d )
17099: debug=: ;;
17100: --file | --fil | --fi | --f )
17101: $ac_shift
17102: case $ac_optarg in
17103: *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17104: '') as_fn_error $? "missing file argument" ;;
17105: esac
17106: as_fn_append CONFIG_FILES " '$ac_optarg'"
17107: ac_need_defaults=false;;
17108: --header | --heade | --head | --hea )
17109: $ac_shift
17110: case $ac_optarg in
17111: *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17112: esac
17113: as_fn_append CONFIG_HEADERS " '$ac_optarg'"
17114: ac_need_defaults=false;;
17115: --he | --h)
17116: # Conflict between --help and --header
17117: as_fn_error $? "ambiguous option: \`$1'
17118: Try \`$0 --help' for more information.";;
17119: --help | --hel | -h )
17120: $as_echo "$ac_cs_usage"; exit ;;
17121: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17122: | -silent | --silent | --silen | --sile | --sil | --si | --s)
17123: ac_cs_silent=: ;;
17124:
17125: # This is an error.
17126: -*) as_fn_error $? "unrecognized option: \`$1'
17127: Try \`$0 --help' for more information." ;;
17128:
17129: *) as_fn_append ac_config_targets " $1"
17130: ac_need_defaults=false ;;
17131:
17132: esac
17133: shift
17134: done
17135:
17136: ac_configure_extra_args=
17137:
17138: if $ac_cs_silent; then
17139: exec 6>/dev/null
17140: ac_configure_extra_args="$ac_configure_extra_args --silent"
17141: fi
17142:
17143: _ACEOF
17144: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17145: if \$ac_cs_recheck; then
17146: set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17147: shift
17148: \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17149: CONFIG_SHELL='$SHELL'
17150: export CONFIG_SHELL
17151: exec "\$@"
17152: fi
17153:
17154: _ACEOF
17155: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17156: exec 5>>config.log
17157: {
17158: echo
17159: sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17160: ## Running $as_me. ##
17161: _ASBOX
17162: $as_echo "$ac_log"
17163: } >&5
17164:
17165: _ACEOF
17166: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17167: #
17168: # INIT-COMMANDS
17169: #
17170: AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17171:
17172:
17173: # The HP-UX ksh and POSIX shell print the target directory to stdout
17174: # if CDPATH is set.
17175: (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17176:
17177: sed_quote_subst='$sed_quote_subst'
17178: double_quote_subst='$double_quote_subst'
17179: delay_variable_subst='$delay_variable_subst'
17180: SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
17181: Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
17182: GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
17183: EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
17184: FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
17185: SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
17186: ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
17187: LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
17188: enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
17189: enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
17190: macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
17191: macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
17192: pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
17193: enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
17194: PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
17195: host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
17196: host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
17197: host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
17198: build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
17199: build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
17200: build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
17201: NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
17202: LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
17203: max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
17204: ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
17205: exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
17206: lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
17207: lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
17208: lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
17209: lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
17210: lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
17211: reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
17212: reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
17213: OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
17214: deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
17215: file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
17216: file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
17217: want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
17218: DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
17219: sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
17220: AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
17221: AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
17222: archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
17223: STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
17224: RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
17225: old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17226: old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17227: old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
17228: lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
17229: CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
17230: CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
17231: compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
17232: GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
17233: lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
17234: lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
17235: lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
17236: 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"`'
17237: nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
17238: lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
17239: objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
17240: MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
17241: lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
17242: lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
17243: lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
17244: lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
17245: lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
17246: need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
17247: MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
17248: DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
17249: NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
17250: LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
17251: OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
17252: OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
17253: libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
17254: shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
17255: extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17256: archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
17257: enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
17258: export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
17259: whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
17260: compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
17261: old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
17262: old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17263: archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
17264: archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17265: module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
17266: module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17267: with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
17268: allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
17269: no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
17270: hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
17271: hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
17272: hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
17273: hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
17274: hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
17275: hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
17276: hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
17277: inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
17278: link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
17279: always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
17280: export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
17281: exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
17282: include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
17283: prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
17284: postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
17285: file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
17286: variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
17287: need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
17288: need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
17289: version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
17290: runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
17291: shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
17292: shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
17293: libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
17294: library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
17295: soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
17296: install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
17297: postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17298: postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17299: finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
17300: finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
17301: hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
17302: sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
17303: sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
17304: hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
17305: enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
17306: enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
17307: enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
17308: old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
17309: striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
17310:
17311: LTCC='$LTCC'
17312: LTCFLAGS='$LTCFLAGS'
17313: compiler='$compiler_DEFAULT'
17314:
17315: # A function that is used when there is no print builtin or printf.
17316: func_fallback_echo ()
17317: {
17318: eval 'cat <<_LTECHO_EOF
17319: \$1
17320: _LTECHO_EOF'
17321: }
17322:
17323: # Quote evaled strings.
17324: for var in SED \
17325: GREP \
17326: EGREP \
17327: FGREP \
17328: SHELL \
17329: ECHO \
17330: LD \
17331: PATH_SEPARATOR \
17332: NM \
17333: LN_S \
17334: lt_SP2NL \
17335: lt_NL2SP \
17336: reload_flag \
17337: OBJDUMP \
17338: deplibs_check_method \
17339: file_magic_cmd \
17340: file_magic_glob \
17341: want_nocaseglob \
17342: DLLTOOL \
17343: sharedlib_from_linklib_cmd \
17344: AR \
17345: AR_FLAGS \
17346: archiver_list_spec \
17347: STRIP \
17348: RANLIB \
17349: CC \
17350: CFLAGS \
17351: compiler \
17352: lt_cv_sys_global_symbol_pipe \
17353: lt_cv_sys_global_symbol_to_cdecl \
17354: lt_cv_sys_global_symbol_to_c_name_address \
17355: lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17356: nm_file_list_spec \
17357: lt_prog_compiler_no_builtin_flag \
17358: lt_prog_compiler_pic \
17359: lt_prog_compiler_wl \
17360: lt_prog_compiler_static \
17361: lt_cv_prog_compiler_c_o \
17362: need_locks \
17363: MANIFEST_TOOL \
17364: DSYMUTIL \
17365: NMEDIT \
17366: LIPO \
17367: OTOOL \
17368: OTOOL64 \
17369: shrext_cmds \
17370: export_dynamic_flag_spec \
17371: whole_archive_flag_spec \
17372: compiler_needs_object \
17373: with_gnu_ld \
17374: allow_undefined_flag \
17375: no_undefined_flag \
17376: hardcode_libdir_flag_spec \
17377: hardcode_libdir_separator \
17378: exclude_expsyms \
17379: include_expsyms \
17380: file_list_spec \
17381: variables_saved_for_relink \
17382: libname_spec \
17383: library_names_spec \
17384: soname_spec \
17385: install_override_mode \
17386: finish_eval \
17387: old_striplib \
17388: striplib; do
17389: case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17390: *[\\\\\\\`\\"\\\$]*)
17391: eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
17392: ;;
17393: *)
17394: eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17395: ;;
17396: esac
17397: done
17398:
17399: # Double-quote double-evaled strings.
17400: for var in reload_cmds \
17401: old_postinstall_cmds \
17402: old_postuninstall_cmds \
17403: old_archive_cmds \
17404: extract_expsyms_cmds \
17405: old_archive_from_new_cmds \
17406: old_archive_from_expsyms_cmds \
17407: archive_cmds \
17408: archive_expsym_cmds \
17409: module_cmds \
17410: module_expsym_cmds \
17411: export_symbols_cmds \
17412: prelink_cmds \
17413: postlink_cmds \
17414: postinstall_cmds \
17415: postuninstall_cmds \
17416: finish_cmds \
17417: sys_lib_search_path_spec \
17418: sys_lib_dlsearch_path_spec; do
17419: case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17420: *[\\\\\\\`\\"\\\$]*)
17421: eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
17422: ;;
17423: *)
17424: eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17425: ;;
17426: esac
17427: done
17428:
17429: ac_aux_dir='$ac_aux_dir'
17430: xsi_shell='$xsi_shell'
17431: lt_shell_append='$lt_shell_append'
17432:
17433: # See if we are running on zsh, and set the options which allow our
17434: # commands through without removal of \ escapes INIT.
17435: if test -n "\${ZSH_VERSION+set}" ; then
17436: setopt NO_GLOB_SUBST
17437: fi
17438:
17439:
17440: PACKAGE='$PACKAGE'
17441: VERSION='$VERSION'
17442: TIMESTAMP='$TIMESTAMP'
17443: RM='$RM'
17444: ofile='$ofile'
17445:
17446:
17447:
17448:
17449: _ACEOF
17450:
17451: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17452:
17453: # Handling of arguments.
17454: for ac_config_target in $ac_config_targets
17455: do
17456: case $ac_config_target in
17457: "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
17458: "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17459: "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
17460: "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17461: "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
17462: "doc/config/conf.d/Makefile") CONFIG_FILES="$CONFIG_FILES doc/config/conf.d/Makefile" ;;
17463: "doc/config/vhosts.d/Makefile") CONFIG_FILES="$CONFIG_FILES doc/config/vhosts.d/Makefile" ;;
17464: "doc/config/Makefile") CONFIG_FILES="$CONFIG_FILES doc/config/Makefile" ;;
17465: "doc/scripts/Makefile") CONFIG_FILES="$CONFIG_FILES doc/scripts/Makefile" ;;
17466: "doc/initscripts/Makefile") CONFIG_FILES="$CONFIG_FILES doc/initscripts/Makefile" ;;
17467: "doc/systemd/Makefile") CONFIG_FILES="$CONFIG_FILES doc/systemd/Makefile" ;;
17468: "doc/outdated/Makefile") CONFIG_FILES="$CONFIG_FILES doc/outdated/Makefile" ;;
17469: "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
17470: "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
17471: "tests/docroot/Makefile") CONFIG_FILES="$CONFIG_FILES tests/docroot/Makefile" ;;
17472: "tests/docroot/123/Makefile") CONFIG_FILES="$CONFIG_FILES tests/docroot/123/Makefile" ;;
17473: "tests/docroot/www/Makefile") CONFIG_FILES="$CONFIG_FILES tests/docroot/www/Makefile" ;;
17474: "tests/docroot/www/go/Makefile") CONFIG_FILES="$CONFIG_FILES tests/docroot/www/go/Makefile" ;;
17475: "tests/docroot/www/indexfile/Makefile") CONFIG_FILES="$CONFIG_FILES tests/docroot/www/indexfile/Makefile" ;;
17476: "tests/docroot/www/expire/Makefile") CONFIG_FILES="$CONFIG_FILES tests/docroot/www/expire/Makefile" ;;
17477: "distribute.sh") CONFIG_FILES="$CONFIG_FILES distribute.sh" ;;
17478:
17479: *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
17480: esac
17481: done
17482:
17483:
17484: # If the user did not use the arguments to specify the items to instantiate,
17485: # then the envvar interface is used. Set only those that are not.
17486: # We use the long form for the default assignment because of an extremely
17487: # bizarre bug on SunOS 4.1.3.
17488: if $ac_need_defaults; then
17489: test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17490: test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17491: test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17492: fi
17493:
17494: # Have a temporary directory for convenience. Make it in the build tree
17495: # simply because there is no reason against having it here, and in addition,
17496: # creating and moving files from /tmp can sometimes cause problems.
17497: # Hook for its removal unless debugging.
17498: # Note that there is a small window in which the directory will not be cleaned:
17499: # after its creation but before its name has been assigned to `$tmp'.
17500: $debug ||
17501: {
17502: tmp= ac_tmp=
17503: trap 'exit_status=$?
17504: : "${ac_tmp:=$tmp}"
17505: { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
17506: ' 0
17507: trap 'as_fn_exit 1' 1 2 13 15
17508: }
17509: # Create a (secure) tmp directory for tmp files.
17510:
17511: {
17512: tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17513: test -d "$tmp"
17514: } ||
17515: {
17516: tmp=./conf$$-$RANDOM
17517: (umask 077 && mkdir "$tmp")
17518: } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
17519: ac_tmp=$tmp
17520:
17521: # Set up the scripts for CONFIG_FILES section.
17522: # No need to generate them if there are no CONFIG_FILES.
17523: # This happens for instance with `./config.status config.h'.
17524: if test -n "$CONFIG_FILES"; then
17525:
17526:
17527: ac_cr=`echo X | tr X '\015'`
17528: # On cygwin, bash can eat \r inside `` if the user requested igncr.
17529: # But we know of no other shell where ac_cr would be empty at this
17530: # point, so we can use a bashism as a fallback.
17531: if test "x$ac_cr" = x; then
17532: eval ac_cr=\$\'\\r\'
17533: fi
17534: ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17535: if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17536: ac_cs_awk_cr='\\r'
17537: else
17538: ac_cs_awk_cr=$ac_cr
17539: fi
17540:
17541: echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
17542: _ACEOF
17543:
17544:
17545: {
17546: echo "cat >conf$$subs.awk <<_ACEOF" &&
17547: echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17548: echo "_ACEOF"
17549: } >conf$$subs.sh ||
17550: as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17551: ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
17552: ac_delim='%!_!# '
17553: for ac_last_try in false false false false false :; do
17554: . ./conf$$subs.sh ||
17555: as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17556:
17557: ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17558: if test $ac_delim_n = $ac_delim_num; then
17559: break
17560: elif $ac_last_try; then
17561: as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17562: else
17563: ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17564: fi
17565: done
17566: rm -f conf$$subs.sh
17567:
17568: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17569: cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
17570: _ACEOF
17571: sed -n '
17572: h
17573: s/^/S["/; s/!.*/"]=/
17574: p
17575: g
17576: s/^[^!]*!//
17577: :repl
17578: t repl
17579: s/'"$ac_delim"'$//
17580: t delim
17581: :nl
17582: h
17583: s/\(.\{148\}\)..*/\1/
17584: t more1
17585: s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17586: p
17587: n
17588: b repl
17589: :more1
17590: s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17591: p
17592: g
17593: s/.\{148\}//
17594: t nl
17595: :delim
17596: h
17597: s/\(.\{148\}\)..*/\1/
17598: t more2
17599: s/["\\]/\\&/g; s/^/"/; s/$/"/
17600: p
17601: b
17602: :more2
17603: s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17604: p
17605: g
17606: s/.\{148\}//
17607: t delim
17608: ' <conf$$subs.awk | sed '
17609: /^[^""]/{
17610: N
17611: s/\n//
17612: }
17613: ' >>$CONFIG_STATUS || ac_write_fail=1
17614: rm -f conf$$subs.awk
17615: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17616: _ACAWK
17617: cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
17618: for (key in S) S_is_set[key] = 1
17619: FS = ""
17620:
17621: }
17622: {
17623: line = $ 0
17624: nfields = split(line, field, "@")
17625: substed = 0
17626: len = length(field[1])
17627: for (i = 2; i < nfields; i++) {
17628: key = field[i]
17629: keylen = length(key)
17630: if (S_is_set[key]) {
17631: value = S[key]
17632: line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17633: len += length(value) + length(field[++i])
17634: substed = 1
17635: } else
17636: len += 1 + keylen
17637: }
17638:
17639: print line
17640: }
17641:
17642: _ACAWK
17643: _ACEOF
17644: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17645: if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17646: sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17647: else
17648: cat
17649: fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
17650: || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
17651: _ACEOF
17652:
17653: # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
17654: # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
17655: # trailing colons and then remove the whole line if VPATH becomes empty
17656: # (actually we leave an empty line to preserve line numbers).
17657: if test "x$srcdir" = x.; then
17658: ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
17659: h
17660: s///
17661: s/^/:/
17662: s/[ ]*$/:/
17663: s/:\$(srcdir):/:/g
17664: s/:\${srcdir}:/:/g
17665: s/:@srcdir@:/:/g
17666: s/^:*//
17667: s/:*$//
17668: x
17669: s/\(=[ ]*\).*/\1/
17670: G
17671: s/\n//
17672: s/^[^=]*=[ ]*$//
17673: }'
17674: fi
17675:
17676: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17677: fi # test -n "$CONFIG_FILES"
17678:
17679: # Set up the scripts for CONFIG_HEADERS section.
17680: # No need to generate them if there are no CONFIG_HEADERS.
17681: # This happens for instance with `./config.status Makefile'.
17682: if test -n "$CONFIG_HEADERS"; then
17683: cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
17684: BEGIN {
17685: _ACEOF
17686:
17687: # Transform confdefs.h into an awk script `defines.awk', embedded as
17688: # here-document in config.status, that substitutes the proper values into
17689: # config.h.in to produce config.h.
17690:
17691: # Create a delimiter string that does not exist in confdefs.h, to ease
17692: # handling of long lines.
17693: ac_delim='%!_!# '
17694: for ac_last_try in false false :; do
17695: ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
17696: if test -z "$ac_tt"; then
17697: break
17698: elif $ac_last_try; then
17699: as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
17700: else
17701: ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17702: fi
17703: done
17704:
17705: # For the awk script, D is an array of macro values keyed by name,
17706: # likewise P contains macro parameters if any. Preserve backslash
17707: # newline sequences.
17708:
17709: ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17710: sed -n '
17711: s/.\{148\}/&'"$ac_delim"'/g
17712: t rset
17713: :rset
17714: s/^[ ]*#[ ]*define[ ][ ]*/ /
17715: t def
17716: d
17717: :def
17718: s/\\$//
17719: t bsnl
17720: s/["\\]/\\&/g
17721: s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17722: D["\1"]=" \3"/p
17723: s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
17724: d
17725: :bsnl
17726: s/["\\]/\\&/g
17727: s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17728: D["\1"]=" \3\\\\\\n"\\/p
17729: t cont
17730: s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17731: t cont
17732: d
17733: :cont
17734: n
17735: s/.\{148\}/&'"$ac_delim"'/g
17736: t clear
17737: :clear
17738: s/\\$//
17739: t bsnlc
17740: s/["\\]/\\&/g; s/^/"/; s/$/"/p
17741: d
17742: :bsnlc
17743: s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17744: b cont
17745: ' <confdefs.h | sed '
17746: s/'"$ac_delim"'/"\\\
17747: "/g' >>$CONFIG_STATUS || ac_write_fail=1
17748:
17749: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17750: for (key in D) D_is_set[key] = 1
17751: FS = ""
17752: }
17753: /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17754: line = \$ 0
17755: split(line, arg, " ")
17756: if (arg[1] == "#") {
17757: defundef = arg[2]
17758: mac1 = arg[3]
17759: } else {
17760: defundef = substr(arg[1], 2)
17761: mac1 = arg[2]
17762: }
17763: split(mac1, mac2, "(") #)
17764: macro = mac2[1]
17765: prefix = substr(line, 1, index(line, defundef) - 1)
17766: if (D_is_set[macro]) {
17767: # Preserve the white space surrounding the "#".
17768: print prefix "define", macro P[macro] D[macro]
17769: next
17770: } else {
17771: # Replace #undef with comments. This is necessary, for example,
17772: # in the case of _POSIX_SOURCE, which is predefined and required
17773: # on some systems where configure will not decide to define it.
17774: if (defundef == "undef") {
17775: print "/*", prefix defundef, macro, "*/"
17776: next
17777: }
17778: }
17779: }
17780: { print }
17781: _ACAWK
17782: _ACEOF
17783: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17784: as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
17785: fi # test -n "$CONFIG_HEADERS"
17786:
17787:
17788: eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
17789: shift
17790: for ac_tag
17791: do
17792: case $ac_tag in
17793: :[FHLC]) ac_mode=$ac_tag; continue;;
17794: esac
17795: case $ac_mode$ac_tag in
17796: :[FHL]*:*);;
17797: :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
17798: :[FH]-) ac_tag=-:-;;
17799: :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17800: esac
17801: ac_save_IFS=$IFS
17802: IFS=:
17803: set x $ac_tag
17804: IFS=$ac_save_IFS
17805: shift
17806: ac_file=$1
17807: shift
17808:
17809: case $ac_mode in
17810: :L) ac_source=$1;;
17811: :[FH])
17812: ac_file_inputs=
17813: for ac_f
17814: do
17815: case $ac_f in
17816: -) ac_f="$ac_tmp/stdin";;
17817: *) # Look for the file first in the build tree, then in the source tree
17818: # (if the path is not absolute). The absolute path cannot be DOS-style,
17819: # because $ac_f cannot contain `:'.
17820: test -f "$ac_f" ||
17821: case $ac_f in
17822: [\\/$]*) false;;
17823: *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17824: esac ||
17825: as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17826: esac
17827: case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17828: as_fn_append ac_file_inputs " '$ac_f'"
17829: done
17830:
17831: # Let's still pretend it is `configure' which instantiates (i.e., don't
17832: # use $as_me), people would be surprised to read:
17833: # /* config.h. Generated by config.status. */
17834: configure_input='Generated from '`
17835: $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17836: `' by configure.'
17837: if test x"$ac_file" != x-; then
17838: configure_input="$ac_file. $configure_input"
17839: { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17840: $as_echo "$as_me: creating $ac_file" >&6;}
17841: fi
17842: # Neutralize special characters interpreted by sed in replacement strings.
17843: case $configure_input in #(
17844: *\&* | *\|* | *\\* )
17845: ac_sed_conf_input=`$as_echo "$configure_input" |
17846: sed 's/[\\\\&|]/\\\\&/g'`;; #(
17847: *) ac_sed_conf_input=$configure_input;;
17848: esac
17849:
17850: case $ac_tag in
17851: *:-:* | *:-) cat >"$ac_tmp/stdin" \
17852: || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
17853: esac
17854: ;;
17855: esac
17856:
17857: ac_dir=`$as_dirname -- "$ac_file" ||
17858: $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17859: X"$ac_file" : 'X\(//\)[^/]' \| \
17860: X"$ac_file" : 'X\(//\)$' \| \
17861: X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17862: $as_echo X"$ac_file" |
17863: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17864: s//\1/
17865: q
17866: }
17867: /^X\(\/\/\)[^/].*/{
17868: s//\1/
17869: q
17870: }
17871: /^X\(\/\/\)$/{
17872: s//\1/
17873: q
17874: }
17875: /^X\(\/\).*/{
17876: s//\1/
17877: q
17878: }
17879: s/.*/./; q'`
17880: as_dir="$ac_dir"; as_fn_mkdir_p
17881: ac_builddir=.
17882:
17883: case "$ac_dir" in
17884: .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17885: *)
17886: ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17887: # A ".." for each directory in $ac_dir_suffix.
17888: ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17889: case $ac_top_builddir_sub in
17890: "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17891: *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17892: esac ;;
17893: esac
17894: ac_abs_top_builddir=$ac_pwd
17895: ac_abs_builddir=$ac_pwd$ac_dir_suffix
17896: # for backward compatibility:
17897: ac_top_builddir=$ac_top_build_prefix
17898:
17899: case $srcdir in
17900: .) # We are building in place.
17901: ac_srcdir=.
17902: ac_top_srcdir=$ac_top_builddir_sub
17903: ac_abs_top_srcdir=$ac_pwd ;;
17904: [\\/]* | ?:[\\/]* ) # Absolute name.
17905: ac_srcdir=$srcdir$ac_dir_suffix;
17906: ac_top_srcdir=$srcdir
17907: ac_abs_top_srcdir=$srcdir ;;
17908: *) # Relative name.
17909: ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17910: ac_top_srcdir=$ac_top_build_prefix$srcdir
17911: ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17912: esac
17913: ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17914:
17915:
17916: case $ac_mode in
17917: :F)
17918: #
17919: # CONFIG_FILE
17920: #
17921:
17922: case $INSTALL in
17923: [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17924: *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17925: esac
17926: ac_MKDIR_P=$MKDIR_P
17927: case $MKDIR_P in
17928: [\\/$]* | ?:[\\/]* ) ;;
17929: */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17930: esac
17931: _ACEOF
17932:
17933: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17934: # If the template does not know about datarootdir, expand it.
17935: # FIXME: This hack should be removed a few years after 2.60.
17936: ac_datarootdir_hack=; ac_datarootdir_seen=
17937: ac_sed_dataroot='
17938: /datarootdir/ {
17939: p
17940: q
17941: }
17942: /@datadir@/p
17943: /@docdir@/p
17944: /@infodir@/p
17945: /@localedir@/p
17946: /@mandir@/p'
17947: case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17948: *datarootdir*) ac_datarootdir_seen=yes;;
17949: *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17950: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17951: $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17952: _ACEOF
17953: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17954: ac_datarootdir_hack='
17955: s&@datadir@&$datadir&g
17956: s&@docdir@&$docdir&g
17957: s&@infodir@&$infodir&g
17958: s&@localedir@&$localedir&g
17959: s&@mandir@&$mandir&g
17960: s&\\\${datarootdir}&$datarootdir&g' ;;
17961: esac
17962: _ACEOF
17963:
17964: # Neutralize VPATH when `$srcdir' = `.'.
17965: # Shell code in configure.ac might set extrasub.
17966: # FIXME: do we really want to maintain this feature?
17967: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17968: ac_sed_extra="$ac_vpsub
17969: $extrasub
17970: _ACEOF
17971: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17972: :t
17973: /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17974: s|@configure_input@|$ac_sed_conf_input|;t t
17975: s&@top_builddir@&$ac_top_builddir_sub&;t t
17976: s&@top_build_prefix@&$ac_top_build_prefix&;t t
17977: s&@srcdir@&$ac_srcdir&;t t
17978: s&@abs_srcdir@&$ac_abs_srcdir&;t t
17979: s&@top_srcdir@&$ac_top_srcdir&;t t
17980: s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17981: s&@builddir@&$ac_builddir&;t t
17982: s&@abs_builddir@&$ac_abs_builddir&;t t
17983: s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17984: s&@INSTALL@&$ac_INSTALL&;t t
17985: s&@MKDIR_P@&$ac_MKDIR_P&;t t
17986: $ac_datarootdir_hack
17987: "
17988: eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
17989: >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17990:
17991: test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17992: { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
17993: { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
17994: "$ac_tmp/out"`; test -z "$ac_out"; } &&
17995: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17996: which seems to be undefined. Please make sure it is defined" >&5
17997: $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17998: which seems to be undefined. Please make sure it is defined" >&2;}
17999:
18000: rm -f "$ac_tmp/stdin"
18001: case $ac_file in
18002: -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
18003: *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
18004: esac \
18005: || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18006: ;;
18007: :H)
18008: #
18009: # CONFIG_HEADER
18010: #
18011: if test x"$ac_file" != x-; then
18012: {
18013: $as_echo "/* $configure_input */" \
18014: && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
18015: } >"$ac_tmp/config.h" \
18016: || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18017: if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
18018: { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18019: $as_echo "$as_me: $ac_file is unchanged" >&6;}
18020: else
18021: rm -f "$ac_file"
18022: mv "$ac_tmp/config.h" "$ac_file" \
18023: || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18024: fi
18025: else
18026: $as_echo "/* $configure_input */" \
18027: && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
18028: || as_fn_error $? "could not create -" "$LINENO" 5
18029: fi
18030: # Compute "$ac_file"'s index in $config_headers.
18031: _am_arg="$ac_file"
18032: _am_stamp_count=1
18033: for _am_header in $config_headers :; do
18034: case $_am_header in
18035: $_am_arg | $_am_arg:* )
18036: break ;;
18037: * )
18038: _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18039: esac
18040: done
18041: echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18042: $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18043: X"$_am_arg" : 'X\(//\)[^/]' \| \
18044: X"$_am_arg" : 'X\(//\)$' \| \
18045: X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18046: $as_echo X"$_am_arg" |
18047: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18048: s//\1/
18049: q
18050: }
18051: /^X\(\/\/\)[^/].*/{
18052: s//\1/
18053: q
18054: }
18055: /^X\(\/\/\)$/{
18056: s//\1/
18057: q
18058: }
18059: /^X\(\/\).*/{
18060: s//\1/
18061: q
18062: }
18063: s/.*/./; q'`/stamp-h$_am_stamp_count
18064: ;;
18065:
18066: :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18067: $as_echo "$as_me: executing $ac_file commands" >&6;}
18068: ;;
18069: esac
18070:
18071:
18072: case $ac_file$ac_mode in
18073: "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
18074: # Older Autoconf quotes --file arguments for eval, but not when files
18075: # are listed without --file. Let's play safe and only enable the eval
18076: # if we detect the quoting.
18077: case $CONFIG_FILES in
18078: *\'*) eval set x "$CONFIG_FILES" ;;
18079: *) set x $CONFIG_FILES ;;
18080: esac
18081: shift
18082: for mf
18083: do
18084: # Strip MF so we end up with the name of the file.
18085: mf=`echo "$mf" | sed -e 's/:.*$//'`
18086: # Check whether this is an Automake generated Makefile or not.
18087: # We used to match only the files named 'Makefile.in', but
18088: # some people rename them; so instead we look at the file content.
18089: # Grep'ing the first line is not enough: some people post-process
18090: # each Makefile.in and add a new line on top of each file to say so.
18091: # Grep'ing the whole file is not good either: AIX grep has a line
18092: # limit of 2048, but all sed's we know have understand at least 4000.
18093: if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
18094: dirpart=`$as_dirname -- "$mf" ||
18095: $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18096: X"$mf" : 'X\(//\)[^/]' \| \
18097: X"$mf" : 'X\(//\)$' \| \
18098: X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
18099: $as_echo X"$mf" |
18100: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18101: s//\1/
18102: q
18103: }
18104: /^X\(\/\/\)[^/].*/{
18105: s//\1/
18106: q
18107: }
18108: /^X\(\/\/\)$/{
18109: s//\1/
18110: q
18111: }
18112: /^X\(\/\).*/{
18113: s//\1/
18114: q
18115: }
18116: s/.*/./; q'`
18117: else
18118: continue
18119: fi
18120: # Extract the definition of DEPDIR, am__include, and am__quote
18121: # from the Makefile without running 'make'.
18122: DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
18123: test -z "$DEPDIR" && continue
18124: am__include=`sed -n 's/^am__include = //p' < "$mf"`
18125: test -z "$am__include" && continue
18126: am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
18127: # Find all dependency output files, they are included files with
18128: # $(DEPDIR) in their names. We invoke sed twice because it is the
18129: # simplest approach to changing $(DEPDIR) to its actual value in the
18130: # expansion.
18131: for file in `sed -n "
18132: s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18133: sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
18134: # Make sure the directory exists.
18135: test -f "$dirpart/$file" && continue
18136: fdir=`$as_dirname -- "$file" ||
18137: $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18138: X"$file" : 'X\(//\)[^/]' \| \
18139: X"$file" : 'X\(//\)$' \| \
18140: X"$file" : 'X\(/\)' \| . 2>/dev/null ||
18141: $as_echo X"$file" |
18142: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18143: s//\1/
18144: q
18145: }
18146: /^X\(\/\/\)[^/].*/{
18147: s//\1/
18148: q
18149: }
18150: /^X\(\/\/\)$/{
18151: s//\1/
18152: q
18153: }
18154: /^X\(\/\).*/{
18155: s//\1/
18156: q
18157: }
18158: s/.*/./; q'`
18159: as_dir=$dirpart/$fdir; as_fn_mkdir_p
18160: # echo "creating $dirpart/$file"
18161: echo '# dummy' > "$dirpart/$file"
18162: done
18163: done
18164: }
18165: ;;
18166: "libtool":C)
18167:
18168: # See if we are running on zsh, and set the options which allow our
18169: # commands through without removal of \ escapes.
18170: if test -n "${ZSH_VERSION+set}" ; then
18171: setopt NO_GLOB_SUBST
18172: fi
18173:
18174: cfgfile="${ofile}T"
18175: trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18176: $RM "$cfgfile"
18177:
18178: cat <<_LT_EOF >> "$cfgfile"
18179: #! $SHELL
18180:
18181: # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
18182: # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
18183: # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18184: # NOTE: Changes made to this file will be lost: look at ltmain.sh.
18185: #
18186: # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
18187: # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
18188: # Foundation, Inc.
18189: # Written by Gordon Matzigkeit, 1996
18190: #
18191: # This file is part of GNU Libtool.
18192: #
18193: # GNU Libtool is free software; you can redistribute it and/or
18194: # modify it under the terms of the GNU General Public License as
18195: # published by the Free Software Foundation; either version 2 of
18196: # the License, or (at your option) any later version.
18197: #
18198: # As a special exception to the GNU General Public License,
18199: # if you distribute this file as part of a program or library that
18200: # is built using GNU Libtool, you may include this file under the
18201: # same distribution terms that you use for the rest of that program.
18202: #
18203: # GNU Libtool is distributed in the hope that it will be useful,
18204: # but WITHOUT ANY WARRANTY; without even the implied warranty of
18205: # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18206: # GNU General Public License for more details.
18207: #
18208: # You should have received a copy of the GNU General Public License
18209: # along with GNU Libtool; see the file COPYING. If not, a copy
18210: # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
18211: # obtained by writing to the Free Software Foundation, Inc.,
18212: # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18213:
18214:
18215: # The names of the tagged configurations supported by this script.
18216: available_tags=""
18217:
18218: # ### BEGIN LIBTOOL CONFIG
18219:
18220: # A sed program that does not truncate output.
18221: SED=$lt_SED
18222:
18223: # Sed that helps us avoid accidentally triggering echo(1) options like -n.
18224: Xsed="\$SED -e 1s/^X//"
18225:
18226: # A grep program that handles long lines.
18227: GREP=$lt_GREP
18228:
18229: # An ERE matcher.
18230: EGREP=$lt_EGREP
18231:
18232: # A literal string matcher.
18233: FGREP=$lt_FGREP
18234:
18235: # Shell to use when invoking shell scripts.
18236: SHELL=$lt_SHELL
18237:
18238: # An echo program that protects backslashes.
18239: ECHO=$lt_ECHO
18240:
18241: # Whether or not to build static libraries.
18242: build_old_libs=$enable_static
18243:
18244: # Whether or not to build shared libraries.
18245: build_libtool_libs=$enable_shared
18246:
18247: # Which release of libtool.m4 was used?
18248: macro_version=$macro_version
18249: macro_revision=$macro_revision
18250:
18251: # What type of objects to build.
18252: pic_mode=$pic_mode
18253:
18254: # Whether or not to optimize for fast installation.
18255: fast_install=$enable_fast_install
18256:
18257: # The PATH separator for the build system.
18258: PATH_SEPARATOR=$lt_PATH_SEPARATOR
18259:
18260: # The host system.
18261: host_alias=$host_alias
18262: host=$host
18263: host_os=$host_os
18264:
18265: # The build system.
18266: build_alias=$build_alias
18267: build=$build
18268: build_os=$build_os
18269:
18270: # A BSD- or MS-compatible name lister.
18271: NM=$lt_NM
18272:
18273: # Whether we need soft or hard links.
18274: LN_S=$lt_LN_S
18275:
18276: # What is the maximum length of a command?
18277: max_cmd_len=$max_cmd_len
18278:
18279: # Object file suffix (normally "o").
18280: objext=$ac_objext
18281:
18282: # Executable file suffix (normally "").
18283: exeext=$exeext
18284:
18285: # whether the shell understands "unset".
18286: lt_unset=$lt_unset
18287:
18288: # turn spaces into newlines.
18289: SP2NL=$lt_lt_SP2NL
18290:
18291: # turn newlines into spaces.
18292: NL2SP=$lt_lt_NL2SP
18293:
18294: # convert \$build file names to \$host format.
18295: to_host_file_cmd=$lt_cv_to_host_file_cmd
18296:
18297: # convert \$build files to toolchain format.
18298: to_tool_file_cmd=$lt_cv_to_tool_file_cmd
18299:
18300: # An object symbol dumper.
18301: OBJDUMP=$lt_OBJDUMP
18302:
18303: # Method to check whether dependent libraries are shared objects.
18304: deplibs_check_method=$lt_deplibs_check_method
18305:
18306: # Command to use when deplibs_check_method = "file_magic".
18307: file_magic_cmd=$lt_file_magic_cmd
18308:
18309: # How to find potential files when deplibs_check_method = "file_magic".
18310: file_magic_glob=$lt_file_magic_glob
18311:
18312: # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
18313: want_nocaseglob=$lt_want_nocaseglob
18314:
18315: # DLL creation program.
18316: DLLTOOL=$lt_DLLTOOL
18317:
18318: # Command to associate shared and link libraries.
18319: sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
18320:
18321: # The archiver.
18322: AR=$lt_AR
18323:
18324: # Flags to create an archive.
18325: AR_FLAGS=$lt_AR_FLAGS
18326:
18327: # How to feed a file listing to the archiver.
18328: archiver_list_spec=$lt_archiver_list_spec
18329:
18330: # A symbol stripping program.
18331: STRIP=$lt_STRIP
18332:
18333: # Commands used to install an old-style archive.
18334: RANLIB=$lt_RANLIB
18335: old_postinstall_cmds=$lt_old_postinstall_cmds
18336: old_postuninstall_cmds=$lt_old_postuninstall_cmds
18337:
18338: # Whether to use a lock for old archive extraction.
18339: lock_old_archive_extraction=$lock_old_archive_extraction
18340:
18341: # A C compiler.
18342: LTCC=$lt_CC
18343:
18344: # LTCC compiler flags.
18345: LTCFLAGS=$lt_CFLAGS
18346:
18347: # Take the output of nm and produce a listing of raw symbols and C names.
18348: global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18349:
18350: # Transform the output of nm in a proper C declaration.
18351: global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18352:
18353: # Transform the output of nm in a C name address pair.
18354: global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18355:
18356: # Transform the output of nm in a C name address pair when lib prefix is needed.
18357: global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18358:
18359: # Specify filename containing input files for \$NM.
18360: nm_file_list_spec=$lt_nm_file_list_spec
18361:
18362: # The root where to search for dependent libraries,and in which our libraries should be installed.
18363: lt_sysroot=$lt_sysroot
18364:
18365: # The name of the directory that contains temporary libtool files.
18366: objdir=$objdir
18367:
18368: # Used to examine libraries when file_magic_cmd begins with "file".
18369: MAGIC_CMD=$MAGIC_CMD
18370:
18371: # Must we lock files when doing compilation?
18372: need_locks=$lt_need_locks
18373:
18374: # Manifest tool.
18375: MANIFEST_TOOL=$lt_MANIFEST_TOOL
18376:
18377: # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18378: DSYMUTIL=$lt_DSYMUTIL
18379:
18380: # Tool to change global to local symbols on Mac OS X.
18381: NMEDIT=$lt_NMEDIT
18382:
18383: # Tool to manipulate fat objects and archives on Mac OS X.
18384: LIPO=$lt_LIPO
18385:
18386: # ldd/readelf like tool for Mach-O binaries on Mac OS X.
18387: OTOOL=$lt_OTOOL
18388:
18389: # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
18390: OTOOL64=$lt_OTOOL64
18391:
18392: # Old archive suffix (normally "a").
18393: libext=$libext
18394:
18395: # Shared library suffix (normally ".so").
18396: shrext_cmds=$lt_shrext_cmds
18397:
18398: # The commands to extract the exported symbol list from a shared archive.
18399: extract_expsyms_cmds=$lt_extract_expsyms_cmds
18400:
18401: # Variables whose values should be saved in libtool wrapper scripts and
18402: # restored at link time.
18403: variables_saved_for_relink=$lt_variables_saved_for_relink
18404:
18405: # Do we need the "lib" prefix for modules?
18406: need_lib_prefix=$need_lib_prefix
18407:
18408: # Do we need a version for libraries?
18409: need_version=$need_version
18410:
18411: # Library versioning type.
18412: version_type=$version_type
18413:
18414: # Shared library runtime path variable.
18415: runpath_var=$runpath_var
18416:
18417: # Shared library path variable.
18418: shlibpath_var=$shlibpath_var
18419:
18420: # Is shlibpath searched before the hard-coded library search path?
18421: shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18422:
18423: # Format of library name prefix.
18424: libname_spec=$lt_libname_spec
18425:
18426: # List of archive names. First name is the real one, the rest are links.
18427: # The last name is the one that the linker finds with -lNAME
18428: library_names_spec=$lt_library_names_spec
18429:
18430: # The coded name of the library, if different from the real name.
18431: soname_spec=$lt_soname_spec
18432:
18433: # Permission mode override for installation of shared libraries.
18434: install_override_mode=$lt_install_override_mode
18435:
18436: # Command to use after installation of a shared archive.
18437: postinstall_cmds=$lt_postinstall_cmds
18438:
18439: # Command to use after uninstallation of a shared archive.
18440: postuninstall_cmds=$lt_postuninstall_cmds
18441:
18442: # Commands used to finish a libtool library installation in a directory.
18443: finish_cmds=$lt_finish_cmds
18444:
18445: # As "finish_cmds", except a single script fragment to be evaled but
18446: # not shown.
18447: finish_eval=$lt_finish_eval
18448:
18449: # Whether we should hardcode library paths into libraries.
18450: hardcode_into_libs=$hardcode_into_libs
18451:
18452: # Compile-time system search path for libraries.
18453: sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18454:
18455: # Run-time system search path for libraries.
18456: sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18457:
18458: # Whether dlopen is supported.
18459: dlopen_support=$enable_dlopen
18460:
18461: # Whether dlopen of programs is supported.
18462: dlopen_self=$enable_dlopen_self
18463:
18464: # Whether dlopen of statically linked programs is supported.
18465: dlopen_self_static=$enable_dlopen_self_static
18466:
18467: # Commands to strip libraries.
18468: old_striplib=$lt_old_striplib
18469: striplib=$lt_striplib
18470:
18471:
18472: # The linker used to build libraries.
18473: LD=$lt_LD
18474:
18475: # How to create reloadable object files.
18476: reload_flag=$lt_reload_flag
18477: reload_cmds=$lt_reload_cmds
18478:
18479: # Commands used to build an old-style archive.
18480: old_archive_cmds=$lt_old_archive_cmds
18481:
18482: # A language specific compiler.
18483: CC=$lt_compiler
18484:
18485: # Is the compiler the GNU compiler?
18486: with_gcc=$GCC
18487:
18488: # Compiler flag to turn off builtin functions.
18489: no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18490:
18491: # Additional compiler flags for building library objects.
18492: pic_flag=$lt_lt_prog_compiler_pic
18493:
18494: # How to pass a linker flag through the compiler.
18495: wl=$lt_lt_prog_compiler_wl
18496:
18497: # Compiler flag to prevent dynamic linking.
18498: link_static_flag=$lt_lt_prog_compiler_static
18499:
18500: # Does compiler simultaneously support -c and -o options?
18501: compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18502:
18503: # Whether or not to add -lc for building shared libraries.
18504: build_libtool_need_lc=$archive_cmds_need_lc
18505:
18506: # Whether or not to disallow shared libs when runtime libs are static.
18507: allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18508:
18509: # Compiler flag to allow reflexive dlopens.
18510: export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18511:
18512: # Compiler flag to generate shared objects directly from archives.
18513: whole_archive_flag_spec=$lt_whole_archive_flag_spec
18514:
18515: # Whether the compiler copes with passing no objects directly.
18516: compiler_needs_object=$lt_compiler_needs_object
18517:
18518: # Create an old-style archive from a shared archive.
18519: old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18520:
18521: # Create a temporary old-style archive to link instead of a shared archive.
18522: old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18523:
18524: # Commands used to build a shared archive.
18525: archive_cmds=$lt_archive_cmds
18526: archive_expsym_cmds=$lt_archive_expsym_cmds
18527:
18528: # Commands used to build a loadable module if different from building
18529: # a shared archive.
18530: module_cmds=$lt_module_cmds
18531: module_expsym_cmds=$lt_module_expsym_cmds
18532:
18533: # Whether we are building with GNU ld or not.
18534: with_gnu_ld=$lt_with_gnu_ld
18535:
18536: # Flag that allows shared libraries with undefined symbols to be built.
18537: allow_undefined_flag=$lt_allow_undefined_flag
18538:
18539: # Flag that enforces no undefined symbols.
18540: no_undefined_flag=$lt_no_undefined_flag
18541:
18542: # Flag to hardcode \$libdir into a binary during linking.
18543: # This must work even if \$libdir does not exist
18544: hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18545:
18546: # Whether we need a single "-rpath" flag with a separated argument.
18547: hardcode_libdir_separator=$lt_hardcode_libdir_separator
18548:
18549: # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18550: # DIR into the resulting binary.
18551: hardcode_direct=$hardcode_direct
18552:
18553: # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18554: # DIR into the resulting binary and the resulting library dependency is
18555: # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18556: # library is relocated.
18557: hardcode_direct_absolute=$hardcode_direct_absolute
18558:
18559: # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18560: # into the resulting binary.
18561: hardcode_minus_L=$hardcode_minus_L
18562:
18563: # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18564: # into the resulting binary.
18565: hardcode_shlibpath_var=$hardcode_shlibpath_var
18566:
18567: # Set to "yes" if building a shared library automatically hardcodes DIR
18568: # into the library and all subsequent libraries and executables linked
18569: # against it.
18570: hardcode_automatic=$hardcode_automatic
18571:
18572: # Set to yes if linker adds runtime paths of dependent libraries
18573: # to runtime path list.
18574: inherit_rpath=$inherit_rpath
18575:
18576: # Whether libtool must link a program against all its dependency libraries.
18577: link_all_deplibs=$link_all_deplibs
18578:
18579: # Set to "yes" if exported symbols are required.
18580: always_export_symbols=$always_export_symbols
18581:
18582: # The commands to list exported symbols.
18583: export_symbols_cmds=$lt_export_symbols_cmds
18584:
18585: # Symbols that should not be listed in the preloaded symbols.
18586: exclude_expsyms=$lt_exclude_expsyms
18587:
18588: # Symbols that must always be exported.
18589: include_expsyms=$lt_include_expsyms
18590:
18591: # Commands necessary for linking programs (against libraries) with templates.
18592: prelink_cmds=$lt_prelink_cmds
18593:
18594: # Commands necessary for finishing linking programs.
18595: postlink_cmds=$lt_postlink_cmds
18596:
18597: # Specify filename containing input files.
18598: file_list_spec=$lt_file_list_spec
18599:
18600: # How to hardcode a shared library path into an executable.
18601: hardcode_action=$hardcode_action
18602:
18603: # ### END LIBTOOL CONFIG
18604:
18605: _LT_EOF
18606:
18607: case $host_os in
18608: aix3*)
18609: cat <<\_LT_EOF >> "$cfgfile"
18610: # AIX sometimes has problems with the GCC collect2 program. For some
18611: # reason, if we set the COLLECT_NAMES environment variable, the problems
18612: # vanish in a puff of smoke.
18613: if test "X${COLLECT_NAMES+set}" != Xset; then
18614: COLLECT_NAMES=
18615: export COLLECT_NAMES
18616: fi
18617: _LT_EOF
18618: ;;
18619: esac
18620:
18621:
18622: ltmain="$ac_aux_dir/ltmain.sh"
18623:
18624:
18625: # We use sed instead of cat because bash on DJGPP gets confused if
18626: # if finds mixed CR/LF and LF-only lines. Since sed operates in
18627: # text mode, it properly converts lines to CR/LF. This bash problem
18628: # is reportedly fixed, but why not run on old versions too?
18629: sed '$q' "$ltmain" >> "$cfgfile" \
18630: || (rm -f "$cfgfile"; exit 1)
18631:
18632: if test x"$xsi_shell" = xyes; then
18633: sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
18634: func_dirname ()\
18635: {\
18636: \ case ${1} in\
18637: \ */*) func_dirname_result="${1%/*}${2}" ;;\
18638: \ * ) func_dirname_result="${3}" ;;\
18639: \ esac\
18640: } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
18641: && mv -f "$cfgfile.tmp" "$cfgfile" \
18642: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18643: test 0 -eq $? || _lt_function_replace_fail=:
18644:
18645:
18646: sed -e '/^func_basename ()$/,/^} # func_basename /c\
18647: func_basename ()\
18648: {\
18649: \ func_basename_result="${1##*/}"\
18650: } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
18651: && mv -f "$cfgfile.tmp" "$cfgfile" \
18652: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18653: test 0 -eq $? || _lt_function_replace_fail=:
18654:
18655:
18656: sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
18657: func_dirname_and_basename ()\
18658: {\
18659: \ case ${1} in\
18660: \ */*) func_dirname_result="${1%/*}${2}" ;;\
18661: \ * ) func_dirname_result="${3}" ;;\
18662: \ esac\
18663: \ func_basename_result="${1##*/}"\
18664: } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
18665: && mv -f "$cfgfile.tmp" "$cfgfile" \
18666: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18667: test 0 -eq $? || _lt_function_replace_fail=:
18668:
18669:
18670: sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
18671: func_stripname ()\
18672: {\
18673: \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
18674: \ # positional parameters, so assign one to ordinary parameter first.\
18675: \ func_stripname_result=${3}\
18676: \ func_stripname_result=${func_stripname_result#"${1}"}\
18677: \ func_stripname_result=${func_stripname_result%"${2}"}\
18678: } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
18679: && mv -f "$cfgfile.tmp" "$cfgfile" \
18680: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18681: test 0 -eq $? || _lt_function_replace_fail=:
18682:
18683:
18684: sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
18685: func_split_long_opt ()\
18686: {\
18687: \ func_split_long_opt_name=${1%%=*}\
18688: \ func_split_long_opt_arg=${1#*=}\
18689: } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
18690: && mv -f "$cfgfile.tmp" "$cfgfile" \
18691: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18692: test 0 -eq $? || _lt_function_replace_fail=:
18693:
18694:
18695: sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
18696: func_split_short_opt ()\
18697: {\
18698: \ func_split_short_opt_arg=${1#??}\
18699: \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
18700: } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
18701: && mv -f "$cfgfile.tmp" "$cfgfile" \
18702: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18703: test 0 -eq $? || _lt_function_replace_fail=:
18704:
18705:
18706: sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
18707: func_lo2o ()\
18708: {\
18709: \ case ${1} in\
18710: \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
18711: \ *) func_lo2o_result=${1} ;;\
18712: \ esac\
18713: } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
18714: && mv -f "$cfgfile.tmp" "$cfgfile" \
18715: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18716: test 0 -eq $? || _lt_function_replace_fail=:
18717:
18718:
18719: sed -e '/^func_xform ()$/,/^} # func_xform /c\
18720: func_xform ()\
18721: {\
18722: func_xform_result=${1%.*}.lo\
18723: } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
18724: && mv -f "$cfgfile.tmp" "$cfgfile" \
18725: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18726: test 0 -eq $? || _lt_function_replace_fail=:
18727:
18728:
18729: sed -e '/^func_arith ()$/,/^} # func_arith /c\
18730: func_arith ()\
18731: {\
18732: func_arith_result=$(( $* ))\
18733: } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
18734: && mv -f "$cfgfile.tmp" "$cfgfile" \
18735: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18736: test 0 -eq $? || _lt_function_replace_fail=:
18737:
18738:
18739: sed -e '/^func_len ()$/,/^} # func_len /c\
18740: func_len ()\
18741: {\
18742: func_len_result=${#1}\
18743: } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
18744: && mv -f "$cfgfile.tmp" "$cfgfile" \
18745: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18746: test 0 -eq $? || _lt_function_replace_fail=:
18747:
18748: fi
18749:
18750: if test x"$lt_shell_append" = xyes; then
18751: sed -e '/^func_append ()$/,/^} # func_append /c\
18752: func_append ()\
18753: {\
18754: eval "${1}+=\\${2}"\
18755: } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
18756: && mv -f "$cfgfile.tmp" "$cfgfile" \
18757: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18758: test 0 -eq $? || _lt_function_replace_fail=:
18759:
18760:
18761: sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
18762: func_append_quoted ()\
18763: {\
18764: \ func_quote_for_eval "${2}"\
18765: \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
18766: } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
18767: && mv -f "$cfgfile.tmp" "$cfgfile" \
18768: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18769: test 0 -eq $? || _lt_function_replace_fail=:
18770:
18771:
18772: # Save a `func_append' function call where possible by direct use of '+='
18773: sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
18774: && mv -f "$cfgfile.tmp" "$cfgfile" \
18775: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18776: test 0 -eq $? || _lt_function_replace_fail=:
18777: else
18778: # Save a `func_append' function call even when '+=' is not available
18779: sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
18780: && mv -f "$cfgfile.tmp" "$cfgfile" \
18781: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18782: test 0 -eq $? || _lt_function_replace_fail=:
18783: fi
18784:
18785: if test x"$_lt_function_replace_fail" = x":"; then
18786: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
18787: $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
18788: fi
18789:
18790:
18791: mv -f "$cfgfile" "$ofile" ||
18792: (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18793: chmod +x "$ofile"
18794:
18795: ;;
18796:
18797: esac
18798: done # for ac_tag
18799:
18800:
18801: as_fn_exit 0
18802: _ACEOF
18803: ac_clean_files=$ac_clean_files_save
18804:
18805: test $ac_write_fail = 0 ||
18806: as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
18807:
18808:
18809: # configure is writing to config.log, and then calls config.status.
18810: # config.status does its own redirection, appending to config.log.
18811: # Unfortunately, on DOS this fails, as config.log is still kept open
18812: # by configure, so config.status won't be able to write to it; its
18813: # output is simply discarded. So we exec the FD to /dev/null,
18814: # effectively closing config.log, so it can be properly (re)opened and
18815: # appended to by config.status. When coming back to configure, we
18816: # need to make the FD available again.
18817: if test "$no_create" != yes; then
18818: ac_cs_success=:
18819: ac_config_status_args=
18820: test "$silent" = yes &&
18821: ac_config_status_args="$ac_config_status_args --quiet"
18822: exec 5>/dev/null
18823: $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18824: exec 5>>config.log
18825: # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18826: # would make configure fail if this is the last instruction.
18827: $ac_cs_success || as_fn_exit 1
18828: fi
18829: if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18830: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18831: $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
18832: fi
18833:
18834:
18835:
18836: do_build="mod_cgi mod_fastcgi mod_extforward mod_proxy mod_evhost mod_simple_vhost mod_access mod_alias mod_setenv mod_usertrack mod_auth mod_status mod_accesslog"
18837: do_build="$do_build mod_rrdtool mod_secdownload mod_expire mod_compress mod_dirlisting mod_indexfile mod_userdir mod_webdav mod_staticfile mod_scgi mod_flv_streaming"
18838:
18839: plugins="mod_rewrite mod_redirect mod_ssi mod_trigger_b4_dl"
18840: features="regex-conditionals"
18841: if test ! "x$PCRE_LIB" = x; then
18842: do_build="$do_build $plugins"
18843: enable_feature="$features"
18844: else
18845: no_build="$no_build $plugins"
18846: disable_feature="$features"
18847: fi
18848:
18849: plugins="mod_mysql_vhost"
18850: if test ! "x$MYSQL_LIBS" = x; then
18851: do_build="$do_build $plugins"
18852: else
18853: no_build="$no_build $plugins"
18854: fi
18855:
18856: plugins="mod_cml mod_magnet"
18857: if test ! "x$LUA_LIBS" = x; then
18858: do_build="$do_build $plugins"
18859: else
18860: no_build="$no_build $plugins"
18861: fi
18862:
18863: features="storage-gdbm"
18864: if test ! "x$GDBM_LIB" = x; then
18865: enable_feature="$enable_feature $features"
18866: else
18867: disable_feature="$disable_feature $features"
18868: fi
18869:
18870: features="storage-memcache"
18871: if test ! "x$MEMCACHE_LIB" = x; then
18872: enable_feature="$enable_feature $features"
18873: else
18874: disable_feature="$disable_feature $features"
18875: fi
18876:
18877: features="compress-gzip compress-deflate"
18878: if test ! "x$Z_LIB" = x; then
18879: enable_feature="$enable_feature $features"
18880: else
18881: disable_feature="$disable_feature $features"
18882: fi
18883:
18884: features="compress-bzip2"
18885: if test ! "x$BZ_LIB" = x; then
18886: enable_feature="$enable_feature $features"
18887: else
18888: disable_feature="$disable_feature $features"
18889: fi
18890:
18891: features="auth-ldap"
18892: if test ! "x$LDAP_LIB" = x; then
18893: enable_feature="$enable_feature $features"
18894: else
18895: disable_feature="$disable_feature $features"
18896: fi
18897:
18898: features="network-openssl"
18899: if test ! "x$SSL_LIB" = x; then
18900: enable_feature="$enable_feature $features"
18901: else
18902: disable_feature="$disable_feature $features"
18903: fi
18904:
18905: features="auth-crypt"
18906: if test "$ac_cv_search_crypt" = no; then
18907: disable_feature="$disable_feature $features"
18908: else
18909: enable_feature="$enable_feature $features"
18910: fi
18911:
18912: features="network-ipv6"
18913: if test "$ac_cv_ipv6_support" = yes; then
18914: enable_feature="$enable_feature $features"
18915: else
18916: disable_feature="$disable_feature $features"
18917: fi
18918:
18919: features="large-files"
18920: if test "$enable_lfs" = yes; then
18921: enable_feature="$enable_feature $features"
18922: else
18923: disable_feature="$disable_feature $features"
18924: fi
18925:
18926: features="stat-cache-fam"
18927: if test ! "x$FAM_LIBS" = x; then
18928: enable_feature="$enable_feature $features"
18929: else
18930: disable_feature="$disable_feature $features"
18931: fi
18932:
18933: features="webdav-properties"
18934: if test "x$XML_LIBS" \!= x -a "x$SQLITE_LIBS" \!= x; then
18935: enable_feature="$enable_feature $features"
18936: else
18937: disable_feature="$disable_feature $features"
18938: fi
18939:
18940: features="webdav-locks"
18941: if test "x$UUID_LIBS" \!= x; then
18942: enable_feature="$enable_feature $features"
18943: else
18944: disable_feature="$disable_feature $features"
18945: fi
18946:
18947:
18948:
18949: $ECHO
18950: $ECHO "Plugins:"
18951: $ECHO
18952:
18953: $ECHO "enabled: "
18954: for p in $do_build; do
18955: $ECHO " $p"
18956: done | sort
18957:
18958: $ECHO "disabled: "
18959: for p in $no_build; do
18960: $ECHO " $p"
18961: done | sort
18962:
18963: $ECHO
18964: $ECHO "Features:"
18965: $ECHO
18966:
18967: $ECHO "enabled: "
18968: for p in $enable_feature; do
18969: $ECHO " $p"
18970: done | sort
18971:
18972: $ECHO "disabled: "
18973: for p in $disable_feature; do
18974: $ECHO " $p"
18975: done | sort
18976:
18977: $ECHO
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>