]>
Commit | Line | Data |
---|---|---|
50e1e10f | 1 | #! /bin/sh |
50e1e10f | 2 | # Guess values for system-dependent variables and create Makefiles. |
d6a4bcb5 | 3 | # Generated by GNU Autoconf 2.69. |
61ef2474 | 4 | # |
50e1e10f | 5 | # |
d6a4bcb5 | 6 | # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. |
61ef2474 | 7 | # |
57aa50d4 | 8 | # |
50e1e10f TT |
9 | # This configure script is free software; the Free Software Foundation |
10 | # gives unlimited permission to copy, distribute and modify it. | |
57aa50d4 TT |
11 | ## -------------------- ## |
12 | ## M4sh Initialization. ## | |
13 | ## -------------------- ## | |
b0cacab0 | 14 | |
29a5deed TT |
15 | # Be more Bourne compatible |
16 | DUALCASE=1; export DUALCASE # for MKS sh | |
57aa50d4 | 17 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : |
b0cacab0 TT |
18 | emulate sh |
19 | NULLCMD=: | |
39fd3d4f | 20 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
b0cacab0 TT |
21 | # is contrary to our usage. Disable this feature. |
22 | alias -g '${1+"$@"}'='"$@"' | |
e1052144 TT |
23 | setopt NO_GLOB_SUBST |
24 | else | |
57aa50d4 TT |
25 | case `(set -o) 2>/dev/null` in #( |
26 | *posix*) : | |
27 | set -o posix ;; #( | |
28 | *) : | |
29 | ;; | |
29a5deed | 30 | esac |
b0cacab0 | 31 | fi |
29a5deed TT |
32 | |
33 | ||
39fd3d4f SJR |
34 | as_nl=' |
35 | ' | |
36 | export as_nl | |
37 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
38 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
39 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
40 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
57aa50d4 TT |
41 | # Prefer a ksh shell builtin over an external printf program on Solaris, |
42 | # but without wasting forks for bash or zsh. | |
43 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
44 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
45 | as_echo='print -r --' | |
46 | as_echo_n='print -rn --' | |
47 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
39fd3d4f SJR |
48 | as_echo='printf %s\n' |
49 | as_echo_n='printf %s' | |
50 | else | |
51 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
52 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
53 | as_echo_n='/usr/ucb/echo -n' | |
e1052144 | 54 | else |
39fd3d4f SJR |
55 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
56 | as_echo_n_body='eval | |
57 | arg=$1; | |
57aa50d4 | 58 | case $arg in #( |
39fd3d4f SJR |
59 | *"$as_nl"*) |
60 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
61 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
62 | esac; | |
63 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
64 | ' | |
65 | export as_echo_n_body | |
66 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
e1052144 | 67 | fi |
39fd3d4f SJR |
68 | export as_echo_body |
69 | as_echo='sh -c $as_echo_body as_echo' | |
70 | fi | |
71 | ||
72 | # The user is always right. | |
73 | if test "${PATH_SEPARATOR+set}" != set; then | |
74 | PATH_SEPARATOR=: | |
75 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
76 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
77 | PATH_SEPARATOR=';' | |
78 | } | |
e1052144 TT |
79 | fi |
80 | ||
b0cacab0 | 81 | |
e1052144 TT |
82 | # IFS |
83 | # We need space, tab and new line, in precisely that order. Quoting is | |
84 | # there to prevent editors from complaining about space-tab. | |
85 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
86 | # splitting by setting IFS to empty value.) | |
e1052144 TT |
87 | IFS=" "" $as_nl" |
88 | ||
89 | # Find who we are. Look in the path if we contain no directory separator. | |
d6a4bcb5 | 90 | as_myself= |
57aa50d4 | 91 | case $0 in #(( |
e1052144 TT |
92 | *[\\/]* ) as_myself=$0 ;; |
93 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
94 | for as_dir in $PATH | |
95 | do | |
96 | IFS=$as_save_IFS | |
97 | test -z "$as_dir" && as_dir=. | |
57aa50d4 TT |
98 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
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 | |
39fd3d4f | 110 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
57aa50d4 | 111 | exit 1 |
e1052144 TT |
112 | fi |
113 | ||
57aa50d4 TT |
114 | # Unset variables that we do not need and which cause bugs (e.g. in |
115 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
116 | # suppresses any "Segmentation fault" message there. '((' could | |
117 | # trigger a bug in pdksh 5.2.14. | |
118 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
119 | do eval test x\${$as_var+set} = xset \ | |
120 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
e1052144 | 121 | done |
b0cacab0 TT |
122 | PS1='$ ' |
123 | PS2='> ' | |
124 | PS4='+ ' | |
125 | ||
126 | # NLS nuisances. | |
39fd3d4f SJR |
127 | LC_ALL=C |
128 | export LC_ALL | |
129 | LANGUAGE=C | |
130 | export LANGUAGE | |
b0cacab0 | 131 | |
57aa50d4 TT |
132 | # CDPATH. |
133 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
134 | ||
d6a4bcb5 TB |
135 | # Use a proper internal environment variable to ensure we don't fall |
136 | # into an infinite loop, continuously re-executing ourselves. | |
137 | if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then | |
138 | _as_can_reexec=no; export _as_can_reexec; | |
139 | # We cannot yet assume a decent shell, so we have to provide a | |
140 | # neutralization value for shells without unset; and this also | |
141 | # works around shells that cannot unset nonexistent variables. | |
142 | # Preserve -v and -x to the replacement shell. | |
143 | BASH_ENV=/dev/null | |
144 | ENV=/dev/null | |
145 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV | |
146 | case $- in # (((( | |
147 | *v*x* | *x*v* ) as_opts=-vx ;; | |
148 | *v* ) as_opts=-v ;; | |
149 | *x* ) as_opts=-x ;; | |
150 | * ) as_opts= ;; | |
151 | esac | |
152 | exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} | |
153 | # Admittedly, this is quite paranoid, since all the known shells bail | |
154 | # out after a failed `exec'. | |
155 | $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 | |
156 | as_fn_exit 255 | |
157 | fi | |
158 | # We don't want this to propagate to other subprocesses. | |
159 | { _as_can_reexec=; unset _as_can_reexec;} | |
57aa50d4 TT |
160 | if test "x$CONFIG_SHELL" = x; then |
161 | as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : | |
162 | emulate sh | |
163 | NULLCMD=: | |
164 | # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which | |
165 | # is contrary to our usage. Disable this feature. | |
166 | alias -g '\${1+\"\$@\"}'='\"\$@\"' | |
167 | setopt NO_GLOB_SUBST | |
168 | else | |
169 | case \`(set -o) 2>/dev/null\` in #( | |
170 | *posix*) : | |
171 | set -o posix ;; #( | |
172 | *) : | |
173 | ;; | |
174 | esac | |
175 | fi | |
176 | " | |
177 | as_required="as_fn_return () { (exit \$1); } | |
178 | as_fn_success () { as_fn_return 0; } | |
179 | as_fn_failure () { as_fn_return 1; } | |
180 | as_fn_ret_success () { return 0; } | |
181 | as_fn_ret_failure () { return 1; } | |
182 | ||
183 | exitcode=0 | |
184 | as_fn_success || { exitcode=1; echo as_fn_success failed.; } | |
185 | as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } | |
186 | as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } | |
187 | as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } | |
188 | if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : | |
189 | ||
190 | else | |
191 | exitcode=1; echo positional parameters were not saved. | |
192 | fi | |
d6a4bcb5 TB |
193 | test x\$exitcode = x0 || exit 1 |
194 | test -x / || exit 1" | |
57aa50d4 TT |
195 | as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO |
196 | as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO | |
197 | eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && | |
198 | test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 | |
199 | test \$(( 1 + 1 )) = 2 || exit 1" | |
200 | if (eval "$as_required") 2>/dev/null; then : | |
201 | as_have_required=yes | |
202 | else | |
203 | as_have_required=no | |
204 | fi | |
205 | if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : | |
206 | ||
207 | else | |
208 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
209 | as_found=false | |
210 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
211 | do | |
212 | IFS=$as_save_IFS | |
213 | test -z "$as_dir" && as_dir=. | |
214 | as_found=: | |
215 | case $as_dir in #( | |
216 | /*) | |
217 | for as_base in sh bash ksh sh5; do | |
218 | # Try only shells that exist, to save several forks. | |
219 | as_shell=$as_dir/$as_base | |
220 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && | |
221 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : | |
222 | CONFIG_SHELL=$as_shell as_have_required=yes | |
223 | if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : | |
224 | break 2 | |
225 | fi | |
226 | fi | |
227 | done;; | |
228 | esac | |
229 | as_found=false | |
230 | done | |
231 | $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && | |
232 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : | |
233 | CONFIG_SHELL=$SHELL as_have_required=yes | |
234 | fi; } | |
235 | IFS=$as_save_IFS | |
236 | ||
237 | ||
238 | if test "x$CONFIG_SHELL" != x; 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'. | |
256 | $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 | |
257 | exit 255 | |
57aa50d4 TT |
258 | fi |
259 | ||
260 | if test x$as_have_required = xno; then : | |
261 | $as_echo "$0: This script requires a shell more modern than all" | |
262 | $as_echo "$0: the shells that I found on your system." | |
263 | if test x${ZSH_VERSION+set} = xset ; then | |
264 | $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" | |
265 | $as_echo "$0: be upgraded to zsh 4.3.4 or later." | |
266 | else | |
267 | $as_echo "$0: Please tell bug-autoconf@gnu.org about your system, | |
268 | $0: including any error possibly output before this | |
269 | $0: message. Then install a modern shell, or manually run | |
270 | $0: the script under such a shell if you do have one." | |
271 | fi | |
272 | exit 1 | |
273 | fi | |
274 | fi | |
275 | fi | |
276 | SHELL=${CONFIG_SHELL-/bin/sh} | |
277 | export SHELL | |
278 | # Unset more variables known to interfere with behavior of common tools. | |
279 | CLICOLOR_FORCE= GREP_OPTIONS= | |
280 | unset CLICOLOR_FORCE GREP_OPTIONS | |
281 | ||
282 | ## --------------------- ## | |
283 | ## M4sh Shell Functions. ## | |
284 | ## --------------------- ## | |
285 | # as_fn_unset VAR | |
286 | # --------------- | |
287 | # Portably unset VAR. | |
288 | as_fn_unset () | |
289 | { | |
290 | { eval $1=; unset $1;} | |
291 | } | |
292 | as_unset=as_fn_unset | |
293 | ||
294 | # as_fn_set_status STATUS | |
295 | # ----------------------- | |
296 | # Set $? to STATUS, without forking. | |
297 | as_fn_set_status () | |
298 | { | |
299 | return $1 | |
300 | } # as_fn_set_status | |
301 | ||
302 | # as_fn_exit STATUS | |
303 | # ----------------- | |
304 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
305 | as_fn_exit () | |
306 | { | |
307 | set +e | |
308 | as_fn_set_status $1 | |
309 | exit $1 | |
310 | } # as_fn_exit | |
311 | ||
312 | # as_fn_mkdir_p | |
313 | # ------------- | |
314 | # Create "$as_dir" as a directory, including parents if necessary. | |
315 | as_fn_mkdir_p () | |
316 | { | |
317 | ||
318 | case $as_dir in #( | |
319 | -*) as_dir=./$as_dir;; | |
320 | esac | |
321 | test -d "$as_dir" || eval $as_mkdir_p || { | |
322 | as_dirs= | |
323 | while :; do | |
324 | case $as_dir in #( | |
325 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
326 | *) as_qdir=$as_dir;; | |
327 | esac | |
328 | as_dirs="'$as_qdir' $as_dirs" | |
329 | as_dir=`$as_dirname -- "$as_dir" || | |
330 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
331 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
332 | X"$as_dir" : 'X\(//\)$' \| \ | |
333 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
334 | $as_echo X"$as_dir" | | |
335 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
336 | s//\1/ | |
337 | q | |
338 | } | |
339 | /^X\(\/\/\)[^/].*/{ | |
340 | s//\1/ | |
341 | q | |
342 | } | |
343 | /^X\(\/\/\)$/{ | |
344 | s//\1/ | |
345 | q | |
346 | } | |
347 | /^X\(\/\).*/{ | |
348 | s//\1/ | |
349 | q | |
350 | } | |
351 | s/.*/./; q'` | |
352 | test -d "$as_dir" && break | |
353 | done | |
354 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
d6a4bcb5 | 355 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
57aa50d4 TT |
356 | |
357 | ||
358 | } # as_fn_mkdir_p | |
d6a4bcb5 TB |
359 | |
360 | # as_fn_executable_p FILE | |
361 | # ----------------------- | |
362 | # Test if FILE is an executable regular file. | |
363 | as_fn_executable_p () | |
364 | { | |
365 | test -f "$1" && test -x "$1" | |
366 | } # as_fn_executable_p | |
57aa50d4 TT |
367 | # as_fn_append VAR VALUE |
368 | # ---------------------- | |
369 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
370 | # advantage of any shell optimizations that allow amortized linear growth over | |
371 | # repeated appends, instead of the typical quadratic growth present in naive | |
372 | # implementations. | |
373 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
374 | eval 'as_fn_append () | |
375 | { | |
376 | eval $1+=\$2 | |
377 | }' | |
378 | else | |
379 | as_fn_append () | |
380 | { | |
381 | eval $1=\$$1\$2 | |
382 | } | |
383 | fi # as_fn_append | |
384 | ||
385 | # as_fn_arith ARG... | |
386 | # ------------------ | |
387 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
388 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
389 | # must be portable across $(()) and expr. | |
390 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
391 | eval 'as_fn_arith () | |
392 | { | |
393 | as_val=$(( $* )) | |
394 | }' | |
395 | else | |
396 | as_fn_arith () | |
397 | { | |
398 | as_val=`expr "$@" || test $? -eq 1` | |
399 | } | |
400 | fi # as_fn_arith | |
401 | ||
402 | ||
d6a4bcb5 TB |
403 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
404 | # ---------------------------------------- | |
57aa50d4 TT |
405 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
406 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
d6a4bcb5 | 407 | # script with STATUS, using 1 if that was 0. |
57aa50d4 TT |
408 | as_fn_error () |
409 | { | |
d6a4bcb5 TB |
410 | as_status=$1; test $as_status -eq 0 && as_status=1 |
411 | if test "$4"; then | |
412 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
413 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | |
57aa50d4 | 414 | fi |
d6a4bcb5 | 415 | $as_echo "$as_me: error: $2" >&2 |
57aa50d4 TT |
416 | as_fn_exit $as_status |
417 | } # as_fn_error | |
418 | ||
e1052144 TT |
419 | if expr a : '\(a\)' >/dev/null 2>&1 && |
420 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
b0cacab0 TT |
421 | as_expr=expr |
422 | else | |
423 | as_expr=false | |
424 | fi | |
425 | ||
e1052144 | 426 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
b0cacab0 TT |
427 | as_basename=basename |
428 | else | |
429 | as_basename=false | |
430 | fi | |
431 | ||
57aa50d4 TT |
432 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
433 | as_dirname=dirname | |
434 | else | |
435 | as_dirname=false | |
436 | fi | |
b0cacab0 | 437 | |
e1052144 | 438 | as_me=`$as_basename -- "$0" || |
b0cacab0 TT |
439 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
440 | X"$0" : 'X\(//\)$' \| \ | |
e1052144 | 441 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
39fd3d4f | 442 | $as_echo X/"$0" | |
e1052144 TT |
443 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
444 | s//\1/ | |
445 | q | |
446 | } | |
447 | /^X\/\(\/\/\)$/{ | |
448 | s//\1/ | |
449 | q | |
450 | } | |
451 | /^X\/\(\/\).*/{ | |
452 | s//\1/ | |
453 | q | |
454 | } | |
455 | s/.*/./; q'` | |
b0cacab0 | 456 | |
57aa50d4 TT |
457 | # Avoid depending upon Character Ranges. |
458 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
459 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
460 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
461 | as_cr_digits='0123456789' | |
462 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
b0cacab0 | 463 | |
b0cacab0 | 464 | |
57aa50d4 TT |
465 | as_lineno_1=$LINENO as_lineno_1a=$LINENO |
466 | as_lineno_2=$LINENO as_lineno_2a=$LINENO | |
467 | eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && | |
468 | test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { | |
469 | # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) | |
470 | sed -n ' | |
471 | p | |
472 | /[$]LINENO/= | |
473 | ' <$as_myself | | |
474 | sed ' | |
475 | s/[$]LINENO.*/&-/ | |
476 | t lineno | |
477 | b | |
478 | :lineno | |
479 | N | |
480 | :loop | |
481 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
482 | t loop | |
483 | s/-\n.*// | |
484 | ' >$as_me.lineno && | |
485 | chmod +x "$as_me.lineno" || | |
486 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } | |
e1052144 | 487 | |
d6a4bcb5 TB |
488 | # If we had to re-execute with $CONFIG_SHELL, we're ensured to have |
489 | # already done that, so ensure we don't try to do so again and fall | |
490 | # in an infinite loop. This has already happened in practice. | |
491 | _as_can_reexec=no; export _as_can_reexec | |
57aa50d4 TT |
492 | # Don't try to exec as it changes $[0], causing all sort of problems |
493 | # (the dirname of $[0] is not the place where we might find the | |
494 | # original and so on. Autoconf is especially sensitive to this). | |
495 | . "./$as_me.lineno" | |
496 | # Exit status is that of the last command. | |
497 | exit | |
e1052144 TT |
498 | } |
499 | ||
57aa50d4 TT |
500 | ECHO_C= ECHO_N= ECHO_T= |
501 | case `echo -n x` in #((((( | |
502 | -n*) | |
503 | case `echo 'xy\c'` in | |
504 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
505 | xy) ECHO_C='\c';; | |
506 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
507 | ECHO_T=' ';; | |
508 | esac;; | |
509 | *) | |
510 | ECHO_N='-n';; | |
511 | esac | |
b0cacab0 | 512 | |
57aa50d4 TT |
513 | rm -f conf$$ conf$$.exe conf$$.file |
514 | if test -d conf$$.dir; then | |
515 | rm -f conf$$.dir/conf$$.file | |
516 | else | |
517 | rm -f conf$$.dir | |
518 | mkdir conf$$.dir 2>/dev/null | |
e1052144 | 519 | fi |
57aa50d4 TT |
520 | if (echo >conf$$.file) 2>/dev/null; then |
521 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
522 | as_ln_s='ln -s' | |
523 | # ... but there are two gotchas: | |
524 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
525 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
d6a4bcb5 | 526 | # In both cases, we have to default to `cp -pR'. |
57aa50d4 | 527 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
d6a4bcb5 | 528 | as_ln_s='cp -pR' |
57aa50d4 TT |
529 | elif ln conf$$.file conf$$ 2>/dev/null; then |
530 | as_ln_s=ln | |
531 | else | |
d6a4bcb5 | 532 | as_ln_s='cp -pR' |
57aa50d4 | 533 | fi |
e1052144 | 534 | else |
d6a4bcb5 | 535 | as_ln_s='cp -pR' |
e1052144 | 536 | fi |
57aa50d4 TT |
537 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
538 | rmdir conf$$.dir 2>/dev/null | |
b0cacab0 | 539 | |
57aa50d4 TT |
540 | if mkdir -p . 2>/dev/null; then |
541 | as_mkdir_p='mkdir -p "$as_dir"' | |
542 | else | |
543 | test -d ./-p && rmdir ./-p | |
544 | as_mkdir_p=false | |
e1052144 TT |
545 | fi |
546 | ||
d6a4bcb5 TB |
547 | as_test_x='test -x' |
548 | as_executable_p=as_fn_executable_p | |
e1052144 | 549 | |
57aa50d4 TT |
550 | # Sed expression to map a string onto a valid CPP name. |
551 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
e1052144 | 552 | |
57aa50d4 TT |
553 | # Sed expression to map a string onto a valid variable name. |
554 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
e1052144 | 555 | |
29a5deed | 556 | |
61ef2474 TT |
557 | test -n "$DJDIR" || exec 7<&0 </dev/null |
558 | exec 6>&1 | |
b0cacab0 TT |
559 | |
560 | # Name of the host. | |
d6a4bcb5 | 561 | # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, |
b0cacab0 TT |
562 | # so uname gets run too. |
563 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
50e1e10f | 564 | |
b0cacab0 TT |
565 | # |
566 | # Initializations. | |
567 | # | |
50e1e10f | 568 | ac_default_prefix=/usr/local |
e1052144 | 569 | ac_clean_files= |
b0cacab0 | 570 | ac_config_libobj_dir=. |
e1052144 | 571 | LIBOBJS= |
b0cacab0 TT |
572 | cross_compiling=no |
573 | subdirs= | |
574 | MFLAGS= | |
575 | MAKEFLAGS= | |
b0cacab0 | 576 | |
b0cacab0 TT |
577 | # Identity of this package. |
578 | PACKAGE_NAME= | |
579 | PACKAGE_TARNAME= | |
580 | PACKAGE_VERSION= | |
581 | PACKAGE_STRING= | |
582 | PACKAGE_BUGREPORT= | |
57aa50d4 | 583 | PACKAGE_URL= |
b0cacab0 TT |
584 | |
585 | ac_unique_file="version.h" | |
586 | # Factoring default headers for most tests. | |
587 | ac_includes_default="\ | |
588 | #include <stdio.h> | |
29a5deed | 589 | #ifdef HAVE_SYS_TYPES_H |
b0cacab0 TT |
590 | # include <sys/types.h> |
591 | #endif | |
29a5deed | 592 | #ifdef HAVE_SYS_STAT_H |
b0cacab0 TT |
593 | # include <sys/stat.h> |
594 | #endif | |
29a5deed | 595 | #ifdef STDC_HEADERS |
b0cacab0 TT |
596 | # include <stdlib.h> |
597 | # include <stddef.h> | |
598 | #else | |
29a5deed | 599 | # ifdef HAVE_STDLIB_H |
b0cacab0 TT |
600 | # include <stdlib.h> |
601 | # endif | |
602 | #endif | |
29a5deed TT |
603 | #ifdef HAVE_STRING_H |
604 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H | |
b0cacab0 TT |
605 | # include <memory.h> |
606 | # endif | |
607 | # include <string.h> | |
608 | #endif | |
29a5deed | 609 | #ifdef HAVE_STRINGS_H |
b0cacab0 TT |
610 | # include <strings.h> |
611 | #endif | |
29a5deed | 612 | #ifdef HAVE_INTTYPES_H |
b0cacab0 | 613 | # include <inttypes.h> |
e1052144 | 614 | #endif |
29a5deed | 615 | #ifdef HAVE_STDINT_H |
e1052144 | 616 | # include <stdint.h> |
b0cacab0 | 617 | #endif |
29a5deed | 618 | #ifdef HAVE_UNISTD_H |
b0cacab0 TT |
619 | # include <unistd.h> |
620 | #endif" | |
621 | ||
93613951 | 622 | gt_needs= |
61ef2474 | 623 | ac_header_list= |
93613951 TT |
624 | gl_use_threads_default= |
625 | ac_func_list= | |
39fd3d4f | 626 | ac_subst_vars='LTLIBOBJS |
e1052144 | 627 | LIBOBJS |
a2df5894 DW |
628 | systemd_system_unit_dir |
629 | have_systemd | |
630 | systemd_LIBS | |
631 | systemd_CFLAGS | |
632 | crond_dir | |
633 | have_crond | |
5ce368f0 DW |
634 | pkg_udev_rules_dir |
635 | have_udev | |
636 | udev_LIBS | |
637 | udev_CFLAGS | |
fd1677e8 TT |
638 | LDFLAGS_SHLIB |
639 | CFLAGS_STLIB | |
640 | CFLAGS_SHLIB | |
39fd3d4f SJR |
641 | BUILD_LDFLAGS |
642 | BUILD_CFLAGS | |
d1154eb4 | 643 | INCLUDES |
39fd3d4f | 644 | DO_TEST_SUITE |
fd1677e8 | 645 | LDFLAGS_STATIC |
39fd3d4f SJR |
646 | root_sysconfdir |
647 | root_libdir | |
648 | root_sbindir | |
649 | root_bindir | |
650 | root_prefix | |
5ce368f0 | 651 | E2SCRUB_CMT |
39fd3d4f SJR |
652 | UNIX_CMT |
653 | CYGWIN_CMT | |
654 | LINUX_CMT | |
bcca786b DW |
655 | threadsan_ldflags |
656 | threadsan_cflags | |
657 | have_threadsan | |
5e666e3d DW |
658 | addrsan_ldflags |
659 | addrsan_cflags | |
660 | have_addrsan | |
1c2a76ae DW |
661 | ubsan_ldflags |
662 | ubsan_cflags | |
663 | have_ubsan | |
4aece328 DW |
664 | lto_ldflags |
665 | lto_cflags | |
666 | have_lto | |
667 | gcc_ranlib | |
668 | gcc_ar | |
39fd3d4f SJR |
669 | UNI_DIFF_OPTS |
670 | SEM_INIT_LIB | |
81cbf1ef DW |
671 | FUSE_CMT |
672 | FUSE_LIB | |
c94da047 | 673 | CLOCK_GETTIME_LIB |
b291c11f | 674 | MAGIC_LIB |
39fd3d4f | 675 | SOCKET_LIB |
2dd680f3 | 676 | SIZEOF_TIME_T |
cc68e8a6 | 677 | SIZEOF_OFF_T |
39fd3d4f SJR |
678 | SIZEOF_LONG_LONG |
679 | SIZEOF_LONG | |
680 | SIZEOF_INT | |
681 | SIZEOF_SHORT | |
ec3a69bb | 682 | DD |
39fd3d4f SJR |
683 | BUILD_CC |
684 | MAKEINFO | |
685 | STRIP | |
686 | AR | |
687 | LDCONFIG | |
688 | PERL | |
39fd3d4f SJR |
689 | AWK |
690 | CHMOD | |
691 | RM | |
692 | CP | |
693 | MV | |
694 | LN_S | |
695 | LN | |
bcb915b0 TT |
696 | ifNotGNUmake |
697 | ifGNUmake | |
39fd3d4f SJR |
698 | BINARY_TYPE |
699 | POSUB | |
700 | LTLIBINTL | |
701 | LIBINTL | |
702 | INTLLIBS | |
703 | INTL_LIBTOOL_SUFFIX_PREFIX | |
704 | INTLOBJS | |
705 | GENCAT | |
706 | INSTOBJEXT | |
707 | DATADIRNAME | |
708 | CATOBJEXT | |
709 | USE_INCLUDED_LIBINTL | |
710 | BUILD_INCLUDED_LIBINTL | |
93613951 TT |
711 | LTLIBC |
712 | WINDRES | |
713 | WOE32 | |
714 | WOE32DLL | |
39fd3d4f | 715 | HAVE_WPRINTF |
93613951 | 716 | HAVE_NEWLOCALE |
39fd3d4f SJR |
717 | HAVE_SNPRINTF |
718 | HAVE_ASPRINTF | |
719 | HAVE_POSIX_PRINTF | |
93613951 TT |
720 | INTL_DEFAULT_VERBOSITY |
721 | INTL_MACOSX_LIBS | |
39fd3d4f | 722 | GLIBC21 |
93613951 TT |
723 | INTLBISON |
724 | LTLIBICONV | |
725 | LIBICONV | |
726 | LTLIBMULTITHREAD | |
727 | LIBMULTITHREAD | |
728 | LTLIBTHREAD | |
729 | LIBTHREAD | |
730 | LIBPTH_PREFIX | |
731 | LTLIBPTH | |
732 | LIBPTH | |
733 | PRI_MACROS_BROKEN | |
39fd3d4f | 734 | ALLOCA |
93613951 TT |
735 | HAVE_VISIBILITY |
736 | CFLAG_VISIBILITY | |
39fd3d4f | 737 | RANLIB |
93613951 TT |
738 | GLIBC2 |
739 | XGETTEXT_EXTRA_OPTIONS | |
39fd3d4f | 740 | MSGMERGE |
93613951 | 741 | XGETTEXT_015 |
39fd3d4f | 742 | XGETTEXT |
93613951 TT |
743 | GMSGFMT_015 |
744 | MSGFMT_015 | |
39fd3d4f SJR |
745 | GMSGFMT |
746 | MSGFMT | |
93613951 | 747 | GETTEXT_MACRO_VERSION |
39fd3d4f | 748 | USE_NLS |
93613951 TT |
749 | SED |
750 | MKDIR_P | |
39fd3d4f SJR |
751 | INSTALL_DATA |
752 | INSTALL_SCRIPT | |
753 | INSTALL_PROGRAM | |
754 | SET_MAKE | |
755 | VERSION | |
756 | PACKAGE | |
757 | GETTEXT_PACKAGE | |
749f0712 TT |
758 | TDB_MAN_COMMENT |
759 | TDB_CMT | |
39fd3d4f SJR |
760 | UUIDD_CMT |
761 | E2INITRD_MAN | |
762 | E2INITRD_PROG | |
763 | FSCK_MAN | |
764 | FSCK_PROG | |
8d9c50c5 | 765 | DEFRAG_CMT |
39fd3d4f SJR |
766 | RESIZER_CMT |
767 | IMAGER_CMT | |
768 | DEBUGFS_CMT | |
feb235e0 | 769 | SUBSET_CMT |
0afb9be6 | 770 | ALL_CMT |
39fd3d4f SJR |
771 | BLKID_CMT |
772 | DEPPROFILED_LIBBLKID | |
773 | PROFILED_LIBBLKID | |
774 | DEPSTATIC_LIBBLKID | |
775 | STATIC_LIBBLKID | |
776 | DEPLIBBLKID | |
777 | LIBBLKID | |
778 | UUID_CMT | |
779 | DEPPROFILED_LIBUUID | |
780 | PROFILED_LIBUUID | |
781 | DEPSTATIC_LIBUUID | |
782 | STATIC_LIBUUID | |
783 | DEPLIBUUID | |
784 | LIBUUID | |
93613951 TT |
785 | PKG_CONFIG_LIBDIR |
786 | PKG_CONFIG_PATH | |
39fd3d4f | 787 | PKG_CONFIG |
b9e66a18 | 788 | DEV_FEATURES_CMT |
39fd3d4f SJR |
789 | TEST_IO_CMT |
790 | PRIVATE_LIBS_CMT | |
791 | LDFLAG_DYNAMIC | |
792 | PROFILED_LIB_EXT | |
793 | STATIC_LIB_EXT | |
794 | LIB_EXT | |
39fd3d4f SJR |
795 | PROFILE_CMT |
796 | BSDLIB_CMT | |
797 | ELF_CMT | |
c13351f6 | 798 | Q |
c1986ecb | 799 | ES |
c13351f6 | 800 | E |
5aa6c3f6 | 801 | LINK_BUILD_FLAGS |
183c73b0 | 802 | SYMLINK_RELATIVE |
5aa6c3f6 | 803 | LINK_INSTALL_FLAGS |
39fd3d4f | 804 | MAINTAINER_CMT |
93613951 TT |
805 | EGREP |
806 | GREP | |
39fd3d4f | 807 | CPP |
9b3018a8 | 808 | RDYNAMIC |
57aa50d4 | 809 | DLOPEN_LIB |
39fd3d4f SJR |
810 | OBJEXT |
811 | EXEEXT | |
812 | ac_ct_CC | |
813 | CPPFLAGS | |
814 | LDFLAGS | |
815 | CFLAGS | |
816 | CC | |
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 | |
831 | target_alias | |
832 | host_alias | |
833 | build_alias | |
834 | LIBS | |
835 | ECHO_T | |
836 | ECHO_N | |
837 | ECHO_C | |
838 | DEFS | |
839 | mandir | |
840 | localedir | |
841 | libdir | |
842 | psdir | |
843 | pdfdir | |
844 | dvidir | |
845 | htmldir | |
846 | infodir | |
847 | docdir | |
848 | oldincludedir | |
849 | includedir | |
2ab53829 | 850 | runstatedir |
39fd3d4f SJR |
851 | localstatedir |
852 | sharedstatedir | |
853 | sysconfdir | |
854 | datadir | |
855 | datarootdir | |
856 | libexecdir | |
857 | sbindir | |
858 | bindir | |
859 | program_transform_name | |
860 | prefix | |
861 | exec_prefix | |
57aa50d4 | 862 | PACKAGE_URL |
39fd3d4f SJR |
863 | PACKAGE_BUGREPORT |
864 | PACKAGE_STRING | |
865 | PACKAGE_VERSION | |
866 | PACKAGE_TARNAME | |
867 | PACKAGE_NAME | |
868 | PATH_SEPARATOR | |
869 | SHELL' | |
e1052144 TT |
870 | ac_subst_files='MCONFIG |
871 | MAKEFILE_ELF | |
872 | MAKEFILE_BSDLIB | |
873 | MAKEFILE_PROFILE | |
e1052144 | 874 | MAKEFILE_LIBRARY |
488c75a6 TT |
875 | ASM_TYPES_HEADER |
876 | PUBLIC_CONFIG_HEADER' | |
39fd3d4f SJR |
877 | ac_user_opts=' |
878 | enable_option_checking | |
879 | with_diet_libc | |
880 | with_cc | |
39fd3d4f SJR |
881 | with_ccopts |
882 | with_ldopts | |
883 | with_root_prefix | |
884 | enable_maintainer_mode | |
5aa6c3f6 | 885 | enable_symlink_install |
91d11da1 | 886 | enable_relative_symlinks |
183c73b0 | 887 | enable_symlink_relative_symlinks |
5aa6c3f6 | 888 | enable_symlink_build |
c13351f6 | 889 | enable_verbose_makecmds |
39fd3d4f SJR |
890 | enable_elf_shlibs |
891 | enable_bsd_shlibs | |
892 | enable_profile | |
fedfb27f | 893 | enable_gcov |
fd1677e8 | 894 | enable_hardening |
39fd3d4f SJR |
895 | enable_jbd_debug |
896 | enable_blkid_debug | |
897 | enable_testio_debug | |
b9e66a18 | 898 | enable_developer_features |
39fd3d4f SJR |
899 | enable_libuuid |
900 | enable_libblkid | |
0afb9be6 | 901 | enable_subset |
3df6014a | 902 | enable_backtrace |
39fd3d4f SJR |
903 | enable_debugfs |
904 | enable_imager | |
905 | enable_resizer | |
8d9c50c5 | 906 | enable_defrag |
39fd3d4f SJR |
907 | enable_fsck |
908 | enable_e2initrd_helper | |
909 | enable_tls | |
910 | enable_uuidd | |
d6a4bcb5 | 911 | enable_mmp |
749f0712 | 912 | enable_tdb |
1625bf42 TB |
913 | enable_bmap_stats |
914 | enable_bmap_stats_ops | |
39fd3d4f | 915 | enable_nls |
93613951 | 916 | enable_threads |
39fd3d4f SJR |
917 | with_gnu_ld |
918 | enable_rpath | |
93613951 | 919 | with_libpth_prefix |
39fd3d4f SJR |
920 | with_libiconv_prefix |
921 | with_included_gettext | |
922 | with_libintl_prefix | |
81cbf1ef | 923 | enable_fuse2fs |
4aece328 | 924 | enable_lto |
1c2a76ae | 925 | enable_ubsan |
5e666e3d | 926 | enable_addrsan |
bcca786b | 927 | enable_threadsan |
55e00a25 | 928 | with_multiarch |
5ce368f0 | 929 | with_udev_rules_dir |
a2df5894 DW |
930 | with_crond_dir |
931 | with_systemd_unit_dir | |
39fd3d4f | 932 | ' |
e1052144 TT |
933 | ac_precious_vars='build_alias |
934 | host_alias | |
935 | target_alias | |
936 | CC | |
937 | CFLAGS | |
938 | LDFLAGS | |
29a5deed | 939 | LIBS |
e1052144 | 940 | CPPFLAGS |
14b596d4 | 941 | CPP |
93613951 TT |
942 | PKG_CONFIG |
943 | PKG_CONFIG_PATH | |
5ce368f0 DW |
944 | PKG_CONFIG_LIBDIR |
945 | udev_CFLAGS | |
a2df5894 DW |
946 | udev_LIBS |
947 | systemd_CFLAGS | |
948 | systemd_LIBS' | |
e1052144 | 949 | |
50e1e10f TT |
950 | |
951 | # Initialize some variables set by options. | |
b0cacab0 TT |
952 | ac_init_help= |
953 | ac_init_version=false | |
39fd3d4f SJR |
954 | ac_unrecognized_opts= |
955 | ac_unrecognized_sep= | |
50e1e10f TT |
956 | # The variables have the same names as the options, with |
957 | # dashes changed to underlines. | |
b0cacab0 | 958 | cache_file=/dev/null |
50e1e10f | 959 | exec_prefix=NONE |
50e1e10f | 960 | no_create= |
50e1e10f TT |
961 | no_recursion= |
962 | prefix=NONE | |
963 | program_prefix=NONE | |
964 | program_suffix=NONE | |
965 | program_transform_name=s,x,x, | |
966 | silent= | |
967 | site= | |
968 | srcdir= | |
50e1e10f TT |
969 | verbose= |
970 | x_includes=NONE | |
971 | x_libraries=NONE | |
b0cacab0 TT |
972 | |
973 | # Installation directory options. | |
974 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
975 | # and all the variables that are supposed to be based on exec_prefix | |
976 | # by default will actually change. | |
977 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
e1052144 | 978 | # (The list follows the same order as the GNU Coding Standards.) |
21c84b71 TT |
979 | bindir='${exec_prefix}/bin' |
980 | sbindir='${exec_prefix}/sbin' | |
981 | libexecdir='${exec_prefix}/libexec' | |
e1052144 TT |
982 | datarootdir='${prefix}/share' |
983 | datadir='${datarootdir}' | |
21c84b71 TT |
984 | sysconfdir='${prefix}/etc' |
985 | sharedstatedir='${prefix}/com' | |
986 | localstatedir='${prefix}/var' | |
2ab53829 | 987 | runstatedir='${localstatedir}/run' |
21c84b71 TT |
988 | includedir='${prefix}/include' |
989 | oldincludedir='/usr/include' | |
e1052144 TT |
990 | docdir='${datarootdir}/doc/${PACKAGE}' |
991 | infodir='${datarootdir}/info' | |
992 | htmldir='${docdir}' | |
993 | dvidir='${docdir}' | |
994 | pdfdir='${docdir}' | |
995 | psdir='${docdir}' | |
996 | libdir='${exec_prefix}/lib' | |
997 | localedir='${datarootdir}/locale' | |
998 | mandir='${datarootdir}/man' | |
50e1e10f | 999 | |
50e1e10f | 1000 | ac_prev= |
e1052144 | 1001 | ac_dashdash= |
50e1e10f TT |
1002 | for ac_option |
1003 | do | |
50e1e10f TT |
1004 | # If the previous option needs an argument, assign it. |
1005 | if test -n "$ac_prev"; then | |
e1052144 | 1006 | eval $ac_prev=\$ac_option |
50e1e10f TT |
1007 | ac_prev= |
1008 | continue | |
1009 | fi | |
1010 | ||
e1052144 | 1011 | case $ac_option in |
d6a4bcb5 TB |
1012 | *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
1013 | *=) ac_optarg= ;; | |
1014 | *) ac_optarg=yes ;; | |
e1052144 | 1015 | esac |
50e1e10f TT |
1016 | |
1017 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
1018 | ||
e1052144 TT |
1019 | case $ac_dashdash$ac_option in |
1020 | --) | |
1021 | ac_dashdash=yes ;; | |
50e1e10f | 1022 | |
21c84b71 TT |
1023 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
1024 | ac_prev=bindir ;; | |
1025 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
b0cacab0 | 1026 | bindir=$ac_optarg ;; |
21c84b71 TT |
1027 | |
1028 | -build | --build | --buil | --bui | --bu) | |
b0cacab0 | 1029 | ac_prev=build_alias ;; |
21c84b71 | 1030 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
b0cacab0 | 1031 | build_alias=$ac_optarg ;; |
50e1e10f TT |
1032 | |
1033 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
1034 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
1035 | ac_prev=cache_file ;; | |
1036 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
1037 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
b0cacab0 TT |
1038 | cache_file=$ac_optarg ;; |
1039 | ||
1040 | --config-cache | -C) | |
1041 | cache_file=config.cache ;; | |
50e1e10f | 1042 | |
e1052144 | 1043 | -datadir | --datadir | --datadi | --datad) |
21c84b71 | 1044 | ac_prev=datadir ;; |
e1052144 | 1045 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
b0cacab0 | 1046 | datadir=$ac_optarg ;; |
21c84b71 | 1047 | |
e1052144 TT |
1048 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
1049 | | --dataroo | --dataro | --datar) | |
1050 | ac_prev=datarootdir ;; | |
1051 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
1052 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
1053 | datarootdir=$ac_optarg ;; | |
1054 | ||
50e1e10f | 1055 | -disable-* | --disable-*) |
39fd3d4f | 1056 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
50e1e10f | 1057 | # Reject names that are not valid shell variable names. |
39fd3d4f | 1058 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
d6a4bcb5 | 1059 | as_fn_error $? "invalid feature name: $ac_useropt" |
39fd3d4f SJR |
1060 | ac_useropt_orig=$ac_useropt |
1061 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1062 | case $ac_user_opts in | |
1063 | *" | |
1064 | "enable_$ac_useropt" | |
1065 | "*) ;; | |
1066 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | |
1067 | ac_unrecognized_sep=', ';; | |
1068 | esac | |
1069 | eval enable_$ac_useropt=no ;; | |
e1052144 TT |
1070 | |
1071 | -docdir | --docdir | --docdi | --doc | --do) | |
1072 | ac_prev=docdir ;; | |
1073 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
1074 | docdir=$ac_optarg ;; | |
1075 | ||
1076 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
1077 | ac_prev=dvidir ;; | |
1078 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
1079 | dvidir=$ac_optarg ;; | |
50e1e10f TT |
1080 | |
1081 | -enable-* | --enable-*) | |
39fd3d4f | 1082 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
50e1e10f | 1083 | # Reject names that are not valid shell variable names. |
39fd3d4f | 1084 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
d6a4bcb5 | 1085 | as_fn_error $? "invalid feature name: $ac_useropt" |
39fd3d4f SJR |
1086 | ac_useropt_orig=$ac_useropt |
1087 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1088 | case $ac_user_opts in | |
1089 | *" | |
1090 | "enable_$ac_useropt" | |
1091 | "*) ;; | |
1092 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | |
1093 | ac_unrecognized_sep=', ';; | |
1094 | esac | |
1095 | eval enable_$ac_useropt=\$ac_optarg ;; | |
50e1e10f TT |
1096 | |
1097 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
1098 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
1099 | | --exec | --exe | --ex) | |
1100 | ac_prev=exec_prefix ;; | |
1101 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
1102 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
1103 | | --exec=* | --exe=* | --ex=*) | |
b0cacab0 | 1104 | exec_prefix=$ac_optarg ;; |
50e1e10f TT |
1105 | |
1106 | -gas | --gas | --ga | --g) | |
1107 | # Obsolete; use --with-gas. | |
1108 | with_gas=yes ;; | |
1109 | ||
b0cacab0 TT |
1110 | -help | --help | --hel | --he | -h) |
1111 | ac_init_help=long ;; | |
1112 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
1113 | ac_init_help=recursive ;; | |
1114 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
1115 | ac_init_help=short ;; | |
50e1e10f TT |
1116 | |
1117 | -host | --host | --hos | --ho) | |
b0cacab0 | 1118 | ac_prev=host_alias ;; |
50e1e10f | 1119 | -host=* | --host=* | --hos=* | --ho=*) |
b0cacab0 | 1120 | host_alias=$ac_optarg ;; |
50e1e10f | 1121 | |
e1052144 TT |
1122 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
1123 | ac_prev=htmldir ;; | |
1124 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
1125 | | --ht=*) | |
1126 | htmldir=$ac_optarg ;; | |
1127 | ||
21c84b71 TT |
1128 | -includedir | --includedir | --includedi | --included | --include \ |
1129 | | --includ | --inclu | --incl | --inc) | |
1130 | ac_prev=includedir ;; | |
1131 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
1132 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
b0cacab0 | 1133 | includedir=$ac_optarg ;; |
21c84b71 TT |
1134 | |
1135 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
1136 | ac_prev=infodir ;; | |
1137 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
b0cacab0 | 1138 | infodir=$ac_optarg ;; |
21c84b71 TT |
1139 | |
1140 | -libdir | --libdir | --libdi | --libd) | |
1141 | ac_prev=libdir ;; | |
1142 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
b0cacab0 | 1143 | libdir=$ac_optarg ;; |
21c84b71 TT |
1144 | |
1145 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
1146 | | --libexe | --libex | --libe) | |
1147 | ac_prev=libexecdir ;; | |
1148 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
1149 | | --libexe=* | --libex=* | --libe=*) | |
b0cacab0 | 1150 | libexecdir=$ac_optarg ;; |
21c84b71 | 1151 | |
e1052144 TT |
1152 | -localedir | --localedir | --localedi | --localed | --locale) |
1153 | ac_prev=localedir ;; | |
1154 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
1155 | localedir=$ac_optarg ;; | |
1156 | ||
21c84b71 | 1157 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
e1052144 | 1158 | | --localstate | --localstat | --localsta | --localst | --locals) |
21c84b71 TT |
1159 | ac_prev=localstatedir ;; |
1160 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
e1052144 | 1161 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
b0cacab0 | 1162 | localstatedir=$ac_optarg ;; |
21c84b71 TT |
1163 | |
1164 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
1165 | ac_prev=mandir ;; | |
1166 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
b0cacab0 | 1167 | mandir=$ac_optarg ;; |
21c84b71 | 1168 | |
50e1e10f TT |
1169 | -nfp | --nfp | --nf) |
1170 | # Obsolete; use --without-fp. | |
1171 | with_fp=no ;; | |
1172 | ||
1173 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
b0cacab0 | 1174 | | --no-cr | --no-c | -n) |
50e1e10f TT |
1175 | no_create=yes ;; |
1176 | ||
1177 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
1178 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
1179 | no_recursion=yes ;; | |
1180 | ||
21c84b71 TT |
1181 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
1182 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
1183 | | --oldin | --oldi | --old | --ol | --o) | |
1184 | ac_prev=oldincludedir ;; | |
1185 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
1186 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
1187 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
b0cacab0 | 1188 | oldincludedir=$ac_optarg ;; |
21c84b71 | 1189 | |
50e1e10f TT |
1190 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
1191 | ac_prev=prefix ;; | |
1192 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
b0cacab0 | 1193 | prefix=$ac_optarg ;; |
50e1e10f TT |
1194 | |
1195 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
1196 | | --program-pre | --program-pr | --program-p) | |
1197 | ac_prev=program_prefix ;; | |
1198 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
1199 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
b0cacab0 | 1200 | program_prefix=$ac_optarg ;; |
50e1e10f TT |
1201 | |
1202 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
1203 | | --program-suf | --program-su | --program-s) | |
1204 | ac_prev=program_suffix ;; | |
1205 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
1206 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
b0cacab0 | 1207 | program_suffix=$ac_optarg ;; |
50e1e10f TT |
1208 | |
1209 | -program-transform-name | --program-transform-name \ | |
1210 | | --program-transform-nam | --program-transform-na \ | |
1211 | | --program-transform-n | --program-transform- \ | |
1212 | | --program-transform | --program-transfor \ | |
1213 | | --program-transfo | --program-transf \ | |
1214 | | --program-trans | --program-tran \ | |
1215 | | --progr-tra | --program-tr | --program-t) | |
1216 | ac_prev=program_transform_name ;; | |
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=*) | |
b0cacab0 | 1224 | program_transform_name=$ac_optarg ;; |
50e1e10f | 1225 | |
e1052144 TT |
1226 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
1227 | ac_prev=pdfdir ;; | |
1228 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
1229 | pdfdir=$ac_optarg ;; | |
1230 | ||
1231 | -psdir | --psdir | --psdi | --psd | --ps) | |
1232 | ac_prev=psdir ;; | |
1233 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
1234 | psdir=$ac_optarg ;; | |
1235 | ||
50e1e10f TT |
1236 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
1237 | | -silent | --silent | --silen | --sile | --sil) | |
1238 | silent=yes ;; | |
1239 | ||
2ab53829 TT |
1240 | -runstatedir | --runstatedir | --runstatedi | --runstated \ |
1241 | | --runstate | --runstat | --runsta | --runst | --runs \ | |
1242 | | --run | --ru | --r) | |
1243 | ac_prev=runstatedir ;; | |
1244 | -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ | |
1245 | | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ | |
1246 | | --run=* | --ru=* | --r=*) | |
1247 | runstatedir=$ac_optarg ;; | |
1248 | ||
21c84b71 TT |
1249 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
1250 | ac_prev=sbindir ;; | |
1251 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
1252 | | --sbi=* | --sb=*) | |
b0cacab0 | 1253 | sbindir=$ac_optarg ;; |
21c84b71 TT |
1254 | |
1255 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
1256 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
1257 | | --sharedst | --shareds | --shared | --share | --shar \ | |
1258 | | --sha | --sh) | |
1259 | ac_prev=sharedstatedir ;; | |
1260 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
1261 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
1262 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
1263 | | --sha=* | --sh=*) | |
b0cacab0 | 1264 | sharedstatedir=$ac_optarg ;; |
21c84b71 | 1265 | |
50e1e10f TT |
1266 | -site | --site | --sit) |
1267 | ac_prev=site ;; | |
1268 | -site=* | --site=* | --sit=*) | |
b0cacab0 | 1269 | site=$ac_optarg ;; |
50e1e10f TT |
1270 | |
1271 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
1272 | ac_prev=srcdir ;; | |
1273 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
b0cacab0 | 1274 | srcdir=$ac_optarg ;; |
50e1e10f | 1275 | |
21c84b71 TT |
1276 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
1277 | | --syscon | --sysco | --sysc | --sys | --sy) | |
1278 | ac_prev=sysconfdir ;; | |
1279 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
1280 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
b0cacab0 | 1281 | sysconfdir=$ac_optarg ;; |
21c84b71 | 1282 | |
50e1e10f | 1283 | -target | --target | --targe | --targ | --tar | --ta | --t) |
b0cacab0 | 1284 | ac_prev=target_alias ;; |
50e1e10f | 1285 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
b0cacab0 | 1286 | target_alias=$ac_optarg ;; |
50e1e10f TT |
1287 | |
1288 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1289 | verbose=yes ;; | |
1290 | ||
b0cacab0 TT |
1291 | -version | --version | --versio | --versi | --vers | -V) |
1292 | ac_init_version=: ;; | |
50e1e10f TT |
1293 | |
1294 | -with-* | --with-*) | |
39fd3d4f | 1295 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
50e1e10f | 1296 | # Reject names that are not valid shell variable names. |
39fd3d4f | 1297 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
d6a4bcb5 | 1298 | as_fn_error $? "invalid package name: $ac_useropt" |
39fd3d4f SJR |
1299 | ac_useropt_orig=$ac_useropt |
1300 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1301 | case $ac_user_opts in | |
1302 | *" | |
1303 | "with_$ac_useropt" | |
1304 | "*) ;; | |
1305 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | |
1306 | ac_unrecognized_sep=', ';; | |
1307 | esac | |
1308 | eval with_$ac_useropt=\$ac_optarg ;; | |
50e1e10f TT |
1309 | |
1310 | -without-* | --without-*) | |
39fd3d4f | 1311 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
50e1e10f | 1312 | # Reject names that are not valid shell variable names. |
39fd3d4f | 1313 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
d6a4bcb5 | 1314 | as_fn_error $? "invalid package name: $ac_useropt" |
39fd3d4f SJR |
1315 | ac_useropt_orig=$ac_useropt |
1316 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1317 | case $ac_user_opts in | |
1318 | *" | |
1319 | "with_$ac_useropt" | |
1320 | "*) ;; | |
1321 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | |
1322 | ac_unrecognized_sep=', ';; | |
1323 | esac | |
1324 | eval with_$ac_useropt=no ;; | |
50e1e10f TT |
1325 | |
1326 | --x) | |
1327 | # Obsolete; use --with-x. | |
1328 | with_x=yes ;; | |
1329 | ||
1330 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1331 | | --x-incl | --x-inc | --x-in | --x-i) | |
1332 | ac_prev=x_includes ;; | |
1333 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1334 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
b0cacab0 | 1335 | x_includes=$ac_optarg ;; |
50e1e10f TT |
1336 | |
1337 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1338 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1339 | ac_prev=x_libraries ;; | |
1340 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1341 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
b0cacab0 | 1342 | x_libraries=$ac_optarg ;; |
50e1e10f | 1343 | |
d6a4bcb5 TB |
1344 | -*) as_fn_error $? "unrecognized option: \`$ac_option' |
1345 | Try \`$0 --help' for more information" | |
50e1e10f TT |
1346 | ;; |
1347 | ||
b0cacab0 TT |
1348 | *=*) |
1349 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1350 | # Reject names that are not valid shell variable names. | |
57aa50d4 TT |
1351 | case $ac_envvar in #( |
1352 | '' | [0-9]* | *[!_$as_cr_alnum]* ) | |
d6a4bcb5 | 1353 | as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; |
57aa50d4 | 1354 | esac |
e1052144 | 1355 | eval $ac_envvar=\$ac_optarg |
b0cacab0 TT |
1356 | export $ac_envvar ;; |
1357 | ||
21c84b71 | 1358 | *) |
b0cacab0 | 1359 | # FIXME: should be removed in autoconf 3.0. |
39fd3d4f | 1360 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
b0cacab0 | 1361 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
39fd3d4f | 1362 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
d6a4bcb5 | 1363 | : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" |
50e1e10f TT |
1364 | ;; |
1365 | ||
1366 | esac | |
1367 | done | |
1368 | ||
1369 | if test -n "$ac_prev"; then | |
b0cacab0 | 1370 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
d6a4bcb5 | 1371 | as_fn_error $? "missing argument to $ac_option" |
50e1e10f | 1372 | fi |
50e1e10f | 1373 | |
39fd3d4f SJR |
1374 | if test -n "$ac_unrecognized_opts"; then |
1375 | case $enable_option_checking in | |
1376 | no) ;; | |
d6a4bcb5 | 1377 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; |
39fd3d4f SJR |
1378 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
1379 | esac | |
1380 | fi | |
1381 | ||
1382 | # Check all directory arguments for consistency. | |
e1052144 TT |
1383 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
1384 | datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1385 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
2ab53829 | 1386 | libdir localedir mandir runstatedir |
50e1e10f | 1387 | do |
e1052144 | 1388 | eval ac_val=\$$ac_var |
39fd3d4f SJR |
1389 | # Remove trailing slashes. |
1390 | case $ac_val in | |
1391 | */ ) | |
1392 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | |
1393 | eval $ac_var=\$ac_val;; | |
1394 | esac | |
1395 | # Be sure to have absolute directory names. | |
b0cacab0 | 1396 | case $ac_val in |
e1052144 TT |
1397 | [\\/$]* | ?:[\\/]* ) continue;; |
1398 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
50e1e10f | 1399 | esac |
d6a4bcb5 | 1400 | as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" |
50e1e10f TT |
1401 | done |
1402 | ||
b0cacab0 TT |
1403 | # There might be people who depend on the old broken behavior: `$host' |
1404 | # used to hold the argument of --host etc. | |
1405 | # FIXME: To remove some day. | |
1406 | build=$build_alias | |
1407 | host=$host_alias | |
1408 | target=$target_alias | |
1409 | ||
1410 | # FIXME: To remove some day. | |
1411 | if test "x$host_alias" != x; then | |
1412 | if test "x$build_alias" = x; then | |
1413 | cross_compiling=maybe | |
b0cacab0 TT |
1414 | elif test "x$build_alias" != "x$host_alias"; then |
1415 | cross_compiling=yes | |
1416 | fi | |
1417 | fi | |
50e1e10f | 1418 | |
b0cacab0 TT |
1419 | ac_tool_prefix= |
1420 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1421 | ||
1422 | test "$silent" = yes && exec 6>/dev/null | |
50e1e10f | 1423 | |
50e1e10f | 1424 | |
e1052144 TT |
1425 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
1426 | ac_ls_di=`ls -di .` && | |
1427 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
d6a4bcb5 | 1428 | as_fn_error $? "working directory cannot be determined" |
e1052144 | 1429 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
d6a4bcb5 | 1430 | as_fn_error $? "pwd does not report name of working directory" |
e1052144 TT |
1431 | |
1432 | ||
50e1e10f TT |
1433 | # Find the source files, if location was not specified. |
1434 | if test -z "$srcdir"; then | |
1435 | ac_srcdir_defaulted=yes | |
e1052144 | 1436 | # Try the directory containing this script, then the parent directory. |
39fd3d4f SJR |
1437 | ac_confdir=`$as_dirname -- "$as_myself" || |
1438 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
1439 | X"$as_myself" : 'X\(//\)[^/]' \| \ | |
1440 | X"$as_myself" : 'X\(//\)$' \| \ | |
1441 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | |
1442 | $as_echo X"$as_myself" | | |
e1052144 TT |
1443 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
1444 | s//\1/ | |
1445 | q | |
1446 | } | |
1447 | /^X\(\/\/\)[^/].*/{ | |
1448 | s//\1/ | |
1449 | q | |
1450 | } | |
1451 | /^X\(\/\/\)$/{ | |
1452 | s//\1/ | |
1453 | q | |
1454 | } | |
1455 | /^X\(\/\).*/{ | |
1456 | s//\1/ | |
1457 | q | |
1458 | } | |
1459 | s/.*/./; q'` | |
50e1e10f | 1460 | srcdir=$ac_confdir |
e1052144 | 1461 | if test ! -r "$srcdir/$ac_unique_file"; then |
50e1e10f TT |
1462 | srcdir=.. |
1463 | fi | |
1464 | else | |
1465 | ac_srcdir_defaulted=no | |
1466 | fi | |
e1052144 TT |
1467 | if test ! -r "$srcdir/$ac_unique_file"; then |
1468 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
d6a4bcb5 | 1469 | as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" |
50e1e10f | 1470 | fi |
e1052144 TT |
1471 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
1472 | ac_abs_confdir=`( | |
d6a4bcb5 | 1473 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" |
e1052144 TT |
1474 | pwd)` |
1475 | # When building in place, set srcdir=. | |
1476 | if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1477 | srcdir=. | |
1478 | fi | |
1479 | # Remove unnecessary trailing slashes from srcdir. | |
1480 | # Double slashes in file names in object file debugging info | |
1481 | # mess up M-x gdb in Emacs. | |
1482 | case $srcdir in | |
1483 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1484 | esac | |
1485 | for ac_var in $ac_precious_vars; do | |
1486 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1487 | eval ac_env_${ac_var}_value=\$${ac_var} | |
1488 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1489 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1490 | done | |
b0cacab0 TT |
1491 | |
1492 | # | |
1493 | # Report the --help message. | |
1494 | # | |
1495 | if test "$ac_init_help" = "long"; then | |
1496 | # Omit some internal or obsolete options to make the list less imposing. | |
1497 | # This message is too long to be a string in the A/UX 3.1 sh. | |
1498 | cat <<_ACEOF | |
1499 | \`configure' configures this package to adapt to many kinds of systems. | |
1500 | ||
1501 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
1502 | ||
1503 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
1504 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
1505 | ||
1506 | Defaults for the options are specified in brackets. | |
1507 | ||
1508 | Configuration: | |
1509 | -h, --help display this help and exit | |
1510 | --help=short display options specific to this package | |
1511 | --help=recursive display the short help of all the included packages | |
1512 | -V, --version display version information and exit | |
d6a4bcb5 | 1513 | -q, --quiet, --silent do not print \`checking ...' messages |
b0cacab0 TT |
1514 | --cache-file=FILE cache test results in FILE [disabled] |
1515 | -C, --config-cache alias for \`--cache-file=config.cache' | |
1516 | -n, --no-create do not create output files | |
1517 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1518 | ||
b0cacab0 TT |
1519 | Installation directories: |
1520 | --prefix=PREFIX install architecture-independent files in PREFIX | |
39fd3d4f | 1521 | [$ac_default_prefix] |
b0cacab0 | 1522 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
39fd3d4f | 1523 | [PREFIX] |
b0cacab0 TT |
1524 | |
1525 | By default, \`make install' will install all the files in | |
1526 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1527 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1528 | for instance \`--prefix=\$HOME'. | |
1529 | ||
1530 | For better control, use the options below. | |
1531 | ||
1532 | Fine tuning of the installation directories: | |
39fd3d4f SJR |
1533 | --bindir=DIR user executables [EPREFIX/bin] |
1534 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1535 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
1536 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
1537 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1538 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
2ab53829 | 1539 | --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] |
39fd3d4f SJR |
1540 | --libdir=DIR object code libraries [EPREFIX/lib] |
1541 | --includedir=DIR C header files [PREFIX/include] | |
1542 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
1543 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | |
1544 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1545 | --infodir=DIR info documentation [DATAROOTDIR/info] | |
1546 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1547 | --mandir=DIR man documentation [DATAROOTDIR/man] | |
1548 | --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] | |
1549 | --htmldir=DIR html documentation [DOCDIR] | |
1550 | --dvidir=DIR dvi documentation [DOCDIR] | |
1551 | --pdfdir=DIR pdf documentation [DOCDIR] | |
1552 | --psdir=DIR ps documentation [DOCDIR] | |
b0cacab0 TT |
1553 | _ACEOF |
1554 | ||
1555 | cat <<\_ACEOF | |
1556 | ||
1557 | System types: | |
1558 | --build=BUILD configure for building on BUILD [guessed] | |
1559 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
1560 | _ACEOF | |
1561 | fi | |
1562 | ||
1563 | if test -n "$ac_init_help"; then | |
1564 | ||
1565 | cat <<\_ACEOF | |
1566 | ||
1567 | Optional Features: | |
39fd3d4f | 1568 | --disable-option-checking ignore unrecognized --enable/--with options |
b0cacab0 TT |
1569 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
1570 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
98919bdb | 1571 | --enable-maintainer-mode enable makefile rules useful for maintainers |
5aa6c3f6 | 1572 | --enable-symlink-install use symlinks when installing instead of hard links |
183c73b0 | 1573 | --enable-relative-symlinks use relative symlinks when installing |
91d11da1 | 1574 | |
5aa6c3f6 TT |
1575 | --enable-symlink-build use symlinks while building instead of hard links |
1576 | --enable-verbose-makecmds enable verbose make command output | |
b0cacab0 TT |
1577 | --enable-elf-shlibs select ELF shared libraries |
1578 | --enable-bsd-shlibs select BSD shared libraries | |
1579 | --enable-profile build profiling libraries | |
fedfb27f | 1580 | --enable-gcov build for coverage testing using gcov |
fd1677e8 | 1581 | --enable-hardening build for coverage testing using gcov |
b0cacab0 TT |
1582 | --enable-jbd-debug enable journal debugging |
1583 | --enable-blkid-debug enable blkid debugging | |
af773654 | 1584 | --disable-testio-debug disable the use of the test I/O manager for debugging |
b9e66a18 | 1585 | --enable-developer-features enable features for use by ext4 developers |
f5dffb81 TT |
1586 | --enable-libuuid build and use private uuid library |
1587 | --enable-libblkid build and use private blkid library | |
0afb9be6 | 1588 | --enable-subset enable subset-only build |
3df6014a | 1589 | --disable-backtrace disable use backtrace |
b0cacab0 TT |
1590 | --disable-debugfs disable support of debugfs program |
1591 | --disable-imager disable support of e2image program | |
1592 | --disable-resizer disable support of e2resize program | |
8d9c50c5 | 1593 | --disable-defrag disable support of e4defrag program |
b0cacab0 TT |
1594 | --enable-fsck build fsck wrapper program |
1595 | --enable-e2initrd-helper build e2initrd-helper program | |
3249394d | 1596 | --disable-tls disable use of thread local support |
5610f992 | 1597 | --disable-uuidd disable building the uuid daemon |
d6a4bcb5 | 1598 | --disable-mmp disable support mmp, Multi Mount Protection |
749f0712 | 1599 | --disable-tdb disable tdb support |
1625bf42 TB |
1600 | --disable-bmap-stats disable collection of bitmap stats. |
1601 | --enable-bmap-stats-ops enable collection of additional bitmap stats | |
b0cacab0 | 1602 | --disable-nls do not use Native Language Support |
93613951 TT |
1603 | --enable-threads={posix|solaris|pth|windows} |
1604 | specify multithreading API | |
1605 | --disable-threads build without multithread safety | |
b0cacab0 | 1606 | --disable-rpath do not hardcode runtime library paths |
f5dffb81 | 1607 | --disable-fuse2fs do not build fuse2fs |
4aece328 | 1608 | --enable-lto enable link time optimization |
1c2a76ae | 1609 | --enable-ubsan enable undefined behavior sanitizer |
5e666e3d | 1610 | --enable-addrsan enable address sanitizer |
bcca786b | 1611 | --enable-threadsan enable thread sanitizer |
b0cacab0 TT |
1612 | |
1613 | Optional Packages: | |
1614 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1615 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
3249394d | 1616 | --with-diet-libc use diet libc |
0b5b9f90 TT |
1617 | --with-cc no longer supported, use CC= instead |
1618 | --with-ccopts no longer supported, use CFLAGS= instead | |
1619 | --with-ldopts no longer supported, use LDFLAGS= instead | |
b0cacab0 | 1620 | --with-root-prefix=PREFIX override prefix variable for files to be placed in the root |
93613951 TT |
1621 | --with-gnu-ld assume the C compiler uses GNU ld [default=no] |
1622 | --with-libpth-prefix[=DIR] search for libpth in DIR/include and DIR/lib | |
1623 | --without-libpth-prefix don't search for libpth in includedir and libdir | |
b0cacab0 TT |
1624 | --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib |
1625 | --without-libiconv-prefix don't search for libiconv in includedir and libdir | |
1626 | --with-included-gettext use the GNU gettext library included here | |
1627 | --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib | |
1628 | --without-libintl-prefix don't search for libintl in includedir and libdir | |
55e00a25 | 1629 | --with-multiarch=ARCH specify the multiarch triplet |
5ce368f0 DW |
1630 | --with-udev-rules-dir[=DIR] |
1631 | Install udev rules into DIR. | |
a2df5894 DW |
1632 | --with-crond-dir[=DIR] Install system crontabs into DIR. |
1633 | --with-systemd-unit-dir[=DIR] | |
1634 | Install systemd system units into DIR. | |
b0cacab0 TT |
1635 | |
1636 | Some influential environment variables: | |
1637 | CC C compiler command | |
1638 | CFLAGS C compiler flags | |
1639 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1640 | nonstandard directory <lib dir> | |
29a5deed | 1641 | LIBS libraries to pass to the linker, e.g. -l<library> |
61ef2474 | 1642 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if |
e1052144 | 1643 | you have headers in a nonstandard directory <include dir> |
b0cacab0 | 1644 | CPP C preprocessor |
14b596d4 | 1645 | PKG_CONFIG path to pkg-config utility |
93613951 TT |
1646 | PKG_CONFIG_PATH |
1647 | directories to add to pkg-config's search path | |
1648 | PKG_CONFIG_LIBDIR | |
1649 | path overriding pkg-config's built-in search path | |
5ce368f0 DW |
1650 | udev_CFLAGS C compiler flags for udev, overriding pkg-config |
1651 | udev_LIBS linker flags for udev, overriding pkg-config | |
a2df5894 DW |
1652 | systemd_CFLAGS |
1653 | C compiler flags for systemd, overriding pkg-config | |
1654 | systemd_LIBS | |
1655 | linker flags for systemd, overriding pkg-config | |
b0cacab0 TT |
1656 | |
1657 | Use these variables to override the choices made by `configure' or to help | |
1658 | it to find libraries and programs with nonstandard names/locations. | |
1659 | ||
57aa50d4 | 1660 | Report bugs to the package provider. |
b0cacab0 | 1661 | _ACEOF |
e1052144 | 1662 | ac_status=$? |
b0cacab0 TT |
1663 | fi |
1664 | ||
1665 | if test "$ac_init_help" = "recursive"; then | |
1666 | # If there are subdirs, report their specific --help. | |
b0cacab0 | 1667 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
39fd3d4f SJR |
1668 | test -d "$ac_dir" || |
1669 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | |
1670 | continue | |
b0cacab0 TT |
1671 | ac_builddir=. |
1672 | ||
e1052144 TT |
1673 | case "$ac_dir" in |
1674 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1675 | *) | |
39fd3d4f | 1676 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
e1052144 | 1677 | # A ".." for each directory in $ac_dir_suffix. |
39fd3d4f | 1678 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
e1052144 TT |
1679 | case $ac_top_builddir_sub in |
1680 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1681 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1682 | esac ;; | |
1683 | esac | |
1684 | ac_abs_top_builddir=$ac_pwd | |
1685 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1686 | # for backward compatibility: | |
1687 | ac_top_builddir=$ac_top_build_prefix | |
b0cacab0 TT |
1688 | |
1689 | case $srcdir in | |
e1052144 | 1690 | .) # We are building in place. |
b0cacab0 | 1691 | ac_srcdir=. |
e1052144 TT |
1692 | ac_top_srcdir=$ac_top_builddir_sub |
1693 | ac_abs_top_srcdir=$ac_pwd ;; | |
1694 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
b0cacab0 | 1695 | ac_srcdir=$srcdir$ac_dir_suffix; |
e1052144 TT |
1696 | ac_top_srcdir=$srcdir |
1697 | ac_abs_top_srcdir=$srcdir ;; | |
1698 | *) # Relative name. | |
1699 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1700 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1701 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
b0cacab0 | 1702 | esac |
e1052144 TT |
1703 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
1704 | ||
1705 | cd "$ac_dir" || { ac_status=$?; continue; } | |
1706 | # Check for guested configure. | |
1707 | if test -f "$ac_srcdir/configure.gnu"; then | |
1708 | echo && | |
1709 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
1710 | elif test -f "$ac_srcdir/configure"; then | |
1711 | echo && | |
1712 | $SHELL "$ac_srcdir/configure" --help=recursive | |
b0cacab0 | 1713 | else |
39fd3d4f | 1714 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
e1052144 TT |
1715 | fi || ac_status=$? |
1716 | cd "$ac_pwd" || { ac_status=$?; break; } | |
b0cacab0 TT |
1717 | done |
1718 | fi | |
1719 | ||
e1052144 | 1720 | test -n "$ac_init_help" && exit $ac_status |
b0cacab0 TT |
1721 | if $ac_init_version; then |
1722 | cat <<\_ACEOF | |
e1052144 | 1723 | configure |
d6a4bcb5 | 1724 | generated by GNU Autoconf 2.69 |
b0cacab0 | 1725 | |
d6a4bcb5 | 1726 | Copyright (C) 2012 Free Software Foundation, Inc. |
b0cacab0 TT |
1727 | This configure script is free software; the Free Software Foundation |
1728 | gives unlimited permission to copy, distribute and modify it. | |
1729 | _ACEOF | |
e1052144 | 1730 | exit |
b0cacab0 | 1731 | fi |
b0cacab0 | 1732 | |
57aa50d4 TT |
1733 | ## ------------------------ ## |
1734 | ## Autoconf initialization. ## | |
1735 | ## ------------------------ ## | |
b0cacab0 | 1736 | |
57aa50d4 TT |
1737 | # ac_fn_c_try_compile LINENO |
1738 | # -------------------------- | |
1739 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1740 | ac_fn_c_try_compile () | |
1741 | { | |
1742 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1743 | rm -f conftest.$ac_objext | |
1744 | if { { ac_try="$ac_compile" | |
1745 | case "(($ac_try" in | |
1746 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1747 | *) ac_try_echo=$ac_try;; | |
1748 | esac | |
1749 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1750 | $as_echo "$ac_try_echo"; } >&5 | |
1751 | (eval "$ac_compile") 2>conftest.err | |
1752 | ac_status=$? | |
1753 | if test -s conftest.err; then | |
1754 | grep -v '^ *+' conftest.err >conftest.er1 | |
1755 | cat conftest.er1 >&5 | |
1756 | mv -f conftest.er1 conftest.err | |
1757 | fi | |
1758 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1759 | test $ac_status = 0; } && { | |
1760 | test -z "$ac_c_werror_flag" || | |
1761 | test ! -s conftest.err | |
1762 | } && test -s conftest.$ac_objext; then : | |
1763 | ac_retval=0 | |
1764 | else | |
1765 | $as_echo "$as_me: failed program was:" >&5 | |
1766 | sed 's/^/| /' conftest.$ac_ext >&5 | |
b0cacab0 | 1767 | |
57aa50d4 TT |
1768 | ac_retval=1 |
1769 | fi | |
d6a4bcb5 | 1770 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
61ef2474 | 1771 | as_fn_set_status $ac_retval |
57aa50d4 TT |
1772 | |
1773 | } # ac_fn_c_try_compile | |
1774 | ||
1775 | # ac_fn_c_try_link LINENO | |
1776 | # ----------------------- | |
1777 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
1778 | ac_fn_c_try_link () | |
b0cacab0 | 1779 | { |
57aa50d4 TT |
1780 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
1781 | rm -f conftest.$ac_objext conftest$ac_exeext | |
1782 | if { { ac_try="$ac_link" | |
1783 | case "(($ac_try" in | |
1784 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1785 | *) ac_try_echo=$ac_try;; | |
1786 | esac | |
1787 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1788 | $as_echo "$ac_try_echo"; } >&5 | |
1789 | (eval "$ac_link") 2>conftest.err | |
1790 | ac_status=$? | |
1791 | if test -s conftest.err; then | |
1792 | grep -v '^ *+' conftest.err >conftest.er1 | |
1793 | cat conftest.er1 >&5 | |
1794 | mv -f conftest.er1 conftest.err | |
1795 | fi | |
1796 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1797 | test $ac_status = 0; } && { | |
1798 | test -z "$ac_c_werror_flag" || | |
1799 | test ! -s conftest.err | |
1800 | } && test -s conftest$ac_exeext && { | |
1801 | test "$cross_compiling" = yes || | |
d6a4bcb5 | 1802 | test -x conftest$ac_exeext |
57aa50d4 TT |
1803 | }; then : |
1804 | ac_retval=0 | |
1805 | else | |
1806 | $as_echo "$as_me: failed program was:" >&5 | |
1807 | sed 's/^/| /' conftest.$ac_ext >&5 | |
b0cacab0 | 1808 | |
57aa50d4 TT |
1809 | ac_retval=1 |
1810 | fi | |
1811 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
1812 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
1813 | # interfere with the next link command; also delete a directory that is | |
1814 | # left behind by Apple's compiler. We do this before executing the actions. | |
1815 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
d6a4bcb5 | 1816 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
61ef2474 | 1817 | as_fn_set_status $ac_retval |
b0cacab0 | 1818 | |
57aa50d4 | 1819 | } # ac_fn_c_try_link |
b0cacab0 | 1820 | |
57aa50d4 TT |
1821 | # ac_fn_c_try_cpp LINENO |
1822 | # ---------------------- | |
1823 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. | |
1824 | ac_fn_c_try_cpp () | |
1825 | { | |
1826 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1827 | if { { ac_try="$ac_cpp conftest.$ac_ext" | |
1828 | case "(($ac_try" in | |
1829 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1830 | *) ac_try_echo=$ac_try;; | |
1831 | esac | |
1832 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1833 | $as_echo "$ac_try_echo"; } >&5 | |
1834 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err | |
1835 | ac_status=$? | |
1836 | if test -s conftest.err; then | |
1837 | grep -v '^ *+' conftest.err >conftest.er1 | |
1838 | cat conftest.er1 >&5 | |
1839 | mv -f conftest.er1 conftest.err | |
1840 | fi | |
1841 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
d6a4bcb5 | 1842 | test $ac_status = 0; } > conftest.i && { |
57aa50d4 TT |
1843 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
1844 | test ! -s conftest.err | |
1845 | }; then : | |
1846 | ac_retval=0 | |
1847 | else | |
1848 | $as_echo "$as_me: failed program was:" >&5 | |
1849 | sed 's/^/| /' conftest.$ac_ext >&5 | |
b0cacab0 | 1850 | |
57aa50d4 TT |
1851 | ac_retval=1 |
1852 | fi | |
d6a4bcb5 | 1853 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
61ef2474 | 1854 | as_fn_set_status $ac_retval |
b0cacab0 | 1855 | |
57aa50d4 | 1856 | } # ac_fn_c_try_cpp |
b0cacab0 | 1857 | |
93613951 TT |
1858 | # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES |
1859 | # ------------------------------------------------------- | |
1860 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using | |
1861 | # the include files in INCLUDES and setting the cache variable VAR | |
1862 | # accordingly. | |
1863 | ac_fn_c_check_header_mongrel () | |
1864 | { | |
1865 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1866 | if eval \${$3+:} false; then : | |
1867 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1868 | $as_echo_n "checking for $2... " >&6; } | |
1869 | if eval \${$3+:} false; then : | |
1870 | $as_echo_n "(cached) " >&6 | |
1871 | fi | |
1872 | eval ac_res=\$$3 | |
1873 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1874 | $as_echo "$ac_res" >&6; } | |
1875 | else | |
1876 | # Is the header compilable? | |
1877 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 | |
1878 | $as_echo_n "checking $2 usability... " >&6; } | |
1879 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1880 | /* end confdefs.h. */ | |
1881 | $4 | |
1882 | #include <$2> | |
1883 | _ACEOF | |
1884 | if ac_fn_c_try_compile "$LINENO"; then : | |
1885 | ac_header_compiler=yes | |
1886 | else | |
1887 | ac_header_compiler=no | |
1888 | fi | |
1889 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1890 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 | |
1891 | $as_echo "$ac_header_compiler" >&6; } | |
1892 | ||
1893 | # Is the header present? | |
1894 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 | |
1895 | $as_echo_n "checking $2 presence... " >&6; } | |
1896 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1897 | /* end confdefs.h. */ | |
1898 | #include <$2> | |
1899 | _ACEOF | |
1900 | if ac_fn_c_try_cpp "$LINENO"; then : | |
1901 | ac_header_preproc=yes | |
1902 | else | |
1903 | ac_header_preproc=no | |
1904 | fi | |
1905 | rm -f conftest.err conftest.i conftest.$ac_ext | |
1906 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 | |
1907 | $as_echo "$ac_header_preproc" >&6; } | |
1908 | ||
1909 | # So? What about this header? | |
1910 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( | |
1911 | yes:no: ) | |
1912 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 | |
1913 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
1914 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
1915 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
1916 | ;; | |
1917 | no:yes:* ) | |
1918 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 | |
1919 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} | |
1920 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 | |
1921 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} | |
1922 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 | |
1923 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} | |
1924 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 | |
1925 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} | |
1926 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
1927 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
1928 | ;; | |
1929 | esac | |
1930 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1931 | $as_echo_n "checking for $2... " >&6; } | |
1932 | if eval \${$3+:} false; then : | |
1933 | $as_echo_n "(cached) " >&6 | |
1934 | else | |
1935 | eval "$3=\$ac_header_compiler" | |
1936 | fi | |
1937 | eval ac_res=\$$3 | |
1938 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1939 | $as_echo "$ac_res" >&6; } | |
1940 | fi | |
1941 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1942 | ||
1943 | } # ac_fn_c_check_header_mongrel | |
1944 | ||
57aa50d4 TT |
1945 | # ac_fn_c_try_run LINENO |
1946 | # ---------------------- | |
1947 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes | |
1948 | # that executables *can* be run. | |
1949 | ac_fn_c_try_run () | |
1950 | { | |
1951 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1952 | if { { ac_try="$ac_link" | |
1953 | case "(($ac_try" in | |
1954 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1955 | *) ac_try_echo=$ac_try;; | |
1956 | esac | |
1957 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1958 | $as_echo "$ac_try_echo"; } >&5 | |
1959 | (eval "$ac_link") 2>&5 | |
1960 | ac_status=$? | |
1961 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1962 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' | |
1963 | { { case "(($ac_try" in | |
1964 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1965 | *) ac_try_echo=$ac_try;; | |
1966 | esac | |
1967 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1968 | $as_echo "$ac_try_echo"; } >&5 | |
1969 | (eval "$ac_try") 2>&5 | |
1970 | ac_status=$? | |
1971 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1972 | test $ac_status = 0; }; }; then : | |
1973 | ac_retval=0 | |
1974 | else | |
1975 | $as_echo "$as_me: program exited with status $ac_status" >&5 | |
1976 | $as_echo "$as_me: failed program was:" >&5 | |
1977 | sed 's/^/| /' conftest.$ac_ext >&5 | |
b0cacab0 | 1978 | |
57aa50d4 TT |
1979 | ac_retval=$ac_status |
1980 | fi | |
1981 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
d6a4bcb5 | 1982 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
61ef2474 | 1983 | as_fn_set_status $ac_retval |
b0cacab0 | 1984 | |
57aa50d4 | 1985 | } # ac_fn_c_try_run |
b0cacab0 | 1986 | |
93613951 TT |
1987 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES |
1988 | # ------------------------------------------------------- | |
1989 | # Tests whether HEADER exists and can be compiled using the include files in | |
1990 | # INCLUDES, setting the cache variable VAR accordingly. | |
1991 | ac_fn_c_check_header_compile () | |
1992 | { | |
1993 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1994 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1995 | $as_echo_n "checking for $2... " >&6; } | |
1996 | if eval \${$3+:} false; then : | |
1997 | $as_echo_n "(cached) " >&6 | |
1998 | else | |
1999 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2000 | /* end confdefs.h. */ | |
2001 | $4 | |
2002 | #include <$2> | |
2003 | _ACEOF | |
2004 | if ac_fn_c_try_compile "$LINENO"; then : | |
2005 | eval "$3=yes" | |
2006 | else | |
2007 | eval "$3=no" | |
2008 | fi | |
2009 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2010 | fi | |
2011 | eval ac_res=\$$3 | |
2012 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2013 | $as_echo "$ac_res" >&6; } | |
2014 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
2015 | ||
2016 | } # ac_fn_c_check_header_compile | |
2017 | ||
57aa50d4 TT |
2018 | # ac_fn_c_check_type LINENO TYPE VAR INCLUDES |
2019 | # ------------------------------------------- | |
2020 | # Tests whether TYPE exists after having included INCLUDES, setting cache | |
2021 | # variable VAR accordingly. | |
2022 | ac_fn_c_check_type () | |
2023 | { | |
2024 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2025 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
2026 | $as_echo_n "checking for $2... " >&6; } | |
d6a4bcb5 | 2027 | if eval \${$3+:} false; then : |
57aa50d4 | 2028 | $as_echo_n "(cached) " >&6 |
e1052144 | 2029 | else |
57aa50d4 TT |
2030 | eval "$3=no" |
2031 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2032 | /* end confdefs.h. */ | |
2033 | $4 | |
2034 | int | |
2035 | main () | |
2036 | { | |
2037 | if (sizeof ($2)) | |
2038 | return 0; | |
2039 | ; | |
2040 | return 0; | |
2041 | } | |
2042 | _ACEOF | |
2043 | if ac_fn_c_try_compile "$LINENO"; then : | |
2044 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2045 | /* end confdefs.h. */ | |
2046 | $4 | |
2047 | int | |
2048 | main () | |
2049 | { | |
2050 | if (sizeof (($2))) | |
2051 | return 0; | |
2052 | ; | |
2053 | return 0; | |
2054 | } | |
2055 | _ACEOF | |
2056 | if ac_fn_c_try_compile "$LINENO"; then : | |
50e1e10f | 2057 | |
50e1e10f | 2058 | else |
57aa50d4 | 2059 | eval "$3=yes" |
b0cacab0 | 2060 | fi |
57aa50d4 | 2061 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
50e1e10f | 2062 | fi |
57aa50d4 TT |
2063 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
2064 | fi | |
2065 | eval ac_res=\$$3 | |
2066 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2067 | $as_echo "$ac_res" >&6; } | |
d6a4bcb5 | 2068 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
50e1e10f | 2069 | |
57aa50d4 | 2070 | } # ac_fn_c_check_type |
b0cacab0 | 2071 | |
57aa50d4 TT |
2072 | # ac_fn_c_check_func LINENO FUNC VAR |
2073 | # ---------------------------------- | |
2074 | # Tests whether FUNC exists, setting the cache variable VAR accordingly | |
2075 | ac_fn_c_check_func () | |
2076 | { | |
2077 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2078 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
2079 | $as_echo_n "checking for $2... " >&6; } | |
d6a4bcb5 | 2080 | if eval \${$3+:} false; then : |
57aa50d4 TT |
2081 | $as_echo_n "(cached) " >&6 |
2082 | else | |
2083 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2084 | /* end confdefs.h. */ | |
2085 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. | |
2086 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
2087 | #define $2 innocuous_$2 | |
b0cacab0 | 2088 | |
57aa50d4 TT |
2089 | /* System header to define __stub macros and hopefully few prototypes, |
2090 | which can conflict with char $2 (); below. | |
2091 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
2092 | <limits.h> exists even on freestanding compilers. */ | |
b0cacab0 | 2093 | |
57aa50d4 TT |
2094 | #ifdef __STDC__ |
2095 | # include <limits.h> | |
2096 | #else | |
2097 | # include <assert.h> | |
2098 | #endif | |
a04eba3f | 2099 | |
57aa50d4 | 2100 | #undef $2 |
07a0db15 | 2101 | |
57aa50d4 TT |
2102 | /* Override any GCC internal prototype to avoid an error. |
2103 | Use char because int might match the return type of a GCC | |
2104 | builtin and then its argument prototype would still apply. */ | |
2105 | #ifdef __cplusplus | |
2106 | extern "C" | |
2107 | #endif | |
2108 | char $2 (); | |
2109 | /* The GNU C library defines this for functions which it implements | |
2110 | to always fail with ENOSYS. Some functions are actually named | |
2111 | something starting with __ and the normal name is an alias. */ | |
2112 | #if defined __stub_$2 || defined __stub___$2 | |
2113 | choke me | |
2114 | #endif | |
74becf3c | 2115 | |
57aa50d4 TT |
2116 | int |
2117 | main () | |
2118 | { | |
2119 | return $2 (); | |
2120 | ; | |
2121 | return 0; | |
2122 | } | |
2123 | _ACEOF | |
2124 | if ac_fn_c_try_link "$LINENO"; then : | |
2125 | eval "$3=yes" | |
2126 | else | |
2127 | eval "$3=no" | |
2128 | fi | |
2129 | rm -f core conftest.err conftest.$ac_objext \ | |
2130 | conftest$ac_exeext conftest.$ac_ext | |
2131 | fi | |
2132 | eval ac_res=\$$3 | |
2133 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2134 | $as_echo "$ac_res" >&6; } | |
d6a4bcb5 | 2135 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
93636bde | 2136 | |
57aa50d4 | 2137 | } # ac_fn_c_check_func |
93636bde | 2138 | |
93613951 TT |
2139 | # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES |
2140 | # --------------------------------------------- | |
2141 | # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR | |
d1154eb4 | 2142 | # accordingly. |
93613951 | 2143 | ac_fn_c_check_decl () |
d1154eb4 TT |
2144 | { |
2145 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
93613951 TT |
2146 | as_decl_name=`echo $2|sed 's/ *(.*//'` |
2147 | as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` | |
2148 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 | |
2149 | $as_echo_n "checking whether $as_decl_name is declared... " >&6; } | |
d6a4bcb5 | 2150 | if eval \${$3+:} false; then : |
d1154eb4 | 2151 | $as_echo_n "(cached) " >&6 |
d1154eb4 | 2152 | else |
93613951 | 2153 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d1154eb4 TT |
2154 | /* end confdefs.h. */ |
2155 | $4 | |
93613951 TT |
2156 | int |
2157 | main () | |
2158 | { | |
2159 | #ifndef $as_decl_name | |
2160 | #ifdef __cplusplus | |
2161 | (void) $as_decl_use; | |
2162 | #else | |
2163 | (void) $as_decl_name; | |
2164 | #endif | |
2165 | #endif | |
2166 | ||
2167 | ; | |
2168 | return 0; | |
2169 | } | |
d1154eb4 TT |
2170 | _ACEOF |
2171 | if ac_fn_c_try_compile "$LINENO"; then : | |
93613951 | 2172 | eval "$3=yes" |
d1154eb4 | 2173 | else |
93613951 | 2174 | eval "$3=no" |
d1154eb4 TT |
2175 | fi |
2176 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
d1154eb4 TT |
2177 | fi |
2178 | eval ac_res=\$$3 | |
2179 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2180 | $as_echo "$ac_res" >&6; } | |
d6a4bcb5 | 2181 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
d1154eb4 | 2182 | |
93613951 | 2183 | } # ac_fn_c_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 | |
2199 | main () | |
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 | |
2209 | if ac_fn_c_try_compile "$LINENO"; then : | |
2210 | ac_lo=0 ac_mid=0 | |
2211 | while :; do | |
2212 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2213 | /* end confdefs.h. */ | |
2214 | $4 | |
2215 | int | |
2216 | main () | |
2217 | { | |
2218 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; | |
d6a4bcb5 TB |
2219 | test_array [0] = 0; |
2220 | return test_array [0]; | |
93636bde | 2221 | |
57aa50d4 TT |
2222 | ; |
2223 | return 0; | |
2224 | } | |
2225 | _ACEOF | |
2226 | if ac_fn_c_try_compile "$LINENO"; then : | |
2227 | ac_hi=$ac_mid; break | |
2228 | else | |
2229 | as_fn_arith $ac_mid + 1 && ac_lo=$as_val | |
2230 | if test $ac_lo -le $ac_mid; then | |
2231 | ac_lo= ac_hi= | |
2232 | break | |
2233 | fi | |
2234 | as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val | |
b0cacab0 | 2235 | fi |
57aa50d4 TT |
2236 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
2237 | done | |
2238 | else | |
2239 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2240 | /* end confdefs.h. */ | |
2241 | $4 | |
2242 | int | |
2243 | main () | |
2244 | { | |
2245 | static int test_array [1 - 2 * !(($2) < 0)]; | |
d6a4bcb5 TB |
2246 | test_array [0] = 0; |
2247 | return test_array [0]; | |
e1052144 | 2248 | |
57aa50d4 TT |
2249 | ; |
2250 | return 0; | |
2251 | } | |
2252 | _ACEOF | |
2253 | if ac_fn_c_try_compile "$LINENO"; then : | |
2254 | ac_hi=-1 ac_mid=-1 | |
2255 | while :; do | |
2256 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2257 | /* end confdefs.h. */ | |
2258 | $4 | |
2259 | int | |
2260 | main () | |
2261 | { | |
2262 | static int test_array [1 - 2 * !(($2) >= $ac_mid)]; | |
d6a4bcb5 TB |
2263 | test_array [0] = 0; |
2264 | return test_array [0]; | |
93636bde | 2265 | |
57aa50d4 TT |
2266 | ; |
2267 | return 0; | |
2268 | } | |
2269 | _ACEOF | |
2270 | if ac_fn_c_try_compile "$LINENO"; then : | |
2271 | ac_lo=$ac_mid; break | |
93636bde | 2272 | else |
57aa50d4 TT |
2273 | as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val |
2274 | if test $ac_mid -le $ac_hi; then | |
2275 | ac_lo= ac_hi= | |
2276 | break | |
2277 | fi | |
2278 | as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val | |
93636bde | 2279 | fi |
57aa50d4 TT |
2280 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
2281 | done | |
2282 | else | |
2283 | ac_lo= ac_hi= | |
2284 | fi | |
2285 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2286 | fi | |
2287 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2288 | # Binary search between lo and hi bounds. | |
2289 | while test "x$ac_lo" != "x$ac_hi"; do | |
2290 | as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val | |
2291 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2292 | /* end confdefs.h. */ | |
2293 | $4 | |
2294 | int | |
2295 | main () | |
2296 | { | |
2297 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; | |
d6a4bcb5 TB |
2298 | test_array [0] = 0; |
2299 | return test_array [0]; | |
93636bde | 2300 | |
57aa50d4 TT |
2301 | ; |
2302 | return 0; | |
2303 | } | |
2304 | _ACEOF | |
2305 | if ac_fn_c_try_compile "$LINENO"; then : | |
2306 | ac_hi=$ac_mid | |
2307 | else | |
2308 | as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val | |
2309 | fi | |
2310 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2311 | done | |
2312 | case $ac_lo in #(( | |
2313 | ?*) eval "$3=\$ac_lo"; ac_retval=0 ;; | |
2314 | '') ac_retval=1 ;; | |
927566a3 | 2315 | esac |
57aa50d4 TT |
2316 | else |
2317 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2318 | /* end confdefs.h. */ | |
2319 | $4 | |
2320 | static long int longval () { return $2; } | |
2321 | static unsigned long int ulongval () { return $2; } | |
2322 | #include <stdio.h> | |
2323 | #include <stdlib.h> | |
2324 | int | |
2325 | main () | |
2326 | { | |
927566a3 | 2327 | |
57aa50d4 TT |
2328 | FILE *f = fopen ("conftest.val", "w"); |
2329 | if (! f) | |
2330 | return 1; | |
2331 | if (($2) < 0) | |
2332 | { | |
2333 | long int i = longval (); | |
2334 | if (i != ($2)) | |
2335 | return 1; | |
2336 | fprintf (f, "%ld", i); | |
2337 | } | |
2338 | else | |
2339 | { | |
2340 | unsigned long int i = ulongval (); | |
2341 | if (i != ($2)) | |
2342 | return 1; | |
2343 | fprintf (f, "%lu", i); | |
2344 | } | |
2345 | /* Do not output a trailing newline, as this causes \r\n confusion | |
2346 | on some platforms. */ | |
2347 | return ferror (f) || fclose (f) != 0; | |
93636bde | 2348 | |
57aa50d4 TT |
2349 | ; |
2350 | return 0; | |
2351 | } | |
2352 | _ACEOF | |
2353 | if ac_fn_c_try_run "$LINENO"; then : | |
2354 | echo >>conftest.val; read $3 <conftest.val; ac_retval=0 | |
2355 | else | |
2356 | ac_retval=1 | |
2357 | fi | |
2358 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
2359 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
2360 | rm -f conftest.val | |
93636bde | 2361 | |
57aa50d4 | 2362 | fi |
d6a4bcb5 | 2363 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
61ef2474 | 2364 | as_fn_set_status $ac_retval |
927566a3 | 2365 | |
57aa50d4 | 2366 | } # ac_fn_c_compute_int |
b0cacab0 | 2367 | |
57aa50d4 TT |
2368 | # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES |
2369 | # ---------------------------------------------------- | |
2370 | # Tries to find if the field MEMBER exists in type AGGR, after including | |
2371 | # INCLUDES, setting cache variable VAR accordingly. | |
2372 | ac_fn_c_check_member () | |
2373 | { | |
2374 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2375 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 | |
2376 | $as_echo_n "checking for $2.$3... " >&6; } | |
d6a4bcb5 | 2377 | if eval \${$4+:} false; then : |
39fd3d4f | 2378 | $as_echo_n "(cached) " >&6 |
b0cacab0 | 2379 | else |
57aa50d4 TT |
2380 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
2381 | /* end confdefs.h. */ | |
2382 | $5 | |
2383 | int | |
2384 | main () | |
2385 | { | |
2386 | static $2 ac_aggr; | |
2387 | if (ac_aggr.$3) | |
2388 | return 0; | |
2389 | ; | |
2390 | return 0; | |
2391 | } | |
2392 | _ACEOF | |
2393 | if ac_fn_c_try_compile "$LINENO"; then : | |
2394 | eval "$4=yes" | |
2395 | else | |
2396 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2397 | /* end confdefs.h. */ | |
2398 | $5 | |
2399 | int | |
2400 | main () | |
2401 | { | |
2402 | static $2 ac_aggr; | |
2403 | if (sizeof ac_aggr.$3) | |
2404 | return 0; | |
2405 | ; | |
2406 | return 0; | |
2407 | } | |
2408 | _ACEOF | |
2409 | if ac_fn_c_try_compile "$LINENO"; then : | |
2410 | eval "$4=yes" | |
2411 | else | |
2412 | eval "$4=no" | |
b0cacab0 | 2413 | fi |
57aa50d4 TT |
2414 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
2415 | fi | |
2416 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2417 | fi | |
2418 | eval ac_res=\$$4 | |
2419 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2420 | $as_echo "$ac_res" >&6; } | |
d6a4bcb5 | 2421 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
e1052144 | 2422 | |
57aa50d4 | 2423 | } # ac_fn_c_check_member |
57aa50d4 TT |
2424 | cat >config.log <<_ACEOF |
2425 | This file contains any messages produced by compilers while | |
2426 | running configure, to aid debugging if configure makes a mistake. | |
93636bde | 2427 | |
57aa50d4 | 2428 | It was created by $as_me, which was |
d6a4bcb5 | 2429 | generated by GNU Autoconf 2.69. Invocation command line was |
07a0db15 | 2430 | |
57aa50d4 | 2431 | $ $0 $@ |
e1052144 | 2432 | |
57aa50d4 TT |
2433 | _ACEOF |
2434 | exec 5>>config.log | |
2435 | { | |
2436 | cat <<_ASUNAME | |
2437 | ## --------- ## | |
2438 | ## Platform. ## | |
2439 | ## --------- ## | |
0b5b9f90 | 2440 | |
57aa50d4 TT |
2441 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
2442 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
2443 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
2444 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
2445 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
0b5b9f90 | 2446 | |
57aa50d4 TT |
2447 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
2448 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
0b5b9f90 | 2449 | |
57aa50d4 TT |
2450 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
2451 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
2452 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
2453 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` | |
2454 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
2455 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
2456 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
0b5b9f90 | 2457 | |
57aa50d4 | 2458 | _ASUNAME |
b0cacab0 | 2459 | |
b0cacab0 TT |
2460 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2461 | for as_dir in $PATH | |
2462 | do | |
2463 | IFS=$as_save_IFS | |
2464 | test -z "$as_dir" && as_dir=. | |
57aa50d4 TT |
2465 | $as_echo "PATH: $as_dir" |
2466 | done | |
e1052144 | 2467 | IFS=$as_save_IFS |
b0cacab0 | 2468 | |
57aa50d4 | 2469 | } >&5 |
74becf3c | 2470 | |
57aa50d4 | 2471 | cat >&5 <<_ACEOF |
e1052144 | 2472 | |
b0cacab0 | 2473 | |
57aa50d4 TT |
2474 | ## ----------- ## |
2475 | ## Core tests. ## | |
2476 | ## ----------- ## | |
b0cacab0 | 2477 | |
57aa50d4 | 2478 | _ACEOF |
b0cacab0 | 2479 | |
57aa50d4 TT |
2480 | |
2481 | # Keep a trace of the command line. | |
2482 | # Strip out --no-create and --no-recursion so they do not pile up. | |
2483 | # Strip out --silent because we don't want to record it for future runs. | |
2484 | # Also quote any args containing shell meta-characters. | |
2485 | # Make two passes to allow for proper duplicate-argument suppression. | |
2486 | ac_configure_args= | |
2487 | ac_configure_args0= | |
2488 | ac_configure_args1= | |
2489 | ac_must_keep_next=false | |
2490 | for ac_pass in 1 2 | |
b0cacab0 | 2491 | do |
57aa50d4 TT |
2492 | for ac_arg |
2493 | do | |
2494 | case $ac_arg in | |
2495 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
2496 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
2497 | | -silent | --silent | --silen | --sile | --sil) | |
2498 | continue ;; | |
2499 | *\'*) | |
2500 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
2501 | esac | |
2502 | case $ac_pass in | |
2503 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; | |
2504 | 2) | |
2505 | as_fn_append ac_configure_args1 " '$ac_arg'" | |
2506 | if test $ac_must_keep_next = true; then | |
2507 | ac_must_keep_next=false # Got value, back to normal. | |
2508 | else | |
2509 | case $ac_arg in | |
2510 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
2511 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
2512 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
2513 | | -with-* | --with-* | -without-* | --without-* | --x) | |
2514 | case "$ac_configure_args0 " in | |
2515 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
2516 | esac | |
2517 | ;; | |
2518 | -* ) ac_must_keep_next=true ;; | |
2519 | esac | |
2520 | fi | |
2521 | as_fn_append ac_configure_args " '$ac_arg'" | |
2522 | ;; | |
2523 | esac | |
2524 | done | |
b0cacab0 | 2525 | done |
57aa50d4 TT |
2526 | { ac_configure_args0=; unset ac_configure_args0;} |
2527 | { ac_configure_args1=; unset ac_configure_args1;} | |
2528 | ||
2529 | # When interrupted or exit'd, cleanup temporary files, and complete | |
2530 | # config.log. We remove comments because anyway the quotes in there | |
2531 | # would cause problems or look ugly. | |
2532 | # WARNING: Use '\'' to represent an apostrophe within the trap. | |
2533 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
2534 | trap 'exit_status=$? | |
2535 | # Save into config.log some information that might help in debugging. | |
2536 | { | |
2537 | echo | |
2538 | ||
d6a4bcb5 | 2539 | $as_echo "## ---------------- ## |
57aa50d4 | 2540 | ## Cache variables. ## |
d6a4bcb5 | 2541 | ## ---------------- ##" |
57aa50d4 TT |
2542 | echo |
2543 | # The following way of writing the cache mishandles newlines in values, | |
2544 | ( | |
2545 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
2546 | eval ac_val=\$$ac_var | |
2547 | case $ac_val in #( | |
2548 | *${as_nl}*) | |
2549 | case $ac_var in #( | |
2550 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
2551 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
2552 | esac | |
2553 | case $ac_var in #( | |
2554 | _ | IFS | as_nl) ;; #( | |
2555 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
2556 | *) { eval $ac_var=; unset $ac_var;} ;; | |
2557 | esac ;; | |
2558 | esac | |
2559 | done | |
2560 | (set) 2>&1 | | |
2561 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( | |
2562 | *${as_nl}ac_space=\ *) | |
2563 | sed -n \ | |
2564 | "s/'\''/'\''\\\\'\'''\''/g; | |
2565 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
2566 | ;; #( | |
2567 | *) | |
2568 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | |
2569 | ;; | |
2570 | esac | | |
2571 | sort | |
2572 | ) | |
2573 | echo | |
2574 | ||
d6a4bcb5 | 2575 | $as_echo "## ----------------- ## |
57aa50d4 | 2576 | ## Output variables. ## |
d6a4bcb5 | 2577 | ## ----------------- ##" |
57aa50d4 TT |
2578 | echo |
2579 | for ac_var in $ac_subst_vars | |
2580 | do | |
2581 | eval ac_val=\$$ac_var | |
2582 | case $ac_val in | |
2583 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2584 | esac | |
2585 | $as_echo "$ac_var='\''$ac_val'\''" | |
2586 | done | sort | |
2587 | echo | |
2588 | ||
2589 | if test -n "$ac_subst_files"; then | |
d6a4bcb5 | 2590 | $as_echo "## ------------------- ## |
57aa50d4 | 2591 | ## File substitutions. ## |
d6a4bcb5 | 2592 | ## ------------------- ##" |
57aa50d4 TT |
2593 | echo |
2594 | for ac_var in $ac_subst_files | |
2595 | do | |
2596 | eval ac_val=\$$ac_var | |
2597 | case $ac_val in | |
2598 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2599 | esac | |
2600 | $as_echo "$ac_var='\''$ac_val'\''" | |
2601 | done | sort | |
2602 | echo | |
2603 | fi | |
2604 | ||
2605 | if test -s confdefs.h; then | |
d6a4bcb5 | 2606 | $as_echo "## ----------- ## |
57aa50d4 | 2607 | ## confdefs.h. ## |
d6a4bcb5 | 2608 | ## ----------- ##" |
57aa50d4 TT |
2609 | echo |
2610 | cat confdefs.h | |
2611 | echo | |
2612 | fi | |
2613 | test "$ac_signal" != 0 && | |
2614 | $as_echo "$as_me: caught signal $ac_signal" | |
2615 | $as_echo "$as_me: exit $exit_status" | |
2616 | } >&5 | |
2617 | rm -f core *.core core.conftest.* && | |
2618 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
2619 | exit $exit_status | |
2620 | ' 0 | |
2621 | for ac_signal in 1 2 13 15; do | |
2622 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal | |
b0cacab0 | 2623 | done |
57aa50d4 | 2624 | ac_signal=0 |
b0cacab0 | 2625 | |
57aa50d4 TT |
2626 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
2627 | rm -f -r conftest* confdefs.h | |
b0cacab0 | 2628 | |
57aa50d4 | 2629 | $as_echo "/* confdefs.h */" > confdefs.h |
73ae2d4a | 2630 | |
57aa50d4 TT |
2631 | # Predefined preprocessor variables. |
2632 | ||
2633 | cat >>confdefs.h <<_ACEOF | |
2634 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
2635 | _ACEOF | |
2636 | ||
2637 | cat >>confdefs.h <<_ACEOF | |
2638 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
2639 | _ACEOF | |
2640 | ||
2641 | cat >>confdefs.h <<_ACEOF | |
2642 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
2643 | _ACEOF | |
2644 | ||
2645 | cat >>confdefs.h <<_ACEOF | |
2646 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
2647 | _ACEOF | |
2648 | ||
2649 | cat >>confdefs.h <<_ACEOF | |
2650 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
2651 | _ACEOF | |
2652 | ||
2653 | cat >>confdefs.h <<_ACEOF | |
2654 | #define PACKAGE_URL "$PACKAGE_URL" | |
2655 | _ACEOF | |
2656 | ||
2657 | ||
2658 | # Let the site file select an alternate cache file if it wants to. | |
2659 | # Prefer an explicitly selected file to automatically selected ones. | |
2660 | ac_site_file1=NONE | |
2661 | ac_site_file2=NONE | |
2662 | if test -n "$CONFIG_SITE"; then | |
d6a4bcb5 TB |
2663 | # We do not want a PATH search for config.site. |
2664 | case $CONFIG_SITE in #(( | |
2665 | -*) ac_site_file1=./$CONFIG_SITE;; | |
2666 | */*) ac_site_file1=$CONFIG_SITE;; | |
2667 | *) ac_site_file1=./$CONFIG_SITE;; | |
2668 | esac | |
57aa50d4 TT |
2669 | elif test "x$prefix" != xNONE; then |
2670 | ac_site_file1=$prefix/share/config.site | |
2671 | ac_site_file2=$prefix/etc/config.site | |
73ae2d4a | 2672 | else |
57aa50d4 TT |
2673 | ac_site_file1=$ac_default_prefix/share/config.site |
2674 | ac_site_file2=$ac_default_prefix/etc/config.site | |
2675 | fi | |
2676 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" | |
b0cacab0 | 2677 | do |
57aa50d4 | 2678 | test "x$ac_site_file" = xNONE && continue |
61ef2474 | 2679 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then |
57aa50d4 TT |
2680 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 |
2681 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} | |
2682 | sed 's/^/| /' "$ac_site_file" >&5 | |
d6a4bcb5 TB |
2683 | . "$ac_site_file" \ |
2684 | || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2685 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2686 | as_fn_error $? "failed to load site script $ac_site_file | |
2687 | See \`config.log' for more details" "$LINENO" 5; } | |
b0cacab0 TT |
2688 | fi |
2689 | done | |
b0cacab0 | 2690 | |
57aa50d4 | 2691 | if test -r "$cache_file"; then |
61ef2474 TT |
2692 | # Some versions of bash will fail to source /dev/null (special files |
2693 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. | |
2694 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then | |
57aa50d4 TT |
2695 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
2696 | $as_echo "$as_me: loading cache $cache_file" >&6;} | |
2697 | case $cache_file in | |
2698 | [\\/]* | ?:[\\/]* ) . "$cache_file";; | |
2699 | *) . "./$cache_file";; | |
2700 | esac | |
73ae2d4a | 2701 | fi |
57aa50d4 TT |
2702 | else |
2703 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 | |
2704 | $as_echo "$as_me: creating cache $cache_file" >&6;} | |
2705 | >$cache_file | |
73ae2d4a | 2706 | fi |
57aa50d4 | 2707 | |
93613951 | 2708 | gt_needs="$gt_needs " |
61ef2474 TT |
2709 | as_fn_append ac_header_list " stdlib.h" |
2710 | as_fn_append ac_header_list " unistd.h" | |
2711 | as_fn_append ac_header_list " sys/param.h" | |
93613951 | 2712 | as_fn_append ac_func_list " symlink" |
57aa50d4 TT |
2713 | # Check that the precious variables saved in the cache have kept the same |
2714 | # value. | |
2715 | ac_cache_corrupted=false | |
2716 | for ac_var in $ac_precious_vars; do | |
2717 | eval ac_old_set=\$ac_cv_env_${ac_var}_set | |
2718 | eval ac_new_set=\$ac_env_${ac_var}_set | |
2719 | eval ac_old_val=\$ac_cv_env_${ac_var}_value | |
2720 | eval ac_new_val=\$ac_env_${ac_var}_value | |
2721 | case $ac_old_set,$ac_new_set in | |
2722 | set,) | |
2723 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | |
2724 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
2725 | ac_cache_corrupted=: ;; | |
2726 | ,set) | |
2727 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 | |
2728 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
2729 | ac_cache_corrupted=: ;; | |
2730 | ,);; | |
2731 | *) | |
2732 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
2733 | # differences in whitespace do not lead to failure. | |
2734 | ac_old_val_w=`echo x $ac_old_val` | |
2735 | ac_new_val_w=`echo x $ac_new_val` | |
2736 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | |
2737 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 | |
2738 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
2739 | ac_cache_corrupted=: | |
2740 | else | |
2741 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | |
2742 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | |
2743 | eval $ac_var=\$ac_old_val | |
2744 | fi | |
2745 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 | |
2746 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} | |
2747 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 | |
2748 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} | |
2749 | fi;; | |
2750 | esac | |
2751 | # Pass precious variables to config.status. | |
2752 | if test "$ac_new_set" = set; then | |
2753 | case $ac_new_val in | |
2754 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | |
2755 | *) ac_arg=$ac_var=$ac_new_val ;; | |
2756 | esac | |
2757 | case " $ac_configure_args " in | |
2758 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
2759 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; | |
2760 | esac | |
2761 | fi | |
2762 | done | |
2763 | if $ac_cache_corrupted; then | |
2764 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2765 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2766 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 | |
2767 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
d6a4bcb5 | 2768 | as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 |
73ae2d4a | 2769 | fi |
57aa50d4 TT |
2770 | ## -------------------- ## |
2771 | ## Main body of script. ## | |
2772 | ## -------------------- ## | |
2773 | ||
2774 | ac_ext=c | |
2775 | ac_cpp='$CPP $CPPFLAGS' | |
2776 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2777 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2778 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2779 | ||
2780 | ||
2781 | ||
2782 | ac_aux_dir= | |
2783 | for ac_dir in config "$srcdir"/config; do | |
d6a4bcb5 TB |
2784 | if test -f "$ac_dir/install-sh"; then |
2785 | ac_aux_dir=$ac_dir | |
2786 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
2787 | break | |
2788 | elif test -f "$ac_dir/install.sh"; then | |
2789 | ac_aux_dir=$ac_dir | |
2790 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
2791 | break | |
2792 | elif test -f "$ac_dir/shtool"; then | |
2793 | ac_aux_dir=$ac_dir | |
2794 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
2795 | break | |
2796 | fi | |
57aa50d4 TT |
2797 | done |
2798 | if test -z "$ac_aux_dir"; then | |
d6a4bcb5 | 2799 | as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5 |
73ae2d4a | 2800 | fi |
57aa50d4 TT |
2801 | |
2802 | # These three variables are undocumented and unsupported, | |
2803 | # and are intended to be withdrawn in a future Autoconf release. | |
2804 | # They can cause serious problems if a builder's source tree is in a directory | |
2805 | # whose full name contains unusual characters. | |
2806 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
2807 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
2808 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
2809 | ||
2810 | ||
d1154eb4 TT |
2811 | ac_config_headers="$ac_config_headers lib/config.h" |
2812 | ||
2813 | ||
57aa50d4 TT |
2814 | MCONFIG=./MCONFIG |
2815 | ||
2816 | BINARY_TYPE=bin | |
2817 | E2FSPROGS_VERSION=`grep E2FSPROGS_VERSION ${srcdir}/version.h \ | |
2818 | | awk '{print $3}' | tr \" " " | awk '{print $1}'` | |
5ce368f0 DW |
2819 | E2FSPROGS_DATE=`grep E2FSPROGS_DATE ${srcdir}/version.h | awk '{print $3}' \ |
2820 | | tr \" " " | awk '{print $1}'` | |
2821 | E2FSPROGS_DAY=$(echo $E2FSPROGS_DATE | awk -F- '{print $1}' | sed -e '/^[1-9]$/s/^/0/') | |
2822 | MONTH=`echo $E2FSPROGS_DATE | awk -F- '{print $2}'` | |
2823 | YEAR=`echo $E2FSPROGS_DATE | awk -F- '{print $3}'` | |
57aa50d4 TT |
2824 | |
2825 | if expr $YEAR ">" 1900 > /dev/null ; then | |
2826 | E2FSPROGS_YEAR=$YEAR | |
2827 | elif expr $YEAR ">" 90 >/dev/null ; then | |
2828 | E2FSPROGS_YEAR=19$YEAR | |
73ae2d4a | 2829 | else |
57aa50d4 TT |
2830 | E2FSPROGS_YEAR=20$YEAR |
2831 | fi | |
2832 | ||
2833 | case $MONTH in | |
2834 | Jan) MONTH_NUM=01; E2FSPROGS_MONTH="January" ;; | |
2835 | Feb) MONTH_NUM=02; E2FSPROGS_MONTH="February" ;; | |
2836 | Mar) MONTH_NUM=03; E2FSPROGS_MONTH="March" ;; | |
2837 | Apr) MONTH_NUM=04; E2FSPROGS_MONTH="April" ;; | |
2838 | May) MONTH_NUM=05; E2FSPROGS_MONTH="May" ;; | |
2839 | Jun) MONTH_NUM=06; E2FSPROGS_MONTH="June" ;; | |
2840 | Jul) MONTH_NUM=07; E2FSPROGS_MONTH="July" ;; | |
2841 | Aug) MONTH_NUM=08; E2FSPROGS_MONTH="August" ;; | |
2842 | Sep) MONTH_NUM=09; E2FSPROGS_MONTH="September" ;; | |
2843 | Oct) MONTH_NUM=10; E2FSPROGS_MONTH="October" ;; | |
2844 | Nov) MONTH_NUM=11; E2FSPROGS_MONTH="November" ;; | |
2845 | Dec) MONTH_NUM=12; E2FSPROGS_MONTH="December" ;; | |
2846 | *) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unknown month $MONTH??" >&5 | |
2847 | $as_echo "$as_me: WARNING: Unknown month $MONTH??" >&2;} ;; | |
2848 | esac | |
2849 | ||
2850 | base_ver=`echo $E2FSPROGS_VERSION | \ | |
2851 | sed -e 's/-WIP//' -e 's/pre-//' -e 's/-PLUS//'` | |
2852 | ||
2853 | date_spec=${E2FSPROGS_YEAR}.${MONTH_NUM}.${E2FSPROGS_DAY} | |
2854 | ||
2855 | case $E2FSPROGS_VERSION in | |
2856 | *-WIP|pre-*) | |
2ab53829 | 2857 | E2FSPROGS_PKGVER="$base_ver~WIP.$date_spec" |
57aa50d4 TT |
2858 | ;; |
2859 | *) | |
2860 | E2FSPROGS_PKGVER="$base_ver" | |
2861 | ;; | |
2862 | esac | |
2863 | ||
2864 | unset DATE MONTH YEAR base_ver pre_vers date_spec | |
2865 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&5 | |
2866 | $as_echo "Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&6; } | |
2867 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&5 | |
2868 | $as_echo "Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&6; } | |
2869 | ||
2870 | ||
2871 | ||
2872 | ||
2873 | ||
5ce368f0 | 2874 | |
6c59a665 TT |
2875 | WITH_DIET_LIBC= |
2876 | ||
2877 | # Check whether --with-diet-libc was given. | |
2878 | if test "${with_diet_libc+set}" = set; then : | |
2879 | withval=$with_diet_libc; CC="diet cc -nostdinc" | |
2880 | WITH_DIET_LIBC=yes | |
2881 | if test -z "$LIBS" | |
2882 | then | |
2883 | LIBS="-lcompat" | |
2884 | else | |
2885 | LIBS="$LIBS -lcompat" | |
2886 | fi | |
2887 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: CC=$CC" >&5 | |
2888 | $as_echo "CC=$CC" >&6; } | |
2889 | fi | |
57aa50d4 TT |
2890 | # Make sure we can run config.sub. |
2891 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || | |
d6a4bcb5 | 2892 | as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 |
57aa50d4 TT |
2893 | |
2894 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 | |
2895 | $as_echo_n "checking build system type... " >&6; } | |
d6a4bcb5 | 2896 | if ${ac_cv_build+:} false; then : |
57aa50d4 TT |
2897 | $as_echo_n "(cached) " >&6 |
2898 | else | |
2899 | ac_build_alias=$build_alias | |
2900 | test "x$ac_build_alias" = x && | |
2901 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | |
2902 | test "x$ac_build_alias" = x && | |
d6a4bcb5 | 2903 | as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 |
57aa50d4 | 2904 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
d6a4bcb5 | 2905 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 |
57aa50d4 | 2906 | |
73ae2d4a | 2907 | fi |
57aa50d4 TT |
2908 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 |
2909 | $as_echo "$ac_cv_build" >&6; } | |
2910 | case $ac_cv_build in | |
2911 | *-*-*) ;; | |
d6a4bcb5 | 2912 | *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; |
57aa50d4 TT |
2913 | esac |
2914 | build=$ac_cv_build | |
2915 | ac_save_IFS=$IFS; IFS='-' | |
2916 | set x $ac_cv_build | |
2917 | shift | |
2918 | build_cpu=$1 | |
2919 | build_vendor=$2 | |
2920 | shift; shift | |
2921 | # Remember, the first character of IFS is used to create $*, | |
2922 | # except with old shells: | |
2923 | build_os=$* | |
2924 | IFS=$ac_save_IFS | |
2925 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | |
73ae2d4a | 2926 | |
e1052144 | 2927 | |
57aa50d4 TT |
2928 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 |
2929 | $as_echo_n "checking host system type... " >&6; } | |
d6a4bcb5 | 2930 | if ${ac_cv_host+:} false; then : |
57aa50d4 TT |
2931 | $as_echo_n "(cached) " >&6 |
2932 | else | |
2933 | if test "x$host_alias" = x; then | |
2934 | ac_cv_host=$ac_cv_build | |
2935 | else | |
2936 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || | |
d6a4bcb5 | 2937 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 |
b0cacab0 | 2938 | fi |
57aa50d4 TT |
2939 | |
2940 | fi | |
2941 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 | |
2942 | $as_echo "$ac_cv_host" >&6; } | |
2943 | case $ac_cv_host in | |
2944 | *-*-*) ;; | |
d6a4bcb5 | 2945 | *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; |
57aa50d4 TT |
2946 | esac |
2947 | host=$ac_cv_host | |
2948 | ac_save_IFS=$IFS; IFS='-' | |
2949 | set x $ac_cv_host | |
2950 | shift | |
2951 | host_cpu=$1 | |
2952 | host_vendor=$2 | |
2953 | shift; shift | |
2954 | # Remember, the first character of IFS is used to create $*, | |
2955 | # except with old shells: | |
2956 | host_os=$* | |
2957 | IFS=$ac_save_IFS | |
2958 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | |
2959 | ||
2960 | ||
2961 | DLOPEN_LIB='' | |
2962 | ac_ext=c | |
2963 | ac_cpp='$CPP $CPPFLAGS' | |
2964 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2965 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2966 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2967 | if test -n "$ac_tool_prefix"; then | |
2968 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
2969 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
2970 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
39fd3d4f | 2971 | $as_echo_n "checking for $ac_word... " >&6; } |
d6a4bcb5 | 2972 | if ${ac_cv_prog_CC+:} false; then : |
39fd3d4f | 2973 | $as_echo_n "(cached) " >&6 |
73ae2d4a TT |
2974 | else |
2975 | if test -n "$CC"; then | |
2976 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2977 | else | |
b0cacab0 TT |
2978 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2979 | for as_dir in $PATH | |
2980 | do | |
2981 | IFS=$as_save_IFS | |
2982 | test -z "$as_dir" && as_dir=. | |
57aa50d4 | 2983 | for ac_exec_ext in '' $ac_executable_extensions; do |
d6a4bcb5 | 2984 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
57aa50d4 TT |
2985 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
2986 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
b0cacab0 TT |
2987 | break 2 |
2988 | fi | |
2989 | done | |
57aa50d4 | 2990 | done |
e1052144 | 2991 | IFS=$as_save_IFS |
b0cacab0 | 2992 | |
73ae2d4a TT |
2993 | fi |
2994 | fi | |
b0cacab0 | 2995 | CC=$ac_cv_prog_CC |
73ae2d4a | 2996 | if test -n "$CC"; then |
57aa50d4 | 2997 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
39fd3d4f | 2998 | $as_echo "$CC" >&6; } |
73ae2d4a | 2999 | else |
57aa50d4 | 3000 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
39fd3d4f | 3001 | $as_echo "no" >&6; } |
73ae2d4a | 3002 | fi |
b0cacab0 | 3003 | |
e1052144 | 3004 | |
b0cacab0 | 3005 | fi |
57aa50d4 | 3006 | if test -z "$ac_cv_prog_CC"; then |
b0cacab0 | 3007 | ac_ct_CC=$CC |
57aa50d4 TT |
3008 | # Extract the first word of "gcc", so it can be a program name with args. |
3009 | set dummy gcc; ac_word=$2 | |
3010 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
39fd3d4f | 3011 | $as_echo_n "checking for $ac_word... " >&6; } |
d6a4bcb5 | 3012 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
39fd3d4f | 3013 | $as_echo_n "(cached) " >&6 |
b0cacab0 TT |
3014 | else |
3015 | if test -n "$ac_ct_CC"; then | |
3016 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
3017 | else | |
3018 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3019 | for as_dir in $PATH | |
3020 | do | |
3021 | IFS=$as_save_IFS | |
3022 | test -z "$as_dir" && as_dir=. | |
57aa50d4 | 3023 | for ac_exec_ext in '' $ac_executable_extensions; do |
d6a4bcb5 | 3024 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
57aa50d4 TT |
3025 | ac_cv_prog_ac_ct_CC="gcc" |
3026 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
b0cacab0 | 3027 | break 2 |
93636bde | 3028 | fi |
b0cacab0 | 3029 | done |
57aa50d4 | 3030 | done |
e1052144 | 3031 | IFS=$as_save_IFS |
b0cacab0 TT |
3032 | |
3033 | fi | |
3034 | fi | |
3035 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
3036 | if test -n "$ac_ct_CC"; then | |
57aa50d4 | 3037 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
39fd3d4f | 3038 | $as_echo "$ac_ct_CC" >&6; } |
b0cacab0 | 3039 | else |
57aa50d4 | 3040 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
39fd3d4f | 3041 | $as_echo "no" >&6; } |
07a0db15 | 3042 | fi |
73ae2d4a | 3043 | |
e1052144 TT |
3044 | if test "x$ac_ct_CC" = x; then |
3045 | CC="" | |
3046 | else | |
3047 | case $cross_compiling:$ac_tool_warned in | |
3048 | yes:) | |
57aa50d4 | 3049 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
39fd3d4f | 3050 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
e1052144 TT |
3051 | ac_tool_warned=yes ;; |
3052 | esac | |
3053 | CC=$ac_ct_CC | |
3054 | fi | |
57aa50d4 TT |
3055 | else |
3056 | CC="$ac_cv_prog_CC" | |
b0cacab0 TT |
3057 | fi |
3058 | ||
57aa50d4 TT |
3059 | if test -z "$CC"; then |
3060 | if test -n "$ac_tool_prefix"; then | |
3061 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
3062 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
3063 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3064 | $as_echo_n "checking for $ac_word... " >&6; } | |
d6a4bcb5 | 3065 | if ${ac_cv_prog_CC+:} false; then : |
57aa50d4 TT |
3066 | $as_echo_n "(cached) " >&6 |
3067 | else | |
3068 | if test -n "$CC"; then | |
3069 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3070 | else | |
3071 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3072 | for as_dir in $PATH | |
3073 | do | |
3074 | IFS=$as_save_IFS | |
3075 | test -z "$as_dir" && as_dir=. | |
3076 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d6a4bcb5 | 3077 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
57aa50d4 TT |
3078 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
3079 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3080 | break 2 | |
3081 | fi | |
3082 | done | |
3083 | done | |
3084 | IFS=$as_save_IFS | |
3085 | ||
3086 | fi | |
3087 | fi | |
3088 | CC=$ac_cv_prog_CC | |
3089 | if test -n "$CC"; then | |
3090 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
3091 | $as_echo "$CC" >&6; } | |
3092 | else | |
3093 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3094 | $as_echo "no" >&6; } | |
3095 | fi | |
3096 | ||
3097 | ||
3098 | fi | |
3099 | fi | |
3100 | if test -z "$CC"; then | |
3101 | # Extract the first word of "cc", so it can be a program name with args. | |
3102 | set dummy cc; ac_word=$2 | |
3103 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3104 | $as_echo_n "checking for $ac_word... " >&6; } | |
d6a4bcb5 | 3105 | if ${ac_cv_prog_CC+:} false; then : |
57aa50d4 TT |
3106 | $as_echo_n "(cached) " >&6 |
3107 | else | |
3108 | if test -n "$CC"; then | |
3109 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3110 | else | |
3111 | ac_prog_rejected=no | |
3112 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3113 | for as_dir in $PATH | |
3114 | do | |
3115 | IFS=$as_save_IFS | |
3116 | test -z "$as_dir" && as_dir=. | |
3117 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d6a4bcb5 | 3118 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
57aa50d4 TT |
3119 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
3120 | ac_prog_rejected=yes | |
3121 | continue | |
3122 | fi | |
3123 | ac_cv_prog_CC="cc" | |
3124 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3125 | break 2 | |
3126 | fi | |
3127 | done | |
3128 | done | |
3129 | IFS=$as_save_IFS | |
3130 | ||
3131 | if test $ac_prog_rejected = yes; then | |
3132 | # We found a bogon in the path, so make sure we never use it. | |
3133 | set dummy $ac_cv_prog_CC | |
3134 | shift | |
3135 | if test $# != 0; then | |
3136 | # We chose a different compiler from the bogus one. | |
3137 | # However, it has the same basename, so the bogon will be chosen | |
3138 | # first if we set CC to just the basename; use the full file name. | |
3139 | shift | |
3140 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
3141 | fi | |
3142 | fi | |
3143 | fi | |
3144 | fi | |
3145 | CC=$ac_cv_prog_CC | |
3146 | if test -n "$CC"; then | |
3147 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
3148 | $as_echo "$CC" >&6; } | |
3149 | else | |
3150 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3151 | $as_echo "no" >&6; } | |
3152 | fi | |
3153 | ||
3154 | ||
3155 | fi | |
3156 | if test -z "$CC"; then | |
3157 | if test -n "$ac_tool_prefix"; then | |
3158 | for ac_prog in cl.exe | |
3159 | do | |
3160 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
3161 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
3162 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3163 | $as_echo_n "checking for $ac_word... " >&6; } | |
d6a4bcb5 | 3164 | if ${ac_cv_prog_CC+:} false; then : |
57aa50d4 TT |
3165 | $as_echo_n "(cached) " >&6 |
3166 | else | |
3167 | if test -n "$CC"; then | |
3168 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3169 | else | |
3170 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3171 | for as_dir in $PATH | |
3172 | do | |
3173 | IFS=$as_save_IFS | |
3174 | test -z "$as_dir" && as_dir=. | |
3175 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d6a4bcb5 | 3176 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
57aa50d4 TT |
3177 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
3178 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3179 | break 2 | |
3180 | fi | |
3181 | done | |
3182 | done | |
3183 | IFS=$as_save_IFS | |
3184 | ||
3185 | fi | |
3186 | fi | |
3187 | CC=$ac_cv_prog_CC | |
3188 | if test -n "$CC"; then | |
3189 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
3190 | $as_echo "$CC" >&6; } | |
3191 | else | |
3192 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3193 | $as_echo "no" >&6; } | |
3194 | fi | |
3195 | ||
3196 | ||
3197 | test -n "$CC" && break | |
3198 | done | |
3199 | fi | |
3200 | if test -z "$CC"; then | |
3201 | ac_ct_CC=$CC | |
3202 | for ac_prog in cl.exe | |
3203 | do | |
3204 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
3205 | set dummy $ac_prog; ac_word=$2 | |
3206 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3207 | $as_echo_n "checking for $ac_word... " >&6; } | |
d6a4bcb5 | 3208 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
57aa50d4 TT |
3209 | $as_echo_n "(cached) " >&6 |
3210 | else | |
3211 | if test -n "$ac_ct_CC"; then | |
3212 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
3213 | else | |
3214 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3215 | for as_dir in $PATH | |
3216 | do | |
3217 | IFS=$as_save_IFS | |
3218 | test -z "$as_dir" && as_dir=. | |
3219 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d6a4bcb5 | 3220 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
57aa50d4 TT |
3221 | ac_cv_prog_ac_ct_CC="$ac_prog" |
3222 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3223 | break 2 | |
3224 | fi | |
3225 | done | |
3226 | done | |
3227 | IFS=$as_save_IFS | |
3228 | ||
3229 | fi | |
3230 | fi | |
3231 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
3232 | if test -n "$ac_ct_CC"; then | |
3233 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
3234 | $as_echo "$ac_ct_CC" >&6; } | |
3235 | else | |
3236 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3237 | $as_echo "no" >&6; } | |
3238 | fi | |
3239 | ||
3240 | ||
3241 | test -n "$ac_ct_CC" && break | |
3242 | done | |
3243 | ||
3244 | if test "x$ac_ct_CC" = x; then | |
3245 | CC="" | |
3246 | else | |
3247 | case $cross_compiling:$ac_tool_warned in | |
3248 | yes:) | |
3249 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
3250 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
3251 | ac_tool_warned=yes ;; | |
3252 | esac | |
3253 | CC=$ac_ct_CC | |
3254 | fi | |
3255 | fi | |
3256 | ||
3257 | fi | |
3258 | ||
3259 | ||
3260 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3261 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
d6a4bcb5 TB |
3262 | as_fn_error $? "no acceptable C compiler found in \$PATH |
3263 | See \`config.log' for more details" "$LINENO" 5; } | |
b0cacab0 TT |
3264 | |
3265 | # Provide some information about the compiler. | |
57aa50d4 | 3266 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
39fd3d4f SJR |
3267 | set X $ac_compile |
3268 | ac_compiler=$2 | |
57aa50d4 TT |
3269 | for ac_option in --version -v -V -qversion; do |
3270 | { { ac_try="$ac_compiler $ac_option >&5" | |
e1052144 TT |
3271 | case "(($ac_try" in |
3272 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3273 | *) ac_try_echo=$ac_try;; | |
3274 | esac | |
57aa50d4 TT |
3275 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
3276 | $as_echo "$ac_try_echo"; } >&5 | |
3277 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
b0cacab0 | 3278 | ac_status=$? |
57aa50d4 TT |
3279 | if test -s conftest.err; then |
3280 | sed '10a\ | |
3281 | ... rest of stderr output deleted ... | |
3282 | 10q' conftest.err >conftest.er1 | |
3283 | cat conftest.er1 >&5 | |
57aa50d4 | 3284 | fi |
61ef2474 | 3285 | rm -f conftest.er1 conftest.err |
57aa50d4 TT |
3286 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
3287 | test $ac_status = 0; } | |
3288 | done | |
b0cacab0 | 3289 | |
57aa50d4 | 3290 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
b0cacab0 | 3291 | /* end confdefs.h. */ |
61ef2474 | 3292 | |
b0cacab0 TT |
3293 | int |
3294 | main () | |
3295 | { | |
3296 | ||
3297 | ; | |
3298 | return 0; | |
3299 | } | |
3300 | _ACEOF | |
3301 | ac_clean_files_save=$ac_clean_files | |
61ef2474 | 3302 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" |
b0cacab0 TT |
3303 | # Try to create an executable without -o first, disregard a.out. |
3304 | # It will help us diagnose broken compilers, and finding out an intuition | |
3305 | # of exeext. | |
61ef2474 TT |
3306 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 |
3307 | $as_echo_n "checking whether the C compiler works... " >&6; } | |
39fd3d4f SJR |
3308 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
3309 | ||
3310 | # The possible output files: | |
3311 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | |
3312 | ||
e1052144 TT |
3313 | ac_rmfiles= |
3314 | for ac_file in $ac_files | |
3315 | do | |
3316 | case $ac_file in | |
39fd3d4f | 3317 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
e1052144 TT |
3318 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
3319 | esac | |
3320 | done | |
3321 | rm -f $ac_rmfiles | |
3322 | ||
57aa50d4 | 3323 | if { { ac_try="$ac_link_default" |
e1052144 TT |
3324 | case "(($ac_try" in |
3325 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3326 | *) ac_try_echo=$ac_try;; | |
3327 | esac | |
57aa50d4 TT |
3328 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
3329 | $as_echo "$ac_try_echo"; } >&5 | |
e1052144 | 3330 | (eval "$ac_link_default") 2>&5 |
b0cacab0 | 3331 | ac_status=$? |
57aa50d4 TT |
3332 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
3333 | test $ac_status = 0; }; then : | |
e1052144 TT |
3334 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
3335 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
3336 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
3337 | # so that the user can short-circuit this test for compilers unknown to | |
3338 | # Autoconf. | |
29a5deed | 3339 | for ac_file in $ac_files '' |
b0cacab0 TT |
3340 | do |
3341 | test -f "$ac_file" || continue | |
3342 | case $ac_file in | |
39fd3d4f | 3343 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
b0cacab0 TT |
3344 | ;; |
3345 | [ab].out ) | |
3346 | # We found the default executable, but exeext='' is most | |
3347 | # certainly right. | |
3348 | break;; | |
3349 | *.* ) | |
57aa50d4 | 3350 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
e1052144 TT |
3351 | then :; else |
3352 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
3353 | fi | |
3354 | # We set ac_cv_exeext here because the later test for it is not | |
3355 | # safe: cross compilers may not add the suffix if given an `-o' | |
3356 | # argument, so we may need to know it at that point already. | |
3357 | # Even if this section looks crufty: it has the advantage of | |
3358 | # actually working. | |
b0cacab0 TT |
3359 | break;; |
3360 | * ) | |
3361 | break;; | |
3362 | esac | |
3363 | done | |
e1052144 TT |
3364 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
3365 | ||
b0cacab0 | 3366 | else |
29a5deed TT |
3367 | ac_file='' |
3368 | fi | |
57aa50d4 | 3369 | if test -z "$ac_file"; then : |
61ef2474 TT |
3370 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3371 | $as_echo "no" >&6; } | |
3372 | $as_echo "$as_me: failed program was:" >&5 | |
b0cacab0 TT |
3373 | sed 's/^/| /' conftest.$ac_ext >&5 |
3374 | ||
57aa50d4 | 3375 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
39fd3d4f | 3376 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
d6a4bcb5 TB |
3377 | as_fn_error 77 "C compiler cannot create executables |
3378 | See \`config.log' for more details" "$LINENO" 5; } | |
61ef2474 TT |
3379 | else |
3380 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3381 | $as_echo "yes" >&6; } | |
b0cacab0 | 3382 | fi |
61ef2474 TT |
3383 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
3384 | $as_echo_n "checking for C compiler default output file name... " >&6; } | |
3385 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 | |
3386 | $as_echo "$ac_file" >&6; } | |
b0cacab0 | 3387 | ac_exeext=$ac_cv_exeext |
b0cacab0 | 3388 | |
61ef2474 | 3389 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
b0cacab0 | 3390 | ac_clean_files=$ac_clean_files_save |
57aa50d4 | 3391 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 |
39fd3d4f | 3392 | $as_echo_n "checking for suffix of executables... " >&6; } |
57aa50d4 | 3393 | if { { ac_try="$ac_link" |
e1052144 TT |
3394 | case "(($ac_try" in |
3395 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3396 | *) ac_try_echo=$ac_try;; | |
3397 | esac | |
57aa50d4 TT |
3398 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
3399 | $as_echo "$ac_try_echo"; } >&5 | |
e1052144 | 3400 | (eval "$ac_link") 2>&5 |
b0cacab0 | 3401 | ac_status=$? |
57aa50d4 TT |
3402 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
3403 | test $ac_status = 0; }; then : | |
b0cacab0 TT |
3404 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
3405 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
3406 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
3407 | # `rm'. | |
3408 | for ac_file in conftest.exe conftest conftest.*; do | |
3409 | test -f "$ac_file" || continue | |
3410 | case $ac_file in | |
39fd3d4f | 3411 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
b0cacab0 | 3412 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
b0cacab0 TT |
3413 | break;; |
3414 | * ) break;; | |
3415 | esac | |
3416 | done | |
73ae2d4a | 3417 | else |
57aa50d4 | 3418 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
39fd3d4f | 3419 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
d6a4bcb5 TB |
3420 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link |
3421 | See \`config.log' for more details" "$LINENO" 5; } | |
73ae2d4a | 3422 | fi |
61ef2474 | 3423 | rm -f conftest conftest$ac_cv_exeext |
57aa50d4 | 3424 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
39fd3d4f | 3425 | $as_echo "$ac_cv_exeext" >&6; } |
73ae2d4a | 3426 | |
b0cacab0 TT |
3427 | rm -f conftest.$ac_ext |
3428 | EXEEXT=$ac_cv_exeext | |
3429 | ac_exeext=$EXEEXT | |
61ef2474 TT |
3430 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3431 | /* end confdefs.h. */ | |
3432 | #include <stdio.h> | |
3433 | int | |
3434 | main () | |
3435 | { | |
3436 | FILE *f = fopen ("conftest.out", "w"); | |
3437 | return ferror (f) || fclose (f) != 0; | |
3438 | ||
3439 | ; | |
3440 | return 0; | |
3441 | } | |
3442 | _ACEOF | |
3443 | ac_clean_files="$ac_clean_files conftest.out" | |
3444 | # Check that the compiler produces executables we can run. If not, either | |
3445 | # the compiler is broken, or we cross compile. | |
3446 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 | |
3447 | $as_echo_n "checking whether we are cross compiling... " >&6; } | |
3448 | if test "$cross_compiling" != yes; then | |
3449 | { { ac_try="$ac_link" | |
3450 | case "(($ac_try" in | |
3451 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3452 | *) ac_try_echo=$ac_try;; | |
3453 | esac | |
3454 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3455 | $as_echo "$ac_try_echo"; } >&5 | |
3456 | (eval "$ac_link") 2>&5 | |
3457 | ac_status=$? | |
3458 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3459 | test $ac_status = 0; } | |
3460 | if { ac_try='./conftest$ac_cv_exeext' | |
3461 | { { case "(($ac_try" in | |
3462 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3463 | *) ac_try_echo=$ac_try;; | |
3464 | esac | |
3465 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3466 | $as_echo "$ac_try_echo"; } >&5 | |
3467 | (eval "$ac_try") 2>&5 | |
3468 | ac_status=$? | |
3469 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3470 | test $ac_status = 0; }; }; then | |
3471 | cross_compiling=no | |
3472 | else | |
3473 | if test "$cross_compiling" = maybe; then | |
3474 | cross_compiling=yes | |
3475 | else | |
3476 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3477 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
d6a4bcb5 | 3478 | as_fn_error $? "cannot run C compiled programs. |
61ef2474 | 3479 | If you meant to cross compile, use \`--host'. |
d6a4bcb5 | 3480 | See \`config.log' for more details" "$LINENO" 5; } |
61ef2474 TT |
3481 | fi |
3482 | fi | |
3483 | fi | |
3484 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 | |
3485 | $as_echo "$cross_compiling" >&6; } | |
3486 | ||
3487 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out | |
3488 | ac_clean_files=$ac_clean_files_save | |
57aa50d4 | 3489 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 |
39fd3d4f | 3490 | $as_echo_n "checking for suffix of object files... " >&6; } |
d6a4bcb5 | 3491 | if ${ac_cv_objext+:} false; then : |
39fd3d4f | 3492 | $as_echo_n "(cached) " >&6 |
73ae2d4a | 3493 | else |
57aa50d4 | 3494 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
b0cacab0 | 3495 | /* end confdefs.h. */ |
07a0db15 | 3496 | |
b0cacab0 TT |
3497 | int |
3498 | main () | |
3499 | { | |
07a0db15 | 3500 | |
b0cacab0 TT |
3501 | ; |
3502 | return 0; | |
3503 | } | |
3504 | _ACEOF | |
3505 | rm -f conftest.o conftest.obj | |
57aa50d4 | 3506 | if { { ac_try="$ac_compile" |
e1052144 TT |
3507 | case "(($ac_try" in |
3508 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3509 | *) ac_try_echo=$ac_try;; | |
3510 | esac | |
57aa50d4 TT |
3511 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
3512 | $as_echo "$ac_try_echo"; } >&5 | |
e1052144 | 3513 | (eval "$ac_compile") 2>&5 |
b0cacab0 | 3514 | ac_status=$? |
57aa50d4 TT |
3515 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
3516 | test $ac_status = 0; }; then : | |
e1052144 TT |
3517 | for ac_file in conftest.o conftest.obj conftest.*; do |
3518 | test -f "$ac_file" || continue; | |
b0cacab0 | 3519 | case $ac_file in |
39fd3d4f | 3520 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
b0cacab0 TT |
3521 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
3522 | break;; | |
3523 | esac | |
3524 | done | |
93636bde | 3525 | else |
39fd3d4f | 3526 | $as_echo "$as_me: failed program was:" >&5 |
b0cacab0 | 3527 | sed 's/^/| /' conftest.$ac_ext >&5 |
07a0db15 | 3528 | |
57aa50d4 | 3529 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
39fd3d4f | 3530 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
d6a4bcb5 TB |
3531 | as_fn_error $? "cannot compute suffix of object files: cannot compile |
3532 | See \`config.log' for more details" "$LINENO" 5; } | |
73ae2d4a | 3533 | fi |
b0cacab0 | 3534 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
73ae2d4a | 3535 | fi |
57aa50d4 | 3536 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
39fd3d4f | 3537 | $as_echo "$ac_cv_objext" >&6; } |
b0cacab0 TT |
3538 | OBJEXT=$ac_cv_objext |
3539 | ac_objext=$OBJEXT | |
57aa50d4 | 3540 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
39fd3d4f | 3541 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } |
d6a4bcb5 | 3542 | if ${ac_cv_c_compiler_gnu+:} false; then : |
39fd3d4f | 3543 | $as_echo_n "(cached) " >&6 |
b0cacab0 | 3544 | else |
57aa50d4 | 3545 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
b0cacab0 TT |
3546 | /* end confdefs.h. */ |
3547 | ||
3548 | int | |
3549 | main () | |
3550 | { | |
3551 | #ifndef __GNUC__ | |
3552 | choke me | |
3553 | #endif | |
3554 | ||
3555 | ; | |
3556 | return 0; | |
3557 | } | |
3558 | _ACEOF | |
57aa50d4 | 3559 | if ac_fn_c_try_compile "$LINENO"; then : |
b0cacab0 TT |
3560 | ac_compiler_gnu=yes |
3561 | else | |
57aa50d4 | 3562 | ac_compiler_gnu=no |
b0cacab0 | 3563 | fi |
e1052144 | 3564 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
b0cacab0 TT |
3565 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
3566 | ||
3567 | fi | |
57aa50d4 | 3568 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
39fd3d4f SJR |
3569 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } |
3570 | if test $ac_compiler_gnu = yes; then | |
3571 | GCC=yes | |
3572 | else | |
3573 | GCC= | |
3574 | fi | |
b0cacab0 TT |
3575 | ac_test_CFLAGS=${CFLAGS+set} |
3576 | ac_save_CFLAGS=$CFLAGS | |
57aa50d4 | 3577 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
39fd3d4f | 3578 | $as_echo_n "checking whether $CC accepts -g... " >&6; } |
d6a4bcb5 | 3579 | if ${ac_cv_prog_cc_g+:} false; then : |
39fd3d4f | 3580 | $as_echo_n "(cached) " >&6 |
b0cacab0 | 3581 | else |
e1052144 TT |
3582 | ac_save_c_werror_flag=$ac_c_werror_flag |
3583 | ac_c_werror_flag=yes | |
3584 | ac_cv_prog_cc_g=no | |
3585 | CFLAGS="-g" | |
57aa50d4 | 3586 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
e1052144 TT |
3587 | /* end confdefs.h. */ |
3588 | ||
3589 | int | |
3590 | main () | |
3591 | { | |
3592 | ||
3593 | ; | |
3594 | return 0; | |
3595 | } | |
3596 | _ACEOF | |
57aa50d4 | 3597 | if ac_fn_c_try_compile "$LINENO"; then : |
e1052144 TT |
3598 | ac_cv_prog_cc_g=yes |
3599 | else | |
57aa50d4 TT |
3600 | CFLAGS="" |
3601 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
e1052144 TT |
3602 | /* end confdefs.h. */ |
3603 | ||
3604 | int | |
3605 | main () | |
3606 | { | |
3607 | ||
3608 | ; | |
3609 | return 0; | |
3610 | } | |
3611 | _ACEOF | |
57aa50d4 | 3612 | if ac_fn_c_try_compile "$LINENO"; then : |
e1052144 | 3613 | |
57aa50d4 TT |
3614 | else |
3615 | ac_c_werror_flag=$ac_save_c_werror_flag | |
e1052144 | 3616 | CFLAGS="-g" |
57aa50d4 | 3617 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
b0cacab0 TT |
3618 | /* end confdefs.h. */ |
3619 | ||
3620 | int | |
3621 | main () | |
3622 | { | |
3623 | ||
3624 | ; | |
3625 | return 0; | |
3626 | } | |
3627 | _ACEOF | |
57aa50d4 | 3628 | if ac_fn_c_try_compile "$LINENO"; then : |
b0cacab0 | 3629 | ac_cv_prog_cc_g=yes |
e1052144 | 3630 | fi |
e1052144 TT |
3631 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3632 | fi | |
e1052144 | 3633 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
b0cacab0 | 3634 | fi |
e1052144 TT |
3635 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3636 | ac_c_werror_flag=$ac_save_c_werror_flag | |
b0cacab0 | 3637 | fi |
57aa50d4 | 3638 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 |
39fd3d4f | 3639 | $as_echo "$ac_cv_prog_cc_g" >&6; } |
b0cacab0 TT |
3640 | if test "$ac_test_CFLAGS" = set; then |
3641 | CFLAGS=$ac_save_CFLAGS | |
3642 | elif test $ac_cv_prog_cc_g = yes; then | |
3643 | if test "$GCC" = yes; then | |
3644 | CFLAGS="-g -O2" | |
3645 | else | |
3646 | CFLAGS="-g" | |
3647 | fi | |
73ae2d4a TT |
3648 | else |
3649 | if test "$GCC" = yes; then | |
3650 | CFLAGS="-O2" | |
3651 | else | |
3652 | CFLAGS= | |
3653 | fi | |
3654 | fi | |
57aa50d4 | 3655 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
39fd3d4f | 3656 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } |
d6a4bcb5 | 3657 | if ${ac_cv_prog_cc_c89+:} false; then : |
39fd3d4f | 3658 | $as_echo_n "(cached) " >&6 |
b0cacab0 | 3659 | else |
e1052144 | 3660 | ac_cv_prog_cc_c89=no |
b0cacab0 | 3661 | ac_save_CC=$CC |
57aa50d4 | 3662 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
b0cacab0 TT |
3663 | /* end confdefs.h. */ |
3664 | #include <stdarg.h> | |
3665 | #include <stdio.h> | |
d6a4bcb5 | 3666 | struct stat; |
b0cacab0 TT |
3667 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
3668 | struct buf { int x; }; | |
3669 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
3670 | static char *e (p, i) | |
3671 | char **p; | |
3672 | int i; | |
3673 | { | |
3674 | return p[i]; | |
3675 | } | |
3676 | static char *f (char * (*g) (char **, int), char **p, ...) | |
3677 | { | |
3678 | char *s; | |
3679 | va_list v; | |
3680 | va_start (v,p); | |
3681 | s = g (p, va_arg (v,int)); | |
3682 | va_end (v); | |
3683 | return s; | |
3684 | } | |
3685 | ||
3686 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
3687 | function prototypes and stuff, but not '\xHH' hex character constants. | |
3688 | These don't provoke an error unfortunately, instead are silently treated | |
e1052144 | 3689 | as 'x'. The following induces an error, until -std is added to get |
b0cacab0 TT |
3690 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
3691 | array size at least. It's necessary to write '\x00'==0 to get something | |
e1052144 | 3692 | that's true only with -std. */ |
b0cacab0 TT |
3693 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
3694 | ||
e1052144 TT |
3695 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
3696 | inside strings and character constants. */ | |
3697 | #define FOO(x) 'x' | |
3698 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
3699 | ||
b0cacab0 TT |
3700 | int test (int i, double x); |
3701 | struct s1 {int (*f) (int a);}; | |
3702 | struct s2 {int (*f) (double a);}; | |
3703 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
3704 | int argc; | |
3705 | char **argv; | |
3706 | int | |
3707 | main () | |
3708 | { | |
3709 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
3710 | ; | |
3711 | return 0; | |
3712 | } | |
3713 | _ACEOF | |
e1052144 TT |
3714 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
3715 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
b0cacab0 TT |
3716 | do |
3717 | CC="$ac_save_CC $ac_arg" | |
57aa50d4 | 3718 | if ac_fn_c_try_compile "$LINENO"; then : |
e1052144 | 3719 | ac_cv_prog_cc_c89=$ac_arg |
b0cacab0 | 3720 | fi |
e1052144 TT |
3721 | rm -f core conftest.err conftest.$ac_objext |
3722 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
b0cacab0 | 3723 | done |
e1052144 | 3724 | rm -f conftest.$ac_ext |
b0cacab0 TT |
3725 | CC=$ac_save_CC |
3726 | ||
3727 | fi | |
e1052144 TT |
3728 | # AC_CACHE_VAL |
3729 | case "x$ac_cv_prog_cc_c89" in | |
3730 | x) | |
57aa50d4 | 3731 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
39fd3d4f | 3732 | $as_echo "none needed" >&6; } ;; |
e1052144 | 3733 | xno) |
57aa50d4 | 3734 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
39fd3d4f | 3735 | $as_echo "unsupported" >&6; } ;; |
b0cacab0 | 3736 | *) |
e1052144 | 3737 | CC="$CC $ac_cv_prog_cc_c89" |
57aa50d4 | 3738 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 |
39fd3d4f | 3739 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; |
b0cacab0 | 3740 | esac |
57aa50d4 | 3741 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
b0cacab0 | 3742 | |
57aa50d4 | 3743 | fi |
b0cacab0 | 3744 | |
b0cacab0 TT |
3745 | ac_ext=c |
3746 | ac_cpp='$CPP $CPPFLAGS' | |
3747 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3748 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3749 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3750 | ||
57aa50d4 TT |
3751 | |
3752 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 | |
3753 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | |
d6a4bcb5 | 3754 | if ${ac_cv_lib_dl_dlopen+:} false; then : |
39fd3d4f | 3755 | $as_echo_n "(cached) " >&6 |
b0cacab0 | 3756 | else |
57aa50d4 TT |
3757 | ac_check_lib_save_LIBS=$LIBS |
3758 | LIBS="-ldl $LIBS" | |
3759 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
b0cacab0 | 3760 | /* end confdefs.h. */ |
57aa50d4 TT |
3761 | |
3762 | /* Override any GCC internal prototype to avoid an error. | |
3763 | Use char because int might match the return type of a GCC | |
3764 | builtin and then its argument prototype would still apply. */ | |
3765 | #ifdef __cplusplus | |
3766 | extern "C" | |
b0cacab0 | 3767 | #endif |
57aa50d4 TT |
3768 | char dlopen (); |
3769 | int | |
3770 | main () | |
3771 | { | |
3772 | return dlopen (); | |
3773 | ; | |
3774 | return 0; | |
3775 | } | |
b0cacab0 | 3776 | _ACEOF |
57aa50d4 TT |
3777 | if ac_fn_c_try_link "$LINENO"; then : |
3778 | ac_cv_lib_dl_dlopen=yes | |
b0cacab0 | 3779 | else |
57aa50d4 | 3780 | ac_cv_lib_dl_dlopen=no |
b0cacab0 | 3781 | fi |
57aa50d4 TT |
3782 | rm -f core conftest.err conftest.$ac_objext \ |
3783 | conftest$ac_exeext conftest.$ac_ext | |
3784 | LIBS=$ac_check_lib_save_LIBS | |
b0cacab0 | 3785 | fi |
57aa50d4 TT |
3786 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 |
3787 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | |
d6a4bcb5 | 3788 | if test "x$ac_cv_lib_dl_dlopen" = xyes; then : |
57aa50d4 | 3789 | DLOPEN_LIB=-ldl |
b0cacab0 TT |
3790 | fi |
3791 | ||
b0cacab0 | 3792 | |
e1052144 | 3793 | |
57aa50d4 TT |
3794 | # Check whether --with-cc was given. |
3795 | if test "${with_cc+set}" = set; then : | |
d6a4bcb5 | 3796 | withval=$with_cc; as_fn_error $? "--with-cc no longer supported; use CC= instead" "$LINENO" 5 |
57aa50d4 | 3797 | fi |
b0cacab0 | 3798 | |
b0cacab0 | 3799 | |
57aa50d4 TT |
3800 | # Check whether --with-ccopts was given. |
3801 | if test "${with_ccopts+set}" = set; then : | |
d6a4bcb5 | 3802 | withval=$with_ccopts; as_fn_error $? "--with-ccopts no longer supported; use CFLAGS= instead" "$LINENO" 5 |
b0cacab0 | 3803 | fi |
e1052144 | 3804 | |
b0cacab0 | 3805 | |
57aa50d4 TT |
3806 | # Check whether --with-ldopts was given. |
3807 | if test "${with_ldopts+set}" = set; then : | |
d6a4bcb5 | 3808 | withval=$with_ldopts; as_fn_error $? "--with-ldopts no longer supported; use LDFLAGS= instead" "$LINENO" 5 |
b0cacab0 TT |
3809 | fi |
3810 | ||
3811 | ac_ext=c | |
3812 | ac_cpp='$CPP $CPPFLAGS' | |
3813 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3814 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3815 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
57aa50d4 TT |
3816 | if test -n "$ac_tool_prefix"; then |
3817 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
3818 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
3819 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3820 | $as_echo_n "checking for $ac_word... " >&6; } | |
d6a4bcb5 | 3821 | if ${ac_cv_prog_CC+:} false; then : |
39fd3d4f | 3822 | $as_echo_n "(cached) " >&6 |
e1052144 | 3823 | else |
57aa50d4 TT |
3824 | if test -n "$CC"; then |
3825 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3826 | else | |
3827 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3828 | for as_dir in $PATH | |
e1052144 TT |
3829 | do |
3830 | IFS=$as_save_IFS | |
3831 | test -z "$as_dir" && as_dir=. | |
39fd3d4f | 3832 | for ac_exec_ext in '' $ac_executable_extensions; do |
d6a4bcb5 | 3833 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
57aa50d4 TT |
3834 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
3835 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3836 | break 2 | |
3837 | fi | |
e1052144 | 3838 | done |
57aa50d4 | 3839 | done |
e1052144 | 3840 | IFS=$as_save_IFS |
e1052144 | 3841 | |
e1052144 | 3842 | fi |
57aa50d4 TT |
3843 | fi |
3844 | CC=$ac_cv_prog_CC | |
3845 | if test -n "$CC"; then | |
3846 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
3847 | $as_echo "$CC" >&6; } | |
3848 | else | |
3849 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3850 | $as_echo "no" >&6; } | |
3851 | fi | |
e1052144 TT |
3852 | |
3853 | ||
57aa50d4 TT |
3854 | fi |
3855 | if test -z "$ac_cv_prog_CC"; then | |
3856 | ac_ct_CC=$CC | |
3857 | # Extract the first word of "gcc", so it can be a program name with args. | |
3858 | set dummy gcc; ac_word=$2 | |
3859 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3860 | $as_echo_n "checking for $ac_word... " >&6; } | |
d6a4bcb5 | 3861 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
39fd3d4f | 3862 | $as_echo_n "(cached) " >&6 |
e1052144 | 3863 | else |
57aa50d4 TT |
3864 | if test -n "$ac_ct_CC"; then |
3865 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
3866 | else | |
3867 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3868 | for as_dir in $PATH | |
e1052144 TT |
3869 | do |
3870 | IFS=$as_save_IFS | |
3871 | test -z "$as_dir" && as_dir=. | |
39fd3d4f | 3872 | for ac_exec_ext in '' $ac_executable_extensions; do |
d6a4bcb5 | 3873 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
57aa50d4 TT |
3874 | ac_cv_prog_ac_ct_CC="gcc" |
3875 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3876 | break 2 | |
3877 | fi | |
e1052144 | 3878 | done |
57aa50d4 | 3879 | done |
e1052144 | 3880 | IFS=$as_save_IFS |
b0cacab0 | 3881 | |
e1052144 | 3882 | fi |
57aa50d4 TT |
3883 | fi |
3884 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
3885 | if test -n "$ac_ct_CC"; then | |
3886 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
3887 | $as_echo "$ac_ct_CC" >&6; } | |
b0cacab0 | 3888 | else |
57aa50d4 TT |
3889 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3890 | $as_echo "no" >&6; } | |
3891 | fi | |
b0cacab0 | 3892 | |
57aa50d4 TT |
3893 | if test "x$ac_ct_CC" = x; then |
3894 | CC="" | |
3895 | else | |
3896 | case $cross_compiling:$ac_tool_warned in | |
3897 | yes:) | |
3898 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
3899 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
3900 | ac_tool_warned=yes ;; | |
e1052144 | 3901 | esac |
57aa50d4 TT |
3902 | CC=$ac_ct_CC |
3903 | fi | |
b0cacab0 | 3904 | else |
57aa50d4 | 3905 | CC="$ac_cv_prog_CC" |
b0cacab0 | 3906 | fi |
e1052144 | 3907 | |
57aa50d4 TT |
3908 | if test -z "$CC"; then |
3909 | if test -n "$ac_tool_prefix"; then | |
3910 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
3911 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
3912 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3913 | $as_echo_n "checking for $ac_word... " >&6; } | |
d6a4bcb5 | 3914 | if ${ac_cv_prog_CC+:} false; then : |
57aa50d4 | 3915 | $as_echo_n "(cached) " >&6 |
a64c9c13 | 3916 | else |
57aa50d4 TT |
3917 | if test -n "$CC"; then |
3918 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3919 | else | |
3920 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3921 | for as_dir in $PATH | |
3922 | do | |
3923 | IFS=$as_save_IFS | |
3924 | test -z "$as_dir" && as_dir=. | |
3925 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d6a4bcb5 | 3926 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
57aa50d4 TT |
3927 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
3928 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3929 | break 2 | |
3930 | fi | |
3931 | done | |
3932 | done | |
3933 | IFS=$as_save_IFS | |
b0cacab0 | 3934 | |
a64c9c13 | 3935 | fi |
57aa50d4 TT |
3936 | fi |
3937 | CC=$ac_cv_prog_CC | |
3938 | if test -n "$CC"; then | |
3939 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
3940 | $as_echo "$CC" >&6; } | |
b0cacab0 | 3941 | else |
57aa50d4 TT |
3942 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3943 | $as_echo "no" >&6; } | |
a64c9c13 | 3944 | fi |
b0cacab0 | 3945 | |
b0cacab0 | 3946 | |
57aa50d4 TT |
3947 | fi |
3948 | fi | |
3949 | if test -z "$CC"; then | |
3950 | # Extract the first word of "cc", so it can be a program name with args. | |
3951 | set dummy cc; ac_word=$2 | |
3952 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3953 | $as_echo_n "checking for $ac_word... " >&6; } | |
d6a4bcb5 | 3954 | if ${ac_cv_prog_CC+:} false; then : |
57aa50d4 | 3955 | $as_echo_n "(cached) " >&6 |
a64c9c13 | 3956 | else |
57aa50d4 TT |
3957 | if test -n "$CC"; then |
3958 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
a64c9c13 | 3959 | else |
57aa50d4 TT |
3960 | ac_prog_rejected=no |
3961 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3962 | for as_dir in $PATH | |
3963 | do | |
3964 | IFS=$as_save_IFS | |
3965 | test -z "$as_dir" && as_dir=. | |
3966 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d6a4bcb5 | 3967 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
57aa50d4 TT |
3968 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
3969 | ac_prog_rejected=yes | |
3970 | continue | |
3971 | fi | |
3972 | ac_cv_prog_CC="cc" | |
3973 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3974 | break 2 | |
3975 | fi | |
3976 | done | |
3977 | done | |
3978 | IFS=$as_save_IFS | |
b0cacab0 | 3979 | |
57aa50d4 TT |
3980 | if test $ac_prog_rejected = yes; then |
3981 | # We found a bogon in the path, so make sure we never use it. | |
3982 | set dummy $ac_cv_prog_CC | |
3983 | shift | |
3984 | if test $# != 0; then | |
3985 | # We chose a different compiler from the bogus one. | |
3986 | # However, it has the same basename, so the bogon will be chosen | |
3987 | # first if we set CC to just the basename; use the full file name. | |
3988 | shift | |
3989 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
3990 | fi | |
b0cacab0 | 3991 | fi |
b0cacab0 TT |
3992 | fi |
3993 | fi | |
57aa50d4 TT |
3994 | CC=$ac_cv_prog_CC |
3995 | if test -n "$CC"; then | |
3996 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
3997 | $as_echo "$CC" >&6; } | |
3998 | else | |
3999 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4000 | $as_echo "no" >&6; } | |
b0cacab0 | 4001 | fi |
b0cacab0 | 4002 | |
b0cacab0 TT |
4003 | |
4004 | fi | |
57aa50d4 TT |
4005 | if test -z "$CC"; then |
4006 | if test -n "$ac_tool_prefix"; then | |
4007 | for ac_prog in cl.exe | |
4008 | do | |
4009 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
4010 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
4011 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4012 | $as_echo_n "checking for $ac_word... " >&6; } | |
d6a4bcb5 | 4013 | if ${ac_cv_prog_CC+:} false; then : |
57aa50d4 TT |
4014 | $as_echo_n "(cached) " >&6 |
4015 | else | |
4016 | if test -n "$CC"; then | |
4017 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4018 | else | |
4019 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4020 | for as_dir in $PATH | |
4021 | do | |
4022 | IFS=$as_save_IFS | |
4023 | test -z "$as_dir" && as_dir=. | |
4024 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d6a4bcb5 | 4025 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
57aa50d4 TT |
4026 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
4027 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4028 | break 2 | |
4029 | fi | |
4030 | done | |
4031 | done | |
4032 | IFS=$as_save_IFS | |
b0cacab0 | 4033 | |
57aa50d4 TT |
4034 | fi |
4035 | fi | |
4036 | CC=$ac_cv_prog_CC | |
4037 | if test -n "$CC"; then | |
4038 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
4039 | $as_echo "$CC" >&6; } | |
4040 | else | |
4041 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4042 | $as_echo "no" >&6; } | |
4043 | fi | |
b0cacab0 TT |
4044 | |
4045 | ||
57aa50d4 TT |
4046 | test -n "$CC" && break |
4047 | done | |
4048 | fi | |
4049 | if test -z "$CC"; then | |
4050 | ac_ct_CC=$CC | |
4051 | for ac_prog in cl.exe | |
b0cacab0 | 4052 | do |
57aa50d4 TT |
4053 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
4054 | set dummy $ac_prog; ac_word=$2 | |
4055 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4056 | $as_echo_n "checking for $ac_word... " >&6; } | |
d6a4bcb5 | 4057 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
39fd3d4f | 4058 | $as_echo_n "(cached) " >&6 |
b0cacab0 | 4059 | else |
57aa50d4 TT |
4060 | if test -n "$ac_ct_CC"; then |
4061 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
b0cacab0 | 4062 | else |
57aa50d4 TT |
4063 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4064 | for as_dir in $PATH | |
4065 | do | |
4066 | IFS=$as_save_IFS | |
4067 | test -z "$as_dir" && as_dir=. | |
4068 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d6a4bcb5 | 4069 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
57aa50d4 TT |
4070 | ac_cv_prog_ac_ct_CC="$ac_prog" |
4071 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4072 | break 2 | |
4073 | fi | |
4074 | done | |
4075 | done | |
4076 | IFS=$as_save_IFS | |
b0cacab0 | 4077 | |
b0cacab0 | 4078 | fi |
b0cacab0 | 4079 | fi |
57aa50d4 TT |
4080 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
4081 | if test -n "$ac_ct_CC"; then | |
4082 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
4083 | $as_echo "$ac_ct_CC" >&6; } | |
4084 | else | |
4085 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4086 | $as_echo "no" >&6; } | |
b0cacab0 TT |
4087 | fi |
4088 | ||
b0cacab0 | 4089 | |
57aa50d4 TT |
4090 | test -n "$ac_ct_CC" && break |
4091 | done | |
b0cacab0 | 4092 | |
57aa50d4 TT |
4093 | if test "x$ac_ct_CC" = x; then |
4094 | CC="" | |
4095 | else | |
4096 | case $cross_compiling:$ac_tool_warned in | |
4097 | yes:) | |
4098 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4099 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4100 | ac_tool_warned=yes ;; | |
e1052144 | 4101 | esac |
57aa50d4 TT |
4102 | CC=$ac_ct_CC |
4103 | fi | |
4104 | fi | |
b0cacab0 | 4105 | |
b0cacab0 | 4106 | fi |
e1052144 | 4107 | |
b0cacab0 | 4108 | |
57aa50d4 TT |
4109 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4110 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
d6a4bcb5 TB |
4111 | as_fn_error $? "no acceptable C compiler found in \$PATH |
4112 | See \`config.log' for more details" "$LINENO" 5; } | |
57aa50d4 TT |
4113 | |
4114 | # Provide some information about the compiler. | |
4115 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 | |
4116 | set X $ac_compile | |
4117 | ac_compiler=$2 | |
4118 | for ac_option in --version -v -V -qversion; do | |
4119 | { { ac_try="$ac_compiler $ac_option >&5" | |
e1052144 TT |
4120 | case "(($ac_try" in |
4121 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4122 | *) ac_try_echo=$ac_try;; | |
4123 | esac | |
57aa50d4 TT |
4124 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
4125 | $as_echo "$ac_try_echo"; } >&5 | |
4126 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
b0cacab0 | 4127 | ac_status=$? |
57aa50d4 TT |
4128 | if test -s conftest.err; then |
4129 | sed '10a\ | |
4130 | ... rest of stderr output deleted ... | |
4131 | 10q' conftest.err >conftest.er1 | |
4132 | cat conftest.er1 >&5 | |
57aa50d4 | 4133 | fi |
61ef2474 | 4134 | rm -f conftest.er1 conftest.err |
57aa50d4 TT |
4135 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
4136 | test $ac_status = 0; } | |
4137 | done | |
e1052144 | 4138 | |
57aa50d4 TT |
4139 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
4140 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | |
d6a4bcb5 | 4141 | if ${ac_cv_c_compiler_gnu+:} false; then : |
39fd3d4f | 4142 | $as_echo_n "(cached) " >&6 |
b0cacab0 | 4143 | else |
57aa50d4 TT |
4144 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4145 | /* end confdefs.h. */ | |
b0cacab0 | 4146 | |
57aa50d4 TT |
4147 | int |
4148 | main () | |
4149 | { | |
4150 | #ifndef __GNUC__ | |
4151 | choke me | |
4152 | #endif | |
a64c9c13 | 4153 | |
57aa50d4 TT |
4154 | ; |
4155 | return 0; | |
4156 | } | |
4157 | _ACEOF | |
4158 | if ac_fn_c_try_compile "$LINENO"; then : | |
4159 | ac_compiler_gnu=yes | |
b1c92f91 | 4160 | else |
57aa50d4 | 4161 | ac_compiler_gnu=no |
b1c92f91 | 4162 | fi |
57aa50d4 TT |
4163 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4164 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | |
b0cacab0 | 4165 | |
e1052144 | 4166 | fi |
57aa50d4 TT |
4167 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
4168 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | |
4169 | if test $ac_compiler_gnu = yes; then | |
4170 | GCC=yes | |
98919bdb | 4171 | else |
57aa50d4 | 4172 | GCC= |
98919bdb | 4173 | fi |
57aa50d4 TT |
4174 | ac_test_CFLAGS=${CFLAGS+set} |
4175 | ac_save_CFLAGS=$CFLAGS | |
4176 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 | |
4177 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | |
d6a4bcb5 | 4178 | if ${ac_cv_prog_cc_g+:} false; then : |
57aa50d4 | 4179 | $as_echo_n "(cached) " >&6 |
98919bdb | 4180 | else |
57aa50d4 TT |
4181 | ac_save_c_werror_flag=$ac_c_werror_flag |
4182 | ac_c_werror_flag=yes | |
4183 | ac_cv_prog_cc_g=no | |
4184 | CFLAGS="-g" | |
4185 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4186 | /* end confdefs.h. */ | |
e1052144 | 4187 | |
57aa50d4 TT |
4188 | int |
4189 | main () | |
4190 | { | |
98919bdb | 4191 | |
57aa50d4 TT |
4192 | ; |
4193 | return 0; | |
4194 | } | |
4195 | _ACEOF | |
4196 | if ac_fn_c_try_compile "$LINENO"; then : | |
4197 | ac_cv_prog_cc_g=yes | |
c13351f6 | 4198 | else |
57aa50d4 TT |
4199 | CFLAGS="" |
4200 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4201 | /* end confdefs.h. */ | |
c13351f6 | 4202 | |
57aa50d4 TT |
4203 | int |
4204 | main () | |
4205 | { | |
c13351f6 | 4206 | |
57aa50d4 TT |
4207 | ; |
4208 | return 0; | |
4209 | } | |
4210 | _ACEOF | |
4211 | if ac_fn_c_try_compile "$LINENO"; then : | |
c13351f6 | 4212 | |
57aa50d4 TT |
4213 | else |
4214 | ac_c_werror_flag=$ac_save_c_werror_flag | |
4215 | CFLAGS="-g" | |
4216 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4217 | /* end confdefs.h. */ | |
c13351f6 | 4218 | |
57aa50d4 TT |
4219 | int |
4220 | main () | |
4221 | { | |
c13351f6 | 4222 | |
57aa50d4 TT |
4223 | ; |
4224 | return 0; | |
4225 | } | |
b0cacab0 | 4226 | _ACEOF |
57aa50d4 TT |
4227 | if ac_fn_c_try_compile "$LINENO"; then : |
4228 | ac_cv_prog_cc_g=yes | |
1917875f | 4229 | fi |
57aa50d4 | 4230 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
e1052144 | 4231 | fi |
57aa50d4 | 4232 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
8fdc9985 | 4233 | fi |
57aa50d4 TT |
4234 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4235 | ac_c_werror_flag=$ac_save_c_werror_flag | |
e1052144 | 4236 | fi |
57aa50d4 TT |
4237 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 |
4238 | $as_echo "$ac_cv_prog_cc_g" >&6; } | |
4239 | if test "$ac_test_CFLAGS" = set; then | |
4240 | CFLAGS=$ac_save_CFLAGS | |
4241 | elif test $ac_cv_prog_cc_g = yes; then | |
4242 | if test "$GCC" = yes; then | |
4243 | CFLAGS="-g -O2" | |
4244 | else | |
4245 | CFLAGS="-g" | |
4246 | fi | |
a64c9c13 | 4247 | else |
57aa50d4 TT |
4248 | if test "$GCC" = yes; then |
4249 | CFLAGS="-O2" | |
4250 | else | |
4251 | CFLAGS= | |
4252 | fi | |
a64c9c13 | 4253 | fi |
57aa50d4 TT |
4254 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
4255 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | |
d6a4bcb5 | 4256 | if ${ac_cv_prog_cc_c89+:} false; then : |
57aa50d4 | 4257 | $as_echo_n "(cached) " >&6 |
a64c9c13 | 4258 | else |
57aa50d4 TT |
4259 | ac_cv_prog_cc_c89=no |
4260 | ac_save_CC=$CC | |
4261 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4262 | /* end confdefs.h. */ | |
4263 | #include <stdarg.h> | |
4264 | #include <stdio.h> | |
d6a4bcb5 | 4265 | struct stat; |
57aa50d4 TT |
4266 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
4267 | struct buf { int x; }; | |
4268 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
4269 | static char *e (p, i) | |
4270 | char **p; | |
4271 | int i; | |
4272 | { | |
4273 | return p[i]; | |
4274 | } | |
4275 | static char *f (char * (*g) (char **, int), char **p, ...) | |
4276 | { | |
4277 | char *s; | |
4278 | va_list v; | |
4279 | va_start (v,p); | |
4280 | s = g (p, va_arg (v,int)); | |
4281 | va_end (v); | |
4282 | return s; | |
4283 | } | |
e1052144 | 4284 | |
57aa50d4 TT |
4285 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
4286 | function prototypes and stuff, but not '\xHH' hex character constants. | |
4287 | These don't provoke an error unfortunately, instead are silently treated | |
4288 | as 'x'. The following induces an error, until -std is added to get | |
4289 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | |
4290 | array size at least. It's necessary to write '\x00'==0 to get something | |
4291 | that's true only with -std. */ | |
4292 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | |
93636bde | 4293 | |
57aa50d4 TT |
4294 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
4295 | inside strings and character constants. */ | |
4296 | #define FOO(x) 'x' | |
4297 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
a64c9c13 | 4298 | |
57aa50d4 TT |
4299 | int test (int i, double x); |
4300 | struct s1 {int (*f) (int a);}; | |
4301 | struct s2 {int (*f) (double a);}; | |
4302 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
4303 | int argc; | |
4304 | char **argv; | |
4305 | int | |
4306 | main () | |
4307 | { | |
4308 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
4309 | ; | |
4310 | return 0; | |
4311 | } | |
4312 | _ACEOF | |
4313 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ | |
4314 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
4315 | do | |
4316 | CC="$ac_save_CC $ac_arg" | |
4317 | if ac_fn_c_try_compile "$LINENO"; then : | |
4318 | ac_cv_prog_cc_c89=$ac_arg | |
a64c9c13 | 4319 | fi |
57aa50d4 TT |
4320 | rm -f core conftest.err conftest.$ac_objext |
4321 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
4322 | done | |
4323 | rm -f conftest.$ac_ext | |
4324 | CC=$ac_save_CC | |
a64c9c13 | 4325 | |
57aa50d4 TT |
4326 | fi |
4327 | # AC_CACHE_VAL | |
4328 | case "x$ac_cv_prog_cc_c89" in | |
4329 | x) | |
4330 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
4331 | $as_echo "none needed" >&6; } ;; | |
4332 | xno) | |
4333 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
4334 | $as_echo "unsupported" >&6; } ;; | |
4335 | *) | |
4336 | CC="$CC $ac_cv_prog_cc_c89" | |
4337 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | |
4338 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | |
4339 | esac | |
4340 | if test "x$ac_cv_prog_cc_c89" != xno; then : | |
a64c9c13 | 4341 | |
e1052144 TT |
4342 | fi |
4343 | ||
57aa50d4 TT |
4344 | ac_ext=c |
4345 | ac_cpp='$CPP $CPPFLAGS' | |
4346 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4347 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4348 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
93636bde | 4349 | |
9b3018a8 TT |
4350 | if test "$GCC" = yes; then |
4351 | RDYNAMIC="-rdynamic" | |
4352 | ||
4353 | fi | |
57aa50d4 TT |
4354 | ac_ext=c |
4355 | ac_cpp='$CPP $CPPFLAGS' | |
4356 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4357 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4358 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4359 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 | |
4360 | $as_echo_n "checking how to run the C preprocessor... " >&6; } | |
4361 | # On Suns, sometimes $CPP names a directory. | |
4362 | if test -n "$CPP" && test -d "$CPP"; then | |
4363 | CPP= | |
4364 | fi | |
4365 | if test -z "$CPP"; then | |
d6a4bcb5 | 4366 | if ${ac_cv_prog_CPP+:} false; then : |
57aa50d4 TT |
4367 | $as_echo_n "(cached) " >&6 |
4368 | else | |
4369 | # Double quotes because CPP needs to be expanded | |
4370 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
4371 | do | |
4372 | ac_preproc_ok=false | |
4373 | for ac_c_preproc_warn_flag in '' yes | |
4374 | do | |
4375 | # Use a header file that comes with gcc, so configuring glibc | |
4376 | # with a fresh cross-compiler works. | |
4377 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
4378 | # <limits.h> exists even on freestanding compilers. | |
4379 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
4380 | # not just through cpp. "Syntax error" is here to catch this case. | |
4381 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4382 | /* end confdefs.h. */ | |
4383 | #ifdef __STDC__ | |
4384 | # include <limits.h> | |
4385 | #else | |
4386 | # include <assert.h> | |
4387 | #endif | |
4388 | Syntax error | |
4389 | _ACEOF | |
4390 | if ac_fn_c_try_cpp "$LINENO"; then : | |
a64c9c13 | 4391 | |
cdf186e4 | 4392 | else |
57aa50d4 TT |
4393 | # Broken: fails on valid input. |
4394 | continue | |
cdf186e4 | 4395 | fi |
d6a4bcb5 | 4396 | rm -f conftest.err conftest.i conftest.$ac_ext |
cdf186e4 | 4397 | |
57aa50d4 TT |
4398 | # OK, works on sane cases. Now check whether nonexistent headers |
4399 | # can be detected and how. | |
4400 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4401 | /* end confdefs.h. */ | |
4402 | #include <ac_nonexistent.h> | |
4403 | _ACEOF | |
4404 | if ac_fn_c_try_cpp "$LINENO"; then : | |
4405 | # Broken: success on invalid input. | |
4406 | continue | |
cdf186e4 | 4407 | else |
57aa50d4 TT |
4408 | # Passes both tests. |
4409 | ac_preproc_ok=: | |
4410 | break | |
4411 | fi | |
d6a4bcb5 | 4412 | rm -f conftest.err conftest.i conftest.$ac_ext |
cdf186e4 | 4413 | |
57aa50d4 TT |
4414 | done |
4415 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
d6a4bcb5 | 4416 | rm -f conftest.i conftest.err conftest.$ac_ext |
57aa50d4 TT |
4417 | if $ac_preproc_ok; then : |
4418 | break | |
e1052144 TT |
4419 | fi |
4420 | ||
57aa50d4 TT |
4421 | done |
4422 | ac_cv_prog_CPP=$CPP | |
93636bde | 4423 | |
cdf186e4 | 4424 | fi |
57aa50d4 | 4425 | CPP=$ac_cv_prog_CPP |
cdf186e4 | 4426 | else |
57aa50d4 | 4427 | ac_cv_prog_CPP=$CPP |
e1052144 | 4428 | fi |
57aa50d4 TT |
4429 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 |
4430 | $as_echo "$CPP" >&6; } | |
4431 | ac_preproc_ok=false | |
4432 | for ac_c_preproc_warn_flag in '' yes | |
4433 | do | |
4434 | # Use a header file that comes with gcc, so configuring glibc | |
4435 | # with a fresh cross-compiler works. | |
4436 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
4437 | # <limits.h> exists even on freestanding compilers. | |
4438 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
4439 | # not just through cpp. "Syntax error" is here to catch this case. | |
4440 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4441 | /* end confdefs.h. */ | |
4442 | #ifdef __STDC__ | |
4443 | # include <limits.h> | |
4444 | #else | |
4445 | # include <assert.h> | |
4446 | #endif | |
4447 | Syntax error | |
b0cacab0 | 4448 | _ACEOF |
57aa50d4 | 4449 | if ac_fn_c_try_cpp "$LINENO"; then : |
80bfaa3e TT |
4450 | |
4451 | else | |
57aa50d4 TT |
4452 | # Broken: fails on valid input. |
4453 | continue | |
e1052144 | 4454 | fi |
d6a4bcb5 | 4455 | rm -f conftest.err conftest.i conftest.$ac_ext |
e1052144 | 4456 | |
57aa50d4 TT |
4457 | # OK, works on sane cases. Now check whether nonexistent headers |
4458 | # can be detected and how. | |
4459 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4460 | /* end confdefs.h. */ | |
4461 | #include <ac_nonexistent.h> | |
b0cacab0 | 4462 | _ACEOF |
57aa50d4 TT |
4463 | if ac_fn_c_try_cpp "$LINENO"; then : |
4464 | # Broken: success on invalid input. | |
4465 | continue | |
f0a22d0f | 4466 | else |
57aa50d4 TT |
4467 | # Passes both tests. |
4468 | ac_preproc_ok=: | |
4469 | break | |
e1052144 | 4470 | fi |
d6a4bcb5 | 4471 | rm -f conftest.err conftest.i conftest.$ac_ext |
e1052144 | 4472 | |
57aa50d4 TT |
4473 | done |
4474 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
d6a4bcb5 | 4475 | rm -f conftest.i conftest.err conftest.$ac_ext |
57aa50d4 | 4476 | if $ac_preproc_ok; then : |
2a29f135 TT |
4477 | |
4478 | else | |
57aa50d4 TT |
4479 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4480 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
d6a4bcb5 TB |
4481 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check |
4482 | See \`config.log' for more details" "$LINENO" 5; } | |
e1052144 TT |
4483 | fi |
4484 | ||
57aa50d4 TT |
4485 | ac_ext=c |
4486 | ac_cpp='$CPP $CPPFLAGS' | |
4487 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4488 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4489 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
af773654 | 4490 | |
57aa50d4 TT |
4491 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for additional special compiler flags" >&5 |
4492 | $as_echo_n "checking for additional special compiler flags... " >&6; } | |
4493 | if test "$GCC" = yes | |
4494 | then | |
4495 | case "$host_cpu" in | |
4496 | alpha) addcflags="-mieee" ;; | |
4497 | esac | |
14b596d4 | 4498 | fi |
57aa50d4 TT |
4499 | if test "x$addcflags" != x |
4500 | then | |
4501 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $addcflags" >&5 | |
4502 | $as_echo "$addcflags" >&6; } | |
4503 | CFLAGS="$addcflags $CFLAGS" | |
14b596d4 | 4504 | else |
57aa50d4 TT |
4505 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: (none)" >&5 |
4506 | $as_echo "(none)" >&6; } | |
14b596d4 TT |
4507 | fi |
4508 | ||
93613951 TT |
4509 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 |
4510 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } | |
4511 | if ${ac_cv_path_GREP+:} false; then : | |
4512 | $as_echo_n "(cached) " >&6 | |
57aa50d4 | 4513 | else |
93613951 TT |
4514 | if test -z "$GREP"; then |
4515 | ac_path_GREP_found=false | |
4516 | # Loop through the user's path and test for each of PROGNAME-LIST | |
4517 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4518 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
4519 | do | |
4520 | IFS=$as_save_IFS | |
4521 | test -z "$as_dir" && as_dir=. | |
4522 | for ac_prog in grep ggrep; do | |
4523 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4524 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | |
4525 | as_fn_executable_p "$ac_path_GREP" || continue | |
4526 | # Check for GNU ac_path_GREP and select it if it is found. | |
4527 | # Check for GNU $ac_path_GREP | |
4528 | case `"$ac_path_GREP" --version 2>&1` in | |
4529 | *GNU*) | |
4530 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | |
4531 | *) | |
4532 | ac_count=0 | |
4533 | $as_echo_n 0123456789 >"conftest.in" | |
4534 | while : | |
4535 | do | |
4536 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
4537 | mv "conftest.tmp" "conftest.in" | |
4538 | cp "conftest.in" "conftest.nl" | |
4539 | $as_echo 'GREP' >> "conftest.nl" | |
4540 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
4541 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
4542 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
4543 | if test $ac_count -gt ${ac_path_GREP_max-0}; then | |
4544 | # Best one so far, save it but keep looking for a better one | |
4545 | ac_cv_path_GREP="$ac_path_GREP" | |
4546 | ac_path_GREP_max=$ac_count | |
4547 | fi | |
4548 | # 10*(2^10) chars as input seems more than enough | |
4549 | test $ac_count -gt 10 && break | |
4550 | done | |
4551 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
4552 | esac | |
14b596d4 | 4553 | |
93613951 TT |
4554 | $ac_path_GREP_found && break 3 |
4555 | done | |
4556 | done | |
4557 | done | |
4558 | IFS=$as_save_IFS | |
4559 | if test -z "$ac_cv_path_GREP"; then | |
4560 | as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
4561 | fi | |
57aa50d4 | 4562 | else |
93613951 TT |
4563 | ac_cv_path_GREP=$GREP |
4564 | fi | |
57aa50d4 | 4565 | |
14b596d4 | 4566 | fi |
93613951 TT |
4567 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 |
4568 | $as_echo "$ac_cv_path_GREP" >&6; } | |
4569 | GREP="$ac_cv_path_GREP" | |
14b596d4 | 4570 | |
14b596d4 | 4571 | |
93613951 TT |
4572 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 |
4573 | $as_echo_n "checking for egrep... " >&6; } | |
4574 | if ${ac_cv_path_EGREP+:} false; then : | |
4575 | $as_echo_n "(cached) " >&6 | |
5aa6c3f6 | 4576 | else |
93613951 TT |
4577 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
4578 | then ac_cv_path_EGREP="$GREP -E" | |
4579 | else | |
4580 | if test -z "$EGREP"; then | |
4581 | ac_path_EGREP_found=false | |
4582 | # Loop through the user's path and test for each of PROGNAME-LIST | |
4583 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4584 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
4585 | do | |
4586 | IFS=$as_save_IFS | |
4587 | test -z "$as_dir" && as_dir=. | |
4588 | for ac_prog in egrep; do | |
4589 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4590 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | |
4591 | as_fn_executable_p "$ac_path_EGREP" || continue | |
4592 | # Check for GNU ac_path_EGREP and select it if it is found. | |
4593 | # Check for GNU $ac_path_EGREP | |
4594 | case `"$ac_path_EGREP" --version 2>&1` in | |
4595 | *GNU*) | |
4596 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | |
4597 | *) | |
4598 | ac_count=0 | |
4599 | $as_echo_n 0123456789 >"conftest.in" | |
4600 | while : | |
4601 | do | |
4602 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
4603 | mv "conftest.tmp" "conftest.in" | |
4604 | cp "conftest.in" "conftest.nl" | |
4605 | $as_echo 'EGREP' >> "conftest.nl" | |
4606 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
4607 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
4608 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
4609 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then | |
4610 | # Best one so far, save it but keep looking for a better one | |
4611 | ac_cv_path_EGREP="$ac_path_EGREP" | |
4612 | ac_path_EGREP_max=$ac_count | |
4613 | fi | |
4614 | # 10*(2^10) chars as input seems more than enough | |
4615 | test $ac_count -gt 10 && break | |
4616 | done | |
4617 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
4618 | esac | |
5aa6c3f6 | 4619 | |
93613951 TT |
4620 | $ac_path_EGREP_found && break 3 |
4621 | done | |
4622 | done | |
4623 | done | |
4624 | IFS=$as_save_IFS | |
4625 | if test -z "$ac_cv_path_EGREP"; then | |
4626 | as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
4627 | fi | |
5aa6c3f6 | 4628 | else |
93613951 TT |
4629 | ac_cv_path_EGREP=$EGREP |
4630 | fi | |
183c73b0 | 4631 | |
93613951 | 4632 | fi |
183c73b0 | 4633 | fi |
93613951 TT |
4634 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 |
4635 | $as_echo "$ac_cv_path_EGREP" >&6; } | |
4636 | EGREP="$ac_cv_path_EGREP" | |
183c73b0 TT |
4637 | |
4638 | ||
93613951 TT |
4639 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 |
4640 | $as_echo_n "checking for ANSI C header files... " >&6; } | |
4641 | if ${ac_cv_header_stdc+:} false; then : | |
4642 | $as_echo_n "(cached) " >&6 | |
91d11da1 | 4643 | else |
93613951 TT |
4644 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4645 | /* end confdefs.h. */ | |
4646 | #include <stdlib.h> | |
4647 | #include <stdarg.h> | |
4648 | #include <string.h> | |
4649 | #include <float.h> | |
91d11da1 | 4650 | |
93613951 TT |
4651 | int |
4652 | main () | |
4653 | { | |
183c73b0 | 4654 | |
93613951 TT |
4655 | ; |
4656 | return 0; | |
4657 | } | |
4658 | _ACEOF | |
4659 | if ac_fn_c_try_compile "$LINENO"; then : | |
4660 | ac_cv_header_stdc=yes | |
183c73b0 | 4661 | else |
93613951 | 4662 | ac_cv_header_stdc=no |
5aa6c3f6 | 4663 | fi |
93613951 | 4664 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
5aa6c3f6 | 4665 | |
93613951 TT |
4666 | if test $ac_cv_header_stdc = yes; then |
4667 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
4668 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4669 | /* end confdefs.h. */ | |
4670 | #include <string.h> | |
4671 | ||
4672 | _ACEOF | |
4673 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
4674 | $EGREP "memchr" >/dev/null 2>&1; then : | |
4675 | ||
4676 | else | |
4677 | ac_cv_header_stdc=no | |
4678 | fi | |
4679 | rm -f conftest* | |
4680 | ||
4681 | fi | |
4682 | ||
4683 | if test $ac_cv_header_stdc = yes; then | |
4684 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
4685 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4686 | /* end confdefs.h. */ | |
4687 | #include <stdlib.h> | |
4688 | ||
4689 | _ACEOF | |
4690 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
4691 | $EGREP "free" >/dev/null 2>&1; then : | |
4692 | ||
4693 | else | |
4694 | ac_cv_header_stdc=no | |
4695 | fi | |
4696 | rm -f conftest* | |
4697 | ||
4698 | fi | |
4699 | ||
4700 | if test $ac_cv_header_stdc = yes; then | |
4701 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
4702 | if test "$cross_compiling" = yes; then : | |
4703 | : | |
4704 | else | |
4705 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4706 | /* end confdefs.h. */ | |
4707 | #include <ctype.h> | |
4708 | #include <stdlib.h> | |
4709 | #if ((' ' & 0x0FF) == 0x020) | |
4710 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
4711 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
4712 | #else | |
4713 | # define ISLOWER(c) \ | |
4714 | (('a' <= (c) && (c) <= 'i') \ | |
4715 | || ('j' <= (c) && (c) <= 'r') \ | |
4716 | || ('s' <= (c) && (c) <= 'z')) | |
4717 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
4718 | #endif | |
4719 | ||
4720 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
4721 | int | |
4722 | main () | |
4723 | { | |
4724 | int i; | |
4725 | for (i = 0; i < 256; i++) | |
4726 | if (XOR (islower (i), ISLOWER (i)) | |
4727 | || toupper (i) != TOUPPER (i)) | |
4728 | return 2; | |
4729 | return 0; | |
4730 | } | |
4731 | _ACEOF | |
4732 | if ac_fn_c_try_run "$LINENO"; then : | |
4733 | ||
4734 | else | |
4735 | ac_cv_header_stdc=no | |
4736 | fi | |
4737 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
4738 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
4739 | fi | |
4740 | ||
4741 | fi | |
4742 | fi | |
4743 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 | |
4744 | $as_echo "$ac_cv_header_stdc" >&6; } | |
4745 | if test $ac_cv_header_stdc = yes; then | |
4746 | ||
4747 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h | |
4748 | ||
4749 | fi | |
4750 | ||
4751 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | |
4752 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
4753 | inttypes.h stdint.h unistd.h | |
4754 | do : | |
4755 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
4756 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default | |
4757 | " | |
4758 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
4759 | cat >>confdefs.h <<_ACEOF | |
4760 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
4761 | _ACEOF | |
4762 | ||
4763 | fi | |
4764 | ||
4765 | done | |
4766 | ||
4767 | ||
4768 | ||
4769 | ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" | |
4770 | if test "x$ac_cv_header_minix_config_h" = xyes; then : | |
4771 | MINIX=yes | |
4772 | else | |
4773 | MINIX= | |
4774 | fi | |
4775 | ||
4776 | ||
4777 | if test "$MINIX" = yes; then | |
4778 | ||
4779 | $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h | |
4780 | ||
4781 | ||
4782 | $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h | |
4783 | ||
4784 | ||
4785 | $as_echo "#define _MINIX 1" >>confdefs.h | |
4786 | ||
4787 | fi | |
4788 | ||
4789 | ||
4790 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 | |
4791 | $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } | |
4792 | if ${ac_cv_safe_to_define___extensions__+:} false; then : | |
4793 | $as_echo_n "(cached) " >&6 | |
4794 | else | |
4795 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4796 | /* end confdefs.h. */ | |
4797 | ||
4798 | # define __EXTENSIONS__ 1 | |
4799 | $ac_includes_default | |
4800 | int | |
4801 | main () | |
4802 | { | |
4803 | ||
4804 | ; | |
4805 | return 0; | |
4806 | } | |
4807 | _ACEOF | |
4808 | if ac_fn_c_try_compile "$LINENO"; then : | |
4809 | ac_cv_safe_to_define___extensions__=yes | |
4810 | else | |
4811 | ac_cv_safe_to_define___extensions__=no | |
4812 | fi | |
4813 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4814 | fi | |
4815 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 | |
4816 | $as_echo "$ac_cv_safe_to_define___extensions__" >&6; } | |
4817 | test $ac_cv_safe_to_define___extensions__ = yes && | |
4818 | $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h | |
4819 | ||
4820 | $as_echo "#define _ALL_SOURCE 1" >>confdefs.h | |
4821 | ||
4822 | $as_echo "#define _GNU_SOURCE 1" >>confdefs.h | |
4823 | ||
4824 | $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h | |
4825 | ||
4826 | $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h | |
4827 | ||
4828 | ||
4829 | LIB_EXT=.a | |
4830 | STATIC_LIB_EXT=.a | |
4831 | PROFILED_LIB_EXT=.a | |
4832 | ||
4833 | # Check whether --with-root-prefix was given. | |
4834 | if test "${with_root_prefix+set}" = set; then : | |
4835 | withval=$with_root_prefix; root_prefix=$withval | |
4836 | else | |
4837 | root_prefix=NONE | |
4838 | fi | |
4839 | # Check whether --enable-maintainer-mode was given. | |
4840 | if test "${enable_maintainer_mode+set}" = set; then : | |
4841 | enableval=$enable_maintainer_mode; if test "$enableval" = "no" | |
4842 | then | |
4843 | MAINTAINER_CMT=# | |
4844 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling maintainer mode" >&5 | |
4845 | $as_echo "Disabling maintainer mode" >&6; } | |
4846 | else | |
4847 | MAINTAINER_CMT= | |
4848 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling maintainer mode" >&5 | |
4849 | $as_echo "Enabling maintainer mode" >&6; } | |
4850 | fi | |
4851 | ||
4852 | else | |
4853 | MAINTAINER_CMT=# | |
4854 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling maintainer mode by default" >&5 | |
4855 | $as_echo "Disabling maintainer mode by default" >&6; } | |
4856 | ||
4857 | fi | |
4858 | ||
4859 | ||
4860 | # Check whether --enable-symlink-install was given. | |
4861 | if test "${enable_symlink_install+set}" = set; then : | |
4862 | enableval=$enable_symlink_install; if test "$enableval" = "no" | |
4863 | then | |
4864 | LINK_INSTALL_FLAGS=-f | |
4865 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for install" >&5 | |
4866 | $as_echo "Disabling symlinks for install" >&6; } | |
4867 | else | |
4868 | LINK_INSTALL_FLAGS=-sf | |
4869 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling symlinks for install" >&5 | |
4870 | $as_echo "Enabling symlinks for install" >&6; } | |
4871 | fi | |
4872 | ||
4873 | else | |
4874 | LINK_INSTALL_FLAGS=-f | |
4875 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for install by default" >&5 | |
4876 | $as_echo "Disabling symlinks for install by default" >&6; } | |
4877 | ||
4878 | fi | |
4879 | ||
4880 | ||
4881 | relative_symlink_defined= | |
4882 | # Check whether --enable-relative-symlinks was given. | |
4883 | if test "${enable_relative_symlinks+set}" = set; then : | |
4884 | enableval=$enable_relative_symlinks; if test "$enableval" = "no" | |
4885 | then | |
4886 | SYMLINK_RELATIVE= | |
4887 | relative_symlink_defined=yes | |
4888 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install" >&5 | |
4889 | $as_echo "Disabling relative symlinks for install" >&6; } | |
4890 | else | |
4891 | SYMLINK_RELATIVE=--relative | |
4892 | relative_symlink_defined=yes | |
4893 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling relative symlinks for install" >&5 | |
4894 | $as_echo "Enabling relative symlinks for install" >&6; } | |
4895 | fi | |
4896 | fi | |
4897 | ||
4898 | # Check whether --enable-symlink-relative-symlinks was given. | |
4899 | if test "${enable_symlink_relative_symlinks+set}" = set; then : | |
4900 | enableval=$enable_symlink_relative_symlinks; if test "$enableval" = "no" | |
4901 | then | |
4902 | SYMLINK_RELATIVE=yes | |
4903 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install" >&5 | |
4904 | $as_echo "Disabling relative symlinks for install" >&6; } | |
4905 | else | |
4906 | SYMLINK_RELATIVE=--relative | |
4907 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling relative symlinks for install" >&5 | |
4908 | $as_echo "Enabling relative symlinks for install" >&6; } | |
4909 | fi | |
4910 | ||
4911 | else | |
4912 | if test -z "$relative_symlink_defined" | |
4913 | then | |
4914 | SYMLINK_RELATIVE= | |
4915 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install by default" >&5 | |
4916 | $as_echo "Disabling relative symlinks for install by default" >&6; } | |
4917 | fi | |
4918 | ||
4919 | fi | |
4920 | ||
4921 | ||
4922 | # Check whether --enable-symlink-build was given. | |
4923 | if test "${enable_symlink_build+set}" = set; then : | |
5aa6c3f6 TT |
4924 | enableval=$enable_symlink_build; if test "$enableval" = "no" |
4925 | then | |
4926 | LINK_BUILD_FLAGS= | |
4927 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for build" >&5 | |
4928 | $as_echo "Disabling symlinks for build" >&6; } | |
4929 | else | |
4930 | LINK_BUILD_FLAGS=-s | |
4931 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling symlinks for build" >&5 | |
4932 | $as_echo "Enabling symlinks for build" >&6; } | |
4933 | fi | |
4934 | ||
4935 | else | |
4936 | LINK_BUILD_FLAGS= | |
183c73b0 TT |
4937 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for build by default" >&5 |
4938 | $as_echo "Disabling symlinks for build by default" >&6; } | |
5aa6c3f6 TT |
4939 | |
4940 | fi | |
4941 | ||
4942 | ||
57aa50d4 TT |
4943 | # Check whether --enable-verbose-makecmds was given. |
4944 | if test "${enable_verbose_makecmds+set}" = set; then : | |
4945 | enableval=$enable_verbose_makecmds; if test "$enableval" = "no" | |
4946 | then | |
4947 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling verbose make commands" >&5 | |
4948 | $as_echo "Disabling verbose make commands" >&6; } | |
4949 | E=@echo | |
c1986ecb | 4950 | ES=echo |
57aa50d4 | 4951 | Q=@ |
14b596d4 | 4952 | else |
57aa50d4 TT |
4953 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling verbose make commands" >&5 |
4954 | $as_echo "Enabling verbose make commands" >&6; } | |
4955 | E=@\\# | |
c1986ecb | 4956 | ES=\\# |
57aa50d4 TT |
4957 | Q= |
4958 | fi | |
14b596d4 | 4959 | |
14b596d4 | 4960 | else |
57aa50d4 TT |
4961 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling verbose make commands" >&5 |
4962 | $as_echo "Disabling verbose make commands" >&6; } | |
4963 | E=@echo | |
c1986ecb | 4964 | ES=echo |
57aa50d4 | 4965 | Q=@ |
14b596d4 | 4966 | |
14b596d4 TT |
4967 | fi |
4968 | ||
14b596d4 | 4969 | |
57aa50d4 | 4970 | |
c1986ecb | 4971 | |
57aa50d4 TT |
4972 | E2_PKG_CONFIG_STATIC=--static |
4973 | LDFLAG_DYNAMIC= | |
4974 | PRIVATE_LIBS_CMT= | |
4975 | # Check whether --enable-elf-shlibs was given. | |
4976 | if test "${enable_elf_shlibs+set}" = set; then : | |
4977 | enableval=$enable_elf_shlibs; if test "$enableval" = "no" | |
cdf186e4 | 4978 | then |
57aa50d4 TT |
4979 | ELF_CMT=# |
4980 | MAKEFILE_ELF=/dev/null | |
4981 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling ELF shared libraries" >&5 | |
4982 | $as_echo "Disabling ELF shared libraries" >&6; } | |
cdf186e4 | 4983 | else |
57aa50d4 TT |
4984 | E2_PKG_CONFIG_STATIC= |
4985 | ELF_CMT= | |
4986 | MAKEFILE_ELF=$srcdir/lib/Makefile.elf-lib | |
4987 | case "$host_os" in | |
4988 | solaris2.*) | |
4989 | MAKEFILE_ELF=$srcdir/lib/Makefile.solaris-lib | |
4990 | ;; | |
4991 | esac | |
4992 | BINARY_TYPE=elfbin | |
4993 | LIB_EXT=.so | |
4994 | PRIVATE_LIBS_CMT=# | |
4995 | LDFLAG_DYNAMIC='-Wl,-rpath-link,$(top_builddir)/lib' | |
4996 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling ELF shared libraries" >&5 | |
4997 | $as_echo "Enabling ELF shared libraries" >&6; } | |
cdf186e4 TT |
4998 | fi |
4999 | ||
5000 | else | |
57aa50d4 TT |
5001 | MAKEFILE_ELF=/dev/null |
5002 | ELF_CMT=# | |
5003 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling ELF shared libraries by default" >&5 | |
5004 | $as_echo "Disabling ELF shared libraries by default" >&6; } | |
cdf186e4 | 5005 | |
e1052144 TT |
5006 | fi |
5007 | ||
cdf186e4 | 5008 | |
57aa50d4 TT |
5009 | |
5010 | # Check whether --enable-bsd-shlibs was given. | |
5011 | if test "${enable_bsd_shlibs+set}" = set; then : | |
5012 | enableval=$enable_bsd_shlibs; if test "$enableval" = "no" | |
cdf186e4 | 5013 | then |
57aa50d4 TT |
5014 | BSDLIB_CMT=# |
5015 | MAKEFILE_BSDLIB=/dev/null | |
5016 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling BSD shared libraries" >&5 | |
5017 | $as_echo "Disabling BSD shared libraries" >&6; } | |
cdf186e4 | 5018 | else |
57aa50d4 TT |
5019 | E2_PKG_CONFIG_STATIC= |
5020 | BSDLIB_CMT= | |
5021 | MAKEFILE_BSDLIB=$srcdir/lib/Makefile.bsd-lib | |
5022 | LIB_EXT=.so | |
5023 | case "$host_os" in | |
5024 | darwin*) | |
5025 | MAKEFILE_BSDLIB=$srcdir/lib/Makefile.darwin-lib | |
5026 | LIB_EXT=.dylib | |
5027 | ;; | |
5028 | esac | |
5029 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling BSD shared libraries" >&5 | |
5030 | $as_echo "Enabling BSD shared libraries" >&6; } | |
cdf186e4 TT |
5031 | fi |
5032 | ||
5033 | else | |
57aa50d4 TT |
5034 | MAKEFILE_BSDLIB=/dev/null |
5035 | BSDLIB_CMT=# | |
5036 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling BSD shared libraries by default" >&5 | |
5037 | $as_echo "Disabling BSD shared libraries by default" >&6; } | |
cdf186e4 | 5038 | |
e1052144 TT |
5039 | fi |
5040 | ||
cdf186e4 | 5041 | |
57aa50d4 TT |
5042 | |
5043 | # Check whether --enable-profile was given. | |
5044 | if test "${enable_profile+set}" = set; then : | |
5045 | enableval=$enable_profile; if test "$enableval" = "no" | |
cdf186e4 | 5046 | then |
57aa50d4 TT |
5047 | PROFILE_CMT=# |
5048 | MAKEFILE_PROFILE=/dev/null | |
5049 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling profiling libraries" >&5 | |
5050 | $as_echo "Disabling profiling libraries" >&6; } | |
cdf186e4 | 5051 | else |
57aa50d4 TT |
5052 | PROFILE_CMT= |
5053 | MAKEFILE_PROFILE=$srcdir/lib/Makefile.profile | |
5054 | PROFILED_LIB_EXT=_p.a | |
5055 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building profiling libraries" >&5 | |
5056 | $as_echo "Building profiling libraries" >&6; } | |
cdf186e4 TT |
5057 | fi |
5058 | ||
5059 | else | |
57aa50d4 TT |
5060 | PROFILE_CMT=# |
5061 | MAKEFILE_PROFILE=/dev/null | |
5062 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling profiling libraries by default" >&5 | |
5063 | $as_echo "Disabling profiling libraries by default" >&6; } | |
cdf186e4 | 5064 | |
e1052144 TT |
5065 | fi |
5066 | ||
cdf186e4 | 5067 | |
57aa50d4 | 5068 | |
fedfb27f TT |
5069 | # Check whether --enable-gcov was given. |
5070 | if test "${enable_gcov+set}" = set; then : | |
5071 | enableval=$enable_gcov; if test "$enableval" = "yes" | |
5072 | then | |
5073 | CFLAGS="-g -fprofile-arcs -ftest-coverage" | |
5074 | LDFLAGS="-fprofile-arcs -ftest-coverage" | |
5075 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling gcov support" >&5 | |
5076 | $as_echo "Enabling gcov support" >&6; } | |
5077 | fi | |
5078 | ||
5079 | fi | |
5080 | ||
fd1677e8 TT |
5081 | CFLAGS_SHLIB="${CFLAGS_SHLIB:-$CFLAGS}" |
5082 | CFLAGS_STLIB="${CFLAGS_STLIB:-$CFLAGS}" | |
5083 | LDFLAGS_SHLIB=${LDFLAGS_SHLIB:-$LDFLAGS} | |
5084 | LDFLAGS_STATIC=${LDFLAGS_STATIC:-$LDFLAGS} | |
5085 | # Check whether --enable-hardening was given. | |
5086 | if test "${enable_hardening+set}" = set; then : | |
5087 | enableval=$enable_hardening; if test "$enableval" = "yes" | |
5088 | then | |
5089 | HARDEN_CFLAGS="-D_FORTIFY_SOURCE=2 -fstack-protector-strong" | |
5090 | HARDEN_LDFLAGS="-Wl,-z,relro -Wl,-z,now" | |
5091 | CFLAGS="$CFLAGS $HARDEN_CFLAGS -fPIE" | |
5092 | CFLAGS_SHLIB="$CFLAGS_SHLIB $HARDEN_CFLAGS" | |
5093 | CFLAGS_STLIB="$CFLAGS_STLIB $HARDEN_CFLAGS -fPIE" | |
5094 | LDFLAGS="$LDFLAGS $HARDEN_LDFLAGS -fPIE -pie" | |
5095 | LDFLAGS_STATIC="$LDFLAGS_STATIC $HARDEN_LDFLAGS" | |
5096 | LDFLAGS_SHLIB="$LDFLAGS_SHLIB $HARDEN_LDFLAGS" | |
5097 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling hardening support" >&5 | |
5098 | $as_echo "Enabling hardening support" >&6; } | |
5099 | fi | |
5100 | ||
5101 | fi | |
cdf186e4 | 5102 | |
57aa50d4 TT |
5103 | |
5104 | ||
5105 | ||
5106 | ||
5107 | ||
5108 | # Check whether --enable-jbd-debug was given. | |
5109 | if test "${enable_jbd_debug+set}" = set; then : | |
5110 | enableval=$enable_jbd_debug; if test "$enableval" = "no" | |
5d40773b | 5111 | then |
57aa50d4 TT |
5112 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling journal debugging" >&5 |
5113 | $as_echo "Disabling journal debugging" >&6; } | |
5d40773b | 5114 | else |
d1154eb4 TT |
5115 | |
5116 | $as_echo "#define CONFIG_JBD_DEBUG 1" >>confdefs.h | |
57aa50d4 TT |
5117 | |
5118 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling journal debugging" >&5 | |
5119 | $as_echo "Enabling journal debugging" >&6; } | |
5d40773b TT |
5120 | fi |
5121 | ||
5122 | else | |
57aa50d4 TT |
5123 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling journal debugging by default" >&5 |
5124 | $as_echo "Disabling journal debugging by default" >&6; } | |
5d40773b | 5125 | |
e1052144 TT |
5126 | fi |
5127 | ||
57aa50d4 TT |
5128 | # Check whether --enable-blkid-debug was given. |
5129 | if test "${enable_blkid_debug+set}" = set; then : | |
5130 | enableval=$enable_blkid_debug; if test "$enableval" = "no" | |
3249394d | 5131 | then |
57aa50d4 TT |
5132 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling blkid debugging" >&5 |
5133 | $as_echo "Disabling blkid debugging" >&6; } | |
3249394d | 5134 | else |
d1154eb4 TT |
5135 | |
5136 | $as_echo "#define CONFIG_BLKID_DEBUG 1" >>confdefs.h | |
57aa50d4 TT |
5137 | |
5138 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling blkid debugging" >&5 | |
5139 | $as_echo "Enabling blkid debugging" >&6; } | |
3249394d TT |
5140 | fi |
5141 | ||
5142 | else | |
57aa50d4 TT |
5143 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling blkid debugging by default" >&5 |
5144 | $as_echo "Disabling blkid debugging by default" >&6; } | |
3249394d TT |
5145 | |
5146 | fi | |
5147 | ||
57aa50d4 TT |
5148 | # Check whether --enable-testio-debug was given. |
5149 | if test "${enable_testio_debug+set}" = set; then : | |
d1154eb4 TT |
5150 | enableval=$enable_testio_debug; |
5151 | if test "$enableval" = "no" | |
3249394d | 5152 | then |
57aa50d4 TT |
5153 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling testio debugging" >&5 |
5154 | $as_echo "Disabling testio debugging" >&6; } | |
5155 | TEST_IO_CMT="#" | |
3249394d | 5156 | else |
57aa50d4 TT |
5157 | TEST_IO_CMT= |
5158 | $as_echo "#define CONFIG_TESTIO_DEBUG 1" >>confdefs.h | |
3249394d | 5159 | |
57aa50d4 TT |
5160 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling testio debugging" >&5 |
5161 | $as_echo "Enabling testio debugging" >&6; } | |
5162 | fi | |
3249394d | 5163 | |
3249394d | 5164 | else |
57aa50d4 TT |
5165 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling testio debugging by default" >&5 |
5166 | $as_echo "Enabling testio debugging by default" >&6; } | |
5167 | $as_echo "#define CONFIG_TESTIO_DEBUG 1" >>confdefs.h | |
3249394d | 5168 | |
57aa50d4 | 5169 | TEST_IO_CMT= |
3249394d TT |
5170 | |
5171 | fi | |
5172 | ||
3249394d | 5173 | |
b9e66a18 TT |
5174 | # Check whether --enable-developer-features was given. |
5175 | if test "${enable_developer_features+set}" = set; then : | |
5176 | enableval=$enable_developer_features; | |
5177 | if test "$enableval" = "yes" | |
5178 | then | |
5179 | DEV_FEATURES_CMT= | |
5180 | $as_echo "#define CONFIG_DEVELOPER_FEATURES 1" >>confdefs.h | |
5181 | ||
5182 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling ext4 developer features" >&5 | |
5183 | $as_echo "Enabling ext4 developer features" >&6; } | |
5184 | else | |
5185 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling ext4 developer features" >&5 | |
5186 | $as_echo "Disabling ext4 developer features" >&6; } | |
5187 | DEV_FEATURES_CMT="#" | |
5188 | fi | |
5189 | ||
5190 | else | |
5191 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling ext4 developer features by default" >&5 | |
5192 | $as_echo "Disabling ext4 developer features by default" >&6; } | |
5193 | DEV_FEATURES_CMT= | |
5194 | ||
5195 | fi | |
5196 | ||
5197 | ||
57aa50d4 TT |
5198 | |
5199 | ||
93613951 TT |
5200 | |
5201 | ||
5202 | ||
5203 | ||
5204 | ||
57aa50d4 | 5205 | if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then |
93613951 | 5206 | if test -n "$ac_tool_prefix"; then |
57aa50d4 TT |
5207 | # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. |
5208 | set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 | |
5209 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5210 | $as_echo_n "checking for $ac_word... " >&6; } | |
d6a4bcb5 | 5211 | if ${ac_cv_path_PKG_CONFIG+:} false; then : |
57aa50d4 TT |
5212 | $as_echo_n "(cached) " >&6 |
5213 | else | |
5214 | case $PKG_CONFIG in | |
5215 | [\\/]* | ?:[\\/]*) | |
5216 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
5217 | ;; | |
5218 | *) | |
5219 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5220 | for as_dir in $PATH | |
5221 | do | |
5222 | IFS=$as_save_IFS | |
5223 | test -z "$as_dir" && as_dir=. | |
5224 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d6a4bcb5 | 5225 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
57aa50d4 TT |
5226 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
5227 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5228 | break 2 | |
5229 | fi | |
5230 | done | |
5231 | done | |
5232 | IFS=$as_save_IFS | |
5233 | ||
5234 | ;; | |
5235 | esac | |
5236 | fi | |
5237 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
5238 | if test -n "$PKG_CONFIG"; then | |
5239 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 | |
5240 | $as_echo "$PKG_CONFIG" >&6; } | |
5241 | else | |
5242 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5243 | $as_echo "no" >&6; } | |
3249394d TT |
5244 | fi |
5245 | ||
5246 | ||
57aa50d4 TT |
5247 | fi |
5248 | if test -z "$ac_cv_path_PKG_CONFIG"; then | |
5249 | ac_pt_PKG_CONFIG=$PKG_CONFIG | |
5250 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
5251 | set dummy pkg-config; ac_word=$2 | |
5252 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5253 | $as_echo_n "checking for $ac_word... " >&6; } | |
d6a4bcb5 | 5254 | if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : |
57aa50d4 TT |
5255 | $as_echo_n "(cached) " >&6 |
5256 | else | |
5257 | case $ac_pt_PKG_CONFIG in | |
5258 | [\\/]* | ?:[\\/]*) | |
5259 | ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. | |
5260 | ;; | |
5261 | *) | |
5262 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5263 | for as_dir in $PATH | |
5264 | do | |
5265 | IFS=$as_save_IFS | |
5266 | test -z "$as_dir" && as_dir=. | |
5267 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d6a4bcb5 | 5268 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
57aa50d4 TT |
5269 | ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
5270 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5271 | break 2 | |
5272 | fi | |
5273 | done | |
5274 | done | |
5275 | IFS=$as_save_IFS | |
3249394d | 5276 | |
57aa50d4 TT |
5277 | ;; |
5278 | esac | |
5279 | fi | |
5280 | ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG | |
5281 | if test -n "$ac_pt_PKG_CONFIG"; then | |
5282 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 | |
5283 | $as_echo "$ac_pt_PKG_CONFIG" >&6; } | |
5284 | else | |
5285 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5286 | $as_echo "no" >&6; } | |
5287 | fi | |
3249394d | 5288 | |
57aa50d4 TT |
5289 | if test "x$ac_pt_PKG_CONFIG" = x; then |
5290 | PKG_CONFIG="" | |
5291 | else | |
5292 | case $cross_compiling:$ac_tool_warned in | |
5293 | yes:) | |
5294 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5295 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5296 | ac_tool_warned=yes ;; | |
5297 | esac | |
5298 | PKG_CONFIG=$ac_pt_PKG_CONFIG | |
3249394d | 5299 | fi |
57aa50d4 TT |
5300 | else |
5301 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" | |
5302 | fi | |
3249394d TT |
5303 | |
5304 | fi | |
57aa50d4 | 5305 | if test -n "$PKG_CONFIG"; then |
93613951 TT |
5306 | _pkg_min_version=0.9.0 |
5307 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 | |
57aa50d4 | 5308 | $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } |
93613951 TT |
5309 | if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then |
5310 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
57aa50d4 | 5311 | $as_echo "yes" >&6; } |
93613951 TT |
5312 | else |
5313 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
57aa50d4 | 5314 | $as_echo "no" >&6; } |
93613951 TT |
5315 | PKG_CONFIG="" |
5316 | fi | |
57aa50d4 TT |
5317 | fi |
5318 | LIBUUID= | |
5319 | DEPLIBUUID= | |
5320 | STATIC_LIBUUID= | |
5321 | DEPSTATIC_LIBUUID= | |
5322 | PROFILED_LIBUUID= | |
5323 | DEPPROFILED_LIBUUID= | |
5324 | UUID_CMT= | |
5325 | # Check whether --enable-libuuid was given. | |
5326 | if test "${enable_libuuid+set}" = set; then : | |
5327 | enableval=$enable_libuuid; if test "$enableval" = "no" | |
5610f992 | 5328 | then |
57aa50d4 | 5329 | if test -z "$PKG_CONFIG"; then |
d6a4bcb5 | 5330 | as_fn_error $? "pkg-config not installed; please install it." "$LINENO" 5 |
57aa50d4 TT |
5331 | fi |
5332 | ||
5333 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5 | |
5334 | $as_echo_n "checking for uuid_generate in -luuid... " >&6; } | |
d6a4bcb5 | 5335 | if ${ac_cv_lib_uuid_uuid_generate+:} false; then : |
57aa50d4 | 5336 | $as_echo_n "(cached) " >&6 |
5610f992 | 5337 | else |
57aa50d4 | 5338 | ac_check_lib_save_LIBS=$LIBS |
2d7583bd | 5339 | LIBS="-luuid $LIBS" |
57aa50d4 TT |
5340 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
5341 | /* end confdefs.h. */ | |
5610f992 | 5342 | |
57aa50d4 TT |
5343 | /* Override any GCC internal prototype to avoid an error. |
5344 | Use char because int might match the return type of a GCC | |
5345 | builtin and then its argument prototype would still apply. */ | |
5346 | #ifdef __cplusplus | |
5347 | extern "C" | |
5348 | #endif | |
5349 | char uuid_generate (); | |
5350 | int | |
5351 | main () | |
5352 | { | |
5353 | return uuid_generate (); | |
5354 | ; | |
5355 | return 0; | |
5356 | } | |
5357 | _ACEOF | |
5358 | if ac_fn_c_try_link "$LINENO"; then : | |
5359 | ac_cv_lib_uuid_uuid_generate=yes | |
5360 | else | |
5361 | ac_cv_lib_uuid_uuid_generate=no | |
5362 | fi | |
5363 | rm -f core conftest.err conftest.$ac_objext \ | |
5364 | conftest$ac_exeext conftest.$ac_ext | |
5365 | LIBS=$ac_check_lib_save_LIBS | |
5366 | fi | |
5367 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5 | |
5368 | $as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; } | |
d6a4bcb5 | 5369 | if test "x$ac_cv_lib_uuid_uuid_generate" = xyes; then : |
57aa50d4 TT |
5370 | LIBUUID=`$PKG_CONFIG --libs uuid`; |
5371 | STATIC_LIBUUID=`$PKG_CONFIG --static --libs uuid` | |
5372 | else | |
d6a4bcb5 | 5373 | as_fn_error $? "external uuid library not found" "$LINENO" 5 |
5610f992 TT |
5374 | fi |
5375 | ||
5afdf37b | 5376 | PROFILED_LIBUUID=$LIBUUID |
57aa50d4 TT |
5377 | UUID_CMT=# |
5378 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling private uuid library" >&5 | |
5379 | $as_echo "Disabling private uuid library" >&6; } | |
5610f992 | 5380 | else |
57aa50d4 TT |
5381 | LIBUUID='$(LIB)/libuuid'$LIB_EXT |
5382 | DEPLIBUUID=$LIBUUID | |
5383 | STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT | |
5384 | DEPSTATIC_LIBUUID=$STATIC_LIBUUID | |
5385 | PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT | |
5386 | DEPPROFILED_LIBUUID=$PROFILED_LIBUUID | |
5387 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private uuid library" >&5 | |
5388 | $as_echo "Enabling private uuid library" >&6; } | |
5389 | fi | |
5610f992 | 5390 | |
57aa50d4 | 5391 | else |
f5dffb81 TT |
5392 | if test -n "$PKG_CONFIG"; then |
5393 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5 | |
5394 | $as_echo_n "checking for uuid_generate in -luuid... " >&6; } | |
5395 | if ${ac_cv_lib_uuid_uuid_generate+:} false; then : | |
5396 | $as_echo_n "(cached) " >&6 | |
5397 | else | |
5398 | ac_check_lib_save_LIBS=$LIBS | |
5399 | LIBS="-luuid $LIBS" | |
5400 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5401 | /* end confdefs.h. */ | |
5402 | ||
5403 | /* Override any GCC internal prototype to avoid an error. | |
5404 | Use char because int might match the return type of a GCC | |
5405 | builtin and then its argument prototype would still apply. */ | |
5406 | #ifdef __cplusplus | |
5407 | extern "C" | |
5408 | #endif | |
5409 | char uuid_generate (); | |
5410 | int | |
5411 | main () | |
5412 | { | |
5413 | return uuid_generate (); | |
5414 | ; | |
5415 | return 0; | |
5416 | } | |
5417 | _ACEOF | |
5418 | if ac_fn_c_try_link "$LINENO"; then : | |
5419 | ac_cv_lib_uuid_uuid_generate=yes | |
5420 | else | |
5421 | ac_cv_lib_uuid_uuid_generate=no | |
5422 | fi | |
5423 | rm -f core conftest.err conftest.$ac_objext \ | |
5424 | conftest$ac_exeext conftest.$ac_ext | |
5425 | LIBS=$ac_check_lib_save_LIBS | |
5426 | fi | |
5427 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5 | |
5428 | $as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; } | |
5429 | if test "x$ac_cv_lib_uuid_uuid_generate" = xyes; then : | |
5430 | LIBUUID=`$PKG_CONFIG --libs uuid`; | |
5431 | STATIC_LIBUUID=`$PKG_CONFIG --static --libs uuid` | |
5432 | fi | |
5433 | ||
5434 | fi | |
5435 | if test -n "$LIBUUID"; then | |
5436 | PROFILED_LIBUUID=$LIBUUID | |
5437 | UUID_CMT=# | |
5438 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using system uuid by default" >&5 | |
5439 | $as_echo "Using system uuid by default" >&6; } | |
5440 | else | |
5441 | LIBUUID='$(LIB)/libuuid'$LIB_EXT | |
5442 | DEPLIBUUID=$LIBUUID | |
5443 | STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT | |
5444 | DEPSTATIC_LIBUUID=$STATIC_LIBUUID | |
5445 | PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT | |
5446 | DEPPROFILED_LIBUUID=$PROFILED_LIBUUID | |
5447 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private uuid library by default" >&5 | |
57aa50d4 | 5448 | $as_echo "Enabling private uuid library by default" >&6; } |
f5dffb81 | 5449 | fi |
5610f992 TT |
5450 | |
5451 | fi | |
5452 | ||
5453 | ||
cdf186e4 | 5454 | |
a64c9c13 | 5455 | |
93636bde TT |
5456 | |
5457 | ||
93636bde | 5458 | |
93636bde TT |
5459 | |
5460 | ||
57aa50d4 | 5461 | |
93613951 TT |
5462 | |
5463 | ||
5464 | ||
5465 | ||
5466 | ||
57aa50d4 | 5467 | if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then |
93613951 | 5468 | if test -n "$ac_tool_prefix"; then |
57aa50d4 TT |
5469 | # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. |
5470 | set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 | |
5471 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5472 | $as_echo_n "checking for $ac_word... " >&6; } | |
d6a4bcb5 | 5473 | if ${ac_cv_path_PKG_CONFIG+:} false; then : |
39fd3d4f | 5474 | $as_echo_n "(cached) " >&6 |
a64c9c13 | 5475 | else |
57aa50d4 TT |
5476 | case $PKG_CONFIG in |
5477 | [\\/]* | ?:[\\/]*) | |
5478 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
5479 | ;; | |
e1052144 | 5480 | *) |
b0cacab0 TT |
5481 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5482 | for as_dir in $PATH | |
5483 | do | |
5484 | IFS=$as_save_IFS | |
5485 | test -z "$as_dir" && as_dir=. | |
57aa50d4 | 5486 | for ac_exec_ext in '' $ac_executable_extensions; do |
d6a4bcb5 | 5487 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
57aa50d4 TT |
5488 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
5489 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5490 | break 2 | |
5491 | fi | |
b0cacab0 | 5492 | done |
57aa50d4 | 5493 | done |
e1052144 | 5494 | IFS=$as_save_IFS |
b0cacab0 | 5495 | |
57aa50d4 | 5496 | ;; |
b0cacab0 TT |
5497 | esac |
5498 | fi | |
57aa50d4 TT |
5499 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG |
5500 | if test -n "$PKG_CONFIG"; then | |
5501 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 | |
5502 | $as_echo "$PKG_CONFIG" >&6; } | |
07a0db15 | 5503 | else |
57aa50d4 | 5504 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
39fd3d4f | 5505 | $as_echo "no" >&6; } |
07a0db15 | 5506 | fi |
07a0db15 | 5507 | |
57aa50d4 TT |
5508 | |
5509 | fi | |
5510 | if test -z "$ac_cv_path_PKG_CONFIG"; then | |
5511 | ac_pt_PKG_CONFIG=$PKG_CONFIG | |
5512 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
5513 | set dummy pkg-config; ac_word=$2 | |
5514 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
39fd3d4f | 5515 | $as_echo_n "checking for $ac_word... " >&6; } |
d6a4bcb5 | 5516 | if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : |
39fd3d4f | 5517 | $as_echo_n "(cached) " >&6 |
a64c9c13 | 5518 | else |
57aa50d4 | 5519 | case $ac_pt_PKG_CONFIG in |
b0cacab0 | 5520 | [\\/]* | ?:[\\/]*) |
57aa50d4 | 5521 | ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. |
b0cacab0 TT |
5522 | ;; |
5523 | *) | |
5524 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5525 | for as_dir in $PATH | |
5526 | do | |
5527 | IFS=$as_save_IFS | |
5528 | test -z "$as_dir" && as_dir=. | |
57aa50d4 | 5529 | for ac_exec_ext in '' $ac_executable_extensions; do |
d6a4bcb5 | 5530 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
57aa50d4 TT |
5531 | ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
5532 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
b0cacab0 TT |
5533 | break 2 |
5534 | fi | |
5535 | done | |
57aa50d4 | 5536 | done |
e1052144 | 5537 | IFS=$as_save_IFS |
a64c9c13 | 5538 | |
b0cacab0 TT |
5539 | ;; |
5540 | esac | |
a64c9c13 | 5541 | fi |
57aa50d4 TT |
5542 | ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG |
5543 | if test -n "$ac_pt_PKG_CONFIG"; then | |
5544 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 | |
5545 | $as_echo "$ac_pt_PKG_CONFIG" >&6; } | |
a64c9c13 | 5546 | else |
57aa50d4 | 5547 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
39fd3d4f | 5548 | $as_echo "no" >&6; } |
a64c9c13 | 5549 | fi |
a64c9c13 | 5550 | |
57aa50d4 TT |
5551 | if test "x$ac_pt_PKG_CONFIG" = x; then |
5552 | PKG_CONFIG="" | |
b0cacab0 | 5553 | else |
57aa50d4 TT |
5554 | case $cross_compiling:$ac_tool_warned in |
5555 | yes:) | |
5556 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5557 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5558 | ac_tool_warned=yes ;; | |
5559 | esac | |
5560 | PKG_CONFIG=$ac_pt_PKG_CONFIG | |
b0cacab0 | 5561 | fi |
57aa50d4 TT |
5562 | else |
5563 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" | |
a64c9c13 | 5564 | fi |
93636bde | 5565 | |
a64c9c13 | 5566 | fi |
57aa50d4 | 5567 | if test -n "$PKG_CONFIG"; then |
93613951 TT |
5568 | _pkg_min_version=0.9.0 |
5569 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 | |
57aa50d4 | 5570 | $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } |
93613951 TT |
5571 | if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then |
5572 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
57aa50d4 | 5573 | $as_echo "yes" >&6; } |
93613951 TT |
5574 | else |
5575 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
57aa50d4 | 5576 | $as_echo "no" >&6; } |
93613951 TT |
5577 | PKG_CONFIG="" |
5578 | fi | |
57aa50d4 TT |
5579 | fi |
5580 | LIBBLKID= | |
5581 | DEPLIBBLKID= | |
5582 | STATIC_LIBBLKID= | |
5583 | DEPSTATIC_LIBBLKID= | |
5584 | PROFILED_LIBBLKID= | |
5585 | DEPPROFILED_LIBBLKID= | |
5586 | BLKID_CMT= | |
d1154eb4 | 5587 | |
57aa50d4 TT |
5588 | # Check whether --enable-libblkid was given. |
5589 | if test "${enable_libblkid+set}" = set; then : | |
5590 | enableval=$enable_libblkid; if test "$enableval" = "no" | |
5591 | then | |
5592 | if test -z "$PKG_CONFIG"; then | |
d6a4bcb5 | 5593 | as_fn_error $? "pkg-config not installed; please install it." "$LINENO" 5 |
57aa50d4 TT |
5594 | fi |
5595 | ||
5596 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for blkid_get_cache in -lblkid" >&5 | |
5597 | $as_echo_n "checking for blkid_get_cache in -lblkid... " >&6; } | |
d6a4bcb5 | 5598 | if ${ac_cv_lib_blkid_blkid_get_cache+:} false; then : |
39fd3d4f | 5599 | $as_echo_n "(cached) " >&6 |
a64c9c13 | 5600 | else |
57aa50d4 | 5601 | ac_check_lib_save_LIBS=$LIBS |
2d7583bd | 5602 | LIBS="-lblkid -luuid $LIBS" |
57aa50d4 TT |
5603 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
5604 | /* end confdefs.h. */ | |
5605 | ||
5606 | /* Override any GCC internal prototype to avoid an error. | |
5607 | Use char because int might match the return type of a GCC | |
5608 | builtin and then its argument prototype would still apply. */ | |
5609 | #ifdef __cplusplus | |
5610 | extern "C" | |
5611 | #endif | |
5612 | char blkid_get_cache (); | |
5613 | int | |
5614 | main () | |
5615 | { | |
5616 | return blkid_get_cache (); | |
5617 | ; | |
5618 | return 0; | |
5619 | } | |
5620 | _ACEOF | |
5621 | if ac_fn_c_try_link "$LINENO"; then : | |
5622 | ac_cv_lib_blkid_blkid_get_cache=yes | |
b0cacab0 | 5623 | else |
57aa50d4 | 5624 | ac_cv_lib_blkid_blkid_get_cache=no |
a64c9c13 | 5625 | fi |
57aa50d4 TT |
5626 | rm -f core conftest.err conftest.$ac_objext \ |
5627 | conftest$ac_exeext conftest.$ac_ext | |
5628 | LIBS=$ac_check_lib_save_LIBS | |
a64c9c13 | 5629 | fi |
57aa50d4 TT |
5630 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_get_cache" >&5 |
5631 | $as_echo "$ac_cv_lib_blkid_blkid_get_cache" >&6; } | |
d6a4bcb5 | 5632 | if test "x$ac_cv_lib_blkid_blkid_get_cache" = xyes; then : |
57aa50d4 TT |
5633 | LIBBLKID=`$PKG_CONFIG --libs blkid`; |
5634 | STATIC_LIBBLKID=`$PKG_CONFIG --static --libs blkid` | |
b0cacab0 | 5635 | else |
d6a4bcb5 | 5636 | as_fn_error $? "external blkid library not found" "$LINENO" 5 |
a64c9c13 | 5637 | fi |
93636bde | 5638 | |
57aa50d4 | 5639 | BLKID_CMT=# |
5afdf37b | 5640 | PROFILED_LIBBLKID=$LIBBLKID |
57aa50d4 TT |
5641 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling private blkid library" >&5 |
5642 | $as_echo "Disabling private blkid library" >&6; } | |
07a0db15 | 5643 | else |
57aa50d4 TT |
5644 | LIBBLKID='$(LIB)/libblkid'$LIB_EXT |
5645 | DEPLIBBLKID=$LIBBLKID | |
5646 | STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT | |
5647 | DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID | |
5648 | PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT | |
5649 | DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID | |
5650 | $as_echo "#define CONFIG_BUILD_FINDFS 1" >>confdefs.h | |
5651 | ||
5652 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private blkid library" >&5 | |
5653 | $as_echo "Enabling private blkid library" >&6; } | |
b0cacab0 | 5654 | fi |
57aa50d4 | 5655 | |
a64c9c13 | 5656 | else |
f5dffb81 TT |
5657 | if test -n "$PKG_CONFIG"; then |
5658 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for blkid_get_cache in -lblkid" >&5 | |
5659 | $as_echo_n "checking for blkid_get_cache in -lblkid... " >&6; } | |
5660 | if ${ac_cv_lib_blkid_blkid_get_cache+:} false; then : | |
5661 | $as_echo_n "(cached) " >&6 | |
5662 | else | |
5663 | ac_check_lib_save_LIBS=$LIBS | |
5664 | LIBS="-lblkid $LIBS" | |
5665 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5666 | /* end confdefs.h. */ | |
5667 | ||
5668 | /* Override any GCC internal prototype to avoid an error. | |
5669 | Use char because int might match the return type of a GCC | |
5670 | builtin and then its argument prototype would still apply. */ | |
5671 | #ifdef __cplusplus | |
5672 | extern "C" | |
5673 | #endif | |
5674 | char blkid_get_cache (); | |
5675 | int | |
5676 | main () | |
5677 | { | |
5678 | return blkid_get_cache (); | |
5679 | ; | |
5680 | return 0; | |
5681 | } | |
5682 | _ACEOF | |
5683 | if ac_fn_c_try_link "$LINENO"; then : | |
5684 | ac_cv_lib_blkid_blkid_get_cache=yes | |
5685 | else | |
5686 | ac_cv_lib_blkid_blkid_get_cache=no | |
5687 | fi | |
5688 | rm -f core conftest.err conftest.$ac_objext \ | |
5689 | conftest$ac_exeext conftest.$ac_ext | |
5690 | LIBS=$ac_check_lib_save_LIBS | |
5691 | fi | |
5692 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_get_cache" >&5 | |
5693 | $as_echo "$ac_cv_lib_blkid_blkid_get_cache" >&6; } | |
5694 | if test "x$ac_cv_lib_blkid_blkid_get_cache" = xyes; then : | |
5695 | LIBBLKID=`$PKG_CONFIG --libs blkid`; | |
5696 | STATIC_LIBBLKID=`$PKG_CONFIG --static --libs blkid` | |
5697 | fi | |
5698 | ||
5699 | fi | |
5700 | if test -n "$LIBBLKID"; then | |
5701 | BLKID_CMT=# | |
5702 | PROFILED_LIBBLKID=$LIBBLKID | |
5703 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using system blkid library by default" >&5 | |
5704 | $as_echo "Using system blkid library by default" >&6; } | |
5705 | else | |
5706 | LIBBLKID='$(LIB)/libblkid'$LIB_EXT | |
5707 | DEPLIBBLKID=$LIBBLKID | |
5708 | STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT | |
5709 | DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID | |
5710 | PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT | |
5711 | DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID | |
5712 | $as_echo "#define CONFIG_BUILD_FINDFS 1" >>confdefs.h | |
57aa50d4 | 5713 | |
f5dffb81 | 5714 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private blkid library by default" >&5 |
57aa50d4 | 5715 | $as_echo "Enabling private blkid library by default" >&6; } |
f5dffb81 | 5716 | fi |
57aa50d4 | 5717 | |
a64c9c13 | 5718 | fi |
07a0db15 | 5719 | |
a64c9c13 | 5720 | |
b0cacab0 | 5721 | |
b0cacab0 | 5722 | |
a64c9c13 | 5723 | |
b0cacab0 | 5724 | |
07a0db15 | 5725 | |
57aa50d4 | 5726 | |
0afb9be6 | 5727 | ALL_CMT= |
feb235e0 | 5728 | SUBSET_CMT= |
0afb9be6 TT |
5729 | # Check whether --enable-subset was given. |
5730 | if test "${enable_subset+set}" = set; then : | |
5731 | enableval=$enable_subset; if test "$enableval" = "no" | |
5732 | then | |
feb235e0 | 5733 | SUBSET_CMT=# |
0afb9be6 TT |
5734 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling subset-only build" >&5 |
5735 | $as_echo "Disabling subset-only build" >&6; } | |
5736 | else | |
5737 | ALL_CMT=# | |
5738 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling subset-only-build" >&5 | |
5739 | $as_echo "Enabling subset-only-build" >&6; } | |
5740 | fi | |
5741 | ||
5742 | fi | |
5743 | ||
5744 | ||
3df6014a | 5745 | |
feb235e0 | 5746 | |
3df6014a TT |
5747 | # Check whether --enable-backtrace was given. |
5748 | if test "${enable_backtrace+set}" = set; then : | |
5749 | enableval=$enable_backtrace; if test "$enableval" = "no" | |
5750 | then | |
5751 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling use of backtrace" >&5 | |
5752 | $as_echo "Disabling use of backtrace" >&6; } | |
5753 | $as_echo "#define DISABLE_BACKTRACE 1" >>confdefs.h | |
5754 | ||
5755 | else | |
5756 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling use of backtrace" >&5 | |
5757 | $as_echo "Enabling use of backtrace" >&6; } | |
5758 | fi | |
5759 | ||
5760 | else | |
5761 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling use of backtrace by default" >&5 | |
5762 | $as_echo "Enabling use of backtrace by default" >&6; } | |
5763 | ||
5764 | fi | |
5765 | ||
57aa50d4 TT |
5766 | # Check whether --enable-debugfs was given. |
5767 | if test "${enable_debugfs+set}" = set; then : | |
5768 | enableval=$enable_debugfs; if test "$enableval" = "no" | |
5769 | then | |
5770 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling debugfs support" >&5 | |
5771 | $as_echo "Disabling debugfs support" >&6; } | |
5772 | DEBUGFS_CMT="#" | |
b0cacab0 | 5773 | else |
57aa50d4 TT |
5774 | DEBUGFS_CMT= |
5775 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling debugfs support" >&5 | |
5776 | $as_echo "Enabling debugfs support" >&6; } | |
b0cacab0 | 5777 | fi |
a64c9c13 | 5778 | |
b0cacab0 | 5779 | else |
57aa50d4 TT |
5780 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling debugfs support by default" >&5 |
5781 | $as_echo "Enabling debugfs support by default" >&6; } | |
5782 | DEBUGFS_CMT= | |
a64c9c13 | 5783 | |
93636bde | 5784 | fi |
57aa50d4 TT |
5785 | |
5786 | ||
5787 | # Check whether --enable-imager was given. | |
5788 | if test "${enable_imager+set}" = set; then : | |
5789 | enableval=$enable_imager; if test "$enableval" = "no" | |
5790 | then | |
5791 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e2image support" >&5 | |
5792 | $as_echo "Disabling e2image support" >&6; } | |
5793 | IMAGER_CMT="#" | |
b0cacab0 | 5794 | else |
57aa50d4 TT |
5795 | IMAGER_CMT= |
5796 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2image support" >&5 | |
5797 | $as_echo "Enabling e2image support" >&6; } | |
b0cacab0 TT |
5798 | fi |
5799 | ||
b0cacab0 | 5800 | else |
57aa50d4 TT |
5801 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2image support by default" >&5 |
5802 | $as_echo "Enabling e2image support by default" >&6; } | |
5803 | IMAGER_CMT= | |
5804 | ||
93636bde TT |
5805 | fi |
5806 | ||
a64c9c13 | 5807 | |
57aa50d4 TT |
5808 | # Check whether --enable-resizer was given. |
5809 | if test "${enable_resizer+set}" = set; then : | |
5810 | enableval=$enable_resizer; if test "$enableval" = "no" | |
5811 | then | |
5812 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e2resize support" >&5 | |
5813 | $as_echo "Disabling e2resize support" >&6; } | |
5814 | RESIZER_CMT="#" | |
b0cacab0 | 5815 | else |
57aa50d4 TT |
5816 | RESIZER_CMT= |
5817 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2resize support" >&5 | |
5818 | $as_echo "Enabling e2resize support" >&6; } | |
5819 | fi | |
b0cacab0 | 5820 | |
b0cacab0 | 5821 | else |
57aa50d4 TT |
5822 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2resize support by default" >&5 |
5823 | $as_echo "Enabling e2resize support by default" >&6; } | |
5824 | RESIZER_CMT= | |
b0cacab0 | 5825 | |
b0cacab0 | 5826 | fi |
e1052144 | 5827 | |
57aa50d4 | 5828 | |
8d9c50c5 TT |
5829 | # Check whether --enable-defrag was given. |
5830 | if test "${enable_defrag+set}" = set; then : | |
5831 | enableval=$enable_defrag; if test "$enableval" = "no" | |
5832 | then | |
5833 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e4defrag support" >&5 | |
5834 | $as_echo "Disabling e4defrag support" >&6; } | |
5835 | DEFRAG_CMT="#" | |
5836 | else | |
5837 | DEFRAG_CMT= | |
5838 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e4defrag support" >&5 | |
5839 | $as_echo "Enabling e4defrag support" >&6; } | |
5840 | fi | |
5841 | ||
5842 | else | |
6c59a665 TT |
5843 | if test -z "$WITH_DIET_LIBC" |
5844 | then | |
5845 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e4defrag support by default" >&5 | |
8d9c50c5 | 5846 | $as_echo "Enabling e4defrag support by default" >&6; } |
6c59a665 TT |
5847 | DEFRAG_CMT= |
5848 | else | |
5849 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e4defrag support by default" >&5 | |
5850 | $as_echo "Disabling e4defrag support by default" >&6; } | |
5851 | DEFRAG_CMT="#" | |
5852 | fi | |
8d9c50c5 TT |
5853 | |
5854 | fi | |
5855 | ||
5856 | ||
57aa50d4 TT |
5857 | # Check whether --enable-fsck was given. |
5858 | if test "${enable_fsck+set}" = set; then : | |
5859 | enableval=$enable_fsck; if test "$enableval" = "no" | |
5860 | then | |
5861 | FSCK_PROG='' FSCK_MAN='' | |
5862 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building fsck wrapper" >&5 | |
5863 | $as_echo "Not building fsck wrapper" >&6; } | |
5864 | else | |
5865 | FSCK_PROG=fsck FSCK_MAN=fsck.8 | |
5866 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building fsck wrapper" >&5 | |
5867 | $as_echo "Building fsck wrapper" >&6; } | |
a64c9c13 TT |
5868 | fi |
5869 | ||
57aa50d4 TT |
5870 | else |
5871 | case "$host_os" in | |
5872 | gnu*) | |
5873 | FSCK_PROG='' FSCK_MAN='' | |
5874 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building fsck wrapper by default" >&5 | |
5875 | $as_echo "Not building fsck wrapper by default" >&6; } | |
5876 | ;; | |
5877 | *) | |
5878 | FSCK_PROG=fsck FSCK_MAN=fsck.8 | |
5879 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building fsck wrapper by default" >&5 | |
5880 | $as_echo "Building fsck wrapper by default" >&6; } | |
5881 | esac | |
b0cacab0 | 5882 | |
57aa50d4 | 5883 | fi |
b0cacab0 | 5884 | |
93636bde | 5885 | |
b0cacab0 | 5886 | |
57aa50d4 TT |
5887 | # Check whether --enable-e2initrd-helper was given. |
5888 | if test "${enable_e2initrd_helper+set}" = set; then : | |
5889 | enableval=$enable_e2initrd_helper; if test "$enableval" = "no" | |
5890 | then | |
5891 | E2INITRD_PROG='' E2INITRD_MAN='' | |
5892 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building e2initrd helper" >&5 | |
5893 | $as_echo "Not building e2initrd helper" >&6; } | |
5894 | else | |
5895 | E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8 | |
5896 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building e2initrd helper" >&5 | |
5897 | $as_echo "Building e2initrd helper" >&6; } | |
5898 | fi | |
a64c9c13 | 5899 | |
a64c9c13 | 5900 | else |
57aa50d4 TT |
5901 | E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8 |
5902 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building e2initrd helper by default" >&5 | |
5903 | $as_echo "Building e2initrd helper by default" >&6; } | |
b0cacab0 | 5904 | |
a64c9c13 | 5905 | fi |
e1052144 | 5906 | |
57aa50d4 TT |
5907 | |
5908 | ||
5909 | # Check whether --enable-tls was given. | |
5910 | if test "${enable_tls+set}" = set; then : | |
5911 | enableval=$enable_tls; if test "$enableval" = "no" | |
5912 | then | |
5913 | try_tls="" | |
5914 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling thread local support" >&5 | |
5915 | $as_echo "Disabling thread local support" >&6; } | |
5916 | else | |
5917 | try_tls="yes" | |
5918 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling thread local support" >&5 | |
5919 | $as_echo "Enabling thread local support" >&6; } | |
a64c9c13 TT |
5920 | fi |
5921 | ||
57aa50d4 TT |
5922 | else |
5923 | if test -n "$WITH_DIET_LIBC" | |
5924 | then | |
5925 | try_tls="" | |
5926 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Diet libc does not support thread local support" >&5 | |
5927 | $as_echo "Diet libc does not support thread local support" >&6; } | |
5928 | else | |
5929 | try_tls="yes" | |
5930 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Try using thread local support by default" >&5 | |
5931 | $as_echo "Try using thread local support by default" >&6; } | |
5932 | fi | |
a64c9c13 | 5933 | |
93636bde | 5934 | fi |
07a0db15 | 5935 | |
57aa50d4 TT |
5936 | if test "$try_tls" = "yes" |
5937 | then | |
a64c9c13 | 5938 | |
57aa50d4 TT |
5939 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread local storage (TLS) class" >&5 |
5940 | $as_echo_n "checking for thread local storage (TLS) class... " >&6; } | |
d6a4bcb5 | 5941 | if ${ac_cv_tls+:} false; then : |
39fd3d4f | 5942 | $as_echo_n "(cached) " >&6 |
b0cacab0 | 5943 | else |
b0cacab0 | 5944 | |
57aa50d4 TT |
5945 | ax_tls_keywords="__thread __declspec(thread) none" |
5946 | for ax_tls_keyword in $ax_tls_keywords; do | |
5947 | case $ax_tls_keyword in | |
5948 | none) ac_cv_tls=none ; break ;; | |
5949 | *) | |
5950 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5951 | /* end confdefs.h. */ | |
5952 | #include <stdlib.h> | |
5953 | static void | |
5954 | foo(void) { | |
5955 | static $ax_tls_keyword int bar; | |
5956 | exit(1); | |
5957 | } | |
b0cacab0 TT |
5958 | int |
5959 | main () | |
5960 | { | |
57aa50d4 | 5961 | |
b0cacab0 TT |
5962 | ; |
5963 | return 0; | |
5964 | } | |
5965 | _ACEOF | |
57aa50d4 TT |
5966 | if ac_fn_c_try_compile "$LINENO"; then : |
5967 | ac_cv_tls=$ax_tls_keyword ; break | |
b0cacab0 | 5968 | else |
57aa50d4 | 5969 | ac_cv_tls=none |
b0cacab0 | 5970 | |
b0cacab0 | 5971 | fi |
e1052144 | 5972 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
57aa50d4 TT |
5973 | esac |
5974 | done | |
5975 | ||
b0cacab0 | 5976 | fi |
b0cacab0 | 5977 | |
57aa50d4 TT |
5978 | |
5979 | if test "$ac_cv_tls" != "none"; then | |
5980 | ||
5981 | cat >>confdefs.h <<_ACEOF | |
5982 | #define TLS $ac_cv_tls | |
b0cacab0 | 5983 | _ACEOF |
93636bde | 5984 | |
b0cacab0 | 5985 | fi |
57aa50d4 TT |
5986 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_tls" >&5 |
5987 | $as_echo "$ac_cv_tls" >&6; } | |
b0cacab0 | 5988 | |
57aa50d4 | 5989 | fi |
d1154eb4 | 5990 | |
57aa50d4 TT |
5991 | # Check whether --enable-uuidd was given. |
5992 | if test "${enable_uuidd+set}" = set; then : | |
5993 | enableval=$enable_uuidd; if test "$enableval" = "no" | |
5994 | then | |
5995 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building uuidd" >&5 | |
5996 | $as_echo "Not building uuidd" >&6; } | |
5997 | UUIDD_CMT="#" | |
a64c9c13 | 5998 | else |
57aa50d4 TT |
5999 | $as_echo "#define USE_UUIDD 1" >>confdefs.h |
6000 | ||
6001 | UUIDD_CMT="" | |
6002 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building uuidd" >&5 | |
6003 | $as_echo "Building uuidd" >&6; } | |
6004 | fi | |
a64c9c13 | 6005 | |
a64c9c13 | 6006 | else |
57aa50d4 | 6007 | $as_echo "#define USE_UUIDD 1" >>confdefs.h |
a64c9c13 | 6008 | |
e3d10158 TT |
6009 | if test -z "$UUID_CMT" |
6010 | then | |
6011 | UUIDD_CMT="" | |
6012 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building uuidd by default" >&5 | |
57aa50d4 | 6013 | $as_echo "Building uuidd by default" >&6; } |
e3d10158 TT |
6014 | else |
6015 | UUIDD_CMT="#" | |
6016 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling uuidd by default" >&5 | |
6017 | $as_echo "Disabling uuidd by default" >&6; } | |
6018 | fi | |
e1052144 | 6019 | |
a64c9c13 | 6020 | fi |
e1052144 | 6021 | |
93636bde | 6022 | |
d6a4bcb5 TB |
6023 | |
6024 | # Check whether --enable-mmp was given. | |
6025 | if test "${enable_mmp+set}" = set; then : | |
6026 | enableval=$enable_mmp; if test "$enableval" = "no" | |
6027 | then | |
6028 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling mmp support" >&5 | |
6029 | $as_echo "Disabling mmp support" >&6; } | |
6030 | else | |
6031 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling mmp support" >&5 | |
6032 | $as_echo "Enabling mmp support" >&6; } | |
6033 | $as_echo "#define CONFIG_MMP 1" >>confdefs.h | |
6034 | ||
6035 | fi | |
6036 | ||
6037 | else | |
6038 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling mmp support by default" >&5 | |
6039 | $as_echo "Enabling mmp support by default" >&6; } | |
6040 | $as_echo "#define CONFIG_MMP 1" >>confdefs.h | |
6041 | ||
6042 | ||
1625bf42 TB |
6043 | fi |
6044 | ||
6045 | ||
749f0712 TT |
6046 | # Check whether --enable-tdb was given. |
6047 | if test "${enable_tdb+set}" = set; then : | |
6048 | enableval=$enable_tdb; if test "$enableval" = "no" | |
6049 | then | |
6050 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling tdb support" >&5 | |
6051 | $as_echo "Disabling tdb support" >&6; } | |
6052 | TDB_CMT="#" | |
6053 | TDB_MAN_COMMENT='.\"' | |
6054 | else | |
6055 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling tdb support" >&5 | |
6056 | $as_echo "Enabling tdb support" >&6; } | |
6057 | $as_echo "#define CONFIG_TDB 1" >>confdefs.h | |
6058 | ||
6059 | TDB_CMT="" | |
6060 | TDB_MAN_COMMENT="" | |
6061 | fi | |
6062 | ||
6063 | else | |
6064 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling mmp support by default" >&5 | |
6065 | $as_echo "Enabling mmp support by default" >&6; } | |
6066 | $as_echo "#define CONFIG_TDB 1" >>confdefs.h | |
6067 | ||
6068 | TDB_CMT="" | |
6069 | TDB_MAN_COMMENT="" | |
6070 | ||
6071 | fi | |
6072 | ||
6073 | ||
6074 | ||
6075 | ||
1625bf42 TB |
6076 | # Check whether --enable-bmap-stats was given. |
6077 | if test "${enable_bmap_stats+set}" = set; then : | |
6078 | enableval=$enable_bmap_stats; if test "$enableval" = "no" | |
6079 | then | |
6080 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling bitmap statistics support" >&5 | |
6081 | $as_echo "Disabling bitmap statistics support" >&6; } | |
6082 | else | |
6083 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling bitmap statistics support" >&5 | |
6084 | $as_echo "Enabling bitmap statistics support" >&6; } | |
6085 | $as_echo "#define ENABLE_BMAP_STATS 1" >>confdefs.h | |
6086 | ||
6087 | fi | |
6088 | ||
6089 | else | |
6090 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling bitmap statistics support by default" >&5 | |
6091 | $as_echo "Enabling bitmap statistics support by default" >&6; } | |
6092 | $as_echo "#define ENABLE_BMAP_STATS 1" >>confdefs.h | |
6093 | ||
6094 | ||
6095 | fi | |
6096 | ||
6097 | ||
6098 | # Check whether --enable-bmap-stats-ops was given. | |
6099 | if test "${enable_bmap_stats_ops+set}" = set; then : | |
6100 | enableval=$enable_bmap_stats_ops; if test "$enableval" = "no" | |
6101 | then | |
6102 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling additional bitmap statistics" >&5 | |
6103 | $as_echo "Disabling additional bitmap statistics" >&6; } | |
6104 | else | |
6105 | if test "x${enable_bmap_stats}" = "xno"; then : | |
6106 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
6107 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
6108 | as_fn_error $? "Error --enable-bmap-stats-ops requires bmap-stats | |
6109 | See \`config.log' for more details" "$LINENO" 5; } | |
6110 | fi | |
6111 | ||
6112 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling additional bitmap statistics" >&5 | |
6113 | $as_echo "Enabling additional bitmap statistics" >&6; } | |
6114 | $as_echo "#define ENABLE_BMAP_STATS_OPS 1" >>confdefs.h | |
6115 | ||
6116 | fi | |
6117 | ||
6118 | else | |
6119 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling additional bitmap statistics by default" >&5 | |
6120 | $as_echo "Disabling additional bitmap statistics by default" >&6; } | |
6121 | ||
d6a4bcb5 TB |
6122 | fi |
6123 | ||
57aa50d4 | 6124 | MAKEFILE_LIBRARY=$srcdir/lib/Makefile.library |
a64c9c13 | 6125 | |
57aa50d4 TT |
6126 | GETTEXT_PACKAGE=e2fsprogs |
6127 | PACKAGE=e2fsprogs | |
6128 | VERSION="$E2FSPROGS_VERSION" | |
6129 | VERSION=0.14.1 | |
d1154eb4 | 6130 | |
57aa50d4 TT |
6131 | cat >>confdefs.h <<_ACEOF |
6132 | #define PACKAGE "$PACKAGE" | |
b0cacab0 | 6133 | _ACEOF |
a64c9c13 | 6134 | |
d1154eb4 | 6135 | |
57aa50d4 TT |
6136 | cat >>confdefs.h <<_ACEOF |
6137 | #define VERSION "$VERSION" | |
6138 | _ACEOF | |
6139 | ||
6140 | ||
6141 | ||
6142 | ||
6143 | ||
6144 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 | |
6145 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } | |
6146 | set x ${MAKE-make} | |
6147 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | |
d6a4bcb5 | 6148 | if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : |
39fd3d4f | 6149 | $as_echo_n "(cached) " >&6 |
b0cacab0 | 6150 | else |
57aa50d4 TT |
6151 | cat >conftest.make <<\_ACEOF |
6152 | SHELL = /bin/sh | |
6153 | all: | |
6154 | @echo '@@@%%%=$(MAKE)=@@@%%%' | |
b0cacab0 | 6155 | _ACEOF |
d6a4bcb5 | 6156 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. |
57aa50d4 TT |
6157 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
6158 | *@@@%%%=?*=@@@%%%*) | |
6159 | eval ac_cv_prog_make_${ac_make}_set=yes;; | |
6160 | *) | |
6161 | eval ac_cv_prog_make_${ac_make}_set=no;; | |
e1052144 | 6162 | esac |
57aa50d4 TT |
6163 | rm -f conftest.make |
6164 | fi | |
6165 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then | |
6166 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
6167 | $as_echo "yes" >&6; } | |
6168 | SET_MAKE= | |
39fd3d4f | 6169 | else |
57aa50d4 TT |
6170 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6171 | $as_echo "no" >&6; } | |
6172 | SET_MAKE="MAKE=${MAKE-make}" | |
39fd3d4f SJR |
6173 | fi |
6174 | ||
57aa50d4 TT |
6175 | # Find a good install program. We prefer a C program (faster), |
6176 | # so one script is as good as another. But avoid the broken or | |
6177 | # incompatible versions: | |
6178 | # SysV /etc/install, /usr/sbin/install | |
6179 | # SunOS /usr/etc/install | |
6180 | # IRIX /sbin/install | |
6181 | # AIX /bin/install | |
6182 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
6183 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
6184 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
6185 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
6186 | # OS/2's system install, which has a completely different semantic | |
6187 | # ./install, which can be erroneously created by make from ./install.sh. | |
6188 | # Reject install programs that cannot install multiple files. | |
6189 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 | |
6190 | $as_echo_n "checking for a BSD-compatible install... " >&6; } | |
6191 | if test -z "$INSTALL"; then | |
d6a4bcb5 | 6192 | if ${ac_cv_path_install+:} false; then : |
57aa50d4 | 6193 | $as_echo_n "(cached) " >&6 |
93636bde | 6194 | else |
57aa50d4 TT |
6195 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
6196 | for as_dir in $PATH | |
6197 | do | |
6198 | IFS=$as_save_IFS | |
6199 | test -z "$as_dir" && as_dir=. | |
6200 | # Account for people who put trailing slashes in PATH elements. | |
6201 | case $as_dir/ in #(( | |
6202 | ./ | .// | /[cC]/* | \ | |
6203 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
6204 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ | |
6205 | /usr/ucb/* ) ;; | |
6206 | *) | |
6207 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
6208 | # Don't use installbsd from OSF since it installs stuff as root | |
6209 | # by default. | |
6210 | for ac_prog in ginstall scoinst install; do | |
6211 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d6a4bcb5 | 6212 | if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
57aa50d4 TT |
6213 | if test $ac_prog = install && |
6214 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
6215 | # AIX install. It has an incompatible calling convention. | |
6216 | : | |
6217 | elif test $ac_prog = install && | |
6218 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
6219 | # program-specific install script used by HP pwplus--don't use. | |
6220 | : | |
6221 | else | |
6222 | rm -rf conftest.one conftest.two conftest.dir | |
6223 | echo one > conftest.one | |
6224 | echo two > conftest.two | |
6225 | mkdir conftest.dir | |
6226 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | |
6227 | test -s conftest.one && test -s conftest.two && | |
6228 | test -s conftest.dir/conftest.one && | |
6229 | test -s conftest.dir/conftest.two | |
6230 | then | |
6231 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
6232 | break 3 | |
6233 | fi | |
6234 | fi | |
6235 | fi | |
6236 | done | |
6237 | done | |
6238 | ;; | |
6239 | esac | |
6240 | ||
6241 | done | |
6242 | IFS=$as_save_IFS | |
b0cacab0 | 6243 | |
57aa50d4 | 6244 | rm -rf conftest.one conftest.two conftest.dir |
39fd3d4f | 6245 | |
93636bde | 6246 | fi |
57aa50d4 TT |
6247 | if test "${ac_cv_path_install+set}" = set; then |
6248 | INSTALL=$ac_cv_path_install | |
6249 | else | |
6250 | # As a last resort, use the slow shell script. Don't cache a | |
6251 | # value for INSTALL within a source directory, because that will | |
6252 | # break other packages using the cache if that directory is | |
6253 | # removed, or if the value is a relative name. | |
6254 | INSTALL=$ac_install_sh | |
6255 | fi | |
93636bde | 6256 | fi |
57aa50d4 TT |
6257 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 |
6258 | $as_echo "$INSTALL" >&6; } | |
a64c9c13 | 6259 | |
57aa50d4 TT |
6260 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
6261 | # It thinks the first close brace ends the variable substitution. | |
6262 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
b0cacab0 | 6263 | |
57aa50d4 | 6264 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
a64c9c13 | 6265 | |
57aa50d4 | 6266 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
39fd3d4f | 6267 | |
93613951 TT |
6268 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 |
6269 | $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } | |
6270 | if test -z "$MKDIR_P"; then | |
6271 | if ${ac_cv_path_mkdir+:} false; then : | |
6272 | $as_echo_n "(cached) " >&6 | |
6273 | else | |
6274 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6275 | for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin | |
6276 | do | |
6277 | IFS=$as_save_IFS | |
6278 | test -z "$as_dir" && as_dir=. | |
6279 | for ac_prog in mkdir gmkdir; do | |
6280 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6281 | as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue | |
6282 | case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( | |
6283 | 'mkdir (GNU coreutils) '* | \ | |
6284 | 'mkdir (coreutils) '* | \ | |
6285 | 'mkdir (fileutils) '4.1*) | |
6286 | ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext | |
6287 | break 3;; | |
6288 | esac | |
6289 | done | |
6290 | done | |
6291 | done | |
6292 | IFS=$as_save_IFS | |
6293 | ||
6294 | fi | |
39fd3d4f | 6295 | |
93613951 TT |
6296 | test -d ./--version && rmdir ./--version |
6297 | if test "${ac_cv_path_mkdir+set}" = set; then | |
6298 | MKDIR_P="$ac_cv_path_mkdir -p" | |
6299 | else | |
6300 | # As a last resort, use the slow shell script. Don't cache a | |
6301 | # value for MKDIR_P within a source directory, because that will | |
6302 | # break other packages using the cache if that directory is | |
6303 | # removed, or if the value is a relative name. | |
6304 | MKDIR_P="$ac_install_sh -d" | |
57aa50d4 | 6305 | fi |
93613951 TT |
6306 | fi |
6307 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 | |
6308 | $as_echo "$MKDIR_P" >&6; } | |
6309 | ||
6310 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 | |
6311 | $as_echo_n "checking for a sed that does not truncate output... " >&6; } | |
6312 | if ${ac_cv_path_SED+:} false; then : | |
6313 | $as_echo_n "(cached) " >&6 | |
6314 | else | |
6315 | ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ | |
6316 | for ac_i in 1 2 3 4 5 6 7; do | |
6317 | ac_script="$ac_script$as_nl$ac_script" | |
6318 | done | |
6319 | echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed | |
6320 | { ac_script=; unset ac_script;} | |
6321 | if test -z "$SED"; then | |
6322 | ac_path_SED_found=false | |
6323 | # Loop through the user's path and test for each of PROGNAME-LIST | |
6324 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6325 | for as_dir in $PATH | |
6326 | do | |
6327 | IFS=$as_save_IFS | |
6328 | test -z "$as_dir" && as_dir=. | |
6329 | for ac_prog in sed gsed; do | |
6330 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6331 | ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" | |
6332 | as_fn_executable_p "$ac_path_SED" || continue | |
6333 | # Check for GNU ac_path_SED and select it if it is found. | |
6334 | # Check for GNU $ac_path_SED | |
6335 | case `"$ac_path_SED" --version 2>&1` in | |
6336 | *GNU*) | |
6337 | ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; | |
6338 | *) | |
6339 | ac_count=0 | |
6340 | $as_echo_n 0123456789 >"conftest.in" | |
6341 | while : | |
6342 | do | |
6343 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
6344 | mv "conftest.tmp" "conftest.in" | |
6345 | cp "conftest.in" "conftest.nl" | |
6346 | $as_echo '' >> "conftest.nl" | |
6347 | "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
6348 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
6349 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
6350 | if test $ac_count -gt ${ac_path_SED_max-0}; then | |
6351 | # Best one so far, save it but keep looking for a better one | |
6352 | ac_cv_path_SED="$ac_path_SED" | |
6353 | ac_path_SED_max=$ac_count | |
6354 | fi | |
6355 | # 10*(2^10) chars as input seems more than enough | |
6356 | test $ac_count -gt 10 && break | |
6357 | done | |
6358 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
6359 | esac | |
6360 | ||
6361 | $ac_path_SED_found && break 3 | |
6362 | done | |
6363 | done | |
6364 | done | |
6365 | IFS=$as_save_IFS | |
6366 | if test -z "$ac_cv_path_SED"; then | |
6367 | as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 | |
57aa50d4 | 6368 | fi |
93613951 TT |
6369 | else |
6370 | ac_cv_path_SED=$SED | |
6371 | fi | |
b0cacab0 | 6372 | |
93613951 TT |
6373 | fi |
6374 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 | |
6375 | $as_echo "$ac_cv_path_SED" >&6; } | |
6376 | SED="$ac_cv_path_SED" | |
6377 | rm -f conftest.sed | |
39fd3d4f | 6378 | |
e1052144 | 6379 | |
57aa50d4 TT |
6380 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5 |
6381 | $as_echo_n "checking whether NLS is requested... " >&6; } | |
6382 | # Check whether --enable-nls was given. | |
6383 | if test "${enable_nls+set}" = set; then : | |
6384 | enableval=$enable_nls; USE_NLS=$enableval | |
b0cacab0 | 6385 | else |
57aa50d4 TT |
6386 | USE_NLS=yes |
6387 | fi | |
b0cacab0 | 6388 | |
57aa50d4 TT |
6389 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5 |
6390 | $as_echo "$USE_NLS" >&6; } | |
93636bde | 6391 | |
a64c9c13 | 6392 | |
a64c9c13 | 6393 | |
b0cacab0 | 6394 | |
93613951 TT |
6395 | GETTEXT_MACRO_VERSION=0.18 |
6396 | ||
6397 | ||
b0cacab0 | 6398 | |
a64c9c13 | 6399 | |
57aa50d4 TT |
6400 | # Prepare PATH_SEPARATOR. |
6401 | # The user is always right. | |
6402 | if test "${PATH_SEPARATOR+set}" != set; then | |
93613951 TT |
6403 | # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which |
6404 | # contains only /bin. Note that ksh looks also at the FPATH variable, | |
6405 | # so we have to set that as well for the test. | |
6406 | PATH_SEPARATOR=: | |
6407 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ | |
6408 | && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ | |
6409 | || PATH_SEPARATOR=';' | |
6410 | } | |
57aa50d4 | 6411 | fi |
b0cacab0 | 6412 | |
57aa50d4 TT |
6413 | # Find out how to test for executable files. Don't use a zero-byte file, |
6414 | # as systems may use methods other than mode bits to determine executability. | |
6415 | cat >conf$$.file <<_ASEOF | |
6416 | #! /bin/sh | |
6417 | exit 0 | |
6418 | _ASEOF | |
6419 | chmod +x conf$$.file | |
6420 | if test -x conf$$.file >/dev/null 2>&1; then | |
6421 | ac_executable_p="test -x" | |
6422 | else | |
6423 | ac_executable_p="test -f" | |
6424 | fi | |
6425 | rm -f conf$$.file | |
b0cacab0 | 6426 | |
57aa50d4 TT |
6427 | # Extract the first word of "msgfmt", so it can be a program name with args. |
6428 | set dummy msgfmt; ac_word=$2 | |
6429 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6430 | $as_echo_n "checking for $ac_word... " >&6; } | |
d6a4bcb5 | 6431 | if ${ac_cv_path_MSGFMT+:} false; then : |
39fd3d4f | 6432 | $as_echo_n "(cached) " >&6 |
93636bde | 6433 | else |
57aa50d4 TT |
6434 | case "$MSGFMT" in |
6435 | [\\/]* | ?:[\\/]*) | |
6436 | ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. | |
6437 | ;; | |
6438 | *) | |
6439 | ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR | |
6440 | for ac_dir in $PATH; do | |
6441 | IFS="$ac_save_IFS" | |
6442 | test -z "$ac_dir" && ac_dir=. | |
6443 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6444 | if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then | |
93613951 TT |
6445 | echo "$as_me: trying $ac_dir/$ac_word..." >&5 |
6446 | if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 && | |
57aa50d4 TT |
6447 | (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then |
6448 | ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext" | |
6449 | break 2 | |
6450 | fi | |
6451 | fi | |
6452 | done | |
6453 | done | |
6454 | IFS="$ac_save_IFS" | |
6455 | test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":" | |
6456 | ;; | |
e1052144 | 6457 | esac |
b0cacab0 | 6458 | fi |
57aa50d4 TT |
6459 | MSGFMT="$ac_cv_path_MSGFMT" |
6460 | if test "$MSGFMT" != ":"; then | |
6461 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5 | |
6462 | $as_echo "$MSGFMT" >&6; } | |
6463 | else | |
6464 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6465 | $as_echo "no" >&6; } | |
b0cacab0 | 6466 | fi |
a64c9c13 | 6467 | |
57aa50d4 TT |
6468 | # Extract the first word of "gmsgfmt", so it can be a program name with args. |
6469 | set dummy gmsgfmt; ac_word=$2 | |
6470 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6471 | $as_echo_n "checking for $ac_word... " >&6; } | |
d6a4bcb5 | 6472 | if ${ac_cv_path_GMSGFMT+:} false; then : |
39fd3d4f | 6473 | $as_echo_n "(cached) " >&6 |
93636bde | 6474 | else |
57aa50d4 TT |
6475 | case $GMSGFMT in |
6476 | [\\/]* | ?:[\\/]*) | |
6477 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. | |
6478 | ;; | |
6479 | *) | |
6480 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6481 | for as_dir in $PATH | |
6482 | do | |
6483 | IFS=$as_save_IFS | |
6484 | test -z "$as_dir" && as_dir=. | |
6485 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d6a4bcb5 | 6486 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
57aa50d4 TT |
6487 | ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext" |
6488 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6489 | break 2 | |
6490 | fi | |
6491 | done | |
6492 | done | |
6493 | IFS=$as_save_IFS | |
a64c9c13 | 6494 | |
57aa50d4 TT |
6495 | test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" |
6496 | ;; | |
e1052144 | 6497 | esac |
57aa50d4 TT |
6498 | fi |
6499 | GMSGFMT=$ac_cv_path_GMSGFMT | |
6500 | if test -n "$GMSGFMT"; then | |
6501 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5 | |
6502 | $as_echo "$GMSGFMT" >&6; } | |
b0cacab0 | 6503 | else |
57aa50d4 TT |
6504 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6505 | $as_echo "no" >&6; } | |
b0cacab0 | 6506 | fi |
e1052144 | 6507 | |
b0cacab0 | 6508 | |
b0cacab0 | 6509 | |
93613951 TT |
6510 | case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in |
6511 | '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;; | |
6512 | *) MSGFMT_015=$MSGFMT ;; | |
6513 | esac | |
6514 | ||
6515 | case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in | |
6516 | '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;; | |
6517 | *) GMSGFMT_015=$GMSGFMT ;; | |
6518 | esac | |
6519 | ||
6520 | ||
57aa50d4 TT |
6521 | |
6522 | # Prepare PATH_SEPARATOR. | |
6523 | # The user is always right. | |
6524 | if test "${PATH_SEPARATOR+set}" != set; then | |
93613951 TT |
6525 | # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which |
6526 | # contains only /bin. Note that ksh looks also at the FPATH variable, | |
6527 | # so we have to set that as well for the test. | |
6528 | PATH_SEPARATOR=: | |
6529 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ | |
6530 | && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ | |
6531 | || PATH_SEPARATOR=';' | |
6532 | } | |
57aa50d4 | 6533 | fi |
b0cacab0 | 6534 | |
57aa50d4 TT |
6535 | # Find out how to test for executable files. Don't use a zero-byte file, |
6536 | # as systems may use methods other than mode bits to determine executability. | |
6537 | cat >conf$$.file <<_ASEOF | |
6538 | #! /bin/sh | |
6539 | exit 0 | |
6540 | _ASEOF | |
6541 | chmod +x conf$$.file | |
6542 | if test -x conf$$.file >/dev/null 2>&1; then | |
6543 | ac_executable_p="test -x" | |
6544 | else | |
6545 | ac_executable_p="test -f" | |
6546 | fi | |
6547 | rm -f conf$$.file | |
b0cacab0 | 6548 | |
57aa50d4 TT |
6549 | # Extract the first word of "xgettext", so it can be a program name with args. |
6550 | set dummy xgettext; ac_word=$2 | |
6551 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6552 | $as_echo_n "checking for $ac_word... " >&6; } | |
d6a4bcb5 | 6553 | if ${ac_cv_path_XGETTEXT+:} false; then : |
39fd3d4f | 6554 | $as_echo_n "(cached) " >&6 |
a64c9c13 | 6555 | else |
57aa50d4 TT |
6556 | case "$XGETTEXT" in |
6557 | [\\/]* | ?:[\\/]*) | |
6558 | ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. | |
6559 | ;; | |
6560 | *) | |
6561 | ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR | |
6562 | for ac_dir in $PATH; do | |
6563 | IFS="$ac_save_IFS" | |
6564 | test -z "$ac_dir" && ac_dir=. | |
6565 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6566 | if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then | |
93613951 TT |
6567 | echo "$as_me: trying $ac_dir/$ac_word..." >&5 |
6568 | if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 && | |
57aa50d4 TT |
6569 | (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 |
6570 | ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext" | |
6571 | break 2 | |
6572 | fi | |
6573 | fi | |
6574 | done | |
6575 | done | |
6576 | IFS="$ac_save_IFS" | |
6577 | test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" | |
6578 | ;; | |
e1052144 | 6579 | esac |
b0cacab0 | 6580 | fi |
57aa50d4 TT |
6581 | XGETTEXT="$ac_cv_path_XGETTEXT" |
6582 | if test "$XGETTEXT" != ":"; then | |
6583 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5 | |
6584 | $as_echo "$XGETTEXT" >&6; } | |
6585 | else | |
6586 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6587 | $as_echo "no" >&6; } | |
b0cacab0 | 6588 | fi |
b0cacab0 | 6589 | |
57aa50d4 | 6590 | rm -f messages.po |
a64c9c13 | 6591 | |
93613951 TT |
6592 | case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in |
6593 | '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;; | |
6594 | *) XGETTEXT_015=$XGETTEXT ;; | |
6595 | esac | |
6596 | ||
6597 | ||
b0cacab0 | 6598 | |
57aa50d4 TT |
6599 | # Prepare PATH_SEPARATOR. |
6600 | # The user is always right. | |
6601 | if test "${PATH_SEPARATOR+set}" != set; then | |
93613951 TT |
6602 | # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which |
6603 | # contains only /bin. Note that ksh looks also at the FPATH variable, | |
6604 | # so we have to set that as well for the test. | |
6605 | PATH_SEPARATOR=: | |
6606 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ | |
6607 | && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ | |
6608 | || PATH_SEPARATOR=';' | |
6609 | } | |
57aa50d4 | 6610 | fi |
b0cacab0 | 6611 | |
57aa50d4 TT |
6612 | # Find out how to test for executable files. Don't use a zero-byte file, |
6613 | # as systems may use methods other than mode bits to determine executability. | |
6614 | cat >conf$$.file <<_ASEOF | |
6615 | #! /bin/sh | |
6616 | exit 0 | |
6617 | _ASEOF | |
6618 | chmod +x conf$$.file | |
6619 | if test -x conf$$.file >/dev/null 2>&1; then | |
6620 | ac_executable_p="test -x" | |
6621 | else | |
6622 | ac_executable_p="test -f" | |
6623 | fi | |
6624 | rm -f conf$$.file | |
6625 | ||
6626 | # Extract the first word of "msgmerge", so it can be a program name with args. | |
6627 | set dummy msgmerge; ac_word=$2 | |
6628 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6629 | $as_echo_n "checking for $ac_word... " >&6; } | |
d6a4bcb5 | 6630 | if ${ac_cv_path_MSGMERGE+:} false; then : |
39fd3d4f | 6631 | $as_echo_n "(cached) " >&6 |
b0cacab0 | 6632 | else |
57aa50d4 TT |
6633 | case "$MSGMERGE" in |
6634 | [\\/]* | ?:[\\/]*) | |
6635 | ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path. | |
6636 | ;; | |
6637 | *) | |
6638 | ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR | |
6639 | for ac_dir in $PATH; do | |
6640 | IFS="$ac_save_IFS" | |
6641 | test -z "$ac_dir" && ac_dir=. | |
6642 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6643 | if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then | |
93613951 TT |
6644 | echo "$as_me: trying $ac_dir/$ac_word..." >&5 |
6645 | if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then | |
57aa50d4 TT |
6646 | ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext" |
6647 | break 2 | |
6648 | fi | |
6649 | fi | |
6650 | done | |
6651 | done | |
6652 | IFS="$ac_save_IFS" | |
6653 | test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":" | |
6654 | ;; | |
e1052144 | 6655 | esac |
57aa50d4 TT |
6656 | fi |
6657 | MSGMERGE="$ac_cv_path_MSGMERGE" | |
6658 | if test "$MSGMERGE" != ":"; then | |
6659 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5 | |
6660 | $as_echo "$MSGMERGE" >&6; } | |
b0cacab0 | 6661 | else |
57aa50d4 TT |
6662 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6663 | $as_echo "no" >&6; } | |
b0cacab0 | 6664 | fi |
e1052144 | 6665 | |
93636bde | 6666 | |
93613951 TT |
6667 | test -n "$localedir" || localedir='${datadir}/locale' |
6668 | ||
6669 | ||
6670 | test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS= | |
6671 | ||
6672 | ||
6673 | ac_config_commands="$ac_config_commands po-directories" | |
a64c9c13 | 6674 | |
a64c9c13 | 6675 | |
93613951 TT |
6676 | |
6677 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2 or newer" >&5 | |
6678 | $as_echo_n "checking whether we are using the GNU C Library 2 or newer... " >&6; } | |
6679 | if ${ac_cv_gnu_library_2+:} false; then : | |
6680 | $as_echo_n "(cached) " >&6 | |
6681 | else | |
6682 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6683 | /* end confdefs.h. */ | |
6684 | ||
6685 | #include <features.h> | |
6686 | #ifdef __GNU_LIBRARY__ | |
6687 | #if (__GLIBC__ >= 2) && !defined __UCLIBC__ | |
6688 | Lucky GNU user | |
6689 | #endif | |
6690 | #endif | |
6691 | ||
6692 | _ACEOF | |
6693 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
6694 | $EGREP "Lucky GNU user" >/dev/null 2>&1; then : | |
6695 | ac_cv_gnu_library_2=yes | |
6696 | else | |
6697 | ac_cv_gnu_library_2=no | |
6698 | fi | |
6699 | rm -f conftest* | |
6700 | ||
a64c9c13 | 6701 | |
a64c9c13 | 6702 | |
93613951 TT |
6703 | fi |
6704 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2" >&5 | |
6705 | $as_echo "$ac_cv_gnu_library_2" >&6; } | |
6706 | ||
6707 | GLIBC2="$ac_cv_gnu_library_2" | |
57aa50d4 | 6708 | |
a64c9c13 | 6709 | |
57aa50d4 TT |
6710 | if test -n "$ac_tool_prefix"; then |
6711 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
6712 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
6713 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6714 | $as_echo_n "checking for $ac_word... " >&6; } | |
d6a4bcb5 | 6715 | if ${ac_cv_prog_RANLIB+:} false; then : |
39fd3d4f | 6716 | $as_echo_n "(cached) " >&6 |
b0cacab0 | 6717 | else |
57aa50d4 TT |
6718 | if test -n "$RANLIB"; then |
6719 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
b0cacab0 | 6720 | else |
57aa50d4 TT |
6721 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
6722 | for as_dir in $PATH | |
6723 | do | |
6724 | IFS=$as_save_IFS | |
6725 | test -z "$as_dir" && as_dir=. | |
6726 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d6a4bcb5 | 6727 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
57aa50d4 TT |
6728 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
6729 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6730 | break 2 | |
6731 | fi | |
6732 | done | |
6733 | done | |
6734 | IFS=$as_save_IFS | |
d1154eb4 TT |
6735 | |
6736 | fi | |
6737 | fi | |
6738 | RANLIB=$ac_cv_prog_RANLIB | |
6739 | if test -n "$RANLIB"; then | |
6740 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 | |
6741 | $as_echo "$RANLIB" >&6; } | |
6742 | else | |
6743 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6744 | $as_echo "no" >&6; } | |
6745 | fi | |
6746 | ||
6747 | ||
6748 | fi | |
6749 | if test -z "$ac_cv_prog_RANLIB"; then | |
6750 | ac_ct_RANLIB=$RANLIB | |
6751 | # Extract the first word of "ranlib", so it can be a program name with args. | |
6752 | set dummy ranlib; ac_word=$2 | |
6753 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6754 | $as_echo_n "checking for $ac_word... " >&6; } | |
d6a4bcb5 | 6755 | if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : |
d1154eb4 TT |
6756 | $as_echo_n "(cached) " >&6 |
6757 | else | |
6758 | if test -n "$ac_ct_RANLIB"; then | |
6759 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
6760 | else | |
6761 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6762 | for as_dir in $PATH | |
6763 | do | |
6764 | IFS=$as_save_IFS | |
6765 | test -z "$as_dir" && as_dir=. | |
6766 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d6a4bcb5 | 6767 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
d1154eb4 TT |
6768 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
6769 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6770 | break 2 | |
6771 | fi | |
6772 | done | |
6773 | done | |
6774 | IFS=$as_save_IFS | |
6775 | ||
6776 | fi | |
6777 | fi | |
6778 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
6779 | if test -n "$ac_ct_RANLIB"; then | |
6780 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 | |
6781 | $as_echo "$ac_ct_RANLIB" >&6; } | |
6782 | else | |
6783 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6784 | $as_echo "no" >&6; } | |
6785 | fi | |
6786 | ||
6787 | if test "x$ac_ct_RANLIB" = x; then | |
6788 | RANLIB=":" | |
6789 | else | |
6790 | case $cross_compiling:$ac_tool_warned in | |
6791 | yes:) | |
6792 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6793 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6794 | ac_tool_warned=yes ;; | |
6795 | esac | |
6796 | RANLIB=$ac_ct_RANLIB | |
6797 | fi | |
6798 | else | |
6799 | RANLIB="$ac_cv_prog_RANLIB" | |
6800 | fi | |
6801 | ||
6802 | ||
93613951 TT |
6803 | |
6804 | CFLAG_VISIBILITY= | |
6805 | HAVE_VISIBILITY=0 | |
6806 | if test -n "$GCC"; then | |
6807 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the -Werror option is usable" >&5 | |
6808 | $as_echo_n "checking whether the -Werror option is usable... " >&6; } | |
6809 | if ${gl_cv_cc_vis_werror+:} false; then : | |
d1154eb4 TT |
6810 | $as_echo_n "(cached) " >&6 |
6811 | else | |
93613951 TT |
6812 | |
6813 | gl_save_CFLAGS="$CFLAGS" | |
6814 | CFLAGS="$CFLAGS -Werror" | |
6815 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
d1154eb4 TT |
6816 | /* end confdefs.h. */ |
6817 | ||
d1154eb4 TT |
6818 | int |
6819 | main () | |
6820 | { | |
93613951 | 6821 | |
d1154eb4 TT |
6822 | ; |
6823 | return 0; | |
6824 | } | |
6825 | _ACEOF | |
93613951 TT |
6826 | if ac_fn_c_try_compile "$LINENO"; then : |
6827 | gl_cv_cc_vis_werror=yes | |
d1154eb4 | 6828 | else |
93613951 | 6829 | gl_cv_cc_vis_werror=no |
d1154eb4 | 6830 | fi |
93613951 TT |
6831 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
6832 | CFLAGS="$gl_save_CFLAGS" | |
d1154eb4 TT |
6833 | fi |
6834 | ||
93613951 TT |
6835 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_vis_werror" >&5 |
6836 | $as_echo "$gl_cv_cc_vis_werror" >&6; } | |
6837 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for simple visibility declarations" >&5 | |
6838 | $as_echo_n "checking for simple visibility declarations... " >&6; } | |
6839 | if ${gl_cv_cc_visibility+:} false; then : | |
6840 | $as_echo_n "(cached) " >&6 | |
6841 | else | |
d1154eb4 | 6842 | |
93613951 TT |
6843 | gl_save_CFLAGS="$CFLAGS" |
6844 | CFLAGS="$CFLAGS -fvisibility=hidden" | |
6845 | if test $gl_cv_cc_vis_werror = yes; then | |
6846 | CFLAGS="$CFLAGS -Werror" | |
6847 | fi | |
6848 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6849 | /* end confdefs.h. */ | |
6850 | extern __attribute__((__visibility__("hidden"))) int hiddenvar; | |
6851 | extern __attribute__((__visibility__("default"))) int exportedvar; | |
6852 | extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void); | |
6853 | extern __attribute__((__visibility__("default"))) int exportedfunc (void); | |
6854 | void dummyfunc (void) {} | |
d1154eb4 | 6855 | |
93613951 TT |
6856 | int |
6857 | main () | |
6858 | { | |
d1154eb4 | 6859 | |
93613951 TT |
6860 | ; |
6861 | return 0; | |
6862 | } | |
6863 | _ACEOF | |
6864 | if ac_fn_c_try_compile "$LINENO"; then : | |
6865 | gl_cv_cc_visibility=yes | |
d1154eb4 | 6866 | else |
93613951 TT |
6867 | gl_cv_cc_visibility=no |
6868 | fi | |
6869 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6870 | CFLAGS="$gl_save_CFLAGS" | |
6871 | fi | |
d1154eb4 | 6872 | |
93613951 TT |
6873 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_visibility" >&5 |
6874 | $as_echo "$gl_cv_cc_visibility" >&6; } | |
6875 | if test $gl_cv_cc_visibility = yes; then | |
6876 | CFLAG_VISIBILITY="-fvisibility=hidden" | |
6877 | HAVE_VISIBILITY=1 | |
6878 | fi | |
d1154eb4 | 6879 | fi |
d1154eb4 | 6880 | |
d1154eb4 TT |
6881 | |
6882 | ||
93613951 TT |
6883 | cat >>confdefs.h <<_ACEOF |
6884 | #define HAVE_VISIBILITY $HAVE_VISIBILITY | |
6885 | _ACEOF | |
6886 | ||
6887 | ||
6888 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 | |
6889 | $as_echo_n "checking for inline... " >&6; } | |
6890 | if ${ac_cv_c_inline+:} false; then : | |
57aa50d4 TT |
6891 | $as_echo_n "(cached) " >&6 |
6892 | else | |
93613951 TT |
6893 | ac_cv_c_inline=no |
6894 | for ac_kw in inline __inline__ __inline; do | |
d1154eb4 TT |
6895 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
6896 | /* end confdefs.h. */ | |
93613951 TT |
6897 | #ifndef __cplusplus |
6898 | typedef int foo_t; | |
6899 | static $ac_kw foo_t static_foo () {return 0; } | |
6900 | $ac_kw foo_t foo () {return 0; } | |
6901 | #endif | |
d1154eb4 | 6902 | |
d1154eb4 TT |
6903 | _ACEOF |
6904 | if ac_fn_c_try_compile "$LINENO"; then : | |
93613951 | 6905 | ac_cv_c_inline=$ac_kw |
57aa50d4 | 6906 | fi |
d1154eb4 | 6907 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
93613951 TT |
6908 | test "$ac_cv_c_inline" != no && break |
6909 | done | |
d1154eb4 | 6910 | |
d1154eb4 | 6911 | fi |
93613951 TT |
6912 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 |
6913 | $as_echo "$ac_cv_c_inline" >&6; } | |
d1154eb4 | 6914 | |
93613951 TT |
6915 | case $ac_cv_c_inline in |
6916 | inline | yes) ;; | |
6917 | *) | |
6918 | case $ac_cv_c_inline in | |
6919 | no) ac_val=;; | |
6920 | *) ac_val=$ac_cv_c_inline;; | |
6921 | esac | |
6922 | cat >>confdefs.h <<_ACEOF | |
6923 | #ifndef __cplusplus | |
6924 | #define inline $ac_val | |
6925 | #endif | |
d1154eb4 | 6926 | _ACEOF |
93613951 TT |
6927 | ;; |
6928 | esac | |
d1154eb4 | 6929 | |
93613951 TT |
6930 | ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" |
6931 | if test "x$ac_cv_type_size_t" = xyes; then : | |
d1154eb4 | 6932 | |
57aa50d4 | 6933 | else |
d1154eb4 | 6934 | |
93613951 TT |
6935 | cat >>confdefs.h <<_ACEOF |
6936 | #define size_t unsigned int | |
d1154eb4 | 6937 | _ACEOF |
b0cacab0 | 6938 | |
57aa50d4 | 6939 | fi |
b0cacab0 TT |
6940 | |
6941 | ||
93613951 TT |
6942 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5 |
6943 | $as_echo_n "checking for stdint.h... " >&6; } | |
6944 | if ${gl_cv_header_stdint_h+:} false; then : | |
57aa50d4 | 6945 | $as_echo_n "(cached) " >&6 |
b0cacab0 | 6946 | else |
d1154eb4 | 6947 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
b0cacab0 | 6948 | /* end confdefs.h. */ |
93613951 TT |
6949 | #include <sys/types.h> |
6950 | #include <stdint.h> | |
a64c9c13 | 6951 | int |
b0cacab0 TT |
6952 | main () |
6953 | { | |
93613951 | 6954 | uintmax_t i = (uintmax_t) -1; return !i; |
d1154eb4 | 6955 | ; |
b0cacab0 | 6956 | return 0; |
a64c9c13 | 6957 | } |
b0cacab0 | 6958 | _ACEOF |
d1154eb4 | 6959 | if ac_fn_c_try_compile "$LINENO"; then : |
93613951 | 6960 | gl_cv_header_stdint_h=yes |
b0cacab0 | 6961 | else |
93613951 | 6962 | gl_cv_header_stdint_h=no |
b0cacab0 | 6963 | fi |
d1154eb4 | 6964 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
d1154eb4 | 6965 | fi |
93613951 TT |
6966 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_h" >&5 |
6967 | $as_echo "$gl_cv_header_stdint_h" >&6; } | |
6968 | if test $gl_cv_header_stdint_h = yes; then | |
b0cacab0 | 6969 | |
93613951 TT |
6970 | cat >>confdefs.h <<_ACEOF |
6971 | #define HAVE_STDINT_H_WITH_UINTMAX 1 | |
d1154eb4 | 6972 | _ACEOF |
b0cacab0 | 6973 | |
93613951 | 6974 | fi |
b0cacab0 | 6975 | |
93613951 TT |
6976 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works |
6977 | # for constant arguments. Useless! | |
6978 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5 | |
6979 | $as_echo_n "checking for working alloca.h... " >&6; } | |
6980 | if ${ac_cv_working_alloca_h+:} false; then : | |
39fd3d4f | 6981 | $as_echo_n "(cached) " >&6 |
a64c9c13 | 6982 | else |
57aa50d4 | 6983 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
b0cacab0 | 6984 | /* end confdefs.h. */ |
93613951 | 6985 | #include <alloca.h> |
57aa50d4 TT |
6986 | int |
6987 | main () | |
6988 | { | |
93613951 TT |
6989 | char *p = (char *) alloca (2 * sizeof (int)); |
6990 | if (p) return 0; | |
57aa50d4 TT |
6991 | ; |
6992 | return 0; | |
6993 | } | |
b0cacab0 | 6994 | _ACEOF |
93613951 TT |
6995 | if ac_fn_c_try_link "$LINENO"; then : |
6996 | ac_cv_working_alloca_h=yes | |
b0cacab0 | 6997 | else |
93613951 | 6998 | ac_cv_working_alloca_h=no |
57aa50d4 | 6999 | fi |
93613951 TT |
7000 | rm -f core conftest.err conftest.$ac_objext \ |
7001 | conftest$ac_exeext conftest.$ac_ext | |
57aa50d4 | 7002 | fi |
93613951 TT |
7003 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5 |
7004 | $as_echo "$ac_cv_working_alloca_h" >&6; } | |
7005 | if test $ac_cv_working_alloca_h = yes; then | |
57aa50d4 | 7006 | |
93613951 | 7007 | $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h |
57aa50d4 | 7008 | |
a64c9c13 | 7009 | fi |
b0cacab0 | 7010 | |
93613951 TT |
7011 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5 |
7012 | $as_echo_n "checking for alloca... " >&6; } | |
7013 | if ${ac_cv_func_alloca_works+:} false; then : | |
57aa50d4 | 7014 | $as_echo_n "(cached) " >&6 |
b0cacab0 | 7015 | else |
57aa50d4 | 7016 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
b0cacab0 | 7017 | /* end confdefs.h. */ |
93613951 TT |
7018 | #ifdef __GNUC__ |
7019 | # define alloca __builtin_alloca | |
7020 | #else | |
7021 | # ifdef _MSC_VER | |
7022 | # include <malloc.h> | |
7023 | # define alloca _alloca | |
7024 | # else | |
7025 | # ifdef HAVE_ALLOCA_H | |
7026 | # include <alloca.h> | |
7027 | # else | |
7028 | # ifdef _AIX | |
7029 | #pragma alloca | |
7030 | # else | |
7031 | # ifndef alloca /* predefined by HP cc +Olibcalls */ | |
7032 | void *alloca (size_t); | |
7033 | # endif | |
7034 | # endif | |
7035 | # endif | |
7036 | # endif | |
7037 | #endif | |
b0cacab0 | 7038 | |
57aa50d4 TT |
7039 | int |
7040 | main () | |
b0cacab0 | 7041 | { |
93613951 TT |
7042 | char *p = (char *) alloca (1); |
7043 | if (p) return 0; | |
57aa50d4 TT |
7044 | ; |
7045 | return 0; | |
b0cacab0 TT |
7046 | } |
7047 | _ACEOF | |
93613951 TT |
7048 | if ac_fn_c_try_link "$LINENO"; then : |
7049 | ac_cv_func_alloca_works=yes | |
b0cacab0 | 7050 | else |
93613951 | 7051 | ac_cv_func_alloca_works=no |
57aa50d4 | 7052 | fi |
93613951 TT |
7053 | rm -f core conftest.err conftest.$ac_objext \ |
7054 | conftest$ac_exeext conftest.$ac_ext | |
57aa50d4 | 7055 | fi |
93613951 TT |
7056 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5 |
7057 | $as_echo "$ac_cv_func_alloca_works" >&6; } | |
57aa50d4 | 7058 | |
93613951 | 7059 | if test $ac_cv_func_alloca_works = yes; then |
57aa50d4 | 7060 | |
93613951 | 7061 | $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h |
57aa50d4 | 7062 | |
b0cacab0 | 7063 | else |
93613951 TT |
7064 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions |
7065 | # that cause trouble. Some versions do not even contain alloca or | |
7066 | # contain a buggy version. If you still want to use their alloca, | |
7067 | # use ar to extract alloca.o from them instead of compiling alloca.c. | |
b0cacab0 | 7068 | |
93613951 | 7069 | ALLOCA=\${LIBOBJDIR}alloca.$ac_objext |
57aa50d4 | 7070 | |
93613951 | 7071 | $as_echo "#define C_ALLOCA 1" >>confdefs.h |
57aa50d4 | 7072 | |
57aa50d4 | 7073 | |
93613951 TT |
7074 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5 |
7075 | $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; } | |
7076 | if ${ac_cv_os_cray+:} false; then : | |
57aa50d4 TT |
7077 | $as_echo_n "(cached) " >&6 |
7078 | else | |
57aa50d4 TT |
7079 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7080 | /* end confdefs.h. */ | |
93613951 TT |
7081 | #if defined CRAY && ! defined CRAY2 |
7082 | webecray | |
7083 | #else | |
7084 | wenotbecray | |
57aa50d4 | 7085 | #endif |
b0cacab0 | 7086 | |
57aa50d4 | 7087 | _ACEOF |
93613951 TT |
7088 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
7089 | $EGREP "webecray" >/dev/null 2>&1; then : | |
7090 | ac_cv_os_cray=yes | |
7091 | else | |
7092 | ac_cv_os_cray=no | |
a64c9c13 | 7093 | fi |
93613951 | 7094 | rm -f conftest* |
d1154eb4 TT |
7095 | |
7096 | fi | |
93613951 TT |
7097 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5 |
7098 | $as_echo "$ac_cv_os_cray" >&6; } | |
7099 | if test $ac_cv_os_cray = yes; then | |
7100 | for ac_func in _getb67 GETB67 getb67; do | |
7101 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
7102 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
7103 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | |
e1052144 | 7104 | |
57aa50d4 | 7105 | cat >>confdefs.h <<_ACEOF |
93613951 | 7106 | #define CRAY_STACKSEG_END $ac_func |
57aa50d4 | 7107 | _ACEOF |
e1052144 | 7108 | |
93613951 | 7109 | break |
a64c9c13 | 7110 | fi |
07a0db15 | 7111 | |
93613951 | 7112 | done |
57aa50d4 | 7113 | fi |
b0cacab0 | 7114 | |
93613951 TT |
7115 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5 |
7116 | $as_echo_n "checking stack direction for C alloca... " >&6; } | |
7117 | if ${ac_cv_c_stack_direction+:} false; then : | |
39fd3d4f | 7118 | $as_echo_n "(cached) " >&6 |
93613951 TT |
7119 | else |
7120 | if test "$cross_compiling" = yes; then : | |
7121 | ac_cv_c_stack_direction=0 | |
b0cacab0 | 7122 | else |
57aa50d4 | 7123 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
b0cacab0 | 7124 | /* end confdefs.h. */ |
93613951 | 7125 | $ac_includes_default |
b0cacab0 | 7126 | int |
93613951 | 7127 | find_stack_direction (int *addr, int depth) |
b0cacab0 | 7128 | { |
93613951 TT |
7129 | int dir, dummy = 0; |
7130 | if (! addr) | |
7131 | addr = &dummy; | |
7132 | *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1; | |
7133 | dir = depth ? find_stack_direction (addr, depth - 1) : 0; | |
7134 | return dir + dummy; | |
b0cacab0 | 7135 | } |
93636bde | 7136 | |
b0cacab0 | 7137 | int |
93613951 | 7138 | main (int argc, char **argv) |
b0cacab0 | 7139 | { |
93613951 | 7140 | return find_stack_direction (0, argc + !argv + 20) < 0; |
b0cacab0 TT |
7141 | } |
7142 | _ACEOF | |
93613951 TT |
7143 | if ac_fn_c_try_run "$LINENO"; then : |
7144 | ac_cv_c_stack_direction=1 | |
a64c9c13 | 7145 | else |
93613951 | 7146 | ac_cv_c_stack_direction=-1 |
b0cacab0 | 7147 | fi |
93613951 TT |
7148 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
7149 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
b0cacab0 | 7150 | fi |
b0cacab0 | 7151 | |
93613951 TT |
7152 | fi |
7153 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5 | |
7154 | $as_echo "$ac_cv_c_stack_direction" >&6; } | |
7155 | cat >>confdefs.h <<_ACEOF | |
7156 | #define STACK_DIRECTION $ac_cv_c_stack_direction | |
7157 | _ACEOF | |
57aa50d4 | 7158 | |
b0cacab0 | 7159 | |
57aa50d4 | 7160 | fi |
b0cacab0 | 7161 | |
57aa50d4 TT |
7162 | |
7163 | ||
b0cacab0 | 7164 | |
93613951 TT |
7165 | for ac_header in $ac_header_list |
7166 | do : | |
7167 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
7168 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default | |
7169 | " | |
7170 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
7171 | cat >>confdefs.h <<_ACEOF | |
7172 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
b0cacab0 | 7173 | _ACEOF |
93613951 | 7174 | |
a64c9c13 | 7175 | fi |
07a0db15 | 7176 | |
93613951 | 7177 | done |
a64c9c13 | 7178 | |
a64c9c13 | 7179 | |
b0cacab0 | 7180 | |
b0cacab0 | 7181 | |
a04eba3f | 7182 | |
a04eba3f | 7183 | |
b0cacab0 | 7184 | |
b0cacab0 | 7185 | |
93613951 TT |
7186 | for ac_func in getpagesize |
7187 | do : | |
7188 | ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize" | |
7189 | if test "x$ac_cv_func_getpagesize" = xyes; then : | |
7190 | cat >>confdefs.h <<_ACEOF | |
7191 | #define HAVE_GETPAGESIZE 1 | |
b0cacab0 TT |
7192 | _ACEOF |
7193 | ||
93613951 TT |
7194 | fi |
7195 | done | |
b0cacab0 | 7196 | |
93613951 TT |
7197 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5 |
7198 | $as_echo_n "checking for working mmap... " >&6; } | |
7199 | if ${ac_cv_func_mmap_fixed_mapped+:} false; then : | |
39fd3d4f | 7200 | $as_echo_n "(cached) " >&6 |
93613951 TT |
7201 | else |
7202 | if test "$cross_compiling" = yes; then : | |
7203 | ac_cv_func_mmap_fixed_mapped=no | |
b0cacab0 | 7204 | else |
57aa50d4 | 7205 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
b0cacab0 | 7206 | /* end confdefs.h. */ |
93613951 TT |
7207 | $ac_includes_default |
7208 | /* malloc might have been renamed as rpl_malloc. */ | |
7209 | #undef malloc | |
57aa50d4 | 7210 | |
93613951 TT |
7211 | /* Thanks to Mike Haertel and Jim Avera for this test. |
7212 | Here is a matrix of mmap possibilities: | |
7213 | mmap private not fixed | |
7214 | mmap private fixed at somewhere currently unmapped | |
7215 | mmap private fixed at somewhere already mapped | |
7216 | mmap shared not fixed | |
7217 | mmap shared fixed at somewhere currently unmapped | |
7218 | mmap shared fixed at somewhere already mapped | |
7219 | For private mappings, we should verify that changes cannot be read() | |
7220 | back from the file, nor mmap's back from the file at a different | |
7221 | address. (There have been systems where private was not correctly | |
7222 | implemented like the infamous i386 svr4.0, and systems where the | |
7223 | VM page cache was not coherent with the file system buffer cache | |
7224 | like early versions of FreeBSD and possibly contemporary NetBSD.) | |
7225 | For shared mappings, we should conversely verify that changes get | |
7226 | propagated back to all the places they're supposed to be. | |
7227 | ||
7228 | Grep wants private fixed already mapped. | |
7229 | The main things grep needs to know about mmap are: | |
7230 | * does it exist and is it safe to write into the mmap'd area | |
7231 | * how to use it (BSD variants) */ | |
7232 | ||
7233 | #include <fcntl.h> | |
7234 | #include <sys/mman.h> | |
7235 | ||
7236 | #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H | |
7237 | char *malloc (); | |
57aa50d4 TT |
7238 | #endif |
7239 | ||
93613951 TT |
7240 | /* This mess was copied from the GNU getpagesize.h. */ |
7241 | #ifndef HAVE_GETPAGESIZE | |
7242 | # ifdef _SC_PAGESIZE | |
7243 | # define getpagesize() sysconf(_SC_PAGESIZE) | |
7244 | # else /* no _SC_PAGESIZE */ | |
7245 | # ifdef HAVE_SYS_PARAM_H | |
7246 | # include <sys/param.h> | |
7247 | # ifdef EXEC_PAGESIZE | |
7248 | # define getpagesize() EXEC_PAGESIZE | |
7249 | # else /* no EXEC_PAGESIZE */ | |
7250 | # ifdef NBPG | |
7251 | # define getpagesize() NBPG * CLSIZE | |
7252 | # ifndef CLSIZE | |
7253 | # define CLSIZE 1 | |
7254 | # endif /* no CLSIZE */ | |
7255 | # else /* no NBPG */ | |
7256 | # ifdef NBPC | |
7257 | # define getpagesize() NBPC | |
7258 | # else /* no NBPC */ | |
7259 | # ifdef PAGESIZE | |
7260 | # define getpagesize() PAGESIZE | |
7261 | # endif /* PAGESIZE */ | |
7262 | # endif /* no NBPC */ | |
7263 | # endif /* no NBPG */ | |
7264 | # endif /* no EXEC_PAGESIZE */ | |
7265 | # else /* no HAVE_SYS_PARAM_H */ | |
7266 | # define getpagesize() 8192 /* punt totally */ | |
7267 | # endif /* no HAVE_SYS_PARAM_H */ | |
7268 | # endif /* no _SC_PAGESIZE */ | |
7269 | ||
7270 | #endif /* no HAVE_GETPAGESIZE */ | |
7271 | ||
57aa50d4 TT |
7272 | int |
7273 | main () | |
7274 | { | |
93613951 TT |
7275 | char *data, *data2, *data3; |
7276 | const char *cdata2; | |
7277 | int i, pagesize; | |
7278 | int fd, fd2; | |
7279 | ||
7280 | pagesize = getpagesize (); | |
7281 | ||
7282 | /* First, make a file with some known garbage in it. */ | |
7283 | data = (char *) malloc (pagesize); | |
7284 | if (!data) | |
7285 | return 1; | |
7286 | for (i = 0; i < pagesize; ++i) | |
7287 | *(data + i) = rand (); | |
7288 | umask (0); | |
7289 | fd = creat ("conftest.mmap", 0600); | |
7290 | if (fd < 0) | |
7291 | return 2; | |
7292 | if (write (fd, data, pagesize) != pagesize) | |
7293 | return 3; | |
7294 | close (fd); | |
7295 | ||
7296 | /* Next, check that the tail of a page is zero-filled. File must have | |
7297 | non-zero length, otherwise we risk SIGBUS for entire page. */ | |
7298 | fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600); | |
7299 | if (fd2 < 0) | |
7300 | return 4; | |
7301 | cdata2 = ""; | |
7302 | if (write (fd2, cdata2, 1) != 1) | |
7303 | return 5; | |
7304 | data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L); | |
7305 | if (data2 == MAP_FAILED) | |
7306 | return 6; | |
7307 | for (i = 0; i < pagesize; ++i) | |
7308 | if (*(data2 + i)) | |
7309 | return 7; | |
7310 | close (fd2); | |
7311 | if (munmap (data2, pagesize)) | |
7312 | return 8; | |
7313 | ||
7314 | /* Next, try to mmap the file at a fixed address which already has | |
7315 | something else allocated at it. If we can, also make sure that | |
7316 | we see the same garbage. */ | |
7317 | fd = open ("conftest.mmap", O_RDWR); | |
7318 | if (fd < 0) | |
7319 | return 9; | |
7320 | if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, | |
7321 | MAP_PRIVATE | MAP_FIXED, fd, 0L)) | |
7322 | return 10; | |
7323 | for (i = 0; i < pagesize; ++i) | |
7324 | if (*(data + i) != *(data2 + i)) | |
7325 | return 11; | |
7326 | ||
7327 | /* Finally, make sure that changes to the mapped area do not | |
7328 | percolate back to the file as seen by read(). (This is a bug on | |
7329 | some variants of i386 svr4.0.) */ | |
7330 | for (i = 0; i < pagesize; ++i) | |
7331 | *(data2 + i) = *(data2 + i) + 1; | |
7332 | data3 = (char *) malloc (pagesize); | |
7333 | if (!data3) | |
7334 | return 12; | |
7335 | if (read (fd, data3, pagesize) != pagesize) | |
7336 | return 13; | |
7337 | for (i = 0; i < pagesize; ++i) | |
7338 | if (*(data + i) != *(data3 + i)) | |
7339 | return 14; | |
7340 | close (fd); | |
a2df5894 DW |
7341 | free (data); |
7342 | free (data3); | |
57aa50d4 TT |
7343 | return 0; |
7344 | } | |
b0cacab0 | 7345 | _ACEOF |
93613951 TT |
7346 | if ac_fn_c_try_run "$LINENO"; then : |
7347 | ac_cv_func_mmap_fixed_mapped=yes | |
b0cacab0 | 7348 | else |
93613951 | 7349 | ac_cv_func_mmap_fixed_mapped=no |
b0cacab0 | 7350 | fi |
93613951 TT |
7351 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
7352 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
57aa50d4 | 7353 | fi |
b0cacab0 | 7354 | |
93613951 TT |
7355 | fi |
7356 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5 | |
7357 | $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; } | |
7358 | if test $ac_cv_func_mmap_fixed_mapped = yes; then | |
b0cacab0 | 7359 | |
93613951 | 7360 | $as_echo "#define HAVE_MMAP 1" >>confdefs.h |
e1052144 | 7361 | |
93613951 TT |
7362 | fi |
7363 | rm -f conftest.mmap conftest.txt | |
b0cacab0 | 7364 | |
e1052144 | 7365 | |
93613951 TT |
7366 | |
7367 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether integer division by zero raises SIGFPE" >&5 | |
7368 | $as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; } | |
7369 | if ${gt_cv_int_divbyzero_sigfpe+:} false; then : | |
39fd3d4f | 7370 | $as_echo_n "(cached) " >&6 |
b0cacab0 | 7371 | else |
b0cacab0 | 7372 | |
93613951 TT |
7373 | gt_cv_int_divbyzero_sigfpe= |
7374 | case "$host_os" in | |
7375 | macos* | darwin[6-9]* | darwin[1-9][0-9]*) | |
7376 | # On Mac OS X 10.2 or newer, just assume the same as when cross- | |
7377 | # compiling. If we were to perform the real test, 1 Crash Report | |
7378 | # dialog window would pop up. | |
7379 | case "$host_cpu" in | |
7380 | i[34567]86 | x86_64) | |
7381 | gt_cv_int_divbyzero_sigfpe="guessing yes" ;; | |
7382 | esac | |
7383 | ;; | |
7384 | esac | |
7385 | if test -z "$gt_cv_int_divbyzero_sigfpe"; then | |
7386 | if test "$cross_compiling" = yes; then : | |
7387 | ||
7388 | # Guess based on the CPU. | |
7389 | case "$host_cpu" in | |
7390 | alpha* | i[34567]86 | x86_64 | m68k | s390*) | |
7391 | gt_cv_int_divbyzero_sigfpe="guessing yes";; | |
7392 | *) | |
7393 | gt_cv_int_divbyzero_sigfpe="guessing no";; | |
7394 | esac | |
57aa50d4 | 7395 | |
93613951 TT |
7396 | else |
7397 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
57aa50d4 TT |
7398 | /* end confdefs.h. */ |
7399 | ||
93613951 TT |
7400 | #include <stdlib.h> |
7401 | #include <signal.h> | |
b0cacab0 | 7402 | |
93613951 TT |
7403 | static void |
7404 | sigfpe_handler (int sig) | |
7405 | { | |
7406 | /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */ | |
7407 | exit (sig != SIGFPE); | |
7408 | } | |
b0cacab0 | 7409 | |
93613951 TT |
7410 | int x = 1; |
7411 | int y = 0; | |
7412 | int z; | |
7413 | int nan; | |
b0cacab0 | 7414 | |
57aa50d4 TT |
7415 | int main () |
7416 | { | |
93613951 TT |
7417 | signal (SIGFPE, sigfpe_handler); |
7418 | /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */ | |
7419 | #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP) | |
7420 | signal (SIGTRAP, sigfpe_handler); | |
7421 | #endif | |
7422 | /* Linux/SPARC yields signal SIGILL. */ | |
7423 | #if defined (__sparc__) && defined (__linux__) | |
7424 | signal (SIGILL, sigfpe_handler); | |
7425 | #endif | |
7426 | ||
7427 | z = x / y; | |
7428 | nan = y / y; | |
7429 | exit (2); | |
57aa50d4 | 7430 | } |
93613951 | 7431 | |
57aa50d4 TT |
7432 | _ACEOF |
7433 | if ac_fn_c_try_run "$LINENO"; then : | |
93613951 | 7434 | gt_cv_int_divbyzero_sigfpe=yes |
57aa50d4 | 7435 | else |
93613951 | 7436 | gt_cv_int_divbyzero_sigfpe=no |
57aa50d4 TT |
7437 | fi |
7438 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
7439 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
7440 | fi | |
7441 | ||
93613951 | 7442 | fi |
57aa50d4 TT |
7443 | |
7444 | fi | |
93613951 TT |
7445 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_int_divbyzero_sigfpe" >&5 |
7446 | $as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; } | |
7447 | case "$gt_cv_int_divbyzero_sigfpe" in | |
7448 | *yes) value=1;; | |
7449 | *) value=0;; | |
7450 | esac | |
57aa50d4 | 7451 | |
93613951 TT |
7452 | cat >>confdefs.h <<_ACEOF |
7453 | #define INTDIV0_RAISES_SIGFPE $value | |
7454 | _ACEOF | |
57aa50d4 | 7455 | |
57aa50d4 | 7456 | |
93613951 TT |
7457 | |
7458 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5 | |
7459 | $as_echo_n "checking for inttypes.h... " >&6; } | |
7460 | if ${gl_cv_header_inttypes_h+:} false; then : | |
39fd3d4f | 7461 | $as_echo_n "(cached) " >&6 |
b0cacab0 | 7462 | else |
57aa50d4 | 7463 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
b0cacab0 | 7464 | /* end confdefs.h. */ |
93613951 TT |
7465 | |
7466 | #include <sys/types.h> | |
7467 | #include <inttypes.h> | |
7468 | ||
57aa50d4 TT |
7469 | int |
7470 | main () | |
7471 | { | |
93613951 | 7472 | uintmax_t i = (uintmax_t) -1; return !i; |
57aa50d4 TT |
7473 | ; |
7474 | return 0; | |
7475 | } | |
7476 | _ACEOF | |
93613951 TT |
7477 | if ac_fn_c_try_compile "$LINENO"; then : |
7478 | gl_cv_header_inttypes_h=yes | |
57aa50d4 | 7479 | else |
93613951 | 7480 | gl_cv_header_inttypes_h=no |
57aa50d4 | 7481 | fi |
93613951 | 7482 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
57aa50d4 | 7483 | fi |
93613951 TT |
7484 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_inttypes_h" >&5 |
7485 | $as_echo "$gl_cv_header_inttypes_h" >&6; } | |
7486 | if test $gl_cv_header_inttypes_h = yes; then | |
b0cacab0 | 7487 | |
93613951 TT |
7488 | cat >>confdefs.h <<_ACEOF |
7489 | #define HAVE_INTTYPES_H_WITH_UINTMAX 1 | |
7490 | _ACEOF | |
b0cacab0 | 7491 | |
93613951 | 7492 | fi |
57aa50d4 | 7493 | |
93613951 TT |
7494 | |
7495 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5 | |
7496 | $as_echo_n "checking for unsigned long long int... " >&6; } | |
7497 | if ${ac_cv_type_unsigned_long_long_int+:} false; then : | |
57aa50d4 TT |
7498 | $as_echo_n "(cached) " >&6 |
7499 | else | |
93613951 TT |
7500 | ac_cv_type_unsigned_long_long_int=yes |
7501 | if test "x${ac_cv_prog_cc_c99-no}" = xno; then | |
7502 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
57aa50d4 | 7503 | /* end confdefs.h. */ |
b0cacab0 | 7504 | |
93613951 TT |
7505 | /* For now, do not test the preprocessor; as of 2007 there are too many |
7506 | implementations with broken preprocessors. Perhaps this can | |
7507 | be revisited in 2012. In the meantime, code should not expect | |
7508 | #if to work with literals wider than 32 bits. */ | |
7509 | /* Test literals. */ | |
7510 | long long int ll = 9223372036854775807ll; | |
7511 | long long int nll = -9223372036854775807LL; | |
7512 | unsigned long long int ull = 18446744073709551615ULL; | |
7513 | /* Test constant expressions. */ | |
7514 | typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll) | |
7515 | ? 1 : -1)]; | |
7516 | typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1 | |
7517 | ? 1 : -1)]; | |
7518 | int i = 63; | |
57aa50d4 TT |
7519 | int |
7520 | main () | |
7521 | { | |
93613951 TT |
7522 | /* Test availability of runtime routines for shift and division. */ |
7523 | long long int llmax = 9223372036854775807ll; | |
7524 | unsigned long long int ullmax = 18446744073709551615ull; | |
7525 | return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i) | |
7526 | | (llmax / ll) | (llmax % ll) | |
7527 | | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i) | |
7528 | | (ullmax / ull) | (ullmax % ull)); | |
57aa50d4 TT |
7529 | ; |
7530 | return 0; | |
7531 | } | |
93613951 | 7532 | |
57aa50d4 TT |
7533 | _ACEOF |
7534 | if ac_fn_c_try_link "$LINENO"; then : | |
93613951 | 7535 | |
57aa50d4 | 7536 | else |
93613951 | 7537 | ac_cv_type_unsigned_long_long_int=no |
57aa50d4 TT |
7538 | fi |
7539 | rm -f core conftest.err conftest.$ac_objext \ | |
7540 | conftest$ac_exeext conftest.$ac_ext | |
93613951 | 7541 | fi |
57aa50d4 | 7542 | fi |
93613951 TT |
7543 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5 |
7544 | $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; } | |
7545 | if test $ac_cv_type_unsigned_long_long_int = yes; then | |
b0cacab0 | 7546 | |
93613951 | 7547 | $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h |
57aa50d4 | 7548 | |
93613951 | 7549 | fi |
57aa50d4 | 7550 | |
57aa50d4 | 7551 | |
57aa50d4 | 7552 | |
57aa50d4 | 7553 | |
93613951 | 7554 | if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then |
57aa50d4 | 7555 | |
93613951 TT |
7556 | test $ac_cv_type_unsigned_long_long_int = yes \ |
7557 | && ac_type='unsigned long long' \ | |
7558 | || ac_type='unsigned long' | |
b0cacab0 | 7559 | |
93613951 TT |
7560 | cat >>confdefs.h <<_ACEOF |
7561 | #define uintmax_t $ac_type | |
57aa50d4 | 7562 | _ACEOF |
57aa50d4 | 7563 | |
93613951 | 7564 | else |
57aa50d4 | 7565 | |
93613951 TT |
7566 | $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h |
7567 | ||
7568 | fi | |
7569 | ||
7570 | ||
7571 | for ac_header in inttypes.h | |
7572 | do : | |
7573 | ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default" | |
7574 | if test "x$ac_cv_header_inttypes_h" = xyes; then : | |
7575 | cat >>confdefs.h <<_ACEOF | |
7576 | #define HAVE_INTTYPES_H 1 | |
57aa50d4 TT |
7577 | _ACEOF |
7578 | ||
57aa50d4 TT |
7579 | fi |
7580 | ||
93613951 | 7581 | done |
57aa50d4 | 7582 | |
93613951 TT |
7583 | if test $ac_cv_header_inttypes_h = yes; then |
7584 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5 | |
7585 | $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; } | |
7586 | if ${gt_cv_inttypes_pri_broken+:} false; then : | |
57aa50d4 TT |
7587 | $as_echo_n "(cached) " >&6 |
7588 | else | |
93613951 TT |
7589 | |
7590 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
57aa50d4 | 7591 | /* end confdefs.h. */ |
93613951 TT |
7592 | |
7593 | #include <inttypes.h> | |
7594 | #ifdef PRId32 | |
7595 | char *p = PRId32; | |
7596 | #endif | |
57aa50d4 | 7597 | |
b0cacab0 | 7598 | int |
93613951 | 7599 | main () |
b0cacab0 | 7600 | { |
93613951 TT |
7601 | |
7602 | ; | |
7603 | return 0; | |
b0cacab0 TT |
7604 | } |
7605 | _ACEOF | |
93613951 TT |
7606 | if ac_fn_c_try_compile "$LINENO"; then : |
7607 | gt_cv_inttypes_pri_broken=no | |
b0cacab0 | 7608 | else |
93613951 | 7609 | gt_cv_inttypes_pri_broken=yes |
57aa50d4 | 7610 | fi |
93613951 | 7611 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
57aa50d4 TT |
7612 | |
7613 | fi | |
93613951 TT |
7614 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5 |
7615 | $as_echo "$gt_cv_inttypes_pri_broken" >&6; } | |
7616 | fi | |
7617 | if test "$gt_cv_inttypes_pri_broken" = yes; then | |
7618 | ||
57aa50d4 | 7619 | cat >>confdefs.h <<_ACEOF |
93613951 | 7620 | #define PRI_MACROS_BROKEN 1 |
57aa50d4 TT |
7621 | _ACEOF |
7622 | ||
93613951 TT |
7623 | PRI_MACROS_BROKEN=1 |
7624 | else | |
7625 | PRI_MACROS_BROKEN=0 | |
7626 | fi | |
b0cacab0 | 7627 | |
e1052144 | 7628 | |
61ef2474 TT |
7629 | |
7630 | ||
7631 | ||
61ef2474 | 7632 | |
93613951 TT |
7633 | |
7634 | # Check whether --enable-threads was given. | |
7635 | if test "${enable_threads+set}" = set; then : | |
7636 | enableval=$enable_threads; gl_use_threads=$enableval | |
7637 | else | |
7638 | if test -n "$gl_use_threads_default"; then | |
7639 | gl_use_threads="$gl_use_threads_default" | |
7640 | else | |
7641 | case "$host_os" in | |
7642 | osf*) gl_use_threads=no ;; | |
7643 | cygwin*) | |
7644 | case `uname -r` in | |
7645 | 1.[0-5].*) gl_use_threads=no ;; | |
7646 | *) gl_use_threads=yes ;; | |
7647 | esac | |
7648 | ;; | |
7649 | *) gl_use_threads=yes ;; | |
7650 | esac | |
7651 | fi | |
57aa50d4 | 7652 | |
b0cacab0 | 7653 | fi |
57aa50d4 | 7654 | |
93613951 TT |
7655 | if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then |
7656 | # For using <pthread.h>: | |
7657 | case "$host_os" in | |
7658 | osf*) | |
7659 | # On OSF/1, the compiler needs the flag -D_REENTRANT so that it | |
7660 | # groks <pthread.h>. cc also understands the flag -pthread, but | |
7661 | # we don't use it because 1. gcc-2.95 doesn't understand -pthread, | |
7662 | # 2. putting a flag into CPPFLAGS that has an effect on the linker | |
7663 | # causes the AC_LINK_IFELSE test below to succeed unexpectedly, | |
7664 | # leading to wrong values of LIBTHREAD and LTLIBTHREAD. | |
7665 | CPPFLAGS="$CPPFLAGS -D_REENTRANT" | |
7666 | ;; | |
7667 | esac | |
7668 | # Some systems optimize for single-threaded programs by default, and | |
7669 | # need special flags to disable these optimizations. For example, the | |
7670 | # definition of 'errno' in <errno.h>. | |
7671 | case "$host_os" in | |
7672 | aix* | freebsd*) CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE" ;; | |
7673 | solaris*) CPPFLAGS="$CPPFLAGS -D_REENTRANT" ;; | |
7674 | esac | |
7675 | fi | |
57aa50d4 | 7676 | |
61ef2474 TT |
7677 | |
7678 | ||
7679 | ||
7680 | ||
93613951 TT |
7681 | if test "X$prefix" = "XNONE"; then |
7682 | acl_final_prefix="$ac_default_prefix" | |
7683 | else | |
7684 | acl_final_prefix="$prefix" | |
7685 | fi | |
7686 | if test "X$exec_prefix" = "XNONE"; then | |
7687 | acl_final_exec_prefix='${prefix}' | |
7688 | else | |
7689 | acl_final_exec_prefix="$exec_prefix" | |
7690 | fi | |
7691 | acl_save_prefix="$prefix" | |
7692 | prefix="$acl_final_prefix" | |
7693 | eval acl_final_exec_prefix=\"$acl_final_exec_prefix\" | |
7694 | prefix="$acl_save_prefix" | |
61ef2474 TT |
7695 | |
7696 | ||
7697 | ||
93613951 TT |
7698 | # Check whether --with-gnu-ld was given. |
7699 | if test "${with_gnu_ld+set}" = set; then : | |
7700 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes | |
7701 | else | |
7702 | with_gnu_ld=no | |
7703 | fi | |
b0cacab0 | 7704 | |
93613951 TT |
7705 | # Prepare PATH_SEPARATOR. |
7706 | # The user is always right. | |
7707 | if test "${PATH_SEPARATOR+set}" != set; then | |
7708 | # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which | |
7709 | # contains only /bin. Note that ksh looks also at the FPATH variable, | |
7710 | # so we have to set that as well for the test. | |
7711 | PATH_SEPARATOR=: | |
7712 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ | |
7713 | && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ | |
7714 | || PATH_SEPARATOR=';' | |
7715 | } | |
b0cacab0 | 7716 | fi |
b0cacab0 | 7717 | |
93613951 TT |
7718 | ac_prog=ld |
7719 | if test "$GCC" = yes; then | |
7720 | # Check if gcc -print-prog-name=ld gives a path. | |
7721 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 | |
7722 | $as_echo_n "checking for ld used by $CC... " >&6; } | |
7723 | case $host in | |
7724 | *-*-mingw*) | |
7725 | # gcc leaves a trailing carriage return which upsets mingw | |
7726 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | |
7727 | *) | |
7728 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | |
7729 | esac | |
7730 | case $ac_prog in | |
7731 | # Accept absolute paths. | |
7732 | [\\/]* | ?:[\\/]*) | |
7733 | re_direlt='/[^/][^/]*/\.\./' | |
7734 | # Canonicalize the pathname of ld | |
7735 | ac_prog=`echo "$ac_prog"| sed 's%\\\\%/%g'` | |
7736 | while echo "$ac_prog" | grep "$re_direlt" > /dev/null 2>&1; do | |
7737 | ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` | |
7738 | done | |
7739 | test -z "$LD" && LD="$ac_prog" | |
7740 | ;; | |
7741 | "") | |
7742 | # If it fails, then pretend we aren't using GCC. | |
7743 | ac_prog=ld | |
7744 | ;; | |
7745 | *) | |
7746 | # If it is relative, then search for the first ld in PATH. | |
7747 | with_gnu_ld=unknown | |
7748 | ;; | |
7749 | esac | |
7750 | elif test "$with_gnu_ld" = yes; then | |
7751 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 | |
7752 | $as_echo_n "checking for GNU ld... " >&6; } | |
b0cacab0 | 7753 | else |
93613951 TT |
7754 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 |
7755 | $as_echo_n "checking for non-GNU ld... " >&6; } | |
7756 | fi | |
7757 | if ${acl_cv_path_LD+:} false; then : | |
7758 | $as_echo_n "(cached) " >&6 | |
b0cacab0 | 7759 | else |
93613951 TT |
7760 | if test -z "$LD"; then |
7761 | acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
7762 | for ac_dir in $PATH; do | |
7763 | IFS="$acl_save_ifs" | |
7764 | test -z "$ac_dir" && ac_dir=. | |
7765 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | |
7766 | acl_cv_path_LD="$ac_dir/$ac_prog" | |
7767 | # Check to see if the program is GNU ld. I'd rather use --version, | |
7768 | # but apparently some variants of GNU ld only accept -v. | |
7769 | # Break only if it was the GNU/non-GNU ld that we prefer. | |
7770 | case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in | |
7771 | *GNU* | *'with BFD'*) | |
7772 | test "$with_gnu_ld" != no && break | |
7773 | ;; | |
7774 | *) | |
7775 | test "$with_gnu_ld" != yes && break | |
7776 | ;; | |
7777 | esac | |
7778 | fi | |
7779 | done | |
7780 | IFS="$acl_save_ifs" | |
7781 | else | |
7782 | acl_cv_path_LD="$LD" # Let the user override the test with a path. | |
7783 | fi | |
7784 | fi | |
b0cacab0 | 7785 | |
93613951 TT |
7786 | LD="$acl_cv_path_LD" |
7787 | if test -n "$LD"; then | |
7788 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 | |
7789 | $as_echo "$LD" >&6; } | |
7790 | else | |
7791 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7792 | $as_echo "no" >&6; } | |
7793 | fi | |
7794 | test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 | |
7795 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 | |
7796 | $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } | |
7797 | if ${acl_cv_prog_gnu_ld+:} false; then : | |
7798 | $as_echo_n "(cached) " >&6 | |
7799 | else | |
7800 | # I'd rather use --version here, but apparently some GNU lds only accept -v. | |
7801 | case `$LD -v 2>&1 </dev/null` in | |
7802 | *GNU* | *'with BFD'*) | |
7803 | acl_cv_prog_gnu_ld=yes | |
7804 | ;; | |
7805 | *) | |
7806 | acl_cv_prog_gnu_ld=no | |
7807 | ;; | |
7808 | esac | |
7809 | fi | |
7810 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5 | |
7811 | $as_echo "$acl_cv_prog_gnu_ld" >&6; } | |
7812 | with_gnu_ld=$acl_cv_prog_gnu_ld | |
b0cacab0 | 7813 | |
b0cacab0 | 7814 | |
b0cacab0 | 7815 | |
b0cacab0 | 7816 | |
93613951 TT |
7817 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5 |
7818 | $as_echo_n "checking for shared library run path origin... " >&6; } | |
7819 | if ${acl_cv_rpath+:} false; then : | |
7820 | $as_echo_n "(cached) " >&6 | |
7821 | else | |
61ef2474 | 7822 | |
93613951 TT |
7823 | CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \ |
7824 | ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh | |
7825 | . ./conftest.sh | |
7826 | rm -f ./conftest.sh | |
7827 | acl_cv_rpath=done | |
b0cacab0 | 7828 | |
b0cacab0 | 7829 | fi |
93613951 TT |
7830 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5 |
7831 | $as_echo "$acl_cv_rpath" >&6; } | |
7832 | wl="$acl_cv_wl" | |
7833 | acl_libext="$acl_cv_libext" | |
7834 | acl_shlibext="$acl_cv_shlibext" | |
7835 | acl_libname_spec="$acl_cv_libname_spec" | |
7836 | acl_library_names_spec="$acl_cv_library_names_spec" | |
7837 | acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec" | |
7838 | acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator" | |
7839 | acl_hardcode_direct="$acl_cv_hardcode_direct" | |
7840 | acl_hardcode_minus_L="$acl_cv_hardcode_minus_L" | |
7841 | # Check whether --enable-rpath was given. | |
7842 | if test "${enable_rpath+set}" = set; then : | |
7843 | enableval=$enable_rpath; : | |
7844 | else | |
7845 | enable_rpath=yes | |
b0cacab0 | 7846 | fi |
b0cacab0 | 7847 | |
b0cacab0 | 7848 | |
b0cacab0 TT |
7849 | |
7850 | ||
93613951 TT |
7851 | acl_libdirstem=lib |
7852 | acl_libdirstem2= | |
7853 | case "$host_os" in | |
7854 | solaris*) | |
7855 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5 | |
7856 | $as_echo_n "checking for 64-bit host... " >&6; } | |
7857 | if ${gl_cv_solaris_64bit+:} false; then : | |
39fd3d4f | 7858 | $as_echo_n "(cached) " >&6 |
b0cacab0 | 7859 | else |
57aa50d4 | 7860 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
b0cacab0 TT |
7861 | /* end confdefs.h. */ |
7862 | ||
93613951 TT |
7863 | #ifdef _LP64 |
7864 | sixtyfour bits | |
b0cacab0 TT |
7865 | #endif |
7866 | ||
7867 | _ACEOF | |
7868 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
93613951 TT |
7869 | $EGREP "sixtyfour bits" >/dev/null 2>&1; then : |
7870 | gl_cv_solaris_64bit=yes | |
b0cacab0 | 7871 | else |
93613951 | 7872 | gl_cv_solaris_64bit=no |
b0cacab0 TT |
7873 | fi |
7874 | rm -f conftest* | |
7875 | ||
7876 | ||
b0cacab0 | 7877 | fi |
93613951 TT |
7878 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5 |
7879 | $as_echo "$gl_cv_solaris_64bit" >&6; } | |
7880 | if test $gl_cv_solaris_64bit = yes; then | |
7881 | acl_libdirstem=lib/64 | |
7882 | case "$host_cpu" in | |
7883 | sparc*) acl_libdirstem2=lib/sparcv9 ;; | |
7884 | i*86 | x86_64) acl_libdirstem2=lib/amd64 ;; | |
7885 | esac | |
7886 | fi | |
7887 | ;; | |
7888 | *) | |
7889 | searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'` | |
7890 | if test -n "$searchpath"; then | |
7891 | acl_save_IFS="${IFS= }"; IFS=":" | |
7892 | for searchdir in $searchpath; do | |
7893 | if test -d "$searchdir"; then | |
7894 | case "$searchdir" in | |
7895 | */lib64/ | */lib64 ) acl_libdirstem=lib64 ;; | |
7896 | */../ | */.. ) | |
7897 | # Better ignore directories of this form. They are misleading. | |
7898 | ;; | |
7899 | *) searchdir=`cd "$searchdir" && pwd` | |
7900 | case "$searchdir" in | |
7901 | */lib64 ) acl_libdirstem=lib64 ;; | |
7902 | esac ;; | |
7903 | esac | |
7904 | fi | |
7905 | done | |
7906 | IFS="$acl_save_IFS" | |
7907 | fi | |
7908 | ;; | |
7909 | esac | |
7910 | test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem" | |
b0cacab0 TT |
7911 | |
7912 | ||
7913 | ||
93613951 TT |
7914 | gl_threads_api=none |
7915 | LIBTHREAD= | |
7916 | LTLIBTHREAD= | |
7917 | LIBMULTITHREAD= | |
7918 | LTLIBMULTITHREAD= | |
7919 | if test "$gl_use_threads" != no; then | |
7920 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether imported symbols can be declared weak" >&5 | |
7921 | $as_echo_n "checking whether imported symbols can be declared weak... " >&6; } | |
7922 | if ${gl_cv_have_weak+:} false; then : | |
39fd3d4f | 7923 | $as_echo_n "(cached) " >&6 |
b0cacab0 | 7924 | else |
93613951 TT |
7925 | gl_cv_have_weak=no |
7926 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
b0cacab0 | 7927 | /* end confdefs.h. */ |
93613951 TT |
7928 | extern void xyzzy (); |
7929 | #pragma weak xyzzy | |
7930 | int | |
7931 | main () | |
b0cacab0 | 7932 | { |
93613951 TT |
7933 | xyzzy(); |
7934 | ; | |
7935 | return 0; | |
b0cacab0 | 7936 | } |
93613951 TT |
7937 | _ACEOF |
7938 | if ac_fn_c_try_link "$LINENO"; then : | |
7939 | gl_cv_have_weak=maybe | |
7940 | fi | |
7941 | rm -f core conftest.err conftest.$ac_objext \ | |
7942 | conftest$ac_exeext conftest.$ac_ext | |
7943 | if test $gl_cv_have_weak = maybe; then | |
7944 | if test "$cross_compiling" = yes; then : | |
7945 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7946 | /* end confdefs.h. */ | |
7947 | #ifdef __ELF__ | |
7948 | Extensible Linking Format | |
7949 | #endif | |
b0cacab0 | 7950 | |
93613951 TT |
7951 | _ACEOF |
7952 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
7953 | $EGREP "Extensible Linking Format" >/dev/null 2>&1; then : | |
7954 | gl_cv_have_weak="guessing yes" | |
7955 | else | |
7956 | gl_cv_have_weak="guessing no" | |
7957 | fi | |
7958 | rm -f conftest* | |
b0cacab0 | 7959 | |
b0cacab0 TT |
7960 | |
7961 | else | |
57aa50d4 | 7962 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
b0cacab0 | 7963 | /* end confdefs.h. */ |
b0cacab0 | 7964 | |
93613951 TT |
7965 | #include <stdio.h> |
7966 | #pragma weak fputs | |
b0cacab0 | 7967 | int main () |
a04eba3f | 7968 | { |
93613951 | 7969 | return (fputs == NULL); |
a04eba3f | 7970 | } |
b0cacab0 | 7971 | _ACEOF |
57aa50d4 | 7972 | if ac_fn_c_try_run "$LINENO"; then : |
93613951 | 7973 | gl_cv_have_weak=yes |
a64c9c13 | 7974 | else |
93613951 | 7975 | gl_cv_have_weak=no |
b0cacab0 | 7976 | fi |
57aa50d4 TT |
7977 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
7978 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
b0cacab0 TT |
7979 | fi |
7980 | ||
93613951 | 7981 | fi |
e1052144 | 7982 | |
b0cacab0 | 7983 | fi |
93613951 TT |
7984 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_weak" >&5 |
7985 | $as_echo "$gl_cv_have_weak" >&6; } | |
7986 | if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then | |
7987 | # On OSF/1, the compiler needs the flag -pthread or -D_REENTRANT so that | |
7988 | # it groks <pthread.h>. It's added above, in gl_THREADLIB_EARLY_BODY. | |
7989 | ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default" | |
7990 | if test "x$ac_cv_header_pthread_h" = xyes; then : | |
7991 | gl_have_pthread_h=yes | |
7992 | else | |
7993 | gl_have_pthread_h=no | |
7994 | fi | |
b0cacab0 TT |
7995 | |
7996 | ||
93613951 TT |
7997 | if test "$gl_have_pthread_h" = yes; then |
7998 | # Other possible tests: | |
7999 | # -lpthreads (FSU threads, PCthreads) | |
8000 | # -lgthreads | |
8001 | gl_have_pthread= | |
8002 | # Test whether both pthread_mutex_lock and pthread_mutexattr_init exist | |
8003 | # in libc. IRIX 6.5 has the first one in both libc and libpthread, but | |
8004 | # the second one only in libpthread, and lock.c needs it. | |
8005 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
b0cacab0 | 8006 | /* end confdefs.h. */ |
93613951 | 8007 | #include <pthread.h> |
b0cacab0 TT |
8008 | int |
8009 | main () | |
8010 | { | |
93613951 TT |
8011 | pthread_mutex_lock((pthread_mutex_t*)0); |
8012 | pthread_mutexattr_init((pthread_mutexattr_t*)0); | |
b0cacab0 TT |
8013 | ; |
8014 | return 0; | |
8015 | } | |
8016 | _ACEOF | |
57aa50d4 | 8017 | if ac_fn_c_try_link "$LINENO"; then : |
93613951 | 8018 | gl_have_pthread=yes |
b0cacab0 | 8019 | fi |
57aa50d4 TT |
8020 | rm -f core conftest.err conftest.$ac_objext \ |
8021 | conftest$ac_exeext conftest.$ac_ext | |
93613951 TT |
8022 | # Test for libpthread by looking for pthread_kill. (Not pthread_self, |
8023 | # since it is defined as a macro on OSF/1.) | |
8024 | if test -n "$gl_have_pthread"; then | |
8025 | # The program links fine without libpthread. But it may actually | |
8026 | # need to link with libpthread in order to create multiple threads. | |
8027 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5 | |
8028 | $as_echo_n "checking for pthread_kill in -lpthread... " >&6; } | |
8029 | if ${ac_cv_lib_pthread_pthread_kill+:} false; then : | |
39fd3d4f | 8030 | $as_echo_n "(cached) " >&6 |
b0cacab0 | 8031 | else |
93613951 TT |
8032 | ac_check_lib_save_LIBS=$LIBS |
8033 | LIBS="-lpthread $LIBS" | |
8034 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
b0cacab0 | 8035 | /* end confdefs.h. */ |
93613951 TT |
8036 | |
8037 | /* Override any GCC internal prototype to avoid an error. | |
8038 | Use char because int might match the return type of a GCC | |
8039 | builtin and then its argument prototype would still apply. */ | |
8040 | #ifdef __cplusplus | |
8041 | extern "C" | |
8042 | #endif | |
8043 | char pthread_kill (); | |
b0cacab0 TT |
8044 | int |
8045 | main () | |
8046 | { | |
93613951 | 8047 | return pthread_kill (); |
b0cacab0 TT |
8048 | ; |
8049 | return 0; | |
8050 | } | |
8051 | _ACEOF | |
93613951 TT |
8052 | if ac_fn_c_try_link "$LINENO"; then : |
8053 | ac_cv_lib_pthread_pthread_kill=yes | |
b0cacab0 | 8054 | else |
93613951 | 8055 | ac_cv_lib_pthread_pthread_kill=no |
b0cacab0 | 8056 | fi |
93613951 TT |
8057 | rm -f core conftest.err conftest.$ac_objext \ |
8058 | conftest$ac_exeext conftest.$ac_ext | |
8059 | LIBS=$ac_check_lib_save_LIBS | |
b0cacab0 | 8060 | fi |
93613951 TT |
8061 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5 |
8062 | $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; } | |
8063 | if test "x$ac_cv_lib_pthread_pthread_kill" = xyes; then : | |
8064 | LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread | |
8065 | # On Solaris and HP-UX, most pthread functions exist also in libc. | |
8066 | # Therefore pthread_in_use() needs to actually try to create a | |
8067 | # thread: pthread_create from libc will fail, whereas | |
8068 | # pthread_create will actually create a thread. | |
8069 | case "$host_os" in | |
8070 | solaris* | hpux*) | |
b0cacab0 | 8071 | |
93613951 | 8072 | $as_echo "#define PTHREAD_IN_USE_DETECTION_HARD 1" >>confdefs.h |
b0cacab0 | 8073 | |
93613951 | 8074 | esac |
b0cacab0 | 8075 | |
93613951 | 8076 | fi |
b0cacab0 | 8077 | |
93613951 TT |
8078 | else |
8079 | # Some library is needed. Try libpthread and libc_r. | |
8080 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5 | |
8081 | $as_echo_n "checking for pthread_kill in -lpthread... " >&6; } | |
8082 | if ${ac_cv_lib_pthread_pthread_kill+:} false; then : | |
39fd3d4f | 8083 | $as_echo_n "(cached) " >&6 |
b0cacab0 | 8084 | else |
93613951 TT |
8085 | ac_check_lib_save_LIBS=$LIBS |
8086 | LIBS="-lpthread $LIBS" | |
8087 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
b0cacab0 | 8088 | /* end confdefs.h. */ |
b0cacab0 | 8089 | |
93613951 TT |
8090 | /* Override any GCC internal prototype to avoid an error. |
8091 | Use char because int might match the return type of a GCC | |
8092 | builtin and then its argument prototype would still apply. */ | |
8093 | #ifdef __cplusplus | |
8094 | extern "C" | |
8095 | #endif | |
8096 | char pthread_kill (); | |
b0cacab0 TT |
8097 | int |
8098 | main () | |
8099 | { | |
93613951 | 8100 | return pthread_kill (); |
b0cacab0 TT |
8101 | ; |
8102 | return 0; | |
8103 | } | |
8104 | _ACEOF | |
93613951 TT |
8105 | if ac_fn_c_try_link "$LINENO"; then : |
8106 | ac_cv_lib_pthread_pthread_kill=yes | |
b0cacab0 | 8107 | else |
93613951 | 8108 | ac_cv_lib_pthread_pthread_kill=no |
b0cacab0 | 8109 | fi |
93613951 TT |
8110 | rm -f core conftest.err conftest.$ac_objext \ |
8111 | conftest$ac_exeext conftest.$ac_ext | |
8112 | LIBS=$ac_check_lib_save_LIBS | |
b0cacab0 | 8113 | fi |
93613951 TT |
8114 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5 |
8115 | $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; } | |
8116 | if test "x$ac_cv_lib_pthread_pthread_kill" = xyes; then : | |
8117 | gl_have_pthread=yes | |
8118 | LIBTHREAD=-lpthread LTLIBTHREAD=-lpthread | |
8119 | LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread | |
b0cacab0 TT |
8120 | fi |
8121 | ||
93613951 TT |
8122 | if test -z "$gl_have_pthread"; then |
8123 | # For FreeBSD 4. | |
8124 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lc_r" >&5 | |
8125 | $as_echo_n "checking for pthread_kill in -lc_r... " >&6; } | |
8126 | if ${ac_cv_lib_c_r_pthread_kill+:} false; then : | |
8127 | $as_echo_n "(cached) " >&6 | |
8128 | else | |
8129 | ac_check_lib_save_LIBS=$LIBS | |
8130 | LIBS="-lc_r $LIBS" | |
8131 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
b0cacab0 TT |
8132 | /* end confdefs.h. */ |
8133 | ||
93613951 TT |
8134 | /* Override any GCC internal prototype to avoid an error. |
8135 | Use char because int might match the return type of a GCC | |
8136 | builtin and then its argument prototype would still apply. */ | |
8137 | #ifdef __cplusplus | |
8138 | extern "C" | |
b0cacab0 | 8139 | #endif |
93613951 TT |
8140 | char pthread_kill (); |
8141 | int | |
8142 | main () | |
8143 | { | |
8144 | return pthread_kill (); | |
8145 | ; | |
8146 | return 0; | |
8147 | } | |
b0cacab0 | 8148 | _ACEOF |
93613951 TT |
8149 | if ac_fn_c_try_link "$LINENO"; then : |
8150 | ac_cv_lib_c_r_pthread_kill=yes | |
b0cacab0 | 8151 | else |
93613951 | 8152 | ac_cv_lib_c_r_pthread_kill=no |
57aa50d4 | 8153 | fi |
93613951 TT |
8154 | rm -f core conftest.err conftest.$ac_objext \ |
8155 | conftest$ac_exeext conftest.$ac_ext | |
8156 | LIBS=$ac_check_lib_save_LIBS | |
8157 | fi | |
8158 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_kill" >&5 | |
8159 | $as_echo "$ac_cv_lib_c_r_pthread_kill" >&6; } | |
8160 | if test "x$ac_cv_lib_c_r_pthread_kill" = xyes; then : | |
8161 | gl_have_pthread=yes | |
8162 | LIBTHREAD=-lc_r LTLIBTHREAD=-lc_r | |
8163 | LIBMULTITHREAD=-lc_r LTLIBMULTITHREAD=-lc_r | |
b0cacab0 | 8164 | fi |
e1052144 | 8165 | |
93613951 TT |
8166 | fi |
8167 | fi | |
8168 | if test -n "$gl_have_pthread"; then | |
8169 | gl_threads_api=posix | |
57aa50d4 | 8170 | |
93613951 | 8171 | $as_echo "#define USE_POSIX_THREADS 1" >>confdefs.h |
57aa50d4 | 8172 | |
93613951 TT |
8173 | if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then |
8174 | if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then | |
b0cacab0 | 8175 | |
93613951 | 8176 | $as_echo "#define USE_POSIX_THREADS_WEAK 1" >>confdefs.h |
b0cacab0 | 8177 | |
93613951 TT |
8178 | LIBTHREAD= |
8179 | LTLIBTHREAD= | |
8180 | fi | |
8181 | fi | |
8182 | fi | |
8183 | fi | |
8184 | fi | |
8185 | if test -z "$gl_have_pthread"; then | |
8186 | if test "$gl_use_threads" = yes || test "$gl_use_threads" = solaris; then | |
8187 | gl_have_solaristhread= | |
8188 | gl_save_LIBS="$LIBS" | |
8189 | LIBS="$LIBS -lthread" | |
8190 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
b0cacab0 | 8191 | /* end confdefs.h. */ |
93613951 TT |
8192 | |
8193 | #include <thread.h> | |
8194 | #include <synch.h> | |
57aa50d4 | 8195 | |
b0cacab0 TT |
8196 | int |
8197 | main () | |
8198 | { | |
93613951 | 8199 | thr_self(); |
b0cacab0 TT |
8200 | ; |
8201 | return 0; | |
8202 | } | |
8203 | _ACEOF | |
93613951 TT |
8204 | if ac_fn_c_try_link "$LINENO"; then : |
8205 | gl_have_solaristhread=yes | |
b0cacab0 | 8206 | fi |
93613951 TT |
8207 | rm -f core conftest.err conftest.$ac_objext \ |
8208 | conftest$ac_exeext conftest.$ac_ext | |
8209 | LIBS="$gl_save_LIBS" | |
8210 | if test -n "$gl_have_solaristhread"; then | |
8211 | gl_threads_api=solaris | |
8212 | LIBTHREAD=-lthread | |
8213 | LTLIBTHREAD=-lthread | |
8214 | LIBMULTITHREAD="$LIBTHREAD" | |
8215 | LTLIBMULTITHREAD="$LTLIBTHREAD" | |
8216 | ||
8217 | $as_echo "#define USE_SOLARIS_THREADS 1" >>confdefs.h | |
8218 | ||
8219 | if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then | |
8220 | ||
8221 | $as_echo "#define USE_SOLARIS_THREADS_WEAK 1" >>confdefs.h | |
8222 | ||
8223 | LIBTHREAD= | |
8224 | LTLIBTHREAD= | |
8225 | fi | |
8226 | fi | |
57aa50d4 | 8227 | fi |
57aa50d4 | 8228 | fi |
93613951 TT |
8229 | if test "$gl_use_threads" = pth; then |
8230 | gl_save_CPPFLAGS="$CPPFLAGS" | |
b0cacab0 | 8231 | |
e1052144 | 8232 | |
e1052144 | 8233 | |
b0cacab0 | 8234 | |
57aa50d4 | 8235 | |
93613951 TT |
8236 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libpth" >&5 |
8237 | $as_echo_n "checking how to link with libpth... " >&6; } | |
8238 | if ${ac_cv_libpth_libs+:} false; then : | |
8239 | $as_echo_n "(cached) " >&6 | |
8240 | else | |
e1052144 | 8241 | |
b0cacab0 | 8242 | |
b0cacab0 | 8243 | |
29a5deed | 8244 | |
b0cacab0 | 8245 | |
b0cacab0 | 8246 | |
b0cacab0 | 8247 | |
e1052144 | 8248 | |
57aa50d4 | 8249 | use_additional=yes |
b0cacab0 | 8250 | |
57aa50d4 TT |
8251 | acl_save_prefix="$prefix" |
8252 | prefix="$acl_final_prefix" | |
8253 | acl_save_exec_prefix="$exec_prefix" | |
8254 | exec_prefix="$acl_final_exec_prefix" | |
b0cacab0 | 8255 | |
57aa50d4 TT |
8256 | eval additional_includedir=\"$includedir\" |
8257 | eval additional_libdir=\"$libdir\" | |
b0cacab0 | 8258 | |
57aa50d4 TT |
8259 | exec_prefix="$acl_save_exec_prefix" |
8260 | prefix="$acl_save_prefix" | |
b0cacab0 | 8261 | |
e1052144 | 8262 | |
93613951 TT |
8263 | # Check whether --with-libpth-prefix was given. |
8264 | if test "${with_libpth_prefix+set}" = set; then : | |
8265 | withval=$with_libpth_prefix; | |
57aa50d4 TT |
8266 | if test "X$withval" = "Xno"; then |
8267 | use_additional=no | |
8268 | else | |
8269 | if test "X$withval" = "X"; then | |
b0cacab0 | 8270 | |
57aa50d4 TT |
8271 | acl_save_prefix="$prefix" |
8272 | prefix="$acl_final_prefix" | |
8273 | acl_save_exec_prefix="$exec_prefix" | |
8274 | exec_prefix="$acl_final_exec_prefix" | |
e1052144 | 8275 | |
57aa50d4 TT |
8276 | eval additional_includedir=\"$includedir\" |
8277 | eval additional_libdir=\"$libdir\" | |
e1052144 | 8278 | |
57aa50d4 TT |
8279 | exec_prefix="$acl_save_exec_prefix" |
8280 | prefix="$acl_save_prefix" | |
b0cacab0 | 8281 | |
57aa50d4 TT |
8282 | else |
8283 | additional_includedir="$withval/include" | |
93613951 TT |
8284 | additional_libdir="$withval/$acl_libdirstem" |
8285 | if test "$acl_libdirstem2" != "$acl_libdirstem" \ | |
8286 | && ! test -d "$withval/$acl_libdirstem"; then | |
8287 | additional_libdir="$withval/$acl_libdirstem2" | |
8288 | fi | |
57aa50d4 TT |
8289 | fi |
8290 | fi | |
b0cacab0 | 8291 | |
b0cacab0 | 8292 | fi |
e1052144 | 8293 | |
93613951 TT |
8294 | LIBPTH= |
8295 | LTLIBPTH= | |
8296 | INCPTH= | |
8297 | LIBPTH_PREFIX= | |
8298 | HAVE_LIBPTH= | |
a04eba3f TT |
8299 | rpathdirs= |
8300 | ltrpathdirs= | |
8301 | names_already_handled= | |
93613951 | 8302 | names_next_round='pth ' |
a04eba3f TT |
8303 | while test -n "$names_next_round"; do |
8304 | names_this_round="$names_next_round" | |
8305 | names_next_round= | |
8306 | for name in $names_this_round; do | |
8307 | already_handled= | |
8308 | for n in $names_already_handled; do | |
8309 | if test "$n" = "$name"; then | |
8310 | already_handled=yes | |
8311 | break | |
8312 | fi | |
8313 | done | |
8314 | if test -z "$already_handled"; then | |
8315 | names_already_handled="$names_already_handled $name" | |
93613951 | 8316 | uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'` |
a04eba3f TT |
8317 | eval value=\"\$HAVE_LIB$uppername\" |
8318 | if test -n "$value"; then | |
8319 | if test "$value" = yes; then | |
8320 | eval value=\"\$LIB$uppername\" | |
93613951 | 8321 | test -z "$value" || LIBPTH="${LIBPTH}${LIBPTH:+ }$value" |
a04eba3f | 8322 | eval value=\"\$LTLIB$uppername\" |
93613951 | 8323 | test -z "$value" || LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$value" |
a04eba3f TT |
8324 | else |
8325 | : | |
8326 | fi | |
8327 | else | |
8328 | found_dir= | |
8329 | found_la= | |
8330 | found_so= | |
8331 | found_a= | |
93613951 TT |
8332 | eval libname=\"$acl_libname_spec\" # typically: libname=lib$name |
8333 | if test -n "$acl_shlibext"; then | |
8334 | shrext=".$acl_shlibext" # typically: shrext=.so | |
8335 | else | |
8336 | shrext= | |
8337 | fi | |
a04eba3f | 8338 | if test $use_additional = yes; then |
93613951 TT |
8339 | dir="$additional_libdir" |
8340 | if test -n "$acl_shlibext"; then | |
8341 | if test -f "$dir/$libname$shrext"; then | |
8342 | found_dir="$dir" | |
8343 | found_so="$dir/$libname$shrext" | |
8344 | else | |
8345 | if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then | |
8346 | ver=`(cd "$dir" && \ | |
8347 | for f in "$libname$shrext".*; do echo "$f"; done \ | |
8348 | | sed -e "s,^$libname$shrext\\\\.,," \ | |
8349 | | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ | |
8350 | | sed 1q ) 2>/dev/null` | |
8351 | if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then | |
8352 | found_dir="$dir" | |
8353 | found_so="$dir/$libname$shrext.$ver" | |
8354 | fi | |
8355 | else | |
8356 | eval library_names=\"$acl_library_names_spec\" | |
8357 | for f in $library_names; do | |
8358 | if test -f "$dir/$f"; then | |
8359 | found_dir="$dir" | |
8360 | found_so="$dir/$f" | |
8361 | break | |
8362 | fi | |
8363 | done | |
a04eba3f TT |
8364 | fi |
8365 | fi | |
93613951 TT |
8366 | fi |
8367 | if test "X$found_dir" = "X"; then | |
8368 | if test -f "$dir/$libname.$acl_libext"; then | |
8369 | found_dir="$dir" | |
8370 | found_a="$dir/$libname.$acl_libext" | |
8371 | fi | |
8372 | fi | |
8373 | if test "X$found_dir" != "X"; then | |
8374 | if test -f "$dir/$libname.la"; then | |
8375 | found_la="$dir/$libname.la" | |
8376 | fi | |
a04eba3f TT |
8377 | fi |
8378 | fi | |
8379 | if test "X$found_dir" = "X"; then | |
93613951 | 8380 | for x in $LDFLAGS $LTLIBPTH; do |
b0cacab0 | 8381 | |
a04eba3f TT |
8382 | acl_save_prefix="$prefix" |
8383 | prefix="$acl_final_prefix" | |
8384 | acl_save_exec_prefix="$exec_prefix" | |
8385 | exec_prefix="$acl_final_exec_prefix" | |
8386 | eval x=\"$x\" | |
8387 | exec_prefix="$acl_save_exec_prefix" | |
8388 | prefix="$acl_save_prefix" | |
8389 | ||
8390 | case "$x" in | |
8391 | -L*) | |
8392 | dir=`echo "X$x" | sed -e 's/^X-L//'` | |
93613951 TT |
8393 | if test -n "$acl_shlibext"; then |
8394 | if test -f "$dir/$libname$shrext"; then | |
a04eba3f | 8395 | found_dir="$dir" |
93613951 TT |
8396 | found_so="$dir/$libname$shrext" |
8397 | else | |
8398 | if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then | |
8399 | ver=`(cd "$dir" && \ | |
8400 | for f in "$libname$shrext".*; do echo "$f"; done \ | |
8401 | | sed -e "s,^$libname$shrext\\\\.,," \ | |
8402 | | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ | |
8403 | | sed 1q ) 2>/dev/null` | |
8404 | if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then | |
8405 | found_dir="$dir" | |
8406 | found_so="$dir/$libname$shrext.$ver" | |
8407 | fi | |
8408 | else | |
8409 | eval library_names=\"$acl_library_names_spec\" | |
8410 | for f in $library_names; do | |
8411 | if test -f "$dir/$f"; then | |
8412 | found_dir="$dir" | |
8413 | found_so="$dir/$f" | |
8414 | break | |
8415 | fi | |
8416 | done | |
a04eba3f TT |
8417 | fi |
8418 | fi | |
93613951 TT |
8419 | fi |
8420 | if test "X$found_dir" = "X"; then | |
8421 | if test -f "$dir/$libname.$acl_libext"; then | |
8422 | found_dir="$dir" | |
8423 | found_a="$dir/$libname.$acl_libext" | |
8424 | fi | |
8425 | fi | |
8426 | if test "X$found_dir" != "X"; then | |
8427 | if test -f "$dir/$libname.la"; then | |
8428 | found_la="$dir/$libname.la" | |
8429 | fi | |
a04eba3f TT |
8430 | fi |
8431 | ;; | |
8432 | esac | |
8433 | if test "X$found_dir" != "X"; then | |
8434 | break | |
8435 | fi | |
8436 | done | |
8437 | fi | |
8438 | if test "X$found_dir" != "X"; then | |
93613951 | 8439 | LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$found_dir -l$name" |
a04eba3f | 8440 | if test "X$found_so" != "X"; then |
93613951 TT |
8441 | if test "$enable_rpath" = no \ |
8442 | || test "X$found_dir" = "X/usr/$acl_libdirstem" \ | |
8443 | || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then | |
8444 | LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so" | |
a04eba3f TT |
8445 | else |
8446 | haveit= | |
8447 | for x in $ltrpathdirs; do | |
8448 | if test "X$x" = "X$found_dir"; then | |
8449 | haveit=yes | |
8450 | break | |
8451 | fi | |
8452 | done | |
8453 | if test -z "$haveit"; then | |
8454 | ltrpathdirs="$ltrpathdirs $found_dir" | |
8455 | fi | |
93613951 TT |
8456 | if test "$acl_hardcode_direct" = yes; then |
8457 | LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so" | |
a04eba3f | 8458 | else |
93613951 TT |
8459 | if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then |
8460 | LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so" | |
a04eba3f TT |
8461 | haveit= |
8462 | for x in $rpathdirs; do | |
8463 | if test "X$x" = "X$found_dir"; then | |
8464 | haveit=yes | |
8465 | break | |
8466 | fi | |
8467 | done | |
8468 | if test -z "$haveit"; then | |
8469 | rpathdirs="$rpathdirs $found_dir" | |
8470 | fi | |
8471 | else | |
8472 | haveit= | |
93613951 | 8473 | for x in $LDFLAGS $LIBPTH; do |
b0cacab0 | 8474 | |
a04eba3f TT |
8475 | acl_save_prefix="$prefix" |
8476 | prefix="$acl_final_prefix" | |
8477 | acl_save_exec_prefix="$exec_prefix" | |
8478 | exec_prefix="$acl_final_exec_prefix" | |
8479 | eval x=\"$x\" | |
8480 | exec_prefix="$acl_save_exec_prefix" | |
8481 | prefix="$acl_save_prefix" | |
8482 | ||
8483 | if test "X$x" = "X-L$found_dir"; then | |
8484 | haveit=yes | |
8485 | break | |
8486 | fi | |
8487 | done | |
8488 | if test -z "$haveit"; then | |
93613951 | 8489 | LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir" |
a04eba3f | 8490 | fi |
93613951 TT |
8491 | if test "$acl_hardcode_minus_L" != no; then |
8492 | LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so" | |
a04eba3f | 8493 | else |
93613951 | 8494 | LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name" |
a04eba3f TT |
8495 | fi |
8496 | fi | |
8497 | fi | |
8498 | fi | |
8499 | else | |
8500 | if test "X$found_a" != "X"; then | |
93613951 | 8501 | LIBPTH="${LIBPTH}${LIBPTH:+ }$found_a" |
a04eba3f | 8502 | else |
93613951 | 8503 | LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir -l$name" |
a04eba3f TT |
8504 | fi |
8505 | fi | |
8506 | additional_includedir= | |
8507 | case "$found_dir" in | |
93613951 TT |
8508 | */$acl_libdirstem | */$acl_libdirstem/) |
8509 | basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'` | |
8510 | if test "$name" = 'pth'; then | |
8511 | LIBPTH_PREFIX="$basedir" | |
8512 | fi | |
8513 | additional_includedir="$basedir/include" | |
8514 | ;; | |
8515 | */$acl_libdirstem2 | */$acl_libdirstem2/) | |
8516 | basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'` | |
8517 | if test "$name" = 'pth'; then | |
8518 | LIBPTH_PREFIX="$basedir" | |
8519 | fi | |
a04eba3f TT |
8520 | additional_includedir="$basedir/include" |
8521 | ;; | |
8522 | esac | |
8523 | if test "X$additional_includedir" != "X"; then | |
8524 | if test "X$additional_includedir" != "X/usr/include"; then | |
8525 | haveit= | |
8526 | if test "X$additional_includedir" = "X/usr/local/include"; then | |
8527 | if test -n "$GCC"; then | |
8528 | case $host_os in | |
93613951 | 8529 | linux* | gnu* | k*bsd*-gnu) haveit=yes;; |
a04eba3f TT |
8530 | esac |
8531 | fi | |
8532 | fi | |
8533 | if test -z "$haveit"; then | |
93613951 | 8534 | for x in $CPPFLAGS $INCPTH; do |
b0cacab0 | 8535 | |
a04eba3f TT |
8536 | acl_save_prefix="$prefix" |
8537 | prefix="$acl_final_prefix" | |
8538 | acl_save_exec_prefix="$exec_prefix" | |
8539 | exec_prefix="$acl_final_exec_prefix" | |
8540 | eval x=\"$x\" | |
8541 | exec_prefix="$acl_save_exec_prefix" | |
8542 | prefix="$acl_save_prefix" | |
8543 | ||
8544 | if test "X$x" = "X-I$additional_includedir"; then | |
8545 | haveit=yes | |
8546 | break | |
8547 | fi | |
8548 | done | |
8549 | if test -z "$haveit"; then | |
8550 | if test -d "$additional_includedir"; then | |
93613951 | 8551 | INCPTH="${INCPTH}${INCPTH:+ }-I$additional_includedir" |
a04eba3f TT |
8552 | fi |
8553 | fi | |
8554 | fi | |
8555 | fi | |
8556 | fi | |
8557 | if test -n "$found_la"; then | |
8558 | save_libdir="$libdir" | |
8559 | case "$found_la" in | |
8560 | */* | *\\*) . "$found_la" ;; | |
8561 | *) . "./$found_la" ;; | |
8562 | esac | |
8563 | libdir="$save_libdir" | |
8564 | for dep in $dependency_libs; do | |
8565 | case "$dep" in | |
8566 | -L*) | |
8567 | additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` | |
93613951 TT |
8568 | if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \ |
8569 | && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then | |
a04eba3f | 8570 | haveit= |
93613951 TT |
8571 | if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \ |
8572 | || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then | |
a04eba3f TT |
8573 | if test -n "$GCC"; then |
8574 | case $host_os in | |
93613951 | 8575 | linux* | gnu* | k*bsd*-gnu) haveit=yes;; |
a04eba3f TT |
8576 | esac |
8577 | fi | |
8578 | fi | |
8579 | if test -z "$haveit"; then | |
8580 | haveit= | |
93613951 | 8581 | for x in $LDFLAGS $LIBPTH; do |
b0cacab0 | 8582 | |
a04eba3f TT |
8583 | acl_save_prefix="$prefix" |
8584 | prefix="$acl_final_prefix" | |
8585 | acl_save_exec_prefix="$exec_prefix" | |
8586 | exec_prefix="$acl_final_exec_prefix" | |
8587 | eval x=\"$x\" | |
8588 | exec_prefix="$acl_save_exec_prefix" | |
8589 | prefix="$acl_save_prefix" | |
8590 | ||
8591 | if test "X$x" = "X-L$additional_libdir"; then | |
8592 | haveit=yes | |
8593 | break | |
8594 | fi | |
8595 | done | |
8596 | if test -z "$haveit"; then | |
8597 | if test -d "$additional_libdir"; then | |
93613951 | 8598 | LIBPTH="${LIBPTH}${LIBPTH:+ }-L$additional_libdir" |
a04eba3f TT |
8599 | fi |
8600 | fi | |
8601 | haveit= | |
93613951 | 8602 | for x in $LDFLAGS $LTLIBPTH; do |
b0cacab0 | 8603 | |
a04eba3f TT |
8604 | acl_save_prefix="$prefix" |
8605 | prefix="$acl_final_prefix" | |
8606 | acl_save_exec_prefix="$exec_prefix" | |
8607 | exec_prefix="$acl_final_exec_prefix" | |
8608 | eval x=\"$x\" | |
8609 | exec_prefix="$acl_save_exec_prefix" | |
8610 | prefix="$acl_save_prefix" | |
8611 | ||
8612 | if test "X$x" = "X-L$additional_libdir"; then | |
8613 | haveit=yes | |
8614 | break | |
8615 | fi | |
8616 | done | |
8617 | if test -z "$haveit"; then | |
8618 | if test -d "$additional_libdir"; then | |
93613951 | 8619 | LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$additional_libdir" |
a04eba3f TT |
8620 | fi |
8621 | fi | |
8622 | fi | |
8623 | fi | |
8624 | ;; | |
8625 | -R*) | |
8626 | dir=`echo "X$dep" | sed -e 's/^X-R//'` | |
8627 | if test "$enable_rpath" != no; then | |
8628 | haveit= | |
8629 | for x in $rpathdirs; do | |
8630 | if test "X$x" = "X$dir"; then | |
8631 | haveit=yes | |
8632 | break | |
8633 | fi | |
8634 | done | |
8635 | if test -z "$haveit"; then | |
8636 | rpathdirs="$rpathdirs $dir" | |
8637 | fi | |
8638 | haveit= | |
8639 | for x in $ltrpathdirs; do | |
8640 | if test "X$x" = "X$dir"; then | |
8641 | haveit=yes | |
8642 | break | |
8643 | fi | |
8644 | done | |
8645 | if test -z "$haveit"; then | |
8646 | ltrpathdirs="$ltrpathdirs $dir" | |
8647 | fi | |
8648 | fi | |
8649 | ;; | |
8650 | -l*) | |
8651 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` | |
8652 | ;; | |
8653 | *.la) | |
8654 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` | |
8655 | ;; | |
8656 | *) | |
93613951 TT |
8657 | LIBPTH="${LIBPTH}${LIBPTH:+ }$dep" |
8658 | LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$dep" | |
a04eba3f TT |
8659 | ;; |
8660 | esac | |
8661 | done | |
8662 | fi | |
8663 | else | |
93613951 TT |
8664 | LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name" |
8665 | LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-l$name" | |
a04eba3f TT |
8666 | fi |
8667 | fi | |
8668 | fi | |
8669 | done | |
8670 | done | |
8671 | if test "X$rpathdirs" != "X"; then | |
93613951 | 8672 | if test -n "$acl_hardcode_libdir_separator"; then |
a04eba3f TT |
8673 | alldirs= |
8674 | for found_dir in $rpathdirs; do | |
93613951 | 8675 | alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir" |
a04eba3f TT |
8676 | done |
8677 | acl_save_libdir="$libdir" | |
8678 | libdir="$alldirs" | |
93613951 | 8679 | eval flag=\"$acl_hardcode_libdir_flag_spec\" |
a04eba3f | 8680 | libdir="$acl_save_libdir" |
93613951 | 8681 | LIBPTH="${LIBPTH}${LIBPTH:+ }$flag" |
a04eba3f TT |
8682 | else |
8683 | for found_dir in $rpathdirs; do | |
8684 | acl_save_libdir="$libdir" | |
8685 | libdir="$found_dir" | |
93613951 | 8686 | eval flag=\"$acl_hardcode_libdir_flag_spec\" |
a04eba3f | 8687 | libdir="$acl_save_libdir" |
93613951 | 8688 | LIBPTH="${LIBPTH}${LIBPTH:+ }$flag" |
a04eba3f TT |
8689 | done |
8690 | fi | |
8691 | fi | |
8692 | if test "X$ltrpathdirs" != "X"; then | |
8693 | for found_dir in $ltrpathdirs; do | |
93613951 | 8694 | LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-R$found_dir" |
a04eba3f | 8695 | done |
b0cacab0 | 8696 | fi |
b0cacab0 | 8697 | |
a04eba3f | 8698 | |
93636bde | 8699 | |
a64c9c13 | 8700 | |
93636bde | 8701 | |
b0cacab0 | 8702 | |
93613951 TT |
8703 | ac_cv_libpth_libs="$LIBPTH" |
8704 | ac_cv_libpth_ltlibs="$LTLIBPTH" | |
8705 | ac_cv_libpth_cppflags="$INCPTH" | |
8706 | ac_cv_libpth_prefix="$LIBPTH_PREFIX" | |
8707 | ||
8708 | fi | |
8709 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libpth_libs" >&5 | |
8710 | $as_echo "$ac_cv_libpth_libs" >&6; } | |
8711 | LIBPTH="$ac_cv_libpth_libs" | |
8712 | LTLIBPTH="$ac_cv_libpth_ltlibs" | |
8713 | INCPTH="$ac_cv_libpth_cppflags" | |
8714 | LIBPTH_PREFIX="$ac_cv_libpth_prefix" | |
8715 | ||
8716 | for element in $INCPTH; do | |
8717 | haveit= | |
8718 | for x in $CPPFLAGS; do | |
8719 | ||
8720 | acl_save_prefix="$prefix" | |
8721 | prefix="$acl_final_prefix" | |
8722 | acl_save_exec_prefix="$exec_prefix" | |
8723 | exec_prefix="$acl_final_exec_prefix" | |
8724 | eval x=\"$x\" | |
8725 | exec_prefix="$acl_save_exec_prefix" | |
8726 | prefix="$acl_save_prefix" | |
8727 | ||
8728 | if test "X$x" = "X$element"; then | |
8729 | haveit=yes | |
8730 | break | |
8731 | fi | |
8732 | done | |
8733 | if test -z "$haveit"; then | |
8734 | CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" | |
8735 | fi | |
8736 | done | |
8737 | ||
8738 | ||
8739 | ||
8740 | ||
8741 | HAVE_LIBPTH=yes | |
8742 | ||
8743 | ||
8744 | ||
8745 | gl_have_pth= | |
8746 | gl_save_LIBS="$LIBS" | |
8747 | LIBS="$LIBS $LIBPTH" | |
8748 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8749 | /* end confdefs.h. */ | |
8750 | #include <pth.h> | |
8751 | int | |
8752 | main () | |
8753 | { | |
8754 | pth_self(); | |
8755 | ; | |
8756 | return 0; | |
8757 | } | |
8758 | _ACEOF | |
8759 | if ac_fn_c_try_link "$LINENO"; then : | |
8760 | gl_have_pth=yes | |
8761 | fi | |
8762 | rm -f core conftest.err conftest.$ac_objext \ | |
8763 | conftest$ac_exeext conftest.$ac_ext | |
8764 | LIBS="$gl_save_LIBS" | |
8765 | if test -n "$gl_have_pth"; then | |
8766 | gl_threads_api=pth | |
8767 | LIBTHREAD="$LIBPTH" | |
8768 | LTLIBTHREAD="$LTLIBPTH" | |
8769 | LIBMULTITHREAD="$LIBTHREAD" | |
8770 | LTLIBMULTITHREAD="$LTLIBTHREAD" | |
8771 | ||
8772 | $as_echo "#define USE_PTH_THREADS 1" >>confdefs.h | |
8773 | ||
8774 | if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then | |
8775 | if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then | |
8776 | ||
8777 | $as_echo "#define USE_PTH_THREADS_WEAK 1" >>confdefs.h | |
8778 | ||
8779 | LIBTHREAD= | |
8780 | LTLIBTHREAD= | |
8781 | fi | |
8782 | fi | |
8783 | else | |
8784 | CPPFLAGS="$gl_save_CPPFLAGS" | |
8785 | fi | |
8786 | fi | |
8787 | if test -z "$gl_have_pthread"; then | |
8788 | case "$gl_use_threads" in | |
8789 | yes | windows | win32) # The 'win32' is for backward compatibility. | |
8790 | if { case "$host_os" in | |
8791 | mingw*) true;; | |
8792 | *) false;; | |
8793 | esac | |
8794 | }; then | |
8795 | gl_threads_api=windows | |
8796 | ||
8797 | $as_echo "#define USE_WINDOWS_THREADS 1" >>confdefs.h | |
8798 | ||
8799 | fi | |
8800 | ;; | |
8801 | esac | |
8802 | fi | |
8803 | fi | |
8804 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multithread API to use" >&5 | |
8805 | $as_echo_n "checking for multithread API to use... " >&6; } | |
8806 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_threads_api" >&5 | |
8807 | $as_echo "$gl_threads_api" >&6; } | |
8808 | ||
8809 | ||
8810 | ||
8811 | ||
8812 | ||
8813 | ||
8814 | ||
8815 | ||
8816 | ||
8817 | ||
8818 | ||
8819 | if test "$gl_threads_api" = posix; then | |
8820 | # OSF/1 4.0 and Mac OS X 10.1 lack the pthread_rwlock_t type and the | |
8821 | # pthread_rwlock_* functions. | |
8822 | ac_fn_c_check_type "$LINENO" "pthread_rwlock_t" "ac_cv_type_pthread_rwlock_t" "#include <pthread.h> | |
8823 | " | |
8824 | if test "x$ac_cv_type_pthread_rwlock_t" = xyes; then : | |
8825 | ||
8826 | $as_echo "#define HAVE_PTHREAD_RWLOCK 1" >>confdefs.h | |
8827 | ||
8828 | fi | |
8829 | ||
8830 | # glibc defines PTHREAD_MUTEX_RECURSIVE as enum, not as a macro. | |
8831 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8832 | /* end confdefs.h. */ | |
8833 | ||
8834 | #include <pthread.h> | |
8835 | int | |
8836 | main () | |
8837 | { | |
8838 | ||
8839 | #if __FreeBSD__ == 4 | |
8840 | error "No, in FreeBSD 4.0 recursive mutexes actually don't work." | |
8841 | #elif (defined __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ \ | |
8842 | && __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ < 1070) | |
8843 | error "No, in Mac OS X < 10.7 recursive mutexes actually don't work." | |
8844 | #else | |
8845 | int x = (int)PTHREAD_MUTEX_RECURSIVE; | |
8846 | return !x; | |
8847 | #endif | |
8848 | ||
8849 | ; | |
8850 | return 0; | |
8851 | } | |
8852 | _ACEOF | |
8853 | if ac_fn_c_try_compile "$LINENO"; then : | |
8854 | ||
8855 | $as_echo "#define HAVE_PTHREAD_MUTEX_RECURSIVE 1" >>confdefs.h | |
8856 | ||
8857 | fi | |
8858 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
8859 | fi | |
8860 | : | |
8861 | ||
8862 | ||
8863 | ||
8864 | ||
8865 | ||
8866 | ||
8867 | ||
8868 | ||
8869 | ||
8870 | ||
8871 | ||
8872 | ||
8873 | use_additional=yes | |
8874 | ||
8875 | acl_save_prefix="$prefix" | |
8876 | prefix="$acl_final_prefix" | |
8877 | acl_save_exec_prefix="$exec_prefix" | |
8878 | exec_prefix="$acl_final_exec_prefix" | |
8879 | ||
8880 | eval additional_includedir=\"$includedir\" | |
8881 | eval additional_libdir=\"$libdir\" | |
8882 | ||
8883 | exec_prefix="$acl_save_exec_prefix" | |
8884 | prefix="$acl_save_prefix" | |
8885 | ||
8886 | ||
8887 | # Check whether --with-libiconv-prefix was given. | |
8888 | if test "${with_libiconv_prefix+set}" = set; then : | |
8889 | withval=$with_libiconv_prefix; | |
8890 | if test "X$withval" = "Xno"; then | |
8891 | use_additional=no | |
8892 | else | |
8893 | if test "X$withval" = "X"; then | |
8894 | ||
8895 | acl_save_prefix="$prefix" | |
8896 | prefix="$acl_final_prefix" | |
8897 | acl_save_exec_prefix="$exec_prefix" | |
8898 | exec_prefix="$acl_final_exec_prefix" | |
8899 | ||
8900 | eval additional_includedir=\"$includedir\" | |
8901 | eval additional_libdir=\"$libdir\" | |
8902 | ||
8903 | exec_prefix="$acl_save_exec_prefix" | |
8904 | prefix="$acl_save_prefix" | |
8905 | ||
8906 | else | |
8907 | additional_includedir="$withval/include" | |
8908 | additional_libdir="$withval/$acl_libdirstem" | |
8909 | if test "$acl_libdirstem2" != "$acl_libdirstem" \ | |
8910 | && ! test -d "$withval/$acl_libdirstem"; then | |
8911 | additional_libdir="$withval/$acl_libdirstem2" | |
8912 | fi | |
8913 | fi | |
8914 | fi | |
8915 | ||
8916 | fi | |
8917 | ||
8918 | LIBICONV= | |
8919 | LTLIBICONV= | |
8920 | INCICONV= | |
8921 | LIBICONV_PREFIX= | |
8922 | HAVE_LIBICONV= | |
8923 | rpathdirs= | |
8924 | ltrpathdirs= | |
8925 | names_already_handled= | |
8926 | names_next_round='iconv ' | |
8927 | while test -n "$names_next_round"; do | |
8928 | names_this_round="$names_next_round" | |
8929 | names_next_round= | |
8930 | for name in $names_this_round; do | |
8931 | already_handled= | |
8932 | for n in $names_already_handled; do | |
8933 | if test "$n" = "$name"; then | |
8934 | already_handled=yes | |
8935 | break | |
8936 | fi | |
8937 | done | |
8938 | if test -z "$already_handled"; then | |
8939 | names_already_handled="$names_already_handled $name" | |
8940 | uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'` | |
8941 | eval value=\"\$HAVE_LIB$uppername\" | |
8942 | if test -n "$value"; then | |
8943 | if test "$value" = yes; then | |
8944 | eval value=\"\$LIB$uppername\" | |
8945 | test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value" | |
8946 | eval value=\"\$LTLIB$uppername\" | |
8947 | test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value" | |
8948 | else | |
8949 | : | |
8950 | fi | |
8951 | else | |
8952 | found_dir= | |
8953 | found_la= | |
8954 | found_so= | |
8955 | found_a= | |
8956 | eval libname=\"$acl_libname_spec\" # typically: libname=lib$name | |
8957 | if test -n "$acl_shlibext"; then | |
8958 | shrext=".$acl_shlibext" # typically: shrext=.so | |
8959 | else | |
8960 | shrext= | |
8961 | fi | |
8962 | if test $use_additional = yes; then | |
8963 | dir="$additional_libdir" | |
8964 | if test -n "$acl_shlibext"; then | |
8965 | if test -f "$dir/$libname$shrext"; then | |
8966 | found_dir="$dir" | |
8967 | found_so="$dir/$libname$shrext" | |
8968 | else | |
8969 | if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then | |
8970 | ver=`(cd "$dir" && \ | |
8971 | for f in "$libname$shrext".*; do echo "$f"; done \ | |
8972 | | sed -e "s,^$libname$shrext\\\\.,," \ | |
8973 | | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ | |
8974 | | sed 1q ) 2>/dev/null` | |
8975 | if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then | |
8976 | found_dir="$dir" | |
8977 | found_so="$dir/$libname$shrext.$ver" | |
8978 | fi | |
8979 | else | |
8980 | eval library_names=\"$acl_library_names_spec\" | |
8981 | for f in $library_names; do | |
8982 | if test -f "$dir/$f"; then | |
8983 | found_dir="$dir" | |
8984 | found_so="$dir/$f" | |
8985 | break | |
8986 | fi | |
8987 | done | |
8988 | fi | |
8989 | fi | |
8990 | fi | |
8991 | if test "X$found_dir" = "X"; then | |
8992 | if test -f "$dir/$libname.$acl_libext"; then | |
8993 | found_dir="$dir" | |
8994 | found_a="$dir/$libname.$acl_libext" | |
8995 | fi | |
8996 | fi | |
8997 | if test "X$found_dir" != "X"; then | |
8998 | if test -f "$dir/$libname.la"; then | |
8999 | found_la="$dir/$libname.la" | |
9000 | fi | |
9001 | fi | |
9002 | fi | |
9003 | if test "X$found_dir" = "X"; then | |
9004 | for x in $LDFLAGS $LTLIBICONV; do | |
9005 | ||
9006 | acl_save_prefix="$prefix" | |
9007 | prefix="$acl_final_prefix" | |
9008 | acl_save_exec_prefix="$exec_prefix" | |
9009 | exec_prefix="$acl_final_exec_prefix" | |
9010 | eval x=\"$x\" | |
9011 | exec_prefix="$acl_save_exec_prefix" | |
9012 | prefix="$acl_save_prefix" | |
9013 | ||
9014 | case "$x" in | |
9015 | -L*) | |
9016 | dir=`echo "X$x" | sed -e 's/^X-L//'` | |
9017 | if test -n "$acl_shlibext"; then | |
9018 | if test -f "$dir/$libname$shrext"; then | |
9019 | found_dir="$dir" | |
9020 | found_so="$dir/$libname$shrext" | |
9021 | else | |
9022 | if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then | |
9023 | ver=`(cd "$dir" && \ | |
9024 | for f in "$libname$shrext".*; do echo "$f"; done \ | |
9025 | | sed -e "s,^$libname$shrext\\\\.,," \ | |
9026 | | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ | |
9027 | | sed 1q ) 2>/dev/null` | |
9028 | if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then | |
9029 | found_dir="$dir" | |
9030 | found_so="$dir/$libname$shrext.$ver" | |
9031 | fi | |
9032 | else | |
9033 | eval library_names=\"$acl_library_names_spec\" | |
9034 | for f in $library_names; do | |
9035 | if test -f "$dir/$f"; then | |
9036 | found_dir="$dir" | |
9037 | found_so="$dir/$f" | |
9038 | break | |
9039 | fi | |
9040 | done | |
9041 | fi | |
9042 | fi | |
9043 | fi | |
9044 | if test "X$found_dir" = "X"; then | |
9045 | if test -f "$dir/$libname.$acl_libext"; then | |
9046 | found_dir="$dir" | |
9047 | found_a="$dir/$libname.$acl_libext" | |
9048 | fi | |
9049 | fi | |
9050 | if test "X$found_dir" != "X"; then | |
9051 | if test -f "$dir/$libname.la"; then | |
9052 | found_la="$dir/$libname.la" | |
9053 | fi | |
9054 | fi | |
9055 | ;; | |
9056 | esac | |
9057 | if test "X$found_dir" != "X"; then | |
9058 | break | |
9059 | fi | |
9060 | done | |
9061 | fi | |
9062 | if test "X$found_dir" != "X"; then | |
9063 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name" | |
9064 | if test "X$found_so" != "X"; then | |
9065 | if test "$enable_rpath" = no \ | |
9066 | || test "X$found_dir" = "X/usr/$acl_libdirstem" \ | |
9067 | || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then | |
9068 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" | |
9069 | else | |
9070 | haveit= | |
9071 | for x in $ltrpathdirs; do | |
9072 | if test "X$x" = "X$found_dir"; then | |
9073 | haveit=yes | |
9074 | break | |
9075 | fi | |
9076 | done | |
9077 | if test -z "$haveit"; then | |
9078 | ltrpathdirs="$ltrpathdirs $found_dir" | |
9079 | fi | |
9080 | if test "$acl_hardcode_direct" = yes; then | |
9081 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" | |
9082 | else | |
9083 | if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then | |
9084 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" | |
9085 | haveit= | |
9086 | for x in $rpathdirs; do | |
9087 | if test "X$x" = "X$found_dir"; then | |
9088 | haveit=yes | |
9089 | break | |
9090 | fi | |
9091 | done | |
9092 | if test -z "$haveit"; then | |
9093 | rpathdirs="$rpathdirs $found_dir" | |
9094 | fi | |
9095 | else | |
9096 | haveit= | |
9097 | for x in $LDFLAGS $LIBICONV; do | |
9098 | ||
9099 | acl_save_prefix="$prefix" | |
9100 | prefix="$acl_final_prefix" | |
9101 | acl_save_exec_prefix="$exec_prefix" | |
9102 | exec_prefix="$acl_final_exec_prefix" | |
9103 | eval x=\"$x\" | |
9104 | exec_prefix="$acl_save_exec_prefix" | |
9105 | prefix="$acl_save_prefix" | |
9106 | ||
9107 | if test "X$x" = "X-L$found_dir"; then | |
9108 | haveit=yes | |
9109 | break | |
9110 | fi | |
9111 | done | |
9112 | if test -z "$haveit"; then | |
9113 | LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir" | |
9114 | fi | |
9115 | if test "$acl_hardcode_minus_L" != no; then | |
9116 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" | |
9117 | else | |
9118 | LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" | |
9119 | fi | |
9120 | fi | |
9121 | fi | |
9122 | fi | |
9123 | else | |
9124 | if test "X$found_a" != "X"; then | |
9125 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a" | |
9126 | else | |
9127 | LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name" | |
9128 | fi | |
9129 | fi | |
9130 | additional_includedir= | |
9131 | case "$found_dir" in | |
9132 | */$acl_libdirstem | */$acl_libdirstem/) | |
9133 | basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'` | |
9134 | if test "$name" = 'iconv'; then | |
9135 | LIBICONV_PREFIX="$basedir" | |
9136 | fi | |
9137 | additional_includedir="$basedir/include" | |
9138 | ;; | |
9139 | */$acl_libdirstem2 | */$acl_libdirstem2/) | |
9140 | basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'` | |
9141 | if test "$name" = 'iconv'; then | |
9142 | LIBICONV_PREFIX="$basedir" | |
9143 | fi | |
9144 | additional_includedir="$basedir/include" | |
9145 | ;; | |
9146 | esac | |
9147 | if test "X$additional_includedir" != "X"; then | |
9148 | if test "X$additional_includedir" != "X/usr/include"; then | |
9149 | haveit= | |
9150 | if test "X$additional_includedir" = "X/usr/local/include"; then | |
9151 | if test -n "$GCC"; then | |
9152 | case $host_os in | |
9153 | linux* | gnu* | k*bsd*-gnu) haveit=yes;; | |
9154 | esac | |
9155 | fi | |
9156 | fi | |
9157 | if test -z "$haveit"; then | |
9158 | for x in $CPPFLAGS $INCICONV; do | |
9159 | ||
9160 | acl_save_prefix="$prefix" | |
9161 | prefix="$acl_final_prefix" | |
9162 | acl_save_exec_prefix="$exec_prefix" | |
9163 | exec_prefix="$acl_final_exec_prefix" | |
9164 | eval x=\"$x\" | |
9165 | exec_prefix="$acl_save_exec_prefix" | |
9166 | prefix="$acl_save_prefix" | |
9167 | ||
9168 | if test "X$x" = "X-I$additional_includedir"; then | |
9169 | haveit=yes | |
9170 | break | |
9171 | fi | |
9172 | done | |
9173 | if test -z "$haveit"; then | |
9174 | if test -d "$additional_includedir"; then | |
9175 | INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir" | |
9176 | fi | |
9177 | fi | |
9178 | fi | |
9179 | fi | |
9180 | fi | |
9181 | if test -n "$found_la"; then | |
9182 | save_libdir="$libdir" | |
9183 | case "$found_la" in | |
9184 | */* | *\\*) . "$found_la" ;; | |
9185 | *) . "./$found_la" ;; | |
9186 | esac | |
9187 | libdir="$save_libdir" | |
9188 | for dep in $dependency_libs; do | |
9189 | case "$dep" in | |
9190 | -L*) | |
9191 | additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` | |
9192 | if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \ | |
9193 | && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then | |
9194 | haveit= | |
9195 | if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \ | |
9196 | || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then | |
9197 | if test -n "$GCC"; then | |
9198 | case $host_os in | |
9199 | linux* | gnu* | k*bsd*-gnu) haveit=yes;; | |
9200 | esac | |
9201 | fi | |
9202 | fi | |
9203 | if test -z "$haveit"; then | |
9204 | haveit= | |
9205 | for x in $LDFLAGS $LIBICONV; do | |
9206 | ||
9207 | acl_save_prefix="$prefix" | |
9208 | prefix="$acl_final_prefix" | |
9209 | acl_save_exec_prefix="$exec_prefix" | |
9210 | exec_prefix="$acl_final_exec_prefix" | |
9211 | eval x=\"$x\" | |
9212 | exec_prefix="$acl_save_exec_prefix" | |
9213 | prefix="$acl_save_prefix" | |
9214 | ||
9215 | if test "X$x" = "X-L$additional_libdir"; then | |
9216 | haveit=yes | |
9217 | break | |
9218 | fi | |
9219 | done | |
9220 | if test -z "$haveit"; then | |
9221 | if test -d "$additional_libdir"; then | |
9222 | LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir" | |
9223 | fi | |
9224 | fi | |
9225 | haveit= | |
9226 | for x in $LDFLAGS $LTLIBICONV; do | |
9227 | ||
9228 | acl_save_prefix="$prefix" | |
9229 | prefix="$acl_final_prefix" | |
9230 | acl_save_exec_prefix="$exec_prefix" | |
9231 | exec_prefix="$acl_final_exec_prefix" | |
9232 | eval x=\"$x\" | |
9233 | exec_prefix="$acl_save_exec_prefix" | |
9234 | prefix="$acl_save_prefix" | |
9235 | ||
9236 | if test "X$x" = "X-L$additional_libdir"; then | |
9237 | haveit=yes | |
9238 | break | |
9239 | fi | |
9240 | done | |
9241 | if test -z "$haveit"; then | |
9242 | if test -d "$additional_libdir"; then | |
9243 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir" | |
9244 | fi | |
9245 | fi | |
9246 | fi | |
9247 | fi | |
9248 | ;; | |
9249 | -R*) | |
9250 | dir=`echo "X$dep" | sed -e 's/^X-R//'` | |
9251 | if test "$enable_rpath" != no; then | |
9252 | haveit= | |
9253 | for x in $rpathdirs; do | |
9254 | if test "X$x" = "X$dir"; then | |
9255 | haveit=yes | |
9256 | break | |
9257 | fi | |
9258 | done | |
9259 | if test -z "$haveit"; then | |
9260 | rpathdirs="$rpathdirs $dir" | |
9261 | fi | |
9262 | haveit= | |
9263 | for x in $ltrpathdirs; do | |
9264 | if test "X$x" = "X$dir"; then | |
9265 | haveit=yes | |
9266 | break | |
9267 | fi | |
9268 | done | |
9269 | if test -z "$haveit"; then | |
9270 | ltrpathdirs="$ltrpathdirs $dir" | |
9271 | fi | |
9272 | fi | |
9273 | ;; | |
9274 | -l*) | |
9275 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` | |
9276 | ;; | |
9277 | *.la) | |
9278 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` | |
9279 | ;; | |
9280 | *) | |
9281 | LIBICONV="${LIBICONV}${LIBICONV:+ }$dep" | |
9282 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep" | |
9283 | ;; | |
9284 | esac | |
9285 | done | |
9286 | fi | |
9287 | else | |
9288 | LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" | |
9289 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name" | |
9290 | fi | |
9291 | fi | |
9292 | fi | |
9293 | done | |
9294 | done | |
9295 | if test "X$rpathdirs" != "X"; then | |
9296 | if test -n "$acl_hardcode_libdir_separator"; then | |
9297 | alldirs= | |
9298 | for found_dir in $rpathdirs; do | |
9299 | alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir" | |
9300 | done | |
9301 | acl_save_libdir="$libdir" | |
9302 | libdir="$alldirs" | |
9303 | eval flag=\"$acl_hardcode_libdir_flag_spec\" | |
9304 | libdir="$acl_save_libdir" | |
9305 | LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" | |
9306 | else | |
9307 | for found_dir in $rpathdirs; do | |
9308 | acl_save_libdir="$libdir" | |
9309 | libdir="$found_dir" | |
9310 | eval flag=\"$acl_hardcode_libdir_flag_spec\" | |
9311 | libdir="$acl_save_libdir" | |
9312 | LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" | |
9313 | done | |
9314 | fi | |
9315 | fi | |
9316 | if test "X$ltrpathdirs" != "X"; then | |
9317 | for found_dir in $ltrpathdirs; do | |
9318 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir" | |
9319 | done | |
9320 | fi | |
9321 | ||
9322 | ||
9323 | ||
9324 | ||
9325 | ||
9326 | ||
9327 | ||
9328 | ||
9329 | ||
9330 | ||
9331 | ||
9332 | ||
9333 | am_save_CPPFLAGS="$CPPFLAGS" | |
9334 | ||
9335 | for element in $INCICONV; do | |
9336 | haveit= | |
9337 | for x in $CPPFLAGS; do | |
9338 | ||
9339 | acl_save_prefix="$prefix" | |
9340 | prefix="$acl_final_prefix" | |
9341 | acl_save_exec_prefix="$exec_prefix" | |
9342 | exec_prefix="$acl_final_exec_prefix" | |
9343 | eval x=\"$x\" | |
9344 | exec_prefix="$acl_save_exec_prefix" | |
9345 | prefix="$acl_save_prefix" | |
9346 | ||
9347 | if test "X$x" = "X$element"; then | |
9348 | haveit=yes | |
9349 | break | |
9350 | fi | |
9351 | done | |
9352 | if test -z "$haveit"; then | |
9353 | CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" | |
9354 | fi | |
9355 | done | |
9356 | ||
9357 | ||
9358 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5 | |
9359 | $as_echo_n "checking for iconv... " >&6; } | |
9360 | if ${am_cv_func_iconv+:} false; then : | |
9361 | $as_echo_n "(cached) " >&6 | |
9362 | else | |
9363 | ||
9364 | am_cv_func_iconv="no, consider installing GNU libiconv" | |
9365 | am_cv_lib_iconv=no | |
9366 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9367 | /* end confdefs.h. */ | |
9368 | ||
9369 | #include <stdlib.h> | |
9370 | #include <iconv.h> | |
9371 | ||
9372 | int | |
9373 | main () | |
9374 | { | |
9375 | iconv_t cd = iconv_open("",""); | |
9376 | iconv(cd,NULL,NULL,NULL,NULL); | |
9377 | iconv_close(cd); | |
9378 | ; | |
9379 | return 0; | |
9380 | } | |
9381 | _ACEOF | |
9382 | if ac_fn_c_try_link "$LINENO"; then : | |
9383 | am_cv_func_iconv=yes | |
9384 | fi | |
9385 | rm -f core conftest.err conftest.$ac_objext \ | |
9386 | conftest$ac_exeext conftest.$ac_ext | |
9387 | if test "$am_cv_func_iconv" != yes; then | |
9388 | am_save_LIBS="$LIBS" | |
9389 | LIBS="$LIBS $LIBICONV" | |
9390 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9391 | /* end confdefs.h. */ | |
9392 | ||
9393 | #include <stdlib.h> | |
9394 | #include <iconv.h> | |
9395 | ||
9396 | int | |
9397 | main () | |
9398 | { | |
9399 | iconv_t cd = iconv_open("",""); | |
9400 | iconv(cd,NULL,NULL,NULL,NULL); | |
9401 | iconv_close(cd); | |
9402 | ; | |
9403 | return 0; | |
9404 | } | |
9405 | _ACEOF | |
9406 | if ac_fn_c_try_link "$LINENO"; then : | |
9407 | am_cv_lib_iconv=yes | |
9408 | am_cv_func_iconv=yes | |
9409 | fi | |
9410 | rm -f core conftest.err conftest.$ac_objext \ | |
9411 | conftest$ac_exeext conftest.$ac_ext | |
9412 | LIBS="$am_save_LIBS" | |
9413 | fi | |
9414 | ||
9415 | fi | |
9416 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5 | |
9417 | $as_echo "$am_cv_func_iconv" >&6; } | |
9418 | if test "$am_cv_func_iconv" = yes; then | |
9419 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5 | |
9420 | $as_echo_n "checking for working iconv... " >&6; } | |
9421 | if ${am_cv_func_iconv_works+:} false; then : | |
9422 | $as_echo_n "(cached) " >&6 | |
9423 | else | |
9424 | ||
9425 | am_save_LIBS="$LIBS" | |
9426 | if test $am_cv_lib_iconv = yes; then | |
9427 | LIBS="$LIBS $LIBICONV" | |
9428 | fi | |
9429 | if test "$cross_compiling" = yes; then : | |
9430 | ||
9431 | case "$host_os" in | |
9432 | aix* | hpux*) am_cv_func_iconv_works="guessing no" ;; | |
9433 | *) am_cv_func_iconv_works="guessing yes" ;; | |
9434 | esac | |
9435 | ||
9436 | else | |
9437 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9438 | /* end confdefs.h. */ | |
9439 | ||
9440 | #include <iconv.h> | |
9441 | #include <string.h> | |
9442 | int main () | |
9443 | { | |
9444 | int result = 0; | |
9445 | /* Test against AIX 5.1 bug: Failures are not distinguishable from successful | |
9446 | returns. */ | |
9447 | { | |
9448 | iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8"); | |
9449 | if (cd_utf8_to_88591 != (iconv_t)(-1)) | |
9450 | { | |
9451 | static const char input[] = "\342\202\254"; /* EURO SIGN */ | |
9452 | char buf[10]; | |
9453 | const char *inptr = input; | |
9454 | size_t inbytesleft = strlen (input); | |
9455 | char *outptr = buf; | |
9456 | size_t outbytesleft = sizeof (buf); | |
9457 | size_t res = iconv (cd_utf8_to_88591, | |
9458 | (char **) &inptr, &inbytesleft, | |
9459 | &outptr, &outbytesleft); | |
9460 | if (res == 0) | |
9461 | result |= 1; | |
9462 | iconv_close (cd_utf8_to_88591); | |
9463 | } | |
9464 | } | |
9465 | /* Test against Solaris 10 bug: Failures are not distinguishable from | |
9466 | successful returns. */ | |
9467 | { | |
9468 | iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646"); | |
9469 | if (cd_ascii_to_88591 != (iconv_t)(-1)) | |
9470 | { | |
9471 | static const char input[] = "\263"; | |
9472 | char buf[10]; | |
9473 | const char *inptr = input; | |
9474 | size_t inbytesleft = strlen (input); | |
9475 | char *outptr = buf; | |
9476 | size_t outbytesleft = sizeof (buf); | |
9477 | size_t res = iconv (cd_ascii_to_88591, | |
9478 | (char **) &inptr, &inbytesleft, | |
9479 | &outptr, &outbytesleft); | |
9480 | if (res == 0) | |
9481 | result |= 2; | |
9482 | iconv_close (cd_ascii_to_88591); | |
9483 | } | |
9484 | } | |
9485 | /* Test against AIX 6.1..7.1 bug: Buffer overrun. */ | |
9486 | { | |
9487 | iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1"); | |
9488 | if (cd_88591_to_utf8 != (iconv_t)(-1)) | |
9489 | { | |
9490 | static const char input[] = "\304"; | |
9491 | static char buf[2] = { (char)0xDE, (char)0xAD }; | |
9492 | const char *inptr = input; | |
9493 | size_t inbytesleft = 1; | |
9494 | char *outptr = buf; | |
9495 | size_t outbytesleft = 1; | |
9496 | size_t res = iconv (cd_88591_to_utf8, | |
9497 | (char **) &inptr, &inbytesleft, | |
9498 | &outptr, &outbytesleft); | |
9499 | if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD) | |
9500 | result |= 4; | |
9501 | iconv_close (cd_88591_to_utf8); | |
9502 | } | |
9503 | } | |
9504 | #if 0 /* This bug could be worked around by the caller. */ | |
9505 | /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */ | |
9506 | { | |
9507 | iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591"); | |
9508 | if (cd_88591_to_utf8 != (iconv_t)(-1)) | |
9509 | { | |
9510 | static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337"; | |
9511 | char buf[50]; | |
9512 | const char *inptr = input; | |
9513 | size_t inbytesleft = strlen (input); | |
9514 | char *outptr = buf; | |
9515 | size_t outbytesleft = sizeof (buf); | |
9516 | size_t res = iconv (cd_88591_to_utf8, | |
9517 | (char **) &inptr, &inbytesleft, | |
9518 | &outptr, &outbytesleft); | |
9519 | if ((int)res > 0) | |
9520 | result |= 8; | |
9521 | iconv_close (cd_88591_to_utf8); | |
9522 | } | |
9523 | } | |
9524 | #endif | |
9525 | /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is | |
9526 | provided. */ | |
9527 | if (/* Try standardized names. */ | |
9528 | iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1) | |
9529 | /* Try IRIX, OSF/1 names. */ | |
9530 | && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1) | |
9531 | /* Try AIX names. */ | |
9532 | && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1) | |
9533 | /* Try HP-UX names. */ | |
9534 | && iconv_open ("utf8", "eucJP") == (iconv_t)(-1)) | |
9535 | result |= 16; | |
9536 | return result; | |
9537 | } | |
9538 | _ACEOF | |
9539 | if ac_fn_c_try_run "$LINENO"; then : | |
9540 | am_cv_func_iconv_works=yes | |
9541 | else | |
9542 | am_cv_func_iconv_works=no | |
9543 | fi | |
9544 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
9545 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
9546 | fi | |
9547 | ||
9548 | LIBS="$am_save_LIBS" | |
9549 | ||
9550 | fi | |
9551 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5 | |
9552 | $as_echo "$am_cv_func_iconv_works" >&6; } | |
9553 | case "$am_cv_func_iconv_works" in | |
9554 | *no) am_func_iconv=no am_cv_lib_iconv=no ;; | |
9555 | *) am_func_iconv=yes ;; | |
9556 | esac | |
9557 | else | |
9558 | am_func_iconv=no am_cv_lib_iconv=no | |
9559 | fi | |
9560 | if test "$am_func_iconv" = yes; then | |
9561 | ||
9562 | $as_echo "#define HAVE_ICONV 1" >>confdefs.h | |
9563 | ||
9564 | fi | |
9565 | if test "$am_cv_lib_iconv" = yes; then | |
9566 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5 | |
9567 | $as_echo_n "checking how to link with libiconv... " >&6; } | |
9568 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5 | |
9569 | $as_echo "$LIBICONV" >&6; } | |
9570 | else | |
9571 | CPPFLAGS="$am_save_CPPFLAGS" | |
9572 | LIBICONV= | |
9573 | LTLIBICONV= | |
9574 | fi | |
9575 | ||
9576 | ||
9577 | ||
9578 | if test "$am_cv_func_iconv" = yes; then | |
9579 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5 | |
9580 | $as_echo_n "checking for iconv declaration... " >&6; } | |
9581 | if ${am_cv_proto_iconv+:} false; then : | |
9582 | $as_echo_n "(cached) " >&6 | |
9583 | else | |
9584 | ||
9585 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9586 | /* end confdefs.h. */ | |
9587 | ||
9588 | #include <stdlib.h> | |
9589 | #include <iconv.h> | |
9590 | extern | |
9591 | #ifdef __cplusplus | |
9592 | "C" | |
9593 | #endif | |
9594 | #if defined(__STDC__) || defined(_MSC_VER) || defined(__cplusplus) | |
9595 | size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); | |
9596 | #else | |
9597 | size_t iconv(); | |
9598 | #endif | |
9599 | ||
9600 | int | |
9601 | main () | |
9602 | { | |
9603 | ||
9604 | ; | |
9605 | return 0; | |
9606 | } | |
9607 | _ACEOF | |
9608 | if ac_fn_c_try_compile "$LINENO"; then : | |
9609 | am_cv_proto_iconv_arg1="" | |
9610 | else | |
9611 | am_cv_proto_iconv_arg1="const" | |
9612 | fi | |
9613 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
9614 | am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);" | |
9615 | fi | |
9616 | ||
9617 | am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'` | |
9618 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: | |
9619 | $am_cv_proto_iconv" >&5 | |
9620 | $as_echo " | |
9621 | $am_cv_proto_iconv" >&6; } | |
9622 | ||
9623 | cat >>confdefs.h <<_ACEOF | |
9624 | #define ICONV_CONST $am_cv_proto_iconv_arg1 | |
9625 | _ACEOF | |
9626 | ||
9627 | ||
9628 | fi | |
9629 | ||
9630 | ||
9631 | ||
9632 | ||
9633 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9634 | /* end confdefs.h. */ | |
9635 | int foo (int a) { a = __builtin_expect (a, 10); return a == 10 ? 0 : 1; } | |
9636 | int | |
9637 | main () | |
9638 | { | |
9639 | ||
9640 | ; | |
9641 | return 0; | |
9642 | } | |
9643 | _ACEOF | |
9644 | if ac_fn_c_try_link "$LINENO"; then : | |
9645 | ||
9646 | $as_echo "#define HAVE_BUILTIN_EXPECT 1" >>confdefs.h | |
9647 | ||
9648 | fi | |
9649 | rm -f core conftest.err conftest.$ac_objext \ | |
9650 | conftest$ac_exeext conftest.$ac_ext | |
9651 | ||
9652 | for ac_header in argz.h inttypes.h limits.h unistd.h sys/param.h | |
9653 | do : | |
9654 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
9655 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | |
9656 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
9657 | cat >>confdefs.h <<_ACEOF | |
9658 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
9659 | _ACEOF | |
9660 | ||
9661 | fi | |
9662 | ||
9663 | done | |
9664 | ||
9665 | for ac_func in getcwd getegid geteuid getgid getuid mempcpy munmap \ | |
9666 | stpcpy strcasecmp strdup strtoul tsearch uselocale argz_count \ | |
9667 | argz_stringify argz_next __fsetlocking | |
9668 | do : | |
9669 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
9670 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
9671 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | |
9672 | cat >>confdefs.h <<_ACEOF | |
9673 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
9674 | _ACEOF | |
9675 | ||
9676 | fi | |
9677 | done | |
9678 | ||
9679 | ||
9680 | ac_fn_c_check_decl "$LINENO" "feof_unlocked" "ac_cv_have_decl_feof_unlocked" "#include <stdio.h> | |
9681 | " | |
9682 | if test "x$ac_cv_have_decl_feof_unlocked" = xyes; then : | |
9683 | ac_have_decl=1 | |
9684 | else | |
9685 | ac_have_decl=0 | |
9686 | fi | |
9687 | ||
9688 | cat >>confdefs.h <<_ACEOF | |
9689 | #define HAVE_DECL_FEOF_UNLOCKED $ac_have_decl | |
9690 | _ACEOF | |
9691 | ac_fn_c_check_decl "$LINENO" "fgets_unlocked" "ac_cv_have_decl_fgets_unlocked" "#include <stdio.h> | |
9692 | " | |
9693 | if test "x$ac_cv_have_decl_fgets_unlocked" = xyes; then : | |
9694 | ac_have_decl=1 | |
9695 | else | |
9696 | ac_have_decl=0 | |
9697 | fi | |
9698 | ||
9699 | cat >>confdefs.h <<_ACEOF | |
9700 | #define HAVE_DECL_FGETS_UNLOCKED $ac_have_decl | |
9701 | _ACEOF | |
9702 | ||
9703 | ||
9704 | ||
9705 | ||
9706 | for ac_prog in bison | |
9707 | do | |
9708 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
9709 | set dummy $ac_prog; ac_word=$2 | |
9710 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
9711 | $as_echo_n "checking for $ac_word... " >&6; } | |
9712 | if ${ac_cv_prog_INTLBISON+:} false; then : | |
9713 | $as_echo_n "(cached) " >&6 | |
9714 | else | |
9715 | if test -n "$INTLBISON"; then | |
9716 | ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test. | |
9717 | else | |
9718 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9719 | for as_dir in $PATH | |
9720 | do | |
9721 | IFS=$as_save_IFS | |
9722 | test -z "$as_dir" && as_dir=. | |
9723 | for ac_exec_ext in '' $ac_executable_extensions; do | |
9724 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
9725 | ac_cv_prog_INTLBISON="$ac_prog" | |
9726 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9727 | break 2 | |
9728 | fi | |
9729 | done | |
9730 | done | |
9731 | IFS=$as_save_IFS | |
9732 | ||
9733 | fi | |
9734 | fi | |
9735 | INTLBISON=$ac_cv_prog_INTLBISON | |
9736 | if test -n "$INTLBISON"; then | |
9737 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLBISON" >&5 | |
9738 | $as_echo "$INTLBISON" >&6; } | |
9739 | else | |
9740 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
9741 | $as_echo "no" >&6; } | |
9742 | fi | |
9743 | ||
9744 | ||
9745 | test -n "$INTLBISON" && break | |
9746 | done | |
9747 | ||
9748 | if test -z "$INTLBISON"; then | |
9749 | ac_verc_fail=yes | |
9750 | else | |
9751 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of bison" >&5 | |
9752 | $as_echo_n "checking version of bison... " >&6; } | |
9753 | ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'` | |
9754 | case $ac_prog_version in | |
9755 | '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;; | |
9756 | 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*) | |
9757 | ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;; | |
9758 | *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;; | |
9759 | esac | |
9760 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5 | |
9761 | $as_echo "$ac_prog_version" >&6; } | |
9762 | fi | |
9763 | if test $ac_verc_fail = yes; then | |
9764 | INTLBISON=: | |
b0cacab0 | 9765 | fi |
b0cacab0 | 9766 | |
a04eba3f | 9767 | |
93636bde | 9768 | |
93613951 TT |
9769 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5 |
9770 | $as_echo_n "checking for long long int... " >&6; } | |
9771 | if ${ac_cv_type_long_long_int+:} false; then : | |
9772 | $as_echo_n "(cached) " >&6 | |
9773 | else | |
9774 | ac_cv_type_long_long_int=yes | |
9775 | if test "x${ac_cv_prog_cc_c99-no}" = xno; then | |
9776 | ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int | |
9777 | if test $ac_cv_type_long_long_int = yes; then | |
9778 | if test "$cross_compiling" = yes; then : | |
9779 | : | |
9780 | else | |
9781 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9782 | /* end confdefs.h. */ | |
9783 | #include <limits.h> | |
9784 | #ifndef LLONG_MAX | |
9785 | # define HALF \ | |
9786 | (1LL << (sizeof (long long int) * CHAR_BIT - 2)) | |
9787 | # define LLONG_MAX (HALF - 1 + HALF) | |
9788 | #endif | |
9789 | int | |
9790 | main () | |
9791 | { | |
9792 | long long int n = 1; | |
9793 | int i; | |
9794 | for (i = 0; ; i++) | |
9795 | { | |
9796 | long long int m = n << i; | |
9797 | if (m >> i != n) | |
9798 | return 1; | |
9799 | if (LLONG_MAX / 2 < m) | |
9800 | break; | |
9801 | } | |
9802 | return 0; | |
9803 | ; | |
9804 | return 0; | |
9805 | } | |
9806 | _ACEOF | |
9807 | if ac_fn_c_try_run "$LINENO"; then : | |
a64c9c13 | 9808 | |
93613951 TT |
9809 | else |
9810 | ac_cv_type_long_long_int=no | |
9811 | fi | |
9812 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
9813 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
9814 | fi | |
93636bde | 9815 | |
93613951 TT |
9816 | fi |
9817 | fi | |
9818 | fi | |
9819 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5 | |
9820 | $as_echo "$ac_cv_type_long_long_int" >&6; } | |
9821 | if test $ac_cv_type_long_long_int = yes; then | |
b0cacab0 | 9822 | |
93613951 | 9823 | $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h |
b0cacab0 | 9824 | |
93613951 | 9825 | fi |
b0cacab0 TT |
9826 | |
9827 | ||
93613951 TT |
9828 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5 |
9829 | $as_echo_n "checking for wchar_t... " >&6; } | |
9830 | if ${gt_cv_c_wchar_t+:} false; then : | |
9831 | $as_echo_n "(cached) " >&6 | |
50e1e10f | 9832 | else |
93613951 TT |
9833 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
9834 | /* end confdefs.h. */ | |
9835 | #include <stddef.h> | |
9836 | wchar_t foo = (wchar_t)'\0'; | |
9837 | int | |
9838 | main () | |
9839 | { | |
50e1e10f | 9840 | |
93613951 TT |
9841 | ; |
9842 | return 0; | |
9843 | } | |
57aa50d4 | 9844 | _ACEOF |
93613951 TT |
9845 | if ac_fn_c_try_compile "$LINENO"; then : |
9846 | gt_cv_c_wchar_t=yes | |
9847 | else | |
9848 | gt_cv_c_wchar_t=no | |
57aa50d4 | 9849 | fi |
93613951 | 9850 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
fc6d9d51 | 9851 | fi |
93613951 TT |
9852 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5 |
9853 | $as_echo "$gt_cv_c_wchar_t" >&6; } | |
9854 | if test $gt_cv_c_wchar_t = yes; then | |
b0cacab0 | 9855 | |
93613951 | 9856 | $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h |
b0cacab0 | 9857 | |
93613951 | 9858 | fi |
50e1e10f | 9859 | |
e1052144 | 9860 | |
93613951 TT |
9861 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5 |
9862 | $as_echo_n "checking for wint_t... " >&6; } | |
9863 | if ${gt_cv_c_wint_t+:} false; then : | |
39fd3d4f | 9864 | $as_echo_n "(cached) " >&6 |
50e1e10f | 9865 | else |
57aa50d4 TT |
9866 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
9867 | /* end confdefs.h. */ | |
bcb915b0 | 9868 | |
93613951 TT |
9869 | /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before |
9870 | <wchar.h>. | |
9871 | BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included | |
9872 | before <wchar.h>. */ | |
9873 | #include <stddef.h> | |
57aa50d4 | 9874 | #include <stdio.h> |
93613951 TT |
9875 | #include <time.h> |
9876 | #include <wchar.h> | |
9877 | wint_t foo = (wchar_t)'\0'; | |
57aa50d4 TT |
9878 | int |
9879 | main () | |
9880 | { | |
50e1e10f | 9881 | |
57aa50d4 TT |
9882 | ; |
9883 | return 0; | |
9884 | } | |
9885 | _ACEOF | |
9886 | if ac_fn_c_try_compile "$LINENO"; then : | |
93613951 | 9887 | gt_cv_c_wint_t=yes |
50e1e10f | 9888 | else |
93613951 | 9889 | gt_cv_c_wint_t=no |
50e1e10f | 9890 | fi |
57aa50d4 | 9891 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
50e1e10f | 9892 | fi |
93613951 TT |
9893 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5 |
9894 | $as_echo "$gt_cv_c_wint_t" >&6; } | |
9895 | if test $gt_cv_c_wint_t = yes; then | |
bcb915b0 | 9896 | |
93613951 | 9897 | $as_echo "#define HAVE_WINT_T 1" >>confdefs.h |
50e1e10f | 9898 | |
57aa50d4 | 9899 | fi |
50e1e10f | 9900 | |
e1052144 | 9901 | |
e1052144 | 9902 | |
57aa50d4 | 9903 | |
93613951 TT |
9904 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5 |
9905 | $as_echo_n "checking for intmax_t... " >&6; } | |
9906 | if ${gt_cv_c_intmax_t+:} false; then : | |
39fd3d4f | 9907 | $as_echo_n "(cached) " >&6 |
50e1e10f | 9908 | else |
57aa50d4 TT |
9909 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
9910 | /* end confdefs.h. */ | |
b0cacab0 | 9911 | |
93613951 TT |
9912 | #include <stddef.h> |
9913 | #include <stdlib.h> | |
9914 | #if HAVE_STDINT_H_WITH_UINTMAX | |
9915 | #include <stdint.h> | |
9916 | #endif | |
9917 | #if HAVE_INTTYPES_H_WITH_UINTMAX | |
9918 | #include <inttypes.h> | |
57aa50d4 TT |
9919 | #endif |
9920 | ||
93613951 TT |
9921 | int |
9922 | main () | |
9923 | { | |
9924 | intmax_t x = -1; | |
9925 | return !x; | |
57aa50d4 TT |
9926 | ; |
9927 | return 0; | |
9928 | } | |
9929 | _ACEOF | |
9930 | if ac_fn_c_try_compile "$LINENO"; then : | |
93613951 | 9931 | gt_cv_c_intmax_t=yes |
50e1e10f | 9932 | else |
93613951 | 9933 | gt_cv_c_intmax_t=no |
57aa50d4 TT |
9934 | fi |
9935 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
50e1e10f | 9936 | fi |
93613951 TT |
9937 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5 |
9938 | $as_echo "$gt_cv_c_intmax_t" >&6; } | |
9939 | if test $gt_cv_c_intmax_t = yes; then | |
9940 | ||
9941 | $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h | |
9942 | ||
57aa50d4 | 9943 | fi |
50e1e10f | 9944 | |
93613951 TT |
9945 | |
9946 | ||
9947 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf() supports POSIX/XSI format strings" >&5 | |
9948 | $as_echo_n "checking whether printf() supports POSIX/XSI format strings... " >&6; } | |
9949 | if ${gt_cv_func_printf_posix+:} false; then : | |
9950 | $as_echo_n "(cached) " >&6 | |
9951 | else | |
9952 | ||
9953 | if test "$cross_compiling" = yes; then : | |
9954 | ||
9955 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9956 | /* end confdefs.h. */ | |
9957 | ||
9958 | #if defined __NetBSD__ || defined __BEOS__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__ | |
9959 | notposix | |
9960 | #endif | |
9961 | ||
9962 | _ACEOF | |
9963 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
9964 | $EGREP "notposix" >/dev/null 2>&1; then : | |
9965 | gt_cv_func_printf_posix="guessing no" | |
9966 | else | |
9967 | gt_cv_func_printf_posix="guessing yes" | |
9968 | fi | |
9969 | rm -f conftest* | |
9970 | ||
9971 | ||
9972 | else | |
9973 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9974 | /* end confdefs.h. */ | |
9975 | ||
9976 | #include <stdio.h> | |
9977 | #include <string.h> | |
9978 | /* The string "%2$d %1$d", with dollar characters protected from the shell's | |
9979 | dollar expansion (possibly an autoconf bug). */ | |
9980 | static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' }; | |
9981 | static char buf[100]; | |
9982 | int main () | |
9983 | { | |
9984 | sprintf (buf, format, 33, 55); | |
9985 | return (strcmp (buf, "55 33") != 0); | |
9986 | } | |
9987 | _ACEOF | |
9988 | if ac_fn_c_try_run "$LINENO"; then : | |
9989 | gt_cv_func_printf_posix=yes | |
9990 | else | |
9991 | gt_cv_func_printf_posix=no | |
9992 | fi | |
9993 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
9994 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
9995 | fi | |
9996 | ||
9997 | ||
9998 | fi | |
9999 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_printf_posix" >&5 | |
10000 | $as_echo "$gt_cv_func_printf_posix" >&6; } | |
10001 | case $gt_cv_func_printf_posix in | |
10002 | *yes) | |
10003 | ||
10004 | $as_echo "#define HAVE_POSIX_PRINTF 1" >>confdefs.h | |
10005 | ||
10006 | ;; | |
10007 | esac | |
10008 | ||
10009 | ||
10010 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library >= 2.1 or uClibc" >&5 | |
10011 | $as_echo_n "checking whether we are using the GNU C Library >= 2.1 or uClibc... " >&6; } | |
10012 | if ${ac_cv_gnu_library_2_1+:} false; then : | |
10013 | $as_echo_n "(cached) " >&6 | |
10014 | else | |
10015 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
10016 | /* end confdefs.h. */ | |
10017 | ||
10018 | #include <features.h> | |
10019 | #ifdef __GNU_LIBRARY__ | |
10020 | #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2) | |
10021 | Lucky GNU user | |
10022 | #endif | |
10023 | #endif | |
10024 | #ifdef __UCLIBC__ | |
10025 | Lucky user | |
10026 | #endif | |
10027 | ||
10028 | _ACEOF | |
10029 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
10030 | $EGREP "Lucky" >/dev/null 2>&1; then : | |
10031 | ac_cv_gnu_library_2_1=yes | |
10032 | else | |
10033 | ac_cv_gnu_library_2_1=no | |
10034 | fi | |
10035 | rm -f conftest* | |
10036 | ||
10037 | ||
10038 | ||
10039 | fi | |
10040 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5 | |
10041 | $as_echo "$ac_cv_gnu_library_2_1" >&6; } | |
10042 | ||
10043 | GLIBC21="$ac_cv_gnu_library_2_1" | |
10044 | ||
10045 | ||
10046 | ||
10047 | for ac_header in stdint.h | |
10048 | do : | |
10049 | ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default" | |
10050 | if test "x$ac_cv_header_stdint_h" = xyes; then : | |
10051 | cat >>confdefs.h <<_ACEOF | |
10052 | #define HAVE_STDINT_H 1 | |
57aa50d4 | 10053 | _ACEOF |
e1052144 | 10054 | |
93613951 | 10055 | fi |
e1052144 | 10056 | |
93613951 | 10057 | done |
57aa50d4 | 10058 | |
93613951 TT |
10059 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5 |
10060 | $as_echo_n "checking for SIZE_MAX... " >&6; } | |
10061 | if ${gl_cv_size_max+:} false; then : | |
39fd3d4f | 10062 | $as_echo_n "(cached) " >&6 |
50e1e10f | 10063 | else |
93613951 TT |
10064 | |
10065 | gl_cv_size_max= | |
10066 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
10067 | /* end confdefs.h. */ | |
10068 | ||
10069 | #include <limits.h> | |
10070 | #if HAVE_STDINT_H | |
10071 | #include <stdint.h> | |
10072 | #endif | |
10073 | #ifdef SIZE_MAX | |
10074 | Found it | |
10075 | #endif | |
10076 | ||
57aa50d4 | 10077 | _ACEOF |
93613951 TT |
10078 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
10079 | $EGREP "Found it" >/dev/null 2>&1; then : | |
10080 | gl_cv_size_max=yes | |
10081 | fi | |
10082 | rm -f conftest* | |
e1052144 | 10083 | |
93613951 TT |
10084 | if test -z "$gl_cv_size_max"; then |
10085 | if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) * CHAR_BIT - 1" "size_t_bits_minus_1" "#include <stddef.h> | |
10086 | #include <limits.h>"; then : | |
e1052144 | 10087 | |
93613951 TT |
10088 | else |
10089 | size_t_bits_minus_1= | |
10090 | fi | |
57aa50d4 | 10091 | |
93613951 | 10092 | if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint" "#include <stddef.h>"; then : |
57aa50d4 | 10093 | |
50e1e10f | 10094 | else |
93613951 TT |
10095 | fits_in_uint= |
10096 | fi | |
10097 | ||
10098 | if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then | |
10099 | if test $fits_in_uint = 1; then | |
10100 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
57aa50d4 | 10101 | /* end confdefs.h. */ |
93613951 TT |
10102 | #include <stddef.h> |
10103 | extern size_t foo; | |
10104 | extern unsigned long foo; | |
10105 | ||
57aa50d4 TT |
10106 | int |
10107 | main () | |
10108 | { | |
b0cacab0 | 10109 | |
57aa50d4 TT |
10110 | ; |
10111 | return 0; | |
10112 | } | |
10113 | _ACEOF | |
10114 | if ac_fn_c_try_compile "$LINENO"; then : | |
93613951 | 10115 | fits_in_uint=0 |
93636bde | 10116 | fi |
57aa50d4 | 10117 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
93613951 TT |
10118 | fi |
10119 | if test $fits_in_uint = 1; then | |
10120 | gl_cv_size_max="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)" | |
10121 | else | |
10122 | gl_cv_size_max="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)" | |
10123 | fi | |
10124 | else | |
10125 | gl_cv_size_max='((size_t)~(size_t)0)' | |
10126 | fi | |
10127 | fi | |
10128 | ||
50e1e10f | 10129 | fi |
93613951 TT |
10130 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_size_max" >&5 |
10131 | $as_echo "$gl_cv_size_max" >&6; } | |
10132 | if test "$gl_cv_size_max" != yes; then | |
50e1e10f | 10133 | |
57aa50d4 | 10134 | cat >>confdefs.h <<_ACEOF |
93613951 | 10135 | #define SIZE_MAX $gl_cv_size_max |
57aa50d4 | 10136 | _ACEOF |
e1052144 | 10137 | |
93613951 | 10138 | fi |
32237014 | 10139 | |
57aa50d4 | 10140 | |
e1052144 | 10141 | |
57aa50d4 | 10142 | |
93613951 TT |
10143 | for ac_header in stdint.h |
10144 | do : | |
10145 | ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default" | |
10146 | if test "x$ac_cv_header_stdint_h" = xyes; then : | |
10147 | cat >>confdefs.h <<_ACEOF | |
10148 | #define HAVE_STDINT_H 1 | |
57aa50d4 | 10149 | _ACEOF |
93613951 | 10150 | |
32237014 | 10151 | fi |
32237014 | 10152 | |
93613951 | 10153 | done |
e1052144 | 10154 | |
32237014 | 10155 | |
57aa50d4 | 10156 | |
e1052144 | 10157 | |
57aa50d4 | 10158 | |
93613951 TT |
10159 | for ac_func in $ac_func_list |
10160 | do : | |
10161 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
10162 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
10163 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | |
10164 | cat >>confdefs.h <<_ACEOF | |
10165 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
57aa50d4 | 10166 | _ACEOF |
32237014 | 10167 | |
32237014 | 10168 | fi |
93613951 TT |
10169 | done |
10170 | ||
10171 | ||
10172 | ||
e1052144 | 10173 | |
57aa50d4 | 10174 | |
e1052144 | 10175 | |
57aa50d4 | 10176 | |
93613951 TT |
10177 | |
10178 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fcntl.h" >&5 | |
10179 | $as_echo_n "checking for working fcntl.h... " >&6; } | |
10180 | if ${gl_cv_header_working_fcntl_h+:} false; then : | |
39fd3d4f | 10181 | $as_echo_n "(cached) " >&6 |
93613951 TT |
10182 | else |
10183 | if test "$cross_compiling" = yes; then : | |
10184 | gl_cv_header_working_fcntl_h=cross-compiling | |
50e1e10f | 10185 | else |
57aa50d4 TT |
10186 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
10187 | /* end confdefs.h. */ | |
93613951 TT |
10188 | #include <sys/types.h> |
10189 | #include <sys/stat.h> | |
10190 | #if HAVE_UNISTD_H | |
10191 | # include <unistd.h> | |
10192 | #else /* on Windows with MSVC */ | |
10193 | # include <io.h> | |
10194 | # include <stdlib.h> | |
10195 | # defined sleep(n) _sleep ((n) * 1000) | |
10196 | #endif | |
10197 | #include <fcntl.h> | |
10198 | #ifndef O_NOATIME | |
10199 | #define O_NOATIME 0 | |
10200 | #endif | |
10201 | #ifndef O_NOFOLLOW | |
10202 | #define O_NOFOLLOW 0 | |
10203 | #endif | |
10204 | static int const constants[] = | |
10205 | { | |
10206 | O_CREAT, O_EXCL, O_NOCTTY, O_TRUNC, O_APPEND, | |
10207 | O_NONBLOCK, O_SYNC, O_ACCMODE, O_RDONLY, O_RDWR, O_WRONLY | |
10208 | }; | |
10209 | ||
57aa50d4 TT |
10210 | int |
10211 | main () | |
10212 | { | |
b0cacab0 | 10213 | |
93613951 TT |
10214 | int result = !constants; |
10215 | #if HAVE_SYMLINK | |
10216 | { | |
10217 | static char const sym[] = "conftest.sym"; | |
10218 | if (symlink ("/dev/null", sym) != 0) | |
10219 | result |= 2; | |
10220 | else | |
10221 | { | |
10222 | int fd = open (sym, O_WRONLY | O_NOFOLLOW | O_CREAT, 0); | |
10223 | if (fd >= 0) | |
10224 | { | |
10225 | close (fd); | |
10226 | result |= 4; | |
10227 | } | |
10228 | } | |
10229 | if (unlink (sym) != 0 || symlink (".", sym) != 0) | |
10230 | result |= 2; | |
10231 | else | |
10232 | { | |
10233 | int fd = open (sym, O_RDONLY | O_NOFOLLOW); | |
10234 | if (fd >= 0) | |
10235 | { | |
10236 | close (fd); | |
10237 | result |= 4; | |
10238 | } | |
10239 | } | |
10240 | unlink (sym); | |
10241 | } | |
10242 | #endif | |
10243 | { | |
10244 | static char const file[] = "confdefs.h"; | |
10245 | int fd = open (file, O_RDONLY | O_NOATIME); | |
10246 | if (fd < 0) | |
10247 | result |= 8; | |
10248 | else | |
10249 | { | |
10250 | struct stat st0; | |
10251 | if (fstat (fd, &st0) != 0) | |
10252 | result |= 16; | |
10253 | else | |
10254 | { | |
10255 | char c; | |
10256 | sleep (1); | |
10257 | if (read (fd, &c, 1) != 1) | |
10258 | result |= 24; | |
10259 | else | |
10260 | { | |
10261 | if (close (fd) != 0) | |
10262 | result |= 32; | |
10263 | else | |
10264 | { | |
10265 | struct stat st1; | |
10266 | if (stat (file, &st1) != 0) | |
10267 | result |= 40; | |
10268 | else | |
10269 | if (st0.st_atime != st1.st_atime) | |
10270 | result |= 64; | |
10271 | } | |
10272 | } | |
10273 | } | |
10274 | } | |
10275 | } | |
10276 | return result; | |
57aa50d4 TT |
10277 | ; |
10278 | return 0; | |
10279 | } | |
10280 | _ACEOF | |
93613951 TT |
10281 | if ac_fn_c_try_run "$LINENO"; then : |
10282 | gl_cv_header_working_fcntl_h=yes | |
50e1e10f | 10283 | else |
93613951 TT |
10284 | case $? in #( |
10285 | 4) gl_cv_header_working_fcntl_h='no (bad O_NOFOLLOW)';; #( | |
10286 | 64) gl_cv_header_working_fcntl_h='no (bad O_NOATIME)';; #( | |
10287 | 68) gl_cv_header_working_fcntl_h='no (bad O_NOATIME, O_NOFOLLOW)';; #( | |
10288 | *) gl_cv_header_working_fcntl_h='no';; | |
10289 | esac | |
50e1e10f | 10290 | fi |
93613951 TT |
10291 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
10292 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
50e1e10f | 10293 | fi |
57aa50d4 | 10294 | |
93613951 TT |
10295 | fi |
10296 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_fcntl_h" >&5 | |
10297 | $as_echo "$gl_cv_header_working_fcntl_h" >&6; } | |
57aa50d4 | 10298 | |
93613951 TT |
10299 | case $gl_cv_header_working_fcntl_h in #( |
10300 | *O_NOATIME* | no | cross-compiling) ac_val=0;; #( | |
10301 | *) ac_val=1;; | |
57aa50d4 TT |
10302 | esac |
10303 | ||
93613951 TT |
10304 | cat >>confdefs.h <<_ACEOF |
10305 | #define HAVE_WORKING_O_NOATIME $ac_val | |
10306 | _ACEOF | |
57aa50d4 | 10307 | |
57aa50d4 | 10308 | |
93613951 TT |
10309 | case $gl_cv_header_working_fcntl_h in #( |
10310 | *O_NOFOLLOW* | no | cross-compiling) ac_val=0;; #( | |
10311 | *) ac_val=1;; | |
10312 | esac | |
57aa50d4 | 10313 | |
93613951 TT |
10314 | cat >>confdefs.h <<_ACEOF |
10315 | #define HAVE_WORKING_O_NOFOLLOW $ac_val | |
10316 | _ACEOF | |
57aa50d4 | 10317 | |
50e1e10f | 10318 | |
e1052144 | 10319 | |
93613951 TT |
10320 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5 |
10321 | $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; } | |
10322 | if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then : | |
39fd3d4f | 10323 | $as_echo_n "(cached) " >&6 |
9d564f73 | 10324 | else |
93613951 TT |
10325 | gt_save_LIBS="$LIBS" |
10326 | LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation" | |
10327 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
57aa50d4 | 10328 | /* end confdefs.h. */ |
93613951 | 10329 | #include <CoreFoundation/CFPreferences.h> |
57aa50d4 TT |
10330 | int |
10331 | main () | |
10332 | { | |
93613951 | 10333 | CFPreferencesCopyAppValue(NULL, NULL) |
57aa50d4 TT |
10334 | ; |
10335 | return 0; | |
10336 | } | |
10337 | _ACEOF | |
10338 | if ac_fn_c_try_link "$LINENO"; then : | |
93613951 TT |
10339 | gt_cv_func_CFPreferencesCopyAppValue=yes |
10340 | else | |
10341 | gt_cv_func_CFPreferencesCopyAppValue=no | |
9d564f73 | 10342 | fi |
57aa50d4 TT |
10343 | rm -f core conftest.err conftest.$ac_objext \ |
10344 | conftest$ac_exeext conftest.$ac_ext | |
93613951 TT |
10345 | LIBS="$gt_save_LIBS" |
10346 | fi | |
10347 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5 | |
10348 | $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; } | |
10349 | if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then | |
10350 | ||
10351 | $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h | |
10352 | ||
10353 | fi | |
10354 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5 | |
10355 | $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; } | |
10356 | if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then : | |
10357 | $as_echo_n "(cached) " >&6 | |
10358 | else | |
10359 | gt_save_LIBS="$LIBS" | |
10360 | LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation" | |
10361 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
57aa50d4 | 10362 | /* end confdefs.h. */ |
93613951 | 10363 | #include <CoreFoundation/CFLocale.h> |
57aa50d4 TT |
10364 | int |
10365 | main () | |
10366 | { | |
93613951 | 10367 | CFLocaleCopyCurrent(); |
57aa50d4 TT |
10368 | ; |
10369 | return 0; | |
10370 | } | |
10371 | _ACEOF | |
10372 | if ac_fn_c_try_link "$LINENO"; then : | |
93613951 TT |
10373 | gt_cv_func_CFLocaleCopyCurrent=yes |
10374 | else | |
10375 | gt_cv_func_CFLocaleCopyCurrent=no | |
9d564f73 | 10376 | fi |
57aa50d4 TT |
10377 | rm -f core conftest.err conftest.$ac_objext \ |
10378 | conftest$ac_exeext conftest.$ac_ext | |
93613951 | 10379 | LIBS="$gt_save_LIBS" |
50e1e10f | 10380 | fi |
93613951 TT |
10381 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5 |
10382 | $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; } | |
10383 | if test $gt_cv_func_CFLocaleCopyCurrent = yes; then | |
50e1e10f | 10384 | |
93613951 | 10385 | $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h |
e1052144 | 10386 | |
b0cacab0 | 10387 | fi |
93613951 TT |
10388 | INTL_MACOSX_LIBS= |
10389 | if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then | |
10390 | INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation" | |
e1052144 | 10391 | fi |
b0cacab0 | 10392 | |
93636bde | 10393 | |
e1052144 | 10394 | |
93613951 TT |
10395 | |
10396 | ||
10397 | ||
10398 | ||
10399 | ||
10400 | ||
10401 | ||
10402 | case "$enable_silent_rules" in | |
10403 | yes) INTL_DEFAULT_VERBOSITY=0;; | |
10404 | no) INTL_DEFAULT_VERBOSITY=1;; | |
10405 | *) INTL_DEFAULT_VERBOSITY=1;; | |
10406 | esac | |
10407 | ||
10408 | ||
10409 | ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default" | |
10410 | if test "x$ac_cv_type_ptrdiff_t" = xyes; then : | |
10411 | ||
50e1e10f | 10412 | else |
b0cacab0 | 10413 | |
93613951 | 10414 | $as_echo "#define ptrdiff_t long" >>confdefs.h |
50e1e10f | 10415 | |
e1052144 | 10416 | |
93613951 | 10417 | fi |
b0cacab0 | 10418 | |
93613951 TT |
10419 | for ac_header in features.h stddef.h stdlib.h string.h |
10420 | do : | |
10421 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
10422 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | |
10423 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
10424 | cat >>confdefs.h <<_ACEOF | |
10425 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
57aa50d4 | 10426 | _ACEOF |
93613951 TT |
10427 | |
10428 | fi | |
10429 | ||
10430 | done | |
10431 | ||
10432 | for ac_func in asprintf fwprintf newlocale putenv setenv setlocale \ | |
10433 | snprintf strnlen wcslen wcsnlen mbrtowc wcrtomb | |
10434 | do : | |
10435 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
10436 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
10437 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | |
10438 | cat >>confdefs.h <<_ACEOF | |
10439 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
57aa50d4 | 10440 | _ACEOF |
93613951 TT |
10441 | |
10442 | fi | |
10443 | done | |
10444 | ||
10445 | ||
10446 | ac_fn_c_check_decl "$LINENO" "_snprintf" "ac_cv_have_decl__snprintf" "#include <stdio.h> | |
10447 | " | |
10448 | if test "x$ac_cv_have_decl__snprintf" = xyes; then : | |
10449 | ac_have_decl=1 | |
50e1e10f | 10450 | else |
93613951 | 10451 | ac_have_decl=0 |
50e1e10f | 10452 | fi |
93613951 TT |
10453 | |
10454 | cat >>confdefs.h <<_ACEOF | |
10455 | #define HAVE_DECL__SNPRINTF $ac_have_decl | |
10456 | _ACEOF | |
10457 | ac_fn_c_check_decl "$LINENO" "_snwprintf" "ac_cv_have_decl__snwprintf" "#include <stdio.h> | |
10458 | " | |
10459 | if test "x$ac_cv_have_decl__snwprintf" = xyes; then : | |
10460 | ac_have_decl=1 | |
10461 | else | |
10462 | ac_have_decl=0 | |
50e1e10f TT |
10463 | fi |
10464 | ||
93613951 TT |
10465 | cat >>confdefs.h <<_ACEOF |
10466 | #define HAVE_DECL__SNWPRINTF $ac_have_decl | |
10467 | _ACEOF | |
10468 | ||
10469 | ||
10470 | ac_fn_c_check_decl "$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "#include <stdio.h> | |
10471 | " | |
10472 | if test "x$ac_cv_have_decl_getc_unlocked" = xyes; then : | |
10473 | ac_have_decl=1 | |
10474 | else | |
10475 | ac_have_decl=0 | |
10476 | fi | |
57aa50d4 TT |
10477 | |
10478 | cat >>confdefs.h <<_ACEOF | |
93613951 | 10479 | #define HAVE_DECL_GETC_UNLOCKED $ac_have_decl |
57aa50d4 TT |
10480 | _ACEOF |
10481 | ||
93613951 TT |
10482 | |
10483 | case $gt_cv_func_printf_posix in | |
10484 | *yes) HAVE_POSIX_PRINTF=1 ;; | |
10485 | *) HAVE_POSIX_PRINTF=0 ;; | |
10486 | esac | |
10487 | ||
10488 | if test "$ac_cv_func_asprintf" = yes; then | |
10489 | HAVE_ASPRINTF=1 | |
10490 | else | |
10491 | HAVE_ASPRINTF=0 | |
10492 | fi | |
10493 | ||
10494 | if test "$ac_cv_func_snprintf" = yes; then | |
10495 | HAVE_SNPRINTF=1 | |
10496 | else | |
10497 | HAVE_SNPRINTF=0 | |
10498 | fi | |
10499 | ||
10500 | if test "$ac_cv_func_newlocale" = yes; then | |
10501 | HAVE_NEWLOCALE=1 | |
10502 | else | |
10503 | HAVE_NEWLOCALE=0 | |
10504 | fi | |
10505 | ||
10506 | if test "$ac_cv_func_wprintf" = yes; then | |
10507 | HAVE_WPRINTF=1 | |
10508 | else | |
10509 | HAVE_WPRINTF=0 | |
e1052144 | 10510 | fi |
50e1e10f | 10511 | |
57aa50d4 | 10512 | |
93613951 | 10513 | |
57aa50d4 TT |
10514 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5 |
10515 | $as_echo_n "checking for nl_langinfo and CODESET... " >&6; } | |
d6a4bcb5 | 10516 | if ${am_cv_langinfo_codeset+:} false; then : |
39fd3d4f | 10517 | $as_echo_n "(cached) " >&6 |
50e1e10f | 10518 | else |
57aa50d4 TT |
10519 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
10520 | /* end confdefs.h. */ | |
10521 | #include <langinfo.h> | |
10522 | int | |
10523 | main () | |
10524 | { | |
93613951 | 10525 | char* cs = nl_langinfo(CODESET); return !cs; |
57aa50d4 TT |
10526 | ; |
10527 | return 0; | |
10528 | } | |
10529 | _ACEOF | |
10530 | if ac_fn_c_try_link "$LINENO"; then : | |
10531 | am_cv_langinfo_codeset=yes | |
50e1e10f | 10532 | else |
57aa50d4 | 10533 | am_cv_langinfo_codeset=no |
50e1e10f | 10534 | fi |
57aa50d4 TT |
10535 | rm -f core conftest.err conftest.$ac_objext \ |
10536 | conftest$ac_exeext conftest.$ac_ext | |
7321d94e | 10537 | |
50e1e10f | 10538 | fi |
57aa50d4 TT |
10539 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5 |
10540 | $as_echo "$am_cv_langinfo_codeset" >&6; } | |
10541 | if test $am_cv_langinfo_codeset = yes; then | |
50e1e10f | 10542 | |
57aa50d4 | 10543 | $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h |
e1052144 | 10544 | |
57aa50d4 | 10545 | fi |
b0cacab0 | 10546 | |
21c84b71 | 10547 | |
57aa50d4 TT |
10548 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5 |
10549 | $as_echo_n "checking for LC_MESSAGES... " >&6; } | |
93613951 | 10550 | if ${gt_cv_val_LC_MESSAGES+:} false; then : |
39fd3d4f | 10551 | $as_echo_n "(cached) " >&6 |
93636bde | 10552 | else |
57aa50d4 TT |
10553 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
10554 | /* end confdefs.h. */ | |
10555 | #include <locale.h> | |
10556 | int | |
10557 | main () | |
10558 | { | |
10559 | return LC_MESSAGES | |
10560 | ; | |
10561 | return 0; | |
10562 | } | |
10563 | _ACEOF | |
10564 | if ac_fn_c_try_link "$LINENO"; then : | |
93613951 | 10565 | gt_cv_val_LC_MESSAGES=yes |
93636bde | 10566 | else |
93613951 | 10567 | gt_cv_val_LC_MESSAGES=no |
50e1e10f | 10568 | fi |
57aa50d4 TT |
10569 | rm -f core conftest.err conftest.$ac_objext \ |
10570 | conftest$ac_exeext conftest.$ac_ext | |
50e1e10f | 10571 | fi |
93613951 TT |
10572 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_val_LC_MESSAGES" >&5 |
10573 | $as_echo "$gt_cv_val_LC_MESSAGES" >&6; } | |
10574 | if test $gt_cv_val_LC_MESSAGES = yes; then | |
50e1e10f | 10575 | |
57aa50d4 | 10576 | $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h |
50e1e10f | 10577 | |
e1052144 | 10578 | fi |
50e1e10f | 10579 | |
93613951 TT |
10580 | |
10581 | if test "$enable_shared" = yes; then | |
10582 | case "$host_os" in | |
10583 | mingw* | cygwin*) is_woe32dll=yes ;; | |
10584 | *) is_woe32dll=no ;; | |
10585 | esac | |
10586 | else | |
10587 | is_woe32dll=no | |
57aa50d4 | 10588 | fi |
93613951 | 10589 | WOE32DLL=$is_woe32dll |
b0cacab0 | 10590 | |
93613951 TT |
10591 | |
10592 | case "$host_os" in | |
10593 | mingw* | cygwin*) is_woe32=yes ;; | |
10594 | *) is_woe32=no ;; | |
10595 | esac | |
10596 | WOE32=$is_woe32 | |
10597 | ||
10598 | if test $WOE32 = yes; then | |
10599 | if test -n "$ac_tool_prefix"; then | |
10600 | # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args. | |
10601 | set dummy ${ac_tool_prefix}windres; ac_word=$2 | |
57aa50d4 | 10602 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
39fd3d4f | 10603 | $as_echo_n "checking for $ac_word... " >&6; } |
93613951 | 10604 | if ${ac_cv_prog_WINDRES+:} false; then : |
39fd3d4f | 10605 | $as_echo_n "(cached) " >&6 |
50e1e10f | 10606 | else |
93613951 TT |
10607 | if test -n "$WINDRES"; then |
10608 | ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. | |
50e1e10f | 10609 | else |
b0cacab0 TT |
10610 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10611 | for as_dir in $PATH | |
10612 | do | |
10613 | IFS=$as_save_IFS | |
10614 | test -z "$as_dir" && as_dir=. | |
57aa50d4 | 10615 | for ac_exec_ext in '' $ac_executable_extensions; do |
d6a4bcb5 | 10616 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
93613951 | 10617 | ac_cv_prog_WINDRES="${ac_tool_prefix}windres" |
57aa50d4 | 10618 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b0cacab0 TT |
10619 | break 2 |
10620 | fi | |
10621 | done | |
57aa50d4 | 10622 | done |
e1052144 | 10623 | IFS=$as_save_IFS |
b0cacab0 | 10624 | |
50e1e10f TT |
10625 | fi |
10626 | fi | |
93613951 TT |
10627 | WINDRES=$ac_cv_prog_WINDRES |
10628 | if test -n "$WINDRES"; then | |
10629 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5 | |
10630 | $as_echo "$WINDRES" >&6; } | |
50e1e10f | 10631 | else |
57aa50d4 | 10632 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
39fd3d4f | 10633 | $as_echo "no" >&6; } |
50e1e10f TT |
10634 | fi |
10635 | ||
e1052144 | 10636 | |
93613951 TT |
10637 | fi |
10638 | if test -z "$ac_cv_prog_WINDRES"; then | |
10639 | ac_ct_WINDRES=$WINDRES | |
10640 | # Extract the first word of "windres", so it can be a program name with args. | |
10641 | set dummy windres; ac_word=$2 | |
10642 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
10643 | $as_echo_n "checking for $ac_word... " >&6; } | |
10644 | if ${ac_cv_prog_ac_ct_WINDRES+:} false; then : | |
10645 | $as_echo_n "(cached) " >&6 | |
10646 | else | |
10647 | if test -n "$ac_ct_WINDRES"; then | |
10648 | ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test. | |
10649 | else | |
10650 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10651 | for as_dir in $PATH | |
10652 | do | |
10653 | IFS=$as_save_IFS | |
10654 | test -z "$as_dir" && as_dir=. | |
10655 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10656 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
10657 | ac_cv_prog_ac_ct_WINDRES="windres" | |
10658 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10659 | break 2 | |
10660 | fi | |
b0cacab0 | 10661 | done |
93613951 TT |
10662 | done |
10663 | IFS=$as_save_IFS | |
b0cacab0 | 10664 | |
93613951 TT |
10665 | fi |
10666 | fi | |
10667 | ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES | |
10668 | if test -n "$ac_ct_WINDRES"; then | |
10669 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5 | |
10670 | $as_echo "$ac_ct_WINDRES" >&6; } | |
10671 | else | |
10672 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10673 | $as_echo "no" >&6; } | |
10674 | fi | |
10675 | ||
10676 | if test "x$ac_ct_WINDRES" = x; then | |
10677 | WINDRES="" | |
57aa50d4 | 10678 | else |
93613951 TT |
10679 | case $cross_compiling:$ac_tool_warned in |
10680 | yes:) | |
10681 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
10682 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
10683 | ac_tool_warned=yes ;; | |
10684 | esac | |
10685 | WINDRES=$ac_ct_WINDRES | |
57aa50d4 | 10686 | fi |
93613951 TT |
10687 | else |
10688 | WINDRES="$ac_cv_prog_WINDRES" | |
10689 | fi | |
10690 | ||
57aa50d4 TT |
10691 | fi |
10692 | ||
93613951 TT |
10693 | case "$host_os" in |
10694 | hpux*) LTLIBC="" ;; | |
10695 | *) LTLIBC="-lc" ;; | |
10696 | esac | |
57aa50d4 TT |
10697 | |
10698 | ||
10699 | ||
10700 | ||
10701 | ||
10702 | ||
10703 | ||
10704 | ||
10705 | ||
10706 | ||
b0cacab0 | 10707 | |
740837de | 10708 | |
b0cacab0 TT |
10709 | |
10710 | ||
10711 | ||
93613951 TT |
10712 | |
10713 | ||
10714 | ||
10715 | ||
10716 | ||
10717 | ||
10718 | ||
10719 | ||
10720 | ||
10721 | ||
10722 | ||
10723 | ||
10724 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5 | |
10725 | $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; } | |
10726 | if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then : | |
10727 | $as_echo_n "(cached) " >&6 | |
50e1e10f | 10728 | else |
93613951 TT |
10729 | gt_save_LIBS="$LIBS" |
10730 | LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation" | |
10731 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
10732 | /* end confdefs.h. */ | |
10733 | #include <CoreFoundation/CFPreferences.h> | |
10734 | int | |
10735 | main () | |
10736 | { | |
10737 | CFPreferencesCopyAppValue(NULL, NULL) | |
10738 | ; | |
10739 | return 0; | |
10740 | } | |
10741 | _ACEOF | |
10742 | if ac_fn_c_try_link "$LINENO"; then : | |
10743 | gt_cv_func_CFPreferencesCopyAppValue=yes | |
10744 | else | |
10745 | gt_cv_func_CFPreferencesCopyAppValue=no | |
50e1e10f | 10746 | fi |
93613951 TT |
10747 | rm -f core conftest.err conftest.$ac_objext \ |
10748 | conftest$ac_exeext conftest.$ac_ext | |
10749 | LIBS="$gt_save_LIBS" | |
50e1e10f | 10750 | fi |
93613951 TT |
10751 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5 |
10752 | $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; } | |
10753 | if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then | |
10754 | ||
10755 | $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h | |
10756 | ||
10757 | fi | |
10758 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5 | |
10759 | $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; } | |
10760 | if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then : | |
10761 | $as_echo_n "(cached) " >&6 | |
10762 | else | |
10763 | gt_save_LIBS="$LIBS" | |
10764 | LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation" | |
10765 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
10766 | /* end confdefs.h. */ | |
10767 | #include <CoreFoundation/CFLocale.h> | |
10768 | int | |
10769 | main () | |
10770 | { | |
10771 | CFLocaleCopyCurrent(); | |
10772 | ; | |
10773 | return 0; | |
10774 | } | |
10775 | _ACEOF | |
10776 | if ac_fn_c_try_link "$LINENO"; then : | |
10777 | gt_cv_func_CFLocaleCopyCurrent=yes | |
10778 | else | |
10779 | gt_cv_func_CFLocaleCopyCurrent=no | |
10780 | fi | |
10781 | rm -f core conftest.err conftest.$ac_objext \ | |
10782 | conftest$ac_exeext conftest.$ac_ext | |
10783 | LIBS="$gt_save_LIBS" | |
10784 | fi | |
10785 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5 | |
10786 | $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; } | |
10787 | if test $gt_cv_func_CFLocaleCopyCurrent = yes; then | |
10788 | ||
10789 | $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h | |
10790 | ||
10791 | fi | |
10792 | INTL_MACOSX_LIBS= | |
10793 | if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then | |
10794 | INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation" | |
10795 | fi | |
10796 | ||
50e1e10f | 10797 | |
b0cacab0 TT |
10798 | |
10799 | ||
10800 | ||
10801 | ||
57aa50d4 TT |
10802 | BUILD_INCLUDED_LIBINTL=no |
10803 | USE_INCLUDED_LIBINTL=no | |
10804 | ||
10805 | LIBINTL= | |
10806 | LTLIBINTL= | |
10807 | POSUB= | |
10808 | ||
93613951 TT |
10809 | case " $gt_needs " in |
10810 | *" need-formatstring-macros "*) gt_api_version=3 ;; | |
10811 | *" need-ngettext "*) gt_api_version=2 ;; | |
10812 | *) gt_api_version=1 ;; | |
10813 | esac | |
10814 | gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc" | |
10815 | gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl" | |
10816 | ||
57aa50d4 TT |
10817 | if test "$USE_NLS" = "yes"; then |
10818 | gt_use_preinstalled_gnugettext=no | |
b0cacab0 | 10819 | |
57aa50d4 TT |
10820 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included gettext is requested" >&5 |
10821 | $as_echo_n "checking whether included gettext is requested... " >&6; } | |
b0cacab0 | 10822 | |
57aa50d4 TT |
10823 | # Check whether --with-included-gettext was given. |
10824 | if test "${with_included_gettext+set}" = set; then : | |
10825 | withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval | |
50e1e10f | 10826 | else |
57aa50d4 | 10827 | nls_cv_force_use_gnu_gettext=no |
50e1e10f TT |
10828 | fi |
10829 | ||
57aa50d4 TT |
10830 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nls_cv_force_use_gnu_gettext" >&5 |
10831 | $as_echo "$nls_cv_force_use_gnu_gettext" >&6; } | |
b0cacab0 | 10832 | |
57aa50d4 TT |
10833 | nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext" |
10834 | if test "$nls_cv_force_use_gnu_gettext" != "yes"; then | |
b0cacab0 TT |
10835 | |
10836 | ||
93613951 TT |
10837 | if test $gt_api_version -ge 3; then |
10838 | gt_revision_test_code=' | |
10839 | #ifndef __GNU_GETTEXT_SUPPORTED_REVISION | |
10840 | #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1) | |
10841 | #endif | |
10842 | typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1]; | |
10843 | ' | |
10844 | else | |
10845 | gt_revision_test_code= | |
10846 | fi | |
10847 | if test $gt_api_version -ge 2; then | |
10848 | gt_expression_test_code=' + * ngettext ("", "", 0)' | |
10849 | else | |
10850 | gt_expression_test_code= | |
10851 | fi | |
b0cacab0 | 10852 | |
57aa50d4 TT |
10853 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5 |
10854 | $as_echo_n "checking for GNU gettext in libc... " >&6; } | |
93613951 | 10855 | if eval \${$gt_func_gnugettext_libc+:} false; then : |
39fd3d4f | 10856 | $as_echo_n "(cached) " >&6 |
7321d94e | 10857 | else |
57aa50d4 TT |
10858 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
10859 | /* end confdefs.h. */ | |
93613951 | 10860 | |
57aa50d4 | 10861 | #include <libintl.h> |
93613951 | 10862 | $gt_revision_test_code |
57aa50d4 TT |
10863 | extern int _nl_msg_cat_cntr; |
10864 | extern int *_nl_domain_bindings; | |
93613951 | 10865 | |
57aa50d4 TT |
10866 | int |
10867 | main () | |
10868 | { | |
93613951 | 10869 | |
57aa50d4 | 10870 | bindtextdomain ("", ""); |
93613951 TT |
10871 | return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings |
10872 | ||
57aa50d4 TT |
10873 | ; |
10874 | return 0; | |
10875 | } | |
10876 | _ACEOF | |
10877 | if ac_fn_c_try_link "$LINENO"; then : | |
93613951 | 10878 | eval "$gt_func_gnugettext_libc=yes" |
7321d94e | 10879 | else |
93613951 | 10880 | eval "$gt_func_gnugettext_libc=no" |
57aa50d4 TT |
10881 | fi |
10882 | rm -f core conftest.err conftest.$ac_objext \ | |
10883 | conftest$ac_exeext conftest.$ac_ext | |
10884 | fi | |
93613951 TT |
10885 | eval ac_res=\$$gt_func_gnugettext_libc |
10886 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
10887 | $as_echo "$ac_res" >&6; } | |
10888 | ||
10889 | if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then | |
10890 | ||
10891 | ||
10892 | ||
10893 | ||
b0cacab0 TT |
10894 | |
10895 | ||
10896 | ||
10897 | ||
57aa50d4 | 10898 | use_additional=yes |
b0cacab0 | 10899 | |
57aa50d4 TT |
10900 | acl_save_prefix="$prefix" |
10901 | prefix="$acl_final_prefix" | |
10902 | acl_save_exec_prefix="$exec_prefix" | |
10903 | exec_prefix="$acl_final_exec_prefix" | |
b0cacab0 | 10904 | |
57aa50d4 TT |
10905 | eval additional_includedir=\"$includedir\" |
10906 | eval additional_libdir=\"$libdir\" | |
b0cacab0 | 10907 | |
57aa50d4 TT |
10908 | exec_prefix="$acl_save_exec_prefix" |
10909 | prefix="$acl_save_prefix" | |
b0cacab0 TT |
10910 | |
10911 | ||
57aa50d4 TT |
10912 | # Check whether --with-libintl-prefix was given. |
10913 | if test "${with_libintl_prefix+set}" = set; then : | |
10914 | withval=$with_libintl_prefix; | |
10915 | if test "X$withval" = "Xno"; then | |
10916 | use_additional=no | |
10917 | else | |
10918 | if test "X$withval" = "X"; then | |
b0cacab0 | 10919 | |
57aa50d4 TT |
10920 | acl_save_prefix="$prefix" |
10921 | prefix="$acl_final_prefix" | |
10922 | acl_save_exec_prefix="$exec_prefix" | |
10923 | exec_prefix="$acl_final_exec_prefix" | |
b0cacab0 | 10924 | |
57aa50d4 TT |
10925 | eval additional_includedir=\"$includedir\" |
10926 | eval additional_libdir=\"$libdir\" | |
7321d94e | 10927 | |
57aa50d4 TT |
10928 | exec_prefix="$acl_save_exec_prefix" |
10929 | prefix="$acl_save_prefix" | |
7321d94e | 10930 | |
57aa50d4 TT |
10931 | else |
10932 | additional_includedir="$withval/include" | |
93613951 TT |
10933 | additional_libdir="$withval/$acl_libdirstem" |
10934 | if test "$acl_libdirstem2" != "$acl_libdirstem" \ | |
10935 | && ! test -d "$withval/$acl_libdirstem"; then | |
10936 | additional_libdir="$withval/$acl_libdirstem2" | |
10937 | fi | |
57aa50d4 TT |
10938 | fi |
10939 | fi | |
7321d94e | 10940 | |
7321d94e MK |
10941 | fi |
10942 | ||
57aa50d4 TT |
10943 | LIBINTL= |
10944 | LTLIBINTL= | |
10945 | INCINTL= | |
93613951 TT |
10946 | LIBINTL_PREFIX= |
10947 | HAVE_LIBINTL= | |
57aa50d4 TT |
10948 | rpathdirs= |
10949 | ltrpathdirs= | |
10950 | names_already_handled= | |
10951 | names_next_round='intl ' | |
10952 | while test -n "$names_next_round"; do | |
10953 | names_this_round="$names_next_round" | |
10954 | names_next_round= | |
10955 | for name in $names_this_round; do | |
10956 | already_handled= | |
10957 | for n in $names_already_handled; do | |
10958 | if test "$n" = "$name"; then | |
10959 | already_handled=yes | |
10960 | break | |
10961 | fi | |
50e1e10f | 10962 | done |
57aa50d4 TT |
10963 | if test -z "$already_handled"; then |
10964 | names_already_handled="$names_already_handled $name" | |
93613951 | 10965 | uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'` |
57aa50d4 TT |
10966 | eval value=\"\$HAVE_LIB$uppername\" |
10967 | if test -n "$value"; then | |
10968 | if test "$value" = yes; then | |
10969 | eval value=\"\$LIB$uppername\" | |
10970 | test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value" | |
10971 | eval value=\"\$LTLIB$uppername\" | |
10972 | test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value" | |
10973 | else | |
10974 | : | |
10975 | fi | |
10976 | else | |
10977 | found_dir= | |
10978 | found_la= | |
10979 | found_so= | |
10980 | found_a= | |
93613951 TT |
10981 | eval libname=\"$acl_libname_spec\" # typically: libname=lib$name |
10982 | if test -n "$acl_shlibext"; then | |
10983 | shrext=".$acl_shlibext" # typically: shrext=.so | |
10984 | else | |
10985 | shrext= | |
10986 | fi | |
57aa50d4 | 10987 | if test $use_additional = yes; then |
93613951 TT |
10988 | dir="$additional_libdir" |
10989 | if test -n "$acl_shlibext"; then | |
10990 | if test -f "$dir/$libname$shrext"; then | |
10991 | found_dir="$dir" | |
10992 | found_so="$dir/$libname$shrext" | |
10993 | else | |
10994 | if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then | |
10995 | ver=`(cd "$dir" && \ | |
10996 | for f in "$libname$shrext".*; do echo "$f"; done \ | |
10997 | | sed -e "s,^$libname$shrext\\\\.,," \ | |
10998 | | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ | |
10999 | | sed 1q ) 2>/dev/null` | |
11000 | if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then | |
11001 | found_dir="$dir" | |
11002 | found_so="$dir/$libname$shrext.$ver" | |
11003 | fi | |
11004 | else | |
11005 | eval library_names=\"$acl_library_names_spec\" | |
11006 | for f in $library_names; do | |
11007 | if test -f "$dir/$f"; then | |
11008 | found_dir="$dir" | |
11009 | found_so="$dir/$f" | |
11010 | break | |
11011 | fi | |
11012 | done | |
57aa50d4 TT |
11013 | fi |
11014 | fi | |
93613951 TT |
11015 | fi |
11016 | if test "X$found_dir" = "X"; then | |
11017 | if test -f "$dir/$libname.$acl_libext"; then | |
11018 | found_dir="$dir" | |
11019 | found_a="$dir/$libname.$acl_libext" | |
11020 | fi | |
11021 | fi | |
11022 | if test "X$found_dir" != "X"; then | |
11023 | if test -f "$dir/$libname.la"; then | |
11024 | found_la="$dir/$libname.la" | |
11025 | fi | |
57aa50d4 TT |
11026 | fi |
11027 | fi | |
11028 | if test "X$found_dir" = "X"; then | |
11029 | for x in $LDFLAGS $LTLIBINTL; do | |
39fd3d4f | 11030 | |
57aa50d4 TT |
11031 | acl_save_prefix="$prefix" |
11032 | prefix="$acl_final_prefix" | |
11033 | acl_save_exec_prefix="$exec_prefix" | |
11034 | exec_prefix="$acl_final_exec_prefix" | |
11035 | eval x=\"$x\" | |
11036 | exec_prefix="$acl_save_exec_prefix" | |
11037 | prefix="$acl_save_prefix" | |
3d05802f | 11038 | |
57aa50d4 TT |
11039 | case "$x" in |
11040 | -L*) | |
11041 | dir=`echo "X$x" | sed -e 's/^X-L//'` | |
93613951 TT |
11042 | if test -n "$acl_shlibext"; then |
11043 | if test -f "$dir/$libname$shrext"; then | |
57aa50d4 | 11044 | found_dir="$dir" |
93613951 TT |
11045 | found_so="$dir/$libname$shrext" |
11046 | else | |
11047 | if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then | |
11048 | ver=`(cd "$dir" && \ | |
11049 | for f in "$libname$shrext".*; do echo "$f"; done \ | |
11050 | | sed -e "s,^$libname$shrext\\\\.,," \ | |
11051 | | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ | |
11052 | | sed 1q ) 2>/dev/null` | |
11053 | if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then | |
11054 | found_dir="$dir" | |
11055 | found_so="$dir/$libname$shrext.$ver" | |
11056 | fi | |
11057 | else | |
11058 | eval library_names=\"$acl_library_names_spec\" | |
11059 | for f in $library_names; do | |
11060 | if test -f "$dir/$f"; then | |
11061 | found_dir="$dir" | |
11062 | found_so="$dir/$f" | |
11063 | break | |
11064 | fi | |
11065 | done | |
57aa50d4 TT |
11066 | fi |
11067 | fi | |
93613951 TT |
11068 | fi |
11069 | if test "X$found_dir" = "X"; then | |
11070 | if test -f "$dir/$libname.$acl_libext"; then | |
11071 | found_dir="$dir" | |
11072 | found_a="$dir/$libname.$acl_libext" | |
11073 | fi | |
11074 | fi | |
11075 | if test "X$found_dir" != "X"; then | |
11076 | if test -f "$dir/$libname.la"; then | |
11077 | found_la="$dir/$libname.la" | |
11078 | fi | |
57aa50d4 TT |
11079 | fi |
11080 | ;; | |
11081 | esac | |
11082 | if test "X$found_dir" != "X"; then | |
11083 | break | |
11084 | fi | |
11085 | done | |
11086 | fi | |
11087 | if test "X$found_dir" != "X"; then | |
11088 | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name" | |
11089 | if test "X$found_so" != "X"; then | |
93613951 TT |
11090 | if test "$enable_rpath" = no \ |
11091 | || test "X$found_dir" = "X/usr/$acl_libdirstem" \ | |
11092 | || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then | |
57aa50d4 TT |
11093 | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" |
11094 | else | |
11095 | haveit= | |
11096 | for x in $ltrpathdirs; do | |
11097 | if test "X$x" = "X$found_dir"; then | |
11098 | haveit=yes | |
11099 | break | |
11100 | fi | |
11101 | done | |
11102 | if test -z "$haveit"; then | |
11103 | ltrpathdirs="$ltrpathdirs $found_dir" | |
11104 | fi | |
93613951 | 11105 | if test "$acl_hardcode_direct" = yes; then |
57aa50d4 TT |
11106 | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" |
11107 | else | |
93613951 | 11108 | if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then |
57aa50d4 TT |
11109 | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" |
11110 | haveit= | |
11111 | for x in $rpathdirs; do | |
11112 | if test "X$x" = "X$found_dir"; then | |
11113 | haveit=yes | |
11114 | break | |
11115 | fi | |
11116 | done | |
11117 | if test -z "$haveit"; then | |
11118 | rpathdirs="$rpathdirs $found_dir" | |
11119 | fi | |
11120 | else | |
11121 | haveit= | |
11122 | for x in $LDFLAGS $LIBINTL; do | |
6ec9ef18 | 11123 | |
57aa50d4 TT |
11124 | acl_save_prefix="$prefix" |
11125 | prefix="$acl_final_prefix" | |
11126 | acl_save_exec_prefix="$exec_prefix" | |
11127 | exec_prefix="$acl_final_exec_prefix" | |
11128 | eval x=\"$x\" | |
11129 | exec_prefix="$acl_save_exec_prefix" | |
11130 | prefix="$acl_save_prefix" | |
d7f45af8 | 11131 | |
57aa50d4 TT |
11132 | if test "X$x" = "X-L$found_dir"; then |
11133 | haveit=yes | |
11134 | break | |
11135 | fi | |
11136 | done | |
11137 | if test -z "$haveit"; then | |
11138 | LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir" | |
11139 | fi | |
93613951 | 11140 | if test "$acl_hardcode_minus_L" != no; then |
57aa50d4 TT |
11141 | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" |
11142 | else | |
11143 | LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name" | |
11144 | fi | |
11145 | fi | |
11146 | fi | |
11147 | fi | |
11148 | else | |
11149 | if test "X$found_a" != "X"; then | |
11150 | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a" | |
11151 | else | |
11152 | LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name" | |
11153 | fi | |
11154 | fi | |
11155 | additional_includedir= | |
11156 | case "$found_dir" in | |
93613951 TT |
11157 | */$acl_libdirstem | */$acl_libdirstem/) |
11158 | basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'` | |
11159 | if test "$name" = 'intl'; then | |
11160 | LIBINTL_PREFIX="$basedir" | |
11161 | fi | |
11162 | additional_includedir="$basedir/include" | |
11163 | ;; | |
11164 | */$acl_libdirstem2 | */$acl_libdirstem2/) | |
11165 | basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'` | |
11166 | if test "$name" = 'intl'; then | |
11167 | LIBINTL_PREFIX="$basedir" | |
11168 | fi | |
57aa50d4 TT |
11169 | additional_includedir="$basedir/include" |
11170 | ;; | |
11171 | esac | |
11172 | if test "X$additional_includedir" != "X"; then | |
11173 | if test "X$additional_includedir" != "X/usr/include"; then | |
11174 | haveit= | |
11175 | if test "X$additional_includedir" = "X/usr/local/include"; then | |
11176 | if test -n "$GCC"; then | |
11177 | case $host_os in | |
93613951 | 11178 | linux* | gnu* | k*bsd*-gnu) haveit=yes;; |
57aa50d4 TT |
11179 | esac |
11180 | fi | |
11181 | fi | |
11182 | if test -z "$haveit"; then | |
11183 | for x in $CPPFLAGS $INCINTL; do | |
b0cacab0 | 11184 | |
57aa50d4 TT |
11185 | acl_save_prefix="$prefix" |
11186 | prefix="$acl_final_prefix" | |
11187 | acl_save_exec_prefix="$exec_prefix" | |
11188 | exec_prefix="$acl_final_exec_prefix" | |
11189 | eval x=\"$x\" | |
11190 | exec_prefix="$acl_save_exec_prefix" | |
11191 | prefix="$acl_save_prefix" | |
21c84b71 | 11192 | |
57aa50d4 TT |
11193 | if test "X$x" = "X-I$additional_includedir"; then |
11194 | haveit=yes | |
11195 | break | |
11196 | fi | |
11197 | done | |
11198 | if test -z "$haveit"; then | |
11199 | if test -d "$additional_includedir"; then | |
11200 | INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir" | |
11201 | fi | |
11202 | fi | |
11203 | fi | |
11204 | fi | |
11205 | fi | |
11206 | if test -n "$found_la"; then | |
11207 | save_libdir="$libdir" | |
11208 | case "$found_la" in | |
11209 | */* | *\\*) . "$found_la" ;; | |
11210 | *) . "./$found_la" ;; | |
11211 | esac | |
11212 | libdir="$save_libdir" | |
11213 | for dep in $dependency_libs; do | |
11214 | case "$dep" in | |
11215 | -L*) | |
11216 | additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` | |
93613951 TT |
11217 | if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \ |
11218 | && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then | |
57aa50d4 | 11219 | haveit= |
93613951 TT |
11220 | if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \ |
11221 | || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then | |
57aa50d4 TT |
11222 | if test -n "$GCC"; then |
11223 | case $host_os in | |
93613951 | 11224 | linux* | gnu* | k*bsd*-gnu) haveit=yes;; |
57aa50d4 TT |
11225 | esac |
11226 | fi | |
11227 | fi | |
11228 | if test -z "$haveit"; then | |
11229 | haveit= | |
11230 | for x in $LDFLAGS $LIBINTL; do | |
50e1e10f | 11231 | |
57aa50d4 TT |
11232 | acl_save_prefix="$prefix" |
11233 | prefix="$acl_final_prefix" | |
11234 | acl_save_exec_prefix="$exec_prefix" | |
11235 | exec_prefix="$acl_final_exec_prefix" | |
11236 | eval x=\"$x\" | |
11237 | exec_prefix="$acl_save_exec_prefix" | |
11238 | prefix="$acl_save_prefix" | |
50e1e10f | 11239 | |
57aa50d4 TT |
11240 | if test "X$x" = "X-L$additional_libdir"; then |
11241 | haveit=yes | |
11242 | break | |
11243 | fi | |
11244 | done | |
11245 | if test -z "$haveit"; then | |
11246 | if test -d "$additional_libdir"; then | |
11247 | LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir" | |
11248 | fi | |
11249 | fi | |
11250 | haveit= | |
11251 | for x in $LDFLAGS $LTLIBINTL; do | |
a4bf69d9 | 11252 | |
57aa50d4 TT |
11253 | acl_save_prefix="$prefix" |
11254 | prefix="$acl_final_prefix" | |
11255 | acl_save_exec_prefix="$exec_prefix" | |
11256 | exec_prefix="$acl_final_exec_prefix" | |
11257 | eval x=\"$x\" | |
11258 | exec_prefix="$acl_save_exec_prefix" | |
11259 | prefix="$acl_save_prefix" | |
50e1e10f | 11260 | |
57aa50d4 TT |
11261 | if test "X$x" = "X-L$additional_libdir"; then |
11262 | haveit=yes | |
11263 | break | |
11264 | fi | |
11265 | done | |
11266 | if test -z "$haveit"; then | |
11267 | if test -d "$additional_libdir"; then | |
11268 | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir" | |
11269 | fi | |
11270 | fi | |
11271 | fi | |
11272 | fi | |
11273 | ;; | |
11274 | -R*) | |
11275 | dir=`echo "X$dep" | sed -e 's/^X-R//'` | |
11276 | if test "$enable_rpath" != no; then | |
11277 | haveit= | |
11278 | for x in $rpathdirs; do | |
11279 | if test "X$x" = "X$dir"; then | |
11280 | haveit=yes | |
11281 | break | |
11282 | fi | |
11283 | done | |
11284 | if test -z "$haveit"; then | |
11285 | rpathdirs="$rpathdirs $dir" | |
11286 | fi | |
11287 | haveit= | |
11288 | for x in $ltrpathdirs; do | |
11289 | if test "X$x" = "X$dir"; then | |
11290 | haveit=yes | |
11291 | break | |
11292 | fi | |
11293 | done | |
11294 | if test -z "$haveit"; then | |
11295 | ltrpathdirs="$ltrpathdirs $dir" | |
11296 | fi | |
11297 | fi | |
11298 | ;; | |
11299 | -l*) | |
11300 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` | |
11301 | ;; | |
11302 | *.la) | |
11303 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` | |
11304 | ;; | |
11305 | *) | |
11306 | LIBINTL="${LIBINTL}${LIBINTL:+ }$dep" | |
11307 | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep" | |
11308 | ;; | |
11309 | esac | |
11310 | done | |
11311 | fi | |
11312 | else | |
11313 | LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name" | |
11314 | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name" | |
11315 | fi | |
11316 | fi | |
11317 | fi | |
11318 | done | |
11319 | done | |
11320 | if test "X$rpathdirs" != "X"; then | |
93613951 | 11321 | if test -n "$acl_hardcode_libdir_separator"; then |
57aa50d4 TT |
11322 | alldirs= |
11323 | for found_dir in $rpathdirs; do | |
93613951 | 11324 | alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir" |
57aa50d4 TT |
11325 | done |
11326 | acl_save_libdir="$libdir" | |
11327 | libdir="$alldirs" | |
93613951 | 11328 | eval flag=\"$acl_hardcode_libdir_flag_spec\" |
57aa50d4 TT |
11329 | libdir="$acl_save_libdir" |
11330 | LIBINTL="${LIBINTL}${LIBINTL:+ }$flag" | |
11331 | else | |
11332 | for found_dir in $rpathdirs; do | |
11333 | acl_save_libdir="$libdir" | |
11334 | libdir="$found_dir" | |
93613951 | 11335 | eval flag=\"$acl_hardcode_libdir_flag_spec\" |
57aa50d4 TT |
11336 | libdir="$acl_save_libdir" |
11337 | LIBINTL="${LIBINTL}${LIBINTL:+ }$flag" | |
11338 | done | |
11339 | fi | |
11340 | fi | |
11341 | if test "X$ltrpathdirs" != "X"; then | |
11342 | for found_dir in $ltrpathdirs; do | |
11343 | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir" | |
11344 | done | |
11345 | fi | |
b0cacab0 | 11346 | |
93613951 TT |
11347 | |
11348 | ||
11349 | ||
11350 | ||
11351 | ||
57aa50d4 TT |
11352 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5 |
11353 | $as_echo_n "checking for GNU gettext in libintl... " >&6; } | |
93613951 | 11354 | if eval \${$gt_func_gnugettext_libintl+:} false; then : |
39fd3d4f | 11355 | $as_echo_n "(cached) " >&6 |
6c133523 | 11356 | else |
57aa50d4 TT |
11357 | gt_save_CPPFLAGS="$CPPFLAGS" |
11358 | CPPFLAGS="$CPPFLAGS $INCINTL" | |
11359 | gt_save_LIBS="$LIBS" | |
11360 | LIBS="$LIBS $LIBINTL" | |
11361 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11362 | /* end confdefs.h. */ | |
93613951 | 11363 | |
57aa50d4 | 11364 | #include <libintl.h> |
93613951 | 11365 | $gt_revision_test_code |
57aa50d4 TT |
11366 | extern int _nl_msg_cat_cntr; |
11367 | extern | |
11368 | #ifdef __cplusplus | |
11369 | "C" | |
11370 | #endif | |
93613951 TT |
11371 | const char *_nl_expand_alias (const char *); |
11372 | ||
57aa50d4 TT |
11373 | int |
11374 | main () | |
11375 | { | |
93613951 | 11376 | |
57aa50d4 | 11377 | bindtextdomain ("", ""); |
93613951 TT |
11378 | return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("") |
11379 | ||
57aa50d4 TT |
11380 | ; |
11381 | return 0; | |
11382 | } | |
b0cacab0 | 11383 | _ACEOF |
57aa50d4 | 11384 | if ac_fn_c_try_link "$LINENO"; then : |
93613951 | 11385 | eval "$gt_func_gnugettext_libintl=yes" |
6c133523 | 11386 | else |
93613951 | 11387 | eval "$gt_func_gnugettext_libintl=no" |
6c133523 | 11388 | fi |
57aa50d4 TT |
11389 | rm -f core conftest.err conftest.$ac_objext \ |
11390 | conftest$ac_exeext conftest.$ac_ext | |
93613951 | 11391 | if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then |
57aa50d4 TT |
11392 | LIBS="$LIBS $LIBICONV" |
11393 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
da76d6b7 | 11394 | /* end confdefs.h. */ |
93613951 | 11395 | |
57aa50d4 | 11396 | #include <libintl.h> |
93613951 | 11397 | $gt_revision_test_code |
57aa50d4 TT |
11398 | extern int _nl_msg_cat_cntr; |
11399 | extern | |
11400 | #ifdef __cplusplus | |
11401 | "C" | |
da76d6b7 | 11402 | #endif |
93613951 TT |
11403 | const char *_nl_expand_alias (const char *); |
11404 | ||
57aa50d4 TT |
11405 | int |
11406 | main () | |
11407 | { | |
93613951 | 11408 | |
57aa50d4 | 11409 | bindtextdomain ("", ""); |
93613951 TT |
11410 | return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("") |
11411 | ||
57aa50d4 TT |
11412 | ; |
11413 | return 0; | |
11414 | } | |
da76d6b7 | 11415 | _ACEOF |
57aa50d4 TT |
11416 | if ac_fn_c_try_link "$LINENO"; then : |
11417 | LIBINTL="$LIBINTL $LIBICONV" | |
93613951 TT |
11418 | LTLIBINTL="$LTLIBINTL $LTLIBICONV" |
11419 | eval "$gt_func_gnugettext_libintl=yes" | |
6c133523 TT |
11420 | |
11421 | fi | |
57aa50d4 TT |
11422 | rm -f core conftest.err conftest.$ac_objext \ |
11423 | conftest$ac_exeext conftest.$ac_ext | |
11424 | fi | |
11425 | CPPFLAGS="$gt_save_CPPFLAGS" | |
11426 | LIBS="$gt_save_LIBS" | |
da76d6b7 | 11427 | fi |
93613951 TT |
11428 | eval ac_res=\$$gt_func_gnugettext_libintl |
11429 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
11430 | $as_echo "$ac_res" >&6; } | |
57aa50d4 | 11431 | fi |
b0cacab0 | 11432 | |
93613951 TT |
11433 | if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \ |
11434 | || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \ | |
57aa50d4 TT |
11435 | && test "$PACKAGE" != gettext-runtime \ |
11436 | && test "$PACKAGE" != gettext-tools; }; then | |
11437 | gt_use_preinstalled_gnugettext=yes | |
11438 | else | |
11439 | LIBINTL= | |
11440 | LTLIBINTL= | |
11441 | INCINTL= | |
11442 | fi | |
740837de | 11443 | |
b0cacab0 | 11444 | |
57aa50d4 TT |
11445 | if test "$gt_use_preinstalled_gnugettext" != "yes"; then |
11446 | nls_cv_use_gnu_gettext=yes | |
11447 | fi | |
11448 | fi | |
b0cacab0 | 11449 | |
57aa50d4 TT |
11450 | if test "$nls_cv_use_gnu_gettext" = "yes"; then |
11451 | BUILD_INCLUDED_LIBINTL=yes | |
11452 | USE_INCLUDED_LIBINTL=yes | |
93613951 TT |
11453 | LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV $LIBTHREAD" |
11454 | LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV $LTLIBTHREAD" | |
57aa50d4 TT |
11455 | LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'` |
11456 | fi | |
b0cacab0 | 11457 | |
93613951 | 11458 | CATOBJEXT= |
57aa50d4 TT |
11459 | if test "$gt_use_preinstalled_gnugettext" = "yes" \ |
11460 | || test "$nls_cv_use_gnu_gettext" = "yes"; then | |
11461 | CATOBJEXT=.gmo | |
11462 | fi | |
b0cacab0 TT |
11463 | |
11464 | ||
93613951 TT |
11465 | if test -n "$INTL_MACOSX_LIBS"; then |
11466 | if test "$gt_use_preinstalled_gnugettext" = "yes" \ | |
11467 | || test "$nls_cv_use_gnu_gettext" = "yes"; then | |
11468 | LIBINTL="$LIBINTL $INTL_MACOSX_LIBS" | |
11469 | LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS" | |
11470 | fi | |
11471 | fi | |
11472 | ||
57aa50d4 TT |
11473 | if test "$gt_use_preinstalled_gnugettext" = "yes" \ |
11474 | || test "$nls_cv_use_gnu_gettext" = "yes"; then | |
b0cacab0 | 11475 | |
57aa50d4 | 11476 | $as_echo "#define ENABLE_NLS 1" >>confdefs.h |
b0cacab0 | 11477 | |
57aa50d4 TT |
11478 | else |
11479 | USE_NLS=no | |
11480 | fi | |
11481 | fi | |
b0cacab0 | 11482 | |
57aa50d4 TT |
11483 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5 |
11484 | $as_echo_n "checking whether to use NLS... " >&6; } | |
11485 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5 | |
11486 | $as_echo "$USE_NLS" >&6; } | |
11487 | if test "$USE_NLS" = "yes"; then | |
11488 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5 | |
11489 | $as_echo_n "checking where the gettext function comes from... " >&6; } | |
11490 | if test "$gt_use_preinstalled_gnugettext" = "yes"; then | |
93613951 | 11491 | if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then |
57aa50d4 TT |
11492 | gt_source="external libintl" |
11493 | else | |
11494 | gt_source="libc" | |
11495 | fi | |
11496 | else | |
11497 | gt_source="included intl directory" | |
11498 | fi | |
11499 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5 | |
11500 | $as_echo "$gt_source" >&6; } | |
11501 | fi | |
b0cacab0 | 11502 | |
57aa50d4 | 11503 | if test "$USE_NLS" = "yes"; then |
b0cacab0 | 11504 | |
57aa50d4 | 11505 | if test "$gt_use_preinstalled_gnugettext" = "yes"; then |
93613951 | 11506 | if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then |
57aa50d4 TT |
11507 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5 |
11508 | $as_echo_n "checking how to link with libintl... " >&6; } | |
11509 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5 | |
11510 | $as_echo "$LIBINTL" >&6; } | |
b0cacab0 | 11511 | |
57aa50d4 TT |
11512 | for element in $INCINTL; do |
11513 | haveit= | |
11514 | for x in $CPPFLAGS; do | |
b0cacab0 | 11515 | |
57aa50d4 TT |
11516 | acl_save_prefix="$prefix" |
11517 | prefix="$acl_final_prefix" | |
11518 | acl_save_exec_prefix="$exec_prefix" | |
11519 | exec_prefix="$acl_final_exec_prefix" | |
11520 | eval x=\"$x\" | |
11521 | exec_prefix="$acl_save_exec_prefix" | |
11522 | prefix="$acl_save_prefix" | |
b0cacab0 | 11523 | |
57aa50d4 TT |
11524 | if test "X$x" = "X$element"; then |
11525 | haveit=yes | |
11526 | break | |
11527 | fi | |
11528 | done | |
11529 | if test -z "$haveit"; then | |
11530 | CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" | |
11531 | fi | |
11532 | done | |
b0cacab0 | 11533 | |
57aa50d4 | 11534 | fi |
b0cacab0 TT |
11535 | |
11536 | ||
57aa50d4 | 11537 | $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h |
b0cacab0 TT |
11538 | |
11539 | ||
57aa50d4 | 11540 | $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h |
b0cacab0 | 11541 | |
57aa50d4 | 11542 | fi |
b0cacab0 | 11543 | |
57aa50d4 TT |
11544 | POSUB=po |
11545 | fi | |
b0cacab0 TT |
11546 | |
11547 | ||
57aa50d4 TT |
11548 | if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then |
11549 | BUILD_INCLUDED_LIBINTL=yes | |
11550 | fi | |
b0cacab0 TT |
11551 | |
11552 | ||
11553 | ||
11554 | ||
11555 | ||
57aa50d4 TT |
11556 | nls_cv_header_intl= |
11557 | nls_cv_header_libgt= | |
b0cacab0 | 11558 | |
57aa50d4 | 11559 | DATADIRNAME=share |
762c7c65 | 11560 | |
106ad96d | 11561 | |
57aa50d4 | 11562 | INSTOBJEXT=.mo |
106ad96d | 11563 | |
e7cc6f7d | 11564 | |
57aa50d4 | 11565 | GENCAT=gencat |
e7cc6f7d | 11566 | |
3d05802f | 11567 | |
93613951 TT |
11568 | INTLOBJS= |
11569 | if test "$USE_INCLUDED_LIBINTL" = yes; then | |
57aa50d4 TT |
11570 | INTLOBJS="\$(GETTOBJS)" |
11571 | fi | |
6ec9ef18 | 11572 | |
d7f45af8 | 11573 | |
57aa50d4 | 11574 | INTL_LIBTOOL_SUFFIX_PREFIX= |
50e1e10f | 11575 | |
50e1e10f | 11576 | |
b0cacab0 | 11577 | |
57aa50d4 | 11578 | INTLLIBS="$LIBINTL" |
e1052144 | 11579 | |
b0cacab0 | 11580 | |
93636bde | 11581 | |
93636bde | 11582 | |
b0cacab0 | 11583 | |
93636bde | 11584 | |
50e1e10f | 11585 | |
57aa50d4 TT |
11586 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
11587 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } | |
11588 | set x ${MAKE-make} | |
11589 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | |
d6a4bcb5 | 11590 | if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : |
57aa50d4 TT |
11591 | $as_echo_n "(cached) " >&6 |
11592 | else | |
11593 | cat >conftest.make <<\_ACEOF | |
11594 | SHELL = /bin/sh | |
11595 | all: | |
11596 | @echo '@@@%%%=$(MAKE)=@@@%%%' | |
b0cacab0 | 11597 | _ACEOF |
d6a4bcb5 | 11598 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. |
57aa50d4 TT |
11599 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
11600 | *@@@%%%=?*=@@@%%%*) | |
11601 | eval ac_cv_prog_make_${ac_make}_set=yes;; | |
11602 | *) | |
11603 | eval ac_cv_prog_make_${ac_make}_set=no;; | |
e1052144 | 11604 | esac |
57aa50d4 | 11605 | rm -f conftest.make |
b0cacab0 | 11606 | fi |
57aa50d4 TT |
11607 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
11608 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
11609 | $as_echo "yes" >&6; } | |
11610 | SET_MAKE= | |
b0b9c4de | 11611 | else |
57aa50d4 TT |
11612 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11613 | $as_echo "no" >&6; } | |
11614 | SET_MAKE="MAKE=${MAKE-make}" | |
b0cacab0 | 11615 | fi |
b0cacab0 | 11616 | |
57aa50d4 TT |
11617 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU make" >&5 |
11618 | $as_echo_n "checking for GNU make... " >&6; } | |
d6a4bcb5 | 11619 | if ${_cv_gnu_make_command+:} false; then : |
57aa50d4 | 11620 | $as_echo_n "(cached) " >&6 |
39fd3d4f | 11621 | else |
57aa50d4 | 11622 | _cv_gnu_make_command='' ; |
e703ba4b | 11623 | if test -n "$FORCE_NATIVE_MAKE" ; then |
f3bc1561 TT |
11624 | MAKES="make" |
11625 | else | |
11626 | MAKES="make gmake gnumake" | |
11627 | fi | |
11628 | for a in "$MAKE" $MAKES ; do | |
57aa50d4 TT |
11629 | if test -z "$a" ; then continue ; fi ; |
11630 | if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) ; then | |
11631 | _cv_gnu_make_command=$a ; | |
11632 | break; | |
11633 | fi | |
11634 | done ; | |
50e1e10f | 11635 | |
50e1e10f | 11636 | fi |
57aa50d4 TT |
11637 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_cv_gnu_make_command" >&5 |
11638 | $as_echo "$_cv_gnu_make_command" >&6; } ; | |
11639 | if test "x$_cv_gnu_make_command" != "x" ; then | |
11640 | ifGNUmake='' ; | |
11641 | ifNotGNUmake='#' ; | |
11642 | else | |
11643 | ifGNUmake='#' ; | |
11644 | ifNotGNUmake='' ; | |
11645 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"Not found\"" >&5 | |
11646 | $as_echo "\"Not found\"" >&6; }; | |
11647 | fi | |
50e1e10f | 11648 | |
50e1e10f | 11649 | |
b0cacab0 | 11650 | |
57aa50d4 TT |
11651 | # Extract the first word of "ln", so it can be a program name with args. |
11652 | set dummy ln; ac_word=$2 | |
11653 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
11654 | $as_echo_n "checking for $ac_word... " >&6; } | |
d6a4bcb5 | 11655 | if ${ac_cv_path_LN+:} false; then : |
39fd3d4f | 11656 | $as_echo_n "(cached) " >&6 |
fff45483 | 11657 | else |
57aa50d4 TT |
11658 | case $LN in |
11659 | [\\/]* | ?:[\\/]*) | |
11660 | ac_cv_path_LN="$LN" # Let the user override the test with a path. | |
11661 | ;; | |
11662 | *) | |
11663 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11664 | for as_dir in $PATH | |
11665 | do | |
11666 | IFS=$as_save_IFS | |
11667 | test -z "$as_dir" && as_dir=. | |
11668 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d6a4bcb5 | 11669 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
57aa50d4 TT |
11670 | ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext" |
11671 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11672 | break 2 | |
11673 | fi | |
11674 | done | |
11675 | done | |
11676 | IFS=$as_save_IFS | |
6c65d251 | 11677 | |
57aa50d4 TT |
11678 | test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln" |
11679 | ;; | |
e1052144 | 11680 | esac |
fff45483 | 11681 | fi |
57aa50d4 TT |
11682 | LN=$ac_cv_path_LN |
11683 | if test -n "$LN"; then | |
11684 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5 | |
11685 | $as_echo "$LN" >&6; } | |
11686 | else | |
11687 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
11688 | $as_echo "no" >&6; } | |
fff45483 | 11689 | fi |
e1052144 | 11690 | |
fff45483 | 11691 | |
5abc0414 | 11692 | |
57aa50d4 TT |
11693 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 |
11694 | $as_echo_n "checking whether ln -s works... " >&6; } | |
11695 | LN_S=$as_ln_s | |
11696 | if test "$LN_S" = "ln -s"; then | |
11697 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
11698 | $as_echo "yes" >&6; } | |
11699 | else | |
11700 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 | |
11701 | $as_echo "no, using $LN_S" >&6; } | |
fff45483 | 11702 | fi |
6c65d251 | 11703 | |
57aa50d4 TT |
11704 | # Extract the first word of "mv", so it can be a program name with args. |
11705 | set dummy mv; ac_word=$2 | |
11706 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
11707 | $as_echo_n "checking for $ac_word... " >&6; } | |
d6a4bcb5 | 11708 | if ${ac_cv_path_MV+:} false; then : |
39fd3d4f | 11709 | $as_echo_n "(cached) " >&6 |
fff45483 | 11710 | else |
57aa50d4 TT |
11711 | case $MV in |
11712 | [\\/]* | ?:[\\/]*) | |
11713 | ac_cv_path_MV="$MV" # Let the user override the test with a path. | |
11714 | ;; | |
11715 | *) | |
11716 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11717 | for as_dir in $PATH | |
11718 | do | |
11719 | IFS=$as_save_IFS | |
11720 | test -z "$as_dir" && as_dir=. | |
11721 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d6a4bcb5 | 11722 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
57aa50d4 TT |
11723 | ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext" |
11724 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11725 | break 2 | |
11726 | fi | |
11727 | done | |
11728 | done | |
11729 | IFS=$as_save_IFS | |
6c65d251 | 11730 | |
57aa50d4 TT |
11731 | test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv" |
11732 | ;; | |
e1052144 | 11733 | esac |
b0cacab0 | 11734 | fi |
57aa50d4 TT |
11735 | MV=$ac_cv_path_MV |
11736 | if test -n "$MV"; then | |
11737 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5 | |
11738 | $as_echo "$MV" >&6; } | |
b0b9c4de | 11739 | else |
57aa50d4 TT |
11740 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11741 | $as_echo "no" >&6; } | |
39fd3d4f SJR |
11742 | fi |
11743 | ||
39fd3d4f | 11744 | |
57aa50d4 TT |
11745 | # Extract the first word of "cp", so it can be a program name with args. |
11746 | set dummy cp; ac_word=$2 | |
11747 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
11748 | $as_echo_n "checking for $ac_word... " >&6; } | |
d6a4bcb5 | 11749 | if ${ac_cv_path_CP+:} false; then : |
39fd3d4f | 11750 | $as_echo_n "(cached) " >&6 |
b0cacab0 | 11751 | else |
57aa50d4 TT |
11752 | case $CP in |
11753 | [\\/]* | ?:[\\/]*) | |
11754 | ac_cv_path_CP="$CP" # Let the user override the test with a path. | |
11755 | ;; | |
11756 | *) | |
11757 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11758 | for as_dir in $PATH | |
11759 | do | |
11760 | IFS=$as_save_IFS | |
11761 | test -z "$as_dir" && as_dir=. | |
11762 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d6a4bcb5 | 11763 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
57aa50d4 TT |
11764 | ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext" |
11765 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11766 | break 2 | |
11767 | fi | |
11768 | done | |
11769 | done | |
11770 | IFS=$as_save_IFS | |
39fd3d4f | 11771 | |
57aa50d4 TT |
11772 | test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp" |
11773 | ;; | |
e1052144 | 11774 | esac |
b0b9c4de | 11775 | fi |
57aa50d4 TT |
11776 | CP=$ac_cv_path_CP |
11777 | if test -n "$CP"; then | |
11778 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5 | |
11779 | $as_echo "$CP" >&6; } | |
b0cacab0 | 11780 | else |
57aa50d4 TT |
11781 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11782 | $as_echo "no" >&6; } | |
b0b9c4de | 11783 | fi |
b0b9c4de | 11784 | |
6c65d251 | 11785 | |
57aa50d4 TT |
11786 | # Extract the first word of "rm", so it can be a program name with args. |
11787 | set dummy rm; ac_word=$2 | |
11788 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
11789 | $as_echo_n "checking for $ac_word... " >&6; } | |
d6a4bcb5 | 11790 | if ${ac_cv_path_RM+:} false; then : |
39fd3d4f | 11791 | $as_echo_n "(cached) " >&6 |
6928adc9 | 11792 | else |
57aa50d4 TT |
11793 | case $RM in |
11794 | [\\/]* | ?:[\\/]*) | |
11795 | ac_cv_path_RM="$RM" # Let the user override the test with a path. | |
11796 | ;; | |
11797 | *) | |
11798 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11799 | for as_dir in $PATH | |
11800 | do | |
11801 | IFS=$as_save_IFS | |
11802 | test -z "$as_dir" && as_dir=. | |
11803 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d6a4bcb5 | 11804 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
57aa50d4 TT |
11805 | ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext" |
11806 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11807 | break 2 | |
11808 | fi | |
11809 | done | |
b0cacab0 | 11810 | done |
57aa50d4 | 11811 | IFS=$as_save_IFS |
6c65d251 | 11812 | |
57aa50d4 TT |
11813 | test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm" |
11814 | ;; | |
e1052144 | 11815 | esac |
6928adc9 | 11816 | fi |
57aa50d4 TT |
11817 | RM=$ac_cv_path_RM |
11818 | if test -n "$RM"; then | |
11819 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5 | |
11820 | $as_echo "$RM" >&6; } | |
b0cacab0 | 11821 | else |
57aa50d4 TT |
11822 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11823 | $as_echo "no" >&6; } | |
6928adc9 | 11824 | fi |
6928adc9 | 11825 | |
6c65d251 | 11826 | |
57aa50d4 TT |
11827 | # Extract the first word of "chmod", so it can be a program name with args. |
11828 | set dummy chmod; ac_word=$2 | |
11829 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
11830 | $as_echo_n "checking for $ac_word... " >&6; } | |
d6a4bcb5 | 11831 | if ${ac_cv_path_CHMOD+:} false; then : |
39fd3d4f | 11832 | $as_echo_n "(cached) " >&6 |
b0cacab0 | 11833 | else |
57aa50d4 TT |
11834 | case $CHMOD in |
11835 | [\\/]* | ?:[\\/]*) | |
11836 | ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path. | |
11837 | ;; | |
11838 | *) | |
11839 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11840 | for as_dir in $PATH | |
11841 | do | |
11842 | IFS=$as_save_IFS | |
11843 | test -z "$as_dir" && as_dir=. | |
11844 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d6a4bcb5 | 11845 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
57aa50d4 TT |
11846 | ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext" |
11847 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11848 | break 2 | |
11849 | fi | |
11850 | done | |
11851 | done | |
11852 | IFS=$as_save_IFS | |
39fd3d4f | 11853 | |
57aa50d4 TT |
11854 | test -z "$ac_cv_path_CHMOD" && ac_cv_path_CHMOD=":" |
11855 | ;; | |
e1052144 | 11856 | esac |
b0cacab0 | 11857 | fi |
57aa50d4 TT |
11858 | CHMOD=$ac_cv_path_CHMOD |
11859 | if test -n "$CHMOD"; then | |
11860 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5 | |
11861 | $as_echo "$CHMOD" >&6; } | |
b0cacab0 | 11862 | else |
57aa50d4 TT |
11863 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11864 | $as_echo "no" >&6; } | |
b0cacab0 | 11865 | fi |
39fd3d4f | 11866 | |
b0cacab0 | 11867 | |
57aa50d4 TT |
11868 | for ac_prog in gawk mawk nawk awk |
11869 | do | |
11870 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
11871 | set dummy $ac_prog; ac_word=$2 | |
11872 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
11873 | $as_echo_n "checking for $ac_word... " >&6; } | |
d6a4bcb5 | 11874 | if ${ac_cv_prog_AWK+:} false; then : |
39fd3d4f | 11875 | $as_echo_n "(cached) " >&6 |
b0cacab0 | 11876 | else |
57aa50d4 TT |
11877 | if test -n "$AWK"; then |
11878 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
b0cacab0 | 11879 | else |
57aa50d4 TT |
11880 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11881 | for as_dir in $PATH | |
11882 | do | |
11883 | IFS=$as_save_IFS | |
11884 | test -z "$as_dir" && as_dir=. | |
11885 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d6a4bcb5 | 11886 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
57aa50d4 TT |
11887 | ac_cv_prog_AWK="$ac_prog" |
11888 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11889 | break 2 | |
11890 | fi | |
11891 | done | |
11892 | done | |
11893 | IFS=$as_save_IFS | |
b0cacab0 | 11894 | |
b0cacab0 | 11895 | fi |
57aa50d4 TT |
11896 | fi |
11897 | AWK=$ac_cv_prog_AWK | |
11898 | if test -n "$AWK"; then | |
11899 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 | |
11900 | $as_echo "$AWK" >&6; } | |
b0cacab0 | 11901 | else |
57aa50d4 TT |
11902 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11903 | $as_echo "no" >&6; } | |
b0cacab0 | 11904 | fi |
b0cacab0 | 11905 | |
b0cacab0 | 11906 | |
57aa50d4 TT |
11907 | test -n "$AWK" && break |
11908 | done | |
b0cacab0 | 11909 | |
57aa50d4 TT |
11910 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 |
11911 | $as_echo_n "checking for egrep... " >&6; } | |
d6a4bcb5 | 11912 | if ${ac_cv_path_EGREP+:} false; then : |
57aa50d4 | 11913 | $as_echo_n "(cached) " >&6 |
b0cacab0 | 11914 | else |
57aa50d4 TT |
11915 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
11916 | then ac_cv_path_EGREP="$GREP -E" | |
11917 | else | |
11918 | if test -z "$EGREP"; then | |
11919 | ac_path_EGREP_found=false | |
11920 | # Loop through the user's path and test for each of PROGNAME-LIST | |
11921 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11922 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
11923 | do | |
11924 | IFS=$as_save_IFS | |
11925 | test -z "$as_dir" && as_dir=. | |
11926 | for ac_prog in egrep; do | |
11927 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11928 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | |
d6a4bcb5 | 11929 | as_fn_executable_p "$ac_path_EGREP" || continue |
57aa50d4 TT |
11930 | # Check for GNU ac_path_EGREP and select it if it is found. |
11931 | # Check for GNU $ac_path_EGREP | |
11932 | case `"$ac_path_EGREP" --version 2>&1` in | |
11933 | *GNU*) | |
11934 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | |
11935 | *) | |
11936 | ac_count=0 | |
11937 | $as_echo_n 0123456789 >"conftest.in" | |
11938 | while : | |
11939 | do | |
11940 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
11941 | mv "conftest.tmp" "conftest.in" | |
11942 | cp "conftest.in" "conftest.nl" | |
11943 | $as_echo 'EGREP' >> "conftest.nl" | |
11944 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
11945 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
11946 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
11947 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then | |
11948 | # Best one so far, save it but keep looking for a better one | |
11949 | ac_cv_path_EGREP="$ac_path_EGREP" | |
11950 | ac_path_EGREP_max=$ac_count | |
11951 | fi | |
11952 | # 10*(2^10) chars as input seems more than enough | |
11953 | test $ac_count -gt 10 && break | |
11954 | done | |
11955 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
e1052144 | 11956 | esac |
e1052144 | 11957 | |
57aa50d4 TT |
11958 | $ac_path_EGREP_found && break 3 |
11959 | done | |
b0cacab0 | 11960 | done |
57aa50d4 TT |
11961 | done |
11962 | IFS=$as_save_IFS | |
11963 | if test -z "$ac_cv_path_EGREP"; then | |
d6a4bcb5 | 11964 | as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
57aa50d4 | 11965 | fi |
b0cacab0 | 11966 | else |
57aa50d4 | 11967 | ac_cv_path_EGREP=$EGREP |
b0cacab0 | 11968 | fi |
e1052144 | 11969 | |
57aa50d4 | 11970 | fi |
b0cacab0 | 11971 | fi |
57aa50d4 TT |
11972 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 |
11973 | $as_echo "$ac_cv_path_EGREP" >&6; } | |
11974 | EGREP="$ac_cv_path_EGREP" | |
e1052144 | 11975 | |
b0cacab0 | 11976 | |
57aa50d4 TT |
11977 | # Extract the first word of "sed", so it can be a program name with args. |
11978 | set dummy sed; ac_word=$2 | |
11979 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
11980 | $as_echo_n "checking for $ac_word... " >&6; } | |
d6a4bcb5 | 11981 | if ${ac_cv_path_SED+:} false; then : |
57aa50d4 | 11982 | $as_echo_n "(cached) " >&6 |
b0cacab0 | 11983 | else |
57aa50d4 TT |
11984 | case $SED in |
11985 | [\\/]* | ?:[\\/]*) | |
11986 | ac_cv_path_SED="$SED" # Let the user override the test with a path. | |
11987 | ;; | |
11988 | *) | |
11989 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11990 | for as_dir in $PATH | |
11991 | do | |
11992 | IFS=$as_save_IFS | |
11993 | test -z "$as_dir" && as_dir=. | |
11994 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d6a4bcb5 | 11995 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
57aa50d4 TT |
11996 | ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext" |
11997 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11998 | break 2 | |
11999 | fi | |
b0cacab0 | 12000 | done |
57aa50d4 TT |
12001 | done |
12002 | IFS=$as_save_IFS | |
b0cacab0 | 12003 | |
57aa50d4 TT |
12004 | test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed" |
12005 | ;; | |
b0cacab0 | 12006 | esac |
57aa50d4 TT |
12007 | fi |
12008 | SED=$ac_cv_path_SED | |
12009 | if test -n "$SED"; then | |
12010 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5 | |
12011 | $as_echo "$SED" >&6; } | |
b0cacab0 | 12012 | else |
57aa50d4 TT |
12013 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12014 | $as_echo "no" >&6; } | |
b0cacab0 | 12015 | fi |
e1052144 | 12016 | |
b0cacab0 | 12017 | |
57aa50d4 TT |
12018 | # Extract the first word of "perl", so it can be a program name with args. |
12019 | set dummy perl; ac_word=$2 | |
12020 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
12021 | $as_echo_n "checking for $ac_word... " >&6; } | |
d6a4bcb5 | 12022 | if ${ac_cv_path_PERL+:} false; then : |
57aa50d4 TT |
12023 | $as_echo_n "(cached) " >&6 |
12024 | else | |
12025 | case $PERL in | |
12026 | [\\/]* | ?:[\\/]*) | |
12027 | ac_cv_path_PERL="$PERL" # Let the user override the test with a path. | |
12028 | ;; | |
12029 | *) | |
12030 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12031 | for as_dir in $PATH | |
12032 | do | |
12033 | IFS=$as_save_IFS | |
12034 | test -z "$as_dir" && as_dir=. | |
12035 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d6a4bcb5 | 12036 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
57aa50d4 TT |
12037 | ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext" |
12038 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12039 | break 2 | |
12040 | fi | |
b0cacab0 | 12041 | done |
57aa50d4 TT |
12042 | done |
12043 | IFS=$as_save_IFS | |
12044 | ||
12045 | test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl" | |
12046 | ;; | |
b0cacab0 | 12047 | esac |
57aa50d4 TT |
12048 | fi |
12049 | PERL=$ac_cv_path_PERL | |
12050 | if test -n "$PERL"; then | |
12051 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5 | |
12052 | $as_echo "$PERL" >&6; } | |
b0cacab0 | 12053 | else |
57aa50d4 TT |
12054 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12055 | $as_echo "no" >&6; } | |
12056 | fi | |
b0cacab0 | 12057 | |
b0cacab0 | 12058 | |
57aa50d4 TT |
12059 | # Extract the first word of "ldconfig", so it can be a program name with args. |
12060 | set dummy ldconfig; ac_word=$2 | |
12061 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
12062 | $as_echo_n "checking for $ac_word... " >&6; } | |
d6a4bcb5 | 12063 | if ${ac_cv_path_LDCONFIG+:} false; then : |
57aa50d4 | 12064 | $as_echo_n "(cached) " >&6 |
b0cacab0 | 12065 | else |
57aa50d4 TT |
12066 | case $LDCONFIG in |
12067 | [\\/]* | ?:[\\/]*) | |
12068 | ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path. | |
12069 | ;; | |
12070 | *) | |
12071 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12072 | for as_dir in $PATH | |
12073 | do | |
12074 | IFS=$as_save_IFS | |
12075 | test -z "$as_dir" && as_dir=. | |
12076 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d6a4bcb5 | 12077 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
57aa50d4 TT |
12078 | ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext" |
12079 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12080 | break 2 | |
12081 | fi | |
12082 | done | |
12083 | done | |
12084 | IFS=$as_save_IFS | |
b0cacab0 | 12085 | |
57aa50d4 TT |
12086 | test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG=":" |
12087 | ;; | |
12088 | esac | |
39fd3d4f | 12089 | fi |
57aa50d4 TT |
12090 | LDCONFIG=$ac_cv_path_LDCONFIG |
12091 | if test -n "$LDCONFIG"; then | |
12092 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDCONFIG" >&5 | |
12093 | $as_echo "$LDCONFIG" >&6; } | |
12094 | else | |
12095 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12096 | $as_echo "no" >&6; } | |
b0cacab0 | 12097 | fi |
39fd3d4f SJR |
12098 | |
12099 | ||
57aa50d4 TT |
12100 | if test -n "$ac_tool_prefix"; then |
12101 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. | |
12102 | set dummy ${ac_tool_prefix}ar; ac_word=$2 | |
12103 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
12104 | $as_echo_n "checking for $ac_word... " >&6; } | |
d6a4bcb5 | 12105 | if ${ac_cv_prog_AR+:} false; then : |
57aa50d4 TT |
12106 | $as_echo_n "(cached) " >&6 |
12107 | else | |
12108 | if test -n "$AR"; then | |
12109 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
12110 | else | |
12111 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12112 | for as_dir in $PATH | |
12113 | do | |
12114 | IFS=$as_save_IFS | |
12115 | test -z "$as_dir" && as_dir=. | |
12116 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d6a4bcb5 | 12117 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
57aa50d4 TT |
12118 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
12119 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12120 | break 2 | |
12121 | fi | |
12122 | done | |
12123 | done | |
12124 | IFS=$as_save_IFS | |
39fd3d4f | 12125 | |
57aa50d4 TT |
12126 | fi |
12127 | fi | |
12128 | AR=$ac_cv_prog_AR | |
12129 | if test -n "$AR"; then | |
12130 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 | |
12131 | $as_echo "$AR" >&6; } | |
12132 | else | |
12133 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12134 | $as_echo "no" >&6; } | |
12135 | fi | |
39fd3d4f | 12136 | |
b0cacab0 | 12137 | |
57aa50d4 TT |
12138 | fi |
12139 | if test -z "$ac_cv_prog_AR"; then | |
12140 | ac_ct_AR=$AR | |
12141 | # Extract the first word of "ar", so it can be a program name with args. | |
12142 | set dummy ar; ac_word=$2 | |
12143 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
12144 | $as_echo_n "checking for $ac_word... " >&6; } | |
d6a4bcb5 | 12145 | if ${ac_cv_prog_ac_ct_AR+:} false; then : |
39fd3d4f | 12146 | $as_echo_n "(cached) " >&6 |
b0cacab0 | 12147 | else |
57aa50d4 TT |
12148 | if test -n "$ac_ct_AR"; then |
12149 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
b0cacab0 | 12150 | else |
57aa50d4 TT |
12151 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12152 | for as_dir in $PATH | |
12153 | do | |
12154 | IFS=$as_save_IFS | |
12155 | test -z "$as_dir" && as_dir=. | |
12156 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d6a4bcb5 | 12157 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
57aa50d4 TT |
12158 | ac_cv_prog_ac_ct_AR="ar" |
12159 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12160 | break 2 | |
12161 | fi | |
12162 | done | |
12163 | done | |
12164 | IFS=$as_save_IFS | |
b0cacab0 | 12165 | |
b0cacab0 | 12166 | fi |
57aa50d4 TT |
12167 | fi |
12168 | ac_ct_AR=$ac_cv_prog_ac_ct_AR | |
12169 | if test -n "$ac_ct_AR"; then | |
12170 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 | |
12171 | $as_echo "$ac_ct_AR" >&6; } | |
b0cacab0 | 12172 | else |
57aa50d4 TT |
12173 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12174 | $as_echo "no" >&6; } | |
12175 | fi | |
b0cacab0 | 12176 | |
57aa50d4 TT |
12177 | if test "x$ac_ct_AR" = x; then |
12178 | AR="ar" | |
12179 | else | |
12180 | case $cross_compiling:$ac_tool_warned in | |
12181 | yes:) | |
12182 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
12183 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
12184 | ac_tool_warned=yes ;; | |
e1052144 | 12185 | esac |
57aa50d4 TT |
12186 | AR=$ac_ct_AR |
12187 | fi | |
b0cacab0 | 12188 | else |
57aa50d4 | 12189 | AR="$ac_cv_prog_AR" |
b0cacab0 | 12190 | fi |
e1052144 | 12191 | |
57aa50d4 TT |
12192 | if test -n "$ac_tool_prefix"; then |
12193 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
12194 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
12195 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
12196 | $as_echo_n "checking for $ac_word... " >&6; } | |
d6a4bcb5 | 12197 | if ${ac_cv_prog_RANLIB+:} false; then : |
57aa50d4 | 12198 | $as_echo_n "(cached) " >&6 |
b0cacab0 | 12199 | else |
57aa50d4 TT |
12200 | if test -n "$RANLIB"; then |
12201 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
12202 | else | |
12203 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12204 | for as_dir in $PATH | |
12205 | do | |
12206 | IFS=$as_save_IFS | |
12207 | test -z "$as_dir" && as_dir=. | |
12208 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d6a4bcb5 | 12209 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
57aa50d4 TT |
12210 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
12211 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12212 | break 2 | |
12213 | fi | |
12214 | done | |
b0cacab0 | 12215 | done |
57aa50d4 | 12216 | IFS=$as_save_IFS |
b0cacab0 | 12217 | |
b0cacab0 | 12218 | fi |
57aa50d4 TT |
12219 | fi |
12220 | RANLIB=$ac_cv_prog_RANLIB | |
12221 | if test -n "$RANLIB"; then | |
12222 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 | |
12223 | $as_echo "$RANLIB" >&6; } | |
b0cacab0 | 12224 | else |
57aa50d4 TT |
12225 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12226 | $as_echo "no" >&6; } | |
b0cacab0 | 12227 | fi |
b0cacab0 | 12228 | |
b0cacab0 | 12229 | |
57aa50d4 TT |
12230 | fi |
12231 | if test -z "$ac_cv_prog_RANLIB"; then | |
12232 | ac_ct_RANLIB=$RANLIB | |
12233 | # Extract the first word of "ranlib", so it can be a program name with args. | |
12234 | set dummy ranlib; ac_word=$2 | |
12235 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
12236 | $as_echo_n "checking for $ac_word... " >&6; } | |
d6a4bcb5 | 12237 | if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : |
57aa50d4 TT |
12238 | $as_echo_n "(cached) " >&6 |
12239 | else | |
12240 | if test -n "$ac_ct_RANLIB"; then | |
12241 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
b0cacab0 | 12242 | else |
57aa50d4 TT |
12243 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12244 | for as_dir in $PATH | |
12245 | do | |
12246 | IFS=$as_save_IFS | |
12247 | test -z "$as_dir" && as_dir=. | |
12248 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d6a4bcb5 | 12249 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
57aa50d4 TT |
12250 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
12251 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12252 | break 2 | |
12253 | fi | |
12254 | done | |
12255 | done | |
12256 | IFS=$as_save_IFS | |
29a5deed | 12257 | |
b0cacab0 | 12258 | fi |
57aa50d4 TT |
12259 | fi |
12260 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
12261 | if test -n "$ac_ct_RANLIB"; then | |
12262 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 | |
12263 | $as_echo "$ac_ct_RANLIB" >&6; } | |
b0cacab0 | 12264 | else |
57aa50d4 TT |
12265 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12266 | $as_echo "no" >&6; } | |
12267 | fi | |
b0cacab0 | 12268 | |
57aa50d4 TT |
12269 | if test "x$ac_ct_RANLIB" = x; then |
12270 | RANLIB=":" | |
b0cacab0 | 12271 | else |
57aa50d4 TT |
12272 | case $cross_compiling:$ac_tool_warned in |
12273 | yes:) | |
12274 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
12275 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
12276 | ac_tool_warned=yes ;; | |
e1052144 | 12277 | esac |
57aa50d4 TT |
12278 | RANLIB=$ac_ct_RANLIB |
12279 | fi | |
b0cacab0 | 12280 | else |
57aa50d4 | 12281 | RANLIB="$ac_cv_prog_RANLIB" |
b0cacab0 | 12282 | fi |
e1052144 | 12283 | |
57aa50d4 TT |
12284 | if test -n "$ac_tool_prefix"; then |
12285 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
12286 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
12287 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
12288 | $as_echo_n "checking for $ac_word... " >&6; } | |
d6a4bcb5 | 12289 | if ${ac_cv_prog_STRIP+:} false; then : |
57aa50d4 | 12290 | $as_echo_n "(cached) " >&6 |
b0cacab0 | 12291 | else |
57aa50d4 TT |
12292 | if test -n "$STRIP"; then |
12293 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
12294 | else | |
12295 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12296 | for as_dir in $PATH | |
12297 | do | |
12298 | IFS=$as_save_IFS | |
12299 | test -z "$as_dir" && as_dir=. | |
12300 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d6a4bcb5 | 12301 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
57aa50d4 TT |
12302 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
12303 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12304 | break 2 | |
12305 | fi | |
12306 | done | |
12307 | done | |
12308 | IFS=$as_save_IFS | |
b0cacab0 | 12309 | |
b0cacab0 | 12310 | fi |
b0cacab0 | 12311 | fi |
57aa50d4 TT |
12312 | STRIP=$ac_cv_prog_STRIP |
12313 | if test -n "$STRIP"; then | |
12314 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 | |
12315 | $as_echo "$STRIP" >&6; } | |
12316 | else | |
12317 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12318 | $as_echo "no" >&6; } | |
b0cacab0 | 12319 | fi |
e1052144 | 12320 | |
b0cacab0 | 12321 | |
57aa50d4 TT |
12322 | fi |
12323 | if test -z "$ac_cv_prog_STRIP"; then | |
12324 | ac_ct_STRIP=$STRIP | |
12325 | # Extract the first word of "strip", so it can be a program name with args. | |
12326 | set dummy strip; ac_word=$2 | |
12327 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
12328 | $as_echo_n "checking for $ac_word... " >&6; } | |
d6a4bcb5 | 12329 | if ${ac_cv_prog_ac_ct_STRIP+:} false; then : |
39fd3d4f | 12330 | $as_echo_n "(cached) " >&6 |
b0cacab0 | 12331 | else |
57aa50d4 TT |
12332 | if test -n "$ac_ct_STRIP"; then |
12333 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
12334 | else | |
12335 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12336 | for as_dir in $PATH | |
12337 | do | |
12338 | IFS=$as_save_IFS | |
12339 | test -z "$as_dir" && as_dir=. | |
12340 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d6a4bcb5 | 12341 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
57aa50d4 TT |
12342 | ac_cv_prog_ac_ct_STRIP="strip" |
12343 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12344 | break 2 | |
12345 | fi | |
12346 | done | |
12347 | done | |
12348 | IFS=$as_save_IFS | |
b0cacab0 | 12349 | |
b0cacab0 | 12350 | fi |
57aa50d4 TT |
12351 | fi |
12352 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
12353 | if test -n "$ac_ct_STRIP"; then | |
12354 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 | |
12355 | $as_echo "$ac_ct_STRIP" >&6; } | |
b0cacab0 | 12356 | else |
57aa50d4 TT |
12357 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12358 | $as_echo "no" >&6; } | |
12359 | fi | |
b0cacab0 | 12360 | |
57aa50d4 TT |
12361 | if test "x$ac_ct_STRIP" = x; then |
12362 | STRIP=":" | |
b0cacab0 | 12363 | else |
57aa50d4 TT |
12364 | case $cross_compiling:$ac_tool_warned in |
12365 | yes:) | |
12366 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
12367 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
12368 | ac_tool_warned=yes ;; | |
e1052144 | 12369 | esac |
57aa50d4 TT |
12370 | STRIP=$ac_ct_STRIP |
12371 | fi | |
b0cacab0 | 12372 | else |
57aa50d4 | 12373 | STRIP="$ac_cv_prog_STRIP" |
b0cacab0 | 12374 | fi |
e1052144 | 12375 | |
57aa50d4 TT |
12376 | # Extract the first word of "makeinfo", so it can be a program name with args. |
12377 | set dummy makeinfo; ac_word=$2 | |
12378 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
12379 | $as_echo_n "checking for $ac_word... " >&6; } | |
d6a4bcb5 | 12380 | if ${ac_cv_prog_MAKEINFO+:} false; then : |
57aa50d4 | 12381 | $as_echo_n "(cached) " >&6 |
07a0db15 | 12382 | else |
57aa50d4 TT |
12383 | if test -n "$MAKEINFO"; then |
12384 | ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test. | |
12385 | else | |
12386 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12387 | for as_dir in $PATH | |
12388 | do | |
12389 | IFS=$as_save_IFS | |
12390 | test -z "$as_dir" && as_dir=. | |
12391 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d6a4bcb5 | 12392 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
57aa50d4 TT |
12393 | ac_cv_prog_MAKEINFO="makeinfo" |
12394 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12395 | break 2 | |
12396 | fi | |
12397 | done | |
12398 | done | |
12399 | IFS=$as_save_IFS | |
b0cacab0 | 12400 | |
b0cacab0 TT |
12401 | fi |
12402 | fi | |
57aa50d4 TT |
12403 | MAKEINFO=$ac_cv_prog_MAKEINFO |
12404 | if test -n "$MAKEINFO"; then | |
12405 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5 | |
12406 | $as_echo "$MAKEINFO" >&6; } | |
b0cacab0 | 12407 | else |
57aa50d4 TT |
12408 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12409 | $as_echo "no" >&6; } | |
07a0db15 | 12410 | fi |
29a5deed TT |
12411 | |
12412 | ||
57aa50d4 | 12413 | if test "_$MAKEINFO" = "_"; then |
ca1de98a | 12414 | MAKEINFO="echo Makeinfo is missing. Info documentation will not be built." |
57aa50d4 TT |
12415 | else |
12416 | case "$MAKEINFO" in | |
12417 | */missing.*) | |
12418 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | |
12419 | *** Makeinfo is missing. Info documentation will not be built." >&5 | |
12420 | $as_echo "$as_me: WARNING: | |
12421 | *** Makeinfo is missing. Info documentation will not be built." >&2;} | |
12422 | ;; | |
12423 | *) | |
12424 | ;; | |
12425 | esac | |
b0cacab0 | 12426 | fi |
29a5deed | 12427 | |
b0cacab0 | 12428 | |
57aa50d4 TT |
12429 | # See if we need a separate native compiler. |
12430 | if test $cross_compiling = no; then | |
12431 | BUILD_CC="$CC" | |
b0cacab0 | 12432 | |
b0cacab0 | 12433 | else |
57aa50d4 TT |
12434 | for ac_prog in gcc cc |
12435 | do | |
12436 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
12437 | set dummy $ac_prog; ac_word=$2 | |
12438 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
12439 | $as_echo_n "checking for $ac_word... " >&6; } | |
d6a4bcb5 | 12440 | if ${ac_cv_prog_BUILD_CC+:} false; then : |
57aa50d4 | 12441 | $as_echo_n "(cached) " >&6 |
b0cacab0 | 12442 | else |
57aa50d4 TT |
12443 | if test -n "$BUILD_CC"; then |
12444 | ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test. | |
12445 | else | |
12446 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12447 | for as_dir in $PATH | |
12448 | do | |
12449 | IFS=$as_save_IFS | |
12450 | test -z "$as_dir" && as_dir=. | |
12451 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d6a4bcb5 | 12452 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
57aa50d4 TT |
12453 | ac_cv_prog_BUILD_CC="$ac_prog" |
12454 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12455 | break 2 | |
12456 | fi | |
12457 | done | |
12458 | done | |
12459 | IFS=$as_save_IFS | |
b0cacab0 | 12460 | |
b0cacab0 | 12461 | fi |
57aa50d4 TT |
12462 | fi |
12463 | BUILD_CC=$ac_cv_prog_BUILD_CC | |
12464 | if test -n "$BUILD_CC"; then | |
12465 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5 | |
12466 | $as_echo "$BUILD_CC" >&6; } | |
07a0db15 | 12467 | else |
57aa50d4 TT |
12468 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12469 | $as_echo "no" >&6; } | |
b0cacab0 | 12470 | fi |
b0cacab0 | 12471 | |
b0cacab0 | 12472 | |
57aa50d4 TT |
12473 | test -n "$BUILD_CC" && break |
12474 | done | |
b0cacab0 | 12475 | |
57aa50d4 | 12476 | fi |
3829c16c | 12477 | for ac_header in dirent.h errno.h execinfo.h getopt.h malloc.h mntent.h paths.h semaphore.h setjmp.h signal.h stdarg.h stdint.h stdlib.h termios.h termio.h unistd.h utime.h attr/xattr.h linux/falloc.h linux/fd.h linux/fsmap.h linux/major.h linux/loop.h linux/types.h net/if_dl.h netinet/in.h sys/acl.h sys/disklabel.h sys/disk.h sys/file.h sys/ioctl.h sys/key.h sys/mkdev.h sys/mman.h sys/mount.h sys/prctl.h sys/resource.h sys/select.h sys/socket.h sys/sockio.h sys/stat.h sys/syscall.h sys/sysctl.h sys/sysmacros.h sys/time.h sys/types.h sys/un.h sys/wait.h sys/xattr.h |
57aa50d4 TT |
12478 | do : |
12479 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
12480 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | |
d6a4bcb5 | 12481 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
57aa50d4 TT |
12482 | cat >>confdefs.h <<_ACEOF |
12483 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
b0cacab0 | 12484 | _ACEOF |
b0cacab0 | 12485 | |
b0cacab0 | 12486 | fi |
e1052144 | 12487 | |
b0cacab0 | 12488 | done |
93636bde | 12489 | |
ec3a69bb MA |
12490 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a dd(1) program that supports iflag=fullblock" >&5 |
12491 | $as_echo_n "checking for a dd(1) program that supports iflag=fullblock... " >&6; } | |
12492 | DD= | |
12493 | for i in dd gdd ; do | |
12494 | if "$i" if=/dev/null of=/dev/null count=1 bs=10k 2>/dev/null iflag=fullblock oflag=append ; then | |
12495 | DD=$i | |
12496 | break | |
12497 | fi | |
12498 | done | |
12499 | if test -n "$DD" ; then | |
12500 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DD" >&5 | |
12501 | $as_echo "$DD" >&6; } | |
12502 | else | |
12503 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found, using dd" >&5 | |
12504 | $as_echo "not found, using dd" >&6; } | |
12505 | DD=dd | |
12506 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No GNU-compatible dd(1) program found, expect some self-test failures." >&5 | |
12507 | $as_echo "$as_me: WARNING: No GNU-compatible dd(1) program found, expect some self-test failures." >&2;} | |
12508 | fi | |
12509 | ||
12510 | ||
57aa50d4 TT |
12511 | for ac_header in net/if.h |
12512 | do : | |
12513 | ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" " | |
12514 | #if HAVE_SYS_TYPES_H | |
12515 | #include <sys/types.h> | |
12516 | #endif | |
12517 | #if HAVE_SYS_SOCKET | |
12518 | #include <sys/socket.h> | |
12519 | #endif | |
29a5deed | 12520 | |
57aa50d4 | 12521 | " |
d6a4bcb5 | 12522 | if test "x$ac_cv_header_net_if_h" = xyes; then : |
57aa50d4 TT |
12523 | cat >>confdefs.h <<_ACEOF |
12524 | #define HAVE_NET_IF_H 1 | |
b0cacab0 | 12525 | _ACEOF |
b0cacab0 | 12526 | |
b0cacab0 | 12527 | fi |
e1052144 | 12528 | |
b0cacab0 | 12529 | done |
b0cacab0 | 12530 | |
57aa50d4 TT |
12531 | for ac_func in vprintf |
12532 | do : | |
12533 | ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf" | |
d6a4bcb5 | 12534 | if test "x$ac_cv_func_vprintf" = xyes; then : |
57aa50d4 TT |
12535 | cat >>confdefs.h <<_ACEOF |
12536 | #define HAVE_VPRINTF 1 | |
b0cacab0 | 12537 | _ACEOF |
b0cacab0 | 12538 | |
57aa50d4 | 12539 | ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt" |
d6a4bcb5 | 12540 | if test "x$ac_cv_func__doprnt" = xyes; then : |
b0cacab0 | 12541 | |
57aa50d4 | 12542 | $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h |
b0cacab0 | 12543 | |
50e1e10f | 12544 | fi |
29a5deed | 12545 | |
57aa50d4 TT |
12546 | fi |
12547 | done | |
29a5deed TT |
12548 | |
12549 | ||
57aa50d4 TT |
12550 | ac_fn_c_check_member "$LINENO" "struct dirent" "d_reclen" "ac_cv_member_struct_dirent_d_reclen" "#include <dirent.h> |
12551 | " | |
d6a4bcb5 | 12552 | if test "x$ac_cv_member_struct_dirent_d_reclen" = xyes; then : |
d1154eb4 TT |
12553 | |
12554 | $as_echo "#define HAVE_RECLEN_DIRENT 1" >>confdefs.h | |
50e1e10f | 12555 | |
2873927d TT |
12556 | fi |
12557 | ||
12558 | ac_fn_c_check_member "$LINENO" "struct stat" "st_atim" "ac_cv_member_struct_stat_st_atim" "$ac_includes_default" | |
12559 | if test "x$ac_cv_member_struct_stat_st_atim" = xyes; then : | |
12560 | ||
12561 | cat >>confdefs.h <<_ACEOF | |
12562 | #define HAVE_STRUCT_STAT_ST_ATIM 1 | |
12563 | _ACEOF | |
12564 | ||
12565 | ||
b0cacab0 | 12566 | fi |
93636bde | 12567 | |
57aa50d4 TT |
12568 | ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "#include <sys/types.h> |
12569 | " | |
d6a4bcb5 | 12570 | if test "x$ac_cv_type_ssize_t" = xyes; then : |
d1154eb4 TT |
12571 | |
12572 | $as_echo "#define HAVE_TYPE_SSIZE_T 1" >>confdefs.h | |
b0cacab0 | 12573 | |
57aa50d4 | 12574 | fi |
b0cacab0 | 12575 | |
57aa50d4 TT |
12576 | ac_fn_c_check_decl "$LINENO" "llseek" "ac_cv_have_decl_llseek" "#include <unistd.h> |
12577 | " | |
d6a4bcb5 | 12578 | if test "x$ac_cv_have_decl_llseek" = xyes; then : |
d1154eb4 TT |
12579 | |
12580 | $as_echo "#define HAVE_LLSEEK_PROTOTYPE 1" >>confdefs.h | |
b0cacab0 | 12581 | |
b0cacab0 | 12582 | fi |
e1052144 | 12583 | |
57aa50d4 TT |
12584 | ac_fn_c_check_decl "$LINENO" "lseek64" "ac_cv_have_decl_lseek64" "#define _LARGEFILE_SOURCE |
12585 | #define _LARGEFILE64_SOURCE | |
12586 | #include <unistd.h> | |
12587 | " | |
d6a4bcb5 | 12588 | if test "x$ac_cv_have_decl_lseek64" = xyes; then : |
d1154eb4 TT |
12589 | |
12590 | $as_echo "#define HAVE_LSEEK64_PROTOTYPE 1" >>confdefs.h | |
b0cacab0 | 12591 | |
b0cacab0 | 12592 | fi |
b0cacab0 | 12593 | |
57aa50d4 TT |
12594 | # The cast to long int works around a bug in the HP C Compiler |
12595 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
12596 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
12597 | # This bug is HP SR number 8606223364. | |
12598 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5 | |
12599 | $as_echo_n "checking size of short... " >&6; } | |
d6a4bcb5 | 12600 | if ${ac_cv_sizeof_short+:} false; then : |
57aa50d4 | 12601 | $as_echo_n "(cached) " >&6 |
07a0db15 | 12602 | else |
57aa50d4 | 12603 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then : |
b0cacab0 | 12604 | |
b0cacab0 | 12605 | else |
57aa50d4 TT |
12606 | if test "$ac_cv_type_short" = yes; then |
12607 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
12608 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
d6a4bcb5 TB |
12609 | as_fn_error 77 "cannot compute sizeof (short) |
12610 | See \`config.log' for more details" "$LINENO" 5; } | |
57aa50d4 TT |
12611 | else |
12612 | ac_cv_sizeof_short=0 | |
12613 | fi | |
07a0db15 | 12614 | fi |
b0cacab0 | 12615 | |
b0cacab0 | 12616 | fi |
57aa50d4 TT |
12617 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5 |
12618 | $as_echo "$ac_cv_sizeof_short" >&6; } | |
e1052144 | 12619 | |
93636bde | 12620 | |
57aa50d4 TT |
12621 | |
12622 | cat >>confdefs.h <<_ACEOF | |
12623 | #define SIZEOF_SHORT $ac_cv_sizeof_short | |
b0cacab0 | 12624 | _ACEOF |
57aa50d4 TT |
12625 | |
12626 | ||
12627 | # The cast to long int works around a bug in the HP C Compiler | |
12628 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
12629 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
12630 | # This bug is HP SR number 8606223364. | |
12631 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5 | |
12632 | $as_echo_n "checking size of int... " >&6; } | |
d6a4bcb5 | 12633 | if ${ac_cv_sizeof_int+:} false; then : |
57aa50d4 | 12634 | $as_echo_n "(cached) " >&6 |
07a0db15 | 12635 | else |
57aa50d4 | 12636 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then : |
93636bde | 12637 | |
57aa50d4 TT |
12638 | else |
12639 | if test "$ac_cv_type_int" = yes; then | |
12640 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
12641 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
d6a4bcb5 TB |
12642 | as_fn_error 77 "cannot compute sizeof (int) |
12643 | See \`config.log' for more details" "$LINENO" 5; } | |
57aa50d4 TT |
12644 | else |
12645 | ac_cv_sizeof_int=0 | |
12646 | fi | |
07a0db15 | 12647 | fi |
e1052144 | 12648 | |
b0cacab0 | 12649 | fi |
57aa50d4 TT |
12650 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5 |
12651 | $as_echo "$ac_cv_sizeof_int" >&6; } | |
e1052144 | 12652 | |
93636bde | 12653 | |
57aa50d4 TT |
12654 | |
12655 | cat >>confdefs.h <<_ACEOF | |
12656 | #define SIZEOF_INT $ac_cv_sizeof_int | |
b0cacab0 | 12657 | _ACEOF |
b0cacab0 | 12658 | |
e1052144 | 12659 | |
57aa50d4 TT |
12660 | # The cast to long int works around a bug in the HP C Compiler |
12661 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
12662 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
12663 | # This bug is HP SR number 8606223364. | |
12664 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 | |
12665 | $as_echo_n "checking size of long... " >&6; } | |
d6a4bcb5 | 12666 | if ${ac_cv_sizeof_long+:} false; then : |
57aa50d4 TT |
12667 | $as_echo_n "(cached) " >&6 |
12668 | else | |
12669 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then : | |
12670 | ||
12671 | else | |
12672 | if test "$ac_cv_type_long" = yes; then | |
12673 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
39fd3d4f | 12674 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
d6a4bcb5 TB |
12675 | as_fn_error 77 "cannot compute sizeof (long) |
12676 | See \`config.log' for more details" "$LINENO" 5; } | |
29a5deed | 12677 | else |
57aa50d4 TT |
12678 | ac_cv_sizeof_long=0 |
12679 | fi | |
12680 | fi | |
39fd3d4f | 12681 | |
57aa50d4 TT |
12682 | fi |
12683 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5 | |
12684 | $as_echo "$ac_cv_sizeof_long" >&6; } | |
39fd3d4f | 12685 | |
57aa50d4 TT |
12686 | |
12687 | ||
12688 | cat >>confdefs.h <<_ACEOF | |
12689 | #define SIZEOF_LONG $ac_cv_sizeof_long | |
39fd3d4f | 12690 | _ACEOF |
57aa50d4 TT |
12691 | |
12692 | ||
12693 | # The cast to long int works around a bug in the HP C Compiler | |
12694 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
12695 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
12696 | # This bug is HP SR number 8606223364. | |
12697 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5 | |
12698 | $as_echo_n "checking size of long long... " >&6; } | |
d6a4bcb5 | 12699 | if ${ac_cv_sizeof_long_long+:} false; then : |
57aa50d4 | 12700 | $as_echo_n "(cached) " >&6 |
39fd3d4f | 12701 | else |
57aa50d4 | 12702 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then : |
39fd3d4f | 12703 | |
57aa50d4 TT |
12704 | else |
12705 | if test "$ac_cv_type_long_long" = yes; then | |
12706 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
39fd3d4f | 12707 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
d6a4bcb5 TB |
12708 | as_fn_error 77 "cannot compute sizeof (long long) |
12709 | See \`config.log' for more details" "$LINENO" 5; } | |
39fd3d4f SJR |
12710 | else |
12711 | ac_cv_sizeof_long_long=0 | |
12712 | fi | |
12713 | fi | |
57aa50d4 | 12714 | |
39fd3d4f | 12715 | fi |
57aa50d4 | 12716 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5 |
39fd3d4f SJR |
12717 | $as_echo "$ac_cv_sizeof_long_long" >&6; } |
12718 | ||
12719 | ||
12720 | ||
12721 | cat >>confdefs.h <<_ACEOF | |
12722 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long | |
12723 | _ACEOF | |
12724 | ||
12725 | ||
cc68e8a6 TT |
12726 | # The cast to long int works around a bug in the HP C Compiler |
12727 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
12728 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
12729 | # This bug is HP SR number 8606223364. | |
12730 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5 | |
12731 | $as_echo_n "checking size of off_t... " >&6; } | |
12732 | if ${ac_cv_sizeof_off_t+:} false; then : | |
12733 | $as_echo_n "(cached) " >&6 | |
12734 | else | |
12735 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default"; then : | |
12736 | ||
12737 | else | |
12738 | if test "$ac_cv_type_off_t" = yes; then | |
12739 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
12740 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
12741 | as_fn_error 77 "cannot compute sizeof (off_t) | |
12742 | See \`config.log' for more details" "$LINENO" 5; } | |
12743 | else | |
12744 | ac_cv_sizeof_off_t=0 | |
12745 | fi | |
12746 | fi | |
12747 | ||
12748 | fi | |
12749 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5 | |
12750 | $as_echo "$ac_cv_sizeof_off_t" >&6; } | |
12751 | ||
12752 | ||
12753 | ||
12754 | cat >>confdefs.h <<_ACEOF | |
12755 | #define SIZEOF_OFF_T $ac_cv_sizeof_off_t | |
12756 | _ACEOF | |
12757 | ||
12758 | ||
2dd680f3 TT |
12759 | # The cast to long int works around a bug in the HP C Compiler |
12760 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
12761 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
12762 | # This bug is HP SR number 8606223364. | |
12763 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5 | |
12764 | $as_echo_n "checking size of time_t... " >&6; } | |
12765 | if ${ac_cv_sizeof_time_t+:} false; then : | |
12766 | $as_echo_n "(cached) " >&6 | |
12767 | else | |
12768 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t" "$ac_includes_default"; then : | |
12769 | ||
12770 | else | |
12771 | if test "$ac_cv_type_time_t" = yes; then | |
12772 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
12773 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
12774 | as_fn_error 77 "cannot compute sizeof (time_t) | |
12775 | See \`config.log' for more details" "$LINENO" 5; } | |
12776 | else | |
12777 | ac_cv_sizeof_time_t=0 | |
12778 | fi | |
12779 | fi | |
12780 | ||
12781 | fi | |
12782 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5 | |
12783 | $as_echo "$ac_cv_sizeof_time_t" >&6; } | |
12784 | ||
12785 | ||
12786 | ||
12787 | cat >>confdefs.h <<_ACEOF | |
12788 | #define SIZEOF_TIME_T $ac_cv_sizeof_time_t | |
12789 | _ACEOF | |
12790 | ||
12791 | ||
39fd3d4f SJR |
12792 | SIZEOF_SHORT=$ac_cv_sizeof_short |
12793 | SIZEOF_INT=$ac_cv_sizeof_int | |
12794 | SIZEOF_LONG=$ac_cv_sizeof_long | |
12795 | SIZEOF_LONG_LONG=$ac_cv_sizeof_long_long | |
cc68e8a6 | 12796 | SIZEOF_OFF_T=$ac_cv_sizeof_off_t |
2dd680f3 TT |
12797 | SIZEOF_TIME_T=$ac_cv_sizeof_time_t |
12798 | ||
cc68e8a6 | 12799 | |
39fd3d4f SJR |
12800 | |
12801 | ||
12802 | ||
12803 | ||
57aa50d4 | 12804 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 |
39fd3d4f | 12805 | $as_echo_n "checking whether byte ordering is bigendian... " >&6; } |
d6a4bcb5 | 12806 | if ${ac_cv_c_bigendian+:} false; then : |
39fd3d4f SJR |
12807 | $as_echo_n "(cached) " >&6 |
12808 | else | |
12809 | ac_cv_c_bigendian=unknown | |
12810 | # See if we're dealing with a universal compiler. | |
57aa50d4 | 12811 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
39fd3d4f SJR |
12812 | /* end confdefs.h. */ |
12813 | #ifndef __APPLE_CC__ | |
12814 | not a universal capable compiler | |
12815 | #endif | |
12816 | typedef int dummy; | |
12817 | ||
12818 | _ACEOF | |
57aa50d4 | 12819 | if ac_fn_c_try_compile "$LINENO"; then : |
39fd3d4f SJR |
12820 | |
12821 | # Check for potential -arch flags. It is not universal unless | |
57aa50d4 TT |
12822 | # there are at least two -arch flags with different values. |
12823 | ac_arch= | |
12824 | ac_prev= | |
12825 | for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do | |
12826 | if test -n "$ac_prev"; then | |
12827 | case $ac_word in | |
12828 | i?86 | x86_64 | ppc | ppc64) | |
12829 | if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then | |
12830 | ac_arch=$ac_word | |
12831 | else | |
12832 | ac_cv_c_bigendian=universal | |
12833 | break | |
12834 | fi | |
12835 | ;; | |
12836 | esac | |
12837 | ac_prev= | |
12838 | elif test "x$ac_word" = "x-arch"; then | |
12839 | ac_prev=arch | |
12840 | fi | |
12841 | done | |
39fd3d4f | 12842 | fi |
39fd3d4f SJR |
12843 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
12844 | if test $ac_cv_c_bigendian = unknown; then | |
12845 | # See if sys/param.h defines the BYTE_ORDER macro. | |
57aa50d4 | 12846 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
39fd3d4f SJR |
12847 | /* end confdefs.h. */ |
12848 | #include <sys/types.h> | |
12849 | #include <sys/param.h> | |
12850 | ||
12851 | int | |
12852 | main () | |
12853 | { | |
12854 | #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ | |
12855 | && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ | |
12856 | && LITTLE_ENDIAN) | |
12857 | bogus endian macros | |
12858 | #endif | |
12859 | ||
12860 | ; | |
12861 | return 0; | |
12862 | } | |
12863 | _ACEOF | |
57aa50d4 | 12864 | if ac_fn_c_try_compile "$LINENO"; then : |
39fd3d4f | 12865 | # It does; now see whether it defined to BIG_ENDIAN or not. |
57aa50d4 | 12866 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
39fd3d4f SJR |
12867 | /* end confdefs.h. */ |
12868 | #include <sys/types.h> | |
12869 | #include <sys/param.h> | |
12870 | ||
b0cacab0 TT |
12871 | int |
12872 | main () | |
07a0db15 | 12873 | { |
39fd3d4f SJR |
12874 | #if BYTE_ORDER != BIG_ENDIAN |
12875 | not big endian | |
12876 | #endif | |
b0cacab0 TT |
12877 | |
12878 | ; | |
12879 | return 0; | |
07a0db15 | 12880 | } |
b0cacab0 | 12881 | _ACEOF |
57aa50d4 | 12882 | if ac_fn_c_try_compile "$LINENO"; then : |
39fd3d4f | 12883 | ac_cv_c_bigendian=yes |
b0cacab0 | 12884 | else |
57aa50d4 | 12885 | ac_cv_c_bigendian=no |
fc6d9d51 | 12886 | fi |
39fd3d4f | 12887 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
39fd3d4f | 12888 | fi |
39fd3d4f SJR |
12889 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
12890 | fi | |
12891 | if test $ac_cv_c_bigendian = unknown; then | |
12892 | # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). | |
57aa50d4 | 12893 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
b0cacab0 | 12894 | /* end confdefs.h. */ |
39fd3d4f | 12895 | #include <limits.h> |
877eb6d9 | 12896 | |
b0cacab0 TT |
12897 | int |
12898 | main () | |
12899 | { | |
39fd3d4f SJR |
12900 | #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) |
12901 | bogus endian macros | |
12902 | #endif | |
b0cacab0 TT |
12903 | |
12904 | ; | |
12905 | return 0; | |
12906 | } | |
b0cacab0 | 12907 | _ACEOF |
57aa50d4 TT |
12908 | if ac_fn_c_try_compile "$LINENO"; then : |
12909 | # It does; now see whether it defined to _BIG_ENDIAN or not. | |
12910 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
b0cacab0 | 12911 | /* end confdefs.h. */ |
39fd3d4f | 12912 | #include <limits.h> |
877eb6d9 | 12913 | |
b0cacab0 TT |
12914 | int |
12915 | main () | |
12916 | { | |
39fd3d4f SJR |
12917 | #ifndef _BIG_ENDIAN |
12918 | not big endian | |
12919 | #endif | |
b0cacab0 TT |
12920 | |
12921 | ; | |
12922 | return 0; | |
12923 | } | |
12924 | _ACEOF | |
57aa50d4 | 12925 | if ac_fn_c_try_compile "$LINENO"; then : |
877eb6d9 TT |
12926 | ac_cv_c_bigendian=yes |
12927 | else | |
57aa50d4 | 12928 | ac_cv_c_bigendian=no |
877eb6d9 | 12929 | fi |
e1052144 | 12930 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
39fd3d4f | 12931 | fi |
39fd3d4f SJR |
12932 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
12933 | fi | |
12934 | if test $ac_cv_c_bigendian = unknown; then | |
12935 | # Compile a test program. | |
57aa50d4 | 12936 | if test "$cross_compiling" = yes; then : |
39fd3d4f | 12937 | # Try to guess by grepping values from an object file. |
57aa50d4 | 12938 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
b0cacab0 | 12939 | /* end confdefs.h. */ |
39fd3d4f SJR |
12940 | short int ascii_mm[] = |
12941 | { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; | |
12942 | short int ascii_ii[] = | |
12943 | { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; | |
12944 | int use_ascii (int i) { | |
12945 | return ascii_mm[i] + ascii_ii[i]; | |
12946 | } | |
12947 | short int ebcdic_ii[] = | |
12948 | { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; | |
12949 | short int ebcdic_mm[] = | |
12950 | { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; | |
12951 | int use_ebcdic (int i) { | |
12952 | return ebcdic_mm[i] + ebcdic_ii[i]; | |
12953 | } | |
12954 | extern int foo; | |
12955 | ||
b0cacab0 TT |
12956 | int |
12957 | main () | |
12958 | { | |
39fd3d4f | 12959 | return use_ascii (foo) == use_ebcdic (foo); |
b0cacab0 TT |
12960 | ; |
12961 | return 0; | |
12962 | } | |
12963 | _ACEOF | |
57aa50d4 | 12964 | if ac_fn_c_try_compile "$LINENO"; then : |
39fd3d4f SJR |
12965 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then |
12966 | ac_cv_c_bigendian=yes | |
12967 | fi | |
12968 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then | |
12969 | if test "$ac_cv_c_bigendian" = unknown; then | |
12970 | ac_cv_c_bigendian=no | |
12971 | else | |
12972 | # finding both strings is unlikely to happen, but who knows? | |
12973 | ac_cv_c_bigendian=unknown | |
12974 | fi | |
12975 | fi | |
b0cacab0 | 12976 | fi |
e1052144 | 12977 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
877eb6d9 | 12978 | else |
57aa50d4 | 12979 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
b0cacab0 | 12980 | /* end confdefs.h. */ |
e1052144 | 12981 | $ac_includes_default |
b0cacab0 TT |
12982 | int |
12983 | main () | |
12984 | { | |
e1052144 | 12985 | |
39fd3d4f SJR |
12986 | /* Are we little or big endian? From Harbison&Steele. */ |
12987 | union | |
12988 | { | |
12989 | long int l; | |
12990 | char c[sizeof (long int)]; | |
12991 | } u; | |
12992 | u.l = 1; | |
12993 | return u.c[sizeof (long int) - 1] == 1; | |
e1052144 TT |
12994 | |
12995 | ; | |
12996 | return 0; | |
877eb6d9 | 12997 | } |
b0cacab0 | 12998 | _ACEOF |
57aa50d4 | 12999 | if ac_fn_c_try_run "$LINENO"; then : |
877eb6d9 TT |
13000 | ac_cv_c_bigendian=no |
13001 | else | |
57aa50d4 | 13002 | ac_cv_c_bigendian=yes |
877eb6d9 | 13003 | fi |
57aa50d4 TT |
13004 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
13005 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
877eb6d9 | 13006 | fi |
e1052144 | 13007 | |
39fd3d4f | 13008 | fi |
877eb6d9 | 13009 | fi |
57aa50d4 | 13010 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 |
39fd3d4f SJR |
13011 | $as_echo "$ac_cv_c_bigendian" >&6; } |
13012 | case $ac_cv_c_bigendian in #( | |
13013 | yes) | |
57aa50d4 | 13014 | $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h |
39fd3d4f SJR |
13015 | ;; #( |
13016 | no) | |
13017 | ;; #( | |
13018 | universal) | |
07a0db15 | 13019 | |
57aa50d4 | 13020 | $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h |
39fd3d4f SJR |
13021 | |
13022 | ;; #( | |
13023 | *) | |
d6a4bcb5 | 13024 | as_fn_error $? "unknown endianness |
57aa50d4 | 13025 | presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; |
39fd3d4f | 13026 | esac |
877eb6d9 | 13027 | |
91f04685 CQ |
13028 | if test $cross_compiling = no; then |
13029 | BUILD_CC="$BUILD_CC" CPP="$CPP" /bin/sh $ac_aux_dir/parse-types.sh | |
13030 | else | |
13031 | CROSS_COMPILE="1" BUILD_CC="$BUILD_CC" CPP="$CPP" /bin/sh $ac_aux_dir/parse-types.sh | |
13032 | fi | |
4ea7ea00 TT |
13033 | ASM_TYPES_HEADER=./asm_types.h |
13034 | ||
488c75a6 TT |
13035 | echo "/* These defines are needed for the public ext2fs.h header file */" \ |
13036 | > public_config.h | |
13037 | if grep HAVE_SYS_TYPES_H confdefs.h > tmp_config.$$; then | |
13038 | uniq tmp_config.$$ >> public_config.h | |
13039 | else | |
13040 | echo "#undef HAVE_SYS_TYPES_H" >> public_config.h | |
13041 | fi | |
13042 | if grep WORDS_BIGENDIAN confdefs.h > tmp_config.$$; then | |
13043 | uniq tmp_config.$$ >> public_config.h | |
13044 | else | |
13045 | echo "#undef WORDS_BIGENDIAN" >> public_config.h | |
13046 | fi | |
13047 | rm -f tmp_config.$$ | |
13048 | PUBLIC_CONFIG_HEADER=./public_config.h | |
13049 | ||
b0cacab0 | 13050 | for ac_header in inttypes.h |
57aa50d4 TT |
13051 | do : |
13052 | ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default" | |
d6a4bcb5 | 13053 | if test "x$ac_cv_header_inttypes_h" = xyes; then : |
b0cacab0 | 13054 | cat >>confdefs.h <<_ACEOF |
57aa50d4 | 13055 | #define HAVE_INTTYPES_H 1 |
b0cacab0 TT |
13056 | _ACEOF |
13057 | ||
13058 | fi | |
13059 | ||
0c193f82 TT |
13060 | done |
13061 | ||
57aa50d4 | 13062 | ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default" |
d6a4bcb5 | 13063 | if test "x$ac_cv_type_intptr_t" = xyes; then : |
b0cacab0 TT |
13064 | |
13065 | cat >>confdefs.h <<_ACEOF | |
d2ee56d8 | 13066 | #define HAVE_INTPTR_T 1 |
b0cacab0 | 13067 | _ACEOF |
0c193f82 | 13068 | |
d2ee56d8 | 13069 | |
0c193f82 TT |
13070 | fi |
13071 | ||
57aa50d4 | 13072 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct stat has a st_flags field" >&5 |
39fd3d4f | 13073 | $as_echo_n "checking whether struct stat has a st_flags field... " >&6; } |
d6a4bcb5 | 13074 | if ${e2fsprogs_cv_struct_st_flags+:} false; then : |
39fd3d4f | 13075 | $as_echo_n "(cached) " >&6 |
50e1e10f | 13076 | else |
57aa50d4 | 13077 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
b0cacab0 | 13078 | /* end confdefs.h. */ |
50e1e10f | 13079 | #include <sys/stat.h> |
b0cacab0 TT |
13080 | int |
13081 | main () | |
13082 | { | |
50e1e10f | 13083 | struct stat stat; stat.st_flags = 0; |
b0cacab0 TT |
13084 | ; |
13085 | return 0; | |
13086 | } | |
13087 | _ACEOF | |
57aa50d4 | 13088 | if ac_fn_c_try_compile "$LINENO"; then : |
50e1e10f TT |
13089 | e2fsprogs_cv_struct_st_flags=yes |
13090 | else | |
57aa50d4 | 13091 | e2fsprogs_cv_struct_st_flags=no |
50e1e10f | 13092 | fi |
e1052144 | 13093 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
50e1e10f TT |
13094 | fi |
13095 | ||
57aa50d4 | 13096 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $e2fsprogs_cv_struct_st_flags" >&5 |
39fd3d4f | 13097 | $as_echo "$e2fsprogs_cv_struct_st_flags" >&6; } |
50e1e10f | 13098 | if test "$e2fsprogs_cv_struct_st_flags" = yes; then |
57aa50d4 | 13099 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether st_flags field is useful" >&5 |
39fd3d4f | 13100 | $as_echo_n "checking whether st_flags field is useful... " >&6; } |
d6a4bcb5 | 13101 | if ${e2fsprogs_cv_struct_st_flags_immut+:} false; then : |
39fd3d4f | 13102 | $as_echo_n "(cached) " >&6 |
b0cacab0 | 13103 | else |
57aa50d4 | 13104 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
b0cacab0 | 13105 | /* end confdefs.h. */ |
c03bc4e8 | 13106 | #include <sys/stat.h> |
b0cacab0 TT |
13107 | int |
13108 | main () | |
13109 | { | |
c03bc4e8 | 13110 | struct stat stat; stat.st_flags |= UF_IMMUTABLE; |
b0cacab0 TT |
13111 | ; |
13112 | return 0; | |
13113 | } | |
57aa50d4 TT |
13114 | _ACEOF |
13115 | if ac_fn_c_try_compile "$LINENO"; then : | |
13116 | e2fsprogs_cv_struct_st_flags_immut=yes | |
6c65d251 | 13117 | else |
57aa50d4 | 13118 | e2fsprogs_cv_struct_st_flags_immut=no |
84ea6e70 | 13119 | fi |
e1052144 | 13120 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
84ea6e70 | 13121 | fi |
e1052144 | 13122 | |
57aa50d4 TT |
13123 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $e2fsprogs_cv_struct_st_flags_immut" >&5 |
13124 | $as_echo "$e2fsprogs_cv_struct_st_flags_immut" >&6; } | |
13125 | if test "$e2fsprogs_cv_struct_st_flags_immut" = yes; then | |
d1154eb4 TT |
13126 | |
13127 | $as_echo "#define HAVE_STAT_FLAGS 1" >>confdefs.h | |
57aa50d4 TT |
13128 | |
13129 | fi | |
6c65d251 | 13130 | fi |
57aa50d4 TT |
13131 | ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "#include <sys/types.h> |
13132 | #include <sys/socket.h> | |
13133 | " | |
d6a4bcb5 | 13134 | if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes; then : |
b0cacab0 TT |
13135 | |
13136 | cat >>confdefs.h <<_ACEOF | |
84ea6e70 | 13137 | #define HAVE_SA_LEN 1 |
b0cacab0 | 13138 | _ACEOF |
84ea6e70 | 13139 | |
50e1e10f | 13140 | fi |
b0cacab0 | 13141 | |
9ed8e5fe | 13142 | if test -n "$BLKID_CMT"; then |
7154d974 TT |
13143 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for blkid_probe_get_topology in -lblkid" >&5 |
13144 | $as_echo_n "checking for blkid_probe_get_topology in -lblkid... " >&6; } | |
13145 | if ${ac_cv_lib_blkid_blkid_probe_get_topology+:} false; then : | |
9ed8e5fe ES |
13146 | $as_echo_n "(cached) " >&6 |
13147 | else | |
7154d974 TT |
13148 | ac_check_lib_save_LIBS=$LIBS |
13149 | LIBS="-lblkid $LIBS" | |
57aa50d4 | 13150 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
9ed8e5fe ES |
13151 | /* end confdefs.h. */ |
13152 | ||
13153 | /* Override any GCC internal prototype to avoid an error. | |
13154 | Use char because int might match the return type of a GCC | |
13155 | builtin and then its argument prototype would still apply. */ | |
13156 | #ifdef __cplusplus | |
13157 | extern "C" | |
13158 | #endif | |
7154d974 | 13159 | char blkid_probe_get_topology (); |
9ed8e5fe ES |
13160 | int |
13161 | main () | |
13162 | { | |
7154d974 | 13163 | return blkid_probe_get_topology (); |
9ed8e5fe ES |
13164 | ; |
13165 | return 0; | |
13166 | } | |
13167 | _ACEOF | |
7154d974 TT |
13168 | if ac_fn_c_try_link "$LINENO"; then : |
13169 | ac_cv_lib_blkid_blkid_probe_get_topology=yes | |
13170 | else | |
13171 | ac_cv_lib_blkid_blkid_probe_get_topology=no | |
9ed8e5fe | 13172 | fi |
57aa50d4 | 13173 | rm -f core conftest.err conftest.$ac_objext \ |
7154d974 TT |
13174 | conftest$ac_exeext conftest.$ac_ext |
13175 | LIBS=$ac_check_lib_save_LIBS | |
9ed8e5fe | 13176 | fi |
7154d974 TT |
13177 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_probe_get_topology" >&5 |
13178 | $as_echo "$ac_cv_lib_blkid_blkid_probe_get_topology" >&6; } | |
13179 | if test "x$ac_cv_lib_blkid_blkid_probe_get_topology" = xyes; then : | |
188bf39a TT |
13180 | |
13181 | $as_echo "#define HAVE_BLKID_PROBE_GET_TOPOLOGY 1" >>confdefs.h | |
7154d974 TT |
13182 | |
13183 | fi | |
13184 | ||
13185 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for blkid_probe_enable_partitions in -lblkid" >&5 | |
13186 | $as_echo_n "checking for blkid_probe_enable_partitions in -lblkid... " >&6; } | |
13187 | if ${ac_cv_lib_blkid_blkid_probe_enable_partitions+:} false; then : | |
13188 | $as_echo_n "(cached) " >&6 | |
13189 | else | |
13190 | ac_check_lib_save_LIBS=$LIBS | |
13191 | LIBS="-lblkid $LIBS" | |
13192 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13193 | /* end confdefs.h. */ | |
57aa50d4 | 13194 | |
7154d974 TT |
13195 | /* Override any GCC internal prototype to avoid an error. |
13196 | Use char because int might match the return type of a GCC | |
13197 | builtin and then its argument prototype would still apply. */ | |
13198 | #ifdef __cplusplus | |
13199 | extern "C" | |
13200 | #endif | |
13201 | char blkid_probe_enable_partitions (); | |
13202 | int | |
13203 | main () | |
13204 | { | |
13205 | return blkid_probe_enable_partitions (); | |
13206 | ; | |
13207 | return 0; | |
13208 | } | |
13209 | _ACEOF | |
13210 | if ac_fn_c_try_link "$LINENO"; then : | |
13211 | ac_cv_lib_blkid_blkid_probe_enable_partitions=yes | |
9ed8e5fe | 13212 | else |
7154d974 | 13213 | ac_cv_lib_blkid_blkid_probe_enable_partitions=no |
9ed8e5fe | 13214 | fi |
7154d974 TT |
13215 | rm -f core conftest.err conftest.$ac_objext \ |
13216 | conftest$ac_exeext conftest.$ac_ext | |
13217 | LIBS=$ac_check_lib_save_LIBS | |
9ed8e5fe | 13218 | fi |
7154d974 TT |
13219 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_probe_enable_partitions" >&5 |
13220 | $as_echo "$ac_cv_lib_blkid_blkid_probe_enable_partitions" >&6; } | |
13221 | if test "x$ac_cv_lib_blkid_blkid_probe_enable_partitions" = xyes; then : | |
188bf39a TT |
13222 | |
13223 | $as_echo "#define HAVE_BLKID_PROBE_ENABLE_PARTITIONS 1" >>confdefs.h | |
9ed8e5fe ES |
13224 | |
13225 | fi | |
13226 | ||
13227 | fi | |
32179ce2 TT |
13228 | if test -n "$DLOPEN_LIB" ; then |
13229 | ac_cv_func_dlopen=yes | |
13230 | fi | |
7154d974 | 13231 | for ac_func in __secure_getenv add_key backtrace chflags dlopen fadvise64 fallocate fallocate64 fchown fcntl fdatasync fstat64 fsync ftruncate64 futimes getcwd getdtablesize gethostname getmntinfo getpwuid_r getrlimit getrusage jrand48 keyctl llistxattr llseek lseek64 mallinfo mbstowcs memalign mempcpy mmap msync nanosleep open64 pathconf posix_fadvise posix_fadvise64 posix_memalign prctl pread pwrite pread64 pwrite64 secure_getenv setmntent setresgid setresuid snprintf srandom stpcpy strcasecmp strdup strnlen strptime strtoull sync_file_range sysconf usleep utime utimes valloc |
57aa50d4 TT |
13232 | do : |
13233 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
13234 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
d6a4bcb5 | 13235 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
b0cacab0 | 13236 | cat >>confdefs.h <<_ACEOF |
39fd3d4f | 13237 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
b0cacab0 | 13238 | _ACEOF |
21c84b71 | 13239 | |
50e1e10f TT |
13240 | fi |
13241 | done | |
13242 | ||
fc6d9d51 | 13243 | SOCKET_LIB='' |
57aa50d4 | 13244 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5 |
39fd3d4f | 13245 | $as_echo_n "checking for socket in -lsocket... " >&6; } |
d6a4bcb5 | 13246 | if ${ac_cv_lib_socket_socket+:} false; then : |
39fd3d4f | 13247 | $as_echo_n "(cached) " >&6 |
50e1e10f | 13248 | else |
b0cacab0 | 13249 | ac_check_lib_save_LIBS=$LIBS |
fc6d9d51 | 13250 | LIBS="-lsocket $LIBS" |
57aa50d4 | 13251 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
b0cacab0 | 13252 | /* end confdefs.h. */ |
93636bde | 13253 | |
e1052144 TT |
13254 | /* Override any GCC internal prototype to avoid an error. |
13255 | Use char because int might match the return type of a GCC | |
13256 | builtin and then its argument prototype would still apply. */ | |
b0cacab0 TT |
13257 | #ifdef __cplusplus |
13258 | extern "C" | |
13259 | #endif | |
b0cacab0 TT |
13260 | char socket (); |
13261 | int | |
13262 | main () | |
13263 | { | |
e1052144 | 13264 | return socket (); |
b0cacab0 TT |
13265 | ; |
13266 | return 0; | |
13267 | } | |
13268 | _ACEOF | |
57aa50d4 | 13269 | if ac_fn_c_try_link "$LINENO"; then : |
b0cacab0 TT |
13270 | ac_cv_lib_socket_socket=yes |
13271 | else | |
57aa50d4 | 13272 | ac_cv_lib_socket_socket=no |
b0cacab0 | 13273 | fi |
57aa50d4 TT |
13274 | rm -f core conftest.err conftest.$ac_objext \ |
13275 | conftest$ac_exeext conftest.$ac_ext | |
b0cacab0 TT |
13276 | LIBS=$ac_check_lib_save_LIBS |
13277 | fi | |
57aa50d4 | 13278 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5 |
39fd3d4f | 13279 | $as_echo "$ac_cv_lib_socket_socket" >&6; } |
d6a4bcb5 | 13280 | if test "x$ac_cv_lib_socket_socket" = xyes; then : |
fc6d9d51 | 13281 | SOCKET_LIB=-lsocket |
50e1e10f | 13282 | fi |
fc6d9d51 | 13283 | |
93636bde | 13284 | |
b291c11f DW |
13285 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for magic_file in -lmagic" >&5 |
13286 | $as_echo_n "checking for magic_file in -lmagic... " >&6; } | |
13287 | if ${ac_cv_lib_magic_magic_file+:} false; then : | |
13288 | $as_echo_n "(cached) " >&6 | |
13289 | else | |
13290 | ac_check_lib_save_LIBS=$LIBS | |
13291 | LIBS="-lmagic $LIBS" | |
13292 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13293 | /* end confdefs.h. */ | |
13294 | ||
13295 | /* Override any GCC internal prototype to avoid an error. | |
13296 | Use char because int might match the return type of a GCC | |
13297 | builtin and then its argument prototype would still apply. */ | |
13298 | #ifdef __cplusplus | |
13299 | extern "C" | |
13300 | #endif | |
13301 | char magic_file (); | |
13302 | int | |
13303 | main () | |
13304 | { | |
13305 | return magic_file (); | |
13306 | ; | |
13307 | return 0; | |
13308 | } | |
13309 | _ACEOF | |
13310 | if ac_fn_c_try_link "$LINENO"; then : | |
13311 | ac_cv_lib_magic_magic_file=yes | |
13312 | else | |
13313 | ac_cv_lib_magic_magic_file=no | |
13314 | fi | |
13315 | rm -f core conftest.err conftest.$ac_objext \ | |
13316 | conftest$ac_exeext conftest.$ac_ext | |
13317 | LIBS=$ac_check_lib_save_LIBS | |
13318 | fi | |
13319 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_magic_magic_file" >&5 | |
13320 | $as_echo "$ac_cv_lib_magic_magic_file" >&6; } | |
13321 | if test "x$ac_cv_lib_magic_magic_file" = xyes; then : | |
13322 | MAGIC_LIB=-lmagic | |
13323 | for ac_header in magic.h | |
13324 | do : | |
13325 | ac_fn_c_check_header_mongrel "$LINENO" "magic.h" "ac_cv_header_magic_h" "$ac_includes_default" | |
13326 | if test "x$ac_cv_header_magic_h" = xyes; then : | |
13327 | cat >>confdefs.h <<_ACEOF | |
13328 | #define HAVE_MAGIC_H 1 | |
13329 | _ACEOF | |
13330 | ||
13331 | fi | |
13332 | ||
13333 | done | |
13334 | ||
13335 | fi | |
13336 | ||
32179ce2 | 13337 | if test "$ac_cv_func_dlopen" = yes ; then |
d2e3c0dc TT |
13338 | MAGIC_LIB=$DLOPEN_LIB |
13339 | fi | |
b291c11f | 13340 | |
c94da047 TT |
13341 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5 |
13342 | $as_echo_n "checking for clock_gettime in -lrt... " >&6; } | |
13343 | if ${ac_cv_lib_rt_clock_gettime+:} false; then : | |
13344 | $as_echo_n "(cached) " >&6 | |
13345 | else | |
13346 | ac_check_lib_save_LIBS=$LIBS | |
13347 | LIBS="-lrt $LIBS" | |
13348 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13349 | /* end confdefs.h. */ | |
13350 | ||
13351 | /* Override any GCC internal prototype to avoid an error. | |
13352 | Use char because int might match the return type of a GCC | |
13353 | builtin and then its argument prototype would still apply. */ | |
13354 | #ifdef __cplusplus | |
13355 | extern "C" | |
13356 | #endif | |
13357 | char clock_gettime (); | |
13358 | int | |
13359 | main () | |
13360 | { | |
13361 | return clock_gettime (); | |
13362 | ; | |
13363 | return 0; | |
13364 | } | |
13365 | _ACEOF | |
13366 | if ac_fn_c_try_link "$LINENO"; then : | |
13367 | ac_cv_lib_rt_clock_gettime=yes | |
13368 | else | |
13369 | ac_cv_lib_rt_clock_gettime=no | |
13370 | fi | |
13371 | rm -f core conftest.err conftest.$ac_objext \ | |
13372 | conftest$ac_exeext conftest.$ac_ext | |
13373 | LIBS=$ac_check_lib_save_LIBS | |
13374 | fi | |
13375 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5 | |
13376 | $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; } | |
13377 | if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then : | |
13378 | CLOCK_GETTIME_LIB=-lrt | |
13379 | fi | |
13380 | ||
13381 | ||
81cbf1ef DW |
13382 | FUSE_CMT= |
13383 | FUSE_LIB= | |
13384 | # Check whether --enable-fuse2fs was given. | |
13385 | if test "${enable_fuse2fs+set}" = set; then : | |
13386 | enableval=$enable_fuse2fs; if test "$enableval" = "no" | |
13387 | then | |
13388 | FUSE_CMT="#" | |
13389 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling fuse2fs" >&5 | |
13390 | $as_echo "Disabling fuse2fs" >&6; } | |
13391 | else | |
13392 | for ac_header in pthread.h fuse.h | |
13393 | do : | |
13394 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
13395 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#define _FILE_OFFSET_BITS 64 | |
13396 | #define FUSE_USE_VERSION 29 | |
13397 | " | |
13398 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
13399 | cat >>confdefs.h <<_ACEOF | |
13400 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
13401 | _ACEOF | |
13402 | ||
13403 | else | |
13404 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
13405 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
13406 | as_fn_error $? "Cannot find fuse2fs headers. | |
13407 | See \`config.log' for more details" "$LINENO" 5; } | |
13408 | fi | |
13409 | ||
13410 | done | |
13411 | ||
13412 | ||
13413 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13414 | /* end confdefs.h. */ | |
13415 | #define FUSE_USE_VERSION 29 | |
13416 | #ifdef __linux__ | |
13417 | #include <linux/fs.h> | |
13418 | #include <linux/falloc.h> | |
13419 | #include <linux/xattr.h> | |
13420 | #endif | |
13421 | ||
13422 | int | |
13423 | main () | |
13424 | { | |
13425 | ||
13426 | ; | |
13427 | return 0; | |
13428 | } | |
13429 | _ACEOF | |
13430 | if ac_fn_c_try_cpp "$LINENO"; then : | |
13431 | ||
13432 | else | |
13433 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
13434 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
13435 | as_fn_error $? "Cannot find fuse2fs Linux headers. | |
13436 | See \`config.log' for more details" "$LINENO" 5; } | |
13437 | fi | |
13438 | rm -f conftest.err conftest.i conftest.$ac_ext | |
13439 | ||
13440 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -losxfuse" >&5 | |
13441 | $as_echo_n "checking for fuse_main in -losxfuse... " >&6; } | |
13442 | if ${ac_cv_lib_osxfuse_fuse_main+:} false; then : | |
13443 | $as_echo_n "(cached) " >&6 | |
13444 | else | |
13445 | ac_check_lib_save_LIBS=$LIBS | |
13446 | LIBS="-losxfuse $LIBS" | |
13447 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13448 | /* end confdefs.h. */ | |
13449 | ||
13450 | /* Override any GCC internal prototype to avoid an error. | |
13451 | Use char because int might match the return type of a GCC | |
13452 | builtin and then its argument prototype would still apply. */ | |
13453 | #ifdef __cplusplus | |
13454 | extern "C" | |
13455 | #endif | |
13456 | char fuse_main (); | |
13457 | int | |
13458 | main () | |
13459 | { | |
13460 | return fuse_main (); | |
13461 | ; | |
13462 | return 0; | |
13463 | } | |
13464 | _ACEOF | |
13465 | if ac_fn_c_try_link "$LINENO"; then : | |
13466 | ac_cv_lib_osxfuse_fuse_main=yes | |
13467 | else | |
13468 | ac_cv_lib_osxfuse_fuse_main=no | |
13469 | fi | |
13470 | rm -f core conftest.err conftest.$ac_objext \ | |
13471 | conftest$ac_exeext conftest.$ac_ext | |
13472 | LIBS=$ac_check_lib_save_LIBS | |
13473 | fi | |
13474 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_osxfuse_fuse_main" >&5 | |
13475 | $as_echo "$ac_cv_lib_osxfuse_fuse_main" >&6; } | |
13476 | if test "x$ac_cv_lib_osxfuse_fuse_main" = xyes; then : | |
13477 | FUSE_LIB=-losxfuse | |
13478 | else | |
13479 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -lfuse" >&5 | |
13480 | $as_echo_n "checking for fuse_main in -lfuse... " >&6; } | |
13481 | if ${ac_cv_lib_fuse_fuse_main+:} false; then : | |
13482 | $as_echo_n "(cached) " >&6 | |
13483 | else | |
13484 | ac_check_lib_save_LIBS=$LIBS | |
13485 | LIBS="-lfuse $LIBS" | |
13486 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13487 | /* end confdefs.h. */ | |
13488 | ||
13489 | /* Override any GCC internal prototype to avoid an error. | |
13490 | Use char because int might match the return type of a GCC | |
13491 | builtin and then its argument prototype would still apply. */ | |
13492 | #ifdef __cplusplus | |
13493 | extern "C" | |
13494 | #endif | |
13495 | char fuse_main (); | |
13496 | int | |
13497 | main () | |
13498 | { | |
13499 | return fuse_main (); | |
13500 | ; | |
13501 | return 0; | |
13502 | } | |
13503 | _ACEOF | |
13504 | if ac_fn_c_try_link "$LINENO"; then : | |
13505 | ac_cv_lib_fuse_fuse_main=yes | |
13506 | else | |
13507 | ac_cv_lib_fuse_fuse_main=no | |
13508 | fi | |
13509 | rm -f core conftest.err conftest.$ac_objext \ | |
13510 | conftest$ac_exeext conftest.$ac_ext | |
13511 | LIBS=$ac_check_lib_save_LIBS | |
13512 | fi | |
13513 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fuse_fuse_main" >&5 | |
13514 | $as_echo "$ac_cv_lib_fuse_fuse_main" >&6; } | |
13515 | if test "x$ac_cv_lib_fuse_fuse_main" = xyes; then : | |
13516 | FUSE_LIB=-lfuse | |
13517 | else | |
13518 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
13519 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
13520 | as_fn_error $? "Cannot find fuse library. | |
13521 | See \`config.log' for more details" "$LINENO" 5; } | |
13522 | fi | |
13523 | ||
13524 | fi | |
13525 | ||
13526 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling fuse2fs" >&5 | |
13527 | $as_echo "Enabling fuse2fs" >&6; } | |
13528 | fi | |
13529 | ||
13530 | else | |
13531 | for ac_header in pthread.h fuse.h | |
13532 | do : | |
13533 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
13534 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#define _FILE_OFFSET_BITS 64 | |
13535 | #define FUSE_USE_VERSION 29 | |
13536 | #ifdef __linux__ | |
13537 | # include <linux/fs.h> | |
13538 | # include <linux/falloc.h> | |
13539 | # include <linux/xattr.h> | |
13540 | #endif | |
13541 | " | |
13542 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
13543 | cat >>confdefs.h <<_ACEOF | |
13544 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
13545 | _ACEOF | |
13546 | ||
13547 | else | |
13548 | FUSE_CMT="#" | |
13549 | fi | |
13550 | ||
13551 | done | |
13552 | ||
13553 | if test -z "$FUSE_CMT" | |
13554 | then | |
13555 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -losxfuse" >&5 | |
13556 | $as_echo_n "checking for fuse_main in -losxfuse... " >&6; } | |
13557 | if ${ac_cv_lib_osxfuse_fuse_main+:} false; then : | |
13558 | $as_echo_n "(cached) " >&6 | |
13559 | else | |
13560 | ac_check_lib_save_LIBS=$LIBS | |
13561 | LIBS="-losxfuse $LIBS" | |
13562 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13563 | /* end confdefs.h. */ | |
13564 | ||
13565 | /* Override any GCC internal prototype to avoid an error. | |
13566 | Use char because int might match the return type of a GCC | |
13567 | builtin and then its argument prototype would still apply. */ | |
13568 | #ifdef __cplusplus | |
13569 | extern "C" | |
13570 | #endif | |
13571 | char fuse_main (); | |
13572 | int | |
13573 | main () | |
13574 | { | |
13575 | return fuse_main (); | |
13576 | ; | |
13577 | return 0; | |
13578 | } | |
13579 | _ACEOF | |
13580 | if ac_fn_c_try_link "$LINENO"; then : | |
13581 | ac_cv_lib_osxfuse_fuse_main=yes | |
13582 | else | |
13583 | ac_cv_lib_osxfuse_fuse_main=no | |
13584 | fi | |
13585 | rm -f core conftest.err conftest.$ac_objext \ | |
13586 | conftest$ac_exeext conftest.$ac_ext | |
13587 | LIBS=$ac_check_lib_save_LIBS | |
13588 | fi | |
13589 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_osxfuse_fuse_main" >&5 | |
13590 | $as_echo "$ac_cv_lib_osxfuse_fuse_main" >&6; } | |
13591 | if test "x$ac_cv_lib_osxfuse_fuse_main" = xyes; then : | |
13592 | FUSE_LIB=-losxfuse | |
13593 | else | |
13594 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -lfuse" >&5 | |
13595 | $as_echo_n "checking for fuse_main in -lfuse... " >&6; } | |
13596 | if ${ac_cv_lib_fuse_fuse_main+:} false; then : | |
13597 | $as_echo_n "(cached) " >&6 | |
13598 | else | |
13599 | ac_check_lib_save_LIBS=$LIBS | |
13600 | LIBS="-lfuse $LIBS" | |
13601 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13602 | /* end confdefs.h. */ | |
13603 | ||
13604 | /* Override any GCC internal prototype to avoid an error. | |
13605 | Use char because int might match the return type of a GCC | |
13606 | builtin and then its argument prototype would still apply. */ | |
13607 | #ifdef __cplusplus | |
13608 | extern "C" | |
13609 | #endif | |
13610 | char fuse_main (); | |
13611 | int | |
13612 | main () | |
13613 | { | |
13614 | return fuse_main (); | |
13615 | ; | |
13616 | return 0; | |
13617 | } | |
13618 | _ACEOF | |
13619 | if ac_fn_c_try_link "$LINENO"; then : | |
13620 | ac_cv_lib_fuse_fuse_main=yes | |
13621 | else | |
13622 | ac_cv_lib_fuse_fuse_main=no | |
13623 | fi | |
13624 | rm -f core conftest.err conftest.$ac_objext \ | |
13625 | conftest$ac_exeext conftest.$ac_ext | |
13626 | LIBS=$ac_check_lib_save_LIBS | |
13627 | fi | |
13628 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fuse_fuse_main" >&5 | |
13629 | $as_echo "$ac_cv_lib_fuse_fuse_main" >&6; } | |
13630 | if test "x$ac_cv_lib_fuse_fuse_main" = xyes; then : | |
13631 | FUSE_LIB=-lfuse | |
13632 | else | |
13633 | FUSE_CMT="#" | |
13634 | fi | |
13635 | ||
13636 | fi | |
13637 | ||
13638 | fi | |
13639 | if test -z "$FUSE_CMT" | |
13640 | then | |
13641 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling fuse2fs by default." >&5 | |
13642 | $as_echo "Enabling fuse2fs by default." >&6; } | |
13643 | fi | |
13644 | ||
13645 | fi | |
13646 | ||
13647 | ||
13648 | ||
57aa50d4 | 13649 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for optreset" >&5 |
39fd3d4f | 13650 | $as_echo_n "checking for optreset... " >&6; } |
d6a4bcb5 | 13651 | if ${ac_cv_have_optreset+:} false; then : |
39fd3d4f | 13652 | $as_echo_n "(cached) " >&6 |
d7f45af8 | 13653 | else |
57aa50d4 | 13654 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d7f45af8 | 13655 | /* end confdefs.h. */ |
57aa50d4 TT |
13656 | #include <unistd.h> |
13657 | ||
13658 | _ACEOF | |
13659 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
13660 | $EGREP "optreset" >/dev/null 2>&1; then : | |
13661 | ac_cv_have_optreset=yes | |
d7f45af8 | 13662 | else |
57aa50d4 TT |
13663 | ac_cv_have_optreset=no |
13664 | fi | |
13665 | rm -f conftest* | |
d7f45af8 | 13666 | |
d7f45af8 | 13667 | fi |
57aa50d4 TT |
13668 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_optreset" >&5 |
13669 | $as_echo "$ac_cv_have_optreset" >&6; } | |
13670 | if test $ac_cv_have_optreset = yes; then | |
d1154eb4 TT |
13671 | |
13672 | $as_echo "#define HAVE_OPTRESET 1" >>confdefs.h | |
d7f45af8 | 13673 | |
d7f45af8 | 13674 | fi |
d1154eb4 | 13675 | |
57aa50d4 | 13676 | SEM_INIT_LIB='' |
cfb8e0bd TT |
13677 | echo GL_THREADS_API: ${gl_threads_api} |
13678 | if test "${gl_threads_api}" != none | |
13679 | then | |
13680 | ac_fn_c_check_func "$LINENO" "sem_init" "ac_cv_func_sem_init" | |
d6a4bcb5 | 13681 | if test "x$ac_cv_func_sem_init" = xyes; then : |
57aa50d4 | 13682 | |
d7f45af8 | 13683 | else |
57aa50d4 | 13684 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lpthread" >&5 |
39fd3d4f | 13685 | $as_echo_n "checking for sem_init in -lpthread... " >&6; } |
d6a4bcb5 | 13686 | if ${ac_cv_lib_pthread_sem_init+:} false; then : |
39fd3d4f | 13687 | $as_echo_n "(cached) " >&6 |
d7f45af8 TT |
13688 | else |
13689 | ac_check_lib_save_LIBS=$LIBS | |
13690 | LIBS="-lpthread $LIBS" | |
57aa50d4 | 13691 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d7f45af8 TT |
13692 | /* end confdefs.h. */ |
13693 | ||
13694 | /* Override any GCC internal prototype to avoid an error. | |
13695 | Use char because int might match the return type of a GCC | |
13696 | builtin and then its argument prototype would still apply. */ | |
13697 | #ifdef __cplusplus | |
13698 | extern "C" | |
13699 | #endif | |
13700 | char sem_init (); | |
13701 | int | |
13702 | main () | |
13703 | { | |
13704 | return sem_init (); | |
13705 | ; | |
13706 | return 0; | |
13707 | } | |
13708 | _ACEOF | |
57aa50d4 | 13709 | if ac_fn_c_try_link "$LINENO"; then : |
d7f45af8 TT |
13710 | ac_cv_lib_pthread_sem_init=yes |
13711 | else | |
57aa50d4 | 13712 | ac_cv_lib_pthread_sem_init=no |
d7f45af8 | 13713 | fi |
57aa50d4 TT |
13714 | rm -f core conftest.err conftest.$ac_objext \ |
13715 | conftest$ac_exeext conftest.$ac_ext | |
d7f45af8 TT |
13716 | LIBS=$ac_check_lib_save_LIBS |
13717 | fi | |
57aa50d4 | 13718 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_sem_init" >&5 |
39fd3d4f | 13719 | $as_echo "$ac_cv_lib_pthread_sem_init" >&6; } |
d6a4bcb5 | 13720 | if test "x$ac_cv_lib_pthread_sem_init" = xyes; then : |
57aa50d4 | 13721 | $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h |
d7f45af8 TT |
13722 | |
13723 | SEM_INIT_LIB=-lpthread | |
13724 | else | |
57aa50d4 | 13725 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lrt" >&5 |
39fd3d4f | 13726 | $as_echo_n "checking for sem_init in -lrt... " >&6; } |
d6a4bcb5 | 13727 | if ${ac_cv_lib_rt_sem_init+:} false; then : |
39fd3d4f | 13728 | $as_echo_n "(cached) " >&6 |
d7f45af8 TT |
13729 | else |
13730 | ac_check_lib_save_LIBS=$LIBS | |
13731 | LIBS="-lrt $LIBS" | |
57aa50d4 | 13732 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d7f45af8 TT |
13733 | /* end confdefs.h. */ |
13734 | ||
13735 | /* Override any GCC internal prototype to avoid an error. | |
13736 | Use char because int might match the return type of a GCC | |
13737 | builtin and then its argument prototype would still apply. */ | |
13738 | #ifdef __cplusplus | |
13739 | extern "C" | |
13740 | #endif | |
13741 | char sem_init (); | |
13742 | int | |
13743 | main () | |
13744 | { | |
13745 | return sem_init (); | |
13746 | ; | |
13747 | return 0; | |
13748 | } | |
13749 | _ACEOF | |
57aa50d4 | 13750 | if ac_fn_c_try_link "$LINENO"; then : |
d7f45af8 TT |
13751 | ac_cv_lib_rt_sem_init=yes |
13752 | else | |
57aa50d4 | 13753 | ac_cv_lib_rt_sem_init=no |
d7f45af8 | 13754 | fi |
57aa50d4 TT |
13755 | rm -f core conftest.err conftest.$ac_objext \ |
13756 | conftest$ac_exeext conftest.$ac_ext | |
d7f45af8 TT |
13757 | LIBS=$ac_check_lib_save_LIBS |
13758 | fi | |
57aa50d4 | 13759 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sem_init" >&5 |
39fd3d4f | 13760 | $as_echo "$ac_cv_lib_rt_sem_init" >&6; } |
d6a4bcb5 | 13761 | if test "x$ac_cv_lib_rt_sem_init" = xyes; then : |
57aa50d4 | 13762 | $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h |
d7f45af8 TT |
13763 | |
13764 | SEM_INIT_LIB=-lrt | |
13765 | else | |
57aa50d4 | 13766 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lposix4" >&5 |
39fd3d4f | 13767 | $as_echo_n "checking for sem_init in -lposix4... " >&6; } |
d6a4bcb5 | 13768 | if ${ac_cv_lib_posix4_sem_init+:} false; then : |
39fd3d4f | 13769 | $as_echo_n "(cached) " >&6 |
d7f45af8 TT |
13770 | else |
13771 | ac_check_lib_save_LIBS=$LIBS | |
13772 | LIBS="-lposix4 $LIBS" | |
57aa50d4 | 13773 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d7f45af8 TT |
13774 | /* end confdefs.h. */ |
13775 | ||
13776 | /* Override any GCC internal prototype to avoid an error. | |
13777 | Use char because int might match the return type of a GCC | |
13778 | builtin and then its argument prototype would still apply. */ | |
13779 | #ifdef __cplusplus | |
13780 | extern "C" | |
13781 | #endif | |
13782 | char sem_init (); | |
13783 | int | |
13784 | main () | |
13785 | { | |
13786 | return sem_init (); | |
13787 | ; | |
13788 | return 0; | |
13789 | } | |
13790 | _ACEOF | |
57aa50d4 | 13791 | if ac_fn_c_try_link "$LINENO"; then : |
d7f45af8 TT |
13792 | ac_cv_lib_posix4_sem_init=yes |
13793 | else | |
57aa50d4 | 13794 | ac_cv_lib_posix4_sem_init=no |
d7f45af8 | 13795 | fi |
57aa50d4 TT |
13796 | rm -f core conftest.err conftest.$ac_objext \ |
13797 | conftest$ac_exeext conftest.$ac_ext | |
d7f45af8 TT |
13798 | LIBS=$ac_check_lib_save_LIBS |
13799 | fi | |
57aa50d4 | 13800 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_sem_init" >&5 |
39fd3d4f | 13801 | $as_echo "$ac_cv_lib_posix4_sem_init" >&6; } |
d6a4bcb5 | 13802 | if test "x$ac_cv_lib_posix4_sem_init" = xyes; then : |
57aa50d4 | 13803 | $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h |
d7f45af8 TT |
13804 | |
13805 | SEM_INIT_LIB=-lposix4 | |
13806 | fi | |
13807 | ||
13808 | fi | |
13809 | ||
13810 | fi | |
13811 | ||
cfb8e0bd | 13812 | fi |
d7f45af8 TT |
13813 | fi |
13814 | ||
57aa50d4 | 13815 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unified diff option" >&5 |
39fd3d4f | 13816 | $as_echo_n "checking for unified diff option... " >&6; } |
27f991b0 | 13817 | if diff -u $0 $0 > /dev/null 2>&1 ; then |
e54635de TT |
13818 | UNI_DIFF_OPTS=-u |
13819 | else | |
13820 | UNI_DIFF_OPTS=-c | |
13821 | fi | |
57aa50d4 | 13822 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNI_DIFF_OPTS" >&5 |
39fd3d4f | 13823 | $as_echo "$UNI_DIFF_OPTS" >&6; } |
e54635de | 13824 | |
8f3f29d3 TT |
13825 | case "$host_os" in |
13826 | linux*) | |
d1154eb4 TT |
13827 | |
13828 | $as_echo "#define HAVE_EXT2_IOCTLS 1" >>confdefs.h | |
50e1e10f | 13829 | |
8f3f29d3 TT |
13830 | ;; |
13831 | esac | |
ea1a3fa2 NC |
13832 | |
13833 | if test "x$ac_cv_header_sys_mount_h" = x; then : | |
13834 | for ac_header in sys/mount.h | |
13835 | do : | |
13836 | ac_fn_c_check_header_mongrel "$LINENO" "sys/mount.h" "ac_cv_header_sys_mount_h" "$ac_includes_default" | |
13837 | if test "x$ac_cv_header_sys_mount_h" = xyes; then : | |
13838 | cat >>confdefs.h <<_ACEOF | |
13839 | #define HAVE_SYS_MOUNT_H 1 | |
13840 | _ACEOF | |
13841 | ||
13842 | fi | |
13843 | ||
13844 | done | |
13845 | ||
13846 | fi | |
13847 | if test "x$ac_cv_header_sys_mount_h" = xno; then : | |
13848 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
13849 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
13850 | as_fn_error $? "error: sys/mount.h not present on your system! | |
13851 | See \`config.log' for more details" "$LINENO" 5; } | |
13852 | fi | |
13853 | $as_echo_n "checking for mount 'nosuid' option... " | |
13854 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13855 | /* end confdefs.h. */ | |
13856 | #include <sys/mount.h> | |
13857 | int | |
13858 | main () | |
13859 | { | |
13860 | void *temp = (void *)(MS_NOSUID); (void) temp; | |
13861 | ; | |
13862 | return 0; | |
13863 | } | |
13864 | _ACEOF | |
13865 | if ac_fn_c_try_compile "$LINENO"; then : | |
13866 | ||
13867 | $as_echo "#define HAVE_MOUNT_NOSUID 1" >>confdefs.h | |
13868 | ||
13869 | ac_cv_mount_nosuid=yes | |
13870 | $as_echo "yes" | |
13871 | else | |
13872 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13873 | /* end confdefs.h. */ | |
13874 | #include <sys/mount.h> | |
13875 | int | |
13876 | main () | |
13877 | { | |
13878 | void *temp = (void *)(MNT_NOSUID); (void) temp; | |
13879 | ; | |
13880 | return 0; | |
13881 | } | |
13882 | _ACEOF | |
13883 | if ac_fn_c_try_compile "$LINENO"; then : | |
13884 | ||
13885 | $as_echo "#define HAVE_MOUNT_NOSUID 1" >>confdefs.h | |
13886 | ||
13887 | ac_cv_mount_nosuid=yes | |
13888 | $as_echo "yes" | |
13889 | else | |
13890 | ac_cv_mount_nosuid=no | |
13891 | $as_echo "no" | |
13892 | ||
13893 | fi | |
13894 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
13895 | ||
13896 | fi | |
13897 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
13898 | ||
13899 | ||
13900 | if test "x$ac_cv_header_sys_mount_h" = x; then : | |
13901 | for ac_header in sys/mount.h | |
13902 | do : | |
13903 | ac_fn_c_check_header_mongrel "$LINENO" "sys/mount.h" "ac_cv_header_sys_mount_h" "$ac_includes_default" | |
13904 | if test "x$ac_cv_header_sys_mount_h" = xyes; then : | |
13905 | cat >>confdefs.h <<_ACEOF | |
13906 | #define HAVE_SYS_MOUNT_H 1 | |
13907 | _ACEOF | |
13908 | ||
13909 | fi | |
13910 | ||
13911 | done | |
13912 | ||
13913 | fi | |
13914 | if test "x$ac_cv_header_sys_mount_h" = xno; then : | |
13915 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
13916 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
13917 | as_fn_error $? "error: sys/mount.h not present on your system! | |
13918 | See \`config.log' for more details" "$LINENO" 5; } | |
13919 | fi | |
13920 | $as_echo_n "checking for mount 'nodev' option... " | |
13921 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13922 | /* end confdefs.h. */ | |
13923 | #include <sys/mount.h> | |
13924 | int | |
13925 | main () | |
13926 | { | |
13927 | void *temp = (void *)(MS_NODEV); (void) temp; | |
13928 | ; | |
13929 | return 0; | |
13930 | } | |
13931 | _ACEOF | |
13932 | if ac_fn_c_try_compile "$LINENO"; then : | |
13933 | ||
13934 | $as_echo "#define HAVE_MOUNT_NODEV 1" >>confdefs.h | |
13935 | ||
13936 | ac_cv_mount_nodev=yes | |
13937 | $as_echo "yes" | |
13938 | else | |
13939 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13940 | /* end confdefs.h. */ | |
13941 | #include <sys/mount.h> | |
13942 | int | |
13943 | main () | |
13944 | { | |
13945 | void *temp = (void *)(MNT_NODEV); (void) temp; | |
13946 | ; | |
13947 | return 0; | |
13948 | } | |
13949 | _ACEOF | |
13950 | if ac_fn_c_try_compile "$LINENO"; then : | |
13951 | ||
13952 | $as_echo "#define HAVE_MOUNT_NODEV 1" >>confdefs.h | |
13953 | ||
13954 | ac_cv_mount_nodev=yes | |
13955 | $as_echo "yes" | |
13956 | else | |
13957 | ac_cv_mount_nodev=no | |
13958 | $as_echo "no" | |
13959 | ||
13960 | fi | |
13961 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
13962 | ||
13963 | fi | |
13964 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
13965 | ||
4aece328 DW |
13966 | # Check whether --enable-lto was given. |
13967 | if test "${enable_lto+set}" = set; then : | |
13968 | enableval=$enable_lto; | |
13969 | else | |
139a3092 | 13970 | enable_lto=no |
4aece328 DW |
13971 | fi |
13972 | ||
13973 | if test "$enable_lto" = "yes" || test "$enable_lto" = "probe"; then | |
13974 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if C compiler supports LTO" >&5 | |
13975 | $as_echo_n "checking if C compiler supports LTO... " >&6; } | |
13976 | OLD_CFLAGS="$CFLAGS" | |
13977 | OLD_LDFLAGS="$LDFLAGS" | |
49715704 | 13978 | LTO_FLAGS="-g -flto -ffat-lto-objects" |
4aece328 DW |
13979 | CFLAGS="$CFLAGS $LTO_FLAGS" |
13980 | LDFLAGS="$LDFLAGS $LTO_FLAGS" | |
13981 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13982 | /* end confdefs.h. */ | |
13983 | ||
13984 | int | |
13985 | main () | |
13986 | { | |
13987 | ||
13988 | ; | |
13989 | return 0; | |
13990 | } | |
13991 | _ACEOF | |
13992 | if ac_fn_c_try_link "$LINENO"; then : | |
13993 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
13994 | $as_echo "yes" >&6; } | |
13995 | lto_cflags=$LTO_FLAGS | |
13996 | lto_ldflags=$LTO_FLAGS | |
13997 | # Extract the first word of "gcc-ar", so it can be a program name with args. | |
13998 | set dummy gcc-ar; ac_word=$2 | |
13999 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
14000 | $as_echo_n "checking for $ac_word... " >&6; } | |
14001 | if ${ac_cv_path_gcc_ar+:} false; then : | |
14002 | $as_echo_n "(cached) " >&6 | |
14003 | else | |
14004 | case $gcc_ar in | |
14005 | [\\/]* | ?:[\\/]*) | |
14006 | ac_cv_path_gcc_ar="$gcc_ar" # Let the user override the test with a path. | |
14007 | ;; | |
14008 | *) | |
14009 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14010 | for as_dir in $PATH | |
14011 | do | |
14012 | IFS=$as_save_IFS | |
14013 | test -z "$as_dir" && as_dir=. | |
14014 | for ac_exec_ext in '' $ac_executable_extensions; do | |
14015 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
14016 | ac_cv_path_gcc_ar="$as_dir/$ac_word$ac_exec_ext" | |
14017 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
14018 | break 2 | |
14019 | fi | |
14020 | done | |
14021 | done | |
14022 | IFS=$as_save_IFS | |
14023 | ||
14024 | ;; | |
14025 | esac | |
14026 | fi | |
14027 | gcc_ar=$ac_cv_path_gcc_ar | |
14028 | if test -n "$gcc_ar"; then | |
14029 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_ar" >&5 | |
14030 | $as_echo "$gcc_ar" >&6; } | |
14031 | else | |
14032 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
14033 | $as_echo "no" >&6; } | |
14034 | fi | |
14035 | ||
14036 | ||
14037 | # Extract the first word of "gcc-ranlib", so it can be a program name with args. | |
14038 | set dummy gcc-ranlib; ac_word=$2 | |
14039 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
14040 | $as_echo_n "checking for $ac_word... " >&6; } | |
14041 | if ${ac_cv_path_gcc_ranlib+:} false; then : | |
14042 | $as_echo_n "(cached) " >&6 | |
14043 | else | |
14044 | case $gcc_ranlib in | |
14045 | [\\/]* | ?:[\\/]*) | |
14046 | ac_cv_path_gcc_ranlib="$gcc_ranlib" # Let the user override the test with a path. | |
14047 | ;; | |
14048 | *) | |
14049 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14050 | for as_dir in $PATH | |
14051 | do | |
14052 | IFS=$as_save_IFS | |
14053 | test -z "$as_dir" && as_dir=. | |
14054 | for ac_exec_ext in '' $ac_executable_extensions; do | |
14055 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
14056 | ac_cv_path_gcc_ranlib="$as_dir/$ac_word$ac_exec_ext" | |
14057 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
14058 | break 2 | |
14059 | fi | |
14060 | done | |
14061 | done | |
14062 | IFS=$as_save_IFS | |
14063 | ||
14064 | ;; | |
14065 | esac | |
14066 | fi | |
14067 | gcc_ranlib=$ac_cv_path_gcc_ranlib | |
14068 | if test -n "$gcc_ranlib"; then | |
14069 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_ranlib" >&5 | |
14070 | $as_echo "$gcc_ranlib" >&6; } | |
14071 | else | |
14072 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
14073 | $as_echo "no" >&6; } | |
14074 | fi | |
14075 | ||
14076 | ||
14077 | else | |
14078 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
14079 | $as_echo "no" >&6; } | |
14080 | fi | |
14081 | rm -f core conftest.err conftest.$ac_objext \ | |
14082 | conftest$ac_exeext conftest.$ac_ext | |
14083 | if test -x "$gcc_ar" && test -x "$gcc_ranlib"; then | |
14084 | have_lto=yes | |
14085 | AR="${gcc_ar}" | |
14086 | RANLIB="${gcc_ranlib}" | |
14087 | fi | |
14088 | CFLAGS="${OLD_CFLAGS}" | |
14089 | LDFLAGS="${OLD_LDFLAGS}" | |
14090 | ||
14091 | ||
14092 | ||
14093 | fi | |
14094 | if test "$enable_lto" = "yes" && test "$have_lto" != "yes"; then | |
14095 | as_fn_error $? "LTO not supported by compiler." "$LINENO" 5 | |
14096 | fi | |
1c2a76ae DW |
14097 | # Check whether --enable-ubsan was given. |
14098 | if test "${enable_ubsan+set}" = set; then : | |
14099 | enableval=$enable_ubsan; | |
14100 | else | |
14101 | enable_ubsan=no | |
14102 | fi | |
14103 | ||
14104 | if test "$enable_ubsan" = "yes" || test "$enable_ubsan" = "probe"; then | |
14105 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if C compiler supports UBSAN" >&5 | |
14106 | $as_echo_n "checking if C compiler supports UBSAN... " >&6; } | |
14107 | OLD_CFLAGS="$CFLAGS" | |
14108 | OLD_LDFLAGS="$LDFLAGS" | |
14109 | UBSAN_FLAGS="-fsanitize=undefined" | |
14110 | CFLAGS="$CFLAGS $UBSAN_FLAGS" | |
14111 | LDFLAGS="$LDFLAGS $UBSAN_FLAGS" | |
14112 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
14113 | /* end confdefs.h. */ | |
14114 | ||
14115 | int | |
14116 | main () | |
14117 | { | |
14118 | ||
14119 | ; | |
14120 | return 0; | |
14121 | } | |
14122 | _ACEOF | |
14123 | if ac_fn_c_try_link "$LINENO"; then : | |
14124 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
14125 | $as_echo "yes" >&6; } | |
14126 | ubsan_cflags=$UBSAN_FLAGS | |
14127 | ubsan_ldflags=$UBSAN_FLAGS | |
14128 | have_ubsan=yes | |
14129 | else | |
14130 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
14131 | $as_echo "no" >&6; } | |
14132 | fi | |
14133 | rm -f core conftest.err conftest.$ac_objext \ | |
14134 | conftest$ac_exeext conftest.$ac_ext | |
14135 | CFLAGS="${OLD_CFLAGS}" | |
14136 | LDFLAGS="${OLD_LDFLAGS}" | |
14137 | ||
14138 | ||
14139 | ||
14140 | fi | |
14141 | if test "$enable_ubsan" = "yes" && test "$have_ubsan" != "yes"; then | |
14142 | as_fn_error $? "UBSAN not supported by compiler." "$LINENO" 5 | |
14143 | fi | |
5e666e3d DW |
14144 | # Check whether --enable-addrsan was given. |
14145 | if test "${enable_addrsan+set}" = set; then : | |
14146 | enableval=$enable_addrsan; | |
14147 | else | |
14148 | enable_addrsan=no | |
14149 | fi | |
14150 | ||
14151 | if test "$enable_addrsan" = "yes" || test "$enable_addrsan" = "probe"; then | |
14152 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if C compiler supports ADDRSAN" >&5 | |
14153 | $as_echo_n "checking if C compiler supports ADDRSAN... " >&6; } | |
14154 | OLD_CFLAGS="$CFLAGS" | |
14155 | OLD_LDFLAGS="$LDFLAGS" | |
14156 | ADDRSAN_FLAGS="-fsanitize=address" | |
14157 | CFLAGS="$CFLAGS $ADDRSAN_FLAGS" | |
14158 | LDFLAGS="$LDFLAGS $ADDRSAN_FLAGS" | |
14159 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
14160 | /* end confdefs.h. */ | |
14161 | ||
14162 | int | |
14163 | main () | |
14164 | { | |
14165 | ||
14166 | ; | |
14167 | return 0; | |
14168 | } | |
14169 | _ACEOF | |
14170 | if ac_fn_c_try_link "$LINENO"; then : | |
14171 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
14172 | $as_echo "yes" >&6; } | |
14173 | addrsan_cflags=$ADDRSAN_FLAGS | |
14174 | addrsan_ldflags=$ADDRSAN_FLAGS | |
14175 | have_addrsan=yes | |
14176 | else | |
14177 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
14178 | $as_echo "no" >&6; } | |
14179 | fi | |
14180 | rm -f core conftest.err conftest.$ac_objext \ | |
14181 | conftest$ac_exeext conftest.$ac_ext | |
14182 | CFLAGS="${OLD_CFLAGS}" | |
14183 | LDFLAGS="${OLD_LDFLAGS}" | |
14184 | ||
14185 | ||
14186 | ||
14187 | fi | |
14188 | if test "$enable_addrsan" = "yes" && test "$have_addrsan" != "yes"; then | |
14189 | as_fn_error $? "ADDRSAN not supported by compiler." "$LINENO" 5 | |
14190 | fi | |
bcca786b DW |
14191 | # Check whether --enable-threadsan was given. |
14192 | if test "${enable_threadsan+set}" = set; then : | |
14193 | enableval=$enable_threadsan; | |
14194 | else | |
14195 | enable_threadsan=no | |
14196 | fi | |
14197 | ||
14198 | if test "$enable_threadsan" = "yes" || test "$enable_threadsan" = "probe"; then | |
14199 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if C compiler supports THREADSAN" >&5 | |
14200 | $as_echo_n "checking if C compiler supports THREADSAN... " >&6; } | |
14201 | OLD_CFLAGS="$CFLAGS" | |
14202 | OLD_LDFLAGS="$LDFLAGS" | |
14203 | THREADSAN_FLAGS="-fsanitize=thread" | |
14204 | CFLAGS="$CFLAGS $THREADSAN_FLAGS" | |
14205 | LDFLAGS="$LDFLAGS $THREADSAN_FLAGS" | |
14206 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
14207 | /* end confdefs.h. */ | |
14208 | ||
14209 | int | |
14210 | main () | |
14211 | { | |
14212 | ||
14213 | ; | |
14214 | return 0; | |
14215 | } | |
14216 | _ACEOF | |
14217 | if ac_fn_c_try_link "$LINENO"; then : | |
14218 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
14219 | $as_echo "yes" >&6; } | |
14220 | threadsan_cflags=$THREADSAN_FLAGS | |
14221 | threadsan_ldflags=$THREADSAN_FLAGS | |
14222 | have_threadsan=yes | |
14223 | else | |
14224 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
14225 | $as_echo "no" >&6; } | |
14226 | fi | |
14227 | rm -f core conftest.err conftest.$ac_objext \ | |
14228 | conftest$ac_exeext conftest.$ac_ext | |
14229 | CFLAGS="${OLD_CFLAGS}" | |
14230 | LDFLAGS="${OLD_LDFLAGS}" | |
14231 | ||
14232 | ||
14233 | ||
14234 | fi | |
14235 | if test "$enable_threadsan" = "yes" && test "$have_threadsan" != "yes"; then | |
14236 | as_fn_error $? "THREADSAN not supported by compiler." "$LINENO" 5 | |
14237 | fi | |
14238 | if test "$have_threadsan" = "yes" && test "$have_addrsan" = "yes"; then | |
14239 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ADDRSAN and THREADSAN are not known to work together." >&5 | |
14240 | $as_echo "$as_me: WARNING: ADDRSAN and THREADSAN are not known to work together." >&2;} | |
14241 | fi | |
e6f2bda3 | 14242 | LINUX_CMT="#" |
fff45483 TT |
14243 | CYGWIN_CMT="#" |
14244 | UNIX_CMT= | |
e6f2bda3 TT |
14245 | case "$host_os" in |
14246 | linux*) | |
14247 | LINUX_CMT= | |
fff45483 TT |
14248 | ;; |
14249 | cygwin) | |
14250 | CYGWIN_CMT= | |
14251 | UNIX_CMT="#" | |
e6f2bda3 TT |
14252 | ;; |
14253 | esac | |
14254 | ||
93636bde TT |
14255 | |
14256 | ||
5ce368f0 DW |
14257 | E2SCRUB_CMT="$LINUX_CMT" |
14258 | ||
50e1e10f | 14259 | case "$host_os" in |
93636bde | 14260 | linux* | gnu* | k*bsd*-gnu) |
a4b2d3ce TT |
14261 | if test "$prefix" = NONE -a "$root_prefix" = NONE ; then |
14262 | root_prefix=""; | |
57aa50d4 | 14263 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: On $host_os systems, root_prefix defaults to ''" >&5 |
39fd3d4f | 14264 | $as_echo "On $host_os systems, root_prefix defaults to ''" >&6; } |
fc6d9d51 TT |
14265 | fi |
14266 | ;; | |
14267 | esac | |
fc6d9d51 | 14268 | case "$host_os" in |
93636bde | 14269 | linux* | gnu* | k*bsd*-gnu) |
fc6d9d51 | 14270 | if test "$prefix" = NONE ; then |
a4b2d3ce | 14271 | prefix="/usr"; |
57aa50d4 | 14272 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: On $host_os systems, prefix defaults to /usr" >&5 |
39fd3d4f | 14273 | $as_echo "On $host_os systems, prefix defaults to /usr" >&6; } |
bff61a7a | 14274 | if test "$mandir" = '${prefix}/man' ; then |
57aa50d4 | 14275 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ...and mandir defaults to /usr/share/man" >&5 |
39fd3d4f | 14276 | $as_echo "...and mandir defaults to /usr/share/man" >&6; } |
bff61a7a TT |
14277 | mandir=/usr/share/man |
14278 | fi | |
50e1e10f TT |
14279 | fi |
14280 | ;; | |
14281 | esac | |
a4b2d3ce | 14282 | if test "$root_prefix" = NONE ; then |
ffe1991f | 14283 | if test "$prefix" = NONE ; then |
a4b2d3ce TT |
14284 | root_prefix="$ac_default_prefix" |
14285 | else | |
14286 | root_prefix="$prefix" | |
14287 | fi | |
b5ffeade TT |
14288 | root_bindir=$bindir |
14289 | root_sbindir=$sbindir | |
14290 | root_libdir=$libdir | |
14291 | root_sysconfdir=$sysconfdir | |
14292 | else | |
14293 | root_bindir='${root_prefix}/bin' | |
14294 | root_sbindir='${root_prefix}/sbin' | |
14295 | root_libdir='${root_prefix}/lib' | |
14296 | root_sysconfdir='${root_prefix}/etc' | |
a4b2d3ce | 14297 | fi |
c4ef11c5 TT |
14298 | if test "$bindir" != '${exec_prefix}/bin'; then |
14299 | root_bindir=$bindir | |
57aa50d4 | 14300 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_bindir to $root_bindir" >&5 |
39fd3d4f | 14301 | $as_echo "Setting root_bindir to $root_bindir" >&6; } |
c4ef11c5 TT |
14302 | fi |
14303 | if test "$sbindir" != '${exec_prefix}/sbin'; then | |
14304 | root_sbindir=$sbindir | |
57aa50d4 | 14305 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_sbindir to $root_sbindir" >&5 |
39fd3d4f | 14306 | $as_echo "Setting root_sbindir to $root_sbindir" >&6; } |
c4ef11c5 TT |
14307 | fi |
14308 | if test "$libdir" != '${exec_prefix}/lib'; then | |
14309 | root_libdir=$libdir | |
57aa50d4 | 14310 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_libdir to $root_libdir" >&5 |
39fd3d4f | 14311 | $as_echo "Setting root_libdir to $root_libdir" >&6; } |
c4ef11c5 TT |
14312 | fi |
14313 | if test "$sysconfdir" != '${prefix}/etc'; then | |
14314 | root_sysconfdir=$sysconfdir | |
57aa50d4 | 14315 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_sysconfdir to $root_sysconfdir" >&5 |
39fd3d4f | 14316 | $as_echo "Setting root_sysconfdir to $root_sysconfdir" >&6; } |
c4ef11c5 | 14317 | fi |
a4b2d3ce | 14318 | |
93636bde TT |
14319 | |
14320 | ||
14321 | ||
14322 | ||
55e00a25 TT |
14323 | |
14324 | # Check whether --with-multiarch was given. | |
14325 | if test "${with_multiarch+set}" = set; then : | |
d7fa4103 TT |
14326 | withval=$with_multiarch; if test "$withval" = "lib64"; then |
14327 | libdir=/usr/lib64 | |
14328 | root_libdir=/lib64 | |
14329 | else | |
14330 | libdir=$libdir/$withval | |
14331 | root_libdir=$root_libdir/$withval | |
14332 | fi | |
55e00a25 TT |
14333 | |
14334 | fi | |
a2df5894 | 14335 | |
d3de1a71 TT |
14336 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can link with -static" >&5 |
14337 | $as_echo_n "checking whether we can link with -static... " >&6; } | |
d6a4bcb5 | 14338 | if ${ac_cv_e2fsprogs_use_static+:} false; then : |
39fd3d4f | 14339 | $as_echo_n "(cached) " >&6 |
ae851482 | 14340 | else |
fd1677e8 | 14341 | SAVE_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS_STATIC -static" |
57aa50d4 | 14342 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
b0cacab0 | 14343 | /* end confdefs.h. */ |
ae851482 | 14344 | #include <stdio.h> |
b0cacab0 TT |
14345 | int |
14346 | main () | |
14347 | { | |
ae851482 | 14348 | fflush(stdout); |
b0cacab0 TT |
14349 | ; |
14350 | return 0; | |
14351 | } | |
14352 | _ACEOF | |
57aa50d4 | 14353 | if ac_fn_c_try_link "$LINENO"; then : |
ae851482 TT |
14354 | ac_cv_e2fsprogs_use_static=yes |
14355 | else | |
57aa50d4 | 14356 | ac_cv_e2fsprogs_use_static=no |
ae851482 | 14357 | fi |
57aa50d4 TT |
14358 | rm -f core conftest.err conftest.$ac_objext \ |
14359 | conftest$ac_exeext conftest.$ac_ext | |
ae851482 TT |
14360 | LDFLAGS=$SAVE_LDFLAGS |
14361 | fi | |
50e1e10f | 14362 | |
defde784 TT |
14363 | case "$host_os" in |
14364 | solaris2.*) | |
b0cacab0 | 14365 | ac_cv_e2fsprogs_use_static=no |
defde784 TT |
14366 | ;; |
14367 | esac | |
57aa50d4 | 14368 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_e2fsprogs_use_static" >&5 |
39fd3d4f | 14369 | $as_echo "$ac_cv_e2fsprogs_use_static" >&6; } |
ae851482 | 14370 | if test $ac_cv_e2fsprogs_use_static = yes; then |
fd1677e8 | 14371 | LDFLAGS_STATIC="$LDFLAGS_STATIC -static" |
ae851482 | 14372 | fi |
50e1e10f | 14373 | |
07a0db15 TT |
14374 | case "$host_os" in |
14375 | darwin*) | |
57aa50d4 | 14376 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using Apple Darwin / GNU libintl workaround" >&5 |
39fd3d4f | 14377 | $as_echo "Using Apple Darwin / GNU libintl workaround" >&6; } |
d1154eb4 TT |
14378 | |
14379 | $as_echo "#define _INTL_REDIRECT_MACROS 1" >>confdefs.h | |
07a0db15 TT |
14380 | |
14381 | ;; | |
14382 | esac | |
50e1e10f TT |
14383 | if test "$cross_compiling" = yes ; then |
14384 | DO_TEST_SUITE= | |
14385 | else | |
14386 | DO_TEST_SUITE=check | |
14387 | fi | |
14388 | ||
d1154eb4 TT |
14389 | INCLUDES='-I. -I$(top_builddir)/lib -I$(top_srcdir)/lib' |
14390 | if test -n "$CPPFLAGS" ; then | |
14391 | INCLUDES="$INCLUDES $CPPFLAGS" | |
14392 | fi | |
c6f35b8a | 14393 | if test "$USE_INCLUDED_LIBINTL" = "yes" ; then |
d1154eb4 | 14394 | INCLUDES=$INCLUDES' -I$(top_builddir)/intl -I$(top_srcdir)/intl' |
c6f35b8a | 14395 | fi |
6c59a665 TT |
14396 | if test -n "$WITH_DIET_LIBC" ; then |
14397 | INCLUDES="$INCLUDES -D_REENTRANT" | |
14398 | fi | |
c6f35b8a | 14399 | |
dd947da2 | 14400 | if test $cross_compiling = no; then |
2873927d | 14401 | BUILD_CFLAGS="$CFLAGS $CPPFLAGS $INCLUDES -DHAVE_CONFIG_H" |
dd947da2 | 14402 | BUILD_LDFLAGS="$LDFLAGS" |
dd947da2 TT |
14403 | fi |
14404 | ||
14405 | ||
fd1677e8 TT |
14406 | CFLAGS_SHLIB=${CFLAGS_SHLIB:-$CFLAGS} |
14407 | CFLAGS_STLIB=${CFLAGS_STLIB:-$CFLAGS} | |
14408 | LDFLAGS_SHLIB=${LDFLAGS_SHLIB:-$LDFLAGS} | |
14409 | ||
14410 | ||
14411 | ||
5ce368f0 DW |
14412 | |
14413 | ||
14414 | # Check whether --with-udev_rules_dir was given. | |
14415 | if test "${with_udev_rules_dir+set}" = set; then : | |
14416 | withval=$with_udev_rules_dir; | |
14417 | else | |
14418 | with_udev_rules_dir=yes | |
14419 | fi | |
14420 | ||
14421 | if test "x${with_udev_rules_dir}" != "xno"; then : | |
14422 | ||
14423 | if test "x${with_udev_rules_dir}" = "xyes"; then : | |
14424 | ||
14425 | ||
14426 | pkg_failed=no | |
14427 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for udev" >&5 | |
14428 | $as_echo_n "checking for udev... " >&6; } | |
14429 | ||
14430 | if test -n "$udev_CFLAGS"; then | |
14431 | pkg_cv_udev_CFLAGS="$udev_CFLAGS" | |
14432 | elif test -n "$PKG_CONFIG"; then | |
14433 | if test -n "$PKG_CONFIG" && \ | |
14434 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"udev\""; } >&5 | |
14435 | ($PKG_CONFIG --exists --print-errors "udev") 2>&5 | |
14436 | ac_status=$? | |
14437 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
14438 | test $ac_status = 0; }; then | |
14439 | pkg_cv_udev_CFLAGS=`$PKG_CONFIG --cflags "udev" 2>/dev/null` | |
14440 | test "x$?" != "x0" && pkg_failed=yes | |
14441 | else | |
14442 | pkg_failed=yes | |
14443 | fi | |
14444 | else | |
14445 | pkg_failed=untried | |
14446 | fi | |
14447 | if test -n "$udev_LIBS"; then | |
14448 | pkg_cv_udev_LIBS="$udev_LIBS" | |
14449 | elif test -n "$PKG_CONFIG"; then | |
14450 | if test -n "$PKG_CONFIG" && \ | |
14451 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"udev\""; } >&5 | |
14452 | ($PKG_CONFIG --exists --print-errors "udev") 2>&5 | |
14453 | ac_status=$? | |
14454 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
14455 | test $ac_status = 0; }; then | |
14456 | pkg_cv_udev_LIBS=`$PKG_CONFIG --libs "udev" 2>/dev/null` | |
14457 | test "x$?" != "x0" && pkg_failed=yes | |
14458 | else | |
14459 | pkg_failed=yes | |
14460 | fi | |
14461 | else | |
14462 | pkg_failed=untried | |
14463 | fi | |
14464 | ||
14465 | ||
14466 | ||
14467 | if test $pkg_failed = yes; then | |
14468 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
14469 | $as_echo "no" >&6; } | |
14470 | ||
14471 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
14472 | _pkg_short_errors_supported=yes | |
14473 | else | |
14474 | _pkg_short_errors_supported=no | |
14475 | fi | |
14476 | if test $_pkg_short_errors_supported = yes; then | |
14477 | udev_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "udev" 2>&1` | |
14478 | else | |
14479 | udev_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "udev" 2>&1` | |
14480 | fi | |
14481 | # Put the nasty error message in config.log where it belongs | |
14482 | echo "$udev_PKG_ERRORS" >&5 | |
14483 | ||
14484 | ||
14485 | with_udev_rules_dir="" | |
14486 | ||
14487 | elif test $pkg_failed = untried; then | |
14488 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
14489 | $as_echo "no" >&6; } | |
14490 | ||
14491 | with_udev_rules_dir="" | |
14492 | ||
14493 | else | |
14494 | udev_CFLAGS=$pkg_cv_udev_CFLAGS | |
14495 | udev_LIBS=$pkg_cv_udev_LIBS | |
14496 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
14497 | $as_echo "yes" >&6; } | |
14498 | ||
14499 | with_udev_rules_dir="$($PKG_CONFIG --variable=udevdir udev)/rules.d" | |
14500 | ||
14501 | fi | |
14502 | ||
14503 | fi | |
14504 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for udev rules dir" >&5 | |
14505 | $as_echo_n "checking for udev rules dir... " >&6; } | |
14506 | pkg_udev_rules_dir="${with_udev_rules_dir}" | |
14507 | if test -n "${pkg_udev_rules_dir}"; then : | |
14508 | ||
14509 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${pkg_udev_rules_dir}" >&5 | |
14510 | $as_echo "${pkg_udev_rules_dir}" >&6; } | |
14511 | have_udev="yes" | |
14512 | ||
14513 | else | |
14514 | ||
14515 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
14516 | $as_echo "no" >&6; } | |
14517 | have_udev="no" | |
14518 | ||
14519 | fi | |
14520 | ||
14521 | else | |
14522 | ||
14523 | have_udev="disabled" | |
14524 | ||
14525 | fi | |
14526 | ||
14527 | ||
14528 | ||
a2df5894 DW |
14529 | |
14530 | # Check whether --with-crond_dir was given. | |
14531 | if test "${with_crond_dir+set}" = set; then : | |
14532 | withval=$with_crond_dir; | |
14533 | else | |
14534 | with_crond_dir=yes | |
14535 | fi | |
14536 | ||
14537 | if test "x${with_crond_dir}" != "xno"; then : | |
14538 | ||
14539 | if test "x${with_crond_dir}" = "xyes"; then : | |
14540 | ||
14541 | if test -d "/etc/cron.d"; then : | |
14542 | with_crond_dir="/etc/cron.d" | |
188bf39a TT |
14543 | else |
14544 | have_crond="no"; with_crond_dir="" | |
a2df5894 DW |
14545 | fi |
14546 | ||
14547 | fi | |
14548 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for system crontab dir" >&5 | |
14549 | $as_echo_n "checking for system crontab dir... " >&6; } | |
14550 | crond_dir="${with_crond_dir}" | |
14551 | if test -n "${crond_dir}"; then : | |
14552 | ||
14553 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${crond_dir}" >&5 | |
14554 | $as_echo "${crond_dir}" >&6; } | |
14555 | have_crond="yes" | |
14556 | ||
14557 | else | |
14558 | ||
14559 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
14560 | $as_echo "no" >&6; } | |
14561 | have_crond="no" | |
14562 | ||
14563 | fi | |
14564 | ||
14565 | else | |
14566 | ||
14567 | have_crond="disabled" | |
14568 | ||
14569 | fi | |
14570 | ||
14571 | ||
14572 | ||
14573 | ||
14574 | # Check whether --with-systemd_unit_dir was given. | |
14575 | if test "${with_systemd_unit_dir+set}" = set; then : | |
14576 | withval=$with_systemd_unit_dir; | |
14577 | else | |
14578 | with_systemd_unit_dir=yes | |
14579 | fi | |
14580 | ||
14581 | if test "x${with_systemd_unit_dir}" != "xno"; then : | |
14582 | ||
14583 | if test "x${with_systemd_unit_dir}" = "xyes"; then : | |
14584 | ||
14585 | ||
14586 | pkg_failed=no | |
14587 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for systemd" >&5 | |
14588 | $as_echo_n "checking for systemd... " >&6; } | |
14589 | ||
14590 | if test -n "$systemd_CFLAGS"; then | |
14591 | pkg_cv_systemd_CFLAGS="$systemd_CFLAGS" | |
14592 | elif test -n "$PKG_CONFIG"; then | |
14593 | if test -n "$PKG_CONFIG" && \ | |
14594 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"systemd\""; } >&5 | |
14595 | ($PKG_CONFIG --exists --print-errors "systemd") 2>&5 | |
14596 | ac_status=$? | |
14597 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
14598 | test $ac_status = 0; }; then | |
14599 | pkg_cv_systemd_CFLAGS=`$PKG_CONFIG --cflags "systemd" 2>/dev/null` | |
14600 | test "x$?" != "x0" && pkg_failed=yes | |
14601 | else | |
14602 | pkg_failed=yes | |
14603 | fi | |
14604 | else | |
14605 | pkg_failed=untried | |
14606 | fi | |
14607 | if test -n "$systemd_LIBS"; then | |
14608 | pkg_cv_systemd_LIBS="$systemd_LIBS" | |
14609 | elif test -n "$PKG_CONFIG"; then | |
14610 | if test -n "$PKG_CONFIG" && \ | |
14611 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"systemd\""; } >&5 | |
14612 | ($PKG_CONFIG --exists --print-errors "systemd") 2>&5 | |
14613 | ac_status=$? | |
14614 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
14615 | test $ac_status = 0; }; then | |
14616 | pkg_cv_systemd_LIBS=`$PKG_CONFIG --libs "systemd" 2>/dev/null` | |
14617 | test "x$?" != "x0" && pkg_failed=yes | |
14618 | else | |
14619 | pkg_failed=yes | |
14620 | fi | |
14621 | else | |
14622 | pkg_failed=untried | |
14623 | fi | |
14624 | ||
14625 | ||
14626 | ||
14627 | if test $pkg_failed = yes; then | |
14628 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
14629 | $as_echo "no" >&6; } | |
14630 | ||
14631 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
14632 | _pkg_short_errors_supported=yes | |
14633 | else | |
14634 | _pkg_short_errors_supported=no | |
14635 | fi | |
14636 | if test $_pkg_short_errors_supported = yes; then | |
14637 | systemd_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "systemd" 2>&1` | |
14638 | else | |
14639 | systemd_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "systemd" 2>&1` | |
14640 | fi | |
14641 | # Put the nasty error message in config.log where it belongs | |
14642 | echo "$systemd_PKG_ERRORS" >&5 | |
14643 | ||
14644 | ||
14645 | with_systemd_unit_dir="" | |
14646 | ||
14647 | elif test $pkg_failed = untried; then | |
14648 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
14649 | $as_echo "no" >&6; } | |
14650 | ||
14651 | with_systemd_unit_dir="" | |
14652 | ||
14653 | else | |
14654 | systemd_CFLAGS=$pkg_cv_systemd_CFLAGS | |
14655 | systemd_LIBS=$pkg_cv_systemd_LIBS | |
14656 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
14657 | $as_echo "yes" >&6; } | |
14658 | ||
14659 | with_systemd_unit_dir="$($PKG_CONFIG --variable=systemdsystemunitdir systemd)" | |
14660 | ||
14661 | fi | |
14662 | ||
14663 | ||
14664 | fi | |
14665 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for systemd system unit dir" >&5 | |
14666 | $as_echo_n "checking for systemd system unit dir... " >&6; } | |
14667 | systemd_system_unit_dir="${with_systemd_unit_dir}" | |
14668 | if test -n "${systemd_system_unit_dir}"; then : | |
14669 | ||
14670 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${systemd_system_unit_dir}" >&5 | |
14671 | $as_echo "${systemd_system_unit_dir}" >&6; } | |
14672 | have_systemd="yes" | |
14673 | ||
14674 | else | |
14675 | ||
14676 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
14677 | $as_echo "no" >&6; } | |
14678 | have_systemd="no" | |
14679 | ||
14680 | fi | |
14681 | ||
14682 | else | |
14683 | ||
14684 | have_systemd="disabled" | |
14685 | ||
14686 | fi | |
14687 | ||
14688 | ||
14689 | ||
50e1e10f TT |
14690 | test -d lib || mkdir lib |
14691 | test -d include || mkdir include | |
14692 | test -d include/linux || mkdir include/linux | |
defde784 | 14693 | test -d include/asm || mkdir include/asm |
44dfb378 TT |
14694 | if test -z "$UUID_CMT" ; then |
14695 | uuid_out_list="lib/uuid/Makefile lib/uuid/uuid.pc \ | |
14696 | lib/uuid/uuid_types.h" | |
14697 | fi | |
14698 | if test -z "$BLKID_CMT" ; then | |
14699 | blkid_out_list="lib/blkid/Makefile lib/blkid/blkid.pc \ | |
14700 | lib/blkid/blkid_types.h" | |
14701 | fi | |
e5f0f3ee | 14702 | for i in MCONFIG Makefile \ |
183c73b0 | 14703 | util/Makefile util/subst.conf util/gen-tarball util/install-symlink \ |
4ea7ea00 TT |
14704 | lib/et/Makefile lib/ss/Makefile lib/e2p/Makefile \ |
14705 | lib/ext2fs/Makefile lib/ext2fs/ext2_types.h \ | |
f34af41b | 14706 | $uuid_out_list $blkid_out_list lib/support/Makefile \ |
44dfb378 | 14707 | lib/ss/ss.pc lib/et/com_err.pc lib/e2p/e2p.pc lib/ext2fs/ext2fs.pc \ |
921f4ad5 | 14708 | misc/Makefile ext2ed/Makefile e2fsck/Makefile \ |
94ba8c75 | 14709 | debugfs/Makefile tests/Makefile tests/progs/Makefile \ |
98a5ad61 | 14710 | resize/Makefile doc/Makefile intl/Makefile \ |
5ce368f0 | 14711 | intl/libgnuintl.h po/Makefile.in scrub/Makefile; do |
94ba8c75 TT |
14712 | if test -d `dirname ${srcdir}/$i` ; then |
14713 | outlist="$outlist $i" | |
14714 | fi | |
14715 | done | |
e1052144 TT |
14716 | ac_config_files="$ac_config_files $outlist" |
14717 | ||
b0cacab0 | 14718 | cat >confcache <<\_ACEOF |
50e1e10f TT |
14719 | # This file is a shell script that caches the results of configure |
14720 | # tests run on this system so they can be shared between configure | |
b0cacab0 TT |
14721 | # scripts and configure runs, see configure's option --config-cache. |
14722 | # It is not useful on other systems. If it contains results you don't | |
14723 | # want to keep, you may remove or edit it. | |
50e1e10f | 14724 | # |
b0cacab0 TT |
14725 | # config.status only pays attention to the cache file if you give it |
14726 | # the --recheck option to rerun configure. | |
50e1e10f | 14727 | # |
b0cacab0 TT |
14728 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
14729 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
14730 | # following values. | |
14731 | ||
14732 | _ACEOF | |
14733 | ||
21c84b71 TT |
14734 | # The following way of writing the cache mishandles newlines in values, |
14735 | # but we know of no workaround that is simple, portable, and efficient. | |
e1052144 | 14736 | # So, we kill variables containing newlines. |
50e1e10f TT |
14737 | # Ultrix sh set writes to stderr and can't be redirected directly, |
14738 | # and sets the high bit in the cache file unless we assign to the vars. | |
e1052144 TT |
14739 | ( |
14740 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
14741 | eval ac_val=\$$ac_var | |
14742 | case $ac_val in #( | |
14743 | *${as_nl}*) | |
14744 | case $ac_var in #( | |
57aa50d4 | 14745 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
39fd3d4f | 14746 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
e1052144 TT |
14747 | esac |
14748 | case $ac_var in #( | |
14749 | _ | IFS | as_nl) ;; #( | |
39fd3d4f | 14750 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
57aa50d4 | 14751 | *) { eval $ac_var=; unset $ac_var;} ;; |
e1052144 TT |
14752 | esac ;; |
14753 | esac | |
14754 | done | |
14755 | ||
b0cacab0 | 14756 | (set) 2>&1 | |
e1052144 TT |
14757 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
14758 | *${as_nl}ac_space=\ *) | |
57aa50d4 TT |
14759 | # `set' does not quote correctly, so add quotes: double-quote |
14760 | # substitution turns \\\\ into \\, and sed turns \\ into \. | |
b0cacab0 TT |
14761 | sed -n \ |
14762 | "s/'/'\\\\''/g; | |
14763 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
e1052144 | 14764 | ;; #( |
b0cacab0 TT |
14765 | *) |
14766 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
e1052144 | 14767 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
b0cacab0 | 14768 | ;; |
e1052144 TT |
14769 | esac | |
14770 | sort | |
14771 | ) | | |
b0cacab0 | 14772 | sed ' |
e1052144 | 14773 | /^ac_cv_env_/b end |
b0cacab0 | 14774 | t clear |
e1052144 | 14775 | :clear |
b0cacab0 TT |
14776 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
14777 | t end | |
e1052144 TT |
14778 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
14779 | :end' >>confcache | |
14780 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
14781 | if test -w "$cache_file"; then | |
d6a4bcb5 | 14782 | if test "x$cache_file" != "x/dev/null"; then |
57aa50d4 | 14783 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
39fd3d4f | 14784 | $as_echo "$as_me: updating cache $cache_file" >&6;} |
d6a4bcb5 TB |
14785 | if test ! -f "$cache_file" || test -h "$cache_file"; then |
14786 | cat confcache >"$cache_file" | |
14787 | else | |
14788 | case $cache_file in #( | |
14789 | */* | ?:*) | |
14790 | mv -f confcache "$cache_file"$$ && | |
14791 | mv -f "$cache_file"$$ "$cache_file" ;; #( | |
14792 | *) | |
14793 | mv -f confcache "$cache_file" ;; | |
14794 | esac | |
14795 | fi | |
14796 | fi | |
50e1e10f | 14797 | else |
57aa50d4 | 14798 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
39fd3d4f | 14799 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
50e1e10f TT |
14800 | fi |
14801 | fi | |
14802 | rm -f confcache | |
14803 | ||
50e1e10f TT |
14804 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
14805 | # Let make expand exec_prefix. | |
14806 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
14807 | ||
d1154eb4 | 14808 | DEFS=-DHAVE_CONFIG_H |
b0cacab0 TT |
14809 | |
14810 | ac_libobjs= | |
14811 | ac_ltlibobjs= | |
d6a4bcb5 | 14812 | U= |
b0cacab0 TT |
14813 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
14814 | # 1. Remove the extension, and $U if already installed. | |
e1052144 | 14815 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
39fd3d4f | 14816 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` |
e1052144 TT |
14817 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
14818 | # will be set to the directory where LIBOBJS objects are built. | |
57aa50d4 TT |
14819 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
14820 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' | |
b0cacab0 TT |
14821 | done |
14822 | LIBOBJS=$ac_libobjs | |
50e1e10f | 14823 | |
b0cacab0 TT |
14824 | LTLIBOBJS=$ac_ltlibobjs |
14825 | ||
14826 | ||
14827 | ||
39fd3d4f | 14828 | |
d6a4bcb5 | 14829 | : "${CONFIG_STATUS=./config.status}" |
39fd3d4f | 14830 | ac_write_fail=0 |
b0cacab0 TT |
14831 | ac_clean_files_save=$ac_clean_files |
14832 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
57aa50d4 | 14833 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
39fd3d4f | 14834 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} |
57aa50d4 TT |
14835 | as_write_fail=0 |
14836 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 | |
b0cacab0 TT |
14837 | #! $SHELL |
14838 | # Generated by $as_me. | |
93636bde | 14839 | # Run this file to recreate the current configuration. |
93636bde | 14840 | # Compiler output produced by configure, useful for debugging |
b0cacab0 | 14841 | # configure, is in config.log if it exists. |
07a0db15 | 14842 | |
b0cacab0 TT |
14843 | debug=false |
14844 | ac_cs_recheck=false | |
14845 | ac_cs_silent=false | |
b0cacab0 | 14846 | |
57aa50d4 TT |
14847 | SHELL=\${CONFIG_SHELL-$SHELL} |
14848 | export SHELL | |
14849 | _ASEOF | |
14850 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 | |
14851 | ## -------------------- ## | |
14852 | ## M4sh Initialization. ## | |
14853 | ## -------------------- ## | |
b0cacab0 | 14854 | |
29a5deed TT |
14855 | # Be more Bourne compatible |
14856 | DUALCASE=1; export DUALCASE # for MKS sh | |
57aa50d4 | 14857 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : |
b0cacab0 TT |
14858 | emulate sh |
14859 | NULLCMD=: | |
39fd3d4f | 14860 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
b0cacab0 TT |
14861 | # is contrary to our usage. Disable this feature. |
14862 | alias -g '${1+"$@"}'='"$@"' | |
e1052144 TT |
14863 | setopt NO_GLOB_SUBST |
14864 | else | |
57aa50d4 TT |
14865 | case `(set -o) 2>/dev/null` in #( |
14866 | *posix*) : | |
14867 | set -o posix ;; #( | |
14868 | *) : | |
14869 | ;; | |
29a5deed | 14870 | esac |
b0cacab0 | 14871 | fi |
29a5deed TT |
14872 | |
14873 | ||
39fd3d4f SJR |
14874 | as_nl=' |
14875 | ' | |
14876 | export as_nl | |
14877 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
14878 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
14879 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
14880 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
57aa50d4 TT |
14881 | # Prefer a ksh shell builtin over an external printf program on Solaris, |
14882 | # but without wasting forks for bash or zsh. | |
14883 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
14884 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
14885 | as_echo='print -r --' | |
14886 | as_echo_n='print -rn --' | |
14887 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
39fd3d4f SJR |
14888 | as_echo='printf %s\n' |
14889 | as_echo_n='printf %s' | |
14890 | else | |
14891 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
14892 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
14893 | as_echo_n='/usr/ucb/echo -n' | |
e1052144 | 14894 | else |
39fd3d4f SJR |
14895 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
14896 | as_echo_n_body='eval | |
14897 | arg=$1; | |
57aa50d4 | 14898 | case $arg in #( |
39fd3d4f SJR |
14899 | *"$as_nl"*) |
14900 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
14901 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
14902 | esac; | |
14903 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
14904 | ' | |
14905 | export as_echo_n_body | |
14906 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
e1052144 | 14907 | fi |
39fd3d4f SJR |
14908 | export as_echo_body |
14909 | as_echo='sh -c $as_echo_body as_echo' | |
14910 | fi | |
14911 | ||
14912 | # The user is always right. | |
14913 | if test "${PATH_SEPARATOR+set}" != set; then | |
14914 | PATH_SEPARATOR=: | |
14915 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
14916 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
14917 | PATH_SEPARATOR=';' | |
14918 | } | |
e1052144 TT |
14919 | fi |
14920 | ||
b0cacab0 | 14921 | |
e1052144 TT |
14922 | # IFS |
14923 | # We need space, tab and new line, in precisely that order. Quoting is | |
14924 | # there to prevent editors from complaining about space-tab. | |
14925 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
14926 | # splitting by setting IFS to empty value.) | |
e1052144 TT |
14927 | IFS=" "" $as_nl" |
14928 | ||
14929 | # Find who we are. Look in the path if we contain no directory separator. | |
d6a4bcb5 | 14930 | as_myself= |
57aa50d4 | 14931 | case $0 in #(( |
e1052144 TT |
14932 | *[\\/]* ) as_myself=$0 ;; |
14933 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14934 | for as_dir in $PATH | |
14935 | do | |
14936 | IFS=$as_save_IFS | |
14937 | test -z "$as_dir" && as_dir=. | |
57aa50d4 TT |
14938 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
14939 | done | |
e1052144 TT |
14940 | IFS=$as_save_IFS |
14941 | ||
14942 | ;; | |
14943 | esac | |
14944 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
14945 | # in which case we are not to be found in the path. | |
14946 | if test "x$as_myself" = x; then | |
14947 | as_myself=$0 | |
14948 | fi | |
14949 | if test ! -f "$as_myself"; then | |
39fd3d4f | 14950 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
57aa50d4 | 14951 | exit 1 |
e1052144 TT |
14952 | fi |
14953 | ||
57aa50d4 TT |
14954 | # Unset variables that we do not need and which cause bugs (e.g. in |
14955 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
14956 | # suppresses any "Segmentation fault" message there. '((' could | |
14957 | # trigger a bug in pdksh 5.2.14. | |
14958 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
14959 | do eval test x\${$as_var+set} = xset \ | |
14960 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
e1052144 | 14961 | done |
b0cacab0 TT |
14962 | PS1='$ ' |
14963 | PS2='> ' | |
14964 | PS4='+ ' | |
14965 | ||
14966 | # NLS nuisances. | |
39fd3d4f SJR |
14967 | LC_ALL=C |
14968 | export LC_ALL | |
14969 | LANGUAGE=C | |
14970 | export LANGUAGE | |
b0cacab0 | 14971 | |
57aa50d4 TT |
14972 | # CDPATH. |
14973 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
14974 | ||
14975 | ||
d6a4bcb5 TB |
14976 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
14977 | # ---------------------------------------- | |
57aa50d4 TT |
14978 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
14979 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
d6a4bcb5 | 14980 | # script with STATUS, using 1 if that was 0. |
57aa50d4 TT |
14981 | as_fn_error () |
14982 | { | |
d6a4bcb5 TB |
14983 | as_status=$1; test $as_status -eq 0 && as_status=1 |
14984 | if test "$4"; then | |
14985 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
14986 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | |
57aa50d4 | 14987 | fi |
d6a4bcb5 | 14988 | $as_echo "$as_me: error: $2" >&2 |
57aa50d4 TT |
14989 | as_fn_exit $as_status |
14990 | } # as_fn_error | |
14991 | ||
14992 | ||
14993 | # as_fn_set_status STATUS | |
14994 | # ----------------------- | |
14995 | # Set $? to STATUS, without forking. | |
14996 | as_fn_set_status () | |
14997 | { | |
14998 | return $1 | |
14999 | } # as_fn_set_status | |
15000 | ||
15001 | # as_fn_exit STATUS | |
15002 | # ----------------- | |
15003 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
15004 | as_fn_exit () | |
15005 | { | |
15006 | set +e | |
15007 | as_fn_set_status $1 | |
15008 | exit $1 | |
15009 | } # as_fn_exit | |
15010 | ||
15011 | # as_fn_unset VAR | |
15012 | # --------------- | |
15013 | # Portably unset VAR. | |
15014 | as_fn_unset () | |
15015 | { | |
15016 | { eval $1=; unset $1;} | |
15017 | } | |
15018 | as_unset=as_fn_unset | |
15019 | # as_fn_append VAR VALUE | |
15020 | # ---------------------- | |
15021 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
15022 | # advantage of any shell optimizations that allow amortized linear growth over | |
15023 | # repeated appends, instead of the typical quadratic growth present in naive | |
15024 | # implementations. | |
15025 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
15026 | eval 'as_fn_append () | |
15027 | { | |
15028 | eval $1+=\$2 | |
15029 | }' | |
15030 | else | |
15031 | as_fn_append () | |
15032 | { | |
15033 | eval $1=\$$1\$2 | |
15034 | } | |
15035 | fi # as_fn_append | |
15036 | ||
15037 | # as_fn_arith ARG... | |
15038 | # ------------------ | |
15039 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
15040 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
15041 | # must be portable across $(()) and expr. | |
15042 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
15043 | eval 'as_fn_arith () | |
15044 | { | |
15045 | as_val=$(( $* )) | |
15046 | }' | |
15047 | else | |
15048 | as_fn_arith () | |
15049 | { | |
15050 | as_val=`expr "$@" || test $? -eq 1` | |
15051 | } | |
15052 | fi # as_fn_arith | |
15053 | ||
15054 | ||
e1052144 TT |
15055 | if expr a : '\(a\)' >/dev/null 2>&1 && |
15056 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
b0cacab0 TT |
15057 | as_expr=expr |
15058 | else | |
15059 | as_expr=false | |
15060 | fi | |
15061 | ||
e1052144 | 15062 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
b0cacab0 TT |
15063 | as_basename=basename |
15064 | else | |
15065 | as_basename=false | |
15066 | fi | |
15067 | ||
57aa50d4 TT |
15068 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
15069 | as_dirname=dirname | |
15070 | else | |
15071 | as_dirname=false | |
15072 | fi | |
b0cacab0 | 15073 | |
e1052144 | 15074 | as_me=`$as_basename -- "$0" || |
b0cacab0 TT |
15075 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
15076 | X"$0" : 'X\(//\)$' \| \ | |
e1052144 | 15077 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
39fd3d4f | 15078 | $as_echo X/"$0" | |
e1052144 TT |
15079 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
15080 | s//\1/ | |
15081 | q | |
15082 | } | |
15083 | /^X\/\(\/\/\)$/{ | |
15084 | s//\1/ | |
15085 | q | |
15086 | } | |
15087 | /^X\/\(\/\).*/{ | |
15088 | s//\1/ | |
15089 | q | |
15090 | } | |
15091 | s/.*/./; q'` | |
b0cacab0 | 15092 | |
57aa50d4 TT |
15093 | # Avoid depending upon Character Ranges. |
15094 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
15095 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
15096 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
15097 | as_cr_digits='0123456789' | |
15098 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
e1052144 TT |
15099 | |
15100 | ECHO_C= ECHO_N= ECHO_T= | |
57aa50d4 | 15101 | case `echo -n x` in #((((( |
e1052144 | 15102 | -n*) |
57aa50d4 | 15103 | case `echo 'xy\c'` in |
e1052144 | 15104 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
57aa50d4 TT |
15105 | xy) ECHO_C='\c';; |
15106 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
15107 | ECHO_T=' ';; | |
e1052144 TT |
15108 | esac;; |
15109 | *) | |
15110 | ECHO_N='-n';; | |
b0cacab0 | 15111 | esac |
b0cacab0 TT |
15112 | |
15113 | rm -f conf$$ conf$$.exe conf$$.file | |
e1052144 TT |
15114 | if test -d conf$$.dir; then |
15115 | rm -f conf$$.dir/conf$$.file | |
15116 | else | |
15117 | rm -f conf$$.dir | |
39fd3d4f SJR |
15118 | mkdir conf$$.dir 2>/dev/null |
15119 | fi | |
15120 | if (echo >conf$$.file) 2>/dev/null; then | |
15121 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
15122 | as_ln_s='ln -s' | |
15123 | # ... but there are two gotchas: | |
15124 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
15125 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
d6a4bcb5 | 15126 | # In both cases, we have to default to `cp -pR'. |
39fd3d4f | 15127 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
d6a4bcb5 | 15128 | as_ln_s='cp -pR' |
39fd3d4f SJR |
15129 | elif ln conf$$.file conf$$ 2>/dev/null; then |
15130 | as_ln_s=ln | |
15131 | else | |
d6a4bcb5 | 15132 | as_ln_s='cp -pR' |
39fd3d4f | 15133 | fi |
b0cacab0 | 15134 | else |
d6a4bcb5 | 15135 | as_ln_s='cp -pR' |
b0cacab0 | 15136 | fi |
e1052144 TT |
15137 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
15138 | rmdir conf$$.dir 2>/dev/null | |
b0cacab0 | 15139 | |
57aa50d4 TT |
15140 | |
15141 | # as_fn_mkdir_p | |
15142 | # ------------- | |
15143 | # Create "$as_dir" as a directory, including parents if necessary. | |
15144 | as_fn_mkdir_p () | |
15145 | { | |
15146 | ||
15147 | case $as_dir in #( | |
15148 | -*) as_dir=./$as_dir;; | |
15149 | esac | |
15150 | test -d "$as_dir" || eval $as_mkdir_p || { | |
15151 | as_dirs= | |
15152 | while :; do | |
15153 | case $as_dir in #( | |
15154 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
15155 | *) as_qdir=$as_dir;; | |
15156 | esac | |
15157 | as_dirs="'$as_qdir' $as_dirs" | |
15158 | as_dir=`$as_dirname -- "$as_dir" || | |
15159 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
15160 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
15161 | X"$as_dir" : 'X\(//\)$' \| \ | |
15162 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
15163 | $as_echo X"$as_dir" | | |
15164 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
15165 | s//\1/ | |
15166 | q | |
15167 | } | |
15168 | /^X\(\/\/\)[^/].*/{ | |
15169 | s//\1/ | |
15170 | q | |
15171 | } | |
15172 | /^X\(\/\/\)$/{ | |
15173 | s//\1/ | |
15174 | q | |
15175 | } | |
15176 | /^X\(\/\).*/{ | |
15177 | s//\1/ | |
15178 | q | |
15179 | } | |
15180 | s/.*/./; q'` | |
15181 | test -d "$as_dir" && break | |
15182 | done | |
15183 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
d6a4bcb5 | 15184 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
57aa50d4 TT |
15185 | |
15186 | ||
15187 | } # as_fn_mkdir_p | |
b0cacab0 | 15188 | if mkdir -p . 2>/dev/null; then |
57aa50d4 | 15189 | as_mkdir_p='mkdir -p "$as_dir"' |
b0cacab0 TT |
15190 | else |
15191 | test -d ./-p && rmdir ./-p | |
15192 | as_mkdir_p=false | |
15193 | fi | |
15194 | ||
d6a4bcb5 TB |
15195 | |
15196 | # as_fn_executable_p FILE | |
15197 | # ----------------------- | |
15198 | # Test if FILE is an executable regular file. | |
15199 | as_fn_executable_p () | |
15200 | { | |
15201 | test -f "$1" && test -x "$1" | |
15202 | } # as_fn_executable_p | |
15203 | as_test_x='test -x' | |
15204 | as_executable_p=as_fn_executable_p | |
b0cacab0 TT |
15205 | |
15206 | # Sed expression to map a string onto a valid CPP name. | |
15207 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
15208 | ||
15209 | # Sed expression to map a string onto a valid variable name. | |
15210 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
15211 | ||
15212 | ||
b0cacab0 | 15213 | exec 6>&1 |
57aa50d4 TT |
15214 | ## ----------------------------------- ## |
15215 | ## Main body of $CONFIG_STATUS script. ## | |
15216 | ## ----------------------------------- ## | |
15217 | _ASEOF | |
15218 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 | |
b0cacab0 | 15219 | |
57aa50d4 TT |
15220 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
15221 | # Save the log message, to keep $0 and so on meaningful, and to | |
b0cacab0 | 15222 | # report actual input values of CONFIG_FILES etc. instead of their |
e1052144 TT |
15223 | # values after options handling. |
15224 | ac_log=" | |
b0cacab0 | 15225 | This file was extended by $as_me, which was |
d6a4bcb5 | 15226 | generated by GNU Autoconf 2.69. Invocation command line was |
b0cacab0 TT |
15227 | |
15228 | CONFIG_FILES = $CONFIG_FILES | |
15229 | CONFIG_HEADERS = $CONFIG_HEADERS | |
15230 | CONFIG_LINKS = $CONFIG_LINKS | |
15231 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
15232 | $ $0 $@ | |
15233 | ||
e1052144 TT |
15234 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
15235 | " | |
15236 | ||
b0cacab0 TT |
15237 | _ACEOF |
15238 | ||
39fd3d4f SJR |
15239 | case $ac_config_files in *" |
15240 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | |
15241 | esac | |
15242 | ||
d1154eb4 TT |
15243 | case $ac_config_headers in *" |
15244 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; | |
15245 | esac | |
39fd3d4f SJR |
15246 | |
15247 | ||
15248 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
b0cacab0 | 15249 | # Files that config.status was made for. |
e1052144 | 15250 | config_files="$ac_config_files" |
d1154eb4 | 15251 | config_headers="$ac_config_headers" |
e1052144 | 15252 | config_commands="$ac_config_commands" |
b0cacab0 | 15253 | |
e1052144 | 15254 | _ACEOF |
b0cacab0 | 15255 | |
39fd3d4f | 15256 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
b0cacab0 | 15257 | ac_cs_usage="\ |
57aa50d4 TT |
15258 | \`$as_me' instantiates files and other configuration actions |
15259 | from templates according to the current configuration. Unless the files | |
15260 | and actions are specified as TAGs, all are instantiated by default. | |
b0cacab0 | 15261 | |
57aa50d4 | 15262 | Usage: $0 [OPTION]... [TAG]... |
b0cacab0 TT |
15263 | |
15264 | -h, --help print this help, then exit | |
29a5deed | 15265 | -V, --version print version number and configuration settings, then exit |
61ef2474 | 15266 | --config print configuration, then exit |
39fd3d4f SJR |
15267 | -q, --quiet, --silent |
15268 | do not print progress messages | |
b0cacab0 TT |
15269 | -d, --debug don't remove temporary files |
15270 | --recheck update $as_me by reconfiguring in the same conditions | |
39fd3d4f SJR |
15271 | --file=FILE[:TEMPLATE] |
15272 | instantiate the configuration file FILE | |
d1154eb4 TT |
15273 | --header=FILE[:TEMPLATE] |
15274 | instantiate the configuration header FILE | |
b0cacab0 TT |
15275 | |
15276 | Configuration files: | |
15277 | $config_files | |
15278 | ||
d1154eb4 TT |
15279 | Configuration headers: |
15280 | $config_headers | |
15281 | ||
b0cacab0 TT |
15282 | Configuration commands: |
15283 | $config_commands | |
15284 | ||
57aa50d4 | 15285 | Report bugs to the package provider." |
b0cacab0 | 15286 | |
e1052144 | 15287 | _ACEOF |
39fd3d4f | 15288 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
61ef2474 | 15289 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" |
b0cacab0 TT |
15290 | ac_cs_version="\\ |
15291 | config.status | |
d6a4bcb5 | 15292 | configured by $0, generated by GNU Autoconf 2.69, |
61ef2474 | 15293 | with options \\"\$ac_cs_config\\" |
b0cacab0 | 15294 | |
d6a4bcb5 | 15295 | Copyright (C) 2012 Free Software Foundation, Inc. |
b0cacab0 TT |
15296 | This config.status script is free software; the Free Software Foundation |
15297 | gives unlimited permission to copy, distribute and modify it." | |
e1052144 TT |
15298 | |
15299 | ac_pwd='$ac_pwd' | |
15300 | srcdir='$srcdir' | |
15301 | INSTALL='$INSTALL' | |
93613951 | 15302 | MKDIR_P='$MKDIR_P' |
39fd3d4f SJR |
15303 | AWK='$AWK' |
15304 | test -n "\$AWK" || AWK=awk | |
b0cacab0 TT |
15305 | _ACEOF |
15306 | ||
39fd3d4f SJR |
15307 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
15308 | # The default lists apply if the user does not specify any file. | |
b0cacab0 TT |
15309 | ac_need_defaults=: |
15310 | while test $# != 0 | |
07a0db15 | 15311 | do |
b0cacab0 | 15312 | case $1 in |
d6a4bcb5 | 15313 | --*=?*) |
e1052144 TT |
15314 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
15315 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
b0cacab0 TT |
15316 | ac_shift=: |
15317 | ;; | |
d6a4bcb5 TB |
15318 | --*=) |
15319 | ac_option=`expr "X$1" : 'X\([^=]*\)='` | |
15320 | ac_optarg= | |
15321 | ac_shift=: | |
15322 | ;; | |
e1052144 | 15323 | *) |
b0cacab0 TT |
15324 | ac_option=$1 |
15325 | ac_optarg=$2 | |
15326 | ac_shift=shift | |
15327 | ;; | |
b0cacab0 TT |
15328 | esac |
15329 | ||
15330 | case $ac_option in | |
15331 | # Handling of the options. | |
93636bde | 15332 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
b0cacab0 | 15333 | ac_cs_recheck=: ;; |
e1052144 | 15334 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
39fd3d4f | 15335 | $as_echo "$ac_cs_version"; exit ;; |
61ef2474 TT |
15336 | --config | --confi | --conf | --con | --co | --c ) |
15337 | $as_echo "$ac_cs_config"; exit ;; | |
e1052144 | 15338 | --debug | --debu | --deb | --de | --d | -d ) |
b0cacab0 TT |
15339 | debug=: ;; |
15340 | --file | --fil | --fi | --f ) | |
15341 | $ac_shift | |
39fd3d4f SJR |
15342 | case $ac_optarg in |
15343 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
d6a4bcb5 | 15344 | '') as_fn_error $? "missing file argument" ;; |
39fd3d4f | 15345 | esac |
57aa50d4 | 15346 | as_fn_append CONFIG_FILES " '$ac_optarg'" |
b0cacab0 | 15347 | ac_need_defaults=false;; |
d1154eb4 TT |
15348 | --header | --heade | --head | --hea ) |
15349 | $ac_shift | |
15350 | case $ac_optarg in | |
15351 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
15352 | esac | |
15353 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" | |
15354 | ac_need_defaults=false;; | |
15355 | --he | --h) | |
15356 | # Conflict between --help and --header | |
d6a4bcb5 | 15357 | as_fn_error $? "ambiguous option: \`$1' |
d1154eb4 TT |
15358 | Try \`$0 --help' for more information.";; |
15359 | --help | --hel | -h ) | |
39fd3d4f | 15360 | $as_echo "$ac_cs_usage"; exit ;; |
b0cacab0 TT |
15361 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
15362 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
15363 | ac_cs_silent=: ;; | |
15364 | ||
15365 | # This is an error. | |
d6a4bcb5 | 15366 | -*) as_fn_error $? "unrecognized option: \`$1' |
57aa50d4 | 15367 | Try \`$0 --help' for more information." ;; |
b0cacab0 | 15368 | |
57aa50d4 | 15369 | *) as_fn_append ac_config_targets " $1" |
e1052144 | 15370 | ac_need_defaults=false ;; |
b0cacab0 | 15371 | |
07a0db15 | 15372 | esac |
b0cacab0 | 15373 | shift |
07a0db15 TT |
15374 | done |
15375 | ||
b0cacab0 TT |
15376 | ac_configure_extra_args= |
15377 | ||
15378 | if $ac_cs_silent; then | |
15379 | exec 6>/dev/null | |
15380 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
15381 | fi | |
15382 | ||
15383 | _ACEOF | |
39fd3d4f | 15384 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
b0cacab0 | 15385 | if \$ac_cs_recheck; then |
d6a4bcb5 | 15386 | set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
39fd3d4f SJR |
15387 | shift |
15388 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | |
15389 | CONFIG_SHELL='$SHELL' | |
e1052144 | 15390 | export CONFIG_SHELL |
39fd3d4f | 15391 | exec "\$@" |
b0cacab0 | 15392 | fi |
07a0db15 | 15393 | |
b0cacab0 | 15394 | _ACEOF |
39fd3d4f | 15395 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
e1052144 TT |
15396 | exec 5>>config.log |
15397 | { | |
15398 | echo | |
15399 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
15400 | ## Running $as_me. ## | |
15401 | _ASBOX | |
39fd3d4f | 15402 | $as_echo "$ac_log" |
e1052144 | 15403 | } >&5 |
07a0db15 | 15404 | |
e1052144 | 15405 | _ACEOF |
39fd3d4f | 15406 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
b0cacab0 | 15407 | # |
e1052144 | 15408 | # INIT-COMMANDS |
b0cacab0 | 15409 | # |
b0cacab0 TT |
15410 | # Capture the value of obsolete ALL_LINGUAS because we need it to compute |
15411 | # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it | |
93613951 | 15412 | # from automake < 1.5. |
b0cacab0 TT |
15413 | eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"' |
15414 | # Capture the value of LINGUAS because we need it to compute CATALOGS. | |
15415 | LINGUAS="${LINGUAS-%UNSET%}" | |
15416 | ||
15417 | ||
15418 | _ACEOF | |
15419 | ||
39fd3d4f | 15420 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
e1052144 TT |
15421 | |
15422 | # Handling of arguments. | |
b0cacab0 TT |
15423 | for ac_config_target in $ac_config_targets |
15424 | do | |
e1052144 | 15425 | case $ac_config_target in |
d1154eb4 | 15426 | "lib/config.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/config.h" ;; |
93613951 | 15427 | "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;; |
e1052144 TT |
15428 | "$outlist") CONFIG_FILES="$CONFIG_FILES $outlist" ;; |
15429 | ||
d6a4bcb5 | 15430 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
b0cacab0 TT |
15431 | esac |
15432 | done | |
15433 | ||
e1052144 | 15434 | |
b0cacab0 TT |
15435 | # If the user did not use the arguments to specify the items to instantiate, |
15436 | # then the envvar interface is used. Set only those that are not. | |
15437 | # We use the long form for the default assignment because of an extremely | |
15438 | # bizarre bug on SunOS 4.1.3. | |
15439 | if $ac_need_defaults; then | |
15440 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
d1154eb4 | 15441 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
b0cacab0 TT |
15442 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
15443 | fi | |
15444 | ||
15445 | # Have a temporary directory for convenience. Make it in the build tree | |
e1052144 | 15446 | # simply because there is no reason against having it here, and in addition, |
b0cacab0 | 15447 | # creating and moving files from /tmp can sometimes cause problems. |
e1052144 TT |
15448 | # Hook for its removal unless debugging. |
15449 | # Note that there is a small window in which the directory will not be cleaned: | |
15450 | # after its creation but before its name has been assigned to `$tmp'. | |
b0cacab0 TT |
15451 | $debug || |
15452 | { | |
d6a4bcb5 | 15453 | tmp= ac_tmp= |
e1052144 | 15454 | trap 'exit_status=$? |
d6a4bcb5 TB |
15455 | : "${ac_tmp:=$tmp}" |
15456 | { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status | |
e1052144 | 15457 | ' 0 |
57aa50d4 | 15458 | trap 'as_fn_exit 1' 1 2 13 15 |
b0cacab0 | 15459 | } |
b0cacab0 TT |
15460 | # Create a (secure) tmp directory for tmp files. |
15461 | ||
15462 | { | |
e1052144 | 15463 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
d6a4bcb5 | 15464 | test -d "$tmp" |
b0cacab0 TT |
15465 | } || |
15466 | { | |
e1052144 TT |
15467 | tmp=./conf$$-$RANDOM |
15468 | (umask 077 && mkdir "$tmp") | |
d6a4bcb5 TB |
15469 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 |
15470 | ac_tmp=$tmp | |
b0cacab0 | 15471 | |
39fd3d4f SJR |
15472 | # Set up the scripts for CONFIG_FILES section. |
15473 | # No need to generate them if there are no CONFIG_FILES. | |
15474 | # This happens for instance with `./config.status config.h'. | |
e1052144 TT |
15475 | if test -n "$CONFIG_FILES"; then |
15476 | ||
39fd3d4f SJR |
15477 | if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then |
15478 | ac_cs_awk_getline=: | |
15479 | ac_cs_awk_pipe_init= | |
15480 | ac_cs_awk_read_file=' | |
15481 | while ((getline aline < (F[key])) > 0) | |
15482 | print(aline) | |
15483 | close(F[key])' | |
15484 | ac_cs_awk_pipe_fini= | |
15485 | else | |
15486 | ac_cs_awk_getline=false | |
15487 | ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\"" | |
15488 | ac_cs_awk_read_file=' | |
15489 | print "|#_!!_#|" | |
15490 | print "cat " F[key] " &&" | |
15491 | '$ac_cs_awk_pipe_init | |
15492 | # The final `:' finishes the AND list. | |
15493 | ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }' | |
15494 | fi | |
57aa50d4 TT |
15495 | ac_cr=`echo X | tr X '\015'` |
15496 | # On cygwin, bash can eat \r inside `` if the user requested igncr. | |
15497 | # But we know of no other shell where ac_cr would be empty at this | |
15498 | # point, so we can use a bashism as a fallback. | |
15499 | if test "x$ac_cr" = x; then | |
15500 | eval ac_cr=\$\'\\r\' | |
15501 | fi | |
39fd3d4f SJR |
15502 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` |
15503 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | |
d6a4bcb5 | 15504 | ac_cs_awk_cr='\\r' |
39fd3d4f SJR |
15505 | else |
15506 | ac_cs_awk_cr=$ac_cr | |
15507 | fi | |
e1052144 | 15508 | |
d6a4bcb5 | 15509 | echo 'BEGIN {' >"$ac_tmp/subs1.awk" && |
39fd3d4f | 15510 | _ACEOF |
e1052144 | 15511 | |
39fd3d4f SJR |
15512 | # Create commands to substitute file output variables. |
15513 | { | |
15514 | echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" && | |
d6a4bcb5 | 15515 | echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' && |
39fd3d4f SJR |
15516 | echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' && |
15517 | echo "_ACAWK" && | |
15518 | echo "_ACEOF" | |
15519 | } >conf$$files.sh && | |
15520 | . ./conf$$files.sh || | |
d6a4bcb5 | 15521 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
39fd3d4f | 15522 | rm -f conf$$files.sh |
e1052144 | 15523 | |
39fd3d4f SJR |
15524 | { |
15525 | echo "cat >conf$$subs.awk <<_ACEOF" && | |
15526 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | |
15527 | echo "_ACEOF" | |
15528 | } >conf$$subs.sh || | |
d6a4bcb5 TB |
15529 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
15530 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` | |
e1052144 TT |
15531 | ac_delim='%!_!# ' |
15532 | for ac_last_try in false false false false false :; do | |
39fd3d4f | 15533 | . ./conf$$subs.sh || |
d6a4bcb5 | 15534 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
39fd3d4f SJR |
15535 | |
15536 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` | |
15537 | if test $ac_delim_n = $ac_delim_num; then | |
e1052144 TT |
15538 | break |
15539 | elif $ac_last_try; then | |
d6a4bcb5 | 15540 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
e1052144 TT |
15541 | else |
15542 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
21c84b71 | 15543 | fi |
e1052144 | 15544 | done |
39fd3d4f SJR |
15545 | rm -f conf$$subs.sh |
15546 | ||
15547 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
d6a4bcb5 | 15548 | cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && |
39fd3d4f SJR |
15549 | _ACEOF |
15550 | sed -n ' | |
15551 | h | |
15552 | s/^/S["/; s/!.*/"]=/ | |
15553 | p | |
15554 | g | |
15555 | s/^[^!]*!// | |
15556 | :repl | |
15557 | t repl | |
15558 | s/'"$ac_delim"'$// | |
15559 | t delim | |
15560 | :nl | |
15561 | h | |
61ef2474 | 15562 | s/\(.\{148\}\)..*/\1/ |
39fd3d4f SJR |
15563 | t more1 |
15564 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | |
15565 | p | |
15566 | n | |
15567 | b repl | |
15568 | :more1 | |
15569 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
15570 | p | |
15571 | g | |
15572 | s/.\{148\}// | |
15573 | t nl | |
15574 | :delim | |
15575 | h | |
61ef2474 | 15576 | s/\(.\{148\}\)..*/\1/ |
39fd3d4f SJR |
15577 | t more2 |
15578 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | |
15579 | p | |
15580 | b | |
15581 | :more2 | |
15582 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
15583 | p | |
15584 | g | |
15585 | s/.\{148\}// | |
15586 | t delim | |
15587 | ' <conf$$subs.awk | sed ' | |
15588 | /^[^""]/{ | |
15589 | N | |
15590 | s/\n// | |
e1052144 | 15591 | } |
39fd3d4f SJR |
15592 | ' >>$CONFIG_STATUS || ac_write_fail=1 |
15593 | rm -f conf$$subs.awk | |
15594 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
15595 | _ACAWK | |
d6a4bcb5 | 15596 | cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && |
39fd3d4f SJR |
15597 | for (key in S) S_is_set[key] = 1 |
15598 | FS = "\a" | |
15599 | \$ac_cs_awk_pipe_init | |
e1052144 | 15600 | } |
39fd3d4f SJR |
15601 | { |
15602 | line = $ 0 | |
15603 | nfields = split(line, field, "@") | |
15604 | substed = 0 | |
15605 | len = length(field[1]) | |
15606 | for (i = 2; i < nfields; i++) { | |
15607 | key = field[i] | |
15608 | keylen = length(key) | |
15609 | if (S_is_set[key]) { | |
15610 | value = S[key] | |
15611 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | |
15612 | len += length(value) + length(field[++i]) | |
15613 | substed = 1 | |
15614 | } else | |
15615 | len += 1 + keylen | |
15616 | } | |
15617 | if (nfields == 3 && !substed) { | |
15618 | key = field[2] | |
15619 | if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) { | |
15620 | \$ac_cs_awk_read_file | |
15621 | next | |
15622 | } | |
15623 | } | |
15624 | print line | |
488c75a6 | 15625 | } |
39fd3d4f SJR |
15626 | \$ac_cs_awk_pipe_fini |
15627 | _ACAWK | |
e1052144 | 15628 | _ACEOF |
39fd3d4f SJR |
15629 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
15630 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | |
15631 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | |
15632 | else | |
15633 | cat | |
d6a4bcb5 TB |
15634 | fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ |
15635 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 | |
b0cacab0 | 15636 | _ACEOF |
e1052144 | 15637 | |
d6a4bcb5 TB |
15638 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir), |
15639 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and | |
e1052144 TT |
15640 | # trailing colons and then remove the whole line if VPATH becomes empty |
15641 | # (actually we leave an empty line to preserve line numbers). | |
15642 | if test "x$srcdir" = x.; then | |
d6a4bcb5 TB |
15643 | ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ |
15644 | h | |
15645 | s/// | |
15646 | s/^/:/ | |
15647 | s/[ ]*$/:/ | |
15648 | s/:\$(srcdir):/:/g | |
15649 | s/:\${srcdir}:/:/g | |
15650 | s/:@srcdir@:/:/g | |
15651 | s/^:*// | |
e1052144 | 15652 | s/:*$// |
d6a4bcb5 TB |
15653 | x |
15654 | s/\(=[ ]*\).*/\1/ | |
15655 | G | |
15656 | s/\n// | |
e1052144 TT |
15657 | s/^[^=]*=[ ]*$// |
15658 | }' | |
15659 | fi | |
15660 | ||
39fd3d4f | 15661 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
e1052144 TT |
15662 | fi # test -n "$CONFIG_FILES" |
15663 | ||
d1154eb4 TT |
15664 | # Set up the scripts for CONFIG_HEADERS section. |
15665 | # No need to generate them if there are no CONFIG_HEADERS. | |
15666 | # This happens for instance with `./config.status Makefile'. | |
15667 | if test -n "$CONFIG_HEADERS"; then | |
d6a4bcb5 | 15668 | cat >"$ac_tmp/defines.awk" <<\_ACAWK || |
d1154eb4 TT |
15669 | BEGIN { |
15670 | _ACEOF | |
15671 | ||
15672 | # Transform confdefs.h into an awk script `defines.awk', embedded as | |
15673 | # here-document in config.status, that substitutes the proper values into | |
15674 | # config.h.in to produce config.h. | |
15675 | ||
15676 | # Create a delimiter string that does not exist in confdefs.h, to ease | |
15677 | # handling of long lines. | |
15678 | ac_delim='%!_!# ' | |
15679 | for ac_last_try in false false :; do | |
d6a4bcb5 TB |
15680 | ac_tt=`sed -n "/$ac_delim/p" confdefs.h` |
15681 | if test -z "$ac_tt"; then | |
d1154eb4 TT |
15682 | break |
15683 | elif $ac_last_try; then | |
d6a4bcb5 | 15684 | as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 |
d1154eb4 TT |
15685 | else |
15686 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
15687 | fi | |
15688 | done | |
15689 | ||
15690 | # For the awk script, D is an array of macro values keyed by name, | |
15691 | # likewise P contains macro parameters if any. Preserve backslash | |
15692 | # newline sequences. | |
15693 | ||
15694 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* | |
15695 | sed -n ' | |
15696 | s/.\{148\}/&'"$ac_delim"'/g | |
15697 | t rset | |
15698 | :rset | |
15699 | s/^[ ]*#[ ]*define[ ][ ]*/ / | |
15700 | t def | |
15701 | d | |
15702 | :def | |
15703 | s/\\$// | |
15704 | t bsnl | |
15705 | s/["\\]/\\&/g | |
15706 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
15707 | D["\1"]=" \3"/p | |
15708 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p | |
15709 | d | |
15710 | :bsnl | |
15711 | s/["\\]/\\&/g | |
15712 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
15713 | D["\1"]=" \3\\\\\\n"\\/p | |
15714 | t cont | |
15715 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p | |
15716 | t cont | |
15717 | d | |
15718 | :cont | |
15719 | n | |
15720 | s/.\{148\}/&'"$ac_delim"'/g | |
15721 | t clear | |
15722 | :clear | |
15723 | s/\\$// | |
15724 | t bsnlc | |
15725 | s/["\\]/\\&/g; s/^/"/; s/$/"/p | |
15726 | d | |
15727 | :bsnlc | |
15728 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p | |
15729 | b cont | |
15730 | ' <confdefs.h | sed ' | |
15731 | s/'"$ac_delim"'/"\\\ | |
15732 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 | |
15733 | ||
15734 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
15735 | for (key in D) D_is_set[key] = 1 | |
15736 | FS = "\a" | |
15737 | } | |
15738 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { | |
15739 | line = \$ 0 | |
15740 | split(line, arg, " ") | |
15741 | if (arg[1] == "#") { | |
15742 | defundef = arg[2] | |
15743 | mac1 = arg[3] | |
15744 | } else { | |
15745 | defundef = substr(arg[1], 2) | |
15746 | mac1 = arg[2] | |
15747 | } | |
15748 | split(mac1, mac2, "(") #) | |
15749 | macro = mac2[1] | |
15750 | prefix = substr(line, 1, index(line, defundef) - 1) | |
15751 | if (D_is_set[macro]) { | |
15752 | # Preserve the white space surrounding the "#". | |
15753 | print prefix "define", macro P[macro] D[macro] | |
15754 | next | |
15755 | } else { | |
15756 | # Replace #undef with comments. This is necessary, for example, | |
15757 | # in the case of _POSIX_SOURCE, which is predefined and required | |
15758 | # on some systems where configure will not decide to define it. | |
15759 | if (defundef == "undef") { | |
15760 | print "/*", prefix defundef, macro, "*/" | |
15761 | next | |
15762 | } | |
15763 | } | |
15764 | } | |
15765 | { print } | |
15766 | _ACAWK | |
15767 | _ACEOF | |
15768 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
d6a4bcb5 | 15769 | as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 |
d1154eb4 TT |
15770 | fi # test -n "$CONFIG_HEADERS" |
15771 | ||
e1052144 | 15772 | |
d1154eb4 | 15773 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" |
39fd3d4f SJR |
15774 | shift |
15775 | for ac_tag | |
e1052144 TT |
15776 | do |
15777 | case $ac_tag in | |
15778 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
15779 | esac | |
15780 | case $ac_mode$ac_tag in | |
15781 | :[FHL]*:*);; | |
d6a4bcb5 | 15782 | :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; |
e1052144 TT |
15783 | :[FH]-) ac_tag=-:-;; |
15784 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
15785 | esac | |
15786 | ac_save_IFS=$IFS | |
15787 | IFS=: | |
15788 | set x $ac_tag | |
15789 | IFS=$ac_save_IFS | |
15790 | shift | |
15791 | ac_file=$1 | |
15792 | shift | |
15793 | ||
15794 | case $ac_mode in | |
15795 | :L) ac_source=$1;; | |
15796 | :[FH]) | |
15797 | ac_file_inputs= | |
15798 | for ac_f | |
15799 | do | |
15800 | case $ac_f in | |
d6a4bcb5 | 15801 | -) ac_f="$ac_tmp/stdin";; |
e1052144 TT |
15802 | *) # Look for the file first in the build tree, then in the source tree |
15803 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
15804 | # because $ac_f cannot contain `:'. | |
15805 | test -f "$ac_f" || | |
15806 | case $ac_f in | |
15807 | [\\/$]*) false;; | |
15808 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
15809 | esac || | |
d6a4bcb5 | 15810 | as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; |
e1052144 | 15811 | esac |
39fd3d4f | 15812 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac |
57aa50d4 | 15813 | as_fn_append ac_file_inputs " '$ac_f'" |
e1052144 TT |
15814 | done |
15815 | ||
15816 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
15817 | # use $as_me), people would be surprised to read: | |
15818 | # /* config.h. Generated by config.status. */ | |
39fd3d4f SJR |
15819 | configure_input='Generated from '` |
15820 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | |
15821 | `' by configure.' | |
e1052144 TT |
15822 | if test x"$ac_file" != x-; then |
15823 | configure_input="$ac_file. $configure_input" | |
57aa50d4 | 15824 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 |
39fd3d4f | 15825 | $as_echo "$as_me: creating $ac_file" >&6;} |
e1052144 | 15826 | fi |
39fd3d4f SJR |
15827 | # Neutralize special characters interpreted by sed in replacement strings. |
15828 | case $configure_input in #( | |
15829 | *\&* | *\|* | *\\* ) | |
15830 | ac_sed_conf_input=`$as_echo "$configure_input" | | |
15831 | sed 's/[\\\\&|]/\\\\&/g'`;; #( | |
15832 | *) ac_sed_conf_input=$configure_input;; | |
15833 | esac | |
e1052144 TT |
15834 | |
15835 | case $ac_tag in | |
d6a4bcb5 TB |
15836 | *:-:* | *:-) cat >"$ac_tmp/stdin" \ |
15837 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; | |
e1052144 TT |
15838 | esac |
15839 | ;; | |
b0cacab0 TT |
15840 | esac |
15841 | ||
e1052144 | 15842 | ac_dir=`$as_dirname -- "$ac_file" || |
b0cacab0 TT |
15843 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
15844 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
15845 | X"$ac_file" : 'X\(//\)$' \| \ | |
e1052144 | 15846 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
39fd3d4f | 15847 | $as_echo X"$ac_file" | |
e1052144 TT |
15848 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
15849 | s//\1/ | |
15850 | q | |
15851 | } | |
15852 | /^X\(\/\/\)[^/].*/{ | |
15853 | s//\1/ | |
15854 | q | |
15855 | } | |
15856 | /^X\(\/\/\)$/{ | |
15857 | s//\1/ | |
15858 | q | |
15859 | } | |
15860 | /^X\(\/\).*/{ | |
15861 | s//\1/ | |
15862 | q | |
15863 | } | |
15864 | s/.*/./; q'` | |
57aa50d4 | 15865 | as_dir="$ac_dir"; as_fn_mkdir_p |
b0cacab0 TT |
15866 | ac_builddir=. |
15867 | ||
e1052144 TT |
15868 | case "$ac_dir" in |
15869 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
15870 | *) | |
39fd3d4f | 15871 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
e1052144 | 15872 | # A ".." for each directory in $ac_dir_suffix. |
39fd3d4f | 15873 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
e1052144 TT |
15874 | case $ac_top_builddir_sub in |
15875 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
15876 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
15877 | esac ;; | |
15878 | esac | |
15879 | ac_abs_top_builddir=$ac_pwd | |
15880 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
15881 | # for backward compatibility: | |
15882 | ac_top_builddir=$ac_top_build_prefix | |
93636bde | 15883 | |
b0cacab0 | 15884 | case $srcdir in |
e1052144 | 15885 | .) # We are building in place. |
b0cacab0 | 15886 | ac_srcdir=. |
e1052144 TT |
15887 | ac_top_srcdir=$ac_top_builddir_sub |
15888 | ac_abs_top_srcdir=$ac_pwd ;; | |
15889 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
b0cacab0 | 15890 | ac_srcdir=$srcdir$ac_dir_suffix; |
e1052144 TT |
15891 | ac_top_srcdir=$srcdir |
15892 | ac_abs_top_srcdir=$srcdir ;; | |
15893 | *) # Relative name. | |
15894 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
15895 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
15896 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
b0cacab0 | 15897 | esac |
e1052144 | 15898 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
b0cacab0 | 15899 | |
b0cacab0 | 15900 | |
e1052144 TT |
15901 | case $ac_mode in |
15902 | :F) | |
15903 | # | |
15904 | # CONFIG_FILE | |
15905 | # | |
50e1e10f | 15906 | |
b0cacab0 TT |
15907 | case $INSTALL in |
15908 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
e1052144 | 15909 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
50e1e10f | 15910 | esac |
93613951 TT |
15911 | ac_MKDIR_P=$MKDIR_P |
15912 | case $MKDIR_P in | |
15913 | [\\/$]* | ?:[\\/]* ) ;; | |
15914 | */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; | |
15915 | esac | |
e1052144 | 15916 | _ACEOF |
50e1e10f | 15917 | |
39fd3d4f | 15918 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
e1052144 TT |
15919 | # If the template does not know about datarootdir, expand it. |
15920 | # FIXME: This hack should be removed a few years after 2.60. | |
15921 | ac_datarootdir_hack=; ac_datarootdir_seen= | |
39fd3d4f SJR |
15922 | ac_sed_dataroot=' |
15923 | /datarootdir/ { | |
e1052144 TT |
15924 | p |
15925 | q | |
15926 | } | |
15927 | /@datadir@/p | |
15928 | /@docdir@/p | |
15929 | /@infodir@/p | |
15930 | /@localedir@/p | |
57aa50d4 | 15931 | /@mandir@/p' |
39fd3d4f | 15932 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in |
e1052144 TT |
15933 | *datarootdir*) ac_datarootdir_seen=yes;; |
15934 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
57aa50d4 | 15935 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
39fd3d4f | 15936 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} |
b0cacab0 | 15937 | _ACEOF |
39fd3d4f | 15938 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
e1052144 TT |
15939 | ac_datarootdir_hack=' |
15940 | s&@datadir@&$datadir&g | |
15941 | s&@docdir@&$docdir&g | |
15942 | s&@infodir@&$infodir&g | |
15943 | s&@localedir@&$localedir&g | |
15944 | s&@mandir@&$mandir&g | |
57aa50d4 | 15945 | s&\\\${datarootdir}&$datarootdir&g' ;; |
e1052144 TT |
15946 | esac |
15947 | _ACEOF | |
15948 | ||
15949 | # Neutralize VPATH when `$srcdir' = `.'. | |
15950 | # Shell code in configure.ac might set extrasub. | |
15951 | # FIXME: do we really want to maintain this feature? | |
39fd3d4f SJR |
15952 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
15953 | ac_sed_extra="$ac_vpsub | |
b0cacab0 TT |
15954 | $extrasub |
15955 | _ACEOF | |
39fd3d4f | 15956 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
b0cacab0 TT |
15957 | :t |
15958 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
39fd3d4f | 15959 | s|@configure_input@|$ac_sed_conf_input|;t t |
e1052144 | 15960 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
39fd3d4f | 15961 | s&@top_build_prefix@&$ac_top_build_prefix&;t t |
e1052144 TT |
15962 | s&@srcdir@&$ac_srcdir&;t t |
15963 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
15964 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
15965 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
15966 | s&@builddir@&$ac_builddir&;t t | |
15967 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
15968 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
15969 | s&@INSTALL@&$ac_INSTALL&;t t | |
93613951 | 15970 | s&@MKDIR_P@&$ac_MKDIR_P&;t t |
e1052144 | 15971 | $ac_datarootdir_hack |
39fd3d4f SJR |
15972 | " |
15973 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | | |
15974 | if $ac_cs_awk_getline; then | |
d6a4bcb5 | 15975 | $AWK -f "$ac_tmp/subs.awk" |
39fd3d4f | 15976 | else |
d6a4bcb5 TB |
15977 | $AWK -f "$ac_tmp/subs.awk" | $SHELL |
15978 | fi \ | |
15979 | >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
e1052144 TT |
15980 | |
15981 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | |
d6a4bcb5 TB |
15982 | { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && |
15983 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ | |
15984 | "$ac_tmp/out"`; test -z "$ac_out"; } && | |
57aa50d4 | 15985 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
d6a4bcb5 | 15986 | which seems to be undefined. Please make sure it is defined" >&5 |
39fd3d4f | 15987 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
d6a4bcb5 | 15988 | which seems to be undefined. Please make sure it is defined" >&2;} |
e1052144 | 15989 | |
d6a4bcb5 | 15990 | rm -f "$ac_tmp/stdin" |
e1052144 | 15991 | case $ac_file in |
d6a4bcb5 TB |
15992 | -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; |
15993 | *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; | |
39fd3d4f | 15994 | esac \ |
d6a4bcb5 | 15995 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
e1052144 | 15996 | ;; |
d1154eb4 TT |
15997 | :H) |
15998 | # | |
15999 | # CONFIG_HEADER | |
16000 | # | |
16001 | if test x"$ac_file" != x-; then | |
16002 | { | |
16003 | $as_echo "/* $configure_input */" \ | |
d6a4bcb5 TB |
16004 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" |
16005 | } >"$ac_tmp/config.h" \ | |
16006 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
16007 | if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then | |
d1154eb4 TT |
16008 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 |
16009 | $as_echo "$as_me: $ac_file is unchanged" >&6;} | |
16010 | else | |
16011 | rm -f "$ac_file" | |
d6a4bcb5 TB |
16012 | mv "$ac_tmp/config.h" "$ac_file" \ |
16013 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
d1154eb4 TT |
16014 | fi |
16015 | else | |
16016 | $as_echo "/* $configure_input */" \ | |
d6a4bcb5 TB |
16017 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ |
16018 | || as_fn_error $? "could not create -" "$LINENO" 5 | |
d1154eb4 TT |
16019 | fi |
16020 | ;; | |
07a0db15 | 16021 | |
57aa50d4 | 16022 | :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 |
39fd3d4f | 16023 | $as_echo "$as_me: executing $ac_file commands" >&6;} |
e1052144 TT |
16024 | ;; |
16025 | esac | |
a04eba3f | 16026 | |
b0cacab0 | 16027 | |
e1052144 | 16028 | case $ac_file$ac_mode in |
93613951 | 16029 | "po-directories":C) |
a04eba3f TT |
16030 | for ac_file in $CONFIG_FILES; do |
16031 | # Support "outfile[:infile[:infile...]]" | |
16032 | case "$ac_file" in | |
16033 | *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | |
16034 | esac | |
16035 | # PO directories have a Makefile.in generated from Makefile.in.in. | |
16036 | case "$ac_file" in */Makefile.in) | |
16037 | # Adjust a relative srcdir. | |
16038 | ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'` | |
93613951 | 16039 | ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'` |
a04eba3f TT |
16040 | ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'` |
16041 | # In autoconf-2.13 it is called $ac_given_srcdir. | |
16042 | # In autoconf-2.50 it is called $srcdir. | |
16043 | test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir" | |
16044 | case "$ac_given_srcdir" in | |
16045 | .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;; | |
16046 | /*) top_srcdir="$ac_given_srcdir" ;; | |
16047 | *) top_srcdir="$ac_dots$ac_given_srcdir" ;; | |
16048 | esac | |
93613951 TT |
16049 | # Treat a directory as a PO directory if and only if it has a |
16050 | # POTFILES.in file. This allows packages to have multiple PO | |
16051 | # directories under different names or in different locations. | |
a04eba3f TT |
16052 | if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then |
16053 | rm -f "$ac_dir/POTFILES" | |
16054 | test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES" | |
93613951 TT |
16055 | gt_tab=`printf '\t'` |
16056 | 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 |
16057 | POMAKEFILEDEPS="POTFILES.in" |
16058 | # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend | |
a04eba3f TT |
16059 | # on $ac_dir but don't depend on user-specified configuration |
16060 | # parameters. | |
16061 | if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then | |
16062 | # The LINGUAS file contains the set of available languages. | |
b0cacab0 | 16063 | if test -n "$OBSOLETE_ALL_LINGUAS"; then |
a04eba3f TT |
16064 | test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete" |
16065 | fi | |
93613951 TT |
16066 | ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"` |
16067 | # Hide the ALL_LINGUAS assignment from automake < 1.5. | |
a04eba3f | 16068 | eval 'ALL_LINGUAS''=$ALL_LINGUAS_' |
b0cacab0 TT |
16069 | POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS" |
16070 | else | |
16071 | # The set of available languages was given in configure.in. | |
93613951 | 16072 | # Hide the ALL_LINGUAS assignment from automake < 1.5. |
b0cacab0 | 16073 | eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS' |
a04eba3f | 16074 | fi |
b0cacab0 TT |
16075 | # Compute POFILES |
16076 | # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po) | |
16077 | # Compute UPDATEPOFILES | |
16078 | # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update) | |
16079 | # Compute DUMMYPOFILES | |
16080 | # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop) | |
16081 | # Compute GMOFILES | |
16082 | # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo) | |
a04eba3f TT |
16083 | case "$ac_given_srcdir" in |
16084 | .) srcdirpre= ;; | |
16085 | *) srcdirpre='$(srcdir)/' ;; | |
16086 | esac | |
16087 | POFILES= | |
a04eba3f TT |
16088 | UPDATEPOFILES= |
16089 | DUMMYPOFILES= | |
b0cacab0 | 16090 | GMOFILES= |
a04eba3f TT |
16091 | for lang in $ALL_LINGUAS; do |
16092 | POFILES="$POFILES $srcdirpre$lang.po" | |
a04eba3f TT |
16093 | UPDATEPOFILES="$UPDATEPOFILES $lang.po-update" |
16094 | DUMMYPOFILES="$DUMMYPOFILES $lang.nop" | |
b0cacab0 | 16095 | GMOFILES="$GMOFILES $srcdirpre$lang.gmo" |
a04eba3f TT |
16096 | done |
16097 | # CATALOGS depends on both $ac_dir and the user's LINGUAS | |
16098 | # environment variable. | |
16099 | INST_LINGUAS= | |
16100 | if test -n "$ALL_LINGUAS"; then | |
16101 | for presentlang in $ALL_LINGUAS; do | |
16102 | useit=no | |
16103 | if test "%UNSET%" != "$LINGUAS"; then | |
16104 | desiredlanguages="$LINGUAS" | |
16105 | else | |
16106 | desiredlanguages="$ALL_LINGUAS" | |
16107 | fi | |
16108 | for desiredlang in $desiredlanguages; do | |
16109 | # Use the presentlang catalog if desiredlang is | |
16110 | # a. equal to presentlang, or | |
16111 | # b. a variant of presentlang (because in this case, | |
16112 | # presentlang can be used as a fallback for messages | |
16113 | # which are not translated in the desiredlang catalog). | |
16114 | case "$desiredlang" in | |
16115 | "$presentlang"*) useit=yes;; | |
16116 | esac | |
16117 | done | |
16118 | if test $useit = yes; then | |
16119 | INST_LINGUAS="$INST_LINGUAS $presentlang" | |
16120 | fi | |
16121 | done | |
16122 | fi | |
16123 | CATALOGS= | |
16124 | if test -n "$INST_LINGUAS"; then | |
16125 | for lang in $INST_LINGUAS; do | |
16126 | CATALOGS="$CATALOGS $lang.gmo" | |
16127 | done | |
16128 | fi | |
16129 | test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile" | |
b0cacab0 | 16130 | 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 |
16131 | for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do |
16132 | if test -f "$f"; then | |
16133 | case "$f" in | |
16134 | *.orig | *.bak | *~) ;; | |
16135 | *) cat "$f" >> "$ac_dir/Makefile" ;; | |
16136 | esac | |
16137 | fi | |
16138 | done | |
16139 | fi | |
16140 | ;; | |
a64c9c13 | 16141 | esac |
b0cacab0 | 16142 | done ;; |
e1052144 | 16143 | |
b0cacab0 | 16144 | esac |
e1052144 | 16145 | done # for ac_tag |
07a0db15 | 16146 | |
b0cacab0 | 16147 | |
57aa50d4 | 16148 | as_fn_exit 0 |
b0cacab0 | 16149 | _ACEOF |
b0cacab0 TT |
16150 | ac_clean_files=$ac_clean_files_save |
16151 | ||
39fd3d4f | 16152 | test $ac_write_fail = 0 || |
d6a4bcb5 | 16153 | as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 |
39fd3d4f | 16154 | |
b0cacab0 TT |
16155 | |
16156 | # configure is writing to config.log, and then calls config.status. | |
16157 | # config.status does its own redirection, appending to config.log. | |
16158 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
16159 | # by configure, so config.status won't be able to write to it; its | |
16160 | # output is simply discarded. So we exec the FD to /dev/null, | |
16161 | # effectively closing config.log, so it can be properly (re)opened and | |
16162 | # appended to by config.status. When coming back to configure, we | |
16163 | # need to make the FD available again. | |
16164 | if test "$no_create" != yes; then | |
16165 | ac_cs_success=: | |
16166 | ac_config_status_args= | |
16167 | test "$silent" = yes && | |
16168 | ac_config_status_args="$ac_config_status_args --quiet" | |
16169 | exec 5>/dev/null | |
16170 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
16171 | exec 5>>config.log | |
16172 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
16173 | # would make configure fail if this is the last instruction. | |
d6a4bcb5 | 16174 | $ac_cs_success || as_fn_exit 1 |
b0cacab0 | 16175 | fi |
39fd3d4f | 16176 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
57aa50d4 | 16177 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 |
39fd3d4f SJR |
16178 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} |
16179 | fi | |
50e1e10f | 16180 | |
ee683a13 | 16181 | if test -f util/gen-tarball; then chmod +x util/gen-tarball; fi |