1 | #! /bin/sh |
1 | #! /bin/sh |
2 | # Guess values for system-dependent variables and create Makefiles. |
2 | # Guess values for system-dependent variables and create Makefiles. |
3 | # Generated by GNU Autoconf 2.67. |
3 | # Generated by GNU Autoconf 2.71. |
4 | # |
4 | # |
5 | # |
5 | # |
6 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
6 | # Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation, |
7 | # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software |
7 | # Inc. |
8 | # Foundation, Inc. |
|
|
9 | # |
8 | # |
10 | # |
9 | # |
11 | # This configure script is free software; the Free Software Foundation |
10 | # This configure script is free software; the Free Software Foundation |
12 | # gives unlimited permission to copy, distribute and modify it. |
11 | # gives unlimited permission to copy, distribute and modify it. |
13 | ## -------------------- ## |
12 | ## -------------------- ## |
14 | ## M4sh Initialization. ## |
13 | ## M4sh Initialization. ## |
15 | ## -------------------- ## |
14 | ## -------------------- ## |
16 | |
15 | |
17 | # Be more Bourne compatible |
16 | # Be more Bourne compatible |
18 | DUALCASE=1; export DUALCASE # for MKS sh |
17 | DUALCASE=1; export DUALCASE # for MKS sh |
|
|
18 | as_nop=: |
19 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : |
19 | if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 |
|
|
20 | then : |
20 | emulate sh |
21 | emulate sh |
21 | NULLCMD=: |
22 | NULLCMD=: |
22 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
23 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
23 | # is contrary to our usage. Disable this feature. |
24 | # is contrary to our usage. Disable this feature. |
24 | alias -g '${1+"$@"}'='"$@"' |
25 | alias -g '${1+"$@"}'='"$@"' |
25 | setopt NO_GLOB_SUBST |
26 | setopt NO_GLOB_SUBST |
26 | else |
27 | else $as_nop |
27 | case `(set -o) 2>/dev/null` in #( |
28 | case `(set -o) 2>/dev/null` in #( |
28 | *posix*) : |
29 | *posix*) : |
29 | set -o posix ;; #( |
30 | set -o posix ;; #( |
30 | *) : |
31 | *) : |
31 | ;; |
32 | ;; |
32 | esac |
33 | esac |
33 | fi |
34 | fi |
34 | |
35 | |
35 | |
36 | |
|
|
37 | |
|
|
38 | # Reset variables that may have inherited troublesome values from |
|
|
39 | # the environment. |
|
|
40 | |
|
|
41 | # IFS needs to be set, to space, tab, and newline, in precisely that order. |
|
|
42 | # (If _AS_PATH_WALK were called with IFS unset, it would have the |
|
|
43 | # side effect of setting IFS to empty, thus disabling word splitting.) |
|
|
44 | # Quoting is to prevent editors from complaining about space-tab. |
36 | as_nl=' |
45 | as_nl=' |
37 | ' |
46 | ' |
38 | export as_nl |
47 | export as_nl |
39 | # Printing a long string crashes Solaris 7 /usr/bin/printf. |
48 | IFS=" "" $as_nl" |
40 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
49 | |
41 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo |
50 | PS1='$ ' |
42 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo |
51 | PS2='> ' |
43 | # Prefer a ksh shell builtin over an external printf program on Solaris, |
52 | PS4='+ ' |
44 | # but without wasting forks for bash or zsh. |
53 | |
45 | if test -z "$BASH_VERSION$ZSH_VERSION" \ |
54 | # Ensure predictable behavior from utilities with locale-dependent output. |
46 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then |
55 | LC_ALL=C |
47 | as_echo='print -r --' |
56 | export LC_ALL |
48 | as_echo_n='print -rn --' |
57 | LANGUAGE=C |
49 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then |
58 | export LANGUAGE |
50 | as_echo='printf %s\n' |
59 | |
51 | as_echo_n='printf %s' |
60 | # We cannot yet rely on "unset" to work, but we need these variables |
52 | else |
61 | # to be unset--not just set to an empty or harmless value--now, to |
53 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then |
62 | # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct |
54 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' |
63 | # also avoids known problems related to "unset" and subshell syntax |
55 | as_echo_n='/usr/ucb/echo -n' |
64 | # in other old shells (e.g. bash 2.01 and pdksh 5.2.14). |
56 | else |
65 | for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH |
57 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
66 | do eval test \${$as_var+y} \ |
58 | as_echo_n_body='eval |
67 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : |
59 | arg=$1; |
68 | done |
60 | case $arg in #( |
69 | |
61 | *"$as_nl"*) |
70 | # Ensure that fds 0, 1, and 2 are open. |
62 | expr "X$arg" : "X\\(.*\\)$as_nl"; |
71 | if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi |
63 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; |
72 | if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi |
64 | esac; |
73 | if (exec 3>&2) ; then :; else exec 2>/dev/null; fi |
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 | |
74 | # The user is always right. |
75 | # The user is always right. |
75 | if test "${PATH_SEPARATOR+set}" != set; then |
76 | if ${PATH_SEPARATOR+false} :; then |
76 | PATH_SEPARATOR=: |
77 | 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 && { |
78 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
79 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
79 | PATH_SEPARATOR=';' |
80 | PATH_SEPARATOR=';' |
80 | } |
81 | } |
81 | fi |
82 | fi |
82 | |
83 | |
83 | |
84 | |
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. |
85 | # Find who we are. Look in the path if we contain no directory separator. |
|
|
86 | as_myself= |
92 | case $0 in #(( |
87 | case $0 in #(( |
93 | *[\\/]* ) as_myself=$0 ;; |
88 | *[\\/]* ) as_myself=$0 ;; |
94 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
89 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
95 | for as_dir in $PATH |
90 | for as_dir in $PATH |
96 | do |
91 | do |
97 | IFS=$as_save_IFS |
92 | IFS=$as_save_IFS |
98 | test -z "$as_dir" && as_dir=. |
93 | case $as_dir in #((( |
|
|
94 | '') as_dir=./ ;; |
|
|
95 | */) ;; |
|
|
96 | *) as_dir=$as_dir/ ;; |
|
|
97 | esac |
99 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
98 | test -r "$as_dir$0" && as_myself=$as_dir$0 && break |
100 | done |
99 | done |
101 | IFS=$as_save_IFS |
100 | IFS=$as_save_IFS |
102 | |
101 | |
103 | ;; |
102 | ;; |
104 | esac |
103 | esac |
… | |
… | |
106 | # in which case we are not to be found in the path. |
105 | # in which case we are not to be found in the path. |
107 | if test "x$as_myself" = x; then |
106 | if test "x$as_myself" = x; then |
108 | as_myself=$0 |
107 | as_myself=$0 |
109 | fi |
108 | fi |
110 | if test ! -f "$as_myself"; then |
109 | if test ! -f "$as_myself"; then |
111 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
110 | printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
112 | exit 1 |
111 | exit 1 |
113 | fi |
112 | fi |
114 | |
113 | |
115 | # Unset variables that we do not need and which cause bugs (e.g. in |
|
|
116 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" |
|
|
117 | # suppresses any "Segmentation fault" message there. '((' could |
|
|
118 | # trigger a bug in pdksh 5.2.14. |
|
|
119 | for as_var in BASH_ENV ENV MAIL MAILPATH |
|
|
120 | do eval test x\${$as_var+set} = xset \ |
|
|
121 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : |
|
|
122 | done |
|
|
123 | PS1='$ ' |
|
|
124 | PS2='> ' |
|
|
125 | PS4='+ ' |
|
|
126 | |
114 | |
127 | # NLS nuisances. |
115 | # Use a proper internal environment variable to ensure we don't fall |
128 | LC_ALL=C |
116 | # into an infinite loop, continuously re-executing ourselves. |
129 | export LC_ALL |
117 | if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then |
130 | LANGUAGE=C |
118 | _as_can_reexec=no; export _as_can_reexec; |
131 | export LANGUAGE |
119 | # We cannot yet assume a decent shell, so we have to provide a |
132 | |
120 | # neutralization value for shells without unset; and this also |
133 | # CDPATH. |
121 | # works around shells that cannot unset nonexistent variables. |
|
|
122 | # Preserve -v and -x to the replacement shell. |
|
|
123 | BASH_ENV=/dev/null |
|
|
124 | ENV=/dev/null |
134 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
125 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV |
135 | |
126 | case $- in # (((( |
|
|
127 | *v*x* | *x*v* ) as_opts=-vx ;; |
|
|
128 | *v* ) as_opts=-v ;; |
|
|
129 | *x* ) as_opts=-x ;; |
|
|
130 | * ) as_opts= ;; |
|
|
131 | esac |
|
|
132 | exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} |
|
|
133 | # Admittedly, this is quite paranoid, since all the known shells bail |
|
|
134 | # out after a failed `exec'. |
|
|
135 | printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 |
|
|
136 | exit 255 |
|
|
137 | fi |
|
|
138 | # We don't want this to propagate to other subprocesses. |
|
|
139 | { _as_can_reexec=; unset _as_can_reexec;} |
136 | if test "x$CONFIG_SHELL" = x; then |
140 | if test "x$CONFIG_SHELL" = x; then |
137 | as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : |
141 | as_bourne_compatible="as_nop=: |
|
|
142 | if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 |
|
|
143 | then : |
138 | emulate sh |
144 | emulate sh |
139 | NULLCMD=: |
145 | NULLCMD=: |
140 | # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which |
146 | # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which |
141 | # is contrary to our usage. Disable this feature. |
147 | # is contrary to our usage. Disable this feature. |
142 | alias -g '\${1+\"\$@\"}'='\"\$@\"' |
148 | alias -g '\${1+\"\$@\"}'='\"\$@\"' |
143 | setopt NO_GLOB_SUBST |
149 | setopt NO_GLOB_SUBST |
144 | else |
150 | else \$as_nop |
145 | case \`(set -o) 2>/dev/null\` in #( |
151 | case \`(set -o) 2>/dev/null\` in #( |
146 | *posix*) : |
152 | *posix*) : |
147 | set -o posix ;; #( |
153 | set -o posix ;; #( |
148 | *) : |
154 | *) : |
149 | ;; |
155 | ;; |
… | |
… | |
159 | exitcode=0 |
165 | exitcode=0 |
160 | as_fn_success || { exitcode=1; echo as_fn_success failed.; } |
166 | as_fn_success || { exitcode=1; echo as_fn_success failed.; } |
161 | as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } |
167 | as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } |
162 | as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } |
168 | as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } |
163 | as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } |
169 | as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } |
164 | if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : |
170 | if ( set x; as_fn_ret_success y && test x = \"\$1\" ) |
|
|
171 | then : |
165 | |
172 | |
166 | else |
173 | else \$as_nop |
167 | exitcode=1; echo positional parameters were not saved. |
174 | exitcode=1; echo positional parameters were not saved. |
168 | fi |
175 | fi |
169 | test x\$exitcode = x0 || exit 1" |
176 | test x\$exitcode = x0 || exit 1 |
|
|
177 | blah=\$(echo \$(echo blah)) |
|
|
178 | test x\"\$blah\" = xblah || exit 1 |
|
|
179 | test -x / || exit 1" |
170 | as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO |
180 | as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO |
171 | as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO |
181 | as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO |
172 | eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && |
182 | eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && |
173 | test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 |
183 | test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1" |
174 | test \$(( 1 + 1 )) = 2 || exit 1" |
|
|
175 | if (eval "$as_required") 2>/dev/null; then : |
184 | if (eval "$as_required") 2>/dev/null |
|
|
185 | then : |
176 | as_have_required=yes |
186 | as_have_required=yes |
177 | else |
187 | else $as_nop |
178 | as_have_required=no |
188 | as_have_required=no |
179 | fi |
189 | fi |
180 | if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : |
190 | if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null |
|
|
191 | then : |
181 | |
192 | |
182 | else |
193 | else $as_nop |
183 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
194 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
184 | as_found=false |
195 | as_found=false |
185 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
196 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
186 | do |
197 | do |
187 | IFS=$as_save_IFS |
198 | IFS=$as_save_IFS |
188 | test -z "$as_dir" && as_dir=. |
199 | case $as_dir in #((( |
|
|
200 | '') as_dir=./ ;; |
|
|
201 | */) ;; |
|
|
202 | *) as_dir=$as_dir/ ;; |
|
|
203 | esac |
189 | as_found=: |
204 | as_found=: |
190 | case $as_dir in #( |
205 | case $as_dir in #( |
191 | /*) |
206 | /*) |
192 | for as_base in sh bash ksh sh5; do |
207 | for as_base in sh bash ksh sh5; do |
193 | # Try only shells that exist, to save several forks. |
208 | # Try only shells that exist, to save several forks. |
194 | as_shell=$as_dir/$as_base |
209 | as_shell=$as_dir$as_base |
195 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && |
210 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && |
196 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : |
211 | as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null |
|
|
212 | then : |
197 | CONFIG_SHELL=$as_shell as_have_required=yes |
213 | CONFIG_SHELL=$as_shell as_have_required=yes |
198 | if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : |
214 | if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null |
|
|
215 | then : |
199 | break 2 |
216 | break 2 |
200 | fi |
217 | fi |
201 | fi |
218 | fi |
202 | done;; |
219 | done;; |
203 | esac |
220 | esac |
204 | as_found=false |
221 | as_found=false |
205 | done |
222 | done |
|
|
223 | IFS=$as_save_IFS |
|
|
224 | if $as_found |
|
|
225 | then : |
|
|
226 | |
|
|
227 | else $as_nop |
206 | $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && |
228 | if { test -f "$SHELL" || test -f "$SHELL.exe"; } && |
207 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : |
229 | as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null |
|
|
230 | then : |
208 | CONFIG_SHELL=$SHELL as_have_required=yes |
231 | CONFIG_SHELL=$SHELL as_have_required=yes |
209 | fi; } |
232 | fi |
210 | IFS=$as_save_IFS |
233 | fi |
211 | |
234 | |
212 | |
235 | |
213 | if test "x$CONFIG_SHELL" != x; then : |
236 | if test "x$CONFIG_SHELL" != x |
|
|
237 | then : |
|
|
238 | export CONFIG_SHELL |
214 | # We cannot yet assume a decent shell, so we have to provide a |
239 | # We cannot yet assume a decent shell, so we have to provide a |
215 | # neutralization value for shells without unset; and this also |
240 | # neutralization value for shells without unset; and this also |
216 | # works around shells that cannot unset nonexistent variables. |
241 | # works around shells that cannot unset nonexistent variables. |
|
|
242 | # Preserve -v and -x to the replacement shell. |
217 | BASH_ENV=/dev/null |
243 | BASH_ENV=/dev/null |
218 | ENV=/dev/null |
244 | ENV=/dev/null |
219 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV |
245 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV |
220 | export CONFIG_SHELL |
246 | case $- in # (((( |
|
|
247 | *v*x* | *x*v* ) as_opts=-vx ;; |
|
|
248 | *v* ) as_opts=-v ;; |
|
|
249 | *x* ) as_opts=-x ;; |
|
|
250 | * ) as_opts= ;; |
|
|
251 | esac |
221 | exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} |
252 | exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} |
|
|
253 | # Admittedly, this is quite paranoid, since all the known shells bail |
|
|
254 | # out after a failed `exec'. |
|
|
255 | printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 |
|
|
256 | exit 255 |
222 | fi |
257 | fi |
223 | |
258 | |
224 | if test x$as_have_required = xno; then : |
259 | if test x$as_have_required = xno |
|
|
260 | then : |
225 | $as_echo "$0: This script requires a shell more modern than all" |
261 | printf "%s\n" "$0: This script requires a shell more modern than all" |
226 | $as_echo "$0: the shells that I found on your system." |
262 | printf "%s\n" "$0: the shells that I found on your system." |
227 | if test x${ZSH_VERSION+set} = xset ; then |
263 | if test ${ZSH_VERSION+y} ; then |
228 | $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" |
264 | printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should" |
229 | $as_echo "$0: be upgraded to zsh 4.3.4 or later." |
265 | printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later." |
230 | else |
266 | else |
231 | $as_echo "$0: Please tell bug-autoconf@gnu.org about your system, |
267 | printf "%s\n" "$0: Please tell bug-autoconf@gnu.org about your system, |
232 | $0: including any error possibly output before this |
268 | $0: including any error possibly output before this |
233 | $0: message. Then install a modern shell, or manually run |
269 | $0: message. Then install a modern shell, or manually run |
234 | $0: the script under such a shell if you do have one." |
270 | $0: the script under such a shell if you do have one." |
235 | fi |
271 | fi |
236 | exit 1 |
272 | exit 1 |
… | |
… | |
253 | { |
289 | { |
254 | { eval $1=; unset $1;} |
290 | { eval $1=; unset $1;} |
255 | } |
291 | } |
256 | as_unset=as_fn_unset |
292 | as_unset=as_fn_unset |
257 | |
293 | |
|
|
294 | |
258 | # as_fn_set_status STATUS |
295 | # as_fn_set_status STATUS |
259 | # ----------------------- |
296 | # ----------------------- |
260 | # Set $? to STATUS, without forking. |
297 | # Set $? to STATUS, without forking. |
261 | as_fn_set_status () |
298 | as_fn_set_status () |
262 | { |
299 | { |
… | |
… | |
270 | { |
307 | { |
271 | set +e |
308 | set +e |
272 | as_fn_set_status $1 |
309 | as_fn_set_status $1 |
273 | exit $1 |
310 | exit $1 |
274 | } # as_fn_exit |
311 | } # as_fn_exit |
|
|
312 | # as_fn_nop |
|
|
313 | # --------- |
|
|
314 | # Do nothing but, unlike ":", preserve the value of $?. |
|
|
315 | as_fn_nop () |
|
|
316 | { |
|
|
317 | return $? |
|
|
318 | } |
|
|
319 | as_nop=as_fn_nop |
275 | |
320 | |
276 | # as_fn_mkdir_p |
321 | # as_fn_mkdir_p |
277 | # ------------- |
322 | # ------------- |
278 | # Create "$as_dir" as a directory, including parents if necessary. |
323 | # Create "$as_dir" as a directory, including parents if necessary. |
279 | as_fn_mkdir_p () |
324 | as_fn_mkdir_p () |
… | |
… | |
284 | esac |
329 | esac |
285 | test -d "$as_dir" || eval $as_mkdir_p || { |
330 | test -d "$as_dir" || eval $as_mkdir_p || { |
286 | as_dirs= |
331 | as_dirs= |
287 | while :; do |
332 | while :; do |
288 | case $as_dir in #( |
333 | case $as_dir in #( |
289 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
334 | *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
290 | *) as_qdir=$as_dir;; |
335 | *) as_qdir=$as_dir;; |
291 | esac |
336 | esac |
292 | as_dirs="'$as_qdir' $as_dirs" |
337 | as_dirs="'$as_qdir' $as_dirs" |
293 | as_dir=`$as_dirname -- "$as_dir" || |
338 | as_dir=`$as_dirname -- "$as_dir" || |
294 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
339 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
295 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
340 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
296 | X"$as_dir" : 'X\(//\)$' \| \ |
341 | X"$as_dir" : 'X\(//\)$' \| \ |
297 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
342 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
298 | $as_echo X"$as_dir" | |
343 | printf "%s\n" X"$as_dir" | |
299 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
344 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
300 | s//\1/ |
345 | s//\1/ |
301 | q |
346 | q |
302 | } |
347 | } |
303 | /^X\(\/\/\)[^/].*/{ |
348 | /^X\(\/\/\)[^/].*/{ |
… | |
… | |
318 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
363 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
319 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
364 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
320 | |
365 | |
321 | |
366 | |
322 | } # as_fn_mkdir_p |
367 | } # as_fn_mkdir_p |
|
|
368 | |
|
|
369 | # as_fn_executable_p FILE |
|
|
370 | # ----------------------- |
|
|
371 | # Test if FILE is an executable regular file. |
|
|
372 | as_fn_executable_p () |
|
|
373 | { |
|
|
374 | test -f "$1" && test -x "$1" |
|
|
375 | } # as_fn_executable_p |
323 | # as_fn_append VAR VALUE |
376 | # as_fn_append VAR VALUE |
324 | # ---------------------- |
377 | # ---------------------- |
325 | # Append the text in VALUE to the end of the definition contained in VAR. Take |
378 | # Append the text in VALUE to the end of the definition contained in VAR. Take |
326 | # advantage of any shell optimizations that allow amortized linear growth over |
379 | # advantage of any shell optimizations that allow amortized linear growth over |
327 | # repeated appends, instead of the typical quadratic growth present in naive |
380 | # repeated appends, instead of the typical quadratic growth present in naive |
328 | # implementations. |
381 | # implementations. |
329 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : |
382 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null |
|
|
383 | then : |
330 | eval 'as_fn_append () |
384 | eval 'as_fn_append () |
331 | { |
385 | { |
332 | eval $1+=\$2 |
386 | eval $1+=\$2 |
333 | }' |
387 | }' |
334 | else |
388 | else $as_nop |
335 | as_fn_append () |
389 | as_fn_append () |
336 | { |
390 | { |
337 | eval $1=\$$1\$2 |
391 | eval $1=\$$1\$2 |
338 | } |
392 | } |
339 | fi # as_fn_append |
393 | fi # as_fn_append |
… | |
… | |
341 | # as_fn_arith ARG... |
395 | # as_fn_arith ARG... |
342 | # ------------------ |
396 | # ------------------ |
343 | # Perform arithmetic evaluation on the ARGs, and store the result in the |
397 | # Perform arithmetic evaluation on the ARGs, and store the result in the |
344 | # global $as_val. Take advantage of shells that can avoid forks. The arguments |
398 | # global $as_val. Take advantage of shells that can avoid forks. The arguments |
345 | # must be portable across $(()) and expr. |
399 | # must be portable across $(()) and expr. |
346 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : |
400 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null |
|
|
401 | then : |
347 | eval 'as_fn_arith () |
402 | eval 'as_fn_arith () |
348 | { |
403 | { |
349 | as_val=$(( $* )) |
404 | as_val=$(( $* )) |
350 | }' |
405 | }' |
351 | else |
406 | else $as_nop |
352 | as_fn_arith () |
407 | as_fn_arith () |
353 | { |
408 | { |
354 | as_val=`expr "$@" || test $? -eq 1` |
409 | as_val=`expr "$@" || test $? -eq 1` |
355 | } |
410 | } |
356 | fi # as_fn_arith |
411 | fi # as_fn_arith |
357 | |
412 | |
|
|
413 | # as_fn_nop |
|
|
414 | # --------- |
|
|
415 | # Do nothing but, unlike ":", preserve the value of $?. |
|
|
416 | as_fn_nop () |
|
|
417 | { |
|
|
418 | return $? |
|
|
419 | } |
|
|
420 | as_nop=as_fn_nop |
358 | |
421 | |
359 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
422 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
360 | # ---------------------------------------- |
423 | # ---------------------------------------- |
361 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
424 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
362 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the |
425 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the |
… | |
… | |
364 | as_fn_error () |
427 | as_fn_error () |
365 | { |
428 | { |
366 | as_status=$1; test $as_status -eq 0 && as_status=1 |
429 | as_status=$1; test $as_status -eq 0 && as_status=1 |
367 | if test "$4"; then |
430 | if test "$4"; then |
368 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
431 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
369 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 |
432 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 |
370 | fi |
433 | fi |
371 | $as_echo "$as_me: error: $2" >&2 |
434 | printf "%s\n" "$as_me: error: $2" >&2 |
372 | as_fn_exit $as_status |
435 | as_fn_exit $as_status |
373 | } # as_fn_error |
436 | } # as_fn_error |
374 | |
437 | |
375 | if expr a : '\(a\)' >/dev/null 2>&1 && |
438 | if expr a : '\(a\)' >/dev/null 2>&1 && |
376 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
439 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
… | |
… | |
393 | |
456 | |
394 | as_me=`$as_basename -- "$0" || |
457 | as_me=`$as_basename -- "$0" || |
395 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
458 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
396 | X"$0" : 'X\(//\)$' \| \ |
459 | X"$0" : 'X\(//\)$' \| \ |
397 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
460 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
398 | $as_echo X/"$0" | |
461 | printf "%s\n" X/"$0" | |
399 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
462 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
400 | s//\1/ |
463 | s//\1/ |
401 | q |
464 | q |
402 | } |
465 | } |
403 | /^X\/\(\/\/\)$/{ |
466 | /^X\/\(\/\/\)$/{ |
… | |
… | |
437 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
500 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
438 | t loop |
501 | t loop |
439 | s/-\n.*// |
502 | s/-\n.*// |
440 | ' >$as_me.lineno && |
503 | ' >$as_me.lineno && |
441 | chmod +x "$as_me.lineno" || |
504 | chmod +x "$as_me.lineno" || |
442 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } |
505 | { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } |
443 | |
506 | |
|
|
507 | # If we had to re-execute with $CONFIG_SHELL, we're ensured to have |
|
|
508 | # already done that, so ensure we don't try to do so again and fall |
|
|
509 | # in an infinite loop. This has already happened in practice. |
|
|
510 | _as_can_reexec=no; export _as_can_reexec |
444 | # Don't try to exec as it changes $[0], causing all sort of problems |
511 | # Don't try to exec as it changes $[0], causing all sort of problems |
445 | # (the dirname of $[0] is not the place where we might find the |
512 | # (the dirname of $[0] is not the place where we might find the |
446 | # original and so on. Autoconf is especially sensitive to this). |
513 | # original and so on. Autoconf is especially sensitive to this). |
447 | . "./$as_me.lineno" |
514 | . "./$as_me.lineno" |
448 | # Exit status is that of the last command. |
515 | # Exit status is that of the last command. |
449 | exit |
516 | exit |
450 | } |
517 | } |
451 | |
518 | |
|
|
519 | |
|
|
520 | # Determine whether it's possible to make 'echo' print without a newline. |
|
|
521 | # These variables are no longer used directly by Autoconf, but are AC_SUBSTed |
|
|
522 | # for compatibility with existing Makefiles. |
452 | ECHO_C= ECHO_N= ECHO_T= |
523 | ECHO_C= ECHO_N= ECHO_T= |
453 | case `echo -n x` in #((((( |
524 | case `echo -n x` in #((((( |
454 | -n*) |
525 | -n*) |
455 | case `echo 'xy\c'` in |
526 | case `echo 'xy\c'` in |
456 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
527 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
… | |
… | |
460 | esac;; |
531 | esac;; |
461 | *) |
532 | *) |
462 | ECHO_N='-n';; |
533 | ECHO_N='-n';; |
463 | esac |
534 | esac |
464 | |
535 | |
|
|
536 | # For backward compatibility with old third-party macros, we provide |
|
|
537 | # the shell variables $as_echo and $as_echo_n. New code should use |
|
|
538 | # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. |
|
|
539 | as_echo='printf %s\n' |
|
|
540 | as_echo_n='printf %s' |
|
|
541 | |
|
|
542 | |
465 | rm -f conf$$ conf$$.exe conf$$.file |
543 | rm -f conf$$ conf$$.exe conf$$.file |
466 | if test -d conf$$.dir; then |
544 | if test -d conf$$.dir; then |
467 | rm -f conf$$.dir/conf$$.file |
545 | rm -f conf$$.dir/conf$$.file |
468 | else |
546 | else |
469 | rm -f conf$$.dir |
547 | rm -f conf$$.dir |
… | |
… | |
473 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
551 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
474 | as_ln_s='ln -s' |
552 | as_ln_s='ln -s' |
475 | # ... but there are two gotchas: |
553 | # ... but there are two gotchas: |
476 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
554 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
477 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
555 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
478 | # In both cases, we have to default to `cp -p'. |
556 | # In both cases, we have to default to `cp -pR'. |
479 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
557 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
480 | as_ln_s='cp -p' |
558 | as_ln_s='cp -pR' |
481 | elif ln conf$$.file conf$$ 2>/dev/null; then |
559 | elif ln conf$$.file conf$$ 2>/dev/null; then |
482 | as_ln_s=ln |
560 | as_ln_s=ln |
483 | else |
561 | else |
484 | as_ln_s='cp -p' |
562 | as_ln_s='cp -pR' |
485 | fi |
563 | fi |
486 | else |
564 | else |
487 | as_ln_s='cp -p' |
565 | as_ln_s='cp -pR' |
488 | fi |
566 | fi |
489 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
567 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
490 | rmdir conf$$.dir 2>/dev/null |
568 | rmdir conf$$.dir 2>/dev/null |
491 | |
569 | |
492 | if mkdir -p . 2>/dev/null; then |
570 | if mkdir -p . 2>/dev/null; then |
… | |
… | |
494 | else |
572 | else |
495 | test -d ./-p && rmdir ./-p |
573 | test -d ./-p && rmdir ./-p |
496 | as_mkdir_p=false |
574 | as_mkdir_p=false |
497 | fi |
575 | fi |
498 | |
576 | |
499 | if test -x / >/dev/null 2>&1; then |
|
|
500 | as_test_x='test -x' |
577 | as_test_x='test -x' |
501 | else |
578 | as_executable_p=as_fn_executable_p |
502 | if ls -dL / >/dev/null 2>&1; then |
|
|
503 | as_ls_L_option=L |
|
|
504 | else |
|
|
505 | as_ls_L_option= |
|
|
506 | fi |
|
|
507 | as_test_x=' |
|
|
508 | eval sh -c '\'' |
|
|
509 | if test -d "$1"; then |
|
|
510 | test -d "$1/."; |
|
|
511 | else |
|
|
512 | case $1 in #( |
|
|
513 | -*)set "./$1";; |
|
|
514 | esac; |
|
|
515 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( |
|
|
516 | ???[sx]*):;;*)false;;esac;fi |
|
|
517 | '\'' sh |
|
|
518 | ' |
|
|
519 | fi |
|
|
520 | as_executable_p=$as_test_x |
|
|
521 | |
579 | |
522 | # Sed expression to map a string onto a valid CPP name. |
580 | # Sed expression to map a string onto a valid CPP name. |
523 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
581 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
524 | |
582 | |
525 | # Sed expression to map a string onto a valid variable name. |
583 | # Sed expression to map a string onto a valid variable name. |
… | |
… | |
545 | subdirs= |
603 | subdirs= |
546 | MFLAGS= |
604 | MFLAGS= |
547 | MAKEFLAGS= |
605 | MAKEFLAGS= |
548 | |
606 | |
549 | # Identity of this package. |
607 | # Identity of this package. |
550 | PACKAGE_NAME= |
608 | PACKAGE_NAME='' |
551 | PACKAGE_TARNAME= |
609 | PACKAGE_TARNAME='' |
552 | PACKAGE_VERSION= |
610 | PACKAGE_VERSION='' |
553 | PACKAGE_STRING= |
611 | PACKAGE_STRING='' |
554 | PACKAGE_BUGREPORT= |
612 | PACKAGE_BUGREPORT='' |
555 | PACKAGE_URL= |
613 | PACKAGE_URL='' |
556 | |
614 | |
557 | ac_unique_file="libeio/eio.h" |
615 | ac_unique_file="libeio/eio.h" |
558 | # Factoring default headers for most tests. |
616 | # Factoring default headers for most tests. |
559 | ac_includes_default="\ |
617 | ac_includes_default="\ |
|
|
618 | #include <stddef.h> |
|
|
619 | #ifdef HAVE_STDIO_H |
560 | #include <stdio.h> |
620 | # include <stdio.h> |
561 | #ifdef HAVE_SYS_TYPES_H |
|
|
562 | # include <sys/types.h> |
|
|
563 | #endif |
621 | #endif |
564 | #ifdef HAVE_SYS_STAT_H |
622 | #ifdef HAVE_STDLIB_H |
565 | # include <sys/stat.h> |
|
|
566 | #endif |
|
|
567 | #ifdef STDC_HEADERS |
|
|
568 | # include <stdlib.h> |
623 | # include <stdlib.h> |
569 | # include <stddef.h> |
|
|
570 | #else |
|
|
571 | # ifdef HAVE_STDLIB_H |
|
|
572 | # include <stdlib.h> |
|
|
573 | # endif |
|
|
574 | #endif |
624 | #endif |
575 | #ifdef HAVE_STRING_H |
625 | #ifdef HAVE_STRING_H |
576 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H |
|
|
577 | # include <memory.h> |
|
|
578 | # endif |
|
|
579 | # include <string.h> |
626 | # include <string.h> |
580 | #endif |
|
|
581 | #ifdef HAVE_STRINGS_H |
|
|
582 | # include <strings.h> |
|
|
583 | #endif |
627 | #endif |
584 | #ifdef HAVE_INTTYPES_H |
628 | #ifdef HAVE_INTTYPES_H |
585 | # include <inttypes.h> |
629 | # include <inttypes.h> |
586 | #endif |
630 | #endif |
587 | #ifdef HAVE_STDINT_H |
631 | #ifdef HAVE_STDINT_H |
588 | # include <stdint.h> |
632 | # include <stdint.h> |
589 | #endif |
633 | #endif |
|
|
634 | #ifdef HAVE_STRINGS_H |
|
|
635 | # include <strings.h> |
|
|
636 | #endif |
|
|
637 | #ifdef HAVE_SYS_TYPES_H |
|
|
638 | # include <sys/types.h> |
|
|
639 | #endif |
|
|
640 | #ifdef HAVE_SYS_STAT_H |
|
|
641 | # include <sys/stat.h> |
|
|
642 | #endif |
590 | #ifdef HAVE_UNISTD_H |
643 | #ifdef HAVE_UNISTD_H |
591 | # include <unistd.h> |
644 | # include <unistd.h> |
592 | #endif" |
645 | #endif" |
593 | |
646 | |
|
|
647 | ac_header_c_list= |
594 | ac_subst_vars='LTLIBOBJS |
648 | ac_subst_vars='LTLIBOBJS |
595 | LIBOBJS |
649 | LIBOBJS |
596 | EGREP |
|
|
597 | GREP |
|
|
598 | CPP |
|
|
599 | OBJEXT |
650 | OBJEXT |
600 | EXEEXT |
651 | EXEEXT |
601 | ac_ct_CC |
652 | ac_ct_CC |
602 | CPPFLAGS |
653 | CPPFLAGS |
603 | LDFLAGS |
654 | LDFLAGS |
… | |
… | |
620 | htmldir |
671 | htmldir |
621 | infodir |
672 | infodir |
622 | docdir |
673 | docdir |
623 | oldincludedir |
674 | oldincludedir |
624 | includedir |
675 | includedir |
|
|
676 | runstatedir |
625 | localstatedir |
677 | localstatedir |
626 | sharedstatedir |
678 | sharedstatedir |
627 | sysconfdir |
679 | sysconfdir |
628 | datadir |
680 | datadir |
629 | datarootdir |
681 | datarootdir |
… | |
… | |
650 | target_alias |
702 | target_alias |
651 | CC |
703 | CC |
652 | CFLAGS |
704 | CFLAGS |
653 | LDFLAGS |
705 | LDFLAGS |
654 | LIBS |
706 | LIBS |
655 | CPPFLAGS |
707 | CPPFLAGS' |
656 | CPP' |
|
|
657 | |
708 | |
658 | |
709 | |
659 | # Initialize some variables set by options. |
710 | # Initialize some variables set by options. |
660 | ac_init_help= |
711 | ac_init_help= |
661 | ac_init_version=false |
712 | ac_init_version=false |
… | |
… | |
690 | datarootdir='${prefix}/share' |
741 | datarootdir='${prefix}/share' |
691 | datadir='${datarootdir}' |
742 | datadir='${datarootdir}' |
692 | sysconfdir='${prefix}/etc' |
743 | sysconfdir='${prefix}/etc' |
693 | sharedstatedir='${prefix}/com' |
744 | sharedstatedir='${prefix}/com' |
694 | localstatedir='${prefix}/var' |
745 | localstatedir='${prefix}/var' |
|
|
746 | runstatedir='${localstatedir}/run' |
695 | includedir='${prefix}/include' |
747 | includedir='${prefix}/include' |
696 | oldincludedir='/usr/include' |
748 | oldincludedir='/usr/include' |
697 | docdir='${datarootdir}/doc/${PACKAGE}' |
749 | docdir='${datarootdir}/doc/${PACKAGE}' |
698 | infodir='${datarootdir}/info' |
750 | infodir='${datarootdir}/info' |
699 | htmldir='${docdir}' |
751 | htmldir='${docdir}' |
… | |
… | |
719 | *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
771 | *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
720 | *=) ac_optarg= ;; |
772 | *=) ac_optarg= ;; |
721 | *) ac_optarg=yes ;; |
773 | *) ac_optarg=yes ;; |
722 | esac |
774 | esac |
723 | |
775 | |
724 | # Accept the important Cygnus configure options, so we can diagnose typos. |
|
|
725 | |
|
|
726 | case $ac_dashdash$ac_option in |
776 | case $ac_dashdash$ac_option in |
727 | --) |
777 | --) |
728 | ac_dashdash=yes ;; |
778 | ac_dashdash=yes ;; |
729 | |
779 | |
730 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
780 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
… | |
… | |
761 | |
811 | |
762 | -disable-* | --disable-*) |
812 | -disable-* | --disable-*) |
763 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
813 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
764 | # Reject names that are not valid shell variable names. |
814 | # Reject names that are not valid shell variable names. |
765 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
815 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
766 | as_fn_error $? "invalid feature name: $ac_useropt" |
816 | as_fn_error $? "invalid feature name: \`$ac_useropt'" |
767 | ac_useropt_orig=$ac_useropt |
817 | ac_useropt_orig=$ac_useropt |
768 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
818 | ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` |
769 | case $ac_user_opts in |
819 | case $ac_user_opts in |
770 | *" |
820 | *" |
771 | "enable_$ac_useropt" |
821 | "enable_$ac_useropt" |
772 | "*) ;; |
822 | "*) ;; |
773 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" |
823 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" |
… | |
… | |
787 | |
837 | |
788 | -enable-* | --enable-*) |
838 | -enable-* | --enable-*) |
789 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
839 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
790 | # Reject names that are not valid shell variable names. |
840 | # Reject names that are not valid shell variable names. |
791 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
841 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
792 | as_fn_error $? "invalid feature name: $ac_useropt" |
842 | as_fn_error $? "invalid feature name: \`$ac_useropt'" |
793 | ac_useropt_orig=$ac_useropt |
843 | ac_useropt_orig=$ac_useropt |
794 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
844 | ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` |
795 | case $ac_user_opts in |
845 | case $ac_user_opts in |
796 | *" |
846 | *" |
797 | "enable_$ac_useropt" |
847 | "enable_$ac_useropt" |
798 | "*) ;; |
848 | "*) ;; |
799 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" |
849 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" |
… | |
… | |
942 | |
992 | |
943 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
993 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
944 | | -silent | --silent | --silen | --sile | --sil) |
994 | | -silent | --silent | --silen | --sile | --sil) |
945 | silent=yes ;; |
995 | silent=yes ;; |
946 | |
996 | |
|
|
997 | -runstatedir | --runstatedir | --runstatedi | --runstated \ |
|
|
998 | | --runstate | --runstat | --runsta | --runst | --runs \ |
|
|
999 | | --run | --ru | --r) |
|
|
1000 | ac_prev=runstatedir ;; |
|
|
1001 | -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ |
|
|
1002 | | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ |
|
|
1003 | | --run=* | --ru=* | --r=*) |
|
|
1004 | runstatedir=$ac_optarg ;; |
|
|
1005 | |
947 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
1006 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
948 | ac_prev=sbindir ;; |
1007 | ac_prev=sbindir ;; |
949 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
1008 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
950 | | --sbi=* | --sb=*) |
1009 | | --sbi=* | --sb=*) |
951 | sbindir=$ac_optarg ;; |
1010 | sbindir=$ac_optarg ;; |
… | |
… | |
991 | |
1050 | |
992 | -with-* | --with-*) |
1051 | -with-* | --with-*) |
993 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
1052 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
994 | # Reject names that are not valid shell variable names. |
1053 | # Reject names that are not valid shell variable names. |
995 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1054 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
996 | as_fn_error $? "invalid package name: $ac_useropt" |
1055 | as_fn_error $? "invalid package name: \`$ac_useropt'" |
997 | ac_useropt_orig=$ac_useropt |
1056 | ac_useropt_orig=$ac_useropt |
998 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
1057 | ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` |
999 | case $ac_user_opts in |
1058 | case $ac_user_opts in |
1000 | *" |
1059 | *" |
1001 | "with_$ac_useropt" |
1060 | "with_$ac_useropt" |
1002 | "*) ;; |
1061 | "*) ;; |
1003 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" |
1062 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" |
… | |
… | |
1007 | |
1066 | |
1008 | -without-* | --without-*) |
1067 | -without-* | --without-*) |
1009 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
1068 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
1010 | # Reject names that are not valid shell variable names. |
1069 | # Reject names that are not valid shell variable names. |
1011 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1070 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1012 | as_fn_error $? "invalid package name: $ac_useropt" |
1071 | as_fn_error $? "invalid package name: \`$ac_useropt'" |
1013 | ac_useropt_orig=$ac_useropt |
1072 | ac_useropt_orig=$ac_useropt |
1014 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
1073 | ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` |
1015 | case $ac_user_opts in |
1074 | case $ac_user_opts in |
1016 | *" |
1075 | *" |
1017 | "with_$ac_useropt" |
1076 | "with_$ac_useropt" |
1018 | "*) ;; |
1077 | "*) ;; |
1019 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" |
1078 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" |
… | |
… | |
1053 | eval $ac_envvar=\$ac_optarg |
1112 | eval $ac_envvar=\$ac_optarg |
1054 | export $ac_envvar ;; |
1113 | export $ac_envvar ;; |
1055 | |
1114 | |
1056 | *) |
1115 | *) |
1057 | # FIXME: should be removed in autoconf 3.0. |
1116 | # FIXME: should be removed in autoconf 3.0. |
1058 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
1117 | printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2 |
1059 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
1118 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
1060 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
1119 | printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2 |
1061 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
1120 | : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" |
1062 | ;; |
1121 | ;; |
1063 | |
1122 | |
1064 | esac |
1123 | esac |
1065 | done |
1124 | done |
1066 | |
1125 | |
… | |
… | |
1071 | |
1130 | |
1072 | if test -n "$ac_unrecognized_opts"; then |
1131 | if test -n "$ac_unrecognized_opts"; then |
1073 | case $enable_option_checking in |
1132 | case $enable_option_checking in |
1074 | no) ;; |
1133 | no) ;; |
1075 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; |
1134 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; |
1076 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
1135 | *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
1077 | esac |
1136 | esac |
1078 | fi |
1137 | fi |
1079 | |
1138 | |
1080 | # Check all directory arguments for consistency. |
1139 | # Check all directory arguments for consistency. |
1081 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
1140 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
1082 | datadir sysconfdir sharedstatedir localstatedir includedir \ |
1141 | datadir sysconfdir sharedstatedir localstatedir includedir \ |
1083 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ |
1142 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ |
1084 | libdir localedir mandir |
1143 | libdir localedir mandir runstatedir |
1085 | do |
1144 | do |
1086 | eval ac_val=\$$ac_var |
1145 | eval ac_val=\$$ac_var |
1087 | # Remove trailing slashes. |
1146 | # Remove trailing slashes. |
1088 | case $ac_val in |
1147 | case $ac_val in |
1089 | */ ) |
1148 | */ ) |
… | |
… | |
1107 | |
1166 | |
1108 | # FIXME: To remove some day. |
1167 | # FIXME: To remove some day. |
1109 | if test "x$host_alias" != x; then |
1168 | if test "x$host_alias" != x; then |
1110 | if test "x$build_alias" = x; then |
1169 | if test "x$build_alias" = x; then |
1111 | cross_compiling=maybe |
1170 | cross_compiling=maybe |
1112 | $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host. |
|
|
1113 | If a cross compiler is detected then cross compile mode will be used" >&2 |
|
|
1114 | elif test "x$build_alias" != "x$host_alias"; then |
1171 | elif test "x$build_alias" != "x$host_alias"; then |
1115 | cross_compiling=yes |
1172 | cross_compiling=yes |
1116 | fi |
1173 | fi |
1117 | fi |
1174 | fi |
1118 | |
1175 | |
… | |
… | |
1137 | ac_confdir=`$as_dirname -- "$as_myself" || |
1194 | ac_confdir=`$as_dirname -- "$as_myself" || |
1138 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
1195 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
1139 | X"$as_myself" : 'X\(//\)[^/]' \| \ |
1196 | X"$as_myself" : 'X\(//\)[^/]' \| \ |
1140 | X"$as_myself" : 'X\(//\)$' \| \ |
1197 | X"$as_myself" : 'X\(//\)$' \| \ |
1141 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || |
1198 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || |
1142 | $as_echo X"$as_myself" | |
1199 | printf "%s\n" X"$as_myself" | |
1143 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
1200 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
1144 | s//\1/ |
1201 | s//\1/ |
1145 | q |
1202 | q |
1146 | } |
1203 | } |
1147 | /^X\(\/\/\)[^/].*/{ |
1204 | /^X\(\/\/\)[^/].*/{ |
… | |
… | |
1234 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
1291 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
1235 | --libexecdir=DIR program executables [EPREFIX/libexec] |
1292 | --libexecdir=DIR program executables [EPREFIX/libexec] |
1236 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
1293 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
1237 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
1294 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
1238 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
1295 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
|
|
1296 | --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] |
1239 | --libdir=DIR object code libraries [EPREFIX/lib] |
1297 | --libdir=DIR object code libraries [EPREFIX/lib] |
1240 | --includedir=DIR C header files [PREFIX/include] |
1298 | --includedir=DIR C header files [PREFIX/include] |
1241 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
1299 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
1242 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
1300 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
1243 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] |
1301 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] |
… | |
… | |
1265 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
1323 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
1266 | nonstandard directory <lib dir> |
1324 | nonstandard directory <lib dir> |
1267 | LIBS libraries to pass to the linker, e.g. -l<library> |
1325 | LIBS libraries to pass to the linker, e.g. -l<library> |
1268 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if |
1326 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if |
1269 | you have headers in a nonstandard directory <include dir> |
1327 | you have headers in a nonstandard directory <include dir> |
1270 | CPP C preprocessor |
|
|
1271 | |
1328 | |
1272 | Use these variables to override the choices made by `configure' or to help |
1329 | Use these variables to override the choices made by `configure' or to help |
1273 | it to find libraries and programs with nonstandard names/locations. |
1330 | it to find libraries and programs with nonstandard names/locations. |
1274 | |
1331 | |
1275 | Report bugs to the package provider. |
1332 | Report bugs to the package provider. |
… | |
… | |
1286 | ac_builddir=. |
1343 | ac_builddir=. |
1287 | |
1344 | |
1288 | case "$ac_dir" in |
1345 | case "$ac_dir" in |
1289 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
1346 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
1290 | *) |
1347 | *) |
1291 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
1348 | ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` |
1292 | # A ".." for each directory in $ac_dir_suffix. |
1349 | # A ".." for each directory in $ac_dir_suffix. |
1293 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
1350 | ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
1294 | case $ac_top_builddir_sub in |
1351 | case $ac_top_builddir_sub in |
1295 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
1352 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
1296 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
1353 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
1297 | esac ;; |
1354 | esac ;; |
1298 | esac |
1355 | esac |
… | |
… | |
1316 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
1373 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
1317 | esac |
1374 | esac |
1318 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
1375 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
1319 | |
1376 | |
1320 | cd "$ac_dir" || { ac_status=$?; continue; } |
1377 | cd "$ac_dir" || { ac_status=$?; continue; } |
1321 | # Check for guested configure. |
1378 | # Check for configure.gnu first; this name is used for a wrapper for |
|
|
1379 | # Metaconfig's "Configure" on case-insensitive file systems. |
1322 | if test -f "$ac_srcdir/configure.gnu"; then |
1380 | if test -f "$ac_srcdir/configure.gnu"; then |
1323 | echo && |
1381 | echo && |
1324 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive |
1382 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive |
1325 | elif test -f "$ac_srcdir/configure"; then |
1383 | elif test -f "$ac_srcdir/configure"; then |
1326 | echo && |
1384 | echo && |
1327 | $SHELL "$ac_srcdir/configure" --help=recursive |
1385 | $SHELL "$ac_srcdir/configure" --help=recursive |
1328 | else |
1386 | else |
1329 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
1387 | printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
1330 | fi || ac_status=$? |
1388 | fi || ac_status=$? |
1331 | cd "$ac_pwd" || { ac_status=$?; break; } |
1389 | cd "$ac_pwd" || { ac_status=$?; break; } |
1332 | done |
1390 | done |
1333 | fi |
1391 | fi |
1334 | |
1392 | |
1335 | test -n "$ac_init_help" && exit $ac_status |
1393 | test -n "$ac_init_help" && exit $ac_status |
1336 | if $ac_init_version; then |
1394 | if $ac_init_version; then |
1337 | cat <<\_ACEOF |
1395 | cat <<\_ACEOF |
1338 | configure |
1396 | configure |
1339 | generated by GNU Autoconf 2.67 |
1397 | generated by GNU Autoconf 2.71 |
1340 | |
1398 | |
1341 | Copyright (C) 2010 Free Software Foundation, Inc. |
1399 | Copyright (C) 2021 Free Software Foundation, Inc. |
1342 | This configure script is free software; the Free Software Foundation |
1400 | This configure script is free software; the Free Software Foundation |
1343 | gives unlimited permission to copy, distribute and modify it. |
1401 | gives unlimited permission to copy, distribute and modify it. |
1344 | _ACEOF |
1402 | _ACEOF |
1345 | exit |
1403 | exit |
1346 | fi |
1404 | fi |
… | |
… | |
1353 | # -------------------------- |
1411 | # -------------------------- |
1354 | # Try to compile conftest.$ac_ext, and return whether this succeeded. |
1412 | # Try to compile conftest.$ac_ext, and return whether this succeeded. |
1355 | ac_fn_c_try_compile () |
1413 | ac_fn_c_try_compile () |
1356 | { |
1414 | { |
1357 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
1415 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
1358 | rm -f conftest.$ac_objext |
1416 | rm -f conftest.$ac_objext conftest.beam |
1359 | if { { ac_try="$ac_compile" |
1417 | if { { ac_try="$ac_compile" |
1360 | case "(($ac_try" in |
1418 | case "(($ac_try" in |
1361 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
1419 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
1362 | *) ac_try_echo=$ac_try;; |
1420 | *) ac_try_echo=$ac_try;; |
1363 | esac |
1421 | esac |
1364 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
1422 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
1365 | $as_echo "$ac_try_echo"; } >&5 |
1423 | printf "%s\n" "$ac_try_echo"; } >&5 |
1366 | (eval "$ac_compile") 2>conftest.err |
1424 | (eval "$ac_compile") 2>conftest.err |
1367 | ac_status=$? |
1425 | ac_status=$? |
1368 | if test -s conftest.err; then |
1426 | if test -s conftest.err; then |
1369 | grep -v '^ *+' conftest.err >conftest.er1 |
1427 | grep -v '^ *+' conftest.err >conftest.er1 |
1370 | cat conftest.er1 >&5 |
1428 | cat conftest.er1 >&5 |
1371 | mv -f conftest.er1 conftest.err |
1429 | mv -f conftest.er1 conftest.err |
1372 | fi |
1430 | fi |
1373 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
1431 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
1374 | test $ac_status = 0; } && { |
1432 | test $ac_status = 0; } && { |
1375 | test -z "$ac_c_werror_flag" || |
1433 | test -z "$ac_c_werror_flag" || |
1376 | test ! -s conftest.err |
1434 | test ! -s conftest.err |
1377 | } && test -s conftest.$ac_objext; then : |
1435 | } && test -s conftest.$ac_objext |
|
|
1436 | then : |
1378 | ac_retval=0 |
1437 | ac_retval=0 |
1379 | else |
1438 | else $as_nop |
1380 | $as_echo "$as_me: failed program was:" >&5 |
1439 | printf "%s\n" "$as_me: failed program was:" >&5 |
1381 | sed 's/^/| /' conftest.$ac_ext >&5 |
1440 | sed 's/^/| /' conftest.$ac_ext >&5 |
1382 | |
1441 | |
1383 | ac_retval=1 |
1442 | ac_retval=1 |
1384 | fi |
1443 | fi |
1385 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
1444 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1386 | as_fn_set_status $ac_retval |
1445 | as_fn_set_status $ac_retval |
1387 | |
1446 | |
1388 | } # ac_fn_c_try_compile |
1447 | } # ac_fn_c_try_compile |
1389 | |
1448 | |
1390 | # ac_fn_c_try_cpp LINENO |
1449 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES |
1391 | # ---------------------- |
1450 | # ------------------------------------------------------- |
1392 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. |
1451 | # Tests whether HEADER exists and can be compiled using the include files in |
1393 | ac_fn_c_try_cpp () |
1452 | # INCLUDES, setting the cache variable VAR accordingly. |
|
|
1453 | ac_fn_c_check_header_compile () |
1394 | { |
1454 | { |
1395 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
1455 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
1396 | if { { ac_try="$ac_cpp conftest.$ac_ext" |
|
|
1397 | case "(($ac_try" in |
|
|
1398 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
1399 | *) ac_try_echo=$ac_try;; |
|
|
1400 | esac |
|
|
1401 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
|
|
1402 | $as_echo "$ac_try_echo"; } >&5 |
|
|
1403 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err |
|
|
1404 | ac_status=$? |
|
|
1405 | if test -s conftest.err; then |
|
|
1406 | grep -v '^ *+' conftest.err >conftest.er1 |
|
|
1407 | cat conftest.er1 >&5 |
|
|
1408 | mv -f conftest.er1 conftest.err |
|
|
1409 | fi |
|
|
1410 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
|
|
1411 | test $ac_status = 0; } > conftest.i && { |
|
|
1412 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
|
|
1413 | test ! -s conftest.err |
|
|
1414 | }; then : |
|
|
1415 | ac_retval=0 |
|
|
1416 | else |
|
|
1417 | $as_echo "$as_me: failed program was:" >&5 |
|
|
1418 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
1419 | |
|
|
1420 | ac_retval=1 |
|
|
1421 | fi |
|
|
1422 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
|
|
1423 | as_fn_set_status $ac_retval |
|
|
1424 | |
|
|
1425 | } # ac_fn_c_try_cpp |
|
|
1426 | |
|
|
1427 | # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES |
|
|
1428 | # ------------------------------------------------------- |
|
|
1429 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using |
|
|
1430 | # the include files in INCLUDES and setting the cache variable VAR |
|
|
1431 | # accordingly. |
|
|
1432 | ac_fn_c_check_header_mongrel () |
|
|
1433 | { |
|
|
1434 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
|
|
1435 | if eval "test \"\${$3+set}\"" = set; then : |
|
|
1436 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
1456 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
1437 | $as_echo_n "checking for $2... " >&6; } |
1457 | printf %s "checking for $2... " >&6; } |
1438 | if eval "test \"\${$3+set}\"" = set; then : |
1458 | if eval test \${$3+y} |
1439 | $as_echo_n "(cached) " >&6 |
1459 | then : |
1440 | fi |
1460 | printf %s "(cached) " >&6 |
1441 | eval ac_res=\$$3 |
1461 | else $as_nop |
1442 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
|
|
1443 | $as_echo "$ac_res" >&6; } |
|
|
1444 | else |
|
|
1445 | # Is the header compilable? |
|
|
1446 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 |
|
|
1447 | $as_echo_n "checking $2 usability... " >&6; } |
|
|
1448 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1462 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1449 | /* end confdefs.h. */ |
1463 | /* end confdefs.h. */ |
1450 | $4 |
1464 | $4 |
1451 | #include <$2> |
1465 | #include <$2> |
1452 | _ACEOF |
1466 | _ACEOF |
1453 | if ac_fn_c_try_compile "$LINENO"; then : |
1467 | if ac_fn_c_try_compile "$LINENO" |
1454 | ac_header_compiler=yes |
1468 | then : |
1455 | else |
1469 | eval "$3=yes" |
1456 | ac_header_compiler=no |
1470 | else $as_nop |
|
|
1471 | eval "$3=no" |
1457 | fi |
1472 | fi |
1458 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
1473 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
1459 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 |
|
|
1460 | $as_echo "$ac_header_compiler" >&6; } |
|
|
1461 | |
|
|
1462 | # Is the header present? |
|
|
1463 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 |
|
|
1464 | $as_echo_n "checking $2 presence... " >&6; } |
|
|
1465 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
1466 | /* end confdefs.h. */ |
|
|
1467 | #include <$2> |
|
|
1468 | _ACEOF |
|
|
1469 | if ac_fn_c_try_cpp "$LINENO"; then : |
|
|
1470 | ac_header_preproc=yes |
|
|
1471 | else |
|
|
1472 | ac_header_preproc=no |
|
|
1473 | fi |
|
|
1474 | rm -f conftest.err conftest.i conftest.$ac_ext |
|
|
1475 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 |
|
|
1476 | $as_echo "$ac_header_preproc" >&6; } |
|
|
1477 | |
|
|
1478 | # So? What about this header? |
|
|
1479 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( |
|
|
1480 | yes:no: ) |
|
|
1481 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 |
|
|
1482 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} |
|
|
1483 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 |
|
|
1484 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} |
|
|
1485 | ;; |
|
|
1486 | no:yes:* ) |
|
|
1487 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 |
|
|
1488 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} |
|
|
1489 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 |
|
|
1490 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} |
|
|
1491 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 |
|
|
1492 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} |
|
|
1493 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 |
|
|
1494 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} |
|
|
1495 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 |
|
|
1496 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} |
|
|
1497 | ;; |
|
|
1498 | esac |
|
|
1499 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
|
|
1500 | $as_echo_n "checking for $2... " >&6; } |
|
|
1501 | if eval "test \"\${$3+set}\"" = set; then : |
|
|
1502 | $as_echo_n "(cached) " >&6 |
|
|
1503 | else |
|
|
1504 | eval "$3=\$ac_header_compiler" |
|
|
1505 | fi |
1474 | fi |
1506 | eval ac_res=\$$3 |
1475 | eval ac_res=\$$3 |
1507 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
1476 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
1508 | $as_echo "$ac_res" >&6; } |
1477 | printf "%s\n" "$ac_res" >&6; } |
1509 | fi |
1478 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1510 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
|
|
1511 | |
1479 | |
1512 | } # ac_fn_c_check_header_mongrel |
1480 | } # ac_fn_c_check_header_compile |
1513 | |
1481 | |
1514 | # ac_fn_c_try_run LINENO |
1482 | # ac_fn_c_try_link LINENO |
1515 | # ---------------------- |
1483 | # ----------------------- |
1516 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes |
1484 | # Try to link conftest.$ac_ext, and return whether this succeeded. |
1517 | # that executables *can* be run. |
|
|
1518 | ac_fn_c_try_run () |
1485 | ac_fn_c_try_link () |
1519 | { |
1486 | { |
1520 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
1487 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
|
|
1488 | rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext |
1521 | if { { ac_try="$ac_link" |
1489 | if { { ac_try="$ac_link" |
1522 | case "(($ac_try" in |
1490 | case "(($ac_try" in |
1523 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
1491 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
1524 | *) ac_try_echo=$ac_try;; |
1492 | *) ac_try_echo=$ac_try;; |
1525 | esac |
1493 | esac |
1526 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
1494 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
1527 | $as_echo "$ac_try_echo"; } >&5 |
1495 | printf "%s\n" "$ac_try_echo"; } >&5 |
1528 | (eval "$ac_link") 2>&5 |
|
|
1529 | ac_status=$? |
|
|
1530 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
|
|
1531 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' |
|
|
1532 | { { case "(($ac_try" in |
|
|
1533 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
1534 | *) ac_try_echo=$ac_try;; |
|
|
1535 | esac |
|
|
1536 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
|
|
1537 | $as_echo "$ac_try_echo"; } >&5 |
|
|
1538 | (eval "$ac_try") 2>&5 |
|
|
1539 | ac_status=$? |
|
|
1540 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
|
|
1541 | test $ac_status = 0; }; }; then : |
|
|
1542 | ac_retval=0 |
|
|
1543 | else |
|
|
1544 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
|
|
1545 | $as_echo "$as_me: failed program was:" >&5 |
|
|
1546 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
1547 | |
|
|
1548 | ac_retval=$ac_status |
|
|
1549 | fi |
|
|
1550 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
|
|
1551 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
|
|
1552 | as_fn_set_status $ac_retval |
|
|
1553 | |
|
|
1554 | } # ac_fn_c_try_run |
|
|
1555 | |
|
|
1556 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES |
|
|
1557 | # ------------------------------------------------------- |
|
|
1558 | # Tests whether HEADER exists and can be compiled using the include files in |
|
|
1559 | # INCLUDES, setting the cache variable VAR accordingly. |
|
|
1560 | ac_fn_c_check_header_compile () |
|
|
1561 | { |
|
|
1562 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
|
|
1563 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
|
|
1564 | $as_echo_n "checking for $2... " >&6; } |
|
|
1565 | if eval "test \"\${$3+set}\"" = set; then : |
|
|
1566 | $as_echo_n "(cached) " >&6 |
|
|
1567 | else |
|
|
1568 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
1569 | /* end confdefs.h. */ |
|
|
1570 | $4 |
|
|
1571 | #include <$2> |
|
|
1572 | _ACEOF |
|
|
1573 | if ac_fn_c_try_compile "$LINENO"; then : |
|
|
1574 | eval "$3=yes" |
|
|
1575 | else |
|
|
1576 | eval "$3=no" |
|
|
1577 | fi |
|
|
1578 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
1579 | fi |
|
|
1580 | eval ac_res=\$$3 |
|
|
1581 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
|
|
1582 | $as_echo "$ac_res" >&6; } |
|
|
1583 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
|
|
1584 | |
|
|
1585 | } # ac_fn_c_check_header_compile |
|
|
1586 | |
|
|
1587 | # ac_fn_c_try_link LINENO |
|
|
1588 | # ----------------------- |
|
|
1589 | # Try to link conftest.$ac_ext, and return whether this succeeded. |
|
|
1590 | ac_fn_c_try_link () |
|
|
1591 | { |
|
|
1592 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
|
|
1593 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
1594 | if { { ac_try="$ac_link" |
|
|
1595 | case "(($ac_try" in |
|
|
1596 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
1597 | *) ac_try_echo=$ac_try;; |
|
|
1598 | esac |
|
|
1599 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
|
|
1600 | $as_echo "$ac_try_echo"; } >&5 |
|
|
1601 | (eval "$ac_link") 2>conftest.err |
1496 | (eval "$ac_link") 2>conftest.err |
1602 | ac_status=$? |
1497 | ac_status=$? |
1603 | if test -s conftest.err; then |
1498 | if test -s conftest.err; then |
1604 | grep -v '^ *+' conftest.err >conftest.er1 |
1499 | grep -v '^ *+' conftest.err >conftest.er1 |
1605 | cat conftest.er1 >&5 |
1500 | cat conftest.er1 >&5 |
1606 | mv -f conftest.er1 conftest.err |
1501 | mv -f conftest.er1 conftest.err |
1607 | fi |
1502 | fi |
1608 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
1503 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
1609 | test $ac_status = 0; } && { |
1504 | test $ac_status = 0; } && { |
1610 | test -z "$ac_c_werror_flag" || |
1505 | test -z "$ac_c_werror_flag" || |
1611 | test ! -s conftest.err |
1506 | test ! -s conftest.err |
1612 | } && test -s conftest$ac_exeext && { |
1507 | } && test -s conftest$ac_exeext && { |
1613 | test "$cross_compiling" = yes || |
1508 | test "$cross_compiling" = yes || |
1614 | $as_test_x conftest$ac_exeext |
1509 | test -x conftest$ac_exeext |
1615 | }; then : |
1510 | } |
|
|
1511 | then : |
1616 | ac_retval=0 |
1512 | ac_retval=0 |
1617 | else |
1513 | else $as_nop |
1618 | $as_echo "$as_me: failed program was:" >&5 |
1514 | printf "%s\n" "$as_me: failed program was:" >&5 |
1619 | sed 's/^/| /' conftest.$ac_ext >&5 |
1515 | sed 's/^/| /' conftest.$ac_ext >&5 |
1620 | |
1516 | |
1621 | ac_retval=1 |
1517 | ac_retval=1 |
1622 | fi |
1518 | fi |
1623 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information |
1519 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information |
1624 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would |
1520 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would |
1625 | # interfere with the next link command; also delete a directory that is |
1521 | # interfere with the next link command; also delete a directory that is |
1626 | # left behind by Apple's compiler. We do this before executing the actions. |
1522 | # left behind by Apple's compiler. We do this before executing the actions. |
1627 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
1523 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
1628 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
1524 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1629 | as_fn_set_status $ac_retval |
1525 | as_fn_set_status $ac_retval |
1630 | |
1526 | |
1631 | } # ac_fn_c_try_link |
1527 | } # ac_fn_c_try_link |
|
|
1528 | ac_configure_args_raw= |
|
|
1529 | for ac_arg |
|
|
1530 | do |
|
|
1531 | case $ac_arg in |
|
|
1532 | *\'*) |
|
|
1533 | ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
|
|
1534 | esac |
|
|
1535 | as_fn_append ac_configure_args_raw " '$ac_arg'" |
|
|
1536 | done |
|
|
1537 | |
|
|
1538 | case $ac_configure_args_raw in |
|
|
1539 | *$as_nl*) |
|
|
1540 | ac_safe_unquote= ;; |
|
|
1541 | *) |
|
|
1542 | ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab. |
|
|
1543 | ac_unsafe_a="$ac_unsafe_z#~" |
|
|
1544 | ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g" |
|
|
1545 | ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;; |
|
|
1546 | esac |
|
|
1547 | |
1632 | cat >config.log <<_ACEOF |
1548 | cat >config.log <<_ACEOF |
1633 | This file contains any messages produced by compilers while |
1549 | This file contains any messages produced by compilers while |
1634 | running configure, to aid debugging if configure makes a mistake. |
1550 | running configure, to aid debugging if configure makes a mistake. |
1635 | |
1551 | |
1636 | It was created by $as_me, which was |
1552 | It was created by $as_me, which was |
1637 | generated by GNU Autoconf 2.67. Invocation command line was |
1553 | generated by GNU Autoconf 2.71. Invocation command line was |
1638 | |
1554 | |
1639 | $ $0 $@ |
1555 | $ $0$ac_configure_args_raw |
1640 | |
1556 | |
1641 | _ACEOF |
1557 | _ACEOF |
1642 | exec 5>>config.log |
1558 | exec 5>>config.log |
1643 | { |
1559 | { |
1644 | cat <<_ASUNAME |
1560 | cat <<_ASUNAME |
… | |
… | |
1667 | |
1583 | |
1668 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1584 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1669 | for as_dir in $PATH |
1585 | for as_dir in $PATH |
1670 | do |
1586 | do |
1671 | IFS=$as_save_IFS |
1587 | IFS=$as_save_IFS |
1672 | test -z "$as_dir" && as_dir=. |
1588 | case $as_dir in #((( |
1673 | $as_echo "PATH: $as_dir" |
1589 | '') as_dir=./ ;; |
|
|
1590 | */) ;; |
|
|
1591 | *) as_dir=$as_dir/ ;; |
|
|
1592 | esac |
|
|
1593 | printf "%s\n" "PATH: $as_dir" |
1674 | done |
1594 | done |
1675 | IFS=$as_save_IFS |
1595 | IFS=$as_save_IFS |
1676 | |
1596 | |
1677 | } >&5 |
1597 | } >&5 |
1678 | |
1598 | |
… | |
… | |
1703 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
1623 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
1704 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
1624 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
1705 | | -silent | --silent | --silen | --sile | --sil) |
1625 | | -silent | --silent | --silen | --sile | --sil) |
1706 | continue ;; |
1626 | continue ;; |
1707 | *\'*) |
1627 | *\'*) |
1708 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
1628 | ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
1709 | esac |
1629 | esac |
1710 | case $ac_pass in |
1630 | case $ac_pass in |
1711 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; |
1631 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; |
1712 | 2) |
1632 | 2) |
1713 | as_fn_append ac_configure_args1 " '$ac_arg'" |
1633 | as_fn_append ac_configure_args1 " '$ac_arg'" |
… | |
… | |
1738 | # config.log. We remove comments because anyway the quotes in there |
1658 | # config.log. We remove comments because anyway the quotes in there |
1739 | # would cause problems or look ugly. |
1659 | # would cause problems or look ugly. |
1740 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
1660 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
1741 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. |
1661 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. |
1742 | trap 'exit_status=$? |
1662 | trap 'exit_status=$? |
|
|
1663 | # Sanitize IFS. |
|
|
1664 | IFS=" "" $as_nl" |
1743 | # Save into config.log some information that might help in debugging. |
1665 | # Save into config.log some information that might help in debugging. |
1744 | { |
1666 | { |
1745 | echo |
1667 | echo |
1746 | |
1668 | |
1747 | $as_echo "## ---------------- ## |
1669 | printf "%s\n" "## ---------------- ## |
1748 | ## Cache variables. ## |
1670 | ## Cache variables. ## |
1749 | ## ---------------- ##" |
1671 | ## ---------------- ##" |
1750 | echo |
1672 | echo |
1751 | # The following way of writing the cache mishandles newlines in values, |
1673 | # The following way of writing the cache mishandles newlines in values, |
1752 | ( |
1674 | ( |
1753 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do |
1675 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do |
1754 | eval ac_val=\$$ac_var |
1676 | eval ac_val=\$$ac_var |
1755 | case $ac_val in #( |
1677 | case $ac_val in #( |
1756 | *${as_nl}*) |
1678 | *${as_nl}*) |
1757 | case $ac_var in #( |
1679 | case $ac_var in #( |
1758 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
1680 | *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
1759 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
1681 | printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
1760 | esac |
1682 | esac |
1761 | case $ac_var in #( |
1683 | case $ac_var in #( |
1762 | _ | IFS | as_nl) ;; #( |
1684 | _ | IFS | as_nl) ;; #( |
1763 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
1685 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
1764 | *) { eval $ac_var=; unset $ac_var;} ;; |
1686 | *) { eval $ac_var=; unset $ac_var;} ;; |
… | |
… | |
1778 | esac | |
1700 | esac | |
1779 | sort |
1701 | sort |
1780 | ) |
1702 | ) |
1781 | echo |
1703 | echo |
1782 | |
1704 | |
1783 | $as_echo "## ----------------- ## |
1705 | printf "%s\n" "## ----------------- ## |
1784 | ## Output variables. ## |
1706 | ## Output variables. ## |
1785 | ## ----------------- ##" |
1707 | ## ----------------- ##" |
1786 | echo |
1708 | echo |
1787 | for ac_var in $ac_subst_vars |
1709 | for ac_var in $ac_subst_vars |
1788 | do |
1710 | do |
1789 | eval ac_val=\$$ac_var |
1711 | eval ac_val=\$$ac_var |
1790 | case $ac_val in |
1712 | case $ac_val in |
1791 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
1713 | *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
1792 | esac |
1714 | esac |
1793 | $as_echo "$ac_var='\''$ac_val'\''" |
1715 | printf "%s\n" "$ac_var='\''$ac_val'\''" |
1794 | done | sort |
1716 | done | sort |
1795 | echo |
1717 | echo |
1796 | |
1718 | |
1797 | if test -n "$ac_subst_files"; then |
1719 | if test -n "$ac_subst_files"; then |
1798 | $as_echo "## ------------------- ## |
1720 | printf "%s\n" "## ------------------- ## |
1799 | ## File substitutions. ## |
1721 | ## File substitutions. ## |
1800 | ## ------------------- ##" |
1722 | ## ------------------- ##" |
1801 | echo |
1723 | echo |
1802 | for ac_var in $ac_subst_files |
1724 | for ac_var in $ac_subst_files |
1803 | do |
1725 | do |
1804 | eval ac_val=\$$ac_var |
1726 | eval ac_val=\$$ac_var |
1805 | case $ac_val in |
1727 | case $ac_val in |
1806 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
1728 | *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
1807 | esac |
1729 | esac |
1808 | $as_echo "$ac_var='\''$ac_val'\''" |
1730 | printf "%s\n" "$ac_var='\''$ac_val'\''" |
1809 | done | sort |
1731 | done | sort |
1810 | echo |
1732 | echo |
1811 | fi |
1733 | fi |
1812 | |
1734 | |
1813 | if test -s confdefs.h; then |
1735 | if test -s confdefs.h; then |
1814 | $as_echo "## ----------- ## |
1736 | printf "%s\n" "## ----------- ## |
1815 | ## confdefs.h. ## |
1737 | ## confdefs.h. ## |
1816 | ## ----------- ##" |
1738 | ## ----------- ##" |
1817 | echo |
1739 | echo |
1818 | cat confdefs.h |
1740 | cat confdefs.h |
1819 | echo |
1741 | echo |
1820 | fi |
1742 | fi |
1821 | test "$ac_signal" != 0 && |
1743 | test "$ac_signal" != 0 && |
1822 | $as_echo "$as_me: caught signal $ac_signal" |
1744 | printf "%s\n" "$as_me: caught signal $ac_signal" |
1823 | $as_echo "$as_me: exit $exit_status" |
1745 | printf "%s\n" "$as_me: exit $exit_status" |
1824 | } >&5 |
1746 | } >&5 |
1825 | rm -f core *.core core.conftest.* && |
1747 | rm -f core *.core core.conftest.* && |
1826 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && |
1748 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && |
1827 | exit $exit_status |
1749 | exit $exit_status |
1828 | ' 0 |
1750 | ' 0 |
… | |
… | |
1832 | ac_signal=0 |
1754 | ac_signal=0 |
1833 | |
1755 | |
1834 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
1756 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
1835 | rm -f -r conftest* confdefs.h |
1757 | rm -f -r conftest* confdefs.h |
1836 | |
1758 | |
1837 | $as_echo "/* confdefs.h */" > confdefs.h |
1759 | printf "%s\n" "/* confdefs.h */" > confdefs.h |
1838 | |
1760 | |
1839 | # Predefined preprocessor variables. |
1761 | # Predefined preprocessor variables. |
1840 | |
1762 | |
1841 | cat >>confdefs.h <<_ACEOF |
1763 | printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h |
1842 | #define PACKAGE_NAME "$PACKAGE_NAME" |
|
|
1843 | _ACEOF |
|
|
1844 | |
1764 | |
1845 | cat >>confdefs.h <<_ACEOF |
1765 | printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h |
1846 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
|
|
1847 | _ACEOF |
|
|
1848 | |
1766 | |
1849 | cat >>confdefs.h <<_ACEOF |
1767 | printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h |
1850 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
|
|
1851 | _ACEOF |
|
|
1852 | |
1768 | |
1853 | cat >>confdefs.h <<_ACEOF |
1769 | printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h |
1854 | #define PACKAGE_STRING "$PACKAGE_STRING" |
|
|
1855 | _ACEOF |
|
|
1856 | |
1770 | |
1857 | cat >>confdefs.h <<_ACEOF |
1771 | printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h |
1858 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
|
|
1859 | _ACEOF |
|
|
1860 | |
1772 | |
1861 | cat >>confdefs.h <<_ACEOF |
1773 | printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h |
1862 | #define PACKAGE_URL "$PACKAGE_URL" |
|
|
1863 | _ACEOF |
|
|
1864 | |
1774 | |
1865 | |
1775 | |
1866 | # Let the site file select an alternate cache file if it wants to. |
1776 | # Let the site file select an alternate cache file if it wants to. |
1867 | # Prefer an explicitly selected file to automatically selected ones. |
1777 | # Prefer an explicitly selected file to automatically selected ones. |
1868 | ac_site_file1=NONE |
|
|
1869 | ac_site_file2=NONE |
|
|
1870 | if test -n "$CONFIG_SITE"; then |
1778 | if test -n "$CONFIG_SITE"; then |
1871 | # We do not want a PATH search for config.site. |
|
|
1872 | case $CONFIG_SITE in #(( |
|
|
1873 | -*) ac_site_file1=./$CONFIG_SITE;; |
|
|
1874 | */*) ac_site_file1=$CONFIG_SITE;; |
1779 | ac_site_files="$CONFIG_SITE" |
1875 | *) ac_site_file1=./$CONFIG_SITE;; |
|
|
1876 | esac |
|
|
1877 | elif test "x$prefix" != xNONE; then |
1780 | elif test "x$prefix" != xNONE; then |
1878 | ac_site_file1=$prefix/share/config.site |
1781 | ac_site_files="$prefix/share/config.site $prefix/etc/config.site" |
1879 | ac_site_file2=$prefix/etc/config.site |
|
|
1880 | else |
1782 | else |
1881 | ac_site_file1=$ac_default_prefix/share/config.site |
1783 | ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" |
1882 | ac_site_file2=$ac_default_prefix/etc/config.site |
|
|
1883 | fi |
1784 | fi |
|
|
1785 | |
1884 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" |
1786 | for ac_site_file in $ac_site_files |
1885 | do |
1787 | do |
1886 | test "x$ac_site_file" = xNONE && continue |
1788 | case $ac_site_file in #( |
|
|
1789 | */*) : |
|
|
1790 | ;; #( |
|
|
1791 | *) : |
|
|
1792 | ac_site_file=./$ac_site_file ;; |
|
|
1793 | esac |
1887 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then |
1794 | if test -f "$ac_site_file" && test -r "$ac_site_file"; then |
1888 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 |
1795 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 |
1889 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} |
1796 | printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;} |
1890 | sed 's/^/| /' "$ac_site_file" >&5 |
1797 | sed 's/^/| /' "$ac_site_file" >&5 |
1891 | . "$ac_site_file" \ |
1798 | . "$ac_site_file" \ |
1892 | || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
1799 | || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
1893 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
1800 | printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} |
1894 | as_fn_error $? "failed to load site script $ac_site_file |
1801 | as_fn_error $? "failed to load site script $ac_site_file |
1895 | See \`config.log' for more details" "$LINENO" 5 ; } |
1802 | See \`config.log' for more details" "$LINENO" 5; } |
1896 | fi |
1803 | fi |
1897 | done |
1804 | done |
1898 | |
1805 | |
1899 | if test -r "$cache_file"; then |
1806 | if test -r "$cache_file"; then |
1900 | # Some versions of bash will fail to source /dev/null (special files |
1807 | # Some versions of bash will fail to source /dev/null (special files |
1901 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. |
1808 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. |
1902 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then |
1809 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then |
1903 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
1810 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
1904 | $as_echo "$as_me: loading cache $cache_file" >&6;} |
1811 | printf "%s\n" "$as_me: loading cache $cache_file" >&6;} |
1905 | case $cache_file in |
1812 | case $cache_file in |
1906 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
1813 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
1907 | *) . "./$cache_file";; |
1814 | *) . "./$cache_file";; |
1908 | esac |
1815 | esac |
1909 | fi |
1816 | fi |
1910 | else |
1817 | else |
1911 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 |
1818 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 |
1912 | $as_echo "$as_me: creating cache $cache_file" >&6;} |
1819 | printf "%s\n" "$as_me: creating cache $cache_file" >&6;} |
1913 | >$cache_file |
1820 | >$cache_file |
1914 | fi |
1821 | fi |
1915 | |
1822 | |
|
|
1823 | as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H" |
|
|
1824 | # Test code for whether the C compiler supports C89 (global declarations) |
|
|
1825 | ac_c_conftest_c89_globals=' |
|
|
1826 | /* Does the compiler advertise C89 conformance? |
|
|
1827 | Do not test the value of __STDC__, because some compilers set it to 0 |
|
|
1828 | while being otherwise adequately conformant. */ |
|
|
1829 | #if !defined __STDC__ |
|
|
1830 | # error "Compiler does not advertise C89 conformance" |
|
|
1831 | #endif |
|
|
1832 | |
|
|
1833 | #include <stddef.h> |
|
|
1834 | #include <stdarg.h> |
|
|
1835 | struct stat; |
|
|
1836 | /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */ |
|
|
1837 | struct buf { int x; }; |
|
|
1838 | struct buf * (*rcsopen) (struct buf *, struct stat *, int); |
|
|
1839 | static char *e (p, i) |
|
|
1840 | char **p; |
|
|
1841 | int i; |
|
|
1842 | { |
|
|
1843 | return p[i]; |
|
|
1844 | } |
|
|
1845 | static char *f (char * (*g) (char **, int), char **p, ...) |
|
|
1846 | { |
|
|
1847 | char *s; |
|
|
1848 | va_list v; |
|
|
1849 | va_start (v,p); |
|
|
1850 | s = g (p, va_arg (v,int)); |
|
|
1851 | va_end (v); |
|
|
1852 | return s; |
|
|
1853 | } |
|
|
1854 | |
|
|
1855 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
|
|
1856 | function prototypes and stuff, but not \xHH hex character constants. |
|
|
1857 | These do not provoke an error unfortunately, instead are silently treated |
|
|
1858 | as an "x". The following induces an error, until -std is added to get |
|
|
1859 | proper ANSI mode. Curiously \x00 != x always comes out true, for an |
|
|
1860 | array size at least. It is necessary to write \x00 == 0 to get something |
|
|
1861 | that is true only with -std. */ |
|
|
1862 | int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1]; |
|
|
1863 | |
|
|
1864 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
|
|
1865 | inside strings and character constants. */ |
|
|
1866 | #define FOO(x) '\''x'\'' |
|
|
1867 | int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1]; |
|
|
1868 | |
|
|
1869 | int test (int i, double x); |
|
|
1870 | struct s1 {int (*f) (int a);}; |
|
|
1871 | struct s2 {int (*f) (double a);}; |
|
|
1872 | int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int), |
|
|
1873 | int, int);' |
|
|
1874 | |
|
|
1875 | # Test code for whether the C compiler supports C89 (body of main). |
|
|
1876 | ac_c_conftest_c89_main=' |
|
|
1877 | ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]); |
|
|
1878 | ' |
|
|
1879 | |
|
|
1880 | # Test code for whether the C compiler supports C99 (global declarations) |
|
|
1881 | ac_c_conftest_c99_globals=' |
|
|
1882 | // Does the compiler advertise C99 conformance? |
|
|
1883 | #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L |
|
|
1884 | # error "Compiler does not advertise C99 conformance" |
|
|
1885 | #endif |
|
|
1886 | |
|
|
1887 | #include <stdbool.h> |
|
|
1888 | extern int puts (const char *); |
|
|
1889 | extern int printf (const char *, ...); |
|
|
1890 | extern int dprintf (int, const char *, ...); |
|
|
1891 | extern void *malloc (size_t); |
|
|
1892 | |
|
|
1893 | // Check varargs macros. These examples are taken from C99 6.10.3.5. |
|
|
1894 | // dprintf is used instead of fprintf to avoid needing to declare |
|
|
1895 | // FILE and stderr. |
|
|
1896 | #define debug(...) dprintf (2, __VA_ARGS__) |
|
|
1897 | #define showlist(...) puts (#__VA_ARGS__) |
|
|
1898 | #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) |
|
|
1899 | static void |
|
|
1900 | test_varargs_macros (void) |
|
|
1901 | { |
|
|
1902 | int x = 1234; |
|
|
1903 | int y = 5678; |
|
|
1904 | debug ("Flag"); |
|
|
1905 | debug ("X = %d\n", x); |
|
|
1906 | showlist (The first, second, and third items.); |
|
|
1907 | report (x>y, "x is %d but y is %d", x, y); |
|
|
1908 | } |
|
|
1909 | |
|
|
1910 | // Check long long types. |
|
|
1911 | #define BIG64 18446744073709551615ull |
|
|
1912 | #define BIG32 4294967295ul |
|
|
1913 | #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) |
|
|
1914 | #if !BIG_OK |
|
|
1915 | #error "your preprocessor is broken" |
|
|
1916 | #endif |
|
|
1917 | #if BIG_OK |
|
|
1918 | #else |
|
|
1919 | #error "your preprocessor is broken" |
|
|
1920 | #endif |
|
|
1921 | static long long int bignum = -9223372036854775807LL; |
|
|
1922 | static unsigned long long int ubignum = BIG64; |
|
|
1923 | |
|
|
1924 | struct incomplete_array |
|
|
1925 | { |
|
|
1926 | int datasize; |
|
|
1927 | double data[]; |
|
|
1928 | }; |
|
|
1929 | |
|
|
1930 | struct named_init { |
|
|
1931 | int number; |
|
|
1932 | const wchar_t *name; |
|
|
1933 | double average; |
|
|
1934 | }; |
|
|
1935 | |
|
|
1936 | typedef const char *ccp; |
|
|
1937 | |
|
|
1938 | static inline int |
|
|
1939 | test_restrict (ccp restrict text) |
|
|
1940 | { |
|
|
1941 | // See if C++-style comments work. |
|
|
1942 | // Iterate through items via the restricted pointer. |
|
|
1943 | // Also check for declarations in for loops. |
|
|
1944 | for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i) |
|
|
1945 | continue; |
|
|
1946 | return 0; |
|
|
1947 | } |
|
|
1948 | |
|
|
1949 | // Check varargs and va_copy. |
|
|
1950 | static bool |
|
|
1951 | test_varargs (const char *format, ...) |
|
|
1952 | { |
|
|
1953 | va_list args; |
|
|
1954 | va_start (args, format); |
|
|
1955 | va_list args_copy; |
|
|
1956 | va_copy (args_copy, args); |
|
|
1957 | |
|
|
1958 | const char *str = ""; |
|
|
1959 | int number = 0; |
|
|
1960 | float fnumber = 0; |
|
|
1961 | |
|
|
1962 | while (*format) |
|
|
1963 | { |
|
|
1964 | switch (*format++) |
|
|
1965 | { |
|
|
1966 | case '\''s'\'': // string |
|
|
1967 | str = va_arg (args_copy, const char *); |
|
|
1968 | break; |
|
|
1969 | case '\''d'\'': // int |
|
|
1970 | number = va_arg (args_copy, int); |
|
|
1971 | break; |
|
|
1972 | case '\''f'\'': // float |
|
|
1973 | fnumber = va_arg (args_copy, double); |
|
|
1974 | break; |
|
|
1975 | default: |
|
|
1976 | break; |
|
|
1977 | } |
|
|
1978 | } |
|
|
1979 | va_end (args_copy); |
|
|
1980 | va_end (args); |
|
|
1981 | |
|
|
1982 | return *str && number && fnumber; |
|
|
1983 | } |
|
|
1984 | ' |
|
|
1985 | |
|
|
1986 | # Test code for whether the C compiler supports C99 (body of main). |
|
|
1987 | ac_c_conftest_c99_main=' |
|
|
1988 | // Check bool. |
|
|
1989 | _Bool success = false; |
|
|
1990 | success |= (argc != 0); |
|
|
1991 | |
|
|
1992 | // Check restrict. |
|
|
1993 | if (test_restrict ("String literal") == 0) |
|
|
1994 | success = true; |
|
|
1995 | char *restrict newvar = "Another string"; |
|
|
1996 | |
|
|
1997 | // Check varargs. |
|
|
1998 | success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234); |
|
|
1999 | test_varargs_macros (); |
|
|
2000 | |
|
|
2001 | // Check flexible array members. |
|
|
2002 | struct incomplete_array *ia = |
|
|
2003 | malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); |
|
|
2004 | ia->datasize = 10; |
|
|
2005 | for (int i = 0; i < ia->datasize; ++i) |
|
|
2006 | ia->data[i] = i * 1.234; |
|
|
2007 | |
|
|
2008 | // Check named initializers. |
|
|
2009 | struct named_init ni = { |
|
|
2010 | .number = 34, |
|
|
2011 | .name = L"Test wide string", |
|
|
2012 | .average = 543.34343, |
|
|
2013 | }; |
|
|
2014 | |
|
|
2015 | ni.number = 58; |
|
|
2016 | |
|
|
2017 | int dynamic_array[ni.number]; |
|
|
2018 | dynamic_array[0] = argv[0][0]; |
|
|
2019 | dynamic_array[ni.number - 1] = 543; |
|
|
2020 | |
|
|
2021 | // work around unused variable warnings |
|
|
2022 | ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\'' |
|
|
2023 | || dynamic_array[ni.number - 1] != 543); |
|
|
2024 | ' |
|
|
2025 | |
|
|
2026 | # Test code for whether the C compiler supports C11 (global declarations) |
|
|
2027 | ac_c_conftest_c11_globals=' |
|
|
2028 | // Does the compiler advertise C11 conformance? |
|
|
2029 | #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L |
|
|
2030 | # error "Compiler does not advertise C11 conformance" |
|
|
2031 | #endif |
|
|
2032 | |
|
|
2033 | // Check _Alignas. |
|
|
2034 | char _Alignas (double) aligned_as_double; |
|
|
2035 | char _Alignas (0) no_special_alignment; |
|
|
2036 | extern char aligned_as_int; |
|
|
2037 | char _Alignas (0) _Alignas (int) aligned_as_int; |
|
|
2038 | |
|
|
2039 | // Check _Alignof. |
|
|
2040 | enum |
|
|
2041 | { |
|
|
2042 | int_alignment = _Alignof (int), |
|
|
2043 | int_array_alignment = _Alignof (int[100]), |
|
|
2044 | char_alignment = _Alignof (char) |
|
|
2045 | }; |
|
|
2046 | _Static_assert (0 < -_Alignof (int), "_Alignof is signed"); |
|
|
2047 | |
|
|
2048 | // Check _Noreturn. |
|
|
2049 | int _Noreturn does_not_return (void) { for (;;) continue; } |
|
|
2050 | |
|
|
2051 | // Check _Static_assert. |
|
|
2052 | struct test_static_assert |
|
|
2053 | { |
|
|
2054 | int x; |
|
|
2055 | _Static_assert (sizeof (int) <= sizeof (long int), |
|
|
2056 | "_Static_assert does not work in struct"); |
|
|
2057 | long int y; |
|
|
2058 | }; |
|
|
2059 | |
|
|
2060 | // Check UTF-8 literals. |
|
|
2061 | #define u8 syntax error! |
|
|
2062 | char const utf8_literal[] = u8"happens to be ASCII" "another string"; |
|
|
2063 | |
|
|
2064 | // Check duplicate typedefs. |
|
|
2065 | typedef long *long_ptr; |
|
|
2066 | typedef long int *long_ptr; |
|
|
2067 | typedef long_ptr long_ptr; |
|
|
2068 | |
|
|
2069 | // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1. |
|
|
2070 | struct anonymous |
|
|
2071 | { |
|
|
2072 | union { |
|
|
2073 | struct { int i; int j; }; |
|
|
2074 | struct { int k; long int l; } w; |
|
|
2075 | }; |
|
|
2076 | int m; |
|
|
2077 | } v1; |
|
|
2078 | ' |
|
|
2079 | |
|
|
2080 | # Test code for whether the C compiler supports C11 (body of main). |
|
|
2081 | ac_c_conftest_c11_main=' |
|
|
2082 | _Static_assert ((offsetof (struct anonymous, i) |
|
|
2083 | == offsetof (struct anonymous, w.k)), |
|
|
2084 | "Anonymous union alignment botch"); |
|
|
2085 | v1.i = 2; |
|
|
2086 | v1.w.k = 5; |
|
|
2087 | ok |= v1.i != 5; |
|
|
2088 | ' |
|
|
2089 | |
|
|
2090 | # Test code for whether the C compiler supports C11 (complete). |
|
|
2091 | ac_c_conftest_c11_program="${ac_c_conftest_c89_globals} |
|
|
2092 | ${ac_c_conftest_c99_globals} |
|
|
2093 | ${ac_c_conftest_c11_globals} |
|
|
2094 | |
|
|
2095 | int |
|
|
2096 | main (int argc, char **argv) |
|
|
2097 | { |
|
|
2098 | int ok = 0; |
|
|
2099 | ${ac_c_conftest_c89_main} |
|
|
2100 | ${ac_c_conftest_c99_main} |
|
|
2101 | ${ac_c_conftest_c11_main} |
|
|
2102 | return ok; |
|
|
2103 | } |
|
|
2104 | " |
|
|
2105 | |
|
|
2106 | # Test code for whether the C compiler supports C99 (complete). |
|
|
2107 | ac_c_conftest_c99_program="${ac_c_conftest_c89_globals} |
|
|
2108 | ${ac_c_conftest_c99_globals} |
|
|
2109 | |
|
|
2110 | int |
|
|
2111 | main (int argc, char **argv) |
|
|
2112 | { |
|
|
2113 | int ok = 0; |
|
|
2114 | ${ac_c_conftest_c89_main} |
|
|
2115 | ${ac_c_conftest_c99_main} |
|
|
2116 | return ok; |
|
|
2117 | } |
|
|
2118 | " |
|
|
2119 | |
|
|
2120 | # Test code for whether the C compiler supports C89 (complete). |
|
|
2121 | ac_c_conftest_c89_program="${ac_c_conftest_c89_globals} |
|
|
2122 | |
|
|
2123 | int |
|
|
2124 | main (int argc, char **argv) |
|
|
2125 | { |
|
|
2126 | int ok = 0; |
|
|
2127 | ${ac_c_conftest_c89_main} |
|
|
2128 | return ok; |
|
|
2129 | } |
|
|
2130 | " |
|
|
2131 | |
|
|
2132 | as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H" |
|
|
2133 | as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H" |
|
|
2134 | as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H" |
|
|
2135 | as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H" |
|
|
2136 | as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H" |
|
|
2137 | as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H" |
|
|
2138 | as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H" |
|
|
2139 | as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H" |
|
|
2140 | as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H" |
|
|
2141 | as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H" |
1916 | # Check that the precious variables saved in the cache have kept the same |
2142 | # Check that the precious variables saved in the cache have kept the same |
1917 | # value. |
2143 | # value. |
1918 | ac_cache_corrupted=false |
2144 | ac_cache_corrupted=false |
1919 | for ac_var in $ac_precious_vars; do |
2145 | for ac_var in $ac_precious_vars; do |
1920 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
2146 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
1921 | eval ac_new_set=\$ac_env_${ac_var}_set |
2147 | eval ac_new_set=\$ac_env_${ac_var}_set |
1922 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
2148 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
1923 | eval ac_new_val=\$ac_env_${ac_var}_value |
2149 | eval ac_new_val=\$ac_env_${ac_var}_value |
1924 | case $ac_old_set,$ac_new_set in |
2150 | case $ac_old_set,$ac_new_set in |
1925 | set,) |
2151 | set,) |
1926 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
2152 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
1927 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
2153 | printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
1928 | ac_cache_corrupted=: ;; |
2154 | ac_cache_corrupted=: ;; |
1929 | ,set) |
2155 | ,set) |
1930 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 |
2156 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 |
1931 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
2157 | printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
1932 | ac_cache_corrupted=: ;; |
2158 | ac_cache_corrupted=: ;; |
1933 | ,);; |
2159 | ,);; |
1934 | *) |
2160 | *) |
1935 | if test "x$ac_old_val" != "x$ac_new_val"; then |
2161 | if test "x$ac_old_val" != "x$ac_new_val"; then |
1936 | # differences in whitespace do not lead to failure. |
2162 | # differences in whitespace do not lead to failure. |
1937 | ac_old_val_w=`echo x $ac_old_val` |
2163 | ac_old_val_w=`echo x $ac_old_val` |
1938 | ac_new_val_w=`echo x $ac_new_val` |
2164 | ac_new_val_w=`echo x $ac_new_val` |
1939 | if test "$ac_old_val_w" != "$ac_new_val_w"; then |
2165 | if test "$ac_old_val_w" != "$ac_new_val_w"; then |
1940 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 |
2166 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 |
1941 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
2167 | printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
1942 | ac_cache_corrupted=: |
2168 | ac_cache_corrupted=: |
1943 | else |
2169 | else |
1944 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 |
2170 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 |
1945 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} |
2171 | printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} |
1946 | eval $ac_var=\$ac_old_val |
2172 | eval $ac_var=\$ac_old_val |
1947 | fi |
2173 | fi |
1948 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 |
2174 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 |
1949 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} |
2175 | printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;} |
1950 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 |
2176 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 |
1951 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} |
2177 | printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;} |
1952 | fi;; |
2178 | fi;; |
1953 | esac |
2179 | esac |
1954 | # Pass precious variables to config.status. |
2180 | # Pass precious variables to config.status. |
1955 | if test "$ac_new_set" = set; then |
2181 | if test "$ac_new_set" = set; then |
1956 | case $ac_new_val in |
2182 | case $ac_new_val in |
1957 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
2183 | *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
1958 | *) ac_arg=$ac_var=$ac_new_val ;; |
2184 | *) ac_arg=$ac_var=$ac_new_val ;; |
1959 | esac |
2185 | esac |
1960 | case " $ac_configure_args " in |
2186 | case " $ac_configure_args " in |
1961 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
2187 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
1962 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; |
2188 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; |
1963 | esac |
2189 | esac |
1964 | fi |
2190 | fi |
1965 | done |
2191 | done |
1966 | if $ac_cache_corrupted; then |
2192 | if $ac_cache_corrupted; then |
1967 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
2193 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
1968 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
2194 | printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} |
1969 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 |
2195 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 |
1970 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
2196 | printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;} |
1971 | as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 |
2197 | as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file' |
|
|
2198 | and start over" "$LINENO" 5 |
1972 | fi |
2199 | fi |
1973 | ## -------------------- ## |
2200 | ## -------------------- ## |
1974 | ## Main body of script. ## |
2201 | ## Main body of script. ## |
1975 | ## -------------------- ## |
2202 | ## -------------------- ## |
1976 | |
2203 | |
… | |
… | |
1980 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
2207 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
1981 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
2208 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
1982 | |
2209 | |
1983 | |
2210 | |
1984 | |
2211 | |
1985 | ac_config_headers="$ac_config_headers libeio/config.h" |
2212 | ac_config_headers="$ac_config_headers config.h" |
|
|
2213 | |
|
|
2214 | |
|
|
2215 | |
|
|
2216 | |
|
|
2217 | |
|
|
2218 | |
|
|
2219 | |
|
|
2220 | |
|
|
2221 | |
|
|
2222 | |
1986 | |
2223 | |
1987 | |
2224 | |
1988 | ac_ext=c |
2225 | ac_ext=c |
1989 | ac_cpp='$CPP $CPPFLAGS' |
2226 | ac_cpp='$CPP $CPPFLAGS' |
1990 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
2227 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
1991 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
2228 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
1992 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
2229 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
1993 | if test -n "$ac_tool_prefix"; then |
2230 | if test -n "$ac_tool_prefix"; then |
1994 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
2231 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
1995 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
2232 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
1996 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2233 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
1997 | $as_echo_n "checking for $ac_word... " >&6; } |
2234 | printf %s "checking for $ac_word... " >&6; } |
1998 | if test "${ac_cv_prog_CC+set}" = set; then : |
2235 | if test ${ac_cv_prog_CC+y} |
1999 | $as_echo_n "(cached) " >&6 |
2236 | then : |
2000 | else |
2237 | printf %s "(cached) " >&6 |
|
|
2238 | else $as_nop |
2001 | if test -n "$CC"; then |
2239 | if test -n "$CC"; then |
2002 | ac_cv_prog_CC="$CC" # Let the user override the test. |
2240 | ac_cv_prog_CC="$CC" # Let the user override the test. |
2003 | else |
2241 | else |
2004 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2242 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2005 | for as_dir in $PATH |
2243 | for as_dir in $PATH |
2006 | do |
2244 | do |
2007 | IFS=$as_save_IFS |
2245 | IFS=$as_save_IFS |
2008 | test -z "$as_dir" && as_dir=. |
2246 | case $as_dir in #((( |
|
|
2247 | '') as_dir=./ ;; |
|
|
2248 | */) ;; |
|
|
2249 | *) as_dir=$as_dir/ ;; |
|
|
2250 | esac |
2009 | for ac_exec_ext in '' $ac_executable_extensions; do |
2251 | for ac_exec_ext in '' $ac_executable_extensions; do |
2010 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
2252 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
2011 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
2253 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
2012 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2254 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
2013 | break 2 |
2255 | break 2 |
2014 | fi |
2256 | fi |
2015 | done |
2257 | done |
2016 | done |
2258 | done |
2017 | IFS=$as_save_IFS |
2259 | IFS=$as_save_IFS |
2018 | |
2260 | |
2019 | fi |
2261 | fi |
2020 | fi |
2262 | fi |
2021 | CC=$ac_cv_prog_CC |
2263 | CC=$ac_cv_prog_CC |
2022 | if test -n "$CC"; then |
2264 | if test -n "$CC"; then |
2023 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
2265 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
2024 | $as_echo "$CC" >&6; } |
2266 | printf "%s\n" "$CC" >&6; } |
2025 | else |
2267 | else |
2026 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2268 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2027 | $as_echo "no" >&6; } |
2269 | printf "%s\n" "no" >&6; } |
2028 | fi |
2270 | fi |
2029 | |
2271 | |
2030 | |
2272 | |
2031 | fi |
2273 | fi |
2032 | if test -z "$ac_cv_prog_CC"; then |
2274 | if test -z "$ac_cv_prog_CC"; then |
2033 | ac_ct_CC=$CC |
2275 | ac_ct_CC=$CC |
2034 | # Extract the first word of "gcc", so it can be a program name with args. |
2276 | # Extract the first word of "gcc", so it can be a program name with args. |
2035 | set dummy gcc; ac_word=$2 |
2277 | set dummy gcc; ac_word=$2 |
2036 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2278 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2037 | $as_echo_n "checking for $ac_word... " >&6; } |
2279 | printf %s "checking for $ac_word... " >&6; } |
2038 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : |
2280 | if test ${ac_cv_prog_ac_ct_CC+y} |
2039 | $as_echo_n "(cached) " >&6 |
2281 | then : |
2040 | else |
2282 | printf %s "(cached) " >&6 |
|
|
2283 | else $as_nop |
2041 | if test -n "$ac_ct_CC"; then |
2284 | if test -n "$ac_ct_CC"; then |
2042 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
2285 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
2043 | else |
2286 | else |
2044 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2287 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2045 | for as_dir in $PATH |
2288 | for as_dir in $PATH |
2046 | do |
2289 | do |
2047 | IFS=$as_save_IFS |
2290 | IFS=$as_save_IFS |
2048 | test -z "$as_dir" && as_dir=. |
2291 | case $as_dir in #((( |
|
|
2292 | '') as_dir=./ ;; |
|
|
2293 | */) ;; |
|
|
2294 | *) as_dir=$as_dir/ ;; |
|
|
2295 | esac |
2049 | for ac_exec_ext in '' $ac_executable_extensions; do |
2296 | for ac_exec_ext in '' $ac_executable_extensions; do |
2050 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
2297 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
2051 | ac_cv_prog_ac_ct_CC="gcc" |
2298 | ac_cv_prog_ac_ct_CC="gcc" |
2052 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2299 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
2053 | break 2 |
2300 | break 2 |
2054 | fi |
2301 | fi |
2055 | done |
2302 | done |
2056 | done |
2303 | done |
2057 | IFS=$as_save_IFS |
2304 | IFS=$as_save_IFS |
2058 | |
2305 | |
2059 | fi |
2306 | fi |
2060 | fi |
2307 | fi |
2061 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
2308 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
2062 | if test -n "$ac_ct_CC"; then |
2309 | if test -n "$ac_ct_CC"; then |
2063 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
2310 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
2064 | $as_echo "$ac_ct_CC" >&6; } |
2311 | printf "%s\n" "$ac_ct_CC" >&6; } |
2065 | else |
2312 | else |
2066 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2313 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2067 | $as_echo "no" >&6; } |
2314 | printf "%s\n" "no" >&6; } |
2068 | fi |
2315 | fi |
2069 | |
2316 | |
2070 | if test "x$ac_ct_CC" = x; then |
2317 | if test "x$ac_ct_CC" = x; then |
2071 | CC="" |
2318 | CC="" |
2072 | else |
2319 | else |
2073 | case $cross_compiling:$ac_tool_warned in |
2320 | case $cross_compiling:$ac_tool_warned in |
2074 | yes:) |
2321 | yes:) |
2075 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
2322 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
2076 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
2323 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
2077 | ac_tool_warned=yes ;; |
2324 | ac_tool_warned=yes ;; |
2078 | esac |
2325 | esac |
2079 | CC=$ac_ct_CC |
2326 | CC=$ac_ct_CC |
2080 | fi |
2327 | fi |
2081 | else |
2328 | else |
… | |
… | |
2084 | |
2331 | |
2085 | if test -z "$CC"; then |
2332 | if test -z "$CC"; then |
2086 | if test -n "$ac_tool_prefix"; then |
2333 | if test -n "$ac_tool_prefix"; then |
2087 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
2334 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
2088 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
2335 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
2089 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2336 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2090 | $as_echo_n "checking for $ac_word... " >&6; } |
2337 | printf %s "checking for $ac_word... " >&6; } |
2091 | if test "${ac_cv_prog_CC+set}" = set; then : |
2338 | if test ${ac_cv_prog_CC+y} |
2092 | $as_echo_n "(cached) " >&6 |
2339 | then : |
2093 | else |
2340 | printf %s "(cached) " >&6 |
|
|
2341 | else $as_nop |
2094 | if test -n "$CC"; then |
2342 | if test -n "$CC"; then |
2095 | ac_cv_prog_CC="$CC" # Let the user override the test. |
2343 | ac_cv_prog_CC="$CC" # Let the user override the test. |
2096 | else |
2344 | else |
2097 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2345 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2098 | for as_dir in $PATH |
2346 | for as_dir in $PATH |
2099 | do |
2347 | do |
2100 | IFS=$as_save_IFS |
2348 | IFS=$as_save_IFS |
2101 | test -z "$as_dir" && as_dir=. |
2349 | case $as_dir in #((( |
|
|
2350 | '') as_dir=./ ;; |
|
|
2351 | */) ;; |
|
|
2352 | *) as_dir=$as_dir/ ;; |
|
|
2353 | esac |
2102 | for ac_exec_ext in '' $ac_executable_extensions; do |
2354 | for ac_exec_ext in '' $ac_executable_extensions; do |
2103 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
2355 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
2104 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
2356 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
2105 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2357 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
2106 | break 2 |
2358 | break 2 |
2107 | fi |
2359 | fi |
2108 | done |
2360 | done |
2109 | done |
2361 | done |
2110 | IFS=$as_save_IFS |
2362 | IFS=$as_save_IFS |
2111 | |
2363 | |
2112 | fi |
2364 | fi |
2113 | fi |
2365 | fi |
2114 | CC=$ac_cv_prog_CC |
2366 | CC=$ac_cv_prog_CC |
2115 | if test -n "$CC"; then |
2367 | if test -n "$CC"; then |
2116 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
2368 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
2117 | $as_echo "$CC" >&6; } |
2369 | printf "%s\n" "$CC" >&6; } |
2118 | else |
2370 | else |
2119 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2371 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2120 | $as_echo "no" >&6; } |
2372 | printf "%s\n" "no" >&6; } |
2121 | fi |
2373 | fi |
2122 | |
2374 | |
2123 | |
2375 | |
2124 | fi |
2376 | fi |
2125 | fi |
2377 | fi |
2126 | if test -z "$CC"; then |
2378 | if test -z "$CC"; then |
2127 | # Extract the first word of "cc", so it can be a program name with args. |
2379 | # Extract the first word of "cc", so it can be a program name with args. |
2128 | set dummy cc; ac_word=$2 |
2380 | set dummy cc; ac_word=$2 |
2129 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2381 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2130 | $as_echo_n "checking for $ac_word... " >&6; } |
2382 | printf %s "checking for $ac_word... " >&6; } |
2131 | if test "${ac_cv_prog_CC+set}" = set; then : |
2383 | if test ${ac_cv_prog_CC+y} |
2132 | $as_echo_n "(cached) " >&6 |
2384 | then : |
2133 | else |
2385 | printf %s "(cached) " >&6 |
|
|
2386 | else $as_nop |
2134 | if test -n "$CC"; then |
2387 | if test -n "$CC"; then |
2135 | ac_cv_prog_CC="$CC" # Let the user override the test. |
2388 | ac_cv_prog_CC="$CC" # Let the user override the test. |
2136 | else |
2389 | else |
2137 | ac_prog_rejected=no |
2390 | ac_prog_rejected=no |
2138 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2391 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2139 | for as_dir in $PATH |
2392 | for as_dir in $PATH |
2140 | do |
2393 | do |
2141 | IFS=$as_save_IFS |
2394 | IFS=$as_save_IFS |
2142 | test -z "$as_dir" && as_dir=. |
2395 | case $as_dir in #((( |
|
|
2396 | '') as_dir=./ ;; |
|
|
2397 | */) ;; |
|
|
2398 | *) as_dir=$as_dir/ ;; |
|
|
2399 | esac |
2143 | for ac_exec_ext in '' $ac_executable_extensions; do |
2400 | for ac_exec_ext in '' $ac_executable_extensions; do |
2144 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
2401 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
2145 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
2402 | if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
2146 | ac_prog_rejected=yes |
2403 | ac_prog_rejected=yes |
2147 | continue |
2404 | continue |
2148 | fi |
2405 | fi |
2149 | ac_cv_prog_CC="cc" |
2406 | ac_cv_prog_CC="cc" |
2150 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2407 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
2151 | break 2 |
2408 | break 2 |
2152 | fi |
2409 | fi |
2153 | done |
2410 | done |
2154 | done |
2411 | done |
2155 | IFS=$as_save_IFS |
2412 | IFS=$as_save_IFS |
… | |
… | |
2161 | if test $# != 0; then |
2418 | if test $# != 0; then |
2162 | # We chose a different compiler from the bogus one. |
2419 | # We chose a different compiler from the bogus one. |
2163 | # However, it has the same basename, so the bogon will be chosen |
2420 | # However, it has the same basename, so the bogon will be chosen |
2164 | # first if we set CC to just the basename; use the full file name. |
2421 | # first if we set CC to just the basename; use the full file name. |
2165 | shift |
2422 | shift |
2166 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
2423 | ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@" |
2167 | fi |
2424 | fi |
2168 | fi |
2425 | fi |
2169 | fi |
2426 | fi |
2170 | fi |
2427 | fi |
2171 | CC=$ac_cv_prog_CC |
2428 | CC=$ac_cv_prog_CC |
2172 | if test -n "$CC"; then |
2429 | if test -n "$CC"; then |
2173 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
2430 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
2174 | $as_echo "$CC" >&6; } |
2431 | printf "%s\n" "$CC" >&6; } |
2175 | else |
2432 | else |
2176 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2433 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2177 | $as_echo "no" >&6; } |
2434 | printf "%s\n" "no" >&6; } |
2178 | fi |
2435 | fi |
2179 | |
2436 | |
2180 | |
2437 | |
2181 | fi |
2438 | fi |
2182 | if test -z "$CC"; then |
2439 | if test -z "$CC"; then |
2183 | if test -n "$ac_tool_prefix"; then |
2440 | if test -n "$ac_tool_prefix"; then |
2184 | for ac_prog in cl.exe |
2441 | for ac_prog in cl.exe |
2185 | do |
2442 | do |
2186 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
2443 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
2187 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
2444 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
2188 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2445 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2189 | $as_echo_n "checking for $ac_word... " >&6; } |
2446 | printf %s "checking for $ac_word... " >&6; } |
2190 | if test "${ac_cv_prog_CC+set}" = set; then : |
2447 | if test ${ac_cv_prog_CC+y} |
2191 | $as_echo_n "(cached) " >&6 |
2448 | then : |
2192 | else |
2449 | printf %s "(cached) " >&6 |
|
|
2450 | else $as_nop |
2193 | if test -n "$CC"; then |
2451 | if test -n "$CC"; then |
2194 | ac_cv_prog_CC="$CC" # Let the user override the test. |
2452 | ac_cv_prog_CC="$CC" # Let the user override the test. |
2195 | else |
2453 | else |
2196 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2454 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2197 | for as_dir in $PATH |
2455 | for as_dir in $PATH |
2198 | do |
2456 | do |
2199 | IFS=$as_save_IFS |
2457 | IFS=$as_save_IFS |
2200 | test -z "$as_dir" && as_dir=. |
2458 | case $as_dir in #((( |
|
|
2459 | '') as_dir=./ ;; |
|
|
2460 | */) ;; |
|
|
2461 | *) as_dir=$as_dir/ ;; |
|
|
2462 | esac |
2201 | for ac_exec_ext in '' $ac_executable_extensions; do |
2463 | for ac_exec_ext in '' $ac_executable_extensions; do |
2202 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
2464 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
2203 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
2465 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
2204 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2466 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
2205 | break 2 |
2467 | break 2 |
2206 | fi |
2468 | fi |
2207 | done |
2469 | done |
2208 | done |
2470 | done |
2209 | IFS=$as_save_IFS |
2471 | IFS=$as_save_IFS |
2210 | |
2472 | |
2211 | fi |
2473 | fi |
2212 | fi |
2474 | fi |
2213 | CC=$ac_cv_prog_CC |
2475 | CC=$ac_cv_prog_CC |
2214 | if test -n "$CC"; then |
2476 | if test -n "$CC"; then |
2215 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
2477 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
2216 | $as_echo "$CC" >&6; } |
2478 | printf "%s\n" "$CC" >&6; } |
2217 | else |
2479 | else |
2218 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2480 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2219 | $as_echo "no" >&6; } |
2481 | printf "%s\n" "no" >&6; } |
2220 | fi |
2482 | fi |
2221 | |
2483 | |
2222 | |
2484 | |
2223 | test -n "$CC" && break |
2485 | test -n "$CC" && break |
2224 | done |
2486 | done |
… | |
… | |
2227 | ac_ct_CC=$CC |
2489 | ac_ct_CC=$CC |
2228 | for ac_prog in cl.exe |
2490 | for ac_prog in cl.exe |
2229 | do |
2491 | do |
2230 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
2492 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
2231 | set dummy $ac_prog; ac_word=$2 |
2493 | set dummy $ac_prog; ac_word=$2 |
2232 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2494 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2233 | $as_echo_n "checking for $ac_word... " >&6; } |
2495 | printf %s "checking for $ac_word... " >&6; } |
2234 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : |
2496 | if test ${ac_cv_prog_ac_ct_CC+y} |
2235 | $as_echo_n "(cached) " >&6 |
2497 | then : |
2236 | else |
2498 | printf %s "(cached) " >&6 |
|
|
2499 | else $as_nop |
2237 | if test -n "$ac_ct_CC"; then |
2500 | if test -n "$ac_ct_CC"; then |
2238 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
2501 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
2239 | else |
2502 | else |
2240 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2503 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2241 | for as_dir in $PATH |
2504 | for as_dir in $PATH |
2242 | do |
2505 | do |
2243 | IFS=$as_save_IFS |
2506 | IFS=$as_save_IFS |
2244 | test -z "$as_dir" && as_dir=. |
2507 | case $as_dir in #((( |
|
|
2508 | '') as_dir=./ ;; |
|
|
2509 | */) ;; |
|
|
2510 | *) as_dir=$as_dir/ ;; |
|
|
2511 | esac |
2245 | for ac_exec_ext in '' $ac_executable_extensions; do |
2512 | for ac_exec_ext in '' $ac_executable_extensions; do |
2246 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
2513 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
2247 | ac_cv_prog_ac_ct_CC="$ac_prog" |
2514 | ac_cv_prog_ac_ct_CC="$ac_prog" |
2248 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2515 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
2249 | break 2 |
2516 | break 2 |
2250 | fi |
2517 | fi |
2251 | done |
2518 | done |
2252 | done |
2519 | done |
2253 | IFS=$as_save_IFS |
2520 | IFS=$as_save_IFS |
2254 | |
2521 | |
2255 | fi |
2522 | fi |
2256 | fi |
2523 | fi |
2257 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
2524 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
2258 | if test -n "$ac_ct_CC"; then |
2525 | if test -n "$ac_ct_CC"; then |
2259 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
2526 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
2260 | $as_echo "$ac_ct_CC" >&6; } |
2527 | printf "%s\n" "$ac_ct_CC" >&6; } |
2261 | else |
2528 | else |
2262 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2529 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2263 | $as_echo "no" >&6; } |
2530 | printf "%s\n" "no" >&6; } |
2264 | fi |
2531 | fi |
2265 | |
2532 | |
2266 | |
2533 | |
2267 | test -n "$ac_ct_CC" && break |
2534 | test -n "$ac_ct_CC" && break |
2268 | done |
2535 | done |
… | |
… | |
2270 | if test "x$ac_ct_CC" = x; then |
2537 | if test "x$ac_ct_CC" = x; then |
2271 | CC="" |
2538 | CC="" |
2272 | else |
2539 | else |
2273 | case $cross_compiling:$ac_tool_warned in |
2540 | case $cross_compiling:$ac_tool_warned in |
2274 | yes:) |
2541 | yes:) |
2275 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
2542 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
2276 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
2543 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
2277 | ac_tool_warned=yes ;; |
2544 | ac_tool_warned=yes ;; |
2278 | esac |
2545 | esac |
2279 | CC=$ac_ct_CC |
2546 | CC=$ac_ct_CC |
2280 | fi |
2547 | fi |
2281 | fi |
2548 | fi |
2282 | |
2549 | |
2283 | fi |
2550 | fi |
|
|
2551 | if test -z "$CC"; then |
|
|
2552 | if test -n "$ac_tool_prefix"; then |
|
|
2553 | # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args. |
|
|
2554 | set dummy ${ac_tool_prefix}clang; ac_word=$2 |
|
|
2555 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
|
|
2556 | printf %s "checking for $ac_word... " >&6; } |
|
|
2557 | if test ${ac_cv_prog_CC+y} |
|
|
2558 | then : |
|
|
2559 | printf %s "(cached) " >&6 |
|
|
2560 | else $as_nop |
|
|
2561 | if test -n "$CC"; then |
|
|
2562 | ac_cv_prog_CC="$CC" # Let the user override the test. |
|
|
2563 | else |
|
|
2564 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
|
2565 | for as_dir in $PATH |
|
|
2566 | do |
|
|
2567 | IFS=$as_save_IFS |
|
|
2568 | case $as_dir in #((( |
|
|
2569 | '') as_dir=./ ;; |
|
|
2570 | */) ;; |
|
|
2571 | *) as_dir=$as_dir/ ;; |
|
|
2572 | esac |
|
|
2573 | for ac_exec_ext in '' $ac_executable_extensions; do |
|
|
2574 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
|
|
2575 | ac_cv_prog_CC="${ac_tool_prefix}clang" |
|
|
2576 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
|
|
2577 | break 2 |
|
|
2578 | fi |
|
|
2579 | done |
|
|
2580 | done |
|
|
2581 | IFS=$as_save_IFS |
2284 | |
2582 | |
|
|
2583 | fi |
|
|
2584 | fi |
|
|
2585 | CC=$ac_cv_prog_CC |
|
|
2586 | if test -n "$CC"; then |
|
|
2587 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
|
|
2588 | printf "%s\n" "$CC" >&6; } |
|
|
2589 | else |
|
|
2590 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
|
|
2591 | printf "%s\n" "no" >&6; } |
|
|
2592 | fi |
2285 | |
2593 | |
|
|
2594 | |
|
|
2595 | fi |
|
|
2596 | if test -z "$ac_cv_prog_CC"; then |
|
|
2597 | ac_ct_CC=$CC |
|
|
2598 | # Extract the first word of "clang", so it can be a program name with args. |
|
|
2599 | set dummy clang; ac_word=$2 |
|
|
2600 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
|
|
2601 | printf %s "checking for $ac_word... " >&6; } |
|
|
2602 | if test ${ac_cv_prog_ac_ct_CC+y} |
|
|
2603 | then : |
|
|
2604 | printf %s "(cached) " >&6 |
|
|
2605 | else $as_nop |
|
|
2606 | if test -n "$ac_ct_CC"; then |
|
|
2607 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
|
|
2608 | else |
|
|
2609 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
|
2610 | for as_dir in $PATH |
|
|
2611 | do |
|
|
2612 | IFS=$as_save_IFS |
|
|
2613 | case $as_dir in #((( |
|
|
2614 | '') as_dir=./ ;; |
|
|
2615 | */) ;; |
|
|
2616 | *) as_dir=$as_dir/ ;; |
|
|
2617 | esac |
|
|
2618 | for ac_exec_ext in '' $ac_executable_extensions; do |
|
|
2619 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
|
|
2620 | ac_cv_prog_ac_ct_CC="clang" |
|
|
2621 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
|
|
2622 | break 2 |
|
|
2623 | fi |
|
|
2624 | done |
|
|
2625 | done |
|
|
2626 | IFS=$as_save_IFS |
|
|
2627 | |
|
|
2628 | fi |
|
|
2629 | fi |
|
|
2630 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
|
|
2631 | if test -n "$ac_ct_CC"; then |
|
|
2632 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
|
|
2633 | printf "%s\n" "$ac_ct_CC" >&6; } |
|
|
2634 | else |
|
|
2635 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
|
|
2636 | printf "%s\n" "no" >&6; } |
|
|
2637 | fi |
|
|
2638 | |
|
|
2639 | if test "x$ac_ct_CC" = x; then |
|
|
2640 | CC="" |
|
|
2641 | else |
|
|
2642 | case $cross_compiling:$ac_tool_warned in |
|
|
2643 | yes:) |
|
|
2644 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
|
|
2645 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
|
|
2646 | ac_tool_warned=yes ;; |
|
|
2647 | esac |
|
|
2648 | CC=$ac_ct_CC |
|
|
2649 | fi |
|
|
2650 | else |
|
|
2651 | CC="$ac_cv_prog_CC" |
|
|
2652 | fi |
|
|
2653 | |
|
|
2654 | fi |
|
|
2655 | |
|
|
2656 | |
2286 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
2657 | test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
2287 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
2658 | printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} |
2288 | as_fn_error $? "no acceptable C compiler found in \$PATH |
2659 | as_fn_error $? "no acceptable C compiler found in \$PATH |
2289 | See \`config.log' for more details" "$LINENO" 5 ; } |
2660 | See \`config.log' for more details" "$LINENO" 5; } |
2290 | |
2661 | |
2291 | # Provide some information about the compiler. |
2662 | # Provide some information about the compiler. |
2292 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
2663 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
2293 | set X $ac_compile |
2664 | set X $ac_compile |
2294 | ac_compiler=$2 |
2665 | ac_compiler=$2 |
2295 | for ac_option in --version -v -V -qversion; do |
2666 | for ac_option in --version -v -V -qversion -version; do |
2296 | { { ac_try="$ac_compiler $ac_option >&5" |
2667 | { { ac_try="$ac_compiler $ac_option >&5" |
2297 | case "(($ac_try" in |
2668 | case "(($ac_try" in |
2298 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
2669 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
2299 | *) ac_try_echo=$ac_try;; |
2670 | *) ac_try_echo=$ac_try;; |
2300 | esac |
2671 | esac |
2301 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
2672 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
2302 | $as_echo "$ac_try_echo"; } >&5 |
2673 | printf "%s\n" "$ac_try_echo"; } >&5 |
2303 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err |
2674 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err |
2304 | ac_status=$? |
2675 | ac_status=$? |
2305 | if test -s conftest.err; then |
2676 | if test -s conftest.err; then |
2306 | sed '10a\ |
2677 | sed '10a\ |
2307 | ... rest of stderr output deleted ... |
2678 | ... rest of stderr output deleted ... |
2308 | 10q' conftest.err >conftest.er1 |
2679 | 10q' conftest.err >conftest.er1 |
2309 | cat conftest.er1 >&5 |
2680 | cat conftest.er1 >&5 |
2310 | fi |
2681 | fi |
2311 | rm -f conftest.er1 conftest.err |
2682 | rm -f conftest.er1 conftest.err |
2312 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
2683 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
2313 | test $ac_status = 0; } |
2684 | test $ac_status = 0; } |
2314 | done |
2685 | done |
2315 | |
2686 | |
2316 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
2687 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
2317 | /* end confdefs.h. */ |
2688 | /* end confdefs.h. */ |
2318 | |
2689 | |
2319 | int |
2690 | int |
2320 | main () |
2691 | main (void) |
2321 | { |
2692 | { |
2322 | |
2693 | |
2323 | ; |
2694 | ; |
2324 | return 0; |
2695 | return 0; |
2325 | } |
2696 | } |
… | |
… | |
2327 | ac_clean_files_save=$ac_clean_files |
2698 | ac_clean_files_save=$ac_clean_files |
2328 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" |
2699 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" |
2329 | # Try to create an executable without -o first, disregard a.out. |
2700 | # Try to create an executable without -o first, disregard a.out. |
2330 | # It will help us diagnose broken compilers, and finding out an intuition |
2701 | # It will help us diagnose broken compilers, and finding out an intuition |
2331 | # of exeext. |
2702 | # of exeext. |
2332 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 |
2703 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 |
2333 | $as_echo_n "checking whether the C compiler works... " >&6; } |
2704 | printf %s "checking whether the C compiler works... " >&6; } |
2334 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
2705 | ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
2335 | |
2706 | |
2336 | # The possible output files: |
2707 | # The possible output files: |
2337 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" |
2708 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" |
2338 | |
2709 | |
2339 | ac_rmfiles= |
2710 | ac_rmfiles= |
… | |
… | |
2350 | case "(($ac_try" in |
2721 | case "(($ac_try" in |
2351 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
2722 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
2352 | *) ac_try_echo=$ac_try;; |
2723 | *) ac_try_echo=$ac_try;; |
2353 | esac |
2724 | esac |
2354 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
2725 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
2355 | $as_echo "$ac_try_echo"; } >&5 |
2726 | printf "%s\n" "$ac_try_echo"; } >&5 |
2356 | (eval "$ac_link_default") 2>&5 |
2727 | (eval "$ac_link_default") 2>&5 |
2357 | ac_status=$? |
2728 | ac_status=$? |
2358 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
2729 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
2359 | test $ac_status = 0; }; then : |
2730 | test $ac_status = 0; } |
|
|
2731 | then : |
2360 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
2732 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
2361 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' |
2733 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' |
2362 | # in a Makefile. We should not override ac_cv_exeext if it was cached, |
2734 | # in a Makefile. We should not override ac_cv_exeext if it was cached, |
2363 | # so that the user can short-circuit this test for compilers unknown to |
2735 | # so that the user can short-circuit this test for compilers unknown to |
2364 | # Autoconf. |
2736 | # Autoconf. |
… | |
… | |
2371 | [ab].out ) |
2743 | [ab].out ) |
2372 | # We found the default executable, but exeext='' is most |
2744 | # We found the default executable, but exeext='' is most |
2373 | # certainly right. |
2745 | # certainly right. |
2374 | break;; |
2746 | break;; |
2375 | *.* ) |
2747 | *.* ) |
2376 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
2748 | if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no; |
2377 | then :; else |
2749 | then :; else |
2378 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
2750 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
2379 | fi |
2751 | fi |
2380 | # We set ac_cv_exeext here because the later test for it is not |
2752 | # We set ac_cv_exeext here because the later test for it is not |
2381 | # safe: cross compilers may not add the suffix if given an `-o' |
2753 | # safe: cross compilers may not add the suffix if given an `-o' |
… | |
… | |
2387 | break;; |
2759 | break;; |
2388 | esac |
2760 | esac |
2389 | done |
2761 | done |
2390 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
2762 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
2391 | |
2763 | |
2392 | else |
2764 | else $as_nop |
2393 | ac_file='' |
2765 | ac_file='' |
2394 | fi |
2766 | fi |
2395 | if test -z "$ac_file"; then : |
2767 | if test -z "$ac_file" |
|
|
2768 | then : |
2396 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2769 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2397 | $as_echo "no" >&6; } |
2770 | printf "%s\n" "no" >&6; } |
2398 | $as_echo "$as_me: failed program was:" >&5 |
2771 | printf "%s\n" "$as_me: failed program was:" >&5 |
2399 | sed 's/^/| /' conftest.$ac_ext >&5 |
2772 | sed 's/^/| /' conftest.$ac_ext >&5 |
2400 | |
2773 | |
2401 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
2774 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
2402 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
2775 | printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} |
2403 | as_fn_error 77 "C compiler cannot create executables |
2776 | as_fn_error 77 "C compiler cannot create executables |
2404 | See \`config.log' for more details" "$LINENO" 5 ; } |
2777 | See \`config.log' for more details" "$LINENO" 5; } |
2405 | else |
2778 | else $as_nop |
2406 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
2779 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
2407 | $as_echo "yes" >&6; } |
2780 | printf "%s\n" "yes" >&6; } |
2408 | fi |
2781 | fi |
2409 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
2782 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
2410 | $as_echo_n "checking for C compiler default output file name... " >&6; } |
2783 | printf %s "checking for C compiler default output file name... " >&6; } |
2411 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 |
2784 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 |
2412 | $as_echo "$ac_file" >&6; } |
2785 | printf "%s\n" "$ac_file" >&6; } |
2413 | ac_exeext=$ac_cv_exeext |
2786 | ac_exeext=$ac_cv_exeext |
2414 | |
2787 | |
2415 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
2788 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
2416 | ac_clean_files=$ac_clean_files_save |
2789 | ac_clean_files=$ac_clean_files_save |
2417 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 |
2790 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 |
2418 | $as_echo_n "checking for suffix of executables... " >&6; } |
2791 | printf %s "checking for suffix of executables... " >&6; } |
2419 | if { { ac_try="$ac_link" |
2792 | if { { ac_try="$ac_link" |
2420 | case "(($ac_try" in |
2793 | case "(($ac_try" in |
2421 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
2794 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
2422 | *) ac_try_echo=$ac_try;; |
2795 | *) ac_try_echo=$ac_try;; |
2423 | esac |
2796 | esac |
2424 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
2797 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
2425 | $as_echo "$ac_try_echo"; } >&5 |
2798 | printf "%s\n" "$ac_try_echo"; } >&5 |
2426 | (eval "$ac_link") 2>&5 |
2799 | (eval "$ac_link") 2>&5 |
2427 | ac_status=$? |
2800 | ac_status=$? |
2428 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
2801 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
2429 | test $ac_status = 0; }; then : |
2802 | test $ac_status = 0; } |
|
|
2803 | then : |
2430 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
2804 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
2431 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
2805 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
2432 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
2806 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
2433 | # `rm'. |
2807 | # `rm'. |
2434 | for ac_file in conftest.exe conftest conftest.*; do |
2808 | for ac_file in conftest.exe conftest conftest.*; do |
… | |
… | |
2438 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
2812 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
2439 | break;; |
2813 | break;; |
2440 | * ) break;; |
2814 | * ) break;; |
2441 | esac |
2815 | esac |
2442 | done |
2816 | done |
2443 | else |
2817 | else $as_nop |
2444 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
2818 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
2445 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
2819 | printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} |
2446 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link |
2820 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link |
2447 | See \`config.log' for more details" "$LINENO" 5 ; } |
2821 | See \`config.log' for more details" "$LINENO" 5; } |
2448 | fi |
2822 | fi |
2449 | rm -f conftest conftest$ac_cv_exeext |
2823 | rm -f conftest conftest$ac_cv_exeext |
2450 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
2824 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
2451 | $as_echo "$ac_cv_exeext" >&6; } |
2825 | printf "%s\n" "$ac_cv_exeext" >&6; } |
2452 | |
2826 | |
2453 | rm -f conftest.$ac_ext |
2827 | rm -f conftest.$ac_ext |
2454 | EXEEXT=$ac_cv_exeext |
2828 | EXEEXT=$ac_cv_exeext |
2455 | ac_exeext=$EXEEXT |
2829 | ac_exeext=$EXEEXT |
2456 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
2830 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
2457 | /* end confdefs.h. */ |
2831 | /* end confdefs.h. */ |
2458 | #include <stdio.h> |
2832 | #include <stdio.h> |
2459 | int |
2833 | int |
2460 | main () |
2834 | main (void) |
2461 | { |
2835 | { |
2462 | FILE *f = fopen ("conftest.out", "w"); |
2836 | FILE *f = fopen ("conftest.out", "w"); |
2463 | return ferror (f) || fclose (f) != 0; |
2837 | return ferror (f) || fclose (f) != 0; |
2464 | |
2838 | |
2465 | ; |
2839 | ; |
… | |
… | |
2467 | } |
2841 | } |
2468 | _ACEOF |
2842 | _ACEOF |
2469 | ac_clean_files="$ac_clean_files conftest.out" |
2843 | ac_clean_files="$ac_clean_files conftest.out" |
2470 | # Check that the compiler produces executables we can run. If not, either |
2844 | # Check that the compiler produces executables we can run. If not, either |
2471 | # the compiler is broken, or we cross compile. |
2845 | # the compiler is broken, or we cross compile. |
2472 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 |
2846 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 |
2473 | $as_echo_n "checking whether we are cross compiling... " >&6; } |
2847 | printf %s "checking whether we are cross compiling... " >&6; } |
2474 | if test "$cross_compiling" != yes; then |
2848 | if test "$cross_compiling" != yes; then |
2475 | { { ac_try="$ac_link" |
2849 | { { ac_try="$ac_link" |
2476 | case "(($ac_try" in |
2850 | case "(($ac_try" in |
2477 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
2851 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
2478 | *) ac_try_echo=$ac_try;; |
2852 | *) ac_try_echo=$ac_try;; |
2479 | esac |
2853 | esac |
2480 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
2854 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
2481 | $as_echo "$ac_try_echo"; } >&5 |
2855 | printf "%s\n" "$ac_try_echo"; } >&5 |
2482 | (eval "$ac_link") 2>&5 |
2856 | (eval "$ac_link") 2>&5 |
2483 | ac_status=$? |
2857 | ac_status=$? |
2484 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
2858 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
2485 | test $ac_status = 0; } |
2859 | test $ac_status = 0; } |
2486 | if { ac_try='./conftest$ac_cv_exeext' |
2860 | if { ac_try='./conftest$ac_cv_exeext' |
2487 | { { case "(($ac_try" in |
2861 | { { case "(($ac_try" in |
2488 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
2862 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
2489 | *) ac_try_echo=$ac_try;; |
2863 | *) ac_try_echo=$ac_try;; |
2490 | esac |
2864 | esac |
2491 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
2865 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
2492 | $as_echo "$ac_try_echo"; } >&5 |
2866 | printf "%s\n" "$ac_try_echo"; } >&5 |
2493 | (eval "$ac_try") 2>&5 |
2867 | (eval "$ac_try") 2>&5 |
2494 | ac_status=$? |
2868 | ac_status=$? |
2495 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
2869 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
2496 | test $ac_status = 0; }; }; then |
2870 | test $ac_status = 0; }; }; then |
2497 | cross_compiling=no |
2871 | cross_compiling=no |
2498 | else |
2872 | else |
2499 | if test "$cross_compiling" = maybe; then |
2873 | if test "$cross_compiling" = maybe; then |
2500 | cross_compiling=yes |
2874 | cross_compiling=yes |
2501 | else |
2875 | else |
2502 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
2876 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
2503 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
2877 | printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} |
2504 | as_fn_error $? "cannot run C compiled programs. |
2878 | as_fn_error 77 "cannot run C compiled programs. |
2505 | If you meant to cross compile, use \`--host'. |
2879 | If you meant to cross compile, use \`--host'. |
2506 | See \`config.log' for more details" "$LINENO" 5 ; } |
2880 | See \`config.log' for more details" "$LINENO" 5; } |
2507 | fi |
2881 | fi |
2508 | fi |
2882 | fi |
2509 | fi |
2883 | fi |
2510 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 |
2884 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 |
2511 | $as_echo "$cross_compiling" >&6; } |
2885 | printf "%s\n" "$cross_compiling" >&6; } |
2512 | |
2886 | |
2513 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out |
2887 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out |
2514 | ac_clean_files=$ac_clean_files_save |
2888 | ac_clean_files=$ac_clean_files_save |
2515 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 |
2889 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 |
2516 | $as_echo_n "checking for suffix of object files... " >&6; } |
2890 | printf %s "checking for suffix of object files... " >&6; } |
2517 | if test "${ac_cv_objext+set}" = set; then : |
2891 | if test ${ac_cv_objext+y} |
2518 | $as_echo_n "(cached) " >&6 |
2892 | then : |
2519 | else |
2893 | printf %s "(cached) " >&6 |
|
|
2894 | else $as_nop |
2520 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
2895 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
2521 | /* end confdefs.h. */ |
2896 | /* end confdefs.h. */ |
2522 | |
2897 | |
2523 | int |
2898 | int |
2524 | main () |
2899 | main (void) |
2525 | { |
2900 | { |
2526 | |
2901 | |
2527 | ; |
2902 | ; |
2528 | return 0; |
2903 | return 0; |
2529 | } |
2904 | } |
… | |
… | |
2533 | case "(($ac_try" in |
2908 | case "(($ac_try" in |
2534 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
2909 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
2535 | *) ac_try_echo=$ac_try;; |
2910 | *) ac_try_echo=$ac_try;; |
2536 | esac |
2911 | esac |
2537 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
2912 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
2538 | $as_echo "$ac_try_echo"; } >&5 |
2913 | printf "%s\n" "$ac_try_echo"; } >&5 |
2539 | (eval "$ac_compile") 2>&5 |
2914 | (eval "$ac_compile") 2>&5 |
2540 | ac_status=$? |
2915 | ac_status=$? |
2541 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
2916 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
2542 | test $ac_status = 0; }; then : |
2917 | test $ac_status = 0; } |
|
|
2918 | then : |
2543 | for ac_file in conftest.o conftest.obj conftest.*; do |
2919 | for ac_file in conftest.o conftest.obj conftest.*; do |
2544 | test -f "$ac_file" || continue; |
2920 | test -f "$ac_file" || continue; |
2545 | case $ac_file in |
2921 | case $ac_file in |
2546 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
2922 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
2547 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
2923 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
2548 | break;; |
2924 | break;; |
2549 | esac |
2925 | esac |
2550 | done |
2926 | done |
2551 | else |
2927 | else $as_nop |
2552 | $as_echo "$as_me: failed program was:" >&5 |
2928 | printf "%s\n" "$as_me: failed program was:" >&5 |
2553 | sed 's/^/| /' conftest.$ac_ext >&5 |
2929 | sed 's/^/| /' conftest.$ac_ext >&5 |
2554 | |
2930 | |
2555 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
2931 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
2556 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
2932 | printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} |
2557 | as_fn_error $? "cannot compute suffix of object files: cannot compile |
2933 | as_fn_error $? "cannot compute suffix of object files: cannot compile |
2558 | See \`config.log' for more details" "$LINENO" 5 ; } |
2934 | See \`config.log' for more details" "$LINENO" 5; } |
2559 | fi |
2935 | fi |
2560 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
2936 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
2561 | fi |
2937 | fi |
2562 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
2938 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
2563 | $as_echo "$ac_cv_objext" >&6; } |
2939 | printf "%s\n" "$ac_cv_objext" >&6; } |
2564 | OBJEXT=$ac_cv_objext |
2940 | OBJEXT=$ac_cv_objext |
2565 | ac_objext=$OBJEXT |
2941 | ac_objext=$OBJEXT |
2566 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
2942 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5 |
2567 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } |
2943 | printf %s "checking whether the compiler supports GNU C... " >&6; } |
2568 | if test "${ac_cv_c_compiler_gnu+set}" = set; then : |
2944 | if test ${ac_cv_c_compiler_gnu+y} |
2569 | $as_echo_n "(cached) " >&6 |
2945 | then : |
2570 | else |
2946 | printf %s "(cached) " >&6 |
|
|
2947 | else $as_nop |
2571 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
2948 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
2572 | /* end confdefs.h. */ |
2949 | /* end confdefs.h. */ |
2573 | |
2950 | |
2574 | int |
2951 | int |
2575 | main () |
2952 | main (void) |
2576 | { |
2953 | { |
2577 | #ifndef __GNUC__ |
2954 | #ifndef __GNUC__ |
2578 | choke me |
2955 | choke me |
2579 | #endif |
2956 | #endif |
2580 | |
2957 | |
2581 | ; |
2958 | ; |
2582 | return 0; |
2959 | return 0; |
2583 | } |
2960 | } |
2584 | _ACEOF |
2961 | _ACEOF |
2585 | if ac_fn_c_try_compile "$LINENO"; then : |
2962 | if ac_fn_c_try_compile "$LINENO" |
|
|
2963 | then : |
2586 | ac_compiler_gnu=yes |
2964 | ac_compiler_gnu=yes |
2587 | else |
2965 | else $as_nop |
2588 | ac_compiler_gnu=no |
2966 | ac_compiler_gnu=no |
2589 | fi |
2967 | fi |
2590 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
2968 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
2591 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
2969 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
2592 | |
2970 | |
2593 | fi |
2971 | fi |
2594 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
2972 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
2595 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } |
2973 | printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; } |
|
|
2974 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
|
|
2975 | |
2596 | if test $ac_compiler_gnu = yes; then |
2976 | if test $ac_compiler_gnu = yes; then |
2597 | GCC=yes |
2977 | GCC=yes |
2598 | else |
2978 | else |
2599 | GCC= |
2979 | GCC= |
2600 | fi |
2980 | fi |
2601 | ac_test_CFLAGS=${CFLAGS+set} |
2981 | ac_test_CFLAGS=${CFLAGS+y} |
2602 | ac_save_CFLAGS=$CFLAGS |
2982 | ac_save_CFLAGS=$CFLAGS |
2603 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
2983 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
2604 | $as_echo_n "checking whether $CC accepts -g... " >&6; } |
2984 | printf %s "checking whether $CC accepts -g... " >&6; } |
2605 | if test "${ac_cv_prog_cc_g+set}" = set; then : |
2985 | if test ${ac_cv_prog_cc_g+y} |
2606 | $as_echo_n "(cached) " >&6 |
2986 | then : |
2607 | else |
2987 | printf %s "(cached) " >&6 |
|
|
2988 | else $as_nop |
2608 | ac_save_c_werror_flag=$ac_c_werror_flag |
2989 | ac_save_c_werror_flag=$ac_c_werror_flag |
2609 | ac_c_werror_flag=yes |
2990 | ac_c_werror_flag=yes |
2610 | ac_cv_prog_cc_g=no |
2991 | ac_cv_prog_cc_g=no |
2611 | CFLAGS="-g" |
2992 | CFLAGS="-g" |
2612 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
2993 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
2613 | /* end confdefs.h. */ |
2994 | /* end confdefs.h. */ |
2614 | |
2995 | |
2615 | int |
2996 | int |
2616 | main () |
2997 | main (void) |
2617 | { |
2998 | { |
2618 | |
2999 | |
2619 | ; |
3000 | ; |
2620 | return 0; |
3001 | return 0; |
2621 | } |
3002 | } |
2622 | _ACEOF |
3003 | _ACEOF |
2623 | if ac_fn_c_try_compile "$LINENO"; then : |
3004 | if ac_fn_c_try_compile "$LINENO" |
|
|
3005 | then : |
2624 | ac_cv_prog_cc_g=yes |
3006 | ac_cv_prog_cc_g=yes |
2625 | else |
3007 | else $as_nop |
2626 | CFLAGS="" |
3008 | CFLAGS="" |
2627 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3009 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
2628 | /* end confdefs.h. */ |
3010 | /* end confdefs.h. */ |
2629 | |
3011 | |
2630 | int |
3012 | int |
2631 | main () |
3013 | main (void) |
2632 | { |
3014 | { |
2633 | |
3015 | |
2634 | ; |
3016 | ; |
2635 | return 0; |
3017 | return 0; |
2636 | } |
3018 | } |
2637 | _ACEOF |
3019 | _ACEOF |
2638 | if ac_fn_c_try_compile "$LINENO"; then : |
3020 | if ac_fn_c_try_compile "$LINENO" |
|
|
3021 | then : |
2639 | |
3022 | |
2640 | else |
3023 | else $as_nop |
2641 | ac_c_werror_flag=$ac_save_c_werror_flag |
3024 | ac_c_werror_flag=$ac_save_c_werror_flag |
2642 | CFLAGS="-g" |
3025 | CFLAGS="-g" |
2643 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3026 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
2644 | /* end confdefs.h. */ |
3027 | /* end confdefs.h. */ |
2645 | |
3028 | |
2646 | int |
3029 | int |
2647 | main () |
3030 | main (void) |
2648 | { |
3031 | { |
2649 | |
3032 | |
2650 | ; |
3033 | ; |
2651 | return 0; |
3034 | return 0; |
2652 | } |
3035 | } |
2653 | _ACEOF |
3036 | _ACEOF |
2654 | if ac_fn_c_try_compile "$LINENO"; then : |
3037 | if ac_fn_c_try_compile "$LINENO" |
|
|
3038 | then : |
2655 | ac_cv_prog_cc_g=yes |
3039 | ac_cv_prog_cc_g=yes |
2656 | fi |
3040 | fi |
2657 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3041 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
2658 | fi |
3042 | fi |
2659 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3043 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
2660 | fi |
3044 | fi |
2661 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3045 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
2662 | ac_c_werror_flag=$ac_save_c_werror_flag |
3046 | ac_c_werror_flag=$ac_save_c_werror_flag |
2663 | fi |
3047 | fi |
2664 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 |
3048 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 |
2665 | $as_echo "$ac_cv_prog_cc_g" >&6; } |
3049 | printf "%s\n" "$ac_cv_prog_cc_g" >&6; } |
2666 | if test "$ac_test_CFLAGS" = set; then |
3050 | if test $ac_test_CFLAGS; then |
2667 | CFLAGS=$ac_save_CFLAGS |
3051 | CFLAGS=$ac_save_CFLAGS |
2668 | elif test $ac_cv_prog_cc_g = yes; then |
3052 | elif test $ac_cv_prog_cc_g = yes; then |
2669 | if test "$GCC" = yes; then |
3053 | if test "$GCC" = yes; then |
2670 | CFLAGS="-g -O2" |
3054 | CFLAGS="-g -O2" |
2671 | else |
3055 | else |
… | |
… | |
2676 | CFLAGS="-O2" |
3060 | CFLAGS="-O2" |
2677 | else |
3061 | else |
2678 | CFLAGS= |
3062 | CFLAGS= |
2679 | fi |
3063 | fi |
2680 | fi |
3064 | fi |
|
|
3065 | ac_prog_cc_stdc=no |
|
|
3066 | if test x$ac_prog_cc_stdc = xno |
|
|
3067 | then : |
|
|
3068 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5 |
|
|
3069 | printf %s "checking for $CC option to enable C11 features... " >&6; } |
|
|
3070 | if test ${ac_cv_prog_cc_c11+y} |
|
|
3071 | then : |
|
|
3072 | printf %s "(cached) " >&6 |
|
|
3073 | else $as_nop |
|
|
3074 | ac_cv_prog_cc_c11=no |
|
|
3075 | ac_save_CC=$CC |
|
|
3076 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
3077 | /* end confdefs.h. */ |
|
|
3078 | $ac_c_conftest_c11_program |
|
|
3079 | _ACEOF |
|
|
3080 | for ac_arg in '' -std=gnu11 |
|
|
3081 | do |
|
|
3082 | CC="$ac_save_CC $ac_arg" |
|
|
3083 | if ac_fn_c_try_compile "$LINENO" |
|
|
3084 | then : |
|
|
3085 | ac_cv_prog_cc_c11=$ac_arg |
|
|
3086 | fi |
|
|
3087 | rm -f core conftest.err conftest.$ac_objext conftest.beam |
|
|
3088 | test "x$ac_cv_prog_cc_c11" != "xno" && break |
|
|
3089 | done |
|
|
3090 | rm -f conftest.$ac_ext |
|
|
3091 | CC=$ac_save_CC |
|
|
3092 | fi |
|
|
3093 | |
|
|
3094 | if test "x$ac_cv_prog_cc_c11" = xno |
|
|
3095 | then : |
|
|
3096 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
|
|
3097 | printf "%s\n" "unsupported" >&6; } |
|
|
3098 | else $as_nop |
|
|
3099 | if test "x$ac_cv_prog_cc_c11" = x |
|
|
3100 | then : |
|
|
3101 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
|
|
3102 | printf "%s\n" "none needed" >&6; } |
|
|
3103 | else $as_nop |
|
|
3104 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 |
|
|
3105 | printf "%s\n" "$ac_cv_prog_cc_c11" >&6; } |
|
|
3106 | CC="$CC $ac_cv_prog_cc_c11" |
|
|
3107 | fi |
|
|
3108 | ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11 |
|
|
3109 | ac_prog_cc_stdc=c11 |
|
|
3110 | fi |
|
|
3111 | fi |
|
|
3112 | if test x$ac_prog_cc_stdc = xno |
|
|
3113 | then : |
|
|
3114 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5 |
|
|
3115 | printf %s "checking for $CC option to enable C99 features... " >&6; } |
|
|
3116 | if test ${ac_cv_prog_cc_c99+y} |
|
|
3117 | then : |
|
|
3118 | printf %s "(cached) " >&6 |
|
|
3119 | else $as_nop |
|
|
3120 | ac_cv_prog_cc_c99=no |
|
|
3121 | ac_save_CC=$CC |
|
|
3122 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
3123 | /* end confdefs.h. */ |
|
|
3124 | $ac_c_conftest_c99_program |
|
|
3125 | _ACEOF |
|
|
3126 | for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99= |
|
|
3127 | do |
|
|
3128 | CC="$ac_save_CC $ac_arg" |
|
|
3129 | if ac_fn_c_try_compile "$LINENO" |
|
|
3130 | then : |
|
|
3131 | ac_cv_prog_cc_c99=$ac_arg |
|
|
3132 | fi |
|
|
3133 | rm -f core conftest.err conftest.$ac_objext conftest.beam |
|
|
3134 | test "x$ac_cv_prog_cc_c99" != "xno" && break |
|
|
3135 | done |
|
|
3136 | rm -f conftest.$ac_ext |
|
|
3137 | CC=$ac_save_CC |
|
|
3138 | fi |
|
|
3139 | |
|
|
3140 | if test "x$ac_cv_prog_cc_c99" = xno |
|
|
3141 | then : |
|
|
3142 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
|
|
3143 | printf "%s\n" "unsupported" >&6; } |
|
|
3144 | else $as_nop |
|
|
3145 | if test "x$ac_cv_prog_cc_c99" = x |
|
|
3146 | then : |
|
|
3147 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
|
|
3148 | printf "%s\n" "none needed" >&6; } |
|
|
3149 | else $as_nop |
|
|
3150 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 |
|
|
3151 | printf "%s\n" "$ac_cv_prog_cc_c99" >&6; } |
|
|
3152 | CC="$CC $ac_cv_prog_cc_c99" |
|
|
3153 | fi |
|
|
3154 | ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 |
|
|
3155 | ac_prog_cc_stdc=c99 |
|
|
3156 | fi |
|
|
3157 | fi |
|
|
3158 | if test x$ac_prog_cc_stdc = xno |
|
|
3159 | then : |
2681 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
3160 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5 |
2682 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } |
3161 | printf %s "checking for $CC option to enable C89 features... " >&6; } |
2683 | if test "${ac_cv_prog_cc_c89+set}" = set; then : |
3162 | if test ${ac_cv_prog_cc_c89+y} |
2684 | $as_echo_n "(cached) " >&6 |
3163 | then : |
2685 | else |
3164 | printf %s "(cached) " >&6 |
|
|
3165 | else $as_nop |
2686 | ac_cv_prog_cc_c89=no |
3166 | ac_cv_prog_cc_c89=no |
2687 | ac_save_CC=$CC |
3167 | ac_save_CC=$CC |
2688 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3168 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
2689 | /* end confdefs.h. */ |
3169 | /* end confdefs.h. */ |
2690 | #include <stdarg.h> |
3170 | $ac_c_conftest_c89_program |
2691 | #include <stdio.h> |
|
|
2692 | #include <sys/types.h> |
|
|
2693 | #include <sys/stat.h> |
|
|
2694 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
|
|
2695 | struct buf { int x; }; |
|
|
2696 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
|
|
2697 | static char *e (p, i) |
|
|
2698 | char **p; |
|
|
2699 | int i; |
|
|
2700 | { |
|
|
2701 | return p[i]; |
|
|
2702 | } |
|
|
2703 | static char *f (char * (*g) (char **, int), char **p, ...) |
|
|
2704 | { |
|
|
2705 | char *s; |
|
|
2706 | va_list v; |
|
|
2707 | va_start (v,p); |
|
|
2708 | s = g (p, va_arg (v,int)); |
|
|
2709 | va_end (v); |
|
|
2710 | return s; |
|
|
2711 | } |
|
|
2712 | |
|
|
2713 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
|
|
2714 | function prototypes and stuff, but not '\xHH' hex character constants. |
|
|
2715 | These don't provoke an error unfortunately, instead are silently treated |
|
|
2716 | as 'x'. The following induces an error, until -std is added to get |
|
|
2717 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
|
|
2718 | array size at least. It's necessary to write '\x00'==0 to get something |
|
|
2719 | that's true only with -std. */ |
|
|
2720 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
|
|
2721 | |
|
|
2722 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
|
|
2723 | inside strings and character constants. */ |
|
|
2724 | #define FOO(x) 'x' |
|
|
2725 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
|
|
2726 | |
|
|
2727 | int test (int i, double x); |
|
|
2728 | struct s1 {int (*f) (int a);}; |
|
|
2729 | struct s2 {int (*f) (double a);}; |
|
|
2730 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
|
|
2731 | int argc; |
|
|
2732 | char **argv; |
|
|
2733 | int |
|
|
2734 | main () |
|
|
2735 | { |
|
|
2736 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
|
|
2737 | ; |
|
|
2738 | return 0; |
|
|
2739 | } |
|
|
2740 | _ACEOF |
3171 | _ACEOF |
2741 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
3172 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
2742 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
|
|
2743 | do |
3173 | do |
2744 | CC="$ac_save_CC $ac_arg" |
3174 | CC="$ac_save_CC $ac_arg" |
2745 | if ac_fn_c_try_compile "$LINENO"; then : |
3175 | if ac_fn_c_try_compile "$LINENO" |
|
|
3176 | then : |
2746 | ac_cv_prog_cc_c89=$ac_arg |
3177 | ac_cv_prog_cc_c89=$ac_arg |
2747 | fi |
3178 | fi |
2748 | rm -f core conftest.err conftest.$ac_objext |
3179 | rm -f core conftest.err conftest.$ac_objext conftest.beam |
2749 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
3180 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
2750 | done |
3181 | done |
2751 | rm -f conftest.$ac_ext |
3182 | rm -f conftest.$ac_ext |
2752 | CC=$ac_save_CC |
3183 | CC=$ac_save_CC |
2753 | |
|
|
2754 | fi |
3184 | fi |
2755 | # AC_CACHE_VAL |
3185 | |
2756 | case "x$ac_cv_prog_cc_c89" in |
3186 | if test "x$ac_cv_prog_cc_c89" = xno |
2757 | x) |
3187 | then : |
2758 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
|
|
2759 | $as_echo "none needed" >&6; } ;; |
|
|
2760 | xno) |
|
|
2761 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
3188 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
2762 | $as_echo "unsupported" >&6; } ;; |
3189 | printf "%s\n" "unsupported" >&6; } |
2763 | *) |
3190 | else $as_nop |
|
|
3191 | if test "x$ac_cv_prog_cc_c89" = x |
|
|
3192 | then : |
|
|
3193 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
|
|
3194 | printf "%s\n" "none needed" >&6; } |
|
|
3195 | else $as_nop |
|
|
3196 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 |
|
|
3197 | printf "%s\n" "$ac_cv_prog_cc_c89" >&6; } |
2764 | CC="$CC $ac_cv_prog_cc_c89" |
3198 | CC="$CC $ac_cv_prog_cc_c89" |
2765 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 |
3199 | fi |
2766 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; |
3200 | ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 |
2767 | esac |
3201 | ac_prog_cc_stdc=c89 |
2768 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
3202 | fi |
2769 | |
|
|
2770 | fi |
3203 | fi |
2771 | |
3204 | |
2772 | ac_ext=c |
3205 | ac_ext=c |
2773 | ac_cpp='$CPP $CPPFLAGS' |
3206 | ac_cpp='$CPP $CPPFLAGS' |
2774 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
3207 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
2775 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
3208 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
2776 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
3209 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
2777 | |
3210 | |
2778 | |
3211 | |
|
|
3212 | ac_header= ac_cache= |
|
|
3213 | for ac_item in $ac_header_c_list |
|
|
3214 | do |
|
|
3215 | if test $ac_cache; then |
|
|
3216 | ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default" |
|
|
3217 | if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then |
|
|
3218 | printf "%s\n" "#define $ac_item 1" >> confdefs.h |
|
|
3219 | fi |
|
|
3220 | ac_header= ac_cache= |
|
|
3221 | elif test $ac_header; then |
|
|
3222 | ac_cache=$ac_item |
|
|
3223 | else |
|
|
3224 | ac_header=$ac_item |
|
|
3225 | fi |
|
|
3226 | done |
|
|
3227 | |
|
|
3228 | |
|
|
3229 | |
|
|
3230 | |
|
|
3231 | |
|
|
3232 | |
|
|
3233 | |
|
|
3234 | |
|
|
3235 | if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes |
|
|
3236 | then : |
|
|
3237 | |
|
|
3238 | printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h |
|
|
3239 | |
|
|
3240 | fi |
|
|
3241 | |
|
|
3242 | |
|
|
3243 | |
|
|
3244 | |
|
|
3245 | |
|
|
3246 | |
|
|
3247 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 |
|
|
3248 | printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; } |
|
|
3249 | if test ${ac_cv_safe_to_define___extensions__+y} |
|
|
3250 | then : |
|
|
3251 | printf %s "(cached) " >&6 |
|
|
3252 | else $as_nop |
|
|
3253 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
3254 | /* end confdefs.h. */ |
|
|
3255 | |
|
|
3256 | # define __EXTENSIONS__ 1 |
|
|
3257 | $ac_includes_default |
|
|
3258 | int |
|
|
3259 | main (void) |
|
|
3260 | { |
|
|
3261 | |
|
|
3262 | ; |
|
|
3263 | return 0; |
|
|
3264 | } |
|
|
3265 | _ACEOF |
|
|
3266 | if ac_fn_c_try_compile "$LINENO" |
|
|
3267 | then : |
|
|
3268 | ac_cv_safe_to_define___extensions__=yes |
|
|
3269 | else $as_nop |
|
|
3270 | ac_cv_safe_to_define___extensions__=no |
|
|
3271 | fi |
|
|
3272 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
|
|
3273 | fi |
|
|
3274 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 |
|
|
3275 | printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; } |
|
|
3276 | |
|
|
3277 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5 |
|
|
3278 | printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; } |
|
|
3279 | if test ${ac_cv_should_define__xopen_source+y} |
|
|
3280 | then : |
|
|
3281 | printf %s "(cached) " >&6 |
|
|
3282 | else $as_nop |
|
|
3283 | ac_cv_should_define__xopen_source=no |
|
|
3284 | if test $ac_cv_header_wchar_h = yes |
|
|
3285 | then : |
|
|
3286 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
3287 | /* end confdefs.h. */ |
|
|
3288 | |
|
|
3289 | #include <wchar.h> |
|
|
3290 | mbstate_t x; |
|
|
3291 | int |
|
|
3292 | main (void) |
|
|
3293 | { |
|
|
3294 | |
|
|
3295 | ; |
|
|
3296 | return 0; |
|
|
3297 | } |
|
|
3298 | _ACEOF |
|
|
3299 | if ac_fn_c_try_compile "$LINENO" |
|
|
3300 | then : |
|
|
3301 | |
|
|
3302 | else $as_nop |
|
|
3303 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
3304 | /* end confdefs.h. */ |
|
|
3305 | |
|
|
3306 | #define _XOPEN_SOURCE 500 |
|
|
3307 | #include <wchar.h> |
|
|
3308 | mbstate_t x; |
|
|
3309 | int |
|
|
3310 | main (void) |
|
|
3311 | { |
|
|
3312 | |
|
|
3313 | ; |
|
|
3314 | return 0; |
|
|
3315 | } |
|
|
3316 | _ACEOF |
|
|
3317 | if ac_fn_c_try_compile "$LINENO" |
|
|
3318 | then : |
|
|
3319 | ac_cv_should_define__xopen_source=yes |
|
|
3320 | fi |
|
|
3321 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
|
|
3322 | fi |
|
|
3323 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
|
|
3324 | fi |
|
|
3325 | fi |
|
|
3326 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5 |
|
|
3327 | printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; } |
|
|
3328 | |
|
|
3329 | printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h |
|
|
3330 | |
|
|
3331 | printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h |
|
|
3332 | |
|
|
3333 | printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h |
|
|
3334 | |
|
|
3335 | printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h |
|
|
3336 | |
|
|
3337 | printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h |
|
|
3338 | |
|
|
3339 | printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h |
|
|
3340 | |
|
|
3341 | printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h |
|
|
3342 | |
|
|
3343 | printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h |
|
|
3344 | |
|
|
3345 | printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h |
|
|
3346 | |
|
|
3347 | printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h |
|
|
3348 | |
|
|
3349 | printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h |
|
|
3350 | |
|
|
3351 | printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h |
|
|
3352 | |
|
|
3353 | printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h |
|
|
3354 | |
|
|
3355 | printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h |
|
|
3356 | |
|
|
3357 | printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h |
|
|
3358 | |
|
|
3359 | if test $ac_cv_header_minix_config_h = yes |
|
|
3360 | then : |
|
|
3361 | MINIX=yes |
|
|
3362 | printf "%s\n" "#define _MINIX 1" >>confdefs.h |
|
|
3363 | |
|
|
3364 | printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h |
|
|
3365 | |
|
|
3366 | printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h |
|
|
3367 | |
|
|
3368 | else $as_nop |
|
|
3369 | MINIX= |
|
|
3370 | fi |
|
|
3371 | if test $ac_cv_safe_to_define___extensions__ = yes |
|
|
3372 | then : |
|
|
3373 | printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h |
|
|
3374 | |
|
|
3375 | fi |
|
|
3376 | if test $ac_cv_should_define__xopen_source = yes |
|
|
3377 | then : |
|
|
3378 | printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h |
|
|
3379 | |
|
|
3380 | fi |
|
|
3381 | |
2779 | |
3382 | |
2780 | ac_ext=c |
3383 | ac_ext=c |
2781 | ac_cpp='$CPP $CPPFLAGS' |
3384 | ac_cpp='$CPP $CPPFLAGS' |
2782 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
3385 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
2783 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
3386 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
2784 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
3387 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
2785 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 |
3388 | if test -n "$ac_tool_prefix"; then |
2786 | $as_echo_n "checking how to run the C preprocessor... " >&6; } |
3389 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
2787 | # On Suns, sometimes $CPP names a directory. |
3390 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
2788 | if test -n "$CPP" && test -d "$CPP"; then |
3391 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2789 | CPP= |
3392 | printf %s "checking for $ac_word... " >&6; } |
2790 | fi |
3393 | if test ${ac_cv_prog_CC+y} |
|
|
3394 | then : |
|
|
3395 | printf %s "(cached) " >&6 |
|
|
3396 | else $as_nop |
2791 | if test -z "$CPP"; then |
3397 | if test -n "$CC"; then |
2792 | if test "${ac_cv_prog_CPP+set}" = set; then : |
3398 | ac_cv_prog_CC="$CC" # Let the user override the test. |
2793 | $as_echo_n "(cached) " >&6 |
|
|
2794 | else |
3399 | else |
2795 | # Double quotes because CPP needs to be expanded |
3400 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2796 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
3401 | for as_dir in $PATH |
2797 | do |
|
|
2798 | ac_preproc_ok=false |
|
|
2799 | for ac_c_preproc_warn_flag in '' yes |
|
|
2800 | do |
3402 | do |
2801 | # Use a header file that comes with gcc, so configuring glibc |
3403 | IFS=$as_save_IFS |
2802 | # with a fresh cross-compiler works. |
3404 | case $as_dir in #((( |
2803 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
3405 | '') as_dir=./ ;; |
2804 | # <limits.h> exists even on freestanding compilers. |
3406 | */) ;; |
2805 | # On the NeXT, cc -E runs the code through the compiler's parser, |
3407 | *) as_dir=$as_dir/ ;; |
2806 | # not just through cpp. "Syntax error" is here to catch this case. |
3408 | esac |
|
|
3409 | for ac_exec_ext in '' $ac_executable_extensions; do |
|
|
3410 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
|
|
3411 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
|
|
3412 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
|
|
3413 | break 2 |
|
|
3414 | fi |
|
|
3415 | done |
|
|
3416 | done |
|
|
3417 | IFS=$as_save_IFS |
|
|
3418 | |
|
|
3419 | fi |
|
|
3420 | fi |
|
|
3421 | CC=$ac_cv_prog_CC |
|
|
3422 | if test -n "$CC"; then |
|
|
3423 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
|
|
3424 | printf "%s\n" "$CC" >&6; } |
|
|
3425 | else |
|
|
3426 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
|
|
3427 | printf "%s\n" "no" >&6; } |
|
|
3428 | fi |
|
|
3429 | |
|
|
3430 | |
|
|
3431 | fi |
|
|
3432 | if test -z "$ac_cv_prog_CC"; then |
|
|
3433 | ac_ct_CC=$CC |
|
|
3434 | # Extract the first word of "gcc", so it can be a program name with args. |
|
|
3435 | set dummy gcc; ac_word=$2 |
|
|
3436 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
|
|
3437 | printf %s "checking for $ac_word... " >&6; } |
|
|
3438 | if test ${ac_cv_prog_ac_ct_CC+y} |
|
|
3439 | then : |
|
|
3440 | printf %s "(cached) " >&6 |
|
|
3441 | else $as_nop |
|
|
3442 | if test -n "$ac_ct_CC"; then |
|
|
3443 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
|
|
3444 | else |
|
|
3445 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
|
3446 | for as_dir in $PATH |
|
|
3447 | do |
|
|
3448 | IFS=$as_save_IFS |
|
|
3449 | case $as_dir in #((( |
|
|
3450 | '') as_dir=./ ;; |
|
|
3451 | */) ;; |
|
|
3452 | *) as_dir=$as_dir/ ;; |
|
|
3453 | esac |
|
|
3454 | for ac_exec_ext in '' $ac_executable_extensions; do |
|
|
3455 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
|
|
3456 | ac_cv_prog_ac_ct_CC="gcc" |
|
|
3457 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
|
|
3458 | break 2 |
|
|
3459 | fi |
|
|
3460 | done |
|
|
3461 | done |
|
|
3462 | IFS=$as_save_IFS |
|
|
3463 | |
|
|
3464 | fi |
|
|
3465 | fi |
|
|
3466 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
|
|
3467 | if test -n "$ac_ct_CC"; then |
|
|
3468 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
|
|
3469 | printf "%s\n" "$ac_ct_CC" >&6; } |
|
|
3470 | else |
|
|
3471 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
|
|
3472 | printf "%s\n" "no" >&6; } |
|
|
3473 | fi |
|
|
3474 | |
|
|
3475 | if test "x$ac_ct_CC" = x; then |
|
|
3476 | CC="" |
|
|
3477 | else |
|
|
3478 | case $cross_compiling:$ac_tool_warned in |
|
|
3479 | yes:) |
|
|
3480 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
|
|
3481 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
|
|
3482 | ac_tool_warned=yes ;; |
|
|
3483 | esac |
|
|
3484 | CC=$ac_ct_CC |
|
|
3485 | fi |
|
|
3486 | else |
|
|
3487 | CC="$ac_cv_prog_CC" |
|
|
3488 | fi |
|
|
3489 | |
|
|
3490 | if test -z "$CC"; then |
|
|
3491 | if test -n "$ac_tool_prefix"; then |
|
|
3492 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
|
|
3493 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
|
|
3494 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
|
|
3495 | printf %s "checking for $ac_word... " >&6; } |
|
|
3496 | if test ${ac_cv_prog_CC+y} |
|
|
3497 | then : |
|
|
3498 | printf %s "(cached) " >&6 |
|
|
3499 | else $as_nop |
|
|
3500 | if test -n "$CC"; then |
|
|
3501 | ac_cv_prog_CC="$CC" # Let the user override the test. |
|
|
3502 | else |
|
|
3503 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
|
3504 | for as_dir in $PATH |
|
|
3505 | do |
|
|
3506 | IFS=$as_save_IFS |
|
|
3507 | case $as_dir in #((( |
|
|
3508 | '') as_dir=./ ;; |
|
|
3509 | */) ;; |
|
|
3510 | *) as_dir=$as_dir/ ;; |
|
|
3511 | esac |
|
|
3512 | for ac_exec_ext in '' $ac_executable_extensions; do |
|
|
3513 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
|
|
3514 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
|
|
3515 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
|
|
3516 | break 2 |
|
|
3517 | fi |
|
|
3518 | done |
|
|
3519 | done |
|
|
3520 | IFS=$as_save_IFS |
|
|
3521 | |
|
|
3522 | fi |
|
|
3523 | fi |
|
|
3524 | CC=$ac_cv_prog_CC |
|
|
3525 | if test -n "$CC"; then |
|
|
3526 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
|
|
3527 | printf "%s\n" "$CC" >&6; } |
|
|
3528 | else |
|
|
3529 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
|
|
3530 | printf "%s\n" "no" >&6; } |
|
|
3531 | fi |
|
|
3532 | |
|
|
3533 | |
|
|
3534 | fi |
|
|
3535 | fi |
|
|
3536 | if test -z "$CC"; then |
|
|
3537 | # Extract the first word of "cc", so it can be a program name with args. |
|
|
3538 | set dummy cc; ac_word=$2 |
|
|
3539 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
|
|
3540 | printf %s "checking for $ac_word... " >&6; } |
|
|
3541 | if test ${ac_cv_prog_CC+y} |
|
|
3542 | then : |
|
|
3543 | printf %s "(cached) " >&6 |
|
|
3544 | else $as_nop |
|
|
3545 | if test -n "$CC"; then |
|
|
3546 | ac_cv_prog_CC="$CC" # Let the user override the test. |
|
|
3547 | else |
|
|
3548 | ac_prog_rejected=no |
|
|
3549 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
|
3550 | for as_dir in $PATH |
|
|
3551 | do |
|
|
3552 | IFS=$as_save_IFS |
|
|
3553 | case $as_dir in #((( |
|
|
3554 | '') as_dir=./ ;; |
|
|
3555 | */) ;; |
|
|
3556 | *) as_dir=$as_dir/ ;; |
|
|
3557 | esac |
|
|
3558 | for ac_exec_ext in '' $ac_executable_extensions; do |
|
|
3559 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
|
|
3560 | if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
|
|
3561 | ac_prog_rejected=yes |
|
|
3562 | continue |
|
|
3563 | fi |
|
|
3564 | ac_cv_prog_CC="cc" |
|
|
3565 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
|
|
3566 | break 2 |
|
|
3567 | fi |
|
|
3568 | done |
|
|
3569 | done |
|
|
3570 | IFS=$as_save_IFS |
|
|
3571 | |
|
|
3572 | if test $ac_prog_rejected = yes; then |
|
|
3573 | # We found a bogon in the path, so make sure we never use it. |
|
|
3574 | set dummy $ac_cv_prog_CC |
|
|
3575 | shift |
|
|
3576 | if test $# != 0; then |
|
|
3577 | # We chose a different compiler from the bogus one. |
|
|
3578 | # However, it has the same basename, so the bogon will be chosen |
|
|
3579 | # first if we set CC to just the basename; use the full file name. |
|
|
3580 | shift |
|
|
3581 | ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@" |
|
|
3582 | fi |
|
|
3583 | fi |
|
|
3584 | fi |
|
|
3585 | fi |
|
|
3586 | CC=$ac_cv_prog_CC |
|
|
3587 | if test -n "$CC"; then |
|
|
3588 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
|
|
3589 | printf "%s\n" "$CC" >&6; } |
|
|
3590 | else |
|
|
3591 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
|
|
3592 | printf "%s\n" "no" >&6; } |
|
|
3593 | fi |
|
|
3594 | |
|
|
3595 | |
|
|
3596 | fi |
|
|
3597 | if test -z "$CC"; then |
|
|
3598 | if test -n "$ac_tool_prefix"; then |
|
|
3599 | for ac_prog in cl.exe |
|
|
3600 | do |
|
|
3601 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
|
|
3602 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
|
|
3603 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
|
|
3604 | printf %s "checking for $ac_word... " >&6; } |
|
|
3605 | if test ${ac_cv_prog_CC+y} |
|
|
3606 | then : |
|
|
3607 | printf %s "(cached) " >&6 |
|
|
3608 | else $as_nop |
|
|
3609 | if test -n "$CC"; then |
|
|
3610 | ac_cv_prog_CC="$CC" # Let the user override the test. |
|
|
3611 | else |
|
|
3612 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
|
3613 | for as_dir in $PATH |
|
|
3614 | do |
|
|
3615 | IFS=$as_save_IFS |
|
|
3616 | case $as_dir in #((( |
|
|
3617 | '') as_dir=./ ;; |
|
|
3618 | */) ;; |
|
|
3619 | *) as_dir=$as_dir/ ;; |
|
|
3620 | esac |
|
|
3621 | for ac_exec_ext in '' $ac_executable_extensions; do |
|
|
3622 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
|
|
3623 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
|
|
3624 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
|
|
3625 | break 2 |
|
|
3626 | fi |
|
|
3627 | done |
|
|
3628 | done |
|
|
3629 | IFS=$as_save_IFS |
|
|
3630 | |
|
|
3631 | fi |
|
|
3632 | fi |
|
|
3633 | CC=$ac_cv_prog_CC |
|
|
3634 | if test -n "$CC"; then |
|
|
3635 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
|
|
3636 | printf "%s\n" "$CC" >&6; } |
|
|
3637 | else |
|
|
3638 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
|
|
3639 | printf "%s\n" "no" >&6; } |
|
|
3640 | fi |
|
|
3641 | |
|
|
3642 | |
|
|
3643 | test -n "$CC" && break |
|
|
3644 | done |
|
|
3645 | fi |
|
|
3646 | if test -z "$CC"; then |
|
|
3647 | ac_ct_CC=$CC |
|
|
3648 | for ac_prog in cl.exe |
|
|
3649 | do |
|
|
3650 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
|
|
3651 | set dummy $ac_prog; ac_word=$2 |
|
|
3652 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
|
|
3653 | printf %s "checking for $ac_word... " >&6; } |
|
|
3654 | if test ${ac_cv_prog_ac_ct_CC+y} |
|
|
3655 | then : |
|
|
3656 | printf %s "(cached) " >&6 |
|
|
3657 | else $as_nop |
|
|
3658 | if test -n "$ac_ct_CC"; then |
|
|
3659 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
|
|
3660 | else |
|
|
3661 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
|
3662 | for as_dir in $PATH |
|
|
3663 | do |
|
|
3664 | IFS=$as_save_IFS |
|
|
3665 | case $as_dir in #((( |
|
|
3666 | '') as_dir=./ ;; |
|
|
3667 | */) ;; |
|
|
3668 | *) as_dir=$as_dir/ ;; |
|
|
3669 | esac |
|
|
3670 | for ac_exec_ext in '' $ac_executable_extensions; do |
|
|
3671 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
|
|
3672 | ac_cv_prog_ac_ct_CC="$ac_prog" |
|
|
3673 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
|
|
3674 | break 2 |
|
|
3675 | fi |
|
|
3676 | done |
|
|
3677 | done |
|
|
3678 | IFS=$as_save_IFS |
|
|
3679 | |
|
|
3680 | fi |
|
|
3681 | fi |
|
|
3682 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
|
|
3683 | if test -n "$ac_ct_CC"; then |
|
|
3684 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
|
|
3685 | printf "%s\n" "$ac_ct_CC" >&6; } |
|
|
3686 | else |
|
|
3687 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
|
|
3688 | printf "%s\n" "no" >&6; } |
|
|
3689 | fi |
|
|
3690 | |
|
|
3691 | |
|
|
3692 | test -n "$ac_ct_CC" && break |
|
|
3693 | done |
|
|
3694 | |
|
|
3695 | if test "x$ac_ct_CC" = x; then |
|
|
3696 | CC="" |
|
|
3697 | else |
|
|
3698 | case $cross_compiling:$ac_tool_warned in |
|
|
3699 | yes:) |
|
|
3700 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
|
|
3701 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
|
|
3702 | ac_tool_warned=yes ;; |
|
|
3703 | esac |
|
|
3704 | CC=$ac_ct_CC |
|
|
3705 | fi |
|
|
3706 | fi |
|
|
3707 | |
|
|
3708 | fi |
|
|
3709 | if test -z "$CC"; then |
|
|
3710 | if test -n "$ac_tool_prefix"; then |
|
|
3711 | # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args. |
|
|
3712 | set dummy ${ac_tool_prefix}clang; ac_word=$2 |
|
|
3713 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
|
|
3714 | printf %s "checking for $ac_word... " >&6; } |
|
|
3715 | if test ${ac_cv_prog_CC+y} |
|
|
3716 | then : |
|
|
3717 | printf %s "(cached) " >&6 |
|
|
3718 | else $as_nop |
|
|
3719 | if test -n "$CC"; then |
|
|
3720 | ac_cv_prog_CC="$CC" # Let the user override the test. |
|
|
3721 | else |
|
|
3722 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
|
3723 | for as_dir in $PATH |
|
|
3724 | do |
|
|
3725 | IFS=$as_save_IFS |
|
|
3726 | case $as_dir in #((( |
|
|
3727 | '') as_dir=./ ;; |
|
|
3728 | */) ;; |
|
|
3729 | *) as_dir=$as_dir/ ;; |
|
|
3730 | esac |
|
|
3731 | for ac_exec_ext in '' $ac_executable_extensions; do |
|
|
3732 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
|
|
3733 | ac_cv_prog_CC="${ac_tool_prefix}clang" |
|
|
3734 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
|
|
3735 | break 2 |
|
|
3736 | fi |
|
|
3737 | done |
|
|
3738 | done |
|
|
3739 | IFS=$as_save_IFS |
|
|
3740 | |
|
|
3741 | fi |
|
|
3742 | fi |
|
|
3743 | CC=$ac_cv_prog_CC |
|
|
3744 | if test -n "$CC"; then |
|
|
3745 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
|
|
3746 | printf "%s\n" "$CC" >&6; } |
|
|
3747 | else |
|
|
3748 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
|
|
3749 | printf "%s\n" "no" >&6; } |
|
|
3750 | fi |
|
|
3751 | |
|
|
3752 | |
|
|
3753 | fi |
|
|
3754 | if test -z "$ac_cv_prog_CC"; then |
|
|
3755 | ac_ct_CC=$CC |
|
|
3756 | # Extract the first word of "clang", so it can be a program name with args. |
|
|
3757 | set dummy clang; ac_word=$2 |
|
|
3758 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
|
|
3759 | printf %s "checking for $ac_word... " >&6; } |
|
|
3760 | if test ${ac_cv_prog_ac_ct_CC+y} |
|
|
3761 | then : |
|
|
3762 | printf %s "(cached) " >&6 |
|
|
3763 | else $as_nop |
|
|
3764 | if test -n "$ac_ct_CC"; then |
|
|
3765 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
|
|
3766 | else |
|
|
3767 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
|
3768 | for as_dir in $PATH |
|
|
3769 | do |
|
|
3770 | IFS=$as_save_IFS |
|
|
3771 | case $as_dir in #((( |
|
|
3772 | '') as_dir=./ ;; |
|
|
3773 | */) ;; |
|
|
3774 | *) as_dir=$as_dir/ ;; |
|
|
3775 | esac |
|
|
3776 | for ac_exec_ext in '' $ac_executable_extensions; do |
|
|
3777 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
|
|
3778 | ac_cv_prog_ac_ct_CC="clang" |
|
|
3779 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
|
|
3780 | break 2 |
|
|
3781 | fi |
|
|
3782 | done |
|
|
3783 | done |
|
|
3784 | IFS=$as_save_IFS |
|
|
3785 | |
|
|
3786 | fi |
|
|
3787 | fi |
|
|
3788 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
|
|
3789 | if test -n "$ac_ct_CC"; then |
|
|
3790 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
|
|
3791 | printf "%s\n" "$ac_ct_CC" >&6; } |
|
|
3792 | else |
|
|
3793 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
|
|
3794 | printf "%s\n" "no" >&6; } |
|
|
3795 | fi |
|
|
3796 | |
|
|
3797 | if test "x$ac_ct_CC" = x; then |
|
|
3798 | CC="" |
|
|
3799 | else |
|
|
3800 | case $cross_compiling:$ac_tool_warned in |
|
|
3801 | yes:) |
|
|
3802 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
|
|
3803 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
|
|
3804 | ac_tool_warned=yes ;; |
|
|
3805 | esac |
|
|
3806 | CC=$ac_ct_CC |
|
|
3807 | fi |
|
|
3808 | else |
|
|
3809 | CC="$ac_cv_prog_CC" |
|
|
3810 | fi |
|
|
3811 | |
|
|
3812 | fi |
|
|
3813 | |
|
|
3814 | |
|
|
3815 | test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
|
|
3816 | printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} |
|
|
3817 | as_fn_error $? "no acceptable C compiler found in \$PATH |
|
|
3818 | See \`config.log' for more details" "$LINENO" 5; } |
|
|
3819 | |
|
|
3820 | # Provide some information about the compiler. |
|
|
3821 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
|
|
3822 | set X $ac_compile |
|
|
3823 | ac_compiler=$2 |
|
|
3824 | for ac_option in --version -v -V -qversion -version; do |
|
|
3825 | { { ac_try="$ac_compiler $ac_option >&5" |
|
|
3826 | case "(($ac_try" in |
|
|
3827 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
3828 | *) ac_try_echo=$ac_try;; |
|
|
3829 | esac |
|
|
3830 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
|
|
3831 | printf "%s\n" "$ac_try_echo"; } >&5 |
|
|
3832 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err |
|
|
3833 | ac_status=$? |
|
|
3834 | if test -s conftest.err; then |
|
|
3835 | sed '10a\ |
|
|
3836 | ... rest of stderr output deleted ... |
|
|
3837 | 10q' conftest.err >conftest.er1 |
|
|
3838 | cat conftest.er1 >&5 |
|
|
3839 | fi |
|
|
3840 | rm -f conftest.er1 conftest.err |
|
|
3841 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
|
|
3842 | test $ac_status = 0; } |
|
|
3843 | done |
|
|
3844 | |
|
|
3845 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5 |
|
|
3846 | printf %s "checking whether the compiler supports GNU C... " >&6; } |
|
|
3847 | if test ${ac_cv_c_compiler_gnu+y} |
|
|
3848 | then : |
|
|
3849 | printf %s "(cached) " >&6 |
|
|
3850 | else $as_nop |
2807 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3851 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
2808 | /* end confdefs.h. */ |
3852 | /* end confdefs.h. */ |
|
|
3853 | |
|
|
3854 | int |
|
|
3855 | main (void) |
|
|
3856 | { |
2809 | #ifdef __STDC__ |
3857 | #ifndef __GNUC__ |
2810 | # include <limits.h> |
3858 | choke me |
2811 | #else |
|
|
2812 | # include <assert.h> |
|
|
2813 | #endif |
3859 | #endif |
2814 | Syntax error |
3860 | |
|
|
3861 | ; |
|
|
3862 | return 0; |
|
|
3863 | } |
2815 | _ACEOF |
3864 | _ACEOF |
2816 | if ac_fn_c_try_cpp "$LINENO"; then : |
3865 | if ac_fn_c_try_compile "$LINENO" |
|
|
3866 | then : |
|
|
3867 | ac_compiler_gnu=yes |
|
|
3868 | else $as_nop |
|
|
3869 | ac_compiler_gnu=no |
|
|
3870 | fi |
|
|
3871 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
|
|
3872 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
2817 | |
3873 | |
|
|
3874 | fi |
|
|
3875 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
|
|
3876 | printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; } |
|
|
3877 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
|
|
3878 | |
|
|
3879 | if test $ac_compiler_gnu = yes; then |
|
|
3880 | GCC=yes |
2818 | else |
3881 | else |
2819 | # Broken: fails on valid input. |
3882 | GCC= |
2820 | continue |
|
|
2821 | fi |
3883 | fi |
2822 | rm -f conftest.err conftest.i conftest.$ac_ext |
3884 | ac_test_CFLAGS=${CFLAGS+y} |
2823 | |
3885 | ac_save_CFLAGS=$CFLAGS |
2824 | # OK, works on sane cases. Now check whether nonexistent headers |
3886 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
2825 | # can be detected and how. |
3887 | printf %s "checking whether $CC accepts -g... " >&6; } |
|
|
3888 | if test ${ac_cv_prog_cc_g+y} |
|
|
3889 | then : |
|
|
3890 | printf %s "(cached) " >&6 |
|
|
3891 | else $as_nop |
|
|
3892 | ac_save_c_werror_flag=$ac_c_werror_flag |
|
|
3893 | ac_c_werror_flag=yes |
|
|
3894 | ac_cv_prog_cc_g=no |
|
|
3895 | CFLAGS="-g" |
2826 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3896 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
2827 | /* end confdefs.h. */ |
3897 | /* end confdefs.h. */ |
2828 | #include <ac_nonexistent.h> |
3898 | |
|
|
3899 | int |
|
|
3900 | main (void) |
|
|
3901 | { |
|
|
3902 | |
|
|
3903 | ; |
|
|
3904 | return 0; |
|
|
3905 | } |
2829 | _ACEOF |
3906 | _ACEOF |
2830 | if ac_fn_c_try_cpp "$LINENO"; then : |
3907 | if ac_fn_c_try_compile "$LINENO" |
2831 | # Broken: success on invalid input. |
3908 | then : |
2832 | continue |
3909 | ac_cv_prog_cc_g=yes |
|
|
3910 | else $as_nop |
|
|
3911 | CFLAGS="" |
|
|
3912 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
3913 | /* end confdefs.h. */ |
|
|
3914 | |
|
|
3915 | int |
|
|
3916 | main (void) |
|
|
3917 | { |
|
|
3918 | |
|
|
3919 | ; |
|
|
3920 | return 0; |
|
|
3921 | } |
|
|
3922 | _ACEOF |
|
|
3923 | if ac_fn_c_try_compile "$LINENO" |
|
|
3924 | then : |
|
|
3925 | |
|
|
3926 | else $as_nop |
|
|
3927 | ac_c_werror_flag=$ac_save_c_werror_flag |
|
|
3928 | CFLAGS="-g" |
|
|
3929 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
3930 | /* end confdefs.h. */ |
|
|
3931 | |
|
|
3932 | int |
|
|
3933 | main (void) |
|
|
3934 | { |
|
|
3935 | |
|
|
3936 | ; |
|
|
3937 | return 0; |
|
|
3938 | } |
|
|
3939 | _ACEOF |
|
|
3940 | if ac_fn_c_try_compile "$LINENO" |
|
|
3941 | then : |
|
|
3942 | ac_cv_prog_cc_g=yes |
|
|
3943 | fi |
|
|
3944 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
|
|
3945 | fi |
|
|
3946 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
|
|
3947 | fi |
|
|
3948 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
|
|
3949 | ac_c_werror_flag=$ac_save_c_werror_flag |
|
|
3950 | fi |
|
|
3951 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 |
|
|
3952 | printf "%s\n" "$ac_cv_prog_cc_g" >&6; } |
|
|
3953 | if test $ac_test_CFLAGS; then |
|
|
3954 | CFLAGS=$ac_save_CFLAGS |
|
|
3955 | elif test $ac_cv_prog_cc_g = yes; then |
|
|
3956 | if test "$GCC" = yes; then |
|
|
3957 | CFLAGS="-g -O2" |
|
|
3958 | else |
|
|
3959 | CFLAGS="-g" |
|
|
3960 | fi |
2833 | else |
3961 | else |
2834 | # Passes both tests. |
3962 | if test "$GCC" = yes; then |
2835 | ac_preproc_ok=: |
3963 | CFLAGS="-O2" |
2836 | break |
3964 | else |
|
|
3965 | CFLAGS= |
|
|
3966 | fi |
2837 | fi |
3967 | fi |
2838 | rm -f conftest.err conftest.i conftest.$ac_ext |
3968 | ac_prog_cc_stdc=no |
2839 | |
3969 | if test x$ac_prog_cc_stdc = xno |
|
|
3970 | then : |
|
|
3971 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5 |
|
|
3972 | printf %s "checking for $CC option to enable C11 features... " >&6; } |
|
|
3973 | if test ${ac_cv_prog_cc_c11+y} |
|
|
3974 | then : |
|
|
3975 | printf %s "(cached) " >&6 |
|
|
3976 | else $as_nop |
|
|
3977 | ac_cv_prog_cc_c11=no |
|
|
3978 | ac_save_CC=$CC |
|
|
3979 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
3980 | /* end confdefs.h. */ |
|
|
3981 | $ac_c_conftest_c11_program |
|
|
3982 | _ACEOF |
|
|
3983 | for ac_arg in '' -std=gnu11 |
|
|
3984 | do |
|
|
3985 | CC="$ac_save_CC $ac_arg" |
|
|
3986 | if ac_fn_c_try_compile "$LINENO" |
|
|
3987 | then : |
|
|
3988 | ac_cv_prog_cc_c11=$ac_arg |
|
|
3989 | fi |
|
|
3990 | rm -f core conftest.err conftest.$ac_objext conftest.beam |
|
|
3991 | test "x$ac_cv_prog_cc_c11" != "xno" && break |
2840 | done |
3992 | done |
2841 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
3993 | rm -f conftest.$ac_ext |
2842 | rm -f conftest.i conftest.err conftest.$ac_ext |
3994 | CC=$ac_save_CC |
2843 | if $ac_preproc_ok; then : |
|
|
2844 | break |
|
|
2845 | fi |
3995 | fi |
2846 | |
3996 | |
2847 | done |
3997 | if test "x$ac_cv_prog_cc_c11" = xno |
2848 | ac_cv_prog_CPP=$CPP |
3998 | then : |
2849 | |
3999 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
|
|
4000 | printf "%s\n" "unsupported" >&6; } |
|
|
4001 | else $as_nop |
|
|
4002 | if test "x$ac_cv_prog_cc_c11" = x |
|
|
4003 | then : |
|
|
4004 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
|
|
4005 | printf "%s\n" "none needed" >&6; } |
|
|
4006 | else $as_nop |
|
|
4007 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 |
|
|
4008 | printf "%s\n" "$ac_cv_prog_cc_c11" >&6; } |
|
|
4009 | CC="$CC $ac_cv_prog_cc_c11" |
2850 | fi |
4010 | fi |
2851 | CPP=$ac_cv_prog_CPP |
4011 | ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11 |
2852 | else |
4012 | ac_prog_cc_stdc=c11 |
2853 | ac_cv_prog_CPP=$CPP |
|
|
2854 | fi |
4013 | fi |
2855 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 |
4014 | fi |
2856 | $as_echo "$CPP" >&6; } |
4015 | if test x$ac_prog_cc_stdc = xno |
2857 | ac_preproc_ok=false |
4016 | then : |
2858 | for ac_c_preproc_warn_flag in '' yes |
4017 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5 |
|
|
4018 | printf %s "checking for $CC option to enable C99 features... " >&6; } |
|
|
4019 | if test ${ac_cv_prog_cc_c99+y} |
|
|
4020 | then : |
|
|
4021 | printf %s "(cached) " >&6 |
|
|
4022 | else $as_nop |
|
|
4023 | ac_cv_prog_cc_c99=no |
|
|
4024 | ac_save_CC=$CC |
|
|
4025 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
4026 | /* end confdefs.h. */ |
|
|
4027 | $ac_c_conftest_c99_program |
|
|
4028 | _ACEOF |
|
|
4029 | for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99= |
2859 | do |
4030 | do |
2860 | # Use a header file that comes with gcc, so configuring glibc |
4031 | CC="$ac_save_CC $ac_arg" |
2861 | # with a fresh cross-compiler works. |
4032 | if ac_fn_c_try_compile "$LINENO" |
2862 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
4033 | then : |
2863 | # <limits.h> exists even on freestanding compilers. |
4034 | ac_cv_prog_cc_c99=$ac_arg |
2864 | # On the NeXT, cc -E runs the code through the compiler's parser, |
4035 | fi |
2865 | # not just through cpp. "Syntax error" is here to catch this case. |
4036 | rm -f core conftest.err conftest.$ac_objext conftest.beam |
|
|
4037 | test "x$ac_cv_prog_cc_c99" != "xno" && break |
|
|
4038 | done |
|
|
4039 | rm -f conftest.$ac_ext |
|
|
4040 | CC=$ac_save_CC |
|
|
4041 | fi |
|
|
4042 | |
|
|
4043 | if test "x$ac_cv_prog_cc_c99" = xno |
|
|
4044 | then : |
|
|
4045 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
|
|
4046 | printf "%s\n" "unsupported" >&6; } |
|
|
4047 | else $as_nop |
|
|
4048 | if test "x$ac_cv_prog_cc_c99" = x |
|
|
4049 | then : |
|
|
4050 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
|
|
4051 | printf "%s\n" "none needed" >&6; } |
|
|
4052 | else $as_nop |
|
|
4053 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 |
|
|
4054 | printf "%s\n" "$ac_cv_prog_cc_c99" >&6; } |
|
|
4055 | CC="$CC $ac_cv_prog_cc_c99" |
|
|
4056 | fi |
|
|
4057 | ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 |
|
|
4058 | ac_prog_cc_stdc=c99 |
|
|
4059 | fi |
|
|
4060 | fi |
|
|
4061 | if test x$ac_prog_cc_stdc = xno |
|
|
4062 | then : |
|
|
4063 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5 |
|
|
4064 | printf %s "checking for $CC option to enable C89 features... " >&6; } |
|
|
4065 | if test ${ac_cv_prog_cc_c89+y} |
|
|
4066 | then : |
|
|
4067 | printf %s "(cached) " >&6 |
|
|
4068 | else $as_nop |
|
|
4069 | ac_cv_prog_cc_c89=no |
|
|
4070 | ac_save_CC=$CC |
2866 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4071 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
2867 | /* end confdefs.h. */ |
4072 | /* end confdefs.h. */ |
2868 | #ifdef __STDC__ |
4073 | $ac_c_conftest_c89_program |
2869 | # include <limits.h> |
|
|
2870 | #else |
|
|
2871 | # include <assert.h> |
|
|
2872 | #endif |
|
|
2873 | Syntax error |
|
|
2874 | _ACEOF |
4074 | _ACEOF |
|
|
4075 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
|
|
4076 | do |
|
|
4077 | CC="$ac_save_CC $ac_arg" |
2875 | if ac_fn_c_try_cpp "$LINENO"; then : |
4078 | if ac_fn_c_try_compile "$LINENO" |
2876 | |
4079 | then : |
2877 | else |
4080 | ac_cv_prog_cc_c89=$ac_arg |
2878 | # Broken: fails on valid input. |
|
|
2879 | continue |
|
|
2880 | fi |
4081 | fi |
2881 | rm -f conftest.err conftest.i conftest.$ac_ext |
4082 | rm -f core conftest.err conftest.$ac_objext conftest.beam |
2882 | |
4083 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
2883 | # OK, works on sane cases. Now check whether nonexistent headers |
|
|
2884 | # can be detected and how. |
|
|
2885 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
2886 | /* end confdefs.h. */ |
|
|
2887 | #include <ac_nonexistent.h> |
|
|
2888 | _ACEOF |
|
|
2889 | if ac_fn_c_try_cpp "$LINENO"; then : |
|
|
2890 | # Broken: success on invalid input. |
|
|
2891 | continue |
|
|
2892 | else |
|
|
2893 | # Passes both tests. |
|
|
2894 | ac_preproc_ok=: |
|
|
2895 | break |
|
|
2896 | fi |
|
|
2897 | rm -f conftest.err conftest.i conftest.$ac_ext |
|
|
2898 | |
|
|
2899 | done |
4084 | done |
2900 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
4085 | rm -f conftest.$ac_ext |
2901 | rm -f conftest.i conftest.err conftest.$ac_ext |
4086 | CC=$ac_save_CC |
2902 | if $ac_preproc_ok; then : |
4087 | fi |
2903 | |
4088 | |
2904 | else |
4089 | if test "x$ac_cv_prog_cc_c89" = xno |
2905 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4090 | then : |
2906 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
4091 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
2907 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check |
4092 | printf "%s\n" "unsupported" >&6; } |
2908 | See \`config.log' for more details" "$LINENO" 5 ; } |
4093 | else $as_nop |
|
|
4094 | if test "x$ac_cv_prog_cc_c89" = x |
|
|
4095 | then : |
|
|
4096 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
|
|
4097 | printf "%s\n" "none needed" >&6; } |
|
|
4098 | else $as_nop |
|
|
4099 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 |
|
|
4100 | printf "%s\n" "$ac_cv_prog_cc_c89" >&6; } |
|
|
4101 | CC="$CC $ac_cv_prog_cc_c89" |
|
|
4102 | fi |
|
|
4103 | ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 |
|
|
4104 | ac_prog_cc_stdc=c89 |
|
|
4105 | fi |
2909 | fi |
4106 | fi |
2910 | |
4107 | |
2911 | ac_ext=c |
4108 | ac_ext=c |
2912 | ac_cpp='$CPP $CPPFLAGS' |
4109 | ac_cpp='$CPP $CPPFLAGS' |
2913 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
4110 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
2914 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
4111 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
2915 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
4112 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
2916 | |
4113 | |
2917 | |
4114 | |
2918 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 |
4115 | ac_fn_c_check_header_compile "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default" |
2919 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } |
|
|
2920 | if test "${ac_cv_path_GREP+set}" = set; then : |
|
|
2921 | $as_echo_n "(cached) " >&6 |
|
|
2922 | else |
|
|
2923 | if test -z "$GREP"; then |
|
|
2924 | ac_path_GREP_found=false |
|
|
2925 | # Loop through the user's path and test for each of PROGNAME-LIST |
|
|
2926 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
|
2927 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
|
|
2928 | do |
|
|
2929 | IFS=$as_save_IFS |
|
|
2930 | test -z "$as_dir" && as_dir=. |
|
|
2931 | for ac_prog in grep ggrep; do |
|
|
2932 | for ac_exec_ext in '' $ac_executable_extensions; do |
|
|
2933 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" |
|
|
2934 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue |
|
|
2935 | # Check for GNU ac_path_GREP and select it if it is found. |
|
|
2936 | # Check for GNU $ac_path_GREP |
|
|
2937 | case `"$ac_path_GREP" --version 2>&1` in |
|
|
2938 | *GNU*) |
|
|
2939 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; |
|
|
2940 | *) |
|
|
2941 | ac_count=0 |
|
|
2942 | $as_echo_n 0123456789 >"conftest.in" |
|
|
2943 | while : |
|
|
2944 | do |
|
|
2945 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
|
|
2946 | mv "conftest.tmp" "conftest.in" |
|
|
2947 | cp "conftest.in" "conftest.nl" |
|
|
2948 | $as_echo 'GREP' >> "conftest.nl" |
|
|
2949 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
|
|
2950 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
|
|
2951 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
|
|
2952 | if test $ac_count -gt ${ac_path_GREP_max-0}; then |
|
|
2953 | # Best one so far, save it but keep looking for a better one |
|
|
2954 | ac_cv_path_GREP="$ac_path_GREP" |
|
|
2955 | ac_path_GREP_max=$ac_count |
|
|
2956 | fi |
|
|
2957 | # 10*(2^10) chars as input seems more than enough |
|
|
2958 | test $ac_count -gt 10 && break |
|
|
2959 | done |
|
|
2960 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
|
|
2961 | esac |
|
|
2962 | |
|
|
2963 | $ac_path_GREP_found && break 3 |
|
|
2964 | done |
|
|
2965 | done |
|
|
2966 | done |
|
|
2967 | IFS=$as_save_IFS |
|
|
2968 | if test -z "$ac_cv_path_GREP"; then |
|
|
2969 | as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
|
|
2970 | fi |
|
|
2971 | else |
|
|
2972 | ac_cv_path_GREP=$GREP |
|
|
2973 | fi |
|
|
2974 | |
|
|
2975 | fi |
|
|
2976 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 |
|
|
2977 | $as_echo "$ac_cv_path_GREP" >&6; } |
|
|
2978 | GREP="$ac_cv_path_GREP" |
|
|
2979 | |
|
|
2980 | |
|
|
2981 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 |
|
|
2982 | $as_echo_n "checking for egrep... " >&6; } |
|
|
2983 | if test "${ac_cv_path_EGREP+set}" = set; then : |
|
|
2984 | $as_echo_n "(cached) " >&6 |
|
|
2985 | else |
|
|
2986 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
|
|
2987 | then ac_cv_path_EGREP="$GREP -E" |
|
|
2988 | else |
|
|
2989 | if test -z "$EGREP"; then |
|
|
2990 | ac_path_EGREP_found=false |
|
|
2991 | # Loop through the user's path and test for each of PROGNAME-LIST |
|
|
2992 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
|
2993 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
|
|
2994 | do |
|
|
2995 | IFS=$as_save_IFS |
|
|
2996 | test -z "$as_dir" && as_dir=. |
|
|
2997 | for ac_prog in egrep; do |
|
|
2998 | for ac_exec_ext in '' $ac_executable_extensions; do |
|
|
2999 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
|
|
3000 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue |
|
|
3001 | # Check for GNU ac_path_EGREP and select it if it is found. |
|
|
3002 | # Check for GNU $ac_path_EGREP |
|
|
3003 | case `"$ac_path_EGREP" --version 2>&1` in |
|
|
3004 | *GNU*) |
|
|
3005 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
|
|
3006 | *) |
|
|
3007 | ac_count=0 |
|
|
3008 | $as_echo_n 0123456789 >"conftest.in" |
|
|
3009 | while : |
|
|
3010 | do |
|
|
3011 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
|
|
3012 | mv "conftest.tmp" "conftest.in" |
|
|
3013 | cp "conftest.in" "conftest.nl" |
|
|
3014 | $as_echo 'EGREP' >> "conftest.nl" |
|
|
3015 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
|
|
3016 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
|
|
3017 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
|
|
3018 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
|
|
3019 | # Best one so far, save it but keep looking for a better one |
|
|
3020 | ac_cv_path_EGREP="$ac_path_EGREP" |
|
|
3021 | ac_path_EGREP_max=$ac_count |
|
|
3022 | fi |
|
|
3023 | # 10*(2^10) chars as input seems more than enough |
|
|
3024 | test $ac_count -gt 10 && break |
|
|
3025 | done |
|
|
3026 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
|
|
3027 | esac |
|
|
3028 | |
|
|
3029 | $ac_path_EGREP_found && break 3 |
|
|
3030 | done |
|
|
3031 | done |
|
|
3032 | done |
|
|
3033 | IFS=$as_save_IFS |
|
|
3034 | if test -z "$ac_cv_path_EGREP"; then |
|
|
3035 | as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
|
|
3036 | fi |
|
|
3037 | else |
|
|
3038 | ac_cv_path_EGREP=$EGREP |
|
|
3039 | fi |
|
|
3040 | |
|
|
3041 | fi |
|
|
3042 | fi |
|
|
3043 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 |
|
|
3044 | $as_echo "$ac_cv_path_EGREP" >&6; } |
|
|
3045 | EGREP="$ac_cv_path_EGREP" |
|
|
3046 | |
|
|
3047 | |
|
|
3048 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 |
|
|
3049 | $as_echo_n "checking for ANSI C header files... " >&6; } |
|
|
3050 | if test "${ac_cv_header_stdc+set}" = set; then : |
|
|
3051 | $as_echo_n "(cached) " >&6 |
|
|
3052 | else |
|
|
3053 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
3054 | /* end confdefs.h. */ |
|
|
3055 | #include <stdlib.h> |
|
|
3056 | #include <stdarg.h> |
|
|
3057 | #include <string.h> |
|
|
3058 | #include <float.h> |
|
|
3059 | |
|
|
3060 | int |
|
|
3061 | main () |
|
|
3062 | { |
|
|
3063 | |
|
|
3064 | ; |
|
|
3065 | return 0; |
|
|
3066 | } |
|
|
3067 | _ACEOF |
|
|
3068 | if ac_fn_c_try_compile "$LINENO"; then : |
|
|
3069 | ac_cv_header_stdc=yes |
|
|
3070 | else |
|
|
3071 | ac_cv_header_stdc=no |
|
|
3072 | fi |
|
|
3073 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
3074 | |
|
|
3075 | if test $ac_cv_header_stdc = yes; then |
4116 | if test "x$ac_cv_header_stdint_h" = xyes |
3076 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
4117 | then : |
3077 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4118 | printf "%s\n" "#define HAVE_STDINT_H 1" >>confdefs.h |
3078 | /* end confdefs.h. */ |
|
|
3079 | #include <string.h> |
|
|
3080 | |
4119 | |
3081 | _ACEOF |
|
|
3082 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
|
|
3083 | $EGREP "memchr" >/dev/null 2>&1; then : |
|
|
3084 | |
|
|
3085 | else |
|
|
3086 | ac_cv_header_stdc=no |
|
|
3087 | fi |
4120 | fi |
3088 | rm -f conftest* |
4121 | ac_fn_c_check_header_compile "$LINENO" "sys/syscall.h" "ac_cv_header_sys_syscall_h" "$ac_includes_default" |
|
|
4122 | if test "x$ac_cv_header_sys_syscall_h" = xyes |
|
|
4123 | then : |
|
|
4124 | printf "%s\n" "#define HAVE_SYS_SYSCALL_H 1" >>confdefs.h |
3089 | |
4125 | |
3090 | fi |
4126 | fi |
3091 | |
|
|
3092 | if test $ac_cv_header_stdc = yes; then |
|
|
3093 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
|
|
3094 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
3095 | /* end confdefs.h. */ |
|
|
3096 | #include <stdlib.h> |
|
|
3097 | |
|
|
3098 | _ACEOF |
|
|
3099 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
|
|
3100 | $EGREP "free" >/dev/null 2>&1; then : |
|
|
3101 | |
|
|
3102 | else |
|
|
3103 | ac_cv_header_stdc=no |
|
|
3104 | fi |
|
|
3105 | rm -f conftest* |
|
|
3106 | |
|
|
3107 | fi |
|
|
3108 | |
|
|
3109 | if test $ac_cv_header_stdc = yes; then |
|
|
3110 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
|
|
3111 | if test "$cross_compiling" = yes; then : |
|
|
3112 | : |
|
|
3113 | else |
|
|
3114 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
3115 | /* end confdefs.h. */ |
|
|
3116 | #include <ctype.h> |
|
|
3117 | #include <stdlib.h> |
|
|
3118 | #if ((' ' & 0x0FF) == 0x020) |
|
|
3119 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
|
|
3120 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
|
|
3121 | #else |
|
|
3122 | # define ISLOWER(c) \ |
|
|
3123 | (('a' <= (c) && (c) <= 'i') \ |
|
|
3124 | || ('j' <= (c) && (c) <= 'r') \ |
|
|
3125 | || ('s' <= (c) && (c) <= 'z')) |
|
|
3126 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
|
|
3127 | #endif |
|
|
3128 | |
|
|
3129 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
|
|
3130 | int |
|
|
3131 | main () |
|
|
3132 | { |
|
|
3133 | int i; |
|
|
3134 | for (i = 0; i < 256; i++) |
|
|
3135 | if (XOR (islower (i), ISLOWER (i)) |
|
|
3136 | || toupper (i) != TOUPPER (i)) |
|
|
3137 | return 2; |
|
|
3138 | return 0; |
|
|
3139 | } |
|
|
3140 | _ACEOF |
|
|
3141 | if ac_fn_c_try_run "$LINENO"; then : |
|
|
3142 | |
|
|
3143 | else |
|
|
3144 | ac_cv_header_stdc=no |
|
|
3145 | fi |
|
|
3146 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
|
|
3147 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
|
|
3148 | fi |
|
|
3149 | |
|
|
3150 | fi |
|
|
3151 | fi |
|
|
3152 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 |
|
|
3153 | $as_echo "$ac_cv_header_stdc" >&6; } |
|
|
3154 | if test $ac_cv_header_stdc = yes; then |
|
|
3155 | |
|
|
3156 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h |
|
|
3157 | |
|
|
3158 | fi |
|
|
3159 | |
|
|
3160 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
|
|
3161 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
|
|
3162 | inttypes.h stdint.h unistd.h |
|
|
3163 | do : |
|
|
3164 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
|
|
3165 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default |
4127 | ac_fn_c_check_header_compile "$LINENO" "sys/prctl.h" "ac_cv_header_sys_prctl_h" "$ac_includes_default" |
3166 | " |
4128 | if test "x$ac_cv_header_sys_prctl_h" = xyes |
3167 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
4129 | then : |
3168 | cat >>confdefs.h <<_ACEOF |
4130 | printf "%s\n" "#define HAVE_SYS_PRCTL_H 1" >>confdefs.h |
3169 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
|
|
3170 | _ACEOF |
|
|
3171 | |
4131 | |
3172 | fi |
4132 | fi |
3173 | |
4133 | |
3174 | done |
|
|
3175 | |
4134 | |
3176 | |
|
|
3177 | for ac_header in linux/fs.h linux/fiemap.h |
|
|
3178 | do : |
|
|
3179 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
|
|
3180 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" |
|
|
3181 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
|
|
3182 | cat >>confdefs.h <<_ACEOF |
|
|
3183 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
|
|
3184 | _ACEOF |
|
|
3185 | |
|
|
3186 | fi |
|
|
3187 | |
|
|
3188 | done |
|
|
3189 | |
|
|
3190 | |
|
|
3191 | for ac_header in stdint.h sys/syscall.h sys/prctl.h |
|
|
3192 | do : |
|
|
3193 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
|
|
3194 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" |
|
|
3195 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
|
|
3196 | cat >>confdefs.h <<_ACEOF |
|
|
3197 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
|
|
3198 | _ACEOF |
|
|
3199 | |
|
|
3200 | fi |
|
|
3201 | |
|
|
3202 | done |
|
|
3203 | |
|
|
3204 | |
|
|
3205 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_create" >&5 |
4135 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_create" >&5 |
3206 | $as_echo_n "checking for library containing pthread_create... " >&6; } |
4136 | printf %s "checking for library containing pthread_create... " >&6; } |
3207 | if test "${ac_cv_search_pthread_create+set}" = set; then : |
4137 | if test ${ac_cv_search_pthread_create+y} |
3208 | $as_echo_n "(cached) " >&6 |
4138 | then : |
3209 | else |
4139 | printf %s "(cached) " >&6 |
|
|
4140 | else $as_nop |
3210 | ac_func_search_save_LIBS=$LIBS |
4141 | ac_func_search_save_LIBS=$LIBS |
3211 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4142 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3212 | /* end confdefs.h. */ |
4143 | /* end confdefs.h. */ |
3213 | |
4144 | |
3214 | /* Override any GCC internal prototype to avoid an error. |
4145 | /* Override any GCC internal prototype to avoid an error. |
3215 | Use char because int might match the return type of a GCC |
4146 | Use char because int might match the return type of a GCC |
3216 | builtin and then its argument prototype would still apply. */ |
4147 | builtin and then its argument prototype would still apply. */ |
3217 | #ifdef __cplusplus |
|
|
3218 | extern "C" |
|
|
3219 | #endif |
|
|
3220 | char pthread_create (); |
4148 | char pthread_create (); |
3221 | int |
4149 | int |
3222 | main () |
4150 | main (void) |
3223 | { |
4151 | { |
3224 | return pthread_create (); |
4152 | return pthread_create (); |
3225 | ; |
4153 | ; |
3226 | return 0; |
4154 | return 0; |
3227 | } |
4155 | } |
3228 | _ACEOF |
4156 | _ACEOF |
3229 | for ac_lib in '' pthread pthreads pthreadVC2; do |
4157 | for ac_lib in '' pthread pthreads pthreadVC2 |
|
|
4158 | do |
3230 | if test -z "$ac_lib"; then |
4159 | if test -z "$ac_lib"; then |
3231 | ac_res="none required" |
4160 | ac_res="none required" |
3232 | else |
4161 | else |
3233 | ac_res=-l$ac_lib |
4162 | ac_res=-l$ac_lib |
3234 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
4163 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
3235 | fi |
4164 | fi |
3236 | if ac_fn_c_try_link "$LINENO"; then : |
4165 | if ac_fn_c_try_link "$LINENO" |
|
|
4166 | then : |
3237 | ac_cv_search_pthread_create=$ac_res |
4167 | ac_cv_search_pthread_create=$ac_res |
3238 | fi |
4168 | fi |
3239 | rm -f core conftest.err conftest.$ac_objext \ |
4169 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
3240 | conftest$ac_exeext |
4170 | conftest$ac_exeext |
3241 | if test "${ac_cv_search_pthread_create+set}" = set; then : |
4171 | if test ${ac_cv_search_pthread_create+y} |
|
|
4172 | then : |
3242 | break |
4173 | break |
3243 | fi |
4174 | fi |
3244 | done |
4175 | done |
3245 | if test "${ac_cv_search_pthread_create+set}" = set; then : |
4176 | if test ${ac_cv_search_pthread_create+y} |
|
|
4177 | then : |
3246 | |
4178 | |
3247 | else |
4179 | else $as_nop |
3248 | ac_cv_search_pthread_create=no |
4180 | ac_cv_search_pthread_create=no |
3249 | fi |
4181 | fi |
3250 | rm conftest.$ac_ext |
4182 | rm conftest.$ac_ext |
3251 | LIBS=$ac_func_search_save_LIBS |
4183 | LIBS=$ac_func_search_save_LIBS |
3252 | fi |
4184 | fi |
3253 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_create" >&5 |
4185 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_create" >&5 |
3254 | $as_echo "$ac_cv_search_pthread_create" >&6; } |
4186 | printf "%s\n" "$ac_cv_search_pthread_create" >&6; } |
3255 | ac_res=$ac_cv_search_pthread_create |
4187 | ac_res=$ac_cv_search_pthread_create |
3256 | if test "$ac_res" != no; then : |
4188 | if test "$ac_res" != no |
|
|
4189 | then : |
3257 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
4190 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
3258 | |
4191 | |
3259 | else |
4192 | else $as_nop |
3260 | as_fn_error $? "pthread functions not found" "$LINENO" 5 |
4193 | as_fn_error $? "pthread functions not found" "$LINENO" 5 |
3261 | |
4194 | |
3262 | fi |
4195 | fi |
3263 | |
4196 | |
3264 | |
4197 | |
3265 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for utimes" >&5 |
4198 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for utimes" >&5 |
3266 | $as_echo_n "checking for utimes... " >&6; } |
4199 | printf %s "checking for utimes... " >&6; } |
3267 | if test "${ac_cv_utimes+set}" = set; then : |
4200 | if test ${ac_cv_utimes+y} |
3268 | $as_echo_n "(cached) " >&6 |
4201 | then : |
3269 | else |
4202 | printf %s "(cached) " >&6 |
|
|
4203 | else $as_nop |
3270 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4204 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3271 | /* end confdefs.h. */ |
4205 | /* end confdefs.h. */ |
3272 | |
4206 | |
3273 | #include <sys/types.h> |
4207 | #include <sys/types.h> |
3274 | #include <sys/time.h> |
4208 | #include <sys/time.h> |
… | |
… | |
3280 | res = utimes ("/", tv); |
4214 | res = utimes ("/", tv); |
3281 | return 0; |
4215 | return 0; |
3282 | } |
4216 | } |
3283 | |
4217 | |
3284 | _ACEOF |
4218 | _ACEOF |
3285 | if ac_fn_c_try_link "$LINENO"; then : |
4219 | if ac_fn_c_try_link "$LINENO" |
|
|
4220 | then : |
3286 | ac_cv_utimes=yes |
4221 | ac_cv_utimes=yes |
3287 | else |
4222 | else $as_nop |
3288 | ac_cv_utimes=no |
4223 | ac_cv_utimes=no |
3289 | fi |
4224 | fi |
3290 | rm -f core conftest.err conftest.$ac_objext \ |
4225 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
3291 | conftest$ac_exeext conftest.$ac_ext |
4226 | conftest$ac_exeext conftest.$ac_ext |
3292 | fi |
4227 | fi |
3293 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_utimes" >&5 |
4228 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_utimes" >&5 |
3294 | $as_echo "$ac_cv_utimes" >&6; } |
4229 | printf "%s\n" "$ac_cv_utimes" >&6; } |
3295 | test $ac_cv_utimes = yes && |
4230 | test $ac_cv_utimes = yes && |
3296 | $as_echo "#define HAVE_UTIMES 1" >>confdefs.h |
4231 | printf "%s\n" "#define HAVE_UTIMES 1" >>confdefs.h |
3297 | |
4232 | |
3298 | |
4233 | |
3299 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for futimes" >&5 |
4234 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for futimes" >&5 |
3300 | $as_echo_n "checking for futimes... " >&6; } |
4235 | printf %s "checking for futimes... " >&6; } |
3301 | if test "${ac_cv_futimes+set}" = set; then : |
4236 | if test ${ac_cv_futimes+y} |
3302 | $as_echo_n "(cached) " >&6 |
4237 | then : |
3303 | else |
4238 | printf %s "(cached) " >&6 |
|
|
4239 | else $as_nop |
3304 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4240 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3305 | /* end confdefs.h. */ |
4241 | /* end confdefs.h. */ |
3306 | |
4242 | |
3307 | #include <sys/types.h> |
4243 | #include <sys/types.h> |
3308 | #include <sys/time.h> |
4244 | #include <sys/time.h> |
… | |
… | |
3315 | res = futimes (fd, tv); |
4251 | res = futimes (fd, tv); |
3316 | return 0; |
4252 | return 0; |
3317 | } |
4253 | } |
3318 | |
4254 | |
3319 | _ACEOF |
4255 | _ACEOF |
3320 | if ac_fn_c_try_link "$LINENO"; then : |
4256 | if ac_fn_c_try_link "$LINENO" |
|
|
4257 | then : |
3321 | ac_cv_futimes=yes |
4258 | ac_cv_futimes=yes |
3322 | else |
4259 | else $as_nop |
3323 | ac_cv_futimes=no |
4260 | ac_cv_futimes=no |
3324 | fi |
4261 | fi |
3325 | rm -f core conftest.err conftest.$ac_objext \ |
4262 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
3326 | conftest$ac_exeext conftest.$ac_ext |
4263 | conftest$ac_exeext conftest.$ac_ext |
3327 | fi |
4264 | fi |
3328 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_futimes" >&5 |
4265 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_futimes" >&5 |
3329 | $as_echo "$ac_cv_futimes" >&6; } |
4266 | printf "%s\n" "$ac_cv_futimes" >&6; } |
3330 | test $ac_cv_futimes = yes && |
4267 | test $ac_cv_futimes = yes && |
3331 | $as_echo "#define HAVE_FUTIMES 1" >>confdefs.h |
4268 | printf "%s\n" "#define HAVE_FUTIMES 1" >>confdefs.h |
3332 | |
4269 | |
3333 | |
4270 | |
3334 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readahead" >&5 |
4271 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for readahead" >&5 |
3335 | $as_echo_n "checking for readahead... " >&6; } |
4272 | printf %s "checking for readahead... " >&6; } |
3336 | if test "${ac_cv_readahead+set}" = set; then : |
4273 | if test ${ac_cv_readahead+y} |
3337 | $as_echo_n "(cached) " >&6 |
4274 | then : |
3338 | else |
4275 | printf %s "(cached) " >&6 |
|
|
4276 | else $as_nop |
3339 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4277 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3340 | /* end confdefs.h. */ |
4278 | /* end confdefs.h. */ |
3341 | |
4279 | |
|
|
4280 | #include <sys/types.h> |
3342 | #include <fcntl.h> |
4281 | #include <fcntl.h> |
3343 | int main (void) |
4282 | int main (void) |
3344 | { |
4283 | { |
3345 | int fd = 0; |
4284 | int fd = 0; |
3346 | size_t count = 2; |
4285 | size_t count = 2; |
… | |
… | |
3348 | res = readahead (fd, 0, count); |
4287 | res = readahead (fd, 0, count); |
3349 | return 0; |
4288 | return 0; |
3350 | } |
4289 | } |
3351 | |
4290 | |
3352 | _ACEOF |
4291 | _ACEOF |
3353 | if ac_fn_c_try_link "$LINENO"; then : |
4292 | if ac_fn_c_try_link "$LINENO" |
|
|
4293 | then : |
3354 | ac_cv_readahead=yes |
4294 | ac_cv_readahead=yes |
3355 | else |
4295 | else $as_nop |
3356 | ac_cv_readahead=no |
4296 | ac_cv_readahead=no |
3357 | fi |
4297 | fi |
3358 | rm -f core conftest.err conftest.$ac_objext \ |
4298 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
3359 | conftest$ac_exeext conftest.$ac_ext |
4299 | conftest$ac_exeext conftest.$ac_ext |
3360 | fi |
4300 | fi |
3361 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_readahead" >&5 |
4301 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_readahead" >&5 |
3362 | $as_echo "$ac_cv_readahead" >&6; } |
4302 | printf "%s\n" "$ac_cv_readahead" >&6; } |
3363 | test $ac_cv_readahead = yes && |
4303 | test $ac_cv_readahead = yes && |
3364 | $as_echo "#define HAVE_READAHEAD 1" >>confdefs.h |
4304 | printf "%s\n" "#define HAVE_READAHEAD 1" >>confdefs.h |
3365 | |
4305 | |
3366 | |
4306 | |
3367 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fdatasync" >&5 |
4307 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fdatasync" >&5 |
3368 | $as_echo_n "checking for fdatasync... " >&6; } |
4308 | printf %s "checking for fdatasync... " >&6; } |
3369 | if test "${ac_cv_fdatasync+set}" = set; then : |
4309 | if test ${ac_cv_fdatasync+y} |
3370 | $as_echo_n "(cached) " >&6 |
4310 | then : |
3371 | else |
4311 | printf %s "(cached) " >&6 |
|
|
4312 | else $as_nop |
3372 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4313 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3373 | /* end confdefs.h. */ |
4314 | /* end confdefs.h. */ |
3374 | |
4315 | |
3375 | #include <unistd.h> |
4316 | #include <unistd.h> |
3376 | int main (void) |
4317 | int main (void) |
… | |
… | |
3379 | fdatasync (fd); |
4320 | fdatasync (fd); |
3380 | return 0; |
4321 | return 0; |
3381 | } |
4322 | } |
3382 | |
4323 | |
3383 | _ACEOF |
4324 | _ACEOF |
3384 | if ac_fn_c_try_link "$LINENO"; then : |
4325 | if ac_fn_c_try_link "$LINENO" |
|
|
4326 | then : |
3385 | ac_cv_fdatasync=yes |
4327 | ac_cv_fdatasync=yes |
3386 | else |
4328 | else $as_nop |
3387 | ac_cv_fdatasync=no |
4329 | ac_cv_fdatasync=no |
3388 | fi |
4330 | fi |
3389 | rm -f core conftest.err conftest.$ac_objext \ |
4331 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
3390 | conftest$ac_exeext conftest.$ac_ext |
4332 | conftest$ac_exeext conftest.$ac_ext |
3391 | fi |
4333 | fi |
3392 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fdatasync" >&5 |
4334 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fdatasync" >&5 |
3393 | $as_echo "$ac_cv_fdatasync" >&6; } |
4335 | printf "%s\n" "$ac_cv_fdatasync" >&6; } |
3394 | test $ac_cv_fdatasync = yes && |
4336 | test $ac_cv_fdatasync = yes && |
3395 | $as_echo "#define HAVE_FDATASYNC 1" >>confdefs.h |
4337 | printf "%s\n" "#define HAVE_FDATASYNC 1" >>confdefs.h |
3396 | |
4338 | |
3397 | |
4339 | |
3398 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pread and pwrite" >&5 |
|
|
3399 | $as_echo_n "checking for pread and pwrite... " >&6; } |
|
|
3400 | if test "${ac_cv_preadwrite+set}" = set; then : |
|
|
3401 | $as_echo_n "(cached) " >&6 |
|
|
3402 | else |
|
|
3403 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
3404 | /* end confdefs.h. */ |
|
|
3405 | |
|
|
3406 | #include <unistd.h> |
|
|
3407 | int main (void) |
|
|
3408 | { |
|
|
3409 | int fd = 0; |
|
|
3410 | size_t count = 1; |
|
|
3411 | char buf; |
|
|
3412 | off_t offset = 1; |
|
|
3413 | ssize_t res; |
|
|
3414 | res = pread (fd, &buf, count, offset); |
|
|
3415 | res = pwrite (fd, &buf, count, offset); |
|
|
3416 | return 0; |
|
|
3417 | } |
|
|
3418 | |
|
|
3419 | _ACEOF |
|
|
3420 | if ac_fn_c_try_link "$LINENO"; then : |
|
|
3421 | ac_cv_preadwrite=yes |
|
|
3422 | else |
|
|
3423 | ac_cv_preadwrite=no |
|
|
3424 | fi |
|
|
3425 | rm -f core conftest.err conftest.$ac_objext \ |
|
|
3426 | conftest$ac_exeext conftest.$ac_ext |
|
|
3427 | fi |
|
|
3428 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_preadwrite" >&5 |
|
|
3429 | $as_echo "$ac_cv_preadwrite" >&6; } |
|
|
3430 | test $ac_cv_preadwrite = yes && |
|
|
3431 | $as_echo "#define HAVE_PREADWRITE 1" >>confdefs.h |
|
|
3432 | |
|
|
3433 | |
|
|
3434 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sendfile" >&5 |
4340 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sendfile" >&5 |
3435 | $as_echo_n "checking for sendfile... " >&6; } |
4341 | printf %s "checking for sendfile... " >&6; } |
3436 | if test "${ac_cv_sendfile+set}" = set; then : |
4342 | if test ${ac_cv_sendfile+y} |
3437 | $as_echo_n "(cached) " >&6 |
4343 | then : |
3438 | else |
4344 | printf %s "(cached) " >&6 |
|
|
4345 | else $as_nop |
3439 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4346 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3440 | /* end confdefs.h. */ |
4347 | /* end confdefs.h. */ |
3441 | |
4348 | |
3442 | # include <sys/types.h> |
4349 | # include <sys/types.h> |
3443 | #if __linux |
4350 | #if __linux |
… | |
… | |
3455 | int fd = 0; |
4362 | int fd = 0; |
3456 | off_t offset = 1; |
4363 | off_t offset = 1; |
3457 | size_t count = 2; |
4364 | size_t count = 2; |
3458 | ssize_t res; |
4365 | ssize_t res; |
3459 | #if __linux |
4366 | #if __linux |
3460 | res = sendfile (fd, fd, offset, count); |
4367 | res = sendfile (fd, fd, &offset, count); |
3461 | #elif __FreeBSD__ |
4368 | #elif __FreeBSD__ |
3462 | res = sendfile (fd, fd, offset, count, 0, &offset, 0); |
4369 | res = sendfile (fd, fd, offset, count, 0, &offset, 0); |
3463 | #elif __hpux |
4370 | #elif __hpux |
3464 | res = sendfile (fd, fd, offset, count, 0, 0); |
4371 | res = sendfile (fd, fd, offset, count, 0, 0); |
3465 | #endif |
4372 | #endif |
3466 | return 0; |
4373 | return 0; |
3467 | } |
4374 | } |
3468 | |
4375 | |
3469 | _ACEOF |
4376 | _ACEOF |
3470 | if ac_fn_c_try_link "$LINENO"; then : |
4377 | if ac_fn_c_try_link "$LINENO" |
|
|
4378 | then : |
3471 | ac_cv_sendfile=yes |
4379 | ac_cv_sendfile=yes |
3472 | else |
4380 | else $as_nop |
3473 | ac_cv_sendfile=no |
4381 | ac_cv_sendfile=no |
3474 | fi |
4382 | fi |
3475 | rm -f core conftest.err conftest.$ac_objext \ |
4383 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
3476 | conftest$ac_exeext conftest.$ac_ext |
4384 | conftest$ac_exeext conftest.$ac_ext |
3477 | fi |
4385 | fi |
3478 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sendfile" >&5 |
4386 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sendfile" >&5 |
3479 | $as_echo "$ac_cv_sendfile" >&6; } |
4387 | printf "%s\n" "$ac_cv_sendfile" >&6; } |
3480 | test $ac_cv_sendfile = yes && |
4388 | test $ac_cv_sendfile = yes && |
3481 | $as_echo "#define HAVE_SENDFILE 1" >>confdefs.h |
4389 | printf "%s\n" "#define HAVE_SENDFILE 1" >>confdefs.h |
3482 | |
4390 | |
3483 | |
4391 | |
3484 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sync_file_range" >&5 |
4392 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sync_file_range" >&5 |
3485 | $as_echo_n "checking for sync_file_range... " >&6; } |
4393 | printf %s "checking for sync_file_range... " >&6; } |
3486 | if test "${ac_cv_sync_file_range+set}" = set; then : |
4394 | if test ${ac_cv_sync_file_range+y} |
3487 | $as_echo_n "(cached) " >&6 |
4395 | then : |
3488 | else |
4396 | printf %s "(cached) " >&6 |
|
|
4397 | else $as_nop |
3489 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4398 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3490 | /* end confdefs.h. */ |
4399 | /* end confdefs.h. */ |
3491 | |
4400 | |
|
|
4401 | #include <sys/types.h> |
3492 | #include <fcntl.h> |
4402 | #include <fcntl.h> |
3493 | int main (void) |
4403 | int main (void) |
3494 | { |
4404 | { |
3495 | int fd = 0; |
4405 | int fd = 0; |
3496 | off64_t offset = 1; |
4406 | off64_t offset = 1; |
… | |
… | |
3500 | res = sync_file_range (fd, offset, nbytes, flags); |
4410 | res = sync_file_range (fd, offset, nbytes, flags); |
3501 | return 0; |
4411 | return 0; |
3502 | } |
4412 | } |
3503 | |
4413 | |
3504 | _ACEOF |
4414 | _ACEOF |
3505 | if ac_fn_c_try_link "$LINENO"; then : |
4415 | if ac_fn_c_try_link "$LINENO" |
|
|
4416 | then : |
3506 | ac_cv_sync_file_range=yes |
4417 | ac_cv_sync_file_range=yes |
3507 | else |
4418 | else $as_nop |
3508 | ac_cv_sync_file_range=no |
4419 | ac_cv_sync_file_range=no |
3509 | fi |
4420 | fi |
3510 | rm -f core conftest.err conftest.$ac_objext \ |
4421 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
3511 | conftest$ac_exeext conftest.$ac_ext |
4422 | conftest$ac_exeext conftest.$ac_ext |
3512 | fi |
4423 | fi |
3513 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sync_file_range" >&5 |
4424 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sync_file_range" >&5 |
3514 | $as_echo "$ac_cv_sync_file_range" >&6; } |
4425 | printf "%s\n" "$ac_cv_sync_file_range" >&6; } |
3515 | test $ac_cv_sync_file_range = yes && |
4426 | test $ac_cv_sync_file_range = yes && |
3516 | $as_echo "#define HAVE_SYNC_FILE_RANGE 1" >>confdefs.h |
4427 | printf "%s\n" "#define HAVE_SYNC_FILE_RANGE 1" >>confdefs.h |
3517 | |
4428 | |
3518 | |
4429 | |
3519 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fallocate" >&5 |
4430 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fallocate" >&5 |
3520 | $as_echo_n "checking for fallocate... " >&6; } |
4431 | printf %s "checking for fallocate... " >&6; } |
3521 | if test "${ac_cv_fallocate+set}" = set; then : |
4432 | if test ${ac_cv_linux_fallocate+y} |
3522 | $as_echo_n "(cached) " >&6 |
4433 | then : |
3523 | else |
4434 | printf %s "(cached) " >&6 |
|
|
4435 | else $as_nop |
3524 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4436 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3525 | /* end confdefs.h. */ |
4437 | /* end confdefs.h. */ |
3526 | |
4438 | |
3527 | #include <fcntl.h> |
4439 | #include <fcntl.h> |
3528 | int main (void) |
4440 | int main (void) |
… | |
… | |
3535 | res = fallocate (fd, mode, offset, len); |
4447 | res = fallocate (fd, mode, offset, len); |
3536 | return 0; |
4448 | return 0; |
3537 | } |
4449 | } |
3538 | |
4450 | |
3539 | _ACEOF |
4451 | _ACEOF |
3540 | if ac_fn_c_try_link "$LINENO"; then : |
4452 | if ac_fn_c_try_link "$LINENO" |
|
|
4453 | then : |
3541 | ac_cv_fallocate=yes |
4454 | ac_cv_linux_fallocate=yes |
3542 | else |
4455 | else $as_nop |
3543 | ac_cv_fallocate=no |
4456 | ac_cv_linux_fallocate=no |
3544 | fi |
4457 | fi |
3545 | rm -f core conftest.err conftest.$ac_objext \ |
4458 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
3546 | conftest$ac_exeext conftest.$ac_ext |
4459 | conftest$ac_exeext conftest.$ac_ext |
3547 | fi |
4460 | fi |
3548 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fallocate" >&5 |
4461 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_linux_fallocate" >&5 |
3549 | $as_echo "$ac_cv_fallocate" >&6; } |
4462 | printf "%s\n" "$ac_cv_linux_fallocate" >&6; } |
3550 | test $ac_cv_fallocate = yes && |
4463 | test $ac_cv_linux_fallocate = yes && |
3551 | $as_echo "#define HAVE_FALLOCATE 1" >>confdefs.h |
4464 | printf "%s\n" "#define HAVE_LINUX_FALLOCATE 1" >>confdefs.h |
3552 | |
4465 | |
3553 | |
4466 | |
3554 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys_syncfs" >&5 |
4467 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sys_syncfs" >&5 |
3555 | $as_echo_n "checking for sys_syncfs... " >&6; } |
4468 | printf %s "checking for sys_syncfs... " >&6; } |
3556 | if test "${ac_cv_sys_syncfs+set}" = set; then : |
4469 | if test ${ac_cv_sys_syncfs+y} |
3557 | $as_echo_n "(cached) " >&6 |
4470 | then : |
3558 | else |
4471 | printf %s "(cached) " >&6 |
|
|
4472 | else $as_nop |
3559 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4473 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3560 | /* end confdefs.h. */ |
4474 | /* end confdefs.h. */ |
3561 | |
4475 | |
3562 | #include <unistd.h> |
4476 | #include <unistd.h> |
3563 | #include <sys/syscall.h> |
4477 | #include <sys/syscall.h> |
… | |
… | |
3565 | { |
4479 | { |
3566 | int res = syscall (__NR_syncfs, (int)0); |
4480 | int res = syscall (__NR_syncfs, (int)0); |
3567 | } |
4481 | } |
3568 | |
4482 | |
3569 | _ACEOF |
4483 | _ACEOF |
3570 | if ac_fn_c_try_link "$LINENO"; then : |
4484 | if ac_fn_c_try_link "$LINENO" |
|
|
4485 | then : |
3571 | ac_cv_sys_syncfs=yes |
4486 | ac_cv_sys_syncfs=yes |
3572 | else |
4487 | else $as_nop |
3573 | ac_cv_sys_syncfs=no |
4488 | ac_cv_sys_syncfs=no |
3574 | fi |
4489 | fi |
3575 | rm -f core conftest.err conftest.$ac_objext \ |
4490 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
3576 | conftest$ac_exeext conftest.$ac_ext |
4491 | conftest$ac_exeext conftest.$ac_ext |
3577 | fi |
4492 | fi |
3578 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_syncfs" >&5 |
4493 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_syncfs" >&5 |
3579 | $as_echo "$ac_cv_sys_syncfs" >&6; } |
4494 | printf "%s\n" "$ac_cv_sys_syncfs" >&6; } |
3580 | test $ac_cv_sys_syncfs = yes && |
4495 | test $ac_cv_sys_syncfs = yes && |
3581 | $as_echo "#define HAVE_SYS_SYNCFS 1" >>confdefs.h |
4496 | printf "%s\n" "#define HAVE_SYS_SYNCFS 1" >>confdefs.h |
3582 | |
4497 | |
3583 | |
4498 | |
3584 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prctl_set_name" >&5 |
4499 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for prctl_set_name" >&5 |
3585 | $as_echo_n "checking for prctl_set_name... " >&6; } |
4500 | printf %s "checking for prctl_set_name... " >&6; } |
3586 | if test "${ac_cv_prctl_set_name+set}" = set; then : |
4501 | if test ${ac_cv_prctl_set_name+y} |
3587 | $as_echo_n "(cached) " >&6 |
4502 | then : |
3588 | else |
4503 | printf %s "(cached) " >&6 |
|
|
4504 | else $as_nop |
3589 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4505 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3590 | /* end confdefs.h. */ |
4506 | /* end confdefs.h. */ |
3591 | |
4507 | |
3592 | #include <sys/prctl.h> |
4508 | #include <sys/prctl.h> |
3593 | int main (void) |
4509 | int main (void) |
3594 | { |
4510 | { |
3595 | char name = "test123"; |
4511 | char *name = "test123"; |
3596 | int res = prctl (PR_SET_NAME, (unsigned long)name, 0, 0, 0); |
4512 | int res = prctl (PR_SET_NAME, (unsigned long)name, 0, 0, 0); |
3597 | } |
4513 | } |
3598 | |
4514 | |
3599 | _ACEOF |
4515 | _ACEOF |
3600 | if ac_fn_c_try_link "$LINENO"; then : |
4516 | if ac_fn_c_try_link "$LINENO" |
|
|
4517 | then : |
3601 | ac_cv_prctl_set_name=yes |
4518 | ac_cv_prctl_set_name=yes |
3602 | else |
4519 | else $as_nop |
3603 | ac_cv_prctl_set_name=no |
4520 | ac_cv_prctl_set_name=no |
3604 | fi |
4521 | fi |
3605 | rm -f core conftest.err conftest.$ac_objext \ |
4522 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
3606 | conftest$ac_exeext conftest.$ac_ext |
4523 | conftest$ac_exeext conftest.$ac_ext |
3607 | fi |
4524 | fi |
3608 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prctl_set_name" >&5 |
4525 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prctl_set_name" >&5 |
3609 | $as_echo "$ac_cv_prctl_set_name" >&6; } |
4526 | printf "%s\n" "$ac_cv_prctl_set_name" >&6; } |
3610 | test $ac_cv_prctl_set_name = yes && |
4527 | test $ac_cv_prctl_set_name = yes && |
3611 | $as_echo "#define HAVE_PRCTL_SET_NAME 1" >>confdefs.h |
4528 | printf "%s\n" "#define HAVE_PRCTL_SET_NAME 1" >>confdefs.h |
3612 | |
4529 | |
3613 | |
4530 | |
|
|
4531 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for posix_close" >&5 |
|
|
4532 | printf %s "checking for posix_close... " >&6; } |
|
|
4533 | if test ${ac_cv_posix_close+y} |
|
|
4534 | then : |
|
|
4535 | printf %s "(cached) " >&6 |
|
|
4536 | else $as_nop |
|
|
4537 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
4538 | /* end confdefs.h. */ |
3614 | |
4539 | |
|
|
4540 | #include <unistd.h> |
|
|
4541 | int res; |
|
|
4542 | int main (void) |
|
|
4543 | { |
|
|
4544 | res = posix_close (0, 0); /* we do not need any flags */ |
|
|
4545 | return 0; |
|
|
4546 | } |
|
|
4547 | |
|
|
4548 | _ACEOF |
|
|
4549 | if ac_fn_c_try_link "$LINENO" |
|
|
4550 | then : |
|
|
4551 | ac_cv_posix_close=yes |
|
|
4552 | else $as_nop |
|
|
4553 | ac_cv_posix_close=no |
|
|
4554 | fi |
|
|
4555 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
|
|
4556 | conftest$ac_exeext conftest.$ac_ext |
|
|
4557 | fi |
|
|
4558 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_posix_close" >&5 |
|
|
4559 | printf "%s\n" "$ac_cv_posix_close" >&6; } |
|
|
4560 | test $ac_cv_posix_close = yes && |
|
|
4561 | printf "%s\n" "#define HAVE_POSIX_CLOSE 1" >>confdefs.h |
|
|
4562 | |
|
|
4563 | |
|
|
4564 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for renameat2" >&5 |
|
|
4565 | printf %s "checking for renameat2... " >&6; } |
|
|
4566 | if test ${ac_cv_renameat2+y} |
|
|
4567 | then : |
|
|
4568 | printf %s "(cached) " >&6 |
|
|
4569 | else $as_nop |
|
|
4570 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
4571 | /* end confdefs.h. */ |
|
|
4572 | |
|
|
4573 | #include <unistd.h> |
|
|
4574 | #include <sys/syscall.h> |
|
|
4575 | #include <linux/fs.h> |
|
|
4576 | int res; |
|
|
4577 | int main (void) |
|
|
4578 | { |
|
|
4579 | res = syscall (SYS_renameat2, 0, 0, 0, 0, RENAME_EXCHANGE | RENAME_NOREPLACE); |
|
|
4580 | return 0; |
|
|
4581 | } |
|
|
4582 | |
|
|
4583 | _ACEOF |
|
|
4584 | if ac_fn_c_try_link "$LINENO" |
|
|
4585 | then : |
|
|
4586 | ac_cv_renameat2=yes |
|
|
4587 | else $as_nop |
|
|
4588 | ac_cv_renameat2=no |
|
|
4589 | fi |
|
|
4590 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
|
|
4591 | conftest$ac_exeext conftest.$ac_ext |
|
|
4592 | fi |
|
|
4593 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_renameat2" >&5 |
|
|
4594 | printf "%s\n" "$ac_cv_renameat2" >&6; } |
|
|
4595 | test $ac_cv_renameat2 = yes && |
|
|
4596 | printf "%s\n" "#define HAVE_RENAMEAT2 1" >>confdefs.h |
|
|
4597 | |
|
|
4598 | |
|
|
4599 | |
|
|
4600 | |
|
|
4601 | # for these to work, you need to run autoheader in IO::AIO, not libeio :( |
|
|
4602 | |
|
|
4603 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for set/getrlimit" >&5 |
|
|
4604 | printf %s "checking for set/getrlimit... " >&6; } |
|
|
4605 | if test ${ac_cv_rlimits+y} |
|
|
4606 | then : |
|
|
4607 | printf %s "(cached) " >&6 |
|
|
4608 | else $as_nop |
|
|
4609 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
4610 | /* end confdefs.h. */ |
|
|
4611 | |
|
|
4612 | #include <sys/time.h> |
|
|
4613 | #include <sys/resource.h> |
|
|
4614 | int main (void) |
|
|
4615 | { |
|
|
4616 | struct rlimit srl; |
|
|
4617 | int res; |
|
|
4618 | srl.rlim_cur = srl.rlim_max = RLIM_INFINITY; |
|
|
4619 | res = getrlimit (RLIMIT_NOFILE, &srl); |
|
|
4620 | res = setrlimit (RLIMIT_NOFILE, &srl); |
|
|
4621 | return 0; |
|
|
4622 | } |
|
|
4623 | |
|
|
4624 | _ACEOF |
|
|
4625 | if ac_fn_c_try_link "$LINENO" |
|
|
4626 | then : |
|
|
4627 | ac_cv_rlimits=yes |
|
|
4628 | else $as_nop |
|
|
4629 | ac_cv_rlimits=no |
|
|
4630 | fi |
|
|
4631 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
|
|
4632 | conftest$ac_exeext conftest.$ac_ext |
|
|
4633 | fi |
|
|
4634 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_rlimits" >&5 |
|
|
4635 | printf "%s\n" "$ac_cv_rlimits" >&6; } |
|
|
4636 | test $ac_cv_rlimits = yes && |
|
|
4637 | printf "%s\n" "#define HAVE_RLIMITS 1" >>confdefs.h |
|
|
4638 | |
|
|
4639 | |
3615 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for posix_madvise" >&5 |
4640 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for posix_madvise" >&5 |
3616 | $as_echo_n "checking for posix_madvise... " >&6; } |
4641 | printf %s "checking for posix_madvise... " >&6; } |
3617 | if test "${ac_cv_posix_madvise+set}" = set; then : |
4642 | if test ${ac_cv_posix_madvise+y} |
3618 | $as_echo_n "(cached) " >&6 |
4643 | then : |
3619 | else |
4644 | printf %s "(cached) " >&6 |
|
|
4645 | else $as_nop |
3620 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4646 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3621 | /* end confdefs.h. */ |
4647 | /* end confdefs.h. */ |
3622 | |
4648 | |
3623 | #include <sys/mman.h> |
4649 | #include <sys/mman.h> |
3624 | int main (void) |
4650 | int main (void) |
… | |
… | |
3630 | int d = POSIX_MADV_DONTNEED; |
4656 | int d = POSIX_MADV_DONTNEED; |
3631 | return 0; |
4657 | return 0; |
3632 | } |
4658 | } |
3633 | |
4659 | |
3634 | _ACEOF |
4660 | _ACEOF |
3635 | if ac_fn_c_try_link "$LINENO"; then : |
4661 | if ac_fn_c_try_link "$LINENO" |
|
|
4662 | then : |
3636 | ac_cv_posix_madvise=yes |
4663 | ac_cv_posix_madvise=yes |
3637 | else |
4664 | else $as_nop |
3638 | ac_cv_posix_madvise=no |
4665 | ac_cv_posix_madvise=no |
3639 | fi |
4666 | fi |
3640 | rm -f core conftest.err conftest.$ac_objext \ |
4667 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
3641 | conftest$ac_exeext conftest.$ac_ext |
4668 | conftest$ac_exeext conftest.$ac_ext |
3642 | fi |
4669 | fi |
3643 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_posix_madvise" >&5 |
4670 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_posix_madvise" >&5 |
3644 | $as_echo "$ac_cv_posix_madvise" >&6; } |
4671 | printf "%s\n" "$ac_cv_posix_madvise" >&6; } |
3645 | test $ac_cv_posix_madvise = yes && |
4672 | test $ac_cv_posix_madvise = yes && |
3646 | $as_echo "#define HAVE_POSIX_MADVISE 1" >>confdefs.h |
4673 | printf "%s\n" "#define HAVE_POSIX_MADVISE 1" >>confdefs.h |
3647 | |
4674 | |
3648 | |
4675 | |
3649 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for posix_fadvise" >&5 |
4676 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for posix_fadvise" >&5 |
3650 | $as_echo_n "checking for posix_fadvise... " >&6; } |
4677 | printf %s "checking for posix_fadvise... " >&6; } |
3651 | if test "${ac_cv_posix_fadvise+set}" = set; then : |
4678 | if test ${ac_cv_posix_fadvise+y} |
3652 | $as_echo_n "(cached) " >&6 |
4679 | then : |
3653 | else |
4680 | printf %s "(cached) " >&6 |
|
|
4681 | else $as_nop |
3654 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4682 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3655 | /* end confdefs.h. */ |
4683 | /* end confdefs.h. */ |
3656 | |
4684 | |
3657 | #define _XOPEN_SOURCE 600 |
4685 | #define _XOPEN_SOURCE 600 |
3658 | #include <fcntl.h> |
4686 | #include <fcntl.h> |
… | |
… | |
3666 | int e = POSIX_FADV_DONTNEED; |
4694 | int e = POSIX_FADV_DONTNEED; |
3667 | return 0; |
4695 | return 0; |
3668 | } |
4696 | } |
3669 | |
4697 | |
3670 | _ACEOF |
4698 | _ACEOF |
3671 | if ac_fn_c_try_link "$LINENO"; then : |
4699 | if ac_fn_c_try_link "$LINENO" |
|
|
4700 | then : |
3672 | ac_cv_posix_fadvise=yes |
4701 | ac_cv_posix_fadvise=yes |
3673 | else |
4702 | else $as_nop |
3674 | ac_cv_posix_fadvise=no |
4703 | ac_cv_posix_fadvise=no |
3675 | fi |
4704 | fi |
3676 | rm -f core conftest.err conftest.$ac_objext \ |
4705 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
3677 | conftest$ac_exeext conftest.$ac_ext |
4706 | conftest$ac_exeext conftest.$ac_ext |
3678 | fi |
4707 | fi |
3679 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_posix_fadvise" >&5 |
4708 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_posix_fadvise" >&5 |
3680 | $as_echo "$ac_cv_posix_fadvise" >&6; } |
4709 | printf "%s\n" "$ac_cv_posix_fadvise" >&6; } |
3681 | test $ac_cv_posix_fadvise = yes && |
4710 | test $ac_cv_posix_fadvise = yes && |
3682 | $as_echo "#define HAVE_POSIX_FADVISE 1" >>confdefs.h |
4711 | printf "%s\n" "#define HAVE_POSIX_FADVISE 1" >>confdefs.h |
3683 | |
4712 | |
3684 | |
4713 | |
|
|
4714 | ac_fn_c_check_header_compile "$LINENO" "linux/fs.h" "ac_cv_header_linux_fs_h" "$ac_includes_default" |
|
|
4715 | if test "x$ac_cv_header_linux_fs_h" = xyes |
|
|
4716 | then : |
|
|
4717 | printf "%s\n" "#define HAVE_LINUX_FS_H 1" >>confdefs.h |
|
|
4718 | |
|
|
4719 | fi |
|
|
4720 | ac_fn_c_check_header_compile "$LINENO" "linux/fiemap.h" "ac_cv_header_linux_fiemap_h" "$ac_includes_default" |
|
|
4721 | if test "x$ac_cv_header_linux_fiemap_h" = xyes |
|
|
4722 | then : |
|
|
4723 | printf "%s\n" "#define HAVE_LINUX_FIEMAP_H 1" >>confdefs.h |
|
|
4724 | |
|
|
4725 | fi |
|
|
4726 | |
|
|
4727 | |
|
|
4728 | ac_fn_c_check_header_compile "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default" |
|
|
4729 | if test "x$ac_cv_header_sys_sysmacros_h" = xyes |
|
|
4730 | then : |
|
|
4731 | printf "%s\n" "#define HAVE_SYS_SYSMACROS_H 1" >>confdefs.h |
|
|
4732 | |
|
|
4733 | fi |
|
|
4734 | |
|
|
4735 | |
|
|
4736 | ac_fn_c_check_header_compile "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default" |
|
|
4737 | if test "x$ac_cv_header_sys_mkdev_h" = xyes |
|
|
4738 | then : |
|
|
4739 | printf "%s\n" "#define HAVE_SYS_MKDEV_H 1" >>confdefs.h |
|
|
4740 | |
|
|
4741 | fi |
|
|
4742 | |
|
|
4743 | |
|
|
4744 | ac_fn_c_check_header_compile "$LINENO" "sys/uio.h" "ac_cv_header_sys_uio_h" "$ac_includes_default" |
|
|
4745 | if test "x$ac_cv_header_sys_uio_h" = xyes |
|
|
4746 | then : |
|
|
4747 | printf "%s\n" "#define HAVE_SYS_UIO_H 1" >>confdefs.h |
|
|
4748 | |
|
|
4749 | fi |
|
|
4750 | |
|
|
4751 | |
|
|
4752 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for siginfo_t" >&5 |
|
|
4753 | printf %s "checking for siginfo_t... " >&6; } |
|
|
4754 | if test ${ac_cv_siginfo_t+y} |
|
|
4755 | then : |
|
|
4756 | printf %s "(cached) " >&6 |
|
|
4757 | else $as_nop |
|
|
4758 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
4759 | /* end confdefs.h. */ |
|
|
4760 | |
|
|
4761 | #include <signal.h> |
|
|
4762 | int main (void) |
|
|
4763 | { |
|
|
4764 | siginfo_t si; |
|
|
4765 | si.si_code; |
|
|
4766 | si.si_pid; |
|
|
4767 | si.si_uid; |
|
|
4768 | si.si_value.sival_int; |
|
|
4769 | si.si_value.sival_ptr; |
|
|
4770 | return 0; |
|
|
4771 | } |
|
|
4772 | |
|
|
4773 | _ACEOF |
|
|
4774 | if ac_fn_c_try_link "$LINENO" |
|
|
4775 | then : |
|
|
4776 | ac_cv_siginfo_t=yes |
|
|
4777 | else $as_nop |
|
|
4778 | ac_cv_siginfo_t=no |
|
|
4779 | fi |
|
|
4780 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
|
|
4781 | conftest$ac_exeext conftest.$ac_ext |
|
|
4782 | fi |
|
|
4783 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_siginfo_t" >&5 |
|
|
4784 | printf "%s\n" "$ac_cv_siginfo_t" >&6; } |
|
|
4785 | test $ac_cv_siginfo_t = yes && |
|
|
4786 | printf "%s\n" "#define HAVE_SIGINFO_T 1" >>confdefs.h |
|
|
4787 | |
|
|
4788 | |
|
|
4789 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for unix-style syscall interface" >&5 |
|
|
4790 | printf %s "checking for unix-style syscall interface... " >&6; } |
|
|
4791 | if test ${ac_cv_syscall+y} |
|
|
4792 | then : |
|
|
4793 | printf %s "(cached) " >&6 |
|
|
4794 | else $as_nop |
|
|
4795 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
4796 | /* end confdefs.h. */ |
|
|
4797 | |
|
|
4798 | #include <unistd.h> |
|
|
4799 | #include <sys/syscall.h> |
|
|
4800 | int main (void) |
|
|
4801 | { |
|
|
4802 | long res = syscall (SYS_exit, 0); |
|
|
4803 | return 0; |
|
|
4804 | } |
|
|
4805 | |
|
|
4806 | _ACEOF |
|
|
4807 | if ac_fn_c_try_link "$LINENO" |
|
|
4808 | then : |
|
|
4809 | ac_cv_syscall=yes |
|
|
4810 | else $as_nop |
|
|
4811 | ac_cv_syscall=no |
|
|
4812 | fi |
|
|
4813 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
|
|
4814 | conftest$ac_exeext conftest.$ac_ext |
|
|
4815 | fi |
|
|
4816 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_syscall" >&5 |
|
|
4817 | printf "%s\n" "$ac_cv_syscall" >&6; } |
|
|
4818 | test $ac_cv_syscall = yes && |
|
|
4819 | printf "%s\n" "#define HAVE_SYSCALL 1" >>confdefs.h |
|
|
4820 | |
|
|
4821 | |
|
|
4822 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for splice, vmsplice and tee" >&5 |
|
|
4823 | printf %s "checking for splice, vmsplice and tee... " >&6; } |
|
|
4824 | if test ${ac_cv_linux_splice+y} |
|
|
4825 | then : |
|
|
4826 | printf %s "(cached) " >&6 |
|
|
4827 | else $as_nop |
|
|
4828 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
4829 | /* end confdefs.h. */ |
|
|
4830 | |
|
|
4831 | #include <sys/types.h> |
|
|
4832 | #include <fcntl.h> |
|
|
4833 | #include <sys/uio.h> |
|
|
4834 | int main (void) |
|
|
4835 | { |
|
|
4836 | ssize_t res; |
|
|
4837 | res = splice ((int)0, (loff_t)0, (int)0, (loff_t *)0, (size_t)0, SPLICE_F_MOVE | SPLICE_F_NONBLOCK | SPLICE_F_MORE); |
|
|
4838 | res = tee ((int)0, (int)0, (size_t)0, SPLICE_F_NONBLOCK); |
|
|
4839 | res = vmsplice ((int)0, (struct iovec *)0, 0, SPLICE_F_NONBLOCK | SPLICE_F_GIFT); |
|
|
4840 | return 0; |
|
|
4841 | } |
|
|
4842 | |
|
|
4843 | _ACEOF |
|
|
4844 | if ac_fn_c_try_link "$LINENO" |
|
|
4845 | then : |
|
|
4846 | ac_cv_linux_splice=yes |
|
|
4847 | else $as_nop |
|
|
4848 | ac_cv_linux_splice=no |
|
|
4849 | fi |
|
|
4850 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
|
|
4851 | conftest$ac_exeext conftest.$ac_ext |
|
|
4852 | fi |
|
|
4853 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_linux_splice" >&5 |
|
|
4854 | printf "%s\n" "$ac_cv_linux_splice" >&6; } |
|
|
4855 | test $ac_cv_linux_splice = yes && |
|
|
4856 | printf "%s\n" "#define HAVE_LINUX_SPLICE 1" >>confdefs.h |
|
|
4857 | |
|
|
4858 | |
|
|
4859 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pipe2" >&5 |
|
|
4860 | printf %s "checking for pipe2... " >&6; } |
|
|
4861 | if test ${ac_cv_pipe2+y} |
|
|
4862 | then : |
|
|
4863 | printf %s "(cached) " >&6 |
|
|
4864 | else $as_nop |
|
|
4865 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
4866 | /* end confdefs.h. */ |
|
|
4867 | |
|
|
4868 | #include <fcntl.h> |
|
|
4869 | #include <unistd.h> |
|
|
4870 | int main (void) |
|
|
4871 | { |
|
|
4872 | int res; |
|
|
4873 | res = pipe2 (0, 0); |
|
|
4874 | return 0; |
|
|
4875 | } |
|
|
4876 | |
|
|
4877 | _ACEOF |
|
|
4878 | if ac_fn_c_try_link "$LINENO" |
|
|
4879 | then : |
|
|
4880 | ac_cv_pipe2=yes |
|
|
4881 | else $as_nop |
|
|
4882 | ac_cv_pipe2=no |
|
|
4883 | fi |
|
|
4884 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
|
|
4885 | conftest$ac_exeext conftest.$ac_ext |
|
|
4886 | fi |
|
|
4887 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pipe2" >&5 |
|
|
4888 | printf "%s\n" "$ac_cv_pipe2" >&6; } |
|
|
4889 | test $ac_cv_pipe2 = yes && |
|
|
4890 | printf "%s\n" "#define HAVE_PIPE2 1" >>confdefs.h |
|
|
4891 | |
|
|
4892 | |
|
|
4893 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for eventfd" >&5 |
|
|
4894 | printf %s "checking for eventfd... " >&6; } |
|
|
4895 | if test ${ac_cv_eventfd+y} |
|
|
4896 | then : |
|
|
4897 | printf %s "(cached) " >&6 |
|
|
4898 | else $as_nop |
|
|
4899 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
4900 | /* end confdefs.h. */ |
|
|
4901 | |
|
|
4902 | #include <sys/eventfd.h> |
|
|
4903 | int main (void) |
|
|
4904 | { |
|
|
4905 | int res; |
|
|
4906 | res = eventfd (1, EFD_CLOEXEC | EFD_NONBLOCK); |
|
|
4907 | return 0; |
|
|
4908 | } |
|
|
4909 | |
|
|
4910 | _ACEOF |
|
|
4911 | if ac_fn_c_try_link "$LINENO" |
|
|
4912 | then : |
|
|
4913 | ac_cv_eventfd=yes |
|
|
4914 | else $as_nop |
|
|
4915 | ac_cv_eventfd=no |
|
|
4916 | fi |
|
|
4917 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
|
|
4918 | conftest$ac_exeext conftest.$ac_ext |
|
|
4919 | fi |
|
|
4920 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_eventfd" >&5 |
|
|
4921 | printf "%s\n" "$ac_cv_eventfd" >&6; } |
|
|
4922 | test $ac_cv_eventfd = yes && |
|
|
4923 | printf "%s\n" "#define HAVE_EVENTFD 1" >>confdefs.h |
|
|
4924 | |
|
|
4925 | |
|
|
4926 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for timerfd_*" >&5 |
|
|
4927 | printf %s "checking for timerfd_*... " >&6; } |
|
|
4928 | if test ${ac_cv_timerfd+y} |
|
|
4929 | then : |
|
|
4930 | printf %s "(cached) " >&6 |
|
|
4931 | else $as_nop |
|
|
4932 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
4933 | /* end confdefs.h. */ |
|
|
4934 | |
|
|
4935 | #include <sys/timerfd.h> |
|
|
4936 | int main (void) |
|
|
4937 | { |
|
|
4938 | struct itimerspec its; |
|
|
4939 | int res; |
|
|
4940 | res = timerfd_create (CLOCK_REALTIME, TFD_CLOEXEC | TFD_NONBLOCK); |
|
|
4941 | res = timerfd_settime (res, TFD_TIMER_ABSTIME /*| TFD_TIMER_CANCEL_ON_SET*/, &its, 0); |
|
|
4942 | res = timerfd_gettime (res, &its); |
|
|
4943 | return 0; |
|
|
4944 | } |
|
|
4945 | |
|
|
4946 | _ACEOF |
|
|
4947 | if ac_fn_c_try_link "$LINENO" |
|
|
4948 | then : |
|
|
4949 | ac_cv_timerfd=yes |
|
|
4950 | else $as_nop |
|
|
4951 | ac_cv_timerfd=no |
|
|
4952 | fi |
|
|
4953 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
|
|
4954 | conftest$ac_exeext conftest.$ac_ext |
|
|
4955 | fi |
|
|
4956 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_timerfd" >&5 |
|
|
4957 | printf "%s\n" "$ac_cv_timerfd" >&6; } |
|
|
4958 | test $ac_cv_timerfd = yes && |
|
|
4959 | printf "%s\n" "#define HAVE_TIMERFD 1" >>confdefs.h |
|
|
4960 | |
|
|
4961 | |
|
|
4962 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for memfd_create" >&5 |
|
|
4963 | printf %s "checking for memfd_create... " >&6; } |
|
|
4964 | if test ${ac_cv_memfd_create+y} |
|
|
4965 | then : |
|
|
4966 | printf %s "(cached) " >&6 |
|
|
4967 | else $as_nop |
|
|
4968 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
4969 | /* end confdefs.h. */ |
|
|
4970 | |
|
|
4971 | #include <sys/mman.h> |
|
|
4972 | int main (void) |
|
|
4973 | { |
|
|
4974 | int res = memfd_create ("name", MFD_CLOEXEC | MFD_ALLOW_SEALING); |
|
|
4975 | return 0; |
|
|
4976 | } |
|
|
4977 | |
|
|
4978 | _ACEOF |
|
|
4979 | if ac_fn_c_try_link "$LINENO" |
|
|
4980 | then : |
|
|
4981 | ac_cv_memfd_create=yes |
|
|
4982 | else $as_nop |
|
|
4983 | ac_cv_memfd_create=no |
|
|
4984 | fi |
|
|
4985 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
|
|
4986 | conftest$ac_exeext conftest.$ac_ext |
|
|
4987 | fi |
|
|
4988 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_memfd_create" >&5 |
|
|
4989 | printf "%s\n" "$ac_cv_memfd_create" >&6; } |
|
|
4990 | test $ac_cv_memfd_create = yes && |
|
|
4991 | printf "%s\n" "#define HAVE_MEMFD_CREATE 1" >>confdefs.h |
|
|
4992 | |
|
|
4993 | |
|
|
4994 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for copy_file_range" >&5 |
|
|
4995 | printf %s "checking for copy_file_range... " >&6; } |
|
|
4996 | if test ${ac_cv_copy_file_range+y} |
|
|
4997 | then : |
|
|
4998 | printf %s "(cached) " >&6 |
|
|
4999 | else $as_nop |
|
|
5000 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
5001 | /* end confdefs.h. */ |
|
|
5002 | |
|
|
5003 | #include <unistd.h> |
|
|
5004 | #include <sys/syscall.h> |
|
|
5005 | /*#include <linux/copy.h>*/ |
|
|
5006 | int main (void) |
|
|
5007 | { |
|
|
5008 | int res; |
|
|
5009 | /*res = syscall (SYS_copy_file_range, 0, 0, 0, 0, 0, COPY_FR_REFLINK | COPY_FR_DEDUP | COPY_FR_COPY);*/ |
|
|
5010 | res = syscall (SYS_copy_file_range, 0, 0, 0, 0, 0, 0); |
|
|
5011 | return 0; |
|
|
5012 | } |
|
|
5013 | |
|
|
5014 | _ACEOF |
|
|
5015 | if ac_fn_c_try_link "$LINENO" |
|
|
5016 | then : |
|
|
5017 | ac_cv_copy_file_range=yes |
|
|
5018 | else $as_nop |
|
|
5019 | ac_cv_copy_file_range=no |
|
|
5020 | fi |
|
|
5021 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
|
|
5022 | conftest$ac_exeext conftest.$ac_ext |
|
|
5023 | fi |
|
|
5024 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_copy_file_range" >&5 |
|
|
5025 | printf "%s\n" "$ac_cv_copy_file_range" >&6; } |
|
|
5026 | test $ac_cv_copy_file_range = yes && |
|
|
5027 | printf "%s\n" "#define HAVE_COPY_FILE_RANGE 1" >>confdefs.h |
|
|
5028 | |
|
|
5029 | |
|
|
5030 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for st_xtimensec" >&5 |
|
|
5031 | printf %s "checking for st_xtimensec... " >&6; } |
|
|
5032 | if test ${ac_cv_xtimensec+y} |
|
|
5033 | then : |
|
|
5034 | printf %s "(cached) " >&6 |
|
|
5035 | else $as_nop |
|
|
5036 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
5037 | /* end confdefs.h. */ |
|
|
5038 | |
|
|
5039 | #include "EXTERN.h" |
|
|
5040 | #include "perl.h" |
|
|
5041 | #include "XSUB.h" |
|
|
5042 | |
|
|
5043 | int main (void) |
|
|
5044 | { |
|
|
5045 | return PL_statcache.st_atimensec |
|
|
5046 | + PL_statcache.st_mtimensec |
|
|
5047 | + PL_statcache.st_ctimensec; |
|
|
5048 | } |
|
|
5049 | |
|
|
5050 | _ACEOF |
|
|
5051 | if ac_fn_c_try_compile "$LINENO" |
|
|
5052 | then : |
|
|
5053 | ac_cv_xtimensec=yes |
|
|
5054 | else $as_nop |
|
|
5055 | ac_cv_xtimensec=no |
|
|
5056 | fi |
|
|
5057 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
|
|
5058 | fi |
|
|
5059 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_xtimensec" >&5 |
|
|
5060 | printf "%s\n" "$ac_cv_xtimensec" >&6; } |
|
|
5061 | test $ac_cv_xtimensec = yes && |
|
|
5062 | printf "%s\n" "#define HAVE_ST_XTIMENSEC 1" >>confdefs.h |
|
|
5063 | |
|
|
5064 | |
|
|
5065 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for st_xtimespec" >&5 |
|
|
5066 | printf %s "checking for st_xtimespec... " >&6; } |
|
|
5067 | if test ${ac_cv_xtimespec+y} |
|
|
5068 | then : |
|
|
5069 | printf %s "(cached) " >&6 |
|
|
5070 | else $as_nop |
|
|
5071 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
5072 | /* end confdefs.h. */ |
|
|
5073 | |
|
|
5074 | #include "EXTERN.h" |
|
|
5075 | #include "perl.h" |
|
|
5076 | #include "XSUB.h" |
|
|
5077 | |
|
|
5078 | int main (void) |
|
|
5079 | { |
|
|
5080 | return PL_statcache.st_atim.tv_nsec |
|
|
5081 | + PL_statcache.st_mtim.tv_nsec |
|
|
5082 | + PL_statcache.st_ctim.tv_nsec; |
|
|
5083 | } |
|
|
5084 | |
|
|
5085 | _ACEOF |
|
|
5086 | if ac_fn_c_try_compile "$LINENO" |
|
|
5087 | then : |
|
|
5088 | ac_cv_xtimespec=yes |
|
|
5089 | else $as_nop |
|
|
5090 | ac_cv_xtimespec=no |
|
|
5091 | fi |
|
|
5092 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
|
|
5093 | fi |
|
|
5094 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_xtimespec" >&5 |
|
|
5095 | printf "%s\n" "$ac_cv_xtimespec" >&6; } |
|
|
5096 | test $ac_cv_xtimespec = yes && |
|
|
5097 | printf "%s\n" "#define HAVE_ST_XTIMESPEC 1" >>confdefs.h |
|
|
5098 | |
|
|
5099 | |
|
|
5100 | # apparently, True64 uses st_u[amc]time, aix uses at_[amc]time_n and apple uses st_[amc,birth]timespec? |
|
|
5101 | |
|
|
5102 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for st_birthtimensec" >&5 |
|
|
5103 | printf %s "checking for st_birthtimensec... " >&6; } |
|
|
5104 | if test ${ac_cv_birthtimensec+y} |
|
|
5105 | then : |
|
|
5106 | printf %s "(cached) " >&6 |
|
|
5107 | else $as_nop |
|
|
5108 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
5109 | /* end confdefs.h. */ |
|
|
5110 | |
|
|
5111 | #include "EXTERN.h" |
|
|
5112 | #include "perl.h" |
|
|
5113 | #include "XSUB.h" |
|
|
5114 | |
|
|
5115 | int main (void) |
|
|
5116 | { |
|
|
5117 | return PL_statcache.st_birthtime + PL_statcache.st_birthtimensec; |
|
|
5118 | } |
|
|
5119 | |
|
|
5120 | _ACEOF |
|
|
5121 | if ac_fn_c_try_compile "$LINENO" |
|
|
5122 | then : |
|
|
5123 | ac_cv_birthtimensec=yes |
|
|
5124 | else $as_nop |
|
|
5125 | ac_cv_birthtimensec=no |
|
|
5126 | fi |
|
|
5127 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
|
|
5128 | fi |
|
|
5129 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_birthtimensec" >&5 |
|
|
5130 | printf "%s\n" "$ac_cv_birthtimensec" >&6; } |
|
|
5131 | test $ac_cv_birthtimensec = yes && |
|
|
5132 | printf "%s\n" "#define HAVE_ST_BIRTHTIMENSEC 1" >>confdefs.h |
|
|
5133 | |
|
|
5134 | |
|
|
5135 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for st_birthtimespec" >&5 |
|
|
5136 | printf %s "checking for st_birthtimespec... " >&6; } |
|
|
5137 | if test ${ac_cv_birthtimespec+y} |
|
|
5138 | then : |
|
|
5139 | printf %s "(cached) " >&6 |
|
|
5140 | else $as_nop |
|
|
5141 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
5142 | /* end confdefs.h. */ |
|
|
5143 | |
|
|
5144 | #include "EXTERN.h" |
|
|
5145 | #include "perl.h" |
|
|
5146 | #include "XSUB.h" |
|
|
5147 | |
|
|
5148 | int main (void) |
|
|
5149 | { |
|
|
5150 | return PL_statcache.st_birthtim.tv_sec + PL_statcache.st_birthtim.tv_nsec; |
|
|
5151 | } |
|
|
5152 | |
|
|
5153 | _ACEOF |
|
|
5154 | if ac_fn_c_try_compile "$LINENO" |
|
|
5155 | then : |
|
|
5156 | ac_cv_birthtimespec=yes |
|
|
5157 | else $as_nop |
|
|
5158 | ac_cv_birthtimespec=no |
|
|
5159 | fi |
|
|
5160 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
|
|
5161 | fi |
|
|
5162 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_birthtimespec" >&5 |
|
|
5163 | printf "%s\n" "$ac_cv_birthtimespec" >&6; } |
|
|
5164 | test $ac_cv_birthtimespec = yes && |
|
|
5165 | printf "%s\n" "#define HAVE_ST_BIRTHTIMESPEC 1" >>confdefs.h |
|
|
5166 | |
|
|
5167 | |
|
|
5168 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for st_gen" >&5 |
|
|
5169 | printf %s "checking for st_gen... " >&6; } |
|
|
5170 | if test ${ac_cv_st_gen+y} |
|
|
5171 | then : |
|
|
5172 | printf %s "(cached) " >&6 |
|
|
5173 | else $as_nop |
|
|
5174 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
5175 | /* end confdefs.h. */ |
|
|
5176 | |
|
|
5177 | #include "EXTERN.h" |
|
|
5178 | #include "perl.h" |
|
|
5179 | #include "XSUB.h" |
|
|
5180 | |
|
|
5181 | int main (void) |
|
|
5182 | { |
|
|
5183 | return PL_statcache.st_gen; |
|
|
5184 | } |
|
|
5185 | |
|
|
5186 | _ACEOF |
|
|
5187 | if ac_fn_c_try_compile "$LINENO" |
|
|
5188 | then : |
|
|
5189 | ac_cv_st_gen=yes |
|
|
5190 | else $as_nop |
|
|
5191 | ac_cv_st_gen=no |
|
|
5192 | fi |
|
|
5193 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
|
|
5194 | fi |
|
|
5195 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_st_gen" >&5 |
|
|
5196 | printf "%s\n" "$ac_cv_st_gen" >&6; } |
|
|
5197 | test $ac_cv_st_gen = yes && |
|
|
5198 | printf "%s\n" "#define HAVE_ST_GEN 1" >>confdefs.h |
|
|
5199 | |
|
|
5200 | |
|
|
5201 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for statx" >&5 |
|
|
5202 | printf %s "checking for statx... " >&6; } |
|
|
5203 | if test ${ac_cv_statx+y} |
|
|
5204 | then : |
|
|
5205 | printf %s "(cached) " >&6 |
|
|
5206 | else $as_nop |
|
|
5207 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
5208 | /* end confdefs.h. */ |
|
|
5209 | |
|
|
5210 | #include <sys/types.h> |
|
|
5211 | #include <sys/stat.h> |
|
|
5212 | #include <unistd.h> |
|
|
5213 | #include <fcntl.h> |
|
|
5214 | int res; |
|
|
5215 | int main (void) |
|
|
5216 | { |
|
|
5217 | struct statx sx; |
|
|
5218 | int res; |
|
|
5219 | res = statx (AT_FDCWD, ".", |
|
|
5220 | AT_EMPTY_PATH | AT_NO_AUTOMOUNT | AT_SYMLINK_NOFOLLOW | AT_STATX_SYNC_AS_STAT | AT_STATX_FORCE_SYNC | AT_STATX_DONT_SYNC, |
|
|
5221 | STATX_ALL, &sx); |
|
|
5222 | STATX_TYPE; STATX_MODE; STATX_NLINK; STATX_UID; STATX_GID; STATX_ATIME; STATX_MTIME; STATX_CTIME; |
|
|
5223 | STATX_INO; STATX_SIZE; STATX_BLOCKS; STATX_BASIC_STATS; STATX_BTIME; STATX_ALL; |
|
|
5224 | STATX_ATTR_COMPRESSED; STATX_ATTR_IMMUTABLE; STATX_ATTR_APPEND; STATX_ATTR_NODUMP; STATX_ATTR_ENCRYPTED; |
|
|
5225 | return 0; |
|
|
5226 | } |
|
|
5227 | |
|
|
5228 | _ACEOF |
|
|
5229 | if ac_fn_c_try_link "$LINENO" |
|
|
5230 | then : |
|
|
5231 | ac_cv_statx=yes |
|
|
5232 | else $as_nop |
|
|
5233 | ac_cv_statx=no |
|
|
5234 | fi |
|
|
5235 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
|
|
5236 | conftest$ac_exeext conftest.$ac_ext |
|
|
5237 | fi |
|
|
5238 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_statx" >&5 |
|
|
5239 | printf "%s\n" "$ac_cv_statx" >&6; } |
|
|
5240 | test $ac_cv_statx = yes && |
|
|
5241 | printf "%s\n" "#define HAVE_STATX 1" >>confdefs.h |
|
|
5242 | |
|
|
5243 | |
|
|
5244 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for accept4" >&5 |
|
|
5245 | printf %s "checking for accept4... " >&6; } |
|
|
5246 | if test ${ac_cv_accept4+y} |
|
|
5247 | then : |
|
|
5248 | printf %s "(cached) " >&6 |
|
|
5249 | else $as_nop |
|
|
5250 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
5251 | /* end confdefs.h. */ |
|
|
5252 | |
|
|
5253 | #include <sys/types.h> |
|
|
5254 | #include <sys/socket.h> |
|
|
5255 | int main (void) |
|
|
5256 | { |
|
|
5257 | int res; |
|
|
5258 | res = accept4 (1, (struct sockaddr *)0, (socklen_t)0, SOCK_NONBLOCK | SOCK_CLOEXEC); |
|
|
5259 | return 0; |
|
|
5260 | } |
|
|
5261 | |
|
|
5262 | _ACEOF |
|
|
5263 | if ac_fn_c_try_link "$LINENO" |
|
|
5264 | then : |
|
|
5265 | ac_cv_accept4=yes |
|
|
5266 | else $as_nop |
|
|
5267 | ac_cv_accept4=no |
|
|
5268 | fi |
|
|
5269 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
|
|
5270 | conftest$ac_exeext conftest.$ac_ext |
|
|
5271 | fi |
|
|
5272 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_accept4" >&5 |
|
|
5273 | printf "%s\n" "$ac_cv_accept4" >&6; } |
|
|
5274 | test $ac_cv_accept4 = yes && |
|
|
5275 | printf "%s\n" "#define HAVE_ACCEPT4 1" >>confdefs.h |
|
|
5276 | |
|
|
5277 | |
|
|
5278 | ac_fn_c_check_header_compile "$LINENO" "sys/mount.h" "ac_cv_header_sys_mount_h" "$ac_includes_default" |
|
|
5279 | if test "x$ac_cv_header_sys_mount_h" = xyes |
|
|
5280 | then : |
|
|
5281 | printf "%s\n" "#define HAVE_SYS_MOUNT_H 1" >>confdefs.h |
|
|
5282 | |
|
|
5283 | fi |
|
|
5284 | |
|
|
5285 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for mount/umount" >&5 |
|
|
5286 | printf %s "checking for mount/umount... " >&6; } |
|
|
5287 | if test ${ac_cv_mount+y} |
|
|
5288 | then : |
|
|
5289 | printf %s "(cached) " >&6 |
|
|
5290 | else $as_nop |
|
|
5291 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
5292 | /* end confdefs.h. */ |
|
|
5293 | |
|
|
5294 | #include <sys/mount.h> |
|
|
5295 | int main (void) |
|
|
5296 | { |
|
|
5297 | int res; |
|
|
5298 | res = mount ("path", "path", "fstype", MS_RDONLY, 0); |
|
|
5299 | res = umount ("path"); |
|
|
5300 | return 0; |
|
|
5301 | } |
|
|
5302 | |
|
|
5303 | _ACEOF |
|
|
5304 | if ac_fn_c_try_link "$LINENO" |
|
|
5305 | then : |
|
|
5306 | ac_cv_mount=yes |
|
|
5307 | else $as_nop |
|
|
5308 | ac_cv_mount=no |
|
|
5309 | fi |
|
|
5310 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
|
|
5311 | conftest$ac_exeext conftest.$ac_ext |
|
|
5312 | fi |
|
|
5313 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_mount" >&5 |
|
|
5314 | printf "%s\n" "$ac_cv_mount" >&6; } |
|
|
5315 | test $ac_cv_mount = yes && |
|
|
5316 | printf "%s\n" "#define HAVE_MOUNT 1" >>confdefs.h |
|
|
5317 | |
|
|
5318 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for umount2" >&5 |
|
|
5319 | printf %s "checking for umount2... " >&6; } |
|
|
5320 | if test ${ac_cv_umount2+y} |
|
|
5321 | then : |
|
|
5322 | printf %s "(cached) " >&6 |
|
|
5323 | else $as_nop |
|
|
5324 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
5325 | /* end confdefs.h. */ |
|
|
5326 | |
|
|
5327 | #include <sys/mount.h> |
|
|
5328 | int main (void) |
|
|
5329 | { |
|
|
5330 | int res; |
|
|
5331 | res = umount2 ("path", MNT_FORCE|MNT_DETACH); |
|
|
5332 | return 0; |
|
|
5333 | } |
|
|
5334 | |
|
|
5335 | _ACEOF |
|
|
5336 | if ac_fn_c_try_link "$LINENO" |
|
|
5337 | then : |
|
|
5338 | ac_cv_umount2=yes |
|
|
5339 | else $as_nop |
|
|
5340 | ac_cv_umount2=no |
|
|
5341 | fi |
|
|
5342 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
|
|
5343 | conftest$ac_exeext conftest.$ac_ext |
|
|
5344 | fi |
|
|
5345 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_umount2" >&5 |
|
|
5346 | printf "%s\n" "$ac_cv_umount2" >&6; } |
|
|
5347 | test $ac_cv_umount2 = yes && |
|
|
5348 | printf "%s\n" "#define HAVE_UMOUNT2 1" >>confdefs.h |
3685 | |
5349 | |
3686 | |
5350 | |
3687 | cat >confcache <<\_ACEOF |
5351 | cat >confcache <<\_ACEOF |
3688 | # This file is a shell script that caches the results of configure |
5352 | # This file is a shell script that caches the results of configure |
3689 | # tests run on this system so they can be shared between configure |
5353 | # tests run on this system so they can be shared between configure |
… | |
… | |
3709 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do |
5373 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do |
3710 | eval ac_val=\$$ac_var |
5374 | eval ac_val=\$$ac_var |
3711 | case $ac_val in #( |
5375 | case $ac_val in #( |
3712 | *${as_nl}*) |
5376 | *${as_nl}*) |
3713 | case $ac_var in #( |
5377 | case $ac_var in #( |
3714 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
5378 | *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
3715 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
5379 | printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
3716 | esac |
5380 | esac |
3717 | case $ac_var in #( |
5381 | case $ac_var in #( |
3718 | _ | IFS | as_nl) ;; #( |
5382 | _ | IFS | as_nl) ;; #( |
3719 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
5383 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
3720 | *) { eval $ac_var=; unset $ac_var;} ;; |
5384 | *) { eval $ac_var=; unset $ac_var;} ;; |
… | |
… | |
3740 | ) | |
5404 | ) | |
3741 | sed ' |
5405 | sed ' |
3742 | /^ac_cv_env_/b end |
5406 | /^ac_cv_env_/b end |
3743 | t clear |
5407 | t clear |
3744 | :clear |
5408 | :clear |
3745 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
5409 | s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/ |
3746 | t end |
5410 | t end |
3747 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
5411 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
3748 | :end' >>confcache |
5412 | :end' >>confcache |
3749 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
5413 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
3750 | if test -w "$cache_file"; then |
5414 | if test -w "$cache_file"; then |
3751 | test "x$cache_file" != "x/dev/null" && |
5415 | if test "x$cache_file" != "x/dev/null"; then |
3752 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
5416 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
3753 | $as_echo "$as_me: updating cache $cache_file" >&6;} |
5417 | printf "%s\n" "$as_me: updating cache $cache_file" >&6;} |
|
|
5418 | if test ! -f "$cache_file" || test -h "$cache_file"; then |
3754 | cat confcache >$cache_file |
5419 | cat confcache >"$cache_file" |
|
|
5420 | else |
|
|
5421 | case $cache_file in #( |
|
|
5422 | */* | ?:*) |
|
|
5423 | mv -f confcache "$cache_file"$$ && |
|
|
5424 | mv -f "$cache_file"$$ "$cache_file" ;; #( |
|
|
5425 | *) |
|
|
5426 | mv -f confcache "$cache_file" ;; |
|
|
5427 | esac |
|
|
5428 | fi |
|
|
5429 | fi |
3755 | else |
5430 | else |
3756 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
5431 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
3757 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
5432 | printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;} |
3758 | fi |
5433 | fi |
3759 | fi |
5434 | fi |
3760 | rm -f confcache |
5435 | rm -f confcache |
3761 | |
5436 | |
3762 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
5437 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
… | |
… | |
3769 | ac_ltlibobjs= |
5444 | ac_ltlibobjs= |
3770 | U= |
5445 | U= |
3771 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
5446 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
3772 | # 1. Remove the extension, and $U if already installed. |
5447 | # 1. Remove the extension, and $U if already installed. |
3773 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
5448 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
3774 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` |
5449 | ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"` |
3775 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
5450 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
3776 | # will be set to the directory where LIBOBJS objects are built. |
5451 | # will be set to the directory where LIBOBJS objects are built. |
3777 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
5452 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
3778 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' |
5453 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' |
3779 | done |
5454 | done |
… | |
… | |
3781 | |
5456 | |
3782 | LTLIBOBJS=$ac_ltlibobjs |
5457 | LTLIBOBJS=$ac_ltlibobjs |
3783 | |
5458 | |
3784 | |
5459 | |
3785 | |
5460 | |
3786 | : ${CONFIG_STATUS=./config.status} |
5461 | : "${CONFIG_STATUS=./config.status}" |
3787 | ac_write_fail=0 |
5462 | ac_write_fail=0 |
3788 | ac_clean_files_save=$ac_clean_files |
5463 | ac_clean_files_save=$ac_clean_files |
3789 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
5464 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
3790 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
5465 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
3791 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} |
5466 | printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;} |
3792 | as_write_fail=0 |
5467 | as_write_fail=0 |
3793 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 |
5468 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 |
3794 | #! $SHELL |
5469 | #! $SHELL |
3795 | # Generated by $as_me. |
5470 | # Generated by $as_me. |
3796 | # Run this file to recreate the current configuration. |
5471 | # Run this file to recreate the current configuration. |
… | |
… | |
3809 | ## M4sh Initialization. ## |
5484 | ## M4sh Initialization. ## |
3810 | ## -------------------- ## |
5485 | ## -------------------- ## |
3811 | |
5486 | |
3812 | # Be more Bourne compatible |
5487 | # Be more Bourne compatible |
3813 | DUALCASE=1; export DUALCASE # for MKS sh |
5488 | DUALCASE=1; export DUALCASE # for MKS sh |
|
|
5489 | as_nop=: |
3814 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : |
5490 | if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 |
|
|
5491 | then : |
3815 | emulate sh |
5492 | emulate sh |
3816 | NULLCMD=: |
5493 | NULLCMD=: |
3817 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
5494 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
3818 | # is contrary to our usage. Disable this feature. |
5495 | # is contrary to our usage. Disable this feature. |
3819 | alias -g '${1+"$@"}'='"$@"' |
5496 | alias -g '${1+"$@"}'='"$@"' |
3820 | setopt NO_GLOB_SUBST |
5497 | setopt NO_GLOB_SUBST |
3821 | else |
5498 | else $as_nop |
3822 | case `(set -o) 2>/dev/null` in #( |
5499 | case `(set -o) 2>/dev/null` in #( |
3823 | *posix*) : |
5500 | *posix*) : |
3824 | set -o posix ;; #( |
5501 | set -o posix ;; #( |
3825 | *) : |
5502 | *) : |
3826 | ;; |
5503 | ;; |
3827 | esac |
5504 | esac |
3828 | fi |
5505 | fi |
3829 | |
5506 | |
3830 | |
5507 | |
|
|
5508 | |
|
|
5509 | # Reset variables that may have inherited troublesome values from |
|
|
5510 | # the environment. |
|
|
5511 | |
|
|
5512 | # IFS needs to be set, to space, tab, and newline, in precisely that order. |
|
|
5513 | # (If _AS_PATH_WALK were called with IFS unset, it would have the |
|
|
5514 | # side effect of setting IFS to empty, thus disabling word splitting.) |
|
|
5515 | # Quoting is to prevent editors from complaining about space-tab. |
3831 | as_nl=' |
5516 | as_nl=' |
3832 | ' |
5517 | ' |
3833 | export as_nl |
5518 | export as_nl |
3834 | # Printing a long string crashes Solaris 7 /usr/bin/printf. |
5519 | IFS=" "" $as_nl" |
3835 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
5520 | |
3836 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo |
5521 | PS1='$ ' |
3837 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo |
5522 | PS2='> ' |
3838 | # Prefer a ksh shell builtin over an external printf program on Solaris, |
5523 | PS4='+ ' |
3839 | # but without wasting forks for bash or zsh. |
5524 | |
3840 | if test -z "$BASH_VERSION$ZSH_VERSION" \ |
5525 | # Ensure predictable behavior from utilities with locale-dependent output. |
3841 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then |
5526 | LC_ALL=C |
3842 | as_echo='print -r --' |
5527 | export LC_ALL |
3843 | as_echo_n='print -rn --' |
5528 | LANGUAGE=C |
3844 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then |
5529 | export LANGUAGE |
3845 | as_echo='printf %s\n' |
5530 | |
3846 | as_echo_n='printf %s' |
5531 | # We cannot yet rely on "unset" to work, but we need these variables |
3847 | else |
5532 | # to be unset--not just set to an empty or harmless value--now, to |
3848 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then |
5533 | # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct |
3849 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' |
5534 | # also avoids known problems related to "unset" and subshell syntax |
3850 | as_echo_n='/usr/ucb/echo -n' |
5535 | # in other old shells (e.g. bash 2.01 and pdksh 5.2.14). |
3851 | else |
5536 | for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH |
3852 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
5537 | do eval test \${$as_var+y} \ |
3853 | as_echo_n_body='eval |
5538 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : |
3854 | arg=$1; |
5539 | done |
3855 | case $arg in #( |
5540 | |
3856 | *"$as_nl"*) |
5541 | # Ensure that fds 0, 1, and 2 are open. |
3857 | expr "X$arg" : "X\\(.*\\)$as_nl"; |
5542 | if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi |
3858 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; |
5543 | if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi |
3859 | esac; |
5544 | if (exec 3>&2) ; then :; else exec 2>/dev/null; fi |
3860 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" |
|
|
3861 | ' |
|
|
3862 | export as_echo_n_body |
|
|
3863 | as_echo_n='sh -c $as_echo_n_body as_echo' |
|
|
3864 | fi |
|
|
3865 | export as_echo_body |
|
|
3866 | as_echo='sh -c $as_echo_body as_echo' |
|
|
3867 | fi |
|
|
3868 | |
5545 | |
3869 | # The user is always right. |
5546 | # The user is always right. |
3870 | if test "${PATH_SEPARATOR+set}" != set; then |
5547 | if ${PATH_SEPARATOR+false} :; then |
3871 | PATH_SEPARATOR=: |
5548 | PATH_SEPARATOR=: |
3872 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
5549 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
3873 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
5550 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
3874 | PATH_SEPARATOR=';' |
5551 | PATH_SEPARATOR=';' |
3875 | } |
5552 | } |
3876 | fi |
5553 | fi |
3877 | |
5554 | |
3878 | |
5555 | |
3879 | # IFS |
|
|
3880 | # We need space, tab and new line, in precisely that order. Quoting is |
|
|
3881 | # there to prevent editors from complaining about space-tab. |
|
|
3882 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
|
|
3883 | # splitting by setting IFS to empty value.) |
|
|
3884 | IFS=" "" $as_nl" |
|
|
3885 | |
|
|
3886 | # Find who we are. Look in the path if we contain no directory separator. |
5556 | # Find who we are. Look in the path if we contain no directory separator. |
|
|
5557 | as_myself= |
3887 | case $0 in #(( |
5558 | case $0 in #(( |
3888 | *[\\/]* ) as_myself=$0 ;; |
5559 | *[\\/]* ) as_myself=$0 ;; |
3889 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5560 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3890 | for as_dir in $PATH |
5561 | for as_dir in $PATH |
3891 | do |
5562 | do |
3892 | IFS=$as_save_IFS |
5563 | IFS=$as_save_IFS |
3893 | test -z "$as_dir" && as_dir=. |
5564 | case $as_dir in #((( |
|
|
5565 | '') as_dir=./ ;; |
|
|
5566 | */) ;; |
|
|
5567 | *) as_dir=$as_dir/ ;; |
|
|
5568 | esac |
3894 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
5569 | test -r "$as_dir$0" && as_myself=$as_dir$0 && break |
3895 | done |
5570 | done |
3896 | IFS=$as_save_IFS |
5571 | IFS=$as_save_IFS |
3897 | |
5572 | |
3898 | ;; |
5573 | ;; |
3899 | esac |
5574 | esac |
… | |
… | |
3901 | # in which case we are not to be found in the path. |
5576 | # in which case we are not to be found in the path. |
3902 | if test "x$as_myself" = x; then |
5577 | if test "x$as_myself" = x; then |
3903 | as_myself=$0 |
5578 | as_myself=$0 |
3904 | fi |
5579 | fi |
3905 | if test ! -f "$as_myself"; then |
5580 | if test ! -f "$as_myself"; then |
3906 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
5581 | printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
3907 | exit 1 |
5582 | exit 1 |
3908 | fi |
5583 | fi |
3909 | |
5584 | |
3910 | # Unset variables that we do not need and which cause bugs (e.g. in |
|
|
3911 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" |
|
|
3912 | # suppresses any "Segmentation fault" message there. '((' could |
|
|
3913 | # trigger a bug in pdksh 5.2.14. |
|
|
3914 | for as_var in BASH_ENV ENV MAIL MAILPATH |
|
|
3915 | do eval test x\${$as_var+set} = xset \ |
|
|
3916 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : |
|
|
3917 | done |
|
|
3918 | PS1='$ ' |
|
|
3919 | PS2='> ' |
|
|
3920 | PS4='+ ' |
|
|
3921 | |
|
|
3922 | # NLS nuisances. |
|
|
3923 | LC_ALL=C |
|
|
3924 | export LC_ALL |
|
|
3925 | LANGUAGE=C |
|
|
3926 | export LANGUAGE |
|
|
3927 | |
|
|
3928 | # CDPATH. |
|
|
3929 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
|
|
3930 | |
5585 | |
3931 | |
5586 | |
3932 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
5587 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
3933 | # ---------------------------------------- |
5588 | # ---------------------------------------- |
3934 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
5589 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
… | |
… | |
3937 | as_fn_error () |
5592 | as_fn_error () |
3938 | { |
5593 | { |
3939 | as_status=$1; test $as_status -eq 0 && as_status=1 |
5594 | as_status=$1; test $as_status -eq 0 && as_status=1 |
3940 | if test "$4"; then |
5595 | if test "$4"; then |
3941 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
5596 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
3942 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 |
5597 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 |
3943 | fi |
5598 | fi |
3944 | $as_echo "$as_me: error: $2" >&2 |
5599 | printf "%s\n" "$as_me: error: $2" >&2 |
3945 | as_fn_exit $as_status |
5600 | as_fn_exit $as_status |
3946 | } # as_fn_error |
5601 | } # as_fn_error |
|
|
5602 | |
3947 | |
5603 | |
3948 | |
5604 | |
3949 | # as_fn_set_status STATUS |
5605 | # as_fn_set_status STATUS |
3950 | # ----------------------- |
5606 | # ----------------------- |
3951 | # Set $? to STATUS, without forking. |
5607 | # Set $? to STATUS, without forking. |
… | |
… | |
3970 | as_fn_unset () |
5626 | as_fn_unset () |
3971 | { |
5627 | { |
3972 | { eval $1=; unset $1;} |
5628 | { eval $1=; unset $1;} |
3973 | } |
5629 | } |
3974 | as_unset=as_fn_unset |
5630 | as_unset=as_fn_unset |
|
|
5631 | |
3975 | # as_fn_append VAR VALUE |
5632 | # as_fn_append VAR VALUE |
3976 | # ---------------------- |
5633 | # ---------------------- |
3977 | # Append the text in VALUE to the end of the definition contained in VAR. Take |
5634 | # Append the text in VALUE to the end of the definition contained in VAR. Take |
3978 | # advantage of any shell optimizations that allow amortized linear growth over |
5635 | # advantage of any shell optimizations that allow amortized linear growth over |
3979 | # repeated appends, instead of the typical quadratic growth present in naive |
5636 | # repeated appends, instead of the typical quadratic growth present in naive |
3980 | # implementations. |
5637 | # implementations. |
3981 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : |
5638 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null |
|
|
5639 | then : |
3982 | eval 'as_fn_append () |
5640 | eval 'as_fn_append () |
3983 | { |
5641 | { |
3984 | eval $1+=\$2 |
5642 | eval $1+=\$2 |
3985 | }' |
5643 | }' |
3986 | else |
5644 | else $as_nop |
3987 | as_fn_append () |
5645 | as_fn_append () |
3988 | { |
5646 | { |
3989 | eval $1=\$$1\$2 |
5647 | eval $1=\$$1\$2 |
3990 | } |
5648 | } |
3991 | fi # as_fn_append |
5649 | fi # as_fn_append |
… | |
… | |
3993 | # as_fn_arith ARG... |
5651 | # as_fn_arith ARG... |
3994 | # ------------------ |
5652 | # ------------------ |
3995 | # Perform arithmetic evaluation on the ARGs, and store the result in the |
5653 | # Perform arithmetic evaluation on the ARGs, and store the result in the |
3996 | # global $as_val. Take advantage of shells that can avoid forks. The arguments |
5654 | # global $as_val. Take advantage of shells that can avoid forks. The arguments |
3997 | # must be portable across $(()) and expr. |
5655 | # must be portable across $(()) and expr. |
3998 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : |
5656 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null |
|
|
5657 | then : |
3999 | eval 'as_fn_arith () |
5658 | eval 'as_fn_arith () |
4000 | { |
5659 | { |
4001 | as_val=$(( $* )) |
5660 | as_val=$(( $* )) |
4002 | }' |
5661 | }' |
4003 | else |
5662 | else $as_nop |
4004 | as_fn_arith () |
5663 | as_fn_arith () |
4005 | { |
5664 | { |
4006 | as_val=`expr "$@" || test $? -eq 1` |
5665 | as_val=`expr "$@" || test $? -eq 1` |
4007 | } |
5666 | } |
4008 | fi # as_fn_arith |
5667 | fi # as_fn_arith |
… | |
… | |
4029 | |
5688 | |
4030 | as_me=`$as_basename -- "$0" || |
5689 | as_me=`$as_basename -- "$0" || |
4031 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
5690 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
4032 | X"$0" : 'X\(//\)$' \| \ |
5691 | X"$0" : 'X\(//\)$' \| \ |
4033 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
5692 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
4034 | $as_echo X/"$0" | |
5693 | printf "%s\n" X/"$0" | |
4035 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
5694 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
4036 | s//\1/ |
5695 | s//\1/ |
4037 | q |
5696 | q |
4038 | } |
5697 | } |
4039 | /^X\/\(\/\/\)$/{ |
5698 | /^X\/\(\/\/\)$/{ |
… | |
… | |
4051 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
5710 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
4052 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
5711 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
4053 | as_cr_digits='0123456789' |
5712 | as_cr_digits='0123456789' |
4054 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
5713 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
4055 | |
5714 | |
|
|
5715 | |
|
|
5716 | # Determine whether it's possible to make 'echo' print without a newline. |
|
|
5717 | # These variables are no longer used directly by Autoconf, but are AC_SUBSTed |
|
|
5718 | # for compatibility with existing Makefiles. |
4056 | ECHO_C= ECHO_N= ECHO_T= |
5719 | ECHO_C= ECHO_N= ECHO_T= |
4057 | case `echo -n x` in #((((( |
5720 | case `echo -n x` in #((((( |
4058 | -n*) |
5721 | -n*) |
4059 | case `echo 'xy\c'` in |
5722 | case `echo 'xy\c'` in |
4060 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
5723 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
… | |
… | |
4064 | esac;; |
5727 | esac;; |
4065 | *) |
5728 | *) |
4066 | ECHO_N='-n';; |
5729 | ECHO_N='-n';; |
4067 | esac |
5730 | esac |
4068 | |
5731 | |
|
|
5732 | # For backward compatibility with old third-party macros, we provide |
|
|
5733 | # the shell variables $as_echo and $as_echo_n. New code should use |
|
|
5734 | # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. |
|
|
5735 | as_echo='printf %s\n' |
|
|
5736 | as_echo_n='printf %s' |
|
|
5737 | |
4069 | rm -f conf$$ conf$$.exe conf$$.file |
5738 | rm -f conf$$ conf$$.exe conf$$.file |
4070 | if test -d conf$$.dir; then |
5739 | if test -d conf$$.dir; then |
4071 | rm -f conf$$.dir/conf$$.file |
5740 | rm -f conf$$.dir/conf$$.file |
4072 | else |
5741 | else |
4073 | rm -f conf$$.dir |
5742 | rm -f conf$$.dir |
… | |
… | |
4077 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
5746 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
4078 | as_ln_s='ln -s' |
5747 | as_ln_s='ln -s' |
4079 | # ... but there are two gotchas: |
5748 | # ... but there are two gotchas: |
4080 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
5749 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
4081 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
5750 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
4082 | # In both cases, we have to default to `cp -p'. |
5751 | # In both cases, we have to default to `cp -pR'. |
4083 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
5752 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
4084 | as_ln_s='cp -p' |
5753 | as_ln_s='cp -pR' |
4085 | elif ln conf$$.file conf$$ 2>/dev/null; then |
5754 | elif ln conf$$.file conf$$ 2>/dev/null; then |
4086 | as_ln_s=ln |
5755 | as_ln_s=ln |
4087 | else |
5756 | else |
4088 | as_ln_s='cp -p' |
5757 | as_ln_s='cp -pR' |
4089 | fi |
5758 | fi |
4090 | else |
5759 | else |
4091 | as_ln_s='cp -p' |
5760 | as_ln_s='cp -pR' |
4092 | fi |
5761 | fi |
4093 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
5762 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
4094 | rmdir conf$$.dir 2>/dev/null |
5763 | rmdir conf$$.dir 2>/dev/null |
4095 | |
5764 | |
4096 | |
5765 | |
… | |
… | |
4105 | esac |
5774 | esac |
4106 | test -d "$as_dir" || eval $as_mkdir_p || { |
5775 | test -d "$as_dir" || eval $as_mkdir_p || { |
4107 | as_dirs= |
5776 | as_dirs= |
4108 | while :; do |
5777 | while :; do |
4109 | case $as_dir in #( |
5778 | case $as_dir in #( |
4110 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
5779 | *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
4111 | *) as_qdir=$as_dir;; |
5780 | *) as_qdir=$as_dir;; |
4112 | esac |
5781 | esac |
4113 | as_dirs="'$as_qdir' $as_dirs" |
5782 | as_dirs="'$as_qdir' $as_dirs" |
4114 | as_dir=`$as_dirname -- "$as_dir" || |
5783 | as_dir=`$as_dirname -- "$as_dir" || |
4115 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
5784 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
4116 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
5785 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
4117 | X"$as_dir" : 'X\(//\)$' \| \ |
5786 | X"$as_dir" : 'X\(//\)$' \| \ |
4118 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
5787 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
4119 | $as_echo X"$as_dir" | |
5788 | printf "%s\n" X"$as_dir" | |
4120 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
5789 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
4121 | s//\1/ |
5790 | s//\1/ |
4122 | q |
5791 | q |
4123 | } |
5792 | } |
4124 | /^X\(\/\/\)[^/].*/{ |
5793 | /^X\(\/\/\)[^/].*/{ |
… | |
… | |
4146 | else |
5815 | else |
4147 | test -d ./-p && rmdir ./-p |
5816 | test -d ./-p && rmdir ./-p |
4148 | as_mkdir_p=false |
5817 | as_mkdir_p=false |
4149 | fi |
5818 | fi |
4150 | |
5819 | |
4151 | if test -x / >/dev/null 2>&1; then |
5820 | |
|
|
5821 | # as_fn_executable_p FILE |
|
|
5822 | # ----------------------- |
|
|
5823 | # Test if FILE is an executable regular file. |
|
|
5824 | as_fn_executable_p () |
|
|
5825 | { |
|
|
5826 | test -f "$1" && test -x "$1" |
|
|
5827 | } # as_fn_executable_p |
4152 | as_test_x='test -x' |
5828 | as_test_x='test -x' |
4153 | else |
5829 | as_executable_p=as_fn_executable_p |
4154 | if ls -dL / >/dev/null 2>&1; then |
|
|
4155 | as_ls_L_option=L |
|
|
4156 | else |
|
|
4157 | as_ls_L_option= |
|
|
4158 | fi |
|
|
4159 | as_test_x=' |
|
|
4160 | eval sh -c '\'' |
|
|
4161 | if test -d "$1"; then |
|
|
4162 | test -d "$1/."; |
|
|
4163 | else |
|
|
4164 | case $1 in #( |
|
|
4165 | -*)set "./$1";; |
|
|
4166 | esac; |
|
|
4167 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( |
|
|
4168 | ???[sx]*):;;*)false;;esac;fi |
|
|
4169 | '\'' sh |
|
|
4170 | ' |
|
|
4171 | fi |
|
|
4172 | as_executable_p=$as_test_x |
|
|
4173 | |
5830 | |
4174 | # Sed expression to map a string onto a valid CPP name. |
5831 | # Sed expression to map a string onto a valid CPP name. |
4175 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
5832 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
4176 | |
5833 | |
4177 | # Sed expression to map a string onto a valid variable name. |
5834 | # Sed expression to map a string onto a valid variable name. |
… | |
… | |
4189 | # Save the log message, to keep $0 and so on meaningful, and to |
5846 | # Save the log message, to keep $0 and so on meaningful, and to |
4190 | # report actual input values of CONFIG_FILES etc. instead of their |
5847 | # report actual input values of CONFIG_FILES etc. instead of their |
4191 | # values after options handling. |
5848 | # values after options handling. |
4192 | ac_log=" |
5849 | ac_log=" |
4193 | This file was extended by $as_me, which was |
5850 | This file was extended by $as_me, which was |
4194 | generated by GNU Autoconf 2.67. Invocation command line was |
5851 | generated by GNU Autoconf 2.71. Invocation command line was |
4195 | |
5852 | |
4196 | CONFIG_FILES = $CONFIG_FILES |
5853 | CONFIG_FILES = $CONFIG_FILES |
4197 | CONFIG_HEADERS = $CONFIG_HEADERS |
5854 | CONFIG_HEADERS = $CONFIG_HEADERS |
4198 | CONFIG_LINKS = $CONFIG_LINKS |
5855 | CONFIG_LINKS = $CONFIG_LINKS |
4199 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
5856 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
… | |
… | |
4238 | $config_headers |
5895 | $config_headers |
4239 | |
5896 | |
4240 | Report bugs to the package provider." |
5897 | Report bugs to the package provider." |
4241 | |
5898 | |
4242 | _ACEOF |
5899 | _ACEOF |
|
|
5900 | ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"` |
|
|
5901 | ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"` |
4243 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
5902 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
4244 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" |
5903 | ac_cs_config='$ac_cs_config_escaped' |
4245 | ac_cs_version="\\ |
5904 | ac_cs_version="\\ |
4246 | config.status |
5905 | config.status |
4247 | configured by $0, generated by GNU Autoconf 2.67, |
5906 | configured by $0, generated by GNU Autoconf 2.71, |
4248 | with options \\"\$ac_cs_config\\" |
5907 | with options \\"\$ac_cs_config\\" |
4249 | |
5908 | |
4250 | Copyright (C) 2010 Free Software Foundation, Inc. |
5909 | Copyright (C) 2021 Free Software Foundation, Inc. |
4251 | This config.status script is free software; the Free Software Foundation |
5910 | This config.status script is free software; the Free Software Foundation |
4252 | gives unlimited permission to copy, distribute and modify it." |
5911 | gives unlimited permission to copy, distribute and modify it." |
4253 | |
5912 | |
4254 | ac_pwd='$ac_pwd' |
5913 | ac_pwd='$ac_pwd' |
4255 | srcdir='$srcdir' |
5914 | srcdir='$srcdir' |
… | |
… | |
4282 | case $ac_option in |
5941 | case $ac_option in |
4283 | # Handling of the options. |
5942 | # Handling of the options. |
4284 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
5943 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
4285 | ac_cs_recheck=: ;; |
5944 | ac_cs_recheck=: ;; |
4286 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
5945 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
4287 | $as_echo "$ac_cs_version"; exit ;; |
5946 | printf "%s\n" "$ac_cs_version"; exit ;; |
4288 | --config | --confi | --conf | --con | --co | --c ) |
5947 | --config | --confi | --conf | --con | --co | --c ) |
4289 | $as_echo "$ac_cs_config"; exit ;; |
5948 | printf "%s\n" "$ac_cs_config"; exit ;; |
4290 | --debug | --debu | --deb | --de | --d | -d ) |
5949 | --debug | --debu | --deb | --de | --d | -d ) |
4291 | debug=: ;; |
5950 | debug=: ;; |
4292 | --header | --heade | --head | --hea ) |
5951 | --header | --heade | --head | --hea ) |
4293 | $ac_shift |
5952 | $ac_shift |
4294 | case $ac_optarg in |
5953 | case $ac_optarg in |
4295 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
5954 | *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
4296 | esac |
5955 | esac |
4297 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" |
5956 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" |
4298 | ac_need_defaults=false;; |
5957 | ac_need_defaults=false;; |
4299 | --he | --h) |
5958 | --he | --h) |
4300 | # Conflict between --help and --header |
5959 | # Conflict between --help and --header |
4301 | as_fn_error $? "ambiguous option: \`$1' |
5960 | as_fn_error $? "ambiguous option: \`$1' |
4302 | Try \`$0 --help' for more information.";; |
5961 | Try \`$0 --help' for more information.";; |
4303 | --help | --hel | -h ) |
5962 | --help | --hel | -h ) |
4304 | $as_echo "$ac_cs_usage"; exit ;; |
5963 | printf "%s\n" "$ac_cs_usage"; exit ;; |
4305 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
5964 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
4306 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
5965 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
4307 | ac_cs_silent=: ;; |
5966 | ac_cs_silent=: ;; |
4308 | |
5967 | |
4309 | # This is an error. |
5968 | # This is an error. |
… | |
… | |
4325 | fi |
5984 | fi |
4326 | |
5985 | |
4327 | _ACEOF |
5986 | _ACEOF |
4328 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
5987 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
4329 | if \$ac_cs_recheck; then |
5988 | if \$ac_cs_recheck; then |
4330 | set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
5989 | set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
4331 | shift |
5990 | shift |
4332 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 |
5991 | \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6 |
4333 | CONFIG_SHELL='$SHELL' |
5992 | CONFIG_SHELL='$SHELL' |
4334 | export CONFIG_SHELL |
5993 | export CONFIG_SHELL |
4335 | exec "\$@" |
5994 | exec "\$@" |
4336 | fi |
5995 | fi |
4337 | |
5996 | |
… | |
… | |
4341 | { |
6000 | { |
4342 | echo |
6001 | echo |
4343 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
6002 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
4344 | ## Running $as_me. ## |
6003 | ## Running $as_me. ## |
4345 | _ASBOX |
6004 | _ASBOX |
4346 | $as_echo "$ac_log" |
6005 | printf "%s\n" "$ac_log" |
4347 | } >&5 |
6006 | } >&5 |
4348 | |
6007 | |
4349 | _ACEOF |
6008 | _ACEOF |
4350 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
6009 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
4351 | _ACEOF |
6010 | _ACEOF |
… | |
… | |
4354 | |
6013 | |
4355 | # Handling of arguments. |
6014 | # Handling of arguments. |
4356 | for ac_config_target in $ac_config_targets |
6015 | for ac_config_target in $ac_config_targets |
4357 | do |
6016 | do |
4358 | case $ac_config_target in |
6017 | case $ac_config_target in |
4359 | "libeio/config.h") CONFIG_HEADERS="$CONFIG_HEADERS libeio/config.h" ;; |
6018 | "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; |
4360 | |
6019 | |
4361 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5 ;; |
6020 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
4362 | esac |
6021 | esac |
4363 | done |
6022 | done |
4364 | |
6023 | |
4365 | |
6024 | |
4366 | # If the user did not use the arguments to specify the items to instantiate, |
6025 | # If the user did not use the arguments to specify the items to instantiate, |
4367 | # then the envvar interface is used. Set only those that are not. |
6026 | # then the envvar interface is used. Set only those that are not. |
4368 | # We use the long form for the default assignment because of an extremely |
6027 | # We use the long form for the default assignment because of an extremely |
4369 | # bizarre bug on SunOS 4.1.3. |
6028 | # bizarre bug on SunOS 4.1.3. |
4370 | if $ac_need_defaults; then |
6029 | if $ac_need_defaults; then |
4371 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
6030 | test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers |
4372 | fi |
6031 | fi |
4373 | |
6032 | |
4374 | # Have a temporary directory for convenience. Make it in the build tree |
6033 | # Have a temporary directory for convenience. Make it in the build tree |
4375 | # simply because there is no reason against having it here, and in addition, |
6034 | # simply because there is no reason against having it here, and in addition, |
4376 | # creating and moving files from /tmp can sometimes cause problems. |
6035 | # creating and moving files from /tmp can sometimes cause problems. |
4377 | # Hook for its removal unless debugging. |
6036 | # Hook for its removal unless debugging. |
4378 | # Note that there is a small window in which the directory will not be cleaned: |
6037 | # Note that there is a small window in which the directory will not be cleaned: |
4379 | # after its creation but before its name has been assigned to `$tmp'. |
6038 | # after its creation but before its name has been assigned to `$tmp'. |
4380 | $debug || |
6039 | $debug || |
4381 | { |
6040 | { |
4382 | tmp= |
6041 | tmp= ac_tmp= |
4383 | trap 'exit_status=$? |
6042 | trap 'exit_status=$? |
|
|
6043 | : "${ac_tmp:=$tmp}" |
4384 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status |
6044 | { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status |
4385 | ' 0 |
6045 | ' 0 |
4386 | trap 'as_fn_exit 1' 1 2 13 15 |
6046 | trap 'as_fn_exit 1' 1 2 13 15 |
4387 | } |
6047 | } |
4388 | # Create a (secure) tmp directory for tmp files. |
6048 | # Create a (secure) tmp directory for tmp files. |
4389 | |
6049 | |
4390 | { |
6050 | { |
4391 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
6051 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
4392 | test -n "$tmp" && test -d "$tmp" |
6052 | test -d "$tmp" |
4393 | } || |
6053 | } || |
4394 | { |
6054 | { |
4395 | tmp=./conf$$-$RANDOM |
6055 | tmp=./conf$$-$RANDOM |
4396 | (umask 077 && mkdir "$tmp") |
6056 | (umask 077 && mkdir "$tmp") |
4397 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 |
6057 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 |
|
|
6058 | ac_tmp=$tmp |
4398 | |
6059 | |
4399 | # Set up the scripts for CONFIG_HEADERS section. |
6060 | # Set up the scripts for CONFIG_HEADERS section. |
4400 | # No need to generate them if there are no CONFIG_HEADERS. |
6061 | # No need to generate them if there are no CONFIG_HEADERS. |
4401 | # This happens for instance with `./config.status Makefile'. |
6062 | # This happens for instance with `./config.status Makefile'. |
4402 | if test -n "$CONFIG_HEADERS"; then |
6063 | if test -n "$CONFIG_HEADERS"; then |
4403 | cat >"$tmp/defines.awk" <<\_ACAWK || |
6064 | cat >"$ac_tmp/defines.awk" <<\_ACAWK || |
4404 | BEGIN { |
6065 | BEGIN { |
4405 | _ACEOF |
6066 | _ACEOF |
4406 | |
6067 | |
4407 | # Transform confdefs.h into an awk script `defines.awk', embedded as |
6068 | # Transform confdefs.h into an awk script `defines.awk', embedded as |
4408 | # here-document in config.status, that substitutes the proper values into |
6069 | # here-document in config.status, that substitutes the proper values into |
… | |
… | |
4410 | |
6071 | |
4411 | # Create a delimiter string that does not exist in confdefs.h, to ease |
6072 | # Create a delimiter string that does not exist in confdefs.h, to ease |
4412 | # handling of long lines. |
6073 | # handling of long lines. |
4413 | ac_delim='%!_!# ' |
6074 | ac_delim='%!_!# ' |
4414 | for ac_last_try in false false :; do |
6075 | for ac_last_try in false false :; do |
4415 | ac_t=`sed -n "/$ac_delim/p" confdefs.h` |
6076 | ac_tt=`sed -n "/$ac_delim/p" confdefs.h` |
4416 | if test -z "$ac_t"; then |
6077 | if test -z "$ac_tt"; then |
4417 | break |
6078 | break |
4418 | elif $ac_last_try; then |
6079 | elif $ac_last_try; then |
4419 | as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 |
6080 | as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 |
4420 | else |
6081 | else |
4421 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
6082 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
… | |
… | |
4512 | case $ac_tag in |
6173 | case $ac_tag in |
4513 | :[FHLC]) ac_mode=$ac_tag; continue;; |
6174 | :[FHLC]) ac_mode=$ac_tag; continue;; |
4514 | esac |
6175 | esac |
4515 | case $ac_mode$ac_tag in |
6176 | case $ac_mode$ac_tag in |
4516 | :[FHL]*:*);; |
6177 | :[FHL]*:*);; |
4517 | :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5 ;; |
6178 | :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; |
4518 | :[FH]-) ac_tag=-:-;; |
6179 | :[FH]-) ac_tag=-:-;; |
4519 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; |
6180 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; |
4520 | esac |
6181 | esac |
4521 | ac_save_IFS=$IFS |
6182 | ac_save_IFS=$IFS |
4522 | IFS=: |
6183 | IFS=: |
… | |
… | |
4531 | :[FH]) |
6192 | :[FH]) |
4532 | ac_file_inputs= |
6193 | ac_file_inputs= |
4533 | for ac_f |
6194 | for ac_f |
4534 | do |
6195 | do |
4535 | case $ac_f in |
6196 | case $ac_f in |
4536 | -) ac_f="$tmp/stdin";; |
6197 | -) ac_f="$ac_tmp/stdin";; |
4537 | *) # Look for the file first in the build tree, then in the source tree |
6198 | *) # Look for the file first in the build tree, then in the source tree |
4538 | # (if the path is not absolute). The absolute path cannot be DOS-style, |
6199 | # (if the path is not absolute). The absolute path cannot be DOS-style, |
4539 | # because $ac_f cannot contain `:'. |
6200 | # because $ac_f cannot contain `:'. |
4540 | test -f "$ac_f" || |
6201 | test -f "$ac_f" || |
4541 | case $ac_f in |
6202 | case $ac_f in |
4542 | [\\/$]*) false;; |
6203 | [\\/$]*) false;; |
4543 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; |
6204 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; |
4544 | esac || |
6205 | esac || |
4545 | as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5 ;; |
6206 | as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; |
4546 | esac |
6207 | esac |
4547 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac |
6208 | case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac |
4548 | as_fn_append ac_file_inputs " '$ac_f'" |
6209 | as_fn_append ac_file_inputs " '$ac_f'" |
4549 | done |
6210 | done |
4550 | |
6211 | |
4551 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
6212 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
4552 | # use $as_me), people would be surprised to read: |
6213 | # use $as_me), people would be surprised to read: |
4553 | # /* config.h. Generated by config.status. */ |
6214 | # /* config.h. Generated by config.status. */ |
4554 | configure_input='Generated from '` |
6215 | configure_input='Generated from '` |
4555 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' |
6216 | printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' |
4556 | `' by configure.' |
6217 | `' by configure.' |
4557 | if test x"$ac_file" != x-; then |
6218 | if test x"$ac_file" != x-; then |
4558 | configure_input="$ac_file. $configure_input" |
6219 | configure_input="$ac_file. $configure_input" |
4559 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 |
6220 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 |
4560 | $as_echo "$as_me: creating $ac_file" >&6;} |
6221 | printf "%s\n" "$as_me: creating $ac_file" >&6;} |
4561 | fi |
6222 | fi |
4562 | # Neutralize special characters interpreted by sed in replacement strings. |
6223 | # Neutralize special characters interpreted by sed in replacement strings. |
4563 | case $configure_input in #( |
6224 | case $configure_input in #( |
4564 | *\&* | *\|* | *\\* ) |
6225 | *\&* | *\|* | *\\* ) |
4565 | ac_sed_conf_input=`$as_echo "$configure_input" | |
6226 | ac_sed_conf_input=`printf "%s\n" "$configure_input" | |
4566 | sed 's/[\\\\&|]/\\\\&/g'`;; #( |
6227 | sed 's/[\\\\&|]/\\\\&/g'`;; #( |
4567 | *) ac_sed_conf_input=$configure_input;; |
6228 | *) ac_sed_conf_input=$configure_input;; |
4568 | esac |
6229 | esac |
4569 | |
6230 | |
4570 | case $ac_tag in |
6231 | case $ac_tag in |
4571 | *:-:* | *:-) cat >"$tmp/stdin" \ |
6232 | *:-:* | *:-) cat >"$ac_tmp/stdin" \ |
4572 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; |
6233 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; |
4573 | esac |
6234 | esac |
4574 | ;; |
6235 | ;; |
4575 | esac |
6236 | esac |
4576 | |
6237 | |
4577 | ac_dir=`$as_dirname -- "$ac_file" || |
6238 | ac_dir=`$as_dirname -- "$ac_file" || |
4578 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
6239 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
4579 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
6240 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
4580 | X"$ac_file" : 'X\(//\)$' \| \ |
6241 | X"$ac_file" : 'X\(//\)$' \| \ |
4581 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
6242 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
4582 | $as_echo X"$ac_file" | |
6243 | printf "%s\n" X"$ac_file" | |
4583 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
6244 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
4584 | s//\1/ |
6245 | s//\1/ |
4585 | q |
6246 | q |
4586 | } |
6247 | } |
4587 | /^X\(\/\/\)[^/].*/{ |
6248 | /^X\(\/\/\)[^/].*/{ |
… | |
… | |
4601 | ac_builddir=. |
6262 | ac_builddir=. |
4602 | |
6263 | |
4603 | case "$ac_dir" in |
6264 | case "$ac_dir" in |
4604 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
6265 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
4605 | *) |
6266 | *) |
4606 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
6267 | ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` |
4607 | # A ".." for each directory in $ac_dir_suffix. |
6268 | # A ".." for each directory in $ac_dir_suffix. |
4608 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
6269 | ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
4609 | case $ac_top_builddir_sub in |
6270 | case $ac_top_builddir_sub in |
4610 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
6271 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
4611 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
6272 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
4612 | esac ;; |
6273 | esac ;; |
4613 | esac |
6274 | esac |
… | |
… | |
4639 | # |
6300 | # |
4640 | # CONFIG_HEADER |
6301 | # CONFIG_HEADER |
4641 | # |
6302 | # |
4642 | if test x"$ac_file" != x-; then |
6303 | if test x"$ac_file" != x-; then |
4643 | { |
6304 | { |
4644 | $as_echo "/* $configure_input */" \ |
6305 | printf "%s\n" "/* $configure_input */" >&1 \ |
4645 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" |
6306 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" |
4646 | } >"$tmp/config.h" \ |
6307 | } >"$ac_tmp/config.h" \ |
4647 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
6308 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
4648 | if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then |
6309 | if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then |
4649 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 |
6310 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 |
4650 | $as_echo "$as_me: $ac_file is unchanged" >&6;} |
6311 | printf "%s\n" "$as_me: $ac_file is unchanged" >&6;} |
4651 | else |
6312 | else |
4652 | rm -f "$ac_file" |
6313 | rm -f "$ac_file" |
4653 | mv "$tmp/config.h" "$ac_file" \ |
6314 | mv "$ac_tmp/config.h" "$ac_file" \ |
4654 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
6315 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
4655 | fi |
6316 | fi |
4656 | else |
6317 | else |
4657 | $as_echo "/* $configure_input */" \ |
6318 | printf "%s\n" "/* $configure_input */" >&1 \ |
4658 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ |
6319 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ |
4659 | || as_fn_error $? "could not create -" "$LINENO" 5 |
6320 | || as_fn_error $? "could not create -" "$LINENO" 5 |
4660 | fi |
6321 | fi |
4661 | ;; |
6322 | ;; |
4662 | |
6323 | |
4663 | |
6324 | |
… | |
… | |
4693 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
6354 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
4694 | # would make configure fail if this is the last instruction. |
6355 | # would make configure fail if this is the last instruction. |
4695 | $ac_cs_success || as_fn_exit 1 |
6356 | $ac_cs_success || as_fn_exit 1 |
4696 | fi |
6357 | fi |
4697 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
6358 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
4698 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 |
6359 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 |
4699 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} |
6360 | printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} |
4700 | fi |
6361 | fi |
4701 | |
6362 | |
|
|
6363 | |
|
|
6364 | |