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.61. |
3 | # Generated by GNU Autoconf 2.71. |
4 | # |
4 | # |
5 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
5 | # |
6 | # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. |
6 | # Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation, |
|
|
7 | # Inc. |
|
|
8 | # |
|
|
9 | # |
7 | # This configure script is free software; the Free Software Foundation |
10 | # This configure script is free software; the Free Software Foundation |
8 | # gives unlimited permission to copy, distribute and modify it. |
11 | # gives unlimited permission to copy, distribute and modify it. |
9 | ## --------------------- ## |
12 | ## -------------------- ## |
10 | ## M4sh Initialization. ## |
13 | ## M4sh Initialization. ## |
11 | ## --------------------- ## |
14 | ## -------------------- ## |
12 | |
15 | |
13 | # Be more Bourne compatible |
16 | # Be more Bourne compatible |
14 | DUALCASE=1; export DUALCASE # for MKS sh |
17 | DUALCASE=1; export DUALCASE # for MKS sh |
|
|
18 | as_nop=: |
15 | 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 : |
16 | emulate sh |
21 | emulate sh |
17 | NULLCMD=: |
22 | NULLCMD=: |
18 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
23 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
19 | # is contrary to our usage. Disable this feature. |
24 | # is contrary to our usage. Disable this feature. |
20 | alias -g '${1+"$@"}'='"$@"' |
25 | alias -g '${1+"$@"}'='"$@"' |
21 | setopt NO_GLOB_SUBST |
26 | setopt NO_GLOB_SUBST |
22 | else |
27 | else $as_nop |
23 | case `(set -o) 2>/dev/null` in |
28 | case `(set -o) 2>/dev/null` in #( |
24 | *posix*) set -o posix ;; |
29 | *posix*) : |
|
|
30 | set -o posix ;; #( |
|
|
31 | *) : |
|
|
32 | ;; |
25 | esac |
33 | esac |
26 | |
|
|
27 | fi |
34 | fi |
28 | |
35 | |
29 | |
36 | |
30 | |
37 | |
|
|
38 | # Reset variables that may have inherited troublesome values from |
|
|
39 | # the environment. |
31 | |
40 | |
32 | # PATH needs CR |
|
|
33 | # Avoid depending upon Character Ranges. |
|
|
34 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
|
|
35 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
|
|
36 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
|
|
37 | as_cr_digits='0123456789' |
|
|
38 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
|
|
39 | |
|
|
40 | # The user is always right. |
|
|
41 | if test "${PATH_SEPARATOR+set}" != set; then |
|
|
42 | echo "#! /bin/sh" >conf$$.sh |
|
|
43 | echo "exit 0" >>conf$$.sh |
|
|
44 | chmod +x conf$$.sh |
|
|
45 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
|
|
46 | PATH_SEPARATOR=';' |
|
|
47 | else |
|
|
48 | PATH_SEPARATOR=: |
|
|
49 | fi |
|
|
50 | rm -f conf$$.sh |
|
|
51 | fi |
|
|
52 | |
|
|
53 | # Support unset when possible. |
|
|
54 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
|
|
55 | as_unset=unset |
|
|
56 | else |
|
|
57 | as_unset=false |
|
|
58 | fi |
|
|
59 | |
|
|
60 | |
|
|
61 | # IFS |
|
|
62 | # We need space, tab and new line, in precisely that order. Quoting is |
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.) |
63 | # there to prevent editors from complaining about space-tab. |
44 | # Quoting is to prevent editors from complaining about space-tab. |
64 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
|
|
65 | # splitting by setting IFS to empty value.) |
|
|
66 | as_nl=' |
45 | as_nl=' |
67 | ' |
46 | ' |
|
|
47 | export as_nl |
68 | IFS=" "" $as_nl" |
48 | IFS=" "" $as_nl" |
69 | |
49 | |
|
|
50 | PS1='$ ' |
|
|
51 | PS2='> ' |
|
|
52 | PS4='+ ' |
|
|
53 | |
|
|
54 | # Ensure predictable behavior from utilities with locale-dependent output. |
|
|
55 | LC_ALL=C |
|
|
56 | export LC_ALL |
|
|
57 | LANGUAGE=C |
|
|
58 | export LANGUAGE |
|
|
59 | |
|
|
60 | # We cannot yet rely on "unset" to work, but we need these variables |
|
|
61 | # to be unset--not just set to an empty or harmless value--now, to |
|
|
62 | # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct |
|
|
63 | # also avoids known problems related to "unset" and subshell syntax |
|
|
64 | # in other old shells (e.g. bash 2.01 and pdksh 5.2.14). |
|
|
65 | for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH |
|
|
66 | do eval test \${$as_var+y} \ |
|
|
67 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : |
|
|
68 | done |
|
|
69 | |
|
|
70 | # Ensure that fds 0, 1, and 2 are open. |
|
|
71 | if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi |
|
|
72 | if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi |
|
|
73 | if (exec 3>&2) ; then :; else exec 2>/dev/null; fi |
|
|
74 | |
|
|
75 | # The user is always right. |
|
|
76 | if ${PATH_SEPARATOR+false} :; then |
|
|
77 | PATH_SEPARATOR=: |
|
|
78 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
|
|
79 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
|
|
80 | PATH_SEPARATOR=';' |
|
|
81 | } |
|
|
82 | fi |
|
|
83 | |
|
|
84 | |
70 | # 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= |
71 | case $0 in |
87 | case $0 in #(( |
72 | *[\\/]* ) as_myself=$0 ;; |
88 | *[\\/]* ) as_myself=$0 ;; |
73 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
89 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
74 | for as_dir in $PATH |
90 | for as_dir in $PATH |
75 | do |
91 | do |
76 | IFS=$as_save_IFS |
92 | IFS=$as_save_IFS |
77 | test -z "$as_dir" && as_dir=. |
93 | case $as_dir in #((( |
|
|
94 | '') as_dir=./ ;; |
|
|
95 | */) ;; |
|
|
96 | *) as_dir=$as_dir/ ;; |
|
|
97 | esac |
78 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
98 | test -r "$as_dir$0" && as_myself=$as_dir$0 && break |
79 | done |
99 | done |
80 | IFS=$as_save_IFS |
100 | IFS=$as_save_IFS |
81 | |
101 | |
82 | ;; |
102 | ;; |
83 | esac |
103 | esac |
84 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
104 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
85 | # 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. |
86 | if test "x$as_myself" = x; then |
106 | if test "x$as_myself" = x; then |
87 | as_myself=$0 |
107 | as_myself=$0 |
88 | fi |
108 | fi |
89 | if test ! -f "$as_myself"; then |
109 | if test ! -f "$as_myself"; then |
90 | 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 |
91 | { (exit 1); exit 1; } |
111 | exit 1 |
92 | fi |
112 | fi |
93 | |
113 | |
94 | # Work around bugs in pre-3.0 UWIN ksh. |
114 | |
95 | for as_var in ENV MAIL MAILPATH |
115 | # Use a proper internal environment variable to ensure we don't fall |
96 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
116 | # into an infinite loop, continuously re-executing ourselves. |
|
|
117 | if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then |
|
|
118 | _as_can_reexec=no; export _as_can_reexec; |
|
|
119 | # We cannot yet assume a decent shell, so we have to provide a |
|
|
120 | # neutralization value for shells without unset; and this also |
|
|
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 |
|
|
125 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV |
|
|
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;} |
|
|
140 | if test "x$CONFIG_SHELL" = x; then |
|
|
141 | as_bourne_compatible="as_nop=: |
|
|
142 | if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 |
|
|
143 | then : |
|
|
144 | emulate sh |
|
|
145 | NULLCMD=: |
|
|
146 | # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which |
|
|
147 | # is contrary to our usage. Disable this feature. |
|
|
148 | alias -g '\${1+\"\$@\"}'='\"\$@\"' |
|
|
149 | setopt NO_GLOB_SUBST |
|
|
150 | else \$as_nop |
|
|
151 | case \`(set -o) 2>/dev/null\` in #( |
|
|
152 | *posix*) : |
|
|
153 | set -o posix ;; #( |
|
|
154 | *) : |
|
|
155 | ;; |
|
|
156 | esac |
|
|
157 | fi |
|
|
158 | " |
|
|
159 | as_required="as_fn_return () { (exit \$1); } |
|
|
160 | as_fn_success () { as_fn_return 0; } |
|
|
161 | as_fn_failure () { as_fn_return 1; } |
|
|
162 | as_fn_ret_success () { return 0; } |
|
|
163 | as_fn_ret_failure () { return 1; } |
|
|
164 | |
|
|
165 | exitcode=0 |
|
|
166 | as_fn_success || { exitcode=1; echo as_fn_success failed.; } |
|
|
167 | as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } |
|
|
168 | as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } |
|
|
169 | as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } |
|
|
170 | if ( set x; as_fn_ret_success y && test x = \"\$1\" ) |
|
|
171 | then : |
|
|
172 | |
|
|
173 | else \$as_nop |
|
|
174 | exitcode=1; echo positional parameters were not saved. |
|
|
175 | fi |
|
|
176 | test x\$exitcode = x0 || exit 1 |
|
|
177 | blah=\$(echo \$(echo blah)) |
|
|
178 | test x\"\$blah\" = xblah || exit 1 |
|
|
179 | test -x / || exit 1" |
|
|
180 | as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO |
|
|
181 | as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO |
|
|
182 | eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && |
|
|
183 | test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1" |
|
|
184 | if (eval "$as_required") 2>/dev/null |
|
|
185 | then : |
|
|
186 | as_have_required=yes |
|
|
187 | else $as_nop |
|
|
188 | as_have_required=no |
|
|
189 | fi |
|
|
190 | if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null |
|
|
191 | then : |
|
|
192 | |
|
|
193 | else $as_nop |
|
|
194 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
|
195 | as_found=false |
|
|
196 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
|
|
197 | do |
|
|
198 | IFS=$as_save_IFS |
|
|
199 | case $as_dir in #((( |
|
|
200 | '') as_dir=./ ;; |
|
|
201 | */) ;; |
|
|
202 | *) as_dir=$as_dir/ ;; |
|
|
203 | esac |
|
|
204 | as_found=: |
|
|
205 | case $as_dir in #( |
|
|
206 | /*) |
|
|
207 | for as_base in sh bash ksh sh5; do |
|
|
208 | # Try only shells that exist, to save several forks. |
|
|
209 | as_shell=$as_dir$as_base |
|
|
210 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && |
|
|
211 | as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null |
|
|
212 | then : |
|
|
213 | CONFIG_SHELL=$as_shell as_have_required=yes |
|
|
214 | if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null |
|
|
215 | then : |
|
|
216 | break 2 |
|
|
217 | fi |
|
|
218 | fi |
|
|
219 | done;; |
|
|
220 | esac |
|
|
221 | as_found=false |
97 | done |
222 | done |
98 | PS1='$ ' |
223 | IFS=$as_save_IFS |
99 | PS2='> ' |
224 | if $as_found |
100 | PS4='+ ' |
225 | then : |
101 | |
226 | |
102 | # NLS nuisances. |
227 | else $as_nop |
103 | for as_var in \ |
228 | if { test -f "$SHELL" || test -f "$SHELL.exe"; } && |
104 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
229 | as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null |
105 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
230 | then : |
106 | LC_TELEPHONE LC_TIME |
231 | CONFIG_SHELL=$SHELL as_have_required=yes |
107 | do |
232 | fi |
108 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
233 | fi |
109 | eval $as_var=C; export $as_var |
234 | |
|
|
235 | |
|
|
236 | if test "x$CONFIG_SHELL" != x |
|
|
237 | then : |
|
|
238 | export CONFIG_SHELL |
|
|
239 | # We cannot yet assume a decent shell, so we have to provide a |
|
|
240 | # neutralization value for shells without unset; and this also |
|
|
241 | # works around shells that cannot unset nonexistent variables. |
|
|
242 | # Preserve -v and -x to the replacement shell. |
|
|
243 | BASH_ENV=/dev/null |
|
|
244 | ENV=/dev/null |
|
|
245 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV |
|
|
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 |
|
|
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 |
|
|
257 | fi |
|
|
258 | |
|
|
259 | if test x$as_have_required = xno |
|
|
260 | then : |
|
|
261 | printf "%s\n" "$0: This script requires a shell more modern than all" |
|
|
262 | printf "%s\n" "$0: the shells that I found on your system." |
|
|
263 | if test ${ZSH_VERSION+y} ; then |
|
|
264 | printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should" |
|
|
265 | printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later." |
110 | else |
266 | else |
111 | ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
267 | printf "%s\n" "$0: Please tell bug-autoconf@gnu.org about your system, |
|
|
268 | $0: including any error possibly output before this |
|
|
269 | $0: message. Then install a modern shell, or manually run |
|
|
270 | $0: the script under such a shell if you do have one." |
112 | fi |
271 | fi |
113 | done |
272 | exit 1 |
|
|
273 | fi |
|
|
274 | fi |
|
|
275 | fi |
|
|
276 | SHELL=${CONFIG_SHELL-/bin/sh} |
|
|
277 | export SHELL |
|
|
278 | # Unset more variables known to interfere with behavior of common tools. |
|
|
279 | CLICOLOR_FORCE= GREP_OPTIONS= |
|
|
280 | unset CLICOLOR_FORCE GREP_OPTIONS |
114 | |
281 | |
115 | # Required to use basename. |
282 | ## --------------------- ## |
|
|
283 | ## M4sh Shell Functions. ## |
|
|
284 | ## --------------------- ## |
|
|
285 | # as_fn_unset VAR |
|
|
286 | # --------------- |
|
|
287 | # Portably unset VAR. |
|
|
288 | as_fn_unset () |
|
|
289 | { |
|
|
290 | { eval $1=; unset $1;} |
|
|
291 | } |
|
|
292 | as_unset=as_fn_unset |
|
|
293 | |
|
|
294 | |
|
|
295 | # as_fn_set_status STATUS |
|
|
296 | # ----------------------- |
|
|
297 | # Set $? to STATUS, without forking. |
|
|
298 | as_fn_set_status () |
|
|
299 | { |
|
|
300 | return $1 |
|
|
301 | } # as_fn_set_status |
|
|
302 | |
|
|
303 | # as_fn_exit STATUS |
|
|
304 | # ----------------- |
|
|
305 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. |
|
|
306 | as_fn_exit () |
|
|
307 | { |
|
|
308 | set +e |
|
|
309 | as_fn_set_status $1 |
|
|
310 | exit $1 |
|
|
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 |
|
|
320 | |
|
|
321 | # as_fn_mkdir_p |
|
|
322 | # ------------- |
|
|
323 | # Create "$as_dir" as a directory, including parents if necessary. |
|
|
324 | as_fn_mkdir_p () |
|
|
325 | { |
|
|
326 | |
|
|
327 | case $as_dir in #( |
|
|
328 | -*) as_dir=./$as_dir;; |
|
|
329 | esac |
|
|
330 | test -d "$as_dir" || eval $as_mkdir_p || { |
|
|
331 | as_dirs= |
|
|
332 | while :; do |
|
|
333 | case $as_dir in #( |
|
|
334 | *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
|
|
335 | *) as_qdir=$as_dir;; |
|
|
336 | esac |
|
|
337 | as_dirs="'$as_qdir' $as_dirs" |
|
|
338 | as_dir=`$as_dirname -- "$as_dir" || |
|
|
339 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
|
|
340 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
|
|
341 | X"$as_dir" : 'X\(//\)$' \| \ |
|
|
342 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
|
|
343 | printf "%s\n" X"$as_dir" | |
|
|
344 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
|
|
345 | s//\1/ |
|
|
346 | q |
|
|
347 | } |
|
|
348 | /^X\(\/\/\)[^/].*/{ |
|
|
349 | s//\1/ |
|
|
350 | q |
|
|
351 | } |
|
|
352 | /^X\(\/\/\)$/{ |
|
|
353 | s//\1/ |
|
|
354 | q |
|
|
355 | } |
|
|
356 | /^X\(\/\).*/{ |
|
|
357 | s//\1/ |
|
|
358 | q |
|
|
359 | } |
|
|
360 | s/.*/./; q'` |
|
|
361 | test -d "$as_dir" && break |
|
|
362 | done |
|
|
363 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
|
|
364 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
|
|
365 | |
|
|
366 | |
|
|
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 |
|
|
376 | # as_fn_append VAR VALUE |
|
|
377 | # ---------------------- |
|
|
378 | # Append the text in VALUE to the end of the definition contained in VAR. Take |
|
|
379 | # advantage of any shell optimizations that allow amortized linear growth over |
|
|
380 | # repeated appends, instead of the typical quadratic growth present in naive |
|
|
381 | # implementations. |
|
|
382 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null |
|
|
383 | then : |
|
|
384 | eval 'as_fn_append () |
|
|
385 | { |
|
|
386 | eval $1+=\$2 |
|
|
387 | }' |
|
|
388 | else $as_nop |
|
|
389 | as_fn_append () |
|
|
390 | { |
|
|
391 | eval $1=\$$1\$2 |
|
|
392 | } |
|
|
393 | fi # as_fn_append |
|
|
394 | |
|
|
395 | # as_fn_arith ARG... |
|
|
396 | # ------------------ |
|
|
397 | # Perform arithmetic evaluation on the ARGs, and store the result in the |
|
|
398 | # global $as_val. Take advantage of shells that can avoid forks. The arguments |
|
|
399 | # must be portable across $(()) and expr. |
|
|
400 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null |
|
|
401 | then : |
|
|
402 | eval 'as_fn_arith () |
|
|
403 | { |
|
|
404 | as_val=$(( $* )) |
|
|
405 | }' |
|
|
406 | else $as_nop |
|
|
407 | as_fn_arith () |
|
|
408 | { |
|
|
409 | as_val=`expr "$@" || test $? -eq 1` |
|
|
410 | } |
|
|
411 | fi # as_fn_arith |
|
|
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 |
|
|
421 | |
|
|
422 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
|
|
423 | # ---------------------------------------- |
|
|
424 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
|
|
425 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the |
|
|
426 | # script with STATUS, using 1 if that was 0. |
|
|
427 | as_fn_error () |
|
|
428 | { |
|
|
429 | as_status=$1; test $as_status -eq 0 && as_status=1 |
|
|
430 | if test "$4"; then |
|
|
431 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
|
|
432 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 |
|
|
433 | fi |
|
|
434 | printf "%s\n" "$as_me: error: $2" >&2 |
|
|
435 | as_fn_exit $as_status |
|
|
436 | } # as_fn_error |
|
|
437 | |
116 | if expr a : '\(a\)' >/dev/null 2>&1 && |
438 | if expr a : '\(a\)' >/dev/null 2>&1 && |
117 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
439 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
118 | as_expr=expr |
440 | as_expr=expr |
119 | else |
441 | else |
120 | as_expr=false |
442 | as_expr=false |
… | |
… | |
124 | as_basename=basename |
446 | as_basename=basename |
125 | else |
447 | else |
126 | as_basename=false |
448 | as_basename=false |
127 | fi |
449 | fi |
128 | |
450 | |
|
|
451 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
|
|
452 | as_dirname=dirname |
|
|
453 | else |
|
|
454 | as_dirname=false |
|
|
455 | fi |
129 | |
456 | |
130 | # Name of the executable. |
|
|
131 | as_me=`$as_basename -- "$0" || |
457 | as_me=`$as_basename -- "$0" || |
132 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
458 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
133 | X"$0" : 'X\(//\)$' \| \ |
459 | X"$0" : 'X\(//\)$' \| \ |
134 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
460 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
135 | echo X/"$0" | |
461 | printf "%s\n" X/"$0" | |
136 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
462 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
137 | s//\1/ |
463 | s//\1/ |
138 | q |
464 | q |
139 | } |
465 | } |
140 | /^X\/\(\/\/\)$/{ |
466 | /^X\/\(\/\/\)$/{ |
… | |
… | |
145 | s//\1/ |
471 | s//\1/ |
146 | q |
472 | q |
147 | } |
473 | } |
148 | s/.*/./; q'` |
474 | s/.*/./; q'` |
149 | |
475 | |
150 | # CDPATH. |
476 | # Avoid depending upon Character Ranges. |
151 | $as_unset CDPATH |
477 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
|
|
478 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
|
|
479 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
|
|
480 | as_cr_digits='0123456789' |
|
|
481 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
152 | |
482 | |
153 | |
483 | |
154 | if test "x$CONFIG_SHELL" = x; then |
484 | as_lineno_1=$LINENO as_lineno_1a=$LINENO |
155 | if (eval ":") 2>/dev/null; then |
485 | as_lineno_2=$LINENO as_lineno_2a=$LINENO |
156 | as_have_required=yes |
|
|
157 | else |
|
|
158 | as_have_required=no |
|
|
159 | fi |
|
|
160 | |
|
|
161 | if test $as_have_required = yes && (eval ": |
|
|
162 | (as_func_return () { |
|
|
163 | (exit \$1) |
|
|
164 | } |
|
|
165 | as_func_success () { |
|
|
166 | as_func_return 0 |
|
|
167 | } |
|
|
168 | as_func_failure () { |
|
|
169 | as_func_return 1 |
|
|
170 | } |
|
|
171 | as_func_ret_success () { |
|
|
172 | return 0 |
|
|
173 | } |
|
|
174 | as_func_ret_failure () { |
|
|
175 | return 1 |
|
|
176 | } |
|
|
177 | |
|
|
178 | exitcode=0 |
|
|
179 | if as_func_success; then |
|
|
180 | : |
|
|
181 | else |
|
|
182 | exitcode=1 |
|
|
183 | echo as_func_success failed. |
|
|
184 | fi |
|
|
185 | |
|
|
186 | if as_func_failure; then |
|
|
187 | exitcode=1 |
|
|
188 | echo as_func_failure succeeded. |
|
|
189 | fi |
|
|
190 | |
|
|
191 | if as_func_ret_success; then |
|
|
192 | : |
|
|
193 | else |
|
|
194 | exitcode=1 |
|
|
195 | echo as_func_ret_success failed. |
|
|
196 | fi |
|
|
197 | |
|
|
198 | if as_func_ret_failure; then |
|
|
199 | exitcode=1 |
|
|
200 | echo as_func_ret_failure succeeded. |
|
|
201 | fi |
|
|
202 | |
|
|
203 | if ( set x; as_func_ret_success y && test x = \"\$1\" ); then |
|
|
204 | : |
|
|
205 | else |
|
|
206 | exitcode=1 |
|
|
207 | echo positional parameters were not saved. |
|
|
208 | fi |
|
|
209 | |
|
|
210 | test \$exitcode = 0) || { (exit 1); exit 1; } |
|
|
211 | |
|
|
212 | ( |
|
|
213 | as_lineno_1=\$LINENO |
|
|
214 | as_lineno_2=\$LINENO |
|
|
215 | test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && |
|
|
216 | test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } |
|
|
217 | ") 2> /dev/null; then |
|
|
218 | : |
|
|
219 | else |
|
|
220 | as_candidate_shells= |
|
|
221 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
|
222 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
|
|
223 | do |
|
|
224 | IFS=$as_save_IFS |
|
|
225 | test -z "$as_dir" && as_dir=. |
|
|
226 | case $as_dir in |
|
|
227 | /*) |
|
|
228 | for as_base in sh bash ksh sh5; do |
|
|
229 | as_candidate_shells="$as_candidate_shells $as_dir/$as_base" |
|
|
230 | done;; |
|
|
231 | esac |
|
|
232 | done |
|
|
233 | IFS=$as_save_IFS |
|
|
234 | |
|
|
235 | |
|
|
236 | for as_shell in $as_candidate_shells $SHELL; do |
|
|
237 | # Try only shells that exist, to save several forks. |
|
|
238 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && |
|
|
239 | { ("$as_shell") 2> /dev/null <<\_ASEOF |
|
|
240 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
|
|
241 | emulate sh |
|
|
242 | NULLCMD=: |
|
|
243 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
|
|
244 | # is contrary to our usage. Disable this feature. |
|
|
245 | alias -g '${1+"$@"}'='"$@"' |
|
|
246 | setopt NO_GLOB_SUBST |
|
|
247 | else |
|
|
248 | case `(set -o) 2>/dev/null` in |
|
|
249 | *posix*) set -o posix ;; |
|
|
250 | esac |
|
|
251 | |
|
|
252 | fi |
|
|
253 | |
|
|
254 | |
|
|
255 | : |
|
|
256 | _ASEOF |
|
|
257 | }; then |
|
|
258 | CONFIG_SHELL=$as_shell |
|
|
259 | as_have_required=yes |
|
|
260 | if { "$as_shell" 2> /dev/null <<\_ASEOF |
|
|
261 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
|
|
262 | emulate sh |
|
|
263 | NULLCMD=: |
|
|
264 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
|
|
265 | # is contrary to our usage. Disable this feature. |
|
|
266 | alias -g '${1+"$@"}'='"$@"' |
|
|
267 | setopt NO_GLOB_SUBST |
|
|
268 | else |
|
|
269 | case `(set -o) 2>/dev/null` in |
|
|
270 | *posix*) set -o posix ;; |
|
|
271 | esac |
|
|
272 | |
|
|
273 | fi |
|
|
274 | |
|
|
275 | |
|
|
276 | : |
|
|
277 | (as_func_return () { |
|
|
278 | (exit $1) |
|
|
279 | } |
|
|
280 | as_func_success () { |
|
|
281 | as_func_return 0 |
|
|
282 | } |
|
|
283 | as_func_failure () { |
|
|
284 | as_func_return 1 |
|
|
285 | } |
|
|
286 | as_func_ret_success () { |
|
|
287 | return 0 |
|
|
288 | } |
|
|
289 | as_func_ret_failure () { |
|
|
290 | return 1 |
|
|
291 | } |
|
|
292 | |
|
|
293 | exitcode=0 |
|
|
294 | if as_func_success; then |
|
|
295 | : |
|
|
296 | else |
|
|
297 | exitcode=1 |
|
|
298 | echo as_func_success failed. |
|
|
299 | fi |
|
|
300 | |
|
|
301 | if as_func_failure; then |
|
|
302 | exitcode=1 |
|
|
303 | echo as_func_failure succeeded. |
|
|
304 | fi |
|
|
305 | |
|
|
306 | if as_func_ret_success; then |
|
|
307 | : |
|
|
308 | else |
|
|
309 | exitcode=1 |
|
|
310 | echo as_func_ret_success failed. |
|
|
311 | fi |
|
|
312 | |
|
|
313 | if as_func_ret_failure; then |
|
|
314 | exitcode=1 |
|
|
315 | echo as_func_ret_failure succeeded. |
|
|
316 | fi |
|
|
317 | |
|
|
318 | if ( set x; as_func_ret_success y && test x = "$1" ); then |
|
|
319 | : |
|
|
320 | else |
|
|
321 | exitcode=1 |
|
|
322 | echo positional parameters were not saved. |
|
|
323 | fi |
|
|
324 | |
|
|
325 | test $exitcode = 0) || { (exit 1); exit 1; } |
|
|
326 | |
|
|
327 | ( |
|
|
328 | as_lineno_1=$LINENO |
|
|
329 | as_lineno_2=$LINENO |
|
|
330 | test "x$as_lineno_1" != "x$as_lineno_2" && |
486 | eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && |
331 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } |
|
|
332 | |
|
|
333 | _ASEOF |
|
|
334 | }; then |
|
|
335 | break |
|
|
336 | fi |
|
|
337 | |
|
|
338 | fi |
|
|
339 | |
|
|
340 | done |
|
|
341 | |
|
|
342 | if test "x$CONFIG_SHELL" != x; then |
|
|
343 | for as_var in BASH_ENV ENV |
|
|
344 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
|
|
345 | done |
|
|
346 | export CONFIG_SHELL |
|
|
347 | exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} |
|
|
348 | fi |
|
|
349 | |
|
|
350 | |
|
|
351 | if test $as_have_required = no; then |
|
|
352 | echo This script requires a shell more modern than all the |
|
|
353 | echo shells that I found on your system. Please install a |
|
|
354 | echo modern shell, or manually run the script under such a |
|
|
355 | echo shell if you do have one. |
|
|
356 | { (exit 1); exit 1; } |
|
|
357 | fi |
|
|
358 | |
|
|
359 | |
|
|
360 | fi |
|
|
361 | |
|
|
362 | fi |
|
|
363 | |
|
|
364 | |
|
|
365 | |
|
|
366 | (eval "as_func_return () { |
|
|
367 | (exit \$1) |
|
|
368 | } |
|
|
369 | as_func_success () { |
|
|
370 | as_func_return 0 |
|
|
371 | } |
|
|
372 | as_func_failure () { |
|
|
373 | as_func_return 1 |
|
|
374 | } |
|
|
375 | as_func_ret_success () { |
|
|
376 | return 0 |
|
|
377 | } |
|
|
378 | as_func_ret_failure () { |
|
|
379 | return 1 |
|
|
380 | } |
|
|
381 | |
|
|
382 | exitcode=0 |
|
|
383 | if as_func_success; then |
|
|
384 | : |
|
|
385 | else |
|
|
386 | exitcode=1 |
|
|
387 | echo as_func_success failed. |
|
|
388 | fi |
|
|
389 | |
|
|
390 | if as_func_failure; then |
|
|
391 | exitcode=1 |
|
|
392 | echo as_func_failure succeeded. |
|
|
393 | fi |
|
|
394 | |
|
|
395 | if as_func_ret_success; then |
|
|
396 | : |
|
|
397 | else |
|
|
398 | exitcode=1 |
|
|
399 | echo as_func_ret_success failed. |
|
|
400 | fi |
|
|
401 | |
|
|
402 | if as_func_ret_failure; then |
|
|
403 | exitcode=1 |
|
|
404 | echo as_func_ret_failure succeeded. |
|
|
405 | fi |
|
|
406 | |
|
|
407 | if ( set x; as_func_ret_success y && test x = \"\$1\" ); then |
|
|
408 | : |
|
|
409 | else |
|
|
410 | exitcode=1 |
|
|
411 | echo positional parameters were not saved. |
|
|
412 | fi |
|
|
413 | |
|
|
414 | test \$exitcode = 0") || { |
|
|
415 | echo No shell found that supports shell functions. |
|
|
416 | echo Please tell autoconf@gnu.org about your system, |
|
|
417 | echo including any error possibly output before this |
|
|
418 | echo message |
|
|
419 | } |
|
|
420 | |
|
|
421 | |
|
|
422 | |
|
|
423 | as_lineno_1=$LINENO |
|
|
424 | as_lineno_2=$LINENO |
|
|
425 | test "x$as_lineno_1" != "x$as_lineno_2" && |
|
|
426 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { |
487 | test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { |
427 | |
|
|
428 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
|
|
429 | # uniformly replaced by the line number. The first 'sed' inserts a |
|
|
430 | # line-number line after each line using $LINENO; the second 'sed' |
|
|
431 | # does the real work. The second script uses 'N' to pair each |
|
|
432 | # line-number line with the line containing $LINENO, and appends |
|
|
433 | # trailing '-' during substitution so that $LINENO is not a special |
|
|
434 | # case at line end. |
|
|
435 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
|
|
436 | # scripts with optimization help from Paolo Bonzini. Blame Lee |
|
|
437 | # E. McMahon (1931-1989) for sed's syntax. :-) |
488 | # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) |
438 | sed -n ' |
489 | sed -n ' |
439 | p |
490 | p |
440 | /[$]LINENO/= |
491 | /[$]LINENO/= |
441 | ' <$as_myself | |
492 | ' <$as_myself | |
442 | sed ' |
493 | sed ' |
… | |
… | |
449 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
500 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
450 | t loop |
501 | t loop |
451 | s/-\n.*// |
502 | s/-\n.*// |
452 | ' >$as_me.lineno && |
503 | ' >$as_me.lineno && |
453 | chmod +x "$as_me.lineno" || |
504 | chmod +x "$as_me.lineno" || |
454 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
505 | { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } |
455 | { (exit 1); exit 1; }; } |
|
|
456 | |
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 |
457 | # 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 |
458 | # (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 |
459 | # original and so on. Autoconf is especially sensitive to this). |
513 | # original and so on. Autoconf is especially sensitive to this). |
460 | . "./$as_me.lineno" |
514 | . "./$as_me.lineno" |
461 | # Exit status is that of the last command. |
515 | # Exit status is that of the last command. |
462 | exit |
516 | exit |
463 | } |
517 | } |
464 | |
518 | |
465 | |
519 | |
466 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
520 | # Determine whether it's possible to make 'echo' print without a newline. |
467 | as_dirname=dirname |
521 | # These variables are no longer used directly by Autoconf, but are AC_SUBSTed |
468 | else |
522 | # for compatibility with existing Makefiles. |
469 | as_dirname=false |
|
|
470 | fi |
|
|
471 | |
|
|
472 | ECHO_C= ECHO_N= ECHO_T= |
523 | ECHO_C= ECHO_N= ECHO_T= |
473 | case `echo -n x` in |
524 | case `echo -n x` in #((((( |
474 | -n*) |
525 | -n*) |
475 | case `echo 'x\c'` in |
526 | case `echo 'xy\c'` in |
476 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
527 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
477 | *) ECHO_C='\c';; |
528 | xy) ECHO_C='\c';; |
|
|
529 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null |
|
|
530 | ECHO_T=' ';; |
478 | esac;; |
531 | esac;; |
479 | *) |
532 | *) |
480 | ECHO_N='-n';; |
533 | ECHO_N='-n';; |
481 | esac |
534 | esac |
482 | |
535 | |
483 | if expr a : '\(a\)' >/dev/null 2>&1 && |
536 | # For backward compatibility with old third-party macros, we provide |
484 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
537 | # the shell variables $as_echo and $as_echo_n. New code should use |
485 | as_expr=expr |
538 | # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. |
486 | else |
539 | as_echo='printf %s\n' |
487 | as_expr=false |
540 | as_echo_n='printf %s' |
488 | fi |
541 | |
489 | |
542 | |
490 | rm -f conf$$ conf$$.exe conf$$.file |
543 | rm -f conf$$ conf$$.exe conf$$.file |
491 | if test -d conf$$.dir; then |
544 | if test -d conf$$.dir; then |
492 | rm -f conf$$.dir/conf$$.file |
545 | rm -f conf$$.dir/conf$$.file |
493 | else |
546 | else |
494 | rm -f conf$$.dir |
547 | rm -f conf$$.dir |
495 | mkdir conf$$.dir |
548 | mkdir conf$$.dir 2>/dev/null |
496 | fi |
549 | fi |
497 | echo >conf$$.file |
550 | if (echo >conf$$.file) 2>/dev/null; then |
498 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
551 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
499 | as_ln_s='ln -s' |
552 | as_ln_s='ln -s' |
500 | # ... but there are two gotchas: |
553 | # ... but there are two gotchas: |
501 | # 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. |
502 | # 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. |
503 | # In both cases, we have to default to `cp -p'. |
556 | # In both cases, we have to default to `cp -pR'. |
504 | 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 || |
505 | as_ln_s='cp -p' |
558 | as_ln_s='cp -pR' |
506 | elif ln conf$$.file conf$$ 2>/dev/null; then |
559 | elif ln conf$$.file conf$$ 2>/dev/null; then |
507 | as_ln_s=ln |
560 | as_ln_s=ln |
|
|
561 | else |
|
|
562 | as_ln_s='cp -pR' |
|
|
563 | fi |
508 | else |
564 | else |
509 | as_ln_s='cp -p' |
565 | as_ln_s='cp -pR' |
510 | fi |
566 | fi |
511 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
567 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
512 | rmdir conf$$.dir 2>/dev/null |
568 | rmdir conf$$.dir 2>/dev/null |
513 | |
569 | |
514 | if mkdir -p . 2>/dev/null; then |
570 | if mkdir -p . 2>/dev/null; then |
515 | as_mkdir_p=: |
571 | as_mkdir_p='mkdir -p "$as_dir"' |
516 | else |
572 | else |
517 | test -d ./-p && rmdir ./-p |
573 | test -d ./-p && rmdir ./-p |
518 | as_mkdir_p=false |
574 | as_mkdir_p=false |
519 | fi |
575 | fi |
520 | |
576 | |
521 | if test -x / >/dev/null 2>&1; then |
|
|
522 | as_test_x='test -x' |
577 | as_test_x='test -x' |
523 | else |
578 | as_executable_p=as_fn_executable_p |
524 | if ls -dL / >/dev/null 2>&1; then |
|
|
525 | as_ls_L_option=L |
|
|
526 | else |
|
|
527 | as_ls_L_option= |
|
|
528 | fi |
|
|
529 | as_test_x=' |
|
|
530 | eval sh -c '\'' |
|
|
531 | if test -d "$1"; then |
|
|
532 | test -d "$1/."; |
|
|
533 | else |
|
|
534 | case $1 in |
|
|
535 | -*)set "./$1";; |
|
|
536 | esac; |
|
|
537 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in |
|
|
538 | ???[sx]*):;;*)false;;esac;fi |
|
|
539 | '\'' sh |
|
|
540 | ' |
|
|
541 | fi |
|
|
542 | as_executable_p=$as_test_x |
|
|
543 | |
579 | |
544 | # Sed expression to map a string onto a valid CPP name. |
580 | # Sed expression to map a string onto a valid CPP name. |
545 | 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'" |
546 | |
582 | |
547 | # Sed expression to map a string onto a valid variable name. |
583 | # Sed expression to map a string onto a valid variable name. |
548 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
584 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
549 | |
585 | |
550 | |
586 | |
551 | |
587 | test -n "$DJDIR" || exec 7<&0 </dev/null |
552 | exec 7<&0 </dev/null 6>&1 |
588 | exec 6>&1 |
553 | |
589 | |
554 | # Name of the host. |
590 | # Name of the host. |
555 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, |
591 | # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, |
556 | # so uname gets run too. |
592 | # so uname gets run too. |
557 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
593 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
558 | |
594 | |
559 | # |
595 | # |
560 | # Initializations. |
596 | # Initializations. |
… | |
… | |
565 | LIBOBJS= |
601 | LIBOBJS= |
566 | cross_compiling=no |
602 | cross_compiling=no |
567 | subdirs= |
603 | subdirs= |
568 | MFLAGS= |
604 | MFLAGS= |
569 | MAKEFLAGS= |
605 | MAKEFLAGS= |
570 | SHELL=${CONFIG_SHELL-/bin/sh} |
|
|
571 | |
606 | |
572 | # Identity of this package. |
607 | # Identity of this package. |
573 | PACKAGE_NAME= |
608 | PACKAGE_NAME='' |
574 | PACKAGE_TARNAME= |
609 | PACKAGE_TARNAME='' |
575 | PACKAGE_VERSION= |
610 | PACKAGE_VERSION='' |
576 | PACKAGE_STRING= |
611 | PACKAGE_STRING='' |
577 | PACKAGE_BUGREPORT= |
612 | PACKAGE_BUGREPORT='' |
|
|
613 | PACKAGE_URL='' |
578 | |
614 | |
579 | ac_unique_file="libeio/eio.h" |
615 | ac_unique_file="libeio/eio.h" |
580 | ac_subst_vars='SHELL |
616 | # Factoring default headers for most tests. |
|
|
617 | ac_includes_default="\ |
|
|
618 | #include <stddef.h> |
|
|
619 | #ifdef HAVE_STDIO_H |
|
|
620 | # include <stdio.h> |
|
|
621 | #endif |
|
|
622 | #ifdef HAVE_STDLIB_H |
|
|
623 | # include <stdlib.h> |
|
|
624 | #endif |
|
|
625 | #ifdef HAVE_STRING_H |
|
|
626 | # include <string.h> |
|
|
627 | #endif |
|
|
628 | #ifdef HAVE_INTTYPES_H |
|
|
629 | # include <inttypes.h> |
|
|
630 | #endif |
|
|
631 | #ifdef HAVE_STDINT_H |
|
|
632 | # include <stdint.h> |
|
|
633 | #endif |
|
|
634 | #ifdef HAVE_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 |
|
|
643 | #ifdef HAVE_UNISTD_H |
|
|
644 | # include <unistd.h> |
|
|
645 | #endif" |
|
|
646 | |
|
|
647 | ac_header_c_list= |
|
|
648 | ac_subst_vars='LTLIBOBJS |
|
|
649 | LIBOBJS |
|
|
650 | OBJEXT |
|
|
651 | EXEEXT |
|
|
652 | ac_ct_CC |
|
|
653 | CPPFLAGS |
|
|
654 | LDFLAGS |
|
|
655 | CFLAGS |
|
|
656 | CC |
|
|
657 | target_alias |
|
|
658 | host_alias |
|
|
659 | build_alias |
|
|
660 | LIBS |
|
|
661 | ECHO_T |
|
|
662 | ECHO_N |
|
|
663 | ECHO_C |
|
|
664 | DEFS |
|
|
665 | mandir |
|
|
666 | localedir |
|
|
667 | libdir |
|
|
668 | psdir |
|
|
669 | pdfdir |
|
|
670 | dvidir |
|
|
671 | htmldir |
|
|
672 | infodir |
|
|
673 | docdir |
|
|
674 | oldincludedir |
|
|
675 | includedir |
|
|
676 | runstatedir |
|
|
677 | localstatedir |
|
|
678 | sharedstatedir |
|
|
679 | sysconfdir |
|
|
680 | datadir |
|
|
681 | datarootdir |
|
|
682 | libexecdir |
|
|
683 | sbindir |
|
|
684 | bindir |
|
|
685 | program_transform_name |
|
|
686 | prefix |
|
|
687 | exec_prefix |
|
|
688 | PACKAGE_URL |
|
|
689 | PACKAGE_BUGREPORT |
|
|
690 | PACKAGE_STRING |
|
|
691 | PACKAGE_VERSION |
|
|
692 | PACKAGE_TARNAME |
|
|
693 | PACKAGE_NAME |
581 | PATH_SEPARATOR |
694 | PATH_SEPARATOR |
582 | PACKAGE_NAME |
695 | SHELL' |
583 | PACKAGE_TARNAME |
|
|
584 | PACKAGE_VERSION |
|
|
585 | PACKAGE_STRING |
|
|
586 | PACKAGE_BUGREPORT |
|
|
587 | exec_prefix |
|
|
588 | prefix |
|
|
589 | program_transform_name |
|
|
590 | bindir |
|
|
591 | sbindir |
|
|
592 | libexecdir |
|
|
593 | datarootdir |
|
|
594 | datadir |
|
|
595 | sysconfdir |
|
|
596 | sharedstatedir |
|
|
597 | localstatedir |
|
|
598 | includedir |
|
|
599 | oldincludedir |
|
|
600 | docdir |
|
|
601 | infodir |
|
|
602 | htmldir |
|
|
603 | dvidir |
|
|
604 | pdfdir |
|
|
605 | psdir |
|
|
606 | libdir |
|
|
607 | localedir |
|
|
608 | mandir |
|
|
609 | DEFS |
|
|
610 | ECHO_C |
|
|
611 | ECHO_N |
|
|
612 | ECHO_T |
|
|
613 | LIBS |
|
|
614 | build_alias |
|
|
615 | host_alias |
|
|
616 | target_alias |
|
|
617 | CC |
|
|
618 | CFLAGS |
|
|
619 | LDFLAGS |
|
|
620 | CPPFLAGS |
|
|
621 | ac_ct_CC |
|
|
622 | EXEEXT |
|
|
623 | OBJEXT |
|
|
624 | LIBOBJS |
|
|
625 | LTLIBOBJS' |
|
|
626 | ac_subst_files='' |
696 | ac_subst_files='' |
|
|
697 | ac_user_opts=' |
|
|
698 | enable_option_checking |
|
|
699 | ' |
627 | ac_precious_vars='build_alias |
700 | ac_precious_vars='build_alias |
628 | host_alias |
701 | host_alias |
629 | target_alias |
702 | target_alias |
630 | CC |
703 | CC |
631 | CFLAGS |
704 | CFLAGS |
… | |
… | |
635 | |
708 | |
636 | |
709 | |
637 | # Initialize some variables set by options. |
710 | # Initialize some variables set by options. |
638 | ac_init_help= |
711 | ac_init_help= |
639 | ac_init_version=false |
712 | ac_init_version=false |
|
|
713 | ac_unrecognized_opts= |
|
|
714 | ac_unrecognized_sep= |
640 | # The variables have the same names as the options, with |
715 | # The variables have the same names as the options, with |
641 | # dashes changed to underlines. |
716 | # dashes changed to underlines. |
642 | cache_file=/dev/null |
717 | cache_file=/dev/null |
643 | exec_prefix=NONE |
718 | exec_prefix=NONE |
644 | no_create= |
719 | no_create= |
… | |
… | |
666 | datarootdir='${prefix}/share' |
741 | datarootdir='${prefix}/share' |
667 | datadir='${datarootdir}' |
742 | datadir='${datarootdir}' |
668 | sysconfdir='${prefix}/etc' |
743 | sysconfdir='${prefix}/etc' |
669 | sharedstatedir='${prefix}/com' |
744 | sharedstatedir='${prefix}/com' |
670 | localstatedir='${prefix}/var' |
745 | localstatedir='${prefix}/var' |
|
|
746 | runstatedir='${localstatedir}/run' |
671 | includedir='${prefix}/include' |
747 | includedir='${prefix}/include' |
672 | oldincludedir='/usr/include' |
748 | oldincludedir='/usr/include' |
673 | docdir='${datarootdir}/doc/${PACKAGE}' |
749 | docdir='${datarootdir}/doc/${PACKAGE}' |
674 | infodir='${datarootdir}/info' |
750 | infodir='${datarootdir}/info' |
675 | htmldir='${docdir}' |
751 | htmldir='${docdir}' |
… | |
… | |
690 | ac_prev= |
766 | ac_prev= |
691 | continue |
767 | continue |
692 | fi |
768 | fi |
693 | |
769 | |
694 | case $ac_option in |
770 | case $ac_option in |
695 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
771 | *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
|
|
772 | *=) ac_optarg= ;; |
696 | *) ac_optarg=yes ;; |
773 | *) ac_optarg=yes ;; |
697 | esac |
774 | esac |
698 | |
|
|
699 | # Accept the important Cygnus configure options, so we can diagnose typos. |
|
|
700 | |
775 | |
701 | case $ac_dashdash$ac_option in |
776 | case $ac_dashdash$ac_option in |
702 | --) |
777 | --) |
703 | ac_dashdash=yes ;; |
778 | ac_dashdash=yes ;; |
704 | |
779 | |
… | |
… | |
733 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ |
808 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ |
734 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) |
809 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) |
735 | datarootdir=$ac_optarg ;; |
810 | datarootdir=$ac_optarg ;; |
736 | |
811 | |
737 | -disable-* | --disable-*) |
812 | -disable-* | --disable-*) |
738 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
813 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
739 | # Reject names that are not valid shell variable names. |
814 | # Reject names that are not valid shell variable names. |
740 | expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && |
815 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
741 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
816 | as_fn_error $? "invalid feature name: \`$ac_useropt'" |
742 | { (exit 1); exit 1; }; } |
817 | ac_useropt_orig=$ac_useropt |
743 | ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` |
818 | ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` |
|
|
819 | case $ac_user_opts in |
|
|
820 | *" |
|
|
821 | "enable_$ac_useropt" |
|
|
822 | "*) ;; |
|
|
823 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" |
|
|
824 | ac_unrecognized_sep=', ';; |
|
|
825 | esac |
744 | eval enable_$ac_feature=no ;; |
826 | eval enable_$ac_useropt=no ;; |
745 | |
827 | |
746 | -docdir | --docdir | --docdi | --doc | --do) |
828 | -docdir | --docdir | --docdi | --doc | --do) |
747 | ac_prev=docdir ;; |
829 | ac_prev=docdir ;; |
748 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) |
830 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) |
749 | docdir=$ac_optarg ;; |
831 | docdir=$ac_optarg ;; |
… | |
… | |
752 | ac_prev=dvidir ;; |
834 | ac_prev=dvidir ;; |
753 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) |
835 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) |
754 | dvidir=$ac_optarg ;; |
836 | dvidir=$ac_optarg ;; |
755 | |
837 | |
756 | -enable-* | --enable-*) |
838 | -enable-* | --enable-*) |
757 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
839 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
758 | # Reject names that are not valid shell variable names. |
840 | # Reject names that are not valid shell variable names. |
759 | expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && |
841 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
760 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
842 | as_fn_error $? "invalid feature name: \`$ac_useropt'" |
761 | { (exit 1); exit 1; }; } |
843 | ac_useropt_orig=$ac_useropt |
762 | ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` |
844 | ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` |
|
|
845 | case $ac_user_opts in |
|
|
846 | *" |
|
|
847 | "enable_$ac_useropt" |
|
|
848 | "*) ;; |
|
|
849 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" |
|
|
850 | ac_unrecognized_sep=', ';; |
|
|
851 | esac |
763 | eval enable_$ac_feature=\$ac_optarg ;; |
852 | eval enable_$ac_useropt=\$ac_optarg ;; |
764 | |
853 | |
765 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
854 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
766 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
855 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
767 | | --exec | --exe | --ex) |
856 | | --exec | --exe | --ex) |
768 | ac_prev=exec_prefix ;; |
857 | ac_prev=exec_prefix ;; |
… | |
… | |
903 | |
992 | |
904 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
993 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
905 | | -silent | --silent | --silen | --sile | --sil) |
994 | | -silent | --silent | --silen | --sile | --sil) |
906 | silent=yes ;; |
995 | silent=yes ;; |
907 | |
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 | |
908 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
1006 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
909 | ac_prev=sbindir ;; |
1007 | ac_prev=sbindir ;; |
910 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
1008 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
911 | | --sbi=* | --sb=*) |
1009 | | --sbi=* | --sb=*) |
912 | sbindir=$ac_optarg ;; |
1010 | sbindir=$ac_optarg ;; |
… | |
… | |
949 | |
1047 | |
950 | -version | --version | --versio | --versi | --vers | -V) |
1048 | -version | --version | --versio | --versi | --vers | -V) |
951 | ac_init_version=: ;; |
1049 | ac_init_version=: ;; |
952 | |
1050 | |
953 | -with-* | --with-*) |
1051 | -with-* | --with-*) |
954 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
1052 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
955 | # Reject names that are not valid shell variable names. |
1053 | # Reject names that are not valid shell variable names. |
956 | expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && |
1054 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
957 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
1055 | as_fn_error $? "invalid package name: \`$ac_useropt'" |
958 | { (exit 1); exit 1; }; } |
1056 | ac_useropt_orig=$ac_useropt |
959 | ac_package=`echo $ac_package | sed 's/[-.]/_/g'` |
1057 | ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` |
|
|
1058 | case $ac_user_opts in |
|
|
1059 | *" |
|
|
1060 | "with_$ac_useropt" |
|
|
1061 | "*) ;; |
|
|
1062 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" |
|
|
1063 | ac_unrecognized_sep=', ';; |
|
|
1064 | esac |
960 | eval with_$ac_package=\$ac_optarg ;; |
1065 | eval with_$ac_useropt=\$ac_optarg ;; |
961 | |
1066 | |
962 | -without-* | --without-*) |
1067 | -without-* | --without-*) |
963 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
1068 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
964 | # Reject names that are not valid shell variable names. |
1069 | # Reject names that are not valid shell variable names. |
965 | expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && |
1070 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
966 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
1071 | as_fn_error $? "invalid package name: \`$ac_useropt'" |
967 | { (exit 1); exit 1; }; } |
1072 | ac_useropt_orig=$ac_useropt |
968 | ac_package=`echo $ac_package | sed 's/[-.]/_/g'` |
1073 | ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` |
|
|
1074 | case $ac_user_opts in |
|
|
1075 | *" |
|
|
1076 | "with_$ac_useropt" |
|
|
1077 | "*) ;; |
|
|
1078 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" |
|
|
1079 | ac_unrecognized_sep=', ';; |
|
|
1080 | esac |
969 | eval with_$ac_package=no ;; |
1081 | eval with_$ac_useropt=no ;; |
970 | |
1082 | |
971 | --x) |
1083 | --x) |
972 | # Obsolete; use --with-x. |
1084 | # Obsolete; use --with-x. |
973 | with_x=yes ;; |
1085 | with_x=yes ;; |
974 | |
1086 | |
… | |
… | |
984 | ac_prev=x_libraries ;; |
1096 | ac_prev=x_libraries ;; |
985 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
1097 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
986 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
1098 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
987 | x_libraries=$ac_optarg ;; |
1099 | x_libraries=$ac_optarg ;; |
988 | |
1100 | |
989 | -*) { echo "$as_me: error: unrecognized option: $ac_option |
1101 | -*) as_fn_error $? "unrecognized option: \`$ac_option' |
990 | Try \`$0 --help' for more information." >&2 |
1102 | Try \`$0 --help' for more information" |
991 | { (exit 1); exit 1; }; } |
|
|
992 | ;; |
1103 | ;; |
993 | |
1104 | |
994 | *=*) |
1105 | *=*) |
995 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
1106 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
996 | # Reject names that are not valid shell variable names. |
1107 | # Reject names that are not valid shell variable names. |
997 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && |
1108 | case $ac_envvar in #( |
|
|
1109 | '' | [0-9]* | *[!_$as_cr_alnum]* ) |
998 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 |
1110 | as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; |
999 | { (exit 1); exit 1; }; } |
1111 | esac |
1000 | eval $ac_envvar=\$ac_optarg |
1112 | eval $ac_envvar=\$ac_optarg |
1001 | export $ac_envvar ;; |
1113 | export $ac_envvar ;; |
1002 | |
1114 | |
1003 | *) |
1115 | *) |
1004 | # FIXME: should be removed in autoconf 3.0. |
1116 | # FIXME: should be removed in autoconf 3.0. |
1005 | 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 |
1006 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
1118 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
1007 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
1119 | printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2 |
1008 | : ${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}" |
1009 | ;; |
1121 | ;; |
1010 | |
1122 | |
1011 | esac |
1123 | esac |
1012 | done |
1124 | done |
1013 | |
1125 | |
1014 | if test -n "$ac_prev"; then |
1126 | if test -n "$ac_prev"; then |
1015 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
1127 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
1016 | { echo "$as_me: error: missing argument to $ac_option" >&2 |
1128 | as_fn_error $? "missing argument to $ac_option" |
1017 | { (exit 1); exit 1; }; } |
|
|
1018 | fi |
1129 | fi |
1019 | |
1130 | |
1020 | # Be sure to have absolute directory names. |
1131 | if test -n "$ac_unrecognized_opts"; then |
|
|
1132 | case $enable_option_checking in |
|
|
1133 | no) ;; |
|
|
1134 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; |
|
|
1135 | *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
|
|
1136 | esac |
|
|
1137 | fi |
|
|
1138 | |
|
|
1139 | # Check all directory arguments for consistency. |
1021 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
1140 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
1022 | datadir sysconfdir sharedstatedir localstatedir includedir \ |
1141 | datadir sysconfdir sharedstatedir localstatedir includedir \ |
1023 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ |
1142 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ |
1024 | libdir localedir mandir |
1143 | libdir localedir mandir runstatedir |
1025 | do |
1144 | do |
1026 | eval ac_val=\$$ac_var |
1145 | eval ac_val=\$$ac_var |
|
|
1146 | # Remove trailing slashes. |
|
|
1147 | case $ac_val in |
|
|
1148 | */ ) |
|
|
1149 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` |
|
|
1150 | eval $ac_var=\$ac_val;; |
|
|
1151 | esac |
|
|
1152 | # Be sure to have absolute directory names. |
1027 | case $ac_val in |
1153 | case $ac_val in |
1028 | [\\/$]* | ?:[\\/]* ) continue;; |
1154 | [\\/$]* | ?:[\\/]* ) continue;; |
1029 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; |
1155 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; |
1030 | esac |
1156 | esac |
1031 | { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
1157 | as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" |
1032 | { (exit 1); exit 1; }; } |
|
|
1033 | done |
1158 | done |
1034 | |
1159 | |
1035 | # There might be people who depend on the old broken behavior: `$host' |
1160 | # There might be people who depend on the old broken behavior: `$host' |
1036 | # used to hold the argument of --host etc. |
1161 | # used to hold the argument of --host etc. |
1037 | # FIXME: To remove some day. |
1162 | # FIXME: To remove some day. |
… | |
… | |
1041 | |
1166 | |
1042 | # FIXME: To remove some day. |
1167 | # FIXME: To remove some day. |
1043 | if test "x$host_alias" != x; then |
1168 | if test "x$host_alias" != x; then |
1044 | if test "x$build_alias" = x; then |
1169 | if test "x$build_alias" = x; then |
1045 | cross_compiling=maybe |
1170 | cross_compiling=maybe |
1046 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
|
|
1047 | If a cross compiler is detected then cross compile mode will be used." >&2 |
|
|
1048 | elif test "x$build_alias" != "x$host_alias"; then |
1171 | elif test "x$build_alias" != "x$host_alias"; then |
1049 | cross_compiling=yes |
1172 | cross_compiling=yes |
1050 | fi |
1173 | fi |
1051 | fi |
1174 | fi |
1052 | |
1175 | |
… | |
… | |
1057 | |
1180 | |
1058 | |
1181 | |
1059 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
1182 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
1060 | ac_ls_di=`ls -di .` && |
1183 | ac_ls_di=`ls -di .` && |
1061 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || |
1184 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || |
1062 | { echo "$as_me: error: Working directory cannot be determined" >&2 |
1185 | as_fn_error $? "working directory cannot be determined" |
1063 | { (exit 1); exit 1; }; } |
|
|
1064 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
1186 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
1065 | { echo "$as_me: error: pwd does not report name of working directory" >&2 |
1187 | as_fn_error $? "pwd does not report name of working directory" |
1066 | { (exit 1); exit 1; }; } |
|
|
1067 | |
1188 | |
1068 | |
1189 | |
1069 | # Find the source files, if location was not specified. |
1190 | # Find the source files, if location was not specified. |
1070 | if test -z "$srcdir"; then |
1191 | if test -z "$srcdir"; then |
1071 | ac_srcdir_defaulted=yes |
1192 | ac_srcdir_defaulted=yes |
1072 | # Try the directory containing this script, then the parent directory. |
1193 | # Try the directory containing this script, then the parent directory. |
1073 | ac_confdir=`$as_dirname -- "$0" || |
1194 | ac_confdir=`$as_dirname -- "$as_myself" || |
1074 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
1195 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
1075 | X"$0" : 'X\(//\)[^/]' \| \ |
1196 | X"$as_myself" : 'X\(//\)[^/]' \| \ |
1076 | X"$0" : 'X\(//\)$' \| \ |
1197 | X"$as_myself" : 'X\(//\)$' \| \ |
1077 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
1198 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || |
1078 | echo X"$0" | |
1199 | printf "%s\n" X"$as_myself" | |
1079 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
1200 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
1080 | s//\1/ |
1201 | s//\1/ |
1081 | q |
1202 | q |
1082 | } |
1203 | } |
1083 | /^X\(\/\/\)[^/].*/{ |
1204 | /^X\(\/\/\)[^/].*/{ |
… | |
… | |
1100 | else |
1221 | else |
1101 | ac_srcdir_defaulted=no |
1222 | ac_srcdir_defaulted=no |
1102 | fi |
1223 | fi |
1103 | if test ! -r "$srcdir/$ac_unique_file"; then |
1224 | if test ! -r "$srcdir/$ac_unique_file"; then |
1104 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." |
1225 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." |
1105 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
1226 | as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" |
1106 | { (exit 1); exit 1; }; } |
|
|
1107 | fi |
1227 | fi |
1108 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
1228 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
1109 | ac_abs_confdir=`( |
1229 | ac_abs_confdir=`( |
1110 | cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 |
1230 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" |
1111 | { (exit 1); exit 1; }; } |
|
|
1112 | pwd)` |
1231 | pwd)` |
1113 | # When building in place, set srcdir=. |
1232 | # When building in place, set srcdir=. |
1114 | if test "$ac_abs_confdir" = "$ac_pwd"; then |
1233 | if test "$ac_abs_confdir" = "$ac_pwd"; then |
1115 | srcdir=. |
1234 | srcdir=. |
1116 | fi |
1235 | fi |
… | |
… | |
1146 | Configuration: |
1265 | Configuration: |
1147 | -h, --help display this help and exit |
1266 | -h, --help display this help and exit |
1148 | --help=short display options specific to this package |
1267 | --help=short display options specific to this package |
1149 | --help=recursive display the short help of all the included packages |
1268 | --help=recursive display the short help of all the included packages |
1150 | -V, --version display version information and exit |
1269 | -V, --version display version information and exit |
1151 | -q, --quiet, --silent do not print \`checking...' messages |
1270 | -q, --quiet, --silent do not print \`checking ...' messages |
1152 | --cache-file=FILE cache test results in FILE [disabled] |
1271 | --cache-file=FILE cache test results in FILE [disabled] |
1153 | -C, --config-cache alias for \`--cache-file=config.cache' |
1272 | -C, --config-cache alias for \`--cache-file=config.cache' |
1154 | -n, --no-create do not create output files |
1273 | -n, --no-create do not create output files |
1155 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
1274 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
1156 | |
1275 | |
1157 | Installation directories: |
1276 | Installation directories: |
1158 | --prefix=PREFIX install architecture-independent files in PREFIX |
1277 | --prefix=PREFIX install architecture-independent files in PREFIX |
1159 | [$ac_default_prefix] |
1278 | [$ac_default_prefix] |
1160 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
1279 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
1161 | [PREFIX] |
1280 | [PREFIX] |
1162 | |
1281 | |
1163 | By default, \`make install' will install all the files in |
1282 | By default, \`make install' will install all the files in |
1164 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
1283 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
1165 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
1284 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
1166 | for instance \`--prefix=\$HOME'. |
1285 | for instance \`--prefix=\$HOME'. |
1167 | |
1286 | |
1168 | For better control, use the options below. |
1287 | For better control, use the options below. |
1169 | |
1288 | |
1170 | Fine tuning of the installation directories: |
1289 | Fine tuning of the installation directories: |
1171 | --bindir=DIR user executables [EPREFIX/bin] |
1290 | --bindir=DIR user executables [EPREFIX/bin] |
1172 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
1291 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
1173 | --libexecdir=DIR program executables [EPREFIX/libexec] |
1292 | --libexecdir=DIR program executables [EPREFIX/libexec] |
1174 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
1293 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
1175 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
1294 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
1176 | --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] |
1177 | --libdir=DIR object code libraries [EPREFIX/lib] |
1297 | --libdir=DIR object code libraries [EPREFIX/lib] |
1178 | --includedir=DIR C header files [PREFIX/include] |
1298 | --includedir=DIR C header files [PREFIX/include] |
1179 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
1299 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
1180 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
1300 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
1181 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] |
1301 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] |
1182 | --infodir=DIR info documentation [DATAROOTDIR/info] |
1302 | --infodir=DIR info documentation [DATAROOTDIR/info] |
1183 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] |
1303 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] |
1184 | --mandir=DIR man documentation [DATAROOTDIR/man] |
1304 | --mandir=DIR man documentation [DATAROOTDIR/man] |
1185 | --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] |
1305 | --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] |
1186 | --htmldir=DIR html documentation [DOCDIR] |
1306 | --htmldir=DIR html documentation [DOCDIR] |
1187 | --dvidir=DIR dvi documentation [DOCDIR] |
1307 | --dvidir=DIR dvi documentation [DOCDIR] |
1188 | --pdfdir=DIR pdf documentation [DOCDIR] |
1308 | --pdfdir=DIR pdf documentation [DOCDIR] |
1189 | --psdir=DIR ps documentation [DOCDIR] |
1309 | --psdir=DIR ps documentation [DOCDIR] |
1190 | _ACEOF |
1310 | _ACEOF |
1191 | |
1311 | |
1192 | cat <<\_ACEOF |
1312 | cat <<\_ACEOF |
1193 | _ACEOF |
1313 | _ACEOF |
1194 | fi |
1314 | fi |
… | |
… | |
1201 | CC C compiler command |
1321 | CC C compiler command |
1202 | CFLAGS C compiler flags |
1322 | CFLAGS C compiler flags |
1203 | 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 |
1204 | nonstandard directory <lib dir> |
1324 | nonstandard directory <lib dir> |
1205 | LIBS libraries to pass to the linker, e.g. -l<library> |
1325 | LIBS libraries to pass to the linker, e.g. -l<library> |
1206 | CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if |
1326 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if |
1207 | you have headers in a nonstandard directory <include dir> |
1327 | you have headers in a nonstandard directory <include dir> |
1208 | |
1328 | |
1209 | 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 |
1210 | it to find libraries and programs with nonstandard names/locations. |
1330 | it to find libraries and programs with nonstandard names/locations. |
1211 | |
1331 | |
|
|
1332 | Report bugs to the package provider. |
1212 | _ACEOF |
1333 | _ACEOF |
1213 | ac_status=$? |
1334 | ac_status=$? |
1214 | fi |
1335 | fi |
1215 | |
1336 | |
1216 | if test "$ac_init_help" = "recursive"; then |
1337 | if test "$ac_init_help" = "recursive"; then |
1217 | # If there are subdirs, report their specific --help. |
1338 | # If there are subdirs, report their specific --help. |
1218 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
1339 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
1219 | test -d "$ac_dir" || continue |
1340 | test -d "$ac_dir" || |
|
|
1341 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || |
|
|
1342 | continue |
1220 | ac_builddir=. |
1343 | ac_builddir=. |
1221 | |
1344 | |
1222 | case "$ac_dir" in |
1345 | case "$ac_dir" in |
1223 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
1346 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
1224 | *) |
1347 | *) |
1225 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
1348 | ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` |
1226 | # A ".." for each directory in $ac_dir_suffix. |
1349 | # A ".." for each directory in $ac_dir_suffix. |
1227 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` |
1350 | ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
1228 | case $ac_top_builddir_sub in |
1351 | case $ac_top_builddir_sub in |
1229 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
1352 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
1230 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
1353 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
1231 | esac ;; |
1354 | esac ;; |
1232 | esac |
1355 | esac |
… | |
… | |
1250 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
1373 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
1251 | esac |
1374 | esac |
1252 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
1375 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
1253 | |
1376 | |
1254 | cd "$ac_dir" || { ac_status=$?; continue; } |
1377 | cd "$ac_dir" || { ac_status=$?; continue; } |
1255 | # 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. |
1256 | if test -f "$ac_srcdir/configure.gnu"; then |
1380 | if test -f "$ac_srcdir/configure.gnu"; then |
1257 | echo && |
1381 | echo && |
1258 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive |
1382 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive |
1259 | elif test -f "$ac_srcdir/configure"; then |
1383 | elif test -f "$ac_srcdir/configure"; then |
1260 | echo && |
1384 | echo && |
1261 | $SHELL "$ac_srcdir/configure" --help=recursive |
1385 | $SHELL "$ac_srcdir/configure" --help=recursive |
1262 | else |
1386 | else |
1263 | 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 |
1264 | fi || ac_status=$? |
1388 | fi || ac_status=$? |
1265 | cd "$ac_pwd" || { ac_status=$?; break; } |
1389 | cd "$ac_pwd" || { ac_status=$?; break; } |
1266 | done |
1390 | done |
1267 | fi |
1391 | fi |
1268 | |
1392 | |
1269 | test -n "$ac_init_help" && exit $ac_status |
1393 | test -n "$ac_init_help" && exit $ac_status |
1270 | if $ac_init_version; then |
1394 | if $ac_init_version; then |
1271 | cat <<\_ACEOF |
1395 | cat <<\_ACEOF |
1272 | configure |
1396 | configure |
1273 | generated by GNU Autoconf 2.61 |
1397 | generated by GNU Autoconf 2.71 |
1274 | |
1398 | |
1275 | Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
1399 | Copyright (C) 2021 Free Software Foundation, Inc. |
1276 | 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. |
|
|
1277 | This configure script is free software; the Free Software Foundation |
1400 | This configure script is free software; the Free Software Foundation |
1278 | gives unlimited permission to copy, distribute and modify it. |
1401 | gives unlimited permission to copy, distribute and modify it. |
1279 | _ACEOF |
1402 | _ACEOF |
1280 | exit |
1403 | exit |
1281 | fi |
1404 | fi |
|
|
1405 | |
|
|
1406 | ## ------------------------ ## |
|
|
1407 | ## Autoconf initialization. ## |
|
|
1408 | ## ------------------------ ## |
|
|
1409 | |
|
|
1410 | # ac_fn_c_try_compile LINENO |
|
|
1411 | # -------------------------- |
|
|
1412 | # Try to compile conftest.$ac_ext, and return whether this succeeded. |
|
|
1413 | ac_fn_c_try_compile () |
|
|
1414 | { |
|
|
1415 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
|
|
1416 | rm -f conftest.$ac_objext conftest.beam |
|
|
1417 | if { { ac_try="$ac_compile" |
|
|
1418 | case "(($ac_try" in |
|
|
1419 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
1420 | *) ac_try_echo=$ac_try;; |
|
|
1421 | esac |
|
|
1422 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
|
|
1423 | printf "%s\n" "$ac_try_echo"; } >&5 |
|
|
1424 | (eval "$ac_compile") 2>conftest.err |
|
|
1425 | ac_status=$? |
|
|
1426 | if test -s conftest.err; then |
|
|
1427 | grep -v '^ *+' conftest.err >conftest.er1 |
|
|
1428 | cat conftest.er1 >&5 |
|
|
1429 | mv -f conftest.er1 conftest.err |
|
|
1430 | fi |
|
|
1431 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
|
|
1432 | test $ac_status = 0; } && { |
|
|
1433 | test -z "$ac_c_werror_flag" || |
|
|
1434 | test ! -s conftest.err |
|
|
1435 | } && test -s conftest.$ac_objext |
|
|
1436 | then : |
|
|
1437 | ac_retval=0 |
|
|
1438 | else $as_nop |
|
|
1439 | printf "%s\n" "$as_me: failed program was:" >&5 |
|
|
1440 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
1441 | |
|
|
1442 | ac_retval=1 |
|
|
1443 | fi |
|
|
1444 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
|
|
1445 | as_fn_set_status $ac_retval |
|
|
1446 | |
|
|
1447 | } # ac_fn_c_try_compile |
|
|
1448 | |
|
|
1449 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES |
|
|
1450 | # ------------------------------------------------------- |
|
|
1451 | # Tests whether HEADER exists and can be compiled using the include files in |
|
|
1452 | # INCLUDES, setting the cache variable VAR accordingly. |
|
|
1453 | ac_fn_c_check_header_compile () |
|
|
1454 | { |
|
|
1455 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
|
|
1456 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
|
|
1457 | printf %s "checking for $2... " >&6; } |
|
|
1458 | if eval test \${$3+y} |
|
|
1459 | then : |
|
|
1460 | printf %s "(cached) " >&6 |
|
|
1461 | else $as_nop |
|
|
1462 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
1463 | /* end confdefs.h. */ |
|
|
1464 | $4 |
|
|
1465 | #include <$2> |
|
|
1466 | _ACEOF |
|
|
1467 | if ac_fn_c_try_compile "$LINENO" |
|
|
1468 | then : |
|
|
1469 | eval "$3=yes" |
|
|
1470 | else $as_nop |
|
|
1471 | eval "$3=no" |
|
|
1472 | fi |
|
|
1473 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
|
|
1474 | fi |
|
|
1475 | eval ac_res=\$$3 |
|
|
1476 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
|
|
1477 | printf "%s\n" "$ac_res" >&6; } |
|
|
1478 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
|
|
1479 | |
|
|
1480 | } # ac_fn_c_check_header_compile |
|
|
1481 | |
|
|
1482 | # ac_fn_c_try_link LINENO |
|
|
1483 | # ----------------------- |
|
|
1484 | # Try to link conftest.$ac_ext, and return whether this succeeded. |
|
|
1485 | ac_fn_c_try_link () |
|
|
1486 | { |
|
|
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 |
|
|
1489 | if { { ac_try="$ac_link" |
|
|
1490 | case "(($ac_try" in |
|
|
1491 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
1492 | *) ac_try_echo=$ac_try;; |
|
|
1493 | esac |
|
|
1494 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
|
|
1495 | printf "%s\n" "$ac_try_echo"; } >&5 |
|
|
1496 | (eval "$ac_link") 2>conftest.err |
|
|
1497 | ac_status=$? |
|
|
1498 | if test -s conftest.err; then |
|
|
1499 | grep -v '^ *+' conftest.err >conftest.er1 |
|
|
1500 | cat conftest.er1 >&5 |
|
|
1501 | mv -f conftest.er1 conftest.err |
|
|
1502 | fi |
|
|
1503 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
|
|
1504 | test $ac_status = 0; } && { |
|
|
1505 | test -z "$ac_c_werror_flag" || |
|
|
1506 | test ! -s conftest.err |
|
|
1507 | } && test -s conftest$ac_exeext && { |
|
|
1508 | test "$cross_compiling" = yes || |
|
|
1509 | test -x conftest$ac_exeext |
|
|
1510 | } |
|
|
1511 | then : |
|
|
1512 | ac_retval=0 |
|
|
1513 | else $as_nop |
|
|
1514 | printf "%s\n" "$as_me: failed program was:" >&5 |
|
|
1515 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
1516 | |
|
|
1517 | ac_retval=1 |
|
|
1518 | fi |
|
|
1519 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information |
|
|
1520 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would |
|
|
1521 | # interfere with the next link command; also delete a directory that is |
|
|
1522 | # left behind by Apple's compiler. We do this before executing the actions. |
|
|
1523 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
|
|
1524 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
|
|
1525 | as_fn_set_status $ac_retval |
|
|
1526 | |
|
|
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 | |
1282 | cat >config.log <<_ACEOF |
1548 | cat >config.log <<_ACEOF |
1283 | This file contains any messages produced by compilers while |
1549 | This file contains any messages produced by compilers while |
1284 | running configure, to aid debugging if configure makes a mistake. |
1550 | running configure, to aid debugging if configure makes a mistake. |
1285 | |
1551 | |
1286 | It was created by $as_me, which was |
1552 | It was created by $as_me, which was |
1287 | generated by GNU Autoconf 2.61. Invocation command line was |
1553 | generated by GNU Autoconf 2.71. Invocation command line was |
1288 | |
1554 | |
1289 | $ $0 $@ |
1555 | $ $0$ac_configure_args_raw |
1290 | |
1556 | |
1291 | _ACEOF |
1557 | _ACEOF |
1292 | exec 5>>config.log |
1558 | exec 5>>config.log |
1293 | { |
1559 | { |
1294 | cat <<_ASUNAME |
1560 | cat <<_ASUNAME |
… | |
… | |
1317 | |
1583 | |
1318 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1584 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1319 | for as_dir in $PATH |
1585 | for as_dir in $PATH |
1320 | do |
1586 | do |
1321 | IFS=$as_save_IFS |
1587 | IFS=$as_save_IFS |
1322 | test -z "$as_dir" && as_dir=. |
1588 | case $as_dir in #((( |
1323 | echo "PATH: $as_dir" |
1589 | '') as_dir=./ ;; |
|
|
1590 | */) ;; |
|
|
1591 | *) as_dir=$as_dir/ ;; |
|
|
1592 | esac |
|
|
1593 | printf "%s\n" "PATH: $as_dir" |
1324 | done |
1594 | done |
1325 | IFS=$as_save_IFS |
1595 | IFS=$as_save_IFS |
1326 | |
1596 | |
1327 | } >&5 |
1597 | } >&5 |
1328 | |
1598 | |
1329 | cat >&5 <<_ACEOF |
1599 | cat >&5 <<_ACEOF |
… | |
… | |
1353 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
1623 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
1354 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
1624 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
1355 | | -silent | --silent | --silen | --sile | --sil) |
1625 | | -silent | --silent | --silen | --sile | --sil) |
1356 | continue ;; |
1626 | continue ;; |
1357 | *\'*) |
1627 | *\'*) |
1358 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
1628 | ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
1359 | esac |
1629 | esac |
1360 | case $ac_pass in |
1630 | case $ac_pass in |
1361 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; |
1631 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; |
1362 | 2) |
1632 | 2) |
1363 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" |
1633 | as_fn_append ac_configure_args1 " '$ac_arg'" |
1364 | if test $ac_must_keep_next = true; then |
1634 | if test $ac_must_keep_next = true; then |
1365 | ac_must_keep_next=false # Got value, back to normal. |
1635 | ac_must_keep_next=false # Got value, back to normal. |
1366 | else |
1636 | else |
1367 | case $ac_arg in |
1637 | case $ac_arg in |
1368 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
1638 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
… | |
… | |
1374 | esac |
1644 | esac |
1375 | ;; |
1645 | ;; |
1376 | -* ) ac_must_keep_next=true ;; |
1646 | -* ) ac_must_keep_next=true ;; |
1377 | esac |
1647 | esac |
1378 | fi |
1648 | fi |
1379 | ac_configure_args="$ac_configure_args '$ac_arg'" |
1649 | as_fn_append ac_configure_args " '$ac_arg'" |
1380 | ;; |
1650 | ;; |
1381 | esac |
1651 | esac |
1382 | done |
1652 | done |
1383 | done |
1653 | done |
1384 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } |
1654 | { ac_configure_args0=; unset ac_configure_args0;} |
1385 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } |
1655 | { ac_configure_args1=; unset ac_configure_args1;} |
1386 | |
1656 | |
1387 | # When interrupted or exit'd, cleanup temporary files, and complete |
1657 | # When interrupted or exit'd, cleanup temporary files, and complete |
1388 | # config.log. We remove comments because anyway the quotes in there |
1658 | # config.log. We remove comments because anyway the quotes in there |
1389 | # would cause problems or look ugly. |
1659 | # would cause problems or look ugly. |
1390 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
1660 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
1391 | # 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. |
1392 | trap 'exit_status=$? |
1662 | trap 'exit_status=$? |
|
|
1663 | # Sanitize IFS. |
|
|
1664 | IFS=" "" $as_nl" |
1393 | # Save into config.log some information that might help in debugging. |
1665 | # Save into config.log some information that might help in debugging. |
1394 | { |
1666 | { |
1395 | echo |
1667 | echo |
1396 | |
1668 | |
1397 | cat <<\_ASBOX |
1669 | printf "%s\n" "## ---------------- ## |
1398 | ## ---------------- ## |
|
|
1399 | ## Cache variables. ## |
1670 | ## Cache variables. ## |
1400 | ## ---------------- ## |
1671 | ## ---------------- ##" |
1401 | _ASBOX |
|
|
1402 | echo |
1672 | echo |
1403 | # The following way of writing the cache mishandles newlines in values, |
1673 | # The following way of writing the cache mishandles newlines in values, |
1404 | ( |
1674 | ( |
1405 | 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 |
1406 | eval ac_val=\$$ac_var |
1676 | eval ac_val=\$$ac_var |
1407 | case $ac_val in #( |
1677 | case $ac_val in #( |
1408 | *${as_nl}*) |
1678 | *${as_nl}*) |
1409 | case $ac_var in #( |
1679 | case $ac_var in #( |
1410 | *_cv_*) { echo "$as_me:$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 |
1411 | 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;} ;; |
1412 | esac |
1682 | esac |
1413 | case $ac_var in #( |
1683 | case $ac_var in #( |
1414 | _ | IFS | as_nl) ;; #( |
1684 | _ | IFS | as_nl) ;; #( |
1415 | *) $as_unset $ac_var ;; |
1685 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
|
|
1686 | *) { eval $ac_var=; unset $ac_var;} ;; |
1416 | esac ;; |
1687 | esac ;; |
1417 | esac |
1688 | esac |
1418 | done |
1689 | done |
1419 | (set) 2>&1 | |
1690 | (set) 2>&1 | |
1420 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
1691 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
… | |
… | |
1429 | esac | |
1700 | esac | |
1430 | sort |
1701 | sort |
1431 | ) |
1702 | ) |
1432 | echo |
1703 | echo |
1433 | |
1704 | |
1434 | cat <<\_ASBOX |
1705 | printf "%s\n" "## ----------------- ## |
1435 | ## ----------------- ## |
|
|
1436 | ## Output variables. ## |
1706 | ## Output variables. ## |
1437 | ## ----------------- ## |
1707 | ## ----------------- ##" |
1438 | _ASBOX |
|
|
1439 | echo |
1708 | echo |
1440 | for ac_var in $ac_subst_vars |
1709 | for ac_var in $ac_subst_vars |
1441 | do |
1710 | do |
1442 | eval ac_val=\$$ac_var |
1711 | eval ac_val=\$$ac_var |
1443 | case $ac_val in |
1712 | case $ac_val in |
1444 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
1713 | *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
1445 | esac |
1714 | esac |
1446 | echo "$ac_var='\''$ac_val'\''" |
1715 | printf "%s\n" "$ac_var='\''$ac_val'\''" |
1447 | done | sort |
1716 | done | sort |
1448 | echo |
1717 | echo |
1449 | |
1718 | |
1450 | if test -n "$ac_subst_files"; then |
1719 | if test -n "$ac_subst_files"; then |
1451 | cat <<\_ASBOX |
1720 | printf "%s\n" "## ------------------- ## |
1452 | ## ------------------- ## |
|
|
1453 | ## File substitutions. ## |
1721 | ## File substitutions. ## |
1454 | ## ------------------- ## |
1722 | ## ------------------- ##" |
1455 | _ASBOX |
|
|
1456 | echo |
1723 | echo |
1457 | for ac_var in $ac_subst_files |
1724 | for ac_var in $ac_subst_files |
1458 | do |
1725 | do |
1459 | eval ac_val=\$$ac_var |
1726 | eval ac_val=\$$ac_var |
1460 | case $ac_val in |
1727 | case $ac_val in |
1461 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
1728 | *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
1462 | esac |
1729 | esac |
1463 | echo "$ac_var='\''$ac_val'\''" |
1730 | printf "%s\n" "$ac_var='\''$ac_val'\''" |
1464 | done | sort |
1731 | done | sort |
1465 | echo |
1732 | echo |
1466 | fi |
1733 | fi |
1467 | |
1734 | |
1468 | if test -s confdefs.h; then |
1735 | if test -s confdefs.h; then |
1469 | cat <<\_ASBOX |
1736 | printf "%s\n" "## ----------- ## |
1470 | ## ----------- ## |
|
|
1471 | ## confdefs.h. ## |
1737 | ## confdefs.h. ## |
1472 | ## ----------- ## |
1738 | ## ----------- ##" |
1473 | _ASBOX |
|
|
1474 | echo |
1739 | echo |
1475 | cat confdefs.h |
1740 | cat confdefs.h |
1476 | echo |
1741 | echo |
1477 | fi |
1742 | fi |
1478 | test "$ac_signal" != 0 && |
1743 | test "$ac_signal" != 0 && |
1479 | echo "$as_me: caught signal $ac_signal" |
1744 | printf "%s\n" "$as_me: caught signal $ac_signal" |
1480 | echo "$as_me: exit $exit_status" |
1745 | printf "%s\n" "$as_me: exit $exit_status" |
1481 | } >&5 |
1746 | } >&5 |
1482 | rm -f core *.core core.conftest.* && |
1747 | rm -f core *.core core.conftest.* && |
1483 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && |
1748 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && |
1484 | exit $exit_status |
1749 | exit $exit_status |
1485 | ' 0 |
1750 | ' 0 |
1486 | for ac_signal in 1 2 13 15; do |
1751 | for ac_signal in 1 2 13 15; do |
1487 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal |
1752 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal |
1488 | done |
1753 | done |
1489 | ac_signal=0 |
1754 | ac_signal=0 |
1490 | |
1755 | |
1491 | # 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. |
1492 | rm -f -r conftest* confdefs.h |
1757 | rm -f -r conftest* confdefs.h |
1493 | |
1758 | |
|
|
1759 | printf "%s\n" "/* confdefs.h */" > confdefs.h |
|
|
1760 | |
1494 | # Predefined preprocessor variables. |
1761 | # Predefined preprocessor variables. |
1495 | |
1762 | |
1496 | cat >>confdefs.h <<_ACEOF |
1763 | printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h |
1497 | #define PACKAGE_NAME "$PACKAGE_NAME" |
|
|
1498 | _ACEOF |
|
|
1499 | |
1764 | |
|
|
1765 | printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h |
1500 | |
1766 | |
1501 | cat >>confdefs.h <<_ACEOF |
1767 | printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h |
1502 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
|
|
1503 | _ACEOF |
|
|
1504 | |
1768 | |
|
|
1769 | printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h |
1505 | |
1770 | |
1506 | cat >>confdefs.h <<_ACEOF |
1771 | printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h |
1507 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
|
|
1508 | _ACEOF |
|
|
1509 | |
1772 | |
1510 | |
1773 | printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h |
1511 | cat >>confdefs.h <<_ACEOF |
|
|
1512 | #define PACKAGE_STRING "$PACKAGE_STRING" |
|
|
1513 | _ACEOF |
|
|
1514 | |
|
|
1515 | |
|
|
1516 | cat >>confdefs.h <<_ACEOF |
|
|
1517 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
|
|
1518 | _ACEOF |
|
|
1519 | |
1774 | |
1520 | |
1775 | |
1521 | # 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. |
1522 | # Prefer explicitly selected file to automatically selected ones. |
1777 | # Prefer an explicitly selected file to automatically selected ones. |
1523 | if test -n "$CONFIG_SITE"; then |
1778 | if test -n "$CONFIG_SITE"; then |
1524 | set x "$CONFIG_SITE" |
1779 | ac_site_files="$CONFIG_SITE" |
1525 | elif test "x$prefix" != xNONE; then |
1780 | elif test "x$prefix" != xNONE; then |
1526 | set x "$prefix/share/config.site" "$prefix/etc/config.site" |
1781 | ac_site_files="$prefix/share/config.site $prefix/etc/config.site" |
1527 | else |
1782 | else |
1528 | set x "$ac_default_prefix/share/config.site" \ |
1783 | ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" |
1529 | "$ac_default_prefix/etc/config.site" |
|
|
1530 | fi |
1784 | fi |
1531 | shift |
1785 | |
1532 | for ac_site_file |
1786 | for ac_site_file in $ac_site_files |
1533 | do |
1787 | do |
1534 | if test -r "$ac_site_file"; then |
1788 | case $ac_site_file in #( |
|
|
1789 | */*) : |
|
|
1790 | ;; #( |
|
|
1791 | *) : |
|
|
1792 | ac_site_file=./$ac_site_file ;; |
|
|
1793 | esac |
|
|
1794 | if test -f "$ac_site_file" && test -r "$ac_site_file"; then |
1535 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
1795 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 |
1536 | echo "$as_me: loading site script $ac_site_file" >&6;} |
1796 | printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;} |
1537 | sed 's/^/| /' "$ac_site_file" >&5 |
1797 | sed 's/^/| /' "$ac_site_file" >&5 |
1538 | . "$ac_site_file" |
1798 | . "$ac_site_file" \ |
|
|
1799 | || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
|
|
1800 | printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} |
|
|
1801 | as_fn_error $? "failed to load site script $ac_site_file |
|
|
1802 | See \`config.log' for more details" "$LINENO" 5; } |
1539 | fi |
1803 | fi |
1540 | done |
1804 | done |
1541 | |
1805 | |
1542 | if test -r "$cache_file"; then |
1806 | if test -r "$cache_file"; then |
1543 | # Some versions of bash will fail to source /dev/null (special |
1807 | # Some versions of bash will fail to source /dev/null (special files |
1544 | # files actually), so we avoid doing that. |
1808 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. |
1545 | if test -f "$cache_file"; then |
1809 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then |
1546 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
1810 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
1547 | echo "$as_me: loading cache $cache_file" >&6;} |
1811 | printf "%s\n" "$as_me: loading cache $cache_file" >&6;} |
1548 | case $cache_file in |
1812 | case $cache_file in |
1549 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
1813 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
1550 | *) . "./$cache_file";; |
1814 | *) . "./$cache_file";; |
1551 | esac |
1815 | esac |
1552 | fi |
1816 | fi |
1553 | else |
1817 | else |
1554 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
1818 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 |
1555 | echo "$as_me: creating cache $cache_file" >&6;} |
1819 | printf "%s\n" "$as_me: creating cache $cache_file" >&6;} |
1556 | >$cache_file |
1820 | >$cache_file |
1557 | fi |
1821 | fi |
1558 | |
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" |
1559 | # 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 |
1560 | # value. |
2143 | # value. |
1561 | ac_cache_corrupted=false |
2144 | ac_cache_corrupted=false |
1562 | for ac_var in $ac_precious_vars; do |
2145 | for ac_var in $ac_precious_vars; do |
1563 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
2146 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
1564 | eval ac_new_set=\$ac_env_${ac_var}_set |
2147 | eval ac_new_set=\$ac_env_${ac_var}_set |
1565 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
2148 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
1566 | eval ac_new_val=\$ac_env_${ac_var}_value |
2149 | eval ac_new_val=\$ac_env_${ac_var}_value |
1567 | case $ac_old_set,$ac_new_set in |
2150 | case $ac_old_set,$ac_new_set in |
1568 | set,) |
2151 | set,) |
1569 | { echo "$as_me:$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 |
1570 | 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;} |
1571 | ac_cache_corrupted=: ;; |
2154 | ac_cache_corrupted=: ;; |
1572 | ,set) |
2155 | ,set) |
1573 | { echo "$as_me:$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 |
1574 | 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;} |
1575 | ac_cache_corrupted=: ;; |
2158 | ac_cache_corrupted=: ;; |
1576 | ,);; |
2159 | ,);; |
1577 | *) |
2160 | *) |
1578 | if test "x$ac_old_val" != "x$ac_new_val"; then |
2161 | if test "x$ac_old_val" != "x$ac_new_val"; then |
|
|
2162 | # differences in whitespace do not lead to failure. |
|
|
2163 | ac_old_val_w=`echo x $ac_old_val` |
|
|
2164 | ac_new_val_w=`echo x $ac_new_val` |
|
|
2165 | if test "$ac_old_val_w" != "$ac_new_val_w"; then |
1579 | { echo "$as_me:$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 |
1580 | 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;} |
1581 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
|
|
1582 | echo "$as_me: former value: $ac_old_val" >&2;} |
|
|
1583 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
|
|
1584 | echo "$as_me: current value: $ac_new_val" >&2;} |
|
|
1585 | ac_cache_corrupted=: |
2168 | ac_cache_corrupted=: |
|
|
2169 | else |
|
|
2170 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 |
|
|
2171 | printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} |
|
|
2172 | eval $ac_var=\$ac_old_val |
|
|
2173 | fi |
|
|
2174 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 |
|
|
2175 | printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;} |
|
|
2176 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 |
|
|
2177 | printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;} |
1586 | fi;; |
2178 | fi;; |
1587 | esac |
2179 | esac |
1588 | # Pass precious variables to config.status. |
2180 | # Pass precious variables to config.status. |
1589 | if test "$ac_new_set" = set; then |
2181 | if test "$ac_new_set" = set; then |
1590 | case $ac_new_val in |
2182 | case $ac_new_val in |
1591 | *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
2183 | *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
1592 | *) ac_arg=$ac_var=$ac_new_val ;; |
2184 | *) ac_arg=$ac_var=$ac_new_val ;; |
1593 | esac |
2185 | esac |
1594 | case " $ac_configure_args " in |
2186 | case " $ac_configure_args " in |
1595 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
2187 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
1596 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
2188 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; |
1597 | esac |
2189 | esac |
1598 | fi |
2190 | fi |
1599 | done |
2191 | done |
1600 | if $ac_cache_corrupted; then |
2192 | if $ac_cache_corrupted; then |
|
|
2193 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
|
|
2194 | printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} |
1601 | { echo "$as_me:$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 |
1602 | 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;} |
1603 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 |
2197 | as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file' |
1604 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} |
2198 | and start over" "$LINENO" 5 |
1605 | { (exit 1); exit 1; }; } |
|
|
1606 | fi |
2199 | fi |
1607 | |
2200 | ## -------------------- ## |
1608 | |
2201 | ## Main body of script. ## |
1609 | |
2202 | ## -------------------- ## |
1610 | |
|
|
1611 | |
|
|
1612 | |
|
|
1613 | |
|
|
1614 | |
|
|
1615 | |
|
|
1616 | |
|
|
1617 | |
|
|
1618 | |
|
|
1619 | |
|
|
1620 | |
|
|
1621 | |
|
|
1622 | |
|
|
1623 | |
2203 | |
1624 | ac_ext=c |
2204 | ac_ext=c |
1625 | ac_cpp='$CPP $CPPFLAGS' |
2205 | ac_cpp='$CPP $CPPFLAGS' |
1626 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
2206 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
1627 | 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' |
1628 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
2208 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
1629 | |
2209 | |
1630 | |
2210 | |
1631 | |
2211 | |
1632 | 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 | |
1633 | |
2223 | |
1634 | |
2224 | |
1635 | ac_ext=c |
2225 | ac_ext=c |
1636 | ac_cpp='$CPP $CPPFLAGS' |
2226 | ac_cpp='$CPP $CPPFLAGS' |
1637 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
2227 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
1638 | 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' |
1639 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
2229 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
1640 | if test -n "$ac_tool_prefix"; then |
2230 | if test -n "$ac_tool_prefix"; then |
1641 | # 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. |
1642 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
2232 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
1643 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2233 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
1644 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
2234 | printf %s "checking for $ac_word... " >&6; } |
1645 | if test "${ac_cv_prog_CC+set}" = set; then |
2235 | if test ${ac_cv_prog_CC+y} |
1646 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2236 | then : |
1647 | else |
2237 | printf %s "(cached) " >&6 |
|
|
2238 | else $as_nop |
1648 | if test -n "$CC"; then |
2239 | if test -n "$CC"; then |
1649 | ac_cv_prog_CC="$CC" # Let the user override the test. |
2240 | ac_cv_prog_CC="$CC" # Let the user override the test. |
1650 | else |
2241 | else |
1651 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2242 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1652 | for as_dir in $PATH |
2243 | for as_dir in $PATH |
1653 | do |
2244 | do |
1654 | IFS=$as_save_IFS |
2245 | IFS=$as_save_IFS |
1655 | test -z "$as_dir" && as_dir=. |
2246 | case $as_dir in #((( |
|
|
2247 | '') as_dir=./ ;; |
|
|
2248 | */) ;; |
|
|
2249 | *) as_dir=$as_dir/ ;; |
|
|
2250 | esac |
1656 | for ac_exec_ext in '' $ac_executable_extensions; do |
2251 | for ac_exec_ext in '' $ac_executable_extensions; do |
1657 | 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 |
1658 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
2253 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
1659 | echo "$as_me:$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 |
1660 | break 2 |
2255 | break 2 |
1661 | fi |
2256 | fi |
1662 | done |
2257 | done |
1663 | done |
2258 | done |
1664 | IFS=$as_save_IFS |
2259 | IFS=$as_save_IFS |
1665 | |
2260 | |
1666 | fi |
2261 | fi |
1667 | fi |
2262 | fi |
1668 | CC=$ac_cv_prog_CC |
2263 | CC=$ac_cv_prog_CC |
1669 | if test -n "$CC"; then |
2264 | if test -n "$CC"; then |
1670 | { echo "$as_me:$LINENO: result: $CC" >&5 |
2265 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
1671 | echo "${ECHO_T}$CC" >&6; } |
2266 | printf "%s\n" "$CC" >&6; } |
1672 | else |
2267 | else |
1673 | { echo "$as_me:$LINENO: result: no" >&5 |
2268 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
1674 | echo "${ECHO_T}no" >&6; } |
2269 | printf "%s\n" "no" >&6; } |
1675 | fi |
2270 | fi |
1676 | |
2271 | |
1677 | |
2272 | |
1678 | fi |
2273 | fi |
1679 | if test -z "$ac_cv_prog_CC"; then |
2274 | if test -z "$ac_cv_prog_CC"; then |
1680 | ac_ct_CC=$CC |
2275 | ac_ct_CC=$CC |
1681 | # 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. |
1682 | set dummy gcc; ac_word=$2 |
2277 | set dummy gcc; ac_word=$2 |
1683 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2278 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
1684 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
2279 | printf %s "checking for $ac_word... " >&6; } |
1685 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
2280 | if test ${ac_cv_prog_ac_ct_CC+y} |
1686 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2281 | then : |
1687 | else |
2282 | printf %s "(cached) " >&6 |
|
|
2283 | else $as_nop |
1688 | if test -n "$ac_ct_CC"; then |
2284 | if test -n "$ac_ct_CC"; then |
1689 | 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. |
1690 | else |
2286 | else |
1691 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2287 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1692 | for as_dir in $PATH |
2288 | for as_dir in $PATH |
1693 | do |
2289 | do |
1694 | IFS=$as_save_IFS |
2290 | IFS=$as_save_IFS |
1695 | test -z "$as_dir" && as_dir=. |
2291 | case $as_dir in #((( |
|
|
2292 | '') as_dir=./ ;; |
|
|
2293 | */) ;; |
|
|
2294 | *) as_dir=$as_dir/ ;; |
|
|
2295 | esac |
1696 | for ac_exec_ext in '' $ac_executable_extensions; do |
2296 | for ac_exec_ext in '' $ac_executable_extensions; do |
1697 | 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 |
1698 | ac_cv_prog_ac_ct_CC="gcc" |
2298 | ac_cv_prog_ac_ct_CC="gcc" |
1699 | echo "$as_me:$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 |
1700 | break 2 |
2300 | break 2 |
1701 | fi |
2301 | fi |
1702 | done |
2302 | done |
1703 | done |
2303 | done |
1704 | IFS=$as_save_IFS |
2304 | IFS=$as_save_IFS |
1705 | |
2305 | |
1706 | fi |
2306 | fi |
1707 | fi |
2307 | fi |
1708 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
2308 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
1709 | if test -n "$ac_ct_CC"; then |
2309 | if test -n "$ac_ct_CC"; then |
1710 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
2310 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
1711 | echo "${ECHO_T}$ac_ct_CC" >&6; } |
2311 | printf "%s\n" "$ac_ct_CC" >&6; } |
1712 | else |
2312 | else |
1713 | { echo "$as_me:$LINENO: result: no" >&5 |
2313 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
1714 | echo "${ECHO_T}no" >&6; } |
2314 | printf "%s\n" "no" >&6; } |
1715 | fi |
2315 | fi |
1716 | |
2316 | |
1717 | if test "x$ac_ct_CC" = x; then |
2317 | if test "x$ac_ct_CC" = x; then |
1718 | CC="" |
2318 | CC="" |
1719 | else |
2319 | else |
1720 | case $cross_compiling:$ac_tool_warned in |
2320 | case $cross_compiling:$ac_tool_warned in |
1721 | yes:) |
2321 | yes:) |
1722 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
2322 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
1723 | whose name does not start with the host triplet. If you think this |
2323 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
1724 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
|
|
1725 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
|
|
1726 | whose name does not start with the host triplet. If you think this |
|
|
1727 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
|
|
1728 | ac_tool_warned=yes ;; |
2324 | ac_tool_warned=yes ;; |
1729 | esac |
2325 | esac |
1730 | CC=$ac_ct_CC |
2326 | CC=$ac_ct_CC |
1731 | fi |
2327 | fi |
1732 | else |
2328 | else |
… | |
… | |
1735 | |
2331 | |
1736 | if test -z "$CC"; then |
2332 | if test -z "$CC"; then |
1737 | if test -n "$ac_tool_prefix"; then |
2333 | if test -n "$ac_tool_prefix"; then |
1738 | # 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. |
1739 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
2335 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
1740 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2336 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
1741 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
2337 | printf %s "checking for $ac_word... " >&6; } |
1742 | if test "${ac_cv_prog_CC+set}" = set; then |
2338 | if test ${ac_cv_prog_CC+y} |
1743 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2339 | then : |
1744 | else |
2340 | printf %s "(cached) " >&6 |
|
|
2341 | else $as_nop |
1745 | if test -n "$CC"; then |
2342 | if test -n "$CC"; then |
1746 | ac_cv_prog_CC="$CC" # Let the user override the test. |
2343 | ac_cv_prog_CC="$CC" # Let the user override the test. |
1747 | else |
2344 | else |
1748 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2345 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1749 | for as_dir in $PATH |
2346 | for as_dir in $PATH |
1750 | do |
2347 | do |
1751 | IFS=$as_save_IFS |
2348 | IFS=$as_save_IFS |
1752 | test -z "$as_dir" && as_dir=. |
2349 | case $as_dir in #((( |
|
|
2350 | '') as_dir=./ ;; |
|
|
2351 | */) ;; |
|
|
2352 | *) as_dir=$as_dir/ ;; |
|
|
2353 | esac |
1753 | for ac_exec_ext in '' $ac_executable_extensions; do |
2354 | for ac_exec_ext in '' $ac_executable_extensions; do |
1754 | 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 |
1755 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
2356 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
1756 | echo "$as_me:$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 |
1757 | break 2 |
2358 | break 2 |
1758 | fi |
2359 | fi |
1759 | done |
2360 | done |
1760 | done |
2361 | done |
1761 | IFS=$as_save_IFS |
2362 | IFS=$as_save_IFS |
1762 | |
2363 | |
1763 | fi |
2364 | fi |
1764 | fi |
2365 | fi |
1765 | CC=$ac_cv_prog_CC |
2366 | CC=$ac_cv_prog_CC |
1766 | if test -n "$CC"; then |
2367 | if test -n "$CC"; then |
1767 | { echo "$as_me:$LINENO: result: $CC" >&5 |
2368 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
1768 | echo "${ECHO_T}$CC" >&6; } |
2369 | printf "%s\n" "$CC" >&6; } |
1769 | else |
2370 | else |
1770 | { echo "$as_me:$LINENO: result: no" >&5 |
2371 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
1771 | echo "${ECHO_T}no" >&6; } |
2372 | printf "%s\n" "no" >&6; } |
1772 | fi |
2373 | fi |
1773 | |
2374 | |
1774 | |
2375 | |
1775 | fi |
2376 | fi |
1776 | fi |
2377 | fi |
1777 | if test -z "$CC"; then |
2378 | if test -z "$CC"; then |
1778 | # 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. |
1779 | set dummy cc; ac_word=$2 |
2380 | set dummy cc; ac_word=$2 |
1780 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2381 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
1781 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
2382 | printf %s "checking for $ac_word... " >&6; } |
1782 | if test "${ac_cv_prog_CC+set}" = set; then |
2383 | if test ${ac_cv_prog_CC+y} |
1783 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2384 | then : |
1784 | else |
2385 | printf %s "(cached) " >&6 |
|
|
2386 | else $as_nop |
1785 | if test -n "$CC"; then |
2387 | if test -n "$CC"; then |
1786 | ac_cv_prog_CC="$CC" # Let the user override the test. |
2388 | ac_cv_prog_CC="$CC" # Let the user override the test. |
1787 | else |
2389 | else |
1788 | ac_prog_rejected=no |
2390 | ac_prog_rejected=no |
1789 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2391 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1790 | for as_dir in $PATH |
2392 | for as_dir in $PATH |
1791 | do |
2393 | do |
1792 | IFS=$as_save_IFS |
2394 | IFS=$as_save_IFS |
1793 | test -z "$as_dir" && as_dir=. |
2395 | case $as_dir in #((( |
|
|
2396 | '') as_dir=./ ;; |
|
|
2397 | */) ;; |
|
|
2398 | *) as_dir=$as_dir/ ;; |
|
|
2399 | esac |
1794 | for ac_exec_ext in '' $ac_executable_extensions; do |
2400 | for ac_exec_ext in '' $ac_executable_extensions; do |
1795 | 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 |
1796 | 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 |
1797 | ac_prog_rejected=yes |
2403 | ac_prog_rejected=yes |
1798 | continue |
2404 | continue |
1799 | fi |
2405 | fi |
1800 | ac_cv_prog_CC="cc" |
2406 | ac_cv_prog_CC="cc" |
1801 | echo "$as_me:$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 |
1802 | break 2 |
2408 | break 2 |
1803 | fi |
2409 | fi |
1804 | done |
2410 | done |
1805 | done |
2411 | done |
1806 | IFS=$as_save_IFS |
2412 | IFS=$as_save_IFS |
1807 | |
2413 | |
1808 | if test $ac_prog_rejected = yes; then |
2414 | if test $ac_prog_rejected = yes; then |
1809 | # We found a bogon in the path, so make sure we never use it. |
2415 | # We found a bogon in the path, so make sure we never use it. |
1810 | set dummy $ac_cv_prog_CC |
2416 | set dummy $ac_cv_prog_CC |
… | |
… | |
1812 | if test $# != 0; then |
2418 | if test $# != 0; then |
1813 | # We chose a different compiler from the bogus one. |
2419 | # We chose a different compiler from the bogus one. |
1814 | # 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 |
1815 | # 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. |
1816 | shift |
2422 | shift |
1817 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
2423 | ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@" |
1818 | fi |
2424 | fi |
1819 | fi |
2425 | fi |
1820 | fi |
2426 | fi |
1821 | fi |
2427 | fi |
1822 | CC=$ac_cv_prog_CC |
2428 | CC=$ac_cv_prog_CC |
1823 | if test -n "$CC"; then |
2429 | if test -n "$CC"; then |
1824 | { echo "$as_me:$LINENO: result: $CC" >&5 |
2430 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
1825 | echo "${ECHO_T}$CC" >&6; } |
2431 | printf "%s\n" "$CC" >&6; } |
1826 | else |
2432 | else |
1827 | { echo "$as_me:$LINENO: result: no" >&5 |
2433 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
1828 | echo "${ECHO_T}no" >&6; } |
2434 | printf "%s\n" "no" >&6; } |
1829 | fi |
2435 | fi |
1830 | |
2436 | |
1831 | |
2437 | |
1832 | fi |
2438 | fi |
1833 | if test -z "$CC"; then |
2439 | if test -z "$CC"; then |
1834 | if test -n "$ac_tool_prefix"; then |
2440 | if test -n "$ac_tool_prefix"; then |
1835 | for ac_prog in cl.exe |
2441 | for ac_prog in cl.exe |
1836 | do |
2442 | do |
1837 | # 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. |
1838 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
2444 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
1839 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2445 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
1840 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
2446 | printf %s "checking for $ac_word... " >&6; } |
1841 | if test "${ac_cv_prog_CC+set}" = set; then |
2447 | if test ${ac_cv_prog_CC+y} |
1842 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2448 | then : |
1843 | else |
2449 | printf %s "(cached) " >&6 |
|
|
2450 | else $as_nop |
1844 | if test -n "$CC"; then |
2451 | if test -n "$CC"; then |
1845 | ac_cv_prog_CC="$CC" # Let the user override the test. |
2452 | ac_cv_prog_CC="$CC" # Let the user override the test. |
1846 | else |
2453 | else |
1847 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2454 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1848 | for as_dir in $PATH |
2455 | for as_dir in $PATH |
1849 | do |
2456 | do |
1850 | IFS=$as_save_IFS |
2457 | IFS=$as_save_IFS |
1851 | test -z "$as_dir" && as_dir=. |
2458 | case $as_dir in #((( |
|
|
2459 | '') as_dir=./ ;; |
|
|
2460 | */) ;; |
|
|
2461 | *) as_dir=$as_dir/ ;; |
|
|
2462 | esac |
1852 | for ac_exec_ext in '' $ac_executable_extensions; do |
2463 | for ac_exec_ext in '' $ac_executable_extensions; do |
1853 | 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 |
1854 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
2465 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
1855 | echo "$as_me:$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 |
1856 | break 2 |
2467 | break 2 |
1857 | fi |
2468 | fi |
1858 | done |
2469 | done |
1859 | done |
2470 | done |
1860 | IFS=$as_save_IFS |
2471 | IFS=$as_save_IFS |
1861 | |
2472 | |
1862 | fi |
2473 | fi |
1863 | fi |
2474 | fi |
1864 | CC=$ac_cv_prog_CC |
2475 | CC=$ac_cv_prog_CC |
1865 | if test -n "$CC"; then |
2476 | if test -n "$CC"; then |
1866 | { echo "$as_me:$LINENO: result: $CC" >&5 |
2477 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
1867 | echo "${ECHO_T}$CC" >&6; } |
2478 | printf "%s\n" "$CC" >&6; } |
1868 | else |
2479 | else |
1869 | { echo "$as_me:$LINENO: result: no" >&5 |
2480 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
1870 | echo "${ECHO_T}no" >&6; } |
2481 | printf "%s\n" "no" >&6; } |
1871 | fi |
2482 | fi |
1872 | |
2483 | |
1873 | |
2484 | |
1874 | test -n "$CC" && break |
2485 | test -n "$CC" && break |
1875 | done |
2486 | done |
… | |
… | |
1878 | ac_ct_CC=$CC |
2489 | ac_ct_CC=$CC |
1879 | for ac_prog in cl.exe |
2490 | for ac_prog in cl.exe |
1880 | do |
2491 | do |
1881 | # 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. |
1882 | set dummy $ac_prog; ac_word=$2 |
2493 | set dummy $ac_prog; ac_word=$2 |
1883 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2494 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
1884 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
2495 | printf %s "checking for $ac_word... " >&6; } |
1885 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
2496 | if test ${ac_cv_prog_ac_ct_CC+y} |
1886 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2497 | then : |
1887 | else |
2498 | printf %s "(cached) " >&6 |
|
|
2499 | else $as_nop |
1888 | if test -n "$ac_ct_CC"; then |
2500 | if test -n "$ac_ct_CC"; then |
1889 | 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. |
1890 | else |
2502 | else |
1891 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2503 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1892 | for as_dir in $PATH |
2504 | for as_dir in $PATH |
1893 | do |
2505 | do |
1894 | IFS=$as_save_IFS |
2506 | IFS=$as_save_IFS |
1895 | test -z "$as_dir" && as_dir=. |
2507 | case $as_dir in #((( |
|
|
2508 | '') as_dir=./ ;; |
|
|
2509 | */) ;; |
|
|
2510 | *) as_dir=$as_dir/ ;; |
|
|
2511 | esac |
1896 | for ac_exec_ext in '' $ac_executable_extensions; do |
2512 | for ac_exec_ext in '' $ac_executable_extensions; do |
1897 | 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 |
1898 | ac_cv_prog_ac_ct_CC="$ac_prog" |
2514 | ac_cv_prog_ac_ct_CC="$ac_prog" |
1899 | echo "$as_me:$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 |
1900 | break 2 |
2516 | break 2 |
1901 | fi |
2517 | fi |
1902 | done |
2518 | done |
1903 | done |
2519 | done |
1904 | IFS=$as_save_IFS |
2520 | IFS=$as_save_IFS |
1905 | |
2521 | |
1906 | fi |
2522 | fi |
1907 | fi |
2523 | fi |
1908 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
2524 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
1909 | if test -n "$ac_ct_CC"; then |
2525 | if test -n "$ac_ct_CC"; then |
1910 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
2526 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
1911 | echo "${ECHO_T}$ac_ct_CC" >&6; } |
2527 | printf "%s\n" "$ac_ct_CC" >&6; } |
1912 | else |
2528 | else |
1913 | { echo "$as_me:$LINENO: result: no" >&5 |
2529 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
1914 | echo "${ECHO_T}no" >&6; } |
2530 | printf "%s\n" "no" >&6; } |
1915 | fi |
2531 | fi |
1916 | |
2532 | |
1917 | |
2533 | |
1918 | test -n "$ac_ct_CC" && break |
2534 | test -n "$ac_ct_CC" && break |
1919 | done |
2535 | done |
… | |
… | |
1921 | if test "x$ac_ct_CC" = x; then |
2537 | if test "x$ac_ct_CC" = x; then |
1922 | CC="" |
2538 | CC="" |
1923 | else |
2539 | else |
1924 | case $cross_compiling:$ac_tool_warned in |
2540 | case $cross_compiling:$ac_tool_warned in |
1925 | yes:) |
2541 | yes:) |
1926 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
2542 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
1927 | whose name does not start with the host triplet. If you think this |
2543 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
1928 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
|
|
1929 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
|
|
1930 | whose name does not start with the host triplet. If you think this |
|
|
1931 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
|
|
1932 | ac_tool_warned=yes ;; |
2544 | ac_tool_warned=yes ;; |
1933 | esac |
2545 | esac |
1934 | CC=$ac_ct_CC |
2546 | CC=$ac_ct_CC |
1935 | fi |
2547 | fi |
1936 | fi |
2548 | fi |
1937 | |
2549 | |
1938 | 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 |
1939 | |
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 |
1940 | |
2593 | |
1941 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
2594 | |
1942 | See \`config.log' for more details." >&5 |
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 | |
|
|
2657 | test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
|
|
2658 | printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} |
1943 | echo "$as_me: error: no acceptable C compiler found in \$PATH |
2659 | as_fn_error $? "no acceptable C compiler found in \$PATH |
1944 | See \`config.log' for more details." >&2;} |
2660 | See \`config.log' for more details" "$LINENO" 5; } |
1945 | { (exit 1); exit 1; }; } |
|
|
1946 | |
2661 | |
1947 | # Provide some information about the compiler. |
2662 | # Provide some information about the compiler. |
1948 | echo "$as_me:$LINENO: checking for C compiler version" >&5 |
2663 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
1949 | ac_compiler=`set X $ac_compile; echo $2` |
2664 | set X $ac_compile |
|
|
2665 | ac_compiler=$2 |
|
|
2666 | for ac_option in --version -v -V -qversion -version; do |
1950 | { (ac_try="$ac_compiler --version >&5" |
2667 | { { ac_try="$ac_compiler $ac_option >&5" |
1951 | case "(($ac_try" in |
2668 | case "(($ac_try" in |
1952 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
2669 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
1953 | *) ac_try_echo=$ac_try;; |
2670 | *) ac_try_echo=$ac_try;; |
1954 | esac |
2671 | esac |
1955 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
2672 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
1956 | (eval "$ac_compiler --version >&5") 2>&5 |
2673 | printf "%s\n" "$ac_try_echo"; } >&5 |
|
|
2674 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err |
1957 | ac_status=$? |
2675 | ac_status=$? |
1958 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2676 | if test -s conftest.err; then |
|
|
2677 | sed '10a\ |
|
|
2678 | ... rest of stderr output deleted ... |
|
|
2679 | 10q' conftest.err >conftest.er1 |
|
|
2680 | cat conftest.er1 >&5 |
|
|
2681 | fi |
|
|
2682 | rm -f conftest.er1 conftest.err |
|
|
2683 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
1959 | (exit $ac_status); } |
2684 | test $ac_status = 0; } |
1960 | { (ac_try="$ac_compiler -v >&5" |
2685 | done |
|
|
2686 | |
|
|
2687 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
2688 | /* end confdefs.h. */ |
|
|
2689 | |
|
|
2690 | int |
|
|
2691 | main (void) |
|
|
2692 | { |
|
|
2693 | |
|
|
2694 | ; |
|
|
2695 | return 0; |
|
|
2696 | } |
|
|
2697 | _ACEOF |
|
|
2698 | ac_clean_files_save=$ac_clean_files |
|
|
2699 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" |
|
|
2700 | # Try to create an executable without -o first, disregard a.out. |
|
|
2701 | # It will help us diagnose broken compilers, and finding out an intuition |
|
|
2702 | # of exeext. |
|
|
2703 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 |
|
|
2704 | printf %s "checking whether the C compiler works... " >&6; } |
|
|
2705 | ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
|
|
2706 | |
|
|
2707 | # The possible output files: |
|
|
2708 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" |
|
|
2709 | |
|
|
2710 | ac_rmfiles= |
|
|
2711 | for ac_file in $ac_files |
|
|
2712 | do |
|
|
2713 | case $ac_file in |
|
|
2714 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
|
|
2715 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
|
|
2716 | esac |
|
|
2717 | done |
|
|
2718 | rm -f $ac_rmfiles |
|
|
2719 | |
|
|
2720 | if { { ac_try="$ac_link_default" |
1961 | case "(($ac_try" in |
2721 | case "(($ac_try" in |
1962 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
2722 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
1963 | *) ac_try_echo=$ac_try;; |
2723 | *) ac_try_echo=$ac_try;; |
1964 | esac |
2724 | esac |
1965 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
2725 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
1966 | (eval "$ac_compiler -v >&5") 2>&5 |
2726 | printf "%s\n" "$ac_try_echo"; } >&5 |
1967 | ac_status=$? |
|
|
1968 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
1969 | (exit $ac_status); } |
|
|
1970 | { (ac_try="$ac_compiler -V >&5" |
|
|
1971 | case "(($ac_try" in |
|
|
1972 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
1973 | *) ac_try_echo=$ac_try;; |
|
|
1974 | esac |
|
|
1975 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
1976 | (eval "$ac_compiler -V >&5") 2>&5 |
|
|
1977 | ac_status=$? |
|
|
1978 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
1979 | (exit $ac_status); } |
|
|
1980 | |
|
|
1981 | cat >conftest.$ac_ext <<_ACEOF |
|
|
1982 | /* confdefs.h. */ |
|
|
1983 | _ACEOF |
|
|
1984 | cat confdefs.h >>conftest.$ac_ext |
|
|
1985 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
1986 | /* end confdefs.h. */ |
|
|
1987 | |
|
|
1988 | int |
|
|
1989 | main () |
|
|
1990 | { |
|
|
1991 | |
|
|
1992 | ; |
|
|
1993 | return 0; |
|
|
1994 | } |
|
|
1995 | _ACEOF |
|
|
1996 | ac_clean_files_save=$ac_clean_files |
|
|
1997 | ac_clean_files="$ac_clean_files a.out a.exe b.out" |
|
|
1998 | # Try to create an executable without -o first, disregard a.out. |
|
|
1999 | # It will help us diagnose broken compilers, and finding out an intuition |
|
|
2000 | # of exeext. |
|
|
2001 | { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
|
|
2002 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; } |
|
|
2003 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
|
|
2004 | # |
|
|
2005 | # List of possible output files, starting from the most likely. |
|
|
2006 | # The algorithm is not robust to junk in `.', hence go to wildcards (a.*) |
|
|
2007 | # only as a last resort. b.out is created by i960 compilers. |
|
|
2008 | ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' |
|
|
2009 | # |
|
|
2010 | # The IRIX 6 linker writes into existing files which may not be |
|
|
2011 | # executable, retaining their permissions. Remove them first so a |
|
|
2012 | # subsequent execution test works. |
|
|
2013 | ac_rmfiles= |
|
|
2014 | for ac_file in $ac_files |
|
|
2015 | do |
|
|
2016 | case $ac_file in |
|
|
2017 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; |
|
|
2018 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
|
|
2019 | esac |
|
|
2020 | done |
|
|
2021 | rm -f $ac_rmfiles |
|
|
2022 | |
|
|
2023 | if { (ac_try="$ac_link_default" |
|
|
2024 | case "(($ac_try" in |
|
|
2025 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
2026 | *) ac_try_echo=$ac_try;; |
|
|
2027 | esac |
|
|
2028 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
2029 | (eval "$ac_link_default") 2>&5 |
2727 | (eval "$ac_link_default") 2>&5 |
2030 | ac_status=$? |
2728 | ac_status=$? |
2031 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2729 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
2032 | (exit $ac_status); }; then |
2730 | test $ac_status = 0; } |
|
|
2731 | then : |
2033 | # 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'. |
2034 | # 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' |
2035 | # 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, |
2036 | # 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 |
2037 | # Autoconf. |
2736 | # Autoconf. |
2038 | for ac_file in $ac_files '' |
2737 | for ac_file in $ac_files '' |
2039 | do |
2738 | do |
2040 | test -f "$ac_file" || continue |
2739 | test -f "$ac_file" || continue |
2041 | case $ac_file in |
2740 | case $ac_file in |
2042 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) |
2741 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
2043 | ;; |
2742 | ;; |
2044 | [ab].out ) |
2743 | [ab].out ) |
2045 | # We found the default executable, but exeext='' is most |
2744 | # We found the default executable, but exeext='' is most |
2046 | # certainly right. |
2745 | # certainly right. |
2047 | break;; |
2746 | break;; |
2048 | *.* ) |
2747 | *.* ) |
2049 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
2748 | if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no; |
2050 | then :; else |
2749 | then :; else |
2051 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
2750 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
2052 | fi |
2751 | fi |
2053 | # 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 |
2054 | # 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' |
… | |
… | |
2060 | break;; |
2759 | break;; |
2061 | esac |
2760 | esac |
2062 | done |
2761 | done |
2063 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
2762 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
2064 | |
2763 | |
2065 | else |
2764 | else $as_nop |
2066 | ac_file='' |
2765 | ac_file='' |
2067 | fi |
2766 | fi |
2068 | |
|
|
2069 | { echo "$as_me:$LINENO: result: $ac_file" >&5 |
|
|
2070 | echo "${ECHO_T}$ac_file" >&6; } |
|
|
2071 | if test -z "$ac_file"; then |
2767 | if test -z "$ac_file" |
|
|
2768 | then : |
|
|
2769 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
|
|
2770 | printf "%s\n" "no" >&6; } |
2072 | echo "$as_me: failed program was:" >&5 |
2771 | printf "%s\n" "$as_me: failed program was:" >&5 |
2073 | sed 's/^/| /' conftest.$ac_ext >&5 |
2772 | sed 's/^/| /' conftest.$ac_ext >&5 |
2074 | |
2773 | |
2075 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables |
2774 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
2076 | See \`config.log' for more details." >&5 |
2775 | printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} |
2077 | echo "$as_me: error: C compiler cannot create executables |
2776 | as_fn_error 77 "C compiler cannot create executables |
2078 | See \`config.log' for more details." >&2;} |
2777 | See \`config.log' for more details" "$LINENO" 5; } |
2079 | { (exit 77); exit 77; }; } |
2778 | else $as_nop |
|
|
2779 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
|
|
2780 | printf "%s\n" "yes" >&6; } |
2080 | fi |
2781 | fi |
2081 | |
2782 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
|
|
2783 | printf %s "checking for C compiler default output file name... " >&6; } |
|
|
2784 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 |
|
|
2785 | printf "%s\n" "$ac_file" >&6; } |
2082 | ac_exeext=$ac_cv_exeext |
2786 | ac_exeext=$ac_cv_exeext |
2083 | |
2787 | |
2084 | # Check that the compiler produces executables we can run. If not, either |
|
|
2085 | # the compiler is broken, or we cross compile. |
|
|
2086 | { echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
|
|
2087 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; } |
|
|
2088 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
|
|
2089 | # If not cross compiling, check that we can run a simple program. |
|
|
2090 | if test "$cross_compiling" != yes; then |
|
|
2091 | if { ac_try='./$ac_file' |
|
|
2092 | { (case "(($ac_try" in |
|
|
2093 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
2094 | *) ac_try_echo=$ac_try;; |
|
|
2095 | esac |
|
|
2096 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
2097 | (eval "$ac_try") 2>&5 |
|
|
2098 | ac_status=$? |
|
|
2099 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
2100 | (exit $ac_status); }; }; then |
|
|
2101 | cross_compiling=no |
|
|
2102 | else |
|
|
2103 | if test "$cross_compiling" = maybe; then |
|
|
2104 | cross_compiling=yes |
|
|
2105 | else |
|
|
2106 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. |
|
|
2107 | If you meant to cross compile, use \`--host'. |
|
|
2108 | See \`config.log' for more details." >&5 |
|
|
2109 | echo "$as_me: error: cannot run C compiled programs. |
|
|
2110 | If you meant to cross compile, use \`--host'. |
|
|
2111 | See \`config.log' for more details." >&2;} |
|
|
2112 | { (exit 1); exit 1; }; } |
|
|
2113 | fi |
|
|
2114 | fi |
|
|
2115 | fi |
|
|
2116 | { echo "$as_me:$LINENO: result: yes" >&5 |
|
|
2117 | echo "${ECHO_T}yes" >&6; } |
|
|
2118 | |
|
|
2119 | rm -f a.out 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 |
2120 | ac_clean_files=$ac_clean_files_save |
2789 | ac_clean_files=$ac_clean_files_save |
2121 | # Check that the compiler produces executables we can run. If not, either |
|
|
2122 | # the compiler is broken, or we cross compile. |
|
|
2123 | { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
|
|
2124 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } |
|
|
2125 | { echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
|
|
2126 | echo "${ECHO_T}$cross_compiling" >&6; } |
|
|
2127 | |
|
|
2128 | { echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
2790 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 |
2129 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } |
2791 | printf %s "checking for suffix of executables... " >&6; } |
2130 | if { (ac_try="$ac_link" |
2792 | if { { ac_try="$ac_link" |
2131 | case "(($ac_try" in |
2793 | case "(($ac_try" in |
2132 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
2794 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
2133 | *) ac_try_echo=$ac_try;; |
2795 | *) ac_try_echo=$ac_try;; |
2134 | esac |
2796 | esac |
2135 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
2797 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
|
|
2798 | printf "%s\n" "$ac_try_echo"; } >&5 |
2136 | (eval "$ac_link") 2>&5 |
2799 | (eval "$ac_link") 2>&5 |
2137 | ac_status=$? |
2800 | ac_status=$? |
2138 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2801 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
2139 | (exit $ac_status); }; then |
2802 | test $ac_status = 0; } |
|
|
2803 | then : |
2140 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
2804 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
2141 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
2805 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
2142 | # 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 |
2143 | # `rm'. |
2807 | # `rm'. |
2144 | for ac_file in conftest.exe conftest conftest.*; do |
2808 | for ac_file in conftest.exe conftest conftest.*; do |
2145 | test -f "$ac_file" || continue |
2809 | test -f "$ac_file" || continue |
2146 | case $ac_file in |
2810 | case $ac_file in |
2147 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; |
2811 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
2148 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
2812 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
2149 | break;; |
2813 | break;; |
2150 | * ) break;; |
2814 | * ) break;; |
2151 | esac |
2815 | esac |
2152 | done |
2816 | done |
2153 | else |
2817 | else $as_nop |
2154 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
2818 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
2155 | See \`config.log' for more details." >&5 |
2819 | printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} |
2156 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
2820 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link |
2157 | See \`config.log' for more details." >&2;} |
2821 | See \`config.log' for more details" "$LINENO" 5; } |
2158 | { (exit 1); exit 1; }; } |
|
|
2159 | fi |
2822 | fi |
2160 | |
|
|
2161 | rm -f conftest$ac_cv_exeext |
2823 | rm -f conftest conftest$ac_cv_exeext |
2162 | { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
2824 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
2163 | echo "${ECHO_T}$ac_cv_exeext" >&6; } |
2825 | printf "%s\n" "$ac_cv_exeext" >&6; } |
2164 | |
2826 | |
2165 | rm -f conftest.$ac_ext |
2827 | rm -f conftest.$ac_ext |
2166 | EXEEXT=$ac_cv_exeext |
2828 | EXEEXT=$ac_cv_exeext |
2167 | ac_exeext=$EXEEXT |
2829 | ac_exeext=$EXEEXT |
2168 | { echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
|
|
2169 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } |
|
|
2170 | if test "${ac_cv_objext+set}" = set; then |
|
|
2171 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
2172 | else |
|
|
2173 | cat >conftest.$ac_ext <<_ACEOF |
|
|
2174 | /* confdefs.h. */ |
|
|
2175 | _ACEOF |
|
|
2176 | cat confdefs.h >>conftest.$ac_ext |
2830 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
2177 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
2178 | /* end confdefs.h. */ |
2831 | /* end confdefs.h. */ |
2179 | |
2832 | #include <stdio.h> |
2180 | int |
2833 | int |
2181 | main () |
2834 | main (void) |
2182 | { |
2835 | { |
|
|
2836 | FILE *f = fopen ("conftest.out", "w"); |
|
|
2837 | return ferror (f) || fclose (f) != 0; |
2183 | |
2838 | |
2184 | ; |
2839 | ; |
2185 | return 0; |
2840 | return 0; |
2186 | } |
2841 | } |
2187 | _ACEOF |
2842 | _ACEOF |
2188 | rm -f conftest.o conftest.obj |
2843 | ac_clean_files="$ac_clean_files conftest.out" |
2189 | if { (ac_try="$ac_compile" |
2844 | # Check that the compiler produces executables we can run. If not, either |
|
|
2845 | # the compiler is broken, or we cross compile. |
|
|
2846 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 |
|
|
2847 | printf %s "checking whether we are cross compiling... " >&6; } |
|
|
2848 | if test "$cross_compiling" != yes; then |
|
|
2849 | { { ac_try="$ac_link" |
2190 | case "(($ac_try" in |
2850 | case "(($ac_try" in |
2191 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
2851 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
2192 | *) ac_try_echo=$ac_try;; |
2852 | *) ac_try_echo=$ac_try;; |
2193 | esac |
2853 | esac |
2194 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
2854 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
|
|
2855 | printf "%s\n" "$ac_try_echo"; } >&5 |
|
|
2856 | (eval "$ac_link") 2>&5 |
|
|
2857 | ac_status=$? |
|
|
2858 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
|
|
2859 | test $ac_status = 0; } |
|
|
2860 | if { ac_try='./conftest$ac_cv_exeext' |
|
|
2861 | { { case "(($ac_try" in |
|
|
2862 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
2863 | *) ac_try_echo=$ac_try;; |
|
|
2864 | esac |
|
|
2865 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
|
|
2866 | printf "%s\n" "$ac_try_echo"; } >&5 |
|
|
2867 | (eval "$ac_try") 2>&5 |
|
|
2868 | ac_status=$? |
|
|
2869 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
|
|
2870 | test $ac_status = 0; }; }; then |
|
|
2871 | cross_compiling=no |
|
|
2872 | else |
|
|
2873 | if test "$cross_compiling" = maybe; then |
|
|
2874 | cross_compiling=yes |
|
|
2875 | else |
|
|
2876 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
|
|
2877 | printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} |
|
|
2878 | as_fn_error 77 "cannot run C compiled programs. |
|
|
2879 | If you meant to cross compile, use \`--host'. |
|
|
2880 | See \`config.log' for more details" "$LINENO" 5; } |
|
|
2881 | fi |
|
|
2882 | fi |
|
|
2883 | fi |
|
|
2884 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 |
|
|
2885 | printf "%s\n" "$cross_compiling" >&6; } |
|
|
2886 | |
|
|
2887 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out |
|
|
2888 | ac_clean_files=$ac_clean_files_save |
|
|
2889 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 |
|
|
2890 | printf %s "checking for suffix of object files... " >&6; } |
|
|
2891 | if test ${ac_cv_objext+y} |
|
|
2892 | then : |
|
|
2893 | printf %s "(cached) " >&6 |
|
|
2894 | else $as_nop |
|
|
2895 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
2896 | /* end confdefs.h. */ |
|
|
2897 | |
|
|
2898 | int |
|
|
2899 | main (void) |
|
|
2900 | { |
|
|
2901 | |
|
|
2902 | ; |
|
|
2903 | return 0; |
|
|
2904 | } |
|
|
2905 | _ACEOF |
|
|
2906 | rm -f conftest.o conftest.obj |
|
|
2907 | if { { ac_try="$ac_compile" |
|
|
2908 | case "(($ac_try" in |
|
|
2909 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
2910 | *) ac_try_echo=$ac_try;; |
|
|
2911 | esac |
|
|
2912 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
|
|
2913 | printf "%s\n" "$ac_try_echo"; } >&5 |
2195 | (eval "$ac_compile") 2>&5 |
2914 | (eval "$ac_compile") 2>&5 |
2196 | ac_status=$? |
2915 | ac_status=$? |
2197 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2916 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
2198 | (exit $ac_status); }; then |
2917 | test $ac_status = 0; } |
|
|
2918 | then : |
2199 | for ac_file in conftest.o conftest.obj conftest.*; do |
2919 | for ac_file in conftest.o conftest.obj conftest.*; do |
2200 | test -f "$ac_file" || continue; |
2920 | test -f "$ac_file" || continue; |
2201 | case $ac_file in |
2921 | case $ac_file in |
2202 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; |
2922 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
2203 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
2923 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
2204 | break;; |
2924 | break;; |
2205 | esac |
2925 | esac |
2206 | done |
2926 | done |
2207 | else |
2927 | else $as_nop |
2208 | echo "$as_me: failed program was:" >&5 |
2928 | printf "%s\n" "$as_me: failed program was:" >&5 |
2209 | sed 's/^/| /' conftest.$ac_ext >&5 |
2929 | sed 's/^/| /' conftest.$ac_ext >&5 |
2210 | |
2930 | |
2211 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile |
2931 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
2212 | See \`config.log' for more details." >&5 |
2932 | printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} |
2213 | echo "$as_me: error: cannot compute suffix of object files: cannot compile |
2933 | as_fn_error $? "cannot compute suffix of object files: cannot compile |
2214 | See \`config.log' for more details." >&2;} |
2934 | See \`config.log' for more details" "$LINENO" 5; } |
2215 | { (exit 1); exit 1; }; } |
|
|
2216 | fi |
2935 | fi |
2217 | |
|
|
2218 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
2936 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
2219 | fi |
2937 | fi |
2220 | { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
2938 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
2221 | echo "${ECHO_T}$ac_cv_objext" >&6; } |
2939 | printf "%s\n" "$ac_cv_objext" >&6; } |
2222 | OBJEXT=$ac_cv_objext |
2940 | OBJEXT=$ac_cv_objext |
2223 | ac_objext=$OBJEXT |
2941 | ac_objext=$OBJEXT |
2224 | { echo "$as_me:$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 |
2225 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } |
2943 | printf %s "checking whether the compiler supports GNU C... " >&6; } |
2226 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
2944 | if test ${ac_cv_c_compiler_gnu+y} |
2227 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2945 | then : |
2228 | else |
2946 | printf %s "(cached) " >&6 |
2229 | cat >conftest.$ac_ext <<_ACEOF |
2947 | else $as_nop |
2230 | /* confdefs.h. */ |
|
|
2231 | _ACEOF |
|
|
2232 | cat confdefs.h >>conftest.$ac_ext |
2948 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
2233 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
2234 | /* end confdefs.h. */ |
2949 | /* end confdefs.h. */ |
2235 | |
2950 | |
2236 | int |
2951 | int |
2237 | main () |
2952 | main (void) |
2238 | { |
2953 | { |
2239 | #ifndef __GNUC__ |
2954 | #ifndef __GNUC__ |
2240 | choke me |
2955 | choke me |
2241 | #endif |
2956 | #endif |
2242 | |
2957 | |
2243 | ; |
2958 | ; |
2244 | return 0; |
2959 | return 0; |
2245 | } |
2960 | } |
2246 | _ACEOF |
2961 | _ACEOF |
2247 | rm -f conftest.$ac_objext |
2962 | if ac_fn_c_try_compile "$LINENO" |
2248 | if { (ac_try="$ac_compile" |
2963 | then : |
2249 | case "(($ac_try" in |
|
|
2250 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
2251 | *) ac_try_echo=$ac_try;; |
|
|
2252 | esac |
|
|
2253 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
2254 | (eval "$ac_compile") 2>conftest.er1 |
|
|
2255 | ac_status=$? |
|
|
2256 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
2257 | rm -f conftest.er1 |
|
|
2258 | cat conftest.err >&5 |
|
|
2259 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
2260 | (exit $ac_status); } && { |
|
|
2261 | test -z "$ac_c_werror_flag" || |
|
|
2262 | test ! -s conftest.err |
|
|
2263 | } && test -s conftest.$ac_objext; then |
|
|
2264 | ac_compiler_gnu=yes |
2964 | ac_compiler_gnu=yes |
|
|
2965 | else $as_nop |
|
|
2966 | ac_compiler_gnu=no |
|
|
2967 | fi |
|
|
2968 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
|
|
2969 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
|
|
2970 | |
|
|
2971 | fi |
|
|
2972 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
|
|
2973 | printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; } |
|
|
2974 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
|
|
2975 | |
|
|
2976 | if test $ac_compiler_gnu = yes; then |
|
|
2977 | GCC=yes |
2265 | else |
2978 | else |
2266 | echo "$as_me: failed program was:" >&5 |
2979 | GCC= |
2267 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
2268 | |
|
|
2269 | ac_compiler_gnu=no |
|
|
2270 | fi |
2980 | fi |
2271 | |
|
|
2272 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
2273 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
|
|
2274 | |
|
|
2275 | fi |
|
|
2276 | { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
|
|
2277 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } |
|
|
2278 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
|
|
2279 | ac_test_CFLAGS=${CFLAGS+set} |
2981 | ac_test_CFLAGS=${CFLAGS+y} |
2280 | ac_save_CFLAGS=$CFLAGS |
2982 | ac_save_CFLAGS=$CFLAGS |
2281 | { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
2983 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
2282 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } |
2984 | printf %s "checking whether $CC accepts -g... " >&6; } |
2283 | if test "${ac_cv_prog_cc_g+set}" = set; then |
2985 | if test ${ac_cv_prog_cc_g+y} |
2284 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2986 | then : |
2285 | else |
2987 | printf %s "(cached) " >&6 |
|
|
2988 | else $as_nop |
2286 | ac_save_c_werror_flag=$ac_c_werror_flag |
2989 | ac_save_c_werror_flag=$ac_c_werror_flag |
2287 | ac_c_werror_flag=yes |
2990 | ac_c_werror_flag=yes |
2288 | ac_cv_prog_cc_g=no |
2991 | ac_cv_prog_cc_g=no |
2289 | CFLAGS="-g" |
2992 | CFLAGS="-g" |
2290 | cat >conftest.$ac_ext <<_ACEOF |
|
|
2291 | /* confdefs.h. */ |
|
|
2292 | _ACEOF |
|
|
2293 | cat confdefs.h >>conftest.$ac_ext |
2993 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
2294 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
2295 | /* end confdefs.h. */ |
2994 | /* end confdefs.h. */ |
2296 | |
2995 | |
2297 | int |
2996 | int |
2298 | main () |
2997 | main (void) |
2299 | { |
2998 | { |
2300 | |
2999 | |
2301 | ; |
3000 | ; |
2302 | return 0; |
3001 | return 0; |
2303 | } |
3002 | } |
2304 | _ACEOF |
3003 | _ACEOF |
2305 | rm -f conftest.$ac_objext |
3004 | if ac_fn_c_try_compile "$LINENO" |
2306 | if { (ac_try="$ac_compile" |
3005 | then : |
2307 | case "(($ac_try" in |
|
|
2308 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
2309 | *) ac_try_echo=$ac_try;; |
|
|
2310 | esac |
|
|
2311 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
2312 | (eval "$ac_compile") 2>conftest.er1 |
|
|
2313 | ac_status=$? |
|
|
2314 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
2315 | rm -f conftest.er1 |
|
|
2316 | cat conftest.err >&5 |
|
|
2317 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
2318 | (exit $ac_status); } && { |
|
|
2319 | test -z "$ac_c_werror_flag" || |
|
|
2320 | test ! -s conftest.err |
|
|
2321 | } && test -s conftest.$ac_objext; then |
|
|
2322 | ac_cv_prog_cc_g=yes |
3006 | ac_cv_prog_cc_g=yes |
2323 | else |
3007 | else $as_nop |
2324 | echo "$as_me: failed program was:" >&5 |
|
|
2325 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
2326 | |
|
|
2327 | CFLAGS="" |
3008 | CFLAGS="" |
2328 | cat >conftest.$ac_ext <<_ACEOF |
|
|
2329 | /* confdefs.h. */ |
|
|
2330 | _ACEOF |
|
|
2331 | cat confdefs.h >>conftest.$ac_ext |
3009 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
2332 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
2333 | /* end confdefs.h. */ |
3010 | /* end confdefs.h. */ |
2334 | |
3011 | |
2335 | int |
3012 | int |
2336 | main () |
3013 | main (void) |
2337 | { |
3014 | { |
2338 | |
3015 | |
2339 | ; |
3016 | ; |
2340 | return 0; |
3017 | return 0; |
2341 | } |
3018 | } |
2342 | _ACEOF |
3019 | _ACEOF |
2343 | rm -f conftest.$ac_objext |
3020 | if ac_fn_c_try_compile "$LINENO" |
2344 | if { (ac_try="$ac_compile" |
3021 | then : |
2345 | case "(($ac_try" in |
|
|
2346 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
2347 | *) ac_try_echo=$ac_try;; |
|
|
2348 | esac |
|
|
2349 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
2350 | (eval "$ac_compile") 2>conftest.er1 |
|
|
2351 | ac_status=$? |
|
|
2352 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
2353 | rm -f conftest.er1 |
|
|
2354 | cat conftest.err >&5 |
|
|
2355 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
2356 | (exit $ac_status); } && { |
|
|
2357 | test -z "$ac_c_werror_flag" || |
|
|
2358 | test ! -s conftest.err |
|
|
2359 | } && test -s conftest.$ac_objext; then |
|
|
2360 | : |
|
|
2361 | else |
|
|
2362 | echo "$as_me: failed program was:" >&5 |
|
|
2363 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
2364 | |
3022 | |
|
|
3023 | else $as_nop |
2365 | ac_c_werror_flag=$ac_save_c_werror_flag |
3024 | ac_c_werror_flag=$ac_save_c_werror_flag |
2366 | CFLAGS="-g" |
3025 | CFLAGS="-g" |
2367 | cat >conftest.$ac_ext <<_ACEOF |
|
|
2368 | /* confdefs.h. */ |
|
|
2369 | _ACEOF |
|
|
2370 | cat confdefs.h >>conftest.$ac_ext |
3026 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
2371 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
2372 | /* end confdefs.h. */ |
3027 | /* end confdefs.h. */ |
2373 | |
3028 | |
2374 | int |
3029 | int |
2375 | main () |
3030 | main (void) |
2376 | { |
3031 | { |
2377 | |
3032 | |
2378 | ; |
3033 | ; |
2379 | return 0; |
3034 | return 0; |
2380 | } |
3035 | } |
2381 | _ACEOF |
3036 | _ACEOF |
2382 | rm -f conftest.$ac_objext |
3037 | if ac_fn_c_try_compile "$LINENO" |
2383 | if { (ac_try="$ac_compile" |
3038 | then : |
2384 | case "(($ac_try" in |
|
|
2385 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
2386 | *) ac_try_echo=$ac_try;; |
|
|
2387 | esac |
|
|
2388 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
2389 | (eval "$ac_compile") 2>conftest.er1 |
|
|
2390 | ac_status=$? |
|
|
2391 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
2392 | rm -f conftest.er1 |
|
|
2393 | cat conftest.err >&5 |
|
|
2394 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
2395 | (exit $ac_status); } && { |
|
|
2396 | test -z "$ac_c_werror_flag" || |
|
|
2397 | test ! -s conftest.err |
|
|
2398 | } && test -s conftest.$ac_objext; then |
|
|
2399 | ac_cv_prog_cc_g=yes |
3039 | ac_cv_prog_cc_g=yes |
2400 | else |
|
|
2401 | echo "$as_me: failed program was:" >&5 |
|
|
2402 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
2403 | |
|
|
2404 | |
|
|
2405 | fi |
3040 | fi |
2406 | |
|
|
2407 | 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 |
2408 | fi |
3042 | fi |
2409 | |
|
|
2410 | 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 |
2411 | fi |
3044 | fi |
2412 | |
|
|
2413 | 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 |
2414 | ac_c_werror_flag=$ac_save_c_werror_flag |
3046 | ac_c_werror_flag=$ac_save_c_werror_flag |
2415 | fi |
3047 | fi |
2416 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
3048 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 |
2417 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } |
3049 | printf "%s\n" "$ac_cv_prog_cc_g" >&6; } |
2418 | if test "$ac_test_CFLAGS" = set; then |
3050 | if test $ac_test_CFLAGS; then |
2419 | CFLAGS=$ac_save_CFLAGS |
3051 | CFLAGS=$ac_save_CFLAGS |
2420 | elif test $ac_cv_prog_cc_g = yes; then |
3052 | elif test $ac_cv_prog_cc_g = yes; then |
2421 | if test "$GCC" = yes; then |
3053 | if test "$GCC" = yes; then |
2422 | CFLAGS="-g -O2" |
3054 | CFLAGS="-g -O2" |
2423 | else |
3055 | else |
… | |
… | |
2428 | CFLAGS="-O2" |
3060 | CFLAGS="-O2" |
2429 | else |
3061 | else |
2430 | CFLAGS= |
3062 | CFLAGS= |
2431 | fi |
3063 | fi |
2432 | fi |
3064 | fi |
2433 | { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 |
3065 | ac_prog_cc_stdc=no |
2434 | echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } |
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 | |
2435 | if test "${ac_cv_prog_cc_c89+set}" = set; then |
3140 | if test "x$ac_cv_prog_cc_c99" = xno |
2436 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3141 | then : |
2437 | else |
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 : |
|
|
3160 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5 |
|
|
3161 | printf %s "checking for $CC option to enable C89 features... " >&6; } |
|
|
3162 | if test ${ac_cv_prog_cc_c89+y} |
|
|
3163 | then : |
|
|
3164 | printf %s "(cached) " >&6 |
|
|
3165 | else $as_nop |
2438 | ac_cv_prog_cc_c89=no |
3166 | ac_cv_prog_cc_c89=no |
2439 | ac_save_CC=$CC |
3167 | ac_save_CC=$CC |
2440 | cat >conftest.$ac_ext <<_ACEOF |
|
|
2441 | /* confdefs.h. */ |
|
|
2442 | _ACEOF |
|
|
2443 | cat confdefs.h >>conftest.$ac_ext |
3168 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
2444 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
2445 | /* end confdefs.h. */ |
3169 | /* end confdefs.h. */ |
2446 | #include <stdarg.h> |
3170 | $ac_c_conftest_c89_program |
2447 | #include <stdio.h> |
|
|
2448 | #include <sys/types.h> |
|
|
2449 | #include <sys/stat.h> |
|
|
2450 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
|
|
2451 | struct buf { int x; }; |
|
|
2452 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
|
|
2453 | static char *e (p, i) |
|
|
2454 | char **p; |
|
|
2455 | int i; |
|
|
2456 | { |
|
|
2457 | return p[i]; |
|
|
2458 | } |
|
|
2459 | static char *f (char * (*g) (char **, int), char **p, ...) |
|
|
2460 | { |
|
|
2461 | char *s; |
|
|
2462 | va_list v; |
|
|
2463 | va_start (v,p); |
|
|
2464 | s = g (p, va_arg (v,int)); |
|
|
2465 | va_end (v); |
|
|
2466 | return s; |
|
|
2467 | } |
|
|
2468 | |
|
|
2469 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
|
|
2470 | function prototypes and stuff, but not '\xHH' hex character constants. |
|
|
2471 | These don't provoke an error unfortunately, instead are silently treated |
|
|
2472 | as 'x'. The following induces an error, until -std is added to get |
|
|
2473 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
|
|
2474 | array size at least. It's necessary to write '\x00'==0 to get something |
|
|
2475 | that's true only with -std. */ |
|
|
2476 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
|
|
2477 | |
|
|
2478 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
|
|
2479 | inside strings and character constants. */ |
|
|
2480 | #define FOO(x) 'x' |
|
|
2481 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
|
|
2482 | |
|
|
2483 | int test (int i, double x); |
|
|
2484 | struct s1 {int (*f) (int a);}; |
|
|
2485 | struct s2 {int (*f) (double a);}; |
|
|
2486 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
|
|
2487 | int argc; |
|
|
2488 | char **argv; |
|
|
2489 | int |
|
|
2490 | main () |
|
|
2491 | { |
|
|
2492 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
|
|
2493 | ; |
|
|
2494 | return 0; |
|
|
2495 | } |
|
|
2496 | _ACEOF |
3171 | _ACEOF |
2497 | 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__" |
2498 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
|
|
2499 | do |
3173 | do |
2500 | CC="$ac_save_CC $ac_arg" |
3174 | CC="$ac_save_CC $ac_arg" |
2501 | rm -f conftest.$ac_objext |
3175 | if ac_fn_c_try_compile "$LINENO" |
2502 | if { (ac_try="$ac_compile" |
3176 | then : |
2503 | case "(($ac_try" in |
|
|
2504 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
2505 | *) ac_try_echo=$ac_try;; |
|
|
2506 | esac |
|
|
2507 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
2508 | (eval "$ac_compile") 2>conftest.er1 |
|
|
2509 | ac_status=$? |
|
|
2510 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
2511 | rm -f conftest.er1 |
|
|
2512 | cat conftest.err >&5 |
|
|
2513 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
2514 | (exit $ac_status); } && { |
|
|
2515 | test -z "$ac_c_werror_flag" || |
|
|
2516 | test ! -s conftest.err |
|
|
2517 | } && test -s conftest.$ac_objext; then |
|
|
2518 | ac_cv_prog_cc_c89=$ac_arg |
3177 | ac_cv_prog_cc_c89=$ac_arg |
2519 | else |
|
|
2520 | echo "$as_me: failed program was:" >&5 |
|
|
2521 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
2522 | |
|
|
2523 | |
|
|
2524 | fi |
3178 | fi |
2525 | |
|
|
2526 | rm -f core conftest.err conftest.$ac_objext |
3179 | rm -f core conftest.err conftest.$ac_objext conftest.beam |
2527 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
3180 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
2528 | done |
3181 | done |
2529 | rm -f conftest.$ac_ext |
3182 | rm -f conftest.$ac_ext |
2530 | CC=$ac_save_CC |
3183 | CC=$ac_save_CC |
2531 | |
|
|
2532 | fi |
3184 | fi |
2533 | # AC_CACHE_VAL |
3185 | |
2534 | case "x$ac_cv_prog_cc_c89" in |
3186 | if test "x$ac_cv_prog_cc_c89" = xno |
2535 | x) |
3187 | then : |
2536 | { echo "$as_me:$LINENO: result: none needed" >&5 |
3188 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
2537 | echo "${ECHO_T}none needed" >&6; } ;; |
3189 | printf "%s\n" "unsupported" >&6; } |
2538 | xno) |
3190 | else $as_nop |
2539 | { echo "$as_me:$LINENO: result: unsupported" >&5 |
3191 | if test "x$ac_cv_prog_cc_c89" = x |
2540 | echo "${ECHO_T}unsupported" >&6; } ;; |
3192 | then : |
2541 | *) |
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; } |
2542 | CC="$CC $ac_cv_prog_cc_c89" |
3198 | CC="$CC $ac_cv_prog_cc_c89" |
2543 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 |
3199 | fi |
2544 | echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; |
3200 | ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 |
2545 | esac |
3201 | ac_prog_cc_stdc=c89 |
2546 | |
3202 | fi |
|
|
3203 | fi |
2547 | |
3204 | |
2548 | ac_ext=c |
3205 | ac_ext=c |
2549 | ac_cpp='$CPP $CPPFLAGS' |
3206 | ac_cpp='$CPP $CPPFLAGS' |
2550 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
3207 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
2551 | 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' |
2552 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
3209 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
2553 | |
3210 | |
2554 | |
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 |
2555 | |
3227 | |
2556 | { echo "$as_me:$LINENO: checking for library containing pthread_create" >&5 |
3228 | |
2557 | echo $ECHO_N "checking for library containing pthread_create... $ECHO_C" >&6; } |
3229 | |
2558 | if test "${ac_cv_search_pthread_create+set}" = set; then |
3230 | |
2559 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
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 | |
|
|
3382 | |
|
|
3383 | ac_ext=c |
|
|
3384 | ac_cpp='$CPP $CPPFLAGS' |
|
|
3385 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
|
3386 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
|
3387 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
|
|
3388 | if test -n "$ac_tool_prefix"; then |
|
|
3389 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
|
|
3390 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
|
|
3391 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
|
|
3392 | printf %s "checking for $ac_word... " >&6; } |
|
|
3393 | if test ${ac_cv_prog_CC+y} |
|
|
3394 | then : |
|
|
3395 | printf %s "(cached) " >&6 |
|
|
3396 | else $as_nop |
|
|
3397 | if test -n "$CC"; then |
|
|
3398 | ac_cv_prog_CC="$CC" # Let the user override the test. |
2560 | else |
3399 | else |
|
|
3400 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
|
3401 | for as_dir in $PATH |
|
|
3402 | do |
|
|
3403 | IFS=$as_save_IFS |
|
|
3404 | case $as_dir in #((( |
|
|
3405 | '') as_dir=./ ;; |
|
|
3406 | */) ;; |
|
|
3407 | *) as_dir=$as_dir/ ;; |
|
|
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 |
|
|
3851 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
3852 | /* end confdefs.h. */ |
|
|
3853 | |
|
|
3854 | int |
|
|
3855 | main (void) |
|
|
3856 | { |
|
|
3857 | #ifndef __GNUC__ |
|
|
3858 | choke me |
|
|
3859 | #endif |
|
|
3860 | |
|
|
3861 | ; |
|
|
3862 | return 0; |
|
|
3863 | } |
|
|
3864 | _ACEOF |
|
|
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 |
|
|
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 |
|
|
3881 | else |
|
|
3882 | GCC= |
|
|
3883 | fi |
|
|
3884 | ac_test_CFLAGS=${CFLAGS+y} |
|
|
3885 | ac_save_CFLAGS=$CFLAGS |
|
|
3886 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
|
|
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" |
|
|
3896 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
3897 | /* end confdefs.h. */ |
|
|
3898 | |
|
|
3899 | int |
|
|
3900 | main (void) |
|
|
3901 | { |
|
|
3902 | |
|
|
3903 | ; |
|
|
3904 | return 0; |
|
|
3905 | } |
|
|
3906 | _ACEOF |
|
|
3907 | if ac_fn_c_try_compile "$LINENO" |
|
|
3908 | then : |
|
|
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 |
|
|
3961 | else |
|
|
3962 | if test "$GCC" = yes; then |
|
|
3963 | CFLAGS="-O2" |
|
|
3964 | else |
|
|
3965 | CFLAGS= |
|
|
3966 | fi |
|
|
3967 | fi |
|
|
3968 | ac_prog_cc_stdc=no |
|
|
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 |
|
|
3992 | done |
|
|
3993 | rm -f conftest.$ac_ext |
|
|
3994 | CC=$ac_save_CC |
|
|
3995 | fi |
|
|
3996 | |
|
|
3997 | if test "x$ac_cv_prog_cc_c11" = xno |
|
|
3998 | then : |
|
|
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" |
|
|
4010 | fi |
|
|
4011 | ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11 |
|
|
4012 | ac_prog_cc_stdc=c11 |
|
|
4013 | fi |
|
|
4014 | fi |
|
|
4015 | if test x$ac_prog_cc_stdc = xno |
|
|
4016 | then : |
|
|
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= |
|
|
4030 | do |
|
|
4031 | CC="$ac_save_CC $ac_arg" |
|
|
4032 | if ac_fn_c_try_compile "$LINENO" |
|
|
4033 | then : |
|
|
4034 | ac_cv_prog_cc_c99=$ac_arg |
|
|
4035 | fi |
|
|
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 |
|
|
4071 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
4072 | /* end confdefs.h. */ |
|
|
4073 | $ac_c_conftest_c89_program |
|
|
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" |
|
|
4078 | if ac_fn_c_try_compile "$LINENO" |
|
|
4079 | then : |
|
|
4080 | ac_cv_prog_cc_c89=$ac_arg |
|
|
4081 | fi |
|
|
4082 | rm -f core conftest.err conftest.$ac_objext conftest.beam |
|
|
4083 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
|
|
4084 | done |
|
|
4085 | rm -f conftest.$ac_ext |
|
|
4086 | CC=$ac_save_CC |
|
|
4087 | fi |
|
|
4088 | |
|
|
4089 | if test "x$ac_cv_prog_cc_c89" = xno |
|
|
4090 | then : |
|
|
4091 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
|
|
4092 | printf "%s\n" "unsupported" >&6; } |
|
|
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 |
|
|
4106 | fi |
|
|
4107 | |
|
|
4108 | ac_ext=c |
|
|
4109 | ac_cpp='$CPP $CPPFLAGS' |
|
|
4110 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
|
4111 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
|
4112 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
|
|
4113 | |
|
|
4114 | |
|
|
4115 | ac_fn_c_check_header_compile "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default" |
|
|
4116 | if test "x$ac_cv_header_stdint_h" = xyes |
|
|
4117 | then : |
|
|
4118 | printf "%s\n" "#define HAVE_STDINT_H 1" >>confdefs.h |
|
|
4119 | |
|
|
4120 | fi |
|
|
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 |
|
|
4125 | |
|
|
4126 | fi |
|
|
4127 | ac_fn_c_check_header_compile "$LINENO" "sys/prctl.h" "ac_cv_header_sys_prctl_h" "$ac_includes_default" |
|
|
4128 | if test "x$ac_cv_header_sys_prctl_h" = xyes |
|
|
4129 | then : |
|
|
4130 | printf "%s\n" "#define HAVE_SYS_PRCTL_H 1" >>confdefs.h |
|
|
4131 | |
|
|
4132 | fi |
|
|
4133 | |
|
|
4134 | |
|
|
4135 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_create" >&5 |
|
|
4136 | printf %s "checking for library containing pthread_create... " >&6; } |
|
|
4137 | if test ${ac_cv_search_pthread_create+y} |
|
|
4138 | then : |
|
|
4139 | printf %s "(cached) " >&6 |
|
|
4140 | else $as_nop |
2561 | ac_func_search_save_LIBS=$LIBS |
4141 | ac_func_search_save_LIBS=$LIBS |
2562 | cat >conftest.$ac_ext <<_ACEOF |
|
|
2563 | /* confdefs.h. */ |
|
|
2564 | _ACEOF |
|
|
2565 | cat confdefs.h >>conftest.$ac_ext |
4142 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
2566 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
2567 | /* end confdefs.h. */ |
4143 | /* end confdefs.h. */ |
2568 | |
4144 | |
2569 | /* Override any GCC internal prototype to avoid an error. |
4145 | /* Override any GCC internal prototype to avoid an error. |
2570 | 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 |
2571 | builtin and then its argument prototype would still apply. */ |
4147 | builtin and then its argument prototype would still apply. */ |
2572 | #ifdef __cplusplus |
|
|
2573 | extern "C" |
|
|
2574 | #endif |
|
|
2575 | char pthread_create (); |
4148 | char pthread_create (); |
2576 | int |
4149 | int |
2577 | main () |
4150 | main (void) |
2578 | { |
4151 | { |
2579 | return pthread_create (); |
4152 | return pthread_create (); |
2580 | ; |
4153 | ; |
2581 | return 0; |
4154 | return 0; |
2582 | } |
4155 | } |
2583 | _ACEOF |
4156 | _ACEOF |
2584 | for ac_lib in '' pthread pthreads pthreadVC2; do |
4157 | for ac_lib in '' pthread pthreads pthreadVC2 |
|
|
4158 | do |
2585 | if test -z "$ac_lib"; then |
4159 | if test -z "$ac_lib"; then |
2586 | ac_res="none required" |
4160 | ac_res="none required" |
2587 | else |
4161 | else |
2588 | ac_res=-l$ac_lib |
4162 | ac_res=-l$ac_lib |
2589 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
4163 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
2590 | fi |
4164 | fi |
2591 | rm -f conftest.$ac_objext conftest$ac_exeext |
4165 | if ac_fn_c_try_link "$LINENO" |
2592 | if { (ac_try="$ac_link" |
4166 | then : |
2593 | case "(($ac_try" in |
|
|
2594 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
2595 | *) ac_try_echo=$ac_try;; |
|
|
2596 | esac |
|
|
2597 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
2598 | (eval "$ac_link") 2>conftest.er1 |
|
|
2599 | ac_status=$? |
|
|
2600 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
2601 | rm -f conftest.er1 |
|
|
2602 | cat conftest.err >&5 |
|
|
2603 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
2604 | (exit $ac_status); } && { |
|
|
2605 | test -z "$ac_c_werror_flag" || |
|
|
2606 | test ! -s conftest.err |
|
|
2607 | } && test -s conftest$ac_exeext && |
|
|
2608 | $as_test_x conftest$ac_exeext; then |
|
|
2609 | ac_cv_search_pthread_create=$ac_res |
4167 | ac_cv_search_pthread_create=$ac_res |
2610 | else |
|
|
2611 | echo "$as_me: failed program was:" >&5 |
|
|
2612 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
2613 | |
|
|
2614 | |
|
|
2615 | fi |
4168 | fi |
2616 | |
|
|
2617 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
4169 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
2618 | conftest$ac_exeext |
4170 | conftest$ac_exeext |
2619 | if test "${ac_cv_search_pthread_create+set}" = set; then |
4171 | if test ${ac_cv_search_pthread_create+y} |
|
|
4172 | then : |
2620 | break |
4173 | break |
2621 | fi |
4174 | fi |
2622 | done |
4175 | done |
2623 | if test "${ac_cv_search_pthread_create+set}" = set; then |
4176 | if test ${ac_cv_search_pthread_create+y} |
2624 | : |
4177 | then : |
2625 | else |
4178 | |
|
|
4179 | else $as_nop |
2626 | ac_cv_search_pthread_create=no |
4180 | ac_cv_search_pthread_create=no |
2627 | fi |
4181 | fi |
2628 | rm conftest.$ac_ext |
4182 | rm conftest.$ac_ext |
2629 | LIBS=$ac_func_search_save_LIBS |
4183 | LIBS=$ac_func_search_save_LIBS |
2630 | fi |
4184 | fi |
2631 | { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_create" >&5 |
4185 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_create" >&5 |
2632 | echo "${ECHO_T}$ac_cv_search_pthread_create" >&6; } |
4186 | printf "%s\n" "$ac_cv_search_pthread_create" >&6; } |
2633 | ac_res=$ac_cv_search_pthread_create |
4187 | ac_res=$ac_cv_search_pthread_create |
2634 | if test "$ac_res" != no; then |
4188 | if test "$ac_res" != no |
|
|
4189 | then : |
2635 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
4190 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
2636 | |
4191 | |
2637 | else |
4192 | else $as_nop |
2638 | { { echo "$as_me:$LINENO: error: pthread functions not found" >&5 |
4193 | as_fn_error $? "pthread functions not found" "$LINENO" 5 |
2639 | echo "$as_me: error: pthread functions not found" >&2;} |
|
|
2640 | { (exit 1); exit 1; }; } |
|
|
2641 | |
4194 | |
2642 | fi |
4195 | fi |
2643 | |
4196 | |
2644 | |
4197 | |
|
|
4198 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for utimes" >&5 |
|
|
4199 | printf %s "checking for utimes... " >&6; } |
|
|
4200 | if test ${ac_cv_utimes+y} |
|
|
4201 | then : |
|
|
4202 | printf %s "(cached) " >&6 |
|
|
4203 | else $as_nop |
|
|
4204 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
4205 | /* end confdefs.h. */ |
|
|
4206 | |
|
|
4207 | #include <sys/types.h> |
|
|
4208 | #include <sys/time.h> |
|
|
4209 | #include <utime.h> |
|
|
4210 | struct timeval tv[2]; |
|
|
4211 | int res; |
|
|
4212 | int main (void) |
|
|
4213 | { |
|
|
4214 | res = utimes ("/", tv); |
|
|
4215 | return 0; |
|
|
4216 | } |
|
|
4217 | |
|
|
4218 | _ACEOF |
|
|
4219 | if ac_fn_c_try_link "$LINENO" |
|
|
4220 | then : |
|
|
4221 | ac_cv_utimes=yes |
|
|
4222 | else $as_nop |
|
|
4223 | ac_cv_utimes=no |
|
|
4224 | fi |
|
|
4225 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
|
|
4226 | conftest$ac_exeext conftest.$ac_ext |
|
|
4227 | fi |
|
|
4228 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_utimes" >&5 |
|
|
4229 | printf "%s\n" "$ac_cv_utimes" >&6; } |
|
|
4230 | test $ac_cv_utimes = yes && |
|
|
4231 | printf "%s\n" "#define HAVE_UTIMES 1" >>confdefs.h |
|
|
4232 | |
|
|
4233 | |
2645 | { echo "$as_me:$LINENO: checking for futimes" >&5 |
4234 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for futimes" >&5 |
2646 | echo $ECHO_N "checking for futimes... $ECHO_C" >&6; } |
4235 | printf %s "checking for futimes... " >&6; } |
2647 | if test "${ac_cv_futimes+set}" = set; then |
4236 | if test ${ac_cv_futimes+y} |
2648 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4237 | then : |
2649 | else |
4238 | printf %s "(cached) " >&6 |
2650 | cat >conftest.$ac_ext <<_ACEOF |
4239 | else $as_nop |
|
|
4240 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
4241 | /* end confdefs.h. */ |
2651 | |
4242 | |
2652 | #include <sys/types.h> |
4243 | #include <sys/types.h> |
2653 | #include <sys/time.h> |
4244 | #include <sys/time.h> |
2654 | #include <utime.h> |
4245 | #include <utime.h> |
2655 | struct timeval tv[2]; |
4246 | struct timeval tv[2]; |
2656 | int res; |
4247 | int res; |
2657 | int fd; |
4248 | int fd; |
2658 | int main(void) |
4249 | int main (void) |
2659 | { |
4250 | { |
2660 | res = futimes (fd, tv); |
4251 | res = futimes (fd, tv); |
2661 | return 0; |
4252 | return 0; |
2662 | } |
4253 | } |
2663 | |
4254 | |
2664 | _ACEOF |
4255 | _ACEOF |
2665 | rm -f conftest.$ac_objext conftest$ac_exeext |
4256 | if ac_fn_c_try_link "$LINENO" |
2666 | if { (ac_try="$ac_link" |
4257 | then : |
2667 | case "(($ac_try" in |
|
|
2668 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
2669 | *) ac_try_echo=$ac_try;; |
|
|
2670 | esac |
|
|
2671 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
2672 | (eval "$ac_link") 2>conftest.er1 |
|
|
2673 | ac_status=$? |
|
|
2674 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
2675 | rm -f conftest.er1 |
|
|
2676 | cat conftest.err >&5 |
|
|
2677 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
2678 | (exit $ac_status); } && { |
|
|
2679 | test -z "$ac_c_werror_flag" || |
|
|
2680 | test ! -s conftest.err |
|
|
2681 | } && test -s conftest$ac_exeext && |
|
|
2682 | $as_test_x conftest$ac_exeext; then |
|
|
2683 | ac_cv_futimes=yes |
4258 | ac_cv_futimes=yes |
2684 | else |
4259 | else $as_nop |
2685 | echo "$as_me: failed program was:" >&5 |
|
|
2686 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
2687 | |
|
|
2688 | ac_cv_futimes=no |
4260 | ac_cv_futimes=no |
2689 | fi |
4261 | fi |
2690 | |
|
|
2691 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
4262 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
2692 | conftest$ac_exeext conftest.$ac_ext |
4263 | conftest$ac_exeext conftest.$ac_ext |
2693 | fi |
4264 | fi |
2694 | { echo "$as_me:$LINENO: result: $ac_cv_futimes" >&5 |
4265 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_futimes" >&5 |
2695 | echo "${ECHO_T}$ac_cv_futimes" >&6; } |
4266 | printf "%s\n" "$ac_cv_futimes" >&6; } |
2696 | test $ac_cv_futimes = yes && |
4267 | test $ac_cv_futimes = yes && |
2697 | cat >>confdefs.h <<\_ACEOF |
4268 | printf "%s\n" "#define HAVE_FUTIMES 1" >>confdefs.h |
2698 | #define HAVE_FUTIMES 1 |
|
|
2699 | _ACEOF |
|
|
2700 | |
4269 | |
2701 | |
4270 | |
2702 | { echo "$as_me:$LINENO: checking for readahead" >&5 |
4271 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for readahead" >&5 |
2703 | echo $ECHO_N "checking for readahead... $ECHO_C" >&6; } |
4272 | printf %s "checking for readahead... " >&6; } |
2704 | if test "${ac_cv_readahead+set}" = set; then |
4273 | if test ${ac_cv_readahead+y} |
2705 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4274 | then : |
2706 | else |
4275 | printf %s "(cached) " >&6 |
2707 | cat >conftest.$ac_ext <<_ACEOF |
4276 | else $as_nop |
|
|
4277 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
4278 | /* end confdefs.h. */ |
2708 | |
4279 | |
|
|
4280 | #include <sys/types.h> |
2709 | #include <fcntl.h> |
4281 | #include <fcntl.h> |
2710 | int main(void) |
4282 | int main (void) |
2711 | { |
4283 | { |
2712 | int fd = 0; |
4284 | int fd = 0; |
2713 | size_t count = 2; |
4285 | size_t count = 2; |
2714 | ssize_t res; |
4286 | ssize_t res; |
2715 | res = readahead (fd, 0, count); |
4287 | res = readahead (fd, 0, count); |
2716 | return 0; |
4288 | return 0; |
2717 | } |
4289 | } |
2718 | |
4290 | |
2719 | _ACEOF |
4291 | _ACEOF |
2720 | rm -f conftest.$ac_objext conftest$ac_exeext |
4292 | if ac_fn_c_try_link "$LINENO" |
2721 | if { (ac_try="$ac_link" |
4293 | then : |
2722 | case "(($ac_try" in |
|
|
2723 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
2724 | *) ac_try_echo=$ac_try;; |
|
|
2725 | esac |
|
|
2726 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
2727 | (eval "$ac_link") 2>conftest.er1 |
|
|
2728 | ac_status=$? |
|
|
2729 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
2730 | rm -f conftest.er1 |
|
|
2731 | cat conftest.err >&5 |
|
|
2732 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
2733 | (exit $ac_status); } && { |
|
|
2734 | test -z "$ac_c_werror_flag" || |
|
|
2735 | test ! -s conftest.err |
|
|
2736 | } && test -s conftest$ac_exeext && |
|
|
2737 | $as_test_x conftest$ac_exeext; then |
|
|
2738 | ac_cv_readahead=yes |
4294 | ac_cv_readahead=yes |
2739 | else |
4295 | else $as_nop |
2740 | echo "$as_me: failed program was:" >&5 |
|
|
2741 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
2742 | |
|
|
2743 | ac_cv_readahead=no |
4296 | ac_cv_readahead=no |
2744 | fi |
4297 | fi |
2745 | |
|
|
2746 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
4298 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
2747 | conftest$ac_exeext conftest.$ac_ext |
4299 | conftest$ac_exeext conftest.$ac_ext |
2748 | fi |
4300 | fi |
2749 | { echo "$as_me:$LINENO: result: $ac_cv_readahead" >&5 |
4301 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_readahead" >&5 |
2750 | echo "${ECHO_T}$ac_cv_readahead" >&6; } |
4302 | printf "%s\n" "$ac_cv_readahead" >&6; } |
2751 | test $ac_cv_readahead = yes && |
4303 | test $ac_cv_readahead = yes && |
2752 | cat >>confdefs.h <<\_ACEOF |
4304 | printf "%s\n" "#define HAVE_READAHEAD 1" >>confdefs.h |
2753 | #define HAVE_READAHEAD 1 |
|
|
2754 | _ACEOF |
|
|
2755 | |
4305 | |
2756 | |
4306 | |
2757 | { echo "$as_me:$LINENO: checking for fdatasync" >&5 |
4307 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fdatasync" >&5 |
2758 | echo $ECHO_N "checking for fdatasync... $ECHO_C" >&6; } |
4308 | printf %s "checking for fdatasync... " >&6; } |
2759 | if test "${ac_cv_fdatasync+set}" = set; then |
4309 | if test ${ac_cv_fdatasync+y} |
2760 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4310 | then : |
2761 | else |
4311 | printf %s "(cached) " >&6 |
2762 | cat >conftest.$ac_ext <<_ACEOF |
4312 | else $as_nop |
|
|
4313 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
4314 | /* end confdefs.h. */ |
2763 | |
4315 | |
2764 | #include <unistd.h> |
4316 | #include <unistd.h> |
2765 | int main(void) |
4317 | int main (void) |
2766 | { |
4318 | { |
2767 | int fd = 0; |
4319 | int fd = 0; |
2768 | fdatasync (fd); |
4320 | fdatasync (fd); |
2769 | return 0; |
4321 | return 0; |
2770 | } |
4322 | } |
2771 | |
4323 | |
2772 | _ACEOF |
4324 | _ACEOF |
2773 | rm -f conftest.$ac_objext conftest$ac_exeext |
4325 | if ac_fn_c_try_link "$LINENO" |
2774 | if { (ac_try="$ac_link" |
4326 | then : |
2775 | case "(($ac_try" in |
|
|
2776 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
2777 | *) ac_try_echo=$ac_try;; |
|
|
2778 | esac |
|
|
2779 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
2780 | (eval "$ac_link") 2>conftest.er1 |
|
|
2781 | ac_status=$? |
|
|
2782 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
2783 | rm -f conftest.er1 |
|
|
2784 | cat conftest.err >&5 |
|
|
2785 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
2786 | (exit $ac_status); } && { |
|
|
2787 | test -z "$ac_c_werror_flag" || |
|
|
2788 | test ! -s conftest.err |
|
|
2789 | } && test -s conftest$ac_exeext && |
|
|
2790 | $as_test_x conftest$ac_exeext; then |
|
|
2791 | ac_cv_fdatasync=yes |
4327 | ac_cv_fdatasync=yes |
2792 | else |
4328 | else $as_nop |
2793 | echo "$as_me: failed program was:" >&5 |
|
|
2794 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
2795 | |
|
|
2796 | ac_cv_fdatasync=no |
4329 | ac_cv_fdatasync=no |
2797 | fi |
4330 | fi |
2798 | |
|
|
2799 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
4331 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
2800 | conftest$ac_exeext conftest.$ac_ext |
4332 | conftest$ac_exeext conftest.$ac_ext |
2801 | fi |
4333 | fi |
2802 | { echo "$as_me:$LINENO: result: $ac_cv_fdatasync" >&5 |
4334 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fdatasync" >&5 |
2803 | echo "${ECHO_T}$ac_cv_fdatasync" >&6; } |
4335 | printf "%s\n" "$ac_cv_fdatasync" >&6; } |
2804 | test $ac_cv_fdatasync = yes && |
4336 | test $ac_cv_fdatasync = yes && |
2805 | cat >>confdefs.h <<\_ACEOF |
4337 | printf "%s\n" "#define HAVE_FDATASYNC 1" >>confdefs.h |
2806 | #define HAVE_FDATASYNC 1 |
|
|
2807 | _ACEOF |
|
|
2808 | |
4338 | |
2809 | |
4339 | |
2810 | { echo "$as_me:$LINENO: checking for pread and pwrite" >&5 |
|
|
2811 | echo $ECHO_N "checking for pread and pwrite... $ECHO_C" >&6; } |
|
|
2812 | if test "${ac_cv_preadwrite+set}" = set; then |
|
|
2813 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
2814 | else |
|
|
2815 | cat >conftest.$ac_ext <<_ACEOF |
|
|
2816 | |
|
|
2817 | #include <unistd.h> |
|
|
2818 | int main(void) |
|
|
2819 | { |
|
|
2820 | int fd = 0; |
|
|
2821 | size_t count = 1; |
|
|
2822 | char buf; |
|
|
2823 | off_t offset = 1; |
|
|
2824 | ssize_t res; |
|
|
2825 | res = pread (fd, &buf, count, offset); |
|
|
2826 | res = pwrite (fd, &buf, count, offset); |
|
|
2827 | return 0; |
|
|
2828 | } |
|
|
2829 | |
|
|
2830 | _ACEOF |
|
|
2831 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
2832 | if { (ac_try="$ac_link" |
|
|
2833 | case "(($ac_try" in |
|
|
2834 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
2835 | *) ac_try_echo=$ac_try;; |
|
|
2836 | esac |
|
|
2837 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
2838 | (eval "$ac_link") 2>conftest.er1 |
|
|
2839 | ac_status=$? |
|
|
2840 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
2841 | rm -f conftest.er1 |
|
|
2842 | cat conftest.err >&5 |
|
|
2843 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
2844 | (exit $ac_status); } && { |
|
|
2845 | test -z "$ac_c_werror_flag" || |
|
|
2846 | test ! -s conftest.err |
|
|
2847 | } && test -s conftest$ac_exeext && |
|
|
2848 | $as_test_x conftest$ac_exeext; then |
|
|
2849 | ac_cv_preadwrite=yes |
|
|
2850 | else |
|
|
2851 | echo "$as_me: failed program was:" >&5 |
|
|
2852 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
2853 | |
|
|
2854 | ac_cv_preadwrite=no |
|
|
2855 | fi |
|
|
2856 | |
|
|
2857 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
|
|
2858 | conftest$ac_exeext conftest.$ac_ext |
|
|
2859 | fi |
|
|
2860 | { echo "$as_me:$LINENO: result: $ac_cv_preadwrite" >&5 |
|
|
2861 | echo "${ECHO_T}$ac_cv_preadwrite" >&6; } |
|
|
2862 | test $ac_cv_preadwrite = yes && |
|
|
2863 | cat >>confdefs.h <<\_ACEOF |
|
|
2864 | #define HAVE_PREADWRITE 1 |
|
|
2865 | _ACEOF |
|
|
2866 | |
|
|
2867 | |
|
|
2868 | { echo "$as_me:$LINENO: checking for readdir_r" >&5 |
|
|
2869 | echo $ECHO_N "checking for readdir_r... $ECHO_C" >&6; } |
|
|
2870 | if test "${ac_cv_readdir_r+set}" = set; then |
|
|
2871 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
2872 | else |
|
|
2873 | cat >conftest.$ac_ext <<_ACEOF |
|
|
2874 | |
|
|
2875 | #include <dirent.h> |
|
|
2876 | int main(void) |
|
|
2877 | { |
|
|
2878 | DIR *dir = 0; |
|
|
2879 | struct dirent ent, *eres; |
|
|
2880 | int res = readdir_r (dir, &ent, &eres); |
|
|
2881 | return 0; |
|
|
2882 | } |
|
|
2883 | |
|
|
2884 | _ACEOF |
|
|
2885 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
2886 | if { (ac_try="$ac_link" |
|
|
2887 | case "(($ac_try" in |
|
|
2888 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
2889 | *) ac_try_echo=$ac_try;; |
|
|
2890 | esac |
|
|
2891 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
2892 | (eval "$ac_link") 2>conftest.er1 |
|
|
2893 | ac_status=$? |
|
|
2894 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
2895 | rm -f conftest.er1 |
|
|
2896 | cat conftest.err >&5 |
|
|
2897 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
2898 | (exit $ac_status); } && { |
|
|
2899 | test -z "$ac_c_werror_flag" || |
|
|
2900 | test ! -s conftest.err |
|
|
2901 | } && test -s conftest$ac_exeext && |
|
|
2902 | $as_test_x conftest$ac_exeext; then |
|
|
2903 | ac_cv_readdir_r=yes |
|
|
2904 | else |
|
|
2905 | echo "$as_me: failed program was:" >&5 |
|
|
2906 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
2907 | |
|
|
2908 | ac_cv_readdir_r=no |
|
|
2909 | fi |
|
|
2910 | |
|
|
2911 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
|
|
2912 | conftest$ac_exeext conftest.$ac_ext |
|
|
2913 | fi |
|
|
2914 | { echo "$as_me:$LINENO: result: $ac_cv_readdir_r" >&5 |
|
|
2915 | echo "${ECHO_T}$ac_cv_readdir_r" >&6; } |
|
|
2916 | test $ac_cv_readdir_r = yes && |
|
|
2917 | cat >>confdefs.h <<\_ACEOF |
|
|
2918 | #define HAVE_READDIR_R 1 |
|
|
2919 | _ACEOF |
|
|
2920 | |
|
|
2921 | |
|
|
2922 | { echo "$as_me:$LINENO: checking for sendfile" >&5 |
4340 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sendfile" >&5 |
2923 | echo $ECHO_N "checking for sendfile... $ECHO_C" >&6; } |
4341 | printf %s "checking for sendfile... " >&6; } |
2924 | if test "${ac_cv_sendfile+set}" = set; then |
4342 | if test ${ac_cv_sendfile+y} |
2925 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4343 | then : |
2926 | else |
4344 | printf %s "(cached) " >&6 |
2927 | cat >conftest.$ac_ext <<_ACEOF |
4345 | else $as_nop |
|
|
4346 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
4347 | /* end confdefs.h. */ |
2928 | |
4348 | |
2929 | # include <sys/types.h> |
4349 | # include <sys/types.h> |
2930 | #if __linux |
4350 | #if __linux |
2931 | # include <sys/sendfile.h> |
4351 | # include <sys/sendfile.h> |
2932 | #elif __freebsd |
4352 | #elif __FreeBSD__ || defined __APPLE__ |
2933 | # include <sys/socket.h> |
4353 | # include <sys/socket.h> |
2934 | # include <sys/uio.h> |
4354 | # include <sys/uio.h> |
2935 | #elif __hpux |
4355 | #elif __hpux |
2936 | # include <sys/socket.h> |
4356 | # include <sys/socket.h> |
2937 | #else |
4357 | #else |
2938 | # error unsupported architecture |
4358 | # error unsupported architecture |
2939 | #endif |
4359 | #endif |
2940 | int main(void) |
4360 | int main (void) |
2941 | { |
4361 | { |
2942 | int fd = 0; |
4362 | int fd = 0; |
2943 | off_t offset = 1; |
4363 | off_t offset = 1; |
2944 | size_t count = 2; |
4364 | size_t count = 2; |
2945 | ssize_t res; |
4365 | ssize_t res; |
2946 | #if __linux |
4366 | #if __linux |
2947 | res = sendfile (fd, fd, offset, count); |
4367 | res = sendfile (fd, fd, &offset, count); |
2948 | #elif __freebsd |
4368 | #elif __FreeBSD__ |
2949 | res = sendfile (fd, fd, offset, count, 0, &offset, 0); |
4369 | res = sendfile (fd, fd, offset, count, 0, &offset, 0); |
2950 | #elif __hpux |
4370 | #elif __hpux |
2951 | res = sendfile (fd, fd, offset, count, 0, 0); |
4371 | res = sendfile (fd, fd, offset, count, 0, 0); |
2952 | #endif |
4372 | #endif |
2953 | return 0; |
4373 | return 0; |
2954 | } |
4374 | } |
2955 | |
4375 | |
2956 | _ACEOF |
4376 | _ACEOF |
2957 | rm -f conftest.$ac_objext conftest$ac_exeext |
4377 | if ac_fn_c_try_link "$LINENO" |
2958 | if { (ac_try="$ac_link" |
4378 | then : |
2959 | case "(($ac_try" in |
|
|
2960 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
2961 | *) ac_try_echo=$ac_try;; |
|
|
2962 | esac |
|
|
2963 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
2964 | (eval "$ac_link") 2>conftest.er1 |
|
|
2965 | ac_status=$? |
|
|
2966 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
2967 | rm -f conftest.er1 |
|
|
2968 | cat conftest.err >&5 |
|
|
2969 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
2970 | (exit $ac_status); } && { |
|
|
2971 | test -z "$ac_c_werror_flag" || |
|
|
2972 | test ! -s conftest.err |
|
|
2973 | } && test -s conftest$ac_exeext && |
|
|
2974 | $as_test_x conftest$ac_exeext; then |
|
|
2975 | ac_cv_sendfile=yes |
4379 | ac_cv_sendfile=yes |
2976 | else |
4380 | else $as_nop |
2977 | echo "$as_me: failed program was:" >&5 |
|
|
2978 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
2979 | |
|
|
2980 | ac_cv_sendfile=no |
4381 | ac_cv_sendfile=no |
2981 | fi |
4382 | fi |
2982 | |
|
|
2983 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
4383 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
2984 | conftest$ac_exeext conftest.$ac_ext |
4384 | conftest$ac_exeext conftest.$ac_ext |
2985 | fi |
4385 | fi |
2986 | { echo "$as_me:$LINENO: result: $ac_cv_sendfile" >&5 |
4386 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sendfile" >&5 |
2987 | echo "${ECHO_T}$ac_cv_sendfile" >&6; } |
4387 | printf "%s\n" "$ac_cv_sendfile" >&6; } |
2988 | test $ac_cv_sendfile = yes && |
4388 | test $ac_cv_sendfile = yes && |
2989 | cat >>confdefs.h <<\_ACEOF |
4389 | printf "%s\n" "#define HAVE_SENDFILE 1" >>confdefs.h |
2990 | #define HAVE_SENDFILE 1 |
|
|
2991 | _ACEOF |
|
|
2992 | |
4390 | |
2993 | |
4391 | |
|
|
4392 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sync_file_range" >&5 |
|
|
4393 | printf %s "checking for sync_file_range... " >&6; } |
|
|
4394 | if test ${ac_cv_sync_file_range+y} |
|
|
4395 | then : |
|
|
4396 | printf %s "(cached) " >&6 |
|
|
4397 | else $as_nop |
|
|
4398 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
4399 | /* end confdefs.h. */ |
|
|
4400 | |
|
|
4401 | #include <sys/types.h> |
|
|
4402 | #include <fcntl.h> |
|
|
4403 | int main (void) |
|
|
4404 | { |
|
|
4405 | int fd = 0; |
|
|
4406 | off64_t offset = 1; |
|
|
4407 | off64_t nbytes = 1; |
|
|
4408 | unsigned int flags = SYNC_FILE_RANGE_WAIT_BEFORE|SYNC_FILE_RANGE_WRITE|SYNC_FILE_RANGE_WAIT_AFTER; |
|
|
4409 | ssize_t res; |
|
|
4410 | res = sync_file_range (fd, offset, nbytes, flags); |
|
|
4411 | return 0; |
|
|
4412 | } |
|
|
4413 | |
|
|
4414 | _ACEOF |
|
|
4415 | if ac_fn_c_try_link "$LINENO" |
|
|
4416 | then : |
|
|
4417 | ac_cv_sync_file_range=yes |
|
|
4418 | else $as_nop |
|
|
4419 | ac_cv_sync_file_range=no |
|
|
4420 | fi |
|
|
4421 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
|
|
4422 | conftest$ac_exeext conftest.$ac_ext |
|
|
4423 | fi |
|
|
4424 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sync_file_range" >&5 |
|
|
4425 | printf "%s\n" "$ac_cv_sync_file_range" >&6; } |
|
|
4426 | test $ac_cv_sync_file_range = yes && |
|
|
4427 | printf "%s\n" "#define HAVE_SYNC_FILE_RANGE 1" >>confdefs.h |
|
|
4428 | |
|
|
4429 | |
|
|
4430 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for copy_file_range" >&5 |
|
|
4431 | printf %s "checking for copy_file_range... " >&6; } |
|
|
4432 | if test ${ac_cv_copy_file_range+y} |
|
|
4433 | then : |
|
|
4434 | printf %s "(cached) " >&6 |
|
|
4435 | else $as_nop |
|
|
4436 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
4437 | /* end confdefs.h. */ |
|
|
4438 | |
|
|
4439 | #include <unistd.h> |
|
|
4440 | int main (void) |
|
|
4441 | { |
|
|
4442 | off64_t o1, o2; |
|
|
4443 | int res = copy_file_range (0, &o1, 1, &o2, 99, 0); |
|
|
4444 | return 0; |
|
|
4445 | } |
|
|
4446 | |
|
|
4447 | _ACEOF |
|
|
4448 | if ac_fn_c_try_link "$LINENO" |
|
|
4449 | then : |
|
|
4450 | ac_cv_copy_file_range=yes |
|
|
4451 | else $as_nop |
|
|
4452 | ac_cv_copy_file_range=no |
|
|
4453 | fi |
|
|
4454 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
|
|
4455 | conftest$ac_exeext conftest.$ac_ext |
|
|
4456 | fi |
|
|
4457 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_copy_file_range" >&5 |
|
|
4458 | printf "%s\n" "$ac_cv_copy_file_range" >&6; } |
|
|
4459 | test $ac_cv_copy_file_range = yes && |
|
|
4460 | printf "%s\n" "#define HAVE_COPY_FILE_RANGE 1" >>confdefs.h |
|
|
4461 | |
|
|
4462 | |
|
|
4463 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fallocate" >&5 |
|
|
4464 | printf %s "checking for fallocate... " >&6; } |
|
|
4465 | if test ${ac_cv_linux_fallocate+y} |
|
|
4466 | then : |
|
|
4467 | printf %s "(cached) " >&6 |
|
|
4468 | else $as_nop |
|
|
4469 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
4470 | /* end confdefs.h. */ |
|
|
4471 | |
|
|
4472 | #include <fcntl.h> |
|
|
4473 | int main (void) |
|
|
4474 | { |
|
|
4475 | int fd = 0; |
|
|
4476 | int mode = 0; |
|
|
4477 | off_t offset = 1; |
|
|
4478 | off_t len = 1; |
|
|
4479 | int res; |
|
|
4480 | res = fallocate (fd, mode, offset, len); |
|
|
4481 | return 0; |
|
|
4482 | } |
|
|
4483 | |
|
|
4484 | _ACEOF |
|
|
4485 | if ac_fn_c_try_link "$LINENO" |
|
|
4486 | then : |
|
|
4487 | ac_cv_linux_fallocate=yes |
|
|
4488 | else $as_nop |
|
|
4489 | ac_cv_linux_fallocate=no |
|
|
4490 | fi |
|
|
4491 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
|
|
4492 | conftest$ac_exeext conftest.$ac_ext |
|
|
4493 | fi |
|
|
4494 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_linux_fallocate" >&5 |
|
|
4495 | printf "%s\n" "$ac_cv_linux_fallocate" >&6; } |
|
|
4496 | test $ac_cv_linux_fallocate = yes && |
|
|
4497 | printf "%s\n" "#define HAVE_LINUX_FALLOCATE 1" >>confdefs.h |
|
|
4498 | |
|
|
4499 | |
|
|
4500 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sys_syncfs" >&5 |
|
|
4501 | printf %s "checking for sys_syncfs... " >&6; } |
|
|
4502 | if test ${ac_cv_sys_syncfs+y} |
|
|
4503 | then : |
|
|
4504 | printf %s "(cached) " >&6 |
|
|
4505 | else $as_nop |
|
|
4506 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
4507 | /* end confdefs.h. */ |
|
|
4508 | |
|
|
4509 | #include <unistd.h> |
|
|
4510 | #include <sys/syscall.h> |
|
|
4511 | int main (void) |
|
|
4512 | { |
|
|
4513 | int res = syscall (__NR_syncfs, (int)0); |
|
|
4514 | } |
|
|
4515 | |
|
|
4516 | _ACEOF |
|
|
4517 | if ac_fn_c_try_link "$LINENO" |
|
|
4518 | then : |
|
|
4519 | ac_cv_sys_syncfs=yes |
|
|
4520 | else $as_nop |
|
|
4521 | ac_cv_sys_syncfs=no |
|
|
4522 | fi |
|
|
4523 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
|
|
4524 | conftest$ac_exeext conftest.$ac_ext |
|
|
4525 | fi |
|
|
4526 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_syncfs" >&5 |
|
|
4527 | printf "%s\n" "$ac_cv_sys_syncfs" >&6; } |
|
|
4528 | test $ac_cv_sys_syncfs = yes && |
|
|
4529 | printf "%s\n" "#define HAVE_SYS_SYNCFS 1" >>confdefs.h |
|
|
4530 | |
|
|
4531 | |
|
|
4532 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for prctl_set_name" >&5 |
|
|
4533 | printf %s "checking for prctl_set_name... " >&6; } |
|
|
4534 | if test ${ac_cv_prctl_set_name+y} |
|
|
4535 | then : |
|
|
4536 | printf %s "(cached) " >&6 |
|
|
4537 | else $as_nop |
|
|
4538 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
4539 | /* end confdefs.h. */ |
|
|
4540 | |
|
|
4541 | #include <sys/prctl.h> |
|
|
4542 | int main (void) |
|
|
4543 | { |
|
|
4544 | char *name = "test123"; |
|
|
4545 | int res = prctl (PR_SET_NAME, (unsigned long)name, 0, 0, 0); |
|
|
4546 | } |
|
|
4547 | |
|
|
4548 | _ACEOF |
|
|
4549 | if ac_fn_c_try_link "$LINENO" |
|
|
4550 | then : |
|
|
4551 | ac_cv_prctl_set_name=yes |
|
|
4552 | else $as_nop |
|
|
4553 | ac_cv_prctl_set_name=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_prctl_set_name" >&5 |
|
|
4559 | printf "%s\n" "$ac_cv_prctl_set_name" >&6; } |
|
|
4560 | test $ac_cv_prctl_set_name = yes && |
|
|
4561 | printf "%s\n" "#define HAVE_PRCTL_SET_NAME 1" >>confdefs.h |
|
|
4562 | |
|
|
4563 | |
|
|
4564 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for posix_close" >&5 |
|
|
4565 | printf %s "checking for posix_close... " >&6; } |
|
|
4566 | if test ${ac_cv_posix_close+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 | int res; |
|
|
4575 | int main (void) |
|
|
4576 | { |
|
|
4577 | res = posix_close (0, 0); /* we do not need any flags */ |
|
|
4578 | return 0; |
|
|
4579 | } |
|
|
4580 | |
|
|
4581 | _ACEOF |
|
|
4582 | if ac_fn_c_try_link "$LINENO" |
|
|
4583 | then : |
|
|
4584 | ac_cv_posix_close=yes |
|
|
4585 | else $as_nop |
|
|
4586 | ac_cv_posix_close=no |
|
|
4587 | fi |
|
|
4588 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
|
|
4589 | conftest$ac_exeext conftest.$ac_ext |
|
|
4590 | fi |
|
|
4591 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_posix_close" >&5 |
|
|
4592 | printf "%s\n" "$ac_cv_posix_close" >&6; } |
|
|
4593 | test $ac_cv_posix_close = yes && |
|
|
4594 | printf "%s\n" "#define HAVE_POSIX_CLOSE 1" >>confdefs.h |
|
|
4595 | |
|
|
4596 | |
|
|
4597 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for renameat2" >&5 |
|
|
4598 | printf %s "checking for renameat2... " >&6; } |
|
|
4599 | if test ${ac_cv_renameat2+y} |
|
|
4600 | then : |
|
|
4601 | printf %s "(cached) " >&6 |
|
|
4602 | else $as_nop |
|
|
4603 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
4604 | /* end confdefs.h. */ |
|
|
4605 | |
|
|
4606 | #include <unistd.h> |
|
|
4607 | #include <sys/syscall.h> |
|
|
4608 | #include <linux/fs.h> |
|
|
4609 | int res; |
|
|
4610 | int main (void) |
|
|
4611 | { |
|
|
4612 | res = syscall (SYS_renameat2, 0, 0, 0, 0, RENAME_EXCHANGE | RENAME_NOREPLACE); |
|
|
4613 | return 0; |
|
|
4614 | } |
|
|
4615 | |
|
|
4616 | _ACEOF |
|
|
4617 | if ac_fn_c_try_link "$LINENO" |
|
|
4618 | then : |
|
|
4619 | ac_cv_renameat2=yes |
|
|
4620 | else $as_nop |
|
|
4621 | ac_cv_renameat2=no |
|
|
4622 | fi |
|
|
4623 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
|
|
4624 | conftest$ac_exeext conftest.$ac_ext |
|
|
4625 | fi |
|
|
4626 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_renameat2" >&5 |
|
|
4627 | printf "%s\n" "$ac_cv_renameat2" >&6; } |
|
|
4628 | test $ac_cv_renameat2 = yes && |
|
|
4629 | printf "%s\n" "#define HAVE_RENAMEAT2 1" >>confdefs.h |
|
|
4630 | |
|
|
4631 | |
|
|
4632 | |
|
|
4633 | |
|
|
4634 | # for these to work, you need to run autoheader in IO::AIO, not libeio :( |
|
|
4635 | |
|
|
4636 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for set/getrlimit" >&5 |
|
|
4637 | printf %s "checking for set/getrlimit... " >&6; } |
|
|
4638 | if test ${ac_cv_rlimits+y} |
|
|
4639 | then : |
|
|
4640 | printf %s "(cached) " >&6 |
|
|
4641 | else $as_nop |
|
|
4642 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
4643 | /* end confdefs.h. */ |
|
|
4644 | |
|
|
4645 | #include <sys/time.h> |
|
|
4646 | #include <sys/resource.h> |
|
|
4647 | int main (void) |
|
|
4648 | { |
|
|
4649 | struct rlimit srl; |
|
|
4650 | int res; |
|
|
4651 | srl.rlim_cur = srl.rlim_max = RLIM_INFINITY; |
|
|
4652 | res = getrlimit (RLIMIT_NOFILE, &srl); |
|
|
4653 | res = setrlimit (RLIMIT_NOFILE, &srl); |
|
|
4654 | return 0; |
|
|
4655 | } |
|
|
4656 | |
|
|
4657 | _ACEOF |
|
|
4658 | if ac_fn_c_try_link "$LINENO" |
|
|
4659 | then : |
|
|
4660 | ac_cv_rlimits=yes |
|
|
4661 | else $as_nop |
|
|
4662 | ac_cv_rlimits=no |
|
|
4663 | fi |
|
|
4664 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
|
|
4665 | conftest$ac_exeext conftest.$ac_ext |
|
|
4666 | fi |
|
|
4667 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_rlimits" >&5 |
|
|
4668 | printf "%s\n" "$ac_cv_rlimits" >&6; } |
|
|
4669 | test $ac_cv_rlimits = yes && |
|
|
4670 | printf "%s\n" "#define HAVE_RLIMITS 1" >>confdefs.h |
|
|
4671 | |
|
|
4672 | |
|
|
4673 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for posix_madvise" >&5 |
|
|
4674 | printf %s "checking for posix_madvise... " >&6; } |
|
|
4675 | if test ${ac_cv_posix_madvise+y} |
|
|
4676 | then : |
|
|
4677 | printf %s "(cached) " >&6 |
|
|
4678 | else $as_nop |
|
|
4679 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
4680 | /* end confdefs.h. */ |
|
|
4681 | |
|
|
4682 | #include <sys/mman.h> |
|
|
4683 | int main (void) |
|
|
4684 | { |
|
|
4685 | int res = posix_madvise ((void *)0, (size_t)0, POSIX_MADV_NORMAL); |
|
|
4686 | int a = POSIX_MADV_SEQUENTIAL; |
|
|
4687 | int b = POSIX_MADV_RANDOM; |
|
|
4688 | int c = POSIX_MADV_WILLNEED; |
|
|
4689 | int d = POSIX_MADV_DONTNEED; |
|
|
4690 | return 0; |
|
|
4691 | } |
|
|
4692 | |
|
|
4693 | _ACEOF |
|
|
4694 | if ac_fn_c_try_link "$LINENO" |
|
|
4695 | then : |
|
|
4696 | ac_cv_posix_madvise=yes |
|
|
4697 | else $as_nop |
|
|
4698 | ac_cv_posix_madvise=no |
|
|
4699 | fi |
|
|
4700 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
|
|
4701 | conftest$ac_exeext conftest.$ac_ext |
|
|
4702 | fi |
|
|
4703 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_posix_madvise" >&5 |
|
|
4704 | printf "%s\n" "$ac_cv_posix_madvise" >&6; } |
|
|
4705 | test $ac_cv_posix_madvise = yes && |
|
|
4706 | printf "%s\n" "#define HAVE_POSIX_MADVISE 1" >>confdefs.h |
|
|
4707 | |
|
|
4708 | |
|
|
4709 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for posix_fadvise" >&5 |
|
|
4710 | printf %s "checking for posix_fadvise... " >&6; } |
|
|
4711 | if test ${ac_cv_posix_fadvise+y} |
|
|
4712 | then : |
|
|
4713 | printf %s "(cached) " >&6 |
|
|
4714 | else $as_nop |
|
|
4715 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
4716 | /* end confdefs.h. */ |
|
|
4717 | |
|
|
4718 | #define _XOPEN_SOURCE 600 |
|
|
4719 | #include <fcntl.h> |
|
|
4720 | int main (void) |
|
|
4721 | { |
|
|
4722 | int res = posix_fadvise ((int)0, (off_t)0, (off_t)0, POSIX_FADV_NORMAL); |
|
|
4723 | int a = POSIX_FADV_SEQUENTIAL; |
|
|
4724 | int b = POSIX_FADV_NOREUSE; |
|
|
4725 | int c = POSIX_FADV_RANDOM; |
|
|
4726 | int d = POSIX_FADV_WILLNEED; |
|
|
4727 | int e = POSIX_FADV_DONTNEED; |
|
|
4728 | return 0; |
|
|
4729 | } |
|
|
4730 | |
|
|
4731 | _ACEOF |
|
|
4732 | if ac_fn_c_try_link "$LINENO" |
|
|
4733 | then : |
|
|
4734 | ac_cv_posix_fadvise=yes |
|
|
4735 | else $as_nop |
|
|
4736 | ac_cv_posix_fadvise=no |
|
|
4737 | fi |
|
|
4738 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
|
|
4739 | conftest$ac_exeext conftest.$ac_ext |
|
|
4740 | fi |
|
|
4741 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_posix_fadvise" >&5 |
|
|
4742 | printf "%s\n" "$ac_cv_posix_fadvise" >&6; } |
|
|
4743 | test $ac_cv_posix_fadvise = yes && |
|
|
4744 | printf "%s\n" "#define HAVE_POSIX_FADVISE 1" >>confdefs.h |
|
|
4745 | |
|
|
4746 | |
|
|
4747 | ac_fn_c_check_header_compile "$LINENO" "linux/fs.h" "ac_cv_header_linux_fs_h" "$ac_includes_default" |
|
|
4748 | if test "x$ac_cv_header_linux_fs_h" = xyes |
|
|
4749 | then : |
|
|
4750 | printf "%s\n" "#define HAVE_LINUX_FS_H 1" >>confdefs.h |
|
|
4751 | |
|
|
4752 | fi |
|
|
4753 | ac_fn_c_check_header_compile "$LINENO" "linux/fiemap.h" "ac_cv_header_linux_fiemap_h" "$ac_includes_default" |
|
|
4754 | if test "x$ac_cv_header_linux_fiemap_h" = xyes |
|
|
4755 | then : |
|
|
4756 | printf "%s\n" "#define HAVE_LINUX_FIEMAP_H 1" >>confdefs.h |
|
|
4757 | |
|
|
4758 | fi |
|
|
4759 | |
|
|
4760 | |
|
|
4761 | ac_fn_c_check_header_compile "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default" |
|
|
4762 | if test "x$ac_cv_header_sys_sysmacros_h" = xyes |
|
|
4763 | then : |
|
|
4764 | printf "%s\n" "#define HAVE_SYS_SYSMACROS_H 1" >>confdefs.h |
|
|
4765 | |
|
|
4766 | fi |
|
|
4767 | |
|
|
4768 | |
|
|
4769 | ac_fn_c_check_header_compile "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default" |
|
|
4770 | if test "x$ac_cv_header_sys_mkdev_h" = xyes |
|
|
4771 | then : |
|
|
4772 | printf "%s\n" "#define HAVE_SYS_MKDEV_H 1" >>confdefs.h |
|
|
4773 | |
|
|
4774 | fi |
|
|
4775 | |
|
|
4776 | |
|
|
4777 | ac_fn_c_check_header_compile "$LINENO" "sys/uio.h" "ac_cv_header_sys_uio_h" "$ac_includes_default" |
|
|
4778 | if test "x$ac_cv_header_sys_uio_h" = xyes |
|
|
4779 | then : |
|
|
4780 | printf "%s\n" "#define HAVE_SYS_UIO_H 1" >>confdefs.h |
|
|
4781 | |
|
|
4782 | fi |
|
|
4783 | |
|
|
4784 | |
|
|
4785 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fexecve" >&5 |
|
|
4786 | printf %s "checking for fexecve... " >&6; } |
|
|
4787 | if test ${ac_cv_fexecve+y} |
|
|
4788 | then : |
|
|
4789 | printf %s "(cached) " >&6 |
|
|
4790 | else $as_nop |
|
|
4791 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
4792 | /* end confdefs.h. */ |
|
|
4793 | |
|
|
4794 | #include <fcntl.h> |
|
|
4795 | #include <unistd.h> |
|
|
4796 | int main (void) |
|
|
4797 | { |
|
|
4798 | char *const argv[] = { "foo", "bar", 0 }; |
|
|
4799 | int res = fexecve (-1, argv, 0); |
|
|
4800 | return 0; |
|
|
4801 | } |
|
|
4802 | |
|
|
4803 | _ACEOF |
|
|
4804 | if ac_fn_c_try_link "$LINENO" |
|
|
4805 | then : |
|
|
4806 | ac_cv_fexecve=yes |
|
|
4807 | else $as_nop |
|
|
4808 | ac_cv_fexecve=no |
|
|
4809 | fi |
|
|
4810 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
|
|
4811 | conftest$ac_exeext conftest.$ac_ext |
|
|
4812 | fi |
|
|
4813 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fexecve" >&5 |
|
|
4814 | printf "%s\n" "$ac_cv_fexecve" >&6; } |
|
|
4815 | test $ac_cv_fexecve = yes && |
|
|
4816 | printf "%s\n" "#define HAVE_FEXECVE 1" >>confdefs.h |
|
|
4817 | |
|
|
4818 | |
|
|
4819 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for siginfo_t" >&5 |
|
|
4820 | printf %s "checking for siginfo_t... " >&6; } |
|
|
4821 | if test ${ac_cv_siginfo_t+y} |
|
|
4822 | then : |
|
|
4823 | printf %s "(cached) " >&6 |
|
|
4824 | else $as_nop |
|
|
4825 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
4826 | /* end confdefs.h. */ |
|
|
4827 | |
|
|
4828 | #include <signal.h> |
|
|
4829 | int main (void) |
|
|
4830 | { |
|
|
4831 | siginfo_t si; |
|
|
4832 | si.si_code; |
|
|
4833 | si.si_pid; |
|
|
4834 | si.si_uid; |
|
|
4835 | si.si_value.sival_int; |
|
|
4836 | si.si_value.sival_ptr; |
|
|
4837 | return 0; |
|
|
4838 | } |
|
|
4839 | |
|
|
4840 | _ACEOF |
|
|
4841 | if ac_fn_c_try_link "$LINENO" |
|
|
4842 | then : |
|
|
4843 | ac_cv_siginfo_t=yes |
|
|
4844 | else $as_nop |
|
|
4845 | ac_cv_siginfo_t=no |
|
|
4846 | fi |
|
|
4847 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
|
|
4848 | conftest$ac_exeext conftest.$ac_ext |
|
|
4849 | fi |
|
|
4850 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_siginfo_t" >&5 |
|
|
4851 | printf "%s\n" "$ac_cv_siginfo_t" >&6; } |
|
|
4852 | test $ac_cv_siginfo_t = yes && |
|
|
4853 | printf "%s\n" "#define HAVE_SIGINFO_T 1" >>confdefs.h |
|
|
4854 | |
|
|
4855 | |
|
|
4856 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for unix-style syscall interface" >&5 |
|
|
4857 | printf %s "checking for unix-style syscall interface... " >&6; } |
|
|
4858 | if test ${ac_cv_syscall+y} |
|
|
4859 | then : |
|
|
4860 | printf %s "(cached) " >&6 |
|
|
4861 | else $as_nop |
|
|
4862 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
4863 | /* end confdefs.h. */ |
|
|
4864 | |
|
|
4865 | #include <unistd.h> |
|
|
4866 | #include <sys/syscall.h> |
|
|
4867 | int main (void) |
|
|
4868 | { |
|
|
4869 | long res = syscall (SYS_exit, 0); |
|
|
4870 | return 0; |
|
|
4871 | } |
|
|
4872 | |
|
|
4873 | _ACEOF |
|
|
4874 | if ac_fn_c_try_link "$LINENO" |
|
|
4875 | then : |
|
|
4876 | ac_cv_syscall=yes |
|
|
4877 | else $as_nop |
|
|
4878 | ac_cv_syscall=no |
|
|
4879 | fi |
|
|
4880 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
|
|
4881 | conftest$ac_exeext conftest.$ac_ext |
|
|
4882 | fi |
|
|
4883 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_syscall" >&5 |
|
|
4884 | printf "%s\n" "$ac_cv_syscall" >&6; } |
|
|
4885 | test $ac_cv_syscall = yes && |
|
|
4886 | printf "%s\n" "#define HAVE_SYSCALL 1" >>confdefs.h |
|
|
4887 | |
|
|
4888 | |
|
|
4889 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for splice, vmsplice and tee" >&5 |
|
|
4890 | printf %s "checking for splice, vmsplice and tee... " >&6; } |
|
|
4891 | if test ${ac_cv_linux_splice+y} |
|
|
4892 | then : |
|
|
4893 | printf %s "(cached) " >&6 |
|
|
4894 | else $as_nop |
|
|
4895 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
4896 | /* end confdefs.h. */ |
|
|
4897 | |
|
|
4898 | #include <sys/types.h> |
|
|
4899 | #include <fcntl.h> |
|
|
4900 | #include <sys/uio.h> |
|
|
4901 | int main (void) |
|
|
4902 | { |
|
|
4903 | ssize_t res; |
|
|
4904 | res = splice ((int)0, (loff_t)0, (int)0, (loff_t *)0, (size_t)0, SPLICE_F_MOVE | SPLICE_F_NONBLOCK | SPLICE_F_MORE); |
|
|
4905 | res = tee ((int)0, (int)0, (size_t)0, SPLICE_F_NONBLOCK); |
|
|
4906 | res = vmsplice ((int)0, (struct iovec *)0, 0, SPLICE_F_NONBLOCK | SPLICE_F_GIFT); |
|
|
4907 | return 0; |
|
|
4908 | } |
|
|
4909 | |
|
|
4910 | _ACEOF |
|
|
4911 | if ac_fn_c_try_link "$LINENO" |
|
|
4912 | then : |
|
|
4913 | ac_cv_linux_splice=yes |
|
|
4914 | else $as_nop |
|
|
4915 | ac_cv_linux_splice=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_linux_splice" >&5 |
|
|
4921 | printf "%s\n" "$ac_cv_linux_splice" >&6; } |
|
|
4922 | test $ac_cv_linux_splice = yes && |
|
|
4923 | printf "%s\n" "#define HAVE_LINUX_SPLICE 1" >>confdefs.h |
|
|
4924 | |
|
|
4925 | |
|
|
4926 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pipe2" >&5 |
|
|
4927 | printf %s "checking for pipe2... " >&6; } |
|
|
4928 | if test ${ac_cv_pipe2+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 <fcntl.h> |
|
|
4936 | #include <unistd.h> |
|
|
4937 | int main (void) |
|
|
4938 | { |
|
|
4939 | int res; |
|
|
4940 | res = pipe2 (0, 0); |
|
|
4941 | return 0; |
|
|
4942 | } |
|
|
4943 | |
|
|
4944 | _ACEOF |
|
|
4945 | if ac_fn_c_try_link "$LINENO" |
|
|
4946 | then : |
|
|
4947 | ac_cv_pipe2=yes |
|
|
4948 | else $as_nop |
|
|
4949 | ac_cv_pipe2=no |
|
|
4950 | fi |
|
|
4951 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
|
|
4952 | conftest$ac_exeext conftest.$ac_ext |
|
|
4953 | fi |
|
|
4954 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pipe2" >&5 |
|
|
4955 | printf "%s\n" "$ac_cv_pipe2" >&6; } |
|
|
4956 | test $ac_cv_pipe2 = yes && |
|
|
4957 | printf "%s\n" "#define HAVE_PIPE2 1" >>confdefs.h |
|
|
4958 | |
|
|
4959 | |
|
|
4960 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for eventfd" >&5 |
|
|
4961 | printf %s "checking for eventfd... " >&6; } |
|
|
4962 | if test ${ac_cv_eventfd+y} |
|
|
4963 | then : |
|
|
4964 | printf %s "(cached) " >&6 |
|
|
4965 | else $as_nop |
|
|
4966 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
4967 | /* end confdefs.h. */ |
|
|
4968 | |
|
|
4969 | #include <sys/eventfd.h> |
|
|
4970 | int main (void) |
|
|
4971 | { |
|
|
4972 | int res; |
|
|
4973 | res = eventfd (1, EFD_CLOEXEC | EFD_NONBLOCK); |
|
|
4974 | return 0; |
|
|
4975 | } |
|
|
4976 | |
|
|
4977 | _ACEOF |
|
|
4978 | if ac_fn_c_try_link "$LINENO" |
|
|
4979 | then : |
|
|
4980 | ac_cv_eventfd=yes |
|
|
4981 | else $as_nop |
|
|
4982 | ac_cv_eventfd=no |
|
|
4983 | fi |
|
|
4984 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
|
|
4985 | conftest$ac_exeext conftest.$ac_ext |
|
|
4986 | fi |
|
|
4987 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_eventfd" >&5 |
|
|
4988 | printf "%s\n" "$ac_cv_eventfd" >&6; } |
|
|
4989 | test $ac_cv_eventfd = yes && |
|
|
4990 | printf "%s\n" "#define HAVE_EVENTFD 1" >>confdefs.h |
|
|
4991 | |
|
|
4992 | |
|
|
4993 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for timerfd_*" >&5 |
|
|
4994 | printf %s "checking for timerfd_*... " >&6; } |
|
|
4995 | if test ${ac_cv_timerfd+y} |
|
|
4996 | then : |
|
|
4997 | printf %s "(cached) " >&6 |
|
|
4998 | else $as_nop |
|
|
4999 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
5000 | /* end confdefs.h. */ |
|
|
5001 | |
|
|
5002 | #include <sys/timerfd.h> |
|
|
5003 | int main (void) |
|
|
5004 | { |
|
|
5005 | struct itimerspec its; |
|
|
5006 | int res; |
|
|
5007 | res = timerfd_create (CLOCK_REALTIME, TFD_CLOEXEC | TFD_NONBLOCK); |
|
|
5008 | res = timerfd_settime (res, TFD_TIMER_ABSTIME /*| TFD_TIMER_CANCEL_ON_SET*/, &its, 0); |
|
|
5009 | res = timerfd_gettime (res, &its); |
|
|
5010 | return 0; |
|
|
5011 | } |
|
|
5012 | |
|
|
5013 | _ACEOF |
|
|
5014 | if ac_fn_c_try_link "$LINENO" |
|
|
5015 | then : |
|
|
5016 | ac_cv_timerfd=yes |
|
|
5017 | else $as_nop |
|
|
5018 | ac_cv_timerfd=no |
|
|
5019 | fi |
|
|
5020 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
|
|
5021 | conftest$ac_exeext conftest.$ac_ext |
|
|
5022 | fi |
|
|
5023 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_timerfd" >&5 |
|
|
5024 | printf "%s\n" "$ac_cv_timerfd" >&6; } |
|
|
5025 | test $ac_cv_timerfd = yes && |
|
|
5026 | printf "%s\n" "#define HAVE_TIMERFD 1" >>confdefs.h |
|
|
5027 | |
|
|
5028 | |
|
|
5029 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for memfd_create" >&5 |
|
|
5030 | printf %s "checking for memfd_create... " >&6; } |
|
|
5031 | if test ${ac_cv_memfd_create+y} |
|
|
5032 | then : |
|
|
5033 | printf %s "(cached) " >&6 |
|
|
5034 | else $as_nop |
|
|
5035 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
5036 | /* end confdefs.h. */ |
|
|
5037 | |
|
|
5038 | #include <sys/mman.h> |
|
|
5039 | int main (void) |
|
|
5040 | { |
|
|
5041 | int res = memfd_create ("name", MFD_CLOEXEC | MFD_ALLOW_SEALING); |
|
|
5042 | return 0; |
|
|
5043 | } |
|
|
5044 | |
|
|
5045 | _ACEOF |
|
|
5046 | if ac_fn_c_try_link "$LINENO" |
|
|
5047 | then : |
|
|
5048 | ac_cv_memfd_create=yes |
|
|
5049 | else $as_nop |
|
|
5050 | ac_cv_memfd_create=no |
|
|
5051 | fi |
|
|
5052 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
|
|
5053 | conftest$ac_exeext conftest.$ac_ext |
|
|
5054 | fi |
|
|
5055 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_memfd_create" >&5 |
|
|
5056 | printf "%s\n" "$ac_cv_memfd_create" >&6; } |
|
|
5057 | test $ac_cv_memfd_create = yes && |
|
|
5058 | printf "%s\n" "#define HAVE_MEMFD_CREATE 1" >>confdefs.h |
|
|
5059 | |
|
|
5060 | |
|
|
5061 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for st_xtimensec" >&5 |
|
|
5062 | printf %s "checking for st_xtimensec... " >&6; } |
|
|
5063 | if test ${ac_cv_xtimensec+y} |
|
|
5064 | then : |
|
|
5065 | printf %s "(cached) " >&6 |
|
|
5066 | else $as_nop |
|
|
5067 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
5068 | /* end confdefs.h. */ |
|
|
5069 | |
|
|
5070 | #include "EXTERN.h" |
|
|
5071 | #include "perl.h" |
|
|
5072 | #include "XSUB.h" |
|
|
5073 | |
|
|
5074 | int main (void) |
|
|
5075 | { |
|
|
5076 | return PL_statcache.st_atimensec |
|
|
5077 | + PL_statcache.st_mtimensec |
|
|
5078 | + PL_statcache.st_ctimensec; |
|
|
5079 | } |
|
|
5080 | |
|
|
5081 | _ACEOF |
|
|
5082 | if ac_fn_c_try_compile "$LINENO" |
|
|
5083 | then : |
|
|
5084 | ac_cv_xtimensec=yes |
|
|
5085 | else $as_nop |
|
|
5086 | ac_cv_xtimensec=no |
|
|
5087 | fi |
|
|
5088 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
|
|
5089 | fi |
|
|
5090 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_xtimensec" >&5 |
|
|
5091 | printf "%s\n" "$ac_cv_xtimensec" >&6; } |
|
|
5092 | test $ac_cv_xtimensec = yes && |
|
|
5093 | printf "%s\n" "#define HAVE_ST_XTIMENSEC 1" >>confdefs.h |
|
|
5094 | |
|
|
5095 | |
|
|
5096 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for st_xtimespec" >&5 |
|
|
5097 | printf %s "checking for st_xtimespec... " >&6; } |
|
|
5098 | if test ${ac_cv_xtimespec+y} |
|
|
5099 | then : |
|
|
5100 | printf %s "(cached) " >&6 |
|
|
5101 | else $as_nop |
|
|
5102 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
5103 | /* end confdefs.h. */ |
|
|
5104 | |
|
|
5105 | #include "EXTERN.h" |
|
|
5106 | #include "perl.h" |
|
|
5107 | #include "XSUB.h" |
|
|
5108 | |
|
|
5109 | int main (void) |
|
|
5110 | { |
|
|
5111 | return PL_statcache.st_atim.tv_nsec |
|
|
5112 | + PL_statcache.st_mtim.tv_nsec |
|
|
5113 | + PL_statcache.st_ctim.tv_nsec; |
|
|
5114 | } |
|
|
5115 | |
|
|
5116 | _ACEOF |
|
|
5117 | if ac_fn_c_try_compile "$LINENO" |
|
|
5118 | then : |
|
|
5119 | ac_cv_xtimespec=yes |
|
|
5120 | else $as_nop |
|
|
5121 | ac_cv_xtimespec=no |
|
|
5122 | fi |
|
|
5123 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
|
|
5124 | fi |
|
|
5125 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_xtimespec" >&5 |
|
|
5126 | printf "%s\n" "$ac_cv_xtimespec" >&6; } |
|
|
5127 | test $ac_cv_xtimespec = yes && |
|
|
5128 | printf "%s\n" "#define HAVE_ST_XTIMESPEC 1" >>confdefs.h |
|
|
5129 | |
|
|
5130 | |
|
|
5131 | # apparently, True64 uses st_u[amc]time, aix uses at_[amc]time_n and apple uses st_[amc,birth]timespec? |
|
|
5132 | |
|
|
5133 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for st_birthtimensec" >&5 |
|
|
5134 | printf %s "checking for st_birthtimensec... " >&6; } |
|
|
5135 | if test ${ac_cv_birthtimensec+y} |
|
|
5136 | then : |
|
|
5137 | printf %s "(cached) " >&6 |
|
|
5138 | else $as_nop |
|
|
5139 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
5140 | /* end confdefs.h. */ |
|
|
5141 | |
|
|
5142 | #include "EXTERN.h" |
|
|
5143 | #include "perl.h" |
|
|
5144 | #include "XSUB.h" |
|
|
5145 | |
|
|
5146 | int main (void) |
|
|
5147 | { |
|
|
5148 | return PL_statcache.st_birthtime + PL_statcache.st_birthtimensec; |
|
|
5149 | } |
|
|
5150 | |
|
|
5151 | _ACEOF |
|
|
5152 | if ac_fn_c_try_compile "$LINENO" |
|
|
5153 | then : |
|
|
5154 | ac_cv_birthtimensec=yes |
|
|
5155 | else $as_nop |
|
|
5156 | ac_cv_birthtimensec=no |
|
|
5157 | fi |
|
|
5158 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
|
|
5159 | fi |
|
|
5160 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_birthtimensec" >&5 |
|
|
5161 | printf "%s\n" "$ac_cv_birthtimensec" >&6; } |
|
|
5162 | test $ac_cv_birthtimensec = yes && |
|
|
5163 | printf "%s\n" "#define HAVE_ST_BIRTHTIMENSEC 1" >>confdefs.h |
|
|
5164 | |
|
|
5165 | |
|
|
5166 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for st_birthtimespec" >&5 |
|
|
5167 | printf %s "checking for st_birthtimespec... " >&6; } |
|
|
5168 | if test ${ac_cv_birthtimespec+y} |
|
|
5169 | then : |
|
|
5170 | printf %s "(cached) " >&6 |
|
|
5171 | else $as_nop |
|
|
5172 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
5173 | /* end confdefs.h. */ |
|
|
5174 | |
|
|
5175 | #include "EXTERN.h" |
|
|
5176 | #include "perl.h" |
|
|
5177 | #include "XSUB.h" |
|
|
5178 | |
|
|
5179 | int main (void) |
|
|
5180 | { |
|
|
5181 | return PL_statcache.st_birthtim.tv_sec + PL_statcache.st_birthtim.tv_nsec; |
|
|
5182 | } |
|
|
5183 | |
|
|
5184 | _ACEOF |
|
|
5185 | if ac_fn_c_try_compile "$LINENO" |
|
|
5186 | then : |
|
|
5187 | ac_cv_birthtimespec=yes |
|
|
5188 | else $as_nop |
|
|
5189 | ac_cv_birthtimespec=no |
|
|
5190 | fi |
|
|
5191 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
|
|
5192 | fi |
|
|
5193 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_birthtimespec" >&5 |
|
|
5194 | printf "%s\n" "$ac_cv_birthtimespec" >&6; } |
|
|
5195 | test $ac_cv_birthtimespec = yes && |
|
|
5196 | printf "%s\n" "#define HAVE_ST_BIRTHTIMESPEC 1" >>confdefs.h |
|
|
5197 | |
|
|
5198 | |
|
|
5199 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for st_gen" >&5 |
|
|
5200 | printf %s "checking for st_gen... " >&6; } |
|
|
5201 | if test ${ac_cv_st_gen+y} |
|
|
5202 | then : |
|
|
5203 | printf %s "(cached) " >&6 |
|
|
5204 | else $as_nop |
|
|
5205 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
5206 | /* end confdefs.h. */ |
|
|
5207 | |
|
|
5208 | #include "EXTERN.h" |
|
|
5209 | #include "perl.h" |
|
|
5210 | #include "XSUB.h" |
|
|
5211 | |
|
|
5212 | int main (void) |
|
|
5213 | { |
|
|
5214 | return PL_statcache.st_gen; |
|
|
5215 | } |
|
|
5216 | |
|
|
5217 | _ACEOF |
|
|
5218 | if ac_fn_c_try_compile "$LINENO" |
|
|
5219 | then : |
|
|
5220 | ac_cv_st_gen=yes |
|
|
5221 | else $as_nop |
|
|
5222 | ac_cv_st_gen=no |
|
|
5223 | fi |
|
|
5224 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
|
|
5225 | fi |
|
|
5226 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_st_gen" >&5 |
|
|
5227 | printf "%s\n" "$ac_cv_st_gen" >&6; } |
|
|
5228 | test $ac_cv_st_gen = yes && |
|
|
5229 | printf "%s\n" "#define HAVE_ST_GEN 1" >>confdefs.h |
|
|
5230 | |
|
|
5231 | |
|
|
5232 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for statx" >&5 |
|
|
5233 | printf %s "checking for statx... " >&6; } |
|
|
5234 | if test ${ac_cv_statx+y} |
|
|
5235 | then : |
|
|
5236 | printf %s "(cached) " >&6 |
|
|
5237 | else $as_nop |
|
|
5238 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
5239 | /* end confdefs.h. */ |
|
|
5240 | |
|
|
5241 | #include <sys/types.h> |
|
|
5242 | #include <sys/stat.h> |
|
|
5243 | #include <unistd.h> |
|
|
5244 | #include <fcntl.h> |
|
|
5245 | int res; |
|
|
5246 | int main (void) |
|
|
5247 | { |
|
|
5248 | struct statx sx; |
|
|
5249 | int res; |
|
|
5250 | res = statx (AT_FDCWD, ".", |
|
|
5251 | AT_EMPTY_PATH | AT_NO_AUTOMOUNT | AT_SYMLINK_NOFOLLOW | AT_STATX_SYNC_AS_STAT | AT_STATX_FORCE_SYNC | AT_STATX_DONT_SYNC, |
|
|
5252 | STATX_ALL, &sx); |
|
|
5253 | STATX_TYPE; STATX_MODE; STATX_NLINK; STATX_UID; STATX_GID; STATX_ATIME; STATX_MTIME; STATX_CTIME; |
|
|
5254 | STATX_INO; STATX_SIZE; STATX_BLOCKS; STATX_BASIC_STATS; STATX_BTIME; STATX_ALL; |
|
|
5255 | STATX_ATTR_COMPRESSED; STATX_ATTR_IMMUTABLE; STATX_ATTR_APPEND; STATX_ATTR_NODUMP; STATX_ATTR_ENCRYPTED; |
|
|
5256 | return 0; |
|
|
5257 | } |
|
|
5258 | |
|
|
5259 | _ACEOF |
|
|
5260 | if ac_fn_c_try_link "$LINENO" |
|
|
5261 | then : |
|
|
5262 | ac_cv_statx=yes |
|
|
5263 | else $as_nop |
|
|
5264 | ac_cv_statx=no |
|
|
5265 | fi |
|
|
5266 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
|
|
5267 | conftest$ac_exeext conftest.$ac_ext |
|
|
5268 | fi |
|
|
5269 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_statx" >&5 |
|
|
5270 | printf "%s\n" "$ac_cv_statx" >&6; } |
|
|
5271 | test $ac_cv_statx = yes && |
|
|
5272 | printf "%s\n" "#define HAVE_STATX 1" >>confdefs.h |
|
|
5273 | |
|
|
5274 | |
|
|
5275 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for accept4" >&5 |
|
|
5276 | printf %s "checking for accept4... " >&6; } |
|
|
5277 | if test ${ac_cv_accept4+y} |
|
|
5278 | then : |
|
|
5279 | printf %s "(cached) " >&6 |
|
|
5280 | else $as_nop |
|
|
5281 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
5282 | /* end confdefs.h. */ |
|
|
5283 | |
|
|
5284 | #include <sys/types.h> |
|
|
5285 | #include <sys/socket.h> |
|
|
5286 | int main (void) |
|
|
5287 | { |
|
|
5288 | int res = accept4 (1, (struct sockaddr *)0, (socklen_t)0, SOCK_NONBLOCK | SOCK_CLOEXEC); |
|
|
5289 | return 0; |
|
|
5290 | } |
|
|
5291 | |
|
|
5292 | _ACEOF |
|
|
5293 | if ac_fn_c_try_link "$LINENO" |
|
|
5294 | then : |
|
|
5295 | ac_cv_accept4=yes |
|
|
5296 | else $as_nop |
|
|
5297 | ac_cv_accept4=no |
|
|
5298 | fi |
|
|
5299 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
|
|
5300 | conftest$ac_exeext conftest.$ac_ext |
|
|
5301 | fi |
|
|
5302 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_accept4" >&5 |
|
|
5303 | printf "%s\n" "$ac_cv_accept4" >&6; } |
|
|
5304 | test $ac_cv_accept4 = yes && |
|
|
5305 | printf "%s\n" "#define HAVE_ACCEPT4 1" >>confdefs.h |
|
|
5306 | |
|
|
5307 | |
|
|
5308 | ac_fn_c_check_header_compile "$LINENO" "sys/mount.h" "ac_cv_header_sys_mount_h" "$ac_includes_default" |
|
|
5309 | if test "x$ac_cv_header_sys_mount_h" = xyes |
|
|
5310 | then : |
|
|
5311 | printf "%s\n" "#define HAVE_SYS_MOUNT_H 1" >>confdefs.h |
|
|
5312 | |
|
|
5313 | fi |
|
|
5314 | |
|
|
5315 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for mount" >&5 |
|
|
5316 | printf %s "checking for mount... " >&6; } |
|
|
5317 | if test ${ac_cv_mount+y} |
|
|
5318 | then : |
|
|
5319 | printf %s "(cached) " >&6 |
|
|
5320 | else $as_nop |
|
|
5321 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
5322 | /* end confdefs.h. */ |
|
|
5323 | |
|
|
5324 | #include <sys/mount.h> |
|
|
5325 | int main (void) |
|
|
5326 | { |
|
|
5327 | int res = mount ("path", "path", "fstype", MS_RDONLY, 0); |
|
|
5328 | return 0; |
|
|
5329 | } |
|
|
5330 | |
|
|
5331 | _ACEOF |
|
|
5332 | if ac_fn_c_try_link "$LINENO" |
|
|
5333 | then : |
|
|
5334 | ac_cv_mount=yes |
|
|
5335 | else $as_nop |
|
|
5336 | ac_cv_mount=no |
|
|
5337 | fi |
|
|
5338 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
|
|
5339 | conftest$ac_exeext conftest.$ac_ext |
|
|
5340 | fi |
|
|
5341 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_mount" >&5 |
|
|
5342 | printf "%s\n" "$ac_cv_mount" >&6; } |
|
|
5343 | test $ac_cv_mount = yes && |
|
|
5344 | printf "%s\n" "#define HAVE_MOUNT 1" >>confdefs.h |
|
|
5345 | |
|
|
5346 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for umount" >&5 |
|
|
5347 | printf %s "checking for umount... " >&6; } |
|
|
5348 | if test ${ac_cv_umount+y} |
|
|
5349 | then : |
|
|
5350 | printf %s "(cached) " >&6 |
|
|
5351 | else $as_nop |
|
|
5352 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
5353 | /* end confdefs.h. */ |
|
|
5354 | |
|
|
5355 | #include <sys/mount.h> |
|
|
5356 | int main (void) |
|
|
5357 | { |
|
|
5358 | int res = umount ("path"); |
|
|
5359 | return 0; |
|
|
5360 | } |
|
|
5361 | |
|
|
5362 | _ACEOF |
|
|
5363 | if ac_fn_c_try_link "$LINENO" |
|
|
5364 | then : |
|
|
5365 | ac_cv_umount=yes |
|
|
5366 | else $as_nop |
|
|
5367 | ac_cv_umount=no |
|
|
5368 | fi |
|
|
5369 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
|
|
5370 | conftest$ac_exeext conftest.$ac_ext |
|
|
5371 | fi |
|
|
5372 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_umount" >&5 |
|
|
5373 | printf "%s\n" "$ac_cv_umount" >&6; } |
|
|
5374 | test $ac_cv_umount = yes && |
|
|
5375 | printf "%s\n" "#define HAVE_UMOUNT 1" >>confdefs.h |
|
|
5376 | |
|
|
5377 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for umount2" >&5 |
|
|
5378 | printf %s "checking for umount2... " >&6; } |
|
|
5379 | if test ${ac_cv_umount2+y} |
|
|
5380 | then : |
|
|
5381 | printf %s "(cached) " >&6 |
|
|
5382 | else $as_nop |
|
|
5383 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
5384 | /* end confdefs.h. */ |
|
|
5385 | |
|
|
5386 | #include <sys/mount.h> |
|
|
5387 | int main (void) |
|
|
5388 | { |
|
|
5389 | int res = umount2 ("path", MNT_FORCE|MNT_DETACH); |
|
|
5390 | return 0; |
|
|
5391 | } |
|
|
5392 | |
|
|
5393 | _ACEOF |
|
|
5394 | if ac_fn_c_try_link "$LINENO" |
|
|
5395 | then : |
|
|
5396 | ac_cv_umount2=yes |
|
|
5397 | else $as_nop |
|
|
5398 | ac_cv_umount2=no |
|
|
5399 | fi |
|
|
5400 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
|
|
5401 | conftest$ac_exeext conftest.$ac_ext |
|
|
5402 | fi |
|
|
5403 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_umount2" >&5 |
|
|
5404 | printf "%s\n" "$ac_cv_umount2" >&6; } |
|
|
5405 | test $ac_cv_umount2 = yes && |
|
|
5406 | printf "%s\n" "#define HAVE_UMOUNT2 1" >>confdefs.h |
2994 | |
5407 | |
2995 | |
5408 | |
2996 | cat >confcache <<\_ACEOF |
5409 | cat >confcache <<\_ACEOF |
2997 | # This file is a shell script that caches the results of configure |
5410 | # This file is a shell script that caches the results of configure |
2998 | # tests run on this system so they can be shared between configure |
5411 | # tests run on this system so they can be shared between configure |
… | |
… | |
3018 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do |
5431 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do |
3019 | eval ac_val=\$$ac_var |
5432 | eval ac_val=\$$ac_var |
3020 | case $ac_val in #( |
5433 | case $ac_val in #( |
3021 | *${as_nl}*) |
5434 | *${as_nl}*) |
3022 | case $ac_var in #( |
5435 | case $ac_var in #( |
3023 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 |
5436 | *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
3024 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; |
5437 | printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
3025 | esac |
5438 | esac |
3026 | case $ac_var in #( |
5439 | case $ac_var in #( |
3027 | _ | IFS | as_nl) ;; #( |
5440 | _ | IFS | as_nl) ;; #( |
3028 | *) $as_unset $ac_var ;; |
5441 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
|
|
5442 | *) { eval $ac_var=; unset $ac_var;} ;; |
3029 | esac ;; |
5443 | esac ;; |
3030 | esac |
5444 | esac |
3031 | done |
5445 | done |
3032 | |
5446 | |
3033 | (set) 2>&1 | |
5447 | (set) 2>&1 | |
3034 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
5448 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
3035 | *${as_nl}ac_space=\ *) |
5449 | *${as_nl}ac_space=\ *) |
3036 | # `set' does not quote correctly, so add quotes (double-quote |
5450 | # `set' does not quote correctly, so add quotes: double-quote |
3037 | # substitution turns \\\\ into \\, and sed turns \\ into \). |
5451 | # substitution turns \\\\ into \\, and sed turns \\ into \. |
3038 | sed -n \ |
5452 | sed -n \ |
3039 | "s/'/'\\\\''/g; |
5453 | "s/'/'\\\\''/g; |
3040 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
5454 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
3041 | ;; #( |
5455 | ;; #( |
3042 | *) |
5456 | *) |
… | |
… | |
3048 | ) | |
5462 | ) | |
3049 | sed ' |
5463 | sed ' |
3050 | /^ac_cv_env_/b end |
5464 | /^ac_cv_env_/b end |
3051 | t clear |
5465 | t clear |
3052 | :clear |
5466 | :clear |
3053 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
5467 | s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/ |
3054 | t end |
5468 | t end |
3055 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
5469 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
3056 | :end' >>confcache |
5470 | :end' >>confcache |
3057 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
5471 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
3058 | if test -w "$cache_file"; then |
5472 | if test -w "$cache_file"; then |
3059 | test "x$cache_file" != "x/dev/null" && |
5473 | if test "x$cache_file" != "x/dev/null"; then |
3060 | { echo "$as_me:$LINENO: updating cache $cache_file" >&5 |
5474 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
3061 | echo "$as_me: updating cache $cache_file" >&6;} |
5475 | printf "%s\n" "$as_me: updating cache $cache_file" >&6;} |
|
|
5476 | if test ! -f "$cache_file" || test -h "$cache_file"; then |
3062 | cat confcache >$cache_file |
5477 | cat confcache >"$cache_file" |
|
|
5478 | else |
|
|
5479 | case $cache_file in #( |
|
|
5480 | */* | ?:*) |
|
|
5481 | mv -f confcache "$cache_file"$$ && |
|
|
5482 | mv -f "$cache_file"$$ "$cache_file" ;; #( |
|
|
5483 | *) |
|
|
5484 | mv -f confcache "$cache_file" ;; |
|
|
5485 | esac |
|
|
5486 | fi |
|
|
5487 | fi |
3063 | else |
5488 | else |
3064 | { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 |
5489 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
3065 | echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
5490 | printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;} |
3066 | fi |
5491 | fi |
3067 | fi |
5492 | fi |
3068 | rm -f confcache |
5493 | rm -f confcache |
3069 | |
5494 | |
3070 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
5495 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
… | |
… | |
3073 | |
5498 | |
3074 | DEFS=-DHAVE_CONFIG_H |
5499 | DEFS=-DHAVE_CONFIG_H |
3075 | |
5500 | |
3076 | ac_libobjs= |
5501 | ac_libobjs= |
3077 | ac_ltlibobjs= |
5502 | ac_ltlibobjs= |
|
|
5503 | U= |
3078 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
5504 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
3079 | # 1. Remove the extension, and $U if already installed. |
5505 | # 1. Remove the extension, and $U if already installed. |
3080 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
5506 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
3081 | ac_i=`echo "$ac_i" | sed "$ac_script"` |
5507 | ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"` |
3082 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
5508 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
3083 | # will be set to the directory where LIBOBJS objects are built. |
5509 | # will be set to the directory where LIBOBJS objects are built. |
3084 | ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
5510 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
3085 | ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' |
5511 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' |
3086 | done |
5512 | done |
3087 | LIBOBJS=$ac_libobjs |
5513 | LIBOBJS=$ac_libobjs |
3088 | |
5514 | |
3089 | LTLIBOBJS=$ac_ltlibobjs |
5515 | LTLIBOBJS=$ac_ltlibobjs |
3090 | |
5516 | |
3091 | |
5517 | |
3092 | |
5518 | |
3093 | : ${CONFIG_STATUS=./config.status} |
5519 | : "${CONFIG_STATUS=./config.status}" |
|
|
5520 | ac_write_fail=0 |
3094 | ac_clean_files_save=$ac_clean_files |
5521 | ac_clean_files_save=$ac_clean_files |
3095 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
5522 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
3096 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
5523 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
3097 | echo "$as_me: creating $CONFIG_STATUS" >&6;} |
5524 | printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;} |
3098 | cat >$CONFIG_STATUS <<_ACEOF |
5525 | as_write_fail=0 |
|
|
5526 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 |
3099 | #! $SHELL |
5527 | #! $SHELL |
3100 | # Generated by $as_me. |
5528 | # Generated by $as_me. |
3101 | # Run this file to recreate the current configuration. |
5529 | # Run this file to recreate the current configuration. |
3102 | # Compiler output produced by configure, useful for debugging |
5530 | # Compiler output produced by configure, useful for debugging |
3103 | # configure, is in config.log if it exists. |
5531 | # configure, is in config.log if it exists. |
3104 | |
5532 | |
3105 | debug=false |
5533 | debug=false |
3106 | ac_cs_recheck=false |
5534 | ac_cs_recheck=false |
3107 | ac_cs_silent=false |
5535 | ac_cs_silent=false |
|
|
5536 | |
3108 | SHELL=\${CONFIG_SHELL-$SHELL} |
5537 | SHELL=\${CONFIG_SHELL-$SHELL} |
|
|
5538 | export SHELL |
3109 | _ACEOF |
5539 | _ASEOF |
3110 | |
5540 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 |
3111 | cat >>$CONFIG_STATUS <<\_ACEOF |
|
|
3112 | ## --------------------- ## |
5541 | ## -------------------- ## |
3113 | ## M4sh Initialization. ## |
5542 | ## M4sh Initialization. ## |
3114 | ## --------------------- ## |
5543 | ## -------------------- ## |
3115 | |
5544 | |
3116 | # Be more Bourne compatible |
5545 | # Be more Bourne compatible |
3117 | DUALCASE=1; export DUALCASE # for MKS sh |
5546 | DUALCASE=1; export DUALCASE # for MKS sh |
|
|
5547 | as_nop=: |
3118 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
5548 | if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 |
|
|
5549 | then : |
3119 | emulate sh |
5550 | emulate sh |
3120 | NULLCMD=: |
5551 | NULLCMD=: |
3121 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
5552 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
3122 | # is contrary to our usage. Disable this feature. |
5553 | # is contrary to our usage. Disable this feature. |
3123 | alias -g '${1+"$@"}'='"$@"' |
5554 | alias -g '${1+"$@"}'='"$@"' |
3124 | setopt NO_GLOB_SUBST |
5555 | setopt NO_GLOB_SUBST |
3125 | else |
5556 | else $as_nop |
3126 | case `(set -o) 2>/dev/null` in |
5557 | case `(set -o) 2>/dev/null` in #( |
3127 | *posix*) set -o posix ;; |
5558 | *posix*) : |
|
|
5559 | set -o posix ;; #( |
|
|
5560 | *) : |
|
|
5561 | ;; |
3128 | esac |
5562 | esac |
3129 | |
|
|
3130 | fi |
5563 | fi |
3131 | |
5564 | |
3132 | |
5565 | |
3133 | |
5566 | |
|
|
5567 | # Reset variables that may have inherited troublesome values from |
|
|
5568 | # the environment. |
3134 | |
5569 | |
3135 | # PATH needs CR |
|
|
3136 | # Avoid depending upon Character Ranges. |
|
|
3137 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
|
|
3138 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
|
|
3139 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
|
|
3140 | as_cr_digits='0123456789' |
|
|
3141 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
|
|
3142 | |
|
|
3143 | # The user is always right. |
|
|
3144 | if test "${PATH_SEPARATOR+set}" != set; then |
|
|
3145 | echo "#! /bin/sh" >conf$$.sh |
|
|
3146 | echo "exit 0" >>conf$$.sh |
|
|
3147 | chmod +x conf$$.sh |
|
|
3148 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
|
|
3149 | PATH_SEPARATOR=';' |
|
|
3150 | else |
|
|
3151 | PATH_SEPARATOR=: |
|
|
3152 | fi |
|
|
3153 | rm -f conf$$.sh |
|
|
3154 | fi |
|
|
3155 | |
|
|
3156 | # Support unset when possible. |
|
|
3157 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
|
|
3158 | as_unset=unset |
|
|
3159 | else |
|
|
3160 | as_unset=false |
|
|
3161 | fi |
|
|
3162 | |
|
|
3163 | |
|
|
3164 | # IFS |
|
|
3165 | # We need space, tab and new line, in precisely that order. Quoting is |
5570 | # IFS needs to be set, to space, tab, and newline, in precisely that order. |
|
|
5571 | # (If _AS_PATH_WALK were called with IFS unset, it would have the |
|
|
5572 | # side effect of setting IFS to empty, thus disabling word splitting.) |
3166 | # there to prevent editors from complaining about space-tab. |
5573 | # Quoting is to prevent editors from complaining about space-tab. |
3167 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
|
|
3168 | # splitting by setting IFS to empty value.) |
|
|
3169 | as_nl=' |
5574 | as_nl=' |
3170 | ' |
5575 | ' |
|
|
5576 | export as_nl |
3171 | IFS=" "" $as_nl" |
5577 | IFS=" "" $as_nl" |
3172 | |
5578 | |
|
|
5579 | PS1='$ ' |
|
|
5580 | PS2='> ' |
|
|
5581 | PS4='+ ' |
|
|
5582 | |
|
|
5583 | # Ensure predictable behavior from utilities with locale-dependent output. |
|
|
5584 | LC_ALL=C |
|
|
5585 | export LC_ALL |
|
|
5586 | LANGUAGE=C |
|
|
5587 | export LANGUAGE |
|
|
5588 | |
|
|
5589 | # We cannot yet rely on "unset" to work, but we need these variables |
|
|
5590 | # to be unset--not just set to an empty or harmless value--now, to |
|
|
5591 | # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct |
|
|
5592 | # also avoids known problems related to "unset" and subshell syntax |
|
|
5593 | # in other old shells (e.g. bash 2.01 and pdksh 5.2.14). |
|
|
5594 | for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH |
|
|
5595 | do eval test \${$as_var+y} \ |
|
|
5596 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : |
|
|
5597 | done |
|
|
5598 | |
|
|
5599 | # Ensure that fds 0, 1, and 2 are open. |
|
|
5600 | if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi |
|
|
5601 | if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi |
|
|
5602 | if (exec 3>&2) ; then :; else exec 2>/dev/null; fi |
|
|
5603 | |
|
|
5604 | # The user is always right. |
|
|
5605 | if ${PATH_SEPARATOR+false} :; then |
|
|
5606 | PATH_SEPARATOR=: |
|
|
5607 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
|
|
5608 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
|
|
5609 | PATH_SEPARATOR=';' |
|
|
5610 | } |
|
|
5611 | fi |
|
|
5612 | |
|
|
5613 | |
3173 | # Find who we are. Look in the path if we contain no directory separator. |
5614 | # Find who we are. Look in the path if we contain no directory separator. |
|
|
5615 | as_myself= |
3174 | case $0 in |
5616 | case $0 in #(( |
3175 | *[\\/]* ) as_myself=$0 ;; |
5617 | *[\\/]* ) as_myself=$0 ;; |
3176 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5618 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3177 | for as_dir in $PATH |
5619 | for as_dir in $PATH |
3178 | do |
5620 | do |
3179 | IFS=$as_save_IFS |
5621 | IFS=$as_save_IFS |
3180 | test -z "$as_dir" && as_dir=. |
5622 | case $as_dir in #((( |
|
|
5623 | '') as_dir=./ ;; |
|
|
5624 | */) ;; |
|
|
5625 | *) as_dir=$as_dir/ ;; |
|
|
5626 | esac |
3181 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
5627 | test -r "$as_dir$0" && as_myself=$as_dir$0 && break |
3182 | done |
5628 | done |
3183 | IFS=$as_save_IFS |
5629 | IFS=$as_save_IFS |
3184 | |
5630 | |
3185 | ;; |
5631 | ;; |
3186 | esac |
5632 | esac |
3187 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
5633 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
3188 | # in which case we are not to be found in the path. |
5634 | # in which case we are not to be found in the path. |
3189 | if test "x$as_myself" = x; then |
5635 | if test "x$as_myself" = x; then |
3190 | as_myself=$0 |
5636 | as_myself=$0 |
3191 | fi |
5637 | fi |
3192 | if test ! -f "$as_myself"; then |
5638 | if test ! -f "$as_myself"; then |
3193 | echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
5639 | printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
3194 | { (exit 1); exit 1; } |
5640 | exit 1 |
3195 | fi |
5641 | fi |
3196 | |
5642 | |
3197 | # Work around bugs in pre-3.0 UWIN ksh. |
|
|
3198 | for as_var in ENV MAIL MAILPATH |
|
|
3199 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
|
|
3200 | done |
|
|
3201 | PS1='$ ' |
|
|
3202 | PS2='> ' |
|
|
3203 | PS4='+ ' |
|
|
3204 | |
5643 | |
3205 | # NLS nuisances. |
5644 | |
3206 | for as_var in \ |
5645 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
3207 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
5646 | # ---------------------------------------- |
3208 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
5647 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
3209 | LC_TELEPHONE LC_TIME |
5648 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the |
3210 | do |
5649 | # script with STATUS, using 1 if that was 0. |
3211 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
5650 | as_fn_error () |
3212 | eval $as_var=C; export $as_var |
5651 | { |
3213 | else |
5652 | as_status=$1; test $as_status -eq 0 && as_status=1 |
3214 | ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
5653 | if test "$4"; then |
|
|
5654 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
|
|
5655 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 |
3215 | fi |
5656 | fi |
3216 | done |
5657 | printf "%s\n" "$as_me: error: $2" >&2 |
|
|
5658 | as_fn_exit $as_status |
|
|
5659 | } # as_fn_error |
3217 | |
5660 | |
3218 | # Required to use basename. |
5661 | |
|
|
5662 | |
|
|
5663 | # as_fn_set_status STATUS |
|
|
5664 | # ----------------------- |
|
|
5665 | # Set $? to STATUS, without forking. |
|
|
5666 | as_fn_set_status () |
|
|
5667 | { |
|
|
5668 | return $1 |
|
|
5669 | } # as_fn_set_status |
|
|
5670 | |
|
|
5671 | # as_fn_exit STATUS |
|
|
5672 | # ----------------- |
|
|
5673 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. |
|
|
5674 | as_fn_exit () |
|
|
5675 | { |
|
|
5676 | set +e |
|
|
5677 | as_fn_set_status $1 |
|
|
5678 | exit $1 |
|
|
5679 | } # as_fn_exit |
|
|
5680 | |
|
|
5681 | # as_fn_unset VAR |
|
|
5682 | # --------------- |
|
|
5683 | # Portably unset VAR. |
|
|
5684 | as_fn_unset () |
|
|
5685 | { |
|
|
5686 | { eval $1=; unset $1;} |
|
|
5687 | } |
|
|
5688 | as_unset=as_fn_unset |
|
|
5689 | |
|
|
5690 | # as_fn_append VAR VALUE |
|
|
5691 | # ---------------------- |
|
|
5692 | # Append the text in VALUE to the end of the definition contained in VAR. Take |
|
|
5693 | # advantage of any shell optimizations that allow amortized linear growth over |
|
|
5694 | # repeated appends, instead of the typical quadratic growth present in naive |
|
|
5695 | # implementations. |
|
|
5696 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null |
|
|
5697 | then : |
|
|
5698 | eval 'as_fn_append () |
|
|
5699 | { |
|
|
5700 | eval $1+=\$2 |
|
|
5701 | }' |
|
|
5702 | else $as_nop |
|
|
5703 | as_fn_append () |
|
|
5704 | { |
|
|
5705 | eval $1=\$$1\$2 |
|
|
5706 | } |
|
|
5707 | fi # as_fn_append |
|
|
5708 | |
|
|
5709 | # as_fn_arith ARG... |
|
|
5710 | # ------------------ |
|
|
5711 | # Perform arithmetic evaluation on the ARGs, and store the result in the |
|
|
5712 | # global $as_val. Take advantage of shells that can avoid forks. The arguments |
|
|
5713 | # must be portable across $(()) and expr. |
|
|
5714 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null |
|
|
5715 | then : |
|
|
5716 | eval 'as_fn_arith () |
|
|
5717 | { |
|
|
5718 | as_val=$(( $* )) |
|
|
5719 | }' |
|
|
5720 | else $as_nop |
|
|
5721 | as_fn_arith () |
|
|
5722 | { |
|
|
5723 | as_val=`expr "$@" || test $? -eq 1` |
|
|
5724 | } |
|
|
5725 | fi # as_fn_arith |
|
|
5726 | |
|
|
5727 | |
3219 | if expr a : '\(a\)' >/dev/null 2>&1 && |
5728 | if expr a : '\(a\)' >/dev/null 2>&1 && |
3220 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
5729 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
3221 | as_expr=expr |
5730 | as_expr=expr |
3222 | else |
5731 | else |
3223 | as_expr=false |
5732 | as_expr=false |
… | |
… | |
3227 | as_basename=basename |
5736 | as_basename=basename |
3228 | else |
5737 | else |
3229 | as_basename=false |
5738 | as_basename=false |
3230 | fi |
5739 | fi |
3231 | |
5740 | |
|
|
5741 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
|
|
5742 | as_dirname=dirname |
|
|
5743 | else |
|
|
5744 | as_dirname=false |
|
|
5745 | fi |
3232 | |
5746 | |
3233 | # Name of the executable. |
|
|
3234 | as_me=`$as_basename -- "$0" || |
5747 | as_me=`$as_basename -- "$0" || |
3235 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
5748 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
3236 | X"$0" : 'X\(//\)$' \| \ |
5749 | X"$0" : 'X\(//\)$' \| \ |
3237 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
5750 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
3238 | echo X/"$0" | |
5751 | printf "%s\n" X/"$0" | |
3239 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
5752 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
3240 | s//\1/ |
5753 | s//\1/ |
3241 | q |
5754 | q |
3242 | } |
5755 | } |
3243 | /^X\/\(\/\/\)$/{ |
5756 | /^X\/\(\/\/\)$/{ |
… | |
… | |
3248 | s//\1/ |
5761 | s//\1/ |
3249 | q |
5762 | q |
3250 | } |
5763 | } |
3251 | s/.*/./; q'` |
5764 | s/.*/./; q'` |
3252 | |
5765 | |
3253 | # CDPATH. |
5766 | # Avoid depending upon Character Ranges. |
3254 | $as_unset CDPATH |
5767 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
|
|
5768 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
|
|
5769 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
|
|
5770 | as_cr_digits='0123456789' |
|
|
5771 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
3255 | |
5772 | |
3256 | |
5773 | |
3257 | |
5774 | # Determine whether it's possible to make 'echo' print without a newline. |
3258 | as_lineno_1=$LINENO |
5775 | # These variables are no longer used directly by Autoconf, but are AC_SUBSTed |
3259 | as_lineno_2=$LINENO |
5776 | # for compatibility with existing Makefiles. |
3260 | test "x$as_lineno_1" != "x$as_lineno_2" && |
|
|
3261 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { |
|
|
3262 | |
|
|
3263 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
|
|
3264 | # uniformly replaced by the line number. The first 'sed' inserts a |
|
|
3265 | # line-number line after each line using $LINENO; the second 'sed' |
|
|
3266 | # does the real work. The second script uses 'N' to pair each |
|
|
3267 | # line-number line with the line containing $LINENO, and appends |
|
|
3268 | # trailing '-' during substitution so that $LINENO is not a special |
|
|
3269 | # case at line end. |
|
|
3270 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
|
|
3271 | # scripts with optimization help from Paolo Bonzini. Blame Lee |
|
|
3272 | # E. McMahon (1931-1989) for sed's syntax. :-) |
|
|
3273 | sed -n ' |
|
|
3274 | p |
|
|
3275 | /[$]LINENO/= |
|
|
3276 | ' <$as_myself | |
|
|
3277 | sed ' |
|
|
3278 | s/[$]LINENO.*/&-/ |
|
|
3279 | t lineno |
|
|
3280 | b |
|
|
3281 | :lineno |
|
|
3282 | N |
|
|
3283 | :loop |
|
|
3284 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
|
|
3285 | t loop |
|
|
3286 | s/-\n.*// |
|
|
3287 | ' >$as_me.lineno && |
|
|
3288 | chmod +x "$as_me.lineno" || |
|
|
3289 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
|
|
3290 | { (exit 1); exit 1; }; } |
|
|
3291 | |
|
|
3292 | # Don't try to exec as it changes $[0], causing all sort of problems |
|
|
3293 | # (the dirname of $[0] is not the place where we might find the |
|
|
3294 | # original and so on. Autoconf is especially sensitive to this). |
|
|
3295 | . "./$as_me.lineno" |
|
|
3296 | # Exit status is that of the last command. |
|
|
3297 | exit |
|
|
3298 | } |
|
|
3299 | |
|
|
3300 | |
|
|
3301 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
|
|
3302 | as_dirname=dirname |
|
|
3303 | else |
|
|
3304 | as_dirname=false |
|
|
3305 | fi |
|
|
3306 | |
|
|
3307 | ECHO_C= ECHO_N= ECHO_T= |
5777 | ECHO_C= ECHO_N= ECHO_T= |
3308 | case `echo -n x` in |
5778 | case `echo -n x` in #((((( |
3309 | -n*) |
5779 | -n*) |
3310 | case `echo 'x\c'` in |
5780 | case `echo 'xy\c'` in |
3311 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
5781 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
3312 | *) ECHO_C='\c';; |
5782 | xy) ECHO_C='\c';; |
|
|
5783 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null |
|
|
5784 | ECHO_T=' ';; |
3313 | esac;; |
5785 | esac;; |
3314 | *) |
5786 | *) |
3315 | ECHO_N='-n';; |
5787 | ECHO_N='-n';; |
3316 | esac |
5788 | esac |
3317 | |
5789 | |
3318 | if expr a : '\(a\)' >/dev/null 2>&1 && |
5790 | # For backward compatibility with old third-party macros, we provide |
3319 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
5791 | # the shell variables $as_echo and $as_echo_n. New code should use |
3320 | as_expr=expr |
5792 | # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. |
3321 | else |
5793 | as_echo='printf %s\n' |
3322 | as_expr=false |
5794 | as_echo_n='printf %s' |
3323 | fi |
|
|
3324 | |
5795 | |
3325 | rm -f conf$$ conf$$.exe conf$$.file |
5796 | rm -f conf$$ conf$$.exe conf$$.file |
3326 | if test -d conf$$.dir; then |
5797 | if test -d conf$$.dir; then |
3327 | rm -f conf$$.dir/conf$$.file |
5798 | rm -f conf$$.dir/conf$$.file |
3328 | else |
5799 | else |
3329 | rm -f conf$$.dir |
5800 | rm -f conf$$.dir |
3330 | mkdir conf$$.dir |
5801 | mkdir conf$$.dir 2>/dev/null |
3331 | fi |
5802 | fi |
3332 | echo >conf$$.file |
5803 | if (echo >conf$$.file) 2>/dev/null; then |
3333 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
5804 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
3334 | as_ln_s='ln -s' |
5805 | as_ln_s='ln -s' |
3335 | # ... but there are two gotchas: |
5806 | # ... but there are two gotchas: |
3336 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
5807 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
3337 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
5808 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
3338 | # In both cases, we have to default to `cp -p'. |
5809 | # In both cases, we have to default to `cp -pR'. |
3339 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
5810 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
3340 | as_ln_s='cp -p' |
5811 | as_ln_s='cp -pR' |
3341 | elif ln conf$$.file conf$$ 2>/dev/null; then |
5812 | elif ln conf$$.file conf$$ 2>/dev/null; then |
3342 | as_ln_s=ln |
5813 | as_ln_s=ln |
|
|
5814 | else |
|
|
5815 | as_ln_s='cp -pR' |
|
|
5816 | fi |
3343 | else |
5817 | else |
3344 | as_ln_s='cp -p' |
5818 | as_ln_s='cp -pR' |
3345 | fi |
5819 | fi |
3346 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
5820 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
3347 | rmdir conf$$.dir 2>/dev/null |
5821 | rmdir conf$$.dir 2>/dev/null |
3348 | |
5822 | |
3349 | if mkdir -p . 2>/dev/null; then |
5823 | |
3350 | as_mkdir_p=: |
5824 | # as_fn_mkdir_p |
3351 | else |
5825 | # ------------- |
3352 | test -d ./-p && rmdir ./-p |
5826 | # Create "$as_dir" as a directory, including parents if necessary. |
3353 | as_mkdir_p=false |
5827 | as_fn_mkdir_p () |
3354 | fi |
|
|
3355 | |
|
|
3356 | if test -x / >/dev/null 2>&1; then |
|
|
3357 | as_test_x='test -x' |
|
|
3358 | else |
|
|
3359 | if ls -dL / >/dev/null 2>&1; then |
|
|
3360 | as_ls_L_option=L |
|
|
3361 | else |
|
|
3362 | as_ls_L_option= |
|
|
3363 | fi |
|
|
3364 | as_test_x=' |
|
|
3365 | eval sh -c '\'' |
|
|
3366 | if test -d "$1"; then |
|
|
3367 | test -d "$1/."; |
|
|
3368 | else |
|
|
3369 | case $1 in |
|
|
3370 | -*)set "./$1";; |
|
|
3371 | esac; |
|
|
3372 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in |
|
|
3373 | ???[sx]*):;;*)false;;esac;fi |
|
|
3374 | '\'' sh |
|
|
3375 | ' |
|
|
3376 | fi |
|
|
3377 | as_executable_p=$as_test_x |
|
|
3378 | |
|
|
3379 | # Sed expression to map a string onto a valid CPP name. |
|
|
3380 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
|
|
3381 | |
|
|
3382 | # Sed expression to map a string onto a valid variable name. |
|
|
3383 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
|
|
3384 | |
|
|
3385 | |
|
|
3386 | exec 6>&1 |
|
|
3387 | |
|
|
3388 | # Save the log message, to keep $[0] and so on meaningful, and to |
|
|
3389 | # report actual input values of CONFIG_FILES etc. instead of their |
|
|
3390 | # values after options handling. |
|
|
3391 | ac_log=" |
|
|
3392 | This file was extended by $as_me, which was |
|
|
3393 | generated by GNU Autoconf 2.61. Invocation command line was |
|
|
3394 | |
|
|
3395 | CONFIG_FILES = $CONFIG_FILES |
|
|
3396 | CONFIG_HEADERS = $CONFIG_HEADERS |
|
|
3397 | CONFIG_LINKS = $CONFIG_LINKS |
|
|
3398 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
|
|
3399 | $ $0 $@ |
|
|
3400 | |
|
|
3401 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
|
|
3402 | " |
|
|
3403 | |
|
|
3404 | _ACEOF |
|
|
3405 | |
|
|
3406 | cat >>$CONFIG_STATUS <<_ACEOF |
|
|
3407 | # Files that config.status was made for. |
|
|
3408 | config_headers="$ac_config_headers" |
|
|
3409 | |
|
|
3410 | _ACEOF |
|
|
3411 | |
|
|
3412 | cat >>$CONFIG_STATUS <<\_ACEOF |
|
|
3413 | ac_cs_usage="\ |
|
|
3414 | \`$as_me' instantiates files from templates according to the |
|
|
3415 | current configuration. |
|
|
3416 | |
|
|
3417 | Usage: $0 [OPTIONS] [FILE]... |
|
|
3418 | |
|
|
3419 | -h, --help print this help, then exit |
|
|
3420 | -V, --version print version number and configuration settings, then exit |
|
|
3421 | -q, --quiet do not print progress messages |
|
|
3422 | -d, --debug don't remove temporary files |
|
|
3423 | --recheck update $as_me by reconfiguring in the same conditions |
|
|
3424 | --header=FILE[:TEMPLATE] |
|
|
3425 | instantiate the configuration header FILE |
|
|
3426 | |
|
|
3427 | Configuration headers: |
|
|
3428 | $config_headers |
|
|
3429 | |
|
|
3430 | Report bugs to <bug-autoconf@gnu.org>." |
|
|
3431 | |
|
|
3432 | _ACEOF |
|
|
3433 | cat >>$CONFIG_STATUS <<_ACEOF |
|
|
3434 | ac_cs_version="\\ |
|
|
3435 | config.status |
|
|
3436 | configured by $0, generated by GNU Autoconf 2.61, |
|
|
3437 | with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" |
|
|
3438 | |
|
|
3439 | Copyright (C) 2006 Free Software Foundation, Inc. |
|
|
3440 | This config.status script is free software; the Free Software Foundation |
|
|
3441 | gives unlimited permission to copy, distribute and modify it." |
|
|
3442 | |
|
|
3443 | ac_pwd='$ac_pwd' |
|
|
3444 | srcdir='$srcdir' |
|
|
3445 | _ACEOF |
|
|
3446 | |
|
|
3447 | cat >>$CONFIG_STATUS <<\_ACEOF |
|
|
3448 | # If no file are specified by the user, then we need to provide default |
|
|
3449 | # value. By we need to know if files were specified by the user. |
|
|
3450 | ac_need_defaults=: |
|
|
3451 | while test $# != 0 |
|
|
3452 | do |
|
|
3453 | case $1 in |
|
|
3454 | --*=*) |
|
|
3455 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
|
|
3456 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` |
|
|
3457 | ac_shift=: |
|
|
3458 | ;; |
|
|
3459 | *) |
|
|
3460 | ac_option=$1 |
|
|
3461 | ac_optarg=$2 |
|
|
3462 | ac_shift=shift |
|
|
3463 | ;; |
|
|
3464 | esac |
|
|
3465 | |
|
|
3466 | case $ac_option in |
|
|
3467 | # Handling of the options. |
|
|
3468 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
|
|
3469 | ac_cs_recheck=: ;; |
|
|
3470 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
|
|
3471 | echo "$ac_cs_version"; exit ;; |
|
|
3472 | --debug | --debu | --deb | --de | --d | -d ) |
|
|
3473 | debug=: ;; |
|
|
3474 | --header | --heade | --head | --hea ) |
|
|
3475 | $ac_shift |
|
|
3476 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" |
|
|
3477 | ac_need_defaults=false;; |
|
|
3478 | --he | --h) |
|
|
3479 | # Conflict between --help and --header |
|
|
3480 | { echo "$as_me: error: ambiguous option: $1 |
|
|
3481 | Try \`$0 --help' for more information." >&2 |
|
|
3482 | { (exit 1); exit 1; }; };; |
|
|
3483 | --help | --hel | -h ) |
|
|
3484 | echo "$ac_cs_usage"; exit ;; |
|
|
3485 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
|
|
3486 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
|
|
3487 | ac_cs_silent=: ;; |
|
|
3488 | |
|
|
3489 | # This is an error. |
|
|
3490 | -*) { echo "$as_me: error: unrecognized option: $1 |
|
|
3491 | Try \`$0 --help' for more information." >&2 |
|
|
3492 | { (exit 1); exit 1; }; } ;; |
|
|
3493 | |
|
|
3494 | *) ac_config_targets="$ac_config_targets $1" |
|
|
3495 | ac_need_defaults=false ;; |
|
|
3496 | |
|
|
3497 | esac |
|
|
3498 | shift |
|
|
3499 | done |
|
|
3500 | |
|
|
3501 | ac_configure_extra_args= |
|
|
3502 | |
|
|
3503 | if $ac_cs_silent; then |
|
|
3504 | exec 6>/dev/null |
|
|
3505 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
|
|
3506 | fi |
|
|
3507 | |
|
|
3508 | _ACEOF |
|
|
3509 | cat >>$CONFIG_STATUS <<_ACEOF |
|
|
3510 | if \$ac_cs_recheck; then |
|
|
3511 | echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 |
|
|
3512 | CONFIG_SHELL=$SHELL |
|
|
3513 | export CONFIG_SHELL |
|
|
3514 | exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
|
|
3515 | fi |
|
|
3516 | |
|
|
3517 | _ACEOF |
|
|
3518 | cat >>$CONFIG_STATUS <<\_ACEOF |
|
|
3519 | exec 5>>config.log |
|
|
3520 | { |
5828 | { |
3521 | echo |
|
|
3522 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
|
|
3523 | ## Running $as_me. ## |
|
|
3524 | _ASBOX |
|
|
3525 | echo "$ac_log" |
|
|
3526 | } >&5 |
|
|
3527 | |
5829 | |
3528 | _ACEOF |
|
|
3529 | cat >>$CONFIG_STATUS <<_ACEOF |
|
|
3530 | _ACEOF |
|
|
3531 | |
|
|
3532 | cat >>$CONFIG_STATUS <<\_ACEOF |
|
|
3533 | |
|
|
3534 | # Handling of arguments. |
|
|
3535 | for ac_config_target in $ac_config_targets |
|
|
3536 | do |
|
|
3537 | case $ac_config_target in |
|
|
3538 | "libeio/config.h") CONFIG_HEADERS="$CONFIG_HEADERS libeio/config.h" ;; |
|
|
3539 | |
|
|
3540 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
|
|
3541 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
|
|
3542 | { (exit 1); exit 1; }; };; |
|
|
3543 | esac |
|
|
3544 | done |
|
|
3545 | |
|
|
3546 | |
|
|
3547 | # If the user did not use the arguments to specify the items to instantiate, |
|
|
3548 | # then the envvar interface is used. Set only those that are not. |
|
|
3549 | # We use the long form for the default assignment because of an extremely |
|
|
3550 | # bizarre bug on SunOS 4.1.3. |
|
|
3551 | if $ac_need_defaults; then |
|
|
3552 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
|
|
3553 | fi |
|
|
3554 | |
|
|
3555 | # Have a temporary directory for convenience. Make it in the build tree |
|
|
3556 | # simply because there is no reason against having it here, and in addition, |
|
|
3557 | # creating and moving files from /tmp can sometimes cause problems. |
|
|
3558 | # Hook for its removal unless debugging. |
|
|
3559 | # Note that there is a small window in which the directory will not be cleaned: |
|
|
3560 | # after its creation but before its name has been assigned to `$tmp'. |
|
|
3561 | $debug || |
|
|
3562 | { |
|
|
3563 | tmp= |
|
|
3564 | trap 'exit_status=$? |
|
|
3565 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status |
|
|
3566 | ' 0 |
|
|
3567 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
|
|
3568 | } |
|
|
3569 | # Create a (secure) tmp directory for tmp files. |
|
|
3570 | |
|
|
3571 | { |
|
|
3572 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
|
|
3573 | test -n "$tmp" && test -d "$tmp" |
|
|
3574 | } || |
|
|
3575 | { |
|
|
3576 | tmp=./conf$$-$RANDOM |
|
|
3577 | (umask 077 && mkdir "$tmp") |
|
|
3578 | } || |
|
|
3579 | { |
|
|
3580 | echo "$me: cannot create a temporary directory in ." >&2 |
|
|
3581 | { (exit 1); exit 1; } |
|
|
3582 | } |
|
|
3583 | |
|
|
3584 | |
|
|
3585 | for ac_tag in :H $CONFIG_HEADERS |
|
|
3586 | do |
|
|
3587 | case $ac_tag in |
|
|
3588 | :[FHLC]) ac_mode=$ac_tag; continue;; |
|
|
3589 | esac |
|
|
3590 | case $ac_mode$ac_tag in |
|
|
3591 | :[FHL]*:*);; |
|
|
3592 | :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 |
|
|
3593 | echo "$as_me: error: Invalid tag $ac_tag." >&2;} |
|
|
3594 | { (exit 1); exit 1; }; };; |
|
|
3595 | :[FH]-) ac_tag=-:-;; |
|
|
3596 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; |
|
|
3597 | esac |
|
|
3598 | ac_save_IFS=$IFS |
|
|
3599 | IFS=: |
|
|
3600 | set x $ac_tag |
|
|
3601 | IFS=$ac_save_IFS |
|
|
3602 | shift |
|
|
3603 | ac_file=$1 |
|
|
3604 | shift |
|
|
3605 | |
|
|
3606 | case $ac_mode in |
|
|
3607 | :L) ac_source=$1;; |
|
|
3608 | :[FH]) |
|
|
3609 | ac_file_inputs= |
|
|
3610 | for ac_f |
|
|
3611 | do |
|
|
3612 | case $ac_f in |
|
|
3613 | -) ac_f="$tmp/stdin";; |
|
|
3614 | *) # Look for the file first in the build tree, then in the source tree |
|
|
3615 | # (if the path is not absolute). The absolute path cannot be DOS-style, |
|
|
3616 | # because $ac_f cannot contain `:'. |
|
|
3617 | test -f "$ac_f" || |
|
|
3618 | case $ac_f in |
|
|
3619 | [\\/$]*) false;; |
|
|
3620 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; |
|
|
3621 | esac || |
|
|
3622 | { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 |
|
|
3623 | echo "$as_me: error: cannot find input file: $ac_f" >&2;} |
|
|
3624 | { (exit 1); exit 1; }; };; |
|
|
3625 | esac |
|
|
3626 | ac_file_inputs="$ac_file_inputs $ac_f" |
|
|
3627 | done |
|
|
3628 | |
|
|
3629 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
|
|
3630 | # use $as_me), people would be surprised to read: |
|
|
3631 | # /* config.h. Generated by config.status. */ |
|
|
3632 | configure_input="Generated from "`IFS=: |
|
|
3633 | echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." |
|
|
3634 | if test x"$ac_file" != x-; then |
|
|
3635 | configure_input="$ac_file. $configure_input" |
|
|
3636 | { echo "$as_me:$LINENO: creating $ac_file" >&5 |
|
|
3637 | echo "$as_me: creating $ac_file" >&6;} |
|
|
3638 | fi |
|
|
3639 | |
|
|
3640 | case $ac_tag in |
|
|
3641 | *:-:* | *:-) cat >"$tmp/stdin";; |
|
|
3642 | esac |
|
|
3643 | ;; |
|
|
3644 | esac |
|
|
3645 | |
|
|
3646 | ac_dir=`$as_dirname -- "$ac_file" || |
|
|
3647 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
|
|
3648 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
|
|
3649 | X"$ac_file" : 'X\(//\)$' \| \ |
|
|
3650 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
|
|
3651 | echo X"$ac_file" | |
|
|
3652 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
|
|
3653 | s//\1/ |
|
|
3654 | q |
|
|
3655 | } |
|
|
3656 | /^X\(\/\/\)[^/].*/{ |
|
|
3657 | s//\1/ |
|
|
3658 | q |
|
|
3659 | } |
|
|
3660 | /^X\(\/\/\)$/{ |
|
|
3661 | s//\1/ |
|
|
3662 | q |
|
|
3663 | } |
|
|
3664 | /^X\(\/\).*/{ |
|
|
3665 | s//\1/ |
|
|
3666 | q |
|
|
3667 | } |
|
|
3668 | s/.*/./; q'` |
|
|
3669 | { as_dir="$ac_dir" |
|
|
3670 | case $as_dir in #( |
5830 | case $as_dir in #( |
3671 | -*) as_dir=./$as_dir;; |
5831 | -*) as_dir=./$as_dir;; |
3672 | esac |
5832 | esac |
3673 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { |
5833 | test -d "$as_dir" || eval $as_mkdir_p || { |
3674 | as_dirs= |
5834 | as_dirs= |
3675 | while :; do |
5835 | while :; do |
3676 | case $as_dir in #( |
5836 | case $as_dir in #( |
3677 | *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( |
5837 | *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
3678 | *) as_qdir=$as_dir;; |
5838 | *) as_qdir=$as_dir;; |
3679 | esac |
5839 | esac |
3680 | as_dirs="'$as_qdir' $as_dirs" |
5840 | as_dirs="'$as_qdir' $as_dirs" |
3681 | as_dir=`$as_dirname -- "$as_dir" || |
5841 | as_dir=`$as_dirname -- "$as_dir" || |
3682 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
5842 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
3683 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
5843 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
3684 | X"$as_dir" : 'X\(//\)$' \| \ |
5844 | X"$as_dir" : 'X\(//\)$' \| \ |
3685 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
5845 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
3686 | echo X"$as_dir" | |
5846 | printf "%s\n" X"$as_dir" | |
3687 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
5847 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
3688 | s//\1/ |
5848 | s//\1/ |
3689 | q |
5849 | q |
3690 | } |
5850 | } |
3691 | /^X\(\/\/\)[^/].*/{ |
5851 | /^X\(\/\/\)[^/].*/{ |
… | |
… | |
3702 | } |
5862 | } |
3703 | s/.*/./; q'` |
5863 | s/.*/./; q'` |
3704 | test -d "$as_dir" && break |
5864 | test -d "$as_dir" && break |
3705 | done |
5865 | done |
3706 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
5866 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
3707 | } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 |
5867 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
3708 | echo "$as_me: error: cannot create directory $as_dir" >&2;} |
5868 | |
3709 | { (exit 1); exit 1; }; }; } |
5869 | |
|
|
5870 | } # as_fn_mkdir_p |
|
|
5871 | if mkdir -p . 2>/dev/null; then |
|
|
5872 | as_mkdir_p='mkdir -p "$as_dir"' |
|
|
5873 | else |
|
|
5874 | test -d ./-p && rmdir ./-p |
|
|
5875 | as_mkdir_p=false |
|
|
5876 | fi |
|
|
5877 | |
|
|
5878 | |
|
|
5879 | # as_fn_executable_p FILE |
|
|
5880 | # ----------------------- |
|
|
5881 | # Test if FILE is an executable regular file. |
|
|
5882 | as_fn_executable_p () |
|
|
5883 | { |
|
|
5884 | test -f "$1" && test -x "$1" |
|
|
5885 | } # as_fn_executable_p |
|
|
5886 | as_test_x='test -x' |
|
|
5887 | as_executable_p=as_fn_executable_p |
|
|
5888 | |
|
|
5889 | # Sed expression to map a string onto a valid CPP name. |
|
|
5890 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
|
|
5891 | |
|
|
5892 | # Sed expression to map a string onto a valid variable name. |
|
|
5893 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
|
|
5894 | |
|
|
5895 | |
|
|
5896 | exec 6>&1 |
|
|
5897 | ## ----------------------------------- ## |
|
|
5898 | ## Main body of $CONFIG_STATUS script. ## |
|
|
5899 | ## ----------------------------------- ## |
|
|
5900 | _ASEOF |
|
|
5901 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 |
|
|
5902 | |
|
|
5903 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
|
|
5904 | # Save the log message, to keep $0 and so on meaningful, and to |
|
|
5905 | # report actual input values of CONFIG_FILES etc. instead of their |
|
|
5906 | # values after options handling. |
|
|
5907 | ac_log=" |
|
|
5908 | This file was extended by $as_me, which was |
|
|
5909 | generated by GNU Autoconf 2.71. Invocation command line was |
|
|
5910 | |
|
|
5911 | CONFIG_FILES = $CONFIG_FILES |
|
|
5912 | CONFIG_HEADERS = $CONFIG_HEADERS |
|
|
5913 | CONFIG_LINKS = $CONFIG_LINKS |
|
|
5914 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
|
|
5915 | $ $0 $@ |
|
|
5916 | |
|
|
5917 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
|
|
5918 | " |
|
|
5919 | |
|
|
5920 | _ACEOF |
|
|
5921 | |
|
|
5922 | |
|
|
5923 | case $ac_config_headers in *" |
|
|
5924 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; |
|
|
5925 | esac |
|
|
5926 | |
|
|
5927 | |
|
|
5928 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
|
|
5929 | # Files that config.status was made for. |
|
|
5930 | config_headers="$ac_config_headers" |
|
|
5931 | |
|
|
5932 | _ACEOF |
|
|
5933 | |
|
|
5934 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
|
|
5935 | ac_cs_usage="\ |
|
|
5936 | \`$as_me' instantiates files and other configuration actions |
|
|
5937 | from templates according to the current configuration. Unless the files |
|
|
5938 | and actions are specified as TAGs, all are instantiated by default. |
|
|
5939 | |
|
|
5940 | Usage: $0 [OPTION]... [TAG]... |
|
|
5941 | |
|
|
5942 | -h, --help print this help, then exit |
|
|
5943 | -V, --version print version number and configuration settings, then exit |
|
|
5944 | --config print configuration, then exit |
|
|
5945 | -q, --quiet, --silent |
|
|
5946 | do not print progress messages |
|
|
5947 | -d, --debug don't remove temporary files |
|
|
5948 | --recheck update $as_me by reconfiguring in the same conditions |
|
|
5949 | --header=FILE[:TEMPLATE] |
|
|
5950 | instantiate the configuration header FILE |
|
|
5951 | |
|
|
5952 | Configuration headers: |
|
|
5953 | $config_headers |
|
|
5954 | |
|
|
5955 | Report bugs to the package provider." |
|
|
5956 | |
|
|
5957 | _ACEOF |
|
|
5958 | ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"` |
|
|
5959 | ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"` |
|
|
5960 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
|
|
5961 | ac_cs_config='$ac_cs_config_escaped' |
|
|
5962 | ac_cs_version="\\ |
|
|
5963 | config.status |
|
|
5964 | configured by $0, generated by GNU Autoconf 2.71, |
|
|
5965 | with options \\"\$ac_cs_config\\" |
|
|
5966 | |
|
|
5967 | Copyright (C) 2021 Free Software Foundation, Inc. |
|
|
5968 | This config.status script is free software; the Free Software Foundation |
|
|
5969 | gives unlimited permission to copy, distribute and modify it." |
|
|
5970 | |
|
|
5971 | ac_pwd='$ac_pwd' |
|
|
5972 | srcdir='$srcdir' |
|
|
5973 | test -n "\$AWK" || AWK=awk |
|
|
5974 | _ACEOF |
|
|
5975 | |
|
|
5976 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
|
|
5977 | # The default lists apply if the user does not specify any file. |
|
|
5978 | ac_need_defaults=: |
|
|
5979 | while test $# != 0 |
|
|
5980 | do |
|
|
5981 | case $1 in |
|
|
5982 | --*=?*) |
|
|
5983 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
|
|
5984 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` |
|
|
5985 | ac_shift=: |
|
|
5986 | ;; |
|
|
5987 | --*=) |
|
|
5988 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
|
|
5989 | ac_optarg= |
|
|
5990 | ac_shift=: |
|
|
5991 | ;; |
|
|
5992 | *) |
|
|
5993 | ac_option=$1 |
|
|
5994 | ac_optarg=$2 |
|
|
5995 | ac_shift=shift |
|
|
5996 | ;; |
|
|
5997 | esac |
|
|
5998 | |
|
|
5999 | case $ac_option in |
|
|
6000 | # Handling of the options. |
|
|
6001 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
|
|
6002 | ac_cs_recheck=: ;; |
|
|
6003 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
|
|
6004 | printf "%s\n" "$ac_cs_version"; exit ;; |
|
|
6005 | --config | --confi | --conf | --con | --co | --c ) |
|
|
6006 | printf "%s\n" "$ac_cs_config"; exit ;; |
|
|
6007 | --debug | --debu | --deb | --de | --d | -d ) |
|
|
6008 | debug=: ;; |
|
|
6009 | --header | --heade | --head | --hea ) |
|
|
6010 | $ac_shift |
|
|
6011 | case $ac_optarg in |
|
|
6012 | *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
|
|
6013 | esac |
|
|
6014 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" |
|
|
6015 | ac_need_defaults=false;; |
|
|
6016 | --he | --h) |
|
|
6017 | # Conflict between --help and --header |
|
|
6018 | as_fn_error $? "ambiguous option: \`$1' |
|
|
6019 | Try \`$0 --help' for more information.";; |
|
|
6020 | --help | --hel | -h ) |
|
|
6021 | printf "%s\n" "$ac_cs_usage"; exit ;; |
|
|
6022 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
|
|
6023 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
|
|
6024 | ac_cs_silent=: ;; |
|
|
6025 | |
|
|
6026 | # This is an error. |
|
|
6027 | -*) as_fn_error $? "unrecognized option: \`$1' |
|
|
6028 | Try \`$0 --help' for more information." ;; |
|
|
6029 | |
|
|
6030 | *) as_fn_append ac_config_targets " $1" |
|
|
6031 | ac_need_defaults=false ;; |
|
|
6032 | |
|
|
6033 | esac |
|
|
6034 | shift |
|
|
6035 | done |
|
|
6036 | |
|
|
6037 | ac_configure_extra_args= |
|
|
6038 | |
|
|
6039 | if $ac_cs_silent; then |
|
|
6040 | exec 6>/dev/null |
|
|
6041 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
|
|
6042 | fi |
|
|
6043 | |
|
|
6044 | _ACEOF |
|
|
6045 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
|
|
6046 | if \$ac_cs_recheck; then |
|
|
6047 | set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
|
|
6048 | shift |
|
|
6049 | \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6 |
|
|
6050 | CONFIG_SHELL='$SHELL' |
|
|
6051 | export CONFIG_SHELL |
|
|
6052 | exec "\$@" |
|
|
6053 | fi |
|
|
6054 | |
|
|
6055 | _ACEOF |
|
|
6056 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
|
|
6057 | exec 5>>config.log |
|
|
6058 | { |
|
|
6059 | echo |
|
|
6060 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
|
|
6061 | ## Running $as_me. ## |
|
|
6062 | _ASBOX |
|
|
6063 | printf "%s\n" "$ac_log" |
|
|
6064 | } >&5 |
|
|
6065 | |
|
|
6066 | _ACEOF |
|
|
6067 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
|
|
6068 | _ACEOF |
|
|
6069 | |
|
|
6070 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
|
|
6071 | |
|
|
6072 | # Handling of arguments. |
|
|
6073 | for ac_config_target in $ac_config_targets |
|
|
6074 | do |
|
|
6075 | case $ac_config_target in |
|
|
6076 | "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; |
|
|
6077 | |
|
|
6078 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
|
|
6079 | esac |
|
|
6080 | done |
|
|
6081 | |
|
|
6082 | |
|
|
6083 | # If the user did not use the arguments to specify the items to instantiate, |
|
|
6084 | # then the envvar interface is used. Set only those that are not. |
|
|
6085 | # We use the long form for the default assignment because of an extremely |
|
|
6086 | # bizarre bug on SunOS 4.1.3. |
|
|
6087 | if $ac_need_defaults; then |
|
|
6088 | test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers |
|
|
6089 | fi |
|
|
6090 | |
|
|
6091 | # Have a temporary directory for convenience. Make it in the build tree |
|
|
6092 | # simply because there is no reason against having it here, and in addition, |
|
|
6093 | # creating and moving files from /tmp can sometimes cause problems. |
|
|
6094 | # Hook for its removal unless debugging. |
|
|
6095 | # Note that there is a small window in which the directory will not be cleaned: |
|
|
6096 | # after its creation but before its name has been assigned to `$tmp'. |
|
|
6097 | $debug || |
|
|
6098 | { |
|
|
6099 | tmp= ac_tmp= |
|
|
6100 | trap 'exit_status=$? |
|
|
6101 | : "${ac_tmp:=$tmp}" |
|
|
6102 | { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status |
|
|
6103 | ' 0 |
|
|
6104 | trap 'as_fn_exit 1' 1 2 13 15 |
|
|
6105 | } |
|
|
6106 | # Create a (secure) tmp directory for tmp files. |
|
|
6107 | |
|
|
6108 | { |
|
|
6109 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
|
|
6110 | test -d "$tmp" |
|
|
6111 | } || |
|
|
6112 | { |
|
|
6113 | tmp=./conf$$-$RANDOM |
|
|
6114 | (umask 077 && mkdir "$tmp") |
|
|
6115 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 |
|
|
6116 | ac_tmp=$tmp |
|
|
6117 | |
|
|
6118 | # Set up the scripts for CONFIG_HEADERS section. |
|
|
6119 | # No need to generate them if there are no CONFIG_HEADERS. |
|
|
6120 | # This happens for instance with `./config.status Makefile'. |
|
|
6121 | if test -n "$CONFIG_HEADERS"; then |
|
|
6122 | cat >"$ac_tmp/defines.awk" <<\_ACAWK || |
|
|
6123 | BEGIN { |
|
|
6124 | _ACEOF |
|
|
6125 | |
|
|
6126 | # Transform confdefs.h into an awk script `defines.awk', embedded as |
|
|
6127 | # here-document in config.status, that substitutes the proper values into |
|
|
6128 | # config.h.in to produce config.h. |
|
|
6129 | |
|
|
6130 | # Create a delimiter string that does not exist in confdefs.h, to ease |
|
|
6131 | # handling of long lines. |
|
|
6132 | ac_delim='%!_!# ' |
|
|
6133 | for ac_last_try in false false :; do |
|
|
6134 | ac_tt=`sed -n "/$ac_delim/p" confdefs.h` |
|
|
6135 | if test -z "$ac_tt"; then |
|
|
6136 | break |
|
|
6137 | elif $ac_last_try; then |
|
|
6138 | as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 |
|
|
6139 | else |
|
|
6140 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
|
|
6141 | fi |
|
|
6142 | done |
|
|
6143 | |
|
|
6144 | # For the awk script, D is an array of macro values keyed by name, |
|
|
6145 | # likewise P contains macro parameters if any. Preserve backslash |
|
|
6146 | # newline sequences. |
|
|
6147 | |
|
|
6148 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* |
|
|
6149 | sed -n ' |
|
|
6150 | s/.\{148\}/&'"$ac_delim"'/g |
|
|
6151 | t rset |
|
|
6152 | :rset |
|
|
6153 | s/^[ ]*#[ ]*define[ ][ ]*/ / |
|
|
6154 | t def |
|
|
6155 | d |
|
|
6156 | :def |
|
|
6157 | s/\\$// |
|
|
6158 | t bsnl |
|
|
6159 | s/["\\]/\\&/g |
|
|
6160 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ |
|
|
6161 | D["\1"]=" \3"/p |
|
|
6162 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p |
|
|
6163 | d |
|
|
6164 | :bsnl |
|
|
6165 | s/["\\]/\\&/g |
|
|
6166 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ |
|
|
6167 | D["\1"]=" \3\\\\\\n"\\/p |
|
|
6168 | t cont |
|
|
6169 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p |
|
|
6170 | t cont |
|
|
6171 | d |
|
|
6172 | :cont |
|
|
6173 | n |
|
|
6174 | s/.\{148\}/&'"$ac_delim"'/g |
|
|
6175 | t clear |
|
|
6176 | :clear |
|
|
6177 | s/\\$// |
|
|
6178 | t bsnlc |
|
|
6179 | s/["\\]/\\&/g; s/^/"/; s/$/"/p |
|
|
6180 | d |
|
|
6181 | :bsnlc |
|
|
6182 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p |
|
|
6183 | b cont |
|
|
6184 | ' <confdefs.h | sed ' |
|
|
6185 | s/'"$ac_delim"'/"\\\ |
|
|
6186 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 |
|
|
6187 | |
|
|
6188 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
|
|
6189 | for (key in D) D_is_set[key] = 1 |
|
|
6190 | FS = "" |
|
|
6191 | } |
|
|
6192 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { |
|
|
6193 | line = \$ 0 |
|
|
6194 | split(line, arg, " ") |
|
|
6195 | if (arg[1] == "#") { |
|
|
6196 | defundef = arg[2] |
|
|
6197 | mac1 = arg[3] |
|
|
6198 | } else { |
|
|
6199 | defundef = substr(arg[1], 2) |
|
|
6200 | mac1 = arg[2] |
|
|
6201 | } |
|
|
6202 | split(mac1, mac2, "(") #) |
|
|
6203 | macro = mac2[1] |
|
|
6204 | prefix = substr(line, 1, index(line, defundef) - 1) |
|
|
6205 | if (D_is_set[macro]) { |
|
|
6206 | # Preserve the white space surrounding the "#". |
|
|
6207 | print prefix "define", macro P[macro] D[macro] |
|
|
6208 | next |
|
|
6209 | } else { |
|
|
6210 | # Replace #undef with comments. This is necessary, for example, |
|
|
6211 | # in the case of _POSIX_SOURCE, which is predefined and required |
|
|
6212 | # on some systems where configure will not decide to define it. |
|
|
6213 | if (defundef == "undef") { |
|
|
6214 | print "/*", prefix defundef, macro, "*/" |
|
|
6215 | next |
|
|
6216 | } |
|
|
6217 | } |
|
|
6218 | } |
|
|
6219 | { print } |
|
|
6220 | _ACAWK |
|
|
6221 | _ACEOF |
|
|
6222 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
|
|
6223 | as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 |
|
|
6224 | fi # test -n "$CONFIG_HEADERS" |
|
|
6225 | |
|
|
6226 | |
|
|
6227 | eval set X " :H $CONFIG_HEADERS " |
|
|
6228 | shift |
|
|
6229 | for ac_tag |
|
|
6230 | do |
|
|
6231 | case $ac_tag in |
|
|
6232 | :[FHLC]) ac_mode=$ac_tag; continue;; |
|
|
6233 | esac |
|
|
6234 | case $ac_mode$ac_tag in |
|
|
6235 | :[FHL]*:*);; |
|
|
6236 | :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; |
|
|
6237 | :[FH]-) ac_tag=-:-;; |
|
|
6238 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; |
|
|
6239 | esac |
|
|
6240 | ac_save_IFS=$IFS |
|
|
6241 | IFS=: |
|
|
6242 | set x $ac_tag |
|
|
6243 | IFS=$ac_save_IFS |
|
|
6244 | shift |
|
|
6245 | ac_file=$1 |
|
|
6246 | shift |
|
|
6247 | |
|
|
6248 | case $ac_mode in |
|
|
6249 | :L) ac_source=$1;; |
|
|
6250 | :[FH]) |
|
|
6251 | ac_file_inputs= |
|
|
6252 | for ac_f |
|
|
6253 | do |
|
|
6254 | case $ac_f in |
|
|
6255 | -) ac_f="$ac_tmp/stdin";; |
|
|
6256 | *) # Look for the file first in the build tree, then in the source tree |
|
|
6257 | # (if the path is not absolute). The absolute path cannot be DOS-style, |
|
|
6258 | # because $ac_f cannot contain `:'. |
|
|
6259 | test -f "$ac_f" || |
|
|
6260 | case $ac_f in |
|
|
6261 | [\\/$]*) false;; |
|
|
6262 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; |
|
|
6263 | esac || |
|
|
6264 | as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; |
|
|
6265 | esac |
|
|
6266 | case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac |
|
|
6267 | as_fn_append ac_file_inputs " '$ac_f'" |
|
|
6268 | done |
|
|
6269 | |
|
|
6270 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
|
|
6271 | # use $as_me), people would be surprised to read: |
|
|
6272 | # /* config.h. Generated by config.status. */ |
|
|
6273 | configure_input='Generated from '` |
|
|
6274 | printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' |
|
|
6275 | `' by configure.' |
|
|
6276 | if test x"$ac_file" != x-; then |
|
|
6277 | configure_input="$ac_file. $configure_input" |
|
|
6278 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 |
|
|
6279 | printf "%s\n" "$as_me: creating $ac_file" >&6;} |
|
|
6280 | fi |
|
|
6281 | # Neutralize special characters interpreted by sed in replacement strings. |
|
|
6282 | case $configure_input in #( |
|
|
6283 | *\&* | *\|* | *\\* ) |
|
|
6284 | ac_sed_conf_input=`printf "%s\n" "$configure_input" | |
|
|
6285 | sed 's/[\\\\&|]/\\\\&/g'`;; #( |
|
|
6286 | *) ac_sed_conf_input=$configure_input;; |
|
|
6287 | esac |
|
|
6288 | |
|
|
6289 | case $ac_tag in |
|
|
6290 | *:-:* | *:-) cat >"$ac_tmp/stdin" \ |
|
|
6291 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; |
|
|
6292 | esac |
|
|
6293 | ;; |
|
|
6294 | esac |
|
|
6295 | |
|
|
6296 | ac_dir=`$as_dirname -- "$ac_file" || |
|
|
6297 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
|
|
6298 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
|
|
6299 | X"$ac_file" : 'X\(//\)$' \| \ |
|
|
6300 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
|
|
6301 | printf "%s\n" X"$ac_file" | |
|
|
6302 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
|
|
6303 | s//\1/ |
|
|
6304 | q |
|
|
6305 | } |
|
|
6306 | /^X\(\/\/\)[^/].*/{ |
|
|
6307 | s//\1/ |
|
|
6308 | q |
|
|
6309 | } |
|
|
6310 | /^X\(\/\/\)$/{ |
|
|
6311 | s//\1/ |
|
|
6312 | q |
|
|
6313 | } |
|
|
6314 | /^X\(\/\).*/{ |
|
|
6315 | s//\1/ |
|
|
6316 | q |
|
|
6317 | } |
|
|
6318 | s/.*/./; q'` |
|
|
6319 | as_dir="$ac_dir"; as_fn_mkdir_p |
3710 | ac_builddir=. |
6320 | ac_builddir=. |
3711 | |
6321 | |
3712 | case "$ac_dir" in |
6322 | case "$ac_dir" in |
3713 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
6323 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
3714 | *) |
6324 | *) |
3715 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
6325 | ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` |
3716 | # A ".." for each directory in $ac_dir_suffix. |
6326 | # A ".." for each directory in $ac_dir_suffix. |
3717 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` |
6327 | ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
3718 | case $ac_top_builddir_sub in |
6328 | case $ac_top_builddir_sub in |
3719 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
6329 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
3720 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
6330 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
3721 | esac ;; |
6331 | esac ;; |
3722 | esac |
6332 | esac |
… | |
… | |
3746 | |
6356 | |
3747 | :H) |
6357 | :H) |
3748 | # |
6358 | # |
3749 | # CONFIG_HEADER |
6359 | # CONFIG_HEADER |
3750 | # |
6360 | # |
3751 | _ACEOF |
|
|
3752 | |
|
|
3753 | # Transform confdefs.h into a sed script `conftest.defines', that |
|
|
3754 | # substitutes the proper values into config.h.in to produce config.h. |
|
|
3755 | rm -f conftest.defines conftest.tail |
|
|
3756 | # First, append a space to every undef/define line, to ease matching. |
|
|
3757 | echo 's/$/ /' >conftest.defines |
|
|
3758 | # Then, protect against being on the right side of a sed subst, or in |
|
|
3759 | # an unquoted here document, in config.status. If some macros were |
|
|
3760 | # called several times there might be several #defines for the same |
|
|
3761 | # symbol, which is useless. But do not sort them, since the last |
|
|
3762 | # AC_DEFINE must be honored. |
|
|
3763 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* |
|
|
3764 | # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where |
|
|
3765 | # NAME is the cpp macro being defined, VALUE is the value it is being given. |
|
|
3766 | # PARAMS is the parameter list in the macro definition--in most cases, it's |
|
|
3767 | # just an empty string. |
|
|
3768 | ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*' |
|
|
3769 | ac_dB='\\)[ (].*,\\1define\\2' |
|
|
3770 | ac_dC=' ' |
|
|
3771 | ac_dD=' ,' |
|
|
3772 | |
|
|
3773 | uniq confdefs.h | |
|
|
3774 | sed -n ' |
|
|
3775 | t rset |
|
|
3776 | :rset |
|
|
3777 | s/^[ ]*#[ ]*define[ ][ ]*// |
|
|
3778 | t ok |
|
|
3779 | d |
|
|
3780 | :ok |
|
|
3781 | s/[\\&,]/\\&/g |
|
|
3782 | s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p |
|
|
3783 | s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p |
|
|
3784 | ' >>conftest.defines |
|
|
3785 | |
|
|
3786 | # Remove the space that was appended to ease matching. |
|
|
3787 | # Then replace #undef with comments. This is necessary, for |
|
|
3788 | # example, in the case of _POSIX_SOURCE, which is predefined and required |
|
|
3789 | # on some systems where configure will not decide to define it. |
|
|
3790 | # (The regexp can be short, since the line contains either #define or #undef.) |
|
|
3791 | echo 's/ $// |
|
|
3792 | s,^[ #]*u.*,/* & */,' >>conftest.defines |
|
|
3793 | |
|
|
3794 | # Break up conftest.defines: |
|
|
3795 | ac_max_sed_lines=50 |
|
|
3796 | |
|
|
3797 | # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1" |
|
|
3798 | # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2" |
|
|
3799 | # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1" |
|
|
3800 | # et cetera. |
|
|
3801 | ac_in='$ac_file_inputs' |
|
|
3802 | ac_out='"$tmp/out1"' |
|
|
3803 | ac_nxt='"$tmp/out2"' |
|
|
3804 | |
|
|
3805 | while : |
|
|
3806 | do |
|
|
3807 | # Write a here document: |
|
|
3808 | cat >>$CONFIG_STATUS <<_ACEOF |
|
|
3809 | # First, check the format of the line: |
|
|
3810 | cat >"\$tmp/defines.sed" <<\\CEOF |
|
|
3811 | /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def |
|
|
3812 | /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def |
|
|
3813 | b |
|
|
3814 | :def |
|
|
3815 | _ACEOF |
|
|
3816 | sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS |
|
|
3817 | echo 'CEOF |
|
|
3818 | sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS |
|
|
3819 | ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in |
|
|
3820 | sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail |
|
|
3821 | grep . conftest.tail >/dev/null || break |
|
|
3822 | rm -f conftest.defines |
|
|
3823 | mv conftest.tail conftest.defines |
|
|
3824 | done |
|
|
3825 | rm -f conftest.defines conftest.tail |
|
|
3826 | |
|
|
3827 | echo "ac_result=$ac_in" >>$CONFIG_STATUS |
|
|
3828 | cat >>$CONFIG_STATUS <<\_ACEOF |
|
|
3829 | if test x"$ac_file" != x-; then |
6361 | if test x"$ac_file" != x-; then |
3830 | echo "/* $configure_input */" >"$tmp/config.h" |
6362 | { |
3831 | cat "$ac_result" >>"$tmp/config.h" |
6363 | printf "%s\n" "/* $configure_input */" >&1 \ |
|
|
6364 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" |
|
|
6365 | } >"$ac_tmp/config.h" \ |
|
|
6366 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
3832 | if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then |
6367 | if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then |
3833 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 |
6368 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 |
3834 | echo "$as_me: $ac_file is unchanged" >&6;} |
6369 | printf "%s\n" "$as_me: $ac_file is unchanged" >&6;} |
3835 | else |
6370 | else |
3836 | rm -f $ac_file |
6371 | rm -f "$ac_file" |
3837 | mv "$tmp/config.h" $ac_file |
6372 | mv "$ac_tmp/config.h" "$ac_file" \ |
|
|
6373 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
3838 | fi |
6374 | fi |
3839 | else |
6375 | else |
3840 | echo "/* $configure_input */" |
6376 | printf "%s\n" "/* $configure_input */" >&1 \ |
3841 | cat "$ac_result" |
6377 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ |
|
|
6378 | || as_fn_error $? "could not create -" "$LINENO" 5 |
3842 | fi |
6379 | fi |
3843 | rm -f "$tmp/out12" |
|
|
3844 | ;; |
6380 | ;; |
3845 | |
6381 | |
3846 | |
6382 | |
3847 | esac |
6383 | esac |
3848 | |
6384 | |
3849 | done # for ac_tag |
6385 | done # for ac_tag |
3850 | |
6386 | |
3851 | |
6387 | |
3852 | { (exit 0); exit 0; } |
6388 | as_fn_exit 0 |
3853 | _ACEOF |
6389 | _ACEOF |
3854 | chmod +x $CONFIG_STATUS |
|
|
3855 | ac_clean_files=$ac_clean_files_save |
6390 | ac_clean_files=$ac_clean_files_save |
|
|
6391 | |
|
|
6392 | test $ac_write_fail = 0 || |
|
|
6393 | as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 |
3856 | |
6394 | |
3857 | |
6395 | |
3858 | # configure is writing to config.log, and then calls config.status. |
6396 | # configure is writing to config.log, and then calls config.status. |
3859 | # config.status does its own redirection, appending to config.log. |
6397 | # config.status does its own redirection, appending to config.log. |
3860 | # Unfortunately, on DOS this fails, as config.log is still kept open |
6398 | # Unfortunately, on DOS this fails, as config.log is still kept open |
… | |
… | |
3871 | exec 5>/dev/null |
6409 | exec 5>/dev/null |
3872 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
6410 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
3873 | exec 5>>config.log |
6411 | exec 5>>config.log |
3874 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
6412 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
3875 | # would make configure fail if this is the last instruction. |
6413 | # would make configure fail if this is the last instruction. |
3876 | $ac_cs_success || { (exit 1); exit 1; } |
6414 | $ac_cs_success || as_fn_exit 1 |
3877 | fi |
6415 | fi |
|
|
6416 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
|
|
6417 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 |
|
|
6418 | printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} |
|
|
6419 | fi |
3878 | |
6420 | |
|
|
6421 | |
|
|
6422 | |