]>
Commit | Line | Data |
---|---|---|
2f1a1aea FCE |
1 | #! /bin/sh |
2 | # Guess values for system-dependent variables and create Makefiles. | |
c3de29bd | 3 | # Generated by GNU Autoconf 2.68 for systemtap 1.7. |
2f1a1aea | 4 | # |
306dd4f8 | 5 | # Report bugs to <systemtap@sourceware.org>. |
2f1a1aea | 6 | # |
1ef0423a | 7 | # |
7fbd9d09 | 8 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
5d4aa1f5 FCE |
9 | # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software |
10 | # Foundation, Inc. | |
1ef0423a FCE |
11 | # |
12 | # | |
2f1a1aea FCE |
13 | # This configure script is free software; the Free Software Foundation |
14 | # gives unlimited permission to copy, distribute and modify it. | |
1ef0423a FCE |
15 | ## -------------------- ## |
16 | ## M4sh Initialization. ## | |
17 | ## -------------------- ## | |
2f1a1aea | 18 | |
7fbd9d09 FCE |
19 | # Be more Bourne compatible |
20 | DUALCASE=1; export DUALCASE # for MKS sh | |
1ef0423a | 21 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : |
2f1a1aea FCE |
22 | emulate sh |
23 | NULLCMD=: | |
0710d850 | 24 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
2f1a1aea FCE |
25 | # is contrary to our usage. Disable this feature. |
26 | alias -g '${1+"$@"}'='"$@"' | |
7fbd9d09 FCE |
27 | setopt NO_GLOB_SUBST |
28 | else | |
1ef0423a FCE |
29 | case `(set -o) 2>/dev/null` in #( |
30 | *posix*) : | |
31 | set -o posix ;; #( | |
32 | *) : | |
33 | ;; | |
7fbd9d09 | 34 | esac |
7fbd9d09 FCE |
35 | fi |
36 | ||
37 | ||
0710d850 DS |
38 | as_nl=' |
39 | ' | |
40 | export as_nl | |
41 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
42 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
43 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
44 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
1ef0423a FCE |
45 | # Prefer a ksh shell builtin over an external printf program on Solaris, |
46 | # but without wasting forks for bash or zsh. | |
47 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
48 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
49 | as_echo='print -r --' | |
50 | as_echo_n='print -rn --' | |
51 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
0710d850 DS |
52 | as_echo='printf %s\n' |
53 | as_echo_n='printf %s' | |
54 | else | |
55 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
56 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
57 | as_echo_n='/usr/ucb/echo -n' | |
31f9baea | 58 | else |
0710d850 DS |
59 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
60 | as_echo_n_body='eval | |
61 | arg=$1; | |
1ef0423a | 62 | case $arg in #( |
0710d850 DS |
63 | *"$as_nl"*) |
64 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
65 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
66 | esac; | |
67 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
68 | ' | |
69 | export as_echo_n_body | |
70 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
31f9baea | 71 | fi |
0710d850 DS |
72 | export as_echo_body |
73 | as_echo='sh -c $as_echo_body as_echo' | |
74 | fi | |
75 | ||
76 | # The user is always right. | |
77 | if test "${PATH_SEPARATOR+set}" != set; then | |
78 | PATH_SEPARATOR=: | |
79 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
80 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
81 | PATH_SEPARATOR=';' | |
82 | } | |
2f1a1aea | 83 | fi |
2f1a1aea | 84 | |
2f1a1aea | 85 | |
7fbd9d09 FCE |
86 | # IFS |
87 | # We need space, tab and new line, in precisely that order. Quoting is | |
88 | # there to prevent editors from complaining about space-tab. | |
89 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
90 | # splitting by setting IFS to empty value.) | |
7fbd9d09 FCE |
91 | IFS=" "" $as_nl" |
92 | ||
93 | # Find who we are. Look in the path if we contain no directory separator. | |
c3de29bd | 94 | as_myself= |
1ef0423a | 95 | case $0 in #(( |
7fbd9d09 FCE |
96 | *[\\/]* ) as_myself=$0 ;; |
97 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
98 | for as_dir in $PATH | |
99 | do | |
100 | IFS=$as_save_IFS | |
101 | test -z "$as_dir" && as_dir=. | |
1ef0423a FCE |
102 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
103 | done | |
7fbd9d09 FCE |
104 | IFS=$as_save_IFS |
105 | ||
106 | ;; | |
107 | esac | |
108 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
109 | # in which case we are not to be found in the path. | |
110 | if test "x$as_myself" = x; then | |
111 | as_myself=$0 | |
112 | fi | |
113 | if test ! -f "$as_myself"; then | |
0710d850 | 114 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
1ef0423a | 115 | exit 1 |
7fbd9d09 FCE |
116 | fi |
117 | ||
1ef0423a FCE |
118 | # Unset variables that we do not need and which cause bugs (e.g. in |
119 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
120 | # suppresses any "Segmentation fault" message there. '((' could | |
121 | # trigger a bug in pdksh 5.2.14. | |
122 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
123 | do eval test x\${$as_var+set} = xset \ | |
124 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
7fbd9d09 | 125 | done |
2f1a1aea FCE |
126 | PS1='$ ' |
127 | PS2='> ' | |
128 | PS4='+ ' | |
129 | ||
130 | # NLS nuisances. | |
0710d850 DS |
131 | LC_ALL=C |
132 | export LC_ALL | |
133 | LANGUAGE=C | |
134 | export LANGUAGE | |
2f1a1aea | 135 | |
1ef0423a FCE |
136 | # CDPATH. |
137 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
138 | ||
139 | if test "x$CONFIG_SHELL" = x; then | |
140 | as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : | |
141 | emulate sh | |
142 | NULLCMD=: | |
143 | # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which | |
144 | # is contrary to our usage. Disable this feature. | |
145 | alias -g '\${1+\"\$@\"}'='\"\$@\"' | |
146 | setopt NO_GLOB_SUBST | |
147 | else | |
148 | case \`(set -o) 2>/dev/null\` in #( | |
149 | *posix*) : | |
150 | set -o posix ;; #( | |
151 | *) : | |
152 | ;; | |
153 | esac | |
154 | fi | |
155 | " | |
156 | as_required="as_fn_return () { (exit \$1); } | |
157 | as_fn_success () { as_fn_return 0; } | |
158 | as_fn_failure () { as_fn_return 1; } | |
159 | as_fn_ret_success () { return 0; } | |
160 | as_fn_ret_failure () { return 1; } | |
161 | ||
162 | exitcode=0 | |
163 | as_fn_success || { exitcode=1; echo as_fn_success failed.; } | |
164 | as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } | |
165 | as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } | |
166 | as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } | |
167 | if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : | |
168 | ||
169 | else | |
170 | exitcode=1; echo positional parameters were not saved. | |
171 | fi | |
172 | test x\$exitcode = x0 || exit 1" | |
173 | as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO | |
174 | as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO | |
175 | eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && | |
176 | test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 | |
177 | test \$(( 1 + 1 )) = 2 || exit 1" | |
178 | if (eval "$as_required") 2>/dev/null; then : | |
179 | as_have_required=yes | |
180 | else | |
181 | as_have_required=no | |
182 | fi | |
183 | if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : | |
184 | ||
185 | else | |
186 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
187 | as_found=false | |
188 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
189 | do | |
190 | IFS=$as_save_IFS | |
191 | test -z "$as_dir" && as_dir=. | |
192 | as_found=: | |
193 | case $as_dir in #( | |
194 | /*) | |
195 | for as_base in sh bash ksh sh5; do | |
196 | # Try only shells that exist, to save several forks. | |
197 | as_shell=$as_dir/$as_base | |
198 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && | |
199 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : | |
200 | CONFIG_SHELL=$as_shell as_have_required=yes | |
201 | if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : | |
202 | break 2 | |
203 | fi | |
204 | fi | |
205 | done;; | |
206 | esac | |
207 | as_found=false | |
208 | done | |
209 | $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && | |
210 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : | |
211 | CONFIG_SHELL=$SHELL as_have_required=yes | |
212 | fi; } | |
213 | IFS=$as_save_IFS | |
214 | ||
215 | ||
216 | if test "x$CONFIG_SHELL" != x; then : | |
217 | # We cannot yet assume a decent shell, so we have to provide a | |
218 | # neutralization value for shells without unset; and this also | |
219 | # works around shells that cannot unset nonexistent variables. | |
c3de29bd | 220 | # Preserve -v and -x to the replacement shell. |
1ef0423a FCE |
221 | BASH_ENV=/dev/null |
222 | ENV=/dev/null | |
223 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV | |
224 | export CONFIG_SHELL | |
c3de29bd LB |
225 | case $- in # (((( |
226 | *v*x* | *x*v* ) as_opts=-vx ;; | |
227 | *v* ) as_opts=-v ;; | |
228 | *x* ) as_opts=-x ;; | |
229 | * ) as_opts= ;; | |
230 | esac | |
231 | exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"} | |
1ef0423a FCE |
232 | fi |
233 | ||
234 | if test x$as_have_required = xno; then : | |
235 | $as_echo "$0: This script requires a shell more modern than all" | |
236 | $as_echo "$0: the shells that I found on your system." | |
237 | if test x${ZSH_VERSION+set} = xset ; then | |
238 | $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" | |
239 | $as_echo "$0: be upgraded to zsh 4.3.4 or later." | |
240 | else | |
241 | $as_echo "$0: Please tell bug-autoconf@gnu.org and | |
fcca127c FCE |
242 | $0: systemtap@sourceware.org about your system, including |
243 | $0: any error possibly output before this message. Then | |
244 | $0: install a modern shell, or manually run the script | |
245 | $0: under such a shell if you do have one." | |
1ef0423a FCE |
246 | fi |
247 | exit 1 | |
248 | fi | |
249 | fi | |
250 | fi | |
251 | SHELL=${CONFIG_SHELL-/bin/sh} | |
252 | export SHELL | |
253 | # Unset more variables known to interfere with behavior of common tools. | |
254 | CLICOLOR_FORCE= GREP_OPTIONS= | |
255 | unset CLICOLOR_FORCE GREP_OPTIONS | |
256 | ||
257 | ## --------------------- ## | |
258 | ## M4sh Shell Functions. ## | |
259 | ## --------------------- ## | |
260 | # as_fn_unset VAR | |
261 | # --------------- | |
262 | # Portably unset VAR. | |
263 | as_fn_unset () | |
264 | { | |
265 | { eval $1=; unset $1;} | |
266 | } | |
267 | as_unset=as_fn_unset | |
268 | ||
269 | # as_fn_set_status STATUS | |
270 | # ----------------------- | |
271 | # Set $? to STATUS, without forking. | |
272 | as_fn_set_status () | |
273 | { | |
274 | return $1 | |
275 | } # as_fn_set_status | |
276 | ||
277 | # as_fn_exit STATUS | |
278 | # ----------------- | |
279 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
280 | as_fn_exit () | |
281 | { | |
282 | set +e | |
283 | as_fn_set_status $1 | |
284 | exit $1 | |
285 | } # as_fn_exit | |
286 | ||
287 | # as_fn_mkdir_p | |
288 | # ------------- | |
289 | # Create "$as_dir" as a directory, including parents if necessary. | |
290 | as_fn_mkdir_p () | |
291 | { | |
292 | ||
293 | case $as_dir in #( | |
294 | -*) as_dir=./$as_dir;; | |
295 | esac | |
296 | test -d "$as_dir" || eval $as_mkdir_p || { | |
297 | as_dirs= | |
298 | while :; do | |
299 | case $as_dir in #( | |
300 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
301 | *) as_qdir=$as_dir;; | |
302 | esac | |
303 | as_dirs="'$as_qdir' $as_dirs" | |
304 | as_dir=`$as_dirname -- "$as_dir" || | |
305 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
306 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
307 | X"$as_dir" : 'X\(//\)$' \| \ | |
308 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
309 | $as_echo X"$as_dir" | | |
310 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
311 | s//\1/ | |
312 | q | |
313 | } | |
314 | /^X\(\/\/\)[^/].*/{ | |
315 | s//\1/ | |
316 | q | |
317 | } | |
318 | /^X\(\/\/\)$/{ | |
319 | s//\1/ | |
320 | q | |
321 | } | |
322 | /^X\(\/\).*/{ | |
323 | s//\1/ | |
324 | q | |
325 | } | |
326 | s/.*/./; q'` | |
327 | test -d "$as_dir" && break | |
328 | done | |
329 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
5d4aa1f5 | 330 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
1ef0423a FCE |
331 | |
332 | ||
333 | } # as_fn_mkdir_p | |
334 | # as_fn_append VAR VALUE | |
335 | # ---------------------- | |
336 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
337 | # advantage of any shell optimizations that allow amortized linear growth over | |
338 | # repeated appends, instead of the typical quadratic growth present in naive | |
339 | # implementations. | |
340 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
341 | eval 'as_fn_append () | |
342 | { | |
343 | eval $1+=\$2 | |
344 | }' | |
345 | else | |
346 | as_fn_append () | |
347 | { | |
348 | eval $1=\$$1\$2 | |
349 | } | |
350 | fi # as_fn_append | |
351 | ||
352 | # as_fn_arith ARG... | |
353 | # ------------------ | |
354 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
355 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
356 | # must be portable across $(()) and expr. | |
357 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
358 | eval 'as_fn_arith () | |
359 | { | |
360 | as_val=$(( $* )) | |
361 | }' | |
362 | else | |
363 | as_fn_arith () | |
364 | { | |
365 | as_val=`expr "$@" || test $? -eq 1` | |
366 | } | |
367 | fi # as_fn_arith | |
368 | ||
369 | ||
5d4aa1f5 FCE |
370 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
371 | # ---------------------------------------- | |
1ef0423a FCE |
372 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
373 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
5d4aa1f5 | 374 | # script with STATUS, using 1 if that was 0. |
1ef0423a FCE |
375 | as_fn_error () |
376 | { | |
5d4aa1f5 FCE |
377 | as_status=$1; test $as_status -eq 0 && as_status=1 |
378 | if test "$4"; then | |
379 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
380 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | |
1ef0423a | 381 | fi |
5d4aa1f5 | 382 | $as_echo "$as_me: error: $2" >&2 |
1ef0423a FCE |
383 | as_fn_exit $as_status |
384 | } # as_fn_error | |
385 | ||
412e1bf7 FCE |
386 | if expr a : '\(a\)' >/dev/null 2>&1 && |
387 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
388 | as_expr=expr | |
389 | else | |
390 | as_expr=false | |
391 | fi | |
392 | ||
393 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then | |
394 | as_basename=basename | |
395 | else | |
396 | as_basename=false | |
397 | fi | |
398 | ||
1ef0423a FCE |
399 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
400 | as_dirname=dirname | |
401 | else | |
402 | as_dirname=false | |
403 | fi | |
412e1bf7 | 404 | |
412e1bf7 FCE |
405 | as_me=`$as_basename -- "$0" || |
406 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
407 | X"$0" : 'X\(//\)$' \| \ | |
408 | X"$0" : 'X\(/\)' \| . 2>/dev/null || | |
0710d850 | 409 | $as_echo X/"$0" | |
412e1bf7 FCE |
410 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
411 | s//\1/ | |
412 | q | |
413 | } | |
414 | /^X\/\(\/\/\)$/{ | |
415 | s//\1/ | |
416 | q | |
417 | } | |
418 | /^X\/\(\/\).*/{ | |
419 | s//\1/ | |
420 | q | |
421 | } | |
422 | s/.*/./; q'` | |
423 | ||
1ef0423a FCE |
424 | # Avoid depending upon Character Ranges. |
425 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
426 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
427 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
428 | as_cr_digits='0123456789' | |
429 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
412e1bf7 | 430 | |
5e0d2ebf | 431 | |
1ef0423a FCE |
432 | as_lineno_1=$LINENO as_lineno_1a=$LINENO |
433 | as_lineno_2=$LINENO as_lineno_2a=$LINENO | |
434 | eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && | |
435 | test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { | |
436 | # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) | |
437 | sed -n ' | |
438 | p | |
439 | /[$]LINENO/= | |
440 | ' <$as_myself | | |
441 | sed ' | |
442 | s/[$]LINENO.*/&-/ | |
443 | t lineno | |
444 | b | |
445 | :lineno | |
446 | N | |
447 | :loop | |
448 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
449 | t loop | |
450 | s/-\n.*// | |
451 | ' >$as_me.lineno && | |
452 | chmod +x "$as_me.lineno" || | |
453 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } | |
412e1bf7 | 454 | |
1ef0423a FCE |
455 | # Don't try to exec as it changes $[0], causing all sort of problems |
456 | # (the dirname of $[0] is not the place where we might find the | |
457 | # original and so on. Autoconf is especially sensitive to this). | |
458 | . "./$as_me.lineno" | |
459 | # Exit status is that of the last command. | |
460 | exit | |
412e1bf7 | 461 | } |
5e0d2ebf | 462 | |
1ef0423a FCE |
463 | ECHO_C= ECHO_N= ECHO_T= |
464 | case `echo -n x` in #((((( | |
465 | -n*) | |
466 | case `echo 'xy\c'` in | |
467 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
468 | xy) ECHO_C='\c';; | |
469 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
470 | ECHO_T=' ';; | |
471 | esac;; | |
472 | *) | |
473 | ECHO_N='-n';; | |
474 | esac | |
5e5aee9f | 475 | |
1ef0423a FCE |
476 | rm -f conf$$ conf$$.exe conf$$.file |
477 | if test -d conf$$.dir; then | |
478 | rm -f conf$$.dir/conf$$.file | |
479 | else | |
480 | rm -f conf$$.dir | |
481 | mkdir conf$$.dir 2>/dev/null | |
412e1bf7 | 482 | fi |
1ef0423a FCE |
483 | if (echo >conf$$.file) 2>/dev/null; then |
484 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
485 | as_ln_s='ln -s' | |
486 | # ... but there are two gotchas: | |
487 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
488 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
489 | # In both cases, we have to default to `cp -p'. | |
490 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
491 | as_ln_s='cp -p' | |
492 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
493 | as_ln_s=ln | |
494 | else | |
495 | as_ln_s='cp -p' | |
496 | fi | |
ec1a2239 | 497 | else |
1ef0423a | 498 | as_ln_s='cp -p' |
e6364d79 | 499 | fi |
1ef0423a FCE |
500 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
501 | rmdir conf$$.dir 2>/dev/null | |
e6364d79 | 502 | |
1ef0423a FCE |
503 | if mkdir -p . 2>/dev/null; then |
504 | as_mkdir_p='mkdir -p "$as_dir"' | |
505 | else | |
506 | test -d ./-p && rmdir ./-p | |
507 | as_mkdir_p=false | |
5e5aee9f FCE |
508 | fi |
509 | ||
1ef0423a FCE |
510 | if test -x / >/dev/null 2>&1; then |
511 | as_test_x='test -x' | |
412e1bf7 | 512 | else |
1ef0423a FCE |
513 | if ls -dL / >/dev/null 2>&1; then |
514 | as_ls_L_option=L | |
515 | else | |
516 | as_ls_L_option= | |
517 | fi | |
518 | as_test_x=' | |
519 | eval sh -c '\'' | |
520 | if test -d "$1"; then | |
521 | test -d "$1/."; | |
522 | else | |
523 | case $1 in #( | |
524 | -*)set "./$1";; | |
525 | esac; | |
526 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( | |
527 | ???[sx]*):;;*)false;;esac;fi | |
528 | '\'' sh | |
529 | ' | |
412e1bf7 | 530 | fi |
1ef0423a | 531 | as_executable_p=$as_test_x |
412e1bf7 | 532 | |
1ef0423a FCE |
533 | # Sed expression to map a string onto a valid CPP name. |
534 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
412e1bf7 | 535 | |
1ef0423a FCE |
536 | # Sed expression to map a string onto a valid variable name. |
537 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
7fbd9d09 FCE |
538 | |
539 | ||
1ef0423a FCE |
540 | test -n "$DJDIR" || exec 7<&0 </dev/null |
541 | exec 6>&1 | |
5e5aee9f FCE |
542 | |
543 | # Name of the host. | |
5d4aa1f5 | 544 | # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, |
2f1a1aea FCE |
545 | # so uname gets run too. |
546 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
547 | ||
2f1a1aea FCE |
548 | # |
549 | # Initializations. | |
550 | # | |
551 | ac_default_prefix=/usr/local | |
7fbd9d09 | 552 | ac_clean_files= |
2f1a1aea | 553 | ac_config_libobj_dir=. |
7fbd9d09 | 554 | LIBOBJS= |
2f1a1aea FCE |
555 | cross_compiling=no |
556 | subdirs= | |
557 | MFLAGS= | |
558 | MAKEFLAGS= | |
2f1a1aea | 559 | |
2f1a1aea FCE |
560 | # Identity of this package. |
561 | PACKAGE_NAME='systemtap' | |
562 | PACKAGE_TARNAME='systemtap' | |
94d406fc SC |
563 | PACKAGE_VERSION='1.7' |
564 | PACKAGE_STRING='systemtap 1.7' | |
306dd4f8 | 565 | PACKAGE_BUGREPORT='systemtap@sourceware.org' |
1ef0423a | 566 | PACKAGE_URL='' |
2f1a1aea FCE |
567 | |
568 | # Factoring default headers for most tests. | |
569 | ac_includes_default="\ | |
570 | #include <stdio.h> | |
7fbd9d09 | 571 | #ifdef HAVE_SYS_TYPES_H |
2f1a1aea FCE |
572 | # include <sys/types.h> |
573 | #endif | |
7fbd9d09 | 574 | #ifdef HAVE_SYS_STAT_H |
2f1a1aea FCE |
575 | # include <sys/stat.h> |
576 | #endif | |
7fbd9d09 | 577 | #ifdef STDC_HEADERS |
2f1a1aea FCE |
578 | # include <stdlib.h> |
579 | # include <stddef.h> | |
580 | #else | |
7fbd9d09 | 581 | # ifdef HAVE_STDLIB_H |
2f1a1aea FCE |
582 | # include <stdlib.h> |
583 | # endif | |
584 | #endif | |
7fbd9d09 FCE |
585 | #ifdef HAVE_STRING_H |
586 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H | |
2f1a1aea FCE |
587 | # include <memory.h> |
588 | # endif | |
589 | # include <string.h> | |
590 | #endif | |
7fbd9d09 | 591 | #ifdef HAVE_STRINGS_H |
2f1a1aea FCE |
592 | # include <strings.h> |
593 | #endif | |
7fbd9d09 | 594 | #ifdef HAVE_INTTYPES_H |
2f1a1aea | 595 | # include <inttypes.h> |
2f1a1aea | 596 | #endif |
7fbd9d09 FCE |
597 | #ifdef HAVE_STDINT_H |
598 | # include <stdint.h> | |
599 | #endif | |
600 | #ifdef HAVE_UNISTD_H | |
2f1a1aea FCE |
601 | # include <unistd.h> |
602 | #endif" | |
603 | ||
8f223b3e | 604 | gt_needs= |
0710d850 DS |
605 | enable_option_checking=no |
606 | ac_subst_vars='am__EXEEXT_FALSE | |
607 | am__EXEEXT_TRUE | |
608 | LTLIBOBJS | |
609 | LIBOBJS | |
610 | subdirs | |
62c8a962 | 611 | STAP_PREFIX |
8f223b3e | 612 | LOCALEDIR |
62c8a962 | 613 | ENABLE_NLS |
f9794ee4 | 614 | support_section_question |
0710d850 DS |
615 | DATE |
616 | stap_LIBS | |
617 | elfutils_abs_srcdir | |
618 | BUILD_ELFUTILS_FALSE | |
619 | BUILD_ELFUTILS_TRUE | |
0710d850 DS |
620 | BUILD_GRAPHER_FALSE |
621 | BUILD_GRAPHER_TRUE | |
622 | CXXCPP | |
623 | libglade_LIBS | |
624 | libglade_CFLAGS | |
625 | gtkmm_LIBS | |
626 | gtkmm_CFLAGS | |
2dce8c42 DB |
627 | HAVE_AVAHI_FALSE |
628 | HAVE_AVAHI_TRUE | |
28f121c3 DEP |
629 | avahi_LIBS |
630 | avahi_CFLAGS | |
0710d850 DS |
631 | BUILD_SERVER_FALSE |
632 | BUILD_SERVER_TRUE | |
a0e2728a DB |
633 | HAVE_NSS_FALSE |
634 | HAVE_NSS_TRUE | |
28f121c3 | 635 | nss_LIBS |
0710d850 | 636 | nss_CFLAGS |
28f121c3 DEP |
637 | PKG_CONFIG_LIBDIR |
638 | PKG_CONFIG_PATH | |
639 | PKG_CONFIG | |
0710d850 DS |
640 | BUILD_PDFREFDOCS_FALSE |
641 | BUILD_PDFREFDOCS_TRUE | |
642 | XMLTO_STRINGPARAM_FALSE | |
643 | XMLTO_STRINGPARAM_TRUE | |
644 | BUILD_REFDOCS_FALSE | |
645 | BUILD_REFDOCS_TRUE | |
646 | have_xmlto | |
53ade4da MW |
647 | PUBLICAN_BRAND |
648 | BUILD_PUBLICAN_FALSE | |
649 | BUILD_PUBLICAN_TRUE | |
650 | have_publican | |
0710d850 DS |
651 | BUILD_DOCS_FALSE |
652 | BUILD_DOCS_TRUE | |
653 | have_latex2html | |
654 | have_ps2pdf | |
655 | have_dvips | |
656 | have_latex | |
657 | BUILD_CRASHMOD_FALSE | |
658 | BUILD_CRASHMOD_TRUE | |
659 | staplog_CPPFLAGS | |
660 | BUILD_TRANSLATOR_FALSE | |
661 | BUILD_TRANSLATOR_TRUE | |
662 | sqlite3_LIBS | |
663 | PIECXXFLAGS | |
664 | PIECFLAGS | |
665 | PIELDFLAGS | |
8f223b3e FCE |
666 | POSUB |
667 | LTLIBINTL | |
668 | LIBINTL | |
669 | INTLLIBS | |
670 | LTLIBICONV | |
671 | LIBICONV | |
8f223b3e FCE |
672 | host_os |
673 | host_vendor | |
674 | host_cpu | |
675 | host | |
676 | build_os | |
677 | build_vendor | |
678 | build_cpu | |
679 | build | |
680 | XGETTEXT_EXTRA_OPTIONS | |
681 | MSGMERGE | |
682 | XGETTEXT_015 | |
683 | XGETTEXT | |
684 | GMSGFMT_015 | |
685 | MSGFMT_015 | |
686 | GMSGFMT | |
687 | MSGFMT | |
688 | GETTEXT_MACRO_VERSION | |
689 | USE_NLS | |
0710d850 DS |
690 | RANLIB |
691 | ANSI2KNR | |
692 | U | |
0710d850 DS |
693 | am__fastdepCXX_FALSE |
694 | am__fastdepCXX_TRUE | |
695 | CXXDEPMODE | |
696 | ac_ct_CXX | |
697 | CXXFLAGS | |
698 | CXX | |
8f223b3e FCE |
699 | LN_S |
700 | EGREP | |
701 | GREP | |
702 | CPP | |
0710d850 DS |
703 | am__fastdepCC_FALSE |
704 | am__fastdepCC_TRUE | |
705 | CCDEPMODE | |
706 | AMDEPBACKSLASH | |
707 | AMDEP_FALSE | |
708 | AMDEP_TRUE | |
709 | am__quote | |
710 | am__include | |
711 | DEPDIR | |
712 | OBJEXT | |
713 | EXEEXT | |
714 | ac_ct_CC | |
715 | CPPFLAGS | |
716 | LDFLAGS | |
717 | CFLAGS | |
718 | CC | |
0710d850 DS |
719 | AM_BACKSLASH |
720 | AM_DEFAULT_VERBOSITY | |
31f9baea | 721 | MAINT |
0710d850 DS |
722 | MAINTAINER_MODE_FALSE |
723 | MAINTAINER_MODE_TRUE | |
724 | am__untar | |
725 | am__tar | |
726 | AMTAR | |
727 | am__leading_dot | |
728 | SET_MAKE | |
729 | AWK | |
730 | mkdir_p | |
7fbd9d09 | 731 | MKDIR_P |
0710d850 DS |
732 | INSTALL_STRIP_PROGRAM |
733 | STRIP | |
734 | install_sh | |
735 | MAKEINFO | |
736 | AUTOHEADER | |
737 | AUTOMAKE | |
738 | AUTOCONF | |
739 | ACLOCAL | |
740 | VERSION | |
741 | PACKAGE | |
742 | CYGPATH_W | |
743 | am__isrc | |
744 | INSTALL_DATA | |
745 | INSTALL_SCRIPT | |
746 | INSTALL_PROGRAM | |
747 | target_alias | |
748 | host_alias | |
749 | build_alias | |
750 | LIBS | |
751 | ECHO_T | |
752 | ECHO_N | |
753 | ECHO_C | |
754 | DEFS | |
755 | mandir | |
756 | localedir | |
757 | libdir | |
758 | psdir | |
759 | pdfdir | |
760 | dvidir | |
761 | htmldir | |
762 | infodir | |
763 | docdir | |
764 | oldincludedir | |
765 | includedir | |
766 | localstatedir | |
767 | sharedstatedir | |
768 | sysconfdir | |
769 | datadir | |
770 | datarootdir | |
771 | libexecdir | |
772 | sbindir | |
773 | bindir | |
774 | program_transform_name | |
775 | prefix | |
776 | exec_prefix | |
1ef0423a | 777 | PACKAGE_URL |
0710d850 DS |
778 | PACKAGE_BUGREPORT |
779 | PACKAGE_STRING | |
780 | PACKAGE_VERSION | |
781 | PACKAGE_TARNAME | |
782 | PACKAGE_NAME | |
783 | PATH_SEPARATOR | |
784 | SHELL' | |
2f1a1aea | 785 | ac_subst_files='' |
0710d850 DS |
786 | ac_user_opts=' |
787 | enable_option_checking | |
788 | enable_maintainer_mode | |
789 | enable_silent_rules | |
790 | enable_dependency_tracking | |
8f223b3e FCE |
791 | enable_nls |
792 | with_gnu_ld | |
793 | enable_rpath | |
794 | with_libiconv_prefix | |
795 | with_libintl_prefix | |
0710d850 | 796 | enable_prologues |
0f5d597d | 797 | enable_sdt_probes |
0710d850 DS |
798 | enable_ssp |
799 | enable_pie | |
800 | enable_sqlite | |
801 | enable_translator | |
802 | enable_crash | |
803 | enable_docs | |
53ade4da MW |
804 | enable_publican |
805 | with_publican_brand | |
0710d850 | 806 | enable_refdocs |
28f121c3 | 807 | with_nss |
0710d850 | 808 | enable_server |
28f121c3 | 809 | with_avahi |
0710d850 DS |
810 | enable_grapher |
811 | with_rpm | |
812 | with_elfutils | |
813 | ' | |
7fbd9d09 FCE |
814 | ac_precious_vars='build_alias |
815 | host_alias | |
816 | target_alias | |
817 | CC | |
818 | CFLAGS | |
819 | LDFLAGS | |
820 | LIBS | |
821 | CPPFLAGS | |
8f223b3e | 822 | CPP |
7fbd9d09 FCE |
823 | CXX |
824 | CXXFLAGS | |
825 | CCC | |
1087b83f | 826 | PKG_CONFIG |
5d4aa1f5 FCE |
827 | PKG_CONFIG_PATH |
828 | PKG_CONFIG_LIBDIR | |
28f121c3 DEP |
829 | nss_CFLAGS |
830 | nss_LIBS | |
831 | avahi_CFLAGS | |
832 | avahi_LIBS | |
c3f070d9 DS |
833 | gtkmm_CFLAGS |
834 | gtkmm_LIBS | |
f8a49389 DS |
835 | libglade_CFLAGS |
836 | libglade_LIBS | |
7f9ad862 | 837 | CXXCPP' |
fcca127c | 838 | ac_subdirs_all='testsuite runtime/staprun' |
2f1a1aea FCE |
839 | |
840 | # Initialize some variables set by options. | |
841 | ac_init_help= | |
842 | ac_init_version=false | |
0710d850 DS |
843 | ac_unrecognized_opts= |
844 | ac_unrecognized_sep= | |
2f1a1aea FCE |
845 | # The variables have the same names as the options, with |
846 | # dashes changed to underlines. | |
847 | cache_file=/dev/null | |
848 | exec_prefix=NONE | |
849 | no_create= | |
850 | no_recursion= | |
851 | prefix=NONE | |
852 | program_prefix=NONE | |
853 | program_suffix=NONE | |
854 | program_transform_name=s,x,x, | |
855 | silent= | |
856 | site= | |
857 | srcdir= | |
858 | verbose= | |
859 | x_includes=NONE | |
860 | x_libraries=NONE | |
861 | ||
862 | # Installation directory options. | |
863 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
864 | # and all the variables that are supposed to be based on exec_prefix | |
865 | # by default will actually change. | |
866 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
7fbd9d09 | 867 | # (The list follows the same order as the GNU Coding Standards.) |
2f1a1aea FCE |
868 | bindir='${exec_prefix}/bin' |
869 | sbindir='${exec_prefix}/sbin' | |
870 | libexecdir='${exec_prefix}/libexec' | |
7fbd9d09 FCE |
871 | datarootdir='${prefix}/share' |
872 | datadir='${datarootdir}' | |
2f1a1aea FCE |
873 | sysconfdir='${prefix}/etc' |
874 | sharedstatedir='${prefix}/com' | |
875 | localstatedir='${prefix}/var' | |
2f1a1aea FCE |
876 | includedir='${prefix}/include' |
877 | oldincludedir='/usr/include' | |
7fbd9d09 FCE |
878 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
879 | infodir='${datarootdir}/info' | |
880 | htmldir='${docdir}' | |
881 | dvidir='${docdir}' | |
882 | pdfdir='${docdir}' | |
883 | psdir='${docdir}' | |
884 | libdir='${exec_prefix}/lib' | |
885 | localedir='${datarootdir}/locale' | |
886 | mandir='${datarootdir}/man' | |
2f1a1aea FCE |
887 | |
888 | ac_prev= | |
7fbd9d09 | 889 | ac_dashdash= |
2f1a1aea FCE |
890 | for ac_option |
891 | do | |
892 | # If the previous option needs an argument, assign it. | |
893 | if test -n "$ac_prev"; then | |
7fbd9d09 | 894 | eval $ac_prev=\$ac_option |
2f1a1aea FCE |
895 | ac_prev= |
896 | continue | |
897 | fi | |
898 | ||
7fbd9d09 | 899 | case $ac_option in |
c3de29bd LB |
900 | *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
901 | *=) ac_optarg= ;; | |
902 | *) ac_optarg=yes ;; | |
7fbd9d09 | 903 | esac |
2f1a1aea FCE |
904 | |
905 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
906 | ||
7fbd9d09 FCE |
907 | case $ac_dashdash$ac_option in |
908 | --) | |
909 | ac_dashdash=yes ;; | |
2f1a1aea FCE |
910 | |
911 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
912 | ac_prev=bindir ;; | |
913 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
914 | bindir=$ac_optarg ;; | |
915 | ||
916 | -build | --build | --buil | --bui | --bu) | |
917 | ac_prev=build_alias ;; | |
918 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | |
919 | build_alias=$ac_optarg ;; | |
920 | ||
921 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
922 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
923 | ac_prev=cache_file ;; | |
924 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
925 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
926 | cache_file=$ac_optarg ;; | |
927 | ||
928 | --config-cache | -C) | |
929 | cache_file=config.cache ;; | |
930 | ||
7fbd9d09 | 931 | -datadir | --datadir | --datadi | --datad) |
2f1a1aea | 932 | ac_prev=datadir ;; |
7fbd9d09 | 933 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
2f1a1aea FCE |
934 | datadir=$ac_optarg ;; |
935 | ||
7fbd9d09 FCE |
936 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
937 | | --dataroo | --dataro | --datar) | |
938 | ac_prev=datarootdir ;; | |
939 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
940 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
941 | datarootdir=$ac_optarg ;; | |
942 | ||
2f1a1aea | 943 | -disable-* | --disable-*) |
0710d850 | 944 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
2f1a1aea | 945 | # Reject names that are not valid shell variable names. |
0710d850 | 946 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
5d4aa1f5 | 947 | as_fn_error $? "invalid feature name: $ac_useropt" |
0710d850 DS |
948 | ac_useropt_orig=$ac_useropt |
949 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
950 | case $ac_user_opts in | |
951 | *" | |
952 | "enable_$ac_useropt" | |
953 | "*) ;; | |
954 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | |
955 | ac_unrecognized_sep=', ';; | |
956 | esac | |
957 | eval enable_$ac_useropt=no ;; | |
7fbd9d09 FCE |
958 | |
959 | -docdir | --docdir | --docdi | --doc | --do) | |
960 | ac_prev=docdir ;; | |
961 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
962 | docdir=$ac_optarg ;; | |
963 | ||
964 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
965 | ac_prev=dvidir ;; | |
966 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
967 | dvidir=$ac_optarg ;; | |
2f1a1aea FCE |
968 | |
969 | -enable-* | --enable-*) | |
0710d850 | 970 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
2f1a1aea | 971 | # Reject names that are not valid shell variable names. |
0710d850 | 972 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
5d4aa1f5 | 973 | as_fn_error $? "invalid feature name: $ac_useropt" |
0710d850 DS |
974 | ac_useropt_orig=$ac_useropt |
975 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
976 | case $ac_user_opts in | |
977 | *" | |
978 | "enable_$ac_useropt" | |
979 | "*) ;; | |
980 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | |
981 | ac_unrecognized_sep=', ';; | |
982 | esac | |
983 | eval enable_$ac_useropt=\$ac_optarg ;; | |
2f1a1aea FCE |
984 | |
985 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
986 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
987 | | --exec | --exe | --ex) | |
988 | ac_prev=exec_prefix ;; | |
989 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
990 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
991 | | --exec=* | --exe=* | --ex=*) | |
992 | exec_prefix=$ac_optarg ;; | |
993 | ||
994 | -gas | --gas | --ga | --g) | |
995 | # Obsolete; use --with-gas. | |
996 | with_gas=yes ;; | |
997 | ||
998 | -help | --help | --hel | --he | -h) | |
999 | ac_init_help=long ;; | |
1000 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
1001 | ac_init_help=recursive ;; | |
1002 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
1003 | ac_init_help=short ;; | |
1004 | ||
1005 | -host | --host | --hos | --ho) | |
1006 | ac_prev=host_alias ;; | |
1007 | -host=* | --host=* | --hos=* | --ho=*) | |
1008 | host_alias=$ac_optarg ;; | |
1009 | ||
7fbd9d09 FCE |
1010 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
1011 | ac_prev=htmldir ;; | |
1012 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
1013 | | --ht=*) | |
1014 | htmldir=$ac_optarg ;; | |
1015 | ||
2f1a1aea FCE |
1016 | -includedir | --includedir | --includedi | --included | --include \ |
1017 | | --includ | --inclu | --incl | --inc) | |
1018 | ac_prev=includedir ;; | |
1019 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
1020 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
1021 | includedir=$ac_optarg ;; | |
1022 | ||
1023 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
1024 | ac_prev=infodir ;; | |
1025 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
1026 | infodir=$ac_optarg ;; | |
1027 | ||
1028 | -libdir | --libdir | --libdi | --libd) | |
1029 | ac_prev=libdir ;; | |
1030 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
1031 | libdir=$ac_optarg ;; | |
1032 | ||
1033 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
1034 | | --libexe | --libex | --libe) | |
1035 | ac_prev=libexecdir ;; | |
1036 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
1037 | | --libexe=* | --libex=* | --libe=*) | |
1038 | libexecdir=$ac_optarg ;; | |
1039 | ||
7fbd9d09 FCE |
1040 | -localedir | --localedir | --localedi | --localed | --locale) |
1041 | ac_prev=localedir ;; | |
1042 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
1043 | localedir=$ac_optarg ;; | |
1044 | ||
2f1a1aea | 1045 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
7fbd9d09 | 1046 | | --localstate | --localstat | --localsta | --localst | --locals) |
2f1a1aea FCE |
1047 | ac_prev=localstatedir ;; |
1048 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
7fbd9d09 | 1049 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
2f1a1aea FCE |
1050 | localstatedir=$ac_optarg ;; |
1051 | ||
1052 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
1053 | ac_prev=mandir ;; | |
1054 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
1055 | mandir=$ac_optarg ;; | |
1056 | ||
1057 | -nfp | --nfp | --nf) | |
1058 | # Obsolete; use --without-fp. | |
1059 | with_fp=no ;; | |
1060 | ||
1061 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
1062 | | --no-cr | --no-c | -n) | |
1063 | no_create=yes ;; | |
1064 | ||
1065 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
1066 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
1067 | no_recursion=yes ;; | |
1068 | ||
1069 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
1070 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
1071 | | --oldin | --oldi | --old | --ol | --o) | |
1072 | ac_prev=oldincludedir ;; | |
1073 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
1074 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
1075 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
1076 | oldincludedir=$ac_optarg ;; | |
1077 | ||
1078 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
1079 | ac_prev=prefix ;; | |
1080 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
1081 | prefix=$ac_optarg ;; | |
1082 | ||
1083 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
1084 | | --program-pre | --program-pr | --program-p) | |
1085 | ac_prev=program_prefix ;; | |
1086 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
1087 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
1088 | program_prefix=$ac_optarg ;; | |
1089 | ||
1090 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
1091 | | --program-suf | --program-su | --program-s) | |
1092 | ac_prev=program_suffix ;; | |
1093 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
1094 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
1095 | program_suffix=$ac_optarg ;; | |
1096 | ||
1097 | -program-transform-name | --program-transform-name \ | |
1098 | | --program-transform-nam | --program-transform-na \ | |
1099 | | --program-transform-n | --program-transform- \ | |
1100 | | --program-transform | --program-transfor \ | |
1101 | | --program-transfo | --program-transf \ | |
1102 | | --program-trans | --program-tran \ | |
1103 | | --progr-tra | --program-tr | --program-t) | |
1104 | ac_prev=program_transform_name ;; | |
1105 | -program-transform-name=* | --program-transform-name=* \ | |
1106 | | --program-transform-nam=* | --program-transform-na=* \ | |
1107 | | --program-transform-n=* | --program-transform-=* \ | |
1108 | | --program-transform=* | --program-transfor=* \ | |
1109 | | --program-transfo=* | --program-transf=* \ | |
1110 | | --program-trans=* | --program-tran=* \ | |
1111 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
1112 | program_transform_name=$ac_optarg ;; | |
1113 | ||
7fbd9d09 FCE |
1114 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
1115 | ac_prev=pdfdir ;; | |
1116 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
1117 | pdfdir=$ac_optarg ;; | |
1118 | ||
1119 | -psdir | --psdir | --psdi | --psd | --ps) | |
1120 | ac_prev=psdir ;; | |
1121 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
1122 | psdir=$ac_optarg ;; | |
1123 | ||
2f1a1aea FCE |
1124 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
1125 | | -silent | --silent | --silen | --sile | --sil) | |
1126 | silent=yes ;; | |
1127 | ||
1128 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
1129 | ac_prev=sbindir ;; | |
1130 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
1131 | | --sbi=* | --sb=*) | |
1132 | sbindir=$ac_optarg ;; | |
1133 | ||
1134 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
1135 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
1136 | | --sharedst | --shareds | --shared | --share | --shar \ | |
1137 | | --sha | --sh) | |
1138 | ac_prev=sharedstatedir ;; | |
1139 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
1140 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
1141 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
1142 | | --sha=* | --sh=*) | |
1143 | sharedstatedir=$ac_optarg ;; | |
1144 | ||
1145 | -site | --site | --sit) | |
1146 | ac_prev=site ;; | |
1147 | -site=* | --site=* | --sit=*) | |
1148 | site=$ac_optarg ;; | |
1149 | ||
1150 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
1151 | ac_prev=srcdir ;; | |
1152 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
1153 | srcdir=$ac_optarg ;; | |
1154 | ||
1155 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
1156 | | --syscon | --sysco | --sysc | --sys | --sy) | |
1157 | ac_prev=sysconfdir ;; | |
1158 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
1159 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
1160 | sysconfdir=$ac_optarg ;; | |
1161 | ||
1162 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
1163 | ac_prev=target_alias ;; | |
1164 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | |
1165 | target_alias=$ac_optarg ;; | |
1166 | ||
1167 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1168 | verbose=yes ;; | |
1169 | ||
1170 | -version | --version | --versio | --versi | --vers | -V) | |
1171 | ac_init_version=: ;; | |
1172 | ||
1173 | -with-* | --with-*) | |
0710d850 | 1174 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
2f1a1aea | 1175 | # Reject names that are not valid shell variable names. |
0710d850 | 1176 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
5d4aa1f5 | 1177 | as_fn_error $? "invalid package name: $ac_useropt" |
0710d850 DS |
1178 | ac_useropt_orig=$ac_useropt |
1179 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1180 | case $ac_user_opts in | |
1181 | *" | |
1182 | "with_$ac_useropt" | |
1183 | "*) ;; | |
1184 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | |
1185 | ac_unrecognized_sep=', ';; | |
1186 | esac | |
1187 | eval with_$ac_useropt=\$ac_optarg ;; | |
2f1a1aea FCE |
1188 | |
1189 | -without-* | --without-*) | |
0710d850 | 1190 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
2f1a1aea | 1191 | # Reject names that are not valid shell variable names. |
0710d850 | 1192 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
5d4aa1f5 | 1193 | as_fn_error $? "invalid package name: $ac_useropt" |
0710d850 DS |
1194 | ac_useropt_orig=$ac_useropt |
1195 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1196 | case $ac_user_opts in | |
1197 | *" | |
1198 | "with_$ac_useropt" | |
1199 | "*) ;; | |
1200 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | |
1201 | ac_unrecognized_sep=', ';; | |
1202 | esac | |
1203 | eval with_$ac_useropt=no ;; | |
2f1a1aea FCE |
1204 | |
1205 | --x) | |
1206 | # Obsolete; use --with-x. | |
1207 | with_x=yes ;; | |
1208 | ||
1209 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1210 | | --x-incl | --x-inc | --x-in | --x-i) | |
1211 | ac_prev=x_includes ;; | |
1212 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1213 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
1214 | x_includes=$ac_optarg ;; | |
1215 | ||
1216 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1217 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1218 | ac_prev=x_libraries ;; | |
1219 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1220 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
1221 | x_libraries=$ac_optarg ;; | |
1222 | ||
5d4aa1f5 FCE |
1223 | -*) as_fn_error $? "unrecognized option: \`$ac_option' |
1224 | Try \`$0 --help' for more information" | |
2f1a1aea FCE |
1225 | ;; |
1226 | ||
1227 | *=*) | |
1228 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1229 | # Reject names that are not valid shell variable names. | |
1ef0423a FCE |
1230 | case $ac_envvar in #( |
1231 | '' | [0-9]* | *[!_$as_cr_alnum]* ) | |
5d4aa1f5 | 1232 | as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; |
1ef0423a | 1233 | esac |
7fbd9d09 | 1234 | eval $ac_envvar=\$ac_optarg |
2f1a1aea FCE |
1235 | export $ac_envvar ;; |
1236 | ||
1237 | *) | |
1238 | # FIXME: should be removed in autoconf 3.0. | |
0710d850 | 1239 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
2f1a1aea | 1240 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
0710d850 | 1241 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
c3de29bd | 1242 | : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" |
2f1a1aea FCE |
1243 | ;; |
1244 | ||
1245 | esac | |
1246 | done | |
1247 | ||
1248 | if test -n "$ac_prev"; then | |
1249 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` | |
5d4aa1f5 | 1250 | as_fn_error $? "missing argument to $ac_option" |
2f1a1aea FCE |
1251 | fi |
1252 | ||
0710d850 DS |
1253 | if test -n "$ac_unrecognized_opts"; then |
1254 | case $enable_option_checking in | |
1255 | no) ;; | |
5d4aa1f5 | 1256 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; |
0710d850 DS |
1257 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
1258 | esac | |
1259 | fi | |
1260 | ||
1261 | # Check all directory arguments for consistency. | |
7fbd9d09 FCE |
1262 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
1263 | datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1264 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
1265 | libdir localedir mandir | |
818ba2bc | 1266 | do |
7fbd9d09 | 1267 | eval ac_val=\$$ac_var |
0710d850 DS |
1268 | # Remove trailing slashes. |
1269 | case $ac_val in | |
1270 | */ ) | |
1271 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | |
1272 | eval $ac_var=\$ac_val;; | |
1273 | esac | |
1274 | # Be sure to have absolute directory names. | |
8ae7a94a | 1275 | case $ac_val in |
7fbd9d09 FCE |
1276 | [\\/$]* | ?:[\\/]* ) continue;; |
1277 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
2f1a1aea | 1278 | esac |
5d4aa1f5 | 1279 | as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" |
2f1a1aea FCE |
1280 | done |
1281 | ||
1282 | # There might be people who depend on the old broken behavior: `$host' | |
1283 | # used to hold the argument of --host etc. | |
1284 | # FIXME: To remove some day. | |
1285 | build=$build_alias | |
1286 | host=$host_alias | |
1287 | target=$target_alias | |
1288 | ||
1289 | # FIXME: To remove some day. | |
1290 | if test "x$host_alias" != x; then | |
1291 | if test "x$build_alias" = x; then | |
1292 | cross_compiling=maybe | |
5d4aa1f5 FCE |
1293 | $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host. |
1294 | If a cross compiler is detected then cross compile mode will be used" >&2 | |
2f1a1aea FCE |
1295 | elif test "x$build_alias" != "x$host_alias"; then |
1296 | cross_compiling=yes | |
1297 | fi | |
1298 | fi | |
1299 | ||
1300 | ac_tool_prefix= | |
1301 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1302 | ||
1303 | test "$silent" = yes && exec 6>/dev/null | |
1304 | ||
1305 | ||
7fbd9d09 FCE |
1306 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
1307 | ac_ls_di=`ls -di .` && | |
1308 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
5d4aa1f5 | 1309 | as_fn_error $? "working directory cannot be determined" |
7fbd9d09 | 1310 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
5d4aa1f5 | 1311 | as_fn_error $? "pwd does not report name of working directory" |
7fbd9d09 FCE |
1312 | |
1313 | ||
2f1a1aea FCE |
1314 | # Find the source files, if location was not specified. |
1315 | if test -z "$srcdir"; then | |
1316 | ac_srcdir_defaulted=yes | |
7fbd9d09 | 1317 | # Try the directory containing this script, then the parent directory. |
0710d850 DS |
1318 | ac_confdir=`$as_dirname -- "$as_myself" || |
1319 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
1320 | X"$as_myself" : 'X\(//\)[^/]' \| \ | |
1321 | X"$as_myself" : 'X\(//\)$' \| \ | |
1322 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | |
1323 | $as_echo X"$as_myself" | | |
7fbd9d09 FCE |
1324 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
1325 | s//\1/ | |
1326 | q | |
1327 | } | |
1328 | /^X\(\/\/\)[^/].*/{ | |
1329 | s//\1/ | |
1330 | q | |
1331 | } | |
1332 | /^X\(\/\/\)$/{ | |
1333 | s//\1/ | |
1334 | q | |
1335 | } | |
1336 | /^X\(\/\).*/{ | |
1337 | s//\1/ | |
1338 | q | |
1339 | } | |
1340 | s/.*/./; q'` | |
2f1a1aea | 1341 | srcdir=$ac_confdir |
7fbd9d09 | 1342 | if test ! -r "$srcdir/$ac_unique_file"; then |
2f1a1aea FCE |
1343 | srcdir=.. |
1344 | fi | |
1345 | else | |
1346 | ac_srcdir_defaulted=no | |
1347 | fi | |
7fbd9d09 FCE |
1348 | if test ! -r "$srcdir/$ac_unique_file"; then |
1349 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
5d4aa1f5 | 1350 | as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" |
8ae7a94a | 1351 | fi |
7fbd9d09 FCE |
1352 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
1353 | ac_abs_confdir=`( | |
5d4aa1f5 | 1354 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" |
7fbd9d09 FCE |
1355 | pwd)` |
1356 | # When building in place, set srcdir=. | |
1357 | if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1358 | srcdir=. | |
1359 | fi | |
1360 | # Remove unnecessary trailing slashes from srcdir. | |
1361 | # Double slashes in file names in object file debugging info | |
1362 | # mess up M-x gdb in Emacs. | |
1363 | case $srcdir in | |
1364 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1365 | esac | |
1366 | for ac_var in $ac_precious_vars; do | |
1367 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1368 | eval ac_env_${ac_var}_value=\$${ac_var} | |
1369 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1370 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1371 | done | |
2f1a1aea FCE |
1372 | |
1373 | # | |
1374 | # Report the --help message. | |
1375 | # | |
1376 | if test "$ac_init_help" = "long"; then | |
1377 | # Omit some internal or obsolete options to make the list less imposing. | |
1378 | # This message is too long to be a string in the A/UX 3.1 sh. | |
1379 | cat <<_ACEOF | |
94d406fc | 1380 | \`configure' configures systemtap 1.7 to adapt to many kinds of systems. |
2f1a1aea FCE |
1381 | |
1382 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
1383 | ||
1384 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
1385 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
1386 | ||
1387 | Defaults for the options are specified in brackets. | |
1388 | ||
1389 | Configuration: | |
1390 | -h, --help display this help and exit | |
1391 | --help=short display options specific to this package | |
1392 | --help=recursive display the short help of all the included packages | |
1393 | -V, --version display version information and exit | |
5d4aa1f5 | 1394 | -q, --quiet, --silent do not print \`checking ...' messages |
2f1a1aea FCE |
1395 | --cache-file=FILE cache test results in FILE [disabled] |
1396 | -C, --config-cache alias for \`--cache-file=config.cache' | |
1397 | -n, --no-create do not create output files | |
1398 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1399 | ||
2f1a1aea FCE |
1400 | Installation directories: |
1401 | --prefix=PREFIX install architecture-independent files in PREFIX | |
0710d850 | 1402 | [$ac_default_prefix] |
2f1a1aea | 1403 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
0710d850 | 1404 | [PREFIX] |
2f1a1aea FCE |
1405 | |
1406 | By default, \`make install' will install all the files in | |
1407 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1408 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1409 | for instance \`--prefix=\$HOME'. | |
1410 | ||
1411 | For better control, use the options below. | |
1412 | ||
1413 | Fine tuning of the installation directories: | |
0710d850 DS |
1414 | --bindir=DIR user executables [EPREFIX/bin] |
1415 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1416 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
1417 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
1418 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1419 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1420 | --libdir=DIR object code libraries [EPREFIX/lib] | |
1421 | --includedir=DIR C header files [PREFIX/include] | |
1422 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
1423 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | |
1424 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1425 | --infodir=DIR info documentation [DATAROOTDIR/info] | |
1426 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1427 | --mandir=DIR man documentation [DATAROOTDIR/man] | |
1428 | --docdir=DIR documentation root [DATAROOTDIR/doc/systemtap] | |
1429 | --htmldir=DIR html documentation [DOCDIR] | |
1430 | --dvidir=DIR dvi documentation [DOCDIR] | |
1431 | --pdfdir=DIR pdf documentation [DOCDIR] | |
1432 | --psdir=DIR ps documentation [DOCDIR] | |
2f1a1aea FCE |
1433 | _ACEOF |
1434 | ||
1435 | cat <<\_ACEOF | |
1436 | ||
1437 | Program names: | |
1438 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
1439 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
1440 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names | |
8f223b3e FCE |
1441 | |
1442 | System types: | |
1443 | --build=BUILD configure for building on BUILD [guessed] | |
1444 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
2f1a1aea FCE |
1445 | _ACEOF |
1446 | fi | |
1447 | ||
1448 | if test -n "$ac_init_help"; then | |
1449 | case $ac_init_help in | |
94d406fc | 1450 | short | recursive ) echo "Configuration of systemtap 1.7:";; |
2f1a1aea FCE |
1451 | esac |
1452 | cat <<\_ACEOF | |
1453 | ||
1454 | Optional Features: | |
0710d850 | 1455 | --disable-option-checking ignore unrecognized --enable/--with options |
2f1a1aea FCE |
1456 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
1457 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
1458 | --enable-maintainer-mode enable make rules and dependencies not useful | |
1459 | (and sometimes confusing) to the casual installer | |
0710d850 DS |
1460 | --enable-silent-rules less verbose build output (undo: `make V=1') |
1461 | --disable-silent-rules verbose build output (undo: `make V=0') | |
2f1a1aea FCE |
1462 | --disable-dependency-tracking speeds up one-time build |
1463 | --enable-dependency-tracking do not reject slow dependency extractors | |
8f223b3e FCE |
1464 | --disable-nls do not use Native Language Support |
1465 | --disable-rpath do not hardcode runtime library paths | |
44f75386 | 1466 | --enable-prologues make -P prologue-searching default |
0f5d597d | 1467 | --disable-sdt-probes disable process.mark probes in stap, staprun, stapio |
bbfd8c1a | 1468 | --disable-ssp disable gcc stack-protector |
882ddac1 | 1469 | --enable-pie enable position-independent-executable |
9921a199 | 1470 | --enable-sqlite build with sqlite support |
6d14a4a9 | 1471 | --disable-translator build only runtime utilities |
564eb0a8 DS |
1472 | --enable-crash[=DIRECTORY] |
1473 | enable crash extension (default is disabled). | |
1474 | Optional DIRECTORY is the path to the crash header | |
1475 | file (needed if installed in a non-standard | |
1476 | location). | |
465e8fbf FCE |
1477 | --enable-docs enable building documentation (default on if latex |
1478 | etc. found). | |
53ade4da MW |
1479 | --enable-publican enable building publican documentation guides |
1480 | (default on if publican found and other | |
1481 | documentation built). | |
92aff3c7 WC |
1482 | --enable-refdocs enable building reference documentation (default on |
1483 | if xmlto etc. found and other documentation built). | |
a0e2728a DB |
1484 | --enable-server enable building of stap-server (default on if nss |
1485 | etc. found). | |
f8a49389 DS |
1486 | --enable-grapher enable building of grapher (default on if needed |
1487 | requirements are found). | |
2f1a1aea | 1488 | |
4d9087fc RM |
1489 | Optional Packages: |
1490 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1491 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
8f223b3e FCE |
1492 | --with-gnu-ld assume the C compiler uses GNU ld default=no |
1493 | --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib | |
1494 | --without-libiconv-prefix don't search for libiconv in includedir and libdir | |
1495 | --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib | |
1496 | --without-libintl-prefix don't search for libintl in includedir and libdir | |
53ade4da MW |
1497 | --with-publican-brand=BRAND |
1498 | building publican documentation guides using given | |
89bc1a6a | 1499 | brand (defaults to "common"). |
28f121c3 DEP |
1500 | --without-nss Do not use NSS even if present |
1501 | --without-avahi Do not use Avahi even if present | |
0f5d597d | 1502 | --with-rpm query rpm database for missing debuginfos |
4d9087fc RM |
1503 | --with-elfutils=DIRECTORY |
1504 | find elfutils source code in DIRECTORY | |
1505 | ||
2f1a1aea FCE |
1506 | Some influential environment variables: |
1507 | CC C compiler command | |
1508 | CFLAGS C compiler flags | |
1509 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1510 | nonstandard directory <lib dir> | |
7fbd9d09 | 1511 | LIBS libraries to pass to the linker, e.g. -l<library> |
1ef0423a | 1512 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if |
7fbd9d09 | 1513 | you have headers in a nonstandard directory <include dir> |
8f223b3e | 1514 | CPP C preprocessor |
2f1a1aea FCE |
1515 | CXX C++ compiler command |
1516 | CXXFLAGS C++ compiler flags | |
1087b83f | 1517 | PKG_CONFIG path to pkg-config utility |
5d4aa1f5 FCE |
1518 | PKG_CONFIG_PATH |
1519 | directories to add to pkg-config's search path | |
1520 | PKG_CONFIG_LIBDIR | |
1521 | path overriding pkg-config's built-in search path | |
28f121c3 DEP |
1522 | nss_CFLAGS C compiler flags for nss, overriding pkg-config |
1523 | nss_LIBS linker flags for nss, overriding pkg-config | |
1524 | avahi_CFLAGS | |
1525 | C compiler flags for avahi, overriding pkg-config | |
1526 | avahi_LIBS linker flags for avahi, overriding pkg-config | |
c3f070d9 DS |
1527 | gtkmm_CFLAGS |
1528 | C compiler flags for gtkmm, overriding pkg-config | |
1529 | gtkmm_LIBS linker flags for gtkmm, overriding pkg-config | |
f8a49389 DS |
1530 | libglade_CFLAGS |
1531 | C compiler flags for libglade, overriding pkg-config | |
1532 | libglade_LIBS | |
1533 | linker flags for libglade, overriding pkg-config | |
1534 | CXXCPP C++ preprocessor | |
2f1a1aea FCE |
1535 | |
1536 | Use these variables to override the choices made by `configure' or to help | |
1537 | it to find libraries and programs with nonstandard names/locations. | |
1538 | ||
306dd4f8 | 1539 | Report bugs to <systemtap@sourceware.org>. |
2f1a1aea | 1540 | _ACEOF |
7fbd9d09 | 1541 | ac_status=$? |
2f1a1aea FCE |
1542 | fi |
1543 | ||
1544 | if test "$ac_init_help" = "recursive"; then | |
1545 | # If there are subdirs, report their specific --help. | |
2f1a1aea | 1546 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
0710d850 DS |
1547 | test -d "$ac_dir" || |
1548 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | |
1549 | continue | |
2f1a1aea FCE |
1550 | ac_builddir=. |
1551 | ||
7fbd9d09 FCE |
1552 | case "$ac_dir" in |
1553 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1554 | *) | |
0710d850 | 1555 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
7fbd9d09 | 1556 | # A ".." for each directory in $ac_dir_suffix. |
0710d850 | 1557 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
7fbd9d09 FCE |
1558 | case $ac_top_builddir_sub in |
1559 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1560 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1561 | esac ;; | |
1562 | esac | |
1563 | ac_abs_top_builddir=$ac_pwd | |
1564 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1565 | # for backward compatibility: | |
1566 | ac_top_builddir=$ac_top_build_prefix | |
2f1a1aea FCE |
1567 | |
1568 | case $srcdir in | |
7fbd9d09 | 1569 | .) # We are building in place. |
2f1a1aea | 1570 | ac_srcdir=. |
7fbd9d09 FCE |
1571 | ac_top_srcdir=$ac_top_builddir_sub |
1572 | ac_abs_top_srcdir=$ac_pwd ;; | |
1573 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
2f1a1aea | 1574 | ac_srcdir=$srcdir$ac_dir_suffix; |
7fbd9d09 FCE |
1575 | ac_top_srcdir=$srcdir |
1576 | ac_abs_top_srcdir=$srcdir ;; | |
1577 | *) # Relative name. | |
1578 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1579 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1580 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
818ba2bc | 1581 | esac |
7fbd9d09 FCE |
1582 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
1583 | ||
1584 | cd "$ac_dir" || { ac_status=$?; continue; } | |
1585 | # Check for guested configure. | |
1586 | if test -f "$ac_srcdir/configure.gnu"; then | |
1587 | echo && | |
1588 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
1589 | elif test -f "$ac_srcdir/configure"; then | |
1590 | echo && | |
1591 | $SHELL "$ac_srcdir/configure" --help=recursive | |
2f1a1aea | 1592 | else |
0710d850 | 1593 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
7fbd9d09 FCE |
1594 | fi || ac_status=$? |
1595 | cd "$ac_pwd" || { ac_status=$?; break; } | |
2f1a1aea FCE |
1596 | done |
1597 | fi | |
1598 | ||
7fbd9d09 | 1599 | test -n "$ac_init_help" && exit $ac_status |
2f1a1aea FCE |
1600 | if $ac_init_version; then |
1601 | cat <<\_ACEOF | |
94d406fc | 1602 | systemtap configure 1.7 |
c3de29bd | 1603 | generated by GNU Autoconf 2.68 |
2f1a1aea | 1604 | |
5d4aa1f5 | 1605 | Copyright (C) 2010 Free Software Foundation, Inc. |
2f1a1aea FCE |
1606 | This configure script is free software; the Free Software Foundation |
1607 | gives unlimited permission to copy, distribute and modify it. | |
1608 | _ACEOF | |
7fbd9d09 | 1609 | exit |
2f1a1aea | 1610 | fi |
4b5627b1 | 1611 | |
1ef0423a FCE |
1612 | ## ------------------------ ## |
1613 | ## Autoconf initialization. ## | |
1614 | ## ------------------------ ## | |
4b5627b1 | 1615 | |
1ef0423a FCE |
1616 | # ac_fn_c_try_compile LINENO |
1617 | # -------------------------- | |
1618 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1619 | ac_fn_c_try_compile () | |
ec1a2239 | 1620 | { |
1ef0423a FCE |
1621 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
1622 | rm -f conftest.$ac_objext | |
1623 | if { { ac_try="$ac_compile" | |
1624 | case "(($ac_try" in | |
1625 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1626 | *) ac_try_echo=$ac_try;; | |
1627 | esac | |
1628 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1629 | $as_echo "$ac_try_echo"; } >&5 | |
1630 | (eval "$ac_compile") 2>conftest.err | |
1631 | ac_status=$? | |
1632 | if test -s conftest.err; then | |
1633 | grep -v '^ *+' conftest.err >conftest.er1 | |
1634 | cat conftest.er1 >&5 | |
1635 | mv -f conftest.er1 conftest.err | |
1636 | fi | |
1637 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1638 | test $ac_status = 0; } && { | |
1639 | test -z "$ac_c_werror_flag" || | |
1640 | test ! -s conftest.err | |
1641 | } && test -s conftest.$ac_objext; then : | |
1642 | ac_retval=0 | |
1643 | else | |
1644 | $as_echo "$as_me: failed program was:" >&5 | |
1645 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4b5627b1 | 1646 | |
1ef0423a FCE |
1647 | ac_retval=1 |
1648 | fi | |
c3de29bd | 1649 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1ef0423a | 1650 | as_fn_set_status $ac_retval |
ec1a2239 | 1651 | |
1ef0423a | 1652 | } # ac_fn_c_try_compile |
ec1a2239 | 1653 | |
1ef0423a FCE |
1654 | # ac_fn_c_try_cpp LINENO |
1655 | # ---------------------- | |
1656 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. | |
1657 | ac_fn_c_try_cpp () | |
1658 | { | |
1659 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1660 | if { { ac_try="$ac_cpp conftest.$ac_ext" | |
1661 | case "(($ac_try" in | |
1662 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1663 | *) ac_try_echo=$ac_try;; | |
1664 | esac | |
1665 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1666 | $as_echo "$ac_try_echo"; } >&5 | |
1667 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err | |
1668 | ac_status=$? | |
1669 | if test -s conftest.err; then | |
1670 | grep -v '^ *+' conftest.err >conftest.er1 | |
1671 | cat conftest.er1 >&5 | |
1672 | mv -f conftest.er1 conftest.err | |
1673 | fi | |
1674 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
c3de29bd | 1675 | test $ac_status = 0; } > conftest.i && { |
1ef0423a FCE |
1676 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
1677 | test ! -s conftest.err | |
1678 | }; then : | |
1679 | ac_retval=0 | |
1680 | else | |
1681 | $as_echo "$as_me: failed program was:" >&5 | |
1682 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1683 | ||
1684 | ac_retval=1 | |
1685 | fi | |
c3de29bd | 1686 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1ef0423a FCE |
1687 | as_fn_set_status $ac_retval |
1688 | ||
1689 | } # ac_fn_c_try_cpp | |
1690 | ||
1ef0423a FCE |
1691 | # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES |
1692 | # ------------------------------------------------------- | |
1693 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using | |
1694 | # the include files in INCLUDES and setting the cache variable VAR | |
1695 | # accordingly. | |
1696 | ac_fn_c_check_header_mongrel () | |
1697 | { | |
1698 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
c3de29bd | 1699 | if eval \${$3+:} false; then : |
1ef0423a FCE |
1700 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
1701 | $as_echo_n "checking for $2... " >&6; } | |
c3de29bd | 1702 | if eval \${$3+:} false; then : |
1ef0423a FCE |
1703 | $as_echo_n "(cached) " >&6 |
1704 | fi | |
1705 | eval ac_res=\$$3 | |
1706 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1707 | $as_echo "$ac_res" >&6; } | |
1708 | else | |
1709 | # Is the header compilable? | |
1710 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 | |
1711 | $as_echo_n "checking $2 usability... " >&6; } | |
1712 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1713 | /* end confdefs.h. */ | |
1714 | $4 | |
1715 | #include <$2> | |
1716 | _ACEOF | |
1717 | if ac_fn_c_try_compile "$LINENO"; then : | |
1718 | ac_header_compiler=yes | |
1719 | else | |
1720 | ac_header_compiler=no | |
1721 | fi | |
1722 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1723 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 | |
1724 | $as_echo "$ac_header_compiler" >&6; } | |
1725 | ||
1726 | # Is the header present? | |
1727 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 | |
1728 | $as_echo_n "checking $2 presence... " >&6; } | |
1729 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1730 | /* end confdefs.h. */ | |
1731 | #include <$2> | |
1732 | _ACEOF | |
1733 | if ac_fn_c_try_cpp "$LINENO"; then : | |
1734 | ac_header_preproc=yes | |
1735 | else | |
1736 | ac_header_preproc=no | |
1737 | fi | |
c3de29bd | 1738 | rm -f conftest.err conftest.i conftest.$ac_ext |
1ef0423a FCE |
1739 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 |
1740 | $as_echo "$ac_header_preproc" >&6; } | |
1741 | ||
1742 | # So? What about this header? | |
1743 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( | |
1744 | yes:no: ) | |
1745 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 | |
1746 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
1747 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
1748 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
1749 | ;; | |
1750 | no:yes:* ) | |
1751 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 | |
1752 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} | |
1753 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 | |
1754 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} | |
1755 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 | |
1756 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} | |
1757 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 | |
1758 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} | |
1759 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
1760 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
5d4aa1f5 | 1761 | ( $as_echo "## --------------------------------------- ## |
306dd4f8 | 1762 | ## Report this to systemtap@sourceware.org ## |
5d4aa1f5 | 1763 | ## --------------------------------------- ##" |
1ef0423a FCE |
1764 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
1765 | ;; | |
1766 | esac | |
1767 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1768 | $as_echo_n "checking for $2... " >&6; } | |
c3de29bd | 1769 | if eval \${$3+:} false; then : |
1ef0423a FCE |
1770 | $as_echo_n "(cached) " >&6 |
1771 | else | |
1772 | eval "$3=\$ac_header_compiler" | |
1773 | fi | |
1774 | eval ac_res=\$$3 | |
1775 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1776 | $as_echo "$ac_res" >&6; } | |
1777 | fi | |
c3de29bd | 1778 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1ef0423a FCE |
1779 | |
1780 | } # ac_fn_c_check_header_mongrel | |
1781 | ||
8f223b3e FCE |
1782 | # ac_fn_c_try_run LINENO |
1783 | # ---------------------- | |
1784 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes | |
1785 | # that executables *can* be run. | |
1786 | ac_fn_c_try_run () | |
1787 | { | |
1788 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1789 | if { { ac_try="$ac_link" | |
1790 | case "(($ac_try" in | |
1791 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1792 | *) ac_try_echo=$ac_try;; | |
1793 | esac | |
1794 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1795 | $as_echo "$ac_try_echo"; } >&5 | |
1796 | (eval "$ac_link") 2>&5 | |
1797 | ac_status=$? | |
1798 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1799 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' | |
1800 | { { case "(($ac_try" in | |
1801 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1802 | *) ac_try_echo=$ac_try;; | |
1803 | esac | |
1804 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1805 | $as_echo "$ac_try_echo"; } >&5 | |
1806 | (eval "$ac_try") 2>&5 | |
1807 | ac_status=$? | |
1808 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1809 | test $ac_status = 0; }; }; then : | |
1810 | ac_retval=0 | |
1811 | else | |
1812 | $as_echo "$as_me: program exited with status $ac_status" >&5 | |
1813 | $as_echo "$as_me: failed program was:" >&5 | |
1814 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1815 | ||
1816 | ac_retval=$ac_status | |
1817 | fi | |
1818 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
c3de29bd | 1819 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
8f223b3e FCE |
1820 | as_fn_set_status $ac_retval |
1821 | ||
1822 | } # ac_fn_c_try_run | |
1823 | ||
1ef0423a FCE |
1824 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES |
1825 | # ------------------------------------------------------- | |
1826 | # Tests whether HEADER exists and can be compiled using the include files in | |
1827 | # INCLUDES, setting the cache variable VAR accordingly. | |
1828 | ac_fn_c_check_header_compile () | |
1829 | { | |
1830 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1831 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1832 | $as_echo_n "checking for $2... " >&6; } | |
c3de29bd | 1833 | if eval \${$3+:} false; then : |
1ef0423a FCE |
1834 | $as_echo_n "(cached) " >&6 |
1835 | else | |
1836 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1837 | /* end confdefs.h. */ | |
1838 | $4 | |
1839 | #include <$2> | |
1840 | _ACEOF | |
1841 | if ac_fn_c_try_compile "$LINENO"; then : | |
1842 | eval "$3=yes" | |
1843 | else | |
1844 | eval "$3=no" | |
1845 | fi | |
1846 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1847 | fi | |
1848 | eval ac_res=\$$3 | |
1849 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1850 | $as_echo "$ac_res" >&6; } | |
c3de29bd | 1851 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1ef0423a FCE |
1852 | |
1853 | } # ac_fn_c_check_header_compile | |
1854 | ||
8f223b3e FCE |
1855 | # ac_fn_cxx_try_compile LINENO |
1856 | # ---------------------------- | |
1857 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1858 | ac_fn_cxx_try_compile () | |
1859 | { | |
1860 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1861 | rm -f conftest.$ac_objext | |
1862 | if { { ac_try="$ac_compile" | |
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_compile") 2>conftest.err | |
1870 | ac_status=$? | |
1871 | if test -s conftest.err; then | |
1872 | grep -v '^ *+' conftest.err >conftest.er1 | |
1873 | cat conftest.er1 >&5 | |
1874 | mv -f conftest.er1 conftest.err | |
1875 | fi | |
1876 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1877 | test $ac_status = 0; } && { | |
1878 | test -z "$ac_cxx_werror_flag" || | |
1879 | test ! -s conftest.err | |
1880 | } && test -s conftest.$ac_objext; then : | |
1881 | ac_retval=0 | |
1882 | else | |
1883 | $as_echo "$as_me: failed program was:" >&5 | |
1884 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1885 | ||
1886 | ac_retval=1 | |
1887 | fi | |
c3de29bd | 1888 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
8f223b3e FCE |
1889 | as_fn_set_status $ac_retval |
1890 | ||
1891 | } # ac_fn_cxx_try_compile | |
1892 | ||
1ef0423a FCE |
1893 | # ac_fn_c_try_link LINENO |
1894 | # ----------------------- | |
1895 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
1896 | ac_fn_c_try_link () | |
1897 | { | |
1898 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1899 | rm -f conftest.$ac_objext conftest$ac_exeext | |
1900 | if { { ac_try="$ac_link" | |
1901 | case "(($ac_try" in | |
1902 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1903 | *) ac_try_echo=$ac_try;; | |
1904 | esac | |
1905 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1906 | $as_echo "$ac_try_echo"; } >&5 | |
1907 | (eval "$ac_link") 2>conftest.err | |
1908 | ac_status=$? | |
1909 | if test -s conftest.err; then | |
1910 | grep -v '^ *+' conftest.err >conftest.er1 | |
1911 | cat conftest.er1 >&5 | |
1912 | mv -f conftest.er1 conftest.err | |
1913 | fi | |
1914 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1915 | test $ac_status = 0; } && { | |
1916 | test -z "$ac_c_werror_flag" || | |
1917 | test ! -s conftest.err | |
1918 | } && test -s conftest$ac_exeext && { | |
1919 | test "$cross_compiling" = yes || | |
1920 | $as_test_x conftest$ac_exeext | |
1921 | }; then : | |
1922 | ac_retval=0 | |
1923 | else | |
1924 | $as_echo "$as_me: failed program was:" >&5 | |
1925 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1926 | ||
1927 | ac_retval=1 | |
1928 | fi | |
1929 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
1930 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
1931 | # interfere with the next link command; also delete a directory that is | |
1932 | # left behind by Apple's compiler. We do this before executing the actions. | |
1933 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
c3de29bd | 1934 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1ef0423a FCE |
1935 | as_fn_set_status $ac_retval |
1936 | ||
1937 | } # ac_fn_c_try_link | |
1938 | ||
e04a4b41 JS |
1939 | # ac_fn_c_check_func LINENO FUNC VAR |
1940 | # ---------------------------------- | |
1941 | # Tests whether FUNC exists, setting the cache variable VAR accordingly | |
1942 | ac_fn_c_check_func () | |
1943 | { | |
1944 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1945 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1946 | $as_echo_n "checking for $2... " >&6; } | |
c3de29bd | 1947 | if eval \${$3+:} false; then : |
e04a4b41 JS |
1948 | $as_echo_n "(cached) " >&6 |
1949 | else | |
1950 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1951 | /* end confdefs.h. */ | |
1952 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. | |
1953 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
1954 | #define $2 innocuous_$2 | |
1955 | ||
1956 | /* System header to define __stub macros and hopefully few prototypes, | |
1957 | which can conflict with char $2 (); below. | |
1958 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
1959 | <limits.h> exists even on freestanding compilers. */ | |
1960 | ||
1961 | #ifdef __STDC__ | |
1962 | # include <limits.h> | |
1963 | #else | |
1964 | # include <assert.h> | |
1965 | #endif | |
1966 | ||
1967 | #undef $2 | |
1968 | ||
1969 | /* Override any GCC internal prototype to avoid an error. | |
1970 | Use char because int might match the return type of a GCC | |
1971 | builtin and then its argument prototype would still apply. */ | |
1972 | #ifdef __cplusplus | |
1973 | extern "C" | |
1974 | #endif | |
1975 | char $2 (); | |
1976 | /* The GNU C library defines this for functions which it implements | |
1977 | to always fail with ENOSYS. Some functions are actually named | |
1978 | something starting with __ and the normal name is an alias. */ | |
1979 | #if defined __stub_$2 || defined __stub___$2 | |
1980 | choke me | |
1981 | #endif | |
1982 | ||
1983 | int | |
1984 | main () | |
1985 | { | |
1986 | return $2 (); | |
1987 | ; | |
1988 | return 0; | |
1989 | } | |
1990 | _ACEOF | |
1991 | if ac_fn_c_try_link "$LINENO"; then : | |
1992 | eval "$3=yes" | |
1993 | else | |
1994 | eval "$3=no" | |
1995 | fi | |
1996 | rm -f core conftest.err conftest.$ac_objext \ | |
1997 | conftest$ac_exeext conftest.$ac_ext | |
1998 | fi | |
1999 | eval ac_res=\$$3 | |
2000 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2001 | $as_echo "$ac_res" >&6; } | |
c3de29bd | 2002 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
e04a4b41 JS |
2003 | |
2004 | } # ac_fn_c_check_func | |
2005 | ||
1ef0423a FCE |
2006 | # ac_fn_cxx_try_cpp LINENO |
2007 | # ------------------------ | |
2008 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. | |
2009 | ac_fn_cxx_try_cpp () | |
2010 | { | |
2011 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2012 | if { { ac_try="$ac_cpp conftest.$ac_ext" | |
2013 | case "(($ac_try" in | |
2014 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2015 | *) ac_try_echo=$ac_try;; | |
2016 | esac | |
2017 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2018 | $as_echo "$ac_try_echo"; } >&5 | |
2019 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err | |
2020 | ac_status=$? | |
2021 | if test -s conftest.err; then | |
2022 | grep -v '^ *+' conftest.err >conftest.er1 | |
2023 | cat conftest.er1 >&5 | |
2024 | mv -f conftest.er1 conftest.err | |
2025 | fi | |
2026 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
c3de29bd | 2027 | test $ac_status = 0; } > conftest.i && { |
1ef0423a FCE |
2028 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
2029 | test ! -s conftest.err | |
2030 | }; then : | |
2031 | ac_retval=0 | |
2032 | else | |
2033 | $as_echo "$as_me: failed program was:" >&5 | |
2034 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2035 | ||
2036 | ac_retval=1 | |
2037 | fi | |
c3de29bd | 2038 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1ef0423a FCE |
2039 | as_fn_set_status $ac_retval |
2040 | ||
2041 | } # ac_fn_cxx_try_cpp | |
2042 | ||
2043 | # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES | |
2044 | # --------------------------------------------------------- | |
2045 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using | |
2046 | # the include files in INCLUDES and setting the cache variable VAR | |
2047 | # accordingly. | |
2048 | ac_fn_cxx_check_header_mongrel () | |
2049 | { | |
2050 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
c3de29bd | 2051 | if eval \${$3+:} false; then : |
1ef0423a FCE |
2052 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
2053 | $as_echo_n "checking for $2... " >&6; } | |
c3de29bd | 2054 | if eval \${$3+:} false; then : |
1ef0423a FCE |
2055 | $as_echo_n "(cached) " >&6 |
2056 | fi | |
2057 | eval ac_res=\$$3 | |
2058 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2059 | $as_echo "$ac_res" >&6; } | |
2060 | else | |
2061 | # Is the header compilable? | |
2062 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 | |
2063 | $as_echo_n "checking $2 usability... " >&6; } | |
2064 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2065 | /* end confdefs.h. */ | |
2066 | $4 | |
2067 | #include <$2> | |
2068 | _ACEOF | |
2069 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
2070 | ac_header_compiler=yes | |
2071 | else | |
2072 | ac_header_compiler=no | |
2073 | fi | |
2074 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2075 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 | |
2076 | $as_echo "$ac_header_compiler" >&6; } | |
2077 | ||
2078 | # Is the header present? | |
2079 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 | |
2080 | $as_echo_n "checking $2 presence... " >&6; } | |
2081 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2082 | /* end confdefs.h. */ | |
2083 | #include <$2> | |
2084 | _ACEOF | |
2085 | if ac_fn_cxx_try_cpp "$LINENO"; then : | |
2086 | ac_header_preproc=yes | |
2087 | else | |
2088 | ac_header_preproc=no | |
2089 | fi | |
c3de29bd | 2090 | rm -f conftest.err conftest.i conftest.$ac_ext |
1ef0423a FCE |
2091 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 |
2092 | $as_echo "$ac_header_preproc" >&6; } | |
2093 | ||
2094 | # So? What about this header? | |
2095 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #(( | |
2096 | yes:no: ) | |
2097 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 | |
2098 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
2099 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
2100 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
2101 | ;; | |
2102 | no:yes:* ) | |
2103 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 | |
2104 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} | |
2105 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 | |
2106 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} | |
2107 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 | |
2108 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} | |
2109 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 | |
2110 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} | |
2111 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
2112 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
5d4aa1f5 | 2113 | ( $as_echo "## --------------------------------------- ## |
306dd4f8 | 2114 | ## Report this to systemtap@sourceware.org ## |
5d4aa1f5 | 2115 | ## --------------------------------------- ##" |
1ef0423a FCE |
2116 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
2117 | ;; | |
2118 | esac | |
2119 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
2120 | $as_echo_n "checking for $2... " >&6; } | |
c3de29bd | 2121 | if eval \${$3+:} false; then : |
1ef0423a FCE |
2122 | $as_echo_n "(cached) " >&6 |
2123 | else | |
2124 | eval "$3=\$ac_header_compiler" | |
2125 | fi | |
2126 | eval ac_res=\$$3 | |
2127 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2128 | $as_echo "$ac_res" >&6; } | |
2129 | fi | |
c3de29bd | 2130 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1ef0423a FCE |
2131 | |
2132 | } # ac_fn_cxx_check_header_mongrel | |
2133 | cat >config.log <<_ACEOF | |
2134 | This file contains any messages produced by compilers while | |
2135 | running configure, to aid debugging if configure makes a mistake. | |
2136 | ||
94d406fc | 2137 | It was created by systemtap $as_me 1.7, which was |
c3de29bd | 2138 | generated by GNU Autoconf 2.68. Invocation command line was |
1ef0423a FCE |
2139 | |
2140 | $ $0 $@ | |
2141 | ||
2142 | _ACEOF | |
2143 | exec 5>>config.log | |
2144 | { | |
2145 | cat <<_ASUNAME | |
2146 | ## --------- ## | |
2147 | ## Platform. ## | |
2148 | ## --------- ## | |
2149 | ||
2150 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
2151 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
2152 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
2153 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
2154 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
2155 | ||
2156 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
2157 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
2158 | ||
2159 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
2160 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
2161 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
2162 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` | |
2163 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
2164 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
2165 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
2166 | ||
2167 | _ASUNAME | |
2f1a1aea FCE |
2168 | |
2169 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2170 | for as_dir in $PATH | |
2171 | do | |
2172 | IFS=$as_save_IFS | |
2173 | test -z "$as_dir" && as_dir=. | |
1ef0423a FCE |
2174 | $as_echo "PATH: $as_dir" |
2175 | done | |
7fbd9d09 | 2176 | IFS=$as_save_IFS |
2f1a1aea FCE |
2177 | |
2178 | } >&5 | |
2179 | ||
2180 | cat >&5 <<_ACEOF | |
2181 | ||
2182 | ||
2183 | ## ----------- ## | |
2184 | ## Core tests. ## | |
2185 | ## ----------- ## | |
2186 | ||
2187 | _ACEOF | |
2188 | ||
2189 | ||
2190 | # Keep a trace of the command line. | |
2191 | # Strip out --no-create and --no-recursion so they do not pile up. | |
2192 | # Strip out --silent because we don't want to record it for future runs. | |
2193 | # Also quote any args containing shell meta-characters. | |
2194 | # Make two passes to allow for proper duplicate-argument suppression. | |
2195 | ac_configure_args= | |
2196 | ac_configure_args0= | |
2197 | ac_configure_args1= | |
2f1a1aea FCE |
2198 | ac_must_keep_next=false |
2199 | for ac_pass in 1 2 | |
2200 | do | |
2201 | for ac_arg | |
2202 | do | |
2203 | case $ac_arg in | |
2204 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
2205 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
2206 | | -silent | --silent | --silen | --sile | --sil) | |
2207 | continue ;; | |
7fbd9d09 | 2208 | *\'*) |
0710d850 | 2209 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
2f1a1aea FCE |
2210 | esac |
2211 | case $ac_pass in | |
1ef0423a | 2212 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; |
2f1a1aea | 2213 | 2) |
1ef0423a | 2214 | as_fn_append ac_configure_args1 " '$ac_arg'" |
2f1a1aea FCE |
2215 | if test $ac_must_keep_next = true; then |
2216 | ac_must_keep_next=false # Got value, back to normal. | |
2217 | else | |
2218 | case $ac_arg in | |
2219 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
2220 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
2221 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
2222 | | -with-* | --with-* | -without-* | --without-* | --x) | |
2223 | case "$ac_configure_args0 " in | |
2224 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
2225 | esac | |
2226 | ;; | |
2227 | -* ) ac_must_keep_next=true ;; | |
2228 | esac | |
2229 | fi | |
1ef0423a | 2230 | as_fn_append ac_configure_args " '$ac_arg'" |
2f1a1aea FCE |
2231 | ;; |
2232 | esac | |
2233 | done | |
2234 | done | |
1ef0423a FCE |
2235 | { ac_configure_args0=; unset ac_configure_args0;} |
2236 | { ac_configure_args1=; unset ac_configure_args1;} | |
2f1a1aea FCE |
2237 | |
2238 | # When interrupted or exit'd, cleanup temporary files, and complete | |
2239 | # config.log. We remove comments because anyway the quotes in there | |
2240 | # would cause problems or look ugly. | |
7fbd9d09 FCE |
2241 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
2242 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
2f1a1aea FCE |
2243 | trap 'exit_status=$? |
2244 | # Save into config.log some information that might help in debugging. | |
2245 | { | |
2246 | echo | |
2247 | ||
5d4aa1f5 | 2248 | $as_echo "## ---------------- ## |
2f1a1aea | 2249 | ## Cache variables. ## |
5d4aa1f5 | 2250 | ## ---------------- ##" |
2f1a1aea FCE |
2251 | echo |
2252 | # The following way of writing the cache mishandles newlines in values, | |
7fbd9d09 FCE |
2253 | ( |
2254 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
2255 | eval ac_val=\$$ac_var | |
2256 | case $ac_val in #( | |
2257 | *${as_nl}*) | |
2258 | case $ac_var in #( | |
1ef0423a | 2259 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
0710d850 | 2260 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
7fbd9d09 FCE |
2261 | esac |
2262 | case $ac_var in #( | |
2263 | _ | IFS | as_nl) ;; #( | |
0710d850 | 2264 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
1ef0423a | 2265 | *) { eval $ac_var=; unset $ac_var;} ;; |
7fbd9d09 FCE |
2266 | esac ;; |
2267 | esac | |
2268 | done | |
2f1a1aea | 2269 | (set) 2>&1 | |
7fbd9d09 FCE |
2270 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
2271 | *${as_nl}ac_space=\ *) | |
2f1a1aea | 2272 | sed -n \ |
7fbd9d09 FCE |
2273 | "s/'\''/'\''\\\\'\'''\''/g; |
2274 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
2275 | ;; #( | |
2f1a1aea | 2276 | *) |
7fbd9d09 | 2277 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
2f1a1aea | 2278 | ;; |
7fbd9d09 FCE |
2279 | esac | |
2280 | sort | |
2281 | ) | |
2f1a1aea FCE |
2282 | echo |
2283 | ||
5d4aa1f5 | 2284 | $as_echo "## ----------------- ## |
2f1a1aea | 2285 | ## Output variables. ## |
5d4aa1f5 | 2286 | ## ----------------- ##" |
2f1a1aea FCE |
2287 | echo |
2288 | for ac_var in $ac_subst_vars | |
2289 | do | |
7fbd9d09 FCE |
2290 | eval ac_val=\$$ac_var |
2291 | case $ac_val in | |
0710d850 | 2292 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
7fbd9d09 | 2293 | esac |
0710d850 | 2294 | $as_echo "$ac_var='\''$ac_val'\''" |
2f1a1aea FCE |
2295 | done | sort |
2296 | echo | |
2297 | ||
2298 | if test -n "$ac_subst_files"; then | |
5d4aa1f5 | 2299 | $as_echo "## ------------------- ## |
7fbd9d09 | 2300 | ## File substitutions. ## |
5d4aa1f5 | 2301 | ## ------------------- ##" |
2f1a1aea FCE |
2302 | echo |
2303 | for ac_var in $ac_subst_files | |
2304 | do | |
7fbd9d09 FCE |
2305 | eval ac_val=\$$ac_var |
2306 | case $ac_val in | |
0710d850 | 2307 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
7fbd9d09 | 2308 | esac |
0710d850 | 2309 | $as_echo "$ac_var='\''$ac_val'\''" |
2f1a1aea FCE |
2310 | done | sort |
2311 | echo | |
2312 | fi | |
2313 | ||
2314 | if test -s confdefs.h; then | |
5d4aa1f5 | 2315 | $as_echo "## ----------- ## |
2f1a1aea | 2316 | ## confdefs.h. ## |
5d4aa1f5 | 2317 | ## ----------- ##" |
2f1a1aea | 2318 | echo |
7fbd9d09 | 2319 | cat confdefs.h |
2f1a1aea FCE |
2320 | echo |
2321 | fi | |
2322 | test "$ac_signal" != 0 && | |
0710d850 DS |
2323 | $as_echo "$as_me: caught signal $ac_signal" |
2324 | $as_echo "$as_me: exit $exit_status" | |
2f1a1aea | 2325 | } >&5 |
7fbd9d09 FCE |
2326 | rm -f core *.core core.conftest.* && |
2327 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
2f1a1aea | 2328 | exit $exit_status |
7fbd9d09 | 2329 | ' 0 |
2f1a1aea | 2330 | for ac_signal in 1 2 13 15; do |
1ef0423a | 2331 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal |
2f1a1aea FCE |
2332 | done |
2333 | ac_signal=0 | |
2334 | ||
2335 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
7fbd9d09 | 2336 | rm -f -r conftest* confdefs.h |
2f1a1aea | 2337 | |
1ef0423a FCE |
2338 | $as_echo "/* confdefs.h */" > confdefs.h |
2339 | ||
2f1a1aea FCE |
2340 | # Predefined preprocessor variables. |
2341 | ||
2342 | cat >>confdefs.h <<_ACEOF | |
2343 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
2344 | _ACEOF | |
2345 | ||
2f1a1aea FCE |
2346 | cat >>confdefs.h <<_ACEOF |
2347 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
2348 | _ACEOF | |
2349 | ||
2f1a1aea FCE |
2350 | cat >>confdefs.h <<_ACEOF |
2351 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
2352 | _ACEOF | |
2353 | ||
2f1a1aea FCE |
2354 | cat >>confdefs.h <<_ACEOF |
2355 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
2356 | _ACEOF | |
2357 | ||
ec1a2239 | 2358 | cat >>confdefs.h <<_ACEOF |
5e5aee9f | 2359 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
ec1a2239 LB |
2360 | _ACEOF |
2361 | ||
1ef0423a FCE |
2362 | cat >>confdefs.h <<_ACEOF |
2363 | #define PACKAGE_URL "$PACKAGE_URL" | |
2364 | _ACEOF | |
2365 | ||
2f1a1aea FCE |
2366 | |
2367 | # Let the site file select an alternate cache file if it wants to. | |
0710d850 DS |
2368 | # Prefer an explicitly selected file to automatically selected ones. |
2369 | ac_site_file1=NONE | |
2370 | ac_site_file2=NONE | |
7fbd9d09 | 2371 | if test -n "$CONFIG_SITE"; then |
5d4aa1f5 FCE |
2372 | # We do not want a PATH search for config.site. |
2373 | case $CONFIG_SITE in #(( | |
2374 | -*) ac_site_file1=./$CONFIG_SITE;; | |
2375 | */*) ac_site_file1=$CONFIG_SITE;; | |
2376 | *) ac_site_file1=./$CONFIG_SITE;; | |
2377 | esac | |
7fbd9d09 | 2378 | elif test "x$prefix" != xNONE; then |
0710d850 DS |
2379 | ac_site_file1=$prefix/share/config.site |
2380 | ac_site_file2=$prefix/etc/config.site | |
7fbd9d09 | 2381 | else |
0710d850 DS |
2382 | ac_site_file1=$ac_default_prefix/share/config.site |
2383 | ac_site_file2=$ac_default_prefix/etc/config.site | |
818ba2bc | 2384 | fi |
0710d850 | 2385 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" |
7fbd9d09 | 2386 | do |
0710d850 | 2387 | test "x$ac_site_file" = xNONE && continue |
1ef0423a FCE |
2388 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then |
2389 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 | |
0710d850 | 2390 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} |
2f1a1aea | 2391 | sed 's/^/| /' "$ac_site_file" >&5 |
5d4aa1f5 FCE |
2392 | . "$ac_site_file" \ |
2393 | || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2394 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2395 | as_fn_error $? "failed to load site script $ac_site_file | |
2396 | See \`config.log' for more details" "$LINENO" 5; } | |
2f1a1aea FCE |
2397 | fi |
2398 | done | |
2399 | ||
2400 | if test -r "$cache_file"; then | |
1ef0423a FCE |
2401 | # Some versions of bash will fail to source /dev/null (special files |
2402 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. | |
2403 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then | |
2404 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 | |
0710d850 | 2405 | $as_echo "$as_me: loading cache $cache_file" >&6;} |
2f1a1aea | 2406 | case $cache_file in |
7fbd9d09 FCE |
2407 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
2408 | *) . "./$cache_file";; | |
2f1a1aea FCE |
2409 | esac |
2410 | fi | |
2411 | else | |
1ef0423a | 2412 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 |
0710d850 | 2413 | $as_echo "$as_me: creating cache $cache_file" >&6;} |
2f1a1aea FCE |
2414 | >$cache_file |
2415 | fi | |
2416 | ||
8f223b3e | 2417 | gt_needs="$gt_needs " |
2f1a1aea FCE |
2418 | # Check that the precious variables saved in the cache have kept the same |
2419 | # value. | |
2420 | ac_cache_corrupted=false | |
7fbd9d09 | 2421 | for ac_var in $ac_precious_vars; do |
2f1a1aea FCE |
2422 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
2423 | eval ac_new_set=\$ac_env_${ac_var}_set | |
7fbd9d09 FCE |
2424 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
2425 | eval ac_new_val=\$ac_env_${ac_var}_value | |
2f1a1aea FCE |
2426 | case $ac_old_set,$ac_new_set in |
2427 | set,) | |
1ef0423a | 2428 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
0710d850 | 2429 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
2f1a1aea FCE |
2430 | ac_cache_corrupted=: ;; |
2431 | ,set) | |
1ef0423a | 2432 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 |
0710d850 | 2433 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
2f1a1aea FCE |
2434 | ac_cache_corrupted=: ;; |
2435 | ,);; | |
2436 | *) | |
2437 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
0710d850 DS |
2438 | # differences in whitespace do not lead to failure. |
2439 | ac_old_val_w=`echo x $ac_old_val` | |
2440 | ac_new_val_w=`echo x $ac_new_val` | |
2441 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | |
1ef0423a | 2442 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 |
0710d850 DS |
2443 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
2444 | ac_cache_corrupted=: | |
2445 | else | |
1ef0423a | 2446 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 |
0710d850 DS |
2447 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} |
2448 | eval $ac_var=\$ac_old_val | |
2449 | fi | |
1ef0423a | 2450 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 |
0710d850 | 2451 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} |
1ef0423a | 2452 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 |
0710d850 | 2453 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} |
2f1a1aea FCE |
2454 | fi;; |
2455 | esac | |
2456 | # Pass precious variables to config.status. | |
2457 | if test "$ac_new_set" = set; then | |
2458 | case $ac_new_val in | |
0710d850 | 2459 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
4a3c19da EM |
2460 | *) ac_arg=$ac_var=$ac_new_val ;; |
2461 | esac | |
2462 | case " $ac_configure_args " in | |
2463 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
1ef0423a | 2464 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; |
4a3c19da EM |
2465 | esac |
2466 | fi | |
2467 | done | |
2468 | if $ac_cache_corrupted; then | |
1ef0423a | 2469 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
0710d850 | 2470 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
1ef0423a | 2471 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 |
0710d850 | 2472 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
5d4aa1f5 | 2473 | as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 |
4a3c19da | 2474 | fi |
1ef0423a FCE |
2475 | ## -------------------- ## |
2476 | ## Main body of script. ## | |
2477 | ## -------------------- ## | |
2f1a1aea | 2478 | |
7fbd9d09 FCE |
2479 | ac_ext=c |
2480 | ac_cpp='$CPP $CPPFLAGS' | |
2481 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2482 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2483 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2f1a1aea FCE |
2484 | |
2485 | ||
2486 | ||
2f1a1aea | 2487 | |
0710d850 | 2488 | am__api_version='1.11' |
10b20266 | 2489 | |
2f1a1aea | 2490 | ac_aux_dir= |
412e1bf7 | 2491 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do |
5d4aa1f5 FCE |
2492 | if test -f "$ac_dir/install-sh"; then |
2493 | ac_aux_dir=$ac_dir | |
2494 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
2495 | break | |
2496 | elif test -f "$ac_dir/install.sh"; then | |
2497 | ac_aux_dir=$ac_dir | |
2498 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
2499 | break | |
2500 | elif test -f "$ac_dir/shtool"; then | |
2501 | ac_aux_dir=$ac_dir | |
2502 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
2503 | break | |
2504 | fi | |
2f1a1aea FCE |
2505 | done |
2506 | if test -z "$ac_aux_dir"; then | |
5d4aa1f5 | 2507 | as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 |
2f1a1aea | 2508 | fi |
7fbd9d09 FCE |
2509 | |
2510 | # These three variables are undocumented and unsupported, | |
2511 | # and are intended to be withdrawn in a future Autoconf release. | |
2512 | # They can cause serious problems if a builder's source tree is in a directory | |
2513 | # whose full name contains unusual characters. | |
2514 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
2515 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
2516 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
2517 | ||
2f1a1aea FCE |
2518 | |
2519 | # Find a good install program. We prefer a C program (faster), | |
2520 | # so one script is as good as another. But avoid the broken or | |
2521 | # incompatible versions: | |
2522 | # SysV /etc/install, /usr/sbin/install | |
2523 | # SunOS /usr/etc/install | |
2524 | # IRIX /sbin/install | |
2525 | # AIX /bin/install | |
2526 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
2527 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
2528 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
2529 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
2530 | # OS/2's system install, which has a completely different semantic | |
2531 | # ./install, which can be erroneously created by make from ./install.sh. | |
0710d850 | 2532 | # Reject install programs that cannot install multiple files. |
1ef0423a | 2533 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 |
0710d850 | 2534 | $as_echo_n "checking for a BSD-compatible install... " >&6; } |
2f1a1aea | 2535 | if test -z "$INSTALL"; then |
c3de29bd | 2536 | if ${ac_cv_path_install+:} false; then : |
0710d850 | 2537 | $as_echo_n "(cached) " >&6 |
2f1a1aea FCE |
2538 | else |
2539 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2540 | for as_dir in $PATH | |
2541 | do | |
2542 | IFS=$as_save_IFS | |
2543 | test -z "$as_dir" && as_dir=. | |
1ef0423a FCE |
2544 | # Account for people who put trailing slashes in PATH elements. |
2545 | case $as_dir/ in #(( | |
2546 | ./ | .// | /[cC]/* | \ | |
2f1a1aea | 2547 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
1ef0423a | 2548 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ |
2f1a1aea FCE |
2549 | /usr/ucb/* ) ;; |
2550 | *) | |
2551 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
2552 | # Don't use installbsd from OSF since it installs stuff as root | |
2553 | # by default. | |
2554 | for ac_prog in ginstall scoinst install; do | |
2555 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7fbd9d09 | 2556 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then |
2f1a1aea FCE |
2557 | if test $ac_prog = install && |
2558 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2559 | # AIX install. It has an incompatible calling convention. | |
2560 | : | |
2561 | elif test $ac_prog = install && | |
2562 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2563 | # program-specific install script used by HP pwplus--don't use. | |
2564 | : | |
2565 | else | |
0710d850 DS |
2566 | rm -rf conftest.one conftest.two conftest.dir |
2567 | echo one > conftest.one | |
2568 | echo two > conftest.two | |
2569 | mkdir conftest.dir | |
2570 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | |
2571 | test -s conftest.one && test -s conftest.two && | |
2572 | test -s conftest.dir/conftest.one && | |
2573 | test -s conftest.dir/conftest.two | |
2574 | then | |
2575 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
2576 | break 3 | |
2577 | fi | |
2f1a1aea FCE |
2578 | fi |
2579 | fi | |
2580 | done | |
2581 | done | |
2582 | ;; | |
2583 | esac | |
0710d850 | 2584 | |
1ef0423a | 2585 | done |
7fbd9d09 | 2586 | IFS=$as_save_IFS |
2f1a1aea | 2587 | |
0710d850 | 2588 | rm -rf conftest.one conftest.two conftest.dir |
2f1a1aea FCE |
2589 | |
2590 | fi | |
2591 | if test "${ac_cv_path_install+set}" = set; then | |
2592 | INSTALL=$ac_cv_path_install | |
2593 | else | |
7fbd9d09 FCE |
2594 | # As a last resort, use the slow shell script. Don't cache a |
2595 | # value for INSTALL within a source directory, because that will | |
2f1a1aea | 2596 | # break other packages using the cache if that directory is |
7fbd9d09 | 2597 | # removed, or if the value is a relative name. |
2f1a1aea FCE |
2598 | INSTALL=$ac_install_sh |
2599 | fi | |
2600 | fi | |
1ef0423a | 2601 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 |
0710d850 | 2602 | $as_echo "$INSTALL" >&6; } |
2f1a1aea FCE |
2603 | |
2604 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
2605 | # It thinks the first close brace ends the variable substitution. | |
2606 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
2607 | ||
2608 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
2609 | ||
2610 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
2611 | ||
1ef0423a | 2612 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 |
0710d850 | 2613 | $as_echo_n "checking whether build environment is sane... " >&6; } |
2f1a1aea FCE |
2614 | # Just in case |
2615 | sleep 1 | |
2616 | echo timestamp > conftest.file | |
0710d850 DS |
2617 | # Reject unsafe characters in $srcdir or the absolute working directory |
2618 | # name. Accept space and tab only in the latter. | |
2619 | am_lf=' | |
2620 | ' | |
2621 | case `pwd` in | |
2622 | *[\\\"\#\$\&\'\`$am_lf]*) | |
5d4aa1f5 | 2623 | as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; |
0710d850 DS |
2624 | esac |
2625 | case $srcdir in | |
2626 | *[\\\"\#\$\&\'\`$am_lf\ \ ]*) | |
5d4aa1f5 | 2627 | as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;; |
0710d850 DS |
2628 | esac |
2629 | ||
2f1a1aea FCE |
2630 | # Do `set' in a subshell so we don't clobber the current shell's |
2631 | # arguments. Must try -L first in case configure is actually a | |
2632 | # symlink; some systems play weird games with the mod time of symlinks | |
2633 | # (eg FreeBSD returns the mod time of the symlink's containing | |
2634 | # directory). | |
2635 | if ( | |
0710d850 | 2636 | set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` |
2f1a1aea FCE |
2637 | if test "$*" = "X"; then |
2638 | # -L didn't work. | |
0710d850 | 2639 | set X `ls -t "$srcdir/configure" conftest.file` |
2f1a1aea FCE |
2640 | fi |
2641 | rm -f conftest.file | |
2642 | if test "$*" != "X $srcdir/configure conftest.file" \ | |
2643 | && test "$*" != "X conftest.file $srcdir/configure"; then | |
2644 | ||
2645 | # If neither matched, then we have a broken ls. This can happen | |
2646 | # if, for instance, CONFIG_SHELL is bash and it inherits a | |
2647 | # broken ls alias from the environment. This has actually | |
2648 | # happened. Such a system could not be considered "sane". | |
5d4aa1f5 | 2649 | as_fn_error $? "ls -t appears to fail. Make sure there is not a broken |
1ef0423a | 2650 | alias in your environment" "$LINENO" 5 |
2f1a1aea FCE |
2651 | fi |
2652 | ||
2653 | test "$2" = conftest.file | |
2654 | ) | |
2655 | then | |
2656 | # Ok. | |
2657 | : | |
2658 | else | |
5d4aa1f5 | 2659 | as_fn_error $? "newly created file is older than distributed files! |
1ef0423a | 2660 | Check your system clock" "$LINENO" 5 |
2f1a1aea | 2661 | fi |
1ef0423a | 2662 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
0710d850 | 2663 | $as_echo "yes" >&6; } |
2f1a1aea | 2664 | test "$program_prefix" != NONE && |
7fbd9d09 | 2665 | program_transform_name="s&^&$program_prefix&;$program_transform_name" |
2f1a1aea FCE |
2666 | # Use a double $ so make ignores it. |
2667 | test "$program_suffix" != NONE && | |
7fbd9d09 | 2668 | program_transform_name="s&\$&$program_suffix&;$program_transform_name" |
0710d850 | 2669 | # Double any \ or $. |
2f1a1aea | 2670 | # By default was `s,x,x', remove it if useless. |
0710d850 DS |
2671 | ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' |
2672 | program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` | |
2f1a1aea FCE |
2673 | |
2674 | # expand $ac_aux_dir to an absolute path | |
2675 | am_aux_dir=`cd $ac_aux_dir && pwd` | |
2676 | ||
0710d850 DS |
2677 | if test x"${MISSING+set}" != xset; then |
2678 | case $am_aux_dir in | |
2679 | *\ * | *\ *) | |
2680 | MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; | |
2681 | *) | |
2682 | MISSING="\${SHELL} $am_aux_dir/missing" ;; | |
2683 | esac | |
2684 | fi | |
2f1a1aea FCE |
2685 | # Use eval to expand $SHELL |
2686 | if eval "$MISSING --run true"; then | |
2687 | am_missing_run="$MISSING --run " | |
2688 | else | |
2689 | am_missing_run= | |
1ef0423a | 2690 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5 |
0710d850 DS |
2691 | $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} |
2692 | fi | |
2693 | ||
2694 | if test x"${install_sh}" != xset; then | |
2695 | case $am_aux_dir in | |
2696 | *\ * | *\ *) | |
2697 | install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; | |
2698 | *) | |
2699 | install_sh="\${SHELL} $am_aux_dir/install-sh" | |
2700 | esac | |
8d9d8fe1 DB |
2701 | fi |
2702 | ||
0710d850 DS |
2703 | # Installed binaries are usually stripped using `strip' when the user |
2704 | # run `make install-strip'. However `strip' might not be the right | |
2705 | # tool to use in cross-compilation environments, therefore Automake | |
2706 | # will honor the `STRIP' environment variable to overrule this program. | |
2707 | if test "$cross_compiling" != no; then | |
2708 | if test -n "$ac_tool_prefix"; then | |
2709 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
2710 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
1ef0423a | 2711 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
0710d850 | 2712 | $as_echo_n "checking for $ac_word... " >&6; } |
c3de29bd | 2713 | if ${ac_cv_prog_STRIP+:} false; then : |
0710d850 DS |
2714 | $as_echo_n "(cached) " >&6 |
2715 | else | |
2716 | if test -n "$STRIP"; then | |
2717 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
2718 | else | |
2719 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2720 | for as_dir in $PATH | |
2721 | do | |
2722 | IFS=$as_save_IFS | |
2723 | test -z "$as_dir" && as_dir=. | |
1ef0423a | 2724 | for ac_exec_ext in '' $ac_executable_extensions; do |
0710d850 DS |
2725 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
2726 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" | |
1ef0423a | 2727 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
0710d850 DS |
2728 | break 2 |
2729 | fi | |
2730 | done | |
1ef0423a | 2731 | done |
0710d850 DS |
2732 | IFS=$as_save_IFS |
2733 | ||
2734 | fi | |
2735 | fi | |
2736 | STRIP=$ac_cv_prog_STRIP | |
2737 | if test -n "$STRIP"; then | |
1ef0423a | 2738 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
0710d850 DS |
2739 | $as_echo "$STRIP" >&6; } |
2740 | else | |
1ef0423a | 2741 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
0710d850 DS |
2742 | $as_echo "no" >&6; } |
2743 | fi | |
2744 | ||
2745 | ||
2746 | fi | |
2747 | if test -z "$ac_cv_prog_STRIP"; then | |
2748 | ac_ct_STRIP=$STRIP | |
2749 | # Extract the first word of "strip", so it can be a program name with args. | |
2750 | set dummy strip; ac_word=$2 | |
1ef0423a | 2751 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
0710d850 | 2752 | $as_echo_n "checking for $ac_word... " >&6; } |
c3de29bd | 2753 | if ${ac_cv_prog_ac_ct_STRIP+:} false; then : |
0710d850 DS |
2754 | $as_echo_n "(cached) " >&6 |
2755 | else | |
2756 | if test -n "$ac_ct_STRIP"; then | |
2757 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
2758 | else | |
2759 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2760 | for as_dir in $PATH | |
2761 | do | |
2762 | IFS=$as_save_IFS | |
2763 | test -z "$as_dir" && as_dir=. | |
1ef0423a | 2764 | for ac_exec_ext in '' $ac_executable_extensions; do |
0710d850 DS |
2765 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
2766 | ac_cv_prog_ac_ct_STRIP="strip" | |
1ef0423a | 2767 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
0710d850 DS |
2768 | break 2 |
2769 | fi | |
2770 | done | |
1ef0423a | 2771 | done |
0710d850 DS |
2772 | IFS=$as_save_IFS |
2773 | ||
2774 | fi | |
2775 | fi | |
2776 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
2777 | if test -n "$ac_ct_STRIP"; then | |
1ef0423a | 2778 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 |
0710d850 DS |
2779 | $as_echo "$ac_ct_STRIP" >&6; } |
2780 | else | |
1ef0423a | 2781 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
0710d850 DS |
2782 | $as_echo "no" >&6; } |
2783 | fi | |
2784 | ||
2785 | if test "x$ac_ct_STRIP" = x; then | |
2786 | STRIP=":" | |
2787 | else | |
2788 | case $cross_compiling:$ac_tool_warned in | |
2789 | yes:) | |
1ef0423a | 2790 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
0710d850 DS |
2791 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
2792 | ac_tool_warned=yes ;; | |
2793 | esac | |
2794 | STRIP=$ac_ct_STRIP | |
2795 | fi | |
2796 | else | |
2797 | STRIP="$ac_cv_prog_STRIP" | |
2798 | fi | |
2799 | ||
2800 | fi | |
2801 | INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" | |
2802 | ||
1ef0423a | 2803 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 |
0710d850 | 2804 | $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } |
7fbd9d09 | 2805 | if test -z "$MKDIR_P"; then |
c3de29bd | 2806 | if ${ac_cv_path_mkdir+:} false; then : |
0710d850 | 2807 | $as_echo_n "(cached) " >&6 |
7fbd9d09 FCE |
2808 | else |
2809 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2810 | for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin | |
2811 | do | |
2812 | IFS=$as_save_IFS | |
2813 | test -z "$as_dir" && as_dir=. | |
1ef0423a | 2814 | for ac_prog in mkdir gmkdir; do |
7fbd9d09 FCE |
2815 | for ac_exec_ext in '' $ac_executable_extensions; do |
2816 | { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue | |
2817 | case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( | |
2818 | 'mkdir (GNU coreutils) '* | \ | |
2819 | 'mkdir (coreutils) '* | \ | |
2820 | 'mkdir (fileutils) '4.1*) | |
2821 | ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext | |
2822 | break 3;; | |
2823 | esac | |
2824 | done | |
2825 | done | |
1ef0423a | 2826 | done |
7fbd9d09 FCE |
2827 | IFS=$as_save_IFS |
2828 | ||
2829 | fi | |
2830 | ||
1ef0423a | 2831 | test -d ./--version && rmdir ./--version |
7fbd9d09 FCE |
2832 | if test "${ac_cv_path_mkdir+set}" = set; then |
2833 | MKDIR_P="$ac_cv_path_mkdir -p" | |
2f1a1aea | 2834 | else |
7fbd9d09 FCE |
2835 | # As a last resort, use the slow shell script. Don't cache a |
2836 | # value for MKDIR_P within a source directory, because that will | |
2837 | # break other packages using the cache if that directory is | |
2838 | # removed, or if the value is a relative name. | |
7fbd9d09 | 2839 | MKDIR_P="$ac_install_sh -d" |
2f1a1aea FCE |
2840 | fi |
2841 | fi | |
1ef0423a | 2842 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 |
0710d850 | 2843 | $as_echo "$MKDIR_P" >&6; } |
7fbd9d09 FCE |
2844 | |
2845 | mkdir_p="$MKDIR_P" | |
2846 | case $mkdir_p in | |
2847 | [\\/$]* | ?:[\\/]*) ;; | |
2848 | */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; | |
2849 | esac | |
2f1a1aea FCE |
2850 | |
2851 | for ac_prog in gawk mawk nawk awk | |
2852 | do | |
2853 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2854 | set dummy $ac_prog; ac_word=$2 | |
1ef0423a | 2855 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
0710d850 | 2856 | $as_echo_n "checking for $ac_word... " >&6; } |
c3de29bd | 2857 | if ${ac_cv_prog_AWK+:} false; then : |
0710d850 | 2858 | $as_echo_n "(cached) " >&6 |
2f1a1aea FCE |
2859 | else |
2860 | if test -n "$AWK"; then | |
2861 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
2862 | else | |
2863 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2864 | for as_dir in $PATH | |
2865 | do | |
2866 | IFS=$as_save_IFS | |
2867 | test -z "$as_dir" && as_dir=. | |
1ef0423a | 2868 | for ac_exec_ext in '' $ac_executable_extensions; do |
7fbd9d09 | 2869 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
2f1a1aea | 2870 | ac_cv_prog_AWK="$ac_prog" |
1ef0423a | 2871 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2f1a1aea FCE |
2872 | break 2 |
2873 | fi | |
2874 | done | |
1ef0423a | 2875 | done |
7fbd9d09 | 2876 | IFS=$as_save_IFS |
2f1a1aea FCE |
2877 | |
2878 | fi | |
2879 | fi | |
2880 | AWK=$ac_cv_prog_AWK | |
2881 | if test -n "$AWK"; then | |
1ef0423a | 2882 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 |
0710d850 | 2883 | $as_echo "$AWK" >&6; } |
2f1a1aea | 2884 | else |
1ef0423a | 2885 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
0710d850 | 2886 | $as_echo "no" >&6; } |
2f1a1aea FCE |
2887 | fi |
2888 | ||
7fbd9d09 | 2889 | |
2f1a1aea FCE |
2890 | test -n "$AWK" && break |
2891 | done | |
2892 | ||
1ef0423a | 2893 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
0710d850 DS |
2894 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } |
2895 | set x ${MAKE-make} | |
2896 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | |
c3de29bd | 2897 | if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : |
0710d850 | 2898 | $as_echo_n "(cached) " >&6 |
2f1a1aea FCE |
2899 | else |
2900 | cat >conftest.make <<\_ACEOF | |
412e1bf7 FCE |
2901 | SHELL = /bin/sh |
2902 | all: | |
2903 | @echo '@@@%%%=$(MAKE)=@@@%%%' | |
2904 | _ACEOF | |
5d4aa1f5 | 2905 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. |
412e1bf7 FCE |
2906 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
2907 | *@@@%%%=?*=@@@%%%*) | |
2908 | eval ac_cv_prog_make_${ac_make}_set=yes;; | |
2909 | *) | |
2910 | eval ac_cv_prog_make_${ac_make}_set=no;; | |
2911 | esac | |
2912 | rm -f conftest.make | |
4a3c19da | 2913 | fi |
412e1bf7 | 2914 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
1ef0423a | 2915 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
0710d850 | 2916 | $as_echo "yes" >&6; } |
412e1bf7 | 2917 | SET_MAKE= |
4a3c19da | 2918 | else |
1ef0423a | 2919 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
0710d850 | 2920 | $as_echo "no" >&6; } |
412e1bf7 | 2921 | SET_MAKE="MAKE=${MAKE-make}" |
2f1a1aea FCE |
2922 | fi |
2923 | ||
412e1bf7 FCE |
2924 | rm -rf .tst 2>/dev/null |
2925 | mkdir .tst 2>/dev/null | |
2926 | if test -d .tst; then | |
2927 | am__leading_dot=. | |
4a3c19da | 2928 | else |
412e1bf7 | 2929 | am__leading_dot=_ |
2f1a1aea | 2930 | fi |
412e1bf7 | 2931 | rmdir .tst 2>/dev/null |
2f1a1aea | 2932 | |
412e1bf7 FCE |
2933 | if test "`cd $srcdir && pwd`" != "`pwd`"; then |
2934 | # Use -I$(srcdir) only when $(srcdir) != ., so that make's output | |
2935 | # is not polluted with repeated "-I." | |
2936 | am__isrc=' -I$(srcdir)' | |
2937 | # test to see if srcdir already configured | |
2938 | if test -f $srcdir/config.status; then | |
5d4aa1f5 | 2939 | as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 |
412e1bf7 | 2940 | fi |
4a3c19da | 2941 | fi |
412e1bf7 FCE |
2942 | |
2943 | # test whether we have cygpath | |
2944 | if test -z "$CYGPATH_W"; then | |
2945 | if (cygpath --version) >/dev/null 2>/dev/null; then | |
2946 | CYGPATH_W='cygpath -w' | |
2947 | else | |
2948 | CYGPATH_W=echo | |
2949 | fi | |
2950 | fi | |
2951 | ||
2952 | ||
2953 | # Define the identity of the package. | |
2954 | PACKAGE='systemtap' | |
94d406fc | 2955 | VERSION='1.7' |
412e1bf7 FCE |
2956 | |
2957 | ||
2958 | cat >>confdefs.h <<_ACEOF | |
2959 | #define PACKAGE "$PACKAGE" | |
2960 | _ACEOF | |
2961 | ||
2962 | ||
2963 | cat >>confdefs.h <<_ACEOF | |
2964 | #define VERSION "$VERSION" | |
2965 | _ACEOF | |
2966 | ||
2967 | # Some tools Automake needs. | |
2968 | ||
2969 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} | |
2970 | ||
2971 | ||
2972 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} | |
2973 | ||
2974 | ||
0710d850 | 2975 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} |
31f9baea | 2976 | |
0710d850 DS |
2977 | |
2978 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} | |
2979 | ||
2980 | ||
2981 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} | |
2f1a1aea | 2982 | |
2f1a1aea FCE |
2983 | # We need awk for the "check" target. The system "awk" is bad on |
2984 | # some platforms. | |
2985 | # Always define AMTAR for backward compatibility. | |
2986 | ||
2987 | AMTAR=${AMTAR-"${am_missing_run}tar"} | |
2988 | ||
2989 | am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' | |
2990 | ||
2991 | ||
2992 | ||
2993 | ||
2994 | ||
0710d850 | 2995 | |
1ef0423a | 2996 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 |
0710d850 | 2997 | $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } |
7fbd9d09 | 2998 | # Check whether --enable-maintainer-mode was given. |
1ef0423a | 2999 | if test "${enable_maintainer_mode+set}" = set; then : |
7fbd9d09 | 3000 | enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval |
2f1a1aea FCE |
3001 | else |
3002 | USE_MAINTAINER_MODE=no | |
7fbd9d09 | 3003 | fi |
2f1a1aea | 3004 | |
1ef0423a | 3005 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 |
0710d850 | 3006 | $as_echo "$USE_MAINTAINER_MODE" >&6; } |
7fbd9d09 | 3007 | if test $USE_MAINTAINER_MODE = yes; then |
2f1a1aea FCE |
3008 | MAINTAINER_MODE_TRUE= |
3009 | MAINTAINER_MODE_FALSE='#' | |
3010 | else | |
3011 | MAINTAINER_MODE_TRUE='#' | |
3012 | MAINTAINER_MODE_FALSE= | |
3013 | fi | |
3014 | ||
3015 | MAINT=$MAINTAINER_MODE_TRUE | |
3016 | ||
3017 | ||
3018 | ||
0710d850 | 3019 | # Check whether --enable-silent-rules was given. |
1ef0423a | 3020 | if test "${enable_silent_rules+set}" = set; then : |
0710d850 DS |
3021 | enableval=$enable_silent_rules; |
3022 | fi | |
3023 | ||
3024 | case $enable_silent_rules in | |
3025 | yes) AM_DEFAULT_VERBOSITY=0;; | |
3026 | no) AM_DEFAULT_VERBOSITY=1;; | |
3027 | *) AM_DEFAULT_VERBOSITY=0;; | |
3028 | esac | |
3029 | AM_BACKSLASH='\' | |
618a8a63 JS |
3030 | |
3031 | ||
8f223b3e FCE |
3032 | DEPDIR="${am__leading_dot}deps" |
3033 | ||
3034 | ac_config_commands="$ac_config_commands depfiles" | |
3035 | ||
3036 | ||
3037 | am_make=${MAKE-make} | |
3038 | cat > confinc << 'END' | |
3039 | am__doit: | |
3040 | @echo this is the am__doit target | |
3041 | .PHONY: am__doit | |
3042 | END | |
3043 | # If we don't find an include directive, just comment out the code. | |
3044 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 | |
3045 | $as_echo_n "checking for style of include used by $am_make... " >&6; } | |
3046 | am__include="#" | |
3047 | am__quote= | |
3048 | _am_result=none | |
3049 | # First try GNU make style include. | |
3050 | echo "include confinc" > confmf | |
3051 | # Ignore all kinds of additional output from `make'. | |
3052 | case `$am_make -s -f confmf 2> /dev/null` in #( | |
3053 | *the\ am__doit\ target*) | |
3054 | am__include=include | |
3055 | am__quote= | |
3056 | _am_result=GNU | |
3057 | ;; | |
7fbd9d09 | 3058 | esac |
8f223b3e FCE |
3059 | # Now try BSD make style include. |
3060 | if test "$am__include" = "#"; then | |
3061 | echo '.include "confinc"' > confmf | |
3062 | case `$am_make -s -f confmf 2> /dev/null` in #( | |
3063 | *the\ am__doit\ target*) | |
3064 | am__include=.include | |
3065 | am__quote="\"" | |
3066 | _am_result=BSD | |
3067 | ;; | |
3068 | esac | |
3069 | fi | |
7fbd9d09 | 3070 | |
98aab489 | 3071 | |
8f223b3e FCE |
3072 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 |
3073 | $as_echo "$_am_result" >&6; } | |
3074 | rm -f confinc confmf | |
3075 | ||
3076 | # Check whether --enable-dependency-tracking was given. | |
3077 | if test "${enable_dependency_tracking+set}" = set; then : | |
3078 | enableval=$enable_dependency_tracking; | |
3079 | fi | |
3080 | ||
3081 | if test "x$enable_dependency_tracking" != xno; then | |
3082 | am_depcomp="$ac_aux_dir/depcomp" | |
3083 | AMDEPBACKSLASH='\' | |
3084 | fi | |
3085 | if test "x$enable_dependency_tracking" != xno; then | |
3086 | AMDEP_TRUE= | |
3087 | AMDEP_FALSE='#' | |
2f1a1aea | 3088 | else |
8f223b3e FCE |
3089 | AMDEP_TRUE='#' |
3090 | AMDEP_FALSE= | |
2f1a1aea FCE |
3091 | fi |
3092 | ||
8f223b3e | 3093 | |
2f1a1aea FCE |
3094 | ac_ext=c |
3095 | ac_cpp='$CPP $CPPFLAGS' | |
3096 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3097 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3098 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3099 | if test -n "$ac_tool_prefix"; then | |
3100 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
3101 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
1ef0423a | 3102 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
0710d850 | 3103 | $as_echo_n "checking for $ac_word... " >&6; } |
c3de29bd | 3104 | if ${ac_cv_prog_CC+:} false; then : |
0710d850 | 3105 | $as_echo_n "(cached) " >&6 |
2f1a1aea FCE |
3106 | else |
3107 | if test -n "$CC"; then | |
3108 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3109 | else | |
3110 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3111 | for as_dir in $PATH | |
3112 | do | |
3113 | IFS=$as_save_IFS | |
3114 | test -z "$as_dir" && as_dir=. | |
1ef0423a | 3115 | for ac_exec_ext in '' $ac_executable_extensions; do |
7fbd9d09 | 3116 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
2f1a1aea | 3117 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
1ef0423a | 3118 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2f1a1aea FCE |
3119 | break 2 |
3120 | fi | |
3121 | done | |
1ef0423a | 3122 | done |
7fbd9d09 | 3123 | IFS=$as_save_IFS |
2f1a1aea FCE |
3124 | |
3125 | fi | |
3126 | fi | |
3127 | CC=$ac_cv_prog_CC | |
3128 | if test -n "$CC"; then | |
1ef0423a | 3129 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
0710d850 | 3130 | $as_echo "$CC" >&6; } |
2f1a1aea | 3131 | else |
1ef0423a | 3132 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
0710d850 | 3133 | $as_echo "no" >&6; } |
2f1a1aea FCE |
3134 | fi |
3135 | ||
7fbd9d09 | 3136 | |
2f1a1aea FCE |
3137 | fi |
3138 | if test -z "$ac_cv_prog_CC"; then | |
3139 | ac_ct_CC=$CC | |
3140 | # Extract the first word of "gcc", so it can be a program name with args. | |
3141 | set dummy gcc; ac_word=$2 | |
1ef0423a | 3142 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
0710d850 | 3143 | $as_echo_n "checking for $ac_word... " >&6; } |
c3de29bd | 3144 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
0710d850 | 3145 | $as_echo_n "(cached) " >&6 |
2f1a1aea FCE |
3146 | else |
3147 | if test -n "$ac_ct_CC"; then | |
3148 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
3149 | else | |
3150 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3151 | for as_dir in $PATH | |
3152 | do | |
3153 | IFS=$as_save_IFS | |
3154 | test -z "$as_dir" && as_dir=. | |
1ef0423a | 3155 | for ac_exec_ext in '' $ac_executable_extensions; do |
7fbd9d09 | 3156 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
2f1a1aea | 3157 | ac_cv_prog_ac_ct_CC="gcc" |
1ef0423a | 3158 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2f1a1aea FCE |
3159 | break 2 |
3160 | fi | |
3161 | done | |
1ef0423a | 3162 | done |
7fbd9d09 | 3163 | IFS=$as_save_IFS |
2f1a1aea FCE |
3164 | |
3165 | fi | |
3166 | fi | |
3167 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
3168 | if test -n "$ac_ct_CC"; then | |
1ef0423a | 3169 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
0710d850 | 3170 | $as_echo "$ac_ct_CC" >&6; } |
2f1a1aea | 3171 | else |
1ef0423a | 3172 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
0710d850 | 3173 | $as_echo "no" >&6; } |
2f1a1aea FCE |
3174 | fi |
3175 | ||
7fbd9d09 FCE |
3176 | if test "x$ac_ct_CC" = x; then |
3177 | CC="" | |
3178 | else | |
3179 | case $cross_compiling:$ac_tool_warned in | |
3180 | yes:) | |
1ef0423a | 3181 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
0710d850 | 3182 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
7fbd9d09 FCE |
3183 | ac_tool_warned=yes ;; |
3184 | esac | |
3185 | CC=$ac_ct_CC | |
3186 | fi | |
2f1a1aea FCE |
3187 | else |
3188 | CC="$ac_cv_prog_CC" | |
3189 | fi | |
3190 | ||
3191 | if test -z "$CC"; then | |
7fbd9d09 FCE |
3192 | if test -n "$ac_tool_prefix"; then |
3193 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
2f1a1aea | 3194 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
1ef0423a | 3195 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
0710d850 | 3196 | $as_echo_n "checking for $ac_word... " >&6; } |
c3de29bd | 3197 | if ${ac_cv_prog_CC+:} false; then : |
0710d850 | 3198 | $as_echo_n "(cached) " >&6 |
2f1a1aea FCE |
3199 | else |
3200 | if test -n "$CC"; then | |
3201 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3202 | else | |
3203 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3204 | for as_dir in $PATH | |
3205 | do | |
3206 | IFS=$as_save_IFS | |
3207 | test -z "$as_dir" && as_dir=. | |
1ef0423a | 3208 | for ac_exec_ext in '' $ac_executable_extensions; do |
7fbd9d09 | 3209 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
2f1a1aea | 3210 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
1ef0423a | 3211 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2f1a1aea FCE |
3212 | break 2 |
3213 | fi | |
3214 | done | |
1ef0423a | 3215 | done |
7fbd9d09 | 3216 | IFS=$as_save_IFS |
2f1a1aea FCE |
3217 | |
3218 | fi | |
3219 | fi | |
3220 | CC=$ac_cv_prog_CC | |
3221 | if test -n "$CC"; then | |
1ef0423a | 3222 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
0710d850 | 3223 | $as_echo "$CC" >&6; } |
818ba2bc | 3224 | else |
1ef0423a | 3225 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
0710d850 | 3226 | $as_echo "no" >&6; } |
818ba2bc MW |
3227 | fi |
3228 | ||
818ba2bc | 3229 | |
7fbd9d09 | 3230 | fi |
2f1a1aea FCE |
3231 | fi |
3232 | if test -z "$CC"; then | |
3233 | # Extract the first word of "cc", so it can be a program name with args. | |
3234 | set dummy cc; ac_word=$2 | |
1ef0423a | 3235 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
0710d850 | 3236 | $as_echo_n "checking for $ac_word... " >&6; } |
c3de29bd | 3237 | if ${ac_cv_prog_CC+:} false; then : |
0710d850 | 3238 | $as_echo_n "(cached) " >&6 |
2f1a1aea FCE |
3239 | else |
3240 | if test -n "$CC"; then | |
3241 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3242 | else | |
3243 | ac_prog_rejected=no | |
3244 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3245 | for as_dir in $PATH | |
3246 | do | |
3247 | IFS=$as_save_IFS | |
3248 | test -z "$as_dir" && as_dir=. | |
1ef0423a | 3249 | for ac_exec_ext in '' $ac_executable_extensions; do |
7fbd9d09 | 3250 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
2f1a1aea FCE |
3251 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
3252 | ac_prog_rejected=yes | |
3253 | continue | |
3254 | fi | |
3255 | ac_cv_prog_CC="cc" | |
1ef0423a | 3256 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2f1a1aea FCE |
3257 | break 2 |
3258 | fi | |
3259 | done | |
1ef0423a | 3260 | done |
7fbd9d09 | 3261 | IFS=$as_save_IFS |
2f1a1aea FCE |
3262 | |
3263 | if test $ac_prog_rejected = yes; then | |
3264 | # We found a bogon in the path, so make sure we never use it. | |
3265 | set dummy $ac_cv_prog_CC | |
3266 | shift | |
3267 | if test $# != 0; then | |
3268 | # We chose a different compiler from the bogus one. | |
3269 | # However, it has the same basename, so the bogon will be chosen | |
3270 | # first if we set CC to just the basename; use the full file name. | |
3271 | shift | |
3272 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
3273 | fi | |
3274 | fi | |
3275 | fi | |
3276 | fi | |
3277 | CC=$ac_cv_prog_CC | |
3278 | if test -n "$CC"; then | |
1ef0423a | 3279 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
0710d850 | 3280 | $as_echo "$CC" >&6; } |
2f1a1aea | 3281 | else |
1ef0423a | 3282 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
0710d850 | 3283 | $as_echo "no" >&6; } |
2f1a1aea FCE |
3284 | fi |
3285 | ||
7fbd9d09 | 3286 | |
2f1a1aea FCE |
3287 | fi |
3288 | if test -z "$CC"; then | |
3289 | if test -n "$ac_tool_prefix"; then | |
7fbd9d09 | 3290 | for ac_prog in cl.exe |
2f1a1aea FCE |
3291 | do |
3292 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
3293 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
1ef0423a | 3294 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
0710d850 | 3295 | $as_echo_n "checking for $ac_word... " >&6; } |
c3de29bd | 3296 | if ${ac_cv_prog_CC+:} false; then : |
0710d850 | 3297 | $as_echo_n "(cached) " >&6 |
2f1a1aea FCE |
3298 | else |
3299 | if test -n "$CC"; then | |
3300 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3301 | else | |
3302 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3303 | for as_dir in $PATH | |
3304 | do | |
3305 | IFS=$as_save_IFS | |
3306 | test -z "$as_dir" && as_dir=. | |
1ef0423a | 3307 | for ac_exec_ext in '' $ac_executable_extensions; do |
7fbd9d09 | 3308 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
2f1a1aea | 3309 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
1ef0423a | 3310 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2f1a1aea FCE |
3311 | break 2 |
3312 | fi | |
3313 | done | |
1ef0423a | 3314 | done |
7fbd9d09 | 3315 | IFS=$as_save_IFS |
2f1a1aea FCE |
3316 | |
3317 | fi | |
3318 | fi | |
3319 | CC=$ac_cv_prog_CC | |
3320 | if test -n "$CC"; then | |
1ef0423a | 3321 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
0710d850 | 3322 | $as_echo "$CC" >&6; } |
2f1a1aea | 3323 | else |
1ef0423a | 3324 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
0710d850 | 3325 | $as_echo "no" >&6; } |
2f1a1aea FCE |
3326 | fi |
3327 | ||
7fbd9d09 | 3328 | |
2f1a1aea FCE |
3329 | test -n "$CC" && break |
3330 | done | |
3331 | fi | |
3332 | if test -z "$CC"; then | |
3333 | ac_ct_CC=$CC | |
7fbd9d09 | 3334 | for ac_prog in cl.exe |
2f1a1aea FCE |
3335 | do |
3336 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
3337 | set dummy $ac_prog; ac_word=$2 | |
1ef0423a | 3338 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
0710d850 | 3339 | $as_echo_n "checking for $ac_word... " >&6; } |
c3de29bd | 3340 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
0710d850 | 3341 | $as_echo_n "(cached) " >&6 |
2f1a1aea FCE |
3342 | else |
3343 | if test -n "$ac_ct_CC"; then | |
3344 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
3345 | else | |
3346 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3347 | for as_dir in $PATH | |
3348 | do | |
3349 | IFS=$as_save_IFS | |
3350 | test -z "$as_dir" && as_dir=. | |
1ef0423a | 3351 | for ac_exec_ext in '' $ac_executable_extensions; do |
7fbd9d09 | 3352 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
2f1a1aea | 3353 | ac_cv_prog_ac_ct_CC="$ac_prog" |
1ef0423a | 3354 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2f1a1aea FCE |
3355 | break 2 |
3356 | fi | |
3357 | done | |
1ef0423a | 3358 | done |
7fbd9d09 | 3359 | IFS=$as_save_IFS |
2f1a1aea FCE |
3360 | |
3361 | fi | |
3362 | fi | |
3363 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
3364 | if test -n "$ac_ct_CC"; then | |
1ef0423a | 3365 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
0710d850 | 3366 | $as_echo "$ac_ct_CC" >&6; } |
2f1a1aea | 3367 | else |
1ef0423a | 3368 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
0710d850 | 3369 | $as_echo "no" >&6; } |
2f1a1aea FCE |
3370 | fi |
3371 | ||
7fbd9d09 | 3372 | |
2f1a1aea FCE |
3373 | test -n "$ac_ct_CC" && break |
3374 | done | |
3375 | ||
7fbd9d09 FCE |
3376 | if test "x$ac_ct_CC" = x; then |
3377 | CC="" | |
3378 | else | |
3379 | case $cross_compiling:$ac_tool_warned in | |
3380 | yes:) | |
1ef0423a | 3381 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
0710d850 | 3382 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
7fbd9d09 FCE |
3383 | ac_tool_warned=yes ;; |
3384 | esac | |
3385 | CC=$ac_ct_CC | |
3386 | fi | |
2f1a1aea FCE |
3387 | fi |
3388 | ||
3389 | fi | |
3390 | ||
3391 | ||
1ef0423a | 3392 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
0710d850 | 3393 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
5d4aa1f5 FCE |
3394 | as_fn_error $? "no acceptable C compiler found in \$PATH |
3395 | See \`config.log' for more details" "$LINENO" 5; } | |
2f1a1aea FCE |
3396 | |
3397 | # Provide some information about the compiler. | |
1ef0423a | 3398 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
0710d850 DS |
3399 | set X $ac_compile |
3400 | ac_compiler=$2 | |
1ef0423a FCE |
3401 | for ac_option in --version -v -V -qversion; do |
3402 | { { ac_try="$ac_compiler $ac_option >&5" | |
5e5aee9f FCE |
3403 | case "(($ac_try" in |
3404 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3405 | *) ac_try_echo=$ac_try;; | |
3406 | esac | |
1ef0423a FCE |
3407 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
3408 | $as_echo "$ac_try_echo"; } >&5 | |
3409 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
5e5aee9f | 3410 | ac_status=$? |
1ef0423a FCE |
3411 | if test -s conftest.err; then |
3412 | sed '10a\ | |
3413 | ... rest of stderr output deleted ... | |
3414 | 10q' conftest.err >conftest.er1 | |
3415 | cat conftest.er1 >&5 | |
3416 | fi | |
3417 | rm -f conftest.er1 conftest.err | |
3418 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3419 | test $ac_status = 0; } | |
3420 | done | |
2f1a1aea | 3421 | |
1ef0423a | 3422 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
2f1a1aea | 3423 | /* end confdefs.h. */ |
412e1bf7 | 3424 | |
2f1a1aea FCE |
3425 | int |
3426 | main () | |
3427 | { | |
3428 | ||
3429 | ; | |
3430 | return 0; | |
3431 | } | |
3432 | _ACEOF | |
3433 | ac_clean_files_save=$ac_clean_files | |
0710d850 | 3434 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" |
2f1a1aea FCE |
3435 | # Try to create an executable without -o first, disregard a.out. |
3436 | # It will help us diagnose broken compilers, and finding out an intuition | |
3437 | # of exeext. | |
1ef0423a FCE |
3438 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 |
3439 | $as_echo_n "checking whether the C compiler works... " >&6; } | |
0710d850 DS |
3440 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
3441 | ||
3442 | # The possible output files: | |
3443 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | |
3444 | ||
7fbd9d09 FCE |
3445 | ac_rmfiles= |
3446 | for ac_file in $ac_files | |
3447 | do | |
3448 | case $ac_file in | |
0710d850 | 3449 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
7fbd9d09 FCE |
3450 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
3451 | esac | |
3452 | done | |
3453 | rm -f $ac_rmfiles | |
3454 | ||
1ef0423a | 3455 | if { { ac_try="$ac_link_default" |
7fbd9d09 FCE |
3456 | case "(($ac_try" in |
3457 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3458 | *) ac_try_echo=$ac_try;; | |
3459 | esac | |
1ef0423a FCE |
3460 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
3461 | $as_echo "$ac_try_echo"; } >&5 | |
7fbd9d09 | 3462 | (eval "$ac_link_default") 2>&5 |
2f1a1aea | 3463 | ac_status=$? |
1ef0423a FCE |
3464 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
3465 | test $ac_status = 0; }; then : | |
7fbd9d09 FCE |
3466 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
3467 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
3468 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
3469 | # so that the user can short-circuit this test for compilers unknown to | |
3470 | # Autoconf. | |
3471 | for ac_file in $ac_files '' | |
2f1a1aea FCE |
3472 | do |
3473 | test -f "$ac_file" || continue | |
3474 | case $ac_file in | |
0710d850 | 3475 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
2f1a1aea FCE |
3476 | ;; |
3477 | [ab].out ) | |
3478 | # We found the default executable, but exeext='' is most | |
3479 | # certainly right. | |
3480 | break;; | |
3481 | *.* ) | |
1ef0423a | 3482 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
7fbd9d09 FCE |
3483 | then :; else |
3484 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
3485 | fi | |
3486 | # We set ac_cv_exeext here because the later test for it is not | |
3487 | # safe: cross compilers may not add the suffix if given an `-o' | |
3488 | # argument, so we may need to know it at that point already. | |
3489 | # Even if this section looks crufty: it has the advantage of | |
3490 | # actually working. | |
2f1a1aea FCE |
3491 | break;; |
3492 | * ) | |
3493 | break;; | |
3494 | esac | |
3495 | done | |
7fbd9d09 FCE |
3496 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
3497 | ||
2f1a1aea | 3498 | else |
7fbd9d09 FCE |
3499 | ac_file='' |
3500 | fi | |
1ef0423a FCE |
3501 | if test -z "$ac_file"; then : |
3502 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3503 | $as_echo "no" >&6; } | |
3504 | $as_echo "$as_me: failed program was:" >&5 | |
2f1a1aea FCE |
3505 | sed 's/^/| /' conftest.$ac_ext >&5 |
3506 | ||
1ef0423a | 3507 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
0710d850 | 3508 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
5d4aa1f5 FCE |
3509 | as_fn_error 77 "C compiler cannot create executables |
3510 | See \`config.log' for more details" "$LINENO" 5; } | |
1ef0423a FCE |
3511 | else |
3512 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3513 | $as_echo "yes" >&6; } | |
2f1a1aea | 3514 | fi |
1ef0423a FCE |
3515 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
3516 | $as_echo_n "checking for C compiler default output file name... " >&6; } | |
3517 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 | |
3518 | $as_echo "$ac_file" >&6; } | |
2f1a1aea | 3519 | ac_exeext=$ac_cv_exeext |
2f1a1aea | 3520 | |
0710d850 | 3521 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
2f1a1aea | 3522 | ac_clean_files=$ac_clean_files_save |
1ef0423a | 3523 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 |
0710d850 | 3524 | $as_echo_n "checking for suffix of executables... " >&6; } |
1ef0423a | 3525 | if { { ac_try="$ac_link" |
7fbd9d09 FCE |
3526 | case "(($ac_try" in |
3527 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3528 | *) ac_try_echo=$ac_try;; | |
3529 | esac | |
1ef0423a FCE |
3530 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
3531 | $as_echo "$ac_try_echo"; } >&5 | |
7fbd9d09 | 3532 | (eval "$ac_link") 2>&5 |
2f1a1aea | 3533 | ac_status=$? |
1ef0423a FCE |
3534 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
3535 | test $ac_status = 0; }; then : | |
2f1a1aea FCE |
3536 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
3537 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
3538 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
3539 | # `rm'. | |
3540 | for ac_file in conftest.exe conftest conftest.*; do | |
3541 | test -f "$ac_file" || continue | |
3542 | case $ac_file in | |
0710d850 | 3543 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
2f1a1aea | 3544 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
2f1a1aea FCE |
3545 | break;; |
3546 | * ) break;; | |
3547 | esac | |
3548 | done | |
3549 | else | |
1ef0423a | 3550 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
0710d850 | 3551 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
5d4aa1f5 FCE |
3552 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link |
3553 | See \`config.log' for more details" "$LINENO" 5; } | |
2f1a1aea | 3554 | fi |
1ef0423a FCE |
3555 | rm -f conftest conftest$ac_cv_exeext |
3556 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 | |
0710d850 | 3557 | $as_echo "$ac_cv_exeext" >&6; } |
2f1a1aea FCE |
3558 | |
3559 | rm -f conftest.$ac_ext | |
3560 | EXEEXT=$ac_cv_exeext | |
3561 | ac_exeext=$EXEEXT | |
1ef0423a FCE |
3562 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3563 | /* end confdefs.h. */ | |
3564 | #include <stdio.h> | |
3565 | int | |
3566 | main () | |
3567 | { | |
3568 | FILE *f = fopen ("conftest.out", "w"); | |
3569 | return ferror (f) || fclose (f) != 0; | |
3570 | ||
3571 | ; | |
3572 | return 0; | |
3573 | } | |
3574 | _ACEOF | |
3575 | ac_clean_files="$ac_clean_files conftest.out" | |
3576 | # Check that the compiler produces executables we can run. If not, either | |
3577 | # the compiler is broken, or we cross compile. | |
3578 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 | |
3579 | $as_echo_n "checking whether we are cross compiling... " >&6; } | |
3580 | if test "$cross_compiling" != yes; then | |
3581 | { { ac_try="$ac_link" | |
3582 | case "(($ac_try" in | |
3583 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3584 | *) ac_try_echo=$ac_try;; | |
3585 | esac | |
3586 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3587 | $as_echo "$ac_try_echo"; } >&5 | |
3588 | (eval "$ac_link") 2>&5 | |
3589 | ac_status=$? | |
3590 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3591 | test $ac_status = 0; } | |
3592 | if { ac_try='./conftest$ac_cv_exeext' | |
3593 | { { case "(($ac_try" in | |
3594 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3595 | *) ac_try_echo=$ac_try;; | |
3596 | esac | |
3597 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3598 | $as_echo "$ac_try_echo"; } >&5 | |
3599 | (eval "$ac_try") 2>&5 | |
3600 | ac_status=$? | |
3601 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3602 | test $ac_status = 0; }; }; then | |
3603 | cross_compiling=no | |
3604 | else | |
3605 | if test "$cross_compiling" = maybe; then | |
3606 | cross_compiling=yes | |
3607 | else | |
3608 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3609 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
5d4aa1f5 | 3610 | as_fn_error $? "cannot run C compiled programs. |
1ef0423a | 3611 | If you meant to cross compile, use \`--host'. |
5d4aa1f5 | 3612 | See \`config.log' for more details" "$LINENO" 5; } |
1ef0423a FCE |
3613 | fi |
3614 | fi | |
3615 | fi | |
3616 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 | |
3617 | $as_echo "$cross_compiling" >&6; } | |
3618 | ||
3619 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out | |
3620 | ac_clean_files=$ac_clean_files_save | |
3621 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 | |
0710d850 | 3622 | $as_echo_n "checking for suffix of object files... " >&6; } |
c3de29bd | 3623 | if ${ac_cv_objext+:} false; then : |
0710d850 | 3624 | $as_echo_n "(cached) " >&6 |
2f1a1aea | 3625 | else |
1ef0423a | 3626 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
2f1a1aea FCE |
3627 | /* end confdefs.h. */ |
3628 | ||
3629 | int | |
3630 | main () | |
3631 | { | |
3632 | ||
3633 | ; | |
3634 | return 0; | |
3635 | } | |
3636 | _ACEOF | |
3637 | rm -f conftest.o conftest.obj | |
1ef0423a | 3638 | if { { ac_try="$ac_compile" |
7fbd9d09 FCE |
3639 | case "(($ac_try" in |
3640 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3641 | *) ac_try_echo=$ac_try;; | |
3642 | esac | |
1ef0423a FCE |
3643 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
3644 | $as_echo "$ac_try_echo"; } >&5 | |
7fbd9d09 | 3645 | (eval "$ac_compile") 2>&5 |
2f1a1aea | 3646 | ac_status=$? |
1ef0423a FCE |
3647 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
3648 | test $ac_status = 0; }; then : | |
7fbd9d09 FCE |
3649 | for ac_file in conftest.o conftest.obj conftest.*; do |
3650 | test -f "$ac_file" || continue; | |
2f1a1aea | 3651 | case $ac_file in |
0710d850 | 3652 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
2f1a1aea FCE |
3653 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
3654 | break;; | |
3655 | esac | |
3656 | done | |
3657 | else | |
0710d850 | 3658 | $as_echo "$as_me: failed program was:" >&5 |
2f1a1aea FCE |
3659 | sed 's/^/| /' conftest.$ac_ext >&5 |
3660 | ||
1ef0423a | 3661 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
0710d850 | 3662 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
5d4aa1f5 FCE |
3663 | as_fn_error $? "cannot compute suffix of object files: cannot compile |
3664 | See \`config.log' for more details" "$LINENO" 5; } | |
2f1a1aea | 3665 | fi |
2f1a1aea FCE |
3666 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
3667 | fi | |
1ef0423a | 3668 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
0710d850 | 3669 | $as_echo "$ac_cv_objext" >&6; } |
2f1a1aea FCE |
3670 | OBJEXT=$ac_cv_objext |
3671 | ac_objext=$OBJEXT | |
1ef0423a | 3672 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
0710d850 | 3673 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } |
c3de29bd | 3674 | if ${ac_cv_c_compiler_gnu+:} false; then : |
0710d850 | 3675 | $as_echo_n "(cached) " >&6 |
2f1a1aea | 3676 | else |
1ef0423a | 3677 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
2f1a1aea FCE |
3678 | /* end confdefs.h. */ |
3679 | ||
3680 | int | |
3681 | main () | |
3682 | { | |
3683 | #ifndef __GNUC__ | |
3684 | choke me | |
3685 | #endif | |
3686 | ||
3687 | ; | |
3688 | return 0; | |
3689 | } | |
3690 | _ACEOF | |
1ef0423a | 3691 | if ac_fn_c_try_compile "$LINENO"; then : |
2f1a1aea FCE |
3692 | ac_compiler_gnu=yes |
3693 | else | |
1ef0423a | 3694 | ac_compiler_gnu=no |
2f1a1aea | 3695 | fi |
7fbd9d09 | 3696 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
2f1a1aea FCE |
3697 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
3698 | ||
3699 | fi | |
1ef0423a | 3700 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
0710d850 DS |
3701 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } |
3702 | if test $ac_compiler_gnu = yes; then | |
3703 | GCC=yes | |
3704 | else | |
3705 | GCC= | |
3706 | fi | |
2f1a1aea FCE |
3707 | ac_test_CFLAGS=${CFLAGS+set} |
3708 | ac_save_CFLAGS=$CFLAGS | |
1ef0423a | 3709 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
0710d850 | 3710 | $as_echo_n "checking whether $CC accepts -g... " >&6; } |
c3de29bd | 3711 | if ${ac_cv_prog_cc_g+:} false; then : |
0710d850 | 3712 | $as_echo_n "(cached) " >&6 |
2f1a1aea | 3713 | else |
7fbd9d09 FCE |
3714 | ac_save_c_werror_flag=$ac_c_werror_flag |
3715 | ac_c_werror_flag=yes | |
3716 | ac_cv_prog_cc_g=no | |
3717 | CFLAGS="-g" | |
1ef0423a | 3718 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
2f1a1aea FCE |
3719 | /* end confdefs.h. */ |
3720 | ||
3721 | int | |
3722 | main () | |
3723 | { | |
3724 | ||
3725 | ; | |
3726 | return 0; | |
3727 | } | |
3728 | _ACEOF | |
1ef0423a | 3729 | if ac_fn_c_try_compile "$LINENO"; then : |
7fbd9d09 FCE |
3730 | ac_cv_prog_cc_g=yes |
3731 | else | |
1ef0423a FCE |
3732 | CFLAGS="" |
3733 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7fbd9d09 FCE |
3734 | /* end confdefs.h. */ |
3735 | ||
3736 | int | |
3737 | main () | |
3738 | { | |
3739 | ||
3740 | ; | |
3741 | return 0; | |
3742 | } | |
3743 | _ACEOF | |
1ef0423a | 3744 | if ac_fn_c_try_compile "$LINENO"; then : |
5e5aee9f | 3745 | |
1ef0423a FCE |
3746 | else |
3747 | ac_c_werror_flag=$ac_save_c_werror_flag | |
7fbd9d09 | 3748 | CFLAGS="-g" |
1ef0423a | 3749 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7fbd9d09 FCE |
3750 | /* end confdefs.h. */ |
3751 | ||
3752 | int | |
3753 | main () | |
3754 | { | |
3755 | ||
3756 | ; | |
3757 | return 0; | |
3758 | } | |
3759 | _ACEOF | |
1ef0423a | 3760 | if ac_fn_c_try_compile "$LINENO"; then : |
2f1a1aea | 3761 | ac_cv_prog_cc_g=yes |
7fbd9d09 | 3762 | fi |
7fbd9d09 | 3763 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
2f1a1aea | 3764 | fi |
7fbd9d09 FCE |
3765 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3766 | fi | |
7fbd9d09 FCE |
3767 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3768 | ac_c_werror_flag=$ac_save_c_werror_flag | |
2f1a1aea | 3769 | fi |
1ef0423a | 3770 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 |
0710d850 | 3771 | $as_echo "$ac_cv_prog_cc_g" >&6; } |
2f1a1aea FCE |
3772 | if test "$ac_test_CFLAGS" = set; then |
3773 | CFLAGS=$ac_save_CFLAGS | |
3774 | elif test $ac_cv_prog_cc_g = yes; then | |
3775 | if test "$GCC" = yes; then | |
3776 | CFLAGS="-g -O2" | |
3777 | else | |
3778 | CFLAGS="-g" | |
3779 | fi | |
3780 | else | |
3781 | if test "$GCC" = yes; then | |
3782 | CFLAGS="-O2" | |
3783 | else | |
3784 | CFLAGS= | |
3785 | fi | |
3786 | fi | |
1ef0423a | 3787 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
0710d850 | 3788 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } |
c3de29bd | 3789 | if ${ac_cv_prog_cc_c89+:} false; then : |
0710d850 | 3790 | $as_echo_n "(cached) " >&6 |
2f1a1aea | 3791 | else |
7fbd9d09 | 3792 | ac_cv_prog_cc_c89=no |
2f1a1aea | 3793 | ac_save_CC=$CC |
1ef0423a | 3794 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
2f1a1aea FCE |
3795 | /* end confdefs.h. */ |
3796 | #include <stdarg.h> | |
3797 | #include <stdio.h> | |
3798 | #include <sys/types.h> | |
3799 | #include <sys/stat.h> | |
3800 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
3801 | struct buf { int x; }; | |
3802 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
3803 | static char *e (p, i) | |
3804 | char **p; | |
3805 | int i; | |
3806 | { | |
3807 | return p[i]; | |
3808 | } | |
3809 | static char *f (char * (*g) (char **, int), char **p, ...) | |
3810 | { | |
3811 | char *s; | |
3812 | va_list v; | |
3813 | va_start (v,p); | |
3814 | s = g (p, va_arg (v,int)); | |
3815 | va_end (v); | |
3816 | return s; | |
3817 | } | |
3818 | ||
3819 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
3820 | function prototypes and stuff, but not '\xHH' hex character constants. | |
3821 | These don't provoke an error unfortunately, instead are silently treated | |
7fbd9d09 | 3822 | as 'x'. The following induces an error, until -std is added to get |
2f1a1aea FCE |
3823 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
3824 | array size at least. It's necessary to write '\x00'==0 to get something | |
7fbd9d09 | 3825 | that's true only with -std. */ |
2f1a1aea FCE |
3826 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
3827 | ||
7fbd9d09 FCE |
3828 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
3829 | inside strings and character constants. */ | |
3830 | #define FOO(x) 'x' | |
3831 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
3832 | ||
2f1a1aea FCE |
3833 | int test (int i, double x); |
3834 | struct s1 {int (*f) (int a);}; | |
3835 | struct s2 {int (*f) (double a);}; | |
3836 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
3837 | int argc; | |
3838 | char **argv; | |
3839 | int | |
3840 | main () | |
3841 | { | |
3842 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
3843 | ; | |
3844 | return 0; | |
3845 | } | |
3846 | _ACEOF | |
7fbd9d09 FCE |
3847 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
3848 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
2f1a1aea FCE |
3849 | do |
3850 | CC="$ac_save_CC $ac_arg" | |
1ef0423a | 3851 | if ac_fn_c_try_compile "$LINENO"; then : |
7fbd9d09 | 3852 | ac_cv_prog_cc_c89=$ac_arg |
2f1a1aea | 3853 | fi |
7fbd9d09 FCE |
3854 | rm -f core conftest.err conftest.$ac_objext |
3855 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
2f1a1aea | 3856 | done |
7fbd9d09 | 3857 | rm -f conftest.$ac_ext |
2f1a1aea FCE |
3858 | CC=$ac_save_CC |
3859 | ||
3860 | fi | |
7fbd9d09 FCE |
3861 | # AC_CACHE_VAL |
3862 | case "x$ac_cv_prog_cc_c89" in | |
3863 | x) | |
1ef0423a | 3864 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
0710d850 | 3865 | $as_echo "none needed" >&6; } ;; |
7fbd9d09 | 3866 | xno) |
1ef0423a | 3867 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
0710d850 | 3868 | $as_echo "unsupported" >&6; } ;; |
2f1a1aea | 3869 | *) |
7fbd9d09 | 3870 | CC="$CC $ac_cv_prog_cc_c89" |
1ef0423a | 3871 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 |
0710d850 | 3872 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; |
2f1a1aea | 3873 | esac |
1ef0423a | 3874 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
2f1a1aea | 3875 | |
1ef0423a | 3876 | fi |
818ba2bc | 3877 | |
818ba2bc MW |
3878 | ac_ext=c |
3879 | ac_cpp='$CPP $CPPFLAGS' | |
3880 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3881 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3882 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
818ba2bc | 3883 | |
8f223b3e | 3884 | depcc="$CC" am_compiler_list= |
2f1a1aea | 3885 | |
1ef0423a | 3886 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 |
0710d850 | 3887 | $as_echo_n "checking dependency style of $depcc... " >&6; } |
c3de29bd | 3888 | if ${am_cv_CC_dependencies_compiler_type+:} false; then : |
0710d850 | 3889 | $as_echo_n "(cached) " >&6 |
2f1a1aea FCE |
3890 | else |
3891 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | |
3892 | # We make a subdir and do the tests there. Otherwise we can end up | |
3893 | # making bogus files that we don't know about and never remove. For | |
3894 | # instance it was reported that on HP-UX the gcc test will end up | |
3895 | # making a dummy file named `D' -- because `-MD' means `put the output | |
3896 | # in D'. | |
3897 | mkdir conftest.dir | |
3898 | # Copy depcomp to subdir because otherwise we won't find it if we're | |
3899 | # using a relative directory. | |
3900 | cp "$am_depcomp" conftest.dir | |
3901 | cd conftest.dir | |
3902 | # We will build objects and dependencies in a subdirectory because | |
3903 | # it helps to detect inapplicable dependency modes. For instance | |
3904 | # both Tru64's cc and ICC support -MD to output dependencies as a | |
3905 | # side effect of compilation, but ICC will put the dependencies in | |
3906 | # the current directory while Tru64 will put them in the object | |
3907 | # directory. | |
3908 | mkdir sub | |
3909 | ||
3910 | am_cv_CC_dependencies_compiler_type=none | |
3911 | if test "$am_compiler_list" = ""; then | |
3912 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
3913 | fi | |
0710d850 DS |
3914 | am__universal=false |
3915 | case " $depcc " in #( | |
3916 | *\ -arch\ *\ -arch\ *) am__universal=true ;; | |
3917 | esac | |
3918 | ||
2f1a1aea FCE |
3919 | for depmode in $am_compiler_list; do |
3920 | # Setup a source with many dependencies, because some compilers | |
3921 | # like to wrap large dependency lists on column 80 (with \), and | |
3922 | # we should not choose a depcomp mode which is confused by this. | |
3923 | # | |
3924 | # We need to recreate these files for each test, as the compiler may | |
3925 | # overwrite some of them when testing with obscure command lines. | |
3926 | # This happens at least with the AIX C compiler. | |
3927 | : > sub/conftest.c | |
3928 | for i in 1 2 3 4 5 6; do | |
3929 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
3930 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with | |
3931 | # Solaris 8's {/usr,}/bin/sh. | |
3932 | touch sub/conftst$i.h | |
3933 | done | |
3934 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
3935 | ||
0710d850 DS |
3936 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
3937 | # mode. It turns out that the SunPro C++ compiler does not properly | |
3938 | # handle `-M -o', and we need to detect this. Also, some Intel | |
3939 | # versions had trouble with output in subdirs | |
3940 | am__obj=sub/conftest.${OBJEXT-o} | |
3941 | am__minus_obj="-o $am__obj" | |
2f1a1aea | 3942 | case $depmode in |
0710d850 DS |
3943 | gcc) |
3944 | # This depmode causes a compiler race in universal mode. | |
3945 | test "$am__universal" = false || continue | |
3946 | ;; | |
2f1a1aea FCE |
3947 | nosideeffect) |
3948 | # after this tag, mechanisms are not by side-effect, so they'll | |
3949 | # only be used when explicitly requested | |
3950 | if test "x$enable_dependency_tracking" = xyes; then | |
3951 | continue | |
3952 | else | |
3953 | break | |
3954 | fi | |
3955 | ;; | |
0710d850 DS |
3956 | msvisualcpp | msvcmsys) |
3957 | # This compiler won't grok `-c -o', but also, the minuso test has | |
3958 | # not run yet. These depmodes are late enough in the game, and | |
3959 | # so weak that their functioning should not be impacted. | |
3960 | am__obj=conftest.${OBJEXT-o} | |
3961 | am__minus_obj= | |
3962 | ;; | |
2f1a1aea FCE |
3963 | none) break ;; |
3964 | esac | |
2f1a1aea | 3965 | if depmode=$depmode \ |
0710d850 | 3966 | source=sub/conftest.c object=$am__obj \ |
2f1a1aea | 3967 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
0710d850 | 3968 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ |
2f1a1aea | 3969 | >/dev/null 2>conftest.err && |
7fbd9d09 | 3970 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && |
2f1a1aea | 3971 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
0710d850 | 3972 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && |
2f1a1aea FCE |
3973 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
3974 | # icc doesn't choke on unknown options, it will just issue warnings | |
3975 | # or remarks (even with -Werror). So we grep stderr for any message | |
3976 | # that says an option was ignored or not supported. | |
3977 | # When given -MP, icc 7.0 and 7.1 complain thusly: | |
3978 | # icc: Command line warning: ignoring option '-M'; no argument required | |
3979 | # The diagnosis changed in icc 8.0: | |
3980 | # icc: Command line remark: option '-MP' not supported | |
3981 | if (grep 'ignoring option' conftest.err || | |
3982 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
3983 | am_cv_CC_dependencies_compiler_type=$depmode | |
3984 | break | |
3985 | fi | |
3986 | fi | |
3987 | done | |
3988 | ||
3989 | cd .. | |
3990 | rm -rf conftest.dir | |
3991 | else | |
3992 | am_cv_CC_dependencies_compiler_type=none | |
3993 | fi | |
3994 | ||
3995 | fi | |
1ef0423a | 3996 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 |
0710d850 | 3997 | $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } |
2f1a1aea FCE |
3998 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type |
3999 | ||
7fbd9d09 | 4000 | if |
2f1a1aea FCE |
4001 | test "x$enable_dependency_tracking" != xno \ |
4002 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then | |
4003 | am__fastdepCC_TRUE= | |
4004 | am__fastdepCC_FALSE='#' | |
4005 | else | |
4006 | am__fastdepCC_TRUE='#' | |
4007 | am__fastdepCC_FALSE= | |
4008 | fi | |
4009 | ||
4010 | ||
8f223b3e FCE |
4011 | |
4012 | ac_ext=c | |
4013 | ac_cpp='$CPP $CPPFLAGS' | |
4014 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4015 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4016 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4017 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 | |
4018 | $as_echo_n "checking how to run the C preprocessor... " >&6; } | |
4019 | # On Suns, sometimes $CPP names a directory. | |
4020 | if test -n "$CPP" && test -d "$CPP"; then | |
4021 | CPP= | |
4022 | fi | |
4023 | if test -z "$CPP"; then | |
c3de29bd | 4024 | if ${ac_cv_prog_CPP+:} false; then : |
0710d850 | 4025 | $as_echo_n "(cached) " >&6 |
2f1a1aea | 4026 | else |
8f223b3e FCE |
4027 | # Double quotes because CPP needs to be expanded |
4028 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
4029 | do | |
4030 | ac_preproc_ok=false | |
4031 | for ac_c_preproc_warn_flag in '' yes | |
2f1a1aea | 4032 | do |
8f223b3e FCE |
4033 | # Use a header file that comes with gcc, so configuring glibc |
4034 | # with a fresh cross-compiler works. | |
4035 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
4036 | # <limits.h> exists even on freestanding compilers. | |
4037 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
4038 | # not just through cpp. "Syntax error" is here to catch this case. | |
4039 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4040 | /* end confdefs.h. */ | |
4041 | #ifdef __STDC__ | |
4042 | # include <limits.h> | |
4043 | #else | |
4044 | # include <assert.h> | |
4045 | #endif | |
4046 | Syntax error | |
4047 | _ACEOF | |
4048 | if ac_fn_c_try_cpp "$LINENO"; then : | |
2f1a1aea | 4049 | |
8f223b3e FCE |
4050 | else |
4051 | # Broken: fails on valid input. | |
4052 | continue | |
2f1a1aea | 4053 | fi |
c3de29bd | 4054 | rm -f conftest.err conftest.i conftest.$ac_ext |
8f223b3e FCE |
4055 | |
4056 | # OK, works on sane cases. Now check whether nonexistent headers | |
4057 | # can be detected and how. | |
4058 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4059 | /* end confdefs.h. */ | |
4060 | #include <ac_nonexistent.h> | |
4061 | _ACEOF | |
4062 | if ac_fn_c_try_cpp "$LINENO"; then : | |
4063 | # Broken: success on invalid input. | |
4064 | continue | |
2f1a1aea | 4065 | else |
8f223b3e FCE |
4066 | # Passes both tests. |
4067 | ac_preproc_ok=: | |
4068 | break | |
4069 | fi | |
c3de29bd | 4070 | rm -f conftest.err conftest.i conftest.$ac_ext |
8f223b3e FCE |
4071 | |
4072 | done | |
4073 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
c3de29bd | 4074 | rm -f conftest.i conftest.err conftest.$ac_ext |
8f223b3e FCE |
4075 | if $ac_preproc_ok; then : |
4076 | break | |
2f1a1aea FCE |
4077 | fi |
4078 | ||
8f223b3e FCE |
4079 | done |
4080 | ac_cv_prog_CPP=$CPP | |
7fbd9d09 | 4081 | |
2f1a1aea | 4082 | fi |
8f223b3e | 4083 | CPP=$ac_cv_prog_CPP |
2f1a1aea | 4084 | else |
8f223b3e FCE |
4085 | ac_cv_prog_CPP=$CPP |
4086 | fi | |
4087 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 | |
4088 | $as_echo "$CPP" >&6; } | |
4089 | ac_preproc_ok=false | |
4090 | for ac_c_preproc_warn_flag in '' yes | |
2f1a1aea | 4091 | do |
8f223b3e FCE |
4092 | # Use a header file that comes with gcc, so configuring glibc |
4093 | # with a fresh cross-compiler works. | |
4094 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
4095 | # <limits.h> exists even on freestanding compilers. | |
4096 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
4097 | # not just through cpp. "Syntax error" is here to catch this case. | |
4098 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4099 | /* end confdefs.h. */ | |
4100 | #ifdef __STDC__ | |
4101 | # include <limits.h> | |
4102 | #else | |
4103 | # include <assert.h> | |
4104 | #endif | |
4105 | Syntax error | |
4106 | _ACEOF | |
4107 | if ac_fn_c_try_cpp "$LINENO"; then : | |
2f1a1aea | 4108 | |
2f1a1aea | 4109 | else |
8f223b3e FCE |
4110 | # Broken: fails on valid input. |
4111 | continue | |
2f1a1aea | 4112 | fi |
c3de29bd | 4113 | rm -f conftest.err conftest.i conftest.$ac_ext |
2f1a1aea | 4114 | |
8f223b3e FCE |
4115 | # OK, works on sane cases. Now check whether nonexistent headers |
4116 | # can be detected and how. | |
4117 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4118 | /* end confdefs.h. */ | |
4119 | #include <ac_nonexistent.h> | |
4120 | _ACEOF | |
4121 | if ac_fn_c_try_cpp "$LINENO"; then : | |
4122 | # Broken: success on invalid input. | |
4123 | continue | |
4124 | else | |
4125 | # Passes both tests. | |
4126 | ac_preproc_ok=: | |
4127 | break | |
4128 | fi | |
c3de29bd | 4129 | rm -f conftest.err conftest.i conftest.$ac_ext |
7fbd9d09 | 4130 | |
2f1a1aea | 4131 | done |
8f223b3e | 4132 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
c3de29bd | 4133 | rm -f conftest.i conftest.err conftest.$ac_ext |
8f223b3e | 4134 | if $ac_preproc_ok; then : |
2f1a1aea | 4135 | |
8f223b3e FCE |
4136 | else |
4137 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
4138 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
5d4aa1f5 FCE |
4139 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check |
4140 | See \`config.log' for more details" "$LINENO" 5; } | |
2f1a1aea FCE |
4141 | fi |
4142 | ||
8f223b3e FCE |
4143 | ac_ext=c |
4144 | ac_cpp='$CPP $CPPFLAGS' | |
4145 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4146 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4147 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4148 | ||
4149 | ||
4150 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 | |
4151 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } | |
c3de29bd | 4152 | if ${ac_cv_path_GREP+:} false; then : |
8f223b3e FCE |
4153 | $as_echo_n "(cached) " >&6 |
4154 | else | |
4155 | if test -z "$GREP"; then | |
4156 | ac_path_GREP_found=false | |
4157 | # Loop through the user's path and test for each of PROGNAME-LIST | |
4158 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4159 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
4160 | do | |
4161 | IFS=$as_save_IFS | |
4162 | test -z "$as_dir" && as_dir=. | |
4163 | for ac_prog in grep ggrep; do | |
4164 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4165 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | |
4166 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue | |
4167 | # Check for GNU ac_path_GREP and select it if it is found. | |
4168 | # Check for GNU $ac_path_GREP | |
4169 | case `"$ac_path_GREP" --version 2>&1` in | |
4170 | *GNU*) | |
4171 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | |
4172 | *) | |
4173 | ac_count=0 | |
4174 | $as_echo_n 0123456789 >"conftest.in" | |
4175 | while : | |
4176 | do | |
4177 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
4178 | mv "conftest.tmp" "conftest.in" | |
4179 | cp "conftest.in" "conftest.nl" | |
4180 | $as_echo 'GREP' >> "conftest.nl" | |
4181 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
4182 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
4183 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
4184 | if test $ac_count -gt ${ac_path_GREP_max-0}; then | |
4185 | # Best one so far, save it but keep looking for a better one | |
4186 | ac_cv_path_GREP="$ac_path_GREP" | |
4187 | ac_path_GREP_max=$ac_count | |
4188 | fi | |
4189 | # 10*(2^10) chars as input seems more than enough | |
4190 | test $ac_count -gt 10 && break | |
4191 | done | |
4192 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
5e5aee9f | 4193 | esac |
8f223b3e FCE |
4194 | |
4195 | $ac_path_GREP_found && break 3 | |
4196 | done | |
4197 | done | |
4198 | done | |
4199 | IFS=$as_save_IFS | |
4200 | if test -z "$ac_cv_path_GREP"; then | |
5d4aa1f5 | 4201 | as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
1ef0423a | 4202 | fi |
8f223b3e FCE |
4203 | else |
4204 | ac_cv_path_GREP=$GREP | |
4205 | fi | |
2f1a1aea | 4206 | |
8f223b3e FCE |
4207 | fi |
4208 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 | |
4209 | $as_echo "$ac_cv_path_GREP" >&6; } | |
4210 | GREP="$ac_cv_path_GREP" | |
4211 | ||
4212 | ||
4213 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 | |
4214 | $as_echo_n "checking for egrep... " >&6; } | |
c3de29bd | 4215 | if ${ac_cv_path_EGREP+:} false; then : |
8f223b3e FCE |
4216 | $as_echo_n "(cached) " >&6 |
4217 | else | |
4218 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 | |
4219 | then ac_cv_path_EGREP="$GREP -E" | |
4220 | else | |
4221 | if test -z "$EGREP"; then | |
4222 | ac_path_EGREP_found=false | |
4223 | # Loop through the user's path and test for each of PROGNAME-LIST | |
4224 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4225 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
4226 | do | |
4227 | IFS=$as_save_IFS | |
4228 | test -z "$as_dir" && as_dir=. | |
4229 | for ac_prog in egrep; do | |
4230 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4231 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | |
4232 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue | |
4233 | # Check for GNU ac_path_EGREP and select it if it is found. | |
4234 | # Check for GNU $ac_path_EGREP | |
4235 | case `"$ac_path_EGREP" --version 2>&1` in | |
4236 | *GNU*) | |
4237 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | |
4238 | *) | |
4239 | ac_count=0 | |
4240 | $as_echo_n 0123456789 >"conftest.in" | |
4241 | while : | |
4242 | do | |
4243 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
4244 | mv "conftest.tmp" "conftest.in" | |
4245 | cp "conftest.in" "conftest.nl" | |
4246 | $as_echo 'EGREP' >> "conftest.nl" | |
4247 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
4248 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
4249 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
4250 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then | |
4251 | # Best one so far, save it but keep looking for a better one | |
4252 | ac_cv_path_EGREP="$ac_path_EGREP" | |
4253 | ac_path_EGREP_max=$ac_count | |
4254 | fi | |
4255 | # 10*(2^10) chars as input seems more than enough | |
4256 | test $ac_count -gt 10 && break | |
4257 | done | |
4258 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
4259 | esac | |
4260 | ||
4261 | $ac_path_EGREP_found && break 3 | |
4262 | done | |
4263 | done | |
4264 | done | |
4265 | IFS=$as_save_IFS | |
4266 | if test -z "$ac_cv_path_EGREP"; then | |
5d4aa1f5 | 4267 | as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
8f223b3e FCE |
4268 | fi |
4269 | else | |
4270 | ac_cv_path_EGREP=$EGREP | |
4271 | fi | |
4272 | ||
4273 | fi | |
4274 | fi | |
4275 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 | |
4276 | $as_echo "$ac_cv_path_EGREP" >&6; } | |
4277 | EGREP="$ac_cv_path_EGREP" | |
4278 | ||
4279 | ||
4280 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 | |
4281 | $as_echo_n "checking for ANSI C header files... " >&6; } | |
c3de29bd | 4282 | if ${ac_cv_header_stdc+:} false; then : |
0710d850 | 4283 | $as_echo_n "(cached) " >&6 |
2f1a1aea | 4284 | else |
1ef0423a | 4285 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
2f1a1aea | 4286 | /* end confdefs.h. */ |
8f223b3e FCE |
4287 | #include <stdlib.h> |
4288 | #include <stdarg.h> | |
4289 | #include <string.h> | |
4290 | #include <float.h> | |
2f1a1aea FCE |
4291 | |
4292 | int | |
4293 | main () | |
4294 | { | |
2f1a1aea FCE |
4295 | |
4296 | ; | |
4297 | return 0; | |
4298 | } | |
4299 | _ACEOF | |
8f223b3e FCE |
4300 | if ac_fn_c_try_compile "$LINENO"; then : |
4301 | ac_cv_header_stdc=yes | |
2f1a1aea | 4302 | else |
8f223b3e | 4303 | ac_cv_header_stdc=no |
2f1a1aea | 4304 | fi |
7fbd9d09 | 4305 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
2f1a1aea | 4306 | |
8f223b3e FCE |
4307 | if test $ac_cv_header_stdc = yes; then |
4308 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
4309 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4310 | /* end confdefs.h. */ | |
4311 | #include <string.h> | |
4312 | ||
4313 | _ACEOF | |
4314 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
4315 | $EGREP "memchr" >/dev/null 2>&1; then : | |
4316 | ||
0710d850 | 4317 | else |
8f223b3e | 4318 | ac_cv_header_stdc=no |
0710d850 | 4319 | fi |
8f223b3e | 4320 | rm -f conftest* |
2f1a1aea | 4321 | |
8f223b3e FCE |
4322 | fi |
4323 | ||
4324 | if test $ac_cv_header_stdc = yes; then | |
4325 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
4326 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4327 | /* end confdefs.h. */ | |
4328 | #include <stdlib.h> | |
2f1a1aea | 4329 | |
2f1a1aea | 4330 | _ACEOF |
8f223b3e FCE |
4331 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
4332 | $EGREP "free" >/dev/null 2>&1; then : | |
4333 | ||
2f1a1aea | 4334 | else |
8f223b3e FCE |
4335 | ac_cv_header_stdc=no |
4336 | fi | |
4337 | rm -f conftest* | |
4338 | ||
4339 | fi | |
4340 | ||
4341 | if test $ac_cv_header_stdc = yes; then | |
4342 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
4343 | if test "$cross_compiling" = yes; then : | |
4344 | : | |
4345 | else | |
4346 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2f1a1aea | 4347 | /* end confdefs.h. */ |
8f223b3e FCE |
4348 | #include <ctype.h> |
4349 | #include <stdlib.h> | |
4350 | #if ((' ' & 0x0FF) == 0x020) | |
4351 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
4352 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
4353 | #else | |
4354 | # define ISLOWER(c) \ | |
4355 | (('a' <= (c) && (c) <= 'i') \ | |
4356 | || ('j' <= (c) && (c) <= 'r') \ | |
4357 | || ('s' <= (c) && (c) <= 'z')) | |
4358 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
4359 | #endif | |
7fbd9d09 | 4360 | |
8f223b3e | 4361 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
2f1a1aea FCE |
4362 | int |
4363 | main () | |
4364 | { | |
8f223b3e FCE |
4365 | int i; |
4366 | for (i = 0; i < 256; i++) | |
4367 | if (XOR (islower (i), ISLOWER (i)) | |
4368 | || toupper (i) != TOUPPER (i)) | |
4369 | return 2; | |
2f1a1aea FCE |
4370 | return 0; |
4371 | } | |
4372 | _ACEOF | |
8f223b3e | 4373 | if ac_fn_c_try_run "$LINENO"; then : |
5e5aee9f | 4374 | |
1ef0423a | 4375 | else |
8f223b3e FCE |
4376 | ac_cv_header_stdc=no |
4377 | fi | |
4378 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
4379 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
4380 | fi | |
4381 | ||
4382 | fi | |
4383 | fi | |
4384 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 | |
4385 | $as_echo "$ac_cv_header_stdc" >&6; } | |
4386 | if test $ac_cv_header_stdc = yes; then | |
4387 | ||
4388 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h | |
4389 | ||
4390 | fi | |
4391 | ||
4392 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | |
4393 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
4394 | inttypes.h stdint.h unistd.h | |
4395 | do : | |
4396 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
4397 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default | |
4398 | " | |
5d4aa1f5 | 4399 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
8f223b3e FCE |
4400 | cat >>confdefs.h <<_ACEOF |
4401 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
4402 | _ACEOF | |
4403 | ||
4404 | fi | |
4405 | ||
4406 | done | |
4407 | ||
4408 | ||
4409 | ||
4410 | ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" | |
c3de29bd | 4411 | if test "x$ac_cv_header_minix_config_h" = xyes; then : |
8f223b3e FCE |
4412 | MINIX=yes |
4413 | else | |
4414 | MINIX= | |
4415 | fi | |
4416 | ||
4417 | ||
4418 | if test "$MINIX" = yes; then | |
4419 | ||
4420 | $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h | |
4421 | ||
4422 | ||
4423 | $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h | |
4424 | ||
4425 | ||
4426 | $as_echo "#define _MINIX 1" >>confdefs.h | |
4427 | ||
4428 | fi | |
4429 | ||
4430 | ||
4431 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 | |
4432 | $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } | |
c3de29bd | 4433 | if ${ac_cv_safe_to_define___extensions__+:} false; then : |
8f223b3e FCE |
4434 | $as_echo_n "(cached) " >&6 |
4435 | else | |
4436 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2f1a1aea | 4437 | /* end confdefs.h. */ |
7fbd9d09 | 4438 | |
8f223b3e FCE |
4439 | # define __EXTENSIONS__ 1 |
4440 | $ac_includes_default | |
2f1a1aea FCE |
4441 | int |
4442 | main () | |
4443 | { | |
7fbd9d09 | 4444 | |
2f1a1aea FCE |
4445 | ; |
4446 | return 0; | |
4447 | } | |
4a3c19da | 4448 | _ACEOF |
8f223b3e FCE |
4449 | if ac_fn_c_try_compile "$LINENO"; then : |
4450 | ac_cv_safe_to_define___extensions__=yes | |
4451 | else | |
4452 | ac_cv_safe_to_define___extensions__=no | |
5e0d2ebf | 4453 | fi |
7fbd9d09 | 4454 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
7fbd9d09 | 4455 | fi |
8f223b3e FCE |
4456 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 |
4457 | $as_echo "$ac_cv_safe_to_define___extensions__" >&6; } | |
4458 | test $ac_cv_safe_to_define___extensions__ = yes && | |
4459 | $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h | |
2f1a1aea | 4460 | |
8f223b3e | 4461 | $as_echo "#define _ALL_SOURCE 1" >>confdefs.h |
2f1a1aea | 4462 | |
8f223b3e | 4463 | $as_echo "#define _GNU_SOURCE 1" >>confdefs.h |
2f1a1aea | 4464 | |
8f223b3e | 4465 | $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h |
0710d850 | 4466 | |
8f223b3e | 4467 | $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h |
2f1a1aea | 4468 | |
2f1a1aea | 4469 | |
8f223b3e FCE |
4470 | mkdir_p="$MKDIR_P" |
4471 | case $mkdir_p in | |
4472 | [\\/$]* | ?:[\\/]*) ;; | |
4473 | */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; | |
4474 | esac | |
2f1a1aea | 4475 | |
2f1a1aea | 4476 | |
8f223b3e FCE |
4477 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 |
4478 | $as_echo_n "checking whether ln -s works... " >&6; } | |
4479 | LN_S=$as_ln_s | |
4480 | if test "$LN_S" = "ln -s"; then | |
4481 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
4482 | $as_echo "yes" >&6; } | |
2f1a1aea | 4483 | else |
8f223b3e FCE |
4484 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 |
4485 | $as_echo "no, using $LN_S" >&6; } | |
2f1a1aea FCE |
4486 | fi |
4487 | ||
2f1a1aea FCE |
4488 | ac_ext=c |
4489 | ac_cpp='$CPP $CPPFLAGS' | |
4490 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4491 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4492 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
8f223b3e FCE |
4493 | if test -n "$ac_tool_prefix"; then |
4494 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
4495 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
4496 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4497 | $as_echo_n "checking for $ac_word... " >&6; } | |
c3de29bd | 4498 | if ${ac_cv_prog_CC+:} false; then : |
0710d850 | 4499 | $as_echo_n "(cached) " >&6 |
2f1a1aea | 4500 | else |
8f223b3e FCE |
4501 | if test -n "$CC"; then |
4502 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2f1a1aea FCE |
4503 | else |
4504 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4505 | for as_dir in $PATH | |
4506 | do | |
4507 | IFS=$as_save_IFS | |
4508 | test -z "$as_dir" && as_dir=. | |
1ef0423a | 4509 | for ac_exec_ext in '' $ac_executable_extensions; do |
7fbd9d09 | 4510 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
2f1a1aea | 4511 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
1ef0423a | 4512 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2f1a1aea FCE |
4513 | break 2 |
4514 | fi | |
4515 | done | |
1ef0423a | 4516 | done |
7fbd9d09 | 4517 | IFS=$as_save_IFS |
2f1a1aea FCE |
4518 | |
4519 | fi | |
4520 | fi | |
4521 | CC=$ac_cv_prog_CC | |
4522 | if test -n "$CC"; then | |
1ef0423a | 4523 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
0710d850 | 4524 | $as_echo "$CC" >&6; } |
2f1a1aea | 4525 | else |
1ef0423a | 4526 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
0710d850 | 4527 | $as_echo "no" >&6; } |
2f1a1aea FCE |
4528 | fi |
4529 | ||
7fbd9d09 | 4530 | |
2f1a1aea FCE |
4531 | fi |
4532 | if test -z "$ac_cv_prog_CC"; then | |
4533 | ac_ct_CC=$CC | |
4534 | # Extract the first word of "gcc", so it can be a program name with args. | |
4535 | set dummy gcc; ac_word=$2 | |
1ef0423a | 4536 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
0710d850 | 4537 | $as_echo_n "checking for $ac_word... " >&6; } |
c3de29bd | 4538 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
0710d850 | 4539 | $as_echo_n "(cached) " >&6 |
2f1a1aea FCE |
4540 | else |
4541 | if test -n "$ac_ct_CC"; then | |
4542 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
4543 | else | |
4544 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4545 | for as_dir in $PATH | |
4546 | do | |
4547 | IFS=$as_save_IFS | |
4548 | test -z "$as_dir" && as_dir=. | |
1ef0423a | 4549 | for ac_exec_ext in '' $ac_executable_extensions; do |
7fbd9d09 | 4550 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
2f1a1aea | 4551 | ac_cv_prog_ac_ct_CC="gcc" |
1ef0423a | 4552 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2f1a1aea FCE |
4553 | break 2 |
4554 | fi | |
4555 | done | |
1ef0423a | 4556 | done |
7fbd9d09 | 4557 | IFS=$as_save_IFS |
2f1a1aea FCE |
4558 | |
4559 | fi | |
4560 | fi | |
4561 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
4562 | if test -n "$ac_ct_CC"; then | |
1ef0423a | 4563 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
0710d850 | 4564 | $as_echo "$ac_ct_CC" >&6; } |
2f1a1aea | 4565 | else |
1ef0423a | 4566 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
0710d850 | 4567 | $as_echo "no" >&6; } |
2f1a1aea FCE |
4568 | fi |
4569 | ||
7fbd9d09 FCE |
4570 | if test "x$ac_ct_CC" = x; then |
4571 | CC="" | |
4572 | else | |
4573 | case $cross_compiling:$ac_tool_warned in | |
4574 | yes:) | |
1ef0423a | 4575 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
0710d850 | 4576 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
7fbd9d09 FCE |
4577 | ac_tool_warned=yes ;; |
4578 | esac | |
4579 | CC=$ac_ct_CC | |
4580 | fi | |
2f1a1aea FCE |
4581 | else |
4582 | CC="$ac_cv_prog_CC" | |
4583 | fi | |
4584 | ||
4585 | if test -z "$CC"; then | |
7fbd9d09 FCE |
4586 | if test -n "$ac_tool_prefix"; then |
4587 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
2f1a1aea | 4588 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
1ef0423a | 4589 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
0710d850 | 4590 | $as_echo_n "checking for $ac_word... " >&6; } |
c3de29bd | 4591 | if ${ac_cv_prog_CC+:} false; then : |
0710d850 | 4592 | $as_echo_n "(cached) " >&6 |
2f1a1aea FCE |
4593 | else |
4594 | if test -n "$CC"; then | |
4595 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4596 | else | |
4597 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4598 | for as_dir in $PATH | |
4599 | do | |
4600 | IFS=$as_save_IFS | |
4601 | test -z "$as_dir" && as_dir=. | |
1ef0423a | 4602 | for ac_exec_ext in '' $ac_executable_extensions; do |
7fbd9d09 | 4603 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
2f1a1aea | 4604 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
1ef0423a | 4605 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2f1a1aea FCE |
4606 | break 2 |
4607 | fi | |
4608 | done | |
1ef0423a | 4609 | done |
7fbd9d09 | 4610 | IFS=$as_save_IFS |
2f1a1aea FCE |
4611 | |
4612 | fi | |
4613 | fi | |
4614 | CC=$ac_cv_prog_CC | |
4615 | if test -n "$CC"; then | |
1ef0423a | 4616 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
0710d850 | 4617 | $as_echo "$CC" >&6; } |
818ba2bc | 4618 | else |
1ef0423a | 4619 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
0710d850 | 4620 | $as_echo "no" >&6; } |
818ba2bc MW |
4621 | fi |
4622 | ||
818ba2bc | 4623 | |
7fbd9d09 | 4624 | fi |
8ae7a94a FCE |
4625 | fi |
4626 | if test -z "$CC"; then | |
4627 | # Extract the first word of "cc", so it can be a program name with args. | |
4628 | set dummy cc; ac_word=$2 | |
1ef0423a | 4629 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
0710d850 | 4630 | $as_echo_n "checking for $ac_word... " >&6; } |
c3de29bd | 4631 | if ${ac_cv_prog_CC+:} false; then : |
0710d850 | 4632 | $as_echo_n "(cached) " >&6 |
8ae7a94a FCE |
4633 | else |
4634 | if test -n "$CC"; then | |
2f1a1aea FCE |
4635 | ac_cv_prog_CC="$CC" # Let the user override the test. |
4636 | else | |
4637 | ac_prog_rejected=no | |
4638 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4639 | for as_dir in $PATH | |
4640 | do | |
4641 | IFS=$as_save_IFS | |
4642 | test -z "$as_dir" && as_dir=. | |
1ef0423a | 4643 | for ac_exec_ext in '' $ac_executable_extensions; do |
7fbd9d09 | 4644 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
2f1a1aea FCE |
4645 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
4646 | ac_prog_rejected=yes | |
4647 | continue | |
4648 | fi | |
4649 | ac_cv_prog_CC="cc" | |
1ef0423a | 4650 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2f1a1aea FCE |
4651 | break 2 |
4652 | fi | |
4653 | done | |
1ef0423a | 4654 | done |
7fbd9d09 | 4655 | IFS=$as_save_IFS |
2f1a1aea FCE |
4656 | |
4657 | if test $ac_prog_rejected = yes; then | |
4658 | # We found a bogon in the path, so make sure we never use it. | |
4659 | set dummy $ac_cv_prog_CC | |
4660 | shift | |
4661 | if test $# != 0; then | |
4662 | # We chose a different compiler from the bogus one. | |
4663 | # However, it has the same basename, so the bogon will be chosen | |
4664 | # first if we set CC to just the basename; use the full file name. | |
4665 | shift | |
4666 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
4667 | fi | |
4668 | fi | |
4669 | fi | |
4670 | fi | |
4671 | CC=$ac_cv_prog_CC | |
4672 | if test -n "$CC"; then | |
1ef0423a | 4673 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
0710d850 | 4674 | $as_echo "$CC" >&6; } |
2f1a1aea | 4675 | else |
1ef0423a | 4676 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
0710d850 | 4677 | $as_echo "no" >&6; } |
2f1a1aea FCE |
4678 | fi |
4679 | ||
7fbd9d09 | 4680 | |
2f1a1aea FCE |
4681 | fi |
4682 | if test -z "$CC"; then | |
4683 | if test -n "$ac_tool_prefix"; then | |
7fbd9d09 | 4684 | for ac_prog in cl.exe |
2f1a1aea FCE |
4685 | do |
4686 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
4687 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
1ef0423a | 4688 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
0710d850 | 4689 | $as_echo_n "checking for $ac_word... " >&6; } |
c3de29bd | 4690 | if ${ac_cv_prog_CC+:} false; then : |
0710d850 | 4691 | $as_echo_n "(cached) " >&6 |
2f1a1aea FCE |
4692 | else |
4693 | if test -n "$CC"; then | |
4694 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4695 | else | |
4696 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4697 | for as_dir in $PATH | |
4698 | do | |
4699 | IFS=$as_save_IFS | |
4700 | test -z "$as_dir" && as_dir=. | |
1ef0423a | 4701 | for ac_exec_ext in '' $ac_executable_extensions; do |
7fbd9d09 | 4702 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
2f1a1aea | 4703 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
1ef0423a | 4704 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2f1a1aea FCE |
4705 | break 2 |
4706 | fi | |
4707 | done | |
1ef0423a | 4708 | done |
7fbd9d09 | 4709 | IFS=$as_save_IFS |
2f1a1aea FCE |
4710 | |
4711 | fi | |
4712 | fi | |
4713 | CC=$ac_cv_prog_CC | |
4714 | if test -n "$CC"; then | |
1ef0423a | 4715 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
0710d850 | 4716 | $as_echo "$CC" >&6; } |
2f1a1aea | 4717 | else |
1ef0423a | 4718 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
0710d850 | 4719 | $as_echo "no" >&6; } |
2f1a1aea FCE |
4720 | fi |
4721 | ||
7fbd9d09 | 4722 | |
2f1a1aea FCE |
4723 | test -n "$CC" && break |
4724 | done | |
4725 | fi | |
4726 | if test -z "$CC"; then | |
4727 | ac_ct_CC=$CC | |
7fbd9d09 | 4728 | for ac_prog in cl.exe |
2f1a1aea FCE |
4729 | do |
4730 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
4731 | set dummy $ac_prog; ac_word=$2 | |
1ef0423a | 4732 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
0710d850 | 4733 | $as_echo_n "checking for $ac_word... " >&6; } |
c3de29bd | 4734 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
0710d850 | 4735 | $as_echo_n "(cached) " >&6 |
2f1a1aea FCE |
4736 | else |
4737 | if test -n "$ac_ct_CC"; then | |
4738 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
4739 | else | |
4740 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4741 | for as_dir in $PATH | |
4742 | do | |
4743 | IFS=$as_save_IFS | |
4744 | test -z "$as_dir" && as_dir=. | |
1ef0423a | 4745 | for ac_exec_ext in '' $ac_executable_extensions; do |
7fbd9d09 | 4746 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
2f1a1aea | 4747 | ac_cv_prog_ac_ct_CC="$ac_prog" |
1ef0423a | 4748 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2f1a1aea FCE |
4749 | break 2 |
4750 | fi | |
4751 | done | |
1ef0423a | 4752 | done |
7fbd9d09 | 4753 | IFS=$as_save_IFS |
2f1a1aea FCE |
4754 | |
4755 | fi | |
4756 | fi | |
4757 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
4758 | if test -n "$ac_ct_CC"; then | |
1ef0423a | 4759 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
0710d850 | 4760 | $as_echo "$ac_ct_CC" >&6; } |
2f1a1aea | 4761 | else |
1ef0423a | 4762 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
0710d850 | 4763 | $as_echo "no" >&6; } |
2f1a1aea FCE |
4764 | fi |
4765 | ||
7fbd9d09 | 4766 | |
2f1a1aea FCE |
4767 | test -n "$ac_ct_CC" && break |
4768 | done | |
4769 | ||
7fbd9d09 FCE |
4770 | if test "x$ac_ct_CC" = x; then |
4771 | CC="" | |
4772 | else | |
4773 | case $cross_compiling:$ac_tool_warned in | |
4774 | yes:) | |
1ef0423a | 4775 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
0710d850 | 4776 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
7fbd9d09 FCE |
4777 | ac_tool_warned=yes ;; |
4778 | esac | |
4779 | CC=$ac_ct_CC | |
4780 | fi | |
2f1a1aea FCE |
4781 | fi |
4782 | ||
4783 | fi | |
4784 | ||
4785 | ||
1ef0423a | 4786 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
0710d850 | 4787 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
5d4aa1f5 FCE |
4788 | as_fn_error $? "no acceptable C compiler found in \$PATH |
4789 | See \`config.log' for more details" "$LINENO" 5; } | |
2f1a1aea FCE |
4790 | |
4791 | # Provide some information about the compiler. | |
1ef0423a | 4792 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
0710d850 DS |
4793 | set X $ac_compile |
4794 | ac_compiler=$2 | |
1ef0423a FCE |
4795 | for ac_option in --version -v -V -qversion; do |
4796 | { { ac_try="$ac_compiler $ac_option >&5" | |
5e5aee9f FCE |
4797 | case "(($ac_try" in |
4798 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4799 | *) ac_try_echo=$ac_try;; | |
4800 | esac | |
1ef0423a FCE |
4801 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
4802 | $as_echo "$ac_try_echo"; } >&5 | |
4803 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
5e5aee9f | 4804 | ac_status=$? |
1ef0423a FCE |
4805 | if test -s conftest.err; then |
4806 | sed '10a\ | |
4807 | ... rest of stderr output deleted ... | |
4808 | 10q' conftest.err >conftest.er1 | |
4809 | cat conftest.er1 >&5 | |
4810 | fi | |
4811 | rm -f conftest.er1 conftest.err | |
4812 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4813 | test $ac_status = 0; } | |
4814 | done | |
2f1a1aea | 4815 | |
1ef0423a | 4816 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
0710d850 | 4817 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } |
c3de29bd | 4818 | if ${ac_cv_c_compiler_gnu+:} false; then : |
0710d850 | 4819 | $as_echo_n "(cached) " >&6 |
2f1a1aea | 4820 | else |
1ef0423a | 4821 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
2f1a1aea FCE |
4822 | /* end confdefs.h. */ |
4823 | ||
4824 | int | |
4825 | main () | |
4826 | { | |
4827 | #ifndef __GNUC__ | |
4828 | choke me | |
4829 | #endif | |
4830 | ||
4831 | ; | |
4832 | return 0; | |
4833 | } | |
4834 | _ACEOF | |
1ef0423a | 4835 | if ac_fn_c_try_compile "$LINENO"; then : |
2f1a1aea FCE |
4836 | ac_compiler_gnu=yes |
4837 | else | |
1ef0423a | 4838 | ac_compiler_gnu=no |
2f1a1aea | 4839 | fi |
7fbd9d09 | 4840 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
2f1a1aea FCE |
4841 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
4842 | ||
4843 | fi | |
1ef0423a | 4844 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
0710d850 DS |
4845 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } |
4846 | if test $ac_compiler_gnu = yes; then | |
4847 | GCC=yes | |
4848 | else | |
4849 | GCC= | |
4850 | fi | |
2f1a1aea FCE |
4851 | ac_test_CFLAGS=${CFLAGS+set} |
4852 | ac_save_CFLAGS=$CFLAGS | |
1ef0423a | 4853 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
0710d850 | 4854 | $as_echo_n "checking whether $CC accepts -g... " >&6; } |
c3de29bd | 4855 | if ${ac_cv_prog_cc_g+:} false; then : |
0710d850 | 4856 | $as_echo_n "(cached) " >&6 |
2f1a1aea | 4857 | else |
7fbd9d09 FCE |
4858 | ac_save_c_werror_flag=$ac_c_werror_flag |
4859 | ac_c_werror_flag=yes | |
4860 | ac_cv_prog_cc_g=no | |
4861 | CFLAGS="-g" | |
1ef0423a | 4862 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
2f1a1aea FCE |
4863 | /* end confdefs.h. */ |
4864 | ||
4865 | int | |
4866 | main () | |
4867 | { | |
4868 | ||
4869 | ; | |
4870 | return 0; | |
4871 | } | |
4872 | _ACEOF | |
1ef0423a | 4873 | if ac_fn_c_try_compile "$LINENO"; then : |
7fbd9d09 FCE |
4874 | ac_cv_prog_cc_g=yes |
4875 | else | |
1ef0423a FCE |
4876 | CFLAGS="" |
4877 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7fbd9d09 FCE |
4878 | /* end confdefs.h. */ |
4879 | ||
4880 | int | |
4881 | main () | |
4882 | { | |
4883 | ||
4884 | ; | |
4885 | return 0; | |
4886 | } | |
4887 | _ACEOF | |
1ef0423a | 4888 | if ac_fn_c_try_compile "$LINENO"; then : |
5e5aee9f | 4889 | |
1ef0423a FCE |
4890 | else |
4891 | ac_c_werror_flag=$ac_save_c_werror_flag | |
7fbd9d09 | 4892 | CFLAGS="-g" |
1ef0423a | 4893 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7fbd9d09 FCE |
4894 | /* end confdefs.h. */ |
4895 | ||
4896 | int | |
4897 | main () | |
4898 | { | |
4899 | ||
4900 | ; | |
4901 | return 0; | |
4902 | } | |
4903 | _ACEOF | |
1ef0423a | 4904 | if ac_fn_c_try_compile "$LINENO"; then : |
5e0d2ebf | 4905 | ac_cv_prog_cc_g=yes |
7fbd9d09 | 4906 | fi |
7fbd9d09 FCE |
4907 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4908 | fi | |
7fbd9d09 | 4909 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
5e0d2ebf | 4910 | fi |
7fbd9d09 FCE |
4911 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4912 | ac_c_werror_flag=$ac_save_c_werror_flag | |
70d28673 | 4913 | fi |
1ef0423a | 4914 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 |
0710d850 | 4915 | $as_echo "$ac_cv_prog_cc_g" >&6; } |
70d28673 DS |
4916 | if test "$ac_test_CFLAGS" = set; then |
4917 | CFLAGS=$ac_save_CFLAGS | |
4918 | elif test $ac_cv_prog_cc_g = yes; then | |
4919 | if test "$GCC" = yes; then | |
4920 | CFLAGS="-g -O2" | |
4921 | else | |
4922 | CFLAGS="-g" | |
4923 | fi | |
4924 | else | |
4925 | if test "$GCC" = yes; then | |
4926 | CFLAGS="-O2" | |
4927 | else | |
4928 | CFLAGS= | |
4929 | fi | |
4930 | fi | |
1ef0423a | 4931 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
0710d850 | 4932 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } |
c3de29bd | 4933 | if ${ac_cv_prog_cc_c89+:} false; then : |
0710d850 | 4934 | $as_echo_n "(cached) " >&6 |
70d28673 | 4935 | else |
7fbd9d09 | 4936 | ac_cv_prog_cc_c89=no |
70d28673 | 4937 | ac_save_CC=$CC |
1ef0423a | 4938 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
2f1a1aea | 4939 | /* end confdefs.h. */ |
70d28673 DS |
4940 | #include <stdarg.h> |
4941 | #include <stdio.h> | |
4942 | #include <sys/types.h> | |
4943 | #include <sys/stat.h> | |
4944 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
4945 | struct buf { int x; }; | |
4946 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
4947 | static char *e (p, i) | |
4948 | char **p; | |
4949 | int i; | |
4950 | { | |
4951 | return p[i]; | |
4952 | } | |
4953 | static char *f (char * (*g) (char **, int), char **p, ...) | |
4954 | { | |
4955 | char *s; | |
4956 | va_list v; | |
4957 | va_start (v,p); | |
4958 | s = g (p, va_arg (v,int)); | |
4959 | va_end (v); | |
4960 | return s; | |
4961 | } | |
4962 | ||
4963 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
4964 | function prototypes and stuff, but not '\xHH' hex character constants. | |
4965 | These don't provoke an error unfortunately, instead are silently treated | |
7fbd9d09 | 4966 | as 'x'. The following induces an error, until -std is added to get |
70d28673 DS |
4967 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
4968 | array size at least. It's necessary to write '\x00'==0 to get something | |
7fbd9d09 | 4969 | that's true only with -std. */ |
70d28673 DS |
4970 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
4971 | ||
7fbd9d09 FCE |
4972 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
4973 | inside strings and character constants. */ | |
4974 | #define FOO(x) 'x' | |
4975 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
4976 | ||
70d28673 DS |
4977 | int test (int i, double x); |
4978 | struct s1 {int (*f) (int a);}; | |
4979 | struct s2 {int (*f) (double a);}; | |
4980 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
4981 | int argc; | |
4982 | char **argv; | |
2f1a1aea FCE |
4983 | int |
4984 | main () | |
4985 | { | |
70d28673 | 4986 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
2f1a1aea FCE |
4987 | ; |
4988 | return 0; | |
4989 | } | |
4990 | _ACEOF | |
7fbd9d09 FCE |
4991 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
4992 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
70d28673 DS |
4993 | do |
4994 | CC="$ac_save_CC $ac_arg" | |
1ef0423a | 4995 | if ac_fn_c_try_compile "$LINENO"; then : |
7fbd9d09 | 4996 | ac_cv_prog_cc_c89=$ac_arg |
2f1a1aea | 4997 | fi |
7fbd9d09 FCE |
4998 | rm -f core conftest.err conftest.$ac_objext |
4999 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
2f1a1aea | 5000 | done |
7fbd9d09 | 5001 | rm -f conftest.$ac_ext |
70d28673 DS |
5002 | CC=$ac_save_CC |
5003 | ||
2f1a1aea | 5004 | fi |
7fbd9d09 FCE |
5005 | # AC_CACHE_VAL |
5006 | case "x$ac_cv_prog_cc_c89" in | |
5007 | x) | |
1ef0423a | 5008 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
0710d850 | 5009 | $as_echo "none needed" >&6; } ;; |
7fbd9d09 | 5010 | xno) |
1ef0423a | 5011 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
0710d850 | 5012 | $as_echo "unsupported" >&6; } ;; |
70d28673 | 5013 | *) |
7fbd9d09 | 5014 | CC="$CC $ac_cv_prog_cc_c89" |
1ef0423a | 5015 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 |
0710d850 | 5016 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; |
70d28673 | 5017 | esac |
1ef0423a | 5018 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
2f1a1aea | 5019 | |
1ef0423a | 5020 | fi |
2f1a1aea | 5021 | |
2f1a1aea FCE |
5022 | ac_ext=c |
5023 | ac_cpp='$CPP $CPPFLAGS' | |
5024 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5025 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5026 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5027 | ||
5028 | depcc="$CC" am_compiler_list= | |
5029 | ||
1ef0423a | 5030 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 |
0710d850 | 5031 | $as_echo_n "checking dependency style of $depcc... " >&6; } |
c3de29bd | 5032 | if ${am_cv_CC_dependencies_compiler_type+:} false; then : |
0710d850 | 5033 | $as_echo_n "(cached) " >&6 |
2f1a1aea FCE |
5034 | else |
5035 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | |
5036 | # We make a subdir and do the tests there. Otherwise we can end up | |
5037 | # making bogus files that we don't know about and never remove. For | |
5038 | # instance it was reported that on HP-UX the gcc test will end up | |
5039 | # making a dummy file named `D' -- because `-MD' means `put the output | |
5040 | # in D'. | |
5041 | mkdir conftest.dir | |
5042 | # Copy depcomp to subdir because otherwise we won't find it if we're | |
5043 | # using a relative directory. | |
5044 | cp "$am_depcomp" conftest.dir | |
5045 | cd conftest.dir | |
5046 | # We will build objects and dependencies in a subdirectory because | |
5047 | # it helps to detect inapplicable dependency modes. For instance | |
5048 | # both Tru64's cc and ICC support -MD to output dependencies as a | |
5049 | # side effect of compilation, but ICC will put the dependencies in | |
5050 | # the current directory while Tru64 will put them in the object | |
5051 | # directory. | |
5052 | mkdir sub | |
5053 | ||
5054 | am_cv_CC_dependencies_compiler_type=none | |
5055 | if test "$am_compiler_list" = ""; then | |
5056 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
5057 | fi | |
0710d850 DS |
5058 | am__universal=false |
5059 | case " $depcc " in #( | |
5060 | *\ -arch\ *\ -arch\ *) am__universal=true ;; | |
5061 | esac | |
5062 | ||
2f1a1aea FCE |
5063 | for depmode in $am_compiler_list; do |
5064 | # Setup a source with many dependencies, because some compilers | |
5065 | # like to wrap large dependency lists on column 80 (with \), and | |
5066 | # we should not choose a depcomp mode which is confused by this. | |
5067 | # | |
5068 | # We need to recreate these files for each test, as the compiler may | |
5069 | # overwrite some of them when testing with obscure command lines. | |
5070 | # This happens at least with the AIX C compiler. | |
5071 | : > sub/conftest.c | |
5072 | for i in 1 2 3 4 5 6; do | |
5073 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
5074 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with | |
5075 | # Solaris 8's {/usr,}/bin/sh. | |
5076 | touch sub/conftst$i.h | |
5077 | done | |
5078 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
5079 | ||
0710d850 DS |
5080 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
5081 | # mode. It turns out that the SunPro C++ compiler does not properly | |
5082 | # handle `-M -o', and we need to detect this. Also, some Intel | |
5083 | # versions had trouble with output in subdirs | |
5084 | am__obj=sub/conftest.${OBJEXT-o} | |
5085 | am__minus_obj="-o $am__obj" | |
2f1a1aea | 5086 | case $depmode in |
0710d850 DS |
5087 | gcc) |
5088 | # This depmode causes a compiler race in universal mode. | |
5089 | test "$am__universal" = false || continue | |
5090 | ;; | |
2f1a1aea FCE |
5091 | nosideeffect) |
5092 | # after this tag, mechanisms are not by side-effect, so they'll | |
5093 | # only be used when explicitly requested | |
5094 | if test "x$enable_dependency_tracking" = xyes; then | |
5095 | continue | |
5096 | else | |
5097 | break | |
5098 | fi | |
5099 | ;; | |
0710d850 DS |
5100 | msvisualcpp | msvcmsys) |
5101 | # This compiler won't grok `-c -o', but also, the minuso test has | |
5102 | # not run yet. These depmodes are late enough in the game, and | |
5103 | # so weak that their functioning should not be impacted. | |
5104 | am__obj=conftest.${OBJEXT-o} | |
5105 | am__minus_obj= | |
5106 | ;; | |
2f1a1aea FCE |
5107 | none) break ;; |
5108 | esac | |
2f1a1aea | 5109 | if depmode=$depmode \ |
0710d850 | 5110 | source=sub/conftest.c object=$am__obj \ |
2f1a1aea | 5111 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
0710d850 | 5112 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ |
2f1a1aea | 5113 | >/dev/null 2>conftest.err && |
7fbd9d09 | 5114 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && |
2f1a1aea | 5115 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
0710d850 | 5116 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && |
2f1a1aea FCE |
5117 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
5118 | # icc doesn't choke on unknown options, it will just issue warnings | |
5119 | # or remarks (even with -Werror). So we grep stderr for any message | |
5120 | # that says an option was ignored or not supported. | |
5121 | # When given -MP, icc 7.0 and 7.1 complain thusly: | |
5122 | # icc: Command line warning: ignoring option '-M'; no argument required | |
5123 | # The diagnosis changed in icc 8.0: | |
5124 | # icc: Command line remark: option '-MP' not supported | |
5125 | if (grep 'ignoring option' conftest.err || | |
5126 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
5127 | am_cv_CC_dependencies_compiler_type=$depmode | |
5128 | break | |
5129 | fi | |
5130 | fi | |
5131 | done | |
5132 | ||
5133 | cd .. | |
5134 | rm -rf conftest.dir | |
5135 | else | |
5136 | am_cv_CC_dependencies_compiler_type=none | |
5137 | fi | |
5138 | ||
5139 | fi | |
1ef0423a | 5140 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 |
0710d850 | 5141 | $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } |
2f1a1aea FCE |
5142 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type |
5143 | ||
7fbd9d09 | 5144 | if |
2f1a1aea FCE |
5145 | test "x$enable_dependency_tracking" != xno \ |
5146 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then | |
5147 | am__fastdepCC_TRUE= | |
5148 | am__fastdepCC_FALSE='#' | |
5149 | else | |
5150 | am__fastdepCC_TRUE='#' | |
5151 | am__fastdepCC_FALSE= | |
5152 | fi | |
5153 | ||
5154 | ||
8f223b3e FCE |
5155 | ac_ext=cpp |
5156 | ac_cpp='$CXXCPP $CPPFLAGS' | |
5157 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5158 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5159 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
5160 | if test -z "$CXX"; then | |
5161 | if test -n "$CCC"; then | |
5162 | CXX=$CCC | |
5163 | else | |
5164 | if test -n "$ac_tool_prefix"; then | |
5165 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC | |
5166 | do | |
5167 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
5168 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
5169 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5170 | $as_echo_n "checking for $ac_word... " >&6; } | |
c3de29bd | 5171 | if ${ac_cv_prog_CXX+:} false; then : |
8f223b3e FCE |
5172 | $as_echo_n "(cached) " >&6 |
5173 | else | |
5174 | if test -n "$CXX"; then | |
5175 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | |
5176 | else | |
5177 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5178 | for as_dir in $PATH | |
5179 | do | |
5180 | IFS=$as_save_IFS | |
5181 | test -z "$as_dir" && as_dir=. | |
5182 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5183 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
5184 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" | |
5185 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5186 | break 2 | |
5187 | fi | |
5188 | done | |
5189 | done | |
5190 | IFS=$as_save_IFS | |
2f1a1aea | 5191 | |
8f223b3e FCE |
5192 | fi |
5193 | fi | |
5194 | CXX=$ac_cv_prog_CXX | |
5195 | if test -n "$CXX"; then | |
5196 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 | |
5197 | $as_echo "$CXX" >&6; } | |
8ae7a94a | 5198 | else |
8f223b3e FCE |
5199 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5200 | $as_echo "no" >&6; } | |
8ae7a94a | 5201 | fi |
8f223b3e FCE |
5202 | |
5203 | ||
5204 | test -n "$CXX" && break | |
5205 | done | |
5206 | fi | |
5207 | if test -z "$CXX"; then | |
5208 | ac_ct_CXX=$CXX | |
5209 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC | |
5210 | do | |
5211 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
5212 | set dummy $ac_prog; ac_word=$2 | |
5213 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5214 | $as_echo_n "checking for $ac_word... " >&6; } | |
c3de29bd | 5215 | if ${ac_cv_prog_ac_ct_CXX+:} false; then : |
0710d850 | 5216 | $as_echo_n "(cached) " >&6 |
8ae7a94a | 5217 | else |
8f223b3e FCE |
5218 | if test -n "$ac_ct_CXX"; then |
5219 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. | |
5220 | else | |
5221 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5222 | for as_dir in $PATH | |
5223 | do | |
5224 | IFS=$as_save_IFS | |
5225 | test -z "$as_dir" && as_dir=. | |
5226 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5227 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
5228 | ac_cv_prog_ac_ct_CXX="$ac_prog" | |
5229 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5230 | break 2 | |
5231 | fi | |
5232 | done | |
5233 | done | |
5234 | IFS=$as_save_IFS | |
8ae7a94a | 5235 | |
8f223b3e FCE |
5236 | fi |
5237 | fi | |
5238 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX | |
5239 | if test -n "$ac_ct_CXX"; then | |
5240 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 | |
5241 | $as_echo "$ac_ct_CXX" >&6; } | |
5242 | else | |
5243 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5244 | $as_echo "no" >&6; } | |
5245 | fi | |
8ae7a94a | 5246 | |
8f223b3e FCE |
5247 | |
5248 | test -n "$ac_ct_CXX" && break | |
5249 | done | |
5250 | ||
5251 | if test "x$ac_ct_CXX" = x; then | |
5252 | CXX="g++" | |
5253 | else | |
5254 | case $cross_compiling:$ac_tool_warned in | |
5255 | yes:) | |
5256 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5257 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5258 | ac_tool_warned=yes ;; | |
5259 | esac | |
5260 | CXX=$ac_ct_CXX | |
5261 | fi | |
5262 | fi | |
5263 | ||
5264 | fi | |
5265 | fi | |
5266 | # Provide some information about the compiler. | |
5267 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 | |
5268 | set X $ac_compile | |
5269 | ac_compiler=$2 | |
5270 | for ac_option in --version -v -V -qversion; do | |
5271 | { { ac_try="$ac_compiler $ac_option >&5" | |
5272 | case "(($ac_try" in | |
7fbd9d09 FCE |
5273 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
5274 | *) ac_try_echo=$ac_try;; | |
5275 | esac | |
1ef0423a FCE |
5276 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
5277 | $as_echo "$ac_try_echo"; } >&5 | |
8f223b3e FCE |
5278 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err |
5279 | ac_status=$? | |
5280 | if test -s conftest.err; then | |
5281 | sed '10a\ | |
5282 | ... rest of stderr output deleted ... | |
5283 | 10q' conftest.err >conftest.er1 | |
5284 | cat conftest.er1 >&5 | |
5285 | fi | |
5286 | rm -f conftest.er1 conftest.err | |
5287 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
5288 | test $ac_status = 0; } | |
5289 | done | |
5290 | ||
5291 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 | |
5292 | $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } | |
c3de29bd | 5293 | if ${ac_cv_cxx_compiler_gnu+:} false; then : |
8f223b3e FCE |
5294 | $as_echo_n "(cached) " >&6 |
5295 | else | |
5296 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5297 | /* end confdefs.h. */ | |
5298 | ||
5299 | int | |
5300 | main () | |
5301 | { | |
5302 | #ifndef __GNUC__ | |
5303 | choke me | |
5304 | #endif | |
5305 | ||
5306 | ; | |
5307 | return 0; | |
5308 | } | |
5309 | _ACEOF | |
5310 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
5311 | ac_compiler_gnu=yes | |
5312 | else | |
5313 | ac_compiler_gnu=no | |
5314 | fi | |
5315 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5316 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu | |
5317 | ||
5318 | fi | |
5319 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 | |
5320 | $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } | |
5321 | if test $ac_compiler_gnu = yes; then | |
5322 | GXX=yes | |
5323 | else | |
5324 | GXX= | |
5325 | fi | |
5326 | ac_test_CXXFLAGS=${CXXFLAGS+set} | |
5327 | ac_save_CXXFLAGS=$CXXFLAGS | |
5328 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 | |
5329 | $as_echo_n "checking whether $CXX accepts -g... " >&6; } | |
c3de29bd | 5330 | if ${ac_cv_prog_cxx_g+:} false; then : |
8f223b3e FCE |
5331 | $as_echo_n "(cached) " >&6 |
5332 | else | |
5333 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag | |
5334 | ac_cxx_werror_flag=yes | |
5335 | ac_cv_prog_cxx_g=no | |
5336 | CXXFLAGS="-g" | |
5337 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5338 | /* end confdefs.h. */ | |
5339 | ||
5340 | int | |
5341 | main () | |
5342 | { | |
5343 | ||
5344 | ; | |
5345 | return 0; | |
5346 | } | |
5347 | _ACEOF | |
5348 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
5349 | ac_cv_prog_cxx_g=yes | |
5350 | else | |
5351 | CXXFLAGS="" | |
5352 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5353 | /* end confdefs.h. */ | |
5354 | ||
5355 | int | |
5356 | main () | |
5357 | { | |
5358 | ||
5359 | ; | |
5360 | return 0; | |
5361 | } | |
5362 | _ACEOF | |
5363 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
5364 | ||
5365 | else | |
5366 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag | |
5367 | CXXFLAGS="-g" | |
5368 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5369 | /* end confdefs.h. */ | |
5370 | ||
5371 | int | |
5372 | main () | |
5373 | { | |
5374 | ||
5375 | ; | |
5376 | return 0; | |
5377 | } | |
5378 | _ACEOF | |
5379 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
5380 | ac_cv_prog_cxx_g=yes | |
5381 | fi | |
5382 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5383 | fi | |
5384 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5385 | fi | |
5386 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5387 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag | |
5388 | fi | |
5389 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 | |
5390 | $as_echo "$ac_cv_prog_cxx_g" >&6; } | |
5391 | if test "$ac_test_CXXFLAGS" = set; then | |
5392 | CXXFLAGS=$ac_save_CXXFLAGS | |
5393 | elif test $ac_cv_prog_cxx_g = yes; then | |
5394 | if test "$GXX" = yes; then | |
5395 | CXXFLAGS="-g -O2" | |
5396 | else | |
5397 | CXXFLAGS="-g" | |
5398 | fi | |
5399 | else | |
5400 | if test "$GXX" = yes; then | |
5401 | CXXFLAGS="-O2" | |
5402 | else | |
5403 | CXXFLAGS= | |
5404 | fi | |
5405 | fi | |
5406 | ac_ext=c | |
5407 | ac_cpp='$CPP $CPPFLAGS' | |
5408 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5409 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5410 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5411 | ||
5412 | depcc="$CXX" am_compiler_list= | |
5413 | ||
5414 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 | |
5415 | $as_echo_n "checking dependency style of $depcc... " >&6; } | |
c3de29bd | 5416 | if ${am_cv_CXX_dependencies_compiler_type+:} false; then : |
8f223b3e FCE |
5417 | $as_echo_n "(cached) " >&6 |
5418 | else | |
5419 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | |
5420 | # We make a subdir and do the tests there. Otherwise we can end up | |
5421 | # making bogus files that we don't know about and never remove. For | |
5422 | # instance it was reported that on HP-UX the gcc test will end up | |
5423 | # making a dummy file named `D' -- because `-MD' means `put the output | |
5424 | # in D'. | |
5425 | mkdir conftest.dir | |
5426 | # Copy depcomp to subdir because otherwise we won't find it if we're | |
5427 | # using a relative directory. | |
5428 | cp "$am_depcomp" conftest.dir | |
5429 | cd conftest.dir | |
5430 | # We will build objects and dependencies in a subdirectory because | |
5431 | # it helps to detect inapplicable dependency modes. For instance | |
5432 | # both Tru64's cc and ICC support -MD to output dependencies as a | |
5433 | # side effect of compilation, but ICC will put the dependencies in | |
5434 | # the current directory while Tru64 will put them in the object | |
5435 | # directory. | |
5436 | mkdir sub | |
5437 | ||
5438 | am_cv_CXX_dependencies_compiler_type=none | |
5439 | if test "$am_compiler_list" = ""; then | |
5440 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
5441 | fi | |
5442 | am__universal=false | |
5443 | case " $depcc " in #( | |
5444 | *\ -arch\ *\ -arch\ *) am__universal=true ;; | |
5445 | esac | |
5446 | ||
5447 | for depmode in $am_compiler_list; do | |
5448 | # Setup a source with many dependencies, because some compilers | |
5449 | # like to wrap large dependency lists on column 80 (with \), and | |
5450 | # we should not choose a depcomp mode which is confused by this. | |
5451 | # | |
5452 | # We need to recreate these files for each test, as the compiler may | |
5453 | # overwrite some of them when testing with obscure command lines. | |
5454 | # This happens at least with the AIX C compiler. | |
5455 | : > sub/conftest.c | |
5456 | for i in 1 2 3 4 5 6; do | |
5457 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
5458 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with | |
5459 | # Solaris 8's {/usr,}/bin/sh. | |
5460 | touch sub/conftst$i.h | |
5461 | done | |
5462 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
5463 | ||
5464 | # We check with `-c' and `-o' for the sake of the "dashmstdout" | |
5465 | # mode. It turns out that the SunPro C++ compiler does not properly | |
5466 | # handle `-M -o', and we need to detect this. Also, some Intel | |
5467 | # versions had trouble with output in subdirs | |
5468 | am__obj=sub/conftest.${OBJEXT-o} | |
5469 | am__minus_obj="-o $am__obj" | |
5470 | case $depmode in | |
5471 | gcc) | |
5472 | # This depmode causes a compiler race in universal mode. | |
5473 | test "$am__universal" = false || continue | |
5474 | ;; | |
5475 | nosideeffect) | |
5476 | # after this tag, mechanisms are not by side-effect, so they'll | |
5477 | # only be used when explicitly requested | |
5478 | if test "x$enable_dependency_tracking" = xyes; then | |
5479 | continue | |
5480 | else | |
5481 | break | |
5482 | fi | |
5483 | ;; | |
5484 | msvisualcpp | msvcmsys) | |
5485 | # This compiler won't grok `-c -o', but also, the minuso test has | |
5486 | # not run yet. These depmodes are late enough in the game, and | |
5487 | # so weak that their functioning should not be impacted. | |
5488 | am__obj=conftest.${OBJEXT-o} | |
5489 | am__minus_obj= | |
5490 | ;; | |
5491 | none) break ;; | |
5492 | esac | |
5493 | if depmode=$depmode \ | |
5494 | source=sub/conftest.c object=$am__obj \ | |
5495 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | |
5496 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ | |
5497 | >/dev/null 2>conftest.err && | |
5498 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && | |
5499 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && | |
5500 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && | |
5501 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | |
5502 | # icc doesn't choke on unknown options, it will just issue warnings | |
5503 | # or remarks (even with -Werror). So we grep stderr for any message | |
5504 | # that says an option was ignored or not supported. | |
5505 | # When given -MP, icc 7.0 and 7.1 complain thusly: | |
5506 | # icc: Command line warning: ignoring option '-M'; no argument required | |
5507 | # The diagnosis changed in icc 8.0: | |
5508 | # icc: Command line remark: option '-MP' not supported | |
5509 | if (grep 'ignoring option' conftest.err || | |
5510 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
5511 | am_cv_CXX_dependencies_compiler_type=$depmode | |
5512 | break | |
5513 | fi | |
5514 | fi | |
5515 | done | |
5516 | ||
5517 | cd .. | |
5518 | rm -rf conftest.dir | |
5519 | else | |
5520 | am_cv_CXX_dependencies_compiler_type=none | |
5521 | fi | |
5522 | ||
5523 | fi | |
5524 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 | |
5525 | $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } | |
5526 | CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type | |
5527 | ||
5528 | if | |
5529 | test "x$enable_dependency_tracking" != xno \ | |
5530 | && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then | |
5531 | am__fastdepCXX_TRUE= | |
5532 | am__fastdepCXX_FALSE='#' | |
5533 | else | |
5534 | am__fastdepCXX_TRUE='#' | |
5535 | am__fastdepCXX_FALSE= | |
5536 | fi | |
5537 | ||
5538 | ||
5539 | ac_ext=c | |
5540 | ac_cpp='$CPP $CPPFLAGS' | |
5541 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5542 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5543 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5544 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 | |
5545 | $as_echo_n "checking how to run the C preprocessor... " >&6; } | |
5546 | # On Suns, sometimes $CPP names a directory. | |
5547 | if test -n "$CPP" && test -d "$CPP"; then | |
5548 | CPP= | |
5549 | fi | |
5550 | if test -z "$CPP"; then | |
c3de29bd | 5551 | if ${ac_cv_prog_CPP+:} false; then : |
8f223b3e FCE |
5552 | $as_echo_n "(cached) " >&6 |
5553 | else | |
5554 | # Double quotes because CPP needs to be expanded | |
5555 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
5556 | do | |
5557 | ac_preproc_ok=false | |
5558 | for ac_c_preproc_warn_flag in '' yes | |
5559 | do | |
5560 | # Use a header file that comes with gcc, so configuring glibc | |
5561 | # with a fresh cross-compiler works. | |
5562 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
5563 | # <limits.h> exists even on freestanding compilers. | |
5564 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
5565 | # not just through cpp. "Syntax error" is here to catch this case. | |
5566 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5567 | /* end confdefs.h. */ | |
5568 | #ifdef __STDC__ | |
5569 | # include <limits.h> | |
5570 | #else | |
5571 | # include <assert.h> | |
5572 | #endif | |
5573 | Syntax error | |
5574 | _ACEOF | |
5575 | if ac_fn_c_try_cpp "$LINENO"; then : | |
5576 | ||
5577 | else | |
5578 | # Broken: fails on valid input. | |
5579 | continue | |
5580 | fi | |
c3de29bd | 5581 | rm -f conftest.err conftest.i conftest.$ac_ext |
8f223b3e FCE |
5582 | |
5583 | # OK, works on sane cases. Now check whether nonexistent headers | |
5584 | # can be detected and how. | |
5585 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5586 | /* end confdefs.h. */ | |
5587 | #include <ac_nonexistent.h> | |
5588 | _ACEOF | |
5589 | if ac_fn_c_try_cpp "$LINENO"; then : | |
5590 | # Broken: success on invalid input. | |
5591 | continue | |
5592 | else | |
5593 | # Passes both tests. | |
5594 | ac_preproc_ok=: | |
5595 | break | |
5596 | fi | |
c3de29bd | 5597 | rm -f conftest.err conftest.i conftest.$ac_ext |
8f223b3e FCE |
5598 | |
5599 | done | |
5600 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
c3de29bd | 5601 | rm -f conftest.i conftest.err conftest.$ac_ext |
8f223b3e FCE |
5602 | if $ac_preproc_ok; then : |
5603 | break | |
5604 | fi | |
5605 | ||
5606 | done | |
5607 | ac_cv_prog_CPP=$CPP | |
5608 | ||
5609 | fi | |
5610 | CPP=$ac_cv_prog_CPP | |
5611 | else | |
5612 | ac_cv_prog_CPP=$CPP | |
5613 | fi | |
5614 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 | |
5615 | $as_echo "$CPP" >&6; } | |
5616 | ac_preproc_ok=false | |
5617 | for ac_c_preproc_warn_flag in '' yes | |
5618 | do | |
5619 | # Use a header file that comes with gcc, so configuring glibc | |
5620 | # with a fresh cross-compiler works. | |
5621 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
5622 | # <limits.h> exists even on freestanding compilers. | |
5623 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
5624 | # not just through cpp. "Syntax error" is here to catch this case. | |
5625 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5626 | /* end confdefs.h. */ | |
5627 | #ifdef __STDC__ | |
5628 | # include <limits.h> | |
5629 | #else | |
5630 | # include <assert.h> | |
5631 | #endif | |
5632 | Syntax error | |
5633 | _ACEOF | |
5634 | if ac_fn_c_try_cpp "$LINENO"; then : | |
5635 | ||
5636 | else | |
5637 | # Broken: fails on valid input. | |
5638 | continue | |
5639 | fi | |
c3de29bd | 5640 | rm -f conftest.err conftest.i conftest.$ac_ext |
8f223b3e FCE |
5641 | |
5642 | # OK, works on sane cases. Now check whether nonexistent headers | |
5643 | # can be detected and how. | |
5644 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5645 | /* end confdefs.h. */ | |
5646 | #include <ac_nonexistent.h> | |
5647 | _ACEOF | |
5648 | if ac_fn_c_try_cpp "$LINENO"; then : | |
5649 | # Broken: success on invalid input. | |
5650 | continue | |
5651 | else | |
5652 | # Passes both tests. | |
5653 | ac_preproc_ok=: | |
5654 | break | |
5655 | fi | |
c3de29bd | 5656 | rm -f conftest.err conftest.i conftest.$ac_ext |
8f223b3e FCE |
5657 | |
5658 | done | |
5659 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
c3de29bd | 5660 | rm -f conftest.i conftest.err conftest.$ac_ext |
8f223b3e FCE |
5661 | if $ac_preproc_ok; then : |
5662 | ||
5663 | else | |
5664 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
5665 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
5d4aa1f5 FCE |
5666 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check |
5667 | See \`config.log' for more details" "$LINENO" 5; } | |
8f223b3e FCE |
5668 | fi |
5669 | ||
5670 | ac_ext=c | |
5671 | ac_cpp='$CPP $CPPFLAGS' | |
5672 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5673 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5674 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5675 | ||
5676 | ac_ext=c | |
5677 | ac_cpp='$CPP $CPPFLAGS' | |
5678 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5679 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5680 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5681 | if test -n "$ac_tool_prefix"; then | |
5682 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
5683 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
5684 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5685 | $as_echo_n "checking for $ac_word... " >&6; } | |
c3de29bd | 5686 | if ${ac_cv_prog_CC+:} false; then : |
8f223b3e FCE |
5687 | $as_echo_n "(cached) " >&6 |
5688 | else | |
5689 | if test -n "$CC"; then | |
5690 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
5691 | else | |
5692 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5693 | for as_dir in $PATH | |
5694 | do | |
5695 | IFS=$as_save_IFS | |
5696 | test -z "$as_dir" && as_dir=. | |
5697 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5698 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
5699 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | |
5700 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5701 | break 2 | |
5702 | fi | |
5703 | done | |
5704 | done | |
5705 | IFS=$as_save_IFS | |
5706 | ||
5707 | fi | |
5708 | fi | |
5709 | CC=$ac_cv_prog_CC | |
5710 | if test -n "$CC"; then | |
5711 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
5712 | $as_echo "$CC" >&6; } | |
5713 | else | |
5714 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5715 | $as_echo "no" >&6; } | |
5716 | fi | |
5717 | ||
5718 | ||
5719 | fi | |
5720 | if test -z "$ac_cv_prog_CC"; then | |
5721 | ac_ct_CC=$CC | |
5722 | # Extract the first word of "gcc", so it can be a program name with args. | |
5723 | set dummy gcc; ac_word=$2 | |
5724 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5725 | $as_echo_n "checking for $ac_word... " >&6; } | |
c3de29bd | 5726 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
8f223b3e FCE |
5727 | $as_echo_n "(cached) " >&6 |
5728 | else | |
5729 | if test -n "$ac_ct_CC"; then | |
5730 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
5731 | else | |
5732 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5733 | for as_dir in $PATH | |
5734 | do | |
5735 | IFS=$as_save_IFS | |
5736 | test -z "$as_dir" && as_dir=. | |
5737 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5738 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
5739 | ac_cv_prog_ac_ct_CC="gcc" | |
5740 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5741 | break 2 | |
5742 | fi | |
5743 | done | |
5744 | done | |
5745 | IFS=$as_save_IFS | |
5746 | ||
5747 | fi | |
5748 | fi | |
5749 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
5750 | if test -n "$ac_ct_CC"; then | |
5751 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
5752 | $as_echo "$ac_ct_CC" >&6; } | |
5753 | else | |
5754 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5755 | $as_echo "no" >&6; } | |
5756 | fi | |
5757 | ||
5758 | if test "x$ac_ct_CC" = x; then | |
5759 | CC="" | |
5760 | else | |
5761 | case $cross_compiling:$ac_tool_warned in | |
5762 | yes:) | |
5763 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5764 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5765 | ac_tool_warned=yes ;; | |
5766 | esac | |
5767 | CC=$ac_ct_CC | |
5768 | fi | |
5769 | else | |
5770 | CC="$ac_cv_prog_CC" | |
5771 | fi | |
5772 | ||
5773 | if test -z "$CC"; then | |
5774 | if test -n "$ac_tool_prefix"; then | |
5775 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
5776 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
5777 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5778 | $as_echo_n "checking for $ac_word... " >&6; } | |
c3de29bd | 5779 | if ${ac_cv_prog_CC+:} false; then : |
8f223b3e FCE |
5780 | $as_echo_n "(cached) " >&6 |
5781 | else | |
5782 | if test -n "$CC"; then | |
5783 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
5784 | else | |
5785 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5786 | for as_dir in $PATH | |
5787 | do | |
5788 | IFS=$as_save_IFS | |
5789 | test -z "$as_dir" && as_dir=. | |
5790 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5791 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
5792 | ac_cv_prog_CC="${ac_tool_prefix}cc" | |
5793 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5794 | break 2 | |
5795 | fi | |
5796 | done | |
5797 | done | |
5798 | IFS=$as_save_IFS | |
5799 | ||
5800 | fi | |
5801 | fi | |
5802 | CC=$ac_cv_prog_CC | |
5803 | if test -n "$CC"; then | |
5804 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
5805 | $as_echo "$CC" >&6; } | |
5806 | else | |
5807 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5808 | $as_echo "no" >&6; } | |
5809 | fi | |
5810 | ||
5811 | ||
5812 | fi | |
5813 | fi | |
5814 | if test -z "$CC"; then | |
5815 | # Extract the first word of "cc", so it can be a program name with args. | |
5816 | set dummy cc; ac_word=$2 | |
5817 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5818 | $as_echo_n "checking for $ac_word... " >&6; } | |
c3de29bd | 5819 | if ${ac_cv_prog_CC+:} false; then : |
8f223b3e FCE |
5820 | $as_echo_n "(cached) " >&6 |
5821 | else | |
5822 | if test -n "$CC"; then | |
5823 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
5824 | else | |
5825 | ac_prog_rejected=no | |
5826 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5827 | for as_dir in $PATH | |
5828 | do | |
5829 | IFS=$as_save_IFS | |
5830 | test -z "$as_dir" && as_dir=. | |
5831 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5832 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
5833 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | |
5834 | ac_prog_rejected=yes | |
5835 | continue | |
5836 | fi | |
5837 | ac_cv_prog_CC="cc" | |
5838 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5839 | break 2 | |
5840 | fi | |
5841 | done | |
5842 | done | |
5843 | IFS=$as_save_IFS | |
5844 | ||
5845 | if test $ac_prog_rejected = yes; then | |
5846 | # We found a bogon in the path, so make sure we never use it. | |
5847 | set dummy $ac_cv_prog_CC | |
5848 | shift | |
5849 | if test $# != 0; then | |
5850 | # We chose a different compiler from the bogus one. | |
5851 | # However, it has the same basename, so the bogon will be chosen | |
5852 | # first if we set CC to just the basename; use the full file name. | |
5853 | shift | |
5854 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
5855 | fi | |
5856 | fi | |
5857 | fi | |
5858 | fi | |
5859 | CC=$ac_cv_prog_CC | |
5860 | if test -n "$CC"; then | |
5861 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
5862 | $as_echo "$CC" >&6; } | |
5863 | else | |
5864 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5865 | $as_echo "no" >&6; } | |
5866 | fi | |
5867 | ||
5868 | ||
5869 | fi | |
5870 | if test -z "$CC"; then | |
5871 | if test -n "$ac_tool_prefix"; then | |
5872 | for ac_prog in cl.exe | |
5873 | do | |
5874 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
5875 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
5876 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5877 | $as_echo_n "checking for $ac_word... " >&6; } | |
c3de29bd | 5878 | if ${ac_cv_prog_CC+:} false; then : |
8f223b3e FCE |
5879 | $as_echo_n "(cached) " >&6 |
5880 | else | |
5881 | if test -n "$CC"; then | |
5882 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
5883 | else | |
5884 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5885 | for as_dir in $PATH | |
5886 | do | |
5887 | IFS=$as_save_IFS | |
5888 | test -z "$as_dir" && as_dir=. | |
5889 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5890 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
5891 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | |
5892 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5893 | break 2 | |
5894 | fi | |
5895 | done | |
5896 | done | |
5897 | IFS=$as_save_IFS | |
5898 | ||
5899 | fi | |
5900 | fi | |
5901 | CC=$ac_cv_prog_CC | |
5902 | if test -n "$CC"; then | |
5903 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
5904 | $as_echo "$CC" >&6; } | |
5905 | else | |
5906 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5907 | $as_echo "no" >&6; } | |
5908 | fi | |
5909 | ||
5910 | ||
5911 | test -n "$CC" && break | |
5912 | done | |
5913 | fi | |
5914 | if test -z "$CC"; then | |
5915 | ac_ct_CC=$CC | |
5916 | for ac_prog in cl.exe | |
5917 | do | |
5918 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
5919 | set dummy $ac_prog; ac_word=$2 | |
5920 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5921 | $as_echo_n "checking for $ac_word... " >&6; } | |
c3de29bd | 5922 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
8f223b3e FCE |
5923 | $as_echo_n "(cached) " >&6 |
5924 | else | |
5925 | if test -n "$ac_ct_CC"; then | |
5926 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
5927 | else | |
5928 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5929 | for as_dir in $PATH | |
5930 | do | |
5931 | IFS=$as_save_IFS | |
5932 | test -z "$as_dir" && as_dir=. | |
5933 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5934 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
5935 | ac_cv_prog_ac_ct_CC="$ac_prog" | |
5936 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5937 | break 2 | |
5938 | fi | |
5939 | done | |
5940 | done | |
5941 | IFS=$as_save_IFS | |
5942 | ||
5943 | fi | |
5944 | fi | |
5945 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
5946 | if test -n "$ac_ct_CC"; then | |
5947 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
5948 | $as_echo "$ac_ct_CC" >&6; } | |
5949 | else | |
5950 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5951 | $as_echo "no" >&6; } | |
5952 | fi | |
5953 | ||
5954 | ||
5955 | test -n "$ac_ct_CC" && break | |
5956 | done | |
5957 | ||
5958 | if test "x$ac_ct_CC" = x; then | |
5959 | CC="" | |
5960 | else | |
5961 | case $cross_compiling:$ac_tool_warned in | |
5962 | yes:) | |
5963 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5964 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5965 | ac_tool_warned=yes ;; | |
5966 | esac | |
5967 | CC=$ac_ct_CC | |
5968 | fi | |
5969 | fi | |
5970 | ||
5971 | fi | |
5972 | ||
5973 | ||
5974 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
5975 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
5d4aa1f5 FCE |
5976 | as_fn_error $? "no acceptable C compiler found in \$PATH |
5977 | See \`config.log' for more details" "$LINENO" 5; } | |
8f223b3e FCE |
5978 | |
5979 | # Provide some information about the compiler. | |
5980 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 | |
5981 | set X $ac_compile | |
5982 | ac_compiler=$2 | |
5983 | for ac_option in --version -v -V -qversion; do | |
5984 | { { ac_try="$ac_compiler $ac_option >&5" | |
5985 | case "(($ac_try" in | |
5986 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5987 | *) ac_try_echo=$ac_try;; | |
5988 | esac | |
5989 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
5990 | $as_echo "$ac_try_echo"; } >&5 | |
5991 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
5992 | ac_status=$? | |
5993 | if test -s conftest.err; then | |
5994 | sed '10a\ | |
5995 | ... rest of stderr output deleted ... | |
5996 | 10q' conftest.err >conftest.er1 | |
5997 | cat conftest.er1 >&5 | |
5998 | fi | |
5999 | rm -f conftest.er1 conftest.err | |
6000 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
6001 | test $ac_status = 0; } | |
6002 | done | |
6003 | ||
6004 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 | |
6005 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | |
c3de29bd | 6006 | if ${ac_cv_c_compiler_gnu+:} false; then : |
8f223b3e FCE |
6007 | $as_echo_n "(cached) " >&6 |
6008 | else | |
6009 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6010 | /* end confdefs.h. */ | |
6011 | ||
6012 | int | |
6013 | main () | |
6014 | { | |
6015 | #ifndef __GNUC__ | |
6016 | choke me | |
6017 | #endif | |
6018 | ||
6019 | ; | |
6020 | return 0; | |
6021 | } | |
6022 | _ACEOF | |
6023 | if ac_fn_c_try_compile "$LINENO"; then : | |
6024 | ac_compiler_gnu=yes | |
6025 | else | |
6026 | ac_compiler_gnu=no | |
6027 | fi | |
6028 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6029 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | |
6030 | ||
6031 | fi | |
6032 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 | |
6033 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | |
6034 | if test $ac_compiler_gnu = yes; then | |
6035 | GCC=yes | |
6036 | else | |
6037 | GCC= | |
6038 | fi | |
6039 | ac_test_CFLAGS=${CFLAGS+set} | |
6040 | ac_save_CFLAGS=$CFLAGS | |
6041 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 | |
6042 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | |
c3de29bd | 6043 | if ${ac_cv_prog_cc_g+:} false; then : |
8f223b3e FCE |
6044 | $as_echo_n "(cached) " >&6 |
6045 | else | |
6046 | ac_save_c_werror_flag=$ac_c_werror_flag | |
6047 | ac_c_werror_flag=yes | |
6048 | ac_cv_prog_cc_g=no | |
6049 | CFLAGS="-g" | |
6050 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6051 | /* end confdefs.h. */ | |
6052 | ||
6053 | int | |
6054 | main () | |
6055 | { | |
6056 | ||
6057 | ; | |
6058 | return 0; | |
6059 | } | |
6060 | _ACEOF | |
6061 | if ac_fn_c_try_compile "$LINENO"; then : | |
6062 | ac_cv_prog_cc_g=yes | |
6063 | else | |
6064 | CFLAGS="" | |
6065 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6066 | /* end confdefs.h. */ | |
6067 | ||
6068 | int | |
6069 | main () | |
6070 | { | |
6071 | ||
6072 | ; | |
6073 | return 0; | |
6074 | } | |
6075 | _ACEOF | |
6076 | if ac_fn_c_try_compile "$LINENO"; then : | |
6077 | ||
6078 | else | |
6079 | ac_c_werror_flag=$ac_save_c_werror_flag | |
6080 | CFLAGS="-g" | |
6081 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6082 | /* end confdefs.h. */ | |
6083 | ||
6084 | int | |
6085 | main () | |
6086 | { | |
6087 | ||
6088 | ; | |
6089 | return 0; | |
6090 | } | |
6091 | _ACEOF | |
6092 | if ac_fn_c_try_compile "$LINENO"; then : | |
6093 | ac_cv_prog_cc_g=yes | |
6094 | fi | |
6095 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6096 | fi | |
6097 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6098 | fi | |
6099 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6100 | ac_c_werror_flag=$ac_save_c_werror_flag | |
6101 | fi | |
6102 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 | |
6103 | $as_echo "$ac_cv_prog_cc_g" >&6; } | |
6104 | if test "$ac_test_CFLAGS" = set; then | |
6105 | CFLAGS=$ac_save_CFLAGS | |
6106 | elif test $ac_cv_prog_cc_g = yes; then | |
6107 | if test "$GCC" = yes; then | |
6108 | CFLAGS="-g -O2" | |
6109 | else | |
6110 | CFLAGS="-g" | |
6111 | fi | |
6112 | else | |
6113 | if test "$GCC" = yes; then | |
6114 | CFLAGS="-O2" | |
6115 | else | |
6116 | CFLAGS= | |
6117 | fi | |
6118 | fi | |
6119 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 | |
6120 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | |
c3de29bd | 6121 | if ${ac_cv_prog_cc_c89+:} false; then : |
8f223b3e FCE |
6122 | $as_echo_n "(cached) " >&6 |
6123 | else | |
6124 | ac_cv_prog_cc_c89=no | |
6125 | ac_save_CC=$CC | |
6126 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6127 | /* end confdefs.h. */ | |
6128 | #include <stdarg.h> | |
6129 | #include <stdio.h> | |
6130 | #include <sys/types.h> | |
6131 | #include <sys/stat.h> | |
6132 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
6133 | struct buf { int x; }; | |
6134 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
6135 | static char *e (p, i) | |
6136 | char **p; | |
6137 | int i; | |
6138 | { | |
6139 | return p[i]; | |
6140 | } | |
6141 | static char *f (char * (*g) (char **, int), char **p, ...) | |
6142 | { | |
6143 | char *s; | |
6144 | va_list v; | |
6145 | va_start (v,p); | |
6146 | s = g (p, va_arg (v,int)); | |
6147 | va_end (v); | |
6148 | return s; | |
6149 | } | |
6150 | ||
6151 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
6152 | function prototypes and stuff, but not '\xHH' hex character constants. | |
6153 | These don't provoke an error unfortunately, instead are silently treated | |
6154 | as 'x'. The following induces an error, until -std is added to get | |
6155 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | |
6156 | array size at least. It's necessary to write '\x00'==0 to get something | |
6157 | that's true only with -std. */ | |
6158 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | |
6159 | ||
6160 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters | |
6161 | inside strings and character constants. */ | |
6162 | #define FOO(x) 'x' | |
6163 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
6164 | ||
6165 | int test (int i, double x); | |
6166 | struct s1 {int (*f) (int a);}; | |
6167 | struct s2 {int (*f) (double a);}; | |
6168 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
6169 | int argc; | |
6170 | char **argv; | |
6171 | int | |
6172 | main () | |
6173 | { | |
6174 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
6175 | ; | |
6176 | return 0; | |
6177 | } | |
6178 | _ACEOF | |
6179 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ | |
6180 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
6181 | do | |
6182 | CC="$ac_save_CC $ac_arg" | |
6183 | if ac_fn_c_try_compile "$LINENO"; then : | |
6184 | ac_cv_prog_cc_c89=$ac_arg | |
6185 | fi | |
6186 | rm -f core conftest.err conftest.$ac_objext | |
6187 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
6188 | done | |
6189 | rm -f conftest.$ac_ext | |
6190 | CC=$ac_save_CC | |
6191 | ||
6192 | fi | |
6193 | # AC_CACHE_VAL | |
6194 | case "x$ac_cv_prog_cc_c89" in | |
6195 | x) | |
6196 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
6197 | $as_echo "none needed" >&6; } ;; | |
6198 | xno) | |
6199 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
6200 | $as_echo "unsupported" >&6; } ;; | |
6201 | *) | |
6202 | CC="$CC $ac_cv_prog_cc_c89" | |
6203 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | |
6204 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | |
6205 | esac | |
6206 | if test "x$ac_cv_prog_cc_c89" != xno; then : | |
6207 | ||
6208 | fi | |
6209 | ||
6210 | ac_ext=c | |
6211 | ac_cpp='$CPP $CPPFLAGS' | |
6212 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
6213 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
6214 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
6215 | ||
6216 | depcc="$CC" am_compiler_list= | |
6217 | ||
6218 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 | |
6219 | $as_echo_n "checking dependency style of $depcc... " >&6; } | |
c3de29bd | 6220 | if ${am_cv_CC_dependencies_compiler_type+:} false; then : |
8f223b3e FCE |
6221 | $as_echo_n "(cached) " >&6 |
6222 | else | |
6223 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | |
6224 | # We make a subdir and do the tests there. Otherwise we can end up | |
6225 | # making bogus files that we don't know about and never remove. For | |
6226 | # instance it was reported that on HP-UX the gcc test will end up | |
6227 | # making a dummy file named `D' -- because `-MD' means `put the output | |
6228 | # in D'. | |
6229 | mkdir conftest.dir | |
6230 | # Copy depcomp to subdir because otherwise we won't find it if we're | |
6231 | # using a relative directory. | |
6232 | cp "$am_depcomp" conftest.dir | |
6233 | cd conftest.dir | |
6234 | # We will build objects and dependencies in a subdirectory because | |
6235 | # it helps to detect inapplicable dependency modes. For instance | |
6236 | # both Tru64's cc and ICC support -MD to output dependencies as a | |
6237 | # side effect of compilation, but ICC will put the dependencies in | |
6238 | # the current directory while Tru64 will put them in the object | |
6239 | # directory. | |
6240 | mkdir sub | |
6241 | ||
6242 | am_cv_CC_dependencies_compiler_type=none | |
6243 | if test "$am_compiler_list" = ""; then | |
6244 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
6245 | fi | |
6246 | am__universal=false | |
6247 | case " $depcc " in #( | |
6248 | *\ -arch\ *\ -arch\ *) am__universal=true ;; | |
6249 | esac | |
6250 | ||
6251 | for depmode in $am_compiler_list; do | |
6252 | # Setup a source with many dependencies, because some compilers | |
6253 | # like to wrap large dependency lists on column 80 (with \), and | |
6254 | # we should not choose a depcomp mode which is confused by this. | |
6255 | # | |
6256 | # We need to recreate these files for each test, as the compiler may | |
6257 | # overwrite some of them when testing with obscure command lines. | |
6258 | # This happens at least with the AIX C compiler. | |
6259 | : > sub/conftest.c | |
6260 | for i in 1 2 3 4 5 6; do | |
6261 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
6262 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with | |
6263 | # Solaris 8's {/usr,}/bin/sh. | |
6264 | touch sub/conftst$i.h | |
6265 | done | |
6266 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
6267 | ||
6268 | # We check with `-c' and `-o' for the sake of the "dashmstdout" | |
6269 | # mode. It turns out that the SunPro C++ compiler does not properly | |
6270 | # handle `-M -o', and we need to detect this. Also, some Intel | |
6271 | # versions had trouble with output in subdirs | |
6272 | am__obj=sub/conftest.${OBJEXT-o} | |
6273 | am__minus_obj="-o $am__obj" | |
6274 | case $depmode in | |
6275 | gcc) | |
6276 | # This depmode causes a compiler race in universal mode. | |
6277 | test "$am__universal" = false || continue | |
6278 | ;; | |
6279 | nosideeffect) | |
6280 | # after this tag, mechanisms are not by side-effect, so they'll | |
6281 | # only be used when explicitly requested | |
6282 | if test "x$enable_dependency_tracking" = xyes; then | |
6283 | continue | |
6284 | else | |
6285 | break | |
6286 | fi | |
6287 | ;; | |
6288 | msvisualcpp | msvcmsys) | |
6289 | # This compiler won't grok `-c -o', but also, the minuso test has | |
6290 | # not run yet. These depmodes are late enough in the game, and | |
6291 | # so weak that their functioning should not be impacted. | |
6292 | am__obj=conftest.${OBJEXT-o} | |
6293 | am__minus_obj= | |
6294 | ;; | |
6295 | none) break ;; | |
6296 | esac | |
6297 | if depmode=$depmode \ | |
6298 | source=sub/conftest.c object=$am__obj \ | |
6299 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | |
6300 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ | |
6301 | >/dev/null 2>conftest.err && | |
6302 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && | |
6303 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && | |
6304 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && | |
6305 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | |
6306 | # icc doesn't choke on unknown options, it will just issue warnings | |
6307 | # or remarks (even with -Werror). So we grep stderr for any message | |
6308 | # that says an option was ignored or not supported. | |
6309 | # When given -MP, icc 7.0 and 7.1 complain thusly: | |
6310 | # icc: Command line warning: ignoring option '-M'; no argument required | |
6311 | # The diagnosis changed in icc 8.0: | |
6312 | # icc: Command line remark: option '-MP' not supported | |
6313 | if (grep 'ignoring option' conftest.err || | |
6314 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
6315 | am_cv_CC_dependencies_compiler_type=$depmode | |
6316 | break | |
6317 | fi | |
6318 | fi | |
6319 | done | |
6320 | ||
6321 | cd .. | |
6322 | rm -rf conftest.dir | |
6323 | else | |
6324 | am_cv_CC_dependencies_compiler_type=none | |
6325 | fi | |
6326 | ||
6327 | fi | |
6328 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 | |
6329 | $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } | |
6330 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type | |
6331 | ||
6332 | if | |
6333 | test "x$enable_dependency_tracking" != xno \ | |
6334 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then | |
6335 | am__fastdepCC_TRUE= | |
6336 | am__fastdepCC_FALSE='#' | |
6337 | else | |
6338 | am__fastdepCC_TRUE='#' | |
6339 | am__fastdepCC_FALSE= | |
6340 | fi | |
6341 | ||
6342 | ||
6343 | ||
6344 | am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc | |
6345 | ||
6346 | if test "x$CC" != xcc; then | |
6347 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5 | |
6348 | $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; } | |
6349 | else | |
6350 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5 | |
6351 | $as_echo_n "checking whether cc understands -c and -o together... " >&6; } | |
6352 | fi | |
6353 | set dummy $CC; ac_cc=`$as_echo "$2" | | |
6354 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'` | |
c3de29bd | 6355 | if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then : |
8f223b3e FCE |
6356 | $as_echo_n "(cached) " >&6 |
6357 | else | |
6358 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6359 | /* end confdefs.h. */ | |
6360 | ||
6361 | int | |
6362 | main () | |
6363 | { | |
6364 | ||
6365 | ; | |
6366 | return 0; | |
6367 | } | |
6368 | _ACEOF | |
6369 | # Make sure it works both with $CC and with simple cc. | |
6370 | # We do the test twice because some compilers refuse to overwrite an | |
6371 | # existing .o file with -o, though they will create one. | |
6372 | ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5' | |
6373 | rm -f conftest2.* | |
6374 | if { { case "(($ac_try" in | |
6375 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6376 | *) ac_try_echo=$ac_try;; | |
6377 | esac | |
6378 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
6379 | $as_echo "$ac_try_echo"; } >&5 | |
6380 | (eval "$ac_try") 2>&5 | |
8ae7a94a | 6381 | ac_status=$? |
1ef0423a FCE |
6382 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
6383 | test $ac_status = 0; } && | |
6384 | test -f conftest2.$ac_objext && { { case "(($ac_try" in | |
7fbd9d09 FCE |
6385 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
6386 | *) ac_try_echo=$ac_try;; | |
6387 | esac | |
8f223b3e FCE |
6388 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
6389 | $as_echo "$ac_try_echo"; } >&5 | |
6390 | (eval "$ac_try") 2>&5 | |
6391 | ac_status=$? | |
6392 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
6393 | test $ac_status = 0; }; | |
6394 | then | |
6395 | eval ac_cv_prog_cc_${ac_cc}_c_o=yes | |
6396 | if test "x$CC" != xcc; then | |
6397 | # Test first that cc exists at all. | |
6398 | if { ac_try='cc -c conftest.$ac_ext >&5' | |
6399 | { { case "(($ac_try" in | |
6400 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6401 | *) ac_try_echo=$ac_try;; | |
6402 | esac | |
6403 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
6404 | $as_echo "$ac_try_echo"; } >&5 | |
6405 | (eval "$ac_try") 2>&5 | |
6406 | ac_status=$? | |
6407 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
6408 | test $ac_status = 0; }; }; then | |
6409 | ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5' | |
6410 | rm -f conftest2.* | |
6411 | if { { 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_try") 2>&5 | |
6418 | ac_status=$? | |
6419 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
6420 | test $ac_status = 0; } && | |
6421 | test -f conftest2.$ac_objext && { { case "(($ac_try" in | |
6422 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6423 | *) ac_try_echo=$ac_try;; | |
6424 | esac | |
6425 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
6426 | $as_echo "$ac_try_echo"; } >&5 | |
6427 | (eval "$ac_try") 2>&5 | |
6428 | ac_status=$? | |
6429 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
6430 | test $ac_status = 0; }; | |
6431 | then | |
6432 | # cc works too. | |
6433 | : | |
6434 | else | |
6435 | # cc exists but doesn't like -o. | |
6436 | eval ac_cv_prog_cc_${ac_cc}_c_o=no | |
6437 | fi | |
6438 | fi | |
6439 | fi | |
6440 | else | |
6441 | eval ac_cv_prog_cc_${ac_cc}_c_o=no | |
6442 | fi | |
6443 | rm -f core conftest* | |
6444 | ||
6445 | fi | |
6446 | if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then | |
6447 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
6448 | $as_echo "yes" >&6; } | |
6449 | else | |
6450 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6451 | $as_echo "no" >&6; } | |
6452 | ||
6453 | $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h | |
6454 | ||
6455 | fi | |
6456 | ||
6457 | # FIXME: we rely on the cache variable name because | |
6458 | # there is no other way. | |
6459 | set dummy $CC | |
6460 | am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'` | |
6461 | eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o | |
6462 | if test "$am_t" != yes; then | |
6463 | # Losing compiler, so override with the script. | |
6464 | # FIXME: It is wrong to rewrite CC. | |
6465 | # But if we don't then we get into trouble of one sort or another. | |
6466 | # A longer-term fix would be to have automake use am__CC in this case, | |
6467 | # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" | |
6468 | CC="$am_aux_dir/compile $CC" | |
6469 | fi | |
6470 | ||
6471 | ||
6472 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for function prototypes" >&5 | |
6473 | $as_echo_n "checking for function prototypes... " >&6; } | |
6474 | if test "$ac_cv_prog_cc_c89" != no; then | |
6475 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
6476 | $as_echo "yes" >&6; } | |
6477 | ||
6478 | $as_echo "#define PROTOTYPES 1" >>confdefs.h | |
6479 | ||
6480 | ||
6481 | $as_echo "#define __PROTOTYPES 1" >>confdefs.h | |
6482 | ||
6483 | else | |
6484 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6485 | $as_echo "no" >&6; } | |
6486 | fi | |
6487 | ||
6488 | ||
6489 | if test "$ac_cv_prog_cc_stdc" != no; then | |
6490 | U= ANSI2KNR= | |
6491 | else | |
6492 | U=_ ANSI2KNR=./ansi2knr | |
6493 | fi | |
6494 | # Ensure some checks needed by ansi2knr itself. | |
6495 | ||
6496 | for ac_header in string.h | |
6497 | do : | |
6498 | ac_fn_c_check_header_mongrel "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default" | |
c3de29bd | 6499 | if test "x$ac_cv_header_string_h" = xyes; then : |
8f223b3e FCE |
6500 | cat >>confdefs.h <<_ACEOF |
6501 | #define HAVE_STRING_H 1 | |
6502 | _ACEOF | |
6503 | ||
6504 | fi | |
6505 | ||
6506 | done | |
6507 | ||
6508 | ||
6509 | if test -n "$ac_tool_prefix"; then | |
6510 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
6511 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
6512 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6513 | $as_echo_n "checking for $ac_word... " >&6; } | |
c3de29bd | 6514 | if ${ac_cv_prog_RANLIB+:} false; then : |
8f223b3e FCE |
6515 | $as_echo_n "(cached) " >&6 |
6516 | else | |
6517 | if test -n "$RANLIB"; then | |
6518 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
6519 | else | |
6520 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6521 | for as_dir in $PATH | |
6522 | do | |
6523 | IFS=$as_save_IFS | |
6524 | test -z "$as_dir" && as_dir=. | |
6525 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6526 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
6527 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
6528 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6529 | break 2 | |
6530 | fi | |
6531 | done | |
6532 | done | |
6533 | IFS=$as_save_IFS | |
6534 | ||
6535 | fi | |
6536 | fi | |
6537 | RANLIB=$ac_cv_prog_RANLIB | |
6538 | if test -n "$RANLIB"; then | |
6539 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 | |
6540 | $as_echo "$RANLIB" >&6; } | |
6541 | else | |
6542 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6543 | $as_echo "no" >&6; } | |
6544 | fi | |
6545 | ||
6546 | ||
6547 | fi | |
6548 | if test -z "$ac_cv_prog_RANLIB"; then | |
6549 | ac_ct_RANLIB=$RANLIB | |
6550 | # Extract the first word of "ranlib", so it can be a program name with args. | |
6551 | set dummy ranlib; ac_word=$2 | |
6552 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6553 | $as_echo_n "checking for $ac_word... " >&6; } | |
c3de29bd | 6554 | if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : |
8f223b3e FCE |
6555 | $as_echo_n "(cached) " >&6 |
6556 | else | |
6557 | if test -n "$ac_ct_RANLIB"; then | |
6558 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
6559 | else | |
6560 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6561 | for as_dir in $PATH | |
6562 | do | |
6563 | IFS=$as_save_IFS | |
6564 | test -z "$as_dir" && as_dir=. | |
6565 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6566 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
6567 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
6568 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6569 | break 2 | |
6570 | fi | |
6571 | done | |
6572 | done | |
6573 | IFS=$as_save_IFS | |
6574 | ||
6575 | fi | |
6576 | fi | |
6577 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
6578 | if test -n "$ac_ct_RANLIB"; then | |
6579 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 | |
6580 | $as_echo "$ac_ct_RANLIB" >&6; } | |
6581 | else | |
6582 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6583 | $as_echo "no" >&6; } | |
6584 | fi | |
6585 | ||
6586 | if test "x$ac_ct_RANLIB" = x; then | |
6587 | RANLIB=":" | |
6588 | else | |
6589 | case $cross_compiling:$ac_tool_warned in | |
6590 | yes:) | |
6591 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6592 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6593 | ac_tool_warned=yes ;; | |
6594 | esac | |
6595 | RANLIB=$ac_ct_RANLIB | |
6596 | fi | |
6597 | else | |
6598 | RANLIB="$ac_cv_prog_RANLIB" | |
6599 | fi | |
6600 | ||
6601 | ||
6602 | ||
6603 | ||
6604 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 | |
6605 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } | |
6606 | set x ${MAKE-make} | |
6607 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | |
c3de29bd | 6608 | if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : |
8f223b3e FCE |
6609 | $as_echo_n "(cached) " >&6 |
6610 | else | |
6611 | cat >conftest.make <<\_ACEOF | |
6612 | SHELL = /bin/sh | |
6613 | all: | |
6614 | @echo '@@@%%%=$(MAKE)=@@@%%%' | |
6615 | _ACEOF | |
5d4aa1f5 | 6616 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. |
8f223b3e FCE |
6617 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
6618 | *@@@%%%=?*=@@@%%%*) | |
6619 | eval ac_cv_prog_make_${ac_make}_set=yes;; | |
6620 | *) | |
6621 | eval ac_cv_prog_make_${ac_make}_set=no;; | |
7fbd9d09 | 6622 | esac |
8f223b3e FCE |
6623 | rm -f conftest.make |
6624 | fi | |
6625 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then | |
6626 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
6627 | $as_echo "yes" >&6; } | |
6628 | SET_MAKE= | |
6629 | else | |
6630 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6631 | $as_echo "no" >&6; } | |
6632 | SET_MAKE="MAKE=${MAKE-make}" | |
6633 | fi | |
6634 | ||
6635 | ||
6636 | ||
6637 | ||
6638 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5 | |
6639 | $as_echo_n "checking whether NLS is requested... " >&6; } | |
6640 | # Check whether --enable-nls was given. | |
6641 | if test "${enable_nls+set}" = set; then : | |
6642 | enableval=$enable_nls; USE_NLS=$enableval | |
6643 | else | |
6644 | USE_NLS=yes | |
6645 | fi | |
6646 | ||
6647 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5 | |
6648 | $as_echo "$USE_NLS" >&6; } | |
6649 | ||
6650 | ||
6651 | ||
6652 | ||
6653 | GETTEXT_MACRO_VERSION=0.18 | |
6654 | ||
6655 | ||
6656 | ||
6657 | ||
6658 | # Prepare PATH_SEPARATOR. | |
6659 | # The user is always right. | |
6660 | if test "${PATH_SEPARATOR+set}" != set; then | |
6661 | echo "#! /bin/sh" >conf$$.sh | |
6662 | echo "exit 0" >>conf$$.sh | |
6663 | chmod +x conf$$.sh | |
6664 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
6665 | PATH_SEPARATOR=';' | |
6666 | else | |
6667 | PATH_SEPARATOR=: | |
6668 | fi | |
6669 | rm -f conf$$.sh | |
6670 | fi | |
6671 | ||
6672 | # Find out how to test for executable files. Don't use a zero-byte file, | |
6673 | # as systems may use methods other than mode bits to determine executability. | |
6674 | cat >conf$$.file <<_ASEOF | |
6675 | #! /bin/sh | |
6676 | exit 0 | |
6677 | _ASEOF | |
6678 | chmod +x conf$$.file | |
6679 | if test -x conf$$.file >/dev/null 2>&1; then | |
6680 | ac_executable_p="test -x" | |
6681 | else | |
6682 | ac_executable_p="test -f" | |
6683 | fi | |
6684 | rm -f conf$$.file | |
6685 | ||
6686 | # Extract the first word of "msgfmt", so it can be a program name with args. | |
6687 | set dummy msgfmt; ac_word=$2 | |
6688 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6689 | $as_echo_n "checking for $ac_word... " >&6; } | |
c3de29bd | 6690 | if ${ac_cv_path_MSGFMT+:} false; then : |
8f223b3e FCE |
6691 | $as_echo_n "(cached) " >&6 |
6692 | else | |
6693 | case "$MSGFMT" in | |
6694 | [\\/]* | ?:[\\/]*) | |
6695 | ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. | |
6696 | ;; | |
6697 | *) | |
6698 | ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR | |
6699 | for ac_dir in $PATH; do | |
6700 | IFS="$ac_save_IFS" | |
6701 | test -z "$ac_dir" && ac_dir=. | |
6702 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6703 | if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then | |
6704 | echo "$as_me: trying $ac_dir/$ac_word..." >&5 | |
6705 | if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 && | |
6706 | (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then | |
6707 | ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext" | |
6708 | break 2 | |
6709 | fi | |
6710 | fi | |
6711 | done | |
6712 | done | |
6713 | IFS="$ac_save_IFS" | |
6714 | test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":" | |
6715 | ;; | |
7fbd9d09 | 6716 | esac |
8f223b3e FCE |
6717 | fi |
6718 | MSGFMT="$ac_cv_path_MSGFMT" | |
6719 | if test "$MSGFMT" != ":"; then | |
6720 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5 | |
6721 | $as_echo "$MSGFMT" >&6; } | |
6722 | else | |
6723 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6724 | $as_echo "no" >&6; } | |
6725 | fi | |
6726 | ||
6727 | # Extract the first word of "gmsgfmt", so it can be a program name with args. | |
6728 | set dummy gmsgfmt; ac_word=$2 | |
6729 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6730 | $as_echo_n "checking for $ac_word... " >&6; } | |
c3de29bd | 6731 | if ${ac_cv_path_GMSGFMT+:} false; then : |
8f223b3e FCE |
6732 | $as_echo_n "(cached) " >&6 |
6733 | else | |
6734 | case $GMSGFMT in | |
6735 | [\\/]* | ?:[\\/]*) | |
6736 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. | |
6737 | ;; | |
6738 | *) | |
6739 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6740 | for as_dir in $PATH | |
6741 | do | |
6742 | IFS=$as_save_IFS | |
6743 | test -z "$as_dir" && as_dir=. | |
6744 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6745 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
6746 | ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext" | |
6747 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6748 | break 2 | |
6749 | fi | |
6750 | done | |
6751 | done | |
6752 | IFS=$as_save_IFS | |
6753 | ||
6754 | test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" | |
6755 | ;; | |
7fbd9d09 | 6756 | esac |
8f223b3e FCE |
6757 | fi |
6758 | GMSGFMT=$ac_cv_path_GMSGFMT | |
6759 | if test -n "$GMSGFMT"; then | |
6760 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5 | |
6761 | $as_echo "$GMSGFMT" >&6; } | |
6762 | else | |
6763 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6764 | $as_echo "no" >&6; } | |
6765 | fi | |
6766 | ||
6767 | ||
6768 | ||
6769 | case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in | |
6770 | '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;; | |
6771 | *) MSGFMT_015=$MSGFMT ;; | |
6772 | esac | |
6773 | ||
6774 | case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in | |
6775 | '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;; | |
6776 | *) GMSGFMT_015=$GMSGFMT ;; | |
6777 | esac | |
6778 | ||
6779 | ||
6780 | ||
6781 | # Prepare PATH_SEPARATOR. | |
6782 | # The user is always right. | |
6783 | if test "${PATH_SEPARATOR+set}" != set; then | |
6784 | echo "#! /bin/sh" >conf$$.sh | |
6785 | echo "exit 0" >>conf$$.sh | |
6786 | chmod +x conf$$.sh | |
6787 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
6788 | PATH_SEPARATOR=';' | |
6789 | else | |
6790 | PATH_SEPARATOR=: | |
6791 | fi | |
6792 | rm -f conf$$.sh | |
6793 | fi | |
6794 | ||
6795 | # Find out how to test for executable files. Don't use a zero-byte file, | |
6796 | # as systems may use methods other than mode bits to determine executability. | |
6797 | cat >conf$$.file <<_ASEOF | |
6798 | #! /bin/sh | |
6799 | exit 0 | |
6800 | _ASEOF | |
6801 | chmod +x conf$$.file | |
6802 | if test -x conf$$.file >/dev/null 2>&1; then | |
6803 | ac_executable_p="test -x" | |
6804 | else | |
6805 | ac_executable_p="test -f" | |
6806 | fi | |
6807 | rm -f conf$$.file | |
6808 | ||
6809 | # Extract the first word of "xgettext", so it can be a program name with args. | |
6810 | set dummy xgettext; ac_word=$2 | |
6811 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6812 | $as_echo_n "checking for $ac_word... " >&6; } | |
c3de29bd | 6813 | if ${ac_cv_path_XGETTEXT+:} false; then : |
8f223b3e FCE |
6814 | $as_echo_n "(cached) " >&6 |
6815 | else | |
6816 | case "$XGETTEXT" in | |
6817 | [\\/]* | ?:[\\/]*) | |
6818 | ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. | |
6819 | ;; | |
6820 | *) | |
6821 | ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR | |
6822 | for ac_dir in $PATH; do | |
6823 | IFS="$ac_save_IFS" | |
6824 | test -z "$ac_dir" && ac_dir=. | |
6825 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6826 | if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then | |
6827 | echo "$as_me: trying $ac_dir/$ac_word..." >&5 | |
6828 | if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 && | |
6829 | (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 | |
6830 | ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext" | |
6831 | break 2 | |
6832 | fi | |
6833 | fi | |
6834 | done | |
6835 | done | |
6836 | IFS="$ac_save_IFS" | |
6837 | test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" | |
6838 | ;; | |
6839 | esac | |
6840 | fi | |
6841 | XGETTEXT="$ac_cv_path_XGETTEXT" | |
6842 | if test "$XGETTEXT" != ":"; then | |
6843 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5 | |
6844 | $as_echo "$XGETTEXT" >&6; } | |
6845 | else | |
6846 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6847 | $as_echo "no" >&6; } | |
6848 | fi | |
6849 | ||
6850 | rm -f messages.po | |
6851 | ||
6852 | case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in | |
6853 | '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;; | |
6854 | *) XGETTEXT_015=$XGETTEXT ;; | |
6855 | esac | |
6856 | ||
6857 | ||
6858 | ||
6859 | # Prepare PATH_SEPARATOR. | |
6860 | # The user is always right. | |
6861 | if test "${PATH_SEPARATOR+set}" != set; then | |
6862 | echo "#! /bin/sh" >conf$$.sh | |
6863 | echo "exit 0" >>conf$$.sh | |
6864 | chmod +x conf$$.sh | |
6865 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
6866 | PATH_SEPARATOR=';' | |
6867 | else | |
6868 | PATH_SEPARATOR=: | |
6869 | fi | |
6870 | rm -f conf$$.sh | |
6871 | fi | |
6872 | ||
6873 | # Find out how to test for executable files. Don't use a zero-byte file, | |
6874 | # as systems may use methods other than mode bits to determine executability. | |
6875 | cat >conf$$.file <<_ASEOF | |
6876 | #! /bin/sh | |
6877 | exit 0 | |
6878 | _ASEOF | |
6879 | chmod +x conf$$.file | |
6880 | if test -x conf$$.file >/dev/null 2>&1; then | |
6881 | ac_executable_p="test -x" | |
6882 | else | |
6883 | ac_executable_p="test -f" | |
6884 | fi | |
6885 | rm -f conf$$.file | |
6886 | ||
6887 | # Extract the first word of "msgmerge", so it can be a program name with args. | |
6888 | set dummy msgmerge; ac_word=$2 | |
6889 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6890 | $as_echo_n "checking for $ac_word... " >&6; } | |
c3de29bd | 6891 | if ${ac_cv_path_MSGMERGE+:} false; then : |
8f223b3e FCE |
6892 | $as_echo_n "(cached) " >&6 |
6893 | else | |
6894 | case "$MSGMERGE" in | |
6895 | [\\/]* | ?:[\\/]*) | |
6896 | ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path. | |
6897 | ;; | |
6898 | *) | |
6899 | ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR | |
6900 | for ac_dir in $PATH; do | |
6901 | IFS="$ac_save_IFS" | |
6902 | test -z "$ac_dir" && ac_dir=. | |
6903 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6904 | if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then | |
6905 | echo "$as_me: trying $ac_dir/$ac_word..." >&5 | |
6906 | if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then | |
6907 | ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext" | |
6908 | break 2 | |
6909 | fi | |
6910 | fi | |
6911 | done | |
6912 | done | |
6913 | IFS="$ac_save_IFS" | |
6914 | test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":" | |
6915 | ;; | |
6916 | esac | |
6917 | fi | |
6918 | MSGMERGE="$ac_cv_path_MSGMERGE" | |
6919 | if test "$MSGMERGE" != ":"; then | |
6920 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5 | |
6921 | $as_echo "$MSGMERGE" >&6; } | |
6922 | else | |
6923 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6924 | $as_echo "no" >&6; } | |
6925 | fi | |
6926 | ||
6927 | ||
6928 | test -n "$localedir" || localedir='${datadir}/locale' | |
6929 | ||
6930 | ||
6931 | test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS= | |
6932 | ||
6933 | ||
6934 | ac_config_commands="$ac_config_commands po-directories" | |
6935 | ||
6936 | ||
6937 | ||
6938 | if test "X$prefix" = "XNONE"; then | |
6939 | acl_final_prefix="$ac_default_prefix" | |
6940 | else | |
6941 | acl_final_prefix="$prefix" | |
8ae7a94a | 6942 | fi |
8f223b3e FCE |
6943 | if test "X$exec_prefix" = "XNONE"; then |
6944 | acl_final_exec_prefix='${prefix}' | |
6945 | else | |
6946 | acl_final_exec_prefix="$exec_prefix" | |
6947 | fi | |
6948 | acl_save_prefix="$prefix" | |
6949 | prefix="$acl_final_prefix" | |
6950 | eval acl_final_exec_prefix=\"$acl_final_exec_prefix\" | |
6951 | prefix="$acl_save_prefix" | |
6952 | ||
6953 | # Make sure we can run config.sub. | |
6954 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || | |
5d4aa1f5 | 6955 | as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 |
8f223b3e FCE |
6956 | |
6957 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 | |
6958 | $as_echo_n "checking build system type... " >&6; } | |
c3de29bd | 6959 | if ${ac_cv_build+:} false; then : |
8f223b3e FCE |
6960 | $as_echo_n "(cached) " >&6 |
6961 | else | |
6962 | ac_build_alias=$build_alias | |
6963 | test "x$ac_build_alias" = x && | |
6964 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | |
6965 | test "x$ac_build_alias" = x && | |
5d4aa1f5 | 6966 | as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 |
8f223b3e | 6967 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
5d4aa1f5 | 6968 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 |
8f223b3e FCE |
6969 | |
6970 | fi | |
6971 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 | |
6972 | $as_echo "$ac_cv_build" >&6; } | |
6973 | case $ac_cv_build in | |
6974 | *-*-*) ;; | |
5d4aa1f5 | 6975 | *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; |
8f223b3e FCE |
6976 | esac |
6977 | build=$ac_cv_build | |
6978 | ac_save_IFS=$IFS; IFS='-' | |
6979 | set x $ac_cv_build | |
6980 | shift | |
6981 | build_cpu=$1 | |
6982 | build_vendor=$2 | |
6983 | shift; shift | |
6984 | # Remember, the first character of IFS is used to create $*, | |
6985 | # except with old shells: | |
6986 | build_os=$* | |
6987 | IFS=$ac_save_IFS | |
6988 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | |
6989 | ||
6990 | ||
6991 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 | |
6992 | $as_echo_n "checking host system type... " >&6; } | |
c3de29bd | 6993 | if ${ac_cv_host+:} false; then : |
8f223b3e | 6994 | $as_echo_n "(cached) " >&6 |
8ae7a94a | 6995 | else |
8f223b3e FCE |
6996 | if test "x$host_alias" = x; then |
6997 | ac_cv_host=$ac_cv_build | |
6998 | else | |
6999 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || | |
5d4aa1f5 | 7000 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 |
8ae7a94a | 7001 | fi |
8ae7a94a FCE |
7002 | |
7003 | fi | |
8f223b3e FCE |
7004 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 |
7005 | $as_echo "$ac_cv_host" >&6; } | |
7006 | case $ac_cv_host in | |
7007 | *-*-*) ;; | |
5d4aa1f5 | 7008 | *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; |
8f223b3e FCE |
7009 | esac |
7010 | host=$ac_cv_host | |
7011 | ac_save_IFS=$IFS; IFS='-' | |
7012 | set x $ac_cv_host | |
7013 | shift | |
7014 | host_cpu=$1 | |
7015 | host_vendor=$2 | |
7016 | shift; shift | |
7017 | # Remember, the first character of IFS is used to create $*, | |
7018 | # except with old shells: | |
7019 | host_os=$* | |
7020 | IFS=$ac_save_IFS | |
7021 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | |
7022 | ||
8ae7a94a | 7023 | |
8ae7a94a | 7024 | |
8f223b3e FCE |
7025 | # Check whether --with-gnu-ld was given. |
7026 | if test "${with_gnu_ld+set}" = set; then : | |
7027 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes | |
7028 | else | |
7029 | with_gnu_ld=no | |
8ae7a94a FCE |
7030 | fi |
7031 | ||
8f223b3e FCE |
7032 | # Prepare PATH_SEPARATOR. |
7033 | # The user is always right. | |
7034 | if test "${PATH_SEPARATOR+set}" != set; then | |
7035 | echo "#! /bin/sh" >conf$$.sh | |
7036 | echo "exit 0" >>conf$$.sh | |
7037 | chmod +x conf$$.sh | |
7038 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
7039 | PATH_SEPARATOR=';' | |
7040 | else | |
7041 | PATH_SEPARATOR=: | |
7042 | fi | |
7043 | rm -f conf$$.sh | |
7044 | fi | |
7045 | ac_prog=ld | |
7046 | if test "$GCC" = yes; then | |
7047 | # Check if gcc -print-prog-name=ld gives a path. | |
7048 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5 | |
7049 | $as_echo_n "checking for ld used by GCC... " >&6; } | |
7050 | case $host in | |
7051 | *-*-mingw*) | |
7052 | # gcc leaves a trailing carriage return which upsets mingw | |
7053 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | |
7054 | *) | |
7055 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | |
7056 | esac | |
7057 | case $ac_prog in | |
7058 | # Accept absolute paths. | |
7059 | [\\/]* | [A-Za-z]:[\\/]*) | |
7060 | re_direlt='/[^/][^/]*/\.\./' | |
7061 | # Canonicalize the path of ld | |
7062 | ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` | |
7063 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do | |
7064 | ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` | |
7065 | done | |
7066 | test -z "$LD" && LD="$ac_prog" | |
7067 | ;; | |
7068 | "") | |
7069 | # If it fails, then pretend we aren't using GCC. | |
7070 | ac_prog=ld | |
7071 | ;; | |
7072 | *) | |
7073 | # If it is relative, then search for the first ld in PATH. | |
7074 | with_gnu_ld=unknown | |
7075 | ;; | |
7076 | esac | |
7077 | elif test "$with_gnu_ld" = yes; then | |
7078 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 | |
7079 | $as_echo_n "checking for GNU ld... " >&6; } | |
7080 | else | |
7081 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 | |
7082 | $as_echo_n "checking for non-GNU ld... " >&6; } | |
7083 | fi | |
c3de29bd | 7084 | if ${acl_cv_path_LD+:} false; then : |
8f223b3e FCE |
7085 | $as_echo_n "(cached) " >&6 |
7086 | else | |
7087 | if test -z "$LD"; then | |
7088 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" | |
7089 | for ac_dir in $PATH; do | |
7090 | test -z "$ac_dir" && ac_dir=. | |
7091 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | |
7092 | acl_cv_path_LD="$ac_dir/$ac_prog" | |
7093 | # Check to see if the program is GNU ld. I'd rather use --version, | |
7094 | # but apparently some GNU ld's only accept -v. | |
7095 | # Break only if it was the GNU/non-GNU ld that we prefer. | |
7096 | case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in | |
7097 | *GNU* | *'with BFD'*) | |
7098 | test "$with_gnu_ld" != no && break ;; | |
7099 | *) | |
7100 | test "$with_gnu_ld" != yes && break ;; | |
7101 | esac | |
7102 | fi | |
7103 | done | |
7104 | IFS="$ac_save_ifs" | |
7105 | else | |
7106 | acl_cv_path_LD="$LD" # Let the user override the test with a path. | |
7107 | fi | |
8ae7a94a FCE |
7108 | fi |
7109 | ||
8f223b3e FCE |
7110 | LD="$acl_cv_path_LD" |
7111 | if test -n "$LD"; then | |
7112 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 | |
7113 | $as_echo "$LD" >&6; } | |
7114 | else | |
7115 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7116 | $as_echo "no" >&6; } | |
7117 | fi | |
5d4aa1f5 | 7118 | test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 |
8f223b3e FCE |
7119 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 |
7120 | $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } | |
c3de29bd | 7121 | if ${acl_cv_prog_gnu_ld+:} false; then : |
8f223b3e FCE |
7122 | $as_echo_n "(cached) " >&6 |
7123 | else | |
7124 | # I'd rather use --version here, but apparently some GNU ld's only accept -v. | |
7125 | case `$LD -v 2>&1 </dev/null` in | |
7126 | *GNU* | *'with BFD'*) | |
7127 | acl_cv_prog_gnu_ld=yes ;; | |
7128 | *) | |
7129 | acl_cv_prog_gnu_ld=no ;; | |
7130 | esac | |
7131 | fi | |
7132 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5 | |
7133 | $as_echo "$acl_cv_prog_gnu_ld" >&6; } | |
7134 | with_gnu_ld=$acl_cv_prog_gnu_ld | |
7fbd9d09 | 7135 | |
2f1a1aea | 7136 | |
2f1a1aea FCE |
7137 | |
7138 | ||
8f223b3e FCE |
7139 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5 |
7140 | $as_echo_n "checking for shared library run path origin... " >&6; } | |
c3de29bd | 7141 | if ${acl_cv_rpath+:} false; then : |
8f223b3e FCE |
7142 | $as_echo_n "(cached) " >&6 |
7143 | else | |
2f1a1aea | 7144 | |
8f223b3e FCE |
7145 | CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \ |
7146 | ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh | |
7147 | . ./conftest.sh | |
7148 | rm -f ./conftest.sh | |
7149 | acl_cv_rpath=done | |
7150 | ||
7151 | fi | |
7152 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5 | |
7153 | $as_echo "$acl_cv_rpath" >&6; } | |
7154 | wl="$acl_cv_wl" | |
7155 | acl_libext="$acl_cv_libext" | |
7156 | acl_shlibext="$acl_cv_shlibext" | |
7157 | acl_libname_spec="$acl_cv_libname_spec" | |
7158 | acl_library_names_spec="$acl_cv_library_names_spec" | |
7159 | acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec" | |
7160 | acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator" | |
7161 | acl_hardcode_direct="$acl_cv_hardcode_direct" | |
7162 | acl_hardcode_minus_L="$acl_cv_hardcode_minus_L" | |
7163 | # Check whether --enable-rpath was given. | |
7164 | if test "${enable_rpath+set}" = set; then : | |
7165 | enableval=$enable_rpath; : | |
2f1a1aea | 7166 | else |
8f223b3e | 7167 | enable_rpath=yes |
7fbd9d09 FCE |
7168 | fi |
7169 | ||
7170 | ||
7171 | ||
8f223b3e FCE |
7172 | |
7173 | acl_libdirstem=lib | |
7174 | acl_libdirstem2= | |
7175 | case "$host_os" in | |
7176 | solaris*) | |
7177 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5 | |
7178 | $as_echo_n "checking for 64-bit host... " >&6; } | |
c3de29bd | 7179 | if ${gl_cv_solaris_64bit+:} false; then : |
0710d850 | 7180 | $as_echo_n "(cached) " >&6 |
7fbd9d09 | 7181 | else |
8f223b3e FCE |
7182 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7183 | /* end confdefs.h. */ | |
7184 | ||
7185 | #ifdef _LP64 | |
7186 | sixtyfour bits | |
7187 | #endif | |
7188 | ||
7189 | _ACEOF | |
7190 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
7191 | $EGREP "sixtyfour bits" >/dev/null 2>&1; then : | |
7192 | gl_cv_solaris_64bit=yes | |
7193 | else | |
7194 | gl_cv_solaris_64bit=no | |
7195 | fi | |
7196 | rm -f conftest* | |
7197 | ||
7198 | ||
7199 | fi | |
7200 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5 | |
7201 | $as_echo "$gl_cv_solaris_64bit" >&6; } | |
7202 | if test $gl_cv_solaris_64bit = yes; then | |
7203 | acl_libdirstem=lib/64 | |
7204 | case "$host_cpu" in | |
7205 | sparc*) acl_libdirstem2=lib/sparcv9 ;; | |
7206 | i*86 | x86_64) acl_libdirstem2=lib/amd64 ;; | |
7207 | esac | |
7208 | fi | |
7209 | ;; | |
7210 | *) | |
7211 | searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'` | |
7212 | if test -n "$searchpath"; then | |
7213 | acl_save_IFS="${IFS= }"; IFS=":" | |
7214 | for searchdir in $searchpath; do | |
7215 | if test -d "$searchdir"; then | |
7216 | case "$searchdir" in | |
7217 | */lib64/ | */lib64 ) acl_libdirstem=lib64 ;; | |
7218 | */../ | */.. ) | |
7219 | # Better ignore directories of this form. They are misleading. | |
7220 | ;; | |
7221 | *) searchdir=`cd "$searchdir" && pwd` | |
7222 | case "$searchdir" in | |
7223 | */lib64 ) acl_libdirstem=lib64 ;; | |
7224 | esac ;; | |
7225 | esac | |
7226 | fi | |
7227 | done | |
7228 | IFS="$acl_save_IFS" | |
7229 | fi | |
7230 | ;; | |
7231 | esac | |
7232 | test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem" | |
7233 | ||
7234 | ||
7235 | ||
7236 | ||
7237 | ||
7238 | ||
7239 | ||
7240 | ||
7241 | ||
7242 | ||
7243 | ||
7244 | ||
7245 | use_additional=yes | |
7246 | ||
7247 | acl_save_prefix="$prefix" | |
7248 | prefix="$acl_final_prefix" | |
7249 | acl_save_exec_prefix="$exec_prefix" | |
7250 | exec_prefix="$acl_final_exec_prefix" | |
7251 | ||
7252 | eval additional_includedir=\"$includedir\" | |
7253 | eval additional_libdir=\"$libdir\" | |
7254 | ||
7255 | exec_prefix="$acl_save_exec_prefix" | |
7256 | prefix="$acl_save_prefix" | |
7257 | ||
7258 | ||
7259 | # Check whether --with-libiconv-prefix was given. | |
7260 | if test "${with_libiconv_prefix+set}" = set; then : | |
7261 | withval=$with_libiconv_prefix; | |
7262 | if test "X$withval" = "Xno"; then | |
7263 | use_additional=no | |
7264 | else | |
7265 | if test "X$withval" = "X"; then | |
7266 | ||
7267 | acl_save_prefix="$prefix" | |
7268 | prefix="$acl_final_prefix" | |
7269 | acl_save_exec_prefix="$exec_prefix" | |
7270 | exec_prefix="$acl_final_exec_prefix" | |
7271 | ||
7272 | eval additional_includedir=\"$includedir\" | |
7273 | eval additional_libdir=\"$libdir\" | |
7274 | ||
7275 | exec_prefix="$acl_save_exec_prefix" | |
7276 | prefix="$acl_save_prefix" | |
7277 | ||
7278 | else | |
7279 | additional_includedir="$withval/include" | |
7280 | additional_libdir="$withval/$acl_libdirstem" | |
7281 | if test "$acl_libdirstem2" != "$acl_libdirstem" \ | |
7282 | && ! test -d "$withval/$acl_libdirstem"; then | |
7283 | additional_libdir="$withval/$acl_libdirstem2" | |
7284 | fi | |
7285 | fi | |
7fbd9d09 | 7286 | fi |
7fbd9d09 | 7287 | |
8f223b3e FCE |
7288 | fi |
7289 | ||
7290 | LIBICONV= | |
7291 | LTLIBICONV= | |
7292 | INCICONV= | |
7293 | LIBICONV_PREFIX= | |
7294 | HAVE_LIBICONV= | |
7295 | rpathdirs= | |
7296 | ltrpathdirs= | |
7297 | names_already_handled= | |
7298 | names_next_round='iconv ' | |
7299 | while test -n "$names_next_round"; do | |
7300 | names_this_round="$names_next_round" | |
7301 | names_next_round= | |
7302 | for name in $names_this_round; do | |
7303 | already_handled= | |
7304 | for n in $names_already_handled; do | |
7305 | if test "$n" = "$name"; then | |
7306 | already_handled=yes | |
7307 | break | |
7308 | fi | |
7309 | done | |
7310 | if test -z "$already_handled"; then | |
7311 | names_already_handled="$names_already_handled $name" | |
7312 | uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` | |
7313 | eval value=\"\$HAVE_LIB$uppername\" | |
7314 | if test -n "$value"; then | |
7315 | if test "$value" = yes; then | |
7316 | eval value=\"\$LIB$uppername\" | |
7317 | test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value" | |
7318 | eval value=\"\$LTLIB$uppername\" | |
7319 | test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value" | |
7320 | else | |
7321 | : | |
7322 | fi | |
7323 | else | |
7324 | found_dir= | |
7325 | found_la= | |
7326 | found_so= | |
7327 | found_a= | |
7328 | eval libname=\"$acl_libname_spec\" # typically: libname=lib$name | |
7329 | if test -n "$acl_shlibext"; then | |
7330 | shrext=".$acl_shlibext" # typically: shrext=.so | |
7331 | else | |
7332 | shrext= | |
7333 | fi | |
7334 | if test $use_additional = yes; then | |
7335 | dir="$additional_libdir" | |
7336 | if test -n "$acl_shlibext"; then | |
7337 | if test -f "$dir/$libname$shrext"; then | |
7338 | found_dir="$dir" | |
7339 | found_so="$dir/$libname$shrext" | |
7340 | else | |
7341 | if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then | |
7342 | ver=`(cd "$dir" && \ | |
7343 | for f in "$libname$shrext".*; do echo "$f"; done \ | |
7344 | | sed -e "s,^$libname$shrext\\\\.,," \ | |
7345 | | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ | |
7346 | | sed 1q ) 2>/dev/null` | |
7347 | if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then | |
7348 | found_dir="$dir" | |
7349 | found_so="$dir/$libname$shrext.$ver" | |
7350 | fi | |
7351 | else | |
7352 | eval library_names=\"$acl_library_names_spec\" | |
7353 | for f in $library_names; do | |
7354 | if test -f "$dir/$f"; then | |
7355 | found_dir="$dir" | |
7356 | found_so="$dir/$f" | |
7357 | break | |
7358 | fi | |
7359 | done | |
7360 | fi | |
7361 | fi | |
7362 | fi | |
7363 | if test "X$found_dir" = "X"; then | |
7364 | if test -f "$dir/$libname.$acl_libext"; then | |
7365 | found_dir="$dir" | |
7366 | found_a="$dir/$libname.$acl_libext" | |
7367 | fi | |
7368 | fi | |
7369 | if test "X$found_dir" != "X"; then | |
7370 | if test -f "$dir/$libname.la"; then | |
7371 | found_la="$dir/$libname.la" | |
7372 | fi | |
7373 | fi | |
7374 | fi | |
7375 | if test "X$found_dir" = "X"; then | |
7376 | for x in $LDFLAGS $LTLIBICONV; do | |
7377 | ||
7378 | acl_save_prefix="$prefix" | |
7379 | prefix="$acl_final_prefix" | |
7380 | acl_save_exec_prefix="$exec_prefix" | |
7381 | exec_prefix="$acl_final_exec_prefix" | |
7382 | eval x=\"$x\" | |
7383 | exec_prefix="$acl_save_exec_prefix" | |
7384 | prefix="$acl_save_prefix" | |
7385 | ||
7386 | case "$x" in | |
7387 | -L*) | |
7388 | dir=`echo "X$x" | sed -e 's/^X-L//'` | |
7389 | if test -n "$acl_shlibext"; then | |
7390 | if test -f "$dir/$libname$shrext"; then | |
7391 | found_dir="$dir" | |
7392 | found_so="$dir/$libname$shrext" | |
7393 | else | |
7394 | if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then | |
7395 | ver=`(cd "$dir" && \ | |
7396 | for f in "$libname$shrext".*; do echo "$f"; done \ | |
7397 | | sed -e "s,^$libname$shrext\\\\.,," \ | |
7398 | | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ | |
7399 | | sed 1q ) 2>/dev/null` | |
7400 | if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then | |
7401 | found_dir="$dir" | |
7402 | found_so="$dir/$libname$shrext.$ver" | |
7403 | fi | |
7404 | else | |
7405 | eval library_names=\"$acl_library_names_spec\" | |
7406 | for f in $library_names; do | |
7407 | if test -f "$dir/$f"; then | |
7408 | found_dir="$dir" | |
7409 | found_so="$dir/$f" | |
7410 | break | |
7411 | fi | |
7412 | done | |
7413 | fi | |
7414 | fi | |
7415 | fi | |
7416 | if test "X$found_dir" = "X"; then | |
7417 | if test -f "$dir/$libname.$acl_libext"; then | |
7418 | found_dir="$dir" | |
7419 | found_a="$dir/$libname.$acl_libext" | |
7420 | fi | |
7421 | fi | |
7422 | if test "X$found_dir" != "X"; then | |
7423 | if test -f "$dir/$libname.la"; then | |
7424 | found_la="$dir/$libname.la" | |
7425 | fi | |
7426 | fi | |
7427 | ;; | |
7428 | esac | |
7429 | if test "X$found_dir" != "X"; then | |
7430 | break | |
7431 | fi | |
7432 | done | |
7433 | fi | |
7434 | if test "X$found_dir" != "X"; then | |
7435 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name" | |
7436 | if test "X$found_so" != "X"; then | |
7437 | if test "$enable_rpath" = no \ | |
7438 | || test "X$found_dir" = "X/usr/$acl_libdirstem" \ | |
7439 | || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then | |
7440 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" | |
7441 | else | |
7442 | haveit= | |
7443 | for x in $ltrpathdirs; do | |
7444 | if test "X$x" = "X$found_dir"; then | |
7445 | haveit=yes | |
7446 | break | |
7447 | fi | |
7448 | done | |
7449 | if test -z "$haveit"; then | |
7450 | ltrpathdirs="$ltrpathdirs $found_dir" | |
7451 | fi | |
7452 | if test "$acl_hardcode_direct" = yes; then | |
7453 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" | |
7454 | else | |
7455 | if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then | |
7456 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" | |
7457 | haveit= | |
7458 | for x in $rpathdirs; do | |
7459 | if test "X$x" = "X$found_dir"; then | |
7460 | haveit=yes | |
7461 | break | |
7462 | fi | |
7463 | done | |
7464 | if test -z "$haveit"; then | |
7465 | rpathdirs="$rpathdirs $found_dir" | |
7466 | fi | |
7467 | else | |
7468 | haveit= | |
7469 | for x in $LDFLAGS $LIBICONV; do | |
7470 | ||
7471 | acl_save_prefix="$prefix" | |
7472 | prefix="$acl_final_prefix" | |
7473 | acl_save_exec_prefix="$exec_prefix" | |
7474 | exec_prefix="$acl_final_exec_prefix" | |
7475 | eval x=\"$x\" | |
7476 | exec_prefix="$acl_save_exec_prefix" | |
7477 | prefix="$acl_save_prefix" | |
7478 | ||
7479 | if test "X$x" = "X-L$found_dir"; then | |
7480 | haveit=yes | |
7481 | break | |
7482 | fi | |
7483 | done | |
7484 | if test -z "$haveit"; then | |
7485 | LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir" | |
7486 | fi | |
7487 | if test "$acl_hardcode_minus_L" != no; then | |
7488 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" | |
7489 | else | |
7490 | LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" | |
7491 | fi | |
7492 | fi | |
7493 | fi | |
7494 | fi | |
7495 | else | |
7496 | if test "X$found_a" != "X"; then | |
7497 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a" | |
7498 | else | |
7499 | LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name" | |
7500 | fi | |
7501 | fi | |
7502 | additional_includedir= | |
7503 | case "$found_dir" in | |
7504 | */$acl_libdirstem | */$acl_libdirstem/) | |
7505 | basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'` | |
7506 | if test "$name" = 'iconv'; then | |
7507 | LIBICONV_PREFIX="$basedir" | |
7508 | fi | |
7509 | additional_includedir="$basedir/include" | |
7510 | ;; | |
7511 | */$acl_libdirstem2 | */$acl_libdirstem2/) | |
7512 | basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'` | |
7513 | if test "$name" = 'iconv'; then | |
7514 | LIBICONV_PREFIX="$basedir" | |
7515 | fi | |
7516 | additional_includedir="$basedir/include" | |
7517 | ;; | |
7518 | esac | |
7519 | if test "X$additional_includedir" != "X"; then | |
7520 | if test "X$additional_includedir" != "X/usr/include"; then | |
7521 | haveit= | |
7522 | if test "X$additional_includedir" = "X/usr/local/include"; then | |
7523 | if test -n "$GCC"; then | |
7524 | case $host_os in | |
7525 | linux* | gnu* | k*bsd*-gnu) haveit=yes;; | |
7526 | esac | |
7527 | fi | |
7528 | fi | |
7529 | if test -z "$haveit"; then | |
7530 | for x in $CPPFLAGS $INCICONV; do | |
7531 | ||
7532 | acl_save_prefix="$prefix" | |
7533 | prefix="$acl_final_prefix" | |
7534 | acl_save_exec_prefix="$exec_prefix" | |
7535 | exec_prefix="$acl_final_exec_prefix" | |
7536 | eval x=\"$x\" | |
7537 | exec_prefix="$acl_save_exec_prefix" | |
7538 | prefix="$acl_save_prefix" | |
7539 | ||
7540 | if test "X$x" = "X-I$additional_includedir"; then | |
7541 | haveit=yes | |
7542 | break | |
7543 | fi | |
7544 | done | |
7545 | if test -z "$haveit"; then | |
7546 | if test -d "$additional_includedir"; then | |
7547 | INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir" | |
7548 | fi | |
7549 | fi | |
7550 | fi | |
7551 | fi | |
7552 | fi | |
7553 | if test -n "$found_la"; then | |
7554 | save_libdir="$libdir" | |
7555 | case "$found_la" in | |
7556 | */* | *\\*) . "$found_la" ;; | |
7557 | *) . "./$found_la" ;; | |
7558 | esac | |
7559 | libdir="$save_libdir" | |
7560 | for dep in $dependency_libs; do | |
7561 | case "$dep" in | |
7562 | -L*) | |
7563 | additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` | |
7564 | if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \ | |
7565 | && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then | |
7566 | haveit= | |
7567 | if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \ | |
7568 | || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then | |
7569 | if test -n "$GCC"; then | |
7570 | case $host_os in | |
7571 | linux* | gnu* | k*bsd*-gnu) haveit=yes;; | |
7572 | esac | |
7573 | fi | |
7574 | fi | |
7575 | if test -z "$haveit"; then | |
7576 | haveit= | |
7577 | for x in $LDFLAGS $LIBICONV; do | |
7578 | ||
7579 | acl_save_prefix="$prefix" | |
7580 | prefix="$acl_final_prefix" | |
7581 | acl_save_exec_prefix="$exec_prefix" | |
7582 | exec_prefix="$acl_final_exec_prefix" | |
7583 | eval x=\"$x\" | |
7584 | exec_prefix="$acl_save_exec_prefix" | |
7585 | prefix="$acl_save_prefix" | |
7586 | ||
7587 | if test "X$x" = "X-L$additional_libdir"; then | |
7588 | haveit=yes | |
7589 | break | |
7590 | fi | |
7591 | done | |
7592 | if test -z "$haveit"; then | |
7593 | if test -d "$additional_libdir"; then | |
7594 | LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir" | |
7595 | fi | |
7596 | fi | |
7597 | haveit= | |
7598 | for x in $LDFLAGS $LTLIBICONV; do | |
7599 | ||
7600 | acl_save_prefix="$prefix" | |
7601 | prefix="$acl_final_prefix" | |
7602 | acl_save_exec_prefix="$exec_prefix" | |
7603 | exec_prefix="$acl_final_exec_prefix" | |
7604 | eval x=\"$x\" | |
7605 | exec_prefix="$acl_save_exec_prefix" | |
7606 | prefix="$acl_save_prefix" | |
7607 | ||
7608 | if test "X$x" = "X-L$additional_libdir"; then | |
7609 | haveit=yes | |
7610 | break | |
7611 | fi | |
7612 | done | |
7613 | if test -z "$haveit"; then | |
7614 | if test -d "$additional_libdir"; then | |
7615 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir" | |
7616 | fi | |
7617 | fi | |
7618 | fi | |
7619 | fi | |
7620 | ;; | |
7621 | -R*) | |
7622 | dir=`echo "X$dep" | sed -e 's/^X-R//'` | |
7623 | if test "$enable_rpath" != no; then | |
7624 | haveit= | |
7625 | for x in $rpathdirs; do | |
7626 | if test "X$x" = "X$dir"; then | |
7627 | haveit=yes | |
7628 | break | |
7629 | fi | |
7630 | done | |
7631 | if test -z "$haveit"; then | |
7632 | rpathdirs="$rpathdirs $dir" | |
7633 | fi | |
7634 | haveit= | |
7635 | for x in $ltrpathdirs; do | |
7636 | if test "X$x" = "X$dir"; then | |
7637 | haveit=yes | |
7638 | break | |
7639 | fi | |
7640 | done | |
7641 | if test -z "$haveit"; then | |
7642 | ltrpathdirs="$ltrpathdirs $dir" | |
7643 | fi | |
7644 | fi | |
7645 | ;; | |
7646 | -l*) | |
7647 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` | |
7648 | ;; | |
7649 | *.la) | |
7650 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` | |
7651 | ;; | |
7652 | *) | |
7653 | LIBICONV="${LIBICONV}${LIBICONV:+ }$dep" | |
7654 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep" | |
7655 | ;; | |
7656 | esac | |
7657 | done | |
7658 | fi | |
7659 | else | |
7660 | LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" | |
7661 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name" | |
7662 | fi | |
7663 | fi | |
7664 | fi | |
0710d850 | 7665 | done |
7fbd9d09 | 7666 | done |
8f223b3e FCE |
7667 | if test "X$rpathdirs" != "X"; then |
7668 | if test -n "$acl_hardcode_libdir_separator"; then | |
7669 | alldirs= | |
7670 | for found_dir in $rpathdirs; do | |
7671 | alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir" | |
7672 | done | |
7673 | acl_save_libdir="$libdir" | |
7674 | libdir="$alldirs" | |
7675 | eval flag=\"$acl_hardcode_libdir_flag_spec\" | |
7676 | libdir="$acl_save_libdir" | |
7677 | LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" | |
7678 | else | |
7679 | for found_dir in $rpathdirs; do | |
7680 | acl_save_libdir="$libdir" | |
7681 | libdir="$found_dir" | |
7682 | eval flag=\"$acl_hardcode_libdir_flag_spec\" | |
7683 | libdir="$acl_save_libdir" | |
7684 | LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" | |
7685 | done | |
7686 | fi | |
7687 | fi | |
7688 | if test "X$ltrpathdirs" != "X"; then | |
7689 | for found_dir in $ltrpathdirs; do | |
7690 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir" | |
7691 | done | |
0710d850 | 7692 | fi |
70d28673 | 7693 | |
7fbd9d09 | 7694 | |
70d28673 | 7695 | |
8f223b3e FCE |
7696 | |
7697 | ||
7698 | ||
7699 | ||
7700 | ||
7701 | ||
7702 | ||
7703 | ||
7704 | ||
7705 | ||
7706 | ||
7707 | ||
7708 | ||
7709 | ||
7710 | ||
7711 | ||
7712 | ||
7713 | ||
7714 | ||
7715 | ||
7716 | ||
7717 | ||
7718 | ||
7719 | ||
7720 | ||
8f223b3e FCE |
7721 | |
7722 | ||
7723 | ||
7724 | ||
7725 | ||
7726 | ||
7727 | LIBINTL= | |
7728 | LTLIBINTL= | |
7729 | POSUB= | |
7730 | ||
7731 | case " $gt_needs " in | |
7732 | *" need-formatstring-macros "*) gt_api_version=3 ;; | |
7733 | *" need-ngettext "*) gt_api_version=2 ;; | |
7734 | *) gt_api_version=1 ;; | |
7735 | esac | |
7736 | gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc" | |
7737 | gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl" | |
7738 | ||
7739 | if test "$USE_NLS" = "yes"; then | |
7740 | gt_use_preinstalled_gnugettext=no | |
7741 | ||
7742 | ||
7743 | if test $gt_api_version -ge 3; then | |
7744 | gt_revision_test_code=' | |
7745 | #ifndef __GNU_GETTEXT_SUPPORTED_REVISION | |
7746 | #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1) | |
7747 | #endif | |
7748 | typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1]; | |
7749 | ' | |
7750 | else | |
7751 | gt_revision_test_code= | |
7752 | fi | |
7753 | if test $gt_api_version -ge 2; then | |
7754 | gt_expression_test_code=' + * ngettext ("", "", 0)' | |
7755 | else | |
7756 | gt_expression_test_code= | |
7757 | fi | |
7758 | ||
7759 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5 | |
7760 | $as_echo_n "checking for GNU gettext in libc... " >&6; } | |
c3de29bd | 7761 | if eval \${$gt_func_gnugettext_libc+:} false; then : |
0710d850 | 7762 | $as_echo_n "(cached) " >&6 |
2f1a1aea | 7763 | else |
1ef0423a | 7764 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
2f1a1aea | 7765 | /* end confdefs.h. */ |
8f223b3e FCE |
7766 | #include <libintl.h> |
7767 | $gt_revision_test_code | |
7768 | extern int _nl_msg_cat_cntr; | |
7769 | extern int *_nl_domain_bindings; | |
2f1a1aea FCE |
7770 | int |
7771 | main () | |
7772 | { | |
8f223b3e FCE |
7773 | bindtextdomain ("", ""); |
7774 | return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings | |
2f1a1aea FCE |
7775 | ; |
7776 | return 0; | |
7777 | } | |
7778 | _ACEOF | |
8f223b3e FCE |
7779 | if ac_fn_c_try_link "$LINENO"; then : |
7780 | eval "$gt_func_gnugettext_libc=yes" | |
2f1a1aea | 7781 | else |
8f223b3e | 7782 | eval "$gt_func_gnugettext_libc=no" |
2f1a1aea | 7783 | fi |
8f223b3e FCE |
7784 | rm -f core conftest.err conftest.$ac_objext \ |
7785 | conftest$ac_exeext conftest.$ac_ext | |
7786 | fi | |
7787 | eval ac_res=\$$gt_func_gnugettext_libc | |
7788 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
7789 | $as_echo "$ac_res" >&6; } | |
2f1a1aea | 7790 | |
8f223b3e | 7791 | if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then |
2f1a1aea | 7792 | |
1ef0423a | 7793 | |
8f223b3e FCE |
7794 | |
7795 | ||
7796 | ||
7797 | am_save_CPPFLAGS="$CPPFLAGS" | |
7798 | ||
7799 | for element in $INCICONV; do | |
7800 | haveit= | |
7801 | for x in $CPPFLAGS; do | |
7802 | ||
7803 | acl_save_prefix="$prefix" | |
7804 | prefix="$acl_final_prefix" | |
7805 | acl_save_exec_prefix="$exec_prefix" | |
7806 | exec_prefix="$acl_final_exec_prefix" | |
7807 | eval x=\"$x\" | |
7808 | exec_prefix="$acl_save_exec_prefix" | |
7809 | prefix="$acl_save_prefix" | |
7810 | ||
7811 | if test "X$x" = "X$element"; then | |
7812 | haveit=yes | |
7813 | break | |
7814 | fi | |
7815 | done | |
7816 | if test -z "$haveit"; then | |
7817 | CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" | |
7818 | fi | |
7819 | done | |
7820 | ||
7821 | ||
7822 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5 | |
7823 | $as_echo_n "checking for iconv... " >&6; } | |
c3de29bd | 7824 | if ${am_cv_func_iconv+:} false; then : |
8f223b3e | 7825 | $as_echo_n "(cached) " >&6 |
2f1a1aea | 7826 | else |
8f223b3e FCE |
7827 | |
7828 | am_cv_func_iconv="no, consider installing GNU libiconv" | |
7829 | am_cv_lib_iconv=no | |
7830 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7831 | /* end confdefs.h. */ | |
7832 | #include <stdlib.h> | |
7833 | #include <iconv.h> | |
7834 | int | |
7835 | main () | |
7836 | { | |
7837 | iconv_t cd = iconv_open("",""); | |
7838 | iconv(cd,NULL,NULL,NULL,NULL); | |
7839 | iconv_close(cd); | |
7840 | ; | |
7841 | return 0; | |
7842 | } | |
7843 | _ACEOF | |
7844 | if ac_fn_c_try_link "$LINENO"; then : | |
7845 | am_cv_func_iconv=yes | |
2f1a1aea | 7846 | fi |
8f223b3e FCE |
7847 | rm -f core conftest.err conftest.$ac_objext \ |
7848 | conftest$ac_exeext conftest.$ac_ext | |
7849 | if test "$am_cv_func_iconv" != yes; then | |
7850 | am_save_LIBS="$LIBS" | |
7851 | LIBS="$LIBS $LIBICONV" | |
7852 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7853 | /* end confdefs.h. */ | |
7854 | #include <stdlib.h> | |
7855 | #include <iconv.h> | |
7856 | int | |
7857 | main () | |
7858 | { | |
7859 | iconv_t cd = iconv_open("",""); | |
7860 | iconv(cd,NULL,NULL,NULL,NULL); | |
7861 | iconv_close(cd); | |
7862 | ; | |
7863 | return 0; | |
7864 | } | |
7865 | _ACEOF | |
7866 | if ac_fn_c_try_link "$LINENO"; then : | |
7867 | am_cv_lib_iconv=yes | |
7868 | am_cv_func_iconv=yes | |
7869 | fi | |
7870 | rm -f core conftest.err conftest.$ac_objext \ | |
7871 | conftest$ac_exeext conftest.$ac_ext | |
7872 | LIBS="$am_save_LIBS" | |
7873 | fi | |
2f1a1aea FCE |
7874 | |
7875 | fi | |
8f223b3e FCE |
7876 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5 |
7877 | $as_echo "$am_cv_func_iconv" >&6; } | |
7878 | if test "$am_cv_func_iconv" = yes; then | |
7879 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5 | |
7880 | $as_echo_n "checking for working iconv... " >&6; } | |
c3de29bd | 7881 | if ${am_cv_func_iconv_works+:} false; then : |
8f223b3e FCE |
7882 | $as_echo_n "(cached) " >&6 |
7883 | else | |
2f1a1aea | 7884 | |
8f223b3e FCE |
7885 | am_save_LIBS="$LIBS" |
7886 | if test $am_cv_lib_iconv = yes; then | |
7887 | LIBS="$LIBS $LIBICONV" | |
7888 | fi | |
7889 | if test "$cross_compiling" = yes; then : | |
7890 | case "$host_os" in | |
7891 | aix* | hpux*) am_cv_func_iconv_works="guessing no" ;; | |
7892 | *) am_cv_func_iconv_works="guessing yes" ;; | |
7893 | esac | |
7894 | else | |
1ef0423a | 7895 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
2f1a1aea | 7896 | /* end confdefs.h. */ |
2f1a1aea | 7897 | |
8f223b3e FCE |
7898 | #include <iconv.h> |
7899 | #include <string.h> | |
7900 | int main () | |
7901 | { | |
7902 | /* Test against AIX 5.1 bug: Failures are not distinguishable from successful | |
7903 | returns. */ | |
7904 | { | |
7905 | iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8"); | |
7906 | if (cd_utf8_to_88591 != (iconv_t)(-1)) | |
7907 | { | |
7908 | static const char input[] = "\342\202\254"; /* EURO SIGN */ | |
7909 | char buf[10]; | |
7910 | const char *inptr = input; | |
7911 | size_t inbytesleft = strlen (input); | |
7912 | char *outptr = buf; | |
7913 | size_t outbytesleft = sizeof (buf); | |
7914 | size_t res = iconv (cd_utf8_to_88591, | |
7915 | (char **) &inptr, &inbytesleft, | |
7916 | &outptr, &outbytesleft); | |
7917 | if (res == 0) | |
7918 | return 1; | |
7919 | } | |
7920 | } | |
7921 | /* Test against Solaris 10 bug: Failures are not distinguishable from | |
7922 | successful returns. */ | |
7923 | { | |
7924 | iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646"); | |
7925 | if (cd_ascii_to_88591 != (iconv_t)(-1)) | |
7926 | { | |
7927 | static const char input[] = "\263"; | |
7928 | char buf[10]; | |
7929 | const char *inptr = input; | |
7930 | size_t inbytesleft = strlen (input); | |
7931 | char *outptr = buf; | |
7932 | size_t outbytesleft = sizeof (buf); | |
7933 | size_t res = iconv (cd_ascii_to_88591, | |
7934 | (char **) &inptr, &inbytesleft, | |
7935 | &outptr, &outbytesleft); | |
7936 | if (res == 0) | |
7937 | return 1; | |
7938 | } | |
7939 | } | |
7940 | #if 0 /* This bug could be worked around by the caller. */ | |
7941 | /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */ | |
7942 | { | |
7943 | iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591"); | |
7944 | if (cd_88591_to_utf8 != (iconv_t)(-1)) | |
7945 | { | |
7946 | static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337"; | |
7947 | char buf[50]; | |
7948 | const char *inptr = input; | |
7949 | size_t inbytesleft = strlen (input); | |
7950 | char *outptr = buf; | |
7951 | size_t outbytesleft = sizeof (buf); | |
7952 | size_t res = iconv (cd_88591_to_utf8, | |
7953 | (char **) &inptr, &inbytesleft, | |
7954 | &outptr, &outbytesleft); | |
7955 | if ((int)res > 0) | |
7956 | return 1; | |
7957 | } | |
7958 | } | |
7959 | #endif | |
7960 | /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is | |
7961 | provided. */ | |
7962 | if (/* Try standardized names. */ | |
7963 | iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1) | |
7964 | /* Try IRIX, OSF/1 names. */ | |
7965 | && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1) | |
7966 | /* Try AIX names. */ | |
7967 | && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1) | |
7968 | /* Try HP-UX names. */ | |
7969 | && iconv_open ("utf8", "eucJP") == (iconv_t)(-1)) | |
7970 | return 1; | |
7971 | return 0; | |
7972 | } | |
2f1a1aea | 7973 | _ACEOF |
8f223b3e FCE |
7974 | if ac_fn_c_try_run "$LINENO"; then : |
7975 | am_cv_func_iconv_works=yes | |
2f1a1aea | 7976 | else |
8f223b3e | 7977 | am_cv_func_iconv_works=no |
2f1a1aea | 7978 | fi |
8f223b3e FCE |
7979 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
7980 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
7981 | fi | |
7982 | ||
7983 | LIBS="$am_save_LIBS" | |
2f1a1aea FCE |
7984 | |
7985 | fi | |
8f223b3e FCE |
7986 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5 |
7987 | $as_echo "$am_cv_func_iconv_works" >&6; } | |
7988 | case "$am_cv_func_iconv_works" in | |
7989 | *no) am_func_iconv=no am_cv_lib_iconv=no ;; | |
7990 | *) am_func_iconv=yes ;; | |
7991 | esac | |
7992 | else | |
7993 | am_func_iconv=no am_cv_lib_iconv=no | |
7994 | fi | |
7995 | if test "$am_func_iconv" = yes; then | |
2f1a1aea | 7996 | |
8f223b3e FCE |
7997 | $as_echo "#define HAVE_ICONV 1" >>confdefs.h |
7998 | ||
7999 | fi | |
8000 | if test "$am_cv_lib_iconv" = yes; then | |
8001 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5 | |
8002 | $as_echo_n "checking how to link with libiconv... " >&6; } | |
8003 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5 | |
8004 | $as_echo "$LIBICONV" >&6; } | |
8005 | else | |
8006 | CPPFLAGS="$am_save_CPPFLAGS" | |
8007 | LIBICONV= | |
8008 | LTLIBICONV= | |
8009 | fi | |
8010 | ||
8011 | ||
8012 | ||
8013 | ||
8014 | ||
8015 | ||
8016 | ||
8017 | ||
8018 | ||
8019 | ||
8020 | ||
8021 | use_additional=yes | |
8022 | ||
8023 | acl_save_prefix="$prefix" | |
8024 | prefix="$acl_final_prefix" | |
8025 | acl_save_exec_prefix="$exec_prefix" | |
8026 | exec_prefix="$acl_final_exec_prefix" | |
8027 | ||
8028 | eval additional_includedir=\"$includedir\" | |
8029 | eval additional_libdir=\"$libdir\" | |
8030 | ||
8031 | exec_prefix="$acl_save_exec_prefix" | |
8032 | prefix="$acl_save_prefix" | |
8033 | ||
8034 | ||
8035 | # Check whether --with-libintl-prefix was given. | |
8036 | if test "${with_libintl_prefix+set}" = set; then : | |
8037 | withval=$with_libintl_prefix; | |
8038 | if test "X$withval" = "Xno"; then | |
8039 | use_additional=no | |
8040 | else | |
8041 | if test "X$withval" = "X"; then | |
8042 | ||
8043 | acl_save_prefix="$prefix" | |
8044 | prefix="$acl_final_prefix" | |
8045 | acl_save_exec_prefix="$exec_prefix" | |
8046 | exec_prefix="$acl_final_exec_prefix" | |
8047 | ||
8048 | eval additional_includedir=\"$includedir\" | |
8049 | eval additional_libdir=\"$libdir\" | |
8050 | ||
8051 | exec_prefix="$acl_save_exec_prefix" | |
8052 | prefix="$acl_save_prefix" | |
8053 | ||
8054 | else | |
8055 | additional_includedir="$withval/include" | |
8056 | additional_libdir="$withval/$acl_libdirstem" | |
8057 | if test "$acl_libdirstem2" != "$acl_libdirstem" \ | |
8058 | && ! test -d "$withval/$acl_libdirstem"; then | |
8059 | additional_libdir="$withval/$acl_libdirstem2" | |
8060 | fi | |
8061 | fi | |
8062 | fi | |
8063 | ||
8064 | fi | |
8065 | ||
8066 | LIBINTL= | |
8067 | LTLIBINTL= | |
8068 | INCINTL= | |
8069 | LIBINTL_PREFIX= | |
8070 | HAVE_LIBINTL= | |
8071 | rpathdirs= | |
8072 | ltrpathdirs= | |
8073 | names_already_handled= | |
8074 | names_next_round='intl ' | |
8075 | while test -n "$names_next_round"; do | |
8076 | names_this_round="$names_next_round" | |
8077 | names_next_round= | |
8078 | for name in $names_this_round; do | |
8079 | already_handled= | |
8080 | for n in $names_already_handled; do | |
8081 | if test "$n" = "$name"; then | |
8082 | already_handled=yes | |
8083 | break | |
8084 | fi | |
8085 | done | |
8086 | if test -z "$already_handled"; then | |
8087 | names_already_handled="$names_already_handled $name" | |
8088 | uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` | |
8089 | eval value=\"\$HAVE_LIB$uppername\" | |
8090 | if test -n "$value"; then | |
8091 | if test "$value" = yes; then | |
8092 | eval value=\"\$LIB$uppername\" | |
8093 | test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value" | |
8094 | eval value=\"\$LTLIB$uppername\" | |
8095 | test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value" | |
8096 | else | |
8097 | : | |
8098 | fi | |
8099 | else | |
8100 | found_dir= | |
8101 | found_la= | |
8102 | found_so= | |
8103 | found_a= | |
8104 | eval libname=\"$acl_libname_spec\" # typically: libname=lib$name | |
8105 | if test -n "$acl_shlibext"; then | |
8106 | shrext=".$acl_shlibext" # typically: shrext=.so | |
8107 | else | |
8108 | shrext= | |
8109 | fi | |
8110 | if test $use_additional = yes; then | |
8111 | dir="$additional_libdir" | |
8112 | if test -n "$acl_shlibext"; then | |
8113 | if test -f "$dir/$libname$shrext"; then | |
8114 | found_dir="$dir" | |
8115 | found_so="$dir/$libname$shrext" | |
8116 | else | |
8117 | if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then | |
8118 | ver=`(cd "$dir" && \ | |
8119 | for f in "$libname$shrext".*; do echo "$f"; done \ | |
8120 | | sed -e "s,^$libname$shrext\\\\.,," \ | |
8121 | | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ | |
8122 | | sed 1q ) 2>/dev/null` | |
8123 | if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then | |
8124 | found_dir="$dir" | |
8125 | found_so="$dir/$libname$shrext.$ver" | |
8126 | fi | |
8127 | else | |
8128 | eval library_names=\"$acl_library_names_spec\" | |
8129 | for f in $library_names; do | |
8130 | if test -f "$dir/$f"; then | |
8131 | found_dir="$dir" | |
8132 | found_so="$dir/$f" | |
8133 | break | |
8134 | fi | |
8135 | done | |
8136 | fi | |
8137 | fi | |
8138 | fi | |
8139 | if test "X$found_dir" = "X"; then | |
8140 | if test -f "$dir/$libname.$acl_libext"; then | |
8141 | found_dir="$dir" | |
8142 | found_a="$dir/$libname.$acl_libext" | |
8143 | fi | |
8144 | fi | |
8145 | if test "X$found_dir" != "X"; then | |
8146 | if test -f "$dir/$libname.la"; then | |
8147 | found_la="$dir/$libname.la" | |
8148 | fi | |
8149 | fi | |
8150 | fi | |
8151 | if test "X$found_dir" = "X"; then | |
8152 | for x in $LDFLAGS $LTLIBINTL; do | |
8153 | ||
8154 | acl_save_prefix="$prefix" | |
8155 | prefix="$acl_final_prefix" | |
8156 | acl_save_exec_prefix="$exec_prefix" | |
8157 | exec_prefix="$acl_final_exec_prefix" | |
8158 | eval x=\"$x\" | |
8159 | exec_prefix="$acl_save_exec_prefix" | |
8160 | prefix="$acl_save_prefix" | |
8161 | ||
8162 | case "$x" in | |
8163 | -L*) | |
8164 | dir=`echo "X$x" | sed -e 's/^X-L//'` | |
8165 | if test -n "$acl_shlibext"; then | |
8166 | if test -f "$dir/$libname$shrext"; then | |
8167 | found_dir="$dir" | |
8168 | found_so="$dir/$libname$shrext" | |
8169 | else | |
8170 | if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then | |
8171 | ver=`(cd "$dir" && \ | |
8172 | for f in "$libname$shrext".*; do echo "$f"; done \ | |
8173 | | sed -e "s,^$libname$shrext\\\\.,," \ | |
8174 | | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ | |
8175 | | sed 1q ) 2>/dev/null` | |
8176 | if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then | |
8177 | found_dir="$dir" | |
8178 | found_so="$dir/$libname$shrext.$ver" | |
8179 | fi | |
8180 | else | |
8181 | eval library_names=\"$acl_library_names_spec\" | |
8182 | for f in $library_names; do | |
8183 | if test -f "$dir/$f"; then | |
8184 | found_dir="$dir" | |
8185 | found_so="$dir/$f" | |
8186 | break | |
8187 | fi | |
8188 | done | |
8189 | fi | |
8190 | fi | |
8191 | fi | |
8192 | if test "X$found_dir" = "X"; then | |
8193 | if test -f "$dir/$libname.$acl_libext"; then | |
8194 | found_dir="$dir" | |
8195 | found_a="$dir/$libname.$acl_libext" | |
8196 | fi | |
8197 | fi | |
8198 | if test "X$found_dir" != "X"; then | |
8199 | if test -f "$dir/$libname.la"; then | |
8200 | found_la="$dir/$libname.la" | |
8201 | fi | |
8202 | fi | |
8203 | ;; | |
8204 | esac | |
8205 | if test "X$found_dir" != "X"; then | |
8206 | break | |
8207 | fi | |
8208 | done | |
8209 | fi | |
8210 | if test "X$found_dir" != "X"; then | |
8211 | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name" | |
8212 | if test "X$found_so" != "X"; then | |
8213 | if test "$enable_rpath" = no \ | |
8214 | || test "X$found_dir" = "X/usr/$acl_libdirstem" \ | |
8215 | || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then | |
8216 | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" | |
8217 | else | |
8218 | haveit= | |
8219 | for x in $ltrpathdirs; do | |
8220 | if test "X$x" = "X$found_dir"; then | |
8221 | haveit=yes | |
8222 | break | |
8223 | fi | |
8224 | done | |
8225 | if test -z "$haveit"; then | |
8226 | ltrpathdirs="$ltrpathdirs $found_dir" | |
8227 | fi | |
8228 | if test "$acl_hardcode_direct" = yes; then | |
8229 | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" | |
8230 | else | |
8231 | if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then | |
8232 | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" | |
8233 | haveit= | |
8234 | for x in $rpathdirs; do | |
8235 | if test "X$x" = "X$found_dir"; then | |
8236 | haveit=yes | |
8237 | break | |
8238 | fi | |
8239 | done | |
8240 | if test -z "$haveit"; then | |
8241 | rpathdirs="$rpathdirs $found_dir" | |
8242 | fi | |
8243 | else | |
8244 | haveit= | |
8245 | for x in $LDFLAGS $LIBINTL; do | |
8246 | ||
8247 | acl_save_prefix="$prefix" | |
8248 | prefix="$acl_final_prefix" | |
8249 | acl_save_exec_prefix="$exec_prefix" | |
8250 | exec_prefix="$acl_final_exec_prefix" | |
8251 | eval x=\"$x\" | |
8252 | exec_prefix="$acl_save_exec_prefix" | |
8253 | prefix="$acl_save_prefix" | |
8254 | ||
8255 | if test "X$x" = "X-L$found_dir"; then | |
8256 | haveit=yes | |
8257 | break | |
8258 | fi | |
8259 | done | |
8260 | if test -z "$haveit"; then | |
8261 | LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir" | |
8262 | fi | |
8263 | if test "$acl_hardcode_minus_L" != no; then | |
8264 | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" | |
8265 | else | |
8266 | LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name" | |
8267 | fi | |
8268 | fi | |
8269 | fi | |
8270 | fi | |
8271 | else | |
8272 | if test "X$found_a" != "X"; then | |
8273 | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a" | |
8274 | else | |
8275 | LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name" | |
8276 | fi | |
8277 | fi | |
8278 | additional_includedir= | |
8279 | case "$found_dir" in | |
8280 | */$acl_libdirstem | */$acl_libdirstem/) | |
8281 | basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'` | |
8282 | if test "$name" = 'intl'; then | |
8283 | LIBINTL_PREFIX="$basedir" | |
8284 | fi | |
8285 | additional_includedir="$basedir/include" | |
8286 | ;; | |
8287 | */$acl_libdirstem2 | */$acl_libdirstem2/) | |
8288 | basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'` | |
8289 | if test "$name" = 'intl'; then | |
8290 | LIBINTL_PREFIX="$basedir" | |
8291 | fi | |
8292 | additional_includedir="$basedir/include" | |
8293 | ;; | |
8294 | esac | |
8295 | if test "X$additional_includedir" != "X"; then | |
8296 | if test "X$additional_includedir" != "X/usr/include"; then | |
8297 | haveit= | |
8298 | if test "X$additional_includedir" = "X/usr/local/include"; then | |
8299 | if test -n "$GCC"; then | |
8300 | case $host_os in | |
8301 | linux* | gnu* | k*bsd*-gnu) haveit=yes;; | |
8302 | esac | |
8303 | fi | |
8304 | fi | |
8305 | if test -z "$haveit"; then | |
8306 | for x in $CPPFLAGS $INCINTL; do | |
8307 | ||
8308 | acl_save_prefix="$prefix" | |
8309 | prefix="$acl_final_prefix" | |
8310 | acl_save_exec_prefix="$exec_prefix" | |
8311 | exec_prefix="$acl_final_exec_prefix" | |
8312 | eval x=\"$x\" | |
8313 | exec_prefix="$acl_save_exec_prefix" | |
8314 | prefix="$acl_save_prefix" | |
8315 | ||
8316 | if test "X$x" = "X-I$additional_includedir"; then | |
8317 | haveit=yes | |
8318 | break | |
8319 | fi | |
8320 | done | |
8321 | if test -z "$haveit"; then | |
8322 | if test -d "$additional_includedir"; then | |
8323 | INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir" | |
8324 | fi | |
8325 | fi | |
8326 | fi | |
8327 | fi | |
8328 | fi | |
8329 | if test -n "$found_la"; then | |
8330 | save_libdir="$libdir" | |
8331 | case "$found_la" in | |
8332 | */* | *\\*) . "$found_la" ;; | |
8333 | *) . "./$found_la" ;; | |
8334 | esac | |
8335 | libdir="$save_libdir" | |
8336 | for dep in $dependency_libs; do | |
8337 | case "$dep" in | |
8338 | -L*) | |
8339 | additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` | |
8340 | if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \ | |
8341 | && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then | |
8342 | haveit= | |
8343 | if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \ | |
8344 | || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then | |
8345 | if test -n "$GCC"; then | |
8346 | case $host_os in | |
8347 | linux* | gnu* | k*bsd*-gnu) haveit=yes;; | |
8348 | esac | |
8349 | fi | |
8350 | fi | |
8351 | if test -z "$haveit"; then | |
8352 | haveit= | |
8353 | for x in $LDFLAGS $LIBINTL; do | |
8354 | ||
8355 | acl_save_prefix="$prefix" | |
8356 | prefix="$acl_final_prefix" | |
8357 | acl_save_exec_prefix="$exec_prefix" | |
8358 | exec_prefix="$acl_final_exec_prefix" | |
8359 | eval x=\"$x\" | |
8360 | exec_prefix="$acl_save_exec_prefix" | |
8361 | prefix="$acl_save_prefix" | |
8362 | ||
8363 | if test "X$x" = "X-L$additional_libdir"; then | |
8364 | haveit=yes | |
8365 | break | |
8366 | fi | |
8367 | done | |
8368 | if test -z "$haveit"; then | |
8369 | if test -d "$additional_libdir"; then | |
8370 | LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir" | |
8371 | fi | |
8372 | fi | |
8373 | haveit= | |
8374 | for x in $LDFLAGS $LTLIBINTL; do | |
8375 | ||
8376 | acl_save_prefix="$prefix" | |
8377 | prefix="$acl_final_prefix" | |
8378 | acl_save_exec_prefix="$exec_prefix" | |
8379 | exec_prefix="$acl_final_exec_prefix" | |
8380 | eval x=\"$x\" | |
8381 | exec_prefix="$acl_save_exec_prefix" | |
8382 | prefix="$acl_save_prefix" | |
8383 | ||
8384 | if test "X$x" = "X-L$additional_libdir"; then | |
8385 | haveit=yes | |
8386 | break | |
8387 | fi | |
8388 | done | |
8389 | if test -z "$haveit"; then | |
8390 | if test -d "$additional_libdir"; then | |
8391 | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir" | |
8392 | fi | |
8393 | fi | |
8394 | fi | |
8395 | fi | |
8396 | ;; | |
8397 | -R*) | |
8398 | dir=`echo "X$dep" | sed -e 's/^X-R//'` | |
8399 | if test "$enable_rpath" != no; then | |
8400 | haveit= | |
8401 | for x in $rpathdirs; do | |
8402 | if test "X$x" = "X$dir"; then | |
8403 | haveit=yes | |
8404 | break | |
8405 | fi | |
8406 | done | |
8407 | if test -z "$haveit"; then | |
8408 | rpathdirs="$rpathdirs $dir" | |
8409 | fi | |
8410 | haveit= | |
8411 | for x in $ltrpathdirs; do | |
8412 | if test "X$x" = "X$dir"; then | |
8413 | haveit=yes | |
8414 | break | |
8415 | fi | |
8416 | done | |
8417 | if test -z "$haveit"; then | |
8418 | ltrpathdirs="$ltrpathdirs $dir" | |
8419 | fi | |
8420 | fi | |
8421 | ;; | |
8422 | -l*) | |
8423 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` | |
8424 | ;; | |
8425 | *.la) | |
8426 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` | |
8427 | ;; | |
8428 | *) | |
8429 | LIBINTL="${LIBINTL}${LIBINTL:+ }$dep" | |
8430 | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep" | |
8431 | ;; | |
8432 | esac | |
8433 | done | |
8434 | fi | |
8435 | else | |
8436 | LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name" | |
8437 | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name" | |
8438 | fi | |
8439 | fi | |
8440 | fi | |
8441 | done | |
8442 | done | |
8443 | if test "X$rpathdirs" != "X"; then | |
8444 | if test -n "$acl_hardcode_libdir_separator"; then | |
8445 | alldirs= | |
8446 | for found_dir in $rpathdirs; do | |
8447 | alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir" | |
8448 | done | |
8449 | acl_save_libdir="$libdir" | |
8450 | libdir="$alldirs" | |
8451 | eval flag=\"$acl_hardcode_libdir_flag_spec\" | |
8452 | libdir="$acl_save_libdir" | |
8453 | LIBINTL="${LIBINTL}${LIBINTL:+ }$flag" | |
8454 | else | |
8455 | for found_dir in $rpathdirs; do | |
8456 | acl_save_libdir="$libdir" | |
8457 | libdir="$found_dir" | |
8458 | eval flag=\"$acl_hardcode_libdir_flag_spec\" | |
8459 | libdir="$acl_save_libdir" | |
8460 | LIBINTL="${LIBINTL}${LIBINTL:+ }$flag" | |
8461 | done | |
8462 | fi | |
8463 | fi | |
8464 | if test "X$ltrpathdirs" != "X"; then | |
8465 | for found_dir in $ltrpathdirs; do | |
8466 | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir" | |
8467 | done | |
8468 | fi | |
8469 | ||
8470 | ||
8471 | ||
8472 | ||
8473 | ||
8474 | ||
8475 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5 | |
8476 | $as_echo_n "checking for GNU gettext in libintl... " >&6; } | |
c3de29bd | 8477 | if eval \${$gt_func_gnugettext_libintl+:} false; then : |
8f223b3e | 8478 | $as_echo_n "(cached) " >&6 |
2f1a1aea | 8479 | else |
8f223b3e FCE |
8480 | gt_save_CPPFLAGS="$CPPFLAGS" |
8481 | CPPFLAGS="$CPPFLAGS $INCINTL" | |
8482 | gt_save_LIBS="$LIBS" | |
8483 | LIBS="$LIBS $LIBINTL" | |
8484 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2f1a1aea | 8485 | /* end confdefs.h. */ |
8f223b3e FCE |
8486 | #include <libintl.h> |
8487 | $gt_revision_test_code | |
8488 | extern int _nl_msg_cat_cntr; | |
8489 | extern | |
8490 | #ifdef __cplusplus | |
8491 | "C" | |
2f1a1aea | 8492 | #endif |
8f223b3e | 8493 | const char *_nl_expand_alias (const char *); |
2f1a1aea FCE |
8494 | int |
8495 | main () | |
8496 | { | |
8f223b3e FCE |
8497 | bindtextdomain ("", ""); |
8498 | return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("") | |
8499 | ; | |
7fbd9d09 | 8500 | return 0; |
2f1a1aea FCE |
8501 | } |
8502 | _ACEOF | |
8f223b3e FCE |
8503 | if ac_fn_c_try_link "$LINENO"; then : |
8504 | eval "$gt_func_gnugettext_libintl=yes" | |
1ef0423a | 8505 | else |
8f223b3e | 8506 | eval "$gt_func_gnugettext_libintl=no" |
412e1bf7 | 8507 | fi |
8f223b3e FCE |
8508 | rm -f core conftest.err conftest.$ac_objext \ |
8509 | conftest$ac_exeext conftest.$ac_ext | |
8510 | if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then | |
8511 | LIBS="$LIBS $LIBICONV" | |
8512 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8513 | /* end confdefs.h. */ | |
8514 | #include <libintl.h> | |
8515 | $gt_revision_test_code | |
8516 | extern int _nl_msg_cat_cntr; | |
8517 | extern | |
8518 | #ifdef __cplusplus | |
8519 | "C" | |
8520 | #endif | |
8521 | const char *_nl_expand_alias (const char *); | |
8522 | int | |
8523 | main () | |
8524 | { | |
8525 | bindtextdomain ("", ""); | |
8526 | return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("") | |
8527 | ; | |
8528 | return 0; | |
8529 | } | |
8530 | _ACEOF | |
8531 | if ac_fn_c_try_link "$LINENO"; then : | |
8532 | LIBINTL="$LIBINTL $LIBICONV" | |
8533 | LTLIBINTL="$LTLIBINTL $LTLIBICONV" | |
8534 | eval "$gt_func_gnugettext_libintl=yes" | |
412e1bf7 | 8535 | |
412e1bf7 | 8536 | fi |
8f223b3e FCE |
8537 | rm -f core conftest.err conftest.$ac_objext \ |
8538 | conftest$ac_exeext conftest.$ac_ext | |
8539 | fi | |
8540 | CPPFLAGS="$gt_save_CPPFLAGS" | |
8541 | LIBS="$gt_save_LIBS" | |
412e1bf7 | 8542 | fi |
8f223b3e FCE |
8543 | eval ac_res=\$$gt_func_gnugettext_libintl |
8544 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
8545 | $as_echo "$ac_res" >&6; } | |
8546 | fi | |
412e1bf7 | 8547 | |
8f223b3e FCE |
8548 | if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \ |
8549 | || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \ | |
8550 | && test "$PACKAGE" != gettext-runtime \ | |
8551 | && test "$PACKAGE" != gettext-tools; }; then | |
8552 | gt_use_preinstalled_gnugettext=yes | |
8553 | else | |
8554 | LIBINTL= | |
8555 | LTLIBINTL= | |
8556 | INCINTL= | |
8557 | fi | |
412e1bf7 | 8558 | |
412e1bf7 | 8559 | |
2f1a1aea | 8560 | |
8f223b3e FCE |
8561 | if test -n "$INTL_MACOSX_LIBS"; then |
8562 | if test "$gt_use_preinstalled_gnugettext" = "yes" \ | |
8563 | || test "$nls_cv_use_gnu_gettext" = "yes"; then | |
8564 | LIBINTL="$LIBINTL $INTL_MACOSX_LIBS" | |
8565 | LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS" | |
8566 | fi | |
8567 | fi | |
2f1a1aea | 8568 | |
8f223b3e FCE |
8569 | if test "$gt_use_preinstalled_gnugettext" = "yes" \ |
8570 | || test "$nls_cv_use_gnu_gettext" = "yes"; then | |
2f1a1aea | 8571 | |
8f223b3e | 8572 | $as_echo "#define ENABLE_NLS 1" >>confdefs.h |
2f1a1aea | 8573 | |
8f223b3e FCE |
8574 | else |
8575 | USE_NLS=no | |
8576 | fi | |
8577 | fi | |
2f1a1aea | 8578 | |
8f223b3e FCE |
8579 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5 |
8580 | $as_echo_n "checking whether to use NLS... " >&6; } | |
8581 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5 | |
8582 | $as_echo "$USE_NLS" >&6; } | |
8583 | if test "$USE_NLS" = "yes"; then | |
8584 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5 | |
8585 | $as_echo_n "checking where the gettext function comes from... " >&6; } | |
8586 | if test "$gt_use_preinstalled_gnugettext" = "yes"; then | |
8587 | if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then | |
8588 | gt_source="external libintl" | |
8589 | else | |
8590 | gt_source="libc" | |
8591 | fi | |
8592 | else | |
8593 | gt_source="included intl directory" | |
8594 | fi | |
8595 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5 | |
8596 | $as_echo "$gt_source" >&6; } | |
8597 | fi | |
2f1a1aea | 8598 | |
8f223b3e FCE |
8599 | if test "$USE_NLS" = "yes"; then |
8600 | ||
8601 | if test "$gt_use_preinstalled_gnugettext" = "yes"; then | |
8602 | if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then | |
8603 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5 | |
8604 | $as_echo_n "checking how to link with libintl... " >&6; } | |
8605 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5 | |
8606 | $as_echo "$LIBINTL" >&6; } | |
8607 | ||
8608 | for element in $INCINTL; do | |
8609 | haveit= | |
8610 | for x in $CPPFLAGS; do | |
8611 | ||
8612 | acl_save_prefix="$prefix" | |
8613 | prefix="$acl_final_prefix" | |
8614 | acl_save_exec_prefix="$exec_prefix" | |
8615 | exec_prefix="$acl_final_exec_prefix" | |
8616 | eval x=\"$x\" | |
8617 | exec_prefix="$acl_save_exec_prefix" | |
8618 | prefix="$acl_save_prefix" | |
8619 | ||
8620 | if test "X$x" = "X$element"; then | |
8621 | haveit=yes | |
8622 | break | |
8623 | fi | |
8624 | done | |
8625 | if test -z "$haveit"; then | |
8626 | CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" | |
8627 | fi | |
8628 | done | |
412e1bf7 | 8629 | |
8f223b3e | 8630 | fi |
412e1bf7 | 8631 | |
5e5aee9f | 8632 | |
8f223b3e | 8633 | $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h |
5e5aee9f | 8634 | |
2f1a1aea | 8635 | |
8f223b3e | 8636 | $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h |
2f1a1aea | 8637 | |
8f223b3e | 8638 | fi |
7fbd9d09 | 8639 | |
8f223b3e | 8640 | POSUB=po |
2f1a1aea | 8641 | fi |
2f1a1aea | 8642 | |
2f1a1aea | 8643 | |
2f1a1aea | 8644 | |
8f223b3e | 8645 | INTLLIBS="$LIBINTL" |
2f1a1aea FCE |
8646 | |
8647 | ||
2f1a1aea | 8648 | |
2f1a1aea FCE |
8649 | |
8650 | ||
8651 | ||
8652 | ||
e04a4b41 JS |
8653 | for ac_func in ppoll |
8654 | do : | |
8655 | ac_fn_c_check_func "$LINENO" "ppoll" "ac_cv_func_ppoll" | |
c3de29bd | 8656 | if test "x$ac_cv_func_ppoll" = xyes; then : |
e04a4b41 JS |
8657 | cat >>confdefs.h <<_ACEOF |
8658 | #define HAVE_PPOLL 1 | |
8659 | _ACEOF | |
8660 | ||
8661 | fi | |
8662 | done | |
8663 | ||
caf6872d | 8664 | |
70d28673 | 8665 | if test "${enable_prologues+set}" != set; then |
1ef0423a | 8666 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if prologue searching should be the default" >&5 |
0710d850 | 8667 | $as_echo_n "checking to see if prologue searching should be the default... " >&6; } |
70d28673 DS |
8668 | if { echo '#if __i386__ == 1 && __GNUC__ < 4' |
8669 | echo ' yes ' | |
8670 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then | |
8671 | enable_prologues=yes | |
1ef0423a | 8672 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
0710d850 | 8673 | $as_echo "yes" >&6; } |
70d28673 | 8674 | else |
1ef0423a | 8675 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
0710d850 | 8676 | $as_echo "no" >&6; } |
70d28673 DS |
8677 | fi |
8678 | fi | |
7fbd9d09 | 8679 | # Check whether --enable-prologues was given. |
1ef0423a | 8680 | if test "${enable_prologues+set}" = set; then : |
7fbd9d09 | 8681 | enableval=$enable_prologues; |
70d28673 | 8682 | if test "$enable_prologues" = yes; then |
44f75386 | 8683 | |
1ef0423a | 8684 | $as_echo "#define ENABLE_PROLOGUES /**/" >>confdefs.h |
44f75386 | 8685 | |
70d28673 | 8686 | fi |
7fbd9d09 | 8687 | fi |
70d28673 | 8688 | |
7fbd9d09 | 8689 | |
e1bfefdc SC |
8690 | |
8691 | if test "${enable_sdt_probes+set}" != set; then | |
8692 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if sdt probes should be the default" >&5 | |
8693 | $as_echo_n "checking to see if sdt probes should be the default... " >&6; } | |
8694 | if { echo '#if __GNUC__ < 4' | |
8695 | echo ' yes ' | |
8696 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then | |
8b714d4b | 8697 | enable_sdt_probes=no |
e1bfefdc SC |
8698 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8699 | $as_echo "no" >&6; } | |
8700 | else | |
8701 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
8702 | $as_echo "yes" >&6; } | |
8703 | fi | |
8704 | fi | |
0f5d597d JS |
8705 | # Check whether --enable-sdt-probes was given. |
8706 | if test "${enable_sdt_probes+set}" = set; then : | |
8707 | enableval=$enable_sdt_probes; | |
8708 | fi | |
8709 | ||
8710 | if test "x$enable_sdt_probes" != xno; then : | |
8711 | ||
8712 | ||
8713 | $as_echo "#define ENABLE_SDT_PROBES 1" >>confdefs.h | |
8714 | ||
8715 | ||
8716 | fi | |
8717 | ||
7fbd9d09 | 8718 | # Check whether --enable-ssp was given. |
1ef0423a | 8719 | if test "${enable_ssp+set}" = set; then : |
7fbd9d09 FCE |
8720 | enableval=$enable_ssp; |
8721 | fi | |
9921a199 | 8722 | |
1ef0423a | 8723 | if test "x$enable_ssp" != xno; then : |
bbfd8c1a FCE |
8724 | |
8725 | save_CFLAGS="$CFLAGS" | |
8726 | save_CXXFLAGS="$CXXFLAGS" | |
f0510eaa FCE |
8727 | CXXFLAGS="$CXXFLAGS -Werror -fstack-protector-all -D_FORTIFY_SOURCE=2" |
8728 | CFLAGS="$CFLAGS -Werror -fstack-protector-all -D_FORTIFY_SOURCE=2" | |
1ef0423a FCE |
8729 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8730 | /* end confdefs.h. */ | |
bbfd8c1a FCE |
8731 | int something (); |
8732 | _ACEOF | |
1ef0423a | 8733 | if ac_fn_c_try_compile "$LINENO"; then : |
818ba2bc | 8734 | |
1ef0423a | 8735 | { $as_echo "$as_me:${as_lineno-$LINENO}: Compiling with gcc -fstack-protector-all et al." >&5 |
0710d850 | 8736 | $as_echo "$as_me: Compiling with gcc -fstack-protector-all et al." >&6;} |
f0510eaa | 8737 | CFLAGS="$save_CFLAGS -fstack-protector-all -D_FORTIFY_SOURCE=2" |
a530cfe0 | 8738 | CXXFLAGS="$save_CXXFLAGS -fstack-protector-all -D_FORTIFY_SOURCE=2" |
bbfd8c1a | 8739 | else |
bbfd8c1a | 8740 | |
1ef0423a | 8741 | { $as_echo "$as_me:${as_lineno-$LINENO}: Compiler does not support -fstack-protector-all et al." >&5 |
0710d850 | 8742 | $as_echo "$as_me: Compiler does not support -fstack-protector-all et al." >&6;} |
bbfd8c1a FCE |
8743 | CFLAGS="$save_CFLAGS" |
8744 | CXXFLAGS="$save_CXXFLAGS" | |
8745 | fi | |
7fbd9d09 | 8746 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
9921a199 | 8747 | fi |
70d28673 | 8748 | |
cbe7ea07 FCE |
8749 | |
8750 | ||
8751 | ||
e1e3ba36 | 8752 | # Compiling without fPIE by default (see PR 9922) |
7fbd9d09 | 8753 | # Check whether --enable-pie was given. |
1ef0423a | 8754 | if test "${enable_pie+set}" = set; then : |
7fbd9d09 FCE |
8755 | enableval=$enable_pie; |
8756 | fi | |
8730f377 | 8757 | |
1ef0423a | 8758 | if test "x$enable_pie" == xyes; then : |
8730f377 FCE |
8759 | |
8760 | save_CFLAGS="$CFLAGS" | |
8761 | save_CXXFLAGS="$CXXFLAGS" | |
8762 | save_LDFLAGS="$LDFLAGS" | |
7b53a460 SD |
8763 | CFLAGS="$CFLAGS -fPIE" |
8764 | CXXFLAGS="$CXXFLAGS -fPIE" | |
8730f377 | 8765 | LDFLAGS="$LDFLAGS -pie -Wl,-z,relro -Wl,-z,now" |
1ef0423a FCE |
8766 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8767 | /* end confdefs.h. */ | |
8730f377 FCE |
8768 | void main () {} |
8769 | _ACEOF | |
1ef0423a | 8770 | if ac_fn_c_try_link "$LINENO"; then : |
818ba2bc | 8771 | |
1ef0423a | 8772 | { $as_echo "$as_me:${as_lineno-$LINENO}: Compiling with gcc pie et al." >&5 |
0710d850 | 8773 | $as_echo "$as_me: Compiling with gcc pie et al." >&6;} |
8730f377 FCE |
8774 | # LDFLAGS is special since it may be passed down to bundled-elfutils, |
8775 | # and interfere with the .so's built therein | |
5574ef2c | 8776 | PIELDFLAGS="$LDFLAGS" |
8730f377 | 8777 | LDFLAGS="$save_LDFLAGS" |
5574ef2c MW |
8778 | PIECFLAGS="$CFLAGS" |
8779 | CFLAGS="$save_CFLAGS" | |
8780 | PIECXXFLAGS="$CXXFLAGS" | |
8781 | CXXFLAGS="$save_CXXFLAGS" | |
8730f377 FCE |
8782 | |
8783 | else | |
8730f377 | 8784 | |
1ef0423a | 8785 | { $as_echo "$as_me:${as_lineno-$LINENO}: Compiler does not support -pie et al." >&5 |
0710d850 | 8786 | $as_echo "$as_me: Compiler does not support -pie et al." >&6;} |
5574ef2c | 8787 | PIECFLAGS="" |
8730f377 | 8788 | CFLAGS="$save_CFLAGS" |
5574ef2c | 8789 | PIECXXFLAGS="" |
8730f377 FCE |
8790 | CXXFLAGS="$save_CXXFLAGS" |
8791 | PIELDFLAGS="" | |
8792 | LDFLAGS="$save_LDFLAGS" | |
8793 | fi | |
1ef0423a FCE |
8794 | rm -f core conftest.err conftest.$ac_objext \ |
8795 | conftest$ac_exeext conftest.$ac_ext | |
8730f377 FCE |
8796 | fi |
8797 | ||
8798 | ||
8799 | ||
5574ef2c | 8800 | |
7fbd9d09 | 8801 | # Check whether --enable-sqlite was given. |
1ef0423a | 8802 | if test "${enable_sqlite+set}" = set; then : |
7fbd9d09 | 8803 | enableval=$enable_sqlite; |
9921a199 | 8804 | else |
e8f3c2c2 | 8805 | enable_sqlite=check |
7fbd9d09 FCE |
8806 | fi |
8807 | sqlite3_LIBS= | |
1ef0423a FCE |
8808 | if test "x$enable_sqlite" != xno; then : |
8809 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3_open in -lsqlite3" >&5 | |
0710d850 | 8810 | $as_echo_n "checking for sqlite3_open in -lsqlite3... " >&6; } |
c3de29bd | 8811 | if ${ac_cv_lib_sqlite3_sqlite3_open+:} false; then : |
0710d850 | 8812 | $as_echo_n "(cached) " >&6 |
42feb3c0 WC |
8813 | else |
8814 | ac_check_lib_save_LIBS=$LIBS | |
8815 | LIBS="-lsqlite3 $LIBS" | |
1ef0423a | 8816 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
42feb3c0 WC |
8817 | /* end confdefs.h. */ |
8818 | ||
7fbd9d09 FCE |
8819 | /* Override any GCC internal prototype to avoid an error. |
8820 | Use char because int might match the return type of a GCC | |
8821 | builtin and then its argument prototype would still apply. */ | |
42feb3c0 WC |
8822 | #ifdef __cplusplus |
8823 | extern "C" | |
8824 | #endif | |
8825 | char sqlite3_open (); | |
8826 | int | |
8827 | main () | |
8828 | { | |
7fbd9d09 | 8829 | return sqlite3_open (); |
42feb3c0 WC |
8830 | ; |
8831 | return 0; | |
8832 | } | |
8833 | _ACEOF | |
1ef0423a | 8834 | if ac_fn_c_try_link "$LINENO"; then : |
42feb3c0 WC |
8835 | ac_cv_lib_sqlite3_sqlite3_open=yes |
8836 | else | |
1ef0423a | 8837 | ac_cv_lib_sqlite3_sqlite3_open=no |
42feb3c0 | 8838 | fi |
1ef0423a FCE |
8839 | rm -f core conftest.err conftest.$ac_objext \ |
8840 | conftest$ac_exeext conftest.$ac_ext | |
42feb3c0 WC |
8841 | LIBS=$ac_check_lib_save_LIBS |
8842 | fi | |
1ef0423a | 8843 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_open" >&5 |
0710d850 | 8844 | $as_echo "$ac_cv_lib_sqlite3_sqlite3_open" >&6; } |
c3de29bd | 8845 | if test "x$ac_cv_lib_sqlite3_sqlite3_open" = xyes; then : |
9921a199 | 8846 | sqlite3_LIBS=-lsqlite3 |
42feb3c0 | 8847 | |
0d563e60 | 8848 | |
1ef0423a | 8849 | $as_echo "#define HAVE_LIBSQLITE3 1" >>confdefs.h |
07606685 | 8850 | |
9921a199 DS |
8851 | else |
8852 | if test "x$enable_sqlite" != xcheck; then | |
1ef0423a | 8853 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
0710d850 | 8854 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
5d4aa1f5 FCE |
8855 | as_fn_error $? "--enable-sqlite was given, but test for sqlite failed |
8856 | See \`config.log' for more details" "$LINENO" 5; } | |
9921a199 | 8857 | fi |
42feb3c0 WC |
8858 | fi |
8859 | ||
9921a199 | 8860 | fi |
44f75386 | 8861 | |
6d14a4a9 | 8862 | # Check whether --enable-translator was given. |
1ef0423a | 8863 | if test "${enable_translator+set}" = set; then : |
6d14a4a9 EB |
8864 | enableval=$enable_translator; |
8865 | else | |
8866 | enable_translator="yes" | |
8867 | fi | |
8868 | ||
8869 | if test "$enable_translator" == "yes"; then | |
8870 | BUILD_TRANSLATOR_TRUE= | |
8871 | BUILD_TRANSLATOR_FALSE='#' | |
8872 | else | |
8873 | BUILD_TRANSLATOR_TRUE='#' | |
8874 | BUILD_TRANSLATOR_FALSE= | |
8875 | fi | |
8876 | ||
8877 | ||
7fbd9d09 | 8878 | # Check whether --enable-crash was given. |
1ef0423a | 8879 | if test "${enable_crash+set}" = set; then : |
7fbd9d09 | 8880 | enableval=$enable_crash; if test "$enable_crash" != "no"; then |
564eb0a8 DS |
8881 | save_CPPFLAGS="$CPPFLAGS" |
8882 | if test "$enable_crash" != "yes"; then | |
8883 | staplog_CPPFLAGS=-I$enable_crash | |
4a3c19da | 8884 | CPPFLAGS="${staplog_CPPFLAGS} $CPPFLAGS" |
35a04c8e | 8885 | |
412e1bf7 | 8886 | fi |
1ef0423a FCE |
8887 | for ac_header in crash/defs.h |
8888 | do : | |
8889 | ac_fn_c_check_header_compile "$LINENO" "crash/defs.h" "ac_cv_header_crash_defs_h" " | |
8890 | #define NR_CPUS 256 | |
5e5aee9f | 8891 | |
1ef0423a | 8892 | " |
c3de29bd | 8893 | if test "x$ac_cv_header_crash_defs_h" = xyes; then : |
1ef0423a FCE |
8894 | cat >>confdefs.h <<_ACEOF |
8895 | #define HAVE_CRASH_DEFS_H 1 | |
5e5aee9f | 8896 | _ACEOF |
5e5aee9f | 8897 | |
1ef0423a | 8898 | else |
5d4aa1f5 | 8899 | as_fn_error $? "cannot find required crash header (crash-devel may need to be installed)" "$LINENO" 5 |
1ef0423a | 8900 | fi |
7fbd9d09 | 8901 | |
1ef0423a | 8902 | done |
5e5aee9f | 8903 | |
1ef0423a FCE |
8904 | CPPFLAGS="$save_CPPFLAGS" |
8905 | fi | |
5e5aee9f | 8906 | else |
1ef0423a | 8907 | enable_crash="no" |
7fbd9d09 | 8908 | fi |
564eb0a8 | 8909 | |
7fbd9d09 | 8910 | if test "$enable_crash" != "no"; then |
35a04c8e FCE |
8911 | BUILD_CRASHMOD_TRUE= |
8912 | BUILD_CRASHMOD_FALSE='#' | |
8913 | else | |
8914 | BUILD_CRASHMOD_TRUE='#' | |
8915 | BUILD_CRASHMOD_FALSE= | |
8916 | fi | |
8917 | ||
8918 | ||
92aff3c7 | 8919 | building_docs="no" |
7fbd9d09 | 8920 | # Check whether --enable-docs was given. |
1ef0423a | 8921 | if test "${enable_docs+set}" = set; then : |
7fbd9d09 | 8922 | enableval=$enable_docs; enable_docs=$enableval |
465e8fbf FCE |
8923 | else |
8924 | enable_docs="check" | |
7fbd9d09 FCE |
8925 | fi |
8926 | ||
465e8fbf FCE |
8927 | # Extract the first word of "latex", so it can be a program name with args. |
8928 | set dummy latex; ac_word=$2 | |
1ef0423a | 8929 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
0710d850 | 8930 | $as_echo_n "checking for $ac_word... " >&6; } |
c3de29bd | 8931 | if ${ac_cv_prog_have_latex+:} false; then : |
0710d850 | 8932 | $as_echo_n "(cached) " >&6 |
465e8fbf FCE |
8933 | else |
8934 | if test -n "$have_latex"; then | |
8935 | ac_cv_prog_have_latex="$have_latex" # Let the user override the test. | |
8936 | else | |
8937 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8938 | for as_dir in $PATH | |
8939 | do | |
8940 | IFS=$as_save_IFS | |
8941 | test -z "$as_dir" && as_dir=. | |
1ef0423a | 8942 | for ac_exec_ext in '' $ac_executable_extensions; do |
7fbd9d09 | 8943 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
465e8fbf | 8944 | ac_cv_prog_have_latex="yes" |
1ef0423a | 8945 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
465e8fbf FCE |
8946 | break 2 |
8947 | fi | |
8948 | done | |
1ef0423a | 8949 | done |
7fbd9d09 | 8950 | IFS=$as_save_IFS |
465e8fbf FCE |
8951 | |
8952 | test -z "$ac_cv_prog_have_latex" && ac_cv_prog_have_latex="no" | |
8953 | fi | |
8954 | fi | |
8955 | have_latex=$ac_cv_prog_have_latex | |
8956 | if test -n "$have_latex"; then | |
1ef0423a | 8957 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_latex" >&5 |
0710d850 | 8958 | $as_echo "$have_latex" >&6; } |
465e8fbf | 8959 | else |
1ef0423a | 8960 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
0710d850 | 8961 | $as_echo "no" >&6; } |
465e8fbf FCE |
8962 | fi |
8963 | ||
7fbd9d09 | 8964 | |
465e8fbf FCE |
8965 | # Extract the first word of "dvips", so it can be a program name with args. |
8966 | set dummy dvips; ac_word=$2 | |
1ef0423a | 8967 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
0710d850 | 8968 | $as_echo_n "checking for $ac_word... " >&6; } |
c3de29bd | 8969 | if ${ac_cv_prog_have_dvips+:} false; then : |
0710d850 | 8970 | $as_echo_n "(cached) " >&6 |
465e8fbf FCE |
8971 | else |
8972 | if test -n "$have_dvips"; then | |
8973 | ac_cv_prog_have_dvips="$have_dvips" # Let the user override the test. | |
8974 | else | |
8975 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8976 | for as_dir in $PATH | |
8977 | do | |
8978 | IFS=$as_save_IFS | |
8979 | test -z "$as_dir" && as_dir=. | |
1ef0423a | 8980 | for ac_exec_ext in '' $ac_executable_extensions; do |
7fbd9d09 | 8981 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
465e8fbf | 8982 | ac_cv_prog_have_dvips="yes" |
1ef0423a | 8983 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
465e8fbf FCE |
8984 | break 2 |
8985 | fi | |
8986 | done | |
1ef0423a | 8987 | done |
7fbd9d09 | 8988 | IFS=$as_save_IFS |
465e8fbf FCE |
8989 | |
8990 | test -z "$ac_cv_prog_have_dvips" && ac_cv_prog_have_dvips="no" | |
8991 | fi | |
8992 | fi | |
8993 | have_dvips=$ac_cv_prog_have_dvips | |
8994 | if test -n "$have_dvips"; then | |
1ef0423a | 8995 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_dvips" >&5 |
0710d850 | 8996 | $as_echo "$have_dvips" >&6; } |
465e8fbf | 8997 | else |
1ef0423a | 8998 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
0710d850 | 8999 | $as_echo "no" >&6; } |
465e8fbf FCE |
9000 | fi |
9001 | ||
7fbd9d09 | 9002 | |
465e8fbf FCE |
9003 | # Extract the first word of "ps2pdf", so it can be a program name with args. |
9004 | set dummy ps2pdf; ac_word=$2 | |
1ef0423a | 9005 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
0710d850 | 9006 | $as_echo_n "checking for $ac_word... " >&6; } |
c3de29bd | 9007 | if ${ac_cv_prog_have_ps2pdf+:} false; then : |
0710d850 | 9008 | $as_echo_n "(cached) " >&6 |
465e8fbf FCE |
9009 | else |
9010 | if test -n "$have_ps2pdf"; then | |
9011 | ac_cv_prog_have_ps2pdf="$have_ps2pdf" # Let the user override the test. | |
9012 | else | |
9013 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9014 | for as_dir in $PATH | |
9015 | do | |
9016 | IFS=$as_save_IFS | |
9017 | test -z "$as_dir" && as_dir=. | |
1ef0423a | 9018 | for ac_exec_ext in '' $ac_executable_extensions; do |
7fbd9d09 | 9019 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
465e8fbf | 9020 | ac_cv_prog_have_ps2pdf="yes" |
1ef0423a | 9021 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
465e8fbf FCE |
9022 | break 2 |
9023 | fi | |
9024 | done | |
1ef0423a | 9025 | done |
7fbd9d09 | 9026 | IFS=$as_save_IFS |
465e8fbf FCE |
9027 | |
9028 | test -z "$ac_cv_prog_have_ps2pdf" && ac_cv_prog_have_ps2pdf="no" | |
9029 | fi | |
9030 | fi | |
9031 | have_ps2pdf=$ac_cv_prog_have_ps2pdf | |
9032 | if test -n "$have_ps2pdf"; then | |
1ef0423a | 9033 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_ps2pdf" >&5 |
0710d850 | 9034 | $as_echo "$have_ps2pdf" >&6; } |
465e8fbf | 9035 | else |
1ef0423a | 9036 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
0710d850 | 9037 | $as_echo "no" >&6; } |
465e8fbf FCE |
9038 | fi |
9039 | ||
7fbd9d09 | 9040 | |
b62c413b EM |
9041 | # Extract the first word of "latex2html", so it can be a program name with args. |
9042 | set dummy latex2html; ac_word=$2 | |
1ef0423a | 9043 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
0710d850 | 9044 | $as_echo_n "checking for $ac_word... " >&6; } |
c3de29bd | 9045 | if ${ac_cv_prog_have_latex2html+:} false; then : |
0710d850 | 9046 | $as_echo_n "(cached) " >&6 |
b62c413b EM |
9047 | else |
9048 | if test -n "$have_latex2html"; then | |
9049 | ac_cv_prog_have_latex2html="$have_latex2html" # Let the user override the test. | |
9050 | else | |
9051 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9052 | for as_dir in $PATH | |
9053 | do | |
9054 | IFS=$as_save_IFS | |
9055 | test -z "$as_dir" && as_dir=. | |
1ef0423a | 9056 | for ac_exec_ext in '' $ac_executable_extensions; do |
b62c413b EM |
9057 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
9058 | ac_cv_prog_have_latex2html="yes" | |
1ef0423a | 9059 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b62c413b EM |
9060 | break 2 |
9061 | fi | |
9062 | done | |
1ef0423a | 9063 | done |
b62c413b EM |
9064 | IFS=$as_save_IFS |
9065 | ||
9066 | test -z "$ac_cv_prog_have_latex2html" && ac_cv_prog_have_latex2html="no" | |
9067 | fi | |
9068 | fi | |
9069 | have_latex2html=$ac_cv_prog_have_latex2html | |
9070 | if test -n "$have_latex2html"; then | |
1ef0423a | 9071 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_latex2html" >&5 |
0710d850 | 9072 | $as_echo "$have_latex2html" >&6; } |
b62c413b | 9073 | else |
1ef0423a | 9074 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
0710d850 | 9075 | $as_echo "no" >&6; } |
b62c413b EM |
9076 | fi |
9077 | ||
9078 | ||
9079 | if test "x${have_latex}${have_dvips}${have_ps2pdf}${have_latex2html}" != "xyesyesyesyes"; then | |
2d4b8ddf | 9080 | if test "$enable_docs" == "yes"; then |
5d4aa1f5 | 9081 | as_fn_error $? "cannot find all tools for building documentation" "$LINENO" 5 |
465e8fbf | 9082 | fi |
2d4b8ddf | 9083 | if test "$enable_docs" == "check"; then |
1ef0423a | 9084 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: will not build documentation, cannot find all tools" >&5 |
0710d850 | 9085 | $as_echo "$as_me: WARNING: will not build documentation, cannot find all tools" >&2;} |
2d4b8ddf | 9086 | fi |
465e8fbf | 9087 | fi |
b62c413b | 9088 | if test "x${have_latex}${have_dvips}${have_ps2pdf}${have_latex2html}" == "xyesyesyesyes" -a "$enable_docs" != "no"; then |
92aff3c7 WC |
9089 | building_docs="yes" |
9090 | fi | |
7fbd9d09 | 9091 | if test "$building_docs" == "yes"; then |
465e8fbf FCE |
9092 | BUILD_DOCS_TRUE= |
9093 | BUILD_DOCS_FALSE='#' | |
9094 | else | |
9095 | BUILD_DOCS_TRUE='#' | |
9096 | BUILD_DOCS_FALSE= | |
9097 | fi | |
9098 | ||
9099 | ||
53ade4da MW |
9100 | building_publican="no" |
9101 | # Check whether --enable-publican was given. | |
1ef0423a | 9102 | if test "${enable_publican+set}" = set; then : |
53ade4da MW |
9103 | enableval=$enable_publican; enable_publican=$enableval |
9104 | else | |
9105 | enable_publican="check" | |
9106 | fi | |
9107 | ||
9108 | if test "$building_docs" == "no" -a "$enable_publican" == "yes" ; then | |
5d4aa1f5 | 9109 | as_fn_error $? "must use --enable-docs with --enable-publican" "$LINENO" 5 |
53ade4da MW |
9110 | fi |
9111 | # Extract the first word of "publican", so it can be a program name with args. | |
9112 | set dummy publican; ac_word=$2 | |
1ef0423a | 9113 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
53ade4da | 9114 | $as_echo_n "checking for $ac_word... " >&6; } |
c3de29bd | 9115 | if ${ac_cv_prog_have_publican+:} false; then : |
53ade4da MW |
9116 | $as_echo_n "(cached) " >&6 |
9117 | else | |
9118 | if test -n "$have_publican"; then | |
9119 | ac_cv_prog_have_publican="$have_publican" # Let the user override the test. | |
9120 | else | |
9121 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9122 | for as_dir in $PATH | |
9123 | do | |
9124 | IFS=$as_save_IFS | |
9125 | test -z "$as_dir" && as_dir=. | |
1ef0423a | 9126 | for ac_exec_ext in '' $ac_executable_extensions; do |
53ade4da MW |
9127 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
9128 | ac_cv_prog_have_publican="yes" | |
1ef0423a | 9129 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
53ade4da MW |
9130 | break 2 |
9131 | fi | |
9132 | done | |
1ef0423a | 9133 | done |
53ade4da MW |
9134 | IFS=$as_save_IFS |
9135 | ||
9136 | test -z "$ac_cv_prog_have_publican" && ac_cv_prog_have_publican="no" | |
9137 | fi | |
9138 | fi | |
9139 | have_publican=$ac_cv_prog_have_publican | |
9140 | if test -n "$have_publican"; then | |
1ef0423a | 9141 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_publican" >&5 |
53ade4da MW |
9142 | $as_echo "$have_publican" >&6; } |
9143 | else | |
1ef0423a | 9144 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
53ade4da MW |
9145 | $as_echo "no" >&6; } |
9146 | fi | |
9147 | ||
9148 | ||
9149 | if test "$enable_publican" == "yes"; then | |
9150 | if test "x${have_publican}" != "xyes"; then | |
5d4aa1f5 | 9151 | as_fn_error $? "cannot find publican for building publican guides" "$LINENO" 5 |
53ade4da MW |
9152 | fi |
9153 | fi | |
9154 | if test "x${have_publican}" == "xyes" -a "$enable_publican" != "no" -a "${building_docs}" == "yes"; then | |
9155 | building_publican="yes" | |
9156 | fi | |
9157 | if test "$building_publican" == "yes"; then | |
9158 | BUILD_PUBLICAN_TRUE= | |
9159 | BUILD_PUBLICAN_FALSE='#' | |
9160 | else | |
9161 | BUILD_PUBLICAN_TRUE='#' | |
9162 | BUILD_PUBLICAN_FALSE= | |
9163 | fi | |
9164 | ||
89bc1a6a | 9165 | publican_brand="common" |
53ade4da MW |
9166 | |
9167 | # Check whether --with-publican-brand was given. | |
1ef0423a | 9168 | if test "${with_publican_brand+set}" = set; then : |
53ade4da MW |
9169 | withval=$with_publican_brand; publican_brand=$withval |
9170 | else | |
89bc1a6a | 9171 | publican_brand="common" |
53ade4da MW |
9172 | fi |
9173 | ||
9174 | PUBLICAN_BRAND=$publican_brand | |
9175 | ||
9176 | ||
92aff3c7 | 9177 | building_refdocs="no" |
7fbd9d09 | 9178 | # Check whether --enable-refdocs was given. |
1ef0423a | 9179 | if test "${enable_refdocs+set}" = set; then : |
7fbd9d09 | 9180 | enableval=$enable_refdocs; enable_refdocs=$enableval |
92aff3c7 WC |
9181 | else |
9182 | enable_refdocs="check" | |
7fbd9d09 FCE |
9183 | fi |
9184 | ||
92aff3c7 | 9185 | if test "$building_docs" == "no" -a "$enable_refdocs" == "yes" ; then |
5d4aa1f5 | 9186 | as_fn_error $? "must use --enable-docs with --enable-refdocs" "$LINENO" 5 |
92aff3c7 WC |
9187 | fi |
9188 | # Extract the first word of "xmlto", so it can be a program name with args. | |
9189 | set dummy xmlto; ac_word=$2 | |
1ef0423a | 9190 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
0710d850 | 9191 | $as_echo_n "checking for $ac_word... " >&6; } |
c3de29bd | 9192 | if ${ac_cv_prog_have_xmlto+:} false; then : |
0710d850 | 9193 | $as_echo_n "(cached) " >&6 |
92aff3c7 WC |
9194 | else |
9195 | if test -n "$have_xmlto"; then | |
9196 | ac_cv_prog_have_xmlto="$have_xmlto" # Let the user override the test. | |
9197 | else | |
9198 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9199 | for as_dir in $PATH | |
9200 | do | |
9201 | IFS=$as_save_IFS | |
9202 | test -z "$as_dir" && as_dir=. | |
1ef0423a | 9203 | for ac_exec_ext in '' $ac_executable_extensions; do |
7fbd9d09 | 9204 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
92aff3c7 | 9205 | ac_cv_prog_have_xmlto="yes" |
1ef0423a | 9206 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
92aff3c7 WC |
9207 | break 2 |
9208 | fi | |
9209 | done | |
1ef0423a | 9210 | done |
7fbd9d09 | 9211 | IFS=$as_save_IFS |
92aff3c7 WC |
9212 | |
9213 | test -z "$ac_cv_prog_have_xmlto" && ac_cv_prog_have_xmlto="no" | |
9214 | fi | |
9215 | fi | |
9216 | have_xmlto=$ac_cv_prog_have_xmlto | |
9217 | if test -n "$have_xmlto"; then | |
1ef0423a | 9218 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_xmlto" >&5 |
0710d850 | 9219 | $as_echo "$have_xmlto" >&6; } |
92aff3c7 | 9220 | else |
1ef0423a | 9221 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
0710d850 | 9222 | $as_echo "no" >&6; } |
92aff3c7 WC |
9223 | fi |
9224 | ||
7fbd9d09 | 9225 | |
ccf8bc85 EM |
9226 | if test "$enable_refdocs" == "yes"; then |
9227 | if test "x${have_xmlto}" != "xyes"; then | |
5d4aa1f5 | 9228 | as_fn_error $? "cannot find xmlto for building reference documentation" "$LINENO" 5 |
ccf8bc85 EM |
9229 | fi |
9230 | fi | |
9231 | if test "x${have_xmlto}" == "xyes" -a "$enable_refdocs" != "no" -a "${building_docs}" == "yes"; then | |
9232 | building_refdocs="yes" | |
9233 | fi | |
9234 | if test "$building_refdocs" == "yes"; then | |
9235 | BUILD_REFDOCS_TRUE= | |
9236 | BUILD_REFDOCS_FALSE='#' | |
9237 | else | |
9238 | BUILD_REFDOCS_TRUE='#' | |
9239 | BUILD_REFDOCS_FALSE= | |
9240 | fi | |
9241 | ||
9242 | ||
468abaf4 | 9243 | cat > conftest.xml << 'EOF' |
aa5951be WC |
9244 | <?xml version="1.0" encoding="UTF-8"?> |
9245 | <!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN" | |
9246 | "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd" > | |
468abaf4 FCE |
9247 | <book lang="en"> |
9248 | <bookinfo><title>foo</title></bookinfo> | |
a8fcf687 MW |
9249 | <chapter id="logging.stp"><title>Logging Tapset</title> |
9250 | <refentry id="API-log"><refnamediv><refname>log</refname> | |
9251 | <refpurpose>logging</refpurpose></refnamediv> | |
9252 | <refsect1><title>Description</title> | |
9253 | <para>baz</para></refsect1></refentry></chapter> | |
aa5951be WC |
9254 | </book> |
9255 | EOF | |
468abaf4 FCE |
9256 | |
9257 | if test "x${have_xmlto}" == "xyes"; then | |
1ef0423a | 9258 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlto --stringparam support" >&5 |
0710d850 | 9259 | $as_echo_n "checking for xmlto --stringparam support... " >&6; } |
4b5627b1 | 9260 | xmlto --stringparam man.authors.section.enabled=0 html-nochunks conftest.xml >/dev/null 2>&1 |
468abaf4 FCE |
9261 | if test $? == 0; then |
9262 | have_xmlto_stringparam="yes" | |
1ef0423a | 9263 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
0710d850 | 9264 | $as_echo "yes" >&6; } |
468abaf4 | 9265 | else |
1ef0423a | 9266 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
0710d850 | 9267 | $as_echo "no" >&6; } |
468abaf4 | 9268 | fi |
4b5627b1 | 9269 | rm -f conftest.html |
468abaf4 FCE |
9270 | fi |
9271 | if test "$have_xmlto_stringparam" == "yes"; then | |
9272 | XMLTO_STRINGPARAM_TRUE= | |
9273 | XMLTO_STRINGPARAM_FALSE='#' | |
9274 | else | |
9275 | XMLTO_STRINGPARAM_TRUE='#' | |
9276 | XMLTO_STRINGPARAM_FALSE= | |
9277 | fi | |
9278 | ||
9279 | ||
9280 | if test "x${building_refdocs}" == "xyes"; then | |
1ef0423a | 9281 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlto pdf support" >&5 |
0710d850 | 9282 | $as_echo_n "checking for xmlto pdf support... " >&6; } |
468abaf4 | 9283 | xmlto pdf conftest.xml >& /dev/null |
aa5951be WC |
9284 | if test $? == 0; then |
9285 | have_xmlto_pdf="yes" | |
1ef0423a | 9286 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
0710d850 | 9287 | $as_echo "yes" >&6; } |
aa5951be | 9288 | else |
1ef0423a | 9289 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
0710d850 | 9290 | $as_echo "no" >&6; } |
1ef0423a | 9291 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Not building reference documentation in PDF format" >&5 |
0710d850 | 9292 | $as_echo "$as_me: WARNING: Not building reference documentation in PDF format" >&2;} |
aa5951be | 9293 | fi |
468abaf4 | 9294 | rm -f conftest.pdf |
aa5951be | 9295 | fi |
a8fcf687 | 9296 | if test "$have_xmlto_pdf" == "yes"; then |
ccf8bc85 EM |
9297 | BUILD_PDFREFDOCS_TRUE= |
9298 | BUILD_PDFREFDOCS_FALSE='#' | |
92aff3c7 | 9299 | else |
ccf8bc85 EM |
9300 | BUILD_PDFREFDOCS_TRUE='#' |
9301 | BUILD_PDFREFDOCS_FALSE= | |
92aff3c7 WC |
9302 | fi |
9303 | ||
9304 | ||
468abaf4 FCE |
9305 | rm -f conftest.xml |
9306 | ||
a0e2728a | 9307 | |
28f121c3 DEP |
9308 | # Check whether --with-nss was given. |
9309 | if test "${with_nss+set}" = set; then : | |
9310 | withval=$with_nss; | |
a0e2728a DB |
9311 | fi |
9312 | ||
9313 | ||
1087b83f TM |
9314 | |
9315 | ||
5d4aa1f5 FCE |
9316 | |
9317 | ||
9318 | ||
9319 | ||
1087b83f TM |
9320 | if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then |
9321 | if test -n "$ac_tool_prefix"; then | |
9322 | # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. | |
9323 | set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 | |
1ef0423a | 9324 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
0710d850 | 9325 | $as_echo_n "checking for $ac_word... " >&6; } |
c3de29bd | 9326 | if ${ac_cv_path_PKG_CONFIG+:} false; then : |
0710d850 | 9327 | $as_echo_n "(cached) " >&6 |
1087b83f TM |
9328 | else |
9329 | case $PKG_CONFIG in | |
9330 | [\\/]* | ?:[\\/]*) | |
9331 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
9332 | ;; | |
9333 | *) | |
9334 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9335 | for as_dir in $PATH | |
9336 | do | |
9337 | IFS=$as_save_IFS | |
9338 | test -z "$as_dir" && as_dir=. | |
1ef0423a | 9339 | for ac_exec_ext in '' $ac_executable_extensions; do |
1087b83f TM |
9340 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
9341 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
1ef0423a | 9342 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1087b83f TM |
9343 | break 2 |
9344 | fi | |
9345 | done | |
1ef0423a | 9346 | done |
1087b83f TM |
9347 | IFS=$as_save_IFS |
9348 | ||
9349 | ;; | |
9350 | esac | |
9351 | fi | |
9352 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
9353 | if test -n "$PKG_CONFIG"; then | |
1ef0423a | 9354 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 |
0710d850 | 9355 | $as_echo "$PKG_CONFIG" >&6; } |
1087b83f | 9356 | else |
1ef0423a | 9357 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
0710d850 | 9358 | $as_echo "no" >&6; } |
1087b83f TM |
9359 | fi |
9360 | ||
9361 | ||
9362 | fi | |
9363 | if test -z "$ac_cv_path_PKG_CONFIG"; then | |
9364 | ac_pt_PKG_CONFIG=$PKG_CONFIG | |
9365 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
9366 | set dummy pkg-config; ac_word=$2 | |
1ef0423a | 9367 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
0710d850 | 9368 | $as_echo_n "checking for $ac_word... " >&6; } |
c3de29bd | 9369 | if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : |
0710d850 | 9370 | $as_echo_n "(cached) " >&6 |
1087b83f TM |
9371 | else |
9372 | case $ac_pt_PKG_CONFIG in | |
9373 | [\\/]* | ?:[\\/]*) | |
9374 | ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. | |
9375 | ;; | |
9376 | *) | |
9377 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9378 | for as_dir in $PATH | |
9379 | do | |
9380 | IFS=$as_save_IFS | |
9381 | test -z "$as_dir" && as_dir=. | |
1ef0423a | 9382 | for ac_exec_ext in '' $ac_executable_extensions; do |
1087b83f TM |
9383 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
9384 | ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
1ef0423a | 9385 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1087b83f TM |
9386 | break 2 |
9387 | fi | |
9388 | done | |
1ef0423a | 9389 | done |
1087b83f TM |
9390 | IFS=$as_save_IFS |
9391 | ||
9392 | ;; | |
9393 | esac | |
9394 | fi | |
9395 | ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG | |
9396 | if test -n "$ac_pt_PKG_CONFIG"; then | |
1ef0423a | 9397 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 |
0710d850 | 9398 | $as_echo "$ac_pt_PKG_CONFIG" >&6; } |
1087b83f | 9399 | else |
1ef0423a | 9400 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
0710d850 | 9401 | $as_echo "no" >&6; } |
1087b83f TM |
9402 | fi |
9403 | ||
9404 | if test "x$ac_pt_PKG_CONFIG" = x; then | |
9405 | PKG_CONFIG="" | |
9406 | else | |
9407 | case $cross_compiling:$ac_tool_warned in | |
9408 | yes:) | |
1ef0423a | 9409 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
0710d850 | 9410 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
1087b83f TM |
9411 | ac_tool_warned=yes ;; |
9412 | esac | |
9413 | PKG_CONFIG=$ac_pt_PKG_CONFIG | |
9414 | fi | |
9415 | else | |
9416 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" | |
9417 | fi | |
9418 | ||
9419 | fi | |
9420 | if test -n "$PKG_CONFIG"; then | |
9421 | _pkg_min_version=0.9.0 | |
1ef0423a | 9422 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 |
0710d850 | 9423 | $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } |
1087b83f | 9424 | if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then |
1ef0423a | 9425 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
0710d850 | 9426 | $as_echo "yes" >&6; } |
1087b83f | 9427 | else |
1ef0423a | 9428 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
0710d850 | 9429 | $as_echo "no" >&6; } |
1087b83f TM |
9430 | PKG_CONFIG="" |
9431 | fi | |
1087b83f | 9432 | fi |
28f121c3 DEP |
9433 | if test "x$with_nss" != "xno"; then : |
9434 | ||
9435 | ||
9436 | pkg_failed=no | |
9437 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nss" >&5 | |
9438 | $as_echo_n "checking for nss... " >&6; } | |
9439 | ||
9440 | if test -n "$nss_CFLAGS"; then | |
9441 | pkg_cv_nss_CFLAGS="$nss_CFLAGS" | |
9442 | elif test -n "$PKG_CONFIG"; then | |
9443 | if test -n "$PKG_CONFIG" && \ | |
9444 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"nss >= 3\""; } >&5 | |
9445 | ($PKG_CONFIG --exists --print-errors "nss >= 3") 2>&5 | |
9446 | ac_status=$? | |
9447 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
9448 | test $ac_status = 0; }; then | |
9449 | pkg_cv_nss_CFLAGS=`$PKG_CONFIG --cflags "nss >= 3" 2>/dev/null` | |
9450 | else | |
9451 | pkg_failed=yes | |
9452 | fi | |
9453 | else | |
9454 | pkg_failed=untried | |
9455 | fi | |
9456 | if test -n "$nss_LIBS"; then | |
9457 | pkg_cv_nss_LIBS="$nss_LIBS" | |
9458 | elif test -n "$PKG_CONFIG"; then | |
9459 | if test -n "$PKG_CONFIG" && \ | |
9460 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"nss >= 3\""; } >&5 | |
9461 | ($PKG_CONFIG --exists --print-errors "nss >= 3") 2>&5 | |
9462 | ac_status=$? | |
9463 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
9464 | test $ac_status = 0; }; then | |
9465 | pkg_cv_nss_LIBS=`$PKG_CONFIG --libs "nss >= 3" 2>/dev/null` | |
9466 | else | |
9467 | pkg_failed=yes | |
9468 | fi | |
9469 | else | |
9470 | pkg_failed=untried | |
9471 | fi | |
9472 | ||
9473 | ||
9474 | ||
9475 | if test $pkg_failed = yes; then | |
9476 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
9477 | $as_echo "no" >&6; } | |
9478 | ||
9479 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
9480 | _pkg_short_errors_supported=yes | |
9481 | else | |
9482 | _pkg_short_errors_supported=no | |
9483 | fi | |
9484 | if test $_pkg_short_errors_supported = yes; then | |
9485 | nss_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "nss >= 3" 2>&1` | |
9486 | else | |
9487 | nss_PKG_ERRORS=`$PKG_CONFIG --print-errors "nss >= 3" 2>&1` | |
9488 | fi | |
9489 | # Put the nasty error message in config.log where it belongs | |
9490 | echo "$nss_PKG_ERRORS" >&5 | |
9491 | ||
9492 | have_nss=no | |
9493 | elif test $pkg_failed = untried; then | |
9494 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
9495 | $as_echo "no" >&6; } | |
9496 | have_nss=no | |
9497 | else | |
9498 | nss_CFLAGS=$pkg_cv_nss_CFLAGS | |
9499 | nss_LIBS=$pkg_cv_nss_LIBS | |
9500 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
9501 | $as_echo "yes" >&6; } | |
9502 | have_nss=yes | |
9503 | ||
9504 | $as_echo "#define HAVE_NSS 1" >>confdefs.h | |
9505 | ||
9506 | ||
9507 | fi | |
9508 | ||
9509 | else | |
9510 | have_nss=no | |
9511 | fi | |
9512 | ||
9513 | if test "${have_nss}" = "yes"; then | |
9514 | HAVE_NSS_TRUE= | |
9515 | HAVE_NSS_FALSE='#' | |
9516 | else | |
9517 | HAVE_NSS_TRUE='#' | |
9518 | HAVE_NSS_FALSE= | |
9519 | fi | |
9520 | ||
9521 | ||
9522 | # Check whether --enable-server was given. | |
9523 | if test "${enable_server+set}" = set; then : | |
9524 | enableval=$enable_server; enable_server=$enableval | |
9525 | else | |
9526 | enable_server="check" | |
9527 | fi | |
9528 | ||
9529 | ||
9530 | if test "$enable_server" != "no"; then | |
9531 | if test "x${have_nss}" != "xyes"; then | |
9532 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: will not build systemtap compile server, cannot find nss headers" >&5 | |
9533 | $as_echo "$as_me: WARNING: will not build systemtap compile server, cannot find nss headers" >&2;} | |
9534 | fi | |
9535 | fi | |
9536 | if test "${have_nss}" == "yes" -a "$enable_server" != "no"; then | |
9537 | BUILD_SERVER_TRUE= | |
9538 | BUILD_SERVER_FALSE='#' | |
9539 | else | |
9540 | BUILD_SERVER_TRUE='#' | |
9541 | BUILD_SERVER_FALSE= | |
9542 | fi | |
9543 | ||
9544 | ||
9545 | if test "${have_nss}" != "yes"; then | |
9546 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: some compile server client functionality will be restricted, cannot find nss development files" >&5 | |
9547 | $as_echo "$as_me: WARNING: some compile server client functionality will be restricted, cannot find nss development files" >&2;} | |
9548 | fi | |
9549 | ||
9550 | ||
9551 | # Check whether --with-avahi was given. | |
9552 | if test "${with_avahi+set}" = set; then : | |
9553 | withval=$with_avahi; | |
9554 | fi | |
9555 | ||
9556 | ||
9557 | if test "x$with_avahi" != "xno"; then : | |
9558 | ||
9559 | ||
9560 | pkg_failed=no | |
9561 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for avahi" >&5 | |
9562 | $as_echo_n "checking for avahi... " >&6; } | |
9563 | ||
9564 | if test -n "$avahi_CFLAGS"; then | |
9565 | pkg_cv_avahi_CFLAGS="$avahi_CFLAGS" | |
9566 | elif test -n "$PKG_CONFIG"; then | |
9567 | if test -n "$PKG_CONFIG" && \ | |
9568 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"avahi-client\""; } >&5 | |
9569 | ($PKG_CONFIG --exists --print-errors "avahi-client") 2>&5 | |
9570 | ac_status=$? | |
9571 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
9572 | test $ac_status = 0; }; then | |
9573 | pkg_cv_avahi_CFLAGS=`$PKG_CONFIG --cflags "avahi-client" 2>/dev/null` | |
9574 | else | |
9575 | pkg_failed=yes | |
9576 | fi | |
9577 | else | |
9578 | pkg_failed=untried | |
9579 | fi | |
9580 | if test -n "$avahi_LIBS"; then | |
9581 | pkg_cv_avahi_LIBS="$avahi_LIBS" | |
9582 | elif test -n "$PKG_CONFIG"; then | |
9583 | if test -n "$PKG_CONFIG" && \ | |
9584 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"avahi-client\""; } >&5 | |
9585 | ($PKG_CONFIG --exists --print-errors "avahi-client") 2>&5 | |
9586 | ac_status=$? | |
9587 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
9588 | test $ac_status = 0; }; then | |
9589 | pkg_cv_avahi_LIBS=`$PKG_CONFIG --libs "avahi-client" 2>/dev/null` | |
9590 | else | |
9591 | pkg_failed=yes | |
9592 | fi | |
9593 | else | |
9594 | pkg_failed=untried | |
9595 | fi | |
9596 | ||
9597 | ||
9598 | ||
9599 | if test $pkg_failed = yes; then | |
9600 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
9601 | $as_echo "no" >&6; } | |
9602 | ||
9603 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
9604 | _pkg_short_errors_supported=yes | |
9605 | else | |
9606 | _pkg_short_errors_supported=no | |
9607 | fi | |
9608 | if test $_pkg_short_errors_supported = yes; then | |
9609 | avahi_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "avahi-client" 2>&1` | |
9610 | else | |
9611 | avahi_PKG_ERRORS=`$PKG_CONFIG --print-errors "avahi-client" 2>&1` | |
9612 | fi | |
9613 | # Put the nasty error message in config.log where it belongs | |
9614 | echo "$avahi_PKG_ERRORS" >&5 | |
9615 | ||
9616 | have_avahi=no | |
9617 | elif test $pkg_failed = untried; then | |
9618 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
9619 | $as_echo "no" >&6; } | |
9620 | have_avahi=no | |
9621 | else | |
9622 | avahi_CFLAGS=$pkg_cv_avahi_CFLAGS | |
9623 | avahi_LIBS=$pkg_cv_avahi_LIBS | |
9624 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
9625 | $as_echo "yes" >&6; } | |
9626 | have_avahi=yes | |
9627 | ||
9628 | $as_echo "#define HAVE_AVAHI 1" >>confdefs.h | |
9629 | ||
9630 | ||
9631 | fi | |
9632 | ||
9633 | else | |
9634 | have_avahi=no | |
9635 | fi | |
9636 | ||
9637 | if test "${have_avahi}" = "yes"; then | |
9638 | HAVE_AVAHI_TRUE= | |
9639 | HAVE_AVAHI_FALSE='#' | |
9640 | else | |
9641 | HAVE_AVAHI_TRUE='#' | |
9642 | HAVE_AVAHI_FALSE= | |
9643 | fi | |
9644 | ||
9645 | ||
9646 | if test "${have_avahi}" != "yes"; then | |
9647 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: some compile-server functionality will be restricted, cannot find avahi development files" >&5 | |
9648 | $as_echo "$as_me: WARNING: some compile-server functionality will be restricted, cannot find avahi development files" >&2;} | |
9649 | fi | |
9650 | ||
9651 | # Check whether --enable-grapher was given. | |
9652 | if test "${enable_grapher+set}" = set; then : | |
9653 | enableval=$enable_grapher; | |
9654 | else | |
9655 | enable_grapher="check" | |
9656 | fi | |
f8a49389 DS |
9657 | |
9658 | ac_ext=cpp | |
9659 | ac_cpp='$CXXCPP $CPPFLAGS' | |
9660 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
9661 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
9662 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
1ef0423a | 9663 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 |
0710d850 | 9664 | $as_echo_n "checking how to run the C++ preprocessor... " >&6; } |
f8a49389 | 9665 | if test -z "$CXXCPP"; then |
c3de29bd | 9666 | if ${ac_cv_prog_CXXCPP+:} false; then : |
0710d850 | 9667 | $as_echo_n "(cached) " >&6 |
f8a49389 DS |
9668 | else |
9669 | # Double quotes because CXXCPP needs to be expanded | |
9670 | for CXXCPP in "$CXX -E" "/lib/cpp" | |
9671 | do | |
9672 | ac_preproc_ok=false | |
9673 | for ac_cxx_preproc_warn_flag in '' yes | |
9674 | do | |
9675 | # Use a header file that comes with gcc, so configuring glibc | |
9676 | # with a fresh cross-compiler works. | |
9677 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
9678 | # <limits.h> exists even on freestanding compilers. | |
9679 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
9680 | # not just through cpp. "Syntax error" is here to catch this case. | |
1ef0423a | 9681 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
f8a49389 DS |
9682 | /* end confdefs.h. */ |
9683 | #ifdef __STDC__ | |
9684 | # include <limits.h> | |
9685 | #else | |
9686 | # include <assert.h> | |
9687 | #endif | |
9688 | Syntax error | |
9689 | _ACEOF | |
1ef0423a | 9690 | if ac_fn_cxx_try_cpp "$LINENO"; then : |
5e5aee9f | 9691 | |
1ef0423a | 9692 | else |
f8a49389 DS |
9693 | # Broken: fails on valid input. |
9694 | continue | |
9695 | fi | |
c3de29bd | 9696 | rm -f conftest.err conftest.i conftest.$ac_ext |
f8a49389 DS |
9697 | |
9698 | # OK, works on sane cases. Now check whether nonexistent headers | |
9699 | # can be detected and how. | |
1ef0423a | 9700 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
f8a49389 DS |
9701 | /* end confdefs.h. */ |
9702 | #include <ac_nonexistent.h> | |
9703 | _ACEOF | |
1ef0423a | 9704 | if ac_fn_cxx_try_cpp "$LINENO"; then : |
f8a49389 DS |
9705 | # Broken: success on invalid input. |
9706 | continue | |
9707 | else | |
f8a49389 DS |
9708 | # Passes both tests. |
9709 | ac_preproc_ok=: | |
9710 | break | |
9711 | fi | |
c3de29bd | 9712 | rm -f conftest.err conftest.i conftest.$ac_ext |
f8a49389 DS |
9713 | |
9714 | done | |
9715 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
c3de29bd | 9716 | rm -f conftest.i conftest.err conftest.$ac_ext |
1ef0423a | 9717 | if $ac_preproc_ok; then : |
f8a49389 DS |
9718 | break |
9719 | fi | |
9720 | ||
9721 | done | |
9722 | ac_cv_prog_CXXCPP=$CXXCPP | |
9723 | ||
9724 | fi | |
9725 | CXXCPP=$ac_cv_prog_CXXCPP | |
9726 | else | |
9727 | ac_cv_prog_CXXCPP=$CXXCPP | |
9728 | fi | |
1ef0423a | 9729 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 |
0710d850 | 9730 | $as_echo "$CXXCPP" >&6; } |
f8a49389 DS |
9731 | ac_preproc_ok=false |
9732 | for ac_cxx_preproc_warn_flag in '' yes | |
9733 | do | |
9734 | # Use a header file that comes with gcc, so configuring glibc | |
9735 | # with a fresh cross-compiler works. | |
9736 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
9737 | # <limits.h> exists even on freestanding compilers. | |
9738 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
9739 | # not just through cpp. "Syntax error" is here to catch this case. | |
1ef0423a | 9740 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
f8a49389 DS |
9741 | /* end confdefs.h. */ |
9742 | #ifdef __STDC__ | |
9743 | # include <limits.h> | |
9744 | #else | |
9745 | # include <assert.h> | |
9746 | #endif | |
9747 | Syntax error | |
9748 | _ACEOF | |
1ef0423a | 9749 | if ac_fn_cxx_try_cpp "$LINENO"; then : |
5e5aee9f | 9750 | |
1ef0423a | 9751 | else |
f8a49389 DS |
9752 | # Broken: fails on valid input. |
9753 | continue | |
9754 | fi | |
c3de29bd | 9755 | rm -f conftest.err conftest.i conftest.$ac_ext |
f8a49389 DS |
9756 | |
9757 | # OK, works on sane cases. Now check whether nonexistent headers | |
9758 | # can be detected and how. | |
1ef0423a | 9759 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
f8a49389 DS |
9760 | /* end confdefs.h. */ |
9761 | #include <ac_nonexistent.h> | |
9762 | _ACEOF | |
1ef0423a | 9763 | if ac_fn_cxx_try_cpp "$LINENO"; then : |
f8a49389 DS |
9764 | # Broken: success on invalid input. |
9765 | continue | |
9766 | else | |
f8a49389 DS |
9767 | # Passes both tests. |
9768 | ac_preproc_ok=: | |
9769 | break | |
9770 | fi | |
c3de29bd | 9771 | rm -f conftest.err conftest.i conftest.$ac_ext |
f8a49389 DS |
9772 | |
9773 | done | |
9774 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
c3de29bd | 9775 | rm -f conftest.i conftest.err conftest.$ac_ext |
1ef0423a FCE |
9776 | if $ac_preproc_ok; then : |
9777 | ||
f8a49389 | 9778 | else |
1ef0423a | 9779 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
0710d850 | 9780 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
5d4aa1f5 FCE |
9781 | as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check |
9782 | See \`config.log' for more details" "$LINENO" 5; } | |
f8a49389 DS |
9783 | fi |
9784 | ||
9785 | ac_ext=cpp | |
9786 | ac_cpp='$CXXCPP $CPPFLAGS' | |
9787 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
9788 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
9789 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
9790 | ||
9791 | ||
1ef0423a | 9792 | if test "x$enable_grapher" != xno; then : |
1087b83f | 9793 | |
f8a49389 | 9794 | |
1087b83f | 9795 | pkg_failed=no |
1ef0423a | 9796 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gtkmm" >&5 |
0710d850 DS |
9797 | $as_echo_n "checking for gtkmm... " >&6; } |
9798 | ||
6462165c JS |
9799 | if test -n "$gtkmm_CFLAGS"; then |
9800 | pkg_cv_gtkmm_CFLAGS="$gtkmm_CFLAGS" | |
9801 | elif test -n "$PKG_CONFIG"; then | |
9802 | if test -n "$PKG_CONFIG" && \ | |
1ef0423a | 9803 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtkmm-2.4 >= 2.8.0\""; } >&5 |
f8a49389 | 9804 | ($PKG_CONFIG --exists --print-errors "gtkmm-2.4 >= 2.8.0") 2>&5 |
1087b83f | 9805 | ac_status=$? |
1ef0423a FCE |
9806 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
9807 | test $ac_status = 0; }; then | |
f8a49389 | 9808 | pkg_cv_gtkmm_CFLAGS=`$PKG_CONFIG --cflags "gtkmm-2.4 >= 2.8.0" 2>/dev/null` |
1087b83f TM |
9809 | else |
9810 | pkg_failed=yes | |
9811 | fi | |
6462165c JS |
9812 | else |
9813 | pkg_failed=untried | |
1087b83f | 9814 | fi |
6462165c JS |
9815 | if test -n "$gtkmm_LIBS"; then |
9816 | pkg_cv_gtkmm_LIBS="$gtkmm_LIBS" | |
9817 | elif test -n "$PKG_CONFIG"; then | |
9818 | if test -n "$PKG_CONFIG" && \ | |
1ef0423a | 9819 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtkmm-2.4 >= 2.8.0\""; } >&5 |
f8a49389 | 9820 | ($PKG_CONFIG --exists --print-errors "gtkmm-2.4 >= 2.8.0") 2>&5 |
1087b83f | 9821 | ac_status=$? |
1ef0423a FCE |
9822 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
9823 | test $ac_status = 0; }; then | |
f8a49389 | 9824 | pkg_cv_gtkmm_LIBS=`$PKG_CONFIG --libs "gtkmm-2.4 >= 2.8.0" 2>/dev/null` |
1087b83f TM |
9825 | else |
9826 | pkg_failed=yes | |
9827 | fi | |
6462165c JS |
9828 | else |
9829 | pkg_failed=untried | |
1087b83f TM |
9830 | fi |
9831 | ||
9832 | ||
9833 | ||
9834 | if test $pkg_failed = yes; then | |
5d4aa1f5 FCE |
9835 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9836 | $as_echo "no" >&6; } | |
1087b83f TM |
9837 | |
9838 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
9839 | _pkg_short_errors_supported=yes | |
9840 | else | |
9841 | _pkg_short_errors_supported=no | |
9842 | fi | |
9843 | if test $_pkg_short_errors_supported = yes; then | |
6462165c | 9844 | gtkmm_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "gtkmm-2.4 >= 2.8.0" 2>&1` |
1087b83f | 9845 | else |
6462165c | 9846 | gtkmm_PKG_ERRORS=`$PKG_CONFIG --print-errors "gtkmm-2.4 >= 2.8.0" 2>&1` |
1087b83f TM |
9847 | fi |
9848 | # Put the nasty error message in config.log where it belongs | |
c3f070d9 | 9849 | echo "$gtkmm_PKG_ERRORS" >&5 |
1087b83f | 9850 | |
5d4aa1f5 | 9851 | have_gtkmm="no" |
fcca127c | 9852 | elif test $pkg_failed = untried; then |
5d4aa1f5 FCE |
9853 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9854 | $as_echo "no" >&6; } | |
c3f070d9 | 9855 | have_gtkmm="no" |
1087b83f | 9856 | else |
c3f070d9 DS |
9857 | gtkmm_CFLAGS=$pkg_cv_gtkmm_CFLAGS |
9858 | gtkmm_LIBS=$pkg_cv_gtkmm_LIBS | |
1ef0423a | 9859 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
0710d850 | 9860 | $as_echo "yes" >&6; } |
c3f070d9 DS |
9861 | have_gtkmm="yes" |
9862 | fi | |
1ef0423a FCE |
9863 | if test "x${have_gtkmm}" == "xno" -a x"$enable_grapher" == "xyes"; then : |
9864 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: systemtap cannot find required gtkmm libs (gtkmm24-devel version 2.8.0 or higher may need to be installed)" >&5 | |
0710d850 | 9865 | $as_echo "$as_me: WARNING: systemtap cannot find required gtkmm libs (gtkmm24-devel version 2.8.0 or higher may need to be installed)" >&2;} |
c3f070d9 DS |
9866 | fi |
9867 | ||
f8a49389 | 9868 | |
f8a49389 | 9869 | pkg_failed=no |
1ef0423a | 9870 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libglade" >&5 |
0710d850 DS |
9871 | $as_echo_n "checking for libglade... " >&6; } |
9872 | ||
6462165c JS |
9873 | if test -n "$libglade_CFLAGS"; then |
9874 | pkg_cv_libglade_CFLAGS="$libglade_CFLAGS" | |
9875 | elif test -n "$PKG_CONFIG"; then | |
9876 | if test -n "$PKG_CONFIG" && \ | |
1ef0423a | 9877 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libglademm-2.4 >= 2.6.7\""; } >&5 |
f8a49389 DS |
9878 | ($PKG_CONFIG --exists --print-errors "libglademm-2.4 >= 2.6.7") 2>&5 |
9879 | ac_status=$? | |
1ef0423a FCE |
9880 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
9881 | test $ac_status = 0; }; then | |
f8a49389 DS |
9882 | pkg_cv_libglade_CFLAGS=`$PKG_CONFIG --cflags "libglademm-2.4 >= 2.6.7" 2>/dev/null` |
9883 | else | |
9884 | pkg_failed=yes | |
9885 | fi | |
6462165c JS |
9886 | else |
9887 | pkg_failed=untried | |
f8a49389 | 9888 | fi |
6462165c JS |
9889 | if test -n "$libglade_LIBS"; then |
9890 | pkg_cv_libglade_LIBS="$libglade_LIBS" | |
9891 | elif test -n "$PKG_CONFIG"; then | |
9892 | if test -n "$PKG_CONFIG" && \ | |
1ef0423a | 9893 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libglademm-2.4 >= 2.6.7\""; } >&5 |
f8a49389 DS |
9894 | ($PKG_CONFIG --exists --print-errors "libglademm-2.4 >= 2.6.7") 2>&5 |
9895 | ac_status=$? | |
1ef0423a FCE |
9896 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
9897 | test $ac_status = 0; }; then | |
f8a49389 DS |
9898 | pkg_cv_libglade_LIBS=`$PKG_CONFIG --libs "libglademm-2.4 >= 2.6.7" 2>/dev/null` |
9899 | else | |
9900 | pkg_failed=yes | |
9901 | fi | |
6462165c JS |
9902 | else |
9903 | pkg_failed=untried | |
f8a49389 DS |
9904 | fi |
9905 | ||
9906 | ||
9907 | ||
9908 | if test $pkg_failed = yes; then | |
5d4aa1f5 FCE |
9909 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9910 | $as_echo "no" >&6; } | |
f8a49389 DS |
9911 | |
9912 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
9913 | _pkg_short_errors_supported=yes | |
9914 | else | |
9915 | _pkg_short_errors_supported=no | |
9916 | fi | |
9917 | if test $_pkg_short_errors_supported = yes; then | |
6462165c | 9918 | libglade_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libglademm-2.4 >= 2.6.7" 2>&1` |
f8a49389 | 9919 | else |
6462165c | 9920 | libglade_PKG_ERRORS=`$PKG_CONFIG --print-errors "libglademm-2.4 >= 2.6.7" 2>&1` |
f8a49389 DS |
9921 | fi |
9922 | # Put the nasty error message in config.log where it belongs | |
9923 | echo "$libglade_PKG_ERRORS" >&5 | |
9924 | ||
5d4aa1f5 | 9925 | have_libglade="no" |
fcca127c | 9926 | elif test $pkg_failed = untried; then |
5d4aa1f5 FCE |
9927 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9928 | $as_echo "no" >&6; } | |
f8a49389 DS |
9929 | have_libglade="no" |
9930 | else | |
9931 | libglade_CFLAGS=$pkg_cv_libglade_CFLAGS | |
9932 | libglade_LIBS=$pkg_cv_libglade_LIBS | |
1ef0423a | 9933 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
0710d850 | 9934 | $as_echo "yes" >&6; } |
f8a49389 DS |
9935 | have_libglade="yes" |
9936 | fi | |
1ef0423a FCE |
9937 | if test "x${have_libglade}" == "xno" -a x"$enable_grapher" == "xyes"; then : |
9938 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: systemtap cannot find required libglade libs (libglademm24-devel version 2.6.7 or higher may need to be installed)" >&5 | |
0710d850 | 9939 | $as_echo "$as_me: WARNING: systemtap cannot find required libglade libs (libglademm24-devel version 2.6.7 or higher may need to be installed)" >&2;} |
f8a49389 DS |
9940 | fi |
9941 | ||
f8a49389 DS |
9942 | have_boost_headers="yes" |
9943 | ac_ext=cpp | |
9944 | ac_cpp='$CXXCPP $CPPFLAGS' | |
9945 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
9946 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
9947 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
9948 | ||
1ef0423a FCE |
9949 | for ac_header in boost/algorithm/string.hpp boost/range.hpp |
9950 | do : | |
9951 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
9952 | ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | |
5d4aa1f5 | 9953 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
f8a49389 | 9954 | cat >>confdefs.h <<_ACEOF |
0710d850 | 9955 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
f8a49389 DS |
9956 | _ACEOF |
9957 | ||
9958 | else | |
9959 | have_boost_headers="no" | |
9960 | fi | |
9961 | ||
9962 | done | |
9963 | ||
9964 | ac_ext=c | |
9965 | ac_cpp='$CPP $CPPFLAGS' | |
9966 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
9967 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
9968 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
9969 | ||
1ef0423a FCE |
9970 | if test "x${have_boost_headers}" == "xno" -a x"$enable_grapher" == "xyes"; then : |
9971 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find required boost headers (boost-devel may need to be installed)" >&5 | |
0710d850 | 9972 | $as_echo "$as_me: WARNING: cannot find required boost headers (boost-devel may need to be installed)" >&2;} |
f8a49389 DS |
9973 | fi |
9974 | ||
1ef0423a | 9975 | if test "x${have_gtkmm}${have_libglade}${have_boost_headers}" == "xyesyesyes"; then : |
f8a49389 DS |
9976 | have_grapher_reqs="yes" |
9977 | else | |
9978 | have_grapher_reqs="no" | |
9979 | fi | |
9980 | ||
f8a49389 | 9981 | fi |
1ef0423a | 9982 | if test "x${have_grapher_reqs}" == "xno" -a x"$enable_grapher" == "xyes"; then : |
5d4aa1f5 | 9983 | as_fn_error $? "systemtap cannot find grapher build requirements (gtkmm, libglade, and boost headers)" "$LINENO" 5 |
f8a49389 | 9984 | fi |
f8a49389 DS |
9985 | if test "x${have_grapher_reqs}" == "xyes" -a x"$enable_grapher" != "xno"; then |
9986 | BUILD_GRAPHER_TRUE= | |
9987 | BUILD_GRAPHER_FALSE='#' | |
9988 | else | |
9989 | BUILD_GRAPHER_TRUE='#' | |
9990 | BUILD_GRAPHER_FALSE= | |
9991 | fi | |
1087b83f TM |
9992 | |
9993 | ||
2ed04863 WC |
9994 | |
9995 | # Check whether --with-rpm was given. | |
1ef0423a | 9996 | if test "${with_rpm+set}" = set; then : |
2ed04863 WC |
9997 | withval=$with_rpm; |
9998 | else | |
9999 | with_rpm="auto" | |
10000 | fi | |
10001 | ||
bcfa72ed | 10002 | if test "$with_rpm" != "no"; then |
1ef0423a | 10003 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rpmtsInitIterator in -lrpm" >&5 |
bcfa72ed | 10004 | $as_echo_n "checking for rpmtsInitIterator in -lrpm... " >&6; } |
c3de29bd | 10005 | if ${ac_cv_lib_rpm_rpmtsInitIterator+:} false; then : |
bcfa72ed | 10006 | $as_echo_n "(cached) " >&6 |
e6364d79 | 10007 | else |
bcfa72ed FCE |
10008 | ac_check_lib_save_LIBS=$LIBS |
10009 | LIBS="-lrpm $LIBS" | |
1ef0423a | 10010 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
2ed04863 WC |
10011 | /* end confdefs.h. */ |
10012 | ||
bcfa72ed FCE |
10013 | /* Override any GCC internal prototype to avoid an error. |
10014 | Use char because int might match the return type of a GCC | |
10015 | builtin and then its argument prototype would still apply. */ | |
10016 | #ifdef __cplusplus | |
10017 | extern "C" | |
10018 | #endif | |
10019 | char rpmtsInitIterator (); | |
2ed04863 WC |
10020 | int |
10021 | main () | |
10022 | { | |
bcfa72ed | 10023 | return rpmtsInitIterator (); |
2ed04863 WC |
10024 | ; |
10025 | return 0; | |
10026 | } | |
10027 | _ACEOF | |
1ef0423a | 10028 | if ac_fn_c_try_link "$LINENO"; then : |
5e5aee9f FCE |
10029 | ac_cv_lib_rpm_rpmtsInitIterator=yes |
10030 | else | |
1ef0423a | 10031 | ac_cv_lib_rpm_rpmtsInitIterator=no |
5e5aee9f | 10032 | fi |
1ef0423a FCE |
10033 | rm -f core conftest.err conftest.$ac_objext \ |
10034 | conftest$ac_exeext conftest.$ac_ext | |
5e5aee9f FCE |
10035 | LIBS=$ac_check_lib_save_LIBS |
10036 | fi | |
1ef0423a | 10037 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rpm_rpmtsInitIterator" >&5 |
5e5aee9f | 10038 | $as_echo "$ac_cv_lib_rpm_rpmtsInitIterator" >&6; } |
c3de29bd | 10039 | if test "x$ac_cv_lib_rpm_rpmtsInitIterator" = xyes; then : |
5e5aee9f | 10040 | |
12c1a007 | 10041 | |
1ef0423a | 10042 | $as_echo "#define HAVE_LIBRPM 1" >>confdefs.h |
12c1a007 FCE |
10043 | |
10044 | stap_LIBS="$stap_LIBS -lrpm" | |
10045 | have_librpm="yes" | |
7f9ad862 SC |
10046 | else |
10047 | have_librpm="no" | |
2ed04863 | 10048 | fi |
e6364d79 | 10049 | |
44edbcd6 JS |
10050 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rpmFreeCrypto in -lrpmio" >&5 |
10051 | $as_echo_n "checking for rpmFreeCrypto in -lrpmio... " >&6; } | |
c3de29bd | 10052 | if ${ac_cv_lib_rpmio_rpmFreeCrypto+:} false; then : |
44edbcd6 JS |
10053 | $as_echo_n "(cached) " >&6 |
10054 | else | |
10055 | ac_check_lib_save_LIBS=$LIBS | |
10056 | LIBS="-lrpmio $LIBS" | |
10057 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
10058 | /* end confdefs.h. */ | |
10059 | ||
10060 | /* Override any GCC internal prototype to avoid an error. | |
10061 | Use char because int might match the return type of a GCC | |
10062 | builtin and then its argument prototype would still apply. */ | |
10063 | #ifdef __cplusplus | |
10064 | extern "C" | |
10065 | #endif | |
10066 | char rpmFreeCrypto (); | |
10067 | int | |
10068 | main () | |
10069 | { | |
10070 | return rpmFreeCrypto (); | |
10071 | ; | |
10072 | return 0; | |
10073 | } | |
10074 | _ACEOF | |
10075 | if ac_fn_c_try_link "$LINENO"; then : | |
10076 | ac_cv_lib_rpmio_rpmFreeCrypto=yes | |
10077 | else | |
10078 | ac_cv_lib_rpmio_rpmFreeCrypto=no | |
10079 | fi | |
10080 | rm -f core conftest.err conftest.$ac_objext \ | |
10081 | conftest$ac_exeext conftest.$ac_ext | |
10082 | LIBS=$ac_check_lib_save_LIBS | |
10083 | fi | |
10084 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rpmio_rpmFreeCrypto" >&5 | |
10085 | $as_echo "$ac_cv_lib_rpmio_rpmFreeCrypto" >&6; } | |
c3de29bd | 10086 | if test "x$ac_cv_lib_rpmio_rpmFreeCrypto" = xyes; then : |
44edbcd6 JS |
10087 | |
10088 | ||
10089 | $as_echo "#define HAVE_LIBRPMIO 1" >>confdefs.h | |
10090 | ||
10091 | stap_LIBS="$stap_LIBS -lrpmio" | |
10092 | have_librpmio="yes" | |
10093 | else | |
10094 | have_librpmio="no" | |
10095 | fi | |
10096 | ||
bcfa72ed | 10097 | if test "x$have_librpm" != "xyes" -a "$with_rpm" == "yes"; then |
5d4aa1f5 | 10098 | as_fn_error $? "cannot find librpm" "$LINENO" 5 |
2ed04863 | 10099 | fi |
44edbcd6 JS |
10100 | if test "x$have_librpmio" != "xyes" -a "$with_rpm" == "yes"; then |
10101 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find librpmio" >&5 | |
10102 | $as_echo "$as_me: WARNING: cannot find librpmio" >&2;} | |
10103 | fi | |
2ed04863 WC |
10104 | fi |
10105 | ||
10106 | ||
e8f3c2c2 DS |
10107 | build_elfutils=no |
10108 | ||
7fbd9d09 | 10109 | # Check whether --with-elfutils was given. |
1ef0423a | 10110 | if test "${with_elfutils+set}" = set; then : |
7fbd9d09 | 10111 | withval=$with_elfutils; |
e8f3c2c2 | 10112 | case "$with_elfutils" in |
5d4aa1f5 | 10113 | yes) as_fn_error $? "--with-elfutils requires an argument" "$LINENO" 5 ;; |
e8f3c2c2 DS |
10114 | ''|no) ;; |
10115 | *) build_elfutils=yes ;; | |
10116 | esac | |
7fbd9d09 | 10117 | fi |
e8f3c2c2 | 10118 | |
7fbd9d09 | 10119 | if test $build_elfutils = yes; then |
e8f3c2c2 DS |
10120 | BUILD_ELFUTILS_TRUE= |
10121 | BUILD_ELFUTILS_FALSE='#' | |
10122 | else | |
10123 | BUILD_ELFUTILS_TRUE='#' | |
10124 | BUILD_ELFUTILS_FALSE= | |
10125 | fi | |
10126 | ||
1ef0423a | 10127 | elfutils_abs_srcdir=`if test $build_elfutils = yes; then : |
e8f3c2c2 | 10128 | cd $with_elfutils && pwd |
1ef0423a | 10129 | fi` |
e8f3c2c2 DS |
10130 | |
10131 | ||
efa6ba96 PP |
10132 | if test $enable_translator = yes; then |
10133 | if test $build_elfutils = no; then | |
10134 | # Need libdwfl-capable recent elfutils http://elfutils.fedorahosted.org/ | |
c14263d8 FCE |
10135 | |
10136 | # On modern debian/ubuntu, libebl has been merged into libdw | |
10137 | # http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=457543 | |
10138 | save_LIBS="$LIBS" | |
10139 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ebl_get_elfmachine in -lebl" >&5 | |
10140 | $as_echo_n "checking for ebl_get_elfmachine in -lebl... " >&6; } | |
c3de29bd | 10141 | if ${ac_cv_lib_ebl_ebl_get_elfmachine+:} false; then : |
c14263d8 FCE |
10142 | $as_echo_n "(cached) " >&6 |
10143 | else | |
10144 | ac_check_lib_save_LIBS=$LIBS | |
10145 | LIBS="-lebl $LIBS" | |
10146 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
10147 | /* end confdefs.h. */ | |
10148 | ||
10149 | /* Override any GCC internal prototype to avoid an error. | |
10150 | Use char because int might match the return type of a GCC | |
10151 | builtin and then its argument prototype would still apply. */ | |
10152 | #ifdef __cplusplus | |
10153 | extern "C" | |
10154 | #endif | |
10155 | char ebl_get_elfmachine (); | |
10156 | int | |
10157 | main () | |
10158 | { | |
10159 | return ebl_get_elfmachine (); | |
10160 | ; | |
10161 | return 0; | |
10162 | } | |
10163 | _ACEOF | |
10164 | if ac_fn_c_try_link "$LINENO"; then : | |
10165 | ac_cv_lib_ebl_ebl_get_elfmachine=yes | |
10166 | else | |
10167 | ac_cv_lib_ebl_ebl_get_elfmachine=no | |
10168 | fi | |
10169 | rm -f core conftest.err conftest.$ac_objext \ | |
10170 | conftest$ac_exeext conftest.$ac_ext | |
10171 | LIBS=$ac_check_lib_save_LIBS | |
10172 | fi | |
10173 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ebl_ebl_get_elfmachine" >&5 | |
10174 | $as_echo "$ac_cv_lib_ebl_ebl_get_elfmachine" >&6; } | |
c3de29bd | 10175 | if test "x$ac_cv_lib_ebl_ebl_get_elfmachine" = xyes; then : |
c14263d8 FCE |
10176 | ebl_LIBS=-lebl |
10177 | else | |
10178 | ebl_LIBS= | |
10179 | fi | |
10180 | ||
10181 | LIBS="$save_LIBS" | |
10182 | ||
efa6ba96 | 10183 | save_LIBS="$LIBS" |
1ef0423a | 10184 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dwfl_module_getsym in -ldw" >&5 |
0710d850 | 10185 | $as_echo_n "checking for dwfl_module_getsym in -ldw... " >&6; } |
c3de29bd | 10186 | if ${ac_cv_lib_dw_dwfl_module_getsym+:} false; then : |
0710d850 | 10187 | $as_echo_n "(cached) " >&6 |
4645fadb JS |
10188 | else |
10189 | ac_check_lib_save_LIBS=$LIBS | |
c14263d8 | 10190 | LIBS="-ldw -Wl,--start-group -ldw $ebl_LIBS -Wl,--end-group -lelf $LIBS" |
1ef0423a | 10191 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4645fadb JS |
10192 | /* end confdefs.h. */ |
10193 | ||
7fbd9d09 FCE |
10194 | /* Override any GCC internal prototype to avoid an error. |
10195 | Use char because int might match the return type of a GCC | |
10196 | builtin and then its argument prototype would still apply. */ | |
4645fadb JS |
10197 | #ifdef __cplusplus |
10198 | extern "C" | |
10199 | #endif | |
10200 | char dwfl_module_getsym (); | |
10201 | int | |
10202 | main () | |
10203 | { | |
7fbd9d09 | 10204 | return dwfl_module_getsym (); |
4645fadb JS |
10205 | ; |
10206 | return 0; | |
10207 | } | |
10208 | _ACEOF | |
1ef0423a | 10209 | if ac_fn_c_try_link "$LINENO"; then : |
4645fadb JS |
10210 | ac_cv_lib_dw_dwfl_module_getsym=yes |
10211 | else | |
1ef0423a | 10212 | ac_cv_lib_dw_dwfl_module_getsym=no |
4645fadb | 10213 | fi |
1ef0423a FCE |
10214 | rm -f core conftest.err conftest.$ac_objext \ |
10215 | conftest$ac_exeext conftest.$ac_ext | |
4645fadb JS |
10216 | LIBS=$ac_check_lib_save_LIBS |
10217 | fi | |
1ef0423a | 10218 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dw_dwfl_module_getsym" >&5 |
0710d850 | 10219 | $as_echo "$ac_cv_lib_dw_dwfl_module_getsym" >&6; } |
c3de29bd | 10220 | if test "x$ac_cv_lib_dw_dwfl_module_getsym" = xyes; then : |
4645fadb JS |
10221 | cat >>confdefs.h <<_ACEOF |
10222 | #define HAVE_LIBDW 1 | |
10223 | _ACEOF | |
10224 | ||
10225 | LIBS="-ldw $LIBS" | |
10226 | ||
10227 | else | |
10228 | ||
5d4aa1f5 | 10229 | as_fn_error $? "missing elfutils development headers/libraries (install elfutils-devel, libebl-dev, libdw-dev and/or libebl-devel)" "$LINENO" 5 |
4645fadb JS |
10230 | fi |
10231 | ||
e050d62f MW |
10232 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dwarf_getcfi_elf in -ldw" >&5 |
10233 | $as_echo_n "checking for dwarf_getcfi_elf in -ldw... " >&6; } | |
c3de29bd | 10234 | if ${ac_cv_lib_dw_dwarf_getcfi_elf+:} false; then : |
0710d850 | 10235 | $as_echo_n "(cached) " >&6 |
87cb1275 MW |
10236 | else |
10237 | ac_check_lib_save_LIBS=$LIBS | |
c14263d8 | 10238 | LIBS="-ldw -Wl,--start-group -ldw $ebl_LIBS -Wl,--end-group -lelf $LIBS" |
1ef0423a | 10239 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
87cb1275 MW |
10240 | /* end confdefs.h. */ |
10241 | ||
7fbd9d09 FCE |
10242 | /* Override any GCC internal prototype to avoid an error. |
10243 | Use char because int might match the return type of a GCC | |
10244 | builtin and then its argument prototype would still apply. */ | |
87cb1275 MW |
10245 | #ifdef __cplusplus |
10246 | extern "C" | |
10247 | #endif | |
e050d62f | 10248 | char dwarf_getcfi_elf (); |
87cb1275 MW |
10249 | int |
10250 | main () | |
10251 | { | |
e050d62f | 10252 | return dwarf_getcfi_elf (); |
87cb1275 MW |
10253 | ; |
10254 | return 0; | |
10255 | } | |
10256 | _ACEOF | |
1ef0423a | 10257 | if ac_fn_c_try_link "$LINENO"; then : |
e050d62f | 10258 | ac_cv_lib_dw_dwarf_getcfi_elf=yes |
87cb1275 | 10259 | else |
e050d62f | 10260 | ac_cv_lib_dw_dwarf_getcfi_elf=no |
87cb1275 | 10261 | fi |
1ef0423a FCE |
10262 | rm -f core conftest.err conftest.$ac_objext \ |
10263 | conftest$ac_exeext conftest.$ac_ext | |
87cb1275 MW |
10264 | LIBS=$ac_check_lib_save_LIBS |
10265 | fi | |
e050d62f MW |
10266 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dw_dwarf_getcfi_elf" >&5 |
10267 | $as_echo "$ac_cv_lib_dw_dwarf_getcfi_elf" >&6; } | |
c3de29bd | 10268 | if test "x$ac_cv_lib_dw_dwarf_getcfi_elf" = xyes; then : |
87cb1275 MW |
10269 | cat >>confdefs.h <<_ACEOF |
10270 | #define HAVE_LIBDW 1 | |
10271 | _ACEOF | |
10272 | ||
10273 | LIBS="-ldw $LIBS" | |
10274 | ||
10275 | else | |
10276 | ||
e050d62f | 10277 | as_fn_error $? "elfutils, libdw too old, need 0.142+" "$LINENO" 5 |
87cb1275 MW |
10278 | fi |
10279 | ||
c14263d8 | 10280 | stap_LIBS="$stap_LIBS -Wl,--start-group -ldw $ebl_LIBS -Wl,--end-group -lelf" |
efa6ba96 PP |
10281 | LIBS="$save_LIBS" |
10282 | else | |
10283 | # We built our own and stap_LDFLAGS points at the install. | |
12c1a007 | 10284 | stap_LIBS="$stap_LIBS -Wl,--start-group -ldw -lebl -Wl,--end-group -lelf" |
efa6ba96 | 10285 | fi |
4645fadb JS |
10286 | fi |
10287 | ||
6b1a0274 | 10288 | |
1ef0423a | 10289 | { $as_echo "$as_me:${as_lineno-$LINENO}: stap will link $stap_LIBS" >&5 |
0710d850 | 10290 | $as_echo "$as_me: stap will link $stap_LIBS" >&6;} |
c3a3c0c9 | 10291 | |
cbe7ea07 | 10292 | |
69c68955 FCE |
10293 | date=`date +%Y-%m-%d` |
10294 | ||
10295 | cat >>confdefs.h <<_ACEOF | |
10296 | #define DATE "$date" | |
10297 | _ACEOF | |
10298 | ||
82fab474 | 10299 | DATE="$date" |
69c68955 FCE |
10300 | |
10301 | ||
47f390f9 FCE |
10302 | # Before PR4037, we used to arrange to pass CFLAGS+=-m64 for a staprun |
10303 | # being compiled on 32-bit userspace but running against 64-bit kernels. | |
10304 | # This is no longer necessary. | |
5566993b | 10305 | |
3bf6ac45 | 10306 | # Use tr1/unordered_map if available |
7fbd9d09 | 10307 | ac_ext=cpp |
3bf6ac45 TM |
10308 | ac_cpp='$CXXCPP $CPPFLAGS' |
10309 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
10310 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
10311 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
10312 | ||
3bf6ac45 | 10313 | for ac_header in tr1/unordered_map |
1ef0423a FCE |
10314 | do : |
10315 | ac_fn_cxx_check_header_mongrel "$LINENO" "tr1/unordered_map" "ac_cv_header_tr1_unordered_map" "$ac_includes_default" | |
c3de29bd | 10316 | if test "x$ac_cv_header_tr1_unordered_map" = xyes; then : |
1ef0423a FCE |
10317 | cat >>confdefs.h <<_ACEOF |
10318 | #define HAVE_TR1_UNORDERED_MAP 1 | |
5e5aee9f | 10319 | _ACEOF |
5e5aee9f | 10320 | |
5e5aee9f FCE |
10321 | fi |
10322 | ||
1ef0423a | 10323 | done |
5e5aee9f | 10324 | |
1ef0423a FCE |
10325 | for ac_header in tr1/memory |
10326 | do : | |
10327 | ac_fn_cxx_check_header_mongrel "$LINENO" "tr1/memory" "ac_cv_header_tr1_memory" "$ac_includes_default" | |
c3de29bd | 10328 | if test "x$ac_cv_header_tr1_memory" = xyes; then : |
1ef0423a FCE |
10329 | cat >>confdefs.h <<_ACEOF |
10330 | #define HAVE_TR1_MEMORY 1 | |
5e5aee9f | 10331 | _ACEOF |
5e5aee9f | 10332 | |
5e5aee9f FCE |
10333 | fi |
10334 | ||
1ef0423a | 10335 | done |
5e5aee9f | 10336 | |
1ef0423a FCE |
10337 | for ac_header in boost/shared_ptr.hpp |
10338 | do : | |
10339 | ac_fn_cxx_check_header_mongrel "$LINENO" "boost/shared_ptr.hpp" "ac_cv_header_boost_shared_ptr_hpp" "$ac_includes_default" | |
c3de29bd | 10340 | if test "x$ac_cv_header_boost_shared_ptr_hpp" = xyes; then : |
469c1a1b | 10341 | cat >>confdefs.h <<_ACEOF |
1ef0423a | 10342 | #define HAVE_BOOST_SHARED_PTR_HPP 1 |
469c1a1b FCE |
10343 | _ACEOF |
10344 | ||
10345 | fi | |
10346 | ||
10347 | done | |
10348 | ||
1ef0423a FCE |
10349 | ac_ext=c |
10350 | ac_cpp='$CPP $CPPFLAGS' | |
10351 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
10352 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
10353 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3bf6ac45 TM |
10354 | |
10355 | ||
e016a49a | 10356 | |
f9794ee4 RM |
10357 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for assembler .section \"?\" flags support" >&5 |
10358 | $as_echo_n "checking for assembler .section \"?\" flags support... " >&6; } | |
c3de29bd | 10359 | if ${stap_cv_sectionq+:} false; then : |
f9794ee4 RM |
10360 | $as_echo_n "(cached) " >&6 |
10361 | else | |
10362 | ||
10363 | old_CFLAGS="$CFLAGS" | |
10364 | CFLAGS="$CFLAGS -Wa,--fatal-warnings" | |
10365 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
10366 | /* end confdefs.h. */ | |
10367 | asm(".section .note.foo,\"?\",\"note\"\n" | |
10368 | ".byte 1, 2, 3\n" | |
10369 | ".previous\n" | |
10370 | ".section .text,\"axG\",\"progbits\",foogroup,comdat\n" | |
10371 | ".byte 1\n" | |
10372 | ".pushsection .note.foo,\"?\",\"note\"\n" | |
10373 | ".byte 4, 5, 6\n" | |
10374 | ".popsection\n" | |
10375 | ".byte 2\n"); | |
10376 | _ACEOF | |
10377 | if ac_fn_c_try_compile "$LINENO"; then : | |
10378 | stap_cv_sectionq=yes | |
10379 | else | |
10380 | stap_cv_sectionq=no | |
10381 | fi | |
10382 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
a530cfe0 | 10383 | CFLAGS="$old_CFLAGS" |
f9794ee4 RM |
10384 | fi |
10385 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $stap_cv_sectionq" >&5 | |
10386 | $as_echo "$stap_cv_sectionq" >&6; } | |
10387 | ||
10388 | support_section_question=0 | |
10389 | if test $stap_cv_sectionq = yes; then | |
10390 | support_section_question=1 | |
10391 | fi | |
8f223b3e | 10392 | ac_config_files="$ac_config_files includes/sys/sdt-config.h po/Makefile.in" |
f9794ee4 RM |
10393 | |
10394 | ||
efa6ba96 | 10395 | if test $build_elfutils = yes -a $enable_translator = yes; then |
e016a49a FCE |
10396 | case "$with_elfutils" in |
10397 | /*) elfutils_srcdir="$with_elfutils" ;; | |
10398 | *) elfutils_srcdir="../$with_elfutils" ;; | |
10399 | esac | |
1ef0423a | 10400 | { $as_echo "$as_me:${as_lineno-$LINENO}: running ${elfutils_srcdir}/configure" >&5 |
0710d850 | 10401 | $as_echo "$as_me: running ${elfutils_srcdir}/configure" >&6;} |
29b694a7 DS |
10402 | |
10403 | save_CFLAGS="$CFLAGS" | |
10404 | save_CXXFLAGS="$CXXFLAGS" | |
10405 | CXXFLAGS="$CXXFLAGS -fgnu89-inline" | |
10406 | CFLAGS="$CFLAGS -fgnu89-inline" | |
10407 | gnu89_inline_flag="" | |
1ef0423a FCE |
10408 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
10409 | /* end confdefs.h. */ | |
29b694a7 DS |
10410 | int something (); |
10411 | _ACEOF | |
1ef0423a | 10412 | if ac_fn_c_try_compile "$LINENO"; then : |
29b694a7 | 10413 | |
1ef0423a | 10414 | { $as_echo "$as_me:${as_lineno-$LINENO}: Compiling elfutils with gcc -fgnu89-inline" >&5 |
0710d850 | 10415 | $as_echo "$as_me: Compiling elfutils with gcc -fgnu89-inline" >&6;} |
29b694a7 DS |
10416 | gnu89_inline_flag="-fgnu89-inline" |
10417 | else | |
5e5aee9f | 10418 | |
1ef0423a | 10419 | { $as_echo "$as_me:${as_lineno-$LINENO}: Compiler does not support -fgnu89-inline" >&5 |
0710d850 | 10420 | $as_echo "$as_me: Compiler does not support -fgnu89-inline" >&6;} |
29b694a7 | 10421 | fi |
29b694a7 DS |
10422 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
10423 | CFLAGS="$save_CFLAGS" | |
10424 | CXXFLAGS="$save_CXXFLAGS" | |
10425 | ||
e016a49a FCE |
10426 | # Our libdw.so's libebl will look in $ORIGIN/../lib/... but that |
10427 | # $ORIGIN is where libdw.so resides, which is not where there is a ../lib. | |
10428 | # Note that $libdir might be using a quoted use of $exec_prefix or $prefix. | |
10429 | # So we must make sure to pass those settings to elfutils configure. | |
10430 | elfutils_rpath="-Wl,--enable-new-dtags,-rpath,${libdir}/${PACKAGE_NAME}" | |
10431 | here=`pwd` | |
10432 | (mkdir -p build-elfutils && cd build-elfutils && | |
412e1bf7 | 10433 | bash ${elfutils_srcdir}/configure --enable-libebl-subdir=${PACKAGE_NAME} \ |
e016a49a FCE |
10434 | --includedir="${here}/include-elfutils" \ |
10435 | --libdir="${here}/lib-elfutils" \ | |
10436 | --exec-prefix="$exec_prefix" \ | |
10437 | --prefix="$prefix" \ | |
29b694a7 | 10438 | CFLAGS="${CFLAGS/-Wall/} $gnu89_inline_flag" \ |
e016a49a | 10439 | LDFLAGS="$LDFLAGS $elfutils_rpath" && |
e3633556 | 10440 | if test -f ${elfutils_srcdir}/config/version.h.in; then |
e050d62f MW |
10441 | echo Found elfutils/version.h header... |
10442 | else | |
10443 | echo elfutils/version.h header not found, need elfutils 0.142+... | |
10444 | exit -1 | |
e3633556 | 10445 | fi |
e016a49a | 10446 | ) |
e050d62f | 10447 | if test $? != 0; then exit -1; fi |
1c4cf93d | 10448 | fi |
e016a49a | 10449 | |
62c8a962 FCE |
10450 | ENABLE_NLS="$USE_NLS" |
10451 | ||
10452 | localedir="$localedir" | |
802cd104 | 10453 | |
8f223b3e FCE |
10454 | LOCALEDIR="$localedir" |
10455 | ||
10456 | ||
62c8a962 | 10457 | |
2a1c9b5d FCE |
10458 | stap_prefix=$prefix |
10459 | test "$stap_prefix" = NONE && stap_prefix=$ac_default_prefix | |
50431f30 MW |
10460 | |
10461 | cat >>confdefs.h <<_ACEOF | |
2a1c9b5d | 10462 | #define STAP_PREFIX "$stap_prefix" |
50431f30 MW |
10463 | _ACEOF |
10464 | ||
62c8a962 FCE |
10465 | STAP_PREFIX="$stap_prefix" |
10466 | ||
50431f30 | 10467 | |
7fbd9d09 | 10468 | ac_config_headers="$ac_config_headers config.h:config.in" |
daae650d | 10469 | |
80f2faf4 | 10470 | ac_config_files="$ac_config_files Makefile doc/Makefile doc/beginners/Makefile doc/SystemTap_Tapset_Reference/Makefile grapher/Makefile grapher/stapgraph.1 stappaths.7 initscript/systemtap initscript/stap-server" |
8d9d8fe1 | 10471 | |
0710d850 DS |
10472 | |
10473 | ||
1bb80d04 | 10474 | subdirs="$subdirs testsuite runtime/staprun" |
5ba96b90 | 10475 | |
6d14a4a9 EB |
10476 | if test $enable_translator == "yes"; then |
10477 | ac_config_files="$ac_config_files run-stap" | |
2f62657c | 10478 | |
6d14a4a9 | 10479 | fi |
e4aaabda MW |
10480 | ac_config_files="$ac_config_files dtrace" |
10481 | ||
53ade4da MW |
10482 | |
10483 | # Setup "shadow" directory doc/beginners that has everything setup for | |
10484 | # publican in one directory (through directory links if necessary). | |
10485 | # It would be nice to use AC_CONFIG_LINKS, but automake complains when | |
10486 | # the src is a directory and not a file. | |
10487 | ac_config_files="$ac_config_files doc/beginners/publican.cfg:doc/SystemTap_Beginners_Guide/publican.cfg.in" | |
10488 | ||
10489 | ac_config_commands="$ac_config_commands doc/beginners" | |
10490 | ||
10491 | ||
2f1a1aea FCE |
10492 | cat >confcache <<\_ACEOF |
10493 | # This file is a shell script that caches the results of configure | |
10494 | # tests run on this system so they can be shared between configure | |
10495 | # scripts and configure runs, see configure's option --config-cache. | |
10496 | # It is not useful on other systems. If it contains results you don't | |
10497 | # want to keep, you may remove or edit it. | |
10498 | # | |
10499 | # config.status only pays attention to the cache file if you give it | |
10500 | # the --recheck option to rerun configure. | |
10501 | # | |
10502 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
10503 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
10504 | # following values. | |
10505 | ||
10506 | _ACEOF | |
10507 | ||
10508 | # The following way of writing the cache mishandles newlines in values, | |
10509 | # but we know of no workaround that is simple, portable, and efficient. | |
7fbd9d09 | 10510 | # So, we kill variables containing newlines. |
2f1a1aea FCE |
10511 | # Ultrix sh set writes to stderr and can't be redirected directly, |
10512 | # and sets the high bit in the cache file unless we assign to the vars. | |
7fbd9d09 FCE |
10513 | ( |
10514 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
10515 | eval ac_val=\$$ac_var | |
10516 | case $ac_val in #( | |
10517 | *${as_nl}*) | |
10518 | case $ac_var in #( | |
1ef0423a | 10519 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
0710d850 | 10520 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
7fbd9d09 FCE |
10521 | esac |
10522 | case $ac_var in #( | |
10523 | _ | IFS | as_nl) ;; #( | |
0710d850 | 10524 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
1ef0423a | 10525 | *) { eval $ac_var=; unset $ac_var;} ;; |
7fbd9d09 FCE |
10526 | esac ;; |
10527 | esac | |
10528 | done | |
10529 | ||
2f1a1aea | 10530 | (set) 2>&1 | |
7fbd9d09 FCE |
10531 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
10532 | *${as_nl}ac_space=\ *) | |
1ef0423a FCE |
10533 | # `set' does not quote correctly, so add quotes: double-quote |
10534 | # substitution turns \\\\ into \\, and sed turns \\ into \. | |
2f1a1aea FCE |
10535 | sed -n \ |
10536 | "s/'/'\\\\''/g; | |
10537 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
7fbd9d09 | 10538 | ;; #( |
2f1a1aea FCE |
10539 | *) |
10540 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
7fbd9d09 | 10541 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
2f1a1aea | 10542 | ;; |
7fbd9d09 FCE |
10543 | esac | |
10544 | sort | |
10545 | ) | | |
2f1a1aea | 10546 | sed ' |
7fbd9d09 | 10547 | /^ac_cv_env_/b end |
2f1a1aea | 10548 | t clear |
7fbd9d09 | 10549 | :clear |
2f1a1aea FCE |
10550 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
10551 | t end | |
7fbd9d09 FCE |
10552 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
10553 | :end' >>confcache | |
10554 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
10555 | if test -w "$cache_file"; then | |
c3de29bd | 10556 | if test "x$cache_file" != "x/dev/null"; then |
1ef0423a | 10557 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
0710d850 | 10558 | $as_echo "$as_me: updating cache $cache_file" >&6;} |
c3de29bd LB |
10559 | if test ! -f "$cache_file" || test -h "$cache_file"; then |
10560 | cat confcache >"$cache_file" | |
10561 | else | |
10562 | case $cache_file in #( | |
10563 | */* | ?:*) | |
10564 | mv -f confcache "$cache_file"$$ && | |
10565 | mv -f "$cache_file"$$ "$cache_file" ;; #( | |
10566 | *) | |
10567 | mv -f confcache "$cache_file" ;; | |
10568 | esac | |
10569 | fi | |
10570 | fi | |
2f1a1aea | 10571 | else |
1ef0423a | 10572 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
0710d850 | 10573 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
2f1a1aea FCE |
10574 | fi |
10575 | fi | |
10576 | rm -f confcache | |
10577 | ||
10578 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
10579 | # Let make expand exec_prefix. | |
10580 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
10581 | ||
2f1a1aea FCE |
10582 | DEFS=-DHAVE_CONFIG_H |
10583 | ||
10584 | ac_libobjs= | |
10585 | ac_ltlibobjs= | |
10586 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
10587 | # 1. Remove the extension, and $U if already installed. | |
7fbd9d09 | 10588 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
0710d850 | 10589 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` |
7fbd9d09 FCE |
10590 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
10591 | # will be set to the directory where LIBOBJS objects are built. | |
1ef0423a FCE |
10592 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
10593 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' | |
2f1a1aea FCE |
10594 | done |
10595 | LIBOBJS=$ac_libobjs | |
10596 | ||
10597 | LTLIBOBJS=$ac_ltlibobjs | |
10598 | ||
10599 | ||
0710d850 DS |
10600 | if test -n "$EXEEXT"; then |
10601 | am__EXEEXT_TRUE= | |
10602 | am__EXEEXT_FALSE='#' | |
10603 | else | |
10604 | am__EXEEXT_TRUE='#' | |
10605 | am__EXEEXT_FALSE= | |
10606 | fi | |
10607 | ||
2f1a1aea | 10608 | if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then |
5d4aa1f5 | 10609 | as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. |
1ef0423a | 10610 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
2f1a1aea FCE |
10611 | fi |
10612 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then | |
5d4aa1f5 | 10613 | as_fn_error $? "conditional \"AMDEP\" was never defined. |
1ef0423a | 10614 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
2f1a1aea FCE |
10615 | fi |
10616 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then | |
5d4aa1f5 | 10617 | as_fn_error $? "conditional \"am__fastdepCC\" was never defined. |
1ef0423a | 10618 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
2f1a1aea | 10619 | fi |
8f223b3e | 10620 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then |
5d4aa1f5 | 10621 | as_fn_error $? "conditional \"am__fastdepCC\" was never defined. |
8f223b3e FCE |
10622 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
10623 | fi | |
2f1a1aea | 10624 | if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then |
5d4aa1f5 | 10625 | as_fn_error $? "conditional \"am__fastdepCXX\" was never defined. |
1ef0423a | 10626 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
2f1a1aea FCE |
10627 | fi |
10628 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then | |
5d4aa1f5 | 10629 | as_fn_error $? "conditional \"am__fastdepCC\" was never defined. |
1ef0423a | 10630 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
2f1a1aea | 10631 | fi |
6d14a4a9 | 10632 | if test -z "${BUILD_TRANSLATOR_TRUE}" && test -z "${BUILD_TRANSLATOR_FALSE}"; then |
5d4aa1f5 | 10633 | as_fn_error $? "conditional \"BUILD_TRANSLATOR\" was never defined. |
1ef0423a | 10634 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
6d14a4a9 | 10635 | fi |
e8f3c2c2 | 10636 | if test -z "${BUILD_CRASHMOD_TRUE}" && test -z "${BUILD_CRASHMOD_FALSE}"; then |
5d4aa1f5 | 10637 | as_fn_error $? "conditional \"BUILD_CRASHMOD\" was never defined. |
1ef0423a | 10638 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
4d9087fc | 10639 | fi |
465e8fbf | 10640 | if test -z "${BUILD_DOCS_TRUE}" && test -z "${BUILD_DOCS_FALSE}"; then |
5d4aa1f5 | 10641 | as_fn_error $? "conditional \"BUILD_DOCS\" was never defined. |
1ef0423a | 10642 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
92aff3c7 | 10643 | fi |
53ade4da | 10644 | if test -z "${BUILD_PUBLICAN_TRUE}" && test -z "${BUILD_PUBLICAN_FALSE}"; then |
5d4aa1f5 | 10645 | as_fn_error $? "conditional \"BUILD_PUBLICAN\" was never defined. |
1ef0423a | 10646 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
53ade4da | 10647 | fi |
92aff3c7 | 10648 | if test -z "${BUILD_REFDOCS_TRUE}" && test -z "${BUILD_REFDOCS_FALSE}"; then |
5d4aa1f5 | 10649 | as_fn_error $? "conditional \"BUILD_REFDOCS\" was never defined. |
1ef0423a | 10650 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
468abaf4 FCE |
10651 | fi |
10652 | if test -z "${XMLTO_STRINGPARAM_TRUE}" && test -z "${XMLTO_STRINGPARAM_FALSE}"; then | |
5d4aa1f5 | 10653 | as_fn_error $? "conditional \"XMLTO_STRINGPARAM\" was never defined. |
1ef0423a | 10654 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
19a0d4b6 | 10655 | fi |
ccf8bc85 | 10656 | if test -z "${BUILD_PDFREFDOCS_TRUE}" && test -z "${BUILD_PDFREFDOCS_FALSE}"; then |
5d4aa1f5 | 10657 | as_fn_error $? "conditional \"BUILD_PDFREFDOCS\" was never defined. |
1ef0423a | 10658 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
ccf8bc85 | 10659 | fi |
2035bcd4 | 10660 | if test -z "${HAVE_NSS_TRUE}" && test -z "${HAVE_NSS_FALSE}"; then |
5d4aa1f5 | 10661 | as_fn_error $? "conditional \"HAVE_NSS\" was never defined. |
1ef0423a | 10662 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
465e8fbf | 10663 | fi |
a0e2728a | 10664 | if test -z "${BUILD_SERVER_TRUE}" && test -z "${BUILD_SERVER_FALSE}"; then |
5d4aa1f5 | 10665 | as_fn_error $? "conditional \"BUILD_SERVER\" was never defined. |
a0e2728a DB |
10666 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
10667 | fi | |
2dce8c42 | 10668 | if test -z "${HAVE_AVAHI_TRUE}" && test -z "${HAVE_AVAHI_FALSE}"; then |
5d4aa1f5 | 10669 | as_fn_error $? "conditional \"HAVE_AVAHI\" was never defined. |
1ef0423a | 10670 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
2dce8c42 | 10671 | fi |
1087b83f | 10672 | if test -z "${BUILD_GRAPHER_TRUE}" && test -z "${BUILD_GRAPHER_FALSE}"; then |
5d4aa1f5 | 10673 | as_fn_error $? "conditional \"BUILD_GRAPHER\" was never defined. |
1025c39b DS |
10674 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
10675 | fi | |
e8f3c2c2 | 10676 | if test -z "${BUILD_ELFUTILS_TRUE}" && test -z "${BUILD_ELFUTILS_FALSE}"; then |
5d4aa1f5 | 10677 | as_fn_error $? "conditional \"BUILD_ELFUTILS\" was never defined. |
1ef0423a | 10678 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
35a04c8e | 10679 | fi |
2f1a1aea | 10680 | |
c3de29bd | 10681 | : "${CONFIG_STATUS=./config.status}" |
0710d850 | 10682 | ac_write_fail=0 |
2f1a1aea FCE |
10683 | ac_clean_files_save=$ac_clean_files |
10684 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
1ef0423a | 10685 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
0710d850 | 10686 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} |
1ef0423a FCE |
10687 | as_write_fail=0 |
10688 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 | |
2f1a1aea FCE |
10689 | #! $SHELL |
10690 | # Generated by $as_me. | |
10691 | # Run this file to recreate the current configuration. | |
10692 | # Compiler output produced by configure, useful for debugging | |
10693 | # configure, is in config.log if it exists. | |
10694 | ||
10695 | debug=false | |
10696 | ac_cs_recheck=false | |
10697 | ac_cs_silent=false | |
5e5aee9f | 10698 | |
1ef0423a FCE |
10699 | SHELL=\${CONFIG_SHELL-$SHELL} |
10700 | export SHELL | |
10701 | _ASEOF | |
10702 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 | |
10703 | ## -------------------- ## | |
10704 | ## M4sh Initialization. ## | |
10705 | ## -------------------- ## | |
2f1a1aea | 10706 | |
7fbd9d09 FCE |
10707 | # Be more Bourne compatible |
10708 | DUALCASE=1; export DUALCASE # for MKS sh | |
1ef0423a | 10709 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : |
2f1a1aea FCE |
10710 | emulate sh |
10711 | NULLCMD=: | |
0710d850 | 10712 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
2f1a1aea FCE |
10713 | # is contrary to our usage. Disable this feature. |
10714 | alias -g '${1+"$@"}'='"$@"' | |
7fbd9d09 | 10715 | setopt NO_GLOB_SUBST |
4a3c19da | 10716 | else |
1ef0423a FCE |
10717 | case `(set -o) 2>/dev/null` in #( |
10718 | *posix*) : | |
10719 | set -o posix ;; #( | |
10720 | *) : | |
10721 | ;; | |
4a3c19da EM |
10722 | esac |
10723 | fi | |
10724 | ||
7fbd9d09 | 10725 | |
0710d850 DS |
10726 | as_nl=' |
10727 | ' | |
10728 | export as_nl | |
10729 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
10730 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
10731 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
10732 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
1ef0423a FCE |
10733 | # Prefer a ksh shell builtin over an external printf program on Solaris, |
10734 | # but without wasting forks for bash or zsh. | |
10735 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
10736 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
10737 | as_echo='print -r --' | |
10738 | as_echo_n='print -rn --' | |
10739 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
0710d850 DS |
10740 | as_echo='printf %s\n' |
10741 | as_echo_n='printf %s' | |
10742 | else | |
10743 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
10744 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
10745 | as_echo_n='/usr/ucb/echo -n' | |
31f9baea | 10746 | else |
0710d850 DS |
10747 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
10748 | as_echo_n_body='eval | |
10749 | arg=$1; | |
1ef0423a | 10750 | case $arg in #( |
0710d850 DS |
10751 | *"$as_nl"*) |
10752 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
10753 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
10754 | esac; | |
10755 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
10756 | ' | |
10757 | export as_echo_n_body | |
10758 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
31f9baea | 10759 | fi |
0710d850 DS |
10760 | export as_echo_body |
10761 | as_echo='sh -c $as_echo_body as_echo' | |
10762 | fi | |
10763 | ||
10764 | # The user is always right. | |
10765 | if test "${PATH_SEPARATOR+set}" != set; then | |
10766 | PATH_SEPARATOR=: | |
10767 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
10768 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
10769 | PATH_SEPARATOR=';' | |
10770 | } | |
7fbd9d09 FCE |
10771 | fi |
10772 | ||
7fbd9d09 FCE |
10773 | |
10774 | # IFS | |
10775 | # We need space, tab and new line, in precisely that order. Quoting is | |
10776 | # there to prevent editors from complaining about space-tab. | |
10777 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
10778 | # splitting by setting IFS to empty value.) | |
7fbd9d09 FCE |
10779 | IFS=" "" $as_nl" |
10780 | ||
10781 | # Find who we are. Look in the path if we contain no directory separator. | |
c3de29bd | 10782 | as_myself= |
1ef0423a | 10783 | case $0 in #(( |
7fbd9d09 FCE |
10784 | *[\\/]* ) as_myself=$0 ;; |
10785 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10786 | for as_dir in $PATH | |
10787 | do | |
10788 | IFS=$as_save_IFS | |
10789 | test -z "$as_dir" && as_dir=. | |
1ef0423a FCE |
10790 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
10791 | done | |
7fbd9d09 FCE |
10792 | IFS=$as_save_IFS |
10793 | ||
10794 | ;; | |
10795 | esac | |
10796 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
10797 | # in which case we are not to be found in the path. | |
10798 | if test "x$as_myself" = x; then | |
10799 | as_myself=$0 | |
10800 | fi | |
10801 | if test ! -f "$as_myself"; then | |
0710d850 | 10802 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
1ef0423a | 10803 | exit 1 |
7fbd9d09 FCE |
10804 | fi |
10805 | ||
1ef0423a FCE |
10806 | # Unset variables that we do not need and which cause bugs (e.g. in |
10807 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
10808 | # suppresses any "Segmentation fault" message there. '((' could | |
10809 | # trigger a bug in pdksh 5.2.14. | |
10810 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
10811 | do eval test x\${$as_var+set} = xset \ | |
10812 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
7fbd9d09 FCE |
10813 | done |
10814 | PS1='$ ' | |
2f1a1aea FCE |
10815 | PS2='> ' |
10816 | PS4='+ ' | |
10817 | ||
10818 | # NLS nuisances. | |
0710d850 DS |
10819 | LC_ALL=C |
10820 | export LC_ALL | |
10821 | LANGUAGE=C | |
10822 | export LANGUAGE | |
2f1a1aea | 10823 | |
1ef0423a FCE |
10824 | # CDPATH. |
10825 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
10826 | ||
10827 | ||
5d4aa1f5 FCE |
10828 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
10829 | # ---------------------------------------- | |
1ef0423a FCE |
10830 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
10831 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
5d4aa1f5 | 10832 | # script with STATUS, using 1 if that was 0. |
1ef0423a FCE |
10833 | as_fn_error () |
10834 | { | |
5d4aa1f5 FCE |
10835 | as_status=$1; test $as_status -eq 0 && as_status=1 |
10836 | if test "$4"; then | |
10837 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
10838 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | |
1ef0423a | 10839 | fi |
5d4aa1f5 | 10840 | $as_echo "$as_me: error: $2" >&2 |
1ef0423a FCE |
10841 | as_fn_exit $as_status |
10842 | } # as_fn_error | |
10843 | ||
10844 | ||
10845 | # as_fn_set_status STATUS | |
10846 | # ----------------------- | |
10847 | # Set $? to STATUS, without forking. | |
10848 | as_fn_set_status () | |
10849 | { | |
10850 | return $1 | |
10851 | } # as_fn_set_status | |
10852 | ||
10853 | # as_fn_exit STATUS | |
10854 | # ----------------- | |
10855 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
10856 | as_fn_exit () | |
10857 | { | |
10858 | set +e | |
10859 | as_fn_set_status $1 | |
10860 | exit $1 | |
10861 | } # as_fn_exit | |
10862 | ||
10863 | # as_fn_unset VAR | |
10864 | # --------------- | |
10865 | # Portably unset VAR. | |
10866 | as_fn_unset () | |
10867 | { | |
10868 | { eval $1=; unset $1;} | |
10869 | } | |
10870 | as_unset=as_fn_unset | |
10871 | # as_fn_append VAR VALUE | |
10872 | # ---------------------- | |
10873 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
10874 | # advantage of any shell optimizations that allow amortized linear growth over | |
10875 | # repeated appends, instead of the typical quadratic growth present in naive | |
10876 | # implementations. | |
10877 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
10878 | eval 'as_fn_append () | |
10879 | { | |
10880 | eval $1+=\$2 | |
10881 | }' | |
10882 | else | |
10883 | as_fn_append () | |
10884 | { | |
10885 | eval $1=\$$1\$2 | |
10886 | } | |
10887 | fi # as_fn_append | |
10888 | ||
10889 | # as_fn_arith ARG... | |
10890 | # ------------------ | |
10891 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
10892 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
10893 | # must be portable across $(()) and expr. | |
10894 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
10895 | eval 'as_fn_arith () | |
10896 | { | |
10897 | as_val=$(( $* )) | |
10898 | }' | |
10899 | else | |
10900 | as_fn_arith () | |
10901 | { | |
10902 | as_val=`expr "$@" || test $? -eq 1` | |
10903 | } | |
10904 | fi # as_fn_arith | |
10905 | ||
10906 | ||
7fbd9d09 FCE |
10907 | if expr a : '\(a\)' >/dev/null 2>&1 && |
10908 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
2f1a1aea FCE |
10909 | as_expr=expr |
10910 | else | |
10911 | as_expr=false | |
10912 | fi | |
10913 | ||
7fbd9d09 | 10914 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
2f1a1aea FCE |
10915 | as_basename=basename |
10916 | else | |
10917 | as_basename=false | |
10918 | fi | |
10919 | ||
1ef0423a FCE |
10920 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
10921 | as_dirname=dirname | |
10922 | else | |
10923 | as_dirname=false | |
10924 | fi | |
2f1a1aea | 10925 | |
7fbd9d09 | 10926 | as_me=`$as_basename -- "$0" || |
2f1a1aea FCE |
10927 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
10928 | X"$0" : 'X\(//\)$' \| \ | |
7fbd9d09 | 10929 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
0710d850 | 10930 | $as_echo X/"$0" | |
7fbd9d09 FCE |
10931 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
10932 | s//\1/ | |
10933 | q | |
10934 | } | |
10935 | /^X\/\(\/\/\)$/{ | |
10936 | s//\1/ | |
10937 | q | |
10938 | } | |
10939 | /^X\/\(\/\).*/{ | |
10940 | s//\1/ | |
10941 | q | |
10942 | } | |
10943 | s/.*/./; q'` | |
8ae7a94a | 10944 | |
1ef0423a FCE |
10945 | # Avoid depending upon Character Ranges. |
10946 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
10947 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
10948 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
10949 | as_cr_digits='0123456789' | |
10950 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
7fbd9d09 FCE |
10951 | |
10952 | ECHO_C= ECHO_N= ECHO_T= | |
1ef0423a | 10953 | case `echo -n x` in #((((( |
7fbd9d09 | 10954 | -n*) |
1ef0423a | 10955 | case `echo 'xy\c'` in |
7fbd9d09 | 10956 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
1ef0423a FCE |
10957 | xy) ECHO_C='\c';; |
10958 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
10959 | ECHO_T=' ';; | |
7fbd9d09 FCE |
10960 | esac;; |
10961 | *) | |
10962 | ECHO_N='-n';; | |
2f1a1aea | 10963 | esac |
2f1a1aea FCE |
10964 | |
10965 | rm -f conf$$ conf$$.exe conf$$.file | |
7fbd9d09 FCE |
10966 | if test -d conf$$.dir; then |
10967 | rm -f conf$$.dir/conf$$.file | |
10968 | else | |
10969 | rm -f conf$$.dir | |
0710d850 DS |
10970 | mkdir conf$$.dir 2>/dev/null |
10971 | fi | |
10972 | if (echo >conf$$.file) 2>/dev/null; then | |
10973 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
10974 | as_ln_s='ln -s' | |
10975 | # ... but there are two gotchas: | |
10976 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
10977 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
10978 | # In both cases, we have to default to `cp -p'. | |
10979 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
10980 | as_ln_s='cp -p' | |
10981 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
10982 | as_ln_s=ln | |
10983 | else | |
2f1a1aea | 10984 | as_ln_s='cp -p' |
0710d850 | 10985 | fi |
2f1a1aea FCE |
10986 | else |
10987 | as_ln_s='cp -p' | |
10988 | fi | |
7fbd9d09 FCE |
10989 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
10990 | rmdir conf$$.dir 2>/dev/null | |
2f1a1aea | 10991 | |
1ef0423a FCE |
10992 | |
10993 | # as_fn_mkdir_p | |
10994 | # ------------- | |
10995 | # Create "$as_dir" as a directory, including parents if necessary. | |
10996 | as_fn_mkdir_p () | |
10997 | { | |
10998 | ||
10999 | case $as_dir in #( | |
11000 | -*) as_dir=./$as_dir;; | |
11001 | esac | |
11002 | test -d "$as_dir" || eval $as_mkdir_p || { | |
11003 | as_dirs= | |
11004 | while :; do | |
11005 | case $as_dir in #( | |
11006 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
11007 | *) as_qdir=$as_dir;; | |
11008 | esac | |
11009 | as_dirs="'$as_qdir' $as_dirs" | |
11010 | as_dir=`$as_dirname -- "$as_dir" || | |
11011 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
11012 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
11013 | X"$as_dir" : 'X\(//\)$' \| \ | |
11014 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
11015 | $as_echo X"$as_dir" | | |
11016 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
11017 | s//\1/ | |
11018 | q | |
11019 | } | |
11020 | /^X\(\/\/\)[^/].*/{ | |
11021 | s//\1/ | |
11022 | q | |
11023 | } | |
11024 | /^X\(\/\/\)$/{ | |
11025 | s//\1/ | |
11026 | q | |
11027 | } | |
11028 | /^X\(\/\).*/{ | |
11029 | s//\1/ | |
11030 | q | |
11031 | } | |
11032 | s/.*/./; q'` | |
11033 | test -d "$as_dir" && break | |
11034 | done | |
11035 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
5d4aa1f5 | 11036 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
1ef0423a FCE |
11037 | |
11038 | ||
11039 | } # as_fn_mkdir_p | |
2f1a1aea | 11040 | if mkdir -p . 2>/dev/null; then |
1ef0423a | 11041 | as_mkdir_p='mkdir -p "$as_dir"' |
2f1a1aea FCE |
11042 | else |
11043 | test -d ./-p && rmdir ./-p | |
11044 | as_mkdir_p=false | |
11045 | fi | |
11046 | ||
7fbd9d09 FCE |
11047 | if test -x / >/dev/null 2>&1; then |
11048 | as_test_x='test -x' | |
11049 | else | |
11050 | if ls -dL / >/dev/null 2>&1; then | |
11051 | as_ls_L_option=L | |
11052 | else | |
11053 | as_ls_L_option= | |
11054 | fi | |
11055 | as_test_x=' | |
11056 | eval sh -c '\'' | |
11057 | if test -d "$1"; then | |
0710d850 | 11058 | test -d "$1/."; |
7fbd9d09 | 11059 | else |
1ef0423a | 11060 | case $1 in #( |
0710d850 | 11061 | -*)set "./$1";; |
7fbd9d09 | 11062 | esac; |
1ef0423a | 11063 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( |
7fbd9d09 FCE |
11064 | ???[sx]*):;;*)false;;esac;fi |
11065 | '\'' sh | |
11066 | ' | |
11067 | fi | |
11068 | as_executable_p=$as_test_x | |
2f1a1aea FCE |
11069 | |
11070 | # Sed expression to map a string onto a valid CPP name. | |
11071 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
11072 | ||
11073 | # Sed expression to map a string onto a valid variable name. | |
11074 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
11075 | ||
11076 | ||
2f1a1aea | 11077 | exec 6>&1 |
1ef0423a FCE |
11078 | ## ----------------------------------- ## |
11079 | ## Main body of $CONFIG_STATUS script. ## | |
11080 | ## ----------------------------------- ## | |
11081 | _ASEOF | |
11082 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 | |
2f1a1aea | 11083 | |
1ef0423a FCE |
11084 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
11085 | # Save the log message, to keep $0 and so on meaningful, and to | |
2f1a1aea | 11086 | # report actual input values of CONFIG_FILES etc. instead of their |
7fbd9d09 FCE |
11087 | # values after options handling. |
11088 | ac_log=" | |
94d406fc | 11089 | This file was extended by systemtap $as_me 1.7, which was |
c3de29bd | 11090 | generated by GNU Autoconf 2.68. Invocation command line was |
2f1a1aea FCE |
11091 | |
11092 | CONFIG_FILES = $CONFIG_FILES | |
11093 | CONFIG_HEADERS = $CONFIG_HEADERS | |
11094 | CONFIG_LINKS = $CONFIG_LINKS | |
11095 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
11096 | $ $0 $@ | |
11097 | ||
7fbd9d09 FCE |
11098 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
11099 | " | |
11100 | ||
2f1a1aea FCE |
11101 | _ACEOF |
11102 | ||
0710d850 DS |
11103 | case $ac_config_files in *" |
11104 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | |
11105 | esac | |
11106 | ||
11107 | case $ac_config_headers in *" | |
11108 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; | |
11109 | esac | |
11110 | ||
11111 | ||
11112 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
818ba2bc | 11113 | # Files that config.status was made for. |
7fbd9d09 FCE |
11114 | config_files="$ac_config_files" |
11115 | config_headers="$ac_config_headers" | |
11116 | config_commands="$ac_config_commands" | |
daae650d | 11117 | |
7fbd9d09 | 11118 | _ACEOF |
8ae7a94a | 11119 | |
0710d850 | 11120 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
2f1a1aea | 11121 | ac_cs_usage="\ |
1ef0423a FCE |
11122 | \`$as_me' instantiates files and other configuration actions |
11123 | from templates according to the current configuration. Unless the files | |
11124 | and actions are specified as TAGs, all are instantiated by default. | |
2f1a1aea | 11125 | |
1ef0423a | 11126 | Usage: $0 [OPTION]... [TAG]... |
2f1a1aea FCE |
11127 | |
11128 | -h, --help print this help, then exit | |
7fbd9d09 | 11129 | -V, --version print version number and configuration settings, then exit |
1ef0423a | 11130 | --config print configuration, then exit |
0710d850 DS |
11131 | -q, --quiet, --silent |
11132 | do not print progress messages | |
2f1a1aea FCE |
11133 | -d, --debug don't remove temporary files |
11134 | --recheck update $as_me by reconfiguring in the same conditions | |
0710d850 DS |
11135 | --file=FILE[:TEMPLATE] |
11136 | instantiate the configuration file FILE | |
11137 | --header=FILE[:TEMPLATE] | |
11138 | instantiate the configuration header FILE | |
2f1a1aea FCE |
11139 | |
11140 | Configuration files: | |
11141 | $config_files | |
11142 | ||
11143 | Configuration headers: | |
11144 | $config_headers | |
11145 | ||
11146 | Configuration commands: | |
11147 | $config_commands | |
11148 | ||
306dd4f8 | 11149 | Report bugs to <systemtap@sourceware.org>." |
818ba2bc | 11150 | |
7fbd9d09 | 11151 | _ACEOF |
0710d850 | 11152 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
1ef0423a | 11153 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" |
2f1a1aea | 11154 | ac_cs_version="\\ |
94d406fc | 11155 | systemtap config.status 1.7 |
c3de29bd | 11156 | configured by $0, generated by GNU Autoconf 2.68, |
1ef0423a | 11157 | with options \\"\$ac_cs_config\\" |
2f1a1aea | 11158 | |
5d4aa1f5 | 11159 | Copyright (C) 2010 Free Software Foundation, Inc. |
2f1a1aea FCE |
11160 | This config.status script is free software; the Free Software Foundation |
11161 | gives unlimited permission to copy, distribute and modify it." | |
7fbd9d09 FCE |
11162 | |
11163 | ac_pwd='$ac_pwd' | |
11164 | srcdir='$srcdir' | |
11165 | INSTALL='$INSTALL' | |
11166 | MKDIR_P='$MKDIR_P' | |
0710d850 DS |
11167 | AWK='$AWK' |
11168 | test -n "\$AWK" || AWK=awk | |
2f1a1aea FCE |
11169 | _ACEOF |
11170 | ||
0710d850 DS |
11171 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
11172 | # The default lists apply if the user does not specify any file. | |
2f1a1aea FCE |
11173 | ac_need_defaults=: |
11174 | while test $# != 0 | |
11175 | do | |
11176 | case $1 in | |
c3de29bd | 11177 | --*=?*) |
7fbd9d09 FCE |
11178 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
11179 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
2f1a1aea FCE |
11180 | ac_shift=: |
11181 | ;; | |
c3de29bd LB |
11182 | --*=) |
11183 | ac_option=`expr "X$1" : 'X\([^=]*\)='` | |
11184 | ac_optarg= | |
11185 | ac_shift=: | |
11186 | ;; | |
7fbd9d09 | 11187 | *) |
2f1a1aea FCE |
11188 | ac_option=$1 |
11189 | ac_optarg=$2 | |
11190 | ac_shift=shift | |
11191 | ;; | |
2f1a1aea FCE |
11192 | esac |
11193 | ||
11194 | case $ac_option in | |
11195 | # Handling of the options. | |
2f1a1aea FCE |
11196 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
11197 | ac_cs_recheck=: ;; | |
7fbd9d09 | 11198 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
0710d850 | 11199 | $as_echo "$ac_cs_version"; exit ;; |
1ef0423a FCE |
11200 | --config | --confi | --conf | --con | --co | --c ) |
11201 | $as_echo "$ac_cs_config"; exit ;; | |
7fbd9d09 | 11202 | --debug | --debu | --deb | --de | --d | -d ) |
2f1a1aea FCE |
11203 | debug=: ;; |
11204 | --file | --fil | --fi | --f ) | |
11205 | $ac_shift | |
0710d850 DS |
11206 | case $ac_optarg in |
11207 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
c3de29bd | 11208 | '') as_fn_error $? "missing file argument" ;; |
0710d850 | 11209 | esac |
1ef0423a | 11210 | as_fn_append CONFIG_FILES " '$ac_optarg'" |
2f1a1aea FCE |
11211 | ac_need_defaults=false;; |
11212 | --header | --heade | --head | --hea ) | |
11213 | $ac_shift | |
0710d850 DS |
11214 | case $ac_optarg in |
11215 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
11216 | esac | |
1ef0423a | 11217 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" |
2f1a1aea | 11218 | ac_need_defaults=false;; |
7fbd9d09 FCE |
11219 | --he | --h) |
11220 | # Conflict between --help and --header | |
5d4aa1f5 | 11221 | as_fn_error $? "ambiguous option: \`$1' |
1ef0423a | 11222 | Try \`$0 --help' for more information.";; |
7fbd9d09 | 11223 | --help | --hel | -h ) |
0710d850 | 11224 | $as_echo "$ac_cs_usage"; exit ;; |
2f1a1aea FCE |
11225 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
11226 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
11227 | ac_cs_silent=: ;; | |
11228 | ||
11229 | # This is an error. | |
5d4aa1f5 | 11230 | -*) as_fn_error $? "unrecognized option: \`$1' |
1ef0423a | 11231 | Try \`$0 --help' for more information." ;; |
2f1a1aea | 11232 | |
1ef0423a | 11233 | *) as_fn_append ac_config_targets " $1" |
7fbd9d09 | 11234 | ac_need_defaults=false ;; |
2f1a1aea FCE |
11235 | |
11236 | esac | |
11237 | shift | |
11238 | done | |
11239 | ||
11240 | ac_configure_extra_args= | |
11241 | ||
11242 | if $ac_cs_silent; then | |
11243 | exec 6>/dev/null | |
11244 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
11245 | fi | |
11246 | ||
11247 | _ACEOF | |
0710d850 | 11248 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
2f1a1aea | 11249 | if \$ac_cs_recheck; then |
0710d850 DS |
11250 | set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
11251 | shift | |
11252 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | |
11253 | CONFIG_SHELL='$SHELL' | |
7fbd9d09 | 11254 | export CONFIG_SHELL |
0710d850 | 11255 | exec "\$@" |
2f1a1aea FCE |
11256 | fi |
11257 | ||
11258 | _ACEOF | |
0710d850 | 11259 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
7fbd9d09 FCE |
11260 | exec 5>>config.log |
11261 | { | |
11262 | echo | |
11263 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
11264 | ## Running $as_me. ## | |
11265 | _ASBOX | |
0710d850 | 11266 | $as_echo "$ac_log" |
7fbd9d09 | 11267 | } >&5 |
2f1a1aea | 11268 | |
7fbd9d09 | 11269 | _ACEOF |
0710d850 | 11270 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
2f1a1aea | 11271 | # |
7fbd9d09 | 11272 | # INIT-COMMANDS |
2f1a1aea | 11273 | # |
2f1a1aea | 11274 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" |
8f223b3e FCE |
11275 | # Capture the value of obsolete ALL_LINGUAS because we need it to compute |
11276 | # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it | |
11277 | # from automake < 1.5. | |
11278 | eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"' | |
11279 | # Capture the value of LINGUAS because we need it to compute CATALOGS. | |
11280 | LINGUAS="${LINGUAS-%UNSET%}" | |
11281 | ||
2f1a1aea FCE |
11282 | |
11283 | _ACEOF | |
11284 | ||
0710d850 | 11285 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
7fbd9d09 FCE |
11286 | |
11287 | # Handling of arguments. | |
2f1a1aea FCE |
11288 | for ac_config_target in $ac_config_targets |
11289 | do | |
7fbd9d09 FCE |
11290 | case $ac_config_target in |
11291 | "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; | |
8f223b3e | 11292 | "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;; |
f9794ee4 | 11293 | "includes/sys/sdt-config.h") CONFIG_FILES="$CONFIG_FILES includes/sys/sdt-config.h" ;; |
8f223b3e | 11294 | "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;; |
7fbd9d09 FCE |
11295 | "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;; |
11296 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
11297 | "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; | |
53ade4da | 11298 | "doc/beginners/Makefile") CONFIG_FILES="$CONFIG_FILES doc/beginners/Makefile" ;; |
7fbd9d09 | 11299 | "doc/SystemTap_Tapset_Reference/Makefile") CONFIG_FILES="$CONFIG_FILES doc/SystemTap_Tapset_Reference/Makefile" ;; |
1087b83f | 11300 | "grapher/Makefile") CONFIG_FILES="$CONFIG_FILES grapher/Makefile" ;; |
9ed28fbc | 11301 | "grapher/stapgraph.1") CONFIG_FILES="$CONFIG_FILES grapher/stapgraph.1" ;; |
ec1a2239 | 11302 | "stappaths.7") CONFIG_FILES="$CONFIG_FILES stappaths.7" ;; |
7fbd9d09 | 11303 | "initscript/systemtap") CONFIG_FILES="$CONFIG_FILES initscript/systemtap" ;; |
2f78bee0 | 11304 | "initscript/stap-server") CONFIG_FILES="$CONFIG_FILES initscript/stap-server" ;; |
7fbd9d09 | 11305 | "run-stap") CONFIG_FILES="$CONFIG_FILES run-stap" ;; |
e4aaabda | 11306 | "dtrace") CONFIG_FILES="$CONFIG_FILES dtrace" ;; |
53ade4da MW |
11307 | "doc/beginners/publican.cfg") CONFIG_FILES="$CONFIG_FILES doc/beginners/publican.cfg:doc/SystemTap_Beginners_Guide/publican.cfg.in" ;; |
11308 | "doc/beginners") CONFIG_COMMANDS="$CONFIG_COMMANDS doc/beginners" ;; | |
7fbd9d09 | 11309 | |
5d4aa1f5 | 11310 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
2f1a1aea FCE |
11311 | esac |
11312 | done | |
11313 | ||
7fbd9d09 | 11314 | |
2f1a1aea FCE |
11315 | # If the user did not use the arguments to specify the items to instantiate, |
11316 | # then the envvar interface is used. Set only those that are not. | |
11317 | # We use the long form for the default assignment because of an extremely | |
11318 | # bizarre bug on SunOS 4.1.3. | |
11319 | if $ac_need_defaults; then | |
11320 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
11321 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
11322 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | |
11323 | fi | |
11324 | ||
11325 | # Have a temporary directory for convenience. Make it in the build tree | |
7fbd9d09 | 11326 | # simply because there is no reason against having it here, and in addition, |
2f1a1aea | 11327 | # creating and moving files from /tmp can sometimes cause problems. |
7fbd9d09 FCE |
11328 | # Hook for its removal unless debugging. |
11329 | # Note that there is a small window in which the directory will not be cleaned: | |
11330 | # after its creation but before its name has been assigned to `$tmp'. | |
2f1a1aea FCE |
11331 | $debug || |
11332 | { | |
c3de29bd | 11333 | tmp= ac_tmp= |
7fbd9d09 | 11334 | trap 'exit_status=$? |
c3de29bd LB |
11335 | : "${ac_tmp:=$tmp}" |
11336 | { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status | |
7fbd9d09 | 11337 | ' 0 |
1ef0423a | 11338 | trap 'as_fn_exit 1' 1 2 13 15 |
2f1a1aea | 11339 | } |
2f1a1aea FCE |
11340 | # Create a (secure) tmp directory for tmp files. |
11341 | ||
11342 | { | |
7fbd9d09 | 11343 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
c3de29bd | 11344 | test -d "$tmp" |
2f1a1aea FCE |
11345 | } || |
11346 | { | |
7fbd9d09 FCE |
11347 | tmp=./conf$$-$RANDOM |
11348 | (umask 077 && mkdir "$tmp") | |
5d4aa1f5 | 11349 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 |
c3de29bd | 11350 | ac_tmp=$tmp |
2f1a1aea | 11351 | |
0710d850 DS |
11352 | # Set up the scripts for CONFIG_FILES section. |
11353 | # No need to generate them if there are no CONFIG_FILES. | |
11354 | # This happens for instance with `./config.status config.h'. | |
7fbd9d09 FCE |
11355 | if test -n "$CONFIG_FILES"; then |
11356 | ||
31f9baea | 11357 | |
1ef0423a FCE |
11358 | ac_cr=`echo X | tr X '\015'` |
11359 | # On cygwin, bash can eat \r inside `` if the user requested igncr. | |
11360 | # But we know of no other shell where ac_cr would be empty at this | |
11361 | # point, so we can use a bashism as a fallback. | |
11362 | if test "x$ac_cr" = x; then | |
11363 | eval ac_cr=\$\'\\r\' | |
11364 | fi | |
0710d850 DS |
11365 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` |
11366 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | |
5d4aa1f5 | 11367 | ac_cs_awk_cr='\\r' |
0710d850 DS |
11368 | else |
11369 | ac_cs_awk_cr=$ac_cr | |
7fbd9d09 | 11370 | fi |
5e0d2ebf | 11371 | |
c3de29bd | 11372 | echo 'BEGIN {' >"$ac_tmp/subs1.awk" && |
7fbd9d09 FCE |
11373 | _ACEOF |
11374 | ||
11375 | ||
0710d850 DS |
11376 | { |
11377 | echo "cat >conf$$subs.awk <<_ACEOF" && | |
11378 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | |
11379 | echo "_ACEOF" | |
11380 | } >conf$$subs.sh || | |
5d4aa1f5 FCE |
11381 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
11382 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` | |
7fbd9d09 FCE |
11383 | ac_delim='%!_!# ' |
11384 | for ac_last_try in false false false false false :; do | |
0710d850 | 11385 | . ./conf$$subs.sh || |
5d4aa1f5 | 11386 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
0710d850 DS |
11387 | |
11388 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` | |
11389 | if test $ac_delim_n = $ac_delim_num; then | |
7fbd9d09 FCE |
11390 | break |
11391 | elif $ac_last_try; then | |
5d4aa1f5 | 11392 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
7fbd9d09 FCE |
11393 | else |
11394 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
11395 | fi | |
11396 | done | |
0710d850 DS |
11397 | rm -f conf$$subs.sh |
11398 | ||
11399 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
c3de29bd | 11400 | cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && |
0710d850 DS |
11401 | _ACEOF |
11402 | sed -n ' | |
11403 | h | |
11404 | s/^/S["/; s/!.*/"]=/ | |
11405 | p | |
11406 | g | |
11407 | s/^[^!]*!// | |
11408 | :repl | |
11409 | t repl | |
11410 | s/'"$ac_delim"'$// | |
11411 | t delim | |
11412 | :nl | |
11413 | h | |
1ef0423a | 11414 | s/\(.\{148\}\)..*/\1/ |
0710d850 DS |
11415 | t more1 |
11416 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | |
11417 | p | |
11418 | n | |
11419 | b repl | |
11420 | :more1 | |
11421 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
11422 | p | |
11423 | g | |
11424 | s/.\{148\}// | |
11425 | t nl | |
11426 | :delim | |
11427 | h | |
1ef0423a | 11428 | s/\(.\{148\}\)..*/\1/ |
0710d850 DS |
11429 | t more2 |
11430 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | |
11431 | p | |
11432 | b | |
11433 | :more2 | |
11434 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
11435 | p | |
11436 | g | |
11437 | s/.\{148\}// | |
11438 | t delim | |
11439 | ' <conf$$subs.awk | sed ' | |
11440 | /^[^""]/{ | |
11441 | N | |
11442 | s/\n// | |
11443 | } | |
11444 | ' >>$CONFIG_STATUS || ac_write_fail=1 | |
11445 | rm -f conf$$subs.awk | |
11446 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
11447 | _ACAWK | |
c3de29bd | 11448 | cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && |
0710d850 DS |
11449 | for (key in S) S_is_set[key] = 1 |
11450 | FS = "\a" | |
7fbd9d09 | 11451 | |
0710d850 DS |
11452 | } |
11453 | { | |
11454 | line = $ 0 | |
11455 | nfields = split(line, field, "@") | |
11456 | substed = 0 | |
11457 | len = length(field[1]) | |
11458 | for (i = 2; i < nfields; i++) { | |
11459 | key = field[i] | |
11460 | keylen = length(key) | |
11461 | if (S_is_set[key]) { | |
11462 | value = S[key] | |
11463 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | |
11464 | len += length(value) + length(field[++i]) | |
11465 | substed = 1 | |
11466 | } else | |
11467 | len += 1 + keylen | |
11468 | } | |
11469 | ||
11470 | print line | |
11471 | } | |
7fbd9d09 | 11472 | |
0710d850 | 11473 | _ACAWK |
7fbd9d09 | 11474 | _ACEOF |
0710d850 DS |
11475 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
11476 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | |
11477 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | |
11478 | else | |
11479 | cat | |
c3de29bd | 11480 | fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ |
5d4aa1f5 | 11481 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 |
7fbd9d09 FCE |
11482 | _ACEOF |
11483 | ||
5d4aa1f5 FCE |
11484 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir), |
11485 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and | |
7fbd9d09 FCE |
11486 | # trailing colons and then remove the whole line if VPATH becomes empty |
11487 | # (actually we leave an empty line to preserve line numbers). | |
11488 | if test "x$srcdir" = x.; then | |
5d4aa1f5 FCE |
11489 | ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ |
11490 | h | |
11491 | s/// | |
11492 | s/^/:/ | |
11493 | s/[ ]*$/:/ | |
11494 | s/:\$(srcdir):/:/g | |
11495 | s/:\${srcdir}:/:/g | |
11496 | s/:@srcdir@:/:/g | |
11497 | s/^:*// | |
7fbd9d09 | 11498 | s/:*$// |
5d4aa1f5 FCE |
11499 | x |
11500 | s/\(=[ ]*\).*/\1/ | |
11501 | G | |
11502 | s/\n// | |
7fbd9d09 FCE |
11503 | s/^[^=]*=[ ]*$// |
11504 | }' | |
11505 | fi | |
11506 | ||
0710d850 | 11507 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
7fbd9d09 FCE |
11508 | fi # test -n "$CONFIG_FILES" |
11509 | ||
0710d850 DS |
11510 | # Set up the scripts for CONFIG_HEADERS section. |
11511 | # No need to generate them if there are no CONFIG_HEADERS. | |
11512 | # This happens for instance with `./config.status Makefile'. | |
11513 | if test -n "$CONFIG_HEADERS"; then | |
c3de29bd | 11514 | cat >"$ac_tmp/defines.awk" <<\_ACAWK || |
0710d850 DS |
11515 | BEGIN { |
11516 | _ACEOF | |
11517 | ||
11518 | # Transform confdefs.h into an awk script `defines.awk', embedded as | |
11519 | # here-document in config.status, that substitutes the proper values into | |
11520 | # config.h.in to produce config.h. | |
11521 | ||
11522 | # Create a delimiter string that does not exist in confdefs.h, to ease | |
11523 | # handling of long lines. | |
11524 | ac_delim='%!_!# ' | |
11525 | for ac_last_try in false false :; do | |
c3de29bd LB |
11526 | ac_tt=`sed -n "/$ac_delim/p" confdefs.h` |
11527 | if test -z "$ac_tt"; then | |
0710d850 DS |
11528 | break |
11529 | elif $ac_last_try; then | |
5d4aa1f5 | 11530 | as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 |
0710d850 DS |
11531 | else |
11532 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
11533 | fi | |
11534 | done | |
11535 | ||
11536 | # For the awk script, D is an array of macro values keyed by name, | |
11537 | # likewise P contains macro parameters if any. Preserve backslash | |
11538 | # newline sequences. | |
11539 | ||
11540 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* | |
11541 | sed -n ' | |
11542 | s/.\{148\}/&'"$ac_delim"'/g | |
11543 | t rset | |
11544 | :rset | |
11545 | s/^[ ]*#[ ]*define[ ][ ]*/ / | |
11546 | t def | |
11547 | d | |
11548 | :def | |
11549 | s/\\$// | |
11550 | t bsnl | |
11551 | s/["\\]/\\&/g | |
11552 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
11553 | D["\1"]=" \3"/p | |
11554 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p | |
11555 | d | |
11556 | :bsnl | |
11557 | s/["\\]/\\&/g | |
11558 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
11559 | D["\1"]=" \3\\\\\\n"\\/p | |
11560 | t cont | |
11561 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p | |
11562 | t cont | |
11563 | d | |
11564 | :cont | |
11565 | n | |
11566 | s/.\{148\}/&'"$ac_delim"'/g | |
11567 | t clear | |
11568 | :clear | |
11569 | s/\\$// | |
11570 | t bsnlc | |
11571 | s/["\\]/\\&/g; s/^/"/; s/$/"/p | |
11572 | d | |
11573 | :bsnlc | |
11574 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p | |
11575 | b cont | |
11576 | ' <confdefs.h | sed ' | |
11577 | s/'"$ac_delim"'/"\\\ | |
11578 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 | |
11579 | ||
11580 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
11581 | for (key in D) D_is_set[key] = 1 | |
11582 | FS = "\a" | |
11583 | } | |
11584 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { | |
11585 | line = \$ 0 | |
11586 | split(line, arg, " ") | |
11587 | if (arg[1] == "#") { | |
11588 | defundef = arg[2] | |
11589 | mac1 = arg[3] | |
11590 | } else { | |
11591 | defundef = substr(arg[1], 2) | |
11592 | mac1 = arg[2] | |
11593 | } | |
11594 | split(mac1, mac2, "(") #) | |
11595 | macro = mac2[1] | |
11596 | prefix = substr(line, 1, index(line, defundef) - 1) | |
11597 | if (D_is_set[macro]) { | |
11598 | # Preserve the white space surrounding the "#". | |
11599 | print prefix "define", macro P[macro] D[macro] | |
11600 | next | |
11601 | } else { | |
11602 | # Replace #undef with comments. This is necessary, for example, | |
11603 | # in the case of _POSIX_SOURCE, which is predefined and required | |
11604 | # on some systems where configure will not decide to define it. | |
11605 | if (defundef == "undef") { | |
11606 | print "/*", prefix defundef, macro, "*/" | |
11607 | next | |
11608 | } | |
11609 | } | |
11610 | } | |
11611 | { print } | |
11612 | _ACAWK | |
11613 | _ACEOF | |
11614 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
5d4aa1f5 | 11615 | as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 |
0710d850 DS |
11616 | fi # test -n "$CONFIG_HEADERS" |
11617 | ||
27aba29a | 11618 | |
0710d850 DS |
11619 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" |
11620 | shift | |
11621 | for ac_tag | |
7fbd9d09 FCE |
11622 | do |
11623 | case $ac_tag in | |
11624 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
2f1a1aea | 11625 | esac |
7fbd9d09 FCE |
11626 | case $ac_mode$ac_tag in |
11627 | :[FHL]*:*);; | |
5d4aa1f5 | 11628 | :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; |
7fbd9d09 FCE |
11629 | :[FH]-) ac_tag=-:-;; |
11630 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
11631 | esac | |
11632 | ac_save_IFS=$IFS | |
11633 | IFS=: | |
11634 | set x $ac_tag | |
11635 | IFS=$ac_save_IFS | |
11636 | shift | |
11637 | ac_file=$1 | |
11638 | shift | |
2f1a1aea | 11639 | |
7fbd9d09 FCE |
11640 | case $ac_mode in |
11641 | :L) ac_source=$1;; | |
11642 | :[FH]) | |
11643 | ac_file_inputs= | |
11644 | for ac_f | |
11645 | do | |
11646 | case $ac_f in | |
c3de29bd | 11647 | -) ac_f="$ac_tmp/stdin";; |
7fbd9d09 FCE |
11648 | *) # Look for the file first in the build tree, then in the source tree |
11649 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
11650 | # because $ac_f cannot contain `:'. | |
11651 | test -f "$ac_f" || | |
11652 | case $ac_f in | |
11653 | [\\/$]*) false;; | |
11654 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
11655 | esac || | |
5d4aa1f5 | 11656 | as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; |
7fbd9d09 | 11657 | esac |
0710d850 | 11658 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac |
1ef0423a | 11659 | as_fn_append ac_file_inputs " '$ac_f'" |
7fbd9d09 FCE |
11660 | done |
11661 | ||
11662 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
11663 | # use $as_me), people would be surprised to read: | |
11664 | # /* config.h. Generated by config.status. */ | |
0710d850 DS |
11665 | configure_input='Generated from '` |
11666 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | |
11667 | `' by configure.' | |
7fbd9d09 FCE |
11668 | if test x"$ac_file" != x-; then |
11669 | configure_input="$ac_file. $configure_input" | |
1ef0423a | 11670 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 |
0710d850 | 11671 | $as_echo "$as_me: creating $ac_file" >&6;} |
7fbd9d09 | 11672 | fi |
0710d850 DS |
11673 | # Neutralize special characters interpreted by sed in replacement strings. |
11674 | case $configure_input in #( | |
11675 | *\&* | *\|* | *\\* ) | |
11676 | ac_sed_conf_input=`$as_echo "$configure_input" | | |
11677 | sed 's/[\\\\&|]/\\\\&/g'`;; #( | |
11678 | *) ac_sed_conf_input=$configure_input;; | |
11679 | esac | |
7fbd9d09 FCE |
11680 | |
11681 | case $ac_tag in | |
c3de29bd | 11682 | *:-:* | *:-) cat >"$ac_tmp/stdin" \ |
5d4aa1f5 | 11683 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; |
7fbd9d09 FCE |
11684 | esac |
11685 | ;; | |
11686 | esac | |
11687 | ||
11688 | ac_dir=`$as_dirname -- "$ac_file" || | |
2f1a1aea FCE |
11689 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
11690 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
11691 | X"$ac_file" : 'X\(//\)$' \| \ | |
7fbd9d09 | 11692 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
0710d850 | 11693 | $as_echo X"$ac_file" | |
7fbd9d09 FCE |
11694 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
11695 | s//\1/ | |
11696 | q | |
11697 | } | |
11698 | /^X\(\/\/\)[^/].*/{ | |
11699 | s//\1/ | |
11700 | q | |
11701 | } | |
11702 | /^X\(\/\/\)$/{ | |
11703 | s//\1/ | |
11704 | q | |
11705 | } | |
11706 | /^X\(\/\).*/{ | |
11707 | s//\1/ | |
11708 | q | |
11709 | } | |
11710 | s/.*/./; q'` | |
1ef0423a | 11711 | as_dir="$ac_dir"; as_fn_mkdir_p |
2f1a1aea FCE |
11712 | ac_builddir=. |
11713 | ||
7fbd9d09 FCE |
11714 | case "$ac_dir" in |
11715 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
11716 | *) | |
0710d850 | 11717 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
7fbd9d09 | 11718 | # A ".." for each directory in $ac_dir_suffix. |
0710d850 | 11719 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
7fbd9d09 FCE |
11720 | case $ac_top_builddir_sub in |
11721 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
11722 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
11723 | esac ;; | |
11724 | esac | |
11725 | ac_abs_top_builddir=$ac_pwd | |
11726 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
11727 | # for backward compatibility: | |
11728 | ac_top_builddir=$ac_top_build_prefix | |
2f1a1aea FCE |
11729 | |
11730 | case $srcdir in | |
7fbd9d09 | 11731 | .) # We are building in place. |
2f1a1aea | 11732 | ac_srcdir=. |
7fbd9d09 FCE |
11733 | ac_top_srcdir=$ac_top_builddir_sub |
11734 | ac_abs_top_srcdir=$ac_pwd ;; | |
11735 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
2f1a1aea | 11736 | ac_srcdir=$srcdir$ac_dir_suffix; |
7fbd9d09 FCE |
11737 | ac_top_srcdir=$srcdir |
11738 | ac_abs_top_srcdir=$srcdir ;; | |
11739 | *) # Relative name. | |
11740 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
11741 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
11742 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
2f1a1aea | 11743 | esac |
7fbd9d09 | 11744 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
2f1a1aea | 11745 | |
2f1a1aea | 11746 | |
7fbd9d09 FCE |
11747 | case $ac_mode in |
11748 | :F) | |
11749 | # | |
11750 | # CONFIG_FILE | |
11751 | # | |
2f1a1aea FCE |
11752 | |
11753 | case $INSTALL in | |
11754 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
7fbd9d09 FCE |
11755 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
11756 | esac | |
11757 | ac_MKDIR_P=$MKDIR_P | |
11758 | case $MKDIR_P in | |
11759 | [\\/$]* | ?:[\\/]* ) ;; | |
11760 | */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; | |
5e0d2ebf | 11761 | esac |
7fbd9d09 | 11762 | _ACEOF |
5e0d2ebf | 11763 | |
0710d850 | 11764 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
7fbd9d09 FCE |
11765 | # If the template does not know about datarootdir, expand it. |
11766 | # FIXME: This hack should be removed a few years after 2.60. | |
11767 | ac_datarootdir_hack=; ac_datarootdir_seen= | |
0710d850 DS |
11768 | ac_sed_dataroot=' |
11769 | /datarootdir/ { | |
7fbd9d09 FCE |
11770 | p |
11771 | q | |
11772 | } | |
11773 | /@datadir@/p | |
11774 | /@docdir@/p | |
11775 | /@infodir@/p | |
11776 | /@localedir@/p | |
1ef0423a | 11777 | /@mandir@/p' |
0710d850 | 11778 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in |
7fbd9d09 FCE |
11779 | *datarootdir*) ac_datarootdir_seen=yes;; |
11780 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
1ef0423a | 11781 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
0710d850 | 11782 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} |
7fbd9d09 | 11783 | _ACEOF |
0710d850 | 11784 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
7fbd9d09 FCE |
11785 | ac_datarootdir_hack=' |
11786 | s&@datadir@&$datadir&g | |
11787 | s&@docdir@&$docdir&g | |
11788 | s&@infodir@&$infodir&g | |
11789 | s&@localedir@&$localedir&g | |
11790 | s&@mandir@&$mandir&g | |
1ef0423a | 11791 | s&\\\${datarootdir}&$datarootdir&g' ;; |
7fbd9d09 | 11792 | esac |
70d28673 | 11793 | _ACEOF |
7fbd9d09 FCE |
11794 | |
11795 | # Neutralize VPATH when `$srcdir' = `.'. | |
11796 | # Shell code in configure.ac might set extrasub. | |
11797 | # FIXME: do we really want to maintain this feature? | |
0710d850 DS |
11798 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
11799 | ac_sed_extra="$ac_vpsub | |
2f1a1aea FCE |
11800 | $extrasub |
11801 | _ACEOF | |
0710d850 | 11802 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
2f1a1aea FCE |
11803 | :t |
11804 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
0710d850 | 11805 | s|@configure_input@|$ac_sed_conf_input|;t t |
7fbd9d09 | 11806 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
0710d850 | 11807 | s&@top_build_prefix@&$ac_top_build_prefix&;t t |
7fbd9d09 FCE |
11808 | s&@srcdir@&$ac_srcdir&;t t |
11809 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
11810 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
11811 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
11812 | s&@builddir@&$ac_builddir&;t t | |
11813 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
11814 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
11815 | s&@INSTALL@&$ac_INSTALL&;t t | |
11816 | s&@MKDIR_P@&$ac_MKDIR_P&;t t | |
11817 | $ac_datarootdir_hack | |
0710d850 | 11818 | " |
c3de29bd LB |
11819 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ |
11820 | >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
7fbd9d09 FCE |
11821 | |
11822 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | |
c3de29bd LB |
11823 | { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && |
11824 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ | |
11825 | "$ac_tmp/out"`; test -z "$ac_out"; } && | |
1ef0423a | 11826 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
5d4aa1f5 | 11827 | which seems to be undefined. Please make sure it is defined" >&5 |
0710d850 | 11828 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
5d4aa1f5 | 11829 | which seems to be undefined. Please make sure it is defined" >&2;} |
7fbd9d09 | 11830 | |
c3de29bd | 11831 | rm -f "$ac_tmp/stdin" |
818ba2bc | 11832 | case $ac_file in |
c3de29bd LB |
11833 | -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; |
11834 | *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; | |
0710d850 | 11835 | esac \ |
5d4aa1f5 | 11836 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
7fbd9d09 FCE |
11837 | ;; |
11838 | :H) | |
11839 | # | |
11840 | # CONFIG_HEADER | |
11841 | # | |
818ba2bc | 11842 | if test x"$ac_file" != x-; then |
0710d850 DS |
11843 | { |
11844 | $as_echo "/* $configure_input */" \ | |
c3de29bd LB |
11845 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" |
11846 | } >"$ac_tmp/config.h" \ | |
5d4aa1f5 | 11847 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
c3de29bd | 11848 | if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then |
1ef0423a | 11849 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 |
0710d850 | 11850 | $as_echo "$as_me: $ac_file is unchanged" >&6;} |
2f1a1aea | 11851 | else |
0710d850 | 11852 | rm -f "$ac_file" |
c3de29bd | 11853 | mv "$ac_tmp/config.h" "$ac_file" \ |
5d4aa1f5 | 11854 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
2f1a1aea FCE |
11855 | fi |
11856 | else | |
0710d850 | 11857 | $as_echo "/* $configure_input */" \ |
c3de29bd | 11858 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ |
5d4aa1f5 | 11859 | || as_fn_error $? "could not create -" "$LINENO" 5 |
2f1a1aea | 11860 | fi |
0710d850 DS |
11861 | # Compute "$ac_file"'s index in $config_headers. |
11862 | _am_arg="$ac_file" | |
2f1a1aea FCE |
11863 | _am_stamp_count=1 |
11864 | for _am_header in $config_headers :; do | |
11865 | case $_am_header in | |
0710d850 | 11866 | $_am_arg | $_am_arg:* ) |
2f1a1aea FCE |
11867 | break ;; |
11868 | * ) | |
11869 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; | |
11870 | esac | |
11871 | done | |
0710d850 DS |
11872 | echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || |
11873 | $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
11874 | X"$_am_arg" : 'X\(//\)[^/]' \| \ | |
11875 | X"$_am_arg" : 'X\(//\)$' \| \ | |
11876 | X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || | |
11877 | $as_echo X"$_am_arg" | | |
7fbd9d09 FCE |
11878 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
11879 | s//\1/ | |
11880 | q | |
11881 | } | |
11882 | /^X\(\/\/\)[^/].*/{ | |
11883 | s//\1/ | |
11884 | q | |
11885 | } | |
11886 | /^X\(\/\/\)$/{ | |
11887 | s//\1/ | |
11888 | q | |
11889 | } | |
11890 | /^X\(\/\).*/{ | |
11891 | s//\1/ | |
11892 | q | |
11893 | } | |
11894 | s/.*/./; q'`/stamp-h$_am_stamp_count | |
11895 | ;; | |
818ba2bc | 11896 | |
1ef0423a | 11897 | :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 |
0710d850 | 11898 | $as_echo "$as_me: executing $ac_file commands" >&6;} |
7fbd9d09 FCE |
11899 | ;; |
11900 | esac | |
818ba2bc MW |
11901 | |
11902 | ||
7fbd9d09 | 11903 | case $ac_file$ac_mode in |
0710d850 DS |
11904 | "depfiles":C) test x"$AMDEP_TRUE" != x"" || { |
11905 | # Autoconf 2.62 quotes --file arguments for eval, but not when files | |
11906 | # are listed without --file. Let's play safe and only enable the eval | |
11907 | # if we detect the quoting. | |
11908 | case $CONFIG_FILES in | |
11909 | *\'*) eval set x "$CONFIG_FILES" ;; | |
11910 | *) set x $CONFIG_FILES ;; | |
11911 | esac | |
11912 | shift | |
11913 | for mf | |
11914 | do | |
11915 | # Strip MF so we end up with the name of the file. | |
11916 | mf=`echo "$mf" | sed -e 's/:.*$//'` | |
11917 | # Check whether this is an Automake generated Makefile or not. | |
11918 | # We used to match only the files named `Makefile.in', but | |
11919 | # some people rename them; so instead we look at the file content. | |
11920 | # Grep'ing the first line is not enough: some people post-process | |
11921 | # each Makefile.in and add a new line on top of each file to say so. | |
11922 | # Grep'ing the whole file is not good either: AIX grep has a line | |
11923 | # limit of 2048, but all sed's we know have understand at least 4000. | |
11924 | if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then | |
11925 | dirpart=`$as_dirname -- "$mf" || | |
2f1a1aea FCE |
11926 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
11927 | X"$mf" : 'X\(//\)[^/]' \| \ | |
11928 | X"$mf" : 'X\(//\)$' \| \ | |
7fbd9d09 | 11929 | X"$mf" : 'X\(/\)' \| . 2>/dev/null || |
0710d850 | 11930 | $as_echo X"$mf" | |
7fbd9d09 FCE |
11931 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
11932 | s//\1/ | |
11933 | q | |
11934 | } | |
11935 | /^X\(\/\/\)[^/].*/{ | |
11936 | s//\1/ | |
11937 | q | |
11938 | } | |
11939 | /^X\(\/\/\)$/{ | |
11940 | s//\1/ | |
11941 | q | |
11942 | } | |
11943 | /^X\(\/\).*/{ | |
11944 | s//\1/ | |
11945 | q | |
11946 | } | |
11947 | s/.*/./; q'` | |
0710d850 DS |
11948 | else |
11949 | continue | |
11950 | fi | |
11951 | # Extract the definition of DEPDIR, am__include, and am__quote | |
11952 | # from the Makefile without running `make'. | |
11953 | DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` | |
11954 | test -z "$DEPDIR" && continue | |
11955 | am__include=`sed -n 's/^am__include = //p' < "$mf"` | |
11956 | test -z "am__include" && continue | |
11957 | am__quote=`sed -n 's/^am__quote = //p' < "$mf"` | |
11958 | # When using ansi2knr, U may be empty or an underscore; expand it | |
11959 | U=`sed -n 's/^U = //p' < "$mf"` | |
11960 | # Find all dependency output files, they are included files with | |
11961 | # $(DEPDIR) in their names. We invoke sed twice because it is the | |
11962 | # simplest approach to changing $(DEPDIR) to its actual value in the | |
11963 | # expansion. | |
11964 | for file in `sed -n " | |
11965 | s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ | |
11966 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do | |
11967 | # Make sure the directory exists. | |
11968 | test -f "$dirpart/$file" && continue | |
11969 | fdir=`$as_dirname -- "$file" || | |
2f1a1aea FCE |
11970 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
11971 | X"$file" : 'X\(//\)[^/]' \| \ | |
11972 | X"$file" : 'X\(//\)$' \| \ | |
7fbd9d09 | 11973 | X"$file" : 'X\(/\)' \| . 2>/dev/null || |
0710d850 | 11974 | $as_echo X"$file" | |
7fbd9d09 FCE |
11975 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
11976 | s//\1/ | |
11977 | q | |
11978 | } | |
11979 | /^X\(\/\/\)[^/].*/{ | |
11980 | s//\1/ | |
11981 | q | |
11982 | } | |
11983 | /^X\(\/\/\)$/{ | |
11984 | s//\1/ | |
11985 | q | |
11986 | } | |
11987 | /^X\(\/\).*/{ | |
11988 | s//\1/ | |
11989 | q | |
11990 | } | |
11991 | s/.*/./; q'` | |
1ef0423a | 11992 | as_dir=$dirpart/$fdir; as_fn_mkdir_p |
0710d850 DS |
11993 | # echo "creating $dirpart/$file" |
11994 | echo '# dummy' > "$dirpart/$file" | |
11995 | done | |
2f1a1aea | 11996 | done |
0710d850 | 11997 | } |
2f1a1aea | 11998 | ;; |
8f223b3e FCE |
11999 | "po-directories":C) |
12000 | for ac_file in $CONFIG_FILES; do | |
12001 | # Support "outfile[:infile[:infile...]]" | |
12002 | case "$ac_file" in | |
12003 | *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | |
12004 | esac | |
12005 | # PO directories have a Makefile.in generated from Makefile.in.in. | |
12006 | case "$ac_file" in */Makefile.in) | |
12007 | # Adjust a relative srcdir. | |
12008 | ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'` | |
12009 | ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`" | |
12010 | ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'` | |
12011 | # In autoconf-2.13 it is called $ac_given_srcdir. | |
12012 | # In autoconf-2.50 it is called $srcdir. | |
12013 | test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir" | |
12014 | case "$ac_given_srcdir" in | |
12015 | .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;; | |
12016 | /*) top_srcdir="$ac_given_srcdir" ;; | |
12017 | *) top_srcdir="$ac_dots$ac_given_srcdir" ;; | |
12018 | esac | |
12019 | # Treat a directory as a PO directory if and only if it has a | |
12020 | # POTFILES.in file. This allows packages to have multiple PO | |
12021 | # directories under different names or in different locations. | |
12022 | if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then | |
12023 | rm -f "$ac_dir/POTFILES" | |
12024 | test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES" | |
12025 | cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES" | |
12026 | POMAKEFILEDEPS="POTFILES.in" | |
12027 | # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend | |
12028 | # on $ac_dir but don't depend on user-specified configuration | |
12029 | # parameters. | |
12030 | if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then | |
12031 | # The LINGUAS file contains the set of available languages. | |
12032 | if test -n "$OBSOLETE_ALL_LINGUAS"; then | |
12033 | test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete" | |
12034 | fi | |
12035 | ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"` | |
12036 | # Hide the ALL_LINGUAS assigment from automake < 1.5. | |
12037 | eval 'ALL_LINGUAS''=$ALL_LINGUAS_' | |
12038 | POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS" | |
12039 | else | |
12040 | # The set of available languages was given in configure.in. | |
12041 | # Hide the ALL_LINGUAS assigment from automake < 1.5. | |
12042 | eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS' | |
12043 | fi | |
12044 | # Compute POFILES | |
12045 | # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po) | |
12046 | # Compute UPDATEPOFILES | |
12047 | # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update) | |
12048 | # Compute DUMMYPOFILES | |
12049 | # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop) | |
12050 | # Compute GMOFILES | |
12051 | # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo) | |
12052 | case "$ac_given_srcdir" in | |
12053 | .) srcdirpre= ;; | |
12054 | *) srcdirpre='$(srcdir)/' ;; | |
12055 | esac | |
12056 | POFILES= | |
12057 | UPDATEPOFILES= | |
12058 | DUMMYPOFILES= | |
12059 | GMOFILES= | |
12060 | for lang in $ALL_LINGUAS; do | |
12061 | POFILES="$POFILES $srcdirpre$lang.po" | |
12062 | UPDATEPOFILES="$UPDATEPOFILES $lang.po-update" | |
12063 | DUMMYPOFILES="$DUMMYPOFILES $lang.nop" | |
12064 | GMOFILES="$GMOFILES $srcdirpre$lang.gmo" | |
12065 | done | |
12066 | # CATALOGS depends on both $ac_dir and the user's LINGUAS | |
12067 | # environment variable. | |
12068 | INST_LINGUAS= | |
12069 | if test -n "$ALL_LINGUAS"; then | |
12070 | for presentlang in $ALL_LINGUAS; do | |
12071 | useit=no | |
12072 | if test "%UNSET%" != "$LINGUAS"; then | |
12073 | desiredlanguages="$LINGUAS" | |
12074 | else | |
12075 | desiredlanguages="$ALL_LINGUAS" | |
12076 | fi | |
12077 | for desiredlang in $desiredlanguages; do | |
12078 | # Use the presentlang catalog if desiredlang is | |
12079 | # a. equal to presentlang, or | |
12080 | # b. a variant of presentlang (because in this case, | |
12081 | # presentlang can be used as a fallback for messages | |
12082 | # which are not translated in the desiredlang catalog). | |
12083 | case "$desiredlang" in | |
12084 | "$presentlang"*) useit=yes;; | |
12085 | esac | |
12086 | done | |
12087 | if test $useit = yes; then | |
12088 | INST_LINGUAS="$INST_LINGUAS $presentlang" | |
12089 | fi | |
12090 | done | |
12091 | fi | |
12092 | CATALOGS= | |
12093 | if test -n "$INST_LINGUAS"; then | |
12094 | for lang in $INST_LINGUAS; do | |
12095 | CATALOGS="$CATALOGS $lang.gmo" | |
12096 | done | |
12097 | fi | |
12098 | test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile" | |
12099 | 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" | |
12100 | for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do | |
12101 | if test -f "$f"; then | |
12102 | case "$f" in | |
12103 | *.orig | *.bak | *~) ;; | |
12104 | *) cat "$f" >> "$ac_dir/Makefile" ;; | |
12105 | esac | |
12106 | fi | |
12107 | done | |
12108 | fi | |
12109 | ;; | |
12110 | esac | |
12111 | done ;; | |
7fbd9d09 | 12112 | "run-stap":F) chmod +x run-stap ;; |
e4aaabda | 12113 | "dtrace":F) chmod +x dtrace ;; |
53ade4da | 12114 | "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 | 12115 | |
2f1a1aea | 12116 | esac |
7fbd9d09 | 12117 | done # for ac_tag |
2f1a1aea | 12118 | |
2f1a1aea | 12119 | |
1ef0423a | 12120 | as_fn_exit 0 |
2f1a1aea | 12121 | _ACEOF |
2f1a1aea FCE |
12122 | ac_clean_files=$ac_clean_files_save |
12123 | ||
0710d850 | 12124 | test $ac_write_fail = 0 || |
5d4aa1f5 | 12125 | as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 |
0710d850 | 12126 | |
2f1a1aea FCE |
12127 | |
12128 | # configure is writing to config.log, and then calls config.status. | |
12129 | # config.status does its own redirection, appending to config.log. | |
12130 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
12131 | # by configure, so config.status won't be able to write to it; its | |
12132 | # output is simply discarded. So we exec the FD to /dev/null, | |
12133 | # effectively closing config.log, so it can be properly (re)opened and | |
12134 | # appended to by config.status. When coming back to configure, we | |
12135 | # need to make the FD available again. | |
12136 | if test "$no_create" != yes; then | |
12137 | ac_cs_success=: | |
12138 | ac_config_status_args= | |
12139 | test "$silent" = yes && | |
12140 | ac_config_status_args="$ac_config_status_args --quiet" | |
12141 | exec 5>/dev/null | |
12142 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
12143 | exec 5>>config.log | |
12144 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
12145 | # would make configure fail if this is the last instruction. | |
5d4aa1f5 | 12146 | $ac_cs_success || as_fn_exit 1 |
2f1a1aea FCE |
12147 | fi |
12148 | ||
5ba96b90 FCE |
12149 | # |
12150 | # CONFIG_SUBDIRS section. | |
12151 | # | |
12152 | if test "$no_recursion" != yes; then | |
12153 | ||
0710d850 DS |
12154 | # Remove --cache-file, --srcdir, and --disable-option-checking arguments |
12155 | # so they do not pile up. | |
5ba96b90 FCE |
12156 | ac_sub_configure_args= |
12157 | ac_prev= | |
7fbd9d09 FCE |
12158 | eval "set x $ac_configure_args" |
12159 | shift | |
12160 | for ac_arg | |
12161 | do | |
5ba96b90 FCE |
12162 | if test -n "$ac_prev"; then |
12163 | ac_prev= | |
12164 | continue | |
12165 | fi | |
12166 | case $ac_arg in | |
12167 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
12168 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
12169 | ac_prev=cache_file ;; | |
12170 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
12171 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \ | |
12172 | | --c=*) | |
12173 | ;; | |
12174 | --config-cache | -C) | |
12175 | ;; | |
12176 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
12177 | ac_prev=srcdir ;; | |
12178 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
12179 | ;; | |
12180 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
12181 | ac_prev=prefix ;; | |
12182 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
12183 | ;; | |
0710d850 DS |
12184 | --disable-option-checking) |
12185 | ;; | |
7fbd9d09 FCE |
12186 | *) |
12187 | case $ac_arg in | |
0710d850 | 12188 | *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
7fbd9d09 | 12189 | esac |
1ef0423a | 12190 | as_fn_append ac_sub_configure_args " '$ac_arg'" ;; |
5ba96b90 FCE |
12191 | esac |
12192 | done | |
12193 | ||
12194 | # Always prepend --prefix to ensure using the same prefix | |
12195 | # in subdir configurations. | |
7fbd9d09 FCE |
12196 | ac_arg="--prefix=$prefix" |
12197 | case $ac_arg in | |
0710d850 | 12198 | *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
7fbd9d09 FCE |
12199 | esac |
12200 | ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args" | |
12201 | ||
12202 | # Pass --silent | |
12203 | if test "$silent" = yes; then | |
12204 | ac_sub_configure_args="--silent $ac_sub_configure_args" | |
12205 | fi | |
daae650d | 12206 | |
0710d850 DS |
12207 | # Always prepend --disable-option-checking to silence warnings, since |
12208 | # different subdirs can have different --enable and --with options. | |
12209 | ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args" | |
12210 | ||
5ba96b90 FCE |
12211 | ac_popdir=`pwd` |
12212 | for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue | |
12213 | ||
12214 | # Do not complain, so a configure script can configure whichever | |
12215 | # parts of a large source tree are present. | |
7fbd9d09 FCE |
12216 | test -d "$srcdir/$ac_dir" || continue |
12217 | ||
12218 | ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)" | |
1ef0423a | 12219 | $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5 |
0710d850 | 12220 | $as_echo "$ac_msg" >&6 |
1ef0423a | 12221 | as_dir="$ac_dir"; as_fn_mkdir_p |
5ba96b90 FCE |
12222 | ac_builddir=. |
12223 | ||
7fbd9d09 FCE |
12224 | case "$ac_dir" in |
12225 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
12226 | *) | |
0710d850 | 12227 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
7fbd9d09 | 12228 | # A ".." for each directory in $ac_dir_suffix. |
0710d850 | 12229 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
7fbd9d09 FCE |
12230 | case $ac_top_builddir_sub in |
12231 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
12232 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
12233 | esac ;; | |
12234 | esac | |
12235 | ac_abs_top_builddir=$ac_pwd | |
12236 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
12237 | # for backward compatibility: | |
12238 | ac_top_builddir=$ac_top_build_prefix | |
5ba96b90 FCE |
12239 | |
12240 | case $srcdir in | |
7fbd9d09 | 12241 | .) # We are building in place. |
5ba96b90 | 12242 | ac_srcdir=. |
7fbd9d09 FCE |
12243 | ac_top_srcdir=$ac_top_builddir_sub |
12244 | ac_abs_top_srcdir=$ac_pwd ;; | |
12245 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
5ba96b90 | 12246 | ac_srcdir=$srcdir$ac_dir_suffix; |
7fbd9d09 FCE |
12247 | ac_top_srcdir=$srcdir |
12248 | ac_abs_top_srcdir=$srcdir ;; | |
12249 | *) # Relative name. | |
12250 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
12251 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
12252 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
5ba96b90 | 12253 | esac |
7fbd9d09 | 12254 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
5ba96b90 FCE |
12255 | |
12256 | ||
7fbd9d09 | 12257 | cd "$ac_dir" |
5ba96b90 FCE |
12258 | |
12259 | # Check for guested configure; otherwise get Cygnus style configure. | |
7fbd9d09 FCE |
12260 | if test -f "$ac_srcdir/configure.gnu"; then |
12261 | ac_sub_configure=$ac_srcdir/configure.gnu | |
12262 | elif test -f "$ac_srcdir/configure"; then | |
12263 | ac_sub_configure=$ac_srcdir/configure | |
12264 | elif test -f "$ac_srcdir/configure.in"; then | |
12265 | # This should be Cygnus configure. | |
12266 | ac_sub_configure=$ac_aux_dir/configure | |
5ba96b90 | 12267 | else |
1ef0423a | 12268 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5 |
0710d850 | 12269 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;} |
5ba96b90 FCE |
12270 | ac_sub_configure= |
12271 | fi | |
12272 | ||
12273 | # The recursion is here. | |
12274 | if test -n "$ac_sub_configure"; then | |
12275 | # Make the cache file name correct relative to the subdirectory. | |
12276 | case $cache_file in | |
12277 | [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;; | |
7fbd9d09 FCE |
12278 | *) # Relative name. |
12279 | ac_sub_cache_file=$ac_top_build_prefix$cache_file ;; | |
5ba96b90 FCE |
12280 | esac |
12281 | ||
1ef0423a | 12282 | { $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 | 12283 | $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;} |
5ba96b90 | 12284 | # The eval makes quoting arguments work. |
7fbd9d09 FCE |
12285 | eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \ |
12286 | --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" || | |
5d4aa1f5 | 12287 | as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5 |
5ba96b90 FCE |
12288 | fi |
12289 | ||
7fbd9d09 | 12290 | cd "$ac_popdir" |
5ba96b90 FCE |
12291 | done |
12292 | fi | |
0710d850 | 12293 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
1ef0423a | 12294 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 |
0710d850 DS |
12295 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} |
12296 | fi | |
5ba96b90 | 12297 | |
4d9087fc | 12298 | |
af29024d | 12299 | if test "${prefix}" = "/usr/local"; then |
1ef0423a | 12300 | { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5 |
0710d850 | 12301 | $as_echo "$as_me: " >&6;} |
1ef0423a | 12302 | { $as_echo "$as_me:${as_lineno-$LINENO}: For a private or temporary build of systemtap, we recommend" >&5 |
0710d850 | 12303 | $as_echo "$as_me: For a private or temporary build of systemtap, we recommend" >&6;} |
1ef0423a | 12304 | { $as_echo "$as_me:${as_lineno-$LINENO}: configuring with a prefix. For example, try" >&5 |
0710d850 | 12305 | $as_echo "$as_me: configuring with a prefix. For example, try" >&6;} |
1ef0423a | 12306 | { $as_echo "$as_me:${as_lineno-$LINENO}: $0 $ac_configure_args --prefix=$HOME/systemtap-${PACKAGE_VERSION}-$$" >&5 |
0710d850 | 12307 | $as_echo "$as_me: $0 $ac_configure_args --prefix=$HOME/systemtap-${PACKAGE_VERSION}-$$" >&6;} |
1ef0423a | 12308 | { $as_echo "$as_me:${as_lineno-$LINENO}: Running systemtap uninstalled, entirely out of the build tree," >&5 |
0710d850 | 12309 | $as_echo "$as_me: Running systemtap uninstalled, entirely out of the build tree," >&6;} |
1ef0423a | 12310 | { $as_echo "$as_me:${as_lineno-$LINENO}: is not supported." >&5 |
0710d850 | 12311 | $as_echo "$as_me: is not supported." >&6;} |
af29024d | 12312 | fi |