]>
Commit | Line | Data |
---|---|---|
50e1e10f | 1 | #! /bin/sh |
50e1e10f | 2 | # Guess values for system-dependent variables and create Makefiles. |
54445dc2 | 3 | # Generated by GNU Autoconf 2.71. |
61ef2474 | 4 | # |
50e1e10f | 5 | # |
54445dc2 TT |
6 | # Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation, |
7 | # Inc. | |
61ef2474 | 8 | # |
57aa50d4 | 9 | # |
50e1e10f TT |
10 | # This configure script is free software; the Free Software Foundation |
11 | # gives unlimited permission to copy, distribute and modify it. | |
57aa50d4 TT |
12 | ## -------------------- ## |
13 | ## M4sh Initialization. ## | |
14 | ## -------------------- ## | |
b0cacab0 | 15 | |
29a5deed TT |
16 | # Be more Bourne compatible |
17 | DUALCASE=1; export DUALCASE # for MKS sh | |
54445dc2 TT |
18 | as_nop=: |
19 | if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 | |
20 | then : | |
b0cacab0 TT |
21 | emulate sh |
22 | NULLCMD=: | |
39fd3d4f | 23 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
b0cacab0 TT |
24 | # is contrary to our usage. Disable this feature. |
25 | alias -g '${1+"$@"}'='"$@"' | |
e1052144 | 26 | setopt NO_GLOB_SUBST |
54445dc2 | 27 | else $as_nop |
57aa50d4 TT |
28 | case `(set -o) 2>/dev/null` in #( |
29 | *posix*) : | |
30 | set -o posix ;; #( | |
31 | *) : | |
32 | ;; | |
29a5deed | 33 | esac |
b0cacab0 | 34 | fi |
29a5deed TT |
35 | |
36 | ||
54445dc2 TT |
37 | |
38 | # Reset variables that may have inherited troublesome values from | |
39 | # the environment. | |
40 | ||
41 | # IFS needs to be set, to space, tab, and newline, in precisely that order. | |
42 | # (If _AS_PATH_WALK were called with IFS unset, it would have the | |
43 | # side effect of setting IFS to empty, thus disabling word splitting.) | |
44 | # Quoting is to prevent editors from complaining about space-tab. | |
39fd3d4f SJR |
45 | as_nl=' |
46 | ' | |
47 | export as_nl | |
54445dc2 TT |
48 | IFS=" "" $as_nl" |
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 | |
39fd3d4f SJR |
74 | |
75 | # The user is always right. | |
54445dc2 | 76 | if ${PATH_SEPARATOR+false} :; then |
39fd3d4f SJR |
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 | } | |
e1052144 TT |
82 | fi |
83 | ||
b0cacab0 | 84 | |
e1052144 | 85 | # Find who we are. Look in the path if we contain no directory separator. |
d6a4bcb5 | 86 | as_myself= |
57aa50d4 | 87 | case $0 in #(( |
e1052144 TT |
88 | *[\\/]* ) as_myself=$0 ;; |
89 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
90 | for as_dir in $PATH | |
91 | do | |
92 | IFS=$as_save_IFS | |
54445dc2 TT |
93 | case $as_dir in #((( |
94 | '') as_dir=./ ;; | |
95 | */) ;; | |
96 | *) as_dir=$as_dir/ ;; | |
97 | esac | |
98 | test -r "$as_dir$0" && as_myself=$as_dir$0 && break | |
57aa50d4 | 99 | done |
e1052144 TT |
100 | IFS=$as_save_IFS |
101 | ||
102 | ;; | |
103 | esac | |
104 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
105 | # in which case we are not to be found in the path. | |
106 | if test "x$as_myself" = x; then | |
107 | as_myself=$0 | |
108 | fi | |
109 | if test ! -f "$as_myself"; then | |
54445dc2 | 110 | printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
57aa50d4 | 111 | exit 1 |
e1052144 TT |
112 | fi |
113 | ||
57aa50d4 | 114 | |
d6a4bcb5 TB |
115 | # Use a proper internal environment variable to ensure we don't fall |
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'. | |
54445dc2 TT |
135 | printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 |
136 | exit 255 | |
d6a4bcb5 TB |
137 | fi |
138 | # We don't want this to propagate to other subprocesses. | |
139 | { _as_can_reexec=; unset _as_can_reexec;} | |
57aa50d4 | 140 | if test "x$CONFIG_SHELL" = x; then |
54445dc2 TT |
141 | as_bourne_compatible="as_nop=: |
142 | if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 | |
143 | then : | |
57aa50d4 TT |
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 | |
54445dc2 | 150 | else \$as_nop |
57aa50d4 TT |
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.; } | |
54445dc2 TT |
170 | if ( set x; as_fn_ret_success y && test x = \"\$1\" ) |
171 | then : | |
57aa50d4 | 172 | |
54445dc2 | 173 | else \$as_nop |
57aa50d4 TT |
174 | exitcode=1; echo positional parameters were not saved. |
175 | fi | |
d6a4bcb5 | 176 | test x\$exitcode = x0 || exit 1 |
54445dc2 TT |
177 | blah=\$(echo \$(echo blah)) |
178 | test x\"\$blah\" = xblah || exit 1 | |
d6a4bcb5 | 179 | test -x / || exit 1" |
57aa50d4 TT |
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 | test \$(( 1 + 1 )) = 2 || exit 1" | |
54445dc2 TT |
185 | if (eval "$as_required") 2>/dev/null |
186 | then : | |
57aa50d4 | 187 | as_have_required=yes |
54445dc2 | 188 | else $as_nop |
57aa50d4 TT |
189 | as_have_required=no |
190 | fi | |
54445dc2 TT |
191 | if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null |
192 | then : | |
57aa50d4 | 193 | |
54445dc2 | 194 | else $as_nop |
57aa50d4 TT |
195 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
196 | as_found=false | |
197 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
198 | do | |
199 | IFS=$as_save_IFS | |
54445dc2 TT |
200 | case $as_dir in #((( |
201 | '') as_dir=./ ;; | |
202 | */) ;; | |
203 | *) as_dir=$as_dir/ ;; | |
204 | esac | |
57aa50d4 TT |
205 | as_found=: |
206 | case $as_dir in #( | |
207 | /*) | |
208 | for as_base in sh bash ksh sh5; do | |
209 | # Try only shells that exist, to save several forks. | |
54445dc2 | 210 | as_shell=$as_dir$as_base |
57aa50d4 | 211 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && |
54445dc2 TT |
212 | as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null |
213 | then : | |
57aa50d4 | 214 | CONFIG_SHELL=$as_shell as_have_required=yes |
54445dc2 TT |
215 | if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null |
216 | then : | |
57aa50d4 TT |
217 | break 2 |
218 | fi | |
219 | fi | |
220 | done;; | |
221 | esac | |
222 | as_found=false | |
223 | done | |
57aa50d4 | 224 | IFS=$as_save_IFS |
54445dc2 TT |
225 | if $as_found |
226 | then : | |
227 | ||
228 | else $as_nop | |
229 | if { test -f "$SHELL" || test -f "$SHELL.exe"; } && | |
230 | as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null | |
231 | then : | |
232 | CONFIG_SHELL=$SHELL as_have_required=yes | |
233 | fi | |
234 | fi | |
57aa50d4 TT |
235 | |
236 | ||
54445dc2 TT |
237 | if test "x$CONFIG_SHELL" != x |
238 | then : | |
d6a4bcb5 TB |
239 | export CONFIG_SHELL |
240 | # We cannot yet assume a decent shell, so we have to provide a | |
241 | # neutralization value for shells without unset; and this also | |
242 | # works around shells that cannot unset nonexistent variables. | |
243 | # Preserve -v and -x to the replacement shell. | |
244 | BASH_ENV=/dev/null | |
245 | ENV=/dev/null | |
246 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV | |
247 | case $- in # (((( | |
248 | *v*x* | *x*v* ) as_opts=-vx ;; | |
249 | *v* ) as_opts=-v ;; | |
250 | *x* ) as_opts=-x ;; | |
251 | * ) as_opts= ;; | |
252 | esac | |
253 | exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} | |
254 | # Admittedly, this is quite paranoid, since all the known shells bail | |
255 | # out after a failed `exec'. | |
54445dc2 | 256 | printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 |
d6a4bcb5 | 257 | exit 255 |
57aa50d4 TT |
258 | fi |
259 | ||
54445dc2 TT |
260 | if test x$as_have_required = xno |
261 | then : | |
262 | printf "%s\n" "$0: This script requires a shell more modern than all" | |
263 | printf "%s\n" "$0: the shells that I found on your system." | |
264 | if test ${ZSH_VERSION+y} ; then | |
265 | printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should" | |
266 | printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later." | |
57aa50d4 | 267 | else |
54445dc2 | 268 | printf "%s\n" "$0: Please tell bug-autoconf@gnu.org about your system, |
57aa50d4 TT |
269 | $0: including any error possibly output before this |
270 | $0: message. Then install a modern shell, or manually run | |
271 | $0: the script under such a shell if you do have one." | |
272 | fi | |
273 | exit 1 | |
274 | fi | |
275 | fi | |
276 | fi | |
277 | SHELL=${CONFIG_SHELL-/bin/sh} | |
278 | export SHELL | |
279 | # Unset more variables known to interfere with behavior of common tools. | |
280 | CLICOLOR_FORCE= GREP_OPTIONS= | |
281 | unset CLICOLOR_FORCE GREP_OPTIONS | |
282 | ||
283 | ## --------------------- ## | |
284 | ## M4sh Shell Functions. ## | |
285 | ## --------------------- ## | |
286 | # as_fn_unset VAR | |
287 | # --------------- | |
288 | # Portably unset VAR. | |
289 | as_fn_unset () | |
290 | { | |
291 | { eval $1=; unset $1;} | |
292 | } | |
293 | as_unset=as_fn_unset | |
294 | ||
54445dc2 | 295 | |
57aa50d4 TT |
296 | # as_fn_set_status STATUS |
297 | # ----------------------- | |
298 | # Set $? to STATUS, without forking. | |
299 | as_fn_set_status () | |
300 | { | |
301 | return $1 | |
302 | } # as_fn_set_status | |
303 | ||
304 | # as_fn_exit STATUS | |
305 | # ----------------- | |
306 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
307 | as_fn_exit () | |
308 | { | |
309 | set +e | |
310 | as_fn_set_status $1 | |
311 | exit $1 | |
312 | } # as_fn_exit | |
54445dc2 TT |
313 | # as_fn_nop |
314 | # --------- | |
315 | # Do nothing but, unlike ":", preserve the value of $?. | |
316 | as_fn_nop () | |
317 | { | |
318 | return $? | |
319 | } | |
320 | as_nop=as_fn_nop | |
57aa50d4 TT |
321 | |
322 | # as_fn_mkdir_p | |
323 | # ------------- | |
324 | # Create "$as_dir" as a directory, including parents if necessary. | |
325 | as_fn_mkdir_p () | |
326 | { | |
327 | ||
328 | case $as_dir in #( | |
329 | -*) as_dir=./$as_dir;; | |
330 | esac | |
331 | test -d "$as_dir" || eval $as_mkdir_p || { | |
332 | as_dirs= | |
333 | while :; do | |
334 | case $as_dir in #( | |
54445dc2 | 335 | *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
57aa50d4 TT |
336 | *) as_qdir=$as_dir;; |
337 | esac | |
338 | as_dirs="'$as_qdir' $as_dirs" | |
339 | as_dir=`$as_dirname -- "$as_dir" || | |
340 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
341 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
342 | X"$as_dir" : 'X\(//\)$' \| \ | |
343 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
54445dc2 | 344 | printf "%s\n" X"$as_dir" | |
57aa50d4 TT |
345 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
346 | s//\1/ | |
347 | q | |
348 | } | |
349 | /^X\(\/\/\)[^/].*/{ | |
350 | s//\1/ | |
351 | q | |
352 | } | |
353 | /^X\(\/\/\)$/{ | |
354 | s//\1/ | |
355 | q | |
356 | } | |
357 | /^X\(\/\).*/{ | |
358 | s//\1/ | |
359 | q | |
360 | } | |
361 | s/.*/./; q'` | |
362 | test -d "$as_dir" && break | |
363 | done | |
364 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
d6a4bcb5 | 365 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
57aa50d4 TT |
366 | |
367 | ||
368 | } # as_fn_mkdir_p | |
d6a4bcb5 TB |
369 | |
370 | # as_fn_executable_p FILE | |
371 | # ----------------------- | |
372 | # Test if FILE is an executable regular file. | |
373 | as_fn_executable_p () | |
374 | { | |
375 | test -f "$1" && test -x "$1" | |
376 | } # as_fn_executable_p | |
57aa50d4 TT |
377 | # as_fn_append VAR VALUE |
378 | # ---------------------- | |
379 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
380 | # advantage of any shell optimizations that allow amortized linear growth over | |
381 | # repeated appends, instead of the typical quadratic growth present in naive | |
382 | # implementations. | |
54445dc2 TT |
383 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null |
384 | then : | |
57aa50d4 TT |
385 | eval 'as_fn_append () |
386 | { | |
387 | eval $1+=\$2 | |
388 | }' | |
54445dc2 | 389 | else $as_nop |
57aa50d4 TT |
390 | as_fn_append () |
391 | { | |
392 | eval $1=\$$1\$2 | |
393 | } | |
394 | fi # as_fn_append | |
395 | ||
396 | # as_fn_arith ARG... | |
397 | # ------------------ | |
398 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
399 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
400 | # must be portable across $(()) and expr. | |
54445dc2 TT |
401 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null |
402 | then : | |
57aa50d4 TT |
403 | eval 'as_fn_arith () |
404 | { | |
405 | as_val=$(( $* )) | |
406 | }' | |
54445dc2 | 407 | else $as_nop |
57aa50d4 TT |
408 | as_fn_arith () |
409 | { | |
410 | as_val=`expr "$@" || test $? -eq 1` | |
411 | } | |
412 | fi # as_fn_arith | |
413 | ||
54445dc2 TT |
414 | # as_fn_nop |
415 | # --------- | |
416 | # Do nothing but, unlike ":", preserve the value of $?. | |
417 | as_fn_nop () | |
418 | { | |
419 | return $? | |
420 | } | |
421 | as_nop=as_fn_nop | |
57aa50d4 | 422 | |
d6a4bcb5 TB |
423 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
424 | # ---------------------------------------- | |
57aa50d4 TT |
425 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
426 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
d6a4bcb5 | 427 | # script with STATUS, using 1 if that was 0. |
57aa50d4 TT |
428 | as_fn_error () |
429 | { | |
d6a4bcb5 TB |
430 | as_status=$1; test $as_status -eq 0 && as_status=1 |
431 | if test "$4"; then | |
432 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
54445dc2 | 433 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 |
57aa50d4 | 434 | fi |
54445dc2 | 435 | printf "%s\n" "$as_me: error: $2" >&2 |
57aa50d4 TT |
436 | as_fn_exit $as_status |
437 | } # as_fn_error | |
438 | ||
e1052144 TT |
439 | if expr a : '\(a\)' >/dev/null 2>&1 && |
440 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
b0cacab0 TT |
441 | as_expr=expr |
442 | else | |
443 | as_expr=false | |
444 | fi | |
445 | ||
e1052144 | 446 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
b0cacab0 TT |
447 | as_basename=basename |
448 | else | |
449 | as_basename=false | |
450 | fi | |
451 | ||
57aa50d4 TT |
452 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
453 | as_dirname=dirname | |
454 | else | |
455 | as_dirname=false | |
456 | fi | |
b0cacab0 | 457 | |
e1052144 | 458 | as_me=`$as_basename -- "$0" || |
b0cacab0 TT |
459 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
460 | X"$0" : 'X\(//\)$' \| \ | |
e1052144 | 461 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
54445dc2 | 462 | printf "%s\n" X/"$0" | |
e1052144 TT |
463 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
464 | s//\1/ | |
465 | q | |
466 | } | |
467 | /^X\/\(\/\/\)$/{ | |
468 | s//\1/ | |
469 | q | |
470 | } | |
471 | /^X\/\(\/\).*/{ | |
472 | s//\1/ | |
473 | q | |
474 | } | |
475 | s/.*/./; q'` | |
b0cacab0 | 476 | |
57aa50d4 TT |
477 | # Avoid depending upon Character Ranges. |
478 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
479 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
480 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
481 | as_cr_digits='0123456789' | |
482 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
b0cacab0 | 483 | |
b0cacab0 | 484 | |
57aa50d4 TT |
485 | as_lineno_1=$LINENO as_lineno_1a=$LINENO |
486 | as_lineno_2=$LINENO as_lineno_2a=$LINENO | |
487 | eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && | |
488 | test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { | |
489 | # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) | |
490 | sed -n ' | |
491 | p | |
492 | /[$]LINENO/= | |
493 | ' <$as_myself | | |
494 | sed ' | |
495 | s/[$]LINENO.*/&-/ | |
496 | t lineno | |
497 | b | |
498 | :lineno | |
499 | N | |
500 | :loop | |
501 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
502 | t loop | |
503 | s/-\n.*// | |
504 | ' >$as_me.lineno && | |
505 | chmod +x "$as_me.lineno" || | |
54445dc2 | 506 | { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } |
e1052144 | 507 | |
d6a4bcb5 TB |
508 | # If we had to re-execute with $CONFIG_SHELL, we're ensured to have |
509 | # already done that, so ensure we don't try to do so again and fall | |
510 | # in an infinite loop. This has already happened in practice. | |
511 | _as_can_reexec=no; export _as_can_reexec | |
57aa50d4 TT |
512 | # Don't try to exec as it changes $[0], causing all sort of problems |
513 | # (the dirname of $[0] is not the place where we might find the | |
514 | # original and so on. Autoconf is especially sensitive to this). | |
515 | . "./$as_me.lineno" | |
516 | # Exit status is that of the last command. | |
517 | exit | |
e1052144 TT |
518 | } |
519 | ||
54445dc2 TT |
520 | |
521 | # Determine whether it's possible to make 'echo' print without a newline. | |
522 | # These variables are no longer used directly by Autoconf, but are AC_SUBSTed | |
523 | # for compatibility with existing Makefiles. | |
57aa50d4 TT |
524 | ECHO_C= ECHO_N= ECHO_T= |
525 | case `echo -n x` in #((((( | |
526 | -n*) | |
527 | case `echo 'xy\c'` in | |
528 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
529 | xy) ECHO_C='\c';; | |
530 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
531 | ECHO_T=' ';; | |
532 | esac;; | |
533 | *) | |
534 | ECHO_N='-n';; | |
535 | esac | |
b0cacab0 | 536 | |
54445dc2 TT |
537 | # For backward compatibility with old third-party macros, we provide |
538 | # the shell variables $as_echo and $as_echo_n. New code should use | |
539 | # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. | |
540 | as_echo='printf %s\n' | |
541 | as_echo_n='printf %s' | |
542 | ||
543 | ||
57aa50d4 TT |
544 | rm -f conf$$ conf$$.exe conf$$.file |
545 | if test -d conf$$.dir; then | |
546 | rm -f conf$$.dir/conf$$.file | |
547 | else | |
548 | rm -f conf$$.dir | |
549 | mkdir conf$$.dir 2>/dev/null | |
e1052144 | 550 | fi |
57aa50d4 TT |
551 | if (echo >conf$$.file) 2>/dev/null; then |
552 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
553 | as_ln_s='ln -s' | |
554 | # ... but there are two gotchas: | |
555 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
556 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
d6a4bcb5 | 557 | # In both cases, we have to default to `cp -pR'. |
57aa50d4 | 558 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
d6a4bcb5 | 559 | as_ln_s='cp -pR' |
57aa50d4 TT |
560 | elif ln conf$$.file conf$$ 2>/dev/null; then |
561 | as_ln_s=ln | |
562 | else | |
d6a4bcb5 | 563 | as_ln_s='cp -pR' |
57aa50d4 | 564 | fi |
e1052144 | 565 | else |
d6a4bcb5 | 566 | as_ln_s='cp -pR' |
e1052144 | 567 | fi |
57aa50d4 TT |
568 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
569 | rmdir conf$$.dir 2>/dev/null | |
b0cacab0 | 570 | |
57aa50d4 TT |
571 | if mkdir -p . 2>/dev/null; then |
572 | as_mkdir_p='mkdir -p "$as_dir"' | |
573 | else | |
574 | test -d ./-p && rmdir ./-p | |
575 | as_mkdir_p=false | |
e1052144 TT |
576 | fi |
577 | ||
d6a4bcb5 TB |
578 | as_test_x='test -x' |
579 | as_executable_p=as_fn_executable_p | |
e1052144 | 580 | |
57aa50d4 TT |
581 | # Sed expression to map a string onto a valid CPP name. |
582 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
e1052144 | 583 | |
57aa50d4 TT |
584 | # Sed expression to map a string onto a valid variable name. |
585 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
e1052144 | 586 | |
29a5deed | 587 | |
61ef2474 TT |
588 | test -n "$DJDIR" || exec 7<&0 </dev/null |
589 | exec 6>&1 | |
b0cacab0 TT |
590 | |
591 | # Name of the host. | |
d6a4bcb5 | 592 | # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, |
b0cacab0 TT |
593 | # so uname gets run too. |
594 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
50e1e10f | 595 | |
b0cacab0 TT |
596 | # |
597 | # Initializations. | |
598 | # | |
50e1e10f | 599 | ac_default_prefix=/usr/local |
e1052144 | 600 | ac_clean_files= |
b0cacab0 | 601 | ac_config_libobj_dir=. |
e1052144 | 602 | LIBOBJS= |
b0cacab0 TT |
603 | cross_compiling=no |
604 | subdirs= | |
605 | MFLAGS= | |
606 | MAKEFLAGS= | |
b0cacab0 | 607 | |
b0cacab0 | 608 | # Identity of this package. |
54445dc2 TT |
609 | PACKAGE_NAME='' |
610 | PACKAGE_TARNAME='' | |
611 | PACKAGE_VERSION='' | |
612 | PACKAGE_STRING='' | |
613 | PACKAGE_BUGREPORT='' | |
614 | PACKAGE_URL='' | |
b0cacab0 TT |
615 | |
616 | ac_unique_file="version.h" | |
617 | # Factoring default headers for most tests. | |
618 | ac_includes_default="\ | |
54445dc2 TT |
619 | #include <stddef.h> |
620 | #ifdef HAVE_STDIO_H | |
621 | # include <stdio.h> | |
b0cacab0 | 622 | #endif |
54445dc2 | 623 | #ifdef HAVE_STDLIB_H |
b0cacab0 | 624 | # include <stdlib.h> |
b0cacab0 | 625 | #endif |
29a5deed | 626 | #ifdef HAVE_STRING_H |
b0cacab0 TT |
627 | # include <string.h> |
628 | #endif | |
29a5deed | 629 | #ifdef HAVE_INTTYPES_H |
b0cacab0 | 630 | # include <inttypes.h> |
e1052144 | 631 | #endif |
29a5deed | 632 | #ifdef HAVE_STDINT_H |
e1052144 | 633 | # include <stdint.h> |
b0cacab0 | 634 | #endif |
54445dc2 TT |
635 | #ifdef HAVE_STRINGS_H |
636 | # include <strings.h> | |
637 | #endif | |
638 | #ifdef HAVE_SYS_TYPES_H | |
639 | # include <sys/types.h> | |
640 | #endif | |
641 | #ifdef HAVE_SYS_STAT_H | |
642 | # include <sys/stat.h> | |
643 | #endif | |
29a5deed | 644 | #ifdef HAVE_UNISTD_H |
b0cacab0 TT |
645 | # include <unistd.h> |
646 | #endif" | |
647 | ||
54445dc2 | 648 | ac_header_c_list= |
93613951 | 649 | gt_needs= |
54445dc2 | 650 | ac_func_c_list= |
39fd3d4f | 651 | ac_subst_vars='LTLIBOBJS |
e1052144 | 652 | LIBOBJS |
d1d44c14 | 653 | OS_IO_FILE |
a2df5894 DW |
654 | systemd_system_unit_dir |
655 | have_systemd | |
656 | systemd_LIBS | |
657 | systemd_CFLAGS | |
658 | crond_dir | |
659 | have_crond | |
5ce368f0 DW |
660 | pkg_udev_rules_dir |
661 | have_udev | |
662 | udev_LIBS | |
663 | udev_CFLAGS | |
fd1677e8 TT |
664 | LDFLAGS_SHLIB |
665 | CFLAGS_STLIB | |
666 | CFLAGS_SHLIB | |
39fd3d4f SJR |
667 | BUILD_LDFLAGS |
668 | BUILD_CFLAGS | |
d1154eb4 | 669 | INCLUDES |
39fd3d4f | 670 | DO_TEST_SUITE |
fd1677e8 | 671 | LDFLAGS_STATIC |
39fd3d4f SJR |
672 | root_sysconfdir |
673 | root_libdir | |
674 | root_sbindir | |
675 | root_bindir | |
676 | root_prefix | |
5ce368f0 | 677 | E2SCRUB_CMT |
39fd3d4f SJR |
678 | UNIX_CMT |
679 | CYGWIN_CMT | |
680 | LINUX_CMT | |
2869485b TT |
681 | FUZZING_CMT |
682 | fuzzer_ldflags | |
683 | fuzzer_cflags | |
684 | have_fuzzer | |
685 | ac_ct_CXX | |
686 | CXXFLAGS | |
687 | CXX | |
bcca786b DW |
688 | threadsan_ldflags |
689 | threadsan_cflags | |
690 | have_threadsan | |
5e666e3d DW |
691 | addrsan_ldflags |
692 | addrsan_cflags | |
693 | have_addrsan | |
1c2a76ae DW |
694 | ubsan_ldflags |
695 | ubsan_cflags | |
696 | have_ubsan | |
4aece328 DW |
697 | lto_ldflags |
698 | lto_cflags | |
699 | have_lto | |
700 | gcc_ranlib | |
701 | gcc_ar | |
39fd3d4f SJR |
702 | UNI_DIFF_OPTS |
703 | SEM_INIT_LIB | |
81cbf1ef DW |
704 | FUSE_CMT |
705 | FUSE_LIB | |
c94da047 | 706 | CLOCK_GETTIME_LIB |
b291c11f | 707 | MAGIC_LIB |
39fd3d4f | 708 | SOCKET_LIB |
2dd680f3 | 709 | SIZEOF_TIME_T |
cc68e8a6 | 710 | SIZEOF_OFF_T |
39fd3d4f SJR |
711 | SIZEOF_LONG_LONG |
712 | SIZEOF_LONG | |
713 | SIZEOF_INT | |
714 | SIZEOF_SHORT | |
ec3a69bb | 715 | DD |
39fd3d4f SJR |
716 | BUILD_CC |
717 | MAKEINFO | |
718 | STRIP | |
e598c29b | 719 | RANLIB |
39fd3d4f SJR |
720 | AR |
721 | LDCONFIG | |
722 | PERL | |
39fd3d4f SJR |
723 | AWK |
724 | CHMOD | |
725 | RM | |
726 | CP | |
727 | MV | |
728 | LN_S | |
3fb16e74 | 729 | mkdir_p |
39fd3d4f | 730 | LN |
bcb915b0 TT |
731 | ifNotGNUmake |
732 | ifGNUmake | |
39fd3d4f SJR |
733 | BINARY_TYPE |
734 | POSUB | |
735 | LTLIBINTL | |
736 | LIBINTL | |
737 | INTLLIBS | |
93613951 TT |
738 | LTLIBICONV |
739 | LIBICONV | |
e598c29b | 740 | INTL_MACOSX_LIBS |
93613951 | 741 | XGETTEXT_EXTRA_OPTIONS |
bdcd5f22 | 742 | MSGMERGE_FOR_MSGFMT_OPTION |
39fd3d4f | 743 | MSGMERGE |
93613951 | 744 | XGETTEXT_015 |
39fd3d4f | 745 | XGETTEXT |
93613951 | 746 | GMSGFMT_015 |
39fd3d4f SJR |
747 | GMSGFMT |
748 | MSGFMT | |
93613951 | 749 | GETTEXT_MACRO_VERSION |
39fd3d4f | 750 | USE_NLS |
93613951 | 751 | MKDIR_P |
39fd3d4f SJR |
752 | INSTALL_DATA |
753 | INSTALL_SCRIPT | |
754 | INSTALL_PROGRAM | |
755 | SET_MAKE | |
756 | VERSION | |
757 | PACKAGE | |
758 | GETTEXT_PACKAGE | |
749f0712 TT |
759 | TDB_MAN_COMMENT |
760 | TDB_CMT | |
39fd3d4f | 761 | UUIDD_CMT |
bdcd5f22 TT |
762 | PTHREAD_CFLAGS |
763 | PTHREAD_LIBS | |
54445dc2 | 764 | PTHREAD_CXX |
bdcd5f22 TT |
765 | PTHREAD_CC |
766 | ax_pthread_config | |
54445dc2 TT |
767 | EGREP |
768 | GREP | |
bdcd5f22 | 769 | SED |
39fd3d4f SJR |
770 | E2INITRD_MAN |
771 | E2INITRD_PROG | |
772 | FSCK_MAN | |
773 | FSCK_PROG | |
8d9c50c5 | 774 | DEFRAG_CMT |
39fd3d4f SJR |
775 | RESIZER_CMT |
776 | IMAGER_CMT | |
777 | DEBUGFS_CMT | |
feb235e0 | 778 | SUBSET_CMT |
0afb9be6 | 779 | ALL_CMT |
39fd3d4f SJR |
780 | BLKID_CMT |
781 | DEPPROFILED_LIBBLKID | |
782 | PROFILED_LIBBLKID | |
783 | DEPSTATIC_LIBBLKID | |
784 | STATIC_LIBBLKID | |
785 | DEPLIBBLKID | |
786 | LIBBLKID | |
787 | UUID_CMT | |
788 | DEPPROFILED_LIBUUID | |
789 | PROFILED_LIBUUID | |
790 | DEPSTATIC_LIBUUID | |
791 | STATIC_LIBUUID | |
792 | DEPLIBUUID | |
793 | LIBUUID | |
93613951 TT |
794 | PKG_CONFIG_LIBDIR |
795 | PKG_CONFIG_PATH | |
39fd3d4f | 796 | PKG_CONFIG |
b9e66a18 | 797 | DEV_FEATURES_CMT |
39fd3d4f SJR |
798 | TEST_IO_CMT |
799 | PRIVATE_LIBS_CMT | |
800 | LDFLAG_DYNAMIC | |
801 | PROFILED_LIB_EXT | |
802 | STATIC_LIB_EXT | |
803 | LIB_EXT | |
39fd3d4f SJR |
804 | PROFILE_CMT |
805 | BSDLIB_CMT | |
806 | ELF_CMT | |
c13351f6 | 807 | Q |
c1986ecb | 808 | ES |
c13351f6 | 809 | E |
5aa6c3f6 | 810 | LINK_BUILD_FLAGS |
183c73b0 | 811 | SYMLINK_RELATIVE |
5aa6c3f6 | 812 | LINK_INSTALL_FLAGS |
39fd3d4f | 813 | MAINTAINER_CMT |
39fd3d4f | 814 | CPP |
9b3018a8 | 815 | RDYNAMIC |
57aa50d4 | 816 | DLOPEN_LIB |
39fd3d4f SJR |
817 | host_os |
818 | host_vendor | |
819 | host_cpu | |
820 | host | |
821 | build_os | |
822 | build_vendor | |
823 | build_cpu | |
824 | build | |
5ce368f0 | 825 | E2FSPROGS_DATE |
39fd3d4f SJR |
826 | E2FSPROGS_PKGVER |
827 | E2FSPROGS_VERSION | |
828 | E2FSPROGS_DAY | |
829 | E2FSPROGS_MONTH | |
830 | E2FSPROGS_YEAR | |
54445dc2 TT |
831 | OBJEXT |
832 | EXEEXT | |
833 | ac_ct_CC | |
834 | CPPFLAGS | |
835 | LDFLAGS | |
836 | CFLAGS | |
837 | CC | |
39fd3d4f SJR |
838 | target_alias |
839 | host_alias | |
840 | build_alias | |
841 | LIBS | |
842 | ECHO_T | |
843 | ECHO_N | |
844 | ECHO_C | |
845 | DEFS | |
846 | mandir | |
847 | localedir | |
848 | libdir | |
849 | psdir | |
850 | pdfdir | |
851 | dvidir | |
852 | htmldir | |
853 | infodir | |
854 | docdir | |
855 | oldincludedir | |
856 | includedir | |
2ab53829 | 857 | runstatedir |
39fd3d4f SJR |
858 | localstatedir |
859 | sharedstatedir | |
860 | sysconfdir | |
861 | datadir | |
862 | datarootdir | |
863 | libexecdir | |
864 | sbindir | |
865 | bindir | |
866 | program_transform_name | |
867 | prefix | |
868 | exec_prefix | |
57aa50d4 | 869 | PACKAGE_URL |
39fd3d4f SJR |
870 | PACKAGE_BUGREPORT |
871 | PACKAGE_STRING | |
872 | PACKAGE_VERSION | |
873 | PACKAGE_TARNAME | |
874 | PACKAGE_NAME | |
875 | PATH_SEPARATOR | |
876 | SHELL' | |
e1052144 TT |
877 | ac_subst_files='MCONFIG |
878 | MAKEFILE_ELF | |
879 | MAKEFILE_BSDLIB | |
880 | MAKEFILE_PROFILE | |
e1052144 | 881 | MAKEFILE_LIBRARY |
488c75a6 TT |
882 | ASM_TYPES_HEADER |
883 | PUBLIC_CONFIG_HEADER' | |
39fd3d4f SJR |
884 | ac_user_opts=' |
885 | enable_option_checking | |
886 | with_diet_libc | |
887 | with_cc | |
39fd3d4f SJR |
888 | with_ccopts |
889 | with_ldopts | |
890 | with_root_prefix | |
891 | enable_maintainer_mode | |
5aa6c3f6 | 892 | enable_symlink_install |
91d11da1 | 893 | enable_relative_symlinks |
183c73b0 | 894 | enable_symlink_relative_symlinks |
5aa6c3f6 | 895 | enable_symlink_build |
c13351f6 | 896 | enable_verbose_makecmds |
39fd3d4f SJR |
897 | enable_elf_shlibs |
898 | enable_bsd_shlibs | |
899 | enable_profile | |
fedfb27f | 900 | enable_gcov |
fd1677e8 | 901 | enable_hardening |
39fd3d4f SJR |
902 | enable_jbd_debug |
903 | enable_blkid_debug | |
904 | enable_testio_debug | |
b9e66a18 | 905 | enable_developer_features |
39fd3d4f SJR |
906 | enable_libuuid |
907 | enable_libblkid | |
0afb9be6 | 908 | enable_subset |
3df6014a | 909 | enable_backtrace |
39fd3d4f SJR |
910 | enable_debugfs |
911 | enable_imager | |
912 | enable_resizer | |
8d9c50c5 | 913 | enable_defrag |
39fd3d4f SJR |
914 | enable_fsck |
915 | enable_e2initrd_helper | |
916 | enable_tls | |
bdcd5f22 | 917 | with_pthread |
39fd3d4f | 918 | enable_uuidd |
d6a4bcb5 | 919 | enable_mmp |
749f0712 | 920 | enable_tdb |
1625bf42 TB |
921 | enable_bmap_stats |
922 | enable_bmap_stats_ops | |
39fd3d4f SJR |
923 | enable_nls |
924 | with_gnu_ld | |
925 | enable_rpath | |
926 | with_libiconv_prefix | |
39fd3d4f | 927 | with_libintl_prefix |
81cbf1ef | 928 | enable_fuse2fs |
4aece328 | 929 | enable_lto |
1c2a76ae | 930 | enable_ubsan |
5e666e3d | 931 | enable_addrsan |
bcca786b | 932 | enable_threadsan |
2869485b | 933 | enable_fuzzing |
55e00a25 | 934 | with_multiarch |
5ce368f0 | 935 | with_udev_rules_dir |
a2df5894 DW |
936 | with_crond_dir |
937 | with_systemd_unit_dir | |
a22e7f16 | 938 | enable_largefile |
39fd3d4f | 939 | ' |
e1052144 TT |
940 | ac_precious_vars='build_alias |
941 | host_alias | |
942 | target_alias | |
943 | CC | |
944 | CFLAGS | |
945 | LDFLAGS | |
29a5deed | 946 | LIBS |
e1052144 | 947 | CPPFLAGS |
14b596d4 | 948 | CPP |
93613951 TT |
949 | PKG_CONFIG |
950 | PKG_CONFIG_PATH | |
5ce368f0 | 951 | PKG_CONFIG_LIBDIR |
2869485b TT |
952 | CXX |
953 | CXXFLAGS | |
954 | CCC | |
5ce368f0 | 955 | udev_CFLAGS |
a2df5894 DW |
956 | udev_LIBS |
957 | systemd_CFLAGS | |
958 | systemd_LIBS' | |
e1052144 | 959 | |
50e1e10f TT |
960 | |
961 | # Initialize some variables set by options. | |
b0cacab0 TT |
962 | ac_init_help= |
963 | ac_init_version=false | |
39fd3d4f SJR |
964 | ac_unrecognized_opts= |
965 | ac_unrecognized_sep= | |
50e1e10f TT |
966 | # The variables have the same names as the options, with |
967 | # dashes changed to underlines. | |
b0cacab0 | 968 | cache_file=/dev/null |
50e1e10f | 969 | exec_prefix=NONE |
50e1e10f | 970 | no_create= |
50e1e10f TT |
971 | no_recursion= |
972 | prefix=NONE | |
973 | program_prefix=NONE | |
974 | program_suffix=NONE | |
975 | program_transform_name=s,x,x, | |
976 | silent= | |
977 | site= | |
978 | srcdir= | |
50e1e10f TT |
979 | verbose= |
980 | x_includes=NONE | |
981 | x_libraries=NONE | |
b0cacab0 TT |
982 | |
983 | # Installation directory options. | |
984 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
985 | # and all the variables that are supposed to be based on exec_prefix | |
986 | # by default will actually change. | |
987 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
e1052144 | 988 | # (The list follows the same order as the GNU Coding Standards.) |
21c84b71 TT |
989 | bindir='${exec_prefix}/bin' |
990 | sbindir='${exec_prefix}/sbin' | |
991 | libexecdir='${exec_prefix}/libexec' | |
e1052144 TT |
992 | datarootdir='${prefix}/share' |
993 | datadir='${datarootdir}' | |
21c84b71 TT |
994 | sysconfdir='${prefix}/etc' |
995 | sharedstatedir='${prefix}/com' | |
996 | localstatedir='${prefix}/var' | |
2ab53829 | 997 | runstatedir='${localstatedir}/run' |
21c84b71 TT |
998 | includedir='${prefix}/include' |
999 | oldincludedir='/usr/include' | |
e1052144 TT |
1000 | docdir='${datarootdir}/doc/${PACKAGE}' |
1001 | infodir='${datarootdir}/info' | |
1002 | htmldir='${docdir}' | |
1003 | dvidir='${docdir}' | |
1004 | pdfdir='${docdir}' | |
1005 | psdir='${docdir}' | |
1006 | libdir='${exec_prefix}/lib' | |
1007 | localedir='${datarootdir}/locale' | |
1008 | mandir='${datarootdir}/man' | |
50e1e10f | 1009 | |
50e1e10f | 1010 | ac_prev= |
e1052144 | 1011 | ac_dashdash= |
50e1e10f TT |
1012 | for ac_option |
1013 | do | |
50e1e10f TT |
1014 | # If the previous option needs an argument, assign it. |
1015 | if test -n "$ac_prev"; then | |
e1052144 | 1016 | eval $ac_prev=\$ac_option |
50e1e10f TT |
1017 | ac_prev= |
1018 | continue | |
1019 | fi | |
1020 | ||
e1052144 | 1021 | case $ac_option in |
d6a4bcb5 TB |
1022 | *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
1023 | *=) ac_optarg= ;; | |
1024 | *) ac_optarg=yes ;; | |
e1052144 | 1025 | esac |
50e1e10f | 1026 | |
e1052144 TT |
1027 | case $ac_dashdash$ac_option in |
1028 | --) | |
1029 | ac_dashdash=yes ;; | |
50e1e10f | 1030 | |
21c84b71 TT |
1031 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
1032 | ac_prev=bindir ;; | |
1033 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
b0cacab0 | 1034 | bindir=$ac_optarg ;; |
21c84b71 TT |
1035 | |
1036 | -build | --build | --buil | --bui | --bu) | |
b0cacab0 | 1037 | ac_prev=build_alias ;; |
21c84b71 | 1038 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
b0cacab0 | 1039 | build_alias=$ac_optarg ;; |
50e1e10f TT |
1040 | |
1041 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
1042 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
1043 | ac_prev=cache_file ;; | |
1044 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
1045 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
b0cacab0 TT |
1046 | cache_file=$ac_optarg ;; |
1047 | ||
1048 | --config-cache | -C) | |
1049 | cache_file=config.cache ;; | |
50e1e10f | 1050 | |
e1052144 | 1051 | -datadir | --datadir | --datadi | --datad) |
21c84b71 | 1052 | ac_prev=datadir ;; |
e1052144 | 1053 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
b0cacab0 | 1054 | datadir=$ac_optarg ;; |
21c84b71 | 1055 | |
e1052144 TT |
1056 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
1057 | | --dataroo | --dataro | --datar) | |
1058 | ac_prev=datarootdir ;; | |
1059 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
1060 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
1061 | datarootdir=$ac_optarg ;; | |
1062 | ||
50e1e10f | 1063 | -disable-* | --disable-*) |
39fd3d4f | 1064 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
50e1e10f | 1065 | # Reject names that are not valid shell variable names. |
39fd3d4f | 1066 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
54445dc2 | 1067 | as_fn_error $? "invalid feature name: \`$ac_useropt'" |
39fd3d4f | 1068 | ac_useropt_orig=$ac_useropt |
54445dc2 | 1069 | ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` |
39fd3d4f SJR |
1070 | case $ac_user_opts in |
1071 | *" | |
1072 | "enable_$ac_useropt" | |
1073 | "*) ;; | |
1074 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | |
1075 | ac_unrecognized_sep=', ';; | |
1076 | esac | |
1077 | eval enable_$ac_useropt=no ;; | |
e1052144 TT |
1078 | |
1079 | -docdir | --docdir | --docdi | --doc | --do) | |
1080 | ac_prev=docdir ;; | |
1081 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
1082 | docdir=$ac_optarg ;; | |
1083 | ||
1084 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
1085 | ac_prev=dvidir ;; | |
1086 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
1087 | dvidir=$ac_optarg ;; | |
50e1e10f TT |
1088 | |
1089 | -enable-* | --enable-*) | |
39fd3d4f | 1090 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
50e1e10f | 1091 | # Reject names that are not valid shell variable names. |
39fd3d4f | 1092 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
54445dc2 | 1093 | as_fn_error $? "invalid feature name: \`$ac_useropt'" |
39fd3d4f | 1094 | ac_useropt_orig=$ac_useropt |
54445dc2 | 1095 | ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` |
39fd3d4f SJR |
1096 | case $ac_user_opts in |
1097 | *" | |
1098 | "enable_$ac_useropt" | |
1099 | "*) ;; | |
1100 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | |
1101 | ac_unrecognized_sep=', ';; | |
1102 | esac | |
1103 | eval enable_$ac_useropt=\$ac_optarg ;; | |
50e1e10f TT |
1104 | |
1105 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
1106 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
1107 | | --exec | --exe | --ex) | |
1108 | ac_prev=exec_prefix ;; | |
1109 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
1110 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
1111 | | --exec=* | --exe=* | --ex=*) | |
b0cacab0 | 1112 | exec_prefix=$ac_optarg ;; |
50e1e10f TT |
1113 | |
1114 | -gas | --gas | --ga | --g) | |
1115 | # Obsolete; use --with-gas. | |
1116 | with_gas=yes ;; | |
1117 | ||
b0cacab0 TT |
1118 | -help | --help | --hel | --he | -h) |
1119 | ac_init_help=long ;; | |
1120 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
1121 | ac_init_help=recursive ;; | |
1122 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
1123 | ac_init_help=short ;; | |
50e1e10f TT |
1124 | |
1125 | -host | --host | --hos | --ho) | |
b0cacab0 | 1126 | ac_prev=host_alias ;; |
50e1e10f | 1127 | -host=* | --host=* | --hos=* | --ho=*) |
b0cacab0 | 1128 | host_alias=$ac_optarg ;; |
50e1e10f | 1129 | |
e1052144 TT |
1130 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
1131 | ac_prev=htmldir ;; | |
1132 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
1133 | | --ht=*) | |
1134 | htmldir=$ac_optarg ;; | |
1135 | ||
21c84b71 TT |
1136 | -includedir | --includedir | --includedi | --included | --include \ |
1137 | | --includ | --inclu | --incl | --inc) | |
1138 | ac_prev=includedir ;; | |
1139 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
1140 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
b0cacab0 | 1141 | includedir=$ac_optarg ;; |
21c84b71 TT |
1142 | |
1143 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
1144 | ac_prev=infodir ;; | |
1145 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
b0cacab0 | 1146 | infodir=$ac_optarg ;; |
21c84b71 TT |
1147 | |
1148 | -libdir | --libdir | --libdi | --libd) | |
1149 | ac_prev=libdir ;; | |
1150 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
b0cacab0 | 1151 | libdir=$ac_optarg ;; |
21c84b71 TT |
1152 | |
1153 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
1154 | | --libexe | --libex | --libe) | |
1155 | ac_prev=libexecdir ;; | |
1156 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
1157 | | --libexe=* | --libex=* | --libe=*) | |
b0cacab0 | 1158 | libexecdir=$ac_optarg ;; |
21c84b71 | 1159 | |
e1052144 TT |
1160 | -localedir | --localedir | --localedi | --localed | --locale) |
1161 | ac_prev=localedir ;; | |
1162 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
1163 | localedir=$ac_optarg ;; | |
1164 | ||
21c84b71 | 1165 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
e1052144 | 1166 | | --localstate | --localstat | --localsta | --localst | --locals) |
21c84b71 TT |
1167 | ac_prev=localstatedir ;; |
1168 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
e1052144 | 1169 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
b0cacab0 | 1170 | localstatedir=$ac_optarg ;; |
21c84b71 TT |
1171 | |
1172 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
1173 | ac_prev=mandir ;; | |
1174 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
b0cacab0 | 1175 | mandir=$ac_optarg ;; |
21c84b71 | 1176 | |
50e1e10f TT |
1177 | -nfp | --nfp | --nf) |
1178 | # Obsolete; use --without-fp. | |
1179 | with_fp=no ;; | |
1180 | ||
1181 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
b0cacab0 | 1182 | | --no-cr | --no-c | -n) |
50e1e10f TT |
1183 | no_create=yes ;; |
1184 | ||
1185 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
1186 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
1187 | no_recursion=yes ;; | |
1188 | ||
21c84b71 TT |
1189 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
1190 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
1191 | | --oldin | --oldi | --old | --ol | --o) | |
1192 | ac_prev=oldincludedir ;; | |
1193 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
1194 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
1195 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
b0cacab0 | 1196 | oldincludedir=$ac_optarg ;; |
21c84b71 | 1197 | |
50e1e10f TT |
1198 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
1199 | ac_prev=prefix ;; | |
1200 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
b0cacab0 | 1201 | prefix=$ac_optarg ;; |
50e1e10f TT |
1202 | |
1203 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
1204 | | --program-pre | --program-pr | --program-p) | |
1205 | ac_prev=program_prefix ;; | |
1206 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
1207 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
b0cacab0 | 1208 | program_prefix=$ac_optarg ;; |
50e1e10f TT |
1209 | |
1210 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
1211 | | --program-suf | --program-su | --program-s) | |
1212 | ac_prev=program_suffix ;; | |
1213 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
1214 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
b0cacab0 | 1215 | program_suffix=$ac_optarg ;; |
50e1e10f TT |
1216 | |
1217 | -program-transform-name | --program-transform-name \ | |
1218 | | --program-transform-nam | --program-transform-na \ | |
1219 | | --program-transform-n | --program-transform- \ | |
1220 | | --program-transform | --program-transfor \ | |
1221 | | --program-transfo | --program-transf \ | |
1222 | | --program-trans | --program-tran \ | |
1223 | | --progr-tra | --program-tr | --program-t) | |
1224 | ac_prev=program_transform_name ;; | |
1225 | -program-transform-name=* | --program-transform-name=* \ | |
1226 | | --program-transform-nam=* | --program-transform-na=* \ | |
1227 | | --program-transform-n=* | --program-transform-=* \ | |
1228 | | --program-transform=* | --program-transfor=* \ | |
1229 | | --program-transfo=* | --program-transf=* \ | |
1230 | | --program-trans=* | --program-tran=* \ | |
1231 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
b0cacab0 | 1232 | program_transform_name=$ac_optarg ;; |
50e1e10f | 1233 | |
e1052144 TT |
1234 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
1235 | ac_prev=pdfdir ;; | |
1236 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
1237 | pdfdir=$ac_optarg ;; | |
1238 | ||
1239 | -psdir | --psdir | --psdi | --psd | --ps) | |
1240 | ac_prev=psdir ;; | |
1241 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
1242 | psdir=$ac_optarg ;; | |
1243 | ||
50e1e10f TT |
1244 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
1245 | | -silent | --silent | --silen | --sile | --sil) | |
1246 | silent=yes ;; | |
1247 | ||
2ab53829 TT |
1248 | -runstatedir | --runstatedir | --runstatedi | --runstated \ |
1249 | | --runstate | --runstat | --runsta | --runst | --runs \ | |
1250 | | --run | --ru | --r) | |
1251 | ac_prev=runstatedir ;; | |
1252 | -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ | |
1253 | | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ | |
1254 | | --run=* | --ru=* | --r=*) | |
1255 | runstatedir=$ac_optarg ;; | |
1256 | ||
21c84b71 TT |
1257 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
1258 | ac_prev=sbindir ;; | |
1259 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
1260 | | --sbi=* | --sb=*) | |
b0cacab0 | 1261 | sbindir=$ac_optarg ;; |
21c84b71 TT |
1262 | |
1263 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
1264 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
1265 | | --sharedst | --shareds | --shared | --share | --shar \ | |
1266 | | --sha | --sh) | |
1267 | ac_prev=sharedstatedir ;; | |
1268 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
1269 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
1270 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
1271 | | --sha=* | --sh=*) | |
b0cacab0 | 1272 | sharedstatedir=$ac_optarg ;; |
21c84b71 | 1273 | |
50e1e10f TT |
1274 | -site | --site | --sit) |
1275 | ac_prev=site ;; | |
1276 | -site=* | --site=* | --sit=*) | |
b0cacab0 | 1277 | site=$ac_optarg ;; |
50e1e10f TT |
1278 | |
1279 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
1280 | ac_prev=srcdir ;; | |
1281 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
b0cacab0 | 1282 | srcdir=$ac_optarg ;; |
50e1e10f | 1283 | |
21c84b71 TT |
1284 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
1285 | | --syscon | --sysco | --sysc | --sys | --sy) | |
1286 | ac_prev=sysconfdir ;; | |
1287 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
1288 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
b0cacab0 | 1289 | sysconfdir=$ac_optarg ;; |
21c84b71 | 1290 | |
50e1e10f | 1291 | -target | --target | --targe | --targ | --tar | --ta | --t) |
b0cacab0 | 1292 | ac_prev=target_alias ;; |
50e1e10f | 1293 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
b0cacab0 | 1294 | target_alias=$ac_optarg ;; |
50e1e10f TT |
1295 | |
1296 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1297 | verbose=yes ;; | |
1298 | ||
b0cacab0 TT |
1299 | -version | --version | --versio | --versi | --vers | -V) |
1300 | ac_init_version=: ;; | |
50e1e10f TT |
1301 | |
1302 | -with-* | --with-*) | |
39fd3d4f | 1303 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
50e1e10f | 1304 | # Reject names that are not valid shell variable names. |
39fd3d4f | 1305 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
54445dc2 | 1306 | as_fn_error $? "invalid package name: \`$ac_useropt'" |
39fd3d4f | 1307 | ac_useropt_orig=$ac_useropt |
54445dc2 | 1308 | ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` |
39fd3d4f SJR |
1309 | case $ac_user_opts in |
1310 | *" | |
1311 | "with_$ac_useropt" | |
1312 | "*) ;; | |
1313 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | |
1314 | ac_unrecognized_sep=', ';; | |
1315 | esac | |
1316 | eval with_$ac_useropt=\$ac_optarg ;; | |
50e1e10f TT |
1317 | |
1318 | -without-* | --without-*) | |
39fd3d4f | 1319 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
50e1e10f | 1320 | # Reject names that are not valid shell variable names. |
39fd3d4f | 1321 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
54445dc2 | 1322 | as_fn_error $? "invalid package name: \`$ac_useropt'" |
39fd3d4f | 1323 | ac_useropt_orig=$ac_useropt |
54445dc2 | 1324 | ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` |
39fd3d4f SJR |
1325 | case $ac_user_opts in |
1326 | *" | |
1327 | "with_$ac_useropt" | |
1328 | "*) ;; | |
1329 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | |
1330 | ac_unrecognized_sep=', ';; | |
1331 | esac | |
1332 | eval with_$ac_useropt=no ;; | |
50e1e10f TT |
1333 | |
1334 | --x) | |
1335 | # Obsolete; use --with-x. | |
1336 | with_x=yes ;; | |
1337 | ||
1338 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1339 | | --x-incl | --x-inc | --x-in | --x-i) | |
1340 | ac_prev=x_includes ;; | |
1341 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1342 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
b0cacab0 | 1343 | x_includes=$ac_optarg ;; |
50e1e10f TT |
1344 | |
1345 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1346 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1347 | ac_prev=x_libraries ;; | |
1348 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1349 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
b0cacab0 | 1350 | x_libraries=$ac_optarg ;; |
50e1e10f | 1351 | |
d6a4bcb5 TB |
1352 | -*) as_fn_error $? "unrecognized option: \`$ac_option' |
1353 | Try \`$0 --help' for more information" | |
50e1e10f TT |
1354 | ;; |
1355 | ||
b0cacab0 TT |
1356 | *=*) |
1357 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1358 | # Reject names that are not valid shell variable names. | |
57aa50d4 TT |
1359 | case $ac_envvar in #( |
1360 | '' | [0-9]* | *[!_$as_cr_alnum]* ) | |
d6a4bcb5 | 1361 | as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; |
57aa50d4 | 1362 | esac |
e1052144 | 1363 | eval $ac_envvar=\$ac_optarg |
b0cacab0 TT |
1364 | export $ac_envvar ;; |
1365 | ||
21c84b71 | 1366 | *) |
b0cacab0 | 1367 | # FIXME: should be removed in autoconf 3.0. |
54445dc2 | 1368 | printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2 |
b0cacab0 | 1369 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
54445dc2 | 1370 | printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2 |
d6a4bcb5 | 1371 | : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" |
50e1e10f TT |
1372 | ;; |
1373 | ||
1374 | esac | |
1375 | done | |
1376 | ||
1377 | if test -n "$ac_prev"; then | |
b0cacab0 | 1378 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
d6a4bcb5 | 1379 | as_fn_error $? "missing argument to $ac_option" |
50e1e10f | 1380 | fi |
50e1e10f | 1381 | |
39fd3d4f SJR |
1382 | if test -n "$ac_unrecognized_opts"; then |
1383 | case $enable_option_checking in | |
1384 | no) ;; | |
d6a4bcb5 | 1385 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; |
54445dc2 | 1386 | *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
39fd3d4f SJR |
1387 | esac |
1388 | fi | |
1389 | ||
1390 | # Check all directory arguments for consistency. | |
e1052144 TT |
1391 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
1392 | datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1393 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
2ab53829 | 1394 | libdir localedir mandir runstatedir |
50e1e10f | 1395 | do |
e1052144 | 1396 | eval ac_val=\$$ac_var |
39fd3d4f SJR |
1397 | # Remove trailing slashes. |
1398 | case $ac_val in | |
1399 | */ ) | |
1400 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | |
1401 | eval $ac_var=\$ac_val;; | |
1402 | esac | |
1403 | # Be sure to have absolute directory names. | |
b0cacab0 | 1404 | case $ac_val in |
e1052144 TT |
1405 | [\\/$]* | ?:[\\/]* ) continue;; |
1406 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
50e1e10f | 1407 | esac |
d6a4bcb5 | 1408 | as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" |
50e1e10f TT |
1409 | done |
1410 | ||
b0cacab0 TT |
1411 | # There might be people who depend on the old broken behavior: `$host' |
1412 | # used to hold the argument of --host etc. | |
1413 | # FIXME: To remove some day. | |
1414 | build=$build_alias | |
1415 | host=$host_alias | |
1416 | target=$target_alias | |
1417 | ||
1418 | # FIXME: To remove some day. | |
1419 | if test "x$host_alias" != x; then | |
1420 | if test "x$build_alias" = x; then | |
1421 | cross_compiling=maybe | |
b0cacab0 TT |
1422 | elif test "x$build_alias" != "x$host_alias"; then |
1423 | cross_compiling=yes | |
1424 | fi | |
1425 | fi | |
50e1e10f | 1426 | |
b0cacab0 TT |
1427 | ac_tool_prefix= |
1428 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1429 | ||
1430 | test "$silent" = yes && exec 6>/dev/null | |
50e1e10f | 1431 | |
50e1e10f | 1432 | |
e1052144 TT |
1433 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
1434 | ac_ls_di=`ls -di .` && | |
1435 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
d6a4bcb5 | 1436 | as_fn_error $? "working directory cannot be determined" |
e1052144 | 1437 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
d6a4bcb5 | 1438 | as_fn_error $? "pwd does not report name of working directory" |
e1052144 TT |
1439 | |
1440 | ||
50e1e10f TT |
1441 | # Find the source files, if location was not specified. |
1442 | if test -z "$srcdir"; then | |
1443 | ac_srcdir_defaulted=yes | |
e1052144 | 1444 | # Try the directory containing this script, then the parent directory. |
39fd3d4f SJR |
1445 | ac_confdir=`$as_dirname -- "$as_myself" || |
1446 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
1447 | X"$as_myself" : 'X\(//\)[^/]' \| \ | |
1448 | X"$as_myself" : 'X\(//\)$' \| \ | |
1449 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | |
54445dc2 | 1450 | printf "%s\n" X"$as_myself" | |
e1052144 TT |
1451 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
1452 | s//\1/ | |
1453 | q | |
1454 | } | |
1455 | /^X\(\/\/\)[^/].*/{ | |
1456 | s//\1/ | |
1457 | q | |
1458 | } | |
1459 | /^X\(\/\/\)$/{ | |
1460 | s//\1/ | |
1461 | q | |
1462 | } | |
1463 | /^X\(\/\).*/{ | |
1464 | s//\1/ | |
1465 | q | |
1466 | } | |
1467 | s/.*/./; q'` | |
50e1e10f | 1468 | srcdir=$ac_confdir |
e1052144 | 1469 | if test ! -r "$srcdir/$ac_unique_file"; then |
50e1e10f TT |
1470 | srcdir=.. |
1471 | fi | |
1472 | else | |
1473 | ac_srcdir_defaulted=no | |
1474 | fi | |
e1052144 TT |
1475 | if test ! -r "$srcdir/$ac_unique_file"; then |
1476 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
d6a4bcb5 | 1477 | as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" |
50e1e10f | 1478 | fi |
e1052144 TT |
1479 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
1480 | ac_abs_confdir=`( | |
d6a4bcb5 | 1481 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" |
e1052144 TT |
1482 | pwd)` |
1483 | # When building in place, set srcdir=. | |
1484 | if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1485 | srcdir=. | |
1486 | fi | |
1487 | # Remove unnecessary trailing slashes from srcdir. | |
1488 | # Double slashes in file names in object file debugging info | |
1489 | # mess up M-x gdb in Emacs. | |
1490 | case $srcdir in | |
1491 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1492 | esac | |
1493 | for ac_var in $ac_precious_vars; do | |
1494 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1495 | eval ac_env_${ac_var}_value=\$${ac_var} | |
1496 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1497 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1498 | done | |
b0cacab0 TT |
1499 | |
1500 | # | |
1501 | # Report the --help message. | |
1502 | # | |
1503 | if test "$ac_init_help" = "long"; then | |
1504 | # Omit some internal or obsolete options to make the list less imposing. | |
1505 | # This message is too long to be a string in the A/UX 3.1 sh. | |
1506 | cat <<_ACEOF | |
1507 | \`configure' configures this package to adapt to many kinds of systems. | |
1508 | ||
1509 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
1510 | ||
1511 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
1512 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
1513 | ||
1514 | Defaults for the options are specified in brackets. | |
1515 | ||
1516 | Configuration: | |
1517 | -h, --help display this help and exit | |
1518 | --help=short display options specific to this package | |
1519 | --help=recursive display the short help of all the included packages | |
1520 | -V, --version display version information and exit | |
d6a4bcb5 | 1521 | -q, --quiet, --silent do not print \`checking ...' messages |
b0cacab0 TT |
1522 | --cache-file=FILE cache test results in FILE [disabled] |
1523 | -C, --config-cache alias for \`--cache-file=config.cache' | |
1524 | -n, --no-create do not create output files | |
1525 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1526 | ||
b0cacab0 TT |
1527 | Installation directories: |
1528 | --prefix=PREFIX install architecture-independent files in PREFIX | |
39fd3d4f | 1529 | [$ac_default_prefix] |
b0cacab0 | 1530 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
39fd3d4f | 1531 | [PREFIX] |
b0cacab0 TT |
1532 | |
1533 | By default, \`make install' will install all the files in | |
1534 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1535 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1536 | for instance \`--prefix=\$HOME'. | |
1537 | ||
1538 | For better control, use the options below. | |
1539 | ||
1540 | Fine tuning of the installation directories: | |
39fd3d4f SJR |
1541 | --bindir=DIR user executables [EPREFIX/bin] |
1542 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1543 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
1544 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
1545 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1546 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
2ab53829 | 1547 | --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] |
39fd3d4f SJR |
1548 | --libdir=DIR object code libraries [EPREFIX/lib] |
1549 | --includedir=DIR C header files [PREFIX/include] | |
1550 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
1551 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | |
1552 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1553 | --infodir=DIR info documentation [DATAROOTDIR/info] | |
1554 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1555 | --mandir=DIR man documentation [DATAROOTDIR/man] | |
1556 | --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] | |
1557 | --htmldir=DIR html documentation [DOCDIR] | |
1558 | --dvidir=DIR dvi documentation [DOCDIR] | |
1559 | --pdfdir=DIR pdf documentation [DOCDIR] | |
1560 | --psdir=DIR ps documentation [DOCDIR] | |
b0cacab0 TT |
1561 | _ACEOF |
1562 | ||
1563 | cat <<\_ACEOF | |
1564 | ||
1565 | System types: | |
1566 | --build=BUILD configure for building on BUILD [guessed] | |
1567 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
1568 | _ACEOF | |
1569 | fi | |
1570 | ||
1571 | if test -n "$ac_init_help"; then | |
1572 | ||
1573 | cat <<\_ACEOF | |
1574 | ||
1575 | Optional Features: | |
39fd3d4f | 1576 | --disable-option-checking ignore unrecognized --enable/--with options |
b0cacab0 TT |
1577 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
1578 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
8c9e2921 TT |
1579 | --enable-maintainer-mode |
1580 | enable makefile rules useful for maintainers | |
1581 | --enable-symlink-install | |
1582 | use symlinks when installing instead of hard links | |
1583 | --enable-relative-symlinks | |
1584 | use relative symlinks when installing | |
91d11da1 | 1585 | |
5aa6c3f6 | 1586 | --enable-symlink-build use symlinks while building instead of hard links |
8c9e2921 TT |
1587 | --enable-verbose-makecmds |
1588 | enable verbose make command output | |
1589 | --enable-elf-shlibs select ELF shared libraries | |
1590 | --enable-bsd-shlibs select BSD shared libraries | |
1591 | --enable-profile build profiling libraries | |
1592 | --enable-gcov build for coverage testing using gcov | |
1593 | --enable-hardening build for coverage testing using gcov | |
1594 | --enable-jbd-debug enable journal debugging | |
b0cacab0 | 1595 | --enable-blkid-debug enable blkid debugging |
8c9e2921 TT |
1596 | --disable-testio-debug disable the use of the test I/O manager for |
1597 | debugging | |
1598 | --enable-developer-features | |
1599 | enable features for use by ext4 developers | |
1600 | --enable-libuuid build and use private uuid library | |
1601 | --enable-libblkid build and use private blkid library | |
1602 | --enable-subset enable subset-only build | |
1603 | --disable-backtrace disable use backtrace | |
1604 | --disable-debugfs disable support of debugfs program | |
1605 | --disable-imager disable support of e2image program | |
1606 | --disable-resizer disable support of e2resize program | |
1607 | --disable-defrag disable support of e4defrag program | |
b0cacab0 | 1608 | --enable-fsck build fsck wrapper program |
8c9e2921 TT |
1609 | --enable-e2initrd-helper |
1610 | build e2initrd-helper program | |
3249394d | 1611 | --disable-tls disable use of thread local support |
5610f992 | 1612 | --disable-uuidd disable building the uuid daemon |
d6a4bcb5 | 1613 | --disable-mmp disable support mmp, Multi Mount Protection |
749f0712 | 1614 | --disable-tdb disable tdb support |
8c9e2921 | 1615 | --disable-bmap-stats disable collection of bitmap stats |
1625bf42 | 1616 | --enable-bmap-stats-ops enable collection of additional bitmap stats |
b0cacab0 TT |
1617 | --disable-nls do not use Native Language Support |
1618 | --disable-rpath do not hardcode runtime library paths | |
8c9e2921 TT |
1619 | --disable-fuse2fs do not build fuse2fs |
1620 | --enable-lto enable link time optimization | |
1621 | --enable-ubsan enable undefined behavior sanitizer | |
1622 | --enable-addrsan enable address sanitizer | |
1623 | --enable-threadsan enable thread sanitizer | |
2869485b | 1624 | --enable-fuzzing enable fuzzing sanitizer |
a22e7f16 | 1625 | --disable-largefile omit support for large files |
b0cacab0 TT |
1626 | |
1627 | Optional Packages: | |
1628 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1629 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
3249394d | 1630 | --with-diet-libc use diet libc |
0b5b9f90 TT |
1631 | --with-cc no longer supported, use CC= instead |
1632 | --with-ccopts no longer supported, use CFLAGS= instead | |
1633 | --with-ldopts no longer supported, use LDFLAGS= instead | |
8c9e2921 TT |
1634 | --with-root-prefix=PREFIX |
1635 | override prefix variable for files to be placed in | |
1636 | the root | |
bdcd5f22 | 1637 | --without-pthread disable use of pthread support |
93613951 | 1638 | --with-gnu-ld assume the C compiler uses GNU ld [default=no] |
b0cacab0 TT |
1639 | --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib |
1640 | --without-libiconv-prefix don't search for libiconv in includedir and libdir | |
b0cacab0 TT |
1641 | --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib |
1642 | --without-libintl-prefix don't search for libintl in includedir and libdir | |
8c9e2921 | 1643 | --with-multiarch=ARCH specify the multiarch triplet |
5ce368f0 DW |
1644 | --with-udev-rules-dir[=DIR] |
1645 | Install udev rules into DIR. | |
a2df5894 DW |
1646 | --with-crond-dir[=DIR] Install system crontabs into DIR. |
1647 | --with-systemd-unit-dir[=DIR] | |
1648 | Install systemd system units into DIR. | |
b0cacab0 TT |
1649 | |
1650 | Some influential environment variables: | |
1651 | CC C compiler command | |
1652 | CFLAGS C compiler flags | |
1653 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1654 | nonstandard directory <lib dir> | |
29a5deed | 1655 | LIBS libraries to pass to the linker, e.g. -l<library> |
61ef2474 | 1656 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if |
e1052144 | 1657 | you have headers in a nonstandard directory <include dir> |
b0cacab0 | 1658 | CPP C preprocessor |
14b596d4 | 1659 | PKG_CONFIG path to pkg-config utility |
93613951 TT |
1660 | PKG_CONFIG_PATH |
1661 | directories to add to pkg-config's search path | |
1662 | PKG_CONFIG_LIBDIR | |
1663 | path overriding pkg-config's built-in search path | |
2869485b TT |
1664 | CXX C++ compiler command |
1665 | CXXFLAGS C++ compiler flags | |
5ce368f0 DW |
1666 | udev_CFLAGS C compiler flags for udev, overriding pkg-config |
1667 | udev_LIBS linker flags for udev, overriding pkg-config | |
a2df5894 DW |
1668 | systemd_CFLAGS |
1669 | C compiler flags for systemd, overriding pkg-config | |
1670 | systemd_LIBS | |
1671 | linker flags for systemd, overriding pkg-config | |
b0cacab0 TT |
1672 | |
1673 | Use these variables to override the choices made by `configure' or to help | |
1674 | it to find libraries and programs with nonstandard names/locations. | |
1675 | ||
57aa50d4 | 1676 | Report bugs to the package provider. |
b0cacab0 | 1677 | _ACEOF |
e1052144 | 1678 | ac_status=$? |
b0cacab0 TT |
1679 | fi |
1680 | ||
1681 | if test "$ac_init_help" = "recursive"; then | |
1682 | # If there are subdirs, report their specific --help. | |
b0cacab0 | 1683 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
39fd3d4f SJR |
1684 | test -d "$ac_dir" || |
1685 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | |
1686 | continue | |
b0cacab0 TT |
1687 | ac_builddir=. |
1688 | ||
e1052144 TT |
1689 | case "$ac_dir" in |
1690 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1691 | *) | |
54445dc2 | 1692 | ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` |
e1052144 | 1693 | # A ".." for each directory in $ac_dir_suffix. |
54445dc2 | 1694 | ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
e1052144 TT |
1695 | case $ac_top_builddir_sub in |
1696 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1697 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1698 | esac ;; | |
1699 | esac | |
1700 | ac_abs_top_builddir=$ac_pwd | |
1701 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1702 | # for backward compatibility: | |
1703 | ac_top_builddir=$ac_top_build_prefix | |
b0cacab0 TT |
1704 | |
1705 | case $srcdir in | |
e1052144 | 1706 | .) # We are building in place. |
b0cacab0 | 1707 | ac_srcdir=. |
e1052144 TT |
1708 | ac_top_srcdir=$ac_top_builddir_sub |
1709 | ac_abs_top_srcdir=$ac_pwd ;; | |
1710 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
b0cacab0 | 1711 | ac_srcdir=$srcdir$ac_dir_suffix; |
e1052144 TT |
1712 | ac_top_srcdir=$srcdir |
1713 | ac_abs_top_srcdir=$srcdir ;; | |
1714 | *) # Relative name. | |
1715 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1716 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1717 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
b0cacab0 | 1718 | esac |
e1052144 TT |
1719 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
1720 | ||
1721 | cd "$ac_dir" || { ac_status=$?; continue; } | |
54445dc2 TT |
1722 | # Check for configure.gnu first; this name is used for a wrapper for |
1723 | # Metaconfig's "Configure" on case-insensitive file systems. | |
e1052144 TT |
1724 | if test -f "$ac_srcdir/configure.gnu"; then |
1725 | echo && | |
1726 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
1727 | elif test -f "$ac_srcdir/configure"; then | |
1728 | echo && | |
1729 | $SHELL "$ac_srcdir/configure" --help=recursive | |
b0cacab0 | 1730 | else |
54445dc2 | 1731 | printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
e1052144 TT |
1732 | fi || ac_status=$? |
1733 | cd "$ac_pwd" || { ac_status=$?; break; } | |
b0cacab0 TT |
1734 | done |
1735 | fi | |
1736 | ||
e1052144 | 1737 | test -n "$ac_init_help" && exit $ac_status |
b0cacab0 TT |
1738 | if $ac_init_version; then |
1739 | cat <<\_ACEOF | |
e1052144 | 1740 | configure |
54445dc2 | 1741 | generated by GNU Autoconf 2.71 |
b0cacab0 | 1742 | |
54445dc2 | 1743 | Copyright (C) 2021 Free Software Foundation, Inc. |
b0cacab0 TT |
1744 | This configure script is free software; the Free Software Foundation |
1745 | gives unlimited permission to copy, distribute and modify it. | |
1746 | _ACEOF | |
e1052144 | 1747 | exit |
b0cacab0 | 1748 | fi |
b0cacab0 | 1749 | |
57aa50d4 TT |
1750 | ## ------------------------ ## |
1751 | ## Autoconf initialization. ## | |
1752 | ## ------------------------ ## | |
b0cacab0 | 1753 | |
57aa50d4 TT |
1754 | # ac_fn_c_try_compile LINENO |
1755 | # -------------------------- | |
1756 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1757 | ac_fn_c_try_compile () | |
1758 | { | |
1759 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
54445dc2 | 1760 | rm -f conftest.$ac_objext conftest.beam |
57aa50d4 TT |
1761 | if { { ac_try="$ac_compile" |
1762 | case "(($ac_try" in | |
1763 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1764 | *) ac_try_echo=$ac_try;; | |
1765 | esac | |
1766 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
54445dc2 | 1767 | printf "%s\n" "$ac_try_echo"; } >&5 |
57aa50d4 TT |
1768 | (eval "$ac_compile") 2>conftest.err |
1769 | ac_status=$? | |
1770 | if test -s conftest.err; then | |
1771 | grep -v '^ *+' conftest.err >conftest.er1 | |
1772 | cat conftest.er1 >&5 | |
1773 | mv -f conftest.er1 conftest.err | |
1774 | fi | |
54445dc2 | 1775 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
57aa50d4 TT |
1776 | test $ac_status = 0; } && { |
1777 | test -z "$ac_c_werror_flag" || | |
1778 | test ! -s conftest.err | |
54445dc2 TT |
1779 | } && test -s conftest.$ac_objext |
1780 | then : | |
57aa50d4 | 1781 | ac_retval=0 |
54445dc2 TT |
1782 | else $as_nop |
1783 | printf "%s\n" "$as_me: failed program was:" >&5 | |
57aa50d4 | 1784 | sed 's/^/| /' conftest.$ac_ext >&5 |
b0cacab0 | 1785 | |
57aa50d4 TT |
1786 | ac_retval=1 |
1787 | fi | |
d6a4bcb5 | 1788 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
61ef2474 | 1789 | as_fn_set_status $ac_retval |
57aa50d4 TT |
1790 | |
1791 | } # ac_fn_c_try_compile | |
1792 | ||
54445dc2 TT |
1793 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES |
1794 | # ------------------------------------------------------- | |
1795 | # Tests whether HEADER exists and can be compiled using the include files in | |
1796 | # INCLUDES, setting the cache variable VAR accordingly. | |
1797 | ac_fn_c_check_header_compile () | |
1798 | { | |
1799 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1800 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1801 | printf %s "checking for $2... " >&6; } | |
1802 | if eval test \${$3+y} | |
1803 | then : | |
1804 | printf %s "(cached) " >&6 | |
1805 | else $as_nop | |
1806 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1807 | /* end confdefs.h. */ | |
1808 | $4 | |
1809 | #include <$2> | |
1810 | _ACEOF | |
1811 | if ac_fn_c_try_compile "$LINENO" | |
1812 | then : | |
1813 | eval "$3=yes" | |
1814 | else $as_nop | |
1815 | eval "$3=no" | |
1816 | fi | |
1817 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext | |
1818 | fi | |
1819 | eval ac_res=\$$3 | |
1820 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1821 | printf "%s\n" "$ac_res" >&6; } | |
1822 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1823 | ||
1824 | } # ac_fn_c_check_header_compile | |
1825 | ||
57aa50d4 TT |
1826 | # ac_fn_c_try_link LINENO |
1827 | # ----------------------- | |
1828 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
1829 | ac_fn_c_try_link () | |
b0cacab0 | 1830 | { |
57aa50d4 | 1831 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
54445dc2 | 1832 | rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext |
57aa50d4 TT |
1833 | if { { ac_try="$ac_link" |
1834 | case "(($ac_try" in | |
1835 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1836 | *) ac_try_echo=$ac_try;; | |
1837 | esac | |
1838 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
54445dc2 | 1839 | printf "%s\n" "$ac_try_echo"; } >&5 |
57aa50d4 TT |
1840 | (eval "$ac_link") 2>conftest.err |
1841 | ac_status=$? | |
1842 | if test -s conftest.err; then | |
1843 | grep -v '^ *+' conftest.err >conftest.er1 | |
1844 | cat conftest.er1 >&5 | |
1845 | mv -f conftest.er1 conftest.err | |
1846 | fi | |
54445dc2 | 1847 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
57aa50d4 TT |
1848 | test $ac_status = 0; } && { |
1849 | test -z "$ac_c_werror_flag" || | |
1850 | test ! -s conftest.err | |
1851 | } && test -s conftest$ac_exeext && { | |
1852 | test "$cross_compiling" = yes || | |
d6a4bcb5 | 1853 | test -x conftest$ac_exeext |
54445dc2 TT |
1854 | } |
1855 | then : | |
57aa50d4 | 1856 | ac_retval=0 |
54445dc2 TT |
1857 | else $as_nop |
1858 | printf "%s\n" "$as_me: failed program was:" >&5 | |
57aa50d4 | 1859 | sed 's/^/| /' conftest.$ac_ext >&5 |
b0cacab0 | 1860 | |
57aa50d4 TT |
1861 | ac_retval=1 |
1862 | fi | |
1863 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
1864 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
1865 | # interfere with the next link command; also delete a directory that is | |
1866 | # left behind by Apple's compiler. We do this before executing the actions. | |
1867 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
d6a4bcb5 | 1868 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
61ef2474 | 1869 | as_fn_set_status $ac_retval |
b0cacab0 | 1870 | |
57aa50d4 | 1871 | } # ac_fn_c_try_link |
b0cacab0 | 1872 | |
57aa50d4 TT |
1873 | # ac_fn_c_try_cpp LINENO |
1874 | # ---------------------- | |
1875 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. | |
1876 | ac_fn_c_try_cpp () | |
1877 | { | |
1878 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1879 | if { { ac_try="$ac_cpp conftest.$ac_ext" | |
1880 | case "(($ac_try" in | |
1881 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1882 | *) ac_try_echo=$ac_try;; | |
1883 | esac | |
1884 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
54445dc2 | 1885 | printf "%s\n" "$ac_try_echo"; } >&5 |
57aa50d4 TT |
1886 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err |
1887 | ac_status=$? | |
1888 | if test -s conftest.err; then | |
1889 | grep -v '^ *+' conftest.err >conftest.er1 | |
1890 | cat conftest.er1 >&5 | |
1891 | mv -f conftest.er1 conftest.err | |
1892 | fi | |
54445dc2 | 1893 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
d6a4bcb5 | 1894 | test $ac_status = 0; } > conftest.i && { |
57aa50d4 TT |
1895 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
1896 | test ! -s conftest.err | |
54445dc2 TT |
1897 | } |
1898 | then : | |
57aa50d4 | 1899 | ac_retval=0 |
54445dc2 TT |
1900 | else $as_nop |
1901 | printf "%s\n" "$as_me: failed program was:" >&5 | |
57aa50d4 | 1902 | sed 's/^/| /' conftest.$ac_ext >&5 |
b0cacab0 | 1903 | |
57aa50d4 TT |
1904 | ac_retval=1 |
1905 | fi | |
d6a4bcb5 | 1906 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
61ef2474 | 1907 | as_fn_set_status $ac_retval |
b0cacab0 | 1908 | |
57aa50d4 | 1909 | } # ac_fn_c_try_cpp |
b0cacab0 | 1910 | |
57aa50d4 TT |
1911 | # ac_fn_c_try_run LINENO |
1912 | # ---------------------- | |
54445dc2 TT |
1913 | # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that |
1914 | # executables *can* be run. | |
57aa50d4 TT |
1915 | ac_fn_c_try_run () |
1916 | { | |
1917 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1918 | if { { ac_try="$ac_link" | |
1919 | case "(($ac_try" in | |
1920 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1921 | *) ac_try_echo=$ac_try;; | |
1922 | esac | |
1923 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
54445dc2 | 1924 | printf "%s\n" "$ac_try_echo"; } >&5 |
57aa50d4 TT |
1925 | (eval "$ac_link") 2>&5 |
1926 | ac_status=$? | |
54445dc2 | 1927 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
57aa50d4 TT |
1928 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' |
1929 | { { case "(($ac_try" in | |
1930 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1931 | *) ac_try_echo=$ac_try;; | |
1932 | esac | |
1933 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
54445dc2 | 1934 | printf "%s\n" "$ac_try_echo"; } >&5 |
57aa50d4 TT |
1935 | (eval "$ac_try") 2>&5 |
1936 | ac_status=$? | |
54445dc2 TT |
1937 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
1938 | test $ac_status = 0; }; } | |
1939 | then : | |
57aa50d4 | 1940 | ac_retval=0 |
54445dc2 TT |
1941 | else $as_nop |
1942 | printf "%s\n" "$as_me: program exited with status $ac_status" >&5 | |
1943 | printf "%s\n" "$as_me: failed program was:" >&5 | |
57aa50d4 | 1944 | sed 's/^/| /' conftest.$ac_ext >&5 |
b0cacab0 | 1945 | |
57aa50d4 TT |
1946 | ac_retval=$ac_status |
1947 | fi | |
1948 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
d6a4bcb5 | 1949 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
61ef2474 | 1950 | as_fn_set_status $ac_retval |
b0cacab0 | 1951 | |
57aa50d4 | 1952 | } # ac_fn_c_try_run |
b0cacab0 | 1953 | |
57aa50d4 TT |
1954 | # ac_fn_c_check_func LINENO FUNC VAR |
1955 | # ---------------------------------- | |
1956 | # Tests whether FUNC exists, setting the cache variable VAR accordingly | |
1957 | ac_fn_c_check_func () | |
1958 | { | |
1959 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
54445dc2 TT |
1960 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
1961 | printf %s "checking for $2... " >&6; } | |
1962 | if eval test \${$3+y} | |
1963 | then : | |
1964 | printf %s "(cached) " >&6 | |
1965 | else $as_nop | |
57aa50d4 TT |
1966 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1967 | /* end confdefs.h. */ | |
1968 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. | |
1969 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
1970 | #define $2 innocuous_$2 | |
b0cacab0 | 1971 | |
57aa50d4 | 1972 | /* System header to define __stub macros and hopefully few prototypes, |
54445dc2 | 1973 | which can conflict with char $2 (); below. */ |
a04eba3f | 1974 | |
54445dc2 | 1975 | #include <limits.h> |
57aa50d4 | 1976 | #undef $2 |
07a0db15 | 1977 | |
57aa50d4 TT |
1978 | /* Override any GCC internal prototype to avoid an error. |
1979 | Use char because int might match the return type of a GCC | |
1980 | builtin and then its argument prototype would still apply. */ | |
1981 | #ifdef __cplusplus | |
1982 | extern "C" | |
1983 | #endif | |
1984 | char $2 (); | |
1985 | /* The GNU C library defines this for functions which it implements | |
1986 | to always fail with ENOSYS. Some functions are actually named | |
1987 | something starting with __ and the normal name is an alias. */ | |
1988 | #if defined __stub_$2 || defined __stub___$2 | |
1989 | choke me | |
1990 | #endif | |
74becf3c | 1991 | |
57aa50d4 | 1992 | int |
54445dc2 | 1993 | main (void) |
57aa50d4 TT |
1994 | { |
1995 | return $2 (); | |
1996 | ; | |
1997 | return 0; | |
1998 | } | |
1999 | _ACEOF | |
54445dc2 TT |
2000 | if ac_fn_c_try_link "$LINENO" |
2001 | then : | |
57aa50d4 | 2002 | eval "$3=yes" |
54445dc2 | 2003 | else $as_nop |
57aa50d4 TT |
2004 | eval "$3=no" |
2005 | fi | |
54445dc2 | 2006 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
57aa50d4 TT |
2007 | conftest$ac_exeext conftest.$ac_ext |
2008 | fi | |
2009 | eval ac_res=\$$3 | |
54445dc2 TT |
2010 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
2011 | printf "%s\n" "$ac_res" >&6; } | |
d6a4bcb5 | 2012 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
93636bde | 2013 | |
57aa50d4 | 2014 | } # ac_fn_c_check_func |
93636bde | 2015 | |
e598c29b TT |
2016 | # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES |
2017 | # ---------------------------------------------------- | |
2018 | # Tries to find if the field MEMBER exists in type AGGR, after including | |
2019 | # INCLUDES, setting cache variable VAR accordingly. | |
2020 | ac_fn_c_check_member () | |
2021 | { | |
2022 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
54445dc2 TT |
2023 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 |
2024 | printf %s "checking for $2.$3... " >&6; } | |
2025 | if eval test \${$4+y} | |
2026 | then : | |
2027 | printf %s "(cached) " >&6 | |
2028 | else $as_nop | |
e598c29b TT |
2029 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
2030 | /* end confdefs.h. */ | |
2031 | $5 | |
2032 | int | |
54445dc2 | 2033 | main (void) |
e598c29b TT |
2034 | { |
2035 | static $2 ac_aggr; | |
2036 | if (ac_aggr.$3) | |
2037 | return 0; | |
2038 | ; | |
2039 | return 0; | |
2040 | } | |
2041 | _ACEOF | |
54445dc2 TT |
2042 | if ac_fn_c_try_compile "$LINENO" |
2043 | then : | |
e598c29b | 2044 | eval "$4=yes" |
54445dc2 | 2045 | else $as_nop |
e598c29b TT |
2046 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
2047 | /* end confdefs.h. */ | |
2048 | $5 | |
2049 | int | |
54445dc2 | 2050 | main (void) |
e598c29b TT |
2051 | { |
2052 | static $2 ac_aggr; | |
2053 | if (sizeof ac_aggr.$3) | |
2054 | return 0; | |
2055 | ; | |
2056 | return 0; | |
2057 | } | |
2058 | _ACEOF | |
54445dc2 TT |
2059 | if ac_fn_c_try_compile "$LINENO" |
2060 | then : | |
e598c29b | 2061 | eval "$4=yes" |
54445dc2 | 2062 | else $as_nop |
e598c29b TT |
2063 | eval "$4=no" |
2064 | fi | |
54445dc2 | 2065 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
e598c29b | 2066 | fi |
54445dc2 | 2067 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
e598c29b TT |
2068 | fi |
2069 | eval ac_res=\$$4 | |
54445dc2 TT |
2070 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
2071 | printf "%s\n" "$ac_res" >&6; } | |
e598c29b TT |
2072 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
2073 | ||
2074 | } # ac_fn_c_check_member | |
2075 | ||
2076 | # ac_fn_c_check_type LINENO TYPE VAR INCLUDES | |
2077 | # ------------------------------------------- | |
2078 | # Tests whether TYPE exists after having included INCLUDES, setting cache | |
2079 | # variable VAR accordingly. | |
2080 | ac_fn_c_check_type () | |
2081 | { | |
2082 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
54445dc2 TT |
2083 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
2084 | printf %s "checking for $2... " >&6; } | |
2085 | if eval test \${$3+y} | |
2086 | then : | |
2087 | printf %s "(cached) " >&6 | |
2088 | else $as_nop | |
e598c29b TT |
2089 | eval "$3=no" |
2090 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2091 | /* end confdefs.h. */ | |
2092 | $4 | |
2093 | int | |
54445dc2 | 2094 | main (void) |
e598c29b TT |
2095 | { |
2096 | if (sizeof ($2)) | |
2097 | return 0; | |
2098 | ; | |
2099 | return 0; | |
2100 | } | |
2101 | _ACEOF | |
54445dc2 TT |
2102 | if ac_fn_c_try_compile "$LINENO" |
2103 | then : | |
e598c29b TT |
2104 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
2105 | /* end confdefs.h. */ | |
2106 | $4 | |
2107 | int | |
54445dc2 | 2108 | main (void) |
e598c29b TT |
2109 | { |
2110 | if (sizeof (($2))) | |
2111 | return 0; | |
2112 | ; | |
2113 | return 0; | |
2114 | } | |
2115 | _ACEOF | |
54445dc2 TT |
2116 | if ac_fn_c_try_compile "$LINENO" |
2117 | then : | |
e598c29b | 2118 | |
54445dc2 | 2119 | else $as_nop |
e598c29b TT |
2120 | eval "$3=yes" |
2121 | fi | |
54445dc2 | 2122 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
e598c29b | 2123 | fi |
54445dc2 | 2124 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
e598c29b TT |
2125 | fi |
2126 | eval ac_res=\$$3 | |
54445dc2 TT |
2127 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
2128 | printf "%s\n" "$ac_res" >&6; } | |
e598c29b TT |
2129 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
2130 | ||
2131 | } # ac_fn_c_check_type | |
2132 | ||
54445dc2 TT |
2133 | # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR |
2134 | # ------------------------------------------------------------------ | |
93613951 | 2135 | # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR |
54445dc2 TT |
2136 | # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR. |
2137 | ac_fn_check_decl () | |
d1154eb4 TT |
2138 | { |
2139 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
93613951 | 2140 | as_decl_name=`echo $2|sed 's/ *(.*//'` |
54445dc2 TT |
2141 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 |
2142 | printf %s "checking whether $as_decl_name is declared... " >&6; } | |
2143 | if eval test \${$3+y} | |
2144 | then : | |
2145 | printf %s "(cached) " >&6 | |
2146 | else $as_nop | |
93613951 | 2147 | as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` |
54445dc2 TT |
2148 | eval ac_save_FLAGS=\$$6 |
2149 | as_fn_append $6 " $5" | |
93613951 | 2150 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d1154eb4 TT |
2151 | /* end confdefs.h. */ |
2152 | $4 | |
93613951 | 2153 | int |
54445dc2 | 2154 | main (void) |
93613951 TT |
2155 | { |
2156 | #ifndef $as_decl_name | |
2157 | #ifdef __cplusplus | |
2158 | (void) $as_decl_use; | |
2159 | #else | |
2160 | (void) $as_decl_name; | |
2161 | #endif | |
2162 | #endif | |
2163 | ||
2164 | ; | |
2165 | return 0; | |
2166 | } | |
d1154eb4 | 2167 | _ACEOF |
54445dc2 TT |
2168 | if ac_fn_c_try_compile "$LINENO" |
2169 | then : | |
93613951 | 2170 | eval "$3=yes" |
54445dc2 | 2171 | else $as_nop |
93613951 | 2172 | eval "$3=no" |
d1154eb4 | 2173 | fi |
54445dc2 TT |
2174 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
2175 | eval $6=\$ac_save_FLAGS | |
2176 | ||
d1154eb4 TT |
2177 | fi |
2178 | eval ac_res=\$$3 | |
54445dc2 TT |
2179 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
2180 | printf "%s\n" "$ac_res" >&6; } | |
d6a4bcb5 | 2181 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
d1154eb4 | 2182 | |
54445dc2 | 2183 | } # ac_fn_check_decl |
d1154eb4 | 2184 | |
57aa50d4 TT |
2185 | # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES |
2186 | # -------------------------------------------- | |
2187 | # Tries to find the compile-time value of EXPR in a program that includes | |
2188 | # INCLUDES, setting VAR accordingly. Returns whether the value could be | |
2189 | # computed | |
2190 | ac_fn_c_compute_int () | |
2191 | { | |
2192 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2193 | if test "$cross_compiling" = yes; then | |
2194 | # Depending upon the size, compute the lo and hi bounds. | |
2195 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2196 | /* end confdefs.h. */ | |
2197 | $4 | |
2198 | int | |
54445dc2 | 2199 | main (void) |
57aa50d4 TT |
2200 | { |
2201 | static int test_array [1 - 2 * !(($2) >= 0)]; | |
d6a4bcb5 TB |
2202 | test_array [0] = 0; |
2203 | return test_array [0]; | |
93636bde | 2204 | |
57aa50d4 TT |
2205 | ; |
2206 | return 0; | |
2207 | } | |
2208 | _ACEOF | |
54445dc2 TT |
2209 | if ac_fn_c_try_compile "$LINENO" |
2210 | then : | |
57aa50d4 TT |
2211 | ac_lo=0 ac_mid=0 |
2212 | while :; do | |
2213 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2214 | /* end confdefs.h. */ | |
2215 | $4 | |
2216 | int | |
54445dc2 | 2217 | main (void) |
57aa50d4 TT |
2218 | { |
2219 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; | |
d6a4bcb5 TB |
2220 | test_array [0] = 0; |
2221 | return test_array [0]; | |
93636bde | 2222 | |
57aa50d4 TT |
2223 | ; |
2224 | return 0; | |
2225 | } | |
2226 | _ACEOF | |
54445dc2 TT |
2227 | if ac_fn_c_try_compile "$LINENO" |
2228 | then : | |
57aa50d4 | 2229 | ac_hi=$ac_mid; break |
54445dc2 | 2230 | else $as_nop |
57aa50d4 TT |
2231 | as_fn_arith $ac_mid + 1 && ac_lo=$as_val |
2232 | if test $ac_lo -le $ac_mid; then | |
2233 | ac_lo= ac_hi= | |
2234 | break | |
2235 | fi | |
2236 | as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val | |
b0cacab0 | 2237 | fi |
54445dc2 | 2238 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
57aa50d4 | 2239 | done |
54445dc2 | 2240 | else $as_nop |
57aa50d4 TT |
2241 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
2242 | /* end confdefs.h. */ | |
2243 | $4 | |
2244 | int | |
54445dc2 | 2245 | main (void) |
57aa50d4 TT |
2246 | { |
2247 | static int test_array [1 - 2 * !(($2) < 0)]; | |
d6a4bcb5 TB |
2248 | test_array [0] = 0; |
2249 | return test_array [0]; | |
e1052144 | 2250 | |
57aa50d4 TT |
2251 | ; |
2252 | return 0; | |
2253 | } | |
2254 | _ACEOF | |
54445dc2 TT |
2255 | if ac_fn_c_try_compile "$LINENO" |
2256 | then : | |
57aa50d4 TT |
2257 | ac_hi=-1 ac_mid=-1 |
2258 | while :; do | |
2259 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2260 | /* end confdefs.h. */ | |
2261 | $4 | |
2262 | int | |
54445dc2 | 2263 | main (void) |
57aa50d4 TT |
2264 | { |
2265 | static int test_array [1 - 2 * !(($2) >= $ac_mid)]; | |
d6a4bcb5 TB |
2266 | test_array [0] = 0; |
2267 | return test_array [0]; | |
93636bde | 2268 | |
57aa50d4 TT |
2269 | ; |
2270 | return 0; | |
2271 | } | |
2272 | _ACEOF | |
54445dc2 TT |
2273 | if ac_fn_c_try_compile "$LINENO" |
2274 | then : | |
57aa50d4 | 2275 | ac_lo=$ac_mid; break |
54445dc2 | 2276 | else $as_nop |
57aa50d4 TT |
2277 | as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val |
2278 | if test $ac_mid -le $ac_hi; then | |
2279 | ac_lo= ac_hi= | |
2280 | break | |
2281 | fi | |
2282 | as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val | |
93636bde | 2283 | fi |
54445dc2 | 2284 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
57aa50d4 | 2285 | done |
54445dc2 | 2286 | else $as_nop |
57aa50d4 TT |
2287 | ac_lo= ac_hi= |
2288 | fi | |
54445dc2 | 2289 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
57aa50d4 | 2290 | fi |
54445dc2 | 2291 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
57aa50d4 TT |
2292 | # Binary search between lo and hi bounds. |
2293 | while test "x$ac_lo" != "x$ac_hi"; do | |
2294 | as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val | |
2295 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2296 | /* end confdefs.h. */ | |
2297 | $4 | |
2298 | int | |
54445dc2 | 2299 | main (void) |
57aa50d4 TT |
2300 | { |
2301 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; | |
d6a4bcb5 TB |
2302 | test_array [0] = 0; |
2303 | return test_array [0]; | |
93636bde | 2304 | |
57aa50d4 TT |
2305 | ; |
2306 | return 0; | |
2307 | } | |
2308 | _ACEOF | |
54445dc2 TT |
2309 | if ac_fn_c_try_compile "$LINENO" |
2310 | then : | |
57aa50d4 | 2311 | ac_hi=$ac_mid |
54445dc2 | 2312 | else $as_nop |
57aa50d4 TT |
2313 | as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val |
2314 | fi | |
54445dc2 | 2315 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
57aa50d4 TT |
2316 | done |
2317 | case $ac_lo in #(( | |
2318 | ?*) eval "$3=\$ac_lo"; ac_retval=0 ;; | |
2319 | '') ac_retval=1 ;; | |
927566a3 | 2320 | esac |
57aa50d4 TT |
2321 | else |
2322 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2323 | /* end confdefs.h. */ | |
2324 | $4 | |
54445dc2 TT |
2325 | static long int longval (void) { return $2; } |
2326 | static unsigned long int ulongval (void) { return $2; } | |
57aa50d4 TT |
2327 | #include <stdio.h> |
2328 | #include <stdlib.h> | |
2329 | int | |
54445dc2 | 2330 | main (void) |
57aa50d4 | 2331 | { |
927566a3 | 2332 | |
57aa50d4 TT |
2333 | FILE *f = fopen ("conftest.val", "w"); |
2334 | if (! f) | |
2335 | return 1; | |
2336 | if (($2) < 0) | |
2337 | { | |
2338 | long int i = longval (); | |
2339 | if (i != ($2)) | |
2340 | return 1; | |
2341 | fprintf (f, "%ld", i); | |
2342 | } | |
2343 | else | |
2344 | { | |
2345 | unsigned long int i = ulongval (); | |
2346 | if (i != ($2)) | |
2347 | return 1; | |
2348 | fprintf (f, "%lu", i); | |
2349 | } | |
2350 | /* Do not output a trailing newline, as this causes \r\n confusion | |
2351 | on some platforms. */ | |
2352 | return ferror (f) || fclose (f) != 0; | |
93636bde | 2353 | |
57aa50d4 TT |
2354 | ; |
2355 | return 0; | |
2356 | } | |
2357 | _ACEOF | |
54445dc2 TT |
2358 | if ac_fn_c_try_run "$LINENO" |
2359 | then : | |
57aa50d4 | 2360 | echo >>conftest.val; read $3 <conftest.val; ac_retval=0 |
54445dc2 | 2361 | else $as_nop |
57aa50d4 TT |
2362 | ac_retval=1 |
2363 | fi | |
2364 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
2365 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
2366 | rm -f conftest.val | |
93636bde | 2367 | |
57aa50d4 | 2368 | fi |
d6a4bcb5 | 2369 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
61ef2474 | 2370 | as_fn_set_status $ac_retval |
927566a3 | 2371 | |
57aa50d4 | 2372 | } # ac_fn_c_compute_int |
2869485b TT |
2373 | |
2374 | # ac_fn_cxx_try_compile LINENO | |
2375 | # ---------------------------- | |
2376 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
2377 | ac_fn_cxx_try_compile () | |
2378 | { | |
2379 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2380 | rm -f conftest.$ac_objext conftest.beam | |
2381 | if { { ac_try="$ac_compile" | |
2382 | case "(($ac_try" in | |
2383 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2384 | *) ac_try_echo=$ac_try;; | |
2385 | esac | |
2386 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2387 | printf "%s\n" "$ac_try_echo"; } >&5 | |
2388 | (eval "$ac_compile") 2>conftest.err | |
2389 | ac_status=$? | |
2390 | if test -s conftest.err; then | |
2391 | grep -v '^ *+' conftest.err >conftest.er1 | |
2392 | cat conftest.er1 >&5 | |
2393 | mv -f conftest.er1 conftest.err | |
2394 | fi | |
2395 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
2396 | test $ac_status = 0; } && { | |
2397 | test -z "$ac_cxx_werror_flag" || | |
2398 | test ! -s conftest.err | |
2399 | } && test -s conftest.$ac_objext | |
2400 | then : | |
2401 | ac_retval=0 | |
2402 | else $as_nop | |
2403 | printf "%s\n" "$as_me: failed program was:" >&5 | |
2404 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2405 | ||
2406 | ac_retval=1 | |
2407 | fi | |
2408 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
2409 | as_fn_set_status $ac_retval | |
2410 | ||
2411 | } # ac_fn_cxx_try_compile | |
54445dc2 TT |
2412 | ac_configure_args_raw= |
2413 | for ac_arg | |
2414 | do | |
2415 | case $ac_arg in | |
2416 | *\'*) | |
2417 | ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
2418 | esac | |
2419 | as_fn_append ac_configure_args_raw " '$ac_arg'" | |
2420 | done | |
2421 | ||
2422 | case $ac_configure_args_raw in | |
2423 | *$as_nl*) | |
2424 | ac_safe_unquote= ;; | |
2425 | *) | |
2426 | ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab. | |
2427 | ac_unsafe_a="$ac_unsafe_z#~" | |
2428 | ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g" | |
2429 | ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;; | |
2430 | esac | |
2431 | ||
57aa50d4 TT |
2432 | cat >config.log <<_ACEOF |
2433 | This file contains any messages produced by compilers while | |
2434 | running configure, to aid debugging if configure makes a mistake. | |
93636bde | 2435 | |
57aa50d4 | 2436 | It was created by $as_me, which was |
54445dc2 | 2437 | generated by GNU Autoconf 2.71. Invocation command line was |
07a0db15 | 2438 | |
54445dc2 | 2439 | $ $0$ac_configure_args_raw |
e1052144 | 2440 | |
57aa50d4 TT |
2441 | _ACEOF |
2442 | exec 5>>config.log | |
2443 | { | |
2444 | cat <<_ASUNAME | |
2445 | ## --------- ## | |
2446 | ## Platform. ## | |
2447 | ## --------- ## | |
0b5b9f90 | 2448 | |
57aa50d4 TT |
2449 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
2450 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
2451 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
2452 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
2453 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
0b5b9f90 | 2454 | |
57aa50d4 TT |
2455 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
2456 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
0b5b9f90 | 2457 | |
57aa50d4 TT |
2458 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
2459 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
2460 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
2461 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` | |
2462 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
2463 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
2464 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
0b5b9f90 | 2465 | |
57aa50d4 | 2466 | _ASUNAME |
b0cacab0 | 2467 | |
b0cacab0 TT |
2468 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2469 | for as_dir in $PATH | |
2470 | do | |
2471 | IFS=$as_save_IFS | |
54445dc2 TT |
2472 | case $as_dir in #((( |
2473 | '') as_dir=./ ;; | |
2474 | */) ;; | |
2475 | *) as_dir=$as_dir/ ;; | |
2476 | esac | |
2477 | printf "%s\n" "PATH: $as_dir" | |
57aa50d4 | 2478 | done |
e1052144 | 2479 | IFS=$as_save_IFS |
b0cacab0 | 2480 | |
57aa50d4 | 2481 | } >&5 |
74becf3c | 2482 | |
57aa50d4 | 2483 | cat >&5 <<_ACEOF |
e1052144 | 2484 | |
b0cacab0 | 2485 | |
57aa50d4 TT |
2486 | ## ----------- ## |
2487 | ## Core tests. ## | |
2488 | ## ----------- ## | |
b0cacab0 | 2489 | |
57aa50d4 | 2490 | _ACEOF |
b0cacab0 | 2491 | |
57aa50d4 TT |
2492 | |
2493 | # Keep a trace of the command line. | |
2494 | # Strip out --no-create and --no-recursion so they do not pile up. | |
2495 | # Strip out --silent because we don't want to record it for future runs. | |
2496 | # Also quote any args containing shell meta-characters. | |
2497 | # Make two passes to allow for proper duplicate-argument suppression. | |
2498 | ac_configure_args= | |
2499 | ac_configure_args0= | |
2500 | ac_configure_args1= | |
2501 | ac_must_keep_next=false | |
2502 | for ac_pass in 1 2 | |
b0cacab0 | 2503 | do |
57aa50d4 TT |
2504 | for ac_arg |
2505 | do | |
2506 | case $ac_arg in | |
2507 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
2508 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
2509 | | -silent | --silent | --silen | --sile | --sil) | |
2510 | continue ;; | |
2511 | *\'*) | |
54445dc2 | 2512 | ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
57aa50d4 TT |
2513 | esac |
2514 | case $ac_pass in | |
2515 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; | |
2516 | 2) | |
2517 | as_fn_append ac_configure_args1 " '$ac_arg'" | |
2518 | if test $ac_must_keep_next = true; then | |
2519 | ac_must_keep_next=false # Got value, back to normal. | |
2520 | else | |
2521 | case $ac_arg in | |
2522 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
2523 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
2524 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
2525 | | -with-* | --with-* | -without-* | --without-* | --x) | |
2526 | case "$ac_configure_args0 " in | |
2527 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
2528 | esac | |
2529 | ;; | |
2530 | -* ) ac_must_keep_next=true ;; | |
2531 | esac | |
2532 | fi | |
2533 | as_fn_append ac_configure_args " '$ac_arg'" | |
2534 | ;; | |
2535 | esac | |
2536 | done | |
b0cacab0 | 2537 | done |
57aa50d4 TT |
2538 | { ac_configure_args0=; unset ac_configure_args0;} |
2539 | { ac_configure_args1=; unset ac_configure_args1;} | |
2540 | ||
2541 | # When interrupted or exit'd, cleanup temporary files, and complete | |
2542 | # config.log. We remove comments because anyway the quotes in there | |
2543 | # would cause problems or look ugly. | |
2544 | # WARNING: Use '\'' to represent an apostrophe within the trap. | |
2545 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
2546 | trap 'exit_status=$? | |
54445dc2 TT |
2547 | # Sanitize IFS. |
2548 | IFS=" "" $as_nl" | |
57aa50d4 TT |
2549 | # Save into config.log some information that might help in debugging. |
2550 | { | |
2551 | echo | |
2552 | ||
54445dc2 | 2553 | printf "%s\n" "## ---------------- ## |
57aa50d4 | 2554 | ## Cache variables. ## |
d6a4bcb5 | 2555 | ## ---------------- ##" |
57aa50d4 TT |
2556 | echo |
2557 | # The following way of writing the cache mishandles newlines in values, | |
2558 | ( | |
2559 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
2560 | eval ac_val=\$$ac_var | |
2561 | case $ac_val in #( | |
2562 | *${as_nl}*) | |
2563 | case $ac_var in #( | |
54445dc2 TT |
2564 | *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
2565 | printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
57aa50d4 TT |
2566 | esac |
2567 | case $ac_var in #( | |
2568 | _ | IFS | as_nl) ;; #( | |
2569 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
2570 | *) { eval $ac_var=; unset $ac_var;} ;; | |
2571 | esac ;; | |
2572 | esac | |
2573 | done | |
2574 | (set) 2>&1 | | |
2575 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( | |
2576 | *${as_nl}ac_space=\ *) | |
2577 | sed -n \ | |
2578 | "s/'\''/'\''\\\\'\'''\''/g; | |
2579 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
2580 | ;; #( | |
2581 | *) | |
2582 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | |
2583 | ;; | |
2584 | esac | | |
2585 | sort | |
2586 | ) | |
2587 | echo | |
2588 | ||
54445dc2 | 2589 | printf "%s\n" "## ----------------- ## |
57aa50d4 | 2590 | ## Output variables. ## |
d6a4bcb5 | 2591 | ## ----------------- ##" |
57aa50d4 TT |
2592 | echo |
2593 | for ac_var in $ac_subst_vars | |
2594 | do | |
2595 | eval ac_val=\$$ac_var | |
2596 | case $ac_val in | |
54445dc2 | 2597 | *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
57aa50d4 | 2598 | esac |
54445dc2 | 2599 | printf "%s\n" "$ac_var='\''$ac_val'\''" |
57aa50d4 TT |
2600 | done | sort |
2601 | echo | |
2602 | ||
2603 | if test -n "$ac_subst_files"; then | |
54445dc2 | 2604 | printf "%s\n" "## ------------------- ## |
57aa50d4 | 2605 | ## File substitutions. ## |
d6a4bcb5 | 2606 | ## ------------------- ##" |
57aa50d4 TT |
2607 | echo |
2608 | for ac_var in $ac_subst_files | |
2609 | do | |
2610 | eval ac_val=\$$ac_var | |
2611 | case $ac_val in | |
54445dc2 | 2612 | *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
57aa50d4 | 2613 | esac |
54445dc2 | 2614 | printf "%s\n" "$ac_var='\''$ac_val'\''" |
57aa50d4 TT |
2615 | done | sort |
2616 | echo | |
2617 | fi | |
2618 | ||
2619 | if test -s confdefs.h; then | |
54445dc2 | 2620 | printf "%s\n" "## ----------- ## |
57aa50d4 | 2621 | ## confdefs.h. ## |
d6a4bcb5 | 2622 | ## ----------- ##" |
57aa50d4 TT |
2623 | echo |
2624 | cat confdefs.h | |
2625 | echo | |
2626 | fi | |
2627 | test "$ac_signal" != 0 && | |
54445dc2 TT |
2628 | printf "%s\n" "$as_me: caught signal $ac_signal" |
2629 | printf "%s\n" "$as_me: exit $exit_status" | |
57aa50d4 TT |
2630 | } >&5 |
2631 | rm -f core *.core core.conftest.* && | |
2632 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
2633 | exit $exit_status | |
2634 | ' 0 | |
2635 | for ac_signal in 1 2 13 15; do | |
2636 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal | |
b0cacab0 | 2637 | done |
57aa50d4 | 2638 | ac_signal=0 |
b0cacab0 | 2639 | |
57aa50d4 TT |
2640 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
2641 | rm -f -r conftest* confdefs.h | |
b0cacab0 | 2642 | |
54445dc2 | 2643 | printf "%s\n" "/* confdefs.h */" > confdefs.h |
73ae2d4a | 2644 | |
57aa50d4 TT |
2645 | # Predefined preprocessor variables. |
2646 | ||
54445dc2 | 2647 | printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h |
57aa50d4 | 2648 | |
54445dc2 | 2649 | printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h |
57aa50d4 | 2650 | |
54445dc2 | 2651 | printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h |
57aa50d4 | 2652 | |
54445dc2 | 2653 | printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h |
57aa50d4 | 2654 | |
54445dc2 | 2655 | printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h |
57aa50d4 | 2656 | |
54445dc2 | 2657 | printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h |
57aa50d4 TT |
2658 | |
2659 | ||
2660 | # Let the site file select an alternate cache file if it wants to. | |
2661 | # Prefer an explicitly selected file to automatically selected ones. | |
57aa50d4 | 2662 | if test -n "$CONFIG_SITE"; then |
54445dc2 | 2663 | ac_site_files="$CONFIG_SITE" |
57aa50d4 | 2664 | elif test "x$prefix" != xNONE; then |
54445dc2 | 2665 | ac_site_files="$prefix/share/config.site $prefix/etc/config.site" |
73ae2d4a | 2666 | else |
54445dc2 | 2667 | ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" |
57aa50d4 | 2668 | fi |
54445dc2 TT |
2669 | |
2670 | for ac_site_file in $ac_site_files | |
b0cacab0 | 2671 | do |
54445dc2 TT |
2672 | case $ac_site_file in #( |
2673 | */*) : | |
2674 | ;; #( | |
2675 | *) : | |
2676 | ac_site_file=./$ac_site_file ;; | |
2677 | esac | |
2678 | if test -f "$ac_site_file" && test -r "$ac_site_file"; then | |
2679 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 | |
2680 | printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;} | |
57aa50d4 | 2681 | sed 's/^/| /' "$ac_site_file" >&5 |
d6a4bcb5 | 2682 | . "$ac_site_file" \ |
54445dc2 TT |
2683 | || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
2684 | printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} | |
d6a4bcb5 TB |
2685 | as_fn_error $? "failed to load site script $ac_site_file |
2686 | See \`config.log' for more details" "$LINENO" 5; } | |
b0cacab0 TT |
2687 | fi |
2688 | done | |
b0cacab0 | 2689 | |
57aa50d4 | 2690 | if test -r "$cache_file"; then |
61ef2474 TT |
2691 | # Some versions of bash will fail to source /dev/null (special files |
2692 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. | |
2693 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then | |
54445dc2 TT |
2694 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
2695 | printf "%s\n" "$as_me: loading cache $cache_file" >&6;} | |
57aa50d4 TT |
2696 | case $cache_file in |
2697 | [\\/]* | ?:[\\/]* ) . "$cache_file";; | |
2698 | *) . "./$cache_file";; | |
2699 | esac | |
73ae2d4a | 2700 | fi |
57aa50d4 | 2701 | else |
54445dc2 TT |
2702 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 |
2703 | printf "%s\n" "$as_me: creating cache $cache_file" >&6;} | |
57aa50d4 | 2704 | >$cache_file |
73ae2d4a | 2705 | fi |
57aa50d4 | 2706 | |
54445dc2 TT |
2707 | as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H" |
2708 | # Test code for whether the C compiler supports C89 (global declarations) | |
2709 | ac_c_conftest_c89_globals=' | |
2710 | /* Does the compiler advertise C89 conformance? | |
2711 | Do not test the value of __STDC__, because some compilers set it to 0 | |
2712 | while being otherwise adequately conformant. */ | |
2713 | #if !defined __STDC__ | |
2714 | # error "Compiler does not advertise C89 conformance" | |
2715 | #endif | |
57aa50d4 | 2716 | |
54445dc2 TT |
2717 | #include <stddef.h> |
2718 | #include <stdarg.h> | |
2719 | struct stat; | |
2720 | /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */ | |
2721 | struct buf { int x; }; | |
2722 | struct buf * (*rcsopen) (struct buf *, struct stat *, int); | |
2723 | static char *e (p, i) | |
2724 | char **p; | |
2725 | int i; | |
2726 | { | |
2727 | return p[i]; | |
2728 | } | |
2729 | static char *f (char * (*g) (char **, int), char **p, ...) | |
2730 | { | |
2731 | char *s; | |
2732 | va_list v; | |
2733 | va_start (v,p); | |
2734 | s = g (p, va_arg (v,int)); | |
2735 | va_end (v); | |
2736 | return s; | |
2737 | } | |
57aa50d4 | 2738 | |
54445dc2 TT |
2739 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
2740 | function prototypes and stuff, but not \xHH hex character constants. | |
2741 | These do not provoke an error unfortunately, instead are silently treated | |
2742 | as an "x". The following induces an error, until -std is added to get | |
2743 | proper ANSI mode. Curiously \x00 != x always comes out true, for an | |
2744 | array size at least. It is necessary to write \x00 == 0 to get something | |
2745 | that is true only with -std. */ | |
2746 | int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1]; | |
57aa50d4 | 2747 | |
54445dc2 TT |
2748 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
2749 | inside strings and character constants. */ | |
2750 | #define FOO(x) '\''x'\'' | |
2751 | int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1]; | |
57aa50d4 | 2752 | |
54445dc2 TT |
2753 | int test (int i, double x); |
2754 | struct s1 {int (*f) (int a);}; | |
2755 | struct s2 {int (*f) (double a);}; | |
2756 | int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int), | |
2757 | int, int);' | |
57aa50d4 | 2758 | |
54445dc2 TT |
2759 | # Test code for whether the C compiler supports C89 (body of main). |
2760 | ac_c_conftest_c89_main=' | |
2761 | ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]); | |
2762 | ' | |
57aa50d4 | 2763 | |
54445dc2 TT |
2764 | # Test code for whether the C compiler supports C99 (global declarations) |
2765 | ac_c_conftest_c99_globals=' | |
2766 | // Does the compiler advertise C99 conformance? | |
2767 | #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L | |
2768 | # error "Compiler does not advertise C99 conformance" | |
2769 | #endif | |
57aa50d4 | 2770 | |
54445dc2 TT |
2771 | #include <stdbool.h> |
2772 | extern int puts (const char *); | |
2773 | extern int printf (const char *, ...); | |
2774 | extern int dprintf (int, const char *, ...); | |
2775 | extern void *malloc (size_t); | |
2776 | ||
2777 | // Check varargs macros. These examples are taken from C99 6.10.3.5. | |
2778 | // dprintf is used instead of fprintf to avoid needing to declare | |
2779 | // FILE and stderr. | |
2780 | #define debug(...) dprintf (2, __VA_ARGS__) | |
2781 | #define showlist(...) puts (#__VA_ARGS__) | |
2782 | #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) | |
2783 | static void | |
2784 | test_varargs_macros (void) | |
2785 | { | |
2786 | int x = 1234; | |
2787 | int y = 5678; | |
2788 | debug ("Flag"); | |
2789 | debug ("X = %d\n", x); | |
2790 | showlist (The first, second, and third items.); | |
2791 | report (x>y, "x is %d but y is %d", x, y); | |
2792 | } | |
d1154eb4 | 2793 | |
54445dc2 TT |
2794 | // Check long long types. |
2795 | #define BIG64 18446744073709551615ull | |
2796 | #define BIG32 4294967295ul | |
2797 | #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) | |
2798 | #if !BIG_OK | |
2799 | #error "your preprocessor is broken" | |
2800 | #endif | |
2801 | #if BIG_OK | |
2802 | #else | |
2803 | #error "your preprocessor is broken" | |
2804 | #endif | |
2805 | static long long int bignum = -9223372036854775807LL; | |
2806 | static unsigned long long int ubignum = BIG64; | |
d1154eb4 | 2807 | |
54445dc2 TT |
2808 | struct incomplete_array |
2809 | { | |
2810 | int datasize; | |
2811 | double data[]; | |
2812 | }; | |
57aa50d4 | 2813 | |
54445dc2 TT |
2814 | struct named_init { |
2815 | int number; | |
2816 | const wchar_t *name; | |
2817 | double average; | |
2818 | }; | |
57aa50d4 | 2819 | |
54445dc2 | 2820 | typedef const char *ccp; |
57aa50d4 | 2821 | |
54445dc2 TT |
2822 | static inline int |
2823 | test_restrict (ccp restrict text) | |
2824 | { | |
2825 | // See if C++-style comments work. | |
2826 | // Iterate through items via the restricted pointer. | |
2827 | // Also check for declarations in for loops. | |
2828 | for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i) | |
2829 | continue; | |
2830 | return 0; | |
2831 | } | |
57aa50d4 | 2832 | |
54445dc2 TT |
2833 | // Check varargs and va_copy. |
2834 | static bool | |
2835 | test_varargs (const char *format, ...) | |
2836 | { | |
2837 | va_list args; | |
2838 | va_start (args, format); | |
2839 | va_list args_copy; | |
2840 | va_copy (args_copy, args); | |
57aa50d4 | 2841 | |
54445dc2 TT |
2842 | const char *str = ""; |
2843 | int number = 0; | |
2844 | float fnumber = 0; | |
57aa50d4 | 2845 | |
54445dc2 TT |
2846 | while (*format) |
2847 | { | |
2848 | switch (*format++) | |
2849 | { | |
2850 | case '\''s'\'': // string | |
2851 | str = va_arg (args_copy, const char *); | |
2852 | break; | |
2853 | case '\''d'\'': // int | |
2854 | number = va_arg (args_copy, int); | |
2855 | break; | |
2856 | case '\''f'\'': // float | |
2857 | fnumber = va_arg (args_copy, double); | |
2858 | break; | |
2859 | default: | |
2860 | break; | |
2861 | } | |
2862 | } | |
2863 | va_end (args_copy); | |
2864 | va_end (args); | |
57aa50d4 | 2865 | |
54445dc2 TT |
2866 | return *str && number && fnumber; |
2867 | } | |
2868 | ' | |
57aa50d4 | 2869 | |
54445dc2 TT |
2870 | # Test code for whether the C compiler supports C99 (body of main). |
2871 | ac_c_conftest_c99_main=' | |
2872 | // Check bool. | |
2873 | _Bool success = false; | |
2874 | success |= (argc != 0); | |
2875 | ||
2876 | // Check restrict. | |
2877 | if (test_restrict ("String literal") == 0) | |
2878 | success = true; | |
2879 | char *restrict newvar = "Another string"; | |
2880 | ||
2881 | // Check varargs. | |
2882 | success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234); | |
2883 | test_varargs_macros (); | |
2884 | ||
2885 | // Check flexible array members. | |
2886 | struct incomplete_array *ia = | |
2887 | malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); | |
2888 | ia->datasize = 10; | |
2889 | for (int i = 0; i < ia->datasize; ++i) | |
2890 | ia->data[i] = i * 1.234; | |
2891 | ||
2892 | // Check named initializers. | |
2893 | struct named_init ni = { | |
2894 | .number = 34, | |
2895 | .name = L"Test wide string", | |
2896 | .average = 543.34343, | |
2897 | }; | |
2898 | ||
2899 | ni.number = 58; | |
2900 | ||
2901 | int dynamic_array[ni.number]; | |
2902 | dynamic_array[0] = argv[0][0]; | |
2903 | dynamic_array[ni.number - 1] = 543; | |
2904 | ||
2905 | // work around unused variable warnings | |
2906 | ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\'' | |
2907 | || dynamic_array[ni.number - 1] != 543); | |
2908 | ' | |
57aa50d4 | 2909 | |
54445dc2 TT |
2910 | # Test code for whether the C compiler supports C11 (global declarations) |
2911 | ac_c_conftest_c11_globals=' | |
2912 | // Does the compiler advertise C11 conformance? | |
2913 | #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L | |
2914 | # error "Compiler does not advertise C11 conformance" | |
2915 | #endif | |
57aa50d4 | 2916 | |
54445dc2 TT |
2917 | // Check _Alignas. |
2918 | char _Alignas (double) aligned_as_double; | |
2919 | char _Alignas (0) no_special_alignment; | |
2920 | extern char aligned_as_int; | |
2921 | char _Alignas (0) _Alignas (int) aligned_as_int; | |
57aa50d4 | 2922 | |
54445dc2 TT |
2923 | // Check _Alignof. |
2924 | enum | |
2925 | { | |
2926 | int_alignment = _Alignof (int), | |
2927 | int_array_alignment = _Alignof (int[100]), | |
2928 | char_alignment = _Alignof (char) | |
2929 | }; | |
2930 | _Static_assert (0 < -_Alignof (int), "_Alignof is signed"); | |
57aa50d4 | 2931 | |
54445dc2 TT |
2932 | // Check _Noreturn. |
2933 | int _Noreturn does_not_return (void) { for (;;) continue; } | |
5ce368f0 | 2934 | |
54445dc2 TT |
2935 | // Check _Static_assert. |
2936 | struct test_static_assert | |
2937 | { | |
2938 | int x; | |
2939 | _Static_assert (sizeof (int) <= sizeof (long int), | |
2940 | "_Static_assert does not work in struct"); | |
2941 | long int y; | |
2942 | }; | |
2943 | ||
2944 | // Check UTF-8 literals. | |
2945 | #define u8 syntax error! | |
2946 | char const utf8_literal[] = u8"happens to be ASCII" "another string"; | |
2947 | ||
2948 | // Check duplicate typedefs. | |
2949 | typedef long *long_ptr; | |
2950 | typedef long int *long_ptr; | |
2951 | typedef long_ptr long_ptr; | |
2952 | ||
2953 | // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1. | |
2954 | struct anonymous | |
2955 | { | |
2956 | union { | |
2957 | struct { int i; int j; }; | |
2958 | struct { int k; long int l; } w; | |
2959 | }; | |
2960 | int m; | |
2961 | } v1; | |
2962 | ' | |
6c59a665 | 2963 | |
54445dc2 TT |
2964 | # Test code for whether the C compiler supports C11 (body of main). |
2965 | ac_c_conftest_c11_main=' | |
2966 | _Static_assert ((offsetof (struct anonymous, i) | |
2967 | == offsetof (struct anonymous, w.k)), | |
2968 | "Anonymous union alignment botch"); | |
2969 | v1.i = 2; | |
2970 | v1.w.k = 5; | |
2971 | ok |= v1.i != 5; | |
2972 | ' | |
57aa50d4 | 2973 | |
54445dc2 TT |
2974 | # Test code for whether the C compiler supports C11 (complete). |
2975 | ac_c_conftest_c11_program="${ac_c_conftest_c89_globals} | |
2976 | ${ac_c_conftest_c99_globals} | |
2977 | ${ac_c_conftest_c11_globals} | |
57aa50d4 | 2978 | |
54445dc2 TT |
2979 | int |
2980 | main (int argc, char **argv) | |
2981 | { | |
2982 | int ok = 0; | |
2983 | ${ac_c_conftest_c89_main} | |
2984 | ${ac_c_conftest_c99_main} | |
2985 | ${ac_c_conftest_c11_main} | |
2986 | return ok; | |
2987 | } | |
2988 | " | |
73ae2d4a | 2989 | |
54445dc2 TT |
2990 | # Test code for whether the C compiler supports C99 (complete). |
2991 | ac_c_conftest_c99_program="${ac_c_conftest_c89_globals} | |
2992 | ${ac_c_conftest_c99_globals} | |
e1052144 | 2993 | |
54445dc2 TT |
2994 | int |
2995 | main (int argc, char **argv) | |
2996 | { | |
2997 | int ok = 0; | |
2998 | ${ac_c_conftest_c89_main} | |
2999 | ${ac_c_conftest_c99_main} | |
3000 | return ok; | |
3001 | } | |
3002 | " | |
57aa50d4 | 3003 | |
54445dc2 TT |
3004 | # Test code for whether the C compiler supports C89 (complete). |
3005 | ac_c_conftest_c89_program="${ac_c_conftest_c89_globals} | |
57aa50d4 | 3006 | |
54445dc2 TT |
3007 | int |
3008 | main (int argc, char **argv) | |
3009 | { | |
3010 | int ok = 0; | |
3011 | ${ac_c_conftest_c89_main} | |
3012 | return ok; | |
3013 | } | |
3014 | " | |
57aa50d4 | 3015 | |
54445dc2 TT |
3016 | as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H" |
3017 | as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H" | |
3018 | as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H" | |
3019 | as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H" | |
3020 | as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H" | |
3021 | as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H" | |
3022 | as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H" | |
3023 | as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H" | |
3024 | as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H" | |
3025 | as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H" | |
3026 | gt_needs="$gt_needs " | |
3027 | as_fn_append ac_func_c_list " vprintf HAVE_VPRINTF" | |
2869485b TT |
3028 | # Test code for whether the C++ compiler supports C++98 (global declarations) |
3029 | ac_cxx_conftest_cxx98_globals=' | |
3030 | // Does the compiler advertise C++98 conformance? | |
3031 | #if !defined __cplusplus || __cplusplus < 199711L | |
3032 | # error "Compiler does not advertise C++98 conformance" | |
3033 | #endif | |
3034 | ||
3035 | // These inclusions are to reject old compilers that | |
3036 | // lack the unsuffixed header files. | |
3037 | #include <cstdlib> | |
3038 | #include <exception> | |
3039 | ||
3040 | // <cassert> and <cstring> are *not* freestanding headers in C++98. | |
3041 | extern void assert (int); | |
3042 | namespace std { | |
3043 | extern int strcmp (const char *, const char *); | |
3044 | } | |
3045 | ||
3046 | // Namespaces, exceptions, and templates were all added after "C++ 2.0". | |
3047 | using std::exception; | |
3048 | using std::strcmp; | |
3049 | ||
3050 | namespace { | |
3051 | ||
3052 | void test_exception_syntax() | |
3053 | { | |
3054 | try { | |
3055 | throw "test"; | |
3056 | } catch (const char *s) { | |
3057 | // Extra parentheses suppress a warning when building autoconf itself, | |
3058 | // due to lint rules shared with more typical C programs. | |
3059 | assert (!(strcmp) (s, "test")); | |
3060 | } | |
3061 | } | |
3062 | ||
3063 | template <typename T> struct test_template | |
3064 | { | |
3065 | T const val; | |
3066 | explicit test_template(T t) : val(t) {} | |
3067 | template <typename U> T add(U u) { return static_cast<T>(u) + val; } | |
3068 | }; | |
3069 | ||
3070 | } // anonymous namespace | |
3071 | ' | |
3072 | ||
3073 | # Test code for whether the C++ compiler supports C++98 (body of main) | |
3074 | ac_cxx_conftest_cxx98_main=' | |
3075 | assert (argc); | |
3076 | assert (! argv[0]); | |
3077 | { | |
3078 | test_exception_syntax (); | |
3079 | test_template<double> tt (2.0); | |
3080 | assert (tt.add (4) == 6.0); | |
3081 | assert (true && !false); | |
3082 | } | |
3083 | ' | |
3084 | ||
3085 | # Test code for whether the C++ compiler supports C++11 (global declarations) | |
3086 | ac_cxx_conftest_cxx11_globals=' | |
3087 | // Does the compiler advertise C++ 2011 conformance? | |
3088 | #if !defined __cplusplus || __cplusplus < 201103L | |
3089 | # error "Compiler does not advertise C++11 conformance" | |
3090 | #endif | |
3091 | ||
3092 | namespace cxx11test | |
3093 | { | |
3094 | constexpr int get_val() { return 20; } | |
3095 | ||
3096 | struct testinit | |
3097 | { | |
3098 | int i; | |
3099 | double d; | |
3100 | }; | |
3101 | ||
3102 | class delegate | |
3103 | { | |
3104 | public: | |
3105 | delegate(int n) : n(n) {} | |
3106 | delegate(): delegate(2354) {} | |
3107 | ||
3108 | virtual int getval() { return this->n; }; | |
3109 | protected: | |
3110 | int n; | |
3111 | }; | |
3112 | ||
3113 | class overridden : public delegate | |
3114 | { | |
3115 | public: | |
3116 | overridden(int n): delegate(n) {} | |
3117 | virtual int getval() override final { return this->n * 2; } | |
3118 | }; | |
3119 | ||
3120 | class nocopy | |
3121 | { | |
3122 | public: | |
3123 | nocopy(int i): i(i) {} | |
3124 | nocopy() = default; | |
3125 | nocopy(const nocopy&) = delete; | |
3126 | nocopy & operator=(const nocopy&) = delete; | |
3127 | private: | |
3128 | int i; | |
3129 | }; | |
3130 | ||
3131 | // for testing lambda expressions | |
3132 | template <typename Ret, typename Fn> Ret eval(Fn f, Ret v) | |
3133 | { | |
3134 | return f(v); | |
3135 | } | |
3136 | ||
3137 | // for testing variadic templates and trailing return types | |
3138 | template <typename V> auto sum(V first) -> V | |
3139 | { | |
3140 | return first; | |
3141 | } | |
3142 | template <typename V, typename... Args> auto sum(V first, Args... rest) -> V | |
3143 | { | |
3144 | return first + sum(rest...); | |
3145 | } | |
3146 | } | |
3147 | ' | |
3148 | ||
3149 | # Test code for whether the C++ compiler supports C++11 (body of main) | |
3150 | ac_cxx_conftest_cxx11_main=' | |
3151 | { | |
3152 | // Test auto and decltype | |
3153 | auto a1 = 6538; | |
3154 | auto a2 = 48573953.4; | |
3155 | auto a3 = "String literal"; | |
3156 | ||
3157 | int total = 0; | |
3158 | for (auto i = a3; *i; ++i) { total += *i; } | |
3159 | ||
3160 | decltype(a2) a4 = 34895.034; | |
3161 | } | |
3162 | { | |
3163 | // Test constexpr | |
3164 | short sa[cxx11test::get_val()] = { 0 }; | |
3165 | } | |
3166 | { | |
3167 | // Test initializer lists | |
3168 | cxx11test::testinit il = { 4323, 435234.23544 }; | |
3169 | } | |
3170 | { | |
3171 | // Test range-based for | |
3172 | int array[] = {9, 7, 13, 15, 4, 18, 12, 10, 5, 3, | |
3173 | 14, 19, 17, 8, 6, 20, 16, 2, 11, 1}; | |
3174 | for (auto &x : array) { x += 23; } | |
3175 | } | |
3176 | { | |
3177 | // Test lambda expressions | |
3178 | using cxx11test::eval; | |
3179 | assert (eval ([](int x) { return x*2; }, 21) == 42); | |
3180 | double d = 2.0; | |
3181 | assert (eval ([&](double x) { return d += x; }, 3.0) == 5.0); | |
3182 | assert (d == 5.0); | |
3183 | assert (eval ([=](double x) mutable { return d += x; }, 4.0) == 9.0); | |
3184 | assert (d == 5.0); | |
3185 | } | |
3186 | { | |
3187 | // Test use of variadic templates | |
3188 | using cxx11test::sum; | |
3189 | auto a = sum(1); | |
3190 | auto b = sum(1, 2); | |
3191 | auto c = sum(1.0, 2.0, 3.0); | |
3192 | } | |
3193 | { | |
3194 | // Test constructor delegation | |
3195 | cxx11test::delegate d1; | |
3196 | cxx11test::delegate d2(); | |
3197 | cxx11test::delegate d3(45); | |
3198 | } | |
3199 | { | |
3200 | // Test override and final | |
3201 | cxx11test::overridden o1(55464); | |
3202 | } | |
3203 | { | |
3204 | // Test nullptr | |
3205 | char *c = nullptr; | |
3206 | } | |
3207 | { | |
3208 | // Test template brackets | |
3209 | test_template<::test_template<int>> v(test_template<int>(12)); | |
3210 | } | |
3211 | { | |
3212 | // Unicode literals | |
3213 | char const *utf8 = u8"UTF-8 string \u2500"; | |
3214 | char16_t const *utf16 = u"UTF-8 string \u2500"; | |
3215 | char32_t const *utf32 = U"UTF-32 string \u2500"; | |
3216 | } | |
3217 | ' | |
3218 | ||
3219 | # Test code for whether the C compiler supports C++11 (complete). | |
3220 | ac_cxx_conftest_cxx11_program="${ac_cxx_conftest_cxx98_globals} | |
3221 | ${ac_cxx_conftest_cxx11_globals} | |
3222 | ||
3223 | int | |
3224 | main (int argc, char **argv) | |
3225 | { | |
3226 | int ok = 0; | |
3227 | ${ac_cxx_conftest_cxx98_main} | |
3228 | ${ac_cxx_conftest_cxx11_main} | |
3229 | return ok; | |
3230 | } | |
3231 | " | |
3232 | ||
3233 | # Test code for whether the C compiler supports C++98 (complete). | |
3234 | ac_cxx_conftest_cxx98_program="${ac_cxx_conftest_cxx98_globals} | |
3235 | int | |
3236 | main (int argc, char **argv) | |
3237 | { | |
3238 | int ok = 0; | |
3239 | ${ac_cxx_conftest_cxx98_main} | |
3240 | return ok; | |
3241 | } | |
3242 | " | |
3243 | ||
54445dc2 TT |
3244 | |
3245 | # Auxiliary files required by this configure script. | |
3246 | ac_aux_files="config.rpath install-sh config.guess config.sub" | |
3247 | ||
3248 | # Locations in which to look for auxiliary files. | |
3249 | ac_aux_dir_candidates="${srcdir}/config" | |
3250 | ||
3251 | # Search for a directory containing all of the required auxiliary files, | |
3252 | # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates. | |
3253 | # If we don't find one directory that contains all the files we need, | |
3254 | # we report the set of missing files from the *first* directory in | |
3255 | # $ac_aux_dir_candidates and give up. | |
3256 | ac_missing_aux_files="" | |
3257 | ac_first_candidate=: | |
3258 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5 | |
b0cacab0 | 3259 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
54445dc2 TT |
3260 | as_found=false |
3261 | for as_dir in $ac_aux_dir_candidates | |
b0cacab0 TT |
3262 | do |
3263 | IFS=$as_save_IFS | |
54445dc2 TT |
3264 | case $as_dir in #((( |
3265 | '') as_dir=./ ;; | |
3266 | */) ;; | |
3267 | *) as_dir=$as_dir/ ;; | |
3268 | esac | |
3269 | as_found=: | |
3270 | ||
3271 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5 | |
3272 | ac_aux_dir_found=yes | |
3273 | ac_install_sh= | |
3274 | for ac_aux in $ac_aux_files | |
3275 | do | |
3276 | # As a special case, if "install-sh" is required, that requirement | |
3277 | # can be satisfied by any of "install-sh", "install.sh", or "shtool", | |
3278 | # and $ac_install_sh is set appropriately for whichever one is found. | |
3279 | if test x"$ac_aux" = x"install-sh" | |
3280 | then | |
3281 | if test -f "${as_dir}install-sh"; then | |
3282 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5 | |
3283 | ac_install_sh="${as_dir}install-sh -c" | |
3284 | elif test -f "${as_dir}install.sh"; then | |
3285 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5 | |
3286 | ac_install_sh="${as_dir}install.sh -c" | |
3287 | elif test -f "${as_dir}shtool"; then | |
3288 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5 | |
3289 | ac_install_sh="${as_dir}shtool install -c" | |
3290 | else | |
3291 | ac_aux_dir_found=no | |
3292 | if $ac_first_candidate; then | |
3293 | ac_missing_aux_files="${ac_missing_aux_files} install-sh" | |
3294 | else | |
3295 | break | |
3296 | fi | |
3297 | fi | |
3298 | else | |
3299 | if test -f "${as_dir}${ac_aux}"; then | |
3300 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5 | |
3301 | else | |
3302 | ac_aux_dir_found=no | |
3303 | if $ac_first_candidate; then | |
3304 | ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}" | |
3305 | else | |
3306 | break | |
3307 | fi | |
3308 | fi | |
3309 | fi | |
3310 | done | |
3311 | if test "$ac_aux_dir_found" = yes; then | |
3312 | ac_aux_dir="$as_dir" | |
3313 | break | |
b0cacab0 | 3314 | fi |
54445dc2 TT |
3315 | ac_first_candidate=false |
3316 | ||
3317 | as_found=false | |
b0cacab0 | 3318 | done |
e1052144 | 3319 | IFS=$as_save_IFS |
54445dc2 TT |
3320 | if $as_found |
3321 | then : | |
b0cacab0 | 3322 | |
54445dc2 TT |
3323 | else $as_nop |
3324 | as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 | |
73ae2d4a | 3325 | fi |
b0cacab0 | 3326 | |
e1052144 | 3327 | |
54445dc2 TT |
3328 | # These three variables are undocumented and unsupported, |
3329 | # and are intended to be withdrawn in a future Autoconf release. | |
3330 | # They can cause serious problems if a builder's source tree is in a directory | |
3331 | # whose full name contains unusual characters. | |
3332 | if test -f "${ac_aux_dir}config.guess"; then | |
3333 | ac_config_guess="$SHELL ${ac_aux_dir}config.guess" | |
b0cacab0 | 3334 | fi |
54445dc2 TT |
3335 | if test -f "${ac_aux_dir}config.sub"; then |
3336 | ac_config_sub="$SHELL ${ac_aux_dir}config.sub" | |
b0cacab0 | 3337 | fi |
54445dc2 TT |
3338 | if test -f "$ac_aux_dir/configure"; then |
3339 | ac_configure="$SHELL ${ac_aux_dir}configure" | |
07a0db15 | 3340 | fi |
73ae2d4a | 3341 | |
54445dc2 TT |
3342 | # Check that the precious variables saved in the cache have kept the same |
3343 | # value. | |
3344 | ac_cache_corrupted=false | |
3345 | for ac_var in $ac_precious_vars; do | |
3346 | eval ac_old_set=\$ac_cv_env_${ac_var}_set | |
3347 | eval ac_new_set=\$ac_env_${ac_var}_set | |
3348 | eval ac_old_val=\$ac_cv_env_${ac_var}_value | |
3349 | eval ac_new_val=\$ac_env_${ac_var}_value | |
3350 | case $ac_old_set,$ac_new_set in | |
3351 | set,) | |
3352 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | |
3353 | printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
3354 | ac_cache_corrupted=: ;; | |
3355 | ,set) | |
3356 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 | |
3357 | printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
3358 | ac_cache_corrupted=: ;; | |
3359 | ,);; | |
3360 | *) | |
3361 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
3362 | # differences in whitespace do not lead to failure. | |
3363 | ac_old_val_w=`echo x $ac_old_val` | |
3364 | ac_new_val_w=`echo x $ac_new_val` | |
3365 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | |
3366 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 | |
3367 | printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
3368 | ac_cache_corrupted=: | |
3369 | else | |
3370 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | |
3371 | printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | |
3372 | eval $ac_var=\$ac_old_val | |
3373 | fi | |
3374 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 | |
3375 | printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;} | |
3376 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 | |
3377 | printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;} | |
3378 | fi;; | |
3379 | esac | |
3380 | # Pass precious variables to config.status. | |
3381 | if test "$ac_new_set" = set; then | |
3382 | case $ac_new_val in | |
3383 | *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | |
3384 | *) ac_arg=$ac_var=$ac_new_val ;; | |
3385 | esac | |
3386 | case " $ac_configure_args " in | |
3387 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
3388 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; | |
3389 | esac | |
3390 | fi | |
3391 | done | |
3392 | if $ac_cache_corrupted; then | |
3393 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3394 | printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} | |
3395 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 | |
3396 | printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;} | |
3397 | as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file' | |
3398 | and start over" "$LINENO" 5 | |
3399 | fi | |
3400 | ## -------------------- ## | |
3401 | ## Main body of script. ## | |
3402 | ## -------------------- ## | |
3403 | ||
3404 | ac_ext=c | |
3405 | ac_cpp='$CPP $CPPFLAGS' | |
3406 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3407 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3408 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3409 | ||
3410 | ||
3411 | ||
3412 | ||
3413 | ||
3414 | ac_config_headers="$ac_config_headers lib/config.h" | |
3415 | ||
3416 | ||
3417 | ||
3418 | ||
3419 | ||
3420 | ||
3421 | ||
3422 | ||
3423 | ||
3424 | ||
3425 | ||
3426 | ac_ext=c | |
3427 | ac_cpp='$CPP $CPPFLAGS' | |
3428 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3429 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3430 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3431 | if test -n "$ac_tool_prefix"; then | |
3432 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
3433 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
3434 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3435 | printf %s "checking for $ac_word... " >&6; } | |
3436 | if test ${ac_cv_prog_CC+y} | |
3437 | then : | |
3438 | printf %s "(cached) " >&6 | |
3439 | else $as_nop | |
3440 | if test -n "$CC"; then | |
3441 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3442 | else | |
3443 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3444 | for as_dir in $PATH | |
3445 | do | |
3446 | IFS=$as_save_IFS | |
3447 | case $as_dir in #((( | |
3448 | '') as_dir=./ ;; | |
3449 | */) ;; | |
3450 | *) as_dir=$as_dir/ ;; | |
3451 | esac | |
3452 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3453 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then | |
3454 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | |
3455 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 | |
3456 | break 2 | |
3457 | fi | |
3458 | done | |
3459 | done | |
3460 | IFS=$as_save_IFS | |
3461 | ||
3462 | fi | |
3463 | fi | |
3464 | CC=$ac_cv_prog_CC | |
3465 | if test -n "$CC"; then | |
3466 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
3467 | printf "%s\n" "$CC" >&6; } | |
3468 | else | |
3469 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3470 | printf "%s\n" "no" >&6; } | |
3471 | fi | |
3472 | ||
3473 | ||
3474 | fi | |
3475 | if test -z "$ac_cv_prog_CC"; then | |
3476 | ac_ct_CC=$CC | |
3477 | # Extract the first word of "gcc", so it can be a program name with args. | |
3478 | set dummy gcc; ac_word=$2 | |
3479 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3480 | printf %s "checking for $ac_word... " >&6; } | |
3481 | if test ${ac_cv_prog_ac_ct_CC+y} | |
3482 | then : | |
3483 | printf %s "(cached) " >&6 | |
3484 | else $as_nop | |
3485 | if test -n "$ac_ct_CC"; then | |
3486 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
3487 | else | |
3488 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3489 | for as_dir in $PATH | |
3490 | do | |
3491 | IFS=$as_save_IFS | |
3492 | case $as_dir in #((( | |
3493 | '') as_dir=./ ;; | |
3494 | */) ;; | |
3495 | *) as_dir=$as_dir/ ;; | |
3496 | esac | |
3497 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3498 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then | |
3499 | ac_cv_prog_ac_ct_CC="gcc" | |
3500 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 | |
3501 | break 2 | |
3502 | fi | |
3503 | done | |
3504 | done | |
3505 | IFS=$as_save_IFS | |
3506 | ||
3507 | fi | |
3508 | fi | |
3509 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
3510 | if test -n "$ac_ct_CC"; then | |
3511 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
3512 | printf "%s\n" "$ac_ct_CC" >&6; } | |
3513 | else | |
3514 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3515 | printf "%s\n" "no" >&6; } | |
3516 | fi | |
3517 | ||
3518 | if test "x$ac_ct_CC" = x; then | |
3519 | CC="" | |
3520 | else | |
3521 | case $cross_compiling:$ac_tool_warned in | |
3522 | yes:) | |
3523 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
3524 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
3525 | ac_tool_warned=yes ;; | |
3526 | esac | |
3527 | CC=$ac_ct_CC | |
e1052144 | 3528 | fi |
57aa50d4 TT |
3529 | else |
3530 | CC="$ac_cv_prog_CC" | |
b0cacab0 TT |
3531 | fi |
3532 | ||
57aa50d4 TT |
3533 | if test -z "$CC"; then |
3534 | if test -n "$ac_tool_prefix"; then | |
3535 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
3536 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
54445dc2 TT |
3537 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3538 | printf %s "checking for $ac_word... " >&6; } | |
3539 | if test ${ac_cv_prog_CC+y} | |
3540 | then : | |
3541 | printf %s "(cached) " >&6 | |
3542 | else $as_nop | |
57aa50d4 TT |
3543 | if test -n "$CC"; then |
3544 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3545 | else | |
3546 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3547 | for as_dir in $PATH | |
3548 | do | |
3549 | IFS=$as_save_IFS | |
54445dc2 TT |
3550 | case $as_dir in #((( |
3551 | '') as_dir=./ ;; | |
3552 | */) ;; | |
3553 | *) as_dir=$as_dir/ ;; | |
3554 | esac | |
57aa50d4 | 3555 | for ac_exec_ext in '' $ac_executable_extensions; do |
54445dc2 | 3556 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
57aa50d4 | 3557 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
54445dc2 | 3558 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
57aa50d4 TT |
3559 | break 2 |
3560 | fi | |
3561 | done | |
3562 | done | |
3563 | IFS=$as_save_IFS | |
3564 | ||
3565 | fi | |
3566 | fi | |
3567 | CC=$ac_cv_prog_CC | |
3568 | if test -n "$CC"; then | |
54445dc2 TT |
3569 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
3570 | printf "%s\n" "$CC" >&6; } | |
57aa50d4 | 3571 | else |
54445dc2 TT |
3572 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3573 | printf "%s\n" "no" >&6; } | |
57aa50d4 TT |
3574 | fi |
3575 | ||
3576 | ||
3577 | fi | |
3578 | fi | |
3579 | if test -z "$CC"; then | |
3580 | # Extract the first word of "cc", so it can be a program name with args. | |
3581 | set dummy cc; ac_word=$2 | |
54445dc2 TT |
3582 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3583 | printf %s "checking for $ac_word... " >&6; } | |
3584 | if test ${ac_cv_prog_CC+y} | |
3585 | then : | |
3586 | printf %s "(cached) " >&6 | |
3587 | else $as_nop | |
57aa50d4 TT |
3588 | if test -n "$CC"; then |
3589 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3590 | else | |
3591 | ac_prog_rejected=no | |
3592 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3593 | for as_dir in $PATH | |
3594 | do | |
3595 | IFS=$as_save_IFS | |
54445dc2 TT |
3596 | case $as_dir in #((( |
3597 | '') as_dir=./ ;; | |
3598 | */) ;; | |
3599 | *) as_dir=$as_dir/ ;; | |
3600 | esac | |
57aa50d4 | 3601 | for ac_exec_ext in '' $ac_executable_extensions; do |
54445dc2 TT |
3602 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
3603 | if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | |
57aa50d4 TT |
3604 | ac_prog_rejected=yes |
3605 | continue | |
3606 | fi | |
3607 | ac_cv_prog_CC="cc" | |
54445dc2 | 3608 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
57aa50d4 TT |
3609 | break 2 |
3610 | fi | |
3611 | done | |
3612 | done | |
3613 | IFS=$as_save_IFS | |
3614 | ||
3615 | if test $ac_prog_rejected = yes; then | |
3616 | # We found a bogon in the path, so make sure we never use it. | |
3617 | set dummy $ac_cv_prog_CC | |
3618 | shift | |
3619 | if test $# != 0; then | |
3620 | # We chose a different compiler from the bogus one. | |
3621 | # However, it has the same basename, so the bogon will be chosen | |
3622 | # first if we set CC to just the basename; use the full file name. | |
3623 | shift | |
54445dc2 | 3624 | ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@" |
57aa50d4 TT |
3625 | fi |
3626 | fi | |
3627 | fi | |
3628 | fi | |
3629 | CC=$ac_cv_prog_CC | |
3630 | if test -n "$CC"; then | |
54445dc2 TT |
3631 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
3632 | printf "%s\n" "$CC" >&6; } | |
57aa50d4 | 3633 | else |
54445dc2 TT |
3634 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3635 | printf "%s\n" "no" >&6; } | |
57aa50d4 TT |
3636 | fi |
3637 | ||
3638 | ||
3639 | fi | |
3640 | if test -z "$CC"; then | |
3641 | if test -n "$ac_tool_prefix"; then | |
3642 | for ac_prog in cl.exe | |
3643 | do | |
3644 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
3645 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
54445dc2 TT |
3646 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3647 | printf %s "checking for $ac_word... " >&6; } | |
3648 | if test ${ac_cv_prog_CC+y} | |
3649 | then : | |
3650 | printf %s "(cached) " >&6 | |
3651 | else $as_nop | |
57aa50d4 TT |
3652 | if test -n "$CC"; then |
3653 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3654 | else | |
3655 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3656 | for as_dir in $PATH | |
3657 | do | |
3658 | IFS=$as_save_IFS | |
54445dc2 TT |
3659 | case $as_dir in #((( |
3660 | '') as_dir=./ ;; | |
3661 | */) ;; | |
3662 | *) as_dir=$as_dir/ ;; | |
3663 | esac | |
57aa50d4 | 3664 | for ac_exec_ext in '' $ac_executable_extensions; do |
54445dc2 | 3665 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
57aa50d4 | 3666 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
54445dc2 | 3667 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
57aa50d4 TT |
3668 | break 2 |
3669 | fi | |
3670 | done | |
3671 | done | |
3672 | IFS=$as_save_IFS | |
3673 | ||
3674 | fi | |
3675 | fi | |
3676 | CC=$ac_cv_prog_CC | |
3677 | if test -n "$CC"; then | |
54445dc2 TT |
3678 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
3679 | printf "%s\n" "$CC" >&6; } | |
57aa50d4 | 3680 | else |
54445dc2 TT |
3681 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3682 | printf "%s\n" "no" >&6; } | |
57aa50d4 TT |
3683 | fi |
3684 | ||
3685 | ||
3686 | test -n "$CC" && break | |
3687 | done | |
3688 | fi | |
3689 | if test -z "$CC"; then | |
3690 | ac_ct_CC=$CC | |
3691 | for ac_prog in cl.exe | |
3692 | do | |
3693 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
3694 | set dummy $ac_prog; ac_word=$2 | |
54445dc2 TT |
3695 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3696 | printf %s "checking for $ac_word... " >&6; } | |
3697 | if test ${ac_cv_prog_ac_ct_CC+y} | |
3698 | then : | |
3699 | printf %s "(cached) " >&6 | |
3700 | else $as_nop | |
57aa50d4 TT |
3701 | if test -n "$ac_ct_CC"; then |
3702 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
3703 | else | |
3704 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3705 | for as_dir in $PATH | |
3706 | do | |
3707 | IFS=$as_save_IFS | |
54445dc2 TT |
3708 | case $as_dir in #((( |
3709 | '') as_dir=./ ;; | |
3710 | */) ;; | |
3711 | *) as_dir=$as_dir/ ;; | |
3712 | esac | |
57aa50d4 | 3713 | for ac_exec_ext in '' $ac_executable_extensions; do |
54445dc2 | 3714 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
57aa50d4 | 3715 | ac_cv_prog_ac_ct_CC="$ac_prog" |
54445dc2 | 3716 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
57aa50d4 TT |
3717 | break 2 |
3718 | fi | |
3719 | done | |
3720 | done | |
3721 | IFS=$as_save_IFS | |
3722 | ||
3723 | fi | |
3724 | fi | |
3725 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
3726 | if test -n "$ac_ct_CC"; then | |
54445dc2 TT |
3727 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
3728 | printf "%s\n" "$ac_ct_CC" >&6; } | |
57aa50d4 | 3729 | else |
54445dc2 TT |
3730 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3731 | printf "%s\n" "no" >&6; } | |
57aa50d4 TT |
3732 | fi |
3733 | ||
3734 | ||
3735 | test -n "$ac_ct_CC" && break | |
3736 | done | |
3737 | ||
3738 | if test "x$ac_ct_CC" = x; then | |
3739 | CC="" | |
3740 | else | |
3741 | case $cross_compiling:$ac_tool_warned in | |
3742 | yes:) | |
54445dc2 TT |
3743 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
3744 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
3745 | ac_tool_warned=yes ;; | |
3746 | esac | |
3747 | CC=$ac_ct_CC | |
3748 | fi | |
3749 | fi | |
3750 | ||
3751 | fi | |
3752 | if test -z "$CC"; then | |
3753 | if test -n "$ac_tool_prefix"; then | |
3754 | # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args. | |
3755 | set dummy ${ac_tool_prefix}clang; ac_word=$2 | |
3756 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3757 | printf %s "checking for $ac_word... " >&6; } | |
3758 | if test ${ac_cv_prog_CC+y} | |
3759 | then : | |
3760 | printf %s "(cached) " >&6 | |
3761 | else $as_nop | |
3762 | if test -n "$CC"; then | |
3763 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3764 | else | |
3765 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3766 | for as_dir in $PATH | |
3767 | do | |
3768 | IFS=$as_save_IFS | |
3769 | case $as_dir in #((( | |
3770 | '') as_dir=./ ;; | |
3771 | */) ;; | |
3772 | *) as_dir=$as_dir/ ;; | |
3773 | esac | |
3774 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3775 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then | |
3776 | ac_cv_prog_CC="${ac_tool_prefix}clang" | |
3777 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 | |
3778 | break 2 | |
3779 | fi | |
3780 | done | |
3781 | done | |
3782 | IFS=$as_save_IFS | |
3783 | ||
3784 | fi | |
3785 | fi | |
3786 | CC=$ac_cv_prog_CC | |
3787 | if test -n "$CC"; then | |
3788 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
3789 | printf "%s\n" "$CC" >&6; } | |
3790 | else | |
3791 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3792 | printf "%s\n" "no" >&6; } | |
3793 | fi | |
3794 | ||
3795 | ||
3796 | fi | |
3797 | if test -z "$ac_cv_prog_CC"; then | |
3798 | ac_ct_CC=$CC | |
3799 | # Extract the first word of "clang", so it can be a program name with args. | |
3800 | set dummy clang; ac_word=$2 | |
3801 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3802 | printf %s "checking for $ac_word... " >&6; } | |
3803 | if test ${ac_cv_prog_ac_ct_CC+y} | |
3804 | then : | |
3805 | printf %s "(cached) " >&6 | |
3806 | else $as_nop | |
3807 | if test -n "$ac_ct_CC"; then | |
3808 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
3809 | else | |
3810 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3811 | for as_dir in $PATH | |
3812 | do | |
3813 | IFS=$as_save_IFS | |
3814 | case $as_dir in #((( | |
3815 | '') as_dir=./ ;; | |
3816 | */) ;; | |
3817 | *) as_dir=$as_dir/ ;; | |
3818 | esac | |
3819 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3820 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then | |
3821 | ac_cv_prog_ac_ct_CC="clang" | |
3822 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 | |
3823 | break 2 | |
3824 | fi | |
3825 | done | |
3826 | done | |
3827 | IFS=$as_save_IFS | |
3828 | ||
3829 | fi | |
3830 | fi | |
3831 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
3832 | if test -n "$ac_ct_CC"; then | |
3833 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
3834 | printf "%s\n" "$ac_ct_CC" >&6; } | |
3835 | else | |
3836 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3837 | printf "%s\n" "no" >&6; } | |
3838 | fi | |
3839 | ||
3840 | if test "x$ac_ct_CC" = x; then | |
3841 | CC="" | |
3842 | else | |
3843 | case $cross_compiling:$ac_tool_warned in | |
3844 | yes:) | |
3845 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
3846 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
57aa50d4 TT |
3847 | ac_tool_warned=yes ;; |
3848 | esac | |
3849 | CC=$ac_ct_CC | |
3850 | fi | |
54445dc2 TT |
3851 | else |
3852 | CC="$ac_cv_prog_CC" | |
57aa50d4 TT |
3853 | fi |
3854 | ||
3855 | fi | |
3856 | ||
3857 | ||
54445dc2 TT |
3858 | test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
3859 | printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} | |
d6a4bcb5 TB |
3860 | as_fn_error $? "no acceptable C compiler found in \$PATH |
3861 | See \`config.log' for more details" "$LINENO" 5; } | |
b0cacab0 TT |
3862 | |
3863 | # Provide some information about the compiler. | |
54445dc2 | 3864 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
39fd3d4f SJR |
3865 | set X $ac_compile |
3866 | ac_compiler=$2 | |
54445dc2 | 3867 | for ac_option in --version -v -V -qversion -version; do |
57aa50d4 | 3868 | { { ac_try="$ac_compiler $ac_option >&5" |
e1052144 TT |
3869 | case "(($ac_try" in |
3870 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3871 | *) ac_try_echo=$ac_try;; | |
3872 | esac | |
57aa50d4 | 3873 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
54445dc2 | 3874 | printf "%s\n" "$ac_try_echo"; } >&5 |
57aa50d4 | 3875 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err |
b0cacab0 | 3876 | ac_status=$? |
57aa50d4 TT |
3877 | if test -s conftest.err; then |
3878 | sed '10a\ | |
3879 | ... rest of stderr output deleted ... | |
3880 | 10q' conftest.err >conftest.er1 | |
3881 | cat conftest.er1 >&5 | |
57aa50d4 | 3882 | fi |
61ef2474 | 3883 | rm -f conftest.er1 conftest.err |
54445dc2 | 3884 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
57aa50d4 TT |
3885 | test $ac_status = 0; } |
3886 | done | |
b0cacab0 | 3887 | |
57aa50d4 | 3888 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
b0cacab0 | 3889 | /* end confdefs.h. */ |
61ef2474 | 3890 | |
b0cacab0 | 3891 | int |
54445dc2 | 3892 | main (void) |
b0cacab0 TT |
3893 | { |
3894 | ||
3895 | ; | |
3896 | return 0; | |
3897 | } | |
3898 | _ACEOF | |
3899 | ac_clean_files_save=$ac_clean_files | |
61ef2474 | 3900 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" |
b0cacab0 TT |
3901 | # Try to create an executable without -o first, disregard a.out. |
3902 | # It will help us diagnose broken compilers, and finding out an intuition | |
3903 | # of exeext. | |
54445dc2 TT |
3904 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 |
3905 | printf %s "checking whether the C compiler works... " >&6; } | |
3906 | ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | |
39fd3d4f SJR |
3907 | |
3908 | # The possible output files: | |
3909 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | |
3910 | ||
e1052144 TT |
3911 | ac_rmfiles= |
3912 | for ac_file in $ac_files | |
3913 | do | |
3914 | case $ac_file in | |
39fd3d4f | 3915 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
e1052144 TT |
3916 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
3917 | esac | |
3918 | done | |
3919 | rm -f $ac_rmfiles | |
3920 | ||
57aa50d4 | 3921 | if { { ac_try="$ac_link_default" |
e1052144 TT |
3922 | case "(($ac_try" in |
3923 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3924 | *) ac_try_echo=$ac_try;; | |
3925 | esac | |
57aa50d4 | 3926 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
54445dc2 | 3927 | printf "%s\n" "$ac_try_echo"; } >&5 |
e1052144 | 3928 | (eval "$ac_link_default") 2>&5 |
b0cacab0 | 3929 | ac_status=$? |
54445dc2 TT |
3930 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
3931 | test $ac_status = 0; } | |
3932 | then : | |
e1052144 TT |
3933 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
3934 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
3935 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
3936 | # so that the user can short-circuit this test for compilers unknown to | |
3937 | # Autoconf. | |
29a5deed | 3938 | for ac_file in $ac_files '' |
b0cacab0 TT |
3939 | do |
3940 | test -f "$ac_file" || continue | |
3941 | case $ac_file in | |
39fd3d4f | 3942 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
b0cacab0 TT |
3943 | ;; |
3944 | [ab].out ) | |
3945 | # We found the default executable, but exeext='' is most | |
3946 | # certainly right. | |
3947 | break;; | |
3948 | *.* ) | |
54445dc2 | 3949 | if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no; |
e1052144 TT |
3950 | then :; else |
3951 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
3952 | fi | |
3953 | # We set ac_cv_exeext here because the later test for it is not | |
3954 | # safe: cross compilers may not add the suffix if given an `-o' | |
3955 | # argument, so we may need to know it at that point already. | |
3956 | # Even if this section looks crufty: it has the advantage of | |
3957 | # actually working. | |
b0cacab0 TT |
3958 | break;; |
3959 | * ) | |
3960 | break;; | |
3961 | esac | |
3962 | done | |
e1052144 TT |
3963 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
3964 | ||
54445dc2 | 3965 | else $as_nop |
29a5deed TT |
3966 | ac_file='' |
3967 | fi | |
54445dc2 TT |
3968 | if test -z "$ac_file" |
3969 | then : | |
3970 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3971 | printf "%s\n" "no" >&6; } | |
3972 | printf "%s\n" "$as_me: failed program was:" >&5 | |
b0cacab0 TT |
3973 | sed 's/^/| /' conftest.$ac_ext >&5 |
3974 | ||
54445dc2 TT |
3975 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
3976 | printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} | |
d6a4bcb5 TB |
3977 | as_fn_error 77 "C compiler cannot create executables |
3978 | See \`config.log' for more details" "$LINENO" 5; } | |
54445dc2 TT |
3979 | else $as_nop |
3980 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3981 | printf "%s\n" "yes" >&6; } | |
3982 | fi | |
3983 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 | |
3984 | printf %s "checking for C compiler default output file name... " >&6; } | |
3985 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 | |
3986 | printf "%s\n" "$ac_file" >&6; } | |
b0cacab0 | 3987 | ac_exeext=$ac_cv_exeext |
b0cacab0 | 3988 | |
61ef2474 | 3989 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
b0cacab0 | 3990 | ac_clean_files=$ac_clean_files_save |
54445dc2 TT |
3991 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 |
3992 | printf %s "checking for suffix of executables... " >&6; } | |
57aa50d4 | 3993 | if { { ac_try="$ac_link" |
e1052144 TT |
3994 | case "(($ac_try" in |
3995 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3996 | *) ac_try_echo=$ac_try;; | |
3997 | esac | |
57aa50d4 | 3998 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
54445dc2 | 3999 | printf "%s\n" "$ac_try_echo"; } >&5 |
e1052144 | 4000 | (eval "$ac_link") 2>&5 |
b0cacab0 | 4001 | ac_status=$? |
54445dc2 TT |
4002 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
4003 | test $ac_status = 0; } | |
4004 | then : | |
b0cacab0 TT |
4005 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
4006 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
4007 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
4008 | # `rm'. | |
4009 | for ac_file in conftest.exe conftest conftest.*; do | |
4010 | test -f "$ac_file" || continue | |
4011 | case $ac_file in | |
39fd3d4f | 4012 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
b0cacab0 | 4013 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
b0cacab0 TT |
4014 | break;; |
4015 | * ) break;; | |
4016 | esac | |
4017 | done | |
54445dc2 TT |
4018 | else $as_nop |
4019 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
4020 | printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} | |
d6a4bcb5 TB |
4021 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link |
4022 | See \`config.log' for more details" "$LINENO" 5; } | |
73ae2d4a | 4023 | fi |
61ef2474 | 4024 | rm -f conftest conftest$ac_cv_exeext |
54445dc2 TT |
4025 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
4026 | printf "%s\n" "$ac_cv_exeext" >&6; } | |
73ae2d4a | 4027 | |
b0cacab0 TT |
4028 | rm -f conftest.$ac_ext |
4029 | EXEEXT=$ac_cv_exeext | |
4030 | ac_exeext=$EXEEXT | |
61ef2474 TT |
4031 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4032 | /* end confdefs.h. */ | |
4033 | #include <stdio.h> | |
4034 | int | |
54445dc2 | 4035 | main (void) |
61ef2474 TT |
4036 | { |
4037 | FILE *f = fopen ("conftest.out", "w"); | |
4038 | return ferror (f) || fclose (f) != 0; | |
4039 | ||
4040 | ; | |
4041 | return 0; | |
4042 | } | |
4043 | _ACEOF | |
4044 | ac_clean_files="$ac_clean_files conftest.out" | |
4045 | # Check that the compiler produces executables we can run. If not, either | |
4046 | # the compiler is broken, or we cross compile. | |
54445dc2 TT |
4047 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 |
4048 | printf %s "checking whether we are cross compiling... " >&6; } | |
61ef2474 TT |
4049 | if test "$cross_compiling" != yes; then |
4050 | { { ac_try="$ac_link" | |
4051 | case "(($ac_try" in | |
4052 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4053 | *) ac_try_echo=$ac_try;; | |
4054 | esac | |
4055 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
54445dc2 | 4056 | printf "%s\n" "$ac_try_echo"; } >&5 |
61ef2474 TT |
4057 | (eval "$ac_link") 2>&5 |
4058 | ac_status=$? | |
54445dc2 | 4059 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
61ef2474 TT |
4060 | test $ac_status = 0; } |
4061 | if { ac_try='./conftest$ac_cv_exeext' | |
4062 | { { case "(($ac_try" in | |
4063 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4064 | *) ac_try_echo=$ac_try;; | |
4065 | esac | |
4066 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
54445dc2 | 4067 | printf "%s\n" "$ac_try_echo"; } >&5 |
61ef2474 TT |
4068 | (eval "$ac_try") 2>&5 |
4069 | ac_status=$? | |
54445dc2 | 4070 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
61ef2474 TT |
4071 | test $ac_status = 0; }; }; then |
4072 | cross_compiling=no | |
4073 | else | |
4074 | if test "$cross_compiling" = maybe; then | |
4075 | cross_compiling=yes | |
4076 | else | |
54445dc2 TT |
4077 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4078 | printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} | |
4079 | as_fn_error 77 "cannot run C compiled programs. | |
61ef2474 | 4080 | If you meant to cross compile, use \`--host'. |
d6a4bcb5 | 4081 | See \`config.log' for more details" "$LINENO" 5; } |
61ef2474 TT |
4082 | fi |
4083 | fi | |
4084 | fi | |
54445dc2 TT |
4085 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 |
4086 | printf "%s\n" "$cross_compiling" >&6; } | |
61ef2474 TT |
4087 | |
4088 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out | |
4089 | ac_clean_files=$ac_clean_files_save | |
54445dc2 TT |
4090 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 |
4091 | printf %s "checking for suffix of object files... " >&6; } | |
4092 | if test ${ac_cv_objext+y} | |
4093 | then : | |
4094 | printf %s "(cached) " >&6 | |
4095 | else $as_nop | |
57aa50d4 | 4096 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
b0cacab0 | 4097 | /* end confdefs.h. */ |
07a0db15 | 4098 | |
b0cacab0 | 4099 | int |
54445dc2 | 4100 | main (void) |
b0cacab0 | 4101 | { |
07a0db15 | 4102 | |
b0cacab0 TT |
4103 | ; |
4104 | return 0; | |
4105 | } | |
4106 | _ACEOF | |
4107 | rm -f conftest.o conftest.obj | |
57aa50d4 | 4108 | if { { ac_try="$ac_compile" |
e1052144 TT |
4109 | case "(($ac_try" in |
4110 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4111 | *) ac_try_echo=$ac_try;; | |
4112 | esac | |
57aa50d4 | 4113 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
54445dc2 | 4114 | printf "%s\n" "$ac_try_echo"; } >&5 |
e1052144 | 4115 | (eval "$ac_compile") 2>&5 |
b0cacab0 | 4116 | ac_status=$? |
54445dc2 TT |
4117 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
4118 | test $ac_status = 0; } | |
4119 | then : | |
e1052144 TT |
4120 | for ac_file in conftest.o conftest.obj conftest.*; do |
4121 | test -f "$ac_file" || continue; | |
b0cacab0 | 4122 | case $ac_file in |
39fd3d4f | 4123 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
b0cacab0 TT |
4124 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
4125 | break;; | |
4126 | esac | |
4127 | done | |
54445dc2 TT |
4128 | else $as_nop |
4129 | printf "%s\n" "$as_me: failed program was:" >&5 | |
b0cacab0 | 4130 | sed 's/^/| /' conftest.$ac_ext >&5 |
07a0db15 | 4131 | |
54445dc2 TT |
4132 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4133 | printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} | |
d6a4bcb5 TB |
4134 | as_fn_error $? "cannot compute suffix of object files: cannot compile |
4135 | See \`config.log' for more details" "$LINENO" 5; } | |
73ae2d4a | 4136 | fi |
b0cacab0 | 4137 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
73ae2d4a | 4138 | fi |
54445dc2 TT |
4139 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
4140 | printf "%s\n" "$ac_cv_objext" >&6; } | |
b0cacab0 TT |
4141 | OBJEXT=$ac_cv_objext |
4142 | ac_objext=$OBJEXT | |
54445dc2 TT |
4143 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5 |
4144 | printf %s "checking whether the compiler supports GNU C... " >&6; } | |
4145 | if test ${ac_cv_c_compiler_gnu+y} | |
4146 | then : | |
4147 | printf %s "(cached) " >&6 | |
4148 | else $as_nop | |
57aa50d4 | 4149 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
b0cacab0 TT |
4150 | /* end confdefs.h. */ |
4151 | ||
4152 | int | |
54445dc2 | 4153 | main (void) |
b0cacab0 TT |
4154 | { |
4155 | #ifndef __GNUC__ | |
4156 | choke me | |
4157 | #endif | |
4158 | ||
4159 | ; | |
4160 | return 0; | |
4161 | } | |
4162 | _ACEOF | |
54445dc2 TT |
4163 | if ac_fn_c_try_compile "$LINENO" |
4164 | then : | |
b0cacab0 | 4165 | ac_compiler_gnu=yes |
54445dc2 | 4166 | else $as_nop |
57aa50d4 | 4167 | ac_compiler_gnu=no |
b0cacab0 | 4168 | fi |
54445dc2 | 4169 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
b0cacab0 TT |
4170 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
4171 | ||
4172 | fi | |
54445dc2 TT |
4173 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
4174 | printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; } | |
4175 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4176 | ||
39fd3d4f SJR |
4177 | if test $ac_compiler_gnu = yes; then |
4178 | GCC=yes | |
4179 | else | |
4180 | GCC= | |
4181 | fi | |
54445dc2 | 4182 | ac_test_CFLAGS=${CFLAGS+y} |
b0cacab0 | 4183 | ac_save_CFLAGS=$CFLAGS |
54445dc2 TT |
4184 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
4185 | printf %s "checking whether $CC accepts -g... " >&6; } | |
4186 | if test ${ac_cv_prog_cc_g+y} | |
4187 | then : | |
4188 | printf %s "(cached) " >&6 | |
4189 | else $as_nop | |
e1052144 TT |
4190 | ac_save_c_werror_flag=$ac_c_werror_flag |
4191 | ac_c_werror_flag=yes | |
4192 | ac_cv_prog_cc_g=no | |
4193 | CFLAGS="-g" | |
57aa50d4 | 4194 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
e1052144 TT |
4195 | /* end confdefs.h. */ |
4196 | ||
4197 | int | |
54445dc2 | 4198 | main (void) |
e1052144 TT |
4199 | { |
4200 | ||
4201 | ; | |
4202 | return 0; | |
4203 | } | |
4204 | _ACEOF | |
54445dc2 TT |
4205 | if ac_fn_c_try_compile "$LINENO" |
4206 | then : | |
e1052144 | 4207 | ac_cv_prog_cc_g=yes |
54445dc2 | 4208 | else $as_nop |
57aa50d4 TT |
4209 | CFLAGS="" |
4210 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
e1052144 TT |
4211 | /* end confdefs.h. */ |
4212 | ||
4213 | int | |
54445dc2 | 4214 | main (void) |
e1052144 TT |
4215 | { |
4216 | ||
4217 | ; | |
4218 | return 0; | |
4219 | } | |
4220 | _ACEOF | |
54445dc2 TT |
4221 | if ac_fn_c_try_compile "$LINENO" |
4222 | then : | |
e1052144 | 4223 | |
54445dc2 | 4224 | else $as_nop |
57aa50d4 | 4225 | ac_c_werror_flag=$ac_save_c_werror_flag |
e1052144 | 4226 | CFLAGS="-g" |
57aa50d4 | 4227 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
b0cacab0 TT |
4228 | /* end confdefs.h. */ |
4229 | ||
4230 | int | |
54445dc2 | 4231 | main (void) |
b0cacab0 TT |
4232 | { |
4233 | ||
4234 | ; | |
4235 | return 0; | |
4236 | } | |
4237 | _ACEOF | |
54445dc2 TT |
4238 | if ac_fn_c_try_compile "$LINENO" |
4239 | then : | |
b0cacab0 | 4240 | ac_cv_prog_cc_g=yes |
e1052144 | 4241 | fi |
54445dc2 | 4242 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
e1052144 | 4243 | fi |
54445dc2 | 4244 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
b0cacab0 | 4245 | fi |
54445dc2 | 4246 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
e1052144 | 4247 | ac_c_werror_flag=$ac_save_c_werror_flag |
b0cacab0 | 4248 | fi |
54445dc2 TT |
4249 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 |
4250 | printf "%s\n" "$ac_cv_prog_cc_g" >&6; } | |
4251 | if test $ac_test_CFLAGS; then | |
b0cacab0 TT |
4252 | CFLAGS=$ac_save_CFLAGS |
4253 | elif test $ac_cv_prog_cc_g = yes; then | |
4254 | if test "$GCC" = yes; then | |
4255 | CFLAGS="-g -O2" | |
4256 | else | |
4257 | CFLAGS="-g" | |
4258 | fi | |
73ae2d4a TT |
4259 | else |
4260 | if test "$GCC" = yes; then | |
4261 | CFLAGS="-O2" | |
4262 | else | |
4263 | CFLAGS= | |
4264 | fi | |
4265 | fi | |
54445dc2 TT |
4266 | ac_prog_cc_stdc=no |
4267 | if test x$ac_prog_cc_stdc = xno | |
4268 | then : | |
4269 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5 | |
4270 | printf %s "checking for $CC option to enable C11 features... " >&6; } | |
4271 | if test ${ac_cv_prog_cc_c11+y} | |
4272 | then : | |
4273 | printf %s "(cached) " >&6 | |
4274 | else $as_nop | |
4275 | ac_cv_prog_cc_c11=no | |
b0cacab0 | 4276 | ac_save_CC=$CC |
57aa50d4 | 4277 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
b0cacab0 | 4278 | /* end confdefs.h. */ |
54445dc2 | 4279 | $ac_c_conftest_c11_program |
b0cacab0 | 4280 | _ACEOF |
54445dc2 | 4281 | for ac_arg in '' -std=gnu11 |
b0cacab0 TT |
4282 | do |
4283 | CC="$ac_save_CC $ac_arg" | |
54445dc2 TT |
4284 | if ac_fn_c_try_compile "$LINENO" |
4285 | then : | |
4286 | ac_cv_prog_cc_c11=$ac_arg | |
4287 | fi | |
4288 | rm -f core conftest.err conftest.$ac_objext conftest.beam | |
4289 | test "x$ac_cv_prog_cc_c11" != "xno" && break | |
4290 | done | |
4291 | rm -f conftest.$ac_ext | |
4292 | CC=$ac_save_CC | |
4293 | fi | |
4294 | ||
4295 | if test "x$ac_cv_prog_cc_c11" = xno | |
4296 | then : | |
4297 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
4298 | printf "%s\n" "unsupported" >&6; } | |
4299 | else $as_nop | |
4300 | if test "x$ac_cv_prog_cc_c11" = x | |
4301 | then : | |
4302 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
4303 | printf "%s\n" "none needed" >&6; } | |
4304 | else $as_nop | |
4305 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 | |
4306 | printf "%s\n" "$ac_cv_prog_cc_c11" >&6; } | |
4307 | CC="$CC $ac_cv_prog_cc_c11" | |
4308 | fi | |
4309 | ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11 | |
4310 | ac_prog_cc_stdc=c11 | |
4311 | fi | |
4312 | fi | |
4313 | if test x$ac_prog_cc_stdc = xno | |
4314 | then : | |
4315 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5 | |
4316 | printf %s "checking for $CC option to enable C99 features... " >&6; } | |
4317 | if test ${ac_cv_prog_cc_c99+y} | |
4318 | then : | |
4319 | printf %s "(cached) " >&6 | |
4320 | else $as_nop | |
4321 | ac_cv_prog_cc_c99=no | |
4322 | ac_save_CC=$CC | |
4323 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4324 | /* end confdefs.h. */ | |
4325 | $ac_c_conftest_c99_program | |
4326 | _ACEOF | |
4327 | for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99= | |
4328 | do | |
4329 | CC="$ac_save_CC $ac_arg" | |
4330 | if ac_fn_c_try_compile "$LINENO" | |
4331 | then : | |
4332 | ac_cv_prog_cc_c99=$ac_arg | |
4333 | fi | |
4334 | rm -f core conftest.err conftest.$ac_objext conftest.beam | |
4335 | test "x$ac_cv_prog_cc_c99" != "xno" && break | |
4336 | done | |
4337 | rm -f conftest.$ac_ext | |
4338 | CC=$ac_save_CC | |
4339 | fi | |
4340 | ||
4341 | if test "x$ac_cv_prog_cc_c99" = xno | |
4342 | then : | |
4343 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
4344 | printf "%s\n" "unsupported" >&6; } | |
4345 | else $as_nop | |
4346 | if test "x$ac_cv_prog_cc_c99" = x | |
4347 | then : | |
4348 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
4349 | printf "%s\n" "none needed" >&6; } | |
4350 | else $as_nop | |
4351 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 | |
4352 | printf "%s\n" "$ac_cv_prog_cc_c99" >&6; } | |
4353 | CC="$CC $ac_cv_prog_cc_c99" | |
4354 | fi | |
4355 | ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 | |
4356 | ac_prog_cc_stdc=c99 | |
4357 | fi | |
4358 | fi | |
4359 | if test x$ac_prog_cc_stdc = xno | |
4360 | then : | |
4361 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5 | |
4362 | printf %s "checking for $CC option to enable C89 features... " >&6; } | |
4363 | if test ${ac_cv_prog_cc_c89+y} | |
4364 | then : | |
4365 | printf %s "(cached) " >&6 | |
4366 | else $as_nop | |
4367 | ac_cv_prog_cc_c89=no | |
4368 | ac_save_CC=$CC | |
4369 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4370 | /* end confdefs.h. */ | |
4371 | $ac_c_conftest_c89_program | |
4372 | _ACEOF | |
4373 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
4374 | do | |
4375 | CC="$ac_save_CC $ac_arg" | |
4376 | if ac_fn_c_try_compile "$LINENO" | |
4377 | then : | |
e1052144 | 4378 | ac_cv_prog_cc_c89=$ac_arg |
b0cacab0 | 4379 | fi |
54445dc2 | 4380 | rm -f core conftest.err conftest.$ac_objext conftest.beam |
e1052144 | 4381 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
b0cacab0 | 4382 | done |
e1052144 | 4383 | rm -f conftest.$ac_ext |
b0cacab0 | 4384 | CC=$ac_save_CC |
b0cacab0 | 4385 | fi |
b0cacab0 | 4386 | |
54445dc2 TT |
4387 | if test "x$ac_cv_prog_cc_c89" = xno |
4388 | then : | |
4389 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
4390 | printf "%s\n" "unsupported" >&6; } | |
4391 | else $as_nop | |
4392 | if test "x$ac_cv_prog_cc_c89" = x | |
4393 | then : | |
4394 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
4395 | printf "%s\n" "none needed" >&6; } | |
4396 | else $as_nop | |
4397 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | |
4398 | printf "%s\n" "$ac_cv_prog_cc_c89" >&6; } | |
4399 | CC="$CC $ac_cv_prog_cc_c89" | |
4400 | fi | |
4401 | ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 | |
4402 | ac_prog_cc_stdc=c89 | |
4403 | fi | |
57aa50d4 | 4404 | fi |
b0cacab0 | 4405 | |
b0cacab0 TT |
4406 | ac_ext=c |
4407 | ac_cpp='$CPP $CPPFLAGS' | |
4408 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4409 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4410 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4411 | ||
57aa50d4 | 4412 | |
54445dc2 TT |
4413 | ac_header= ac_cache= |
4414 | for ac_item in $ac_header_c_list | |
4415 | do | |
4416 | if test $ac_cache; then | |
4417 | ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default" | |
4418 | if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then | |
4419 | printf "%s\n" "#define $ac_item 1" >> confdefs.h | |
4420 | fi | |
4421 | ac_header= ac_cache= | |
4422 | elif test $ac_header; then | |
4423 | ac_cache=$ac_item | |
4424 | else | |
4425 | ac_header=$ac_item | |
4426 | fi | |
4427 | done | |
4428 | ||
4429 | ||
4430 | ||
4431 | ||
4432 | ||
4433 | ||
4434 | ||
4435 | ||
4436 | if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes | |
4437 | then : | |
4438 | ||
4439 | printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h | |
4440 | ||
4441 | fi | |
4442 | ||
4443 | ||
4444 | ||
4445 | ||
4446 | ||
4447 | ||
4448 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 | |
4449 | printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; } | |
4450 | if test ${ac_cv_safe_to_define___extensions__+y} | |
4451 | then : | |
4452 | printf %s "(cached) " >&6 | |
4453 | else $as_nop | |
4454 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4455 | /* end confdefs.h. */ | |
4456 | ||
4457 | # define __EXTENSIONS__ 1 | |
4458 | $ac_includes_default | |
4459 | int | |
4460 | main (void) | |
4461 | { | |
4462 | ||
4463 | ; | |
4464 | return 0; | |
4465 | } | |
4466 | _ACEOF | |
4467 | if ac_fn_c_try_compile "$LINENO" | |
4468 | then : | |
4469 | ac_cv_safe_to_define___extensions__=yes | |
4470 | else $as_nop | |
4471 | ac_cv_safe_to_define___extensions__=no | |
4472 | fi | |
4473 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext | |
4474 | fi | |
4475 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 | |
4476 | printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; } | |
4477 | ||
4478 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5 | |
4479 | printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; } | |
4480 | if test ${ac_cv_should_define__xopen_source+y} | |
4481 | then : | |
4482 | printf %s "(cached) " >&6 | |
4483 | else $as_nop | |
4484 | ac_cv_should_define__xopen_source=no | |
4485 | if test $ac_cv_header_wchar_h = yes | |
4486 | then : | |
4487 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4488 | /* end confdefs.h. */ | |
4489 | ||
4490 | #include <wchar.h> | |
4491 | mbstate_t x; | |
4492 | int | |
4493 | main (void) | |
4494 | { | |
4495 | ||
4496 | ; | |
4497 | return 0; | |
4498 | } | |
4499 | _ACEOF | |
4500 | if ac_fn_c_try_compile "$LINENO" | |
4501 | then : | |
4502 | ||
4503 | else $as_nop | |
4504 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4505 | /* end confdefs.h. */ | |
4506 | ||
4507 | #define _XOPEN_SOURCE 500 | |
4508 | #include <wchar.h> | |
4509 | mbstate_t x; | |
4510 | int | |
4511 | main (void) | |
4512 | { | |
4513 | ||
4514 | ; | |
4515 | return 0; | |
4516 | } | |
4517 | _ACEOF | |
4518 | if ac_fn_c_try_compile "$LINENO" | |
4519 | then : | |
4520 | ac_cv_should_define__xopen_source=yes | |
4521 | fi | |
4522 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext | |
4523 | fi | |
4524 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext | |
4525 | fi | |
4526 | fi | |
4527 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5 | |
4528 | printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; } | |
4529 | ||
4530 | printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h | |
4531 | ||
4532 | printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h | |
4533 | ||
4534 | printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h | |
4535 | ||
4536 | printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h | |
4537 | ||
4538 | printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h | |
4539 | ||
4540 | printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h | |
4541 | ||
4542 | printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h | |
4543 | ||
4544 | printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h | |
4545 | ||
4546 | printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h | |
4547 | ||
4548 | printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h | |
4549 | ||
4550 | printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h | |
4551 | ||
4552 | printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h | |
4553 | ||
4554 | printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h | |
4555 | ||
4556 | printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h | |
4557 | ||
4558 | printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h | |
4559 | ||
4560 | if test $ac_cv_header_minix_config_h = yes | |
4561 | then : | |
4562 | MINIX=yes | |
4563 | printf "%s\n" "#define _MINIX 1" >>confdefs.h | |
4564 | ||
4565 | printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h | |
4566 | ||
4567 | printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h | |
4568 | ||
4569 | else $as_nop | |
4570 | MINIX= | |
4571 | fi | |
4572 | if test $ac_cv_safe_to_define___extensions__ = yes | |
4573 | then : | |
4574 | printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h | |
4575 | ||
4576 | fi | |
4577 | if test $ac_cv_should_define__xopen_source = yes | |
4578 | then : | |
4579 | printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h | |
4580 | ||
4581 | fi | |
4582 | ||
4583 | MCONFIG=./MCONFIG | |
4584 | ||
4585 | BINARY_TYPE=bin | |
4586 | E2FSPROGS_VERSION=`grep E2FSPROGS_VERSION ${srcdir}/version.h \ | |
4587 | | awk '{print $3}' | tr \" " " | awk '{print $1}'` | |
4588 | E2FSPROGS_DATE=`grep E2FSPROGS_DATE ${srcdir}/version.h | awk '{print $3}' \ | |
4589 | | tr \" " " | awk '{print $1}'` | |
4590 | E2FSPROGS_DAY=$(echo $E2FSPROGS_DATE | awk -F- '{print $1}' | sed -e '/^[1-9]$/s/^/0/') | |
4591 | MONTH=`echo $E2FSPROGS_DATE | awk -F- '{print $2}'` | |
4592 | YEAR=`echo $E2FSPROGS_DATE | awk -F- '{print $3}'` | |
4593 | ||
4594 | if expr $YEAR ">" 1900 > /dev/null ; then | |
4595 | E2FSPROGS_YEAR=$YEAR | |
4596 | elif expr $YEAR ">" 90 >/dev/null ; then | |
4597 | E2FSPROGS_YEAR=19$YEAR | |
4598 | else | |
4599 | E2FSPROGS_YEAR=20$YEAR | |
4600 | fi | |
4601 | ||
4602 | case $MONTH in | |
4603 | Jan) MONTH_NUM=01; E2FSPROGS_MONTH="January" ;; | |
4604 | Feb) MONTH_NUM=02; E2FSPROGS_MONTH="February" ;; | |
4605 | Mar) MONTH_NUM=03; E2FSPROGS_MONTH="March" ;; | |
4606 | Apr) MONTH_NUM=04; E2FSPROGS_MONTH="April" ;; | |
4607 | May) MONTH_NUM=05; E2FSPROGS_MONTH="May" ;; | |
4608 | Jun) MONTH_NUM=06; E2FSPROGS_MONTH="June" ;; | |
4609 | Jul) MONTH_NUM=07; E2FSPROGS_MONTH="July" ;; | |
4610 | Aug) MONTH_NUM=08; E2FSPROGS_MONTH="August" ;; | |
4611 | Sep) MONTH_NUM=09; E2FSPROGS_MONTH="September" ;; | |
4612 | Oct) MONTH_NUM=10; E2FSPROGS_MONTH="October" ;; | |
4613 | Nov) MONTH_NUM=11; E2FSPROGS_MONTH="November" ;; | |
4614 | Dec) MONTH_NUM=12; E2FSPROGS_MONTH="December" ;; | |
4615 | *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Unknown month $MONTH??" >&5 | |
4616 | printf "%s\n" "$as_me: WARNING: Unknown month $MONTH??" >&2;} ;; | |
4617 | esac | |
4618 | ||
4619 | base_ver=`echo $E2FSPROGS_VERSION | \ | |
4620 | sed -e 's/-WIP//' -e 's/pre-//' -e 's/-PLUS//'` | |
4621 | ||
4622 | date_spec=${E2FSPROGS_YEAR}.${MONTH_NUM}.${E2FSPROGS_DAY} | |
4623 | ||
4624 | case $E2FSPROGS_VERSION in | |
4625 | *-WIP|pre-*) | |
4626 | E2FSPROGS_PKGVER="$base_ver~WIP.$date_spec" | |
4627 | ;; | |
4628 | *) | |
4629 | E2FSPROGS_PKGVER="$base_ver" | |
4630 | ;; | |
4631 | esac | |
4632 | ||
4633 | unset DATE MONTH YEAR base_ver pre_vers date_spec | |
4634 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&5 | |
4635 | printf "%s\n" "Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&6; } | |
4636 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&5 | |
4637 | printf "%s\n" "Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&6; } | |
4638 | ||
4639 | ||
4640 | ||
4641 | ||
4642 | ||
4643 | ||
4644 | WITH_DIET_LIBC= | |
4645 | ||
4646 | # Check whether --with-diet-libc was given. | |
4647 | if test ${with_diet_libc+y} | |
4648 | then : | |
4649 | withval=$with_diet_libc; CC="diet cc -nostdinc" | |
4650 | WITH_DIET_LIBC=yes | |
4651 | if test -z "$LIBS" | |
4652 | then | |
4653 | LIBS="-lcompat" | |
4654 | else | |
4655 | LIBS="$LIBS -lcompat" | |
4656 | fi | |
4657 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: CC=$CC" >&5 | |
4658 | printf "%s\n" "CC=$CC" >&6; } | |
4659 | fi | |
4660 | ||
4661 | ||
4662 | ||
4663 | # Make sure we can run config.sub. | |
4664 | $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 || | |
4665 | as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5 | |
4666 | ||
4667 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 | |
4668 | printf %s "checking build system type... " >&6; } | |
4669 | if test ${ac_cv_build+y} | |
4670 | then : | |
4671 | printf %s "(cached) " >&6 | |
4672 | else $as_nop | |
4673 | ac_build_alias=$build_alias | |
4674 | test "x$ac_build_alias" = x && | |
4675 | ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"` | |
4676 | test "x$ac_build_alias" = x && | |
4677 | as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 | |
4678 | ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` || | |
4679 | as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5 | |
4680 | ||
4681 | fi | |
4682 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 | |
4683 | printf "%s\n" "$ac_cv_build" >&6; } | |
4684 | case $ac_cv_build in | |
4685 | *-*-*) ;; | |
4686 | *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; | |
4687 | esac | |
4688 | build=$ac_cv_build | |
4689 | ac_save_IFS=$IFS; IFS='-' | |
4690 | set x $ac_cv_build | |
4691 | shift | |
4692 | build_cpu=$1 | |
4693 | build_vendor=$2 | |
4694 | shift; shift | |
4695 | # Remember, the first character of IFS is used to create $*, | |
4696 | # except with old shells: | |
4697 | build_os=$* | |
4698 | IFS=$ac_save_IFS | |
4699 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | |
4700 | ||
4701 | ||
4702 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 | |
4703 | printf %s "checking host system type... " >&6; } | |
4704 | if test ${ac_cv_host+y} | |
4705 | then : | |
4706 | printf %s "(cached) " >&6 | |
4707 | else $as_nop | |
4708 | if test "x$host_alias" = x; then | |
4709 | ac_cv_host=$ac_cv_build | |
b0cacab0 | 4710 | else |
54445dc2 TT |
4711 | ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` || |
4712 | as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5 | |
4713 | fi | |
4714 | ||
4715 | fi | |
4716 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 | |
4717 | printf "%s\n" "$ac_cv_host" >&6; } | |
4718 | case $ac_cv_host in | |
4719 | *-*-*) ;; | |
4720 | *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; | |
4721 | esac | |
4722 | host=$ac_cv_host | |
4723 | ac_save_IFS=$IFS; IFS='-' | |
4724 | set x $ac_cv_host | |
4725 | shift | |
4726 | host_cpu=$1 | |
4727 | host_vendor=$2 | |
4728 | shift; shift | |
4729 | # Remember, the first character of IFS is used to create $*, | |
4730 | # except with old shells: | |
4731 | host_os=$* | |
4732 | IFS=$ac_save_IFS | |
4733 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | |
4734 | ||
4735 | ||
4736 | DLOPEN_LIB='' | |
4737 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 | |
4738 | printf %s "checking for dlopen in -ldl... " >&6; } | |
4739 | if test ${ac_cv_lib_dl_dlopen+y} | |
4740 | then : | |
4741 | printf %s "(cached) " >&6 | |
4742 | else $as_nop | |
57aa50d4 TT |
4743 | ac_check_lib_save_LIBS=$LIBS |
4744 | LIBS="-ldl $LIBS" | |
4745 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
b0cacab0 | 4746 | /* end confdefs.h. */ |
57aa50d4 TT |
4747 | |
4748 | /* Override any GCC internal prototype to avoid an error. | |
4749 | Use char because int might match the return type of a GCC | |
4750 | builtin and then its argument prototype would still apply. */ | |
57aa50d4 TT |
4751 | char dlopen (); |
4752 | int | |
54445dc2 | 4753 | main (void) |
57aa50d4 TT |
4754 | { |
4755 | return dlopen (); | |
4756 | ; | |
4757 | return 0; | |
4758 | } | |
b0cacab0 | 4759 | _ACEOF |
54445dc2 TT |
4760 | if ac_fn_c_try_link "$LINENO" |
4761 | then : | |
57aa50d4 | 4762 | ac_cv_lib_dl_dlopen=yes |
54445dc2 | 4763 | else $as_nop |
57aa50d4 | 4764 | ac_cv_lib_dl_dlopen=no |
b0cacab0 | 4765 | fi |
54445dc2 | 4766 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
57aa50d4 TT |
4767 | conftest$ac_exeext conftest.$ac_ext |
4768 | LIBS=$ac_check_lib_save_LIBS | |
b0cacab0 | 4769 | fi |
54445dc2 TT |
4770 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 |
4771 | printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; } | |
4772 | if test "x$ac_cv_lib_dl_dlopen" = xyes | |
4773 | then : | |
57aa50d4 | 4774 | DLOPEN_LIB=-ldl |
b0cacab0 TT |
4775 | fi |
4776 | ||
b0cacab0 | 4777 | |
e1052144 | 4778 | |
57aa50d4 | 4779 | # Check whether --with-cc was given. |
54445dc2 TT |
4780 | if test ${with_cc+y} |
4781 | then : | |
d6a4bcb5 | 4782 | withval=$with_cc; as_fn_error $? "--with-cc no longer supported; use CC= instead" "$LINENO" 5 |
57aa50d4 | 4783 | fi |
b0cacab0 | 4784 | |
b0cacab0 | 4785 | |
57aa50d4 | 4786 | # Check whether --with-ccopts was given. |
54445dc2 TT |
4787 | if test ${with_ccopts+y} |
4788 | then : | |
d6a4bcb5 | 4789 | withval=$with_ccopts; as_fn_error $? "--with-ccopts no longer supported; use CFLAGS= instead" "$LINENO" 5 |
b0cacab0 | 4790 | fi |
e1052144 | 4791 | |
b0cacab0 | 4792 | |
57aa50d4 | 4793 | # Check whether --with-ldopts was given. |
54445dc2 TT |
4794 | if test ${with_ldopts+y} |
4795 | then : | |
d6a4bcb5 | 4796 | withval=$with_ldopts; as_fn_error $? "--with-ldopts no longer supported; use LDFLAGS= instead" "$LINENO" 5 |
b0cacab0 TT |
4797 | fi |
4798 | ||
4799 | ac_ext=c | |
4800 | ac_cpp='$CPP $CPPFLAGS' | |
4801 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4802 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4803 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
57aa50d4 TT |
4804 | if test -n "$ac_tool_prefix"; then |
4805 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
4806 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
54445dc2 TT |
4807 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4808 | printf %s "checking for $ac_word... " >&6; } | |
4809 | if test ${ac_cv_prog_CC+y} | |
4810 | then : | |
4811 | printf %s "(cached) " >&6 | |
4812 | else $as_nop | |
57aa50d4 TT |
4813 | if test -n "$CC"; then |
4814 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4815 | else | |
4816 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4817 | for as_dir in $PATH | |
e1052144 TT |
4818 | do |
4819 | IFS=$as_save_IFS | |
54445dc2 TT |
4820 | case $as_dir in #((( |
4821 | '') as_dir=./ ;; | |
4822 | */) ;; | |
4823 | *) as_dir=$as_dir/ ;; | |
4824 | esac | |
39fd3d4f | 4825 | for ac_exec_ext in '' $ac_executable_extensions; do |
54445dc2 | 4826 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
57aa50d4 | 4827 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
54445dc2 | 4828 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
57aa50d4 TT |
4829 | break 2 |
4830 | fi | |
e1052144 | 4831 | done |
57aa50d4 | 4832 | done |
e1052144 | 4833 | IFS=$as_save_IFS |
e1052144 | 4834 | |
e1052144 | 4835 | fi |
57aa50d4 TT |
4836 | fi |
4837 | CC=$ac_cv_prog_CC | |
4838 | if test -n "$CC"; then | |
54445dc2 TT |
4839 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
4840 | printf "%s\n" "$CC" >&6; } | |
57aa50d4 | 4841 | else |
54445dc2 TT |
4842 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4843 | printf "%s\n" "no" >&6; } | |
57aa50d4 | 4844 | fi |
e1052144 TT |
4845 | |
4846 | ||
57aa50d4 TT |
4847 | fi |
4848 | if test -z "$ac_cv_prog_CC"; then | |
4849 | ac_ct_CC=$CC | |
4850 | # Extract the first word of "gcc", so it can be a program name with args. | |
4851 | set dummy gcc; ac_word=$2 | |
54445dc2 TT |
4852 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4853 | printf %s "checking for $ac_word... " >&6; } | |
4854 | if test ${ac_cv_prog_ac_ct_CC+y} | |
4855 | then : | |
4856 | printf %s "(cached) " >&6 | |
4857 | else $as_nop | |
57aa50d4 TT |
4858 | if test -n "$ac_ct_CC"; then |
4859 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
4860 | else | |
4861 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4862 | for as_dir in $PATH | |
e1052144 TT |
4863 | do |
4864 | IFS=$as_save_IFS | |
54445dc2 TT |
4865 | case $as_dir in #((( |
4866 | '') as_dir=./ ;; | |
4867 | */) ;; | |
4868 | *) as_dir=$as_dir/ ;; | |
4869 | esac | |
39fd3d4f | 4870 | for ac_exec_ext in '' $ac_executable_extensions; do |
54445dc2 | 4871 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
57aa50d4 | 4872 | ac_cv_prog_ac_ct_CC="gcc" |
54445dc2 | 4873 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
57aa50d4 TT |
4874 | break 2 |
4875 | fi | |
e1052144 | 4876 | done |
57aa50d4 | 4877 | done |
e1052144 | 4878 | IFS=$as_save_IFS |
b0cacab0 | 4879 | |
e1052144 | 4880 | fi |
57aa50d4 TT |
4881 | fi |
4882 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
4883 | if test -n "$ac_ct_CC"; then | |
54445dc2 TT |
4884 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
4885 | printf "%s\n" "$ac_ct_CC" >&6; } | |
b0cacab0 | 4886 | else |
54445dc2 TT |
4887 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4888 | printf "%s\n" "no" >&6; } | |
57aa50d4 | 4889 | fi |
b0cacab0 | 4890 | |
57aa50d4 TT |
4891 | if test "x$ac_ct_CC" = x; then |
4892 | CC="" | |
4893 | else | |
4894 | case $cross_compiling:$ac_tool_warned in | |
4895 | yes:) | |
54445dc2 TT |
4896 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
4897 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
57aa50d4 | 4898 | ac_tool_warned=yes ;; |
e1052144 | 4899 | esac |
57aa50d4 TT |
4900 | CC=$ac_ct_CC |
4901 | fi | |
b0cacab0 | 4902 | else |
57aa50d4 | 4903 | CC="$ac_cv_prog_CC" |
b0cacab0 | 4904 | fi |
e1052144 | 4905 | |
57aa50d4 TT |
4906 | if test -z "$CC"; then |
4907 | if test -n "$ac_tool_prefix"; then | |
4908 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
4909 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
54445dc2 TT |
4910 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4911 | printf %s "checking for $ac_word... " >&6; } | |
4912 | if test ${ac_cv_prog_CC+y} | |
4913 | then : | |
4914 | printf %s "(cached) " >&6 | |
4915 | else $as_nop | |
57aa50d4 TT |
4916 | if test -n "$CC"; then |
4917 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4918 | else | |
4919 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4920 | for as_dir in $PATH | |
4921 | do | |
4922 | IFS=$as_save_IFS | |
54445dc2 TT |
4923 | case $as_dir in #((( |
4924 | '') as_dir=./ ;; | |
4925 | */) ;; | |
4926 | *) as_dir=$as_dir/ ;; | |
4927 | esac | |
57aa50d4 | 4928 | for ac_exec_ext in '' $ac_executable_extensions; do |
54445dc2 | 4929 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
57aa50d4 | 4930 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
54445dc2 | 4931 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
57aa50d4 TT |
4932 | break 2 |
4933 | fi | |
4934 | done | |
4935 | done | |
4936 | IFS=$as_save_IFS | |
b0cacab0 | 4937 | |
a64c9c13 | 4938 | fi |
57aa50d4 TT |
4939 | fi |
4940 | CC=$ac_cv_prog_CC | |
4941 | if test -n "$CC"; then | |
54445dc2 TT |
4942 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
4943 | printf "%s\n" "$CC" >&6; } | |
b0cacab0 | 4944 | else |
54445dc2 TT |
4945 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4946 | printf "%s\n" "no" >&6; } | |
a64c9c13 | 4947 | fi |
b0cacab0 | 4948 | |
b0cacab0 | 4949 | |
57aa50d4 TT |
4950 | fi |
4951 | fi | |
4952 | if test -z "$CC"; then | |
4953 | # Extract the first word of "cc", so it can be a program name with args. | |
4954 | set dummy cc; ac_word=$2 | |
54445dc2 TT |
4955 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4956 | printf %s "checking for $ac_word... " >&6; } | |
4957 | if test ${ac_cv_prog_CC+y} | |
4958 | then : | |
4959 | printf %s "(cached) " >&6 | |
4960 | else $as_nop | |
57aa50d4 TT |
4961 | if test -n "$CC"; then |
4962 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
a64c9c13 | 4963 | else |
57aa50d4 TT |
4964 | ac_prog_rejected=no |
4965 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4966 | for as_dir in $PATH | |
4967 | do | |
4968 | IFS=$as_save_IFS | |
54445dc2 TT |
4969 | case $as_dir in #((( |
4970 | '') as_dir=./ ;; | |
4971 | */) ;; | |
4972 | *) as_dir=$as_dir/ ;; | |
4973 | esac | |
57aa50d4 | 4974 | for ac_exec_ext in '' $ac_executable_extensions; do |
54445dc2 TT |
4975 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
4976 | if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | |
57aa50d4 TT |
4977 | ac_prog_rejected=yes |
4978 | continue | |
4979 | fi | |
4980 | ac_cv_prog_CC="cc" | |
54445dc2 | 4981 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
57aa50d4 TT |
4982 | break 2 |
4983 | fi | |
4984 | done | |
4985 | done | |
4986 | IFS=$as_save_IFS | |
b0cacab0 | 4987 | |
57aa50d4 TT |
4988 | if test $ac_prog_rejected = yes; then |
4989 | # We found a bogon in the path, so make sure we never use it. | |
4990 | set dummy $ac_cv_prog_CC | |
4991 | shift | |
4992 | if test $# != 0; then | |
4993 | # We chose a different compiler from the bogus one. | |
4994 | # However, it has the same basename, so the bogon will be chosen | |
4995 | # first if we set CC to just the basename; use the full file name. | |
4996 | shift | |
54445dc2 | 4997 | ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@" |
57aa50d4 | 4998 | fi |
b0cacab0 | 4999 | fi |
b0cacab0 TT |
5000 | fi |
5001 | fi | |
57aa50d4 TT |
5002 | CC=$ac_cv_prog_CC |
5003 | if test -n "$CC"; then | |
54445dc2 TT |
5004 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
5005 | printf "%s\n" "$CC" >&6; } | |
57aa50d4 | 5006 | else |
54445dc2 TT |
5007 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5008 | printf "%s\n" "no" >&6; } | |
b0cacab0 | 5009 | fi |
b0cacab0 | 5010 | |
b0cacab0 TT |
5011 | |
5012 | fi | |
57aa50d4 TT |
5013 | if test -z "$CC"; then |
5014 | if test -n "$ac_tool_prefix"; then | |
5015 | for ac_prog in cl.exe | |
5016 | do | |
5017 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
5018 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
54445dc2 TT |
5019 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5020 | printf %s "checking for $ac_word... " >&6; } | |
5021 | if test ${ac_cv_prog_CC+y} | |
5022 | then : | |
5023 | printf %s "(cached) " >&6 | |
5024 | else $as_nop | |
57aa50d4 TT |
5025 | if test -n "$CC"; then |
5026 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
5027 | else | |
5028 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5029 | for as_dir in $PATH | |
5030 | do | |
5031 | IFS=$as_save_IFS | |
54445dc2 TT |
5032 | case $as_dir in #((( |
5033 | '') as_dir=./ ;; | |
5034 | */) ;; | |
5035 | *) as_dir=$as_dir/ ;; | |
5036 | esac | |
57aa50d4 | 5037 | for ac_exec_ext in '' $ac_executable_extensions; do |
54445dc2 | 5038 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
57aa50d4 | 5039 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
54445dc2 | 5040 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
57aa50d4 TT |
5041 | break 2 |
5042 | fi | |
5043 | done | |
5044 | done | |
5045 | IFS=$as_save_IFS | |
b0cacab0 | 5046 | |
57aa50d4 TT |
5047 | fi |
5048 | fi | |
5049 | CC=$ac_cv_prog_CC | |
5050 | if test -n "$CC"; then | |
54445dc2 TT |
5051 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
5052 | printf "%s\n" "$CC" >&6; } | |
57aa50d4 | 5053 | else |
54445dc2 TT |
5054 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5055 | printf "%s\n" "no" >&6; } | |
57aa50d4 | 5056 | fi |
b0cacab0 TT |
5057 | |
5058 | ||
57aa50d4 TT |
5059 | test -n "$CC" && break |
5060 | done | |
5061 | fi | |
5062 | if test -z "$CC"; then | |
5063 | ac_ct_CC=$CC | |
5064 | for ac_prog in cl.exe | |
b0cacab0 | 5065 | do |
57aa50d4 TT |
5066 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
5067 | set dummy $ac_prog; ac_word=$2 | |
54445dc2 TT |
5068 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5069 | printf %s "checking for $ac_word... " >&6; } | |
5070 | if test ${ac_cv_prog_ac_ct_CC+y} | |
5071 | then : | |
5072 | printf %s "(cached) " >&6 | |
5073 | else $as_nop | |
57aa50d4 TT |
5074 | if test -n "$ac_ct_CC"; then |
5075 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
b0cacab0 | 5076 | else |
57aa50d4 TT |
5077 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5078 | for as_dir in $PATH | |
5079 | do | |
5080 | IFS=$as_save_IFS | |
54445dc2 TT |
5081 | case $as_dir in #((( |
5082 | '') as_dir=./ ;; | |
5083 | */) ;; | |
5084 | *) as_dir=$as_dir/ ;; | |
5085 | esac | |
57aa50d4 | 5086 | for ac_exec_ext in '' $ac_executable_extensions; do |
54445dc2 | 5087 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
57aa50d4 | 5088 | ac_cv_prog_ac_ct_CC="$ac_prog" |
54445dc2 | 5089 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
57aa50d4 TT |
5090 | break 2 |
5091 | fi | |
5092 | done | |
5093 | done | |
5094 | IFS=$as_save_IFS | |
b0cacab0 | 5095 | |
b0cacab0 | 5096 | fi |
b0cacab0 | 5097 | fi |
57aa50d4 TT |
5098 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
5099 | if test -n "$ac_ct_CC"; then | |
54445dc2 TT |
5100 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
5101 | printf "%s\n" "$ac_ct_CC" >&6; } | |
57aa50d4 | 5102 | else |
54445dc2 TT |
5103 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5104 | printf "%s\n" "no" >&6; } | |
b0cacab0 TT |
5105 | fi |
5106 | ||
b0cacab0 | 5107 | |
57aa50d4 TT |
5108 | test -n "$ac_ct_CC" && break |
5109 | done | |
b0cacab0 | 5110 | |
57aa50d4 TT |
5111 | if test "x$ac_ct_CC" = x; then |
5112 | CC="" | |
5113 | else | |
5114 | case $cross_compiling:$ac_tool_warned in | |
5115 | yes:) | |
54445dc2 TT |
5116 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
5117 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
57aa50d4 | 5118 | ac_tool_warned=yes ;; |
e1052144 | 5119 | esac |
57aa50d4 TT |
5120 | CC=$ac_ct_CC |
5121 | fi | |
5122 | fi | |
b0cacab0 | 5123 | |
b0cacab0 | 5124 | fi |
54445dc2 TT |
5125 | if test -z "$CC"; then |
5126 | if test -n "$ac_tool_prefix"; then | |
5127 | # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args. | |
5128 | set dummy ${ac_tool_prefix}clang; ac_word=$2 | |
5129 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5130 | printf %s "checking for $ac_word... " >&6; } | |
5131 | if test ${ac_cv_prog_CC+y} | |
5132 | then : | |
5133 | printf %s "(cached) " >&6 | |
5134 | else $as_nop | |
5135 | if test -n "$CC"; then | |
5136 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
cdf186e4 | 5137 | else |
54445dc2 TT |
5138 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5139 | for as_dir in $PATH | |
57aa50d4 | 5140 | do |
54445dc2 TT |
5141 | IFS=$as_save_IFS |
5142 | case $as_dir in #((( | |
5143 | '') as_dir=./ ;; | |
5144 | */) ;; | |
5145 | *) as_dir=$as_dir/ ;; | |
5146 | esac | |
5147 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5148 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then | |
5149 | ac_cv_prog_CC="${ac_tool_prefix}clang" | |
5150 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 | |
5151 | break 2 | |
5152 | fi | |
57aa50d4 | 5153 | done |
54445dc2 TT |
5154 | done |
5155 | IFS=$as_save_IFS | |
2a29f135 | 5156 | |
e1052144 | 5157 | fi |
14b596d4 | 5158 | fi |
54445dc2 TT |
5159 | CC=$ac_cv_prog_CC |
5160 | if test -n "$CC"; then | |
5161 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
5162 | printf "%s\n" "$CC" >&6; } | |
14b596d4 | 5163 | else |
54445dc2 TT |
5164 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5165 | printf "%s\n" "no" >&6; } | |
14b596d4 TT |
5166 | fi |
5167 | ||
57aa50d4 | 5168 | |
14b596d4 | 5169 | fi |
54445dc2 TT |
5170 | if test -z "$ac_cv_prog_CC"; then |
5171 | ac_ct_CC=$CC | |
5172 | # Extract the first word of "clang", so it can be a program name with args. | |
5173 | set dummy clang; ac_word=$2 | |
5174 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5175 | printf %s "checking for $ac_word... " >&6; } | |
5176 | if test ${ac_cv_prog_ac_ct_CC+y} | |
5177 | then : | |
5178 | printf %s "(cached) " >&6 | |
5179 | else $as_nop | |
5180 | if test -n "$ac_ct_CC"; then | |
5181 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
5aa6c3f6 | 5182 | else |
54445dc2 TT |
5183 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5184 | for as_dir in $PATH | |
93613951 TT |
5185 | do |
5186 | IFS=$as_save_IFS | |
54445dc2 TT |
5187 | case $as_dir in #((( |
5188 | '') as_dir=./ ;; | |
5189 | */) ;; | |
5190 | *) as_dir=$as_dir/ ;; | |
5191 | esac | |
93613951 | 5192 | for ac_exec_ext in '' $ac_executable_extensions; do |
54445dc2 TT |
5193 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
5194 | ac_cv_prog_ac_ct_CC="clang" | |
5195 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 | |
5196 | break 2 | |
5197 | fi | |
5198 | done | |
93613951 TT |
5199 | done |
5200 | IFS=$as_save_IFS | |
54445dc2 TT |
5201 | |
5202 | fi | |
5203 | fi | |
5204 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
5205 | if test -n "$ac_ct_CC"; then | |
5206 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
5207 | printf "%s\n" "$ac_ct_CC" >&6; } | |
5208 | else | |
5209 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5210 | printf "%s\n" "no" >&6; } | |
5211 | fi | |
5212 | ||
5213 | if test "x$ac_ct_CC" = x; then | |
5214 | CC="" | |
5215 | else | |
5216 | case $cross_compiling:$ac_tool_warned in | |
5217 | yes:) | |
5218 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5219 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5220 | ac_tool_warned=yes ;; | |
5221 | esac | |
5222 | CC=$ac_ct_CC | |
93613951 | 5223 | fi |
5aa6c3f6 | 5224 | else |
54445dc2 | 5225 | CC="$ac_cv_prog_CC" |
93613951 | 5226 | fi |
183c73b0 TT |
5227 | |
5228 | fi | |
5229 | ||
5230 | ||
54445dc2 TT |
5231 | test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
5232 | printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} | |
5233 | as_fn_error $? "no acceptable C compiler found in \$PATH | |
5234 | See \`config.log' for more details" "$LINENO" 5; } | |
5235 | ||
5236 | # Provide some information about the compiler. | |
5237 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 | |
5238 | set X $ac_compile | |
5239 | ac_compiler=$2 | |
5240 | for ac_option in --version -v -V -qversion -version; do | |
5241 | { { ac_try="$ac_compiler $ac_option >&5" | |
5242 | case "(($ac_try" in | |
5243 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5244 | *) ac_try_echo=$ac_try;; | |
5245 | esac | |
5246 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
5247 | printf "%s\n" "$ac_try_echo"; } >&5 | |
5248 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
5249 | ac_status=$? | |
5250 | if test -s conftest.err; then | |
5251 | sed '10a\ | |
5252 | ... rest of stderr output deleted ... | |
5253 | 10q' conftest.err >conftest.er1 | |
5254 | cat conftest.er1 >&5 | |
5255 | fi | |
5256 | rm -f conftest.er1 conftest.err | |
5257 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
5258 | test $ac_status = 0; } | |
5259 | done | |
5260 | ||
5261 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5 | |
5262 | printf %s "checking whether the compiler supports GNU C... " >&6; } | |
5263 | if test ${ac_cv_c_compiler_gnu+y} | |
5264 | then : | |
5265 | printf %s "(cached) " >&6 | |
5266 | else $as_nop | |
93613951 TT |
5267 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
5268 | /* end confdefs.h. */ | |
91d11da1 | 5269 | |
93613951 | 5270 | int |
54445dc2 | 5271 | main (void) |
93613951 | 5272 | { |
54445dc2 TT |
5273 | #ifndef __GNUC__ |
5274 | choke me | |
5275 | #endif | |
183c73b0 | 5276 | |
93613951 TT |
5277 | ; |
5278 | return 0; | |
5279 | } | |
5280 | _ACEOF | |
54445dc2 TT |
5281 | if ac_fn_c_try_compile "$LINENO" |
5282 | then : | |
5283 | ac_compiler_gnu=yes | |
5284 | else $as_nop | |
5285 | ac_compiler_gnu=no | |
5aa6c3f6 | 5286 | fi |
54445dc2 TT |
5287 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
5288 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | |
93613951 | 5289 | |
93613951 | 5290 | fi |
54445dc2 TT |
5291 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
5292 | printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; } | |
5293 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
93613951 | 5294 | |
54445dc2 TT |
5295 | if test $ac_compiler_gnu = yes; then |
5296 | GCC=yes | |
5297 | else | |
5298 | GCC= | |
93613951 | 5299 | fi |
54445dc2 TT |
5300 | ac_test_CFLAGS=${CFLAGS+y} |
5301 | ac_save_CFLAGS=$CFLAGS | |
5302 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 | |
5303 | printf %s "checking whether $CC accepts -g... " >&6; } | |
5304 | if test ${ac_cv_prog_cc_g+y} | |
5305 | then : | |
5306 | printf %s "(cached) " >&6 | |
5307 | else $as_nop | |
5308 | ac_save_c_werror_flag=$ac_c_werror_flag | |
5309 | ac_c_werror_flag=yes | |
5310 | ac_cv_prog_cc_g=no | |
5311 | CFLAGS="-g" | |
5312 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
93613951 | 5313 | /* end confdefs.h. */ |
93613951 | 5314 | |
54445dc2 TT |
5315 | int |
5316 | main (void) | |
5317 | { | |
5318 | ||
5319 | ; | |
5320 | return 0; | |
5321 | } | |
93613951 | 5322 | _ACEOF |
54445dc2 TT |
5323 | if ac_fn_c_try_compile "$LINENO" |
5324 | then : | |
5325 | ac_cv_prog_cc_g=yes | |
5326 | else $as_nop | |
5327 | CFLAGS="" | |
5328 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5329 | /* end confdefs.h. */ | |
93613951 | 5330 | |
54445dc2 TT |
5331 | int |
5332 | main (void) | |
5333 | { | |
93613951 | 5334 | |
54445dc2 TT |
5335 | ; |
5336 | return 0; | |
5337 | } | |
5338 | _ACEOF | |
5339 | if ac_fn_c_try_compile "$LINENO" | |
5340 | then : | |
93613951 | 5341 | |
54445dc2 TT |
5342 | else $as_nop |
5343 | ac_c_werror_flag=$ac_save_c_werror_flag | |
5344 | CFLAGS="-g" | |
5345 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
93613951 | 5346 | /* end confdefs.h. */ |
93613951 | 5347 | |
93613951 | 5348 | int |
54445dc2 | 5349 | main (void) |
93613951 | 5350 | { |
54445dc2 TT |
5351 | |
5352 | ; | |
93613951 TT |
5353 | return 0; |
5354 | } | |
5355 | _ACEOF | |
54445dc2 TT |
5356 | if ac_fn_c_try_compile "$LINENO" |
5357 | then : | |
5358 | ac_cv_prog_cc_g=yes | |
5359 | fi | |
5360 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext | |
5361 | fi | |
5362 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext | |
5363 | fi | |
5364 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext | |
5365 | ac_c_werror_flag=$ac_save_c_werror_flag | |
5366 | fi | |
5367 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 | |
5368 | printf "%s\n" "$ac_cv_prog_cc_g" >&6; } | |
5369 | if test $ac_test_CFLAGS; then | |
5370 | CFLAGS=$ac_save_CFLAGS | |
5371 | elif test $ac_cv_prog_cc_g = yes; then | |
5372 | if test "$GCC" = yes; then | |
5373 | CFLAGS="-g -O2" | |
5374 | else | |
5375 | CFLAGS="-g" | |
5376 | fi | |
93613951 | 5377 | else |
54445dc2 TT |
5378 | if test "$GCC" = yes; then |
5379 | CFLAGS="-O2" | |
5380 | else | |
5381 | CFLAGS= | |
5382 | fi | |
93613951 | 5383 | fi |
54445dc2 TT |
5384 | ac_prog_cc_stdc=no |
5385 | if test x$ac_prog_cc_stdc = xno | |
5386 | then : | |
5387 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5 | |
5388 | printf %s "checking for $CC option to enable C11 features... " >&6; } | |
5389 | if test ${ac_cv_prog_cc_c11+y} | |
5390 | then : | |
5391 | printf %s "(cached) " >&6 | |
5392 | else $as_nop | |
5393 | ac_cv_prog_cc_c11=no | |
5394 | ac_save_CC=$CC | |
5395 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5396 | /* end confdefs.h. */ | |
5397 | $ac_c_conftest_c11_program | |
5398 | _ACEOF | |
5399 | for ac_arg in '' -std=gnu11 | |
5400 | do | |
5401 | CC="$ac_save_CC $ac_arg" | |
5402 | if ac_fn_c_try_compile "$LINENO" | |
5403 | then : | |
5404 | ac_cv_prog_cc_c11=$ac_arg | |
5405 | fi | |
5406 | rm -f core conftest.err conftest.$ac_objext conftest.beam | |
5407 | test "x$ac_cv_prog_cc_c11" != "xno" && break | |
5408 | done | |
5409 | rm -f conftest.$ac_ext | |
5410 | CC=$ac_save_CC | |
5411 | fi | |
5412 | ||
5413 | if test "x$ac_cv_prog_cc_c11" = xno | |
5414 | then : | |
5415 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
5416 | printf "%s\n" "unsupported" >&6; } | |
5417 | else $as_nop | |
5418 | if test "x$ac_cv_prog_cc_c11" = x | |
5419 | then : | |
5420 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
5421 | printf "%s\n" "none needed" >&6; } | |
5422 | else $as_nop | |
5423 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 | |
5424 | printf "%s\n" "$ac_cv_prog_cc_c11" >&6; } | |
5425 | CC="$CC $ac_cv_prog_cc_c11" | |
5426 | fi | |
5427 | ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11 | |
5428 | ac_prog_cc_stdc=c11 | |
5429 | fi | |
5430 | fi | |
5431 | if test x$ac_prog_cc_stdc = xno | |
5432 | then : | |
5433 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5 | |
5434 | printf %s "checking for $CC option to enable C99 features... " >&6; } | |
5435 | if test ${ac_cv_prog_cc_c99+y} | |
5436 | then : | |
5437 | printf %s "(cached) " >&6 | |
5438 | else $as_nop | |
5439 | ac_cv_prog_cc_c99=no | |
5440 | ac_save_CC=$CC | |
5441 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5442 | /* end confdefs.h. */ | |
5443 | $ac_c_conftest_c99_program | |
5444 | _ACEOF | |
5445 | for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99= | |
5446 | do | |
5447 | CC="$ac_save_CC $ac_arg" | |
5448 | if ac_fn_c_try_compile "$LINENO" | |
5449 | then : | |
5450 | ac_cv_prog_cc_c99=$ac_arg | |
5451 | fi | |
5452 | rm -f core conftest.err conftest.$ac_objext conftest.beam | |
5453 | test "x$ac_cv_prog_cc_c99" != "xno" && break | |
5454 | done | |
5455 | rm -f conftest.$ac_ext | |
5456 | CC=$ac_save_CC | |
5457 | fi | |
5458 | ||
5459 | if test "x$ac_cv_prog_cc_c99" = xno | |
5460 | then : | |
5461 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
5462 | printf "%s\n" "unsupported" >&6; } | |
5463 | else $as_nop | |
5464 | if test "x$ac_cv_prog_cc_c99" = x | |
5465 | then : | |
5466 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
5467 | printf "%s\n" "none needed" >&6; } | |
5468 | else $as_nop | |
5469 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 | |
5470 | printf "%s\n" "$ac_cv_prog_cc_c99" >&6; } | |
5471 | CC="$CC $ac_cv_prog_cc_c99" | |
5472 | fi | |
5473 | ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 | |
5474 | ac_prog_cc_stdc=c99 | |
5475 | fi | |
5476 | fi | |
5477 | if test x$ac_prog_cc_stdc = xno | |
5478 | then : | |
5479 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5 | |
5480 | printf %s "checking for $CC option to enable C89 features... " >&6; } | |
5481 | if test ${ac_cv_prog_cc_c89+y} | |
5482 | then : | |
5483 | printf %s "(cached) " >&6 | |
5484 | else $as_nop | |
5485 | ac_cv_prog_cc_c89=no | |
5486 | ac_save_CC=$CC | |
5487 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5488 | /* end confdefs.h. */ | |
5489 | $ac_c_conftest_c89_program | |
5490 | _ACEOF | |
5491 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
5492 | do | |
5493 | CC="$ac_save_CC $ac_arg" | |
5494 | if ac_fn_c_try_compile "$LINENO" | |
5495 | then : | |
5496 | ac_cv_prog_cc_c89=$ac_arg | |
5497 | fi | |
5498 | rm -f core conftest.err conftest.$ac_objext conftest.beam | |
5499 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
5500 | done | |
5501 | rm -f conftest.$ac_ext | |
5502 | CC=$ac_save_CC | |
93613951 TT |
5503 | fi |
5504 | ||
54445dc2 TT |
5505 | if test "x$ac_cv_prog_cc_c89" = xno |
5506 | then : | |
5507 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
5508 | printf "%s\n" "unsupported" >&6; } | |
5509 | else $as_nop | |
5510 | if test "x$ac_cv_prog_cc_c89" = x | |
5511 | then : | |
5512 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
5513 | printf "%s\n" "none needed" >&6; } | |
5514 | else $as_nop | |
5515 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | |
5516 | printf "%s\n" "$ac_cv_prog_cc_c89" >&6; } | |
5517 | CC="$CC $ac_cv_prog_cc_c89" | |
5518 | fi | |
5519 | ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 | |
5520 | ac_prog_cc_stdc=c89 | |
93613951 TT |
5521 | fi |
5522 | fi | |
93613951 | 5523 | |
54445dc2 TT |
5524 | ac_ext=c |
5525 | ac_cpp='$CPP $CPPFLAGS' | |
5526 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5527 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5528 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5529 | ||
5530 | if test "$GCC" = yes; then | |
5531 | RDYNAMIC="-rdynamic" | |
5532 | ||
5533 | fi | |
5534 | ac_ext=c | |
5535 | ac_cpp='$CPP $CPPFLAGS' | |
5536 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5537 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5538 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5539 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 | |
5540 | printf %s "checking how to run the C preprocessor... " >&6; } | |
5541 | # On Suns, sometimes $CPP names a directory. | |
5542 | if test -n "$CPP" && test -d "$CPP"; then | |
5543 | CPP= | |
5544 | fi | |
5545 | if test -z "$CPP"; then | |
5546 | if test ${ac_cv_prog_CPP+y} | |
5547 | then : | |
5548 | printf %s "(cached) " >&6 | |
5549 | else $as_nop | |
5550 | # Double quotes because $CC needs to be expanded | |
5551 | for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp | |
5552 | do | |
5553 | ac_preproc_ok=false | |
5554 | for ac_c_preproc_warn_flag in '' yes | |
5555 | do | |
5556 | # Use a header file that comes with gcc, so configuring glibc | |
5557 | # with a fresh cross-compiler works. | |
5558 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
5559 | # not just through cpp. "Syntax error" is here to catch this case. | |
5560 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5561 | /* end confdefs.h. */ | |
5562 | #include <limits.h> | |
5563 | Syntax error | |
5564 | _ACEOF | |
5565 | if ac_fn_c_try_cpp "$LINENO" | |
5566 | then : | |
93613951 | 5567 | |
54445dc2 TT |
5568 | else $as_nop |
5569 | # Broken: fails on valid input. | |
5570 | continue | |
93613951 | 5571 | fi |
54445dc2 | 5572 | rm -f conftest.err conftest.i conftest.$ac_ext |
93613951 | 5573 | |
54445dc2 TT |
5574 | # OK, works on sane cases. Now check whether nonexistent headers |
5575 | # can be detected and how. | |
5576 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5577 | /* end confdefs.h. */ | |
5578 | #include <ac_nonexistent.h> | |
93613951 | 5579 | _ACEOF |
54445dc2 TT |
5580 | if ac_fn_c_try_cpp "$LINENO" |
5581 | then : | |
5582 | # Broken: success on invalid input. | |
5583 | continue | |
5584 | else $as_nop | |
5585 | # Passes both tests. | |
5586 | ac_preproc_ok=: | |
5587 | break | |
93613951 | 5588 | fi |
54445dc2 | 5589 | rm -f conftest.err conftest.i conftest.$ac_ext |
93613951 TT |
5590 | |
5591 | done | |
54445dc2 TT |
5592 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
5593 | rm -f conftest.i conftest.err conftest.$ac_ext | |
5594 | if $ac_preproc_ok | |
5595 | then : | |
5596 | break | |
93613951 TT |
5597 | fi |
5598 | ||
54445dc2 TT |
5599 | done |
5600 | ac_cv_prog_CPP=$CPP | |
93613951 | 5601 | |
54445dc2 TT |
5602 | fi |
5603 | CPP=$ac_cv_prog_CPP | |
93613951 | 5604 | else |
54445dc2 TT |
5605 | ac_cv_prog_CPP=$CPP |
5606 | fi | |
5607 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 | |
5608 | printf "%s\n" "$CPP" >&6; } | |
5609 | ac_preproc_ok=false | |
5610 | for ac_c_preproc_warn_flag in '' yes | |
5611 | do | |
5612 | # Use a header file that comes with gcc, so configuring glibc | |
5613 | # with a fresh cross-compiler works. | |
5614 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
5615 | # not just through cpp. "Syntax error" is here to catch this case. | |
93613951 TT |
5616 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
5617 | /* end confdefs.h. */ | |
54445dc2 TT |
5618 | #include <limits.h> |
5619 | Syntax error | |
5620 | _ACEOF | |
5621 | if ac_fn_c_try_cpp "$LINENO" | |
5622 | then : | |
93613951 | 5623 | |
54445dc2 TT |
5624 | else $as_nop |
5625 | # Broken: fails on valid input. | |
5626 | continue | |
5627 | fi | |
5628 | rm -f conftest.err conftest.i conftest.$ac_ext | |
93613951 | 5629 | |
54445dc2 TT |
5630 | # OK, works on sane cases. Now check whether nonexistent headers |
5631 | # can be detected and how. | |
5632 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5633 | /* end confdefs.h. */ | |
5634 | #include <ac_nonexistent.h> | |
93613951 | 5635 | _ACEOF |
54445dc2 TT |
5636 | if ac_fn_c_try_cpp "$LINENO" |
5637 | then : | |
5638 | # Broken: success on invalid input. | |
5639 | continue | |
5640 | else $as_nop | |
5641 | # Passes both tests. | |
5642 | ac_preproc_ok=: | |
5643 | break | |
93613951 | 5644 | fi |
54445dc2 | 5645 | rm -f conftest.err conftest.i conftest.$ac_ext |
93613951 | 5646 | |
54445dc2 TT |
5647 | done |
5648 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
5649 | rm -f conftest.i conftest.err conftest.$ac_ext | |
5650 | if $ac_preproc_ok | |
5651 | then : | |
93613951 | 5652 | |
54445dc2 TT |
5653 | else $as_nop |
5654 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
5655 | printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} | |
5656 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check | |
5657 | See \`config.log' for more details" "$LINENO" 5; } | |
5658 | fi | |
93613951 | 5659 | |
54445dc2 TT |
5660 | ac_ext=c |
5661 | ac_cpp='$CPP $CPPFLAGS' | |
5662 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5663 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5664 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
93613951 | 5665 | |
54445dc2 TT |
5666 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for additional special compiler flags" >&5 |
5667 | printf %s "checking for additional special compiler flags... " >&6; } | |
5668 | if test "$GCC" = yes | |
5669 | then | |
5670 | case "$host_cpu" in | |
5671 | alpha) addcflags="-mieee" ;; | |
5672 | esac | |
5673 | fi | |
5674 | if test "x$addcflags" != x | |
5675 | then | |
5676 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $addcflags" >&5 | |
5677 | printf "%s\n" "$addcflags" >&6; } | |
5678 | CFLAGS="$addcflags $CFLAGS" | |
5679 | else | |
5680 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: (none)" >&5 | |
5681 | printf "%s\n" "(none)" >&6; } | |
5682 | fi | |
93613951 TT |
5683 | LIB_EXT=.a |
5684 | STATIC_LIB_EXT=.a | |
5685 | PROFILED_LIB_EXT=.a | |
5686 | ||
5687 | # Check whether --with-root-prefix was given. | |
54445dc2 TT |
5688 | if test ${with_root_prefix+y} |
5689 | then : | |
93613951 | 5690 | withval=$with_root_prefix; root_prefix=$withval |
54445dc2 | 5691 | else $as_nop |
93613951 TT |
5692 | root_prefix=NONE |
5693 | fi | |
5694 | # Check whether --enable-maintainer-mode was given. | |
54445dc2 TT |
5695 | if test ${enable_maintainer_mode+y} |
5696 | then : | |
93613951 TT |
5697 | enableval=$enable_maintainer_mode; if test "$enableval" = "no" |
5698 | then | |
5699 | MAINTAINER_CMT=# | |
54445dc2 TT |
5700 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling maintainer mode" >&5 |
5701 | printf "%s\n" "Disabling maintainer mode" >&6; } | |
93613951 TT |
5702 | else |
5703 | MAINTAINER_CMT= | |
54445dc2 TT |
5704 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling maintainer mode" >&5 |
5705 | printf "%s\n" "Enabling maintainer mode" >&6; } | |
93613951 TT |
5706 | fi |
5707 | ||
54445dc2 | 5708 | else $as_nop |
93613951 | 5709 | MAINTAINER_CMT=# |
54445dc2 TT |
5710 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling maintainer mode by default" >&5 |
5711 | printf "%s\n" "Disabling maintainer mode by default" >&6; } | |
93613951 TT |
5712 | |
5713 | fi | |
5714 | ||
5715 | ||
5716 | # Check whether --enable-symlink-install was given. | |
54445dc2 TT |
5717 | if test ${enable_symlink_install+y} |
5718 | then : | |
93613951 TT |
5719 | enableval=$enable_symlink_install; if test "$enableval" = "no" |
5720 | then | |
5721 | LINK_INSTALL_FLAGS=-f | |
54445dc2 TT |
5722 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for install" >&5 |
5723 | printf "%s\n" "Disabling symlinks for install" >&6; } | |
93613951 TT |
5724 | else |
5725 | LINK_INSTALL_FLAGS=-sf | |
54445dc2 TT |
5726 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling symlinks for install" >&5 |
5727 | printf "%s\n" "Enabling symlinks for install" >&6; } | |
93613951 TT |
5728 | fi |
5729 | ||
54445dc2 | 5730 | else $as_nop |
93613951 | 5731 | LINK_INSTALL_FLAGS=-f |
54445dc2 TT |
5732 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for install by default" >&5 |
5733 | printf "%s\n" "Disabling symlinks for install by default" >&6; } | |
93613951 TT |
5734 | |
5735 | fi | |
5736 | ||
5737 | ||
5738 | relative_symlink_defined= | |
5739 | # Check whether --enable-relative-symlinks was given. | |
54445dc2 TT |
5740 | if test ${enable_relative_symlinks+y} |
5741 | then : | |
93613951 TT |
5742 | enableval=$enable_relative_symlinks; if test "$enableval" = "no" |
5743 | then | |
5744 | SYMLINK_RELATIVE= | |
5745 | relative_symlink_defined=yes | |
54445dc2 TT |
5746 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install" >&5 |
5747 | printf "%s\n" "Disabling relative symlinks for install" >&6; } | |
93613951 TT |
5748 | else |
5749 | SYMLINK_RELATIVE=--relative | |
5750 | relative_symlink_defined=yes | |
54445dc2 TT |
5751 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling relative symlinks for install" >&5 |
5752 | printf "%s\n" "Enabling relative symlinks for install" >&6; } | |
93613951 TT |
5753 | fi |
5754 | fi | |
5755 | ||
5756 | # Check whether --enable-symlink-relative-symlinks was given. | |
54445dc2 TT |
5757 | if test ${enable_symlink_relative_symlinks+y} |
5758 | then : | |
93613951 TT |
5759 | enableval=$enable_symlink_relative_symlinks; if test "$enableval" = "no" |
5760 | then | |
5761 | SYMLINK_RELATIVE=yes | |
54445dc2 TT |
5762 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install" >&5 |
5763 | printf "%s\n" "Disabling relative symlinks for install" >&6; } | |
93613951 TT |
5764 | else |
5765 | SYMLINK_RELATIVE=--relative | |
54445dc2 TT |
5766 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling relative symlinks for install" >&5 |
5767 | printf "%s\n" "Enabling relative symlinks for install" >&6; } | |
93613951 TT |
5768 | fi |
5769 | ||
54445dc2 | 5770 | else $as_nop |
93613951 TT |
5771 | if test -z "$relative_symlink_defined" |
5772 | then | |
5773 | SYMLINK_RELATIVE= | |
54445dc2 TT |
5774 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install by default" >&5 |
5775 | printf "%s\n" "Disabling relative symlinks for install by default" >&6; } | |
93613951 TT |
5776 | fi |
5777 | ||
5778 | fi | |
5779 | ||
5780 | ||
5781 | # Check whether --enable-symlink-build was given. | |
54445dc2 TT |
5782 | if test ${enable_symlink_build+y} |
5783 | then : | |
5aa6c3f6 TT |
5784 | enableval=$enable_symlink_build; if test "$enableval" = "no" |
5785 | then | |
5786 | LINK_BUILD_FLAGS= | |
54445dc2 TT |
5787 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for build" >&5 |
5788 | printf "%s\n" "Disabling symlinks for build" >&6; } | |
5aa6c3f6 TT |
5789 | else |
5790 | LINK_BUILD_FLAGS=-s | |
54445dc2 TT |
5791 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling symlinks for build" >&5 |
5792 | printf "%s\n" "Enabling symlinks for build" >&6; } | |
5aa6c3f6 TT |
5793 | fi |
5794 | ||
54445dc2 | 5795 | else $as_nop |
5aa6c3f6 | 5796 | LINK_BUILD_FLAGS= |
54445dc2 TT |
5797 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for build by default" >&5 |
5798 | printf "%s\n" "Disabling symlinks for build by default" >&6; } | |
5aa6c3f6 TT |
5799 | |
5800 | fi | |
5801 | ||
5802 | ||
57aa50d4 | 5803 | # Check whether --enable-verbose-makecmds was given. |
54445dc2 TT |
5804 | if test ${enable_verbose_makecmds+y} |
5805 | then : | |
57aa50d4 TT |
5806 | enableval=$enable_verbose_makecmds; if test "$enableval" = "no" |
5807 | then | |
54445dc2 TT |
5808 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling verbose make commands" >&5 |
5809 | printf "%s\n" "Disabling verbose make commands" >&6; } | |
57aa50d4 | 5810 | E=@echo |
c1986ecb | 5811 | ES=echo |
57aa50d4 | 5812 | Q=@ |
14b596d4 | 5813 | else |
54445dc2 TT |
5814 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling verbose make commands" >&5 |
5815 | printf "%s\n" "Enabling verbose make commands" >&6; } | |
57aa50d4 | 5816 | E=@\\# |
c1986ecb | 5817 | ES=\\# |
57aa50d4 TT |
5818 | Q= |
5819 | fi | |
14b596d4 | 5820 | |
54445dc2 TT |
5821 | else $as_nop |
5822 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling verbose make commands" >&5 | |
5823 | printf "%s\n" "Disabling verbose make commands" >&6; } | |
57aa50d4 | 5824 | E=@echo |
c1986ecb | 5825 | ES=echo |
57aa50d4 | 5826 | Q=@ |
14b596d4 | 5827 | |
14b596d4 TT |
5828 | fi |
5829 | ||
14b596d4 | 5830 | |
57aa50d4 | 5831 | |
c1986ecb | 5832 | |
57aa50d4 TT |
5833 | E2_PKG_CONFIG_STATIC=--static |
5834 | LDFLAG_DYNAMIC= | |
5835 | PRIVATE_LIBS_CMT= | |
5836 | # Check whether --enable-elf-shlibs was given. | |
54445dc2 TT |
5837 | if test ${enable_elf_shlibs+y} |
5838 | then : | |
57aa50d4 | 5839 | enableval=$enable_elf_shlibs; if test "$enableval" = "no" |
cdf186e4 | 5840 | then |
57aa50d4 TT |
5841 | ELF_CMT=# |
5842 | MAKEFILE_ELF=/dev/null | |
54445dc2 TT |
5843 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling ELF shared libraries" >&5 |
5844 | printf "%s\n" "Disabling ELF shared libraries" >&6; } | |
cdf186e4 | 5845 | else |
57aa50d4 TT |
5846 | E2_PKG_CONFIG_STATIC= |
5847 | ELF_CMT= | |
5848 | MAKEFILE_ELF=$srcdir/lib/Makefile.elf-lib | |
5849 | case "$host_os" in | |
5850 | solaris2.*) | |
5851 | MAKEFILE_ELF=$srcdir/lib/Makefile.solaris-lib | |
5852 | ;; | |
5853 | esac | |
5854 | BINARY_TYPE=elfbin | |
5855 | LIB_EXT=.so | |
5856 | PRIVATE_LIBS_CMT=# | |
5857 | LDFLAG_DYNAMIC='-Wl,-rpath-link,$(top_builddir)/lib' | |
54445dc2 TT |
5858 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling ELF shared libraries" >&5 |
5859 | printf "%s\n" "Enabling ELF shared libraries" >&6; } | |
cdf186e4 TT |
5860 | fi |
5861 | ||
54445dc2 | 5862 | else $as_nop |
57aa50d4 TT |
5863 | MAKEFILE_ELF=/dev/null |
5864 | ELF_CMT=# | |
54445dc2 TT |
5865 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling ELF shared libraries by default" >&5 |
5866 | printf "%s\n" "Disabling ELF shared libraries by default" >&6; } | |
cdf186e4 | 5867 | |
e1052144 TT |
5868 | fi |
5869 | ||
cdf186e4 | 5870 | |
57aa50d4 TT |
5871 | |
5872 | # Check whether --enable-bsd-shlibs was given. | |
54445dc2 TT |
5873 | if test ${enable_bsd_shlibs+y} |
5874 | then : | |
57aa50d4 | 5875 | enableval=$enable_bsd_shlibs; if test "$enableval" = "no" |
cdf186e4 | 5876 | then |
57aa50d4 TT |
5877 | BSDLIB_CMT=# |
5878 | MAKEFILE_BSDLIB=/dev/null | |
54445dc2 TT |
5879 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling BSD shared libraries" >&5 |
5880 | printf "%s\n" "Disabling BSD shared libraries" >&6; } | |
cdf186e4 | 5881 | else |
57aa50d4 TT |
5882 | E2_PKG_CONFIG_STATIC= |
5883 | BSDLIB_CMT= | |
5884 | MAKEFILE_BSDLIB=$srcdir/lib/Makefile.bsd-lib | |
5885 | LIB_EXT=.so | |
5886 | case "$host_os" in | |
5887 | darwin*) | |
5888 | MAKEFILE_BSDLIB=$srcdir/lib/Makefile.darwin-lib | |
5889 | LIB_EXT=.dylib | |
5890 | ;; | |
5891 | esac | |
54445dc2 TT |
5892 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling BSD shared libraries" >&5 |
5893 | printf "%s\n" "Enabling BSD shared libraries" >&6; } | |
cdf186e4 TT |
5894 | fi |
5895 | ||
54445dc2 | 5896 | else $as_nop |
57aa50d4 TT |
5897 | MAKEFILE_BSDLIB=/dev/null |
5898 | BSDLIB_CMT=# | |
54445dc2 TT |
5899 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling BSD shared libraries by default" >&5 |
5900 | printf "%s\n" "Disabling BSD shared libraries by default" >&6; } | |
cdf186e4 | 5901 | |
e1052144 TT |
5902 | fi |
5903 | ||
cdf186e4 | 5904 | |
57aa50d4 TT |
5905 | |
5906 | # Check whether --enable-profile was given. | |
54445dc2 TT |
5907 | if test ${enable_profile+y} |
5908 | then : | |
57aa50d4 | 5909 | enableval=$enable_profile; if test "$enableval" = "no" |
cdf186e4 | 5910 | then |
57aa50d4 TT |
5911 | PROFILE_CMT=# |
5912 | MAKEFILE_PROFILE=/dev/null | |
54445dc2 TT |
5913 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling profiling libraries" >&5 |
5914 | printf "%s\n" "Disabling profiling libraries" >&6; } | |
cdf186e4 | 5915 | else |
57aa50d4 TT |
5916 | PROFILE_CMT= |
5917 | MAKEFILE_PROFILE=$srcdir/lib/Makefile.profile | |
5918 | PROFILED_LIB_EXT=_p.a | |
54445dc2 TT |
5919 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Building profiling libraries" >&5 |
5920 | printf "%s\n" "Building profiling libraries" >&6; } | |
cdf186e4 TT |
5921 | fi |
5922 | ||
54445dc2 | 5923 | else $as_nop |
57aa50d4 TT |
5924 | PROFILE_CMT=# |
5925 | MAKEFILE_PROFILE=/dev/null | |
54445dc2 TT |
5926 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling profiling libraries by default" >&5 |
5927 | printf "%s\n" "Disabling profiling libraries by default" >&6; } | |
cdf186e4 | 5928 | |
e1052144 TT |
5929 | fi |
5930 | ||
cdf186e4 | 5931 | |
57aa50d4 | 5932 | |
fedfb27f | 5933 | # Check whether --enable-gcov was given. |
54445dc2 TT |
5934 | if test ${enable_gcov+y} |
5935 | then : | |
fedfb27f TT |
5936 | enableval=$enable_gcov; if test "$enableval" = "yes" |
5937 | then | |
5938 | CFLAGS="-g -fprofile-arcs -ftest-coverage" | |
5939 | LDFLAGS="-fprofile-arcs -ftest-coverage" | |
54445dc2 TT |
5940 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling gcov support" >&5 |
5941 | printf "%s\n" "Enabling gcov support" >&6; } | |
fedfb27f TT |
5942 | fi |
5943 | ||
5944 | fi | |
5945 | ||
fd1677e8 TT |
5946 | CFLAGS_SHLIB="${CFLAGS_SHLIB:-$CFLAGS}" |
5947 | CFLAGS_STLIB="${CFLAGS_STLIB:-$CFLAGS}" | |
5948 | LDFLAGS_SHLIB=${LDFLAGS_SHLIB:-$LDFLAGS} | |
5949 | LDFLAGS_STATIC=${LDFLAGS_STATIC:-$LDFLAGS} | |
5950 | # Check whether --enable-hardening was given. | |
54445dc2 TT |
5951 | if test ${enable_hardening+y} |
5952 | then : | |
fd1677e8 TT |
5953 | enableval=$enable_hardening; if test "$enableval" = "yes" |
5954 | then | |
5955 | HARDEN_CFLAGS="-D_FORTIFY_SOURCE=2 -fstack-protector-strong" | |
5956 | HARDEN_LDFLAGS="-Wl,-z,relro -Wl,-z,now" | |
5957 | CFLAGS="$CFLAGS $HARDEN_CFLAGS -fPIE" | |
5958 | CFLAGS_SHLIB="$CFLAGS_SHLIB $HARDEN_CFLAGS" | |
5959 | CFLAGS_STLIB="$CFLAGS_STLIB $HARDEN_CFLAGS -fPIE" | |
5960 | LDFLAGS="$LDFLAGS $HARDEN_LDFLAGS -fPIE -pie" | |
5961 | LDFLAGS_STATIC="$LDFLAGS_STATIC $HARDEN_LDFLAGS" | |
5962 | LDFLAGS_SHLIB="$LDFLAGS_SHLIB $HARDEN_LDFLAGS" | |
54445dc2 TT |
5963 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling hardening support" >&5 |
5964 | printf "%s\n" "Enabling hardening support" >&6; } | |
fd1677e8 TT |
5965 | fi |
5966 | ||
5967 | fi | |
cdf186e4 | 5968 | |
57aa50d4 TT |
5969 | |
5970 | ||
5971 | ||
5972 | ||
5973 | ||
5974 | # Check whether --enable-jbd-debug was given. | |
54445dc2 TT |
5975 | if test ${enable_jbd_debug+y} |
5976 | then : | |
57aa50d4 | 5977 | enableval=$enable_jbd_debug; if test "$enableval" = "no" |
5d40773b | 5978 | then |
54445dc2 TT |
5979 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling journal debugging" >&5 |
5980 | printf "%s\n" "Disabling journal debugging" >&6; } | |
5d40773b | 5981 | else |
d1154eb4 | 5982 | |
54445dc2 | 5983 | printf "%s\n" "#define CONFIG_JBD_DEBUG 1" >>confdefs.h |
57aa50d4 | 5984 | |
54445dc2 TT |
5985 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling journal debugging" >&5 |
5986 | printf "%s\n" "Enabling journal debugging" >&6; } | |
5d40773b TT |
5987 | fi |
5988 | ||
54445dc2 TT |
5989 | else $as_nop |
5990 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling journal debugging by default" >&5 | |
5991 | printf "%s\n" "Disabling journal debugging by default" >&6; } | |
5d40773b | 5992 | |
e1052144 TT |
5993 | fi |
5994 | ||
57aa50d4 | 5995 | # Check whether --enable-blkid-debug was given. |
54445dc2 TT |
5996 | if test ${enable_blkid_debug+y} |
5997 | then : | |
57aa50d4 | 5998 | enableval=$enable_blkid_debug; if test "$enableval" = "no" |
3249394d | 5999 | then |
54445dc2 TT |
6000 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling blkid debugging" >&5 |
6001 | printf "%s\n" "Disabling blkid debugging" >&6; } | |
3249394d | 6002 | else |
d1154eb4 | 6003 | |
54445dc2 | 6004 | printf "%s\n" "#define CONFIG_BLKID_DEBUG 1" >>confdefs.h |
57aa50d4 | 6005 | |
54445dc2 TT |
6006 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling blkid debugging" >&5 |
6007 | printf "%s\n" "Enabling blkid debugging" >&6; } | |
3249394d TT |
6008 | fi |
6009 | ||
54445dc2 TT |
6010 | else $as_nop |
6011 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling blkid debugging by default" >&5 | |
6012 | printf "%s\n" "Disabling blkid debugging by default" >&6; } | |
3249394d TT |
6013 | |
6014 | fi | |
6015 | ||
57aa50d4 | 6016 | # Check whether --enable-testio-debug was given. |
54445dc2 TT |
6017 | if test ${enable_testio_debug+y} |
6018 | then : | |
d1154eb4 TT |
6019 | enableval=$enable_testio_debug; |
6020 | if test "$enableval" = "no" | |
3249394d | 6021 | then |
54445dc2 TT |
6022 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling testio debugging" >&5 |
6023 | printf "%s\n" "Disabling testio debugging" >&6; } | |
57aa50d4 | 6024 | TEST_IO_CMT="#" |
3249394d | 6025 | else |
57aa50d4 | 6026 | TEST_IO_CMT= |
54445dc2 | 6027 | printf "%s\n" "#define CONFIG_TESTIO_DEBUG 1" >>confdefs.h |
3249394d | 6028 | |
54445dc2 TT |
6029 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling testio debugging" >&5 |
6030 | printf "%s\n" "Enabling testio debugging" >&6; } | |
57aa50d4 | 6031 | fi |
3249394d | 6032 | |
54445dc2 TT |
6033 | else $as_nop |
6034 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling testio debugging by default" >&5 | |
6035 | printf "%s\n" "Enabling testio debugging by default" >&6; } | |
6036 | printf "%s\n" "#define CONFIG_TESTIO_DEBUG 1" >>confdefs.h | |
3249394d | 6037 | |
57aa50d4 | 6038 | TEST_IO_CMT= |
3249394d TT |
6039 | |
6040 | fi | |
6041 | ||
3249394d | 6042 | |
b9e66a18 | 6043 | # Check whether --enable-developer-features was given. |
54445dc2 TT |
6044 | if test ${enable_developer_features+y} |
6045 | then : | |
b9e66a18 TT |
6046 | enableval=$enable_developer_features; |
6047 | if test "$enableval" = "yes" | |
6048 | then | |
6049 | DEV_FEATURES_CMT= | |
54445dc2 | 6050 | printf "%s\n" "#define CONFIG_DEVELOPER_FEATURES 1" >>confdefs.h |
b9e66a18 | 6051 | |
54445dc2 TT |
6052 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling ext4 developer features" >&5 |
6053 | printf "%s\n" "Enabling ext4 developer features" >&6; } | |
b9e66a18 | 6054 | else |
54445dc2 TT |
6055 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling ext4 developer features" >&5 |
6056 | printf "%s\n" "Disabling ext4 developer features" >&6; } | |
b9e66a18 TT |
6057 | DEV_FEATURES_CMT="#" |
6058 | fi | |
6059 | ||
54445dc2 TT |
6060 | else $as_nop |
6061 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling ext4 developer features by default" >&5 | |
6062 | printf "%s\n" "Disabling ext4 developer features by default" >&6; } | |
b9e66a18 TT |
6063 | DEV_FEATURES_CMT= |
6064 | ||
6065 | fi | |
6066 | ||
6067 | ||
57aa50d4 TT |
6068 | |
6069 | ||
93613951 TT |
6070 | |
6071 | ||
6072 | ||
6073 | ||
6074 | ||
57aa50d4 | 6075 | if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then |
93613951 | 6076 | if test -n "$ac_tool_prefix"; then |
57aa50d4 TT |
6077 | # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. |
6078 | set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 | |
54445dc2 TT |
6079 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6080 | printf %s "checking for $ac_word... " >&6; } | |
6081 | if test ${ac_cv_path_PKG_CONFIG+y} | |
6082 | then : | |
6083 | printf %s "(cached) " >&6 | |
6084 | else $as_nop | |
57aa50d4 TT |
6085 | case $PKG_CONFIG in |
6086 | [\\/]* | ?:[\\/]*) | |
6087 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
6088 | ;; | |
6089 | *) | |
6090 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6091 | for as_dir in $PATH | |
6092 | do | |
6093 | IFS=$as_save_IFS | |
54445dc2 TT |
6094 | case $as_dir in #((( |
6095 | '') as_dir=./ ;; | |
6096 | */) ;; | |
6097 | *) as_dir=$as_dir/ ;; | |
6098 | esac | |
57aa50d4 | 6099 | for ac_exec_ext in '' $ac_executable_extensions; do |
54445dc2 TT |
6100 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
6101 | ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" | |
6102 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 | |
57aa50d4 TT |
6103 | break 2 |
6104 | fi | |
6105 | done | |
6106 | done | |
6107 | IFS=$as_save_IFS | |
6108 | ||
6109 | ;; | |
6110 | esac | |
6111 | fi | |
6112 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
6113 | if test -n "$PKG_CONFIG"; then | |
54445dc2 TT |
6114 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 |
6115 | printf "%s\n" "$PKG_CONFIG" >&6; } | |
57aa50d4 | 6116 | else |
54445dc2 TT |
6117 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6118 | printf "%s\n" "no" >&6; } | |
3249394d TT |
6119 | fi |
6120 | ||
6121 | ||
57aa50d4 TT |
6122 | fi |
6123 | if test -z "$ac_cv_path_PKG_CONFIG"; then | |
6124 | ac_pt_PKG_CONFIG=$PKG_CONFIG | |
6125 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
6126 | set dummy pkg-config; ac_word=$2 | |
54445dc2 TT |
6127 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6128 | printf %s "checking for $ac_word... " >&6; } | |
6129 | if test ${ac_cv_path_ac_pt_PKG_CONFIG+y} | |
6130 | then : | |
6131 | printf %s "(cached) " >&6 | |
6132 | else $as_nop | |
57aa50d4 TT |
6133 | case $ac_pt_PKG_CONFIG in |
6134 | [\\/]* | ?:[\\/]*) | |
6135 | ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. | |
6136 | ;; | |
6137 | *) | |
6138 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6139 | for as_dir in $PATH | |
6140 | do | |
6141 | IFS=$as_save_IFS | |
54445dc2 TT |
6142 | case $as_dir in #((( |
6143 | '') as_dir=./ ;; | |
6144 | */) ;; | |
6145 | *) as_dir=$as_dir/ ;; | |
6146 | esac | |
57aa50d4 | 6147 | for ac_exec_ext in '' $ac_executable_extensions; do |
54445dc2 TT |
6148 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
6149 | ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" | |
6150 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 | |
57aa50d4 TT |
6151 | break 2 |
6152 | fi | |
6153 | done | |
6154 | done | |
6155 | IFS=$as_save_IFS | |
3249394d | 6156 | |
57aa50d4 TT |
6157 | ;; |
6158 | esac | |
6159 | fi | |
6160 | ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG | |
6161 | if test -n "$ac_pt_PKG_CONFIG"; then | |
54445dc2 TT |
6162 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 |
6163 | printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; } | |
57aa50d4 | 6164 | else |
54445dc2 TT |
6165 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6166 | printf "%s\n" "no" >&6; } | |
57aa50d4 | 6167 | fi |
3249394d | 6168 | |
57aa50d4 TT |
6169 | if test "x$ac_pt_PKG_CONFIG" = x; then |
6170 | PKG_CONFIG="" | |
6171 | else | |
6172 | case $cross_compiling:$ac_tool_warned in | |
6173 | yes:) | |
54445dc2 TT |
6174 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
6175 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
57aa50d4 TT |
6176 | ac_tool_warned=yes ;; |
6177 | esac | |
6178 | PKG_CONFIG=$ac_pt_PKG_CONFIG | |
3249394d | 6179 | fi |
57aa50d4 TT |
6180 | else |
6181 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" | |
6182 | fi | |
3249394d TT |
6183 | |
6184 | fi | |
57aa50d4 | 6185 | if test -n "$PKG_CONFIG"; then |
93613951 | 6186 | _pkg_min_version=0.9.0 |
54445dc2 TT |
6187 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 |
6188 | printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; } | |
93613951 | 6189 | if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then |
54445dc2 TT |
6190 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
6191 | printf "%s\n" "yes" >&6; } | |
93613951 | 6192 | else |
54445dc2 TT |
6193 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6194 | printf "%s\n" "no" >&6; } | |
93613951 TT |
6195 | PKG_CONFIG="" |
6196 | fi | |
57aa50d4 TT |
6197 | fi |
6198 | LIBUUID= | |
6199 | DEPLIBUUID= | |
6200 | STATIC_LIBUUID= | |
6201 | DEPSTATIC_LIBUUID= | |
6202 | PROFILED_LIBUUID= | |
6203 | DEPPROFILED_LIBUUID= | |
6204 | UUID_CMT= | |
6205 | # Check whether --enable-libuuid was given. | |
54445dc2 TT |
6206 | if test ${enable_libuuid+y} |
6207 | then : | |
57aa50d4 | 6208 | enableval=$enable_libuuid; if test "$enableval" = "no" |
5610f992 | 6209 | then |
57aa50d4 | 6210 | if test -z "$PKG_CONFIG"; then |
d6a4bcb5 | 6211 | as_fn_error $? "pkg-config not installed; please install it." "$LINENO" 5 |
57aa50d4 TT |
6212 | fi |
6213 | ||
54445dc2 TT |
6214 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5 |
6215 | printf %s "checking for uuid_generate in -luuid... " >&6; } | |
6216 | if test ${ac_cv_lib_uuid_uuid_generate+y} | |
6217 | then : | |
6218 | printf %s "(cached) " >&6 | |
6219 | else $as_nop | |
57aa50d4 | 6220 | ac_check_lib_save_LIBS=$LIBS |
2d7583bd | 6221 | LIBS="-luuid $LIBS" |
57aa50d4 TT |
6222 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
6223 | /* end confdefs.h. */ | |
5610f992 | 6224 | |
57aa50d4 TT |
6225 | /* Override any GCC internal prototype to avoid an error. |
6226 | Use char because int might match the return type of a GCC | |
6227 | builtin and then its argument prototype would still apply. */ | |
57aa50d4 TT |
6228 | char uuid_generate (); |
6229 | int | |
54445dc2 | 6230 | main (void) |
57aa50d4 TT |
6231 | { |
6232 | return uuid_generate (); | |
6233 | ; | |
6234 | return 0; | |
6235 | } | |
6236 | _ACEOF | |
54445dc2 TT |
6237 | if ac_fn_c_try_link "$LINENO" |
6238 | then : | |
57aa50d4 | 6239 | ac_cv_lib_uuid_uuid_generate=yes |
54445dc2 | 6240 | else $as_nop |
57aa50d4 TT |
6241 | ac_cv_lib_uuid_uuid_generate=no |
6242 | fi | |
54445dc2 | 6243 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
57aa50d4 TT |
6244 | conftest$ac_exeext conftest.$ac_ext |
6245 | LIBS=$ac_check_lib_save_LIBS | |
6246 | fi | |
54445dc2 TT |
6247 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5 |
6248 | printf "%s\n" "$ac_cv_lib_uuid_uuid_generate" >&6; } | |
6249 | if test "x$ac_cv_lib_uuid_uuid_generate" = xyes | |
6250 | then : | |
57aa50d4 TT |
6251 | LIBUUID=`$PKG_CONFIG --libs uuid`; |
6252 | STATIC_LIBUUID=`$PKG_CONFIG --static --libs uuid` | |
54445dc2 | 6253 | else $as_nop |
d6a4bcb5 | 6254 | as_fn_error $? "external uuid library not found" "$LINENO" 5 |
5610f992 TT |
6255 | fi |
6256 | ||
5afdf37b | 6257 | PROFILED_LIBUUID=$LIBUUID |
57aa50d4 | 6258 | UUID_CMT=# |
54445dc2 TT |
6259 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling private uuid library" >&5 |
6260 | printf "%s\n" "Disabling private uuid library" >&6; } | |
5610f992 | 6261 | else |
57aa50d4 TT |
6262 | LIBUUID='$(LIB)/libuuid'$LIB_EXT |
6263 | DEPLIBUUID=$LIBUUID | |
6264 | STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT | |
6265 | DEPSTATIC_LIBUUID=$STATIC_LIBUUID | |
6266 | PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT | |
6267 | DEPPROFILED_LIBUUID=$PROFILED_LIBUUID | |
54445dc2 TT |
6268 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling private uuid library" >&5 |
6269 | printf "%s\n" "Enabling private uuid library" >&6; } | |
57aa50d4 | 6270 | fi |
5610f992 | 6271 | |
54445dc2 | 6272 | else $as_nop |
f5dffb81 | 6273 | if test -n "$PKG_CONFIG"; then |
54445dc2 TT |
6274 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5 |
6275 | printf %s "checking for uuid_generate in -luuid... " >&6; } | |
6276 | if test ${ac_cv_lib_uuid_uuid_generate+y} | |
6277 | then : | |
6278 | printf %s "(cached) " >&6 | |
6279 | else $as_nop | |
f5dffb81 TT |
6280 | ac_check_lib_save_LIBS=$LIBS |
6281 | LIBS="-luuid $LIBS" | |
6282 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6283 | /* end confdefs.h. */ | |
6284 | ||
6285 | /* Override any GCC internal prototype to avoid an error. | |
6286 | Use char because int might match the return type of a GCC | |
6287 | builtin and then its argument prototype would still apply. */ | |
f5dffb81 TT |
6288 | char uuid_generate (); |
6289 | int | |
54445dc2 | 6290 | main (void) |
f5dffb81 TT |
6291 | { |
6292 | return uuid_generate (); | |
6293 | ; | |
6294 | return 0; | |
6295 | } | |
6296 | _ACEOF | |
54445dc2 TT |
6297 | if ac_fn_c_try_link "$LINENO" |
6298 | then : | |
f5dffb81 | 6299 | ac_cv_lib_uuid_uuid_generate=yes |
54445dc2 | 6300 | else $as_nop |
f5dffb81 TT |
6301 | ac_cv_lib_uuid_uuid_generate=no |
6302 | fi | |
54445dc2 | 6303 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
f5dffb81 TT |
6304 | conftest$ac_exeext conftest.$ac_ext |
6305 | LIBS=$ac_check_lib_save_LIBS | |
6306 | fi | |
54445dc2 TT |
6307 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5 |
6308 | printf "%s\n" "$ac_cv_lib_uuid_uuid_generate" >&6; } | |
6309 | if test "x$ac_cv_lib_uuid_uuid_generate" = xyes | |
6310 | then : | |
f5dffb81 TT |
6311 | LIBUUID=`$PKG_CONFIG --libs uuid`; |
6312 | STATIC_LIBUUID=`$PKG_CONFIG --static --libs uuid` | |
6313 | fi | |
6314 | ||
6315 | fi | |
6316 | if test -n "$LIBUUID"; then | |
6317 | PROFILED_LIBUUID=$LIBUUID | |
6318 | UUID_CMT=# | |
54445dc2 TT |
6319 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Using system uuid by default" >&5 |
6320 | printf "%s\n" "Using system uuid by default" >&6; } | |
f5dffb81 TT |
6321 | else |
6322 | LIBUUID='$(LIB)/libuuid'$LIB_EXT | |
6323 | DEPLIBUUID=$LIBUUID | |
6324 | STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT | |
6325 | DEPSTATIC_LIBUUID=$STATIC_LIBUUID | |
6326 | PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT | |
6327 | DEPPROFILED_LIBUUID=$PROFILED_LIBUUID | |
54445dc2 TT |
6328 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling private uuid library by default" >&5 |
6329 | printf "%s\n" "Enabling private uuid library by default" >&6; } | |
f5dffb81 | 6330 | fi |
5610f992 TT |
6331 | |
6332 | fi | |
6333 | ||
6334 | ||
cdf186e4 | 6335 | |
a64c9c13 | 6336 | |
93636bde TT |
6337 | |
6338 | ||
93636bde | 6339 | |
93636bde TT |
6340 | |
6341 | ||
57aa50d4 | 6342 | |
93613951 TT |
6343 | |
6344 | ||
6345 | ||
6346 | ||
6347 | ||
57aa50d4 | 6348 | if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then |
93613951 | 6349 | if test -n "$ac_tool_prefix"; then |
57aa50d4 TT |
6350 | # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. |
6351 | set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 | |
54445dc2 TT |
6352 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6353 | printf %s "checking for $ac_word... " >&6; } | |
6354 | if test ${ac_cv_path_PKG_CONFIG+y} | |
6355 | then : | |
6356 | printf %s "(cached) " >&6 | |
6357 | else $as_nop | |
57aa50d4 TT |
6358 | case $PKG_CONFIG in |
6359 | [\\/]* | ?:[\\/]*) | |
6360 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
6361 | ;; | |
e1052144 | 6362 | *) |
b0cacab0 TT |
6363 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
6364 | for as_dir in $PATH | |
6365 | do | |
6366 | IFS=$as_save_IFS | |
54445dc2 TT |
6367 | case $as_dir in #((( |
6368 | '') as_dir=./ ;; | |
6369 | */) ;; | |
6370 | *) as_dir=$as_dir/ ;; | |
6371 | esac | |
57aa50d4 | 6372 | for ac_exec_ext in '' $ac_executable_extensions; do |
54445dc2 TT |
6373 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
6374 | ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" | |
6375 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 | |
57aa50d4 TT |
6376 | break 2 |
6377 | fi | |
b0cacab0 | 6378 | done |
57aa50d4 | 6379 | done |
e1052144 | 6380 | IFS=$as_save_IFS |
b0cacab0 | 6381 | |
57aa50d4 | 6382 | ;; |
b0cacab0 TT |
6383 | esac |
6384 | fi | |
57aa50d4 TT |
6385 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG |
6386 | if test -n "$PKG_CONFIG"; then | |
54445dc2 TT |
6387 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 |
6388 | printf "%s\n" "$PKG_CONFIG" >&6; } | |
07a0db15 | 6389 | else |
54445dc2 TT |
6390 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6391 | printf "%s\n" "no" >&6; } | |
07a0db15 | 6392 | fi |
07a0db15 | 6393 | |
57aa50d4 TT |
6394 | |
6395 | fi | |
6396 | if test -z "$ac_cv_path_PKG_CONFIG"; then | |
6397 | ac_pt_PKG_CONFIG=$PKG_CONFIG | |
6398 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
6399 | set dummy pkg-config; ac_word=$2 | |
54445dc2 TT |
6400 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6401 | printf %s "checking for $ac_word... " >&6; } | |
6402 | if test ${ac_cv_path_ac_pt_PKG_CONFIG+y} | |
6403 | then : | |
6404 | printf %s "(cached) " >&6 | |
6405 | else $as_nop | |
57aa50d4 | 6406 | case $ac_pt_PKG_CONFIG in |
b0cacab0 | 6407 | [\\/]* | ?:[\\/]*) |
57aa50d4 | 6408 | ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. |
b0cacab0 TT |
6409 | ;; |
6410 | *) | |
6411 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6412 | for as_dir in $PATH | |
6413 | do | |
6414 | IFS=$as_save_IFS | |
54445dc2 TT |
6415 | case $as_dir in #((( |
6416 | '') as_dir=./ ;; | |
6417 | */) ;; | |
6418 | *) as_dir=$as_dir/ ;; | |
6419 | esac | |
57aa50d4 | 6420 | for ac_exec_ext in '' $ac_executable_extensions; do |
54445dc2 TT |
6421 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
6422 | ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" | |
6423 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 | |
b0cacab0 TT |
6424 | break 2 |
6425 | fi | |
6426 | done | |
57aa50d4 | 6427 | done |
e1052144 | 6428 | IFS=$as_save_IFS |
a64c9c13 | 6429 | |
b0cacab0 TT |
6430 | ;; |
6431 | esac | |
a64c9c13 | 6432 | fi |
57aa50d4 TT |
6433 | ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG |
6434 | if test -n "$ac_pt_PKG_CONFIG"; then | |
54445dc2 TT |
6435 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 |
6436 | printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; } | |
a64c9c13 | 6437 | else |
54445dc2 TT |
6438 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6439 | printf "%s\n" "no" >&6; } | |
a64c9c13 | 6440 | fi |
a64c9c13 | 6441 | |
57aa50d4 TT |
6442 | if test "x$ac_pt_PKG_CONFIG" = x; then |
6443 | PKG_CONFIG="" | |
b0cacab0 | 6444 | else |
57aa50d4 TT |
6445 | case $cross_compiling:$ac_tool_warned in |
6446 | yes:) | |
54445dc2 TT |
6447 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
6448 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
57aa50d4 TT |
6449 | ac_tool_warned=yes ;; |
6450 | esac | |
6451 | PKG_CONFIG=$ac_pt_PKG_CONFIG | |
b0cacab0 | 6452 | fi |
57aa50d4 TT |
6453 | else |
6454 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" | |
a64c9c13 | 6455 | fi |
93636bde | 6456 | |
a64c9c13 | 6457 | fi |
57aa50d4 | 6458 | if test -n "$PKG_CONFIG"; then |
93613951 | 6459 | _pkg_min_version=0.9.0 |
54445dc2 TT |
6460 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 |
6461 | printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; } | |
93613951 | 6462 | if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then |
54445dc2 TT |
6463 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
6464 | printf "%s\n" "yes" >&6; } | |
93613951 | 6465 | else |
54445dc2 TT |
6466 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6467 | printf "%s\n" "no" >&6; } | |
93613951 TT |
6468 | PKG_CONFIG="" |
6469 | fi | |
57aa50d4 TT |
6470 | fi |
6471 | LIBBLKID= | |
6472 | DEPLIBBLKID= | |
6473 | STATIC_LIBBLKID= | |
6474 | DEPSTATIC_LIBBLKID= | |
6475 | PROFILED_LIBBLKID= | |
6476 | DEPPROFILED_LIBBLKID= | |
6477 | BLKID_CMT= | |
d1154eb4 | 6478 | |
57aa50d4 | 6479 | # Check whether --enable-libblkid was given. |
54445dc2 TT |
6480 | if test ${enable_libblkid+y} |
6481 | then : | |
57aa50d4 TT |
6482 | enableval=$enable_libblkid; if test "$enableval" = "no" |
6483 | then | |
6484 | if test -z "$PKG_CONFIG"; then | |
d6a4bcb5 | 6485 | as_fn_error $? "pkg-config not installed; please install it." "$LINENO" 5 |
57aa50d4 TT |
6486 | fi |
6487 | ||
54445dc2 TT |
6488 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for blkid_get_cache in -lblkid" >&5 |
6489 | printf %s "checking for blkid_get_cache in -lblkid... " >&6; } | |
6490 | if test ${ac_cv_lib_blkid_blkid_get_cache+y} | |
6491 | then : | |
6492 | printf %s "(cached) " >&6 | |
6493 | else $as_nop | |
57aa50d4 | 6494 | ac_check_lib_save_LIBS=$LIBS |
2d7583bd | 6495 | LIBS="-lblkid -luuid $LIBS" |
57aa50d4 TT |
6496 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
6497 | /* end confdefs.h. */ | |
6498 | ||
6499 | /* Override any GCC internal prototype to avoid an error. | |
6500 | Use char because int might match the return type of a GCC | |
6501 | builtin and then its argument prototype would still apply. */ | |
57aa50d4 TT |
6502 | char blkid_get_cache (); |
6503 | int | |
54445dc2 | 6504 | main (void) |
57aa50d4 TT |
6505 | { |
6506 | return blkid_get_cache (); | |
6507 | ; | |
6508 | return 0; | |
6509 | } | |
6510 | _ACEOF | |
54445dc2 TT |
6511 | if ac_fn_c_try_link "$LINENO" |
6512 | then : | |
57aa50d4 | 6513 | ac_cv_lib_blkid_blkid_get_cache=yes |
54445dc2 | 6514 | else $as_nop |
57aa50d4 | 6515 | ac_cv_lib_blkid_blkid_get_cache=no |
a64c9c13 | 6516 | fi |
54445dc2 | 6517 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
57aa50d4 TT |
6518 | conftest$ac_exeext conftest.$ac_ext |
6519 | LIBS=$ac_check_lib_save_LIBS | |
a64c9c13 | 6520 | fi |
54445dc2 TT |
6521 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_get_cache" >&5 |
6522 | printf "%s\n" "$ac_cv_lib_blkid_blkid_get_cache" >&6; } | |
6523 | if test "x$ac_cv_lib_blkid_blkid_get_cache" = xyes | |
6524 | then : | |
57aa50d4 TT |
6525 | LIBBLKID=`$PKG_CONFIG --libs blkid`; |
6526 | STATIC_LIBBLKID=`$PKG_CONFIG --static --libs blkid` | |
54445dc2 | 6527 | else $as_nop |
d6a4bcb5 | 6528 | as_fn_error $? "external blkid library not found" "$LINENO" 5 |
a64c9c13 | 6529 | fi |
93636bde | 6530 | |
57aa50d4 | 6531 | BLKID_CMT=# |
5afdf37b | 6532 | PROFILED_LIBBLKID=$LIBBLKID |
54445dc2 TT |
6533 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling private blkid library" >&5 |
6534 | printf "%s\n" "Disabling private blkid library" >&6; } | |
07a0db15 | 6535 | else |
57aa50d4 TT |
6536 | LIBBLKID='$(LIB)/libblkid'$LIB_EXT |
6537 | DEPLIBBLKID=$LIBBLKID | |
6538 | STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT | |
6539 | DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID | |
6540 | PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT | |
6541 | DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID | |
54445dc2 | 6542 | printf "%s\n" "#define CONFIG_BUILD_FINDFS 1" >>confdefs.h |
57aa50d4 | 6543 | |
54445dc2 TT |
6544 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling private blkid library" >&5 |
6545 | printf "%s\n" "Enabling private blkid library" >&6; } | |
b0cacab0 | 6546 | fi |
57aa50d4 | 6547 | |
54445dc2 | 6548 | else $as_nop |
f5dffb81 | 6549 | if test -n "$PKG_CONFIG"; then |
54445dc2 TT |
6550 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for blkid_get_cache in -lblkid" >&5 |
6551 | printf %s "checking for blkid_get_cache in -lblkid... " >&6; } | |
6552 | if test ${ac_cv_lib_blkid_blkid_get_cache+y} | |
6553 | then : | |
6554 | printf %s "(cached) " >&6 | |
6555 | else $as_nop | |
f5dffb81 TT |
6556 | ac_check_lib_save_LIBS=$LIBS |
6557 | LIBS="-lblkid $LIBS" | |
6558 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6559 | /* end confdefs.h. */ | |
6560 | ||
6561 | /* Override any GCC internal prototype to avoid an error. | |
6562 | Use char because int might match the return type of a GCC | |
6563 | builtin and then its argument prototype would still apply. */ | |
f5dffb81 TT |
6564 | char blkid_get_cache (); |
6565 | int | |
54445dc2 | 6566 | main (void) |
f5dffb81 TT |
6567 | { |
6568 | return blkid_get_cache (); | |
6569 | ; | |
6570 | return 0; | |
6571 | } | |
6572 | _ACEOF | |
54445dc2 TT |
6573 | if ac_fn_c_try_link "$LINENO" |
6574 | then : | |
f5dffb81 | 6575 | ac_cv_lib_blkid_blkid_get_cache=yes |
54445dc2 | 6576 | else $as_nop |
f5dffb81 TT |
6577 | ac_cv_lib_blkid_blkid_get_cache=no |
6578 | fi | |
54445dc2 | 6579 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
f5dffb81 TT |
6580 | conftest$ac_exeext conftest.$ac_ext |
6581 | LIBS=$ac_check_lib_save_LIBS | |
6582 | fi | |
54445dc2 TT |
6583 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_get_cache" >&5 |
6584 | printf "%s\n" "$ac_cv_lib_blkid_blkid_get_cache" >&6; } | |
6585 | if test "x$ac_cv_lib_blkid_blkid_get_cache" = xyes | |
6586 | then : | |
f5dffb81 TT |
6587 | LIBBLKID=`$PKG_CONFIG --libs blkid`; |
6588 | STATIC_LIBBLKID=`$PKG_CONFIG --static --libs blkid` | |
6589 | fi | |
6590 | ||
6591 | fi | |
6592 | if test -n "$LIBBLKID"; then | |
6593 | BLKID_CMT=# | |
6594 | PROFILED_LIBBLKID=$LIBBLKID | |
54445dc2 TT |
6595 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Using system blkid library by default" >&5 |
6596 | printf "%s\n" "Using system blkid library by default" >&6; } | |
f5dffb81 TT |
6597 | else |
6598 | LIBBLKID='$(LIB)/libblkid'$LIB_EXT | |
6599 | DEPLIBBLKID=$LIBBLKID | |
6600 | STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT | |
6601 | DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID | |
6602 | PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT | |
6603 | DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID | |
54445dc2 | 6604 | printf "%s\n" "#define CONFIG_BUILD_FINDFS 1" >>confdefs.h |
57aa50d4 | 6605 | |
54445dc2 TT |
6606 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling private blkid library by default" >&5 |
6607 | printf "%s\n" "Enabling private blkid library by default" >&6; } | |
f5dffb81 | 6608 | fi |
57aa50d4 | 6609 | |
a64c9c13 | 6610 | fi |
07a0db15 | 6611 | |
a64c9c13 | 6612 | |
b0cacab0 | 6613 | |
b0cacab0 | 6614 | |
a64c9c13 | 6615 | |
b0cacab0 | 6616 | |
07a0db15 | 6617 | |
57aa50d4 | 6618 | |
0afb9be6 | 6619 | ALL_CMT= |
feb235e0 | 6620 | SUBSET_CMT= |
0afb9be6 | 6621 | # Check whether --enable-subset was given. |
54445dc2 TT |
6622 | if test ${enable_subset+y} |
6623 | then : | |
0afb9be6 TT |
6624 | enableval=$enable_subset; if test "$enableval" = "no" |
6625 | then | |
feb235e0 | 6626 | SUBSET_CMT=# |
54445dc2 TT |
6627 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling subset-only build" >&5 |
6628 | printf "%s\n" "Disabling subset-only build" >&6; } | |
0afb9be6 TT |
6629 | else |
6630 | ALL_CMT=# | |
54445dc2 TT |
6631 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling subset-only-build" >&5 |
6632 | printf "%s\n" "Enabling subset-only-build" >&6; } | |
0afb9be6 TT |
6633 | fi |
6634 | ||
6635 | fi | |
6636 | ||
6637 | ||
3df6014a | 6638 | |
feb235e0 | 6639 | |
3df6014a | 6640 | # Check whether --enable-backtrace was given. |
54445dc2 TT |
6641 | if test ${enable_backtrace+y} |
6642 | then : | |
3df6014a TT |
6643 | enableval=$enable_backtrace; if test "$enableval" = "no" |
6644 | then | |
54445dc2 TT |
6645 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling use of backtrace" >&5 |
6646 | printf "%s\n" "Disabling use of backtrace" >&6; } | |
6647 | printf "%s\n" "#define DISABLE_BACKTRACE 1" >>confdefs.h | |
3df6014a TT |
6648 | |
6649 | else | |
54445dc2 TT |
6650 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling use of backtrace" >&5 |
6651 | printf "%s\n" "Enabling use of backtrace" >&6; } | |
3df6014a TT |
6652 | fi |
6653 | ||
54445dc2 TT |
6654 | else $as_nop |
6655 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling use of backtrace by default" >&5 | |
6656 | printf "%s\n" "Enabling use of backtrace by default" >&6; } | |
3df6014a TT |
6657 | |
6658 | fi | |
6659 | ||
57aa50d4 | 6660 | # Check whether --enable-debugfs was given. |
54445dc2 TT |
6661 | if test ${enable_debugfs+y} |
6662 | then : | |
57aa50d4 TT |
6663 | enableval=$enable_debugfs; if test "$enableval" = "no" |
6664 | then | |
54445dc2 TT |
6665 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling debugfs support" >&5 |
6666 | printf "%s\n" "Disabling debugfs support" >&6; } | |
57aa50d4 | 6667 | DEBUGFS_CMT="#" |
b0cacab0 | 6668 | else |
57aa50d4 | 6669 | DEBUGFS_CMT= |
54445dc2 TT |
6670 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling debugfs support" >&5 |
6671 | printf "%s\n" "Enabling debugfs support" >&6; } | |
b0cacab0 | 6672 | fi |
a64c9c13 | 6673 | |
54445dc2 TT |
6674 | else $as_nop |
6675 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling debugfs support by default" >&5 | |
6676 | printf "%s\n" "Enabling debugfs support by default" >&6; } | |
57aa50d4 | 6677 | DEBUGFS_CMT= |
a64c9c13 | 6678 | |
93636bde | 6679 | fi |
57aa50d4 TT |
6680 | |
6681 | ||
6682 | # Check whether --enable-imager was given. | |
54445dc2 TT |
6683 | if test ${enable_imager+y} |
6684 | then : | |
57aa50d4 TT |
6685 | enableval=$enable_imager; if test "$enableval" = "no" |
6686 | then | |
54445dc2 TT |
6687 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling e2image support" >&5 |
6688 | printf "%s\n" "Disabling e2image support" >&6; } | |
57aa50d4 | 6689 | IMAGER_CMT="#" |
b0cacab0 | 6690 | else |
57aa50d4 | 6691 | IMAGER_CMT= |
54445dc2 TT |
6692 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling e2image support" >&5 |
6693 | printf "%s\n" "Enabling e2image support" >&6; } | |
b0cacab0 TT |
6694 | fi |
6695 | ||
54445dc2 TT |
6696 | else $as_nop |
6697 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling e2image support by default" >&5 | |
6698 | printf "%s\n" "Enabling e2image support by default" >&6; } | |
57aa50d4 TT |
6699 | IMAGER_CMT= |
6700 | ||
93636bde TT |
6701 | fi |
6702 | ||
a64c9c13 | 6703 | |
57aa50d4 | 6704 | # Check whether --enable-resizer was given. |
54445dc2 TT |
6705 | if test ${enable_resizer+y} |
6706 | then : | |
57aa50d4 TT |
6707 | enableval=$enable_resizer; if test "$enableval" = "no" |
6708 | then | |
54445dc2 TT |
6709 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling e2resize support" >&5 |
6710 | printf "%s\n" "Disabling e2resize support" >&6; } | |
57aa50d4 | 6711 | RESIZER_CMT="#" |
b0cacab0 | 6712 | else |
57aa50d4 | 6713 | RESIZER_CMT= |
54445dc2 TT |
6714 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling e2resize support" >&5 |
6715 | printf "%s\n" "Enabling e2resize support" >&6; } | |
57aa50d4 | 6716 | fi |
b0cacab0 | 6717 | |
54445dc2 TT |
6718 | else $as_nop |
6719 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling e2resize support by default" >&5 | |
6720 | printf "%s\n" "Enabling e2resize support by default" >&6; } | |
57aa50d4 | 6721 | RESIZER_CMT= |
b0cacab0 | 6722 | |
b0cacab0 | 6723 | fi |
e1052144 | 6724 | |
57aa50d4 | 6725 | |
8d9c50c5 | 6726 | # Check whether --enable-defrag was given. |
54445dc2 TT |
6727 | if test ${enable_defrag+y} |
6728 | then : | |
8d9c50c5 TT |
6729 | enableval=$enable_defrag; if test "$enableval" = "no" |
6730 | then | |
54445dc2 TT |
6731 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling e4defrag support" >&5 |
6732 | printf "%s\n" "Disabling e4defrag support" >&6; } | |
8d9c50c5 TT |
6733 | DEFRAG_CMT="#" |
6734 | else | |
6735 | DEFRAG_CMT= | |
54445dc2 TT |
6736 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling e4defrag support" >&5 |
6737 | printf "%s\n" "Enabling e4defrag support" >&6; } | |
8d9c50c5 TT |
6738 | fi |
6739 | ||
54445dc2 | 6740 | else $as_nop |
6c59a665 TT |
6741 | if test -z "$WITH_DIET_LIBC" |
6742 | then | |
54445dc2 TT |
6743 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling e4defrag support by default" >&5 |
6744 | printf "%s\n" "Enabling e4defrag support by default" >&6; } | |
6c59a665 TT |
6745 | DEFRAG_CMT= |
6746 | else | |
54445dc2 TT |
6747 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling e4defrag support by default" >&5 |
6748 | printf "%s\n" "Disabling e4defrag support by default" >&6; } | |
6c59a665 TT |
6749 | DEFRAG_CMT="#" |
6750 | fi | |
8d9c50c5 TT |
6751 | |
6752 | fi | |
6753 | ||
6754 | ||
57aa50d4 | 6755 | # Check whether --enable-fsck was given. |
54445dc2 TT |
6756 | if test ${enable_fsck+y} |
6757 | then : | |
57aa50d4 TT |
6758 | enableval=$enable_fsck; if test "$enableval" = "no" |
6759 | then | |
6760 | FSCK_PROG='' FSCK_MAN='' | |
54445dc2 TT |
6761 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Not building fsck wrapper" >&5 |
6762 | printf "%s\n" "Not building fsck wrapper" >&6; } | |
57aa50d4 TT |
6763 | else |
6764 | FSCK_PROG=fsck FSCK_MAN=fsck.8 | |
54445dc2 TT |
6765 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Building fsck wrapper" >&5 |
6766 | printf "%s\n" "Building fsck wrapper" >&6; } | |
a64c9c13 TT |
6767 | fi |
6768 | ||
54445dc2 | 6769 | else $as_nop |
57aa50d4 TT |
6770 | case "$host_os" in |
6771 | gnu*) | |
6772 | FSCK_PROG='' FSCK_MAN='' | |
54445dc2 TT |
6773 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Not building fsck wrapper by default" >&5 |
6774 | printf "%s\n" "Not building fsck wrapper by default" >&6; } | |
57aa50d4 TT |
6775 | ;; |
6776 | *) | |
6777 | FSCK_PROG=fsck FSCK_MAN=fsck.8 | |
54445dc2 TT |
6778 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Building fsck wrapper by default" >&5 |
6779 | printf "%s\n" "Building fsck wrapper by default" >&6; } | |
57aa50d4 | 6780 | esac |
b0cacab0 | 6781 | |
57aa50d4 | 6782 | fi |
b0cacab0 | 6783 | |
93636bde | 6784 | |
b0cacab0 | 6785 | |
57aa50d4 | 6786 | # Check whether --enable-e2initrd-helper was given. |
54445dc2 TT |
6787 | if test ${enable_e2initrd_helper+y} |
6788 | then : | |
57aa50d4 TT |
6789 | enableval=$enable_e2initrd_helper; if test "$enableval" = "no" |
6790 | then | |
6791 | E2INITRD_PROG='' E2INITRD_MAN='' | |
54445dc2 TT |
6792 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Not building e2initrd helper" >&5 |
6793 | printf "%s\n" "Not building e2initrd helper" >&6; } | |
57aa50d4 TT |
6794 | else |
6795 | E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8 | |
54445dc2 TT |
6796 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Building e2initrd helper" >&5 |
6797 | printf "%s\n" "Building e2initrd helper" >&6; } | |
57aa50d4 | 6798 | fi |
a64c9c13 | 6799 | |
54445dc2 | 6800 | else $as_nop |
57aa50d4 | 6801 | E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8 |
54445dc2 TT |
6802 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Building e2initrd helper by default" >&5 |
6803 | printf "%s\n" "Building e2initrd helper by default" >&6; } | |
b0cacab0 | 6804 | |
a64c9c13 | 6805 | fi |
e1052144 | 6806 | |
57aa50d4 TT |
6807 | |
6808 | ||
6809 | # Check whether --enable-tls was given. | |
54445dc2 TT |
6810 | if test ${enable_tls+y} |
6811 | then : | |
57aa50d4 TT |
6812 | enableval=$enable_tls; if test "$enableval" = "no" |
6813 | then | |
6814 | try_tls="" | |
54445dc2 TT |
6815 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling thread local support" >&5 |
6816 | printf "%s\n" "Disabling thread local support" >&6; } | |
57aa50d4 TT |
6817 | else |
6818 | try_tls="yes" | |
54445dc2 TT |
6819 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling thread local support" >&5 |
6820 | printf "%s\n" "Enabling thread local support" >&6; } | |
a64c9c13 TT |
6821 | fi |
6822 | ||
54445dc2 | 6823 | else $as_nop |
57aa50d4 TT |
6824 | if test -n "$WITH_DIET_LIBC" |
6825 | then | |
6826 | try_tls="" | |
54445dc2 TT |
6827 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Diet libc does not support thread local support" >&5 |
6828 | printf "%s\n" "Diet libc does not support thread local support" >&6; } | |
57aa50d4 TT |
6829 | else |
6830 | try_tls="yes" | |
54445dc2 TT |
6831 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Try using thread local support by default" >&5 |
6832 | printf "%s\n" "Try using thread local support by default" >&6; } | |
57aa50d4 | 6833 | fi |
a64c9c13 | 6834 | |
93636bde | 6835 | fi |
07a0db15 | 6836 | |
57aa50d4 TT |
6837 | if test "$try_tls" = "yes" |
6838 | then | |
a64c9c13 | 6839 | |
54445dc2 TT |
6840 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for thread local storage (TLS) class" >&5 |
6841 | printf %s "checking for thread local storage (TLS) class... " >&6; } | |
6842 | if test ${ac_cv_tls+y} | |
6843 | then : | |
6844 | printf %s "(cached) " >&6 | |
6845 | else $as_nop | |
b0cacab0 | 6846 | |
57aa50d4 TT |
6847 | ax_tls_keywords="__thread __declspec(thread) none" |
6848 | for ax_tls_keyword in $ax_tls_keywords; do | |
6849 | case $ax_tls_keyword in | |
6850 | none) ac_cv_tls=none ; break ;; | |
6851 | *) | |
6852 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6853 | /* end confdefs.h. */ | |
6854 | #include <stdlib.h> | |
6855 | static void | |
6856 | foo(void) { | |
6857 | static $ax_tls_keyword int bar; | |
6858 | exit(1); | |
6859 | } | |
b0cacab0 | 6860 | int |
54445dc2 | 6861 | main (void) |
b0cacab0 | 6862 | { |
57aa50d4 | 6863 | |
b0cacab0 TT |
6864 | ; |
6865 | return 0; | |
6866 | } | |
6867 | _ACEOF | |
54445dc2 TT |
6868 | if ac_fn_c_try_compile "$LINENO" |
6869 | then : | |
57aa50d4 | 6870 | ac_cv_tls=$ax_tls_keyword ; break |
54445dc2 | 6871 | else $as_nop |
57aa50d4 | 6872 | ac_cv_tls=none |
b0cacab0 | 6873 | |
b0cacab0 | 6874 | fi |
54445dc2 | 6875 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
57aa50d4 TT |
6876 | esac |
6877 | done | |
6878 | ||
b0cacab0 | 6879 | fi |
b0cacab0 | 6880 | |
57aa50d4 TT |
6881 | |
6882 | if test "$ac_cv_tls" != "none"; then | |
6883 | ||
54445dc2 | 6884 | printf "%s\n" "#define TLS $ac_cv_tls" >>confdefs.h |
93636bde | 6885 | |
b0cacab0 | 6886 | fi |
54445dc2 TT |
6887 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_tls" >&5 |
6888 | printf "%s\n" "$ac_cv_tls" >&6; } | |
b0cacab0 | 6889 | |
57aa50d4 | 6890 | fi |
d1154eb4 | 6891 | |
bdcd5f22 | 6892 | # Check whether --with-pthread was given. |
54445dc2 TT |
6893 | if test ${with_pthread+y} |
6894 | then : | |
bdcd5f22 | 6895 | withval=$with_pthread; if test "$withval" = "no" |
57aa50d4 | 6896 | then |
bdcd5f22 | 6897 | try_pthread="" |
54445dc2 TT |
6898 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling pthread support" >&5 |
6899 | printf "%s\n" "Disabling pthread support" >&6; } | |
a64c9c13 | 6900 | else |
bdcd5f22 | 6901 | try_pthread="yes" |
54445dc2 TT |
6902 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Testing for pthread support" >&5 |
6903 | printf "%s\n" "Testing for pthread support" >&6; } | |
57aa50d4 | 6904 | fi |
a64c9c13 | 6905 | |
54445dc2 | 6906 | else $as_nop |
bdcd5f22 | 6907 | try_pthread="yes" |
54445dc2 TT |
6908 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Try testing for pthread support by default" >&5 |
6909 | printf "%s\n" "Try testing for pthread support by default" >&6; } | |
a64c9c13 | 6910 | |
bdcd5f22 TT |
6911 | fi |
6912 | ||
6913 | if test "$try_pthread" = "yes" | |
e3d10158 | 6914 | then |
54445dc2 TT |
6915 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 |
6916 | printf %s "checking for a sed that does not truncate output... " >&6; } | |
6917 | if test ${ac_cv_path_SED+y} | |
6918 | then : | |
6919 | printf %s "(cached) " >&6 | |
6920 | else $as_nop | |
bdcd5f22 TT |
6921 | ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ |
6922 | for ac_i in 1 2 3 4 5 6 7; do | |
6923 | ac_script="$ac_script$as_nl$ac_script" | |
6924 | done | |
6925 | echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed | |
6926 | { ac_script=; unset ac_script;} | |
6927 | if test -z "$SED"; then | |
6928 | ac_path_SED_found=false | |
6929 | # Loop through the user's path and test for each of PROGNAME-LIST | |
6930 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
54445dc2 TT |
6931 | for as_dir in $PATH |
6932 | do | |
6933 | IFS=$as_save_IFS | |
6934 | case $as_dir in #((( | |
6935 | '') as_dir=./ ;; | |
6936 | */) ;; | |
6937 | *) as_dir=$as_dir/ ;; | |
6938 | esac | |
6939 | for ac_prog in sed gsed | |
6940 | do | |
6941 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6942 | ac_path_SED="$as_dir$ac_prog$ac_exec_ext" | |
6943 | as_fn_executable_p "$ac_path_SED" || continue | |
6944 | # Check for GNU ac_path_SED and select it if it is found. | |
6945 | # Check for GNU $ac_path_SED | |
6946 | case `"$ac_path_SED" --version 2>&1` in | |
6947 | *GNU*) | |
6948 | ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; | |
6949 | *) | |
6950 | ac_count=0 | |
6951 | printf %s 0123456789 >"conftest.in" | |
6952 | while : | |
6953 | do | |
6954 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
6955 | mv "conftest.tmp" "conftest.in" | |
6956 | cp "conftest.in" "conftest.nl" | |
6957 | printf "%s\n" '' >> "conftest.nl" | |
6958 | "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
6959 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
6960 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
6961 | if test $ac_count -gt ${ac_path_SED_max-0}; then | |
6962 | # Best one so far, save it but keep looking for a better one | |
6963 | ac_cv_path_SED="$ac_path_SED" | |
6964 | ac_path_SED_max=$ac_count | |
6965 | fi | |
6966 | # 10*(2^10) chars as input seems more than enough | |
6967 | test $ac_count -gt 10 && break | |
6968 | done | |
6969 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
6970 | esac | |
6971 | ||
6972 | $ac_path_SED_found && break 3 | |
6973 | done | |
6974 | done | |
6975 | done | |
6976 | IFS=$as_save_IFS | |
6977 | if test -z "$ac_cv_path_SED"; then | |
6978 | as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 | |
6979 | fi | |
6980 | else | |
6981 | ac_cv_path_SED=$SED | |
6982 | fi | |
6983 | ||
6984 | fi | |
6985 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 | |
6986 | printf "%s\n" "$ac_cv_path_SED" >&6; } | |
6987 | SED="$ac_cv_path_SED" | |
6988 | rm -f conftest.sed | |
6989 | ||
6990 | ||
6991 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 | |
6992 | printf %s "checking for grep that handles long lines and -e... " >&6; } | |
6993 | if test ${ac_cv_path_GREP+y} | |
6994 | then : | |
6995 | printf %s "(cached) " >&6 | |
6996 | else $as_nop | |
6997 | if test -z "$GREP"; then | |
6998 | ac_path_GREP_found=false | |
6999 | # Loop through the user's path and test for each of PROGNAME-LIST | |
7000 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7001 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
7002 | do | |
7003 | IFS=$as_save_IFS | |
7004 | case $as_dir in #((( | |
7005 | '') as_dir=./ ;; | |
7006 | */) ;; | |
7007 | *) as_dir=$as_dir/ ;; | |
7008 | esac | |
7009 | for ac_prog in grep ggrep | |
7010 | do | |
7011 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7012 | ac_path_GREP="$as_dir$ac_prog$ac_exec_ext" | |
7013 | as_fn_executable_p "$ac_path_GREP" || continue | |
7014 | # Check for GNU ac_path_GREP and select it if it is found. | |
7015 | # Check for GNU $ac_path_GREP | |
7016 | case `"$ac_path_GREP" --version 2>&1` in | |
7017 | *GNU*) | |
7018 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | |
7019 | *) | |
7020 | ac_count=0 | |
7021 | printf %s 0123456789 >"conftest.in" | |
7022 | while : | |
7023 | do | |
7024 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
7025 | mv "conftest.tmp" "conftest.in" | |
7026 | cp "conftest.in" "conftest.nl" | |
7027 | printf "%s\n" 'GREP' >> "conftest.nl" | |
7028 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
7029 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
7030 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
7031 | if test $ac_count -gt ${ac_path_GREP_max-0}; then | |
7032 | # Best one so far, save it but keep looking for a better one | |
7033 | ac_cv_path_GREP="$ac_path_GREP" | |
7034 | ac_path_GREP_max=$ac_count | |
7035 | fi | |
7036 | # 10*(2^10) chars as input seems more than enough | |
7037 | test $ac_count -gt 10 && break | |
7038 | done | |
7039 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
7040 | esac | |
7041 | ||
7042 | $ac_path_GREP_found && break 3 | |
7043 | done | |
7044 | done | |
7045 | done | |
7046 | IFS=$as_save_IFS | |
7047 | if test -z "$ac_cv_path_GREP"; then | |
7048 | as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
7049 | fi | |
7050 | else | |
7051 | ac_cv_path_GREP=$GREP | |
7052 | fi | |
7053 | ||
7054 | fi | |
7055 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 | |
7056 | printf "%s\n" "$ac_cv_path_GREP" >&6; } | |
7057 | GREP="$ac_cv_path_GREP" | |
7058 | ||
7059 | ||
7060 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 | |
7061 | printf %s "checking for egrep... " >&6; } | |
7062 | if test ${ac_cv_path_EGREP+y} | |
7063 | then : | |
7064 | printf %s "(cached) " >&6 | |
7065 | else $as_nop | |
7066 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 | |
7067 | then ac_cv_path_EGREP="$GREP -E" | |
7068 | else | |
7069 | if test -z "$EGREP"; then | |
7070 | ac_path_EGREP_found=false | |
7071 | # Loop through the user's path and test for each of PROGNAME-LIST | |
7072 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7073 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
bdcd5f22 TT |
7074 | do |
7075 | IFS=$as_save_IFS | |
54445dc2 TT |
7076 | case $as_dir in #((( |
7077 | '') as_dir=./ ;; | |
7078 | */) ;; | |
7079 | *) as_dir=$as_dir/ ;; | |
7080 | esac | |
7081 | for ac_prog in egrep | |
7082 | do | |
bdcd5f22 | 7083 | for ac_exec_ext in '' $ac_executable_extensions; do |
54445dc2 TT |
7084 | ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext" |
7085 | as_fn_executable_p "$ac_path_EGREP" || continue | |
7086 | # Check for GNU ac_path_EGREP and select it if it is found. | |
7087 | # Check for GNU $ac_path_EGREP | |
7088 | case `"$ac_path_EGREP" --version 2>&1` in | |
bdcd5f22 | 7089 | *GNU*) |
54445dc2 | 7090 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
bdcd5f22 TT |
7091 | *) |
7092 | ac_count=0 | |
54445dc2 | 7093 | printf %s 0123456789 >"conftest.in" |
bdcd5f22 TT |
7094 | while : |
7095 | do | |
7096 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
7097 | mv "conftest.tmp" "conftest.in" | |
7098 | cp "conftest.in" "conftest.nl" | |
54445dc2 TT |
7099 | printf "%s\n" 'EGREP' >> "conftest.nl" |
7100 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
bdcd5f22 TT |
7101 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
7102 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
54445dc2 | 7103 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
bdcd5f22 | 7104 | # Best one so far, save it but keep looking for a better one |
54445dc2 TT |
7105 | ac_cv_path_EGREP="$ac_path_EGREP" |
7106 | ac_path_EGREP_max=$ac_count | |
bdcd5f22 TT |
7107 | fi |
7108 | # 10*(2^10) chars as input seems more than enough | |
7109 | test $ac_count -gt 10 && break | |
7110 | done | |
7111 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
7112 | esac | |
7113 | ||
54445dc2 | 7114 | $ac_path_EGREP_found && break 3 |
bdcd5f22 TT |
7115 | done |
7116 | done | |
7117 | done | |
7118 | IFS=$as_save_IFS | |
54445dc2 TT |
7119 | if test -z "$ac_cv_path_EGREP"; then |
7120 | as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
bdcd5f22 TT |
7121 | fi |
7122 | else | |
54445dc2 | 7123 | ac_cv_path_EGREP=$EGREP |
e3d10158 | 7124 | fi |
e1052144 | 7125 | |
54445dc2 | 7126 | fi |
a64c9c13 | 7127 | fi |
54445dc2 TT |
7128 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 |
7129 | printf "%s\n" "$ac_cv_path_EGREP" >&6; } | |
7130 | EGREP="$ac_cv_path_EGREP" | |
7131 | ||
e1052144 | 7132 | |
93636bde | 7133 | |
d6a4bcb5 | 7134 | |
d6a4bcb5 | 7135 | |
d6a4bcb5 | 7136 | |
bdcd5f22 TT |
7137 | ac_ext=c |
7138 | ac_cpp='$CPP $CPPFLAGS' | |
7139 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
7140 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
7141 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
d6a4bcb5 | 7142 | |
bdcd5f22 TT |
7143 | ax_pthread_ok=no |
7144 | ||
7145 | # We used to check for pthread.h first, but this fails if pthread.h | |
7146 | # requires special compiler flags (e.g. on Tru64 or Sequent). | |
7147 | # It gets checked for in the link test anyway. | |
7148 | ||
7149 | # First of all, check if the user has set any of the PTHREAD_LIBS, | |
7150 | # etcetera environment variables, and if threads linking works using | |
7151 | # them: | |
7152 | if test "x$PTHREAD_CFLAGS$PTHREAD_LIBS" != "x"; then | |
7153 | ax_pthread_save_CC="$CC" | |
7154 | ax_pthread_save_CFLAGS="$CFLAGS" | |
7155 | ax_pthread_save_LIBS="$LIBS" | |
54445dc2 TT |
7156 | if test "x$PTHREAD_CC" != "x" |
7157 | then : | |
bdcd5f22 | 7158 | CC="$PTHREAD_CC" |
54445dc2 TT |
7159 | fi |
7160 | if test "x$PTHREAD_CXX" != "x" | |
7161 | then : | |
7162 | CXX="$PTHREAD_CXX" | |
bdcd5f22 TT |
7163 | fi |
7164 | CFLAGS="$CFLAGS $PTHREAD_CFLAGS" | |
7165 | LIBS="$PTHREAD_LIBS $LIBS" | |
54445dc2 TT |
7166 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS" >&5 |
7167 | printf %s "checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS... " >&6; } | |
bdcd5f22 TT |
7168 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7169 | /* end confdefs.h. */ | |
d6a4bcb5 | 7170 | |
bdcd5f22 TT |
7171 | /* Override any GCC internal prototype to avoid an error. |
7172 | Use char because int might match the return type of a GCC | |
7173 | builtin and then its argument prototype would still apply. */ | |
bdcd5f22 TT |
7174 | char pthread_join (); |
7175 | int | |
54445dc2 | 7176 | main (void) |
bdcd5f22 TT |
7177 | { |
7178 | return pthread_join (); | |
7179 | ; | |
7180 | return 0; | |
7181 | } | |
7182 | _ACEOF | |
54445dc2 TT |
7183 | if ac_fn_c_try_link "$LINENO" |
7184 | then : | |
bdcd5f22 | 7185 | ax_pthread_ok=yes |
1625bf42 | 7186 | fi |
54445dc2 | 7187 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
bdcd5f22 | 7188 | conftest$ac_exeext conftest.$ac_ext |
54445dc2 TT |
7189 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5 |
7190 | printf "%s\n" "$ax_pthread_ok" >&6; } | |
bdcd5f22 TT |
7191 | if test "x$ax_pthread_ok" = "xno"; then |
7192 | PTHREAD_LIBS="" | |
7193 | PTHREAD_CFLAGS="" | |
7194 | fi | |
7195 | CC="$ax_pthread_save_CC" | |
7196 | CFLAGS="$ax_pthread_save_CFLAGS" | |
7197 | LIBS="$ax_pthread_save_LIBS" | |
7198 | fi | |
7199 | ||
7200 | # We must check for the threads library under a number of different | |
7201 | # names; the ordering is very important because some systems | |
7202 | # (e.g. DEC) have both -lpthread and -lpthreads, where one of the | |
7203 | # libraries is broken (non-POSIX). | |
7204 | ||
54445dc2 TT |
7205 | # Create a list of thread flags to try. Items with a "," contain both |
7206 | # C compiler flags (before ",") and linker flags (after ","). Other items | |
7207 | # starting with a "-" are C compiler flags, and remaining items are | |
7208 | # library names, except for "none" which indicates that we try without | |
7209 | # any flags at all, and "pthread-config" which is a program returning | |
7210 | # the flags for the Pth emulation library. | |
bdcd5f22 TT |
7211 | |
7212 | ax_pthread_flags="pthreads none -Kthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config" | |
7213 | ||
7214 | # The ordering *is* (sometimes) important. Some notes on the | |
7215 | # individual items follow: | |
7216 | ||
7217 | # pthreads: AIX (must check this before -lpthread) | |
7218 | # none: in case threads are in libc; should be tried before -Kthread and | |
7219 | # other compiler flags to prevent continual compiler warnings | |
7220 | # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h) | |
7221 | # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads), Tru64 | |
7222 | # (Note: HP C rejects this with "bad form for `-t' option") | |
7223 | # -pthreads: Solaris/gcc (Note: HP C also rejects) | |
7224 | # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it | |
7225 | # doesn't hurt to check since this sometimes defines pthreads and | |
7226 | # -D_REENTRANT too), HP C (must be checked before -lpthread, which | |
7227 | # is present but should not be used directly; and before -mthreads, | |
7228 | # because the compiler interprets this as "-mt" + "-hreads") | |
7229 | # -mthreads: Mingw32/gcc, Lynx/gcc | |
7230 | # pthread: Linux, etcetera | |
7231 | # --thread-safe: KAI C++ | |
7232 | # pthread-config: use pthread-config program (for GNU Pth library) | |
7233 | ||
7234 | case $host_os in | |
7235 | ||
7236 | freebsd*) | |
7237 | ||
7238 | # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able) | |
7239 | # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread) | |
7240 | ||
7241 | ax_pthread_flags="-kthread lthread $ax_pthread_flags" | |
7242 | ;; | |
1625bf42 | 7243 | |
bdcd5f22 | 7244 | hpux*) |
1625bf42 | 7245 | |
bdcd5f22 TT |
7246 | # From the cc(1) man page: "[-mt] Sets various -D flags to enable |
7247 | # multi-threading and also sets -lpthread." | |
749f0712 | 7248 | |
bdcd5f22 TT |
7249 | ax_pthread_flags="-mt -pthread pthread $ax_pthread_flags" |
7250 | ;; | |
749f0712 | 7251 | |
bdcd5f22 | 7252 | openedition*) |
749f0712 | 7253 | |
bdcd5f22 TT |
7254 | # IBM z/OS requires a feature-test macro to be defined in order to |
7255 | # enable POSIX threads at all, so give the user a hint if this is | |
7256 | # not set. (We don't define these ourselves, as they can affect | |
7257 | # other portions of the system API in unpredictable ways.) | |
749f0712 | 7258 | |
bdcd5f22 TT |
7259 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7260 | /* end confdefs.h. */ | |
7261 | ||
7262 | # if !defined(_OPEN_THREADS) && !defined(_UNIX03_THREADS) | |
7263 | AX_PTHREAD_ZOS_MISSING | |
7264 | # endif | |
7265 | ||
7266 | _ACEOF | |
7267 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
54445dc2 TT |
7268 | $EGREP "AX_PTHREAD_ZOS_MISSING" >/dev/null 2>&1 |
7269 | then : | |
7270 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&5 | |
7271 | printf "%s\n" "$as_me: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&2;} | |
749f0712 | 7272 | fi |
54445dc2 | 7273 | rm -rf conftest* |
749f0712 | 7274 | |
bdcd5f22 | 7275 | ;; |
749f0712 | 7276 | |
bdcd5f22 | 7277 | solaris*) |
749f0712 | 7278 | |
bdcd5f22 TT |
7279 | # On Solaris (at least, for some versions), libc contains stubbed |
7280 | # (non-functional) versions of the pthreads routines, so link-based | |
7281 | # tests will erroneously succeed. (N.B.: The stubs are missing | |
7282 | # pthread_cleanup_push, or rather a function called by this macro, | |
7283 | # so we could check for that, but who knows whether they'll stub | |
7284 | # that too in a future libc.) So we'll check first for the | |
7285 | # standard Solaris way of linking pthreads (-mt -lpthread). | |
749f0712 | 7286 | |
54445dc2 | 7287 | ax_pthread_flags="-mt,-lpthread pthread $ax_pthread_flags" |
bdcd5f22 TT |
7288 | ;; |
7289 | esac | |
1625bf42 | 7290 | |
bdcd5f22 | 7291 | # Are we compiling with Clang? |
1625bf42 | 7292 | |
54445dc2 TT |
7293 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC is Clang" >&5 |
7294 | printf %s "checking whether $CC is Clang... " >&6; } | |
7295 | if test ${ax_cv_PTHREAD_CLANG+y} | |
7296 | then : | |
7297 | printf %s "(cached) " >&6 | |
7298 | else $as_nop | |
bdcd5f22 TT |
7299 | ax_cv_PTHREAD_CLANG=no |
7300 | # Note that Autoconf sets GCC=yes for Clang as well as GCC | |
7301 | if test "x$GCC" = "xyes"; then | |
7302 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7303 | /* end confdefs.h. */ | |
7304 | /* Note: Clang 2.7 lacks __clang_[a-z]+__ */ | |
7305 | # if defined(__clang__) && defined(__llvm__) | |
7306 | AX_PTHREAD_CC_IS_CLANG | |
7307 | # endif | |
7308 | ||
7309 | _ACEOF | |
7310 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
54445dc2 TT |
7311 | $EGREP "AX_PTHREAD_CC_IS_CLANG" >/dev/null 2>&1 |
7312 | then : | |
bdcd5f22 | 7313 | ax_cv_PTHREAD_CLANG=yes |
1625bf42 | 7314 | fi |
54445dc2 | 7315 | rm -rf conftest* |
1625bf42 | 7316 | |
bdcd5f22 | 7317 | fi |
1625bf42 TB |
7318 | |
7319 | fi | |
54445dc2 TT |
7320 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG" >&5 |
7321 | printf "%s\n" "$ax_cv_PTHREAD_CLANG" >&6; } | |
bdcd5f22 TT |
7322 | ax_pthread_clang="$ax_cv_PTHREAD_CLANG" |
7323 | ||
bdcd5f22 | 7324 | |
54445dc2 | 7325 | # GCC generally uses -pthread, or -pthreads on some platforms (e.g. SPARC) |
bdcd5f22 | 7326 | |
54445dc2 TT |
7327 | # Note that for GCC and Clang -pthread generally implies -lpthread, |
7328 | # except when -nostdlib is passed. | |
7329 | # This is problematic using libtool to build C++ shared libraries with pthread: | |
7330 | # [1] https://gcc.gnu.org/bugzilla/show_bug.cgi?id=25460 | |
7331 | # [2] https://bugzilla.redhat.com/show_bug.cgi?id=661333 | |
7332 | # [3] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=468555 | |
7333 | # To solve this, first try -pthread together with -lpthread for GCC | |
bdcd5f22 | 7334 | |
54445dc2 TT |
7335 | if test "x$GCC" = "xyes" |
7336 | then : | |
7337 | ax_pthread_flags="-pthread,-lpthread -pthread -pthreads $ax_pthread_flags" | |
7338 | fi | |
bdcd5f22 | 7339 | |
54445dc2 | 7340 | # Clang takes -pthread (never supported any other flag), but we'll try with -lpthread first |
bdcd5f22 | 7341 | |
54445dc2 TT |
7342 | if test "x$ax_pthread_clang" = "xyes" |
7343 | then : | |
7344 | ax_pthread_flags="-pthread,-lpthread -pthread" | |
7345 | fi | |
bdcd5f22 | 7346 | |
bdcd5f22 | 7347 | |
54445dc2 TT |
7348 | # The presence of a feature test macro requesting re-entrant function |
7349 | # definitions is, on some systems, a strong hint that pthreads support is | |
7350 | # correctly enabled | |
bdcd5f22 | 7351 | |
54445dc2 TT |
7352 | case $host_os in |
7353 | darwin* | hpux* | linux* | osf* | solaris*) | |
7354 | ax_pthread_check_macro="_REENTRANT" | |
7355 | ;; | |
d6a4bcb5 | 7356 | |
54445dc2 TT |
7357 | aix*) |
7358 | ax_pthread_check_macro="_THREAD_SAFE" | |
7359 | ;; | |
d1154eb4 | 7360 | |
54445dc2 TT |
7361 | *) |
7362 | ax_pthread_check_macro="--" | |
7363 | ;; | |
7364 | esac | |
7365 | if test "x$ax_pthread_check_macro" = "x--" | |
7366 | then : | |
7367 | ax_pthread_check_cond=0 | |
7368 | else $as_nop | |
7369 | ax_pthread_check_cond="!defined($ax_pthread_check_macro)" | |
bdcd5f22 | 7370 | fi |
d1154eb4 | 7371 | |
57aa50d4 | 7372 | |
bdcd5f22 TT |
7373 | if test "x$ax_pthread_ok" = "xno"; then |
7374 | for ax_pthread_try_flag in $ax_pthread_flags; do | |
57aa50d4 | 7375 | |
bdcd5f22 TT |
7376 | case $ax_pthread_try_flag in |
7377 | none) | |
54445dc2 TT |
7378 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5 |
7379 | printf %s "checking whether pthreads work without any flags... " >&6; } | |
bdcd5f22 | 7380 | ;; |
57aa50d4 | 7381 | |
54445dc2 TT |
7382 | *,*) |
7383 | PTHREAD_CFLAGS=`echo $ax_pthread_try_flag | sed "s/^\(.*\),\(.*\)$/\1/"` | |
7384 | PTHREAD_LIBS=`echo $ax_pthread_try_flag | sed "s/^\(.*\),\(.*\)$/\2/"` | |
7385 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with \"$PTHREAD_CFLAGS\" and \"$PTHREAD_LIBS\"" >&5 | |
7386 | printf %s "checking whether pthreads work with \"$PTHREAD_CFLAGS\" and \"$PTHREAD_LIBS\"... " >&6; } | |
bdcd5f22 | 7387 | ;; |
57aa50d4 | 7388 | |
bdcd5f22 | 7389 | -*) |
54445dc2 TT |
7390 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $ax_pthread_try_flag" >&5 |
7391 | printf %s "checking whether pthreads work with $ax_pthread_try_flag... " >&6; } | |
bdcd5f22 TT |
7392 | PTHREAD_CFLAGS="$ax_pthread_try_flag" |
7393 | ;; | |
57aa50d4 | 7394 | |
bdcd5f22 TT |
7395 | pthread-config) |
7396 | # Extract the first word of "pthread-config", so it can be a program name with args. | |
7397 | set dummy pthread-config; ac_word=$2 | |
54445dc2 TT |
7398 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7399 | printf %s "checking for $ac_word... " >&6; } | |
7400 | if test ${ac_cv_prog_ax_pthread_config+y} | |
7401 | then : | |
7402 | printf %s "(cached) " >&6 | |
7403 | else $as_nop | |
bdcd5f22 TT |
7404 | if test -n "$ax_pthread_config"; then |
7405 | ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test. | |
7406 | else | |
7407 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7408 | for as_dir in $PATH | |
7409 | do | |
7410 | IFS=$as_save_IFS | |
54445dc2 TT |
7411 | case $as_dir in #((( |
7412 | '') as_dir=./ ;; | |
7413 | */) ;; | |
7414 | *) as_dir=$as_dir/ ;; | |
7415 | esac | |
bdcd5f22 | 7416 | for ac_exec_ext in '' $ac_executable_extensions; do |
54445dc2 | 7417 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
bdcd5f22 | 7418 | ac_cv_prog_ax_pthread_config="yes" |
54445dc2 | 7419 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
bdcd5f22 TT |
7420 | break 2 |
7421 | fi | |
7422 | done | |
7423 | done | |
7424 | IFS=$as_save_IFS | |
7425 | ||
7426 | test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no" | |
7427 | fi | |
7428 | fi | |
7429 | ax_pthread_config=$ac_cv_prog_ax_pthread_config | |
7430 | if test -n "$ax_pthread_config"; then | |
54445dc2 TT |
7431 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5 |
7432 | printf "%s\n" "$ax_pthread_config" >&6; } | |
bdcd5f22 | 7433 | else |
54445dc2 TT |
7434 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7435 | printf "%s\n" "no" >&6; } | |
bdcd5f22 TT |
7436 | fi |
7437 | ||
7438 | ||
54445dc2 TT |
7439 | if test "x$ax_pthread_config" = "xno" |
7440 | then : | |
bdcd5f22 TT |
7441 | continue |
7442 | fi | |
7443 | PTHREAD_CFLAGS="`pthread-config --cflags`" | |
7444 | PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`" | |
7445 | ;; | |
7446 | ||
7447 | *) | |
54445dc2 TT |
7448 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$ax_pthread_try_flag" >&5 |
7449 | printf %s "checking for the pthreads library -l$ax_pthread_try_flag... " >&6; } | |
bdcd5f22 TT |
7450 | PTHREAD_LIBS="-l$ax_pthread_try_flag" |
7451 | ;; | |
7452 | esac | |
7453 | ||
7454 | ax_pthread_save_CFLAGS="$CFLAGS" | |
7455 | ax_pthread_save_LIBS="$LIBS" | |
7456 | CFLAGS="$CFLAGS $PTHREAD_CFLAGS" | |
7457 | LIBS="$PTHREAD_LIBS $LIBS" | |
7458 | ||
7459 | # Check for various functions. We must include pthread.h, | |
7460 | # since some functions may be macros. (On the Sequent, we | |
7461 | # need a special flag -Kthread to make this header compile.) | |
7462 | # We check for pthread_join because it is in -lpthread on IRIX | |
7463 | # while pthread_create is in libc. We check for pthread_attr_init | |
7464 | # due to DEC craziness with -lpthreads. We check for | |
7465 | # pthread_cleanup_push because it is one of the few pthread | |
7466 | # functions on Solaris that doesn't have a non-functional libc stub. | |
7467 | # We try pthread_create on general principles. | |
7468 | ||
7469 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7470 | /* end confdefs.h. */ | |
7471 | #include <pthread.h> | |
7472 | # if $ax_pthread_check_cond | |
7473 | # error "$ax_pthread_check_macro must be defined" | |
7474 | # endif | |
54445dc2 TT |
7475 | static void *some_global = NULL; |
7476 | static void routine(void *a) | |
7477 | { | |
7478 | /* To avoid any unused-parameter or | |
7479 | unused-but-set-parameter warning. */ | |
7480 | some_global = a; | |
7481 | } | |
bdcd5f22 TT |
7482 | static void *start_routine(void *a) { return a; } |
7483 | int | |
54445dc2 | 7484 | main (void) |
bdcd5f22 TT |
7485 | { |
7486 | pthread_t th; pthread_attr_t attr; | |
7487 | pthread_create(&th, 0, start_routine, 0); | |
7488 | pthread_join(th, 0); | |
7489 | pthread_attr_init(&attr); | |
7490 | pthread_cleanup_push(routine, 0); | |
7491 | pthread_cleanup_pop(0) /* ; */ | |
7492 | ; | |
7493 | return 0; | |
7494 | } | |
7495 | _ACEOF | |
54445dc2 TT |
7496 | if ac_fn_c_try_link "$LINENO" |
7497 | then : | |
bdcd5f22 TT |
7498 | ax_pthread_ok=yes |
7499 | fi | |
54445dc2 | 7500 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
bdcd5f22 TT |
7501 | conftest$ac_exeext conftest.$ac_ext |
7502 | ||
7503 | CFLAGS="$ax_pthread_save_CFLAGS" | |
7504 | LIBS="$ax_pthread_save_LIBS" | |
7505 | ||
54445dc2 TT |
7506 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5 |
7507 | printf "%s\n" "$ax_pthread_ok" >&6; } | |
7508 | if test "x$ax_pthread_ok" = "xyes" | |
7509 | then : | |
bdcd5f22 TT |
7510 | break |
7511 | fi | |
7512 | ||
7513 | PTHREAD_LIBS="" | |
7514 | PTHREAD_CFLAGS="" | |
7515 | done | |
7516 | fi | |
7517 | ||
54445dc2 TT |
7518 | |
7519 | # Clang needs special handling, because older versions handle the -pthread | |
7520 | # option in a rather... idiosyncratic way | |
7521 | ||
7522 | if test "x$ax_pthread_clang" = "xyes"; then | |
7523 | ||
7524 | # Clang takes -pthread; it has never supported any other flag | |
7525 | ||
7526 | # (Note 1: This will need to be revisited if a system that Clang | |
7527 | # supports has POSIX threads in a separate library. This tends not | |
7528 | # to be the way of modern systems, but it's conceivable.) | |
7529 | ||
7530 | # (Note 2: On some systems, notably Darwin, -pthread is not needed | |
7531 | # to get POSIX threads support; the API is always present and | |
7532 | # active. We could reasonably leave PTHREAD_CFLAGS empty. But | |
7533 | # -pthread does define _REENTRANT, and while the Darwin headers | |
7534 | # ignore this macro, third-party headers might not.) | |
7535 | ||
7536 | # However, older versions of Clang make a point of warning the user | |
7537 | # that, in an invocation where only linking and no compilation is | |
7538 | # taking place, the -pthread option has no effect ("argument unused | |
7539 | # during compilation"). They expect -pthread to be passed in only | |
7540 | # when source code is being compiled. | |
7541 | # | |
7542 | # Problem is, this is at odds with the way Automake and most other | |
7543 | # C build frameworks function, which is that the same flags used in | |
7544 | # compilation (CFLAGS) are also used in linking. Many systems | |
7545 | # supported by AX_PTHREAD require exactly this for POSIX threads | |
7546 | # support, and in fact it is often not straightforward to specify a | |
7547 | # flag that is used only in the compilation phase and not in | |
7548 | # linking. Such a scenario is extremely rare in practice. | |
7549 | # | |
7550 | # Even though use of the -pthread flag in linking would only print | |
7551 | # a warning, this can be a nuisance for well-run software projects | |
7552 | # that build with -Werror. So if the active version of Clang has | |
7553 | # this misfeature, we search for an option to squash it. | |
7554 | ||
7555 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread" >&5 | |
7556 | printf %s "checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread... " >&6; } | |
7557 | if test ${ax_cv_PTHREAD_CLANG_NO_WARN_FLAG+y} | |
7558 | then : | |
7559 | printf %s "(cached) " >&6 | |
7560 | else $as_nop | |
7561 | ax_cv_PTHREAD_CLANG_NO_WARN_FLAG=unknown | |
7562 | # Create an alternate version of $ac_link that compiles and | |
7563 | # links in two steps (.c -> .o, .o -> exe) instead of one | |
7564 | # (.c -> exe), because the warning occurs only in the second | |
7565 | # step | |
7566 | ax_pthread_save_ac_link="$ac_link" | |
7567 | ax_pthread_sed='s/conftest\.\$ac_ext/conftest.$ac_objext/g' | |
7568 | ax_pthread_link_step=`printf "%s\n" "$ac_link" | sed "$ax_pthread_sed"` | |
7569 | ax_pthread_2step_ac_link="($ac_compile) && (echo ==== >&5) && ($ax_pthread_link_step)" | |
7570 | ax_pthread_save_CFLAGS="$CFLAGS" | |
7571 | for ax_pthread_try in '' -Qunused-arguments -Wno-unused-command-line-argument unknown; do | |
7572 | if test "x$ax_pthread_try" = "xunknown" | |
7573 | then : | |
7574 | break | |
7575 | fi | |
7576 | CFLAGS="-Werror -Wunknown-warning-option $ax_pthread_try -pthread $ax_pthread_save_CFLAGS" | |
7577 | ac_link="$ax_pthread_save_ac_link" | |
7578 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7579 | /* end confdefs.h. */ | |
7580 | int main(void){return 0;} | |
7581 | _ACEOF | |
7582 | if ac_fn_c_try_link "$LINENO" | |
7583 | then : | |
7584 | ac_link="$ax_pthread_2step_ac_link" | |
7585 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7586 | /* end confdefs.h. */ | |
7587 | int main(void){return 0;} | |
7588 | _ACEOF | |
7589 | if ac_fn_c_try_link "$LINENO" | |
7590 | then : | |
7591 | break | |
7592 | fi | |
7593 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ | |
7594 | conftest$ac_exeext conftest.$ac_ext | |
7595 | ||
7596 | fi | |
7597 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ | |
7598 | conftest$ac_exeext conftest.$ac_ext | |
7599 | done | |
7600 | ac_link="$ax_pthread_save_ac_link" | |
7601 | CFLAGS="$ax_pthread_save_CFLAGS" | |
7602 | if test "x$ax_pthread_try" = "x" | |
7603 | then : | |
7604 | ax_pthread_try=no | |
7605 | fi | |
7606 | ax_cv_PTHREAD_CLANG_NO_WARN_FLAG="$ax_pthread_try" | |
7607 | ||
7608 | fi | |
7609 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&5 | |
7610 | printf "%s\n" "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&6; } | |
7611 | ||
7612 | case "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" in | |
7613 | no | unknown) ;; | |
7614 | *) PTHREAD_CFLAGS="$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG $PTHREAD_CFLAGS" ;; | |
7615 | esac | |
7616 | ||
7617 | fi # $ax_pthread_clang = yes | |
7618 | ||
7619 | ||
7620 | ||
bdcd5f22 TT |
7621 | # Various other checks: |
7622 | if test "x$ax_pthread_ok" = "xyes"; then | |
7623 | ax_pthread_save_CFLAGS="$CFLAGS" | |
7624 | ax_pthread_save_LIBS="$LIBS" | |
7625 | CFLAGS="$CFLAGS $PTHREAD_CFLAGS" | |
7626 | LIBS="$PTHREAD_LIBS $LIBS" | |
7627 | ||
7628 | # Detect AIX lossage: JOINABLE attribute is called UNDETACHED. | |
54445dc2 TT |
7629 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5 |
7630 | printf %s "checking for joinable pthread attribute... " >&6; } | |
7631 | if test ${ax_cv_PTHREAD_JOINABLE_ATTR+y} | |
7632 | then : | |
7633 | printf %s "(cached) " >&6 | |
7634 | else $as_nop | |
bdcd5f22 TT |
7635 | ax_cv_PTHREAD_JOINABLE_ATTR=unknown |
7636 | for ax_pthread_attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do | |
7637 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7638 | /* end confdefs.h. */ | |
7639 | #include <pthread.h> | |
7640 | int | |
54445dc2 | 7641 | main (void) |
bdcd5f22 TT |
7642 | { |
7643 | int attr = $ax_pthread_attr; return attr /* ; */ | |
7644 | ; | |
7645 | return 0; | |
7646 | } | |
7647 | _ACEOF | |
54445dc2 TT |
7648 | if ac_fn_c_try_link "$LINENO" |
7649 | then : | |
bdcd5f22 TT |
7650 | ax_cv_PTHREAD_JOINABLE_ATTR=$ax_pthread_attr; break |
7651 | fi | |
54445dc2 | 7652 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
bdcd5f22 TT |
7653 | conftest$ac_exeext conftest.$ac_ext |
7654 | done | |
7655 | ||
7656 | fi | |
54445dc2 TT |
7657 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_JOINABLE_ATTR" >&5 |
7658 | printf "%s\n" "$ax_cv_PTHREAD_JOINABLE_ATTR" >&6; } | |
bdcd5f22 TT |
7659 | if test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xunknown" && \ |
7660 | test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xPTHREAD_CREATE_JOINABLE" && \ | |
54445dc2 TT |
7661 | test "x$ax_pthread_joinable_attr_defined" != "xyes" |
7662 | then : | |
bdcd5f22 | 7663 | |
54445dc2 | 7664 | printf "%s\n" "#define PTHREAD_CREATE_JOINABLE $ax_cv_PTHREAD_JOINABLE_ATTR" >>confdefs.h |
bdcd5f22 TT |
7665 | |
7666 | ax_pthread_joinable_attr_defined=yes | |
7667 | ||
7668 | fi | |
7669 | ||
54445dc2 TT |
7670 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether more special flags are required for pthreads" >&5 |
7671 | printf %s "checking whether more special flags are required for pthreads... " >&6; } | |
7672 | if test ${ax_cv_PTHREAD_SPECIAL_FLAGS+y} | |
7673 | then : | |
7674 | printf %s "(cached) " >&6 | |
7675 | else $as_nop | |
bdcd5f22 TT |
7676 | ax_cv_PTHREAD_SPECIAL_FLAGS=no |
7677 | case $host_os in | |
7678 | solaris*) | |
7679 | ax_cv_PTHREAD_SPECIAL_FLAGS="-D_POSIX_PTHREAD_SEMANTICS" | |
7680 | ;; | |
7681 | esac | |
7682 | ||
7683 | fi | |
54445dc2 TT |
7684 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_SPECIAL_FLAGS" >&5 |
7685 | printf "%s\n" "$ax_cv_PTHREAD_SPECIAL_FLAGS" >&6; } | |
bdcd5f22 | 7686 | if test "x$ax_cv_PTHREAD_SPECIAL_FLAGS" != "xno" && \ |
54445dc2 TT |
7687 | test "x$ax_pthread_special_flags_added" != "xyes" |
7688 | then : | |
bdcd5f22 TT |
7689 | PTHREAD_CFLAGS="$ax_cv_PTHREAD_SPECIAL_FLAGS $PTHREAD_CFLAGS" |
7690 | ax_pthread_special_flags_added=yes | |
7691 | fi | |
7692 | ||
54445dc2 TT |
7693 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5 |
7694 | printf %s "checking for PTHREAD_PRIO_INHERIT... " >&6; } | |
7695 | if test ${ax_cv_PTHREAD_PRIO_INHERIT+y} | |
7696 | then : | |
7697 | printf %s "(cached) " >&6 | |
7698 | else $as_nop | |
bdcd5f22 TT |
7699 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7700 | /* end confdefs.h. */ | |
7701 | #include <pthread.h> | |
7702 | int | |
54445dc2 | 7703 | main (void) |
bdcd5f22 TT |
7704 | { |
7705 | int i = PTHREAD_PRIO_INHERIT; | |
54445dc2 | 7706 | return i; |
bdcd5f22 TT |
7707 | ; |
7708 | return 0; | |
7709 | } | |
7710 | _ACEOF | |
54445dc2 TT |
7711 | if ac_fn_c_try_link "$LINENO" |
7712 | then : | |
bdcd5f22 | 7713 | ax_cv_PTHREAD_PRIO_INHERIT=yes |
54445dc2 | 7714 | else $as_nop |
bdcd5f22 TT |
7715 | ax_cv_PTHREAD_PRIO_INHERIT=no |
7716 | fi | |
54445dc2 | 7717 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
bdcd5f22 TT |
7718 | conftest$ac_exeext conftest.$ac_ext |
7719 | ||
7720 | fi | |
54445dc2 TT |
7721 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5 |
7722 | printf "%s\n" "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; } | |
bdcd5f22 | 7723 | if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes" && \ |
54445dc2 TT |
7724 | test "x$ax_pthread_prio_inherit_defined" != "xyes" |
7725 | then : | |
bdcd5f22 | 7726 | |
54445dc2 | 7727 | printf "%s\n" "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h |
bdcd5f22 TT |
7728 | |
7729 | ax_pthread_prio_inherit_defined=yes | |
7730 | ||
7731 | fi | |
7732 | ||
7733 | CFLAGS="$ax_pthread_save_CFLAGS" | |
7734 | LIBS="$ax_pthread_save_LIBS" | |
7735 | ||
7736 | # More AIX lossage: compile with *_r variant | |
7737 | if test "x$GCC" != "xyes"; then | |
7738 | case $host_os in | |
7739 | aix*) | |
7740 | case "x/$CC" in #( | |
7741 | x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) : | |
7742 | #handle absolute path differently from PATH based program lookup | |
7743 | case "x$CC" in #( | |
7744 | x/*) : | |
54445dc2 TT |
7745 | |
7746 | if as_fn_executable_p ${CC}_r | |
7747 | then : | |
bdcd5f22 | 7748 | PTHREAD_CC="${CC}_r" |
54445dc2 TT |
7749 | fi |
7750 | if test "x${CXX}" != "x" | |
7751 | then : | |
7752 | if as_fn_executable_p ${CXX}_r | |
7753 | then : | |
7754 | PTHREAD_CXX="${CXX}_r" | |
7755 | fi | |
7756 | fi | |
7757 | ;; #( | |
bdcd5f22 | 7758 | *) : |
54445dc2 TT |
7759 | |
7760 | for ac_prog in ${CC}_r | |
bdcd5f22 TT |
7761 | do |
7762 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
7763 | set dummy $ac_prog; ac_word=$2 | |
54445dc2 TT |
7764 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7765 | printf %s "checking for $ac_word... " >&6; } | |
7766 | if test ${ac_cv_prog_PTHREAD_CC+y} | |
7767 | then : | |
7768 | printf %s "(cached) " >&6 | |
7769 | else $as_nop | |
bdcd5f22 TT |
7770 | if test -n "$PTHREAD_CC"; then |
7771 | ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test. | |
7772 | else | |
7773 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7774 | for as_dir in $PATH | |
7775 | do | |
7776 | IFS=$as_save_IFS | |
54445dc2 TT |
7777 | case $as_dir in #((( |
7778 | '') as_dir=./ ;; | |
7779 | */) ;; | |
7780 | *) as_dir=$as_dir/ ;; | |
7781 | esac | |
bdcd5f22 | 7782 | for ac_exec_ext in '' $ac_executable_extensions; do |
54445dc2 | 7783 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
bdcd5f22 | 7784 | ac_cv_prog_PTHREAD_CC="$ac_prog" |
54445dc2 | 7785 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
bdcd5f22 TT |
7786 | break 2 |
7787 | fi | |
7788 | done | |
7789 | done | |
7790 | IFS=$as_save_IFS | |
7791 | ||
7792 | fi | |
7793 | fi | |
7794 | PTHREAD_CC=$ac_cv_prog_PTHREAD_CC | |
7795 | if test -n "$PTHREAD_CC"; then | |
54445dc2 TT |
7796 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5 |
7797 | printf "%s\n" "$PTHREAD_CC" >&6; } | |
bdcd5f22 | 7798 | else |
54445dc2 TT |
7799 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7800 | printf "%s\n" "no" >&6; } | |
bdcd5f22 TT |
7801 | fi |
7802 | ||
7803 | ||
7804 | test -n "$PTHREAD_CC" && break | |
7805 | done | |
7806 | test -n "$PTHREAD_CC" || PTHREAD_CC="$CC" | |
54445dc2 TT |
7807 | |
7808 | if test "x${CXX}" != "x" | |
7809 | then : | |
7810 | for ac_prog in ${CXX}_r | |
7811 | do | |
7812 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
7813 | set dummy $ac_prog; ac_word=$2 | |
7814 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7815 | printf %s "checking for $ac_word... " >&6; } | |
7816 | if test ${ac_cv_prog_PTHREAD_CXX+y} | |
7817 | then : | |
7818 | printf %s "(cached) " >&6 | |
7819 | else $as_nop | |
7820 | if test -n "$PTHREAD_CXX"; then | |
7821 | ac_cv_prog_PTHREAD_CXX="$PTHREAD_CXX" # Let the user override the test. | |
7822 | else | |
7823 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7824 | for as_dir in $PATH | |
7825 | do | |
7826 | IFS=$as_save_IFS | |
7827 | case $as_dir in #((( | |
7828 | '') as_dir=./ ;; | |
7829 | */) ;; | |
7830 | *) as_dir=$as_dir/ ;; | |
7831 | esac | |
7832 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7833 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then | |
7834 | ac_cv_prog_PTHREAD_CXX="$ac_prog" | |
7835 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 | |
7836 | break 2 | |
7837 | fi | |
7838 | done | |
7839 | done | |
7840 | IFS=$as_save_IFS | |
7841 | ||
7842 | fi | |
7843 | fi | |
7844 | PTHREAD_CXX=$ac_cv_prog_PTHREAD_CXX | |
7845 | if test -n "$PTHREAD_CXX"; then | |
7846 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CXX" >&5 | |
7847 | printf "%s\n" "$PTHREAD_CXX" >&6; } | |
7848 | else | |
7849 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7850 | printf "%s\n" "no" >&6; } | |
7851 | fi | |
7852 | ||
7853 | ||
7854 | test -n "$PTHREAD_CXX" && break | |
7855 | done | |
7856 | test -n "$PTHREAD_CXX" || PTHREAD_CXX="$CXX" | |
7857 | ||
7858 | fi | |
7859 | ||
7860 | ;; | |
7861 | esac | |
7862 | ;; #( | |
bdcd5f22 TT |
7863 | *) : |
7864 | ;; | |
7865 | esac | |
7866 | ;; | |
7867 | esac | |
7868 | fi | |
7869 | fi | |
7870 | ||
7871 | test -n "$PTHREAD_CC" || PTHREAD_CC="$CC" | |
54445dc2 TT |
7872 | test -n "$PTHREAD_CXX" || PTHREAD_CXX="$CXX" |
7873 | ||
bdcd5f22 TT |
7874 | |
7875 | ||
7876 | ||
7877 | ||
7878 | ||
7879 | # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND: | |
7880 | if test "x$ax_pthread_ok" = "xyes"; then | |
7881 | ||
54445dc2 | 7882 | printf "%s\n" "#define HAVE_PTHREAD 1" >>confdefs.h |
bdcd5f22 TT |
7883 | |
7884 | : | |
7885 | else | |
7886 | ax_pthread_ok=no | |
7887 | ||
7888 | fi | |
7889 | ac_ext=c | |
7890 | ac_cpp='$CPP $CPPFLAGS' | |
7891 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
7892 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
7893 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
7894 | ||
7895 | ||
7896 | else | |
7897 | test -n "$PTHREAD_CC" || PTHREAD_CC="$CC" | |
7898 | ||
7899 | fi | |
7900 | ||
7901 | # Check whether --enable-uuidd was given. | |
54445dc2 TT |
7902 | if test ${enable_uuidd+y} |
7903 | then : | |
bdcd5f22 TT |
7904 | enableval=$enable_uuidd; if test "$enableval" = "no" |
7905 | then | |
54445dc2 TT |
7906 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Not building uuidd" >&5 |
7907 | printf "%s\n" "Not building uuidd" >&6; } | |
bdcd5f22 TT |
7908 | UUIDD_CMT="#" |
7909 | else | |
54445dc2 | 7910 | printf "%s\n" "#define USE_UUIDD 1" >>confdefs.h |
bdcd5f22 TT |
7911 | |
7912 | UUIDD_CMT="" | |
54445dc2 TT |
7913 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Building uuidd" >&5 |
7914 | printf "%s\n" "Building uuidd" >&6; } | |
bdcd5f22 TT |
7915 | fi |
7916 | ||
54445dc2 TT |
7917 | else $as_nop |
7918 | printf "%s\n" "#define USE_UUIDD 1" >>confdefs.h | |
bdcd5f22 TT |
7919 | |
7920 | if test -z "$UUID_CMT" | |
7921 | then | |
7922 | UUIDD_CMT="" | |
54445dc2 TT |
7923 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Building uuidd by default" >&5 |
7924 | printf "%s\n" "Building uuidd by default" >&6; } | |
bdcd5f22 TT |
7925 | else |
7926 | UUIDD_CMT="#" | |
54445dc2 TT |
7927 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling uuidd by default" >&5 |
7928 | printf "%s\n" "Disabling uuidd by default" >&6; } | |
bdcd5f22 TT |
7929 | fi |
7930 | ||
7931 | fi | |
7932 | ||
7933 | ||
7934 | ||
7935 | # Check whether --enable-mmp was given. | |
54445dc2 TT |
7936 | if test ${enable_mmp+y} |
7937 | then : | |
bdcd5f22 TT |
7938 | enableval=$enable_mmp; if test "$enableval" = "no" |
7939 | then | |
54445dc2 TT |
7940 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling mmp support" >&5 |
7941 | printf "%s\n" "Disabling mmp support" >&6; } | |
bdcd5f22 | 7942 | else |
54445dc2 TT |
7943 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling mmp support" >&5 |
7944 | printf "%s\n" "Enabling mmp support" >&6; } | |
7945 | printf "%s\n" "#define CONFIG_MMP 1" >>confdefs.h | |
bdcd5f22 TT |
7946 | |
7947 | fi | |
7948 | ||
54445dc2 TT |
7949 | else $as_nop |
7950 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling mmp support by default" >&5 | |
7951 | printf "%s\n" "Enabling mmp support by default" >&6; } | |
7952 | printf "%s\n" "#define CONFIG_MMP 1" >>confdefs.h | |
bdcd5f22 TT |
7953 | |
7954 | ||
7955 | fi | |
7956 | ||
7957 | ||
7958 | # Check whether --enable-tdb was given. | |
54445dc2 TT |
7959 | if test ${enable_tdb+y} |
7960 | then : | |
6eb00fb7 EB |
7961 | enableval=$enable_tdb; |
7962 | if test "$enableval" = "no" | |
bdcd5f22 | 7963 | then |
54445dc2 TT |
7964 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling tdb support" >&5 |
7965 | printf "%s\n" "Disabling tdb support" >&6; } | |
6eb00fb7 | 7966 | CONFIG_TDB=0 |
bdcd5f22 | 7967 | else |
54445dc2 TT |
7968 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling tdb support" >&5 |
7969 | printf "%s\n" "Enabling tdb support" >&6; } | |
6eb00fb7 | 7970 | CONFIG_TDB=1 |
bdcd5f22 TT |
7971 | fi |
7972 | ||
6eb00fb7 | 7973 | |
54445dc2 | 7974 | else $as_nop |
bdcd5f22 | 7975 | |
6eb00fb7 EB |
7976 | case "$host_os" in |
7977 | mingw*) | |
7978 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling tdb support by default" >&5 | |
7979 | printf "%s\n" "Disabling tdb support by default" >&6; } | |
7980 | CONFIG_TDB=0 | |
7981 | ;; | |
7982 | *) | |
7983 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling tdb support by default" >&5 | |
7984 | printf "%s\n" "Enabling tdb support by default" >&6; } | |
7985 | CONFIG_TDB=1 | |
7986 | ;; | |
7987 | esac | |
7988 | ||
bdcd5f22 TT |
7989 | |
7990 | fi | |
7991 | ||
6eb00fb7 EB |
7992 | if test "$CONFIG_TDB" = "1" |
7993 | then | |
7994 | printf "%s\n" "#define CONFIG_TDB 1" >>confdefs.h | |
7995 | ||
7996 | TDB_CMT="" | |
7997 | TDB_MAN_COMMENT="" | |
7998 | else | |
7999 | TDB_CMT="#" | |
8000 | TDB_MAN_COMMENT='.\"' | |
8001 | fi | |
bdcd5f22 TT |
8002 | |
8003 | ||
8004 | ||
8005 | # Check whether --enable-bmap-stats was given. | |
54445dc2 TT |
8006 | if test ${enable_bmap_stats+y} |
8007 | then : | |
bdcd5f22 TT |
8008 | enableval=$enable_bmap_stats; if test "$enableval" = "no" |
8009 | then | |
54445dc2 TT |
8010 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling bitmap statistics support" >&5 |
8011 | printf "%s\n" "Disabling bitmap statistics support" >&6; } | |
bdcd5f22 | 8012 | else |
54445dc2 TT |
8013 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling bitmap statistics support" >&5 |
8014 | printf "%s\n" "Enabling bitmap statistics support" >&6; } | |
8015 | printf "%s\n" "#define ENABLE_BMAP_STATS 1" >>confdefs.h | |
bdcd5f22 TT |
8016 | |
8017 | fi | |
8018 | ||
54445dc2 TT |
8019 | else $as_nop |
8020 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling bitmap statistics support by default" >&5 | |
8021 | printf "%s\n" "Enabling bitmap statistics support by default" >&6; } | |
8022 | printf "%s\n" "#define ENABLE_BMAP_STATS 1" >>confdefs.h | |
bdcd5f22 TT |
8023 | |
8024 | ||
8025 | fi | |
8026 | ||
8027 | ||
8028 | # Check whether --enable-bmap-stats-ops was given. | |
54445dc2 TT |
8029 | if test ${enable_bmap_stats_ops+y} |
8030 | then : | |
bdcd5f22 TT |
8031 | enableval=$enable_bmap_stats_ops; if test "$enableval" = "no" |
8032 | then | |
54445dc2 TT |
8033 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling additional bitmap statistics" >&5 |
8034 | printf "%s\n" "Disabling additional bitmap statistics" >&6; } | |
bdcd5f22 | 8035 | else |
54445dc2 TT |
8036 | if test "x${enable_bmap_stats}" = "xno" |
8037 | then : | |
8038 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
8039 | printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} | |
bdcd5f22 TT |
8040 | as_fn_error $? "Error --enable-bmap-stats-ops requires bmap-stats |
8041 | See \`config.log' for more details" "$LINENO" 5; } | |
8042 | fi | |
8043 | ||
54445dc2 TT |
8044 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling additional bitmap statistics" >&5 |
8045 | printf "%s\n" "Enabling additional bitmap statistics" >&6; } | |
8046 | printf "%s\n" "#define ENABLE_BMAP_STATS_OPS 1" >>confdefs.h | |
bdcd5f22 TT |
8047 | |
8048 | fi | |
8049 | ||
54445dc2 TT |
8050 | else $as_nop |
8051 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling additional bitmap statistics by default" >&5 | |
8052 | printf "%s\n" "Disabling additional bitmap statistics by default" >&6; } | |
bdcd5f22 TT |
8053 | |
8054 | fi | |
8055 | ||
8056 | MAKEFILE_LIBRARY=$srcdir/lib/Makefile.library | |
8057 | ||
8058 | GETTEXT_PACKAGE=e2fsprogs | |
8059 | PACKAGE=e2fsprogs | |
8060 | VERSION="$E2FSPROGS_VERSION" | |
8061 | VERSION=0.14.1 | |
8062 | ||
54445dc2 | 8063 | printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h |
bdcd5f22 TT |
8064 | |
8065 | ||
54445dc2 | 8066 | printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h |
bdcd5f22 TT |
8067 | |
8068 | ||
8069 | ||
8070 | ||
8071 | ||
54445dc2 TT |
8072 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
8073 | printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } | |
bdcd5f22 | 8074 | set x ${MAKE-make} |
54445dc2 TT |
8075 | ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` |
8076 | if eval test \${ac_cv_prog_make_${ac_make}_set+y} | |
8077 | then : | |
8078 | printf %s "(cached) " >&6 | |
8079 | else $as_nop | |
bdcd5f22 TT |
8080 | cat >conftest.make <<\_ACEOF |
8081 | SHELL = /bin/sh | |
8082 | all: | |
8083 | @echo '@@@%%%=$(MAKE)=@@@%%%' | |
8084 | _ACEOF | |
8085 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. | |
8086 | case `${MAKE-make} -f conftest.make 2>/dev/null` in | |
8087 | *@@@%%%=?*=@@@%%%*) | |
8088 | eval ac_cv_prog_make_${ac_make}_set=yes;; | |
8089 | *) | |
8090 | eval ac_cv_prog_make_${ac_make}_set=no;; | |
8091 | esac | |
57aa50d4 TT |
8092 | rm -f conftest.make |
8093 | fi | |
8094 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then | |
54445dc2 TT |
8095 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
8096 | printf "%s\n" "yes" >&6; } | |
57aa50d4 | 8097 | SET_MAKE= |
39fd3d4f | 8098 | else |
54445dc2 TT |
8099 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8100 | printf "%s\n" "no" >&6; } | |
57aa50d4 | 8101 | SET_MAKE="MAKE=${MAKE-make}" |
39fd3d4f SJR |
8102 | fi |
8103 | ||
54445dc2 TT |
8104 | |
8105 | # Find a good install program. We prefer a C program (faster), | |
57aa50d4 TT |
8106 | # so one script is as good as another. But avoid the broken or |
8107 | # incompatible versions: | |
8108 | # SysV /etc/install, /usr/sbin/install | |
8109 | # SunOS /usr/etc/install | |
8110 | # IRIX /sbin/install | |
8111 | # AIX /bin/install | |
8112 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
8113 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
8114 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
8115 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
8116 | # OS/2's system install, which has a completely different semantic | |
8117 | # ./install, which can be erroneously created by make from ./install.sh. | |
8118 | # Reject install programs that cannot install multiple files. | |
54445dc2 TT |
8119 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 |
8120 | printf %s "checking for a BSD-compatible install... " >&6; } | |
57aa50d4 | 8121 | if test -z "$INSTALL"; then |
54445dc2 TT |
8122 | if test ${ac_cv_path_install+y} |
8123 | then : | |
8124 | printf %s "(cached) " >&6 | |
8125 | else $as_nop | |
57aa50d4 TT |
8126 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8127 | for as_dir in $PATH | |
8128 | do | |
8129 | IFS=$as_save_IFS | |
54445dc2 TT |
8130 | case $as_dir in #((( |
8131 | '') as_dir=./ ;; | |
8132 | */) ;; | |
8133 | *) as_dir=$as_dir/ ;; | |
8134 | esac | |
8135 | # Account for fact that we put trailing slashes in our PATH walk. | |
8136 | case $as_dir in #(( | |
8137 | ./ | /[cC]/* | \ | |
57aa50d4 TT |
8138 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
8139 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ | |
8140 | /usr/ucb/* ) ;; | |
8141 | *) | |
8142 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
8143 | # Don't use installbsd from OSF since it installs stuff as root | |
8144 | # by default. | |
8145 | for ac_prog in ginstall scoinst install; do | |
8146 | for ac_exec_ext in '' $ac_executable_extensions; do | |
54445dc2 | 8147 | if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then |
57aa50d4 | 8148 | if test $ac_prog = install && |
54445dc2 | 8149 | grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
57aa50d4 TT |
8150 | # AIX install. It has an incompatible calling convention. |
8151 | : | |
8152 | elif test $ac_prog = install && | |
54445dc2 | 8153 | grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
57aa50d4 TT |
8154 | # program-specific install script used by HP pwplus--don't use. |
8155 | : | |
8156 | else | |
8157 | rm -rf conftest.one conftest.two conftest.dir | |
8158 | echo one > conftest.one | |
8159 | echo two > conftest.two | |
8160 | mkdir conftest.dir | |
54445dc2 | 8161 | if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" && |
57aa50d4 TT |
8162 | test -s conftest.one && test -s conftest.two && |
8163 | test -s conftest.dir/conftest.one && | |
8164 | test -s conftest.dir/conftest.two | |
8165 | then | |
54445dc2 | 8166 | ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c" |
57aa50d4 TT |
8167 | break 3 |
8168 | fi | |
8169 | fi | |
8170 | fi | |
8171 | done | |
8172 | done | |
8173 | ;; | |
8174 | esac | |
8175 | ||
8176 | done | |
8177 | IFS=$as_save_IFS | |
b0cacab0 | 8178 | |
57aa50d4 | 8179 | rm -rf conftest.one conftest.two conftest.dir |
39fd3d4f | 8180 | |
93636bde | 8181 | fi |
54445dc2 | 8182 | if test ${ac_cv_path_install+y}; then |
57aa50d4 TT |
8183 | INSTALL=$ac_cv_path_install |
8184 | else | |
8185 | # As a last resort, use the slow shell script. Don't cache a | |
8186 | # value for INSTALL within a source directory, because that will | |
8187 | # break other packages using the cache if that directory is | |
8188 | # removed, or if the value is a relative name. | |
8189 | INSTALL=$ac_install_sh | |
8190 | fi | |
93636bde | 8191 | fi |
54445dc2 TT |
8192 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 |
8193 | printf "%s\n" "$INSTALL" >&6; } | |
a64c9c13 | 8194 | |
57aa50d4 TT |
8195 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
8196 | # It thinks the first close brace ends the variable substitution. | |
8197 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
b0cacab0 | 8198 | |
57aa50d4 | 8199 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
a64c9c13 | 8200 | |
57aa50d4 | 8201 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
39fd3d4f | 8202 | |
54445dc2 TT |
8203 | |
8204 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5 | |
8205 | printf %s "checking for a race-free mkdir -p... " >&6; } | |
93613951 | 8206 | if test -z "$MKDIR_P"; then |
54445dc2 TT |
8207 | if test ${ac_cv_path_mkdir+y} |
8208 | then : | |
8209 | printf %s "(cached) " >&6 | |
8210 | else $as_nop | |
93613951 TT |
8211 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8212 | for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin | |
8213 | do | |
8214 | IFS=$as_save_IFS | |
54445dc2 TT |
8215 | case $as_dir in #((( |
8216 | '') as_dir=./ ;; | |
8217 | */) ;; | |
8218 | *) as_dir=$as_dir/ ;; | |
8219 | esac | |
93613951 TT |
8220 | for ac_prog in mkdir gmkdir; do |
8221 | for ac_exec_ext in '' $ac_executable_extensions; do | |
54445dc2 TT |
8222 | as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue |
8223 | case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #( | |
8224 | 'mkdir ('*'coreutils) '* | \ | |
8225 | 'BusyBox '* | \ | |
93613951 | 8226 | 'mkdir (fileutils) '4.1*) |
54445dc2 | 8227 | ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext |
93613951 TT |
8228 | break 3;; |
8229 | esac | |
8230 | done | |
8231 | done | |
8232 | done | |
8233 | IFS=$as_save_IFS | |
8234 | ||
8235 | fi | |
39fd3d4f | 8236 | |
93613951 | 8237 | test -d ./--version && rmdir ./--version |
54445dc2 | 8238 | if test ${ac_cv_path_mkdir+y}; then |
93613951 TT |
8239 | MKDIR_P="$ac_cv_path_mkdir -p" |
8240 | else | |
8241 | # As a last resort, use the slow shell script. Don't cache a | |
8242 | # value for MKDIR_P within a source directory, because that will | |
8243 | # break other packages using the cache if that directory is | |
8244 | # removed, or if the value is a relative name. | |
8245 | MKDIR_P="$ac_install_sh -d" | |
57aa50d4 | 8246 | fi |
93613951 | 8247 | fi |
54445dc2 TT |
8248 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 |
8249 | printf "%s\n" "$MKDIR_P" >&6; } | |
93613951 | 8250 | |
e1052144 | 8251 | |
54445dc2 TT |
8252 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5 |
8253 | printf %s "checking whether NLS is requested... " >&6; } | |
57aa50d4 | 8254 | # Check whether --enable-nls was given. |
54445dc2 TT |
8255 | if test ${enable_nls+y} |
8256 | then : | |
57aa50d4 | 8257 | enableval=$enable_nls; USE_NLS=$enableval |
54445dc2 | 8258 | else $as_nop |
57aa50d4 TT |
8259 | USE_NLS=yes |
8260 | fi | |
b0cacab0 | 8261 | |
54445dc2 TT |
8262 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5 |
8263 | printf "%s\n" "$USE_NLS" >&6; } | |
93636bde | 8264 | |
a64c9c13 | 8265 | |
a64c9c13 | 8266 | |
b0cacab0 | 8267 | |
bdcd5f22 | 8268 | GETTEXT_MACRO_VERSION=0.20 |
93613951 TT |
8269 | |
8270 | ||
b0cacab0 | 8271 | |
a64c9c13 | 8272 | |
57aa50d4 TT |
8273 | # Prepare PATH_SEPARATOR. |
8274 | # The user is always right. | |
8275 | if test "${PATH_SEPARATOR+set}" != set; then | |
93613951 TT |
8276 | # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which |
8277 | # contains only /bin. Note that ksh looks also at the FPATH variable, | |
8278 | # so we have to set that as well for the test. | |
8279 | PATH_SEPARATOR=: | |
8280 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ | |
8281 | && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ | |
8282 | || PATH_SEPARATOR=';' | |
8283 | } | |
57aa50d4 | 8284 | fi |
b0cacab0 | 8285 | |
57aa50d4 TT |
8286 | # Find out how to test for executable files. Don't use a zero-byte file, |
8287 | # as systems may use methods other than mode bits to determine executability. | |
8288 | cat >conf$$.file <<_ASEOF | |
8289 | #! /bin/sh | |
8290 | exit 0 | |
8291 | _ASEOF | |
8292 | chmod +x conf$$.file | |
8293 | if test -x conf$$.file >/dev/null 2>&1; then | |
8294 | ac_executable_p="test -x" | |
8295 | else | |
8296 | ac_executable_p="test -f" | |
8297 | fi | |
8298 | rm -f conf$$.file | |
b0cacab0 | 8299 | |
57aa50d4 TT |
8300 | # Extract the first word of "msgfmt", so it can be a program name with args. |
8301 | set dummy msgfmt; ac_word=$2 | |
54445dc2 TT |
8302 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8303 | printf %s "checking for $ac_word... " >&6; } | |
8304 | if test ${ac_cv_path_MSGFMT+y} | |
8305 | then : | |
8306 | printf %s "(cached) " >&6 | |
8307 | else $as_nop | |
57aa50d4 TT |
8308 | case "$MSGFMT" in |
8309 | [\\/]* | ?:[\\/]*) | |
8310 | ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. | |
8311 | ;; | |
8312 | *) | |
8313 | ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR | |
8314 | for ac_dir in $PATH; do | |
8315 | IFS="$ac_save_IFS" | |
8316 | test -z "$ac_dir" && ac_dir=. | |
8317 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8318 | if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then | |
93613951 TT |
8319 | echo "$as_me: trying $ac_dir/$ac_word..." >&5 |
8320 | if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 && | |
57aa50d4 TT |
8321 | (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then |
8322 | ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext" | |
8323 | break 2 | |
8324 | fi | |
8325 | fi | |
8326 | done | |
8327 | done | |
8328 | IFS="$ac_save_IFS" | |
8329 | test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":" | |
8330 | ;; | |
e1052144 | 8331 | esac |
b0cacab0 | 8332 | fi |
57aa50d4 TT |
8333 | MSGFMT="$ac_cv_path_MSGFMT" |
8334 | if test "$MSGFMT" != ":"; then | |
54445dc2 TT |
8335 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5 |
8336 | printf "%s\n" "$MSGFMT" >&6; } | |
57aa50d4 | 8337 | else |
54445dc2 TT |
8338 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8339 | printf "%s\n" "no" >&6; } | |
b0cacab0 | 8340 | fi |
a64c9c13 | 8341 | |
57aa50d4 TT |
8342 | # Extract the first word of "gmsgfmt", so it can be a program name with args. |
8343 | set dummy gmsgfmt; ac_word=$2 | |
54445dc2 TT |
8344 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8345 | printf %s "checking for $ac_word... " >&6; } | |
8346 | if test ${ac_cv_path_GMSGFMT+y} | |
8347 | then : | |
8348 | printf %s "(cached) " >&6 | |
8349 | else $as_nop | |
57aa50d4 TT |
8350 | case $GMSGFMT in |
8351 | [\\/]* | ?:[\\/]*) | |
8352 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. | |
8353 | ;; | |
8354 | *) | |
8355 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8356 | for as_dir in $PATH | |
8357 | do | |
8358 | IFS=$as_save_IFS | |
54445dc2 TT |
8359 | case $as_dir in #((( |
8360 | '') as_dir=./ ;; | |
8361 | */) ;; | |
8362 | *) as_dir=$as_dir/ ;; | |
8363 | esac | |
57aa50d4 | 8364 | for ac_exec_ext in '' $ac_executable_extensions; do |
54445dc2 TT |
8365 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
8366 | ac_cv_path_GMSGFMT="$as_dir$ac_word$ac_exec_ext" | |
8367 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 | |
57aa50d4 TT |
8368 | break 2 |
8369 | fi | |
8370 | done | |
8371 | done | |
8372 | IFS=$as_save_IFS | |
a64c9c13 | 8373 | |
57aa50d4 TT |
8374 | test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" |
8375 | ;; | |
e1052144 | 8376 | esac |
57aa50d4 TT |
8377 | fi |
8378 | GMSGFMT=$ac_cv_path_GMSGFMT | |
8379 | if test -n "$GMSGFMT"; then | |
54445dc2 TT |
8380 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5 |
8381 | printf "%s\n" "$GMSGFMT" >&6; } | |
b0cacab0 | 8382 | else |
54445dc2 TT |
8383 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8384 | printf "%s\n" "no" >&6; } | |
b0cacab0 | 8385 | fi |
e1052144 | 8386 | |
b0cacab0 | 8387 | |
b0cacab0 | 8388 | |
bdcd5f22 | 8389 | case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in |
93613951 TT |
8390 | '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;; |
8391 | *) GMSGFMT_015=$GMSGFMT ;; | |
8392 | esac | |
8393 | ||
8394 | ||
57aa50d4 TT |
8395 | |
8396 | # Prepare PATH_SEPARATOR. | |
8397 | # The user is always right. | |
8398 | if test "${PATH_SEPARATOR+set}" != set; then | |
93613951 TT |
8399 | # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which |
8400 | # contains only /bin. Note that ksh looks also at the FPATH variable, | |
8401 | # so we have to set that as well for the test. | |
8402 | PATH_SEPARATOR=: | |
8403 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ | |
8404 | && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ | |
8405 | || PATH_SEPARATOR=';' | |
8406 | } | |
57aa50d4 | 8407 | fi |
b0cacab0 | 8408 | |
57aa50d4 TT |
8409 | # Find out how to test for executable files. Don't use a zero-byte file, |
8410 | # as systems may use methods other than mode bits to determine executability. | |
8411 | cat >conf$$.file <<_ASEOF | |
8412 | #! /bin/sh | |
8413 | exit 0 | |
8414 | _ASEOF | |
8415 | chmod +x conf$$.file | |
8416 | if test -x conf$$.file >/dev/null 2>&1; then | |
8417 | ac_executable_p="test -x" | |
8418 | else | |
8419 | ac_executable_p="test -f" | |
8420 | fi | |
8421 | rm -f conf$$.file | |
b0cacab0 | 8422 | |
57aa50d4 TT |
8423 | # Extract the first word of "xgettext", so it can be a program name with args. |
8424 | set dummy xgettext; ac_word=$2 | |
54445dc2 TT |
8425 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8426 | printf %s "checking for $ac_word... " >&6; } | |
8427 | if test ${ac_cv_path_XGETTEXT+y} | |
8428 | then : | |
8429 | printf %s "(cached) " >&6 | |
8430 | else $as_nop | |
57aa50d4 TT |
8431 | case "$XGETTEXT" in |
8432 | [\\/]* | ?:[\\/]*) | |
8433 | ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. | |
8434 | ;; | |
8435 | *) | |
8436 | ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR | |
8437 | for ac_dir in $PATH; do | |
8438 | IFS="$ac_save_IFS" | |
8439 | test -z "$ac_dir" && ac_dir=. | |
8440 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8441 | if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then | |
93613951 TT |
8442 | echo "$as_me: trying $ac_dir/$ac_word..." >&5 |
8443 | if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 && | |
57aa50d4 TT |
8444 | (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then |
8445 | ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext" | |
8446 | break 2 | |
8447 | fi | |
8448 | fi | |
8449 | done | |
8450 | done | |
8451 | IFS="$ac_save_IFS" | |
8452 | test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" | |
8453 | ;; | |
e1052144 | 8454 | esac |
b0cacab0 | 8455 | fi |
57aa50d4 TT |
8456 | XGETTEXT="$ac_cv_path_XGETTEXT" |
8457 | if test "$XGETTEXT" != ":"; then | |
54445dc2 TT |
8458 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5 |
8459 | printf "%s\n" "$XGETTEXT" >&6; } | |
57aa50d4 | 8460 | else |
54445dc2 TT |
8461 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8462 | printf "%s\n" "no" >&6; } | |
b0cacab0 | 8463 | fi |
b0cacab0 | 8464 | |
57aa50d4 | 8465 | rm -f messages.po |
a64c9c13 | 8466 | |
93613951 TT |
8467 | case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in |
8468 | '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;; | |
8469 | *) XGETTEXT_015=$XGETTEXT ;; | |
8470 | esac | |
8471 | ||
8472 | ||
b0cacab0 | 8473 | |
57aa50d4 TT |
8474 | # Prepare PATH_SEPARATOR. |
8475 | # The user is always right. | |
8476 | if test "${PATH_SEPARATOR+set}" != set; then | |
93613951 TT |
8477 | # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which |
8478 | # contains only /bin. Note that ksh looks also at the FPATH variable, | |
8479 | # so we have to set that as well for the test. | |
8480 | PATH_SEPARATOR=: | |
8481 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ | |
8482 | && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ | |
8483 | || PATH_SEPARATOR=';' | |
8484 | } | |
57aa50d4 | 8485 | fi |
b0cacab0 | 8486 | |
57aa50d4 TT |
8487 | # Find out how to test for executable files. Don't use a zero-byte file, |
8488 | # as systems may use methods other than mode bits to determine executability. | |
8489 | cat >conf$$.file <<_ASEOF | |
8490 | #! /bin/sh | |
8491 | exit 0 | |
8492 | _ASEOF | |
8493 | chmod +x conf$$.file | |
8494 | if test -x conf$$.file >/dev/null 2>&1; then | |
8495 | ac_executable_p="test -x" | |
8496 | else | |
8497 | ac_executable_p="test -f" | |
8498 | fi | |
8499 | rm -f conf$$.file | |
8500 | ||
8501 | # Extract the first word of "msgmerge", so it can be a program name with args. | |
8502 | set dummy msgmerge; ac_word=$2 | |
54445dc2 TT |
8503 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8504 | printf %s "checking for $ac_word... " >&6; } | |
8505 | if test ${ac_cv_path_MSGMERGE+y} | |
8506 | then : | |
8507 | printf %s "(cached) " >&6 | |
8508 | else $as_nop | |
57aa50d4 TT |
8509 | case "$MSGMERGE" in |
8510 | [\\/]* | ?:[\\/]*) | |
8511 | ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path. | |
8512 | ;; | |
8513 | *) | |
8514 | ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR | |
8515 | for ac_dir in $PATH; do | |
8516 | IFS="$ac_save_IFS" | |
8517 | test -z "$ac_dir" && ac_dir=. | |
8518 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8519 | if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then | |
93613951 TT |
8520 | echo "$as_me: trying $ac_dir/$ac_word..." >&5 |
8521 | if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then | |
57aa50d4 TT |
8522 | ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext" |
8523 | break 2 | |
8524 | fi | |
8525 | fi | |
8526 | done | |
8527 | done | |
8528 | IFS="$ac_save_IFS" | |
8529 | test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":" | |
8530 | ;; | |
e1052144 | 8531 | esac |
57aa50d4 TT |
8532 | fi |
8533 | MSGMERGE="$ac_cv_path_MSGMERGE" | |
8534 | if test "$MSGMERGE" != ":"; then | |
54445dc2 TT |
8535 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5 |
8536 | printf "%s\n" "$MSGMERGE" >&6; } | |
b0cacab0 | 8537 | else |
54445dc2 TT |
8538 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8539 | printf "%s\n" "no" >&6; } | |
b0cacab0 | 8540 | fi |
e1052144 | 8541 | |
93636bde | 8542 | |
bdcd5f22 TT |
8543 | if LC_ALL=C $MSGMERGE --help | grep ' --for-msgfmt ' >/dev/null; then |
8544 | MSGMERGE_FOR_MSGFMT_OPTION='--for-msgfmt' | |
8545 | else | |
8546 | if LC_ALL=C $MSGMERGE --help | grep ' --no-fuzzy-matching ' >/dev/null; then | |
8547 | MSGMERGE_FOR_MSGFMT_OPTION='--no-fuzzy-matching --no-location --quiet' | |
8548 | else | |
8549 | MSGMERGE_FOR_MSGFMT_OPTION='--no-location --quiet' | |
8550 | fi | |
8551 | fi | |
93613951 TT |
8552 | |
8553 | ||
8554 | test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS= | |
8555 | ||
8556 | ||
8557 | ac_config_commands="$ac_config_commands po-directories" | |
a64c9c13 | 8558 | |
a64c9c13 | 8559 | |
93613951 | 8560 | |
e598c29b TT |
8561 | if test "X$prefix" = "XNONE"; then |
8562 | acl_final_prefix="$ac_default_prefix" | |
8563 | else | |
8564 | acl_final_prefix="$prefix" | |
8565 | fi | |
8566 | if test "X$exec_prefix" = "XNONE"; then | |
8567 | acl_final_exec_prefix='${prefix}' | |
8568 | else | |
8569 | acl_final_exec_prefix="$exec_prefix" | |
8570 | fi | |
8571 | acl_save_prefix="$prefix" | |
8572 | prefix="$acl_final_prefix" | |
8573 | eval acl_final_exec_prefix=\"$acl_final_exec_prefix\" | |
8574 | prefix="$acl_save_prefix" | |
93613951 | 8575 | |
93613951 | 8576 | |
e598c29b TT |
8577 | |
8578 | # Check whether --with-gnu-ld was given. | |
54445dc2 TT |
8579 | if test ${with_gnu_ld+y} |
8580 | then : | |
e598c29b | 8581 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes |
54445dc2 | 8582 | else $as_nop |
e598c29b | 8583 | with_gnu_ld=no |
93613951 | 8584 | fi |
a64c9c13 | 8585 | |
e598c29b TT |
8586 | # Prepare PATH_SEPARATOR. |
8587 | # The user is always right. | |
8588 | if test "${PATH_SEPARATOR+set}" != set; then | |
8589 | # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which | |
8590 | # contains only /bin. Note that ksh looks also at the FPATH variable, | |
8591 | # so we have to set that as well for the test. | |
8592 | PATH_SEPARATOR=: | |
8593 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ | |
8594 | && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ | |
8595 | || PATH_SEPARATOR=';' | |
8596 | } | |
d1154eb4 TT |
8597 | fi |
8598 | ||
bdcd5f22 | 8599 | if test -n "$LD"; then |
54445dc2 TT |
8600 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld" >&5 |
8601 | printf %s "checking for ld... " >&6; } | |
bdcd5f22 | 8602 | elif test "$GCC" = yes; then |
54445dc2 TT |
8603 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 |
8604 | printf %s "checking for ld used by $CC... " >&6; } | |
e598c29b | 8605 | elif test "$with_gnu_ld" = yes; then |
54445dc2 TT |
8606 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 |
8607 | printf %s "checking for GNU ld... " >&6; } | |
e598c29b | 8608 | else |
54445dc2 TT |
8609 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 |
8610 | printf %s "checking for non-GNU ld... " >&6; } | |
d1154eb4 | 8611 | fi |
bdcd5f22 TT |
8612 | if test -n "$LD"; then |
8613 | # Let the user override the test with a path. | |
8614 | : | |
8615 | else | |
54445dc2 TT |
8616 | if test ${acl_cv_path_LD+y} |
8617 | then : | |
8618 | printf %s "(cached) " >&6 | |
8619 | else $as_nop | |
bdcd5f22 TT |
8620 | |
8621 | acl_cv_path_LD= # Final result of this test | |
8622 | ac_prog=ld # Program to search in $PATH | |
8623 | if test "$GCC" = yes; then | |
8624 | # Check if gcc -print-prog-name=ld gives a path. | |
8625 | case $host in | |
8626 | *-*-mingw*) | |
8627 | # gcc leaves a trailing carriage return which upsets mingw | |
8628 | acl_output=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | |
8629 | *) | |
8630 | acl_output=`($CC -print-prog-name=ld) 2>&5` ;; | |
8631 | esac | |
8632 | case $acl_output in | |
8633 | # Accept absolute paths. | |
8634 | [\\/]* | ?:[\\/]*) | |
8635 | re_direlt='/[^/][^/]*/\.\./' | |
8636 | # Canonicalize the pathname of ld | |
8637 | acl_output=`echo "$acl_output" | sed 's%\\\\%/%g'` | |
8638 | while echo "$acl_output" | grep "$re_direlt" > /dev/null 2>&1; do | |
8639 | acl_output=`echo $acl_output | sed "s%$re_direlt%/%"` | |
8640 | done | |
8641 | # Got the pathname. No search in PATH is needed. | |
8642 | acl_cv_path_LD="$acl_output" | |
8643 | ac_prog= | |
8644 | ;; | |
8645 | "") | |
8646 | # If it fails, then pretend we aren't using GCC. | |
8647 | ;; | |
8648 | *) | |
8649 | # If it is relative, then search for the first ld in PATH. | |
8650 | with_gnu_ld=unknown | |
8651 | ;; | |
e598c29b TT |
8652 | esac |
8653 | fi | |
bdcd5f22 TT |
8654 | if test -n "$ac_prog"; then |
8655 | # Search for $ac_prog in $PATH. | |
8656 | acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
8657 | for ac_dir in $PATH; do | |
8658 | IFS="$acl_save_ifs" | |
8659 | test -z "$ac_dir" && ac_dir=. | |
8660 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | |
8661 | acl_cv_path_LD="$ac_dir/$ac_prog" | |
8662 | # Check to see if the program is GNU ld. I'd rather use --version, | |
8663 | # but apparently some variants of GNU ld only accept -v. | |
8664 | # Break only if it was the GNU/non-GNU ld that we prefer. | |
8665 | case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in | |
8666 | *GNU* | *'with BFD'*) | |
8667 | test "$with_gnu_ld" != no && break | |
8668 | ;; | |
8669 | *) | |
8670 | test "$with_gnu_ld" != yes && break | |
8671 | ;; | |
8672 | esac | |
8673 | fi | |
8674 | done | |
8675 | IFS="$acl_save_ifs" | |
8676 | fi | |
8677 | case $host in | |
8678 | *-*-aix*) | |
8679 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8680 | /* end confdefs.h. */ | |
5598a968 | 8681 | #if defined __powerpc64__ || defined __LP64__ |
bdcd5f22 TT |
8682 | int ok; |
8683 | #else | |
8684 | error fail | |
8685 | #endif | |
8686 | ||
8687 | _ACEOF | |
54445dc2 TT |
8688 | if ac_fn_c_try_compile "$LINENO" |
8689 | then : | |
bdcd5f22 TT |
8690 | # The compiler produces 64-bit code. Add option '-b64' so that the |
8691 | # linker groks 64-bit object files. | |
8692 | case "$acl_cv_path_LD " in | |
8693 | *" -b64 "*) ;; | |
8694 | *) acl_cv_path_LD="$acl_cv_path_LD -b64" ;; | |
8695 | esac | |
8696 | ||
8697 | fi | |
54445dc2 | 8698 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
bdcd5f22 TT |
8699 | ;; |
8700 | sparc64-*-netbsd*) | |
8701 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8702 | /* end confdefs.h. */ | |
8703 | #if defined __sparcv9 || defined __arch64__ | |
8704 | int ok; | |
8705 | #else | |
8706 | error fail | |
8707 | #endif | |
8708 | ||
8709 | _ACEOF | |
54445dc2 TT |
8710 | if ac_fn_c_try_compile "$LINENO" |
8711 | then : | |
bdcd5f22 | 8712 | |
54445dc2 | 8713 | else $as_nop |
bdcd5f22 TT |
8714 | # The compiler produces 32-bit code. Add option '-m elf32_sparc' |
8715 | # so that the linker groks 32-bit object files. | |
8716 | case "$acl_cv_path_LD " in | |
8717 | *" -m elf32_sparc "*) ;; | |
8718 | *) acl_cv_path_LD="$acl_cv_path_LD -m elf32_sparc" ;; | |
8719 | esac | |
8720 | ||
d1154eb4 | 8721 | fi |
54445dc2 | 8722 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
bdcd5f22 TT |
8723 | ;; |
8724 | esac | |
8725 | ||
d1154eb4 | 8726 | fi |
e598c29b | 8727 | |
bdcd5f22 TT |
8728 | LD="$acl_cv_path_LD" |
8729 | fi | |
e598c29b | 8730 | if test -n "$LD"; then |
54445dc2 TT |
8731 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
8732 | printf "%s\n" "$LD" >&6; } | |
d1154eb4 | 8733 | else |
54445dc2 TT |
8734 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8735 | printf "%s\n" "no" >&6; } | |
bdcd5f22 | 8736 | as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 |
d1154eb4 | 8737 | fi |
54445dc2 TT |
8738 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 |
8739 | printf %s "checking if the linker ($LD) is GNU ld... " >&6; } | |
8740 | if test ${acl_cv_prog_gnu_ld+y} | |
8741 | then : | |
8742 | printf %s "(cached) " >&6 | |
8743 | else $as_nop | |
e598c29b TT |
8744 | # I'd rather use --version here, but apparently some GNU lds only accept -v. |
8745 | case `$LD -v 2>&1 </dev/null` in | |
8746 | *GNU* | *'with BFD'*) | |
8747 | acl_cv_prog_gnu_ld=yes | |
8748 | ;; | |
8749 | *) | |
8750 | acl_cv_prog_gnu_ld=no | |
8751 | ;; | |
8752 | esac | |
8753 | fi | |
54445dc2 TT |
8754 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5 |
8755 | printf "%s\n" "$acl_cv_prog_gnu_ld" >&6; } | |
e598c29b | 8756 | with_gnu_ld=$acl_cv_prog_gnu_ld |
93613951 | 8757 | |
d1154eb4 | 8758 | |
93613951 | 8759 | |
d1154eb4 | 8760 | |
54445dc2 TT |
8761 | |
8762 | ||
8763 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5 | |
8764 | printf %s "checking for shared library run path origin... " >&6; } | |
8765 | if test ${acl_cv_rpath+y} | |
8766 | then : | |
8767 | printf %s "(cached) " >&6 | |
8768 | else $as_nop | |
d1154eb4 | 8769 | |
e598c29b TT |
8770 | CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \ |
8771 | ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh | |
8772 | . ./conftest.sh | |
8773 | rm -f ./conftest.sh | |
8774 | acl_cv_rpath=done | |
d1154eb4 | 8775 | |
93613951 | 8776 | fi |
54445dc2 TT |
8777 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5 |
8778 | printf "%s\n" "$acl_cv_rpath" >&6; } | |
e598c29b TT |
8779 | wl="$acl_cv_wl" |
8780 | acl_libext="$acl_cv_libext" | |
8781 | acl_shlibext="$acl_cv_shlibext" | |
8782 | acl_libname_spec="$acl_cv_libname_spec" | |
8783 | acl_library_names_spec="$acl_cv_library_names_spec" | |
8784 | acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec" | |
8785 | acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator" | |
8786 | acl_hardcode_direct="$acl_cv_hardcode_direct" | |
8787 | acl_hardcode_minus_L="$acl_cv_hardcode_minus_L" | |
8788 | # Check whether --enable-rpath was given. | |
54445dc2 TT |
8789 | if test ${enable_rpath+y} |
8790 | then : | |
e598c29b | 8791 | enableval=$enable_rpath; : |
54445dc2 | 8792 | else $as_nop |
e598c29b | 8793 | enable_rpath=yes |
93613951 | 8794 | fi |
d1154eb4 | 8795 | |
d1154eb4 TT |
8796 | |
8797 | ||
93613951 | 8798 | |
54445dc2 TT |
8799 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking 32-bit host C ABI" >&5 |
8800 | printf %s "checking 32-bit host C ABI... " >&6; } | |
8801 | if test ${gl_cv_host_cpu_c_abi_32bit+y} | |
8802 | then : | |
8803 | printf %s "(cached) " >&6 | |
8804 | else $as_nop | |
bdcd5f22 TT |
8805 | if test -n "$gl_cv_host_cpu_c_abi"; then |
8806 | case "$gl_cv_host_cpu_c_abi" in | |
8807 | i386 | x86_64-x32 | arm | armhf | arm64-ilp32 | hppa | ia64-ilp32 | mips | mipsn32 | powerpc | riscv*-ilp32* | s390 | sparc) | |
8808 | gl_cv_host_cpu_c_abi_32bit=yes ;; | |
8809 | x86_64 | alpha | arm64 | hppa64 | ia64 | mips64 | powerpc64 | powerpc64-elfv2 | riscv*-lp64* | s390x | sparc64 ) | |
8810 | gl_cv_host_cpu_c_abi_32bit=no ;; | |
8811 | *) | |
8812 | gl_cv_host_cpu_c_abi_32bit=unknown ;; | |
8813 | esac | |
8814 | else | |
8815 | case "$host_cpu" in | |
8816 | ||
8817 | # CPUs that only support a 32-bit ABI. | |
8818 | arc \ | |
8819 | | bfin \ | |
8820 | | cris* \ | |
8821 | | csky \ | |
8822 | | epiphany \ | |
8823 | | ft32 \ | |
8824 | | h8300 \ | |
8825 | | m68k \ | |
8826 | | microblaze | microblazeel \ | |
8827 | | nds32 | nds32le | nds32be \ | |
8828 | | nios2 | nios2eb | nios2el \ | |
8829 | | or1k* \ | |
8830 | | or32 \ | |
8831 | | sh | sh1234 | sh1234elb \ | |
8832 | | tic6x \ | |
8833 | | xtensa* ) | |
8834 | gl_cv_host_cpu_c_abi_32bit=yes | |
8835 | ;; | |
8836 | ||
8837 | # CPUs that only support a 64-bit ABI. | |
8838 | alpha | alphaev[4-8] | alphaev56 | alphapca5[67] | alphaev6[78] \ | |
8839 | | mmix ) | |
8840 | gl_cv_host_cpu_c_abi_32bit=no | |
8841 | ;; | |
8842 | ||
8843 | i[34567]86 ) | |
8844 | gl_cv_host_cpu_c_abi_32bit=yes | |
8845 | ;; | |
8846 | ||
8847 | x86_64 ) | |
8848 | # On x86_64 systems, the C compiler may be generating code in one of | |
8849 | # these ABIs: | |
8850 | # - 64-bit instruction set, 64-bit pointers, 64-bit 'long': x86_64. | |
8851 | # - 64-bit instruction set, 64-bit pointers, 32-bit 'long': x86_64 | |
8852 | # with native Windows (mingw, MSVC). | |
8853 | # - 64-bit instruction set, 32-bit pointers, 32-bit 'long': x86_64-x32. | |
8854 | # - 32-bit instruction set, 32-bit pointers, 32-bit 'long': i386. | |
8855 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
d1154eb4 | 8856 | /* end confdefs.h. */ |
bdcd5f22 TT |
8857 | #if (defined __x86_64__ || defined __amd64__ \ |
8858 | || defined _M_X64 || defined _M_AMD64) \ | |
8859 | && !(defined __ILP32__ || defined _ILP32) | |
8860 | int ok; | |
8861 | #else | |
8862 | error fail | |
8863 | #endif | |
e598c29b | 8864 | |
bdcd5f22 | 8865 | _ACEOF |
54445dc2 TT |
8866 | if ac_fn_c_try_compile "$LINENO" |
8867 | then : | |
bdcd5f22 | 8868 | gl_cv_host_cpu_c_abi_32bit=no |
54445dc2 | 8869 | else $as_nop |
bdcd5f22 TT |
8870 | gl_cv_host_cpu_c_abi_32bit=yes |
8871 | fi | |
54445dc2 | 8872 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
bdcd5f22 TT |
8873 | ;; |
8874 | ||
8875 | arm* | aarch64 ) | |
8876 | # Assume arm with EABI. | |
8877 | # On arm64 systems, the C compiler may be generating code in one of | |
8878 | # these ABIs: | |
8879 | # - aarch64 instruction set, 64-bit pointers, 64-bit 'long': arm64. | |
8880 | # - aarch64 instruction set, 32-bit pointers, 32-bit 'long': arm64-ilp32. | |
8881 | # - 32-bit instruction set, 32-bit pointers, 32-bit 'long': arm or armhf. | |
8882 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8883 | /* end confdefs.h. */ | |
8884 | #if defined __aarch64__ && !(defined __ILP32__ || defined _ILP32) | |
8885 | int ok; | |
8886 | #else | |
8887 | error fail | |
8888 | #endif | |
8889 | ||
8890 | _ACEOF | |
54445dc2 TT |
8891 | if ac_fn_c_try_compile "$LINENO" |
8892 | then : | |
bdcd5f22 | 8893 | gl_cv_host_cpu_c_abi_32bit=no |
54445dc2 | 8894 | else $as_nop |
bdcd5f22 TT |
8895 | gl_cv_host_cpu_c_abi_32bit=yes |
8896 | fi | |
54445dc2 | 8897 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
bdcd5f22 TT |
8898 | ;; |
8899 | ||
8900 | hppa1.0 | hppa1.1 | hppa2.0* | hppa64 ) | |
8901 | # On hppa, the C compiler may be generating 32-bit code or 64-bit | |
8902 | # code. In the latter case, it defines _LP64 and __LP64__. | |
8903 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8904 | /* end confdefs.h. */ | |
8905 | #ifdef __LP64__ | |
8906 | int ok; | |
8907 | #else | |
8908 | error fail | |
8909 | #endif | |
8910 | ||
8911 | _ACEOF | |
54445dc2 TT |
8912 | if ac_fn_c_try_compile "$LINENO" |
8913 | then : | |
bdcd5f22 | 8914 | gl_cv_host_cpu_c_abi_32bit=no |
54445dc2 | 8915 | else $as_nop |
bdcd5f22 TT |
8916 | gl_cv_host_cpu_c_abi_32bit=yes |
8917 | fi | |
54445dc2 | 8918 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
bdcd5f22 TT |
8919 | ;; |
8920 | ||
8921 | ia64* ) | |
8922 | # On ia64 on HP-UX, the C compiler may be generating 64-bit code or | |
8923 | # 32-bit code. In the latter case, it defines _ILP32. | |
8924 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8925 | /* end confdefs.h. */ | |
8926 | #ifdef _ILP32 | |
8927 | int ok; | |
8928 | #else | |
8929 | error fail | |
8930 | #endif | |
8931 | ||
8932 | _ACEOF | |
54445dc2 TT |
8933 | if ac_fn_c_try_compile "$LINENO" |
8934 | then : | |
bdcd5f22 | 8935 | gl_cv_host_cpu_c_abi_32bit=yes |
54445dc2 | 8936 | else $as_nop |
bdcd5f22 TT |
8937 | gl_cv_host_cpu_c_abi_32bit=no |
8938 | fi | |
54445dc2 | 8939 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
bdcd5f22 TT |
8940 | ;; |
8941 | ||
8942 | mips* ) | |
8943 | # We should also check for (_MIPS_SZPTR == 64), but gcc keeps this | |
8944 | # at 32. | |
8945 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8946 | /* end confdefs.h. */ | |
8947 | #if defined _MIPS_SZLONG && (_MIPS_SZLONG == 64) | |
8948 | int ok; | |
8949 | #else | |
8950 | error fail | |
8951 | #endif | |
8952 | ||
8953 | _ACEOF | |
54445dc2 TT |
8954 | if ac_fn_c_try_compile "$LINENO" |
8955 | then : | |
bdcd5f22 | 8956 | gl_cv_host_cpu_c_abi_32bit=no |
54445dc2 | 8957 | else $as_nop |
bdcd5f22 TT |
8958 | gl_cv_host_cpu_c_abi_32bit=yes |
8959 | fi | |
54445dc2 | 8960 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
bdcd5f22 TT |
8961 | ;; |
8962 | ||
8963 | powerpc* ) | |
8964 | # Different ABIs are in use on AIX vs. Mac OS X vs. Linux,*BSD. | |
8965 | # No need to distinguish them here; the caller may distinguish | |
8966 | # them based on the OS. | |
8967 | # On powerpc64 systems, the C compiler may still be generating | |
8968 | # 32-bit code. And on powerpc-ibm-aix systems, the C compiler may | |
8969 | # be generating 64-bit code. | |
8970 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8971 | /* end confdefs.h. */ | |
5598a968 | 8972 | #if defined __powerpc64__ || defined __LP64__ |
bdcd5f22 TT |
8973 | int ok; |
8974 | #else | |
8975 | error fail | |
8976 | #endif | |
8977 | ||
8978 | _ACEOF | |
54445dc2 TT |
8979 | if ac_fn_c_try_compile "$LINENO" |
8980 | then : | |
bdcd5f22 | 8981 | gl_cv_host_cpu_c_abi_32bit=no |
54445dc2 | 8982 | else $as_nop |
bdcd5f22 TT |
8983 | gl_cv_host_cpu_c_abi_32bit=yes |
8984 | fi | |
54445dc2 | 8985 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
bdcd5f22 TT |
8986 | ;; |
8987 | ||
8988 | rs6000 ) | |
8989 | gl_cv_host_cpu_c_abi_32bit=yes | |
8990 | ;; | |
8991 | ||
8992 | riscv32 | riscv64 ) | |
8993 | # There are 6 ABIs: ilp32, ilp32f, ilp32d, lp64, lp64f, lp64d. | |
8994 | # Size of 'long' and 'void *': | |
8995 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8996 | /* end confdefs.h. */ | |
8997 | #if defined __LP64__ | |
8998 | int ok; | |
8999 | #else | |
9000 | error fail | |
9001 | #endif | |
9002 | ||
9003 | _ACEOF | |
54445dc2 TT |
9004 | if ac_fn_c_try_compile "$LINENO" |
9005 | then : | |
bdcd5f22 | 9006 | gl_cv_host_cpu_c_abi_32bit=no |
54445dc2 | 9007 | else $as_nop |
bdcd5f22 TT |
9008 | gl_cv_host_cpu_c_abi_32bit=yes |
9009 | fi | |
54445dc2 | 9010 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
bdcd5f22 TT |
9011 | ;; |
9012 | ||
9013 | s390* ) | |
9014 | # On s390x, the C compiler may be generating 64-bit (= s390x) code | |
9015 | # or 31-bit (= s390) code. | |
9016 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9017 | /* end confdefs.h. */ | |
9018 | #if defined __LP64__ || defined __s390x__ | |
9019 | int ok; | |
9020 | #else | |
9021 | error fail | |
9022 | #endif | |
9023 | ||
9024 | _ACEOF | |
54445dc2 TT |
9025 | if ac_fn_c_try_compile "$LINENO" |
9026 | then : | |
bdcd5f22 | 9027 | gl_cv_host_cpu_c_abi_32bit=no |
54445dc2 | 9028 | else $as_nop |
bdcd5f22 TT |
9029 | gl_cv_host_cpu_c_abi_32bit=yes |
9030 | fi | |
54445dc2 | 9031 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
bdcd5f22 TT |
9032 | ;; |
9033 | ||
9034 | sparc | sparc64 ) | |
9035 | # UltraSPARCs running Linux have `uname -m` = "sparc64", but the | |
9036 | # C compiler still generates 32-bit code. | |
9037 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9038 | /* end confdefs.h. */ | |
9039 | #if defined __sparcv9 || defined __arch64__ | |
9040 | int ok; | |
9041 | #else | |
9042 | error fail | |
9043 | #endif | |
9044 | ||
9045 | _ACEOF | |
54445dc2 TT |
9046 | if ac_fn_c_try_compile "$LINENO" |
9047 | then : | |
bdcd5f22 | 9048 | gl_cv_host_cpu_c_abi_32bit=no |
54445dc2 | 9049 | else $as_nop |
bdcd5f22 TT |
9050 | gl_cv_host_cpu_c_abi_32bit=yes |
9051 | fi | |
54445dc2 | 9052 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
bdcd5f22 TT |
9053 | ;; |
9054 | ||
9055 | *) | |
9056 | gl_cv_host_cpu_c_abi_32bit=unknown | |
9057 | ;; | |
9058 | esac | |
9059 | fi | |
9060 | ||
9061 | fi | |
54445dc2 TT |
9062 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_host_cpu_c_abi_32bit" >&5 |
9063 | printf "%s\n" "$gl_cv_host_cpu_c_abi_32bit" >&6; } | |
bdcd5f22 TT |
9064 | |
9065 | HOST_CPU_C_ABI_32BIT="$gl_cv_host_cpu_c_abi_32bit" | |
9066 | ||
9067 | ||
9068 | ||
9069 | ||
9070 | ||
54445dc2 TT |
9071 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ELF binary format" >&5 |
9072 | printf %s "checking for ELF binary format... " >&6; } | |
9073 | if test ${gl_cv_elf+y} | |
9074 | then : | |
9075 | printf %s "(cached) " >&6 | |
9076 | else $as_nop | |
bdcd5f22 TT |
9077 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
9078 | /* end confdefs.h. */ | |
5598a968 | 9079 | #if defined __ELF__ || (defined __linux__ && defined __EDG__) |
bdcd5f22 TT |
9080 | Extensible Linking Format |
9081 | #endif | |
d1154eb4 | 9082 | |
d1154eb4 | 9083 | _ACEOF |
e598c29b | 9084 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
54445dc2 TT |
9085 | $EGREP "Extensible Linking Format" >/dev/null 2>&1 |
9086 | then : | |
bdcd5f22 | 9087 | gl_cv_elf=yes |
54445dc2 | 9088 | else $as_nop |
bdcd5f22 | 9089 | gl_cv_elf=no |
57aa50d4 | 9090 | fi |
54445dc2 | 9091 | rm -rf conftest* |
d1154eb4 | 9092 | |
d1154eb4 | 9093 | |
e598c29b | 9094 | fi |
54445dc2 TT |
9095 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_elf" >&5 |
9096 | printf "%s\n" "$gl_cv_elf" >&6; } | |
5598a968 | 9097 | if test $gl_cv_elf = yes; then |
bdcd5f22 TT |
9098 | # Extract the ELF class of a file (5th byte) in decimal. |
9099 | # Cf. https://en.wikipedia.org/wiki/Executable_and_Linkable_Format#File_header | |
9100 | if od -A x < /dev/null >/dev/null 2>/dev/null; then | |
9101 | # Use POSIX od. | |
9102 | func_elfclass () | |
9103 | { | |
9104 | od -A n -t d1 -j 4 -N 1 | |
9105 | } | |
9106 | else | |
9107 | # Use BSD hexdump. | |
9108 | func_elfclass () | |
9109 | { | |
9110 | dd bs=1 count=1 skip=4 2>/dev/null | hexdump -e '1/1 "%3d "' | |
9111 | echo | |
9112 | } | |
9113 | fi | |
5598a968 EB |
9114 | # Use 'expr', not 'test', to compare the values of func_elfclass, because on |
9115 | # Solaris 11 OpenIndiana and Solaris 11 OmniOS, the result is 001 or 002, | |
9116 | # not 1 or 2. | |
bdcd5f22 TT |
9117 | case $HOST_CPU_C_ABI_32BIT in |
9118 | yes) | |
9119 | # 32-bit ABI. | |
9120 | acl_is_expected_elfclass () | |
9121 | { | |
5598a968 | 9122 | expr "`func_elfclass | sed -e 's/[ ]//g'`" = 1 > /dev/null |
bdcd5f22 TT |
9123 | } |
9124 | ;; | |
9125 | no) | |
9126 | # 64-bit ABI. | |
9127 | acl_is_expected_elfclass () | |
9128 | { | |
5598a968 | 9129 | expr "`func_elfclass | sed -e 's/[ ]//g'`" = 2 > /dev/null |
bdcd5f22 TT |
9130 | } |
9131 | ;; | |
9132 | *) | |
9133 | # Unknown. | |
9134 | acl_is_expected_elfclass () | |
9135 | { | |
9136 | : | |
9137 | } | |
9138 | ;; | |
9139 | esac | |
9140 | else | |
9141 | acl_is_expected_elfclass () | |
9142 | { | |
9143 | : | |
9144 | } | |
9145 | fi | |
d1154eb4 | 9146 | |
54445dc2 TT |
9147 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the common suffixes of directories in the library search path" >&5 |
9148 | printf %s "checking for the common suffixes of directories in the library search path... " >&6; } | |
9149 | if test ${acl_cv_libdirstems+y} | |
9150 | then : | |
9151 | printf %s "(cached) " >&6 | |
9152 | else $as_nop | |
bdcd5f22 TT |
9153 | acl_libdirstem=lib |
9154 | acl_libdirstem2= | |
9155 | acl_libdirstem3= | |
9156 | case "$host_os" in | |
9157 | solaris*) | |
9158 | if test $HOST_CPU_C_ABI_32BIT = no; then | |
9159 | acl_libdirstem2=lib/64 | |
9160 | case "$host_cpu" in | |
9161 | sparc*) acl_libdirstem3=lib/sparcv9 ;; | |
9162 | i*86 | x86_64) acl_libdirstem3=lib/amd64 ;; | |
9163 | esac | |
9164 | fi | |
9165 | ;; | |
9166 | *) | |
9167 | searchpath=`(LC_ALL=C $CC $CPPFLAGS $CFLAGS -print-search-dirs) 2>/dev/null \ | |
9168 | | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'` | |
9169 | if test $HOST_CPU_C_ABI_32BIT != no; then | |
9170 | # 32-bit or unknown ABI. | |
9171 | if test -d /usr/lib32; then | |
9172 | acl_libdirstem2=lib32 | |
9173 | fi | |
9174 | fi | |
9175 | if test $HOST_CPU_C_ABI_32BIT != yes; then | |
9176 | # 64-bit or unknown ABI. | |
9177 | if test -d /usr/lib64; then | |
9178 | acl_libdirstem3=lib64 | |
9179 | fi | |
9180 | fi | |
9181 | if test -n "$searchpath"; then | |
9182 | acl_save_IFS="${IFS= }"; IFS=":" | |
9183 | for searchdir in $searchpath; do | |
9184 | if test -d "$searchdir"; then | |
9185 | case "$searchdir" in | |
9186 | */lib32/ | */lib32 ) acl_libdirstem2=lib32 ;; | |
9187 | */lib64/ | */lib64 ) acl_libdirstem3=lib64 ;; | |
9188 | */../ | */.. ) | |
9189 | # Better ignore directories of this form. They are misleading. | |
9190 | ;; | |
9191 | *) searchdir=`cd "$searchdir" && pwd` | |
9192 | case "$searchdir" in | |
9193 | */lib32 ) acl_libdirstem2=lib32 ;; | |
9194 | */lib64 ) acl_libdirstem3=lib64 ;; | |
9195 | esac ;; | |
9196 | esac | |
9197 | fi | |
9198 | done | |
9199 | IFS="$acl_save_IFS" | |
9200 | if test $HOST_CPU_C_ABI_32BIT = yes; then | |
9201 | # 32-bit ABI. | |
9202 | acl_libdirstem3= | |
9203 | fi | |
9204 | if test $HOST_CPU_C_ABI_32BIT = no; then | |
9205 | # 64-bit ABI. | |
9206 | acl_libdirstem2= | |
9207 | fi | |
9208 | fi | |
9209 | ;; | |
9210 | esac | |
9211 | test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem" | |
9212 | test -n "$acl_libdirstem3" || acl_libdirstem3="$acl_libdirstem" | |
9213 | acl_cv_libdirstems="$acl_libdirstem,$acl_libdirstem2,$acl_libdirstem3" | |
9214 | ||
9215 | fi | |
54445dc2 TT |
9216 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $acl_cv_libdirstems" >&5 |
9217 | printf "%s\n" "$acl_cv_libdirstems" >&6; } | |
bdcd5f22 TT |
9218 | acl_libdirstem=`echo "$acl_cv_libdirstems" | sed -e 's/,.*//'` |
9219 | acl_libdirstem2=`echo "$acl_cv_libdirstems" | sed -e 's/^[^,]*,//' -e 's/,.*//'` | |
9220 | acl_libdirstem3=`echo "$acl_cv_libdirstems" | sed -e 's/^[^,]*,[^,]*,//' -e 's/,.*//'` | |
d1154eb4 | 9221 | |
d1154eb4 | 9222 | |
b0cacab0 TT |
9223 | |
9224 | ||
9225 | ||
b0cacab0 TT |
9226 | |
9227 | ||
9228 | ||
57aa50d4 | 9229 | |
57aa50d4 | 9230 | |
b0cacab0 | 9231 | |
e598c29b | 9232 | use_additional=yes |
b0cacab0 | 9233 | |
e598c29b TT |
9234 | acl_save_prefix="$prefix" |
9235 | prefix="$acl_final_prefix" | |
9236 | acl_save_exec_prefix="$exec_prefix" | |
9237 | exec_prefix="$acl_final_exec_prefix" | |
57aa50d4 | 9238 | |
e598c29b TT |
9239 | eval additional_includedir=\"$includedir\" |
9240 | eval additional_libdir=\"$libdir\" | |
bdcd5f22 TT |
9241 | eval additional_libdir2=\"$exec_prefix/$acl_libdirstem2\" |
9242 | eval additional_libdir3=\"$exec_prefix/$acl_libdirstem3\" | |
57aa50d4 | 9243 | |
e598c29b TT |
9244 | exec_prefix="$acl_save_exec_prefix" |
9245 | prefix="$acl_save_prefix" | |
57aa50d4 | 9246 | |
b0cacab0 | 9247 | |
e598c29b | 9248 | # Check whether --with-libiconv-prefix was given. |
54445dc2 TT |
9249 | if test ${with_libiconv_prefix+y} |
9250 | then : | |
e598c29b TT |
9251 | withval=$with_libiconv_prefix; |
9252 | if test "X$withval" = "Xno"; then | |
9253 | use_additional=no | |
9254 | else | |
9255 | if test "X$withval" = "X"; then | |
57aa50d4 | 9256 | |
e598c29b TT |
9257 | acl_save_prefix="$prefix" |
9258 | prefix="$acl_final_prefix" | |
9259 | acl_save_exec_prefix="$exec_prefix" | |
9260 | exec_prefix="$acl_final_exec_prefix" | |
57aa50d4 | 9261 | |
e598c29b TT |
9262 | eval additional_includedir=\"$includedir\" |
9263 | eval additional_libdir=\"$libdir\" | |
bdcd5f22 TT |
9264 | eval additional_libdir2=\"$exec_prefix/$acl_libdirstem2\" |
9265 | eval additional_libdir3=\"$exec_prefix/$acl_libdirstem3\" | |
57aa50d4 | 9266 | |
e598c29b TT |
9267 | exec_prefix="$acl_save_exec_prefix" |
9268 | prefix="$acl_save_prefix" | |
b0cacab0 | 9269 | |
e598c29b TT |
9270 | else |
9271 | additional_includedir="$withval/include" | |
9272 | additional_libdir="$withval/$acl_libdirstem" | |
bdcd5f22 TT |
9273 | additional_libdir2="$withval/$acl_libdirstem2" |
9274 | additional_libdir3="$withval/$acl_libdirstem3" | |
e598c29b TT |
9275 | fi |
9276 | fi | |
d1154eb4 TT |
9277 | |
9278 | fi | |
e1052144 | 9279 | |
bdcd5f22 TT |
9280 | if test "X$additional_libdir2" = "X$additional_libdir"; then |
9281 | additional_libdir2= | |
9282 | fi | |
9283 | if test "X$additional_libdir3" = "X$additional_libdir"; then | |
9284 | additional_libdir3= | |
9285 | fi | |
e598c29b TT |
9286 | LIBICONV= |
9287 | LTLIBICONV= | |
9288 | INCICONV= | |
9289 | LIBICONV_PREFIX= | |
9290 | HAVE_LIBICONV= | |
9291 | rpathdirs= | |
9292 | ltrpathdirs= | |
9293 | names_already_handled= | |
9294 | names_next_round='iconv ' | |
9295 | while test -n "$names_next_round"; do | |
9296 | names_this_round="$names_next_round" | |
9297 | names_next_round= | |
9298 | for name in $names_this_round; do | |
9299 | already_handled= | |
9300 | for n in $names_already_handled; do | |
9301 | if test "$n" = "$name"; then | |
9302 | already_handled=yes | |
9303 | break | |
9304 | fi | |
9305 | done | |
9306 | if test -z "$already_handled"; then | |
9307 | names_already_handled="$names_already_handled $name" | |
9308 | uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'` | |
9309 | eval value=\"\$HAVE_LIB$uppername\" | |
9310 | if test -n "$value"; then | |
9311 | if test "$value" = yes; then | |
9312 | eval value=\"\$LIB$uppername\" | |
9313 | test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value" | |
9314 | eval value=\"\$LTLIB$uppername\" | |
9315 | test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value" | |
9316 | else | |
9317 | : | |
9318 | fi | |
9319 | else | |
9320 | found_dir= | |
9321 | found_la= | |
9322 | found_so= | |
9323 | found_a= | |
9324 | eval libname=\"$acl_libname_spec\" # typically: libname=lib$name | |
9325 | if test -n "$acl_shlibext"; then | |
9326 | shrext=".$acl_shlibext" # typically: shrext=.so | |
9327 | else | |
9328 | shrext= | |
9329 | fi | |
9330 | if test $use_additional = yes; then | |
bdcd5f22 TT |
9331 | for additional_libdir_variable in additional_libdir additional_libdir2 additional_libdir3; do |
9332 | if test "X$found_dir" = "X"; then | |
9333 | eval dir=\$$additional_libdir_variable | |
9334 | if test -n "$dir"; then | |
9335 | if test -n "$acl_shlibext"; then | |
9336 | if test -f "$dir/$libname$shrext" && acl_is_expected_elfclass < "$dir/$libname$shrext"; then | |
9337 | found_dir="$dir" | |
9338 | found_so="$dir/$libname$shrext" | |
9339 | else | |
9340 | if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then | |
9341 | ver=`(cd "$dir" && \ | |
9342 | for f in "$libname$shrext".*; do echo "$f"; done \ | |
9343 | | sed -e "s,^$libname$shrext\\\\.,," \ | |
9344 | | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ | |
9345 | | sed 1q ) 2>/dev/null` | |
9346 | if test -n "$ver" && test -f "$dir/$libname$shrext.$ver" && acl_is_expected_elfclass < "$dir/$libname$shrext.$ver"; then | |
9347 | found_dir="$dir" | |
9348 | found_so="$dir/$libname$shrext.$ver" | |
9349 | fi | |
9350 | else | |
9351 | eval library_names=\"$acl_library_names_spec\" | |
9352 | for f in $library_names; do | |
9353 | if test -f "$dir/$f" && acl_is_expected_elfclass < "$dir/$f"; then | |
9354 | found_dir="$dir" | |
9355 | found_so="$dir/$f" | |
9356 | break | |
9357 | fi | |
9358 | done | |
9359 | fi | |
9360 | fi | |
e598c29b | 9361 | fi |
bdcd5f22 TT |
9362 | if test "X$found_dir" = "X"; then |
9363 | if test -f "$dir/$libname.$acl_libext" && ${AR-ar} -p "$dir/$libname.$acl_libext" | acl_is_expected_elfclass; then | |
e598c29b | 9364 | found_dir="$dir" |
bdcd5f22 | 9365 | found_a="$dir/$libname.$acl_libext" |
e598c29b | 9366 | fi |
bdcd5f22 TT |
9367 | fi |
9368 | if test "X$found_dir" != "X"; then | |
9369 | if test -f "$dir/$libname.la"; then | |
9370 | found_la="$dir/$libname.la" | |
9371 | fi | |
9372 | fi | |
e598c29b TT |
9373 | fi |
9374 | fi | |
bdcd5f22 | 9375 | done |
e598c29b TT |
9376 | fi |
9377 | if test "X$found_dir" = "X"; then | |
9378 | for x in $LDFLAGS $LTLIBICONV; do | |
07a0db15 | 9379 | |
e598c29b TT |
9380 | acl_save_prefix="$prefix" |
9381 | prefix="$acl_final_prefix" | |
9382 | acl_save_exec_prefix="$exec_prefix" | |
9383 | exec_prefix="$acl_final_exec_prefix" | |
9384 | eval x=\"$x\" | |
9385 | exec_prefix="$acl_save_exec_prefix" | |
9386 | prefix="$acl_save_prefix" | |
50e1e10f | 9387 | |
e598c29b TT |
9388 | case "$x" in |
9389 | -L*) | |
9390 | dir=`echo "X$x" | sed -e 's/^X-L//'` | |
9391 | if test -n "$acl_shlibext"; then | |
bdcd5f22 | 9392 | if test -f "$dir/$libname$shrext" && acl_is_expected_elfclass < "$dir/$libname$shrext"; then |
e598c29b TT |
9393 | found_dir="$dir" |
9394 | found_so="$dir/$libname$shrext" | |
9395 | else | |
9396 | if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then | |
9397 | ver=`(cd "$dir" && \ | |
9398 | for f in "$libname$shrext".*; do echo "$f"; done \ | |
9399 | | sed -e "s,^$libname$shrext\\\\.,," \ | |
9400 | | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ | |
9401 | | sed 1q ) 2>/dev/null` | |
bdcd5f22 | 9402 | if test -n "$ver" && test -f "$dir/$libname$shrext.$ver" && acl_is_expected_elfclass < "$dir/$libname$shrext.$ver"; then |
e598c29b TT |
9403 | found_dir="$dir" |
9404 | found_so="$dir/$libname$shrext.$ver" | |
9405 | fi | |
9406 | else | |
9407 | eval library_names=\"$acl_library_names_spec\" | |
9408 | for f in $library_names; do | |
bdcd5f22 | 9409 | if test -f "$dir/$f" && acl_is_expected_elfclass < "$dir/$f"; then |
e598c29b TT |
9410 | found_dir="$dir" |
9411 | found_so="$dir/$f" | |
9412 | break | |
9413 | fi | |
9414 | done | |
9415 | fi | |
9416 | fi | |
9417 | fi | |
9418 | if test "X$found_dir" = "X"; then | |
bdcd5f22 | 9419 | if test -f "$dir/$libname.$acl_libext" && ${AR-ar} -p "$dir/$libname.$acl_libext" | acl_is_expected_elfclass; then |
e598c29b TT |
9420 | found_dir="$dir" |
9421 | found_a="$dir/$libname.$acl_libext" | |
9422 | fi | |
9423 | fi | |
9424 | if test "X$found_dir" != "X"; then | |
9425 | if test -f "$dir/$libname.la"; then | |
9426 | found_la="$dir/$libname.la" | |
9427 | fi | |
9428 | fi | |
9429 | ;; | |
9430 | esac | |
9431 | if test "X$found_dir" != "X"; then | |
9432 | break | |
9433 | fi | |
9434 | done | |
9435 | fi | |
9436 | if test "X$found_dir" != "X"; then | |
9437 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name" | |
9438 | if test "X$found_so" != "X"; then | |
9439 | if test "$enable_rpath" = no \ | |
9440 | || test "X$found_dir" = "X/usr/$acl_libdirstem" \ | |
bdcd5f22 TT |
9441 | || test "X$found_dir" = "X/usr/$acl_libdirstem2" \ |
9442 | || test "X$found_dir" = "X/usr/$acl_libdirstem3"; then | |
e598c29b TT |
9443 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" |
9444 | else | |
9445 | haveit= | |
9446 | for x in $ltrpathdirs; do | |
9447 | if test "X$x" = "X$found_dir"; then | |
9448 | haveit=yes | |
9449 | break | |
9450 | fi | |
9451 | done | |
9452 | if test -z "$haveit"; then | |
9453 | ltrpathdirs="$ltrpathdirs $found_dir" | |
9454 | fi | |
9455 | if test "$acl_hardcode_direct" = yes; then | |
9456 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" | |
9457 | else | |
9458 | if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then | |
9459 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" | |
9460 | haveit= | |
9461 | for x in $rpathdirs; do | |
9462 | if test "X$x" = "X$found_dir"; then | |
9463 | haveit=yes | |
9464 | break | |
9465 | fi | |
9466 | done | |
9467 | if test -z "$haveit"; then | |
9468 | rpathdirs="$rpathdirs $found_dir" | |
9469 | fi | |
9470 | else | |
9471 | haveit= | |
9472 | for x in $LDFLAGS $LIBICONV; do | |
93613951 | 9473 | |
e598c29b TT |
9474 | acl_save_prefix="$prefix" |
9475 | prefix="$acl_final_prefix" | |
9476 | acl_save_exec_prefix="$exec_prefix" | |
9477 | exec_prefix="$acl_final_exec_prefix" | |
9478 | eval x=\"$x\" | |
9479 | exec_prefix="$acl_save_exec_prefix" | |
9480 | prefix="$acl_save_prefix" | |
b0cacab0 | 9481 | |
e598c29b TT |
9482 | if test "X$x" = "X-L$found_dir"; then |
9483 | haveit=yes | |
9484 | break | |
9485 | fi | |
9486 | done | |
9487 | if test -z "$haveit"; then | |
9488 | LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir" | |
9489 | fi | |
9490 | if test "$acl_hardcode_minus_L" != no; then | |
9491 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" | |
9492 | else | |
9493 | LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" | |
9494 | fi | |
9495 | fi | |
9496 | fi | |
9497 | fi | |
9498 | else | |
9499 | if test "X$found_a" != "X"; then | |
9500 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a" | |
9501 | else | |
9502 | LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name" | |
9503 | fi | |
9504 | fi | |
9505 | additional_includedir= | |
9506 | case "$found_dir" in | |
9507 | */$acl_libdirstem | */$acl_libdirstem/) | |
9508 | basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'` | |
9509 | if test "$name" = 'iconv'; then | |
9510 | LIBICONV_PREFIX="$basedir" | |
9511 | fi | |
9512 | additional_includedir="$basedir/include" | |
9513 | ;; | |
9514 | */$acl_libdirstem2 | */$acl_libdirstem2/) | |
9515 | basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'` | |
9516 | if test "$name" = 'iconv'; then | |
9517 | LIBICONV_PREFIX="$basedir" | |
9518 | fi | |
9519 | additional_includedir="$basedir/include" | |
9520 | ;; | |
bdcd5f22 TT |
9521 | */$acl_libdirstem3 | */$acl_libdirstem3/) |
9522 | basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem3/"'*$,,'` | |
9523 | if test "$name" = 'iconv'; then | |
9524 | LIBICONV_PREFIX="$basedir" | |
9525 | fi | |
9526 | additional_includedir="$basedir/include" | |
9527 | ;; | |
e598c29b TT |
9528 | esac |
9529 | if test "X$additional_includedir" != "X"; then | |
9530 | if test "X$additional_includedir" != "X/usr/include"; then | |
9531 | haveit= | |
9532 | if test "X$additional_includedir" = "X/usr/local/include"; then | |
9533 | if test -n "$GCC"; then | |
9534 | case $host_os in | |
9535 | linux* | gnu* | k*bsd*-gnu) haveit=yes;; | |
9536 | esac | |
9537 | fi | |
9538 | fi | |
9539 | if test -z "$haveit"; then | |
9540 | for x in $CPPFLAGS $INCICONV; do | |
93613951 | 9541 | |
e598c29b TT |
9542 | acl_save_prefix="$prefix" |
9543 | prefix="$acl_final_prefix" | |
9544 | acl_save_exec_prefix="$exec_prefix" | |
9545 | exec_prefix="$acl_final_exec_prefix" | |
9546 | eval x=\"$x\" | |
9547 | exec_prefix="$acl_save_exec_prefix" | |
9548 | prefix="$acl_save_prefix" | |
93613951 | 9549 | |
e598c29b TT |
9550 | if test "X$x" = "X-I$additional_includedir"; then |
9551 | haveit=yes | |
9552 | break | |
9553 | fi | |
9554 | done | |
9555 | if test -z "$haveit"; then | |
9556 | if test -d "$additional_includedir"; then | |
9557 | INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir" | |
9558 | fi | |
9559 | fi | |
9560 | fi | |
9561 | fi | |
9562 | fi | |
9563 | if test -n "$found_la"; then | |
9564 | save_libdir="$libdir" | |
9565 | case "$found_la" in | |
9566 | */* | *\\*) . "$found_la" ;; | |
9567 | *) . "./$found_la" ;; | |
9568 | esac | |
9569 | libdir="$save_libdir" | |
9570 | for dep in $dependency_libs; do | |
9571 | case "$dep" in | |
9572 | -L*) | |
bdcd5f22 TT |
9573 | dependency_libdir=`echo "X$dep" | sed -e 's/^X-L//'` |
9574 | if test "X$dependency_libdir" != "X/usr/$acl_libdirstem" \ | |
9575 | && test "X$dependency_libdir" != "X/usr/$acl_libdirstem2" \ | |
9576 | && test "X$dependency_libdir" != "X/usr/$acl_libdirstem3"; then | |
e598c29b | 9577 | haveit= |
bdcd5f22 TT |
9578 | if test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem" \ |
9579 | || test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem2" \ | |
9580 | || test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem3"; then | |
e598c29b TT |
9581 | if test -n "$GCC"; then |
9582 | case $host_os in | |
9583 | linux* | gnu* | k*bsd*-gnu) haveit=yes;; | |
9584 | esac | |
9585 | fi | |
9586 | fi | |
9587 | if test -z "$haveit"; then | |
9588 | haveit= | |
9589 | for x in $LDFLAGS $LIBICONV; do | |
b0cacab0 | 9590 | |
e598c29b TT |
9591 | acl_save_prefix="$prefix" |
9592 | prefix="$acl_final_prefix" | |
9593 | acl_save_exec_prefix="$exec_prefix" | |
9594 | exec_prefix="$acl_final_exec_prefix" | |
9595 | eval x=\"$x\" | |
9596 | exec_prefix="$acl_save_exec_prefix" | |
9597 | prefix="$acl_save_prefix" | |
50e1e10f | 9598 | |
bdcd5f22 | 9599 | if test "X$x" = "X-L$dependency_libdir"; then |
e598c29b TT |
9600 | haveit=yes |
9601 | break | |
9602 | fi | |
9603 | done | |
9604 | if test -z "$haveit"; then | |
bdcd5f22 TT |
9605 | if test -d "$dependency_libdir"; then |
9606 | LIBICONV="${LIBICONV}${LIBICONV:+ }-L$dependency_libdir" | |
e598c29b TT |
9607 | fi |
9608 | fi | |
9609 | haveit= | |
9610 | for x in $LDFLAGS $LTLIBICONV; do | |
e1052144 | 9611 | |
e598c29b TT |
9612 | acl_save_prefix="$prefix" |
9613 | prefix="$acl_final_prefix" | |
9614 | acl_save_exec_prefix="$exec_prefix" | |
9615 | exec_prefix="$acl_final_exec_prefix" | |
9616 | eval x=\"$x\" | |
9617 | exec_prefix="$acl_save_exec_prefix" | |
9618 | prefix="$acl_save_prefix" | |
9619 | ||
bdcd5f22 | 9620 | if test "X$x" = "X-L$dependency_libdir"; then |
e598c29b TT |
9621 | haveit=yes |
9622 | break | |
9623 | fi | |
9624 | done | |
9625 | if test -z "$haveit"; then | |
bdcd5f22 TT |
9626 | if test -d "$dependency_libdir"; then |
9627 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$dependency_libdir" | |
e598c29b TT |
9628 | fi |
9629 | fi | |
9630 | fi | |
9631 | fi | |
9632 | ;; | |
9633 | -R*) | |
9634 | dir=`echo "X$dep" | sed -e 's/^X-R//'` | |
9635 | if test "$enable_rpath" != no; then | |
9636 | haveit= | |
9637 | for x in $rpathdirs; do | |
9638 | if test "X$x" = "X$dir"; then | |
9639 | haveit=yes | |
9640 | break | |
9641 | fi | |
9642 | done | |
9643 | if test -z "$haveit"; then | |
9644 | rpathdirs="$rpathdirs $dir" | |
9645 | fi | |
9646 | haveit= | |
9647 | for x in $ltrpathdirs; do | |
9648 | if test "X$x" = "X$dir"; then | |
9649 | haveit=yes | |
9650 | break | |
9651 | fi | |
9652 | done | |
9653 | if test -z "$haveit"; then | |
9654 | ltrpathdirs="$ltrpathdirs $dir" | |
9655 | fi | |
9656 | fi | |
9657 | ;; | |
9658 | -l*) | |
5598a968 EB |
9659 | dep=`echo "X$dep" | sed -e 's/^X-l//'` |
9660 | if test "X$dep" != Xc \ | |
9661 | || case $host_os in | |
9662 | linux* | gnu* | k*bsd*-gnu) false ;; | |
9663 | *) true ;; | |
9664 | esac; then | |
9665 | names_next_round="$names_next_round $dep" | |
9666 | fi | |
e598c29b TT |
9667 | ;; |
9668 | *.la) | |
9669 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` | |
9670 | ;; | |
9671 | *) | |
9672 | LIBICONV="${LIBICONV}${LIBICONV:+ }$dep" | |
9673 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep" | |
9674 | ;; | |
9675 | esac | |
9676 | done | |
9677 | fi | |
9678 | else | |
9679 | LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" | |
9680 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name" | |
9681 | fi | |
9682 | fi | |
9683 | fi | |
9684 | done | |
93613951 | 9685 | done |
e598c29b TT |
9686 | if test "X$rpathdirs" != "X"; then |
9687 | if test -n "$acl_hardcode_libdir_separator"; then | |
9688 | alldirs= | |
9689 | for found_dir in $rpathdirs; do | |
9690 | alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir" | |
9691 | done | |
9692 | acl_save_libdir="$libdir" | |
9693 | libdir="$alldirs" | |
9694 | eval flag=\"$acl_hardcode_libdir_flag_spec\" | |
9695 | libdir="$acl_save_libdir" | |
9696 | LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" | |
9697 | else | |
9698 | for found_dir in $rpathdirs; do | |
9699 | acl_save_libdir="$libdir" | |
9700 | libdir="$found_dir" | |
9701 | eval flag=\"$acl_hardcode_libdir_flag_spec\" | |
9702 | libdir="$acl_save_libdir" | |
9703 | LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" | |
9704 | done | |
9705 | fi | |
9706 | fi | |
9707 | if test "X$ltrpathdirs" != "X"; then | |
9708 | for found_dir in $ltrpathdirs; do | |
9709 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir" | |
9710 | done | |
9711 | fi | |
b0cacab0 | 9712 | |
93613951 | 9713 | |
93613951 | 9714 | |
57aa50d4 TT |
9715 | |
9716 | ||
9717 | ||
9718 | ||
9719 | ||
9720 | ||
9721 | ||
9722 | ||
9723 | ||
9724 | ||
9725 | ||
b0cacab0 | 9726 | |
740837de | 9727 | |
b0cacab0 TT |
9728 | |
9729 | ||
9730 | ||
93613951 TT |
9731 | |
9732 | ||
9733 | ||
9734 | ||
9735 | ||
9736 | ||
9737 | ||
93613951 TT |
9738 | |
9739 | ||
9740 | ||
54445dc2 TT |
9741 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5 |
9742 | printf %s "checking for CFPreferencesCopyAppValue... " >&6; } | |
9743 | if test ${gt_cv_func_CFPreferencesCopyAppValue+y} | |
9744 | then : | |
9745 | printf %s "(cached) " >&6 | |
9746 | else $as_nop | |
93613951 TT |
9747 | gt_save_LIBS="$LIBS" |
9748 | LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation" | |
9749 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9750 | /* end confdefs.h. */ | |
9751 | #include <CoreFoundation/CFPreferences.h> | |
9752 | int | |
54445dc2 | 9753 | main (void) |
93613951 TT |
9754 | { |
9755 | CFPreferencesCopyAppValue(NULL, NULL) | |
9756 | ; | |
9757 | return 0; | |
9758 | } | |
9759 | _ACEOF | |
54445dc2 TT |
9760 | if ac_fn_c_try_link "$LINENO" |
9761 | then : | |
93613951 | 9762 | gt_cv_func_CFPreferencesCopyAppValue=yes |
54445dc2 | 9763 | else $as_nop |
93613951 | 9764 | gt_cv_func_CFPreferencesCopyAppValue=no |
50e1e10f | 9765 | fi |
54445dc2 | 9766 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
93613951 TT |
9767 | conftest$ac_exeext conftest.$ac_ext |
9768 | LIBS="$gt_save_LIBS" | |
50e1e10f | 9769 | fi |
54445dc2 TT |
9770 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5 |
9771 | printf "%s\n" "$gt_cv_func_CFPreferencesCopyAppValue" >&6; } | |
93613951 TT |
9772 | if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then |
9773 | ||
54445dc2 | 9774 | printf "%s\n" "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h |
93613951 TT |
9775 | |
9776 | fi | |
54445dc2 TT |
9777 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyPreferredLanguages" >&5 |
9778 | printf %s "checking for CFLocaleCopyPreferredLanguages... " >&6; } | |
9779 | if test ${gt_cv_func_CFLocaleCopyPreferredLanguages+y} | |
9780 | then : | |
9781 | printf %s "(cached) " >&6 | |
9782 | else $as_nop | |
93613951 TT |
9783 | gt_save_LIBS="$LIBS" |
9784 | LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation" | |
9785 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9786 | /* end confdefs.h. */ | |
9787 | #include <CoreFoundation/CFLocale.h> | |
9788 | int | |
54445dc2 | 9789 | main (void) |
93613951 | 9790 | { |
bdcd5f22 | 9791 | CFLocaleCopyPreferredLanguages(); |
93613951 TT |
9792 | ; |
9793 | return 0; | |
9794 | } | |
9795 | _ACEOF | |
54445dc2 TT |
9796 | if ac_fn_c_try_link "$LINENO" |
9797 | then : | |
bdcd5f22 | 9798 | gt_cv_func_CFLocaleCopyPreferredLanguages=yes |
54445dc2 | 9799 | else $as_nop |
bdcd5f22 | 9800 | gt_cv_func_CFLocaleCopyPreferredLanguages=no |
93613951 | 9801 | fi |
54445dc2 | 9802 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
93613951 TT |
9803 | conftest$ac_exeext conftest.$ac_ext |
9804 | LIBS="$gt_save_LIBS" | |
9805 | fi | |
54445dc2 TT |
9806 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyPreferredLanguages" >&5 |
9807 | printf "%s\n" "$gt_cv_func_CFLocaleCopyPreferredLanguages" >&6; } | |
bdcd5f22 | 9808 | if test $gt_cv_func_CFLocaleCopyPreferredLanguages = yes; then |
93613951 | 9809 | |
54445dc2 | 9810 | printf "%s\n" "#define HAVE_CFLOCALECOPYPREFERREDLANGUAGES 1" >>confdefs.h |
93613951 TT |
9811 | |
9812 | fi | |
9813 | INTL_MACOSX_LIBS= | |
bdcd5f22 TT |
9814 | if test $gt_cv_func_CFPreferencesCopyAppValue = yes \ |
9815 | || test $gt_cv_func_CFLocaleCopyPreferredLanguages = yes; then | |
93613951 TT |
9816 | INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation" |
9817 | fi | |
9818 | ||
50e1e10f | 9819 | |
b0cacab0 TT |
9820 | |
9821 | ||
9822 | ||
9823 | ||
57aa50d4 TT |
9824 | LIBINTL= |
9825 | LTLIBINTL= | |
9826 | POSUB= | |
9827 | ||
93613951 TT |
9828 | case " $gt_needs " in |
9829 | *" need-formatstring-macros "*) gt_api_version=3 ;; | |
9830 | *" need-ngettext "*) gt_api_version=2 ;; | |
9831 | *) gt_api_version=1 ;; | |
9832 | esac | |
9833 | gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc" | |
9834 | gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl" | |
9835 | ||
57aa50d4 TT |
9836 | if test "$USE_NLS" = "yes"; then |
9837 | gt_use_preinstalled_gnugettext=no | |
b0cacab0 TT |
9838 | |
9839 | ||
e598c29b TT |
9840 | if test $gt_api_version -ge 3; then |
9841 | gt_revision_test_code=' | |
9842 | #ifndef __GNU_GETTEXT_SUPPORTED_REVISION | |
9843 | #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1) | |
9844 | #endif | |
9845 | typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1]; | |
9846 | ' | |
9847 | else | |
9848 | gt_revision_test_code= | |
9849 | fi | |
9850 | if test $gt_api_version -ge 2; then | |
9851 | gt_expression_test_code=' + * ngettext ("", "", 0)' | |
9852 | else | |
9853 | gt_expression_test_code= | |
9854 | fi | |
9855 | ||
54445dc2 TT |
9856 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5 |
9857 | printf %s "checking for GNU gettext in libc... " >&6; } | |
9858 | if eval test \${$gt_func_gnugettext_libc+y} | |
9859 | then : | |
9860 | printf %s "(cached) " >&6 | |
9861 | else $as_nop | |
e598c29b TT |
9862 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
9863 | /* end confdefs.h. */ | |
9864 | ||
9865 | #include <libintl.h> | |
9866 | #ifndef __GNU_GETTEXT_SUPPORTED_REVISION | |
9867 | extern int _nl_msg_cat_cntr; | |
9868 | extern int *_nl_domain_bindings; | |
9869 | #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_domain_bindings) | |
9870 | #else | |
9871 | #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0 | |
9872 | #endif | |
9873 | $gt_revision_test_code | |
9874 | ||
9875 | int | |
54445dc2 | 9876 | main (void) |
e598c29b TT |
9877 | { |
9878 | ||
9879 | bindtextdomain ("", ""); | |
9880 | return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION | |
9881 | ||
9882 | ; | |
9883 | return 0; | |
9884 | } | |
9885 | _ACEOF | |
54445dc2 TT |
9886 | if ac_fn_c_try_link "$LINENO" |
9887 | then : | |
e598c29b | 9888 | eval "$gt_func_gnugettext_libc=yes" |
54445dc2 | 9889 | else $as_nop |
e598c29b TT |
9890 | eval "$gt_func_gnugettext_libc=no" |
9891 | fi | |
54445dc2 | 9892 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
e598c29b | 9893 | conftest$ac_exeext conftest.$ac_ext |
50e1e10f | 9894 | fi |
e598c29b | 9895 | eval ac_res=\$$gt_func_gnugettext_libc |
54445dc2 TT |
9896 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
9897 | printf "%s\n" "$ac_res" >&6; } | |
50e1e10f | 9898 | |
e598c29b TT |
9899 | if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then |
9900 | ||
9901 | ||
9902 | ||
9903 | ||
9904 | ||
9905 | am_save_CPPFLAGS="$CPPFLAGS" | |
9906 | ||
9907 | for element in $INCICONV; do | |
9908 | haveit= | |
9909 | for x in $CPPFLAGS; do | |
9910 | ||
9911 | acl_save_prefix="$prefix" | |
9912 | prefix="$acl_final_prefix" | |
9913 | acl_save_exec_prefix="$exec_prefix" | |
9914 | exec_prefix="$acl_final_exec_prefix" | |
9915 | eval x=\"$x\" | |
9916 | exec_prefix="$acl_save_exec_prefix" | |
9917 | prefix="$acl_save_prefix" | |
9918 | ||
9919 | if test "X$x" = "X$element"; then | |
9920 | haveit=yes | |
9921 | break | |
9922 | fi | |
9923 | done | |
9924 | if test -z "$haveit"; then | |
9925 | CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" | |
9926 | fi | |
9927 | done | |
9928 | ||
9929 | ||
54445dc2 TT |
9930 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5 |
9931 | printf %s "checking for iconv... " >&6; } | |
9932 | if test ${am_cv_func_iconv+y} | |
9933 | then : | |
9934 | printf %s "(cached) " >&6 | |
9935 | else $as_nop | |
e598c29b TT |
9936 | |
9937 | am_cv_func_iconv="no, consider installing GNU libiconv" | |
9938 | am_cv_lib_iconv=no | |
9939 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9940 | /* end confdefs.h. */ | |
9941 | ||
9942 | #include <stdlib.h> | |
9943 | #include <iconv.h> | |
b0cacab0 | 9944 | |
e598c29b | 9945 | int |
54445dc2 | 9946 | main (void) |
e598c29b TT |
9947 | { |
9948 | iconv_t cd = iconv_open("",""); | |
9949 | iconv(cd,NULL,NULL,NULL,NULL); | |
9950 | iconv_close(cd); | |
9951 | ; | |
9952 | return 0; | |
9953 | } | |
9954 | _ACEOF | |
54445dc2 TT |
9955 | if ac_fn_c_try_link "$LINENO" |
9956 | then : | |
e598c29b TT |
9957 | am_cv_func_iconv=yes |
9958 | fi | |
54445dc2 | 9959 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
e598c29b TT |
9960 | conftest$ac_exeext conftest.$ac_ext |
9961 | if test "$am_cv_func_iconv" != yes; then | |
9962 | am_save_LIBS="$LIBS" | |
9963 | LIBS="$LIBS $LIBICONV" | |
9964 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9965 | /* end confdefs.h. */ | |
b0cacab0 | 9966 | |
e598c29b TT |
9967 | #include <stdlib.h> |
9968 | #include <iconv.h> | |
b0cacab0 | 9969 | |
e598c29b | 9970 | int |
54445dc2 | 9971 | main (void) |
e598c29b TT |
9972 | { |
9973 | iconv_t cd = iconv_open("",""); | |
9974 | iconv(cd,NULL,NULL,NULL,NULL); | |
9975 | iconv_close(cd); | |
9976 | ; | |
9977 | return 0; | |
9978 | } | |
9979 | _ACEOF | |
54445dc2 TT |
9980 | if ac_fn_c_try_link "$LINENO" |
9981 | then : | |
e598c29b TT |
9982 | am_cv_lib_iconv=yes |
9983 | am_cv_func_iconv=yes | |
9984 | fi | |
54445dc2 | 9985 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
e598c29b TT |
9986 | conftest$ac_exeext conftest.$ac_ext |
9987 | LIBS="$am_save_LIBS" | |
9988 | fi | |
b0cacab0 | 9989 | |
e598c29b | 9990 | fi |
54445dc2 TT |
9991 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5 |
9992 | printf "%s\n" "$am_cv_func_iconv" >&6; } | |
e598c29b | 9993 | if test "$am_cv_func_iconv" = yes; then |
54445dc2 TT |
9994 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5 |
9995 | printf %s "checking for working iconv... " >&6; } | |
9996 | if test ${am_cv_func_iconv_works+y} | |
9997 | then : | |
9998 | printf %s "(cached) " >&6 | |
9999 | else $as_nop | |
e598c29b TT |
10000 | |
10001 | am_save_LIBS="$LIBS" | |
10002 | if test $am_cv_lib_iconv = yes; then | |
10003 | LIBS="$LIBS $LIBICONV" | |
10004 | fi | |
10005 | am_cv_func_iconv_works=no | |
10006 | for ac_iconv_const in '' 'const'; do | |
54445dc2 TT |
10007 | if test "$cross_compiling" = yes |
10008 | then : | |
e598c29b TT |
10009 | case "$host_os" in |
10010 | aix* | hpux*) am_cv_func_iconv_works="guessing no" ;; | |
10011 | *) am_cv_func_iconv_works="guessing yes" ;; | |
10012 | esac | |
54445dc2 | 10013 | else $as_nop |
57aa50d4 TT |
10014 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
10015 | /* end confdefs.h. */ | |
93613951 | 10016 | |
e598c29b TT |
10017 | #include <iconv.h> |
10018 | #include <string.h> | |
10019 | ||
10020 | #ifndef ICONV_CONST | |
10021 | # define ICONV_CONST $ac_iconv_const | |
10022 | #endif | |
93613951 | 10023 | |
57aa50d4 | 10024 | int |
54445dc2 | 10025 | main (void) |
57aa50d4 | 10026 | { |
e598c29b | 10027 | int result = 0; |
5598a968 EB |
10028 | /* Test against AIX 5.1...7.2 bug: Failures are not distinguishable from |
10029 | successful returns. This is even documented in | |
10030 | <https://www.ibm.com/support/knowledgecenter/ssw_aix_72/i_bostechref/iconv.html> */ | |
e598c29b TT |
10031 | { |
10032 | iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8"); | |
10033 | if (cd_utf8_to_88591 != (iconv_t)(-1)) | |
10034 | { | |
10035 | static ICONV_CONST char input[] = "\342\202\254"; /* EURO SIGN */ | |
10036 | char buf[10]; | |
10037 | ICONV_CONST char *inptr = input; | |
10038 | size_t inbytesleft = strlen (input); | |
10039 | char *outptr = buf; | |
10040 | size_t outbytesleft = sizeof (buf); | |
10041 | size_t res = iconv (cd_utf8_to_88591, | |
10042 | &inptr, &inbytesleft, | |
10043 | &outptr, &outbytesleft); | |
10044 | if (res == 0) | |
10045 | result |= 1; | |
10046 | iconv_close (cd_utf8_to_88591); | |
10047 | } | |
10048 | } | |
10049 | /* Test against Solaris 10 bug: Failures are not distinguishable from | |
10050 | successful returns. */ | |
10051 | { | |
10052 | iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646"); | |
10053 | if (cd_ascii_to_88591 != (iconv_t)(-1)) | |
10054 | { | |
10055 | static ICONV_CONST char input[] = "\263"; | |
10056 | char buf[10]; | |
10057 | ICONV_CONST char *inptr = input; | |
10058 | size_t inbytesleft = strlen (input); | |
10059 | char *outptr = buf; | |
10060 | size_t outbytesleft = sizeof (buf); | |
10061 | size_t res = iconv (cd_ascii_to_88591, | |
10062 | &inptr, &inbytesleft, | |
10063 | &outptr, &outbytesleft); | |
10064 | if (res == 0) | |
10065 | result |= 2; | |
10066 | iconv_close (cd_ascii_to_88591); | |
10067 | } | |
10068 | } | |
10069 | /* Test against AIX 6.1..7.1 bug: Buffer overrun. */ | |
10070 | { | |
10071 | iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1"); | |
10072 | if (cd_88591_to_utf8 != (iconv_t)(-1)) | |
10073 | { | |
10074 | static ICONV_CONST char input[] = "\304"; | |
10075 | static char buf[2] = { (char)0xDE, (char)0xAD }; | |
10076 | ICONV_CONST char *inptr = input; | |
10077 | size_t inbytesleft = 1; | |
10078 | char *outptr = buf; | |
10079 | size_t outbytesleft = 1; | |
10080 | size_t res = iconv (cd_88591_to_utf8, | |
10081 | &inptr, &inbytesleft, | |
10082 | &outptr, &outbytesleft); | |
10083 | if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD) | |
10084 | result |= 4; | |
10085 | iconv_close (cd_88591_to_utf8); | |
10086 | } | |
10087 | } | |
10088 | #if 0 /* This bug could be worked around by the caller. */ | |
10089 | /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */ | |
10090 | { | |
10091 | iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591"); | |
10092 | if (cd_88591_to_utf8 != (iconv_t)(-1)) | |
10093 | { | |
10094 | static ICONV_CONST char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337"; | |
10095 | char buf[50]; | |
10096 | ICONV_CONST char *inptr = input; | |
10097 | size_t inbytesleft = strlen (input); | |
10098 | char *outptr = buf; | |
10099 | size_t outbytesleft = sizeof (buf); | |
10100 | size_t res = iconv (cd_88591_to_utf8, | |
10101 | &inptr, &inbytesleft, | |
10102 | &outptr, &outbytesleft); | |
10103 | if ((int)res > 0) | |
10104 | result |= 8; | |
10105 | iconv_close (cd_88591_to_utf8); | |
10106 | } | |
10107 | } | |
10108 | #endif | |
10109 | /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is | |
10110 | provided. */ | |
bdcd5f22 TT |
10111 | { |
10112 | /* Try standardized names. */ | |
10113 | iconv_t cd1 = iconv_open ("UTF-8", "EUC-JP"); | |
10114 | /* Try IRIX, OSF/1 names. */ | |
10115 | iconv_t cd2 = iconv_open ("UTF-8", "eucJP"); | |
10116 | /* Try AIX names. */ | |
10117 | iconv_t cd3 = iconv_open ("UTF-8", "IBM-eucJP"); | |
10118 | /* Try HP-UX names. */ | |
10119 | iconv_t cd4 = iconv_open ("utf8", "eucJP"); | |
10120 | if (cd1 == (iconv_t)(-1) && cd2 == (iconv_t)(-1) | |
10121 | && cd3 == (iconv_t)(-1) && cd4 == (iconv_t)(-1)) | |
10122 | result |= 16; | |
10123 | if (cd1 != (iconv_t)(-1)) | |
10124 | iconv_close (cd1); | |
10125 | if (cd2 != (iconv_t)(-1)) | |
10126 | iconv_close (cd2); | |
10127 | if (cd3 != (iconv_t)(-1)) | |
10128 | iconv_close (cd3); | |
10129 | if (cd4 != (iconv_t)(-1)) | |
10130 | iconv_close (cd4); | |
10131 | } | |
e598c29b | 10132 | return result; |
93613951 | 10133 | |
57aa50d4 TT |
10134 | ; |
10135 | return 0; | |
10136 | } | |
10137 | _ACEOF | |
54445dc2 TT |
10138 | if ac_fn_c_try_run "$LINENO" |
10139 | then : | |
e598c29b | 10140 | am_cv_func_iconv_works=yes |
57aa50d4 | 10141 | fi |
e598c29b TT |
10142 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
10143 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
57aa50d4 | 10144 | fi |
93613951 | 10145 | |
e598c29b TT |
10146 | test "$am_cv_func_iconv_works" = no || break |
10147 | done | |
10148 | LIBS="$am_save_LIBS" | |
10149 | ||
10150 | fi | |
54445dc2 TT |
10151 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5 |
10152 | printf "%s\n" "$am_cv_func_iconv_works" >&6; } | |
e598c29b TT |
10153 | case "$am_cv_func_iconv_works" in |
10154 | *no) am_func_iconv=no am_cv_lib_iconv=no ;; | |
10155 | *) am_func_iconv=yes ;; | |
10156 | esac | |
10157 | else | |
10158 | am_func_iconv=no am_cv_lib_iconv=no | |
10159 | fi | |
10160 | if test "$am_func_iconv" = yes; then | |
10161 | ||
54445dc2 | 10162 | printf "%s\n" "#define HAVE_ICONV 1" >>confdefs.h |
e598c29b TT |
10163 | |
10164 | fi | |
10165 | if test "$am_cv_lib_iconv" = yes; then | |
54445dc2 TT |
10166 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5 |
10167 | printf %s "checking how to link with libiconv... " >&6; } | |
10168 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5 | |
10169 | printf "%s\n" "$LIBICONV" >&6; } | |
e598c29b TT |
10170 | else |
10171 | CPPFLAGS="$am_save_CPPFLAGS" | |
10172 | LIBICONV= | |
10173 | LTLIBICONV= | |
10174 | fi | |
10175 | ||
10176 | ||
10177 | ||
93613951 TT |
10178 | |
10179 | ||
10180 | ||
10181 | ||
b0cacab0 TT |
10182 | |
10183 | ||
10184 | ||
57aa50d4 | 10185 | use_additional=yes |
b0cacab0 | 10186 | |
57aa50d4 TT |
10187 | acl_save_prefix="$prefix" |
10188 | prefix="$acl_final_prefix" | |
10189 | acl_save_exec_prefix="$exec_prefix" | |
10190 | exec_prefix="$acl_final_exec_prefix" | |
b0cacab0 | 10191 | |
57aa50d4 TT |
10192 | eval additional_includedir=\"$includedir\" |
10193 | eval additional_libdir=\"$libdir\" | |
bdcd5f22 TT |
10194 | eval additional_libdir2=\"$exec_prefix/$acl_libdirstem2\" |
10195 | eval additional_libdir3=\"$exec_prefix/$acl_libdirstem3\" | |
b0cacab0 | 10196 | |
57aa50d4 TT |
10197 | exec_prefix="$acl_save_exec_prefix" |
10198 | prefix="$acl_save_prefix" | |
b0cacab0 TT |
10199 | |
10200 | ||
57aa50d4 | 10201 | # Check whether --with-libintl-prefix was given. |
54445dc2 TT |
10202 | if test ${with_libintl_prefix+y} |
10203 | then : | |
57aa50d4 TT |
10204 | withval=$with_libintl_prefix; |
10205 | if test "X$withval" = "Xno"; then | |
10206 | use_additional=no | |
10207 | else | |
10208 | if test "X$withval" = "X"; then | |
b0cacab0 | 10209 | |
57aa50d4 TT |
10210 | acl_save_prefix="$prefix" |
10211 | prefix="$acl_final_prefix" | |
10212 | acl_save_exec_prefix="$exec_prefix" | |
10213 | exec_prefix="$acl_final_exec_prefix" | |
b0cacab0 | 10214 | |
57aa50d4 TT |
10215 | eval additional_includedir=\"$includedir\" |
10216 | eval additional_libdir=\"$libdir\" | |
bdcd5f22 TT |
10217 | eval additional_libdir2=\"$exec_prefix/$acl_libdirstem2\" |
10218 | eval additional_libdir3=\"$exec_prefix/$acl_libdirstem3\" | |
7321d94e | 10219 | |
57aa50d4 TT |
10220 | exec_prefix="$acl_save_exec_prefix" |
10221 | prefix="$acl_save_prefix" | |
7321d94e | 10222 | |
57aa50d4 TT |
10223 | else |
10224 | additional_includedir="$withval/include" | |
93613951 | 10225 | additional_libdir="$withval/$acl_libdirstem" |
bdcd5f22 TT |
10226 | additional_libdir2="$withval/$acl_libdirstem2" |
10227 | additional_libdir3="$withval/$acl_libdirstem3" | |
57aa50d4 TT |
10228 | fi |
10229 | fi | |
7321d94e | 10230 | |
7321d94e MK |
10231 | fi |
10232 | ||
bdcd5f22 TT |
10233 | if test "X$additional_libdir2" = "X$additional_libdir"; then |
10234 | additional_libdir2= | |
10235 | fi | |
10236 | if test "X$additional_libdir3" = "X$additional_libdir"; then | |
10237 | additional_libdir3= | |
10238 | fi | |
57aa50d4 TT |
10239 | LIBINTL= |
10240 | LTLIBINTL= | |
10241 | INCINTL= | |
93613951 TT |
10242 | LIBINTL_PREFIX= |
10243 | HAVE_LIBINTL= | |
57aa50d4 TT |
10244 | rpathdirs= |
10245 | ltrpathdirs= | |
10246 | names_already_handled= | |
10247 | names_next_round='intl ' | |
10248 | while test -n "$names_next_round"; do | |
10249 | names_this_round="$names_next_round" | |
10250 | names_next_round= | |
10251 | for name in $names_this_round; do | |
10252 | already_handled= | |
10253 | for n in $names_already_handled; do | |
10254 | if test "$n" = "$name"; then | |
10255 | already_handled=yes | |
10256 | break | |
10257 | fi | |
50e1e10f | 10258 | done |
57aa50d4 TT |
10259 | if test -z "$already_handled"; then |
10260 | names_already_handled="$names_already_handled $name" | |
93613951 | 10261 | uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'` |
57aa50d4 TT |
10262 | eval value=\"\$HAVE_LIB$uppername\" |
10263 | if test -n "$value"; then | |
10264 | if test "$value" = yes; then | |
10265 | eval value=\"\$LIB$uppername\" | |
10266 | test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value" | |
10267 | eval value=\"\$LTLIB$uppername\" | |
10268 | test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value" | |
10269 | else | |
10270 | : | |
10271 | fi | |
10272 | else | |
10273 | found_dir= | |
10274 | found_la= | |
10275 | found_so= | |
10276 | found_a= | |
93613951 TT |
10277 | eval libname=\"$acl_libname_spec\" # typically: libname=lib$name |
10278 | if test -n "$acl_shlibext"; then | |
10279 | shrext=".$acl_shlibext" # typically: shrext=.so | |
10280 | else | |
10281 | shrext= | |
10282 | fi | |
57aa50d4 | 10283 | if test $use_additional = yes; then |
bdcd5f22 TT |
10284 | for additional_libdir_variable in additional_libdir additional_libdir2 additional_libdir3; do |
10285 | if test "X$found_dir" = "X"; then | |
10286 | eval dir=\$$additional_libdir_variable | |
10287 | if test -n "$dir"; then | |
10288 | if test -n "$acl_shlibext"; then | |
10289 | if test -f "$dir/$libname$shrext" && acl_is_expected_elfclass < "$dir/$libname$shrext"; then | |
10290 | found_dir="$dir" | |
10291 | found_so="$dir/$libname$shrext" | |
10292 | else | |
10293 | if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then | |
10294 | ver=`(cd "$dir" && \ | |
10295 | for f in "$libname$shrext".*; do echo "$f"; done \ | |
10296 | | sed -e "s,^$libname$shrext\\\\.,," \ | |
10297 | | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ | |
10298 | | sed 1q ) 2>/dev/null` | |
10299 | if test -n "$ver" && test -f "$dir/$libname$shrext.$ver" && acl_is_expected_elfclass < "$dir/$libname$shrext.$ver"; then | |
10300 | found_dir="$dir" | |
10301 | found_so="$dir/$libname$shrext.$ver" | |
10302 | fi | |
10303 | else | |
10304 | eval library_names=\"$acl_library_names_spec\" | |
10305 | for f in $library_names; do | |
10306 | if test -f "$dir/$f" && acl_is_expected_elfclass < "$dir/$f"; then | |
10307 | found_dir="$dir" | |
10308 | found_so="$dir/$f" | |
10309 | break | |
10310 | fi | |
10311 | done | |
10312 | fi | |
10313 | fi | |
93613951 | 10314 | fi |
bdcd5f22 TT |
10315 | if test "X$found_dir" = "X"; then |
10316 | if test -f "$dir/$libname.$acl_libext" && ${AR-ar} -p "$dir/$libname.$acl_libext" | acl_is_expected_elfclass; then | |
93613951 | 10317 | found_dir="$dir" |
bdcd5f22 | 10318 | found_a="$dir/$libname.$acl_libext" |
93613951 | 10319 | fi |
bdcd5f22 TT |
10320 | fi |
10321 | if test "X$found_dir" != "X"; then | |
10322 | if test -f "$dir/$libname.la"; then | |
10323 | found_la="$dir/$libname.la" | |
10324 | fi | |
10325 | fi | |
57aa50d4 TT |
10326 | fi |
10327 | fi | |
bdcd5f22 | 10328 | done |
57aa50d4 TT |
10329 | fi |
10330 | if test "X$found_dir" = "X"; then | |
10331 | for x in $LDFLAGS $LTLIBINTL; do | |
39fd3d4f | 10332 | |
57aa50d4 TT |
10333 | acl_save_prefix="$prefix" |
10334 | prefix="$acl_final_prefix" | |
10335 | acl_save_exec_prefix="$exec_prefix" | |
10336 | exec_prefix="$acl_final_exec_prefix" | |
10337 | eval x=\"$x\" | |
10338 | exec_prefix="$acl_save_exec_prefix" | |
10339 | prefix="$acl_save_prefix" | |
3d05802f | 10340 | |
57aa50d4 TT |
10341 | case "$x" in |
10342 | -L*) | |
10343 | dir=`echo "X$x" | sed -e 's/^X-L//'` | |
93613951 | 10344 | if test -n "$acl_shlibext"; then |
bdcd5f22 | 10345 | if test -f "$dir/$libname$shrext" && acl_is_expected_elfclass < "$dir/$libname$shrext"; then |
57aa50d4 | 10346 | found_dir="$dir" |
93613951 TT |
10347 | found_so="$dir/$libname$shrext" |
10348 | else | |
10349 | if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then | |
10350 | ver=`(cd "$dir" && \ | |
10351 | for f in "$libname$shrext".*; do echo "$f"; done \ | |
10352 | | sed -e "s,^$libname$shrext\\\\.,," \ | |
10353 | | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ | |
10354 | | sed 1q ) 2>/dev/null` | |
bdcd5f22 | 10355 | if test -n "$ver" && test -f "$dir/$libname$shrext.$ver" && acl_is_expected_elfclass < "$dir/$libname$shrext.$ver"; then |
93613951 TT |
10356 | found_dir="$dir" |
10357 | found_so="$dir/$libname$shrext.$ver" | |
10358 | fi | |
10359 | else | |
10360 | eval library_names=\"$acl_library_names_spec\" | |
10361 | for f in $library_names; do | |
bdcd5f22 | 10362 | if test -f "$dir/$f" && acl_is_expected_elfclass < "$dir/$f"; then |
93613951 TT |
10363 | found_dir="$dir" |
10364 | found_so="$dir/$f" | |
10365 | break | |
10366 | fi | |
10367 | done | |
57aa50d4 TT |
10368 | fi |
10369 | fi | |
93613951 TT |
10370 | fi |
10371 | if test "X$found_dir" = "X"; then | |
bdcd5f22 | 10372 | if test -f "$dir/$libname.$acl_libext" && ${AR-ar} -p "$dir/$libname.$acl_libext" | acl_is_expected_elfclass; then |
93613951 TT |
10373 | found_dir="$dir" |
10374 | found_a="$dir/$libname.$acl_libext" | |
10375 | fi | |
10376 | fi | |
10377 | if test "X$found_dir" != "X"; then | |
10378 | if test -f "$dir/$libname.la"; then | |
10379 | found_la="$dir/$libname.la" | |
10380 | fi | |
57aa50d4 TT |
10381 | fi |
10382 | ;; | |
10383 | esac | |
10384 | if test "X$found_dir" != "X"; then | |
10385 | break | |
10386 | fi | |
10387 | done | |
10388 | fi | |
10389 | if test "X$found_dir" != "X"; then | |
10390 | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name" | |
10391 | if test "X$found_so" != "X"; then | |
93613951 TT |
10392 | if test "$enable_rpath" = no \ |
10393 | || test "X$found_dir" = "X/usr/$acl_libdirstem" \ | |
bdcd5f22 TT |
10394 | || test "X$found_dir" = "X/usr/$acl_libdirstem2" \ |
10395 | || test "X$found_dir" = "X/usr/$acl_libdirstem3"; then | |
57aa50d4 TT |
10396 | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" |
10397 | else | |
10398 | haveit= | |
10399 | for x in $ltrpathdirs; do | |
10400 | if test "X$x" = "X$found_dir"; then | |
10401 | haveit=yes | |
10402 | break | |
10403 | fi | |
10404 | done | |
10405 | if test -z "$haveit"; then | |
10406 | ltrpathdirs="$ltrpathdirs $found_dir" | |
10407 | fi | |
93613951 | 10408 | if test "$acl_hardcode_direct" = yes; then |
57aa50d4 TT |
10409 | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" |
10410 | else | |
93613951 | 10411 | if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then |
57aa50d4 TT |
10412 | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" |
10413 | haveit= | |
10414 | for x in $rpathdirs; do | |
10415 | if test "X$x" = "X$found_dir"; then | |
10416 | haveit=yes | |
10417 | break | |
10418 | fi | |
10419 | done | |
10420 | if test -z "$haveit"; then | |
10421 | rpathdirs="$rpathdirs $found_dir" | |
10422 | fi | |
10423 | else | |
10424 | haveit= | |
10425 | for x in $LDFLAGS $LIBINTL; do | |
6ec9ef18 | 10426 | |
57aa50d4 TT |
10427 | acl_save_prefix="$prefix" |
10428 | prefix="$acl_final_prefix" | |
10429 | acl_save_exec_prefix="$exec_prefix" | |
10430 | exec_prefix="$acl_final_exec_prefix" | |
10431 | eval x=\"$x\" | |
10432 | exec_prefix="$acl_save_exec_prefix" | |
10433 | prefix="$acl_save_prefix" | |
d7f45af8 | 10434 | |
57aa50d4 TT |
10435 | if test "X$x" = "X-L$found_dir"; then |
10436 | haveit=yes | |
10437 | break | |
10438 | fi | |
10439 | done | |
10440 | if test -z "$haveit"; then | |
10441 | LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir" | |
10442 | fi | |
93613951 | 10443 | if test "$acl_hardcode_minus_L" != no; then |
57aa50d4 TT |
10444 | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" |
10445 | else | |
10446 | LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name" | |
10447 | fi | |
10448 | fi | |
10449 | fi | |
10450 | fi | |
10451 | else | |
10452 | if test "X$found_a" != "X"; then | |
10453 | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a" | |
10454 | else | |
10455 | LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name" | |
10456 | fi | |
10457 | fi | |
10458 | additional_includedir= | |
10459 | case "$found_dir" in | |
93613951 TT |
10460 | */$acl_libdirstem | */$acl_libdirstem/) |
10461 | basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'` | |
10462 | if test "$name" = 'intl'; then | |
10463 | LIBINTL_PREFIX="$basedir" | |
10464 | fi | |
10465 | additional_includedir="$basedir/include" | |
10466 | ;; | |
10467 | */$acl_libdirstem2 | */$acl_libdirstem2/) | |
10468 | basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'` | |
10469 | if test "$name" = 'intl'; then | |
10470 | LIBINTL_PREFIX="$basedir" | |
10471 | fi | |
57aa50d4 TT |
10472 | additional_includedir="$basedir/include" |
10473 | ;; | |
bdcd5f22 TT |
10474 | */$acl_libdirstem3 | */$acl_libdirstem3/) |
10475 | basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem3/"'*$,,'` | |
10476 | if test "$name" = 'intl'; then | |
10477 | LIBINTL_PREFIX="$basedir" | |
10478 | fi | |
10479 | additional_includedir="$basedir/include" | |
10480 | ;; | |
57aa50d4 TT |
10481 | esac |
10482 | if test "X$additional_includedir" != "X"; then | |
10483 | if test "X$additional_includedir" != "X/usr/include"; then | |
10484 | haveit= | |
10485 | if test "X$additional_includedir" = "X/usr/local/include"; then | |
10486 | if test -n "$GCC"; then | |
10487 | case $host_os in | |
93613951 | 10488 | linux* | gnu* | k*bsd*-gnu) haveit=yes;; |
57aa50d4 TT |
10489 | esac |
10490 | fi | |
10491 | fi | |
10492 | if test -z "$haveit"; then | |
10493 | for x in $CPPFLAGS $INCINTL; do | |
b0cacab0 | 10494 | |
57aa50d4 TT |
10495 | acl_save_prefix="$prefix" |
10496 | prefix="$acl_final_prefix" | |
10497 | acl_save_exec_prefix="$exec_prefix" | |
10498 | exec_prefix="$acl_final_exec_prefix" | |
10499 | eval x=\"$x\" | |
10500 | exec_prefix="$acl_save_exec_prefix" | |
10501 | prefix="$acl_save_prefix" | |
21c84b71 | 10502 | |
57aa50d4 TT |
10503 | if test "X$x" = "X-I$additional_includedir"; then |
10504 | haveit=yes | |
10505 | break | |
10506 | fi | |
10507 | done | |
10508 | if test -z "$haveit"; then | |
10509 | if test -d "$additional_includedir"; then | |
10510 | INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir" | |
10511 | fi | |
10512 | fi | |
10513 | fi | |
10514 | fi | |
10515 | fi | |
10516 | if test -n "$found_la"; then | |
10517 | save_libdir="$libdir" | |
10518 | case "$found_la" in | |
10519 | */* | *\\*) . "$found_la" ;; | |
10520 | *) . "./$found_la" ;; | |
10521 | esac | |
10522 | libdir="$save_libdir" | |
10523 | for dep in $dependency_libs; do | |
10524 | case "$dep" in | |
10525 | -L*) | |
bdcd5f22 TT |
10526 | dependency_libdir=`echo "X$dep" | sed -e 's/^X-L//'` |
10527 | if test "X$dependency_libdir" != "X/usr/$acl_libdirstem" \ | |
10528 | && test "X$dependency_libdir" != "X/usr/$acl_libdirstem2" \ | |
10529 | && test "X$dependency_libdir" != "X/usr/$acl_libdirstem3"; then | |
57aa50d4 | 10530 | haveit= |
bdcd5f22 TT |
10531 | if test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem" \ |
10532 | || test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem2" \ | |
10533 | || test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem3"; then | |
57aa50d4 TT |
10534 | if test -n "$GCC"; then |
10535 | case $host_os in | |
93613951 | 10536 | linux* | gnu* | k*bsd*-gnu) haveit=yes;; |
57aa50d4 TT |
10537 | esac |
10538 | fi | |
10539 | fi | |
10540 | if test -z "$haveit"; then | |
10541 | haveit= | |
10542 | for x in $LDFLAGS $LIBINTL; do | |
50e1e10f | 10543 | |
57aa50d4 TT |
10544 | acl_save_prefix="$prefix" |
10545 | prefix="$acl_final_prefix" | |
10546 | acl_save_exec_prefix="$exec_prefix" | |
10547 | exec_prefix="$acl_final_exec_prefix" | |
10548 | eval x=\"$x\" | |
10549 | exec_prefix="$acl_save_exec_prefix" | |
10550 | prefix="$acl_save_prefix" | |
50e1e10f | 10551 | |
bdcd5f22 | 10552 | if test "X$x" = "X-L$dependency_libdir"; then |
57aa50d4 TT |
10553 | haveit=yes |
10554 | break | |
10555 | fi | |
10556 | done | |
10557 | if test -z "$haveit"; then | |
bdcd5f22 TT |
10558 | if test -d "$dependency_libdir"; then |
10559 | LIBINTL="${LIBINTL}${LIBINTL:+ }-L$dependency_libdir" | |
57aa50d4 TT |
10560 | fi |
10561 | fi | |
10562 | haveit= | |
10563 | for x in $LDFLAGS $LTLIBINTL; do | |
a4bf69d9 | 10564 | |
57aa50d4 TT |
10565 | acl_save_prefix="$prefix" |
10566 | prefix="$acl_final_prefix" | |
10567 | acl_save_exec_prefix="$exec_prefix" | |
10568 | exec_prefix="$acl_final_exec_prefix" | |
10569 | eval x=\"$x\" | |
10570 | exec_prefix="$acl_save_exec_prefix" | |
10571 | prefix="$acl_save_prefix" | |
50e1e10f | 10572 | |
bdcd5f22 | 10573 | if test "X$x" = "X-L$dependency_libdir"; then |
57aa50d4 TT |
10574 | haveit=yes |
10575 | break | |
10576 | fi | |
10577 | done | |
10578 | if test -z "$haveit"; then | |
bdcd5f22 TT |
10579 | if test -d "$dependency_libdir"; then |
10580 | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$dependency_libdir" | |
57aa50d4 TT |
10581 | fi |
10582 | fi | |
10583 | fi | |
10584 | fi | |
10585 | ;; | |
10586 | -R*) | |
10587 | dir=`echo "X$dep" | sed -e 's/^X-R//'` | |
10588 | if test "$enable_rpath" != no; then | |
10589 | haveit= | |
10590 | for x in $rpathdirs; do | |
10591 | if test "X$x" = "X$dir"; then | |
10592 | haveit=yes | |
10593 | break | |
10594 | fi | |
10595 | done | |
10596 | if test -z "$haveit"; then | |
10597 | rpathdirs="$rpathdirs $dir" | |
10598 | fi | |
10599 | haveit= | |
10600 | for x in $ltrpathdirs; do | |
10601 | if test "X$x" = "X$dir"; then | |
10602 | haveit=yes | |
10603 | break | |
10604 | fi | |
10605 | done | |
10606 | if test -z "$haveit"; then | |
10607 | ltrpathdirs="$ltrpathdirs $dir" | |
10608 | fi | |
10609 | fi | |
10610 | ;; | |
10611 | -l*) | |
5598a968 EB |
10612 | dep=`echo "X$dep" | sed -e 's/^X-l//'` |
10613 | if test "X$dep" != Xc \ | |
10614 | || case $host_os in | |
10615 | linux* | gnu* | k*bsd*-gnu) false ;; | |
10616 | *) true ;; | |
10617 | esac; then | |
10618 | names_next_round="$names_next_round $dep" | |
10619 | fi | |
57aa50d4 TT |
10620 | ;; |
10621 | *.la) | |
10622 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` | |
10623 | ;; | |
10624 | *) | |
10625 | LIBINTL="${LIBINTL}${LIBINTL:+ }$dep" | |
10626 | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep" | |
10627 | ;; | |
10628 | esac | |
10629 | done | |
10630 | fi | |
10631 | else | |
10632 | LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name" | |
10633 | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name" | |
10634 | fi | |
10635 | fi | |
10636 | fi | |
10637 | done | |
10638 | done | |
10639 | if test "X$rpathdirs" != "X"; then | |
93613951 | 10640 | if test -n "$acl_hardcode_libdir_separator"; then |
57aa50d4 TT |
10641 | alldirs= |
10642 | for found_dir in $rpathdirs; do | |
93613951 | 10643 | alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir" |
57aa50d4 TT |
10644 | done |
10645 | acl_save_libdir="$libdir" | |
10646 | libdir="$alldirs" | |
93613951 | 10647 | eval flag=\"$acl_hardcode_libdir_flag_spec\" |
57aa50d4 TT |
10648 | libdir="$acl_save_libdir" |
10649 | LIBINTL="${LIBINTL}${LIBINTL:+ }$flag" | |
10650 | else | |
10651 | for found_dir in $rpathdirs; do | |
10652 | acl_save_libdir="$libdir" | |
10653 | libdir="$found_dir" | |
93613951 | 10654 | eval flag=\"$acl_hardcode_libdir_flag_spec\" |
57aa50d4 TT |
10655 | libdir="$acl_save_libdir" |
10656 | LIBINTL="${LIBINTL}${LIBINTL:+ }$flag" | |
10657 | done | |
10658 | fi | |
10659 | fi | |
10660 | if test "X$ltrpathdirs" != "X"; then | |
10661 | for found_dir in $ltrpathdirs; do | |
10662 | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir" | |
10663 | done | |
10664 | fi | |
b0cacab0 | 10665 | |
93613951 TT |
10666 | |
10667 | ||
10668 | ||
10669 | ||
54445dc2 TT |
10670 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5 |
10671 | printf %s "checking for GNU gettext in libintl... " >&6; } | |
10672 | if eval test \${$gt_func_gnugettext_libintl+y} | |
10673 | then : | |
10674 | printf %s "(cached) " >&6 | |
10675 | else $as_nop | |
57aa50d4 TT |
10676 | gt_save_CPPFLAGS="$CPPFLAGS" |
10677 | CPPFLAGS="$CPPFLAGS $INCINTL" | |
10678 | gt_save_LIBS="$LIBS" | |
10679 | LIBS="$LIBS $LIBINTL" | |
10680 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
10681 | /* end confdefs.h. */ | |
93613951 | 10682 | |
57aa50d4 | 10683 | #include <libintl.h> |
e598c29b | 10684 | #ifndef __GNU_GETTEXT_SUPPORTED_REVISION |
57aa50d4 TT |
10685 | extern int _nl_msg_cat_cntr; |
10686 | extern | |
10687 | #ifdef __cplusplus | |
10688 | "C" | |
10689 | #endif | |
93613951 | 10690 | const char *_nl_expand_alias (const char *); |
e598c29b TT |
10691 | #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias ("")) |
10692 | #else | |
10693 | #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0 | |
10694 | #endif | |
10695 | $gt_revision_test_code | |
93613951 | 10696 | |
57aa50d4 | 10697 | int |
54445dc2 | 10698 | main (void) |
57aa50d4 | 10699 | { |
93613951 | 10700 | |
57aa50d4 | 10701 | bindtextdomain ("", ""); |
e598c29b | 10702 | return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION |
93613951 | 10703 | |
57aa50d4 TT |
10704 | ; |
10705 | return 0; | |
10706 | } | |
b0cacab0 | 10707 | _ACEOF |
54445dc2 TT |
10708 | if ac_fn_c_try_link "$LINENO" |
10709 | then : | |
93613951 | 10710 | eval "$gt_func_gnugettext_libintl=yes" |
54445dc2 | 10711 | else $as_nop |
93613951 | 10712 | eval "$gt_func_gnugettext_libintl=no" |
6c133523 | 10713 | fi |
54445dc2 | 10714 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
57aa50d4 | 10715 | conftest$ac_exeext conftest.$ac_ext |
93613951 | 10716 | if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then |
57aa50d4 TT |
10717 | LIBS="$LIBS $LIBICONV" |
10718 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
da76d6b7 | 10719 | /* end confdefs.h. */ |
93613951 | 10720 | |
57aa50d4 | 10721 | #include <libintl.h> |
e598c29b | 10722 | #ifndef __GNU_GETTEXT_SUPPORTED_REVISION |
57aa50d4 TT |
10723 | extern int _nl_msg_cat_cntr; |
10724 | extern | |
10725 | #ifdef __cplusplus | |
10726 | "C" | |
da76d6b7 | 10727 | #endif |
93613951 | 10728 | const char *_nl_expand_alias (const char *); |
e598c29b TT |
10729 | #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias ("")) |
10730 | #else | |
10731 | #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0 | |
10732 | #endif | |
10733 | $gt_revision_test_code | |
93613951 | 10734 | |
57aa50d4 | 10735 | int |
54445dc2 | 10736 | main (void) |
57aa50d4 | 10737 | { |
93613951 | 10738 | |
57aa50d4 | 10739 | bindtextdomain ("", ""); |
e598c29b | 10740 | return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION |
93613951 | 10741 | |
57aa50d4 TT |
10742 | ; |
10743 | return 0; | |
10744 | } | |
da76d6b7 | 10745 | _ACEOF |
54445dc2 TT |
10746 | if ac_fn_c_try_link "$LINENO" |
10747 | then : | |
57aa50d4 | 10748 | LIBINTL="$LIBINTL $LIBICONV" |
93613951 TT |
10749 | LTLIBINTL="$LTLIBINTL $LTLIBICONV" |
10750 | eval "$gt_func_gnugettext_libintl=yes" | |
6c133523 TT |
10751 | |
10752 | fi | |
54445dc2 | 10753 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
57aa50d4 TT |
10754 | conftest$ac_exeext conftest.$ac_ext |
10755 | fi | |
10756 | CPPFLAGS="$gt_save_CPPFLAGS" | |
10757 | LIBS="$gt_save_LIBS" | |
da76d6b7 | 10758 | fi |
93613951 | 10759 | eval ac_res=\$$gt_func_gnugettext_libintl |
54445dc2 TT |
10760 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
10761 | printf "%s\n" "$ac_res" >&6; } | |
57aa50d4 | 10762 | fi |
b0cacab0 | 10763 | |
93613951 TT |
10764 | if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \ |
10765 | || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \ | |
57aa50d4 TT |
10766 | && test "$PACKAGE" != gettext-runtime \ |
10767 | && test "$PACKAGE" != gettext-tools; }; then | |
10768 | gt_use_preinstalled_gnugettext=yes | |
10769 | else | |
10770 | LIBINTL= | |
10771 | LTLIBINTL= | |
10772 | INCINTL= | |
10773 | fi | |
740837de | 10774 | |
b0cacab0 | 10775 | |
b0cacab0 | 10776 | |
93613951 TT |
10777 | if test -n "$INTL_MACOSX_LIBS"; then |
10778 | if test "$gt_use_preinstalled_gnugettext" = "yes" \ | |
10779 | || test "$nls_cv_use_gnu_gettext" = "yes"; then | |
10780 | LIBINTL="$LIBINTL $INTL_MACOSX_LIBS" | |
10781 | LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS" | |
10782 | fi | |
10783 | fi | |
10784 | ||
57aa50d4 TT |
10785 | if test "$gt_use_preinstalled_gnugettext" = "yes" \ |
10786 | || test "$nls_cv_use_gnu_gettext" = "yes"; then | |
b0cacab0 | 10787 | |
54445dc2 | 10788 | printf "%s\n" "#define ENABLE_NLS 1" >>confdefs.h |
b0cacab0 | 10789 | |
57aa50d4 TT |
10790 | else |
10791 | USE_NLS=no | |
10792 | fi | |
10793 | fi | |
b0cacab0 | 10794 | |
54445dc2 TT |
10795 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5 |
10796 | printf %s "checking whether to use NLS... " >&6; } | |
10797 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5 | |
10798 | printf "%s\n" "$USE_NLS" >&6; } | |
57aa50d4 | 10799 | if test "$USE_NLS" = "yes"; then |
54445dc2 TT |
10800 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5 |
10801 | printf %s "checking where the gettext function comes from... " >&6; } | |
57aa50d4 | 10802 | if test "$gt_use_preinstalled_gnugettext" = "yes"; then |
93613951 | 10803 | if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then |
57aa50d4 TT |
10804 | gt_source="external libintl" |
10805 | else | |
10806 | gt_source="libc" | |
10807 | fi | |
10808 | else | |
10809 | gt_source="included intl directory" | |
10810 | fi | |
54445dc2 TT |
10811 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5 |
10812 | printf "%s\n" "$gt_source" >&6; } | |
57aa50d4 | 10813 | fi |
b0cacab0 | 10814 | |
57aa50d4 | 10815 | if test "$USE_NLS" = "yes"; then |
b0cacab0 | 10816 | |
57aa50d4 | 10817 | if test "$gt_use_preinstalled_gnugettext" = "yes"; then |
93613951 | 10818 | if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then |
54445dc2 TT |
10819 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5 |
10820 | printf %s "checking how to link with libintl... " >&6; } | |
10821 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5 | |
10822 | printf "%s\n" "$LIBINTL" >&6; } | |
b0cacab0 | 10823 | |
57aa50d4 TT |
10824 | for element in $INCINTL; do |
10825 | haveit= | |
10826 | for x in $CPPFLAGS; do | |
b0cacab0 | 10827 | |
57aa50d4 TT |
10828 | acl_save_prefix="$prefix" |
10829 | prefix="$acl_final_prefix" | |
10830 | acl_save_exec_prefix="$exec_prefix" | |
10831 | exec_prefix="$acl_final_exec_prefix" | |
10832 | eval x=\"$x\" | |
10833 | exec_prefix="$acl_save_exec_prefix" | |
10834 | prefix="$acl_save_prefix" | |
b0cacab0 | 10835 | |
57aa50d4 TT |
10836 | if test "X$x" = "X$element"; then |
10837 | haveit=yes | |
10838 | break | |
10839 | fi | |
10840 | done | |
10841 | if test -z "$haveit"; then | |
10842 | CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" | |
10843 | fi | |
10844 | done | |
b0cacab0 | 10845 | |
57aa50d4 | 10846 | fi |
b0cacab0 TT |
10847 | |
10848 | ||
54445dc2 | 10849 | printf "%s\n" "#define HAVE_GETTEXT 1" >>confdefs.h |
b0cacab0 TT |
10850 | |
10851 | ||
54445dc2 | 10852 | printf "%s\n" "#define HAVE_DCGETTEXT 1" >>confdefs.h |
b0cacab0 | 10853 | |
57aa50d4 | 10854 | fi |
b0cacab0 | 10855 | |
57aa50d4 TT |
10856 | POSUB=po |
10857 | fi | |
b0cacab0 TT |
10858 | |
10859 | ||
b0cacab0 | 10860 | |
57aa50d4 | 10861 | INTLLIBS="$LIBINTL" |
e1052144 | 10862 | |
b0cacab0 | 10863 | |
93636bde | 10864 | |
93636bde | 10865 | |
b0cacab0 | 10866 | |
93636bde | 10867 | |
50e1e10f | 10868 | |
54445dc2 TT |
10869 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
10870 | printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } | |
57aa50d4 | 10871 | set x ${MAKE-make} |
54445dc2 TT |
10872 | ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` |
10873 | if eval test \${ac_cv_prog_make_${ac_make}_set+y} | |
10874 | then : | |
10875 | printf %s "(cached) " >&6 | |
10876 | else $as_nop | |
57aa50d4 TT |
10877 | cat >conftest.make <<\_ACEOF |
10878 | SHELL = /bin/sh | |
10879 | all: | |
10880 | @echo '@@@%%%=$(MAKE)=@@@%%%' | |
b0cacab0 | 10881 | _ACEOF |
d6a4bcb5 | 10882 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. |
57aa50d4 TT |
10883 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
10884 | *@@@%%%=?*=@@@%%%*) | |
10885 | eval ac_cv_prog_make_${ac_make}_set=yes;; | |
10886 | *) | |
10887 | eval ac_cv_prog_make_${ac_make}_set=no;; | |
e1052144 | 10888 | esac |
57aa50d4 | 10889 | rm -f conftest.make |
b0cacab0 | 10890 | fi |
57aa50d4 | 10891 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
54445dc2 TT |
10892 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
10893 | printf "%s\n" "yes" >&6; } | |
57aa50d4 | 10894 | SET_MAKE= |
b0b9c4de | 10895 | else |
54445dc2 TT |
10896 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10897 | printf "%s\n" "no" >&6; } | |
57aa50d4 | 10898 | SET_MAKE="MAKE=${MAKE-make}" |
b0cacab0 | 10899 | fi |
b0cacab0 | 10900 | |
54445dc2 TT |
10901 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU make" >&5 |
10902 | printf %s "checking for GNU make... " >&6; } | |
10903 | if test ${_cv_gnu_make_command+y} | |
10904 | then : | |
10905 | printf %s "(cached) " >&6 | |
10906 | else $as_nop | |
57aa50d4 | 10907 | _cv_gnu_make_command='' ; |
e703ba4b | 10908 | if test -n "$FORCE_NATIVE_MAKE" ; then |
f3bc1561 TT |
10909 | MAKES="make" |
10910 | else | |
10911 | MAKES="make gmake gnumake" | |
10912 | fi | |
10913 | for a in "$MAKE" $MAKES ; do | |
57aa50d4 TT |
10914 | if test -z "$a" ; then continue ; fi ; |
10915 | if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) ; then | |
10916 | _cv_gnu_make_command=$a ; | |
10917 | break; | |
10918 | fi | |
10919 | done ; | |
50e1e10f | 10920 | |
50e1e10f | 10921 | fi |
54445dc2 TT |
10922 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $_cv_gnu_make_command" >&5 |
10923 | printf "%s\n" "$_cv_gnu_make_command" >&6; } ; | |
57aa50d4 TT |
10924 | if test "x$_cv_gnu_make_command" != "x" ; then |
10925 | ifGNUmake='' ; | |
10926 | ifNotGNUmake='#' ; | |
10927 | else | |
10928 | ifGNUmake='#' ; | |
10929 | ifNotGNUmake='' ; | |
54445dc2 TT |
10930 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: \"Not found\"" >&5 |
10931 | printf "%s\n" "\"Not found\"" >&6; }; | |
57aa50d4 | 10932 | fi |
50e1e10f | 10933 | |
50e1e10f | 10934 | |
b0cacab0 | 10935 | |
57aa50d4 TT |
10936 | # Extract the first word of "ln", so it can be a program name with args. |
10937 | set dummy ln; ac_word=$2 | |
54445dc2 TT |
10938 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10939 | printf %s "checking for $ac_word... " >&6; } | |
10940 | if test ${ac_cv_path_LN+y} | |
10941 | then : | |
10942 | printf %s "(cached) " >&6 | |
10943 | else $as_nop | |
57aa50d4 TT |
10944 | case $LN in |
10945 | [\\/]* | ?:[\\/]*) | |
10946 | ac_cv_path_LN="$LN" # Let the user override the test with a path. | |
10947 | ;; | |
10948 | *) | |
10949 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10950 | for as_dir in $PATH | |
10951 | do | |
10952 | IFS=$as_save_IFS | |
54445dc2 TT |
10953 | case $as_dir in #((( |
10954 | '') as_dir=./ ;; | |
10955 | */) ;; | |
10956 | *) as_dir=$as_dir/ ;; | |
10957 | esac | |
57aa50d4 | 10958 | for ac_exec_ext in '' $ac_executable_extensions; do |
54445dc2 TT |
10959 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
10960 | ac_cv_path_LN="$as_dir$ac_word$ac_exec_ext" | |
10961 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 | |
57aa50d4 TT |
10962 | break 2 |
10963 | fi | |
10964 | done | |
10965 | done | |
10966 | IFS=$as_save_IFS | |
6c65d251 | 10967 | |
57aa50d4 TT |
10968 | test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln" |
10969 | ;; | |
e1052144 | 10970 | esac |
fff45483 | 10971 | fi |
57aa50d4 TT |
10972 | LN=$ac_cv_path_LN |
10973 | if test -n "$LN"; then | |
54445dc2 TT |
10974 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LN" >&5 |
10975 | printf "%s\n" "$LN" >&6; } | |
57aa50d4 | 10976 | else |
54445dc2 TT |
10977 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10978 | printf "%s\n" "no" >&6; } | |
fff45483 | 10979 | fi |
e1052144 | 10980 | |
fff45483 | 10981 | |
5abc0414 | 10982 | |
3fb16e74 TT |
10983 | mkdir_p=$MKDIR_P |
10984 | ||
54445dc2 TT |
10985 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 |
10986 | printf %s "checking whether ln -s works... " >&6; } | |
57aa50d4 TT |
10987 | LN_S=$as_ln_s |
10988 | if test "$LN_S" = "ln -s"; then | |
54445dc2 TT |
10989 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
10990 | printf "%s\n" "yes" >&6; } | |
57aa50d4 | 10991 | else |
54445dc2 TT |
10992 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 |
10993 | printf "%s\n" "no, using $LN_S" >&6; } | |
fff45483 | 10994 | fi |
6c65d251 | 10995 | |
57aa50d4 TT |
10996 | # Extract the first word of "mv", so it can be a program name with args. |
10997 | set dummy mv; ac_word=$2 | |
54445dc2 TT |
10998 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10999 | printf %s "checking for $ac_word... " >&6; } | |
11000 | if test ${ac_cv_path_MV+y} | |
11001 | then : | |
11002 | printf %s "(cached) " >&6 | |
11003 | else $as_nop | |
57aa50d4 TT |
11004 | case $MV in |
11005 | [\\/]* | ?:[\\/]*) | |
11006 | ac_cv_path_MV="$MV" # Let the user override the test with a path. | |
11007 | ;; | |
11008 | *) | |
11009 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11010 | for as_dir in $PATH | |
11011 | do | |
11012 | IFS=$as_save_IFS | |
54445dc2 TT |
11013 | case $as_dir in #((( |
11014 | '') as_dir=./ ;; | |
11015 | */) ;; | |
11016 | *) as_dir=$as_dir/ ;; | |
11017 | esac | |
57aa50d4 | 11018 | for ac_exec_ext in '' $ac_executable_extensions; do |
54445dc2 TT |
11019 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
11020 | ac_cv_path_MV="$as_dir$ac_word$ac_exec_ext" | |
11021 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 | |
57aa50d4 TT |
11022 | break 2 |
11023 | fi | |
11024 | done | |
11025 | done | |
11026 | IFS=$as_save_IFS | |
6c65d251 | 11027 | |
57aa50d4 TT |
11028 | test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv" |
11029 | ;; | |
e1052144 | 11030 | esac |
b0cacab0 | 11031 | fi |
57aa50d4 TT |
11032 | MV=$ac_cv_path_MV |
11033 | if test -n "$MV"; then | |
54445dc2 TT |
11034 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MV" >&5 |
11035 | printf "%s\n" "$MV" >&6; } | |
b0b9c4de | 11036 | else |
54445dc2 TT |
11037 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11038 | printf "%s\n" "no" >&6; } | |
39fd3d4f SJR |
11039 | fi |
11040 | ||
39fd3d4f | 11041 | |
57aa50d4 TT |
11042 | # Extract the first word of "cp", so it can be a program name with args. |
11043 | set dummy cp; ac_word=$2 | |
54445dc2 TT |
11044 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11045 | printf %s "checking for $ac_word... " >&6; } | |
11046 | if test ${ac_cv_path_CP+y} | |
11047 | then : | |
11048 | printf %s "(cached) " >&6 | |
11049 | else $as_nop | |
57aa50d4 TT |
11050 | case $CP in |
11051 | [\\/]* | ?:[\\/]*) | |
11052 | ac_cv_path_CP="$CP" # Let the user override the test with a path. | |
11053 | ;; | |
11054 | *) | |
11055 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11056 | for as_dir in $PATH | |
11057 | do | |
11058 | IFS=$as_save_IFS | |
54445dc2 TT |
11059 | case $as_dir in #((( |
11060 | '') as_dir=./ ;; | |
11061 | */) ;; | |
11062 | *) as_dir=$as_dir/ ;; | |
11063 | esac | |
57aa50d4 | 11064 | for ac_exec_ext in '' $ac_executable_extensions; do |
54445dc2 TT |
11065 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
11066 | ac_cv_path_CP="$as_dir$ac_word$ac_exec_ext" | |
11067 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 | |
57aa50d4 TT |
11068 | break 2 |
11069 | fi | |
11070 | done | |
11071 | done | |
11072 | IFS=$as_save_IFS | |
39fd3d4f | 11073 | |
57aa50d4 TT |
11074 | test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp" |
11075 | ;; | |
e1052144 | 11076 | esac |
b0b9c4de | 11077 | fi |
57aa50d4 TT |
11078 | CP=$ac_cv_path_CP |
11079 | if test -n "$CP"; then | |
54445dc2 TT |
11080 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CP" >&5 |
11081 | printf "%s\n" "$CP" >&6; } | |
b0cacab0 | 11082 | else |
54445dc2 TT |
11083 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11084 | printf "%s\n" "no" >&6; } | |
b0b9c4de | 11085 | fi |
b0b9c4de | 11086 | |
6c65d251 | 11087 | |
57aa50d4 TT |
11088 | # Extract the first word of "rm", so it can be a program name with args. |
11089 | set dummy rm; ac_word=$2 | |
54445dc2 TT |
11090 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11091 | printf %s "checking for $ac_word... " >&6; } | |
11092 | if test ${ac_cv_path_RM+y} | |
11093 | then : | |
11094 | printf %s "(cached) " >&6 | |
11095 | else $as_nop | |
57aa50d4 TT |
11096 | case $RM in |
11097 | [\\/]* | ?:[\\/]*) | |
11098 | ac_cv_path_RM="$RM" # Let the user override the test with a path. | |
11099 | ;; | |
11100 | *) | |
11101 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11102 | for as_dir in $PATH | |
11103 | do | |
11104 | IFS=$as_save_IFS | |
54445dc2 TT |
11105 | case $as_dir in #((( |
11106 | '') as_dir=./ ;; | |
11107 | */) ;; | |
11108 | *) as_dir=$as_dir/ ;; | |
11109 | esac | |
57aa50d4 | 11110 | for ac_exec_ext in '' $ac_executable_extensions; do |
54445dc2 TT |
11111 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
11112 | ac_cv_path_RM="$as_dir$ac_word$ac_exec_ext" | |
11113 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 | |
57aa50d4 TT |
11114 | break 2 |
11115 | fi | |
11116 | done | |
b0cacab0 | 11117 | done |
57aa50d4 | 11118 | IFS=$as_save_IFS |
6c65d251 | 11119 | |
57aa50d4 TT |
11120 | test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm" |
11121 | ;; | |
e1052144 | 11122 | esac |
6928adc9 | 11123 | fi |
57aa50d4 TT |
11124 | RM=$ac_cv_path_RM |
11125 | if test -n "$RM"; then | |
54445dc2 TT |
11126 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RM" >&5 |
11127 | printf "%s\n" "$RM" >&6; } | |
b0cacab0 | 11128 | else |
54445dc2 TT |
11129 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11130 | printf "%s\n" "no" >&6; } | |
6928adc9 | 11131 | fi |
6928adc9 | 11132 | |
6c65d251 | 11133 | |
57aa50d4 TT |
11134 | # Extract the first word of "chmod", so it can be a program name with args. |
11135 | set dummy chmod; ac_word=$2 | |
54445dc2 TT |
11136 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11137 | printf %s "checking for $ac_word... " >&6; } | |
11138 | if test ${ac_cv_path_CHMOD+y} | |
11139 | then : | |
11140 | printf %s "(cached) " >&6 | |
11141 | else $as_nop | |
57aa50d4 TT |
11142 | case $CHMOD in |
11143 | [\\/]* | ?:[\\/]*) | |
11144 | ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path. | |
11145 | ;; | |
11146 | *) | |
11147 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11148 | for as_dir in $PATH | |
11149 | do | |
11150 | IFS=$as_save_IFS | |
54445dc2 TT |
11151 | case $as_dir in #((( |
11152 | '') as_dir=./ ;; | |
11153 | */) ;; | |
11154 | *) as_dir=$as_dir/ ;; | |
11155 | esac | |
57aa50d4 | 11156 | for ac_exec_ext in '' $ac_executable_extensions; do |
54445dc2 TT |
11157 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
11158 | ac_cv_path_CHMOD="$as_dir$ac_word$ac_exec_ext" | |
11159 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 | |
57aa50d4 TT |
11160 | break 2 |
11161 | fi | |
11162 | done | |
11163 | done | |
11164 | IFS=$as_save_IFS | |
39fd3d4f | 11165 | |
57aa50d4 TT |
11166 | test -z "$ac_cv_path_CHMOD" && ac_cv_path_CHMOD=":" |
11167 | ;; | |
e1052144 | 11168 | esac |
b0cacab0 | 11169 | fi |
57aa50d4 TT |
11170 | CHMOD=$ac_cv_path_CHMOD |
11171 | if test -n "$CHMOD"; then | |
54445dc2 TT |
11172 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5 |
11173 | printf "%s\n" "$CHMOD" >&6; } | |
b0cacab0 | 11174 | else |
54445dc2 TT |
11175 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11176 | printf "%s\n" "no" >&6; } | |
b0cacab0 | 11177 | fi |
39fd3d4f | 11178 | |
b0cacab0 | 11179 | |
57aa50d4 TT |
11180 | for ac_prog in gawk mawk nawk awk |
11181 | do | |
11182 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
11183 | set dummy $ac_prog; ac_word=$2 | |
54445dc2 TT |
11184 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11185 | printf %s "checking for $ac_word... " >&6; } | |
11186 | if test ${ac_cv_prog_AWK+y} | |
11187 | then : | |
11188 | printf %s "(cached) " >&6 | |
11189 | else $as_nop | |
57aa50d4 TT |
11190 | if test -n "$AWK"; then |
11191 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
b0cacab0 | 11192 | else |
57aa50d4 TT |
11193 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11194 | for as_dir in $PATH | |
11195 | do | |
11196 | IFS=$as_save_IFS | |
54445dc2 TT |
11197 | case $as_dir in #((( |
11198 | '') as_dir=./ ;; | |
11199 | */) ;; | |
11200 | *) as_dir=$as_dir/ ;; | |
11201 | esac | |
57aa50d4 | 11202 | for ac_exec_ext in '' $ac_executable_extensions; do |
54445dc2 | 11203 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
57aa50d4 | 11204 | ac_cv_prog_AWK="$ac_prog" |
54445dc2 | 11205 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
57aa50d4 TT |
11206 | break 2 |
11207 | fi | |
11208 | done | |
11209 | done | |
11210 | IFS=$as_save_IFS | |
b0cacab0 | 11211 | |
b0cacab0 | 11212 | fi |
57aa50d4 TT |
11213 | fi |
11214 | AWK=$ac_cv_prog_AWK | |
11215 | if test -n "$AWK"; then | |
54445dc2 TT |
11216 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 |
11217 | printf "%s\n" "$AWK" >&6; } | |
b0cacab0 | 11218 | else |
54445dc2 TT |
11219 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11220 | printf "%s\n" "no" >&6; } | |
b0cacab0 | 11221 | fi |
b0cacab0 | 11222 | |
b0cacab0 | 11223 | |
57aa50d4 TT |
11224 | test -n "$AWK" && break |
11225 | done | |
b0cacab0 | 11226 | |
54445dc2 TT |
11227 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 |
11228 | printf %s "checking for egrep... " >&6; } | |
11229 | if test ${ac_cv_path_EGREP+y} | |
11230 | then : | |
11231 | printf %s "(cached) " >&6 | |
11232 | else $as_nop | |
57aa50d4 TT |
11233 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
11234 | then ac_cv_path_EGREP="$GREP -E" | |
11235 | else | |
11236 | if test -z "$EGREP"; then | |
11237 | ac_path_EGREP_found=false | |
11238 | # Loop through the user's path and test for each of PROGNAME-LIST | |
11239 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11240 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
11241 | do | |
11242 | IFS=$as_save_IFS | |
54445dc2 TT |
11243 | case $as_dir in #((( |
11244 | '') as_dir=./ ;; | |
11245 | */) ;; | |
11246 | *) as_dir=$as_dir/ ;; | |
11247 | esac | |
11248 | for ac_prog in egrep | |
11249 | do | |
57aa50d4 | 11250 | for ac_exec_ext in '' $ac_executable_extensions; do |
54445dc2 | 11251 | ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext" |
d6a4bcb5 | 11252 | as_fn_executable_p "$ac_path_EGREP" || continue |
57aa50d4 TT |
11253 | # Check for GNU ac_path_EGREP and select it if it is found. |
11254 | # Check for GNU $ac_path_EGREP | |
11255 | case `"$ac_path_EGREP" --version 2>&1` in | |
11256 | *GNU*) | |
11257 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | |
11258 | *) | |
11259 | ac_count=0 | |
54445dc2 | 11260 | printf %s 0123456789 >"conftest.in" |
57aa50d4 TT |
11261 | while : |
11262 | do | |
11263 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
11264 | mv "conftest.tmp" "conftest.in" | |
11265 | cp "conftest.in" "conftest.nl" | |
54445dc2 | 11266 | printf "%s\n" 'EGREP' >> "conftest.nl" |
57aa50d4 TT |
11267 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
11268 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
11269 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
11270 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then | |
11271 | # Best one so far, save it but keep looking for a better one | |
11272 | ac_cv_path_EGREP="$ac_path_EGREP" | |
11273 | ac_path_EGREP_max=$ac_count | |
11274 | fi | |
11275 | # 10*(2^10) chars as input seems more than enough | |
11276 | test $ac_count -gt 10 && break | |
11277 | done | |
11278 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
e1052144 | 11279 | esac |
e1052144 | 11280 | |
57aa50d4 TT |
11281 | $ac_path_EGREP_found && break 3 |
11282 | done | |
b0cacab0 | 11283 | done |
57aa50d4 TT |
11284 | done |
11285 | IFS=$as_save_IFS | |
11286 | if test -z "$ac_cv_path_EGREP"; then | |
d6a4bcb5 | 11287 | as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
57aa50d4 | 11288 | fi |
b0cacab0 | 11289 | else |
57aa50d4 | 11290 | ac_cv_path_EGREP=$EGREP |
b0cacab0 | 11291 | fi |
e1052144 | 11292 | |
57aa50d4 | 11293 | fi |
b0cacab0 | 11294 | fi |
54445dc2 TT |
11295 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 |
11296 | printf "%s\n" "$ac_cv_path_EGREP" >&6; } | |
57aa50d4 | 11297 | EGREP="$ac_cv_path_EGREP" |
e1052144 | 11298 | |
b0cacab0 | 11299 | |
57aa50d4 TT |
11300 | # Extract the first word of "sed", so it can be a program name with args. |
11301 | set dummy sed; ac_word=$2 | |
54445dc2 TT |
11302 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11303 | printf %s "checking for $ac_word... " >&6; } | |
11304 | if test ${ac_cv_path_SED+y} | |
11305 | then : | |
11306 | printf %s "(cached) " >&6 | |
11307 | else $as_nop | |
57aa50d4 TT |
11308 | case $SED in |
11309 | [\\/]* | ?:[\\/]*) | |
11310 | ac_cv_path_SED="$SED" # Let the user override the test with a path. | |
11311 | ;; | |
11312 | *) | |
11313 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11314 | for as_dir in $PATH | |
11315 | do | |
11316 | IFS=$as_save_IFS | |
54445dc2 TT |
11317 | case $as_dir in #((( |
11318 | '') as_dir=./ ;; | |
11319 | */) ;; | |
11320 | *) as_dir=$as_dir/ ;; | |
11321 | esac | |
57aa50d4 | 11322 | for ac_exec_ext in '' $ac_executable_extensions; do |
54445dc2 TT |
11323 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
11324 | ac_cv_path_SED="$as_dir$ac_word$ac_exec_ext" | |
11325 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 | |
57aa50d4 TT |
11326 | break 2 |
11327 | fi | |
b0cacab0 | 11328 | done |
57aa50d4 TT |
11329 | done |
11330 | IFS=$as_save_IFS | |
b0cacab0 | 11331 | |
57aa50d4 TT |
11332 | test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed" |
11333 | ;; | |
b0cacab0 | 11334 | esac |
57aa50d4 TT |
11335 | fi |
11336 | SED=$ac_cv_path_SED | |
11337 | if test -n "$SED"; then | |
54445dc2 TT |
11338 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SED" >&5 |
11339 | printf "%s\n" "$SED" >&6; } | |
b0cacab0 | 11340 | else |
54445dc2 TT |
11341 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11342 | printf "%s\n" "no" >&6; } | |
b0cacab0 | 11343 | fi |
e1052144 | 11344 | |
b0cacab0 | 11345 | |
57aa50d4 TT |
11346 | # Extract the first word of "perl", so it can be a program name with args. |
11347 | set dummy perl; ac_word=$2 | |
54445dc2 TT |
11348 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11349 | printf %s "checking for $ac_word... " >&6; } | |
11350 | if test ${ac_cv_path_PERL+y} | |
11351 | then : | |
11352 | printf %s "(cached) " >&6 | |
11353 | else $as_nop | |
57aa50d4 TT |
11354 | case $PERL in |
11355 | [\\/]* | ?:[\\/]*) | |
11356 | ac_cv_path_PERL="$PERL" # Let the user override the test with a path. | |
11357 | ;; | |
11358 | *) | |
11359 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11360 | for as_dir in $PATH | |
11361 | do | |
11362 | IFS=$as_save_IFS | |
54445dc2 TT |
11363 | case $as_dir in #((( |
11364 | '') as_dir=./ ;; | |
11365 | */) ;; | |
11366 | *) as_dir=$as_dir/ ;; | |
11367 | esac | |
57aa50d4 | 11368 | for ac_exec_ext in '' $ac_executable_extensions; do |
54445dc2 TT |
11369 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
11370 | ac_cv_path_PERL="$as_dir$ac_word$ac_exec_ext" | |
11371 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 | |
57aa50d4 TT |
11372 | break 2 |
11373 | fi | |
b0cacab0 | 11374 | done |
57aa50d4 TT |
11375 | done |
11376 | IFS=$as_save_IFS | |
11377 | ||
11378 | test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl" | |
11379 | ;; | |
b0cacab0 | 11380 | esac |
57aa50d4 TT |
11381 | fi |
11382 | PERL=$ac_cv_path_PERL | |
11383 | if test -n "$PERL"; then | |
54445dc2 TT |
11384 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5 |
11385 | printf "%s\n" "$PERL" >&6; } | |
b0cacab0 | 11386 | else |
54445dc2 TT |
11387 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11388 | printf "%s\n" "no" >&6; } | |
57aa50d4 | 11389 | fi |
b0cacab0 | 11390 | |
b0cacab0 | 11391 | |
57aa50d4 TT |
11392 | # Extract the first word of "ldconfig", so it can be a program name with args. |
11393 | set dummy ldconfig; ac_word=$2 | |
54445dc2 TT |
11394 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11395 | printf %s "checking for $ac_word... " >&6; } | |
11396 | if test ${ac_cv_path_LDCONFIG+y} | |
11397 | then : | |
11398 | printf %s "(cached) " >&6 | |
11399 | else $as_nop | |
57aa50d4 TT |
11400 | case $LDCONFIG in |
11401 | [\\/]* | ?:[\\/]*) | |
11402 | ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path. | |
11403 | ;; | |
11404 | *) | |
11405 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11406 | for as_dir in $PATH | |
11407 | do | |
11408 | IFS=$as_save_IFS | |
54445dc2 TT |
11409 | case $as_dir in #((( |
11410 | '') as_dir=./ ;; | |
11411 | */) ;; | |
11412 | *) as_dir=$as_dir/ ;; | |
11413 | esac | |
57aa50d4 | 11414 | for ac_exec_ext in '' $ac_executable_extensions; do |
54445dc2 TT |
11415 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
11416 | ac_cv_path_LDCONFIG="$as_dir$ac_word$ac_exec_ext" | |
11417 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 | |
57aa50d4 TT |
11418 | break 2 |
11419 | fi | |
11420 | done | |
11421 | done | |
11422 | IFS=$as_save_IFS | |
b0cacab0 | 11423 | |
57aa50d4 TT |
11424 | test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG=":" |
11425 | ;; | |
11426 | esac | |
39fd3d4f | 11427 | fi |
57aa50d4 TT |
11428 | LDCONFIG=$ac_cv_path_LDCONFIG |
11429 | if test -n "$LDCONFIG"; then | |
54445dc2 TT |
11430 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LDCONFIG" >&5 |
11431 | printf "%s\n" "$LDCONFIG" >&6; } | |
57aa50d4 | 11432 | else |
54445dc2 TT |
11433 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11434 | printf "%s\n" "no" >&6; } | |
b0cacab0 | 11435 | fi |
39fd3d4f SJR |
11436 | |
11437 | ||
57aa50d4 TT |
11438 | if test -n "$ac_tool_prefix"; then |
11439 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. | |
11440 | set dummy ${ac_tool_prefix}ar; ac_word=$2 | |
54445dc2 TT |
11441 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11442 | printf %s "checking for $ac_word... " >&6; } | |
11443 | if test ${ac_cv_prog_AR+y} | |
11444 | then : | |
11445 | printf %s "(cached) " >&6 | |
11446 | else $as_nop | |
57aa50d4 TT |
11447 | if test -n "$AR"; then |
11448 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
11449 | else | |
11450 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11451 | for as_dir in $PATH | |
11452 | do | |
11453 | IFS=$as_save_IFS | |
54445dc2 TT |
11454 | case $as_dir in #((( |
11455 | '') as_dir=./ ;; | |
11456 | */) ;; | |
11457 | *) as_dir=$as_dir/ ;; | |
11458 | esac | |
57aa50d4 | 11459 | for ac_exec_ext in '' $ac_executable_extensions; do |
54445dc2 | 11460 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
57aa50d4 | 11461 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
54445dc2 | 11462 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
57aa50d4 TT |
11463 | break 2 |
11464 | fi | |
11465 | done | |
11466 | done | |
11467 | IFS=$as_save_IFS | |
39fd3d4f | 11468 | |
57aa50d4 TT |
11469 | fi |
11470 | fi | |
11471 | AR=$ac_cv_prog_AR | |
11472 | if test -n "$AR"; then | |
54445dc2 TT |
11473 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
11474 | printf "%s\n" "$AR" >&6; } | |
57aa50d4 | 11475 | else |
54445dc2 TT |
11476 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11477 | printf "%s\n" "no" >&6; } | |
57aa50d4 | 11478 | fi |
39fd3d4f | 11479 | |
b0cacab0 | 11480 | |
57aa50d4 TT |
11481 | fi |
11482 | if test -z "$ac_cv_prog_AR"; then | |
11483 | ac_ct_AR=$AR | |
11484 | # Extract the first word of "ar", so it can be a program name with args. | |
11485 | set dummy ar; ac_word=$2 | |
54445dc2 TT |
11486 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11487 | printf %s "checking for $ac_word... " >&6; } | |
11488 | if test ${ac_cv_prog_ac_ct_AR+y} | |
11489 | then : | |
11490 | printf %s "(cached) " >&6 | |
11491 | else $as_nop | |
57aa50d4 TT |
11492 | if test -n "$ac_ct_AR"; then |
11493 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
b0cacab0 | 11494 | else |
57aa50d4 TT |
11495 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11496 | for as_dir in $PATH | |
11497 | do | |
11498 | IFS=$as_save_IFS | |
54445dc2 TT |
11499 | case $as_dir in #((( |
11500 | '') as_dir=./ ;; | |
11501 | */) ;; | |
11502 | *) as_dir=$as_dir/ ;; | |
11503 | esac | |
57aa50d4 | 11504 | for ac_exec_ext in '' $ac_executable_extensions; do |
54445dc2 | 11505 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
57aa50d4 | 11506 | ac_cv_prog_ac_ct_AR="ar" |
54445dc2 | 11507 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
57aa50d4 TT |
11508 | break 2 |
11509 | fi | |
11510 | done | |
11511 | done | |
11512 | IFS=$as_save_IFS | |
b0cacab0 | 11513 | |
b0cacab0 | 11514 | fi |
57aa50d4 TT |
11515 | fi |
11516 | ac_ct_AR=$ac_cv_prog_ac_ct_AR | |
11517 | if test -n "$ac_ct_AR"; then | |
54445dc2 TT |
11518 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 |
11519 | printf "%s\n" "$ac_ct_AR" >&6; } | |
b0cacab0 | 11520 | else |
54445dc2 TT |
11521 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11522 | printf "%s\n" "no" >&6; } | |
57aa50d4 | 11523 | fi |
b0cacab0 | 11524 | |
57aa50d4 TT |
11525 | if test "x$ac_ct_AR" = x; then |
11526 | AR="ar" | |
11527 | else | |
11528 | case $cross_compiling:$ac_tool_warned in | |
11529 | yes:) | |
54445dc2 TT |
11530 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
11531 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
57aa50d4 | 11532 | ac_tool_warned=yes ;; |
e1052144 | 11533 | esac |
57aa50d4 TT |
11534 | AR=$ac_ct_AR |
11535 | fi | |
b0cacab0 | 11536 | else |
57aa50d4 | 11537 | AR="$ac_cv_prog_AR" |
b0cacab0 | 11538 | fi |
e1052144 | 11539 | |
57aa50d4 TT |
11540 | if test -n "$ac_tool_prefix"; then |
11541 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
11542 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
54445dc2 TT |
11543 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11544 | printf %s "checking for $ac_word... " >&6; } | |
11545 | if test ${ac_cv_prog_RANLIB+y} | |
11546 | then : | |
11547 | printf %s "(cached) " >&6 | |
11548 | else $as_nop | |
57aa50d4 TT |
11549 | if test -n "$RANLIB"; then |
11550 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
11551 | else | |
11552 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11553 | for as_dir in $PATH | |
11554 | do | |
11555 | IFS=$as_save_IFS | |
54445dc2 TT |
11556 | case $as_dir in #((( |
11557 | '') as_dir=./ ;; | |
11558 | */) ;; | |
11559 | *) as_dir=$as_dir/ ;; | |
11560 | esac | |
57aa50d4 | 11561 | for ac_exec_ext in '' $ac_executable_extensions; do |
54445dc2 | 11562 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
57aa50d4 | 11563 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
54445dc2 | 11564 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
57aa50d4 TT |
11565 | break 2 |
11566 | fi | |
11567 | done | |
b0cacab0 | 11568 | done |
57aa50d4 | 11569 | IFS=$as_save_IFS |
b0cacab0 | 11570 | |
b0cacab0 | 11571 | fi |
57aa50d4 TT |
11572 | fi |
11573 | RANLIB=$ac_cv_prog_RANLIB | |
11574 | if test -n "$RANLIB"; then | |
54445dc2 TT |
11575 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
11576 | printf "%s\n" "$RANLIB" >&6; } | |
b0cacab0 | 11577 | else |
54445dc2 TT |
11578 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11579 | printf "%s\n" "no" >&6; } | |
b0cacab0 | 11580 | fi |
b0cacab0 | 11581 | |
b0cacab0 | 11582 | |
57aa50d4 TT |
11583 | fi |
11584 | if test -z "$ac_cv_prog_RANLIB"; then | |
11585 | ac_ct_RANLIB=$RANLIB | |
11586 | # Extract the first word of "ranlib", so it can be a program name with args. | |
11587 | set dummy ranlib; ac_word=$2 | |
54445dc2 TT |
11588 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11589 | printf %s "checking for $ac_word... " >&6; } | |
11590 | if test ${ac_cv_prog_ac_ct_RANLIB+y} | |
11591 | then : | |
11592 | printf %s "(cached) " >&6 | |
11593 | else $as_nop | |
57aa50d4 TT |
11594 | if test -n "$ac_ct_RANLIB"; then |
11595 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
b0cacab0 | 11596 | else |
57aa50d4 TT |
11597 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11598 | for as_dir in $PATH | |
11599 | do | |
11600 | IFS=$as_save_IFS | |
54445dc2 TT |
11601 | case $as_dir in #((( |
11602 | '') as_dir=./ ;; | |
11603 | */) ;; | |
11604 | *) as_dir=$as_dir/ ;; | |
11605 | esac | |
57aa50d4 | 11606 | for ac_exec_ext in '' $ac_executable_extensions; do |
54445dc2 | 11607 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
57aa50d4 | 11608 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
54445dc2 | 11609 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
57aa50d4 TT |
11610 | break 2 |
11611 | fi | |
11612 | done | |
11613 | done | |
11614 | IFS=$as_save_IFS | |
29a5deed | 11615 | |
b0cacab0 | 11616 | fi |
57aa50d4 TT |
11617 | fi |
11618 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
11619 | if test -n "$ac_ct_RANLIB"; then | |
54445dc2 TT |
11620 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 |
11621 | printf "%s\n" "$ac_ct_RANLIB" >&6; } | |
b0cacab0 | 11622 | else |
54445dc2 TT |
11623 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11624 | printf "%s\n" "no" >&6; } | |
57aa50d4 | 11625 | fi |
b0cacab0 | 11626 | |
57aa50d4 TT |
11627 | if test "x$ac_ct_RANLIB" = x; then |
11628 | RANLIB=":" | |
b0cacab0 | 11629 | else |
57aa50d4 TT |
11630 | case $cross_compiling:$ac_tool_warned in |
11631 | yes:) | |
54445dc2 TT |
11632 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
11633 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
57aa50d4 | 11634 | ac_tool_warned=yes ;; |
e1052144 | 11635 | esac |
57aa50d4 TT |
11636 | RANLIB=$ac_ct_RANLIB |
11637 | fi | |
b0cacab0 | 11638 | else |
57aa50d4 | 11639 | RANLIB="$ac_cv_prog_RANLIB" |
b0cacab0 | 11640 | fi |
e1052144 | 11641 | |
57aa50d4 TT |
11642 | if test -n "$ac_tool_prefix"; then |
11643 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
11644 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
54445dc2 TT |
11645 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11646 | printf %s "checking for $ac_word... " >&6; } | |
11647 | if test ${ac_cv_prog_STRIP+y} | |
11648 | then : | |
11649 | printf %s "(cached) " >&6 | |
11650 | else $as_nop | |
57aa50d4 TT |
11651 | if test -n "$STRIP"; then |
11652 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
11653 | else | |
11654 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11655 | for as_dir in $PATH | |
11656 | do | |
11657 | IFS=$as_save_IFS | |
54445dc2 TT |
11658 | case $as_dir in #((( |
11659 | '') as_dir=./ ;; | |
11660 | */) ;; | |
11661 | *) as_dir=$as_dir/ ;; | |
11662 | esac | |
57aa50d4 | 11663 | for ac_exec_ext in '' $ac_executable_extensions; do |
54445dc2 | 11664 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
57aa50d4 | 11665 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
54445dc2 | 11666 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
57aa50d4 TT |
11667 | break 2 |
11668 | fi | |
11669 | done | |
11670 | done | |
11671 | IFS=$as_save_IFS | |
b0cacab0 | 11672 | |
b0cacab0 | 11673 | fi |
b0cacab0 | 11674 | fi |
57aa50d4 TT |
11675 | STRIP=$ac_cv_prog_STRIP |
11676 | if test -n "$STRIP"; then | |
54445dc2 TT |
11677 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
11678 | printf "%s\n" "$STRIP" >&6; } | |
57aa50d4 | 11679 | else |
54445dc2 TT |
11680 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11681 | printf "%s\n" "no" >&6; } | |
b0cacab0 | 11682 | fi |
e1052144 | 11683 | |
b0cacab0 | 11684 | |
57aa50d4 TT |
11685 | fi |
11686 | if test -z "$ac_cv_prog_STRIP"; then | |
11687 | ac_ct_STRIP=$STRIP | |
11688 | # Extract the first word of "strip", so it can be a program name with args. | |
11689 | set dummy strip; ac_word=$2 | |
54445dc2 TT |
11690 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11691 | printf %s "checking for $ac_word... " >&6; } | |
11692 | if test ${ac_cv_prog_ac_ct_STRIP+y} | |
11693 | then : | |
11694 | printf %s "(cached) " >&6 | |
11695 | else $as_nop | |
57aa50d4 TT |
11696 | if test -n "$ac_ct_STRIP"; then |
11697 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
11698 | else | |
11699 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11700 | for as_dir in $PATH | |
11701 | do | |
11702 | IFS=$as_save_IFS | |
54445dc2 TT |
11703 | case $as_dir in #((( |
11704 | '') as_dir=./ ;; | |
11705 | */) ;; | |
11706 | *) as_dir=$as_dir/ ;; | |
11707 | esac | |
57aa50d4 | 11708 | for ac_exec_ext in '' $ac_executable_extensions; do |
54445dc2 | 11709 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
57aa50d4 | 11710 | ac_cv_prog_ac_ct_STRIP="strip" |
54445dc2 | 11711 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
57aa50d4 TT |
11712 | break 2 |
11713 | fi | |
11714 | done | |
11715 | done | |
11716 | IFS=$as_save_IFS | |
b0cacab0 | 11717 | |
b0cacab0 | 11718 | fi |
57aa50d4 TT |
11719 | fi |
11720 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
11721 | if test -n "$ac_ct_STRIP"; then | |
54445dc2 TT |
11722 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 |
11723 | printf "%s\n" "$ac_ct_STRIP" >&6; } | |
b0cacab0 | 11724 | else |
54445dc2 TT |
11725 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11726 | printf "%s\n" "no" >&6; } | |
57aa50d4 | 11727 | fi |
b0cacab0 | 11728 | |
57aa50d4 TT |
11729 | if test "x$ac_ct_STRIP" = x; then |
11730 | STRIP=":" | |
b0cacab0 | 11731 | else |
57aa50d4 TT |
11732 | case $cross_compiling:$ac_tool_warned in |
11733 | yes:) | |
54445dc2 TT |
11734 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
11735 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
57aa50d4 | 11736 | ac_tool_warned=yes ;; |
e1052144 | 11737 | esac |
57aa50d4 TT |
11738 | STRIP=$ac_ct_STRIP |
11739 | fi | |
b0cacab0 | 11740 | else |
57aa50d4 | 11741 | STRIP="$ac_cv_prog_STRIP" |
b0cacab0 | 11742 | fi |
e1052144 | 11743 | |
57aa50d4 TT |
11744 | # Extract the first word of "makeinfo", so it can be a program name with args. |
11745 | set dummy makeinfo; ac_word=$2 | |
54445dc2 TT |
11746 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11747 | printf %s "checking for $ac_word... " >&6; } | |
11748 | if test ${ac_cv_prog_MAKEINFO+y} | |
11749 | then : | |
11750 | printf %s "(cached) " >&6 | |
11751 | else $as_nop | |
57aa50d4 TT |
11752 | if test -n "$MAKEINFO"; then |
11753 | ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test. | |
11754 | else | |
11755 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11756 | for as_dir in $PATH | |
11757 | do | |
11758 | IFS=$as_save_IFS | |
54445dc2 TT |
11759 | case $as_dir in #((( |
11760 | '') as_dir=./ ;; | |
11761 | */) ;; | |
11762 | *) as_dir=$as_dir/ ;; | |
11763 | esac | |
57aa50d4 | 11764 | for ac_exec_ext in '' $ac_executable_extensions; do |
54445dc2 | 11765 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
57aa50d4 | 11766 | ac_cv_prog_MAKEINFO="makeinfo" |
54445dc2 | 11767 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
57aa50d4 TT |
11768 | break 2 |
11769 | fi | |
11770 | done | |
11771 | done | |
11772 | IFS=$as_save_IFS | |
b0cacab0 | 11773 | |
b0cacab0 TT |
11774 | fi |
11775 | fi | |
57aa50d4 TT |
11776 | MAKEINFO=$ac_cv_prog_MAKEINFO |
11777 | if test -n "$MAKEINFO"; then | |
54445dc2 TT |
11778 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5 |
11779 | printf "%s\n" "$MAKEINFO" >&6; } | |
b0cacab0 | 11780 | else |
54445dc2 TT |
11781 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11782 | printf "%s\n" "no" >&6; } | |
07a0db15 | 11783 | fi |
29a5deed TT |
11784 | |
11785 | ||
57aa50d4 | 11786 | if test "_$MAKEINFO" = "_"; then |
ca1de98a | 11787 | MAKEINFO="echo Makeinfo is missing. Info documentation will not be built." |
57aa50d4 TT |
11788 | else |
11789 | case "$MAKEINFO" in | |
11790 | */missing.*) | |
54445dc2 | 11791 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: |
57aa50d4 | 11792 | *** Makeinfo is missing. Info documentation will not be built." >&5 |
54445dc2 | 11793 | printf "%s\n" "$as_me: WARNING: |
57aa50d4 TT |
11794 | *** Makeinfo is missing. Info documentation will not be built." >&2;} |
11795 | ;; | |
11796 | *) | |
11797 | ;; | |
11798 | esac | |
b0cacab0 | 11799 | fi |
29a5deed | 11800 | |
b0cacab0 | 11801 | |
57aa50d4 TT |
11802 | # See if we need a separate native compiler. |
11803 | if test $cross_compiling = no; then | |
11804 | BUILD_CC="$CC" | |
b0cacab0 | 11805 | |
b0cacab0 | 11806 | else |
57aa50d4 TT |
11807 | for ac_prog in gcc cc |
11808 | do | |
11809 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
11810 | set dummy $ac_prog; ac_word=$2 | |
54445dc2 TT |
11811 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11812 | printf %s "checking for $ac_word... " >&6; } | |
11813 | if test ${ac_cv_prog_BUILD_CC+y} | |
11814 | then : | |
11815 | printf %s "(cached) " >&6 | |
11816 | else $as_nop | |
57aa50d4 TT |
11817 | if test -n "$BUILD_CC"; then |
11818 | ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test. | |
11819 | else | |
11820 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11821 | for as_dir in $PATH | |
11822 | do | |
11823 | IFS=$as_save_IFS | |
54445dc2 TT |
11824 | case $as_dir in #((( |
11825 | '') as_dir=./ ;; | |
11826 | */) ;; | |
11827 | *) as_dir=$as_dir/ ;; | |
11828 | esac | |
57aa50d4 | 11829 | for ac_exec_ext in '' $ac_executable_extensions; do |
54445dc2 | 11830 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
57aa50d4 | 11831 | ac_cv_prog_BUILD_CC="$ac_prog" |
54445dc2 | 11832 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
57aa50d4 TT |
11833 | break 2 |
11834 | fi | |
11835 | done | |
11836 | done | |
11837 | IFS=$as_save_IFS | |
b0cacab0 | 11838 | |
b0cacab0 | 11839 | fi |
57aa50d4 TT |
11840 | fi |
11841 | BUILD_CC=$ac_cv_prog_BUILD_CC | |
11842 | if test -n "$BUILD_CC"; then | |
54445dc2 TT |
11843 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5 |
11844 | printf "%s\n" "$BUILD_CC" >&6; } | |
07a0db15 | 11845 | else |
54445dc2 TT |
11846 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11847 | printf "%s\n" "no" >&6; } | |
b0cacab0 | 11848 | fi |
b0cacab0 | 11849 | |
b0cacab0 | 11850 | |
57aa50d4 TT |
11851 | test -n "$BUILD_CC" && break |
11852 | done | |
b0cacab0 | 11853 | |
57aa50d4 | 11854 | fi |
54445dc2 TT |
11855 | ac_fn_c_check_header_compile "$LINENO" "dirent.h" "ac_cv_header_dirent_h" "$ac_includes_default" |
11856 | if test "x$ac_cv_header_dirent_h" = xyes | |
11857 | then : | |
11858 | printf "%s\n" "#define HAVE_DIRENT_H 1" >>confdefs.h | |
b0cacab0 | 11859 | |
b0cacab0 | 11860 | fi |
54445dc2 TT |
11861 | ac_fn_c_check_header_compile "$LINENO" "errno.h" "ac_cv_header_errno_h" "$ac_includes_default" |
11862 | if test "x$ac_cv_header_errno_h" = xyes | |
11863 | then : | |
11864 | printf "%s\n" "#define HAVE_ERRNO_H 1" >>confdefs.h | |
e1052144 | 11865 | |
54445dc2 TT |
11866 | fi |
11867 | ac_fn_c_check_header_compile "$LINENO" "execinfo.h" "ac_cv_header_execinfo_h" "$ac_includes_default" | |
11868 | if test "x$ac_cv_header_execinfo_h" = xyes | |
11869 | then : | |
11870 | printf "%s\n" "#define HAVE_EXECINFO_H 1" >>confdefs.h | |
11871 | ||
11872 | fi | |
11873 | ac_fn_c_check_header_compile "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default" | |
11874 | if test "x$ac_cv_header_getopt_h" = xyes | |
11875 | then : | |
11876 | printf "%s\n" "#define HAVE_GETOPT_H 1" >>confdefs.h | |
93636bde | 11877 | |
54445dc2 TT |
11878 | fi |
11879 | ac_fn_c_check_header_compile "$LINENO" "malloc.h" "ac_cv_header_malloc_h" "$ac_includes_default" | |
11880 | if test "x$ac_cv_header_malloc_h" = xyes | |
11881 | then : | |
11882 | printf "%s\n" "#define HAVE_MALLOC_H 1" >>confdefs.h | |
11883 | ||
11884 | fi | |
11885 | ac_fn_c_check_header_compile "$LINENO" "mntent.h" "ac_cv_header_mntent_h" "$ac_includes_default" | |
11886 | if test "x$ac_cv_header_mntent_h" = xyes | |
11887 | then : | |
11888 | printf "%s\n" "#define HAVE_MNTENT_H 1" >>confdefs.h | |
11889 | ||
11890 | fi | |
11891 | ac_fn_c_check_header_compile "$LINENO" "paths.h" "ac_cv_header_paths_h" "$ac_includes_default" | |
11892 | if test "x$ac_cv_header_paths_h" = xyes | |
11893 | then : | |
11894 | printf "%s\n" "#define HAVE_PATHS_H 1" >>confdefs.h | |
11895 | ||
11896 | fi | |
11897 | ac_fn_c_check_header_compile "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default" | |
11898 | if test "x$ac_cv_header_pthread_h" = xyes | |
11899 | then : | |
11900 | printf "%s\n" "#define HAVE_PTHREAD_H 1" >>confdefs.h | |
11901 | ||
11902 | fi | |
11903 | ac_fn_c_check_header_compile "$LINENO" "semaphore.h" "ac_cv_header_semaphore_h" "$ac_includes_default" | |
11904 | if test "x$ac_cv_header_semaphore_h" = xyes | |
11905 | then : | |
11906 | printf "%s\n" "#define HAVE_SEMAPHORE_H 1" >>confdefs.h | |
11907 | ||
11908 | fi | |
11909 | ac_fn_c_check_header_compile "$LINENO" "setjmp.h" "ac_cv_header_setjmp_h" "$ac_includes_default" | |
11910 | if test "x$ac_cv_header_setjmp_h" = xyes | |
11911 | then : | |
11912 | printf "%s\n" "#define HAVE_SETJMP_H 1" >>confdefs.h | |
11913 | ||
11914 | fi | |
11915 | ac_fn_c_check_header_compile "$LINENO" "signal.h" "ac_cv_header_signal_h" "$ac_includes_default" | |
11916 | if test "x$ac_cv_header_signal_h" = xyes | |
11917 | then : | |
11918 | printf "%s\n" "#define HAVE_SIGNAL_H 1" >>confdefs.h | |
11919 | ||
11920 | fi | |
11921 | ac_fn_c_check_header_compile "$LINENO" "stdarg.h" "ac_cv_header_stdarg_h" "$ac_includes_default" | |
11922 | if test "x$ac_cv_header_stdarg_h" = xyes | |
11923 | then : | |
11924 | printf "%s\n" "#define HAVE_STDARG_H 1" >>confdefs.h | |
11925 | ||
11926 | fi | |
11927 | ac_fn_c_check_header_compile "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default" | |
11928 | if test "x$ac_cv_header_stdint_h" = xyes | |
11929 | then : | |
11930 | printf "%s\n" "#define HAVE_STDINT_H 1" >>confdefs.h | |
11931 | ||
11932 | fi | |
11933 | ac_fn_c_check_header_compile "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default" | |
11934 | if test "x$ac_cv_header_stdlib_h" = xyes | |
11935 | then : | |
11936 | printf "%s\n" "#define HAVE_STDLIB_H 1" >>confdefs.h | |
11937 | ||
11938 | fi | |
11939 | ac_fn_c_check_header_compile "$LINENO" "termios.h" "ac_cv_header_termios_h" "$ac_includes_default" | |
11940 | if test "x$ac_cv_header_termios_h" = xyes | |
11941 | then : | |
11942 | printf "%s\n" "#define HAVE_TERMIOS_H 1" >>confdefs.h | |
11943 | ||
11944 | fi | |
11945 | ac_fn_c_check_header_compile "$LINENO" "termio.h" "ac_cv_header_termio_h" "$ac_includes_default" | |
11946 | if test "x$ac_cv_header_termio_h" = xyes | |
11947 | then : | |
11948 | printf "%s\n" "#define HAVE_TERMIO_H 1" >>confdefs.h | |
11949 | ||
11950 | fi | |
11951 | ac_fn_c_check_header_compile "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default" | |
11952 | if test "x$ac_cv_header_unistd_h" = xyes | |
11953 | then : | |
11954 | printf "%s\n" "#define HAVE_UNISTD_H 1" >>confdefs.h | |
11955 | ||
11956 | fi | |
11957 | ac_fn_c_check_header_compile "$LINENO" "utime.h" "ac_cv_header_utime_h" "$ac_includes_default" | |
11958 | if test "x$ac_cv_header_utime_h" = xyes | |
11959 | then : | |
11960 | printf "%s\n" "#define HAVE_UTIME_H 1" >>confdefs.h | |
11961 | ||
11962 | fi | |
11963 | ac_fn_c_check_header_compile "$LINENO" "attr/xattr.h" "ac_cv_header_attr_xattr_h" "$ac_includes_default" | |
11964 | if test "x$ac_cv_header_attr_xattr_h" = xyes | |
11965 | then : | |
11966 | printf "%s\n" "#define HAVE_ATTR_XATTR_H 1" >>confdefs.h | |
11967 | ||
11968 | fi | |
11969 | ac_fn_c_check_header_compile "$LINENO" "linux/falloc.h" "ac_cv_header_linux_falloc_h" "$ac_includes_default" | |
11970 | if test "x$ac_cv_header_linux_falloc_h" = xyes | |
11971 | then : | |
11972 | printf "%s\n" "#define HAVE_LINUX_FALLOC_H 1" >>confdefs.h | |
11973 | ||
11974 | fi | |
11975 | ac_fn_c_check_header_compile "$LINENO" "linux/fd.h" "ac_cv_header_linux_fd_h" "$ac_includes_default" | |
11976 | if test "x$ac_cv_header_linux_fd_h" = xyes | |
11977 | then : | |
11978 | printf "%s\n" "#define HAVE_LINUX_FD_H 1" >>confdefs.h | |
11979 | ||
11980 | fi | |
11981 | ac_fn_c_check_header_compile "$LINENO" "linux/fsmap.h" "ac_cv_header_linux_fsmap_h" "$ac_includes_default" | |
11982 | if test "x$ac_cv_header_linux_fsmap_h" = xyes | |
11983 | then : | |
11984 | printf "%s\n" "#define HAVE_LINUX_FSMAP_H 1" >>confdefs.h | |
11985 | ||
11986 | fi | |
11987 | ac_fn_c_check_header_compile "$LINENO" "linux/major.h" "ac_cv_header_linux_major_h" "$ac_includes_default" | |
11988 | if test "x$ac_cv_header_linux_major_h" = xyes | |
11989 | then : | |
11990 | printf "%s\n" "#define HAVE_LINUX_MAJOR_H 1" >>confdefs.h | |
11991 | ||
11992 | fi | |
11993 | ac_fn_c_check_header_compile "$LINENO" "linux/loop.h" "ac_cv_header_linux_loop_h" "$ac_includes_default" | |
11994 | if test "x$ac_cv_header_linux_loop_h" = xyes | |
11995 | then : | |
11996 | printf "%s\n" "#define HAVE_LINUX_LOOP_H 1" >>confdefs.h | |
11997 | ||
11998 | fi | |
11999 | ac_fn_c_check_header_compile "$LINENO" "linux/types.h" "ac_cv_header_linux_types_h" "$ac_includes_default" | |
12000 | if test "x$ac_cv_header_linux_types_h" = xyes | |
12001 | then : | |
12002 | printf "%s\n" "#define HAVE_LINUX_TYPES_H 1" >>confdefs.h | |
12003 | ||
12004 | fi | |
12005 | ac_fn_c_check_header_compile "$LINENO" "net/if_dl.h" "ac_cv_header_net_if_dl_h" "$ac_includes_default" | |
12006 | if test "x$ac_cv_header_net_if_dl_h" = xyes | |
12007 | then : | |
12008 | printf "%s\n" "#define HAVE_NET_IF_DL_H 1" >>confdefs.h | |
12009 | ||
12010 | fi | |
12011 | ac_fn_c_check_header_compile "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default" | |
12012 | if test "x$ac_cv_header_netinet_in_h" = xyes | |
12013 | then : | |
12014 | printf "%s\n" "#define HAVE_NETINET_IN_H 1" >>confdefs.h | |
12015 | ||
12016 | fi | |
12017 | ac_fn_c_check_header_compile "$LINENO" "sys/acl.h" "ac_cv_header_sys_acl_h" "$ac_includes_default" | |
12018 | if test "x$ac_cv_header_sys_acl_h" = xyes | |
12019 | then : | |
12020 | printf "%s\n" "#define HAVE_SYS_ACL_H 1" >>confdefs.h | |
12021 | ||
12022 | fi | |
12023 | ac_fn_c_check_header_compile "$LINENO" "sys/disklabel.h" "ac_cv_header_sys_disklabel_h" "$ac_includes_default" | |
12024 | if test "x$ac_cv_header_sys_disklabel_h" = xyes | |
12025 | then : | |
12026 | printf "%s\n" "#define HAVE_SYS_DISKLABEL_H 1" >>confdefs.h | |
12027 | ||
12028 | fi | |
12029 | ac_fn_c_check_header_compile "$LINENO" "sys/disk.h" "ac_cv_header_sys_disk_h" "$ac_includes_default" | |
12030 | if test "x$ac_cv_header_sys_disk_h" = xyes | |
12031 | then : | |
12032 | printf "%s\n" "#define HAVE_SYS_DISK_H 1" >>confdefs.h | |
12033 | ||
12034 | fi | |
12035 | ac_fn_c_check_header_compile "$LINENO" "sys/file.h" "ac_cv_header_sys_file_h" "$ac_includes_default" | |
12036 | if test "x$ac_cv_header_sys_file_h" = xyes | |
12037 | then : | |
12038 | printf "%s\n" "#define HAVE_SYS_FILE_H 1" >>confdefs.h | |
12039 | ||
12040 | fi | |
12041 | ac_fn_c_check_header_compile "$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "$ac_includes_default" | |
12042 | if test "x$ac_cv_header_sys_ioctl_h" = xyes | |
12043 | then : | |
12044 | printf "%s\n" "#define HAVE_SYS_IOCTL_H 1" >>confdefs.h | |
12045 | ||
12046 | fi | |
12047 | ac_fn_c_check_header_compile "$LINENO" "sys/key.h" "ac_cv_header_sys_key_h" "$ac_includes_default" | |
12048 | if test "x$ac_cv_header_sys_key_h" = xyes | |
12049 | then : | |
12050 | printf "%s\n" "#define HAVE_SYS_KEY_H 1" >>confdefs.h | |
12051 | ||
12052 | fi | |
12053 | ac_fn_c_check_header_compile "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default" | |
12054 | if test "x$ac_cv_header_sys_mkdev_h" = xyes | |
12055 | then : | |
12056 | printf "%s\n" "#define HAVE_SYS_MKDEV_H 1" >>confdefs.h | |
12057 | ||
12058 | fi | |
12059 | ac_fn_c_check_header_compile "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default" | |
12060 | if test "x$ac_cv_header_sys_mman_h" = xyes | |
12061 | then : | |
12062 | printf "%s\n" "#define HAVE_SYS_MMAN_H 1" >>confdefs.h | |
12063 | ||
12064 | fi | |
12065 | ac_fn_c_check_header_compile "$LINENO" "sys/mount.h" "ac_cv_header_sys_mount_h" "$ac_includes_default" | |
12066 | if test "x$ac_cv_header_sys_mount_h" = xyes | |
12067 | then : | |
12068 | printf "%s\n" "#define HAVE_SYS_MOUNT_H 1" >>confdefs.h | |
12069 | ||
12070 | fi | |
12071 | ac_fn_c_check_header_compile "$LINENO" "sys/prctl.h" "ac_cv_header_sys_prctl_h" "$ac_includes_default" | |
12072 | if test "x$ac_cv_header_sys_prctl_h" = xyes | |
12073 | then : | |
12074 | printf "%s\n" "#define HAVE_SYS_PRCTL_H 1" >>confdefs.h | |
12075 | ||
12076 | fi | |
12077 | ac_fn_c_check_header_compile "$LINENO" "sys/random.h" "ac_cv_header_sys_random_h" "$ac_includes_default" | |
12078 | if test "x$ac_cv_header_sys_random_h" = xyes | |
12079 | then : | |
12080 | printf "%s\n" "#define HAVE_SYS_RANDOM_H 1" >>confdefs.h | |
12081 | ||
12082 | fi | |
12083 | ac_fn_c_check_header_compile "$LINENO" "sys/resource.h" "ac_cv_header_sys_resource_h" "$ac_includes_default" | |
12084 | if test "x$ac_cv_header_sys_resource_h" = xyes | |
12085 | then : | |
12086 | printf "%s\n" "#define HAVE_SYS_RESOURCE_H 1" >>confdefs.h | |
12087 | ||
12088 | fi | |
12089 | ac_fn_c_check_header_compile "$LINENO" "sys/select.h" "ac_cv_header_sys_select_h" "$ac_includes_default" | |
12090 | if test "x$ac_cv_header_sys_select_h" = xyes | |
12091 | then : | |
12092 | printf "%s\n" "#define HAVE_SYS_SELECT_H 1" >>confdefs.h | |
12093 | ||
12094 | fi | |
12095 | ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default" | |
12096 | if test "x$ac_cv_header_sys_socket_h" = xyes | |
12097 | then : | |
12098 | printf "%s\n" "#define HAVE_SYS_SOCKET_H 1" >>confdefs.h | |
12099 | ||
12100 | fi | |
12101 | ac_fn_c_check_header_compile "$LINENO" "sys/sockio.h" "ac_cv_header_sys_sockio_h" "$ac_includes_default" | |
12102 | if test "x$ac_cv_header_sys_sockio_h" = xyes | |
12103 | then : | |
12104 | printf "%s\n" "#define HAVE_SYS_SOCKIO_H 1" >>confdefs.h | |
12105 | ||
12106 | fi | |
12107 | ac_fn_c_check_header_compile "$LINENO" "sys/stat.h" "ac_cv_header_sys_stat_h" "$ac_includes_default" | |
12108 | if test "x$ac_cv_header_sys_stat_h" = xyes | |
12109 | then : | |
12110 | printf "%s\n" "#define HAVE_SYS_STAT_H 1" >>confdefs.h | |
12111 | ||
12112 | fi | |
12113 | ac_fn_c_check_header_compile "$LINENO" "sys/syscall.h" "ac_cv_header_sys_syscall_h" "$ac_includes_default" | |
12114 | if test "x$ac_cv_header_sys_syscall_h" = xyes | |
12115 | then : | |
12116 | printf "%s\n" "#define HAVE_SYS_SYSCALL_H 1" >>confdefs.h | |
12117 | ||
12118 | fi | |
12119 | ac_fn_c_check_header_compile "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default" | |
12120 | if test "x$ac_cv_header_sys_sysmacros_h" = xyes | |
12121 | then : | |
12122 | printf "%s\n" "#define HAVE_SYS_SYSMACROS_H 1" >>confdefs.h | |
12123 | ||
12124 | fi | |
12125 | ac_fn_c_check_header_compile "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default" | |
12126 | if test "x$ac_cv_header_sys_time_h" = xyes | |
12127 | then : | |
12128 | printf "%s\n" "#define HAVE_SYS_TIME_H 1" >>confdefs.h | |
12129 | ||
12130 | fi | |
12131 | ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default" | |
12132 | if test "x$ac_cv_header_sys_types_h" = xyes | |
12133 | then : | |
12134 | printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h | |
12135 | ||
12136 | fi | |
12137 | ac_fn_c_check_header_compile "$LINENO" "sys/un.h" "ac_cv_header_sys_un_h" "$ac_includes_default" | |
12138 | if test "x$ac_cv_header_sys_un_h" = xyes | |
12139 | then : | |
12140 | printf "%s\n" "#define HAVE_SYS_UN_H 1" >>confdefs.h | |
12141 | ||
12142 | fi | |
12143 | ac_fn_c_check_header_compile "$LINENO" "sys/wait.h" "ac_cv_header_sys_wait_h" "$ac_includes_default" | |
12144 | if test "x$ac_cv_header_sys_wait_h" = xyes | |
12145 | then : | |
12146 | printf "%s\n" "#define HAVE_SYS_WAIT_H 1" >>confdefs.h | |
12147 | ||
12148 | fi | |
12149 | ac_fn_c_check_header_compile "$LINENO" "sys/xattr.h" "ac_cv_header_sys_xattr_h" "$ac_includes_default" | |
12150 | if test "x$ac_cv_header_sys_xattr_h" = xyes | |
12151 | then : | |
12152 | printf "%s\n" "#define HAVE_SYS_XATTR_H 1" >>confdefs.h | |
12153 | ||
12154 | fi | |
12155 | ||
6eb00fb7 EB |
12156 | case "$host_os" in |
12157 | mingw*) | |
12158 | # The above checks only detect system headers, not the headers in | |
12159 | # ./include/mingw/, so explicitly define them to be available. | |
12160 | printf "%s\n" "#define HAVE_LINUX_TYPES_H 1" >>confdefs.h | |
12161 | ||
12162 | printf "%s\n" "#define HAVE_SYS_STAT_H 1" >>confdefs.h | |
12163 | ||
12164 | printf "%s\n" "#define HAVE_SYS_SYSMACROS_H 1" >>confdefs.h | |
12165 | ||
12166 | printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h | |
12167 | ||
12168 | printf "%s\n" "#define HAVE_UNISTD_H 1" >>confdefs.h | |
12169 | ||
12170 | ;; | |
12171 | esac | |
54445dc2 TT |
12172 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a dd(1) program that supports iflag=fullblock" >&5 |
12173 | printf %s "checking for a dd(1) program that supports iflag=fullblock... " >&6; } | |
ec3a69bb MA |
12174 | DD= |
12175 | for i in dd gdd ; do | |
12176 | if "$i" if=/dev/null of=/dev/null count=1 bs=10k 2>/dev/null iflag=fullblock oflag=append ; then | |
12177 | DD=$i | |
12178 | break | |
12179 | fi | |
12180 | done | |
12181 | if test -n "$DD" ; then | |
54445dc2 TT |
12182 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DD" >&5 |
12183 | printf "%s\n" "$DD" >&6; } | |
ec3a69bb | 12184 | else |
54445dc2 TT |
12185 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not found, using dd" >&5 |
12186 | printf "%s\n" "not found, using dd" >&6; } | |
ec3a69bb | 12187 | DD=dd |
54445dc2 TT |
12188 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: No GNU-compatible dd(1) program found, expect some self-test failures." >&5 |
12189 | printf "%s\n" "$as_me: WARNING: No GNU-compatible dd(1) program found, expect some self-test failures." >&2;} | |
ec3a69bb MA |
12190 | fi |
12191 | ||
12192 | ||
54445dc2 | 12193 | ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" " |
57aa50d4 TT |
12194 | #if HAVE_SYS_TYPES_H |
12195 | #include <sys/types.h> | |
12196 | #endif | |
12197 | #if HAVE_SYS_SOCKET | |
12198 | #include <sys/socket.h> | |
12199 | #endif | |
29a5deed | 12200 | |
57aa50d4 | 12201 | " |
54445dc2 TT |
12202 | if test "x$ac_cv_header_net_if_h" = xyes |
12203 | then : | |
12204 | printf "%s\n" "#define HAVE_NET_IF_H 1" >>confdefs.h | |
b0cacab0 | 12205 | |
b0cacab0 | 12206 | fi |
e1052144 | 12207 | |
54445dc2 TT |
12208 | ac_func= |
12209 | for ac_item in $ac_func_c_list | |
12210 | do | |
12211 | if test $ac_func; then | |
12212 | ac_fn_c_check_func "$LINENO" $ac_func ac_cv_func_$ac_func | |
12213 | if eval test \"x\$ac_cv_func_$ac_func\" = xyes; then | |
12214 | echo "#define $ac_item 1" >> confdefs.h | |
12215 | fi | |
12216 | ac_func= | |
12217 | else | |
12218 | ac_func=$ac_item | |
12219 | fi | |
b0cacab0 | 12220 | done |
b0cacab0 | 12221 | |
54445dc2 TT |
12222 | if test "x$ac_cv_func_vprintf" = xno |
12223 | then : | |
12224 | ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt" | |
12225 | if test "x$ac_cv_func__doprnt" = xyes | |
12226 | then : | |
b0cacab0 | 12227 | |
54445dc2 | 12228 | printf "%s\n" "#define HAVE_DOPRNT 1" >>confdefs.h |
b0cacab0 | 12229 | |
54445dc2 | 12230 | fi |
b0cacab0 | 12231 | |
50e1e10f | 12232 | fi |
54445dc2 TT |
12233 | ac_fn_c_check_member "$LINENO" "struct dirent" "d_reclen" "ac_cv_member_struct_dirent_d_reclen" "#include <dirent.h> |
12234 | " | |
12235 | if test "x$ac_cv_member_struct_dirent_d_reclen" = xyes | |
12236 | then : | |
12237 | ||
12238 | printf "%s\n" "#define HAVE_RECLEN_DIRENT 1" >>confdefs.h | |
29a5deed | 12239 | |
57aa50d4 | 12240 | fi |
29a5deed | 12241 | |
54445dc2 TT |
12242 | ac_fn_c_check_member "$LINENO" "struct stat" "st_atim" "ac_cv_member_struct_stat_st_atim" "$ac_includes_default" |
12243 | if test "x$ac_cv_member_struct_stat_st_atim" = xyes | |
12244 | then : | |
12245 | ||
12246 | printf "%s\n" "#define HAVE_STRUCT_STAT_ST_ATIM 1" >>confdefs.h | |
29a5deed | 12247 | |
54445dc2 TT |
12248 | |
12249 | fi | |
12250 | ||
12251 | ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "#include <sys/types.h> | |
57aa50d4 | 12252 | " |
54445dc2 TT |
12253 | if test "x$ac_cv_type_ssize_t" = xyes |
12254 | then : | |
12255 | ||
12256 | printf "%s\n" "#define HAVE_TYPE_SSIZE_T 1" >>confdefs.h | |
12257 | ||
12258 | fi | |
12259 | ||
12260 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5 | |
12261 | printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; } | |
12262 | if test ${ac_cv_c_undeclared_builtin_options+y} | |
12263 | then : | |
12264 | printf %s "(cached) " >&6 | |
12265 | else $as_nop | |
12266 | ac_save_CFLAGS=$CFLAGS | |
12267 | ac_cv_c_undeclared_builtin_options='cannot detect' | |
12268 | for ac_arg in '' -fno-builtin; do | |
12269 | CFLAGS="$ac_save_CFLAGS $ac_arg" | |
12270 | # This test program should *not* compile successfully. | |
12271 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12272 | /* end confdefs.h. */ | |
d1154eb4 | 12273 | |
54445dc2 TT |
12274 | int |
12275 | main (void) | |
12276 | { | |
12277 | (void) strchr; | |
12278 | ; | |
12279 | return 0; | |
12280 | } | |
12281 | _ACEOF | |
12282 | if ac_fn_c_try_compile "$LINENO" | |
12283 | then : | |
50e1e10f | 12284 | |
54445dc2 TT |
12285 | else $as_nop |
12286 | # This test program should compile successfully. | |
12287 | # No library function is consistently available on | |
12288 | # freestanding implementations, so test against a dummy | |
12289 | # declaration. Include always-available headers on the | |
12290 | # off chance that they somehow elicit warnings. | |
12291 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12292 | /* end confdefs.h. */ | |
12293 | #include <float.h> | |
12294 | #include <limits.h> | |
12295 | #include <stdarg.h> | |
12296 | #include <stddef.h> | |
12297 | extern void ac_decl (int, char *); | |
2873927d | 12298 | |
54445dc2 TT |
12299 | int |
12300 | main (void) | |
12301 | { | |
12302 | (void) ac_decl (0, (char *) 0); | |
12303 | (void) ac_decl; | |
2873927d | 12304 | |
54445dc2 TT |
12305 | ; |
12306 | return 0; | |
12307 | } | |
2873927d | 12308 | _ACEOF |
54445dc2 TT |
12309 | if ac_fn_c_try_compile "$LINENO" |
12310 | then : | |
12311 | if test x"$ac_arg" = x | |
12312 | then : | |
12313 | ac_cv_c_undeclared_builtin_options='none needed' | |
12314 | else $as_nop | |
12315 | ac_cv_c_undeclared_builtin_options=$ac_arg | |
b0cacab0 | 12316 | fi |
54445dc2 | 12317 | break |
57aa50d4 | 12318 | fi |
54445dc2 TT |
12319 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
12320 | fi | |
12321 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext | |
12322 | done | |
12323 | CFLAGS=$ac_save_CFLAGS | |
12324 | ||
12325 | fi | |
12326 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5 | |
12327 | printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; } | |
12328 | case $ac_cv_c_undeclared_builtin_options in #( | |
12329 | 'cannot detect') : | |
12330 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
12331 | printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} | |
12332 | as_fn_error $? "cannot make $CC report undeclared builtins | |
12333 | See \`config.log' for more details" "$LINENO" 5; } ;; #( | |
12334 | 'none needed') : | |
12335 | ac_c_undeclared_builtin_options='' ;; #( | |
12336 | *) : | |
12337 | ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;; | |
12338 | esac | |
b0cacab0 | 12339 | |
54445dc2 TT |
12340 | ac_fn_check_decl "$LINENO" "llseek" "ac_cv_have_decl_llseek" "#include <unistd.h> |
12341 | " "$ac_c_undeclared_builtin_options" "CFLAGS" | |
12342 | if test "x$ac_cv_have_decl_llseek" = xyes | |
12343 | then : | |
d1154eb4 | 12344 | |
54445dc2 | 12345 | printf "%s\n" "#define HAVE_LLSEEK_PROTOTYPE 1" >>confdefs.h |
b0cacab0 | 12346 | |
b0cacab0 | 12347 | fi |
54445dc2 | 12348 | ac_fn_check_decl "$LINENO" "lseek64" "ac_cv_have_decl_lseek64" "#define _LARGEFILE_SOURCE |
57aa50d4 TT |
12349 | #define _LARGEFILE64_SOURCE |
12350 | #include <unistd.h> | |
54445dc2 TT |
12351 | " "$ac_c_undeclared_builtin_options" "CFLAGS" |
12352 | if test "x$ac_cv_have_decl_lseek64" = xyes | |
12353 | then : | |
d1154eb4 | 12354 | |
54445dc2 | 12355 | printf "%s\n" "#define HAVE_LSEEK64_PROTOTYPE 1" >>confdefs.h |
b0cacab0 | 12356 | |
5598a968 EB |
12357 | fi |
12358 | ||
12359 | ac_fn_check_decl "$LINENO" "fsmap_sizeof" "ac_cv_have_decl_fsmap_sizeof" "#include <linux/fsmap.h> | |
12360 | " "$ac_c_undeclared_builtin_options" "CFLAGS" | |
12361 | if test "x$ac_cv_have_decl_fsmap_sizeof" = xyes | |
12362 | then : | |
12363 | ||
12364 | printf "%s\n" "#define HAVE_FSMAP_SIZEOF 1" >>confdefs.h | |
12365 | ||
b0cacab0 | 12366 | fi |
57aa50d4 TT |
12367 | # The cast to long int works around a bug in the HP C Compiler |
12368 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
12369 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
12370 | # This bug is HP SR number 8606223364. | |
54445dc2 TT |
12371 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of short" >&5 |
12372 | printf %s "checking size of short... " >&6; } | |
12373 | if test ${ac_cv_sizeof_short+y} | |
12374 | then : | |
12375 | printf %s "(cached) " >&6 | |
12376 | else $as_nop | |
12377 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default" | |
12378 | then : | |
12379 | ||
12380 | else $as_nop | |
57aa50d4 | 12381 | if test "$ac_cv_type_short" = yes; then |
54445dc2 TT |
12382 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
12383 | printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} | |
d6a4bcb5 TB |
12384 | as_fn_error 77 "cannot compute sizeof (short) |
12385 | See \`config.log' for more details" "$LINENO" 5; } | |
57aa50d4 TT |
12386 | else |
12387 | ac_cv_sizeof_short=0 | |
12388 | fi | |
07a0db15 | 12389 | fi |
b0cacab0 | 12390 | |
b0cacab0 | 12391 | fi |
54445dc2 TT |
12392 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5 |
12393 | printf "%s\n" "$ac_cv_sizeof_short" >&6; } | |
e1052144 | 12394 | |
93636bde | 12395 | |
57aa50d4 | 12396 | |
54445dc2 | 12397 | printf "%s\n" "#define SIZEOF_SHORT $ac_cv_sizeof_short" >>confdefs.h |
57aa50d4 TT |
12398 | |
12399 | ||
12400 | # The cast to long int works around a bug in the HP C Compiler | |
12401 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
12402 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
12403 | # This bug is HP SR number 8606223364. | |
54445dc2 TT |
12404 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of int" >&5 |
12405 | printf %s "checking size of int... " >&6; } | |
12406 | if test ${ac_cv_sizeof_int+y} | |
12407 | then : | |
12408 | printf %s "(cached) " >&6 | |
12409 | else $as_nop | |
12410 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default" | |
12411 | then : | |
12412 | ||
12413 | else $as_nop | |
57aa50d4 | 12414 | if test "$ac_cv_type_int" = yes; then |
54445dc2 TT |
12415 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
12416 | printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} | |
d6a4bcb5 TB |
12417 | as_fn_error 77 "cannot compute sizeof (int) |
12418 | See \`config.log' for more details" "$LINENO" 5; } | |
57aa50d4 TT |
12419 | else |
12420 | ac_cv_sizeof_int=0 | |
12421 | fi | |
07a0db15 | 12422 | fi |
e1052144 | 12423 | |
b0cacab0 | 12424 | fi |
54445dc2 TT |
12425 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5 |
12426 | printf "%s\n" "$ac_cv_sizeof_int" >&6; } | |
e1052144 | 12427 | |
93636bde | 12428 | |
57aa50d4 | 12429 | |
54445dc2 | 12430 | printf "%s\n" "#define SIZEOF_INT $ac_cv_sizeof_int" >>confdefs.h |
b0cacab0 | 12431 | |
e1052144 | 12432 | |
57aa50d4 TT |
12433 | # The cast to long int works around a bug in the HP C Compiler |
12434 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
12435 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
12436 | # This bug is HP SR number 8606223364. | |
54445dc2 TT |
12437 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 |
12438 | printf %s "checking size of long... " >&6; } | |
12439 | if test ${ac_cv_sizeof_long+y} | |
12440 | then : | |
12441 | printf %s "(cached) " >&6 | |
12442 | else $as_nop | |
12443 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default" | |
12444 | then : | |
12445 | ||
12446 | else $as_nop | |
57aa50d4 | 12447 | if test "$ac_cv_type_long" = yes; then |
54445dc2 TT |
12448 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
12449 | printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} | |
d6a4bcb5 TB |
12450 | as_fn_error 77 "cannot compute sizeof (long) |
12451 | See \`config.log' for more details" "$LINENO" 5; } | |
29a5deed | 12452 | else |
57aa50d4 TT |
12453 | ac_cv_sizeof_long=0 |
12454 | fi | |
12455 | fi | |
39fd3d4f | 12456 | |
57aa50d4 | 12457 | fi |
54445dc2 TT |
12458 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5 |
12459 | printf "%s\n" "$ac_cv_sizeof_long" >&6; } | |
39fd3d4f | 12460 | |
57aa50d4 TT |
12461 | |
12462 | ||
54445dc2 | 12463 | printf "%s\n" "#define SIZEOF_LONG $ac_cv_sizeof_long" >>confdefs.h |
57aa50d4 TT |
12464 | |
12465 | ||
12466 | # The cast to long int works around a bug in the HP C Compiler | |
12467 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
12468 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
12469 | # This bug is HP SR number 8606223364. | |
54445dc2 TT |
12470 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5 |
12471 | printf %s "checking size of long long... " >&6; } | |
12472 | if test ${ac_cv_sizeof_long_long+y} | |
12473 | then : | |
12474 | printf %s "(cached) " >&6 | |
12475 | else $as_nop | |
12476 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default" | |
12477 | then : | |
12478 | ||
12479 | else $as_nop | |
57aa50d4 | 12480 | if test "$ac_cv_type_long_long" = yes; then |
54445dc2 TT |
12481 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
12482 | printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} | |
d6a4bcb5 TB |
12483 | as_fn_error 77 "cannot compute sizeof (long long) |
12484 | See \`config.log' for more details" "$LINENO" 5; } | |
39fd3d4f SJR |
12485 | else |
12486 | ac_cv_sizeof_long_long=0 | |
12487 | fi | |
12488 | fi | |
57aa50d4 | 12489 | |
39fd3d4f | 12490 | fi |
54445dc2 TT |
12491 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5 |
12492 | printf "%s\n" "$ac_cv_sizeof_long_long" >&6; } | |
39fd3d4f SJR |
12493 | |
12494 | ||
12495 | ||
54445dc2 | 12496 | printf "%s\n" "#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long" >>confdefs.h |
39fd3d4f SJR |
12497 | |
12498 | ||
cc68e8a6 TT |
12499 | # The cast to long int works around a bug in the HP C Compiler |
12500 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
12501 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
12502 | # This bug is HP SR number 8606223364. | |
54445dc2 TT |
12503 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5 |
12504 | printf %s "checking size of off_t... " >&6; } | |
12505 | if test ${ac_cv_sizeof_off_t+y} | |
12506 | then : | |
12507 | printf %s "(cached) " >&6 | |
12508 | else $as_nop | |
12509 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default" | |
12510 | then : | |
12511 | ||
12512 | else $as_nop | |
cc68e8a6 | 12513 | if test "$ac_cv_type_off_t" = yes; then |
54445dc2 TT |
12514 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
12515 | printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} | |
cc68e8a6 TT |
12516 | as_fn_error 77 "cannot compute sizeof (off_t) |
12517 | See \`config.log' for more details" "$LINENO" 5; } | |
12518 | else | |
12519 | ac_cv_sizeof_off_t=0 | |
12520 | fi | |
12521 | fi | |
12522 | ||
12523 | fi | |
54445dc2 TT |
12524 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5 |
12525 | printf "%s\n" "$ac_cv_sizeof_off_t" >&6; } | |
cc68e8a6 TT |
12526 | |
12527 | ||
12528 | ||
54445dc2 | 12529 | printf "%s\n" "#define SIZEOF_OFF_T $ac_cv_sizeof_off_t" >>confdefs.h |
cc68e8a6 TT |
12530 | |
12531 | ||
2dd680f3 TT |
12532 | # The cast to long int works around a bug in the HP C Compiler |
12533 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
12534 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
12535 | # This bug is HP SR number 8606223364. | |
54445dc2 TT |
12536 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5 |
12537 | printf %s "checking size of time_t... " >&6; } | |
12538 | if test ${ac_cv_sizeof_time_t+y} | |
12539 | then : | |
12540 | printf %s "(cached) " >&6 | |
12541 | else $as_nop | |
12542 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t" "$ac_includes_default" | |
12543 | then : | |
12544 | ||
12545 | else $as_nop | |
2dd680f3 | 12546 | if test "$ac_cv_type_time_t" = yes; then |
54445dc2 TT |
12547 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
12548 | printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} | |
2dd680f3 TT |
12549 | as_fn_error 77 "cannot compute sizeof (time_t) |
12550 | See \`config.log' for more details" "$LINENO" 5; } | |
12551 | else | |
12552 | ac_cv_sizeof_time_t=0 | |
12553 | fi | |
12554 | fi | |
12555 | ||
12556 | fi | |
54445dc2 TT |
12557 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5 |
12558 | printf "%s\n" "$ac_cv_sizeof_time_t" >&6; } | |
2dd680f3 TT |
12559 | |
12560 | ||
12561 | ||
54445dc2 | 12562 | printf "%s\n" "#define SIZEOF_TIME_T $ac_cv_sizeof_time_t" >>confdefs.h |
2dd680f3 TT |
12563 | |
12564 | ||
39fd3d4f SJR |
12565 | SIZEOF_SHORT=$ac_cv_sizeof_short |
12566 | SIZEOF_INT=$ac_cv_sizeof_int | |
12567 | SIZEOF_LONG=$ac_cv_sizeof_long | |
12568 | SIZEOF_LONG_LONG=$ac_cv_sizeof_long_long | |
cc68e8a6 | 12569 | SIZEOF_OFF_T=$ac_cv_sizeof_off_t |
2dd680f3 TT |
12570 | SIZEOF_TIME_T=$ac_cv_sizeof_time_t |
12571 | ||
cc68e8a6 | 12572 | |
39fd3d4f SJR |
12573 | |
12574 | ||
12575 | ||
12576 | ||
54445dc2 TT |
12577 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 |
12578 | printf %s "checking whether byte ordering is bigendian... " >&6; } | |
12579 | if test ${ac_cv_c_bigendian+y} | |
12580 | then : | |
12581 | printf %s "(cached) " >&6 | |
12582 | else $as_nop | |
39fd3d4f SJR |
12583 | ac_cv_c_bigendian=unknown |
12584 | # See if we're dealing with a universal compiler. | |
57aa50d4 | 12585 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
39fd3d4f SJR |
12586 | /* end confdefs.h. */ |
12587 | #ifndef __APPLE_CC__ | |
12588 | not a universal capable compiler | |
12589 | #endif | |
12590 | typedef int dummy; | |
12591 | ||
12592 | _ACEOF | |
54445dc2 TT |
12593 | if ac_fn_c_try_compile "$LINENO" |
12594 | then : | |
39fd3d4f SJR |
12595 | |
12596 | # Check for potential -arch flags. It is not universal unless | |
57aa50d4 TT |
12597 | # there are at least two -arch flags with different values. |
12598 | ac_arch= | |
12599 | ac_prev= | |
12600 | for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do | |
12601 | if test -n "$ac_prev"; then | |
12602 | case $ac_word in | |
12603 | i?86 | x86_64 | ppc | ppc64) | |
12604 | if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then | |
12605 | ac_arch=$ac_word | |
12606 | else | |
12607 | ac_cv_c_bigendian=universal | |
12608 | break | |
12609 | fi | |
12610 | ;; | |
12611 | esac | |
12612 | ac_prev= | |
12613 | elif test "x$ac_word" = "x-arch"; then | |
12614 | ac_prev=arch | |
12615 | fi | |
12616 | done | |
39fd3d4f | 12617 | fi |
54445dc2 | 12618 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
39fd3d4f SJR |
12619 | if test $ac_cv_c_bigendian = unknown; then |
12620 | # See if sys/param.h defines the BYTE_ORDER macro. | |
57aa50d4 | 12621 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
39fd3d4f SJR |
12622 | /* end confdefs.h. */ |
12623 | #include <sys/types.h> | |
12624 | #include <sys/param.h> | |
12625 | ||
12626 | int | |
54445dc2 | 12627 | main (void) |
39fd3d4f SJR |
12628 | { |
12629 | #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ | |
12630 | && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ | |
12631 | && LITTLE_ENDIAN) | |
12632 | bogus endian macros | |
12633 | #endif | |
12634 | ||
12635 | ; | |
12636 | return 0; | |
12637 | } | |
12638 | _ACEOF | |
54445dc2 TT |
12639 | if ac_fn_c_try_compile "$LINENO" |
12640 | then : | |
39fd3d4f | 12641 | # It does; now see whether it defined to BIG_ENDIAN or not. |
57aa50d4 | 12642 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
39fd3d4f SJR |
12643 | /* end confdefs.h. */ |
12644 | #include <sys/types.h> | |
12645 | #include <sys/param.h> | |
12646 | ||
b0cacab0 | 12647 | int |
54445dc2 | 12648 | main (void) |
07a0db15 | 12649 | { |
39fd3d4f SJR |
12650 | #if BYTE_ORDER != BIG_ENDIAN |
12651 | not big endian | |
12652 | #endif | |
b0cacab0 TT |
12653 | |
12654 | ; | |
12655 | return 0; | |
07a0db15 | 12656 | } |
b0cacab0 | 12657 | _ACEOF |
54445dc2 TT |
12658 | if ac_fn_c_try_compile "$LINENO" |
12659 | then : | |
39fd3d4f | 12660 | ac_cv_c_bigendian=yes |
54445dc2 | 12661 | else $as_nop |
57aa50d4 | 12662 | ac_cv_c_bigendian=no |
fc6d9d51 | 12663 | fi |
54445dc2 | 12664 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
39fd3d4f | 12665 | fi |
54445dc2 | 12666 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
39fd3d4f SJR |
12667 | fi |
12668 | if test $ac_cv_c_bigendian = unknown; then | |
12669 | # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). | |
57aa50d4 | 12670 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
b0cacab0 | 12671 | /* end confdefs.h. */ |
39fd3d4f | 12672 | #include <limits.h> |
877eb6d9 | 12673 | |
b0cacab0 | 12674 | int |
54445dc2 | 12675 | main (void) |
b0cacab0 | 12676 | { |
39fd3d4f SJR |
12677 | #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) |
12678 | bogus endian macros | |
12679 | #endif | |
b0cacab0 TT |
12680 | |
12681 | ; | |
12682 | return 0; | |
12683 | } | |
b0cacab0 | 12684 | _ACEOF |
54445dc2 TT |
12685 | if ac_fn_c_try_compile "$LINENO" |
12686 | then : | |
57aa50d4 TT |
12687 | # It does; now see whether it defined to _BIG_ENDIAN or not. |
12688 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
b0cacab0 | 12689 | /* end confdefs.h. */ |
39fd3d4f | 12690 | #include <limits.h> |
877eb6d9 | 12691 | |
b0cacab0 | 12692 | int |
54445dc2 | 12693 | main (void) |
b0cacab0 | 12694 | { |
39fd3d4f SJR |
12695 | #ifndef _BIG_ENDIAN |
12696 | not big endian | |
12697 | #endif | |
b0cacab0 TT |
12698 | |
12699 | ; | |
12700 | return 0; | |
12701 | } | |
12702 | _ACEOF | |
54445dc2 TT |
12703 | if ac_fn_c_try_compile "$LINENO" |
12704 | then : | |
877eb6d9 | 12705 | ac_cv_c_bigendian=yes |
54445dc2 | 12706 | else $as_nop |
57aa50d4 | 12707 | ac_cv_c_bigendian=no |
877eb6d9 | 12708 | fi |
54445dc2 | 12709 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
39fd3d4f | 12710 | fi |
54445dc2 | 12711 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
39fd3d4f SJR |
12712 | fi |
12713 | if test $ac_cv_c_bigendian = unknown; then | |
12714 | # Compile a test program. | |
54445dc2 TT |
12715 | if test "$cross_compiling" = yes |
12716 | then : | |
39fd3d4f | 12717 | # Try to guess by grepping values from an object file. |
57aa50d4 | 12718 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
b0cacab0 | 12719 | /* end confdefs.h. */ |
54445dc2 | 12720 | unsigned short int ascii_mm[] = |
39fd3d4f | 12721 | { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; |
54445dc2 | 12722 | unsigned short int ascii_ii[] = |
39fd3d4f SJR |
12723 | { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; |
12724 | int use_ascii (int i) { | |
12725 | return ascii_mm[i] + ascii_ii[i]; | |
12726 | } | |
54445dc2 | 12727 | unsigned short int ebcdic_ii[] = |
39fd3d4f | 12728 | { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; |
54445dc2 | 12729 | unsigned short int ebcdic_mm[] = |
39fd3d4f SJR |
12730 | { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; |
12731 | int use_ebcdic (int i) { | |
12732 | return ebcdic_mm[i] + ebcdic_ii[i]; | |
12733 | } | |
12734 | extern int foo; | |
12735 | ||
b0cacab0 | 12736 | int |
54445dc2 | 12737 | main (void) |
b0cacab0 | 12738 | { |
39fd3d4f | 12739 | return use_ascii (foo) == use_ebcdic (foo); |
b0cacab0 TT |
12740 | ; |
12741 | return 0; | |
12742 | } | |
12743 | _ACEOF | |
54445dc2 TT |
12744 | if ac_fn_c_try_compile "$LINENO" |
12745 | then : | |
39fd3d4f SJR |
12746 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then |
12747 | ac_cv_c_bigendian=yes | |
12748 | fi | |
12749 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then | |
12750 | if test "$ac_cv_c_bigendian" = unknown; then | |
12751 | ac_cv_c_bigendian=no | |
12752 | else | |
12753 | # finding both strings is unlikely to happen, but who knows? | |
12754 | ac_cv_c_bigendian=unknown | |
12755 | fi | |
12756 | fi | |
b0cacab0 | 12757 | fi |
54445dc2 TT |
12758 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
12759 | else $as_nop | |
57aa50d4 | 12760 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
b0cacab0 | 12761 | /* end confdefs.h. */ |
e1052144 | 12762 | $ac_includes_default |
b0cacab0 | 12763 | int |
54445dc2 | 12764 | main (void) |
b0cacab0 | 12765 | { |
e1052144 | 12766 | |
39fd3d4f SJR |
12767 | /* Are we little or big endian? From Harbison&Steele. */ |
12768 | union | |
12769 | { | |
12770 | long int l; | |
12771 | char c[sizeof (long int)]; | |
12772 | } u; | |
12773 | u.l = 1; | |
12774 | return u.c[sizeof (long int) - 1] == 1; | |
e1052144 TT |
12775 | |
12776 | ; | |
12777 | return 0; | |
877eb6d9 | 12778 | } |
b0cacab0 | 12779 | _ACEOF |
54445dc2 TT |
12780 | if ac_fn_c_try_run "$LINENO" |
12781 | then : | |
877eb6d9 | 12782 | ac_cv_c_bigendian=no |
54445dc2 | 12783 | else $as_nop |
57aa50d4 | 12784 | ac_cv_c_bigendian=yes |
877eb6d9 | 12785 | fi |
57aa50d4 TT |
12786 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
12787 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
877eb6d9 | 12788 | fi |
e1052144 | 12789 | |
39fd3d4f | 12790 | fi |
877eb6d9 | 12791 | fi |
54445dc2 TT |
12792 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 |
12793 | printf "%s\n" "$ac_cv_c_bigendian" >&6; } | |
39fd3d4f SJR |
12794 | case $ac_cv_c_bigendian in #( |
12795 | yes) | |
54445dc2 | 12796 | printf "%s\n" "#define WORDS_BIGENDIAN 1" >>confdefs.h |
39fd3d4f SJR |
12797 | ;; #( |
12798 | no) | |
12799 | ;; #( | |
12800 | universal) | |
07a0db15 | 12801 | |
54445dc2 | 12802 | printf "%s\n" "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h |
39fd3d4f SJR |
12803 | |
12804 | ;; #( | |
12805 | *) | |
d6a4bcb5 | 12806 | as_fn_error $? "unknown endianness |
57aa50d4 | 12807 | presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; |
39fd3d4f | 12808 | esac |
877eb6d9 | 12809 | |
91f04685 CQ |
12810 | if test $cross_compiling = no; then |
12811 | BUILD_CC="$BUILD_CC" CPP="$CPP" /bin/sh $ac_aux_dir/parse-types.sh | |
12812 | else | |
12813 | CROSS_COMPILE="1" BUILD_CC="$BUILD_CC" CPP="$CPP" /bin/sh $ac_aux_dir/parse-types.sh | |
12814 | fi | |
4ea7ea00 TT |
12815 | ASM_TYPES_HEADER=./asm_types.h |
12816 | ||
488c75a6 TT |
12817 | echo "/* These defines are needed for the public ext2fs.h header file */" \ |
12818 | > public_config.h | |
12819 | if grep HAVE_SYS_TYPES_H confdefs.h > tmp_config.$$; then | |
12820 | uniq tmp_config.$$ >> public_config.h | |
12821 | else | |
12822 | echo "#undef HAVE_SYS_TYPES_H" >> public_config.h | |
12823 | fi | |
12824 | if grep WORDS_BIGENDIAN confdefs.h > tmp_config.$$; then | |
12825 | uniq tmp_config.$$ >> public_config.h | |
12826 | else | |
12827 | echo "#undef WORDS_BIGENDIAN" >> public_config.h | |
12828 | fi | |
12829 | rm -f tmp_config.$$ | |
12830 | PUBLIC_CONFIG_HEADER=./public_config.h | |
12831 | ||
54445dc2 TT |
12832 | ac_fn_c_check_header_compile "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default" |
12833 | if test "x$ac_cv_header_inttypes_h" = xyes | |
12834 | then : | |
12835 | printf "%s\n" "#define HAVE_INTTYPES_H 1" >>confdefs.h | |
b0cacab0 TT |
12836 | |
12837 | fi | |
12838 | ||
57aa50d4 | 12839 | ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default" |
54445dc2 TT |
12840 | if test "x$ac_cv_type_intptr_t" = xyes |
12841 | then : | |
b0cacab0 | 12842 | |
54445dc2 | 12843 | printf "%s\n" "#define HAVE_INTPTR_T 1" >>confdefs.h |
0c193f82 | 12844 | |
d2ee56d8 | 12845 | |
0c193f82 TT |
12846 | fi |
12847 | ||
54445dc2 TT |
12848 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether struct stat has a st_flags field" >&5 |
12849 | printf %s "checking whether struct stat has a st_flags field... " >&6; } | |
12850 | if test ${e2fsprogs_cv_struct_st_flags+y} | |
12851 | then : | |
12852 | printf %s "(cached) " >&6 | |
12853 | else $as_nop | |
57aa50d4 | 12854 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
b0cacab0 | 12855 | /* end confdefs.h. */ |
50e1e10f | 12856 | #include <sys/stat.h> |
b0cacab0 | 12857 | int |
54445dc2 | 12858 | main (void) |
b0cacab0 | 12859 | { |
50e1e10f | 12860 | struct stat stat; stat.st_flags = 0; |
b0cacab0 TT |
12861 | ; |
12862 | return 0; | |
12863 | } | |
12864 | _ACEOF | |
54445dc2 TT |
12865 | if ac_fn_c_try_compile "$LINENO" |
12866 | then : | |
50e1e10f | 12867 | e2fsprogs_cv_struct_st_flags=yes |
54445dc2 | 12868 | else $as_nop |
57aa50d4 | 12869 | e2fsprogs_cv_struct_st_flags=no |
50e1e10f | 12870 | fi |
54445dc2 TT |
12871 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
12872 | fi | |
12873 | ||
12874 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $e2fsprogs_cv_struct_st_flags" >&5 | |
12875 | printf "%s\n" "$e2fsprogs_cv_struct_st_flags" >&6; } | |
12876 | if test "$e2fsprogs_cv_struct_st_flags" = yes; then | |
12877 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether st_flags field is useful" >&5 | |
12878 | printf %s "checking whether st_flags field is useful... " >&6; } | |
12879 | if test ${e2fsprogs_cv_struct_st_flags_immut+y} | |
12880 | then : | |
12881 | printf %s "(cached) " >&6 | |
12882 | else $as_nop | |
12883 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12884 | /* end confdefs.h. */ | |
12885 | #include <sys/stat.h> | |
12886 | int | |
12887 | main (void) | |
12888 | { | |
12889 | struct stat stat; stat.st_flags |= UF_IMMUTABLE; | |
12890 | ; | |
12891 | return 0; | |
12892 | } | |
12893 | _ACEOF | |
12894 | if ac_fn_c_try_compile "$LINENO" | |
12895 | then : | |
12896 | e2fsprogs_cv_struct_st_flags_immut=yes | |
12897 | else $as_nop | |
12898 | e2fsprogs_cv_struct_st_flags_immut=no | |
12899 | fi | |
12900 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext | |
12901 | fi | |
12902 | ||
12903 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $e2fsprogs_cv_struct_st_flags_immut" >&5 | |
12904 | printf "%s\n" "$e2fsprogs_cv_struct_st_flags_immut" >&6; } | |
12905 | if test "$e2fsprogs_cv_struct_st_flags_immut" = yes; then | |
12906 | ||
12907 | printf "%s\n" "#define HAVE_STAT_FLAGS 1" >>confdefs.h | |
12908 | ||
12909 | fi | |
12910 | fi | |
12911 | ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "#include <sys/types.h> | |
12912 | #include <sys/socket.h> | |
12913 | " | |
12914 | if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes | |
12915 | then : | |
12916 | ||
12917 | printf "%s\n" "#define HAVE_SA_LEN 1" >>confdefs.h | |
12918 | ||
12919 | fi | |
12920 | ||
12921 | if test -n "$BLKID_CMT"; then | |
12922 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for blkid_probe_get_topology in -lblkid" >&5 | |
12923 | printf %s "checking for blkid_probe_get_topology in -lblkid... " >&6; } | |
12924 | if test ${ac_cv_lib_blkid_blkid_probe_get_topology+y} | |
12925 | then : | |
12926 | printf %s "(cached) " >&6 | |
12927 | else $as_nop | |
12928 | ac_check_lib_save_LIBS=$LIBS | |
12929 | LIBS="-lblkid $LIBS" | |
12930 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12931 | /* end confdefs.h. */ | |
12932 | ||
12933 | /* Override any GCC internal prototype to avoid an error. | |
12934 | Use char because int might match the return type of a GCC | |
12935 | builtin and then its argument prototype would still apply. */ | |
12936 | char blkid_probe_get_topology (); | |
12937 | int | |
12938 | main (void) | |
12939 | { | |
12940 | return blkid_probe_get_topology (); | |
12941 | ; | |
12942 | return 0; | |
12943 | } | |
12944 | _ACEOF | |
12945 | if ac_fn_c_try_link "$LINENO" | |
12946 | then : | |
12947 | ac_cv_lib_blkid_blkid_probe_get_topology=yes | |
12948 | else $as_nop | |
12949 | ac_cv_lib_blkid_blkid_probe_get_topology=no | |
12950 | fi | |
12951 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ | |
12952 | conftest$ac_exeext conftest.$ac_ext | |
12953 | LIBS=$ac_check_lib_save_LIBS | |
12954 | fi | |
12955 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_probe_get_topology" >&5 | |
12956 | printf "%s\n" "$ac_cv_lib_blkid_blkid_probe_get_topology" >&6; } | |
12957 | if test "x$ac_cv_lib_blkid_blkid_probe_get_topology" = xyes | |
12958 | then : | |
12959 | ||
12960 | printf "%s\n" "#define HAVE_BLKID_PROBE_GET_TOPOLOGY 1" >>confdefs.h | |
12961 | ||
12962 | fi | |
12963 | ||
12964 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for blkid_topology_get_dax in -lblkid" >&5 | |
12965 | printf %s "checking for blkid_topology_get_dax in -lblkid... " >&6; } | |
12966 | if test ${ac_cv_lib_blkid_blkid_topology_get_dax+y} | |
12967 | then : | |
12968 | printf %s "(cached) " >&6 | |
12969 | else $as_nop | |
12970 | ac_check_lib_save_LIBS=$LIBS | |
12971 | LIBS="-lblkid $LIBS" | |
12972 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12973 | /* end confdefs.h. */ | |
12974 | ||
12975 | /* Override any GCC internal prototype to avoid an error. | |
12976 | Use char because int might match the return type of a GCC | |
12977 | builtin and then its argument prototype would still apply. */ | |
12978 | char blkid_topology_get_dax (); | |
12979 | int | |
12980 | main (void) | |
12981 | { | |
12982 | return blkid_topology_get_dax (); | |
12983 | ; | |
12984 | return 0; | |
12985 | } | |
12986 | _ACEOF | |
12987 | if ac_fn_c_try_link "$LINENO" | |
12988 | then : | |
12989 | ac_cv_lib_blkid_blkid_topology_get_dax=yes | |
12990 | else $as_nop | |
12991 | ac_cv_lib_blkid_blkid_topology_get_dax=no | |
12992 | fi | |
12993 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ | |
12994 | conftest$ac_exeext conftest.$ac_ext | |
12995 | LIBS=$ac_check_lib_save_LIBS | |
12996 | fi | |
12997 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_topology_get_dax" >&5 | |
12998 | printf "%s\n" "$ac_cv_lib_blkid_blkid_topology_get_dax" >&6; } | |
12999 | if test "x$ac_cv_lib_blkid_blkid_topology_get_dax" = xyes | |
13000 | then : | |
13001 | ||
13002 | printf "%s\n" "#define HAVE_BLKID_TOPOLOGY_GET_DAX 1" >>confdefs.h | |
13003 | ||
13004 | fi | |
13005 | ||
13006 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for blkid_probe_enable_partitions in -lblkid" >&5 | |
13007 | printf %s "checking for blkid_probe_enable_partitions in -lblkid... " >&6; } | |
13008 | if test ${ac_cv_lib_blkid_blkid_probe_enable_partitions+y} | |
13009 | then : | |
13010 | printf %s "(cached) " >&6 | |
13011 | else $as_nop | |
13012 | ac_check_lib_save_LIBS=$LIBS | |
13013 | LIBS="-lblkid $LIBS" | |
13014 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13015 | /* end confdefs.h. */ | |
13016 | ||
13017 | /* Override any GCC internal prototype to avoid an error. | |
13018 | Use char because int might match the return type of a GCC | |
13019 | builtin and then its argument prototype would still apply. */ | |
13020 | char blkid_probe_enable_partitions (); | |
13021 | int | |
13022 | main (void) | |
13023 | { | |
13024 | return blkid_probe_enable_partitions (); | |
13025 | ; | |
13026 | return 0; | |
13027 | } | |
13028 | _ACEOF | |
13029 | if ac_fn_c_try_link "$LINENO" | |
13030 | then : | |
13031 | ac_cv_lib_blkid_blkid_probe_enable_partitions=yes | |
13032 | else $as_nop | |
13033 | ac_cv_lib_blkid_blkid_probe_enable_partitions=no | |
13034 | fi | |
13035 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ | |
13036 | conftest$ac_exeext conftest.$ac_ext | |
13037 | LIBS=$ac_check_lib_save_LIBS | |
13038 | fi | |
13039 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_probe_enable_partitions" >&5 | |
13040 | printf "%s\n" "$ac_cv_lib_blkid_blkid_probe_enable_partitions" >&6; } | |
13041 | if test "x$ac_cv_lib_blkid_blkid_probe_enable_partitions" = xyes | |
13042 | then : | |
13043 | ||
13044 | printf "%s\n" "#define HAVE_BLKID_PROBE_ENABLE_PARTITIONS 1" >>confdefs.h | |
13045 | ||
13046 | fi | |
13047 | ||
13048 | fi | |
13049 | if test -n "$DLOPEN_LIB" ; then | |
13050 | ac_cv_func_dlopen=yes | |
13051 | fi | |
13052 | ac_fn_c_check_func "$LINENO" "__secure_getenv" "ac_cv_func___secure_getenv" | |
13053 | if test "x$ac_cv_func___secure_getenv" = xyes | |
13054 | then : | |
13055 | printf "%s\n" "#define HAVE___SECURE_GETENV 1" >>confdefs.h | |
13056 | ||
13057 | fi | |
13058 | ac_fn_c_check_func "$LINENO" "add_key" "ac_cv_func_add_key" | |
13059 | if test "x$ac_cv_func_add_key" = xyes | |
13060 | then : | |
13061 | printf "%s\n" "#define HAVE_ADD_KEY 1" >>confdefs.h | |
13062 | ||
13063 | fi | |
13064 | ac_fn_c_check_func "$LINENO" "backtrace" "ac_cv_func_backtrace" | |
13065 | if test "x$ac_cv_func_backtrace" = xyes | |
13066 | then : | |
13067 | printf "%s\n" "#define HAVE_BACKTRACE 1" >>confdefs.h | |
13068 | ||
13069 | fi | |
13070 | ac_fn_c_check_func "$LINENO" "chflags" "ac_cv_func_chflags" | |
13071 | if test "x$ac_cv_func_chflags" = xyes | |
13072 | then : | |
13073 | printf "%s\n" "#define HAVE_CHFLAGS 1" >>confdefs.h | |
13074 | ||
13075 | fi | |
13076 | ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" | |
13077 | if test "x$ac_cv_func_dlopen" = xyes | |
13078 | then : | |
13079 | printf "%s\n" "#define HAVE_DLOPEN 1" >>confdefs.h | |
13080 | ||
13081 | fi | |
13082 | ac_fn_c_check_func "$LINENO" "fadvise64" "ac_cv_func_fadvise64" | |
13083 | if test "x$ac_cv_func_fadvise64" = xyes | |
13084 | then : | |
13085 | printf "%s\n" "#define HAVE_FADVISE64 1" >>confdefs.h | |
13086 | ||
13087 | fi | |
13088 | ac_fn_c_check_func "$LINENO" "fallocate" "ac_cv_func_fallocate" | |
13089 | if test "x$ac_cv_func_fallocate" = xyes | |
13090 | then : | |
13091 | printf "%s\n" "#define HAVE_FALLOCATE 1" >>confdefs.h | |
13092 | ||
13093 | fi | |
13094 | ac_fn_c_check_func "$LINENO" "fallocate64" "ac_cv_func_fallocate64" | |
13095 | if test "x$ac_cv_func_fallocate64" = xyes | |
13096 | then : | |
13097 | printf "%s\n" "#define HAVE_FALLOCATE64 1" >>confdefs.h | |
13098 | ||
13099 | fi | |
13100 | ac_fn_c_check_func "$LINENO" "fchown" "ac_cv_func_fchown" | |
13101 | if test "x$ac_cv_func_fchown" = xyes | |
13102 | then : | |
13103 | printf "%s\n" "#define HAVE_FCHOWN 1" >>confdefs.h | |
13104 | ||
13105 | fi | |
13106 | ac_fn_c_check_func "$LINENO" "fcntl" "ac_cv_func_fcntl" | |
13107 | if test "x$ac_cv_func_fcntl" = xyes | |
13108 | then : | |
13109 | printf "%s\n" "#define HAVE_FCNTL 1" >>confdefs.h | |
13110 | ||
13111 | fi | |
13112 | ac_fn_c_check_func "$LINENO" "fdatasync" "ac_cv_func_fdatasync" | |
13113 | if test "x$ac_cv_func_fdatasync" = xyes | |
13114 | then : | |
13115 | printf "%s\n" "#define HAVE_FDATASYNC 1" >>confdefs.h | |
13116 | ||
13117 | fi | |
13118 | ac_fn_c_check_func "$LINENO" "fstat64" "ac_cv_func_fstat64" | |
13119 | if test "x$ac_cv_func_fstat64" = xyes | |
13120 | then : | |
13121 | printf "%s\n" "#define HAVE_FSTAT64 1" >>confdefs.h | |
13122 | ||
13123 | fi | |
13124 | ac_fn_c_check_func "$LINENO" "fsync" "ac_cv_func_fsync" | |
13125 | if test "x$ac_cv_func_fsync" = xyes | |
13126 | then : | |
13127 | printf "%s\n" "#define HAVE_FSYNC 1" >>confdefs.h | |
13128 | ||
13129 | fi | |
13130 | ac_fn_c_check_func "$LINENO" "ftruncate64" "ac_cv_func_ftruncate64" | |
13131 | if test "x$ac_cv_func_ftruncate64" = xyes | |
13132 | then : | |
13133 | printf "%s\n" "#define HAVE_FTRUNCATE64 1" >>confdefs.h | |
13134 | ||
13135 | fi | |
13136 | ac_fn_c_check_func "$LINENO" "futimes" "ac_cv_func_futimes" | |
13137 | if test "x$ac_cv_func_futimes" = xyes | |
13138 | then : | |
13139 | printf "%s\n" "#define HAVE_FUTIMES 1" >>confdefs.h | |
13140 | ||
13141 | fi | |
13142 | ac_fn_c_check_func "$LINENO" "getcwd" "ac_cv_func_getcwd" | |
13143 | if test "x$ac_cv_func_getcwd" = xyes | |
13144 | then : | |
13145 | printf "%s\n" "#define HAVE_GETCWD 1" >>confdefs.h | |
13146 | ||
13147 | fi | |
13148 | ac_fn_c_check_func "$LINENO" "getdtablesize" "ac_cv_func_getdtablesize" | |
13149 | if test "x$ac_cv_func_getdtablesize" = xyes | |
13150 | then : | |
13151 | printf "%s\n" "#define HAVE_GETDTABLESIZE 1" >>confdefs.h | |
13152 | ||
13153 | fi | |
13154 | ac_fn_c_check_func "$LINENO" "getentropy" "ac_cv_func_getentropy" | |
13155 | if test "x$ac_cv_func_getentropy" = xyes | |
13156 | then : | |
13157 | printf "%s\n" "#define HAVE_GETENTROPY 1" >>confdefs.h | |
13158 | ||
13159 | fi | |
13160 | ac_fn_c_check_func "$LINENO" "gethostname" "ac_cv_func_gethostname" | |
13161 | if test "x$ac_cv_func_gethostname" = xyes | |
13162 | then : | |
13163 | printf "%s\n" "#define HAVE_GETHOSTNAME 1" >>confdefs.h | |
13164 | ||
13165 | fi | |
13166 | ac_fn_c_check_func "$LINENO" "getmntinfo" "ac_cv_func_getmntinfo" | |
13167 | if test "x$ac_cv_func_getmntinfo" = xyes | |
13168 | then : | |
13169 | printf "%s\n" "#define HAVE_GETMNTINFO 1" >>confdefs.h | |
13170 | ||
13171 | fi | |
13172 | ac_fn_c_check_func "$LINENO" "getpwuid_r" "ac_cv_func_getpwuid_r" | |
13173 | if test "x$ac_cv_func_getpwuid_r" = xyes | |
13174 | then : | |
13175 | printf "%s\n" "#define HAVE_GETPWUID_R 1" >>confdefs.h | |
13176 | ||
13177 | fi | |
13178 | ac_fn_c_check_func "$LINENO" "getrandom" "ac_cv_func_getrandom" | |
13179 | if test "x$ac_cv_func_getrandom" = xyes | |
13180 | then : | |
13181 | printf "%s\n" "#define HAVE_GETRANDOM 1" >>confdefs.h | |
13182 | ||
13183 | fi | |
13184 | ac_fn_c_check_func "$LINENO" "getrlimit" "ac_cv_func_getrlimit" | |
13185 | if test "x$ac_cv_func_getrlimit" = xyes | |
13186 | then : | |
13187 | printf "%s\n" "#define HAVE_GETRLIMIT 1" >>confdefs.h | |
13188 | ||
13189 | fi | |
13190 | ac_fn_c_check_func "$LINENO" "getrusage" "ac_cv_func_getrusage" | |
13191 | if test "x$ac_cv_func_getrusage" = xyes | |
13192 | then : | |
13193 | printf "%s\n" "#define HAVE_GETRUSAGE 1" >>confdefs.h | |
13194 | ||
13195 | fi | |
13196 | ac_fn_c_check_func "$LINENO" "jrand48" "ac_cv_func_jrand48" | |
13197 | if test "x$ac_cv_func_jrand48" = xyes | |
13198 | then : | |
13199 | printf "%s\n" "#define HAVE_JRAND48 1" >>confdefs.h | |
13200 | ||
13201 | fi | |
13202 | ac_fn_c_check_func "$LINENO" "keyctl" "ac_cv_func_keyctl" | |
13203 | if test "x$ac_cv_func_keyctl" = xyes | |
13204 | then : | |
13205 | printf "%s\n" "#define HAVE_KEYCTL 1" >>confdefs.h | |
13206 | ||
13207 | fi | |
13208 | ac_fn_c_check_func "$LINENO" "llistxattr" "ac_cv_func_llistxattr" | |
13209 | if test "x$ac_cv_func_llistxattr" = xyes | |
13210 | then : | |
13211 | printf "%s\n" "#define HAVE_LLISTXATTR 1" >>confdefs.h | |
13212 | ||
13213 | fi | |
13214 | ac_fn_c_check_func "$LINENO" "llseek" "ac_cv_func_llseek" | |
13215 | if test "x$ac_cv_func_llseek" = xyes | |
13216 | then : | |
13217 | printf "%s\n" "#define HAVE_LLSEEK 1" >>confdefs.h | |
13218 | ||
13219 | fi | |
13220 | ac_fn_c_check_func "$LINENO" "lseek64" "ac_cv_func_lseek64" | |
13221 | if test "x$ac_cv_func_lseek64" = xyes | |
13222 | then : | |
13223 | printf "%s\n" "#define HAVE_LSEEK64 1" >>confdefs.h | |
13224 | ||
13225 | fi | |
13226 | ac_fn_c_check_func "$LINENO" "mallinfo" "ac_cv_func_mallinfo" | |
13227 | if test "x$ac_cv_func_mallinfo" = xyes | |
13228 | then : | |
13229 | printf "%s\n" "#define HAVE_MALLINFO 1" >>confdefs.h | |
13230 | ||
13231 | fi | |
13232 | ac_fn_c_check_func "$LINENO" "mallinfo2" "ac_cv_func_mallinfo2" | |
13233 | if test "x$ac_cv_func_mallinfo2" = xyes | |
13234 | then : | |
13235 | printf "%s\n" "#define HAVE_MALLINFO2 1" >>confdefs.h | |
13236 | ||
13237 | fi | |
13238 | ac_fn_c_check_func "$LINENO" "mbstowcs" "ac_cv_func_mbstowcs" | |
13239 | if test "x$ac_cv_func_mbstowcs" = xyes | |
13240 | then : | |
13241 | printf "%s\n" "#define HAVE_MBSTOWCS 1" >>confdefs.h | |
13242 | ||
13243 | fi | |
13244 | ac_fn_c_check_func "$LINENO" "memalign" "ac_cv_func_memalign" | |
13245 | if test "x$ac_cv_func_memalign" = xyes | |
13246 | then : | |
13247 | printf "%s\n" "#define HAVE_MEMALIGN 1" >>confdefs.h | |
13248 | ||
13249 | fi | |
13250 | ac_fn_c_check_func "$LINENO" "mempcpy" "ac_cv_func_mempcpy" | |
13251 | if test "x$ac_cv_func_mempcpy" = xyes | |
13252 | then : | |
13253 | printf "%s\n" "#define HAVE_MEMPCPY 1" >>confdefs.h | |
13254 | ||
13255 | fi | |
13256 | ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap" | |
13257 | if test "x$ac_cv_func_mmap" = xyes | |
13258 | then : | |
13259 | printf "%s\n" "#define HAVE_MMAP 1" >>confdefs.h | |
13260 | ||
13261 | fi | |
13262 | ac_fn_c_check_func "$LINENO" "msync" "ac_cv_func_msync" | |
13263 | if test "x$ac_cv_func_msync" = xyes | |
13264 | then : | |
13265 | printf "%s\n" "#define HAVE_MSYNC 1" >>confdefs.h | |
13266 | ||
13267 | fi | |
13268 | ac_fn_c_check_func "$LINENO" "nanosleep" "ac_cv_func_nanosleep" | |
13269 | if test "x$ac_cv_func_nanosleep" = xyes | |
13270 | then : | |
13271 | printf "%s\n" "#define HAVE_NANOSLEEP 1" >>confdefs.h | |
13272 | ||
13273 | fi | |
13274 | ac_fn_c_check_func "$LINENO" "open64" "ac_cv_func_open64" | |
13275 | if test "x$ac_cv_func_open64" = xyes | |
13276 | then : | |
13277 | printf "%s\n" "#define HAVE_OPEN64 1" >>confdefs.h | |
13278 | ||
13279 | fi | |
13280 | ac_fn_c_check_func "$LINENO" "pathconf" "ac_cv_func_pathconf" | |
13281 | if test "x$ac_cv_func_pathconf" = xyes | |
13282 | then : | |
13283 | printf "%s\n" "#define HAVE_PATHCONF 1" >>confdefs.h | |
13284 | ||
13285 | fi | |
13286 | ac_fn_c_check_func "$LINENO" "posix_fadvise" "ac_cv_func_posix_fadvise" | |
13287 | if test "x$ac_cv_func_posix_fadvise" = xyes | |
13288 | then : | |
13289 | printf "%s\n" "#define HAVE_POSIX_FADVISE 1" >>confdefs.h | |
13290 | ||
50e1e10f | 13291 | fi |
54445dc2 TT |
13292 | ac_fn_c_check_func "$LINENO" "posix_fadvise64" "ac_cv_func_posix_fadvise64" |
13293 | if test "x$ac_cv_func_posix_fadvise64" = xyes | |
13294 | then : | |
13295 | printf "%s\n" "#define HAVE_POSIX_FADVISE64 1" >>confdefs.h | |
50e1e10f | 13296 | |
84ea6e70 | 13297 | fi |
54445dc2 TT |
13298 | ac_fn_c_check_func "$LINENO" "posix_memalign" "ac_cv_func_posix_memalign" |
13299 | if test "x$ac_cv_func_posix_memalign" = xyes | |
13300 | then : | |
13301 | printf "%s\n" "#define HAVE_POSIX_MEMALIGN 1" >>confdefs.h | |
13302 | ||
84ea6e70 | 13303 | fi |
54445dc2 TT |
13304 | ac_fn_c_check_func "$LINENO" "prctl" "ac_cv_func_prctl" |
13305 | if test "x$ac_cv_func_prctl" = xyes | |
13306 | then : | |
13307 | printf "%s\n" "#define HAVE_PRCTL 1" >>confdefs.h | |
e1052144 | 13308 | |
54445dc2 TT |
13309 | fi |
13310 | ac_fn_c_check_func "$LINENO" "pread" "ac_cv_func_pread" | |
13311 | if test "x$ac_cv_func_pread" = xyes | |
13312 | then : | |
13313 | printf "%s\n" "#define HAVE_PREAD 1" >>confdefs.h | |
d1154eb4 | 13314 | |
54445dc2 TT |
13315 | fi |
13316 | ac_fn_c_check_func "$LINENO" "pwrite" "ac_cv_func_pwrite" | |
13317 | if test "x$ac_cv_func_pwrite" = xyes | |
13318 | then : | |
13319 | printf "%s\n" "#define HAVE_PWRITE 1" >>confdefs.h | |
57aa50d4 | 13320 | |
6c65d251 | 13321 | fi |
54445dc2 TT |
13322 | ac_fn_c_check_func "$LINENO" "pread64" "ac_cv_func_pread64" |
13323 | if test "x$ac_cv_func_pread64" = xyes | |
13324 | then : | |
13325 | printf "%s\n" "#define HAVE_PREAD64 1" >>confdefs.h | |
b0cacab0 | 13326 | |
54445dc2 TT |
13327 | fi |
13328 | ac_fn_c_check_func "$LINENO" "pwrite64" "ac_cv_func_pwrite64" | |
13329 | if test "x$ac_cv_func_pwrite64" = xyes | |
13330 | then : | |
13331 | printf "%s\n" "#define HAVE_PWRITE64 1" >>confdefs.h | |
84ea6e70 | 13332 | |
4e5f24ae TT |
13333 | fi |
13334 | ac_fn_c_check_func "$LINENO" "qsort_r" "ac_cv_func_qsort_r" | |
13335 | if test "x$ac_cv_func_qsort_r" = xyes | |
13336 | then : | |
13337 | printf "%s\n" "#define HAVE_QSORT_R 1" >>confdefs.h | |
13338 | ||
50e1e10f | 13339 | fi |
54445dc2 TT |
13340 | ac_fn_c_check_func "$LINENO" "secure_getenv" "ac_cv_func_secure_getenv" |
13341 | if test "x$ac_cv_func_secure_getenv" = xyes | |
13342 | then : | |
13343 | printf "%s\n" "#define HAVE_SECURE_GETENV 1" >>confdefs.h | |
b0cacab0 | 13344 | |
54445dc2 TT |
13345 | fi |
13346 | ac_fn_c_check_func "$LINENO" "setmntent" "ac_cv_func_setmntent" | |
13347 | if test "x$ac_cv_func_setmntent" = xyes | |
13348 | then : | |
13349 | printf "%s\n" "#define HAVE_SETMNTENT 1" >>confdefs.h | |
9ed8e5fe | 13350 | |
9ed8e5fe | 13351 | fi |
54445dc2 TT |
13352 | ac_fn_c_check_func "$LINENO" "setresgid" "ac_cv_func_setresgid" |
13353 | if test "x$ac_cv_func_setresgid" = xyes | |
13354 | then : | |
13355 | printf "%s\n" "#define HAVE_SETRESGID 1" >>confdefs.h | |
13356 | ||
9ed8e5fe | 13357 | fi |
54445dc2 TT |
13358 | ac_fn_c_check_func "$LINENO" "setresuid" "ac_cv_func_setresuid" |
13359 | if test "x$ac_cv_func_setresuid" = xyes | |
13360 | then : | |
13361 | printf "%s\n" "#define HAVE_SETRESUID 1" >>confdefs.h | |
188bf39a | 13362 | |
54445dc2 TT |
13363 | fi |
13364 | ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf" | |
13365 | if test "x$ac_cv_func_snprintf" = xyes | |
13366 | then : | |
13367 | printf "%s\n" "#define HAVE_SNPRINTF 1" >>confdefs.h | |
7154d974 | 13368 | |
e598c29b | 13369 | fi |
54445dc2 TT |
13370 | ac_fn_c_check_func "$LINENO" "srandom" "ac_cv_func_srandom" |
13371 | if test "x$ac_cv_func_srandom" = xyes | |
13372 | then : | |
13373 | printf "%s\n" "#define HAVE_SRANDOM 1" >>confdefs.h | |
e598c29b | 13374 | |
54445dc2 TT |
13375 | fi |
13376 | ac_fn_c_check_func "$LINENO" "stpcpy" "ac_cv_func_stpcpy" | |
13377 | if test "x$ac_cv_func_stpcpy" = xyes | |
13378 | then : | |
13379 | printf "%s\n" "#define HAVE_STPCPY 1" >>confdefs.h | |
e598c29b | 13380 | |
e598c29b | 13381 | fi |
54445dc2 TT |
13382 | ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp" |
13383 | if test "x$ac_cv_func_strcasecmp" = xyes | |
13384 | then : | |
13385 | printf "%s\n" "#define HAVE_STRCASECMP 1" >>confdefs.h | |
13386 | ||
e598c29b | 13387 | fi |
54445dc2 TT |
13388 | ac_fn_c_check_func "$LINENO" "strdup" "ac_cv_func_strdup" |
13389 | if test "x$ac_cv_func_strdup" = xyes | |
13390 | then : | |
13391 | printf "%s\n" "#define HAVE_STRDUP 1" >>confdefs.h | |
e598c29b | 13392 | |
54445dc2 TT |
13393 | fi |
13394 | ac_fn_c_check_func "$LINENO" "strnlen" "ac_cv_func_strnlen" | |
13395 | if test "x$ac_cv_func_strnlen" = xyes | |
13396 | then : | |
13397 | printf "%s\n" "#define HAVE_STRNLEN 1" >>confdefs.h | |
e598c29b | 13398 | |
7154d974 | 13399 | fi |
54445dc2 TT |
13400 | ac_fn_c_check_func "$LINENO" "strptime" "ac_cv_func_strptime" |
13401 | if test "x$ac_cv_func_strptime" = xyes | |
13402 | then : | |
13403 | printf "%s\n" "#define HAVE_STRPTIME 1" >>confdefs.h | |
7154d974 | 13404 | |
54445dc2 TT |
13405 | fi |
13406 | ac_fn_c_check_func "$LINENO" "strtoull" "ac_cv_func_strtoull" | |
13407 | if test "x$ac_cv_func_strtoull" = xyes | |
13408 | then : | |
13409 | printf "%s\n" "#define HAVE_STRTOULL 1" >>confdefs.h | |
57aa50d4 | 13410 | |
9ed8e5fe | 13411 | fi |
54445dc2 TT |
13412 | ac_fn_c_check_func "$LINENO" "sync_file_range" "ac_cv_func_sync_file_range" |
13413 | if test "x$ac_cv_func_sync_file_range" = xyes | |
13414 | then : | |
13415 | printf "%s\n" "#define HAVE_SYNC_FILE_RANGE 1" >>confdefs.h | |
13416 | ||
9ed8e5fe | 13417 | fi |
54445dc2 TT |
13418 | ac_fn_c_check_func "$LINENO" "sysconf" "ac_cv_func_sysconf" |
13419 | if test "x$ac_cv_func_sysconf" = xyes | |
13420 | then : | |
13421 | printf "%s\n" "#define HAVE_SYSCONF 1" >>confdefs.h | |
188bf39a | 13422 | |
54445dc2 TT |
13423 | fi |
13424 | ac_fn_c_check_func "$LINENO" "usleep" "ac_cv_func_usleep" | |
13425 | if test "x$ac_cv_func_usleep" = xyes | |
13426 | then : | |
13427 | printf "%s\n" "#define HAVE_USLEEP 1" >>confdefs.h | |
9ed8e5fe ES |
13428 | |
13429 | fi | |
54445dc2 TT |
13430 | ac_fn_c_check_func "$LINENO" "utime" "ac_cv_func_utime" |
13431 | if test "x$ac_cv_func_utime" = xyes | |
13432 | then : | |
13433 | printf "%s\n" "#define HAVE_UTIME 1" >>confdefs.h | |
9ed8e5fe ES |
13434 | |
13435 | fi | |
54445dc2 TT |
13436 | ac_fn_c_check_func "$LINENO" "utimes" "ac_cv_func_utimes" |
13437 | if test "x$ac_cv_func_utimes" = xyes | |
13438 | then : | |
13439 | printf "%s\n" "#define HAVE_UTIMES 1" >>confdefs.h | |
13440 | ||
32179ce2 | 13441 | fi |
54445dc2 TT |
13442 | ac_fn_c_check_func "$LINENO" "valloc" "ac_cv_func_valloc" |
13443 | if test "x$ac_cv_func_valloc" = xyes | |
13444 | then : | |
13445 | printf "%s\n" "#define HAVE_VALLOC 1" >>confdefs.h | |
21c84b71 | 13446 | |
50e1e10f | 13447 | fi |
50e1e10f | 13448 | |
fc6d9d51 | 13449 | SOCKET_LIB='' |
54445dc2 TT |
13450 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5 |
13451 | printf %s "checking for socket in -lsocket... " >&6; } | |
13452 | if test ${ac_cv_lib_socket_socket+y} | |
13453 | then : | |
13454 | printf %s "(cached) " >&6 | |
13455 | else $as_nop | |
b0cacab0 | 13456 | ac_check_lib_save_LIBS=$LIBS |
fc6d9d51 | 13457 | LIBS="-lsocket $LIBS" |
57aa50d4 | 13458 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
b0cacab0 | 13459 | /* end confdefs.h. */ |
93636bde | 13460 | |
e1052144 TT |
13461 | /* Override any GCC internal prototype to avoid an error. |
13462 | Use char because int might match the return type of a GCC | |
13463 | builtin and then its argument prototype would still apply. */ | |
b0cacab0 TT |
13464 | char socket (); |
13465 | int | |
54445dc2 | 13466 | main (void) |
b0cacab0 | 13467 | { |
e1052144 | 13468 | return socket (); |
b0cacab0 TT |
13469 | ; |
13470 | return 0; | |
13471 | } | |
13472 | _ACEOF | |
54445dc2 TT |
13473 | if ac_fn_c_try_link "$LINENO" |
13474 | then : | |
b0cacab0 | 13475 | ac_cv_lib_socket_socket=yes |
54445dc2 | 13476 | else $as_nop |
57aa50d4 | 13477 | ac_cv_lib_socket_socket=no |
b0cacab0 | 13478 | fi |
54445dc2 | 13479 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
57aa50d4 | 13480 | conftest$ac_exeext conftest.$ac_ext |
b0cacab0 TT |
13481 | LIBS=$ac_check_lib_save_LIBS |
13482 | fi | |
54445dc2 TT |
13483 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5 |
13484 | printf "%s\n" "$ac_cv_lib_socket_socket" >&6; } | |
13485 | if test "x$ac_cv_lib_socket_socket" = xyes | |
13486 | then : | |
fc6d9d51 | 13487 | SOCKET_LIB=-lsocket |
50e1e10f | 13488 | fi |
fc6d9d51 | 13489 | |
93636bde | 13490 | |
54445dc2 TT |
13491 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for magic_file in -lmagic" >&5 |
13492 | printf %s "checking for magic_file in -lmagic... " >&6; } | |
13493 | if test ${ac_cv_lib_magic_magic_file+y} | |
13494 | then : | |
13495 | printf %s "(cached) " >&6 | |
13496 | else $as_nop | |
b291c11f DW |
13497 | ac_check_lib_save_LIBS=$LIBS |
13498 | LIBS="-lmagic $LIBS" | |
13499 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13500 | /* end confdefs.h. */ | |
13501 | ||
13502 | /* Override any GCC internal prototype to avoid an error. | |
13503 | Use char because int might match the return type of a GCC | |
13504 | builtin and then its argument prototype would still apply. */ | |
b291c11f DW |
13505 | char magic_file (); |
13506 | int | |
54445dc2 | 13507 | main (void) |
b291c11f DW |
13508 | { |
13509 | return magic_file (); | |
13510 | ; | |
13511 | return 0; | |
13512 | } | |
13513 | _ACEOF | |
54445dc2 TT |
13514 | if ac_fn_c_try_link "$LINENO" |
13515 | then : | |
b291c11f | 13516 | ac_cv_lib_magic_magic_file=yes |
54445dc2 | 13517 | else $as_nop |
b291c11f DW |
13518 | ac_cv_lib_magic_magic_file=no |
13519 | fi | |
54445dc2 | 13520 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
b291c11f DW |
13521 | conftest$ac_exeext conftest.$ac_ext |
13522 | LIBS=$ac_check_lib_save_LIBS | |
13523 | fi | |
54445dc2 TT |
13524 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_magic_magic_file" >&5 |
13525 | printf "%s\n" "$ac_cv_lib_magic_magic_file" >&6; } | |
13526 | if test "x$ac_cv_lib_magic_magic_file" = xyes | |
13527 | then : | |
b291c11f | 13528 | MAGIC_LIB=-lmagic |
54445dc2 TT |
13529 | ac_fn_c_check_header_compile "$LINENO" "magic.h" "ac_cv_header_magic_h" "$ac_includes_default" |
13530 | if test "x$ac_cv_header_magic_h" = xyes | |
13531 | then : | |
13532 | printf "%s\n" "#define HAVE_MAGIC_H 1" >>confdefs.h | |
b291c11f DW |
13533 | |
13534 | fi | |
13535 | ||
b291c11f DW |
13536 | fi |
13537 | ||
32179ce2 | 13538 | if test "$ac_cv_func_dlopen" = yes ; then |
d2e3c0dc TT |
13539 | MAGIC_LIB=$DLOPEN_LIB |
13540 | fi | |
b291c11f | 13541 | |
54445dc2 TT |
13542 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5 |
13543 | printf %s "checking for clock_gettime in -lrt... " >&6; } | |
13544 | if test ${ac_cv_lib_rt_clock_gettime+y} | |
13545 | then : | |
13546 | printf %s "(cached) " >&6 | |
13547 | else $as_nop | |
c94da047 TT |
13548 | ac_check_lib_save_LIBS=$LIBS |
13549 | LIBS="-lrt $LIBS" | |
13550 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13551 | /* end confdefs.h. */ | |
13552 | ||
13553 | /* Override any GCC internal prototype to avoid an error. | |
13554 | Use char because int might match the return type of a GCC | |
13555 | builtin and then its argument prototype would still apply. */ | |
c94da047 TT |
13556 | char clock_gettime (); |
13557 | int | |
54445dc2 | 13558 | main (void) |
c94da047 TT |
13559 | { |
13560 | return clock_gettime (); | |
13561 | ; | |
13562 | return 0; | |
13563 | } | |
13564 | _ACEOF | |
54445dc2 TT |
13565 | if ac_fn_c_try_link "$LINENO" |
13566 | then : | |
c94da047 | 13567 | ac_cv_lib_rt_clock_gettime=yes |
54445dc2 | 13568 | else $as_nop |
c94da047 TT |
13569 | ac_cv_lib_rt_clock_gettime=no |
13570 | fi | |
54445dc2 | 13571 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
c94da047 TT |
13572 | conftest$ac_exeext conftest.$ac_ext |
13573 | LIBS=$ac_check_lib_save_LIBS | |
13574 | fi | |
54445dc2 TT |
13575 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5 |
13576 | printf "%s\n" "$ac_cv_lib_rt_clock_gettime" >&6; } | |
13577 | if test "x$ac_cv_lib_rt_clock_gettime" = xyes | |
13578 | then : | |
c94da047 TT |
13579 | CLOCK_GETTIME_LIB=-lrt |
13580 | fi | |
13581 | ||
13582 | ||
81cbf1ef DW |
13583 | FUSE_CMT= |
13584 | FUSE_LIB= | |
13585 | # Check whether --enable-fuse2fs was given. | |
54445dc2 TT |
13586 | if test ${enable_fuse2fs+y} |
13587 | then : | |
81cbf1ef DW |
13588 | enableval=$enable_fuse2fs; if test "$enableval" = "no" |
13589 | then | |
13590 | FUSE_CMT="#" | |
54445dc2 TT |
13591 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling fuse2fs" >&5 |
13592 | printf "%s\n" "Disabling fuse2fs" >&6; } | |
81cbf1ef | 13593 | else |
54445dc2 | 13594 | for ac_header in pthread.h fuse.h |
81cbf1ef | 13595 | do : |
54445dc2 | 13596 | as_ac_Header=`printf "%s\n" "ac_cv_header_$ac_header" | $as_tr_sh` |
81cbf1ef DW |
13597 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#define _FILE_OFFSET_BITS 64 |
13598 | #define FUSE_USE_VERSION 29 | |
13599 | " | |
54445dc2 TT |
13600 | if eval test \"x\$"$as_ac_Header"\" = x"yes" |
13601 | then : | |
81cbf1ef | 13602 | cat >>confdefs.h <<_ACEOF |
54445dc2 | 13603 | #define `printf "%s\n" "HAVE_$ac_header" | $as_tr_cpp` 1 |
81cbf1ef DW |
13604 | _ACEOF |
13605 | ||
54445dc2 TT |
13606 | else $as_nop |
13607 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
13608 | printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} | |
81cbf1ef DW |
13609 | as_fn_error $? "Cannot find fuse2fs headers. |
13610 | See \`config.log' for more details" "$LINENO" 5; } | |
13611 | fi | |
13612 | ||
13613 | done | |
13614 | ||
81cbf1ef DW |
13615 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
13616 | /* end confdefs.h. */ | |
13617 | #define FUSE_USE_VERSION 29 | |
13618 | #ifdef __linux__ | |
13619 | #include <linux/fs.h> | |
13620 | #include <linux/falloc.h> | |
13621 | #include <linux/xattr.h> | |
13622 | #endif | |
13623 | ||
13624 | int | |
54445dc2 | 13625 | main (void) |
81cbf1ef DW |
13626 | { |
13627 | ||
13628 | ; | |
13629 | return 0; | |
13630 | } | |
13631 | _ACEOF | |
54445dc2 TT |
13632 | if ac_fn_c_try_cpp "$LINENO" |
13633 | then : | |
81cbf1ef | 13634 | |
54445dc2 TT |
13635 | else $as_nop |
13636 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
13637 | printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} | |
81cbf1ef DW |
13638 | as_fn_error $? "Cannot find fuse2fs Linux headers. |
13639 | See \`config.log' for more details" "$LINENO" 5; } | |
13640 | fi | |
13641 | rm -f conftest.err conftest.i conftest.$ac_ext | |
13642 | ||
54445dc2 TT |
13643 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -losxfuse" >&5 |
13644 | printf %s "checking for fuse_main in -losxfuse... " >&6; } | |
13645 | if test ${ac_cv_lib_osxfuse_fuse_main+y} | |
13646 | then : | |
13647 | printf %s "(cached) " >&6 | |
13648 | else $as_nop | |
81cbf1ef DW |
13649 | ac_check_lib_save_LIBS=$LIBS |
13650 | LIBS="-losxfuse $LIBS" | |
13651 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13652 | /* end confdefs.h. */ | |
13653 | ||
13654 | /* Override any GCC internal prototype to avoid an error. | |
13655 | Use char because int might match the return type of a GCC | |
13656 | builtin and then its argument prototype would still apply. */ | |
81cbf1ef DW |
13657 | char fuse_main (); |
13658 | int | |
54445dc2 | 13659 | main (void) |
81cbf1ef DW |
13660 | { |
13661 | return fuse_main (); | |
13662 | ; | |
13663 | return 0; | |
13664 | } | |
13665 | _ACEOF | |
54445dc2 TT |
13666 | if ac_fn_c_try_link "$LINENO" |
13667 | then : | |
81cbf1ef | 13668 | ac_cv_lib_osxfuse_fuse_main=yes |
54445dc2 | 13669 | else $as_nop |
81cbf1ef DW |
13670 | ac_cv_lib_osxfuse_fuse_main=no |
13671 | fi | |
54445dc2 | 13672 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
81cbf1ef DW |
13673 | conftest$ac_exeext conftest.$ac_ext |
13674 | LIBS=$ac_check_lib_save_LIBS | |
13675 | fi | |
54445dc2 TT |
13676 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_osxfuse_fuse_main" >&5 |
13677 | printf "%s\n" "$ac_cv_lib_osxfuse_fuse_main" >&6; } | |
13678 | if test "x$ac_cv_lib_osxfuse_fuse_main" = xyes | |
13679 | then : | |
81cbf1ef | 13680 | FUSE_LIB=-losxfuse |
54445dc2 TT |
13681 | else $as_nop |
13682 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -lfuse" >&5 | |
13683 | printf %s "checking for fuse_main in -lfuse... " >&6; } | |
13684 | if test ${ac_cv_lib_fuse_fuse_main+y} | |
13685 | then : | |
13686 | printf %s "(cached) " >&6 | |
13687 | else $as_nop | |
81cbf1ef DW |
13688 | ac_check_lib_save_LIBS=$LIBS |
13689 | LIBS="-lfuse $LIBS" | |
13690 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13691 | /* end confdefs.h. */ | |
13692 | ||
13693 | /* Override any GCC internal prototype to avoid an error. | |
13694 | Use char because int might match the return type of a GCC | |
13695 | builtin and then its argument prototype would still apply. */ | |
81cbf1ef DW |
13696 | char fuse_main (); |
13697 | int | |
54445dc2 | 13698 | main (void) |
81cbf1ef DW |
13699 | { |
13700 | return fuse_main (); | |
13701 | ; | |
13702 | return 0; | |
13703 | } | |
13704 | _ACEOF | |
54445dc2 TT |
13705 | if ac_fn_c_try_link "$LINENO" |
13706 | then : | |
81cbf1ef | 13707 | ac_cv_lib_fuse_fuse_main=yes |
54445dc2 | 13708 | else $as_nop |
81cbf1ef DW |
13709 | ac_cv_lib_fuse_fuse_main=no |
13710 | fi | |
54445dc2 | 13711 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
81cbf1ef DW |
13712 | conftest$ac_exeext conftest.$ac_ext |
13713 | LIBS=$ac_check_lib_save_LIBS | |
13714 | fi | |
54445dc2 TT |
13715 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fuse_fuse_main" >&5 |
13716 | printf "%s\n" "$ac_cv_lib_fuse_fuse_main" >&6; } | |
13717 | if test "x$ac_cv_lib_fuse_fuse_main" = xyes | |
13718 | then : | |
81cbf1ef | 13719 | FUSE_LIB=-lfuse |
54445dc2 TT |
13720 | else $as_nop |
13721 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
13722 | printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} | |
81cbf1ef DW |
13723 | as_fn_error $? "Cannot find fuse library. |
13724 | See \`config.log' for more details" "$LINENO" 5; } | |
13725 | fi | |
13726 | ||
13727 | fi | |
13728 | ||
54445dc2 TT |
13729 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling fuse2fs" >&5 |
13730 | printf "%s\n" "Enabling fuse2fs" >&6; } | |
81cbf1ef DW |
13731 | fi |
13732 | ||
54445dc2 TT |
13733 | else $as_nop |
13734 | for ac_header in pthread.h fuse.h | |
81cbf1ef | 13735 | do : |
54445dc2 | 13736 | as_ac_Header=`printf "%s\n" "ac_cv_header_$ac_header" | $as_tr_sh` |
81cbf1ef DW |
13737 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#define _FILE_OFFSET_BITS 64 |
13738 | #define FUSE_USE_VERSION 29 | |
13739 | #ifdef __linux__ | |
13740 | # include <linux/fs.h> | |
13741 | # include <linux/falloc.h> | |
13742 | # include <linux/xattr.h> | |
13743 | #endif | |
13744 | " | |
54445dc2 TT |
13745 | if eval test \"x\$"$as_ac_Header"\" = x"yes" |
13746 | then : | |
81cbf1ef | 13747 | cat >>confdefs.h <<_ACEOF |
54445dc2 | 13748 | #define `printf "%s\n" "HAVE_$ac_header" | $as_tr_cpp` 1 |
81cbf1ef DW |
13749 | _ACEOF |
13750 | ||
54445dc2 | 13751 | else $as_nop |
81cbf1ef DW |
13752 | FUSE_CMT="#" |
13753 | fi | |
13754 | ||
13755 | done | |
81cbf1ef DW |
13756 | if test -z "$FUSE_CMT" |
13757 | then | |
54445dc2 TT |
13758 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -losxfuse" >&5 |
13759 | printf %s "checking for fuse_main in -losxfuse... " >&6; } | |
13760 | if test ${ac_cv_lib_osxfuse_fuse_main+y} | |
13761 | then : | |
13762 | printf %s "(cached) " >&6 | |
13763 | else $as_nop | |
81cbf1ef DW |
13764 | ac_check_lib_save_LIBS=$LIBS |
13765 | LIBS="-losxfuse $LIBS" | |
13766 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13767 | /* end confdefs.h. */ | |
13768 | ||
13769 | /* Override any GCC internal prototype to avoid an error. | |
13770 | Use char because int might match the return type of a GCC | |
13771 | builtin and then its argument prototype would still apply. */ | |
81cbf1ef DW |
13772 | char fuse_main (); |
13773 | int | |
54445dc2 | 13774 | main (void) |
81cbf1ef DW |
13775 | { |
13776 | return fuse_main (); | |
13777 | ; | |
13778 | return 0; | |
13779 | } | |
13780 | _ACEOF | |
54445dc2 TT |
13781 | if ac_fn_c_try_link "$LINENO" |
13782 | then : | |
81cbf1ef | 13783 | ac_cv_lib_osxfuse_fuse_main=yes |
54445dc2 | 13784 | else $as_nop |
81cbf1ef DW |
13785 | ac_cv_lib_osxfuse_fuse_main=no |
13786 | fi | |
54445dc2 | 13787 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
81cbf1ef DW |
13788 | conftest$ac_exeext conftest.$ac_ext |
13789 | LIBS=$ac_check_lib_save_LIBS | |
13790 | fi | |
54445dc2 TT |
13791 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_osxfuse_fuse_main" >&5 |
13792 | printf "%s\n" "$ac_cv_lib_osxfuse_fuse_main" >&6; } | |
13793 | if test "x$ac_cv_lib_osxfuse_fuse_main" = xyes | |
13794 | then : | |
81cbf1ef | 13795 | FUSE_LIB=-losxfuse |
54445dc2 TT |
13796 | else $as_nop |
13797 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -lfuse" >&5 | |
13798 | printf %s "checking for fuse_main in -lfuse... " >&6; } | |
13799 | if test ${ac_cv_lib_fuse_fuse_main+y} | |
13800 | then : | |
13801 | printf %s "(cached) " >&6 | |
13802 | else $as_nop | |
81cbf1ef DW |
13803 | ac_check_lib_save_LIBS=$LIBS |
13804 | LIBS="-lfuse $LIBS" | |
13805 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13806 | /* end confdefs.h. */ | |
13807 | ||
13808 | /* Override any GCC internal prototype to avoid an error. | |
13809 | Use char because int might match the return type of a GCC | |
13810 | builtin and then its argument prototype would still apply. */ | |
81cbf1ef DW |
13811 | char fuse_main (); |
13812 | int | |
54445dc2 | 13813 | main (void) |
81cbf1ef DW |
13814 | { |
13815 | return fuse_main (); | |
13816 | ; | |
13817 | return 0; | |
13818 | } | |
13819 | _ACEOF | |
54445dc2 TT |
13820 | if ac_fn_c_try_link "$LINENO" |
13821 | then : | |
81cbf1ef | 13822 | ac_cv_lib_fuse_fuse_main=yes |
54445dc2 | 13823 | else $as_nop |
81cbf1ef DW |
13824 | ac_cv_lib_fuse_fuse_main=no |
13825 | fi | |
54445dc2 | 13826 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
81cbf1ef DW |
13827 | conftest$ac_exeext conftest.$ac_ext |
13828 | LIBS=$ac_check_lib_save_LIBS | |
13829 | fi | |
54445dc2 TT |
13830 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fuse_fuse_main" >&5 |
13831 | printf "%s\n" "$ac_cv_lib_fuse_fuse_main" >&6; } | |
13832 | if test "x$ac_cv_lib_fuse_fuse_main" = xyes | |
13833 | then : | |
81cbf1ef | 13834 | FUSE_LIB=-lfuse |
54445dc2 | 13835 | else $as_nop |
81cbf1ef DW |
13836 | FUSE_CMT="#" |
13837 | fi | |
13838 | ||
13839 | fi | |
13840 | ||
13841 | fi | |
13842 | if test -z "$FUSE_CMT" | |
13843 | then | |
54445dc2 TT |
13844 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling fuse2fs by default." >&5 |
13845 | printf "%s\n" "Enabling fuse2fs by default." >&6; } | |
81cbf1ef DW |
13846 | fi |
13847 | ||
13848 | fi | |
13849 | ||
13850 | ||
13851 | ||
54445dc2 TT |
13852 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for optreset" >&5 |
13853 | printf %s "checking for optreset... " >&6; } | |
13854 | if test ${ac_cv_have_optreset+y} | |
13855 | then : | |
13856 | printf %s "(cached) " >&6 | |
13857 | else $as_nop | |
57aa50d4 | 13858 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d7f45af8 | 13859 | /* end confdefs.h. */ |
57aa50d4 TT |
13860 | #include <unistd.h> |
13861 | ||
13862 | _ACEOF | |
13863 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
54445dc2 TT |
13864 | $EGREP "optreset" >/dev/null 2>&1 |
13865 | then : | |
57aa50d4 | 13866 | ac_cv_have_optreset=yes |
54445dc2 | 13867 | else $as_nop |
57aa50d4 TT |
13868 | ac_cv_have_optreset=no |
13869 | fi | |
54445dc2 | 13870 | rm -rf conftest* |
d7f45af8 | 13871 | |
d7f45af8 | 13872 | fi |
54445dc2 TT |
13873 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_optreset" >&5 |
13874 | printf "%s\n" "$ac_cv_have_optreset" >&6; } | |
57aa50d4 | 13875 | if test $ac_cv_have_optreset = yes; then |
d1154eb4 | 13876 | |
54445dc2 | 13877 | printf "%s\n" "#define HAVE_OPTRESET 1" >>confdefs.h |
d7f45af8 | 13878 | |
d7f45af8 | 13879 | fi |
d1154eb4 | 13880 | |
57aa50d4 | 13881 | SEM_INIT_LIB='' |
cfb8e0bd TT |
13882 | echo GL_THREADS_API: ${gl_threads_api} |
13883 | if test "${gl_threads_api}" != none | |
13884 | then | |
13885 | ac_fn_c_check_func "$LINENO" "sem_init" "ac_cv_func_sem_init" | |
54445dc2 TT |
13886 | if test "x$ac_cv_func_sem_init" = xyes |
13887 | then : | |
13888 | ||
13889 | else $as_nop | |
13890 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lpthread" >&5 | |
13891 | printf %s "checking for sem_init in -lpthread... " >&6; } | |
13892 | if test ${ac_cv_lib_pthread_sem_init+y} | |
13893 | then : | |
13894 | printf %s "(cached) " >&6 | |
13895 | else $as_nop | |
d7f45af8 TT |
13896 | ac_check_lib_save_LIBS=$LIBS |
13897 | LIBS="-lpthread $LIBS" | |
57aa50d4 | 13898 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d7f45af8 TT |
13899 | /* end confdefs.h. */ |
13900 | ||
13901 | /* Override any GCC internal prototype to avoid an error. | |
13902 | Use char because int might match the return type of a GCC | |
13903 | builtin and then its argument prototype would still apply. */ | |
d7f45af8 TT |
13904 | char sem_init (); |
13905 | int | |
54445dc2 | 13906 | main (void) |
d7f45af8 TT |
13907 | { |
13908 | return sem_init (); | |
13909 | ; | |
13910 | return 0; | |
13911 | } | |
13912 | _ACEOF | |
54445dc2 TT |
13913 | if ac_fn_c_try_link "$LINENO" |
13914 | then : | |
d7f45af8 | 13915 | ac_cv_lib_pthread_sem_init=yes |
54445dc2 | 13916 | else $as_nop |
57aa50d4 | 13917 | ac_cv_lib_pthread_sem_init=no |
d7f45af8 | 13918 | fi |
54445dc2 | 13919 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
57aa50d4 | 13920 | conftest$ac_exeext conftest.$ac_ext |
d7f45af8 TT |
13921 | LIBS=$ac_check_lib_save_LIBS |
13922 | fi | |
54445dc2 TT |
13923 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_sem_init" >&5 |
13924 | printf "%s\n" "$ac_cv_lib_pthread_sem_init" >&6; } | |
13925 | if test "x$ac_cv_lib_pthread_sem_init" = xyes | |
13926 | then : | |
13927 | printf "%s\n" "#define HAVE_SEM_INIT 1" >>confdefs.h | |
d7f45af8 TT |
13928 | |
13929 | SEM_INIT_LIB=-lpthread | |
54445dc2 TT |
13930 | else $as_nop |
13931 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lrt" >&5 | |
13932 | printf %s "checking for sem_init in -lrt... " >&6; } | |
13933 | if test ${ac_cv_lib_rt_sem_init+y} | |
13934 | then : | |
13935 | printf %s "(cached) " >&6 | |
13936 | else $as_nop | |
d7f45af8 TT |
13937 | ac_check_lib_save_LIBS=$LIBS |
13938 | LIBS="-lrt $LIBS" | |
57aa50d4 | 13939 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d7f45af8 TT |
13940 | /* end confdefs.h. */ |
13941 | ||
13942 | /* Override any GCC internal prototype to avoid an error. | |
13943 | Use char because int might match the return type of a GCC | |
13944 | builtin and then its argument prototype would still apply. */ | |
d7f45af8 TT |
13945 | char sem_init (); |
13946 | int | |
54445dc2 | 13947 | main (void) |
d7f45af8 TT |
13948 | { |
13949 | return sem_init (); | |
13950 | ; | |
13951 | return 0; | |
13952 | } | |
13953 | _ACEOF | |
54445dc2 TT |
13954 | if ac_fn_c_try_link "$LINENO" |
13955 | then : | |
d7f45af8 | 13956 | ac_cv_lib_rt_sem_init=yes |
54445dc2 | 13957 | else $as_nop |
57aa50d4 | 13958 | ac_cv_lib_rt_sem_init=no |
d7f45af8 | 13959 | fi |
54445dc2 | 13960 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
57aa50d4 | 13961 | conftest$ac_exeext conftest.$ac_ext |
d7f45af8 TT |
13962 | LIBS=$ac_check_lib_save_LIBS |
13963 | fi | |
54445dc2 TT |
13964 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sem_init" >&5 |
13965 | printf "%s\n" "$ac_cv_lib_rt_sem_init" >&6; } | |
13966 | if test "x$ac_cv_lib_rt_sem_init" = xyes | |
13967 | then : | |
13968 | printf "%s\n" "#define HAVE_SEM_INIT 1" >>confdefs.h | |
d7f45af8 TT |
13969 | |
13970 | SEM_INIT_LIB=-lrt | |
54445dc2 TT |
13971 | else $as_nop |
13972 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lposix4" >&5 | |
13973 | printf %s "checking for sem_init in -lposix4... " >&6; } | |
13974 | if test ${ac_cv_lib_posix4_sem_init+y} | |
13975 | then : | |
13976 | printf %s "(cached) " >&6 | |
13977 | else $as_nop | |
d7f45af8 TT |
13978 | ac_check_lib_save_LIBS=$LIBS |
13979 | LIBS="-lposix4 $LIBS" | |
57aa50d4 | 13980 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d7f45af8 TT |
13981 | /* end confdefs.h. */ |
13982 | ||
13983 | /* Override any GCC internal prototype to avoid an error. | |
13984 | Use char because int might match the return type of a GCC | |
13985 | builtin and then its argument prototype would still apply. */ | |
d7f45af8 TT |
13986 | char sem_init (); |
13987 | int | |
54445dc2 | 13988 | main (void) |
d7f45af8 TT |
13989 | { |
13990 | return sem_init (); | |
13991 | ; | |
13992 | return 0; | |
13993 | } | |
13994 | _ACEOF | |
54445dc2 TT |
13995 | if ac_fn_c_try_link "$LINENO" |
13996 | then : | |
d7f45af8 | 13997 | ac_cv_lib_posix4_sem_init=yes |
54445dc2 | 13998 | else $as_nop |
57aa50d4 | 13999 | ac_cv_lib_posix4_sem_init=no |
d7f45af8 | 14000 | fi |
54445dc2 | 14001 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
57aa50d4 | 14002 | conftest$ac_exeext conftest.$ac_ext |
d7f45af8 TT |
14003 | LIBS=$ac_check_lib_save_LIBS |
14004 | fi | |
54445dc2 TT |
14005 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_sem_init" >&5 |
14006 | printf "%s\n" "$ac_cv_lib_posix4_sem_init" >&6; } | |
14007 | if test "x$ac_cv_lib_posix4_sem_init" = xyes | |
14008 | then : | |
14009 | printf "%s\n" "#define HAVE_SEM_INIT 1" >>confdefs.h | |
d7f45af8 TT |
14010 | |
14011 | SEM_INIT_LIB=-lposix4 | |
14012 | fi | |
14013 | ||
14014 | fi | |
14015 | ||
14016 | fi | |
14017 | ||
cfb8e0bd | 14018 | fi |
d7f45af8 TT |
14019 | fi |
14020 | ||
4e5f24ae TT |
14021 | if test "$ac_cv_func_qsort_r" != no |
14022 | then : | |
14023 | ||
14024 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether qsort_r is GNU version" >&5 | |
14025 | printf %s "checking whether qsort_r is GNU version... " >&6; } | |
14026 | if test ${e2_cv_gnu_qsort_r+y} | |
14027 | then : | |
14028 | printf %s "(cached) " >&6 | |
14029 | else $as_nop | |
14030 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
14031 | /* end confdefs.h. */ | |
14032 | ||
14033 | #include <stdlib.h> | |
14034 | void (qsort_r)(void *base, size_t nmemb, size_t size, | |
14035 | int (*compar)(const void *, const void *, void *), | |
14036 | void *arg); | |
14037 | ||
14038 | int | |
14039 | main (void) | |
14040 | { | |
14041 | ||
14042 | ; | |
14043 | return 0; | |
14044 | } | |
14045 | _ACEOF | |
14046 | if ac_fn_c_try_compile "$LINENO" | |
14047 | then : | |
14048 | e2_cv_gnu_qsort_r=yes | |
14049 | else $as_nop | |
14050 | e2_cv_gnu_qsort_r=no | |
14051 | fi | |
14052 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext | |
14053 | ||
14054 | fi | |
14055 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $e2_cv_gnu_qsort_r" >&5 | |
14056 | printf "%s\n" "$e2_cv_gnu_qsort_r" >&6; } | |
14057 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether qsort_r is BSD version" >&5 | |
14058 | printf %s "checking whether qsort_r is BSD version... " >&6; } | |
14059 | if test ${e2_cv_bsd_qsort_r+y} | |
14060 | then : | |
14061 | printf %s "(cached) " >&6 | |
14062 | else $as_nop | |
14063 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
14064 | /* end confdefs.h. */ | |
14065 | ||
14066 | #include <stdlib.h> | |
14067 | void (qsort_r)(void *base, size_t nmemb, size_t size, | |
14068 | void *arg, int (*compar)(void *, const void *, const void *)); | |
14069 | ||
14070 | int | |
14071 | main (void) | |
14072 | { | |
14073 | ||
14074 | ; | |
14075 | return 0; | |
14076 | } | |
14077 | _ACEOF | |
14078 | if ac_fn_c_try_compile "$LINENO" | |
14079 | then : | |
14080 | e2_cv_bsd_qsort_r=yes | |
14081 | else $as_nop | |
14082 | e2_cv_bsd_qsort_r=no | |
14083 | fi | |
14084 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext | |
14085 | ||
14086 | fi | |
14087 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $e2_cv_bsd_qsort_r" >&5 | |
14088 | printf "%s\n" "$e2_cv_bsd_qsort_r" >&6; } | |
14089 | case "$e2_cv_gnu_qsort_r:$e2_cv_bsd_qsort_r" in #( | |
14090 | yes:no) : | |
14091 | ||
6eb00fb7 EB |
14092 | |
14093 | printf "%s\n" "#define HAVE_GNU_QSORT_R 1" >>confdefs.h | |
4e5f24ae TT |
14094 | |
14095 | ;; #( | |
14096 | no:yes) : | |
14097 | ||
6eb00fb7 EB |
14098 | |
14099 | printf "%s\n" "#define HAVE_BSD_QSORT_R 1" >>confdefs.h | |
4e5f24ae TT |
14100 | |
14101 | ;; #( | |
14102 | *) : | |
14103 | ;; | |
14104 | esac | |
14105 | ||
14106 | fi | |
54445dc2 TT |
14107 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for unified diff option" >&5 |
14108 | printf %s "checking for unified diff option... " >&6; } | |
27f991b0 | 14109 | if diff -u $0 $0 > /dev/null 2>&1 ; then |
e54635de TT |
14110 | UNI_DIFF_OPTS=-u |
14111 | else | |
14112 | UNI_DIFF_OPTS=-c | |
14113 | fi | |
54445dc2 TT |
14114 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $UNI_DIFF_OPTS" >&5 |
14115 | printf "%s\n" "$UNI_DIFF_OPTS" >&6; } | |
e54635de | 14116 | |
8f3f29d3 TT |
14117 | case "$host_os" in |
14118 | linux*) | |
d1154eb4 | 14119 | |
54445dc2 | 14120 | printf "%s\n" "#define HAVE_EXT2_IOCTLS 1" >>confdefs.h |
50e1e10f | 14121 | |
8f3f29d3 TT |
14122 | ;; |
14123 | esac | |
ea1a3fa2 | 14124 | |
54445dc2 | 14125 | printf %s "checking for mount 'nosuid' option... " |
ea1a3fa2 NC |
14126 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
14127 | /* end confdefs.h. */ | |
14128 | #include <sys/mount.h> | |
14129 | int | |
54445dc2 | 14130 | main (void) |
ea1a3fa2 NC |
14131 | { |
14132 | void *temp = (void *)(MS_NOSUID); (void) temp; | |
14133 | ; | |
14134 | return 0; | |
14135 | } | |
14136 | _ACEOF | |
54445dc2 TT |
14137 | if ac_fn_c_try_compile "$LINENO" |
14138 | then : | |
ea1a3fa2 | 14139 | |
54445dc2 | 14140 | printf "%s\n" "#define HAVE_MOUNT_NOSUID 1" >>confdefs.h |
ea1a3fa2 NC |
14141 | |
14142 | ac_cv_mount_nosuid=yes | |
54445dc2 TT |
14143 | printf "%s\n" "yes" |
14144 | else $as_nop | |
ea1a3fa2 NC |
14145 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
14146 | /* end confdefs.h. */ | |
14147 | #include <sys/mount.h> | |
14148 | int | |
54445dc2 | 14149 | main (void) |
ea1a3fa2 NC |
14150 | { |
14151 | void *temp = (void *)(MNT_NOSUID); (void) temp; | |
14152 | ; | |
14153 | return 0; | |
14154 | } | |
14155 | _ACEOF | |
54445dc2 TT |
14156 | if ac_fn_c_try_compile "$LINENO" |
14157 | then : | |
ea1a3fa2 | 14158 | |
54445dc2 | 14159 | printf "%s\n" "#define HAVE_MOUNT_NOSUID 1" >>confdefs.h |
ea1a3fa2 NC |
14160 | |
14161 | ac_cv_mount_nosuid=yes | |
54445dc2 TT |
14162 | printf "%s\n" "yes" |
14163 | else $as_nop | |
ea1a3fa2 | 14164 | ac_cv_mount_nosuid=no |
54445dc2 | 14165 | printf "%s\n" "no" |
ea1a3fa2 NC |
14166 | |
14167 | fi | |
54445dc2 | 14168 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
ea1a3fa2 NC |
14169 | |
14170 | fi | |
54445dc2 | 14171 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
ea1a3fa2 NC |
14172 | |
14173 | ||
54445dc2 | 14174 | printf %s "checking for mount 'nodev' option... " |
ea1a3fa2 NC |
14175 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
14176 | /* end confdefs.h. */ | |
14177 | #include <sys/mount.h> | |
14178 | int | |
54445dc2 | 14179 | main (void) |
ea1a3fa2 NC |
14180 | { |
14181 | void *temp = (void *)(MS_NODEV); (void) temp; | |
14182 | ; | |
14183 | return 0; | |
14184 | } | |
14185 | _ACEOF | |
54445dc2 TT |
14186 | if ac_fn_c_try_compile "$LINENO" |
14187 | then : | |
ea1a3fa2 | 14188 | |
54445dc2 | 14189 | printf "%s\n" "#define HAVE_MOUNT_NODEV 1" >>confdefs.h |
ea1a3fa2 NC |
14190 | |
14191 | ac_cv_mount_nodev=yes | |
54445dc2 TT |
14192 | printf "%s\n" "yes" |
14193 | else $as_nop | |
ea1a3fa2 NC |
14194 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
14195 | /* end confdefs.h. */ | |
14196 | #include <sys/mount.h> | |
14197 | int | |
54445dc2 | 14198 | main (void) |
ea1a3fa2 NC |
14199 | { |
14200 | void *temp = (void *)(MNT_NODEV); (void) temp; | |
14201 | ; | |
14202 | return 0; | |
14203 | } | |
14204 | _ACEOF | |
54445dc2 TT |
14205 | if ac_fn_c_try_compile "$LINENO" |
14206 | then : | |
ea1a3fa2 | 14207 | |
54445dc2 | 14208 | printf "%s\n" "#define HAVE_MOUNT_NODEV 1" >>confdefs.h |
ea1a3fa2 NC |
14209 | |
14210 | ac_cv_mount_nodev=yes | |
54445dc2 TT |
14211 | printf "%s\n" "yes" |
14212 | else $as_nop | |
ea1a3fa2 | 14213 | ac_cv_mount_nodev=no |
54445dc2 | 14214 | printf "%s\n" "no" |
ea1a3fa2 NC |
14215 | |
14216 | fi | |
54445dc2 | 14217 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
ea1a3fa2 NC |
14218 | |
14219 | fi | |
54445dc2 | 14220 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
ea1a3fa2 | 14221 | |
4aece328 | 14222 | # Check whether --enable-lto was given. |
54445dc2 TT |
14223 | if test ${enable_lto+y} |
14224 | then : | |
4aece328 | 14225 | enableval=$enable_lto; |
54445dc2 | 14226 | else $as_nop |
139a3092 | 14227 | enable_lto=no |
4aece328 DW |
14228 | fi |
14229 | ||
14230 | if test "$enable_lto" = "yes" || test "$enable_lto" = "probe"; then | |
54445dc2 TT |
14231 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if C compiler supports LTO" >&5 |
14232 | printf %s "checking if C compiler supports LTO... " >&6; } | |
4aece328 DW |
14233 | OLD_CFLAGS="$CFLAGS" |
14234 | OLD_LDFLAGS="$LDFLAGS" | |
49715704 | 14235 | LTO_FLAGS="-g -flto -ffat-lto-objects" |
4aece328 DW |
14236 | CFLAGS="$CFLAGS $LTO_FLAGS" |
14237 | LDFLAGS="$LDFLAGS $LTO_FLAGS" | |
14238 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
14239 | /* end confdefs.h. */ | |
14240 | ||
14241 | int | |
54445dc2 | 14242 | main (void) |
4aece328 DW |
14243 | { |
14244 | ||
14245 | ; | |
14246 | return 0; | |
14247 | } | |
14248 | _ACEOF | |
54445dc2 TT |
14249 | if ac_fn_c_try_link "$LINENO" |
14250 | then : | |
14251 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
14252 | printf "%s\n" "yes" >&6; } | |
4aece328 DW |
14253 | lto_cflags=$LTO_FLAGS |
14254 | lto_ldflags=$LTO_FLAGS | |
14255 | # Extract the first word of "gcc-ar", so it can be a program name with args. | |
14256 | set dummy gcc-ar; ac_word=$2 | |
54445dc2 TT |
14257 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
14258 | printf %s "checking for $ac_word... " >&6; } | |
14259 | if test ${ac_cv_path_gcc_ar+y} | |
14260 | then : | |
14261 | printf %s "(cached) " >&6 | |
14262 | else $as_nop | |
4aece328 DW |
14263 | case $gcc_ar in |
14264 | [\\/]* | ?:[\\/]*) | |
14265 | ac_cv_path_gcc_ar="$gcc_ar" # Let the user override the test with a path. | |
14266 | ;; | |
14267 | *) | |
14268 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14269 | for as_dir in $PATH | |
14270 | do | |
14271 | IFS=$as_save_IFS | |
54445dc2 TT |
14272 | case $as_dir in #((( |
14273 | '') as_dir=./ ;; | |
14274 | */) ;; | |
14275 | *) as_dir=$as_dir/ ;; | |
14276 | esac | |
4aece328 | 14277 | for ac_exec_ext in '' $ac_executable_extensions; do |
54445dc2 TT |
14278 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
14279 | ac_cv_path_gcc_ar="$as_dir$ac_word$ac_exec_ext" | |
14280 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 | |
4aece328 DW |
14281 | break 2 |
14282 | fi | |
14283 | done | |
14284 | done | |
14285 | IFS=$as_save_IFS | |
14286 | ||
14287 | ;; | |
14288 | esac | |
14289 | fi | |
14290 | gcc_ar=$ac_cv_path_gcc_ar | |
14291 | if test -n "$gcc_ar"; then | |
54445dc2 TT |
14292 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gcc_ar" >&5 |
14293 | printf "%s\n" "$gcc_ar" >&6; } | |
4aece328 | 14294 | else |
54445dc2 TT |
14295 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14296 | printf "%s\n" "no" >&6; } | |
4aece328 DW |
14297 | fi |
14298 | ||
14299 | ||
14300 | # Extract the first word of "gcc-ranlib", so it can be a program name with args. | |
14301 | set dummy gcc-ranlib; ac_word=$2 | |
54445dc2 TT |
14302 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
14303 | printf %s "checking for $ac_word... " >&6; } | |
14304 | if test ${ac_cv_path_gcc_ranlib+y} | |
14305 | then : | |
14306 | printf %s "(cached) " >&6 | |
14307 | else $as_nop | |
4aece328 DW |
14308 | case $gcc_ranlib in |
14309 | [\\/]* | ?:[\\/]*) | |
14310 | ac_cv_path_gcc_ranlib="$gcc_ranlib" # Let the user override the test with a path. | |
14311 | ;; | |
14312 | *) | |
14313 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14314 | for as_dir in $PATH | |
14315 | do | |
14316 | IFS=$as_save_IFS | |
54445dc2 TT |
14317 | case $as_dir in #((( |
14318 | '') as_dir=./ ;; | |
14319 | */) ;; | |
14320 | *) as_dir=$as_dir/ ;; | |
14321 | esac | |
4aece328 | 14322 | for ac_exec_ext in '' $ac_executable_extensions; do |
54445dc2 TT |
14323 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
14324 | ac_cv_path_gcc_ranlib="$as_dir$ac_word$ac_exec_ext" | |
14325 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 | |
4aece328 DW |
14326 | break 2 |
14327 | fi | |
14328 | done | |
14329 | done | |
14330 | IFS=$as_save_IFS | |
14331 | ||
14332 | ;; | |
14333 | esac | |
14334 | fi | |
14335 | gcc_ranlib=$ac_cv_path_gcc_ranlib | |
14336 | if test -n "$gcc_ranlib"; then | |
54445dc2 TT |
14337 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gcc_ranlib" >&5 |
14338 | printf "%s\n" "$gcc_ranlib" >&6; } | |
4aece328 | 14339 | else |
54445dc2 TT |
14340 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14341 | printf "%s\n" "no" >&6; } | |
4aece328 DW |
14342 | fi |
14343 | ||
14344 | ||
54445dc2 TT |
14345 | else $as_nop |
14346 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
14347 | printf "%s\n" "no" >&6; } | |
4aece328 | 14348 | fi |
54445dc2 | 14349 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
4aece328 DW |
14350 | conftest$ac_exeext conftest.$ac_ext |
14351 | if test -x "$gcc_ar" && test -x "$gcc_ranlib"; then | |
14352 | have_lto=yes | |
14353 | AR="${gcc_ar}" | |
14354 | RANLIB="${gcc_ranlib}" | |
14355 | fi | |
14356 | CFLAGS="${OLD_CFLAGS}" | |
14357 | LDFLAGS="${OLD_LDFLAGS}" | |
14358 | ||
14359 | ||
14360 | ||
14361 | fi | |
14362 | if test "$enable_lto" = "yes" && test "$have_lto" != "yes"; then | |
14363 | as_fn_error $? "LTO not supported by compiler." "$LINENO" 5 | |
14364 | fi | |
1c2a76ae | 14365 | # Check whether --enable-ubsan was given. |
54445dc2 TT |
14366 | if test ${enable_ubsan+y} |
14367 | then : | |
1c2a76ae | 14368 | enableval=$enable_ubsan; |
54445dc2 | 14369 | else $as_nop |
1c2a76ae DW |
14370 | enable_ubsan=no |
14371 | fi | |
14372 | ||
14373 | if test "$enable_ubsan" = "yes" || test "$enable_ubsan" = "probe"; then | |
54445dc2 TT |
14374 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if C compiler supports UBSAN" >&5 |
14375 | printf %s "checking if C compiler supports UBSAN... " >&6; } | |
1c2a76ae DW |
14376 | OLD_CFLAGS="$CFLAGS" |
14377 | OLD_LDFLAGS="$LDFLAGS" | |
14378 | UBSAN_FLAGS="-fsanitize=undefined" | |
14379 | CFLAGS="$CFLAGS $UBSAN_FLAGS" | |
14380 | LDFLAGS="$LDFLAGS $UBSAN_FLAGS" | |
14381 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
14382 | /* end confdefs.h. */ | |
14383 | ||
14384 | int | |
54445dc2 | 14385 | main (void) |
1c2a76ae DW |
14386 | { |
14387 | ||
14388 | ; | |
14389 | return 0; | |
14390 | } | |
14391 | _ACEOF | |
54445dc2 TT |
14392 | if ac_fn_c_try_link "$LINENO" |
14393 | then : | |
14394 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
14395 | printf "%s\n" "yes" >&6; } | |
1c2a76ae DW |
14396 | ubsan_cflags=$UBSAN_FLAGS |
14397 | ubsan_ldflags=$UBSAN_FLAGS | |
14398 | have_ubsan=yes | |
54445dc2 TT |
14399 | else $as_nop |
14400 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
14401 | printf "%s\n" "no" >&6; } | |
1c2a76ae | 14402 | fi |
54445dc2 | 14403 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
1c2a76ae DW |
14404 | conftest$ac_exeext conftest.$ac_ext |
14405 | CFLAGS="${OLD_CFLAGS}" | |
14406 | LDFLAGS="${OLD_LDFLAGS}" | |
14407 | ||
14408 | ||
14409 | ||
14410 | fi | |
14411 | if test "$enable_ubsan" = "yes" && test "$have_ubsan" != "yes"; then | |
14412 | as_fn_error $? "UBSAN not supported by compiler." "$LINENO" 5 | |
14413 | fi | |
5e666e3d | 14414 | # Check whether --enable-addrsan was given. |
54445dc2 TT |
14415 | if test ${enable_addrsan+y} |
14416 | then : | |
5e666e3d | 14417 | enableval=$enable_addrsan; |
54445dc2 | 14418 | else $as_nop |
5e666e3d DW |
14419 | enable_addrsan=no |
14420 | fi | |
14421 | ||
14422 | if test "$enable_addrsan" = "yes" || test "$enable_addrsan" = "probe"; then | |
54445dc2 TT |
14423 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if C compiler supports ADDRSAN" >&5 |
14424 | printf %s "checking if C compiler supports ADDRSAN... " >&6; } | |
5e666e3d DW |
14425 | OLD_CFLAGS="$CFLAGS" |
14426 | OLD_LDFLAGS="$LDFLAGS" | |
14427 | ADDRSAN_FLAGS="-fsanitize=address" | |
14428 | CFLAGS="$CFLAGS $ADDRSAN_FLAGS" | |
14429 | LDFLAGS="$LDFLAGS $ADDRSAN_FLAGS" | |
14430 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
14431 | /* end confdefs.h. */ | |
14432 | ||
14433 | int | |
54445dc2 | 14434 | main (void) |
5e666e3d DW |
14435 | { |
14436 | ||
14437 | ; | |
14438 | return 0; | |
14439 | } | |
14440 | _ACEOF | |
54445dc2 TT |
14441 | if ac_fn_c_try_link "$LINENO" |
14442 | then : | |
14443 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
14444 | printf "%s\n" "yes" >&6; } | |
5e666e3d DW |
14445 | addrsan_cflags=$ADDRSAN_FLAGS |
14446 | addrsan_ldflags=$ADDRSAN_FLAGS | |
14447 | have_addrsan=yes | |
54445dc2 TT |
14448 | else $as_nop |
14449 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
14450 | printf "%s\n" "no" >&6; } | |
5e666e3d | 14451 | fi |
54445dc2 | 14452 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
5e666e3d DW |
14453 | conftest$ac_exeext conftest.$ac_ext |
14454 | CFLAGS="${OLD_CFLAGS}" | |
14455 | LDFLAGS="${OLD_LDFLAGS}" | |
14456 | ||
14457 | ||
14458 | ||
14459 | fi | |
14460 | if test "$enable_addrsan" = "yes" && test "$have_addrsan" != "yes"; then | |
14461 | as_fn_error $? "ADDRSAN not supported by compiler." "$LINENO" 5 | |
14462 | fi | |
bcca786b | 14463 | # Check whether --enable-threadsan was given. |
54445dc2 TT |
14464 | if test ${enable_threadsan+y} |
14465 | then : | |
bcca786b | 14466 | enableval=$enable_threadsan; |
54445dc2 | 14467 | else $as_nop |
bcca786b DW |
14468 | enable_threadsan=no |
14469 | fi | |
14470 | ||
14471 | if test "$enable_threadsan" = "yes" || test "$enable_threadsan" = "probe"; then | |
54445dc2 TT |
14472 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if C compiler supports THREADSAN" >&5 |
14473 | printf %s "checking if C compiler supports THREADSAN... " >&6; } | |
bcca786b DW |
14474 | OLD_CFLAGS="$CFLAGS" |
14475 | OLD_LDFLAGS="$LDFLAGS" | |
14476 | THREADSAN_FLAGS="-fsanitize=thread" | |
14477 | CFLAGS="$CFLAGS $THREADSAN_FLAGS" | |
14478 | LDFLAGS="$LDFLAGS $THREADSAN_FLAGS" | |
14479 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
14480 | /* end confdefs.h. */ | |
14481 | ||
14482 | int | |
54445dc2 | 14483 | main (void) |
bcca786b DW |
14484 | { |
14485 | ||
14486 | ; | |
14487 | return 0; | |
14488 | } | |
14489 | _ACEOF | |
54445dc2 TT |
14490 | if ac_fn_c_try_link "$LINENO" |
14491 | then : | |
14492 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
14493 | printf "%s\n" "yes" >&6; } | |
bcca786b DW |
14494 | threadsan_cflags=$THREADSAN_FLAGS |
14495 | threadsan_ldflags=$THREADSAN_FLAGS | |
14496 | have_threadsan=yes | |
54445dc2 TT |
14497 | else $as_nop |
14498 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
14499 | printf "%s\n" "no" >&6; } | |
bcca786b | 14500 | fi |
54445dc2 | 14501 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
bcca786b DW |
14502 | conftest$ac_exeext conftest.$ac_ext |
14503 | CFLAGS="${OLD_CFLAGS}" | |
14504 | LDFLAGS="${OLD_LDFLAGS}" | |
14505 | ||
14506 | ||
14507 | ||
14508 | fi | |
14509 | if test "$enable_threadsan" = "yes" && test "$have_threadsan" != "yes"; then | |
14510 | as_fn_error $? "THREADSAN not supported by compiler." "$LINENO" 5 | |
14511 | fi | |
14512 | if test "$have_threadsan" = "yes" && test "$have_addrsan" = "yes"; then | |
54445dc2 TT |
14513 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ADDRSAN and THREADSAN are not known to work together." >&5 |
14514 | printf "%s\n" "$as_me: WARNING: ADDRSAN and THREADSAN are not known to work together." >&2;} | |
bcca786b | 14515 | fi |
2869485b TT |
14516 | FUZZING_CMT="#" |
14517 | # Check whether --enable-fuzzing was given. | |
14518 | if test ${enable_fuzzing+y} | |
14519 | then : | |
14520 | enableval=$enable_fuzzing; | |
14521 | else $as_nop | |
14522 | enable_fuzzing=no | |
14523 | fi | |
14524 | ||
14525 | if test "$enable_fuzzing" = "yes" || test "$enable_fuzzing" = "probe"; then | |
14526 | ||
14527 | ||
14528 | ||
14529 | ||
14530 | ||
14531 | ||
14532 | ac_ext=cpp | |
14533 | ac_cpp='$CXXCPP $CPPFLAGS' | |
14534 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
14535 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
14536 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
14537 | if test -z "$CXX"; then | |
14538 | if test -n "$CCC"; then | |
14539 | CXX=$CCC | |
14540 | else | |
14541 | if test -n "$ac_tool_prefix"; then | |
14542 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++ | |
14543 | do | |
14544 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
14545 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
14546 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
14547 | printf %s "checking for $ac_word... " >&6; } | |
14548 | if test ${ac_cv_prog_CXX+y} | |
14549 | then : | |
14550 | printf %s "(cached) " >&6 | |
14551 | else $as_nop | |
14552 | if test -n "$CXX"; then | |
14553 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | |
14554 | else | |
14555 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14556 | for as_dir in $PATH | |
14557 | do | |
14558 | IFS=$as_save_IFS | |
14559 | case $as_dir in #((( | |
14560 | '') as_dir=./ ;; | |
14561 | */) ;; | |
14562 | *) as_dir=$as_dir/ ;; | |
14563 | esac | |
14564 | for ac_exec_ext in '' $ac_executable_extensions; do | |
14565 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then | |
14566 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" | |
14567 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 | |
14568 | break 2 | |
14569 | fi | |
14570 | done | |
14571 | done | |
14572 | IFS=$as_save_IFS | |
14573 | ||
14574 | fi | |
14575 | fi | |
14576 | CXX=$ac_cv_prog_CXX | |
14577 | if test -n "$CXX"; then | |
14578 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 | |
14579 | printf "%s\n" "$CXX" >&6; } | |
14580 | else | |
14581 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
14582 | printf "%s\n" "no" >&6; } | |
14583 | fi | |
14584 | ||
14585 | ||
14586 | test -n "$CXX" && break | |
14587 | done | |
14588 | fi | |
14589 | if test -z "$CXX"; then | |
14590 | ac_ct_CXX=$CXX | |
14591 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++ | |
14592 | do | |
14593 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
14594 | set dummy $ac_prog; ac_word=$2 | |
14595 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
14596 | printf %s "checking for $ac_word... " >&6; } | |
14597 | if test ${ac_cv_prog_ac_ct_CXX+y} | |
14598 | then : | |
14599 | printf %s "(cached) " >&6 | |
14600 | else $as_nop | |
14601 | if test -n "$ac_ct_CXX"; then | |
14602 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. | |
14603 | else | |
14604 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14605 | for as_dir in $PATH | |
14606 | do | |
14607 | IFS=$as_save_IFS | |
14608 | case $as_dir in #((( | |
14609 | '') as_dir=./ ;; | |
14610 | */) ;; | |
14611 | *) as_dir=$as_dir/ ;; | |
14612 | esac | |
14613 | for ac_exec_ext in '' $ac_executable_extensions; do | |
14614 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then | |
14615 | ac_cv_prog_ac_ct_CXX="$ac_prog" | |
14616 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 | |
14617 | break 2 | |
14618 | fi | |
14619 | done | |
14620 | done | |
14621 | IFS=$as_save_IFS | |
14622 | ||
14623 | fi | |
14624 | fi | |
14625 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX | |
14626 | if test -n "$ac_ct_CXX"; then | |
14627 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 | |
14628 | printf "%s\n" "$ac_ct_CXX" >&6; } | |
14629 | else | |
14630 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
14631 | printf "%s\n" "no" >&6; } | |
14632 | fi | |
14633 | ||
14634 | ||
14635 | test -n "$ac_ct_CXX" && break | |
14636 | done | |
14637 | ||
14638 | if test "x$ac_ct_CXX" = x; then | |
14639 | CXX="g++" | |
14640 | else | |
14641 | case $cross_compiling:$ac_tool_warned in | |
14642 | yes:) | |
14643 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
14644 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
14645 | ac_tool_warned=yes ;; | |
14646 | esac | |
14647 | CXX=$ac_ct_CXX | |
14648 | fi | |
14649 | fi | |
14650 | ||
14651 | fi | |
14652 | fi | |
14653 | # Provide some information about the compiler. | |
14654 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 | |
14655 | set X $ac_compile | |
14656 | ac_compiler=$2 | |
14657 | for ac_option in --version -v -V -qversion; do | |
14658 | { { ac_try="$ac_compiler $ac_option >&5" | |
14659 | case "(($ac_try" in | |
14660 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14661 | *) ac_try_echo=$ac_try;; | |
14662 | esac | |
14663 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
14664 | printf "%s\n" "$ac_try_echo"; } >&5 | |
14665 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
14666 | ac_status=$? | |
14667 | if test -s conftest.err; then | |
14668 | sed '10a\ | |
14669 | ... rest of stderr output deleted ... | |
14670 | 10q' conftest.err >conftest.er1 | |
14671 | cat conftest.er1 >&5 | |
14672 | fi | |
14673 | rm -f conftest.er1 conftest.err | |
14674 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
14675 | test $ac_status = 0; } | |
14676 | done | |
14677 | ||
14678 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C++" >&5 | |
14679 | printf %s "checking whether the compiler supports GNU C++... " >&6; } | |
14680 | if test ${ac_cv_cxx_compiler_gnu+y} | |
14681 | then : | |
14682 | printf %s "(cached) " >&6 | |
14683 | else $as_nop | |
14684 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
14685 | /* end confdefs.h. */ | |
14686 | ||
14687 | int | |
14688 | main (void) | |
14689 | { | |
14690 | #ifndef __GNUC__ | |
14691 | choke me | |
14692 | #endif | |
14693 | ||
14694 | ; | |
14695 | return 0; | |
14696 | } | |
14697 | _ACEOF | |
14698 | if ac_fn_cxx_try_compile "$LINENO" | |
14699 | then : | |
14700 | ac_compiler_gnu=yes | |
14701 | else $as_nop | |
14702 | ac_compiler_gnu=no | |
14703 | fi | |
14704 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext | |
14705 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu | |
14706 | ||
14707 | fi | |
14708 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 | |
14709 | printf "%s\n" "$ac_cv_cxx_compiler_gnu" >&6; } | |
14710 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
14711 | ||
14712 | if test $ac_compiler_gnu = yes; then | |
14713 | GXX=yes | |
14714 | else | |
14715 | GXX= | |
14716 | fi | |
14717 | ac_test_CXXFLAGS=${CXXFLAGS+y} | |
14718 | ac_save_CXXFLAGS=$CXXFLAGS | |
14719 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 | |
14720 | printf %s "checking whether $CXX accepts -g... " >&6; } | |
14721 | if test ${ac_cv_prog_cxx_g+y} | |
14722 | then : | |
14723 | printf %s "(cached) " >&6 | |
14724 | else $as_nop | |
14725 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag | |
14726 | ac_cxx_werror_flag=yes | |
14727 | ac_cv_prog_cxx_g=no | |
14728 | CXXFLAGS="-g" | |
14729 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
14730 | /* end confdefs.h. */ | |
14731 | ||
14732 | int | |
14733 | main (void) | |
14734 | { | |
14735 | ||
14736 | ; | |
14737 | return 0; | |
14738 | } | |
14739 | _ACEOF | |
14740 | if ac_fn_cxx_try_compile "$LINENO" | |
14741 | then : | |
14742 | ac_cv_prog_cxx_g=yes | |
14743 | else $as_nop | |
14744 | CXXFLAGS="" | |
14745 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
14746 | /* end confdefs.h. */ | |
14747 | ||
14748 | int | |
14749 | main (void) | |
14750 | { | |
14751 | ||
14752 | ; | |
14753 | return 0; | |
14754 | } | |
14755 | _ACEOF | |
14756 | if ac_fn_cxx_try_compile "$LINENO" | |
14757 | then : | |
14758 | ||
14759 | else $as_nop | |
14760 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag | |
14761 | CXXFLAGS="-g" | |
14762 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
14763 | /* end confdefs.h. */ | |
14764 | ||
14765 | int | |
14766 | main (void) | |
14767 | { | |
14768 | ||
14769 | ; | |
14770 | return 0; | |
14771 | } | |
14772 | _ACEOF | |
14773 | if ac_fn_cxx_try_compile "$LINENO" | |
14774 | then : | |
14775 | ac_cv_prog_cxx_g=yes | |
14776 | fi | |
14777 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext | |
14778 | fi | |
14779 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext | |
14780 | fi | |
14781 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext | |
14782 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag | |
14783 | fi | |
14784 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 | |
14785 | printf "%s\n" "$ac_cv_prog_cxx_g" >&6; } | |
14786 | if test $ac_test_CXXFLAGS; then | |
14787 | CXXFLAGS=$ac_save_CXXFLAGS | |
14788 | elif test $ac_cv_prog_cxx_g = yes; then | |
14789 | if test "$GXX" = yes; then | |
14790 | CXXFLAGS="-g -O2" | |
14791 | else | |
14792 | CXXFLAGS="-g" | |
14793 | fi | |
14794 | else | |
14795 | if test "$GXX" = yes; then | |
14796 | CXXFLAGS="-O2" | |
14797 | else | |
14798 | CXXFLAGS= | |
14799 | fi | |
14800 | fi | |
14801 | ac_prog_cxx_stdcxx=no | |
14802 | if test x$ac_prog_cxx_stdcxx = xno | |
14803 | then : | |
14804 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++11 features" >&5 | |
14805 | printf %s "checking for $CXX option to enable C++11 features... " >&6; } | |
5598a968 | 14806 | if test ${ac_cv_prog_cxx_11+y} |
2869485b TT |
14807 | then : |
14808 | printf %s "(cached) " >&6 | |
14809 | else $as_nop | |
5598a968 | 14810 | ac_cv_prog_cxx_11=no |
2869485b TT |
14811 | ac_save_CXX=$CXX |
14812 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
14813 | /* end confdefs.h. */ | |
14814 | $ac_cxx_conftest_cxx11_program | |
14815 | _ACEOF | |
14816 | for ac_arg in '' -std=gnu++11 -std=gnu++0x -std=c++11 -std=c++0x -qlanglvl=extended0x -AA | |
14817 | do | |
14818 | CXX="$ac_save_CXX $ac_arg" | |
14819 | if ac_fn_cxx_try_compile "$LINENO" | |
14820 | then : | |
14821 | ac_cv_prog_cxx_cxx11=$ac_arg | |
14822 | fi | |
14823 | rm -f core conftest.err conftest.$ac_objext conftest.beam | |
14824 | test "x$ac_cv_prog_cxx_cxx11" != "xno" && break | |
14825 | done | |
14826 | rm -f conftest.$ac_ext | |
14827 | CXX=$ac_save_CXX | |
14828 | fi | |
14829 | ||
14830 | if test "x$ac_cv_prog_cxx_cxx11" = xno | |
14831 | then : | |
14832 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
14833 | printf "%s\n" "unsupported" >&6; } | |
14834 | else $as_nop | |
14835 | if test "x$ac_cv_prog_cxx_cxx11" = x | |
14836 | then : | |
14837 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
14838 | printf "%s\n" "none needed" >&6; } | |
14839 | else $as_nop | |
14840 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx11" >&5 | |
14841 | printf "%s\n" "$ac_cv_prog_cxx_cxx11" >&6; } | |
14842 | CXX="$CXX $ac_cv_prog_cxx_cxx11" | |
14843 | fi | |
14844 | ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx11 | |
14845 | ac_prog_cxx_stdcxx=cxx11 | |
14846 | fi | |
14847 | fi | |
14848 | if test x$ac_prog_cxx_stdcxx = xno | |
14849 | then : | |
14850 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++98 features" >&5 | |
14851 | printf %s "checking for $CXX option to enable C++98 features... " >&6; } | |
5598a968 | 14852 | if test ${ac_cv_prog_cxx_98+y} |
2869485b TT |
14853 | then : |
14854 | printf %s "(cached) " >&6 | |
14855 | else $as_nop | |
5598a968 | 14856 | ac_cv_prog_cxx_98=no |
2869485b TT |
14857 | ac_save_CXX=$CXX |
14858 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
14859 | /* end confdefs.h. */ | |
14860 | $ac_cxx_conftest_cxx98_program | |
14861 | _ACEOF | |
14862 | for ac_arg in '' -std=gnu++98 -std=c++98 -qlanglvl=extended -AA | |
14863 | do | |
14864 | CXX="$ac_save_CXX $ac_arg" | |
14865 | if ac_fn_cxx_try_compile "$LINENO" | |
14866 | then : | |
14867 | ac_cv_prog_cxx_cxx98=$ac_arg | |
14868 | fi | |
14869 | rm -f core conftest.err conftest.$ac_objext conftest.beam | |
14870 | test "x$ac_cv_prog_cxx_cxx98" != "xno" && break | |
14871 | done | |
14872 | rm -f conftest.$ac_ext | |
14873 | CXX=$ac_save_CXX | |
14874 | fi | |
14875 | ||
14876 | if test "x$ac_cv_prog_cxx_cxx98" = xno | |
14877 | then : | |
14878 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
14879 | printf "%s\n" "unsupported" >&6; } | |
14880 | else $as_nop | |
14881 | if test "x$ac_cv_prog_cxx_cxx98" = x | |
14882 | then : | |
14883 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
14884 | printf "%s\n" "none needed" >&6; } | |
14885 | else $as_nop | |
14886 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx98" >&5 | |
14887 | printf "%s\n" "$ac_cv_prog_cxx_cxx98" >&6; } | |
14888 | CXX="$CXX $ac_cv_prog_cxx_cxx98" | |
14889 | fi | |
14890 | ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx98 | |
14891 | ac_prog_cxx_stdcxx=cxx98 | |
14892 | fi | |
14893 | fi | |
14894 | ||
14895 | ac_ext=c | |
14896 | ac_cpp='$CPP $CPPFLAGS' | |
14897 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
14898 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
14899 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
14900 | ||
14901 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if C compiler supports fuzzing sanitizer" >&5 | |
14902 | printf %s "checking if C compiler supports fuzzing sanitizer... " >&6; } | |
14903 | ac_ext=cpp | |
14904 | ac_cpp='$CXXCPP $CPPFLAGS' | |
14905 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
14906 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
14907 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
14908 | ||
14909 | OLD_CXXFLAGS="$CXXFLAGS" | |
14910 | OLD_LDFLAGS="$LDFLAGS" | |
14911 | FUZZER_FLAGS="-fsanitize=fuzzer" | |
14912 | CXXFLAGS="$CXXFLAGS $FUZZER_FLAGS" | |
14913 | LDFLAGS="$LDFLAGS $FUZZER_FLAGS" | |
14914 | ||
14915 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
14916 | /* end confdefs.h. */ | |
14917 | ||
14918 | #include <stddef.h> | |
14919 | #include <stdint.h> | |
14920 | ||
14921 | int | |
14922 | main (void) | |
14923 | { | |
14924 | return 0; | |
14925 | ; | |
14926 | return 0; | |
14927 | } | |
14928 | _ACEOF | |
14929 | if ac_fn_cxx_try_compile "$LINENO" | |
14930 | then : | |
14931 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
14932 | printf "%s\n" "yes" >&6; } | |
14933 | fuzzer_cflags=$FUZZER_FLAGS | |
14934 | fuzzer_ldflags=$FUZZER_FLAGS | |
14935 | FUZZING_CMT= | |
14936 | have_fuzzer=yes | |
14937 | else $as_nop | |
14938 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
14939 | printf "%s\n" "no" >&6; } | |
14940 | as_fn_error $? "fuzzing requested but not available" "$LINENO" 5 | |
14941 | fi | |
14942 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext | |
14943 | CXXFLAGS="${OLD_CXXFLAGS}" | |
14944 | LDFLAGS="${OLD_LDFLAGS}" | |
14945 | ac_ext=c | |
14946 | ac_cpp='$CPP $CPPFLAGS' | |
14947 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
14948 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
14949 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
14950 | ||
14951 | ||
14952 | ||
14953 | ||
14954 | fi | |
14955 | if test "$enable_fuzzer" = "yes" && test "$have_fuzzer" != "yes"; then | |
14956 | as_fn_error $? "Fuzzing not supported by compiler." "$LINENO" 5 | |
14957 | fi | |
14958 | ||
e6f2bda3 | 14959 | LINUX_CMT="#" |
fff45483 TT |
14960 | CYGWIN_CMT="#" |
14961 | UNIX_CMT= | |
e6f2bda3 TT |
14962 | case "$host_os" in |
14963 | linux*) | |
14964 | LINUX_CMT= | |
fff45483 TT |
14965 | ;; |
14966 | cygwin) | |
14967 | CYGWIN_CMT= | |
14968 | UNIX_CMT="#" | |
e6f2bda3 TT |
14969 | ;; |
14970 | esac | |
14971 | ||
93636bde TT |
14972 | |
14973 | ||
5ce368f0 DW |
14974 | E2SCRUB_CMT="$LINUX_CMT" |
14975 | ||
50e1e10f | 14976 | case "$host_os" in |
93636bde | 14977 | linux* | gnu* | k*bsd*-gnu) |
a4b2d3ce TT |
14978 | if test "$prefix" = NONE -a "$root_prefix" = NONE ; then |
14979 | root_prefix=""; | |
54445dc2 TT |
14980 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: On $host_os systems, root_prefix defaults to ''" >&5 |
14981 | printf "%s\n" "On $host_os systems, root_prefix defaults to ''" >&6; } | |
fc6d9d51 TT |
14982 | fi |
14983 | ;; | |
14984 | esac | |
fc6d9d51 | 14985 | case "$host_os" in |
93636bde | 14986 | linux* | gnu* | k*bsd*-gnu) |
fc6d9d51 | 14987 | if test "$prefix" = NONE ; then |
a4b2d3ce | 14988 | prefix="/usr"; |
54445dc2 TT |
14989 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: On $host_os systems, prefix defaults to /usr" >&5 |
14990 | printf "%s\n" "On $host_os systems, prefix defaults to /usr" >&6; } | |
bff61a7a | 14991 | if test "$mandir" = '${prefix}/man' ; then |
54445dc2 TT |
14992 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ...and mandir defaults to /usr/share/man" >&5 |
14993 | printf "%s\n" "...and mandir defaults to /usr/share/man" >&6; } | |
bff61a7a TT |
14994 | mandir=/usr/share/man |
14995 | fi | |
50e1e10f TT |
14996 | fi |
14997 | ;; | |
14998 | esac | |
a4b2d3ce | 14999 | if test "$root_prefix" = NONE ; then |
ffe1991f | 15000 | if test "$prefix" = NONE ; then |
a4b2d3ce TT |
15001 | root_prefix="$ac_default_prefix" |
15002 | else | |
15003 | root_prefix="$prefix" | |
15004 | fi | |
b5ffeade TT |
15005 | root_bindir=$bindir |
15006 | root_sbindir=$sbindir | |
15007 | root_libdir=$libdir | |
15008 | root_sysconfdir=$sysconfdir | |
15009 | else | |
15010 | root_bindir='${root_prefix}/bin' | |
15011 | root_sbindir='${root_prefix}/sbin' | |
15012 | root_libdir='${root_prefix}/lib' | |
15013 | root_sysconfdir='${root_prefix}/etc' | |
a4b2d3ce | 15014 | fi |
c4ef11c5 TT |
15015 | if test "$bindir" != '${exec_prefix}/bin'; then |
15016 | root_bindir=$bindir | |
54445dc2 TT |
15017 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Setting root_bindir to $root_bindir" >&5 |
15018 | printf "%s\n" "Setting root_bindir to $root_bindir" >&6; } | |
c4ef11c5 TT |
15019 | fi |
15020 | if test "$sbindir" != '${exec_prefix}/sbin'; then | |
15021 | root_sbindir=$sbindir | |
54445dc2 TT |
15022 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Setting root_sbindir to $root_sbindir" >&5 |
15023 | printf "%s\n" "Setting root_sbindir to $root_sbindir" >&6; } | |
c4ef11c5 TT |
15024 | fi |
15025 | if test "$libdir" != '${exec_prefix}/lib'; then | |
15026 | root_libdir=$libdir | |
54445dc2 TT |
15027 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Setting root_libdir to $root_libdir" >&5 |
15028 | printf "%s\n" "Setting root_libdir to $root_libdir" >&6; } | |
c4ef11c5 TT |
15029 | fi |
15030 | if test "$sysconfdir" != '${prefix}/etc'; then | |
15031 | root_sysconfdir=$sysconfdir | |
54445dc2 TT |
15032 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Setting root_sysconfdir to $root_sysconfdir" >&5 |
15033 | printf "%s\n" "Setting root_sysconfdir to $root_sysconfdir" >&6; } | |
c4ef11c5 | 15034 | fi |
a4b2d3ce | 15035 | |
93636bde TT |
15036 | |
15037 | ||
15038 | ||
15039 | ||
55e00a25 TT |
15040 | |
15041 | # Check whether --with-multiarch was given. | |
54445dc2 TT |
15042 | if test ${with_multiarch+y} |
15043 | then : | |
d7fa4103 TT |
15044 | withval=$with_multiarch; if test "$withval" = "lib64"; then |
15045 | libdir=/usr/lib64 | |
15046 | root_libdir=/lib64 | |
15047 | else | |
15048 | libdir=$libdir/$withval | |
15049 | root_libdir=$root_libdir/$withval | |
15050 | fi | |
55e00a25 TT |
15051 | |
15052 | fi | |
a2df5894 | 15053 | |
54445dc2 TT |
15054 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we can link with -static" >&5 |
15055 | printf %s "checking whether we can link with -static... " >&6; } | |
15056 | if test ${ac_cv_e2fsprogs_use_static+y} | |
15057 | then : | |
15058 | printf %s "(cached) " >&6 | |
15059 | else $as_nop | |
fd1677e8 | 15060 | SAVE_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS_STATIC -static" |
57aa50d4 | 15061 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
b0cacab0 | 15062 | /* end confdefs.h. */ |
ae851482 | 15063 | #include <stdio.h> |
b0cacab0 | 15064 | int |
54445dc2 | 15065 | main (void) |
b0cacab0 | 15066 | { |
ae851482 | 15067 | fflush(stdout); |
b0cacab0 TT |
15068 | ; |
15069 | return 0; | |
15070 | } | |
15071 | _ACEOF | |
54445dc2 TT |
15072 | if ac_fn_c_try_link "$LINENO" |
15073 | then : | |
ae851482 | 15074 | ac_cv_e2fsprogs_use_static=yes |
54445dc2 | 15075 | else $as_nop |
57aa50d4 | 15076 | ac_cv_e2fsprogs_use_static=no |
ae851482 | 15077 | fi |
54445dc2 | 15078 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
57aa50d4 | 15079 | conftest$ac_exeext conftest.$ac_ext |
ae851482 TT |
15080 | LDFLAGS=$SAVE_LDFLAGS |
15081 | fi | |
50e1e10f | 15082 | |
defde784 TT |
15083 | case "$host_os" in |
15084 | solaris2.*) | |
b0cacab0 | 15085 | ac_cv_e2fsprogs_use_static=no |
defde784 TT |
15086 | ;; |
15087 | esac | |
54445dc2 TT |
15088 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_e2fsprogs_use_static" >&5 |
15089 | printf "%s\n" "$ac_cv_e2fsprogs_use_static" >&6; } | |
ae851482 | 15090 | if test $ac_cv_e2fsprogs_use_static = yes; then |
fd1677e8 | 15091 | LDFLAGS_STATIC="$LDFLAGS_STATIC -static" |
ae851482 | 15092 | fi |
50e1e10f | 15093 | |
07a0db15 TT |
15094 | case "$host_os" in |
15095 | darwin*) | |
54445dc2 TT |
15096 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Using Apple Darwin / GNU libintl workaround" >&5 |
15097 | printf "%s\n" "Using Apple Darwin / GNU libintl workaround" >&6; } | |
d1154eb4 | 15098 | |
54445dc2 | 15099 | printf "%s\n" "#define _INTL_REDIRECT_MACROS 1" >>confdefs.h |
07a0db15 TT |
15100 | |
15101 | ;; | |
15102 | esac | |
50e1e10f TT |
15103 | if test "$cross_compiling" = yes ; then |
15104 | DO_TEST_SUITE= | |
15105 | else | |
15106 | DO_TEST_SUITE=check | |
15107 | fi | |
15108 | ||
d1154eb4 TT |
15109 | INCLUDES='-I. -I$(top_builddir)/lib -I$(top_srcdir)/lib' |
15110 | if test -n "$CPPFLAGS" ; then | |
15111 | INCLUDES="$INCLUDES $CPPFLAGS" | |
15112 | fi | |
c6f35b8a | 15113 | if test "$USE_INCLUDED_LIBINTL" = "yes" ; then |
d1154eb4 | 15114 | INCLUDES=$INCLUDES' -I$(top_builddir)/intl -I$(top_srcdir)/intl' |
c6f35b8a | 15115 | fi |
6c59a665 TT |
15116 | if test -n "$WITH_DIET_LIBC" ; then |
15117 | INCLUDES="$INCLUDES -D_REENTRANT" | |
15118 | fi | |
6eb00fb7 EB |
15119 | case "$host_os" in |
15120 | mingw*) | |
15121 | INCLUDES=$INCLUDES' -I$(top_srcdir)/include/mingw' | |
15122 | ;; | |
15123 | esac | |
c6f35b8a | 15124 | |
dd947da2 | 15125 | if test $cross_compiling = no; then |
2873927d | 15126 | BUILD_CFLAGS="$CFLAGS $CPPFLAGS $INCLUDES -DHAVE_CONFIG_H" |
dd947da2 | 15127 | BUILD_LDFLAGS="$LDFLAGS" |
dd947da2 TT |
15128 | fi |
15129 | ||
15130 | ||
fd1677e8 TT |
15131 | CFLAGS_SHLIB=${CFLAGS_SHLIB:-$CFLAGS} |
15132 | CFLAGS_STLIB=${CFLAGS_STLIB:-$CFLAGS} | |
15133 | LDFLAGS_SHLIB=${LDFLAGS_SHLIB:-$LDFLAGS} | |
15134 | ||
15135 | ||
15136 | ||
5ce368f0 DW |
15137 | |
15138 | ||
15139 | # Check whether --with-udev_rules_dir was given. | |
54445dc2 TT |
15140 | if test ${with_udev_rules_dir+y} |
15141 | then : | |
5ce368f0 | 15142 | withval=$with_udev_rules_dir; |
54445dc2 | 15143 | else $as_nop |
5ce368f0 DW |
15144 | with_udev_rules_dir=yes |
15145 | fi | |
15146 | ||
54445dc2 TT |
15147 | if test "x${with_udev_rules_dir}" != "xno" |
15148 | then : | |
5ce368f0 | 15149 | |
54445dc2 TT |
15150 | if test "x${with_udev_rules_dir}" = "xyes" |
15151 | then : | |
5ce368f0 DW |
15152 | |
15153 | ||
15154 | pkg_failed=no | |
54445dc2 TT |
15155 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for udev" >&5 |
15156 | printf %s "checking for udev... " >&6; } | |
5ce368f0 DW |
15157 | |
15158 | if test -n "$udev_CFLAGS"; then | |
15159 | pkg_cv_udev_CFLAGS="$udev_CFLAGS" | |
15160 | elif test -n "$PKG_CONFIG"; then | |
15161 | if test -n "$PKG_CONFIG" && \ | |
54445dc2 | 15162 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"udev\""; } >&5 |
5ce368f0 DW |
15163 | ($PKG_CONFIG --exists --print-errors "udev") 2>&5 |
15164 | ac_status=$? | |
54445dc2 | 15165 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
5ce368f0 DW |
15166 | test $ac_status = 0; }; then |
15167 | pkg_cv_udev_CFLAGS=`$PKG_CONFIG --cflags "udev" 2>/dev/null` | |
15168 | test "x$?" != "x0" && pkg_failed=yes | |
15169 | else | |
15170 | pkg_failed=yes | |
15171 | fi | |
15172 | else | |
15173 | pkg_failed=untried | |
15174 | fi | |
15175 | if test -n "$udev_LIBS"; then | |
15176 | pkg_cv_udev_LIBS="$udev_LIBS" | |
15177 | elif test -n "$PKG_CONFIG"; then | |
15178 | if test -n "$PKG_CONFIG" && \ | |
54445dc2 | 15179 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"udev\""; } >&5 |
5ce368f0 DW |
15180 | ($PKG_CONFIG --exists --print-errors "udev") 2>&5 |
15181 | ac_status=$? | |
54445dc2 | 15182 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
5ce368f0 DW |
15183 | test $ac_status = 0; }; then |
15184 | pkg_cv_udev_LIBS=`$PKG_CONFIG --libs "udev" 2>/dev/null` | |
15185 | test "x$?" != "x0" && pkg_failed=yes | |
15186 | else | |
15187 | pkg_failed=yes | |
15188 | fi | |
15189 | else | |
15190 | pkg_failed=untried | |
15191 | fi | |
15192 | ||
15193 | ||
15194 | ||
15195 | if test $pkg_failed = yes; then | |
5598a968 | 15196 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
54445dc2 | 15197 | printf "%s\n" "no" >&6; } |
5ce368f0 DW |
15198 | |
15199 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
15200 | _pkg_short_errors_supported=yes | |
15201 | else | |
15202 | _pkg_short_errors_supported=no | |
15203 | fi | |
15204 | if test $_pkg_short_errors_supported = yes; then | |
5598a968 | 15205 | udev_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "udev" 2>&1` |
5ce368f0 | 15206 | else |
5598a968 | 15207 | udev_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "udev" 2>&1` |
5ce368f0 | 15208 | fi |
5598a968 EB |
15209 | # Put the nasty error message in config.log where it belongs |
15210 | echo "$udev_PKG_ERRORS" >&5 | |
5ce368f0 DW |
15211 | |
15212 | ||
15213 | with_udev_rules_dir="" | |
15214 | ||
15215 | elif test $pkg_failed = untried; then | |
5598a968 | 15216 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
54445dc2 | 15217 | printf "%s\n" "no" >&6; } |
5ce368f0 DW |
15218 | |
15219 | with_udev_rules_dir="" | |
15220 | ||
15221 | else | |
5598a968 EB |
15222 | udev_CFLAGS=$pkg_cv_udev_CFLAGS |
15223 | udev_LIBS=$pkg_cv_udev_LIBS | |
54445dc2 TT |
15224 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
15225 | printf "%s\n" "yes" >&6; } | |
5ce368f0 DW |
15226 | |
15227 | with_udev_rules_dir="$($PKG_CONFIG --variable=udevdir udev)/rules.d" | |
15228 | ||
15229 | fi | |
15230 | ||
15231 | fi | |
54445dc2 TT |
15232 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for udev rules dir" >&5 |
15233 | printf %s "checking for udev rules dir... " >&6; } | |
5ce368f0 | 15234 | pkg_udev_rules_dir="${with_udev_rules_dir}" |
54445dc2 TT |
15235 | if test -n "${pkg_udev_rules_dir}" |
15236 | then : | |
5ce368f0 | 15237 | |
54445dc2 TT |
15238 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${pkg_udev_rules_dir}" >&5 |
15239 | printf "%s\n" "${pkg_udev_rules_dir}" >&6; } | |
5ce368f0 DW |
15240 | have_udev="yes" |
15241 | ||
54445dc2 | 15242 | else $as_nop |
5ce368f0 | 15243 | |
54445dc2 TT |
15244 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
15245 | printf "%s\n" "no" >&6; } | |
5ce368f0 DW |
15246 | have_udev="no" |
15247 | ||
15248 | fi | |
15249 | ||
54445dc2 | 15250 | else $as_nop |
5ce368f0 DW |
15251 | |
15252 | have_udev="disabled" | |
15253 | ||
15254 | fi | |
15255 | ||
15256 | ||
15257 | ||
a2df5894 DW |
15258 | |
15259 | # Check whether --with-crond_dir was given. | |
54445dc2 TT |
15260 | if test ${with_crond_dir+y} |
15261 | then : | |
a2df5894 | 15262 | withval=$with_crond_dir; |
54445dc2 | 15263 | else $as_nop |
a2df5894 DW |
15264 | with_crond_dir=yes |
15265 | fi | |
15266 | ||
54445dc2 TT |
15267 | if test "x${with_crond_dir}" != "xno" |
15268 | then : | |
a2df5894 | 15269 | |
54445dc2 TT |
15270 | if test "x${with_crond_dir}" = "xyes" |
15271 | then : | |
a2df5894 | 15272 | |
54445dc2 TT |
15273 | if test -d "/etc/cron.d" |
15274 | then : | |
a2df5894 | 15275 | with_crond_dir="/etc/cron.d" |
54445dc2 | 15276 | else $as_nop |
188bf39a | 15277 | have_crond="no"; with_crond_dir="" |
a2df5894 DW |
15278 | fi |
15279 | ||
15280 | fi | |
54445dc2 TT |
15281 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for system crontab dir" >&5 |
15282 | printf %s "checking for system crontab dir... " >&6; } | |
a2df5894 | 15283 | crond_dir="${with_crond_dir}" |
54445dc2 TT |
15284 | if test -n "${crond_dir}" |
15285 | then : | |
a2df5894 | 15286 | |
54445dc2 TT |
15287 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${crond_dir}" >&5 |
15288 | printf "%s\n" "${crond_dir}" >&6; } | |
a2df5894 DW |
15289 | have_crond="yes" |
15290 | ||
54445dc2 | 15291 | else $as_nop |
a2df5894 | 15292 | |
54445dc2 TT |
15293 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
15294 | printf "%s\n" "no" >&6; } | |
a2df5894 DW |
15295 | have_crond="no" |
15296 | ||
15297 | fi | |
15298 | ||
54445dc2 | 15299 | else $as_nop |
a2df5894 DW |
15300 | |
15301 | have_crond="disabled" | |
15302 | ||
15303 | fi | |
15304 | ||
15305 | ||
15306 | ||
15307 | ||
15308 | # Check whether --with-systemd_unit_dir was given. | |
54445dc2 TT |
15309 | if test ${with_systemd_unit_dir+y} |
15310 | then : | |
a2df5894 | 15311 | withval=$with_systemd_unit_dir; |
54445dc2 | 15312 | else $as_nop |
a2df5894 DW |
15313 | with_systemd_unit_dir=yes |
15314 | fi | |
15315 | ||
54445dc2 TT |
15316 | if test "x${with_systemd_unit_dir}" != "xno" |
15317 | then : | |
a2df5894 | 15318 | |
54445dc2 TT |
15319 | if test "x${with_systemd_unit_dir}" = "xyes" |
15320 | then : | |
a2df5894 DW |
15321 | |
15322 | ||
15323 | pkg_failed=no | |
54445dc2 TT |
15324 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for systemd" >&5 |
15325 | printf %s "checking for systemd... " >&6; } | |
a2df5894 DW |
15326 | |
15327 | if test -n "$systemd_CFLAGS"; then | |
15328 | pkg_cv_systemd_CFLAGS="$systemd_CFLAGS" | |
15329 | elif test -n "$PKG_CONFIG"; then | |
15330 | if test -n "$PKG_CONFIG" && \ | |
54445dc2 | 15331 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"systemd\""; } >&5 |
a2df5894 DW |
15332 | ($PKG_CONFIG --exists --print-errors "systemd") 2>&5 |
15333 | ac_status=$? | |
54445dc2 | 15334 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
a2df5894 DW |
15335 | test $ac_status = 0; }; then |
15336 | pkg_cv_systemd_CFLAGS=`$PKG_CONFIG --cflags "systemd" 2>/dev/null` | |
15337 | test "x$?" != "x0" && pkg_failed=yes | |
15338 | else | |
15339 | pkg_failed=yes | |
15340 | fi | |
15341 | else | |
15342 | pkg_failed=untried | |
15343 | fi | |
15344 | if test -n "$systemd_LIBS"; then | |
15345 | pkg_cv_systemd_LIBS="$systemd_LIBS" | |
15346 | elif test -n "$PKG_CONFIG"; then | |
15347 | if test -n "$PKG_CONFIG" && \ | |
54445dc2 | 15348 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"systemd\""; } >&5 |
a2df5894 DW |
15349 | ($PKG_CONFIG --exists --print-errors "systemd") 2>&5 |
15350 | ac_status=$? | |
54445dc2 | 15351 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
a2df5894 DW |
15352 | test $ac_status = 0; }; then |
15353 | pkg_cv_systemd_LIBS=`$PKG_CONFIG --libs "systemd" 2>/dev/null` | |
15354 | test "x$?" != "x0" && pkg_failed=yes | |
15355 | else | |
15356 | pkg_failed=yes | |
15357 | fi | |
15358 | else | |
15359 | pkg_failed=untried | |
15360 | fi | |
15361 | ||
15362 | ||
15363 | ||
15364 | if test $pkg_failed = yes; then | |
5598a968 | 15365 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
54445dc2 | 15366 | printf "%s\n" "no" >&6; } |
a2df5894 DW |
15367 | |
15368 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
15369 | _pkg_short_errors_supported=yes | |
15370 | else | |
15371 | _pkg_short_errors_supported=no | |
15372 | fi | |
15373 | if test $_pkg_short_errors_supported = yes; then | |
5598a968 | 15374 | systemd_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "systemd" 2>&1` |
a2df5894 | 15375 | else |
5598a968 | 15376 | systemd_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "systemd" 2>&1` |
a2df5894 | 15377 | fi |
5598a968 EB |
15378 | # Put the nasty error message in config.log where it belongs |
15379 | echo "$systemd_PKG_ERRORS" >&5 | |
a2df5894 DW |
15380 | |
15381 | ||
15382 | with_systemd_unit_dir="" | |
15383 | ||
15384 | elif test $pkg_failed = untried; then | |
5598a968 | 15385 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
54445dc2 | 15386 | printf "%s\n" "no" >&6; } |
a2df5894 DW |
15387 | |
15388 | with_systemd_unit_dir="" | |
15389 | ||
15390 | else | |
5598a968 EB |
15391 | systemd_CFLAGS=$pkg_cv_systemd_CFLAGS |
15392 | systemd_LIBS=$pkg_cv_systemd_LIBS | |
54445dc2 TT |
15393 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
15394 | printf "%s\n" "yes" >&6; } | |
a2df5894 DW |
15395 | |
15396 | with_systemd_unit_dir="$($PKG_CONFIG --variable=systemdsystemunitdir systemd)" | |
15397 | ||
15398 | fi | |
15399 | ||
15400 | ||
15401 | fi | |
54445dc2 TT |
15402 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for systemd system unit dir" >&5 |
15403 | printf %s "checking for systemd system unit dir... " >&6; } | |
a2df5894 | 15404 | systemd_system_unit_dir="${with_systemd_unit_dir}" |
54445dc2 TT |
15405 | if test -n "${systemd_system_unit_dir}" |
15406 | then : | |
a2df5894 | 15407 | |
54445dc2 TT |
15408 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${systemd_system_unit_dir}" >&5 |
15409 | printf "%s\n" "${systemd_system_unit_dir}" >&6; } | |
a2df5894 DW |
15410 | have_systemd="yes" |
15411 | ||
54445dc2 | 15412 | else $as_nop |
a2df5894 | 15413 | |
54445dc2 TT |
15414 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
15415 | printf "%s\n" "no" >&6; } | |
a2df5894 DW |
15416 | have_systemd="no" |
15417 | ||
15418 | fi | |
15419 | ||
54445dc2 | 15420 | else $as_nop |
a2df5894 DW |
15421 | |
15422 | have_systemd="disabled" | |
15423 | ||
15424 | fi | |
15425 | ||
15426 | ||
d1d44c14 PAA |
15427 | OS_IO_FILE="" |
15428 | case "$host_os" in | |
6eb00fb7 | 15429 | mingw*) |
d1d44c14 PAA |
15430 | OS_IO_FILE=windows_io |
15431 | ;; | |
15432 | *) | |
15433 | OS_IO_FILE=unix_io | |
15434 | ;; | |
15435 | esac | |
a2df5894 | 15436 | |
a22e7f16 KR |
15437 | |
15438 | # Check whether --enable-largefile was given. | |
15439 | if test ${enable_largefile+y} | |
15440 | then : | |
15441 | enableval=$enable_largefile; | |
15442 | fi | |
15443 | ||
15444 | if test "$enable_largefile" != no; then | |
15445 | ||
15446 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 | |
15447 | printf %s "checking for special C compiler options needed for large files... " >&6; } | |
15448 | if test ${ac_cv_sys_largefile_CC+y} | |
15449 | then : | |
15450 | printf %s "(cached) " >&6 | |
15451 | else $as_nop | |
15452 | ac_cv_sys_largefile_CC=no | |
15453 | if test "$GCC" != yes; then | |
15454 | ac_save_CC=$CC | |
15455 | while :; do | |
15456 | # IRIX 6.2 and later do not support large files by default, | |
15457 | # so use the C compiler's -n32 option if that helps. | |
15458 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15459 | /* end confdefs.h. */ | |
15460 | #include <sys/types.h> | |
15461 | /* Check that off_t can represent 2**63 - 1 correctly. | |
15462 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
15463 | since some C++ compilers masquerading as C compilers | |
15464 | incorrectly reject 9223372036854775807. */ | |
15465 | #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31)) | |
15466 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
15467 | && LARGE_OFF_T % 2147483647 == 1) | |
15468 | ? 1 : -1]; | |
15469 | int | |
15470 | main (void) | |
15471 | { | |
15472 | ||
15473 | ; | |
15474 | return 0; | |
15475 | } | |
15476 | _ACEOF | |
15477 | if ac_fn_c_try_compile "$LINENO" | |
15478 | then : | |
15479 | break | |
15480 | fi | |
15481 | rm -f core conftest.err conftest.$ac_objext conftest.beam | |
15482 | CC="$CC -n32" | |
15483 | if ac_fn_c_try_compile "$LINENO" | |
15484 | then : | |
15485 | ac_cv_sys_largefile_CC=' -n32'; break | |
15486 | fi | |
15487 | rm -f core conftest.err conftest.$ac_objext conftest.beam | |
15488 | break | |
15489 | done | |
15490 | CC=$ac_save_CC | |
15491 | rm -f conftest.$ac_ext | |
15492 | fi | |
15493 | fi | |
15494 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 | |
15495 | printf "%s\n" "$ac_cv_sys_largefile_CC" >&6; } | |
15496 | if test "$ac_cv_sys_largefile_CC" != no; then | |
15497 | CC=$CC$ac_cv_sys_largefile_CC | |
15498 | fi | |
15499 | ||
15500 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 | |
15501 | printf %s "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } | |
15502 | if test ${ac_cv_sys_file_offset_bits+y} | |
15503 | then : | |
15504 | printf %s "(cached) " >&6 | |
15505 | else $as_nop | |
15506 | while :; do | |
15507 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15508 | /* end confdefs.h. */ | |
15509 | #include <sys/types.h> | |
15510 | /* Check that off_t can represent 2**63 - 1 correctly. | |
15511 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
15512 | since some C++ compilers masquerading as C compilers | |
15513 | incorrectly reject 9223372036854775807. */ | |
15514 | #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31)) | |
15515 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
15516 | && LARGE_OFF_T % 2147483647 == 1) | |
15517 | ? 1 : -1]; | |
15518 | int | |
15519 | main (void) | |
15520 | { | |
15521 | ||
15522 | ; | |
15523 | return 0; | |
15524 | } | |
15525 | _ACEOF | |
15526 | if ac_fn_c_try_compile "$LINENO" | |
15527 | then : | |
15528 | ac_cv_sys_file_offset_bits=no; break | |
15529 | fi | |
15530 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext | |
15531 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15532 | /* end confdefs.h. */ | |
15533 | #define _FILE_OFFSET_BITS 64 | |
15534 | #include <sys/types.h> | |
15535 | /* Check that off_t can represent 2**63 - 1 correctly. | |
15536 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
15537 | since some C++ compilers masquerading as C compilers | |
15538 | incorrectly reject 9223372036854775807. */ | |
15539 | #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31)) | |
15540 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
15541 | && LARGE_OFF_T % 2147483647 == 1) | |
15542 | ? 1 : -1]; | |
15543 | int | |
15544 | main (void) | |
15545 | { | |
15546 | ||
15547 | ; | |
15548 | return 0; | |
15549 | } | |
15550 | _ACEOF | |
15551 | if ac_fn_c_try_compile "$LINENO" | |
15552 | then : | |
15553 | ac_cv_sys_file_offset_bits=64; break | |
15554 | fi | |
15555 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext | |
15556 | ac_cv_sys_file_offset_bits=unknown | |
15557 | break | |
15558 | done | |
15559 | fi | |
15560 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 | |
15561 | printf "%s\n" "$ac_cv_sys_file_offset_bits" >&6; } | |
15562 | case $ac_cv_sys_file_offset_bits in #( | |
15563 | no | unknown) ;; | |
15564 | *) | |
15565 | printf "%s\n" "#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits" >>confdefs.h | |
15566 | ;; | |
15567 | esac | |
15568 | rm -rf conftest* | |
15569 | if test $ac_cv_sys_file_offset_bits = unknown; then | |
15570 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 | |
15571 | printf %s "checking for _LARGE_FILES value needed for large files... " >&6; } | |
15572 | if test ${ac_cv_sys_large_files+y} | |
15573 | then : | |
15574 | printf %s "(cached) " >&6 | |
15575 | else $as_nop | |
15576 | while :; do | |
15577 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15578 | /* end confdefs.h. */ | |
15579 | #include <sys/types.h> | |
15580 | /* Check that off_t can represent 2**63 - 1 correctly. | |
15581 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
15582 | since some C++ compilers masquerading as C compilers | |
15583 | incorrectly reject 9223372036854775807. */ | |
15584 | #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31)) | |
15585 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
15586 | && LARGE_OFF_T % 2147483647 == 1) | |
15587 | ? 1 : -1]; | |
15588 | int | |
15589 | main (void) | |
15590 | { | |
15591 | ||
15592 | ; | |
15593 | return 0; | |
15594 | } | |
15595 | _ACEOF | |
15596 | if ac_fn_c_try_compile "$LINENO" | |
15597 | then : | |
15598 | ac_cv_sys_large_files=no; break | |
15599 | fi | |
15600 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext | |
15601 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15602 | /* end confdefs.h. */ | |
15603 | #define _LARGE_FILES 1 | |
15604 | #include <sys/types.h> | |
15605 | /* Check that off_t can represent 2**63 - 1 correctly. | |
15606 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
15607 | since some C++ compilers masquerading as C compilers | |
15608 | incorrectly reject 9223372036854775807. */ | |
15609 | #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31)) | |
15610 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
15611 | && LARGE_OFF_T % 2147483647 == 1) | |
15612 | ? 1 : -1]; | |
15613 | int | |
15614 | main (void) | |
15615 | { | |
15616 | ||
15617 | ; | |
15618 | return 0; | |
15619 | } | |
15620 | _ACEOF | |
15621 | if ac_fn_c_try_compile "$LINENO" | |
15622 | then : | |
15623 | ac_cv_sys_large_files=1; break | |
15624 | fi | |
15625 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext | |
15626 | ac_cv_sys_large_files=unknown | |
15627 | break | |
15628 | done | |
15629 | fi | |
15630 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 | |
15631 | printf "%s\n" "$ac_cv_sys_large_files" >&6; } | |
15632 | case $ac_cv_sys_large_files in #( | |
15633 | no | unknown) ;; | |
15634 | *) | |
15635 | printf "%s\n" "#define _LARGE_FILES $ac_cv_sys_large_files" >>confdefs.h | |
15636 | ;; | |
15637 | esac | |
15638 | rm -rf conftest* | |
15639 | fi | |
15640 | fi | |
15641 | ||
15642 | ||
50e1e10f TT |
15643 | test -d lib || mkdir lib |
15644 | test -d include || mkdir include | |
15645 | test -d include/linux || mkdir include/linux | |
defde784 | 15646 | test -d include/asm || mkdir include/asm |
44dfb378 TT |
15647 | if test -z "$UUID_CMT" ; then |
15648 | uuid_out_list="lib/uuid/Makefile lib/uuid/uuid.pc \ | |
15649 | lib/uuid/uuid_types.h" | |
15650 | fi | |
15651 | if test -z "$BLKID_CMT" ; then | |
15652 | blkid_out_list="lib/blkid/Makefile lib/blkid/blkid.pc \ | |
15653 | lib/blkid/blkid_types.h" | |
15654 | fi | |
e5f0f3ee | 15655 | for i in MCONFIG Makefile \ |
183c73b0 | 15656 | util/Makefile util/subst.conf util/gen-tarball util/install-symlink \ |
4ea7ea00 TT |
15657 | lib/et/Makefile lib/ss/Makefile lib/e2p/Makefile \ |
15658 | lib/ext2fs/Makefile lib/ext2fs/ext2_types.h \ | |
f34af41b | 15659 | $uuid_out_list $blkid_out_list lib/support/Makefile \ |
44dfb378 | 15660 | lib/ss/ss.pc lib/et/com_err.pc lib/e2p/e2p.pc lib/ext2fs/ext2fs.pc \ |
921f4ad5 | 15661 | misc/Makefile ext2ed/Makefile e2fsck/Makefile \ |
94ba8c75 | 15662 | debugfs/Makefile tests/Makefile tests/progs/Makefile \ |
2869485b TT |
15663 | tests/fuzz/Makefile resize/Makefile doc/Makefile \ |
15664 | po/Makefile.in scrub/Makefile; do | |
94ba8c75 TT |
15665 | if test -d `dirname ${srcdir}/$i` ; then |
15666 | outlist="$outlist $i" | |
15667 | fi | |
15668 | done | |
e1052144 TT |
15669 | ac_config_files="$ac_config_files $outlist" |
15670 | ||
b0cacab0 | 15671 | cat >confcache <<\_ACEOF |
50e1e10f TT |
15672 | # This file is a shell script that caches the results of configure |
15673 | # tests run on this system so they can be shared between configure | |
b0cacab0 TT |
15674 | # scripts and configure runs, see configure's option --config-cache. |
15675 | # It is not useful on other systems. If it contains results you don't | |
15676 | # want to keep, you may remove or edit it. | |
50e1e10f | 15677 | # |
b0cacab0 TT |
15678 | # config.status only pays attention to the cache file if you give it |
15679 | # the --recheck option to rerun configure. | |
50e1e10f | 15680 | # |
b0cacab0 TT |
15681 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
15682 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
15683 | # following values. | |
15684 | ||
15685 | _ACEOF | |
15686 | ||
21c84b71 TT |
15687 | # The following way of writing the cache mishandles newlines in values, |
15688 | # but we know of no workaround that is simple, portable, and efficient. | |
e1052144 | 15689 | # So, we kill variables containing newlines. |
50e1e10f TT |
15690 | # Ultrix sh set writes to stderr and can't be redirected directly, |
15691 | # and sets the high bit in the cache file unless we assign to the vars. | |
e1052144 TT |
15692 | ( |
15693 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
15694 | eval ac_val=\$$ac_var | |
15695 | case $ac_val in #( | |
15696 | *${as_nl}*) | |
15697 | case $ac_var in #( | |
54445dc2 TT |
15698 | *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
15699 | printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
e1052144 TT |
15700 | esac |
15701 | case $ac_var in #( | |
15702 | _ | IFS | as_nl) ;; #( | |
39fd3d4f | 15703 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
57aa50d4 | 15704 | *) { eval $ac_var=; unset $ac_var;} ;; |
e1052144 TT |
15705 | esac ;; |
15706 | esac | |
15707 | done | |
15708 | ||
b0cacab0 | 15709 | (set) 2>&1 | |
e1052144 TT |
15710 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
15711 | *${as_nl}ac_space=\ *) | |
57aa50d4 TT |
15712 | # `set' does not quote correctly, so add quotes: double-quote |
15713 | # substitution turns \\\\ into \\, and sed turns \\ into \. | |
b0cacab0 TT |
15714 | sed -n \ |
15715 | "s/'/'\\\\''/g; | |
15716 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
e1052144 | 15717 | ;; #( |
b0cacab0 TT |
15718 | *) |
15719 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
e1052144 | 15720 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
b0cacab0 | 15721 | ;; |
e1052144 TT |
15722 | esac | |
15723 | sort | |
15724 | ) | | |
b0cacab0 | 15725 | sed ' |
e1052144 | 15726 | /^ac_cv_env_/b end |
b0cacab0 | 15727 | t clear |
e1052144 | 15728 | :clear |
54445dc2 | 15729 | s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/ |
b0cacab0 | 15730 | t end |
e1052144 TT |
15731 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
15732 | :end' >>confcache | |
15733 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
15734 | if test -w "$cache_file"; then | |
d6a4bcb5 | 15735 | if test "x$cache_file" != "x/dev/null"; then |
54445dc2 TT |
15736 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
15737 | printf "%s\n" "$as_me: updating cache $cache_file" >&6;} | |
d6a4bcb5 TB |
15738 | if test ! -f "$cache_file" || test -h "$cache_file"; then |
15739 | cat confcache >"$cache_file" | |
15740 | else | |
15741 | case $cache_file in #( | |
15742 | */* | ?:*) | |
15743 | mv -f confcache "$cache_file"$$ && | |
15744 | mv -f "$cache_file"$$ "$cache_file" ;; #( | |
15745 | *) | |
15746 | mv -f confcache "$cache_file" ;; | |
15747 | esac | |
15748 | fi | |
15749 | fi | |
50e1e10f | 15750 | else |
54445dc2 TT |
15751 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
15752 | printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;} | |
50e1e10f TT |
15753 | fi |
15754 | fi | |
15755 | rm -f confcache | |
15756 | ||
50e1e10f TT |
15757 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
15758 | # Let make expand exec_prefix. | |
15759 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
15760 | ||
d1154eb4 | 15761 | DEFS=-DHAVE_CONFIG_H |
b0cacab0 TT |
15762 | |
15763 | ac_libobjs= | |
15764 | ac_ltlibobjs= | |
d6a4bcb5 | 15765 | U= |
b0cacab0 TT |
15766 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
15767 | # 1. Remove the extension, and $U if already installed. | |
e1052144 | 15768 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
54445dc2 | 15769 | ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"` |
e1052144 TT |
15770 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
15771 | # will be set to the directory where LIBOBJS objects are built. | |
57aa50d4 TT |
15772 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
15773 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' | |
b0cacab0 TT |
15774 | done |
15775 | LIBOBJS=$ac_libobjs | |
50e1e10f | 15776 | |
b0cacab0 TT |
15777 | LTLIBOBJS=$ac_ltlibobjs |
15778 | ||
15779 | ||
15780 | ||
39fd3d4f | 15781 | |
d6a4bcb5 | 15782 | : "${CONFIG_STATUS=./config.status}" |
39fd3d4f | 15783 | ac_write_fail=0 |
b0cacab0 TT |
15784 | ac_clean_files_save=$ac_clean_files |
15785 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
54445dc2 TT |
15786 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
15787 | printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;} | |
57aa50d4 TT |
15788 | as_write_fail=0 |
15789 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 | |
b0cacab0 TT |
15790 | #! $SHELL |
15791 | # Generated by $as_me. | |
93636bde | 15792 | # Run this file to recreate the current configuration. |
93636bde | 15793 | # Compiler output produced by configure, useful for debugging |
b0cacab0 | 15794 | # configure, is in config.log if it exists. |
07a0db15 | 15795 | |
b0cacab0 TT |
15796 | debug=false |
15797 | ac_cs_recheck=false | |
15798 | ac_cs_silent=false | |
b0cacab0 | 15799 | |
57aa50d4 TT |
15800 | SHELL=\${CONFIG_SHELL-$SHELL} |
15801 | export SHELL | |
15802 | _ASEOF | |
15803 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 | |
15804 | ## -------------------- ## | |
15805 | ## M4sh Initialization. ## | |
15806 | ## -------------------- ## | |
b0cacab0 | 15807 | |
29a5deed TT |
15808 | # Be more Bourne compatible |
15809 | DUALCASE=1; export DUALCASE # for MKS sh | |
54445dc2 TT |
15810 | as_nop=: |
15811 | if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 | |
15812 | then : | |
b0cacab0 TT |
15813 | emulate sh |
15814 | NULLCMD=: | |
39fd3d4f | 15815 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
b0cacab0 TT |
15816 | # is contrary to our usage. Disable this feature. |
15817 | alias -g '${1+"$@"}'='"$@"' | |
e1052144 | 15818 | setopt NO_GLOB_SUBST |
54445dc2 | 15819 | else $as_nop |
57aa50d4 TT |
15820 | case `(set -o) 2>/dev/null` in #( |
15821 | *posix*) : | |
15822 | set -o posix ;; #( | |
15823 | *) : | |
15824 | ;; | |
29a5deed | 15825 | esac |
b0cacab0 | 15826 | fi |
29a5deed TT |
15827 | |
15828 | ||
54445dc2 TT |
15829 | |
15830 | # Reset variables that may have inherited troublesome values from | |
15831 | # the environment. | |
15832 | ||
15833 | # IFS needs to be set, to space, tab, and newline, in precisely that order. | |
15834 | # (If _AS_PATH_WALK were called with IFS unset, it would have the | |
15835 | # side effect of setting IFS to empty, thus disabling word splitting.) | |
15836 | # Quoting is to prevent editors from complaining about space-tab. | |
39fd3d4f SJR |
15837 | as_nl=' |
15838 | ' | |
15839 | export as_nl | |
54445dc2 TT |
15840 | IFS=" "" $as_nl" |
15841 | ||
15842 | PS1='$ ' | |
15843 | PS2='> ' | |
15844 | PS4='+ ' | |
15845 | ||
15846 | # Ensure predictable behavior from utilities with locale-dependent output. | |
15847 | LC_ALL=C | |
15848 | export LC_ALL | |
15849 | LANGUAGE=C | |
15850 | export LANGUAGE | |
15851 | ||
15852 | # We cannot yet rely on "unset" to work, but we need these variables | |
15853 | # to be unset--not just set to an empty or harmless value--now, to | |
15854 | # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct | |
15855 | # also avoids known problems related to "unset" and subshell syntax | |
15856 | # in other old shells (e.g. bash 2.01 and pdksh 5.2.14). | |
15857 | for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH | |
15858 | do eval test \${$as_var+y} \ | |
15859 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
15860 | done | |
15861 | ||
15862 | # Ensure that fds 0, 1, and 2 are open. | |
15863 | if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi | |
15864 | if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi | |
15865 | if (exec 3>&2) ; then :; else exec 2>/dev/null; fi | |
39fd3d4f SJR |
15866 | |
15867 | # The user is always right. | |
54445dc2 | 15868 | if ${PATH_SEPARATOR+false} :; then |
39fd3d4f SJR |
15869 | PATH_SEPARATOR=: |
15870 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
15871 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
15872 | PATH_SEPARATOR=';' | |
15873 | } | |
e1052144 TT |
15874 | fi |
15875 | ||
b0cacab0 | 15876 | |
e1052144 | 15877 | # Find who we are. Look in the path if we contain no directory separator. |
d6a4bcb5 | 15878 | as_myself= |
57aa50d4 | 15879 | case $0 in #(( |
e1052144 TT |
15880 | *[\\/]* ) as_myself=$0 ;; |
15881 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
15882 | for as_dir in $PATH | |
15883 | do | |
15884 | IFS=$as_save_IFS | |
54445dc2 TT |
15885 | case $as_dir in #((( |
15886 | '') as_dir=./ ;; | |
15887 | */) ;; | |
15888 | *) as_dir=$as_dir/ ;; | |
15889 | esac | |
15890 | test -r "$as_dir$0" && as_myself=$as_dir$0 && break | |
57aa50d4 | 15891 | done |
e1052144 TT |
15892 | IFS=$as_save_IFS |
15893 | ||
15894 | ;; | |
15895 | esac | |
15896 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
15897 | # in which case we are not to be found in the path. | |
15898 | if test "x$as_myself" = x; then | |
15899 | as_myself=$0 | |
15900 | fi | |
15901 | if test ! -f "$as_myself"; then | |
54445dc2 | 15902 | printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
57aa50d4 | 15903 | exit 1 |
e1052144 TT |
15904 | fi |
15905 | ||
57aa50d4 TT |
15906 | |
15907 | ||
d6a4bcb5 TB |
15908 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
15909 | # ---------------------------------------- | |
57aa50d4 TT |
15910 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
15911 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
d6a4bcb5 | 15912 | # script with STATUS, using 1 if that was 0. |
57aa50d4 TT |
15913 | as_fn_error () |
15914 | { | |
d6a4bcb5 TB |
15915 | as_status=$1; test $as_status -eq 0 && as_status=1 |
15916 | if test "$4"; then | |
15917 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
54445dc2 | 15918 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 |
57aa50d4 | 15919 | fi |
54445dc2 | 15920 | printf "%s\n" "$as_me: error: $2" >&2 |
57aa50d4 TT |
15921 | as_fn_exit $as_status |
15922 | } # as_fn_error | |
15923 | ||
15924 | ||
54445dc2 | 15925 | |
57aa50d4 TT |
15926 | # as_fn_set_status STATUS |
15927 | # ----------------------- | |
15928 | # Set $? to STATUS, without forking. | |
15929 | as_fn_set_status () | |
15930 | { | |
15931 | return $1 | |
15932 | } # as_fn_set_status | |
15933 | ||
15934 | # as_fn_exit STATUS | |
15935 | # ----------------- | |
15936 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
15937 | as_fn_exit () | |
15938 | { | |
15939 | set +e | |
15940 | as_fn_set_status $1 | |
15941 | exit $1 | |
15942 | } # as_fn_exit | |
15943 | ||
15944 | # as_fn_unset VAR | |
15945 | # --------------- | |
15946 | # Portably unset VAR. | |
15947 | as_fn_unset () | |
15948 | { | |
15949 | { eval $1=; unset $1;} | |
15950 | } | |
15951 | as_unset=as_fn_unset | |
54445dc2 | 15952 | |
57aa50d4 TT |
15953 | # as_fn_append VAR VALUE |
15954 | # ---------------------- | |
15955 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
15956 | # advantage of any shell optimizations that allow amortized linear growth over | |
15957 | # repeated appends, instead of the typical quadratic growth present in naive | |
15958 | # implementations. | |
54445dc2 TT |
15959 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null |
15960 | then : | |
57aa50d4 TT |
15961 | eval 'as_fn_append () |
15962 | { | |
15963 | eval $1+=\$2 | |
15964 | }' | |
54445dc2 | 15965 | else $as_nop |
57aa50d4 TT |
15966 | as_fn_append () |
15967 | { | |
15968 | eval $1=\$$1\$2 | |
15969 | } | |
15970 | fi # as_fn_append | |
15971 | ||
15972 | # as_fn_arith ARG... | |
15973 | # ------------------ | |
15974 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
15975 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
15976 | # must be portable across $(()) and expr. | |
54445dc2 TT |
15977 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null |
15978 | then : | |
57aa50d4 TT |
15979 | eval 'as_fn_arith () |
15980 | { | |
15981 | as_val=$(( $* )) | |
15982 | }' | |
54445dc2 | 15983 | else $as_nop |
57aa50d4 TT |
15984 | as_fn_arith () |
15985 | { | |
15986 | as_val=`expr "$@" || test $? -eq 1` | |
15987 | } | |
15988 | fi # as_fn_arith | |
15989 | ||
15990 | ||
e1052144 TT |
15991 | if expr a : '\(a\)' >/dev/null 2>&1 && |
15992 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
b0cacab0 TT |
15993 | as_expr=expr |
15994 | else | |
15995 | as_expr=false | |
15996 | fi | |
15997 | ||
e1052144 | 15998 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
b0cacab0 TT |
15999 | as_basename=basename |
16000 | else | |
16001 | as_basename=false | |
16002 | fi | |
16003 | ||
57aa50d4 TT |
16004 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
16005 | as_dirname=dirname | |
16006 | else | |
16007 | as_dirname=false | |
16008 | fi | |
b0cacab0 | 16009 | |
e1052144 | 16010 | as_me=`$as_basename -- "$0" || |
b0cacab0 TT |
16011 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
16012 | X"$0" : 'X\(//\)$' \| \ | |
e1052144 | 16013 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
54445dc2 | 16014 | printf "%s\n" X/"$0" | |
e1052144 TT |
16015 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
16016 | s//\1/ | |
16017 | q | |
16018 | } | |
16019 | /^X\/\(\/\/\)$/{ | |
16020 | s//\1/ | |
16021 | q | |
16022 | } | |
16023 | /^X\/\(\/\).*/{ | |
16024 | s//\1/ | |
16025 | q | |
16026 | } | |
16027 | s/.*/./; q'` | |
b0cacab0 | 16028 | |
57aa50d4 TT |
16029 | # Avoid depending upon Character Ranges. |
16030 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
16031 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
16032 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
16033 | as_cr_digits='0123456789' | |
16034 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
e1052144 | 16035 | |
54445dc2 TT |
16036 | |
16037 | # Determine whether it's possible to make 'echo' print without a newline. | |
16038 | # These variables are no longer used directly by Autoconf, but are AC_SUBSTed | |
16039 | # for compatibility with existing Makefiles. | |
e1052144 | 16040 | ECHO_C= ECHO_N= ECHO_T= |
57aa50d4 | 16041 | case `echo -n x` in #((((( |
e1052144 | 16042 | -n*) |
57aa50d4 | 16043 | case `echo 'xy\c'` in |
e1052144 | 16044 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
57aa50d4 TT |
16045 | xy) ECHO_C='\c';; |
16046 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
16047 | ECHO_T=' ';; | |
e1052144 TT |
16048 | esac;; |
16049 | *) | |
16050 | ECHO_N='-n';; | |
b0cacab0 | 16051 | esac |
b0cacab0 | 16052 | |
54445dc2 TT |
16053 | # For backward compatibility with old third-party macros, we provide |
16054 | # the shell variables $as_echo and $as_echo_n. New code should use | |
16055 | # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. | |
16056 | as_echo='printf %s\n' | |
16057 | as_echo_n='printf %s' | |
16058 | ||
b0cacab0 | 16059 | rm -f conf$$ conf$$.exe conf$$.file |
e1052144 TT |
16060 | if test -d conf$$.dir; then |
16061 | rm -f conf$$.dir/conf$$.file | |
16062 | else | |
16063 | rm -f conf$$.dir | |
39fd3d4f SJR |
16064 | mkdir conf$$.dir 2>/dev/null |
16065 | fi | |
16066 | if (echo >conf$$.file) 2>/dev/null; then | |
16067 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
16068 | as_ln_s='ln -s' | |
16069 | # ... but there are two gotchas: | |
16070 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
16071 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
d6a4bcb5 | 16072 | # In both cases, we have to default to `cp -pR'. |
39fd3d4f | 16073 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
d6a4bcb5 | 16074 | as_ln_s='cp -pR' |
39fd3d4f SJR |
16075 | elif ln conf$$.file conf$$ 2>/dev/null; then |
16076 | as_ln_s=ln | |
16077 | else | |
d6a4bcb5 | 16078 | as_ln_s='cp -pR' |
39fd3d4f | 16079 | fi |
b0cacab0 | 16080 | else |
d6a4bcb5 | 16081 | as_ln_s='cp -pR' |
b0cacab0 | 16082 | fi |
e1052144 TT |
16083 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
16084 | rmdir conf$$.dir 2>/dev/null | |
b0cacab0 | 16085 | |
57aa50d4 TT |
16086 | |
16087 | # as_fn_mkdir_p | |
16088 | # ------------- | |
16089 | # Create "$as_dir" as a directory, including parents if necessary. | |
16090 | as_fn_mkdir_p () | |
16091 | { | |
16092 | ||
16093 | case $as_dir in #( | |
16094 | -*) as_dir=./$as_dir;; | |
16095 | esac | |
16096 | test -d "$as_dir" || eval $as_mkdir_p || { | |
16097 | as_dirs= | |
16098 | while :; do | |
16099 | case $as_dir in #( | |
54445dc2 | 16100 | *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
57aa50d4 TT |
16101 | *) as_qdir=$as_dir;; |
16102 | esac | |
16103 | as_dirs="'$as_qdir' $as_dirs" | |
16104 | as_dir=`$as_dirname -- "$as_dir" || | |
16105 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
16106 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
16107 | X"$as_dir" : 'X\(//\)$' \| \ | |
16108 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
54445dc2 | 16109 | printf "%s\n" X"$as_dir" | |
57aa50d4 TT |
16110 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
16111 | s//\1/ | |
16112 | q | |
16113 | } | |
16114 | /^X\(\/\/\)[^/].*/{ | |
16115 | s//\1/ | |
16116 | q | |
16117 | } | |
16118 | /^X\(\/\/\)$/{ | |
16119 | s//\1/ | |
16120 | q | |
16121 | } | |
16122 | /^X\(\/\).*/{ | |
16123 | s//\1/ | |
16124 | q | |
16125 | } | |
16126 | s/.*/./; q'` | |
16127 | test -d "$as_dir" && break | |
16128 | done | |
16129 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
d6a4bcb5 | 16130 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
57aa50d4 TT |
16131 | |
16132 | ||
16133 | } # as_fn_mkdir_p | |
b0cacab0 | 16134 | if mkdir -p . 2>/dev/null; then |
57aa50d4 | 16135 | as_mkdir_p='mkdir -p "$as_dir"' |
b0cacab0 TT |
16136 | else |
16137 | test -d ./-p && rmdir ./-p | |
16138 | as_mkdir_p=false | |
16139 | fi | |
16140 | ||
d6a4bcb5 TB |
16141 | |
16142 | # as_fn_executable_p FILE | |
16143 | # ----------------------- | |
16144 | # Test if FILE is an executable regular file. | |
16145 | as_fn_executable_p () | |
16146 | { | |
16147 | test -f "$1" && test -x "$1" | |
16148 | } # as_fn_executable_p | |
16149 | as_test_x='test -x' | |
16150 | as_executable_p=as_fn_executable_p | |
b0cacab0 TT |
16151 | |
16152 | # Sed expression to map a string onto a valid CPP name. | |
16153 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
16154 | ||
16155 | # Sed expression to map a string onto a valid variable name. | |
16156 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
16157 | ||
16158 | ||
b0cacab0 | 16159 | exec 6>&1 |
57aa50d4 TT |
16160 | ## ----------------------------------- ## |
16161 | ## Main body of $CONFIG_STATUS script. ## | |
16162 | ## ----------------------------------- ## | |
16163 | _ASEOF | |
16164 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 | |
b0cacab0 | 16165 | |
57aa50d4 TT |
16166 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
16167 | # Save the log message, to keep $0 and so on meaningful, and to | |
b0cacab0 | 16168 | # report actual input values of CONFIG_FILES etc. instead of their |
e1052144 TT |
16169 | # values after options handling. |
16170 | ac_log=" | |
b0cacab0 | 16171 | This file was extended by $as_me, which was |
54445dc2 | 16172 | generated by GNU Autoconf 2.71. Invocation command line was |
b0cacab0 TT |
16173 | |
16174 | CONFIG_FILES = $CONFIG_FILES | |
16175 | CONFIG_HEADERS = $CONFIG_HEADERS | |
16176 | CONFIG_LINKS = $CONFIG_LINKS | |
16177 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
16178 | $ $0 $@ | |
16179 | ||
e1052144 TT |
16180 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
16181 | " | |
16182 | ||
b0cacab0 TT |
16183 | _ACEOF |
16184 | ||
39fd3d4f SJR |
16185 | case $ac_config_files in *" |
16186 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | |
16187 | esac | |
16188 | ||
d1154eb4 TT |
16189 | case $ac_config_headers in *" |
16190 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; | |
16191 | esac | |
39fd3d4f SJR |
16192 | |
16193 | ||
16194 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
b0cacab0 | 16195 | # Files that config.status was made for. |
e1052144 | 16196 | config_files="$ac_config_files" |
d1154eb4 | 16197 | config_headers="$ac_config_headers" |
e1052144 | 16198 | config_commands="$ac_config_commands" |
b0cacab0 | 16199 | |
e1052144 | 16200 | _ACEOF |
b0cacab0 | 16201 | |
39fd3d4f | 16202 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
b0cacab0 | 16203 | ac_cs_usage="\ |
57aa50d4 TT |
16204 | \`$as_me' instantiates files and other configuration actions |
16205 | from templates according to the current configuration. Unless the files | |
16206 | and actions are specified as TAGs, all are instantiated by default. | |
b0cacab0 | 16207 | |
57aa50d4 | 16208 | Usage: $0 [OPTION]... [TAG]... |
b0cacab0 TT |
16209 | |
16210 | -h, --help print this help, then exit | |
29a5deed | 16211 | -V, --version print version number and configuration settings, then exit |
61ef2474 | 16212 | --config print configuration, then exit |
39fd3d4f SJR |
16213 | -q, --quiet, --silent |
16214 | do not print progress messages | |
b0cacab0 TT |
16215 | -d, --debug don't remove temporary files |
16216 | --recheck update $as_me by reconfiguring in the same conditions | |
39fd3d4f SJR |
16217 | --file=FILE[:TEMPLATE] |
16218 | instantiate the configuration file FILE | |
d1154eb4 TT |
16219 | --header=FILE[:TEMPLATE] |
16220 | instantiate the configuration header FILE | |
b0cacab0 TT |
16221 | |
16222 | Configuration files: | |
16223 | $config_files | |
16224 | ||
d1154eb4 TT |
16225 | Configuration headers: |
16226 | $config_headers | |
16227 | ||
b0cacab0 TT |
16228 | Configuration commands: |
16229 | $config_commands | |
16230 | ||
57aa50d4 | 16231 | Report bugs to the package provider." |
b0cacab0 | 16232 | |
e1052144 | 16233 | _ACEOF |
54445dc2 TT |
16234 | ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"` |
16235 | ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"` | |
39fd3d4f | 16236 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
54445dc2 | 16237 | ac_cs_config='$ac_cs_config_escaped' |
b0cacab0 TT |
16238 | ac_cs_version="\\ |
16239 | config.status | |
54445dc2 | 16240 | configured by $0, generated by GNU Autoconf 2.71, |
61ef2474 | 16241 | with options \\"\$ac_cs_config\\" |
b0cacab0 | 16242 | |
54445dc2 | 16243 | Copyright (C) 2021 Free Software Foundation, Inc. |
b0cacab0 TT |
16244 | This config.status script is free software; the Free Software Foundation |
16245 | gives unlimited permission to copy, distribute and modify it." | |
e1052144 TT |
16246 | |
16247 | ac_pwd='$ac_pwd' | |
16248 | srcdir='$srcdir' | |
16249 | INSTALL='$INSTALL' | |
93613951 | 16250 | MKDIR_P='$MKDIR_P' |
39fd3d4f SJR |
16251 | AWK='$AWK' |
16252 | test -n "\$AWK" || AWK=awk | |
b0cacab0 TT |
16253 | _ACEOF |
16254 | ||
39fd3d4f SJR |
16255 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
16256 | # The default lists apply if the user does not specify any file. | |
b0cacab0 TT |
16257 | ac_need_defaults=: |
16258 | while test $# != 0 | |
07a0db15 | 16259 | do |
b0cacab0 | 16260 | case $1 in |
d6a4bcb5 | 16261 | --*=?*) |
e1052144 TT |
16262 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
16263 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
b0cacab0 TT |
16264 | ac_shift=: |
16265 | ;; | |
d6a4bcb5 TB |
16266 | --*=) |
16267 | ac_option=`expr "X$1" : 'X\([^=]*\)='` | |
16268 | ac_optarg= | |
16269 | ac_shift=: | |
16270 | ;; | |
e1052144 | 16271 | *) |
b0cacab0 TT |
16272 | ac_option=$1 |
16273 | ac_optarg=$2 | |
16274 | ac_shift=shift | |
16275 | ;; | |
b0cacab0 TT |
16276 | esac |
16277 | ||
16278 | case $ac_option in | |
16279 | # Handling of the options. | |
93636bde | 16280 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
b0cacab0 | 16281 | ac_cs_recheck=: ;; |
e1052144 | 16282 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
54445dc2 | 16283 | printf "%s\n" "$ac_cs_version"; exit ;; |
61ef2474 | 16284 | --config | --confi | --conf | --con | --co | --c ) |
54445dc2 | 16285 | printf "%s\n" "$ac_cs_config"; exit ;; |
e1052144 | 16286 | --debug | --debu | --deb | --de | --d | -d ) |
b0cacab0 TT |
16287 | debug=: ;; |
16288 | --file | --fil | --fi | --f ) | |
16289 | $ac_shift | |
39fd3d4f | 16290 | case $ac_optarg in |
54445dc2 | 16291 | *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
d6a4bcb5 | 16292 | '') as_fn_error $? "missing file argument" ;; |
39fd3d4f | 16293 | esac |
57aa50d4 | 16294 | as_fn_append CONFIG_FILES " '$ac_optarg'" |
b0cacab0 | 16295 | ac_need_defaults=false;; |
d1154eb4 TT |
16296 | --header | --heade | --head | --hea ) |
16297 | $ac_shift | |
16298 | case $ac_optarg in | |
54445dc2 | 16299 | *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
d1154eb4 TT |
16300 | esac |
16301 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" | |
16302 | ac_need_defaults=false;; | |
16303 | --he | --h) | |
16304 | # Conflict between --help and --header | |
d6a4bcb5 | 16305 | as_fn_error $? "ambiguous option: \`$1' |
d1154eb4 TT |
16306 | Try \`$0 --help' for more information.";; |
16307 | --help | --hel | -h ) | |
54445dc2 | 16308 | printf "%s\n" "$ac_cs_usage"; exit ;; |
b0cacab0 TT |
16309 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
16310 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
16311 | ac_cs_silent=: ;; | |
16312 | ||
16313 | # This is an error. | |
d6a4bcb5 | 16314 | -*) as_fn_error $? "unrecognized option: \`$1' |
57aa50d4 | 16315 | Try \`$0 --help' for more information." ;; |
b0cacab0 | 16316 | |
57aa50d4 | 16317 | *) as_fn_append ac_config_targets " $1" |
e1052144 | 16318 | ac_need_defaults=false ;; |
b0cacab0 | 16319 | |
07a0db15 | 16320 | esac |
b0cacab0 | 16321 | shift |
07a0db15 TT |
16322 | done |
16323 | ||
b0cacab0 TT |
16324 | ac_configure_extra_args= |
16325 | ||
16326 | if $ac_cs_silent; then | |
16327 | exec 6>/dev/null | |
16328 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
16329 | fi | |
16330 | ||
16331 | _ACEOF | |
39fd3d4f | 16332 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
b0cacab0 | 16333 | if \$ac_cs_recheck; then |
d6a4bcb5 | 16334 | set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
39fd3d4f | 16335 | shift |
54445dc2 | 16336 | \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6 |
39fd3d4f | 16337 | CONFIG_SHELL='$SHELL' |
e1052144 | 16338 | export CONFIG_SHELL |
39fd3d4f | 16339 | exec "\$@" |
b0cacab0 | 16340 | fi |
07a0db15 | 16341 | |
b0cacab0 | 16342 | _ACEOF |
39fd3d4f | 16343 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
e1052144 TT |
16344 | exec 5>>config.log |
16345 | { | |
16346 | echo | |
16347 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
16348 | ## Running $as_me. ## | |
16349 | _ASBOX | |
54445dc2 | 16350 | printf "%s\n" "$ac_log" |
e1052144 | 16351 | } >&5 |
07a0db15 | 16352 | |
e1052144 | 16353 | _ACEOF |
39fd3d4f | 16354 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
b0cacab0 | 16355 | # |
e1052144 | 16356 | # INIT-COMMANDS |
b0cacab0 | 16357 | # |
b0cacab0 | 16358 | # Capture the value of obsolete ALL_LINGUAS because we need it to compute |
bdcd5f22 TT |
16359 | # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. |
16360 | OBSOLETE_ALL_LINGUAS="$ALL_LINGUAS" | |
b0cacab0 TT |
16361 | # Capture the value of LINGUAS because we need it to compute CATALOGS. |
16362 | LINGUAS="${LINGUAS-%UNSET%}" | |
16363 | ||
16364 | ||
16365 | _ACEOF | |
16366 | ||
39fd3d4f | 16367 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
e1052144 TT |
16368 | |
16369 | # Handling of arguments. | |
b0cacab0 TT |
16370 | for ac_config_target in $ac_config_targets |
16371 | do | |
e1052144 | 16372 | case $ac_config_target in |
d1154eb4 | 16373 | "lib/config.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/config.h" ;; |
93613951 | 16374 | "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;; |
e1052144 TT |
16375 | "$outlist") CONFIG_FILES="$CONFIG_FILES $outlist" ;; |
16376 | ||
d6a4bcb5 | 16377 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
b0cacab0 TT |
16378 | esac |
16379 | done | |
16380 | ||
e1052144 | 16381 | |
b0cacab0 TT |
16382 | # If the user did not use the arguments to specify the items to instantiate, |
16383 | # then the envvar interface is used. Set only those that are not. | |
16384 | # We use the long form for the default assignment because of an extremely | |
16385 | # bizarre bug on SunOS 4.1.3. | |
16386 | if $ac_need_defaults; then | |
54445dc2 TT |
16387 | test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files |
16388 | test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers | |
16389 | test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands | |
b0cacab0 TT |
16390 | fi |
16391 | ||
16392 | # Have a temporary directory for convenience. Make it in the build tree | |
e1052144 | 16393 | # simply because there is no reason against having it here, and in addition, |
b0cacab0 | 16394 | # creating and moving files from /tmp can sometimes cause problems. |
e1052144 TT |
16395 | # Hook for its removal unless debugging. |
16396 | # Note that there is a small window in which the directory will not be cleaned: | |
16397 | # after its creation but before its name has been assigned to `$tmp'. | |
b0cacab0 TT |
16398 | $debug || |
16399 | { | |
d6a4bcb5 | 16400 | tmp= ac_tmp= |
e1052144 | 16401 | trap 'exit_status=$? |
d6a4bcb5 TB |
16402 | : "${ac_tmp:=$tmp}" |
16403 | { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status | |
e1052144 | 16404 | ' 0 |
57aa50d4 | 16405 | trap 'as_fn_exit 1' 1 2 13 15 |
b0cacab0 | 16406 | } |
b0cacab0 TT |
16407 | # Create a (secure) tmp directory for tmp files. |
16408 | ||
16409 | { | |
e1052144 | 16410 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
d6a4bcb5 | 16411 | test -d "$tmp" |
b0cacab0 TT |
16412 | } || |
16413 | { | |
e1052144 TT |
16414 | tmp=./conf$$-$RANDOM |
16415 | (umask 077 && mkdir "$tmp") | |
d6a4bcb5 TB |
16416 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 |
16417 | ac_tmp=$tmp | |
b0cacab0 | 16418 | |
39fd3d4f SJR |
16419 | # Set up the scripts for CONFIG_FILES section. |
16420 | # No need to generate them if there are no CONFIG_FILES. | |
16421 | # This happens for instance with `./config.status config.h'. | |
e1052144 TT |
16422 | if test -n "$CONFIG_FILES"; then |
16423 | ||
39fd3d4f SJR |
16424 | if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then |
16425 | ac_cs_awk_getline=: | |
16426 | ac_cs_awk_pipe_init= | |
16427 | ac_cs_awk_read_file=' | |
16428 | while ((getline aline < (F[key])) > 0) | |
16429 | print(aline) | |
16430 | close(F[key])' | |
16431 | ac_cs_awk_pipe_fini= | |
16432 | else | |
16433 | ac_cs_awk_getline=false | |
16434 | ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\"" | |
16435 | ac_cs_awk_read_file=' | |
16436 | print "|#_!!_#|" | |
16437 | print "cat " F[key] " &&" | |
16438 | '$ac_cs_awk_pipe_init | |
16439 | # The final `:' finishes the AND list. | |
16440 | ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }' | |
16441 | fi | |
57aa50d4 TT |
16442 | ac_cr=`echo X | tr X '\015'` |
16443 | # On cygwin, bash can eat \r inside `` if the user requested igncr. | |
16444 | # But we know of no other shell where ac_cr would be empty at this | |
16445 | # point, so we can use a bashism as a fallback. | |
16446 | if test "x$ac_cr" = x; then | |
16447 | eval ac_cr=\$\'\\r\' | |
16448 | fi | |
39fd3d4f SJR |
16449 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` |
16450 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | |
d6a4bcb5 | 16451 | ac_cs_awk_cr='\\r' |
39fd3d4f SJR |
16452 | else |
16453 | ac_cs_awk_cr=$ac_cr | |
16454 | fi | |
e1052144 | 16455 | |
d6a4bcb5 | 16456 | echo 'BEGIN {' >"$ac_tmp/subs1.awk" && |
39fd3d4f | 16457 | _ACEOF |
e1052144 | 16458 | |
39fd3d4f SJR |
16459 | # Create commands to substitute file output variables. |
16460 | { | |
16461 | echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" && | |
d6a4bcb5 | 16462 | echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' && |
39fd3d4f SJR |
16463 | echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' && |
16464 | echo "_ACAWK" && | |
16465 | echo "_ACEOF" | |
16466 | } >conf$$files.sh && | |
16467 | . ./conf$$files.sh || | |
d6a4bcb5 | 16468 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
39fd3d4f | 16469 | rm -f conf$$files.sh |
e1052144 | 16470 | |
39fd3d4f SJR |
16471 | { |
16472 | echo "cat >conf$$subs.awk <<_ACEOF" && | |
16473 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | |
16474 | echo "_ACEOF" | |
16475 | } >conf$$subs.sh || | |
d6a4bcb5 TB |
16476 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
16477 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` | |
e1052144 TT |
16478 | ac_delim='%!_!# ' |
16479 | for ac_last_try in false false false false false :; do | |
39fd3d4f | 16480 | . ./conf$$subs.sh || |
d6a4bcb5 | 16481 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
39fd3d4f SJR |
16482 | |
16483 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` | |
16484 | if test $ac_delim_n = $ac_delim_num; then | |
e1052144 TT |
16485 | break |
16486 | elif $ac_last_try; then | |
d6a4bcb5 | 16487 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
e1052144 TT |
16488 | else |
16489 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
21c84b71 | 16490 | fi |
e1052144 | 16491 | done |
39fd3d4f SJR |
16492 | rm -f conf$$subs.sh |
16493 | ||
16494 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
d6a4bcb5 | 16495 | cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && |
39fd3d4f SJR |
16496 | _ACEOF |
16497 | sed -n ' | |
16498 | h | |
16499 | s/^/S["/; s/!.*/"]=/ | |
16500 | p | |
16501 | g | |
16502 | s/^[^!]*!// | |
16503 | :repl | |
16504 | t repl | |
16505 | s/'"$ac_delim"'$// | |
16506 | t delim | |
16507 | :nl | |
16508 | h | |
61ef2474 | 16509 | s/\(.\{148\}\)..*/\1/ |
39fd3d4f SJR |
16510 | t more1 |
16511 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | |
16512 | p | |
16513 | n | |
16514 | b repl | |
16515 | :more1 | |
16516 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
16517 | p | |
16518 | g | |
16519 | s/.\{148\}// | |
16520 | t nl | |
16521 | :delim | |
16522 | h | |
61ef2474 | 16523 | s/\(.\{148\}\)..*/\1/ |
39fd3d4f SJR |
16524 | t more2 |
16525 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | |
16526 | p | |
16527 | b | |
16528 | :more2 | |
16529 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
16530 | p | |
16531 | g | |
16532 | s/.\{148\}// | |
16533 | t delim | |
16534 | ' <conf$$subs.awk | sed ' | |
16535 | /^[^""]/{ | |
16536 | N | |
16537 | s/\n// | |
e1052144 | 16538 | } |
39fd3d4f SJR |
16539 | ' >>$CONFIG_STATUS || ac_write_fail=1 |
16540 | rm -f conf$$subs.awk | |
16541 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
16542 | _ACAWK | |
d6a4bcb5 | 16543 | cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && |
39fd3d4f SJR |
16544 | for (key in S) S_is_set[key] = 1 |
16545 | FS = "\a" | |
16546 | \$ac_cs_awk_pipe_init | |
e1052144 | 16547 | } |
39fd3d4f SJR |
16548 | { |
16549 | line = $ 0 | |
16550 | nfields = split(line, field, "@") | |
16551 | substed = 0 | |
16552 | len = length(field[1]) | |
16553 | for (i = 2; i < nfields; i++) { | |
16554 | key = field[i] | |
16555 | keylen = length(key) | |
16556 | if (S_is_set[key]) { | |
16557 | value = S[key] | |
16558 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | |
16559 | len += length(value) + length(field[++i]) | |
16560 | substed = 1 | |
16561 | } else | |
16562 | len += 1 + keylen | |
16563 | } | |
16564 | if (nfields == 3 && !substed) { | |
16565 | key = field[2] | |
16566 | if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) { | |
16567 | \$ac_cs_awk_read_file | |
16568 | next | |
16569 | } | |
16570 | } | |
16571 | print line | |
488c75a6 | 16572 | } |
39fd3d4f SJR |
16573 | \$ac_cs_awk_pipe_fini |
16574 | _ACAWK | |
e1052144 | 16575 | _ACEOF |
39fd3d4f SJR |
16576 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
16577 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | |
16578 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | |
16579 | else | |
16580 | cat | |
d6a4bcb5 TB |
16581 | fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ |
16582 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 | |
b0cacab0 | 16583 | _ACEOF |
e1052144 | 16584 | |
d6a4bcb5 TB |
16585 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir), |
16586 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and | |
e1052144 TT |
16587 | # trailing colons and then remove the whole line if VPATH becomes empty |
16588 | # (actually we leave an empty line to preserve line numbers). | |
16589 | if test "x$srcdir" = x.; then | |
d6a4bcb5 TB |
16590 | ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ |
16591 | h | |
16592 | s/// | |
16593 | s/^/:/ | |
16594 | s/[ ]*$/:/ | |
16595 | s/:\$(srcdir):/:/g | |
16596 | s/:\${srcdir}:/:/g | |
16597 | s/:@srcdir@:/:/g | |
16598 | s/^:*// | |
e1052144 | 16599 | s/:*$// |
d6a4bcb5 TB |
16600 | x |
16601 | s/\(=[ ]*\).*/\1/ | |
16602 | G | |
16603 | s/\n// | |
e1052144 TT |
16604 | s/^[^=]*=[ ]*$// |
16605 | }' | |
16606 | fi | |
16607 | ||
39fd3d4f | 16608 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
e1052144 TT |
16609 | fi # test -n "$CONFIG_FILES" |
16610 | ||
d1154eb4 TT |
16611 | # Set up the scripts for CONFIG_HEADERS section. |
16612 | # No need to generate them if there are no CONFIG_HEADERS. | |
16613 | # This happens for instance with `./config.status Makefile'. | |
16614 | if test -n "$CONFIG_HEADERS"; then | |
d6a4bcb5 | 16615 | cat >"$ac_tmp/defines.awk" <<\_ACAWK || |
d1154eb4 TT |
16616 | BEGIN { |
16617 | _ACEOF | |
16618 | ||
16619 | # Transform confdefs.h into an awk script `defines.awk', embedded as | |
16620 | # here-document in config.status, that substitutes the proper values into | |
16621 | # config.h.in to produce config.h. | |
16622 | ||
16623 | # Create a delimiter string that does not exist in confdefs.h, to ease | |
16624 | # handling of long lines. | |
16625 | ac_delim='%!_!# ' | |
16626 | for ac_last_try in false false :; do | |
d6a4bcb5 TB |
16627 | ac_tt=`sed -n "/$ac_delim/p" confdefs.h` |
16628 | if test -z "$ac_tt"; then | |
d1154eb4 TT |
16629 | break |
16630 | elif $ac_last_try; then | |
d6a4bcb5 | 16631 | as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 |
d1154eb4 TT |
16632 | else |
16633 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
16634 | fi | |
16635 | done | |
16636 | ||
16637 | # For the awk script, D is an array of macro values keyed by name, | |
16638 | # likewise P contains macro parameters if any. Preserve backslash | |
16639 | # newline sequences. | |
16640 | ||
16641 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* | |
16642 | sed -n ' | |
16643 | s/.\{148\}/&'"$ac_delim"'/g | |
16644 | t rset | |
16645 | :rset | |
16646 | s/^[ ]*#[ ]*define[ ][ ]*/ / | |
16647 | t def | |
16648 | d | |
16649 | :def | |
16650 | s/\\$// | |
16651 | t bsnl | |
16652 | s/["\\]/\\&/g | |
16653 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
16654 | D["\1"]=" \3"/p | |
16655 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p | |
16656 | d | |
16657 | :bsnl | |
16658 | s/["\\]/\\&/g | |
16659 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
16660 | D["\1"]=" \3\\\\\\n"\\/p | |
16661 | t cont | |
16662 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p | |
16663 | t cont | |
16664 | d | |
16665 | :cont | |
16666 | n | |
16667 | s/.\{148\}/&'"$ac_delim"'/g | |
16668 | t clear | |
16669 | :clear | |
16670 | s/\\$// | |
16671 | t bsnlc | |
16672 | s/["\\]/\\&/g; s/^/"/; s/$/"/p | |
16673 | d | |
16674 | :bsnlc | |
16675 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p | |
16676 | b cont | |
16677 | ' <confdefs.h | sed ' | |
16678 | s/'"$ac_delim"'/"\\\ | |
16679 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 | |
16680 | ||
16681 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
16682 | for (key in D) D_is_set[key] = 1 | |
16683 | FS = "\a" | |
16684 | } | |
16685 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { | |
16686 | line = \$ 0 | |
16687 | split(line, arg, " ") | |
16688 | if (arg[1] == "#") { | |
16689 | defundef = arg[2] | |
16690 | mac1 = arg[3] | |
16691 | } else { | |
16692 | defundef = substr(arg[1], 2) | |
16693 | mac1 = arg[2] | |
16694 | } | |
16695 | split(mac1, mac2, "(") #) | |
16696 | macro = mac2[1] | |
16697 | prefix = substr(line, 1, index(line, defundef) - 1) | |
16698 | if (D_is_set[macro]) { | |
16699 | # Preserve the white space surrounding the "#". | |
16700 | print prefix "define", macro P[macro] D[macro] | |
16701 | next | |
16702 | } else { | |
16703 | # Replace #undef with comments. This is necessary, for example, | |
16704 | # in the case of _POSIX_SOURCE, which is predefined and required | |
16705 | # on some systems where configure will not decide to define it. | |
16706 | if (defundef == "undef") { | |
16707 | print "/*", prefix defundef, macro, "*/" | |
16708 | next | |
16709 | } | |
16710 | } | |
16711 | } | |
16712 | { print } | |
16713 | _ACAWK | |
16714 | _ACEOF | |
16715 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
d6a4bcb5 | 16716 | as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 |
d1154eb4 TT |
16717 | fi # test -n "$CONFIG_HEADERS" |
16718 | ||
e1052144 | 16719 | |
d1154eb4 | 16720 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" |
39fd3d4f SJR |
16721 | shift |
16722 | for ac_tag | |
e1052144 TT |
16723 | do |
16724 | case $ac_tag in | |
16725 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
16726 | esac | |
16727 | case $ac_mode$ac_tag in | |
16728 | :[FHL]*:*);; | |
d6a4bcb5 | 16729 | :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; |
e1052144 TT |
16730 | :[FH]-) ac_tag=-:-;; |
16731 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
16732 | esac | |
16733 | ac_save_IFS=$IFS | |
16734 | IFS=: | |
16735 | set x $ac_tag | |
16736 | IFS=$ac_save_IFS | |
16737 | shift | |
16738 | ac_file=$1 | |
16739 | shift | |
16740 | ||
16741 | case $ac_mode in | |
16742 | :L) ac_source=$1;; | |
16743 | :[FH]) | |
16744 | ac_file_inputs= | |
16745 | for ac_f | |
16746 | do | |
16747 | case $ac_f in | |
d6a4bcb5 | 16748 | -) ac_f="$ac_tmp/stdin";; |
e1052144 TT |
16749 | *) # Look for the file first in the build tree, then in the source tree |
16750 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
16751 | # because $ac_f cannot contain `:'. | |
16752 | test -f "$ac_f" || | |
16753 | case $ac_f in | |
16754 | [\\/$]*) false;; | |
16755 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
16756 | esac || | |
d6a4bcb5 | 16757 | as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; |
e1052144 | 16758 | esac |
54445dc2 | 16759 | case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac |
57aa50d4 | 16760 | as_fn_append ac_file_inputs " '$ac_f'" |
e1052144 TT |
16761 | done |
16762 | ||
16763 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
16764 | # use $as_me), people would be surprised to read: | |
16765 | # /* config.h. Generated by config.status. */ | |
39fd3d4f | 16766 | configure_input='Generated from '` |
54445dc2 | 16767 | printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' |
39fd3d4f | 16768 | `' by configure.' |
e1052144 TT |
16769 | if test x"$ac_file" != x-; then |
16770 | configure_input="$ac_file. $configure_input" | |
54445dc2 TT |
16771 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 |
16772 | printf "%s\n" "$as_me: creating $ac_file" >&6;} | |
e1052144 | 16773 | fi |
39fd3d4f SJR |
16774 | # Neutralize special characters interpreted by sed in replacement strings. |
16775 | case $configure_input in #( | |
16776 | *\&* | *\|* | *\\* ) | |
54445dc2 | 16777 | ac_sed_conf_input=`printf "%s\n" "$configure_input" | |
39fd3d4f SJR |
16778 | sed 's/[\\\\&|]/\\\\&/g'`;; #( |
16779 | *) ac_sed_conf_input=$configure_input;; | |
16780 | esac | |
e1052144 TT |
16781 | |
16782 | case $ac_tag in | |
d6a4bcb5 TB |
16783 | *:-:* | *:-) cat >"$ac_tmp/stdin" \ |
16784 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; | |
e1052144 TT |
16785 | esac |
16786 | ;; | |
b0cacab0 TT |
16787 | esac |
16788 | ||
e1052144 | 16789 | ac_dir=`$as_dirname -- "$ac_file" || |
b0cacab0 TT |
16790 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
16791 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
16792 | X"$ac_file" : 'X\(//\)$' \| \ | |
e1052144 | 16793 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
54445dc2 | 16794 | printf "%s\n" X"$ac_file" | |
e1052144 TT |
16795 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
16796 | s//\1/ | |
16797 | q | |
16798 | } | |
16799 | /^X\(\/\/\)[^/].*/{ | |
16800 | s//\1/ | |
16801 | q | |
16802 | } | |
16803 | /^X\(\/\/\)$/{ | |
16804 | s//\1/ | |
16805 | q | |
16806 | } | |
16807 | /^X\(\/\).*/{ | |
16808 | s//\1/ | |
16809 | q | |
16810 | } | |
16811 | s/.*/./; q'` | |
57aa50d4 | 16812 | as_dir="$ac_dir"; as_fn_mkdir_p |
b0cacab0 TT |
16813 | ac_builddir=. |
16814 | ||
e1052144 TT |
16815 | case "$ac_dir" in |
16816 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
16817 | *) | |
54445dc2 | 16818 | ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` |
e1052144 | 16819 | # A ".." for each directory in $ac_dir_suffix. |
54445dc2 | 16820 | ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
e1052144 TT |
16821 | case $ac_top_builddir_sub in |
16822 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
16823 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
16824 | esac ;; | |
16825 | esac | |
16826 | ac_abs_top_builddir=$ac_pwd | |
16827 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
16828 | # for backward compatibility: | |
16829 | ac_top_builddir=$ac_top_build_prefix | |
93636bde | 16830 | |
b0cacab0 | 16831 | case $srcdir in |
e1052144 | 16832 | .) # We are building in place. |
b0cacab0 | 16833 | ac_srcdir=. |
e1052144 TT |
16834 | ac_top_srcdir=$ac_top_builddir_sub |
16835 | ac_abs_top_srcdir=$ac_pwd ;; | |
16836 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
b0cacab0 | 16837 | ac_srcdir=$srcdir$ac_dir_suffix; |
e1052144 TT |
16838 | ac_top_srcdir=$srcdir |
16839 | ac_abs_top_srcdir=$srcdir ;; | |
16840 | *) # Relative name. | |
16841 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
16842 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
16843 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
b0cacab0 | 16844 | esac |
e1052144 | 16845 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
b0cacab0 | 16846 | |
b0cacab0 | 16847 | |
e1052144 TT |
16848 | case $ac_mode in |
16849 | :F) | |
16850 | # | |
16851 | # CONFIG_FILE | |
16852 | # | |
50e1e10f | 16853 | |
b0cacab0 TT |
16854 | case $INSTALL in |
16855 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
e1052144 | 16856 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
50e1e10f | 16857 | esac |
93613951 TT |
16858 | ac_MKDIR_P=$MKDIR_P |
16859 | case $MKDIR_P in | |
16860 | [\\/$]* | ?:[\\/]* ) ;; | |
16861 | */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; | |
16862 | esac | |
e1052144 | 16863 | _ACEOF |
50e1e10f | 16864 | |
39fd3d4f | 16865 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
e1052144 TT |
16866 | # If the template does not know about datarootdir, expand it. |
16867 | # FIXME: This hack should be removed a few years after 2.60. | |
16868 | ac_datarootdir_hack=; ac_datarootdir_seen= | |
39fd3d4f SJR |
16869 | ac_sed_dataroot=' |
16870 | /datarootdir/ { | |
e1052144 TT |
16871 | p |
16872 | q | |
16873 | } | |
16874 | /@datadir@/p | |
16875 | /@docdir@/p | |
16876 | /@infodir@/p | |
16877 | /@localedir@/p | |
57aa50d4 | 16878 | /@mandir@/p' |
39fd3d4f | 16879 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in |
e1052144 TT |
16880 | *datarootdir*) ac_datarootdir_seen=yes;; |
16881 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
54445dc2 TT |
16882 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
16883 | printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | |
b0cacab0 | 16884 | _ACEOF |
39fd3d4f | 16885 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
e1052144 TT |
16886 | ac_datarootdir_hack=' |
16887 | s&@datadir@&$datadir&g | |
16888 | s&@docdir@&$docdir&g | |
16889 | s&@infodir@&$infodir&g | |
16890 | s&@localedir@&$localedir&g | |
16891 | s&@mandir@&$mandir&g | |
57aa50d4 | 16892 | s&\\\${datarootdir}&$datarootdir&g' ;; |
e1052144 TT |
16893 | esac |
16894 | _ACEOF | |
16895 | ||
16896 | # Neutralize VPATH when `$srcdir' = `.'. | |
16897 | # Shell code in configure.ac might set extrasub. | |
16898 | # FIXME: do we really want to maintain this feature? | |
39fd3d4f SJR |
16899 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
16900 | ac_sed_extra="$ac_vpsub | |
b0cacab0 TT |
16901 | $extrasub |
16902 | _ACEOF | |
39fd3d4f | 16903 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
b0cacab0 TT |
16904 | :t |
16905 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
39fd3d4f | 16906 | s|@configure_input@|$ac_sed_conf_input|;t t |
e1052144 | 16907 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
39fd3d4f | 16908 | s&@top_build_prefix@&$ac_top_build_prefix&;t t |
e1052144 TT |
16909 | s&@srcdir@&$ac_srcdir&;t t |
16910 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
16911 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
16912 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
16913 | s&@builddir@&$ac_builddir&;t t | |
16914 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
16915 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
16916 | s&@INSTALL@&$ac_INSTALL&;t t | |
93613951 | 16917 | s&@MKDIR_P@&$ac_MKDIR_P&;t t |
e1052144 | 16918 | $ac_datarootdir_hack |
39fd3d4f SJR |
16919 | " |
16920 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | | |
16921 | if $ac_cs_awk_getline; then | |
d6a4bcb5 | 16922 | $AWK -f "$ac_tmp/subs.awk" |
39fd3d4f | 16923 | else |
d6a4bcb5 TB |
16924 | $AWK -f "$ac_tmp/subs.awk" | $SHELL |
16925 | fi \ | |
16926 | >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
e1052144 TT |
16927 | |
16928 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | |
d6a4bcb5 TB |
16929 | { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && |
16930 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ | |
16931 | "$ac_tmp/out"`; test -z "$ac_out"; } && | |
54445dc2 | 16932 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
d6a4bcb5 | 16933 | which seems to be undefined. Please make sure it is defined" >&5 |
54445dc2 | 16934 | printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
d6a4bcb5 | 16935 | which seems to be undefined. Please make sure it is defined" >&2;} |
e1052144 | 16936 | |
d6a4bcb5 | 16937 | rm -f "$ac_tmp/stdin" |
e1052144 | 16938 | case $ac_file in |
d6a4bcb5 TB |
16939 | -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; |
16940 | *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; | |
39fd3d4f | 16941 | esac \ |
d6a4bcb5 | 16942 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
e1052144 | 16943 | ;; |
d1154eb4 TT |
16944 | :H) |
16945 | # | |
16946 | # CONFIG_HEADER | |
16947 | # | |
16948 | if test x"$ac_file" != x-; then | |
16949 | { | |
54445dc2 | 16950 | printf "%s\n" "/* $configure_input */" >&1 \ |
d6a4bcb5 TB |
16951 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" |
16952 | } >"$ac_tmp/config.h" \ | |
16953 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
16954 | if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then | |
54445dc2 TT |
16955 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 |
16956 | printf "%s\n" "$as_me: $ac_file is unchanged" >&6;} | |
d1154eb4 TT |
16957 | else |
16958 | rm -f "$ac_file" | |
d6a4bcb5 TB |
16959 | mv "$ac_tmp/config.h" "$ac_file" \ |
16960 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
d1154eb4 TT |
16961 | fi |
16962 | else | |
54445dc2 | 16963 | printf "%s\n" "/* $configure_input */" >&1 \ |
d6a4bcb5 TB |
16964 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ |
16965 | || as_fn_error $? "could not create -" "$LINENO" 5 | |
d1154eb4 TT |
16966 | fi |
16967 | ;; | |
07a0db15 | 16968 | |
54445dc2 TT |
16969 | :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 |
16970 | printf "%s\n" "$as_me: executing $ac_file commands" >&6;} | |
e1052144 TT |
16971 | ;; |
16972 | esac | |
a04eba3f | 16973 | |
b0cacab0 | 16974 | |
e1052144 | 16975 | case $ac_file$ac_mode in |
93613951 | 16976 | "po-directories":C) |
a04eba3f TT |
16977 | for ac_file in $CONFIG_FILES; do |
16978 | # Support "outfile[:infile[:infile...]]" | |
16979 | case "$ac_file" in | |
16980 | *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | |
16981 | esac | |
16982 | # PO directories have a Makefile.in generated from Makefile.in.in. | |
16983 | case "$ac_file" in */Makefile.in) | |
16984 | # Adjust a relative srcdir. | |
16985 | ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'` | |
93613951 | 16986 | ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'` |
a04eba3f TT |
16987 | ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'` |
16988 | # In autoconf-2.13 it is called $ac_given_srcdir. | |
16989 | # In autoconf-2.50 it is called $srcdir. | |
16990 | test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir" | |
16991 | case "$ac_given_srcdir" in | |
16992 | .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;; | |
16993 | /*) top_srcdir="$ac_given_srcdir" ;; | |
16994 | *) top_srcdir="$ac_dots$ac_given_srcdir" ;; | |
16995 | esac | |
93613951 TT |
16996 | # Treat a directory as a PO directory if and only if it has a |
16997 | # POTFILES.in file. This allows packages to have multiple PO | |
16998 | # directories under different names or in different locations. | |
a04eba3f TT |
16999 | if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then |
17000 | rm -f "$ac_dir/POTFILES" | |
17001 | test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES" | |
93613951 TT |
17002 | gt_tab=`printf '\t'` |
17003 | cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ${gt_tab}]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES" | |
b0cacab0 TT |
17004 | POMAKEFILEDEPS="POTFILES.in" |
17005 | # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend | |
a04eba3f TT |
17006 | # on $ac_dir but don't depend on user-specified configuration |
17007 | # parameters. | |
17008 | if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then | |
17009 | # The LINGUAS file contains the set of available languages. | |
b0cacab0 | 17010 | if test -n "$OBSOLETE_ALL_LINGUAS"; then |
a04eba3f TT |
17011 | test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete" |
17012 | fi | |
bdcd5f22 | 17013 | ALL_LINGUAS=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"` |
b0cacab0 TT |
17014 | POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS" |
17015 | else | |
17016 | # The set of available languages was given in configure.in. | |
bdcd5f22 | 17017 | ALL_LINGUAS=$OBSOLETE_ALL_LINGUAS |
a04eba3f | 17018 | fi |
b0cacab0 TT |
17019 | # Compute POFILES |
17020 | # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po) | |
17021 | # Compute UPDATEPOFILES | |
17022 | # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update) | |
17023 | # Compute DUMMYPOFILES | |
17024 | # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop) | |
17025 | # Compute GMOFILES | |
17026 | # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo) | |
a04eba3f TT |
17027 | case "$ac_given_srcdir" in |
17028 | .) srcdirpre= ;; | |
17029 | *) srcdirpre='$(srcdir)/' ;; | |
17030 | esac | |
17031 | POFILES= | |
a04eba3f TT |
17032 | UPDATEPOFILES= |
17033 | DUMMYPOFILES= | |
b0cacab0 | 17034 | GMOFILES= |
a04eba3f TT |
17035 | for lang in $ALL_LINGUAS; do |
17036 | POFILES="$POFILES $srcdirpre$lang.po" | |
a04eba3f TT |
17037 | UPDATEPOFILES="$UPDATEPOFILES $lang.po-update" |
17038 | DUMMYPOFILES="$DUMMYPOFILES $lang.nop" | |
b0cacab0 | 17039 | GMOFILES="$GMOFILES $srcdirpre$lang.gmo" |
a04eba3f TT |
17040 | done |
17041 | # CATALOGS depends on both $ac_dir and the user's LINGUAS | |
17042 | # environment variable. | |
17043 | INST_LINGUAS= | |
17044 | if test -n "$ALL_LINGUAS"; then | |
17045 | for presentlang in $ALL_LINGUAS; do | |
17046 | useit=no | |
17047 | if test "%UNSET%" != "$LINGUAS"; then | |
17048 | desiredlanguages="$LINGUAS" | |
17049 | else | |
17050 | desiredlanguages="$ALL_LINGUAS" | |
17051 | fi | |
17052 | for desiredlang in $desiredlanguages; do | |
17053 | # Use the presentlang catalog if desiredlang is | |
17054 | # a. equal to presentlang, or | |
17055 | # b. a variant of presentlang (because in this case, | |
17056 | # presentlang can be used as a fallback for messages | |
17057 | # which are not translated in the desiredlang catalog). | |
17058 | case "$desiredlang" in | |
5598a968 EB |
17059 | "$presentlang" | "$presentlang"_* | "$presentlang".* | "$presentlang"@*) |
17060 | useit=yes | |
17061 | ;; | |
a04eba3f TT |
17062 | esac |
17063 | done | |
17064 | if test $useit = yes; then | |
17065 | INST_LINGUAS="$INST_LINGUAS $presentlang" | |
17066 | fi | |
17067 | done | |
17068 | fi | |
17069 | CATALOGS= | |
17070 | if test -n "$INST_LINGUAS"; then | |
17071 | for lang in $INST_LINGUAS; do | |
17072 | CATALOGS="$CATALOGS $lang.gmo" | |
17073 | done | |
17074 | fi | |
17075 | test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile" | |
b0cacab0 | 17076 | sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile" |
a04eba3f TT |
17077 | for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do |
17078 | if test -f "$f"; then | |
17079 | case "$f" in | |
17080 | *.orig | *.bak | *~) ;; | |
17081 | *) cat "$f" >> "$ac_dir/Makefile" ;; | |
17082 | esac | |
17083 | fi | |
17084 | done | |
17085 | fi | |
17086 | ;; | |
a64c9c13 | 17087 | esac |
b0cacab0 | 17088 | done ;; |
e1052144 | 17089 | |
b0cacab0 | 17090 | esac |
e1052144 | 17091 | done # for ac_tag |
07a0db15 | 17092 | |
b0cacab0 | 17093 | |
57aa50d4 | 17094 | as_fn_exit 0 |
b0cacab0 | 17095 | _ACEOF |
b0cacab0 TT |
17096 | ac_clean_files=$ac_clean_files_save |
17097 | ||
39fd3d4f | 17098 | test $ac_write_fail = 0 || |
d6a4bcb5 | 17099 | as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 |
39fd3d4f | 17100 | |
b0cacab0 TT |
17101 | |
17102 | # configure is writing to config.log, and then calls config.status. | |
17103 | # config.status does its own redirection, appending to config.log. | |
17104 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
17105 | # by configure, so config.status won't be able to write to it; its | |
17106 | # output is simply discarded. So we exec the FD to /dev/null, | |
17107 | # effectively closing config.log, so it can be properly (re)opened and | |
17108 | # appended to by config.status. When coming back to configure, we | |
17109 | # need to make the FD available again. | |
17110 | if test "$no_create" != yes; then | |
17111 | ac_cs_success=: | |
17112 | ac_config_status_args= | |
17113 | test "$silent" = yes && | |
17114 | ac_config_status_args="$ac_config_status_args --quiet" | |
17115 | exec 5>/dev/null | |
17116 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
17117 | exec 5>>config.log | |
17118 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
17119 | # would make configure fail if this is the last instruction. | |
d6a4bcb5 | 17120 | $ac_cs_success || as_fn_exit 1 |
b0cacab0 | 17121 | fi |
39fd3d4f | 17122 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
54445dc2 TT |
17123 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 |
17124 | printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} | |
39fd3d4f | 17125 | fi |
50e1e10f | 17126 | |
ee683a13 | 17127 | if test -f util/gen-tarball; then chmod +x util/gen-tarball; fi |
54445dc2 | 17128 |