Merge lp:~ubuntu-branches/ubuntu/oneiric/kexec-tools/oneiric-201105231611 into lp:ubuntu/oneiric/kexec-tools
- Oneiric (11.10)
- oneiric-201105231611
- Merge into oneiric
Status: | Rejected |
---|---|
Rejected by: | James Westby |
Proposed branch: | lp:~ubuntu-branches/ubuntu/oneiric/kexec-tools/oneiric-201105231611 |
Merge into: | lp:ubuntu/oneiric/kexec-tools |
Diff against target: |
8774 lines (+8730/-0) (has conflicts) 5 files modified
configure (+5958/-0) include/config.h (+4/-0) include/config.h.in (+67/-0) kexec-tools.spec (+42/-0) kexec/purgatory.c (+2659/-0) Contents conflict in configure Text conflict in include/config.h Contents conflict in include/config.h.in Contents conflict in kexec-tools.spec Contents conflict in kexec/purgatory.c |
To merge this branch: | bzr merge lp:~ubuntu-branches/ubuntu/oneiric/kexec-tools/oneiric-201105231611 |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Ubuntu branches | Pending | ||
Review via email: mp+61997@code.launchpad.net |
Commit message
Description of the change
The package history in the archive and the history in the bzr branch differ. As the archive is authoritative the history of lp:ubuntu/oneiric/kexec-tools now reflects that and the old bzr branch has been pushed to lp:~ubuntu-branches/ubuntu/oneiric/kexec-tools/oneiric-201105231611. A merge should be performed if necessary.
Unmerged revisions
- 42. By Andy Whitcroft
-
* Merge with Debian.
- Drop DEBIAN.readme taking debian upstream version
- Drop ubuntu patch arm-higher-initrd- load-addr dpatch as initrd
locations are now calculated from the current size assuming maximum
compression of * 4.
- Remaining changes:
+ Run aclocal during build; build-dep on automake1.9.
+ Add and install kdump init script and initramfs snippet; depend on
initramfs-tools and call the update-initramfs trigger. Also call
update-grub after update-initramfs trigger.
+ Default to not kexecing a kernel on boot in the automatically
generated conffile.
+ --no-undefined is a linker option, not a gcc option.
* New upstream release (closes: Bug#623814)
* Updated watch file (closes: Bug#623813)
* Updated URL in copyright file
* Updated linitian overrides file to match path name for new lintian
* Added source/lintian- overrides file to override innocuous lintian errors
* Fix pending l10n issues. Debconf translations:
- Spanish (CamaleĆ³n). Closes: #583538
- Danish (Joe Hansen). Closes: #599859
- Italian (Vincenzo Campanella). Closes: #600218
* Added support for building udeb (closes: Bug#591441)
* Updated standards version to 3.9.1 - 41. By Andy Whitcroft
-
Merging shared upstream rev into target branch.
Preview Diff
1 | === added file 'configure' | |||
2 | --- configure 1970-01-01 00:00:00 +0000 | |||
3 | +++ configure 2011-05-23 16:15:55 +0000 | |||
4 | @@ -0,0 +1,5958 @@ | |||
5 | 1 | #! /bin/sh | ||
6 | 2 | # Guess values for system-dependent variables and create Makefiles. | ||
7 | 3 | # Generated by GNU Autoconf 2.65 for kexec-tools 2.0.2. | ||
8 | 4 | # | ||
9 | 5 | # | ||
10 | 6 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, | ||
11 | 7 | # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, | ||
12 | 8 | # Inc. | ||
13 | 9 | # | ||
14 | 10 | # | ||
15 | 11 | # This configure script is free software; the Free Software Foundation | ||
16 | 12 | # gives unlimited permission to copy, distribute and modify it. | ||
17 | 13 | ## -------------------- ## | ||
18 | 14 | ## M4sh Initialization. ## | ||
19 | 15 | ## -------------------- ## | ||
20 | 16 | |||
21 | 17 | # Be more Bourne compatible | ||
22 | 18 | DUALCASE=1; export DUALCASE # for MKS sh | ||
23 | 19 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | ||
24 | 20 | emulate sh | ||
25 | 21 | NULLCMD=: | ||
26 | 22 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which | ||
27 | 23 | # is contrary to our usage. Disable this feature. | ||
28 | 24 | alias -g '${1+"$@"}'='"$@"' | ||
29 | 25 | setopt NO_GLOB_SUBST | ||
30 | 26 | else | ||
31 | 27 | case `(set -o) 2>/dev/null` in #( | ||
32 | 28 | *posix*) : | ||
33 | 29 | set -o posix ;; #( | ||
34 | 30 | *) : | ||
35 | 31 | ;; | ||
36 | 32 | esac | ||
37 | 33 | fi | ||
38 | 34 | |||
39 | 35 | |||
40 | 36 | as_nl=' | ||
41 | 37 | ' | ||
42 | 38 | export as_nl | ||
43 | 39 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | ||
44 | 40 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | ||
45 | 41 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | ||
46 | 42 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | ||
47 | 43 | # Prefer a ksh shell builtin over an external printf program on Solaris, | ||
48 | 44 | # but without wasting forks for bash or zsh. | ||
49 | 45 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | ||
50 | 46 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | ||
51 | 47 | as_echo='print -r --' | ||
52 | 48 | as_echo_n='print -rn --' | ||
53 | 49 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | ||
54 | 50 | as_echo='printf %s\n' | ||
55 | 51 | as_echo_n='printf %s' | ||
56 | 52 | else | ||
57 | 53 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | ||
58 | 54 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | ||
59 | 55 | as_echo_n='/usr/ucb/echo -n' | ||
60 | 56 | else | ||
61 | 57 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | ||
62 | 58 | as_echo_n_body='eval | ||
63 | 59 | arg=$1; | ||
64 | 60 | case $arg in #( | ||
65 | 61 | *"$as_nl"*) | ||
66 | 62 | expr "X$arg" : "X\\(.*\\)$as_nl"; | ||
67 | 63 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | ||
68 | 64 | esac; | ||
69 | 65 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | ||
70 | 66 | ' | ||
71 | 67 | export as_echo_n_body | ||
72 | 68 | as_echo_n='sh -c $as_echo_n_body as_echo' | ||
73 | 69 | fi | ||
74 | 70 | export as_echo_body | ||
75 | 71 | as_echo='sh -c $as_echo_body as_echo' | ||
76 | 72 | fi | ||
77 | 73 | |||
78 | 74 | # The user is always right. | ||
79 | 75 | if test "${PATH_SEPARATOR+set}" != set; then | ||
80 | 76 | PATH_SEPARATOR=: | ||
81 | 77 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | ||
82 | 78 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | ||
83 | 79 | PATH_SEPARATOR=';' | ||
84 | 80 | } | ||
85 | 81 | fi | ||
86 | 82 | |||
87 | 83 | |||
88 | 84 | # IFS | ||
89 | 85 | # We need space, tab and new line, in precisely that order. Quoting is | ||
90 | 86 | # there to prevent editors from complaining about space-tab. | ||
91 | 87 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | ||
92 | 88 | # splitting by setting IFS to empty value.) | ||
93 | 89 | IFS=" "" $as_nl" | ||
94 | 90 | |||
95 | 91 | # Find who we are. Look in the path if we contain no directory separator. | ||
96 | 92 | case $0 in #(( | ||
97 | 93 | *[\\/]* ) as_myself=$0 ;; | ||
98 | 94 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
99 | 95 | for as_dir in $PATH | ||
100 | 96 | do | ||
101 | 97 | IFS=$as_save_IFS | ||
102 | 98 | test -z "$as_dir" && as_dir=. | ||
103 | 99 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | ||
104 | 100 | done | ||
105 | 101 | IFS=$as_save_IFS | ||
106 | 102 | |||
107 | 103 | ;; | ||
108 | 104 | esac | ||
109 | 105 | # We did not find ourselves, most probably we were run as `sh COMMAND' | ||
110 | 106 | # in which case we are not to be found in the path. | ||
111 | 107 | if test "x$as_myself" = x; then | ||
112 | 108 | as_myself=$0 | ||
113 | 109 | fi | ||
114 | 110 | if test ! -f "$as_myself"; then | ||
115 | 111 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | ||
116 | 112 | exit 1 | ||
117 | 113 | fi | ||
118 | 114 | |||
119 | 115 | # Unset variables that we do not need and which cause bugs (e.g. in | ||
120 | 116 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | ||
121 | 117 | # suppresses any "Segmentation fault" message there. '((' could | ||
122 | 118 | # trigger a bug in pdksh 5.2.14. | ||
123 | 119 | for as_var in BASH_ENV ENV MAIL MAILPATH | ||
124 | 120 | do eval test x\${$as_var+set} = xset \ | ||
125 | 121 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | ||
126 | 122 | done | ||
127 | 123 | PS1='$ ' | ||
128 | 124 | PS2='> ' | ||
129 | 125 | PS4='+ ' | ||
130 | 126 | |||
131 | 127 | # NLS nuisances. | ||
132 | 128 | LC_ALL=C | ||
133 | 129 | export LC_ALL | ||
134 | 130 | LANGUAGE=C | ||
135 | 131 | export LANGUAGE | ||
136 | 132 | |||
137 | 133 | # CDPATH. | ||
138 | 134 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | ||
139 | 135 | |||
140 | 136 | if test "x$CONFIG_SHELL" = x; then | ||
141 | 137 | as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : | ||
142 | 138 | emulate sh | ||
143 | 139 | NULLCMD=: | ||
144 | 140 | # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which | ||
145 | 141 | # is contrary to our usage. Disable this feature. | ||
146 | 142 | alias -g '\${1+\"\$@\"}'='\"\$@\"' | ||
147 | 143 | setopt NO_GLOB_SUBST | ||
148 | 144 | else | ||
149 | 145 | case \`(set -o) 2>/dev/null\` in #( | ||
150 | 146 | *posix*) : | ||
151 | 147 | set -o posix ;; #( | ||
152 | 148 | *) : | ||
153 | 149 | ;; | ||
154 | 150 | esac | ||
155 | 151 | fi | ||
156 | 152 | " | ||
157 | 153 | as_required="as_fn_return () { (exit \$1); } | ||
158 | 154 | as_fn_success () { as_fn_return 0; } | ||
159 | 155 | as_fn_failure () { as_fn_return 1; } | ||
160 | 156 | as_fn_ret_success () { return 0; } | ||
161 | 157 | as_fn_ret_failure () { return 1; } | ||
162 | 158 | |||
163 | 159 | exitcode=0 | ||
164 | 160 | as_fn_success || { exitcode=1; echo as_fn_success failed.; } | ||
165 | 161 | as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } | ||
166 | 162 | as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } | ||
167 | 163 | as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } | ||
168 | 164 | if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : | ||
169 | 165 | |||
170 | 166 | else | ||
171 | 167 | exitcode=1; echo positional parameters were not saved. | ||
172 | 168 | fi | ||
173 | 169 | test x\$exitcode = x0 || exit 1" | ||
174 | 170 | as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO | ||
175 | 171 | as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO | ||
176 | 172 | eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && | ||
177 | 173 | test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 | ||
178 | 174 | test \$(( 1 + 1 )) = 2 || exit 1" | ||
179 | 175 | if (eval "$as_required") 2>/dev/null; then : | ||
180 | 176 | as_have_required=yes | ||
181 | 177 | else | ||
182 | 178 | as_have_required=no | ||
183 | 179 | fi | ||
184 | 180 | if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : | ||
185 | 181 | |||
186 | 182 | else | ||
187 | 183 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
188 | 184 | as_found=false | ||
189 | 185 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | ||
190 | 186 | do | ||
191 | 187 | IFS=$as_save_IFS | ||
192 | 188 | test -z "$as_dir" && as_dir=. | ||
193 | 189 | as_found=: | ||
194 | 190 | case $as_dir in #( | ||
195 | 191 | /*) | ||
196 | 192 | for as_base in sh bash ksh sh5; do | ||
197 | 193 | # Try only shells that exist, to save several forks. | ||
198 | 194 | as_shell=$as_dir/$as_base | ||
199 | 195 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && | ||
200 | 196 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : | ||
201 | 197 | CONFIG_SHELL=$as_shell as_have_required=yes | ||
202 | 198 | if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : | ||
203 | 199 | break 2 | ||
204 | 200 | fi | ||
205 | 201 | fi | ||
206 | 202 | done;; | ||
207 | 203 | esac | ||
208 | 204 | as_found=false | ||
209 | 205 | done | ||
210 | 206 | $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && | ||
211 | 207 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : | ||
212 | 208 | CONFIG_SHELL=$SHELL as_have_required=yes | ||
213 | 209 | fi; } | ||
214 | 210 | IFS=$as_save_IFS | ||
215 | 211 | |||
216 | 212 | |||
217 | 213 | if test "x$CONFIG_SHELL" != x; then : | ||
218 | 214 | # We cannot yet assume a decent shell, so we have to provide a | ||
219 | 215 | # neutralization value for shells without unset; and this also | ||
220 | 216 | # works around shells that cannot unset nonexistent variables. | ||
221 | 217 | BASH_ENV=/dev/null | ||
222 | 218 | ENV=/dev/null | ||
223 | 219 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV | ||
224 | 220 | export CONFIG_SHELL | ||
225 | 221 | exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} | ||
226 | 222 | fi | ||
227 | 223 | |||
228 | 224 | if test x$as_have_required = xno; then : | ||
229 | 225 | $as_echo "$0: This script requires a shell more modern than all" | ||
230 | 226 | $as_echo "$0: the shells that I found on your system." | ||
231 | 227 | if test x${ZSH_VERSION+set} = xset ; then | ||
232 | 228 | $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" | ||
233 | 229 | $as_echo "$0: be upgraded to zsh 4.3.4 or later." | ||
234 | 230 | else | ||
235 | 231 | $as_echo "$0: Please tell bug-autoconf@gnu.org about your system, | ||
236 | 232 | $0: including any error possibly output before this | ||
237 | 233 | $0: message. Then install a modern shell, or manually run | ||
238 | 234 | $0: the script under such a shell if you do have one." | ||
239 | 235 | fi | ||
240 | 236 | exit 1 | ||
241 | 237 | fi | ||
242 | 238 | fi | ||
243 | 239 | fi | ||
244 | 240 | SHELL=${CONFIG_SHELL-/bin/sh} | ||
245 | 241 | export SHELL | ||
246 | 242 | # Unset more variables known to interfere with behavior of common tools. | ||
247 | 243 | CLICOLOR_FORCE= GREP_OPTIONS= | ||
248 | 244 | unset CLICOLOR_FORCE GREP_OPTIONS | ||
249 | 245 | |||
250 | 246 | ## --------------------- ## | ||
251 | 247 | ## M4sh Shell Functions. ## | ||
252 | 248 | ## --------------------- ## | ||
253 | 249 | # as_fn_unset VAR | ||
254 | 250 | # --------------- | ||
255 | 251 | # Portably unset VAR. | ||
256 | 252 | as_fn_unset () | ||
257 | 253 | { | ||
258 | 254 | { eval $1=; unset $1;} | ||
259 | 255 | } | ||
260 | 256 | as_unset=as_fn_unset | ||
261 | 257 | |||
262 | 258 | # as_fn_set_status STATUS | ||
263 | 259 | # ----------------------- | ||
264 | 260 | # Set $? to STATUS, without forking. | ||
265 | 261 | as_fn_set_status () | ||
266 | 262 | { | ||
267 | 263 | return $1 | ||
268 | 264 | } # as_fn_set_status | ||
269 | 265 | |||
270 | 266 | # as_fn_exit STATUS | ||
271 | 267 | # ----------------- | ||
272 | 268 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | ||
273 | 269 | as_fn_exit () | ||
274 | 270 | { | ||
275 | 271 | set +e | ||
276 | 272 | as_fn_set_status $1 | ||
277 | 273 | exit $1 | ||
278 | 274 | } # as_fn_exit | ||
279 | 275 | |||
280 | 276 | # as_fn_mkdir_p | ||
281 | 277 | # ------------- | ||
282 | 278 | # Create "$as_dir" as a directory, including parents if necessary. | ||
283 | 279 | as_fn_mkdir_p () | ||
284 | 280 | { | ||
285 | 281 | |||
286 | 282 | case $as_dir in #( | ||
287 | 283 | -*) as_dir=./$as_dir;; | ||
288 | 284 | esac | ||
289 | 285 | test -d "$as_dir" || eval $as_mkdir_p || { | ||
290 | 286 | as_dirs= | ||
291 | 287 | while :; do | ||
292 | 288 | case $as_dir in #( | ||
293 | 289 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | ||
294 | 290 | *) as_qdir=$as_dir;; | ||
295 | 291 | esac | ||
296 | 292 | as_dirs="'$as_qdir' $as_dirs" | ||
297 | 293 | as_dir=`$as_dirname -- "$as_dir" || | ||
298 | 294 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | ||
299 | 295 | X"$as_dir" : 'X\(//\)[^/]' \| \ | ||
300 | 296 | X"$as_dir" : 'X\(//\)$' \| \ | ||
301 | 297 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | ||
302 | 298 | $as_echo X"$as_dir" | | ||
303 | 299 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | ||
304 | 300 | s//\1/ | ||
305 | 301 | q | ||
306 | 302 | } | ||
307 | 303 | /^X\(\/\/\)[^/].*/{ | ||
308 | 304 | s//\1/ | ||
309 | 305 | q | ||
310 | 306 | } | ||
311 | 307 | /^X\(\/\/\)$/{ | ||
312 | 308 | s//\1/ | ||
313 | 309 | q | ||
314 | 310 | } | ||
315 | 311 | /^X\(\/\).*/{ | ||
316 | 312 | s//\1/ | ||
317 | 313 | q | ||
318 | 314 | } | ||
319 | 315 | s/.*/./; q'` | ||
320 | 316 | test -d "$as_dir" && break | ||
321 | 317 | done | ||
322 | 318 | test -z "$as_dirs" || eval "mkdir $as_dirs" | ||
323 | 319 | } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" | ||
324 | 320 | |||
325 | 321 | |||
326 | 322 | } # as_fn_mkdir_p | ||
327 | 323 | # as_fn_append VAR VALUE | ||
328 | 324 | # ---------------------- | ||
329 | 325 | # Append the text in VALUE to the end of the definition contained in VAR. Take | ||
330 | 326 | # advantage of any shell optimizations that allow amortized linear growth over | ||
331 | 327 | # repeated appends, instead of the typical quadratic growth present in naive | ||
332 | 328 | # implementations. | ||
333 | 329 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | ||
334 | 330 | eval 'as_fn_append () | ||
335 | 331 | { | ||
336 | 332 | eval $1+=\$2 | ||
337 | 333 | }' | ||
338 | 334 | else | ||
339 | 335 | as_fn_append () | ||
340 | 336 | { | ||
341 | 337 | eval $1=\$$1\$2 | ||
342 | 338 | } | ||
343 | 339 | fi # as_fn_append | ||
344 | 340 | |||
345 | 341 | # as_fn_arith ARG... | ||
346 | 342 | # ------------------ | ||
347 | 343 | # Perform arithmetic evaluation on the ARGs, and store the result in the | ||
348 | 344 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | ||
349 | 345 | # must be portable across $(()) and expr. | ||
350 | 346 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | ||
351 | 347 | eval 'as_fn_arith () | ||
352 | 348 | { | ||
353 | 349 | as_val=$(( $* )) | ||
354 | 350 | }' | ||
355 | 351 | else | ||
356 | 352 | as_fn_arith () | ||
357 | 353 | { | ||
358 | 354 | as_val=`expr "$@" || test $? -eq 1` | ||
359 | 355 | } | ||
360 | 356 | fi # as_fn_arith | ||
361 | 357 | |||
362 | 358 | |||
363 | 359 | # as_fn_error ERROR [LINENO LOG_FD] | ||
364 | 360 | # --------------------------------- | ||
365 | 361 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | ||
366 | 362 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | ||
367 | 363 | # script with status $?, using 1 if that was 0. | ||
368 | 364 | as_fn_error () | ||
369 | 365 | { | ||
370 | 366 | as_status=$?; test $as_status -eq 0 && as_status=1 | ||
371 | 367 | if test "$3"; then | ||
372 | 368 | as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||
373 | 369 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 | ||
374 | 370 | fi | ||
375 | 371 | $as_echo "$as_me: error: $1" >&2 | ||
376 | 372 | as_fn_exit $as_status | ||
377 | 373 | } # as_fn_error | ||
378 | 374 | |||
379 | 375 | if expr a : '\(a\)' >/dev/null 2>&1 && | ||
380 | 376 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | ||
381 | 377 | as_expr=expr | ||
382 | 378 | else | ||
383 | 379 | as_expr=false | ||
384 | 380 | fi | ||
385 | 381 | |||
386 | 382 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then | ||
387 | 383 | as_basename=basename | ||
388 | 384 | else | ||
389 | 385 | as_basename=false | ||
390 | 386 | fi | ||
391 | 387 | |||
392 | 388 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then | ||
393 | 389 | as_dirname=dirname | ||
394 | 390 | else | ||
395 | 391 | as_dirname=false | ||
396 | 392 | fi | ||
397 | 393 | |||
398 | 394 | as_me=`$as_basename -- "$0" || | ||
399 | 395 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | ||
400 | 396 | X"$0" : 'X\(//\)$' \| \ | ||
401 | 397 | X"$0" : 'X\(/\)' \| . 2>/dev/null || | ||
402 | 398 | $as_echo X/"$0" | | ||
403 | 399 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | ||
404 | 400 | s//\1/ | ||
405 | 401 | q | ||
406 | 402 | } | ||
407 | 403 | /^X\/\(\/\/\)$/{ | ||
408 | 404 | s//\1/ | ||
409 | 405 | q | ||
410 | 406 | } | ||
411 | 407 | /^X\/\(\/\).*/{ | ||
412 | 408 | s//\1/ | ||
413 | 409 | q | ||
414 | 410 | } | ||
415 | 411 | s/.*/./; q'` | ||
416 | 412 | |||
417 | 413 | # Avoid depending upon Character Ranges. | ||
418 | 414 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | ||
419 | 415 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | ||
420 | 416 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | ||
421 | 417 | as_cr_digits='0123456789' | ||
422 | 418 | as_cr_alnum=$as_cr_Letters$as_cr_digits | ||
423 | 419 | |||
424 | 420 | |||
425 | 421 | as_lineno_1=$LINENO as_lineno_1a=$LINENO | ||
426 | 422 | as_lineno_2=$LINENO as_lineno_2a=$LINENO | ||
427 | 423 | eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && | ||
428 | 424 | test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { | ||
429 | 425 | # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) | ||
430 | 426 | sed -n ' | ||
431 | 427 | p | ||
432 | 428 | /[$]LINENO/= | ||
433 | 429 | ' <$as_myself | | ||
434 | 430 | sed ' | ||
435 | 431 | s/[$]LINENO.*/&-/ | ||
436 | 432 | t lineno | ||
437 | 433 | b | ||
438 | 434 | :lineno | ||
439 | 435 | N | ||
440 | 436 | :loop | ||
441 | 437 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | ||
442 | 438 | t loop | ||
443 | 439 | s/-\n.*// | ||
444 | 440 | ' >$as_me.lineno && | ||
445 | 441 | chmod +x "$as_me.lineno" || | ||
446 | 442 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } | ||
447 | 443 | |||
448 | 444 | # Don't try to exec as it changes $[0], causing all sort of problems | ||
449 | 445 | # (the dirname of $[0] is not the place where we might find the | ||
450 | 446 | # original and so on. Autoconf is especially sensitive to this). | ||
451 | 447 | . "./$as_me.lineno" | ||
452 | 448 | # Exit status is that of the last command. | ||
453 | 449 | exit | ||
454 | 450 | } | ||
455 | 451 | |||
456 | 452 | ECHO_C= ECHO_N= ECHO_T= | ||
457 | 453 | case `echo -n x` in #((((( | ||
458 | 454 | -n*) | ||
459 | 455 | case `echo 'xy\c'` in | ||
460 | 456 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | ||
461 | 457 | xy) ECHO_C='\c';; | ||
462 | 458 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | ||
463 | 459 | ECHO_T=' ';; | ||
464 | 460 | esac;; | ||
465 | 461 | *) | ||
466 | 462 | ECHO_N='-n';; | ||
467 | 463 | esac | ||
468 | 464 | |||
469 | 465 | rm -f conf$$ conf$$.exe conf$$.file | ||
470 | 466 | if test -d conf$$.dir; then | ||
471 | 467 | rm -f conf$$.dir/conf$$.file | ||
472 | 468 | else | ||
473 | 469 | rm -f conf$$.dir | ||
474 | 470 | mkdir conf$$.dir 2>/dev/null | ||
475 | 471 | fi | ||
476 | 472 | if (echo >conf$$.file) 2>/dev/null; then | ||
477 | 473 | if ln -s conf$$.file conf$$ 2>/dev/null; then | ||
478 | 474 | as_ln_s='ln -s' | ||
479 | 475 | # ... but there are two gotchas: | ||
480 | 476 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | ||
481 | 477 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | ||
482 | 478 | # In both cases, we have to default to `cp -p'. | ||
483 | 479 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | ||
484 | 480 | as_ln_s='cp -p' | ||
485 | 481 | elif ln conf$$.file conf$$ 2>/dev/null; then | ||
486 | 482 | as_ln_s=ln | ||
487 | 483 | else | ||
488 | 484 | as_ln_s='cp -p' | ||
489 | 485 | fi | ||
490 | 486 | else | ||
491 | 487 | as_ln_s='cp -p' | ||
492 | 488 | fi | ||
493 | 489 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file | ||
494 | 490 | rmdir conf$$.dir 2>/dev/null | ||
495 | 491 | |||
496 | 492 | if mkdir -p . 2>/dev/null; then | ||
497 | 493 | as_mkdir_p='mkdir -p "$as_dir"' | ||
498 | 494 | else | ||
499 | 495 | test -d ./-p && rmdir ./-p | ||
500 | 496 | as_mkdir_p=false | ||
501 | 497 | fi | ||
502 | 498 | |||
503 | 499 | if test -x / >/dev/null 2>&1; then | ||
504 | 500 | as_test_x='test -x' | ||
505 | 501 | else | ||
506 | 502 | if ls -dL / >/dev/null 2>&1; then | ||
507 | 503 | as_ls_L_option=L | ||
508 | 504 | else | ||
509 | 505 | as_ls_L_option= | ||
510 | 506 | fi | ||
511 | 507 | as_test_x=' | ||
512 | 508 | eval sh -c '\'' | ||
513 | 509 | if test -d "$1"; then | ||
514 | 510 | test -d "$1/."; | ||
515 | 511 | else | ||
516 | 512 | case $1 in #( | ||
517 | 513 | -*)set "./$1";; | ||
518 | 514 | esac; | ||
519 | 515 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( | ||
520 | 516 | ???[sx]*):;;*)false;;esac;fi | ||
521 | 517 | '\'' sh | ||
522 | 518 | ' | ||
523 | 519 | fi | ||
524 | 520 | as_executable_p=$as_test_x | ||
525 | 521 | |||
526 | 522 | # Sed expression to map a string onto a valid CPP name. | ||
527 | 523 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | ||
528 | 524 | |||
529 | 525 | # Sed expression to map a string onto a valid variable name. | ||
530 | 526 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | ||
531 | 527 | |||
532 | 528 | |||
533 | 529 | test -n "$DJDIR" || exec 7<&0 </dev/null | ||
534 | 530 | exec 6>&1 | ||
535 | 531 | |||
536 | 532 | # Name of the host. | ||
537 | 533 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, | ||
538 | 534 | # so uname gets run too. | ||
539 | 535 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | ||
540 | 536 | |||
541 | 537 | # | ||
542 | 538 | # Initializations. | ||
543 | 539 | # | ||
544 | 540 | ac_default_prefix=/usr/local | ||
545 | 541 | ac_clean_files= | ||
546 | 542 | ac_config_libobj_dir=. | ||
547 | 543 | LIBOBJS= | ||
548 | 544 | cross_compiling=no | ||
549 | 545 | subdirs= | ||
550 | 546 | MFLAGS= | ||
551 | 547 | MAKEFLAGS= | ||
552 | 548 | |||
553 | 549 | # Identity of this package. | ||
554 | 550 | PACKAGE_NAME='kexec-tools' | ||
555 | 551 | PACKAGE_TARNAME='kexec-tools' | ||
556 | 552 | PACKAGE_VERSION='2.0.2' | ||
557 | 553 | PACKAGE_STRING='kexec-tools 2.0.2' | ||
558 | 554 | PACKAGE_BUGREPORT='' | ||
559 | 555 | PACKAGE_URL='' | ||
560 | 556 | |||
561 | 557 | # Factoring default headers for most tests. | ||
562 | 558 | ac_includes_default="\ | ||
563 | 559 | #include <stdio.h> | ||
564 | 560 | #ifdef HAVE_SYS_TYPES_H | ||
565 | 561 | # include <sys/types.h> | ||
566 | 562 | #endif | ||
567 | 563 | #ifdef HAVE_SYS_STAT_H | ||
568 | 564 | # include <sys/stat.h> | ||
569 | 565 | #endif | ||
570 | 566 | #ifdef STDC_HEADERS | ||
571 | 567 | # include <stdlib.h> | ||
572 | 568 | # include <stddef.h> | ||
573 | 569 | #else | ||
574 | 570 | # ifdef HAVE_STDLIB_H | ||
575 | 571 | # include <stdlib.h> | ||
576 | 572 | # endif | ||
577 | 573 | #endif | ||
578 | 574 | #ifdef HAVE_STRING_H | ||
579 | 575 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H | ||
580 | 576 | # include <memory.h> | ||
581 | 577 | # endif | ||
582 | 578 | # include <string.h> | ||
583 | 579 | #endif | ||
584 | 580 | #ifdef HAVE_STRINGS_H | ||
585 | 581 | # include <strings.h> | ||
586 | 582 | #endif | ||
587 | 583 | #ifdef HAVE_INTTYPES_H | ||
588 | 584 | # include <inttypes.h> | ||
589 | 585 | #endif | ||
590 | 586 | #ifdef HAVE_STDINT_H | ||
591 | 587 | # include <stdint.h> | ||
592 | 588 | #endif | ||
593 | 589 | #ifdef HAVE_UNISTD_H | ||
594 | 590 | # include <unistd.h> | ||
595 | 591 | #endif" | ||
596 | 592 | |||
597 | 593 | ac_subst_vars='LTLIBOBJS | ||
598 | 594 | LIBOBJS | ||
599 | 595 | INSTALL | ||
600 | 596 | OBJDIR | ||
601 | 597 | ARCH | ||
602 | 598 | ASFLAGS | ||
603 | 599 | TARGET_CFLAGS | ||
604 | 600 | BUILD_CFLAGS | ||
605 | 601 | EGREP | ||
606 | 602 | GREP | ||
607 | 603 | DIRNAME | ||
608 | 604 | XARGS | ||
609 | 605 | FIND | ||
610 | 606 | SED | ||
611 | 607 | RPMBUILD | ||
612 | 608 | TAR | ||
613 | 609 | LN | ||
614 | 610 | CP | ||
615 | 611 | RM | ||
616 | 612 | MKDIR | ||
617 | 613 | INSTALL_DATA | ||
618 | 614 | INSTALL_SCRIPT | ||
619 | 615 | INSTALL_PROGRAM | ||
620 | 616 | PURGATORY_EXTRA_CFLAGS | ||
621 | 617 | TARGET_LD | ||
622 | 618 | TARGET_CC | ||
623 | 619 | AR | ||
624 | 620 | OBJCOPY | ||
625 | 621 | AS | ||
626 | 622 | LD | ||
627 | 623 | CPP | ||
628 | 624 | BUILD_CC | ||
629 | 625 | OBJEXT | ||
630 | 626 | EXEEXT | ||
631 | 627 | ac_ct_CC | ||
632 | 628 | CPPFLAGS | ||
633 | 629 | LDFLAGS | ||
634 | 630 | CFLAGS | ||
635 | 631 | CC | ||
636 | 632 | target_os | ||
637 | 633 | target_vendor | ||
638 | 634 | target_cpu | ||
639 | 635 | target | ||
640 | 636 | host_os | ||
641 | 637 | host_vendor | ||
642 | 638 | host_cpu | ||
643 | 639 | host | ||
644 | 640 | build_os | ||
645 | 641 | build_vendor | ||
646 | 642 | build_cpu | ||
647 | 643 | build | ||
648 | 644 | target_alias | ||
649 | 645 | host_alias | ||
650 | 646 | build_alias | ||
651 | 647 | LIBS | ||
652 | 648 | ECHO_T | ||
653 | 649 | ECHO_N | ||
654 | 650 | ECHO_C | ||
655 | 651 | DEFS | ||
656 | 652 | mandir | ||
657 | 653 | localedir | ||
658 | 654 | libdir | ||
659 | 655 | psdir | ||
660 | 656 | pdfdir | ||
661 | 657 | dvidir | ||
662 | 658 | htmldir | ||
663 | 659 | infodir | ||
664 | 660 | docdir | ||
665 | 661 | oldincludedir | ||
666 | 662 | includedir | ||
667 | 663 | localstatedir | ||
668 | 664 | sharedstatedir | ||
669 | 665 | sysconfdir | ||
670 | 666 | datadir | ||
671 | 667 | datarootdir | ||
672 | 668 | libexecdir | ||
673 | 669 | sbindir | ||
674 | 670 | bindir | ||
675 | 671 | program_transform_name | ||
676 | 672 | prefix | ||
677 | 673 | exec_prefix | ||
678 | 674 | PACKAGE_URL | ||
679 | 675 | PACKAGE_BUGREPORT | ||
680 | 676 | PACKAGE_STRING | ||
681 | 677 | PACKAGE_VERSION | ||
682 | 678 | PACKAGE_TARNAME | ||
683 | 679 | PACKAGE_NAME | ||
684 | 680 | PATH_SEPARATOR | ||
685 | 681 | SHELL' | ||
686 | 682 | ac_subst_files='' | ||
687 | 683 | ac_user_opts=' | ||
688 | 684 | enable_option_checking | ||
689 | 685 | with_objdir | ||
690 | 686 | with_gamecube | ||
691 | 687 | with_zlib | ||
692 | 688 | with_lzma | ||
693 | 689 | with_xen | ||
694 | 690 | with_oldtoolchain | ||
695 | 691 | ' | ||
696 | 692 | ac_precious_vars='build_alias | ||
697 | 693 | host_alias | ||
698 | 694 | target_alias | ||
699 | 695 | CC | ||
700 | 696 | CFLAGS | ||
701 | 697 | LDFLAGS | ||
702 | 698 | LIBS | ||
703 | 699 | CPPFLAGS | ||
704 | 700 | CPP' | ||
705 | 701 | |||
706 | 702 | |||
707 | 703 | # Initialize some variables set by options. | ||
708 | 704 | ac_init_help= | ||
709 | 705 | ac_init_version=false | ||
710 | 706 | ac_unrecognized_opts= | ||
711 | 707 | ac_unrecognized_sep= | ||
712 | 708 | # The variables have the same names as the options, with | ||
713 | 709 | # dashes changed to underlines. | ||
714 | 710 | cache_file=/dev/null | ||
715 | 711 | exec_prefix=NONE | ||
716 | 712 | no_create= | ||
717 | 713 | no_recursion= | ||
718 | 714 | prefix=NONE | ||
719 | 715 | program_prefix=NONE | ||
720 | 716 | program_suffix=NONE | ||
721 | 717 | program_transform_name=s,x,x, | ||
722 | 718 | silent= | ||
723 | 719 | site= | ||
724 | 720 | srcdir= | ||
725 | 721 | verbose= | ||
726 | 722 | x_includes=NONE | ||
727 | 723 | x_libraries=NONE | ||
728 | 724 | |||
729 | 725 | # Installation directory options. | ||
730 | 726 | # These are left unexpanded so users can "make install exec_prefix=/foo" | ||
731 | 727 | # and all the variables that are supposed to be based on exec_prefix | ||
732 | 728 | # by default will actually change. | ||
733 | 729 | # Use braces instead of parens because sh, perl, etc. also accept them. | ||
734 | 730 | # (The list follows the same order as the GNU Coding Standards.) | ||
735 | 731 | bindir='${exec_prefix}/bin' | ||
736 | 732 | sbindir='${exec_prefix}/sbin' | ||
737 | 733 | libexecdir='${exec_prefix}/libexec' | ||
738 | 734 | datarootdir='${prefix}/share' | ||
739 | 735 | datadir='${datarootdir}' | ||
740 | 736 | sysconfdir='${prefix}/etc' | ||
741 | 737 | sharedstatedir='${prefix}/com' | ||
742 | 738 | localstatedir='${prefix}/var' | ||
743 | 739 | includedir='${prefix}/include' | ||
744 | 740 | oldincludedir='/usr/include' | ||
745 | 741 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' | ||
746 | 742 | infodir='${datarootdir}/info' | ||
747 | 743 | htmldir='${docdir}' | ||
748 | 744 | dvidir='${docdir}' | ||
749 | 745 | pdfdir='${docdir}' | ||
750 | 746 | psdir='${docdir}' | ||
751 | 747 | libdir='${exec_prefix}/lib' | ||
752 | 748 | localedir='${datarootdir}/locale' | ||
753 | 749 | mandir='${datarootdir}/man' | ||
754 | 750 | |||
755 | 751 | ac_prev= | ||
756 | 752 | ac_dashdash= | ||
757 | 753 | for ac_option | ||
758 | 754 | do | ||
759 | 755 | # If the previous option needs an argument, assign it. | ||
760 | 756 | if test -n "$ac_prev"; then | ||
761 | 757 | eval $ac_prev=\$ac_option | ||
762 | 758 | ac_prev= | ||
763 | 759 | continue | ||
764 | 760 | fi | ||
765 | 761 | |||
766 | 762 | case $ac_option in | ||
767 | 763 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; | ||
768 | 764 | *) ac_optarg=yes ;; | ||
769 | 765 | esac | ||
770 | 766 | |||
771 | 767 | # Accept the important Cygnus configure options, so we can diagnose typos. | ||
772 | 768 | |||
773 | 769 | case $ac_dashdash$ac_option in | ||
774 | 770 | --) | ||
775 | 771 | ac_dashdash=yes ;; | ||
776 | 772 | |||
777 | 773 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | ||
778 | 774 | ac_prev=bindir ;; | ||
779 | 775 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | ||
780 | 776 | bindir=$ac_optarg ;; | ||
781 | 777 | |||
782 | 778 | -build | --build | --buil | --bui | --bu) | ||
783 | 779 | ac_prev=build_alias ;; | ||
784 | 780 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | ||
785 | 781 | build_alias=$ac_optarg ;; | ||
786 | 782 | |||
787 | 783 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | ||
788 | 784 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | ||
789 | 785 | ac_prev=cache_file ;; | ||
790 | 786 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | ||
791 | 787 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | ||
792 | 788 | cache_file=$ac_optarg ;; | ||
793 | 789 | |||
794 | 790 | --config-cache | -C) | ||
795 | 791 | cache_file=config.cache ;; | ||
796 | 792 | |||
797 | 793 | -datadir | --datadir | --datadi | --datad) | ||
798 | 794 | ac_prev=datadir ;; | ||
799 | 795 | -datadir=* | --datadir=* | --datadi=* | --datad=*) | ||
800 | 796 | datadir=$ac_optarg ;; | ||
801 | 797 | |||
802 | 798 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ | ||
803 | 799 | | --dataroo | --dataro | --datar) | ||
804 | 800 | ac_prev=datarootdir ;; | ||
805 | 801 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | ||
806 | 802 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | ||
807 | 803 | datarootdir=$ac_optarg ;; | ||
808 | 804 | |||
809 | 805 | -disable-* | --disable-*) | ||
810 | 806 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` | ||
811 | 807 | # Reject names that are not valid shell variable names. | ||
812 | 808 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | ||
813 | 809 | as_fn_error "invalid feature name: $ac_useropt" | ||
814 | 810 | ac_useropt_orig=$ac_useropt | ||
815 | 811 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | ||
816 | 812 | case $ac_user_opts in | ||
817 | 813 | *" | ||
818 | 814 | "enable_$ac_useropt" | ||
819 | 815 | "*) ;; | ||
820 | 816 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | ||
821 | 817 | ac_unrecognized_sep=', ';; | ||
822 | 818 | esac | ||
823 | 819 | eval enable_$ac_useropt=no ;; | ||
824 | 820 | |||
825 | 821 | -docdir | --docdir | --docdi | --doc | --do) | ||
826 | 822 | ac_prev=docdir ;; | ||
827 | 823 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | ||
828 | 824 | docdir=$ac_optarg ;; | ||
829 | 825 | |||
830 | 826 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | ||
831 | 827 | ac_prev=dvidir ;; | ||
832 | 828 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | ||
833 | 829 | dvidir=$ac_optarg ;; | ||
834 | 830 | |||
835 | 831 | -enable-* | --enable-*) | ||
836 | 832 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` | ||
837 | 833 | # Reject names that are not valid shell variable names. | ||
838 | 834 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | ||
839 | 835 | as_fn_error "invalid feature name: $ac_useropt" | ||
840 | 836 | ac_useropt_orig=$ac_useropt | ||
841 | 837 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | ||
842 | 838 | case $ac_user_opts in | ||
843 | 839 | *" | ||
844 | 840 | "enable_$ac_useropt" | ||
845 | 841 | "*) ;; | ||
846 | 842 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | ||
847 | 843 | ac_unrecognized_sep=', ';; | ||
848 | 844 | esac | ||
849 | 845 | eval enable_$ac_useropt=\$ac_optarg ;; | ||
850 | 846 | |||
851 | 847 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | ||
852 | 848 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | ||
853 | 849 | | --exec | --exe | --ex) | ||
854 | 850 | ac_prev=exec_prefix ;; | ||
855 | 851 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | ||
856 | 852 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | ||
857 | 853 | | --exec=* | --exe=* | --ex=*) | ||
858 | 854 | exec_prefix=$ac_optarg ;; | ||
859 | 855 | |||
860 | 856 | -gas | --gas | --ga | --g) | ||
861 | 857 | # Obsolete; use --with-gas. | ||
862 | 858 | with_gas=yes ;; | ||
863 | 859 | |||
864 | 860 | -help | --help | --hel | --he | -h) | ||
865 | 861 | ac_init_help=long ;; | ||
866 | 862 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | ||
867 | 863 | ac_init_help=recursive ;; | ||
868 | 864 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | ||
869 | 865 | ac_init_help=short ;; | ||
870 | 866 | |||
871 | 867 | -host | --host | --hos | --ho) | ||
872 | 868 | ac_prev=host_alias ;; | ||
873 | 869 | -host=* | --host=* | --hos=* | --ho=*) | ||
874 | 870 | host_alias=$ac_optarg ;; | ||
875 | 871 | |||
876 | 872 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) | ||
877 | 873 | ac_prev=htmldir ;; | ||
878 | 874 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | ||
879 | 875 | | --ht=*) | ||
880 | 876 | htmldir=$ac_optarg ;; | ||
881 | 877 | |||
882 | 878 | -includedir | --includedir | --includedi | --included | --include \ | ||
883 | 879 | | --includ | --inclu | --incl | --inc) | ||
884 | 880 | ac_prev=includedir ;; | ||
885 | 881 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | ||
886 | 882 | | --includ=* | --inclu=* | --incl=* | --inc=*) | ||
887 | 883 | includedir=$ac_optarg ;; | ||
888 | 884 | |||
889 | 885 | -infodir | --infodir | --infodi | --infod | --info | --inf) | ||
890 | 886 | ac_prev=infodir ;; | ||
891 | 887 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | ||
892 | 888 | infodir=$ac_optarg ;; | ||
893 | 889 | |||
894 | 890 | -libdir | --libdir | --libdi | --libd) | ||
895 | 891 | ac_prev=libdir ;; | ||
896 | 892 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | ||
897 | 893 | libdir=$ac_optarg ;; | ||
898 | 894 | |||
899 | 895 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | ||
900 | 896 | | --libexe | --libex | --libe) | ||
901 | 897 | ac_prev=libexecdir ;; | ||
902 | 898 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | ||
903 | 899 | | --libexe=* | --libex=* | --libe=*) | ||
904 | 900 | libexecdir=$ac_optarg ;; | ||
905 | 901 | |||
906 | 902 | -localedir | --localedir | --localedi | --localed | --locale) | ||
907 | 903 | ac_prev=localedir ;; | ||
908 | 904 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | ||
909 | 905 | localedir=$ac_optarg ;; | ||
910 | 906 | |||
911 | 907 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | ||
912 | 908 | | --localstate | --localstat | --localsta | --localst | --locals) | ||
913 | 909 | ac_prev=localstatedir ;; | ||
914 | 910 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | ||
915 | 911 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) | ||
916 | 912 | localstatedir=$ac_optarg ;; | ||
917 | 913 | |||
918 | 914 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | ||
919 | 915 | ac_prev=mandir ;; | ||
920 | 916 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | ||
921 | 917 | mandir=$ac_optarg ;; | ||
922 | 918 | |||
923 | 919 | -nfp | --nfp | --nf) | ||
924 | 920 | # Obsolete; use --without-fp. | ||
925 | 921 | with_fp=no ;; | ||
926 | 922 | |||
927 | 923 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | ||
928 | 924 | | --no-cr | --no-c | -n) | ||
929 | 925 | no_create=yes ;; | ||
930 | 926 | |||
931 | 927 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | ||
932 | 928 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | ||
933 | 929 | no_recursion=yes ;; | ||
934 | 930 | |||
935 | 931 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | ||
936 | 932 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | ||
937 | 933 | | --oldin | --oldi | --old | --ol | --o) | ||
938 | 934 | ac_prev=oldincludedir ;; | ||
939 | 935 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | ||
940 | 936 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | ||
941 | 937 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | ||
942 | 938 | oldincludedir=$ac_optarg ;; | ||
943 | 939 | |||
944 | 940 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | ||
945 | 941 | ac_prev=prefix ;; | ||
946 | 942 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | ||
947 | 943 | prefix=$ac_optarg ;; | ||
948 | 944 | |||
949 | 945 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | ||
950 | 946 | | --program-pre | --program-pr | --program-p) | ||
951 | 947 | ac_prev=program_prefix ;; | ||
952 | 948 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | ||
953 | 949 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | ||
954 | 950 | program_prefix=$ac_optarg ;; | ||
955 | 951 | |||
956 | 952 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | ||
957 | 953 | | --program-suf | --program-su | --program-s) | ||
958 | 954 | ac_prev=program_suffix ;; | ||
959 | 955 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | ||
960 | 956 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | ||
961 | 957 | program_suffix=$ac_optarg ;; | ||
962 | 958 | |||
963 | 959 | -program-transform-name | --program-transform-name \ | ||
964 | 960 | | --program-transform-nam | --program-transform-na \ | ||
965 | 961 | | --program-transform-n | --program-transform- \ | ||
966 | 962 | | --program-transform | --program-transfor \ | ||
967 | 963 | | --program-transfo | --program-transf \ | ||
968 | 964 | | --program-trans | --program-tran \ | ||
969 | 965 | | --progr-tra | --program-tr | --program-t) | ||
970 | 966 | ac_prev=program_transform_name ;; | ||
971 | 967 | -program-transform-name=* | --program-transform-name=* \ | ||
972 | 968 | | --program-transform-nam=* | --program-transform-na=* \ | ||
973 | 969 | | --program-transform-n=* | --program-transform-=* \ | ||
974 | 970 | | --program-transform=* | --program-transfor=* \ | ||
975 | 971 | | --program-transfo=* | --program-transf=* \ | ||
976 | 972 | | --program-trans=* | --program-tran=* \ | ||
977 | 973 | | --progr-tra=* | --program-tr=* | --program-t=*) | ||
978 | 974 | program_transform_name=$ac_optarg ;; | ||
979 | 975 | |||
980 | 976 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) | ||
981 | 977 | ac_prev=pdfdir ;; | ||
982 | 978 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | ||
983 | 979 | pdfdir=$ac_optarg ;; | ||
984 | 980 | |||
985 | 981 | -psdir | --psdir | --psdi | --psd | --ps) | ||
986 | 982 | ac_prev=psdir ;; | ||
987 | 983 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | ||
988 | 984 | psdir=$ac_optarg ;; | ||
989 | 985 | |||
990 | 986 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | ||
991 | 987 | | -silent | --silent | --silen | --sile | --sil) | ||
992 | 988 | silent=yes ;; | ||
993 | 989 | |||
994 | 990 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | ||
995 | 991 | ac_prev=sbindir ;; | ||
996 | 992 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | ||
997 | 993 | | --sbi=* | --sb=*) | ||
998 | 994 | sbindir=$ac_optarg ;; | ||
999 | 995 | |||
1000 | 996 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | ||
1001 | 997 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | ||
1002 | 998 | | --sharedst | --shareds | --shared | --share | --shar \ | ||
1003 | 999 | | --sha | --sh) | ||
1004 | 1000 | ac_prev=sharedstatedir ;; | ||
1005 | 1001 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | ||
1006 | 1002 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | ||
1007 | 1003 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | ||
1008 | 1004 | | --sha=* | --sh=*) | ||
1009 | 1005 | sharedstatedir=$ac_optarg ;; | ||
1010 | 1006 | |||
1011 | 1007 | -site | --site | --sit) | ||
1012 | 1008 | ac_prev=site ;; | ||
1013 | 1009 | -site=* | --site=* | --sit=*) | ||
1014 | 1010 | site=$ac_optarg ;; | ||
1015 | 1011 | |||
1016 | 1012 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | ||
1017 | 1013 | ac_prev=srcdir ;; | ||
1018 | 1014 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | ||
1019 | 1015 | srcdir=$ac_optarg ;; | ||
1020 | 1016 | |||
1021 | 1017 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | ||
1022 | 1018 | | --syscon | --sysco | --sysc | --sys | --sy) | ||
1023 | 1019 | ac_prev=sysconfdir ;; | ||
1024 | 1020 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | ||
1025 | 1021 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | ||
1026 | 1022 | sysconfdir=$ac_optarg ;; | ||
1027 | 1023 | |||
1028 | 1024 | -target | --target | --targe | --targ | --tar | --ta | --t) | ||
1029 | 1025 | ac_prev=target_alias ;; | ||
1030 | 1026 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | ||
1031 | 1027 | target_alias=$ac_optarg ;; | ||
1032 | 1028 | |||
1033 | 1029 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | ||
1034 | 1030 | verbose=yes ;; | ||
1035 | 1031 | |||
1036 | 1032 | -version | --version | --versio | --versi | --vers | -V) | ||
1037 | 1033 | ac_init_version=: ;; | ||
1038 | 1034 | |||
1039 | 1035 | -with-* | --with-*) | ||
1040 | 1036 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` | ||
1041 | 1037 | # Reject names that are not valid shell variable names. | ||
1042 | 1038 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | ||
1043 | 1039 | as_fn_error "invalid package name: $ac_useropt" | ||
1044 | 1040 | ac_useropt_orig=$ac_useropt | ||
1045 | 1041 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | ||
1046 | 1042 | case $ac_user_opts in | ||
1047 | 1043 | *" | ||
1048 | 1044 | "with_$ac_useropt" | ||
1049 | 1045 | "*) ;; | ||
1050 | 1046 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | ||
1051 | 1047 | ac_unrecognized_sep=', ';; | ||
1052 | 1048 | esac | ||
1053 | 1049 | eval with_$ac_useropt=\$ac_optarg ;; | ||
1054 | 1050 | |||
1055 | 1051 | -without-* | --without-*) | ||
1056 | 1052 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` | ||
1057 | 1053 | # Reject names that are not valid shell variable names. | ||
1058 | 1054 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | ||
1059 | 1055 | as_fn_error "invalid package name: $ac_useropt" | ||
1060 | 1056 | ac_useropt_orig=$ac_useropt | ||
1061 | 1057 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | ||
1062 | 1058 | case $ac_user_opts in | ||
1063 | 1059 | *" | ||
1064 | 1060 | "with_$ac_useropt" | ||
1065 | 1061 | "*) ;; | ||
1066 | 1062 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | ||
1067 | 1063 | ac_unrecognized_sep=', ';; | ||
1068 | 1064 | esac | ||
1069 | 1065 | eval with_$ac_useropt=no ;; | ||
1070 | 1066 | |||
1071 | 1067 | --x) | ||
1072 | 1068 | # Obsolete; use --with-x. | ||
1073 | 1069 | with_x=yes ;; | ||
1074 | 1070 | |||
1075 | 1071 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | ||
1076 | 1072 | | --x-incl | --x-inc | --x-in | --x-i) | ||
1077 | 1073 | ac_prev=x_includes ;; | ||
1078 | 1074 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | ||
1079 | 1075 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | ||
1080 | 1076 | x_includes=$ac_optarg ;; | ||
1081 | 1077 | |||
1082 | 1078 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | ||
1083 | 1079 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | ||
1084 | 1080 | ac_prev=x_libraries ;; | ||
1085 | 1081 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | ||
1086 | 1082 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | ||
1087 | 1083 | x_libraries=$ac_optarg ;; | ||
1088 | 1084 | |||
1089 | 1085 | -*) as_fn_error "unrecognized option: \`$ac_option' | ||
1090 | 1086 | Try \`$0 --help' for more information." | ||
1091 | 1087 | ;; | ||
1092 | 1088 | |||
1093 | 1089 | *=*) | ||
1094 | 1090 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | ||
1095 | 1091 | # Reject names that are not valid shell variable names. | ||
1096 | 1092 | case $ac_envvar in #( | ||
1097 | 1093 | '' | [0-9]* | *[!_$as_cr_alnum]* ) | ||
1098 | 1094 | as_fn_error "invalid variable name: \`$ac_envvar'" ;; | ||
1099 | 1095 | esac | ||
1100 | 1096 | eval $ac_envvar=\$ac_optarg | ||
1101 | 1097 | export $ac_envvar ;; | ||
1102 | 1098 | |||
1103 | 1099 | *) | ||
1104 | 1100 | # FIXME: should be removed in autoconf 3.0. | ||
1105 | 1101 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 | ||
1106 | 1102 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && | ||
1107 | 1103 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 | ||
1108 | 1104 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} | ||
1109 | 1105 | ;; | ||
1110 | 1106 | |||
1111 | 1107 | esac | ||
1112 | 1108 | done | ||
1113 | 1109 | |||
1114 | 1110 | if test -n "$ac_prev"; then | ||
1115 | 1111 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` | ||
1116 | 1112 | as_fn_error "missing argument to $ac_option" | ||
1117 | 1113 | fi | ||
1118 | 1114 | |||
1119 | 1115 | if test -n "$ac_unrecognized_opts"; then | ||
1120 | 1116 | case $enable_option_checking in | ||
1121 | 1117 | no) ;; | ||
1122 | 1118 | fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;; | ||
1123 | 1119 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; | ||
1124 | 1120 | esac | ||
1125 | 1121 | fi | ||
1126 | 1122 | |||
1127 | 1123 | # Check all directory arguments for consistency. | ||
1128 | 1124 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ | ||
1129 | 1125 | datadir sysconfdir sharedstatedir localstatedir includedir \ | ||
1130 | 1126 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | ||
1131 | 1127 | libdir localedir mandir | ||
1132 | 1128 | do | ||
1133 | 1129 | eval ac_val=\$$ac_var | ||
1134 | 1130 | # Remove trailing slashes. | ||
1135 | 1131 | case $ac_val in | ||
1136 | 1132 | */ ) | ||
1137 | 1133 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | ||
1138 | 1134 | eval $ac_var=\$ac_val;; | ||
1139 | 1135 | esac | ||
1140 | 1136 | # Be sure to have absolute directory names. | ||
1141 | 1137 | case $ac_val in | ||
1142 | 1138 | [\\/$]* | ?:[\\/]* ) continue;; | ||
1143 | 1139 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | ||
1144 | 1140 | esac | ||
1145 | 1141 | as_fn_error "expected an absolute directory name for --$ac_var: $ac_val" | ||
1146 | 1142 | done | ||
1147 | 1143 | |||
1148 | 1144 | # There might be people who depend on the old broken behavior: `$host' | ||
1149 | 1145 | # used to hold the argument of --host etc. | ||
1150 | 1146 | # FIXME: To remove some day. | ||
1151 | 1147 | build=$build_alias | ||
1152 | 1148 | host=$host_alias | ||
1153 | 1149 | target=$target_alias | ||
1154 | 1150 | |||
1155 | 1151 | # FIXME: To remove some day. | ||
1156 | 1152 | if test "x$host_alias" != x; then | ||
1157 | 1153 | if test "x$build_alias" = x; then | ||
1158 | 1154 | cross_compiling=maybe | ||
1159 | 1155 | $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. | ||
1160 | 1156 | If a cross compiler is detected then cross compile mode will be used." >&2 | ||
1161 | 1157 | elif test "x$build_alias" != "x$host_alias"; then | ||
1162 | 1158 | cross_compiling=yes | ||
1163 | 1159 | fi | ||
1164 | 1160 | fi | ||
1165 | 1161 | |||
1166 | 1162 | ac_tool_prefix= | ||
1167 | 1163 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | ||
1168 | 1164 | |||
1169 | 1165 | test "$silent" = yes && exec 6>/dev/null | ||
1170 | 1166 | |||
1171 | 1167 | |||
1172 | 1168 | ac_pwd=`pwd` && test -n "$ac_pwd" && | ||
1173 | 1169 | ac_ls_di=`ls -di .` && | ||
1174 | 1170 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | ||
1175 | 1171 | as_fn_error "working directory cannot be determined" | ||
1176 | 1172 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || | ||
1177 | 1173 | as_fn_error "pwd does not report name of working directory" | ||
1178 | 1174 | |||
1179 | 1175 | |||
1180 | 1176 | # Find the source files, if location was not specified. | ||
1181 | 1177 | if test -z "$srcdir"; then | ||
1182 | 1178 | ac_srcdir_defaulted=yes | ||
1183 | 1179 | # Try the directory containing this script, then the parent directory. | ||
1184 | 1180 | ac_confdir=`$as_dirname -- "$as_myself" || | ||
1185 | 1181 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | ||
1186 | 1182 | X"$as_myself" : 'X\(//\)[^/]' \| \ | ||
1187 | 1183 | X"$as_myself" : 'X\(//\)$' \| \ | ||
1188 | 1184 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | ||
1189 | 1185 | $as_echo X"$as_myself" | | ||
1190 | 1186 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | ||
1191 | 1187 | s//\1/ | ||
1192 | 1188 | q | ||
1193 | 1189 | } | ||
1194 | 1190 | /^X\(\/\/\)[^/].*/{ | ||
1195 | 1191 | s//\1/ | ||
1196 | 1192 | q | ||
1197 | 1193 | } | ||
1198 | 1194 | /^X\(\/\/\)$/{ | ||
1199 | 1195 | s//\1/ | ||
1200 | 1196 | q | ||
1201 | 1197 | } | ||
1202 | 1198 | /^X\(\/\).*/{ | ||
1203 | 1199 | s//\1/ | ||
1204 | 1200 | q | ||
1205 | 1201 | } | ||
1206 | 1202 | s/.*/./; q'` | ||
1207 | 1203 | srcdir=$ac_confdir | ||
1208 | 1204 | if test ! -r "$srcdir/$ac_unique_file"; then | ||
1209 | 1205 | srcdir=.. | ||
1210 | 1206 | fi | ||
1211 | 1207 | else | ||
1212 | 1208 | ac_srcdir_defaulted=no | ||
1213 | 1209 | fi | ||
1214 | 1210 | if test ! -r "$srcdir/$ac_unique_file"; then | ||
1215 | 1211 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | ||
1216 | 1212 | as_fn_error "cannot find sources ($ac_unique_file) in $srcdir" | ||
1217 | 1213 | fi | ||
1218 | 1214 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" | ||
1219 | 1215 | ac_abs_confdir=`( | ||
1220 | 1216 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg" | ||
1221 | 1217 | pwd)` | ||
1222 | 1218 | # When building in place, set srcdir=. | ||
1223 | 1219 | if test "$ac_abs_confdir" = "$ac_pwd"; then | ||
1224 | 1220 | srcdir=. | ||
1225 | 1221 | fi | ||
1226 | 1222 | # Remove unnecessary trailing slashes from srcdir. | ||
1227 | 1223 | # Double slashes in file names in object file debugging info | ||
1228 | 1224 | # mess up M-x gdb in Emacs. | ||
1229 | 1225 | case $srcdir in | ||
1230 | 1226 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | ||
1231 | 1227 | esac | ||
1232 | 1228 | for ac_var in $ac_precious_vars; do | ||
1233 | 1229 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | ||
1234 | 1230 | eval ac_env_${ac_var}_value=\$${ac_var} | ||
1235 | 1231 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | ||
1236 | 1232 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | ||
1237 | 1233 | done | ||
1238 | 1234 | |||
1239 | 1235 | # | ||
1240 | 1236 | # Report the --help message. | ||
1241 | 1237 | # | ||
1242 | 1238 | if test "$ac_init_help" = "long"; then | ||
1243 | 1239 | # Omit some internal or obsolete options to make the list less imposing. | ||
1244 | 1240 | # This message is too long to be a string in the A/UX 3.1 sh. | ||
1245 | 1241 | cat <<_ACEOF | ||
1246 | 1242 | \`configure' configures kexec-tools 2.0.2 to adapt to many kinds of systems. | ||
1247 | 1243 | |||
1248 | 1244 | Usage: $0 [OPTION]... [VAR=VALUE]... | ||
1249 | 1245 | |||
1250 | 1246 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | ||
1251 | 1247 | VAR=VALUE. See below for descriptions of some of the useful variables. | ||
1252 | 1248 | |||
1253 | 1249 | Defaults for the options are specified in brackets. | ||
1254 | 1250 | |||
1255 | 1251 | Configuration: | ||
1256 | 1252 | -h, --help display this help and exit | ||
1257 | 1253 | --help=short display options specific to this package | ||
1258 | 1254 | --help=recursive display the short help of all the included packages | ||
1259 | 1255 | -V, --version display version information and exit | ||
1260 | 1256 | -q, --quiet, --silent do not print \`checking...' messages | ||
1261 | 1257 | --cache-file=FILE cache test results in FILE [disabled] | ||
1262 | 1258 | -C, --config-cache alias for \`--cache-file=config.cache' | ||
1263 | 1259 | -n, --no-create do not create output files | ||
1264 | 1260 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | ||
1265 | 1261 | |||
1266 | 1262 | Installation directories: | ||
1267 | 1263 | --prefix=PREFIX install architecture-independent files in PREFIX | ||
1268 | 1264 | [$ac_default_prefix] | ||
1269 | 1265 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | ||
1270 | 1266 | [PREFIX] | ||
1271 | 1267 | |||
1272 | 1268 | By default, \`make install' will install all the files in | ||
1273 | 1269 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | ||
1274 | 1270 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | ||
1275 | 1271 | for instance \`--prefix=\$HOME'. | ||
1276 | 1272 | |||
1277 | 1273 | For better control, use the options below. | ||
1278 | 1274 | |||
1279 | 1275 | Fine tuning of the installation directories: | ||
1280 | 1276 | --bindir=DIR user executables [EPREFIX/bin] | ||
1281 | 1277 | --sbindir=DIR system admin executables [EPREFIX/sbin] | ||
1282 | 1278 | --libexecdir=DIR program executables [EPREFIX/libexec] | ||
1283 | 1279 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | ||
1284 | 1280 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | ||
1285 | 1281 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | ||
1286 | 1282 | --libdir=DIR object code libraries [EPREFIX/lib] | ||
1287 | 1283 | --includedir=DIR C header files [PREFIX/include] | ||
1288 | 1284 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | ||
1289 | 1285 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | ||
1290 | 1286 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | ||
1291 | 1287 | --infodir=DIR info documentation [DATAROOTDIR/info] | ||
1292 | 1288 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | ||
1293 | 1289 | --mandir=DIR man documentation [DATAROOTDIR/man] | ||
1294 | 1290 | --docdir=DIR documentation root [DATAROOTDIR/doc/kexec-tools] | ||
1295 | 1291 | --htmldir=DIR html documentation [DOCDIR] | ||
1296 | 1292 | --dvidir=DIR dvi documentation [DOCDIR] | ||
1297 | 1293 | --pdfdir=DIR pdf documentation [DOCDIR] | ||
1298 | 1294 | --psdir=DIR ps documentation [DOCDIR] | ||
1299 | 1295 | _ACEOF | ||
1300 | 1296 | |||
1301 | 1297 | cat <<\_ACEOF | ||
1302 | 1298 | |||
1303 | 1299 | System types: | ||
1304 | 1300 | --build=BUILD configure for building on BUILD [guessed] | ||
1305 | 1301 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | ||
1306 | 1302 | --target=TARGET configure for building compilers for TARGET [HOST] | ||
1307 | 1303 | _ACEOF | ||
1308 | 1304 | fi | ||
1309 | 1305 | |||
1310 | 1306 | if test -n "$ac_init_help"; then | ||
1311 | 1307 | case $ac_init_help in | ||
1312 | 1308 | short | recursive ) echo "Configuration of kexec-tools 2.0.2:";; | ||
1313 | 1309 | esac | ||
1314 | 1310 | cat <<\_ACEOF | ||
1315 | 1311 | |||
1316 | 1312 | Optional Packages: | ||
1317 | 1313 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | ||
1318 | 1314 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | ||
1319 | 1315 | --with-objdir=<dir> select directory for object files | ||
1320 | 1316 | --with-gamecube enable gamecube support | ||
1321 | 1317 | --without-zlib disable zlib support | ||
1322 | 1318 | --without-lzma disable lzma support | ||
1323 | 1319 | --without-xen disable extended xen support | ||
1324 | 1320 | --with-oldtoolchain compile without crt.S required for new toolchains | ||
1325 | 1321 | |||
1326 | 1322 | Some influential environment variables: | ||
1327 | 1323 | CC C compiler command | ||
1328 | 1324 | CFLAGS C compiler flags | ||
1329 | 1325 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | ||
1330 | 1326 | nonstandard directory <lib dir> | ||
1331 | 1327 | LIBS libraries to pass to the linker, e.g. -l<library> | ||
1332 | 1328 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if | ||
1333 | 1329 | you have headers in a nonstandard directory <include dir> | ||
1334 | 1330 | CPP C preprocessor | ||
1335 | 1331 | |||
1336 | 1332 | Use these variables to override the choices made by `configure' or to help | ||
1337 | 1333 | it to find libraries and programs with nonstandard names/locations. | ||
1338 | 1334 | |||
1339 | 1335 | Report bugs to the package provider. | ||
1340 | 1336 | _ACEOF | ||
1341 | 1337 | ac_status=$? | ||
1342 | 1338 | fi | ||
1343 | 1339 | |||
1344 | 1340 | if test "$ac_init_help" = "recursive"; then | ||
1345 | 1341 | # If there are subdirs, report their specific --help. | ||
1346 | 1342 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue | ||
1347 | 1343 | test -d "$ac_dir" || | ||
1348 | 1344 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | ||
1349 | 1345 | continue | ||
1350 | 1346 | ac_builddir=. | ||
1351 | 1347 | |||
1352 | 1348 | case "$ac_dir" in | ||
1353 | 1349 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | ||
1354 | 1350 | *) | ||
1355 | 1351 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | ||
1356 | 1352 | # A ".." for each directory in $ac_dir_suffix. | ||
1357 | 1353 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | ||
1358 | 1354 | case $ac_top_builddir_sub in | ||
1359 | 1355 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | ||
1360 | 1356 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | ||
1361 | 1357 | esac ;; | ||
1362 | 1358 | esac | ||
1363 | 1359 | ac_abs_top_builddir=$ac_pwd | ||
1364 | 1360 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | ||
1365 | 1361 | # for backward compatibility: | ||
1366 | 1362 | ac_top_builddir=$ac_top_build_prefix | ||
1367 | 1363 | |||
1368 | 1364 | case $srcdir in | ||
1369 | 1365 | .) # We are building in place. | ||
1370 | 1366 | ac_srcdir=. | ||
1371 | 1367 | ac_top_srcdir=$ac_top_builddir_sub | ||
1372 | 1368 | ac_abs_top_srcdir=$ac_pwd ;; | ||
1373 | 1369 | [\\/]* | ?:[\\/]* ) # Absolute name. | ||
1374 | 1370 | ac_srcdir=$srcdir$ac_dir_suffix; | ||
1375 | 1371 | ac_top_srcdir=$srcdir | ||
1376 | 1372 | ac_abs_top_srcdir=$srcdir ;; | ||
1377 | 1373 | *) # Relative name. | ||
1378 | 1374 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | ||
1379 | 1375 | ac_top_srcdir=$ac_top_build_prefix$srcdir | ||
1380 | 1376 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | ||
1381 | 1377 | esac | ||
1382 | 1378 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | ||
1383 | 1379 | |||
1384 | 1380 | cd "$ac_dir" || { ac_status=$?; continue; } | ||
1385 | 1381 | # Check for guested configure. | ||
1386 | 1382 | if test -f "$ac_srcdir/configure.gnu"; then | ||
1387 | 1383 | echo && | ||
1388 | 1384 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | ||
1389 | 1385 | elif test -f "$ac_srcdir/configure"; then | ||
1390 | 1386 | echo && | ||
1391 | 1387 | $SHELL "$ac_srcdir/configure" --help=recursive | ||
1392 | 1388 | else | ||
1393 | 1389 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | ||
1394 | 1390 | fi || ac_status=$? | ||
1395 | 1391 | cd "$ac_pwd" || { ac_status=$?; break; } | ||
1396 | 1392 | done | ||
1397 | 1393 | fi | ||
1398 | 1394 | |||
1399 | 1395 | test -n "$ac_init_help" && exit $ac_status | ||
1400 | 1396 | if $ac_init_version; then | ||
1401 | 1397 | cat <<\_ACEOF | ||
1402 | 1398 | kexec-tools configure 2.0.2 | ||
1403 | 1399 | generated by GNU Autoconf 2.65 | ||
1404 | 1400 | |||
1405 | 1401 | Copyright (C) 2009 Free Software Foundation, Inc. | ||
1406 | 1402 | This configure script is free software; the Free Software Foundation | ||
1407 | 1403 | gives unlimited permission to copy, distribute and modify it. | ||
1408 | 1404 | _ACEOF | ||
1409 | 1405 | exit | ||
1410 | 1406 | fi | ||
1411 | 1407 | |||
1412 | 1408 | ## ------------------------ ## | ||
1413 | 1409 | ## Autoconf initialization. ## | ||
1414 | 1410 | ## ------------------------ ## | ||
1415 | 1411 | |||
1416 | 1412 | # ac_fn_c_try_compile LINENO | ||
1417 | 1413 | # -------------------------- | ||
1418 | 1414 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | ||
1419 | 1415 | ac_fn_c_try_compile () | ||
1420 | 1416 | { | ||
1421 | 1417 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||
1422 | 1418 | rm -f conftest.$ac_objext | ||
1423 | 1419 | if { { ac_try="$ac_compile" | ||
1424 | 1420 | case "(($ac_try" in | ||
1425 | 1421 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
1426 | 1422 | *) ac_try_echo=$ac_try;; | ||
1427 | 1423 | esac | ||
1428 | 1424 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||
1429 | 1425 | $as_echo "$ac_try_echo"; } >&5 | ||
1430 | 1426 | (eval "$ac_compile") 2>conftest.err | ||
1431 | 1427 | ac_status=$? | ||
1432 | 1428 | if test -s conftest.err; then | ||
1433 | 1429 | grep -v '^ *+' conftest.err >conftest.er1 | ||
1434 | 1430 | cat conftest.er1 >&5 | ||
1435 | 1431 | mv -f conftest.er1 conftest.err | ||
1436 | 1432 | fi | ||
1437 | 1433 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
1438 | 1434 | test $ac_status = 0; } && { | ||
1439 | 1435 | test -z "$ac_c_werror_flag" || | ||
1440 | 1436 | test ! -s conftest.err | ||
1441 | 1437 | } && test -s conftest.$ac_objext; then : | ||
1442 | 1438 | ac_retval=0 | ||
1443 | 1439 | else | ||
1444 | 1440 | $as_echo "$as_me: failed program was:" >&5 | ||
1445 | 1441 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
1446 | 1442 | |||
1447 | 1443 | ac_retval=1 | ||
1448 | 1444 | fi | ||
1449 | 1445 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | ||
1450 | 1446 | as_fn_set_status $ac_retval | ||
1451 | 1447 | |||
1452 | 1448 | } # ac_fn_c_try_compile | ||
1453 | 1449 | |||
1454 | 1450 | # ac_fn_c_try_cpp LINENO | ||
1455 | 1451 | # ---------------------- | ||
1456 | 1452 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. | ||
1457 | 1453 | ac_fn_c_try_cpp () | ||
1458 | 1454 | { | ||
1459 | 1455 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||
1460 | 1456 | if { { ac_try="$ac_cpp conftest.$ac_ext" | ||
1461 | 1457 | case "(($ac_try" in | ||
1462 | 1458 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
1463 | 1459 | *) ac_try_echo=$ac_try;; | ||
1464 | 1460 | esac | ||
1465 | 1461 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||
1466 | 1462 | $as_echo "$ac_try_echo"; } >&5 | ||
1467 | 1463 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err | ||
1468 | 1464 | ac_status=$? | ||
1469 | 1465 | if test -s conftest.err; then | ||
1470 | 1466 | grep -v '^ *+' conftest.err >conftest.er1 | ||
1471 | 1467 | cat conftest.er1 >&5 | ||
1472 | 1468 | mv -f conftest.er1 conftest.err | ||
1473 | 1469 | fi | ||
1474 | 1470 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
1475 | 1471 | test $ac_status = 0; } >/dev/null && { | ||
1476 | 1472 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | ||
1477 | 1473 | test ! -s conftest.err | ||
1478 | 1474 | }; then : | ||
1479 | 1475 | ac_retval=0 | ||
1480 | 1476 | else | ||
1481 | 1477 | $as_echo "$as_me: failed program was:" >&5 | ||
1482 | 1478 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
1483 | 1479 | |||
1484 | 1480 | ac_retval=1 | ||
1485 | 1481 | fi | ||
1486 | 1482 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | ||
1487 | 1483 | as_fn_set_status $ac_retval | ||
1488 | 1484 | |||
1489 | 1485 | } # ac_fn_c_try_cpp | ||
1490 | 1486 | |||
1491 | 1487 | # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES | ||
1492 | 1488 | # ------------------------------------------------------- | ||
1493 | 1489 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using | ||
1494 | 1490 | # the include files in INCLUDES and setting the cache variable VAR | ||
1495 | 1491 | # accordingly. | ||
1496 | 1492 | ac_fn_c_check_header_mongrel () | ||
1497 | 1493 | { | ||
1498 | 1494 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||
1499 | 1495 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | ||
1500 | 1496 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | ||
1501 | 1497 | $as_echo_n "checking for $2... " >&6; } | ||
1502 | 1498 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | ||
1503 | 1499 | $as_echo_n "(cached) " >&6 | ||
1504 | 1500 | fi | ||
1505 | 1501 | eval ac_res=\$$3 | ||
1506 | 1502 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | ||
1507 | 1503 | $as_echo "$ac_res" >&6; } | ||
1508 | 1504 | else | ||
1509 | 1505 | # Is the header compilable? | ||
1510 | 1506 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 | ||
1511 | 1507 | $as_echo_n "checking $2 usability... " >&6; } | ||
1512 | 1508 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
1513 | 1509 | /* end confdefs.h. */ | ||
1514 | 1510 | $4 | ||
1515 | 1511 | #include <$2> | ||
1516 | 1512 | _ACEOF | ||
1517 | 1513 | if ac_fn_c_try_compile "$LINENO"; then : | ||
1518 | 1514 | ac_header_compiler=yes | ||
1519 | 1515 | else | ||
1520 | 1516 | ac_header_compiler=no | ||
1521 | 1517 | fi | ||
1522 | 1518 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
1523 | 1519 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 | ||
1524 | 1520 | $as_echo "$ac_header_compiler" >&6; } | ||
1525 | 1521 | |||
1526 | 1522 | # Is the header present? | ||
1527 | 1523 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 | ||
1528 | 1524 | $as_echo_n "checking $2 presence... " >&6; } | ||
1529 | 1525 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
1530 | 1526 | /* end confdefs.h. */ | ||
1531 | 1527 | #include <$2> | ||
1532 | 1528 | _ACEOF | ||
1533 | 1529 | if ac_fn_c_try_cpp "$LINENO"; then : | ||
1534 | 1530 | ac_header_preproc=yes | ||
1535 | 1531 | else | ||
1536 | 1532 | ac_header_preproc=no | ||
1537 | 1533 | fi | ||
1538 | 1534 | rm -f conftest.err conftest.$ac_ext | ||
1539 | 1535 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 | ||
1540 | 1536 | $as_echo "$ac_header_preproc" >&6; } | ||
1541 | 1537 | |||
1542 | 1538 | # So? What about this header? | ||
1543 | 1539 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( | ||
1544 | 1540 | yes:no: ) | ||
1545 | 1541 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 | ||
1546 | 1542 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} | ||
1547 | 1543 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | ||
1548 | 1544 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | ||
1549 | 1545 | ;; | ||
1550 | 1546 | no:yes:* ) | ||
1551 | 1547 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 | ||
1552 | 1548 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} | ||
1553 | 1549 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 | ||
1554 | 1550 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} | ||
1555 | 1551 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 | ||
1556 | 1552 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} | ||
1557 | 1553 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 | ||
1558 | 1554 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} | ||
1559 | 1555 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | ||
1560 | 1556 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | ||
1561 | 1557 | ;; | ||
1562 | 1558 | esac | ||
1563 | 1559 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | ||
1564 | 1560 | $as_echo_n "checking for $2... " >&6; } | ||
1565 | 1561 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | ||
1566 | 1562 | $as_echo_n "(cached) " >&6 | ||
1567 | 1563 | else | ||
1568 | 1564 | eval "$3=\$ac_header_compiler" | ||
1569 | 1565 | fi | ||
1570 | 1566 | eval ac_res=\$$3 | ||
1571 | 1567 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | ||
1572 | 1568 | $as_echo "$ac_res" >&6; } | ||
1573 | 1569 | fi | ||
1574 | 1570 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | ||
1575 | 1571 | |||
1576 | 1572 | } # ac_fn_c_check_header_mongrel | ||
1577 | 1573 | |||
1578 | 1574 | # ac_fn_c_try_run LINENO | ||
1579 | 1575 | # ---------------------- | ||
1580 | 1576 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes | ||
1581 | 1577 | # that executables *can* be run. | ||
1582 | 1578 | ac_fn_c_try_run () | ||
1583 | 1579 | { | ||
1584 | 1580 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||
1585 | 1581 | if { { ac_try="$ac_link" | ||
1586 | 1582 | case "(($ac_try" in | ||
1587 | 1583 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
1588 | 1584 | *) ac_try_echo=$ac_try;; | ||
1589 | 1585 | esac | ||
1590 | 1586 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||
1591 | 1587 | $as_echo "$ac_try_echo"; } >&5 | ||
1592 | 1588 | (eval "$ac_link") 2>&5 | ||
1593 | 1589 | ac_status=$? | ||
1594 | 1590 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
1595 | 1591 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' | ||
1596 | 1592 | { { case "(($ac_try" in | ||
1597 | 1593 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
1598 | 1594 | *) ac_try_echo=$ac_try;; | ||
1599 | 1595 | esac | ||
1600 | 1596 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||
1601 | 1597 | $as_echo "$ac_try_echo"; } >&5 | ||
1602 | 1598 | (eval "$ac_try") 2>&5 | ||
1603 | 1599 | ac_status=$? | ||
1604 | 1600 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
1605 | 1601 | test $ac_status = 0; }; }; then : | ||
1606 | 1602 | ac_retval=0 | ||
1607 | 1603 | else | ||
1608 | 1604 | $as_echo "$as_me: program exited with status $ac_status" >&5 | ||
1609 | 1605 | $as_echo "$as_me: failed program was:" >&5 | ||
1610 | 1606 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
1611 | 1607 | |||
1612 | 1608 | ac_retval=$ac_status | ||
1613 | 1609 | fi | ||
1614 | 1610 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | ||
1615 | 1611 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | ||
1616 | 1612 | as_fn_set_status $ac_retval | ||
1617 | 1613 | |||
1618 | 1614 | } # ac_fn_c_try_run | ||
1619 | 1615 | |||
1620 | 1616 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES | ||
1621 | 1617 | # ------------------------------------------------------- | ||
1622 | 1618 | # Tests whether HEADER exists and can be compiled using the include files in | ||
1623 | 1619 | # INCLUDES, setting the cache variable VAR accordingly. | ||
1624 | 1620 | ac_fn_c_check_header_compile () | ||
1625 | 1621 | { | ||
1626 | 1622 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||
1627 | 1623 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | ||
1628 | 1624 | $as_echo_n "checking for $2... " >&6; } | ||
1629 | 1625 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | ||
1630 | 1626 | $as_echo_n "(cached) " >&6 | ||
1631 | 1627 | else | ||
1632 | 1628 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
1633 | 1629 | /* end confdefs.h. */ | ||
1634 | 1630 | $4 | ||
1635 | 1631 | #include <$2> | ||
1636 | 1632 | _ACEOF | ||
1637 | 1633 | if ac_fn_c_try_compile "$LINENO"; then : | ||
1638 | 1634 | eval "$3=yes" | ||
1639 | 1635 | else | ||
1640 | 1636 | eval "$3=no" | ||
1641 | 1637 | fi | ||
1642 | 1638 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
1643 | 1639 | fi | ||
1644 | 1640 | eval ac_res=\$$3 | ||
1645 | 1641 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | ||
1646 | 1642 | $as_echo "$ac_res" >&6; } | ||
1647 | 1643 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | ||
1648 | 1644 | |||
1649 | 1645 | } # ac_fn_c_check_header_compile | ||
1650 | 1646 | cat >config.log <<_ACEOF | ||
1651 | 1647 | This file contains any messages produced by compilers while | ||
1652 | 1648 | running configure, to aid debugging if configure makes a mistake. | ||
1653 | 1649 | |||
1654 | 1650 | It was created by kexec-tools $as_me 2.0.2, which was | ||
1655 | 1651 | generated by GNU Autoconf 2.65. Invocation command line was | ||
1656 | 1652 | |||
1657 | 1653 | $ $0 $@ | ||
1658 | 1654 | |||
1659 | 1655 | _ACEOF | ||
1660 | 1656 | exec 5>>config.log | ||
1661 | 1657 | { | ||
1662 | 1658 | cat <<_ASUNAME | ||
1663 | 1659 | ## --------- ## | ||
1664 | 1660 | ## Platform. ## | ||
1665 | 1661 | ## --------- ## | ||
1666 | 1662 | |||
1667 | 1663 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | ||
1668 | 1664 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | ||
1669 | 1665 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | ||
1670 | 1666 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | ||
1671 | 1667 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | ||
1672 | 1668 | |||
1673 | 1669 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | ||
1674 | 1670 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | ||
1675 | 1671 | |||
1676 | 1672 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | ||
1677 | 1673 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | ||
1678 | 1674 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | ||
1679 | 1675 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` | ||
1680 | 1676 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | ||
1681 | 1677 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | ||
1682 | 1678 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | ||
1683 | 1679 | |||
1684 | 1680 | _ASUNAME | ||
1685 | 1681 | |||
1686 | 1682 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
1687 | 1683 | for as_dir in $PATH | ||
1688 | 1684 | do | ||
1689 | 1685 | IFS=$as_save_IFS | ||
1690 | 1686 | test -z "$as_dir" && as_dir=. | ||
1691 | 1687 | $as_echo "PATH: $as_dir" | ||
1692 | 1688 | done | ||
1693 | 1689 | IFS=$as_save_IFS | ||
1694 | 1690 | |||
1695 | 1691 | } >&5 | ||
1696 | 1692 | |||
1697 | 1693 | cat >&5 <<_ACEOF | ||
1698 | 1694 | |||
1699 | 1695 | |||
1700 | 1696 | ## ----------- ## | ||
1701 | 1697 | ## Core tests. ## | ||
1702 | 1698 | ## ----------- ## | ||
1703 | 1699 | |||
1704 | 1700 | _ACEOF | ||
1705 | 1701 | |||
1706 | 1702 | |||
1707 | 1703 | # Keep a trace of the command line. | ||
1708 | 1704 | # Strip out --no-create and --no-recursion so they do not pile up. | ||
1709 | 1705 | # Strip out --silent because we don't want to record it for future runs. | ||
1710 | 1706 | # Also quote any args containing shell meta-characters. | ||
1711 | 1707 | # Make two passes to allow for proper duplicate-argument suppression. | ||
1712 | 1708 | ac_configure_args= | ||
1713 | 1709 | ac_configure_args0= | ||
1714 | 1710 | ac_configure_args1= | ||
1715 | 1711 | ac_must_keep_next=false | ||
1716 | 1712 | for ac_pass in 1 2 | ||
1717 | 1713 | do | ||
1718 | 1714 | for ac_arg | ||
1719 | 1715 | do | ||
1720 | 1716 | case $ac_arg in | ||
1721 | 1717 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | ||
1722 | 1718 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | ||
1723 | 1719 | | -silent | --silent | --silen | --sile | --sil) | ||
1724 | 1720 | continue ;; | ||
1725 | 1721 | *\'*) | ||
1726 | 1722 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | ||
1727 | 1723 | esac | ||
1728 | 1724 | case $ac_pass in | ||
1729 | 1725 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; | ||
1730 | 1726 | 2) | ||
1731 | 1727 | as_fn_append ac_configure_args1 " '$ac_arg'" | ||
1732 | 1728 | if test $ac_must_keep_next = true; then | ||
1733 | 1729 | ac_must_keep_next=false # Got value, back to normal. | ||
1734 | 1730 | else | ||
1735 | 1731 | case $ac_arg in | ||
1736 | 1732 | *=* | --config-cache | -C | -disable-* | --disable-* \ | ||
1737 | 1733 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | ||
1738 | 1734 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | ||
1739 | 1735 | | -with-* | --with-* | -without-* | --without-* | --x) | ||
1740 | 1736 | case "$ac_configure_args0 " in | ||
1741 | 1737 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | ||
1742 | 1738 | esac | ||
1743 | 1739 | ;; | ||
1744 | 1740 | -* ) ac_must_keep_next=true ;; | ||
1745 | 1741 | esac | ||
1746 | 1742 | fi | ||
1747 | 1743 | as_fn_append ac_configure_args " '$ac_arg'" | ||
1748 | 1744 | ;; | ||
1749 | 1745 | esac | ||
1750 | 1746 | done | ||
1751 | 1747 | done | ||
1752 | 1748 | { ac_configure_args0=; unset ac_configure_args0;} | ||
1753 | 1749 | { ac_configure_args1=; unset ac_configure_args1;} | ||
1754 | 1750 | |||
1755 | 1751 | # When interrupted or exit'd, cleanup temporary files, and complete | ||
1756 | 1752 | # config.log. We remove comments because anyway the quotes in there | ||
1757 | 1753 | # would cause problems or look ugly. | ||
1758 | 1754 | # WARNING: Use '\'' to represent an apostrophe within the trap. | ||
1759 | 1755 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | ||
1760 | 1756 | trap 'exit_status=$? | ||
1761 | 1757 | # Save into config.log some information that might help in debugging. | ||
1762 | 1758 | { | ||
1763 | 1759 | echo | ||
1764 | 1760 | |||
1765 | 1761 | cat <<\_ASBOX | ||
1766 | 1762 | ## ---------------- ## | ||
1767 | 1763 | ## Cache variables. ## | ||
1768 | 1764 | ## ---------------- ## | ||
1769 | 1765 | _ASBOX | ||
1770 | 1766 | echo | ||
1771 | 1767 | # The following way of writing the cache mishandles newlines in values, | ||
1772 | 1768 | ( | ||
1773 | 1769 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | ||
1774 | 1770 | eval ac_val=\$$ac_var | ||
1775 | 1771 | case $ac_val in #( | ||
1776 | 1772 | *${as_nl}*) | ||
1777 | 1773 | case $ac_var in #( | ||
1778 | 1774 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | ||
1779 | 1775 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | ||
1780 | 1776 | esac | ||
1781 | 1777 | case $ac_var in #( | ||
1782 | 1778 | _ | IFS | as_nl) ;; #( | ||
1783 | 1779 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | ||
1784 | 1780 | *) { eval $ac_var=; unset $ac_var;} ;; | ||
1785 | 1781 | esac ;; | ||
1786 | 1782 | esac | ||
1787 | 1783 | done | ||
1788 | 1784 | (set) 2>&1 | | ||
1789 | 1785 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( | ||
1790 | 1786 | *${as_nl}ac_space=\ *) | ||
1791 | 1787 | sed -n \ | ||
1792 | 1788 | "s/'\''/'\''\\\\'\'''\''/g; | ||
1793 | 1789 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | ||
1794 | 1790 | ;; #( | ||
1795 | 1791 | *) | ||
1796 | 1792 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | ||
1797 | 1793 | ;; | ||
1798 | 1794 | esac | | ||
1799 | 1795 | sort | ||
1800 | 1796 | ) | ||
1801 | 1797 | echo | ||
1802 | 1798 | |||
1803 | 1799 | cat <<\_ASBOX | ||
1804 | 1800 | ## ----------------- ## | ||
1805 | 1801 | ## Output variables. ## | ||
1806 | 1802 | ## ----------------- ## | ||
1807 | 1803 | _ASBOX | ||
1808 | 1804 | echo | ||
1809 | 1805 | for ac_var in $ac_subst_vars | ||
1810 | 1806 | do | ||
1811 | 1807 | eval ac_val=\$$ac_var | ||
1812 | 1808 | case $ac_val in | ||
1813 | 1809 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | ||
1814 | 1810 | esac | ||
1815 | 1811 | $as_echo "$ac_var='\''$ac_val'\''" | ||
1816 | 1812 | done | sort | ||
1817 | 1813 | echo | ||
1818 | 1814 | |||
1819 | 1815 | if test -n "$ac_subst_files"; then | ||
1820 | 1816 | cat <<\_ASBOX | ||
1821 | 1817 | ## ------------------- ## | ||
1822 | 1818 | ## File substitutions. ## | ||
1823 | 1819 | ## ------------------- ## | ||
1824 | 1820 | _ASBOX | ||
1825 | 1821 | echo | ||
1826 | 1822 | for ac_var in $ac_subst_files | ||
1827 | 1823 | do | ||
1828 | 1824 | eval ac_val=\$$ac_var | ||
1829 | 1825 | case $ac_val in | ||
1830 | 1826 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | ||
1831 | 1827 | esac | ||
1832 | 1828 | $as_echo "$ac_var='\''$ac_val'\''" | ||
1833 | 1829 | done | sort | ||
1834 | 1830 | echo | ||
1835 | 1831 | fi | ||
1836 | 1832 | |||
1837 | 1833 | if test -s confdefs.h; then | ||
1838 | 1834 | cat <<\_ASBOX | ||
1839 | 1835 | ## ----------- ## | ||
1840 | 1836 | ## confdefs.h. ## | ||
1841 | 1837 | ## ----------- ## | ||
1842 | 1838 | _ASBOX | ||
1843 | 1839 | echo | ||
1844 | 1840 | cat confdefs.h | ||
1845 | 1841 | echo | ||
1846 | 1842 | fi | ||
1847 | 1843 | test "$ac_signal" != 0 && | ||
1848 | 1844 | $as_echo "$as_me: caught signal $ac_signal" | ||
1849 | 1845 | $as_echo "$as_me: exit $exit_status" | ||
1850 | 1846 | } >&5 | ||
1851 | 1847 | rm -f core *.core core.conftest.* && | ||
1852 | 1848 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | ||
1853 | 1849 | exit $exit_status | ||
1854 | 1850 | ' 0 | ||
1855 | 1851 | for ac_signal in 1 2 13 15; do | ||
1856 | 1852 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal | ||
1857 | 1853 | done | ||
1858 | 1854 | ac_signal=0 | ||
1859 | 1855 | |||
1860 | 1856 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | ||
1861 | 1857 | rm -f -r conftest* confdefs.h | ||
1862 | 1858 | |||
1863 | 1859 | $as_echo "/* confdefs.h */" > confdefs.h | ||
1864 | 1860 | |||
1865 | 1861 | # Predefined preprocessor variables. | ||
1866 | 1862 | |||
1867 | 1863 | cat >>confdefs.h <<_ACEOF | ||
1868 | 1864 | #define PACKAGE_NAME "$PACKAGE_NAME" | ||
1869 | 1865 | _ACEOF | ||
1870 | 1866 | |||
1871 | 1867 | cat >>confdefs.h <<_ACEOF | ||
1872 | 1868 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | ||
1873 | 1869 | _ACEOF | ||
1874 | 1870 | |||
1875 | 1871 | cat >>confdefs.h <<_ACEOF | ||
1876 | 1872 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | ||
1877 | 1873 | _ACEOF | ||
1878 | 1874 | |||
1879 | 1875 | cat >>confdefs.h <<_ACEOF | ||
1880 | 1876 | #define PACKAGE_STRING "$PACKAGE_STRING" | ||
1881 | 1877 | _ACEOF | ||
1882 | 1878 | |||
1883 | 1879 | cat >>confdefs.h <<_ACEOF | ||
1884 | 1880 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | ||
1885 | 1881 | _ACEOF | ||
1886 | 1882 | |||
1887 | 1883 | cat >>confdefs.h <<_ACEOF | ||
1888 | 1884 | #define PACKAGE_URL "$PACKAGE_URL" | ||
1889 | 1885 | _ACEOF | ||
1890 | 1886 | |||
1891 | 1887 | |||
1892 | 1888 | # Let the site file select an alternate cache file if it wants to. | ||
1893 | 1889 | # Prefer an explicitly selected file to automatically selected ones. | ||
1894 | 1890 | ac_site_file1=NONE | ||
1895 | 1891 | ac_site_file2=NONE | ||
1896 | 1892 | if test -n "$CONFIG_SITE"; then | ||
1897 | 1893 | ac_site_file1=$CONFIG_SITE | ||
1898 | 1894 | elif test "x$prefix" != xNONE; then | ||
1899 | 1895 | ac_site_file1=$prefix/share/config.site | ||
1900 | 1896 | ac_site_file2=$prefix/etc/config.site | ||
1901 | 1897 | else | ||
1902 | 1898 | ac_site_file1=$ac_default_prefix/share/config.site | ||
1903 | 1899 | ac_site_file2=$ac_default_prefix/etc/config.site | ||
1904 | 1900 | fi | ||
1905 | 1901 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" | ||
1906 | 1902 | do | ||
1907 | 1903 | test "x$ac_site_file" = xNONE && continue | ||
1908 | 1904 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then | ||
1909 | 1905 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 | ||
1910 | 1906 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} | ||
1911 | 1907 | sed 's/^/| /' "$ac_site_file" >&5 | ||
1912 | 1908 | . "$ac_site_file" | ||
1913 | 1909 | fi | ||
1914 | 1910 | done | ||
1915 | 1911 | |||
1916 | 1912 | if test -r "$cache_file"; then | ||
1917 | 1913 | # Some versions of bash will fail to source /dev/null (special files | ||
1918 | 1914 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. | ||
1919 | 1915 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then | ||
1920 | 1916 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 | ||
1921 | 1917 | $as_echo "$as_me: loading cache $cache_file" >&6;} | ||
1922 | 1918 | case $cache_file in | ||
1923 | 1919 | [\\/]* | ?:[\\/]* ) . "$cache_file";; | ||
1924 | 1920 | *) . "./$cache_file";; | ||
1925 | 1921 | esac | ||
1926 | 1922 | fi | ||
1927 | 1923 | else | ||
1928 | 1924 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 | ||
1929 | 1925 | $as_echo "$as_me: creating cache $cache_file" >&6;} | ||
1930 | 1926 | >$cache_file | ||
1931 | 1927 | fi | ||
1932 | 1928 | |||
1933 | 1929 | # Check that the precious variables saved in the cache have kept the same | ||
1934 | 1930 | # value. | ||
1935 | 1931 | ac_cache_corrupted=false | ||
1936 | 1932 | for ac_var in $ac_precious_vars; do | ||
1937 | 1933 | eval ac_old_set=\$ac_cv_env_${ac_var}_set | ||
1938 | 1934 | eval ac_new_set=\$ac_env_${ac_var}_set | ||
1939 | 1935 | eval ac_old_val=\$ac_cv_env_${ac_var}_value | ||
1940 | 1936 | eval ac_new_val=\$ac_env_${ac_var}_value | ||
1941 | 1937 | case $ac_old_set,$ac_new_set in | ||
1942 | 1938 | set,) | ||
1943 | 1939 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | ||
1944 | 1940 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | ||
1945 | 1941 | ac_cache_corrupted=: ;; | ||
1946 | 1942 | ,set) | ||
1947 | 1943 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 | ||
1948 | 1944 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | ||
1949 | 1945 | ac_cache_corrupted=: ;; | ||
1950 | 1946 | ,);; | ||
1951 | 1947 | *) | ||
1952 | 1948 | if test "x$ac_old_val" != "x$ac_new_val"; then | ||
1953 | 1949 | # differences in whitespace do not lead to failure. | ||
1954 | 1950 | ac_old_val_w=`echo x $ac_old_val` | ||
1955 | 1951 | ac_new_val_w=`echo x $ac_new_val` | ||
1956 | 1952 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | ||
1957 | 1953 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 | ||
1958 | 1954 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | ||
1959 | 1955 | ac_cache_corrupted=: | ||
1960 | 1956 | else | ||
1961 | 1957 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | ||
1962 | 1958 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | ||
1963 | 1959 | eval $ac_var=\$ac_old_val | ||
1964 | 1960 | fi | ||
1965 | 1961 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 | ||
1966 | 1962 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} | ||
1967 | 1963 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 | ||
1968 | 1964 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} | ||
1969 | 1965 | fi;; | ||
1970 | 1966 | esac | ||
1971 | 1967 | # Pass precious variables to config.status. | ||
1972 | 1968 | if test "$ac_new_set" = set; then | ||
1973 | 1969 | case $ac_new_val in | ||
1974 | 1970 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | ||
1975 | 1971 | *) ac_arg=$ac_var=$ac_new_val ;; | ||
1976 | 1972 | esac | ||
1977 | 1973 | case " $ac_configure_args " in | ||
1978 | 1974 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | ||
1979 | 1975 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; | ||
1980 | 1976 | esac | ||
1981 | 1977 | fi | ||
1982 | 1978 | done | ||
1983 | 1979 | if $ac_cache_corrupted; then | ||
1984 | 1980 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||
1985 | 1981 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||
1986 | 1982 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 | ||
1987 | 1983 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} | ||
1988 | 1984 | as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 | ||
1989 | 1985 | fi | ||
1990 | 1986 | ## -------------------- ## | ||
1991 | 1987 | ## Main body of script. ## | ||
1992 | 1988 | ## -------------------- ## | ||
1993 | 1989 | |||
1994 | 1990 | ac_ext=c | ||
1995 | 1991 | ac_cpp='$CPP $CPPFLAGS' | ||
1996 | 1992 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
1997 | 1993 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
1998 | 1994 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
1999 | 1995 | |||
2000 | 1996 | |||
2001 | 1997 | ac_aux_dir= | ||
2002 | 1998 | for ac_dir in ./config "$srcdir"/./config; do | ||
2003 | 1999 | for ac_t in install-sh install.sh shtool; do | ||
2004 | 2000 | if test -f "$ac_dir/$ac_t"; then | ||
2005 | 2001 | ac_aux_dir=$ac_dir | ||
2006 | 2002 | ac_install_sh="$ac_aux_dir/$ac_t -c" | ||
2007 | 2003 | break 2 | ||
2008 | 2004 | fi | ||
2009 | 2005 | done | ||
2010 | 2006 | done | ||
2011 | 2007 | if test -z "$ac_aux_dir"; then | ||
2012 | 2008 | as_fn_error "cannot find install-sh, install.sh, or shtool in ./config \"$srcdir\"/./config" "$LINENO" 5 | ||
2013 | 2009 | fi | ||
2014 | 2010 | |||
2015 | 2011 | # These three variables are undocumented and unsupported, | ||
2016 | 2012 | # and are intended to be withdrawn in a future Autoconf release. | ||
2017 | 2013 | # They can cause serious problems if a builder's source tree is in a directory | ||
2018 | 2014 | # whose full name contains unusual characters. | ||
2019 | 2015 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | ||
2020 | 2016 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | ||
2021 | 2017 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | ||
2022 | 2018 | |||
2023 | 2019 | |||
2024 | 2020 | ac_config_headers="$ac_config_headers include/config.h" | ||
2025 | 2021 | |||
2026 | 2022 | ac_ext=c | ||
2027 | 2023 | ac_cpp='$CPP $CPPFLAGS' | ||
2028 | 2024 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
2029 | 2025 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
2030 | 2026 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
2031 | 2027 | |||
2032 | 2028 | |||
2033 | 2029 | |||
2034 | 2030 | cat >>confdefs.h <<_ACEOF | ||
2035 | 2031 | #define PACKAGE_DATE "`date '+%d %B %Y'`" | ||
2036 | 2032 | _ACEOF | ||
2037 | 2033 | |||
2038 | 2034 | |||
2039 | 2035 | |||
2040 | 2036 | # Make sure we can run config.sub. | ||
2041 | 2037 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || | ||
2042 | 2038 | as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 | ||
2043 | 2039 | |||
2044 | 2040 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 | ||
2045 | 2041 | $as_echo_n "checking build system type... " >&6; } | ||
2046 | 2042 | if test "${ac_cv_build+set}" = set; then : | ||
2047 | 2043 | $as_echo_n "(cached) " >&6 | ||
2048 | 2044 | else | ||
2049 | 2045 | ac_build_alias=$build_alias | ||
2050 | 2046 | test "x$ac_build_alias" = x && | ||
2051 | 2047 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | ||
2052 | 2048 | test "x$ac_build_alias" = x && | ||
2053 | 2049 | as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5 | ||
2054 | 2050 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || | ||
2055 | 2051 | as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 | ||
2056 | 2052 | |||
2057 | 2053 | fi | ||
2058 | 2054 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 | ||
2059 | 2055 | $as_echo "$ac_cv_build" >&6; } | ||
2060 | 2056 | case $ac_cv_build in | ||
2061 | 2057 | *-*-*) ;; | ||
2062 | 2058 | *) as_fn_error "invalid value of canonical build" "$LINENO" 5;; | ||
2063 | 2059 | esac | ||
2064 | 2060 | build=$ac_cv_build | ||
2065 | 2061 | ac_save_IFS=$IFS; IFS='-' | ||
2066 | 2062 | set x $ac_cv_build | ||
2067 | 2063 | shift | ||
2068 | 2064 | build_cpu=$1 | ||
2069 | 2065 | build_vendor=$2 | ||
2070 | 2066 | shift; shift | ||
2071 | 2067 | # Remember, the first character of IFS is used to create $*, | ||
2072 | 2068 | # except with old shells: | ||
2073 | 2069 | build_os=$* | ||
2074 | 2070 | IFS=$ac_save_IFS | ||
2075 | 2071 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | ||
2076 | 2072 | |||
2077 | 2073 | |||
2078 | 2074 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 | ||
2079 | 2075 | $as_echo_n "checking host system type... " >&6; } | ||
2080 | 2076 | if test "${ac_cv_host+set}" = set; then : | ||
2081 | 2077 | $as_echo_n "(cached) " >&6 | ||
2082 | 2078 | else | ||
2083 | 2079 | if test "x$host_alias" = x; then | ||
2084 | 2080 | ac_cv_host=$ac_cv_build | ||
2085 | 2081 | else | ||
2086 | 2082 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || | ||
2087 | 2083 | as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 | ||
2088 | 2084 | fi | ||
2089 | 2085 | |||
2090 | 2086 | fi | ||
2091 | 2087 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 | ||
2092 | 2088 | $as_echo "$ac_cv_host" >&6; } | ||
2093 | 2089 | case $ac_cv_host in | ||
2094 | 2090 | *-*-*) ;; | ||
2095 | 2091 | *) as_fn_error "invalid value of canonical host" "$LINENO" 5;; | ||
2096 | 2092 | esac | ||
2097 | 2093 | host=$ac_cv_host | ||
2098 | 2094 | ac_save_IFS=$IFS; IFS='-' | ||
2099 | 2095 | set x $ac_cv_host | ||
2100 | 2096 | shift | ||
2101 | 2097 | host_cpu=$1 | ||
2102 | 2098 | host_vendor=$2 | ||
2103 | 2099 | shift; shift | ||
2104 | 2100 | # Remember, the first character of IFS is used to create $*, | ||
2105 | 2101 | # except with old shells: | ||
2106 | 2102 | host_os=$* | ||
2107 | 2103 | IFS=$ac_save_IFS | ||
2108 | 2104 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | ||
2109 | 2105 | |||
2110 | 2106 | |||
2111 | 2107 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 | ||
2112 | 2108 | $as_echo_n "checking target system type... " >&6; } | ||
2113 | 2109 | if test "${ac_cv_target+set}" = set; then : | ||
2114 | 2110 | $as_echo_n "(cached) " >&6 | ||
2115 | 2111 | else | ||
2116 | 2112 | if test "x$target_alias" = x; then | ||
2117 | 2113 | ac_cv_target=$ac_cv_host | ||
2118 | 2114 | else | ||
2119 | 2115 | ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || | ||
2120 | 2116 | as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 | ||
2121 | 2117 | fi | ||
2122 | 2118 | |||
2123 | 2119 | fi | ||
2124 | 2120 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 | ||
2125 | 2121 | $as_echo "$ac_cv_target" >&6; } | ||
2126 | 2122 | case $ac_cv_target in | ||
2127 | 2123 | *-*-*) ;; | ||
2128 | 2124 | *) as_fn_error "invalid value of canonical target" "$LINENO" 5;; | ||
2129 | 2125 | esac | ||
2130 | 2126 | target=$ac_cv_target | ||
2131 | 2127 | ac_save_IFS=$IFS; IFS='-' | ||
2132 | 2128 | set x $ac_cv_target | ||
2133 | 2129 | shift | ||
2134 | 2130 | target_cpu=$1 | ||
2135 | 2131 | target_vendor=$2 | ||
2136 | 2132 | shift; shift | ||
2137 | 2133 | # Remember, the first character of IFS is used to create $*, | ||
2138 | 2134 | # except with old shells: | ||
2139 | 2135 | target_os=$* | ||
2140 | 2136 | IFS=$ac_save_IFS | ||
2141 | 2137 | case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac | ||
2142 | 2138 | |||
2143 | 2139 | |||
2144 | 2140 | # The aliases save the names the user supplied, while $host etc. | ||
2145 | 2141 | # will get canonicalized. | ||
2146 | 2142 | test -n "$target_alias" && | ||
2147 | 2143 | test "$program_prefix$program_suffix$program_transform_name" = \ | ||
2148 | 2144 | NONENONEs,x,x, && | ||
2149 | 2145 | program_prefix=${target_alias}- | ||
2150 | 2146 | |||
2151 | 2147 | case $target_cpu in | ||
2152 | 2148 | i?86 ) | ||
2153 | 2149 | ARCH="i386" | ||
2154 | 2150 | ;; | ||
2155 | 2151 | powerpc ) | ||
2156 | 2152 | ARCH="ppc" | ||
2157 | 2153 | ;; | ||
2158 | 2154 | powerpc64 ) | ||
2159 | 2155 | ARCH="ppc64" | ||
2160 | 2156 | ;; | ||
2161 | 2157 | arm* ) | ||
2162 | 2158 | ARCH="arm" | ||
2163 | 2159 | ;; | ||
2164 | 2160 | s390x|s390 ) | ||
2165 | 2161 | ARCH="s390" | ||
2166 | 2162 | ;; | ||
2167 | 2163 | sh4|sh4a|sh3|sh ) | ||
2168 | 2164 | ARCH="sh" | ||
2169 | 2165 | ;; | ||
2170 | 2166 | mips* ) | ||
2171 | 2167 | ARCH="mips" | ||
2172 | 2168 | ;; | ||
2173 | 2169 | cris|crisv32 ) | ||
2174 | 2170 | ARCH="cris" | ||
2175 | 2171 | ;; | ||
2176 | 2172 | ia64|x86_64|alpha ) | ||
2177 | 2173 | ARCH="$target_cpu" | ||
2178 | 2174 | ;; | ||
2179 | 2175 | * ) | ||
2180 | 2176 | as_fn_error "unsupported architecture $target_cpu" "$LINENO" 5 | ||
2181 | 2177 | ;; | ||
2182 | 2178 | esac | ||
2183 | 2179 | |||
2184 | 2180 | |||
2185 | 2181 | OBJDIR=`pwd`/objdir | ||
2186 | 2182 | if test "${host_alias}" ; then | ||
2187 | 2183 | OBJDIR="$OBJDIR-${host_alias}" | ||
2188 | 2184 | fi | ||
2189 | 2185 | |||
2190 | 2186 | if test "x$BUILD_CFLAGS" = "x" ; then | ||
2191 | 2187 | BUILD_CFLAGS='-O2 -Wall' | ||
2192 | 2188 | fi | ||
2193 | 2189 | |||
2194 | 2190 | if test "x$TARGET_CFLAGS" = "x" ; then | ||
2195 | 2191 | TARGET_CFLAGS='-O2 -Wall' | ||
2196 | 2192 | fi | ||
2197 | 2193 | |||
2198 | 2194 | |||
2199 | 2195 | # Check whether --with-objdir was given. | ||
2200 | 2196 | if test "${with_objdir+set}" = set; then : | ||
2201 | 2197 | withval=$with_objdir; OBJDIR="$withval" | ||
2202 | 2198 | else | ||
2203 | 2199 | OBJDIR="$OBJDIR" | ||
2204 | 2200 | fi | ||
2205 | 2201 | |||
2206 | 2202 | |||
2207 | 2203 | |||
2208 | 2204 | # Check whether --with-gamecube was given. | ||
2209 | 2205 | if test "${with_gamecube+set}" = set; then : | ||
2210 | 2206 | withval=$with_gamecube; | ||
2211 | 2207 | $as_echo "#define WITH_GAMECUBE 1" >>confdefs.h | ||
2212 | 2208 | |||
2213 | 2209 | fi | ||
2214 | 2210 | |||
2215 | 2211 | |||
2216 | 2212 | |||
2217 | 2213 | # Check whether --with-zlib was given. | ||
2218 | 2214 | if test "${with_zlib+set}" = set; then : | ||
2219 | 2215 | withval=$with_zlib; with_zlib="$withval" | ||
2220 | 2216 | else | ||
2221 | 2217 | with_zlib=yes | ||
2222 | 2218 | fi | ||
2223 | 2219 | |||
2224 | 2220 | |||
2225 | 2221 | |||
2226 | 2222 | # Check whether --with-lzma was given. | ||
2227 | 2223 | if test "${with_lzma+set}" = set; then : | ||
2228 | 2224 | withval=$with_lzma; with_lzma="$withval" | ||
2229 | 2225 | else | ||
2230 | 2226 | with_lzma=yes | ||
2231 | 2227 | fi | ||
2232 | 2228 | |||
2233 | 2229 | |||
2234 | 2230 | |||
2235 | 2231 | # Check whether --with-xen was given. | ||
2236 | 2232 | if test "${with_xen+set}" = set; then : | ||
2237 | 2233 | withval=$with_xen; with_xen="$withval" | ||
2238 | 2234 | else | ||
2239 | 2235 | with_xen=yes | ||
2240 | 2236 | fi | ||
2241 | 2237 | |||
2242 | 2238 | |||
2243 | 2239 | |||
2244 | 2240 | ac_ext=c | ||
2245 | 2241 | ac_cpp='$CPP $CPPFLAGS' | ||
2246 | 2242 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
2247 | 2243 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
2248 | 2244 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
2249 | 2245 | if test -n "$ac_tool_prefix"; then | ||
2250 | 2246 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | ||
2251 | 2247 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | ||
2252 | 2248 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
2253 | 2249 | $as_echo_n "checking for $ac_word... " >&6; } | ||
2254 | 2250 | if test "${ac_cv_prog_CC+set}" = set; then : | ||
2255 | 2251 | $as_echo_n "(cached) " >&6 | ||
2256 | 2252 | else | ||
2257 | 2253 | if test -n "$CC"; then | ||
2258 | 2254 | ac_cv_prog_CC="$CC" # Let the user override the test. | ||
2259 | 2255 | else | ||
2260 | 2256 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
2261 | 2257 | for as_dir in $PATH | ||
2262 | 2258 | do | ||
2263 | 2259 | IFS=$as_save_IFS | ||
2264 | 2260 | test -z "$as_dir" && as_dir=. | ||
2265 | 2261 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
2266 | 2262 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
2267 | 2263 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | ||
2268 | 2264 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
2269 | 2265 | break 2 | ||
2270 | 2266 | fi | ||
2271 | 2267 | done | ||
2272 | 2268 | done | ||
2273 | 2269 | IFS=$as_save_IFS | ||
2274 | 2270 | |||
2275 | 2271 | fi | ||
2276 | 2272 | fi | ||
2277 | 2273 | CC=$ac_cv_prog_CC | ||
2278 | 2274 | if test -n "$CC"; then | ||
2279 | 2275 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | ||
2280 | 2276 | $as_echo "$CC" >&6; } | ||
2281 | 2277 | else | ||
2282 | 2278 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
2283 | 2279 | $as_echo "no" >&6; } | ||
2284 | 2280 | fi | ||
2285 | 2281 | |||
2286 | 2282 | |||
2287 | 2283 | fi | ||
2288 | 2284 | if test -z "$ac_cv_prog_CC"; then | ||
2289 | 2285 | ac_ct_CC=$CC | ||
2290 | 2286 | # Extract the first word of "gcc", so it can be a program name with args. | ||
2291 | 2287 | set dummy gcc; ac_word=$2 | ||
2292 | 2288 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
2293 | 2289 | $as_echo_n "checking for $ac_word... " >&6; } | ||
2294 | 2290 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : | ||
2295 | 2291 | $as_echo_n "(cached) " >&6 | ||
2296 | 2292 | else | ||
2297 | 2293 | if test -n "$ac_ct_CC"; then | ||
2298 | 2294 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | ||
2299 | 2295 | else | ||
2300 | 2296 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
2301 | 2297 | for as_dir in $PATH | ||
2302 | 2298 | do | ||
2303 | 2299 | IFS=$as_save_IFS | ||
2304 | 2300 | test -z "$as_dir" && as_dir=. | ||
2305 | 2301 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
2306 | 2302 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
2307 | 2303 | ac_cv_prog_ac_ct_CC="gcc" | ||
2308 | 2304 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
2309 | 2305 | break 2 | ||
2310 | 2306 | fi | ||
2311 | 2307 | done | ||
2312 | 2308 | done | ||
2313 | 2309 | IFS=$as_save_IFS | ||
2314 | 2310 | |||
2315 | 2311 | fi | ||
2316 | 2312 | fi | ||
2317 | 2313 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | ||
2318 | 2314 | if test -n "$ac_ct_CC"; then | ||
2319 | 2315 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | ||
2320 | 2316 | $as_echo "$ac_ct_CC" >&6; } | ||
2321 | 2317 | else | ||
2322 | 2318 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
2323 | 2319 | $as_echo "no" >&6; } | ||
2324 | 2320 | fi | ||
2325 | 2321 | |||
2326 | 2322 | if test "x$ac_ct_CC" = x; then | ||
2327 | 2323 | CC="" | ||
2328 | 2324 | else | ||
2329 | 2325 | case $cross_compiling:$ac_tool_warned in | ||
2330 | 2326 | yes:) | ||
2331 | 2327 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | ||
2332 | 2328 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||
2333 | 2329 | ac_tool_warned=yes ;; | ||
2334 | 2330 | esac | ||
2335 | 2331 | CC=$ac_ct_CC | ||
2336 | 2332 | fi | ||
2337 | 2333 | else | ||
2338 | 2334 | CC="$ac_cv_prog_CC" | ||
2339 | 2335 | fi | ||
2340 | 2336 | |||
2341 | 2337 | if test -z "$CC"; then | ||
2342 | 2338 | if test -n "$ac_tool_prefix"; then | ||
2343 | 2339 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | ||
2344 | 2340 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | ||
2345 | 2341 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
2346 | 2342 | $as_echo_n "checking for $ac_word... " >&6; } | ||
2347 | 2343 | if test "${ac_cv_prog_CC+set}" = set; then : | ||
2348 | 2344 | $as_echo_n "(cached) " >&6 | ||
2349 | 2345 | else | ||
2350 | 2346 | if test -n "$CC"; then | ||
2351 | 2347 | ac_cv_prog_CC="$CC" # Let the user override the test. | ||
2352 | 2348 | else | ||
2353 | 2349 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
2354 | 2350 | for as_dir in $PATH | ||
2355 | 2351 | do | ||
2356 | 2352 | IFS=$as_save_IFS | ||
2357 | 2353 | test -z "$as_dir" && as_dir=. | ||
2358 | 2354 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
2359 | 2355 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
2360 | 2356 | ac_cv_prog_CC="${ac_tool_prefix}cc" | ||
2361 | 2357 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
2362 | 2358 | break 2 | ||
2363 | 2359 | fi | ||
2364 | 2360 | done | ||
2365 | 2361 | done | ||
2366 | 2362 | IFS=$as_save_IFS | ||
2367 | 2363 | |||
2368 | 2364 | fi | ||
2369 | 2365 | fi | ||
2370 | 2366 | CC=$ac_cv_prog_CC | ||
2371 | 2367 | if test -n "$CC"; then | ||
2372 | 2368 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | ||
2373 | 2369 | $as_echo "$CC" >&6; } | ||
2374 | 2370 | else | ||
2375 | 2371 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
2376 | 2372 | $as_echo "no" >&6; } | ||
2377 | 2373 | fi | ||
2378 | 2374 | |||
2379 | 2375 | |||
2380 | 2376 | fi | ||
2381 | 2377 | fi | ||
2382 | 2378 | if test -z "$CC"; then | ||
2383 | 2379 | # Extract the first word of "cc", so it can be a program name with args. | ||
2384 | 2380 | set dummy cc; ac_word=$2 | ||
2385 | 2381 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
2386 | 2382 | $as_echo_n "checking for $ac_word... " >&6; } | ||
2387 | 2383 | if test "${ac_cv_prog_CC+set}" = set; then : | ||
2388 | 2384 | $as_echo_n "(cached) " >&6 | ||
2389 | 2385 | else | ||
2390 | 2386 | if test -n "$CC"; then | ||
2391 | 2387 | ac_cv_prog_CC="$CC" # Let the user override the test. | ||
2392 | 2388 | else | ||
2393 | 2389 | ac_prog_rejected=no | ||
2394 | 2390 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
2395 | 2391 | for as_dir in $PATH | ||
2396 | 2392 | do | ||
2397 | 2393 | IFS=$as_save_IFS | ||
2398 | 2394 | test -z "$as_dir" && as_dir=. | ||
2399 | 2395 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
2400 | 2396 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
2401 | 2397 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | ||
2402 | 2398 | ac_prog_rejected=yes | ||
2403 | 2399 | continue | ||
2404 | 2400 | fi | ||
2405 | 2401 | ac_cv_prog_CC="cc" | ||
2406 | 2402 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
2407 | 2403 | break 2 | ||
2408 | 2404 | fi | ||
2409 | 2405 | done | ||
2410 | 2406 | done | ||
2411 | 2407 | IFS=$as_save_IFS | ||
2412 | 2408 | |||
2413 | 2409 | if test $ac_prog_rejected = yes; then | ||
2414 | 2410 | # We found a bogon in the path, so make sure we never use it. | ||
2415 | 2411 | set dummy $ac_cv_prog_CC | ||
2416 | 2412 | shift | ||
2417 | 2413 | if test $# != 0; then | ||
2418 | 2414 | # We chose a different compiler from the bogus one. | ||
2419 | 2415 | # However, it has the same basename, so the bogon will be chosen | ||
2420 | 2416 | # first if we set CC to just the basename; use the full file name. | ||
2421 | 2417 | shift | ||
2422 | 2418 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | ||
2423 | 2419 | fi | ||
2424 | 2420 | fi | ||
2425 | 2421 | fi | ||
2426 | 2422 | fi | ||
2427 | 2423 | CC=$ac_cv_prog_CC | ||
2428 | 2424 | if test -n "$CC"; then | ||
2429 | 2425 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | ||
2430 | 2426 | $as_echo "$CC" >&6; } | ||
2431 | 2427 | else | ||
2432 | 2428 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
2433 | 2429 | $as_echo "no" >&6; } | ||
2434 | 2430 | fi | ||
2435 | 2431 | |||
2436 | 2432 | |||
2437 | 2433 | fi | ||
2438 | 2434 | if test -z "$CC"; then | ||
2439 | 2435 | if test -n "$ac_tool_prefix"; then | ||
2440 | 2436 | for ac_prog in cl.exe | ||
2441 | 2437 | do | ||
2442 | 2438 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | ||
2443 | 2439 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | ||
2444 | 2440 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
2445 | 2441 | $as_echo_n "checking for $ac_word... " >&6; } | ||
2446 | 2442 | if test "${ac_cv_prog_CC+set}" = set; then : | ||
2447 | 2443 | $as_echo_n "(cached) " >&6 | ||
2448 | 2444 | else | ||
2449 | 2445 | if test -n "$CC"; then | ||
2450 | 2446 | ac_cv_prog_CC="$CC" # Let the user override the test. | ||
2451 | 2447 | else | ||
2452 | 2448 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
2453 | 2449 | for as_dir in $PATH | ||
2454 | 2450 | do | ||
2455 | 2451 | IFS=$as_save_IFS | ||
2456 | 2452 | test -z "$as_dir" && as_dir=. | ||
2457 | 2453 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
2458 | 2454 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
2459 | 2455 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | ||
2460 | 2456 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
2461 | 2457 | break 2 | ||
2462 | 2458 | fi | ||
2463 | 2459 | done | ||
2464 | 2460 | done | ||
2465 | 2461 | IFS=$as_save_IFS | ||
2466 | 2462 | |||
2467 | 2463 | fi | ||
2468 | 2464 | fi | ||
2469 | 2465 | CC=$ac_cv_prog_CC | ||
2470 | 2466 | if test -n "$CC"; then | ||
2471 | 2467 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | ||
2472 | 2468 | $as_echo "$CC" >&6; } | ||
2473 | 2469 | else | ||
2474 | 2470 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
2475 | 2471 | $as_echo "no" >&6; } | ||
2476 | 2472 | fi | ||
2477 | 2473 | |||
2478 | 2474 | |||
2479 | 2475 | test -n "$CC" && break | ||
2480 | 2476 | done | ||
2481 | 2477 | fi | ||
2482 | 2478 | if test -z "$CC"; then | ||
2483 | 2479 | ac_ct_CC=$CC | ||
2484 | 2480 | for ac_prog in cl.exe | ||
2485 | 2481 | do | ||
2486 | 2482 | # Extract the first word of "$ac_prog", so it can be a program name with args. | ||
2487 | 2483 | set dummy $ac_prog; ac_word=$2 | ||
2488 | 2484 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
2489 | 2485 | $as_echo_n "checking for $ac_word... " >&6; } | ||
2490 | 2486 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : | ||
2491 | 2487 | $as_echo_n "(cached) " >&6 | ||
2492 | 2488 | else | ||
2493 | 2489 | if test -n "$ac_ct_CC"; then | ||
2494 | 2490 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | ||
2495 | 2491 | else | ||
2496 | 2492 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
2497 | 2493 | for as_dir in $PATH | ||
2498 | 2494 | do | ||
2499 | 2495 | IFS=$as_save_IFS | ||
2500 | 2496 | test -z "$as_dir" && as_dir=. | ||
2501 | 2497 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
2502 | 2498 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
2503 | 2499 | ac_cv_prog_ac_ct_CC="$ac_prog" | ||
2504 | 2500 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
2505 | 2501 | break 2 | ||
2506 | 2502 | fi | ||
2507 | 2503 | done | ||
2508 | 2504 | done | ||
2509 | 2505 | IFS=$as_save_IFS | ||
2510 | 2506 | |||
2511 | 2507 | fi | ||
2512 | 2508 | fi | ||
2513 | 2509 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | ||
2514 | 2510 | if test -n "$ac_ct_CC"; then | ||
2515 | 2511 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | ||
2516 | 2512 | $as_echo "$ac_ct_CC" >&6; } | ||
2517 | 2513 | else | ||
2518 | 2514 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
2519 | 2515 | $as_echo "no" >&6; } | ||
2520 | 2516 | fi | ||
2521 | 2517 | |||
2522 | 2518 | |||
2523 | 2519 | test -n "$ac_ct_CC" && break | ||
2524 | 2520 | done | ||
2525 | 2521 | |||
2526 | 2522 | if test "x$ac_ct_CC" = x; then | ||
2527 | 2523 | CC="" | ||
2528 | 2524 | else | ||
2529 | 2525 | case $cross_compiling:$ac_tool_warned in | ||
2530 | 2526 | yes:) | ||
2531 | 2527 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | ||
2532 | 2528 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||
2533 | 2529 | ac_tool_warned=yes ;; | ||
2534 | 2530 | esac | ||
2535 | 2531 | CC=$ac_ct_CC | ||
2536 | 2532 | fi | ||
2537 | 2533 | fi | ||
2538 | 2534 | |||
2539 | 2535 | fi | ||
2540 | 2536 | |||
2541 | 2537 | |||
2542 | 2538 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||
2543 | 2539 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||
2544 | 2540 | as_fn_error "no acceptable C compiler found in \$PATH | ||
2545 | 2541 | See \`config.log' for more details." "$LINENO" 5; } | ||
2546 | 2542 | |||
2547 | 2543 | # Provide some information about the compiler. | ||
2548 | 2544 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 | ||
2549 | 2545 | set X $ac_compile | ||
2550 | 2546 | ac_compiler=$2 | ||
2551 | 2547 | for ac_option in --version -v -V -qversion; do | ||
2552 | 2548 | { { ac_try="$ac_compiler $ac_option >&5" | ||
2553 | 2549 | case "(($ac_try" in | ||
2554 | 2550 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
2555 | 2551 | *) ac_try_echo=$ac_try;; | ||
2556 | 2552 | esac | ||
2557 | 2553 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||
2558 | 2554 | $as_echo "$ac_try_echo"; } >&5 | ||
2559 | 2555 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | ||
2560 | 2556 | ac_status=$? | ||
2561 | 2557 | if test -s conftest.err; then | ||
2562 | 2558 | sed '10a\ | ||
2563 | 2559 | ... rest of stderr output deleted ... | ||
2564 | 2560 | 10q' conftest.err >conftest.er1 | ||
2565 | 2561 | cat conftest.er1 >&5 | ||
2566 | 2562 | fi | ||
2567 | 2563 | rm -f conftest.er1 conftest.err | ||
2568 | 2564 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
2569 | 2565 | test $ac_status = 0; } | ||
2570 | 2566 | done | ||
2571 | 2567 | |||
2572 | 2568 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
2573 | 2569 | /* end confdefs.h. */ | ||
2574 | 2570 | |||
2575 | 2571 | int | ||
2576 | 2572 | main () | ||
2577 | 2573 | { | ||
2578 | 2574 | |||
2579 | 2575 | ; | ||
2580 | 2576 | return 0; | ||
2581 | 2577 | } | ||
2582 | 2578 | _ACEOF | ||
2583 | 2579 | ac_clean_files_save=$ac_clean_files | ||
2584 | 2580 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" | ||
2585 | 2581 | # Try to create an executable without -o first, disregard a.out. | ||
2586 | 2582 | # It will help us diagnose broken compilers, and finding out an intuition | ||
2587 | 2583 | # of exeext. | ||
2588 | 2584 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 | ||
2589 | 2585 | $as_echo_n "checking whether the C compiler works... " >&6; } | ||
2590 | 2586 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | ||
2591 | 2587 | |||
2592 | 2588 | # The possible output files: | ||
2593 | 2589 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | ||
2594 | 2590 | |||
2595 | 2591 | ac_rmfiles= | ||
2596 | 2592 | for ac_file in $ac_files | ||
2597 | 2593 | do | ||
2598 | 2594 | case $ac_file in | ||
2599 | 2595 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | ||
2600 | 2596 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; | ||
2601 | 2597 | esac | ||
2602 | 2598 | done | ||
2603 | 2599 | rm -f $ac_rmfiles | ||
2604 | 2600 | |||
2605 | 2601 | if { { ac_try="$ac_link_default" | ||
2606 | 2602 | case "(($ac_try" in | ||
2607 | 2603 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
2608 | 2604 | *) ac_try_echo=$ac_try;; | ||
2609 | 2605 | esac | ||
2610 | 2606 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||
2611 | 2607 | $as_echo "$ac_try_echo"; } >&5 | ||
2612 | 2608 | (eval "$ac_link_default") 2>&5 | ||
2613 | 2609 | ac_status=$? | ||
2614 | 2610 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
2615 | 2611 | test $ac_status = 0; }; then : | ||
2616 | 2612 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. | ||
2617 | 2613 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | ||
2618 | 2614 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | ||
2619 | 2615 | # so that the user can short-circuit this test for compilers unknown to | ||
2620 | 2616 | # Autoconf. | ||
2621 | 2617 | for ac_file in $ac_files '' | ||
2622 | 2618 | do | ||
2623 | 2619 | test -f "$ac_file" || continue | ||
2624 | 2620 | case $ac_file in | ||
2625 | 2621 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) | ||
2626 | 2622 | ;; | ||
2627 | 2623 | [ab].out ) | ||
2628 | 2624 | # We found the default executable, but exeext='' is most | ||
2629 | 2625 | # certainly right. | ||
2630 | 2626 | break;; | ||
2631 | 2627 | *.* ) | ||
2632 | 2628 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; | ||
2633 | 2629 | then :; else | ||
2634 | 2630 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | ||
2635 | 2631 | fi | ||
2636 | 2632 | # We set ac_cv_exeext here because the later test for it is not | ||
2637 | 2633 | # safe: cross compilers may not add the suffix if given an `-o' | ||
2638 | 2634 | # argument, so we may need to know it at that point already. | ||
2639 | 2635 | # Even if this section looks crufty: it has the advantage of | ||
2640 | 2636 | # actually working. | ||
2641 | 2637 | break;; | ||
2642 | 2638 | * ) | ||
2643 | 2639 | break;; | ||
2644 | 2640 | esac | ||
2645 | 2641 | done | ||
2646 | 2642 | test "$ac_cv_exeext" = no && ac_cv_exeext= | ||
2647 | 2643 | |||
2648 | 2644 | else | ||
2649 | 2645 | ac_file='' | ||
2650 | 2646 | fi | ||
2651 | 2647 | if test -z "$ac_file"; then : | ||
2652 | 2648 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
2653 | 2649 | $as_echo "no" >&6; } | ||
2654 | 2650 | $as_echo "$as_me: failed program was:" >&5 | ||
2655 | 2651 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
2656 | 2652 | |||
2657 | 2653 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||
2658 | 2654 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||
2659 | 2655 | { as_fn_set_status 77 | ||
2660 | 2656 | as_fn_error "C compiler cannot create executables | ||
2661 | 2657 | See \`config.log' for more details." "$LINENO" 5; }; } | ||
2662 | 2658 | else | ||
2663 | 2659 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | ||
2664 | 2660 | $as_echo "yes" >&6; } | ||
2665 | 2661 | fi | ||
2666 | 2662 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 | ||
2667 | 2663 | $as_echo_n "checking for C compiler default output file name... " >&6; } | ||
2668 | 2664 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 | ||
2669 | 2665 | $as_echo "$ac_file" >&6; } | ||
2670 | 2666 | ac_exeext=$ac_cv_exeext | ||
2671 | 2667 | |||
2672 | 2668 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out | ||
2673 | 2669 | ac_clean_files=$ac_clean_files_save | ||
2674 | 2670 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 | ||
2675 | 2671 | $as_echo_n "checking for suffix of executables... " >&6; } | ||
2676 | 2672 | if { { ac_try="$ac_link" | ||
2677 | 2673 | case "(($ac_try" in | ||
2678 | 2674 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
2679 | 2675 | *) ac_try_echo=$ac_try;; | ||
2680 | 2676 | esac | ||
2681 | 2677 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||
2682 | 2678 | $as_echo "$ac_try_echo"; } >&5 | ||
2683 | 2679 | (eval "$ac_link") 2>&5 | ||
2684 | 2680 | ac_status=$? | ||
2685 | 2681 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
2686 | 2682 | test $ac_status = 0; }; then : | ||
2687 | 2683 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | ||
2688 | 2684 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | ||
2689 | 2685 | # work properly (i.e., refer to `conftest.exe'), while it won't with | ||
2690 | 2686 | # `rm'. | ||
2691 | 2687 | for ac_file in conftest.exe conftest conftest.*; do | ||
2692 | 2688 | test -f "$ac_file" || continue | ||
2693 | 2689 | case $ac_file in | ||
2694 | 2690 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | ||
2695 | 2691 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | ||
2696 | 2692 | break;; | ||
2697 | 2693 | * ) break;; | ||
2698 | 2694 | esac | ||
2699 | 2695 | done | ||
2700 | 2696 | else | ||
2701 | 2697 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||
2702 | 2698 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||
2703 | 2699 | as_fn_error "cannot compute suffix of executables: cannot compile and link | ||
2704 | 2700 | See \`config.log' for more details." "$LINENO" 5; } | ||
2705 | 2701 | fi | ||
2706 | 2702 | rm -f conftest conftest$ac_cv_exeext | ||
2707 | 2703 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 | ||
2708 | 2704 | $as_echo "$ac_cv_exeext" >&6; } | ||
2709 | 2705 | |||
2710 | 2706 | rm -f conftest.$ac_ext | ||
2711 | 2707 | EXEEXT=$ac_cv_exeext | ||
2712 | 2708 | ac_exeext=$EXEEXT | ||
2713 | 2709 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
2714 | 2710 | /* end confdefs.h. */ | ||
2715 | 2711 | #include <stdio.h> | ||
2716 | 2712 | int | ||
2717 | 2713 | main () | ||
2718 | 2714 | { | ||
2719 | 2715 | FILE *f = fopen ("conftest.out", "w"); | ||
2720 | 2716 | return ferror (f) || fclose (f) != 0; | ||
2721 | 2717 | |||
2722 | 2718 | ; | ||
2723 | 2719 | return 0; | ||
2724 | 2720 | } | ||
2725 | 2721 | _ACEOF | ||
2726 | 2722 | ac_clean_files="$ac_clean_files conftest.out" | ||
2727 | 2723 | # Check that the compiler produces executables we can run. If not, either | ||
2728 | 2724 | # the compiler is broken, or we cross compile. | ||
2729 | 2725 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 | ||
2730 | 2726 | $as_echo_n "checking whether we are cross compiling... " >&6; } | ||
2731 | 2727 | if test "$cross_compiling" != yes; then | ||
2732 | 2728 | { { ac_try="$ac_link" | ||
2733 | 2729 | case "(($ac_try" in | ||
2734 | 2730 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
2735 | 2731 | *) ac_try_echo=$ac_try;; | ||
2736 | 2732 | esac | ||
2737 | 2733 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||
2738 | 2734 | $as_echo "$ac_try_echo"; } >&5 | ||
2739 | 2735 | (eval "$ac_link") 2>&5 | ||
2740 | 2736 | ac_status=$? | ||
2741 | 2737 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
2742 | 2738 | test $ac_status = 0; } | ||
2743 | 2739 | if { ac_try='./conftest$ac_cv_exeext' | ||
2744 | 2740 | { { case "(($ac_try" in | ||
2745 | 2741 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
2746 | 2742 | *) ac_try_echo=$ac_try;; | ||
2747 | 2743 | esac | ||
2748 | 2744 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||
2749 | 2745 | $as_echo "$ac_try_echo"; } >&5 | ||
2750 | 2746 | (eval "$ac_try") 2>&5 | ||
2751 | 2747 | ac_status=$? | ||
2752 | 2748 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
2753 | 2749 | test $ac_status = 0; }; }; then | ||
2754 | 2750 | cross_compiling=no | ||
2755 | 2751 | else | ||
2756 | 2752 | if test "$cross_compiling" = maybe; then | ||
2757 | 2753 | cross_compiling=yes | ||
2758 | 2754 | else | ||
2759 | 2755 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||
2760 | 2756 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||
2761 | 2757 | as_fn_error "cannot run C compiled programs. | ||
2762 | 2758 | If you meant to cross compile, use \`--host'. | ||
2763 | 2759 | See \`config.log' for more details." "$LINENO" 5; } | ||
2764 | 2760 | fi | ||
2765 | 2761 | fi | ||
2766 | 2762 | fi | ||
2767 | 2763 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 | ||
2768 | 2764 | $as_echo "$cross_compiling" >&6; } | ||
2769 | 2765 | |||
2770 | 2766 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out | ||
2771 | 2767 | ac_clean_files=$ac_clean_files_save | ||
2772 | 2768 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 | ||
2773 | 2769 | $as_echo_n "checking for suffix of object files... " >&6; } | ||
2774 | 2770 | if test "${ac_cv_objext+set}" = set; then : | ||
2775 | 2771 | $as_echo_n "(cached) " >&6 | ||
2776 | 2772 | else | ||
2777 | 2773 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
2778 | 2774 | /* end confdefs.h. */ | ||
2779 | 2775 | |||
2780 | 2776 | int | ||
2781 | 2777 | main () | ||
2782 | 2778 | { | ||
2783 | 2779 | |||
2784 | 2780 | ; | ||
2785 | 2781 | return 0; | ||
2786 | 2782 | } | ||
2787 | 2783 | _ACEOF | ||
2788 | 2784 | rm -f conftest.o conftest.obj | ||
2789 | 2785 | if { { ac_try="$ac_compile" | ||
2790 | 2786 | case "(($ac_try" in | ||
2791 | 2787 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
2792 | 2788 | *) ac_try_echo=$ac_try;; | ||
2793 | 2789 | esac | ||
2794 | 2790 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||
2795 | 2791 | $as_echo "$ac_try_echo"; } >&5 | ||
2796 | 2792 | (eval "$ac_compile") 2>&5 | ||
2797 | 2793 | ac_status=$? | ||
2798 | 2794 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
2799 | 2795 | test $ac_status = 0; }; then : | ||
2800 | 2796 | for ac_file in conftest.o conftest.obj conftest.*; do | ||
2801 | 2797 | test -f "$ac_file" || continue; | ||
2802 | 2798 | case $ac_file in | ||
2803 | 2799 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; | ||
2804 | 2800 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | ||
2805 | 2801 | break;; | ||
2806 | 2802 | esac | ||
2807 | 2803 | done | ||
2808 | 2804 | else | ||
2809 | 2805 | $as_echo "$as_me: failed program was:" >&5 | ||
2810 | 2806 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
2811 | 2807 | |||
2812 | 2808 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||
2813 | 2809 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||
2814 | 2810 | as_fn_error "cannot compute suffix of object files: cannot compile | ||
2815 | 2811 | See \`config.log' for more details." "$LINENO" 5; } | ||
2816 | 2812 | fi | ||
2817 | 2813 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | ||
2818 | 2814 | fi | ||
2819 | 2815 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 | ||
2820 | 2816 | $as_echo "$ac_cv_objext" >&6; } | ||
2821 | 2817 | OBJEXT=$ac_cv_objext | ||
2822 | 2818 | ac_objext=$OBJEXT | ||
2823 | 2819 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 | ||
2824 | 2820 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | ||
2825 | 2821 | if test "${ac_cv_c_compiler_gnu+set}" = set; then : | ||
2826 | 2822 | $as_echo_n "(cached) " >&6 | ||
2827 | 2823 | else | ||
2828 | 2824 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
2829 | 2825 | /* end confdefs.h. */ | ||
2830 | 2826 | |||
2831 | 2827 | int | ||
2832 | 2828 | main () | ||
2833 | 2829 | { | ||
2834 | 2830 | #ifndef __GNUC__ | ||
2835 | 2831 | choke me | ||
2836 | 2832 | #endif | ||
2837 | 2833 | |||
2838 | 2834 | ; | ||
2839 | 2835 | return 0; | ||
2840 | 2836 | } | ||
2841 | 2837 | _ACEOF | ||
2842 | 2838 | if ac_fn_c_try_compile "$LINENO"; then : | ||
2843 | 2839 | ac_compiler_gnu=yes | ||
2844 | 2840 | else | ||
2845 | 2841 | ac_compiler_gnu=no | ||
2846 | 2842 | fi | ||
2847 | 2843 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
2848 | 2844 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | ||
2849 | 2845 | |||
2850 | 2846 | fi | ||
2851 | 2847 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 | ||
2852 | 2848 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | ||
2853 | 2849 | if test $ac_compiler_gnu = yes; then | ||
2854 | 2850 | GCC=yes | ||
2855 | 2851 | else | ||
2856 | 2852 | GCC= | ||
2857 | 2853 | fi | ||
2858 | 2854 | ac_test_CFLAGS=${CFLAGS+set} | ||
2859 | 2855 | ac_save_CFLAGS=$CFLAGS | ||
2860 | 2856 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 | ||
2861 | 2857 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | ||
2862 | 2858 | if test "${ac_cv_prog_cc_g+set}" = set; then : | ||
2863 | 2859 | $as_echo_n "(cached) " >&6 | ||
2864 | 2860 | else | ||
2865 | 2861 | ac_save_c_werror_flag=$ac_c_werror_flag | ||
2866 | 2862 | ac_c_werror_flag=yes | ||
2867 | 2863 | ac_cv_prog_cc_g=no | ||
2868 | 2864 | CFLAGS="-g" | ||
2869 | 2865 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
2870 | 2866 | /* end confdefs.h. */ | ||
2871 | 2867 | |||
2872 | 2868 | int | ||
2873 | 2869 | main () | ||
2874 | 2870 | { | ||
2875 | 2871 | |||
2876 | 2872 | ; | ||
2877 | 2873 | return 0; | ||
2878 | 2874 | } | ||
2879 | 2875 | _ACEOF | ||
2880 | 2876 | if ac_fn_c_try_compile "$LINENO"; then : | ||
2881 | 2877 | ac_cv_prog_cc_g=yes | ||
2882 | 2878 | else | ||
2883 | 2879 | CFLAGS="" | ||
2884 | 2880 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
2885 | 2881 | /* end confdefs.h. */ | ||
2886 | 2882 | |||
2887 | 2883 | int | ||
2888 | 2884 | main () | ||
2889 | 2885 | { | ||
2890 | 2886 | |||
2891 | 2887 | ; | ||
2892 | 2888 | return 0; | ||
2893 | 2889 | } | ||
2894 | 2890 | _ACEOF | ||
2895 | 2891 | if ac_fn_c_try_compile "$LINENO"; then : | ||
2896 | 2892 | |||
2897 | 2893 | else | ||
2898 | 2894 | ac_c_werror_flag=$ac_save_c_werror_flag | ||
2899 | 2895 | CFLAGS="-g" | ||
2900 | 2896 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
2901 | 2897 | /* end confdefs.h. */ | ||
2902 | 2898 | |||
2903 | 2899 | int | ||
2904 | 2900 | main () | ||
2905 | 2901 | { | ||
2906 | 2902 | |||
2907 | 2903 | ; | ||
2908 | 2904 | return 0; | ||
2909 | 2905 | } | ||
2910 | 2906 | _ACEOF | ||
2911 | 2907 | if ac_fn_c_try_compile "$LINENO"; then : | ||
2912 | 2908 | ac_cv_prog_cc_g=yes | ||
2913 | 2909 | fi | ||
2914 | 2910 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
2915 | 2911 | fi | ||
2916 | 2912 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
2917 | 2913 | fi | ||
2918 | 2914 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
2919 | 2915 | ac_c_werror_flag=$ac_save_c_werror_flag | ||
2920 | 2916 | fi | ||
2921 | 2917 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 | ||
2922 | 2918 | $as_echo "$ac_cv_prog_cc_g" >&6; } | ||
2923 | 2919 | if test "$ac_test_CFLAGS" = set; then | ||
2924 | 2920 | CFLAGS=$ac_save_CFLAGS | ||
2925 | 2921 | elif test $ac_cv_prog_cc_g = yes; then | ||
2926 | 2922 | if test "$GCC" = yes; then | ||
2927 | 2923 | CFLAGS="-g -O2" | ||
2928 | 2924 | else | ||
2929 | 2925 | CFLAGS="-g" | ||
2930 | 2926 | fi | ||
2931 | 2927 | else | ||
2932 | 2928 | if test "$GCC" = yes; then | ||
2933 | 2929 | CFLAGS="-O2" | ||
2934 | 2930 | else | ||
2935 | 2931 | CFLAGS= | ||
2936 | 2932 | fi | ||
2937 | 2933 | fi | ||
2938 | 2934 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 | ||
2939 | 2935 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | ||
2940 | 2936 | if test "${ac_cv_prog_cc_c89+set}" = set; then : | ||
2941 | 2937 | $as_echo_n "(cached) " >&6 | ||
2942 | 2938 | else | ||
2943 | 2939 | ac_cv_prog_cc_c89=no | ||
2944 | 2940 | ac_save_CC=$CC | ||
2945 | 2941 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
2946 | 2942 | /* end confdefs.h. */ | ||
2947 | 2943 | #include <stdarg.h> | ||
2948 | 2944 | #include <stdio.h> | ||
2949 | 2945 | #include <sys/types.h> | ||
2950 | 2946 | #include <sys/stat.h> | ||
2951 | 2947 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | ||
2952 | 2948 | struct buf { int x; }; | ||
2953 | 2949 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | ||
2954 | 2950 | static char *e (p, i) | ||
2955 | 2951 | char **p; | ||
2956 | 2952 | int i; | ||
2957 | 2953 | { | ||
2958 | 2954 | return p[i]; | ||
2959 | 2955 | } | ||
2960 | 2956 | static char *f (char * (*g) (char **, int), char **p, ...) | ||
2961 | 2957 | { | ||
2962 | 2958 | char *s; | ||
2963 | 2959 | va_list v; | ||
2964 | 2960 | va_start (v,p); | ||
2965 | 2961 | s = g (p, va_arg (v,int)); | ||
2966 | 2962 | va_end (v); | ||
2967 | 2963 | return s; | ||
2968 | 2964 | } | ||
2969 | 2965 | |||
2970 | 2966 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | ||
2971 | 2967 | function prototypes and stuff, but not '\xHH' hex character constants. | ||
2972 | 2968 | These don't provoke an error unfortunately, instead are silently treated | ||
2973 | 2969 | as 'x'. The following induces an error, until -std is added to get | ||
2974 | 2970 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | ||
2975 | 2971 | array size at least. It's necessary to write '\x00'==0 to get something | ||
2976 | 2972 | that's true only with -std. */ | ||
2977 | 2973 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | ||
2978 | 2974 | |||
2979 | 2975 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters | ||
2980 | 2976 | inside strings and character constants. */ | ||
2981 | 2977 | #define FOO(x) 'x' | ||
2982 | 2978 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | ||
2983 | 2979 | |||
2984 | 2980 | int test (int i, double x); | ||
2985 | 2981 | struct s1 {int (*f) (int a);}; | ||
2986 | 2982 | struct s2 {int (*f) (double a);}; | ||
2987 | 2983 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | ||
2988 | 2984 | int argc; | ||
2989 | 2985 | char **argv; | ||
2990 | 2986 | int | ||
2991 | 2987 | main () | ||
2992 | 2988 | { | ||
2993 | 2989 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | ||
2994 | 2990 | ; | ||
2995 | 2991 | return 0; | ||
2996 | 2992 | } | ||
2997 | 2993 | _ACEOF | ||
2998 | 2994 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ | ||
2999 | 2995 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | ||
3000 | 2996 | do | ||
3001 | 2997 | CC="$ac_save_CC $ac_arg" | ||
3002 | 2998 | if ac_fn_c_try_compile "$LINENO"; then : | ||
3003 | 2999 | ac_cv_prog_cc_c89=$ac_arg | ||
3004 | 3000 | fi | ||
3005 | 3001 | rm -f core conftest.err conftest.$ac_objext | ||
3006 | 3002 | test "x$ac_cv_prog_cc_c89" != "xno" && break | ||
3007 | 3003 | done | ||
3008 | 3004 | rm -f conftest.$ac_ext | ||
3009 | 3005 | CC=$ac_save_CC | ||
3010 | 3006 | |||
3011 | 3007 | fi | ||
3012 | 3008 | # AC_CACHE_VAL | ||
3013 | 3009 | case "x$ac_cv_prog_cc_c89" in | ||
3014 | 3010 | x) | ||
3015 | 3011 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | ||
3016 | 3012 | $as_echo "none needed" >&6; } ;; | ||
3017 | 3013 | xno) | ||
3018 | 3014 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | ||
3019 | 3015 | $as_echo "unsupported" >&6; } ;; | ||
3020 | 3016 | *) | ||
3021 | 3017 | CC="$CC $ac_cv_prog_cc_c89" | ||
3022 | 3018 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | ||
3023 | 3019 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | ||
3024 | 3020 | esac | ||
3025 | 3021 | if test "x$ac_cv_prog_cc_c89" != xno; then : | ||
3026 | 3022 | |||
3027 | 3023 | fi | ||
3028 | 3024 | |||
3029 | 3025 | ac_ext=c | ||
3030 | 3026 | ac_cpp='$CPP $CPPFLAGS' | ||
3031 | 3027 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
3032 | 3028 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
3033 | 3029 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
3034 | 3030 | |||
3035 | 3031 | |||
3036 | 3032 | if test "${build}" != "${host}" ; then | ||
3037 | 3033 | for ac_prog in ${build_alias}-gcc ${build}-gcc gcc | ||
3038 | 3034 | do | ||
3039 | 3035 | # Extract the first word of "$ac_prog", so it can be a program name with args. | ||
3040 | 3036 | set dummy $ac_prog; ac_word=$2 | ||
3041 | 3037 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
3042 | 3038 | $as_echo_n "checking for $ac_word... " >&6; } | ||
3043 | 3039 | if test "${ac_cv_prog_BUILD_CC+set}" = set; then : | ||
3044 | 3040 | $as_echo_n "(cached) " >&6 | ||
3045 | 3041 | else | ||
3046 | 3042 | if test -n "$BUILD_CC"; then | ||
3047 | 3043 | ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test. | ||
3048 | 3044 | else | ||
3049 | 3045 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
3050 | 3046 | for as_dir in $PATH | ||
3051 | 3047 | do | ||
3052 | 3048 | IFS=$as_save_IFS | ||
3053 | 3049 | test -z "$as_dir" && as_dir=. | ||
3054 | 3050 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
3055 | 3051 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
3056 | 3052 | ac_cv_prog_BUILD_CC="$ac_prog" | ||
3057 | 3053 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
3058 | 3054 | break 2 | ||
3059 | 3055 | fi | ||
3060 | 3056 | done | ||
3061 | 3057 | done | ||
3062 | 3058 | IFS=$as_save_IFS | ||
3063 | 3059 | |||
3064 | 3060 | fi | ||
3065 | 3061 | fi | ||
3066 | 3062 | BUILD_CC=$ac_cv_prog_BUILD_CC | ||
3067 | 3063 | if test -n "$BUILD_CC"; then | ||
3068 | 3064 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5 | ||
3069 | 3065 | $as_echo "$BUILD_CC" >&6; } | ||
3070 | 3066 | else | ||
3071 | 3067 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
3072 | 3068 | $as_echo "no" >&6; } | ||
3073 | 3069 | fi | ||
3074 | 3070 | |||
3075 | 3071 | |||
3076 | 3072 | test -n "$BUILD_CC" && break | ||
3077 | 3073 | done | ||
3078 | 3074 | |||
3079 | 3075 | else | ||
3080 | 3076 | BUILD_CC="$CC" | ||
3081 | 3077 | fi | ||
3082 | 3078 | |||
3083 | 3079 | ac_ext=c | ||
3084 | 3080 | ac_cpp='$CPP $CPPFLAGS' | ||
3085 | 3081 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
3086 | 3082 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
3087 | 3083 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
3088 | 3084 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 | ||
3089 | 3085 | $as_echo_n "checking how to run the C preprocessor... " >&6; } | ||
3090 | 3086 | # On Suns, sometimes $CPP names a directory. | ||
3091 | 3087 | if test -n "$CPP" && test -d "$CPP"; then | ||
3092 | 3088 | CPP= | ||
3093 | 3089 | fi | ||
3094 | 3090 | if test -z "$CPP"; then | ||
3095 | 3091 | if test "${ac_cv_prog_CPP+set}" = set; then : | ||
3096 | 3092 | $as_echo_n "(cached) " >&6 | ||
3097 | 3093 | else | ||
3098 | 3094 | # Double quotes because CPP needs to be expanded | ||
3099 | 3095 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | ||
3100 | 3096 | do | ||
3101 | 3097 | ac_preproc_ok=false | ||
3102 | 3098 | for ac_c_preproc_warn_flag in '' yes | ||
3103 | 3099 | do | ||
3104 | 3100 | # Use a header file that comes with gcc, so configuring glibc | ||
3105 | 3101 | # with a fresh cross-compiler works. | ||
3106 | 3102 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
3107 | 3103 | # <limits.h> exists even on freestanding compilers. | ||
3108 | 3104 | # On the NeXT, cc -E runs the code through the compiler's parser, | ||
3109 | 3105 | # not just through cpp. "Syntax error" is here to catch this case. | ||
3110 | 3106 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
3111 | 3107 | /* end confdefs.h. */ | ||
3112 | 3108 | #ifdef __STDC__ | ||
3113 | 3109 | # include <limits.h> | ||
3114 | 3110 | #else | ||
3115 | 3111 | # include <assert.h> | ||
3116 | 3112 | #endif | ||
3117 | 3113 | Syntax error | ||
3118 | 3114 | _ACEOF | ||
3119 | 3115 | if ac_fn_c_try_cpp "$LINENO"; then : | ||
3120 | 3116 | |||
3121 | 3117 | else | ||
3122 | 3118 | # Broken: fails on valid input. | ||
3123 | 3119 | continue | ||
3124 | 3120 | fi | ||
3125 | 3121 | rm -f conftest.err conftest.$ac_ext | ||
3126 | 3122 | |||
3127 | 3123 | # OK, works on sane cases. Now check whether nonexistent headers | ||
3128 | 3124 | # can be detected and how. | ||
3129 | 3125 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
3130 | 3126 | /* end confdefs.h. */ | ||
3131 | 3127 | #include <ac_nonexistent.h> | ||
3132 | 3128 | _ACEOF | ||
3133 | 3129 | if ac_fn_c_try_cpp "$LINENO"; then : | ||
3134 | 3130 | # Broken: success on invalid input. | ||
3135 | 3131 | continue | ||
3136 | 3132 | else | ||
3137 | 3133 | # Passes both tests. | ||
3138 | 3134 | ac_preproc_ok=: | ||
3139 | 3135 | break | ||
3140 | 3136 | fi | ||
3141 | 3137 | rm -f conftest.err conftest.$ac_ext | ||
3142 | 3138 | |||
3143 | 3139 | done | ||
3144 | 3140 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | ||
3145 | 3141 | rm -f conftest.err conftest.$ac_ext | ||
3146 | 3142 | if $ac_preproc_ok; then : | ||
3147 | 3143 | break | ||
3148 | 3144 | fi | ||
3149 | 3145 | |||
3150 | 3146 | done | ||
3151 | 3147 | ac_cv_prog_CPP=$CPP | ||
3152 | 3148 | |||
3153 | 3149 | fi | ||
3154 | 3150 | CPP=$ac_cv_prog_CPP | ||
3155 | 3151 | else | ||
3156 | 3152 | ac_cv_prog_CPP=$CPP | ||
3157 | 3153 | fi | ||
3158 | 3154 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 | ||
3159 | 3155 | $as_echo "$CPP" >&6; } | ||
3160 | 3156 | ac_preproc_ok=false | ||
3161 | 3157 | for ac_c_preproc_warn_flag in '' yes | ||
3162 | 3158 | do | ||
3163 | 3159 | # Use a header file that comes with gcc, so configuring glibc | ||
3164 | 3160 | # with a fresh cross-compiler works. | ||
3165 | 3161 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
3166 | 3162 | # <limits.h> exists even on freestanding compilers. | ||
3167 | 3163 | # On the NeXT, cc -E runs the code through the compiler's parser, | ||
3168 | 3164 | # not just through cpp. "Syntax error" is here to catch this case. | ||
3169 | 3165 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
3170 | 3166 | /* end confdefs.h. */ | ||
3171 | 3167 | #ifdef __STDC__ | ||
3172 | 3168 | # include <limits.h> | ||
3173 | 3169 | #else | ||
3174 | 3170 | # include <assert.h> | ||
3175 | 3171 | #endif | ||
3176 | 3172 | Syntax error | ||
3177 | 3173 | _ACEOF | ||
3178 | 3174 | if ac_fn_c_try_cpp "$LINENO"; then : | ||
3179 | 3175 | |||
3180 | 3176 | else | ||
3181 | 3177 | # Broken: fails on valid input. | ||
3182 | 3178 | continue | ||
3183 | 3179 | fi | ||
3184 | 3180 | rm -f conftest.err conftest.$ac_ext | ||
3185 | 3181 | |||
3186 | 3182 | # OK, works on sane cases. Now check whether nonexistent headers | ||
3187 | 3183 | # can be detected and how. | ||
3188 | 3184 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
3189 | 3185 | /* end confdefs.h. */ | ||
3190 | 3186 | #include <ac_nonexistent.h> | ||
3191 | 3187 | _ACEOF | ||
3192 | 3188 | if ac_fn_c_try_cpp "$LINENO"; then : | ||
3193 | 3189 | # Broken: success on invalid input. | ||
3194 | 3190 | continue | ||
3195 | 3191 | else | ||
3196 | 3192 | # Passes both tests. | ||
3197 | 3193 | ac_preproc_ok=: | ||
3198 | 3194 | break | ||
3199 | 3195 | fi | ||
3200 | 3196 | rm -f conftest.err conftest.$ac_ext | ||
3201 | 3197 | |||
3202 | 3198 | done | ||
3203 | 3199 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | ||
3204 | 3200 | rm -f conftest.err conftest.$ac_ext | ||
3205 | 3201 | if $ac_preproc_ok; then : | ||
3206 | 3202 | |||
3207 | 3203 | else | ||
3208 | 3204 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | ||
3209 | 3205 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||
3210 | 3206 | as_fn_error "C preprocessor \"$CPP\" fails sanity check | ||
3211 | 3207 | See \`config.log' for more details." "$LINENO" 5; } | ||
3212 | 3208 | fi | ||
3213 | 3209 | |||
3214 | 3210 | ac_ext=c | ||
3215 | 3211 | ac_cpp='$CPP $CPPFLAGS' | ||
3216 | 3212 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
3217 | 3213 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
3218 | 3214 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
3219 | 3215 | |||
3220 | 3216 | if test -n "$ac_tool_prefix"; then | ||
3221 | 3217 | # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args. | ||
3222 | 3218 | set dummy ${ac_tool_prefix}ld; ac_word=$2 | ||
3223 | 3219 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
3224 | 3220 | $as_echo_n "checking for $ac_word... " >&6; } | ||
3225 | 3221 | if test "${ac_cv_prog_LD+set}" = set; then : | ||
3226 | 3222 | $as_echo_n "(cached) " >&6 | ||
3227 | 3223 | else | ||
3228 | 3224 | if test -n "$LD"; then | ||
3229 | 3225 | ac_cv_prog_LD="$LD" # Let the user override the test. | ||
3230 | 3226 | else | ||
3231 | 3227 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
3232 | 3228 | for as_dir in $PATH | ||
3233 | 3229 | do | ||
3234 | 3230 | IFS=$as_save_IFS | ||
3235 | 3231 | test -z "$as_dir" && as_dir=. | ||
3236 | 3232 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
3237 | 3233 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
3238 | 3234 | ac_cv_prog_LD="${ac_tool_prefix}ld" | ||
3239 | 3235 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
3240 | 3236 | break 2 | ||
3241 | 3237 | fi | ||
3242 | 3238 | done | ||
3243 | 3239 | done | ||
3244 | 3240 | IFS=$as_save_IFS | ||
3245 | 3241 | |||
3246 | 3242 | fi | ||
3247 | 3243 | fi | ||
3248 | 3244 | LD=$ac_cv_prog_LD | ||
3249 | 3245 | if test -n "$LD"; then | ||
3250 | 3246 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 | ||
3251 | 3247 | $as_echo "$LD" >&6; } | ||
3252 | 3248 | else | ||
3253 | 3249 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
3254 | 3250 | $as_echo "no" >&6; } | ||
3255 | 3251 | fi | ||
3256 | 3252 | |||
3257 | 3253 | |||
3258 | 3254 | fi | ||
3259 | 3255 | if test -z "$ac_cv_prog_LD"; then | ||
3260 | 3256 | ac_ct_LD=$LD | ||
3261 | 3257 | # Extract the first word of "ld", so it can be a program name with args. | ||
3262 | 3258 | set dummy ld; ac_word=$2 | ||
3263 | 3259 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
3264 | 3260 | $as_echo_n "checking for $ac_word... " >&6; } | ||
3265 | 3261 | if test "${ac_cv_prog_ac_ct_LD+set}" = set; then : | ||
3266 | 3262 | $as_echo_n "(cached) " >&6 | ||
3267 | 3263 | else | ||
3268 | 3264 | if test -n "$ac_ct_LD"; then | ||
3269 | 3265 | ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test. | ||
3270 | 3266 | else | ||
3271 | 3267 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
3272 | 3268 | for as_dir in $PATH | ||
3273 | 3269 | do | ||
3274 | 3270 | IFS=$as_save_IFS | ||
3275 | 3271 | test -z "$as_dir" && as_dir=. | ||
3276 | 3272 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
3277 | 3273 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
3278 | 3274 | ac_cv_prog_ac_ct_LD="ld" | ||
3279 | 3275 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
3280 | 3276 | break 2 | ||
3281 | 3277 | fi | ||
3282 | 3278 | done | ||
3283 | 3279 | done | ||
3284 | 3280 | IFS=$as_save_IFS | ||
3285 | 3281 | |||
3286 | 3282 | fi | ||
3287 | 3283 | fi | ||
3288 | 3284 | ac_ct_LD=$ac_cv_prog_ac_ct_LD | ||
3289 | 3285 | if test -n "$ac_ct_LD"; then | ||
3290 | 3286 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LD" >&5 | ||
3291 | 3287 | $as_echo "$ac_ct_LD" >&6; } | ||
3292 | 3288 | else | ||
3293 | 3289 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
3294 | 3290 | $as_echo "no" >&6; } | ||
3295 | 3291 | fi | ||
3296 | 3292 | |||
3297 | 3293 | if test "x$ac_ct_LD" = x; then | ||
3298 | 3294 | LD=""no"" | ||
3299 | 3295 | else | ||
3300 | 3296 | case $cross_compiling:$ac_tool_warned in | ||
3301 | 3297 | yes:) | ||
3302 | 3298 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | ||
3303 | 3299 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||
3304 | 3300 | ac_tool_warned=yes ;; | ||
3305 | 3301 | esac | ||
3306 | 3302 | LD=$ac_ct_LD | ||
3307 | 3303 | fi | ||
3308 | 3304 | else | ||
3309 | 3305 | LD="$ac_cv_prog_LD" | ||
3310 | 3306 | fi | ||
3311 | 3307 | |||
3312 | 3308 | if test -n "$ac_tool_prefix"; then | ||
3313 | 3309 | # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args. | ||
3314 | 3310 | set dummy ${ac_tool_prefix}as; ac_word=$2 | ||
3315 | 3311 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
3316 | 3312 | $as_echo_n "checking for $ac_word... " >&6; } | ||
3317 | 3313 | if test "${ac_cv_prog_AS+set}" = set; then : | ||
3318 | 3314 | $as_echo_n "(cached) " >&6 | ||
3319 | 3315 | else | ||
3320 | 3316 | if test -n "$AS"; then | ||
3321 | 3317 | ac_cv_prog_AS="$AS" # Let the user override the test. | ||
3322 | 3318 | else | ||
3323 | 3319 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
3324 | 3320 | for as_dir in $PATH | ||
3325 | 3321 | do | ||
3326 | 3322 | IFS=$as_save_IFS | ||
3327 | 3323 | test -z "$as_dir" && as_dir=. | ||
3328 | 3324 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
3329 | 3325 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
3330 | 3326 | ac_cv_prog_AS="${ac_tool_prefix}as" | ||
3331 | 3327 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
3332 | 3328 | break 2 | ||
3333 | 3329 | fi | ||
3334 | 3330 | done | ||
3335 | 3331 | done | ||
3336 | 3332 | IFS=$as_save_IFS | ||
3337 | 3333 | |||
3338 | 3334 | fi | ||
3339 | 3335 | fi | ||
3340 | 3336 | AS=$ac_cv_prog_AS | ||
3341 | 3337 | if test -n "$AS"; then | ||
3342 | 3338 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 | ||
3343 | 3339 | $as_echo "$AS" >&6; } | ||
3344 | 3340 | else | ||
3345 | 3341 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
3346 | 3342 | $as_echo "no" >&6; } | ||
3347 | 3343 | fi | ||
3348 | 3344 | |||
3349 | 3345 | |||
3350 | 3346 | fi | ||
3351 | 3347 | if test -z "$ac_cv_prog_AS"; then | ||
3352 | 3348 | ac_ct_AS=$AS | ||
3353 | 3349 | # Extract the first word of "as", so it can be a program name with args. | ||
3354 | 3350 | set dummy as; ac_word=$2 | ||
3355 | 3351 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
3356 | 3352 | $as_echo_n "checking for $ac_word... " >&6; } | ||
3357 | 3353 | if test "${ac_cv_prog_ac_ct_AS+set}" = set; then : | ||
3358 | 3354 | $as_echo_n "(cached) " >&6 | ||
3359 | 3355 | else | ||
3360 | 3356 | if test -n "$ac_ct_AS"; then | ||
3361 | 3357 | ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test. | ||
3362 | 3358 | else | ||
3363 | 3359 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
3364 | 3360 | for as_dir in $PATH | ||
3365 | 3361 | do | ||
3366 | 3362 | IFS=$as_save_IFS | ||
3367 | 3363 | test -z "$as_dir" && as_dir=. | ||
3368 | 3364 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
3369 | 3365 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
3370 | 3366 | ac_cv_prog_ac_ct_AS="as" | ||
3371 | 3367 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
3372 | 3368 | break 2 | ||
3373 | 3369 | fi | ||
3374 | 3370 | done | ||
3375 | 3371 | done | ||
3376 | 3372 | IFS=$as_save_IFS | ||
3377 | 3373 | |||
3378 | 3374 | fi | ||
3379 | 3375 | fi | ||
3380 | 3376 | ac_ct_AS=$ac_cv_prog_ac_ct_AS | ||
3381 | 3377 | if test -n "$ac_ct_AS"; then | ||
3382 | 3378 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5 | ||
3383 | 3379 | $as_echo "$ac_ct_AS" >&6; } | ||
3384 | 3380 | else | ||
3385 | 3381 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
3386 | 3382 | $as_echo "no" >&6; } | ||
3387 | 3383 | fi | ||
3388 | 3384 | |||
3389 | 3385 | if test "x$ac_ct_AS" = x; then | ||
3390 | 3386 | AS=""no"" | ||
3391 | 3387 | else | ||
3392 | 3388 | case $cross_compiling:$ac_tool_warned in | ||
3393 | 3389 | yes:) | ||
3394 | 3390 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | ||
3395 | 3391 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||
3396 | 3392 | ac_tool_warned=yes ;; | ||
3397 | 3393 | esac | ||
3398 | 3394 | AS=$ac_ct_AS | ||
3399 | 3395 | fi | ||
3400 | 3396 | else | ||
3401 | 3397 | AS="$ac_cv_prog_AS" | ||
3402 | 3398 | fi | ||
3403 | 3399 | |||
3404 | 3400 | if test -n "$ac_tool_prefix"; then | ||
3405 | 3401 | # Extract the first word of "${ac_tool_prefix}objcopy", so it can be a program name with args. | ||
3406 | 3402 | set dummy ${ac_tool_prefix}objcopy; ac_word=$2 | ||
3407 | 3403 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
3408 | 3404 | $as_echo_n "checking for $ac_word... " >&6; } | ||
3409 | 3405 | if test "${ac_cv_prog_OBJCOPY+set}" = set; then : | ||
3410 | 3406 | $as_echo_n "(cached) " >&6 | ||
3411 | 3407 | else | ||
3412 | 3408 | if test -n "$OBJCOPY"; then | ||
3413 | 3409 | ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test. | ||
3414 | 3410 | else | ||
3415 | 3411 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
3416 | 3412 | for as_dir in $PATH | ||
3417 | 3413 | do | ||
3418 | 3414 | IFS=$as_save_IFS | ||
3419 | 3415 | test -z "$as_dir" && as_dir=. | ||
3420 | 3416 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
3421 | 3417 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
3422 | 3418 | ac_cv_prog_OBJCOPY="${ac_tool_prefix}objcopy" | ||
3423 | 3419 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
3424 | 3420 | break 2 | ||
3425 | 3421 | fi | ||
3426 | 3422 | done | ||
3427 | 3423 | done | ||
3428 | 3424 | IFS=$as_save_IFS | ||
3429 | 3425 | |||
3430 | 3426 | fi | ||
3431 | 3427 | fi | ||
3432 | 3428 | OBJCOPY=$ac_cv_prog_OBJCOPY | ||
3433 | 3429 | if test -n "$OBJCOPY"; then | ||
3434 | 3430 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5 | ||
3435 | 3431 | $as_echo "$OBJCOPY" >&6; } | ||
3436 | 3432 | else | ||
3437 | 3433 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
3438 | 3434 | $as_echo "no" >&6; } | ||
3439 | 3435 | fi | ||
3440 | 3436 | |||
3441 | 3437 | |||
3442 | 3438 | fi | ||
3443 | 3439 | if test -z "$ac_cv_prog_OBJCOPY"; then | ||
3444 | 3440 | ac_ct_OBJCOPY=$OBJCOPY | ||
3445 | 3441 | # Extract the first word of "objcopy", so it can be a program name with args. | ||
3446 | 3442 | set dummy objcopy; ac_word=$2 | ||
3447 | 3443 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
3448 | 3444 | $as_echo_n "checking for $ac_word... " >&6; } | ||
3449 | 3445 | if test "${ac_cv_prog_ac_ct_OBJCOPY+set}" = set; then : | ||
3450 | 3446 | $as_echo_n "(cached) " >&6 | ||
3451 | 3447 | else | ||
3452 | 3448 | if test -n "$ac_ct_OBJCOPY"; then | ||
3453 | 3449 | ac_cv_prog_ac_ct_OBJCOPY="$ac_ct_OBJCOPY" # Let the user override the test. | ||
3454 | 3450 | else | ||
3455 | 3451 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
3456 | 3452 | for as_dir in $PATH | ||
3457 | 3453 | do | ||
3458 | 3454 | IFS=$as_save_IFS | ||
3459 | 3455 | test -z "$as_dir" && as_dir=. | ||
3460 | 3456 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
3461 | 3457 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
3462 | 3458 | ac_cv_prog_ac_ct_OBJCOPY="objcopy" | ||
3463 | 3459 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
3464 | 3460 | break 2 | ||
3465 | 3461 | fi | ||
3466 | 3462 | done | ||
3467 | 3463 | done | ||
3468 | 3464 | IFS=$as_save_IFS | ||
3469 | 3465 | |||
3470 | 3466 | fi | ||
3471 | 3467 | fi | ||
3472 | 3468 | ac_ct_OBJCOPY=$ac_cv_prog_ac_ct_OBJCOPY | ||
3473 | 3469 | if test -n "$ac_ct_OBJCOPY"; then | ||
3474 | 3470 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJCOPY" >&5 | ||
3475 | 3471 | $as_echo "$ac_ct_OBJCOPY" >&6; } | ||
3476 | 3472 | else | ||
3477 | 3473 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
3478 | 3474 | $as_echo "no" >&6; } | ||
3479 | 3475 | fi | ||
3480 | 3476 | |||
3481 | 3477 | if test "x$ac_ct_OBJCOPY" = x; then | ||
3482 | 3478 | OBJCOPY=""no"" | ||
3483 | 3479 | else | ||
3484 | 3480 | case $cross_compiling:$ac_tool_warned in | ||
3485 | 3481 | yes:) | ||
3486 | 3482 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | ||
3487 | 3483 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||
3488 | 3484 | ac_tool_warned=yes ;; | ||
3489 | 3485 | esac | ||
3490 | 3486 | OBJCOPY=$ac_ct_OBJCOPY | ||
3491 | 3487 | fi | ||
3492 | 3488 | else | ||
3493 | 3489 | OBJCOPY="$ac_cv_prog_OBJCOPY" | ||
3494 | 3490 | fi | ||
3495 | 3491 | |||
3496 | 3492 | if test -n "$ac_tool_prefix"; then | ||
3497 | 3493 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. | ||
3498 | 3494 | set dummy ${ac_tool_prefix}ar; ac_word=$2 | ||
3499 | 3495 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
3500 | 3496 | $as_echo_n "checking for $ac_word... " >&6; } | ||
3501 | 3497 | if test "${ac_cv_prog_AR+set}" = set; then : | ||
3502 | 3498 | $as_echo_n "(cached) " >&6 | ||
3503 | 3499 | else | ||
3504 | 3500 | if test -n "$AR"; then | ||
3505 | 3501 | ac_cv_prog_AR="$AR" # Let the user override the test. | ||
3506 | 3502 | else | ||
3507 | 3503 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
3508 | 3504 | for as_dir in $PATH | ||
3509 | 3505 | do | ||
3510 | 3506 | IFS=$as_save_IFS | ||
3511 | 3507 | test -z "$as_dir" && as_dir=. | ||
3512 | 3508 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
3513 | 3509 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
3514 | 3510 | ac_cv_prog_AR="${ac_tool_prefix}ar" | ||
3515 | 3511 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
3516 | 3512 | break 2 | ||
3517 | 3513 | fi | ||
3518 | 3514 | done | ||
3519 | 3515 | done | ||
3520 | 3516 | IFS=$as_save_IFS | ||
3521 | 3517 | |||
3522 | 3518 | fi | ||
3523 | 3519 | fi | ||
3524 | 3520 | AR=$ac_cv_prog_AR | ||
3525 | 3521 | if test -n "$AR"; then | ||
3526 | 3522 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 | ||
3527 | 3523 | $as_echo "$AR" >&6; } | ||
3528 | 3524 | else | ||
3529 | 3525 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
3530 | 3526 | $as_echo "no" >&6; } | ||
3531 | 3527 | fi | ||
3532 | 3528 | |||
3533 | 3529 | |||
3534 | 3530 | fi | ||
3535 | 3531 | if test -z "$ac_cv_prog_AR"; then | ||
3536 | 3532 | ac_ct_AR=$AR | ||
3537 | 3533 | # Extract the first word of "ar", so it can be a program name with args. | ||
3538 | 3534 | set dummy ar; ac_word=$2 | ||
3539 | 3535 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
3540 | 3536 | $as_echo_n "checking for $ac_word... " >&6; } | ||
3541 | 3537 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then : | ||
3542 | 3538 | $as_echo_n "(cached) " >&6 | ||
3543 | 3539 | else | ||
3544 | 3540 | if test -n "$ac_ct_AR"; then | ||
3545 | 3541 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | ||
3546 | 3542 | else | ||
3547 | 3543 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
3548 | 3544 | for as_dir in $PATH | ||
3549 | 3545 | do | ||
3550 | 3546 | IFS=$as_save_IFS | ||
3551 | 3547 | test -z "$as_dir" && as_dir=. | ||
3552 | 3548 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
3553 | 3549 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
3554 | 3550 | ac_cv_prog_ac_ct_AR="ar" | ||
3555 | 3551 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
3556 | 3552 | break 2 | ||
3557 | 3553 | fi | ||
3558 | 3554 | done | ||
3559 | 3555 | done | ||
3560 | 3556 | IFS=$as_save_IFS | ||
3561 | 3557 | |||
3562 | 3558 | fi | ||
3563 | 3559 | fi | ||
3564 | 3560 | ac_ct_AR=$ac_cv_prog_ac_ct_AR | ||
3565 | 3561 | if test -n "$ac_ct_AR"; then | ||
3566 | 3562 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 | ||
3567 | 3563 | $as_echo "$ac_ct_AR" >&6; } | ||
3568 | 3564 | else | ||
3569 | 3565 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
3570 | 3566 | $as_echo "no" >&6; } | ||
3571 | 3567 | fi | ||
3572 | 3568 | |||
3573 | 3569 | if test "x$ac_ct_AR" = x; then | ||
3574 | 3570 | AR="""" | ||
3575 | 3571 | else | ||
3576 | 3572 | case $cross_compiling:$ac_tool_warned in | ||
3577 | 3573 | yes:) | ||
3578 | 3574 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | ||
3579 | 3575 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | ||
3580 | 3576 | ac_tool_warned=yes ;; | ||
3581 | 3577 | esac | ||
3582 | 3578 | AR=$ac_ct_AR | ||
3583 | 3579 | fi | ||
3584 | 3580 | else | ||
3585 | 3581 | AR="$ac_cv_prog_AR" | ||
3586 | 3582 | fi | ||
3587 | 3583 | |||
3588 | 3584 | |||
3589 | 3585 | if test "${target}" != "${host}" ; then | ||
3590 | 3586 | for ac_prog in ${target_alias}-gcc ${target}-gcc gcc | ||
3591 | 3587 | do | ||
3592 | 3588 | # Extract the first word of "$ac_prog", so it can be a program name with args. | ||
3593 | 3589 | set dummy $ac_prog; ac_word=$2 | ||
3594 | 3590 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
3595 | 3591 | $as_echo_n "checking for $ac_word... " >&6; } | ||
3596 | 3592 | if test "${ac_cv_prog_TARGET_CC+set}" = set; then : | ||
3597 | 3593 | $as_echo_n "(cached) " >&6 | ||
3598 | 3594 | else | ||
3599 | 3595 | if test -n "$TARGET_CC"; then | ||
3600 | 3596 | ac_cv_prog_TARGET_CC="$TARGET_CC" # Let the user override the test. | ||
3601 | 3597 | else | ||
3602 | 3598 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
3603 | 3599 | for as_dir in $PATH | ||
3604 | 3600 | do | ||
3605 | 3601 | IFS=$as_save_IFS | ||
3606 | 3602 | test -z "$as_dir" && as_dir=. | ||
3607 | 3603 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
3608 | 3604 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
3609 | 3605 | ac_cv_prog_TARGET_CC="$ac_prog" | ||
3610 | 3606 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
3611 | 3607 | break 2 | ||
3612 | 3608 | fi | ||
3613 | 3609 | done | ||
3614 | 3610 | done | ||
3615 | 3611 | IFS=$as_save_IFS | ||
3616 | 3612 | |||
3617 | 3613 | fi | ||
3618 | 3614 | fi | ||
3619 | 3615 | TARGET_CC=$ac_cv_prog_TARGET_CC | ||
3620 | 3616 | if test -n "$TARGET_CC"; then | ||
3621 | 3617 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TARGET_CC" >&5 | ||
3622 | 3618 | $as_echo "$TARGET_CC" >&6; } | ||
3623 | 3619 | else | ||
3624 | 3620 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
3625 | 3621 | $as_echo "no" >&6; } | ||
3626 | 3622 | fi | ||
3627 | 3623 | |||
3628 | 3624 | |||
3629 | 3625 | test -n "$TARGET_CC" && break | ||
3630 | 3626 | done | ||
3631 | 3627 | |||
3632 | 3628 | for ac_prog in ${target_alias}-ld ${target}-ld ld | ||
3633 | 3629 | do | ||
3634 | 3630 | # Extract the first word of "$ac_prog", so it can be a program name with args. | ||
3635 | 3631 | set dummy $ac_prog; ac_word=$2 | ||
3636 | 3632 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
3637 | 3633 | $as_echo_n "checking for $ac_word... " >&6; } | ||
3638 | 3634 | if test "${ac_cv_prog_TARGET_LD+set}" = set; then : | ||
3639 | 3635 | $as_echo_n "(cached) " >&6 | ||
3640 | 3636 | else | ||
3641 | 3637 | if test -n "$TARGET_LD"; then | ||
3642 | 3638 | ac_cv_prog_TARGET_LD="$TARGET_LD" # Let the user override the test. | ||
3643 | 3639 | else | ||
3644 | 3640 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
3645 | 3641 | for as_dir in $PATH | ||
3646 | 3642 | do | ||
3647 | 3643 | IFS=$as_save_IFS | ||
3648 | 3644 | test -z "$as_dir" && as_dir=. | ||
3649 | 3645 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
3650 | 3646 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
3651 | 3647 | ac_cv_prog_TARGET_LD="$ac_prog" | ||
3652 | 3648 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
3653 | 3649 | break 2 | ||
3654 | 3650 | fi | ||
3655 | 3651 | done | ||
3656 | 3652 | done | ||
3657 | 3653 | IFS=$as_save_IFS | ||
3658 | 3654 | |||
3659 | 3655 | fi | ||
3660 | 3656 | fi | ||
3661 | 3657 | TARGET_LD=$ac_cv_prog_TARGET_LD | ||
3662 | 3658 | if test -n "$TARGET_LD"; then | ||
3663 | 3659 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TARGET_LD" >&5 | ||
3664 | 3660 | $as_echo "$TARGET_LD" >&6; } | ||
3665 | 3661 | else | ||
3666 | 3662 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
3667 | 3663 | $as_echo "no" >&6; } | ||
3668 | 3664 | fi | ||
3669 | 3665 | |||
3670 | 3666 | |||
3671 | 3667 | test -n "$TARGET_LD" && break | ||
3672 | 3668 | done | ||
3673 | 3669 | |||
3674 | 3670 | else | ||
3675 | 3671 | TARGET_CC="$CC" | ||
3676 | 3672 | TARGET_LD="$LD" | ||
3677 | 3673 | fi | ||
3678 | 3674 | |||
3679 | 3675 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $TARGET_CC accepts -fno-zero-initialized-in-bss" >&5 | ||
3680 | 3676 | $as_echo_n "checking whether $TARGET_CC accepts -fno-zero-initialized-in-bss... " >&6; } | ||
3681 | 3677 | saved_CFLAGS="$CFLAGS" | ||
3682 | 3678 | saved_CC="$CC" | ||
3683 | 3679 | CC="$TARGET_CC" | ||
3684 | 3680 | CFLAGS="$CFLAGS -fno-zero-initialized-in-bss" | ||
3685 | 3681 | |||
3686 | 3682 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
3687 | 3683 | /* end confdefs.h. */ | ||
3688 | 3684 | |||
3689 | 3685 | int | ||
3690 | 3686 | main () | ||
3691 | 3687 | { | ||
3692 | 3688 | |||
3693 | 3689 | ; | ||
3694 | 3690 | return 0; | ||
3695 | 3691 | } | ||
3696 | 3692 | _ACEOF | ||
3697 | 3693 | if ac_fn_c_try_compile "$LINENO"; then : | ||
3698 | 3694 | PURGATORY_EXTRA_CFLAGS="-fno-zero-initialized-in-bss" | ||
3699 | 3695 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Yes" >&5 | ||
3700 | 3696 | $as_echo "Yes" >&6; } | ||
3701 | 3697 | else | ||
3702 | 3698 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: No" >&5 | ||
3703 | 3699 | $as_echo "No" >&6; } | ||
3704 | 3700 | fi | ||
3705 | 3701 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
3706 | 3702 | CFLAGS="$saved_CFLAGS" | ||
3707 | 3703 | CC="$saved_CC" | ||
3708 | 3704 | |||
3709 | 3705 | PURGATORY_EXTRA_CFLAGS=$PURGATORY_EXTRA_CFLAGS | ||
3710 | 3706 | |||
3711 | 3707 | |||
3712 | 3708 | # Find a good install program. We prefer a C program (faster), | ||
3713 | 3709 | # so one script is as good as another. But avoid the broken or | ||
3714 | 3710 | # incompatible versions: | ||
3715 | 3711 | # SysV /etc/install, /usr/sbin/install | ||
3716 | 3712 | # SunOS /usr/etc/install | ||
3717 | 3713 | # IRIX /sbin/install | ||
3718 | 3714 | # AIX /bin/install | ||
3719 | 3715 | # AmigaOS /C/install, which installs bootblocks on floppy discs | ||
3720 | 3716 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | ||
3721 | 3717 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | ||
3722 | 3718 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | ||
3723 | 3719 | # OS/2's system install, which has a completely different semantic | ||
3724 | 3720 | # ./install, which can be erroneously created by make from ./install.sh. | ||
3725 | 3721 | # Reject install programs that cannot install multiple files. | ||
3726 | 3722 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 | ||
3727 | 3723 | $as_echo_n "checking for a BSD-compatible install... " >&6; } | ||
3728 | 3724 | if test -z "$INSTALL"; then | ||
3729 | 3725 | if test "${ac_cv_path_install+set}" = set; then : | ||
3730 | 3726 | $as_echo_n "(cached) " >&6 | ||
3731 | 3727 | else | ||
3732 | 3728 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
3733 | 3729 | for as_dir in $PATH | ||
3734 | 3730 | do | ||
3735 | 3731 | IFS=$as_save_IFS | ||
3736 | 3732 | test -z "$as_dir" && as_dir=. | ||
3737 | 3733 | # Account for people who put trailing slashes in PATH elements. | ||
3738 | 3734 | case $as_dir/ in #(( | ||
3739 | 3735 | ./ | .// | /[cC]/* | \ | ||
3740 | 3736 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | ||
3741 | 3737 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ | ||
3742 | 3738 | /usr/ucb/* ) ;; | ||
3743 | 3739 | *) | ||
3744 | 3740 | # OSF1 and SCO ODT 3.0 have their own names for install. | ||
3745 | 3741 | # Don't use installbsd from OSF since it installs stuff as root | ||
3746 | 3742 | # by default. | ||
3747 | 3743 | for ac_prog in ginstall scoinst install; do | ||
3748 | 3744 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
3749 | 3745 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then | ||
3750 | 3746 | if test $ac_prog = install && | ||
3751 | 3747 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | ||
3752 | 3748 | # AIX install. It has an incompatible calling convention. | ||
3753 | 3749 | : | ||
3754 | 3750 | elif test $ac_prog = install && | ||
3755 | 3751 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | ||
3756 | 3752 | # program-specific install script used by HP pwplus--don't use. | ||
3757 | 3753 | : | ||
3758 | 3754 | else | ||
3759 | 3755 | rm -rf conftest.one conftest.two conftest.dir | ||
3760 | 3756 | echo one > conftest.one | ||
3761 | 3757 | echo two > conftest.two | ||
3762 | 3758 | mkdir conftest.dir | ||
3763 | 3759 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | ||
3764 | 3760 | test -s conftest.one && test -s conftest.two && | ||
3765 | 3761 | test -s conftest.dir/conftest.one && | ||
3766 | 3762 | test -s conftest.dir/conftest.two | ||
3767 | 3763 | then | ||
3768 | 3764 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | ||
3769 | 3765 | break 3 | ||
3770 | 3766 | fi | ||
3771 | 3767 | fi | ||
3772 | 3768 | fi | ||
3773 | 3769 | done | ||
3774 | 3770 | done | ||
3775 | 3771 | ;; | ||
3776 | 3772 | esac | ||
3777 | 3773 | |||
3778 | 3774 | done | ||
3779 | 3775 | IFS=$as_save_IFS | ||
3780 | 3776 | |||
3781 | 3777 | rm -rf conftest.one conftest.two conftest.dir | ||
3782 | 3778 | |||
3783 | 3779 | fi | ||
3784 | 3780 | if test "${ac_cv_path_install+set}" = set; then | ||
3785 | 3781 | INSTALL=$ac_cv_path_install | ||
3786 | 3782 | else | ||
3787 | 3783 | # As a last resort, use the slow shell script. Don't cache a | ||
3788 | 3784 | # value for INSTALL within a source directory, because that will | ||
3789 | 3785 | # break other packages using the cache if that directory is | ||
3790 | 3786 | # removed, or if the value is a relative name. | ||
3791 | 3787 | INSTALL=$ac_install_sh | ||
3792 | 3788 | fi | ||
3793 | 3789 | fi | ||
3794 | 3790 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 | ||
3795 | 3791 | $as_echo "$INSTALL" >&6; } | ||
3796 | 3792 | |||
3797 | 3793 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | ||
3798 | 3794 | # It thinks the first close brace ends the variable substitution. | ||
3799 | 3795 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | ||
3800 | 3796 | |||
3801 | 3797 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | ||
3802 | 3798 | |||
3803 | 3799 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | ||
3804 | 3800 | |||
3805 | 3801 | # Extract the first word of "mkdir", so it can be a program name with args. | ||
3806 | 3802 | set dummy mkdir; ac_word=$2 | ||
3807 | 3803 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
3808 | 3804 | $as_echo_n "checking for $ac_word... " >&6; } | ||
3809 | 3805 | if test "${ac_cv_prog_MKDIR+set}" = set; then : | ||
3810 | 3806 | $as_echo_n "(cached) " >&6 | ||
3811 | 3807 | else | ||
3812 | 3808 | if test -n "$MKDIR"; then | ||
3813 | 3809 | ac_cv_prog_MKDIR="$MKDIR" # Let the user override the test. | ||
3814 | 3810 | else | ||
3815 | 3811 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
3816 | 3812 | for as_dir in $PATH | ||
3817 | 3813 | do | ||
3818 | 3814 | IFS=$as_save_IFS | ||
3819 | 3815 | test -z "$as_dir" && as_dir=. | ||
3820 | 3816 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
3821 | 3817 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
3822 | 3818 | ac_cv_prog_MKDIR="mkdir" | ||
3823 | 3819 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
3824 | 3820 | break 2 | ||
3825 | 3821 | fi | ||
3826 | 3822 | done | ||
3827 | 3823 | done | ||
3828 | 3824 | IFS=$as_save_IFS | ||
3829 | 3825 | |||
3830 | 3826 | test -z "$ac_cv_prog_MKDIR" && ac_cv_prog_MKDIR=""no"" | ||
3831 | 3827 | fi | ||
3832 | 3828 | fi | ||
3833 | 3829 | MKDIR=$ac_cv_prog_MKDIR | ||
3834 | 3830 | if test -n "$MKDIR"; then | ||
3835 | 3831 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5 | ||
3836 | 3832 | $as_echo "$MKDIR" >&6; } | ||
3837 | 3833 | else | ||
3838 | 3834 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
3839 | 3835 | $as_echo "no" >&6; } | ||
3840 | 3836 | fi | ||
3841 | 3837 | |||
3842 | 3838 | |||
3843 | 3839 | # Extract the first word of "rm", so it can be a program name with args. | ||
3844 | 3840 | set dummy rm; ac_word=$2 | ||
3845 | 3841 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
3846 | 3842 | $as_echo_n "checking for $ac_word... " >&6; } | ||
3847 | 3843 | if test "${ac_cv_prog_RM+set}" = set; then : | ||
3848 | 3844 | $as_echo_n "(cached) " >&6 | ||
3849 | 3845 | else | ||
3850 | 3846 | if test -n "$RM"; then | ||
3851 | 3847 | ac_cv_prog_RM="$RM" # Let the user override the test. | ||
3852 | 3848 | else | ||
3853 | 3849 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
3854 | 3850 | for as_dir in $PATH | ||
3855 | 3851 | do | ||
3856 | 3852 | IFS=$as_save_IFS | ||
3857 | 3853 | test -z "$as_dir" && as_dir=. | ||
3858 | 3854 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
3859 | 3855 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
3860 | 3856 | ac_cv_prog_RM="rm" | ||
3861 | 3857 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
3862 | 3858 | break 2 | ||
3863 | 3859 | fi | ||
3864 | 3860 | done | ||
3865 | 3861 | done | ||
3866 | 3862 | IFS=$as_save_IFS | ||
3867 | 3863 | |||
3868 | 3864 | test -z "$ac_cv_prog_RM" && ac_cv_prog_RM=""no"" | ||
3869 | 3865 | fi | ||
3870 | 3866 | fi | ||
3871 | 3867 | RM=$ac_cv_prog_RM | ||
3872 | 3868 | if test -n "$RM"; then | ||
3873 | 3869 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5 | ||
3874 | 3870 | $as_echo "$RM" >&6; } | ||
3875 | 3871 | else | ||
3876 | 3872 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
3877 | 3873 | $as_echo "no" >&6; } | ||
3878 | 3874 | fi | ||
3879 | 3875 | |||
3880 | 3876 | |||
3881 | 3877 | # Extract the first word of "cp", so it can be a program name with args. | ||
3882 | 3878 | set dummy cp; ac_word=$2 | ||
3883 | 3879 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
3884 | 3880 | $as_echo_n "checking for $ac_word... " >&6; } | ||
3885 | 3881 | if test "${ac_cv_prog_CP+set}" = set; then : | ||
3886 | 3882 | $as_echo_n "(cached) " >&6 | ||
3887 | 3883 | else | ||
3888 | 3884 | if test -n "$CP"; then | ||
3889 | 3885 | ac_cv_prog_CP="$CP" # Let the user override the test. | ||
3890 | 3886 | else | ||
3891 | 3887 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
3892 | 3888 | for as_dir in $PATH | ||
3893 | 3889 | do | ||
3894 | 3890 | IFS=$as_save_IFS | ||
3895 | 3891 | test -z "$as_dir" && as_dir=. | ||
3896 | 3892 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
3897 | 3893 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
3898 | 3894 | ac_cv_prog_CP="cp" | ||
3899 | 3895 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
3900 | 3896 | break 2 | ||
3901 | 3897 | fi | ||
3902 | 3898 | done | ||
3903 | 3899 | done | ||
3904 | 3900 | IFS=$as_save_IFS | ||
3905 | 3901 | |||
3906 | 3902 | test -z "$ac_cv_prog_CP" && ac_cv_prog_CP=""no"" | ||
3907 | 3903 | fi | ||
3908 | 3904 | fi | ||
3909 | 3905 | CP=$ac_cv_prog_CP | ||
3910 | 3906 | if test -n "$CP"; then | ||
3911 | 3907 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5 | ||
3912 | 3908 | $as_echo "$CP" >&6; } | ||
3913 | 3909 | else | ||
3914 | 3910 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
3915 | 3911 | $as_echo "no" >&6; } | ||
3916 | 3912 | fi | ||
3917 | 3913 | |||
3918 | 3914 | |||
3919 | 3915 | # Extract the first word of "ln", so it can be a program name with args. | ||
3920 | 3916 | set dummy ln; ac_word=$2 | ||
3921 | 3917 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
3922 | 3918 | $as_echo_n "checking for $ac_word... " >&6; } | ||
3923 | 3919 | if test "${ac_cv_prog_LN+set}" = set; then : | ||
3924 | 3920 | $as_echo_n "(cached) " >&6 | ||
3925 | 3921 | else | ||
3926 | 3922 | if test -n "$LN"; then | ||
3927 | 3923 | ac_cv_prog_LN="$LN" # Let the user override the test. | ||
3928 | 3924 | else | ||
3929 | 3925 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
3930 | 3926 | for as_dir in $PATH | ||
3931 | 3927 | do | ||
3932 | 3928 | IFS=$as_save_IFS | ||
3933 | 3929 | test -z "$as_dir" && as_dir=. | ||
3934 | 3930 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
3935 | 3931 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
3936 | 3932 | ac_cv_prog_LN="ln" | ||
3937 | 3933 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
3938 | 3934 | break 2 | ||
3939 | 3935 | fi | ||
3940 | 3936 | done | ||
3941 | 3937 | done | ||
3942 | 3938 | IFS=$as_save_IFS | ||
3943 | 3939 | |||
3944 | 3940 | test -z "$ac_cv_prog_LN" && ac_cv_prog_LN=""no"" | ||
3945 | 3941 | fi | ||
3946 | 3942 | fi | ||
3947 | 3943 | LN=$ac_cv_prog_LN | ||
3948 | 3944 | if test -n "$LN"; then | ||
3949 | 3945 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5 | ||
3950 | 3946 | $as_echo "$LN" >&6; } | ||
3951 | 3947 | else | ||
3952 | 3948 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
3953 | 3949 | $as_echo "no" >&6; } | ||
3954 | 3950 | fi | ||
3955 | 3951 | |||
3956 | 3952 | |||
3957 | 3953 | # Extract the first word of "tar", so it can be a program name with args. | ||
3958 | 3954 | set dummy tar; ac_word=$2 | ||
3959 | 3955 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
3960 | 3956 | $as_echo_n "checking for $ac_word... " >&6; } | ||
3961 | 3957 | if test "${ac_cv_prog_TAR+set}" = set; then : | ||
3962 | 3958 | $as_echo_n "(cached) " >&6 | ||
3963 | 3959 | else | ||
3964 | 3960 | if test -n "$TAR"; then | ||
3965 | 3961 | ac_cv_prog_TAR="$TAR" # Let the user override the test. | ||
3966 | 3962 | else | ||
3967 | 3963 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
3968 | 3964 | for as_dir in $PATH | ||
3969 | 3965 | do | ||
3970 | 3966 | IFS=$as_save_IFS | ||
3971 | 3967 | test -z "$as_dir" && as_dir=. | ||
3972 | 3968 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
3973 | 3969 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
3974 | 3970 | ac_cv_prog_TAR="tar" | ||
3975 | 3971 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
3976 | 3972 | break 2 | ||
3977 | 3973 | fi | ||
3978 | 3974 | done | ||
3979 | 3975 | done | ||
3980 | 3976 | IFS=$as_save_IFS | ||
3981 | 3977 | |||
3982 | 3978 | test -z "$ac_cv_prog_TAR" && ac_cv_prog_TAR=""no"" | ||
3983 | 3979 | fi | ||
3984 | 3980 | fi | ||
3985 | 3981 | TAR=$ac_cv_prog_TAR | ||
3986 | 3982 | if test -n "$TAR"; then | ||
3987 | 3983 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5 | ||
3988 | 3984 | $as_echo "$TAR" >&6; } | ||
3989 | 3985 | else | ||
3990 | 3986 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
3991 | 3987 | $as_echo "no" >&6; } | ||
3992 | 3988 | fi | ||
3993 | 3989 | |||
3994 | 3990 | |||
3995 | 3991 | # Extract the first word of "rpmbuild", so it can be a program name with args. | ||
3996 | 3992 | set dummy rpmbuild; ac_word=$2 | ||
3997 | 3993 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
3998 | 3994 | $as_echo_n "checking for $ac_word... " >&6; } | ||
3999 | 3995 | if test "${ac_cv_prog_RPMBUILD+set}" = set; then : | ||
4000 | 3996 | $as_echo_n "(cached) " >&6 | ||
4001 | 3997 | else | ||
4002 | 3998 | if test -n "$RPMBUILD"; then | ||
4003 | 3999 | ac_cv_prog_RPMBUILD="$RPMBUILD" # Let the user override the test. | ||
4004 | 4000 | else | ||
4005 | 4001 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4006 | 4002 | for as_dir in $PATH | ||
4007 | 4003 | do | ||
4008 | 4004 | IFS=$as_save_IFS | ||
4009 | 4005 | test -z "$as_dir" && as_dir=. | ||
4010 | 4006 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4011 | 4007 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
4012 | 4008 | ac_cv_prog_RPMBUILD="rpmbuild" | ||
4013 | 4009 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
4014 | 4010 | break 2 | ||
4015 | 4011 | fi | ||
4016 | 4012 | done | ||
4017 | 4013 | done | ||
4018 | 4014 | IFS=$as_save_IFS | ||
4019 | 4015 | |||
4020 | 4016 | test -z "$ac_cv_prog_RPMBUILD" && ac_cv_prog_RPMBUILD=""no"" | ||
4021 | 4017 | fi | ||
4022 | 4018 | fi | ||
4023 | 4019 | RPMBUILD=$ac_cv_prog_RPMBUILD | ||
4024 | 4020 | if test -n "$RPMBUILD"; then | ||
4025 | 4021 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RPMBUILD" >&5 | ||
4026 | 4022 | $as_echo "$RPMBUILD" >&6; } | ||
4027 | 4023 | else | ||
4028 | 4024 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
4029 | 4025 | $as_echo "no" >&6; } | ||
4030 | 4026 | fi | ||
4031 | 4027 | |||
4032 | 4028 | |||
4033 | 4029 | # Extract the first word of "sed", so it can be a program name with args. | ||
4034 | 4030 | set dummy sed; ac_word=$2 | ||
4035 | 4031 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
4036 | 4032 | $as_echo_n "checking for $ac_word... " >&6; } | ||
4037 | 4033 | if test "${ac_cv_prog_SED+set}" = set; then : | ||
4038 | 4034 | $as_echo_n "(cached) " >&6 | ||
4039 | 4035 | else | ||
4040 | 4036 | if test -n "$SED"; then | ||
4041 | 4037 | ac_cv_prog_SED="$SED" # Let the user override the test. | ||
4042 | 4038 | else | ||
4043 | 4039 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4044 | 4040 | for as_dir in $PATH | ||
4045 | 4041 | do | ||
4046 | 4042 | IFS=$as_save_IFS | ||
4047 | 4043 | test -z "$as_dir" && as_dir=. | ||
4048 | 4044 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4049 | 4045 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
4050 | 4046 | ac_cv_prog_SED="sed" | ||
4051 | 4047 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
4052 | 4048 | break 2 | ||
4053 | 4049 | fi | ||
4054 | 4050 | done | ||
4055 | 4051 | done | ||
4056 | 4052 | IFS=$as_save_IFS | ||
4057 | 4053 | |||
4058 | 4054 | test -z "$ac_cv_prog_SED" && ac_cv_prog_SED=""no"" | ||
4059 | 4055 | fi | ||
4060 | 4056 | fi | ||
4061 | 4057 | SED=$ac_cv_prog_SED | ||
4062 | 4058 | if test -n "$SED"; then | ||
4063 | 4059 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5 | ||
4064 | 4060 | $as_echo "$SED" >&6; } | ||
4065 | 4061 | else | ||
4066 | 4062 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
4067 | 4063 | $as_echo "no" >&6; } | ||
4068 | 4064 | fi | ||
4069 | 4065 | |||
4070 | 4066 | |||
4071 | 4067 | # Extract the first word of "find", so it can be a program name with args. | ||
4072 | 4068 | set dummy find; ac_word=$2 | ||
4073 | 4069 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
4074 | 4070 | $as_echo_n "checking for $ac_word... " >&6; } | ||
4075 | 4071 | if test "${ac_cv_prog_FIND+set}" = set; then : | ||
4076 | 4072 | $as_echo_n "(cached) " >&6 | ||
4077 | 4073 | else | ||
4078 | 4074 | if test -n "$FIND"; then | ||
4079 | 4075 | ac_cv_prog_FIND="$FIND" # Let the user override the test. | ||
4080 | 4076 | else | ||
4081 | 4077 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4082 | 4078 | for as_dir in $PATH | ||
4083 | 4079 | do | ||
4084 | 4080 | IFS=$as_save_IFS | ||
4085 | 4081 | test -z "$as_dir" && as_dir=. | ||
4086 | 4082 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4087 | 4083 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
4088 | 4084 | ac_cv_prog_FIND="find" | ||
4089 | 4085 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
4090 | 4086 | break 2 | ||
4091 | 4087 | fi | ||
4092 | 4088 | done | ||
4093 | 4089 | done | ||
4094 | 4090 | IFS=$as_save_IFS | ||
4095 | 4091 | |||
4096 | 4092 | test -z "$ac_cv_prog_FIND" && ac_cv_prog_FIND=""no"" | ||
4097 | 4093 | fi | ||
4098 | 4094 | fi | ||
4099 | 4095 | FIND=$ac_cv_prog_FIND | ||
4100 | 4096 | if test -n "$FIND"; then | ||
4101 | 4097 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5 | ||
4102 | 4098 | $as_echo "$FIND" >&6; } | ||
4103 | 4099 | else | ||
4104 | 4100 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
4105 | 4101 | $as_echo "no" >&6; } | ||
4106 | 4102 | fi | ||
4107 | 4103 | |||
4108 | 4104 | |||
4109 | 4105 | # Extract the first word of "xargs", so it can be a program name with args. | ||
4110 | 4106 | set dummy xargs; ac_word=$2 | ||
4111 | 4107 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
4112 | 4108 | $as_echo_n "checking for $ac_word... " >&6; } | ||
4113 | 4109 | if test "${ac_cv_prog_XARGS+set}" = set; then : | ||
4114 | 4110 | $as_echo_n "(cached) " >&6 | ||
4115 | 4111 | else | ||
4116 | 4112 | if test -n "$XARGS"; then | ||
4117 | 4113 | ac_cv_prog_XARGS="$XARGS" # Let the user override the test. | ||
4118 | 4114 | else | ||
4119 | 4115 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4120 | 4116 | for as_dir in $PATH | ||
4121 | 4117 | do | ||
4122 | 4118 | IFS=$as_save_IFS | ||
4123 | 4119 | test -z "$as_dir" && as_dir=. | ||
4124 | 4120 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4125 | 4121 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
4126 | 4122 | ac_cv_prog_XARGS="xargs" | ||
4127 | 4123 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
4128 | 4124 | break 2 | ||
4129 | 4125 | fi | ||
4130 | 4126 | done | ||
4131 | 4127 | done | ||
4132 | 4128 | IFS=$as_save_IFS | ||
4133 | 4129 | |||
4134 | 4130 | test -z "$ac_cv_prog_XARGS" && ac_cv_prog_XARGS=""no"" | ||
4135 | 4131 | fi | ||
4136 | 4132 | fi | ||
4137 | 4133 | XARGS=$ac_cv_prog_XARGS | ||
4138 | 4134 | if test -n "$XARGS"; then | ||
4139 | 4135 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XARGS" >&5 | ||
4140 | 4136 | $as_echo "$XARGS" >&6; } | ||
4141 | 4137 | else | ||
4142 | 4138 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
4143 | 4139 | $as_echo "no" >&6; } | ||
4144 | 4140 | fi | ||
4145 | 4141 | |||
4146 | 4142 | |||
4147 | 4143 | # Extract the first word of "dirname", so it can be a program name with args. | ||
4148 | 4144 | set dummy dirname; ac_word=$2 | ||
4149 | 4145 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
4150 | 4146 | $as_echo_n "checking for $ac_word... " >&6; } | ||
4151 | 4147 | if test "${ac_cv_prog_DIRNAME+set}" = set; then : | ||
4152 | 4148 | $as_echo_n "(cached) " >&6 | ||
4153 | 4149 | else | ||
4154 | 4150 | if test -n "$DIRNAME"; then | ||
4155 | 4151 | ac_cv_prog_DIRNAME="$DIRNAME" # Let the user override the test. | ||
4156 | 4152 | else | ||
4157 | 4153 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4158 | 4154 | for as_dir in $PATH | ||
4159 | 4155 | do | ||
4160 | 4156 | IFS=$as_save_IFS | ||
4161 | 4157 | test -z "$as_dir" && as_dir=. | ||
4162 | 4158 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4163 | 4159 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
4164 | 4160 | ac_cv_prog_DIRNAME="dirname" | ||
4165 | 4161 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
4166 | 4162 | break 2 | ||
4167 | 4163 | fi | ||
4168 | 4164 | done | ||
4169 | 4165 | done | ||
4170 | 4166 | IFS=$as_save_IFS | ||
4171 | 4167 | |||
4172 | 4168 | test -z "$ac_cv_prog_DIRNAME" && ac_cv_prog_DIRNAME=""no"" | ||
4173 | 4169 | fi | ||
4174 | 4170 | fi | ||
4175 | 4171 | DIRNAME=$ac_cv_prog_DIRNAME | ||
4176 | 4172 | if test -n "$DIRNAME"; then | ||
4177 | 4173 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5 | ||
4178 | 4174 | $as_echo "$DIRNAME" >&6; } | ||
4179 | 4175 | else | ||
4180 | 4176 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
4181 | 4177 | $as_echo "no" >&6; } | ||
4182 | 4178 | fi | ||
4183 | 4179 | |||
4184 | 4180 | |||
4185 | 4181 | |||
4186 | 4182 | if test "$with_zlib" = yes ; then | ||
4187 | 4183 | |||
4188 | 4184 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 | ||
4189 | 4185 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } | ||
4190 | 4186 | if test "${ac_cv_path_GREP+set}" = set; then : | ||
4191 | 4187 | $as_echo_n "(cached) " >&6 | ||
4192 | 4188 | else | ||
4193 | 4189 | if test -z "$GREP"; then | ||
4194 | 4190 | ac_path_GREP_found=false | ||
4195 | 4191 | # Loop through the user's path and test for each of PROGNAME-LIST | ||
4196 | 4192 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4197 | 4193 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | ||
4198 | 4194 | do | ||
4199 | 4195 | IFS=$as_save_IFS | ||
4200 | 4196 | test -z "$as_dir" && as_dir=. | ||
4201 | 4197 | for ac_prog in grep ggrep; do | ||
4202 | 4198 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4203 | 4199 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | ||
4204 | 4200 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue | ||
4205 | 4201 | # Check for GNU ac_path_GREP and select it if it is found. | ||
4206 | 4202 | # Check for GNU $ac_path_GREP | ||
4207 | 4203 | case `"$ac_path_GREP" --version 2>&1` in | ||
4208 | 4204 | *GNU*) | ||
4209 | 4205 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | ||
4210 | 4206 | *) | ||
4211 | 4207 | ac_count=0 | ||
4212 | 4208 | $as_echo_n 0123456789 >"conftest.in" | ||
4213 | 4209 | while : | ||
4214 | 4210 | do | ||
4215 | 4211 | cat "conftest.in" "conftest.in" >"conftest.tmp" | ||
4216 | 4212 | mv "conftest.tmp" "conftest.in" | ||
4217 | 4213 | cp "conftest.in" "conftest.nl" | ||
4218 | 4214 | $as_echo 'GREP' >> "conftest.nl" | ||
4219 | 4215 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break | ||
4220 | 4216 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | ||
4221 | 4217 | as_fn_arith $ac_count + 1 && ac_count=$as_val | ||
4222 | 4218 | if test $ac_count -gt ${ac_path_GREP_max-0}; then | ||
4223 | 4219 | # Best one so far, save it but keep looking for a better one | ||
4224 | 4220 | ac_cv_path_GREP="$ac_path_GREP" | ||
4225 | 4221 | ac_path_GREP_max=$ac_count | ||
4226 | 4222 | fi | ||
4227 | 4223 | # 10*(2^10) chars as input seems more than enough | ||
4228 | 4224 | test $ac_count -gt 10 && break | ||
4229 | 4225 | done | ||
4230 | 4226 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | ||
4231 | 4227 | esac | ||
4232 | 4228 | |||
4233 | 4229 | $ac_path_GREP_found && break 3 | ||
4234 | 4230 | done | ||
4235 | 4231 | done | ||
4236 | 4232 | done | ||
4237 | 4233 | IFS=$as_save_IFS | ||
4238 | 4234 | if test -z "$ac_cv_path_GREP"; then | ||
4239 | 4235 | as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | ||
4240 | 4236 | fi | ||
4241 | 4237 | else | ||
4242 | 4238 | ac_cv_path_GREP=$GREP | ||
4243 | 4239 | fi | ||
4244 | 4240 | |||
4245 | 4241 | fi | ||
4246 | 4242 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 | ||
4247 | 4243 | $as_echo "$ac_cv_path_GREP" >&6; } | ||
4248 | 4244 | GREP="$ac_cv_path_GREP" | ||
4249 | 4245 | |||
4250 | 4246 | |||
4251 | 4247 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 | ||
4252 | 4248 | $as_echo_n "checking for egrep... " >&6; } | ||
4253 | 4249 | if test "${ac_cv_path_EGREP+set}" = set; then : | ||
4254 | 4250 | $as_echo_n "(cached) " >&6 | ||
4255 | 4251 | else | ||
4256 | 4252 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 | ||
4257 | 4253 | then ac_cv_path_EGREP="$GREP -E" | ||
4258 | 4254 | else | ||
4259 | 4255 | if test -z "$EGREP"; then | ||
4260 | 4256 | ac_path_EGREP_found=false | ||
4261 | 4257 | # Loop through the user's path and test for each of PROGNAME-LIST | ||
4262 | 4258 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4263 | 4259 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | ||
4264 | 4260 | do | ||
4265 | 4261 | IFS=$as_save_IFS | ||
4266 | 4262 | test -z "$as_dir" && as_dir=. | ||
4267 | 4263 | for ac_prog in egrep; do | ||
4268 | 4264 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4269 | 4265 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | ||
4270 | 4266 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue | ||
4271 | 4267 | # Check for GNU ac_path_EGREP and select it if it is found. | ||
4272 | 4268 | # Check for GNU $ac_path_EGREP | ||
4273 | 4269 | case `"$ac_path_EGREP" --version 2>&1` in | ||
4274 | 4270 | *GNU*) | ||
4275 | 4271 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | ||
4276 | 4272 | *) | ||
4277 | 4273 | ac_count=0 | ||
4278 | 4274 | $as_echo_n 0123456789 >"conftest.in" | ||
4279 | 4275 | while : | ||
4280 | 4276 | do | ||
4281 | 4277 | cat "conftest.in" "conftest.in" >"conftest.tmp" | ||
4282 | 4278 | mv "conftest.tmp" "conftest.in" | ||
4283 | 4279 | cp "conftest.in" "conftest.nl" | ||
4284 | 4280 | $as_echo 'EGREP' >> "conftest.nl" | ||
4285 | 4281 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break | ||
4286 | 4282 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | ||
4287 | 4283 | as_fn_arith $ac_count + 1 && ac_count=$as_val | ||
4288 | 4284 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then | ||
4289 | 4285 | # Best one so far, save it but keep looking for a better one | ||
4290 | 4286 | ac_cv_path_EGREP="$ac_path_EGREP" | ||
4291 | 4287 | ac_path_EGREP_max=$ac_count | ||
4292 | 4288 | fi | ||
4293 | 4289 | # 10*(2^10) chars as input seems more than enough | ||
4294 | 4290 | test $ac_count -gt 10 && break | ||
4295 | 4291 | done | ||
4296 | 4292 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | ||
4297 | 4293 | esac | ||
4298 | 4294 | |||
4299 | 4295 | $ac_path_EGREP_found && break 3 | ||
4300 | 4296 | done | ||
4301 | 4297 | done | ||
4302 | 4298 | done | ||
4303 | 4299 | IFS=$as_save_IFS | ||
4304 | 4300 | if test -z "$ac_cv_path_EGREP"; then | ||
4305 | 4301 | as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | ||
4306 | 4302 | fi | ||
4307 | 4303 | else | ||
4308 | 4304 | ac_cv_path_EGREP=$EGREP | ||
4309 | 4305 | fi | ||
4310 | 4306 | |||
4311 | 4307 | fi | ||
4312 | 4308 | fi | ||
4313 | 4309 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 | ||
4314 | 4310 | $as_echo "$ac_cv_path_EGREP" >&6; } | ||
4315 | 4311 | EGREP="$ac_cv_path_EGREP" | ||
4316 | 4312 | |||
4317 | 4313 | |||
4318 | 4314 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 | ||
4319 | 4315 | $as_echo_n "checking for ANSI C header files... " >&6; } | ||
4320 | 4316 | if test "${ac_cv_header_stdc+set}" = set; then : | ||
4321 | 4317 | $as_echo_n "(cached) " >&6 | ||
4322 | 4318 | else | ||
4323 | 4319 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
4324 | 4320 | /* end confdefs.h. */ | ||
4325 | 4321 | #include <stdlib.h> | ||
4326 | 4322 | #include <stdarg.h> | ||
4327 | 4323 | #include <string.h> | ||
4328 | 4324 | #include <float.h> | ||
4329 | 4325 | |||
4330 | 4326 | int | ||
4331 | 4327 | main () | ||
4332 | 4328 | { | ||
4333 | 4329 | |||
4334 | 4330 | ; | ||
4335 | 4331 | return 0; | ||
4336 | 4332 | } | ||
4337 | 4333 | _ACEOF | ||
4338 | 4334 | if ac_fn_c_try_compile "$LINENO"; then : | ||
4339 | 4335 | ac_cv_header_stdc=yes | ||
4340 | 4336 | else | ||
4341 | 4337 | ac_cv_header_stdc=no | ||
4342 | 4338 | fi | ||
4343 | 4339 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
4344 | 4340 | |||
4345 | 4341 | if test $ac_cv_header_stdc = yes; then | ||
4346 | 4342 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | ||
4347 | 4343 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
4348 | 4344 | /* end confdefs.h. */ | ||
4349 | 4345 | #include <string.h> | ||
4350 | 4346 | |||
4351 | 4347 | _ACEOF | ||
4352 | 4348 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
4353 | 4349 | $EGREP "memchr" >/dev/null 2>&1; then : | ||
4354 | 4350 | |||
4355 | 4351 | else | ||
4356 | 4352 | ac_cv_header_stdc=no | ||
4357 | 4353 | fi | ||
4358 | 4354 | rm -f conftest* | ||
4359 | 4355 | |||
4360 | 4356 | fi | ||
4361 | 4357 | |||
4362 | 4358 | if test $ac_cv_header_stdc = yes; then | ||
4363 | 4359 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | ||
4364 | 4360 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
4365 | 4361 | /* end confdefs.h. */ | ||
4366 | 4362 | #include <stdlib.h> | ||
4367 | 4363 | |||
4368 | 4364 | _ACEOF | ||
4369 | 4365 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
4370 | 4366 | $EGREP "free" >/dev/null 2>&1; then : | ||
4371 | 4367 | |||
4372 | 4368 | else | ||
4373 | 4369 | ac_cv_header_stdc=no | ||
4374 | 4370 | fi | ||
4375 | 4371 | rm -f conftest* | ||
4376 | 4372 | |||
4377 | 4373 | fi | ||
4378 | 4374 | |||
4379 | 4375 | if test $ac_cv_header_stdc = yes; then | ||
4380 | 4376 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | ||
4381 | 4377 | if test "$cross_compiling" = yes; then : | ||
4382 | 4378 | : | ||
4383 | 4379 | else | ||
4384 | 4380 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
4385 | 4381 | /* end confdefs.h. */ | ||
4386 | 4382 | #include <ctype.h> | ||
4387 | 4383 | #include <stdlib.h> | ||
4388 | 4384 | #if ((' ' & 0x0FF) == 0x020) | ||
4389 | 4385 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | ||
4390 | 4386 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | ||
4391 | 4387 | #else | ||
4392 | 4388 | # define ISLOWER(c) \ | ||
4393 | 4389 | (('a' <= (c) && (c) <= 'i') \ | ||
4394 | 4390 | || ('j' <= (c) && (c) <= 'r') \ | ||
4395 | 4391 | || ('s' <= (c) && (c) <= 'z')) | ||
4396 | 4392 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | ||
4397 | 4393 | #endif | ||
4398 | 4394 | |||
4399 | 4395 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | ||
4400 | 4396 | int | ||
4401 | 4397 | main () | ||
4402 | 4398 | { | ||
4403 | 4399 | int i; | ||
4404 | 4400 | for (i = 0; i < 256; i++) | ||
4405 | 4401 | if (XOR (islower (i), ISLOWER (i)) | ||
4406 | 4402 | || toupper (i) != TOUPPER (i)) | ||
4407 | 4403 | return 2; | ||
4408 | 4404 | return 0; | ||
4409 | 4405 | } | ||
4410 | 4406 | _ACEOF | ||
4411 | 4407 | if ac_fn_c_try_run "$LINENO"; then : | ||
4412 | 4408 | |||
4413 | 4409 | else | ||
4414 | 4410 | ac_cv_header_stdc=no | ||
4415 | 4411 | fi | ||
4416 | 4412 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | ||
4417 | 4413 | conftest.$ac_objext conftest.beam conftest.$ac_ext | ||
4418 | 4414 | fi | ||
4419 | 4415 | |||
4420 | 4416 | fi | ||
4421 | 4417 | fi | ||
4422 | 4418 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 | ||
4423 | 4419 | $as_echo "$ac_cv_header_stdc" >&6; } | ||
4424 | 4420 | if test $ac_cv_header_stdc = yes; then | ||
4425 | 4421 | |||
4426 | 4422 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h | ||
4427 | 4423 | |||
4428 | 4424 | fi | ||
4429 | 4425 | |||
4430 | 4426 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | ||
4431 | 4427 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | ||
4432 | 4428 | inttypes.h stdint.h unistd.h | ||
4433 | 4429 | do : | ||
4434 | 4430 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
4435 | 4431 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default | ||
4436 | 4432 | " | ||
4437 | 4433 | eval as_val=\$$as_ac_Header | ||
4438 | 4434 | if test "x$as_val" = x""yes; then : | ||
4439 | 4435 | cat >>confdefs.h <<_ACEOF | ||
4440 | 4436 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
4441 | 4437 | _ACEOF | ||
4442 | 4438 | |||
4443 | 4439 | fi | ||
4444 | 4440 | |||
4445 | 4441 | done | ||
4446 | 4442 | |||
4447 | 4443 | |||
4448 | 4444 | ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default" | ||
4449 | 4445 | if test "x$ac_cv_header_zlib_h" = x""yes; then : | ||
4450 | 4446 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflateInit_ in -lz" >&5 | ||
4451 | 4447 | $as_echo_n "checking for inflateInit_ in -lz... " >&6; } | ||
4452 | 4448 | if test "${ac_cv_lib_z_inflateInit_+set}" = set; then : | ||
4453 | 4449 | $as_echo_n "(cached) " >&6 | ||
4454 | 4450 | else | ||
4455 | 4451 | ac_check_lib_save_LIBS=$LIBS | ||
4456 | 4452 | LIBS="-lz $LIBS" | ||
4457 | 4453 | |||
4458 | 4454 | # ac_fn_c_try_link LINENO | ||
4459 | 4455 | # ----------------------- | ||
4460 | 4456 | # Try to link conftest.$ac_ext, and return whether this succeeded. | ||
4461 | 4457 | ac_fn_c_try_link () | ||
4462 | 4458 | { | ||
4463 | 4459 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||
4464 | 4460 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
4465 | 4461 | if { { ac_try="$ac_link" | ||
4466 | 4462 | case "(($ac_try" in | ||
4467 | 4463 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
4468 | 4464 | *) ac_try_echo=$ac_try;; | ||
4469 | 4465 | esac | ||
4470 | 4466 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | ||
4471 | 4467 | $as_echo "$ac_try_echo"; } >&5 | ||
4472 | 4468 | (eval "$ac_link") 2>conftest.err | ||
4473 | 4469 | ac_status=$? | ||
4474 | 4470 | if test -s conftest.err; then | ||
4475 | 4471 | grep -v '^ *+' conftest.err >conftest.er1 | ||
4476 | 4472 | cat conftest.er1 >&5 | ||
4477 | 4473 | mv -f conftest.er1 conftest.err | ||
4478 | 4474 | fi | ||
4479 | 4475 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | ||
4480 | 4476 | test $ac_status = 0; } && { | ||
4481 | 4477 | test -z "$ac_c_werror_flag" || | ||
4482 | 4478 | test ! -s conftest.err | ||
4483 | 4479 | } && test -s conftest$ac_exeext && { | ||
4484 | 4480 | test "$cross_compiling" = yes || | ||
4485 | 4481 | $as_test_x conftest$ac_exeext | ||
4486 | 4482 | }; then : | ||
4487 | 4483 | ac_retval=0 | ||
4488 | 4484 | else | ||
4489 | 4485 | $as_echo "$as_me: failed program was:" >&5 | ||
4490 | 4486 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
4491 | 4487 | |||
4492 | 4488 | ac_retval=1 | ||
4493 | 4489 | fi | ||
4494 | 4490 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | ||
4495 | 4491 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | ||
4496 | 4492 | # interfere with the next link command; also delete a directory that is | ||
4497 | 4493 | # left behind by Apple's compiler. We do this before executing the actions. | ||
4498 | 4494 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | ||
4499 | 4495 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | ||
4500 | 4496 | as_fn_set_status $ac_retval | ||
4501 | 4497 | |||
4502 | 4498 | } # ac_fn_c_try_link | ||
4503 | 4499 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
4504 | 4500 | /* end confdefs.h. */ | ||
4505 | 4501 | |||
4506 | 4502 | /* Override any GCC internal prototype to avoid an error. | ||
4507 | 4503 | Use char because int might match the return type of a GCC | ||
4508 | 4504 | builtin and then its argument prototype would still apply. */ | ||
4509 | 4505 | #ifdef __cplusplus | ||
4510 | 4506 | extern "C" | ||
4511 | 4507 | #endif | ||
4512 | 4508 | char inflateInit_ (); | ||
4513 | 4509 | int | ||
4514 | 4510 | main () | ||
4515 | 4511 | { | ||
4516 | 4512 | return inflateInit_ (); | ||
4517 | 4513 | ; | ||
4518 | 4514 | return 0; | ||
4519 | 4515 | } | ||
4520 | 4516 | _ACEOF | ||
4521 | 4517 | if ac_fn_c_try_link "$LINENO"; then : | ||
4522 | 4518 | ac_cv_lib_z_inflateInit_=yes | ||
4523 | 4519 | else | ||
4524 | 4520 | ac_cv_lib_z_inflateInit_=no | ||
4525 | 4521 | fi | ||
4526 | 4522 | rm -f core conftest.err conftest.$ac_objext \ | ||
4527 | 4523 | conftest$ac_exeext conftest.$ac_ext | ||
4528 | 4524 | LIBS=$ac_check_lib_save_LIBS | ||
4529 | 4525 | fi | ||
4530 | 4526 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflateInit_" >&5 | ||
4531 | 4527 | $as_echo "$ac_cv_lib_z_inflateInit_" >&6; } | ||
4532 | 4528 | if test "x$ac_cv_lib_z_inflateInit_" = x""yes; then : | ||
4533 | 4529 | cat >>confdefs.h <<_ACEOF | ||
4534 | 4530 | #define HAVE_LIBZ 1 | ||
4535 | 4531 | _ACEOF | ||
4536 | 4532 | |||
4537 | 4533 | LIBS="-lz $LIBS" | ||
4538 | 4534 | |||
4539 | 4535 | else | ||
4540 | 4536 | { $as_echo "$as_me:${as_lineno-$LINENO}: zlib support disabled" >&5 | ||
4541 | 4537 | $as_echo "$as_me: zlib support disabled" >&6;} | ||
4542 | 4538 | fi | ||
4543 | 4539 | |||
4544 | 4540 | fi | ||
4545 | 4541 | |||
4546 | 4542 | |||
4547 | 4543 | fi | ||
4548 | 4544 | |||
4549 | 4545 | if test "$with_lzma" = yes ; then | ||
4550 | 4546 | ac_fn_c_check_header_mongrel "$LINENO" "lzma.h" "ac_cv_header_lzma_h" "$ac_includes_default" | ||
4551 | 4547 | if test "x$ac_cv_header_lzma_h" = x""yes; then : | ||
4552 | 4548 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lzma_code in -llzma" >&5 | ||
4553 | 4549 | $as_echo_n "checking for lzma_code in -llzma... " >&6; } | ||
4554 | 4550 | if test "${ac_cv_lib_lzma_lzma_code+set}" = set; then : | ||
4555 | 4551 | $as_echo_n "(cached) " >&6 | ||
4556 | 4552 | else | ||
4557 | 4553 | ac_check_lib_save_LIBS=$LIBS | ||
4558 | 4554 | LIBS="-llzma $LIBS" | ||
4559 | 4555 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
4560 | 4556 | /* end confdefs.h. */ | ||
4561 | 4557 | |||
4562 | 4558 | /* Override any GCC internal prototype to avoid an error. | ||
4563 | 4559 | Use char because int might match the return type of a GCC | ||
4564 | 4560 | builtin and then its argument prototype would still apply. */ | ||
4565 | 4561 | #ifdef __cplusplus | ||
4566 | 4562 | extern "C" | ||
4567 | 4563 | #endif | ||
4568 | 4564 | char lzma_code (); | ||
4569 | 4565 | int | ||
4570 | 4566 | main () | ||
4571 | 4567 | { | ||
4572 | 4568 | return lzma_code (); | ||
4573 | 4569 | ; | ||
4574 | 4570 | return 0; | ||
4575 | 4571 | } | ||
4576 | 4572 | _ACEOF | ||
4577 | 4573 | if ac_fn_c_try_link "$LINENO"; then : | ||
4578 | 4574 | ac_cv_lib_lzma_lzma_code=yes | ||
4579 | 4575 | else | ||
4580 | 4576 | ac_cv_lib_lzma_lzma_code=no | ||
4581 | 4577 | fi | ||
4582 | 4578 | rm -f core conftest.err conftest.$ac_objext \ | ||
4583 | 4579 | conftest$ac_exeext conftest.$ac_ext | ||
4584 | 4580 | LIBS=$ac_check_lib_save_LIBS | ||
4585 | 4581 | fi | ||
4586 | 4582 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lzma_lzma_code" >&5 | ||
4587 | 4583 | $as_echo "$ac_cv_lib_lzma_lzma_code" >&6; } | ||
4588 | 4584 | if test "x$ac_cv_lib_lzma_lzma_code" = x""yes; then : | ||
4589 | 4585 | cat >>confdefs.h <<_ACEOF | ||
4590 | 4586 | #define HAVE_LIBLZMA 1 | ||
4591 | 4587 | _ACEOF | ||
4592 | 4588 | |||
4593 | 4589 | LIBS="-llzma $LIBS" | ||
4594 | 4590 | |||
4595 | 4591 | else | ||
4596 | 4592 | { $as_echo "$as_me:${as_lineno-$LINENO}: lzma support disabled" >&5 | ||
4597 | 4593 | $as_echo "$as_me: lzma support disabled" >&6;} | ||
4598 | 4594 | fi | ||
4599 | 4595 | |||
4600 | 4596 | fi | ||
4601 | 4597 | |||
4602 | 4598 | |||
4603 | 4599 | fi | ||
4604 | 4600 | |||
4605 | 4601 | if test "$with_xen" = yes ; then | ||
4606 | 4602 | ac_fn_c_check_header_mongrel "$LINENO" "xenctrl.h" "ac_cv_header_xenctrl_h" "$ac_includes_default" | ||
4607 | 4603 | if test "x$ac_cv_header_xenctrl_h" = x""yes; then : | ||
4608 | 4604 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xc_version in -lxenctrl" >&5 | ||
4609 | 4605 | $as_echo_n "checking for xc_version in -lxenctrl... " >&6; } | ||
4610 | 4606 | if test "${ac_cv_lib_xenctrl_xc_version+set}" = set; then : | ||
4611 | 4607 | $as_echo_n "(cached) " >&6 | ||
4612 | 4608 | else | ||
4613 | 4609 | ac_check_lib_save_LIBS=$LIBS | ||
4614 | 4610 | LIBS="-lxenctrl $LIBS" | ||
4615 | 4611 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
4616 | 4612 | /* end confdefs.h. */ | ||
4617 | 4613 | |||
4618 | 4614 | /* Override any GCC internal prototype to avoid an error. | ||
4619 | 4615 | Use char because int might match the return type of a GCC | ||
4620 | 4616 | builtin and then its argument prototype would still apply. */ | ||
4621 | 4617 | #ifdef __cplusplus | ||
4622 | 4618 | extern "C" | ||
4623 | 4619 | #endif | ||
4624 | 4620 | char xc_version (); | ||
4625 | 4621 | int | ||
4626 | 4622 | main () | ||
4627 | 4623 | { | ||
4628 | 4624 | return xc_version (); | ||
4629 | 4625 | ; | ||
4630 | 4626 | return 0; | ||
4631 | 4627 | } | ||
4632 | 4628 | _ACEOF | ||
4633 | 4629 | if ac_fn_c_try_link "$LINENO"; then : | ||
4634 | 4630 | ac_cv_lib_xenctrl_xc_version=yes | ||
4635 | 4631 | else | ||
4636 | 4632 | ac_cv_lib_xenctrl_xc_version=no | ||
4637 | 4633 | fi | ||
4638 | 4634 | rm -f core conftest.err conftest.$ac_objext \ | ||
4639 | 4635 | conftest$ac_exeext conftest.$ac_ext | ||
4640 | 4636 | LIBS=$ac_check_lib_save_LIBS | ||
4641 | 4637 | fi | ||
4642 | 4638 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xenctrl_xc_version" >&5 | ||
4643 | 4639 | $as_echo "$ac_cv_lib_xenctrl_xc_version" >&6; } | ||
4644 | 4640 | if test "x$ac_cv_lib_xenctrl_xc_version" = x""yes; then : | ||
4645 | 4641 | cat >>confdefs.h <<_ACEOF | ||
4646 | 4642 | #define HAVE_LIBXENCTRL 1 | ||
4647 | 4643 | _ACEOF | ||
4648 | 4644 | |||
4649 | 4645 | LIBS="-lxenctrl $LIBS" | ||
4650 | 4646 | |||
4651 | 4647 | else | ||
4652 | 4648 | { $as_echo "$as_me:${as_lineno-$LINENO}: Xen support disabled" >&5 | ||
4653 | 4649 | $as_echo "$as_me: Xen support disabled" >&6;} | ||
4654 | 4650 | fi | ||
4655 | 4651 | |||
4656 | 4652 | fi | ||
4657 | 4653 | |||
4658 | 4654 | |||
4659 | 4655 | fi | ||
4660 | 4656 | |||
4661 | 4657 | if test "$ARCH" = ppc; then | ||
4662 | 4658 | |||
4663 | 4659 | # Check whether --with-oldtoolchain was given. | ||
4664 | 4660 | if test "${with_oldtoolchain+set}" = set; then : | ||
4665 | 4661 | withval=$with_oldtoolchain; | ||
4666 | 4662 | $as_echo "#define PPC_OLDTOOLCHAIN 1" >>confdefs.h | ||
4667 | 4663 | |||
4668 | 4664 | fi | ||
4669 | 4665 | |||
4670 | 4666 | fi | ||
4671 | 4667 | |||
4672 | 4668 | if test "$CC" = "no"; then as_fn_error "cc not found" "$LINENO" 5; fi | ||
4673 | 4669 | if test "$CPP" = "no"; then as_fn_error "cpp not found" "$LINENO" 5; fi | ||
4674 | 4670 | if test "$LD" = "no"; then as_fn_error "ld not found" "$LINENO" 5; fi | ||
4675 | 4671 | if test "$AS" = "no"; then as_fn_error "as not found" "$LINENO" 5; fi | ||
4676 | 4672 | if test "$OBJCOPY" = "no"; then as_fn_error "objcopy not found" "$LINENO" 5; fi | ||
4677 | 4673 | if test "$AR" = "no"; then as_fn_error "ar not found" "$LINENO" 5; fi | ||
4678 | 4674 | |||
4679 | 4675 | if test "$MKDIR" = "no"; then as_fn_error " mkdir not found" "$LINENO" 5; fi | ||
4680 | 4676 | if test "$RM" = "no"; then as_fn_error " rm not found" "$LINENO" 5; fi | ||
4681 | 4677 | if test "$CP" = "no"; then as_fn_error " cp not found" "$LINENO" 5; fi | ||
4682 | 4678 | if test "$LN" = "no"; then as_fn_error " ln not found" "$LINENO" 5; fi | ||
4683 | 4679 | if test "$TAR" = "no"; then as_fn_error " tar not found" "$LINENO" 5; fi | ||
4684 | 4680 | if test "$RPM" = "no"; then as_fn_error " rpm not found" "$LINENO" 5; fi | ||
4685 | 4681 | if test "$SED" = "no"; then as_fn_error " sed not found" "$LINENO" 5; fi | ||
4686 | 4682 | if test "$FIND" = "no"; then as_fn_error " find not found" "$LINENO" 5; fi | ||
4687 | 4683 | if test "$XARGS" = "no"; then as_fn_error " xargs not found" "$LINENO" 5; fi | ||
4688 | 4684 | if test "$DIRNAME" = "no"; then as_fn_error " dirname not found" "$LINENO" 5; fi | ||
4689 | 4685 | |||
4690 | 4686 | |||
4691 | 4687 | |||
4692 | 4688 | |||
4693 | 4689 | |||
4694 | 4690 | |||
4695 | 4691 | |||
4696 | 4692 | |||
4697 | 4693 | |||
4698 | 4694 | |||
4699 | 4695 | |||
4700 | 4696 | |||
4701 | 4697 | ac_config_files="$ac_config_files Makefile" | ||
4702 | 4698 | |||
4703 | 4699 | cat >confcache <<\_ACEOF | ||
4704 | 4700 | # This file is a shell script that caches the results of configure | ||
4705 | 4701 | # tests run on this system so they can be shared between configure | ||
4706 | 4702 | # scripts and configure runs, see configure's option --config-cache. | ||
4707 | 4703 | # It is not useful on other systems. If it contains results you don't | ||
4708 | 4704 | # want to keep, you may remove or edit it. | ||
4709 | 4705 | # | ||
4710 | 4706 | # config.status only pays attention to the cache file if you give it | ||
4711 | 4707 | # the --recheck option to rerun configure. | ||
4712 | 4708 | # | ||
4713 | 4709 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | ||
4714 | 4710 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | ||
4715 | 4711 | # following values. | ||
4716 | 4712 | |||
4717 | 4713 | _ACEOF | ||
4718 | 4714 | |||
4719 | 4715 | # The following way of writing the cache mishandles newlines in values, | ||
4720 | 4716 | # but we know of no workaround that is simple, portable, and efficient. | ||
4721 | 4717 | # So, we kill variables containing newlines. | ||
4722 | 4718 | # Ultrix sh set writes to stderr and can't be redirected directly, | ||
4723 | 4719 | # and sets the high bit in the cache file unless we assign to the vars. | ||
4724 | 4720 | ( | ||
4725 | 4721 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | ||
4726 | 4722 | eval ac_val=\$$ac_var | ||
4727 | 4723 | case $ac_val in #( | ||
4728 | 4724 | *${as_nl}*) | ||
4729 | 4725 | case $ac_var in #( | ||
4730 | 4726 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | ||
4731 | 4727 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | ||
4732 | 4728 | esac | ||
4733 | 4729 | case $ac_var in #( | ||
4734 | 4730 | _ | IFS | as_nl) ;; #( | ||
4735 | 4731 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | ||
4736 | 4732 | *) { eval $ac_var=; unset $ac_var;} ;; | ||
4737 | 4733 | esac ;; | ||
4738 | 4734 | esac | ||
4739 | 4735 | done | ||
4740 | 4736 | |||
4741 | 4737 | (set) 2>&1 | | ||
4742 | 4738 | case $as_nl`(ac_space=' '; set) 2>&1` in #( | ||
4743 | 4739 | *${as_nl}ac_space=\ *) | ||
4744 | 4740 | # `set' does not quote correctly, so add quotes: double-quote | ||
4745 | 4741 | # substitution turns \\\\ into \\, and sed turns \\ into \. | ||
4746 | 4742 | sed -n \ | ||
4747 | 4743 | "s/'/'\\\\''/g; | ||
4748 | 4744 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | ||
4749 | 4745 | ;; #( | ||
4750 | 4746 | *) | ||
4751 | 4747 | # `set' quotes correctly as required by POSIX, so do not add quotes. | ||
4752 | 4748 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | ||
4753 | 4749 | ;; | ||
4754 | 4750 | esac | | ||
4755 | 4751 | sort | ||
4756 | 4752 | ) | | ||
4757 | 4753 | sed ' | ||
4758 | 4754 | /^ac_cv_env_/b end | ||
4759 | 4755 | t clear | ||
4760 | 4756 | :clear | ||
4761 | 4757 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | ||
4762 | 4758 | t end | ||
4763 | 4759 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | ||
4764 | 4760 | :end' >>confcache | ||
4765 | 4761 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | ||
4766 | 4762 | if test -w "$cache_file"; then | ||
4767 | 4763 | test "x$cache_file" != "x/dev/null" && | ||
4768 | 4764 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 | ||
4769 | 4765 | $as_echo "$as_me: updating cache $cache_file" >&6;} | ||
4770 | 4766 | cat confcache >$cache_file | ||
4771 | 4767 | else | ||
4772 | 4768 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 | ||
4773 | 4769 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | ||
4774 | 4770 | fi | ||
4775 | 4771 | fi | ||
4776 | 4772 | rm -f confcache | ||
4777 | 4773 | |||
4778 | 4774 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | ||
4779 | 4775 | # Let make expand exec_prefix. | ||
4780 | 4776 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | ||
4781 | 4777 | |||
4782 | 4778 | DEFS=-DHAVE_CONFIG_H | ||
4783 | 4779 | |||
4784 | 4780 | ac_libobjs= | ||
4785 | 4781 | ac_ltlibobjs= | ||
4786 | 4782 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | ||
4787 | 4783 | # 1. Remove the extension, and $U if already installed. | ||
4788 | 4784 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' | ||
4789 | 4785 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` | ||
4790 | 4786 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR | ||
4791 | 4787 | # will be set to the directory where LIBOBJS objects are built. | ||
4792 | 4788 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" | ||
4793 | 4789 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' | ||
4794 | 4790 | done | ||
4795 | 4791 | LIBOBJS=$ac_libobjs | ||
4796 | 4792 | |||
4797 | 4793 | LTLIBOBJS=$ac_ltlibobjs | ||
4798 | 4794 | |||
4799 | 4795 | |||
4800 | 4796 | |||
4801 | 4797 | : ${CONFIG_STATUS=./config.status} | ||
4802 | 4798 | ac_write_fail=0 | ||
4803 | 4799 | ac_clean_files_save=$ac_clean_files | ||
4804 | 4800 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | ||
4805 | 4801 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 | ||
4806 | 4802 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} | ||
4807 | 4803 | as_write_fail=0 | ||
4808 | 4804 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 | ||
4809 | 4805 | #! $SHELL | ||
4810 | 4806 | # Generated by $as_me. | ||
4811 | 4807 | # Run this file to recreate the current configuration. | ||
4812 | 4808 | # Compiler output produced by configure, useful for debugging | ||
4813 | 4809 | # configure, is in config.log if it exists. | ||
4814 | 4810 | |||
4815 | 4811 | debug=false | ||
4816 | 4812 | ac_cs_recheck=false | ||
4817 | 4813 | ac_cs_silent=false | ||
4818 | 4814 | |||
4819 | 4815 | SHELL=\${CONFIG_SHELL-$SHELL} | ||
4820 | 4816 | export SHELL | ||
4821 | 4817 | _ASEOF | ||
4822 | 4818 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 | ||
4823 | 4819 | ## -------------------- ## | ||
4824 | 4820 | ## M4sh Initialization. ## | ||
4825 | 4821 | ## -------------------- ## | ||
4826 | 4822 | |||
4827 | 4823 | # Be more Bourne compatible | ||
4828 | 4824 | DUALCASE=1; export DUALCASE # for MKS sh | ||
4829 | 4825 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | ||
4830 | 4826 | emulate sh | ||
4831 | 4827 | NULLCMD=: | ||
4832 | 4828 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which | ||
4833 | 4829 | # is contrary to our usage. Disable this feature. | ||
4834 | 4830 | alias -g '${1+"$@"}'='"$@"' | ||
4835 | 4831 | setopt NO_GLOB_SUBST | ||
4836 | 4832 | else | ||
4837 | 4833 | case `(set -o) 2>/dev/null` in #( | ||
4838 | 4834 | *posix*) : | ||
4839 | 4835 | set -o posix ;; #( | ||
4840 | 4836 | *) : | ||
4841 | 4837 | ;; | ||
4842 | 4838 | esac | ||
4843 | 4839 | fi | ||
4844 | 4840 | |||
4845 | 4841 | |||
4846 | 4842 | as_nl=' | ||
4847 | 4843 | ' | ||
4848 | 4844 | export as_nl | ||
4849 | 4845 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | ||
4850 | 4846 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | ||
4851 | 4847 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | ||
4852 | 4848 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | ||
4853 | 4849 | # Prefer a ksh shell builtin over an external printf program on Solaris, | ||
4854 | 4850 | # but without wasting forks for bash or zsh. | ||
4855 | 4851 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | ||
4856 | 4852 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | ||
4857 | 4853 | as_echo='print -r --' | ||
4858 | 4854 | as_echo_n='print -rn --' | ||
4859 | 4855 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | ||
4860 | 4856 | as_echo='printf %s\n' | ||
4861 | 4857 | as_echo_n='printf %s' | ||
4862 | 4858 | else | ||
4863 | 4859 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | ||
4864 | 4860 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | ||
4865 | 4861 | as_echo_n='/usr/ucb/echo -n' | ||
4866 | 4862 | else | ||
4867 | 4863 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | ||
4868 | 4864 | as_echo_n_body='eval | ||
4869 | 4865 | arg=$1; | ||
4870 | 4866 | case $arg in #( | ||
4871 | 4867 | *"$as_nl"*) | ||
4872 | 4868 | expr "X$arg" : "X\\(.*\\)$as_nl"; | ||
4873 | 4869 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | ||
4874 | 4870 | esac; | ||
4875 | 4871 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | ||
4876 | 4872 | ' | ||
4877 | 4873 | export as_echo_n_body | ||
4878 | 4874 | as_echo_n='sh -c $as_echo_n_body as_echo' | ||
4879 | 4875 | fi | ||
4880 | 4876 | export as_echo_body | ||
4881 | 4877 | as_echo='sh -c $as_echo_body as_echo' | ||
4882 | 4878 | fi | ||
4883 | 4879 | |||
4884 | 4880 | # The user is always right. | ||
4885 | 4881 | if test "${PATH_SEPARATOR+set}" != set; then | ||
4886 | 4882 | PATH_SEPARATOR=: | ||
4887 | 4883 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | ||
4888 | 4884 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | ||
4889 | 4885 | PATH_SEPARATOR=';' | ||
4890 | 4886 | } | ||
4891 | 4887 | fi | ||
4892 | 4888 | |||
4893 | 4889 | |||
4894 | 4890 | # IFS | ||
4895 | 4891 | # We need space, tab and new line, in precisely that order. Quoting is | ||
4896 | 4892 | # there to prevent editors from complaining about space-tab. | ||
4897 | 4893 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | ||
4898 | 4894 | # splitting by setting IFS to empty value.) | ||
4899 | 4895 | IFS=" "" $as_nl" | ||
4900 | 4896 | |||
4901 | 4897 | # Find who we are. Look in the path if we contain no directory separator. | ||
4902 | 4898 | case $0 in #(( | ||
4903 | 4899 | *[\\/]* ) as_myself=$0 ;; | ||
4904 | 4900 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4905 | 4901 | for as_dir in $PATH | ||
4906 | 4902 | do | ||
4907 | 4903 | IFS=$as_save_IFS | ||
4908 | 4904 | test -z "$as_dir" && as_dir=. | ||
4909 | 4905 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | ||
4910 | 4906 | done | ||
4911 | 4907 | IFS=$as_save_IFS | ||
4912 | 4908 | |||
4913 | 4909 | ;; | ||
4914 | 4910 | esac | ||
4915 | 4911 | # We did not find ourselves, most probably we were run as `sh COMMAND' | ||
4916 | 4912 | # in which case we are not to be found in the path. | ||
4917 | 4913 | if test "x$as_myself" = x; then | ||
4918 | 4914 | as_myself=$0 | ||
4919 | 4915 | fi | ||
4920 | 4916 | if test ! -f "$as_myself"; then | ||
4921 | 4917 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | ||
4922 | 4918 | exit 1 | ||
4923 | 4919 | fi | ||
4924 | 4920 | |||
4925 | 4921 | # Unset variables that we do not need and which cause bugs (e.g. in | ||
4926 | 4922 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | ||
4927 | 4923 | # suppresses any "Segmentation fault" message there. '((' could | ||
4928 | 4924 | # trigger a bug in pdksh 5.2.14. | ||
4929 | 4925 | for as_var in BASH_ENV ENV MAIL MAILPATH | ||
4930 | 4926 | do eval test x\${$as_var+set} = xset \ | ||
4931 | 4927 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | ||
4932 | 4928 | done | ||
4933 | 4929 | PS1='$ ' | ||
4934 | 4930 | PS2='> ' | ||
4935 | 4931 | PS4='+ ' | ||
4936 | 4932 | |||
4937 | 4933 | # NLS nuisances. | ||
4938 | 4934 | LC_ALL=C | ||
4939 | 4935 | export LC_ALL | ||
4940 | 4936 | LANGUAGE=C | ||
4941 | 4937 | export LANGUAGE | ||
4942 | 4938 | |||
4943 | 4939 | # CDPATH. | ||
4944 | 4940 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | ||
4945 | 4941 | |||
4946 | 4942 | |||
4947 | 4943 | # as_fn_error ERROR [LINENO LOG_FD] | ||
4948 | 4944 | # --------------------------------- | ||
4949 | 4945 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | ||
4950 | 4946 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | ||
4951 | 4947 | # script with status $?, using 1 if that was 0. | ||
4952 | 4948 | as_fn_error () | ||
4953 | 4949 | { | ||
4954 | 4950 | as_status=$?; test $as_status -eq 0 && as_status=1 | ||
4955 | 4951 | if test "$3"; then | ||
4956 | 4952 | as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | ||
4957 | 4953 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 | ||
4958 | 4954 | fi | ||
4959 | 4955 | $as_echo "$as_me: error: $1" >&2 | ||
4960 | 4956 | as_fn_exit $as_status | ||
4961 | 4957 | } # as_fn_error | ||
4962 | 4958 | |||
4963 | 4959 | |||
4964 | 4960 | # as_fn_set_status STATUS | ||
4965 | 4961 | # ----------------------- | ||
4966 | 4962 | # Set $? to STATUS, without forking. | ||
4967 | 4963 | as_fn_set_status () | ||
4968 | 4964 | { | ||
4969 | 4965 | return $1 | ||
4970 | 4966 | } # as_fn_set_status | ||
4971 | 4967 | |||
4972 | 4968 | # as_fn_exit STATUS | ||
4973 | 4969 | # ----------------- | ||
4974 | 4970 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | ||
4975 | 4971 | as_fn_exit () | ||
4976 | 4972 | { | ||
4977 | 4973 | set +e | ||
4978 | 4974 | as_fn_set_status $1 | ||
4979 | 4975 | exit $1 | ||
4980 | 4976 | } # as_fn_exit | ||
4981 | 4977 | |||
4982 | 4978 | # as_fn_unset VAR | ||
4983 | 4979 | # --------------- | ||
4984 | 4980 | # Portably unset VAR. | ||
4985 | 4981 | as_fn_unset () | ||
4986 | 4982 | { | ||
4987 | 4983 | { eval $1=; unset $1;} | ||
4988 | 4984 | } | ||
4989 | 4985 | as_unset=as_fn_unset | ||
4990 | 4986 | # as_fn_append VAR VALUE | ||
4991 | 4987 | # ---------------------- | ||
4992 | 4988 | # Append the text in VALUE to the end of the definition contained in VAR. Take | ||
4993 | 4989 | # advantage of any shell optimizations that allow amortized linear growth over | ||
4994 | 4990 | # repeated appends, instead of the typical quadratic growth present in naive | ||
4995 | 4991 | # implementations. | ||
4996 | 4992 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | ||
4997 | 4993 | eval 'as_fn_append () | ||
4998 | 4994 | { | ||
4999 | 4995 | eval $1+=\$2 | ||
5000 | 4996 | }' |