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