]>
Commit | Line | Data |
---|---|---|
2f1a1aea FCE |
1 | #! /bin/sh |
2 | # Guess values for system-dependent variables and create Makefiles. | |
9a399080 | 3 | # Generated by GNU Autoconf 2.69 for systemtap 2.8. |
2f1a1aea | 4 | # |
306dd4f8 | 5 | # Report bugs to <systemtap@sourceware.org>. |
2f1a1aea | 6 | # |
1ef0423a | 7 | # |
8eef2738 | 8 | # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. |
1ef0423a FCE |
9 | # |
10 | # | |
2f1a1aea FCE |
11 | # This configure script is free software; the Free Software Foundation |
12 | # gives unlimited permission to copy, distribute and modify it. | |
1ef0423a FCE |
13 | ## -------------------- ## |
14 | ## M4sh Initialization. ## | |
15 | ## -------------------- ## | |
2f1a1aea | 16 | |
7fbd9d09 FCE |
17 | # Be more Bourne compatible |
18 | DUALCASE=1; export DUALCASE # for MKS sh | |
1ef0423a | 19 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : |
2f1a1aea FCE |
20 | emulate sh |
21 | NULLCMD=: | |
0710d850 | 22 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
2f1a1aea FCE |
23 | # is contrary to our usage. Disable this feature. |
24 | alias -g '${1+"$@"}'='"$@"' | |
7fbd9d09 FCE |
25 | setopt NO_GLOB_SUBST |
26 | else | |
1ef0423a FCE |
27 | case `(set -o) 2>/dev/null` in #( |
28 | *posix*) : | |
29 | set -o posix ;; #( | |
30 | *) : | |
31 | ;; | |
7fbd9d09 | 32 | esac |
7fbd9d09 FCE |
33 | fi |
34 | ||
35 | ||
0710d850 DS |
36 | as_nl=' |
37 | ' | |
38 | export as_nl | |
39 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
40 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
41 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
42 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
1ef0423a FCE |
43 | # Prefer a ksh shell builtin over an external printf program on Solaris, |
44 | # but without wasting forks for bash or zsh. | |
45 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
46 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
47 | as_echo='print -r --' | |
48 | as_echo_n='print -rn --' | |
49 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
0710d850 DS |
50 | as_echo='printf %s\n' |
51 | as_echo_n='printf %s' | |
52 | else | |
53 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
54 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
55 | as_echo_n='/usr/ucb/echo -n' | |
31f9baea | 56 | else |
0710d850 DS |
57 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
58 | as_echo_n_body='eval | |
59 | arg=$1; | |
1ef0423a | 60 | case $arg in #( |
0710d850 DS |
61 | *"$as_nl"*) |
62 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
63 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
64 | esac; | |
65 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
66 | ' | |
67 | export as_echo_n_body | |
68 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
31f9baea | 69 | fi |
0710d850 DS |
70 | export as_echo_body |
71 | as_echo='sh -c $as_echo_body as_echo' | |
72 | fi | |
73 | ||
74 | # The user is always right. | |
75 | if test "${PATH_SEPARATOR+set}" != set; then | |
76 | PATH_SEPARATOR=: | |
77 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
78 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
79 | PATH_SEPARATOR=';' | |
80 | } | |
2f1a1aea | 81 | fi |
2f1a1aea | 82 | |
2f1a1aea | 83 | |
7fbd9d09 FCE |
84 | # IFS |
85 | # We need space, tab and new line, in precisely that order. Quoting is | |
86 | # there to prevent editors from complaining about space-tab. | |
87 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
88 | # splitting by setting IFS to empty value.) | |
7fbd9d09 FCE |
89 | IFS=" "" $as_nl" |
90 | ||
91 | # Find who we are. Look in the path if we contain no directory separator. | |
c3de29bd | 92 | as_myself= |
1ef0423a | 93 | case $0 in #(( |
7fbd9d09 FCE |
94 | *[\\/]* ) as_myself=$0 ;; |
95 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
96 | for as_dir in $PATH | |
97 | do | |
98 | IFS=$as_save_IFS | |
99 | test -z "$as_dir" && as_dir=. | |
1ef0423a FCE |
100 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
101 | done | |
7fbd9d09 FCE |
102 | IFS=$as_save_IFS |
103 | ||
104 | ;; | |
105 | esac | |
106 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
107 | # in which case we are not to be found in the path. | |
108 | if test "x$as_myself" = x; then | |
109 | as_myself=$0 | |
110 | fi | |
111 | if test ! -f "$as_myself"; then | |
0710d850 | 112 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
1ef0423a | 113 | exit 1 |
7fbd9d09 FCE |
114 | fi |
115 | ||
1ef0423a FCE |
116 | # Unset variables that we do not need and which cause bugs (e.g. in |
117 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
118 | # suppresses any "Segmentation fault" message there. '((' could | |
119 | # trigger a bug in pdksh 5.2.14. | |
120 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
121 | do eval test x\${$as_var+set} = xset \ | |
122 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
7fbd9d09 | 123 | done |
2f1a1aea FCE |
124 | PS1='$ ' |
125 | PS2='> ' | |
126 | PS4='+ ' | |
127 | ||
128 | # NLS nuisances. | |
0710d850 DS |
129 | LC_ALL=C |
130 | export LC_ALL | |
131 | LANGUAGE=C | |
132 | export LANGUAGE | |
2f1a1aea | 133 | |
1ef0423a FCE |
134 | # CDPATH. |
135 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
136 | ||
8eef2738 LB |
137 | # Use a proper internal environment variable to ensure we don't fall |
138 | # into an infinite loop, continuously re-executing ourselves. | |
139 | if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then | |
140 | _as_can_reexec=no; export _as_can_reexec; | |
141 | # We cannot yet assume a decent shell, so we have to provide a | |
142 | # neutralization value for shells without unset; and this also | |
143 | # works around shells that cannot unset nonexistent variables. | |
144 | # Preserve -v and -x to the replacement shell. | |
145 | BASH_ENV=/dev/null | |
146 | ENV=/dev/null | |
147 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV | |
148 | case $- in # (((( | |
149 | *v*x* | *x*v* ) as_opts=-vx ;; | |
150 | *v* ) as_opts=-v ;; | |
151 | *x* ) as_opts=-x ;; | |
152 | * ) as_opts= ;; | |
153 | esac | |
154 | exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} | |
155 | # Admittedly, this is quite paranoid, since all the known shells bail | |
156 | # out after a failed `exec'. | |
157 | $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 | |
158 | as_fn_exit 255 | |
159 | fi | |
160 | # We don't want this to propagate to other subprocesses. | |
161 | { _as_can_reexec=; unset _as_can_reexec;} | |
1ef0423a FCE |
162 | if test "x$CONFIG_SHELL" = x; then |
163 | as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : | |
164 | emulate sh | |
165 | NULLCMD=: | |
166 | # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which | |
167 | # is contrary to our usage. Disable this feature. | |
168 | alias -g '\${1+\"\$@\"}'='\"\$@\"' | |
169 | setopt NO_GLOB_SUBST | |
170 | else | |
171 | case \`(set -o) 2>/dev/null\` in #( | |
172 | *posix*) : | |
173 | set -o posix ;; #( | |
174 | *) : | |
175 | ;; | |
176 | esac | |
177 | fi | |
178 | " | |
179 | as_required="as_fn_return () { (exit \$1); } | |
180 | as_fn_success () { as_fn_return 0; } | |
181 | as_fn_failure () { as_fn_return 1; } | |
182 | as_fn_ret_success () { return 0; } | |
183 | as_fn_ret_failure () { return 1; } | |
184 | ||
185 | exitcode=0 | |
186 | as_fn_success || { exitcode=1; echo as_fn_success failed.; } | |
187 | as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } | |
188 | as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } | |
189 | as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } | |
190 | if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : | |
191 | ||
192 | else | |
193 | exitcode=1; echo positional parameters were not saved. | |
194 | fi | |
8eef2738 LB |
195 | test x\$exitcode = x0 || exit 1 |
196 | test -x / || exit 1" | |
1ef0423a FCE |
197 | as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO |
198 | as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO | |
199 | eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && | |
200 | test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 | |
201 | test \$(( 1 + 1 )) = 2 || exit 1" | |
202 | if (eval "$as_required") 2>/dev/null; then : | |
203 | as_have_required=yes | |
204 | else | |
205 | as_have_required=no | |
206 | fi | |
207 | if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : | |
208 | ||
209 | else | |
210 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
211 | as_found=false | |
212 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
213 | do | |
214 | IFS=$as_save_IFS | |
215 | test -z "$as_dir" && as_dir=. | |
216 | as_found=: | |
217 | case $as_dir in #( | |
218 | /*) | |
219 | for as_base in sh bash ksh sh5; do | |
220 | # Try only shells that exist, to save several forks. | |
221 | as_shell=$as_dir/$as_base | |
222 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && | |
223 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : | |
224 | CONFIG_SHELL=$as_shell as_have_required=yes | |
225 | if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : | |
226 | break 2 | |
227 | fi | |
228 | fi | |
229 | done;; | |
230 | esac | |
231 | as_found=false | |
232 | done | |
233 | $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && | |
234 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : | |
235 | CONFIG_SHELL=$SHELL as_have_required=yes | |
236 | fi; } | |
237 | IFS=$as_save_IFS | |
238 | ||
239 | ||
240 | if test "x$CONFIG_SHELL" != x; then : | |
8eef2738 LB |
241 | export CONFIG_SHELL |
242 | # We cannot yet assume a decent shell, so we have to provide a | |
243 | # neutralization value for shells without unset; and this also | |
244 | # works around shells that cannot unset nonexistent variables. | |
245 | # Preserve -v and -x to the replacement shell. | |
246 | BASH_ENV=/dev/null | |
247 | ENV=/dev/null | |
248 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV | |
249 | case $- in # (((( | |
250 | *v*x* | *x*v* ) as_opts=-vx ;; | |
251 | *v* ) as_opts=-v ;; | |
252 | *x* ) as_opts=-x ;; | |
253 | * ) as_opts= ;; | |
254 | esac | |
255 | exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} | |
256 | # Admittedly, this is quite paranoid, since all the known shells bail | |
257 | # out after a failed `exec'. | |
258 | $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 | |
259 | exit 255 | |
1ef0423a FCE |
260 | fi |
261 | ||
262 | if test x$as_have_required = xno; then : | |
263 | $as_echo "$0: This script requires a shell more modern than all" | |
264 | $as_echo "$0: the shells that I found on your system." | |
265 | if test x${ZSH_VERSION+set} = xset ; then | |
266 | $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" | |
267 | $as_echo "$0: be upgraded to zsh 4.3.4 or later." | |
268 | else | |
269 | $as_echo "$0: Please tell bug-autoconf@gnu.org and | |
fcca127c FCE |
270 | $0: systemtap@sourceware.org about your system, including |
271 | $0: any error possibly output before this message. Then | |
272 | $0: install a modern shell, or manually run the script | |
273 | $0: under such a shell if you do have one." | |
1ef0423a FCE |
274 | fi |
275 | exit 1 | |
276 | fi | |
277 | fi | |
278 | fi | |
279 | SHELL=${CONFIG_SHELL-/bin/sh} | |
280 | export SHELL | |
281 | # Unset more variables known to interfere with behavior of common tools. | |
282 | CLICOLOR_FORCE= GREP_OPTIONS= | |
283 | unset CLICOLOR_FORCE GREP_OPTIONS | |
284 | ||
285 | ## --------------------- ## | |
286 | ## M4sh Shell Functions. ## | |
287 | ## --------------------- ## | |
288 | # as_fn_unset VAR | |
289 | # --------------- | |
290 | # Portably unset VAR. | |
291 | as_fn_unset () | |
292 | { | |
293 | { eval $1=; unset $1;} | |
294 | } | |
295 | as_unset=as_fn_unset | |
296 | ||
297 | # as_fn_set_status STATUS | |
298 | # ----------------------- | |
299 | # Set $? to STATUS, without forking. | |
300 | as_fn_set_status () | |
301 | { | |
302 | return $1 | |
303 | } # as_fn_set_status | |
304 | ||
305 | # as_fn_exit STATUS | |
306 | # ----------------- | |
307 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
308 | as_fn_exit () | |
309 | { | |
310 | set +e | |
311 | as_fn_set_status $1 | |
312 | exit $1 | |
313 | } # as_fn_exit | |
314 | ||
315 | # as_fn_mkdir_p | |
316 | # ------------- | |
317 | # Create "$as_dir" as a directory, including parents if necessary. | |
318 | as_fn_mkdir_p () | |
319 | { | |
320 | ||
321 | case $as_dir in #( | |
322 | -*) as_dir=./$as_dir;; | |
323 | esac | |
324 | test -d "$as_dir" || eval $as_mkdir_p || { | |
325 | as_dirs= | |
326 | while :; do | |
327 | case $as_dir in #( | |
328 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
329 | *) as_qdir=$as_dir;; | |
330 | esac | |
331 | as_dirs="'$as_qdir' $as_dirs" | |
332 | as_dir=`$as_dirname -- "$as_dir" || | |
333 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
334 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
335 | X"$as_dir" : 'X\(//\)$' \| \ | |
336 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
337 | $as_echo X"$as_dir" | | |
338 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
339 | s//\1/ | |
340 | q | |
341 | } | |
342 | /^X\(\/\/\)[^/].*/{ | |
343 | s//\1/ | |
344 | q | |
345 | } | |
346 | /^X\(\/\/\)$/{ | |
347 | s//\1/ | |
348 | q | |
349 | } | |
350 | /^X\(\/\).*/{ | |
351 | s//\1/ | |
352 | q | |
353 | } | |
354 | s/.*/./; q'` | |
355 | test -d "$as_dir" && break | |
356 | done | |
357 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
5d4aa1f5 | 358 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
1ef0423a FCE |
359 | |
360 | ||
361 | } # as_fn_mkdir_p | |
8eef2738 LB |
362 | |
363 | # as_fn_executable_p FILE | |
364 | # ----------------------- | |
365 | # Test if FILE is an executable regular file. | |
366 | as_fn_executable_p () | |
367 | { | |
368 | test -f "$1" && test -x "$1" | |
369 | } # as_fn_executable_p | |
1ef0423a FCE |
370 | # as_fn_append VAR VALUE |
371 | # ---------------------- | |
372 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
373 | # advantage of any shell optimizations that allow amortized linear growth over | |
374 | # repeated appends, instead of the typical quadratic growth present in naive | |
375 | # implementations. | |
376 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
377 | eval 'as_fn_append () | |
378 | { | |
379 | eval $1+=\$2 | |
380 | }' | |
381 | else | |
382 | as_fn_append () | |
383 | { | |
384 | eval $1=\$$1\$2 | |
385 | } | |
386 | fi # as_fn_append | |
387 | ||
388 | # as_fn_arith ARG... | |
389 | # ------------------ | |
390 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
391 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
392 | # must be portable across $(()) and expr. | |
393 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
394 | eval 'as_fn_arith () | |
395 | { | |
396 | as_val=$(( $* )) | |
397 | }' | |
398 | else | |
399 | as_fn_arith () | |
400 | { | |
401 | as_val=`expr "$@" || test $? -eq 1` | |
402 | } | |
403 | fi # as_fn_arith | |
404 | ||
405 | ||
5d4aa1f5 FCE |
406 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
407 | # ---------------------------------------- | |
1ef0423a FCE |
408 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
409 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
5d4aa1f5 | 410 | # script with STATUS, using 1 if that was 0. |
1ef0423a FCE |
411 | as_fn_error () |
412 | { | |
5d4aa1f5 FCE |
413 | as_status=$1; test $as_status -eq 0 && as_status=1 |
414 | if test "$4"; then | |
415 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
416 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | |
1ef0423a | 417 | fi |
5d4aa1f5 | 418 | $as_echo "$as_me: error: $2" >&2 |
1ef0423a FCE |
419 | as_fn_exit $as_status |
420 | } # as_fn_error | |
421 | ||
412e1bf7 FCE |
422 | if expr a : '\(a\)' >/dev/null 2>&1 && |
423 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
424 | as_expr=expr | |
425 | else | |
426 | as_expr=false | |
427 | fi | |
428 | ||
429 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then | |
430 | as_basename=basename | |
431 | else | |
432 | as_basename=false | |
433 | fi | |
434 | ||
1ef0423a FCE |
435 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
436 | as_dirname=dirname | |
437 | else | |
438 | as_dirname=false | |
439 | fi | |
412e1bf7 | 440 | |
412e1bf7 FCE |
441 | as_me=`$as_basename -- "$0" || |
442 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
443 | X"$0" : 'X\(//\)$' \| \ | |
444 | X"$0" : 'X\(/\)' \| . 2>/dev/null || | |
0710d850 | 445 | $as_echo X/"$0" | |
412e1bf7 FCE |
446 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
447 | s//\1/ | |
448 | q | |
449 | } | |
450 | /^X\/\(\/\/\)$/{ | |
451 | s//\1/ | |
452 | q | |
453 | } | |
454 | /^X\/\(\/\).*/{ | |
455 | s//\1/ | |
456 | q | |
457 | } | |
458 | s/.*/./; q'` | |
459 | ||
1ef0423a FCE |
460 | # Avoid depending upon Character Ranges. |
461 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
462 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
463 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
464 | as_cr_digits='0123456789' | |
465 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
412e1bf7 | 466 | |
5e0d2ebf | 467 | |
1ef0423a FCE |
468 | as_lineno_1=$LINENO as_lineno_1a=$LINENO |
469 | as_lineno_2=$LINENO as_lineno_2a=$LINENO | |
470 | eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && | |
471 | test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { | |
472 | # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) | |
473 | sed -n ' | |
474 | p | |
475 | /[$]LINENO/= | |
476 | ' <$as_myself | | |
477 | sed ' | |
478 | s/[$]LINENO.*/&-/ | |
479 | t lineno | |
480 | b | |
481 | :lineno | |
482 | N | |
483 | :loop | |
484 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
485 | t loop | |
486 | s/-\n.*// | |
487 | ' >$as_me.lineno && | |
488 | chmod +x "$as_me.lineno" || | |
489 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } | |
412e1bf7 | 490 | |
8eef2738 LB |
491 | # If we had to re-execute with $CONFIG_SHELL, we're ensured to have |
492 | # already done that, so ensure we don't try to do so again and fall | |
493 | # in an infinite loop. This has already happened in practice. | |
494 | _as_can_reexec=no; export _as_can_reexec | |
1ef0423a FCE |
495 | # Don't try to exec as it changes $[0], causing all sort of problems |
496 | # (the dirname of $[0] is not the place where we might find the | |
497 | # original and so on. Autoconf is especially sensitive to this). | |
498 | . "./$as_me.lineno" | |
499 | # Exit status is that of the last command. | |
500 | exit | |
412e1bf7 | 501 | } |
5e0d2ebf | 502 | |
1ef0423a FCE |
503 | ECHO_C= ECHO_N= ECHO_T= |
504 | case `echo -n x` in #((((( | |
505 | -n*) | |
506 | case `echo 'xy\c'` in | |
507 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
508 | xy) ECHO_C='\c';; | |
509 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
510 | ECHO_T=' ';; | |
511 | esac;; | |
512 | *) | |
513 | ECHO_N='-n';; | |
514 | esac | |
5e5aee9f | 515 | |
1ef0423a FCE |
516 | rm -f conf$$ conf$$.exe conf$$.file |
517 | if test -d conf$$.dir; then | |
518 | rm -f conf$$.dir/conf$$.file | |
519 | else | |
520 | rm -f conf$$.dir | |
521 | mkdir conf$$.dir 2>/dev/null | |
412e1bf7 | 522 | fi |
1ef0423a FCE |
523 | if (echo >conf$$.file) 2>/dev/null; then |
524 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
525 | as_ln_s='ln -s' | |
526 | # ... but there are two gotchas: | |
527 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
528 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
8eef2738 | 529 | # In both cases, we have to default to `cp -pR'. |
1ef0423a | 530 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
8eef2738 | 531 | as_ln_s='cp -pR' |
1ef0423a FCE |
532 | elif ln conf$$.file conf$$ 2>/dev/null; then |
533 | as_ln_s=ln | |
534 | else | |
8eef2738 | 535 | as_ln_s='cp -pR' |
1ef0423a | 536 | fi |
ec1a2239 | 537 | else |
8eef2738 | 538 | as_ln_s='cp -pR' |
e6364d79 | 539 | fi |
1ef0423a FCE |
540 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
541 | rmdir conf$$.dir 2>/dev/null | |
e6364d79 | 542 | |
1ef0423a FCE |
543 | if mkdir -p . 2>/dev/null; then |
544 | as_mkdir_p='mkdir -p "$as_dir"' | |
545 | else | |
546 | test -d ./-p && rmdir ./-p | |
547 | as_mkdir_p=false | |
5e5aee9f FCE |
548 | fi |
549 | ||
8eef2738 LB |
550 | as_test_x='test -x' |
551 | as_executable_p=as_fn_executable_p | |
412e1bf7 | 552 | |
1ef0423a FCE |
553 | # Sed expression to map a string onto a valid CPP name. |
554 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
412e1bf7 | 555 | |
1ef0423a FCE |
556 | # Sed expression to map a string onto a valid variable name. |
557 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
7fbd9d09 FCE |
558 | |
559 | ||
1ef0423a FCE |
560 | test -n "$DJDIR" || exec 7<&0 </dev/null |
561 | exec 6>&1 | |
5e5aee9f FCE |
562 | |
563 | # Name of the host. | |
5d4aa1f5 | 564 | # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, |
2f1a1aea FCE |
565 | # so uname gets run too. |
566 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
567 | ||
2f1a1aea FCE |
568 | # |
569 | # Initializations. | |
570 | # | |
571 | ac_default_prefix=/usr/local | |
7fbd9d09 | 572 | ac_clean_files= |
2f1a1aea | 573 | ac_config_libobj_dir=. |
7fbd9d09 | 574 | LIBOBJS= |
2f1a1aea FCE |
575 | cross_compiling=no |
576 | subdirs= | |
577 | MFLAGS= | |
578 | MAKEFLAGS= | |
2f1a1aea | 579 | |
2f1a1aea FCE |
580 | # Identity of this package. |
581 | PACKAGE_NAME='systemtap' | |
582 | PACKAGE_TARNAME='systemtap' | |
9a399080 AJ |
583 | PACKAGE_VERSION='2.8' |
584 | PACKAGE_STRING='systemtap 2.8' | |
306dd4f8 | 585 | PACKAGE_BUGREPORT='systemtap@sourceware.org' |
1ef0423a | 586 | PACKAGE_URL='' |
2f1a1aea FCE |
587 | |
588 | # Factoring default headers for most tests. | |
589 | ac_includes_default="\ | |
590 | #include <stdio.h> | |
7fbd9d09 | 591 | #ifdef HAVE_SYS_TYPES_H |
2f1a1aea FCE |
592 | # include <sys/types.h> |
593 | #endif | |
7fbd9d09 | 594 | #ifdef HAVE_SYS_STAT_H |
2f1a1aea FCE |
595 | # include <sys/stat.h> |
596 | #endif | |
7fbd9d09 | 597 | #ifdef STDC_HEADERS |
2f1a1aea FCE |
598 | # include <stdlib.h> |
599 | # include <stddef.h> | |
600 | #else | |
7fbd9d09 | 601 | # ifdef HAVE_STDLIB_H |
2f1a1aea FCE |
602 | # include <stdlib.h> |
603 | # endif | |
604 | #endif | |
7fbd9d09 FCE |
605 | #ifdef HAVE_STRING_H |
606 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H | |
2f1a1aea FCE |
607 | # include <memory.h> |
608 | # endif | |
609 | # include <string.h> | |
610 | #endif | |
7fbd9d09 | 611 | #ifdef HAVE_STRINGS_H |
2f1a1aea FCE |
612 | # include <strings.h> |
613 | #endif | |
7fbd9d09 | 614 | #ifdef HAVE_INTTYPES_H |
2f1a1aea | 615 | # include <inttypes.h> |
2f1a1aea | 616 | #endif |
7fbd9d09 FCE |
617 | #ifdef HAVE_STDINT_H |
618 | # include <stdint.h> | |
619 | #endif | |
620 | #ifdef HAVE_UNISTD_H | |
2f1a1aea FCE |
621 | # include <unistd.h> |
622 | #endif" | |
623 | ||
8f223b3e | 624 | gt_needs= |
0710d850 DS |
625 | enable_option_checking=no |
626 | ac_subst_vars='am__EXEEXT_FALSE | |
627 | am__EXEEXT_TRUE | |
628 | LTLIBOBJS | |
629 | LIBOBJS | |
630 | subdirs | |
62c8a962 | 631 | STAP_PREFIX |
85b62eab | 632 | STAP_EXTRA_VERSION |
8f223b3e | 633 | LOCALEDIR |
62c8a962 | 634 | ENABLE_NLS |
26703c63 SM |
635 | HAVE_JAVA_FALSE |
636 | HAVE_JAVA_TRUE | |
9ac164fa | 637 | JAVADIR |
e9b0aba1 SM |
638 | have_jar |
639 | have_javac | |
51030d84 JS |
640 | HAVE_SELINUX_FALSE |
641 | HAVE_SELINUX_TRUE | |
642 | selinux_LIBS | |
643 | selinux_CFLAGS | |
f9794ee4 | 644 | support_section_question |
b0c670f4 FCE |
645 | BUILD_VIRT_FALSE |
646 | BUILD_VIRT_TRUE | |
42f767d0 JL |
647 | HAVE_LIBXML2_FALSE |
648 | HAVE_LIBXML2_TRUE | |
649 | libxml2_LIBS | |
650 | libxml2_CFLAGS | |
651 | HAVE_LIBVIRT_FALSE | |
652 | HAVE_LIBVIRT_TRUE | |
653 | libvirt_LIBS | |
654 | libvirt_CFLAGS | |
138bbe90 JS |
655 | HAVE_DYNINST_FALSE |
656 | HAVE_DYNINST_TRUE | |
657 | DYNINST_LDFLAGS | |
658 | DYNINST_CXXFLAGS | |
62cb4be9 | 659 | CXXCPP |
0710d850 | 660 | DATE |
97859b9d | 661 | staprun_LIBS |
0710d850 DS |
662 | stap_LIBS |
663 | elfutils_abs_srcdir | |
664 | BUILD_ELFUTILS_FALSE | |
665 | BUILD_ELFUTILS_TRUE | |
2dce8c42 DB |
666 | HAVE_AVAHI_FALSE |
667 | HAVE_AVAHI_TRUE | |
28f121c3 DEP |
668 | avahi_LIBS |
669 | avahi_CFLAGS | |
0710d850 DS |
670 | BUILD_SERVER_FALSE |
671 | BUILD_SERVER_TRUE | |
a0e2728a DB |
672 | HAVE_NSS_FALSE |
673 | HAVE_NSS_TRUE | |
28f121c3 | 674 | nss_LIBS |
0710d850 | 675 | nss_CFLAGS |
28f121c3 DEP |
676 | PKG_CONFIG_LIBDIR |
677 | PKG_CONFIG_PATH | |
678 | PKG_CONFIG | |
0710d850 DS |
679 | BUILD_PDFREFDOCS_FALSE |
680 | BUILD_PDFREFDOCS_TRUE | |
681 | XMLTO_STRINGPARAM_FALSE | |
682 | XMLTO_STRINGPARAM_TRUE | |
327a760e FCE |
683 | HAVE_FOP_FALSE |
684 | HAVE_FOP_TRUE | |
685 | have_fop | |
0710d850 DS |
686 | BUILD_REFDOCS_FALSE |
687 | BUILD_REFDOCS_TRUE | |
688 | have_xmlto | |
53ade4da MW |
689 | PUBLICAN_BRAND |
690 | BUILD_PUBLICAN_FALSE | |
691 | BUILD_PUBLICAN_TRUE | |
692 | have_publican | |
0710d850 DS |
693 | BUILD_DOCS_FALSE |
694 | BUILD_DOCS_TRUE | |
695 | have_latex2html | |
696 | have_ps2pdf | |
697 | have_dvips | |
698 | have_latex | |
71aef8fb LB |
699 | HAVE_XVFB_FALSE |
700 | HAVE_XVFB_TRUE | |
701 | have_xvfb | |
0710d850 DS |
702 | BUILD_CRASHMOD_FALSE |
703 | BUILD_CRASHMOD_TRUE | |
704 | staplog_CPPFLAGS | |
705 | BUILD_TRANSLATOR_FALSE | |
706 | BUILD_TRANSLATOR_TRUE | |
707 | sqlite3_LIBS | |
708 | PIECXXFLAGS | |
709 | PIECFLAGS | |
710 | PIELDFLAGS | |
8f223b3e FCE |
711 | POSUB |
712 | LTLIBINTL | |
713 | LIBINTL | |
714 | INTLLIBS | |
715 | LTLIBICONV | |
716 | LIBICONV | |
42f767d0 | 717 | INTL_MACOSX_LIBS |
8f223b3e FCE |
718 | XGETTEXT_EXTRA_OPTIONS |
719 | MSGMERGE | |
720 | XGETTEXT_015 | |
721 | XGETTEXT | |
722 | GMSGFMT_015 | |
723 | MSGFMT_015 | |
724 | GMSGFMT | |
725 | MSGFMT | |
726 | GETTEXT_MACRO_VERSION | |
727 | USE_NLS | |
0710d850 | 728 | RANLIB |
0710d850 DS |
729 | am__fastdepCXX_FALSE |
730 | am__fastdepCXX_TRUE | |
731 | CXXDEPMODE | |
732 | ac_ct_CXX | |
733 | CXXFLAGS | |
734 | CXX | |
8f223b3e FCE |
735 | LN_S |
736 | EGREP | |
737 | GREP | |
738 | CPP | |
0710d850 DS |
739 | am__fastdepCC_FALSE |
740 | am__fastdepCC_TRUE | |
741 | CCDEPMODE | |
c66be968 | 742 | am__nodep |
0710d850 DS |
743 | AMDEPBACKSLASH |
744 | AMDEP_FALSE | |
745 | AMDEP_TRUE | |
746 | am__quote | |
747 | am__include | |
748 | DEPDIR | |
749 | OBJEXT | |
750 | EXEEXT | |
751 | ac_ct_CC | |
752 | CPPFLAGS | |
753 | LDFLAGS | |
754 | CFLAGS | |
755 | CC | |
d9e6d90b WC |
756 | MAINT |
757 | MAINTAINER_MODE_FALSE | |
758 | MAINTAINER_MODE_TRUE | |
0710d850 DS |
759 | AM_BACKSLASH |
760 | AM_DEFAULT_VERBOSITY | |
c66be968 JS |
761 | AM_DEFAULT_V |
762 | AM_V | |
0710d850 DS |
763 | am__untar |
764 | am__tar | |
765 | AMTAR | |
766 | am__leading_dot | |
767 | SET_MAKE | |
768 | AWK | |
769 | mkdir_p | |
7fbd9d09 | 770 | MKDIR_P |
0710d850 DS |
771 | INSTALL_STRIP_PROGRAM |
772 | STRIP | |
773 | install_sh | |
774 | MAKEINFO | |
775 | AUTOHEADER | |
776 | AUTOMAKE | |
777 | AUTOCONF | |
778 | ACLOCAL | |
779 | VERSION | |
780 | PACKAGE | |
781 | CYGPATH_W | |
782 | am__isrc | |
783 | INSTALL_DATA | |
784 | INSTALL_SCRIPT | |
785 | INSTALL_PROGRAM | |
2689a171 SM |
786 | target_os |
787 | target_vendor | |
788 | target_cpu | |
789 | target | |
790 | host_os | |
791 | host_vendor | |
792 | host_cpu | |
793 | host | |
794 | build_os | |
795 | build_vendor | |
796 | build_cpu | |
797 | build | |
0710d850 DS |
798 | target_alias |
799 | host_alias | |
800 | build_alias | |
801 | LIBS | |
802 | ECHO_T | |
803 | ECHO_N | |
804 | ECHO_C | |
805 | DEFS | |
806 | mandir | |
807 | localedir | |
808 | libdir | |
809 | psdir | |
810 | pdfdir | |
811 | dvidir | |
812 | htmldir | |
813 | infodir | |
814 | docdir | |
815 | oldincludedir | |
816 | includedir | |
817 | localstatedir | |
818 | sharedstatedir | |
819 | sysconfdir | |
820 | datadir | |
821 | datarootdir | |
822 | libexecdir | |
823 | sbindir | |
824 | bindir | |
825 | program_transform_name | |
826 | prefix | |
827 | exec_prefix | |
1ef0423a | 828 | PACKAGE_URL |
0710d850 DS |
829 | PACKAGE_BUGREPORT |
830 | PACKAGE_STRING | |
831 | PACKAGE_VERSION | |
832 | PACKAGE_TARNAME | |
833 | PACKAGE_NAME | |
834 | PATH_SEPARATOR | |
835 | SHELL' | |
2f1a1aea | 836 | ac_subst_files='' |
0710d850 DS |
837 | ac_user_opts=' |
838 | enable_option_checking | |
94eb87d1 | 839 | enable_silent_rules |
d9e6d90b | 840 | enable_maintainer_mode |
0710d850 | 841 | enable_dependency_tracking |
97859b9d | 842 | enable_largefile |
8f223b3e FCE |
843 | enable_nls |
844 | with_gnu_ld | |
845 | enable_rpath | |
846 | with_libiconv_prefix | |
847 | with_libintl_prefix | |
0710d850 | 848 | enable_prologues |
0f5d597d | 849 | enable_sdt_probes |
0710d850 DS |
850 | enable_ssp |
851 | enable_pie | |
852 | enable_sqlite | |
853 | enable_translator | |
854 | enable_crash | |
855 | enable_docs | |
53ade4da MW |
856 | enable_publican |
857 | with_publican_brand | |
0710d850 | 858 | enable_refdocs |
28f121c3 | 859 | with_nss |
0710d850 | 860 | enable_server |
28f121c3 | 861 | with_avahi |
0710d850 DS |
862 | with_rpm |
863 | with_elfutils | |
138bbe90 | 864 | with_dyninst |
b0c670f4 | 865 | enable_virt |
51030d84 | 866 | with_selinux |
26703c63 | 867 | with_java |
85b62eab | 868 | with_extra_version |
0710d850 | 869 | ' |
7fbd9d09 FCE |
870 | ac_precious_vars='build_alias |
871 | host_alias | |
872 | target_alias | |
873 | CC | |
874 | CFLAGS | |
875 | LDFLAGS | |
876 | LIBS | |
877 | CPPFLAGS | |
8f223b3e | 878 | CPP |
7fbd9d09 FCE |
879 | CXX |
880 | CXXFLAGS | |
881 | CCC | |
1087b83f | 882 | PKG_CONFIG |
5d4aa1f5 FCE |
883 | PKG_CONFIG_PATH |
884 | PKG_CONFIG_LIBDIR | |
28f121c3 DEP |
885 | nss_CFLAGS |
886 | nss_LIBS | |
887 | avahi_CFLAGS | |
888 | avahi_LIBS | |
51030d84 | 889 | CXXCPP |
42f767d0 JL |
890 | libvirt_CFLAGS |
891 | libvirt_LIBS | |
892 | libxml2_CFLAGS | |
893 | libxml2_LIBS | |
51030d84 JS |
894 | selinux_CFLAGS |
895 | selinux_LIBS' | |
97859b9d | 896 | ac_subdirs_all='testsuite' |
2f1a1aea FCE |
897 | |
898 | # Initialize some variables set by options. | |
899 | ac_init_help= | |
900 | ac_init_version=false | |
0710d850 DS |
901 | ac_unrecognized_opts= |
902 | ac_unrecognized_sep= | |
2f1a1aea FCE |
903 | # The variables have the same names as the options, with |
904 | # dashes changed to underlines. | |
905 | cache_file=/dev/null | |
906 | exec_prefix=NONE | |
907 | no_create= | |
908 | no_recursion= | |
909 | prefix=NONE | |
910 | program_prefix=NONE | |
911 | program_suffix=NONE | |
912 | program_transform_name=s,x,x, | |
913 | silent= | |
914 | site= | |
915 | srcdir= | |
916 | verbose= | |
917 | x_includes=NONE | |
918 | x_libraries=NONE | |
919 | ||
920 | # Installation directory options. | |
921 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
922 | # and all the variables that are supposed to be based on exec_prefix | |
923 | # by default will actually change. | |
924 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
7fbd9d09 | 925 | # (The list follows the same order as the GNU Coding Standards.) |
2f1a1aea FCE |
926 | bindir='${exec_prefix}/bin' |
927 | sbindir='${exec_prefix}/sbin' | |
928 | libexecdir='${exec_prefix}/libexec' | |
7fbd9d09 FCE |
929 | datarootdir='${prefix}/share' |
930 | datadir='${datarootdir}' | |
2f1a1aea FCE |
931 | sysconfdir='${prefix}/etc' |
932 | sharedstatedir='${prefix}/com' | |
933 | localstatedir='${prefix}/var' | |
2f1a1aea FCE |
934 | includedir='${prefix}/include' |
935 | oldincludedir='/usr/include' | |
7fbd9d09 FCE |
936 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
937 | infodir='${datarootdir}/info' | |
938 | htmldir='${docdir}' | |
939 | dvidir='${docdir}' | |
940 | pdfdir='${docdir}' | |
941 | psdir='${docdir}' | |
942 | libdir='${exec_prefix}/lib' | |
943 | localedir='${datarootdir}/locale' | |
944 | mandir='${datarootdir}/man' | |
2f1a1aea FCE |
945 | |
946 | ac_prev= | |
7fbd9d09 | 947 | ac_dashdash= |
2f1a1aea FCE |
948 | for ac_option |
949 | do | |
950 | # If the previous option needs an argument, assign it. | |
951 | if test -n "$ac_prev"; then | |
7fbd9d09 | 952 | eval $ac_prev=\$ac_option |
2f1a1aea FCE |
953 | ac_prev= |
954 | continue | |
955 | fi | |
956 | ||
7fbd9d09 | 957 | case $ac_option in |
c3de29bd LB |
958 | *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
959 | *=) ac_optarg= ;; | |
960 | *) ac_optarg=yes ;; | |
7fbd9d09 | 961 | esac |
2f1a1aea FCE |
962 | |
963 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
964 | ||
7fbd9d09 FCE |
965 | case $ac_dashdash$ac_option in |
966 | --) | |
967 | ac_dashdash=yes ;; | |
2f1a1aea FCE |
968 | |
969 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
970 | ac_prev=bindir ;; | |
971 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
972 | bindir=$ac_optarg ;; | |
973 | ||
974 | -build | --build | --buil | --bui | --bu) | |
975 | ac_prev=build_alias ;; | |
976 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | |
977 | build_alias=$ac_optarg ;; | |
978 | ||
979 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
980 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
981 | ac_prev=cache_file ;; | |
982 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
983 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
984 | cache_file=$ac_optarg ;; | |
985 | ||
986 | --config-cache | -C) | |
987 | cache_file=config.cache ;; | |
988 | ||
7fbd9d09 | 989 | -datadir | --datadir | --datadi | --datad) |
2f1a1aea | 990 | ac_prev=datadir ;; |
7fbd9d09 | 991 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
2f1a1aea FCE |
992 | datadir=$ac_optarg ;; |
993 | ||
7fbd9d09 FCE |
994 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
995 | | --dataroo | --dataro | --datar) | |
996 | ac_prev=datarootdir ;; | |
997 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
998 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
999 | datarootdir=$ac_optarg ;; | |
1000 | ||
2f1a1aea | 1001 | -disable-* | --disable-*) |
0710d850 | 1002 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
2f1a1aea | 1003 | # Reject names that are not valid shell variable names. |
0710d850 | 1004 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
5d4aa1f5 | 1005 | as_fn_error $? "invalid feature name: $ac_useropt" |
0710d850 DS |
1006 | ac_useropt_orig=$ac_useropt |
1007 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1008 | case $ac_user_opts in | |
1009 | *" | |
1010 | "enable_$ac_useropt" | |
1011 | "*) ;; | |
1012 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | |
1013 | ac_unrecognized_sep=', ';; | |
1014 | esac | |
1015 | eval enable_$ac_useropt=no ;; | |
7fbd9d09 FCE |
1016 | |
1017 | -docdir | --docdir | --docdi | --doc | --do) | |
1018 | ac_prev=docdir ;; | |
1019 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
1020 | docdir=$ac_optarg ;; | |
1021 | ||
1022 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
1023 | ac_prev=dvidir ;; | |
1024 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
1025 | dvidir=$ac_optarg ;; | |
2f1a1aea FCE |
1026 | |
1027 | -enable-* | --enable-*) | |
0710d850 | 1028 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
2f1a1aea | 1029 | # Reject names that are not valid shell variable names. |
0710d850 | 1030 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
5d4aa1f5 | 1031 | as_fn_error $? "invalid feature name: $ac_useropt" |
0710d850 DS |
1032 | ac_useropt_orig=$ac_useropt |
1033 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1034 | case $ac_user_opts in | |
1035 | *" | |
1036 | "enable_$ac_useropt" | |
1037 | "*) ;; | |
1038 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | |
1039 | ac_unrecognized_sep=', ';; | |
1040 | esac | |
1041 | eval enable_$ac_useropt=\$ac_optarg ;; | |
2f1a1aea FCE |
1042 | |
1043 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
1044 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
1045 | | --exec | --exe | --ex) | |
1046 | ac_prev=exec_prefix ;; | |
1047 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
1048 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
1049 | | --exec=* | --exe=* | --ex=*) | |
1050 | exec_prefix=$ac_optarg ;; | |
1051 | ||
1052 | -gas | --gas | --ga | --g) | |
1053 | # Obsolete; use --with-gas. | |
1054 | with_gas=yes ;; | |
1055 | ||
1056 | -help | --help | --hel | --he | -h) | |
1057 | ac_init_help=long ;; | |
1058 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
1059 | ac_init_help=recursive ;; | |
1060 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
1061 | ac_init_help=short ;; | |
1062 | ||
1063 | -host | --host | --hos | --ho) | |
1064 | ac_prev=host_alias ;; | |
1065 | -host=* | --host=* | --hos=* | --ho=*) | |
1066 | host_alias=$ac_optarg ;; | |
1067 | ||
7fbd9d09 FCE |
1068 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
1069 | ac_prev=htmldir ;; | |
1070 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
1071 | | --ht=*) | |
1072 | htmldir=$ac_optarg ;; | |
1073 | ||
2f1a1aea FCE |
1074 | -includedir | --includedir | --includedi | --included | --include \ |
1075 | | --includ | --inclu | --incl | --inc) | |
1076 | ac_prev=includedir ;; | |
1077 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
1078 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
1079 | includedir=$ac_optarg ;; | |
1080 | ||
1081 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
1082 | ac_prev=infodir ;; | |
1083 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
1084 | infodir=$ac_optarg ;; | |
1085 | ||
1086 | -libdir | --libdir | --libdi | --libd) | |
1087 | ac_prev=libdir ;; | |
1088 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
1089 | libdir=$ac_optarg ;; | |
1090 | ||
1091 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
1092 | | --libexe | --libex | --libe) | |
1093 | ac_prev=libexecdir ;; | |
1094 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
1095 | | --libexe=* | --libex=* | --libe=*) | |
1096 | libexecdir=$ac_optarg ;; | |
1097 | ||
7fbd9d09 FCE |
1098 | -localedir | --localedir | --localedi | --localed | --locale) |
1099 | ac_prev=localedir ;; | |
1100 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
1101 | localedir=$ac_optarg ;; | |
1102 | ||
2f1a1aea | 1103 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
7fbd9d09 | 1104 | | --localstate | --localstat | --localsta | --localst | --locals) |
2f1a1aea FCE |
1105 | ac_prev=localstatedir ;; |
1106 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
7fbd9d09 | 1107 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
2f1a1aea FCE |
1108 | localstatedir=$ac_optarg ;; |
1109 | ||
1110 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
1111 | ac_prev=mandir ;; | |
1112 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
1113 | mandir=$ac_optarg ;; | |
1114 | ||
1115 | -nfp | --nfp | --nf) | |
1116 | # Obsolete; use --without-fp. | |
1117 | with_fp=no ;; | |
1118 | ||
1119 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
1120 | | --no-cr | --no-c | -n) | |
1121 | no_create=yes ;; | |
1122 | ||
1123 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
1124 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
1125 | no_recursion=yes ;; | |
1126 | ||
1127 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
1128 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
1129 | | --oldin | --oldi | --old | --ol | --o) | |
1130 | ac_prev=oldincludedir ;; | |
1131 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
1132 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
1133 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
1134 | oldincludedir=$ac_optarg ;; | |
1135 | ||
1136 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
1137 | ac_prev=prefix ;; | |
1138 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
1139 | prefix=$ac_optarg ;; | |
1140 | ||
1141 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
1142 | | --program-pre | --program-pr | --program-p) | |
1143 | ac_prev=program_prefix ;; | |
1144 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
1145 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
1146 | program_prefix=$ac_optarg ;; | |
1147 | ||
1148 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
1149 | | --program-suf | --program-su | --program-s) | |
1150 | ac_prev=program_suffix ;; | |
1151 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
1152 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
1153 | program_suffix=$ac_optarg ;; | |
1154 | ||
1155 | -program-transform-name | --program-transform-name \ | |
1156 | | --program-transform-nam | --program-transform-na \ | |
1157 | | --program-transform-n | --program-transform- \ | |
1158 | | --program-transform | --program-transfor \ | |
1159 | | --program-transfo | --program-transf \ | |
1160 | | --program-trans | --program-tran \ | |
1161 | | --progr-tra | --program-tr | --program-t) | |
1162 | ac_prev=program_transform_name ;; | |
1163 | -program-transform-name=* | --program-transform-name=* \ | |
1164 | | --program-transform-nam=* | --program-transform-na=* \ | |
1165 | | --program-transform-n=* | --program-transform-=* \ | |
1166 | | --program-transform=* | --program-transfor=* \ | |
1167 | | --program-transfo=* | --program-transf=* \ | |
1168 | | --program-trans=* | --program-tran=* \ | |
1169 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
1170 | program_transform_name=$ac_optarg ;; | |
1171 | ||
7fbd9d09 FCE |
1172 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
1173 | ac_prev=pdfdir ;; | |
1174 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
1175 | pdfdir=$ac_optarg ;; | |
1176 | ||
1177 | -psdir | --psdir | --psdi | --psd | --ps) | |
1178 | ac_prev=psdir ;; | |
1179 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
1180 | psdir=$ac_optarg ;; | |
1181 | ||
2f1a1aea FCE |
1182 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
1183 | | -silent | --silent | --silen | --sile | --sil) | |
1184 | silent=yes ;; | |
1185 | ||
1186 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
1187 | ac_prev=sbindir ;; | |
1188 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
1189 | | --sbi=* | --sb=*) | |
1190 | sbindir=$ac_optarg ;; | |
1191 | ||
1192 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
1193 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
1194 | | --sharedst | --shareds | --shared | --share | --shar \ | |
1195 | | --sha | --sh) | |
1196 | ac_prev=sharedstatedir ;; | |
1197 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
1198 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
1199 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
1200 | | --sha=* | --sh=*) | |
1201 | sharedstatedir=$ac_optarg ;; | |
1202 | ||
1203 | -site | --site | --sit) | |
1204 | ac_prev=site ;; | |
1205 | -site=* | --site=* | --sit=*) | |
1206 | site=$ac_optarg ;; | |
1207 | ||
1208 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
1209 | ac_prev=srcdir ;; | |
1210 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
1211 | srcdir=$ac_optarg ;; | |
1212 | ||
1213 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
1214 | | --syscon | --sysco | --sysc | --sys | --sy) | |
1215 | ac_prev=sysconfdir ;; | |
1216 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
1217 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
1218 | sysconfdir=$ac_optarg ;; | |
1219 | ||
1220 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
1221 | ac_prev=target_alias ;; | |
1222 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | |
1223 | target_alias=$ac_optarg ;; | |
1224 | ||
1225 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1226 | verbose=yes ;; | |
1227 | ||
1228 | -version | --version | --versio | --versi | --vers | -V) | |
1229 | ac_init_version=: ;; | |
1230 | ||
1231 | -with-* | --with-*) | |
0710d850 | 1232 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
2f1a1aea | 1233 | # Reject names that are not valid shell variable names. |
0710d850 | 1234 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
5d4aa1f5 | 1235 | as_fn_error $? "invalid package name: $ac_useropt" |
0710d850 DS |
1236 | ac_useropt_orig=$ac_useropt |
1237 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1238 | case $ac_user_opts in | |
1239 | *" | |
1240 | "with_$ac_useropt" | |
1241 | "*) ;; | |
1242 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | |
1243 | ac_unrecognized_sep=', ';; | |
1244 | esac | |
1245 | eval with_$ac_useropt=\$ac_optarg ;; | |
2f1a1aea FCE |
1246 | |
1247 | -without-* | --without-*) | |
0710d850 | 1248 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
2f1a1aea | 1249 | # Reject names that are not valid shell variable names. |
0710d850 | 1250 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
5d4aa1f5 | 1251 | as_fn_error $? "invalid package name: $ac_useropt" |
0710d850 DS |
1252 | ac_useropt_orig=$ac_useropt |
1253 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1254 | case $ac_user_opts in | |
1255 | *" | |
1256 | "with_$ac_useropt" | |
1257 | "*) ;; | |
1258 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | |
1259 | ac_unrecognized_sep=', ';; | |
1260 | esac | |
1261 | eval with_$ac_useropt=no ;; | |
2f1a1aea FCE |
1262 | |
1263 | --x) | |
1264 | # Obsolete; use --with-x. | |
1265 | with_x=yes ;; | |
1266 | ||
1267 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1268 | | --x-incl | --x-inc | --x-in | --x-i) | |
1269 | ac_prev=x_includes ;; | |
1270 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1271 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
1272 | x_includes=$ac_optarg ;; | |
1273 | ||
1274 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1275 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1276 | ac_prev=x_libraries ;; | |
1277 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1278 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
1279 | x_libraries=$ac_optarg ;; | |
1280 | ||
5d4aa1f5 FCE |
1281 | -*) as_fn_error $? "unrecognized option: \`$ac_option' |
1282 | Try \`$0 --help' for more information" | |
2f1a1aea FCE |
1283 | ;; |
1284 | ||
1285 | *=*) | |
1286 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1287 | # Reject names that are not valid shell variable names. | |
1ef0423a FCE |
1288 | case $ac_envvar in #( |
1289 | '' | [0-9]* | *[!_$as_cr_alnum]* ) | |
5d4aa1f5 | 1290 | as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; |
1ef0423a | 1291 | esac |
7fbd9d09 | 1292 | eval $ac_envvar=\$ac_optarg |
2f1a1aea FCE |
1293 | export $ac_envvar ;; |
1294 | ||
1295 | *) | |
1296 | # FIXME: should be removed in autoconf 3.0. | |
0710d850 | 1297 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
2f1a1aea | 1298 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
0710d850 | 1299 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
c3de29bd | 1300 | : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" |
2f1a1aea FCE |
1301 | ;; |
1302 | ||
1303 | esac | |
1304 | done | |
1305 | ||
1306 | if test -n "$ac_prev"; then | |
1307 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` | |
5d4aa1f5 | 1308 | as_fn_error $? "missing argument to $ac_option" |
2f1a1aea FCE |
1309 | fi |
1310 | ||
0710d850 DS |
1311 | if test -n "$ac_unrecognized_opts"; then |
1312 | case $enable_option_checking in | |
1313 | no) ;; | |
5d4aa1f5 | 1314 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; |
0710d850 DS |
1315 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
1316 | esac | |
1317 | fi | |
1318 | ||
1319 | # Check all directory arguments for consistency. | |
7fbd9d09 FCE |
1320 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
1321 | datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1322 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
1323 | libdir localedir mandir | |
818ba2bc | 1324 | do |
7fbd9d09 | 1325 | eval ac_val=\$$ac_var |
0710d850 DS |
1326 | # Remove trailing slashes. |
1327 | case $ac_val in | |
1328 | */ ) | |
1329 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | |
1330 | eval $ac_var=\$ac_val;; | |
1331 | esac | |
1332 | # Be sure to have absolute directory names. | |
8ae7a94a | 1333 | case $ac_val in |
7fbd9d09 FCE |
1334 | [\\/$]* | ?:[\\/]* ) continue;; |
1335 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
2f1a1aea | 1336 | esac |
5d4aa1f5 | 1337 | as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" |
2f1a1aea FCE |
1338 | done |
1339 | ||
1340 | # There might be people who depend on the old broken behavior: `$host' | |
1341 | # used to hold the argument of --host etc. | |
1342 | # FIXME: To remove some day. | |
1343 | build=$build_alias | |
1344 | host=$host_alias | |
1345 | target=$target_alias | |
1346 | ||
1347 | # FIXME: To remove some day. | |
1348 | if test "x$host_alias" != x; then | |
1349 | if test "x$build_alias" = x; then | |
1350 | cross_compiling=maybe | |
2f1a1aea FCE |
1351 | elif test "x$build_alias" != "x$host_alias"; then |
1352 | cross_compiling=yes | |
1353 | fi | |
1354 | fi | |
1355 | ||
1356 | ac_tool_prefix= | |
1357 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1358 | ||
1359 | test "$silent" = yes && exec 6>/dev/null | |
1360 | ||
1361 | ||
7fbd9d09 FCE |
1362 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
1363 | ac_ls_di=`ls -di .` && | |
1364 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
5d4aa1f5 | 1365 | as_fn_error $? "working directory cannot be determined" |
7fbd9d09 | 1366 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
5d4aa1f5 | 1367 | as_fn_error $? "pwd does not report name of working directory" |
7fbd9d09 FCE |
1368 | |
1369 | ||
2f1a1aea FCE |
1370 | # Find the source files, if location was not specified. |
1371 | if test -z "$srcdir"; then | |
1372 | ac_srcdir_defaulted=yes | |
7fbd9d09 | 1373 | # Try the directory containing this script, then the parent directory. |
0710d850 DS |
1374 | ac_confdir=`$as_dirname -- "$as_myself" || |
1375 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
1376 | X"$as_myself" : 'X\(//\)[^/]' \| \ | |
1377 | X"$as_myself" : 'X\(//\)$' \| \ | |
1378 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | |
1379 | $as_echo X"$as_myself" | | |
7fbd9d09 FCE |
1380 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
1381 | s//\1/ | |
1382 | q | |
1383 | } | |
1384 | /^X\(\/\/\)[^/].*/{ | |
1385 | s//\1/ | |
1386 | q | |
1387 | } | |
1388 | /^X\(\/\/\)$/{ | |
1389 | s//\1/ | |
1390 | q | |
1391 | } | |
1392 | /^X\(\/\).*/{ | |
1393 | s//\1/ | |
1394 | q | |
1395 | } | |
1396 | s/.*/./; q'` | |
2f1a1aea | 1397 | srcdir=$ac_confdir |
7fbd9d09 | 1398 | if test ! -r "$srcdir/$ac_unique_file"; then |
2f1a1aea FCE |
1399 | srcdir=.. |
1400 | fi | |
1401 | else | |
1402 | ac_srcdir_defaulted=no | |
1403 | fi | |
7fbd9d09 FCE |
1404 | if test ! -r "$srcdir/$ac_unique_file"; then |
1405 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
5d4aa1f5 | 1406 | as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" |
8ae7a94a | 1407 | fi |
7fbd9d09 FCE |
1408 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
1409 | ac_abs_confdir=`( | |
5d4aa1f5 | 1410 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" |
7fbd9d09 FCE |
1411 | pwd)` |
1412 | # When building in place, set srcdir=. | |
1413 | if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1414 | srcdir=. | |
1415 | fi | |
1416 | # Remove unnecessary trailing slashes from srcdir. | |
1417 | # Double slashes in file names in object file debugging info | |
1418 | # mess up M-x gdb in Emacs. | |
1419 | case $srcdir in | |
1420 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1421 | esac | |
1422 | for ac_var in $ac_precious_vars; do | |
1423 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1424 | eval ac_env_${ac_var}_value=\$${ac_var} | |
1425 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1426 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1427 | done | |
2f1a1aea FCE |
1428 | |
1429 | # | |
1430 | # Report the --help message. | |
1431 | # | |
1432 | if test "$ac_init_help" = "long"; then | |
1433 | # Omit some internal or obsolete options to make the list less imposing. | |
1434 | # This message is too long to be a string in the A/UX 3.1 sh. | |
1435 | cat <<_ACEOF | |
9a399080 | 1436 | \`configure' configures systemtap 2.8 to adapt to many kinds of systems. |
2f1a1aea FCE |
1437 | |
1438 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
1439 | ||
1440 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
1441 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
1442 | ||
1443 | Defaults for the options are specified in brackets. | |
1444 | ||
1445 | Configuration: | |
1446 | -h, --help display this help and exit | |
1447 | --help=short display options specific to this package | |
1448 | --help=recursive display the short help of all the included packages | |
1449 | -V, --version display version information and exit | |
5d4aa1f5 | 1450 | -q, --quiet, --silent do not print \`checking ...' messages |
2f1a1aea FCE |
1451 | --cache-file=FILE cache test results in FILE [disabled] |
1452 | -C, --config-cache alias for \`--cache-file=config.cache' | |
1453 | -n, --no-create do not create output files | |
1454 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1455 | ||
2f1a1aea FCE |
1456 | Installation directories: |
1457 | --prefix=PREFIX install architecture-independent files in PREFIX | |
0710d850 | 1458 | [$ac_default_prefix] |
2f1a1aea | 1459 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
0710d850 | 1460 | [PREFIX] |
2f1a1aea FCE |
1461 | |
1462 | By default, \`make install' will install all the files in | |
1463 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1464 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1465 | for instance \`--prefix=\$HOME'. | |
1466 | ||
1467 | For better control, use the options below. | |
1468 | ||
1469 | Fine tuning of the installation directories: | |
0710d850 DS |
1470 | --bindir=DIR user executables [EPREFIX/bin] |
1471 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1472 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
1473 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
1474 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1475 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1476 | --libdir=DIR object code libraries [EPREFIX/lib] | |
1477 | --includedir=DIR C header files [PREFIX/include] | |
1478 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
1479 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | |
1480 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1481 | --infodir=DIR info documentation [DATAROOTDIR/info] | |
1482 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1483 | --mandir=DIR man documentation [DATAROOTDIR/man] | |
1484 | --docdir=DIR documentation root [DATAROOTDIR/doc/systemtap] | |
1485 | --htmldir=DIR html documentation [DOCDIR] | |
1486 | --dvidir=DIR dvi documentation [DOCDIR] | |
1487 | --pdfdir=DIR pdf documentation [DOCDIR] | |
1488 | --psdir=DIR ps documentation [DOCDIR] | |
2f1a1aea FCE |
1489 | _ACEOF |
1490 | ||
1491 | cat <<\_ACEOF | |
1492 | ||
1493 | Program names: | |
1494 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
1495 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
1496 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names | |
8f223b3e FCE |
1497 | |
1498 | System types: | |
1499 | --build=BUILD configure for building on BUILD [guessed] | |
1500 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
2689a171 | 1501 | --target=TARGET configure for building compilers for TARGET [HOST] |
2f1a1aea FCE |
1502 | _ACEOF |
1503 | fi | |
1504 | ||
1505 | if test -n "$ac_init_help"; then | |
1506 | case $ac_init_help in | |
9a399080 | 1507 | short | recursive ) echo "Configuration of systemtap 2.8:";; |
2f1a1aea FCE |
1508 | esac |
1509 | cat <<\_ACEOF | |
1510 | ||
1511 | Optional Features: | |
0710d850 | 1512 | --disable-option-checking ignore unrecognized --enable/--with options |
2f1a1aea FCE |
1513 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
1514 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
d9e6d90b WC |
1515 | --enable-silent-rules less verbose build output (undo: "make V=1") |
1516 | --disable-silent-rules verbose build output (undo: "make V=0") | |
8eef2738 LB |
1517 | --enable-maintainer-mode |
1518 | enable make rules and dependencies not useful (and | |
1519 | sometimes confusing) to the casual installer | |
8eef2738 LB |
1520 | --enable-dependency-tracking |
1521 | do not reject slow dependency extractors | |
1522 | --disable-dependency-tracking | |
1523 | speeds up one-time build | |
97859b9d | 1524 | --disable-largefile omit support for large files |
8f223b3e FCE |
1525 | --disable-nls do not use Native Language Support |
1526 | --disable-rpath do not hardcode runtime library paths | |
44f75386 | 1527 | --enable-prologues make -P prologue-searching default |
0f5d597d | 1528 | --disable-sdt-probes disable process.mark probes in stap, staprun, stapio |
bbfd8c1a | 1529 | --disable-ssp disable gcc stack-protector |
882ddac1 | 1530 | --enable-pie enable position-independent-executable |
9921a199 | 1531 | --enable-sqlite build with sqlite support |
6d14a4a9 | 1532 | --disable-translator build only runtime utilities |
564eb0a8 DS |
1533 | --enable-crash[=DIRECTORY] |
1534 | enable crash extension (default is disabled). | |
1535 | Optional DIRECTORY is the path to the crash header | |
1536 | file (needed if installed in a non-standard | |
1537 | location). | |
465e8fbf FCE |
1538 | --enable-docs enable building documentation (default on if latex |
1539 | etc. found). | |
53ade4da MW |
1540 | --enable-publican enable building publican documentation guides |
1541 | (default on if publican found and other | |
1542 | documentation built). | |
92aff3c7 WC |
1543 | --enable-refdocs enable building reference documentation (default on |
1544 | if xmlto etc. found and other documentation built). | |
a0e2728a DB |
1545 | --enable-server enable building of stap-server (default on if nss |
1546 | etc. found). | |
b0c670f4 FCE |
1547 | --enable-virt enable building of stapvirt support (default on if |
1548 | libvirt etc. found). | |
2f1a1aea | 1549 | |
4d9087fc RM |
1550 | Optional Packages: |
1551 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1552 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
42f767d0 | 1553 | --with-gnu-ld assume the C compiler uses GNU ld [default=no] |
8f223b3e FCE |
1554 | --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib |
1555 | --without-libiconv-prefix don't search for libiconv in includedir and libdir | |
1556 | --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib | |
1557 | --without-libintl-prefix don't search for libintl in includedir and libdir | |
53ade4da MW |
1558 | --with-publican-brand=BRAND |
1559 | building publican documentation guides using given | |
89bc1a6a | 1560 | brand (defaults to "common"). |
28f121c3 DEP |
1561 | --without-nss Do not use NSS even if present |
1562 | --without-avahi Do not use Avahi even if present | |
0f5d597d | 1563 | --with-rpm query rpm database for missing debuginfos |
4d9087fc RM |
1564 | --with-elfutils=DIRECTORY |
1565 | find elfutils source code in DIRECTORY | |
138bbe90 JS |
1566 | --with-dyninst=DIRECTORY |
1567 | find dyninst headers/libraries in DIRECTORY | |
51030d84 | 1568 | --without-selinux Do not use libselinux even if present |
26703c63 SM |
1569 | --with-java=DIRECTORY Specify JDK directory to compile libHelperSDT.so |
1570 | against (default is /usr/lib/jvm/java) | |
85b62eab FCE |
1571 | --with-extra-version=STRING |
1572 | Add STRING to stap -V version | |
4d9087fc | 1573 | |
2f1a1aea FCE |
1574 | Some influential environment variables: |
1575 | CC C compiler command | |
1576 | CFLAGS C compiler flags | |
1577 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1578 | nonstandard directory <lib dir> | |
7fbd9d09 | 1579 | LIBS libraries to pass to the linker, e.g. -l<library> |
1ef0423a | 1580 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if |
7fbd9d09 | 1581 | you have headers in a nonstandard directory <include dir> |
8f223b3e | 1582 | CPP C preprocessor |
2f1a1aea FCE |
1583 | CXX C++ compiler command |
1584 | CXXFLAGS C++ compiler flags | |
1087b83f | 1585 | PKG_CONFIG path to pkg-config utility |
5d4aa1f5 FCE |
1586 | PKG_CONFIG_PATH |
1587 | directories to add to pkg-config's search path | |
1588 | PKG_CONFIG_LIBDIR | |
1589 | path overriding pkg-config's built-in search path | |
28f121c3 DEP |
1590 | nss_CFLAGS C compiler flags for nss, overriding pkg-config |
1591 | nss_LIBS linker flags for nss, overriding pkg-config | |
1592 | avahi_CFLAGS | |
1593 | C compiler flags for avahi, overriding pkg-config | |
1594 | avahi_LIBS linker flags for avahi, overriding pkg-config | |
f8a49389 | 1595 | CXXCPP C++ preprocessor |
42f767d0 JL |
1596 | libvirt_CFLAGS |
1597 | C compiler flags for libvirt, overriding pkg-config | |
1598 | libvirt_LIBS | |
1599 | linker flags for libvirt, overriding pkg-config | |
1600 | libxml2_CFLAGS | |
1601 | C compiler flags for libxml2, overriding pkg-config | |
1602 | libxml2_LIBS | |
1603 | linker flags for libxml2, overriding pkg-config | |
51030d84 JS |
1604 | selinux_CFLAGS |
1605 | C compiler flags for selinux, overriding pkg-config | |
1606 | selinux_LIBS | |
1607 | linker flags for selinux, overriding pkg-config | |
2f1a1aea FCE |
1608 | |
1609 | Use these variables to override the choices made by `configure' or to help | |
1610 | it to find libraries and programs with nonstandard names/locations. | |
1611 | ||
306dd4f8 | 1612 | Report bugs to <systemtap@sourceware.org>. |
2f1a1aea | 1613 | _ACEOF |
7fbd9d09 | 1614 | ac_status=$? |
2f1a1aea FCE |
1615 | fi |
1616 | ||
1617 | if test "$ac_init_help" = "recursive"; then | |
1618 | # If there are subdirs, report their specific --help. | |
2f1a1aea | 1619 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
0710d850 DS |
1620 | test -d "$ac_dir" || |
1621 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | |
1622 | continue | |
2f1a1aea FCE |
1623 | ac_builddir=. |
1624 | ||
7fbd9d09 FCE |
1625 | case "$ac_dir" in |
1626 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1627 | *) | |
0710d850 | 1628 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
7fbd9d09 | 1629 | # A ".." for each directory in $ac_dir_suffix. |
0710d850 | 1630 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
7fbd9d09 FCE |
1631 | case $ac_top_builddir_sub in |
1632 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1633 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1634 | esac ;; | |
1635 | esac | |
1636 | ac_abs_top_builddir=$ac_pwd | |
1637 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1638 | # for backward compatibility: | |
1639 | ac_top_builddir=$ac_top_build_prefix | |
2f1a1aea FCE |
1640 | |
1641 | case $srcdir in | |
7fbd9d09 | 1642 | .) # We are building in place. |
2f1a1aea | 1643 | ac_srcdir=. |
7fbd9d09 FCE |
1644 | ac_top_srcdir=$ac_top_builddir_sub |
1645 | ac_abs_top_srcdir=$ac_pwd ;; | |
1646 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
2f1a1aea | 1647 | ac_srcdir=$srcdir$ac_dir_suffix; |
7fbd9d09 FCE |
1648 | ac_top_srcdir=$srcdir |
1649 | ac_abs_top_srcdir=$srcdir ;; | |
1650 | *) # Relative name. | |
1651 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1652 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1653 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
818ba2bc | 1654 | esac |
7fbd9d09 FCE |
1655 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
1656 | ||
1657 | cd "$ac_dir" || { ac_status=$?; continue; } | |
1658 | # Check for guested configure. | |
1659 | if test -f "$ac_srcdir/configure.gnu"; then | |
1660 | echo && | |
1661 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
1662 | elif test -f "$ac_srcdir/configure"; then | |
1663 | echo && | |
1664 | $SHELL "$ac_srcdir/configure" --help=recursive | |
2f1a1aea | 1665 | else |
0710d850 | 1666 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
7fbd9d09 FCE |
1667 | fi || ac_status=$? |
1668 | cd "$ac_pwd" || { ac_status=$?; break; } | |
2f1a1aea FCE |
1669 | done |
1670 | fi | |
1671 | ||
7fbd9d09 | 1672 | test -n "$ac_init_help" && exit $ac_status |
2f1a1aea FCE |
1673 | if $ac_init_version; then |
1674 | cat <<\_ACEOF | |
9a399080 | 1675 | systemtap configure 2.8 |
8eef2738 | 1676 | generated by GNU Autoconf 2.69 |
2f1a1aea | 1677 | |
8eef2738 | 1678 | Copyright (C) 2012 Free Software Foundation, Inc. |
2f1a1aea FCE |
1679 | This configure script is free software; the Free Software Foundation |
1680 | gives unlimited permission to copy, distribute and modify it. | |
1681 | _ACEOF | |
7fbd9d09 | 1682 | exit |
2f1a1aea | 1683 | fi |
4b5627b1 | 1684 | |
1ef0423a FCE |
1685 | ## ------------------------ ## |
1686 | ## Autoconf initialization. ## | |
1687 | ## ------------------------ ## | |
4b5627b1 | 1688 | |
1ef0423a FCE |
1689 | # ac_fn_c_try_compile LINENO |
1690 | # -------------------------- | |
1691 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1692 | ac_fn_c_try_compile () | |
ec1a2239 | 1693 | { |
1ef0423a FCE |
1694 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
1695 | rm -f conftest.$ac_objext | |
1696 | if { { ac_try="$ac_compile" | |
1697 | case "(($ac_try" in | |
1698 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1699 | *) ac_try_echo=$ac_try;; | |
1700 | esac | |
1701 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1702 | $as_echo "$ac_try_echo"; } >&5 | |
1703 | (eval "$ac_compile") 2>conftest.err | |
1704 | ac_status=$? | |
1705 | if test -s conftest.err; then | |
1706 | grep -v '^ *+' conftest.err >conftest.er1 | |
1707 | cat conftest.er1 >&5 | |
1708 | mv -f conftest.er1 conftest.err | |
1709 | fi | |
1710 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1711 | test $ac_status = 0; } && { | |
1712 | test -z "$ac_c_werror_flag" || | |
1713 | test ! -s conftest.err | |
1714 | } && test -s conftest.$ac_objext; then : | |
1715 | ac_retval=0 | |
1716 | else | |
1717 | $as_echo "$as_me: failed program was:" >&5 | |
1718 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4b5627b1 | 1719 | |
1ef0423a FCE |
1720 | ac_retval=1 |
1721 | fi | |
c3de29bd | 1722 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1ef0423a | 1723 | as_fn_set_status $ac_retval |
ec1a2239 | 1724 | |
1ef0423a | 1725 | } # ac_fn_c_try_compile |
ec1a2239 | 1726 | |
1ef0423a FCE |
1727 | # ac_fn_c_try_cpp LINENO |
1728 | # ---------------------- | |
1729 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. | |
1730 | ac_fn_c_try_cpp () | |
1731 | { | |
1732 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1733 | if { { ac_try="$ac_cpp conftest.$ac_ext" | |
1734 | case "(($ac_try" in | |
1735 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1736 | *) ac_try_echo=$ac_try;; | |
1737 | esac | |
1738 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1739 | $as_echo "$ac_try_echo"; } >&5 | |
1740 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err | |
1741 | ac_status=$? | |
1742 | if test -s conftest.err; then | |
1743 | grep -v '^ *+' conftest.err >conftest.er1 | |
1744 | cat conftest.er1 >&5 | |
1745 | mv -f conftest.er1 conftest.err | |
1746 | fi | |
1747 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
c3de29bd | 1748 | test $ac_status = 0; } > conftest.i && { |
1ef0423a FCE |
1749 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
1750 | test ! -s conftest.err | |
1751 | }; then : | |
1752 | ac_retval=0 | |
1753 | else | |
1754 | $as_echo "$as_me: failed program was:" >&5 | |
1755 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1756 | ||
1757 | ac_retval=1 | |
1758 | fi | |
c3de29bd | 1759 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1ef0423a FCE |
1760 | as_fn_set_status $ac_retval |
1761 | ||
1762 | } # ac_fn_c_try_cpp | |
1763 | ||
1ef0423a FCE |
1764 | # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES |
1765 | # ------------------------------------------------------- | |
1766 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using | |
1767 | # the include files in INCLUDES and setting the cache variable VAR | |
1768 | # accordingly. | |
1769 | ac_fn_c_check_header_mongrel () | |
1770 | { | |
1771 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
c3de29bd | 1772 | if eval \${$3+:} false; then : |
1ef0423a FCE |
1773 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
1774 | $as_echo_n "checking for $2... " >&6; } | |
c3de29bd | 1775 | if eval \${$3+:} false; then : |
1ef0423a FCE |
1776 | $as_echo_n "(cached) " >&6 |
1777 | fi | |
1778 | eval ac_res=\$$3 | |
1779 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1780 | $as_echo "$ac_res" >&6; } | |
1781 | else | |
1782 | # Is the header compilable? | |
1783 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 | |
1784 | $as_echo_n "checking $2 usability... " >&6; } | |
1785 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1786 | /* end confdefs.h. */ | |
1787 | $4 | |
1788 | #include <$2> | |
1789 | _ACEOF | |
1790 | if ac_fn_c_try_compile "$LINENO"; then : | |
1791 | ac_header_compiler=yes | |
1792 | else | |
1793 | ac_header_compiler=no | |
1794 | fi | |
1795 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1796 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 | |
1797 | $as_echo "$ac_header_compiler" >&6; } | |
1798 | ||
1799 | # Is the header present? | |
1800 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 | |
1801 | $as_echo_n "checking $2 presence... " >&6; } | |
1802 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1803 | /* end confdefs.h. */ | |
1804 | #include <$2> | |
1805 | _ACEOF | |
1806 | if ac_fn_c_try_cpp "$LINENO"; then : | |
1807 | ac_header_preproc=yes | |
1808 | else | |
1809 | ac_header_preproc=no | |
1810 | fi | |
c3de29bd | 1811 | rm -f conftest.err conftest.i conftest.$ac_ext |
1ef0423a FCE |
1812 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 |
1813 | $as_echo "$ac_header_preproc" >&6; } | |
1814 | ||
1815 | # So? What about this header? | |
1816 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( | |
1817 | yes:no: ) | |
1818 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 | |
1819 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
1820 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
1821 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
1822 | ;; | |
1823 | no:yes:* ) | |
1824 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 | |
1825 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} | |
1826 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 | |
1827 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} | |
1828 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 | |
1829 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} | |
1830 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 | |
1831 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} | |
1832 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
1833 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
5d4aa1f5 | 1834 | ( $as_echo "## --------------------------------------- ## |
306dd4f8 | 1835 | ## Report this to systemtap@sourceware.org ## |
5d4aa1f5 | 1836 | ## --------------------------------------- ##" |
1ef0423a FCE |
1837 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
1838 | ;; | |
1839 | esac | |
1840 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1841 | $as_echo_n "checking for $2... " >&6; } | |
c3de29bd | 1842 | if eval \${$3+:} false; then : |
1ef0423a FCE |
1843 | $as_echo_n "(cached) " >&6 |
1844 | else | |
1845 | eval "$3=\$ac_header_compiler" | |
1846 | fi | |
1847 | eval ac_res=\$$3 | |
1848 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1849 | $as_echo "$ac_res" >&6; } | |
1850 | fi | |
c3de29bd | 1851 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1ef0423a FCE |
1852 | |
1853 | } # ac_fn_c_check_header_mongrel | |
1854 | ||
8f223b3e FCE |
1855 | # ac_fn_c_try_run LINENO |
1856 | # ---------------------- | |
1857 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes | |
1858 | # that executables *can* be run. | |
1859 | ac_fn_c_try_run () | |
1860 | { | |
1861 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1862 | if { { ac_try="$ac_link" | |
1863 | case "(($ac_try" in | |
1864 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1865 | *) ac_try_echo=$ac_try;; | |
1866 | esac | |
1867 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1868 | $as_echo "$ac_try_echo"; } >&5 | |
1869 | (eval "$ac_link") 2>&5 | |
1870 | ac_status=$? | |
1871 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1872 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' | |
1873 | { { case "(($ac_try" in | |
1874 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1875 | *) ac_try_echo=$ac_try;; | |
1876 | esac | |
1877 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1878 | $as_echo "$ac_try_echo"; } >&5 | |
1879 | (eval "$ac_try") 2>&5 | |
1880 | ac_status=$? | |
1881 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1882 | test $ac_status = 0; }; }; then : | |
1883 | ac_retval=0 | |
1884 | else | |
1885 | $as_echo "$as_me: program exited with status $ac_status" >&5 | |
1886 | $as_echo "$as_me: failed program was:" >&5 | |
1887 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1888 | ||
1889 | ac_retval=$ac_status | |
1890 | fi | |
1891 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
c3de29bd | 1892 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
8f223b3e FCE |
1893 | as_fn_set_status $ac_retval |
1894 | ||
1895 | } # ac_fn_c_try_run | |
1896 | ||
1ef0423a FCE |
1897 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES |
1898 | # ------------------------------------------------------- | |
1899 | # Tests whether HEADER exists and can be compiled using the include files in | |
1900 | # INCLUDES, setting the cache variable VAR accordingly. | |
1901 | ac_fn_c_check_header_compile () | |
1902 | { | |
1903 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1904 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1905 | $as_echo_n "checking for $2... " >&6; } | |
c3de29bd | 1906 | if eval \${$3+:} false; then : |
1ef0423a FCE |
1907 | $as_echo_n "(cached) " >&6 |
1908 | else | |
1909 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1910 | /* end confdefs.h. */ | |
1911 | $4 | |
1912 | #include <$2> | |
1913 | _ACEOF | |
1914 | if ac_fn_c_try_compile "$LINENO"; then : | |
1915 | eval "$3=yes" | |
1916 | else | |
1917 | eval "$3=no" | |
1918 | fi | |
1919 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1920 | fi | |
1921 | eval ac_res=\$$3 | |
1922 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1923 | $as_echo "$ac_res" >&6; } | |
c3de29bd | 1924 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1ef0423a FCE |
1925 | |
1926 | } # ac_fn_c_check_header_compile | |
1927 | ||
8f223b3e FCE |
1928 | # ac_fn_cxx_try_compile LINENO |
1929 | # ---------------------------- | |
1930 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1931 | ac_fn_cxx_try_compile () | |
1932 | { | |
1933 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1934 | rm -f conftest.$ac_objext | |
1935 | if { { ac_try="$ac_compile" | |
1936 | case "(($ac_try" in | |
1937 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1938 | *) ac_try_echo=$ac_try;; | |
1939 | esac | |
1940 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1941 | $as_echo "$ac_try_echo"; } >&5 | |
1942 | (eval "$ac_compile") 2>conftest.err | |
1943 | ac_status=$? | |
1944 | if test -s conftest.err; then | |
1945 | grep -v '^ *+' conftest.err >conftest.er1 | |
1946 | cat conftest.er1 >&5 | |
1947 | mv -f conftest.er1 conftest.err | |
1948 | fi | |
1949 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1950 | test $ac_status = 0; } && { | |
1951 | test -z "$ac_cxx_werror_flag" || | |
1952 | test ! -s conftest.err | |
1953 | } && test -s conftest.$ac_objext; then : | |
1954 | ac_retval=0 | |
1955 | else | |
1956 | $as_echo "$as_me: failed program was:" >&5 | |
1957 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1958 | ||
1959 | ac_retval=1 | |
1960 | fi | |
c3de29bd | 1961 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
8f223b3e FCE |
1962 | as_fn_set_status $ac_retval |
1963 | ||
1964 | } # ac_fn_cxx_try_compile | |
1965 | ||
1ef0423a FCE |
1966 | # ac_fn_c_try_link LINENO |
1967 | # ----------------------- | |
1968 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
1969 | ac_fn_c_try_link () | |
1970 | { | |
1971 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1972 | rm -f conftest.$ac_objext conftest$ac_exeext | |
1973 | if { { ac_try="$ac_link" | |
1974 | case "(($ac_try" in | |
1975 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1976 | *) ac_try_echo=$ac_try;; | |
1977 | esac | |
1978 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1979 | $as_echo "$ac_try_echo"; } >&5 | |
1980 | (eval "$ac_link") 2>conftest.err | |
1981 | ac_status=$? | |
1982 | if test -s conftest.err; then | |
1983 | grep -v '^ *+' conftest.err >conftest.er1 | |
1984 | cat conftest.er1 >&5 | |
1985 | mv -f conftest.er1 conftest.err | |
1986 | fi | |
1987 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1988 | test $ac_status = 0; } && { | |
1989 | test -z "$ac_c_werror_flag" || | |
1990 | test ! -s conftest.err | |
1991 | } && test -s conftest$ac_exeext && { | |
1992 | test "$cross_compiling" = yes || | |
8eef2738 | 1993 | test -x conftest$ac_exeext |
1ef0423a FCE |
1994 | }; then : |
1995 | ac_retval=0 | |
1996 | else | |
1997 | $as_echo "$as_me: failed program was:" >&5 | |
1998 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1999 | ||
2000 | ac_retval=1 | |
2001 | fi | |
2002 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
2003 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
2004 | # interfere with the next link command; also delete a directory that is | |
2005 | # left behind by Apple's compiler. We do this before executing the actions. | |
2006 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
c3de29bd | 2007 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1ef0423a FCE |
2008 | as_fn_set_status $ac_retval |
2009 | ||
2010 | } # ac_fn_c_try_link | |
2011 | ||
e04a4b41 JS |
2012 | # ac_fn_c_check_func LINENO FUNC VAR |
2013 | # ---------------------------------- | |
2014 | # Tests whether FUNC exists, setting the cache variable VAR accordingly | |
2015 | ac_fn_c_check_func () | |
2016 | { | |
2017 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2018 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
2019 | $as_echo_n "checking for $2... " >&6; } | |
c3de29bd | 2020 | if eval \${$3+:} false; then : |
e04a4b41 JS |
2021 | $as_echo_n "(cached) " >&6 |
2022 | else | |
2023 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2024 | /* end confdefs.h. */ | |
2025 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. | |
2026 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
2027 | #define $2 innocuous_$2 | |
2028 | ||
2029 | /* System header to define __stub macros and hopefully few prototypes, | |
2030 | which can conflict with char $2 (); below. | |
2031 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
2032 | <limits.h> exists even on freestanding compilers. */ | |
2033 | ||
2034 | #ifdef __STDC__ | |
2035 | # include <limits.h> | |
2036 | #else | |
2037 | # include <assert.h> | |
2038 | #endif | |
2039 | ||
2040 | #undef $2 | |
2041 | ||
2042 | /* Override any GCC internal prototype to avoid an error. | |
2043 | Use char because int might match the return type of a GCC | |
2044 | builtin and then its argument prototype would still apply. */ | |
2045 | #ifdef __cplusplus | |
2046 | extern "C" | |
2047 | #endif | |
2048 | char $2 (); | |
2049 | /* The GNU C library defines this for functions which it implements | |
2050 | to always fail with ENOSYS. Some functions are actually named | |
2051 | something starting with __ and the normal name is an alias. */ | |
2052 | #if defined __stub_$2 || defined __stub___$2 | |
2053 | choke me | |
2054 | #endif | |
2055 | ||
2056 | int | |
2057 | main () | |
2058 | { | |
2059 | return $2 (); | |
2060 | ; | |
2061 | return 0; | |
2062 | } | |
2063 | _ACEOF | |
2064 | if ac_fn_c_try_link "$LINENO"; then : | |
2065 | eval "$3=yes" | |
2066 | else | |
2067 | eval "$3=no" | |
2068 | fi | |
2069 | rm -f core conftest.err conftest.$ac_objext \ | |
2070 | conftest$ac_exeext conftest.$ac_ext | |
2071 | fi | |
2072 | eval ac_res=\$$3 | |
2073 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2074 | $as_echo "$ac_res" >&6; } | |
c3de29bd | 2075 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
e04a4b41 JS |
2076 | |
2077 | } # ac_fn_c_check_func | |
2078 | ||
1ef0423a FCE |
2079 | # ac_fn_cxx_try_cpp LINENO |
2080 | # ------------------------ | |
2081 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. | |
2082 | ac_fn_cxx_try_cpp () | |
2083 | { | |
2084 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2085 | if { { ac_try="$ac_cpp conftest.$ac_ext" | |
2086 | case "(($ac_try" in | |
2087 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2088 | *) ac_try_echo=$ac_try;; | |
2089 | esac | |
2090 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2091 | $as_echo "$ac_try_echo"; } >&5 | |
2092 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err | |
2093 | ac_status=$? | |
2094 | if test -s conftest.err; then | |
2095 | grep -v '^ *+' conftest.err >conftest.er1 | |
2096 | cat conftest.er1 >&5 | |
2097 | mv -f conftest.er1 conftest.err | |
2098 | fi | |
2099 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
c3de29bd | 2100 | test $ac_status = 0; } > conftest.i && { |
1ef0423a FCE |
2101 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
2102 | test ! -s conftest.err | |
2103 | }; then : | |
2104 | ac_retval=0 | |
2105 | else | |
2106 | $as_echo "$as_me: failed program was:" >&5 | |
2107 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2108 | ||
2109 | ac_retval=1 | |
2110 | fi | |
c3de29bd | 2111 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1ef0423a FCE |
2112 | as_fn_set_status $ac_retval |
2113 | ||
2114 | } # ac_fn_cxx_try_cpp | |
2115 | ||
2116 | # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES | |
2117 | # --------------------------------------------------------- | |
2118 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using | |
2119 | # the include files in INCLUDES and setting the cache variable VAR | |
2120 | # accordingly. | |
2121 | ac_fn_cxx_check_header_mongrel () | |
2122 | { | |
2123 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
c3de29bd | 2124 | if eval \${$3+:} false; then : |
1ef0423a FCE |
2125 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
2126 | $as_echo_n "checking for $2... " >&6; } | |
c3de29bd | 2127 | if eval \${$3+:} false; then : |
1ef0423a FCE |
2128 | $as_echo_n "(cached) " >&6 |
2129 | fi | |
2130 | eval ac_res=\$$3 | |
2131 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2132 | $as_echo "$ac_res" >&6; } | |
2133 | else | |
2134 | # Is the header compilable? | |
2135 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 | |
2136 | $as_echo_n "checking $2 usability... " >&6; } | |
2137 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2138 | /* end confdefs.h. */ | |
2139 | $4 | |
2140 | #include <$2> | |
2141 | _ACEOF | |
2142 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
2143 | ac_header_compiler=yes | |
2144 | else | |
2145 | ac_header_compiler=no | |
2146 | fi | |
2147 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2148 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 | |
2149 | $as_echo "$ac_header_compiler" >&6; } | |
2150 | ||
2151 | # Is the header present? | |
2152 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 | |
2153 | $as_echo_n "checking $2 presence... " >&6; } | |
2154 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2155 | /* end confdefs.h. */ | |
2156 | #include <$2> | |
2157 | _ACEOF | |
2158 | if ac_fn_cxx_try_cpp "$LINENO"; then : | |
2159 | ac_header_preproc=yes | |
2160 | else | |
2161 | ac_header_preproc=no | |
2162 | fi | |
c3de29bd | 2163 | rm -f conftest.err conftest.i conftest.$ac_ext |
1ef0423a FCE |
2164 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 |
2165 | $as_echo "$ac_header_preproc" >&6; } | |
2166 | ||
2167 | # So? What about this header? | |
2168 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #(( | |
2169 | yes:no: ) | |
2170 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 | |
2171 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
2172 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
2173 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
2174 | ;; | |
2175 | no:yes:* ) | |
2176 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 | |
2177 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} | |
2178 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 | |
2179 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} | |
2180 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 | |
2181 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} | |
2182 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 | |
2183 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} | |
2184 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
2185 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
5d4aa1f5 | 2186 | ( $as_echo "## --------------------------------------- ## |
306dd4f8 | 2187 | ## Report this to systemtap@sourceware.org ## |
5d4aa1f5 | 2188 | ## --------------------------------------- ##" |
1ef0423a FCE |
2189 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
2190 | ;; | |
2191 | esac | |
2192 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
2193 | $as_echo_n "checking for $2... " >&6; } | |
c3de29bd | 2194 | if eval \${$3+:} false; then : |
1ef0423a FCE |
2195 | $as_echo_n "(cached) " >&6 |
2196 | else | |
2197 | eval "$3=\$ac_header_compiler" | |
2198 | fi | |
2199 | eval ac_res=\$$3 | |
2200 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2201 | $as_echo "$ac_res" >&6; } | |
2202 | fi | |
c3de29bd | 2203 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1ef0423a FCE |
2204 | |
2205 | } # ac_fn_cxx_check_header_mongrel | |
2206 | cat >config.log <<_ACEOF | |
2207 | This file contains any messages produced by compilers while | |
2208 | running configure, to aid debugging if configure makes a mistake. | |
2209 | ||
9a399080 | 2210 | It was created by systemtap $as_me 2.8, which was |
8eef2738 | 2211 | generated by GNU Autoconf 2.69. Invocation command line was |
1ef0423a FCE |
2212 | |
2213 | $ $0 $@ | |
2214 | ||
2215 | _ACEOF | |
2216 | exec 5>>config.log | |
2217 | { | |
2218 | cat <<_ASUNAME | |
2219 | ## --------- ## | |
2220 | ## Platform. ## | |
2221 | ## --------- ## | |
2222 | ||
2223 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
2224 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
2225 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
2226 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
2227 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
2228 | ||
2229 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
2230 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
2231 | ||
2232 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
2233 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
2234 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
2235 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` | |
2236 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
2237 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
2238 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
2239 | ||
2240 | _ASUNAME | |
2f1a1aea FCE |
2241 | |
2242 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2243 | for as_dir in $PATH | |
2244 | do | |
2245 | IFS=$as_save_IFS | |
2246 | test -z "$as_dir" && as_dir=. | |
1ef0423a FCE |
2247 | $as_echo "PATH: $as_dir" |
2248 | done | |
7fbd9d09 | 2249 | IFS=$as_save_IFS |
2f1a1aea FCE |
2250 | |
2251 | } >&5 | |
2252 | ||
2253 | cat >&5 <<_ACEOF | |
2254 | ||
2255 | ||
2256 | ## ----------- ## | |
2257 | ## Core tests. ## | |
2258 | ## ----------- ## | |
2259 | ||
2260 | _ACEOF | |
2261 | ||
2262 | ||
2263 | # Keep a trace of the command line. | |
2264 | # Strip out --no-create and --no-recursion so they do not pile up. | |
2265 | # Strip out --silent because we don't want to record it for future runs. | |
2266 | # Also quote any args containing shell meta-characters. | |
2267 | # Make two passes to allow for proper duplicate-argument suppression. | |
2268 | ac_configure_args= | |
2269 | ac_configure_args0= | |
2270 | ac_configure_args1= | |
2f1a1aea FCE |
2271 | ac_must_keep_next=false |
2272 | for ac_pass in 1 2 | |
2273 | do | |
2274 | for ac_arg | |
2275 | do | |
2276 | case $ac_arg in | |
2277 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
2278 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
2279 | | -silent | --silent | --silen | --sile | --sil) | |
2280 | continue ;; | |
7fbd9d09 | 2281 | *\'*) |
0710d850 | 2282 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
2f1a1aea FCE |
2283 | esac |
2284 | case $ac_pass in | |
1ef0423a | 2285 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; |
2f1a1aea | 2286 | 2) |
1ef0423a | 2287 | as_fn_append ac_configure_args1 " '$ac_arg'" |
2f1a1aea FCE |
2288 | if test $ac_must_keep_next = true; then |
2289 | ac_must_keep_next=false # Got value, back to normal. | |
2290 | else | |
2291 | case $ac_arg in | |
2292 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
2293 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
2294 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
2295 | | -with-* | --with-* | -without-* | --without-* | --x) | |
2296 | case "$ac_configure_args0 " in | |
2297 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
2298 | esac | |
2299 | ;; | |
2300 | -* ) ac_must_keep_next=true ;; | |
2301 | esac | |
2302 | fi | |
1ef0423a | 2303 | as_fn_append ac_configure_args " '$ac_arg'" |
2f1a1aea FCE |
2304 | ;; |
2305 | esac | |
2306 | done | |
2307 | done | |
1ef0423a FCE |
2308 | { ac_configure_args0=; unset ac_configure_args0;} |
2309 | { ac_configure_args1=; unset ac_configure_args1;} | |
2f1a1aea FCE |
2310 | |
2311 | # When interrupted or exit'd, cleanup temporary files, and complete | |
2312 | # config.log. We remove comments because anyway the quotes in there | |
2313 | # would cause problems or look ugly. | |
7fbd9d09 FCE |
2314 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
2315 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
2f1a1aea FCE |
2316 | trap 'exit_status=$? |
2317 | # Save into config.log some information that might help in debugging. | |
2318 | { | |
2319 | echo | |
2320 | ||
5d4aa1f5 | 2321 | $as_echo "## ---------------- ## |
2f1a1aea | 2322 | ## Cache variables. ## |
5d4aa1f5 | 2323 | ## ---------------- ##" |
2f1a1aea FCE |
2324 | echo |
2325 | # The following way of writing the cache mishandles newlines in values, | |
7fbd9d09 FCE |
2326 | ( |
2327 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
2328 | eval ac_val=\$$ac_var | |
2329 | case $ac_val in #( | |
2330 | *${as_nl}*) | |
2331 | case $ac_var in #( | |
1ef0423a | 2332 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
0710d850 | 2333 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
7fbd9d09 FCE |
2334 | esac |
2335 | case $ac_var in #( | |
2336 | _ | IFS | as_nl) ;; #( | |
0710d850 | 2337 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
1ef0423a | 2338 | *) { eval $ac_var=; unset $ac_var;} ;; |
7fbd9d09 FCE |
2339 | esac ;; |
2340 | esac | |
2341 | done | |
2f1a1aea | 2342 | (set) 2>&1 | |
7fbd9d09 FCE |
2343 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
2344 | *${as_nl}ac_space=\ *) | |
2f1a1aea | 2345 | sed -n \ |
7fbd9d09 FCE |
2346 | "s/'\''/'\''\\\\'\'''\''/g; |
2347 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
2348 | ;; #( | |
2f1a1aea | 2349 | *) |
7fbd9d09 | 2350 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
2f1a1aea | 2351 | ;; |
7fbd9d09 FCE |
2352 | esac | |
2353 | sort | |
2354 | ) | |
2f1a1aea FCE |
2355 | echo |
2356 | ||
5d4aa1f5 | 2357 | $as_echo "## ----------------- ## |
2f1a1aea | 2358 | ## Output variables. ## |
5d4aa1f5 | 2359 | ## ----------------- ##" |
2f1a1aea FCE |
2360 | echo |
2361 | for ac_var in $ac_subst_vars | |
2362 | do | |
7fbd9d09 FCE |
2363 | eval ac_val=\$$ac_var |
2364 | case $ac_val in | |
0710d850 | 2365 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
7fbd9d09 | 2366 | esac |
0710d850 | 2367 | $as_echo "$ac_var='\''$ac_val'\''" |
2f1a1aea FCE |
2368 | done | sort |
2369 | echo | |
2370 | ||
2371 | if test -n "$ac_subst_files"; then | |
5d4aa1f5 | 2372 | $as_echo "## ------------------- ## |
7fbd9d09 | 2373 | ## File substitutions. ## |
5d4aa1f5 | 2374 | ## ------------------- ##" |
2f1a1aea FCE |
2375 | echo |
2376 | for ac_var in $ac_subst_files | |
2377 | do | |
7fbd9d09 FCE |
2378 | eval ac_val=\$$ac_var |
2379 | case $ac_val in | |
0710d850 | 2380 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
7fbd9d09 | 2381 | esac |
0710d850 | 2382 | $as_echo "$ac_var='\''$ac_val'\''" |
2f1a1aea FCE |
2383 | done | sort |
2384 | echo | |
2385 | fi | |
2386 | ||
2387 | if test -s confdefs.h; then | |
5d4aa1f5 | 2388 | $as_echo "## ----------- ## |
2f1a1aea | 2389 | ## confdefs.h. ## |
5d4aa1f5 | 2390 | ## ----------- ##" |
2f1a1aea | 2391 | echo |
7fbd9d09 | 2392 | cat confdefs.h |
2f1a1aea FCE |
2393 | echo |
2394 | fi | |
2395 | test "$ac_signal" != 0 && | |
0710d850 DS |
2396 | $as_echo "$as_me: caught signal $ac_signal" |
2397 | $as_echo "$as_me: exit $exit_status" | |
2f1a1aea | 2398 | } >&5 |
7fbd9d09 FCE |
2399 | rm -f core *.core core.conftest.* && |
2400 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
2f1a1aea | 2401 | exit $exit_status |
7fbd9d09 | 2402 | ' 0 |
2f1a1aea | 2403 | for ac_signal in 1 2 13 15; do |
1ef0423a | 2404 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal |
2f1a1aea FCE |
2405 | done |
2406 | ac_signal=0 | |
2407 | ||
2408 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
7fbd9d09 | 2409 | rm -f -r conftest* confdefs.h |
2f1a1aea | 2410 | |
1ef0423a FCE |
2411 | $as_echo "/* confdefs.h */" > confdefs.h |
2412 | ||
2f1a1aea FCE |
2413 | # Predefined preprocessor variables. |
2414 | ||
2415 | cat >>confdefs.h <<_ACEOF | |
2416 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
2417 | _ACEOF | |
2418 | ||
2f1a1aea FCE |
2419 | cat >>confdefs.h <<_ACEOF |
2420 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
2421 | _ACEOF | |
2422 | ||
2f1a1aea FCE |
2423 | cat >>confdefs.h <<_ACEOF |
2424 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
2425 | _ACEOF | |
2426 | ||
2f1a1aea FCE |
2427 | cat >>confdefs.h <<_ACEOF |
2428 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
2429 | _ACEOF | |
2430 | ||
ec1a2239 | 2431 | cat >>confdefs.h <<_ACEOF |
5e5aee9f | 2432 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
ec1a2239 LB |
2433 | _ACEOF |
2434 | ||
1ef0423a FCE |
2435 | cat >>confdefs.h <<_ACEOF |
2436 | #define PACKAGE_URL "$PACKAGE_URL" | |
2437 | _ACEOF | |
2438 | ||
2f1a1aea FCE |
2439 | |
2440 | # Let the site file select an alternate cache file if it wants to. | |
0710d850 DS |
2441 | # Prefer an explicitly selected file to automatically selected ones. |
2442 | ac_site_file1=NONE | |
2443 | ac_site_file2=NONE | |
7fbd9d09 | 2444 | if test -n "$CONFIG_SITE"; then |
5d4aa1f5 FCE |
2445 | # We do not want a PATH search for config.site. |
2446 | case $CONFIG_SITE in #(( | |
2447 | -*) ac_site_file1=./$CONFIG_SITE;; | |
2448 | */*) ac_site_file1=$CONFIG_SITE;; | |
2449 | *) ac_site_file1=./$CONFIG_SITE;; | |
2450 | esac | |
7fbd9d09 | 2451 | elif test "x$prefix" != xNONE; then |
0710d850 DS |
2452 | ac_site_file1=$prefix/share/config.site |
2453 | ac_site_file2=$prefix/etc/config.site | |
7fbd9d09 | 2454 | else |
0710d850 DS |
2455 | ac_site_file1=$ac_default_prefix/share/config.site |
2456 | ac_site_file2=$ac_default_prefix/etc/config.site | |
818ba2bc | 2457 | fi |
0710d850 | 2458 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" |
7fbd9d09 | 2459 | do |
0710d850 | 2460 | test "x$ac_site_file" = xNONE && continue |
1ef0423a FCE |
2461 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then |
2462 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 | |
0710d850 | 2463 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} |
2f1a1aea | 2464 | sed 's/^/| /' "$ac_site_file" >&5 |
5d4aa1f5 FCE |
2465 | . "$ac_site_file" \ |
2466 | || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2467 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2468 | as_fn_error $? "failed to load site script $ac_site_file | |
2469 | See \`config.log' for more details" "$LINENO" 5; } | |
2f1a1aea FCE |
2470 | fi |
2471 | done | |
2472 | ||
2473 | if test -r "$cache_file"; then | |
1ef0423a FCE |
2474 | # Some versions of bash will fail to source /dev/null (special files |
2475 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. | |
2476 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then | |
2477 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 | |
0710d850 | 2478 | $as_echo "$as_me: loading cache $cache_file" >&6;} |
2f1a1aea | 2479 | case $cache_file in |
7fbd9d09 FCE |
2480 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
2481 | *) . "./$cache_file";; | |
2f1a1aea FCE |
2482 | esac |
2483 | fi | |
2484 | else | |
1ef0423a | 2485 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 |
0710d850 | 2486 | $as_echo "$as_me: creating cache $cache_file" >&6;} |
2f1a1aea FCE |
2487 | >$cache_file |
2488 | fi | |
2489 | ||
8f223b3e | 2490 | gt_needs="$gt_needs " |
2f1a1aea FCE |
2491 | # Check that the precious variables saved in the cache have kept the same |
2492 | # value. | |
2493 | ac_cache_corrupted=false | |
7fbd9d09 | 2494 | for ac_var in $ac_precious_vars; do |
2f1a1aea FCE |
2495 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
2496 | eval ac_new_set=\$ac_env_${ac_var}_set | |
7fbd9d09 FCE |
2497 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
2498 | eval ac_new_val=\$ac_env_${ac_var}_value | |
2f1a1aea FCE |
2499 | case $ac_old_set,$ac_new_set in |
2500 | set,) | |
1ef0423a | 2501 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
0710d850 | 2502 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
2f1a1aea FCE |
2503 | ac_cache_corrupted=: ;; |
2504 | ,set) | |
1ef0423a | 2505 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 |
0710d850 | 2506 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
2f1a1aea FCE |
2507 | ac_cache_corrupted=: ;; |
2508 | ,);; | |
2509 | *) | |
2510 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
0710d850 DS |
2511 | # differences in whitespace do not lead to failure. |
2512 | ac_old_val_w=`echo x $ac_old_val` | |
2513 | ac_new_val_w=`echo x $ac_new_val` | |
2514 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | |
1ef0423a | 2515 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 |
0710d850 DS |
2516 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
2517 | ac_cache_corrupted=: | |
2518 | else | |
1ef0423a | 2519 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 |
0710d850 DS |
2520 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} |
2521 | eval $ac_var=\$ac_old_val | |
2522 | fi | |
1ef0423a | 2523 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 |
0710d850 | 2524 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} |
1ef0423a | 2525 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 |
0710d850 | 2526 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} |
2f1a1aea FCE |
2527 | fi;; |
2528 | esac | |
2529 | # Pass precious variables to config.status. | |
2530 | if test "$ac_new_set" = set; then | |
2531 | case $ac_new_val in | |
0710d850 | 2532 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
4a3c19da EM |
2533 | *) ac_arg=$ac_var=$ac_new_val ;; |
2534 | esac | |
2535 | case " $ac_configure_args " in | |
2536 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
1ef0423a | 2537 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; |
4a3c19da EM |
2538 | esac |
2539 | fi | |
2540 | done | |
2541 | if $ac_cache_corrupted; then | |
1ef0423a | 2542 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
0710d850 | 2543 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
1ef0423a | 2544 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 |
0710d850 | 2545 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
5d4aa1f5 | 2546 | as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 |
4a3c19da | 2547 | fi |
1ef0423a FCE |
2548 | ## -------------------- ## |
2549 | ## Main body of script. ## | |
2550 | ## -------------------- ## | |
2f1a1aea | 2551 | |
7fbd9d09 FCE |
2552 | ac_ext=c |
2553 | ac_cpp='$CPP $CPPFLAGS' | |
2554 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2555 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2556 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2f1a1aea FCE |
2557 | |
2558 | ||
2559 | ||
2f1a1aea | 2560 | ac_aux_dir= |
412e1bf7 | 2561 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do |
5d4aa1f5 FCE |
2562 | if test -f "$ac_dir/install-sh"; then |
2563 | ac_aux_dir=$ac_dir | |
2564 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
2565 | break | |
2566 | elif test -f "$ac_dir/install.sh"; then | |
2567 | ac_aux_dir=$ac_dir | |
2568 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
2569 | break | |
2570 | elif test -f "$ac_dir/shtool"; then | |
2571 | ac_aux_dir=$ac_dir | |
2572 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
2573 | break | |
2574 | fi | |
2f1a1aea FCE |
2575 | done |
2576 | if test -z "$ac_aux_dir"; then | |
5d4aa1f5 | 2577 | as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 |
2f1a1aea | 2578 | fi |
7fbd9d09 FCE |
2579 | |
2580 | # These three variables are undocumented and unsupported, | |
2581 | # and are intended to be withdrawn in a future Autoconf release. | |
2582 | # They can cause serious problems if a builder's source tree is in a directory | |
2583 | # whose full name contains unusual characters. | |
2584 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
2585 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
2586 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
2587 | ||
2f1a1aea | 2588 | |
2689a171 SM |
2589 | # Make sure we can run config.sub. |
2590 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || | |
2591 | as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 | |
2592 | ||
2593 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 | |
2594 | $as_echo_n "checking build system type... " >&6; } | |
2595 | if ${ac_cv_build+:} false; then : | |
2596 | $as_echo_n "(cached) " >&6 | |
2597 | else | |
2598 | ac_build_alias=$build_alias | |
2599 | test "x$ac_build_alias" = x && | |
2600 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | |
2601 | test "x$ac_build_alias" = x && | |
2602 | as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 | |
2603 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || | |
2604 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 | |
2605 | ||
2606 | fi | |
2607 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 | |
2608 | $as_echo "$ac_cv_build" >&6; } | |
2609 | case $ac_cv_build in | |
2610 | *-*-*) ;; | |
2611 | *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; | |
2612 | esac | |
2613 | build=$ac_cv_build | |
2614 | ac_save_IFS=$IFS; IFS='-' | |
2615 | set x $ac_cv_build | |
2616 | shift | |
2617 | build_cpu=$1 | |
2618 | build_vendor=$2 | |
2619 | shift; shift | |
2620 | # Remember, the first character of IFS is used to create $*, | |
2621 | # except with old shells: | |
2622 | build_os=$* | |
2623 | IFS=$ac_save_IFS | |
2624 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | |
2625 | ||
2626 | ||
2627 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 | |
2628 | $as_echo_n "checking host system type... " >&6; } | |
2629 | if ${ac_cv_host+:} false; then : | |
2630 | $as_echo_n "(cached) " >&6 | |
2631 | else | |
2632 | if test "x$host_alias" = x; then | |
2633 | ac_cv_host=$ac_cv_build | |
2634 | else | |
2635 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || | |
2636 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 | |
2637 | fi | |
2638 | ||
2639 | fi | |
2640 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 | |
2641 | $as_echo "$ac_cv_host" >&6; } | |
2642 | case $ac_cv_host in | |
2643 | *-*-*) ;; | |
2644 | *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; | |
2645 | esac | |
2646 | host=$ac_cv_host | |
2647 | ac_save_IFS=$IFS; IFS='-' | |
2648 | set x $ac_cv_host | |
2649 | shift | |
2650 | host_cpu=$1 | |
2651 | host_vendor=$2 | |
2652 | shift; shift | |
2653 | # Remember, the first character of IFS is used to create $*, | |
2654 | # except with old shells: | |
2655 | host_os=$* | |
2656 | IFS=$ac_save_IFS | |
2657 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | |
2658 | ||
2659 | ||
2660 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 | |
2661 | $as_echo_n "checking target system type... " >&6; } | |
2662 | if ${ac_cv_target+:} false; then : | |
2663 | $as_echo_n "(cached) " >&6 | |
2664 | else | |
2665 | if test "x$target_alias" = x; then | |
2666 | ac_cv_target=$ac_cv_host | |
2667 | else | |
2668 | ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || | |
2669 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 | |
2670 | fi | |
2671 | ||
2672 | fi | |
2673 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 | |
2674 | $as_echo "$ac_cv_target" >&6; } | |
2675 | case $ac_cv_target in | |
2676 | *-*-*) ;; | |
2677 | *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;; | |
2678 | esac | |
2679 | target=$ac_cv_target | |
2680 | ac_save_IFS=$IFS; IFS='-' | |
2681 | set x $ac_cv_target | |
2682 | shift | |
2683 | target_cpu=$1 | |
2684 | target_vendor=$2 | |
2685 | shift; shift | |
2686 | # Remember, the first character of IFS is used to create $*, | |
2687 | # except with old shells: | |
2688 | target_os=$* | |
2689 | IFS=$ac_save_IFS | |
2690 | case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac | |
2691 | ||
2692 | ||
2693 | # The aliases save the names the user supplied, while $host etc. | |
2694 | # will get canonicalized. | |
2695 | test -n "$target_alias" && | |
2696 | test "$program_prefix$program_suffix$program_transform_name" = \ | |
2697 | NONENONEs,x,x, && | |
2698 | program_prefix=${target_alias}- | |
2699 | ||
2700 | ||
b0c670f4 | 2701 | am__api_version='1.14' |
2689a171 | 2702 | |
2f1a1aea FCE |
2703 | # Find a good install program. We prefer a C program (faster), |
2704 | # so one script is as good as another. But avoid the broken or | |
2705 | # incompatible versions: | |
2706 | # SysV /etc/install, /usr/sbin/install | |
2707 | # SunOS /usr/etc/install | |
2708 | # IRIX /sbin/install | |
2709 | # AIX /bin/install | |
2710 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
2711 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
2712 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
2713 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
2714 | # OS/2's system install, which has a completely different semantic | |
2715 | # ./install, which can be erroneously created by make from ./install.sh. | |
0710d850 | 2716 | # Reject install programs that cannot install multiple files. |
1ef0423a | 2717 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 |
0710d850 | 2718 | $as_echo_n "checking for a BSD-compatible install... " >&6; } |
2f1a1aea | 2719 | if test -z "$INSTALL"; then |
c3de29bd | 2720 | if ${ac_cv_path_install+:} false; then : |
0710d850 | 2721 | $as_echo_n "(cached) " >&6 |
2f1a1aea FCE |
2722 | else |
2723 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2724 | for as_dir in $PATH | |
2725 | do | |
2726 | IFS=$as_save_IFS | |
2727 | test -z "$as_dir" && as_dir=. | |
1ef0423a FCE |
2728 | # Account for people who put trailing slashes in PATH elements. |
2729 | case $as_dir/ in #(( | |
2730 | ./ | .// | /[cC]/* | \ | |
2f1a1aea | 2731 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
1ef0423a | 2732 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ |
2f1a1aea FCE |
2733 | /usr/ucb/* ) ;; |
2734 | *) | |
2735 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
2736 | # Don't use installbsd from OSF since it installs stuff as root | |
2737 | # by default. | |
2738 | for ac_prog in ginstall scoinst install; do | |
2739 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8eef2738 | 2740 | if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
2f1a1aea FCE |
2741 | if test $ac_prog = install && |
2742 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2743 | # AIX install. It has an incompatible calling convention. | |
2744 | : | |
2745 | elif test $ac_prog = install && | |
2746 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2747 | # program-specific install script used by HP pwplus--don't use. | |
2748 | : | |
2749 | else | |
0710d850 DS |
2750 | rm -rf conftest.one conftest.two conftest.dir |
2751 | echo one > conftest.one | |
2752 | echo two > conftest.two | |
2753 | mkdir conftest.dir | |
2754 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | |
2755 | test -s conftest.one && test -s conftest.two && | |
2756 | test -s conftest.dir/conftest.one && | |
2757 | test -s conftest.dir/conftest.two | |
2758 | then | |
2759 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
2760 | break 3 | |
2761 | fi | |
2f1a1aea FCE |
2762 | fi |
2763 | fi | |
2764 | done | |
2765 | done | |
2766 | ;; | |
2767 | esac | |
0710d850 | 2768 | |
1ef0423a | 2769 | done |
7fbd9d09 | 2770 | IFS=$as_save_IFS |
2f1a1aea | 2771 | |
0710d850 | 2772 | rm -rf conftest.one conftest.two conftest.dir |
2f1a1aea FCE |
2773 | |
2774 | fi | |
2775 | if test "${ac_cv_path_install+set}" = set; then | |
2776 | INSTALL=$ac_cv_path_install | |
2777 | else | |
7fbd9d09 FCE |
2778 | # As a last resort, use the slow shell script. Don't cache a |
2779 | # value for INSTALL within a source directory, because that will | |
2f1a1aea | 2780 | # break other packages using the cache if that directory is |
7fbd9d09 | 2781 | # removed, or if the value is a relative name. |
2f1a1aea FCE |
2782 | INSTALL=$ac_install_sh |
2783 | fi | |
2784 | fi | |
1ef0423a | 2785 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 |
0710d850 | 2786 | $as_echo "$INSTALL" >&6; } |
2f1a1aea FCE |
2787 | |
2788 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
2789 | # It thinks the first close brace ends the variable substitution. | |
2790 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
2791 | ||
2792 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
2793 | ||
2794 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
2795 | ||
1ef0423a | 2796 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 |
0710d850 | 2797 | $as_echo_n "checking whether build environment is sane... " >&6; } |
0710d850 DS |
2798 | # Reject unsafe characters in $srcdir or the absolute working directory |
2799 | # name. Accept space and tab only in the latter. | |
2800 | am_lf=' | |
2801 | ' | |
2802 | case `pwd` in | |
2803 | *[\\\"\#\$\&\'\`$am_lf]*) | |
5d4aa1f5 | 2804 | as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; |
0710d850 DS |
2805 | esac |
2806 | case $srcdir in | |
2807 | *[\\\"\#\$\&\'\`$am_lf\ \ ]*) | |
8eef2738 | 2808 | as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; |
0710d850 DS |
2809 | esac |
2810 | ||
8eef2738 | 2811 | # Do 'set' in a subshell so we don't clobber the current shell's |
2f1a1aea FCE |
2812 | # arguments. Must try -L first in case configure is actually a |
2813 | # symlink; some systems play weird games with the mod time of symlinks | |
2814 | # (eg FreeBSD returns the mod time of the symlink's containing | |
2815 | # directory). | |
2816 | if ( | |
8eef2738 LB |
2817 | am_has_slept=no |
2818 | for am_try in 1 2; do | |
2819 | echo "timestamp, slept: $am_has_slept" > conftest.file | |
2820 | set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` | |
2821 | if test "$*" = "X"; then | |
2822 | # -L didn't work. | |
2823 | set X `ls -t "$srcdir/configure" conftest.file` | |
2824 | fi | |
2825 | if test "$*" != "X $srcdir/configure conftest.file" \ | |
2826 | && test "$*" != "X conftest.file $srcdir/configure"; then | |
2827 | ||
2828 | # If neither matched, then we have a broken ls. This can happen | |
2829 | # if, for instance, CONFIG_SHELL is bash and it inherits a | |
2830 | # broken ls alias from the environment. This has actually | |
2831 | # happened. Such a system could not be considered "sane". | |
2832 | as_fn_error $? "ls -t appears to fail. Make sure there is not a broken | |
2833 | alias in your environment" "$LINENO" 5 | |
2834 | fi | |
2835 | if test "$2" = conftest.file || test $am_try -eq 2; then | |
2836 | break | |
2837 | fi | |
2838 | # Just in case. | |
2839 | sleep 1 | |
2840 | am_has_slept=yes | |
2841 | done | |
2f1a1aea FCE |
2842 | test "$2" = conftest.file |
2843 | ) | |
2844 | then | |
2845 | # Ok. | |
2846 | : | |
2847 | else | |
5d4aa1f5 | 2848 | as_fn_error $? "newly created file is older than distributed files! |
1ef0423a | 2849 | Check your system clock" "$LINENO" 5 |
2f1a1aea | 2850 | fi |
1ef0423a | 2851 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
0710d850 | 2852 | $as_echo "yes" >&6; } |
8eef2738 LB |
2853 | # If we didn't sleep, we still need to ensure time stamps of config.status and |
2854 | # generated files are strictly newer. | |
2855 | am_sleep_pid= | |
2856 | if grep 'slept: no' conftest.file >/dev/null 2>&1; then | |
2857 | ( sleep 1 ) & | |
2858 | am_sleep_pid=$! | |
2859 | fi | |
2860 | ||
2861 | rm -f conftest.file | |
2862 | ||
2f1a1aea | 2863 | test "$program_prefix" != NONE && |
7fbd9d09 | 2864 | program_transform_name="s&^&$program_prefix&;$program_transform_name" |
2f1a1aea FCE |
2865 | # Use a double $ so make ignores it. |
2866 | test "$program_suffix" != NONE && | |
7fbd9d09 | 2867 | program_transform_name="s&\$&$program_suffix&;$program_transform_name" |
0710d850 | 2868 | # Double any \ or $. |
2f1a1aea | 2869 | # By default was `s,x,x', remove it if useless. |
0710d850 DS |
2870 | ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' |
2871 | program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` | |
2f1a1aea | 2872 | |
b0c670f4 FCE |
2873 | # expand $ac_aux_dir to an absolute path |
2874 | am_aux_dir=`cd $ac_aux_dir && pwd` | |
2f1a1aea | 2875 | |
0710d850 DS |
2876 | if test x"${MISSING+set}" != xset; then |
2877 | case $am_aux_dir in | |
2878 | *\ * | *\ *) | |
2879 | MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; | |
2880 | *) | |
2881 | MISSING="\${SHELL} $am_aux_dir/missing" ;; | |
2882 | esac | |
2883 | fi | |
2f1a1aea | 2884 | # Use eval to expand $SHELL |
d9e6d90b WC |
2885 | if eval "$MISSING --is-lightweight"; then |
2886 | am_missing_run="$MISSING " | |
2f1a1aea FCE |
2887 | else |
2888 | am_missing_run= | |
8eef2738 LB |
2889 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 |
2890 | $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} | |
0710d850 DS |
2891 | fi |
2892 | ||
b0c670f4 | 2893 | if test x"${install_sh}" != xset; then |
0710d850 DS |
2894 | case $am_aux_dir in |
2895 | *\ * | *\ *) | |
2896 | install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; | |
2897 | *) | |
2898 | install_sh="\${SHELL} $am_aux_dir/install-sh" | |
2899 | esac | |
8d9d8fe1 DB |
2900 | fi |
2901 | ||
8eef2738 LB |
2902 | # Installed binaries are usually stripped using 'strip' when the user |
2903 | # run "make install-strip". However 'strip' might not be the right | |
0710d850 | 2904 | # tool to use in cross-compilation environments, therefore Automake |
8eef2738 | 2905 | # will honor the 'STRIP' environment variable to overrule this program. |
0710d850 DS |
2906 | if test "$cross_compiling" != no; then |
2907 | if test -n "$ac_tool_prefix"; then | |
2908 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
2909 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
1ef0423a | 2910 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
0710d850 | 2911 | $as_echo_n "checking for $ac_word... " >&6; } |
c3de29bd | 2912 | if ${ac_cv_prog_STRIP+:} false; then : |
0710d850 DS |
2913 | $as_echo_n "(cached) " >&6 |
2914 | else | |
2915 | if test -n "$STRIP"; then | |
2916 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
2917 | else | |
2918 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2919 | for as_dir in $PATH | |
2920 | do | |
2921 | IFS=$as_save_IFS | |
2922 | test -z "$as_dir" && as_dir=. | |
1ef0423a | 2923 | for ac_exec_ext in '' $ac_executable_extensions; do |
8eef2738 | 2924 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
0710d850 | 2925 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
1ef0423a | 2926 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
0710d850 DS |
2927 | break 2 |
2928 | fi | |
2929 | done | |
1ef0423a | 2930 | done |
0710d850 DS |
2931 | IFS=$as_save_IFS |
2932 | ||
2933 | fi | |
2934 | fi | |
2935 | STRIP=$ac_cv_prog_STRIP | |
2936 | if test -n "$STRIP"; then | |
1ef0423a | 2937 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
0710d850 DS |
2938 | $as_echo "$STRIP" >&6; } |
2939 | else | |
1ef0423a | 2940 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
0710d850 DS |
2941 | $as_echo "no" >&6; } |
2942 | fi | |
2943 | ||
2944 | ||
2945 | fi | |
2946 | if test -z "$ac_cv_prog_STRIP"; then | |
2947 | ac_ct_STRIP=$STRIP | |
2948 | # Extract the first word of "strip", so it can be a program name with args. | |
2949 | set dummy strip; ac_word=$2 | |
1ef0423a | 2950 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
0710d850 | 2951 | $as_echo_n "checking for $ac_word... " >&6; } |
c3de29bd | 2952 | if ${ac_cv_prog_ac_ct_STRIP+:} false; then : |
0710d850 DS |
2953 | $as_echo_n "(cached) " >&6 |
2954 | else | |
2955 | if test -n "$ac_ct_STRIP"; then | |
2956 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
2957 | else | |
2958 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2959 | for as_dir in $PATH | |
2960 | do | |
2961 | IFS=$as_save_IFS | |
2962 | test -z "$as_dir" && as_dir=. | |
1ef0423a | 2963 | for ac_exec_ext in '' $ac_executable_extensions; do |
8eef2738 | 2964 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
0710d850 | 2965 | ac_cv_prog_ac_ct_STRIP="strip" |
1ef0423a | 2966 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
0710d850 DS |
2967 | break 2 |
2968 | fi | |
2969 | done | |
1ef0423a | 2970 | done |
0710d850 DS |
2971 | IFS=$as_save_IFS |
2972 | ||
2973 | fi | |
2974 | fi | |
2975 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
2976 | if test -n "$ac_ct_STRIP"; then | |
1ef0423a | 2977 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 |
0710d850 DS |
2978 | $as_echo "$ac_ct_STRIP" >&6; } |
2979 | else | |
1ef0423a | 2980 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
0710d850 DS |
2981 | $as_echo "no" >&6; } |
2982 | fi | |
2983 | ||
2984 | if test "x$ac_ct_STRIP" = x; then | |
2985 | STRIP=":" | |
2986 | else | |
2987 | case $cross_compiling:$ac_tool_warned in | |
2988 | yes:) | |
1ef0423a | 2989 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
0710d850 DS |
2990 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
2991 | ac_tool_warned=yes ;; | |
2992 | esac | |
2993 | STRIP=$ac_ct_STRIP | |
2994 | fi | |
2995 | else | |
2996 | STRIP="$ac_cv_prog_STRIP" | |
2997 | fi | |
2998 | ||
2999 | fi | |
3000 | INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" | |
3001 | ||
1ef0423a | 3002 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 |
0710d850 | 3003 | $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } |
7fbd9d09 | 3004 | if test -z "$MKDIR_P"; then |
c3de29bd | 3005 | if ${ac_cv_path_mkdir+:} false; then : |
0710d850 | 3006 | $as_echo_n "(cached) " >&6 |
7fbd9d09 FCE |
3007 | else |
3008 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3009 | for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin | |
3010 | do | |
3011 | IFS=$as_save_IFS | |
3012 | test -z "$as_dir" && as_dir=. | |
1ef0423a | 3013 | for ac_prog in mkdir gmkdir; do |
7fbd9d09 | 3014 | for ac_exec_ext in '' $ac_executable_extensions; do |
8eef2738 | 3015 | as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue |
7fbd9d09 FCE |
3016 | case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( |
3017 | 'mkdir (GNU coreutils) '* | \ | |
3018 | 'mkdir (coreutils) '* | \ | |
3019 | 'mkdir (fileutils) '4.1*) | |
3020 | ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext | |
3021 | break 3;; | |
3022 | esac | |
3023 | done | |
3024 | done | |
1ef0423a | 3025 | done |
7fbd9d09 FCE |
3026 | IFS=$as_save_IFS |
3027 | ||
3028 | fi | |
3029 | ||
1ef0423a | 3030 | test -d ./--version && rmdir ./--version |
7fbd9d09 FCE |
3031 | if test "${ac_cv_path_mkdir+set}" = set; then |
3032 | MKDIR_P="$ac_cv_path_mkdir -p" | |
2f1a1aea | 3033 | else |
7fbd9d09 FCE |
3034 | # As a last resort, use the slow shell script. Don't cache a |
3035 | # value for MKDIR_P within a source directory, because that will | |
3036 | # break other packages using the cache if that directory is | |
3037 | # removed, or if the value is a relative name. | |
7fbd9d09 | 3038 | MKDIR_P="$ac_install_sh -d" |
2f1a1aea FCE |
3039 | fi |
3040 | fi | |
1ef0423a | 3041 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 |
0710d850 | 3042 | $as_echo "$MKDIR_P" >&6; } |
7fbd9d09 | 3043 | |
2f1a1aea FCE |
3044 | for ac_prog in gawk mawk nawk awk |
3045 | do | |
3046 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
3047 | set dummy $ac_prog; ac_word=$2 | |
1ef0423a | 3048 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
0710d850 | 3049 | $as_echo_n "checking for $ac_word... " >&6; } |
c3de29bd | 3050 | if ${ac_cv_prog_AWK+:} false; then : |
0710d850 | 3051 | $as_echo_n "(cached) " >&6 |
2f1a1aea FCE |
3052 | else |
3053 | if test -n "$AWK"; then | |
3054 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
3055 | else | |
3056 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3057 | for as_dir in $PATH | |
3058 | do | |
3059 | IFS=$as_save_IFS | |
3060 | test -z "$as_dir" && as_dir=. | |
1ef0423a | 3061 | for ac_exec_ext in '' $ac_executable_extensions; do |
8eef2738 | 3062 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
2f1a1aea | 3063 | ac_cv_prog_AWK="$ac_prog" |
1ef0423a | 3064 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2f1a1aea FCE |
3065 | break 2 |
3066 | fi | |
3067 | done | |
1ef0423a | 3068 | done |
7fbd9d09 | 3069 | IFS=$as_save_IFS |
2f1a1aea FCE |
3070 | |
3071 | fi | |
3072 | fi | |
3073 | AWK=$ac_cv_prog_AWK | |
3074 | if test -n "$AWK"; then | |
1ef0423a | 3075 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 |
0710d850 | 3076 | $as_echo "$AWK" >&6; } |
2f1a1aea | 3077 | else |
1ef0423a | 3078 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
0710d850 | 3079 | $as_echo "no" >&6; } |
2f1a1aea FCE |
3080 | fi |
3081 | ||
7fbd9d09 | 3082 | |
2f1a1aea FCE |
3083 | test -n "$AWK" && break |
3084 | done | |
3085 | ||
1ef0423a | 3086 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
0710d850 DS |
3087 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } |
3088 | set x ${MAKE-make} | |
3089 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | |
c3de29bd | 3090 | if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : |
0710d850 | 3091 | $as_echo_n "(cached) " >&6 |
2f1a1aea FCE |
3092 | else |
3093 | cat >conftest.make <<\_ACEOF | |
412e1bf7 FCE |
3094 | SHELL = /bin/sh |
3095 | all: | |
3096 | @echo '@@@%%%=$(MAKE)=@@@%%%' | |
3097 | _ACEOF | |
5d4aa1f5 | 3098 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. |
412e1bf7 FCE |
3099 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
3100 | *@@@%%%=?*=@@@%%%*) | |
3101 | eval ac_cv_prog_make_${ac_make}_set=yes;; | |
3102 | *) | |
3103 | eval ac_cv_prog_make_${ac_make}_set=no;; | |
3104 | esac | |
3105 | rm -f conftest.make | |
4a3c19da | 3106 | fi |
412e1bf7 | 3107 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
1ef0423a | 3108 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
0710d850 | 3109 | $as_echo "yes" >&6; } |
412e1bf7 | 3110 | SET_MAKE= |
4a3c19da | 3111 | else |
1ef0423a | 3112 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
0710d850 | 3113 | $as_echo "no" >&6; } |
412e1bf7 | 3114 | SET_MAKE="MAKE=${MAKE-make}" |
2f1a1aea FCE |
3115 | fi |
3116 | ||
412e1bf7 FCE |
3117 | rm -rf .tst 2>/dev/null |
3118 | mkdir .tst 2>/dev/null | |
3119 | if test -d .tst; then | |
3120 | am__leading_dot=. | |
4a3c19da | 3121 | else |
412e1bf7 | 3122 | am__leading_dot=_ |
2f1a1aea | 3123 | fi |
412e1bf7 | 3124 | rmdir .tst 2>/dev/null |
2f1a1aea | 3125 | |
d9e6d90b WC |
3126 | # Check whether --enable-silent-rules was given. |
3127 | if test "${enable_silent_rules+set}" = set; then : | |
3128 | enableval=$enable_silent_rules; | |
3129 | fi | |
3130 | ||
3131 | case $enable_silent_rules in # ((( | |
3132 | yes) AM_DEFAULT_VERBOSITY=0;; | |
3133 | no) AM_DEFAULT_VERBOSITY=1;; | |
3134 | *) AM_DEFAULT_VERBOSITY=1;; | |
3135 | esac | |
3136 | am_make=${MAKE-make} | |
3137 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 | |
3138 | $as_echo_n "checking whether $am_make supports nested variables... " >&6; } | |
3139 | if ${am_cv_make_support_nested_variables+:} false; then : | |
3140 | $as_echo_n "(cached) " >&6 | |
3141 | else | |
3142 | if $as_echo 'TRUE=$(BAR$(V)) | |
3143 | BAR0=false | |
3144 | BAR1=true | |
3145 | V=1 | |
3146 | am__doit: | |
3147 | @$(TRUE) | |
3148 | .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then | |
3149 | am_cv_make_support_nested_variables=yes | |
3150 | else | |
3151 | am_cv_make_support_nested_variables=no | |
3152 | fi | |
3153 | fi | |
3154 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 | |
3155 | $as_echo "$am_cv_make_support_nested_variables" >&6; } | |
3156 | if test $am_cv_make_support_nested_variables = yes; then | |
3157 | AM_V='$(V)' | |
3158 | AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' | |
3159 | else | |
3160 | AM_V=$AM_DEFAULT_VERBOSITY | |
3161 | AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY | |
3162 | fi | |
3163 | AM_BACKSLASH='\' | |
3164 | ||
412e1bf7 FCE |
3165 | if test "`cd $srcdir && pwd`" != "`pwd`"; then |
3166 | # Use -I$(srcdir) only when $(srcdir) != ., so that make's output | |
3167 | # is not polluted with repeated "-I." | |
3168 | am__isrc=' -I$(srcdir)' | |
3169 | # test to see if srcdir already configured | |
3170 | if test -f $srcdir/config.status; then | |
5d4aa1f5 | 3171 | as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 |
412e1bf7 | 3172 | fi |
4a3c19da | 3173 | fi |
412e1bf7 FCE |
3174 | |
3175 | # test whether we have cygpath | |
3176 | if test -z "$CYGPATH_W"; then | |
3177 | if (cygpath --version) >/dev/null 2>/dev/null; then | |
3178 | CYGPATH_W='cygpath -w' | |
3179 | else | |
3180 | CYGPATH_W=echo | |
3181 | fi | |
3182 | fi | |
3183 | ||
3184 | ||
3185 | # Define the identity of the package. | |
3186 | PACKAGE='systemtap' | |
9a399080 | 3187 | VERSION='2.8' |
412e1bf7 FCE |
3188 | |
3189 | ||
3190 | cat >>confdefs.h <<_ACEOF | |
3191 | #define PACKAGE "$PACKAGE" | |
3192 | _ACEOF | |
3193 | ||
3194 | ||
3195 | cat >>confdefs.h <<_ACEOF | |
3196 | #define VERSION "$VERSION" | |
3197 | _ACEOF | |
3198 | ||
3199 | # Some tools Automake needs. | |
3200 | ||
3201 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} | |
3202 | ||
3203 | ||
3204 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} | |
3205 | ||
3206 | ||
0710d850 | 3207 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} |
31f9baea | 3208 | |
0710d850 DS |
3209 | |
3210 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} | |
3211 | ||
3212 | ||
3213 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} | |
2f1a1aea | 3214 | |
8eef2738 LB |
3215 | # For better backward compatibility. To be removed once Automake 1.9.x |
3216 | # dies out for good. For more background, see: | |
3217 | # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> | |
3218 | # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> | |
3219 | mkdir_p='$(MKDIR_P)' | |
3220 | ||
b0c670f4 FCE |
3221 | # We need awk for the "check" target. The system "awk" is bad on |
3222 | # some platforms. | |
c66be968 JS |
3223 | # Always define AMTAR for backward compatibility. Yes, it's still used |
3224 | # in the wild :-( We should find a proper way to deprecate it ... | |
3225 | AMTAR='$${TAR-tar}' | |
2f1a1aea | 3226 | |
d9e6d90b WC |
3227 | |
3228 | # We'll loop over all known methods to create a tar archive until one works. | |
3229 | _am_tools='gnutar pax cpio none' | |
3230 | ||
c66be968 | 3231 | am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' |
2f1a1aea FCE |
3232 | |
3233 | ||
3234 | ||
3235 | ||
3236 | ||
0710d850 | 3237 | |
46c282e4 FCE |
3238 | # POSIX will say in a future version that running "rm -f" with no argument |
3239 | # is OK; and we want to be able to make that assumption in our Makefile | |
3240 | # recipes. So use an aggressive probe to check that the usage we want is | |
3241 | # actually supported "in the wild" to an acceptable degree. | |
3242 | # See automake bug#10828. | |
3243 | # To make any issue more visible, cause the running configure to be aborted | |
3244 | # by default if the 'rm' program in use doesn't match our expectations; the | |
3245 | # user can still override this though. | |
3246 | if rm -f && rm -fr && rm -rf; then : OK; else | |
3247 | cat >&2 <<'END' | |
3248 | Oops! | |
3249 | ||
3250 | Your 'rm' program seems unable to run without file operands specified | |
3251 | on the command line, even when the '-f' option is present. This is contrary | |
3252 | to the behaviour of most rm programs out there, and not conforming with | |
3253 | the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> | |
3254 | ||
3255 | Please tell bug-automake@gnu.org about your system, including the value | |
3256 | of your $PATH and any error possibly output before this message. This | |
3257 | can help us improve future automake versions. | |
3258 | ||
3259 | END | |
3260 | if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then | |
3261 | echo 'Configuration will proceed anyway, since you have set the' >&2 | |
3262 | echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 | |
3263 | echo >&2 | |
3264 | else | |
3265 | cat >&2 <<'END' | |
3266 | Aborting the configuration process, to ensure you take notice of the issue. | |
3267 | ||
3268 | You can download and install GNU coreutils to get an 'rm' implementation | |
3269 | that behaves properly: <http://www.gnu.org/software/coreutils/>. | |
3270 | ||
3271 | If you want to complete the configuration process using your problematic | |
3272 | 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM | |
3273 | to "yes", and re-run configure. | |
3274 | ||
3275 | END | |
3276 | as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 | |
3277 | fi | |
3278 | fi | |
d9e6d90b | 3279 | |
1ef0423a | 3280 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 |
0710d850 | 3281 | $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } |
7fbd9d09 | 3282 | # Check whether --enable-maintainer-mode was given. |
1ef0423a | 3283 | if test "${enable_maintainer_mode+set}" = set; then : |
7fbd9d09 | 3284 | enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval |
2f1a1aea FCE |
3285 | else |
3286 | USE_MAINTAINER_MODE=no | |
7fbd9d09 | 3287 | fi |
2f1a1aea | 3288 | |
1ef0423a | 3289 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 |
0710d850 | 3290 | $as_echo "$USE_MAINTAINER_MODE" >&6; } |
7fbd9d09 | 3291 | if test $USE_MAINTAINER_MODE = yes; then |
2f1a1aea FCE |
3292 | MAINTAINER_MODE_TRUE= |
3293 | MAINTAINER_MODE_FALSE='#' | |
3294 | else | |
3295 | MAINTAINER_MODE_TRUE='#' | |
3296 | MAINTAINER_MODE_FALSE= | |
3297 | fi | |
3298 | ||
3299 | MAINT=$MAINTAINER_MODE_TRUE | |
3300 | ||
3301 | ||
3302 | ||
0710d850 | 3303 | # Check whether --enable-silent-rules was given. |
1ef0423a | 3304 | if test "${enable_silent_rules+set}" = set; then : |
0710d850 DS |
3305 | enableval=$enable_silent_rules; |
3306 | fi | |
3307 | ||
8eef2738 LB |
3308 | case $enable_silent_rules in # ((( |
3309 | yes) AM_DEFAULT_VERBOSITY=0;; | |
3310 | no) AM_DEFAULT_VERBOSITY=1;; | |
3311 | *) AM_DEFAULT_VERBOSITY=0;; | |
0710d850 | 3312 | esac |
c66be968 JS |
3313 | am_make=${MAKE-make} |
3314 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 | |
3315 | $as_echo_n "checking whether $am_make supports nested variables... " >&6; } | |
3316 | if ${am_cv_make_support_nested_variables+:} false; then : | |
3317 | $as_echo_n "(cached) " >&6 | |
3318 | else | |
3319 | if $as_echo 'TRUE=$(BAR$(V)) | |
3320 | BAR0=false | |
3321 | BAR1=true | |
3322 | V=1 | |
3323 | am__doit: | |
3324 | @$(TRUE) | |
3325 | .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then | |
3326 | am_cv_make_support_nested_variables=yes | |
3327 | else | |
3328 | am_cv_make_support_nested_variables=no | |
3329 | fi | |
3330 | fi | |
3331 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 | |
3332 | $as_echo "$am_cv_make_support_nested_variables" >&6; } | |
3333 | if test $am_cv_make_support_nested_variables = yes; then | |
3334 | AM_V='$(V)' | |
3335 | AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' | |
3336 | else | |
3337 | AM_V=$AM_DEFAULT_VERBOSITY | |
3338 | AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY | |
3339 | fi | |
0710d850 | 3340 | AM_BACKSLASH='\' |
618a8a63 JS |
3341 | |
3342 | ||
8f223b3e FCE |
3343 | DEPDIR="${am__leading_dot}deps" |
3344 | ||
3345 | ac_config_commands="$ac_config_commands depfiles" | |
3346 | ||
3347 | ||
3348 | am_make=${MAKE-make} | |
3349 | cat > confinc << 'END' | |
3350 | am__doit: | |
3351 | @echo this is the am__doit target | |
3352 | .PHONY: am__doit | |
3353 | END | |
3354 | # If we don't find an include directive, just comment out the code. | |
3355 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 | |
3356 | $as_echo_n "checking for style of include used by $am_make... " >&6; } | |
3357 | am__include="#" | |
3358 | am__quote= | |
3359 | _am_result=none | |
3360 | # First try GNU make style include. | |
3361 | echo "include confinc" > confmf | |
8eef2738 | 3362 | # Ignore all kinds of additional output from 'make'. |
8f223b3e FCE |
3363 | case `$am_make -s -f confmf 2> /dev/null` in #( |
3364 | *the\ am__doit\ target*) | |
3365 | am__include=include | |
3366 | am__quote= | |
3367 | _am_result=GNU | |
3368 | ;; | |
7fbd9d09 | 3369 | esac |
8f223b3e FCE |
3370 | # Now try BSD make style include. |
3371 | if test "$am__include" = "#"; then | |
3372 | echo '.include "confinc"' > confmf | |
3373 | case `$am_make -s -f confmf 2> /dev/null` in #( | |
3374 | *the\ am__doit\ target*) | |
3375 | am__include=.include | |
3376 | am__quote="\"" | |
3377 | _am_result=BSD | |
3378 | ;; | |
3379 | esac | |
3380 | fi | |
7fbd9d09 | 3381 | |
98aab489 | 3382 | |
8f223b3e FCE |
3383 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 |
3384 | $as_echo "$_am_result" >&6; } | |
3385 | rm -f confinc confmf | |
3386 | ||
3387 | # Check whether --enable-dependency-tracking was given. | |
3388 | if test "${enable_dependency_tracking+set}" = set; then : | |
3389 | enableval=$enable_dependency_tracking; | |
3390 | fi | |
3391 | ||
3392 | if test "x$enable_dependency_tracking" != xno; then | |
3393 | am_depcomp="$ac_aux_dir/depcomp" | |
3394 | AMDEPBACKSLASH='\' | |
c66be968 | 3395 | am__nodep='_no' |
8f223b3e FCE |
3396 | fi |
3397 | if test "x$enable_dependency_tracking" != xno; then | |
3398 | AMDEP_TRUE= | |
3399 | AMDEP_FALSE='#' | |
2f1a1aea | 3400 | else |
8f223b3e FCE |
3401 | AMDEP_TRUE='#' |
3402 | AMDEP_FALSE= | |
2f1a1aea FCE |
3403 | fi |
3404 | ||
8f223b3e | 3405 | |
2f1a1aea FCE |
3406 | ac_ext=c |
3407 | ac_cpp='$CPP $CPPFLAGS' | |
3408 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3409 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3410 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3411 | if test -n "$ac_tool_prefix"; then | |
3412 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
3413 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
1ef0423a | 3414 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
0710d850 | 3415 | $as_echo_n "checking for $ac_word... " >&6; } |
c3de29bd | 3416 | if ${ac_cv_prog_CC+:} false; then : |
0710d850 | 3417 | $as_echo_n "(cached) " >&6 |
2f1a1aea FCE |
3418 | else |
3419 | if test -n "$CC"; then | |
3420 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3421 | else | |
3422 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3423 | for as_dir in $PATH | |
3424 | do | |
3425 | IFS=$as_save_IFS | |
3426 | test -z "$as_dir" && as_dir=. | |
1ef0423a | 3427 | for ac_exec_ext in '' $ac_executable_extensions; do |
8eef2738 | 3428 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
2f1a1aea | 3429 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
1ef0423a | 3430 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2f1a1aea FCE |
3431 | break 2 |
3432 | fi | |
3433 | done | |
1ef0423a | 3434 | done |
7fbd9d09 | 3435 | IFS=$as_save_IFS |
2f1a1aea FCE |
3436 | |
3437 | fi | |
3438 | fi | |
3439 | CC=$ac_cv_prog_CC | |
3440 | if test -n "$CC"; then | |
1ef0423a | 3441 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
0710d850 | 3442 | $as_echo "$CC" >&6; } |
2f1a1aea | 3443 | else |
1ef0423a | 3444 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
0710d850 | 3445 | $as_echo "no" >&6; } |
2f1a1aea FCE |
3446 | fi |
3447 | ||
7fbd9d09 | 3448 | |
2f1a1aea FCE |
3449 | fi |
3450 | if test -z "$ac_cv_prog_CC"; then | |
3451 | ac_ct_CC=$CC | |
3452 | # Extract the first word of "gcc", so it can be a program name with args. | |
3453 | set dummy gcc; ac_word=$2 | |
1ef0423a | 3454 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
0710d850 | 3455 | $as_echo_n "checking for $ac_word... " >&6; } |
c3de29bd | 3456 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
0710d850 | 3457 | $as_echo_n "(cached) " >&6 |
2f1a1aea FCE |
3458 | else |
3459 | if test -n "$ac_ct_CC"; then | |
3460 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
3461 | else | |
3462 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3463 | for as_dir in $PATH | |
3464 | do | |
3465 | IFS=$as_save_IFS | |
3466 | test -z "$as_dir" && as_dir=. | |
1ef0423a | 3467 | for ac_exec_ext in '' $ac_executable_extensions; do |
8eef2738 | 3468 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
2f1a1aea | 3469 | ac_cv_prog_ac_ct_CC="gcc" |
1ef0423a | 3470 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2f1a1aea FCE |
3471 | break 2 |
3472 | fi | |
3473 | done | |
1ef0423a | 3474 | done |
7fbd9d09 | 3475 | IFS=$as_save_IFS |
2f1a1aea FCE |
3476 | |
3477 | fi | |
3478 | fi | |
3479 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
3480 | if test -n "$ac_ct_CC"; then | |
1ef0423a | 3481 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
0710d850 | 3482 | $as_echo "$ac_ct_CC" >&6; } |
2f1a1aea | 3483 | else |
1ef0423a | 3484 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
0710d850 | 3485 | $as_echo "no" >&6; } |
2f1a1aea FCE |
3486 | fi |
3487 | ||
7fbd9d09 FCE |
3488 | if test "x$ac_ct_CC" = x; then |
3489 | CC="" | |
3490 | else | |
3491 | case $cross_compiling:$ac_tool_warned in | |
3492 | yes:) | |
1ef0423a | 3493 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
0710d850 | 3494 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
7fbd9d09 FCE |
3495 | ac_tool_warned=yes ;; |
3496 | esac | |
3497 | CC=$ac_ct_CC | |
3498 | fi | |
2f1a1aea FCE |
3499 | else |
3500 | CC="$ac_cv_prog_CC" | |
3501 | fi | |
3502 | ||
3503 | if test -z "$CC"; then | |
7fbd9d09 FCE |
3504 | if test -n "$ac_tool_prefix"; then |
3505 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
2f1a1aea | 3506 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
1ef0423a | 3507 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
0710d850 | 3508 | $as_echo_n "checking for $ac_word... " >&6; } |
c3de29bd | 3509 | if ${ac_cv_prog_CC+:} false; then : |
0710d850 | 3510 | $as_echo_n "(cached) " >&6 |
2f1a1aea FCE |
3511 | else |
3512 | if test -n "$CC"; then | |
3513 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3514 | else | |
3515 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3516 | for as_dir in $PATH | |
3517 | do | |
3518 | IFS=$as_save_IFS | |
3519 | test -z "$as_dir" && as_dir=. | |
1ef0423a | 3520 | for ac_exec_ext in '' $ac_executable_extensions; do |
8eef2738 | 3521 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
2f1a1aea | 3522 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
1ef0423a | 3523 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2f1a1aea FCE |
3524 | break 2 |
3525 | fi | |
3526 | done | |
1ef0423a | 3527 | done |
7fbd9d09 | 3528 | IFS=$as_save_IFS |
2f1a1aea FCE |
3529 | |
3530 | fi | |
3531 | fi | |
3532 | CC=$ac_cv_prog_CC | |
3533 | if test -n "$CC"; then | |
1ef0423a | 3534 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
0710d850 | 3535 | $as_echo "$CC" >&6; } |
818ba2bc | 3536 | else |
1ef0423a | 3537 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
0710d850 | 3538 | $as_echo "no" >&6; } |
818ba2bc MW |
3539 | fi |
3540 | ||
818ba2bc | 3541 | |
7fbd9d09 | 3542 | fi |
2f1a1aea FCE |
3543 | fi |
3544 | if test -z "$CC"; then | |
3545 | # Extract the first word of "cc", so it can be a program name with args. | |
3546 | set dummy cc; ac_word=$2 | |
1ef0423a | 3547 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
0710d850 | 3548 | $as_echo_n "checking for $ac_word... " >&6; } |
c3de29bd | 3549 | if ${ac_cv_prog_CC+:} false; then : |
0710d850 | 3550 | $as_echo_n "(cached) " >&6 |
2f1a1aea FCE |
3551 | else |
3552 | if test -n "$CC"; then | |
3553 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3554 | else | |
3555 | ac_prog_rejected=no | |
3556 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3557 | for as_dir in $PATH | |
3558 | do | |
3559 | IFS=$as_save_IFS | |
3560 | test -z "$as_dir" && as_dir=. | |
1ef0423a | 3561 | for ac_exec_ext in '' $ac_executable_extensions; do |
8eef2738 | 3562 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
2f1a1aea FCE |
3563 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
3564 | ac_prog_rejected=yes | |
3565 | continue | |
3566 | fi | |
3567 | ac_cv_prog_CC="cc" | |
1ef0423a | 3568 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2f1a1aea FCE |
3569 | break 2 |
3570 | fi | |
3571 | done | |
1ef0423a | 3572 | done |
7fbd9d09 | 3573 | IFS=$as_save_IFS |
2f1a1aea FCE |
3574 | |
3575 | if test $ac_prog_rejected = yes; then | |
3576 | # We found a bogon in the path, so make sure we never use it. | |
3577 | set dummy $ac_cv_prog_CC | |
3578 | shift | |
3579 | if test $# != 0; then | |
3580 | # We chose a different compiler from the bogus one. | |
3581 | # However, it has the same basename, so the bogon will be chosen | |
3582 | # first if we set CC to just the basename; use the full file name. | |
3583 | shift | |
3584 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
3585 | fi | |
3586 | fi | |
3587 | fi | |
3588 | fi | |
3589 | CC=$ac_cv_prog_CC | |
3590 | if test -n "$CC"; then | |
1ef0423a | 3591 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
0710d850 | 3592 | $as_echo "$CC" >&6; } |
2f1a1aea | 3593 | else |
1ef0423a | 3594 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
0710d850 | 3595 | $as_echo "no" >&6; } |
2f1a1aea FCE |
3596 | fi |
3597 | ||
7fbd9d09 | 3598 | |
2f1a1aea FCE |
3599 | fi |
3600 | if test -z "$CC"; then | |
3601 | if test -n "$ac_tool_prefix"; then | |
7fbd9d09 | 3602 | for ac_prog in cl.exe |
2f1a1aea FCE |
3603 | do |
3604 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
3605 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
1ef0423a | 3606 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
0710d850 | 3607 | $as_echo_n "checking for $ac_word... " >&6; } |
c3de29bd | 3608 | if ${ac_cv_prog_CC+:} false; then : |
0710d850 | 3609 | $as_echo_n "(cached) " >&6 |
2f1a1aea FCE |
3610 | else |
3611 | if test -n "$CC"; then | |
3612 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3613 | else | |
3614 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3615 | for as_dir in $PATH | |
3616 | do | |
3617 | IFS=$as_save_IFS | |
3618 | test -z "$as_dir" && as_dir=. | |
1ef0423a | 3619 | for ac_exec_ext in '' $ac_executable_extensions; do |
8eef2738 | 3620 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
2f1a1aea | 3621 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
1ef0423a | 3622 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2f1a1aea FCE |
3623 | break 2 |
3624 | fi | |
3625 | done | |
1ef0423a | 3626 | done |
7fbd9d09 | 3627 | IFS=$as_save_IFS |
2f1a1aea FCE |
3628 | |
3629 | fi | |
3630 | fi | |
3631 | CC=$ac_cv_prog_CC | |
3632 | if test -n "$CC"; then | |
1ef0423a | 3633 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
0710d850 | 3634 | $as_echo "$CC" >&6; } |
2f1a1aea | 3635 | else |
1ef0423a | 3636 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
0710d850 | 3637 | $as_echo "no" >&6; } |
2f1a1aea FCE |
3638 | fi |
3639 | ||
7fbd9d09 | 3640 | |
2f1a1aea FCE |
3641 | test -n "$CC" && break |
3642 | done | |
3643 | fi | |
3644 | if test -z "$CC"; then | |
3645 | ac_ct_CC=$CC | |
7fbd9d09 | 3646 | for ac_prog in cl.exe |
2f1a1aea FCE |
3647 | do |
3648 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
3649 | set dummy $ac_prog; ac_word=$2 | |
1ef0423a | 3650 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
0710d850 | 3651 | $as_echo_n "checking for $ac_word... " >&6; } |
c3de29bd | 3652 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
0710d850 | 3653 | $as_echo_n "(cached) " >&6 |
2f1a1aea FCE |
3654 | else |
3655 | if test -n "$ac_ct_CC"; then | |
3656 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
3657 | else | |
3658 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3659 | for as_dir in $PATH | |
3660 | do | |
3661 | IFS=$as_save_IFS | |
3662 | test -z "$as_dir" && as_dir=. | |
1ef0423a | 3663 | for ac_exec_ext in '' $ac_executable_extensions; do |
8eef2738 | 3664 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
2f1a1aea | 3665 | ac_cv_prog_ac_ct_CC="$ac_prog" |
1ef0423a | 3666 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2f1a1aea FCE |
3667 | break 2 |
3668 | fi | |
3669 | done | |
1ef0423a | 3670 | done |
7fbd9d09 | 3671 | IFS=$as_save_IFS |
2f1a1aea FCE |
3672 | |
3673 | fi | |
3674 | fi | |
3675 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
3676 | if test -n "$ac_ct_CC"; then | |
1ef0423a | 3677 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
0710d850 | 3678 | $as_echo "$ac_ct_CC" >&6; } |
2f1a1aea | 3679 | else |
1ef0423a | 3680 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
0710d850 | 3681 | $as_echo "no" >&6; } |
2f1a1aea FCE |
3682 | fi |
3683 | ||
7fbd9d09 | 3684 | |
2f1a1aea FCE |
3685 | test -n "$ac_ct_CC" && break |
3686 | done | |
3687 | ||
7fbd9d09 FCE |
3688 | if test "x$ac_ct_CC" = x; then |
3689 | CC="" | |
3690 | else | |
3691 | case $cross_compiling:$ac_tool_warned in | |
3692 | yes:) | |
1ef0423a | 3693 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
0710d850 | 3694 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
7fbd9d09 FCE |
3695 | ac_tool_warned=yes ;; |
3696 | esac | |
3697 | CC=$ac_ct_CC | |
3698 | fi | |
2f1a1aea FCE |
3699 | fi |
3700 | ||
3701 | fi | |
3702 | ||
3703 | ||
1ef0423a | 3704 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
0710d850 | 3705 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
5d4aa1f5 FCE |
3706 | as_fn_error $? "no acceptable C compiler found in \$PATH |
3707 | See \`config.log' for more details" "$LINENO" 5; } | |
2f1a1aea FCE |
3708 | |
3709 | # Provide some information about the compiler. | |
1ef0423a | 3710 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
0710d850 DS |
3711 | set X $ac_compile |
3712 | ac_compiler=$2 | |
1ef0423a FCE |
3713 | for ac_option in --version -v -V -qversion; do |
3714 | { { ac_try="$ac_compiler $ac_option >&5" | |
5e5aee9f FCE |
3715 | case "(($ac_try" in |
3716 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3717 | *) ac_try_echo=$ac_try;; | |
3718 | esac | |
1ef0423a FCE |
3719 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
3720 | $as_echo "$ac_try_echo"; } >&5 | |
3721 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
5e5aee9f | 3722 | ac_status=$? |
1ef0423a FCE |
3723 | if test -s conftest.err; then |
3724 | sed '10a\ | |
3725 | ... rest of stderr output deleted ... | |
3726 | 10q' conftest.err >conftest.er1 | |
3727 | cat conftest.er1 >&5 | |
3728 | fi | |
3729 | rm -f conftest.er1 conftest.err | |
3730 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3731 | test $ac_status = 0; } | |
3732 | done | |
2f1a1aea | 3733 | |
1ef0423a | 3734 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
2f1a1aea | 3735 | /* end confdefs.h. */ |
412e1bf7 | 3736 | |
2f1a1aea FCE |
3737 | int |
3738 | main () | |
3739 | { | |
3740 | ||
3741 | ; | |
3742 | return 0; | |
3743 | } | |
3744 | _ACEOF | |
3745 | ac_clean_files_save=$ac_clean_files | |
0710d850 | 3746 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" |
2f1a1aea FCE |
3747 | # Try to create an executable without -o first, disregard a.out. |
3748 | # It will help us diagnose broken compilers, and finding out an intuition | |
3749 | # of exeext. | |
1ef0423a FCE |
3750 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 |
3751 | $as_echo_n "checking whether the C compiler works... " >&6; } | |
0710d850 DS |
3752 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
3753 | ||
3754 | # The possible output files: | |
3755 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | |
3756 | ||
7fbd9d09 FCE |
3757 | ac_rmfiles= |
3758 | for ac_file in $ac_files | |
3759 | do | |
3760 | case $ac_file in | |
0710d850 | 3761 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
7fbd9d09 FCE |
3762 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
3763 | esac | |
3764 | done | |
3765 | rm -f $ac_rmfiles | |
3766 | ||
1ef0423a | 3767 | if { { ac_try="$ac_link_default" |
7fbd9d09 FCE |
3768 | case "(($ac_try" in |
3769 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3770 | *) ac_try_echo=$ac_try;; | |
3771 | esac | |
1ef0423a FCE |
3772 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
3773 | $as_echo "$ac_try_echo"; } >&5 | |
7fbd9d09 | 3774 | (eval "$ac_link_default") 2>&5 |
2f1a1aea | 3775 | ac_status=$? |
1ef0423a FCE |
3776 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
3777 | test $ac_status = 0; }; then : | |
7fbd9d09 FCE |
3778 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
3779 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
3780 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
3781 | # so that the user can short-circuit this test for compilers unknown to | |
3782 | # Autoconf. | |
3783 | for ac_file in $ac_files '' | |
2f1a1aea FCE |
3784 | do |
3785 | test -f "$ac_file" || continue | |
3786 | case $ac_file in | |
0710d850 | 3787 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
2f1a1aea FCE |
3788 | ;; |
3789 | [ab].out ) | |
3790 | # We found the default executable, but exeext='' is most | |
3791 | # certainly right. | |
3792 | break;; | |
3793 | *.* ) | |
1ef0423a | 3794 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
7fbd9d09 FCE |
3795 | then :; else |
3796 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
3797 | fi | |
3798 | # We set ac_cv_exeext here because the later test for it is not | |
3799 | # safe: cross compilers may not add the suffix if given an `-o' | |
3800 | # argument, so we may need to know it at that point already. | |
3801 | # Even if this section looks crufty: it has the advantage of | |
3802 | # actually working. | |
2f1a1aea FCE |
3803 | break;; |
3804 | * ) | |
3805 | break;; | |
3806 | esac | |
3807 | done | |
7fbd9d09 FCE |
3808 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
3809 | ||
2f1a1aea | 3810 | else |
7fbd9d09 FCE |
3811 | ac_file='' |
3812 | fi | |
1ef0423a FCE |
3813 | if test -z "$ac_file"; then : |
3814 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3815 | $as_echo "no" >&6; } | |
3816 | $as_echo "$as_me: failed program was:" >&5 | |
2f1a1aea FCE |
3817 | sed 's/^/| /' conftest.$ac_ext >&5 |
3818 | ||
1ef0423a | 3819 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
0710d850 | 3820 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
5d4aa1f5 FCE |
3821 | as_fn_error 77 "C compiler cannot create executables |
3822 | See \`config.log' for more details" "$LINENO" 5; } | |
1ef0423a FCE |
3823 | else |
3824 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3825 | $as_echo "yes" >&6; } | |
2f1a1aea | 3826 | fi |
1ef0423a FCE |
3827 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
3828 | $as_echo_n "checking for C compiler default output file name... " >&6; } | |
3829 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 | |
3830 | $as_echo "$ac_file" >&6; } | |
2f1a1aea | 3831 | ac_exeext=$ac_cv_exeext |
2f1a1aea | 3832 | |
0710d850 | 3833 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
2f1a1aea | 3834 | ac_clean_files=$ac_clean_files_save |
1ef0423a | 3835 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 |
0710d850 | 3836 | $as_echo_n "checking for suffix of executables... " >&6; } |
1ef0423a | 3837 | if { { ac_try="$ac_link" |
7fbd9d09 FCE |
3838 | case "(($ac_try" in |
3839 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3840 | *) ac_try_echo=$ac_try;; | |
3841 | esac | |
1ef0423a FCE |
3842 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
3843 | $as_echo "$ac_try_echo"; } >&5 | |
7fbd9d09 | 3844 | (eval "$ac_link") 2>&5 |
2f1a1aea | 3845 | ac_status=$? |
1ef0423a FCE |
3846 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
3847 | test $ac_status = 0; }; then : | |
2f1a1aea FCE |
3848 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
3849 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
3850 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
3851 | # `rm'. | |
3852 | for ac_file in conftest.exe conftest conftest.*; do | |
3853 | test -f "$ac_file" || continue | |
3854 | case $ac_file in | |
0710d850 | 3855 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
2f1a1aea | 3856 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
2f1a1aea FCE |
3857 | break;; |
3858 | * ) break;; | |
3859 | esac | |
3860 | done | |
3861 | else | |
1ef0423a | 3862 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
0710d850 | 3863 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
5d4aa1f5 FCE |
3864 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link |
3865 | See \`config.log' for more details" "$LINENO" 5; } | |
2f1a1aea | 3866 | fi |
1ef0423a FCE |
3867 | rm -f conftest conftest$ac_cv_exeext |
3868 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 | |
0710d850 | 3869 | $as_echo "$ac_cv_exeext" >&6; } |
2f1a1aea FCE |
3870 | |
3871 | rm -f conftest.$ac_ext | |
3872 | EXEEXT=$ac_cv_exeext | |
3873 | ac_exeext=$EXEEXT | |
1ef0423a FCE |
3874 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3875 | /* end confdefs.h. */ | |
3876 | #include <stdio.h> | |
3877 | int | |
3878 | main () | |
3879 | { | |
3880 | FILE *f = fopen ("conftest.out", "w"); | |
3881 | return ferror (f) || fclose (f) != 0; | |
3882 | ||
3883 | ; | |
3884 | return 0; | |
3885 | } | |
3886 | _ACEOF | |
3887 | ac_clean_files="$ac_clean_files conftest.out" | |
3888 | # Check that the compiler produces executables we can run. If not, either | |
3889 | # the compiler is broken, or we cross compile. | |
3890 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 | |
3891 | $as_echo_n "checking whether we are cross compiling... " >&6; } | |
3892 | if test "$cross_compiling" != yes; then | |
3893 | { { ac_try="$ac_link" | |
3894 | case "(($ac_try" in | |
3895 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3896 | *) ac_try_echo=$ac_try;; | |
3897 | esac | |
3898 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3899 | $as_echo "$ac_try_echo"; } >&5 | |
3900 | (eval "$ac_link") 2>&5 | |
3901 | ac_status=$? | |
3902 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3903 | test $ac_status = 0; } | |
3904 | if { ac_try='./conftest$ac_cv_exeext' | |
3905 | { { case "(($ac_try" in | |
3906 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3907 | *) ac_try_echo=$ac_try;; | |
3908 | esac | |
3909 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3910 | $as_echo "$ac_try_echo"; } >&5 | |
3911 | (eval "$ac_try") 2>&5 | |
3912 | ac_status=$? | |
3913 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3914 | test $ac_status = 0; }; }; then | |
3915 | cross_compiling=no | |
3916 | else | |
3917 | if test "$cross_compiling" = maybe; then | |
3918 | cross_compiling=yes | |
3919 | else | |
3920 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3921 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
5d4aa1f5 | 3922 | as_fn_error $? "cannot run C compiled programs. |
1ef0423a | 3923 | If you meant to cross compile, use \`--host'. |
5d4aa1f5 | 3924 | See \`config.log' for more details" "$LINENO" 5; } |
1ef0423a FCE |
3925 | fi |
3926 | fi | |
3927 | fi | |
3928 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 | |
3929 | $as_echo "$cross_compiling" >&6; } | |
3930 | ||
3931 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out | |
3932 | ac_clean_files=$ac_clean_files_save | |
3933 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 | |
0710d850 | 3934 | $as_echo_n "checking for suffix of object files... " >&6; } |
c3de29bd | 3935 | if ${ac_cv_objext+:} false; then : |
0710d850 | 3936 | $as_echo_n "(cached) " >&6 |
2f1a1aea | 3937 | else |
1ef0423a | 3938 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
2f1a1aea FCE |
3939 | /* end confdefs.h. */ |
3940 | ||
3941 | int | |
3942 | main () | |
3943 | { | |
3944 | ||
3945 | ; | |
3946 | return 0; | |
3947 | } | |
3948 | _ACEOF | |
3949 | rm -f conftest.o conftest.obj | |
1ef0423a | 3950 | if { { ac_try="$ac_compile" |
7fbd9d09 FCE |
3951 | case "(($ac_try" in |
3952 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3953 | *) ac_try_echo=$ac_try;; | |
3954 | esac | |
1ef0423a FCE |
3955 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
3956 | $as_echo "$ac_try_echo"; } >&5 | |
7fbd9d09 | 3957 | (eval "$ac_compile") 2>&5 |
2f1a1aea | 3958 | ac_status=$? |
1ef0423a FCE |
3959 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
3960 | test $ac_status = 0; }; then : | |
7fbd9d09 FCE |
3961 | for ac_file in conftest.o conftest.obj conftest.*; do |
3962 | test -f "$ac_file" || continue; | |
2f1a1aea | 3963 | case $ac_file in |
0710d850 | 3964 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
2f1a1aea FCE |
3965 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
3966 | break;; | |
3967 | esac | |
3968 | done | |
3969 | else | |
0710d850 | 3970 | $as_echo "$as_me: failed program was:" >&5 |
2f1a1aea FCE |
3971 | sed 's/^/| /' conftest.$ac_ext >&5 |
3972 | ||
1ef0423a | 3973 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
0710d850 | 3974 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
5d4aa1f5 FCE |
3975 | as_fn_error $? "cannot compute suffix of object files: cannot compile |
3976 | See \`config.log' for more details" "$LINENO" 5; } | |
2f1a1aea | 3977 | fi |
2f1a1aea FCE |
3978 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
3979 | fi | |
1ef0423a | 3980 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
0710d850 | 3981 | $as_echo "$ac_cv_objext" >&6; } |
2f1a1aea FCE |
3982 | OBJEXT=$ac_cv_objext |
3983 | ac_objext=$OBJEXT | |
1ef0423a | 3984 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
0710d850 | 3985 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } |
c3de29bd | 3986 | if ${ac_cv_c_compiler_gnu+:} false; then : |
0710d850 | 3987 | $as_echo_n "(cached) " >&6 |
2f1a1aea | 3988 | else |
1ef0423a | 3989 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
2f1a1aea FCE |
3990 | /* end confdefs.h. */ |
3991 | ||
3992 | int | |
3993 | main () | |
3994 | { | |
3995 | #ifndef __GNUC__ | |
3996 | choke me | |
3997 | #endif | |
3998 | ||
3999 | ; | |
4000 | return 0; | |
4001 | } | |
4002 | _ACEOF | |
1ef0423a | 4003 | if ac_fn_c_try_compile "$LINENO"; then : |
2f1a1aea FCE |
4004 | ac_compiler_gnu=yes |
4005 | else | |
1ef0423a | 4006 | ac_compiler_gnu=no |
2f1a1aea | 4007 | fi |
7fbd9d09 | 4008 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
2f1a1aea FCE |
4009 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
4010 | ||
4011 | fi | |
1ef0423a | 4012 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
0710d850 DS |
4013 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } |
4014 | if test $ac_compiler_gnu = yes; then | |
4015 | GCC=yes | |
4016 | else | |
4017 | GCC= | |
4018 | fi | |
2f1a1aea FCE |
4019 | ac_test_CFLAGS=${CFLAGS+set} |
4020 | ac_save_CFLAGS=$CFLAGS | |
1ef0423a | 4021 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
0710d850 | 4022 | $as_echo_n "checking whether $CC accepts -g... " >&6; } |
c3de29bd | 4023 | if ${ac_cv_prog_cc_g+:} false; then : |
0710d850 | 4024 | $as_echo_n "(cached) " >&6 |
2f1a1aea | 4025 | else |
7fbd9d09 FCE |
4026 | ac_save_c_werror_flag=$ac_c_werror_flag |
4027 | ac_c_werror_flag=yes | |
4028 | ac_cv_prog_cc_g=no | |
4029 | CFLAGS="-g" | |
1ef0423a | 4030 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
2f1a1aea FCE |
4031 | /* end confdefs.h. */ |
4032 | ||
4033 | int | |
4034 | main () | |
4035 | { | |
4036 | ||
4037 | ; | |
4038 | return 0; | |
4039 | } | |
4040 | _ACEOF | |
1ef0423a | 4041 | if ac_fn_c_try_compile "$LINENO"; then : |
7fbd9d09 FCE |
4042 | ac_cv_prog_cc_g=yes |
4043 | else | |
1ef0423a FCE |
4044 | CFLAGS="" |
4045 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7fbd9d09 FCE |
4046 | /* end confdefs.h. */ |
4047 | ||
4048 | int | |
4049 | main () | |
4050 | { | |
4051 | ||
4052 | ; | |
4053 | return 0; | |
4054 | } | |
4055 | _ACEOF | |
1ef0423a | 4056 | if ac_fn_c_try_compile "$LINENO"; then : |
5e5aee9f | 4057 | |
1ef0423a FCE |
4058 | else |
4059 | ac_c_werror_flag=$ac_save_c_werror_flag | |
7fbd9d09 | 4060 | CFLAGS="-g" |
1ef0423a | 4061 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7fbd9d09 FCE |
4062 | /* end confdefs.h. */ |
4063 | ||
4064 | int | |
4065 | main () | |
4066 | { | |
4067 | ||
4068 | ; | |
4069 | return 0; | |
4070 | } | |
4071 | _ACEOF | |
1ef0423a | 4072 | if ac_fn_c_try_compile "$LINENO"; then : |
2f1a1aea | 4073 | ac_cv_prog_cc_g=yes |
7fbd9d09 | 4074 | fi |
7fbd9d09 | 4075 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
2f1a1aea | 4076 | fi |
7fbd9d09 FCE |
4077 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4078 | fi | |
7fbd9d09 FCE |
4079 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4080 | ac_c_werror_flag=$ac_save_c_werror_flag | |
2f1a1aea | 4081 | fi |
1ef0423a | 4082 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 |
0710d850 | 4083 | $as_echo "$ac_cv_prog_cc_g" >&6; } |
2f1a1aea FCE |
4084 | if test "$ac_test_CFLAGS" = set; then |
4085 | CFLAGS=$ac_save_CFLAGS | |
4086 | elif test $ac_cv_prog_cc_g = yes; then | |
4087 | if test "$GCC" = yes; then | |
4088 | CFLAGS="-g -O2" | |
4089 | else | |
4090 | CFLAGS="-g" | |
4091 | fi | |
4092 | else | |
4093 | if test "$GCC" = yes; then | |
4094 | CFLAGS="-O2" | |
4095 | else | |
4096 | CFLAGS= | |
4097 | fi | |
4098 | fi | |
1ef0423a | 4099 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
0710d850 | 4100 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } |
c3de29bd | 4101 | if ${ac_cv_prog_cc_c89+:} false; then : |
0710d850 | 4102 | $as_echo_n "(cached) " >&6 |
2f1a1aea | 4103 | else |
7fbd9d09 | 4104 | ac_cv_prog_cc_c89=no |
2f1a1aea | 4105 | ac_save_CC=$CC |
1ef0423a | 4106 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
2f1a1aea FCE |
4107 | /* end confdefs.h. */ |
4108 | #include <stdarg.h> | |
4109 | #include <stdio.h> | |
8eef2738 | 4110 | struct stat; |
2f1a1aea FCE |
4111 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
4112 | struct buf { int x; }; | |
4113 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
4114 | static char *e (p, i) | |
4115 | char **p; | |
4116 | int i; | |
4117 | { | |
4118 | return p[i]; | |
4119 | } | |
4120 | static char *f (char * (*g) (char **, int), char **p, ...) | |
4121 | { | |
4122 | char *s; | |
4123 | va_list v; | |
4124 | va_start (v,p); | |
4125 | s = g (p, va_arg (v,int)); | |
4126 | va_end (v); | |
4127 | return s; | |
4128 | } | |
4129 | ||
4130 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
4131 | function prototypes and stuff, but not '\xHH' hex character constants. | |
4132 | These don't provoke an error unfortunately, instead are silently treated | |
7fbd9d09 | 4133 | as 'x'. The following induces an error, until -std is added to get |
2f1a1aea FCE |
4134 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
4135 | array size at least. It's necessary to write '\x00'==0 to get something | |
7fbd9d09 | 4136 | that's true only with -std. */ |
2f1a1aea FCE |
4137 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
4138 | ||
7fbd9d09 FCE |
4139 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
4140 | inside strings and character constants. */ | |
4141 | #define FOO(x) 'x' | |
4142 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
4143 | ||
2f1a1aea FCE |
4144 | int test (int i, double x); |
4145 | struct s1 {int (*f) (int a);}; | |
4146 | struct s2 {int (*f) (double a);}; | |
4147 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
4148 | int argc; | |
4149 | char **argv; | |
4150 | int | |
4151 | main () | |
4152 | { | |
4153 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
4154 | ; | |
4155 | return 0; | |
4156 | } | |
4157 | _ACEOF | |
7fbd9d09 FCE |
4158 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
4159 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
2f1a1aea FCE |
4160 | do |
4161 | CC="$ac_save_CC $ac_arg" | |
1ef0423a | 4162 | if ac_fn_c_try_compile "$LINENO"; then : |
7fbd9d09 | 4163 | ac_cv_prog_cc_c89=$ac_arg |
2f1a1aea | 4164 | fi |
7fbd9d09 FCE |
4165 | rm -f core conftest.err conftest.$ac_objext |
4166 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
2f1a1aea | 4167 | done |
7fbd9d09 | 4168 | rm -f conftest.$ac_ext |
2f1a1aea FCE |
4169 | CC=$ac_save_CC |
4170 | ||
4171 | fi | |
7fbd9d09 FCE |
4172 | # AC_CACHE_VAL |
4173 | case "x$ac_cv_prog_cc_c89" in | |
4174 | x) | |
1ef0423a | 4175 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
0710d850 | 4176 | $as_echo "none needed" >&6; } ;; |
7fbd9d09 | 4177 | xno) |
1ef0423a | 4178 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
0710d850 | 4179 | $as_echo "unsupported" >&6; } ;; |
2f1a1aea | 4180 | *) |
7fbd9d09 | 4181 | CC="$CC $ac_cv_prog_cc_c89" |
1ef0423a | 4182 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 |
0710d850 | 4183 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; |
2f1a1aea | 4184 | esac |
1ef0423a | 4185 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
2f1a1aea | 4186 | |
1ef0423a | 4187 | fi |
818ba2bc | 4188 | |
818ba2bc MW |
4189 | ac_ext=c |
4190 | ac_cpp='$CPP $CPPFLAGS' | |
4191 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4192 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4193 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
818ba2bc | 4194 | |
46c282e4 FCE |
4195 | ac_ext=c |
4196 | ac_cpp='$CPP $CPPFLAGS' | |
4197 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4198 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4199 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4200 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 | |
4201 | $as_echo_n "checking whether $CC understands -c and -o together... " >&6; } | |
4202 | if ${am_cv_prog_cc_c_o+:} false; then : | |
4203 | $as_echo_n "(cached) " >&6 | |
4204 | else | |
4205 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4206 | /* end confdefs.h. */ | |
4207 | ||
4208 | int | |
4209 | main () | |
4210 | { | |
4211 | ||
4212 | ; | |
4213 | return 0; | |
4214 | } | |
4215 | _ACEOF | |
4216 | # Make sure it works both with $CC and with simple cc. | |
4217 | # Following AC_PROG_CC_C_O, we do the test twice because some | |
4218 | # compilers refuse to overwrite an existing .o file with -o, | |
4219 | # though they will create one. | |
4220 | am_cv_prog_cc_c_o=yes | |
4221 | for am_i in 1 2; do | |
4222 | if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 | |
4223 | ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 | |
4224 | ac_status=$? | |
4225 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4226 | (exit $ac_status); } \ | |
4227 | && test -f conftest2.$ac_objext; then | |
4228 | : OK | |
4229 | else | |
4230 | am_cv_prog_cc_c_o=no | |
4231 | break | |
4232 | fi | |
4233 | done | |
4234 | rm -f core conftest* | |
4235 | unset am_i | |
4236 | fi | |
4237 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 | |
4238 | $as_echo "$am_cv_prog_cc_c_o" >&6; } | |
4239 | if test "$am_cv_prog_cc_c_o" != yes; then | |
4240 | # Losing compiler, so override with the script. | |
4241 | # FIXME: It is wrong to rewrite CC. | |
4242 | # But if we don't then we get into trouble of one sort or another. | |
4243 | # A longer-term fix would be to have automake use am__CC in this case, | |
4244 | # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" | |
4245 | CC="$am_aux_dir/compile $CC" | |
4246 | fi | |
4247 | ac_ext=c | |
4248 | ac_cpp='$CPP $CPPFLAGS' | |
4249 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4250 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4251 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4252 | ||
4253 | ||
8f223b3e | 4254 | depcc="$CC" am_compiler_list= |
2f1a1aea | 4255 | |
1ef0423a | 4256 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 |
0710d850 | 4257 | $as_echo_n "checking dependency style of $depcc... " >&6; } |
c3de29bd | 4258 | if ${am_cv_CC_dependencies_compiler_type+:} false; then : |
0710d850 | 4259 | $as_echo_n "(cached) " >&6 |
2f1a1aea FCE |
4260 | else |
4261 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | |
4262 | # We make a subdir and do the tests there. Otherwise we can end up | |
4263 | # making bogus files that we don't know about and never remove. For | |
4264 | # instance it was reported that on HP-UX the gcc test will end up | |
8eef2738 LB |
4265 | # making a dummy file named 'D' -- because '-MD' means "put the output |
4266 | # in D". | |
c66be968 | 4267 | rm -rf conftest.dir |
2f1a1aea FCE |
4268 | mkdir conftest.dir |
4269 | # Copy depcomp to subdir because otherwise we won't find it if we're | |
4270 | # using a relative directory. | |
4271 | cp "$am_depcomp" conftest.dir | |
4272 | cd conftest.dir | |
4273 | # We will build objects and dependencies in a subdirectory because | |
4274 | # it helps to detect inapplicable dependency modes. For instance | |
4275 | # both Tru64's cc and ICC support -MD to output dependencies as a | |
4276 | # side effect of compilation, but ICC will put the dependencies in | |
4277 | # the current directory while Tru64 will put them in the object | |
4278 | # directory. | |
4279 | mkdir sub | |
4280 | ||
4281 | am_cv_CC_dependencies_compiler_type=none | |
4282 | if test "$am_compiler_list" = ""; then | |
4283 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
4284 | fi | |
0710d850 DS |
4285 | am__universal=false |
4286 | case " $depcc " in #( | |
4287 | *\ -arch\ *\ -arch\ *) am__universal=true ;; | |
4288 | esac | |
4289 | ||
2f1a1aea FCE |
4290 | for depmode in $am_compiler_list; do |
4291 | # Setup a source with many dependencies, because some compilers | |
4292 | # like to wrap large dependency lists on column 80 (with \), and | |
4293 | # we should not choose a depcomp mode which is confused by this. | |
4294 | # | |
4295 | # We need to recreate these files for each test, as the compiler may | |
4296 | # overwrite some of them when testing with obscure command lines. | |
4297 | # This happens at least with the AIX C compiler. | |
4298 | : > sub/conftest.c | |
4299 | for i in 1 2 3 4 5 6; do | |
4300 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
8eef2738 LB |
4301 | # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with |
4302 | # Solaris 10 /bin/sh. | |
4303 | echo '/* dummy */' > sub/conftst$i.h | |
2f1a1aea FCE |
4304 | done |
4305 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
4306 | ||
8eef2738 | 4307 | # We check with '-c' and '-o' for the sake of the "dashmstdout" |
0710d850 | 4308 | # mode. It turns out that the SunPro C++ compiler does not properly |
8eef2738 LB |
4309 | # handle '-M -o', and we need to detect this. Also, some Intel |
4310 | # versions had trouble with output in subdirs. | |
0710d850 DS |
4311 | am__obj=sub/conftest.${OBJEXT-o} |
4312 | am__minus_obj="-o $am__obj" | |
2f1a1aea | 4313 | case $depmode in |
0710d850 DS |
4314 | gcc) |
4315 | # This depmode causes a compiler race in universal mode. | |
4316 | test "$am__universal" = false || continue | |
4317 | ;; | |
2f1a1aea | 4318 | nosideeffect) |
8eef2738 LB |
4319 | # After this tag, mechanisms are not by side-effect, so they'll |
4320 | # only be used when explicitly requested. | |
2f1a1aea FCE |
4321 | if test "x$enable_dependency_tracking" = xyes; then |
4322 | continue | |
4323 | else | |
4324 | break | |
4325 | fi | |
4326 | ;; | |
c66be968 | 4327 | msvc7 | msvc7msys | msvisualcpp | msvcmsys) |
8eef2738 | 4328 | # This compiler won't grok '-c -o', but also, the minuso test has |
0710d850 DS |
4329 | # not run yet. These depmodes are late enough in the game, and |
4330 | # so weak that their functioning should not be impacted. | |
4331 | am__obj=conftest.${OBJEXT-o} | |
4332 | am__minus_obj= | |
4333 | ;; | |
2f1a1aea FCE |
4334 | none) break ;; |
4335 | esac | |
2f1a1aea | 4336 | if depmode=$depmode \ |
0710d850 | 4337 | source=sub/conftest.c object=$am__obj \ |
2f1a1aea | 4338 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
0710d850 | 4339 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ |
2f1a1aea | 4340 | >/dev/null 2>conftest.err && |
7fbd9d09 | 4341 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && |
2f1a1aea | 4342 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
0710d850 | 4343 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && |
2f1a1aea FCE |
4344 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
4345 | # icc doesn't choke on unknown options, it will just issue warnings | |
4346 | # or remarks (even with -Werror). So we grep stderr for any message | |
4347 | # that says an option was ignored or not supported. | |
4348 | # When given -MP, icc 7.0 and 7.1 complain thusly: | |
4349 | # icc: Command line warning: ignoring option '-M'; no argument required | |
4350 | # The diagnosis changed in icc 8.0: | |
4351 | # icc: Command line remark: option '-MP' not supported | |
4352 | if (grep 'ignoring option' conftest.err || | |
4353 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
4354 | am_cv_CC_dependencies_compiler_type=$depmode | |
4355 | break | |
4356 | fi | |
4357 | fi | |
4358 | done | |
4359 | ||
4360 | cd .. | |
4361 | rm -rf conftest.dir | |
4362 | else | |
4363 | am_cv_CC_dependencies_compiler_type=none | |
4364 | fi | |
4365 | ||
4366 | fi | |
1ef0423a | 4367 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 |
0710d850 | 4368 | $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } |
2f1a1aea FCE |
4369 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type |
4370 | ||
7fbd9d09 | 4371 | if |
2f1a1aea FCE |
4372 | test "x$enable_dependency_tracking" != xno \ |
4373 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then | |
4374 | am__fastdepCC_TRUE= | |
4375 | am__fastdepCC_FALSE='#' | |
4376 | else | |
4377 | am__fastdepCC_TRUE='#' | |
4378 | am__fastdepCC_FALSE= | |
4379 | fi | |
4380 | ||
4381 | ||
8f223b3e FCE |
4382 | |
4383 | ac_ext=c | |
4384 | ac_cpp='$CPP $CPPFLAGS' | |
4385 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4386 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4387 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4388 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 | |
4389 | $as_echo_n "checking how to run the C preprocessor... " >&6; } | |
4390 | # On Suns, sometimes $CPP names a directory. | |
4391 | if test -n "$CPP" && test -d "$CPP"; then | |
4392 | CPP= | |
4393 | fi | |
4394 | if test -z "$CPP"; then | |
c3de29bd | 4395 | if ${ac_cv_prog_CPP+:} false; then : |
0710d850 | 4396 | $as_echo_n "(cached) " >&6 |
2f1a1aea | 4397 | else |
8f223b3e FCE |
4398 | # Double quotes because CPP needs to be expanded |
4399 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
4400 | do | |
4401 | ac_preproc_ok=false | |
4402 | for ac_c_preproc_warn_flag in '' yes | |
2f1a1aea | 4403 | do |
8f223b3e FCE |
4404 | # Use a header file that comes with gcc, so configuring glibc |
4405 | # with a fresh cross-compiler works. | |
4406 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
4407 | # <limits.h> exists even on freestanding compilers. | |
4408 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
4409 | # not just through cpp. "Syntax error" is here to catch this case. | |
4410 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4411 | /* end confdefs.h. */ | |
4412 | #ifdef __STDC__ | |
4413 | # include <limits.h> | |
4414 | #else | |
4415 | # include <assert.h> | |
4416 | #endif | |
4417 | Syntax error | |
4418 | _ACEOF | |
4419 | if ac_fn_c_try_cpp "$LINENO"; then : | |
2f1a1aea | 4420 | |
8f223b3e FCE |
4421 | else |
4422 | # Broken: fails on valid input. | |
4423 | continue | |
2f1a1aea | 4424 | fi |
c3de29bd | 4425 | rm -f conftest.err conftest.i conftest.$ac_ext |
8f223b3e FCE |
4426 | |
4427 | # OK, works on sane cases. Now check whether nonexistent headers | |
4428 | # can be detected and how. | |
4429 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4430 | /* end confdefs.h. */ | |
4431 | #include <ac_nonexistent.h> | |
4432 | _ACEOF | |
4433 | if ac_fn_c_try_cpp "$LINENO"; then : | |
4434 | # Broken: success on invalid input. | |
4435 | continue | |
2f1a1aea | 4436 | else |
8f223b3e FCE |
4437 | # Passes both tests. |
4438 | ac_preproc_ok=: | |
4439 | break | |
4440 | fi | |
c3de29bd | 4441 | rm -f conftest.err conftest.i conftest.$ac_ext |
8f223b3e FCE |
4442 | |
4443 | done | |
4444 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
c3de29bd | 4445 | rm -f conftest.i conftest.err conftest.$ac_ext |
8f223b3e FCE |
4446 | if $ac_preproc_ok; then : |
4447 | break | |
2f1a1aea FCE |
4448 | fi |
4449 | ||
8f223b3e FCE |
4450 | done |
4451 | ac_cv_prog_CPP=$CPP | |
7fbd9d09 | 4452 | |
2f1a1aea | 4453 | fi |
8f223b3e | 4454 | CPP=$ac_cv_prog_CPP |
2f1a1aea | 4455 | else |
8f223b3e FCE |
4456 | ac_cv_prog_CPP=$CPP |
4457 | fi | |
4458 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 | |
4459 | $as_echo "$CPP" >&6; } | |
4460 | ac_preproc_ok=false | |
4461 | for ac_c_preproc_warn_flag in '' yes | |
2f1a1aea | 4462 | do |
8f223b3e FCE |
4463 | # Use a header file that comes with gcc, so configuring glibc |
4464 | # with a fresh cross-compiler works. | |
4465 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
4466 | # <limits.h> exists even on freestanding compilers. | |
4467 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
4468 | # not just through cpp. "Syntax error" is here to catch this case. | |
4469 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4470 | /* end confdefs.h. */ | |
4471 | #ifdef __STDC__ | |
4472 | # include <limits.h> | |
4473 | #else | |
4474 | # include <assert.h> | |
4475 | #endif | |
4476 | Syntax error | |
4477 | _ACEOF | |
4478 | if ac_fn_c_try_cpp "$LINENO"; then : | |
2f1a1aea | 4479 | |
2f1a1aea | 4480 | else |
8f223b3e FCE |
4481 | # Broken: fails on valid input. |
4482 | continue | |
2f1a1aea | 4483 | fi |
c3de29bd | 4484 | rm -f conftest.err conftest.i conftest.$ac_ext |
2f1a1aea | 4485 | |
8f223b3e FCE |
4486 | # OK, works on sane cases. Now check whether nonexistent headers |
4487 | # can be detected and how. | |
4488 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4489 | /* end confdefs.h. */ | |
4490 | #include <ac_nonexistent.h> | |
4491 | _ACEOF | |
4492 | if ac_fn_c_try_cpp "$LINENO"; then : | |
4493 | # Broken: success on invalid input. | |
4494 | continue | |
4495 | else | |
4496 | # Passes both tests. | |
4497 | ac_preproc_ok=: | |
4498 | break | |
4499 | fi | |
c3de29bd | 4500 | rm -f conftest.err conftest.i conftest.$ac_ext |
7fbd9d09 | 4501 | |
2f1a1aea | 4502 | done |
8f223b3e | 4503 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
c3de29bd | 4504 | rm -f conftest.i conftest.err conftest.$ac_ext |
8f223b3e | 4505 | if $ac_preproc_ok; then : |
2f1a1aea | 4506 | |
8f223b3e FCE |
4507 | else |
4508 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
4509 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
5d4aa1f5 FCE |
4510 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check |
4511 | See \`config.log' for more details" "$LINENO" 5; } | |
2f1a1aea FCE |
4512 | fi |
4513 | ||
8f223b3e FCE |
4514 | ac_ext=c |
4515 | ac_cpp='$CPP $CPPFLAGS' | |
4516 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4517 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4518 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4519 | ||
4520 | ||
4521 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 | |
4522 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } | |
c3de29bd | 4523 | if ${ac_cv_path_GREP+:} false; then : |
8f223b3e FCE |
4524 | $as_echo_n "(cached) " >&6 |
4525 | else | |
4526 | if test -z "$GREP"; then | |
4527 | ac_path_GREP_found=false | |
4528 | # Loop through the user's path and test for each of PROGNAME-LIST | |
4529 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4530 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
4531 | do | |
4532 | IFS=$as_save_IFS | |
4533 | test -z "$as_dir" && as_dir=. | |
4534 | for ac_prog in grep ggrep; do | |
4535 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4536 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | |
8eef2738 | 4537 | as_fn_executable_p "$ac_path_GREP" || continue |
8f223b3e FCE |
4538 | # Check for GNU ac_path_GREP and select it if it is found. |
4539 | # Check for GNU $ac_path_GREP | |
4540 | case `"$ac_path_GREP" --version 2>&1` in | |
4541 | *GNU*) | |
4542 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | |
4543 | *) | |
4544 | ac_count=0 | |
4545 | $as_echo_n 0123456789 >"conftest.in" | |
4546 | while : | |
4547 | do | |
4548 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
4549 | mv "conftest.tmp" "conftest.in" | |
4550 | cp "conftest.in" "conftest.nl" | |
4551 | $as_echo 'GREP' >> "conftest.nl" | |
4552 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
4553 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
4554 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
4555 | if test $ac_count -gt ${ac_path_GREP_max-0}; then | |
4556 | # Best one so far, save it but keep looking for a better one | |
4557 | ac_cv_path_GREP="$ac_path_GREP" | |
4558 | ac_path_GREP_max=$ac_count | |
4559 | fi | |
4560 | # 10*(2^10) chars as input seems more than enough | |
4561 | test $ac_count -gt 10 && break | |
4562 | done | |
4563 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
5e5aee9f | 4564 | esac |
8f223b3e FCE |
4565 | |
4566 | $ac_path_GREP_found && break 3 | |
4567 | done | |
4568 | done | |
4569 | done | |
4570 | IFS=$as_save_IFS | |
4571 | if test -z "$ac_cv_path_GREP"; then | |
5d4aa1f5 | 4572 | as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
1ef0423a | 4573 | fi |
8f223b3e FCE |
4574 | else |
4575 | ac_cv_path_GREP=$GREP | |
4576 | fi | |
2f1a1aea | 4577 | |
8f223b3e FCE |
4578 | fi |
4579 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 | |
4580 | $as_echo "$ac_cv_path_GREP" >&6; } | |
4581 | GREP="$ac_cv_path_GREP" | |
4582 | ||
4583 | ||
4584 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 | |
4585 | $as_echo_n "checking for egrep... " >&6; } | |
c3de29bd | 4586 | if ${ac_cv_path_EGREP+:} false; then : |
8f223b3e FCE |
4587 | $as_echo_n "(cached) " >&6 |
4588 | else | |
4589 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 | |
4590 | then ac_cv_path_EGREP="$GREP -E" | |
4591 | else | |
4592 | if test -z "$EGREP"; then | |
4593 | ac_path_EGREP_found=false | |
4594 | # Loop through the user's path and test for each of PROGNAME-LIST | |
4595 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4596 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
4597 | do | |
4598 | IFS=$as_save_IFS | |
4599 | test -z "$as_dir" && as_dir=. | |
4600 | for ac_prog in egrep; do | |
4601 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4602 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | |
8eef2738 | 4603 | as_fn_executable_p "$ac_path_EGREP" || continue |
8f223b3e FCE |
4604 | # Check for GNU ac_path_EGREP and select it if it is found. |
4605 | # Check for GNU $ac_path_EGREP | |
4606 | case `"$ac_path_EGREP" --version 2>&1` in | |
4607 | *GNU*) | |
4608 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | |
4609 | *) | |
4610 | ac_count=0 | |
4611 | $as_echo_n 0123456789 >"conftest.in" | |
4612 | while : | |
4613 | do | |
4614 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
4615 | mv "conftest.tmp" "conftest.in" | |
4616 | cp "conftest.in" "conftest.nl" | |
4617 | $as_echo 'EGREP' >> "conftest.nl" | |
4618 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
4619 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
4620 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
4621 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then | |
4622 | # Best one so far, save it but keep looking for a better one | |
4623 | ac_cv_path_EGREP="$ac_path_EGREP" | |
4624 | ac_path_EGREP_max=$ac_count | |
4625 | fi | |
4626 | # 10*(2^10) chars as input seems more than enough | |
4627 | test $ac_count -gt 10 && break | |
4628 | done | |
4629 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
4630 | esac | |
4631 | ||
4632 | $ac_path_EGREP_found && break 3 | |
4633 | done | |
4634 | done | |
4635 | done | |
4636 | IFS=$as_save_IFS | |
4637 | if test -z "$ac_cv_path_EGREP"; then | |
5d4aa1f5 | 4638 | as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
8f223b3e FCE |
4639 | fi |
4640 | else | |
4641 | ac_cv_path_EGREP=$EGREP | |
4642 | fi | |
4643 | ||
4644 | fi | |
4645 | fi | |
4646 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 | |
4647 | $as_echo "$ac_cv_path_EGREP" >&6; } | |
4648 | EGREP="$ac_cv_path_EGREP" | |
4649 | ||
4650 | ||
4651 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 | |
4652 | $as_echo_n "checking for ANSI C header files... " >&6; } | |
c3de29bd | 4653 | if ${ac_cv_header_stdc+:} false; then : |
0710d850 | 4654 | $as_echo_n "(cached) " >&6 |
2f1a1aea | 4655 | else |
1ef0423a | 4656 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
2f1a1aea | 4657 | /* end confdefs.h. */ |
8f223b3e FCE |
4658 | #include <stdlib.h> |
4659 | #include <stdarg.h> | |
4660 | #include <string.h> | |
4661 | #include <float.h> | |
2f1a1aea FCE |
4662 | |
4663 | int | |
4664 | main () | |
4665 | { | |
2f1a1aea FCE |
4666 | |
4667 | ; | |
4668 | return 0; | |
4669 | } | |
4670 | _ACEOF | |
8f223b3e FCE |
4671 | if ac_fn_c_try_compile "$LINENO"; then : |
4672 | ac_cv_header_stdc=yes | |
2f1a1aea | 4673 | else |
8f223b3e | 4674 | ac_cv_header_stdc=no |
2f1a1aea | 4675 | fi |
7fbd9d09 | 4676 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
2f1a1aea | 4677 | |
8f223b3e FCE |
4678 | if test $ac_cv_header_stdc = yes; then |
4679 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
4680 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4681 | /* end confdefs.h. */ | |
4682 | #include <string.h> | |
4683 | ||
4684 | _ACEOF | |
4685 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
4686 | $EGREP "memchr" >/dev/null 2>&1; then : | |
4687 | ||
0710d850 | 4688 | else |
8f223b3e | 4689 | ac_cv_header_stdc=no |
0710d850 | 4690 | fi |
8f223b3e | 4691 | rm -f conftest* |
2f1a1aea | 4692 | |
8f223b3e FCE |
4693 | fi |
4694 | ||
4695 | if test $ac_cv_header_stdc = yes; then | |
4696 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
4697 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4698 | /* end confdefs.h. */ | |
4699 | #include <stdlib.h> | |
2f1a1aea | 4700 | |
2f1a1aea | 4701 | _ACEOF |
8f223b3e FCE |
4702 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
4703 | $EGREP "free" >/dev/null 2>&1; then : | |
4704 | ||
2f1a1aea | 4705 | else |
8f223b3e FCE |
4706 | ac_cv_header_stdc=no |
4707 | fi | |
4708 | rm -f conftest* | |
4709 | ||
4710 | fi | |
4711 | ||
4712 | if test $ac_cv_header_stdc = yes; then | |
4713 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
4714 | if test "$cross_compiling" = yes; then : | |
4715 | : | |
4716 | else | |
4717 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2f1a1aea | 4718 | /* end confdefs.h. */ |
8f223b3e FCE |
4719 | #include <ctype.h> |
4720 | #include <stdlib.h> | |
4721 | #if ((' ' & 0x0FF) == 0x020) | |
4722 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
4723 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
4724 | #else | |
4725 | # define ISLOWER(c) \ | |
4726 | (('a' <= (c) && (c) <= 'i') \ | |
4727 | || ('j' <= (c) && (c) <= 'r') \ | |
4728 | || ('s' <= (c) && (c) <= 'z')) | |
4729 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
4730 | #endif | |
7fbd9d09 | 4731 | |
8f223b3e | 4732 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
2f1a1aea FCE |
4733 | int |
4734 | main () | |
4735 | { | |
8f223b3e FCE |
4736 | int i; |
4737 | for (i = 0; i < 256; i++) | |
4738 | if (XOR (islower (i), ISLOWER (i)) | |
4739 | || toupper (i) != TOUPPER (i)) | |
4740 | return 2; | |
2f1a1aea FCE |
4741 | return 0; |
4742 | } | |
4743 | _ACEOF | |
8f223b3e | 4744 | if ac_fn_c_try_run "$LINENO"; then : |
5e5aee9f | 4745 | |
1ef0423a | 4746 | else |
8f223b3e FCE |
4747 | ac_cv_header_stdc=no |
4748 | fi | |
4749 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
4750 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
4751 | fi | |
4752 | ||
4753 | fi | |
4754 | fi | |
4755 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 | |
4756 | $as_echo "$ac_cv_header_stdc" >&6; } | |
4757 | if test $ac_cv_header_stdc = yes; then | |
4758 | ||
4759 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h | |
4760 | ||
4761 | fi | |
4762 | ||
4763 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | |
4764 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
4765 | inttypes.h stdint.h unistd.h | |
4766 | do : | |
4767 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
4768 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default | |
4769 | " | |
5d4aa1f5 | 4770 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
8f223b3e FCE |
4771 | cat >>confdefs.h <<_ACEOF |
4772 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
4773 | _ACEOF | |
4774 | ||
4775 | fi | |
4776 | ||
4777 | done | |
4778 | ||
4779 | ||
4780 | ||
4781 | ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" | |
c3de29bd | 4782 | if test "x$ac_cv_header_minix_config_h" = xyes; then : |
8f223b3e FCE |
4783 | MINIX=yes |
4784 | else | |
4785 | MINIX= | |
4786 | fi | |
4787 | ||
4788 | ||
4789 | if test "$MINIX" = yes; then | |
4790 | ||
4791 | $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h | |
4792 | ||
4793 | ||
4794 | $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h | |
4795 | ||
4796 | ||
4797 | $as_echo "#define _MINIX 1" >>confdefs.h | |
4798 | ||
4799 | fi | |
4800 | ||
4801 | ||
4802 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 | |
4803 | $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } | |
c3de29bd | 4804 | if ${ac_cv_safe_to_define___extensions__+:} false; then : |
8f223b3e FCE |
4805 | $as_echo_n "(cached) " >&6 |
4806 | else | |
4807 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2f1a1aea | 4808 | /* end confdefs.h. */ |
7fbd9d09 | 4809 | |
8eef2738 LB |
4810 | # define __EXTENSIONS__ 1 |
4811 | $ac_includes_default | |
2f1a1aea FCE |
4812 | int |
4813 | main () | |
4814 | { | |
7fbd9d09 | 4815 | |
2f1a1aea FCE |
4816 | ; |
4817 | return 0; | |
4818 | } | |
4a3c19da | 4819 | _ACEOF |
8f223b3e FCE |
4820 | if ac_fn_c_try_compile "$LINENO"; then : |
4821 | ac_cv_safe_to_define___extensions__=yes | |
4822 | else | |
4823 | ac_cv_safe_to_define___extensions__=no | |
5e0d2ebf | 4824 | fi |
7fbd9d09 | 4825 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
7fbd9d09 | 4826 | fi |
8f223b3e FCE |
4827 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 |
4828 | $as_echo "$ac_cv_safe_to_define___extensions__" >&6; } | |
4829 | test $ac_cv_safe_to_define___extensions__ = yes && | |
4830 | $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h | |
2f1a1aea | 4831 | |
8f223b3e | 4832 | $as_echo "#define _ALL_SOURCE 1" >>confdefs.h |
2f1a1aea | 4833 | |
8f223b3e | 4834 | $as_echo "#define _GNU_SOURCE 1" >>confdefs.h |
2f1a1aea | 4835 | |
8f223b3e | 4836 | $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h |
0710d850 | 4837 | |
8f223b3e | 4838 | $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h |
2f1a1aea | 4839 | |
2f1a1aea | 4840 | |
8eef2738 | 4841 | |
2f1a1aea | 4842 | |
8f223b3e FCE |
4843 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 |
4844 | $as_echo_n "checking whether ln -s works... " >&6; } | |
4845 | LN_S=$as_ln_s | |
4846 | if test "$LN_S" = "ln -s"; then | |
4847 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
4848 | $as_echo "yes" >&6; } | |
2f1a1aea | 4849 | else |
8f223b3e FCE |
4850 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 |
4851 | $as_echo "no, using $LN_S" >&6; } | |
2f1a1aea FCE |
4852 | fi |
4853 | ||
2f1a1aea FCE |
4854 | ac_ext=c |
4855 | ac_cpp='$CPP $CPPFLAGS' | |
4856 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4857 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4858 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
8f223b3e FCE |
4859 | if test -n "$ac_tool_prefix"; then |
4860 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
4861 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
4862 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4863 | $as_echo_n "checking for $ac_word... " >&6; } | |
c3de29bd | 4864 | if ${ac_cv_prog_CC+:} false; then : |
0710d850 | 4865 | $as_echo_n "(cached) " >&6 |
2f1a1aea | 4866 | else |
8f223b3e FCE |
4867 | if test -n "$CC"; then |
4868 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2f1a1aea FCE |
4869 | else |
4870 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4871 | for as_dir in $PATH | |
4872 | do | |
4873 | IFS=$as_save_IFS | |
4874 | test -z "$as_dir" && as_dir=. | |
1ef0423a | 4875 | for ac_exec_ext in '' $ac_executable_extensions; do |
8eef2738 | 4876 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
2f1a1aea | 4877 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
1ef0423a | 4878 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2f1a1aea FCE |
4879 | break 2 |
4880 | fi | |
4881 | done | |
1ef0423a | 4882 | done |
7fbd9d09 | 4883 | IFS=$as_save_IFS |
2f1a1aea FCE |
4884 | |
4885 | fi | |
4886 | fi | |
4887 | CC=$ac_cv_prog_CC | |
4888 | if test -n "$CC"; then | |
1ef0423a | 4889 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
0710d850 | 4890 | $as_echo "$CC" >&6; } |
2f1a1aea | 4891 | else |
1ef0423a | 4892 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
0710d850 | 4893 | $as_echo "no" >&6; } |
2f1a1aea FCE |
4894 | fi |
4895 | ||
7fbd9d09 | 4896 | |
2f1a1aea FCE |
4897 | fi |
4898 | if test -z "$ac_cv_prog_CC"; then | |
4899 | ac_ct_CC=$CC | |
4900 | # Extract the first word of "gcc", so it can be a program name with args. | |
4901 | set dummy gcc; ac_word=$2 | |
1ef0423a | 4902 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
0710d850 | 4903 | $as_echo_n "checking for $ac_word... " >&6; } |
c3de29bd | 4904 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
0710d850 | 4905 | $as_echo_n "(cached) " >&6 |
2f1a1aea FCE |
4906 | else |
4907 | if test -n "$ac_ct_CC"; then | |
4908 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
4909 | else | |
4910 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4911 | for as_dir in $PATH | |
4912 | do | |
4913 | IFS=$as_save_IFS | |
4914 | test -z "$as_dir" && as_dir=. | |
1ef0423a | 4915 | for ac_exec_ext in '' $ac_executable_extensions; do |
8eef2738 | 4916 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
2f1a1aea | 4917 | ac_cv_prog_ac_ct_CC="gcc" |
1ef0423a | 4918 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2f1a1aea FCE |
4919 | break 2 |
4920 | fi | |
4921 | done | |
1ef0423a | 4922 | done |
7fbd9d09 | 4923 | IFS=$as_save_IFS |
2f1a1aea FCE |
4924 | |
4925 | fi | |
4926 | fi | |
4927 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
4928 | if test -n "$ac_ct_CC"; then | |
1ef0423a | 4929 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
0710d850 | 4930 | $as_echo "$ac_ct_CC" >&6; } |
2f1a1aea | 4931 | else |
1ef0423a | 4932 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
0710d850 | 4933 | $as_echo "no" >&6; } |
2f1a1aea FCE |
4934 | fi |
4935 | ||
7fbd9d09 FCE |
4936 | if test "x$ac_ct_CC" = x; then |
4937 | CC="" | |
4938 | else | |
4939 | case $cross_compiling:$ac_tool_warned in | |
4940 | yes:) | |
1ef0423a | 4941 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
0710d850 | 4942 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
7fbd9d09 FCE |
4943 | ac_tool_warned=yes ;; |
4944 | esac | |
4945 | CC=$ac_ct_CC | |
4946 | fi | |
2f1a1aea FCE |
4947 | else |
4948 | CC="$ac_cv_prog_CC" | |
4949 | fi | |
4950 | ||
4951 | if test -z "$CC"; then | |
7fbd9d09 FCE |
4952 | if test -n "$ac_tool_prefix"; then |
4953 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
2f1a1aea | 4954 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
1ef0423a | 4955 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
0710d850 | 4956 | $as_echo_n "checking for $ac_word... " >&6; } |
c3de29bd | 4957 | if ${ac_cv_prog_CC+:} false; then : |
0710d850 | 4958 | $as_echo_n "(cached) " >&6 |
2f1a1aea FCE |
4959 | else |
4960 | if test -n "$CC"; then | |
4961 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4962 | else | |
4963 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4964 | for as_dir in $PATH | |
4965 | do | |
4966 | IFS=$as_save_IFS | |
4967 | test -z "$as_dir" && as_dir=. | |
1ef0423a | 4968 | for ac_exec_ext in '' $ac_executable_extensions; do |
8eef2738 | 4969 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
2f1a1aea | 4970 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
1ef0423a | 4971 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2f1a1aea FCE |
4972 | break 2 |
4973 | fi | |
4974 | done | |
1ef0423a | 4975 | done |
7fbd9d09 | 4976 | IFS=$as_save_IFS |
2f1a1aea FCE |
4977 | |
4978 | fi | |
4979 | fi | |
4980 | CC=$ac_cv_prog_CC | |
4981 | if test -n "$CC"; then | |
1ef0423a | 4982 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
0710d850 | 4983 | $as_echo "$CC" >&6; } |
818ba2bc | 4984 | else |
1ef0423a | 4985 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
0710d850 | 4986 | $as_echo "no" >&6; } |
818ba2bc MW |
4987 | fi |
4988 | ||
818ba2bc | 4989 | |
7fbd9d09 | 4990 | fi |
8ae7a94a FCE |
4991 | fi |
4992 | if test -z "$CC"; then | |
4993 | # Extract the first word of "cc", so it can be a program name with args. | |
4994 | set dummy cc; ac_word=$2 | |
1ef0423a | 4995 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
0710d850 | 4996 | $as_echo_n "checking for $ac_word... " >&6; } |
c3de29bd | 4997 | if ${ac_cv_prog_CC+:} false; then : |
0710d850 | 4998 | $as_echo_n "(cached) " >&6 |
8ae7a94a FCE |
4999 | else |
5000 | if test -n "$CC"; then | |
2f1a1aea FCE |
5001 | ac_cv_prog_CC="$CC" # Let the user override the test. |
5002 | else | |
5003 | ac_prog_rejected=no | |
5004 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5005 | for as_dir in $PATH | |
5006 | do | |
5007 | IFS=$as_save_IFS | |
5008 | test -z "$as_dir" && as_dir=. | |
1ef0423a | 5009 | for ac_exec_ext in '' $ac_executable_extensions; do |
8eef2738 | 5010 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
2f1a1aea FCE |
5011 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
5012 | ac_prog_rejected=yes | |
5013 | continue | |
5014 | fi | |
5015 | ac_cv_prog_CC="cc" | |
1ef0423a | 5016 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2f1a1aea FCE |
5017 | break 2 |
5018 | fi | |
5019 | done | |
1ef0423a | 5020 | done |
7fbd9d09 | 5021 | IFS=$as_save_IFS |
2f1a1aea FCE |
5022 | |
5023 | if test $ac_prog_rejected = yes; then | |
5024 | # We found a bogon in the path, so make sure we never use it. | |
5025 | set dummy $ac_cv_prog_CC | |
5026 | shift | |
5027 | if test $# != 0; then | |
5028 | # We chose a different compiler from the bogus one. | |
5029 | # However, it has the same basename, so the bogon will be chosen | |
5030 | # first if we set CC to just the basename; use the full file name. | |
5031 | shift | |
5032 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
5033 | fi | |
5034 | fi | |
5035 | fi | |
5036 | fi | |
5037 | CC=$ac_cv_prog_CC | |
5038 | if test -n "$CC"; then | |
1ef0423a | 5039 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
0710d850 | 5040 | $as_echo "$CC" >&6; } |
2f1a1aea | 5041 | else |
1ef0423a | 5042 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
0710d850 | 5043 | $as_echo "no" >&6; } |
2f1a1aea FCE |
5044 | fi |
5045 | ||
7fbd9d09 | 5046 | |
2f1a1aea FCE |
5047 | fi |
5048 | if test -z "$CC"; then | |
5049 | if test -n "$ac_tool_prefix"; then | |
7fbd9d09 | 5050 | for ac_prog in cl.exe |
2f1a1aea FCE |
5051 | do |
5052 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
5053 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
1ef0423a | 5054 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
0710d850 | 5055 | $as_echo_n "checking for $ac_word... " >&6; } |
c3de29bd | 5056 | if ${ac_cv_prog_CC+:} false; then : |
0710d850 | 5057 | $as_echo_n "(cached) " >&6 |
2f1a1aea FCE |
5058 | else |
5059 | if test -n "$CC"; then | |
5060 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
5061 | else | |
5062 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5063 | for as_dir in $PATH | |
5064 | do | |
5065 | IFS=$as_save_IFS | |
5066 | test -z "$as_dir" && as_dir=. | |
1ef0423a | 5067 | for ac_exec_ext in '' $ac_executable_extensions; do |
8eef2738 | 5068 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
2f1a1aea | 5069 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
1ef0423a | 5070 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2f1a1aea FCE |
5071 | break 2 |
5072 | fi | |
5073 | done | |
1ef0423a | 5074 | done |
7fbd9d09 | 5075 | IFS=$as_save_IFS |
2f1a1aea FCE |
5076 | |
5077 | fi | |
5078 | fi | |
5079 | CC=$ac_cv_prog_CC | |
5080 | if test -n "$CC"; then | |
1ef0423a | 5081 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
0710d850 | 5082 | $as_echo "$CC" >&6; } |
2f1a1aea | 5083 | else |
1ef0423a | 5084 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
0710d850 | 5085 | $as_echo "no" >&6; } |
2f1a1aea FCE |
5086 | fi |
5087 | ||
7fbd9d09 | 5088 | |
2f1a1aea FCE |
5089 | test -n "$CC" && break |
5090 | done | |
5091 | fi | |
5092 | if test -z "$CC"; then | |
5093 | ac_ct_CC=$CC | |
7fbd9d09 | 5094 | for ac_prog in cl.exe |
2f1a1aea FCE |
5095 | do |
5096 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
5097 | set dummy $ac_prog; ac_word=$2 | |
1ef0423a | 5098 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
0710d850 | 5099 | $as_echo_n "checking for $ac_word... " >&6; } |
c3de29bd | 5100 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
0710d850 | 5101 | $as_echo_n "(cached) " >&6 |
2f1a1aea FCE |
5102 | else |
5103 | if test -n "$ac_ct_CC"; then | |
5104 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
5105 | else | |
5106 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5107 | for as_dir in $PATH | |
5108 | do | |
5109 | IFS=$as_save_IFS | |
5110 | test -z "$as_dir" && as_dir=. | |
1ef0423a | 5111 | for ac_exec_ext in '' $ac_executable_extensions; do |
8eef2738 | 5112 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
2f1a1aea | 5113 | ac_cv_prog_ac_ct_CC="$ac_prog" |
1ef0423a | 5114 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2f1a1aea FCE |
5115 | break 2 |
5116 | fi | |
5117 | done | |
1ef0423a | 5118 | done |
7fbd9d09 | 5119 | IFS=$as_save_IFS |
2f1a1aea FCE |
5120 | |
5121 | fi | |
5122 | fi | |
5123 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
5124 | if test -n "$ac_ct_CC"; then | |
1ef0423a | 5125 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
0710d850 | 5126 | $as_echo "$ac_ct_CC" >&6; } |
2f1a1aea | 5127 | else |
1ef0423a | 5128 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
0710d850 | 5129 | $as_echo "no" >&6; } |
2f1a1aea FCE |
5130 | fi |
5131 | ||
7fbd9d09 | 5132 | |
2f1a1aea FCE |
5133 | test -n "$ac_ct_CC" && break |
5134 | done | |
5135 | ||
7fbd9d09 FCE |
5136 | if test "x$ac_ct_CC" = x; then |
5137 | CC="" | |
5138 | else | |
5139 | case $cross_compiling:$ac_tool_warned in | |
5140 | yes:) | |
1ef0423a | 5141 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
0710d850 | 5142 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
7fbd9d09 FCE |
5143 | ac_tool_warned=yes ;; |
5144 | esac | |
5145 | CC=$ac_ct_CC | |
5146 | fi | |
2f1a1aea FCE |
5147 | fi |
5148 | ||
5149 | fi | |
5150 | ||
5151 | ||
1ef0423a | 5152 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
0710d850 | 5153 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
5d4aa1f5 FCE |
5154 | as_fn_error $? "no acceptable C compiler found in \$PATH |
5155 | See \`config.log' for more details" "$LINENO" 5; } | |
2f1a1aea FCE |
5156 | |
5157 | # Provide some information about the compiler. | |
1ef0423a | 5158 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
0710d850 DS |
5159 | set X $ac_compile |
5160 | ac_compiler=$2 | |
1ef0423a FCE |
5161 | for ac_option in --version -v -V -qversion; do |
5162 | { { ac_try="$ac_compiler $ac_option >&5" | |
5e5aee9f FCE |
5163 | case "(($ac_try" in |
5164 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5165 | *) ac_try_echo=$ac_try;; | |
5166 | esac | |
1ef0423a FCE |
5167 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
5168 | $as_echo "$ac_try_echo"; } >&5 | |
5169 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
5e5aee9f | 5170 | ac_status=$? |
1ef0423a FCE |
5171 | if test -s conftest.err; then |
5172 | sed '10a\ | |
5173 | ... rest of stderr output deleted ... | |
5174 | 10q' conftest.err >conftest.er1 | |
5175 | cat conftest.er1 >&5 | |
5176 | fi | |
5177 | rm -f conftest.er1 conftest.err | |
5178 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
5179 | test $ac_status = 0; } | |
5180 | done | |
2f1a1aea | 5181 | |
1ef0423a | 5182 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
0710d850 | 5183 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } |
c3de29bd | 5184 | if ${ac_cv_c_compiler_gnu+:} false; then : |
0710d850 | 5185 | $as_echo_n "(cached) " >&6 |
2f1a1aea | 5186 | else |
1ef0423a | 5187 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
2f1a1aea FCE |
5188 | /* end confdefs.h. */ |
5189 | ||
5190 | int | |
5191 | main () | |
5192 | { | |
5193 | #ifndef __GNUC__ | |
5194 | choke me | |
5195 | #endif | |
5196 | ||
5197 | ; | |
5198 | return 0; | |
5199 | } | |
5200 | _ACEOF | |
1ef0423a | 5201 | if ac_fn_c_try_compile "$LINENO"; then : |
2f1a1aea FCE |
5202 | ac_compiler_gnu=yes |
5203 | else | |
1ef0423a | 5204 | ac_compiler_gnu=no |
2f1a1aea | 5205 | fi |
7fbd9d09 | 5206 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
2f1a1aea FCE |
5207 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
5208 | ||
5209 | fi | |
1ef0423a | 5210 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
0710d850 DS |
5211 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } |
5212 | if test $ac_compiler_gnu = yes; then | |
5213 | GCC=yes | |
5214 | else | |
5215 | GCC= | |
5216 | fi | |
2f1a1aea FCE |
5217 | ac_test_CFLAGS=${CFLAGS+set} |
5218 | ac_save_CFLAGS=$CFLAGS | |
1ef0423a | 5219 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
0710d850 | 5220 | $as_echo_n "checking whether $CC accepts -g... " >&6; } |
c3de29bd | 5221 | if ${ac_cv_prog_cc_g+:} false; then : |
0710d850 | 5222 | $as_echo_n "(cached) " >&6 |
2f1a1aea | 5223 | else |
7fbd9d09 FCE |
5224 | ac_save_c_werror_flag=$ac_c_werror_flag |
5225 | ac_c_werror_flag=yes | |
5226 | ac_cv_prog_cc_g=no | |
5227 | CFLAGS="-g" | |
1ef0423a | 5228 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
2f1a1aea FCE |
5229 | /* end confdefs.h. */ |
5230 | ||
5231 | int | |
5232 | main () | |
5233 | { | |
5234 | ||
5235 | ; | |
5236 | return 0; | |
5237 | } | |
5238 | _ACEOF | |
1ef0423a | 5239 | if ac_fn_c_try_compile "$LINENO"; then : |
7fbd9d09 FCE |
5240 | ac_cv_prog_cc_g=yes |
5241 | else | |
1ef0423a FCE |
5242 | CFLAGS="" |
5243 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7fbd9d09 FCE |
5244 | /* end confdefs.h. */ |
5245 | ||
5246 | int | |
5247 | main () | |
5248 | { | |
5249 | ||
5250 | ; | |
5251 | return 0; | |
5252 | } | |
5253 | _ACEOF | |
1ef0423a | 5254 | if ac_fn_c_try_compile "$LINENO"; then : |
5e5aee9f | 5255 | |
1ef0423a FCE |
5256 | else |
5257 | ac_c_werror_flag=$ac_save_c_werror_flag | |
7fbd9d09 | 5258 | CFLAGS="-g" |
1ef0423a | 5259 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7fbd9d09 FCE |
5260 | /* end confdefs.h. */ |
5261 | ||
5262 | int | |
5263 | main () | |
5264 | { | |
5265 | ||
5266 | ; | |
5267 | return 0; | |
5268 | } | |
5269 | _ACEOF | |
1ef0423a | 5270 | if ac_fn_c_try_compile "$LINENO"; then : |
5e0d2ebf | 5271 | ac_cv_prog_cc_g=yes |
7fbd9d09 | 5272 | fi |
7fbd9d09 FCE |
5273 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
5274 | fi | |
7fbd9d09 | 5275 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
5e0d2ebf | 5276 | fi |
7fbd9d09 FCE |
5277 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
5278 | ac_c_werror_flag=$ac_save_c_werror_flag | |
70d28673 | 5279 | fi |
1ef0423a | 5280 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 |
0710d850 | 5281 | $as_echo "$ac_cv_prog_cc_g" >&6; } |
70d28673 DS |
5282 | if test "$ac_test_CFLAGS" = set; then |
5283 | CFLAGS=$ac_save_CFLAGS | |
5284 | elif test $ac_cv_prog_cc_g = yes; then | |
5285 | if test "$GCC" = yes; then | |
5286 | CFLAGS="-g -O2" | |
5287 | else | |
5288 | CFLAGS="-g" | |
5289 | fi | |
5290 | else | |
5291 | if test "$GCC" = yes; then | |
5292 | CFLAGS="-O2" | |
5293 | else | |
5294 | CFLAGS= | |
5295 | fi | |
5296 | fi | |
1ef0423a | 5297 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
0710d850 | 5298 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } |
c3de29bd | 5299 | if ${ac_cv_prog_cc_c89+:} false; then : |
0710d850 | 5300 | $as_echo_n "(cached) " >&6 |
70d28673 | 5301 | else |
7fbd9d09 | 5302 | ac_cv_prog_cc_c89=no |
70d28673 | 5303 | ac_save_CC=$CC |
1ef0423a | 5304 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
2f1a1aea | 5305 | /* end confdefs.h. */ |
70d28673 DS |
5306 | #include <stdarg.h> |
5307 | #include <stdio.h> | |
8eef2738 | 5308 | struct stat; |
70d28673 DS |
5309 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
5310 | struct buf { int x; }; | |
5311 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
5312 | static char *e (p, i) | |
5313 | char **p; | |
5314 | int i; | |
5315 | { | |
5316 | return p[i]; | |
5317 | } | |
5318 | static char *f (char * (*g) (char **, int), char **p, ...) | |
5319 | { | |
5320 | char *s; | |
5321 | va_list v; | |
5322 | va_start (v,p); | |
5323 | s = g (p, va_arg (v,int)); | |
5324 | va_end (v); | |
5325 | return s; | |
5326 | } | |
5327 | ||
5328 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
5329 | function prototypes and stuff, but not '\xHH' hex character constants. | |
5330 | These don't provoke an error unfortunately, instead are silently treated | |
7fbd9d09 | 5331 | as 'x'. The following induces an error, until -std is added to get |
70d28673 DS |
5332 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
5333 | array size at least. It's necessary to write '\x00'==0 to get something | |
7fbd9d09 | 5334 | that's true only with -std. */ |
70d28673 DS |
5335 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
5336 | ||
7fbd9d09 FCE |
5337 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
5338 | inside strings and character constants. */ | |
5339 | #define FOO(x) 'x' | |
5340 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
5341 | ||
70d28673 DS |
5342 | int test (int i, double x); |
5343 | struct s1 {int (*f) (int a);}; | |
5344 | struct s2 {int (*f) (double a);}; | |
5345 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
5346 | int argc; | |
5347 | char **argv; | |
2f1a1aea FCE |
5348 | int |
5349 | main () | |
5350 | { | |
70d28673 | 5351 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
2f1a1aea FCE |
5352 | ; |
5353 | return 0; | |
5354 | } | |
5355 | _ACEOF | |
7fbd9d09 FCE |
5356 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
5357 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
70d28673 DS |
5358 | do |
5359 | CC="$ac_save_CC $ac_arg" | |
1ef0423a | 5360 | if ac_fn_c_try_compile "$LINENO"; then : |
7fbd9d09 | 5361 | ac_cv_prog_cc_c89=$ac_arg |
2f1a1aea | 5362 | fi |
7fbd9d09 FCE |
5363 | rm -f core conftest.err conftest.$ac_objext |
5364 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
2f1a1aea | 5365 | done |
7fbd9d09 | 5366 | rm -f conftest.$ac_ext |
70d28673 DS |
5367 | CC=$ac_save_CC |
5368 | ||
2f1a1aea | 5369 | fi |
7fbd9d09 FCE |
5370 | # AC_CACHE_VAL |
5371 | case "x$ac_cv_prog_cc_c89" in | |
5372 | x) | |
1ef0423a | 5373 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
0710d850 | 5374 | $as_echo "none needed" >&6; } ;; |
7fbd9d09 | 5375 | xno) |
1ef0423a | 5376 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
0710d850 | 5377 | $as_echo "unsupported" >&6; } ;; |
70d28673 | 5378 | *) |
7fbd9d09 | 5379 | CC="$CC $ac_cv_prog_cc_c89" |
1ef0423a | 5380 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 |
0710d850 | 5381 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; |
70d28673 | 5382 | esac |
1ef0423a | 5383 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
2f1a1aea | 5384 | |
1ef0423a | 5385 | fi |
2f1a1aea | 5386 | |
2f1a1aea FCE |
5387 | ac_ext=c |
5388 | ac_cpp='$CPP $CPPFLAGS' | |
5389 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5390 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5391 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5392 | ||
46c282e4 FCE |
5393 | ac_ext=c |
5394 | ac_cpp='$CPP $CPPFLAGS' | |
5395 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5396 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5397 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5398 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 | |
5399 | $as_echo_n "checking whether $CC understands -c and -o together... " >&6; } | |
5400 | if ${am_cv_prog_cc_c_o+:} false; then : | |
5401 | $as_echo_n "(cached) " >&6 | |
5402 | else | |
5403 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5404 | /* end confdefs.h. */ | |
5405 | ||
5406 | int | |
5407 | main () | |
5408 | { | |
5409 | ||
5410 | ; | |
5411 | return 0; | |
5412 | } | |
5413 | _ACEOF | |
5414 | # Make sure it works both with $CC and with simple cc. | |
5415 | # Following AC_PROG_CC_C_O, we do the test twice because some | |
5416 | # compilers refuse to overwrite an existing .o file with -o, | |
5417 | # though they will create one. | |
5418 | am_cv_prog_cc_c_o=yes | |
5419 | for am_i in 1 2; do | |
5420 | if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 | |
5421 | ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 | |
5422 | ac_status=$? | |
5423 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5424 | (exit $ac_status); } \ | |
5425 | && test -f conftest2.$ac_objext; then | |
5426 | : OK | |
5427 | else | |
5428 | am_cv_prog_cc_c_o=no | |
5429 | break | |
5430 | fi | |
5431 | done | |
5432 | rm -f core conftest* | |
5433 | unset am_i | |
5434 | fi | |
5435 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 | |
5436 | $as_echo "$am_cv_prog_cc_c_o" >&6; } | |
5437 | if test "$am_cv_prog_cc_c_o" != yes; then | |
5438 | # Losing compiler, so override with the script. | |
5439 | # FIXME: It is wrong to rewrite CC. | |
5440 | # But if we don't then we get into trouble of one sort or another. | |
5441 | # A longer-term fix would be to have automake use am__CC in this case, | |
5442 | # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" | |
5443 | CC="$am_aux_dir/compile $CC" | |
5444 | fi | |
5445 | ac_ext=c | |
5446 | ac_cpp='$CPP $CPPFLAGS' | |
5447 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5448 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5449 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5450 | ||
5451 | ||
2f1a1aea FCE |
5452 | depcc="$CC" am_compiler_list= |
5453 | ||
1ef0423a | 5454 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 |
0710d850 | 5455 | $as_echo_n "checking dependency style of $depcc... " >&6; } |
c3de29bd | 5456 | if ${am_cv_CC_dependencies_compiler_type+:} false; then : |
0710d850 | 5457 | $as_echo_n "(cached) " >&6 |
2f1a1aea FCE |
5458 | else |
5459 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | |
5460 | # We make a subdir and do the tests there. Otherwise we can end up | |
5461 | # making bogus files that we don't know about and never remove. For | |
5462 | # instance it was reported that on HP-UX the gcc test will end up | |
8eef2738 LB |
5463 | # making a dummy file named 'D' -- because '-MD' means "put the output |
5464 | # in D". | |
c66be968 | 5465 | rm -rf conftest.dir |
2f1a1aea FCE |
5466 | mkdir conftest.dir |
5467 | # Copy depcomp to subdir because otherwise we won't find it if we're | |
5468 | # using a relative directory. | |
5469 | cp "$am_depcomp" conftest.dir | |
5470 | cd conftest.dir | |
5471 | # We will build objects and dependencies in a subdirectory because | |
5472 | # it helps to detect inapplicable dependency modes. For instance | |
5473 | # both Tru64's cc and ICC support -MD to output dependencies as a | |
5474 | # side effect of compilation, but ICC will put the dependencies in | |
5475 | # the current directory while Tru64 will put them in the object | |
5476 | # directory. | |
5477 | mkdir sub | |
5478 | ||
5479 | am_cv_CC_dependencies_compiler_type=none | |
5480 | if test "$am_compiler_list" = ""; then | |
5481 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
5482 | fi | |
0710d850 DS |
5483 | am__universal=false |
5484 | case " $depcc " in #( | |
5485 | *\ -arch\ *\ -arch\ *) am__universal=true ;; | |
5486 | esac | |
5487 | ||
2f1a1aea FCE |
5488 | for depmode in $am_compiler_list; do |
5489 | # Setup a source with many dependencies, because some compilers | |
5490 | # like to wrap large dependency lists on column 80 (with \), and | |
5491 | # we should not choose a depcomp mode which is confused by this. | |
5492 | # | |
5493 | # We need to recreate these files for each test, as the compiler may | |
5494 | # overwrite some of them when testing with obscure command lines. | |
5495 | # This happens at least with the AIX C compiler. | |
5496 | : > sub/conftest.c | |
5497 | for i in 1 2 3 4 5 6; do | |
5498 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
8eef2738 LB |
5499 | # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with |
5500 | # Solaris 10 /bin/sh. | |
5501 | echo '/* dummy */' > sub/conftst$i.h | |
2f1a1aea FCE |
5502 | done |
5503 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
5504 | ||
8eef2738 | 5505 | # We check with '-c' and '-o' for the sake of the "dashmstdout" |
0710d850 | 5506 | # mode. It turns out that the SunPro C++ compiler does not properly |
8eef2738 LB |
5507 | # handle '-M -o', and we need to detect this. Also, some Intel |
5508 | # versions had trouble with output in subdirs. | |
0710d850 DS |
5509 | am__obj=sub/conftest.${OBJEXT-o} |
5510 | am__minus_obj="-o $am__obj" | |
2f1a1aea | 5511 | case $depmode in |
0710d850 DS |
5512 | gcc) |
5513 | # This depmode causes a compiler race in universal mode. | |
5514 | test "$am__universal" = false || continue | |
5515 | ;; | |
2f1a1aea | 5516 | nosideeffect) |
8eef2738 LB |
5517 | # After this tag, mechanisms are not by side-effect, so they'll |
5518 | # only be used when explicitly requested. | |
2f1a1aea FCE |
5519 | if test "x$enable_dependency_tracking" = xyes; then |
5520 | continue | |
5521 | else | |
5522 | break | |
5523 | fi | |
5524 | ;; | |
c66be968 | 5525 | msvc7 | msvc7msys | msvisualcpp | msvcmsys) |
8eef2738 | 5526 | # This compiler won't grok '-c -o', but also, the minuso test has |
0710d850 DS |
5527 | # not run yet. These depmodes are late enough in the game, and |
5528 | # so weak that their functioning should not be impacted. | |
5529 | am__obj=conftest.${OBJEXT-o} | |
5530 | am__minus_obj= | |
5531 | ;; | |
2f1a1aea FCE |
5532 | none) break ;; |
5533 | esac | |
2f1a1aea | 5534 | if depmode=$depmode \ |
0710d850 | 5535 | source=sub/conftest.c object=$am__obj \ |
2f1a1aea | 5536 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
0710d850 | 5537 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ |
2f1a1aea | 5538 | >/dev/null 2>conftest.err && |
7fbd9d09 | 5539 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && |
2f1a1aea | 5540 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
0710d850 | 5541 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && |
2f1a1aea FCE |
5542 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
5543 | # icc doesn't choke on unknown options, it will just issue warnings | |
5544 | # or remarks (even with -Werror). So we grep stderr for any message | |
5545 | # that says an option was ignored or not supported. | |
5546 | # When given -MP, icc 7.0 and 7.1 complain thusly: | |
5547 | # icc: Command line warning: ignoring option '-M'; no argument required | |
5548 | # The diagnosis changed in icc 8.0: | |
5549 | # icc: Command line remark: option '-MP' not supported | |
5550 | if (grep 'ignoring option' conftest.err || | |
5551 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
5552 | am_cv_CC_dependencies_compiler_type=$depmode | |
5553 | break | |
5554 | fi | |
5555 | fi | |
5556 | done | |
5557 | ||
5558 | cd .. | |
5559 | rm -rf conftest.dir | |
5560 | else | |
5561 | am_cv_CC_dependencies_compiler_type=none | |
5562 | fi | |
5563 | ||
5564 | fi | |
1ef0423a | 5565 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 |
0710d850 | 5566 | $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } |
2f1a1aea FCE |
5567 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type |
5568 | ||
7fbd9d09 | 5569 | if |
2f1a1aea FCE |
5570 | test "x$enable_dependency_tracking" != xno \ |
5571 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then | |
5572 | am__fastdepCC_TRUE= | |
5573 | am__fastdepCC_FALSE='#' | |
5574 | else | |
5575 | am__fastdepCC_TRUE='#' | |
5576 | am__fastdepCC_FALSE= | |
5577 | fi | |
5578 | ||
5579 | ||
8f223b3e FCE |
5580 | ac_ext=cpp |
5581 | ac_cpp='$CXXCPP $CPPFLAGS' | |
5582 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5583 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5584 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
5585 | if test -z "$CXX"; then | |
5586 | if test -n "$CCC"; then | |
5587 | CXX=$CCC | |
5588 | else | |
5589 | if test -n "$ac_tool_prefix"; then | |
5590 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC | |
5591 | do | |
5592 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
5593 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
5594 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5595 | $as_echo_n "checking for $ac_word... " >&6; } | |
c3de29bd | 5596 | if ${ac_cv_prog_CXX+:} false; then : |
8f223b3e FCE |
5597 | $as_echo_n "(cached) " >&6 |
5598 | else | |
5599 | if test -n "$CXX"; then | |
5600 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | |
5601 | else | |
5602 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5603 | for as_dir in $PATH | |
5604 | do | |
5605 | IFS=$as_save_IFS | |
5606 | test -z "$as_dir" && as_dir=. | |
5607 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8eef2738 | 5608 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
8f223b3e FCE |
5609 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
5610 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5611 | break 2 | |
5612 | fi | |
5613 | done | |
5614 | done | |
5615 | IFS=$as_save_IFS | |
2f1a1aea | 5616 | |
8f223b3e FCE |
5617 | fi |
5618 | fi | |
5619 | CXX=$ac_cv_prog_CXX | |
5620 | if test -n "$CXX"; then | |
5621 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 | |
5622 | $as_echo "$CXX" >&6; } | |
8ae7a94a | 5623 | else |
8f223b3e FCE |
5624 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5625 | $as_echo "no" >&6; } | |
8ae7a94a | 5626 | fi |
8f223b3e FCE |
5627 | |
5628 | ||
5629 | test -n "$CXX" && break | |
5630 | done | |
5631 | fi | |
5632 | if test -z "$CXX"; then | |
5633 | ac_ct_CXX=$CXX | |
5634 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC | |
5635 | do | |
5636 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
5637 | set dummy $ac_prog; ac_word=$2 | |
5638 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5639 | $as_echo_n "checking for $ac_word... " >&6; } | |
c3de29bd | 5640 | if ${ac_cv_prog_ac_ct_CXX+:} false; then : |
0710d850 | 5641 | $as_echo_n "(cached) " >&6 |
8ae7a94a | 5642 | else |
8f223b3e FCE |
5643 | if test -n "$ac_ct_CXX"; then |
5644 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. | |
5645 | else | |
5646 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5647 | for as_dir in $PATH | |
5648 | do | |
5649 | IFS=$as_save_IFS | |
5650 | test -z "$as_dir" && as_dir=. | |
5651 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8eef2738 | 5652 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
8f223b3e FCE |
5653 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
5654 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5655 | break 2 | |
5656 | fi | |
5657 | done | |
5658 | done | |
5659 | IFS=$as_save_IFS | |
8ae7a94a | 5660 | |
8f223b3e FCE |
5661 | fi |
5662 | fi | |
5663 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX | |
5664 | if test -n "$ac_ct_CXX"; then | |
5665 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 | |
5666 | $as_echo "$ac_ct_CXX" >&6; } | |
5667 | else | |
5668 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5669 | $as_echo "no" >&6; } | |
5670 | fi | |
8ae7a94a | 5671 | |
8f223b3e FCE |
5672 | |
5673 | test -n "$ac_ct_CXX" && break | |
5674 | done | |
5675 | ||
5676 | if test "x$ac_ct_CXX" = x; then | |
5677 | CXX="g++" | |
5678 | else | |
5679 | case $cross_compiling:$ac_tool_warned in | |
5680 | yes:) | |
5681 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5682 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5683 | ac_tool_warned=yes ;; | |
5684 | esac | |
5685 | CXX=$ac_ct_CXX | |
5686 | fi | |
5687 | fi | |
5688 | ||
5689 | fi | |
5690 | fi | |
5691 | # Provide some information about the compiler. | |
5692 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 | |
5693 | set X $ac_compile | |
5694 | ac_compiler=$2 | |
5695 | for ac_option in --version -v -V -qversion; do | |
5696 | { { ac_try="$ac_compiler $ac_option >&5" | |
5697 | case "(($ac_try" in | |
7fbd9d09 FCE |
5698 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
5699 | *) ac_try_echo=$ac_try;; | |
5700 | esac | |
1ef0423a FCE |
5701 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
5702 | $as_echo "$ac_try_echo"; } >&5 | |
8f223b3e FCE |
5703 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err |
5704 | ac_status=$? | |
5705 | if test -s conftest.err; then | |
5706 | sed '10a\ | |
5707 | ... rest of stderr output deleted ... | |
5708 | 10q' conftest.err >conftest.er1 | |
5709 | cat conftest.er1 >&5 | |
5710 | fi | |
5711 | rm -f conftest.er1 conftest.err | |
5712 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
5713 | test $ac_status = 0; } | |
5714 | done | |
5715 | ||
5716 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 | |
5717 | $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } | |
c3de29bd | 5718 | if ${ac_cv_cxx_compiler_gnu+:} false; then : |
8f223b3e FCE |
5719 | $as_echo_n "(cached) " >&6 |
5720 | else | |
5721 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5722 | /* end confdefs.h. */ | |
5723 | ||
5724 | int | |
5725 | main () | |
5726 | { | |
5727 | #ifndef __GNUC__ | |
5728 | choke me | |
5729 | #endif | |
5730 | ||
5731 | ; | |
5732 | return 0; | |
5733 | } | |
5734 | _ACEOF | |
5735 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
5736 | ac_compiler_gnu=yes | |
5737 | else | |
5738 | ac_compiler_gnu=no | |
5739 | fi | |
5740 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5741 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu | |
5742 | ||
5743 | fi | |
5744 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 | |
5745 | $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } | |
5746 | if test $ac_compiler_gnu = yes; then | |
5747 | GXX=yes | |
5748 | else | |
5749 | GXX= | |
5750 | fi | |
5751 | ac_test_CXXFLAGS=${CXXFLAGS+set} | |
5752 | ac_save_CXXFLAGS=$CXXFLAGS | |
5753 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 | |
5754 | $as_echo_n "checking whether $CXX accepts -g... " >&6; } | |
c3de29bd | 5755 | if ${ac_cv_prog_cxx_g+:} false; then : |
8f223b3e FCE |
5756 | $as_echo_n "(cached) " >&6 |
5757 | else | |
5758 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag | |
5759 | ac_cxx_werror_flag=yes | |
5760 | ac_cv_prog_cxx_g=no | |
5761 | CXXFLAGS="-g" | |
5762 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5763 | /* end confdefs.h. */ | |
5764 | ||
5765 | int | |
5766 | main () | |
5767 | { | |
5768 | ||
5769 | ; | |
5770 | return 0; | |
5771 | } | |
5772 | _ACEOF | |
5773 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
5774 | ac_cv_prog_cxx_g=yes | |
5775 | else | |
5776 | CXXFLAGS="" | |
5777 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5778 | /* end confdefs.h. */ | |
5779 | ||
5780 | int | |
5781 | main () | |
5782 | { | |
5783 | ||
5784 | ; | |
5785 | return 0; | |
5786 | } | |
5787 | _ACEOF | |
5788 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
5789 | ||
5790 | else | |
5791 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag | |
5792 | CXXFLAGS="-g" | |
5793 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5794 | /* end confdefs.h. */ | |
5795 | ||
5796 | int | |
5797 | main () | |
5798 | { | |
5799 | ||
5800 | ; | |
5801 | return 0; | |
5802 | } | |
5803 | _ACEOF | |
5804 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
5805 | ac_cv_prog_cxx_g=yes | |
5806 | fi | |
5807 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5808 | fi | |
5809 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5810 | fi | |
5811 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5812 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag | |
5813 | fi | |
5814 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 | |
5815 | $as_echo "$ac_cv_prog_cxx_g" >&6; } | |
5816 | if test "$ac_test_CXXFLAGS" = set; then | |
5817 | CXXFLAGS=$ac_save_CXXFLAGS | |
5818 | elif test $ac_cv_prog_cxx_g = yes; then | |
5819 | if test "$GXX" = yes; then | |
5820 | CXXFLAGS="-g -O2" | |
5821 | else | |
5822 | CXXFLAGS="-g" | |
5823 | fi | |
5824 | else | |
5825 | if test "$GXX" = yes; then | |
5826 | CXXFLAGS="-O2" | |
5827 | else | |
5828 | CXXFLAGS= | |
5829 | fi | |
5830 | fi | |
5831 | ac_ext=c | |
5832 | ac_cpp='$CPP $CPPFLAGS' | |
5833 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5834 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5835 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5836 | ||
5837 | depcc="$CXX" am_compiler_list= | |
5838 | ||
5839 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 | |
5840 | $as_echo_n "checking dependency style of $depcc... " >&6; } | |
c3de29bd | 5841 | if ${am_cv_CXX_dependencies_compiler_type+:} false; then : |
8f223b3e FCE |
5842 | $as_echo_n "(cached) " >&6 |
5843 | else | |
5844 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | |
5845 | # We make a subdir and do the tests there. Otherwise we can end up | |
5846 | # making bogus files that we don't know about and never remove. For | |
5847 | # instance it was reported that on HP-UX the gcc test will end up | |
8eef2738 LB |
5848 | # making a dummy file named 'D' -- because '-MD' means "put the output |
5849 | # in D". | |
c66be968 | 5850 | rm -rf conftest.dir |
8f223b3e FCE |
5851 | mkdir conftest.dir |
5852 | # Copy depcomp to subdir because otherwise we won't find it if we're | |
5853 | # using a relative directory. | |
5854 | cp "$am_depcomp" conftest.dir | |
5855 | cd conftest.dir | |
5856 | # We will build objects and dependencies in a subdirectory because | |
5857 | # it helps to detect inapplicable dependency modes. For instance | |
5858 | # both Tru64's cc and ICC support -MD to output dependencies as a | |
5859 | # side effect of compilation, but ICC will put the dependencies in | |
5860 | # the current directory while Tru64 will put them in the object | |
5861 | # directory. | |
5862 | mkdir sub | |
5863 | ||
5864 | am_cv_CXX_dependencies_compiler_type=none | |
5865 | if test "$am_compiler_list" = ""; then | |
5866 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
5867 | fi | |
5868 | am__universal=false | |
5869 | case " $depcc " in #( | |
5870 | *\ -arch\ *\ -arch\ *) am__universal=true ;; | |
5871 | esac | |
5872 | ||
5873 | for depmode in $am_compiler_list; do | |
5874 | # Setup a source with many dependencies, because some compilers | |
5875 | # like to wrap large dependency lists on column 80 (with \), and | |
5876 | # we should not choose a depcomp mode which is confused by this. | |
5877 | # | |
5878 | # We need to recreate these files for each test, as the compiler may | |
5879 | # overwrite some of them when testing with obscure command lines. | |
5880 | # This happens at least with the AIX C compiler. | |
5881 | : > sub/conftest.c | |
5882 | for i in 1 2 3 4 5 6; do | |
5883 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
8eef2738 LB |
5884 | # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with |
5885 | # Solaris 10 /bin/sh. | |
5886 | echo '/* dummy */' > sub/conftst$i.h | |
8f223b3e FCE |
5887 | done |
5888 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
5889 | ||
8eef2738 | 5890 | # We check with '-c' and '-o' for the sake of the "dashmstdout" |
8f223b3e | 5891 | # mode. It turns out that the SunPro C++ compiler does not properly |
8eef2738 LB |
5892 | # handle '-M -o', and we need to detect this. Also, some Intel |
5893 | # versions had trouble with output in subdirs. | |
8f223b3e FCE |
5894 | am__obj=sub/conftest.${OBJEXT-o} |
5895 | am__minus_obj="-o $am__obj" | |
5896 | case $depmode in | |
5897 | gcc) | |
5898 | # This depmode causes a compiler race in universal mode. | |
5899 | test "$am__universal" = false || continue | |
5900 | ;; | |
5901 | nosideeffect) | |
8eef2738 LB |
5902 | # After this tag, mechanisms are not by side-effect, so they'll |
5903 | # only be used when explicitly requested. | |
8f223b3e FCE |
5904 | if test "x$enable_dependency_tracking" = xyes; then |
5905 | continue | |
5906 | else | |
5907 | break | |
5908 | fi | |
5909 | ;; | |
c66be968 | 5910 | msvc7 | msvc7msys | msvisualcpp | msvcmsys) |
8eef2738 | 5911 | # This compiler won't grok '-c -o', but also, the minuso test has |
8f223b3e FCE |
5912 | # not run yet. These depmodes are late enough in the game, and |
5913 | # so weak that their functioning should not be impacted. | |
5914 | am__obj=conftest.${OBJEXT-o} | |
5915 | am__minus_obj= | |
5916 | ;; | |
5917 | none) break ;; | |
5918 | esac | |
5919 | if depmode=$depmode \ | |
5920 | source=sub/conftest.c object=$am__obj \ | |
5921 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | |
5922 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ | |
5923 | >/dev/null 2>conftest.err && | |
5924 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && | |
5925 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && | |
5926 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && | |
5927 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | |
5928 | # icc doesn't choke on unknown options, it will just issue warnings | |
5929 | # or remarks (even with -Werror). So we grep stderr for any message | |
5930 | # that says an option was ignored or not supported. | |
5931 | # When given -MP, icc 7.0 and 7.1 complain thusly: | |
5932 | # icc: Command line warning: ignoring option '-M'; no argument required | |
5933 | # The diagnosis changed in icc 8.0: | |
5934 | # icc: Command line remark: option '-MP' not supported | |
5935 | if (grep 'ignoring option' conftest.err || | |
5936 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
5937 | am_cv_CXX_dependencies_compiler_type=$depmode | |
5938 | break | |
5939 | fi | |
5940 | fi | |
5941 | done | |
5942 | ||
5943 | cd .. | |
5944 | rm -rf conftest.dir | |
5945 | else | |
5946 | am_cv_CXX_dependencies_compiler_type=none | |
5947 | fi | |
5948 | ||
5949 | fi | |
5950 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 | |
5951 | $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } | |
5952 | CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type | |
5953 | ||
5954 | if | |
5955 | test "x$enable_dependency_tracking" != xno \ | |
5956 | && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then | |
5957 | am__fastdepCXX_TRUE= | |
5958 | am__fastdepCXX_FALSE='#' | |
5959 | else | |
5960 | am__fastdepCXX_TRUE='#' | |
5961 | am__fastdepCXX_FALSE= | |
5962 | fi | |
5963 | ||
5964 | ||
5965 | ac_ext=c | |
5966 | ac_cpp='$CPP $CPPFLAGS' | |
5967 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5968 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5969 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5970 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 | |
5971 | $as_echo_n "checking how to run the C preprocessor... " >&6; } | |
5972 | # On Suns, sometimes $CPP names a directory. | |
5973 | if test -n "$CPP" && test -d "$CPP"; then | |
5974 | CPP= | |
5975 | fi | |
5976 | if test -z "$CPP"; then | |
c3de29bd | 5977 | if ${ac_cv_prog_CPP+:} false; then : |
8f223b3e FCE |
5978 | $as_echo_n "(cached) " >&6 |
5979 | else | |
5980 | # Double quotes because CPP needs to be expanded | |
5981 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
5982 | do | |
5983 | ac_preproc_ok=false | |
5984 | for ac_c_preproc_warn_flag in '' yes | |
5985 | do | |
5986 | # Use a header file that comes with gcc, so configuring glibc | |
5987 | # with a fresh cross-compiler works. | |
5988 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
5989 | # <limits.h> exists even on freestanding compilers. | |
5990 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
5991 | # not just through cpp. "Syntax error" is here to catch this case. | |
5992 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5993 | /* end confdefs.h. */ | |
5994 | #ifdef __STDC__ | |
5995 | # include <limits.h> | |
5996 | #else | |
5997 | # include <assert.h> | |
5998 | #endif | |
5999 | Syntax error | |
6000 | _ACEOF | |
6001 | if ac_fn_c_try_cpp "$LINENO"; then : | |
6002 | ||
6003 | else | |
6004 | # Broken: fails on valid input. | |
6005 | continue | |
6006 | fi | |
c3de29bd | 6007 | rm -f conftest.err conftest.i conftest.$ac_ext |
8f223b3e FCE |
6008 | |
6009 | # OK, works on sane cases. Now check whether nonexistent headers | |
6010 | # can be detected and how. | |
6011 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6012 | /* end confdefs.h. */ | |
6013 | #include <ac_nonexistent.h> | |
6014 | _ACEOF | |
6015 | if ac_fn_c_try_cpp "$LINENO"; then : | |
6016 | # Broken: success on invalid input. | |
6017 | continue | |
6018 | else | |
6019 | # Passes both tests. | |
6020 | ac_preproc_ok=: | |
6021 | break | |
6022 | fi | |
c3de29bd | 6023 | rm -f conftest.err conftest.i conftest.$ac_ext |
8f223b3e FCE |
6024 | |
6025 | done | |
6026 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
c3de29bd | 6027 | rm -f conftest.i conftest.err conftest.$ac_ext |
8f223b3e FCE |
6028 | if $ac_preproc_ok; then : |
6029 | break | |
6030 | fi | |
6031 | ||
6032 | done | |
6033 | ac_cv_prog_CPP=$CPP | |
6034 | ||
6035 | fi | |
6036 | CPP=$ac_cv_prog_CPP | |
6037 | else | |
6038 | ac_cv_prog_CPP=$CPP | |
6039 | fi | |
6040 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 | |
6041 | $as_echo "$CPP" >&6; } | |
6042 | ac_preproc_ok=false | |
6043 | for ac_c_preproc_warn_flag in '' yes | |
6044 | do | |
6045 | # Use a header file that comes with gcc, so configuring glibc | |
6046 | # with a fresh cross-compiler works. | |
6047 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
6048 | # <limits.h> exists even on freestanding compilers. | |
6049 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
6050 | # not just through cpp. "Syntax error" is here to catch this case. | |
6051 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6052 | /* end confdefs.h. */ | |
6053 | #ifdef __STDC__ | |
6054 | # include <limits.h> | |
6055 | #else | |
6056 | # include <assert.h> | |
6057 | #endif | |
6058 | Syntax error | |
6059 | _ACEOF | |
6060 | if ac_fn_c_try_cpp "$LINENO"; then : | |
6061 | ||
6062 | else | |
6063 | # Broken: fails on valid input. | |
6064 | continue | |
6065 | fi | |
c3de29bd | 6066 | rm -f conftest.err conftest.i conftest.$ac_ext |
8f223b3e FCE |
6067 | |
6068 | # OK, works on sane cases. Now check whether nonexistent headers | |
6069 | # can be detected and how. | |
6070 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6071 | /* end confdefs.h. */ | |
6072 | #include <ac_nonexistent.h> | |
6073 | _ACEOF | |
6074 | if ac_fn_c_try_cpp "$LINENO"; then : | |
6075 | # Broken: success on invalid input. | |
6076 | continue | |
6077 | else | |
6078 | # Passes both tests. | |
6079 | ac_preproc_ok=: | |
6080 | break | |
6081 | fi | |
c3de29bd | 6082 | rm -f conftest.err conftest.i conftest.$ac_ext |
8f223b3e FCE |
6083 | |
6084 | done | |
6085 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
c3de29bd | 6086 | rm -f conftest.i conftest.err conftest.$ac_ext |
8f223b3e FCE |
6087 | if $ac_preproc_ok; then : |
6088 | ||
6089 | else | |
6090 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
6091 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
5d4aa1f5 FCE |
6092 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check |
6093 | See \`config.log' for more details" "$LINENO" 5; } | |
8f223b3e FCE |
6094 | fi |
6095 | ||
6096 | ac_ext=c | |
6097 | ac_cpp='$CPP $CPPFLAGS' | |
6098 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
6099 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
6100 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
6101 | ||
6102 | ac_ext=c | |
6103 | ac_cpp='$CPP $CPPFLAGS' | |
6104 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
6105 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
6106 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
6107 | if test -n "$ac_tool_prefix"; then | |
6108 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
6109 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
6110 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6111 | $as_echo_n "checking for $ac_word... " >&6; } | |
c3de29bd | 6112 | if ${ac_cv_prog_CC+:} false; then : |
8f223b3e FCE |
6113 | $as_echo_n "(cached) " >&6 |
6114 | else | |
6115 | if test -n "$CC"; then | |
6116 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
6117 | else | |
6118 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6119 | for as_dir in $PATH | |
6120 | do | |
6121 | IFS=$as_save_IFS | |
6122 | test -z "$as_dir" && as_dir=. | |
6123 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8eef2738 | 6124 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
8f223b3e FCE |
6125 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
6126 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6127 | break 2 | |
6128 | fi | |
6129 | done | |
6130 | done | |
6131 | IFS=$as_save_IFS | |
6132 | ||
6133 | fi | |
6134 | fi | |
6135 | CC=$ac_cv_prog_CC | |
6136 | if test -n "$CC"; then | |
6137 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
6138 | $as_echo "$CC" >&6; } | |
6139 | else | |
6140 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6141 | $as_echo "no" >&6; } | |
6142 | fi | |
6143 | ||
6144 | ||
6145 | fi | |
6146 | if test -z "$ac_cv_prog_CC"; then | |
6147 | ac_ct_CC=$CC | |
6148 | # Extract the first word of "gcc", so it can be a program name with args. | |
6149 | set dummy gcc; ac_word=$2 | |
6150 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6151 | $as_echo_n "checking for $ac_word... " >&6; } | |
c3de29bd | 6152 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
8f223b3e FCE |
6153 | $as_echo_n "(cached) " >&6 |
6154 | else | |
6155 | if test -n "$ac_ct_CC"; then | |
6156 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
6157 | else | |
6158 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6159 | for as_dir in $PATH | |
6160 | do | |
6161 | IFS=$as_save_IFS | |
6162 | test -z "$as_dir" && as_dir=. | |
6163 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8eef2738 | 6164 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
8f223b3e FCE |
6165 | ac_cv_prog_ac_ct_CC="gcc" |
6166 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6167 | break 2 | |
6168 | fi | |
6169 | done | |
6170 | done | |
6171 | IFS=$as_save_IFS | |
6172 | ||
6173 | fi | |
6174 | fi | |
6175 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
6176 | if test -n "$ac_ct_CC"; then | |
6177 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
6178 | $as_echo "$ac_ct_CC" >&6; } | |
6179 | else | |
6180 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6181 | $as_echo "no" >&6; } | |
6182 | fi | |
6183 | ||
6184 | if test "x$ac_ct_CC" = x; then | |
6185 | CC="" | |
6186 | else | |
6187 | case $cross_compiling:$ac_tool_warned in | |
6188 | yes:) | |
6189 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6190 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6191 | ac_tool_warned=yes ;; | |
6192 | esac | |
6193 | CC=$ac_ct_CC | |
6194 | fi | |
6195 | else | |
6196 | CC="$ac_cv_prog_CC" | |
6197 | fi | |
6198 | ||
6199 | if test -z "$CC"; then | |
6200 | if test -n "$ac_tool_prefix"; then | |
6201 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
6202 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
6203 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6204 | $as_echo_n "checking for $ac_word... " >&6; } | |
c3de29bd | 6205 | if ${ac_cv_prog_CC+:} false; then : |
8f223b3e FCE |
6206 | $as_echo_n "(cached) " >&6 |
6207 | else | |
6208 | if test -n "$CC"; then | |
6209 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
6210 | else | |
6211 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6212 | for as_dir in $PATH | |
6213 | do | |
6214 | IFS=$as_save_IFS | |
6215 | test -z "$as_dir" && as_dir=. | |
6216 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8eef2738 | 6217 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
8f223b3e FCE |
6218 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
6219 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6220 | break 2 | |
6221 | fi | |
6222 | done | |
6223 | done | |
6224 | IFS=$as_save_IFS | |
6225 | ||
6226 | fi | |
6227 | fi | |
6228 | CC=$ac_cv_prog_CC | |
6229 | if test -n "$CC"; then | |
6230 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
6231 | $as_echo "$CC" >&6; } | |
6232 | else | |
6233 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6234 | $as_echo "no" >&6; } | |
6235 | fi | |
6236 | ||
6237 | ||
6238 | fi | |
6239 | fi | |
6240 | if test -z "$CC"; then | |
6241 | # Extract the first word of "cc", so it can be a program name with args. | |
6242 | set dummy cc; ac_word=$2 | |
6243 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6244 | $as_echo_n "checking for $ac_word... " >&6; } | |
c3de29bd | 6245 | if ${ac_cv_prog_CC+:} false; then : |
8f223b3e FCE |
6246 | $as_echo_n "(cached) " >&6 |
6247 | else | |
6248 | if test -n "$CC"; then | |
6249 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
6250 | else | |
6251 | ac_prog_rejected=no | |
6252 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6253 | for as_dir in $PATH | |
6254 | do | |
6255 | IFS=$as_save_IFS | |
6256 | test -z "$as_dir" && as_dir=. | |
6257 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8eef2738 | 6258 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
8f223b3e FCE |
6259 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
6260 | ac_prog_rejected=yes | |
6261 | continue | |
6262 | fi | |
6263 | ac_cv_prog_CC="cc" | |
6264 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6265 | break 2 | |
6266 | fi | |
6267 | done | |
6268 | done | |
6269 | IFS=$as_save_IFS | |
6270 | ||
6271 | if test $ac_prog_rejected = yes; then | |
6272 | # We found a bogon in the path, so make sure we never use it. | |
6273 | set dummy $ac_cv_prog_CC | |
6274 | shift | |
6275 | if test $# != 0; then | |
6276 | # We chose a different compiler from the bogus one. | |
6277 | # However, it has the same basename, so the bogon will be chosen | |
6278 | # first if we set CC to just the basename; use the full file name. | |
6279 | shift | |
6280 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
6281 | fi | |
6282 | fi | |
6283 | fi | |
6284 | fi | |
6285 | CC=$ac_cv_prog_CC | |
6286 | if test -n "$CC"; then | |
6287 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
6288 | $as_echo "$CC" >&6; } | |
6289 | else | |
6290 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6291 | $as_echo "no" >&6; } | |
6292 | fi | |
6293 | ||
6294 | ||
6295 | fi | |
6296 | if test -z "$CC"; then | |
6297 | if test -n "$ac_tool_prefix"; then | |
6298 | for ac_prog in cl.exe | |
6299 | do | |
6300 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
6301 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
6302 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6303 | $as_echo_n "checking for $ac_word... " >&6; } | |
c3de29bd | 6304 | if ${ac_cv_prog_CC+:} false; then : |
8f223b3e FCE |
6305 | $as_echo_n "(cached) " >&6 |
6306 | else | |
6307 | if test -n "$CC"; then | |
6308 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
6309 | else | |
6310 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6311 | for as_dir in $PATH | |
6312 | do | |
6313 | IFS=$as_save_IFS | |
6314 | test -z "$as_dir" && as_dir=. | |
6315 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8eef2738 | 6316 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
8f223b3e FCE |
6317 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
6318 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6319 | break 2 | |
6320 | fi | |
6321 | done | |
6322 | done | |
6323 | IFS=$as_save_IFS | |
6324 | ||
6325 | fi | |
6326 | fi | |
6327 | CC=$ac_cv_prog_CC | |
6328 | if test -n "$CC"; then | |
6329 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
6330 | $as_echo "$CC" >&6; } | |
6331 | else | |
6332 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6333 | $as_echo "no" >&6; } | |
6334 | fi | |
6335 | ||
6336 | ||
6337 | test -n "$CC" && break | |
6338 | done | |
6339 | fi | |
6340 | if test -z "$CC"; then | |
6341 | ac_ct_CC=$CC | |
6342 | for ac_prog in cl.exe | |
6343 | do | |
6344 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
6345 | set dummy $ac_prog; ac_word=$2 | |
6346 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6347 | $as_echo_n "checking for $ac_word... " >&6; } | |
c3de29bd | 6348 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
8f223b3e FCE |
6349 | $as_echo_n "(cached) " >&6 |
6350 | else | |
6351 | if test -n "$ac_ct_CC"; then | |
6352 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
6353 | else | |
6354 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6355 | for as_dir in $PATH | |
6356 | do | |
6357 | IFS=$as_save_IFS | |
6358 | test -z "$as_dir" && as_dir=. | |
6359 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8eef2738 | 6360 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
8f223b3e FCE |
6361 | ac_cv_prog_ac_ct_CC="$ac_prog" |
6362 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6363 | break 2 | |
6364 | fi | |
6365 | done | |
6366 | done | |
6367 | IFS=$as_save_IFS | |
6368 | ||
6369 | fi | |
6370 | fi | |
6371 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
6372 | if test -n "$ac_ct_CC"; then | |
6373 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
6374 | $as_echo "$ac_ct_CC" >&6; } | |
6375 | else | |
6376 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6377 | $as_echo "no" >&6; } | |
6378 | fi | |
6379 | ||
6380 | ||
6381 | test -n "$ac_ct_CC" && break | |
6382 | done | |
6383 | ||
6384 | if test "x$ac_ct_CC" = x; then | |
6385 | CC="" | |
6386 | else | |
6387 | case $cross_compiling:$ac_tool_warned in | |
6388 | yes:) | |
6389 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6390 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6391 | ac_tool_warned=yes ;; | |
6392 | esac | |
6393 | CC=$ac_ct_CC | |
6394 | fi | |
6395 | fi | |
6396 | ||
6397 | fi | |
6398 | ||
6399 | ||
6400 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
6401 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
5d4aa1f5 FCE |
6402 | as_fn_error $? "no acceptable C compiler found in \$PATH |
6403 | See \`config.log' for more details" "$LINENO" 5; } | |
8f223b3e FCE |
6404 | |
6405 | # Provide some information about the compiler. | |
6406 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 | |
6407 | set X $ac_compile | |
6408 | ac_compiler=$2 | |
6409 | for ac_option in --version -v -V -qversion; do | |
6410 | { { ac_try="$ac_compiler $ac_option >&5" | |
6411 | case "(($ac_try" in | |
6412 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6413 | *) ac_try_echo=$ac_try;; | |
6414 | esac | |
6415 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
6416 | $as_echo "$ac_try_echo"; } >&5 | |
6417 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
6418 | ac_status=$? | |
6419 | if test -s conftest.err; then | |
6420 | sed '10a\ | |
6421 | ... rest of stderr output deleted ... | |
6422 | 10q' conftest.err >conftest.er1 | |
6423 | cat conftest.er1 >&5 | |
6424 | fi | |
6425 | rm -f conftest.er1 conftest.err | |
6426 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
6427 | test $ac_status = 0; } | |
6428 | done | |
6429 | ||
6430 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 | |
6431 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | |
c3de29bd | 6432 | if ${ac_cv_c_compiler_gnu+:} false; then : |
8f223b3e FCE |
6433 | $as_echo_n "(cached) " >&6 |
6434 | else | |
6435 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6436 | /* end confdefs.h. */ | |
6437 | ||
6438 | int | |
6439 | main () | |
6440 | { | |
6441 | #ifndef __GNUC__ | |
6442 | choke me | |
6443 | #endif | |
6444 | ||
6445 | ; | |
6446 | return 0; | |
6447 | } | |
6448 | _ACEOF | |
6449 | if ac_fn_c_try_compile "$LINENO"; then : | |
6450 | ac_compiler_gnu=yes | |
6451 | else | |
6452 | ac_compiler_gnu=no | |
6453 | fi | |
6454 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6455 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | |
6456 | ||
6457 | fi | |
6458 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 | |
6459 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | |
6460 | if test $ac_compiler_gnu = yes; then | |
6461 | GCC=yes | |
6462 | else | |
6463 | GCC= | |
6464 | fi | |
6465 | ac_test_CFLAGS=${CFLAGS+set} | |
6466 | ac_save_CFLAGS=$CFLAGS | |
6467 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 | |
6468 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | |
c3de29bd | 6469 | if ${ac_cv_prog_cc_g+:} false; then : |
8f223b3e FCE |
6470 | $as_echo_n "(cached) " >&6 |
6471 | else | |
6472 | ac_save_c_werror_flag=$ac_c_werror_flag | |
6473 | ac_c_werror_flag=yes | |
6474 | ac_cv_prog_cc_g=no | |
6475 | CFLAGS="-g" | |
6476 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6477 | /* end confdefs.h. */ | |
6478 | ||
6479 | int | |
6480 | main () | |
6481 | { | |
6482 | ||
6483 | ; | |
6484 | return 0; | |
6485 | } | |
6486 | _ACEOF | |
6487 | if ac_fn_c_try_compile "$LINENO"; then : | |
6488 | ac_cv_prog_cc_g=yes | |
6489 | else | |
6490 | CFLAGS="" | |
6491 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6492 | /* end confdefs.h. */ | |
6493 | ||
6494 | int | |
6495 | main () | |
6496 | { | |
6497 | ||
6498 | ; | |
6499 | return 0; | |
6500 | } | |
6501 | _ACEOF | |
6502 | if ac_fn_c_try_compile "$LINENO"; then : | |
6503 | ||
6504 | else | |
6505 | ac_c_werror_flag=$ac_save_c_werror_flag | |
6506 | CFLAGS="-g" | |
6507 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6508 | /* end confdefs.h. */ | |
6509 | ||
6510 | int | |
6511 | main () | |
6512 | { | |
6513 | ||
6514 | ; | |
6515 | return 0; | |
6516 | } | |
6517 | _ACEOF | |
6518 | if ac_fn_c_try_compile "$LINENO"; then : | |
6519 | ac_cv_prog_cc_g=yes | |
6520 | fi | |
6521 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6522 | fi | |
6523 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6524 | fi | |
6525 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6526 | ac_c_werror_flag=$ac_save_c_werror_flag | |
6527 | fi | |
6528 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 | |
6529 | $as_echo "$ac_cv_prog_cc_g" >&6; } | |
6530 | if test "$ac_test_CFLAGS" = set; then | |
6531 | CFLAGS=$ac_save_CFLAGS | |
6532 | elif test $ac_cv_prog_cc_g = yes; then | |
6533 | if test "$GCC" = yes; then | |
6534 | CFLAGS="-g -O2" | |
6535 | else | |
6536 | CFLAGS="-g" | |
6537 | fi | |
6538 | else | |
6539 | if test "$GCC" = yes; then | |
6540 | CFLAGS="-O2" | |
6541 | else | |
6542 | CFLAGS= | |
6543 | fi | |
6544 | fi | |
6545 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 | |
6546 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | |
c3de29bd | 6547 | if ${ac_cv_prog_cc_c89+:} false; then : |
8f223b3e FCE |
6548 | $as_echo_n "(cached) " >&6 |
6549 | else | |
6550 | ac_cv_prog_cc_c89=no | |
6551 | ac_save_CC=$CC | |
6552 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6553 | /* end confdefs.h. */ | |
6554 | #include <stdarg.h> | |
6555 | #include <stdio.h> | |
8eef2738 | 6556 | struct stat; |
8f223b3e FCE |
6557 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
6558 | struct buf { int x; }; | |
6559 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
6560 | static char *e (p, i) | |
6561 | char **p; | |
6562 | int i; | |
6563 | { | |
6564 | return p[i]; | |
6565 | } | |
6566 | static char *f (char * (*g) (char **, int), char **p, ...) | |
6567 | { | |
6568 | char *s; | |
6569 | va_list v; | |
6570 | va_start (v,p); | |
6571 | s = g (p, va_arg (v,int)); | |
6572 | va_end (v); | |
6573 | return s; | |
6574 | } | |
6575 | ||
6576 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
6577 | function prototypes and stuff, but not '\xHH' hex character constants. | |
6578 | These don't provoke an error unfortunately, instead are silently treated | |
6579 | as 'x'. The following induces an error, until -std is added to get | |
6580 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | |
6581 | array size at least. It's necessary to write '\x00'==0 to get something | |
6582 | that's true only with -std. */ | |
6583 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | |
6584 | ||
6585 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters | |
6586 | inside strings and character constants. */ | |
6587 | #define FOO(x) 'x' | |
6588 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
6589 | ||
6590 | int test (int i, double x); | |
6591 | struct s1 {int (*f) (int a);}; | |
6592 | struct s2 {int (*f) (double a);}; | |
6593 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
6594 | int argc; | |
6595 | char **argv; | |
6596 | int | |
6597 | main () | |
6598 | { | |
6599 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
6600 | ; | |
6601 | return 0; | |
6602 | } | |
6603 | _ACEOF | |
6604 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ | |
6605 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
6606 | do | |
6607 | CC="$ac_save_CC $ac_arg" | |
6608 | if ac_fn_c_try_compile "$LINENO"; then : | |
6609 | ac_cv_prog_cc_c89=$ac_arg | |
6610 | fi | |
6611 | rm -f core conftest.err conftest.$ac_objext | |
6612 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
6613 | done | |
6614 | rm -f conftest.$ac_ext | |
6615 | CC=$ac_save_CC | |
6616 | ||
6617 | fi | |
6618 | # AC_CACHE_VAL | |
6619 | case "x$ac_cv_prog_cc_c89" in | |
6620 | x) | |
6621 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
6622 | $as_echo "none needed" >&6; } ;; | |
6623 | xno) | |
6624 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
6625 | $as_echo "unsupported" >&6; } ;; | |
6626 | *) | |
6627 | CC="$CC $ac_cv_prog_cc_c89" | |
6628 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | |
6629 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | |
6630 | esac | |
6631 | if test "x$ac_cv_prog_cc_c89" != xno; then : | |
6632 | ||
6633 | fi | |
6634 | ||
6635 | ac_ext=c | |
6636 | ac_cpp='$CPP $CPPFLAGS' | |
6637 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
6638 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
6639 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
6640 | ||
46c282e4 FCE |
6641 | ac_ext=c |
6642 | ac_cpp='$CPP $CPPFLAGS' | |
6643 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
6644 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
6645 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
6646 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 | |
6647 | $as_echo_n "checking whether $CC understands -c and -o together... " >&6; } | |
6648 | if ${am_cv_prog_cc_c_o+:} false; then : | |
6649 | $as_echo_n "(cached) " >&6 | |
6650 | else | |
6651 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6652 | /* end confdefs.h. */ | |
6653 | ||
6654 | int | |
6655 | main () | |
6656 | { | |
6657 | ||
6658 | ; | |
6659 | return 0; | |
6660 | } | |
6661 | _ACEOF | |
6662 | # Make sure it works both with $CC and with simple cc. | |
6663 | # Following AC_PROG_CC_C_O, we do the test twice because some | |
6664 | # compilers refuse to overwrite an existing .o file with -o, | |
6665 | # though they will create one. | |
6666 | am_cv_prog_cc_c_o=yes | |
6667 | for am_i in 1 2; do | |
6668 | if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 | |
6669 | ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 | |
6670 | ac_status=$? | |
6671 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6672 | (exit $ac_status); } \ | |
6673 | && test -f conftest2.$ac_objext; then | |
6674 | : OK | |
6675 | else | |
6676 | am_cv_prog_cc_c_o=no | |
6677 | break | |
6678 | fi | |
6679 | done | |
6680 | rm -f core conftest* | |
6681 | unset am_i | |
6682 | fi | |
6683 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 | |
6684 | $as_echo "$am_cv_prog_cc_c_o" >&6; } | |
6685 | if test "$am_cv_prog_cc_c_o" != yes; then | |
6686 | # Losing compiler, so override with the script. | |
6687 | # FIXME: It is wrong to rewrite CC. | |
6688 | # But if we don't then we get into trouble of one sort or another. | |
6689 | # A longer-term fix would be to have automake use am__CC in this case, | |
6690 | # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" | |
6691 | CC="$am_aux_dir/compile $CC" | |
6692 | fi | |
6693 | ac_ext=c | |
6694 | ac_cpp='$CPP $CPPFLAGS' | |
6695 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
6696 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
6697 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
6698 | ||
6699 | ||
8f223b3e FCE |
6700 | depcc="$CC" am_compiler_list= |
6701 | ||
6702 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 | |
6703 | $as_echo_n "checking dependency style of $depcc... " >&6; } | |
c3de29bd | 6704 | if ${am_cv_CC_dependencies_compiler_type+:} false; then : |
8f223b3e FCE |
6705 | $as_echo_n "(cached) " >&6 |
6706 | else | |
6707 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | |
6708 | # We make a subdir and do the tests there. Otherwise we can end up | |
6709 | # making bogus files that we don't know about and never remove. For | |
6710 | # instance it was reported that on HP-UX the gcc test will end up | |
8eef2738 LB |
6711 | # making a dummy file named 'D' -- because '-MD' means "put the output |
6712 | # in D". | |
c66be968 | 6713 | rm -rf conftest.dir |
8f223b3e FCE |
6714 | mkdir conftest.dir |
6715 | # Copy depcomp to subdir because otherwise we won't find it if we're | |
6716 | # using a relative directory. | |
6717 | cp "$am_depcomp" conftest.dir | |
6718 | cd conftest.dir | |
6719 | # We will build objects and dependencies in a subdirectory because | |
6720 | # it helps to detect inapplicable dependency modes. For instance | |
6721 | # both Tru64's cc and ICC support -MD to output dependencies as a | |
6722 | # side effect of compilation, but ICC will put the dependencies in | |
6723 | # the current directory while Tru64 will put them in the object | |
6724 | # directory. | |
6725 | mkdir sub | |
6726 | ||
6727 | am_cv_CC_dependencies_compiler_type=none | |
6728 | if test "$am_compiler_list" = ""; then | |
6729 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
6730 | fi | |
6731 | am__universal=false | |
6732 | case " $depcc " in #( | |
6733 | *\ -arch\ *\ -arch\ *) am__universal=true ;; | |
6734 | esac | |
6735 | ||
6736 | for depmode in $am_compiler_list; do | |
6737 | # Setup a source with many dependencies, because some compilers | |
6738 | # like to wrap large dependency lists on column 80 (with \), and | |
6739 | # we should not choose a depcomp mode which is confused by this. | |
6740 | # | |
6741 | # We need to recreate these files for each test, as the compiler may | |
6742 | # overwrite some of them when testing with obscure command lines. | |
6743 | # This happens at least with the AIX C compiler. | |
6744 | : > sub/conftest.c | |
6745 | for i in 1 2 3 4 5 6; do | |
6746 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
8eef2738 LB |
6747 | # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with |
6748 | # Solaris 10 /bin/sh. | |
6749 | echo '/* dummy */' > sub/conftst$i.h | |
8f223b3e FCE |
6750 | done |
6751 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
6752 | ||
8eef2738 | 6753 | # We check with '-c' and '-o' for the sake of the "dashmstdout" |
8f223b3e | 6754 | # mode. It turns out that the SunPro C++ compiler does not properly |
8eef2738 LB |
6755 | # handle '-M -o', and we need to detect this. Also, some Intel |
6756 | # versions had trouble with output in subdirs. | |
8f223b3e FCE |
6757 | am__obj=sub/conftest.${OBJEXT-o} |
6758 | am__minus_obj="-o $am__obj" | |
6759 | case $depmode in | |
6760 | gcc) | |
6761 | # This depmode causes a compiler race in universal mode. | |
6762 | test "$am__universal" = false || continue | |
6763 | ;; | |
6764 | nosideeffect) | |
8eef2738 LB |
6765 | # After this tag, mechanisms are not by side-effect, so they'll |
6766 | # only be used when explicitly requested. | |
8f223b3e FCE |
6767 | if test "x$enable_dependency_tracking" = xyes; then |
6768 | continue | |
6769 | else | |
6770 | break | |
6771 | fi | |
6772 | ;; | |
c66be968 | 6773 | msvc7 | msvc7msys | msvisualcpp | msvcmsys) |
8eef2738 | 6774 | # This compiler won't grok '-c -o', but also, the minuso test has |
8f223b3e FCE |
6775 | # not run yet. These depmodes are late enough in the game, and |
6776 | # so weak that their functioning should not be impacted. | |
6777 | am__obj=conftest.${OBJEXT-o} | |
6778 | am__minus_obj= | |
6779 | ;; | |
6780 | none) break ;; | |
6781 | esac | |
6782 | if depmode=$depmode \ | |
6783 | source=sub/conftest.c object=$am__obj \ | |
6784 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | |
6785 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ | |
6786 | >/dev/null 2>conftest.err && | |
6787 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && | |
6788 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && | |
6789 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && | |
6790 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | |
6791 | # icc doesn't choke on unknown options, it will just issue warnings | |
6792 | # or remarks (even with -Werror). So we grep stderr for any message | |
6793 | # that says an option was ignored or not supported. | |
6794 | # When given -MP, icc 7.0 and 7.1 complain thusly: | |
6795 | # icc: Command line warning: ignoring option '-M'; no argument required | |
6796 | # The diagnosis changed in icc 8.0: | |
6797 | # icc: Command line remark: option '-MP' not supported | |
6798 | if (grep 'ignoring option' conftest.err || | |
6799 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
6800 | am_cv_CC_dependencies_compiler_type=$depmode | |
6801 | break | |
6802 | fi | |
6803 | fi | |
6804 | done | |
6805 | ||
6806 | cd .. | |
6807 | rm -rf conftest.dir | |
6808 | else | |
6809 | am_cv_CC_dependencies_compiler_type=none | |
6810 | fi | |
6811 | ||
6812 | fi | |
6813 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 | |
6814 | $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } | |
6815 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type | |
6816 | ||
6817 | if | |
6818 | test "x$enable_dependency_tracking" != xno \ | |
6819 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then | |
6820 | am__fastdepCC_TRUE= | |
6821 | am__fastdepCC_FALSE='#' | |
6822 | else | |
6823 | am__fastdepCC_TRUE='#' | |
6824 | am__fastdepCC_FALSE= | |
6825 | fi | |
6826 | ||
6827 | ||
8f223b3e FCE |
6828 | am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc |
6829 | ||
8f223b3e | 6830 | |
8f223b3e FCE |
6831 | if test -n "$ac_tool_prefix"; then |
6832 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
6833 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
6834 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6835 | $as_echo_n "checking for $ac_word... " >&6; } | |
c3de29bd | 6836 | if ${ac_cv_prog_RANLIB+:} false; then : |
8f223b3e FCE |
6837 | $as_echo_n "(cached) " >&6 |
6838 | else | |
6839 | if test -n "$RANLIB"; then | |
6840 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
6841 | else | |
6842 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6843 | for as_dir in $PATH | |
6844 | do | |
6845 | IFS=$as_save_IFS | |
6846 | test -z "$as_dir" && as_dir=. | |
6847 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8eef2738 | 6848 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
8f223b3e FCE |
6849 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
6850 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6851 | break 2 | |
6852 | fi | |
6853 | done | |
6854 | done | |
6855 | IFS=$as_save_IFS | |
6856 | ||
6857 | fi | |
6858 | fi | |
6859 | RANLIB=$ac_cv_prog_RANLIB | |
6860 | if test -n "$RANLIB"; then | |
6861 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 | |
6862 | $as_echo "$RANLIB" >&6; } | |
6863 | else | |
6864 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6865 | $as_echo "no" >&6; } | |
6866 | fi | |
6867 | ||
6868 | ||
6869 | fi | |
6870 | if test -z "$ac_cv_prog_RANLIB"; then | |
6871 | ac_ct_RANLIB=$RANLIB | |
6872 | # Extract the first word of "ranlib", so it can be a program name with args. | |
6873 | set dummy ranlib; ac_word=$2 | |
6874 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6875 | $as_echo_n "checking for $ac_word... " >&6; } | |
c3de29bd | 6876 | if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : |
8f223b3e FCE |
6877 | $as_echo_n "(cached) " >&6 |
6878 | else | |
6879 | if test -n "$ac_ct_RANLIB"; then | |
6880 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
6881 | else | |
6882 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6883 | for as_dir in $PATH | |
6884 | do | |
6885 | IFS=$as_save_IFS | |
6886 | test -z "$as_dir" && as_dir=. | |
6887 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8eef2738 | 6888 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
8f223b3e FCE |
6889 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
6890 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6891 | break 2 | |
6892 | fi | |
6893 | done | |
6894 | done | |
6895 | IFS=$as_save_IFS | |
6896 | ||
6897 | fi | |
6898 | fi | |
6899 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
6900 | if test -n "$ac_ct_RANLIB"; then | |
6901 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 | |
6902 | $as_echo "$ac_ct_RANLIB" >&6; } | |
6903 | else | |
6904 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6905 | $as_echo "no" >&6; } | |
6906 | fi | |
6907 | ||
6908 | if test "x$ac_ct_RANLIB" = x; then | |
6909 | RANLIB=":" | |
6910 | else | |
6911 | case $cross_compiling:$ac_tool_warned in | |
6912 | yes:) | |
6913 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6914 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6915 | ac_tool_warned=yes ;; | |
6916 | esac | |
6917 | RANLIB=$ac_ct_RANLIB | |
6918 | fi | |
6919 | else | |
6920 | RANLIB="$ac_cv_prog_RANLIB" | |
6921 | fi | |
6922 | ||
6923 | ||
6924 | ||
6925 | ||
6926 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 | |
6927 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } | |
6928 | set x ${MAKE-make} | |
6929 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | |
c3de29bd | 6930 | if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : |
8f223b3e FCE |
6931 | $as_echo_n "(cached) " >&6 |
6932 | else | |
6933 | cat >conftest.make <<\_ACEOF | |
6934 | SHELL = /bin/sh | |
6935 | all: | |
6936 | @echo '@@@%%%=$(MAKE)=@@@%%%' | |
6937 | _ACEOF | |
5d4aa1f5 | 6938 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. |
8f223b3e FCE |
6939 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
6940 | *@@@%%%=?*=@@@%%%*) | |
6941 | eval ac_cv_prog_make_${ac_make}_set=yes;; | |
6942 | *) | |
6943 | eval ac_cv_prog_make_${ac_make}_set=no;; | |
7fbd9d09 | 6944 | esac |
8f223b3e FCE |
6945 | rm -f conftest.make |
6946 | fi | |
6947 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then | |
6948 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
6949 | $as_echo "yes" >&6; } | |
6950 | SET_MAKE= | |
6951 | else | |
6952 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6953 | $as_echo "no" >&6; } | |
6954 | SET_MAKE="MAKE=${MAKE-make}" | |
6955 | fi | |
6956 | ||
6957 | ||
6958 | ||
97859b9d JS |
6959 | # Check whether --enable-largefile was given. |
6960 | if test "${enable_largefile+set}" = set; then : | |
6961 | enableval=$enable_largefile; | |
6962 | fi | |
6963 | ||
6964 | if test "$enable_largefile" != no; then | |
6965 | ||
6966 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 | |
6967 | $as_echo_n "checking for special C compiler options needed for large files... " >&6; } | |
6968 | if ${ac_cv_sys_largefile_CC+:} false; then : | |
6969 | $as_echo_n "(cached) " >&6 | |
6970 | else | |
6971 | ac_cv_sys_largefile_CC=no | |
6972 | if test "$GCC" != yes; then | |
6973 | ac_save_CC=$CC | |
6974 | while :; do | |
6975 | # IRIX 6.2 and later do not support large files by default, | |
6976 | # so use the C compiler's -n32 option if that helps. | |
6977 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6978 | /* end confdefs.h. */ | |
6979 | #include <sys/types.h> | |
6980 | /* Check that off_t can represent 2**63 - 1 correctly. | |
6981 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
6982 | since some C++ compilers masquerading as C compilers | |
6983 | incorrectly reject 9223372036854775807. */ | |
6984 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
6985 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
6986 | && LARGE_OFF_T % 2147483647 == 1) | |
6987 | ? 1 : -1]; | |
6988 | int | |
6989 | main () | |
6990 | { | |
6991 | ||
6992 | ; | |
6993 | return 0; | |
6994 | } | |
6995 | _ACEOF | |
6996 | if ac_fn_c_try_compile "$LINENO"; then : | |
6997 | break | |
6998 | fi | |
6999 | rm -f core conftest.err conftest.$ac_objext | |
7000 | CC="$CC -n32" | |
7001 | if ac_fn_c_try_compile "$LINENO"; then : | |
7002 | ac_cv_sys_largefile_CC=' -n32'; break | |
7003 | fi | |
7004 | rm -f core conftest.err conftest.$ac_objext | |
7005 | break | |
7006 | done | |
7007 | CC=$ac_save_CC | |
7008 | rm -f conftest.$ac_ext | |
7009 | fi | |
7010 | fi | |
7011 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 | |
7012 | $as_echo "$ac_cv_sys_largefile_CC" >&6; } | |
7013 | if test "$ac_cv_sys_largefile_CC" != no; then | |
7014 | CC=$CC$ac_cv_sys_largefile_CC | |
7015 | fi | |
7016 | ||
7017 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 | |
7018 | $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } | |
7019 | if ${ac_cv_sys_file_offset_bits+:} false; then : | |
7020 | $as_echo_n "(cached) " >&6 | |
7021 | else | |
7022 | while :; do | |
7023 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7024 | /* end confdefs.h. */ | |
7025 | #include <sys/types.h> | |
7026 | /* Check that off_t can represent 2**63 - 1 correctly. | |
7027 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
7028 | since some C++ compilers masquerading as C compilers | |
7029 | incorrectly reject 9223372036854775807. */ | |
7030 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
7031 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
7032 | && LARGE_OFF_T % 2147483647 == 1) | |
7033 | ? 1 : -1]; | |
7034 | int | |
7035 | main () | |
7036 | { | |
7037 | ||
7038 | ; | |
7039 | return 0; | |
7040 | } | |
7041 | _ACEOF | |
7042 | if ac_fn_c_try_compile "$LINENO"; then : | |
7043 | ac_cv_sys_file_offset_bits=no; break | |
7044 | fi | |
7045 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
7046 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7047 | /* end confdefs.h. */ | |
7048 | #define _FILE_OFFSET_BITS 64 | |
7049 | #include <sys/types.h> | |
7050 | /* Check that off_t can represent 2**63 - 1 correctly. | |
7051 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
7052 | since some C++ compilers masquerading as C compilers | |
7053 | incorrectly reject 9223372036854775807. */ | |
7054 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
7055 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
7056 | && LARGE_OFF_T % 2147483647 == 1) | |
7057 | ? 1 : -1]; | |
7058 | int | |
7059 | main () | |
7060 | { | |
7061 | ||
7062 | ; | |
7063 | return 0; | |
7064 | } | |
7065 | _ACEOF | |
7066 | if ac_fn_c_try_compile "$LINENO"; then : | |
7067 | ac_cv_sys_file_offset_bits=64; break | |
7068 | fi | |
7069 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
7070 | ac_cv_sys_file_offset_bits=unknown | |
7071 | break | |
7072 | done | |
7073 | fi | |
7074 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 | |
7075 | $as_echo "$ac_cv_sys_file_offset_bits" >&6; } | |
7076 | case $ac_cv_sys_file_offset_bits in #( | |
7077 | no | unknown) ;; | |
7078 | *) | |
7079 | cat >>confdefs.h <<_ACEOF | |
7080 | #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits | |
7081 | _ACEOF | |
7082 | ;; | |
7083 | esac | |
7084 | rm -rf conftest* | |
7085 | if test $ac_cv_sys_file_offset_bits = unknown; then | |
7086 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 | |
7087 | $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } | |
7088 | if ${ac_cv_sys_large_files+:} false; then : | |
7089 | $as_echo_n "(cached) " >&6 | |
7090 | else | |
7091 | while :; do | |
7092 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7093 | /* end confdefs.h. */ | |
7094 | #include <sys/types.h> | |
7095 | /* Check that off_t can represent 2**63 - 1 correctly. | |
7096 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
7097 | since some C++ compilers masquerading as C compilers | |
7098 | incorrectly reject 9223372036854775807. */ | |
7099 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
7100 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
7101 | && LARGE_OFF_T % 2147483647 == 1) | |
7102 | ? 1 : -1]; | |
7103 | int | |
7104 | main () | |
7105 | { | |
7106 | ||
7107 | ; | |
7108 | return 0; | |
7109 | } | |
7110 | _ACEOF | |
7111 | if ac_fn_c_try_compile "$LINENO"; then : | |
7112 | ac_cv_sys_large_files=no; break | |
7113 | fi | |
7114 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
7115 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7116 | /* end confdefs.h. */ | |
7117 | #define _LARGE_FILES 1 | |
7118 | #include <sys/types.h> | |
7119 | /* Check that off_t can represent 2**63 - 1 correctly. | |
7120 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
7121 | since some C++ compilers masquerading as C compilers | |
7122 | incorrectly reject 9223372036854775807. */ | |
7123 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
7124 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
7125 | && LARGE_OFF_T % 2147483647 == 1) | |
7126 | ? 1 : -1]; | |
7127 | int | |
7128 | main () | |
7129 | { | |
7130 | ||
7131 | ; | |
7132 | return 0; | |
7133 | } | |
7134 | _ACEOF | |
7135 | if ac_fn_c_try_compile "$LINENO"; then : | |
7136 | ac_cv_sys_large_files=1; break | |
7137 | fi | |
7138 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
7139 | ac_cv_sys_large_files=unknown | |
7140 | break | |
7141 | done | |
7142 | fi | |
7143 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 | |
7144 | $as_echo "$ac_cv_sys_large_files" >&6; } | |
7145 | case $ac_cv_sys_large_files in #( | |
7146 | no | unknown) ;; | |
7147 | *) | |
7148 | cat >>confdefs.h <<_ACEOF | |
7149 | #define _LARGE_FILES $ac_cv_sys_large_files | |
7150 | _ACEOF | |
7151 | ;; | |
7152 | esac | |
7153 | rm -rf conftest* | |
7154 | fi | |
8eef2738 LB |
7155 | |
7156 | ||
97859b9d JS |
7157 | fi |
7158 | ||
3477519f FCE |
7159 | for ac_func in ppoll |
7160 | do : | |
7161 | ac_fn_c_check_func "$LINENO" "ppoll" "ac_cv_func_ppoll" | |
7162 | if test "x$ac_cv_func_ppoll" = xyes; then : | |
7163 | cat >>confdefs.h <<_ACEOF | |
7164 | #define HAVE_PPOLL 1 | |
7165 | _ACEOF | |
7166 | ||
7167 | fi | |
7168 | done | |
7169 | ||
7170 | for ac_func in openat | |
7171 | do : | |
7172 | ac_fn_c_check_func "$LINENO" "openat" "ac_cv_func_openat" | |
7173 | if test "x$ac_cv_func_openat" = xyes; then : | |
7174 | cat >>confdefs.h <<_ACEOF | |
7175 | #define HAVE_OPENAT 1 | |
7176 | _ACEOF | |
7177 | ||
7178 | fi | |
7179 | done | |
7180 | ||
8f223b3e FCE |
7181 | |
7182 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5 | |
7183 | $as_echo_n "checking whether NLS is requested... " >&6; } | |
7184 | # Check whether --enable-nls was given. | |
7185 | if test "${enable_nls+set}" = set; then : | |
7186 | enableval=$enable_nls; USE_NLS=$enableval | |
7187 | else | |
7188 | USE_NLS=yes | |
7189 | fi | |
7190 | ||
7191 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5 | |
7192 | $as_echo "$USE_NLS" >&6; } | |
7193 | ||
7194 | ||
7195 | ||
7196 | ||
7197 | GETTEXT_MACRO_VERSION=0.18 | |
7198 | ||
7199 | ||
7200 | ||
7201 | ||
7202 | # Prepare PATH_SEPARATOR. | |
7203 | # The user is always right. | |
7204 | if test "${PATH_SEPARATOR+set}" != set; then | |
42f767d0 JL |
7205 | # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which |
7206 | # contains only /bin. Note that ksh looks also at the FPATH variable, | |
7207 | # so we have to set that as well for the test. | |
7208 | PATH_SEPARATOR=: | |
7209 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ | |
7210 | && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ | |
7211 | || PATH_SEPARATOR=';' | |
7212 | } | |
8f223b3e FCE |
7213 | fi |
7214 | ||
7215 | # Find out how to test for executable files. Don't use a zero-byte file, | |
7216 | # as systems may use methods other than mode bits to determine executability. | |
7217 | cat >conf$$.file <<_ASEOF | |
7218 | #! /bin/sh | |
7219 | exit 0 | |
7220 | _ASEOF | |
7221 | chmod +x conf$$.file | |
7222 | if test -x conf$$.file >/dev/null 2>&1; then | |
7223 | ac_executable_p="test -x" | |
7224 | else | |
7225 | ac_executable_p="test -f" | |
7226 | fi | |
7227 | rm -f conf$$.file | |
7228 | ||
7229 | # Extract the first word of "msgfmt", so it can be a program name with args. | |
7230 | set dummy msgfmt; ac_word=$2 | |
7231 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7232 | $as_echo_n "checking for $ac_word... " >&6; } | |
c3de29bd | 7233 | if ${ac_cv_path_MSGFMT+:} false; then : |
8f223b3e FCE |
7234 | $as_echo_n "(cached) " >&6 |
7235 | else | |
7236 | case "$MSGFMT" in | |
7237 | [\\/]* | ?:[\\/]*) | |
7238 | ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. | |
7239 | ;; | |
7240 | *) | |
7241 | ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR | |
7242 | for ac_dir in $PATH; do | |
7243 | IFS="$ac_save_IFS" | |
7244 | test -z "$ac_dir" && ac_dir=. | |
7245 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7246 | if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then | |
7247 | echo "$as_me: trying $ac_dir/$ac_word..." >&5 | |
7248 | if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 && | |
7249 | (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then | |
7250 | ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext" | |
7251 | break 2 | |
7252 | fi | |
7253 | fi | |
7254 | done | |
7255 | done | |
7256 | IFS="$ac_save_IFS" | |
7257 | test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":" | |
7258 | ;; | |
7fbd9d09 | 7259 | esac |
8f223b3e FCE |
7260 | fi |
7261 | MSGFMT="$ac_cv_path_MSGFMT" | |
7262 | if test "$MSGFMT" != ":"; then | |
7263 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5 | |
7264 | $as_echo "$MSGFMT" >&6; } | |
7265 | else | |
7266 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7267 | $as_echo "no" >&6; } | |
7268 | fi | |
7269 | ||
7270 | # Extract the first word of "gmsgfmt", so it can be a program name with args. | |
7271 | set dummy gmsgfmt; ac_word=$2 | |
7272 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7273 | $as_echo_n "checking for $ac_word... " >&6; } | |
c3de29bd | 7274 | if ${ac_cv_path_GMSGFMT+:} false; then : |
8f223b3e FCE |
7275 | $as_echo_n "(cached) " >&6 |
7276 | else | |
7277 | case $GMSGFMT in | |
7278 | [\\/]* | ?:[\\/]*) | |
7279 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. | |
7280 | ;; | |
7281 | *) | |
7282 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7283 | for as_dir in $PATH | |
7284 | do | |
7285 | IFS=$as_save_IFS | |
7286 | test -z "$as_dir" && as_dir=. | |
7287 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8eef2738 | 7288 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
8f223b3e FCE |
7289 | ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext" |
7290 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7291 | break 2 | |
7292 | fi | |
7293 | done | |
7294 | done | |
7295 | IFS=$as_save_IFS | |
7296 | ||
7297 | test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" | |
7298 | ;; | |
7fbd9d09 | 7299 | esac |
8f223b3e FCE |
7300 | fi |
7301 | GMSGFMT=$ac_cv_path_GMSGFMT | |
7302 | if test -n "$GMSGFMT"; then | |
7303 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5 | |
7304 | $as_echo "$GMSGFMT" >&6; } | |
7305 | else | |
7306 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7307 | $as_echo "no" >&6; } | |
7308 | fi | |
7309 | ||
7310 | ||
7311 | ||
7312 | case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in | |
7313 | '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;; | |
7314 | *) MSGFMT_015=$MSGFMT ;; | |
7315 | esac | |
7316 | ||
7317 | case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in | |
7318 | '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;; | |
7319 | *) GMSGFMT_015=$GMSGFMT ;; | |
7320 | esac | |
7321 | ||
7322 | ||
7323 | ||
7324 | # Prepare PATH_SEPARATOR. | |
7325 | # The user is always right. | |
7326 | if test "${PATH_SEPARATOR+set}" != set; then | |
42f767d0 JL |
7327 | # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which |
7328 | # contains only /bin. Note that ksh looks also at the FPATH variable, | |
7329 | # so we have to set that as well for the test. | |
7330 | PATH_SEPARATOR=: | |
7331 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ | |
7332 | && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ | |
7333 | || PATH_SEPARATOR=';' | |
7334 | } | |
8f223b3e FCE |
7335 | fi |
7336 | ||
7337 | # Find out how to test for executable files. Don't use a zero-byte file, | |
7338 | # as systems may use methods other than mode bits to determine executability. | |
7339 | cat >conf$$.file <<_ASEOF | |
7340 | #! /bin/sh | |
7341 | exit 0 | |
7342 | _ASEOF | |
7343 | chmod +x conf$$.file | |
7344 | if test -x conf$$.file >/dev/null 2>&1; then | |
7345 | ac_executable_p="test -x" | |
7346 | else | |
7347 | ac_executable_p="test -f" | |
7348 | fi | |
7349 | rm -f conf$$.file | |
7350 | ||
7351 | # Extract the first word of "xgettext", so it can be a program name with args. | |
7352 | set dummy xgettext; ac_word=$2 | |
7353 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7354 | $as_echo_n "checking for $ac_word... " >&6; } | |
c3de29bd | 7355 | if ${ac_cv_path_XGETTEXT+:} false; then : |
8f223b3e FCE |
7356 | $as_echo_n "(cached) " >&6 |
7357 | else | |
7358 | case "$XGETTEXT" in | |
7359 | [\\/]* | ?:[\\/]*) | |
7360 | ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. | |
7361 | ;; | |
7362 | *) | |
7363 | ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR | |
7364 | for ac_dir in $PATH; do | |
7365 | IFS="$ac_save_IFS" | |
7366 | test -z "$ac_dir" && ac_dir=. | |
7367 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7368 | if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then | |
7369 | echo "$as_me: trying $ac_dir/$ac_word..." >&5 | |
7370 | if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 && | |
7371 | (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 | |
7372 | ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext" | |
7373 | break 2 | |
7374 | fi | |
7375 | fi | |
7376 | done | |
7377 | done | |
7378 | IFS="$ac_save_IFS" | |
7379 | test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" | |
7380 | ;; | |
7381 | esac | |
7382 | fi | |
7383 | XGETTEXT="$ac_cv_path_XGETTEXT" | |
7384 | if test "$XGETTEXT" != ":"; then | |
7385 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5 | |
7386 | $as_echo "$XGETTEXT" >&6; } | |
7387 | else | |
7388 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7389 | $as_echo "no" >&6; } | |
7390 | fi | |
7391 | ||
7392 | rm -f messages.po | |
7393 | ||
7394 | case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in | |
7395 | '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;; | |
7396 | *) XGETTEXT_015=$XGETTEXT ;; | |
7397 | esac | |
7398 | ||
7399 | ||
7400 | ||
7401 | # Prepare PATH_SEPARATOR. | |
7402 | # The user is always right. | |
7403 | if test "${PATH_SEPARATOR+set}" != set; then | |
42f767d0 JL |
7404 | # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which |
7405 | # contains only /bin. Note that ksh looks also at the FPATH variable, | |
7406 | # so we have to set that as well for the test. | |
7407 | PATH_SEPARATOR=: | |
7408 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ | |
7409 | && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ | |
7410 | || PATH_SEPARATOR=';' | |
7411 | } | |
8f223b3e FCE |
7412 | fi |
7413 | ||
7414 | # Find out how to test for executable files. Don't use a zero-byte file, | |
7415 | # as systems may use methods other than mode bits to determine executability. | |
7416 | cat >conf$$.file <<_ASEOF | |
7417 | #! /bin/sh | |
7418 | exit 0 | |
7419 | _ASEOF | |
7420 | chmod +x conf$$.file | |
7421 | if test -x conf$$.file >/dev/null 2>&1; then | |
7422 | ac_executable_p="test -x" | |
7423 | else | |
7424 | ac_executable_p="test -f" | |
7425 | fi | |
7426 | rm -f conf$$.file | |
7427 | ||
7428 | # Extract the first word of "msgmerge", so it can be a program name with args. | |
7429 | set dummy msgmerge; ac_word=$2 | |
7430 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7431 | $as_echo_n "checking for $ac_word... " >&6; } | |
c3de29bd | 7432 | if ${ac_cv_path_MSGMERGE+:} false; then : |
8f223b3e FCE |
7433 | $as_echo_n "(cached) " >&6 |
7434 | else | |
7435 | case "$MSGMERGE" in | |
7436 | [\\/]* | ?:[\\/]*) | |
7437 | ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path. | |
7438 | ;; | |
7439 | *) | |
7440 | ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR | |
7441 | for ac_dir in $PATH; do | |
7442 | IFS="$ac_save_IFS" | |
7443 | test -z "$ac_dir" && ac_dir=. | |
7444 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7445 | if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then | |
7446 | echo "$as_me: trying $ac_dir/$ac_word..." >&5 | |
7447 | if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then | |
7448 | ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext" | |
7449 | break 2 | |
7450 | fi | |
7451 | fi | |
7452 | done | |
7453 | done | |
7454 | IFS="$ac_save_IFS" | |
7455 | test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":" | |
7456 | ;; | |
7457 | esac | |
7458 | fi | |
7459 | MSGMERGE="$ac_cv_path_MSGMERGE" | |
7460 | if test "$MSGMERGE" != ":"; then | |
7461 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5 | |
7462 | $as_echo "$MSGMERGE" >&6; } | |
7463 | else | |
7464 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7465 | $as_echo "no" >&6; } | |
7466 | fi | |
7467 | ||
7468 | ||
7469 | test -n "$localedir" || localedir='${datadir}/locale' | |
7470 | ||
7471 | ||
7472 | test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS= | |
7473 | ||
7474 | ||
7475 | ac_config_commands="$ac_config_commands po-directories" | |
7476 | ||
7477 | ||
7478 | ||
7479 | if test "X$prefix" = "XNONE"; then | |
7480 | acl_final_prefix="$ac_default_prefix" | |
7481 | else | |
7482 | acl_final_prefix="$prefix" | |
8ae7a94a | 7483 | fi |
8f223b3e FCE |
7484 | if test "X$exec_prefix" = "XNONE"; then |
7485 | acl_final_exec_prefix='${prefix}' | |
7486 | else | |
7487 | acl_final_exec_prefix="$exec_prefix" | |
7488 | fi | |
7489 | acl_save_prefix="$prefix" | |
7490 | prefix="$acl_final_prefix" | |
7491 | eval acl_final_exec_prefix=\"$acl_final_exec_prefix\" | |
7492 | prefix="$acl_save_prefix" | |
7493 | ||
8ae7a94a | 7494 | |
42f767d0 | 7495 | |
8f223b3e FCE |
7496 | # Check whether --with-gnu-ld was given. |
7497 | if test "${with_gnu_ld+set}" = set; then : | |
7498 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes | |
7499 | else | |
7500 | with_gnu_ld=no | |
8ae7a94a FCE |
7501 | fi |
7502 | ||
8f223b3e FCE |
7503 | # Prepare PATH_SEPARATOR. |
7504 | # The user is always right. | |
7505 | if test "${PATH_SEPARATOR+set}" != set; then | |
42f767d0 JL |
7506 | # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which |
7507 | # contains only /bin. Note that ksh looks also at the FPATH variable, | |
7508 | # so we have to set that as well for the test. | |
7509 | PATH_SEPARATOR=: | |
7510 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ | |
7511 | && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ | |
7512 | || PATH_SEPARATOR=';' | |
7513 | } | |
8f223b3e | 7514 | fi |
42f767d0 | 7515 | |
8f223b3e FCE |
7516 | ac_prog=ld |
7517 | if test "$GCC" = yes; then | |
7518 | # Check if gcc -print-prog-name=ld gives a path. | |
42f767d0 JL |
7519 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 |
7520 | $as_echo_n "checking for ld used by $CC... " >&6; } | |
8f223b3e FCE |
7521 | case $host in |
7522 | *-*-mingw*) | |
7523 | # gcc leaves a trailing carriage return which upsets mingw | |
7524 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | |
7525 | *) | |
7526 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | |
7527 | esac | |
7528 | case $ac_prog in | |
7529 | # Accept absolute paths. | |
42f767d0 | 7530 | [\\/]* | ?:[\\/]*) |
8f223b3e | 7531 | re_direlt='/[^/][^/]*/\.\./' |
42f767d0 JL |
7532 | # Canonicalize the pathname of ld |
7533 | ac_prog=`echo "$ac_prog"| sed 's%\\\\%/%g'` | |
7534 | while echo "$ac_prog" | grep "$re_direlt" > /dev/null 2>&1; do | |
8f223b3e FCE |
7535 | ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` |
7536 | done | |
7537 | test -z "$LD" && LD="$ac_prog" | |
7538 | ;; | |
7539 | "") | |
7540 | # If it fails, then pretend we aren't using GCC. | |
7541 | ac_prog=ld | |
7542 | ;; | |
7543 | *) | |
7544 | # If it is relative, then search for the first ld in PATH. | |
7545 | with_gnu_ld=unknown | |
7546 | ;; | |
7547 | esac | |
7548 | elif test "$with_gnu_ld" = yes; then | |
7549 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 | |
7550 | $as_echo_n "checking for GNU ld... " >&6; } | |
7551 | else | |
7552 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 | |
7553 | $as_echo_n "checking for non-GNU ld... " >&6; } | |
7554 | fi | |
c3de29bd | 7555 | if ${acl_cv_path_LD+:} false; then : |
8f223b3e FCE |
7556 | $as_echo_n "(cached) " >&6 |
7557 | else | |
7558 | if test -z "$LD"; then | |
42f767d0 | 7559 | acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
8f223b3e | 7560 | for ac_dir in $PATH; do |
42f767d0 | 7561 | IFS="$acl_save_ifs" |
8f223b3e FCE |
7562 | test -z "$ac_dir" && ac_dir=. |
7563 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | |
7564 | acl_cv_path_LD="$ac_dir/$ac_prog" | |
7565 | # Check to see if the program is GNU ld. I'd rather use --version, | |
42f767d0 | 7566 | # but apparently some variants of GNU ld only accept -v. |
8f223b3e | 7567 | # Break only if it was the GNU/non-GNU ld that we prefer. |
42f767d0 | 7568 | case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in |
8f223b3e | 7569 | *GNU* | *'with BFD'*) |
42f767d0 JL |
7570 | test "$with_gnu_ld" != no && break |
7571 | ;; | |
8f223b3e | 7572 | *) |
42f767d0 JL |
7573 | test "$with_gnu_ld" != yes && break |
7574 | ;; | |
8f223b3e FCE |
7575 | esac |
7576 | fi | |
7577 | done | |
42f767d0 | 7578 | IFS="$acl_save_ifs" |
8f223b3e FCE |
7579 | else |
7580 | acl_cv_path_LD="$LD" # Let the user override the test with a path. | |
7581 | fi | |
8ae7a94a FCE |
7582 | fi |
7583 | ||
8f223b3e FCE |
7584 | LD="$acl_cv_path_LD" |
7585 | if test -n "$LD"; then | |
7586 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 | |
7587 | $as_echo "$LD" >&6; } | |
7588 | else | |
7589 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7590 | $as_echo "no" >&6; } | |
7591 | fi | |
5d4aa1f5 | 7592 | test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 |
8f223b3e FCE |
7593 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 |
7594 | $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } | |
c3de29bd | 7595 | if ${acl_cv_prog_gnu_ld+:} false; then : |
8f223b3e FCE |
7596 | $as_echo_n "(cached) " >&6 |
7597 | else | |
42f767d0 | 7598 | # I'd rather use --version here, but apparently some GNU lds only accept -v. |
8f223b3e FCE |
7599 | case `$LD -v 2>&1 </dev/null` in |
7600 | *GNU* | *'with BFD'*) | |
42f767d0 JL |
7601 | acl_cv_prog_gnu_ld=yes |
7602 | ;; | |
8f223b3e | 7603 | *) |
42f767d0 JL |
7604 | acl_cv_prog_gnu_ld=no |
7605 | ;; | |
8f223b3e FCE |
7606 | esac |
7607 | fi | |
7608 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5 | |
7609 | $as_echo "$acl_cv_prog_gnu_ld" >&6; } | |
7610 | with_gnu_ld=$acl_cv_prog_gnu_ld | |
7fbd9d09 | 7611 | |
2f1a1aea | 7612 | |
2f1a1aea FCE |
7613 | |
7614 | ||
8f223b3e FCE |
7615 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5 |
7616 | $as_echo_n "checking for shared library run path origin... " >&6; } | |
c3de29bd | 7617 | if ${acl_cv_rpath+:} false; then : |
8f223b3e FCE |
7618 | $as_echo_n "(cached) " >&6 |
7619 | else | |
2f1a1aea | 7620 | |
8f223b3e FCE |
7621 | CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \ |
7622 | ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh | |
7623 | . ./conftest.sh | |
7624 | rm -f ./conftest.sh | |
7625 | acl_cv_rpath=done | |
7626 | ||
7627 | fi | |
7628 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5 | |
7629 | $as_echo "$acl_cv_rpath" >&6; } | |
7630 | wl="$acl_cv_wl" | |
7631 | acl_libext="$acl_cv_libext" | |
7632 | acl_shlibext="$acl_cv_shlibext" | |
7633 | acl_libname_spec="$acl_cv_libname_spec" | |
7634 | acl_library_names_spec="$acl_cv_library_names_spec" | |
7635 | acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec" | |
7636 | acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator" | |
7637 | acl_hardcode_direct="$acl_cv_hardcode_direct" | |
7638 | acl_hardcode_minus_L="$acl_cv_hardcode_minus_L" | |
7639 | # Check whether --enable-rpath was given. | |
7640 | if test "${enable_rpath+set}" = set; then : | |
7641 | enableval=$enable_rpath; : | |
2f1a1aea | 7642 | else |
8f223b3e | 7643 | enable_rpath=yes |
7fbd9d09 FCE |
7644 | fi |
7645 | ||
7646 | ||
7647 | ||
8f223b3e FCE |
7648 | |
7649 | acl_libdirstem=lib | |
7650 | acl_libdirstem2= | |
7651 | case "$host_os" in | |
7652 | solaris*) | |
7653 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5 | |
7654 | $as_echo_n "checking for 64-bit host... " >&6; } | |
c3de29bd | 7655 | if ${gl_cv_solaris_64bit+:} false; then : |
0710d850 | 7656 | $as_echo_n "(cached) " >&6 |
7fbd9d09 | 7657 | else |
8f223b3e FCE |
7658 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7659 | /* end confdefs.h. */ | |
7660 | ||
7661 | #ifdef _LP64 | |
7662 | sixtyfour bits | |
7663 | #endif | |
7664 | ||
7665 | _ACEOF | |
7666 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
7667 | $EGREP "sixtyfour bits" >/dev/null 2>&1; then : | |
7668 | gl_cv_solaris_64bit=yes | |
7669 | else | |
7670 | gl_cv_solaris_64bit=no | |
7671 | fi | |
7672 | rm -f conftest* | |
7673 | ||
7674 | ||
7675 | fi | |
7676 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5 | |
7677 | $as_echo "$gl_cv_solaris_64bit" >&6; } | |
7678 | if test $gl_cv_solaris_64bit = yes; then | |
7679 | acl_libdirstem=lib/64 | |
7680 | case "$host_cpu" in | |
7681 | sparc*) acl_libdirstem2=lib/sparcv9 ;; | |
7682 | i*86 | x86_64) acl_libdirstem2=lib/amd64 ;; | |
7683 | esac | |
7684 | fi | |
7685 | ;; | |
7686 | *) | |
7687 | searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'` | |
7688 | if test -n "$searchpath"; then | |
7689 | acl_save_IFS="${IFS= }"; IFS=":" | |
7690 | for searchdir in $searchpath; do | |
7691 | if test -d "$searchdir"; then | |
7692 | case "$searchdir" in | |
7693 | */lib64/ | */lib64 ) acl_libdirstem=lib64 ;; | |
7694 | */../ | */.. ) | |
7695 | # Better ignore directories of this form. They are misleading. | |
7696 | ;; | |
7697 | *) searchdir=`cd "$searchdir" && pwd` | |
7698 | case "$searchdir" in | |
7699 | */lib64 ) acl_libdirstem=lib64 ;; | |
7700 | esac ;; | |
7701 | esac | |
7702 | fi | |
7703 | done | |
7704 | IFS="$acl_save_IFS" | |
7705 | fi | |
7706 | ;; | |
7707 | esac | |
7708 | test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem" | |
7709 | ||
7710 | ||
7711 | ||
7712 | ||
7713 | ||
7714 | ||
7715 | ||
7716 | ||
7717 | ||
7718 | ||
7719 | ||
7720 | ||
7721 | use_additional=yes | |
7722 | ||
7723 | acl_save_prefix="$prefix" | |
7724 | prefix="$acl_final_prefix" | |
7725 | acl_save_exec_prefix="$exec_prefix" | |
7726 | exec_prefix="$acl_final_exec_prefix" | |
7727 | ||
7728 | eval additional_includedir=\"$includedir\" | |
7729 | eval additional_libdir=\"$libdir\" | |
7730 | ||
7731 | exec_prefix="$acl_save_exec_prefix" | |
7732 | prefix="$acl_save_prefix" | |
7733 | ||
7734 | ||
7735 | # Check whether --with-libiconv-prefix was given. | |
7736 | if test "${with_libiconv_prefix+set}" = set; then : | |
7737 | withval=$with_libiconv_prefix; | |
7738 | if test "X$withval" = "Xno"; then | |
7739 | use_additional=no | |
7740 | else | |
7741 | if test "X$withval" = "X"; then | |
7742 | ||
7743 | acl_save_prefix="$prefix" | |
7744 | prefix="$acl_final_prefix" | |
7745 | acl_save_exec_prefix="$exec_prefix" | |
7746 | exec_prefix="$acl_final_exec_prefix" | |
7747 | ||
7748 | eval additional_includedir=\"$includedir\" | |
7749 | eval additional_libdir=\"$libdir\" | |
7750 | ||
7751 | exec_prefix="$acl_save_exec_prefix" | |
7752 | prefix="$acl_save_prefix" | |
7753 | ||
7754 | else | |
7755 | additional_includedir="$withval/include" | |
7756 | additional_libdir="$withval/$acl_libdirstem" | |
7757 | if test "$acl_libdirstem2" != "$acl_libdirstem" \ | |
7758 | && ! test -d "$withval/$acl_libdirstem"; then | |
7759 | additional_libdir="$withval/$acl_libdirstem2" | |
7760 | fi | |
7761 | fi | |
7fbd9d09 | 7762 | fi |
7fbd9d09 | 7763 | |
8f223b3e FCE |
7764 | fi |
7765 | ||
7766 | LIBICONV= | |
7767 | LTLIBICONV= | |
7768 | INCICONV= | |
7769 | LIBICONV_PREFIX= | |
7770 | HAVE_LIBICONV= | |
7771 | rpathdirs= | |
7772 | ltrpathdirs= | |
7773 | names_already_handled= | |
7774 | names_next_round='iconv ' | |
7775 | while test -n "$names_next_round"; do | |
7776 | names_this_round="$names_next_round" | |
7777 | names_next_round= | |
7778 | for name in $names_this_round; do | |
7779 | already_handled= | |
7780 | for n in $names_already_handled; do | |
7781 | if test "$n" = "$name"; then | |
7782 | already_handled=yes | |
7783 | break | |
7784 | fi | |
7785 | done | |
7786 | if test -z "$already_handled"; then | |
7787 | names_already_handled="$names_already_handled $name" | |
42f767d0 | 7788 | uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'` |
8f223b3e FCE |
7789 | eval value=\"\$HAVE_LIB$uppername\" |
7790 | if test -n "$value"; then | |
7791 | if test "$value" = yes; then | |
7792 | eval value=\"\$LIB$uppername\" | |
7793 | test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value" | |
7794 | eval value=\"\$LTLIB$uppername\" | |
7795 | test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value" | |
7796 | else | |
7797 | : | |
7798 | fi | |
7799 | else | |
7800 | found_dir= | |
7801 | found_la= | |
7802 | found_so= | |
7803 | found_a= | |
7804 | eval libname=\"$acl_libname_spec\" # typically: libname=lib$name | |
7805 | if test -n "$acl_shlibext"; then | |
7806 | shrext=".$acl_shlibext" # typically: shrext=.so | |
7807 | else | |
7808 | shrext= | |
7809 | fi | |
7810 | if test $use_additional = yes; then | |
7811 | dir="$additional_libdir" | |
7812 | if test -n "$acl_shlibext"; then | |
7813 | if test -f "$dir/$libname$shrext"; then | |
7814 | found_dir="$dir" | |
7815 | found_so="$dir/$libname$shrext" | |
7816 | else | |
7817 | if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then | |
7818 | ver=`(cd "$dir" && \ | |
7819 | for f in "$libname$shrext".*; do echo "$f"; done \ | |
7820 | | sed -e "s,^$libname$shrext\\\\.,," \ | |
7821 | | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ | |
7822 | | sed 1q ) 2>/dev/null` | |
7823 | if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then | |
7824 | found_dir="$dir" | |
7825 | found_so="$dir/$libname$shrext.$ver" | |
7826 | fi | |
7827 | else | |
7828 | eval library_names=\"$acl_library_names_spec\" | |
7829 | for f in $library_names; do | |
7830 | if test -f "$dir/$f"; then | |
7831 | found_dir="$dir" | |
7832 | found_so="$dir/$f" | |
7833 | break | |
7834 | fi | |
7835 | done | |
7836 | fi | |
7837 | fi | |
7838 | fi | |
7839 | if test "X$found_dir" = "X"; then | |
7840 | if test -f "$dir/$libname.$acl_libext"; then | |
7841 | found_dir="$dir" | |
7842 | found_a="$dir/$libname.$acl_libext" | |
7843 | fi | |
7844 | fi | |
7845 | if test "X$found_dir" != "X"; then | |
7846 | if test -f "$dir/$libname.la"; then | |
7847 | found_la="$dir/$libname.la" | |
7848 | fi | |
7849 | fi | |
7850 | fi | |
7851 | if test "X$found_dir" = "X"; then | |
7852 | for x in $LDFLAGS $LTLIBICONV; do | |
7853 | ||
7854 | acl_save_prefix="$prefix" | |
7855 | prefix="$acl_final_prefix" | |
7856 | acl_save_exec_prefix="$exec_prefix" | |
7857 | exec_prefix="$acl_final_exec_prefix" | |
7858 | eval x=\"$x\" | |
7859 | exec_prefix="$acl_save_exec_prefix" | |
7860 | prefix="$acl_save_prefix" | |
7861 | ||
7862 | case "$x" in | |
7863 | -L*) | |
7864 | dir=`echo "X$x" | sed -e 's/^X-L//'` | |
7865 | if test -n "$acl_shlibext"; then | |
7866 | if test -f "$dir/$libname$shrext"; then | |
7867 | found_dir="$dir" | |
7868 | found_so="$dir/$libname$shrext" | |
7869 | else | |
7870 | if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then | |
7871 | ver=`(cd "$dir" && \ | |
7872 | for f in "$libname$shrext".*; do echo "$f"; done \ | |
7873 | | sed -e "s,^$libname$shrext\\\\.,," \ | |
7874 | | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ | |
7875 | | sed 1q ) 2>/dev/null` | |
7876 | if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then | |
7877 | found_dir="$dir" | |
7878 | found_so="$dir/$libname$shrext.$ver" | |
7879 | fi | |
7880 | else | |
7881 | eval library_names=\"$acl_library_names_spec\" | |
7882 | for f in $library_names; do | |
7883 | if test -f "$dir/$f"; then | |
7884 | found_dir="$dir" | |
7885 | found_so="$dir/$f" | |
7886 | break | |
7887 | fi | |
7888 | done | |
7889 | fi | |
7890 | fi | |
7891 | fi | |
7892 | if test "X$found_dir" = "X"; then | |
7893 | if test -f "$dir/$libname.$acl_libext"; then | |
7894 | found_dir="$dir" | |
7895 | found_a="$dir/$libname.$acl_libext" | |
7896 | fi | |
7897 | fi | |
7898 | if test "X$found_dir" != "X"; then | |
7899 | if test -f "$dir/$libname.la"; then | |
7900 | found_la="$dir/$libname.la" | |
7901 | fi | |
7902 | fi | |
7903 | ;; | |
7904 | esac | |
7905 | if test "X$found_dir" != "X"; then | |
7906 | break | |
7907 | fi | |
7908 | done | |
7909 | fi | |
7910 | if test "X$found_dir" != "X"; then | |
7911 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name" | |
7912 | if test "X$found_so" != "X"; then | |
7913 | if test "$enable_rpath" = no \ | |
7914 | || test "X$found_dir" = "X/usr/$acl_libdirstem" \ | |
7915 | || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then | |
7916 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" | |
7917 | else | |
7918 | haveit= | |
7919 | for x in $ltrpathdirs; do | |
7920 | if test "X$x" = "X$found_dir"; then | |
7921 | haveit=yes | |
7922 | break | |
7923 | fi | |
7924 | done | |
7925 | if test -z "$haveit"; then | |
7926 | ltrpathdirs="$ltrpathdirs $found_dir" | |
7927 | fi | |
7928 | if test "$acl_hardcode_direct" = yes; then | |
7929 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" | |
7930 | else | |
7931 | if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then | |
7932 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" | |
7933 | haveit= | |
7934 | for x in $rpathdirs; do | |
7935 | if test "X$x" = "X$found_dir"; then | |
7936 | haveit=yes | |
7937 | break | |
7938 | fi | |
7939 | done | |
7940 | if test -z "$haveit"; then | |
7941 | rpathdirs="$rpathdirs $found_dir" | |
7942 | fi | |
7943 | else | |
7944 | haveit= | |
7945 | for x in $LDFLAGS $LIBICONV; do | |
7946 | ||
7947 | acl_save_prefix="$prefix" | |
7948 | prefix="$acl_final_prefix" | |
7949 | acl_save_exec_prefix="$exec_prefix" | |
7950 | exec_prefix="$acl_final_exec_prefix" | |
7951 | eval x=\"$x\" | |
7952 | exec_prefix="$acl_save_exec_prefix" | |
7953 | prefix="$acl_save_prefix" | |
7954 | ||
7955 | if test "X$x" = "X-L$found_dir"; then | |
7956 | haveit=yes | |
7957 | break | |
7958 | fi | |
7959 | done | |
7960 | if test -z "$haveit"; then | |
7961 | LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir" | |
7962 | fi | |
7963 | if test "$acl_hardcode_minus_L" != no; then | |
7964 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" | |
7965 | else | |
7966 | LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" | |
7967 | fi | |
7968 | fi | |
7969 | fi | |
7970 | fi | |
7971 | else | |
7972 | if test "X$found_a" != "X"; then | |
7973 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a" | |
7974 | else | |
7975 | LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name" | |
7976 | fi | |
7977 | fi | |
7978 | additional_includedir= | |
7979 | case "$found_dir" in | |
7980 | */$acl_libdirstem | */$acl_libdirstem/) | |
7981 | basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'` | |
7982 | if test "$name" = 'iconv'; then | |
7983 | LIBICONV_PREFIX="$basedir" | |
7984 | fi | |
7985 | additional_includedir="$basedir/include" | |
7986 | ;; | |
7987 | */$acl_libdirstem2 | */$acl_libdirstem2/) | |
7988 | basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'` | |
7989 | if test "$name" = 'iconv'; then | |
7990 | LIBICONV_PREFIX="$basedir" | |
7991 | fi | |
7992 | additional_includedir="$basedir/include" | |
7993 | ;; | |
7994 | esac | |
7995 | if test "X$additional_includedir" != "X"; then | |
7996 | if test "X$additional_includedir" != "X/usr/include"; then | |
7997 | haveit= | |
7998 | if test "X$additional_includedir" = "X/usr/local/include"; then | |
7999 | if test -n "$GCC"; then | |
8000 | case $host_os in | |
8001 | linux* | gnu* | k*bsd*-gnu) haveit=yes;; | |
8002 | esac | |
8003 | fi | |
8004 | fi | |
8005 | if test -z "$haveit"; then | |
8006 | for x in $CPPFLAGS $INCICONV; do | |
8007 | ||
8008 | acl_save_prefix="$prefix" | |
8009 | prefix="$acl_final_prefix" | |
8010 | acl_save_exec_prefix="$exec_prefix" | |
8011 | exec_prefix="$acl_final_exec_prefix" | |
8012 | eval x=\"$x\" | |
8013 | exec_prefix="$acl_save_exec_prefix" | |
8014 | prefix="$acl_save_prefix" | |
8015 | ||
8016 | if test "X$x" = "X-I$additional_includedir"; then | |
8017 | haveit=yes | |
8018 | break | |
8019 | fi | |
8020 | done | |
8021 | if test -z "$haveit"; then | |
8022 | if test -d "$additional_includedir"; then | |
8023 | INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir" | |
8024 | fi | |
8025 | fi | |
8026 | fi | |
8027 | fi | |
8028 | fi | |
8029 | if test -n "$found_la"; then | |
8030 | save_libdir="$libdir" | |
8031 | case "$found_la" in | |
8032 | */* | *\\*) . "$found_la" ;; | |
8033 | *) . "./$found_la" ;; | |
8034 | esac | |
8035 | libdir="$save_libdir" | |
8036 | for dep in $dependency_libs; do | |
8037 | case "$dep" in | |
8038 | -L*) | |
8039 | additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` | |
8040 | if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \ | |
8041 | && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then | |
8042 | haveit= | |
8043 | if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \ | |
8044 | || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then | |
8045 | if test -n "$GCC"; then | |
8046 | case $host_os in | |
8047 | linux* | gnu* | k*bsd*-gnu) haveit=yes;; | |
8048 | esac | |
8049 | fi | |
8050 | fi | |
8051 | if test -z "$haveit"; then | |
8052 | haveit= | |
8053 | for x in $LDFLAGS $LIBICONV; do | |
8054 | ||
8055 | acl_save_prefix="$prefix" | |
8056 | prefix="$acl_final_prefix" | |
8057 | acl_save_exec_prefix="$exec_prefix" | |
8058 | exec_prefix="$acl_final_exec_prefix" | |
8059 | eval x=\"$x\" | |
8060 | exec_prefix="$acl_save_exec_prefix" | |
8061 | prefix="$acl_save_prefix" | |
8062 | ||
8063 | if test "X$x" = "X-L$additional_libdir"; then | |
8064 | haveit=yes | |
8065 | break | |
8066 | fi | |
8067 | done | |
8068 | if test -z "$haveit"; then | |
8069 | if test -d "$additional_libdir"; then | |
8070 | LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir" | |
8071 | fi | |
8072 | fi | |
8073 | haveit= | |
8074 | for x in $LDFLAGS $LTLIBICONV; do | |
8075 | ||
8076 | acl_save_prefix="$prefix" | |
8077 | prefix="$acl_final_prefix" | |
8078 | acl_save_exec_prefix="$exec_prefix" | |
8079 | exec_prefix="$acl_final_exec_prefix" | |
8080 | eval x=\"$x\" | |
8081 | exec_prefix="$acl_save_exec_prefix" | |
8082 | prefix="$acl_save_prefix" | |
8083 | ||
8084 | if test "X$x" = "X-L$additional_libdir"; then | |
8085 | haveit=yes | |
8086 | break | |
8087 | fi | |
8088 | done | |
8089 | if test -z "$haveit"; then | |
8090 | if test -d "$additional_libdir"; then | |
8091 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir" | |
8092 | fi | |
8093 | fi | |
8094 | fi | |
8095 | fi | |
8096 | ;; | |
8097 | -R*) | |
8098 | dir=`echo "X$dep" | sed -e 's/^X-R//'` | |
8099 | if test "$enable_rpath" != no; then | |
8100 | haveit= | |
8101 | for x in $rpathdirs; do | |
8102 | if test "X$x" = "X$dir"; then | |
8103 | haveit=yes | |
8104 | break | |
8105 | fi | |
8106 | done | |
8107 | if test -z "$haveit"; then | |
8108 | rpathdirs="$rpathdirs $dir" | |
8109 | fi | |
8110 | haveit= | |
8111 | for x in $ltrpathdirs; do | |
8112 | if test "X$x" = "X$dir"; then | |
8113 | haveit=yes | |
8114 | break | |
8115 | fi | |
8116 | done | |
8117 | if test -z "$haveit"; then | |
8118 | ltrpathdirs="$ltrpathdirs $dir" | |
8119 | fi | |
8120 | fi | |
8121 | ;; | |
8122 | -l*) | |
8123 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` | |
8124 | ;; | |
8125 | *.la) | |
8126 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` | |
8127 | ;; | |
8128 | *) | |
8129 | LIBICONV="${LIBICONV}${LIBICONV:+ }$dep" | |
8130 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep" | |
8131 | ;; | |
8132 | esac | |
8133 | done | |
8134 | fi | |
8135 | else | |
8136 | LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" | |
8137 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name" | |
8138 | fi | |
8139 | fi | |
8140 | fi | |
0710d850 | 8141 | done |
7fbd9d09 | 8142 | done |
8f223b3e FCE |
8143 | if test "X$rpathdirs" != "X"; then |
8144 | if test -n "$acl_hardcode_libdir_separator"; then | |
8145 | alldirs= | |
8146 | for found_dir in $rpathdirs; do | |
8147 | alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir" | |
8148 | done | |
8149 | acl_save_libdir="$libdir" | |
8150 | libdir="$alldirs" | |
8151 | eval flag=\"$acl_hardcode_libdir_flag_spec\" | |
8152 | libdir="$acl_save_libdir" | |
8153 | LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" | |
8154 | else | |
8155 | for found_dir in $rpathdirs; do | |
8156 | acl_save_libdir="$libdir" | |
8157 | libdir="$found_dir" | |
8158 | eval flag=\"$acl_hardcode_libdir_flag_spec\" | |
8159 | libdir="$acl_save_libdir" | |
8160 | LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" | |
8161 | done | |
8162 | fi | |
8163 | fi | |
8164 | if test "X$ltrpathdirs" != "X"; then | |
8165 | for found_dir in $ltrpathdirs; do | |
8166 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir" | |
8167 | done | |
0710d850 | 8168 | fi |
70d28673 | 8169 | |
7fbd9d09 | 8170 | |
70d28673 | 8171 | |
8f223b3e FCE |
8172 | |
8173 | ||
8174 | ||
8175 | ||
8176 | ||
8177 | ||
8178 | ||
8179 | ||
8180 | ||
8181 | ||
8182 | ||
8183 | ||
8184 | ||
8185 | ||
8186 | ||
8187 | ||
8188 | ||
8189 | ||
8190 | ||
8191 | ||
8192 | ||
8193 | ||
8194 | ||
8195 | ||
8196 | ||
42f767d0 JL |
8197 | |
8198 | ||
8199 | ||
8200 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5 | |
8201 | $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; } | |
8202 | if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then : | |
8203 | $as_echo_n "(cached) " >&6 | |
8204 | else | |
8205 | gt_save_LIBS="$LIBS" | |
8206 | LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation" | |
8207 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8208 | /* end confdefs.h. */ | |
8209 | #include <CoreFoundation/CFPreferences.h> | |
8210 | int | |
8211 | main () | |
8212 | { | |
8213 | CFPreferencesCopyAppValue(NULL, NULL) | |
8214 | ; | |
8215 | return 0; | |
8216 | } | |
8217 | _ACEOF | |
8218 | if ac_fn_c_try_link "$LINENO"; then : | |
8219 | gt_cv_func_CFPreferencesCopyAppValue=yes | |
8220 | else | |
8221 | gt_cv_func_CFPreferencesCopyAppValue=no | |
8222 | fi | |
8223 | rm -f core conftest.err conftest.$ac_objext \ | |
8224 | conftest$ac_exeext conftest.$ac_ext | |
8225 | LIBS="$gt_save_LIBS" | |
8226 | fi | |
8227 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5 | |
8228 | $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; } | |
8229 | if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then | |
8230 | ||
8231 | $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h | |
8232 | ||
8233 | fi | |
8234 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5 | |
8235 | $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; } | |
8236 | if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then : | |
8237 | $as_echo_n "(cached) " >&6 | |
8238 | else | |
8239 | gt_save_LIBS="$LIBS" | |
8240 | LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation" | |
8241 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8242 | /* end confdefs.h. */ | |
8243 | #include <CoreFoundation/CFLocale.h> | |
8244 | int | |
8245 | main () | |
8246 | { | |
8247 | CFLocaleCopyCurrent(); | |
8248 | ; | |
8249 | return 0; | |
8250 | } | |
8251 | _ACEOF | |
8252 | if ac_fn_c_try_link "$LINENO"; then : | |
8253 | gt_cv_func_CFLocaleCopyCurrent=yes | |
8254 | else | |
8255 | gt_cv_func_CFLocaleCopyCurrent=no | |
8256 | fi | |
8257 | rm -f core conftest.err conftest.$ac_objext \ | |
8258 | conftest$ac_exeext conftest.$ac_ext | |
8259 | LIBS="$gt_save_LIBS" | |
8260 | fi | |
8261 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5 | |
8262 | $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; } | |
8263 | if test $gt_cv_func_CFLocaleCopyCurrent = yes; then | |
8264 | ||
8265 | $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h | |
8266 | ||
8267 | fi | |
8268 | INTL_MACOSX_LIBS= | |
8269 | if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then | |
8270 | INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation" | |
8271 | fi | |
8f223b3e FCE |
8272 | |
8273 | ||
8274 | ||
8275 | ||
8276 | ||
8277 | ||
8278 | LIBINTL= | |
8279 | LTLIBINTL= | |
8280 | POSUB= | |
8281 | ||
8282 | case " $gt_needs " in | |
8283 | *" need-formatstring-macros "*) gt_api_version=3 ;; | |
8284 | *" need-ngettext "*) gt_api_version=2 ;; | |
8285 | *) gt_api_version=1 ;; | |
8286 | esac | |
8287 | gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc" | |
8288 | gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl" | |
8289 | ||
8290 | if test "$USE_NLS" = "yes"; then | |
8291 | gt_use_preinstalled_gnugettext=no | |
8292 | ||
8293 | ||
8294 | if test $gt_api_version -ge 3; then | |
8295 | gt_revision_test_code=' | |
8296 | #ifndef __GNU_GETTEXT_SUPPORTED_REVISION | |
8297 | #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1) | |
8298 | #endif | |
8299 | typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1]; | |
8300 | ' | |
8301 | else | |
8302 | gt_revision_test_code= | |
8303 | fi | |
8304 | if test $gt_api_version -ge 2; then | |
8305 | gt_expression_test_code=' + * ngettext ("", "", 0)' | |
8306 | else | |
8307 | gt_expression_test_code= | |
8308 | fi | |
8309 | ||
8310 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5 | |
8311 | $as_echo_n "checking for GNU gettext in libc... " >&6; } | |
c3de29bd | 8312 | if eval \${$gt_func_gnugettext_libc+:} false; then : |
0710d850 | 8313 | $as_echo_n "(cached) " >&6 |
2f1a1aea | 8314 | else |
1ef0423a | 8315 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
2f1a1aea | 8316 | /* end confdefs.h. */ |
42f767d0 | 8317 | |
8f223b3e FCE |
8318 | #include <libintl.h> |
8319 | $gt_revision_test_code | |
8320 | extern int _nl_msg_cat_cntr; | |
8321 | extern int *_nl_domain_bindings; | |
42f767d0 | 8322 | |
2f1a1aea FCE |
8323 | int |
8324 | main () | |
8325 | { | |
42f767d0 | 8326 | |
8f223b3e FCE |
8327 | bindtextdomain ("", ""); |
8328 | return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings | |
42f767d0 | 8329 | |
2f1a1aea FCE |
8330 | ; |
8331 | return 0; | |
8332 | } | |
8333 | _ACEOF | |
8f223b3e FCE |
8334 | if ac_fn_c_try_link "$LINENO"; then : |
8335 | eval "$gt_func_gnugettext_libc=yes" | |
2f1a1aea | 8336 | else |
8f223b3e | 8337 | eval "$gt_func_gnugettext_libc=no" |
2f1a1aea | 8338 | fi |
8f223b3e FCE |
8339 | rm -f core conftest.err conftest.$ac_objext \ |
8340 | conftest$ac_exeext conftest.$ac_ext | |
8341 | fi | |
8342 | eval ac_res=\$$gt_func_gnugettext_libc | |
8343 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
8344 | $as_echo "$ac_res" >&6; } | |
2f1a1aea | 8345 | |
8f223b3e | 8346 | if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then |
2f1a1aea | 8347 | |
1ef0423a | 8348 | |
8f223b3e FCE |
8349 | |
8350 | ||
8351 | ||
8352 | am_save_CPPFLAGS="$CPPFLAGS" | |
8353 | ||
8354 | for element in $INCICONV; do | |
8355 | haveit= | |
8356 | for x in $CPPFLAGS; do | |
8357 | ||
8358 | acl_save_prefix="$prefix" | |
8359 | prefix="$acl_final_prefix" | |
8360 | acl_save_exec_prefix="$exec_prefix" | |
8361 | exec_prefix="$acl_final_exec_prefix" | |
8362 | eval x=\"$x\" | |
8363 | exec_prefix="$acl_save_exec_prefix" | |
8364 | prefix="$acl_save_prefix" | |
8365 | ||
8366 | if test "X$x" = "X$element"; then | |
8367 | haveit=yes | |
8368 | break | |
8369 | fi | |
8370 | done | |
8371 | if test -z "$haveit"; then | |
8372 | CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" | |
8373 | fi | |
8374 | done | |
8375 | ||
8376 | ||
8377 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5 | |
8378 | $as_echo_n "checking for iconv... " >&6; } | |
c3de29bd | 8379 | if ${am_cv_func_iconv+:} false; then : |
8f223b3e | 8380 | $as_echo_n "(cached) " >&6 |
2f1a1aea | 8381 | else |
8f223b3e FCE |
8382 | |
8383 | am_cv_func_iconv="no, consider installing GNU libiconv" | |
8384 | am_cv_lib_iconv=no | |
8385 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8386 | /* end confdefs.h. */ | |
42f767d0 | 8387 | |
8f223b3e FCE |
8388 | #include <stdlib.h> |
8389 | #include <iconv.h> | |
42f767d0 | 8390 | |
8f223b3e FCE |
8391 | int |
8392 | main () | |
8393 | { | |
8394 | iconv_t cd = iconv_open("",""); | |
42f767d0 JL |
8395 | iconv(cd,NULL,NULL,NULL,NULL); |
8396 | iconv_close(cd); | |
8f223b3e FCE |
8397 | ; |
8398 | return 0; | |
8399 | } | |
8400 | _ACEOF | |
8401 | if ac_fn_c_try_link "$LINENO"; then : | |
8402 | am_cv_func_iconv=yes | |
2f1a1aea | 8403 | fi |
8f223b3e FCE |
8404 | rm -f core conftest.err conftest.$ac_objext \ |
8405 | conftest$ac_exeext conftest.$ac_ext | |
8406 | if test "$am_cv_func_iconv" != yes; then | |
8407 | am_save_LIBS="$LIBS" | |
8408 | LIBS="$LIBS $LIBICONV" | |
8409 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8410 | /* end confdefs.h. */ | |
42f767d0 | 8411 | |
8f223b3e FCE |
8412 | #include <stdlib.h> |
8413 | #include <iconv.h> | |
42f767d0 | 8414 | |
8f223b3e FCE |
8415 | int |
8416 | main () | |
8417 | { | |
8418 | iconv_t cd = iconv_open("",""); | |
42f767d0 JL |
8419 | iconv(cd,NULL,NULL,NULL,NULL); |
8420 | iconv_close(cd); | |
8f223b3e FCE |
8421 | ; |
8422 | return 0; | |
8423 | } | |
8424 | _ACEOF | |
8425 | if ac_fn_c_try_link "$LINENO"; then : | |
8426 | am_cv_lib_iconv=yes | |
8427 | am_cv_func_iconv=yes | |
8428 | fi | |
8429 | rm -f core conftest.err conftest.$ac_objext \ | |
8430 | conftest$ac_exeext conftest.$ac_ext | |
8431 | LIBS="$am_save_LIBS" | |
8432 | fi | |
2f1a1aea FCE |
8433 | |
8434 | fi | |
8f223b3e FCE |
8435 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5 |
8436 | $as_echo "$am_cv_func_iconv" >&6; } | |
8437 | if test "$am_cv_func_iconv" = yes; then | |
8438 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5 | |
8439 | $as_echo_n "checking for working iconv... " >&6; } | |
c3de29bd | 8440 | if ${am_cv_func_iconv_works+:} false; then : |
8f223b3e FCE |
8441 | $as_echo_n "(cached) " >&6 |
8442 | else | |
2f1a1aea | 8443 | |
42f767d0 | 8444 | am_save_LIBS="$LIBS" |
8f223b3e FCE |
8445 | if test $am_cv_lib_iconv = yes; then |
8446 | LIBS="$LIBS $LIBICONV" | |
8447 | fi | |
8448 | if test "$cross_compiling" = yes; then : | |
42f767d0 JL |
8449 | |
8450 | case "$host_os" in | |
8f223b3e FCE |
8451 | aix* | hpux*) am_cv_func_iconv_works="guessing no" ;; |
8452 | *) am_cv_func_iconv_works="guessing yes" ;; | |
8453 | esac | |
42f767d0 | 8454 | |
8f223b3e | 8455 | else |
1ef0423a | 8456 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
2f1a1aea | 8457 | /* end confdefs.h. */ |
2f1a1aea | 8458 | |
8f223b3e FCE |
8459 | #include <iconv.h> |
8460 | #include <string.h> | |
8461 | int main () | |
8462 | { | |
42f767d0 | 8463 | int result = 0; |
8f223b3e FCE |
8464 | /* Test against AIX 5.1 bug: Failures are not distinguishable from successful |
8465 | returns. */ | |
8466 | { | |
8467 | iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8"); | |
8468 | if (cd_utf8_to_88591 != (iconv_t)(-1)) | |
8469 | { | |
8470 | static const char input[] = "\342\202\254"; /* EURO SIGN */ | |
8471 | char buf[10]; | |
8472 | const char *inptr = input; | |
8473 | size_t inbytesleft = strlen (input); | |
8474 | char *outptr = buf; | |
8475 | size_t outbytesleft = sizeof (buf); | |
8476 | size_t res = iconv (cd_utf8_to_88591, | |
8477 | (char **) &inptr, &inbytesleft, | |
8478 | &outptr, &outbytesleft); | |
8479 | if (res == 0) | |
42f767d0 JL |
8480 | result |= 1; |
8481 | iconv_close (cd_utf8_to_88591); | |
8482 | } | |
8483 | } | |
8484 | /* Test against Solaris 10 bug: Failures are not distinguishable from | |
8485 | successful returns. */ | |
8486 | { | |
8487 | iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646"); | |
8488 | if (cd_ascii_to_88591 != (iconv_t)(-1)) | |
8489 | { | |
8490 | static const char input[] = "\263"; | |
8491 | char buf[10]; | |
8492 | const char *inptr = input; | |
8493 | size_t inbytesleft = strlen (input); | |
8494 | char *outptr = buf; | |
8495 | size_t outbytesleft = sizeof (buf); | |
8496 | size_t res = iconv (cd_ascii_to_88591, | |
8497 | (char **) &inptr, &inbytesleft, | |
8498 | &outptr, &outbytesleft); | |
8499 | if (res == 0) | |
8500 | result |= 2; | |
8501 | iconv_close (cd_ascii_to_88591); | |
8502 | } | |
8503 | } | |
8504 | /* Test against AIX 6.1..7.1 bug: Buffer overrun. */ | |
8505 | { | |
8506 | iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1"); | |
8507 | if (cd_88591_to_utf8 != (iconv_t)(-1)) | |
8508 | { | |
8509 | static const char input[] = "\304"; | |
8510 | static char buf[2] = { (char)0xDE, (char)0xAD }; | |
8511 | const char *inptr = input; | |
8512 | size_t inbytesleft = 1; | |
8513 | char *outptr = buf; | |
8514 | size_t outbytesleft = 1; | |
8515 | size_t res = iconv (cd_88591_to_utf8, | |
8516 | (char **) &inptr, &inbytesleft, | |
8517 | &outptr, &outbytesleft); | |
8518 | if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD) | |
8519 | result |= 4; | |
8520 | iconv_close (cd_88591_to_utf8); | |
8f223b3e FCE |
8521 | } |
8522 | } | |
8f223b3e FCE |
8523 | #if 0 /* This bug could be worked around by the caller. */ |
8524 | /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */ | |
8525 | { | |
8526 | iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591"); | |
8527 | if (cd_88591_to_utf8 != (iconv_t)(-1)) | |
8528 | { | |
8529 | static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337"; | |
8530 | char buf[50]; | |
8531 | const char *inptr = input; | |
8532 | size_t inbytesleft = strlen (input); | |
8533 | char *outptr = buf; | |
8534 | size_t outbytesleft = sizeof (buf); | |
8535 | size_t res = iconv (cd_88591_to_utf8, | |
8536 | (char **) &inptr, &inbytesleft, | |
8537 | &outptr, &outbytesleft); | |
8538 | if ((int)res > 0) | |
42f767d0 JL |
8539 | result |= 8; |
8540 | iconv_close (cd_88591_to_utf8); | |
8f223b3e FCE |
8541 | } |
8542 | } | |
8543 | #endif | |
8544 | /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is | |
8545 | provided. */ | |
8546 | if (/* Try standardized names. */ | |
8547 | iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1) | |
8548 | /* Try IRIX, OSF/1 names. */ | |
8549 | && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1) | |
8550 | /* Try AIX names. */ | |
8551 | && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1) | |
8552 | /* Try HP-UX names. */ | |
8553 | && iconv_open ("utf8", "eucJP") == (iconv_t)(-1)) | |
42f767d0 JL |
8554 | result |= 16; |
8555 | return result; | |
8f223b3e | 8556 | } |
2f1a1aea | 8557 | _ACEOF |
8f223b3e FCE |
8558 | if ac_fn_c_try_run "$LINENO"; then : |
8559 | am_cv_func_iconv_works=yes | |
2f1a1aea | 8560 | else |
8f223b3e | 8561 | am_cv_func_iconv_works=no |
2f1a1aea | 8562 | fi |
8f223b3e FCE |
8563 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
8564 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
8565 | fi | |
8566 | ||
8567 | LIBS="$am_save_LIBS" | |
2f1a1aea FCE |
8568 | |
8569 | fi | |
8f223b3e FCE |
8570 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5 |
8571 | $as_echo "$am_cv_func_iconv_works" >&6; } | |
8572 | case "$am_cv_func_iconv_works" in | |
8573 | *no) am_func_iconv=no am_cv_lib_iconv=no ;; | |
8574 | *) am_func_iconv=yes ;; | |
8575 | esac | |
8576 | else | |
8577 | am_func_iconv=no am_cv_lib_iconv=no | |
8578 | fi | |
8579 | if test "$am_func_iconv" = yes; then | |
2f1a1aea | 8580 | |
8f223b3e FCE |
8581 | $as_echo "#define HAVE_ICONV 1" >>confdefs.h |
8582 | ||
8583 | fi | |
8584 | if test "$am_cv_lib_iconv" = yes; then | |
8585 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5 | |
8586 | $as_echo_n "checking how to link with libiconv... " >&6; } | |
8587 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5 | |
8588 | $as_echo "$LIBICONV" >&6; } | |
8589 | else | |
8590 | CPPFLAGS="$am_save_CPPFLAGS" | |
8591 | LIBICONV= | |
8592 | LTLIBICONV= | |
8593 | fi | |
8594 | ||
8595 | ||
8596 | ||
8597 | ||
8598 | ||
8599 | ||
8600 | ||
8601 | ||
8602 | ||
8603 | ||
8604 | ||
8605 | use_additional=yes | |
8606 | ||
8607 | acl_save_prefix="$prefix" | |
8608 | prefix="$acl_final_prefix" | |
8609 | acl_save_exec_prefix="$exec_prefix" | |
8610 | exec_prefix="$acl_final_exec_prefix" | |
8611 | ||
8612 | eval additional_includedir=\"$includedir\" | |
8613 | eval additional_libdir=\"$libdir\" | |
8614 | ||
8615 | exec_prefix="$acl_save_exec_prefix" | |
8616 | prefix="$acl_save_prefix" | |
8617 | ||
8618 | ||
8619 | # Check whether --with-libintl-prefix was given. | |
8620 | if test "${with_libintl_prefix+set}" = set; then : | |
8621 | withval=$with_libintl_prefix; | |
8622 | if test "X$withval" = "Xno"; then | |
8623 | use_additional=no | |
8624 | else | |
8625 | if test "X$withval" = "X"; then | |
8626 | ||
8627 | acl_save_prefix="$prefix" | |
8628 | prefix="$acl_final_prefix" | |
8629 | acl_save_exec_prefix="$exec_prefix" | |
8630 | exec_prefix="$acl_final_exec_prefix" | |
8631 | ||
8632 | eval additional_includedir=\"$includedir\" | |
8633 | eval additional_libdir=\"$libdir\" | |
8634 | ||
8635 | exec_prefix="$acl_save_exec_prefix" | |
8636 | prefix="$acl_save_prefix" | |
8637 | ||
8638 | else | |
8639 | additional_includedir="$withval/include" | |
8640 | additional_libdir="$withval/$acl_libdirstem" | |
8641 | if test "$acl_libdirstem2" != "$acl_libdirstem" \ | |
8642 | && ! test -d "$withval/$acl_libdirstem"; then | |
8643 | additional_libdir="$withval/$acl_libdirstem2" | |
8644 | fi | |
8645 | fi | |
8646 | fi | |
8647 | ||
8648 | fi | |
8649 | ||
8650 | LIBINTL= | |
8651 | LTLIBINTL= | |
8652 | INCINTL= | |
8653 | LIBINTL_PREFIX= | |
8654 | HAVE_LIBINTL= | |
8655 | rpathdirs= | |
8656 | ltrpathdirs= | |
8657 | names_already_handled= | |
8658 | names_next_round='intl ' | |
8659 | while test -n "$names_next_round"; do | |
8660 | names_this_round="$names_next_round" | |
8661 | names_next_round= | |
8662 | for name in $names_this_round; do | |
8663 | already_handled= | |
8664 | for n in $names_already_handled; do | |
8665 | if test "$n" = "$name"; then | |
8666 | already_handled=yes | |
8667 | break | |
8668 | fi | |
8669 | done | |
8670 | if test -z "$already_handled"; then | |
8671 | names_already_handled="$names_already_handled $name" | |
42f767d0 | 8672 | uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'` |
8f223b3e FCE |
8673 | eval value=\"\$HAVE_LIB$uppername\" |
8674 | if test -n "$value"; then | |
8675 | if test "$value" = yes; then | |
8676 | eval value=\"\$LIB$uppername\" | |
8677 | test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value" | |
8678 | eval value=\"\$LTLIB$uppername\" | |
8679 | test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value" | |
8680 | else | |
8681 | : | |
8682 | fi | |
8683 | else | |
8684 | found_dir= | |
8685 | found_la= | |
8686 | found_so= | |
8687 | found_a= | |
8688 | eval libname=\"$acl_libname_spec\" # typically: libname=lib$name | |
8689 | if test -n "$acl_shlibext"; then | |
8690 | shrext=".$acl_shlibext" # typically: shrext=.so | |
8691 | else | |
8692 | shrext= | |
8693 | fi | |
8694 | if test $use_additional = yes; then | |
8695 | dir="$additional_libdir" | |
8696 | if test -n "$acl_shlibext"; then | |
8697 | if test -f "$dir/$libname$shrext"; then | |
8698 | found_dir="$dir" | |
8699 | found_so="$dir/$libname$shrext" | |
8700 | else | |
8701 | if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then | |
8702 | ver=`(cd "$dir" && \ | |
8703 | for f in "$libname$shrext".*; do echo "$f"; done \ | |
8704 | | sed -e "s,^$libname$shrext\\\\.,," \ | |
8705 | | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ | |
8706 | | sed 1q ) 2>/dev/null` | |
8707 | if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then | |
8708 | found_dir="$dir" | |
8709 | found_so="$dir/$libname$shrext.$ver" | |
8710 | fi | |
8711 | else | |
8712 | eval library_names=\"$acl_library_names_spec\" | |
8713 | for f in $library_names; do | |
8714 | if test -f "$dir/$f"; then | |
8715 | found_dir="$dir" | |
8716 | found_so="$dir/$f" | |
8717 | break | |
8718 | fi | |
8719 | done | |
8720 | fi | |
8721 | fi | |
8722 | fi | |
8723 | if test "X$found_dir" = "X"; then | |
8724 | if test -f "$dir/$libname.$acl_libext"; then | |
8725 | found_dir="$dir" | |
8726 | found_a="$dir/$libname.$acl_libext" | |
8727 | fi | |
8728 | fi | |
8729 | if test "X$found_dir" != "X"; then | |
8730 | if test -f "$dir/$libname.la"; then | |
8731 | found_la="$dir/$libname.la" | |
8732 | fi | |
8733 | fi | |
8734 | fi | |
8735 | if test "X$found_dir" = "X"; then | |
8736 | for x in $LDFLAGS $LTLIBINTL; do | |
8737 | ||
8738 | acl_save_prefix="$prefix" | |
8739 | prefix="$acl_final_prefix" | |
8740 | acl_save_exec_prefix="$exec_prefix" | |
8741 | exec_prefix="$acl_final_exec_prefix" | |
8742 | eval x=\"$x\" | |
8743 | exec_prefix="$acl_save_exec_prefix" | |
8744 | prefix="$acl_save_prefix" | |
8745 | ||
8746 | case "$x" in | |
8747 | -L*) | |
8748 | dir=`echo "X$x" | sed -e 's/^X-L//'` | |
8749 | if test -n "$acl_shlibext"; then | |
8750 | if test -f "$dir/$libname$shrext"; then | |
8751 | found_dir="$dir" | |
8752 | found_so="$dir/$libname$shrext" | |
8753 | else | |
8754 | if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then | |
8755 | ver=`(cd "$dir" && \ | |
8756 | for f in "$libname$shrext".*; do echo "$f"; done \ | |
8757 | | sed -e "s,^$libname$shrext\\\\.,," \ | |
8758 | | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ | |
8759 | | sed 1q ) 2>/dev/null` | |
8760 | if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then | |
8761 | found_dir="$dir" | |
8762 | found_so="$dir/$libname$shrext.$ver" | |
8763 | fi | |
8764 | else | |
8765 | eval library_names=\"$acl_library_names_spec\" | |
8766 | for f in $library_names; do | |
8767 | if test -f "$dir/$f"; then | |
8768 | found_dir="$dir" | |
8769 | found_so="$dir/$f" | |
8770 | break | |
8771 | fi | |
8772 | done | |
8773 | fi | |
8774 | fi | |
8775 | fi | |
8776 | if test "X$found_dir" = "X"; then | |
8777 | if test -f "$dir/$libname.$acl_libext"; then | |
8778 | found_dir="$dir" | |
8779 | found_a="$dir/$libname.$acl_libext" | |
8780 | fi | |
8781 | fi | |
8782 | if test "X$found_dir" != "X"; then | |
8783 | if test -f "$dir/$libname.la"; then | |
8784 | found_la="$dir/$libname.la" | |
8785 | fi | |
8786 | fi | |
8787 | ;; | |
8788 | esac | |
8789 | if test "X$found_dir" != "X"; then | |
8790 | break | |
8791 | fi | |
8792 | done | |
8793 | fi | |
8794 | if test "X$found_dir" != "X"; then | |
8795 | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name" | |
8796 | if test "X$found_so" != "X"; then | |
8797 | if test "$enable_rpath" = no \ | |
8798 | || test "X$found_dir" = "X/usr/$acl_libdirstem" \ | |
8799 | || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then | |
8800 | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" | |
8801 | else | |
8802 | haveit= | |
8803 | for x in $ltrpathdirs; do | |
8804 | if test "X$x" = "X$found_dir"; then | |
8805 | haveit=yes | |
8806 | break | |
8807 | fi | |
8808 | done | |
8809 | if test -z "$haveit"; then | |
8810 | ltrpathdirs="$ltrpathdirs $found_dir" | |
8811 | fi | |
8812 | if test "$acl_hardcode_direct" = yes; then | |
8813 | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" | |
8814 | else | |
8815 | if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then | |
8816 | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" | |
8817 | haveit= | |
8818 | for x in $rpathdirs; do | |
8819 | if test "X$x" = "X$found_dir"; then | |
8820 | haveit=yes | |
8821 | break | |
8822 | fi | |
8823 | done | |
8824 | if test -z "$haveit"; then | |
8825 | rpathdirs="$rpathdirs $found_dir" | |
8826 | fi | |
8827 | else | |
8828 | haveit= | |
8829 | for x in $LDFLAGS $LIBINTL; do | |
8830 | ||
8831 | acl_save_prefix="$prefix" | |
8832 | prefix="$acl_final_prefix" | |
8833 | acl_save_exec_prefix="$exec_prefix" | |
8834 | exec_prefix="$acl_final_exec_prefix" | |
8835 | eval x=\"$x\" | |
8836 | exec_prefix="$acl_save_exec_prefix" | |
8837 | prefix="$acl_save_prefix" | |
8838 | ||
8839 | if test "X$x" = "X-L$found_dir"; then | |
8840 | haveit=yes | |
8841 | break | |
8842 | fi | |
8843 | done | |
8844 | if test -z "$haveit"; then | |
8845 | LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir" | |
8846 | fi | |
8847 | if test "$acl_hardcode_minus_L" != no; then | |
8848 | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" | |
8849 | else | |
8850 | LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name" | |
8851 | fi | |
8852 | fi | |
8853 | fi | |
8854 | fi | |
8855 | else | |
8856 | if test "X$found_a" != "X"; then | |
8857 | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a" | |
8858 | else | |
8859 | LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name" | |
8860 | fi | |
8861 | fi | |
8862 | additional_includedir= | |
8863 | case "$found_dir" in | |
8864 | */$acl_libdirstem | */$acl_libdirstem/) | |
8865 | basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'` | |
8866 | if test "$name" = 'intl'; then | |
8867 | LIBINTL_PREFIX="$basedir" | |
8868 | fi | |
8869 | additional_includedir="$basedir/include" | |
8870 | ;; | |
8871 | */$acl_libdirstem2 | */$acl_libdirstem2/) | |
8872 | basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'` | |
8873 | if test "$name" = 'intl'; then | |
8874 | LIBINTL_PREFIX="$basedir" | |
8875 | fi | |
8876 | additional_includedir="$basedir/include" | |
8877 | ;; | |
8878 | esac | |
8879 | if test "X$additional_includedir" != "X"; then | |
8880 | if test "X$additional_includedir" != "X/usr/include"; then | |
8881 | haveit= | |
8882 | if test "X$additional_includedir" = "X/usr/local/include"; then | |
8883 | if test -n "$GCC"; then | |
8884 | case $host_os in | |
8885 | linux* | gnu* | k*bsd*-gnu) haveit=yes;; | |
8886 | esac | |
8887 | fi | |
8888 | fi | |
8889 | if test -z "$haveit"; then | |
8890 | for x in $CPPFLAGS $INCINTL; do | |
8891 | ||
8892 | acl_save_prefix="$prefix" | |
8893 | prefix="$acl_final_prefix" | |
8894 | acl_save_exec_prefix="$exec_prefix" | |
8895 | exec_prefix="$acl_final_exec_prefix" | |
8896 | eval x=\"$x\" | |
8897 | exec_prefix="$acl_save_exec_prefix" | |
8898 | prefix="$acl_save_prefix" | |
8899 | ||
8900 | if test "X$x" = "X-I$additional_includedir"; then | |
8901 | haveit=yes | |
8902 | break | |
8903 | fi | |
8904 | done | |
8905 | if test -z "$haveit"; then | |
8906 | if test -d "$additional_includedir"; then | |
8907 | INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir" | |
8908 | fi | |
8909 | fi | |
8910 | fi | |
8911 | fi | |
8912 | fi | |
8913 | if test -n "$found_la"; then | |
8914 | save_libdir="$libdir" | |
8915 | case "$found_la" in | |
8916 | */* | *\\*) . "$found_la" ;; | |
8917 | *) . "./$found_la" ;; | |
8918 | esac | |
8919 | libdir="$save_libdir" | |
8920 | for dep in $dependency_libs; do | |
8921 | case "$dep" in | |
8922 | -L*) | |
8923 | additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` | |
8924 | if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \ | |
8925 | && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then | |
8926 | haveit= | |
8927 | if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \ | |
8928 | || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then | |
8929 | if test -n "$GCC"; then | |
8930 | case $host_os in | |
8931 | linux* | gnu* | k*bsd*-gnu) haveit=yes;; | |
8932 | esac | |
8933 | fi | |
8934 | fi | |
8935 | if test -z "$haveit"; then | |
8936 | haveit= | |
8937 | for x in $LDFLAGS $LIBINTL; do | |
8938 | ||
8939 | acl_save_prefix="$prefix" | |
8940 | prefix="$acl_final_prefix" | |
8941 | acl_save_exec_prefix="$exec_prefix" | |
8942 | exec_prefix="$acl_final_exec_prefix" | |
8943 | eval x=\"$x\" | |
8944 | exec_prefix="$acl_save_exec_prefix" | |
8945 | prefix="$acl_save_prefix" | |
8946 | ||
8947 | if test "X$x" = "X-L$additional_libdir"; then | |
8948 | haveit=yes | |
8949 | break | |
8950 | fi | |
8951 | done | |
8952 | if test -z "$haveit"; then | |
8953 | if test -d "$additional_libdir"; then | |
8954 | LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir" | |
8955 | fi | |
8956 | fi | |
8957 | haveit= | |
8958 | for x in $LDFLAGS $LTLIBINTL; do | |
8959 | ||
8960 | acl_save_prefix="$prefix" | |
8961 | prefix="$acl_final_prefix" | |
8962 | acl_save_exec_prefix="$exec_prefix" | |
8963 | exec_prefix="$acl_final_exec_prefix" | |
8964 | eval x=\"$x\" | |
8965 | exec_prefix="$acl_save_exec_prefix" | |
8966 | prefix="$acl_save_prefix" | |
8967 | ||
8968 | if test "X$x" = "X-L$additional_libdir"; then | |
8969 | haveit=yes | |
8970 | break | |
8971 | fi | |
8972 | done | |
8973 | if test -z "$haveit"; then | |
8974 | if test -d "$additional_libdir"; then | |
8975 | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir" | |
8976 | fi | |
8977 | fi | |
8978 | fi | |
8979 | fi | |
8980 | ;; | |
8981 | -R*) | |
8982 | dir=`echo "X$dep" | sed -e 's/^X-R//'` | |
8983 | if test "$enable_rpath" != no; then | |
8984 | haveit= | |
8985 | for x in $rpathdirs; do | |
8986 | if test "X$x" = "X$dir"; then | |
8987 | haveit=yes | |
8988 | break | |
8989 | fi | |
8990 | done | |
8991 | if test -z "$haveit"; then | |
8992 | rpathdirs="$rpathdirs $dir" | |
8993 | fi | |
8994 | haveit= | |
8995 | for x in $ltrpathdirs; do | |
8996 | if test "X$x" = "X$dir"; then | |
8997 | haveit=yes | |
8998 | break | |
8999 | fi | |
9000 | done | |
9001 | if test -z "$haveit"; then | |
9002 | ltrpathdirs="$ltrpathdirs $dir" | |
9003 | fi | |
9004 | fi | |
9005 | ;; | |
9006 | -l*) | |
9007 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` | |
9008 | ;; | |
9009 | *.la) | |
9010 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` | |
9011 | ;; | |
9012 | *) | |
9013 | LIBINTL="${LIBINTL}${LIBINTL:+ }$dep" | |
9014 | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep" | |
9015 | ;; | |
9016 | esac | |
9017 | done | |
9018 | fi | |
9019 | else | |
9020 | LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name" | |
9021 | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name" | |
9022 | fi | |
9023 | fi | |
9024 | fi | |
9025 | done | |
9026 | done | |
9027 | if test "X$rpathdirs" != "X"; then | |
9028 | if test -n "$acl_hardcode_libdir_separator"; then | |
9029 | alldirs= | |
9030 | for found_dir in $rpathdirs; do | |
9031 | alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir" | |
9032 | done | |
9033 | acl_save_libdir="$libdir" | |
9034 | libdir="$alldirs" | |
9035 | eval flag=\"$acl_hardcode_libdir_flag_spec\" | |
9036 | libdir="$acl_save_libdir" | |
9037 | LIBINTL="${LIBINTL}${LIBINTL:+ }$flag" | |
9038 | else | |
9039 | for found_dir in $rpathdirs; do | |
9040 | acl_save_libdir="$libdir" | |
9041 | libdir="$found_dir" | |
9042 | eval flag=\"$acl_hardcode_libdir_flag_spec\" | |
9043 | libdir="$acl_save_libdir" | |
9044 | LIBINTL="${LIBINTL}${LIBINTL:+ }$flag" | |
9045 | done | |
9046 | fi | |
9047 | fi | |
9048 | if test "X$ltrpathdirs" != "X"; then | |
9049 | for found_dir in $ltrpathdirs; do | |
9050 | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir" | |
9051 | done | |
9052 | fi | |
9053 | ||
9054 | ||
9055 | ||
9056 | ||
9057 | ||
9058 | ||
9059 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5 | |
9060 | $as_echo_n "checking for GNU gettext in libintl... " >&6; } | |
c3de29bd | 9061 | if eval \${$gt_func_gnugettext_libintl+:} false; then : |
8f223b3e | 9062 | $as_echo_n "(cached) " >&6 |
2f1a1aea | 9063 | else |
8f223b3e FCE |
9064 | gt_save_CPPFLAGS="$CPPFLAGS" |
9065 | CPPFLAGS="$CPPFLAGS $INCINTL" | |
9066 | gt_save_LIBS="$LIBS" | |
9067 | LIBS="$LIBS $LIBINTL" | |
9068 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2f1a1aea | 9069 | /* end confdefs.h. */ |
42f767d0 | 9070 | |
8f223b3e FCE |
9071 | #include <libintl.h> |
9072 | $gt_revision_test_code | |
9073 | extern int _nl_msg_cat_cntr; | |
9074 | extern | |
9075 | #ifdef __cplusplus | |
9076 | "C" | |
2f1a1aea | 9077 | #endif |
8f223b3e | 9078 | const char *_nl_expand_alias (const char *); |
42f767d0 | 9079 | |
2f1a1aea FCE |
9080 | int |
9081 | main () | |
9082 | { | |
42f767d0 | 9083 | |
8f223b3e FCE |
9084 | bindtextdomain ("", ""); |
9085 | return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("") | |
42f767d0 | 9086 | |
8f223b3e | 9087 | ; |
7fbd9d09 | 9088 | return 0; |
2f1a1aea FCE |
9089 | } |
9090 | _ACEOF | |
8f223b3e FCE |
9091 | if ac_fn_c_try_link "$LINENO"; then : |
9092 | eval "$gt_func_gnugettext_libintl=yes" | |
1ef0423a | 9093 | else |
8f223b3e | 9094 | eval "$gt_func_gnugettext_libintl=no" |
412e1bf7 | 9095 | fi |
8f223b3e FCE |
9096 | rm -f core conftest.err conftest.$ac_objext \ |
9097 | conftest$ac_exeext conftest.$ac_ext | |
9098 | if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then | |
9099 | LIBS="$LIBS $LIBICONV" | |
9100 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9101 | /* end confdefs.h. */ | |
42f767d0 | 9102 | |
8f223b3e FCE |
9103 | #include <libintl.h> |
9104 | $gt_revision_test_code | |
9105 | extern int _nl_msg_cat_cntr; | |
9106 | extern | |
9107 | #ifdef __cplusplus | |
9108 | "C" | |
9109 | #endif | |
9110 | const char *_nl_expand_alias (const char *); | |
42f767d0 | 9111 | |
8f223b3e FCE |
9112 | int |
9113 | main () | |
9114 | { | |
42f767d0 | 9115 | |
8f223b3e FCE |
9116 | bindtextdomain ("", ""); |
9117 | return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("") | |
42f767d0 | 9118 | |
8f223b3e FCE |
9119 | ; |
9120 | return 0; | |
9121 | } | |
9122 | _ACEOF | |
9123 | if ac_fn_c_try_link "$LINENO"; then : | |
9124 | LIBINTL="$LIBINTL $LIBICONV" | |
42f767d0 JL |
9125 | LTLIBINTL="$LTLIBINTL $LTLIBICONV" |
9126 | eval "$gt_func_gnugettext_libintl=yes" | |
412e1bf7 | 9127 | |
412e1bf7 | 9128 | fi |
8f223b3e FCE |
9129 | rm -f core conftest.err conftest.$ac_objext \ |
9130 | conftest$ac_exeext conftest.$ac_ext | |
9131 | fi | |
9132 | CPPFLAGS="$gt_save_CPPFLAGS" | |
9133 | LIBS="$gt_save_LIBS" | |
412e1bf7 | 9134 | fi |
8f223b3e FCE |
9135 | eval ac_res=\$$gt_func_gnugettext_libintl |
9136 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
9137 | $as_echo "$ac_res" >&6; } | |
9138 | fi | |
412e1bf7 | 9139 | |
8f223b3e FCE |
9140 | if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \ |
9141 | || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \ | |
9142 | && test "$PACKAGE" != gettext-runtime \ | |
9143 | && test "$PACKAGE" != gettext-tools; }; then | |
9144 | gt_use_preinstalled_gnugettext=yes | |
9145 | else | |
9146 | LIBINTL= | |
9147 | LTLIBINTL= | |
9148 | INCINTL= | |
9149 | fi | |
412e1bf7 | 9150 | |
412e1bf7 | 9151 | |
2f1a1aea | 9152 | |
8f223b3e FCE |
9153 | if test -n "$INTL_MACOSX_LIBS"; then |
9154 | if test "$gt_use_preinstalled_gnugettext" = "yes" \ | |
9155 | || test "$nls_cv_use_gnu_gettext" = "yes"; then | |
9156 | LIBINTL="$LIBINTL $INTL_MACOSX_LIBS" | |
9157 | LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS" | |
9158 | fi | |
9159 | fi | |
2f1a1aea | 9160 | |
8f223b3e FCE |
9161 | if test "$gt_use_preinstalled_gnugettext" = "yes" \ |
9162 | || test "$nls_cv_use_gnu_gettext" = "yes"; then | |
2f1a1aea | 9163 | |
8f223b3e | 9164 | $as_echo "#define ENABLE_NLS 1" >>confdefs.h |
2f1a1aea | 9165 | |
8f223b3e FCE |
9166 | else |
9167 | USE_NLS=no | |
9168 | fi | |
9169 | fi | |
2f1a1aea | 9170 | |
8f223b3e FCE |
9171 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5 |
9172 | $as_echo_n "checking whether to use NLS... " >&6; } | |
9173 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5 | |
9174 | $as_echo "$USE_NLS" >&6; } | |
9175 | if test "$USE_NLS" = "yes"; then | |
9176 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5 | |
9177 | $as_echo_n "checking where the gettext function comes from... " >&6; } | |
9178 | if test "$gt_use_preinstalled_gnugettext" = "yes"; then | |
9179 | if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then | |
9180 | gt_source="external libintl" | |
9181 | else | |
9182 | gt_source="libc" | |
9183 | fi | |
9184 | else | |
9185 | gt_source="included intl directory" | |
9186 | fi | |
9187 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5 | |
9188 | $as_echo "$gt_source" >&6; } | |
9189 | fi | |
2f1a1aea | 9190 | |
8f223b3e FCE |
9191 | if test "$USE_NLS" = "yes"; then |
9192 | ||
9193 | if test "$gt_use_preinstalled_gnugettext" = "yes"; then | |
9194 | if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then | |
9195 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5 | |
9196 | $as_echo_n "checking how to link with libintl... " >&6; } | |
9197 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5 | |
9198 | $as_echo "$LIBINTL" >&6; } | |
9199 | ||
9200 | for element in $INCINTL; do | |
9201 | haveit= | |
9202 | for x in $CPPFLAGS; do | |
9203 | ||
9204 | acl_save_prefix="$prefix" | |
9205 | prefix="$acl_final_prefix" | |
9206 | acl_save_exec_prefix="$exec_prefix" | |
9207 | exec_prefix="$acl_final_exec_prefix" | |
9208 | eval x=\"$x\" | |
9209 | exec_prefix="$acl_save_exec_prefix" | |
9210 | prefix="$acl_save_prefix" | |
9211 | ||
9212 | if test "X$x" = "X$element"; then | |
9213 | haveit=yes | |
9214 | break | |
9215 | fi | |
9216 | done | |
9217 | if test -z "$haveit"; then | |
9218 | CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" | |
9219 | fi | |
9220 | done | |
412e1bf7 | 9221 | |
8f223b3e | 9222 | fi |
412e1bf7 | 9223 | |
5e5aee9f | 9224 | |
8f223b3e | 9225 | $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h |
5e5aee9f | 9226 | |
2f1a1aea | 9227 | |
8f223b3e | 9228 | $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h |
2f1a1aea | 9229 | |
8f223b3e | 9230 | fi |
7fbd9d09 | 9231 | |
8f223b3e | 9232 | POSUB=po |
2f1a1aea | 9233 | fi |
2f1a1aea | 9234 | |
2f1a1aea | 9235 | |
2f1a1aea | 9236 | |
8f223b3e | 9237 | INTLLIBS="$LIBINTL" |
2f1a1aea FCE |
9238 | |
9239 | ||
2f1a1aea | 9240 | |
2f1a1aea FCE |
9241 | |
9242 | ||
9243 | ||
9244 | ||
e04a4b41 | 9245 | |
3477519f FCE |
9246 | if test "x$GMSGFMT" = "x:"; then |
9247 | as_fn_error $? "missing gnu /usr/bin/msgfmt" "$LINENO" 5 | |
e04a4b41 | 9248 | fi |
caf6872d | 9249 | |
70d28673 | 9250 | if test "${enable_prologues+set}" != set; then |
1ef0423a | 9251 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if prologue searching should be the default" >&5 |
0710d850 | 9252 | $as_echo_n "checking to see if prologue searching should be the default... " >&6; } |
70d28673 DS |
9253 | if { echo '#if __i386__ == 1 && __GNUC__ < 4' |
9254 | echo ' yes ' | |
9255 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then | |
9256 | enable_prologues=yes | |
1ef0423a | 9257 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
0710d850 | 9258 | $as_echo "yes" >&6; } |
70d28673 | 9259 | else |
1ef0423a | 9260 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
0710d850 | 9261 | $as_echo "no" >&6; } |
70d28673 DS |
9262 | fi |
9263 | fi | |
7fbd9d09 | 9264 | # Check whether --enable-prologues was given. |
1ef0423a | 9265 | if test "${enable_prologues+set}" = set; then : |
7fbd9d09 | 9266 | enableval=$enable_prologues; |
70d28673 | 9267 | if test "$enable_prologues" = yes; then |
44f75386 | 9268 | |
1ef0423a | 9269 | $as_echo "#define ENABLE_PROLOGUES /**/" >>confdefs.h |
44f75386 | 9270 | |
70d28673 | 9271 | fi |
7fbd9d09 | 9272 | fi |
70d28673 | 9273 | |
7fbd9d09 | 9274 | |
e1bfefdc SC |
9275 | |
9276 | if test "${enable_sdt_probes+set}" != set; then | |
9277 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if sdt probes should be the default" >&5 | |
9278 | $as_echo_n "checking to see if sdt probes should be the default... " >&6; } | |
9279 | if { echo '#if __GNUC__ < 4' | |
9280 | echo ' yes ' | |
9281 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then | |
8b714d4b | 9282 | enable_sdt_probes=no |
e1bfefdc SC |
9283 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9284 | $as_echo "no" >&6; } | |
9285 | else | |
9286 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
9287 | $as_echo "yes" >&6; } | |
9288 | fi | |
9289 | fi | |
0f5d597d JS |
9290 | # Check whether --enable-sdt-probes was given. |
9291 | if test "${enable_sdt_probes+set}" = set; then : | |
9292 | enableval=$enable_sdt_probes; | |
9293 | fi | |
9294 | ||
9295 | if test "x$enable_sdt_probes" != xno; then : | |
9296 | ||
9297 | ||
9298 | $as_echo "#define ENABLE_SDT_PROBES 1" >>confdefs.h | |
9299 | ||
9300 | ||
9301 | fi | |
9302 | ||
7fbd9d09 | 9303 | # Check whether --enable-ssp was given. |
1ef0423a | 9304 | if test "${enable_ssp+set}" = set; then : |
7fbd9d09 FCE |
9305 | enableval=$enable_ssp; |
9306 | fi | |
9921a199 | 9307 | |
1ef0423a | 9308 | if test "x$enable_ssp" != xno; then : |
bbfd8c1a FCE |
9309 | |
9310 | save_CFLAGS="$CFLAGS" | |
9311 | save_CXXFLAGS="$CXXFLAGS" | |
f0510eaa FCE |
9312 | CXXFLAGS="$CXXFLAGS -Werror -fstack-protector-all -D_FORTIFY_SOURCE=2" |
9313 | CFLAGS="$CFLAGS -Werror -fstack-protector-all -D_FORTIFY_SOURCE=2" | |
1ef0423a FCE |
9314 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
9315 | /* end confdefs.h. */ | |
bbfd8c1a FCE |
9316 | int something (); |
9317 | _ACEOF | |
1ef0423a | 9318 | if ac_fn_c_try_compile "$LINENO"; then : |
818ba2bc | 9319 | |
1ef0423a | 9320 | { $as_echo "$as_me:${as_lineno-$LINENO}: Compiling with gcc -fstack-protector-all et al." >&5 |
0710d850 | 9321 | $as_echo "$as_me: Compiling with gcc -fstack-protector-all et al." >&6;} |
f0510eaa | 9322 | CFLAGS="$save_CFLAGS -fstack-protector-all -D_FORTIFY_SOURCE=2" |
a530cfe0 | 9323 | CXXFLAGS="$save_CXXFLAGS -fstack-protector-all -D_FORTIFY_SOURCE=2" |
bbfd8c1a | 9324 | else |
bbfd8c1a | 9325 | |
1ef0423a | 9326 | { $as_echo "$as_me:${as_lineno-$LINENO}: Compiler does not support -fstack-protector-all et al." >&5 |
0710d850 | 9327 | $as_echo "$as_me: Compiler does not support -fstack-protector-all et al." >&6;} |
bbfd8c1a FCE |
9328 | CFLAGS="$save_CFLAGS" |
9329 | CXXFLAGS="$save_CXXFLAGS" | |
9330 | fi | |
7fbd9d09 | 9331 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
9921a199 | 9332 | fi |
70d28673 | 9333 | |
cbe7ea07 FCE |
9334 | |
9335 | ||
9336 | ||
e1e3ba36 | 9337 | # Compiling without fPIE by default (see PR 9922) |
7fbd9d09 | 9338 | # Check whether --enable-pie was given. |
1ef0423a | 9339 | if test "${enable_pie+set}" = set; then : |
7fbd9d09 FCE |
9340 | enableval=$enable_pie; |
9341 | fi | |
8730f377 | 9342 | |
1ef0423a | 9343 | if test "x$enable_pie" == xyes; then : |
8730f377 | 9344 | |
97859b9d JS |
9345 | PIECFLAGS='-fPIE' |
9346 | PIECXXFLAGS='-fPIE' | |
9347 | PIELDFLAGS='-pie -Wl,-z,relro -Wl,-z,now' | |
8730f377 FCE |
9348 | save_CFLAGS="$CFLAGS" |
9349 | save_CXXFLAGS="$CXXFLAGS" | |
9350 | save_LDFLAGS="$LDFLAGS" | |
97859b9d JS |
9351 | CFLAGS="$CFLAGS $PIECFLAGS" |
9352 | CXXFLAGS="$CXXFLAGS $PIECXXFLAGS" | |
9353 | LDFLAGS="$LDFLAGS $PIELDFLAGS" | |
1ef0423a FCE |
9354 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
9355 | /* end confdefs.h. */ | |
8730f377 FCE |
9356 | void main () {} |
9357 | _ACEOF | |
1ef0423a | 9358 | if ac_fn_c_try_link "$LINENO"; then : |
818ba2bc | 9359 | |
1ef0423a | 9360 | { $as_echo "$as_me:${as_lineno-$LINENO}: Compiling with gcc pie et al." >&5 |
0710d850 | 9361 | $as_echo "$as_me: Compiling with gcc pie et al." >&6;} |
8730f377 FCE |
9362 | |
9363 | else | |
8730f377 | 9364 | |
1ef0423a | 9365 | { $as_echo "$as_me:${as_lineno-$LINENO}: Compiler does not support -pie et al." >&5 |
0710d850 | 9366 | $as_echo "$as_me: Compiler does not support -pie et al." >&6;} |
5574ef2c | 9367 | PIECFLAGS="" |
5574ef2c | 9368 | PIECXXFLAGS="" |
8730f377 | 9369 | PIELDFLAGS="" |
97859b9d | 9370 | |
8730f377 | 9371 | fi |
1ef0423a FCE |
9372 | rm -f core conftest.err conftest.$ac_objext \ |
9373 | conftest$ac_exeext conftest.$ac_ext | |
97859b9d JS |
9374 | CFLAGS="$save_CFLAGS" |
9375 | CXXFLAGS="$save_CXXFLAGS" | |
9376 | LDFLAGS="$save_LDFLAGS" | |
9377 | ||
8730f377 FCE |
9378 | fi |
9379 | ||
9380 | ||
9381 | ||
5574ef2c | 9382 | |
7fbd9d09 | 9383 | # Check whether --enable-sqlite was given. |
1ef0423a | 9384 | if test "${enable_sqlite+set}" = set; then : |
7fbd9d09 | 9385 | enableval=$enable_sqlite; |
9921a199 | 9386 | else |
e8f3c2c2 | 9387 | enable_sqlite=check |
7fbd9d09 FCE |
9388 | fi |
9389 | sqlite3_LIBS= | |
1ef0423a FCE |
9390 | if test "x$enable_sqlite" != xno; then : |
9391 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3_open in -lsqlite3" >&5 | |
0710d850 | 9392 | $as_echo_n "checking for sqlite3_open in -lsqlite3... " >&6; } |
c3de29bd | 9393 | if ${ac_cv_lib_sqlite3_sqlite3_open+:} false; then : |
0710d850 | 9394 | $as_echo_n "(cached) " >&6 |
42feb3c0 WC |
9395 | else |
9396 | ac_check_lib_save_LIBS=$LIBS | |
9397 | LIBS="-lsqlite3 $LIBS" | |
1ef0423a | 9398 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
42feb3c0 WC |
9399 | /* end confdefs.h. */ |
9400 | ||
7fbd9d09 FCE |
9401 | /* Override any GCC internal prototype to avoid an error. |
9402 | Use char because int might match the return type of a GCC | |
9403 | builtin and then its argument prototype would still apply. */ | |
42feb3c0 WC |
9404 | #ifdef __cplusplus |
9405 | extern "C" | |
9406 | #endif | |
9407 | char sqlite3_open (); | |
9408 | int | |
9409 | main () | |
9410 | { | |
7fbd9d09 | 9411 | return sqlite3_open (); |
42feb3c0 WC |
9412 | ; |
9413 | return 0; | |
9414 | } | |
9415 | _ACEOF | |
1ef0423a | 9416 | if ac_fn_c_try_link "$LINENO"; then : |
42feb3c0 WC |
9417 | ac_cv_lib_sqlite3_sqlite3_open=yes |
9418 | else | |
1ef0423a | 9419 | ac_cv_lib_sqlite3_sqlite3_open=no |
42feb3c0 | 9420 | fi |
1ef0423a FCE |
9421 | rm -f core conftest.err conftest.$ac_objext \ |
9422 | conftest$ac_exeext conftest.$ac_ext | |
42feb3c0 WC |
9423 | LIBS=$ac_check_lib_save_LIBS |
9424 | fi | |
1ef0423a | 9425 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_open" >&5 |
0710d850 | 9426 | $as_echo "$ac_cv_lib_sqlite3_sqlite3_open" >&6; } |
c3de29bd | 9427 | if test "x$ac_cv_lib_sqlite3_sqlite3_open" = xyes; then : |
9921a199 | 9428 | sqlite3_LIBS=-lsqlite3 |
42feb3c0 | 9429 | |
0d563e60 | 9430 | |
1ef0423a | 9431 | $as_echo "#define HAVE_LIBSQLITE3 1" >>confdefs.h |
07606685 | 9432 | |
9921a199 DS |
9433 | else |
9434 | if test "x$enable_sqlite" != xcheck; then | |
1ef0423a | 9435 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
0710d850 | 9436 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
5d4aa1f5 FCE |
9437 | as_fn_error $? "--enable-sqlite was given, but test for sqlite failed |
9438 | See \`config.log' for more details" "$LINENO" 5; } | |
9921a199 | 9439 | fi |
42feb3c0 WC |
9440 | fi |
9441 | ||
9921a199 | 9442 | fi |
44f75386 | 9443 | |
6d14a4a9 | 9444 | # Check whether --enable-translator was given. |
1ef0423a | 9445 | if test "${enable_translator+set}" = set; then : |
6d14a4a9 EB |
9446 | enableval=$enable_translator; |
9447 | else | |
9448 | enable_translator="yes" | |
9449 | fi | |
9450 | ||
9451 | if test "$enable_translator" == "yes"; then | |
9452 | BUILD_TRANSLATOR_TRUE= | |
9453 | BUILD_TRANSLATOR_FALSE='#' | |
9454 | else | |
9455 | BUILD_TRANSLATOR_TRUE='#' | |
9456 | BUILD_TRANSLATOR_FALSE= | |
9457 | fi | |
9458 | ||
9459 | ||
7fbd9d09 | 9460 | # Check whether --enable-crash was given. |
1ef0423a | 9461 | if test "${enable_crash+set}" = set; then : |
7fbd9d09 | 9462 | enableval=$enable_crash; if test "$enable_crash" != "no"; then |
564eb0a8 DS |
9463 | save_CPPFLAGS="$CPPFLAGS" |
9464 | if test "$enable_crash" != "yes"; then | |
9465 | staplog_CPPFLAGS=-I$enable_crash | |
4a3c19da | 9466 | CPPFLAGS="${staplog_CPPFLAGS} $CPPFLAGS" |
35a04c8e | 9467 | |
412e1bf7 | 9468 | fi |
1ef0423a FCE |
9469 | for ac_header in crash/defs.h |
9470 | do : | |
9471 | ac_fn_c_check_header_compile "$LINENO" "crash/defs.h" "ac_cv_header_crash_defs_h" " | |
9472 | #define NR_CPUS 256 | |
5e5aee9f | 9473 | |
1ef0423a | 9474 | " |
c3de29bd | 9475 | if test "x$ac_cv_header_crash_defs_h" = xyes; then : |
1ef0423a FCE |
9476 | cat >>confdefs.h <<_ACEOF |
9477 | #define HAVE_CRASH_DEFS_H 1 | |
5e5aee9f | 9478 | _ACEOF |
5e5aee9f | 9479 | |
1ef0423a | 9480 | else |
5d4aa1f5 | 9481 | as_fn_error $? "cannot find required crash header (crash-devel may need to be installed)" "$LINENO" 5 |
1ef0423a | 9482 | fi |
7fbd9d09 | 9483 | |
1ef0423a | 9484 | done |
5e5aee9f | 9485 | |
1ef0423a FCE |
9486 | CPPFLAGS="$save_CPPFLAGS" |
9487 | fi | |
5e5aee9f | 9488 | else |
1ef0423a | 9489 | enable_crash="no" |
7fbd9d09 | 9490 | fi |
564eb0a8 | 9491 | |
7fbd9d09 | 9492 | if test "$enable_crash" != "no"; then |
35a04c8e FCE |
9493 | BUILD_CRASHMOD_TRUE= |
9494 | BUILD_CRASHMOD_FALSE='#' | |
9495 | else | |
9496 | BUILD_CRASHMOD_TRUE='#' | |
9497 | BUILD_CRASHMOD_FALSE= | |
9498 | fi | |
9499 | ||
9500 | ||
92aff3c7 | 9501 | building_docs="no" |
7fbd9d09 | 9502 | # Check whether --enable-docs was given. |
1ef0423a | 9503 | if test "${enable_docs+set}" = set; then : |
7fbd9d09 | 9504 | enableval=$enable_docs; enable_docs=$enableval |
465e8fbf FCE |
9505 | else |
9506 | enable_docs="check" | |
7fbd9d09 FCE |
9507 | fi |
9508 | ||
71aef8fb LB |
9509 | # Extract the first word of "xvfb-run", so it can be a program name with args. |
9510 | set dummy xvfb-run; ac_word=$2 | |
9511 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
9512 | $as_echo_n "checking for $ac_word... " >&6; } | |
9513 | if ${ac_cv_prog_have_xvfb+:} false; then : | |
9514 | $as_echo_n "(cached) " >&6 | |
9515 | else | |
9516 | if test -n "$have_xvfb"; then | |
9517 | ac_cv_prog_have_xvfb="$have_xvfb" # Let the user override the test. | |
9518 | else | |
9519 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9520 | for as_dir in $PATH | |
9521 | do | |
9522 | IFS=$as_save_IFS | |
9523 | test -z "$as_dir" && as_dir=. | |
9524 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8eef2738 | 9525 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
71aef8fb LB |
9526 | ac_cv_prog_have_xvfb="yes" |
9527 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9528 | break 2 | |
9529 | fi | |
9530 | done | |
9531 | done | |
9532 | IFS=$as_save_IFS | |
9533 | ||
9534 | test -z "$ac_cv_prog_have_xvfb" && ac_cv_prog_have_xvfb="no" | |
9535 | fi | |
9536 | fi | |
9537 | have_xvfb=$ac_cv_prog_have_xvfb | |
9538 | if test -n "$have_xvfb"; then | |
9539 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_xvfb" >&5 | |
9540 | $as_echo "$have_xvfb" >&6; } | |
9541 | else | |
9542 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
9543 | $as_echo "no" >&6; } | |
9544 | fi | |
9545 | ||
9546 | ||
9547 | if test "$have_xvfb" == "yes"; then | |
9548 | HAVE_XVFB_TRUE= | |
9549 | HAVE_XVFB_FALSE='#' | |
9550 | else | |
9551 | HAVE_XVFB_TRUE='#' | |
9552 | HAVE_XVFB_FALSE= | |
9553 | fi | |
9554 | ||
465e8fbf FCE |
9555 | # Extract the first word of "latex", so it can be a program name with args. |
9556 | set dummy latex; ac_word=$2 | |
1ef0423a | 9557 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
0710d850 | 9558 | $as_echo_n "checking for $ac_word... " >&6; } |
c3de29bd | 9559 | if ${ac_cv_prog_have_latex+:} false; then : |
0710d850 | 9560 | $as_echo_n "(cached) " >&6 |
465e8fbf FCE |
9561 | else |
9562 | if test -n "$have_latex"; then | |
9563 | ac_cv_prog_have_latex="$have_latex" # Let the user override the test. | |
9564 | else | |
9565 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9566 | for as_dir in $PATH | |
9567 | do | |
9568 | IFS=$as_save_IFS | |
9569 | test -z "$as_dir" && as_dir=. | |
1ef0423a | 9570 | for ac_exec_ext in '' $ac_executable_extensions; do |
8eef2738 | 9571 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
465e8fbf | 9572 | ac_cv_prog_have_latex="yes" |
1ef0423a | 9573 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
465e8fbf FCE |
9574 | break 2 |
9575 | fi | |
9576 | done | |
1ef0423a | 9577 | done |
7fbd9d09 | 9578 | IFS=$as_save_IFS |
465e8fbf FCE |
9579 | |
9580 | test -z "$ac_cv_prog_have_latex" && ac_cv_prog_have_latex="no" | |
9581 | fi | |
9582 | fi | |
9583 | have_latex=$ac_cv_prog_have_latex | |
9584 | if test -n "$have_latex"; then | |
1ef0423a | 9585 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_latex" >&5 |
0710d850 | 9586 | $as_echo "$have_latex" >&6; } |
465e8fbf | 9587 | else |
1ef0423a | 9588 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
0710d850 | 9589 | $as_echo "no" >&6; } |
465e8fbf FCE |
9590 | fi |
9591 | ||
7fbd9d09 | 9592 | |
465e8fbf FCE |
9593 | # Extract the first word of "dvips", so it can be a program name with args. |
9594 | set dummy dvips; ac_word=$2 | |
1ef0423a | 9595 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
0710d850 | 9596 | $as_echo_n "checking for $ac_word... " >&6; } |
c3de29bd | 9597 | if ${ac_cv_prog_have_dvips+:} false; then : |
0710d850 | 9598 | $as_echo_n "(cached) " >&6 |
465e8fbf FCE |
9599 | else |
9600 | if test -n "$have_dvips"; then | |
9601 | ac_cv_prog_have_dvips="$have_dvips" # Let the user override the test. | |
9602 | else | |
9603 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9604 | for as_dir in $PATH | |
9605 | do | |
9606 | IFS=$as_save_IFS | |
9607 | test -z "$as_dir" && as_dir=. | |
1ef0423a | 9608 | for ac_exec_ext in '' $ac_executable_extensions; do |
8eef2738 | 9609 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
465e8fbf | 9610 | ac_cv_prog_have_dvips="yes" |
1ef0423a | 9611 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
465e8fbf FCE |
9612 | break 2 |
9613 | fi | |
9614 | done | |
1ef0423a | 9615 | done |
7fbd9d09 | 9616 | IFS=$as_save_IFS |
465e8fbf FCE |
9617 | |
9618 | test -z "$ac_cv_prog_have_dvips" && ac_cv_prog_have_dvips="no" | |
9619 | fi | |
9620 | fi | |
9621 | have_dvips=$ac_cv_prog_have_dvips | |
9622 | if test -n "$have_dvips"; then | |
1ef0423a | 9623 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_dvips" >&5 |
0710d850 | 9624 | $as_echo "$have_dvips" >&6; } |
465e8fbf | 9625 | else |
1ef0423a | 9626 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
0710d850 | 9627 | $as_echo "no" >&6; } |
465e8fbf FCE |
9628 | fi |
9629 | ||
7fbd9d09 | 9630 | |
465e8fbf FCE |
9631 | # Extract the first word of "ps2pdf", so it can be a program name with args. |
9632 | set dummy ps2pdf; ac_word=$2 | |
1ef0423a | 9633 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
0710d850 | 9634 | $as_echo_n "checking for $ac_word... " >&6; } |
c3de29bd | 9635 | if ${ac_cv_prog_have_ps2pdf+:} false; then : |
0710d850 | 9636 | $as_echo_n "(cached) " >&6 |
465e8fbf FCE |
9637 | else |
9638 | if test -n "$have_ps2pdf"; then | |
9639 | ac_cv_prog_have_ps2pdf="$have_ps2pdf" # Let the user override the test. | |
9640 | else | |
9641 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9642 | for as_dir in $PATH | |
9643 | do | |
9644 | IFS=$as_save_IFS | |
9645 | test -z "$as_dir" && as_dir=. | |
1ef0423a | 9646 | for ac_exec_ext in '' $ac_executable_extensions; do |
8eef2738 | 9647 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
465e8fbf | 9648 | ac_cv_prog_have_ps2pdf="yes" |
1ef0423a | 9649 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
465e8fbf FCE |
9650 | break 2 |
9651 | fi | |
9652 | done | |
1ef0423a | 9653 | done |
7fbd9d09 | 9654 | IFS=$as_save_IFS |
465e8fbf FCE |
9655 | |
9656 | test -z "$ac_cv_prog_have_ps2pdf" && ac_cv_prog_have_ps2pdf="no" | |
9657 | fi | |
9658 | fi | |
9659 | have_ps2pdf=$ac_cv_prog_have_ps2pdf | |
9660 | if test -n "$have_ps2pdf"; then | |
1ef0423a | 9661 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_ps2pdf" >&5 |
0710d850 | 9662 | $as_echo "$have_ps2pdf" >&6; } |
465e8fbf | 9663 | else |
1ef0423a | 9664 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
0710d850 | 9665 | $as_echo "no" >&6; } |
465e8fbf FCE |
9666 | fi |
9667 | ||
7fbd9d09 | 9668 | |
b62c413b EM |
9669 | # Extract the first word of "latex2html", so it can be a program name with args. |
9670 | set dummy latex2html; ac_word=$2 | |
1ef0423a | 9671 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
0710d850 | 9672 | $as_echo_n "checking for $ac_word... " >&6; } |
c3de29bd | 9673 | if ${ac_cv_prog_have_latex2html+:} false; then : |
0710d850 | 9674 | $as_echo_n "(cached) " >&6 |
b62c413b EM |
9675 | else |
9676 | if test -n "$have_latex2html"; then | |
9677 | ac_cv_prog_have_latex2html="$have_latex2html" # Let the user override the test. | |
9678 | else | |
9679 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9680 | for as_dir in $PATH | |
9681 | do | |
9682 | IFS=$as_save_IFS | |
9683 | test -z "$as_dir" && as_dir=. | |
1ef0423a | 9684 | for ac_exec_ext in '' $ac_executable_extensions; do |
8eef2738 | 9685 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b62c413b | 9686 | ac_cv_prog_have_latex2html="yes" |
1ef0423a | 9687 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b62c413b EM |
9688 | break 2 |
9689 | fi | |
9690 | done | |
1ef0423a | 9691 | done |
b62c413b EM |
9692 | IFS=$as_save_IFS |
9693 | ||
9694 | test -z "$ac_cv_prog_have_latex2html" && ac_cv_prog_have_latex2html="no" | |
9695 | fi | |
9696 | fi | |
9697 | have_latex2html=$ac_cv_prog_have_latex2html | |
9698 | if test -n "$have_latex2html"; then | |
1ef0423a | 9699 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_latex2html" >&5 |
0710d850 | 9700 | $as_echo "$have_latex2html" >&6; } |
b62c413b | 9701 | else |
1ef0423a | 9702 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
0710d850 | 9703 | $as_echo "no" >&6; } |
b62c413b EM |
9704 | fi |
9705 | ||
9706 | ||
9707 | if test "x${have_latex}${have_dvips}${have_ps2pdf}${have_latex2html}" != "xyesyesyesyes"; then | |
2d4b8ddf | 9708 | if test "$enable_docs" == "yes"; then |
5d4aa1f5 | 9709 | as_fn_error $? "cannot find all tools for building documentation" "$LINENO" 5 |
465e8fbf | 9710 | fi |
2d4b8ddf | 9711 | if test "$enable_docs" == "check"; then |
1ef0423a | 9712 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: will not build documentation, cannot find all tools" >&5 |
0710d850 | 9713 | $as_echo "$as_me: WARNING: will not build documentation, cannot find all tools" >&2;} |
2d4b8ddf | 9714 | fi |
465e8fbf | 9715 | fi |
b62c413b | 9716 | if test "x${have_latex}${have_dvips}${have_ps2pdf}${have_latex2html}" == "xyesyesyesyes" -a "$enable_docs" != "no"; then |
92aff3c7 WC |
9717 | building_docs="yes" |
9718 | fi | |
7fbd9d09 | 9719 | if test "$building_docs" == "yes"; then |
465e8fbf FCE |
9720 | BUILD_DOCS_TRUE= |
9721 | BUILD_DOCS_FALSE='#' | |
9722 | else | |
9723 | BUILD_DOCS_TRUE='#' | |
9724 | BUILD_DOCS_FALSE= | |
9725 | fi | |
9726 | ||
9727 | ||
53ade4da MW |
9728 | building_publican="no" |
9729 | # Check whether --enable-publican was given. | |
1ef0423a | 9730 | if test "${enable_publican+set}" = set; then : |
53ade4da MW |
9731 | enableval=$enable_publican; enable_publican=$enableval |
9732 | else | |
9733 | enable_publican="check" | |
9734 | fi | |
9735 | ||
9736 | if test "$building_docs" == "no" -a "$enable_publican" == "yes" ; then | |
5d4aa1f5 | 9737 | as_fn_error $? "must use --enable-docs with --enable-publican" "$LINENO" 5 |
53ade4da MW |
9738 | fi |
9739 | # Extract the first word of "publican", so it can be a program name with args. | |
9740 | set dummy publican; ac_word=$2 | |
1ef0423a | 9741 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
53ade4da | 9742 | $as_echo_n "checking for $ac_word... " >&6; } |
c3de29bd | 9743 | if ${ac_cv_prog_have_publican+:} false; then : |
53ade4da MW |
9744 | $as_echo_n "(cached) " >&6 |
9745 | else | |
9746 | if test -n "$have_publican"; then | |
9747 | ac_cv_prog_have_publican="$have_publican" # Let the user override the test. | |
9748 | else | |
9749 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9750 | for as_dir in $PATH | |
9751 | do | |
9752 | IFS=$as_save_IFS | |
9753 | test -z "$as_dir" && as_dir=. | |
1ef0423a | 9754 | for ac_exec_ext in '' $ac_executable_extensions; do |
8eef2738 | 9755 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
53ade4da | 9756 | ac_cv_prog_have_publican="yes" |
1ef0423a | 9757 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
53ade4da MW |
9758 | break 2 |
9759 | fi | |
9760 | done | |
1ef0423a | 9761 | done |
53ade4da MW |
9762 | IFS=$as_save_IFS |
9763 | ||
9764 | test -z "$ac_cv_prog_have_publican" && ac_cv_prog_have_publican="no" | |
9765 | fi | |
9766 | fi | |
9767 | have_publican=$ac_cv_prog_have_publican | |
9768 | if test -n "$have_publican"; then | |
1ef0423a | 9769 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_publican" >&5 |
53ade4da MW |
9770 | $as_echo "$have_publican" >&6; } |
9771 | else | |
1ef0423a | 9772 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
53ade4da MW |
9773 | $as_echo "no" >&6; } |
9774 | fi | |
9775 | ||
9776 | ||
9777 | if test "$enable_publican" == "yes"; then | |
9778 | if test "x${have_publican}" != "xyes"; then | |
5d4aa1f5 | 9779 | as_fn_error $? "cannot find publican for building publican guides" "$LINENO" 5 |
53ade4da MW |
9780 | fi |
9781 | fi | |
9782 | if test "x${have_publican}" == "xyes" -a "$enable_publican" != "no" -a "${building_docs}" == "yes"; then | |
9783 | building_publican="yes" | |
9784 | fi | |
9785 | if test "$building_publican" == "yes"; then | |
9786 | BUILD_PUBLICAN_TRUE= | |
9787 | BUILD_PUBLICAN_FALSE='#' | |
9788 | else | |
9789 | BUILD_PUBLICAN_TRUE='#' | |
9790 | BUILD_PUBLICAN_FALSE= | |
9791 | fi | |
9792 | ||
89bc1a6a | 9793 | publican_brand="common" |
53ade4da MW |
9794 | |
9795 | # Check whether --with-publican-brand was given. | |
1ef0423a | 9796 | if test "${with_publican_brand+set}" = set; then : |
53ade4da MW |
9797 | withval=$with_publican_brand; publican_brand=$withval |
9798 | else | |
89bc1a6a | 9799 | publican_brand="common" |
53ade4da MW |
9800 | fi |
9801 | ||
9802 | PUBLICAN_BRAND=$publican_brand | |
9803 | ||
9804 | ||
92aff3c7 | 9805 | building_refdocs="no" |
7fbd9d09 | 9806 | # Check whether --enable-refdocs was given. |
1ef0423a | 9807 | if test "${enable_refdocs+set}" = set; then : |
7fbd9d09 | 9808 | enableval=$enable_refdocs; enable_refdocs=$enableval |
92aff3c7 WC |
9809 | else |
9810 | enable_refdocs="check" | |
7fbd9d09 FCE |
9811 | fi |
9812 | ||
92aff3c7 | 9813 | if test "$building_docs" == "no" -a "$enable_refdocs" == "yes" ; then |
5d4aa1f5 | 9814 | as_fn_error $? "must use --enable-docs with --enable-refdocs" "$LINENO" 5 |
92aff3c7 WC |
9815 | fi |
9816 | # Extract the first word of "xmlto", so it can be a program name with args. | |
9817 | set dummy xmlto; ac_word=$2 | |
1ef0423a | 9818 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
0710d850 | 9819 | $as_echo_n "checking for $ac_word... " >&6; } |
c3de29bd | 9820 | if ${ac_cv_prog_have_xmlto+:} false; then : |
0710d850 | 9821 | $as_echo_n "(cached) " >&6 |
92aff3c7 WC |
9822 | else |
9823 | if test -n "$have_xmlto"; then | |
9824 | ac_cv_prog_have_xmlto="$have_xmlto" # Let the user override the test. | |
9825 | else | |
9826 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9827 | for as_dir in $PATH | |
9828 | do | |
9829 | IFS=$as_save_IFS | |
9830 | test -z "$as_dir" && as_dir=. | |
1ef0423a | 9831 | for ac_exec_ext in '' $ac_executable_extensions; do |
8eef2738 | 9832 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
92aff3c7 | 9833 | ac_cv_prog_have_xmlto="yes" |
1ef0423a | 9834 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
92aff3c7 WC |
9835 | break 2 |
9836 | fi | |
9837 | done | |
1ef0423a | 9838 | done |
7fbd9d09 | 9839 | IFS=$as_save_IFS |
92aff3c7 WC |
9840 | |
9841 | test -z "$ac_cv_prog_have_xmlto" && ac_cv_prog_have_xmlto="no" | |
9842 | fi | |
9843 | fi | |
9844 | have_xmlto=$ac_cv_prog_have_xmlto | |
9845 | if test -n "$have_xmlto"; then | |
1ef0423a | 9846 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_xmlto" >&5 |
0710d850 | 9847 | $as_echo "$have_xmlto" >&6; } |
92aff3c7 | 9848 | else |
1ef0423a | 9849 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
0710d850 | 9850 | $as_echo "no" >&6; } |
92aff3c7 WC |
9851 | fi |
9852 | ||
7fbd9d09 | 9853 | |
ccf8bc85 EM |
9854 | if test "$enable_refdocs" == "yes"; then |
9855 | if test "x${have_xmlto}" != "xyes"; then | |
5d4aa1f5 | 9856 | as_fn_error $? "cannot find xmlto for building reference documentation" "$LINENO" 5 |
ccf8bc85 EM |
9857 | fi |
9858 | fi | |
9859 | if test "x${have_xmlto}" == "xyes" -a "$enable_refdocs" != "no" -a "${building_docs}" == "yes"; then | |
9860 | building_refdocs="yes" | |
9861 | fi | |
9862 | if test "$building_refdocs" == "yes"; then | |
9863 | BUILD_REFDOCS_TRUE= | |
9864 | BUILD_REFDOCS_FALSE='#' | |
9865 | else | |
9866 | BUILD_REFDOCS_TRUE='#' | |
9867 | BUILD_REFDOCS_FALSE= | |
9868 | fi | |
9869 | ||
9870 | ||
327a760e FCE |
9871 | # Extract the first word of "fop", so it can be a program name with args. |
9872 | set dummy fop; ac_word=$2 | |
9873 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
9874 | $as_echo_n "checking for $ac_word... " >&6; } | |
9875 | if ${ac_cv_prog_have_fop+:} false; then : | |
9876 | $as_echo_n "(cached) " >&6 | |
9877 | else | |
9878 | if test -n "$have_fop"; then | |
9879 | ac_cv_prog_have_fop="$have_fop" # Let the user override the test. | |
9880 | else | |
9881 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9882 | for as_dir in $PATH | |
9883 | do | |
9884 | IFS=$as_save_IFS | |
9885 | test -z "$as_dir" && as_dir=. | |
9886 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8eef2738 | 9887 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
327a760e FCE |
9888 | ac_cv_prog_have_fop="yes" |
9889 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9890 | break 2 | |
9891 | fi | |
9892 | done | |
9893 | done | |
9894 | IFS=$as_save_IFS | |
9895 | ||
9896 | test -z "$ac_cv_prog_have_fop" && ac_cv_prog_have_fop="no" | |
9897 | fi | |
9898 | fi | |
9899 | have_fop=$ac_cv_prog_have_fop | |
9900 | if test -n "$have_fop"; then | |
9901 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_fop" >&5 | |
9902 | $as_echo "$have_fop" >&6; } | |
9903 | else | |
9904 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
9905 | $as_echo "no" >&6; } | |
9906 | fi | |
9907 | ||
9908 | ||
61598deb FCE |
9909 | if test "x${have_fop}" == "xyes"; then |
9910 | # Due to rhbz505364 / 830266, we must actually test-run fop, not just | |
9911 | # hope that it works. | |
434e049c FCE |
9912 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if xmlto --with-fop actually works" >&5 |
9913 | $as_echo_n "checking to see if xmlto --with-fop actually works... " >&6; } | |
61598deb | 9914 | if xmlto --with-fop pdf ${srcdir}/doc/SystemTap_Tapset_Reference/dummy-tapsets.xml >/dev/null 2>&1; then |
434e049c FCE |
9915 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
9916 | $as_echo "yes" >&6; } | |
61598deb | 9917 | else |
434e049c FCE |
9918 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: it's dead, Jim" >&5 |
9919 | $as_echo "it's dead, Jim" >&6; } | |
61598deb FCE |
9920 | have_fop="broken" |
9921 | fi | |
75d16f55 | 9922 | rm -f dummy-tapsets.pdf |
61598deb | 9923 | fi |
327a760e FCE |
9924 | if test "$have_fop" == "yes"; then |
9925 | HAVE_FOP_TRUE= | |
9926 | HAVE_FOP_FALSE='#' | |
9927 | else | |
9928 | HAVE_FOP_TRUE='#' | |
9929 | HAVE_FOP_FALSE= | |
9930 | fi | |
9931 | ||
9932 | ||
468abaf4 | 9933 | cat > conftest.xml << 'EOF' |
aa5951be WC |
9934 | <?xml version="1.0" encoding="UTF-8"?> |
9935 | <!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN" | |
9936 | "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd" > | |
468abaf4 FCE |
9937 | <book lang="en"> |
9938 | <bookinfo><title>foo</title></bookinfo> | |
a8fcf687 MW |
9939 | <chapter id="logging.stp"><title>Logging Tapset</title> |
9940 | <refentry id="API-log"><refnamediv><refname>log</refname> | |
9941 | <refpurpose>logging</refpurpose></refnamediv> | |
9942 | <refsect1><title>Description</title> | |
9943 | <para>baz</para></refsect1></refentry></chapter> | |
aa5951be WC |
9944 | </book> |
9945 | EOF | |
468abaf4 FCE |
9946 | |
9947 | if test "x${have_xmlto}" == "xyes"; then | |
1ef0423a | 9948 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlto --stringparam support" >&5 |
0710d850 | 9949 | $as_echo_n "checking for xmlto --stringparam support... " >&6; } |
4b5627b1 | 9950 | xmlto --stringparam man.authors.section.enabled=0 html-nochunks conftest.xml >/dev/null 2>&1 |
468abaf4 FCE |
9951 | if test $? == 0; then |
9952 | have_xmlto_stringparam="yes" | |
1ef0423a | 9953 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
0710d850 | 9954 | $as_echo "yes" >&6; } |
468abaf4 | 9955 | else |
1ef0423a | 9956 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
0710d850 | 9957 | $as_echo "no" >&6; } |
468abaf4 | 9958 | fi |
4b5627b1 | 9959 | rm -f conftest.html |
468abaf4 FCE |
9960 | fi |
9961 | if test "$have_xmlto_stringparam" == "yes"; then | |
9962 | XMLTO_STRINGPARAM_TRUE= | |
9963 | XMLTO_STRINGPARAM_FALSE='#' | |
9964 | else | |
9965 | XMLTO_STRINGPARAM_TRUE='#' | |
9966 | XMLTO_STRINGPARAM_FALSE= | |
9967 | fi | |
9968 | ||
9969 | ||
9970 | if test "x${building_refdocs}" == "xyes"; then | |
1ef0423a | 9971 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlto pdf support" >&5 |
0710d850 | 9972 | $as_echo_n "checking for xmlto pdf support... " >&6; } |
c639b14d FCE |
9973 | # xmlto pdf may work *only* with --with-fop |
9974 | # XXX: To an extent this test is redundant in that the --with-fop test | |
9975 | # already ran xmlto --with-fop pdf .... | |
9976 | if test "x$have_fop" == "xyes"; then | |
9977 | XMLTOPDF_FOP=--with-fop | |
9978 | else | |
9979 | XMLTOPDF_FOP= | |
9980 | fi | |
9981 | xmlto $XMLTOPDF_FOP pdf conftest.xml >& /dev/null | |
aa5951be WC |
9982 | if test $? == 0; then |
9983 | have_xmlto_pdf="yes" | |
1ef0423a | 9984 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
0710d850 | 9985 | $as_echo "yes" >&6; } |
aa5951be | 9986 | else |
1ef0423a | 9987 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
0710d850 | 9988 | $as_echo "no" >&6; } |
1ef0423a | 9989 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Not building reference documentation in PDF format" >&5 |
0710d850 | 9990 | $as_echo "$as_me: WARNING: Not building reference documentation in PDF format" >&2;} |
aa5951be | 9991 | fi |
468abaf4 | 9992 | rm -f conftest.pdf |
aa5951be | 9993 | fi |
a8fcf687 | 9994 | if test "$have_xmlto_pdf" == "yes"; then |
ccf8bc85 EM |
9995 | BUILD_PDFREFDOCS_TRUE= |
9996 | BUILD_PDFREFDOCS_FALSE='#' | |
92aff3c7 | 9997 | else |
ccf8bc85 EM |
9998 | BUILD_PDFREFDOCS_TRUE='#' |
9999 | BUILD_PDFREFDOCS_FALSE= | |
92aff3c7 WC |
10000 | fi |
10001 | ||
10002 | ||
468abaf4 FCE |
10003 | rm -f conftest.xml |
10004 | ||
a0e2728a | 10005 | |
28f121c3 DEP |
10006 | # Check whether --with-nss was given. |
10007 | if test "${with_nss+set}" = set; then : | |
10008 | withval=$with_nss; | |
a0e2728a DB |
10009 | fi |
10010 | ||
10011 | ||
1087b83f TM |
10012 | |
10013 | ||
5d4aa1f5 FCE |
10014 | |
10015 | ||
10016 | ||
10017 | ||
8eef2738 | 10018 | |
1087b83f TM |
10019 | if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then |
10020 | if test -n "$ac_tool_prefix"; then | |
10021 | # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. | |
10022 | set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 | |
1ef0423a | 10023 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
0710d850 | 10024 | $as_echo_n "checking for $ac_word... " >&6; } |
c3de29bd | 10025 | if ${ac_cv_path_PKG_CONFIG+:} false; then : |
0710d850 | 10026 | $as_echo_n "(cached) " >&6 |
1087b83f TM |
10027 | else |
10028 | case $PKG_CONFIG in | |
10029 | [\\/]* | ?:[\\/]*) | |
10030 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
10031 | ;; | |
10032 | *) | |
10033 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10034 | for as_dir in $PATH | |
10035 | do | |
10036 | IFS=$as_save_IFS | |
10037 | test -z "$as_dir" && as_dir=. | |
1ef0423a | 10038 | for ac_exec_ext in '' $ac_executable_extensions; do |
8eef2738 | 10039 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1087b83f | 10040 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
1ef0423a | 10041 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1087b83f TM |
10042 | break 2 |
10043 | fi | |
10044 | done | |
1ef0423a | 10045 | done |
1087b83f TM |
10046 | IFS=$as_save_IFS |
10047 | ||
10048 | ;; | |
10049 | esac | |
10050 | fi | |
10051 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
10052 | if test -n "$PKG_CONFIG"; then | |
1ef0423a | 10053 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 |
0710d850 | 10054 | $as_echo "$PKG_CONFIG" >&6; } |
1087b83f | 10055 | else |
1ef0423a | 10056 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
0710d850 | 10057 | $as_echo "no" >&6; } |
1087b83f TM |
10058 | fi |
10059 | ||
10060 | ||
10061 | fi | |
10062 | if test -z "$ac_cv_path_PKG_CONFIG"; then | |
10063 | ac_pt_PKG_CONFIG=$PKG_CONFIG | |
10064 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
10065 | set dummy pkg-config; ac_word=$2 | |
1ef0423a | 10066 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
0710d850 | 10067 | $as_echo_n "checking for $ac_word... " >&6; } |
c3de29bd | 10068 | if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : |
0710d850 | 10069 | $as_echo_n "(cached) " >&6 |
1087b83f TM |
10070 | else |
10071 | case $ac_pt_PKG_CONFIG in | |
10072 | [\\/]* | ?:[\\/]*) | |
10073 | ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. | |
10074 | ;; | |
10075 | *) | |
10076 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10077 | for as_dir in $PATH | |
10078 | do | |
10079 | IFS=$as_save_IFS | |
10080 | test -z "$as_dir" && as_dir=. | |
1ef0423a | 10081 | for ac_exec_ext in '' $ac_executable_extensions; do |
8eef2738 | 10082 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1087b83f | 10083 | ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
1ef0423a | 10084 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1087b83f TM |
10085 | break 2 |
10086 | fi | |
10087 | done | |
1ef0423a | 10088 | done |
1087b83f TM |
10089 | IFS=$as_save_IFS |
10090 | ||
10091 | ;; | |
10092 | esac | |
10093 | fi | |
10094 | ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG | |
10095 | if test -n "$ac_pt_PKG_CONFIG"; then | |
1ef0423a | 10096 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 |
0710d850 | 10097 | $as_echo "$ac_pt_PKG_CONFIG" >&6; } |
1087b83f | 10098 | else |
1ef0423a | 10099 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
0710d850 | 10100 | $as_echo "no" >&6; } |
1087b83f TM |
10101 | fi |
10102 | ||
10103 | if test "x$ac_pt_PKG_CONFIG" = x; then | |
10104 | PKG_CONFIG="" | |
10105 | else | |
10106 | case $cross_compiling:$ac_tool_warned in | |
10107 | yes:) | |
1ef0423a | 10108 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
0710d850 | 10109 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
1087b83f TM |
10110 | ac_tool_warned=yes ;; |
10111 | esac | |
10112 | PKG_CONFIG=$ac_pt_PKG_CONFIG | |
10113 | fi | |
10114 | else | |
10115 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" | |
10116 | fi | |
10117 | ||
10118 | fi | |
10119 | if test -n "$PKG_CONFIG"; then | |
10120 | _pkg_min_version=0.9.0 | |
1ef0423a | 10121 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 |
0710d850 | 10122 | $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } |
1087b83f | 10123 | if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then |
1ef0423a | 10124 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
0710d850 | 10125 | $as_echo "yes" >&6; } |
1087b83f | 10126 | else |
1ef0423a | 10127 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
0710d850 | 10128 | $as_echo "no" >&6; } |
1087b83f TM |
10129 | PKG_CONFIG="" |
10130 | fi | |
1087b83f | 10131 | fi |
28f121c3 DEP |
10132 | if test "x$with_nss" != "xno"; then : |
10133 | ||
10134 | ||
10135 | pkg_failed=no | |
10136 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nss" >&5 | |
10137 | $as_echo_n "checking for nss... " >&6; } | |
10138 | ||
10139 | if test -n "$nss_CFLAGS"; then | |
10140 | pkg_cv_nss_CFLAGS="$nss_CFLAGS" | |
10141 | elif test -n "$PKG_CONFIG"; then | |
10142 | if test -n "$PKG_CONFIG" && \ | |
10143 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"nss >= 3\""; } >&5 | |
10144 | ($PKG_CONFIG --exists --print-errors "nss >= 3") 2>&5 | |
10145 | ac_status=$? | |
10146 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
10147 | test $ac_status = 0; }; then | |
10148 | pkg_cv_nss_CFLAGS=`$PKG_CONFIG --cflags "nss >= 3" 2>/dev/null` | |
8eef2738 | 10149 | test "x$?" != "x0" && pkg_failed=yes |
28f121c3 DEP |
10150 | else |
10151 | pkg_failed=yes | |
10152 | fi | |
10153 | else | |
10154 | pkg_failed=untried | |
10155 | fi | |
10156 | if test -n "$nss_LIBS"; then | |
10157 | pkg_cv_nss_LIBS="$nss_LIBS" | |
10158 | elif test -n "$PKG_CONFIG"; then | |
10159 | if test -n "$PKG_CONFIG" && \ | |
10160 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"nss >= 3\""; } >&5 | |
10161 | ($PKG_CONFIG --exists --print-errors "nss >= 3") 2>&5 | |
10162 | ac_status=$? | |
10163 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
10164 | test $ac_status = 0; }; then | |
10165 | pkg_cv_nss_LIBS=`$PKG_CONFIG --libs "nss >= 3" 2>/dev/null` | |
8eef2738 | 10166 | test "x$?" != "x0" && pkg_failed=yes |
28f121c3 DEP |
10167 | else |
10168 | pkg_failed=yes | |
10169 | fi | |
10170 | else | |
10171 | pkg_failed=untried | |
10172 | fi | |
10173 | ||
10174 | ||
10175 | ||
10176 | if test $pkg_failed = yes; then | |
10177 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10178 | $as_echo "no" >&6; } | |
10179 | ||
10180 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
10181 | _pkg_short_errors_supported=yes | |
10182 | else | |
10183 | _pkg_short_errors_supported=no | |
10184 | fi | |
10185 | if test $_pkg_short_errors_supported = yes; then | |
8eef2738 | 10186 | nss_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "nss >= 3" 2>&1` |
28f121c3 | 10187 | else |
8eef2738 | 10188 | nss_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "nss >= 3" 2>&1` |
28f121c3 DEP |
10189 | fi |
10190 | # Put the nasty error message in config.log where it belongs | |
10191 | echo "$nss_PKG_ERRORS" >&5 | |
10192 | ||
10193 | have_nss=no | |
10194 | elif test $pkg_failed = untried; then | |
10195 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10196 | $as_echo "no" >&6; } | |
10197 | have_nss=no | |
10198 | else | |
10199 | nss_CFLAGS=$pkg_cv_nss_CFLAGS | |
10200 | nss_LIBS=$pkg_cv_nss_LIBS | |
10201 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
10202 | $as_echo "yes" >&6; } | |
10203 | have_nss=yes | |
10204 | ||
10205 | $as_echo "#define HAVE_NSS 1" >>confdefs.h | |
10206 | ||
10207 | ||
10208 | fi | |
10209 | ||
10210 | else | |
10211 | have_nss=no | |
10212 | fi | |
10213 | ||
10214 | if test "${have_nss}" = "yes"; then | |
10215 | HAVE_NSS_TRUE= | |
10216 | HAVE_NSS_FALSE='#' | |
10217 | else | |
10218 | HAVE_NSS_TRUE='#' | |
10219 | HAVE_NSS_FALSE= | |
10220 | fi | |
10221 | ||
10222 | ||
10223 | # Check whether --enable-server was given. | |
10224 | if test "${enable_server+set}" = set; then : | |
10225 | enableval=$enable_server; enable_server=$enableval | |
10226 | else | |
10227 | enable_server="check" | |
10228 | fi | |
10229 | ||
10230 | ||
10231 | if test "$enable_server" != "no"; then | |
10232 | if test "x${have_nss}" != "xyes"; then | |
10233 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: will not build systemtap compile server, cannot find nss headers" >&5 | |
10234 | $as_echo "$as_me: WARNING: will not build systemtap compile server, cannot find nss headers" >&2;} | |
10235 | fi | |
10236 | fi | |
10237 | if test "${have_nss}" == "yes" -a "$enable_server" != "no"; then | |
10238 | BUILD_SERVER_TRUE= | |
10239 | BUILD_SERVER_FALSE='#' | |
10240 | else | |
10241 | BUILD_SERVER_TRUE='#' | |
10242 | BUILD_SERVER_FALSE= | |
10243 | fi | |
10244 | ||
10245 | ||
10246 | if test "${have_nss}" != "yes"; then | |
c4fd15b4 DB |
10247 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: compile-server client functionality will be disabled, cannot find nss development files" >&5 |
10248 | $as_echo "$as_me: WARNING: compile-server client functionality will be disabled, cannot find nss development files" >&2;} | |
28f121c3 DEP |
10249 | fi |
10250 | ||
10251 | ||
10252 | # Check whether --with-avahi was given. | |
10253 | if test "${with_avahi+set}" = set; then : | |
10254 | withval=$with_avahi; | |
10255 | fi | |
10256 | ||
10257 | ||
10258 | if test "x$with_avahi" != "xno"; then : | |
10259 | ||
10260 | ||
10261 | pkg_failed=no | |
10262 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for avahi" >&5 | |
10263 | $as_echo_n "checking for avahi... " >&6; } | |
10264 | ||
10265 | if test -n "$avahi_CFLAGS"; then | |
10266 | pkg_cv_avahi_CFLAGS="$avahi_CFLAGS" | |
10267 | elif test -n "$PKG_CONFIG"; then | |
10268 | if test -n "$PKG_CONFIG" && \ | |
10269 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"avahi-client\""; } >&5 | |
10270 | ($PKG_CONFIG --exists --print-errors "avahi-client") 2>&5 | |
10271 | ac_status=$? | |
10272 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
10273 | test $ac_status = 0; }; then | |
10274 | pkg_cv_avahi_CFLAGS=`$PKG_CONFIG --cflags "avahi-client" 2>/dev/null` | |
8eef2738 | 10275 | test "x$?" != "x0" && pkg_failed=yes |
28f121c3 DEP |
10276 | else |
10277 | pkg_failed=yes | |
10278 | fi | |
10279 | else | |
10280 | pkg_failed=untried | |
10281 | fi | |
10282 | if test -n "$avahi_LIBS"; then | |
10283 | pkg_cv_avahi_LIBS="$avahi_LIBS" | |
10284 | elif test -n "$PKG_CONFIG"; then | |
10285 | if test -n "$PKG_CONFIG" && \ | |
10286 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"avahi-client\""; } >&5 | |
10287 | ($PKG_CONFIG --exists --print-errors "avahi-client") 2>&5 | |
10288 | ac_status=$? | |
10289 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
10290 | test $ac_status = 0; }; then | |
10291 | pkg_cv_avahi_LIBS=`$PKG_CONFIG --libs "avahi-client" 2>/dev/null` | |
8eef2738 | 10292 | test "x$?" != "x0" && pkg_failed=yes |
28f121c3 DEP |
10293 | else |
10294 | pkg_failed=yes | |
10295 | fi | |
10296 | else | |
10297 | pkg_failed=untried | |
10298 | fi | |
10299 | ||
10300 | ||
10301 | ||
10302 | if test $pkg_failed = yes; then | |
10303 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10304 | $as_echo "no" >&6; } | |
10305 | ||
10306 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
10307 | _pkg_short_errors_supported=yes | |
10308 | else | |
10309 | _pkg_short_errors_supported=no | |
10310 | fi | |
10311 | if test $_pkg_short_errors_supported = yes; then | |
8eef2738 | 10312 | avahi_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "avahi-client" 2>&1` |
28f121c3 | 10313 | else |
8eef2738 | 10314 | avahi_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "avahi-client" 2>&1` |
28f121c3 DEP |
10315 | fi |
10316 | # Put the nasty error message in config.log where it belongs | |
10317 | echo "$avahi_PKG_ERRORS" >&5 | |
10318 | ||
10319 | have_avahi=no | |
10320 | elif test $pkg_failed = untried; then | |
10321 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10322 | $as_echo "no" >&6; } | |
10323 | have_avahi=no | |
10324 | else | |
10325 | avahi_CFLAGS=$pkg_cv_avahi_CFLAGS | |
10326 | avahi_LIBS=$pkg_cv_avahi_LIBS | |
10327 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
10328 | $as_echo "yes" >&6; } | |
10329 | have_avahi=yes | |
10330 | ||
10331 | $as_echo "#define HAVE_AVAHI 1" >>confdefs.h | |
10332 | ||
10333 | ||
10334 | fi | |
10335 | ||
10336 | else | |
10337 | have_avahi=no | |
10338 | fi | |
10339 | ||
10340 | if test "${have_avahi}" = "yes"; then | |
10341 | HAVE_AVAHI_TRUE= | |
10342 | HAVE_AVAHI_FALSE='#' | |
10343 | else | |
10344 | HAVE_AVAHI_TRUE='#' | |
10345 | HAVE_AVAHI_FALSE= | |
10346 | fi | |
10347 | ||
10348 | ||
10349 | if test "${have_avahi}" != "yes"; then | |
10350 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: some compile-server functionality will be restricted, cannot find avahi development files" >&5 | |
10351 | $as_echo "$as_me: WARNING: some compile-server functionality will be restricted, cannot find avahi development files" >&2;} | |
10352 | fi | |
10353 | ||
1087b83f | 10354 | |
2ed04863 WC |
10355 | |
10356 | # Check whether --with-rpm was given. | |
1ef0423a | 10357 | if test "${with_rpm+set}" = set; then : |
2ed04863 WC |
10358 | withval=$with_rpm; |
10359 | else | |
10360 | with_rpm="auto" | |
10361 | fi | |
10362 | ||
bcfa72ed | 10363 | if test "$with_rpm" != "no"; then |
1ef0423a | 10364 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rpmtsInitIterator in -lrpm" >&5 |
bcfa72ed | 10365 | $as_echo_n "checking for rpmtsInitIterator in -lrpm... " >&6; } |
c3de29bd | 10366 | if ${ac_cv_lib_rpm_rpmtsInitIterator+:} false; then : |
bcfa72ed | 10367 | $as_echo_n "(cached) " >&6 |
e6364d79 | 10368 | else |
bcfa72ed FCE |
10369 | ac_check_lib_save_LIBS=$LIBS |
10370 | LIBS="-lrpm $LIBS" | |
1ef0423a | 10371 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
2ed04863 WC |
10372 | /* end confdefs.h. */ |
10373 | ||
bcfa72ed FCE |
10374 | /* Override any GCC internal prototype to avoid an error. |
10375 | Use char because int might match the return type of a GCC | |
10376 | builtin and then its argument prototype would still apply. */ | |
10377 | #ifdef __cplusplus | |
10378 | extern "C" | |
10379 | #endif | |
10380 | char rpmtsInitIterator (); | |
2ed04863 WC |
10381 | int |
10382 | main () | |
10383 | { | |
bcfa72ed | 10384 | return rpmtsInitIterator (); |
2ed04863 WC |
10385 | ; |
10386 | return 0; | |
10387 | } | |
10388 | _ACEOF | |
1ef0423a | 10389 | if ac_fn_c_try_link "$LINENO"; then : |
5e5aee9f FCE |
10390 | ac_cv_lib_rpm_rpmtsInitIterator=yes |
10391 | else | |
1ef0423a | 10392 | ac_cv_lib_rpm_rpmtsInitIterator=no |
5e5aee9f | 10393 | fi |
1ef0423a FCE |
10394 | rm -f core conftest.err conftest.$ac_objext \ |
10395 | conftest$ac_exeext conftest.$ac_ext | |
5e5aee9f FCE |
10396 | LIBS=$ac_check_lib_save_LIBS |
10397 | fi | |
1ef0423a | 10398 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rpm_rpmtsInitIterator" >&5 |
5e5aee9f | 10399 | $as_echo "$ac_cv_lib_rpm_rpmtsInitIterator" >&6; } |
c3de29bd | 10400 | if test "x$ac_cv_lib_rpm_rpmtsInitIterator" = xyes; then : |
5e5aee9f | 10401 | |
12c1a007 | 10402 | |
1ef0423a | 10403 | $as_echo "#define HAVE_LIBRPM 1" >>confdefs.h |
12c1a007 | 10404 | |
f02c2e47 | 10405 | stap_LIBS="$stap_LIBS -lc -lrpm" |
12c1a007 | 10406 | have_librpm="yes" |
7f9ad862 SC |
10407 | else |
10408 | have_librpm="no" | |
2ed04863 | 10409 | fi |
e6364d79 | 10410 | |
44edbcd6 JS |
10411 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rpmFreeCrypto in -lrpmio" >&5 |
10412 | $as_echo_n "checking for rpmFreeCrypto in -lrpmio... " >&6; } | |
c3de29bd | 10413 | if ${ac_cv_lib_rpmio_rpmFreeCrypto+:} false; then : |
44edbcd6 JS |
10414 | $as_echo_n "(cached) " >&6 |
10415 | else | |
10416 | ac_check_lib_save_LIBS=$LIBS | |
10417 | LIBS="-lrpmio $LIBS" | |
10418 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
10419 | /* end confdefs.h. */ | |
10420 | ||
10421 | /* Override any GCC internal prototype to avoid an error. | |
10422 | Use char because int might match the return type of a GCC | |
10423 | builtin and then its argument prototype would still apply. */ | |
10424 | #ifdef __cplusplus | |
10425 | extern "C" | |
10426 | #endif | |
10427 | char rpmFreeCrypto (); | |
10428 | int | |
10429 | main () | |
10430 | { | |
10431 | return rpmFreeCrypto (); | |
10432 | ; | |
10433 | return 0; | |
10434 | } | |
10435 | _ACEOF | |
10436 | if ac_fn_c_try_link "$LINENO"; then : | |
10437 | ac_cv_lib_rpmio_rpmFreeCrypto=yes | |
10438 | else | |
10439 | ac_cv_lib_rpmio_rpmFreeCrypto=no | |
10440 | fi | |
10441 | rm -f core conftest.err conftest.$ac_objext \ | |
10442 | conftest$ac_exeext conftest.$ac_ext | |
10443 | LIBS=$ac_check_lib_save_LIBS | |
10444 | fi | |
10445 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rpmio_rpmFreeCrypto" >&5 | |
10446 | $as_echo "$ac_cv_lib_rpmio_rpmFreeCrypto" >&6; } | |
c3de29bd | 10447 | if test "x$ac_cv_lib_rpmio_rpmFreeCrypto" = xyes; then : |
44edbcd6 JS |
10448 | |
10449 | ||
10450 | $as_echo "#define HAVE_LIBRPMIO 1" >>confdefs.h | |
10451 | ||
f02c2e47 | 10452 | stap_LIBS="$stap_LIBS -lc -lrpmio" |
44edbcd6 JS |
10453 | have_librpmio="yes" |
10454 | else | |
10455 | have_librpmio="no" | |
10456 | fi | |
10457 | ||
bcfa72ed | 10458 | if test "x$have_librpm" != "xyes" -a "$with_rpm" == "yes"; then |
5d4aa1f5 | 10459 | as_fn_error $? "cannot find librpm" "$LINENO" 5 |
2ed04863 | 10460 | fi |
44edbcd6 JS |
10461 | if test "x$have_librpmio" != "xyes" -a "$with_rpm" == "yes"; then |
10462 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find librpmio" >&5 | |
10463 | $as_echo "$as_me: WARNING: cannot find librpmio" >&2;} | |
10464 | fi | |
2ed04863 WC |
10465 | fi |
10466 | ||
10467 | ||
e8f3c2c2 DS |
10468 | build_elfutils=no |
10469 | ||
7fbd9d09 | 10470 | # Check whether --with-elfutils was given. |
1ef0423a | 10471 | if test "${with_elfutils+set}" = set; then : |
7fbd9d09 | 10472 | withval=$with_elfutils; |
e8f3c2c2 | 10473 | case "$with_elfutils" in |
5d4aa1f5 | 10474 | yes) as_fn_error $? "--with-elfutils requires an argument" "$LINENO" 5 ;; |
e8f3c2c2 DS |
10475 | ''|no) ;; |
10476 | *) build_elfutils=yes ;; | |
10477 | esac | |
7fbd9d09 | 10478 | fi |
e8f3c2c2 | 10479 | |
7fbd9d09 | 10480 | if test $build_elfutils = yes; then |
e8f3c2c2 DS |
10481 | BUILD_ELFUTILS_TRUE= |
10482 | BUILD_ELFUTILS_FALSE='#' | |
10483 | else | |
10484 | BUILD_ELFUTILS_TRUE='#' | |
10485 | BUILD_ELFUTILS_FALSE= | |
10486 | fi | |
10487 | ||
1ef0423a | 10488 | elfutils_abs_srcdir=`if test $build_elfutils = yes; then : |
e8f3c2c2 | 10489 | cd $with_elfutils && pwd |
1ef0423a | 10490 | fi` |
e8f3c2c2 DS |
10491 | |
10492 | ||
efa6ba96 PP |
10493 | if test $enable_translator = yes; then |
10494 | if test $build_elfutils = no; then | |
10495 | # Need libdwfl-capable recent elfutils http://elfutils.fedorahosted.org/ | |
c14263d8 FCE |
10496 | |
10497 | # On modern debian/ubuntu, libebl has been merged into libdw | |
10498 | # http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=457543 | |
10499 | save_LIBS="$LIBS" | |
10500 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ebl_get_elfmachine in -lebl" >&5 | |
10501 | $as_echo_n "checking for ebl_get_elfmachine in -lebl... " >&6; } | |
c3de29bd | 10502 | if ${ac_cv_lib_ebl_ebl_get_elfmachine+:} false; then : |
c14263d8 FCE |
10503 | $as_echo_n "(cached) " >&6 |
10504 | else | |
10505 | ac_check_lib_save_LIBS=$LIBS | |
10506 | LIBS="-lebl $LIBS" | |
10507 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
10508 | /* end confdefs.h. */ | |
10509 | ||
10510 | /* Override any GCC internal prototype to avoid an error. | |
10511 | Use char because int might match the return type of a GCC | |
10512 | builtin and then its argument prototype would still apply. */ | |
10513 | #ifdef __cplusplus | |
10514 | extern "C" | |
10515 | #endif | |
10516 | char ebl_get_elfmachine (); | |
10517 | int | |
10518 | main () | |
10519 | { | |
10520 | return ebl_get_elfmachine (); | |
10521 | ; | |
10522 | return 0; | |
10523 | } | |
10524 | _ACEOF | |
10525 | if ac_fn_c_try_link "$LINENO"; then : | |
10526 | ac_cv_lib_ebl_ebl_get_elfmachine=yes | |
10527 | else | |
10528 | ac_cv_lib_ebl_ebl_get_elfmachine=no | |
10529 | fi | |
10530 | rm -f core conftest.err conftest.$ac_objext \ | |
10531 | conftest$ac_exeext conftest.$ac_ext | |
10532 | LIBS=$ac_check_lib_save_LIBS | |
10533 | fi | |
10534 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ebl_ebl_get_elfmachine" >&5 | |
10535 | $as_echo "$ac_cv_lib_ebl_ebl_get_elfmachine" >&6; } | |
c3de29bd | 10536 | if test "x$ac_cv_lib_ebl_ebl_get_elfmachine" = xyes; then : |
c14263d8 FCE |
10537 | ebl_LIBS=-lebl |
10538 | else | |
10539 | ebl_LIBS= | |
10540 | fi | |
10541 | ||
10542 | LIBS="$save_LIBS" | |
10543 | ||
efa6ba96 | 10544 | save_LIBS="$LIBS" |
1ef0423a | 10545 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dwfl_module_getsym in -ldw" >&5 |
0710d850 | 10546 | $as_echo_n "checking for dwfl_module_getsym in -ldw... " >&6; } |
c3de29bd | 10547 | if ${ac_cv_lib_dw_dwfl_module_getsym+:} false; then : |
0710d850 | 10548 | $as_echo_n "(cached) " >&6 |
4645fadb JS |
10549 | else |
10550 | ac_check_lib_save_LIBS=$LIBS | |
c14263d8 | 10551 | LIBS="-ldw -Wl,--start-group -ldw $ebl_LIBS -Wl,--end-group -lelf $LIBS" |
1ef0423a | 10552 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4645fadb JS |
10553 | /* end confdefs.h. */ |
10554 | ||
7fbd9d09 FCE |
10555 | /* Override any GCC internal prototype to avoid an error. |
10556 | Use char because int might match the return type of a GCC | |
10557 | builtin and then its argument prototype would still apply. */ | |
4645fadb JS |
10558 | #ifdef __cplusplus |
10559 | extern "C" | |
10560 | #endif | |
10561 | char dwfl_module_getsym (); | |
10562 | int | |
10563 | main () | |
10564 | { | |
7fbd9d09 | 10565 | return dwfl_module_getsym (); |
4645fadb JS |
10566 | ; |
10567 | return 0; | |
10568 | } | |
10569 | _ACEOF | |
1ef0423a | 10570 | if ac_fn_c_try_link "$LINENO"; then : |
4645fadb JS |
10571 | ac_cv_lib_dw_dwfl_module_getsym=yes |
10572 | else | |
1ef0423a | 10573 | ac_cv_lib_dw_dwfl_module_getsym=no |
4645fadb | 10574 | fi |
1ef0423a FCE |
10575 | rm -f core conftest.err conftest.$ac_objext \ |
10576 | conftest$ac_exeext conftest.$ac_ext | |
4645fadb JS |
10577 | LIBS=$ac_check_lib_save_LIBS |
10578 | fi | |
1ef0423a | 10579 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dw_dwfl_module_getsym" >&5 |
0710d850 | 10580 | $as_echo "$ac_cv_lib_dw_dwfl_module_getsym" >&6; } |
c3de29bd | 10581 | if test "x$ac_cv_lib_dw_dwfl_module_getsym" = xyes; then : |
4645fadb JS |
10582 | cat >>confdefs.h <<_ACEOF |
10583 | #define HAVE_LIBDW 1 | |
10584 | _ACEOF | |
10585 | ||
10586 | LIBS="-ldw $LIBS" | |
10587 | ||
10588 | else | |
10589 | ||
5d4aa1f5 | 10590 | as_fn_error $? "missing elfutils development headers/libraries (install elfutils-devel, libebl-dev, libdw-dev and/or libebl-devel)" "$LINENO" 5 |
4645fadb JS |
10591 | fi |
10592 | ||
2a885a4a MW |
10593 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dwarf_next_unit in -ldw" >&5 |
10594 | $as_echo_n "checking for dwarf_next_unit in -ldw... " >&6; } | |
10595 | if ${ac_cv_lib_dw_dwarf_next_unit+:} false; then : | |
0710d850 | 10596 | $as_echo_n "(cached) " >&6 |
87cb1275 MW |
10597 | else |
10598 | ac_check_lib_save_LIBS=$LIBS | |
c14263d8 | 10599 | LIBS="-ldw -Wl,--start-group -ldw $ebl_LIBS -Wl,--end-group -lelf $LIBS" |
1ef0423a | 10600 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
87cb1275 MW |
10601 | /* end confdefs.h. */ |
10602 | ||
7fbd9d09 FCE |
10603 | /* Override any GCC internal prototype to avoid an error. |
10604 | Use char because int might match the return type of a GCC | |
10605 | builtin and then its argument prototype would still apply. */ | |
87cb1275 MW |
10606 | #ifdef __cplusplus |
10607 | extern "C" | |
10608 | #endif | |
2a885a4a | 10609 | char dwarf_next_unit (); |
87cb1275 MW |
10610 | int |
10611 | main () | |
10612 | { | |
2a885a4a | 10613 | return dwarf_next_unit (); |
87cb1275 MW |
10614 | ; |
10615 | return 0; | |
10616 | } | |
10617 | _ACEOF | |
1ef0423a | 10618 | if ac_fn_c_try_link "$LINENO"; then : |
2a885a4a | 10619 | ac_cv_lib_dw_dwarf_next_unit=yes |
87cb1275 | 10620 | else |
2a885a4a | 10621 | ac_cv_lib_dw_dwarf_next_unit=no |
87cb1275 | 10622 | fi |
1ef0423a FCE |
10623 | rm -f core conftest.err conftest.$ac_objext \ |
10624 | conftest$ac_exeext conftest.$ac_ext | |
87cb1275 MW |
10625 | LIBS=$ac_check_lib_save_LIBS |
10626 | fi | |
2a885a4a MW |
10627 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dw_dwarf_next_unit" >&5 |
10628 | $as_echo "$ac_cv_lib_dw_dwarf_next_unit" >&6; } | |
10629 | if test "x$ac_cv_lib_dw_dwarf_next_unit" = xyes; then : | |
87cb1275 MW |
10630 | cat >>confdefs.h <<_ACEOF |
10631 | #define HAVE_LIBDW 1 | |
10632 | _ACEOF | |
10633 | ||
10634 | LIBS="-ldw $LIBS" | |
10635 | ||
10636 | else | |
10637 | ||
2a885a4a | 10638 | as_fn_error $? "elfutils, libdw too old, need 0.148+" "$LINENO" 5 |
87cb1275 MW |
10639 | fi |
10640 | ||
c14263d8 | 10641 | stap_LIBS="$stap_LIBS -Wl,--start-group -ldw $ebl_LIBS -Wl,--end-group -lelf" |
efa6ba96 PP |
10642 | LIBS="$save_LIBS" |
10643 | else | |
10644 | # We built our own and stap_LDFLAGS points at the install. | |
12c1a007 | 10645 | stap_LIBS="$stap_LIBS -Wl,--start-group -ldw -lebl -Wl,--end-group -lelf" |
efa6ba96 | 10646 | fi |
4645fadb JS |
10647 | fi |
10648 | ||
6b1a0274 | 10649 | |
1ef0423a | 10650 | { $as_echo "$as_me:${as_lineno-$LINENO}: stap will link $stap_LIBS" >&5 |
0710d850 | 10651 | $as_echo "$as_me: stap will link $stap_LIBS" >&6;} |
c3a3c0c9 | 10652 | |
97859b9d JS |
10653 | # staprun has more modest libelf needs |
10654 | if test $build_elfutils = no; then | |
97859b9d JS |
10655 | save_LIBS="$LIBS" |
10656 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_getshdrstrndx in -lelf" >&5 | |
10657 | $as_echo_n "checking for elf_getshdrstrndx in -lelf... " >&6; } | |
10658 | if ${ac_cv_lib_elf_elf_getshdrstrndx+:} false; then : | |
10659 | $as_echo_n "(cached) " >&6 | |
10660 | else | |
10661 | ac_check_lib_save_LIBS=$LIBS | |
10662 | LIBS="-lelf $LIBS" | |
10663 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
10664 | /* end confdefs.h. */ | |
10665 | ||
10666 | /* Override any GCC internal prototype to avoid an error. | |
10667 | Use char because int might match the return type of a GCC | |
10668 | builtin and then its argument prototype would still apply. */ | |
10669 | #ifdef __cplusplus | |
10670 | extern "C" | |
10671 | #endif | |
10672 | char elf_getshdrstrndx (); | |
10673 | int | |
10674 | main () | |
10675 | { | |
10676 | return elf_getshdrstrndx (); | |
10677 | ; | |
10678 | return 0; | |
10679 | } | |
10680 | _ACEOF | |
10681 | if ac_fn_c_try_link "$LINENO"; then : | |
10682 | ac_cv_lib_elf_elf_getshdrstrndx=yes | |
10683 | else | |
10684 | ac_cv_lib_elf_elf_getshdrstrndx=no | |
10685 | fi | |
10686 | rm -f core conftest.err conftest.$ac_objext \ | |
10687 | conftest$ac_exeext conftest.$ac_ext | |
10688 | LIBS=$ac_check_lib_save_LIBS | |
10689 | fi | |
10690 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_elf_getshdrstrndx" >&5 | |
10691 | $as_echo "$ac_cv_lib_elf_elf_getshdrstrndx" >&6; } | |
10692 | if test "x$ac_cv_lib_elf_elf_getshdrstrndx" = xyes; then : | |
94eb87d1 DS |
10693 | cat >>confdefs.h <<_ACEOF |
10694 | #define HAVE_LIBELF 1 | |
10695 | _ACEOF | |
97859b9d | 10696 | |
94eb87d1 | 10697 | LIBS="-lelf $LIBS" |
97859b9d | 10698 | |
94eb87d1 | 10699 | else |
97859b9d | 10700 | |
94eb87d1 DS |
10701 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
10702 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
10703 | as_fn_error $? "libelf too old, need 0.142+ | |
10704 | See \`config.log' for more details" "$LINENO" 5; } | |
97859b9d JS |
10705 | fi |
10706 | ||
94eb87d1 | 10707 | staprun_LIBS="$staprun_LIBS -lelf" |
97859b9d JS |
10708 | LIBS="$save_LIBS" |
10709 | else | |
10710 | # We built our own and staprun_LDFLAGS points at the install. | |
10711 | staprun_LIBS="$staprun_LIBS -lelf" | |
10712 | fi | |
10713 | ||
10714 | ||
10715 | { $as_echo "$as_me:${as_lineno-$LINENO}: staprun will link $staprun_LIBS" >&5 | |
10716 | $as_echo "$as_me: staprun will link $staprun_LIBS" >&6;} | |
10717 | ||
cbe7ea07 | 10718 | |
69c68955 FCE |
10719 | date=`date +%Y-%m-%d` |
10720 | ||
10721 | cat >>confdefs.h <<_ACEOF | |
10722 | #define DATE "$date" | |
10723 | _ACEOF | |
10724 | ||
82fab474 | 10725 | DATE="$date" |
69c68955 FCE |
10726 | |
10727 | ||
47f390f9 FCE |
10728 | # Before PR4037, we used to arrange to pass CFLAGS+=-m64 for a staprun |
10729 | # being compiled on 32-bit userspace but running against 64-bit kernels. | |
10730 | # This is no longer necessary. | |
5566993b | 10731 | |
3bf6ac45 | 10732 | # Use tr1/unordered_map if available |
7fbd9d09 | 10733 | ac_ext=cpp |
3bf6ac45 TM |
10734 | ac_cpp='$CXXCPP $CPPFLAGS' |
10735 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
10736 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
10737 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
10738 | ||
62cb4be9 FCE |
10739 | |
10740 | ac_ext=cpp | |
10741 | ac_cpp='$CXXCPP $CPPFLAGS' | |
10742 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
10743 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
10744 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
10745 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 | |
10746 | $as_echo_n "checking how to run the C++ preprocessor... " >&6; } | |
10747 | if test -z "$CXXCPP"; then | |
10748 | if ${ac_cv_prog_CXXCPP+:} false; then : | |
10749 | $as_echo_n "(cached) " >&6 | |
10750 | else | |
10751 | # Double quotes because CXXCPP needs to be expanded | |
10752 | for CXXCPP in "$CXX -E" "/lib/cpp" | |
10753 | do | |
10754 | ac_preproc_ok=false | |
10755 | for ac_cxx_preproc_warn_flag in '' yes | |
10756 | do | |
10757 | # Use a header file that comes with gcc, so configuring glibc | |
10758 | # with a fresh cross-compiler works. | |
10759 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
10760 | # <limits.h> exists even on freestanding compilers. | |
10761 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
10762 | # not just through cpp. "Syntax error" is here to catch this case. | |
10763 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
10764 | /* end confdefs.h. */ | |
10765 | #ifdef __STDC__ | |
10766 | # include <limits.h> | |
10767 | #else | |
10768 | # include <assert.h> | |
10769 | #endif | |
10770 | Syntax error | |
10771 | _ACEOF | |
10772 | if ac_fn_cxx_try_cpp "$LINENO"; then : | |
10773 | ||
10774 | else | |
10775 | # Broken: fails on valid input. | |
10776 | continue | |
10777 | fi | |
10778 | rm -f conftest.err conftest.i conftest.$ac_ext | |
10779 | ||
10780 | # OK, works on sane cases. Now check whether nonexistent headers | |
10781 | # can be detected and how. | |
10782 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
10783 | /* end confdefs.h. */ | |
10784 | #include <ac_nonexistent.h> | |
10785 | _ACEOF | |
10786 | if ac_fn_cxx_try_cpp "$LINENO"; then : | |
10787 | # Broken: success on invalid input. | |
10788 | continue | |
10789 | else | |
10790 | # Passes both tests. | |
10791 | ac_preproc_ok=: | |
10792 | break | |
10793 | fi | |
10794 | rm -f conftest.err conftest.i conftest.$ac_ext | |
10795 | ||
10796 | done | |
10797 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
10798 | rm -f conftest.i conftest.err conftest.$ac_ext | |
10799 | if $ac_preproc_ok; then : | |
10800 | break | |
10801 | fi | |
10802 | ||
10803 | done | |
10804 | ac_cv_prog_CXXCPP=$CXXCPP | |
10805 | ||
10806 | fi | |
10807 | CXXCPP=$ac_cv_prog_CXXCPP | |
10808 | else | |
10809 | ac_cv_prog_CXXCPP=$CXXCPP | |
10810 | fi | |
10811 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 | |
10812 | $as_echo "$CXXCPP" >&6; } | |
10813 | ac_preproc_ok=false | |
10814 | for ac_cxx_preproc_warn_flag in '' yes | |
10815 | do | |
10816 | # Use a header file that comes with gcc, so configuring glibc | |
10817 | # with a fresh cross-compiler works. | |
10818 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
10819 | # <limits.h> exists even on freestanding compilers. | |
10820 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
10821 | # not just through cpp. "Syntax error" is here to catch this case. | |
10822 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
10823 | /* end confdefs.h. */ | |
10824 | #ifdef __STDC__ | |
10825 | # include <limits.h> | |
10826 | #else | |
10827 | # include <assert.h> | |
10828 | #endif | |
10829 | Syntax error | |
10830 | _ACEOF | |
10831 | if ac_fn_cxx_try_cpp "$LINENO"; then : | |
10832 | ||
10833 | else | |
10834 | # Broken: fails on valid input. | |
10835 | continue | |
10836 | fi | |
10837 | rm -f conftest.err conftest.i conftest.$ac_ext | |
10838 | ||
10839 | # OK, works on sane cases. Now check whether nonexistent headers | |
10840 | # can be detected and how. | |
10841 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
10842 | /* end confdefs.h. */ | |
10843 | #include <ac_nonexistent.h> | |
10844 | _ACEOF | |
10845 | if ac_fn_cxx_try_cpp "$LINENO"; then : | |
10846 | # Broken: success on invalid input. | |
10847 | continue | |
10848 | else | |
10849 | # Passes both tests. | |
10850 | ac_preproc_ok=: | |
10851 | break | |
10852 | fi | |
10853 | rm -f conftest.err conftest.i conftest.$ac_ext | |
10854 | ||
10855 | done | |
10856 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
10857 | rm -f conftest.i conftest.err conftest.$ac_ext | |
10858 | if $ac_preproc_ok; then : | |
10859 | ||
10860 | else | |
10861 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
10862 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
10863 | as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check | |
10864 | See \`config.log' for more details" "$LINENO" 5; } | |
10865 | fi | |
10866 | ||
10867 | ac_ext=cpp | |
10868 | ac_cpp='$CXXCPP $CPPFLAGS' | |
10869 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
10870 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
10871 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
10872 | ||
10873 | ||
3bf6ac45 | 10874 | for ac_header in tr1/unordered_map |
1ef0423a FCE |
10875 | do : |
10876 | ac_fn_cxx_check_header_mongrel "$LINENO" "tr1/unordered_map" "ac_cv_header_tr1_unordered_map" "$ac_includes_default" | |
c3de29bd | 10877 | if test "x$ac_cv_header_tr1_unordered_map" = xyes; then : |
1ef0423a FCE |
10878 | cat >>confdefs.h <<_ACEOF |
10879 | #define HAVE_TR1_UNORDERED_MAP 1 | |
5e5aee9f | 10880 | _ACEOF |
5e5aee9f | 10881 | |
5e5aee9f FCE |
10882 | fi |
10883 | ||
1ef0423a | 10884 | done |
5e5aee9f | 10885 | |
1ef0423a FCE |
10886 | for ac_header in tr1/memory |
10887 | do : | |
10888 | ac_fn_cxx_check_header_mongrel "$LINENO" "tr1/memory" "ac_cv_header_tr1_memory" "$ac_includes_default" | |
c3de29bd | 10889 | if test "x$ac_cv_header_tr1_memory" = xyes; then : |
1ef0423a FCE |
10890 | cat >>confdefs.h <<_ACEOF |
10891 | #define HAVE_TR1_MEMORY 1 | |
5e5aee9f | 10892 | _ACEOF |
5e5aee9f | 10893 | |
5e5aee9f FCE |
10894 | fi |
10895 | ||
1ef0423a | 10896 | done |
5e5aee9f | 10897 | |
1ef0423a FCE |
10898 | for ac_header in boost/shared_ptr.hpp |
10899 | do : | |
10900 | ac_fn_cxx_check_header_mongrel "$LINENO" "boost/shared_ptr.hpp" "ac_cv_header_boost_shared_ptr_hpp" "$ac_includes_default" | |
c3de29bd | 10901 | if test "x$ac_cv_header_boost_shared_ptr_hpp" = xyes; then : |
469c1a1b | 10902 | cat >>confdefs.h <<_ACEOF |
1ef0423a | 10903 | #define HAVE_BOOST_SHARED_PTR_HPP 1 |
469c1a1b FCE |
10904 | _ACEOF |
10905 | ||
10906 | fi | |
10907 | ||
10908 | done | |
10909 | ||
1ef0423a FCE |
10910 | ac_ext=c |
10911 | ac_cpp='$CPP $CPPFLAGS' | |
10912 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
10913 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
10914 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3bf6ac45 TM |
10915 | |
10916 | ||
e016a49a | 10917 | |
138bbe90 | 10918 | # Check for Dyninst headers and libraries |
138bbe90 JS |
10919 | |
10920 | # Check whether --with-dyninst was given. | |
10921 | if test "${with_dyninst+set}" = set; then : | |
10922 | withval=$with_dyninst; | |
eab44db5 FCE |
10923 | fi |
10924 | ||
10925 | ||
138bbe90 | 10926 | case "$with_dyninst" in |
eab44db5 FCE |
10927 | no) ;; |
10928 | ''|yes) # Try a simple-minded distro search | |
ffbe6348 JS |
10929 | DYNINST_CXXFLAGS="-I/usr/include/dyninst" |
10930 | DYNINST_LDFLAGS="-L/usr/lib64/dyninst -L/usr/lib/dyninst" # XXX both lib paths!?! | |
10931 | ;; | |
10932 | *) # Use paths in the user-specified prefix | |
10933 | DYNINST_CXXFLAGS="-I$with_dyninst/include" | |
3aeea85c | 10934 | DYNINST_LDFLAGS="-L$with_dyninst/lib/" # XXX need lib64 too? |
ffbe6348 JS |
10935 | ;; |
10936 | esac | |
e0a17c00 | 10937 | if test "$with_dyninst" != "no"; then |
ffbe6348 | 10938 | ac_ext=cpp |
138bbe90 JS |
10939 | ac_cpp='$CXXCPP $CPPFLAGS' |
10940 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
10941 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
10942 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
10943 | ||
ffbe6348 JS |
10944 | old_CPPFLAGS="$CPPFLAGS" |
10945 | CPPFLAGS="$CPPFLAGS $DYNINST_CXXFLAGS" | |
2494675c DS |
10946 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dyninst support" >&5 |
10947 | $as_echo "$as_me: checking dyninst support" >&6;} | |
ffbe6348 | 10948 | for ac_header in BPatch_object.h |
138bbe90 JS |
10949 | do : |
10950 | ac_fn_cxx_check_header_mongrel "$LINENO" "BPatch_object.h" "ac_cv_header_BPatch_object_h" "$ac_includes_default" | |
10951 | if test "x$ac_cv_header_BPatch_object_h" = xyes; then : | |
10952 | cat >>confdefs.h <<_ACEOF | |
10953 | #define HAVE_BPATCH_OBJECT_H 1 | |
10954 | _ACEOF | |
10955 | ||
138bbe90 JS |
10956 | |
10957 | ||
a3524565 JS |
10958 | |
10959 | $as_echo "#define HAVE_DYNINST 1" >>confdefs.h | |
10960 | ||
ffbe6348 | 10961 | have_dyninst=yes |
2494675c DS |
10962 | { $as_echo "$as_me:${as_lineno-$LINENO}: dyninst support available" >&5 |
10963 | $as_echo "$as_me: dyninst support available" >&6;} | |
138bbe90 JS |
10964 | fi |
10965 | ||
10966 | done | |
10967 | ||
e0a17c00 | 10968 | if test -n "$with_dyninst" -a "$have_dyninst" != "yes"; then |
2494675c DS |
10969 | as_fn_error $? "Dyninst does not appear to be usable" "$LINENO" 5 |
10970 | fi | |
ffbe6348 JS |
10971 | CPPFLAGS="$old_CPPFLAGS" |
10972 | ac_ext=c | |
138bbe90 JS |
10973 | ac_cpp='$CPP $CPPFLAGS' |
10974 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
10975 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
10976 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
10977 | ||
ffbe6348 | 10978 | fi |
138bbe90 JS |
10979 | if test "${have_dyninst}" = "yes"; then |
10980 | HAVE_DYNINST_TRUE= | |
10981 | HAVE_DYNINST_FALSE='#' | |
10982 | else | |
10983 | HAVE_DYNINST_TRUE='#' | |
10984 | HAVE_DYNINST_FALSE= | |
10985 | fi | |
10986 | ||
10987 | ||
10988 | ||
42f767d0 | 10989 | |
b0c670f4 FCE |
10990 | # Check whether --enable-virt was given. |
10991 | if test "${enable_virt+set}" = set; then : | |
10992 | enableval=$enable_virt; enable_virt=$enableval | |
10993 | else | |
10994 | enable_virt="check" | |
10995 | fi | |
10996 | ||
10997 | ||
10998 | ||
42f767d0 JL |
10999 | pkg_failed=no |
11000 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libvirt" >&5 | |
11001 | $as_echo_n "checking for libvirt... " >&6; } | |
11002 | ||
11003 | if test -n "$libvirt_CFLAGS"; then | |
11004 | pkg_cv_libvirt_CFLAGS="$libvirt_CFLAGS" | |
11005 | elif test -n "$PKG_CONFIG"; then | |
11006 | if test -n "$PKG_CONFIG" && \ | |
11007 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libvirt >= 1.0.2\""; } >&5 | |
11008 | ($PKG_CONFIG --exists --print-errors "libvirt >= 1.0.2") 2>&5 | |
11009 | ac_status=$? | |
11010 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
11011 | test $ac_status = 0; }; then | |
11012 | pkg_cv_libvirt_CFLAGS=`$PKG_CONFIG --cflags "libvirt >= 1.0.2" 2>/dev/null` | |
11013 | test "x$?" != "x0" && pkg_failed=yes | |
11014 | else | |
11015 | pkg_failed=yes | |
11016 | fi | |
11017 | else | |
11018 | pkg_failed=untried | |
11019 | fi | |
11020 | if test -n "$libvirt_LIBS"; then | |
11021 | pkg_cv_libvirt_LIBS="$libvirt_LIBS" | |
11022 | elif test -n "$PKG_CONFIG"; then | |
11023 | if test -n "$PKG_CONFIG" && \ | |
11024 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libvirt >= 1.0.2\""; } >&5 | |
11025 | ($PKG_CONFIG --exists --print-errors "libvirt >= 1.0.2") 2>&5 | |
11026 | ac_status=$? | |
11027 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
11028 | test $ac_status = 0; }; then | |
11029 | pkg_cv_libvirt_LIBS=`$PKG_CONFIG --libs "libvirt >= 1.0.2" 2>/dev/null` | |
11030 | test "x$?" != "x0" && pkg_failed=yes | |
11031 | else | |
11032 | pkg_failed=yes | |
11033 | fi | |
11034 | else | |
11035 | pkg_failed=untried | |
11036 | fi | |
11037 | ||
11038 | ||
11039 | ||
11040 | if test $pkg_failed = yes; then | |
11041 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
11042 | $as_echo "no" >&6; } | |
11043 | ||
11044 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
11045 | _pkg_short_errors_supported=yes | |
11046 | else | |
11047 | _pkg_short_errors_supported=no | |
11048 | fi | |
11049 | if test $_pkg_short_errors_supported = yes; then | |
11050 | libvirt_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libvirt >= 1.0.2" 2>&1` | |
11051 | else | |
11052 | libvirt_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libvirt >= 1.0.2" 2>&1` | |
11053 | fi | |
11054 | # Put the nasty error message in config.log where it belongs | |
11055 | echo "$libvirt_PKG_ERRORS" >&5 | |
11056 | ||
11057 | have_libvirt=no | |
11058 | elif test $pkg_failed = untried; then | |
11059 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
11060 | $as_echo "no" >&6; } | |
11061 | have_libvirt=no | |
11062 | else | |
11063 | libvirt_CFLAGS=$pkg_cv_libvirt_CFLAGS | |
11064 | libvirt_LIBS=$pkg_cv_libvirt_LIBS | |
11065 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
11066 | $as_echo "yes" >&6; } | |
11067 | ||
11068 | have_libvirt=yes | |
11069 | ||
11070 | $as_echo "#define HAVE_LIBVIRT 1" >>confdefs.h | |
11071 | ||
11072 | ||
11073 | fi | |
11074 | if test "${have_libvirt}" = "yes"; then | |
11075 | HAVE_LIBVIRT_TRUE= | |
11076 | HAVE_LIBVIRT_FALSE='#' | |
11077 | else | |
11078 | HAVE_LIBVIRT_TRUE='#' | |
11079 | HAVE_LIBVIRT_FALSE= | |
11080 | fi | |
11081 | ||
11082 | ||
11083 | pkg_failed=no | |
11084 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml2" >&5 | |
11085 | $as_echo_n "checking for libxml2... " >&6; } | |
11086 | ||
11087 | if test -n "$libxml2_CFLAGS"; then | |
11088 | pkg_cv_libxml2_CFLAGS="$libxml2_CFLAGS" | |
11089 | elif test -n "$PKG_CONFIG"; then | |
11090 | if test -n "$PKG_CONFIG" && \ | |
11091 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0\""; } >&5 | |
11092 | ($PKG_CONFIG --exists --print-errors "libxml-2.0") 2>&5 | |
11093 | ac_status=$? | |
11094 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
11095 | test $ac_status = 0; }; then | |
11096 | pkg_cv_libxml2_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0" 2>/dev/null` | |
11097 | test "x$?" != "x0" && pkg_failed=yes | |
11098 | else | |
11099 | pkg_failed=yes | |
11100 | fi | |
11101 | else | |
11102 | pkg_failed=untried | |
11103 | fi | |
11104 | if test -n "$libxml2_LIBS"; then | |
11105 | pkg_cv_libxml2_LIBS="$libxml2_LIBS" | |
11106 | elif test -n "$PKG_CONFIG"; then | |
11107 | if test -n "$PKG_CONFIG" && \ | |
11108 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0\""; } >&5 | |
11109 | ($PKG_CONFIG --exists --print-errors "libxml-2.0") 2>&5 | |
11110 | ac_status=$? | |
11111 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
11112 | test $ac_status = 0; }; then | |
11113 | pkg_cv_libxml2_LIBS=`$PKG_CONFIG --libs "libxml-2.0" 2>/dev/null` | |
11114 | test "x$?" != "x0" && pkg_failed=yes | |
11115 | else | |
11116 | pkg_failed=yes | |
11117 | fi | |
11118 | else | |
11119 | pkg_failed=untried | |
11120 | fi | |
11121 | ||
11122 | ||
11123 | ||
11124 | if test $pkg_failed = yes; then | |
11125 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
11126 | $as_echo "no" >&6; } | |
11127 | ||
11128 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
11129 | _pkg_short_errors_supported=yes | |
11130 | else | |
11131 | _pkg_short_errors_supported=no | |
11132 | fi | |
11133 | if test $_pkg_short_errors_supported = yes; then | |
11134 | libxml2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libxml-2.0" 2>&1` | |
11135 | else | |
11136 | libxml2_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libxml-2.0" 2>&1` | |
11137 | fi | |
11138 | # Put the nasty error message in config.log where it belongs | |
11139 | echo "$libxml2_PKG_ERRORS" >&5 | |
11140 | ||
11141 | have_libxml2=no | |
11142 | elif test $pkg_failed = untried; then | |
11143 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
11144 | $as_echo "no" >&6; } | |
11145 | have_libxml2=no | |
11146 | else | |
11147 | libxml2_CFLAGS=$pkg_cv_libxml2_CFLAGS | |
11148 | libxml2_LIBS=$pkg_cv_libxml2_LIBS | |
11149 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
11150 | $as_echo "yes" >&6; } | |
11151 | ||
11152 | have_libxml2=yes | |
11153 | ||
11154 | $as_echo "#define HAVE_LIBXML2 1" >>confdefs.h | |
11155 | ||
11156 | ||
11157 | fi | |
11158 | if test "${have_libxml2}" = "yes"; then | |
11159 | HAVE_LIBXML2_TRUE= | |
11160 | HAVE_LIBXML2_FALSE='#' | |
11161 | else | |
11162 | HAVE_LIBXML2_TRUE='#' | |
11163 | HAVE_LIBXML2_FALSE= | |
11164 | fi | |
11165 | ||
11166 | ||
b0c670f4 FCE |
11167 | if test "$enable_virt" != "no"; then |
11168 | if test "x${have_libvirt}" != "xyes"; then | |
11169 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: will not build systemtap virt support, cannot find libvirt headers" >&5 | |
11170 | $as_echo "$as_me: WARNING: will not build systemtap virt support, cannot find libvirt headers" >&2;} | |
11171 | fi | |
11172 | if test "x${have_libxml2}" != "xyes"; then | |
11173 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: will not build systemtap virt support, cannot find xml2 headers" >&5 | |
11174 | $as_echo "$as_me: WARNING: will not build systemtap virt support, cannot find xml2 headers" >&2;} | |
11175 | fi | |
11176 | fi | |
11177 | if test "${have_libvirt}" == "yes" -a "${have_libxml2}" == "yes" -a "$enable_virt" != "no"; then | |
11178 | BUILD_VIRT_TRUE= | |
11179 | BUILD_VIRT_FALSE='#' | |
11180 | else | |
11181 | BUILD_VIRT_TRUE='#' | |
11182 | BUILD_VIRT_FALSE= | |
11183 | fi | |
11184 | ||
11185 | ||
11186 | ||
f9794ee4 RM |
11187 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for assembler .section \"?\" flags support" >&5 |
11188 | $as_echo_n "checking for assembler .section \"?\" flags support... " >&6; } | |
c3de29bd | 11189 | if ${stap_cv_sectionq+:} false; then : |
f9794ee4 RM |
11190 | $as_echo_n "(cached) " >&6 |
11191 | else | |
11192 | ||
11193 | old_CFLAGS="$CFLAGS" | |
11194 | CFLAGS="$CFLAGS -Wa,--fatal-warnings" | |
11195 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11196 | /* end confdefs.h. */ | |
11197 | asm(".section .note.foo,\"?\",\"note\"\n" | |
11198 | ".byte 1, 2, 3\n" | |
11199 | ".previous\n" | |
11200 | ".section .text,\"axG\",\"progbits\",foogroup,comdat\n" | |
11201 | ".byte 1\n" | |
11202 | ".pushsection .note.foo,\"?\",\"note\"\n" | |
11203 | ".byte 4, 5, 6\n" | |
11204 | ".popsection\n" | |
11205 | ".byte 2\n"); | |
11206 | _ACEOF | |
11207 | if ac_fn_c_try_compile "$LINENO"; then : | |
11208 | stap_cv_sectionq=yes | |
11209 | else | |
11210 | stap_cv_sectionq=no | |
11211 | fi | |
11212 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
a530cfe0 | 11213 | CFLAGS="$old_CFLAGS" |
f9794ee4 RM |
11214 | fi |
11215 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $stap_cv_sectionq" >&5 | |
11216 | $as_echo "$stap_cv_sectionq" >&6; } | |
11217 | ||
11218 | support_section_question=0 | |
11219 | if test $stap_cv_sectionq = yes; then | |
11220 | support_section_question=1 | |
11221 | fi | |
8f223b3e | 11222 | ac_config_files="$ac_config_files includes/sys/sdt-config.h po/Makefile.in" |
f9794ee4 RM |
11223 | |
11224 | ||
efa6ba96 | 11225 | if test $build_elfutils = yes -a $enable_translator = yes; then |
d2bd25ac | 11226 | here=`pwd` |
e016a49a FCE |
11227 | case "$with_elfutils" in |
11228 | /*) elfutils_srcdir="$with_elfutils" ;; | |
d2bd25ac | 11229 | *) elfutils_srcdir="${here}/$with_elfutils" ;; |
e016a49a | 11230 | esac |
d2bd25ac MW |
11231 | |
11232 | if ! test -f ${elfutils_srcdir}/configure; then | |
11233 | as_fn_error $? "No ${elfutils_srcdir}/configure, forgot to run autoreconf -i?" "$LINENO" 5 | |
11234 | fi | |
1ef0423a | 11235 | { $as_echo "$as_me:${as_lineno-$LINENO}: running ${elfutils_srcdir}/configure" >&5 |
0710d850 | 11236 | $as_echo "$as_me: running ${elfutils_srcdir}/configure" >&6;} |
29b694a7 DS |
11237 | |
11238 | save_CFLAGS="$CFLAGS" | |
11239 | save_CXXFLAGS="$CXXFLAGS" | |
11240 | CXXFLAGS="$CXXFLAGS -fgnu89-inline" | |
11241 | CFLAGS="$CFLAGS -fgnu89-inline" | |
11242 | gnu89_inline_flag="" | |
1ef0423a FCE |
11243 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
11244 | /* end confdefs.h. */ | |
29b694a7 DS |
11245 | int something (); |
11246 | _ACEOF | |
1ef0423a | 11247 | if ac_fn_c_try_compile "$LINENO"; then : |
29b694a7 | 11248 | |
1ef0423a | 11249 | { $as_echo "$as_me:${as_lineno-$LINENO}: Compiling elfutils with gcc -fgnu89-inline" >&5 |
0710d850 | 11250 | $as_echo "$as_me: Compiling elfutils with gcc -fgnu89-inline" >&6;} |
29b694a7 DS |
11251 | gnu89_inline_flag="-fgnu89-inline" |
11252 | else | |
5e5aee9f | 11253 | |
1ef0423a | 11254 | { $as_echo "$as_me:${as_lineno-$LINENO}: Compiler does not support -fgnu89-inline" >&5 |
0710d850 | 11255 | $as_echo "$as_me: Compiler does not support -fgnu89-inline" >&6;} |
29b694a7 | 11256 | fi |
29b694a7 DS |
11257 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
11258 | CFLAGS="$save_CFLAGS" | |
11259 | CXXFLAGS="$save_CXXFLAGS" | |
11260 | ||
e016a49a FCE |
11261 | # Our libdw.so's libebl will look in $ORIGIN/../lib/... but that |
11262 | # $ORIGIN is where libdw.so resides, which is not where there is a ../lib. | |
11263 | # Note that $libdir might be using a quoted use of $exec_prefix or $prefix. | |
11264 | # So we must make sure to pass those settings to elfutils configure. | |
11265 | elfutils_rpath="-Wl,--enable-new-dtags,-rpath,${libdir}/${PACKAGE_NAME}" | |
33ee059c MW |
11266 | # Check whether this is a source release, or a source checkout. |
11267 | # We need --enable-maintainer-mode if it isn't a source release. | |
11268 | # elfutils.spec is only distributed in source releases. | |
11269 | if test -f ${elfutils_srcdir}/elfutils.spec; then | |
11270 | need_maintainer_option="" | |
11271 | else | |
11272 | need_maintainer_option="--enable-maintainer-mode" | |
11273 | fi | |
e016a49a | 11274 | (mkdir -p build-elfutils && cd build-elfutils && |
412e1bf7 | 11275 | bash ${elfutils_srcdir}/configure --enable-libebl-subdir=${PACKAGE_NAME} \ |
e016a49a FCE |
11276 | --includedir="${here}/include-elfutils" \ |
11277 | --libdir="${here}/lib-elfutils" \ | |
11278 | --exec-prefix="$exec_prefix" \ | |
11279 | --prefix="$prefix" \ | |
90491495 | 11280 | --enable-dwz \ |
33ee059c | 11281 | ${need_maintainer_option} \ |
c2444a96 | 11282 | CFLAGS="${CFLAGS/-Wall/} $gnu89_inline_flag -fexceptions" \ |
e016a49a | 11283 | LDFLAGS="$LDFLAGS $elfutils_rpath" && |
e3633556 | 11284 | if test -f ${elfutils_srcdir}/config/version.h.in; then |
e050d62f MW |
11285 | echo Found elfutils/version.h header... |
11286 | else | |
11287 | echo elfutils/version.h header not found, need elfutils 0.142+... | |
11288 | exit -1 | |
e3633556 | 11289 | fi |
e016a49a | 11290 | ) |
e050d62f | 11291 | if test $? != 0; then exit -1; fi |
1c4cf93d | 11292 | fi |
e016a49a | 11293 | |
51030d84 JS |
11294 | |
11295 | # Check whether --with-selinux was given. | |
11296 | if test "${with_selinux+set}" = set; then : | |
11297 | withval=$with_selinux; | |
11298 | fi | |
11299 | ||
11300 | ||
11301 | if test "x$with_selinux" != "xno"; then : | |
11302 | ||
11303 | ||
11304 | pkg_failed=no | |
11305 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for selinux" >&5 | |
11306 | $as_echo_n "checking for selinux... " >&6; } | |
11307 | ||
11308 | if test -n "$selinux_CFLAGS"; then | |
11309 | pkg_cv_selinux_CFLAGS="$selinux_CFLAGS" | |
11310 | elif test -n "$PKG_CONFIG"; then | |
11311 | if test -n "$PKG_CONFIG" && \ | |
11312 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libselinux\""; } >&5 | |
11313 | ($PKG_CONFIG --exists --print-errors "libselinux") 2>&5 | |
11314 | ac_status=$? | |
11315 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
11316 | test $ac_status = 0; }; then | |
11317 | pkg_cv_selinux_CFLAGS=`$PKG_CONFIG --cflags "libselinux" 2>/dev/null` | |
8eef2738 | 11318 | test "x$?" != "x0" && pkg_failed=yes |
51030d84 JS |
11319 | else |
11320 | pkg_failed=yes | |
11321 | fi | |
11322 | else | |
11323 | pkg_failed=untried | |
11324 | fi | |
11325 | if test -n "$selinux_LIBS"; then | |
11326 | pkg_cv_selinux_LIBS="$selinux_LIBS" | |
11327 | elif test -n "$PKG_CONFIG"; then | |
11328 | if test -n "$PKG_CONFIG" && \ | |
11329 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libselinux\""; } >&5 | |
11330 | ($PKG_CONFIG --exists --print-errors "libselinux") 2>&5 | |
11331 | ac_status=$? | |
11332 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
11333 | test $ac_status = 0; }; then | |
11334 | pkg_cv_selinux_LIBS=`$PKG_CONFIG --libs "libselinux" 2>/dev/null` | |
8eef2738 | 11335 | test "x$?" != "x0" && pkg_failed=yes |
51030d84 JS |
11336 | else |
11337 | pkg_failed=yes | |
11338 | fi | |
11339 | else | |
11340 | pkg_failed=untried | |
11341 | fi | |
11342 | ||
11343 | ||
11344 | ||
11345 | if test $pkg_failed = yes; then | |
11346 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
11347 | $as_echo "no" >&6; } | |
11348 | ||
11349 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
11350 | _pkg_short_errors_supported=yes | |
11351 | else | |
11352 | _pkg_short_errors_supported=no | |
11353 | fi | |
11354 | if test $_pkg_short_errors_supported = yes; then | |
8eef2738 | 11355 | selinux_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libselinux" 2>&1` |
51030d84 | 11356 | else |
8eef2738 | 11357 | selinux_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libselinux" 2>&1` |
51030d84 JS |
11358 | fi |
11359 | # Put the nasty error message in config.log where it belongs | |
11360 | echo "$selinux_PKG_ERRORS" >&5 | |
11361 | ||
11362 | have_selinux=no | |
11363 | elif test $pkg_failed = untried; then | |
11364 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
11365 | $as_echo "no" >&6; } | |
11366 | have_selinux=no | |
11367 | else | |
11368 | selinux_CFLAGS=$pkg_cv_selinux_CFLAGS | |
11369 | selinux_LIBS=$pkg_cv_selinux_LIBS | |
11370 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
11371 | $as_echo "yes" >&6; } | |
11372 | have_selinux=yes | |
11373 | ||
11374 | $as_echo "#define HAVE_SELINUX 1" >>confdefs.h | |
11375 | ||
11376 | ||
11377 | fi | |
11378 | ||
11379 | else | |
11380 | have_selinux=no | |
11381 | fi | |
11382 | ||
11383 | if test "${have_selinux}" = "yes"; then | |
11384 | HAVE_SELINUX_TRUE= | |
11385 | HAVE_SELINUX_FALSE='#' | |
11386 | else | |
11387 | HAVE_SELINUX_TRUE='#' | |
11388 | HAVE_SELINUX_FALSE= | |
11389 | fi | |
11390 | ||
11391 | ||
e9b0aba1 SM |
11392 | # Extract the first word of "javac", so it can be a program name with args. |
11393 | set dummy javac; ac_word=$2 | |
13c19b49 LB |
11394 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11395 | $as_echo_n "checking for $ac_word... " >&6; } | |
e9b0aba1 | 11396 | if ${ac_cv_prog_have_javac+:} false; then : |
13c19b49 LB |
11397 | $as_echo_n "(cached) " >&6 |
11398 | else | |
e9b0aba1 SM |
11399 | if test -n "$have_javac"; then |
11400 | ac_cv_prog_have_javac="$have_javac" # Let the user override the test. | |
13c19b49 LB |
11401 | else |
11402 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11403 | for as_dir in $PATH | |
11404 | do | |
11405 | IFS=$as_save_IFS | |
11406 | test -z "$as_dir" && as_dir=. | |
11407 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8eef2738 | 11408 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
e9b0aba1 | 11409 | ac_cv_prog_have_javac="yes" |
13c19b49 LB |
11410 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
11411 | break 2 | |
11412 | fi | |
11413 | done | |
11414 | done | |
11415 | IFS=$as_save_IFS | |
11416 | ||
e9b0aba1 | 11417 | test -z "$ac_cv_prog_have_javac" && ac_cv_prog_have_javac="no" |
13c19b49 LB |
11418 | fi |
11419 | fi | |
e9b0aba1 SM |
11420 | have_javac=$ac_cv_prog_have_javac |
11421 | if test -n "$have_javac"; then | |
11422 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_javac" >&5 | |
11423 | $as_echo "$have_javac" >&6; } | |
13c19b49 LB |
11424 | else |
11425 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
11426 | $as_echo "no" >&6; } | |
11427 | fi | |
11428 | ||
11429 | ||
e9b0aba1 SM |
11430 | # Extract the first word of "jar", so it can be a program name with args. |
11431 | set dummy jar; ac_word=$2 | |
13c19b49 LB |
11432 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11433 | $as_echo_n "checking for $ac_word... " >&6; } | |
e9b0aba1 | 11434 | if ${ac_cv_prog_have_jar+:} false; then : |
13c19b49 LB |
11435 | $as_echo_n "(cached) " >&6 |
11436 | else | |
e9b0aba1 SM |
11437 | if test -n "$have_jar"; then |
11438 | ac_cv_prog_have_jar="$have_jar" # Let the user override the test. | |
13c19b49 LB |
11439 | else |
11440 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11441 | for as_dir in $PATH | |
11442 | do | |
11443 | IFS=$as_save_IFS | |
11444 | test -z "$as_dir" && as_dir=. | |
11445 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8eef2738 | 11446 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
e9b0aba1 | 11447 | ac_cv_prog_have_jar="yes" |
13c19b49 LB |
11448 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
11449 | break 2 | |
11450 | fi | |
11451 | done | |
11452 | done | |
11453 | IFS=$as_save_IFS | |
2737ec70 | 11454 | |
e9b0aba1 | 11455 | test -z "$ac_cv_prog_have_jar" && ac_cv_prog_have_jar="no" |
13c19b49 LB |
11456 | fi |
11457 | fi | |
e9b0aba1 SM |
11458 | have_jar=$ac_cv_prog_have_jar |
11459 | if test -n "$have_jar"; then | |
11460 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_jar" >&5 | |
11461 | $as_echo "$have_jar" >&6; } | |
13c19b49 LB |
11462 | else |
11463 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
11464 | $as_echo "no" >&6; } | |
11465 | fi | |
11466 | ||
11467 | ||
e9b0aba1 SM |
11468 | if test "$have_javac" != no -a "$have_jar" != no; then |
11469 | echo java found, will try to configure Byteman support | |
9ac164fa FCE |
11470 | |
11471 | ||
26703c63 SM |
11472 | # Check whether --with-java was given. |
11473 | if test "${with_java+set}" = set; then : | |
11474 | withval=$with_java; | |
9ac164fa | 11475 | else |
26703c63 | 11476 | with_java=/usr/lib/jvm/java |
9ac164fa FCE |
11477 | fi |
11478 | ||
a71e842d | 11479 | if test ! -d "$with_java"; then |
ef50e368 | 11480 | with_java=no |
9ac164fa | 11481 | fi |
26703c63 | 11482 | JAVADIR="${with_java}" |
9ac164fa FCE |
11483 | # always needed to compile |
11484 | ||
26703c63 | 11485 | if test "$with_java" != "no"; then |
2737ec70 LB |
11486 | |
11487 | cat >>confdefs.h <<_ACEOF | |
26703c63 | 11488 | #define HAVE_JAVA "1" |
2737ec70 LB |
11489 | _ACEOF |
11490 | ||
9ac164fa FCE |
11491 | fi |
11492 | ||
26703c63 SM |
11493 | if test "$with_java" != "no"; then |
11494 | HAVE_JAVA_TRUE= | |
11495 | HAVE_JAVA_FALSE='#' | |
9ac164fa | 11496 | else |
26703c63 SM |
11497 | HAVE_JAVA_TRUE='#' |
11498 | HAVE_JAVA_FALSE= | |
9ac164fa FCE |
11499 | fi |
11500 | ||
11501 | ||
11502 | else | |
11503 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: will not run per-method java probing, missing byteman or java requirements" >&5 | |
11504 | $as_echo "$as_me: WARNING: will not run per-method java probing, missing byteman or java requirements" >&2;} | |
11505 | if false; then | |
26703c63 SM |
11506 | HAVE_JAVA_TRUE= |
11507 | HAVE_JAVA_FALSE='#' | |
9ac164fa | 11508 | else |
26703c63 SM |
11509 | HAVE_JAVA_TRUE='#' |
11510 | HAVE_JAVA_FALSE= | |
2737ec70 LB |
11511 | fi |
11512 | ||
9ac164fa FCE |
11513 | fi # java+byteman support |
11514 | ||
62c8a962 FCE |
11515 | ENABLE_NLS="$USE_NLS" |
11516 | ||
11517 | localedir="$localedir" | |
802cd104 | 11518 | |
8f223b3e FCE |
11519 | LOCALEDIR="$localedir" |
11520 | ||
11521 | ||
62c8a962 | 11522 | |
85b62eab FCE |
11523 | # Check whether --with-extra-version was given. |
11524 | if test "${with_extra_version+set}" = set; then : | |
11525 | withval=$with_extra_version; | |
11526 | fi | |
11527 | ||
11528 | if test "x$with_extra_version" != "xno"; then : | |
11529 | ||
11530 | stap_extra_version="$with_extra_version" | |
11531 | { $as_echo "$as_me:${as_lineno-$LINENO}: Adding extra version $stap_extra_version" >&5 | |
11532 | $as_echo "$as_me: Adding extra version $stap_extra_version" >&6;} | |
11533 | else | |
11534 | ||
11535 | stap_extra_version="" | |
11536 | fi | |
11537 | ||
11538 | cat >>confdefs.h <<_ACEOF | |
11539 | #define STAP_EXTRA_VERSION "$stap_extra_version" | |
11540 | _ACEOF | |
11541 | ||
11542 | STAP_EXTRA_VERSION="$stap_extra_version" | |
11543 | ||
11544 | ||
11545 | ||
2a1c9b5d FCE |
11546 | stap_prefix=$prefix |
11547 | test "$stap_prefix" = NONE && stap_prefix=$ac_default_prefix | |
50431f30 MW |
11548 | |
11549 | cat >>confdefs.h <<_ACEOF | |
2a1c9b5d | 11550 | #define STAP_PREFIX "$stap_prefix" |
50431f30 MW |
11551 | _ACEOF |
11552 | ||
62c8a962 FCE |
11553 | STAP_PREFIX="$stap_prefix" |
11554 | ||
50431f30 | 11555 | |
7fbd9d09 | 11556 | ac_config_headers="$ac_config_headers config.h:config.in" |
daae650d | 11557 | |
b5c84307 | 11558 | ac_config_files="$ac_config_files Makefile doc/Makefile man/Makefile doc/beginners/Makefile doc/SystemTap_Tapset_Reference/Makefile man/stappaths.7 man/systemtap.8 initscript/config.systemtap initscript/config.stap-server initscript/systemtap initscript/stap-server initscript/99stap/module-setup.sh" |
8d9d8fe1 | 11559 | |
0710d850 DS |
11560 | |
11561 | ||
97859b9d | 11562 | subdirs="$subdirs testsuite" |
5ba96b90 | 11563 | |
6d14a4a9 EB |
11564 | if test $enable_translator == "yes"; then |
11565 | ac_config_files="$ac_config_files run-stap" | |
2f62657c | 11566 | |
6d14a4a9 | 11567 | fi |
e4aaabda MW |
11568 | ac_config_files="$ac_config_files dtrace" |
11569 | ||
66c3c633 JS |
11570 | ac_config_files="$ac_config_files stapdyn/Makefile" |
11571 | ||
9ac164fa FCE |
11572 | ac_config_files="$ac_config_files java/Makefile" |
11573 | ||
d885563b FCE |
11574 | ac_config_files="$ac_config_files java/stapbm" |
11575 | ||
97859b9d JS |
11576 | ac_config_files="$ac_config_files staprun/Makefile" |
11577 | ||
11578 | ac_config_files="$ac_config_files staprun/run-staprun" | |
11579 | ||
42f767d0 JL |
11580 | ac_config_files="$ac_config_files staprun/guest/stapshd" |
11581 | ||
11582 | ac_config_files="$ac_config_files staprun/guest/stapsh-daemon" | |
11583 | ||
11584 | ac_config_files="$ac_config_files staprun/guest/stapsh@.service" | |
11585 | ||
53ade4da MW |
11586 | |
11587 | # Setup "shadow" directory doc/beginners that has everything setup for | |
11588 | # publican in one directory (through directory links if necessary). | |
11589 | # It would be nice to use AC_CONFIG_LINKS, but automake complains when | |
11590 | # the src is a directory and not a file. | |
11591 | ac_config_files="$ac_config_files doc/beginners/publican.cfg:doc/SystemTap_Beginners_Guide/publican.cfg.in" | |
11592 | ||
11593 | ac_config_commands="$ac_config_commands doc/beginners" | |
11594 | ||
11595 | ||
2f1a1aea FCE |
11596 | cat >confcache <<\_ACEOF |
11597 | # This file is a shell script that caches the results of configure | |
11598 | # tests run on this system so they can be shared between configure | |
11599 | # scripts and configure runs, see configure's option --config-cache. | |
11600 | # It is not useful on other systems. If it contains results you don't | |
11601 | # want to keep, you may remove or edit it. | |
11602 | # | |
11603 | # config.status only pays attention to the cache file if you give it | |
11604 | # the --recheck option to rerun configure. | |
11605 | # | |
11606 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
11607 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
11608 | # following values. | |
11609 | ||
11610 | _ACEOF | |
11611 | ||
11612 | # The following way of writing the cache mishandles newlines in values, | |
11613 | # but we know of no workaround that is simple, portable, and efficient. | |
7fbd9d09 | 11614 | # So, we kill variables containing newlines. |
2f1a1aea FCE |
11615 | # Ultrix sh set writes to stderr and can't be redirected directly, |
11616 | # and sets the high bit in the cache file unless we assign to the vars. | |
7fbd9d09 FCE |
11617 | ( |
11618 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
11619 | eval ac_val=\$$ac_var | |
11620 | case $ac_val in #( | |
11621 | *${as_nl}*) | |
11622 | case $ac_var in #( | |
1ef0423a | 11623 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
0710d850 | 11624 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
7fbd9d09 FCE |
11625 | esac |
11626 | case $ac_var in #( | |
11627 | _ | IFS | as_nl) ;; #( | |
0710d850 | 11628 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
1ef0423a | 11629 | *) { eval $ac_var=; unset $ac_var;} ;; |
7fbd9d09 FCE |
11630 | esac ;; |
11631 | esac | |
11632 | done | |
11633 | ||
2f1a1aea | 11634 | (set) 2>&1 | |
7fbd9d09 FCE |
11635 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
11636 | *${as_nl}ac_space=\ *) | |
1ef0423a FCE |
11637 | # `set' does not quote correctly, so add quotes: double-quote |
11638 | # substitution turns \\\\ into \\, and sed turns \\ into \. | |
2f1a1aea FCE |
11639 | sed -n \ |
11640 | "s/'/'\\\\''/g; | |
11641 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
7fbd9d09 | 11642 | ;; #( |
2f1a1aea FCE |
11643 | *) |
11644 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
7fbd9d09 | 11645 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
2f1a1aea | 11646 | ;; |
7fbd9d09 FCE |
11647 | esac | |
11648 | sort | |
11649 | ) | | |
2f1a1aea | 11650 | sed ' |
7fbd9d09 | 11651 | /^ac_cv_env_/b end |
2f1a1aea | 11652 | t clear |
7fbd9d09 | 11653 | :clear |
2f1a1aea FCE |
11654 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
11655 | t end | |
7fbd9d09 FCE |
11656 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
11657 | :end' >>confcache | |
11658 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
11659 | if test -w "$cache_file"; then | |
c3de29bd | 11660 | if test "x$cache_file" != "x/dev/null"; then |
1ef0423a | 11661 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
0710d850 | 11662 | $as_echo "$as_me: updating cache $cache_file" >&6;} |
c3de29bd LB |
11663 | if test ! -f "$cache_file" || test -h "$cache_file"; then |
11664 | cat confcache >"$cache_file" | |
11665 | else | |
11666 | case $cache_file in #( | |
11667 | */* | ?:*) | |
11668 | mv -f confcache "$cache_file"$$ && | |
11669 | mv -f "$cache_file"$$ "$cache_file" ;; #( | |
11670 | *) | |
11671 | mv -f confcache "$cache_file" ;; | |
11672 | esac | |
11673 | fi | |
11674 | fi | |
2f1a1aea | 11675 | else |
1ef0423a | 11676 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
0710d850 | 11677 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
2f1a1aea FCE |
11678 | fi |
11679 | fi | |
11680 | rm -f confcache | |
11681 | ||
11682 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
11683 | # Let make expand exec_prefix. | |
11684 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
11685 | ||
2f1a1aea FCE |
11686 | DEFS=-DHAVE_CONFIG_H |
11687 | ||
11688 | ac_libobjs= | |
11689 | ac_ltlibobjs= | |
11690 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
11691 | # 1. Remove the extension, and $U if already installed. | |
7fbd9d09 | 11692 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
0710d850 | 11693 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` |
7fbd9d09 FCE |
11694 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
11695 | # will be set to the directory where LIBOBJS objects are built. | |
1ef0423a FCE |
11696 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
11697 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' | |
2f1a1aea FCE |
11698 | done |
11699 | LIBOBJS=$ac_libobjs | |
11700 | ||
11701 | LTLIBOBJS=$ac_ltlibobjs | |
11702 | ||
11703 | ||
8eef2738 LB |
11704 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 |
11705 | $as_echo_n "checking that generated files are newer than configure... " >&6; } | |
11706 | if test -n "$am_sleep_pid"; then | |
11707 | # Hide warnings about reused PIDs. | |
11708 | wait $am_sleep_pid 2>/dev/null | |
11709 | fi | |
11710 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 | |
11711 | $as_echo "done" >&6; } | |
0710d850 DS |
11712 | if test -n "$EXEEXT"; then |
11713 | am__EXEEXT_TRUE= | |
11714 | am__EXEEXT_FALSE='#' | |
11715 | else | |
11716 | am__EXEEXT_TRUE='#' | |
11717 | am__EXEEXT_FALSE= | |
11718 | fi | |
11719 | ||
2f1a1aea | 11720 | if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then |
5d4aa1f5 | 11721 | as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. |
1ef0423a | 11722 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
2f1a1aea FCE |
11723 | fi |
11724 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then | |
5d4aa1f5 | 11725 | as_fn_error $? "conditional \"AMDEP\" was never defined. |
1ef0423a | 11726 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
2f1a1aea FCE |
11727 | fi |
11728 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then | |
5d4aa1f5 | 11729 | as_fn_error $? "conditional \"am__fastdepCC\" was never defined. |
1ef0423a | 11730 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
2f1a1aea | 11731 | fi |
8f223b3e | 11732 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then |
5d4aa1f5 | 11733 | as_fn_error $? "conditional \"am__fastdepCC\" was never defined. |
8f223b3e FCE |
11734 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
11735 | fi | |
2f1a1aea | 11736 | if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then |
5d4aa1f5 | 11737 | as_fn_error $? "conditional \"am__fastdepCXX\" was never defined. |
1ef0423a | 11738 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
2f1a1aea FCE |
11739 | fi |
11740 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then | |
5d4aa1f5 | 11741 | as_fn_error $? "conditional \"am__fastdepCC\" was never defined. |
1ef0423a | 11742 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
2f1a1aea | 11743 | fi |
6d14a4a9 | 11744 | if test -z "${BUILD_TRANSLATOR_TRUE}" && test -z "${BUILD_TRANSLATOR_FALSE}"; then |
5d4aa1f5 | 11745 | as_fn_error $? "conditional \"BUILD_TRANSLATOR\" was never defined. |
1ef0423a | 11746 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
6d14a4a9 | 11747 | fi |
e8f3c2c2 | 11748 | if test -z "${BUILD_CRASHMOD_TRUE}" && test -z "${BUILD_CRASHMOD_FALSE}"; then |
5d4aa1f5 | 11749 | as_fn_error $? "conditional \"BUILD_CRASHMOD\" was never defined. |
1ef0423a | 11750 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
4d9087fc | 11751 | fi |
71aef8fb LB |
11752 | if test -z "${HAVE_XVFB_TRUE}" && test -z "${HAVE_XVFB_FALSE}"; then |
11753 | as_fn_error $? "conditional \"HAVE_XVFB\" was never defined. | |
11754 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
11755 | fi | |
465e8fbf | 11756 | if test -z "${BUILD_DOCS_TRUE}" && test -z "${BUILD_DOCS_FALSE}"; then |
5d4aa1f5 | 11757 | as_fn_error $? "conditional \"BUILD_DOCS\" was never defined. |
1ef0423a | 11758 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
92aff3c7 | 11759 | fi |
53ade4da | 11760 | if test -z "${BUILD_PUBLICAN_TRUE}" && test -z "${BUILD_PUBLICAN_FALSE}"; then |
5d4aa1f5 | 11761 | as_fn_error $? "conditional \"BUILD_PUBLICAN\" was never defined. |
1ef0423a | 11762 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
53ade4da | 11763 | fi |
92aff3c7 | 11764 | if test -z "${BUILD_REFDOCS_TRUE}" && test -z "${BUILD_REFDOCS_FALSE}"; then |
5d4aa1f5 | 11765 | as_fn_error $? "conditional \"BUILD_REFDOCS\" was never defined. |
1ef0423a | 11766 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
468abaf4 | 11767 | fi |
327a760e FCE |
11768 | if test -z "${HAVE_FOP_TRUE}" && test -z "${HAVE_FOP_FALSE}"; then |
11769 | as_fn_error $? "conditional \"HAVE_FOP\" was never defined. | |
11770 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
11771 | fi | |
468abaf4 | 11772 | if test -z "${XMLTO_STRINGPARAM_TRUE}" && test -z "${XMLTO_STRINGPARAM_FALSE}"; then |
5d4aa1f5 | 11773 | as_fn_error $? "conditional \"XMLTO_STRINGPARAM\" was never defined. |
1ef0423a | 11774 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
19a0d4b6 | 11775 | fi |
ccf8bc85 | 11776 | if test -z "${BUILD_PDFREFDOCS_TRUE}" && test -z "${BUILD_PDFREFDOCS_FALSE}"; then |
5d4aa1f5 | 11777 | as_fn_error $? "conditional \"BUILD_PDFREFDOCS\" was never defined. |
1ef0423a | 11778 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
ccf8bc85 | 11779 | fi |
2035bcd4 | 11780 | if test -z "${HAVE_NSS_TRUE}" && test -z "${HAVE_NSS_FALSE}"; then |
5d4aa1f5 | 11781 | as_fn_error $? "conditional \"HAVE_NSS\" was never defined. |
1ef0423a | 11782 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
465e8fbf | 11783 | fi |
a0e2728a | 11784 | if test -z "${BUILD_SERVER_TRUE}" && test -z "${BUILD_SERVER_FALSE}"; then |
5d4aa1f5 | 11785 | as_fn_error $? "conditional \"BUILD_SERVER\" was never defined. |
a0e2728a DB |
11786 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
11787 | fi | |
2dce8c42 | 11788 | if test -z "${HAVE_AVAHI_TRUE}" && test -z "${HAVE_AVAHI_FALSE}"; then |
5d4aa1f5 | 11789 | as_fn_error $? "conditional \"HAVE_AVAHI\" was never defined. |
1ef0423a | 11790 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
2dce8c42 | 11791 | fi |
e8f3c2c2 | 11792 | if test -z "${BUILD_ELFUTILS_TRUE}" && test -z "${BUILD_ELFUTILS_FALSE}"; then |
5d4aa1f5 | 11793 | as_fn_error $? "conditional \"BUILD_ELFUTILS\" was never defined. |
1ef0423a | 11794 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
35a04c8e | 11795 | fi |
138bbe90 JS |
11796 | if test -z "${HAVE_DYNINST_TRUE}" && test -z "${HAVE_DYNINST_FALSE}"; then |
11797 | as_fn_error $? "conditional \"HAVE_DYNINST\" was never defined. | |
11798 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
11799 | fi | |
42f767d0 JL |
11800 | if test -z "${HAVE_LIBVIRT_TRUE}" && test -z "${HAVE_LIBVIRT_FALSE}"; then |
11801 | as_fn_error $? "conditional \"HAVE_LIBVIRT\" was never defined. | |
11802 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
11803 | fi | |
11804 | if test -z "${HAVE_LIBXML2_TRUE}" && test -z "${HAVE_LIBXML2_FALSE}"; then | |
11805 | as_fn_error $? "conditional \"HAVE_LIBXML2\" was never defined. | |
11806 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
11807 | fi | |
b0c670f4 FCE |
11808 | if test -z "${BUILD_VIRT_TRUE}" && test -z "${BUILD_VIRT_FALSE}"; then |
11809 | as_fn_error $? "conditional \"BUILD_VIRT\" was never defined. | |
11810 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
11811 | fi | |
51030d84 JS |
11812 | if test -z "${HAVE_SELINUX_TRUE}" && test -z "${HAVE_SELINUX_FALSE}"; then |
11813 | as_fn_error $? "conditional \"HAVE_SELINUX\" was never defined. | |
11814 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
11815 | fi | |
26703c63 SM |
11816 | if test -z "${HAVE_JAVA_TRUE}" && test -z "${HAVE_JAVA_FALSE}"; then |
11817 | as_fn_error $? "conditional \"HAVE_JAVA\" was never defined. | |
9ac164fa FCE |
11818 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
11819 | fi | |
26703c63 SM |
11820 | if test -z "${HAVE_JAVA_TRUE}" && test -z "${HAVE_JAVA_FALSE}"; then |
11821 | as_fn_error $? "conditional \"HAVE_JAVA\" was never defined. | |
9ac164fa FCE |
11822 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
11823 | fi | |
2f1a1aea | 11824 | |
c3de29bd | 11825 | : "${CONFIG_STATUS=./config.status}" |
0710d850 | 11826 | ac_write_fail=0 |
2f1a1aea FCE |
11827 | ac_clean_files_save=$ac_clean_files |
11828 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
1ef0423a | 11829 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
0710d850 | 11830 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} |
1ef0423a FCE |
11831 | as_write_fail=0 |
11832 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 | |
2f1a1aea FCE |
11833 | #! $SHELL |
11834 | # Generated by $as_me. | |
11835 | # Run this file to recreate the current configuration. | |
11836 | # Compiler output produced by configure, useful for debugging | |
11837 | # configure, is in config.log if it exists. | |
11838 | ||
11839 | debug=false | |
11840 | ac_cs_recheck=false | |
11841 | ac_cs_silent=false | |
5e5aee9f | 11842 | |
1ef0423a FCE |
11843 | SHELL=\${CONFIG_SHELL-$SHELL} |
11844 | export SHELL | |
11845 | _ASEOF | |
11846 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 | |
11847 | ## -------------------- ## | |
11848 | ## M4sh Initialization. ## | |
11849 | ## -------------------- ## | |
2f1a1aea | 11850 | |
7fbd9d09 FCE |
11851 | # Be more Bourne compatible |
11852 | DUALCASE=1; export DUALCASE # for MKS sh | |
1ef0423a | 11853 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : |
2f1a1aea FCE |
11854 | emulate sh |
11855 | NULLCMD=: | |
0710d850 | 11856 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
2f1a1aea FCE |
11857 | # is contrary to our usage. Disable this feature. |
11858 | alias -g '${1+"$@"}'='"$@"' | |
7fbd9d09 | 11859 | setopt NO_GLOB_SUBST |
4a3c19da | 11860 | else |
1ef0423a FCE |
11861 | case `(set -o) 2>/dev/null` in #( |
11862 | *posix*) : | |
11863 | set -o posix ;; #( | |
11864 | *) : | |
11865 | ;; | |
4a3c19da EM |
11866 | esac |
11867 | fi | |
11868 | ||
7fbd9d09 | 11869 | |
0710d850 DS |
11870 | as_nl=' |
11871 | ' | |
11872 | export as_nl | |
11873 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
11874 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
11875 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
11876 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
1ef0423a FCE |
11877 | # Prefer a ksh shell builtin over an external printf program on Solaris, |
11878 | # but without wasting forks for bash or zsh. | |
11879 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
11880 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
11881 | as_echo='print -r --' | |
11882 | as_echo_n='print -rn --' | |
11883 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
0710d850 DS |
11884 | as_echo='printf %s\n' |
11885 | as_echo_n='printf %s' | |
11886 | else | |
11887 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
11888 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
11889 | as_echo_n='/usr/ucb/echo -n' | |
31f9baea | 11890 | else |
0710d850 DS |
11891 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
11892 | as_echo_n_body='eval | |
11893 | arg=$1; | |
1ef0423a | 11894 | case $arg in #( |
0710d850 DS |
11895 | *"$as_nl"*) |
11896 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
11897 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
11898 | esac; | |
11899 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
11900 | ' | |
11901 | export as_echo_n_body | |
11902 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
31f9baea | 11903 | fi |
0710d850 DS |
11904 | export as_echo_body |
11905 | as_echo='sh -c $as_echo_body as_echo' | |
11906 | fi | |
11907 | ||
11908 | # The user is always right. | |
11909 | if test "${PATH_SEPARATOR+set}" != set; then | |
11910 | PATH_SEPARATOR=: | |
11911 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
11912 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
11913 | PATH_SEPARATOR=';' | |
11914 | } | |
7fbd9d09 FCE |
11915 | fi |
11916 | ||
7fbd9d09 FCE |
11917 | |
11918 | # IFS | |
11919 | # We need space, tab and new line, in precisely that order. Quoting is | |
11920 | # there to prevent editors from complaining about space-tab. | |
11921 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
11922 | # splitting by setting IFS to empty value.) | |
7fbd9d09 FCE |
11923 | IFS=" "" $as_nl" |
11924 | ||
11925 | # Find who we are. Look in the path if we contain no directory separator. | |
c3de29bd | 11926 | as_myself= |
1ef0423a | 11927 | case $0 in #(( |
7fbd9d09 FCE |
11928 | *[\\/]* ) as_myself=$0 ;; |
11929 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11930 | for as_dir in $PATH | |
11931 | do | |
11932 | IFS=$as_save_IFS | |
11933 | test -z "$as_dir" && as_dir=. | |
1ef0423a FCE |
11934 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
11935 | done | |
7fbd9d09 FCE |
11936 | IFS=$as_save_IFS |
11937 | ||
11938 | ;; | |
11939 | esac | |
11940 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
11941 | # in which case we are not to be found in the path. | |
11942 | if test "x$as_myself" = x; then | |
11943 | as_myself=$0 | |
11944 | fi | |
11945 | if test ! -f "$as_myself"; then | |
0710d850 | 11946 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
1ef0423a | 11947 | exit 1 |
7fbd9d09 FCE |
11948 | fi |
11949 | ||
1ef0423a FCE |
11950 | # Unset variables that we do not need and which cause bugs (e.g. in |
11951 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
11952 | # suppresses any "Segmentation fault" message there. '((' could | |
11953 | # trigger a bug in pdksh 5.2.14. | |
11954 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
11955 | do eval test x\${$as_var+set} = xset \ | |
11956 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
7fbd9d09 FCE |
11957 | done |
11958 | PS1='$ ' | |
2f1a1aea FCE |
11959 | PS2='> ' |
11960 | PS4='+ ' | |
11961 | ||
11962 | # NLS nuisances. | |
0710d850 DS |
11963 | LC_ALL=C |
11964 | export LC_ALL | |
11965 | LANGUAGE=C | |
11966 | export LANGUAGE | |
2f1a1aea | 11967 | |
1ef0423a FCE |
11968 | # CDPATH. |
11969 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
11970 | ||
11971 | ||
5d4aa1f5 FCE |
11972 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
11973 | # ---------------------------------------- | |
1ef0423a FCE |
11974 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
11975 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
5d4aa1f5 | 11976 | # script with STATUS, using 1 if that was 0. |
1ef0423a FCE |
11977 | as_fn_error () |
11978 | { | |
5d4aa1f5 FCE |
11979 | as_status=$1; test $as_status -eq 0 && as_status=1 |
11980 | if test "$4"; then | |
11981 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
11982 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | |
1ef0423a | 11983 | fi |
5d4aa1f5 | 11984 | $as_echo "$as_me: error: $2" >&2 |
1ef0423a FCE |
11985 | as_fn_exit $as_status |
11986 | } # as_fn_error | |
11987 | ||
11988 | ||
11989 | # as_fn_set_status STATUS | |
11990 | # ----------------------- | |
11991 | # Set $? to STATUS, without forking. | |
11992 | as_fn_set_status () | |
11993 | { | |
11994 | return $1 | |
11995 | } # as_fn_set_status | |
11996 | ||
11997 | # as_fn_exit STATUS | |
11998 | # ----------------- | |
11999 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
12000 | as_fn_exit () | |
12001 | { | |
12002 | set +e | |
12003 | as_fn_set_status $1 | |
12004 | exit $1 | |
12005 | } # as_fn_exit | |
12006 | ||
12007 | # as_fn_unset VAR | |
12008 | # --------------- | |
12009 | # Portably unset VAR. | |
12010 | as_fn_unset () | |
12011 | { | |
12012 | { eval $1=; unset $1;} | |
12013 | } | |
12014 | as_unset=as_fn_unset | |
12015 | # as_fn_append VAR VALUE | |
12016 | # ---------------------- | |
12017 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
12018 | # advantage of any shell optimizations that allow amortized linear growth over | |
12019 | # repeated appends, instead of the typical quadratic growth present in naive | |
12020 | # implementations. | |
12021 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
12022 | eval 'as_fn_append () | |
12023 | { | |
12024 | eval $1+=\$2 | |
12025 | }' | |
12026 | else | |
12027 | as_fn_append () | |
12028 | { | |
12029 | eval $1=\$$1\$2 | |
12030 | } | |
12031 | fi # as_fn_append | |
12032 | ||
12033 | # as_fn_arith ARG... | |
12034 | # ------------------ | |
12035 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
12036 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
12037 | # must be portable across $(()) and expr. | |
12038 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
12039 | eval 'as_fn_arith () | |
12040 | { | |
12041 | as_val=$(( $* )) | |
12042 | }' | |
12043 | else | |
12044 | as_fn_arith () | |
12045 | { | |
12046 | as_val=`expr "$@" || test $? -eq 1` | |
12047 | } | |
12048 | fi # as_fn_arith | |
12049 | ||
12050 | ||
7fbd9d09 FCE |
12051 | if expr a : '\(a\)' >/dev/null 2>&1 && |
12052 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
2f1a1aea FCE |
12053 | as_expr=expr |
12054 | else | |
12055 | as_expr=false | |
12056 | fi | |
12057 | ||
7fbd9d09 | 12058 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
2f1a1aea FCE |
12059 | as_basename=basename |
12060 | else | |
12061 | as_basename=false | |
12062 | fi | |
12063 | ||
1ef0423a FCE |
12064 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
12065 | as_dirname=dirname | |
12066 | else | |
12067 | as_dirname=false | |
12068 | fi | |
2f1a1aea | 12069 | |
7fbd9d09 | 12070 | as_me=`$as_basename -- "$0" || |
2f1a1aea FCE |
12071 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
12072 | X"$0" : 'X\(//\)$' \| \ | |
7fbd9d09 | 12073 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
0710d850 | 12074 | $as_echo X/"$0" | |
7fbd9d09 FCE |
12075 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
12076 | s//\1/ | |
12077 | q | |
12078 | } | |
12079 | /^X\/\(\/\/\)$/{ | |
12080 | s//\1/ | |
12081 | q | |
12082 | } | |
12083 | /^X\/\(\/\).*/{ | |
12084 | s//\1/ | |
12085 | q | |
12086 | } | |
12087 | s/.*/./; q'` | |
8ae7a94a | 12088 | |
1ef0423a FCE |
12089 | # Avoid depending upon Character Ranges. |
12090 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
12091 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
12092 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
12093 | as_cr_digits='0123456789' | |
12094 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
7fbd9d09 FCE |
12095 | |
12096 | ECHO_C= ECHO_N= ECHO_T= | |
1ef0423a | 12097 | case `echo -n x` in #((((( |
7fbd9d09 | 12098 | -n*) |
1ef0423a | 12099 | case `echo 'xy\c'` in |
7fbd9d09 | 12100 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
1ef0423a FCE |
12101 | xy) ECHO_C='\c';; |
12102 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
12103 | ECHO_T=' ';; | |
7fbd9d09 FCE |
12104 | esac;; |
12105 | *) | |
12106 | ECHO_N='-n';; | |
2f1a1aea | 12107 | esac |
2f1a1aea FCE |
12108 | |
12109 | rm -f conf$$ conf$$.exe conf$$.file | |
7fbd9d09 FCE |
12110 | if test -d conf$$.dir; then |
12111 | rm -f conf$$.dir/conf$$.file | |
12112 | else | |
12113 | rm -f conf$$.dir | |
0710d850 DS |
12114 | mkdir conf$$.dir 2>/dev/null |
12115 | fi | |
12116 | if (echo >conf$$.file) 2>/dev/null; then | |
12117 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
12118 | as_ln_s='ln -s' | |
12119 | # ... but there are two gotchas: | |
12120 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
12121 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
8eef2738 | 12122 | # In both cases, we have to default to `cp -pR'. |
0710d850 | 12123 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
8eef2738 | 12124 | as_ln_s='cp -pR' |
0710d850 DS |
12125 | elif ln conf$$.file conf$$ 2>/dev/null; then |
12126 | as_ln_s=ln | |
12127 | else | |
8eef2738 | 12128 | as_ln_s='cp -pR' |
0710d850 | 12129 | fi |
2f1a1aea | 12130 | else |
8eef2738 | 12131 | as_ln_s='cp -pR' |
2f1a1aea | 12132 | fi |
7fbd9d09 FCE |
12133 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
12134 | rmdir conf$$.dir 2>/dev/null | |
2f1a1aea | 12135 | |
1ef0423a FCE |
12136 | |
12137 | # as_fn_mkdir_p | |
12138 | # ------------- | |
12139 | # Create "$as_dir" as a directory, including parents if necessary. | |
12140 | as_fn_mkdir_p () | |
12141 | { | |
12142 | ||
12143 | case $as_dir in #( | |
12144 | -*) as_dir=./$as_dir;; | |
12145 | esac | |
12146 | test -d "$as_dir" || eval $as_mkdir_p || { | |
12147 | as_dirs= | |
12148 | while :; do | |
12149 | case $as_dir in #( | |
12150 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
12151 | *) as_qdir=$as_dir;; | |
12152 | esac | |
12153 | as_dirs="'$as_qdir' $as_dirs" | |
12154 | as_dir=`$as_dirname -- "$as_dir" || | |
12155 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
12156 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
12157 | X"$as_dir" : 'X\(//\)$' \| \ | |
12158 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
12159 | $as_echo X"$as_dir" | | |
12160 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
12161 | s//\1/ | |
12162 | q | |
12163 | } | |
12164 | /^X\(\/\/\)[^/].*/{ | |
12165 | s//\1/ | |
12166 | q | |
12167 | } | |
12168 | /^X\(\/\/\)$/{ | |
12169 | s//\1/ | |
12170 | q | |
12171 | } | |
12172 | /^X\(\/\).*/{ | |
12173 | s//\1/ | |
12174 | q | |
12175 | } | |
12176 | s/.*/./; q'` | |
12177 | test -d "$as_dir" && break | |
12178 | done | |
12179 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
5d4aa1f5 | 12180 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
1ef0423a FCE |
12181 | |
12182 | ||
12183 | } # as_fn_mkdir_p | |
2f1a1aea | 12184 | if mkdir -p . 2>/dev/null; then |
1ef0423a | 12185 | as_mkdir_p='mkdir -p "$as_dir"' |
2f1a1aea FCE |
12186 | else |
12187 | test -d ./-p && rmdir ./-p | |
12188 | as_mkdir_p=false | |
12189 | fi | |
12190 | ||
8eef2738 LB |
12191 | |
12192 | # as_fn_executable_p FILE | |
12193 | # ----------------------- | |
12194 | # Test if FILE is an executable regular file. | |
12195 | as_fn_executable_p () | |
12196 | { | |
12197 | test -f "$1" && test -x "$1" | |
12198 | } # as_fn_executable_p | |
12199 | as_test_x='test -x' | |
12200 | as_executable_p=as_fn_executable_p | |
2f1a1aea FCE |
12201 | |
12202 | # Sed expression to map a string onto a valid CPP name. | |
12203 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
12204 | ||
12205 | # Sed expression to map a string onto a valid variable name. | |
12206 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
12207 | ||
12208 | ||
2f1a1aea | 12209 | exec 6>&1 |
1ef0423a FCE |
12210 | ## ----------------------------------- ## |
12211 | ## Main body of $CONFIG_STATUS script. ## | |
12212 | ## ----------------------------------- ## | |
12213 | _ASEOF | |
12214 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 | |
2f1a1aea | 12215 | |
1ef0423a FCE |
12216 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
12217 | # Save the log message, to keep $0 and so on meaningful, and to | |
2f1a1aea | 12218 | # report actual input values of CONFIG_FILES etc. instead of their |
7fbd9d09 FCE |
12219 | # values after options handling. |
12220 | ac_log=" | |
9a399080 | 12221 | This file was extended by systemtap $as_me 2.8, which was |
8eef2738 | 12222 | generated by GNU Autoconf 2.69. Invocation command line was |
2f1a1aea FCE |
12223 | |
12224 | CONFIG_FILES = $CONFIG_FILES | |
12225 | CONFIG_HEADERS = $CONFIG_HEADERS | |
12226 | CONFIG_LINKS = $CONFIG_LINKS | |
12227 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
12228 | $ $0 $@ | |
12229 | ||
7fbd9d09 FCE |
12230 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
12231 | " | |
12232 | ||
2f1a1aea FCE |
12233 | _ACEOF |
12234 | ||
0710d850 DS |
12235 | case $ac_config_files in *" |
12236 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | |
12237 | esac | |
12238 | ||
12239 | case $ac_config_headers in *" | |
12240 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; | |
12241 | esac | |
12242 | ||
12243 | ||
12244 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
818ba2bc | 12245 | # Files that config.status was made for. |
7fbd9d09 FCE |
12246 | config_files="$ac_config_files" |
12247 | config_headers="$ac_config_headers" | |
12248 | config_commands="$ac_config_commands" | |
daae650d | 12249 | |
7fbd9d09 | 12250 | _ACEOF |
8ae7a94a | 12251 | |
0710d850 | 12252 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
2f1a1aea | 12253 | ac_cs_usage="\ |
1ef0423a FCE |
12254 | \`$as_me' instantiates files and other configuration actions |
12255 | from templates according to the current configuration. Unless the files | |
12256 | and actions are specified as TAGs, all are instantiated by default. | |
2f1a1aea | 12257 | |
1ef0423a | 12258 | Usage: $0 [OPTION]... [TAG]... |
2f1a1aea FCE |
12259 | |
12260 | -h, --help print this help, then exit | |
7fbd9d09 | 12261 | -V, --version print version number and configuration settings, then exit |
1ef0423a | 12262 | --config print configuration, then exit |
0710d850 DS |
12263 | -q, --quiet, --silent |
12264 | do not print progress messages | |
2f1a1aea FCE |
12265 | -d, --debug don't remove temporary files |
12266 | --recheck update $as_me by reconfiguring in the same conditions | |
0710d850 DS |
12267 | --file=FILE[:TEMPLATE] |
12268 | instantiate the configuration file FILE | |
12269 | --header=FILE[:TEMPLATE] | |
12270 | instantiate the configuration header FILE | |
2f1a1aea FCE |
12271 | |
12272 | Configuration files: | |
12273 | $config_files | |
12274 | ||
12275 | Configuration headers: | |
12276 | $config_headers | |
12277 | ||
12278 | Configuration commands: | |
12279 | $config_commands | |
12280 | ||
306dd4f8 | 12281 | Report bugs to <systemtap@sourceware.org>." |
818ba2bc | 12282 | |
7fbd9d09 | 12283 | _ACEOF |
0710d850 | 12284 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
1ef0423a | 12285 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" |
2f1a1aea | 12286 | ac_cs_version="\\ |
9a399080 | 12287 | systemtap config.status 2.8 |
8eef2738 | 12288 | configured by $0, generated by GNU Autoconf 2.69, |
1ef0423a | 12289 | with options \\"\$ac_cs_config\\" |
2f1a1aea | 12290 | |
8eef2738 | 12291 | Copyright (C) 2012 Free Software Foundation, Inc. |
2f1a1aea FCE |
12292 | This config.status script is free software; the Free Software Foundation |
12293 | gives unlimited permission to copy, distribute and modify it." | |
7fbd9d09 FCE |
12294 | |
12295 | ac_pwd='$ac_pwd' | |
12296 | srcdir='$srcdir' | |
12297 | INSTALL='$INSTALL' | |
12298 | MKDIR_P='$MKDIR_P' | |
0710d850 DS |
12299 | AWK='$AWK' |
12300 | test -n "\$AWK" || AWK=awk | |
2f1a1aea FCE |
12301 | _ACEOF |
12302 | ||
0710d850 DS |
12303 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
12304 | # The default lists apply if the user does not specify any file. | |
2f1a1aea FCE |
12305 | ac_need_defaults=: |
12306 | while test $# != 0 | |
12307 | do | |
12308 | case $1 in | |
c3de29bd | 12309 | --*=?*) |
7fbd9d09 FCE |
12310 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
12311 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
2f1a1aea FCE |
12312 | ac_shift=: |
12313 | ;; | |
c3de29bd LB |
12314 | --*=) |
12315 | ac_option=`expr "X$1" : 'X\([^=]*\)='` | |
12316 | ac_optarg= | |
12317 | ac_shift=: | |
12318 | ;; | |
7fbd9d09 | 12319 | *) |
2f1a1aea FCE |
12320 | ac_option=$1 |
12321 | ac_optarg=$2 | |
12322 | ac_shift=shift | |
12323 | ;; | |
2f1a1aea FCE |
12324 | esac |
12325 | ||
12326 | case $ac_option in | |
12327 | # Handling of the options. | |
2f1a1aea FCE |
12328 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
12329 | ac_cs_recheck=: ;; | |
7fbd9d09 | 12330 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
0710d850 | 12331 | $as_echo "$ac_cs_version"; exit ;; |
1ef0423a FCE |
12332 | --config | --confi | --conf | --con | --co | --c ) |
12333 | $as_echo "$ac_cs_config"; exit ;; | |
7fbd9d09 | 12334 | --debug | --debu | --deb | --de | --d | -d ) |
2f1a1aea FCE |
12335 | debug=: ;; |
12336 | --file | --fil | --fi | --f ) | |
12337 | $ac_shift | |
0710d850 DS |
12338 | case $ac_optarg in |
12339 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
c3de29bd | 12340 | '') as_fn_error $? "missing file argument" ;; |
0710d850 | 12341 | esac |
1ef0423a | 12342 | as_fn_append CONFIG_FILES " '$ac_optarg'" |
2f1a1aea FCE |
12343 | ac_need_defaults=false;; |
12344 | --header | --heade | --head | --hea ) | |
12345 | $ac_shift | |
0710d850 DS |
12346 | case $ac_optarg in |
12347 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
12348 | esac | |
1ef0423a | 12349 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" |
2f1a1aea | 12350 | ac_need_defaults=false;; |
7fbd9d09 FCE |
12351 | --he | --h) |
12352 | # Conflict between --help and --header | |
5d4aa1f5 | 12353 | as_fn_error $? "ambiguous option: \`$1' |
1ef0423a | 12354 | Try \`$0 --help' for more information.";; |
7fbd9d09 | 12355 | --help | --hel | -h ) |
0710d850 | 12356 | $as_echo "$ac_cs_usage"; exit ;; |
2f1a1aea FCE |
12357 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
12358 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
12359 | ac_cs_silent=: ;; | |
12360 | ||
12361 | # This is an error. | |
5d4aa1f5 | 12362 | -*) as_fn_error $? "unrecognized option: \`$1' |
1ef0423a | 12363 | Try \`$0 --help' for more information." ;; |
2f1a1aea | 12364 | |
1ef0423a | 12365 | *) as_fn_append ac_config_targets " $1" |
7fbd9d09 | 12366 | ac_need_defaults=false ;; |
2f1a1aea FCE |
12367 | |
12368 | esac | |
12369 | shift | |
12370 | done | |
12371 | ||
12372 | ac_configure_extra_args= | |
12373 | ||
12374 | if $ac_cs_silent; then | |
12375 | exec 6>/dev/null | |
12376 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
12377 | fi | |
12378 | ||
12379 | _ACEOF | |
0710d850 | 12380 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
2f1a1aea | 12381 | if \$ac_cs_recheck; then |
8eef2738 | 12382 | set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
0710d850 DS |
12383 | shift |
12384 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | |
12385 | CONFIG_SHELL='$SHELL' | |
7fbd9d09 | 12386 | export CONFIG_SHELL |
0710d850 | 12387 | exec "\$@" |
2f1a1aea FCE |
12388 | fi |
12389 | ||
12390 | _ACEOF | |
0710d850 | 12391 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
7fbd9d09 FCE |
12392 | exec 5>>config.log |
12393 | { | |
12394 | echo | |
12395 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
12396 | ## Running $as_me. ## | |
12397 | _ASBOX | |
0710d850 | 12398 | $as_echo "$ac_log" |
7fbd9d09 | 12399 | } >&5 |
2f1a1aea | 12400 | |
7fbd9d09 | 12401 | _ACEOF |
0710d850 | 12402 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
2f1a1aea | 12403 | # |
7fbd9d09 | 12404 | # INIT-COMMANDS |
2f1a1aea | 12405 | # |
2f1a1aea | 12406 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" |
8f223b3e FCE |
12407 | # Capture the value of obsolete ALL_LINGUAS because we need it to compute |
12408 | # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it | |
12409 | # from automake < 1.5. | |
12410 | eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"' | |
12411 | # Capture the value of LINGUAS because we need it to compute CATALOGS. | |
12412 | LINGUAS="${LINGUAS-%UNSET%}" | |
12413 | ||
2f1a1aea FCE |
12414 | |
12415 | _ACEOF | |
12416 | ||
0710d850 | 12417 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
7fbd9d09 FCE |
12418 | |
12419 | # Handling of arguments. | |
2f1a1aea FCE |
12420 | for ac_config_target in $ac_config_targets |
12421 | do | |
7fbd9d09 FCE |
12422 | case $ac_config_target in |
12423 | "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; | |
8f223b3e | 12424 | "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;; |
f9794ee4 | 12425 | "includes/sys/sdt-config.h") CONFIG_FILES="$CONFIG_FILES includes/sys/sdt-config.h" ;; |
8f223b3e | 12426 | "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;; |
7fbd9d09 FCE |
12427 | "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;; |
12428 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
12429 | "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; | |
a6e785fa | 12430 | "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; |
53ade4da | 12431 | "doc/beginners/Makefile") CONFIG_FILES="$CONFIG_FILES doc/beginners/Makefile" ;; |
7fbd9d09 | 12432 | "doc/SystemTap_Tapset_Reference/Makefile") CONFIG_FILES="$CONFIG_FILES doc/SystemTap_Tapset_Reference/Makefile" ;; |
a6e785fa | 12433 | "man/stappaths.7") CONFIG_FILES="$CONFIG_FILES man/stappaths.7" ;; |
b5c84307 | 12434 | "man/systemtap.8") CONFIG_FILES="$CONFIG_FILES man/systemtap.8" ;; |
29fe12e4 WC |
12435 | "initscript/config.systemtap") CONFIG_FILES="$CONFIG_FILES initscript/config.systemtap" ;; |
12436 | "initscript/config.stap-server") CONFIG_FILES="$CONFIG_FILES initscript/config.stap-server" ;; | |
7fbd9d09 | 12437 | "initscript/systemtap") CONFIG_FILES="$CONFIG_FILES initscript/systemtap" ;; |
2f78bee0 | 12438 | "initscript/stap-server") CONFIG_FILES="$CONFIG_FILES initscript/stap-server" ;; |
b728b279 | 12439 | "initscript/99stap/module-setup.sh") CONFIG_FILES="$CONFIG_FILES initscript/99stap/module-setup.sh" ;; |
7fbd9d09 | 12440 | "run-stap") CONFIG_FILES="$CONFIG_FILES run-stap" ;; |
e4aaabda | 12441 | "dtrace") CONFIG_FILES="$CONFIG_FILES dtrace" ;; |
66c3c633 | 12442 | "stapdyn/Makefile") CONFIG_FILES="$CONFIG_FILES stapdyn/Makefile" ;; |
9ac164fa | 12443 | "java/Makefile") CONFIG_FILES="$CONFIG_FILES java/Makefile" ;; |
d885563b | 12444 | "java/stapbm") CONFIG_FILES="$CONFIG_FILES java/stapbm" ;; |
97859b9d JS |
12445 | "staprun/Makefile") CONFIG_FILES="$CONFIG_FILES staprun/Makefile" ;; |
12446 | "staprun/run-staprun") CONFIG_FILES="$CONFIG_FILES staprun/run-staprun" ;; | |
42f767d0 JL |
12447 | "staprun/guest/stapshd") CONFIG_FILES="$CONFIG_FILES staprun/guest/stapshd" ;; |
12448 | "staprun/guest/stapsh-daemon") CONFIG_FILES="$CONFIG_FILES staprun/guest/stapsh-daemon" ;; | |
12449 | "staprun/guest/stapsh@.service") CONFIG_FILES="$CONFIG_FILES staprun/guest/stapsh@.service" ;; | |
53ade4da MW |
12450 | "doc/beginners/publican.cfg") CONFIG_FILES="$CONFIG_FILES doc/beginners/publican.cfg:doc/SystemTap_Beginners_Guide/publican.cfg.in" ;; |
12451 | "doc/beginners") CONFIG_COMMANDS="$CONFIG_COMMANDS doc/beginners" ;; | |
7fbd9d09 | 12452 | |
5d4aa1f5 | 12453 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
2f1a1aea FCE |
12454 | esac |
12455 | done | |
12456 | ||
7fbd9d09 | 12457 | |
2f1a1aea FCE |
12458 | # If the user did not use the arguments to specify the items to instantiate, |
12459 | # then the envvar interface is used. Set only those that are not. | |
12460 | # We use the long form for the default assignment because of an extremely | |
12461 | # bizarre bug on SunOS 4.1.3. | |
12462 | if $ac_need_defaults; then | |
12463 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
12464 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
12465 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | |
12466 | fi | |
12467 | ||
12468 | # Have a temporary directory for convenience. Make it in the build tree | |
7fbd9d09 | 12469 | # simply because there is no reason against having it here, and in addition, |
2f1a1aea | 12470 | # creating and moving files from /tmp can sometimes cause problems. |
7fbd9d09 FCE |
12471 | # Hook for its removal unless debugging. |
12472 | # Note that there is a small window in which the directory will not be cleaned: | |
12473 | # after its creation but before its name has been assigned to `$tmp'. | |
2f1a1aea FCE |
12474 | $debug || |
12475 | { | |
c3de29bd | 12476 | tmp= ac_tmp= |
7fbd9d09 | 12477 | trap 'exit_status=$? |
c3de29bd LB |
12478 | : "${ac_tmp:=$tmp}" |
12479 | { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status | |
7fbd9d09 | 12480 | ' 0 |
1ef0423a | 12481 | trap 'as_fn_exit 1' 1 2 13 15 |
2f1a1aea | 12482 | } |
2f1a1aea FCE |
12483 | # Create a (secure) tmp directory for tmp files. |
12484 | ||
12485 | { | |
7fbd9d09 | 12486 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
c3de29bd | 12487 | test -d "$tmp" |
2f1a1aea FCE |
12488 | } || |
12489 | { | |
7fbd9d09 FCE |
12490 | tmp=./conf$$-$RANDOM |
12491 | (umask 077 && mkdir "$tmp") | |
5d4aa1f5 | 12492 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 |
c3de29bd | 12493 | ac_tmp=$tmp |
2f1a1aea | 12494 | |
0710d850 DS |
12495 | # Set up the scripts for CONFIG_FILES section. |
12496 | # No need to generate them if there are no CONFIG_FILES. | |
12497 | # This happens for instance with `./config.status config.h'. | |
7fbd9d09 FCE |
12498 | if test -n "$CONFIG_FILES"; then |
12499 | ||
31f9baea | 12500 | |
1ef0423a FCE |
12501 | ac_cr=`echo X | tr X '\015'` |
12502 | # On cygwin, bash can eat \r inside `` if the user requested igncr. | |
12503 | # But we know of no other shell where ac_cr would be empty at this | |
12504 | # point, so we can use a bashism as a fallback. | |
12505 | if test "x$ac_cr" = x; then | |
12506 | eval ac_cr=\$\'\\r\' | |
12507 | fi | |
0710d850 DS |
12508 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` |
12509 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | |
5d4aa1f5 | 12510 | ac_cs_awk_cr='\\r' |
0710d850 DS |
12511 | else |
12512 | ac_cs_awk_cr=$ac_cr | |
7fbd9d09 | 12513 | fi |
5e0d2ebf | 12514 | |
c3de29bd | 12515 | echo 'BEGIN {' >"$ac_tmp/subs1.awk" && |
7fbd9d09 FCE |
12516 | _ACEOF |
12517 | ||
12518 | ||
0710d850 DS |
12519 | { |
12520 | echo "cat >conf$$subs.awk <<_ACEOF" && | |
12521 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | |
12522 | echo "_ACEOF" | |
12523 | } >conf$$subs.sh || | |
5d4aa1f5 FCE |
12524 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
12525 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` | |
7fbd9d09 FCE |
12526 | ac_delim='%!_!# ' |
12527 | for ac_last_try in false false false false false :; do | |
0710d850 | 12528 | . ./conf$$subs.sh || |
5d4aa1f5 | 12529 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
0710d850 DS |
12530 | |
12531 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` | |
12532 | if test $ac_delim_n = $ac_delim_num; then | |
7fbd9d09 FCE |
12533 | break |
12534 | elif $ac_last_try; then | |
5d4aa1f5 | 12535 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
7fbd9d09 FCE |
12536 | else |
12537 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
12538 | fi | |
12539 | done | |
0710d850 DS |
12540 | rm -f conf$$subs.sh |
12541 | ||
12542 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
c3de29bd | 12543 | cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && |
0710d850 DS |
12544 | _ACEOF |
12545 | sed -n ' | |
12546 | h | |
12547 | s/^/S["/; s/!.*/"]=/ | |
12548 | p | |
12549 | g | |
12550 | s/^[^!]*!// | |
12551 | :repl | |
12552 | t repl | |
12553 | s/'"$ac_delim"'$// | |
12554 | t delim | |
12555 | :nl | |
12556 | h | |
1ef0423a | 12557 | s/\(.\{148\}\)..*/\1/ |
0710d850 DS |
12558 | t more1 |
12559 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | |
12560 | p | |
12561 | n | |
12562 | b repl | |
12563 | :more1 | |
12564 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
12565 | p | |
12566 | g | |
12567 | s/.\{148\}// | |
12568 | t nl | |
12569 | :delim | |
12570 | h | |
1ef0423a | 12571 | s/\(.\{148\}\)..*/\1/ |
0710d850 DS |
12572 | t more2 |
12573 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | |
12574 | p | |
12575 | b | |
12576 | :more2 | |
12577 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
12578 | p | |
12579 | g | |
12580 | s/.\{148\}// | |
12581 | t delim | |
12582 | ' <conf$$subs.awk | sed ' | |
12583 | /^[^""]/{ | |
12584 | N | |
12585 | s/\n// | |
12586 | } | |
12587 | ' >>$CONFIG_STATUS || ac_write_fail=1 | |
12588 | rm -f conf$$subs.awk | |
12589 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
12590 | _ACAWK | |
c3de29bd | 12591 | cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && |
0710d850 DS |
12592 | for (key in S) S_is_set[key] = 1 |
12593 | FS = "\a" | |
7fbd9d09 | 12594 | |
0710d850 DS |
12595 | } |
12596 | { | |
12597 | line = $ 0 | |
12598 | nfields = split(line, field, "@") | |
12599 | substed = 0 | |
12600 | len = length(field[1]) | |
12601 | for (i = 2; i < nfields; i++) { | |
12602 | key = field[i] | |
12603 | keylen = length(key) | |
12604 | if (S_is_set[key]) { | |
12605 | value = S[key] | |
12606 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | |
12607 | len += length(value) + length(field[++i]) | |
12608 | substed = 1 | |
12609 | } else | |
12610 | len += 1 + keylen | |
12611 | } | |
12612 | ||
12613 | print line | |
12614 | } | |
7fbd9d09 | 12615 | |
0710d850 | 12616 | _ACAWK |
7fbd9d09 | 12617 | _ACEOF |
0710d850 DS |
12618 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
12619 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | |
12620 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | |
12621 | else | |
12622 | cat | |
c3de29bd | 12623 | fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ |
5d4aa1f5 | 12624 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 |
7fbd9d09 FCE |
12625 | _ACEOF |
12626 | ||
5d4aa1f5 FCE |
12627 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir), |
12628 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and | |
7fbd9d09 FCE |
12629 | # trailing colons and then remove the whole line if VPATH becomes empty |
12630 | # (actually we leave an empty line to preserve line numbers). | |
12631 | if test "x$srcdir" = x.; then | |
5d4aa1f5 FCE |
12632 | ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ |
12633 | h | |
12634 | s/// | |
12635 | s/^/:/ | |
12636 | s/[ ]*$/:/ | |
12637 | s/:\$(srcdir):/:/g | |
12638 | s/:\${srcdir}:/:/g | |
12639 | s/:@srcdir@:/:/g | |
12640 | s/^:*// | |
7fbd9d09 | 12641 | s/:*$// |
5d4aa1f5 FCE |
12642 | x |
12643 | s/\(=[ ]*\).*/\1/ | |
12644 | G | |
12645 | s/\n// | |
7fbd9d09 FCE |
12646 | s/^[^=]*=[ ]*$// |
12647 | }' | |
12648 | fi | |
12649 | ||
0710d850 | 12650 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
7fbd9d09 FCE |
12651 | fi # test -n "$CONFIG_FILES" |
12652 | ||
0710d850 DS |
12653 | # Set up the scripts for CONFIG_HEADERS section. |
12654 | # No need to generate them if there are no CONFIG_HEADERS. | |
12655 | # This happens for instance with `./config.status Makefile'. | |
12656 | if test -n "$CONFIG_HEADERS"; then | |
c3de29bd | 12657 | cat >"$ac_tmp/defines.awk" <<\_ACAWK || |
0710d850 DS |
12658 | BEGIN { |
12659 | _ACEOF | |
12660 | ||
12661 | # Transform confdefs.h into an awk script `defines.awk', embedded as | |
12662 | # here-document in config.status, that substitutes the proper values into | |
12663 | # config.h.in to produce config.h. | |
12664 | ||
12665 | # Create a delimiter string that does not exist in confdefs.h, to ease | |
12666 | # handling of long lines. | |
12667 | ac_delim='%!_!# ' | |
12668 | for ac_last_try in false false :; do | |
c3de29bd LB |
12669 | ac_tt=`sed -n "/$ac_delim/p" confdefs.h` |
12670 | if test -z "$ac_tt"; then | |
0710d850 DS |
12671 | break |
12672 | elif $ac_last_try; then | |
5d4aa1f5 | 12673 | as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 |
0710d850 DS |
12674 | else |
12675 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
12676 | fi | |
12677 | done | |
12678 | ||
12679 | # For the awk script, D is an array of macro values keyed by name, | |
12680 | # likewise P contains macro parameters if any. Preserve backslash | |
12681 | # newline sequences. | |
12682 | ||
12683 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* | |
12684 | sed -n ' | |
12685 | s/.\{148\}/&'"$ac_delim"'/g | |
12686 | t rset | |
12687 | :rset | |
12688 | s/^[ ]*#[ ]*define[ ][ ]*/ / | |
12689 | t def | |
12690 | d | |
12691 | :def | |
12692 | s/\\$// | |
12693 | t bsnl | |
12694 | s/["\\]/\\&/g | |
12695 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
12696 | D["\1"]=" \3"/p | |
12697 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p | |
12698 | d | |
12699 | :bsnl | |
12700 | s/["\\]/\\&/g | |
12701 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
12702 | D["\1"]=" \3\\\\\\n"\\/p | |
12703 | t cont | |
12704 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p | |
12705 | t cont | |
12706 | d | |
12707 | :cont | |
12708 | n | |
12709 | s/.\{148\}/&'"$ac_delim"'/g | |
12710 | t clear | |
12711 | :clear | |
12712 | s/\\$// | |
12713 | t bsnlc | |
12714 | s/["\\]/\\&/g; s/^/"/; s/$/"/p | |
12715 | d | |
12716 | :bsnlc | |
12717 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p | |
12718 | b cont | |
12719 | ' <confdefs.h | sed ' | |
12720 | s/'"$ac_delim"'/"\\\ | |
12721 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 | |
12722 | ||
12723 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
12724 | for (key in D) D_is_set[key] = 1 | |
12725 | FS = "\a" | |
12726 | } | |
12727 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { | |
12728 | line = \$ 0 | |
12729 | split(line, arg, " ") | |
12730 | if (arg[1] == "#") { | |
12731 | defundef = arg[2] | |
12732 | mac1 = arg[3] | |
12733 | } else { | |
12734 | defundef = substr(arg[1], 2) | |
12735 | mac1 = arg[2] | |
12736 | } | |
12737 | split(mac1, mac2, "(") #) | |
12738 | macro = mac2[1] | |
12739 | prefix = substr(line, 1, index(line, defundef) - 1) | |
12740 | if (D_is_set[macro]) { | |
12741 | # Preserve the white space surrounding the "#". | |
12742 | print prefix "define", macro P[macro] D[macro] | |
12743 | next | |
12744 | } else { | |
12745 | # Replace #undef with comments. This is necessary, for example, | |
12746 | # in the case of _POSIX_SOURCE, which is predefined and required | |
12747 | # on some systems where configure will not decide to define it. | |
12748 | if (defundef == "undef") { | |
12749 | print "/*", prefix defundef, macro, "*/" | |
12750 | next | |
12751 | } | |
12752 | } | |
12753 | } | |
12754 | { print } | |
12755 | _ACAWK | |
12756 | _ACEOF | |
12757 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
5d4aa1f5 | 12758 | as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 |
0710d850 DS |
12759 | fi # test -n "$CONFIG_HEADERS" |
12760 | ||
27aba29a | 12761 | |
0710d850 DS |
12762 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" |
12763 | shift | |
12764 | for ac_tag | |
7fbd9d09 FCE |
12765 | do |
12766 | case $ac_tag in | |
12767 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
2f1a1aea | 12768 | esac |
7fbd9d09 FCE |
12769 | case $ac_mode$ac_tag in |
12770 | :[FHL]*:*);; | |
5d4aa1f5 | 12771 | :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; |
7fbd9d09 FCE |
12772 | :[FH]-) ac_tag=-:-;; |
12773 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
12774 | esac | |
12775 | ac_save_IFS=$IFS | |
12776 | IFS=: | |
12777 | set x $ac_tag | |
12778 | IFS=$ac_save_IFS | |
12779 | shift | |
12780 | ac_file=$1 | |
12781 | shift | |
2f1a1aea | 12782 | |
7fbd9d09 FCE |
12783 | case $ac_mode in |
12784 | :L) ac_source=$1;; | |
12785 | :[FH]) | |
12786 | ac_file_inputs= | |
12787 | for ac_f | |
12788 | do | |
12789 | case $ac_f in | |
c3de29bd | 12790 | -) ac_f="$ac_tmp/stdin";; |
7fbd9d09 FCE |
12791 | *) # Look for the file first in the build tree, then in the source tree |
12792 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
12793 | # because $ac_f cannot contain `:'. | |
12794 | test -f "$ac_f" || | |
12795 | case $ac_f in | |
12796 | [\\/$]*) false;; | |
12797 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
12798 | esac || | |
5d4aa1f5 | 12799 | as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; |
7fbd9d09 | 12800 | esac |
0710d850 | 12801 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac |
1ef0423a | 12802 | as_fn_append ac_file_inputs " '$ac_f'" |
7fbd9d09 FCE |
12803 | done |
12804 | ||
12805 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
12806 | # use $as_me), people would be surprised to read: | |
12807 | # /* config.h. Generated by config.status. */ | |
0710d850 DS |
12808 | configure_input='Generated from '` |
12809 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | |
12810 | `' by configure.' | |
7fbd9d09 FCE |
12811 | if test x"$ac_file" != x-; then |
12812 | configure_input="$ac_file. $configure_input" | |
1ef0423a | 12813 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 |
0710d850 | 12814 | $as_echo "$as_me: creating $ac_file" >&6;} |
7fbd9d09 | 12815 | fi |
0710d850 DS |
12816 | # Neutralize special characters interpreted by sed in replacement strings. |
12817 | case $configure_input in #( | |
12818 | *\&* | *\|* | *\\* ) | |
12819 | ac_sed_conf_input=`$as_echo "$configure_input" | | |
12820 | sed 's/[\\\\&|]/\\\\&/g'`;; #( | |
12821 | *) ac_sed_conf_input=$configure_input;; | |
12822 | esac | |
7fbd9d09 FCE |
12823 | |
12824 | case $ac_tag in | |
c3de29bd | 12825 | *:-:* | *:-) cat >"$ac_tmp/stdin" \ |
5d4aa1f5 | 12826 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; |
7fbd9d09 FCE |
12827 | esac |
12828 | ;; | |
12829 | esac | |
12830 | ||
12831 | ac_dir=`$as_dirname -- "$ac_file" || | |
2f1a1aea FCE |
12832 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
12833 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
12834 | X"$ac_file" : 'X\(//\)$' \| \ | |
7fbd9d09 | 12835 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
0710d850 | 12836 | $as_echo X"$ac_file" | |
7fbd9d09 FCE |
12837 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
12838 | s//\1/ | |
12839 | q | |
12840 | } | |
12841 | /^X\(\/\/\)[^/].*/{ | |
12842 | s//\1/ | |
12843 | q | |
12844 | } | |
12845 | /^X\(\/\/\)$/{ | |
12846 | s//\1/ | |
12847 | q | |
12848 | } | |
12849 | /^X\(\/\).*/{ | |
12850 | s//\1/ | |
12851 | q | |
12852 | } | |
12853 | s/.*/./; q'` | |
1ef0423a | 12854 | as_dir="$ac_dir"; as_fn_mkdir_p |
2f1a1aea FCE |
12855 | ac_builddir=. |
12856 | ||
7fbd9d09 FCE |
12857 | case "$ac_dir" in |
12858 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
12859 | *) | |
0710d850 | 12860 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
7fbd9d09 | 12861 | # A ".." for each directory in $ac_dir_suffix. |
0710d850 | 12862 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
7fbd9d09 FCE |
12863 | case $ac_top_builddir_sub in |
12864 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
12865 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
12866 | esac ;; | |
12867 | esac | |
12868 | ac_abs_top_builddir=$ac_pwd | |
12869 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
12870 | # for backward compatibility: | |
12871 | ac_top_builddir=$ac_top_build_prefix | |
2f1a1aea FCE |
12872 | |
12873 | case $srcdir in | |
7fbd9d09 | 12874 | .) # We are building in place. |
2f1a1aea | 12875 | ac_srcdir=. |
7fbd9d09 FCE |
12876 | ac_top_srcdir=$ac_top_builddir_sub |
12877 | ac_abs_top_srcdir=$ac_pwd ;; | |
12878 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
2f1a1aea | 12879 | ac_srcdir=$srcdir$ac_dir_suffix; |
7fbd9d09 FCE |
12880 | ac_top_srcdir=$srcdir |
12881 | ac_abs_top_srcdir=$srcdir ;; | |
12882 | *) # Relative name. | |
12883 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
12884 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
12885 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
2f1a1aea | 12886 | esac |
7fbd9d09 | 12887 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
2f1a1aea | 12888 | |
2f1a1aea | 12889 | |
7fbd9d09 FCE |
12890 | case $ac_mode in |
12891 | :F) | |
12892 | # | |
12893 | # CONFIG_FILE | |
12894 | # | |
2f1a1aea FCE |
12895 | |
12896 | case $INSTALL in | |
12897 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
7fbd9d09 FCE |
12898 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
12899 | esac | |
12900 | ac_MKDIR_P=$MKDIR_P | |
12901 | case $MKDIR_P in | |
12902 | [\\/$]* | ?:[\\/]* ) ;; | |
12903 | */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; | |
5e0d2ebf | 12904 | esac |
7fbd9d09 | 12905 | _ACEOF |
5e0d2ebf | 12906 | |
0710d850 | 12907 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
7fbd9d09 FCE |
12908 | # If the template does not know about datarootdir, expand it. |
12909 | # FIXME: This hack should be removed a few years after 2.60. | |
12910 | ac_datarootdir_hack=; ac_datarootdir_seen= | |
0710d850 DS |
12911 | ac_sed_dataroot=' |
12912 | /datarootdir/ { | |
7fbd9d09 FCE |
12913 | p |
12914 | q | |
12915 | } | |
12916 | /@datadir@/p | |
12917 | /@docdir@/p | |
12918 | /@infodir@/p | |
12919 | /@localedir@/p | |
1ef0423a | 12920 | /@mandir@/p' |
0710d850 | 12921 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in |
7fbd9d09 FCE |
12922 | *datarootdir*) ac_datarootdir_seen=yes;; |
12923 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
1ef0423a | 12924 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
0710d850 | 12925 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} |
7fbd9d09 | 12926 | _ACEOF |
0710d850 | 12927 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
7fbd9d09 FCE |
12928 | ac_datarootdir_hack=' |
12929 | s&@datadir@&$datadir&g | |
12930 | s&@docdir@&$docdir&g | |
12931 | s&@infodir@&$infodir&g | |
12932 | s&@localedir@&$localedir&g | |
12933 | s&@mandir@&$mandir&g | |
1ef0423a | 12934 | s&\\\${datarootdir}&$datarootdir&g' ;; |
7fbd9d09 | 12935 | esac |
70d28673 | 12936 | _ACEOF |
7fbd9d09 FCE |
12937 | |
12938 | # Neutralize VPATH when `$srcdir' = `.'. | |
12939 | # Shell code in configure.ac might set extrasub. | |
12940 | # FIXME: do we really want to maintain this feature? | |
0710d850 DS |
12941 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
12942 | ac_sed_extra="$ac_vpsub | |
2f1a1aea FCE |
12943 | $extrasub |
12944 | _ACEOF | |
0710d850 | 12945 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
2f1a1aea FCE |
12946 | :t |
12947 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
0710d850 | 12948 | s|@configure_input@|$ac_sed_conf_input|;t t |
7fbd9d09 | 12949 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
0710d850 | 12950 | s&@top_build_prefix@&$ac_top_build_prefix&;t t |
7fbd9d09 FCE |
12951 | s&@srcdir@&$ac_srcdir&;t t |
12952 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
12953 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
12954 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
12955 | s&@builddir@&$ac_builddir&;t t | |
12956 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
12957 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
12958 | s&@INSTALL@&$ac_INSTALL&;t t | |
12959 | s&@MKDIR_P@&$ac_MKDIR_P&;t t | |
12960 | $ac_datarootdir_hack | |
0710d850 | 12961 | " |
c3de29bd LB |
12962 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ |
12963 | >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
7fbd9d09 FCE |
12964 | |
12965 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | |
c3de29bd LB |
12966 | { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && |
12967 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ | |
12968 | "$ac_tmp/out"`; test -z "$ac_out"; } && | |
1ef0423a | 12969 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
5d4aa1f5 | 12970 | which seems to be undefined. Please make sure it is defined" >&5 |
0710d850 | 12971 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
5d4aa1f5 | 12972 | which seems to be undefined. Please make sure it is defined" >&2;} |
7fbd9d09 | 12973 | |
c3de29bd | 12974 | rm -f "$ac_tmp/stdin" |
818ba2bc | 12975 | case $ac_file in |
c3de29bd LB |
12976 | -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; |
12977 | *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; | |
0710d850 | 12978 | esac \ |
5d4aa1f5 | 12979 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
7fbd9d09 FCE |
12980 | ;; |
12981 | :H) | |
12982 | # | |
12983 | # CONFIG_HEADER | |
12984 | # | |
818ba2bc | 12985 | if test x"$ac_file" != x-; then |
0710d850 DS |
12986 | { |
12987 | $as_echo "/* $configure_input */" \ | |
c3de29bd LB |
12988 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" |
12989 | } >"$ac_tmp/config.h" \ | |
5d4aa1f5 | 12990 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
c3de29bd | 12991 | if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then |
1ef0423a | 12992 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 |
0710d850 | 12993 | $as_echo "$as_me: $ac_file is unchanged" >&6;} |
2f1a1aea | 12994 | else |
0710d850 | 12995 | rm -f "$ac_file" |
c3de29bd | 12996 | mv "$ac_tmp/config.h" "$ac_file" \ |
5d4aa1f5 | 12997 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
2f1a1aea FCE |
12998 | fi |
12999 | else | |
0710d850 | 13000 | $as_echo "/* $configure_input */" \ |
c3de29bd | 13001 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ |
5d4aa1f5 | 13002 | || as_fn_error $? "could not create -" "$LINENO" 5 |
2f1a1aea | 13003 | fi |
0710d850 DS |
13004 | # Compute "$ac_file"'s index in $config_headers. |
13005 | _am_arg="$ac_file" | |
2f1a1aea FCE |
13006 | _am_stamp_count=1 |
13007 | for _am_header in $config_headers :; do | |
13008 | case $_am_header in | |
0710d850 | 13009 | $_am_arg | $_am_arg:* ) |
2f1a1aea FCE |
13010 | break ;; |
13011 | * ) | |
13012 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; | |
13013 | esac | |
13014 | done | |
0710d850 DS |
13015 | echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || |
13016 | $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
13017 | X"$_am_arg" : 'X\(//\)[^/]' \| \ | |
13018 | X"$_am_arg" : 'X\(//\)$' \| \ | |
13019 | X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || | |
13020 | $as_echo X"$_am_arg" | | |
7fbd9d09 FCE |
13021 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
13022 | s//\1/ | |
13023 | q | |
13024 | } | |
13025 | /^X\(\/\/\)[^/].*/{ | |
13026 | s//\1/ | |
13027 | q | |
13028 | } | |
13029 | /^X\(\/\/\)$/{ | |
13030 | s//\1/ | |
13031 | q | |
13032 | } | |
13033 | /^X\(\/\).*/{ | |
13034 | s//\1/ | |
13035 | q | |
13036 | } | |
13037 | s/.*/./; q'`/stamp-h$_am_stamp_count | |
13038 | ;; | |
818ba2bc | 13039 | |
1ef0423a | 13040 | :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 |
0710d850 | 13041 | $as_echo "$as_me: executing $ac_file commands" >&6;} |
7fbd9d09 FCE |
13042 | ;; |
13043 | esac | |
818ba2bc MW |
13044 | |
13045 | ||
7fbd9d09 | 13046 | case $ac_file$ac_mode in |
0710d850 | 13047 | "depfiles":C) test x"$AMDEP_TRUE" != x"" || { |
d9e6d90b | 13048 | # Older Autoconf quotes --file arguments for eval, but not when files |
0710d850 DS |
13049 | # are listed without --file. Let's play safe and only enable the eval |
13050 | # if we detect the quoting. | |
13051 | case $CONFIG_FILES in | |
13052 | *\'*) eval set x "$CONFIG_FILES" ;; | |
13053 | *) set x $CONFIG_FILES ;; | |
13054 | esac | |
13055 | shift | |
13056 | for mf | |
13057 | do | |
13058 | # Strip MF so we end up with the name of the file. | |
13059 | mf=`echo "$mf" | sed -e 's/:.*$//'` | |
13060 | # Check whether this is an Automake generated Makefile or not. | |
8eef2738 | 13061 | # We used to match only the files named 'Makefile.in', but |
0710d850 DS |
13062 | # some people rename them; so instead we look at the file content. |
13063 | # Grep'ing the first line is not enough: some people post-process | |
13064 | # each Makefile.in and add a new line on top of each file to say so. | |
13065 | # Grep'ing the whole file is not good either: AIX grep has a line | |
13066 | # limit of 2048, but all sed's we know have understand at least 4000. | |
13067 | if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then | |
13068 | dirpart=`$as_dirname -- "$mf" || | |
2f1a1aea FCE |
13069 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
13070 | X"$mf" : 'X\(//\)[^/]' \| \ | |
13071 | X"$mf" : 'X\(//\)$' \| \ | |
7fbd9d09 | 13072 | X"$mf" : 'X\(/\)' \| . 2>/dev/null || |
0710d850 | 13073 | $as_echo X"$mf" | |
7fbd9d09 FCE |
13074 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
13075 | s//\1/ | |
13076 | q | |
13077 | } | |
13078 | /^X\(\/\/\)[^/].*/{ | |
13079 | s//\1/ | |
13080 | q | |
13081 | } | |
13082 | /^X\(\/\/\)$/{ | |
13083 | s//\1/ | |
13084 | q | |
13085 | } | |
13086 | /^X\(\/\).*/{ | |
13087 | s//\1/ | |
13088 | q | |
13089 | } | |
13090 | s/.*/./; q'` | |
0710d850 DS |
13091 | else |
13092 | continue | |
13093 | fi | |
13094 | # Extract the definition of DEPDIR, am__include, and am__quote | |
8eef2738 | 13095 | # from the Makefile without running 'make'. |
0710d850 DS |
13096 | DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` |
13097 | test -z "$DEPDIR" && continue | |
13098 | am__include=`sed -n 's/^am__include = //p' < "$mf"` | |
d9e6d90b | 13099 | test -z "$am__include" && continue |
0710d850 | 13100 | am__quote=`sed -n 's/^am__quote = //p' < "$mf"` |
0710d850 DS |
13101 | # Find all dependency output files, they are included files with |
13102 | # $(DEPDIR) in their names. We invoke sed twice because it is the | |
13103 | # simplest approach to changing $(DEPDIR) to its actual value in the | |
13104 | # expansion. | |
13105 | for file in `sed -n " | |
13106 | s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ | |
8eef2738 | 13107 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do |
0710d850 DS |
13108 | # Make sure the directory exists. |
13109 | test -f "$dirpart/$file" && continue | |
13110 | fdir=`$as_dirname -- "$file" || | |
2f1a1aea FCE |
13111 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
13112 | X"$file" : 'X\(//\)[^/]' \| \ | |
13113 | X"$file" : 'X\(//\)$' \| \ | |
7fbd9d09 | 13114 | X"$file" : 'X\(/\)' \| . 2>/dev/null || |
0710d850 | 13115 | $as_echo X"$file" | |
7fbd9d09 FCE |
13116 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
13117 | s//\1/ | |
13118 | q | |
13119 | } | |
13120 | /^X\(\/\/\)[^/].*/{ | |
13121 | s//\1/ | |
13122 | q | |
13123 | } | |
13124 | /^X\(\/\/\)$/{ | |
13125 | s//\1/ | |
13126 | q | |
13127 | } | |
13128 | /^X\(\/\).*/{ | |
13129 | s//\1/ | |
13130 | q | |
13131 | } | |
13132 | s/.*/./; q'` | |
1ef0423a | 13133 | as_dir=$dirpart/$fdir; as_fn_mkdir_p |
0710d850 DS |
13134 | # echo "creating $dirpart/$file" |
13135 | echo '# dummy' > "$dirpart/$file" | |
13136 | done | |
2f1a1aea | 13137 | done |
0710d850 | 13138 | } |
2f1a1aea | 13139 | ;; |
8f223b3e FCE |
13140 | "po-directories":C) |
13141 | for ac_file in $CONFIG_FILES; do | |
13142 | # Support "outfile[:infile[:infile...]]" | |
13143 | case "$ac_file" in | |
13144 | *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | |
13145 | esac | |
13146 | # PO directories have a Makefile.in generated from Makefile.in.in. | |
13147 | case "$ac_file" in */Makefile.in) | |
13148 | # Adjust a relative srcdir. | |
13149 | ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'` | |
42f767d0 | 13150 | ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'` |
8f223b3e FCE |
13151 | ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'` |
13152 | # In autoconf-2.13 it is called $ac_given_srcdir. | |
13153 | # In autoconf-2.50 it is called $srcdir. | |
13154 | test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir" | |
13155 | case "$ac_given_srcdir" in | |
13156 | .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;; | |
13157 | /*) top_srcdir="$ac_given_srcdir" ;; | |
13158 | *) top_srcdir="$ac_dots$ac_given_srcdir" ;; | |
13159 | esac | |
13160 | # Treat a directory as a PO directory if and only if it has a | |
13161 | # POTFILES.in file. This allows packages to have multiple PO | |
13162 | # directories under different names or in different locations. | |
13163 | if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then | |
13164 | rm -f "$ac_dir/POTFILES" | |
13165 | test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES" | |
42f767d0 JL |
13166 | gt_tab=`printf '\t'` |
13167 | 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" | |
8f223b3e FCE |
13168 | POMAKEFILEDEPS="POTFILES.in" |
13169 | # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend | |
13170 | # on $ac_dir but don't depend on user-specified configuration | |
13171 | # parameters. | |
13172 | if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then | |
13173 | # The LINGUAS file contains the set of available languages. | |
13174 | if test -n "$OBSOLETE_ALL_LINGUAS"; then | |
13175 | test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete" | |
13176 | fi | |
13177 | ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"` | |
42f767d0 | 13178 | # Hide the ALL_LINGUAS assignment from automake < 1.5. |
8f223b3e FCE |
13179 | eval 'ALL_LINGUAS''=$ALL_LINGUAS_' |
13180 | POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS" | |
13181 | else | |
13182 | # The set of available languages was given in configure.in. | |
42f767d0 | 13183 | # Hide the ALL_LINGUAS assignment from automake < 1.5. |
8f223b3e FCE |
13184 | eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS' |
13185 | fi | |
13186 | # Compute POFILES | |
13187 | # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po) | |
13188 | # Compute UPDATEPOFILES | |
13189 | # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update) | |
13190 | # Compute DUMMYPOFILES | |
13191 | # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop) | |
13192 | # Compute GMOFILES | |
13193 | # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo) | |
13194 | case "$ac_given_srcdir" in | |
13195 | .) srcdirpre= ;; | |
13196 | *) srcdirpre='$(srcdir)/' ;; | |
13197 | esac | |
13198 | POFILES= | |
13199 | UPDATEPOFILES= | |
13200 | DUMMYPOFILES= | |
13201 | GMOFILES= | |
13202 | for lang in $ALL_LINGUAS; do | |
13203 | POFILES="$POFILES $srcdirpre$lang.po" | |
13204 | UPDATEPOFILES="$UPDATEPOFILES $lang.po-update" | |
13205 | DUMMYPOFILES="$DUMMYPOFILES $lang.nop" | |
13206 | GMOFILES="$GMOFILES $srcdirpre$lang.gmo" | |
13207 | done | |
13208 | # CATALOGS depends on both $ac_dir and the user's LINGUAS | |
13209 | # environment variable. | |
13210 | INST_LINGUAS= | |
13211 | if test -n "$ALL_LINGUAS"; then | |
13212 | for presentlang in $ALL_LINGUAS; do | |
13213 | useit=no | |
13214 | if test "%UNSET%" != "$LINGUAS"; then | |
13215 | desiredlanguages="$LINGUAS" | |
13216 | else | |
13217 | desiredlanguages="$ALL_LINGUAS" | |
13218 | fi | |
13219 | for desiredlang in $desiredlanguages; do | |
13220 | # Use the presentlang catalog if desiredlang is | |
13221 | # a. equal to presentlang, or | |
13222 | # b. a variant of presentlang (because in this case, | |
13223 | # presentlang can be used as a fallback for messages | |
13224 | # which are not translated in the desiredlang catalog). | |
13225 | case "$desiredlang" in | |
13226 | "$presentlang"*) useit=yes;; | |
13227 | esac | |
13228 | done | |
13229 | if test $useit = yes; then | |
13230 | INST_LINGUAS="$INST_LINGUAS $presentlang" | |
13231 | fi | |
13232 | done | |
13233 | fi | |
13234 | CATALOGS= | |
13235 | if test -n "$INST_LINGUAS"; then | |
13236 | for lang in $INST_LINGUAS; do | |
13237 | CATALOGS="$CATALOGS $lang.gmo" | |
13238 | done | |
13239 | fi | |
13240 | test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile" | |
13241 | 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" | |
13242 | for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do | |
13243 | if test -f "$f"; then | |
13244 | case "$f" in | |
13245 | *.orig | *.bak | *~) ;; | |
13246 | *) cat "$f" >> "$ac_dir/Makefile" ;; | |
13247 | esac | |
13248 | fi | |
13249 | done | |
13250 | fi | |
13251 | ;; | |
13252 | esac | |
13253 | done ;; | |
7fbd9d09 | 13254 | "run-stap":F) chmod +x run-stap ;; |
e4aaabda | 13255 | "dtrace":F) chmod +x dtrace ;; |
d885563b | 13256 | "java/stapbm":F) chmod +x java/stapbm ;; |
97859b9d | 13257 | "staprun/run-staprun":F) chmod +x staprun/run-staprun ;; |
42f767d0 JL |
13258 | "staprun/guest/stapshd":F) chmod +x staprun/guest/stapshd ;; |
13259 | "staprun/guest/stapsh-daemon":F) chmod +x staprun/guest/stapsh-daemon ;; | |
53ade4da | 13260 | "doc/beginners":C) rm -f $ac_abs_top_builddir/doc/beginners/en-US $ac_abs_top_builddir/doc/beginners/build/en-US/testsuite && mkdir -p $ac_abs_top_builddir/doc/beginners/build/en-US && ln -s $ac_abs_top_srcdir/doc/SystemTap_Beginners_Guide/en-US $ac_abs_top_builddir/doc/beginners/en-US && ln -s $ac_abs_top_srcdir/testsuite $ac_abs_top_builddir/doc/beginners/build/en-US/testsuite ;; |
7fbd9d09 | 13261 | |
2f1a1aea | 13262 | esac |
7fbd9d09 | 13263 | done # for ac_tag |
2f1a1aea | 13264 | |
2f1a1aea | 13265 | |
1ef0423a | 13266 | as_fn_exit 0 |
2f1a1aea | 13267 | _ACEOF |
2f1a1aea FCE |
13268 | ac_clean_files=$ac_clean_files_save |
13269 | ||
0710d850 | 13270 | test $ac_write_fail = 0 || |
5d4aa1f5 | 13271 | as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 |
0710d850 | 13272 | |
2f1a1aea FCE |
13273 | |
13274 | # configure is writing to config.log, and then calls config.status. | |
13275 | # config.status does its own redirection, appending to config.log. | |
13276 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
13277 | # by configure, so config.status won't be able to write to it; its | |
13278 | # output is simply discarded. So we exec the FD to /dev/null, | |
13279 | # effectively closing config.log, so it can be properly (re)opened and | |
13280 | # appended to by config.status. When coming back to configure, we | |
13281 | # need to make the FD available again. | |
13282 | if test "$no_create" != yes; then | |
13283 | ac_cs_success=: | |
13284 | ac_config_status_args= | |
13285 | test "$silent" = yes && | |
13286 | ac_config_status_args="$ac_config_status_args --quiet" | |
13287 | exec 5>/dev/null | |
13288 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
13289 | exec 5>>config.log | |
13290 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
13291 | # would make configure fail if this is the last instruction. | |
5d4aa1f5 | 13292 | $ac_cs_success || as_fn_exit 1 |
2f1a1aea FCE |
13293 | fi |
13294 | ||
5ba96b90 FCE |
13295 | # |
13296 | # CONFIG_SUBDIRS section. | |
13297 | # | |
13298 | if test "$no_recursion" != yes; then | |
13299 | ||
0710d850 DS |
13300 | # Remove --cache-file, --srcdir, and --disable-option-checking arguments |
13301 | # so they do not pile up. | |
5ba96b90 FCE |
13302 | ac_sub_configure_args= |
13303 | ac_prev= | |
7fbd9d09 FCE |
13304 | eval "set x $ac_configure_args" |
13305 | shift | |
13306 | for ac_arg | |
13307 | do | |
5ba96b90 FCE |
13308 | if test -n "$ac_prev"; then |
13309 | ac_prev= | |
13310 | continue | |
13311 | fi | |
13312 | case $ac_arg in | |
13313 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
13314 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
13315 | ac_prev=cache_file ;; | |
13316 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
13317 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \ | |
13318 | | --c=*) | |
13319 | ;; | |
13320 | --config-cache | -C) | |
13321 | ;; | |
13322 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
13323 | ac_prev=srcdir ;; | |
13324 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
13325 | ;; | |
13326 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
13327 | ac_prev=prefix ;; | |
13328 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
13329 | ;; | |
0710d850 DS |
13330 | --disable-option-checking) |
13331 | ;; | |
7fbd9d09 FCE |
13332 | *) |
13333 | case $ac_arg in | |
0710d850 | 13334 | *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
7fbd9d09 | 13335 | esac |
1ef0423a | 13336 | as_fn_append ac_sub_configure_args " '$ac_arg'" ;; |
5ba96b90 FCE |
13337 | esac |
13338 | done | |
13339 | ||
13340 | # Always prepend --prefix to ensure using the same prefix | |
13341 | # in subdir configurations. | |
7fbd9d09 FCE |
13342 | ac_arg="--prefix=$prefix" |
13343 | case $ac_arg in | |
0710d850 | 13344 | *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
7fbd9d09 FCE |
13345 | esac |
13346 | ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args" | |
13347 | ||
13348 | # Pass --silent | |
13349 | if test "$silent" = yes; then | |
13350 | ac_sub_configure_args="--silent $ac_sub_configure_args" | |
13351 | fi | |
daae650d | 13352 | |
0710d850 DS |
13353 | # Always prepend --disable-option-checking to silence warnings, since |
13354 | # different subdirs can have different --enable and --with options. | |
13355 | ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args" | |
13356 | ||
5ba96b90 FCE |
13357 | ac_popdir=`pwd` |
13358 | for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue | |
13359 | ||
13360 | # Do not complain, so a configure script can configure whichever | |
13361 | # parts of a large source tree are present. | |
7fbd9d09 FCE |
13362 | test -d "$srcdir/$ac_dir" || continue |
13363 | ||
13364 | ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)" | |
1ef0423a | 13365 | $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5 |
0710d850 | 13366 | $as_echo "$ac_msg" >&6 |
1ef0423a | 13367 | as_dir="$ac_dir"; as_fn_mkdir_p |
5ba96b90 FCE |
13368 | ac_builddir=. |
13369 | ||
7fbd9d09 FCE |
13370 | case "$ac_dir" in |
13371 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
13372 | *) | |
0710d850 | 13373 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
7fbd9d09 | 13374 | # A ".." for each directory in $ac_dir_suffix. |
0710d850 | 13375 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
7fbd9d09 FCE |
13376 | case $ac_top_builddir_sub in |
13377 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
13378 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
13379 | esac ;; | |
13380 | esac | |
13381 | ac_abs_top_builddir=$ac_pwd | |
13382 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
13383 | # for backward compatibility: | |
13384 | ac_top_builddir=$ac_top_build_prefix | |
5ba96b90 FCE |
13385 | |
13386 | case $srcdir in | |
7fbd9d09 | 13387 | .) # We are building in place. |
5ba96b90 | 13388 | ac_srcdir=. |
7fbd9d09 FCE |
13389 | ac_top_srcdir=$ac_top_builddir_sub |
13390 | ac_abs_top_srcdir=$ac_pwd ;; | |
13391 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
5ba96b90 | 13392 | ac_srcdir=$srcdir$ac_dir_suffix; |
7fbd9d09 FCE |
13393 | ac_top_srcdir=$srcdir |
13394 | ac_abs_top_srcdir=$srcdir ;; | |
13395 | *) # Relative name. | |
13396 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
13397 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
13398 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
5ba96b90 | 13399 | esac |
7fbd9d09 | 13400 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
5ba96b90 FCE |
13401 | |
13402 | ||
7fbd9d09 | 13403 | cd "$ac_dir" |
5ba96b90 FCE |
13404 | |
13405 | # Check for guested configure; otherwise get Cygnus style configure. | |
7fbd9d09 FCE |
13406 | if test -f "$ac_srcdir/configure.gnu"; then |
13407 | ac_sub_configure=$ac_srcdir/configure.gnu | |
13408 | elif test -f "$ac_srcdir/configure"; then | |
13409 | ac_sub_configure=$ac_srcdir/configure | |
13410 | elif test -f "$ac_srcdir/configure.in"; then | |
13411 | # This should be Cygnus configure. | |
13412 | ac_sub_configure=$ac_aux_dir/configure | |
5ba96b90 | 13413 | else |
1ef0423a | 13414 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5 |
0710d850 | 13415 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;} |
5ba96b90 FCE |
13416 | ac_sub_configure= |
13417 | fi | |
13418 | ||
13419 | # The recursion is here. | |
13420 | if test -n "$ac_sub_configure"; then | |
13421 | # Make the cache file name correct relative to the subdirectory. | |
13422 | case $cache_file in | |
13423 | [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;; | |
7fbd9d09 FCE |
13424 | *) # Relative name. |
13425 | ac_sub_cache_file=$ac_top_build_prefix$cache_file ;; | |
5ba96b90 FCE |
13426 | esac |
13427 | ||
1ef0423a | 13428 | { $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5 |
0710d850 | 13429 | $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;} |
5ba96b90 | 13430 | # The eval makes quoting arguments work. |
7fbd9d09 FCE |
13431 | eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \ |
13432 | --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" || | |
5d4aa1f5 | 13433 | as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5 |
5ba96b90 FCE |
13434 | fi |
13435 | ||
7fbd9d09 | 13436 | cd "$ac_popdir" |
5ba96b90 FCE |
13437 | done |
13438 | fi | |
0710d850 | 13439 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
1ef0423a | 13440 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 |
0710d850 DS |
13441 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} |
13442 | fi | |
5ba96b90 | 13443 | |
4d9087fc | 13444 | |
af29024d | 13445 | if test "${prefix}" = "/usr/local"; then |
1ef0423a | 13446 | { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5 |
0710d850 | 13447 | $as_echo "$as_me: " >&6;} |
1ef0423a | 13448 | { $as_echo "$as_me:${as_lineno-$LINENO}: For a private or temporary build of systemtap, we recommend" >&5 |
0710d850 | 13449 | $as_echo "$as_me: For a private or temporary build of systemtap, we recommend" >&6;} |
1ef0423a | 13450 | { $as_echo "$as_me:${as_lineno-$LINENO}: configuring with a prefix. For example, try" >&5 |
0710d850 | 13451 | $as_echo "$as_me: configuring with a prefix. For example, try" >&6;} |
1ef0423a | 13452 | { $as_echo "$as_me:${as_lineno-$LINENO}: $0 $ac_configure_args --prefix=$HOME/systemtap-${PACKAGE_VERSION}-$$" >&5 |
0710d850 | 13453 | $as_echo "$as_me: $0 $ac_configure_args --prefix=$HOME/systemtap-${PACKAGE_VERSION}-$$" >&6;} |
1ef0423a | 13454 | { $as_echo "$as_me:${as_lineno-$LINENO}: Running systemtap uninstalled, entirely out of the build tree," >&5 |
0710d850 | 13455 | $as_echo "$as_me: Running systemtap uninstalled, entirely out of the build tree," >&6;} |
1ef0423a | 13456 | { $as_echo "$as_me:${as_lineno-$LINENO}: is not supported." >&5 |
0710d850 | 13457 | $as_echo "$as_me: is not supported." >&6;} |
af29024d | 13458 | fi |